@onairos/react-native 3.6.9 → 3.7.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/README.md +423 -423
- package/lib/commonjs/api/index.js +1 -1
- package/lib/commonjs/assets/icons/netflix.png +0 -0
- package/lib/commonjs/assets/images/Checkbox.svg +3 -3
- package/lib/commonjs/assets/images/EnochE.svg +19 -19
- 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/netflix.png +0 -0
- 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 +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/SDK_API_KEY_VALIDATION.md +421 -421
- package/lib/commonjs/services/apiClient.js +1 -1
- package/lib/commonjs/services/apiKeyService.js +99 -99
- package/lib/commonjs/services/authService.js +72 -72
- 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/netflixDataExtractor.js +8 -0
- package/lib/commonjs/services/netflixDataService.js +9 -0
- package/lib/commonjs/services/oauthService.js +20 -20
- 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/spotifyDataExtractor.js +8 -0
- package/lib/commonjs/services/spotifyDataService.js +9 -0
- package/lib/commonjs/services/storageService.js +1 -1
- package/lib/commonjs/services/telegramDataExtractor.js +1 -1
- package/lib/commonjs/services/telegramDataService.js +1 -1
- package/lib/commonjs/services/trainingApiHelpers.js +1 -1
- package/lib/commonjs/services/userConnectionsService.js +1 -1
- package/lib/commonjs/services/youtubeMigrationService.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types.js +1 -1
- package/lib/commonjs/utils/Portal.js +1 -1
- package/lib/commonjs/utils/api.js +1 -1
- package/lib/commonjs/utils/assetRegistry.js +3 -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 +4 -2
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
- package/lib/commonjs/utils/webviewScripts/netflix.js +1 -0
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
- package/lib/commonjs/utils/webviewScripts/spotify.js +1 -0
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
- package/lib/module/api/index.js +1 -1
- package/lib/module/assets/icons/netflix.png +0 -0
- package/lib/module/assets/images/Checkbox.svg +3 -3
- package/lib/module/assets/images/EnochE.svg +19 -19
- 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/netflix.png +0 -0
- 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 +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/SDK_API_KEY_VALIDATION.md +421 -421
- package/lib/module/services/apiClient.js +1 -1
- package/lib/module/services/apiKeyService.js +99 -99
- package/lib/module/services/authService.js +72 -72
- 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/netflixDataExtractor.js +1 -0
- package/lib/module/services/netflixDataService.js +1 -0
- package/lib/module/services/oauthService.js +20 -20
- 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/spotifyDataExtractor.js +1 -0
- package/lib/module/services/spotifyDataService.js +1 -0
- package/lib/module/services/storageService.js +1 -1
- package/lib/module/services/telegramDataExtractor.js +1 -1
- package/lib/module/services/telegramDataService.js +1 -1
- package/lib/module/services/trainingApiHelpers.js +1 -1
- package/lib/module/services/userConnectionsService.js +1 -1
- package/lib/module/services/youtubeMigrationService.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/types.js +1 -1
- package/lib/module/utils/Portal.js +1 -1
- package/lib/module/utils/api.js +1 -1
- package/lib/module/utils/assetRegistry.js +3 -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/netflix.js +1 -0
- package/lib/module/utils/webviewScripts/sephora.js +1 -1
- package/lib/module/utils/webviewScripts/spotify.js +1 -0
- package/lib/module/utils/webviewScripts/telegram.js +1 -1
- package/package.json +172 -172
- package/lib/commonjs/config/PLATFORM_APIS.md +0 -559
- package/lib/commonjs/config/telegramConfig.js +0 -8
- package/lib/commonjs/config/webchangelog/md +0 -607
- package/lib/module/config/PLATFORM_APIS.md +0 -559
- package/lib/module/config/telegramConfig.js +0 -8
- package/lib/module/config/webchangelog/md +0 -607
|
@@ -14,9 +14,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
14
14
|
// API base URL
|
|
15
15
|
const API_BASE_URL = _api.API_CONFIG.BASE_URL;
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Wait for SDK initialization to complete (up to maxWaitMs).
|
|
19
|
-
* Polls isApiKeyInitialized() every 500ms.
|
|
17
|
+
/**
|
|
18
|
+
* Wait for SDK initialization to complete (up to maxWaitMs).
|
|
19
|
+
* Polls isApiKeyInitialized() every 500ms.
|
|
20
20
|
*/
|
|
21
21
|
const waitForSDKInit = async (maxWaitMs = 8000) => {
|
|
22
22
|
if ((0, _apiKeyService.isApiKeyInitialized)()) return true;
|
|
@@ -38,20 +38,20 @@ const waitForSDKInit = async (maxWaitMs = 8000) => {
|
|
|
38
38
|
|
|
39
39
|
// Interface for Apple authentication payload
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* Generic SDK Authentication Response
|
|
43
|
-
* Used by all auth methods (Google, Apple, Email)
|
|
41
|
+
/**
|
|
42
|
+
* Generic SDK Authentication Response
|
|
43
|
+
* Used by all auth methods (Google, Apple, Email)
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* Authenticate with Apple
|
|
48
|
-
* @param appleAuthData Data from Apple authentication
|
|
49
|
-
* @returns Authentication response with token and user data
|
|
46
|
+
/**
|
|
47
|
+
* Authenticate with Apple
|
|
48
|
+
* @param appleAuthData Data from Apple authentication
|
|
49
|
+
* @returns Authentication response with token and user data
|
|
50
50
|
*/
|
|
51
|
-
/**
|
|
52
|
-
* Authenticate with Onairos (similar to Apple authentication)
|
|
53
|
-
* @param onairosAuthData Data from Onairos authentication
|
|
54
|
-
* @returns Authentication response with token and user data
|
|
51
|
+
/**
|
|
52
|
+
* Authenticate with Onairos (similar to Apple authentication)
|
|
53
|
+
* @param onairosAuthData Data from Onairos authentication
|
|
54
|
+
* @returns Authentication response with token and user data
|
|
55
55
|
*/
|
|
56
56
|
const authenticateWithOnairos = async onairosAuthData => {
|
|
57
57
|
try {
|
|
@@ -87,10 +87,10 @@ const authenticateWithOnairos = async onairosAuthData => {
|
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* Authenticate with Onairos using the standardized /login/signin endpoint
|
|
92
|
-
* @param credentials Email and password for Onairos sign-in
|
|
93
|
-
* @returns Authentication response with token and user data
|
|
90
|
+
/**
|
|
91
|
+
* Authenticate with Onairos using the standardized /login/signin endpoint
|
|
92
|
+
* @param credentials Email and password for Onairos sign-in
|
|
93
|
+
* @returns Authentication response with token and user data
|
|
94
94
|
*/
|
|
95
95
|
exports.authenticateWithOnairos = authenticateWithOnairos;
|
|
96
96
|
const authenticateWithOnairosSignIn = async credentials => {
|
|
@@ -137,10 +137,10 @@ const authenticateWithOnairosSignIn = async credentials => {
|
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
/**
|
|
141
|
-
* Authenticate with Apple using generic SDK endpoint
|
|
142
|
-
* NOTE: This is generic SDK auth - does NOT create EnochUser
|
|
143
|
-
* Consuming apps should call /enoch/users/register after this if needed
|
|
140
|
+
/**
|
|
141
|
+
* Authenticate with Apple using generic SDK endpoint
|
|
142
|
+
* NOTE: This is generic SDK auth - does NOT create EnochUser
|
|
143
|
+
* Consuming apps should call /enoch/users/register after this if needed
|
|
144
144
|
*/
|
|
145
145
|
exports.authenticateWithOnairosSignIn = authenticateWithOnairosSignIn;
|
|
146
146
|
const authenticateWithApple = async appleAuthData => {
|
|
@@ -200,9 +200,9 @@ const authenticateWithApple = async appleAuthData => {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
/**
|
|
204
|
-
* Save authentication token
|
|
205
|
-
* @param token JWT token
|
|
203
|
+
/**
|
|
204
|
+
* Save authentication token
|
|
205
|
+
* @param token JWT token
|
|
206
206
|
*/
|
|
207
207
|
exports.authenticateWithApple = authenticateWithApple;
|
|
208
208
|
const saveAuthToken = async token => {
|
|
@@ -214,8 +214,8 @@ const saveAuthToken = async token => {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
/**
|
|
218
|
-
* Debug function to check all auth-related storage
|
|
217
|
+
/**
|
|
218
|
+
* Debug function to check all auth-related storage
|
|
219
219
|
*/
|
|
220
220
|
exports.saveAuthToken = saveAuthToken;
|
|
221
221
|
const debugAuthStorage = async () => {
|
|
@@ -236,8 +236,8 @@ const debugAuthStorage = async () => {
|
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
|
|
239
|
-
/**
|
|
240
|
-
* Clear all auth tokens and start fresh
|
|
239
|
+
/**
|
|
240
|
+
* Clear all auth tokens and start fresh
|
|
241
241
|
*/
|
|
242
242
|
exports.debugAuthStorage = debugAuthStorage;
|
|
243
243
|
const clearAllAuthTokens = async () => {
|
|
@@ -249,9 +249,9 @@ const clearAllAuthTokens = async () => {
|
|
|
249
249
|
console.log('✅ [AUTH] All auth tokens and data cleared');
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
/**
|
|
253
|
-
* Get saved authentication token
|
|
254
|
-
* @returns Saved JWT token or null if not found
|
|
252
|
+
/**
|
|
253
|
+
* Get saved authentication token
|
|
254
|
+
* @returns Saved JWT token or null if not found
|
|
255
255
|
*/
|
|
256
256
|
exports.clearAllAuthTokens = clearAllAuthTokens;
|
|
257
257
|
const getAuthToken = async () => {
|
|
@@ -269,8 +269,8 @@ const getAuthToken = async () => {
|
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
/**
|
|
273
|
-
* Remove authentication token (logout)
|
|
272
|
+
/**
|
|
273
|
+
* Remove authentication token (logout)
|
|
274
274
|
*/
|
|
275
275
|
exports.getAuthToken = getAuthToken;
|
|
276
276
|
const removeAuthToken = async () => {
|
|
@@ -281,9 +281,9 @@ const removeAuthToken = async () => {
|
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
/**
|
|
285
|
-
* Validate if user is properly authenticated
|
|
286
|
-
* @returns boolean indicating if user has valid authentication
|
|
284
|
+
/**
|
|
285
|
+
* Validate if user is properly authenticated
|
|
286
|
+
* @returns boolean indicating if user has valid authentication
|
|
287
287
|
*/
|
|
288
288
|
exports.removeAuthToken = removeAuthToken;
|
|
289
289
|
const isAuthenticated = async () => {
|
|
@@ -296,10 +296,10 @@ const isAuthenticated = async () => {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
/**
|
|
300
|
-
* Ensure authentication is available before making API calls
|
|
301
|
-
* @param apiName - Name of the API being called (for logging)
|
|
302
|
-
* @returns boolean indicating if authentication is available
|
|
299
|
+
/**
|
|
300
|
+
* Ensure authentication is available before making API calls
|
|
301
|
+
* @param apiName - Name of the API being called (for logging)
|
|
302
|
+
* @returns boolean indicating if authentication is available
|
|
303
303
|
*/
|
|
304
304
|
exports.isAuthenticated = isAuthenticated;
|
|
305
305
|
const ensureAuthentication = async apiName => {
|
|
@@ -316,9 +316,9 @@ const ensureAuthentication = async apiName => {
|
|
|
316
316
|
// SDK now uses a single simplified token. Enoch-specific token management
|
|
317
317
|
// should be handled by the consuming app if needed.
|
|
318
318
|
|
|
319
|
-
/**
|
|
320
|
-
* Verify token with backend
|
|
321
|
-
* @returns Boolean indicating if token is valid
|
|
319
|
+
/**
|
|
320
|
+
* Verify token with backend
|
|
321
|
+
* @returns Boolean indicating if token is valid
|
|
322
322
|
*/
|
|
323
323
|
exports.ensureAuthentication = ensureAuthentication;
|
|
324
324
|
const verifyToken = async () => {
|
|
@@ -356,10 +356,10 @@ const verifyToken = async () => {
|
|
|
356
356
|
// NOTE: getEventTimer has been removed from SDK - it's Enoch-specific.
|
|
357
357
|
// Consuming apps (like OnairosEvents) should call /enoch/event/timer directly.
|
|
358
358
|
|
|
359
|
-
/**
|
|
360
|
-
* Check if a user email has admin privileges
|
|
361
|
-
* @param email User email to check
|
|
362
|
-
* @returns True if user is an admin
|
|
359
|
+
/**
|
|
360
|
+
* Check if a user email has admin privileges
|
|
361
|
+
* @param email User email to check
|
|
362
|
+
* @returns True if user is an admin
|
|
363
363
|
*/
|
|
364
364
|
exports.verifyToken = verifyToken;
|
|
365
365
|
const isAdminEmail = email => {
|
|
@@ -377,9 +377,9 @@ const isAdminEmail = email => {
|
|
|
377
377
|
return isAdmin;
|
|
378
378
|
};
|
|
379
379
|
|
|
380
|
-
/**
|
|
381
|
-
* Get the current admin status from AsyncStorage
|
|
382
|
-
* This could be used for caching admin status between sessions
|
|
380
|
+
/**
|
|
381
|
+
* Get the current admin status from AsyncStorage
|
|
382
|
+
* This could be used for caching admin status between sessions
|
|
383
383
|
*/
|
|
384
384
|
exports.isAdminEmail = isAdminEmail;
|
|
385
385
|
const getAdminStatus = async () => {
|
|
@@ -392,9 +392,9 @@ const getAdminStatus = async () => {
|
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
-
/**
|
|
396
|
-
* Save admin status to AsyncStorage
|
|
397
|
-
* @param isAdmin Whether the user is an admin
|
|
395
|
+
/**
|
|
396
|
+
* Save admin status to AsyncStorage
|
|
397
|
+
* @param isAdmin Whether the user is an admin
|
|
398
398
|
*/
|
|
399
399
|
exports.getAdminStatus = getAdminStatus;
|
|
400
400
|
const saveAdminStatus = async isAdmin => {
|
|
@@ -405,10 +405,10 @@ const saveAdminStatus = async isAdmin => {
|
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
|
|
408
|
-
/**
|
|
409
|
-
* Get stored Onairos username for API calls
|
|
410
|
-
* This is used for data connector APIs (Reddit, etc.) that need the username
|
|
411
|
-
* @returns Stored username or null if not found
|
|
408
|
+
/**
|
|
409
|
+
* Get stored Onairos username for API calls
|
|
410
|
+
* This is used for data connector APIs (Reddit, etc.) that need the username
|
|
411
|
+
* @returns Stored username or null if not found
|
|
412
412
|
*/
|
|
413
413
|
exports.saveAdminStatus = saveAdminStatus;
|
|
414
414
|
const getOnairosUsername = async () => {
|
|
@@ -420,9 +420,9 @@ const getOnairosUsername = async () => {
|
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
422
|
|
|
423
|
-
/**
|
|
424
|
-
* Save Onairos username for API calls
|
|
425
|
-
* @param username Username to store
|
|
423
|
+
/**
|
|
424
|
+
* Save Onairos username for API calls
|
|
425
|
+
* @param username Username to store
|
|
426
426
|
*/
|
|
427
427
|
exports.getOnairosUsername = getOnairosUsername;
|
|
428
428
|
const saveOnairosUsername = async username => {
|
|
@@ -433,10 +433,10 @@ const saveOnairosUsername = async username => {
|
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
/**
|
|
437
|
-
* Send email verification code
|
|
438
|
-
* @param email Email address to send verification code to
|
|
439
|
-
* @returns Result with success status and optional message
|
|
436
|
+
/**
|
|
437
|
+
* Send email verification code
|
|
438
|
+
* @param email Email address to send verification code to
|
|
439
|
+
* @returns Result with success status and optional message
|
|
440
440
|
*/
|
|
441
441
|
exports.saveOnairosUsername = saveOnairosUsername;
|
|
442
442
|
const sendEmailVerificationCode = async email => {
|
|
@@ -517,13 +517,13 @@ const sendEmailVerificationCode = async email => {
|
|
|
517
517
|
};
|
|
518
518
|
};
|
|
519
519
|
|
|
520
|
-
/**
|
|
521
|
-
* Confirm email verification code
|
|
522
|
-
* NOTE: This is generic SDK email verification - does NOT create EnochUser
|
|
523
|
-
* Consuming apps should call /enoch/users/register after this if needed
|
|
524
|
-
* @param email Email address that received the code
|
|
525
|
-
* @param code Verification code entered by user
|
|
526
|
-
* @returns Result with success status, optional token, and message
|
|
520
|
+
/**
|
|
521
|
+
* Confirm email verification code
|
|
522
|
+
* NOTE: This is generic SDK email verification - does NOT create EnochUser
|
|
523
|
+
* Consuming apps should call /enoch/users/register after this if needed
|
|
524
|
+
* @param email Email address that received the code
|
|
525
|
+
* @param code Verification code entered by user
|
|
526
|
+
* @returns Result with success status, optional token, and message
|
|
527
527
|
*/
|
|
528
528
|
exports.sendEmailVerificationCode = sendEmailVerificationCode;
|
|
529
529
|
const confirmEmailVerificationCode = async (email, code) => {
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("react-native")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
Object[_0x3ac3(0x0)](exports,_0x3ac3(0x1),{'value':!![]}),exports[_0x3ac3(0x2)]=exports['retrievePinWithBiometric']=exports[_0x3ac3(0x3)]=exports[_0x3ac3(0x4)]=exports[_0x3ac3(0x5)]=exports[_0x3ac3(0x6)]=void 0x0;var Keychain=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireWildcard(_0x48d6c4,_0x5d410e){const _0x319b8f={'dezTh':_0x3ac3(0x7),'qkSvH':function(_0x6b42,_0xc801e1){return _0x6b42===_0xc801e1;},'Qicfk':_0x3ac3(0x8),'oeHNb':function(_0x3b715f,_0x2280bb){return _0x3b715f&&_0x2280bb;},'xViNl':function(_0x4d6ae4,_0x12297f){return _0x4d6ae4!=_0x12297f;},'YxqaR':_0x3ac3(0x9),'oQIiF':function(_0x463de9,_0x44f1ca){return _0x463de9!==_0x44f1ca;},'WDXME':_0x3ac3(0xa),'HCLaT':_0x3ac3(0xb),'nsjFt':function(_0x517334,_0x5f3415,_0x32fdd1,_0x217c0f){return _0x517334(_0x5f3415,_0x32fdd1,_0x217c0f);},'zPZfD':function(_0xaaa667,_0x4a3757){return _0xaaa667==_0x4a3757;}};if(_0x319b8f['zPZfD'](_0x319b8f[_0x3ac3(0xc)],typeof WeakMap))var _0x1c15d6=new WeakMap(),_0x16e4ac=new WeakMap();return(_interopRequireWildcard=function(_0x3c908d,_0x5abf32){if(_0x319b8f[_0x3ac3(0xd)](_0x319b8f['Qicfk'],_0x319b8f[_0x3ac3(0xe)])){if(_0x319b8f[_0x3ac3(0xf)](!_0x5abf32,_0x3c908d)&&_0x3c908d[_0x3ac3(0x1)])return _0x3c908d;var _0x3c239b,_0x1ca08c,_0x5865cc={'__proto__':null,'default':_0x3c908d};if(null===_0x3c908d||_0x319b8f[_0x3ac3(0x10)](_0x3ac3(0x11),typeof _0x3c908d)&&_0x319b8f[_0x3ac3(0x10)](_0x319b8f['YxqaR'],typeof _0x3c908d))return _0x5865cc;if(_0x3c239b=_0x5abf32?_0x16e4ac:_0x1c15d6){if(_0x319b8f[_0x3ac3(0x12)](_0x3ac3(0xa),_0x319b8f['WDXME']))return _0x5b1233[_0x3ac3(0x13)](_0x3ac3(0x14)),null;else{if(_0x3c239b[_0x3ac3(0x15)](_0x3c908d))return _0x3c239b['get'](_0x3c908d);_0x3c239b[_0x3ac3(0x16)](_0x3c908d,_0x5865cc);}}for(const _0x3a3ffd in _0x3c908d)_0x319b8f[_0x3ac3(0x17)]!==_0x3a3ffd&&{}['hasOwnProperty'][_0x3ac3(0x18)](_0x3c908d,_0x3a3ffd)&&((_0x1ca08c=(_0x3c239b=Object[_0x3ac3(0x0)])&&Object[_0x3ac3(0x19)](_0x3c908d,_0x3a3ffd))&&(_0x1ca08c[_0x3ac3(0x1a)]||_0x1ca08c[_0x3ac3(0x16)])?_0x319b8f[_0x3ac3(0x1b)](_0x3c239b,_0x5865cc,_0x3a3ffd,_0x1ca08c):_0x5865cc[_0x3a3ffd]=_0x3c908d[_0x3a3ffd]);return _0x5865cc;}else return _0x2a178e[_0x3ac3(0x13)](_0x319b8f['dezTh']),null;})(_0x48d6c4,_0x5d410e);}const PIN_SERVICE_KEY=_0x3ac3(0x1c),PIN_USERNAME=_0x3ac3(0x1d),isBiometricAvailable=async()=>{const _0x1fbdc3={'GtzxH':'📱\x20Biometric\x20support:','zbDMW':function(_0x5f0984,_0x20272f){return _0x5f0984===_0x20272f;},'VDxtB':function(_0x13b76c,_0x13f8e3){return _0x13b76c===_0x13f8e3;},'ZjFrx':function(_0x2a9076,_0x233ea6){return _0x2a9076===_0x233ea6;},'Volnw':_0x3ac3(0x1e)};try{const _0x18f7a6=await Keychain[_0x3ac3(0x1f)]();return console[_0x3ac3(0x13)](_0x1fbdc3['GtzxH'],_0x18f7a6),_0x1fbdc3[_0x3ac3(0x20)](_0x18f7a6,Keychain[_0x3ac3(0x21)]['FACE_ID'])||_0x1fbdc3[_0x3ac3(0x22)](_0x18f7a6,Keychain[_0x3ac3(0x21)][_0x3ac3(0x23)])||_0x1fbdc3[_0x3ac3(0x24)](_0x18f7a6,Keychain[_0x3ac3(0x21)][_0x3ac3(0x25)])||_0x18f7a6===Keychain['BIOMETRY_TYPE'][_0x3ac3(0x26)]||_0x1fbdc3[_0x3ac3(0x20)](_0x18f7a6,Keychain[_0x3ac3(0x21)][_0x3ac3(0x27)]);}catch(_0x42d414){return console[_0x3ac3(0x28)](_0x1fbdc3[_0x3ac3(0x29)],_0x42d414),![];}};exports[_0x3ac3(0x5)]=isBiometricAvailable;const storePinWithBiometric=async _0x47c233=>{const _0x13a3ba={'JZjMc':_0x3ac3(0x2a),'ISvSz':_0x3ac3(0x2b),'RKlCm':_0x3ac3(0x2c),'NpJtr':_0x3ac3(0x2d),'cGETO':function(_0x5b8726,_0x341fd6){return _0x5b8726===_0x341fd6;},'WKkUh':_0x3ac3(0x2e),'NFOva':_0x3ac3(0x2f),'PHjdw':function(_0x32c8f7,_0xa03080){return _0x32c8f7===_0xa03080;},'Jjyvh':_0x3ac3(0x30),'dNfFc':'Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','YieCR':_0x3ac3(0x31),'qJUWd':_0x3ac3(0x32),'RoHEr':_0x3ac3(0x33),'zQiis':function(_0xc468f3,_0x10ce92){return _0xc468f3===_0x10ce92;},'OoqzV':_0x3ac3(0x34),'rdXKn':_0x3ac3(0x35),'Fsniy':_0x3ac3(0x36),'DVDmR':'❌\x20Error\x20details:','jXHvX':function(_0x3701cb,_0x24176a){return _0x3701cb!==_0x24176a;},'aMWOg':function(_0x2c0758,_0x9f7f52){return _0x2c0758!==_0x9f7f52;},'mGpJl':function(_0x4993ef,_0xf465b6){return _0x4993ef!==_0xf465b6;},'wWsco':_0x3ac3(0x37),'GhZzH':function(_0xec0963,_0x454a5d){return _0xec0963===_0x454a5d;},'lhRry':function(_0x3f6b41,_0x2a2b0d){return _0x3f6b41===_0x2a2b0d;},'spTfe':'MyvRo','itWVR':_0x3ac3(0x38),'NIpPp':function(_0xdf1a01,_0x31a295){return _0xdf1a01!==_0x31a295;},'YHcBp':function(_0x3dfba4,_0x16dffe){return _0x3dfba4!==_0x16dffe;},'Xkrap':_0x3ac3(0x39),'FXpWe':function(_0x9a51cb,_0x5a0ada){return _0x9a51cb===_0x5a0ada;},'fGonl':_0x3ac3(0x3a),'NrwHf':function(_0x4f6118,_0x9bab60){return _0x4f6118!==_0x9bab60;},'zGdRT':function(_0x57591e,_0x1bc417){return _0x57591e!==_0x1bc417;},'MeEVq':_0x3ac3(0x3b),'drqDJ':function(_0x40903,_0x58180b){return _0x40903===_0x58180b;},'XuTAU':function(_0x33c01d,_0x9732e5){return _0x33c01d!==_0x9732e5;},'LTmlC':function(_0x5d37e0,_0x2b4b88){return _0x5d37e0!==_0x2b4b88;},'kBeQL':_0x3ac3(0x3c),'ZoRbS':function(_0x2619a7,_0x2d502e){return _0x2619a7===_0x2d502e;},'UxOpz':'aWGJU','TsJuk':_0x3ac3(0x3d)};try{console['log'](_0x3ac3(0x3e));const _0x151866=await isBiometricAvailable();if(!_0x151866)return console[_0x3ac3(0x28)](_0x3ac3(0x3f)),![];console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x40)]);const _0x65fef2={'accessControl':Keychain[_0x3ac3(0x41)]['BIOMETRY_CURRENT_SET'],'authenticationType':Keychain['AUTHENTICATION_TYPE'][_0x3ac3(0x42)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._0x13a3ba[_0x3ac3(0x43)](_reactNative['Platform']['OS'],_0x13a3ba['WKkUh'])&&{'localizedPrompt':'Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','localizedCancel':_0x13a3ba[_0x3ac3(0x44)]},..._0x13a3ba[_0x3ac3(0x45)](_reactNative['Platform']['OS'],_0x13a3ba['Jjyvh'])&&{'promptMessage':_0x13a3ba[_0x3ac3(0x46)],'cancelButtonText':_0x13a3ba[_0x3ac3(0x44)]}};console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x47)]);const _0x4849a8=await Keychain[_0x3ac3(0x48)](PIN_USERNAME,_0x47c233,{'service':PIN_SERVICE_KEY,..._0x65fef2});return console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x49)]),console['log'](_0x13a3ba['RoHEr'],_0x4849a8),!![];}catch(_0x1802b8){if(_0x13a3ba[_0x3ac3(0x4a)](_0x13a3ba['OoqzV'],_0x13a3ba[_0x3ac3(0x4b)]))return _0xca311d[_0x3ac3(0x28)](_0x13a3ba[_0x3ac3(0x4c)],_0x5ee397),![];else{var _0xb0acf4,_0x5ccb82,_0x3bf6a3,_0x4584c2;console[_0x3ac3(0x28)](_0x13a3ba['Fsniy'],_0x1802b8),console[_0x3ac3(0x28)](_0x13a3ba[_0x3ac3(0x4d)],{'message':_0x1802b8[_0x3ac3(0x4e)],'code':_0x1802b8['code'],'domain':_0x1802b8[_0x3ac3(0x4f)],'userInfo':_0x1802b8[_0x3ac3(0x50)]});if(_0x13a3ba[_0x3ac3(0x51)](_0x1802b8,null)&&_0x13a3ba[_0x3ac3(0x52)](_0x1802b8,void 0x0)&&_0x13a3ba[_0x3ac3(0x53)](_0xb0acf4=_0x1802b8[_0x3ac3(0x4e)],null)&&_0x13a3ba[_0x3ac3(0x52)](_0xb0acf4,void 0x0)&&_0xb0acf4[_0x3ac3(0x54)](_0x13a3ba[_0x3ac3(0x55)])||_0x13a3ba[_0x3ac3(0x56)](_0x13a3ba['lhRry'](_0x1802b8,null)||_0x13a3ba[_0x3ac3(0x43)](_0x1802b8,void 0x0)?void 0x0:_0x1802b8[_0x3ac3(0x57)],-0x80))return _0x13a3ba[_0x3ac3(0x58)]!==_0x13a3ba[_0x3ac3(0x59)]?(console[_0x3ac3(0x13)](_0x3ac3(0x5a)),![]):(_0x28937e[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x5b)]),![]);else{if(_0x13a3ba['NIpPp'](_0x1802b8,null)&&_0x13a3ba[_0x3ac3(0x5c)](_0x1802b8,void 0x0)&&_0x13a3ba[_0x3ac3(0x5d)](_0x5ccb82=_0x1802b8[_0x3ac3(0x4e)],null)&&_0x13a3ba['NIpPp'](_0x5ccb82,void 0x0)&&_0x5ccb82['includes'](_0x13a3ba[_0x3ac3(0x5e)])||_0x13a3ba[_0x3ac3(0x5f)](_0x13a3ba[_0x3ac3(0x60)](_0x1802b8,null)||_0x13a3ba[_0x3ac3(0x60)](_0x1802b8,void 0x0)?void 0x0:_0x1802b8[_0x3ac3(0x57)],-0x6))return console[_0x3ac3(0x13)](_0x13a3ba['fGonl']),![];else{if(_0x1802b8!==null&&_0x13a3ba['NrwHf'](_0x1802b8,void 0x0)&&(_0x3bf6a3=_0x1802b8[_0x3ac3(0x4e)])!==null&&_0x13a3ba[_0x3ac3(0x61)](_0x3bf6a3,void 0x0)&&_0x3bf6a3[_0x3ac3(0x54)](_0x13a3ba['MeEVq'])||_0x13a3ba[_0x3ac3(0x56)](_0x1802b8===null||_0x13a3ba[_0x3ac3(0x62)](_0x1802b8,void 0x0)?void 0x0:_0x1802b8[_0x3ac3(0x57)],-0x1))return console[_0x3ac3(0x13)](_0x3ac3(0x63)),![];else{if(_0x1802b8!==null&&_0x13a3ba['jXHvX'](_0x1802b8,void 0x0)&&_0x13a3ba['XuTAU'](_0x4584c2=_0x1802b8[_0x3ac3(0x4e)],null)&&_0x13a3ba['LTmlC'](_0x4584c2,void 0x0)&&_0x4584c2['includes'](_0x13a3ba[_0x3ac3(0x64)])||_0x13a3ba[_0x3ac3(0x65)](_0x13a3ba[_0x3ac3(0x65)](_0x1802b8,null)||_0x1802b8===void 0x0?void 0x0:_0x1802b8['code'],-0x8))return _0x13a3ba[_0x3ac3(0x66)](_0x13a3ba[_0x3ac3(0x67)],_0x13a3ba[_0x3ac3(0x67)])?(_0x225311[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x68)]),null):(console[_0x3ac3(0x13)](_0x13a3ba[_0x3ac3(0x5b)]),![]);}}}return console['error'](_0x13a3ba[_0x3ac3(0x69)],_0x1802b8['message']),![];}}};exports[_0x3ac3(0x2)]=storePinWithBiometric;const retrievePinWithBiometric=async()=>{const _0x53fc75={'XIWOm':function(_0x3ebf18,_0x40b9c7){return _0x3ebf18&&_0x40b9c7;},'QXkcr':function(_0x50a43a,_0x3d15f0){return _0x50a43a===_0x3d15f0;},'eBEwX':function(_0x3e7104,_0x3e8035){return _0x3e7104!=_0x3e8035;},'UBYeo':_0x3ac3(0x11),'FHXdT':_0x3ac3(0x9),'AeFZF':_0x3ac3(0xb),'ABZtr':_0x3ac3(0x6a),'xlLsh':_0x3ac3(0x6b),'wsuCw':'reoXL','ErGBF':'JdBfw','dCLmQ':_0x3ac3(0x6c),'qDwRy':_0x3ac3(0x6d),'OolvQ':function(_0xfc3f3,_0x45f552){return _0xfc3f3!==_0x45f552;},'Wbkzr':function(_0x4db4ba,_0x483140){return _0x4db4ba!==_0x483140;},'iAErn':'UserCancel','UbVTw':'BiometryNotAvailable','mXrki':'mBPmO','qGUxP':_0x3ac3(0x7)};try{console[_0x3ac3(0x13)](_0x3ac3(0x6e));const _0x50a8c1=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});if(_0x50a8c1&&_0x50a8c1[_0x3ac3(0x6f)])return console[_0x3ac3(0x13)](_0x53fc75[_0x3ac3(0x70)]),_0x50a8c1[_0x3ac3(0x6f)];else{if(_0x53fc75['QXkcr'](_0x53fc75[_0x3ac3(0x71)],_0x53fc75['ErGBF'])){if(_0x3ef342['has'](_0x418aad))return _0x2a206c[_0x3ac3(0x1a)](_0x7ba0bd);_0x511721[_0x3ac3(0x16)](_0x1ae8b1,_0x53d6c0);}else return console[_0x3ac3(0x13)](_0x3ac3(0x2c)),null;}}catch(_0x119493){if(_0x53fc75['dCLmQ']!=='YYGAT'){if(_0x53fc75[_0x3ac3(0x72)](!_0x3e5131,_0x52908b)&&_0x4b16af[_0x3ac3(0x1)])return _0x101abc;var _0x10c117,_0x16e59,_0x275485={'__proto__':null,'default':_0x1032f2};if(_0x53fc75[_0x3ac3(0x73)](null,_0x352446)||_0x53fc75[_0x3ac3(0x74)](_0x53fc75[_0x3ac3(0x75)],typeof _0x2fea31)&&_0x53fc75[_0x3ac3(0x74)](_0x53fc75[_0x3ac3(0x76)],typeof _0x4d0a43))return _0x275485;if(_0x10c117=_0xc10b08?_0x47625d:_0x157e73){if(_0x10c117[_0x3ac3(0x15)](_0x3ebd66))return _0x10c117['get'](_0x3bf17c);_0x10c117[_0x3ac3(0x16)](_0x3f1929,_0x275485);}for(const _0x9c02b0 in _0x57f03f)_0x53fc75[_0x3ac3(0x77)]!==_0x9c02b0&&{}[_0x3ac3(0x78)][_0x3ac3(0x18)](_0x923a30,_0x9c02b0)&&((_0x16e59=(_0x10c117=_0x52eb42[_0x3ac3(0x0)])&&_0x1bb7e9[_0x3ac3(0x19)](_0x50d973,_0x9c02b0))&&(_0x16e59['get']||_0x16e59['set'])?_0x10c117(_0x275485,_0x9c02b0,_0x16e59):_0x275485[_0x9c02b0]=_0x5e3328[_0x9c02b0]);return _0x275485;}else{var _0x31e6aa,_0x3b4bdd;console[_0x3ac3(0x28)](_0x53fc75[_0x3ac3(0x79)],_0x119493);if(_0x53fc75['OolvQ'](_0x119493,null)&&_0x119493!==void 0x0&&_0x53fc75[_0x3ac3(0x7a)](_0x31e6aa=_0x119493[_0x3ac3(0x4e)],null)&&_0x53fc75[_0x3ac3(0x7b)](_0x31e6aa,void 0x0)&&_0x31e6aa['includes'](_0x53fc75[_0x3ac3(0x7c)]))return console[_0x3ac3(0x13)](_0x3ac3(0x14)),null;else{if(_0x53fc75[_0x3ac3(0x7b)](_0x119493,null)&&_0x53fc75[_0x3ac3(0x7a)](_0x119493,void 0x0)&&(_0x3b4bdd=_0x119493[_0x3ac3(0x4e)])!==null&&_0x53fc75[_0x3ac3(0x7b)](_0x3b4bdd,void 0x0)&&_0x3b4bdd[_0x3ac3(0x54)](_0x53fc75[_0x3ac3(0x7d)]))return _0x53fc75[_0x3ac3(0x7e)]===_0x53fc75['mXrki']?(console['log'](_0x53fc75[_0x3ac3(0x7f)]),null):(_0x5ebcfd[_0x3ac3(0x28)](_0x53fc75[_0x3ac3(0x80)],_0x138782),![]);}return null;}}};exports[_0x3ac3(0x81)]=retrievePinWithBiometric;const isPinStored=async()=>{const _0x560bde={'GwOoq':_0x3ac3(0x6a)};try{const _0x165f13=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});return!!(_0x165f13&&_0x165f13['password']);}catch(_0xefd25b){return console[_0x3ac3(0x28)](_0x560bde[_0x3ac3(0x82)],_0xefd25b),![];}};function _0x1419(){const _0x53a008=['defineProperty','__esModule','storePinWithBiometric','removePinFromStorage','isPinStored','isBiometricAvailable','biometricPinService','📱\x20Biometric\x20not\x20available','mjEmA','function','qklud','default','YxqaR','qkSvH','Qicfk','oeHNb','xViNl','object','oQIiF','log','👤\x20User\x20cancelled\x20biometric\x20authentication','has','set','HCLaT','call','getOwnPropertyDescriptor','get','nsjFt','OnairosEventsPIN','user_pin','❌\x20Error\x20checking\x20biometric\x20availability:','getSupportedBiometryType','zbDMW','BIOMETRY_TYPE','VDxtB','TOUCH_ID','ZjFrx','FINGERPRINT','FACE','IRIS','error','Volnw','❌\x20Error\x20removing\x20PIN\x20from\x20storage:','🔒\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','⚠️\x20No\x20PIN\x20found\x20in\x20secure\x20storage','📱\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ios','Cancel','android','👤\x20Requesting\x20Face\x20ID\x20authentication...','✅\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','🔍\x20Keychain\x20storage\x20result:','jSkve','XAWbV','❌\x20Face\x20ID\x20authentication\x20failed:','UserCancel','oHvkq','BiometryNotAvailable','📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','AuthenticationFailed','BiometryLockout','❌\x20Unknown\x20Face\x20ID\x20error:','🔐\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','❌\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','NpJtr','ACCESS_CONTROL','BIOMETRICS','cGETO','NFOva','PHjdw','dNfFc','YieCR','setGenericPassword','qJUWd','zQiis','rdXKn','JZjMc','DVDmR','message','domain','userInfo','jXHvX','aMWOg','mGpJl','includes','wWsco','GhZzH','code','spTfe','itWVR','👤\x20User\x20cancelled\x20Face\x20ID\x20authentication','ISvSz','YHcBp','NIpPp','Xkrap','lhRry','FXpWe','zGdRT','drqDJ','🚫\x20Face\x20ID\x20authentication\x20failed','kBeQL','ZoRbS','NrwHf','UxOpz','RKlCm','TsJuk','❌\x20Error\x20checking\x20PIN\x20storage:','✅\x20PIN\x20retrieved\x20successfully','YYGAT','❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','🔓\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','password','xlLsh','wsuCw','XIWOm','QXkcr','eBEwX','UBYeo','FHXdT','AeFZF','hasOwnProperty','qDwRy','OolvQ','Wbkzr','iAErn','UbVTw','mXrki','qGUxP','ABZtr','retrievePinWithBiometric','GwOoq','vlGTY','🗑️\x20Removing\x20PIN\x20from\x20secure\x20storage...','fnMRJ','VPnMe','Bfigy','pcZgj','qhDul','TzEjj','QCilB','dlSuV','kzTYl','mooFB','zmnVx','zCfdY','PiNAF','ZduoI'];_0x1419=function(){return _0x53a008;};return _0x1419();}exports[_0x3ac3(0x4)]=isPinStored;const removePinFromStorage=async()=>{const _0x2c5f7d={'qhDul':function(_0xc5e62f,_0x558e05){return _0xc5e62f===_0x558e05;},'TzEjj':function(_0x22e774,_0x4d69ef){return _0x22e774!=_0x4d69ef;},'kTRmT':_0x3ac3(0x11),'QCilB':function(_0x155598,_0x569530){return _0x155598!=_0x569530;},'pcZgj':_0x3ac3(0x9),'dlSuV':function(_0x3b0513,_0x17c394){return _0x3b0513!==_0x17c394;},'kzTYl':function(_0x36a055,_0x4648ae,_0x581a78,_0x3fd2e1){return _0x36a055(_0x4648ae,_0x581a78,_0x3fd2e1);},'Bfigy':function(_0x3f5dea,_0x2ec39f){return _0x3f5dea==_0x2ec39f;},'PiNAF':'❌\x20Error\x20checking\x20biometric\x20availability:','fIwjQ':function(_0x9968ad,_0x4e685f){return _0x9968ad!==_0x4e685f;},'VPnMe':_0x3ac3(0x83),'nDkGB':_0x3ac3(0x84),'mooFB':'✅\x20PIN\x20removed\x20successfully','zmnVx':function(_0x12c869,_0x911199){return _0x12c869!==_0x911199;},'zCfdY':_0x3ac3(0x85),'ZduoI':_0x3ac3(0x2a)};try{if(_0x2c5f7d['fIwjQ'](_0x2c5f7d[_0x3ac3(0x86)],_0x2c5f7d[_0x3ac3(0x86)])){if(_0x2c5f7d[_0x3ac3(0x87)](_0x2c5f7d[_0x3ac3(0x88)],typeof _0x5f33f2))var _0x568bd7=new _0x3065c0(),_0x338ab9=new _0x296ca5();return(_0x48006f=function(_0x5b2e3a,_0x37d5d9){if(!_0x37d5d9&&_0x5b2e3a&&_0x5b2e3a[_0x3ac3(0x1)])return _0x5b2e3a;var _0x4a854f,_0x1e173a,_0x2863aa={'__proto__':null,'default':_0x5b2e3a};if(_0x2c5f7d[_0x3ac3(0x89)](null,_0x5b2e3a)||_0x2c5f7d[_0x3ac3(0x8a)](_0x2c5f7d['kTRmT'],typeof _0x5b2e3a)&&_0x2c5f7d[_0x3ac3(0x8b)](_0x2c5f7d['pcZgj'],typeof _0x5b2e3a))return _0x2863aa;if(_0x4a854f=_0x37d5d9?_0x338ab9:_0x568bd7){if(_0x4a854f[_0x3ac3(0x15)](_0x5b2e3a))return _0x4a854f[_0x3ac3(0x1a)](_0x5b2e3a);_0x4a854f[_0x3ac3(0x16)](_0x5b2e3a,_0x2863aa);}for(const _0x1c56ea in _0x5b2e3a)_0x2c5f7d[_0x3ac3(0x8c)]('default',_0x1c56ea)&&{}[_0x3ac3(0x78)][_0x3ac3(0x18)](_0x5b2e3a,_0x1c56ea)&&((_0x1e173a=(_0x4a854f=_0x4bbc17['defineProperty'])&&_0x41db0d['getOwnPropertyDescriptor'](_0x5b2e3a,_0x1c56ea))&&(_0x1e173a[_0x3ac3(0x1a)]||_0x1e173a[_0x3ac3(0x16)])?_0x2c5f7d[_0x3ac3(0x8d)](_0x4a854f,_0x2863aa,_0x1c56ea,_0x1e173a):_0x2863aa[_0x1c56ea]=_0x5b2e3a[_0x1c56ea]);return _0x2863aa;})(_0x2b9294,_0x2da546);}else return console[_0x3ac3(0x13)](_0x2c5f7d['nDkGB']),await Keychain['resetGenericPassword']({'service':PIN_SERVICE_KEY}),console['log'](_0x2c5f7d[_0x3ac3(0x8e)]),!![];}catch(_0x2c9341){return _0x2c5f7d[_0x3ac3(0x8f)](_0x2c5f7d['zCfdY'],_0x2c5f7d[_0x3ac3(0x90)])?(_0x3ed1f4[_0x3ac3(0x28)](_0x2c5f7d[_0x3ac3(0x91)],_0x28b166),![]):(console[_0x3ac3(0x28)](_0x2c5f7d[_0x3ac3(0x92)],_0x2c9341),![]);}};function _0x3ac3(_0x141986,_0x3ac3a4){_0x141986=_0x141986-0x0;const _0x47efb3=_0x1419();let _0x1e0e2a=_0x47efb3[_0x141986];return _0x1e0e2a;}exports[_0x3ac3(0x3)]=removePinFromStorage;const biometricPinService=exports[_0x3ac3(0x6)]={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
|
|
8
|
+
Object[_0x4078(0x0)](exports,_0x4078(0x1),{'value':!![]}),exports['storePinWithBiometric']=exports['retrievePinWithBiometric']=exports[_0x4078(0x2)]=exports['isPinStored']=exports[_0x4078(0x3)]=exports['biometricPinService']=void 0x0;var Keychain=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _0x29ce(){const _0x7f550=['defineProperty','__esModule','removePinFromStorage','isBiometricAvailable','📱\x20Biometric\x20not\x20available','GdiiC','PSEBw','default','function','khcZa','EYnGj','LqQep','cAmJC','SJrSS','LCeCc','has','get','set','gwykb','hasOwnProperty','call','getOwnPropertyDescriptor','GZwuh','pEJUs','SRtJS','log','XTymQ','OnairosEventsPIN','WDVXB','JnvhM','Mdfta','SDMfx','BIOMETRY_TYPE','FACE_ID','TOUCH_ID','FACE','IRIS','ADlLP','VHKlU','error','ZbJRu','❌\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','🔒\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','object','DQKRU','🔐\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','📱\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ios','Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','Cancel','android','Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','👤\x20Requesting\x20Face\x20ID\x20authentication...','❌\x20Error\x20details:','UserCancel','AuthenticationFailed','iQEJd','🚫\x20Face\x20ID\x20authentication\x20failed','FvzIL','kTnwA','zknBO','sBnoR','aAfBG','MOVZB','lZROv','BIOMETRY_CURRENT_SET','AUTHENTICATION_TYPE','BIOMETRICS','XmLBU','Platform','bHJrA','sBzqB','jASLS','dBbEd','setGenericPassword','✅\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','DTkaE','myVqT','message','code','domain','userInfo','ywgzf','TrXwA','lgCgm','OtJfT','afFNR','gbdmP','includes','BiometryNotAvailable','kYWta','PACdP','CEQvz','aRmwY','📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','eukjS','ajTtL','nvPgE','APTbz','CVlkO','htkMp','zjcEz','jcRiC','vwvtF','BvgZs','QRXnA','MXgjh','JaMYo','qqyEu','❌\x20Unknown\x20Face\x20ID\x20error:','storePinWithBiometric','❌\x20Error\x20removing\x20PIN\x20from\x20storage:','👤\x20User\x20cancelled\x20biometric\x20authentication','🔓\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','✅\x20PIN\x20retrieved\x20successfully','qJLrx','rJLCD','TFoyW','kEHcn','SOABo','ZNmaF','wsqGT','qwdAx','⚠️\x20No\x20PIN\x20found\x20in\x20secure\x20storage','❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','BfqTi','gvcdn','dTPhL','vKAus','JXPkW','gtfou','RUPDG','VkQqK','lJINq','TZzvi','yjqMj','thVfN','kGVnb','xhiaz','eNqZl','retrievePinWithBiometric','❌\x20Error\x20checking\x20PIN\x20storage:','isPinStored','🗑️\x20Removing\x20PIN\x20from\x20secure\x20storage...','resetGenericPassword','EpTQR','biometricPinService'];_0x29ce=function(){return _0x7f550;};return _0x29ce();}function _interopRequireWildcard(_0x28f8c7,_0x222b5b){const _0x5761fa={'gwykb':function(_0x3571a8,_0x49cfe2){return _0x3571a8===_0x49cfe2;},'joQkw':function(_0x562128,_0x520ff6){return _0x562128!=_0x520ff6;},'SJrSS':'object','GZwuh':function(_0x377cf2,_0x6fe37f,_0x145ece,_0x26f947){return _0x377cf2(_0x6fe37f,_0x145ece,_0x26f947);},'EYnGj':_0x4078(0x4),'sPTsd':function(_0x67e731,_0x477e40){return _0x67e731!==_0x477e40;},'LqQep':_0x4078(0x5),'cAmJC':_0x4078(0x6),'WSuWJ':function(_0x47447b,_0x4b3be8){return _0x47447b&&_0x4b3be8;},'pEJUs':function(_0xda0883,_0x58ad12){return _0xda0883!==_0x58ad12;},'SRtJS':_0x4078(0x7),'khcZa':_0x4078(0x8)};if(_0x5761fa[_0x4078(0x9)]==typeof WeakMap)var _0x557206=new WeakMap(),_0x5b6f2d=new WeakMap();return(_interopRequireWildcard=function(_0x18d8b3,_0x1d33a9){const _0xa79ccd={'XTymQ':_0x5761fa[_0x4078(0xa)]};if(_0x5761fa['sPTsd'](_0x5761fa[_0x4078(0xb)],_0x5761fa[_0x4078(0xc)])){if(_0x5761fa['WSuWJ'](!_0x1d33a9,_0x18d8b3)&&_0x18d8b3[_0x4078(0x1)])return _0x18d8b3;var _0x51648b,_0x46ef85,_0x52326e={'__proto__':null,'default':_0x18d8b3};if(null===_0x18d8b3||_0x5761fa['joQkw'](_0x5761fa[_0x4078(0xd)],typeof _0x18d8b3)&&'function'!=typeof _0x18d8b3)return _0x52326e;if(_0x51648b=_0x1d33a9?_0x5b6f2d:_0x557206){if(_0x4078(0xe)===_0x4078(0xe)){if(_0x51648b[_0x4078(0xf)](_0x18d8b3))return _0x51648b[_0x4078(0x10)](_0x18d8b3);_0x51648b[_0x4078(0x11)](_0x18d8b3,_0x52326e);}else{if(!_0x46387b&&_0x452ddd&&_0x59f687[_0x4078(0x1)])return _0x401c47;var _0x193d31,_0x1af30f,_0x4a9bef={'__proto__':null,'default':_0x30255b};if(_0x5761fa[_0x4078(0x12)](null,_0x1a599c)||_0x5761fa['joQkw'](_0x5761fa['SJrSS'],typeof _0x17ea0d)&&_0x4078(0x8)!=typeof _0x12a7bd)return _0x4a9bef;if(_0x193d31=_0x1c9be0?_0x590e63:_0x4c06e8){if(_0x193d31[_0x4078(0xf)](_0x180060))return _0x193d31['get'](_0x4329a8);_0x193d31['set'](_0x3f37bc,_0x4a9bef);}for(const _0x55deac in _0x494015)_0x4078(0x7)!==_0x55deac&&{}[_0x4078(0x13)][_0x4078(0x14)](_0xc1e66a,_0x55deac)&&((_0x1af30f=(_0x193d31=_0xbad19[_0x4078(0x0)])&&_0x489072[_0x4078(0x15)](_0x1618f4,_0x55deac))&&(_0x1af30f[_0x4078(0x10)]||_0x1af30f['set'])?_0x5761fa[_0x4078(0x16)](_0x193d31,_0x4a9bef,_0x55deac,_0x1af30f):_0x4a9bef[_0x55deac]=_0x3099b2[_0x55deac]);return _0x4a9bef;}}for(const _0x5cf503 in _0x18d8b3)_0x5761fa[_0x4078(0x17)](_0x5761fa[_0x4078(0x18)],_0x5cf503)&&{}[_0x4078(0x13)][_0x4078(0x14)](_0x18d8b3,_0x5cf503)&&((_0x46ef85=(_0x51648b=Object[_0x4078(0x0)])&&Object[_0x4078(0x15)](_0x18d8b3,_0x5cf503))&&(_0x46ef85[_0x4078(0x10)]||_0x46ef85[_0x4078(0x11)])?_0x5761fa[_0x4078(0x16)](_0x51648b,_0x52326e,_0x5cf503,_0x46ef85):_0x52326e[_0x5cf503]=_0x18d8b3[_0x5cf503]);return _0x52326e;}else return _0x1ee825[_0x4078(0x19)](_0xa79ccd[_0x4078(0x1a)]),null;})(_0x28f8c7,_0x222b5b);}const PIN_SERVICE_KEY=_0x4078(0x1b),PIN_USERNAME='user_pin',isBiometricAvailable=async()=>{const _0x2af520={'Mdfta':'📱\x20Biometric\x20support:','SDMfx':function(_0x445a00,_0x57b45c){return _0x445a00===_0x57b45c;},'VcTCV':function(_0x3dfc1e,_0x59c9d1){return _0x3dfc1e===_0x59c9d1;},'ADlLP':function(_0x1f2262,_0x528de5){return _0x1f2262!==_0x528de5;},'VHKlU':_0x4078(0x1c),'NVqcL':_0x4078(0x1d),'ZbJRu':'❌\x20Error\x20checking\x20biometric\x20availability:'};try{const _0x6b7f8a=await Keychain['getSupportedBiometryType']();return console[_0x4078(0x19)](_0x2af520[_0x4078(0x1e)],_0x6b7f8a),_0x2af520[_0x4078(0x1f)](_0x6b7f8a,Keychain[_0x4078(0x20)][_0x4078(0x21)])||_0x6b7f8a===Keychain['BIOMETRY_TYPE'][_0x4078(0x22)]||_0x2af520['VcTCV'](_0x6b7f8a,Keychain[_0x4078(0x20)]['FINGERPRINT'])||_0x2af520[_0x4078(0x1f)](_0x6b7f8a,Keychain[_0x4078(0x20)][_0x4078(0x23)])||_0x2af520[_0x4078(0x1f)](_0x6b7f8a,Keychain['BIOMETRY_TYPE'][_0x4078(0x24)]);}catch(_0x4bb930){return _0x2af520[_0x4078(0x25)](_0x2af520[_0x4078(0x26)],_0x2af520['NVqcL'])?(console[_0x4078(0x27)](_0x2af520[_0x4078(0x28)],_0x4bb930),![]):(_0x5a9e1b[_0x4078(0x27)](_0x4078(0x29)),![]);}};exports[_0x4078(0x3)]=isBiometricAvailable;const storePinWithBiometric=async _0x53593d=>{const _0x29a89a={'sBnoR':_0x4078(0x2a),'vwvtF':function(_0x56ca08,_0x1c871e){return _0x56ca08&&_0x1c871e;},'BvgZs':_0x4078(0x2b),'ElEiE':function(_0x5a01fa,_0x42cfc0){return _0x5a01fa!=_0x42cfc0;},'QRXnA':'function','MXgjh':function(_0x49dcfb,_0x3bd5b3){return _0x49dcfb!==_0x3bd5b3;},'JaMYo':'default','qqyEu':function(_0x5eaaf2,_0x50cbcd,_0x2fe792,_0x2ebc98){return _0x5eaaf2(_0x50cbcd,_0x2fe792,_0x2ebc98);},'jcRiC':function(_0x587197,_0x15e0ed){return _0x587197==_0x15e0ed;},'kTnwA':'xYdwo','zknBO':_0x4078(0x2c),'aAfBG':_0x4078(0x2d),'MOVZB':function(_0x3e2462){return _0x3e2462();},'VnWcj':_0x4078(0x29),'lZROv':_0x4078(0x2e),'XmLBU':function(_0x513396,_0x1dc18e){return _0x513396===_0x1dc18e;},'QBtys':_0x4078(0x2f),'oDSer':_0x4078(0x30),'bHJrA':_0x4078(0x31),'sBzqB':function(_0x4b2e9a,_0x1ac1ec){return _0x4b2e9a===_0x1ac1ec;},'jASLS':_0x4078(0x32),'FJKHb':_0x4078(0x33),'dBbEd':_0x4078(0x34),'DTkaE':'❌\x20Face\x20ID\x20authentication\x20failed:','myVqT':_0x4078(0x35),'ywgzf':function(_0x479bf6,_0x30917b){return _0x479bf6!==_0x30917b;},'TrXwA':function(_0x90281,_0x2691a4){return _0x90281!==_0x2691a4;},'lgCgm':_0x4078(0x36),'OtJfT':function(_0x5a8b3e,_0x49e1f7){return _0x5a8b3e===_0x49e1f7;},'afFNR':function(_0x5bf851,_0x1798bb){return _0x5bf851===_0x1798bb;},'gbdmP':function(_0x103390,_0x3d36e7){return _0x103390!==_0x3d36e7;},'WlJRF':'📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','kYWta':function(_0x35f942,_0x30014b){return _0x35f942!==_0x30014b;},'ynBli':_0x4078(0x37),'PACdP':function(_0x566435,_0x1e4cd2){return _0x566435===_0x1e4cd2;},'CEQvz':_0x4078(0x38),'aRmwY':_0x4078(0x39),'eukjS':function(_0x3e15a4,_0x57d51b){return _0x3e15a4!==_0x57d51b;},'ajTtL':function(_0x4462a5,_0x4662f1){return _0x4462a5!==_0x4662f1;},'nvPgE':'BiometryLockout','APTbz':function(_0x16187f,_0x18a1ad){return _0x16187f===_0x18a1ad;},'CVlkO':function(_0x300972,_0x421bdf){return _0x300972===_0x421bdf;},'htkMp':function(_0x49df2f,_0x1b1222){return _0x49df2f===_0x1b1222;},'zjcEz':_0x4078(0x3a)};try{if(_0x29a89a[_0x4078(0x3b)]===_0x29a89a[_0x4078(0x3c)])return _0x585edb[_0x4078(0x19)](_0x29a89a[_0x4078(0x3d)]),![];else{console['log'](_0x29a89a[_0x4078(0x3e)]);const _0x413a8b=await _0x29a89a[_0x4078(0x3f)](isBiometricAvailable);if(!_0x413a8b)return console['error'](_0x29a89a['VnWcj']),![];console[_0x4078(0x19)](_0x29a89a[_0x4078(0x40)]);const _0x252858={'accessControl':Keychain['ACCESS_CONTROL'][_0x4078(0x41)],'authenticationType':Keychain[_0x4078(0x42)][_0x4078(0x43)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._0x29a89a[_0x4078(0x44)](_reactNative[_0x4078(0x45)]['OS'],_0x29a89a['QBtys'])&&{'localizedPrompt':_0x29a89a['oDSer'],'localizedCancel':_0x29a89a[_0x4078(0x46)]},..._0x29a89a[_0x4078(0x47)](_reactNative[_0x4078(0x45)]['OS'],_0x29a89a[_0x4078(0x48)])&&{'promptMessage':_0x29a89a['FJKHb'],'cancelButtonText':_0x29a89a[_0x4078(0x46)]}};console[_0x4078(0x19)](_0x29a89a[_0x4078(0x49)]);const _0xfaae6a=await Keychain[_0x4078(0x4a)](PIN_USERNAME,_0x53593d,{'service':PIN_SERVICE_KEY,..._0x252858});return console[_0x4078(0x19)](_0x4078(0x4b)),console[_0x4078(0x19)]('🔍\x20Keychain\x20storage\x20result:',_0xfaae6a),!![];}}catch(_0xcc96fa){var _0x11a42d,_0x566786,_0x1293bb,_0x4aff35;console[_0x4078(0x27)](_0x29a89a[_0x4078(0x4c)],_0xcc96fa),console['error'](_0x29a89a[_0x4078(0x4d)],{'message':_0xcc96fa[_0x4078(0x4e)],'code':_0xcc96fa[_0x4078(0x4f)],'domain':_0xcc96fa[_0x4078(0x50)],'userInfo':_0xcc96fa[_0x4078(0x51)]});if(_0x29a89a[_0x4078(0x52)](_0xcc96fa,null)&&_0x29a89a['TrXwA'](_0xcc96fa,void 0x0)&&_0x29a89a[_0x4078(0x53)](_0x11a42d=_0xcc96fa[_0x4078(0x4e)],null)&&_0x29a89a[_0x4078(0x53)](_0x11a42d,void 0x0)&&_0x11a42d['includes'](_0x29a89a[_0x4078(0x54)])||(_0x29a89a[_0x4078(0x55)](_0xcc96fa,null)||_0x29a89a[_0x4078(0x56)](_0xcc96fa,void 0x0)?void 0x0:_0xcc96fa[_0x4078(0x4f)])===-0x80)return console[_0x4078(0x19)]('👤\x20User\x20cancelled\x20Face\x20ID\x20authentication'),![];else{if(_0x29a89a[_0x4078(0x52)](_0xcc96fa,null)&&_0x29a89a[_0x4078(0x57)](_0xcc96fa,void 0x0)&&(_0x566786=_0xcc96fa[_0x4078(0x4e)])!==null&&_0x566786!==void 0x0&&_0x566786[_0x4078(0x58)](_0x4078(0x59))||(_0xcc96fa===null||_0xcc96fa===void 0x0?void 0x0:_0xcc96fa[_0x4078(0x4f)])===-0x6)return console[_0x4078(0x19)](_0x29a89a['WlJRF']),![];else{if(_0x29a89a[_0x4078(0x5a)](_0xcc96fa,null)&&_0xcc96fa!==void 0x0&&_0x29a89a[_0x4078(0x53)](_0x1293bb=_0xcc96fa[_0x4078(0x4e)],null)&&_0x29a89a[_0x4078(0x53)](_0x1293bb,void 0x0)&&_0x1293bb['includes'](_0x29a89a['ynBli'])||(_0xcc96fa===null||_0x29a89a[_0x4078(0x5b)](_0xcc96fa,void 0x0)?void 0x0:_0xcc96fa[_0x4078(0x4f)])===-0x1)return _0x29a89a[_0x4078(0x5c)]===_0x29a89a[_0x4078(0x5c)]?(console[_0x4078(0x19)](_0x29a89a[_0x4078(0x5d)]),![]):(_0x143701[_0x4078(0x19)](_0x4078(0x5e)),![]);else{if(_0x29a89a[_0x4078(0x5f)](_0xcc96fa,null)&&_0x29a89a[_0x4078(0x5f)](_0xcc96fa,void 0x0)&&(_0x4aff35=_0xcc96fa['message'])!==null&&_0x29a89a[_0x4078(0x60)](_0x4aff35,void 0x0)&&_0x4aff35[_0x4078(0x58)](_0x29a89a[_0x4078(0x61)])||_0x29a89a[_0x4078(0x62)](_0x29a89a[_0x4078(0x63)](_0xcc96fa,null)||_0xcc96fa===void 0x0?void 0x0:_0xcc96fa['code'],-0x8)){if(_0x29a89a[_0x4078(0x64)](_0x29a89a[_0x4078(0x65)],_0x29a89a[_0x4078(0x65)]))return console[_0x4078(0x19)](_0x29a89a['sBnoR']),![];else{if(_0x29a89a[_0x4078(0x66)](_0x4078(0x8),typeof _0x5064e6))var _0x284b6c=new _0x3b049d(),_0x5eb436=new _0xff11fb();return(_0x46ad19=function(_0x49488e,_0x322c58){if(_0x29a89a[_0x4078(0x67)](!_0x322c58,_0x49488e)&&_0x49488e['__esModule'])return _0x49488e;var _0x39fec2,_0x145378,_0x244b04={'__proto__':null,'default':_0x49488e};if(null===_0x49488e||_0x29a89a[_0x4078(0x68)]!=typeof _0x49488e&&_0x29a89a['ElEiE'](_0x29a89a[_0x4078(0x69)],typeof _0x49488e))return _0x244b04;if(_0x39fec2=_0x322c58?_0x5eb436:_0x284b6c){if(_0x39fec2['has'](_0x49488e))return _0x39fec2[_0x4078(0x10)](_0x49488e);_0x39fec2[_0x4078(0x11)](_0x49488e,_0x244b04);}for(const _0xa62145 in _0x49488e)_0x29a89a[_0x4078(0x6a)](_0x29a89a[_0x4078(0x6b)],_0xa62145)&&{}[_0x4078(0x13)][_0x4078(0x14)](_0x49488e,_0xa62145)&&((_0x145378=(_0x39fec2=_0x45164e[_0x4078(0x0)])&&_0x27bbf0[_0x4078(0x15)](_0x49488e,_0xa62145))&&(_0x145378[_0x4078(0x10)]||_0x145378['set'])?_0x29a89a[_0x4078(0x6c)](_0x39fec2,_0x244b04,_0xa62145,_0x145378):_0x244b04[_0xa62145]=_0x49488e[_0xa62145]);return _0x244b04;})(_0x2d964e,_0x345c4c);}}}}}return console[_0x4078(0x27)](_0x4078(0x6d),_0xcc96fa[_0x4078(0x4e)]),![];}};exports[_0x4078(0x6e)]=storePinWithBiometric;const retrievePinWithBiometric=async()=>{const _0x3cde52={'wsqGT':_0x4078(0x6f),'BfqTi':function(_0x287f3a,_0x15922d){return _0x287f3a!==_0x15922d;},'gvcdn':function(_0x1ce86a,_0x7868af){return _0x1ce86a!==_0x7868af;},'dTPhL':function(_0x2baccb,_0x3a9d02){return _0x2baccb!==_0x3a9d02;},'vKAus':_0x4078(0x36),'Puqyg':function(_0x3ee20a,_0x22ba66){return _0x3ee20a!==_0x22ba66;},'JXPkW':function(_0x4d82cf,_0x617698){return _0x4d82cf!==_0x617698;},'gtfou':'BiometryNotAvailable','RUPDG':_0x4078(0x4),'thVfN':_0x4078(0x70),'eNqZl':_0x4078(0x39),'FmZTy':_0x4078(0x71),'SOABo':'SLddm','ZNmaF':_0x4078(0x72),'qwdAx':_0x4078(0x73),'VkQqK':_0x4078(0x74),'fjOdC':'❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','FfGMg':function(_0x52e947,_0x509524){return _0x52e947!==_0x509524;},'lJINq':function(_0x4f3913,_0x201f59){return _0x4f3913!==_0x201f59;},'TZzvi':'tGkbe','yjqMj':'fNruV','kGVnb':function(_0x561c5c,_0x2c54d3){return _0x561c5c!==_0x2c54d3;},'xhiaz':_0x4078(0x75),'qZXgt':_0x4078(0x76)};try{console[_0x4078(0x19)](_0x3cde52['FmZTy']);const _0x19ffdb=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});if(_0x19ffdb&&_0x19ffdb['password'])return _0x3cde52['JXPkW'](_0x3cde52[_0x4078(0x77)],'GvlhC')?(console['log'](_0x3cde52[_0x4078(0x78)]),_0x19ffdb['password']):(_0x3fc94e[_0x4078(0x27)](_0x3cde52[_0x4078(0x79)],_0x1e5c58),![]);else{if(_0x3cde52[_0x4078(0x7a)]===_0x3cde52[_0x4078(0x7a)])return console['log'](_0x4078(0x7b)),null;else{var _0x2f69bb,_0x4fb0c6;_0x51125e[_0x4078(0x27)](_0x4078(0x7c),_0x21d7c7);if(_0x3cde52[_0x4078(0x7d)](_0x500119,null)&&_0x3cde52[_0x4078(0x7e)](_0x4210a4,void 0x0)&&_0x3cde52[_0x4078(0x7f)](_0x2f69bb=_0x41879d['message'],null)&&_0x3cde52[_0x4078(0x7e)](_0x2f69bb,void 0x0)&&_0x2f69bb['includes'](_0x3cde52[_0x4078(0x80)]))return _0x4b9e92['log'](_0x4078(0x70)),null;else{if(_0x3cde52[_0x4078(0x7f)](_0x80bb15,null)&&_0x3cde52['Puqyg'](_0x17c5f3,void 0x0)&&_0x3cde52[_0x4078(0x7f)](_0x4fb0c6=_0x15b8f9['message'],null)&&_0x3cde52[_0x4078(0x81)](_0x4fb0c6,void 0x0)&&_0x4fb0c6[_0x4078(0x58)](_0x3cde52[_0x4078(0x82)]))return _0x47f7d2['log'](_0x3cde52[_0x4078(0x83)]),null;}return null;}}}catch(_0x3d044e){if(_0x3cde52[_0x4078(0x84)]!=='CFWya'){var _0xc14161,_0x36375e;console[_0x4078(0x27)](_0x3cde52['fjOdC'],_0x3d044e);if(_0x3d044e!==null&&_0x3cde52[_0x4078(0x7d)](_0x3d044e,void 0x0)&&_0x3cde52['FfGMg'](_0xc14161=_0x3d044e['message'],null)&&_0x3cde52[_0x4078(0x85)](_0xc14161,void 0x0)&&_0xc14161[_0x4078(0x58)](_0x3cde52[_0x4078(0x80)])){if(_0x3cde52['lJINq'](_0x3cde52[_0x4078(0x86)],_0x3cde52[_0x4078(0x87)]))return console[_0x4078(0x19)](_0x3cde52[_0x4078(0x88)]),null;else{if(_0x13b019[_0x4078(0xf)](_0x51abb2))return _0x51c637['get'](_0x1497aa);_0x5c9994[_0x4078(0x11)](_0x56cd5c,_0x5dd160);}}else{if(_0x3cde52[_0x4078(0x81)](_0x3d044e,null)&&_0x3cde52['lJINq'](_0x3d044e,void 0x0)&&_0x3cde52[_0x4078(0x81)](_0x36375e=_0x3d044e[_0x4078(0x4e)],null)&&_0x3cde52[_0x4078(0x89)](_0x36375e,void 0x0)&&_0x36375e[_0x4078(0x58)](_0x3cde52[_0x4078(0x82)]))return _0x3cde52[_0x4078(0x7d)](_0x3cde52[_0x4078(0x8a)],_0x3cde52['qZXgt'])?(console[_0x4078(0x19)](_0x3cde52['RUPDG']),null):(_0x57bce3['log'](_0x3cde52['thVfN']),null);}return null;}else return _0x2de2eb[_0x4078(0x19)](_0x3cde52[_0x4078(0x8b)]),![];}};exports[_0x4078(0x8c)]=retrievePinWithBiometric;const isPinStored=async()=>{const _0x41ad74={'ZvMkj':_0x4078(0x8d)};try{const _0x507c4a=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});return!!(_0x507c4a&&_0x507c4a['password']);}catch(_0x510364){return console[_0x4078(0x27)](_0x41ad74['ZvMkj'],_0x510364),![];}};exports[_0x4078(0x8e)]=isPinStored;function _0x4078(_0x29ce19,_0x4078c1){_0x29ce19=_0x29ce19-0x0;const _0x15e747=_0x29ce();let _0x431a50=_0x15e747[_0x29ce19];return _0x431a50;}const removePinFromStorage=async()=>{const _0x42b0f2={'lwujr':'✅\x20PIN\x20removed\x20successfully','EpTQR':_0x4078(0x6f)};try{return console[_0x4078(0x19)](_0x4078(0x8f)),await Keychain[_0x4078(0x90)]({'service':PIN_SERVICE_KEY}),console[_0x4078(0x19)](_0x42b0f2['lwujr']),!![];}catch(_0x2d480b){return console['error'](_0x42b0f2[_0x4078(0x91)],_0x2d480b),![];}};exports['removePinFromStorage']=removePinFromStorage;const biometricPinService=exports[_0x4078(0x92)]={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("react-native")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
Object[_0x1a91(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x1a91(0x1)]=void 0x0;var _chatGPTConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _0x1a91(_0x3d5ddc,_0x1a91dc){_0x3d5ddc=_0x3d5ddc-0x0;const _0x558397=_0x3d5d();let _0x4907c7=_0x558397[_0x3d5ddc];return _0x4907c7;}function _0x3d5d(){const _0x22d073=['defineProperty','useChatGPTConversationExtractor','❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','default','ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','👤\x20[CHATGPT_EXTRACTOR]\x20Username:','📊\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','✅\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:','tBRvQ','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','Error','❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','⚠️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','✅\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully','kdSga','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','log','🚀\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','UEqUe','length','❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','alert','ziqDU','EwCcj','filter','conversation_id','title','isArray','user_messages','PZRnH','warn','⚠️\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','dWZmn','error','rfOGJ','Alert','esbNR','No\x20valid\x20conversations\x20found\x20to\x20export.','⚠️\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','\x20invalid\x20conversations','success','mwfNT','data','opWZX','rBsJi','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','CVCfe','eKSIH','bybbJ','NuamL','Vssil','IMsvu','jcGjC','🧠\x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','hVlqO','DRrSh','InHIK','items','ICtOR','memory_entries','FtfmA','HQYva','memories','\x20memory\x20items,\x20','\x20memory\x20entries,\x20','\x20memories','ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','DiCIQ','EvMKb','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','storeChatGPTMemories','diHMq','WlYnH','memoriesCount','📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20','MsOym','vbgGC','ItEGk','ZcdFn','VKvVE','QvLKG','cKSeM','ofjiw','eprKO','iNPmg'];_0x3d5d=function(){return _0x22d073;};return _0x3d5d();}const useChatGPTConversationExtractor=()=>{const _0x37353c={'PZRnH':function(_0x21b526,_0x157141){return _0x21b526>_0x157141;},'opWZX':_0x1a91(0x2),'rBsJi':_0x1a91(0x3),'EwCcj':_0x1a91(0x4),'DDkvT':_0x1a91(0x5),'EFvIy':_0x1a91(0x6),'UEqUe':_0x1a91(0x7),'ziqDU':_0x1a91(0x8),'dWZmn':function(_0x3d41b1,_0x5dfd7b){return _0x3d41b1===_0x5dfd7b;},'rfOGJ':_0x1a91(0x9),'esbNR':'Data\x20Error','OMXLE':function(_0x758148,_0x649ce){return _0x758148<_0x649ce;},'ILcIH':_0x1a91(0xa),'jcGjC':_0x1a91(0xb),'ygBfG':_0x1a91(0xc),'DiCIQ':function(_0xf95fb2,_0x49f428){return _0xf95fb2===_0x49f428;},'CVCfe':'sHdJO','eKSIH':_0x1a91(0xd),'bybbJ':_0x1a91(0xe),'NuamL':_0x1a91(0xf),'Vssil':_0x1a91(0x10),'XzuhL':_0x1a91(0x11),'IMsvu':_0x1a91(0x12),'DRrSh':_0x1a91(0x13),'InHIK':function(_0x4d1d67,_0x109e9d){return _0x4d1d67===_0x109e9d;},'ICtOR':function(_0x16b681,_0x7971d9){return _0x16b681===_0x7971d9;},'FtfmA':function(_0x419bcc,_0x3af3c2){return _0x419bcc===_0x3af3c2;},'HQYva':function(_0x3d1503,_0x1ba261){return _0x3d1503===_0x1ba261;},'diHMq':_0x1a91(0x14),'WlYnH':function(_0x1c7e59,_0x50cef7){return _0x1c7e59!==_0x50cef7;},'MsOym':'Vgcxw','vbgGC':_0x1a91(0x15),'tSLpH':function(_0x461aaf,_0xce96aa){return _0x461aaf!==_0xce96aa;},'QvLKG':'cKSeM','iNPmg':_0x1a91(0x16)},_0x9134f8=async(_0xd4d54f,_0x4e8002)=>{console[_0x1a91(0x17)](_0x1a91(0x18)),console[_0x1a91(0x17)](_0x37353c['EFvIy'],_0xd4d54f),console['log'](_0x37353c[_0x1a91(0x19)],_0x4e8002[_0x1a91(0x1a)]);if(!_0xd4d54f)return console['error'](_0x1a91(0x1b)),_reactNative['Alert'][_0x1a91(0x1c)](_0x1a91(0x11),_0x37353c[_0x1a91(0x1d)],[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![];if(!_0x4e8002||_0x4e8002[_0x1a91(0x1a)]===0x0)return console[_0x1a91(0x17)](_0x1a91(0x5)),!![];const _0x3c5561=_0x4e8002[_0x1a91(0x1f)](_0x4c1206=>{const _0x3e2a09=_0x4c1206[_0x1a91(0x20)]&&_0x4c1206[_0x1a91(0x21)]&&Array[_0x1a91(0x22)](_0x4c1206[_0x1a91(0x23)])&&_0x37353c[_0x1a91(0x24)](_0x4c1206['user_messages'][_0x1a91(0x1a)],0x0);return!_0x3e2a09&&console[_0x1a91(0x25)](_0x1a91(0x26),_0x4c1206),_0x3e2a09;});if(_0x37353c[_0x1a91(0x27)](_0x3c5561[_0x1a91(0x1a)],0x0))return console[_0x1a91(0x28)](_0x37353c[_0x1a91(0x29)]),_reactNative[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x2b)],_0x1a91(0x2c),[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![];_0x37353c['OMXLE'](_0x3c5561[_0x1a91(0x1a)],_0x4e8002[_0x1a91(0x1a)])&&console[_0x1a91(0x25)](_0x1a91(0x2d)+(_0x4e8002[_0x1a91(0x1a)]-_0x3c5561['length'])+_0x1a91(0x2e));try{console['log'](_0x37353c['ILcIH']);const _0x159d11=await(0x0,_chatGPTConversationService['storeChatGPTConversations'])(_0xd4d54f,_0x3c5561);return _0x159d11[_0x1a91(0x2f)]?_0x1a91(0x30)===_0x1a91(0x30)?(console[_0x1a91(0x17)](_0x37353c['jcGjC']),console[_0x1a91(0x17)](_0x37353c['ygBfG'],_0x159d11[_0x1a91(0x31)]),!![]):(_0x5a5579[_0x1a91(0x28)](_0x37353c[_0x1a91(0x32)],_0x1053f1[_0x1a91(0x28)]),_0x12a266[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x33)],_0x1ea2ca[_0x1a91(0x28)]||_0x1a91(0x34),[{'text':'OK','style':_0x37353c['EwCcj']}]),![]):_0x37353c['DiCIQ'](_0x37353c[_0x1a91(0x35)],_0x37353c[_0x1a91(0x36)])?(_0x5bf24f[_0x1a91(0x17)](_0x37353c['DDkvT']),!![]):(console[_0x1a91(0x28)](_0x37353c[_0x1a91(0x32)],_0x159d11['error']),_reactNative[_0x1a91(0x2a)]['alert'](_0x37353c[_0x1a91(0x33)],_0x159d11[_0x1a91(0x28)]||_0x1a91(0x34),[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![]);}catch(_0xfde9e5){return console['error'](_0x37353c[_0x1a91(0x37)],_0xfde9e5),_reactNative[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x38)],_0x37353c[_0x1a91(0x39)],[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![];}},_0xf280a3=async _0x53a0ef=>{const _0x4eee4d={'ItEGk':_0x37353c['XzuhL'],'IAQyU':_0x37353c['ziqDU'],'ZcdFn':'default','VKvVE':_0x37353c[_0x1a91(0x3a)],'ofjiw':_0x37353c[_0x1a91(0x3b)],'eprKO':_0x37353c['ygBfG']};var _0x4468be,_0x4818e7,_0x525a6d;console['log'](_0x1a91(0x3c));if(!_0x53a0ef)return'hVlqO'===_0x1a91(0x3d)?(console['warn'](_0x37353c[_0x1a91(0x3e)]),![]):(_0xafa924[_0x1a91(0x28)](_0x1a91(0xe),_0x3cacbf),_0x35d0ac[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x37353c[_0x1a91(0x38)],_0x37353c[_0x1a91(0x39)],[{'text':'OK','style':_0x37353c[_0x1a91(0x1e)]}]),![]);const _0x262e28=(_0x53a0ef===null||_0x37353c[_0x1a91(0x27)](_0x53a0ef,void 0x0)||_0x37353c[_0x1a91(0x3f)](_0x4468be=_0x53a0ef[_0x1a91(0x40)],null)||_0x37353c[_0x1a91(0x41)](_0x4468be,void 0x0)?void 0x0:_0x4468be[_0x1a91(0x1a)])||0x0,_0x528cb2=(_0x53a0ef===null||_0x37353c[_0x1a91(0x41)](_0x53a0ef,void 0x0)||_0x37353c['ICtOR'](_0x4818e7=_0x53a0ef[_0x1a91(0x42)],null)||_0x37353c[_0x1a91(0x41)](_0x4818e7,void 0x0)?void 0x0:_0x4818e7[_0x1a91(0x1a)])||0x0,_0x53fd24=(_0x37353c[_0x1a91(0x43)](_0x53a0ef,null)||_0x37353c[_0x1a91(0x44)](_0x53a0ef,void 0x0)||_0x37353c[_0x1a91(0x27)](_0x525a6d=_0x53a0ef[_0x1a91(0x45)],null)||_0x37353c[_0x1a91(0x44)](_0x525a6d,void 0x0)?void 0x0:_0x525a6d[_0x1a91(0x1a)])||0x0;console[_0x1a91(0x17)]('📋\x20[CHATGPT_EXTRACTOR]\x20Found\x20'+_0x262e28+_0x1a91(0x46)+_0x528cb2+_0x1a91(0x47)+_0x53fd24+_0x1a91(0x48));if(_0x37353c['dWZmn'](_0x262e28,0x0)&&_0x528cb2===0x0&&_0x37353c[_0x1a91(0x41)](_0x53fd24,0x0))return console[_0x1a91(0x17)](_0x1a91(0x49)),!![];try{if(_0x37353c[_0x1a91(0x4a)]('EvMKb',_0x1a91(0x4b))){console[_0x1a91(0x17)](_0x1a91(0x4c));const _0x5e4ada=await(0x0,_chatGPTConversationService[_0x1a91(0x4d)])(_0x53a0ef);if(_0x5e4ada['success']){var _0x4ed795;return console['log'](_0x37353c[_0x1a91(0x4e)]),(_0x4ed795=_0x5e4ada[_0x1a91(0x31)])!==null&&_0x37353c[_0x1a91(0x4f)](_0x4ed795,void 0x0)&&_0x4ed795[_0x1a91(0x50)]&&console[_0x1a91(0x17)](_0x1a91(0x51)+_0x5e4ada[_0x1a91(0x31)][_0x1a91(0x50)]+_0x1a91(0x48)),!![];}else return _0x37353c[_0x1a91(0x52)]!==_0x37353c[_0x1a91(0x53)]?(console[_0x1a91(0x28)](_0x1a91(0x12),_0x5e4ada[_0x1a91(0x28)]),![]):(_0x39b0c8[_0x1a91(0x28)](_0x1a91(0x1b)),_0x3ab7e0[_0x1a91(0x2a)][_0x1a91(0x1c)](_0x4eee4d[_0x1a91(0x54)],_0x4eee4d['IAQyU'],[{'text':'OK','style':_0x4eee4d[_0x1a91(0x55)]}]),![]);}else return _0x39208b[_0x1a91(0x28)](_0x4eee4d[_0x1a91(0x56)],_0x1c4e76[_0x1a91(0x28)]),![];}catch(_0x5b3ea7){return _0x37353c['tSLpH'](_0x37353c[_0x1a91(0x57)],_0x1a91(0x58))?(_0x3c64d2[_0x1a91(0x17)](_0x4eee4d[_0x1a91(0x59)]),_0x57bfb9[_0x1a91(0x17)](_0x4eee4d[_0x1a91(0x5a)],_0x37de7b[_0x1a91(0x31)]),!![]):(console[_0x1a91(0x28)](_0x37353c[_0x1a91(0x5b)],_0x5b3ea7),![]);}};return{'initiateConversationExport':_0x9134f8,'storeMemories':_0xf280a3};};exports[_0x1a91(0x1)]=useChatGPTConversationExtractor;
|
|
8
|
+
function _0x4071(){const _0x1d0efc=['useChatGPTConversationExtractor','GAhRY','ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','⚠️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','tqpUG','cajDa','👤\x20[CHATGPT_EXTRACTOR]\x20Username:','📊\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','Error','default','GBsWc','❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','Data\x20Error','JMGhJ','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:','Export\x20Failed','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','✅\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','lJNTL','🧠\x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','ℹ️\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','HjCtB','❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','duyuH','iUJzJ','OCyBN','HbRFQ','EClNL','qExcR','log','fDcpd','edhlu','length','error','❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','Alert','alert','nTXqY','zvgsE','NYexe','rexsk','conversation_id','title','isArray','YWhwR','user_messages','mwxCw','warn','ywVKE','AyaAr','dosBr','LHYMV','NDYyD','DxvcV','TThpf','⚠️\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','iGJap','\x20invalid\x20conversations','oDUFq','oURAT','storeChatGPTConversations','success','TLTtZ','data','DGXJM','WxaVx','tyziH','SjjFC','JraMo','HWciu','YyBfd','WEmVl','xapuK','memoriesCount','📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20','\x20memories','lsAtT','vKYZj','zCRUW','vuYbp','memories','FmiFU','📋\x20[CHATGPT_EXTRACTOR]\x20Found\x20','\x20memory\x20items,\x20','\x20memory\x20entries,\x20','gDTTw','UfdaP','GGOdu','KNhir','storeChatGPTMemories','HaVmp','mPqWP','BhGaw','gPnWc','uEKUE','OBKLM','wPekI','gESMr'];_0x4071=function(){return _0x1d0efc;};return _0x4071();}function _0x4bcc(_0x40713e,_0x4bccd4){_0x40713e=_0x40713e-0x0;const _0x4cd017=_0x4071();let _0x573b5b=_0x4cd017[_0x40713e];return _0x573b5b;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x4bcc(0x0)]=void 0x0;var _chatGPTConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useChatGPTConversationExtractor=()=>{const _0x134127={'rexsk':'wbGMd','YWhwR':function(_0x59a4ab,_0x36e33f){return _0x59a4ab>_0x36e33f;},'mwxCw':_0x4bcc(0x1),'ywVKE':'⚠️\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','zvgsE':_0x4bcc(0x2),'duyuH':'❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','iUJzJ':_0x4bcc(0x3),'OCyBN':_0x4bcc(0x4),'HbRFQ':function(_0x39e052,_0x56a5e7){return _0x39e052===_0x56a5e7;},'EClNL':_0x4bcc(0x5),'qExcR':_0x4bcc(0x6),'EoTyT':'🚀\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','edhlu':_0x4bcc(0x7),'zsuJG':_0x4bcc(0x8),'nTXqY':_0x4bcc(0x9),'DxvcV':_0x4bcc(0xa),'ZunOb':_0x4bcc(0xb),'HJWdF':_0x4bcc(0xc),'NDYyD':_0x4bcc(0xd),'TThpf':function(_0x2c6b8c,_0x35608b){return _0x2c6b8c<_0x35608b;},'iGJap':function(_0x11a3a3,_0x4f3e4b){return _0x11a3a3-_0x4f3e4b;},'oDUFq':function(_0x28fd95,_0xf9f7ef){return _0x28fd95!==_0xf9f7ef;},'oURAT':_0x4bcc(0xe),'SKLTy':_0x4bcc(0xf),'TLTtZ':_0x4bcc(0x10),'DGXJM':'UbryO','GSIDh':'❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','WxaVx':_0x4bcc(0x11),'tyziH':'An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','SjjFC':'❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','JraMo':_0x4bcc(0x12),'HWciu':_0x4bcc(0x13),'gPnWc':'✅\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully','YyBfd':_0x4bcc(0x14),'WEmVl':function(_0x404bf5,_0x30817f){return _0x404bf5!==_0x30817f;},'xapuK':_0x4bcc(0x15),'lsAtT':_0x4bcc(0x16),'vKYZj':function(_0x2260cd,_0x249a1b){return _0x2260cd===_0x249a1b;},'fsGVC':function(_0x4d7b2e,_0x38c29e){return _0x4d7b2e===_0x38c29e;},'zCRUW':function(_0xd1cd1,_0x4a1ce0){return _0xd1cd1===_0x4a1ce0;},'vuYbp':function(_0x1ef690,_0x45e029){return _0x1ef690===_0x45e029;},'FmiFU':function(_0x1cc633,_0x23205b){return _0x1cc633===_0x23205b;},'gDTTw':function(_0x447754,_0xda9f7){return _0x447754===_0xda9f7;},'UfdaP':function(_0x456b6c,_0x852972){return _0x456b6c===_0x852972;},'GGOdu':_0x4bcc(0x17),'KNhir':'dGjRw','OZuse':_0x4bcc(0x18),'HaVmp':function(_0xacd16a,_0x28b58b){return _0xacd16a!==_0x28b58b;},'BhGaw':_0x4bcc(0x19),'uEKUE':'rxtoN','wPekI':_0x4bcc(0x1a),'gESMr':_0x4bcc(0x1b)},_0x52a60c=async(_0x531dc6,_0xc1ec57)=>{const _0x4d65e7={'fDcpd':_0x134127['zvgsE'],'NYexe':_0x4bcc(0x17),'AyaAr':_0x134127[_0x4bcc(0x1c)],'dosBr':_0x4bcc(0x9),'LHYMV':_0x134127[_0x4bcc(0x1d)],'JtVkD':_0x134127[_0x4bcc(0x1e)]};if(_0x134127[_0x4bcc(0x1f)](_0x134127[_0x4bcc(0x20)],_0x134127[_0x4bcc(0x21)]))return _0x565430[_0x4bcc(0x22)](_0x4d65e7[_0x4bcc(0x23)]),!![];else{console['log'](_0x134127['EoTyT']),console[_0x4bcc(0x22)](_0x134127[_0x4bcc(0x24)],_0x531dc6),console['log'](_0x134127['zsuJG'],_0xc1ec57[_0x4bcc(0x25)]);if(!_0x531dc6)return console[_0x4bcc(0x26)](_0x4bcc(0x27)),_reactNative[_0x4bcc(0x28)][_0x4bcc(0x29)](_0x134127[_0x4bcc(0x2a)],_0x134127['iUJzJ'],[{'text':'OK','style':_0x134127['DxvcV']}]),![];if(!_0xc1ec57||_0x134127[_0x4bcc(0x1f)](_0xc1ec57[_0x4bcc(0x25)],0x0))return _0x134127[_0x4bcc(0x1f)](_0x134127['ZunOb'],_0x4bcc(0xb))?(console[_0x4bcc(0x22)](_0x134127[_0x4bcc(0x2b)]),!![]):(_0x1a468d[_0x4bcc(0x22)](_0x4d65e7[_0x4bcc(0x2c)]),!![]);const _0x597ab2=_0xc1ec57['filter'](_0x357d3a=>{if(_0x134127[_0x4bcc(0x2d)]===_0x134127[_0x4bcc(0x2d)]){const _0x72659f=_0x357d3a[_0x4bcc(0x2e)]&&_0x357d3a[_0x4bcc(0x2f)]&&Array[_0x4bcc(0x30)](_0x357d3a['user_messages'])&&_0x134127[_0x4bcc(0x31)](_0x357d3a[_0x4bcc(0x32)][_0x4bcc(0x25)],0x0);if(!_0x72659f){if(_0x134127[_0x4bcc(0x33)]!=='ImtnS')console[_0x4bcc(0x34)](_0x134127[_0x4bcc(0x35)],_0x357d3a);else return _0x219074[_0x4bcc(0x26)]('❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:',_0x2fc4a4['error']),![];}return _0x72659f;}else return _0x4f1706['error'](_0x4d65e7[_0x4bcc(0x36)]),_0x2caf5c[_0x4bcc(0x28)]['alert'](_0x4d65e7[_0x4bcc(0x37)],_0x4d65e7[_0x4bcc(0x38)],[{'text':'OK','style':_0x4bcc(0xa)}]),![];});if(_0x134127[_0x4bcc(0x1f)](_0x597ab2[_0x4bcc(0x25)],0x0))return console[_0x4bcc(0x26)](_0x134127['HJWdF']),_reactNative['Alert'][_0x4bcc(0x29)](_0x134127[_0x4bcc(0x39)],'No\x20valid\x20conversations\x20found\x20to\x20export.',[{'text':'OK','style':_0x134127[_0x4bcc(0x3a)]}]),![];_0x134127[_0x4bcc(0x3b)](_0x597ab2[_0x4bcc(0x25)],_0xc1ec57[_0x4bcc(0x25)])&&console[_0x4bcc(0x34)](_0x4bcc(0x3c)+_0x134127[_0x4bcc(0x3d)](_0xc1ec57[_0x4bcc(0x25)],_0x597ab2[_0x4bcc(0x25)])+_0x4bcc(0x3e));try{if(_0x134127[_0x4bcc(0x3f)](_0x134127[_0x4bcc(0x40)],_0x134127['oURAT']))return _0x1d0238[_0x4bcc(0x34)](_0x4d65e7['JtVkD']),![];else{console[_0x4bcc(0x22)](_0x134127['SKLTy']);const _0x16792c=await(0x0,_chatGPTConversationService[_0x4bcc(0x41)])(_0x531dc6,_0x597ab2);return _0x16792c[_0x4bcc(0x42)]?(console[_0x4bcc(0x22)](_0x4bcc(0x14)),console[_0x4bcc(0x22)](_0x134127[_0x4bcc(0x43)],_0x16792c[_0x4bcc(0x44)]),!![]):_0x134127['oDUFq'](_0x134127['DGXJM'],_0x134127[_0x4bcc(0x45)])?(_0xeaf32a['error']('❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:',_0x39c228),![]):(console[_0x4bcc(0x26)](_0x134127['GSIDh'],_0x16792c[_0x4bcc(0x26)]),_reactNative[_0x4bcc(0x28)]['alert'](_0x134127[_0x4bcc(0x46)],_0x16792c[_0x4bcc(0x26)]||_0x134127[_0x4bcc(0x47)],[{'text':'OK','style':_0x134127[_0x4bcc(0x3a)]}]),![]);}}catch(_0x90c6d3){return console[_0x4bcc(0x26)](_0x134127[_0x4bcc(0x48)],_0x90c6d3),_reactNative[_0x4bcc(0x28)][_0x4bcc(0x29)](_0x134127[_0x4bcc(0x49)],_0x134127[_0x4bcc(0x4a)],[{'text':'OK','style':_0x4bcc(0xa)}]),![];}}},_0x2c46ef=async _0x4a2a3b=>{const _0x5b2770={'UHpXl':_0x134127[_0x4bcc(0x4b)],'OBKLM':'📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:'};if(_0x134127[_0x4bcc(0x4c)](_0x134127[_0x4bcc(0x4d)],_0x134127[_0x4bcc(0x4d)])){var _0x188194;return _0x4b3a34[_0x4bcc(0x22)](_0x134127['gPnWc']),_0x134127[_0x4bcc(0x3f)](_0x188194=_0x55181e['data'],null)&&_0x188194!==void 0x0&&_0x188194[_0x4bcc(0x4e)]&&_0x167ee5[_0x4bcc(0x22)](_0x4bcc(0x4f)+_0x45fc16[_0x4bcc(0x44)][_0x4bcc(0x4e)]+_0x4bcc(0x50)),!![];}else{var _0x469609,_0x24c487,_0x3d2a48;console[_0x4bcc(0x22)](_0x134127[_0x4bcc(0x51)]);if(!_0x4a2a3b)return console['warn'](_0x4bcc(0x4)),![];const _0x2d6c3a=(_0x134127[_0x4bcc(0x1f)](_0x4a2a3b,null)||_0x134127[_0x4bcc(0x1f)](_0x4a2a3b,void 0x0)||_0x134127[_0x4bcc(0x1f)](_0x469609=_0x4a2a3b['items'],null)||_0x134127['vKYZj'](_0x469609,void 0x0)?void 0x0:_0x469609[_0x4bcc(0x25)])||0x0,_0x36f808=(_0x4a2a3b===null||_0x4a2a3b===void 0x0||_0x134127['fsGVC'](_0x24c487=_0x4a2a3b['memory_entries'],null)||_0x134127[_0x4bcc(0x52)](_0x24c487,void 0x0)?void 0x0:_0x24c487[_0x4bcc(0x25)])||0x0,_0x28344f=(_0x134127[_0x4bcc(0x53)](_0x4a2a3b,null)||_0x134127[_0x4bcc(0x54)](_0x4a2a3b,void 0x0)||(_0x3d2a48=_0x4a2a3b[_0x4bcc(0x55)])===null||_0x134127[_0x4bcc(0x56)](_0x3d2a48,void 0x0)?void 0x0:_0x3d2a48['length'])||0x0;console[_0x4bcc(0x22)](_0x4bcc(0x57)+_0x2d6c3a+_0x4bcc(0x58)+_0x36f808+_0x4bcc(0x59)+_0x28344f+_0x4bcc(0x50));if(_0x134127[_0x4bcc(0x5a)](_0x2d6c3a,0x0)&&_0x134127[_0x4bcc(0x5b)](_0x36f808,0x0)&&_0x134127[_0x4bcc(0x1f)](_0x28344f,0x0))return console['log'](_0x134127[_0x4bcc(0x5c)]),!![];try{if(_0x134127[_0x4bcc(0x5d)]===_0x134127['KNhir']){console[_0x4bcc(0x22)](_0x134127['OZuse']);const _0x273083=await(0x0,_chatGPTConversationService[_0x4bcc(0x5e)])(_0x4a2a3b);if(_0x273083['success']){if(_0x134127[_0x4bcc(0x5f)](_0x4bcc(0x60),_0x134127[_0x4bcc(0x61)])){var _0x1575ba;console[_0x4bcc(0x22)](_0x134127[_0x4bcc(0x62)]);if(_0x134127[_0x4bcc(0x5f)](_0x1575ba=_0x273083[_0x4bcc(0x44)],null)&&_0x1575ba!==void 0x0&&_0x1575ba[_0x4bcc(0x4e)]){if(_0x134127['fsGVC'](_0x134127[_0x4bcc(0x63)],_0x134127[_0x4bcc(0x63)]))console[_0x4bcc(0x22)]('📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20'+_0x273083[_0x4bcc(0x44)]['memoriesCount']+'\x20memories');else return _0x295c38['log'](_0x5b2770['UHpXl']),_0x43937['log'](_0x5b2770[_0x4bcc(0x64)],_0x4c9c41[_0x4bcc(0x44)]),!![];}return!![];}else _0x30ff54[_0x4bcc(0x22)](_0x4bcc(0x4f)+_0x24c1e2[_0x4bcc(0x44)][_0x4bcc(0x4e)]+'\x20memories');}else return console[_0x4bcc(0x26)](_0x134127[_0x4bcc(0x65)],_0x273083[_0x4bcc(0x26)]),![];}else _0x4b826e[_0x4bcc(0x34)]('⚠️\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:',_0x2d8447);}catch(_0x6e61dd){return console[_0x4bcc(0x26)](_0x134127[_0x4bcc(0x66)],_0x6e61dd),![];}}};return{'initiateConversationExport':_0x52a60c,'storeMemories':_0x2c46ef};};exports[_0x4bcc(0x0)]=useChatGPTConversationExtractor;
|
|
@@ -6,4 +6,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
6
6
|
require("react-native")
|
|
7
7
|
];
|
|
8
8
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
-
Object[_0x4e3b(0x0)](exports,_0x4e3b(0x1),{'value':!![]}),exports[_0x4e3b(0x2)]=exports['storeChatGPTConversations']=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x304677){return _0x304677&&_0x304677[_0x4e3b(0x1)]?_0x304677:{'default':_0x304677};}function _0x4dda(){const _0x1eb99e=['defineProperty','__esModule','storeChatGPTMemories','Unknown\x20error','❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','Invalid\x20input:\x20memoriesData\x20missing.','📊\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','📊\x20[CHATGPT_SERVICE]\x20Total\x20messages:','fnvDY','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','onairos_jwt_token','auth_token','DKjsn','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','1.0.0','17.0','iPhone','gcwEA','mobile-chatgpt','conversation','BPwHt','kPDJD','BWTXx','IVOjr','log','MDpGG','oHVNK','length','KHdMa','TaktO','warn','⚠️\x20[CHATGPT_SERVICE]\x20Error:\x20','JxfNl','HTTP\x20','status','byFMZ','GMxfo','default','getItem','OwkxX','rshVD','lWnuL','TJQBm','IfvnR','NknOr','error','VzSrq','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','ScwYi','Platform','sqsfP','nBxyG','eTBxo','ios','Android','XmhCv','thjQp','now','user_messages','user','toISOString','conversation_id','floor','repvU','vdggW','HqItW','title','API_CONFIG','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','json','TKKJC','Stored\x20','\x20of\x20','\x20conversations','VptrC','NQbzR','gQGqf','⚠️\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','lYSFy','zfzxt','oxBbR','message','📊\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','SneGU','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','WmTwi','okBnd','wASnQ','❌\x20[CHATGPT_SERVICE]\x20Network\x20error:','oaXjJ','Whevg','Network\x20error.\x20Please\x20check\x20your\x20connection.','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','MNVFK','✅\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','Memories\x20stored\x20successfully','ijUfM','🧠\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','svfxC','UUtcg','tbAKw','items','KRFjL','AZgtw','FtSAH','lYMSt','PCNSj','NYQbL','📋\x20[CHATGPT_SERVICE]\x20Found\x20','\x20entries,\x20','\x20memories\x20(total:\x20','yVSVv','AFjmS','CJmzd','enoch_token','rzqpP','UHhUo','pVvRZ','UIWGr','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','BjvMF','keys','📡\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','BASE_URL','/llm-data/store-memories','join','📦\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)','iTtHp','📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20','IuyTk','data','PIRPe','memoriesCount','\x20memory\x20items\x20in\x20database','xBTbJ','⚠️\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','akdCk','SsLtr','NDobg','ConFL'];_0x4dda=function(){return _0x1eb99e;};return _0x4dda();}const storeChatGPTConversations=async(_0x907ab0,_0x42f12f)=>{const _0x181582={'JxfNl':_0x4e3b(0x3),'VzSrq':_0x4e3b(0x4),'oxBbR':_0x4e3b(0x5),'oaXjJ':'Network\x20error.\x20Please\x20check\x20your\x20connection.','tDorB':'❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','Whevg':_0x4e3b(0x6),'MDpGG':'🚀\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','oHVNK':_0x4e3b(0x7),'NwPuV':_0x4e3b(0x8),'KHdMa':function(_0x1d7186,_0x215de7){return _0x1d7186!==_0x215de7;},'TaktO':_0x4e3b(0x9),'byFMZ':'❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input','GMxfo':_0x4e3b(0xa),'OwkxX':_0x4e3b(0xb),'rshVD':'enoch_token','lWnuL':_0x4e3b(0xc),'TJQBm':_0x4e3b(0xd),'IfvnR':'dmluP','NknOr':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','ScwYi':_0x4e3b(0xe),'sqsfP':_0x4e3b(0xf),'Jfmqt':function(_0x3686d0,_0x83ad53){return _0x3686d0===_0x83ad53;},'nBxyG':'ios','eTBxo':_0x4e3b(0x10),'kfWyG':_0x4e3b(0x11),'XmhCv':function(_0x5019ec,_0x15ca47){return _0x5019ec===_0x15ca47;},'thjQp':_0x4e3b(0x12),'axBgk':function(_0x179caf,_0x215e9d){return _0x179caf/_0x215e9d;},'repvU':_0x4e3b(0x13),'vdggW':_0x4e3b(0x14),'HqItW':function(_0x2d64ba,_0x4100fe){return _0x2d64ba+_0x4100fe;},'UkcaC':function(_0x2c3339,_0x1885c8,_0x2256c9){return _0x2c3339(_0x1885c8,_0x2256c9);},'TKKJC':function(_0x55bf53,_0x9b47f4){return _0x55bf53===_0x9b47f4;},'LbEtV':_0x4e3b(0x15),'VptrC':function(_0x447ec2,_0x40bed8){return _0x447ec2+_0x40bed8;},'NQbzR':function(_0x27457a,_0x16a716){return _0x27457a!==_0x16a716;},'CRwoF':_0x4e3b(0x16),'gQGqf':_0x4e3b(0x17),'lYSFy':function(_0x3e12fd,_0x3826d5){return _0x3e12fd<_0x3826d5;},'zfzxt':function(_0x4abf75,_0x119616){return _0x4abf75-_0x119616;},'SneGU':function(_0x2264a5,_0x245d87){return _0x2264a5>_0x245d87;},'WmTwi':function(_0x2fc0cc,_0x382aac){return _0x2fc0cc!==_0x382aac;},'okBnd':_0x4e3b(0x18),'wASnQ':'MMyNH'};console[_0x4e3b(0x19)](_0x181582[_0x4e3b(0x1a)],_0x907ab0),console['log'](_0x181582[_0x4e3b(0x1b)],_0x42f12f[_0x4e3b(0x1c)]),console['log'](_0x181582['NwPuV'],_0x42f12f['reduce']((_0x29a02f,_0x24223a)=>_0x29a02f+_0x24223a['user_messages'][_0x4e3b(0x1c)],0x0));if(!_0x907ab0||!_0x42f12f||_0x42f12f[_0x4e3b(0x1c)]===0x0)return _0x181582[_0x4e3b(0x1d)](_0x181582[_0x4e3b(0x1e)],_0x181582['TaktO'])?(_0x389227['warn']('⚠️\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20'+_0x3e2d98['status']),_0x139430[_0x4e3b(0x1f)](_0x4e3b(0x20)+(_0x4914bd['error']||_0x181582[_0x4e3b(0x21)])),{'success':![],'error':_0x278ad7['error']||_0x4e3b(0x22)+_0x2f3e8f[_0x4e3b(0x23)]}):(console['error'](_0x181582[_0x4e3b(0x24)]),{'success':![],'error':_0x181582[_0x4e3b(0x25)]});try{const _0x5835f1=await _asyncStorage[_0x4e3b(0x26)][_0x4e3b(0x27)](_0x181582[_0x4e3b(0x28)])||await _asyncStorage['default'][_0x4e3b(0x27)](_0x181582[_0x4e3b(0x29)])||await _asyncStorage['default'][_0x4e3b(0x27)](_0x181582[_0x4e3b(0x2a)]);if(!_0x5835f1)return _0x181582['KHdMa'](_0x181582[_0x4e3b(0x2b)],_0x181582[_0x4e3b(0x2c)])?(console['error'](_0x4e3b(0x4)),{'success':![],'error':_0x181582[_0x4e3b(0x2d)]}):(_0x2b4a20[_0x4e3b(0x2e)](_0x181582[_0x4e3b(0x2f)]),{'success':![],'error':_0x4e3b(0x30)});console[_0x4e3b(0x19)](_0x181582[_0x4e3b(0x31)]);const _0x3e4796={'platform':_reactNative[_0x4e3b(0x32)]['OS'],'appVersion':_0x181582[_0x4e3b(0x33)],'osVersion':_0x181582['Jfmqt'](_reactNative[_0x4e3b(0x32)]['OS'],_0x181582[_0x4e3b(0x34)])?_0x181582[_0x4e3b(0x35)]:_reactNative['Platform']['OS'],'deviceModel':_0x181582['Jfmqt'](_reactNative['Platform']['OS'],_0x4e3b(0x36))?_0x181582['kfWyG']:_0x4e3b(0x37),'isOfflineSync':![]};let _0xf73d38=0x0,_0x4d7877=0x0;for(let _0x727175=0x0;_0x727175<_0x42f12f[_0x4e3b(0x1c)];_0x727175++){if(_0x181582[_0x4e3b(0x38)](_0x181582[_0x4e3b(0x39)],_0x4e3b(0x12))){const _0x36dc15=_0x42f12f[_0x727175],_0x5acdb1=Date[_0x4e3b(0x3a)](),_0x37b9fb=_0x36dc15[_0x4e3b(0x3b)]['map']((_0x2dda38,_0x5a8912)=>({'id':_0x36dc15['conversation_id']+'-msg-'+_0x5a8912,'role':_0x4e3b(0x3c),'content':_0x2dda38,'timestamp':new Date(_0x5acdb1-(_0x36dc15[_0x4e3b(0x3b)]['length']-_0x5a8912)*0x3e8)[_0x4e3b(0x3d)](),'metadata':{}})),_0x1f031c={'conversationId':_0x36dc15[_0x4e3b(0x3e)],'messages':_0x37b9fb,'context':{'title':_0x36dc15['title'],'create_time':Math[_0x4e3b(0x3f)](_0x181582['axBgk'](_0x5acdb1,0x3e8)),'update_time':Math[_0x4e3b(0x3f)](_0x181582['axBgk'](_0x5acdb1,0x3e8))},'mobileMetadata':_0x3e4796},_0x24fb99={'platform':_0x181582[_0x4e3b(0x40)],'conversationData':_0x1f031c,'memoryType':_0x181582[_0x4e3b(0x41)]};console[_0x4e3b(0x19)]('📡\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20'+_0x181582[_0x4e3b(0x42)](_0x727175,0x1)+'/'+_0x42f12f[_0x4e3b(0x1c)]+':\x20'+_0x36dc15[_0x4e3b(0x43)]);try{const _0x1f6354=await _0x181582['UkcaC'](fetch,_api[_0x4e3b(0x44)]['BASE_URL']+_0x4e3b(0x45),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4e3b(0x46)+_0x5835f1,'User-Agent':_0x4e3b(0x47)+_reactNative[_0x4e3b(0x32)]['OS']+')'},'body':JSON[_0x4e3b(0x48)](_0x24fb99)}),_0x2cf492=await _0x1f6354[_0x4e3b(0x49)]();if(_0x1f6354['ok']){if(_0x181582[_0x4e3b(0x4a)](_0x181582['LbEtV'],'WnRqU'))return{'success':!![],'message':_0x4e3b(0x4b)+_0x138f4c+_0x4e3b(0x4c)+_0x18334d[_0x4e3b(0x1c)]+_0x4e3b(0x4d)};else console['log']('✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20'+_0x181582[_0x4e3b(0x4e)](_0x727175,0x1)+'/'+_0x42f12f['length']),_0xf73d38++;}else{if(_0x181582[_0x4e3b(0x4f)](_0x181582['CRwoF'],_0x181582[_0x4e3b(0x50)]))console['warn']('⚠️\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20'+(_0x727175+0x1)+'/'+_0x42f12f[_0x4e3b(0x1c)]+':',_0x2cf492[_0x4e3b(0x2e)]||_0x1f6354[_0x4e3b(0x23)]),_0x4d7877++;else return _0x1bc9f5&&_0x3508ad[_0x4e3b(0x1)]?_0x29a6ba:{'default':_0x469249};}}catch(_0x146b78){console[_0x4e3b(0x1f)](_0x4e3b(0x51)+(_0x727175+0x1)+':',_0x146b78),_0x4d7877++;}_0x181582[_0x4e3b(0x52)](_0x727175,_0x181582[_0x4e3b(0x53)](_0x42f12f[_0x4e3b(0x1c)],0x1))&&await new Promise(_0x48b55a=>setTimeout(_0x48b55a,0x12c));}else return _0x49e81b[_0x4e3b(0x2e)](_0x181582[_0x4e3b(0x54)],_0x36fbf5),{'success':![],'error':_0x5dbc6a[_0x4e3b(0x55)]||_0x181582['oaXjJ']};}return console[_0x4e3b(0x19)](_0x4e3b(0x56)+_0xf73d38+_0x4e3b(0x57)+_0x4d7877+_0x4e3b(0x58)),_0x181582[_0x4e3b(0x59)](_0xf73d38,0x0)?{'success':!![],'message':'Stored\x20'+_0xf73d38+_0x4e3b(0x4c)+_0x42f12f[_0x4e3b(0x1c)]+_0x4e3b(0x4d)}:{'success':![],'error':_0x4e3b(0x5a)+_0x4d7877+_0x4e3b(0x5b)};}catch(_0x31a092){return _0x181582[_0x4e3b(0x5c)](_0x181582[_0x4e3b(0x5d)],_0x181582[_0x4e3b(0x5e)])?(console[_0x4e3b(0x2e)](_0x4e3b(0x5f),_0x31a092),{'success':![],'error':_0x31a092[_0x4e3b(0x55)]||_0x181582[_0x4e3b(0x60)]}):(_0xf1409a['error'](_0x181582['tDorB']),{'success':![],'error':_0x181582[_0x4e3b(0x61)]});}};function _0x4e3b(_0x4dda08,_0x4e3bee){_0x4dda08=_0x4dda08-0x0;const _0x9eb0ae=_0x4dda();let _0x46982f=_0x9eb0ae[_0x4dda08];return _0x46982f;}exports['storeChatGPTConversations']=storeChatGPTConversations;const storeChatGPTMemories=async _0x3e6c4d=>{const _0x22da10={'SsLtr':_0x4e3b(0x5f),'NDobg':_0x4e3b(0x62),'svfxC':function(_0x354f4f,_0x2dda9f){return _0x354f4f===_0x2dda9f;},'UUtcg':function(_0x396d58,_0x1fcd26){return _0x396d58===_0x1fcd26;},'tbAKw':function(_0x574190,_0x56f15a){return _0x574190===_0x56f15a;},'KRFjL':function(_0x17ec46,_0x4019cd){return _0x17ec46===_0x4019cd;},'AZgtw':function(_0x2efce4,_0x212bf3){return _0x2efce4===_0x212bf3;},'FtSAH':function(_0x157b36,_0x1b80d7){return _0x157b36===_0x1b80d7;},'lYMSt':function(_0x284262,_0x55e8be){return _0x284262===_0x55e8be;},'PCNSj':function(_0x4b2c19,_0x20af15){return _0x4b2c19===_0x20af15;},'NYQbL':function(_0x35c340,_0x43546d){return _0x35c340+_0x43546d;},'UeHuF':function(_0x156239,_0x8a3412){return _0x156239!==_0x8a3412;},'AFjmS':_0x4e3b(0x63),'CJmzd':_0x4e3b(0x6),'UqlQM':_0x4e3b(0xb),'rzqpP':_0x4e3b(0xc),'UHhUo':_0x4e3b(0x64),'pVvRZ':_0x4e3b(0x4),'UIWGr':_0x4e3b(0x30),'BjvMF':_0x4e3b(0xf),'SjWgE':function(_0x57ad0e,_0x34e3fa){return _0x57ad0e||_0x34e3fa;},'iTtHp':function(_0x3def4b,_0x23c647,_0x1a742a){return _0x3def4b(_0x23c647,_0x1a742a);},'ivnxp':_0x4e3b(0x65),'IuyTk':function(_0x37be10,_0x544a35){return _0x37be10!==_0x544a35;},'PIRPe':function(_0x2237fe,_0x3f6158){return _0x2237fe!==_0x3f6158;},'xBTbJ':_0x4e3b(0x66),'LFifK':_0x4e3b(0x67),'akdCk':_0x4e3b(0x3),'ConFL':_0x4e3b(0x5)};var _0x2c89c5,_0x388ec7,_0x4835d2;console[_0x4e3b(0x19)](_0x4e3b(0x68));const _0xe33c0d=(_0x22da10[_0x4e3b(0x69)](_0x3e6c4d,null)||_0x22da10[_0x4e3b(0x6a)](_0x3e6c4d,void 0x0)||_0x22da10[_0x4e3b(0x6b)](_0x2c89c5=_0x3e6c4d[_0x4e3b(0x6c)],null)||_0x22da10['tbAKw'](_0x2c89c5,void 0x0)?void 0x0:_0x2c89c5[_0x4e3b(0x1c)])||0x0,_0xd82266=(_0x22da10[_0x4e3b(0x6d)](_0x3e6c4d,null)||_0x3e6c4d===void 0x0||_0x22da10[_0x4e3b(0x6e)](_0x388ec7=_0x3e6c4d['memory_entries'],null)||_0x388ec7===void 0x0?void 0x0:_0x388ec7[_0x4e3b(0x1c)])||0x0,_0x48f042=(_0x22da10[_0x4e3b(0x6f)](_0x3e6c4d,null)||_0x22da10[_0x4e3b(0x70)](_0x3e6c4d,void 0x0)||_0x22da10[_0x4e3b(0x6f)](_0x4835d2=_0x3e6c4d['memories'],null)||_0x22da10[_0x4e3b(0x71)](_0x4835d2,void 0x0)?void 0x0:_0x4835d2[_0x4e3b(0x1c)])||0x0,_0x1a9f23=_0x22da10[_0x4e3b(0x72)](_0x22da10[_0x4e3b(0x72)](_0xe33c0d,_0xd82266),_0x48f042);console['log'](_0x4e3b(0x73)+_0xe33c0d+'\x20items,\x20'+_0xd82266+_0x4e3b(0x74)+_0x48f042+_0x4e3b(0x75)+_0x1a9f23+')');if(!_0x3e6c4d)return _0x22da10['UeHuF'](_0x4e3b(0x76),'yVSVv')?{'success':![],'error':'Failed\x20to\x20store\x20conversations\x20('+_0x3d8396+_0x4e3b(0x5b)}:(console['error'](_0x22da10[_0x4e3b(0x77)]),{'success':![],'error':_0x22da10[_0x4e3b(0x78)]});try{const _0x50c9d9=await _asyncStorage[_0x4e3b(0x26)][_0x4e3b(0x27)](_0x22da10['UqlQM'])||await _asyncStorage['default'][_0x4e3b(0x27)](_0x4e3b(0x79))||await _asyncStorage[_0x4e3b(0x26)]['getItem'](_0x22da10[_0x4e3b(0x7a)]);if(!_0x50c9d9){if(_0x22da10[_0x4e3b(0x69)](_0x22da10[_0x4e3b(0x7b)],_0x22da10[_0x4e3b(0x7b)]))return console[_0x4e3b(0x2e)](_0x22da10[_0x4e3b(0x7c)]),{'success':![],'error':_0x22da10[_0x4e3b(0x7d)]};else _0x43ddb5[_0x4e3b(0x19)]('📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20'+_0x295822['message']);}console[_0x4e3b(0x19)](_0x4e3b(0x7e));const _0x4e796c=_0x22da10[_0x4e3b(0x7f)],_0x5bda01={'platform':_0x4e3b(0x13),'memoriesData':_0x3e6c4d,'metadata':{'source':'react-native-sdk','appVersion':_0x4e796c,'fetchedAt':new Date()[_0x4e3b(0x3d)]()}},_0x51a344=Object[_0x4e3b(0x80)](_0x22da10['SjWgE'](_0x3e6c4d,{}));console[_0x4e3b(0x19)](_0x4e3b(0x81)),console['log']('📍\x20[CHATGPT_SERVICE]\x20URL:\x20'+_api[_0x4e3b(0x44)][_0x4e3b(0x82)]+_0x4e3b(0x83)),console[_0x4e3b(0x19)]('📦\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20'+_0x51a344[_0x4e3b(0x84)](',\x20')),console['log'](_0x4e3b(0x85));const _0x1c1a71=await _0x22da10[_0x4e3b(0x86)](fetch,_api['API_CONFIG']['BASE_URL']+_0x4e3b(0x83),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4e3b(0x46)+_0x50c9d9,'User-Agent':'OnairosSDK/'+_0x4e796c+'\x20('+_reactNative[_0x4e3b(0x32)]['OS']+')'},'body':JSON[_0x4e3b(0x48)](_0x5bda01)}),_0x3e262a=await _0x1c1a71[_0x4e3b(0x49)]();if(_0x1c1a71['ok']){var _0x3f2b54;return console[_0x4e3b(0x19)](_0x22da10['ivnxp']),_0x3e262a['message']&&console[_0x4e3b(0x19)](_0x4e3b(0x87)+_0x3e262a[_0x4e3b(0x55)]),_0x22da10[_0x4e3b(0x88)](_0x3f2b54=_0x3e262a[_0x4e3b(0x89)],null)&&_0x22da10[_0x4e3b(0x8a)](_0x3f2b54,void 0x0)&&_0x3f2b54['memoriesCount']&&console['log']('📋\x20[CHATGPT_SERVICE]\x20Stored\x20'+_0x3e262a['data'][_0x4e3b(0x8b)]+_0x4e3b(0x8c)),{'success':!![],'message':_0x3e262a[_0x4e3b(0x55)]||_0x22da10[_0x4e3b(0x8d)],'data':_0x3e262a[_0x4e3b(0x89)]};}else return'QloCr'!==_0x22da10['LFifK']?(console['warn'](_0x4e3b(0x8e)+_0x1c1a71[_0x4e3b(0x23)]),console['warn'](_0x4e3b(0x20)+(_0x3e262a[_0x4e3b(0x2e)]||_0x22da10[_0x4e3b(0x8f)])),{'success':![],'error':_0x3e262a[_0x4e3b(0x2e)]||_0x4e3b(0x22)+_0x1c1a71[_0x4e3b(0x23)]}):(_0x2cd534['error'](_0x22da10[_0x4e3b(0x90)],_0x3a038d),{'success':![],'error':_0x186ec1[_0x4e3b(0x55)]||_0x22da10[_0x4e3b(0x91)]});}catch(_0x5831e7){return console[_0x4e3b(0x2e)](_0x22da10[_0x4e3b(0x92)],_0x5831e7),{'success':![],'error':_0x5831e7[_0x4e3b(0x55)]||_0x22da10['NDobg']};}};exports['storeChatGPTMemories']=storeChatGPTMemories;
|
|
9
|
+
function _0x4208(_0x2b8c99,_0x4208ed){_0x2b8c99=_0x2b8c99-0x0;const _0x5b956a=_0x2b8c();let _0x446b9a=_0x5b956a[_0x2b8c99];return _0x446b9a;}Object['defineProperty'](exports,_0x4208(0x0),{'value':!![]}),exports[_0x4208(0x1)]=exports[_0x4208(0x2)]=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x4158e6){return _0x4158e6&&_0x4158e6[_0x4208(0x0)]?_0x4158e6:{'default':_0x4158e6};}const storeChatGPTConversations=async(_0x45da42,_0x41399b)=>{const _0x37130c={'Xurld':'Unknown\x20error','coZeO':_0x4208(0x3),'CMVxZ':function(_0x4e7874,_0x3f8a5){return _0x4e7874||_0x3f8a5;},'XYGeX':function(_0x3a061c,_0x3c004a){return _0x3a061c===_0x3c004a;},'mxBpj':_0x4208(0x4),'zNBQW':_0x4208(0x5),'qLAic':_0x4208(0x6),'codMJ':_0x4208(0x7),'CNBeF':function(_0x5a4060,_0x3b9085){return _0x5a4060!==_0x3b9085;},'JAQkH':_0x4208(0x8),'lDVbA':_0x4208(0x9),'AbSaG':_0x4208(0xa),'JIBXP':'🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','FBDNG':_0x4208(0xb),'ifFTZ':function(_0x15f815,_0x337242){return _0x15f815===_0x337242;},'tjacX':'ios','OVTrY':_0x4208(0xc),'bjffb':function(_0x475a7e,_0x282be7){return _0x475a7e===_0x282be7;},'YjoqX':_0x4208(0xd),'FABOk':_0x4208(0xe),'qBMGT':function(_0x592643,_0x191602){return _0x592643<_0x191602;},'zERLS':function(_0x25a545,_0x2f6132){return _0x25a545/_0x2f6132;},'HYZlj':'mobile-chatgpt','CdbPh':_0x4208(0xf),'VjVAl':function(_0x2f4546,_0x2858c9){return _0x2f4546+_0x2858c9;},'kKQcV':function(_0x2b8cdd,_0x182e8b,_0x5e5547){return _0x2b8cdd(_0x182e8b,_0x5e5547);},'FxRLT':function(_0x275e55,_0x4a4848){return _0x275e55<_0x4a4848;},'GmljP':'ydPTp','TPAWu':function(_0x290d7e,_0x3842fc){return _0x290d7e>_0x3842fc;},'xsVtd':'pgiET','WLYoi':_0x4208(0x10),'gTFdr':_0x4208(0x11),'Dtara':_0x4208(0x12),'CKqmb':'Network\x20error.\x20Please\x20check\x20your\x20connection.'};console['log'](_0x4208(0x13),_0x45da42),console['log'](_0x37130c[_0x4208(0x14)],_0x41399b[_0x4208(0x15)]),console[_0x4208(0x16)](_0x4208(0x17),_0x41399b[_0x4208(0x18)]((_0x253553,_0x4ad87e)=>_0x253553+_0x4ad87e[_0x4208(0x19)]['length'],0x0));if(_0x37130c[_0x4208(0x1a)](!_0x45da42,!_0x41399b)||_0x37130c[_0x4208(0x1b)](_0x41399b[_0x4208(0x15)],0x0))return console[_0x4208(0x1c)](_0x4208(0x1d)),{'success':![],'error':_0x37130c[_0x4208(0x1e)]};try{const _0x108f14=await _asyncStorage[_0x4208(0x1f)][_0x4208(0x20)](_0x37130c['zNBQW'])||await _asyncStorage[_0x4208(0x1f)][_0x4208(0x20)](_0x37130c['qLAic'])||await _asyncStorage[_0x4208(0x1f)]['getItem'](_0x37130c['codMJ']);if(!_0x108f14)return _0x37130c[_0x4208(0x21)](_0x37130c[_0x4208(0x22)],_0x37130c[_0x4208(0x23)])?(console[_0x4208(0x1c)](_0x37130c['AbSaG']),{'success':![],'error':_0x4208(0x24)}):(_0x47987e[_0x4208(0x25)]('⚠️\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20'+_0x358260[_0x4208(0x26)]),_0x5d5dec['warn'](_0x4208(0x27)+(_0x235267[_0x4208(0x1c)]||_0x37130c[_0x4208(0x28)])),{'success':![],'error':_0x914d22[_0x4208(0x1c)]||_0x4208(0x29)+_0x1e4fc9[_0x4208(0x26)]});console[_0x4208(0x16)](_0x37130c['JIBXP']);const _0x56d976={'platform':_reactNative[_0x4208(0x2a)]['OS'],'appVersion':_0x37130c[_0x4208(0x2b)],'osVersion':_0x37130c[_0x4208(0x2c)](_reactNative[_0x4208(0x2a)]['OS'],_0x37130c[_0x4208(0x2d)])?_0x37130c['OVTrY']:_reactNative[_0x4208(0x2a)]['OS'],'deviceModel':_0x37130c[_0x4208(0x2e)](_reactNative[_0x4208(0x2a)]['OS'],_0x4208(0x2f))?_0x37130c[_0x4208(0x30)]:_0x37130c['FABOk'],'isOfflineSync':![]};let _0x5be6f6=0x0,_0x55c0cd=0x0;for(let _0x2f3139=0x0;_0x37130c[_0x4208(0x31)](_0x2f3139,_0x41399b[_0x4208(0x15)]);_0x2f3139++){const _0x23ff57=_0x41399b[_0x2f3139],_0x591799=Date[_0x4208(0x32)](),_0x55a569=_0x23ff57[_0x4208(0x19)]['map']((_0x434f39,_0x20b51f)=>({'id':_0x23ff57[_0x4208(0x33)]+_0x4208(0x34)+_0x20b51f,'role':_0x4208(0x35),'content':_0x434f39,'timestamp':new Date(_0x591799-(_0x23ff57[_0x4208(0x19)][_0x4208(0x15)]-_0x20b51f)*0x3e8)['toISOString'](),'metadata':{}})),_0x3e9bc4={'conversationId':_0x23ff57[_0x4208(0x33)],'messages':_0x55a569,'context':{'title':_0x23ff57[_0x4208(0x36)],'create_time':Math[_0x4208(0x37)](_0x591799/0x3e8),'update_time':Math['floor'](_0x37130c[_0x4208(0x38)](_0x591799,0x3e8))},'mobileMetadata':_0x56d976},_0x23e9d0={'platform':_0x37130c[_0x4208(0x39)],'conversationData':_0x3e9bc4,'memoryType':_0x37130c[_0x4208(0x3a)]};console[_0x4208(0x16)]('📡\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20'+_0x37130c[_0x4208(0x3b)](_0x2f3139,0x1)+'/'+_0x41399b[_0x4208(0x15)]+':\x20'+_0x23ff57[_0x4208(0x36)]);try{const _0x5b1316=await _0x37130c[_0x4208(0x3c)](fetch,_api[_0x4208(0x3d)]['BASE_URL']+_0x4208(0x3e),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4208(0x3f)+_0x108f14,'User-Agent':_0x4208(0x40)+_reactNative[_0x4208(0x2a)]['OS']+')'},'body':JSON[_0x4208(0x41)](_0x23e9d0)}),_0x145005=await _0x5b1316['json']();_0x5b1316['ok']?(console[_0x4208(0x16)](_0x4208(0x42)+_0x37130c[_0x4208(0x3b)](_0x2f3139,0x1)+'/'+_0x41399b['length']),_0x5be6f6++):(console[_0x4208(0x25)](_0x4208(0x43)+_0x37130c[_0x4208(0x3b)](_0x2f3139,0x1)+'/'+_0x41399b[_0x4208(0x15)]+':',_0x145005['error']||_0x5b1316[_0x4208(0x26)]),_0x55c0cd++);}catch(_0x536795){console[_0x4208(0x25)](_0x4208(0x44)+(_0x2f3139+0x1)+':',_0x536795),_0x55c0cd++;}if(_0x37130c[_0x4208(0x45)](_0x2f3139,_0x41399b[_0x4208(0x15)]-0x1)){if(_0x37130c[_0x4208(0x2e)](_0x4208(0x46),_0x37130c[_0x4208(0x47)]))return{'success':![],'error':_0x4208(0x48)+_0x5f346c+_0x4208(0x49)};else await new Promise(_0x333314=>setTimeout(_0x333314,0x12c));}}console[_0x4208(0x16)](_0x4208(0x4a)+_0x5be6f6+_0x4208(0x4b)+_0x55c0cd+_0x4208(0x4c));if(_0x37130c[_0x4208(0x4d)](_0x5be6f6,0x0)){if(_0x37130c['ifFTZ'](_0x37130c[_0x4208(0x4e)],_0x4208(0x4f)))return{'success':!![],'message':_0x4208(0x50)+_0x5be6f6+_0x4208(0x51)+_0x41399b[_0x4208(0x15)]+_0x4208(0x52)};else _0x346e8e[_0x4208(0x16)](_0x4208(0x53)+_0x1dbb78[_0x4208(0x54)]);}else{if(_0x37130c['WLYoi']===_0x37130c[_0x4208(0x55)])_0x2f2602[_0x4208(0x16)](_0x4208(0x56)+_0x4aee61['data']['memoriesCount']+_0x4208(0x57));else return{'success':![],'error':_0x4208(0x48)+_0x55c0cd+_0x4208(0x49)};}}catch(_0x516ce1){return console[_0x4208(0x1c)](_0x37130c[_0x4208(0x58)],_0x516ce1),{'success':![],'error':_0x516ce1[_0x4208(0x54)]||_0x37130c[_0x4208(0x59)]};}};exports[_0x4208(0x2)]=storeChatGPTConversations;const storeChatGPTMemories=async _0x1cc4e2=>{const _0x2cd69d={'rVABH':_0x4208(0xa),'gSfFN':_0x4208(0x24),'ewGqK':function(_0xdc3350,_0x10c376){return _0xdc3350+_0x10c376;},'svioI':_0x4208(0x5a),'JwjWj':function(_0x527d24,_0xb12fd4){return _0x527d24===_0xb12fd4;},'gADcw':function(_0x23bd2d,_0x486958){return _0x23bd2d===_0x486958;},'vOQMd':function(_0x5c007d,_0x4db52c){return _0x5c007d===_0x4db52c;},'qIyxI':function(_0x499a14,_0x9b9931){return _0x499a14===_0x9b9931;},'kGalT':function(_0x4b7e55,_0x21fa37){return _0x4b7e55===_0x21fa37;},'NeBsk':function(_0xdda0c4,_0x3fca34){return _0xdda0c4+_0x3fca34;},'IUVBO':_0x4208(0x5b),'ALybP':'enoch_token','AXGMS':_0x4208(0x7),'XjaUB':_0x4208(0x5c),'nlEty':_0x4208(0xb),'hNcrA':'mobile-chatgpt','JmJui':function(_0x6e02c2,_0x5f9aa4,_0x14c274){return _0x6e02c2(_0x5f9aa4,_0x14c274);},'HcqGG':function(_0x9473b1,_0x542b64){return _0x9473b1===_0x542b64;},'wBetG':_0x4208(0x5d),'DUXrp':_0x4208(0x5e),'YoORq':function(_0x2afc5d,_0x1010a9){return _0x2afc5d!==_0x1010a9;},'wZnov':_0x4208(0x5f),'ovlMw':_0x4208(0x60),'JwDAa':_0x4208(0x61),'ybBXH':_0x4208(0x62)};var _0x3a8483,_0x19717f,_0x171a68;console['log'](_0x2cd69d[_0x4208(0x63)]);const _0x5908c5=(_0x2cd69d[_0x4208(0x64)](_0x1cc4e2,null)||_0x2cd69d[_0x4208(0x64)](_0x1cc4e2,void 0x0)||_0x2cd69d['gADcw'](_0x3a8483=_0x1cc4e2[_0x4208(0x65)],null)||_0x2cd69d[_0x4208(0x66)](_0x3a8483,void 0x0)?void 0x0:_0x3a8483['length'])||0x0,_0x30ca41=(_0x2cd69d[_0x4208(0x67)](_0x1cc4e2,null)||_0x2cd69d[_0x4208(0x67)](_0x1cc4e2,void 0x0)||_0x2cd69d[_0x4208(0x68)](_0x19717f=_0x1cc4e2[_0x4208(0x69)],null)||_0x19717f===void 0x0?void 0x0:_0x19717f['length'])||0x0,_0x301429=(_0x2cd69d['kGalT'](_0x1cc4e2,null)||_0x2cd69d[_0x4208(0x67)](_0x1cc4e2,void 0x0)||_0x2cd69d[_0x4208(0x64)](_0x171a68=_0x1cc4e2['memories'],null)||_0x2cd69d[_0x4208(0x66)](_0x171a68,void 0x0)?void 0x0:_0x171a68['length'])||0x0,_0x357ed2=_0x2cd69d[_0x4208(0x6a)](_0x2cd69d[_0x4208(0x6b)](_0x5908c5,_0x30ca41),_0x301429);console[_0x4208(0x16)](_0x4208(0x6c)+_0x5908c5+_0x4208(0x6d)+_0x30ca41+_0x4208(0x6e)+_0x301429+_0x4208(0x6f)+_0x357ed2+')');if(!_0x1cc4e2)return _0x2cd69d[_0x4208(0x64)](_0x2cd69d[_0x4208(0x70)],_0x2cd69d[_0x4208(0x70)])?(console[_0x4208(0x1c)](_0x4208(0x71)),{'success':![],'error':'Invalid\x20input:\x20memoriesData\x20missing.'}):(_0x39a80d['error'](_0x2cd69d[_0x4208(0x72)]),{'success':![],'error':_0x2cd69d['gSfFN']});try{const _0x4aefb9=await _asyncStorage[_0x4208(0x1f)][_0x4208(0x20)]('onairos_jwt_token')||await _asyncStorage[_0x4208(0x1f)]['getItem'](_0x2cd69d[_0x4208(0x73)])||await _asyncStorage[_0x4208(0x1f)][_0x4208(0x20)](_0x2cd69d[_0x4208(0x74)]);if(!_0x4aefb9)return console['error'](_0x2cd69d[_0x4208(0x72)]),{'success':![],'error':_0x2cd69d['gSfFN']};console[_0x4208(0x16)](_0x2cd69d[_0x4208(0x75)]);const _0x159440=_0x2cd69d[_0x4208(0x76)],_0x23a406={'platform':_0x2cd69d['hNcrA'],'memoriesData':_0x1cc4e2,'metadata':{'source':'react-native-sdk','appVersion':_0x159440,'fetchedAt':new Date()[_0x4208(0x77)]()}},_0x508810=Object['keys'](_0x1cc4e2||{});console[_0x4208(0x16)](_0x4208(0x78)),console[_0x4208(0x16)]('📍\x20[CHATGPT_SERVICE]\x20URL:\x20'+_api[_0x4208(0x3d)][_0x4208(0x79)]+_0x4208(0x7a)),console[_0x4208(0x16)](_0x4208(0x7b)+_0x508810[_0x4208(0x7c)](',\x20')),console[_0x4208(0x16)](_0x4208(0x7d));const _0xcda38=await _0x2cd69d[_0x4208(0x7e)](fetch,_api[_0x4208(0x3d)][_0x4208(0x79)]+'/llm-data/store-memories',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4aefb9,'User-Agent':_0x4208(0x7f)+_0x159440+'\x20('+_reactNative[_0x4208(0x2a)]['OS']+')'},'body':JSON[_0x4208(0x41)](_0x23a406)}),_0x41c698=await _0xcda38[_0x4208(0x80)]();if(_0xcda38['ok']){var _0x4d9140;console[_0x4208(0x16)](_0x4208(0x81));_0x41c698[_0x4208(0x54)]&&(_0x2cd69d[_0x4208(0x82)](_0x2cd69d[_0x4208(0x83)],_0x2cd69d[_0x4208(0x84)])?(_0x465a7e[_0x4208(0x25)](_0x4208(0x43)+_0x2cd69d[_0x4208(0x6a)](_0x57f12a,0x1)+'/'+_0x2bc0f7['length']+':',_0x3946ed[_0x4208(0x1c)]||_0x289ca3['status']),_0x1b0409++):console[_0x4208(0x16)](_0x4208(0x53)+_0x41c698[_0x4208(0x54)]));if(_0x2cd69d[_0x4208(0x85)](_0x4d9140=_0x41c698['data'],null)&&_0x4d9140!==void 0x0&&_0x4d9140['memoriesCount']){if(_0x2cd69d[_0x4208(0x86)]===_0x4208(0x87))return _0x211e9c[_0x4208(0x1c)](_0x2cd69d['rVABH']),{'success':![],'error':_0x2cd69d[_0x4208(0x88)]};else console[_0x4208(0x16)](_0x4208(0x56)+_0x41c698[_0x4208(0x89)][_0x4208(0x8a)]+_0x4208(0x57));}return{'success':!![],'message':_0x41c698[_0x4208(0x54)]||_0x2cd69d[_0x4208(0x8b)],'data':_0x41c698[_0x4208(0x89)]};}else return console[_0x4208(0x25)](_0x4208(0x8c)+_0xcda38[_0x4208(0x26)]),console['warn'](_0x4208(0x27)+(_0x41c698[_0x4208(0x1c)]||_0x2cd69d[_0x4208(0x8d)])),{'success':![],'error':_0x41c698['error']||_0x4208(0x29)+_0xcda38[_0x4208(0x26)]};}catch(_0xe0fdef){return console[_0x4208(0x1c)](_0x2cd69d[_0x4208(0x8e)],_0xe0fdef),{'success':![],'error':_0xe0fdef['message']||_0x4208(0x8f)};}};exports[_0x4208(0x1)]=storeChatGPTMemories;function _0x2b8c(){const _0x28dc2d=['__esModule','storeChatGPTMemories','storeChatGPTConversations','📊\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','onairos_jwt_token','enoch_token','auth_token','nTfPy','iBBEV','❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','1.0.0','17.0','iPhone','Android','conversation','uxlte','kcVMJ','❌\x20[CHATGPT_SERVICE]\x20Network\x20error:','🚀\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','coZeO','length','log','📊\x20[CHATGPT_SERVICE]\x20Total\x20messages:','reduce','user_messages','CMVxZ','XYGeX','error','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input','mxBpj','default','getItem','CNBeF','JAQkH','lDVbA','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','warn','status','⚠️\x20[CHATGPT_SERVICE]\x20Error:\x20','Xurld','HTTP\x20','Platform','FBDNG','ifFTZ','tjacX','bjffb','ios','YjoqX','qBMGT','now','conversation_id','-msg-','user','title','floor','zERLS','HYZlj','CdbPh','VjVAl','kKQcV','API_CONFIG','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20','⚠️\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20','⚠️\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','FxRLT','mqjxS','GmljP','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','📊\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','TPAWu','xsVtd','pgiET','Stored\x20','\x20of\x20','\x20conversations','📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20','message','gTFdr','📋\x20[CHATGPT_SERVICE]\x20Stored\x20','\x20memory\x20items\x20in\x20database','Dtara','CKqmb','🧠\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','zNtGZ','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','cVLYO','mbhdE','Hixrx','Memories\x20stored\x20successfully','Unknown\x20error','❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','svioI','JwjWj','items','vOQMd','qIyxI','gADcw','memory_entries','ewGqK','NeBsk','📋\x20[CHATGPT_SERVICE]\x20Found\x20','\x20items,\x20','\x20entries,\x20','\x20memories\x20(total:\x20','IUVBO','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','rVABH','ALybP','AXGMS','XjaUB','nlEty','toISOString','📡\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','BASE_URL','/llm-data/store-memories','📦\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20','join','📦\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)','JmJui','OnairosSDK/','json','✅\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','HcqGG','wBetG','DUXrp','YoORq','wZnov','fBNKo','gSfFN','data','memoriesCount','ovlMw','⚠️\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','JwDAa','ybBXH','Network\x20error.\x20Please\x20check\x20your\x20connection.'];_0x2b8c=function(){return _0x28dc2d;};return _0x2b8c();}
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("react-native")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
function
|
|
8
|
+
function _0x2917(_0x2e260d,_0x2917a9){_0x2e260d=_0x2e260d-0x0;const _0x2b03e9=_0x2e26();let _0x5e74d0=_0x2b03e9[_0x2e260d];return _0x5e74d0;}function _0x2e26(){const _0x3471ec=['defineProperty','__esModule','useClaudeConversationExtractor','❌\x20[CLAUDE_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','⚠️\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:','👤\x20[CLAUDE_EXTRACTOR]\x20Username:','📊\x20[CLAUDE_EXTRACTOR]\x20Conversations\x20to\x20send:','❌\x20[CLAUDE_EXTRACTOR]\x20Username\x20is\x20required','Error','Username\x20is\x20required\x20to\x20export\x20Claude\x20conversations.','ℹ️\x20[CLAUDE_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','BftGY','❌\x20[CLAUDE_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','Data\x20Error','📡\x20[CLAUDE_EXTRACTOR]\x20Sending\x20to\x20backend...','📊\x20[CLAUDE_EXTRACTOR]\x20Backend\x20response:','❌\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','mdZhd','IECNo','log','WhLcG','MAmji','length','error','FZjPD','Alert','alert','QoqTW','PEEma','EotYU','filter','conversation_id','title','isArray','user_messages','warn','hFlCe','fBxLO','WmNdZ','PiIqh','WydXd','OOkrK','No\x20valid\x20conversations\x20found\x20to\x20export.','default','QgLxX','⚠️\x20[CLAUDE_EXTRACTOR]\x20Filtered\x20out\x20','\x20invalid\x20conversations','AfCsE','success','data','HsVYM'];_0x2e26=function(){return _0x3471ec;};return _0x2e26();}Object[_0x2917(0x0)](exports,_0x2917(0x1),{'value':!![]}),exports[_0x2917(0x2)]=void 0x0;var _claudeConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useClaudeConversationExtractor=()=>{const _0xb569dd={'HsVYM':_0x2917(0x3),'WmNdZ':_0x2917(0x4),'PiIqh':_0x2917(0x5),'QoqTW':'default','mdZhd':function(_0x36377c,_0x495318){return _0x36377c>_0x495318;},'IECNo':_0x2917(0x6),'KsgWB':'🚀\x20[CLAUDE_EXTRACTOR]\x20Initiating\x20conversation\x20export','WhLcG':_0x2917(0x7),'MAmji':_0x2917(0x8),'FZjPD':_0x2917(0x9),'nnOnM':_0x2917(0xa),'fKJKI':_0x2917(0xb),'PEEma':function(_0x3fe9dd,_0x3cfa38){return _0x3fe9dd===_0x3cfa38;},'EotYU':_0x2917(0xc),'fBxLO':_0x2917(0xd),'WydXd':_0x2917(0xe),'OOkrK':_0x2917(0xf),'QgLxX':function(_0x3d3497,_0x2c73ca){return _0x3d3497<_0x2c73ca;},'eBiAf':function(_0x10c620,_0x477b51){return _0x10c620-_0x477b51;},'AfCsE':_0x2917(0x10),'MpXRw':_0x2917(0x11),'nIHbI':_0x2917(0x12)},_0x5cb682=async(_0x710f7d,_0x47e0d8)=>{const _0x2a6a9b={'hXpyd':function(_0x3b7cae,_0x46289a){return _0xb569dd[_0x2917(0x13)](_0x3b7cae,_0x46289a);},'hFlCe':_0xb569dd[_0x2917(0x14)]};console[_0x2917(0x15)](_0xb569dd['KsgWB']),console['log'](_0xb569dd[_0x2917(0x16)],_0x710f7d),console[_0x2917(0x15)](_0xb569dd[_0x2917(0x17)],_0x47e0d8[_0x2917(0x18)]);if(!_0x710f7d)return console[_0x2917(0x19)](_0xb569dd[_0x2917(0x1a)]),_reactNative[_0x2917(0x1b)][_0x2917(0x1c)](_0xb569dd['nnOnM'],_0xb569dd['fKJKI'],[{'text':'OK','style':_0xb569dd[_0x2917(0x1d)]}]),![];if(!_0x47e0d8||_0xb569dd[_0x2917(0x1e)](_0x47e0d8[_0x2917(0x18)],0x0))return console[_0x2917(0x15)](_0xb569dd[_0x2917(0x1f)]),!![];const _0x533b59=_0x47e0d8[_0x2917(0x20)](_0x33fdb5=>{const _0x17dc61=_0x33fdb5[_0x2917(0x21)]&&_0x33fdb5[_0x2917(0x22)]&&Array[_0x2917(0x23)](_0x33fdb5[_0x2917(0x24)])&&_0x2a6a9b['hXpyd'](_0x33fdb5[_0x2917(0x24)][_0x2917(0x18)],0x0);return!_0x17dc61&&console[_0x2917(0x25)](_0x2a6a9b[_0x2917(0x26)],_0x33fdb5),_0x17dc61;});if(_0xb569dd[_0x2917(0x1e)](_0x533b59[_0x2917(0x18)],0x0))return'Kqgqg'===_0xb569dd[_0x2917(0x27)]?(_0x10fb0d['error'](_0xb569dd['HsVYM'],_0x12977a[_0x2917(0x19)]),_0x192223['Alert'][_0x2917(0x1c)](_0xb569dd[_0x2917(0x28)],_0xc6c81a['error']||_0xb569dd[_0x2917(0x29)],[{'text':'OK','style':_0xb569dd[_0x2917(0x1d)]}]),![]):(console['error'](_0xb569dd[_0x2917(0x2a)]),_reactNative[_0x2917(0x1b)]['alert'](_0xb569dd[_0x2917(0x2b)],_0x2917(0x2c),[{'text':'OK','style':_0x2917(0x2d)}]),![]);_0xb569dd[_0x2917(0x2e)](_0x533b59[_0x2917(0x18)],_0x47e0d8['length'])&&console['warn'](_0x2917(0x2f)+_0xb569dd['eBiAf'](_0x47e0d8[_0x2917(0x18)],_0x533b59[_0x2917(0x18)])+_0x2917(0x30));try{console[_0x2917(0x15)](_0xb569dd[_0x2917(0x31)]);const _0x53b200=await(0x0,_claudeConversationService['storeClaudeConversations'])(_0x710f7d,_0x533b59);return _0x53b200[_0x2917(0x32)]?(console['log']('✅\x20[CLAUDE_EXTRACTOR]\x20Export\x20completed\x20successfully'),console['log'](_0xb569dd['MpXRw'],_0x53b200[_0x2917(0x33)]),!![]):(console[_0x2917(0x19)](_0xb569dd[_0x2917(0x34)],_0x53b200[_0x2917(0x19)]),_reactNative[_0x2917(0x1b)][_0x2917(0x1c)](_0xb569dd[_0x2917(0x28)],_0x53b200[_0x2917(0x19)]||_0xb569dd[_0x2917(0x29)],[{'text':'OK','style':_0xb569dd[_0x2917(0x1d)]}]),![]);}catch(_0x279074){return console[_0x2917(0x19)](_0xb569dd['nIHbI'],_0x279074),_reactNative['Alert'][_0x2917(0x1c)]('Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.',[{'text':'OK','style':'default'}]),![];}};return{'initiateConversationExport':_0x5cb682};};exports[_0x2917(0x2)]=useClaudeConversationExtractor;
|