@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
|
@@ -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[_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']};
|
|
11
|
+
Object[_0x43ec(0x0)](exports,_0x43ec(0x1),{'value':!![]}),exports[_0x43ec(0x2)]=exports[_0x43ec(0x3)]=exports['disconnectPlatform']=exports[_0x43ec(0x4)]=exports['cleanupOAuthService']=exports[_0x43ec(0x5)]=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':'YOUR_INSTAGRAM_CLIENT_ID','redirectUri':_0x43ec(0x6),'scope':_0x43ec(0x7),'authorizationEndpoint':_0x43ec(0x8),'tokenEndpoint':_0x43ec(0x9),'responseType':_0x43ec(0xa)},'youtube':{'clientId':'YOUR_YOUTUBE_CLIENT_ID','redirectUri':'onairosanime://auth/youtube','scope':_0x43ec(0xb),'authorizationEndpoint':_0x43ec(0xc),'tokenEndpoint':_0x43ec(0xd),'responseType':_0x43ec(0xa)},'pinterest':{'clientId':'YOUR_PINTEREST_CLIENT_ID','redirectUri':_0x43ec(0xe),'scope':_0x43ec(0xf),'authorizationEndpoint':_0x43ec(0x10),'tokenEndpoint':_0x43ec(0x11),'responseType':_0x43ec(0xa)},'reddit':{'clientId':_0x43ec(0x12),'redirectUri':_0x43ec(0x13),'scope':'identity,read','authorizationEndpoint':'https://www.reddit.com/api/v1/authorize','tokenEndpoint':'https://www.reddit.com/api/v1/access_token','responseType':'code'}},generateState=()=>{const _0x2b6b1e=Math[_0x43ec(0x14)]()[_0x43ec(0x15)](0x24)[_0x43ec(0x16)](0x2,0xf);return(0x0,_crypto[_0x43ec(0x17)])(_0x2b6b1e)['substring'](0x0,0xa);},initializeOAuthService=()=>{_reactNative[_0x43ec(0x18)][_0x43ec(0x19)](_0x43ec(0x1a),handleDeepLink);};exports[_0x43ec(0x3)]=initializeOAuthService;const cleanupOAuthService=()=>{const _0x25c945={'plMyx':_0x43ec(0x1b)};typeof _reactNative['Linking'][_0x43ec(0x1c)]===_0x25c945[_0x43ec(0x1d)]&&_reactNative[_0x43ec(0x18)][_0x43ec(0x1c)](_0x43ec(0x1a));};exports[_0x43ec(0x1e)]=cleanupOAuthService;let currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;const handleDeepLink=async _0x3472d2=>{const _0x3cef38={'eGRtv':function(_0x310c09,_0x41eeb7){return _0x310c09(_0x41eeb7);},'OShnZ':_0x43ec(0x1f),'opPIi':_0x43ec(0x20),'lPwCP':_0x43ec(0x21),'JBJNe':'response_type','pAajE':'scope','MRuIO':_0x43ec(0x22),'YTfdT':_0x43ec(0x23),'DevEC':function(_0x2db1cf,_0x39f289){return _0x2db1cf!==_0x39f289;},'ABLWC':function(_0x1562cf,_0x21dc06){return _0x1562cf!==_0x21dc06;},'TZmpz':'FZnOI','yEXmP':_0x43ec(0x24),'oLqVo':function(_0x33d005,_0x305241){return _0x33d005(_0x305241);},'xXfbm':function(_0x1ed4a6,_0xdc35a){return _0x1ed4a6===_0xdc35a;},'dioZT':'euJDg','VyIFT':function(_0xc57d26,_0x2ed5d5){return _0xc57d26(_0x2ed5d5);},'UdfHn':_0x43ec(0x25),'MDGFk':'XOdHW','IfEXl':_0x43ec(0x26),'RCcsR':function(_0x54b43c,_0x25cf7d){return _0x54b43c(_0x25cf7d);},'ZEeFa':function(_0x1987cd,_0x195785){return _0x1987cd===_0x195785;},'LtbJp':_0x43ec(0x27),'bzbAn':_0x43ec(0x28),'jskAP':_0x43ec(0x29),'LLJsb':_0x43ec(0x2a),'XXKrf':function(_0x38b58f,_0x4b86cd){return _0x38b58f===_0x4b86cd;},'PEXfV':_0x43ec(0x2b)};try{const {url:_0x55cac5}=_0x3472d2;if(!_0x55cac5[_0x43ec(0x2c)](_0x3cef38[_0x43ec(0x2d)]))return;const _0x10d5db=_0x55cac5['split'](_0x3cef38[_0x43ec(0x2d)])[0x1]['split']('?')[0x0];if(_0x3cef38['DevEC'](_0x10d5db,currentOAuthPlatform)){if(_0x3cef38[_0x43ec(0x2e)]('wZfvr',_0x43ec(0x2f)))return;else return;}const _0x3a0625=new URL(_0x55cac5)[_0x43ec(0x30)],_0x2258fc=_0x3a0625[_0x43ec(0x31)](_0x43ec(0xa)),_0x209390=_0x3a0625[_0x43ec(0x31)](_0x3cef38['MRuIO']),_0xb57cd2=_0x3a0625[_0x43ec(0x31)](_0x43ec(0x32));if(_0x209390!==currentOAuthState){if(_0x3cef38[_0x43ec(0x33)](_0x3cef38['TZmpz'],_0x3cef38[_0x43ec(0x34)]))_0x3cef38[_0x43ec(0x35)](_0x2d49ce,new _0x273ca4(_0x43ec(0x1f)));else{if(currentOAuthReject){if(_0x3cef38[_0x43ec(0x33)]('Olfjg',_0x3cef38[_0x43ec(0x36)]))_0x3cef38['oLqVo'](currentOAuthReject,new Error(_0x43ec(0x1f)));else{_0xac5316&&_0xb5a8f7(new _0x2634ba(_0x3cef38[_0x43ec(0x37)]));return;}}return;}}if(_0xb57cd2){if(_0x3cef38[_0x43ec(0x38)](_0x3cef38[_0x43ec(0x39)],_0x43ec(0x3a))){currentOAuthReject&&_0x3cef38[_0x43ec(0x3b)](currentOAuthReject,new Error(_0x43ec(0x3c)+_0xb57cd2));return;}else{const _0x501ed1=_0x500167[_0x43ec(0x14)]()[_0x43ec(0x15)](0x24)[_0x43ec(0x16)](0x2,0xf);return(0x0,_0x17c714[_0x43ec(0x17)])(_0x501ed1)['substring'](0x0,0xa);}}if(_0x2258fc){if(_0x3cef38['UdfHn']===_0x3cef38[_0x43ec(0x3d)]){const _0x48489b=await exchangeCodeForToken(_0x10d5db,_0x2258fc);if(currentOAuthResolve){if(_0x3cef38[_0x43ec(0x2e)](_0x3cef38[_0x43ec(0x3e)],_0x3cef38['IfEXl']))_0x3cef38[_0x43ec(0x3f)](currentOAuthResolve,_0x48489b);else return _0x5ccae3[_0x43ec(0x32)](_0x43ec(0x40)+_0x221639+'):',_0x11a38f),![];}}else{_0x2739dc['error'](_0x43ec(0x41)+_0x1c81a1+'):',_0x228f62);throw _0x172f8a;}}else _0x3cef38[_0x43ec(0x42)](_0x3cef38[_0x43ec(0x43)],_0x3cef38[_0x43ec(0x43)])?currentOAuthReject&¤tOAuthReject(new Error(_0x3cef38[_0x43ec(0x44)])):(_0x2cef3d[_0x43ec(0x32)]('Error\x20handling\x20OAuth\x20deep\x20link:',_0xe1fff3),_0x583dc3&&_0x3cef38['eGRtv'](_0xa958ae,_0x49029b));}catch(_0x1a991c){if(_0x3cef38[_0x43ec(0x42)](_0x43ec(0x45),_0x43ec(0x45))){console['error'](_0x3cef38[_0x43ec(0x46)],_0x1a991c);if(currentOAuthReject){if(_0x3cef38[_0x43ec(0x33)](_0x3cef38['LLJsb'],_0x3cef38[_0x43ec(0x47)])){const _0x1ae6a7=_0x4a3b9d[_0x22eeed];if(!_0x1ae6a7)throw new _0x235528(_0x43ec(0x48)+_0x2b0e39);const _0x178e26=_0x11b1ff(),_0x48292c=new _0x5cfc04(_0x1ae6a7[_0x43ec(0x49)]);_0x48292c[_0x43ec(0x30)][_0x43ec(0x4a)](_0x3cef38[_0x43ec(0x4b)],_0x1ae6a7['clientId']),_0x48292c[_0x43ec(0x30)][_0x43ec(0x4a)](_0x3cef38[_0x43ec(0x4c)],_0x1ae6a7[_0x43ec(0x4d)]),_0x48292c[_0x43ec(0x30)][_0x43ec(0x4a)](_0x3cef38[_0x43ec(0x4e)],_0x1ae6a7['responseType']),_0x48292c[_0x43ec(0x30)][_0x43ec(0x4a)](_0x3cef38[_0x43ec(0x4f)],_0x1ae6a7[_0x43ec(0x50)]),_0x48292c[_0x43ec(0x30)]['append'](_0x3cef38[_0x43ec(0x51)],_0x178e26),_0x303020=_0x178e26,_0x2c0d7f=_0x41e3ba,_0x850ba4=_0x4194b0,_0x37f997=_0x4ccfcc,_0x3332f6[_0x43ec(0x18)][_0x43ec(0x52)](_0x48292c['toString']());}else currentOAuthReject(_0x1a991c);}}else return;}finally{if(_0x3cef38[_0x43ec(0x53)](_0x3cef38[_0x43ec(0x54)],_0x43ec(0x55)))throw new _0x379fa4(_0x43ec(0x48)+_0x531efb);else currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;}},exchangeCodeForToken=async(_0x26abf4,_0x3dfe61)=>{const _0x9103dd={'ouIuN':_0x43ec(0x1a),'TaToI':function(_0x26ef51,_0x32ea46){return _0x26ef51===_0x32ea46;},'VTvQV':'KVltm','EbXFL':_0x43ec(0x56),'rObbz':_0x43ec(0x57),'dPytL':function(_0x1aedb1,_0x3447b7,_0x5cfeb5){return _0x1aedb1(_0x3447b7,_0x5cfeb5);},'FpxfS':_0x43ec(0x58),'xNLQT':function(_0x11f6e9,_0x1a71b9){return _0x11f6e9===_0x1a71b9;},'iXbty':_0x43ec(0x59),'jJlIv':_0x43ec(0x5a),'XXVlO':function(_0x346ddb,_0x57aad9,_0x1f89cf){return _0x346ddb(_0x57aad9,_0x1f89cf);}};try{const _0x50bb88=OAUTH_CONFIGS[_0x26abf4];if(!_0x50bb88){if(_0x9103dd[_0x43ec(0x5b)](_0x9103dd[_0x43ec(0x5c)],_0x9103dd[_0x43ec(0x5d)]))_0x44b35a[_0x43ec(0x18)][_0x43ec(0x19)](_0x9103dd[_0x43ec(0x5e)],_0x140e3f);else throw new Error(_0x43ec(0x48)+_0x26abf4);}const _0x2532b7=new URLSearchParams({'grant_type':_0x9103dd[_0x43ec(0x5f)],'code':_0x3dfe61,'redirect_uri':_0x50bb88['redirectUri'],'client_id':_0x50bb88['clientId']}),_0x5cf8a0=await _0x9103dd['dPytL'](fetch,_0x50bb88[_0x43ec(0x60)],{'method':'POST','headers':{'Content-Type':_0x9103dd[_0x43ec(0x61)]},'body':_0x2532b7[_0x43ec(0x15)]()}),_0x1441e7=await _0x5cf8a0['json']();if(!_0x5cf8a0['ok']){if(_0x9103dd[_0x43ec(0x62)](_0x43ec(0x63),_0x9103dd[_0x43ec(0x64)])){_0x1f141f&&_0x3a158b(new _0x1cea75('OAuth\x20error:\x20'+_0x58167a));return;}else throw new Error(_0x1441e7[_0x43ec(0x32)]||_0x9103dd[_0x43ec(0x65)]);}const _0xdd4d63=await _0x9103dd[_0x43ec(0x66)](fetchUserInfo,_0x26abf4,_0x1441e7[_0x43ec(0x67)]);return{'token':_0x1441e7['access_token'],'refreshToken':_0x1441e7[_0x43ec(0x68)],'expiresIn':_0x1441e7['expires_in'],'username':_0xdd4d63[_0x43ec(0x69)],'userId':_0xdd4d63['id']};}catch(_0x4ef458){console[_0x43ec(0x32)]('Error\x20exchanging\x20code\x20for\x20token\x20('+_0x26abf4+'):',_0x4ef458);throw _0x4ef458;}},fetchUserInfo=async(_0x430f81,_0x5b4821)=>{const _0x5735a5={'NWufe':_0x43ec(0x6a),'BCVUO':'youtube','vTNuP':_0x43ec(0x6b),'zwuCm':_0x43ec(0x6c),'XxBOY':_0x43ec(0x6d),'AmgRy':function(_0x44970,_0x505d76,_0xd6e9d2){return _0x44970(_0x505d76,_0xd6e9d2);},'nZDbC':'Failed\x20to\x20fetch\x20user\x20info','VpKkM':_0x43ec(0x6e),'LXxdo':_0x43ec(0x6f),'IQglK':function(_0x2d4715,_0x3e23ec){return _0x2d4715!==_0x3e23ec;},'FhjKg':_0x43ec(0x70),'xzMHl':_0x43ec(0x71)};try{let _0x50fdc6,_0x2dd28d={'Authorization':_0x43ec(0x72)+_0x5b4821};switch(_0x430f81){case _0x43ec(0x6e):_0x50fdc6=_0x5735a5[_0x43ec(0x73)];break;case _0x5735a5[_0x43ec(0x74)]:_0x50fdc6=_0x5735a5['vTNuP'];break;case _0x43ec(0x6f):_0x50fdc6=_0x5735a5[_0x43ec(0x75)];break;case _0x5735a5['XxBOY']:_0x50fdc6=_0x43ec(0x76);break;default:throw new Error(_0x43ec(0x48)+_0x430f81);}const _0xa0dbe1=await _0x5735a5[_0x43ec(0x77)](fetch,_0x50fdc6,{'headers':_0x2dd28d}),_0x29a41f=await _0xa0dbe1['json']();if(!_0xa0dbe1['ok'])throw new Error(_0x29a41f[_0x43ec(0x32)]||_0x5735a5[_0x43ec(0x78)]);switch(_0x430f81){case _0x5735a5[_0x43ec(0x79)]:return{'id':_0x29a41f['id'],'username':_0x29a41f[_0x43ec(0x69)]};case _0x5735a5[_0x43ec(0x74)]:return{'id':_0x29a41f[_0x43ec(0x7a)][0x0]['id'],'username':_0x29a41f[_0x43ec(0x7a)][0x0]['snippet'][_0x43ec(0x7b)]};case _0x5735a5[_0x43ec(0x7c)]:return{'id':_0x29a41f['id'],'username':_0x29a41f[_0x43ec(0x69)]||_0x29a41f[_0x43ec(0x7d)]};case _0x5735a5[_0x43ec(0x7e)]:return{'id':_0x29a41f['id'],'username':_0x29a41f['name']};default:throw new Error(_0x43ec(0x48)+_0x430f81);}}catch(_0x3c9334){if(_0x5735a5['IQglK'](_0x5735a5[_0x43ec(0x7f)],_0x5735a5[_0x43ec(0x80)])){console[_0x43ec(0x32)]('Error\x20fetching\x20user\x20info\x20('+_0x430f81+'):',_0x3c9334);throw _0x3c9334;}else throw new _0x484bc4('Unsupported\x20platform:\x20'+_0x30a8c2);}},connectPlatform=_0x43263a=>{const _0x9c2927={'wVeqb':'Failed\x20to\x20fetch\x20user\x20info','TZzlm':_0x43ec(0x81),'puQux':function(_0x1d586b){return _0x1d586b();},'xOxRT':_0x43ec(0x21),'HmlaQ':_0x43ec(0x82),'sKfWa':_0x43ec(0x50),'AOYOD':_0x43ec(0x22),'XSOtR':function(_0x334968,_0x1d689b){return _0x334968(_0x1d689b);}};return new Promise((_0x53fd34,_0xe1d6dc)=>{const _0x262f8b={'XYUUB':_0x9c2927[_0x43ec(0x83)]};try{const _0x511e83=OAUTH_CONFIGS[_0x43263a];if(!_0x511e83){if(_0x9c2927[_0x43ec(0x84)]!==_0x9c2927['TZzlm'])throw new _0x57bf60(_0x1931fc['error']||_0x262f8b['XYUUB']);else throw new Error(_0x43ec(0x48)+_0x43263a);}const _0x1f2dc0=_0x9c2927[_0x43ec(0x85)](generateState),_0x288930=new URL(_0x511e83[_0x43ec(0x49)]);_0x288930['searchParams'][_0x43ec(0x4a)](_0x43ec(0x20),_0x511e83[_0x43ec(0x86)]),_0x288930[_0x43ec(0x30)][_0x43ec(0x4a)](_0x9c2927[_0x43ec(0x87)],_0x511e83[_0x43ec(0x4d)]),_0x288930[_0x43ec(0x30)][_0x43ec(0x4a)](_0x9c2927[_0x43ec(0x88)],_0x511e83[_0x43ec(0x89)]),_0x288930['searchParams'][_0x43ec(0x4a)](_0x9c2927[_0x43ec(0x8a)],_0x511e83[_0x43ec(0x50)]),_0x288930['searchParams'][_0x43ec(0x4a)](_0x9c2927[_0x43ec(0x8b)],_0x1f2dc0),currentOAuthState=_0x1f2dc0,currentOAuthPlatform=_0x43263a,currentOAuthResolve=_0x53fd34,currentOAuthReject=_0xe1d6dc,_reactNative['Linking']['openURL'](_0x288930['toString']());}catch(_0x54ddc){_0x9c2927[_0x43ec(0x8c)](_0xe1d6dc,_0x54ddc);}});};function _0x5350(){const _0x5202cd=['defineProperty','__esModule','storePlatformConnection','initializeOAuthService','connectPlatform','OAuthService','onairosanime://auth/instagram','user_profile,user_media','https://api.instagram.com/oauth/authorize','https://api.instagram.com/oauth/access_token','code','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','random','toString','substring','sha256','Linking','addEventListener','url','function','removeAllListeners','plMyx','cleanupOAuthService','OAuth\x20state\x20mismatch\x20-\x20possible\x20CSRF\x20attack','client_id','redirect_uri','state','onairosanime://auth/','hVkpW','nzCPt','odlev','SZWky','No\x20authorization\x20code\x20received','Error\x20handling\x20OAuth\x20deep\x20link:','ASHEw','QPgqR','startsWith','YTfdT','ABLWC','DWADY','searchParams','get','error','DevEC','TZmpz','eGRtv','yEXmP','OShnZ','xXfbm','dioZT','euJDg','VyIFT','OAuth\x20error:\x20','UdfHn','MDGFk','RCcsR','Error\x20storing\x20platform\x20connection\x20(','Error\x20exchanging\x20code\x20for\x20token\x20(','ZEeFa','LtbJp','bzbAn','HXdMg','jskAP','LLJsb','Unsupported\x20platform:\x20','authorizationEndpoint','append','opPIi','lPwCP','redirectUri','JBJNe','pAajE','scope','MRuIO','openURL','XXKrf','PEXfV','vTuzo','ajONN','authorization_code','application/x-www-form-urlencoded','TAynN','Failed\x20to\x20exchange\x20code\x20for\x20token','TaToI','VTvQV','EbXFL','ouIuN','rObbz','tokenEndpoint','FpxfS','xNLQT','eJsOA','iXbty','jJlIv','XXVlO','access_token','refresh_token','username','https://graph.instagram.com/me?fields=id,username','https://www.googleapis.com/youtube/v3/channels?part=snippet&mine=true','https://api.pinterest.com/v5/user_account','reddit','instagram','pinterest','BepGt','fVaEf','Bearer\x20','NWufe','BCVUO','zwuCm','https://oauth.reddit.com/api/v1/me','AmgRy','nZDbC','VpKkM','items','title','LXxdo','full_name','XxBOY','FhjKg','xzMHl','VSsfL','response_type','wVeqb','TZzlm','puQux','clientId','xOxRT','HmlaQ','responseType','sKfWa','AOYOD','XSOtR','/users/disconnect-platform','uxhMN','hRZSZ','onairosApi','post','IwXPv','platforms','htNIP','wtSQM','updateCredentials','Error\x20disconnecting\x20platform\x20(','disconnectPlatform','youtube','CVkwS','hvUll','krzrb','ZVPou','token','refreshToken','expiresIn','MgMjG','xLGBu','bKSHu','lcgqL','API_CONFIG','BASE_URL'];_0x5350=function(){return _0x5202cd;};return _0x5350();}exports[_0x43ec(0x4)]=connectPlatform;const disconnectPlatform=async(_0x48e72f,_0xee5b28)=>{const _0x41b0a2={'wtSQM':function(_0xda2907,_0x267fc8){return _0xda2907(_0x267fc8);},'IwXPv':_0x43ec(0x8d),'zptjK':function(_0x2f599c,_0x22b09b){return _0x2f599c===_0x22b09b;},'htNIP':_0x43ec(0x8e),'VESDM':_0x43ec(0x8f)};try{await _api[_0x43ec(0x90)][_0x43ec(0x91)](_0x41b0a2[_0x43ec(0x92)],{'platform':_0x48e72f,'username':_0xee5b28[_0x43ec(0x69)]});const _0x4acdae={..._0xee5b28[_0x43ec(0x93)]};return _0x4acdae&&_0x48e72f in _0x4acdae&&(_0x41b0a2['zptjK'](_0x41b0a2[_0x43ec(0x94)],_0x41b0a2['VESDM'])?_0x41b0a2[_0x43ec(0x95)](_0x3b6400,_0xf73fe3):delete _0x4acdae[_0x48e72f]),await(0x0,_secureStorage[_0x43ec(0x96)])({..._0xee5b28,'platforms':_0x4acdae}),!![];}catch(_0x58903d){return console[_0x43ec(0x32)](_0x43ec(0x97)+_0x48e72f+'):',_0x58903d),![];}};exports[_0x43ec(0x98)]=disconnectPlatform;const storePlatformConnection=async(_0x539330,_0x1ec63c,_0x3de47f)=>{const _0x56278c={'CVkwS':function(_0x74082a,_0x203094){return _0x74082a===_0x203094;},'hvUll':function(_0x115d3e,_0x5e6652){return _0x115d3e===_0x5e6652;},'bKSHu':_0x43ec(0x99),'krzrb':_0x43ec(0x6f),'ZVPou':_0x43ec(0x6d),'MgMjG':function(_0x1667b6,_0x12b510){return _0x1667b6*_0x12b510;},'xLGBu':_0x43ec(0x6e),'lcgqL':function(_0x19d61f,_0x2ec047){return _0x19d61f===_0x2ec047;}};try{const _0x3ab651=_0x56278c[_0x43ec(0x9a)](_0x539330,_0x43ec(0x6e))||_0x56278c[_0x43ec(0x9b)](_0x539330,_0x56278c['bKSHu'])||_0x56278c['CVkwS'](_0x539330,_0x56278c[_0x43ec(0x9c)])||_0x56278c[_0x43ec(0x9b)](_0x539330,_0x56278c[_0x43ec(0x9d)]);if(!_0x3ab651)throw new Error('Unsupported\x20platform:\x20'+_0x539330);const _0x2826a2={..._0x3de47f[_0x43ec(0x93)]},_0x595100={'username':_0x1ec63c[_0x43ec(0x69)],'userId':_0x1ec63c['userId'],'token':_0x1ec63c[_0x43ec(0x9e)],'refreshToken':_0x1ec63c[_0x43ec(0x9f)],'expiresAt':_0x1ec63c[_0x43ec(0xa0)]?Date['now']()+_0x56278c[_0x43ec(0xa1)](_0x1ec63c['expiresIn'],0x3e8):null,'connectedAt':Date['now']()};if(_0x56278c['hvUll'](_0x539330,_0x56278c[_0x43ec(0xa2)]))_0x2826a2[_0x43ec(0x6e)]=_0x595100;else{if(_0x56278c['lcgqL'](_0x539330,_0x56278c[_0x43ec(0xa3)]))_0x2826a2[_0x43ec(0x99)]=_0x595100;else{if(_0x56278c[_0x43ec(0xa4)](_0x539330,_0x56278c['krzrb']))_0x2826a2[_0x43ec(0x6f)]=_0x595100;else{if(_0x56278c[_0x43ec(0xa4)](_0x539330,_0x43ec(0x6d)))_0x2826a2['reddit']=_0x595100;}}}return await(0x0,_secureStorage[_0x43ec(0x96)])({..._0x3de47f,'platforms':_0x2826a2}),!![];}catch(_0x3fe532){return console[_0x43ec(0x32)](_0x43ec(0x40)+_0x539330+'):',_0x3fe532),![];}};function _0x43ec(_0x5350ce,_0x43ec36){_0x5350ce=_0x5350ce-0x0;const _0x3e8784=_0x5350();let _0x1912f6=_0x3e8784[_0x5350ce];return _0x1912f6;}exports[_0x43ec(0x2)]=storePlatformConnection;const OAuthService=exports[_0x43ec(0x5)]={'initializeOAuthService':initializeOAuthService,'cleanupOAuthService':cleanupOAuthService,'connectPlatform':connectPlatform,'disconnectPlatform':disconnectPlatform,'storePlatformConnection':storePlatformConnection,'_apiBaseUrl':''+_api2[_0x43ec(0xa5)][_0x43ec(0xa6)]};
|
|
@@ -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
|
-
Object[
|
|
8
|
+
Object[_0x2264(0x0)](exports,_0x2264(0x1),{'value':!![]}),exports[_0x2264(0x2)]=exports[_0x2264(0x3)]=exports[_0x2264(0x4)]=exports['decryptPin']=void 0x0;var _pinStorageUtils=__ONAIROS_REQ_FUNC__(0x0);const CryptoJS=__ONAIROS_REQ_FUNC__(0x1),ENCRYPTION_KEY=_0x2264(0x5),encryptPin=_0x3f4280=>{const _0x51ef97={'bBDeG':_0x2264(0x6),'kgrlm':_0x2264(0x7),'DKkLg':function(_0x443713,_0x35e1df){return _0x443713!==_0x35e1df;},'IUNTz':_0x2264(0x8),'sHhxu':_0x2264(0x9)};try{const _0x271e5a=CryptoJS[_0x2264(0xa)][_0x2264(0xb)](_0x3f4280,ENCRYPTION_KEY)[_0x2264(0xc)]();return console[_0x2264(0xd)](_0x51ef97['kgrlm']),_0x271e5a;}catch(_0x3701d2){if(_0x51ef97[_0x2264(0xe)](_0x51ef97[_0x2264(0xf)],_0x2264(0x10))){console[_0x2264(0x11)](_0x51ef97[_0x2264(0x12)],_0x3701d2);throw _0x3701d2;}else{_0x22b4c6['error'](_0x51ef97[_0x2264(0x13)],_0x950db5);throw _0x474655;}}};exports[_0x2264(0x4)]=encryptPin;const decryptPin=_0x32fa68=>{const _0x393d31={'xRhcK':_0x2264(0x14),'noypH':_0x2264(0x15)};try{const _0x4eda59=CryptoJS[_0x2264(0xa)][_0x2264(0x16)](_0x32fa68,ENCRYPTION_KEY),_0x269c8d=_0x4eda59[_0x2264(0xc)](CryptoJS[_0x2264(0x17)][_0x2264(0x18)]);return console['log'](_0x393d31['xRhcK']),_0x269c8d;}catch(_0x4ded50){console[_0x2264(0x11)](_0x393d31['noypH'],_0x4ded50);throw _0x4ded50;}};exports['decryptPin']=decryptPin;function _0x2264(_0x2cff70,_0x226477){_0x2cff70=_0x2cff70-0x0;const _0x1151d5=_0x2cff();let _0x3d7cbe=_0x1151d5[_0x2cff70];return _0x3d7cbe;}function _0x2cff(){const _0x2eef24=['defineProperty','__esModule','hashPin','getEncryptedPinForAPI','encryptPin','onairos-pin-encryption-key-2024','❌\x20Error\x20hashing\x20PIN:','🔐\x20PIN\x20encrypted\x20successfully','Espav','❌\x20Error\x20encrypting\x20PIN:','AES','encrypt','toString','log','DKkLg','IUNTz','rBTje','error','sHhxu','bBDeG','🔓\x20PIN\x20decrypted\x20successfully','❌\x20Error\x20decrypting\x20PIN:','decrypt','enc','Utf8','HFFwE','mogDH','⚠️\x20No\x20temporary\x20PIN\x20available\x20for\x20encryption','❌\x20Error\x20getting\x20encrypted\x20PIN\x20for\x20API:','FcxXP','HSvfx','getTemporaryPin','tPvZr','lDqHE','IxAnY','LEvNM','QJieF','SHA256','🔒\x20PIN\x20hashed\x20successfully','VnnQT','DBqEP','suzRx','LWTXh'];_0x2cff=function(){return _0x2eef24;};return _0x2cff();}const getEncryptedPinForAPI=async()=>{const _0x2e6727={'IxAnY':_0x2264(0x7),'FcxXP':function(_0x113f8a,_0x2ea842){return _0x113f8a===_0x2ea842;},'HSvfx':_0x2264(0x19),'tPvZr':function(_0x42d971,_0xdddde4){return _0x42d971!==_0xdddde4;},'OXxYb':'BsmSY','lDqHE':_0x2264(0x1a),'tvYHk':_0x2264(0x1b),'LEvNM':function(_0x936b14,_0x549ca4){return _0x936b14(_0x549ca4);},'mogIT':_0x2264(0x1c)};try{if(_0x2e6727[_0x2264(0x1d)](_0x2264(0x19),_0x2e6727[_0x2264(0x1e)])){const _0x2973c9=(0x0,_pinStorageUtils[_0x2264(0x1f)])();if(!_0x2973c9){if(_0x2e6727[_0x2264(0x20)](_0x2e6727['OXxYb'],_0x2e6727[_0x2264(0x21)]))return console['log'](_0x2e6727['tvYHk']),null;else try{const _0x3c4a26=_0x384bab[_0x2264(0xa)]['encrypt'](_0x4569c1,_0xd41e77)[_0x2264(0xc)]();return _0xb1857f['log'](_0x2e6727[_0x2264(0x22)]),_0x3c4a26;}catch(_0x21620a){_0x2f18e2[_0x2264(0x11)](_0x2264(0x9),_0x21620a);throw _0x21620a;}}const _0x2ac713=_0x2e6727[_0x2264(0x23)](encryptPin,_0x2973c9);return console[_0x2264(0xd)]('✅\x20PIN\x20encrypted\x20for\x20API\x20transmission'),_0x2ac713;}else return _0x5064e2[_0x2264(0xd)](_0x2264(0x1b)),null;}catch(_0x540b4c){return console[_0x2264(0x11)](_0x2e6727['mogIT'],_0x540b4c),null;}};exports[_0x2264(0x3)]=getEncryptedPinForAPI;const hashPin=_0x3aa2ab=>{const _0x4b35c6={'suzRx':_0x2264(0x14),'VnnQT':_0x2264(0x24),'LWTXh':_0x2264(0x6)};try{const _0x11205a=CryptoJS[_0x2264(0x25)](_0x3aa2ab+ENCRYPTION_KEY)[_0x2264(0xc)]();return console[_0x2264(0xd)](_0x2264(0x26)),_0x11205a;}catch(_0xa21bf2){if(_0x4b35c6[_0x2264(0x27)]===_0x2264(0x28)){const _0x2c316f=_0x4796b2['AES'][_0x2264(0x16)](_0xf57799,_0x1900cd),_0x3dc42c=_0x2c316f[_0x2264(0xc)](_0x548bf8[_0x2264(0x17)][_0x2264(0x18)]);return _0x31d885['log'](_0x4b35c6[_0x2264(0x29)]),_0x3dc42c;}else{console[_0x2264(0x11)](_0x4b35c6[_0x2264(0x2a)],_0xa21bf2);throw _0xa21bf2;}}};exports[_0x2264(0x2)]=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[_0x5d73(0x0)](exports,_0x5d73(0x1),{'value':!![]}),exports[_0x5d73(0x2)]=exports['hasStoredPin']=exports['getTemporaryPin']=exports['getStoredPinForTraining']=exports[_0x5d73(0x3)]=exports[_0x5d73(0x4)]=exports['clearStoredPin']=void 0x0;var _biometricPinService=__ONAIROS_REQ_FUNC__(0x0);const getStoredPinForTraining=async()=>{const _0x5dd9d8={'mPOYP':_0x5d73(0x5),'GVIeo':'❌\x20Failed\x20to\x20retrieve\x20PIN\x20or\x20user\x20cancelled\x20authentication','WsyzB':function(_0x2cbbf7,_0x26355a){return _0x2cbbf7===_0x26355a;},'Khhtq':_0x5d73(0x6),'MTpKz':_0x5d73(0x7),'qFNim':'acKFE','UswDK':_0x5d73(0x8),'TmVOw':_0x5d73(0x9)};try{if(_0x5dd9d8['WsyzB'](_0x5dd9d8['Khhtq'],_0x5dd9d8[_0x5d73(0xa)])){console[_0x5d73(0xb)](_0x5dd9d8['MTpKz']);const _0x1ebcbb=await _biometricPinService[_0x5d73(0xc)][_0x5d73(0xd)]();if(!_0x1ebcbb)return _0x5dd9d8[_0x5d73(0xe)]===_0x5dd9d8[_0x5d73(0xe)]?(console['log'](_0x5dd9d8[_0x5d73(0xf)]),null):(_0x2e2088[_0x5d73(0xb)](_0x5dd9d8[_0x5d73(0x10)]),_0x3c5ef6);const _0x38d7e1=await _biometricPinService['biometricPinService']['retrievePinWithBiometric']();return _0x38d7e1?(console['log'](_0x5dd9d8[_0x5d73(0x10)]),_0x38d7e1):(console[_0x5d73(0xb)](_0x5dd9d8[_0x5d73(0x11)]),null);}else return _0x5dfadb[_0x5d73(0xb)](_0x5dd9d8[_0x5d73(0x11)]),null;}catch(_0x5b4632){return console[_0x5d73(0x12)](_0x5dd9d8[_0x5d73(0x13)],_0x5b4632),null;}};exports['getStoredPinForTraining']=getStoredPinForTraining;const hasStoredPin=async()=>{const _0x9a05cf={'whCZE':_0x5d73(0x14),'UnBmd':function(_0x468e92,_0x489d4f){return _0x468e92!==_0x489d4f;},'FDwKV':_0x5d73(0x15)};try{return await _biometricPinService[_0x5d73(0xc)]['isPinStored']();}catch(_0x21cbee){if(_0x9a05cf['UnBmd'](_0x9a05cf['FDwKV'],_0x9a05cf[_0x5d73(0x16)]))_0x54e9dc=_0x407c84,_0x11e617[_0x5d73(0xb)](_0x9a05cf[_0x5d73(0x17)]);else return console[_0x5d73(0x12)](_0x5d73(0x18),_0x21cbee),![];}};exports['hasStoredPin']=hasStoredPin;const clearStoredPin=async()=>{const _0x4bbe45={'TJuWw':_0x5d73(0x19),'kPInN':_0x5d73(0x1a)};try{return console[_0x5d73(0xb)](_0x4bbe45['TJuWw']),await _biometricPinService[_0x5d73(0xc)][_0x5d73(0x1b)]();}catch(_0x3a719a){return console[_0x5d73(0x12)](_0x4bbe45['kPInN'],_0x3a719a),![];}};exports['clearStoredPin']=clearStoredPin;const getPinForTraining=async _0x4e792c=>{const _0x5cc120={'PPbKG':_0x5d73(0x1c),'QrDBz':function(_0x4d8555){return _0x4d8555();}};if(_0x4e792c)return console['log'](_0x5cc120[_0x5d73(0x1d)]),_0x4e792c;return await _0x5cc120['QrDBz'](getStoredPinForTraining);};exports[_0x5d73(0x3)]=getPinForTraining;let temporaryPin=null;function _0x5d73(_0x23b3ce,_0x5d73b5){_0x23b3ce=_0x23b3ce-0x0;const _0x325250=_0x23b3();let _0x4ffeff=_0x325250[_0x23b3ce];return _0x4ffeff;}const setTemporaryPin=_0x19c1ae=>{const _0x2a17e0={'HygEj':_0x5d73(0x14)};temporaryPin=_0x19c1ae,console[_0x5d73(0xb)](_0x2a17e0['HygEj']);};exports[_0x5d73(0x2)]=setTemporaryPin;const getTemporaryPin=()=>{return temporaryPin;};exports[_0x5d73(0x1e)]=getTemporaryPin;const clearTemporaryPin=()=>{temporaryPin=null,console[_0x5d73(0xb)](_0x5d73(0x1f));};exports[_0x5d73(0x4)]=clearTemporaryPin;function _0x23b3(){const _0xfd1cc6=['defineProperty','__esModule','setTemporaryPin','getPinForTraining','clearTemporaryPin','✅\x20PIN\x20retrieved\x20successfully\x20for\x20training','nBeWc','🔓\x20Retrieving\x20stored\x20PIN\x20for\x20training...','⚠️\x20No\x20PIN\x20stored\x20in\x20secure\x20storage','❌\x20Error\x20retrieving\x20stored\x20PIN:','Khhtq','log','biometricPinService','isPinStored','qFNim','UswDK','mPOYP','GVIeo','error','TmVOw','📝\x20Temporary\x20PIN\x20set\x20for\x20training','WAyVc','FDwKV','whCZE','❌\x20Error\x20checking\x20PIN\x20storage:','🗑️\x20Clearing\x20stored\x20PIN...','❌\x20Error\x20clearing\x20stored\x20PIN:','removePinFromStorage','📝\x20Using\x20temporary\x20PIN\x20for\x20training','PPbKG','getTemporaryPin','🗑️\x20Temporary\x20PIN\x20cleared'];_0x23b3=function(){return _0xfd1cc6;};return _0x23b3();}
|