@onairos/react-native 3.5.4 → 3.6.0
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/README.md +423 -423
- package/lib/commonjs/api/index.js +1 -1
- package/lib/commonjs/assets/images/Checkbox.svg +3 -3
- package/lib/commonjs/assets/images/EnochE.svg +19 -19
- package/lib/commonjs/assets/images/OnairosNewLogo.png +0 -0
- package/lib/commonjs/assets/images/Personalityprofile.svg +3 -3
- package/lib/commonjs/assets/images/Personalitytraits.svg +3 -3
- package/lib/commonjs/assets/images/Userpreferences.svg +3 -3
- package/lib/commonjs/assets/images/arrow.svg +20 -20
- package/lib/commonjs/assets/images/basicproficon.svg +43 -43
- package/lib/commonjs/assets/images/basicprofile.svg +3 -3
- package/lib/commonjs/assets/images/checkmark.svg +4 -4
- package/lib/commonjs/assets/images/contentanalysis.svg +3 -3
- package/lib/commonjs/assets/images/contenticon.svg +23 -23
- package/lib/commonjs/assets/images/personalityicon.svg +18 -18
- package/lib/commonjs/assets/images/x-close.svg +3 -3
- 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 +3 -2
- 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 +2 -1
- package/lib/commonjs/components/VerificationStep.js +1 -1
- package/lib/commonjs/components/WelcomeScreen.js +2 -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 +6 -2
- 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 +5 -6
- package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
- 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 +8 -0
- package/lib/commonjs/services/hingeDataService.js +9 -0
- package/lib/commonjs/services/imageCompressionService.js +1 -1
- package/lib/commonjs/services/instagramDataExtractor.js +8 -0
- package/lib/commonjs/services/instagramDataService.js +9 -0
- 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 +8 -0
- package/lib/commonjs/services/sephoraDataService.js +9 -0
- package/lib/commonjs/services/storageService.js +1 -1
- package/lib/commonjs/services/telegramDataExtractor.js +8 -0
- package/lib/commonjs/services/telegramDataService.js +11 -0
- 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 +2 -2
- package/lib/commonjs/utils/auth.js +1 -1
- package/lib/commonjs/utils/connectorTests.js +29 -0
- 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 -0
- package/lib/commonjs/utils/webviewScripts/index.js +6 -2
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -0
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -0
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -0
- package/lib/module/api/index.js +1 -1
- package/lib/module/assets/images/Checkbox.svg +3 -3
- package/lib/module/assets/images/EnochE.svg +19 -19
- package/lib/module/assets/images/OnairosNewLogo.png +0 -0
- package/lib/module/assets/images/Personalityprofile.svg +3 -3
- package/lib/module/assets/images/Personalitytraits.svg +3 -3
- package/lib/module/assets/images/Userpreferences.svg +3 -3
- package/lib/module/assets/images/arrow.svg +20 -20
- package/lib/module/assets/images/basicproficon.svg +43 -43
- package/lib/module/assets/images/basicprofile.svg +3 -3
- package/lib/module/assets/images/checkmark.svg +4 -4
- package/lib/module/assets/images/contentanalysis.svg +3 -3
- package/lib/module/assets/images/contenticon.svg +23 -23
- package/lib/module/assets/images/personalityicon.svg +18 -18
- package/lib/module/assets/images/x-close.svg +3 -3
- 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 +7 -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/SDK_API_KEY_VALIDATION.md +421 -421
- 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 -0
- package/lib/module/services/hingeDataService.js +1 -0
- package/lib/module/services/imageCompressionService.js +1 -1
- package/lib/module/services/instagramDataExtractor.js +1 -0
- package/lib/module/services/instagramDataService.js +1 -0
- 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 -0
- package/lib/module/services/sephoraDataService.js +1 -0
- package/lib/module/services/storageService.js +1 -1
- package/lib/module/services/telegramDataExtractor.js +1 -0
- package/lib/module/services/telegramDataService.js +8 -0
- 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 +2 -2
- package/lib/module/utils/auth.js +1 -1
- package/lib/module/utils/connectorTests.js +28 -0
- 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 -0
- package/lib/module/utils/webviewScripts/index.js +1 -1
- package/lib/module/utils/webviewScripts/instagram.js +1 -0
- package/lib/module/utils/webviewScripts/linkedin.js +1 -1
- package/lib/module/utils/webviewScripts/sephora.js +1 -0
- package/lib/module/utils/webviewScripts/telegram.js +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
Object[_0x315d(0x0)](exports,_0x315d(0x1),{'value':!![]}),exports[_0x315d(0x2)]=exports[_0x315d(0x3)]=exports['sendLLMDataToBackend']=exports['requestLLMDataForDeveloper']=exports[_0x315d(0x4)]=exports['getLLMMetadata']=exports[_0x315d(0x5)]=exports['getAllLLMDataKeys']=exports[_0x315d(0x6)]=exports[_0x315d(0x7)]=void 0x0;var _asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_api=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireDefault(_0x405b2e){return _0x405b2e&&_0x405b2e['__esModule']?_0x405b2e:{'default':_0x405b2e};}const LLM_DATA_STORAGE_KEY='@onairos:llm_data',LLM_METADATA_STORAGE_KEY=_0x315d(0x8),storeLLMData=async _0x331a4b=>{const _0x88d394={'RtUvK':_0x315d(0x9),'NrXvQ':function(_0x92eb54,_0x20f1bd){return _0x92eb54===_0x20f1bd;},'VRTgl':'OiDPW','qAJtQ':'connected','TvSJn':_0x315d(0xa),'xUVNU':function(_0x1d8392,_0x518441){return _0x1d8392!==_0x518441;}};try{if(_0x88d394[_0x315d(0xb)](_0x88d394['VRTgl'],_0x315d(0xc)))return _0x324be3[_0x315d(0xd)](_0x88d394[_0x315d(0xe)],_0x8e6443),![];else{console[_0x315d(0xf)](_0x315d(0x10)),await _asyncStorage[_0x315d(0x11)][_0x315d(0x12)](LLM_DATA_STORAGE_KEY+':'+_0x331a4b[_0x315d(0x13)],JSON['stringify'](_0x331a4b));const _0x41872b={'userId':_0x331a4b['userId'],'email':_0x331a4b['email'],'appName':_0x331a4b[_0x315d(0x14)],'timestamp':_0x331a4b['timestamp'],'hasData':!![],'dataSize':JSON[_0x315d(0x15)](_0x331a4b['data'])[_0x315d(0x16)],'connectionStatus':_0x88d394['qAJtQ']};return await _asyncStorage[_0x315d(0x11)][_0x315d(0x12)](LLM_METADATA_STORAGE_KEY+':'+_0x331a4b['userId'],JSON[_0x315d(0x15)](_0x41872b)),console[_0x315d(0xf)](_0x88d394[_0x315d(0x17)]),console[_0x315d(0xf)](_0x315d(0x18)+_0x41872b['dataSize']+_0x315d(0x19)),!![];}}catch(_0x4dfb41){return _0x88d394['xUVNU']('YCAgk','pDRlX')?(console[_0x315d(0xd)](_0x88d394[_0x315d(0xe)],_0x4dfb41),![]):_0x5df54e&&_0xdb6fb3['__esModule']?_0xbf0d43:{'default':_0x2b2eac};}};exports[_0x315d(0x3)]=storeLLMData;function _0x3382(){const _0x18ebcf=['defineProperty','__esModule','updateLLMStatus','storeLLMData','hasOnlyLLMConnection','getLLMData','formatLLMDataForDeveloper','clearLLMData','@onairos:llm_metadata','❌\x20Failed\x20to\x20store\x20LLM\x20data:','✅\x20LLM\x20data\x20stored\x20locally\x20successfully','NrXvQ','ygnky','error','RtUvK','log','💾\x20Storing\x20LLM\x20data\x20locally\x20(temporary)...','default','setItem','userId','appName','stringify','length','TvSJn','📊\x20Data\x20size:\x20','\x20bytes','uWajh','ℹ️\x20No\x20LLM\x20data\x20found\x20for\x20user:','❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:','iRRmu','HdOFu','nLPau','getItem','warn','⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','CdduT','Makky','Maekt','wUksm','parse','getLLMMetadata','KkCNw','❌\x20Failed\x20to\x20update\x20LLM\x20status:','iPuEW','UiLRF','connectionStatus','✅\x20Updated\x20LLM\x20status\x20to:\x20','etJuN','GlbWm','❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:','iuDot','eAHgd','❌\x20Failed\x20to\x20clear\x20LLM\x20data:','CvrLF','PZYKX','tVZyi','removeItem','JbVbw','fGDLQ','chatgpt','🔍\x20Platform\x20connection\x20check:','entries','map','includes','llm','fhutt','email','timestamp','data','conversations','chatHistory','preferences','❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:','📡\x20Sending\x20LLM\x20data\x20to\x20backend\x20for\x20processing...','✅\x20Backend\x20received\x20and\x20stored\x20LLM\x20data:','❌\x20Backend\x20data\x20ingestion\x20failed:','UtThp','EgRcN','❌\x20Failed\x20to\x20send\x20data\x20to\x20backend:','Unknown\x20error','tVQmN','VZWna','cdSbv','API_CONFIG','/llmdata','YYpjE','Bearer\x20','LGESP','toISOString','accessToken','refreshToken','tokenExpiry','1.0','message','text','rMFqJ','status','Backend\x20error:\x20','XmCeh','IOBGf','XKNkP','pQlrc','MPZus','sendLLMDataToBackend','❌\x20Failed\x20to\x20request\x20LLM\x20data\x20from\x20backend:','dUOvP','✅\x20Backend\x20processing\x20LLM\x20data\x20request:','uyHpQ','gyghA','❌\x20Failed\x20to\x20request\x20LLM\x20data:','KltsL','dJxcz','BASE_URL','apiUrl','token','YFAGM','krtWN','YSmZo','ZerNg','CnSlQ','byIjV','XGjwC','requestLLMDataForDeveloper','getAllKeys','startsWith','getAllLLMDataKeys'];_0x3382=function(){return _0x18ebcf;};return _0x3382();}const getLLMData=async _0x301389=>{const _0x5ef1a1={'iRRmu':function(_0x53d2ad,_0x172a42){return _0x53d2ad!==_0x172a42;},'HdOFu':_0x315d(0x1a),'roqOp':_0x315d(0x1b),'CdduT':_0x315d(0x1c)};try{if(_0x5ef1a1[_0x315d(0x1d)](_0x5ef1a1[_0x315d(0x1e)],_0x315d(0x1f))){const _0x4ee0d9=await _asyncStorage[_0x315d(0x11)][_0x315d(0x20)](LLM_DATA_STORAGE_KEY+':'+_0x301389);if(!_0x4ee0d9)return console[_0x315d(0xf)](_0x5ef1a1['roqOp'],_0x301389),null;const _0x28978f=JSON['parse'](_0x4ee0d9);return console[_0x315d(0xf)]('✅\x20Retrieved\x20LLM\x20data\x20for\x20user:',_0x301389),_0x28978f;}else return _0x371ff8[_0x315d(0x21)](_0x315d(0x22),_0x3f0310),![];}catch(_0x4ac521){return console['error'](_0x5ef1a1[_0x315d(0x23)],_0x4ac521),null;}};exports[_0x315d(0x5)]=getLLMData;const getLLMMetadata=async _0x4a7182=>{const _0x212bef={'Maekt':function(_0xe8a599,_0x207a9b){return _0xe8a599===_0x207a9b;},'wUksm':_0x315d(0x24),'uNQTQ':'zLMEd'};try{if(_0x212bef[_0x315d(0x25)](_0x212bef[_0x315d(0x26)],_0x212bef['uNQTQ']))return null;else{const _0x2eed48=await _asyncStorage['default'][_0x315d(0x20)](LLM_METADATA_STORAGE_KEY+':'+_0x4a7182);if(!_0x2eed48)return null;return JSON[_0x315d(0x27)](_0x2eed48);}}catch(_0x53d000){return console[_0x315d(0xd)]('❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:',_0x53d000),null;}};function _0x315d(_0x3382de,_0x315d24){_0x3382de=_0x3382de-0x0;const _0x56f97f=_0x3382();let _0x28d84e=_0x56f97f[_0x3382de];return _0x28d84e;}exports[_0x315d(0x28)]=getLLMMetadata;const updateLLMStatus=async(_0x2bfeaf,_0x55d4d7)=>{const _0xeae436={'etJuN':'❌\x20Failed\x20to\x20clear\x20LLM\x20data:','iPuEW':_0x315d(0x29),'UiLRF':function(_0x422fde,_0x4730af){return _0x422fde(_0x4730af);},'kcTOS':'⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','GlbWm':_0x315d(0x2a)};try{if(_0xeae436[_0x315d(0x2b)]===_0xeae436[_0x315d(0x2b)]){const _0x5491b7=await _0xeae436[_0x315d(0x2c)](getLLMMetadata,_0x2bfeaf);if(!_0x5491b7)return console[_0x315d(0x21)](_0xeae436['kcTOS'],_0x2bfeaf),![];return _0x5491b7[_0x315d(0x2d)]=_0x55d4d7,await _asyncStorage[_0x315d(0x11)]['setItem'](LLM_METADATA_STORAGE_KEY+':'+_0x2bfeaf,JSON['stringify'](_0x5491b7)),console[_0x315d(0xf)](_0x315d(0x2e)+_0x55d4d7),!![];}else return _0x244779['error'](_0xeae436[_0x315d(0x2f)],_0x29eebd),![];}catch(_0xba586c){return console[_0x315d(0xd)](_0xeae436[_0x315d(0x30)],_0xba586c),![];}};exports[_0x315d(0x2)]=updateLLMStatus;const clearLLMData=async _0x33b3b7=>{const _0x562220={'tVZyi':_0x315d(0x31),'CvrLF':function(_0x5c9133,_0x2e99d2){return _0x5c9133===_0x2e99d2;},'PRXjN':_0x315d(0x32),'PZYKX':_0x315d(0x33),'JbVbw':'✅\x20LLM\x20data\x20cleared\x20for\x20user:','fGDLQ':_0x315d(0x34)};try{return _0x562220[_0x315d(0x35)](_0x562220['PRXjN'],_0x562220[_0x315d(0x36)])?(_0x3f830d[_0x315d(0xd)](_0x562220[_0x315d(0x37)],_0x851961),[]):(await _asyncStorage[_0x315d(0x11)][_0x315d(0x38)](LLM_DATA_STORAGE_KEY+':'+_0x33b3b7),await _asyncStorage[_0x315d(0x11)][_0x315d(0x38)](LLM_METADATA_STORAGE_KEY+':'+_0x33b3b7),console[_0x315d(0xf)](_0x562220[_0x315d(0x39)],_0x33b3b7),!![]);}catch(_0x17bf5f){return console['error'](_0x562220[_0x315d(0x3a)],_0x17bf5f),![];}};exports['clearLLMData']=clearLLMData;const hasOnlyLLMConnection=_0x378f39=>{const _0x5b1f91={'fhutt':_0x315d(0x3b),'TCIIJ':_0x315d(0x3c)},_0x37c778=Object[_0x315d(0x3d)](_0x378f39)['filter'](([_0x236323,_0x3b87d9])=>_0x3b87d9)[_0x315d(0x3e)](([_0x1e8031,_0x218955])=>_0x1e8031),_0x5be621=_0x37c778[_0x315d(0x3f)](_0x315d(0x40))||_0x37c778[_0x315d(0x3f)](_0x5b1f91[_0x315d(0x41)]),_0x4fa9ca=_0x37c778[_0x315d(0x16)]===0x1&&_0x5be621;return console[_0x315d(0xf)](_0x5b1f91['TCIIJ'],{'connectedPlatforms':_0x37c778,'hasLLM':_0x5be621,'onlyLLM':_0x4fa9ca}),_0x4fa9ca;};exports[_0x315d(0x4)]=hasOnlyLLMConnection;const formatLLMDataForDeveloper=_0x624f62=>{const _0x334474={'TzyPs':_0x315d(0x40),'KIxez':'chatgpt'};return{'platform':_0x334474['TzyPs'],'userId':_0x624f62[_0x315d(0x13)],'email':_0x624f62[_0x315d(0x42)],'timestamp':_0x624f62[_0x315d(0x43)],'data':{'type':_0x334474['KIxez'],'conversations':_0x624f62[_0x315d(0x44)][_0x315d(0x45)]||[],'chatHistory':_0x624f62[_0x315d(0x44)][_0x315d(0x46)]||[],'preferences':_0x624f62[_0x315d(0x44)][_0x315d(0x47)]||{},'customData':_0x624f62[_0x315d(0x44)]['customData']||{}},'metadata':{'appName':_0x624f62[_0x315d(0x14)],'collectedAt':new Date(_0x624f62[_0x315d(0x43)])['toISOString'](),'dataVersion':'1.0'}};};exports['formatLLMDataForDeveloper']=formatLLMDataForDeveloper;const sendLLMDataToBackend=async(_0x36d889,_0x475901)=>{const _0x23710f={'XmCeh':_0x315d(0x48),'MPZus':_0x315d(0x1b),'cdSbv':_0x315d(0x49),'YYpjE':function(_0x444d57,_0x161c26){return _0x444d57&&_0x161c26;},'LGESP':'llm','sSMhE':_0x315d(0x4a),'rMFqJ':_0x315d(0x4b),'IOBGf':function(_0x44473e,_0x3c478d){return _0x44473e!==_0x3c478d;},'mddWL':_0x315d(0x4c),'BraUN':_0x315d(0x4d),'XKNkP':_0x315d(0x4e),'pQlrc':_0x315d(0x4f)};try{if(_0x315d(0x50)!==_0x315d(0x51)){console[_0x315d(0xf)](_0x23710f[_0x315d(0x52)]);const _0xcf0a56=await fetch(_api[_0x315d(0x53)]['BASE_URL']+_0x315d(0x54),{'method':'POST','headers':{'Content-Type':'application/json',..._0x23710f[_0x315d(0x55)](_0x475901,{'Authorization':_0x315d(0x56)+_0x475901})},'body':JSON[_0x315d(0x15)]({'userId':_0x36d889[_0x315d(0x13)],'email':_0x36d889[_0x315d(0x42)],'appName':_0x36d889[_0x315d(0x14)],'platform':_0x23710f[_0x315d(0x57)],'connectionType':_0x315d(0x3b),'timestamp':new Date()[_0x315d(0x58)](),'data':_0x36d889[_0x315d(0x44)],'accessToken':_0x36d889[_0x315d(0x59)],'refreshToken':_0x36d889[_0x315d(0x5a)],'tokenExpiry':_0x36d889[_0x315d(0x5b)],'metadata':{'collectedAt':new Date(_0x36d889['timestamp'])['toISOString'](),'dataVersion':_0x315d(0x5c)}})});if(_0xcf0a56['ok']){const _0x4a5150=await _0xcf0a56['json']();return console[_0x315d(0xf)](_0x23710f['sSMhE'],_0x4a5150),{'success':!![],'message':_0x4a5150[_0x315d(0x5d)],'connectionId':_0x4a5150['connectionId']};}else{const _0x36a779=await _0xcf0a56[_0x315d(0x5e)]();return console[_0x315d(0xd)](_0x23710f[_0x315d(0x5f)],_0xcf0a56[_0x315d(0x60)],_0x36a779),{'success':![],'message':_0x315d(0x61)+_0xcf0a56[_0x315d(0x60)]};}}else return _0x3c016f[_0x315d(0xd)](_0x23710f[_0x315d(0x62)],_0x577ba6),null;}catch(_0x5712d0){return _0x23710f[_0x315d(0x63)](_0x23710f['mddWL'],_0x23710f['BraUN'])?(console[_0x315d(0xd)](_0x23710f[_0x315d(0x64)],_0x5712d0),{'success':![],'message':_0x5712d0 instanceof Error?_0x5712d0[_0x315d(0x5d)]:_0x23710f[_0x315d(0x65)]}):(_0x3c0a77['log'](_0x23710f[_0x315d(0x66)],_0x1f5b5e),null);}};exports[_0x315d(0x67)]=sendLLMDataToBackend;const requestLLMDataForDeveloper=async(_0x546c60,_0x5967a0,_0x290bf4,_0x58ebc7,_0x3af542)=>{const _0xfbc708={'XGjwC':_0x315d(0x68),'ZerNg':function(_0x585bf5,_0xbaaec7){return _0x585bf5 instanceof _0xbaaec7;},'CnSlQ':_0x315d(0x4f),'byIjV':'❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:','KltsL':_0x315d(0x69),'efvuf':'📤\x20Requesting\x20backend\x20to\x20send\x20LLM\x20data\x20to\x20developer...','dJxcz':function(_0x2e7f94,_0x341004,_0x30dcfe){return _0x2e7f94(_0x341004,_0x30dcfe);},'qMTKW':_0x315d(0x6a),'YFAGM':_0x315d(0x6b),'krtWN':_0x315d(0x6c),'YSmZo':_0x315d(0x6d)};try{if(_0xfbc708[_0x315d(0x6e)]===_0xfbc708[_0x315d(0x6e)]){console[_0x315d(0xf)](_0xfbc708['efvuf']);const _0x3cde7b=await _0xfbc708[_0x315d(0x6f)](fetch,_api[_0x315d(0x53)][_0x315d(0x70)]+'/llmdata/request',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x315d(0x56)+_0x3af542},'body':JSON['stringify']({'userId':_0x546c60,'email':_0x5967a0,'appName':_0x290bf4,'requestedData':_0x58ebc7,'timestamp':new Date()[_0x315d(0x58)]()})});if(_0x3cde7b['ok']){const _0x577798=await _0x3cde7b['json']();return console['log'](_0xfbc708['qMTKW'],_0x577798),{'success':!![],'message':_0x577798[_0x315d(0x5d)],'apiUrl':_0x577798[_0x315d(0x71)],'token':_0x577798[_0x315d(0x72)]};}else{if(_0xfbc708[_0x315d(0x73)]!==_0xfbc708[_0x315d(0x74)]){const _0x1f0139=await _0x3cde7b[_0x315d(0x5e)]();return console[_0x315d(0xd)](_0xfbc708[_0x315d(0x75)],_0x3cde7b['status'],_0x1f0139),{'success':![],'message':_0x315d(0x61)+_0x3cde7b[_0x315d(0x60)]};}else return _0x277945['error'](_0xfbc708['XGjwC'],_0x36c6b4),{'success':![],'message':_0xfbc708[_0x315d(0x76)](_0x437b4e,_0x55779d)?_0x19d9f7[_0x315d(0x5d)]:_0xfbc708[_0x315d(0x77)]};}}else return _0x4e2bc0[_0x315d(0xd)](_0xfbc708[_0x315d(0x78)],_0x5bc79c),null;}catch(_0x1406c1){return console[_0x315d(0xd)](_0xfbc708[_0x315d(0x79)],_0x1406c1),{'success':![],'message':_0xfbc708[_0x315d(0x76)](_0x1406c1,Error)?_0x1406c1['message']:_0x315d(0x4f)};}};exports[_0x315d(0x7a)]=requestLLMDataForDeveloper;const getAllLLMDataKeys=async()=>{try{const _0x29348c=await _asyncStorage[_0x315d(0x11)][_0x315d(0x7b)](),_0x1f51fd=_0x29348c['filter'](_0x5763ee=>_0x5763ee[_0x315d(0x7c)](LLM_DATA_STORAGE_KEY)||_0x5763ee[_0x315d(0x7c)](LLM_METADATA_STORAGE_KEY));return _0x1f51fd;}catch(_0x5a4801){return console['error'](_0x315d(0x31),_0x5a4801),[];}};exports[_0x315d(0x7d)]=getAllLLMDataKeys;
|
|
8
|
+
function _0x2e1c(_0x4c7c0f,_0x2e1cea){_0x4c7c0f=_0x4c7c0f-0x0;const _0x4a00f1=_0x4c7c();let _0x19ee94=_0x4a00f1[_0x4c7c0f];return _0x19ee94;}Object[_0x2e1c(0x0)](exports,_0x2e1c(0x1),{'value':!![]}),exports['updateLLMStatus']=exports[_0x2e1c(0x2)]=exports[_0x2e1c(0x3)]=exports[_0x2e1c(0x4)]=exports['hasOnlyLLMConnection']=exports['getLLMMetadata']=exports[_0x2e1c(0x5)]=exports[_0x2e1c(0x6)]=exports[_0x2e1c(0x7)]=exports[_0x2e1c(0x8)]=void 0x0;var _asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_api=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireDefault(_0xaa6b4b){return _0xaa6b4b&&_0xaa6b4b[_0x2e1c(0x1)]?_0xaa6b4b:{'default':_0xaa6b4b};}const LLM_DATA_STORAGE_KEY='@onairos:llm_data',LLM_METADATA_STORAGE_KEY=_0x2e1c(0x9),storeLLMData=async _0x2911ad=>{const _0x528e9d={'mmHgs':_0x2e1c(0xa),'jqkQM':function(_0x5cf1f8,_0x553950){return _0x5cf1f8!==_0x553950;},'SbcdQ':_0x2e1c(0xb),'AAttG':_0x2e1c(0xc),'KHOve':_0x2e1c(0xd),'mTfgB':'✅\x20LLM\x20data\x20stored\x20locally\x20successfully'};try{if(_0x528e9d['jqkQM'](_0x528e9d['SbcdQ'],_0x528e9d[_0x2e1c(0xe)])){console[_0x2e1c(0xf)]('💾\x20Storing\x20LLM\x20data\x20locally\x20(temporary)...'),await _asyncStorage[_0x2e1c(0x10)][_0x2e1c(0x11)](LLM_DATA_STORAGE_KEY+':'+_0x2911ad['userId'],JSON[_0x2e1c(0x12)](_0x2911ad));const _0x49cf44={'userId':_0x2911ad['userId'],'email':_0x2911ad[_0x2e1c(0x13)],'appName':_0x2911ad[_0x2e1c(0x14)],'timestamp':_0x2911ad[_0x2e1c(0x15)],'hasData':!![],'dataSize':JSON['stringify'](_0x2911ad[_0x2e1c(0x16)])[_0x2e1c(0x17)],'connectionStatus':_0x528e9d['KHOve']};return await _asyncStorage[_0x2e1c(0x10)][_0x2e1c(0x11)](LLM_METADATA_STORAGE_KEY+':'+_0x2911ad['userId'],JSON['stringify'](_0x49cf44)),console[_0x2e1c(0xf)](_0x528e9d[_0x2e1c(0x18)]),console[_0x2e1c(0xf)](_0x2e1c(0x19)+_0x49cf44['dataSize']+'\x20bytes'),!![];}else return _0x5c6417[_0x2e1c(0x1a)](_0x528e9d[_0x2e1c(0x1b)],_0x3aece6),![];}catch(_0x44199e){return console[_0x2e1c(0x1a)](_0x528e9d['mmHgs'],_0x44199e),![];}};exports['storeLLMData']=storeLLMData;const getLLMData=async _0x2c4283=>{const _0x5044a5={'VTdSC':function(_0x5d0040,_0x46b814){return _0x5d0040===_0x46b814;},'QfDOU':_0x2e1c(0x1c),'tQemz':_0x2e1c(0x1d),'MyUUD':_0x2e1c(0x1e),'AASNl':'IvUfF','immtu':_0x2e1c(0x1f)};try{if(_0x5044a5[_0x2e1c(0x20)](_0x2e1c(0x1c),_0x5044a5[_0x2e1c(0x21)])){const _0x41820f=await _asyncStorage[_0x2e1c(0x10)][_0x2e1c(0x22)](LLM_DATA_STORAGE_KEY+':'+_0x2c4283);if(!_0x41820f)return console[_0x2e1c(0xf)](_0x5044a5[_0x2e1c(0x23)],_0x2c4283),null;const _0x153417=JSON[_0x2e1c(0x24)](_0x41820f);return console[_0x2e1c(0xf)](_0x5044a5[_0x2e1c(0x25)],_0x2c4283),_0x153417;}else return _0x52478b[_0x2e1c(0x1a)]('❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:',_0x438ee3),null;}catch(_0x5948b3){return _0x5044a5[_0x2e1c(0x26)]===_0x5044a5[_0x2e1c(0x26)]?(console[_0x2e1c(0x1a)](_0x5044a5[_0x2e1c(0x27)],_0x5948b3),null):(_0x32880d[_0x2e1c(0x1a)](_0x2e1c(0x28),_0x3ae233),![]);}};exports[_0x2e1c(0x5)]=getLLMData;const getLLMMetadata=async _0x335239=>{const _0x395202={'GZoYU':_0x2e1c(0x29),'FDddq':function(_0x510d7f,_0x22c059){return _0x510d7f!==_0x22c059;}};try{const _0x48d0e4=await _asyncStorage[_0x2e1c(0x10)][_0x2e1c(0x22)](LLM_METADATA_STORAGE_KEY+':'+_0x335239);if(!_0x48d0e4)return null;return JSON[_0x2e1c(0x24)](_0x48d0e4);}catch(_0xe37af4){return _0x395202[_0x2e1c(0x2a)]('sLiDM',_0x2e1c(0x2b))?(_0x12004c['error'](_0x395202[_0x2e1c(0x2c)],_0x5ecca8),[]):(console['error'](_0x2e1c(0x2d),_0xe37af4),null);}};exports[_0x2e1c(0x2e)]=getLLMMetadata;const updateLLMStatus=async(_0x28ce63,_0x5b38a5)=>{const _0x4f14cc={'CNGfV':_0x2e1c(0x2f),'hmQlA':_0x2e1c(0x30),'jVYBm':_0x2e1c(0x31),'RgbID':_0x2e1c(0x32),'vvyHu':'uBCVM','SYNng':function(_0x1effa9,_0x4b5b52){return _0x1effa9(_0x4b5b52);},'yccfM':_0x2e1c(0x33)};try{if(_0x4f14cc[_0x2e1c(0x34)]===_0x4f14cc[_0x2e1c(0x35)]){const _0x1808d2=_0x154f87[_0x2e1c(0x36)](_0x40591a)[_0x2e1c(0x37)](([_0x813265,_0x47d62a])=>_0x47d62a)[_0x2e1c(0x38)](([_0x29086b,_0x2f34f5])=>_0x29086b),_0x235858=_0x1808d2[_0x2e1c(0x39)](_0x4f14cc[_0x2e1c(0x3a)])||_0x1808d2['includes'](_0x4f14cc[_0x2e1c(0x3b)]),_0x53b0c6=_0x1808d2[_0x2e1c(0x17)]===0x1&&_0x235858;return _0x404e7f['log'](_0x4f14cc[_0x2e1c(0x3c)],{'connectedPlatforms':_0x1808d2,'hasLLM':_0x235858,'onlyLLM':_0x53b0c6}),_0x53b0c6;}else{const _0x588213=await _0x4f14cc[_0x2e1c(0x3d)](getLLMMetadata,_0x28ce63);if(!_0x588213)return console[_0x2e1c(0x3e)](_0x4f14cc['yccfM'],_0x28ce63),![];return _0x588213['connectionStatus']=_0x5b38a5,await _asyncStorage['default']['setItem'](LLM_METADATA_STORAGE_KEY+':'+_0x28ce63,JSON[_0x2e1c(0x12)](_0x588213)),console[_0x2e1c(0xf)](_0x2e1c(0x3f)+_0x5b38a5),!![];}}catch(_0x320607){return console['error']('❌\x20Failed\x20to\x20update\x20LLM\x20status:',_0x320607),![];}};exports['updateLLMStatus']=updateLLMStatus;const clearLLMData=async _0x342ced=>{const _0x2331ed={'mCpvI':_0x2e1c(0x40)};try{return await _asyncStorage[_0x2e1c(0x10)][_0x2e1c(0x41)](LLM_DATA_STORAGE_KEY+':'+_0x342ced),await _asyncStorage[_0x2e1c(0x10)][_0x2e1c(0x41)](LLM_METADATA_STORAGE_KEY+':'+_0x342ced),console[_0x2e1c(0xf)](_0x2331ed['mCpvI'],_0x342ced),!![];}catch(_0x639d33){return console[_0x2e1c(0x1a)](_0x2e1c(0x28),_0x639d33),![];}};exports['clearLLMData']=clearLLMData;const hasOnlyLLMConnection=_0x313b23=>{const _0x267cc0={'xZbWD':function(_0x4cac8b,_0x20ece3){return _0x4cac8b===_0x20ece3;}},_0x5b8950=Object['entries'](_0x313b23)['filter'](([_0x432001,_0x8ce5da])=>_0x8ce5da)[_0x2e1c(0x38)](([_0x155abd,_0x1380e6])=>_0x155abd),_0x548dc2=_0x5b8950[_0x2e1c(0x39)]('llm')||_0x5b8950[_0x2e1c(0x39)](_0x2e1c(0x30)),_0x3364ac=_0x267cc0[_0x2e1c(0x42)](_0x5b8950[_0x2e1c(0x17)],0x1)&&_0x548dc2;return console[_0x2e1c(0xf)](_0x2e1c(0x31),{'connectedPlatforms':_0x5b8950,'hasLLM':_0x548dc2,'onlyLLM':_0x3364ac}),_0x3364ac;};exports[_0x2e1c(0x43)]=hasOnlyLLMConnection;const formatLLMDataForDeveloper=_0x887f1c=>{const _0x1a8e3c={'NFwTB':_0x2e1c(0x2f),'AVgrC':_0x2e1c(0x30),'QxqRZ':'1.0'};return{'platform':_0x1a8e3c[_0x2e1c(0x44)],'userId':_0x887f1c[_0x2e1c(0x45)],'email':_0x887f1c[_0x2e1c(0x13)],'timestamp':_0x887f1c[_0x2e1c(0x15)],'data':{'type':_0x1a8e3c[_0x2e1c(0x46)],'conversations':_0x887f1c[_0x2e1c(0x16)]['conversations']||[],'chatHistory':_0x887f1c[_0x2e1c(0x16)][_0x2e1c(0x47)]||[],'preferences':_0x887f1c[_0x2e1c(0x16)][_0x2e1c(0x48)]||{},'customData':_0x887f1c[_0x2e1c(0x16)][_0x2e1c(0x49)]||{}},'metadata':{'appName':_0x887f1c[_0x2e1c(0x14)],'collectedAt':new Date(_0x887f1c[_0x2e1c(0x15)])[_0x2e1c(0x4a)](),'dataVersion':_0x1a8e3c[_0x2e1c(0x4b)]}};};exports['formatLLMDataForDeveloper']=formatLLMDataForDeveloper;function _0x4c7c(){const _0x4c90e7=['defineProperty','__esModule','storeLLMData','sendLLMDataToBackend','requestLLMDataForDeveloper','getLLMData','getAllLLMDataKeys','formatLLMDataForDeveloper','clearLLMData','@onairos:llm_metadata','❌\x20Failed\x20to\x20store\x20LLM\x20data:','pRoSX','rUZsh','connected','AAttG','log','default','setItem','stringify','email','appName','timestamp','data','length','mTfgB','📊\x20Data\x20size:\x20','error','mmHgs','GCdLt','ℹ️\x20No\x20LLM\x20data\x20found\x20for\x20user:','✅\x20Retrieved\x20LLM\x20data\x20for\x20user:','❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:','VTdSC','QfDOU','getItem','tQemz','parse','MyUUD','AASNl','immtu','❌\x20Failed\x20to\x20clear\x20LLM\x20data:','❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:','FDddq','sLiDM','GZoYU','❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:','getLLMMetadata','llm','chatgpt','🔍\x20Platform\x20connection\x20check:','RJAEE','⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','RgbID','vvyHu','entries','filter','map','includes','CNGfV','hmQlA','jVYBm','SYNng','warn','✅\x20Updated\x20LLM\x20status\x20to:\x20','✅\x20LLM\x20data\x20cleared\x20for\x20user:','removeItem','xZbWD','hasOnlyLLMConnection','NFwTB','userId','AVgrC','chatHistory','preferences','customData','toISOString','QxqRZ','📡\x20Sending\x20LLM\x20data\x20to\x20backend\x20for\x20processing...','1.0','✅\x20Backend\x20received\x20and\x20stored\x20LLM\x20data:','BxLub','TrYQZ','API_CONFIG','BASE_URL','lCrHB','Bearer\x20','Mtnrp','refreshToken','tokenExpiry','FRkfO','json','message','connectionId','eLdBn','etAQO','text','❌\x20Backend\x20data\x20ingestion\x20failed:','Backend\x20error:\x20','status','❌\x20Failed\x20to\x20send\x20data\x20to\x20backend:','MOslX','❌\x20Failed\x20to\x20update\x20LLM\x20status:','📤\x20Requesting\x20backend\x20to\x20send\x20LLM\x20data\x20to\x20developer...','❌\x20Failed\x20to\x20request\x20LLM\x20data:','❌\x20Failed\x20to\x20request\x20LLM\x20data\x20from\x20backend:','FVibQ','dmIGH','/llmdata/request','mvTFd','token','XFhrg','Unknown\x20error','pyzVz','getAllKeys','startsWith'];_0x4c7c=function(){return _0x4c90e7;};return _0x4c7c();}const sendLLMDataToBackend=async(_0x1ccec3,_0x505791)=>{const _0x4e3ae2={'BxLub':_0x2e1c(0x4c),'TrYQZ':function(_0x3a3962,_0x2b076e,_0x243440){return _0x3a3962(_0x2b076e,_0x243440);},'lCrHB':function(_0x3dd2f6,_0x2e7470){return _0x3dd2f6&&_0x2e7470;},'asqCA':_0x2e1c(0x2f),'Mtnrp':_0x2e1c(0x30),'FRkfO':_0x2e1c(0x4d),'fXmvK':_0x2e1c(0x4e),'eLdBn':function(_0x507114,_0x1ec06c){return _0x507114===_0x1ec06c;},'etAQO':'ShOJe','GRQfd':'oYSGj','MOslX':function(_0x5e6fb1,_0x58983c){return _0x5e6fb1 instanceof _0x58983c;}};try{console[_0x2e1c(0xf)](_0x4e3ae2[_0x2e1c(0x4f)]);const _0x29cd7c=await _0x4e3ae2[_0x2e1c(0x50)](fetch,_api[_0x2e1c(0x51)][_0x2e1c(0x52)]+'/llmdata',{'method':'POST','headers':{'Content-Type':'application/json',..._0x4e3ae2[_0x2e1c(0x53)](_0x505791,{'Authorization':_0x2e1c(0x54)+_0x505791})},'body':JSON[_0x2e1c(0x12)]({'userId':_0x1ccec3[_0x2e1c(0x45)],'email':_0x1ccec3[_0x2e1c(0x13)],'appName':_0x1ccec3['appName'],'platform':_0x4e3ae2['asqCA'],'connectionType':_0x4e3ae2[_0x2e1c(0x55)],'timestamp':new Date()[_0x2e1c(0x4a)](),'data':_0x1ccec3[_0x2e1c(0x16)],'accessToken':_0x1ccec3['accessToken'],'refreshToken':_0x1ccec3[_0x2e1c(0x56)],'tokenExpiry':_0x1ccec3[_0x2e1c(0x57)],'metadata':{'collectedAt':new Date(_0x1ccec3[_0x2e1c(0x15)])[_0x2e1c(0x4a)](),'dataVersion':_0x4e3ae2[_0x2e1c(0x58)]}})});if(_0x29cd7c['ok']){const _0x484824=await _0x29cd7c[_0x2e1c(0x59)]();return console[_0x2e1c(0xf)](_0x4e3ae2['fXmvK'],_0x484824),{'success':!![],'message':_0x484824[_0x2e1c(0x5a)],'connectionId':_0x484824[_0x2e1c(0x5b)]};}else{if(_0x4e3ae2[_0x2e1c(0x5c)](_0x4e3ae2[_0x2e1c(0x5d)],_0x4e3ae2['GRQfd']))return _0x26d7e3&&_0x1563fb[_0x2e1c(0x1)]?_0x16628e:{'default':_0x480e8a};else{const _0x18299d=await _0x29cd7c[_0x2e1c(0x5e)]();return console[_0x2e1c(0x1a)](_0x2e1c(0x5f),_0x29cd7c['status'],_0x18299d),{'success':![],'message':_0x2e1c(0x60)+_0x29cd7c[_0x2e1c(0x61)]};}}}catch(_0x128212){return console[_0x2e1c(0x1a)](_0x2e1c(0x62),_0x128212),{'success':![],'message':_0x4e3ae2[_0x2e1c(0x63)](_0x128212,Error)?_0x128212[_0x2e1c(0x5a)]:'Unknown\x20error'};}};exports[_0x2e1c(0x3)]=sendLLMDataToBackend;const requestLLMDataForDeveloper=async(_0x33cc1b,_0x4f4843,_0x46b271,_0x3c6162,_0x256ea5)=>{const _0x1c1aa2={'pyzVz':_0x2e1c(0x64),'FVibQ':_0x2e1c(0x65),'dmIGH':function(_0x19c875,_0x5e6e89,_0x10854f){return _0x19c875(_0x5e6e89,_0x10854f);},'mvTFd':'✅\x20Backend\x20processing\x20LLM\x20data\x20request:','IaJCE':_0x2e1c(0x66),'TqtNW':'NyEwV','XFhrg':_0x2e1c(0x67),'WAhWE':function(_0x2c6cc7,_0x322ac7){return _0x2c6cc7 instanceof _0x322ac7;}};try{console[_0x2e1c(0xf)](_0x1c1aa2[_0x2e1c(0x68)]);const _0x373f14=await _0x1c1aa2[_0x2e1c(0x69)](fetch,_api[_0x2e1c(0x51)][_0x2e1c(0x52)]+_0x2e1c(0x6a),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x2e1c(0x54)+_0x256ea5},'body':JSON[_0x2e1c(0x12)]({'userId':_0x33cc1b,'email':_0x4f4843,'appName':_0x46b271,'requestedData':_0x3c6162,'timestamp':new Date()[_0x2e1c(0x4a)]()})});if(_0x373f14['ok']){const _0x549c99=await _0x373f14[_0x2e1c(0x59)]();return console[_0x2e1c(0xf)](_0x1c1aa2[_0x2e1c(0x6b)],_0x549c99),{'success':!![],'message':_0x549c99[_0x2e1c(0x5a)],'apiUrl':_0x549c99['apiUrl'],'token':_0x549c99[_0x2e1c(0x6c)]};}else{const _0x2831f5=await _0x373f14[_0x2e1c(0x5e)]();return console[_0x2e1c(0x1a)](_0x1c1aa2['IaJCE'],_0x373f14[_0x2e1c(0x61)],_0x2831f5),{'success':![],'message':_0x2e1c(0x60)+_0x373f14[_0x2e1c(0x61)]};}}catch(_0x485b2e){return _0x1c1aa2['TqtNW']===_0x1c1aa2['TqtNW']?(console['error'](_0x1c1aa2[_0x2e1c(0x6d)],_0x485b2e),{'success':![],'message':_0x1c1aa2['WAhWE'](_0x485b2e,Error)?_0x485b2e[_0x2e1c(0x5a)]:_0x2e1c(0x6e)}):(_0x2de027[_0x2e1c(0x1a)](_0x1c1aa2[_0x2e1c(0x6f)],_0x4c0a4a),![]);}};exports[_0x2e1c(0x4)]=requestLLMDataForDeveloper;const getAllLLMDataKeys=async()=>{try{const _0x565564=await _asyncStorage['default'][_0x2e1c(0x70)](),_0x2e54d3=_0x565564[_0x2e1c(0x37)](_0x358bfc=>_0x358bfc[_0x2e1c(0x71)](LLM_DATA_STORAGE_KEY)||_0x358bfc[_0x2e1c(0x71)](LLM_METADATA_STORAGE_KEY));return _0x2e54d3;}catch(_0x2d26de){return console['error'](_0x2e1c(0x29),_0x2d26de),[];}};exports[_0x2e1c(0x6)]=getAllLLMDataKeys;
|
|
@@ -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
|
-
Object[
|
|
8
|
+
function _0x4ba5(_0x188042,_0x4ba5a6){_0x188042=_0x188042-0x0;const _0x4467c3=_0x1880();let _0x24c5d6=_0x4467c3[_0x188042];return _0x24c5d6;}Object[_0x4ba5(0x0)](exports,'__esModule',{'value':!![]}),exports['startEnochTrainingWithYouTubeCheck']=exports['startEnochTraining']=exports[_0x4ba5(0x1)]=exports['getTrainingStatus']=exports[_0x4ba5(0x2)]=exports['getModelInfo']=exports[_0x4ba5(0x3)]=void 0x0;var _authService=__ONAIROS_REQ_FUNC__(0x0),_api=__ONAIROS_REQ_FUNC__(0x1);const API_BASE_URL=''+_api[_0x4ba5(0x4)][_0x4ba5(0x5)],getTrainingStatus=async _0x327130=>{const _0x2cd527={'bfpNZ':_0x4ba5(0x6),'fnuEv':_0x4ba5(0x7),'XLsTF':function(_0x15a0b8,_0x2f4695){return _0x15a0b8===_0x2f4695;},'ZElwJ':'cvygC','ZBfOd':_0x4ba5(0x8),'tajBS':'No\x20authentication\x20token\x20available','TDqYl':_0x4ba5(0x9),'eENDV':_0x4ba5(0xa)};try{if(_0x2cd527[_0x4ba5(0xb)](_0x2cd527['ZElwJ'],_0x2cd527[_0x4ba5(0xc)])){const _0x58f8d9=await(0x0,_authService[_0x4ba5(0xd)])();if(!_0x58f8d9){if(_0x4ba5(0x8)===_0x2cd527[_0x4ba5(0xe)])throw new Error(_0x2cd527[_0x4ba5(0xf)]);else{_0x15071d['error'](_0x2cd527[_0x4ba5(0x10)],_0x7cd885);throw _0x2d5197;}}const _0x2c698=await fetch(API_BASE_URL+_0x4ba5(0x11)+_0x327130,{'method':'GET','headers':{'Authorization':_0x58f8d9,'Content-Type':'application/json'}});if(!_0x2c698['ok']){const _0x473045=await _0x2c698['json']();throw new Error(_0x473045[_0x4ba5(0x12)]||'HTTP\x20'+_0x2c698['status']);}return await _0x2c698['json']();}else{_0x43c3ac[_0x4ba5(0x12)](_0x2cd527[_0x4ba5(0x13)],_0x214c4b);throw _0x1d5a65;}}catch(_0xbc3170){if(_0x2cd527[_0x4ba5(0x14)]!==_0x2cd527[_0x4ba5(0x14)])return _0x3de67c[_0x4ba5(0x15)]('⚠️\x20Could\x20not\x20get\x20training\x20features:',_0x3aca39),null;else{console[_0x4ba5(0x12)](_0x2cd527[_0x4ba5(0x16)],_0xbc3170);throw _0xbc3170;}}};exports['getTrainingStatus']=getTrainingStatus;const getModelInfo=async()=>{const _0x41d833={'SUfcV':_0x4ba5(0x17),'eumuV':function(_0x553db0,_0x3ebac5,_0x4a53f7){return _0x553db0(_0x3ebac5,_0x4a53f7);},'ljyKf':_0x4ba5(0x7)};try{const _0x2633fb=await(0x0,_authService[_0x4ba5(0xd)])();if(!_0x2633fb)throw new Error(_0x41d833[_0x4ba5(0x18)]);const _0xad104d=await _0x41d833[_0x4ba5(0x19)](fetch,API_BASE_URL+_0x4ba5(0x1a),{'method':'GET','headers':{'Authorization':_0x2633fb,'Content-Type':'application/json'}});if(!_0xad104d['ok']){const _0x4fbb02=await _0xad104d[_0x4ba5(0x1b)]();throw new Error(_0x4fbb02[_0x4ba5(0x12)]||_0x4ba5(0x1c)+_0xad104d['status']);}return await _0xad104d[_0x4ba5(0x1b)]();}catch(_0x4fae94){console[_0x4ba5(0x12)](_0x41d833[_0x4ba5(0x1d)],_0x4fae94);throw _0x4fae94;}};exports[_0x4ba5(0x1e)]=getModelInfo;const getHealthCheck=async()=>{const _0x1eed51={'nFNKE':function(_0x39dee2,_0xaba2ae){return _0x39dee2!==_0xaba2ae;},'twpHG':_0x4ba5(0x1f),'PiveP':_0x4ba5(0x20),'oTYeG':function(_0x59fe63,_0x2adc6b,_0x59d51b){return _0x59fe63(_0x2adc6b,_0x59d51b);},'sDqsi':_0x4ba5(0x21)};try{if(_0x1eed51[_0x4ba5(0x22)](_0x1eed51[_0x4ba5(0x23)],_0x1eed51['PiveP'])){const _0x3c6899=await _0x1eed51[_0x4ba5(0x24)](fetch,API_BASE_URL+'/mobile-training/health',{'method':'GET','headers':{'Content-Type':'application/json'}});if(!_0x3c6899['ok']){const _0x26d26=await _0x3c6899['json']();throw new Error(_0x26d26[_0x4ba5(0x12)]||_0x4ba5(0x1c)+_0x3c6899[_0x4ba5(0x25)]);}return await _0x3c6899[_0x4ba5(0x1b)]();}else{const _0x53cc14=_0x9274c7[_0x4ba5(0x26)](_0x1862f6);throw new _0x1578dc(_0x53cc14[_0x4ba5(0x12)]||'HTTP\x20'+_0x59f711[_0x4ba5(0x25)]);}}catch(_0x1ccf3b){console[_0x4ba5(0x12)](_0x1eed51[_0x4ba5(0x27)],_0x1ccf3b);throw _0x1ccf3b;}};exports[_0x4ba5(0x3)]=getHealthCheck;const startEnochTrainingWithYouTubeCheck=async _0x47bae0=>{const _0x5145bc={'QsgpN':_0x4ba5(0x17),'lTwAF':_0x4ba5(0x28),'bvkYw':_0x4ba5(0x29),'ZDTRI':_0x4ba5(0x2a),'yHdzd':'(backend\x20auto-handles\x20YouTube)','MUXGJ':_0x4ba5(0x2b),'UYfyx':_0x4ba5(0x2c),'LjHnG':_0x4ba5(0x2d),'fIvaQ':_0x4ba5(0x2e),'VjbRZ':_0x4ba5(0x2f),'dwhVg':function(_0x21fd9e,_0x4f0b05){return _0x21fd9e(_0x4f0b05);}};try{if(_0x5145bc[_0x4ba5(0x30)]===_0x5145bc[_0x4ba5(0x31)])throw new _0x34aab3(_0x5145bc[_0x4ba5(0x32)]);else return console[_0x4ba5(0x33)](_0x5145bc[_0x4ba5(0x34)],_0x47bae0[_0x4ba5(0x35)],_0x5145bc['yHdzd']),console[_0x4ba5(0x33)](_0x5145bc[_0x4ba5(0x36)]),console[_0x4ba5(0x33)](_0x5145bc[_0x4ba5(0x37)]),console[_0x4ba5(0x33)](_0x5145bc[_0x4ba5(0x38)]),console[_0x4ba5(0x33)](_0x5145bc[_0x4ba5(0x39)]),console[_0x4ba5(0x33)](_0x5145bc[_0x4ba5(0x3a)]),await _0x5145bc[_0x4ba5(0x3b)](startEnochTraining,_0x47bae0);}catch(_0xa05f94){console[_0x4ba5(0x12)](_0x4ba5(0x3c),_0xa05f94);throw _0xa05f94;}};exports[_0x4ba5(0x3d)]=startEnochTrainingWithYouTubeCheck;const startEnochTraining=async _0x5502c3=>{const _0x5e7c6d={'WeXSh':_0x4ba5(0x3e),'FaAYa':_0x4ba5(0x17),'WFrwn':'OkQgL','fCQsW':_0x4ba5(0x3f),'qBSVe':function(_0x1723cd,_0x589455,_0x9139){return _0x1723cd(_0x589455,_0x9139);},'ZDwnH':_0x4ba5(0x40),'wIlul':'❌\x20Training\x20API\x20failed\x20with\x20status:','ShfiJ':_0x4ba5(0x41),'oFFpu':function(_0x1367a7,_0x30b959){return _0x1367a7!==_0x30b959;},'nrDjG':_0x4ba5(0x42),'xaCls':_0x4ba5(0x6)};try{const _0x21301f=await(0x0,_authService[_0x4ba5(0xd)])();if(!_0x21301f){if(_0x4ba5(0x43)===_0x5e7c6d[_0x4ba5(0x44)])return _0x36724c[_0x4ba5(0x15)](_0x5e7c6d[_0x4ba5(0x45)],_0x3162da),![];else throw new Error(_0x5e7c6d[_0x4ba5(0x46)]);}console['log'](_0x5e7c6d[_0x4ba5(0x47)],_0x5502c3);const _0x19ff72=await _0x5e7c6d['qBSVe'](fetch,API_BASE_URL+_0x4ba5(0x48),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x21301f},'body':JSON[_0x4ba5(0x49)](_0x5502c3)});console['log'](_0x5e7c6d[_0x4ba5(0x4a)],_0x19ff72[_0x4ba5(0x25)]);if(!_0x19ff72['ok']){const _0x273109=await _0x19ff72[_0x4ba5(0x4b)]();console[_0x4ba5(0x12)](_0x5e7c6d[_0x4ba5(0x4c)],_0x19ff72['status'],_0x5e7c6d[_0x4ba5(0x4d)],_0x273109);try{const _0x2dc998=JSON['parse'](_0x273109);throw new Error(_0x2dc998[_0x4ba5(0x12)]||_0x4ba5(0x1c)+_0x19ff72[_0x4ba5(0x25)]);}catch(_0x9ce637){throw new Error('Training\x20API\x20failed:\x20'+_0x19ff72[_0x4ba5(0x25)]+'\x20-\x20'+_0x273109);}}const _0x4de3a6=await _0x19ff72[_0x4ba5(0x1b)]();return console[_0x4ba5(0x33)](_0x4ba5(0x4e),_0x4de3a6),_0x4de3a6;}catch(_0x146550){if(_0x5e7c6d['oFFpu'](_0x5e7c6d['nrDjG'],_0x5e7c6d[_0x4ba5(0x4f)]))throw new _0x1b3f87(_0x5e7c6d[_0x4ba5(0x46)]);else{console[_0x4ba5(0x12)](_0x5e7c6d[_0x4ba5(0x50)],_0x146550);throw _0x146550;}}};exports[_0x4ba5(0x51)]=startEnochTraining;const isTrainingInProgress=async _0xd69c25=>{const _0xcb94bf={'Udbvi':_0x4ba5(0xa),'bSeEq':function(_0x588854,_0x589507){return _0x588854===_0x589507;},'kfJsF':_0x4ba5(0x52),'ASklt':_0x4ba5(0x3e)};try{if(_0xcb94bf[_0x4ba5(0x53)](_0xcb94bf['kfJsF'],_0x4ba5(0x52))){const _0x27f3ae=await getTrainingStatus(_0xd69c25);return _0x27f3ae['success']&&_0x27f3ae['isTraining'];}else{_0x6c0b83[_0x4ba5(0x12)](_0xcb94bf[_0x4ba5(0x54)],_0xc6748c);throw _0x217466;}}catch(_0x46c507){return console[_0x4ba5(0x15)](_0xcb94bf[_0x4ba5(0x55)],_0x46c507),![];}};exports['isTrainingInProgress']=isTrainingInProgress;const getTrainingFeatures=async()=>{try{const _0x1d5b07=await getHealthCheck();return _0x1d5b07[_0x4ba5(0x56)];}catch(_0x30e7f3){return console['warn'](_0x4ba5(0x57),_0x30e7f3),null;}};exports[_0x4ba5(0x2)]=getTrainingFeatures;function _0x1880(){const _0x1360b4=['defineProperty','isTrainingInProgress','getTrainingFeatures','getHealthCheck','API_CONFIG','BASE_URL','❌\x20Training\x20start\x20error:','❌\x20Failed\x20to\x20get\x20model\x20info:','rhQBq','GtJuo','❌\x20Failed\x20to\x20get\x20training\x20status:','XLsTF','ZElwJ','getAuthToken','ZBfOd','tajBS','bfpNZ','/mobile-training/status/','error','fnuEv','TDqYl','warn','eENDV','No\x20authentication\x20token\x20available','SUfcV','eumuV','/mobile-training/model-info','json','HTTP\x20','ljyKf','getModelInfo','YHTmH','LdaLO','❌\x20Failed\x20to\x20get\x20health\x20check:','nFNKE','twpHG','oTYeG','status','parse','sDqsi','uPsoP','tgnjx','🚀\x20Starting\x20Enoch\x20training\x20for\x20user:','🚀\x20[TRAINING]\x20Starting\x20training\x20-\x20backend\x20handles\x20all\x20YouTube\x20cases\x20automatically','ℹ️\x20[TRAINING]\x20No\x20migration\x20checks\x20needed:','\x20\x20\x20-\x20Temporary\x20mode\x20connections:\x20Work\x20automatically\x20✅','\x20\x20\x20-\x20Full\x20refresh\x20tokens:\x20Auto-refresh\x20when\x20expired\x20✅','\x20\x20\x20-\x20Backend\x20validation:\x20Handles\x20all\x20edge\x20cases\x20✅','lTwAF','bvkYw','QsgpN','log','ZDTRI','username','MUXGJ','UYfyx','LjHnG','fIvaQ','VjbRZ','dwhVg','❌\x20Training\x20error:','startEnochTrainingWithYouTubeCheck','⚠️\x20Could\x20not\x20check\x20training\x20status:','📤\x20Sending\x20training\x20data\x20to\x20/mobile-training/enoch:','📡\x20Training\x20API\x20response\x20status:','Error:','qOsjS','OZdjH','WFrwn','WeXSh','FaAYa','fCQsW','/mobile-training/enoch','stringify','ZDwnH','text','wIlul','ShfiJ','📡\x20Training\x20API\x20response:','nrDjG','xaCls','startEnochTraining','TUvUO','bSeEq','Udbvi','ASklt','features','⚠️\x20Could\x20not\x20get\x20training\x20features:'];_0x1880=function(){return _0x1360b4;};return _0x1880();}
|
|
@@ -8,4 +8,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
8
8
|
require("../config/api")
|
|
9
9
|
];
|
|
10
10
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
11
|
-
Object[_0x234e(0x0)](exports,_0x234e(0x1),{'value':!![]}),exports[_0x234e(0x2)]=exports[_0x234e(0x3)]=exports[_0x234e(0x4)]=exports[_0x234e(0x5)]=exports[_0x234e(0x6)]=exports[_0x234e(0x7)]=void 0x0;var _reactNative=__ONAIROS_REQ_FUNC__(0x0),_secureStorage=__ONAIROS_REQ_FUNC__(0x1),_crypto=__ONAIROS_REQ_FUNC__(0x2),_api=__ONAIROS_REQ_FUNC__(0x3),_api2=__ONAIROS_REQ_FUNC__(0x4);const OAUTH_CONFIGS={'instagram':{'clientId':_0x234e(0x8),'redirectUri':_0x234e(0x9),'scope':_0x234e(0xa),'authorizationEndpoint':_0x234e(0xb),'tokenEndpoint':_0x234e(0xc),'responseType':'code'},'youtube':{'clientId':_0x234e(0xd),'redirectUri':'onairosanime://auth/youtube','scope':_0x234e(0xe),'authorizationEndpoint':_0x234e(0xf),'tokenEndpoint':_0x234e(0x10),'responseType':'code'},'pinterest':{'clientId':'YOUR_PINTEREST_CLIENT_ID','redirectUri':'onairosanime://auth/pinterest','scope':'boards:read,pins:read','authorizationEndpoint':_0x234e(0x11),'tokenEndpoint':_0x234e(0x12),'responseType':_0x234e(0x13)},'reddit':{'clientId':'YOUR_REDDIT_CLIENT_ID','redirectUri':'onairosanime://auth/reddit','scope':_0x234e(0x14),'authorizationEndpoint':_0x234e(0x15),'tokenEndpoint':_0x234e(0x16),'responseType':'code'}},generateState=()=>{const _0x1d776a=Math[_0x234e(0x17)]()[_0x234e(0x18)](0x24)[_0x234e(0x19)](0x2,0xf);return(0x0,_crypto['sha256'])(_0x1d776a)[_0x234e(0x19)](0x0,0xa);},initializeOAuthService=()=>{_reactNative[_0x234e(0x1a)][_0x234e(0x1b)](_0x234e(0x1c),handleDeepLink);};exports[_0x234e(0x3)]=initializeOAuthService;const cleanupOAuthService=()=>{const _0x3e0c37={'mnVJq':function(_0x139f41,_0x4a08d3){return _0x139f41===_0x4a08d3;},'OBEnO':_0x234e(0x1d),'FTbgI':_0x234e(0x1c)};_0x3e0c37['mnVJq'](typeof _reactNative[_0x234e(0x1a)]['removeAllListeners'],_0x3e0c37[_0x234e(0x1e)])&&_reactNative[_0x234e(0x1a)][_0x234e(0x1f)](_0x3e0c37[_0x234e(0x20)]);};exports[_0x234e(0x6)]=cleanupOAuthService;let currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;const handleDeepLink=async _0x263ad1=>{const _0x30a27a={'zcYGx':function(_0x4d6d95,_0xd1f3aa){return _0x4d6d95===_0xd1f3aa;},'oOAzV':_0x234e(0x1c),'EUPjN':_0x234e(0x21),'oXPkq':_0x234e(0x22),'zzuhw':'hNVfX','tQbto':function(_0xf4bf1e,_0x5e2d8e){return _0xf4bf1e!==_0x5e2d8e;},'SaMvi':_0x234e(0x23),'pecqm':_0x234e(0x24),'CxvdN':function(_0xe01682,_0x4d40d3){return _0xe01682!==_0x4d40d3;},'WsHsi':function(_0x6eadf5,_0x197c82){return _0x6eadf5!==_0x197c82;},'HXcHC':_0x234e(0x25),'imDXt':function(_0x3883dc,_0x38d216){return _0x3883dc(_0x38d216);},'psllm':_0x234e(0x26),'rgJJn':_0x234e(0x27),'kxtXK':_0x234e(0x28),'djRrJ':function(_0x3f5542,_0x1ea1f6,_0x4aac5b){return _0x3f5542(_0x1ea1f6,_0x4aac5b);},'tZfIB':function(_0xd9a3a6,_0x189994){return _0xd9a3a6(_0x189994);},'wnbjn':'Error\x20handling\x20OAuth\x20deep\x20link:','TlSTx':'HkqLd','SzdpA':'pdHyl'};try{const {url:_0x206299}=_0x263ad1;if(!_0x206299[_0x234e(0x29)](_0x30a27a[_0x234e(0x2a)])){if(_0x30a27a[_0x234e(0x2b)]!==_0x234e(0x2c))_0x1df712=null,_0x29618a=null,_0x36eb22=null,_0x55fe55=null;else return;}const _0x5d17ee=_0x206299['split'](_0x30a27a[_0x234e(0x2a)])[0x1][_0x234e(0x2d)]('?')[0x0];if(_0x30a27a[_0x234e(0x2e)](_0x5d17ee,currentOAuthPlatform))return;const _0x566368=new URL(_0x206299)['searchParams'],_0x2fd67d=_0x566368[_0x234e(0x2f)]('code'),_0x10e952=_0x566368[_0x234e(0x2f)](_0x30a27a['SaMvi']),_0x3b9ea2=_0x566368['get'](_0x30a27a['pecqm']);if(_0x30a27a[_0x234e(0x30)](_0x10e952,currentOAuthState)){currentOAuthReject&&(_0x30a27a['WsHsi'](_0x30a27a['HXcHC'],_0x30a27a[_0x234e(0x31)])?_0x30a27a[_0x234e(0x32)](typeof _0xf2e229[_0x234e(0x1a)][_0x234e(0x1f)],_0x234e(0x1d))&&_0x28b0af[_0x234e(0x1a)][_0x234e(0x1f)](_0x30a27a[_0x234e(0x33)]):_0x30a27a[_0x234e(0x34)](currentOAuthReject,new Error(_0x30a27a[_0x234e(0x35)])));return;}if(_0x3b9ea2){if(currentOAuthReject){if(_0x30a27a['WsHsi']('DvtuS',_0x30a27a[_0x234e(0x36)]))_0x30a27a[_0x234e(0x34)](currentOAuthReject,new Error(_0x234e(0x37)+_0x3b9ea2));else{_0x3544f8[_0x234e(0x24)](_0x234e(0x38)+_0x38c610+'):',_0x191e18);throw _0x4b11d8;}}return;}if(_0x2fd67d){if(_0x30a27a['kxtXK']!==_0x234e(0x39)){const _0x4f4d33=await _0x30a27a['djRrJ'](exchangeCodeForToken,_0x5d17ee,_0x2fd67d);currentOAuthResolve&¤tOAuthResolve(_0x4f4d33);}else _0x1b4b96&&_0x45d702(new _0x4194d9(_0x30a27a[_0x234e(0x3a)]));}else currentOAuthReject&&_0x30a27a[_0x234e(0x3b)](currentOAuthReject,new Error(_0x30a27a['EUPjN']));}catch(_0x1a1622){console[_0x234e(0x24)](_0x30a27a[_0x234e(0x3c)],_0x1a1622),currentOAuthReject&&_0x30a27a['tZfIB'](currentOAuthReject,_0x1a1622);}finally{if(_0x30a27a[_0x234e(0x30)](_0x30a27a[_0x234e(0x3d)],_0x30a27a['SzdpA']))currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;else return _0x5ab3d8[_0x234e(0x24)](_0x234e(0x3e)+_0x3d6c73+'):',_0x3c6f30),![];}},exchangeCodeForToken=async(_0x1ac308,_0x47896c)=>{const _0x3317a7={'WBtGm':_0x234e(0x1c),'WjaeT':_0x234e(0x3f),'OXONW':'authorization_code','FaVKM':function(_0x548e25,_0x891167,_0x2b12bb){return _0x548e25(_0x891167,_0x2b12bb);},'mlLOL':_0x234e(0x40),'jOhvx':function(_0x226eb,_0x2a1d75){return _0x226eb===_0x2a1d75;},'BriuR':_0x234e(0x41)};try{if(_0x3317a7['WjaeT']!==_0x234e(0x3f))_0x23374d[_0x234e(0x1a)]['removeAllListeners'](_0x3317a7[_0x234e(0x42)]);else{const _0x3bd27e=OAUTH_CONFIGS[_0x1ac308];if(!_0x3bd27e)throw new Error('Unsupported\x20platform:\x20'+_0x1ac308);const _0x4fca1d=new URLSearchParams({'grant_type':_0x3317a7[_0x234e(0x43)],'code':_0x47896c,'redirect_uri':_0x3bd27e[_0x234e(0x44)],'client_id':_0x3bd27e[_0x234e(0x45)]}),_0x136644=await _0x3317a7['FaVKM'](fetch,_0x3bd27e[_0x234e(0x46)],{'method':'POST','headers':{'Content-Type':_0x3317a7[_0x234e(0x47)]},'body':_0x4fca1d['toString']()}),_0x3a0ce1=await _0x136644['json']();if(!_0x136644['ok']){if(_0x3317a7[_0x234e(0x48)](_0x234e(0x49),_0x234e(0x49)))throw new Error(_0x3a0ce1[_0x234e(0x24)]||_0x3317a7[_0x234e(0x4a)]);else{_0x1beb53[_0x234e(0x24)](_0x234e(0x4b)+_0x5bd048+'):',_0x2e3116);throw _0x37a67e;}}const _0xe11a8e=await _0x3317a7[_0x234e(0x4c)](fetchUserInfo,_0x1ac308,_0x3a0ce1['access_token']);return{'token':_0x3a0ce1['access_token'],'refreshToken':_0x3a0ce1[_0x234e(0x4d)],'expiresIn':_0x3a0ce1[_0x234e(0x4e)],'username':_0xe11a8e['username'],'userId':_0xe11a8e['id']};}}catch(_0x1af791){console[_0x234e(0x24)]('Error\x20exchanging\x20code\x20for\x20token\x20('+_0x1ac308+'):',_0x1af791);throw _0x1af791;}},fetchUserInfo=async(_0x541b52,_0x36f487)=>{const _0x5a1001={'aLyke':_0x234e(0x1c),'dVFyC':_0x234e(0x4f),'JlFaZ':'https://graph.instagram.com/me?fields=id,username','RhiUe':_0x234e(0x50),'XOcCG':_0x234e(0x51),'lstNd':_0x234e(0x52),'LYDjb':'https://oauth.reddit.com/api/v1/me','pgJZv':function(_0x58e6b4,_0x25b72e){return _0x58e6b4!==_0x25b72e;},'sOCdO':'hxgye','lzwyB':'Failed\x20to\x20fetch\x20user\x20info','VOLPC':_0x234e(0x53),'wawTc':'wvLEG'};try{let _0x47cab7,_0x41f799={'Authorization':_0x234e(0x54)+_0x36f487};switch(_0x541b52){case _0x5a1001['dVFyC']:_0x47cab7=_0x5a1001['JlFaZ'];break;case _0x5a1001[_0x234e(0x55)]:_0x47cab7=_0x234e(0x56);break;case _0x234e(0x53):_0x47cab7=_0x5a1001['XOcCG'];break;case _0x5a1001[_0x234e(0x57)]:_0x47cab7=_0x5a1001[_0x234e(0x58)];break;default:throw new Error(_0x234e(0x59)+_0x541b52);}const _0x17ad97=await fetch(_0x47cab7,{'headers':_0x41f799}),_0x3893e7=await _0x17ad97[_0x234e(0x5a)]();if(!_0x17ad97['ok']){if(_0x5a1001['pgJZv'](_0x5a1001[_0x234e(0x5b)],'ZWkja'))throw new Error(_0x3893e7[_0x234e(0x24)]||_0x5a1001[_0x234e(0x5c)]);else _0x15ce7b[_0x234e(0x1a)][_0x234e(0x1b)](_0x5a1001[_0x234e(0x5d)],_0x51286a);}switch(_0x541b52){case _0x5a1001['dVFyC']:return{'id':_0x3893e7['id'],'username':_0x3893e7[_0x234e(0x5e)]};case _0x234e(0x50):return{'id':_0x3893e7['items'][0x0]['id'],'username':_0x3893e7[_0x234e(0x5f)][0x0][_0x234e(0x60)][_0x234e(0x61)]};case _0x5a1001[_0x234e(0x62)]:return{'id':_0x3893e7['id'],'username':_0x3893e7[_0x234e(0x5e)]||_0x3893e7[_0x234e(0x63)]};case _0x5a1001[_0x234e(0x57)]:return{'id':_0x3893e7['id'],'username':_0x3893e7['name']};default:throw new Error(_0x234e(0x59)+_0x541b52);}}catch(_0x746f7b){if(_0x5a1001[_0x234e(0x64)]!==_0x5a1001[_0x234e(0x64)])throw new _0x5cbc05(_0x234e(0x59)+_0x363272);else{console[_0x234e(0x24)](_0x234e(0x4b)+_0x541b52+'):',_0x746f7b);throw _0x746f7b;}}},connectPlatform=_0x5c95ce=>{const _0x4f41ba={'xmjQj':_0x234e(0x65),'anNzX':function(_0x12a9e1,_0x79717a){return _0x12a9e1(_0x79717a);},'evfeI':function(_0x4d63b7,_0x433fd6){return _0x4d63b7===_0x433fd6;},'Ksvhv':'redirect_uri','qEafi':_0x234e(0x66),'CFXtP':_0x234e(0x67),'wFaYb':_0x234e(0x23),'ZIKVd':function(_0x273197,_0x438e8b){return _0x273197(_0x438e8b);}};return new Promise((_0x56a237,_0x78b8e4)=>{try{if(_0x4f41ba[_0x234e(0x68)]('OpExr',_0x234e(0x69))){const _0x231172=OAUTH_CONFIGS[_0x5c95ce];if(!_0x231172)throw new Error(_0x234e(0x59)+_0x5c95ce);const _0xd2f98a=generateState(),_0x329bbb=new URL(_0x231172[_0x234e(0x6a)]);_0x329bbb[_0x234e(0x6b)][_0x234e(0x6c)](_0x234e(0x6d),_0x231172[_0x234e(0x45)]),_0x329bbb['searchParams']['append'](_0x4f41ba['Ksvhv'],_0x231172[_0x234e(0x44)]),_0x329bbb['searchParams'][_0x234e(0x6c)](_0x4f41ba[_0x234e(0x6e)],_0x231172[_0x234e(0x6f)]),_0x329bbb[_0x234e(0x6b)][_0x234e(0x6c)](_0x4f41ba[_0x234e(0x70)],_0x231172['scope']),_0x329bbb[_0x234e(0x6b)][_0x234e(0x6c)](_0x4f41ba[_0x234e(0x71)],_0xd2f98a),currentOAuthState=_0xd2f98a,currentOAuthPlatform=_0x5c95ce,currentOAuthResolve=_0x56a237,currentOAuthReject=_0x78b8e4,_reactNative[_0x234e(0x1a)][_0x234e(0x72)](_0x329bbb[_0x234e(0x18)]());}else _0xc140e[_0x234e(0x24)](_0x4f41ba['xmjQj'],_0x46a560),_0x2fc51d&&_0x4f41ba[_0x234e(0x73)](_0x20c9cb,_0x461338);}catch(_0x935c5f){_0x4f41ba[_0x234e(0x74)](_0x78b8e4,_0x935c5f);}});};exports[_0x234e(0x5)]=connectPlatform;const disconnectPlatform=async(_0x22352e,_0x31316a)=>{const _0x23749f={'MuCGx':function(_0x7d51ae,_0x84740b){return _0x7d51ae!==_0x84740b;},'LfmyX':_0x234e(0x75)};try{await _api['onairosApi'][_0x234e(0x76)](_0x234e(0x77),{'platform':_0x22352e,'username':_0x31316a[_0x234e(0x5e)]});const _0xe2703={..._0x31316a['platforms']};return _0xe2703&&_0x22352e in _0xe2703&&delete _0xe2703[_0x22352e],await(0x0,_secureStorage[_0x234e(0x78)])({..._0x31316a,'platforms':_0xe2703}),!![];}catch(_0x2cb0ad){if(_0x23749f['MuCGx'](_0x234e(0x75),_0x23749f[_0x234e(0x79)]))return;else return console[_0x234e(0x24)]('Error\x20disconnecting\x20platform\x20('+_0x22352e+'):',_0x2cb0ad),![];}};function _0x5f42(){const _0x562893=['defineProperty','__esModule','storePlatformConnection','initializeOAuthService','disconnectPlatform','connectPlatform','cleanupOAuthService','OAuthService','YOUR_INSTAGRAM_CLIENT_ID','onairosanime://auth/instagram','user_profile,user_media','https://api.instagram.com/oauth/authorize','https://api.instagram.com/oauth/access_token','YOUR_YOUTUBE_CLIENT_ID','https://www.googleapis.com/auth/youtube.readonly','https://accounts.google.com/o/oauth2/auth','https://oauth2.googleapis.com/token','https://www.pinterest.com/oauth/','https://api.pinterest.com/v5/oauth/token','code','identity,read','https://www.reddit.com/api/v1/authorize','https://www.reddit.com/api/v1/access_token','random','toString','substring','Linking','addEventListener','url','function','OBEnO','removeAllListeners','FTbgI','No\x20authorization\x20code\x20received','onairosanime://auth/','state','error','VssSg','OAuth\x20state\x20mismatch\x20-\x20possible\x20CSRF\x20attack','NqrGo','exATZ','startsWith','oXPkq','zzuhw','hNVfX','split','tQbto','get','CxvdN','HXcHC','zcYGx','oOAzV','imDXt','psllm','rgJJn','OAuth\x20error:\x20','Error\x20exchanging\x20code\x20for\x20token\x20(','bSEXp','EUPjN','tZfIB','wnbjn','TlSTx','Error\x20storing\x20platform\x20connection\x20(','xkRWh','application/x-www-form-urlencoded','Failed\x20to\x20exchange\x20code\x20for\x20token','WBtGm','OXONW','redirectUri','clientId','tokenEndpoint','mlLOL','jOhvx','wNwuB','BriuR','Error\x20fetching\x20user\x20info\x20(','FaVKM','refresh_token','expires_in','instagram','youtube','https://api.pinterest.com/v5/user_account','reddit','pinterest','Bearer\x20','RhiUe','https://www.googleapis.com/youtube/v3/channels?part=snippet&mine=true','lstNd','LYDjb','Unsupported\x20platform:\x20','json','sOCdO','lzwyB','aLyke','username','items','snippet','title','VOLPC','full_name','wawTc','Error\x20handling\x20OAuth\x20deep\x20link:','response_type','scope','evfeI','OpExr','authorizationEndpoint','searchParams','append','client_id','qEafi','responseType','CFXtP','wFaYb','openURL','anNzX','ZIKVd','rJjtD','post','/users/disconnect-platform','updateCredentials','LfmyX','gtnbv','OhcGv','XuwNg','BGiKI','YmFkW','platforms','userId','token','refreshToken','expiresIn','CjbgF','tZHJc','rrMdr','yBkog','API_CONFIG','BASE_URL'];_0x5f42=function(){return _0x562893;};return _0x5f42();}exports['disconnectPlatform']=disconnectPlatform;const storePlatformConnection=async(_0x19580b,_0xadb0b3,_0x452a6f)=>{const _0x3ff1cc={'rrMdr':function(_0x39194a,_0xbe299b){return _0x39194a===_0xbe299b;},'gtnbv':_0x234e(0x4f),'OhcGv':function(_0x4cd71d,_0x5850f2){return _0x4cd71d===_0x5850f2;},'XuwNg':_0x234e(0x50),'BGiKI':_0x234e(0x53),'YmFkW':_0x234e(0x52),'CjbgF':function(_0x5535d0,_0xe29ca6){return _0x5535d0+_0xe29ca6;},'tZHJc':function(_0x3dd756,_0x17ad2d){return _0x3dd756*_0x17ad2d;},'yBkog':function(_0x2aadb9,_0x3c2fc0){return _0x2aadb9===_0x3c2fc0;}};try{const _0x922ac6=_0x3ff1cc['rrMdr'](_0x19580b,_0x3ff1cc[_0x234e(0x7a)])||_0x3ff1cc[_0x234e(0x7b)](_0x19580b,_0x3ff1cc[_0x234e(0x7c)])||_0x19580b===_0x3ff1cc[_0x234e(0x7d)]||_0x3ff1cc['rrMdr'](_0x19580b,_0x3ff1cc[_0x234e(0x7e)]);if(!_0x922ac6)throw new Error('Unsupported\x20platform:\x20'+_0x19580b);const _0x15f1ba={..._0x452a6f[_0x234e(0x7f)]},_0x3cd16e={'username':_0xadb0b3[_0x234e(0x5e)],'userId':_0xadb0b3[_0x234e(0x80)],'token':_0xadb0b3[_0x234e(0x81)],'refreshToken':_0xadb0b3[_0x234e(0x82)],'expiresAt':_0xadb0b3[_0x234e(0x83)]?_0x3ff1cc[_0x234e(0x84)](Date['now'](),_0x3ff1cc[_0x234e(0x85)](_0xadb0b3['expiresIn'],0x3e8)):null,'connectedAt':Date['now']()};if(_0x3ff1cc[_0x234e(0x86)](_0x19580b,_0x234e(0x4f)))_0x15f1ba['instagram']=_0x3cd16e;else{if(_0x3ff1cc[_0x234e(0x87)](_0x19580b,_0x234e(0x50)))_0x15f1ba[_0x234e(0x50)]=_0x3cd16e;else{if(_0x19580b===_0x3ff1cc[_0x234e(0x7d)])_0x15f1ba[_0x234e(0x53)]=_0x3cd16e;else{if(_0x3ff1cc[_0x234e(0x86)](_0x19580b,_0x3ff1cc[_0x234e(0x7e)]))_0x15f1ba[_0x234e(0x52)]=_0x3cd16e;}}}return await(0x0,_secureStorage[_0x234e(0x78)])({..._0x452a6f,'platforms':_0x15f1ba}),!![];}catch(_0xf5e937){return console['error'](_0x234e(0x3e)+_0x19580b+'):',_0xf5e937),![];}};exports[_0x234e(0x2)]=storePlatformConnection;function _0x234e(_0x5f42be,_0x234e1c){_0x5f42be=_0x5f42be-0x0;const _0x523de2=_0x5f42();let _0x15087c=_0x523de2[_0x5f42be];return _0x15087c;}const OAuthService=exports['OAuthService']={'initializeOAuthService':initializeOAuthService,'cleanupOAuthService':cleanupOAuthService,'connectPlatform':connectPlatform,'disconnectPlatform':disconnectPlatform,'storePlatformConnection':storePlatformConnection,'_apiBaseUrl':''+_api2[_0x234e(0x88)][_0x234e(0x89)]};
|
|
11
|
+
Object[_0x4e5c(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x4e5c(0x1)]=exports[_0x4e5c(0x2)]=exports[_0x4e5c(0x3)]=exports['connectPlatform']=exports['cleanupOAuthService']=exports[_0x4e5c(0x4)]=void 0x0;var _reactNative=__ONAIROS_REQ_FUNC__(0x0),_secureStorage=__ONAIROS_REQ_FUNC__(0x1),_crypto=__ONAIROS_REQ_FUNC__(0x2),_api=__ONAIROS_REQ_FUNC__(0x3),_api2=__ONAIROS_REQ_FUNC__(0x4);function _0x4e5c(_0x5cdf70,_0x4e5cde){_0x5cdf70=_0x5cdf70-0x0;const _0x5dd139=_0x5cdf();let _0x258ae7=_0x5dd139[_0x5cdf70];return _0x258ae7;}const OAUTH_CONFIGS={'instagram':{'clientId':'YOUR_INSTAGRAM_CLIENT_ID','redirectUri':_0x4e5c(0x5),'scope':_0x4e5c(0x6),'authorizationEndpoint':'https://api.instagram.com/oauth/authorize','tokenEndpoint':'https://api.instagram.com/oauth/access_token','responseType':_0x4e5c(0x7)},'youtube':{'clientId':_0x4e5c(0x8),'redirectUri':_0x4e5c(0x9),'scope':_0x4e5c(0xa),'authorizationEndpoint':_0x4e5c(0xb),'tokenEndpoint':_0x4e5c(0xc),'responseType':_0x4e5c(0x7)},'pinterest':{'clientId':_0x4e5c(0xd),'redirectUri':_0x4e5c(0xe),'scope':_0x4e5c(0xf),'authorizationEndpoint':_0x4e5c(0x10),'tokenEndpoint':_0x4e5c(0x11),'responseType':_0x4e5c(0x7)},'reddit':{'clientId':_0x4e5c(0x12),'redirectUri':_0x4e5c(0x13),'scope':_0x4e5c(0x14),'authorizationEndpoint':_0x4e5c(0x15),'tokenEndpoint':_0x4e5c(0x16),'responseType':_0x4e5c(0x7)}},generateState=()=>{const _0x2d1e5c=Math[_0x4e5c(0x17)]()['toString'](0x24)['substring'](0x2,0xf);return(0x0,_crypto[_0x4e5c(0x18)])(_0x2d1e5c)['substring'](0x0,0xa);},initializeOAuthService=()=>{_reactNative[_0x4e5c(0x19)][_0x4e5c(0x1a)](_0x4e5c(0x1b),handleDeepLink);};exports[_0x4e5c(0x2)]=initializeOAuthService;const cleanupOAuthService=()=>{const _0x19596a={'OKTbE':function(_0x5f061e,_0x37ae72){return _0x5f061e(_0x37ae72);},'QJUsh':function(_0x48f404,_0x46cedd){return _0x48f404===_0x46cedd;},'RanqH':_0x4e5c(0x1c),'VDGyf':_0x4e5c(0x1d),'TNFfQ':_0x4e5c(0x1e)};_0x19596a[_0x4e5c(0x1f)](typeof _reactNative[_0x4e5c(0x19)]['removeAllListeners'],_0x19596a[_0x4e5c(0x20)])&&(_0x19596a[_0x4e5c(0x1f)](_0x19596a[_0x4e5c(0x21)],_0x19596a[_0x4e5c(0x22)])?(_0x279581['error'](_0x4e5c(0x23),_0x4201a8),_0x126e55&&_0x19596a[_0x4e5c(0x24)](_0x3eec20,_0x441115)):_reactNative[_0x4e5c(0x19)][_0x4e5c(0x25)](_0x4e5c(0x1b)));};exports[_0x4e5c(0x26)]=cleanupOAuthService;let currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;const handleDeepLink=async _0x197ea1=>{const _0x3fb549={'EpUco':function(_0x4e1e56,_0x254472){return _0x4e1e56(_0x254472);},'jQegg':_0x4e5c(0x27),'KfTsK':_0x4e5c(0x28),'rMgIq':function(_0x2c3953,_0x5c3aa2){return _0x2c3953!==_0x5c3aa2;},'WiBfS':_0x4e5c(0x7),'fBREZ':'state','mNykb':_0x4e5c(0x29),'iEEWS':_0x4e5c(0x2a),'iplDV':function(_0x2335c3,_0x531072){return _0x2335c3!==_0x531072;},'jvPdP':_0x4e5c(0x2b),'iqeLJ':'pTGNJ','iwGhp':function(_0x2223d0,_0x22d1f9){return _0x2223d0!==_0x22d1f9;},'MxiWF':_0x4e5c(0x2c),'IDPjT':function(_0x21192d,_0x4d3f6b){return _0x21192d===_0x4d3f6b;},'WvWTi':_0x4e5c(0x2d),'VjvLI':'eHEra','XOHxp':_0x4e5c(0x2e),'upiiO':_0x4e5c(0x23)};try{const {url:_0x25f8e6}=_0x197ea1;if(!_0x25f8e6[_0x4e5c(0x2f)](_0x3fb549[_0x4e5c(0x30)]))return;const _0x31a798=_0x25f8e6[_0x4e5c(0x31)](_0x3fb549['KfTsK'])[0x1][_0x4e5c(0x31)]('?')[0x0];if(_0x3fb549[_0x4e5c(0x32)](_0x31a798,currentOAuthPlatform))return;const _0x5c9f93=new URL(_0x25f8e6)[_0x4e5c(0x33)],_0x491749=_0x5c9f93[_0x4e5c(0x34)](_0x3fb549[_0x4e5c(0x35)]),_0x2415e3=_0x5c9f93[_0x4e5c(0x34)](_0x3fb549['fBREZ']),_0x3b6923=_0x5c9f93['get'](_0x4e5c(0x36));if(_0x3fb549[_0x4e5c(0x32)](_0x2415e3,currentOAuthState)){if(currentOAuthReject){if(_0x3fb549['rMgIq'](_0x3fb549[_0x4e5c(0x37)],_0x3fb549[_0x4e5c(0x38)]))_0x3fb549['EpUco'](currentOAuthReject,new Error(_0x3fb549[_0x4e5c(0x39)]));else{_0x3c2a97[_0x4e5c(0x36)](_0x4e5c(0x3a)+_0x3d94c6+'):',_0x173332);throw _0x4cdd5f;}}return;}if(_0x3b6923){currentOAuthReject&&(_0x3fb549[_0x4e5c(0x3b)](_0x3fb549['jvPdP'],_0x3fb549[_0x4e5c(0x3c)])?_0x3fb549[_0x4e5c(0x3d)](currentOAuthReject,new Error(_0x4e5c(0x3e)+_0x3b6923)):_0x3fb549[_0x4e5c(0x3d)](_0x3783f1,new _0x4b1d67(_0x4e5c(0x3e)+_0x4e7b67)));return;}if(_0x491749){if(_0x3fb549[_0x4e5c(0x3f)](_0x3fb549[_0x4e5c(0x40)],_0x4e5c(0x2c)))_0x3b2a88[_0x4e5c(0x19)][_0x4e5c(0x1a)](_0x4e5c(0x1b),_0x5dd01d);else{const _0x12bcca=await exchangeCodeForToken(_0x31a798,_0x491749);currentOAuthResolve&&(_0x3fb549[_0x4e5c(0x41)](_0x3fb549[_0x4e5c(0x42)],_0x3fb549[_0x4e5c(0x43)])?_0x22b0c9(new _0x1b41a9(_0x3fb549[_0x4e5c(0x39)])):currentOAuthResolve(_0x12bcca));}}else currentOAuthReject&¤tOAuthReject(new Error(_0x3fb549[_0x4e5c(0x44)]));}catch(_0xaf283a){console[_0x4e5c(0x36)](_0x3fb549[_0x4e5c(0x45)],_0xaf283a),currentOAuthReject&&_0x3fb549[_0x4e5c(0x3d)](currentOAuthReject,_0xaf283a);}finally{currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;}},exchangeCodeForToken=async(_0x98fb18,_0x28fe40)=>{const _0x3ab8cc={'UeqLg':function(_0x310aa6,_0x157144){return _0x310aa6(_0x157144);},'MRUtm':_0x4e5c(0x2e),'jhuVD':function(_0x62b1cf,_0x3cdeeb,_0x56fa){return _0x62b1cf(_0x3cdeeb,_0x56fa);},'yzKWj':_0x4e5c(0x46),'WjUCm':function(_0x42e0d5,_0x4687a4){return _0x42e0d5===_0x4687a4;},'VbYxJ':_0x4e5c(0x47),'kFKwu':'Failed\x20to\x20exchange\x20code\x20for\x20token','tkXSF':function(_0x2a4244,_0x229f30,_0x4ffa15){return _0x2a4244(_0x229f30,_0x4ffa15);},'enSEw':function(_0xf7c4fe,_0x457e02){return _0xf7c4fe===_0x457e02;},'aeiuD':'sOCEP'};try{const _0x70cdeb=OAUTH_CONFIGS[_0x98fb18];if(!_0x70cdeb)throw new Error(_0x4e5c(0x48)+_0x98fb18);const _0x5ef5f7=new URLSearchParams({'grant_type':_0x4e5c(0x49),'code':_0x28fe40,'redirect_uri':_0x70cdeb[_0x4e5c(0x4a)],'client_id':_0x70cdeb['clientId']}),_0x2a7c46=await _0x3ab8cc['jhuVD'](fetch,_0x70cdeb['tokenEndpoint'],{'method':'POST','headers':{'Content-Type':_0x3ab8cc[_0x4e5c(0x4b)]},'body':_0x5ef5f7[_0x4e5c(0x4c)]()}),_0x44b4fb=await _0x2a7c46['json']();if(!_0x2a7c46['ok']){if(_0x3ab8cc[_0x4e5c(0x4d)](_0x3ab8cc[_0x4e5c(0x4e)],_0x4e5c(0x47)))throw new Error(_0x44b4fb[_0x4e5c(0x36)]||_0x3ab8cc[_0x4e5c(0x4f)]);else _0x383be2&&_0x3ab8cc[_0x4e5c(0x50)](_0x517de6,new _0x2b681c(_0x3ab8cc[_0x4e5c(0x51)]));}const _0x4a44ea=await _0x3ab8cc[_0x4e5c(0x52)](fetchUserInfo,_0x98fb18,_0x44b4fb[_0x4e5c(0x53)]);return{'token':_0x44b4fb[_0x4e5c(0x53)],'refreshToken':_0x44b4fb[_0x4e5c(0x54)],'expiresIn':_0x44b4fb['expires_in'],'username':_0x4a44ea[_0x4e5c(0x55)],'userId':_0x4a44ea['id']};}catch(_0x1f9b32){if(_0x3ab8cc[_0x4e5c(0x56)](_0x3ab8cc[_0x4e5c(0x57)],_0x3ab8cc['aeiuD'])){console[_0x4e5c(0x36)](_0x4e5c(0x3a)+_0x98fb18+'):',_0x1f9b32);throw _0x1f9b32;}else{_0x1d7763[_0x4e5c(0x36)](_0x4e5c(0x58)+_0x7672a7+'):',_0x5e579f);throw _0x2f992e;}}},fetchUserInfo=async(_0x427d45,_0x555c12)=>{const _0x455103={'XylCR':_0x4e5c(0x59),'PBblB':_0x4e5c(0x5a),'LhOdm':_0x4e5c(0x5b),'wbJkI':'https://www.googleapis.com/youtube/v3/channels?part=snippet&mine=true','wMicZ':'pinterest','mhcuY':'https://api.pinterest.com/v5/user_account','dkjpD':_0x4e5c(0x5c),'mIKSz':function(_0x417061,_0x5d1291,_0x218a31){return _0x417061(_0x5d1291,_0x218a31);},'NqpkP':_0x4e5c(0x5d)};try{let _0x49c157,_0x17458d={'Authorization':_0x4e5c(0x5e)+_0x555c12};switch(_0x427d45){case _0x455103[_0x4e5c(0x5f)]:_0x49c157=_0x455103[_0x4e5c(0x60)];break;case _0x455103[_0x4e5c(0x61)]:_0x49c157=_0x455103[_0x4e5c(0x62)];break;case _0x455103[_0x4e5c(0x63)]:_0x49c157=_0x455103[_0x4e5c(0x64)];break;case'reddit':_0x49c157=_0x455103['dkjpD'];break;default:throw new Error('Unsupported\x20platform:\x20'+_0x427d45);}const _0x78d7da=await _0x455103['mIKSz'](fetch,_0x49c157,{'headers':_0x17458d}),_0x2b282d=await _0x78d7da['json']();if(!_0x78d7da['ok'])throw new Error(_0x2b282d[_0x4e5c(0x36)]||_0x455103['NqpkP']);switch(_0x427d45){case _0x455103[_0x4e5c(0x5f)]:return{'id':_0x2b282d['id'],'username':_0x2b282d['username']};case _0x455103[_0x4e5c(0x61)]:return{'id':_0x2b282d['items'][0x0]['id'],'username':_0x2b282d[_0x4e5c(0x65)][0x0]['snippet']['title']};case _0x455103['wMicZ']:return{'id':_0x2b282d['id'],'username':_0x2b282d[_0x4e5c(0x55)]||_0x2b282d[_0x4e5c(0x66)]};case _0x4e5c(0x67):return{'id':_0x2b282d['id'],'username':_0x2b282d[_0x4e5c(0x68)]};default:throw new Error(_0x4e5c(0x48)+_0x427d45);}}catch(_0x435838){console['error']('Error\x20fetching\x20user\x20info\x20('+_0x427d45+'):',_0x435838);throw _0x435838;}},connectPlatform=_0x34b8bb=>{const _0x454dd5={'cyGbB':'Failed\x20to\x20exchange\x20code\x20for\x20token','mppLI':_0x4e5c(0x69),'wWgUX':_0x4e5c(0x6a),'IgOkV':_0x4e5c(0x6b),'yybHh':_0x4e5c(0x6c),'aSFDC':_0x4e5c(0x6d),'wMkxk':_0x4e5c(0x6e),'OJCTW':_0x4e5c(0x6f),'sdoEr':_0x4e5c(0x70),'gAABX':'eyfpr','vxotP':function(_0x230332,_0x4fa60b){return _0x230332(_0x4fa60b);}};return new Promise((_0x571754,_0x200bc0)=>{if(_0x454dd5[_0x4e5c(0x71)]!==_0x454dd5[_0x4e5c(0x72)])try{const _0x1b69ec=OAUTH_CONFIGS[_0x34b8bb];if(!_0x1b69ec){if(_0x454dd5[_0x4e5c(0x73)]===_0x454dd5[_0x4e5c(0x73)])throw new Error(_0x4e5c(0x48)+_0x34b8bb);else return;}const _0x43162a=generateState(),_0x209541=new URL(_0x1b69ec[_0x4e5c(0x74)]);_0x209541[_0x4e5c(0x33)][_0x4e5c(0x75)](_0x454dd5[_0x4e5c(0x76)],_0x1b69ec[_0x4e5c(0x77)]),_0x209541[_0x4e5c(0x33)]['append'](_0x4e5c(0x78),_0x1b69ec['redirectUri']),_0x209541[_0x4e5c(0x33)][_0x4e5c(0x75)](_0x454dd5[_0x4e5c(0x79)],_0x1b69ec[_0x4e5c(0x7a)]),_0x209541[_0x4e5c(0x33)]['append'](_0x454dd5[_0x4e5c(0x7b)],_0x1b69ec[_0x4e5c(0x6e)]),_0x209541[_0x4e5c(0x33)][_0x4e5c(0x75)](_0x454dd5['OJCTW'],_0x43162a),currentOAuthState=_0x43162a,currentOAuthPlatform=_0x34b8bb,currentOAuthResolve=_0x571754,currentOAuthReject=_0x200bc0,_reactNative[_0x4e5c(0x19)][_0x4e5c(0x7c)](_0x209541[_0x4e5c(0x4c)]());}catch(_0x58808d){if(_0x454dd5[_0x4e5c(0x7d)]!==_0x454dd5['gAABX'])_0x454dd5[_0x4e5c(0x7e)](_0x200bc0,_0x58808d);else throw new _0x145111(_0x25e11e[_0x4e5c(0x36)]||_0x454dd5[_0x4e5c(0x7f)]);}else _0x142a78(_0x1e72cd);});};exports[_0x4e5c(0x80)]=connectPlatform;const disconnectPlatform=async(_0x31231d,_0x17f1d3)=>{const _0x7d7e54={'tSCJz':_0x4e5c(0x81),'lyKlC':function(_0x199471,_0x45041a){return _0x199471 in _0x45041a;},'rmUdl':_0x4e5c(0x82),'SBDjt':'aHCqr'};try{await _api[_0x4e5c(0x83)][_0x4e5c(0x84)](_0x7d7e54[_0x4e5c(0x85)],{'platform':_0x31231d,'username':_0x17f1d3[_0x4e5c(0x55)]});const _0x5c7f4b={..._0x17f1d3['platforms']};if(_0x5c7f4b&&_0x7d7e54[_0x4e5c(0x86)](_0x31231d,_0x5c7f4b)){if(_0x7d7e54['rmUdl']===_0x7d7e54[_0x4e5c(0x87)])delete _0x5c7f4b[_0x31231d];else throw new _0x4293d4(_0x4e5c(0x48)+_0x46857d);}return await(0x0,_secureStorage[_0x4e5c(0x88)])({..._0x17f1d3,'platforms':_0x5c7f4b}),!![];}catch(_0x4dcfef){if(_0x7d7e54[_0x4e5c(0x89)]!==_0x7d7e54[_0x4e5c(0x89)])_0x4e5b95=null,_0x59a737=null,_0x32e357=null,_0x428653=null;else return console[_0x4e5c(0x36)](_0x4e5c(0x8a)+_0x31231d+'):',_0x4dcfef),![];}};exports[_0x4e5c(0x3)]=disconnectPlatform;const storePlatformConnection=async(_0x50d1bb,_0x44af17,_0x41d428)=>{const _0x335fb9={'xSviE':function(_0x43bedc,_0x4b906c){return _0x43bedc(_0x4b906c);},'ldpcQ':_0x4e5c(0x2e),'sadmm':function(_0x50b208,_0x1cc383){return _0x50b208!==_0x1cc383;},'OHSYR':_0x4e5c(0x8b),'zcaSj':function(_0x15723d,_0x5d82cb){return _0x15723d===_0x5d82cb;},'QtkZt':'instagram','Ghyou':function(_0x37b2f5,_0x4e138b){return _0x37b2f5===_0x4e138b;},'gwFcD':_0x4e5c(0x5b),'mbgNw':_0x4e5c(0x8c),'vMGyA':function(_0x59ef1e,_0x2e4883){return _0x59ef1e===_0x2e4883;},'McPYd':function(_0x357307,_0x51f322){return _0x357307===_0x51f322;},'YVYRG':_0x4e5c(0x8d),'PHMuS':_0x4e5c(0x8e),'pRHmD':function(_0x5a5e65,_0x2b8f2d){return _0x5a5e65+_0x2b8f2d;},'bcYYp':function(_0x5bb2d3,_0x237c44){return _0x5bb2d3*_0x237c44;},'QJgKK':function(_0x18d55f,_0x57c41a){return _0x18d55f===_0x57c41a;},'Yqzlw':'reddit'};try{if(_0x335fb9[_0x4e5c(0x8f)](_0x4e5c(0x90),_0x335fb9[_0x4e5c(0x91)])){const _0x26551c=_0x335fb9[_0x4e5c(0x92)](_0x50d1bb,_0x335fb9[_0x4e5c(0x93)])||_0x335fb9[_0x4e5c(0x94)](_0x50d1bb,_0x335fb9['gwFcD'])||_0x335fb9['zcaSj'](_0x50d1bb,_0x335fb9[_0x4e5c(0x95)])||_0x335fb9[_0x4e5c(0x96)](_0x50d1bb,_0x4e5c(0x67));if(!_0x26551c){if(_0x335fb9[_0x4e5c(0x97)](_0x335fb9[_0x4e5c(0x98)],_0x335fb9['PHMuS']))_0x335fb9[_0x4e5c(0x99)](_0x321ac7,new _0x1b3cd(_0x335fb9[_0x4e5c(0x9a)]));else throw new Error(_0x4e5c(0x48)+_0x50d1bb);}const _0xca8006={..._0x41d428[_0x4e5c(0x9b)]},_0x1216ed={'username':_0x44af17[_0x4e5c(0x55)],'userId':_0x44af17['userId'],'token':_0x44af17[_0x4e5c(0x9c)],'refreshToken':_0x44af17[_0x4e5c(0x9d)],'expiresAt':_0x44af17[_0x4e5c(0x9e)]?_0x335fb9[_0x4e5c(0x9f)](Date[_0x4e5c(0xa0)](),_0x335fb9[_0x4e5c(0xa1)](_0x44af17['expiresIn'],0x3e8)):null,'connectedAt':Date[_0x4e5c(0xa0)]()};if(_0x335fb9[_0x4e5c(0x94)](_0x50d1bb,_0x335fb9['QtkZt']))_0xca8006[_0x4e5c(0x59)]=_0x1216ed;else{if(_0x335fb9[_0x4e5c(0xa2)](_0x50d1bb,_0x4e5c(0x5b)))_0xca8006['youtube']=_0x1216ed;else{if(_0x335fb9[_0x4e5c(0x92)](_0x50d1bb,_0x335fb9['mbgNw']))_0xca8006[_0x4e5c(0x8c)]=_0x1216ed;else{if(_0x335fb9[_0x4e5c(0x97)](_0x50d1bb,_0x335fb9[_0x4e5c(0xa3)]))_0xca8006[_0x4e5c(0x67)]=_0x1216ed;}}}return await(0x0,_secureStorage['updateCredentials'])({..._0x41d428,'platforms':_0xca8006}),!![];}else delete _0x3b3cc4[_0x46dd71];}catch(_0x37c4d1){return console[_0x4e5c(0x36)](_0x4e5c(0xa4)+_0x50d1bb+'):',_0x37c4d1),![];}};function _0x5cdf(){const _0x256a6e=['defineProperty','storePlatformConnection','initializeOAuthService','disconnectPlatform','OAuthService','onairosanime://auth/instagram','user_profile,user_media','code','YOUR_YOUTUBE_CLIENT_ID','onairosanime://auth/youtube','https://www.googleapis.com/auth/youtube.readonly','https://accounts.google.com/o/oauth2/auth','https://oauth2.googleapis.com/token','YOUR_PINTEREST_CLIENT_ID','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','identity,read','https://www.reddit.com/api/v1/authorize','https://www.reddit.com/api/v1/access_token','random','sha256','Linking','addEventListener','url','function','aViUQ','eWzMC','QJUsh','RanqH','VDGyf','TNFfQ','Error\x20handling\x20OAuth\x20deep\x20link:','OKTbE','removeAllListeners','cleanupOAuthService','OAuth\x20state\x20mismatch\x20-\x20possible\x20CSRF\x20attack','onairosanime://auth/','rLvPg','pKNPE','eGhKS','HwUFo','hjsDc','No\x20authorization\x20code\x20received','startsWith','KfTsK','split','rMgIq','searchParams','get','WiBfS','error','mNykb','iEEWS','jQegg','Error\x20exchanging\x20code\x20for\x20token\x20(','iplDV','iqeLJ','EpUco','OAuth\x20error:\x20','iwGhp','MxiWF','IDPjT','WvWTi','VjvLI','XOHxp','upiiO','application/x-www-form-urlencoded','jedcP','Unsupported\x20platform:\x20','authorization_code','redirectUri','yzKWj','toString','WjUCm','VbYxJ','kFKwu','UeqLg','MRUtm','tkXSF','access_token','refresh_token','username','enSEw','aeiuD','Error\x20fetching\x20user\x20info\x20(','instagram','https://graph.instagram.com/me?fields=id,username','youtube','https://oauth.reddit.com/api/v1/me','Failed\x20to\x20fetch\x20user\x20info','Bearer\x20','XylCR','PBblB','LhOdm','wbJkI','wMicZ','mhcuY','items','full_name','reddit','name','DyLjK','ohJlV','GcItO','client_id','response_type','scope','state','pGWQa','mppLI','wWgUX','IgOkV','authorizationEndpoint','append','yybHh','clientId','redirect_uri','aSFDC','responseType','wMkxk','openURL','sdoEr','vxotP','cyGbB','connectPlatform','/users/disconnect-platform','AzpnZ','onairosApi','post','tSCJz','lyKlC','rmUdl','updateCredentials','SBDjt','Error\x20disconnecting\x20platform\x20(','opASt','pinterest','nPnvT','RRpmL','sadmm','gDWqn','OHSYR','zcaSj','QtkZt','Ghyou','mbgNw','vMGyA','McPYd','YVYRG','xSviE','ldpcQ','platforms','token','refreshToken','expiresIn','pRHmD','now','bcYYp','QJgKK','Yqzlw','Error\x20storing\x20platform\x20connection\x20(','API_CONFIG'];_0x5cdf=function(){return _0x256a6e;};return _0x5cdf();}exports[_0x4e5c(0x1)]=storePlatformConnection;const OAuthService=exports[_0x4e5c(0x4)]={'initializeOAuthService':initializeOAuthService,'cleanupOAuthService':cleanupOAuthService,'connectPlatform':connectPlatform,'disconnectPlatform':disconnectPlatform,'storePlatformConnection':storePlatformConnection,'_apiBaseUrl':''+_api2[_0x4e5c(0xa5)]['BASE_URL']};
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require('react-native-crypto-js')
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
|
|
8
|
+
Object['defineProperty'](exports,_0x4569(0x0),{'value':!![]}),exports[_0x4569(0x1)]=exports[_0x4569(0x2)]=exports[_0x4569(0x3)]=exports[_0x4569(0x4)]=void 0x0;var _pinStorageUtils=__ONAIROS_REQ_FUNC__(0x0);function _0x2a37(){const _0x16c878=['__esModule','hashPin','getEncryptedPinForAPI','encryptPin','decryptPin','onairos-pin-encryption-key-2024','❌\x20Error\x20encrypting\x20PIN:','AES','encrypt','toString','log','VJzRi','error','❌\x20Error\x20hashing\x20PIN:','wfIMh','🔓\x20PIN\x20decrypted\x20successfully','❌\x20Error\x20decrypting\x20PIN:','keLaT','kSdhe','decrypt','Utf8','vORxE','fsLkv','gGmdK','❌\x20Error\x20getting\x20encrypted\x20PIN\x20for\x20API:','dYHGB','ZJFqg','CiihO','🔒\x20PIN\x20hashed\x20successfully','ADLOF','SHA256','HAxlQ','zFBaF','Mbqnx','Hvczo','enc','RQDlS','IlycO'];_0x2a37=function(){return _0x16c878;};return _0x2a37();}const CryptoJS=__ONAIROS_REQ_FUNC__(0x1),ENCRYPTION_KEY=_0x4569(0x5),encryptPin=_0xf50575=>{const _0x21461e={'VJzRi':'🔐\x20PIN\x20encrypted\x20successfully','pzuuD':_0x4569(0x6)};try{const _0x3ad00d=CryptoJS[_0x4569(0x7)][_0x4569(0x8)](_0xf50575,ENCRYPTION_KEY)[_0x4569(0x9)]();return console[_0x4569(0xa)](_0x21461e[_0x4569(0xb)]),_0x3ad00d;}catch(_0x485693){console[_0x4569(0xc)](_0x21461e['pzuuD'],_0x485693);throw _0x485693;}};exports[_0x4569(0x3)]=encryptPin;const decryptPin=_0x330861=>{const _0x122a73={'KPWhV':_0x4569(0xd),'CWLWl':function(_0xc87ae3,_0x4fb907){return _0xc87ae3===_0x4fb907;},'keLaT':_0x4569(0xe),'vORxE':_0x4569(0xf),'fsLkv':_0x4569(0x10)};try{if(_0x122a73['CWLWl'](_0x122a73[_0x4569(0x11)],_0x4569(0x12))){_0x40982a['error'](_0x122a73['KPWhV'],_0x50c80f);throw _0x225242;}else{const _0x3c79f4=CryptoJS['AES'][_0x4569(0x13)](_0x330861,ENCRYPTION_KEY),_0x28989a=_0x3c79f4[_0x4569(0x9)](CryptoJS['enc'][_0x4569(0x14)]);return console[_0x4569(0xa)](_0x122a73[_0x4569(0x15)]),_0x28989a;}}catch(_0x30ba86){console[_0x4569(0xc)](_0x122a73[_0x4569(0x16)],_0x30ba86);throw _0x30ba86;}};function _0x4569(_0x2a37c2,_0x456938){_0x2a37c2=_0x2a37c2-0x0;const _0x31af0e=_0x2a37();let _0x4404d3=_0x31af0e[_0x2a37c2];return _0x4404d3;}exports[_0x4569(0x4)]=decryptPin;const getEncryptedPinForAPI=async()=>{const _0x35a2c8={'ZJFqg':'❌\x20Error\x20encrypting\x20PIN:','dYHGB':_0x4569(0x17),'ugMWf':function(_0x424c94,_0x3851a7){return _0x424c94(_0x3851a7);},'mgKUC':'✅\x20PIN\x20encrypted\x20for\x20API\x20transmission','CiihO':_0x4569(0x18)};try{const _0x58be4e=(0x0,_pinStorageUtils['getTemporaryPin'])();if(!_0x58be4e){if(_0x35a2c8['dYHGB']===_0x35a2c8[_0x4569(0x19)])return console[_0x4569(0xa)]('⚠️\x20No\x20temporary\x20PIN\x20available\x20for\x20encryption'),null;else{_0x9fc69c[_0x4569(0xc)](_0x35a2c8[_0x4569(0x1a)],_0x256283);throw _0x3c9de6;}}const _0x10b6e2=_0x35a2c8['ugMWf'](encryptPin,_0x58be4e);return console[_0x4569(0xa)](_0x35a2c8['mgKUC']),_0x10b6e2;}catch(_0x4ecb12){return console[_0x4569(0xc)](_0x35a2c8[_0x4569(0x1b)],_0x4ecb12),null;}};exports[_0x4569(0x2)]=getEncryptedPinForAPI;const hashPin=_0x176f50=>{const _0x373f24={'GLyxg':'🔓\x20PIN\x20decrypted\x20successfully','RQDlS':_0x4569(0x10),'HAxlQ':function(_0x7241f8,_0x372625){return _0x7241f8+_0x372625;},'zFBaF':_0x4569(0x1c),'Mbqnx':function(_0x279394,_0x3cae92){return _0x279394!==_0x3cae92;},'Hvczo':_0x4569(0x1d),'IlycO':_0x4569(0xd)};try{const _0x416495=CryptoJS[_0x4569(0x1e)](_0x373f24[_0x4569(0x1f)](_0x176f50,ENCRYPTION_KEY))[_0x4569(0x9)]();return console[_0x4569(0xa)](_0x373f24[_0x4569(0x20)]),_0x416495;}catch(_0x3c5297){if(_0x373f24[_0x4569(0x21)](_0x373f24[_0x4569(0x22)],_0x373f24[_0x4569(0x22)]))try{const _0x1099af=_0x596dca[_0x4569(0x7)][_0x4569(0x13)](_0x52f0ac,_0x14d93b),_0x44157c=_0x1099af[_0x4569(0x9)](_0x4013b2[_0x4569(0x23)][_0x4569(0x14)]);return _0x56928c[_0x4569(0xa)](_0x373f24['GLyxg']),_0x44157c;}catch(_0x3d446d){_0x191af9[_0x4569(0xc)](_0x373f24[_0x4569(0x24)],_0x3d446d);throw _0x3d446d;}else{console[_0x4569(0xc)](_0x373f24[_0x4569(0x25)],_0x3c5297);throw _0x3c5297;}}};exports['hashPin']=hashPin;
|
|
@@ -4,4 +4,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
4
4
|
require("./biometricPinService")
|
|
5
5
|
];
|
|
6
6
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
-
Object[
|
|
7
|
+
Object[_0x4795(0x0)](exports,'__esModule',{'value':!![]}),exports['setTemporaryPin']=exports[_0x4795(0x1)]=exports[_0x4795(0x2)]=exports['getStoredPinForTraining']=exports[_0x4795(0x3)]=exports[_0x4795(0x4)]=exports['clearStoredPin']=void 0x0;var _biometricPinService=__ONAIROS_REQ_FUNC__(0x0);const getStoredPinForTraining=async()=>{const _0x163548={'DqgxQ':_0x4795(0x5),'yJriN':_0x4795(0x6),'cgEyO':function(_0x399df9,_0x24d41d){return _0x399df9!==_0x24d41d;},'mUbXH':_0x4795(0x7),'LBthb':_0x4795(0x8),'QnsfY':'✅\x20PIN\x20retrieved\x20successfully\x20for\x20training','yQJot':_0x4795(0x9)};try{console['log'](_0x163548['yJriN']);const _0x47f5dc=await _biometricPinService[_0x4795(0xa)]['isPinStored']();if(!_0x47f5dc)return _0x163548['cgEyO'](_0x4795(0x7),_0x163548[_0x4795(0xb)])?(_0x41fdca[_0x4795(0xc)](_0x163548[_0x4795(0xd)],_0x31f42e),null):(console[_0x4795(0xe)](_0x163548[_0x4795(0xf)]),null);const _0x208401=await _biometricPinService[_0x4795(0xa)][_0x4795(0x10)]();return _0x208401?(console['log'](_0x163548[_0x4795(0x11)]),_0x208401):(console['log'](_0x163548['yQJot']),null);}catch(_0x3c0af3){return console[_0x4795(0xc)](_0x163548[_0x4795(0xd)],_0x3c0af3),null;}};exports[_0x4795(0x12)]=getStoredPinForTraining;function _0x3398(){const _0x59453a=['defineProperty','hasStoredPin','getTemporaryPin','getPinForTraining','clearTemporaryPin','❌\x20Error\x20retrieving\x20stored\x20PIN:','🔓\x20Retrieving\x20stored\x20PIN\x20for\x20training...','iLORy','⚠️\x20No\x20PIN\x20stored\x20in\x20secure\x20storage','❌\x20Failed\x20to\x20retrieve\x20PIN\x20or\x20user\x20cancelled\x20authentication','biometricPinService','mUbXH','error','DqgxQ','log','LBthb','retrievePinWithBiometric','QnsfY','getStoredPinForTraining','❌\x20Error\x20checking\x20PIN\x20storage:','isPinStored','❌\x20Error\x20clearing\x20stored\x20PIN:','MrdHD','removePinFromStorage','ymxal','WQyfZ','OeqIz','NtxuV','clearStoredPin','fhlwS','📝\x20Using\x20temporary\x20PIN\x20for\x20training','QyYoH','IzEIf','LWEUW','📝\x20Temporary\x20PIN\x20set\x20for\x20training','ipjap','setTemporaryPin','🗑️\x20Temporary\x20PIN\x20cleared','VUuNv'];_0x3398=function(){return _0x59453a;};return _0x3398();}const hasStoredPin=async()=>{const _0x10ff4b={'WuJfa':_0x4795(0x13)};try{return await _biometricPinService['biometricPinService'][_0x4795(0x14)]();}catch(_0x202747){return console[_0x4795(0xc)](_0x10ff4b['WuJfa'],_0x202747),![];}};exports[_0x4795(0x1)]=hasStoredPin;const clearStoredPin=async()=>{const _0x43fcdd={'NtxuV':_0x4795(0x15),'MrdHD':'🗑️\x20Clearing\x20stored\x20PIN...','ymxal':function(_0x3b6fd3,_0x3aea2d){return _0x3b6fd3!==_0x3aea2d;},'WQyfZ':'DcTVC','OeqIz':'fTuOZ'};try{return console[_0x4795(0xe)](_0x43fcdd[_0x4795(0x16)]),await _biometricPinService['biometricPinService'][_0x4795(0x17)]();}catch(_0x551018){return _0x43fcdd[_0x4795(0x18)](_0x43fcdd[_0x4795(0x19)],_0x43fcdd[_0x4795(0x1a)])?(console[_0x4795(0xc)](_0x43fcdd[_0x4795(0x1b)],_0x551018),![]):(_0x14237a[_0x4795(0xc)](_0x43fcdd[_0x4795(0x1b)],_0x64234e),![]);}};exports[_0x4795(0x1c)]=clearStoredPin;const getPinForTraining=async _0x36fe6b=>{const _0x28283e={'HCTAm':function(_0x2ab80b,_0x174f9c){return _0x2ab80b===_0x174f9c;},'QyYoH':_0x4795(0x1d),'IzEIf':_0x4795(0x1e),'LWEUW':function(_0x1324c7){return _0x1324c7();}};if(_0x36fe6b){if(_0x28283e['HCTAm'](_0x28283e[_0x4795(0x1f)],_0x28283e[_0x4795(0x1f)]))return console[_0x4795(0xe)](_0x28283e[_0x4795(0x20)]),_0x36fe6b;else _0x24200d=_0x72703b,_0x1b1402[_0x4795(0xe)]('📝\x20Temporary\x20PIN\x20set\x20for\x20training');}return await _0x28283e[_0x4795(0x21)](getStoredPinForTraining);};exports['getPinForTraining']=getPinForTraining;let temporaryPin=null;function _0x4795(_0x3398a6,_0x47950f){_0x3398a6=_0x3398a6-0x0;const _0x470796=_0x3398();let _0x59e7e8=_0x470796[_0x3398a6];return _0x59e7e8;}const setTemporaryPin=_0x2d81de=>{const _0x3bded5={'ipjap':_0x4795(0x22)};temporaryPin=_0x2d81de,console[_0x4795(0xe)](_0x3bded5[_0x4795(0x23)]);};exports[_0x4795(0x24)]=setTemporaryPin;const getTemporaryPin=()=>{return temporaryPin;};exports['getTemporaryPin']=getTemporaryPin;const clearTemporaryPin=()=>{const _0x29844a={'VUuNv':_0x4795(0x25)};temporaryPin=null,console[_0x4795(0xe)](_0x29844a[_0x4795(0x26)]);};exports['clearTemporaryPin']=clearTemporaryPin;
|