@onairos/react-native 3.6.8 → 3.6.9

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.
Files changed (257) hide show
  1. package/README.md +423 -423
  2. package/lib/commonjs/api/index.js +1 -1
  3. package/lib/commonjs/assets/images/Checkbox.svg +3 -3
  4. package/lib/commonjs/assets/images/EnochE.svg +19 -19
  5. package/lib/commonjs/assets/images/Personalityprofile.svg +3 -3
  6. package/lib/commonjs/assets/images/Personalitytraits.svg +3 -3
  7. package/lib/commonjs/assets/images/Userpreferences.svg +3 -3
  8. package/lib/commonjs/assets/images/arrow.svg +20 -20
  9. package/lib/commonjs/assets/images/basicproficon.svg +43 -43
  10. package/lib/commonjs/assets/images/basicprofile.svg +3 -3
  11. package/lib/commonjs/assets/images/checkmark.svg +4 -4
  12. package/lib/commonjs/assets/images/contentanalysis.svg +3 -3
  13. package/lib/commonjs/assets/images/contenticon.svg +23 -23
  14. package/lib/commonjs/assets/images/personalityicon.svg +18 -18
  15. package/lib/commonjs/assets/images/x-close.svg +3 -3
  16. package/lib/commonjs/components/BodyText.js +1 -1
  17. package/lib/commonjs/components/BrandMark.js +1 -1
  18. package/lib/commonjs/components/CodeInput.js +1 -1
  19. package/lib/commonjs/components/EmailInput.js +1 -1
  20. package/lib/commonjs/components/GoogleButton.js +1 -1
  21. package/lib/commonjs/components/HeadingGroup.js +1 -1
  22. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  23. package/lib/commonjs/components/ModalHeader.js +1 -1
  24. package/lib/commonjs/components/ModalSheet.js +1 -1
  25. package/lib/commonjs/components/Onairos.js +1 -1
  26. package/lib/commonjs/components/OnairosButton.js +1 -1
  27. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  28. package/lib/commonjs/components/Overlay.js +1 -1
  29. package/lib/commonjs/components/PersonaImage.js +1 -1
  30. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  31. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  32. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  33. package/lib/commonjs/components/PinInput.js +1 -1
  34. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  35. package/lib/commonjs/components/PlatformList.js +1 -1
  36. package/lib/commonjs/components/PlatformToggle.js +1 -1
  37. package/lib/commonjs/components/PrimaryButton.js +1 -1
  38. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  39. package/lib/commonjs/components/SignInStep.js +1 -1
  40. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  41. package/lib/commonjs/components/VerificationStep.js +1 -1
  42. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  43. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  44. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  45. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  46. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  47. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  48. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  49. package/lib/commonjs/components/icons/EnochE.js +1 -1
  50. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  51. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  52. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  53. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  54. package/lib/commonjs/components/icons/index.js +1 -1
  55. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  56. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  57. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  58. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  59. package/lib/commonjs/config/PLATFORM_APIS.md +559 -0
  60. package/lib/commonjs/config/api.js +1 -1
  61. package/lib/commonjs/config/telegramConfig.js +8 -0
  62. package/lib/commonjs/config/webchangelog/md +607 -0
  63. package/lib/commonjs/constants/index.js +1 -1
  64. package/lib/commonjs/context/AuthContext.js +1 -1
  65. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  66. package/lib/commonjs/hooks/useConnections.js +1 -1
  67. package/lib/commonjs/hooks/useCredentials.js +1 -1
  68. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  69. package/lib/commonjs/index.js +1 -1
  70. package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
  71. package/lib/commonjs/services/apiClient.js +1 -1
  72. package/lib/commonjs/services/apiKeyService.js +99 -99
  73. package/lib/commonjs/services/authService.js +72 -72
  74. package/lib/commonjs/services/biometricPinService.js +1 -1
  75. package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
  76. package/lib/commonjs/services/chatGPTConversationService.js +1 -1
  77. package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
  78. package/lib/commonjs/services/claudeConversationService.js +1 -1
  79. package/lib/commonjs/services/connectedAccountsService.js +1 -1
  80. package/lib/commonjs/services/googleAuthService.js +1 -1
  81. package/lib/commonjs/services/hingeDataExtractor.js +1 -1
  82. package/lib/commonjs/services/hingeDataService.js +1 -1
  83. package/lib/commonjs/services/imageCompressionService.js +1 -1
  84. package/lib/commonjs/services/instagramDataExtractor.js +1 -1
  85. package/lib/commonjs/services/instagramDataService.js +1 -1
  86. package/lib/commonjs/services/jwtStorageService.js +1 -1
  87. package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
  88. package/lib/commonjs/services/linkedinProfileService.js +1 -1
  89. package/lib/commonjs/services/linkedinScrapingService.js +1 -1
  90. package/lib/commonjs/services/llmDataStorage.js +1 -1
  91. package/lib/commonjs/services/mobileTrainingService.js +1 -1
  92. package/lib/commonjs/services/oauthService.js +20 -20
  93. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  94. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  95. package/lib/commonjs/services/platformAuthService.js +1 -1
  96. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  97. package/lib/commonjs/services/sephoraDataService.js +1 -1
  98. package/lib/commonjs/services/storageService.js +1 -1
  99. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  100. package/lib/commonjs/services/telegramDataService.js +1 -1
  101. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  102. package/lib/commonjs/services/userConnectionsService.js +1 -1
  103. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  104. package/lib/commonjs/theme/index.js +1 -1
  105. package/lib/commonjs/types/index.js +1 -1
  106. package/lib/commonjs/types.js +1 -1
  107. package/lib/commonjs/utils/Portal.js +1 -1
  108. package/lib/commonjs/utils/api.js +1 -1
  109. package/lib/commonjs/utils/assetRegistry.js +1 -1
  110. package/lib/commonjs/utils/auth.js +1 -1
  111. package/lib/commonjs/utils/connectorTests.js +1 -1
  112. package/lib/commonjs/utils/crypto.js +1 -1
  113. package/lib/commonjs/utils/debugHelper.js +1 -1
  114. package/lib/commonjs/utils/encryption.js +1 -1
  115. package/lib/commonjs/utils/eventUtils.js +1 -1
  116. package/lib/commonjs/utils/haptics.js +1 -1
  117. package/lib/commonjs/utils/imagePreloader.js +1 -1
  118. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  119. package/lib/commonjs/utils/onairosApi.js +1 -1
  120. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  121. package/lib/commonjs/utils/retryHelper.js +1 -1
  122. package/lib/commonjs/utils/secureStorage.js +1 -1
  123. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  124. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  125. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  126. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  127. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  128. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  129. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  130. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  131. package/lib/module/api/index.js +1 -1
  132. package/lib/module/assets/images/Checkbox.svg +3 -3
  133. package/lib/module/assets/images/EnochE.svg +19 -19
  134. package/lib/module/assets/images/Personalityprofile.svg +3 -3
  135. package/lib/module/assets/images/Personalitytraits.svg +3 -3
  136. package/lib/module/assets/images/Userpreferences.svg +3 -3
  137. package/lib/module/assets/images/arrow.svg +20 -20
  138. package/lib/module/assets/images/basicproficon.svg +43 -43
  139. package/lib/module/assets/images/basicprofile.svg +3 -3
  140. package/lib/module/assets/images/checkmark.svg +4 -4
  141. package/lib/module/assets/images/contentanalysis.svg +3 -3
  142. package/lib/module/assets/images/contenticon.svg +23 -23
  143. package/lib/module/assets/images/personalityicon.svg +18 -18
  144. package/lib/module/assets/images/x-close.svg +3 -3
  145. package/lib/module/components/BodyText.js +1 -1
  146. package/lib/module/components/BrandMark.js +1 -1
  147. package/lib/module/components/CodeInput.js +1 -1
  148. package/lib/module/components/EmailInput.js +1 -1
  149. package/lib/module/components/GoogleButton.js +1 -1
  150. package/lib/module/components/HeadingGroup.js +1 -1
  151. package/lib/module/components/LLMDataInputModal.js +1 -1
  152. package/lib/module/components/ModalHeader.js +1 -1
  153. package/lib/module/components/ModalSheet.js +1 -1
  154. package/lib/module/components/Onairos.js +1 -1
  155. package/lib/module/components/OnairosButton.js +1 -1
  156. package/lib/module/components/OnairosSignInButton.js +1 -1
  157. package/lib/module/components/Overlay.js +1 -1
  158. package/lib/module/components/PersonaImage.js +1 -1
  159. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  160. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  161. package/lib/module/components/PinCreationScreen.js +1 -1
  162. package/lib/module/components/PinInput.js +1 -1
  163. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  164. package/lib/module/components/PlatformList.js +1 -1
  165. package/lib/module/components/PlatformToggle.js +1 -1
  166. package/lib/module/components/PrimaryButton.js +1 -1
  167. package/lib/module/components/SignInMatchAnimation.js +1 -1
  168. package/lib/module/components/SignInStep.js +1 -1
  169. package/lib/module/components/UniversalOnboarding.js +1 -1
  170. package/lib/module/components/VerificationStep.js +1 -1
  171. package/lib/module/components/WelcomeScreen.js +1 -1
  172. package/lib/module/components/icons/Basicproficon.js +1 -1
  173. package/lib/module/components/icons/Basicprofile.js +1 -1
  174. package/lib/module/components/icons/Checkbox.js +1 -1
  175. package/lib/module/components/icons/Checkmark.js +1 -1
  176. package/lib/module/components/icons/Contentanalysis.js +1 -1
  177. package/lib/module/components/icons/Contenticon.js +1 -1
  178. package/lib/module/components/icons/EnochE.js +1 -1
  179. package/lib/module/components/icons/Personalityicon.js +1 -1
  180. package/lib/module/components/icons/Personalityprofile.js +1 -1
  181. package/lib/module/components/icons/Personalitytraits.js +1 -1
  182. package/lib/module/components/icons/Userpreferences.js +1 -1
  183. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  184. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  185. package/lib/module/components/onboarding/PinInput.js +1 -1
  186. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  187. package/lib/module/config/PLATFORM_APIS.md +559 -0
  188. package/lib/module/config/api.js +1 -1
  189. package/lib/module/config/telegramConfig.js +8 -0
  190. package/lib/module/config/webchangelog/md +607 -0
  191. package/lib/module/constants/index.js +1 -1
  192. package/lib/module/context/AuthContext.js +1 -1
  193. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  194. package/lib/module/hooks/useConnections.js +1 -1
  195. package/lib/module/hooks/useCredentials.js +1 -1
  196. package/lib/module/hooks/useUserConnections.js +1 -1
  197. package/lib/module/index.js +1 -1
  198. package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
  199. package/lib/module/services/apiClient.js +1 -1
  200. package/lib/module/services/apiKeyService.js +99 -99
  201. package/lib/module/services/authService.js +72 -72
  202. package/lib/module/services/biometricPinService.js +1 -1
  203. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  204. package/lib/module/services/chatGPTConversationService.js +1 -1
  205. package/lib/module/services/claudeConversationExtractor.js +1 -1
  206. package/lib/module/services/claudeConversationService.js +1 -1
  207. package/lib/module/services/connectedAccountsService.js +1 -1
  208. package/lib/module/services/googleAuthService.js +1 -1
  209. package/lib/module/services/hingeDataExtractor.js +1 -1
  210. package/lib/module/services/hingeDataService.js +1 -1
  211. package/lib/module/services/imageCompressionService.js +1 -1
  212. package/lib/module/services/instagramDataExtractor.js +1 -1
  213. package/lib/module/services/instagramDataService.js +1 -1
  214. package/lib/module/services/jwtStorageService.js +1 -1
  215. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  216. package/lib/module/services/linkedinProfileService.js +1 -1
  217. package/lib/module/services/linkedinScrapingService.js +1 -1
  218. package/lib/module/services/llmDataStorage.js +1 -1
  219. package/lib/module/services/mobileTrainingService.js +1 -1
  220. package/lib/module/services/oauthService.js +20 -20
  221. package/lib/module/services/pinEncryptionService.js +1 -1
  222. package/lib/module/services/pinStorageUtils.js +1 -1
  223. package/lib/module/services/platformAuthService.js +1 -1
  224. package/lib/module/services/sephoraDataExtractor.js +1 -1
  225. package/lib/module/services/sephoraDataService.js +1 -1
  226. package/lib/module/services/storageService.js +1 -1
  227. package/lib/module/services/telegramDataExtractor.js +1 -1
  228. package/lib/module/services/telegramDataService.js +1 -1
  229. package/lib/module/services/trainingApiHelpers.js +1 -1
  230. package/lib/module/services/userConnectionsService.js +1 -1
  231. package/lib/module/services/youtubeMigrationService.js +1 -1
  232. package/lib/module/theme/index.js +1 -1
  233. package/lib/module/types.js +1 -1
  234. package/lib/module/utils/Portal.js +1 -1
  235. package/lib/module/utils/api.js +1 -1
  236. package/lib/module/utils/assetRegistry.js +1 -1
  237. package/lib/module/utils/auth.js +1 -1
  238. package/lib/module/utils/connectorTests.js +1 -1
  239. package/lib/module/utils/crypto.js +1 -1
  240. package/lib/module/utils/debugHelper.js +1 -1
  241. package/lib/module/utils/encryption.js +1 -1
  242. package/lib/module/utils/eventUtils.js +1 -1
  243. package/lib/module/utils/haptics.js +1 -1
  244. package/lib/module/utils/networkDiagnostics.js +1 -1
  245. package/lib/module/utils/onairosApi.js +1 -1
  246. package/lib/module/utils/programmaticFlow.js +1 -1
  247. package/lib/module/utils/retryHelper.js +1 -1
  248. package/lib/module/utils/secureStorage.js +1 -1
  249. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  250. package/lib/module/utils/webviewScripts/claude.js +1 -1
  251. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  252. package/lib/module/utils/webviewScripts/index.js +1 -1
  253. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  254. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  255. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  256. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  257. package/package.json +172 -172
@@ -7,9 +7,9 @@ import { storeJWT, getJWT, clearJWT } from './jwtStorageService';
7
7
  // API base URL
8
8
  const API_BASE_URL = API_CONFIG.BASE_URL;
9
9
 
10
- /**
11
- * Wait for SDK initialization to complete (up to maxWaitMs).
12
- * Polls isApiKeyInitialized() every 500ms.
10
+ /**
11
+ * Wait for SDK initialization to complete (up to maxWaitMs).
12
+ * Polls isApiKeyInitialized() every 500ms.
13
13
  */
14
14
  const waitForSDKInit = async (maxWaitMs = 8000) => {
15
15
  if (isApiKeyInitialized()) return true;
@@ -31,20 +31,20 @@ const waitForSDKInit = async (maxWaitMs = 8000) => {
31
31
 
32
32
  // Interface for Apple authentication payload
33
33
 
34
- /**
35
- * Generic SDK Authentication Response
36
- * Used by all auth methods (Google, Apple, Email)
34
+ /**
35
+ * Generic SDK Authentication Response
36
+ * Used by all auth methods (Google, Apple, Email)
37
37
  */
38
38
 
39
- /**
40
- * Authenticate with Apple
41
- * @param appleAuthData Data from Apple authentication
42
- * @returns Authentication response with token and user data
39
+ /**
40
+ * Authenticate with Apple
41
+ * @param appleAuthData Data from Apple authentication
42
+ * @returns Authentication response with token and user data
43
43
  */
44
- /**
45
- * Authenticate with Onairos (similar to Apple authentication)
46
- * @param onairosAuthData Data from Onairos authentication
47
- * @returns Authentication response with token and user data
44
+ /**
45
+ * Authenticate with Onairos (similar to Apple authentication)
46
+ * @param onairosAuthData Data from Onairos authentication
47
+ * @returns Authentication response with token and user data
48
48
  */
49
49
  export const authenticateWithOnairos = async onairosAuthData => {
50
50
  try {
@@ -80,10 +80,10 @@ export const authenticateWithOnairos = async onairosAuthData => {
80
80
  }
81
81
  };
82
82
 
83
- /**
84
- * Authenticate with Onairos using the standardized /login/signin endpoint
85
- * @param credentials Email and password for Onairos sign-in
86
- * @returns Authentication response with token and user data
83
+ /**
84
+ * Authenticate with Onairos using the standardized /login/signin endpoint
85
+ * @param credentials Email and password for Onairos sign-in
86
+ * @returns Authentication response with token and user data
87
87
  */
88
88
  export const authenticateWithOnairosSignIn = async credentials => {
89
89
  try {
@@ -129,10 +129,10 @@ export const authenticateWithOnairosSignIn = async credentials => {
129
129
  }
130
130
  };
131
131
 
132
- /**
133
- * Authenticate with Apple using generic SDK endpoint
134
- * NOTE: This is generic SDK auth - does NOT create EnochUser
135
- * Consuming apps should call /enoch/users/register after this if needed
132
+ /**
133
+ * Authenticate with Apple using generic SDK endpoint
134
+ * NOTE: This is generic SDK auth - does NOT create EnochUser
135
+ * Consuming apps should call /enoch/users/register after this if needed
136
136
  */
137
137
  export const authenticateWithApple = async appleAuthData => {
138
138
  try {
@@ -191,9 +191,9 @@ export const authenticateWithApple = async appleAuthData => {
191
191
  }
192
192
  };
193
193
 
194
- /**
195
- * Save authentication token
196
- * @param token JWT token
194
+ /**
195
+ * Save authentication token
196
+ * @param token JWT token
197
197
  */
198
198
  export const saveAuthToken = async token => {
199
199
  try {
@@ -204,8 +204,8 @@ export const saveAuthToken = async token => {
204
204
  }
205
205
  };
206
206
 
207
- /**
208
- * Debug function to check all auth-related storage
207
+ /**
208
+ * Debug function to check all auth-related storage
209
209
  */
210
210
  export const debugAuthStorage = async () => {
211
211
  console.log('🔍 [AUTH STORAGE DEBUG] Checking all auth-related storage:');
@@ -225,8 +225,8 @@ export const debugAuthStorage = async () => {
225
225
  }
226
226
  };
227
227
 
228
- /**
229
- * Clear all auth tokens and start fresh
228
+ /**
229
+ * Clear all auth tokens and start fresh
230
230
  */
231
231
  export const clearAllAuthTokens = async () => {
232
232
  console.log('🧹 [AUTH] Clearing all auth tokens...');
@@ -237,9 +237,9 @@ export const clearAllAuthTokens = async () => {
237
237
  console.log('✅ [AUTH] All auth tokens and data cleared');
238
238
  };
239
239
 
240
- /**
241
- * Get saved authentication token
242
- * @returns Saved JWT token or null if not found
240
+ /**
241
+ * Get saved authentication token
242
+ * @returns Saved JWT token or null if not found
243
243
  */
244
244
  export const getAuthToken = async () => {
245
245
  try {
@@ -256,8 +256,8 @@ export const getAuthToken = async () => {
256
256
  }
257
257
  };
258
258
 
259
- /**
260
- * Remove authentication token (logout)
259
+ /**
260
+ * Remove authentication token (logout)
261
261
  */
262
262
  export const removeAuthToken = async () => {
263
263
  try {
@@ -267,9 +267,9 @@ export const removeAuthToken = async () => {
267
267
  }
268
268
  };
269
269
 
270
- /**
271
- * Validate if user is properly authenticated
272
- * @returns boolean indicating if user has valid authentication
270
+ /**
271
+ * Validate if user is properly authenticated
272
+ * @returns boolean indicating if user has valid authentication
273
273
  */
274
274
  export const isAuthenticated = async () => {
275
275
  try {
@@ -281,10 +281,10 @@ export const isAuthenticated = async () => {
281
281
  }
282
282
  };
283
283
 
284
- /**
285
- * Ensure authentication is available before making API calls
286
- * @param apiName - Name of the API being called (for logging)
287
- * @returns boolean indicating if authentication is available
284
+ /**
285
+ * Ensure authentication is available before making API calls
286
+ * @param apiName - Name of the API being called (for logging)
287
+ * @returns boolean indicating if authentication is available
288
288
  */
289
289
  export const ensureAuthentication = async apiName => {
290
290
  const isAuth = await isAuthenticated();
@@ -300,9 +300,9 @@ export const ensureAuthentication = async apiName => {
300
300
  // SDK now uses a single simplified token. Enoch-specific token management
301
301
  // should be handled by the consuming app if needed.
302
302
 
303
- /**
304
- * Verify token with backend
305
- * @returns Boolean indicating if token is valid
303
+ /**
304
+ * Verify token with backend
305
+ * @returns Boolean indicating if token is valid
306
306
  */
307
307
  export const verifyToken = async () => {
308
308
  try {
@@ -339,10 +339,10 @@ export const verifyToken = async () => {
339
339
  // NOTE: getEventTimer has been removed from SDK - it's Enoch-specific.
340
340
  // Consuming apps (like OnairosEvents) should call /enoch/event/timer directly.
341
341
 
342
- /**
343
- * Check if a user email has admin privileges
344
- * @param email User email to check
345
- * @returns True if user is an admin
342
+ /**
343
+ * Check if a user email has admin privileges
344
+ * @param email User email to check
345
+ * @returns True if user is an admin
346
346
  */
347
347
  export const isAdminEmail = email => {
348
348
  if (!email) {
@@ -359,9 +359,9 @@ export const isAdminEmail = email => {
359
359
  return isAdmin;
360
360
  };
361
361
 
362
- /**
363
- * Get the current admin status from AsyncStorage
364
- * This could be used for caching admin status between sessions
362
+ /**
363
+ * Get the current admin status from AsyncStorage
364
+ * This could be used for caching admin status between sessions
365
365
  */
366
366
  export const getAdminStatus = async () => {
367
367
  try {
@@ -373,9 +373,9 @@ export const getAdminStatus = async () => {
373
373
  }
374
374
  };
375
375
 
376
- /**
377
- * Save admin status to AsyncStorage
378
- * @param isAdmin Whether the user is an admin
376
+ /**
377
+ * Save admin status to AsyncStorage
378
+ * @param isAdmin Whether the user is an admin
379
379
  */
380
380
  export const saveAdminStatus = async isAdmin => {
381
381
  try {
@@ -385,10 +385,10 @@ export const saveAdminStatus = async isAdmin => {
385
385
  }
386
386
  };
387
387
 
388
- /**
389
- * Get stored Onairos username for API calls
390
- * This is used for data connector APIs (Reddit, etc.) that need the username
391
- * @returns Stored username or null if not found
388
+ /**
389
+ * Get stored Onairos username for API calls
390
+ * This is used for data connector APIs (Reddit, etc.) that need the username
391
+ * @returns Stored username or null if not found
392
392
  */
393
393
  export const getOnairosUsername = async () => {
394
394
  try {
@@ -399,9 +399,9 @@ export const getOnairosUsername = async () => {
399
399
  }
400
400
  };
401
401
 
402
- /**
403
- * Save Onairos username for API calls
404
- * @param username Username to store
402
+ /**
403
+ * Save Onairos username for API calls
404
+ * @param username Username to store
405
405
  */
406
406
  export const saveOnairosUsername = async username => {
407
407
  try {
@@ -411,10 +411,10 @@ export const saveOnairosUsername = async username => {
411
411
  }
412
412
  };
413
413
 
414
- /**
415
- * Send email verification code
416
- * @param email Email address to send verification code to
417
- * @returns Result with success status and optional message
414
+ /**
415
+ * Send email verification code
416
+ * @param email Email address to send verification code to
417
+ * @returns Result with success status and optional message
418
418
  */
419
419
  export const sendEmailVerificationCode = async email => {
420
420
  const url = `${API_BASE_URL}/email/verification`;
@@ -494,13 +494,13 @@ export const sendEmailVerificationCode = async email => {
494
494
  };
495
495
  };
496
496
 
497
- /**
498
- * Confirm email verification code
499
- * NOTE: This is generic SDK email verification - does NOT create EnochUser
500
- * Consuming apps should call /enoch/users/register after this if needed
501
- * @param email Email address that received the code
502
- * @param code Verification code entered by user
503
- * @returns Result with success status, optional token, and message
497
+ /**
498
+ * Confirm email verification code
499
+ * NOTE: This is generic SDK email verification - does NOT create EnochUser
500
+ * Consuming apps should call /enoch/users/register after this if needed
501
+ * @param email Email address that received the code
502
+ * @param code Verification code entered by user
503
+ * @returns Result with success status, optional token, and message
504
504
  */
505
505
  export const confirmEmailVerificationCode = async (email, code) => {
506
506
  console.log('🔍 [CODE VERIFY] Verifying code for:', email);
@@ -1 +1 @@
1
- import*as Keychain from'react-native-keychain';function _0x501e(){const _0x46dd75=['OnairosEventsPIN','user_pin','📱\x20Biometric\x20support:','getSupportedBiometryType','log','PFHyK','BIOMETRY_TYPE','mGOKX','TOUCH_ID','ISyxb','FINGERPRINT','FACE','IRIS','error','❌\x20Error\x20checking\x20biometric\x20availability:','UserCancel','BiometryNotAvailable','âš ī¸\x20No\x20PIN\x20found\x20in\x20secure\x20storage','🔐\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','DukzX','ios','Cancel','android','Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','✅\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','🔍\x20Keychain\x20storage\x20result:','eVLVt','❌\x20Face\x20ID\x20authentication\x20failed:','👤\x20User\x20cancelled\x20Face\x20ID\x20authentication','AuthenticationFailed','tBSwJ','🔒\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','WLqCf','wuPtk','Xtfrb','❌\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','📱\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ACCESS_CONTROL','BIOMETRY_CURRENT_SET','AUTHENTICATION_TYPE','BIOMETRICS','JgwpT','kirUs','RbEUu','bYJQK','rTAMM','setGenericPassword','srMXk','dozRP','MUPvA','pzkzm','iDrjC','❌\x20Error\x20details:','message','domain','userInfo','FAoUQ','mhiWB','seBYc','fqyrc','NMCtB','Sfchg','TdQeJ','IZToL','includes','code','PfHea','VZzVJ','❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','JYVTe','👤\x20User\x20cancelled\x20biometric\x20authentication','nZIwp','qBKMY','gSIng','sslql','lhVir','acGXJ','đŸšĢ\x20Face\x20ID\x20authentication\x20failed','password','KJIHt','noZNo','icyQT','BiometryLockout','uNFpd','dpHdq','❌\x20Unknown\x20Face\x20ID\x20error:','ULbNm','🔓\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','QuTmR','RBryp','📱\x20Biometric\x20not\x20available','IOLcT','vNZjg','maglK','getGenericPassword','✅\x20PIN\x20retrieved\x20successfully','MJZkd','tNOxr','vJUmq','SyqCA','whsgg','yRjZn','Khqwa','pcymv','umEos','vAXZK','tQthe','❌\x20Error\x20checking\x20PIN\x20storage:','VYFQd','✅\x20PIN\x20removed\x20successfully','❌\x20Error\x20removing\x20PIN\x20from\x20storage:','SIHeL','resetGenericPassword','ujlHn','wNAmT','zQhwW','TaCzj'];_0x501e=function(){return _0x46dd75;};return _0x501e();}import{Platform}from'react-native';const PIN_SERVICE_KEY=_0x520e(0x0),PIN_USERNAME=_0x520e(0x1);export const isBiometricAvailable=async()=>{const _0x4e219b={'PFHyK':_0x520e(0x2),'mGOKX':function(_0x591ac8,_0x17034f){return _0x591ac8===_0x17034f;},'ISyxb':function(_0x454423,_0x136dcd){return _0x454423===_0x136dcd;}};try{const _0x119540=await Keychain[_0x520e(0x3)]();return console[_0x520e(0x4)](_0x4e219b[_0x520e(0x5)],_0x119540),_0x119540===Keychain[_0x520e(0x6)]['FACE_ID']||_0x4e219b[_0x520e(0x7)](_0x119540,Keychain['BIOMETRY_TYPE'][_0x520e(0x8)])||_0x4e219b[_0x520e(0x9)](_0x119540,Keychain[_0x520e(0x6)][_0x520e(0xa)])||_0x4e219b[_0x520e(0x9)](_0x119540,Keychain['BIOMETRY_TYPE'][_0x520e(0xb)])||_0x4e219b['mGOKX'](_0x119540,Keychain['BIOMETRY_TYPE'][_0x520e(0xc)]);}catch(_0x3fa537){return console[_0x520e(0xd)](_0x520e(0xe),_0x3fa537),![];}};export const storePinWithBiometric=async _0x5084b0=>{const _0x35cd9c={'XcWqQ':'❌\x20Error\x20removing\x20PIN\x20from\x20storage:','lgWwt':function(_0x332d88,_0x521452){return _0x332d88!==_0x521452;},'JYVTe':function(_0x44757e,_0x1e6425){return _0x44757e!==_0x1e6425;},'seBYc':_0x520e(0xf),'PfHea':function(_0x2e84cf,_0x362573){return _0x2e84cf!==_0x362573;},'nZIwp':_0x520e(0x10),'dOMJY':'📱\x20Biometric\x20not\x20available','HVhzK':_0x520e(0x11),'dtXzL':_0x520e(0x12),'WLqCf':function(_0x2a20dd){return _0x2a20dd();},'fqyrc':function(_0x358e3b,_0x4c59aa){return _0x358e3b===_0x4c59aa;},'wuPtk':'axdYY','Xtfrb':_0x520e(0x13),'JgwpT':_0x520e(0x14),'kirUs':'Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','RbEUu':_0x520e(0x15),'bYJQK':_0x520e(0x16),'rTAMM':_0x520e(0x17),'TjXJB':'👤\x20Requesting\x20Face\x20ID\x20authentication...','srMXk':_0x520e(0x18),'dozRP':_0x520e(0x19),'MUPvA':function(_0x15c01f,_0xdf1b17){return _0x15c01f===_0xdf1b17;},'pzkzm':_0x520e(0x1a),'iDrjC':_0x520e(0x1b),'FAoUQ':function(_0x40dc54,_0x1e6695){return _0x40dc54!==_0x1e6695;},'mhiWB':function(_0x1473b0,_0x3fd367){return _0x1473b0!==_0x3fd367;},'NMCtB':function(_0x36cfd6,_0x33a899){return _0x36cfd6===_0x33a899;},'Sfchg':_0x520e(0x1c),'TdQeJ':function(_0x203b41,_0x56b17a){return _0x203b41!==_0x56b17a;},'IZToL':function(_0x403232,_0x10cd55){return _0x403232!==_0x10cd55;},'acGXJ':function(_0x3df3fb,_0x3b8926){return _0x3df3fb===_0x3b8926;},'qBKMY':'📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','gSIng':function(_0xbe9d37,_0x5452a3){return _0xbe9d37!==_0x5452a3;},'EeUAL':function(_0xbd738a,_0x27840d){return _0xbd738a!==_0x27840d;},'sslql':_0x520e(0x1d),'lhVir':function(_0x274ec0,_0x1300b0){return _0x274ec0===_0x1300b0;},'TdwDL':_0x520e(0x1e),'KJIHt':function(_0x1caa82,_0x26cc73){return _0x1caa82!==_0x26cc73;},'noZNo':function(_0x29cd87,_0x324735){return _0x29cd87!==_0x324735;},'icyQT':function(_0x4cbafb,_0x38de29){return _0x4cbafb!==_0x38de29;},'uNFpd':function(_0x139f5a,_0x11bccb){return _0x139f5a===_0x11bccb;},'dpHdq':_0x520e(0x1f)};try{console[_0x520e(0x4)](_0x35cd9c['dtXzL']);const _0x559289=await _0x35cd9c[_0x520e(0x20)](isBiometricAvailable);if(!_0x559289)return _0x35cd9c['fqyrc'](_0x35cd9c[_0x520e(0x21)],_0x35cd9c[_0x520e(0x22)])?(_0x2e8c6b[_0x520e(0xd)](_0x35cd9c['XcWqQ'],_0x22422f),![]):(console[_0x520e(0xd)](_0x520e(0x23)),![]);console[_0x520e(0x4)](_0x520e(0x24));const _0x5d4029={'accessControl':Keychain[_0x520e(0x25)][_0x520e(0x26)],'authenticationType':Keychain[_0x520e(0x27)][_0x520e(0x28)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',...Platform['OS']===_0x35cd9c[_0x520e(0x29)]&&{'localizedPrompt':_0x35cd9c[_0x520e(0x2a)],'localizedCancel':_0x35cd9c[_0x520e(0x2b)]},...Platform['OS']===_0x35cd9c[_0x520e(0x2c)]&&{'promptMessage':_0x35cd9c[_0x520e(0x2d)],'cancelButtonText':_0x35cd9c[_0x520e(0x2b)]}};console['log'](_0x35cd9c['TjXJB']);const _0x5143cc=await Keychain[_0x520e(0x2e)](PIN_USERNAME,_0x5084b0,{'service':PIN_SERVICE_KEY,..._0x5d4029});return console[_0x520e(0x4)](_0x35cd9c[_0x520e(0x2f)]),console['log'](_0x35cd9c[_0x520e(0x30)],_0x5143cc),!![];}catch(_0x36fe2c){if(_0x35cd9c[_0x520e(0x31)](_0x35cd9c['pzkzm'],_0x35cd9c[_0x520e(0x32)])){var _0x3b7628,_0x2d12be,_0x5c1c4f,_0x4cd63b;console[_0x520e(0xd)](_0x35cd9c[_0x520e(0x33)],_0x36fe2c),console['error'](_0x520e(0x34),{'message':_0x36fe2c[_0x520e(0x35)],'code':_0x36fe2c['code'],'domain':_0x36fe2c[_0x520e(0x36)],'userInfo':_0x36fe2c[_0x520e(0x37)]});if(_0x35cd9c['PfHea'](_0x36fe2c,null)&&_0x35cd9c[_0x520e(0x38)](_0x36fe2c,void 0x0)&&_0x35cd9c[_0x520e(0x39)](_0x3b7628=_0x36fe2c[_0x520e(0x35)],null)&&_0x3b7628!==void 0x0&&_0x3b7628['includes'](_0x35cd9c[_0x520e(0x3a)])||(_0x35cd9c[_0x520e(0x3b)](_0x36fe2c,null)||_0x35cd9c[_0x520e(0x3c)](_0x36fe2c,void 0x0)?void 0x0:_0x36fe2c['code'])===-0x80)return console['log'](_0x35cd9c[_0x520e(0x3d)]),![];else{if(_0x35cd9c['lgWwt'](_0x36fe2c,null)&&_0x35cd9c[_0x520e(0x3e)](_0x36fe2c,void 0x0)&&(_0x2d12be=_0x36fe2c['message'])!==null&&_0x35cd9c[_0x520e(0x3f)](_0x2d12be,void 0x0)&&_0x2d12be[_0x520e(0x40)](_0x35cd9c['nZIwp'])||_0x35cd9c[_0x520e(0x3b)](_0x35cd9c[_0x520e(0x31)](_0x36fe2c,null)||_0x35cd9c['acGXJ'](_0x36fe2c,void 0x0)?void 0x0:_0x36fe2c[_0x520e(0x41)],-0x6)){if(_0x35cd9c[_0x520e(0x42)](_0x520e(0x43),_0x520e(0x43))){var _0x1d15c2,_0x4b1f89;_0xf969b3[_0x520e(0xd)](_0x520e(0x44),_0x119858);if(_0x35cd9c['lgWwt'](_0x44ec0,null)&&_0x35cd9c[_0x520e(0x45)](_0x4cb3be,void 0x0)&&(_0x1d15c2=_0xacbcb0['message'])!==null&&_0x35cd9c[_0x520e(0x45)](_0x1d15c2,void 0x0)&&_0x1d15c2[_0x520e(0x40)](_0x35cd9c[_0x520e(0x3a)]))return _0x2c618c[_0x520e(0x4)](_0x520e(0x46)),null;else{if(_0x35cd9c[_0x520e(0x42)](_0xa28f27,null)&&_0xe75ab2!==void 0x0&&(_0x4b1f89=_0x57adb7['message'])!==null&&_0x4b1f89!==void 0x0&&_0x4b1f89[_0x520e(0x40)](_0x35cd9c[_0x520e(0x47)]))return _0x10cc7e[_0x520e(0x4)](_0x35cd9c['dOMJY']),null;}return null;}else return console[_0x520e(0x4)](_0x35cd9c[_0x520e(0x48)]),![];}else{if(_0x35cd9c[_0x520e(0x49)](_0x36fe2c,null)&&_0x35cd9c[_0x520e(0x45)](_0x36fe2c,void 0x0)&&_0x35cd9c[_0x520e(0x39)](_0x5c1c4f=_0x36fe2c[_0x520e(0x35)],null)&&_0x35cd9c['EeUAL'](_0x5c1c4f,void 0x0)&&_0x5c1c4f['includes'](_0x35cd9c[_0x520e(0x4a)])||_0x35cd9c[_0x520e(0x4b)](_0x35cd9c[_0x520e(0x4c)](_0x36fe2c,null)||_0x35cd9c[_0x520e(0x3c)](_0x36fe2c,void 0x0)?void 0x0:_0x36fe2c['code'],-0x1))return _0x35cd9c['JYVTe'](_0x35cd9c['TdwDL'],'GszKk')?(console[_0x520e(0x4)](_0x520e(0x4d)),![]):(_0x30456a[_0x520e(0x4)]('✅\x20PIN\x20retrieved\x20successfully'),_0x3320fd[_0x520e(0x4e)]);else{if(_0x35cd9c[_0x520e(0x42)](_0x36fe2c,null)&&_0x35cd9c[_0x520e(0x4f)](_0x36fe2c,void 0x0)&&_0x35cd9c[_0x520e(0x50)](_0x4cd63b=_0x36fe2c[_0x520e(0x35)],null)&&_0x35cd9c[_0x520e(0x51)](_0x4cd63b,void 0x0)&&_0x4cd63b['includes'](_0x520e(0x52))||(_0x36fe2c===null||_0x35cd9c[_0x520e(0x53)](_0x36fe2c,void 0x0)?void 0x0:_0x36fe2c[_0x520e(0x41)])===-0x8)return console[_0x520e(0x4)](_0x35cd9c[_0x520e(0x54)]),![];}}}return console[_0x520e(0xd)](_0x520e(0x55),_0x36fe2c['message']),![];}else return _0x2c35d7[_0x520e(0x4)](_0x35cd9c['HVhzK']),null;}};function _0x520e(_0x501e76,_0x520e64){_0x501e76=_0x501e76-0x0;const _0x547ab5=_0x501e();let _0x2ecc41=_0x547ab5[_0x501e76];return _0x2ecc41;}export const retrievePinWithBiometric=async()=>{const _0x241337={'maglK':_0x520e(0x1f),'vJUmq':'👤\x20User\x20cancelled\x20biometric\x20authentication','IOLcT':function(_0x33b331,_0x485176){return _0x33b331!==_0x485176;},'vNZjg':_0x520e(0x56),'MPHYN':_0x520e(0x57),'MJZkd':function(_0x4cd562,_0x3b0227){return _0x4cd562===_0x3b0227;},'Oaggn':_0x520e(0x58),'tNOxr':_0x520e(0x11),'lhSXI':_0x520e(0x44),'pcymv':function(_0x435fda,_0x4e0530){return _0x435fda!==_0x4e0530;},'SyqCA':function(_0x3bf83e,_0x32dfe7){return _0x3bf83e!==_0x32dfe7;},'whsgg':function(_0x57a4b9,_0x20dae1){return _0x57a4b9!==_0x20dae1;},'yRjZn':'UserCancel','Khqwa':_0x520e(0x59),'umEos':function(_0x48e61d,_0x2b366a){return _0x48e61d!==_0x2b366a;},'qkWLJ':_0x520e(0x10),'xuBuz':_0x520e(0x5a)};try{if(_0x241337[_0x520e(0x5b)](_0x241337[_0x520e(0x5c)],_0x241337[_0x520e(0x5c)]))return _0x3524f8[_0x520e(0x4)](_0x241337[_0x520e(0x5d)]),![];else{console[_0x520e(0x4)](_0x241337['MPHYN']);const _0x566d1e=await Keychain[_0x520e(0x5e)]({'service':PIN_SERVICE_KEY});return _0x566d1e&&_0x566d1e[_0x520e(0x4e)]?(console[_0x520e(0x4)](_0x520e(0x5f)),_0x566d1e[_0x520e(0x4e)]):_0x241337[_0x520e(0x60)](_0x520e(0x58),_0x241337['Oaggn'])?(console[_0x520e(0x4)](_0x241337[_0x520e(0x61)]),null):(_0x3655bb[_0x520e(0x4)](_0x241337[_0x520e(0x62)]),null);}}catch(_0x37dfa7){var _0x381a6,_0x1a50a2;console['error'](_0x241337['lhSXI'],_0x37dfa7);if(_0x241337['pcymv'](_0x37dfa7,null)&&_0x241337[_0x520e(0x63)](_0x37dfa7,void 0x0)&&_0x241337[_0x520e(0x64)](_0x381a6=_0x37dfa7[_0x520e(0x35)],null)&&_0x241337[_0x520e(0x63)](_0x381a6,void 0x0)&&_0x381a6[_0x520e(0x40)](_0x241337[_0x520e(0x65)]))return _0x241337[_0x520e(0x66)]===_0x241337[_0x520e(0x66)]?(console['log'](_0x241337[_0x520e(0x62)]),null):(_0x51dd89[_0x520e(0xd)]('❌\x20Error\x20checking\x20PIN\x20storage:',_0x357d21),![]);else{if(_0x241337[_0x520e(0x67)](_0x37dfa7,null)&&_0x241337[_0x520e(0x64)](_0x37dfa7,void 0x0)&&_0x241337[_0x520e(0x68)](_0x1a50a2=_0x37dfa7[_0x520e(0x35)],null)&&_0x1a50a2!==void 0x0&&_0x1a50a2[_0x520e(0x40)](_0x241337['qkWLJ']))return console[_0x520e(0x4)](_0x241337['xuBuz']),null;}return null;}};export const isPinStored=async()=>{const _0x514315={'VYFQd':_0x520e(0x1c),'OgYkM':function(_0x419c08,_0x536263){return _0x419c08===_0x536263;},'tQthe':_0x520e(0x69)};try{const _0x27756c=await Keychain[_0x520e(0x5e)]({'service':PIN_SERVICE_KEY});return!!(_0x27756c&&_0x27756c[_0x520e(0x4e)]);}catch(_0x219ed3){return _0x514315['OgYkM'](_0x520e(0x69),_0x514315[_0x520e(0x6a)])?(console[_0x520e(0xd)](_0x520e(0x6b),_0x219ed3),![]):(_0x94d6d3[_0x520e(0x4)](_0x514315[_0x520e(0x6c)]),![]);}};export const removePinFromStorage=async()=>{const _0x3ab496={'IpcZR':_0x520e(0x4d),'SIHeL':'đŸ—‘ī¸\x20Removing\x20PIN\x20from\x20secure\x20storage...','ujlHn':_0x520e(0x6d),'wNAmT':function(_0x58af75,_0x310387){return _0x58af75!==_0x310387;},'TaCzj':_0x520e(0x6e)};try{return console[_0x520e(0x4)](_0x3ab496[_0x520e(0x6f)]),await Keychain[_0x520e(0x70)]({'service':PIN_SERVICE_KEY}),console[_0x520e(0x4)](_0x3ab496[_0x520e(0x71)]),!![];}catch(_0x52f3cf){return _0x3ab496[_0x520e(0x72)]('RTmeY',_0x520e(0x73))?(console[_0x520e(0xd)](_0x3ab496[_0x520e(0x74)],_0x52f3cf),![]):(_0x124d7f[_0x520e(0x4)](_0x3ab496['IpcZR']),![]);}};export const biometricPinService={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
1
+ import*as Keychain from'react-native-keychain';import{Platform}from'react-native';const PIN_SERVICE_KEY=_0x1910(0x0),PIN_USERNAME=_0x1910(0x1);export const isBiometricAvailable=async()=>{const _0x4e5165={'SlHep':_0x1910(0x2),'CEDCh':function(_0x44cd3c,_0x297ec6){return _0x44cd3c===_0x297ec6;},'yoTAe':function(_0x2ab40f,_0xbfce09){return _0x2ab40f===_0xbfce09;},'dkxTo':function(_0x1a989e,_0x3b4ee1){return _0x1a989e===_0x3b4ee1;},'QmVQR':_0x1910(0x3)};try{const _0x418ffb=await Keychain[_0x1910(0x4)]();return console['log'](_0x4e5165[_0x1910(0x5)],_0x418ffb),_0x4e5165[_0x1910(0x6)](_0x418ffb,Keychain[_0x1910(0x7)][_0x1910(0x8)])||_0x4e5165[_0x1910(0x9)](_0x418ffb,Keychain[_0x1910(0x7)][_0x1910(0xa)])||_0x4e5165[_0x1910(0x9)](_0x418ffb,Keychain[_0x1910(0x7)]['FINGERPRINT'])||_0x4e5165['CEDCh'](_0x418ffb,Keychain['BIOMETRY_TYPE']['FACE'])||_0x4e5165['dkxTo'](_0x418ffb,Keychain[_0x1910(0x7)][_0x1910(0xb)]);}catch(_0x3d124b){return console[_0x1910(0xc)](_0x4e5165[_0x1910(0xd)],_0x3d124b),![];}};function _0x1910(_0x3721d8,_0x1910b5){_0x3721d8=_0x3721d8-0x0;const _0x2a5527=_0x3721();let _0x130c1b=_0x2a5527[_0x3721d8];return _0x130c1b;}export const storePinWithBiometric=async _0x3eef7f=>{const _0x344230={'dZxMO':_0x1910(0xe),'NGnIx':_0x1910(0xf),'kWuEc':_0x1910(0x3),'PTPPz':function(_0x50302f,_0x3033ac){return _0x50302f===_0x3033ac;},'znjyf':_0x1910(0x10),'skZMc':function(_0x3efc25){return _0x3efc25();},'aPztH':_0x1910(0x11),'GoPao':_0x1910(0x12),'VpFZr':_0x1910(0x13),'EMKDj':function(_0x44f3bb,_0xbde234){return _0x44f3bb===_0xbde234;},'Nbmxn':'Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','FtlpP':'Cancel','FYkYn':_0x1910(0x14),'SlLSF':_0x1910(0x15),'wkwyL':'❌\x20Error\x20details:','ZkFax':function(_0x3caf6f,_0x477b58){return _0x3caf6f!==_0x477b58;},'rcSaT':function(_0xba99ed,_0x1eb9a9){return _0xba99ed!==_0x1eb9a9;},'nzMAn':_0x1910(0x16),'jGJGg':function(_0xc5c6f9,_0x1e77d5){return _0xc5c6f9===_0x1e77d5;},'Dmhpu':function(_0x46cd89,_0x349b2e){return _0x46cd89===_0x349b2e;},'GtMmQ':'👤\x20User\x20cancelled\x20Face\x20ID\x20authentication','aXNxB':function(_0x3f105b,_0x321abd){return _0x3f105b!==_0x321abd;},'glLVq':function(_0x38da69,_0x5d2a7e){return _0x38da69===_0x5d2a7e;},'qzbSx':function(_0x4b10bb,_0x573bab){return _0x4b10bb===_0x573bab;},'iWNYh':function(_0xbee361,_0x682686){return _0xbee361!==_0x682686;},'cLsBs':_0x1910(0x17),'VrrDW':function(_0x2d5ed0,_0x274a8d){return _0x2d5ed0===_0x274a8d;},'pRRjJ':function(_0x29464c,_0x44f6b8){return _0x29464c===_0x44f6b8;},'qYWNx':_0x1910(0x18),'SlCXO':_0x1910(0x19),'tUPcH':function(_0x343b8e,_0x202eb0){return _0x343b8e!==_0x202eb0;},'ngtmr':function(_0x48aa3e,_0x5a9973){return _0x48aa3e!==_0x5a9973;}};try{if(_0x344230['PTPPz'](_0x344230[_0x1910(0x1a)],_0x344230[_0x1910(0x1a)])){console[_0x1910(0x1b)]('🔐\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...');const _0x2b4f33=await _0x344230[_0x1910(0x1c)](isBiometricAvailable);if(!_0x2b4f33)return _0x344230[_0x1910(0x1d)]===_0x344230[_0x1910(0x1d)]?(console['error'](_0x344230[_0x1910(0x1e)]),![]):(_0x195ab4[_0x1910(0x1b)](_0x344230[_0x1910(0x1f)]),![]);console[_0x1910(0x1b)](_0x344230[_0x1910(0x20)]);const _0x3be160={'accessControl':Keychain[_0x1910(0x21)]['BIOMETRY_CURRENT_SET'],'authenticationType':Keychain[_0x1910(0x22)][_0x1910(0x23)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._0x344230[_0x1910(0x24)](Platform['OS'],'ios')&&{'localizedPrompt':_0x344230[_0x1910(0x25)],'localizedCancel':_0x344230[_0x1910(0x26)]},..._0x344230['PTPPz'](Platform['OS'],_0x1910(0x27))&&{'promptMessage':_0x344230['FYkYn'],'cancelButtonText':_0x344230['FtlpP']}};console['log'](_0x1910(0x28));const _0x46fd97=await Keychain[_0x1910(0x29)](PIN_USERNAME,_0x3eef7f,{'service':PIN_SERVICE_KEY,..._0x3be160});return console['log'](_0x1910(0x2a)),console[_0x1910(0x1b)](_0x344230[_0x1910(0x2b)],_0x46fd97),!![];}else return _0x265a56[_0x1910(0x1b)](_0x344230['NGnIx']),![];}catch(_0x45882c){var _0x4f0111,_0x608af4,_0x199f8b,_0x2d034c;console[_0x1910(0xc)](_0x1910(0x2c),_0x45882c),console['error'](_0x344230[_0x1910(0x2d)],{'message':_0x45882c[_0x1910(0x2e)],'code':_0x45882c[_0x1910(0x2f)],'domain':_0x45882c[_0x1910(0x30)],'userInfo':_0x45882c[_0x1910(0x31)]});if(_0x344230[_0x1910(0x32)](_0x45882c,null)&&_0x344230['ZkFax'](_0x45882c,void 0x0)&&_0x344230[_0x1910(0x33)](_0x4f0111=_0x45882c['message'],null)&&_0x4f0111!==void 0x0&&_0x4f0111[_0x1910(0x34)](_0x344230['nzMAn'])||_0x344230['PTPPz'](_0x344230[_0x1910(0x35)](_0x45882c,null)||_0x344230['Dmhpu'](_0x45882c,void 0x0)?void 0x0:_0x45882c[_0x1910(0x2f)],-0x80))return console[_0x1910(0x1b)](_0x344230[_0x1910(0x36)]),![];else{if(_0x45882c!==null&&_0x344230['ZkFax'](_0x45882c,void 0x0)&&_0x344230[_0x1910(0x32)](_0x608af4=_0x45882c['message'],null)&&_0x344230[_0x1910(0x37)](_0x608af4,void 0x0)&&_0x608af4[_0x1910(0x34)](_0x1910(0x38))||_0x344230[_0x1910(0x35)](_0x344230[_0x1910(0x39)](_0x45882c,null)||_0x344230['qzbSx'](_0x45882c,void 0x0)?void 0x0:_0x45882c[_0x1910(0x2f)],-0x6))return console[_0x1910(0x1b)](_0x344230['dZxMO']),![];else{if(_0x45882c!==null&&_0x344230[_0x1910(0x3a)](_0x45882c,void 0x0)&&(_0x199f8b=_0x45882c[_0x1910(0x2e)])!==null&&_0x344230[_0x1910(0x32)](_0x199f8b,void 0x0)&&_0x199f8b[_0x1910(0x34)](_0x344230[_0x1910(0x3b)])||_0x344230[_0x1910(0x3c)](_0x344230['pRRjJ'](_0x45882c,null)||_0x45882c===void 0x0?void 0x0:_0x45882c[_0x1910(0x2f)],-0x1))return _0x344230[_0x1910(0x37)](_0x344230[_0x1910(0x3d)],_0x344230[_0x1910(0x3d)])?(_0x353d2a[_0x1910(0xc)](_0x344230['kWuEc'],_0x480e9f),![]):(console['log'](_0x344230[_0x1910(0x3e)]),![]);else{if(_0x344230[_0x1910(0x3f)](_0x45882c,null)&&_0x344230[_0x1910(0x40)](_0x45882c,void 0x0)&&_0x344230[_0x1910(0x32)](_0x2d034c=_0x45882c[_0x1910(0x2e)],null)&&_0x2d034c!==void 0x0&&_0x2d034c[_0x1910(0x34)]('BiometryLockout')||(_0x45882c===null||_0x344230[_0x1910(0x41)](_0x45882c,void 0x0)?void 0x0:_0x45882c['code'])===-0x8)return console['log'](_0x344230['NGnIx']),![];}}}return console[_0x1910(0xc)](_0x1910(0x42),_0x45882c[_0x1910(0x2e)]),![];}};export const retrievePinWithBiometric=async()=>{const _0x4c2170={'Qhmhs':_0x1910(0x43),'xdMKy':_0x1910(0x44),'uvuDA':'✅\x20PIN\x20retrieved\x20successfully','ufKQG':function(_0x5e8323,_0x3e71bb){return _0x5e8323!==_0x3e71bb;},'hNCFv':function(_0x45dc89,_0x22d744){return _0x45dc89!==_0x22d744;},'UlpCJ':_0x1910(0x16),'botHu':_0x1910(0x45),'mFzmM':function(_0x1b30a4,_0x492111){return _0x1b30a4!==_0x492111;},'FLpUF':function(_0x4bfb81,_0x504397){return _0x4bfb81!==_0x504397;},'muyDa':function(_0x582b13,_0xae94){return _0x582b13!==_0xae94;},'pbbRM':_0x1910(0x38),'aVpia':_0x1910(0x46)};try{console[_0x1910(0x1b)](_0x1910(0x47));const _0x2befe6=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});return _0x2befe6&&_0x2befe6[_0x1910(0x48)]?_0x4c2170[_0x1910(0x49)]===_0x1910(0x4a)?(_0x52ebf0[_0x1910(0x1b)](_0x4c2170[_0x1910(0x4b)]),![]):(console['log'](_0x4c2170[_0x1910(0x4c)]),_0x2befe6['password']):(console[_0x1910(0x1b)](_0x1910(0x4d)),null);}catch(_0x1e1a1f){var _0x5d79c3,_0x16a48e;console['error'](_0x1910(0x4e),_0x1e1a1f);if(_0x1e1a1f!==null&&_0x4c2170[_0x1910(0x4f)](_0x1e1a1f,void 0x0)&&_0x4c2170['ufKQG'](_0x5d79c3=_0x1e1a1f[_0x1910(0x2e)],null)&&_0x4c2170['hNCFv'](_0x5d79c3,void 0x0)&&_0x5d79c3[_0x1910(0x34)](_0x4c2170['UlpCJ']))return console[_0x1910(0x1b)](_0x4c2170['botHu']),null;else{if(_0x4c2170[_0x1910(0x50)](_0x1e1a1f,null)&&_0x4c2170[_0x1910(0x50)](_0x1e1a1f,void 0x0)&&_0x4c2170['FLpUF'](_0x16a48e=_0x1e1a1f[_0x1910(0x2e)],null)&&_0x4c2170['muyDa'](_0x16a48e,void 0x0)&&_0x16a48e[_0x1910(0x34)](_0x4c2170['pbbRM']))return console[_0x1910(0x1b)](_0x4c2170[_0x1910(0x51)]),null;}return null;}};export const isPinStored=async()=>{const _0x2f3492={'OPlFs':_0x1910(0x4e),'eBaDW':function(_0x30e5ba,_0xdcce20){return _0x30e5ba!==_0xdcce20;},'kwQLx':_0x1910(0x45),'puBBs':_0x1910(0x38),'ZxUIb':'📱\x20Biometric\x20not\x20available','XYTeh':function(_0x1ffea0,_0x194a81){return _0x1ffea0===_0x194a81;},'sITnq':'zfJdj','NEiUe':'Ijhlw','KYUGB':_0x1910(0x52)};try{const _0x4a0cc5=await Keychain[_0x1910(0x53)]({'service':PIN_SERVICE_KEY});return!!(_0x4a0cc5&&_0x4a0cc5['password']);}catch(_0x4f0d5c){if(_0x2f3492[_0x1910(0x54)](_0x2f3492[_0x1910(0x55)],_0x2f3492[_0x1910(0x56)])){var _0x38c914,_0x143be9;_0x1cb8dd[_0x1910(0xc)](_0x2f3492['OPlFs'],_0x4a6a8d);if(_0x2f3492['eBaDW'](_0x453a88,null)&&_0x225654!==void 0x0&&_0x2f3492[_0x1910(0x57)](_0x38c914=_0x54e5a1['message'],null)&&_0x38c914!==void 0x0&&_0x38c914['includes'](_0x1910(0x16)))return _0x5de917[_0x1910(0x1b)](_0x2f3492[_0x1910(0x58)]),null;else{if(_0x5ec213!==null&&_0x240363!==void 0x0&&_0x2f3492[_0x1910(0x57)](_0x143be9=_0x44d678[_0x1910(0x2e)],null)&&_0x2f3492[_0x1910(0x57)](_0x143be9,void 0x0)&&_0x143be9[_0x1910(0x34)](_0x2f3492[_0x1910(0x59)]))return _0x2f8dec[_0x1910(0x1b)](_0x2f3492[_0x1910(0x5a)]),null;}return null;}else return console['error'](_0x2f3492[_0x1910(0x5b)],_0x4f0d5c),![];}};export const removePinFromStorage=async()=>{const _0x2288ae={'SGhSu':_0x1910(0x5c),'TrbOv':_0x1910(0x5d),'pjHYL':'đŸ—‘ī¸\x20Removing\x20PIN\x20from\x20secure\x20storage...','krdBS':_0x1910(0x5e),'OyPhA':_0x1910(0x5f)};try{return _0x2288ae[_0x1910(0x60)]===_0x2288ae[_0x1910(0x61)]?(_0x1d8d1d['log'](_0x1910(0x4d)),null):(console[_0x1910(0x1b)](_0x2288ae[_0x1910(0x62)]),await Keychain[_0x1910(0x63)]({'service':PIN_SERVICE_KEY}),console['log'](_0x2288ae['krdBS']),!![]);}catch(_0x2beeec){return console[_0x1910(0xc)](_0x2288ae[_0x1910(0x64)],_0x2beeec),![];}};function _0x3721(){const _0x4f80d0=['OnairosEventsPIN','user_pin','📱\x20Biometric\x20support:','❌\x20Error\x20checking\x20biometric\x20availability:','getSupportedBiometryType','SlHep','CEDCh','BIOMETRY_TYPE','FACE_ID','yoTAe','TOUCH_ID','IRIS','error','QmVQR','📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','🔒\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','hYYkk','hqNrC','❌\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','📱\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','🔍\x20Keychain\x20storage\x20result:','UserCancel','AuthenticationFailed','AYJha','đŸšĢ\x20Face\x20ID\x20authentication\x20failed','znjyf','log','skZMc','aPztH','GoPao','dZxMO','VpFZr','ACCESS_CONTROL','AUTHENTICATION_TYPE','BIOMETRICS','EMKDj','Nbmxn','FtlpP','android','👤\x20Requesting\x20Face\x20ID\x20authentication...','setGenericPassword','✅\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','SlLSF','❌\x20Face\x20ID\x20authentication\x20failed:','wkwyL','message','code','domain','userInfo','ZkFax','rcSaT','includes','jGJGg','GtMmQ','aXNxB','BiometryNotAvailable','glLVq','iWNYh','cLsBs','VrrDW','qYWNx','SlCXO','tUPcH','ngtmr','PTPPz','❌\x20Unknown\x20Face\x20ID\x20error:','👤\x20User\x20cancelled\x20Face\x20ID\x20authentication','AjiZc','👤\x20User\x20cancelled\x20biometric\x20authentication','📱\x20Biometric\x20not\x20available','🔓\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','password','xdMKy','qVEpZ','Qhmhs','uvuDA','âš ī¸\x20No\x20PIN\x20found\x20in\x20secure\x20storage','❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','ufKQG','mFzmM','aVpia','❌\x20Error\x20checking\x20PIN\x20storage:','getGenericPassword','XYTeh','sITnq','NEiUe','eBaDW','kwQLx','puBBs','ZxUIb','KYUGB','hEYEZ','YaCLw','✅\x20PIN\x20removed\x20successfully','❌\x20Error\x20removing\x20PIN\x20from\x20storage:','SGhSu','TrbOv','pjHYL','resetGenericPassword','OyPhA'];_0x3721=function(){return _0x4f80d0;};return _0x3721();}export const biometricPinService={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
@@ -1 +1 @@
1
- function _0xf99a(){const _0x4d471c=['No\x20valid\x20conversations\x20found\x20to\x20export.','default','❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','fBYbm','🚀\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','Error','â„šī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','❌\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:','fmGzs','❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','Jvvfe','WZjXX','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','🧠\x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','â„šī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','yspqL','xJgHW','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','ZXFeP','LGYgf','pMfbG','log','lWqZC','👤\x20[CHATGPT_EXTRACTOR]\x20Username:','📊\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','length','KhYkv','alert','GzRQA','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','mORYm','ZpPLP','warn','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','\x20invalid\x20conversations','conversation_id','title','isArray','user_messages','VkAyR','oLFAT','cSVmN','HkASk','YzDmy','success','Izjqa','data','untot','RyOmW','zHJbp','FbDBG','error','Export\x20Failed','xcsxJ','Data\x20Error','PoLRP','tFHsC','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','ZjfaD','YTQxA','FEsjJ','EVRNT','gJLuO','ZxuHB','memory_entries','mRdOy','memories','📋\x20[CHATGPT_EXTRACTOR]\x20Found\x20','\x20memory\x20items,\x20','fyPeP','DPwah','dJrUh','MZVFH','✅\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully','memoriesCount','📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20','\x20memories','mSrSK','jfyfz','fkiTO','OAGjU','uNwaA'];_0xf99a=function(){return _0x4d471c;};return _0xf99a();}function _0x3a5d(_0xf99a9,_0x3a5dd3){_0xf99a9=_0xf99a9-0x0;const _0x3b7e06=_0xf99a();let _0x3cbd72=_0x3b7e06[_0xf99a9];return _0x3cbd72;}import{storeChatGPTConversations,storeChatGPTMemories}from'./chatGPTConversationService';import{Alert}from'react-native';export const useChatGPTConversationExtractor=()=>{const _0xa7676e={'jbRlJ':function(_0x54f5a0,_0xadf88f){return _0x54f5a0-_0xadf88f;},'untot':function(_0x4a8122,_0x6e0b04){return _0x4a8122!==_0x6e0b04;},'ZpPLP':'SiYco','ZXFeP':function(_0x16c180,_0x2c6abc){return _0x16c180>_0x2c6abc;},'wwaFp':_0x3a5d(0x0),'xcsxJ':_0x3a5d(0x1),'KhYkv':_0x3a5d(0x2),'LGYgf':_0x3a5d(0x3),'VkAyR':function(_0x52a2c6,_0x4cbb1b){return _0x52a2c6===_0x4cbb1b;},'pMfbG':_0x3a5d(0x4),'lWqZC':_0x3a5d(0x5),'GzRQA':_0x3a5d(0x6),'mORYm':function(_0x4a18d1,_0xb0632a){return _0x4a18d1===_0xb0632a;},'FozHk':_0x3a5d(0x7),'oLFAT':_0x3a5d(0x8),'cSVmN':'Data\x20Error','HkASk':function(_0x36ef40,_0x20f168){return _0x36ef40<_0x20f168;},'zOvML':_0x3a5d(0x9),'YzDmy':function(_0x48f746,_0x5e5a83,_0x218704){return _0x48f746(_0x5e5a83,_0x218704);},'Izjqa':_0x3a5d(0xa),'MWZIO':_0x3a5d(0xb),'RyOmW':'FsTna','zHJbp':_0x3a5d(0xc),'FbDBG':_0x3a5d(0xd),'PoLRP':_0x3a5d(0xe),'tFHsC':_0x3a5d(0xf),'ZjfaD':_0x3a5d(0x10),'YTQxA':_0x3a5d(0x11),'ZxuHB':_0x3a5d(0x12),'gJLuO':_0x3a5d(0x13),'mRdOy':function(_0x352e33,_0x51b663){return _0x352e33===_0x51b663;},'xwCau':function(_0x1ef667,_0x2c3160){return _0x1ef667===_0x2c3160;},'gyMKZ':function(_0x9eb220,_0x2680c4){return _0x9eb220===_0x2680c4;},'fyPeP':_0x3a5d(0x14),'DPwah':function(_0x1fee97,_0x42309b){return _0x1fee97!==_0x42309b;},'BVhzM':_0x3a5d(0x15),'MZVFH':function(_0x32d6a2,_0x182488){return _0x32d6a2(_0x182488);},'FdSBx':function(_0x49da84,_0x509377){return _0x49da84!==_0x509377;},'mSrSK':function(_0x354a05,_0x4c8ead){return _0x354a05===_0x4c8ead;},'LMmkb':'jJosh','jfyfz':_0x3a5d(0x16),'fkiTO':function(_0xa3d410,_0x2e6b3b){return _0xa3d410!==_0x2e6b3b;},'OAGjU':_0x3a5d(0x17),'iLNUf':_0x3a5d(0x18),'uNwaA':_0x3a5d(0x19)},_0x2065e9=async(_0x305341,_0x42b681)=>{const _0x5a97df={'FEsjJ':function(_0x570971,_0x2912ce){return _0xa7676e[_0x3a5d(0x1a)](_0x570971,_0x2912ce);},'EVRNT':_0xa7676e[_0x3a5d(0x1b)]};if(_0xa7676e['VkAyR'](_0xa7676e['pMfbG'],_0xa7676e[_0x3a5d(0x1c)])){console[_0x3a5d(0x1d)](_0xa7676e[_0x3a5d(0x1e)]),console['log'](_0x3a5d(0x1f),_0x305341),console[_0x3a5d(0x1d)](_0x3a5d(0x20),_0x42b681[_0x3a5d(0x21)]);if(!_0x305341)return console['error'](_0xa7676e[_0x3a5d(0x22)]),Alert[_0x3a5d(0x23)](_0xa7676e[_0x3a5d(0x24)],_0x3a5d(0x25),[{'text':'OK','style':_0xa7676e['xcsxJ']}]),![];if(!_0x42b681||_0xa7676e[_0x3a5d(0x26)](_0x42b681['length'],0x0))return console[_0x3a5d(0x1d)](_0xa7676e['FozHk']),!![];const _0x50c609=_0x42b681['filter'](_0x2702dc=>{const _0x31a47d={'wafYz':function(_0x363554,_0x424f72){return _0xa7676e['jbRlJ'](_0x363554,_0x424f72);}};if(_0xa7676e['untot'](_0xa7676e[_0x3a5d(0x27)],_0xa7676e[_0x3a5d(0x27)]))_0x300ea7[_0x3a5d(0x28)](_0x3a5d(0x29)+_0x31a47d['wafYz'](_0x234021[_0x3a5d(0x21)],_0x23b969[_0x3a5d(0x21)])+_0x3a5d(0x2a));else{const _0x5a0205=_0x2702dc[_0x3a5d(0x2b)]&&_0x2702dc[_0x3a5d(0x2c)]&&Array[_0x3a5d(0x2d)](_0x2702dc[_0x3a5d(0x2e)])&&_0xa7676e[_0x3a5d(0x1a)](_0x2702dc['user_messages'][_0x3a5d(0x21)],0x0);return!_0x5a0205&&console[_0x3a5d(0x28)]('âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:',_0x2702dc),_0x5a0205;}});if(_0xa7676e[_0x3a5d(0x2f)](_0x50c609[_0x3a5d(0x21)],0x0))return console['error'](_0xa7676e[_0x3a5d(0x30)]),Alert[_0x3a5d(0x23)](_0xa7676e[_0x3a5d(0x31)],_0xa7676e['wwaFp'],[{'text':'OK','style':_0x3a5d(0x1)}]),![];_0xa7676e[_0x3a5d(0x32)](_0x50c609['length'],_0x42b681[_0x3a5d(0x21)])&&console[_0x3a5d(0x28)](_0x3a5d(0x29)+_0xa7676e['jbRlJ'](_0x42b681['length'],_0x50c609[_0x3a5d(0x21)])+_0x3a5d(0x2a));try{console[_0x3a5d(0x1d)](_0xa7676e['zOvML']);const _0x2217ca=await _0xa7676e[_0x3a5d(0x33)](storeChatGPTConversations,_0x305341,_0x50c609);return _0x2217ca[_0x3a5d(0x34)]?(console[_0x3a5d(0x1d)](_0xa7676e[_0x3a5d(0x35)]),console[_0x3a5d(0x1d)](_0xa7676e['MWZIO'],_0x2217ca[_0x3a5d(0x36)]),!![]):_0xa7676e[_0x3a5d(0x37)](_0xa7676e[_0x3a5d(0x38)],_0xa7676e[_0x3a5d(0x39)])?(console['error'](_0xa7676e[_0x3a5d(0x3a)],_0x2217ca[_0x3a5d(0x3b)]),Alert[_0x3a5d(0x23)](_0x3a5d(0x3c),_0x2217ca[_0x3a5d(0x3b)]||'An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.',[{'text':'OK','style':_0xa7676e[_0x3a5d(0x3d)]}]),![]):(_0x4f37b2[_0x3a5d(0x3b)](_0x3a5d(0x8)),Alert[_0x3a5d(0x23)](_0x3a5d(0x3e),_0xa7676e['wwaFp'],[{'text':'OK','style':_0xa7676e[_0x3a5d(0x3d)]}]),![]);}catch(_0x100cee){if(_0xa7676e[_0x3a5d(0x3f)]!==_0xa7676e[_0x3a5d(0x40)])return console[_0x3a5d(0x3b)](_0x3a5d(0x41),_0x100cee),Alert[_0x3a5d(0x23)](_0xa7676e[_0x3a5d(0x42)],_0xa7676e[_0x3a5d(0x43)],[{'text':'OK','style':_0xa7676e[_0x3a5d(0x3d)]}]),![];else{const _0x5e0544=_0xf5a9cc[_0x3a5d(0x2b)]&&_0x35de1b[_0x3a5d(0x2c)]&&_0x41057e[_0x3a5d(0x2d)](_0x153f21[_0x3a5d(0x2e)])&&_0x5a97df[_0x3a5d(0x44)](_0x51c2a5['user_messages'][_0x3a5d(0x21)],0x0);return!_0x5e0544&&_0x17ac3a[_0x3a5d(0x28)](_0x5a97df[_0x3a5d(0x45)],_0x462baf),_0x5e0544;}}}else return _0x13ee27[_0x3a5d(0x3b)](_0xa7676e['KhYkv']),Alert[_0x3a5d(0x23)]('Error',_0x3a5d(0x25),[{'text':'OK','style':_0xa7676e[_0x3a5d(0x3d)]}]),![];},_0x741890=async _0x19e3a1=>{var _0x1bb002,_0x543906,_0x4ce89a;console['log'](_0xa7676e[_0x3a5d(0x46)]);if(!_0x19e3a1)return console[_0x3a5d(0x28)](_0xa7676e[_0x3a5d(0x47)]),![];const _0x360c99=(_0xa7676e['mORYm'](_0x19e3a1,null)||_0xa7676e[_0x3a5d(0x26)](_0x19e3a1,void 0x0)||(_0x1bb002=_0x19e3a1['items'])===null||_0xa7676e[_0x3a5d(0x26)](_0x1bb002,void 0x0)?void 0x0:_0x1bb002[_0x3a5d(0x21)])||0x0,_0x20d497=(_0x19e3a1===null||_0x19e3a1===void 0x0||_0xa7676e[_0x3a5d(0x2f)](_0x543906=_0x19e3a1[_0x3a5d(0x48)],null)||_0xa7676e[_0x3a5d(0x49)](_0x543906,void 0x0)?void 0x0:_0x543906[_0x3a5d(0x21)])||0x0,_0x58e3e8=(_0x19e3a1===null||_0xa7676e[_0x3a5d(0x26)](_0x19e3a1,void 0x0)||_0xa7676e[_0x3a5d(0x49)](_0x4ce89a=_0x19e3a1[_0x3a5d(0x4a)],null)||_0xa7676e['xwCau'](_0x4ce89a,void 0x0)?void 0x0:_0x4ce89a[_0x3a5d(0x21)])||0x0;console['log'](_0x3a5d(0x4b)+_0x360c99+_0x3a5d(0x4c)+_0x20d497+'\x20memory\x20entries,\x20'+_0x58e3e8+'\x20memories');if(_0xa7676e[_0x3a5d(0x2f)](_0x360c99,0x0)&&_0x20d497===0x0&&_0xa7676e['gyMKZ'](_0x58e3e8,0x0))return console[_0x3a5d(0x1d)](_0xa7676e[_0x3a5d(0x4d)]),!![];try{if(_0xa7676e[_0x3a5d(0x4e)](_0x3a5d(0x4f),'dJrUh'))return _0x219378[_0x3a5d(0x28)](_0xa7676e[_0x3a5d(0x47)]),![];else{console[_0x3a5d(0x1d)](_0xa7676e['BVhzM']);const _0x5e6306=await _0xa7676e[_0x3a5d(0x50)](storeChatGPTMemories,_0x19e3a1);if(_0x5e6306['success']){var _0x14633c;return console['log'](_0x3a5d(0x51)),_0xa7676e[_0x3a5d(0x37)](_0x14633c=_0x5e6306['data'],null)&&_0xa7676e['FdSBx'](_0x14633c,void 0x0)&&_0x14633c[_0x3a5d(0x52)]&&console[_0x3a5d(0x1d)](_0x3a5d(0x53)+_0x5e6306['data']['memoriesCount']+_0x3a5d(0x54)),!![];}else return _0xa7676e[_0x3a5d(0x55)](_0xa7676e['LMmkb'],'Tdxjx')?(_0x26cff3[_0x3a5d(0x1d)](_0xa7676e['FozHk']),!![]):(console[_0x3a5d(0x3b)](_0xa7676e[_0x3a5d(0x56)],_0x5e6306['error']),![]);}}catch(_0x173759){if(_0xa7676e[_0x3a5d(0x57)](_0xa7676e[_0x3a5d(0x58)],_0xa7676e['iLNUf']))return console['error'](_0xa7676e[_0x3a5d(0x59)],_0x173759),![];else _0x4c1bbf[_0x3a5d(0x28)]('âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:',_0x2b4865);}};return{'initiateConversationExport':_0x2065e9,'storeMemories':_0x741890};};
1
+ function _0x3589(){const _0x3df6e3=['mVrdy','niylM','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','No\x20valid\x20conversations\x20found\x20to\x20export.','default','🚀\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','Error','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','â„šī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','WVWbs','jwKIo','eVdHv','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','✅\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','nFnOf','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','â„šī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','log','👤\x20[CHATGPT_EXTRACTOR]\x20Username:','NQxMB','wXiof','OJhVY','error','alert','tAGjn','sHrET','rJvjG','Osaiw','length','IxzOw','filter','bsOGj','aedFy','conversation_id','title','isArray','user_messages','wihnD','warn','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','CdMSY','OSWzQ','ercGu','ySLjD','NUbki','GRknx','\x20invalid\x20conversations','dtEQz','EFqic','PjqGA','RqqNi','IeUZZ','data','qmuje','wvbpK','ePCFu','❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','IUOus','eJJvg','grhVf','NLkeY','🧠\x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','items','rCTnf','KQXna','kJTHG','memory_entries','NMHIC','OgpQK','memories','\x20memory\x20entries,\x20','\x20memories','uLwSB','juKqz','FUCbn','memoriesCount','📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20','❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:'];_0x3589=function(){return _0x3df6e3;};return _0x3589();}function _0x3207(_0x358978,_0x3207aa){_0x358978=_0x358978-0x0;const _0x305b8a=_0x3589();let _0x14434e=_0x305b8a[_0x358978];return _0x14434e;}import{storeChatGPTConversations,storeChatGPTMemories}from'./chatGPTConversationService';import{Alert}from'react-native';export const useChatGPTConversationExtractor=()=>{const _0x1e36de={'bsOGj':_0x3207(0x0),'aedFy':_0x3207(0x1),'wihnD':_0x3207(0x2),'NUbki':'❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','EFqic':_0x3207(0x3),'OSWzQ':'Data\x20Error','IUOus':_0x3207(0x4),'rJvjG':_0x3207(0x5),'BMshY':_0x3207(0x6),'OBcUi':'📊\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','NQxMB':function(_0xf4bdc1,_0x39ac08){return _0xf4bdc1!==_0x39ac08;},'wXiof':'CWCDN','KfBcR':_0x3207(0x7),'tAGjn':_0x3207(0x8),'sHrET':_0x3207(0x9),'VBRKY':function(_0x410f76,_0x495655){return _0x410f76===_0x495655;},'IxzOw':_0x3207(0xa),'CdMSY':'❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','ercGu':function(_0x8923b2,_0x126837){return _0x8923b2===_0x126837;},'Zbjuu':_0x3207(0xb),'ySLjD':_0x3207(0xc),'GRknx':function(_0x31934f,_0x26db4f){return _0x31934f-_0x26db4f;},'RBpZk':_0x3207(0xd),'PjqGA':_0x3207(0xe),'RqqNi':function(_0x94418f,_0x590354,_0x52c058){return _0x94418f(_0x590354,_0x52c058);},'IeUZZ':_0x3207(0xf),'NLkeY':'📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:','qmuje':_0x3207(0x10),'KTjSn':_0x3207(0x11),'wvbpK':_0x3207(0x12),'ePCFu':_0x3207(0x13),'eJJvg':_0x3207(0x14),'grhVf':_0x3207(0x15),'rCTnf':function(_0x4da139,_0x37c4e8){return _0x4da139===_0x37c4e8;},'KQXna':function(_0x467065,_0x13729c){return _0x467065===_0x13729c;},'kJTHG':function(_0x549aad,_0x2bbc9f){return _0x549aad===_0x2bbc9f;},'NMHIC':function(_0xa0d4c7,_0x369e2d){return _0xa0d4c7===_0x369e2d;},'OgpQK':function(_0x47116a,_0x12d76a){return _0x47116a===_0x12d76a;},'uLwSB':function(_0x1cda12,_0x486f70){return _0x1cda12===_0x486f70;},'tTZtk':_0x3207(0x16),'FUCbn':function(_0xad422d,_0xff7fa6){return _0xad422d!==_0xff7fa6;}},_0x246b43=async(_0x3ff648,_0x1f9d11)=>{const _0x3c68bb={'Osaiw':_0x3207(0x17)};console[_0x3207(0x18)](_0x1e36de['BMshY']),console[_0x3207(0x18)](_0x3207(0x19),_0x3ff648),console[_0x3207(0x18)](_0x1e36de['OBcUi'],_0x1f9d11['length']);if(!_0x3ff648)return _0x1e36de[_0x3207(0x1a)](_0x1e36de[_0x3207(0x1b)],_0x3207(0x1c))?(console[_0x3207(0x1d)](_0x1e36de['KfBcR']),Alert[_0x3207(0x1e)](_0x1e36de[_0x3207(0x1f)],_0x1e36de[_0x3207(0x20)],[{'text':'OK','style':_0x1e36de[_0x3207(0x21)]}]),![]):(_0x21c509[_0x3207(0x1d)](_0x3c68bb[_0x3207(0x22)],_0xa58a0d),Alert[_0x3207(0x1e)](_0x3207(0x14),_0x3207(0x15),[{'text':'OK','style':_0x3207(0x5)}]),![]);if(!_0x1f9d11||_0x1e36de['VBRKY'](_0x1f9d11[_0x3207(0x23)],0x0))return console[_0x3207(0x18)](_0x1e36de[_0x3207(0x24)]),!![];const _0xb30f46=_0x1f9d11[_0x3207(0x25)](_0x368ff8=>{if(_0x1e36de[_0x3207(0x26)]!==_0x1e36de[_0x3207(0x27)]){const _0x2b7cb6=_0x368ff8[_0x3207(0x28)]&&_0x368ff8[_0x3207(0x29)]&&Array[_0x3207(0x2a)](_0x368ff8[_0x3207(0x2b)])&&_0x368ff8[_0x3207(0x2b)][_0x3207(0x23)]>0x0;return!_0x2b7cb6&&console['warn'](_0x1e36de[_0x3207(0x2c)],_0x368ff8),_0x2b7cb6;}else _0x1dc897[_0x3207(0x2d)](_0x3207(0x2e)+(_0x2d3380[_0x3207(0x23)]-_0x55ccee[_0x3207(0x23)])+'\x20invalid\x20conversations');});if(_0xb30f46[_0x3207(0x23)]===0x0)return console['error'](_0x1e36de[_0x3207(0x2f)]),Alert[_0x3207(0x1e)](_0x1e36de[_0x3207(0x30)],_0x1e36de['IUOus'],[{'text':'OK','style':_0x1e36de[_0x3207(0x21)]}]),![];if(_0xb30f46[_0x3207(0x23)]<_0x1f9d11['length']){if(_0x1e36de[_0x3207(0x31)](_0x1e36de['Zbjuu'],_0x1e36de[_0x3207(0x32)]))return _0x2b823d[_0x3207(0x1d)](_0x1e36de[_0x3207(0x33)],_0x41bbf5),![];else console[_0x3207(0x2d)](_0x3207(0x2e)+_0x1e36de[_0x3207(0x34)](_0x1f9d11[_0x3207(0x23)],_0xb30f46[_0x3207(0x23)])+_0x3207(0x35));}try{if(_0x1e36de[_0x3207(0x31)](_0x1e36de['RBpZk'],_0x3207(0x36)))return _0x432670[_0x3207(0x2d)](_0x1e36de[_0x3207(0x37)]),![];else{console[_0x3207(0x18)](_0x1e36de[_0x3207(0x38)]);const _0x4f0f74=await _0x1e36de[_0x3207(0x39)](storeChatGPTConversations,_0x3ff648,_0xb30f46);return _0x4f0f74['success']?(console[_0x3207(0x18)](_0x1e36de[_0x3207(0x3a)]),console[_0x3207(0x18)](_0x1e36de['NLkeY'],_0x4f0f74[_0x3207(0x3b)]),!![]):(console[_0x3207(0x1d)](_0x1e36de[_0x3207(0x3c)],_0x4f0f74['error']),Alert[_0x3207(0x1e)](_0x1e36de['KTjSn'],_0x4f0f74[_0x3207(0x1d)]||_0x1e36de[_0x3207(0x3d)],[{'text':'OK','style':_0x3207(0x5)}]),![]);}}catch(_0x5d3cde){return _0x1e36de['ePCFu']!==_0x1e36de[_0x3207(0x3e)]?(_0x65097b[_0x3207(0x1d)](_0x3207(0x3f)),Alert[_0x3207(0x1e)](_0x1e36de[_0x3207(0x30)],_0x1e36de[_0x3207(0x40)],[{'text':'OK','style':_0x1e36de[_0x3207(0x21)]}]),![]):(console[_0x3207(0x1d)](_0x3207(0x17),_0x5d3cde),Alert['alert'](_0x1e36de[_0x3207(0x41)],_0x1e36de[_0x3207(0x42)],[{'text':'OK','style':_0x1e36de[_0x3207(0x21)]}]),![]);}},_0xdc08f7=async _0x567036=>{const _0x7536b0={'juKqz':_0x1e36de[_0x3207(0x3a)],'BEaJA':_0x1e36de[_0x3207(0x43)]};var _0x5aca51,_0x281557,_0xbeea70;console[_0x3207(0x18)](_0x3207(0x44));if(!_0x567036)return console[_0x3207(0x2d)](_0x1e36de[_0x3207(0x37)]),![];const _0x430505=(_0x567036===null||_0x1e36de[_0x3207(0x31)](_0x567036,void 0x0)||(_0x5aca51=_0x567036[_0x3207(0x45)])===null||_0x1e36de['rCTnf'](_0x5aca51,void 0x0)?void 0x0:_0x5aca51[_0x3207(0x23)])||0x0,_0x4c8f4f=(_0x1e36de[_0x3207(0x46)](_0x567036,null)||_0x1e36de[_0x3207(0x47)](_0x567036,void 0x0)||_0x1e36de[_0x3207(0x48)](_0x281557=_0x567036[_0x3207(0x49)],null)||_0x1e36de[_0x3207(0x4a)](_0x281557,void 0x0)?void 0x0:_0x281557[_0x3207(0x23)])||0x0,_0x333df0=(_0x1e36de['KQXna'](_0x567036,null)||_0x1e36de[_0x3207(0x4b)](_0x567036,void 0x0)||_0x1e36de['kJTHG'](_0xbeea70=_0x567036[_0x3207(0x4c)],null)||_0x1e36de['uLwSB'](_0xbeea70,void 0x0)?void 0x0:_0xbeea70['length'])||0x0;console[_0x3207(0x18)]('📋\x20[CHATGPT_EXTRACTOR]\x20Found\x20'+_0x430505+'\x20memory\x20items,\x20'+_0x4c8f4f+_0x3207(0x4d)+_0x333df0+_0x3207(0x4e));if(_0x1e36de['kJTHG'](_0x430505,0x0)&&_0x4c8f4f===0x0&&_0x1e36de[_0x3207(0x4f)](_0x333df0,0x0))return'qAEsy'==='QbrTo'?(_0x212f67[_0x3207(0x18)](_0x7536b0[_0x3207(0x50)]),_0x59f4ce[_0x3207(0x18)](_0x7536b0['BEaJA'],_0x3d2cab[_0x3207(0x3b)]),!![]):(console[_0x3207(0x18)](_0x1e36de['tTZtk']),!![]);try{console['log']('📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...');const _0x3cc853=await storeChatGPTMemories(_0x567036);if(_0x3cc853['success']){var _0x115f25;return console['log']('✅\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully'),_0x1e36de[_0x3207(0x1a)](_0x115f25=_0x3cc853[_0x3207(0x3b)],null)&&_0x1e36de[_0x3207(0x51)](_0x115f25,void 0x0)&&_0x115f25[_0x3207(0x52)]&&console[_0x3207(0x18)](_0x3207(0x53)+_0x3cc853[_0x3207(0x3b)][_0x3207(0x52)]+_0x3207(0x4e)),!![];}else return console[_0x3207(0x1d)](_0x3207(0x54),_0x3cc853[_0x3207(0x1d)]),![];}catch(_0x1e106e){return console['error'](_0x1e36de['NUbki'],_0x1e106e),![];}};return{'initiateConversationExport':_0x246b43,'storeMemories':_0xdc08f7};};
@@ -1 +1 @@
1
- import{API_CONFIG}from'../config/api';function _0x544d(){const _0x4fdd81=['❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','❌\x20[CHATGPT_SERVICE]\x20Network\x20error:','🚀\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','📊\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','📊\x20[CHATGPT_SERVICE]\x20Total\x20messages:','uxASr','BoPQV','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','onairos_jwt_token','auth_token','1.0.0','ios','iPhone','WWBuO','rTOHw','mobile-chatgpt','conversation','QzofC','LNKUg','uIAvd','AgbOO','fqVPg','Network\x20error.\x20Please\x20check\x20your\x20connection.','log','mEJym','lHngd','length','user_messages','BnOdK','KIPgX','XViYc','getItem','IqRYl','DZgam','oBixC','QKjSr','PeOXC','KPZZU','TWXFo','pYrwO','VKqEg','ZigfB','now','map','-msg-','user','toISOString','title','floor','AQNOm','dSTBl','📡\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20','wNodj','TQvzR','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','WJyiL','Bearer\x20','OnairosSDK/1.0.0\x20(','json','error','ZpAtZ','message','✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20','mecZv','warn','âš ī¸\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20','lLwZK','HnkRd','\x20success,\x20','\x20failed','BwirA','PrlLU','\x20of\x20','\x20conversations','ZDhmz','âš ī¸\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','status','âš ī¸\x20[CHATGPT_SERVICE]\x20Error:\x20','Unknown\x20error','HTTP\x20','MTjDO','YxszG','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','Invalid\x20input:\x20memoriesData\x20missing.','QyZDo','✅\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','HQCMF','Memories\x20stored\x20successfully','iCKqa','MFcaV','🧠\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','ykeCS','memory_entries','MJeqt','clRvz','EAzZI','memories','voHRg','\x20items,\x20','\x20entries,\x20','\x20memories\x20(total:\x20','ZwRzM','bdFDH','msVhy','FtMHh','qafBu','keys','bsjmn','📡\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','📍\x20[CHATGPT_SERVICE]\x20URL:\x20','BASE_URL','join','đŸ“Ļ\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)','/llm-data/store-memories','OnairosSDK/','stringify','ZdANT','qPgUV','📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20','memoriesCount','hFdZj','kYrjG','data','\x20memory\x20items\x20in\x20database','CuMCZ','Afmnn','yvqWM','JWHWK','MTHKX','ziJiF','zpFnJ'];_0x544d=function(){return _0x4fdd81;};return _0x544d();}function _0x4319(_0x544d9b,_0x4319a4){_0x544d9b=_0x544d9b-0x0;const _0x35c480=_0x544d();let _0x2902e0=_0x35c480[_0x544d9b];return _0x2902e0;}import AsyncStorage from'@react-native-async-storage/async-storage';import{Platform}from'react-native';export const storeChatGPTConversations=async(_0x323a2a,_0x79fff1)=>{const _0x25331a={'eZcFD':function(_0x552d69,_0x872af4){return _0x552d69+_0x872af4;},'ZpAtZ':_0x4319(0x0),'DZgam':_0x4319(0x1),'oBixC':_0x4319(0x2),'MTjDO':_0x4319(0x3),'mEJym':_0x4319(0x4),'lHngd':_0x4319(0x5),'RuKMF':_0x4319(0x6),'kGOAv':function(_0x52cedb,_0x476d4b){return _0x52cedb||_0x476d4b;},'TWXFo':function(_0x127a32,_0x32f1e9){return _0x127a32===_0x32f1e9;},'yPZxP':function(_0x17a8d0,_0x163f54){return _0x17a8d0!==_0x163f54;},'BnOdK':_0x4319(0x7),'REkwg':_0x4319(0x8),'KIPgX':_0x4319(0x9),'XViYc':_0x4319(0xa),'AMFyg':_0x4319(0xb),'IqRYl':'enoch_token','BxQGA':_0x4319(0xc),'QKjSr':'🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','LncGV':_0x4319(0xd),'PeOXC':function(_0x2de7db,_0x22aad6){return _0x2de7db===_0x22aad6;},'KPZZU':_0x4319(0xe),'pYrwO':_0x4319(0xf),'VKqEg':'Android','JwgDi':_0x4319(0x10),'ZigfB':_0x4319(0x11),'AQNOm':function(_0x3f6797,_0x3d496a){return _0x3f6797/_0x3d496a;},'dSTBl':_0x4319(0x12),'EuvyW':_0x4319(0x13),'avgSl':function(_0xc765e3,_0x14e9d2){return _0xc765e3+_0x14e9d2;},'wNodj':_0x4319(0x14),'WJyiL':function(_0x2080a8,_0x2c355b,_0x18e3b2){return _0x2080a8(_0x2c355b,_0x18e3b2);},'OafxU':_0x4319(0x15),'XJhsG':_0x4319(0x16),'mecZv':function(_0x24c883,_0x1e1303){return _0x24c883+_0x1e1303;},'YjHjQ':function(_0x29992a,_0x33f87d){return _0x29992a+_0x33f87d;},'lLwZK':function(_0x247bb9,_0x249b05){return _0x247bb9<_0x249b05;},'HnkRd':function(_0x6d36eb,_0x57e5de){return _0x6d36eb-_0x57e5de;},'BwirA':function(_0x402b34,_0x33caaf){return _0x402b34>_0x33caaf;},'PrlLU':_0x4319(0x17),'ZDhmz':_0x4319(0x18),'YxszG':_0x4319(0x19)};console[_0x4319(0x1a)](_0x25331a[_0x4319(0x1b)],_0x323a2a),console['log'](_0x25331a[_0x4319(0x1c)],_0x79fff1[_0x4319(0x1d)]),console['log'](_0x25331a['RuKMF'],_0x79fff1['reduce']((_0x3af204,_0x186588)=>_0x3af204+_0x186588[_0x4319(0x1e)][_0x4319(0x1d)],0x0));if(_0x25331a['kGOAv'](!_0x323a2a,!_0x79fff1)||_0x25331a['TWXFo'](_0x79fff1['length'],0x0)){if(_0x25331a['yPZxP'](_0x25331a[_0x4319(0x1f)],_0x25331a['REkwg']))return console['error'](_0x25331a[_0x4319(0x20)]),{'success':![],'error':_0x25331a[_0x4319(0x21)]};else _0xd90b43['log']('✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20'+_0x25331a['eZcFD'](_0x43c722,0x1)+'/'+_0x27dff6[_0x4319(0x1d)]),_0x3ef369++;}try{const _0x3c9c71=await AsyncStorage[_0x4319(0x22)](_0x25331a['AMFyg'])||await AsyncStorage[_0x4319(0x22)](_0x25331a[_0x4319(0x23)])||await AsyncStorage[_0x4319(0x22)](_0x25331a['BxQGA']);if(!_0x3c9c71)return console['error'](_0x25331a[_0x4319(0x24)]),{'success':![],'error':_0x25331a[_0x4319(0x25)]};console[_0x4319(0x1a)](_0x25331a[_0x4319(0x26)]);const _0x2d5bb5={'platform':Platform['OS'],'appVersion':_0x25331a['LncGV'],'osVersion':_0x25331a[_0x4319(0x27)](Platform['OS'],_0x25331a[_0x4319(0x28)])?'17.0':Platform['OS'],'deviceModel':_0x25331a[_0x4319(0x29)](Platform['OS'],_0x4319(0xe))?_0x25331a[_0x4319(0x2a)]:_0x25331a[_0x4319(0x2b)],'isOfflineSync':![]};let _0x2a5f5c=0x0,_0x2adb2d=0x0;for(let _0x580456=0x0;_0x580456<_0x79fff1[_0x4319(0x1d)];_0x580456++){if(_0x25331a['JwgDi']!==_0x25331a[_0x4319(0x2c)]){const _0x3ebb6b=_0x79fff1[_0x580456],_0x3cbb75=Date[_0x4319(0x2d)](),_0x433453=_0x3ebb6b[_0x4319(0x1e)][_0x4319(0x2e)]((_0x18f589,_0x510709)=>({'id':_0x3ebb6b['conversation_id']+_0x4319(0x2f)+_0x510709,'role':_0x4319(0x30),'content':_0x18f589,'timestamp':new Date(_0x3cbb75-(_0x3ebb6b[_0x4319(0x1e)][_0x4319(0x1d)]-_0x510709)*0x3e8)[_0x4319(0x31)](),'metadata':{}})),_0x4e09c5={'conversationId':_0x3ebb6b['conversation_id'],'messages':_0x433453,'context':{'title':_0x3ebb6b[_0x4319(0x32)],'create_time':Math[_0x4319(0x33)](_0x25331a[_0x4319(0x34)](_0x3cbb75,0x3e8)),'update_time':Math[_0x4319(0x33)](_0x3cbb75/0x3e8)},'mobileMetadata':_0x2d5bb5},_0xfcc15d={'platform':_0x25331a[_0x4319(0x35)],'conversationData':_0x4e09c5,'memoryType':_0x25331a['EuvyW']};console[_0x4319(0x1a)](_0x4319(0x36)+_0x25331a['avgSl'](_0x580456,0x1)+'/'+_0x79fff1[_0x4319(0x1d)]+':\x20'+_0x3ebb6b[_0x4319(0x32)]);try{if(_0x25331a[_0x4319(0x37)]===_0x4319(0x38))return{'success':![],'error':_0x4319(0x39)+_0x428abb+_0x4319(0x3a)};else{const _0x3b7754=await _0x25331a[_0x4319(0x3b)](fetch,API_CONFIG['BASE_URL']+'/llm-data/store',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4319(0x3c)+_0x3c9c71,'User-Agent':_0x4319(0x3d)+Platform['OS']+')'},'body':JSON['stringify'](_0xfcc15d)}),_0x1ae958=await _0x3b7754[_0x4319(0x3e)]();if(_0x3b7754['ok']){if(_0x25331a[_0x4319(0x27)](_0x25331a['OafxU'],_0x25331a['XJhsG']))return _0x4c932b[_0x4319(0x3f)](_0x25331a[_0x4319(0x40)],_0x11a38d),{'success':![],'error':_0x5ab63a[_0x4319(0x41)]||'Network\x20error.\x20Please\x20check\x20your\x20connection.'};else console[_0x4319(0x1a)](_0x4319(0x42)+_0x25331a[_0x4319(0x43)](_0x580456,0x1)+'/'+_0x79fff1['length']),_0x2a5f5c++;}else console[_0x4319(0x44)](_0x4319(0x45)+_0x25331a['YjHjQ'](_0x580456,0x1)+'/'+_0x79fff1['length']+':',_0x1ae958[_0x4319(0x3f)]||_0x3b7754['status']),_0x2adb2d++;}}catch(_0x4e6034){console['warn']('âš ī¸\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20'+(_0x580456+0x1)+':',_0x4e6034),_0x2adb2d++;}_0x25331a[_0x4319(0x46)](_0x580456,_0x25331a[_0x4319(0x47)](_0x79fff1['length'],0x1))&&await new Promise(_0xacf934=>setTimeout(_0xacf934,0x12c));}else return _0x5e282c[_0x4319(0x3f)](_0x25331a['DZgam']),{'success':![],'error':_0x25331a[_0x4319(0x25)]};}return console[_0x4319(0x1a)]('📊\x20[CHATGPT_SERVICE]\x20Complete:\x20'+_0x2a5f5c+_0x4319(0x48)+_0x2adb2d+_0x4319(0x49)),_0x25331a[_0x4319(0x4a)](_0x2a5f5c,0x0)?_0x25331a['yPZxP'](_0x25331a[_0x4319(0x4b)],_0x25331a[_0x4319(0x4b)])?(_0x399a0e['error'](_0x25331a['MTjDO'],_0x3f32cd),{'success':![],'error':_0x4617ca['message']||_0x4319(0x19)}):{'success':!![],'message':'Stored\x20'+_0x2a5f5c+_0x4319(0x4c)+_0x79fff1[_0x4319(0x1d)]+_0x4319(0x4d)}:_0x25331a['TWXFo'](_0x25331a['ZDhmz'],_0x25331a[_0x4319(0x4e)])?{'success':![],'error':_0x4319(0x39)+_0x2adb2d+'\x20errors)'}:(_0x271272[_0x4319(0x44)](_0x4319(0x4f)+_0x4e5654[_0x4319(0x50)]),_0x3d28a1[_0x4319(0x44)](_0x4319(0x51)+(_0x18cb04[_0x4319(0x3f)]||_0x4319(0x52))),{'success':![],'error':_0x4fab9e['error']||_0x4319(0x53)+_0x1976a1[_0x4319(0x50)]});}catch(_0x22fbea){return console['error'](_0x25331a[_0x4319(0x54)],_0x22fbea),{'success':![],'error':_0x22fbea[_0x4319(0x41)]||_0x25331a[_0x4319(0x55)]};}};export const storeChatGPTMemories=async _0x5f2efc=>{const _0x558879={'msVhy':_0x4319(0x1),'CuMCZ':_0x4319(0x2),'ZwRzM':_0x4319(0x56),'bdFDH':_0x4319(0x57),'ykeCS':function(_0x1711a9,_0x35275a){return _0x1711a9===_0x35275a;},'clRvz':function(_0x30c433,_0x53034c){return _0x30c433===_0x53034c;},'MJeqt':function(_0x59c4b2,_0x1929a8){return _0x59c4b2===_0x1929a8;},'EAzZI':function(_0x410455,_0x518615){return _0x410455===_0x518615;},'voHRg':function(_0x380589,_0x1200bb){return _0x380589===_0x1200bb;},'XogRj':_0x4319(0xc),'pRkkJ':'🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','FtMHh':_0x4319(0xd),'qafBu':_0x4319(0x12),'bsjmn':function(_0x1048a1,_0xec68a0){return _0x1048a1||_0xec68a0;},'RdJsP':function(_0x54e6ac,_0x2a8eb1,_0x1f3022){return _0x54e6ac(_0x2a8eb1,_0x1f3022);},'ZdANT':_0x4319(0x58),'qPgUV':_0x4319(0x59),'zKFNa':function(_0x2d6580,_0xd4e52e){return _0x2d6580!==_0xd4e52e;},'ogYMO':function(_0x4e095a,_0x257177){return _0x4e095a!==_0x257177;},'hFdZj':function(_0x1827ec,_0x479688){return _0x1827ec!==_0x479688;},'ILpSd':_0x4319(0x5a),'kYrjG':'xcYRm','Afmnn':_0x4319(0x5b),'yvqWM':function(_0x499f45,_0x4d0400){return _0x499f45!==_0x4d0400;},'JWHWK':_0x4319(0x5c),'MTHKX':_0x4319(0x5d),'ziJiF':_0x4319(0x0),'zpFnJ':_0x4319(0x19)};var _0x2f476d,_0x29d830,_0x4ac765;console[_0x4319(0x1a)](_0x4319(0x5e));const _0x26413f=(_0x558879[_0x4319(0x5f)](_0x5f2efc,null)||_0x5f2efc===void 0x0||(_0x2f476d=_0x5f2efc['items'])===null||_0x2f476d===void 0x0?void 0x0:_0x2f476d[_0x4319(0x1d)])||0x0,_0x2fe172=(_0x558879[_0x4319(0x5f)](_0x5f2efc,null)||_0x558879['clRvz'](_0x5f2efc,void 0x0)||_0x558879[_0x4319(0x5f)](_0x29d830=_0x5f2efc[_0x4319(0x60)],null)||_0x558879[_0x4319(0x61)](_0x29d830,void 0x0)?void 0x0:_0x29d830[_0x4319(0x1d)])||0x0,_0x336c8c=(_0x558879['clRvz'](_0x5f2efc,null)||_0x558879[_0x4319(0x62)](_0x5f2efc,void 0x0)||_0x558879[_0x4319(0x63)](_0x4ac765=_0x5f2efc[_0x4319(0x64)],null)||_0x558879[_0x4319(0x65)](_0x4ac765,void 0x0)?void 0x0:_0x4ac765[_0x4319(0x1d)])||0x0,_0x4ce442=_0x26413f+_0x2fe172+_0x336c8c;console[_0x4319(0x1a)]('📋\x20[CHATGPT_SERVICE]\x20Found\x20'+_0x26413f+_0x4319(0x66)+_0x2fe172+_0x4319(0x67)+_0x336c8c+_0x4319(0x68)+_0x4ce442+')');if(!_0x5f2efc)return console[_0x4319(0x3f)](_0x558879[_0x4319(0x69)]),{'success':![],'error':_0x558879[_0x4319(0x6a)]};try{const _0x3e4ddd=await AsyncStorage[_0x4319(0x22)](_0x4319(0xb))||await AsyncStorage[_0x4319(0x22)]('enoch_token')||await AsyncStorage[_0x4319(0x22)](_0x558879['XogRj']);if(!_0x3e4ddd)return console[_0x4319(0x3f)](_0x558879[_0x4319(0x6b)]),{'success':![],'error':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.'};console[_0x4319(0x1a)](_0x558879['pRkkJ']);const _0x2b2cd8=_0x558879[_0x4319(0x6c)],_0xf71981={'platform':_0x558879[_0x4319(0x6d)],'memoriesData':_0x5f2efc,'metadata':{'source':'react-native-sdk','appVersion':_0x2b2cd8,'fetchedAt':new Date()['toISOString']()}},_0x4660c8=Object[_0x4319(0x6e)](_0x558879[_0x4319(0x6f)](_0x5f2efc,{}));console[_0x4319(0x1a)](_0x4319(0x70)),console[_0x4319(0x1a)](_0x4319(0x71)+API_CONFIG[_0x4319(0x72)]+'/llm-data/store-memories'),console[_0x4319(0x1a)]('đŸ“Ļ\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20'+_0x4660c8[_0x4319(0x73)](',\x20')),console[_0x4319(0x1a)](_0x4319(0x74));const _0x1f68fe=await _0x558879['RdJsP'](fetch,API_CONFIG[_0x4319(0x72)]+_0x4319(0x75),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4319(0x3c)+_0x3e4ddd,'User-Agent':_0x4319(0x76)+_0x2b2cd8+'\x20('+Platform['OS']+')'},'body':JSON[_0x4319(0x77)](_0xf71981)}),_0x36f712=await _0x1f68fe[_0x4319(0x3e)]();if(_0x1f68fe['ok']){if(_0x558879[_0x4319(0x78)]===_0x558879[_0x4319(0x78)]){var _0x5f2244;console[_0x4319(0x1a)](_0x558879[_0x4319(0x79)]);_0x36f712[_0x4319(0x41)]&&console[_0x4319(0x1a)](_0x4319(0x7a)+_0x36f712[_0x4319(0x41)]);if(_0x558879['zKFNa'](_0x5f2244=_0x36f712['data'],null)&&_0x558879['ogYMO'](_0x5f2244,void 0x0)&&_0x5f2244[_0x4319(0x7b)]){if(_0x558879[_0x4319(0x7c)](_0x558879['ILpSd'],_0x558879[_0x4319(0x7d)]))console[_0x4319(0x1a)]('📋\x20[CHATGPT_SERVICE]\x20Stored\x20'+_0x36f712[_0x4319(0x7e)][_0x4319(0x7b)]+_0x4319(0x7f));else return _0x405459['error'](_0x558879[_0x4319(0x6b)]),{'success':![],'error':_0x558879[_0x4319(0x80)]};}return{'success':!![],'message':_0x36f712[_0x4319(0x41)]||_0x558879[_0x4319(0x81)],'data':_0x36f712[_0x4319(0x7e)]};}else _0x574c87[_0x4319(0x1a)](_0x4319(0x7a)+_0x439b99[_0x4319(0x41)]);}else return _0x558879[_0x4319(0x82)](_0x558879[_0x4319(0x83)],_0x558879[_0x4319(0x84)])?(console[_0x4319(0x44)](_0x4319(0x4f)+_0x1f68fe['status']),console['warn'](_0x4319(0x51)+(_0x36f712[_0x4319(0x3f)]||_0x4319(0x52))),{'success':![],'error':_0x36f712['error']||_0x4319(0x53)+_0x1f68fe[_0x4319(0x50)]}):(_0x49a9b3['error'](_0x558879[_0x4319(0x69)]),{'success':![],'error':_0x558879[_0x4319(0x6a)]});}catch(_0x3cd3e1){return console[_0x4319(0x3f)](_0x558879[_0x4319(0x85)],_0x3cd3e1),{'success':![],'error':_0x3cd3e1[_0x4319(0x41)]||_0x558879[_0x4319(0x86)]};}};
1
+ import{API_CONFIG}from'../config/api';function _0x1c36(_0x4a8eac,_0x1c3659){_0x4a8eac=_0x4a8eac-0x0;const _0x39588f=_0x4a8e();let _0xa16df5=_0x39588f[_0x4a8eac];return _0xa16df5;}import AsyncStorage from'@react-native-async-storage/async-storage';import{Platform}from'react-native';function _0x4a8e(){const _0x5459d5=['❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','🚀\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','📊\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','📊\x20[CHATGPT_SERVICE]\x20Total\x20messages:','QLXrJ','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input','aIHPn','onairos_jwt_token','enoch_token','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','ios','iPhone','Android','zTXYo','❌\x20[CHATGPT_SERVICE]\x20Network\x20error:','log','FBHwp','BOMca','length','fSrhK','tmLEG','wGErw','oxMei','error','ckmYM','cGcMe','qFhwh','USAEH','message','MYygE','QgGSZ','getItem','JklcM','EGekg','MWsjz','DUJhq','QPBAo','XUGqF','qFhKw','kJuMg','TObHw','kiveF','bqIdC','now','user_messages','conversation_id','-msg-','user','toISOString','title','floor','ygYke','conversation','📡\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20','abbIe','BASE_URL','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','json','RzUyA','ACNbi','✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20','warn','âš ī¸\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20','status','âš ī¸\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','aIZeb','HXmIw','âš ī¸\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','PTbGW','📊\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','tufUf','Stored\x20','\x20of\x20','\x20conversations','\x20errors)','🧠\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','Invalid\x20input:\x20memoriesData\x20missing.','1.0.0','mobile-chatgpt','2|4|3|0|1','Memories\x20stored\x20successfully','✅\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','Unknown\x20error','Fcwnu','nSxtH','uPZnj','Ncvox','memory_entries','XySAX','📋\x20[CHATGPT_SERVICE]\x20Found\x20','\x20items,\x20','\x20entries,\x20','\x20memories\x20(total:\x20','QDvEz','Wgdoh','xQIBB','OVzOi','UdgLG','QhJEV','tXzSs','eCMVl','keys','NbRPr','📡\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','📍\x20[CHATGPT_SERVICE]\x20URL:\x20','/llm-data/store-memories','join','đŸ“Ļ\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)','OnairosSDK/','gWLVC','data','oTcnA','📋\x20[CHATGPT_SERVICE]\x20Stored\x20','memoriesCount','zAnLM','📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20','KSvIv','âš ī¸\x20[CHATGPT_SERVICE]\x20Error:\x20','nIAKc','HTTP\x20','BVosw','OxHrW','Network\x20error.\x20Please\x20check\x20your\x20connection.'];_0x4a8e=function(){return _0x5459d5;};return _0x4a8e();}export const storeChatGPTConversations=async(_0x16c05a,_0x1997ea)=>{const _0x1f5ce4={'cGcMe':_0x1c36(0x0),'qFhwh':_0x1c36(0x1),'RGrMO':_0x1c36(0x2),'MYygE':'Network\x20error.\x20Please\x20check\x20your\x20connection.','ACNbi':_0x1c36(0x3),'PTbGW':'Unknown\x20error','FBHwp':_0x1c36(0x4),'BOMca':_0x1c36(0x5),'fSrhK':_0x1c36(0x6),'tmLEG':function(_0x1c6d3b,_0x77097a){return _0x1c6d3b||_0x77097a;},'wGErw':function(_0x4a50a1,_0x4b4a72){return _0x4a50a1===_0x4b4a72;},'oxMei':_0x1c36(0x7),'ckmYM':_0x1c36(0x8),'USAEH':_0x1c36(0x9),'QgGSZ':_0x1c36(0xa),'JklcM':_0x1c36(0xb),'EGekg':'auth_token','MWsjz':_0x1c36(0xc),'DUJhq':'1.0.0','QPBAo':function(_0x3486fd,_0x40aaec){return _0x3486fd===_0x40aaec;},'XUGqF':_0x1c36(0xd),'qFhKw':'17.0','kJuMg':function(_0x3da0cf,_0x43eb0d){return _0x3da0cf===_0x43eb0d;},'TObHw':_0x1c36(0xe),'kiveF':_0x1c36(0xf),'zkqrB':function(_0x168150,_0x50e991){return _0x168150!==_0x50e991;},'JUagQ':_0x1c36(0x10),'ygYke':'mobile-chatgpt','aIZeb':function(_0x242e5c,_0x5be05a){return _0x242e5c+_0x5be05a;},'abbIe':function(_0x46b78b,_0x374bbd,_0x3201cf){return _0x46b78b(_0x374bbd,_0x3201cf);},'IXjfm':'RzUyA','HXmIw':function(_0x26b5f8,_0x419667){return _0x26b5f8<_0x419667;},'wsfiO':function(_0x1a608c,_0x2096a6){return _0x1a608c-_0x2096a6;},'tufUf':function(_0x283305,_0x1d3708){return _0x283305>_0x1d3708;},'lHMAm':_0x1c36(0x11)};console[_0x1c36(0x12)](_0x1f5ce4[_0x1c36(0x13)],_0x16c05a),console[_0x1c36(0x12)](_0x1f5ce4[_0x1c36(0x14)],_0x1997ea[_0x1c36(0x15)]),console[_0x1c36(0x12)](_0x1f5ce4[_0x1c36(0x16)],_0x1997ea['reduce']((_0x555ebc,_0x695902)=>_0x555ebc+_0x695902['user_messages'][_0x1c36(0x15)],0x0));if(_0x1f5ce4[_0x1c36(0x17)](!_0x16c05a,!_0x1997ea)||_0x1f5ce4[_0x1c36(0x18)](_0x1997ea[_0x1c36(0x15)],0x0))return _0x1f5ce4[_0x1c36(0x19)]===_0x1c36(0x7)?(console[_0x1c36(0x1a)](_0x1f5ce4[_0x1c36(0x1b)]),{'success':![],'error':_0x1f5ce4['ACNbi']}):(_0x2487fb[_0x1c36(0x1a)](_0x1f5ce4[_0x1c36(0x1c)]),{'success':![],'error':_0x1f5ce4[_0x1c36(0x1d)]});try{if(_0x1f5ce4[_0x1c36(0x1e)]==='eWSZk')return _0x4a9ec1['error'](_0x1f5ce4['RGrMO'],_0x89e5a6),{'success':![],'error':_0x17377e[_0x1c36(0x1f)]||_0x1f5ce4[_0x1c36(0x20)]};else{const _0x34c4c0=await AsyncStorage['getItem'](_0x1f5ce4[_0x1c36(0x21)])||await AsyncStorage[_0x1c36(0x22)](_0x1f5ce4[_0x1c36(0x23)])||await AsyncStorage['getItem'](_0x1f5ce4[_0x1c36(0x24)]);if(!_0x34c4c0)return console['error'](_0x1f5ce4['cGcMe']),{'success':![],'error':_0x1f5ce4[_0x1c36(0x1d)]};console[_0x1c36(0x12)](_0x1f5ce4[_0x1c36(0x25)]);const _0x4af91f={'platform':Platform['OS'],'appVersion':_0x1f5ce4[_0x1c36(0x26)],'osVersion':_0x1f5ce4[_0x1c36(0x27)](Platform['OS'],_0x1f5ce4[_0x1c36(0x28)])?_0x1f5ce4[_0x1c36(0x29)]:Platform['OS'],'deviceModel':_0x1f5ce4[_0x1c36(0x2a)](Platform['OS'],_0x1f5ce4[_0x1c36(0x28)])?_0x1f5ce4[_0x1c36(0x2b)]:_0x1f5ce4[_0x1c36(0x2c)],'isOfflineSync':![]};let _0xf782c1=0x0,_0x204931=0x0;for(let _0x4fedb7=0x0;_0x4fedb7<_0x1997ea[_0x1c36(0x15)];_0x4fedb7++){if(_0x1f5ce4['zkqrB'](_0x1f5ce4['JUagQ'],_0x1c36(0x2d))){const _0xc0d440=_0x1997ea[_0x4fedb7],_0x1772b7=Date[_0x1c36(0x2e)](),_0x14028a=_0xc0d440[_0x1c36(0x2f)]['map']((_0x3b4dbc,_0x43727e)=>({'id':_0xc0d440[_0x1c36(0x30)]+_0x1c36(0x31)+_0x43727e,'role':_0x1c36(0x32),'content':_0x3b4dbc,'timestamp':new Date(_0x1772b7-(_0xc0d440[_0x1c36(0x2f)]['length']-_0x43727e)*0x3e8)[_0x1c36(0x33)](),'metadata':{}})),_0x54c53a={'conversationId':_0xc0d440[_0x1c36(0x30)],'messages':_0x14028a,'context':{'title':_0xc0d440[_0x1c36(0x34)],'create_time':Math[_0x1c36(0x35)](_0x1772b7/0x3e8),'update_time':Math['floor'](_0x1772b7/0x3e8)},'mobileMetadata':_0x4af91f},_0x12d0c8={'platform':_0x1f5ce4[_0x1c36(0x36)],'conversationData':_0x54c53a,'memoryType':_0x1c36(0x37)};console[_0x1c36(0x12)](_0x1c36(0x38)+_0x1f5ce4['aIZeb'](_0x4fedb7,0x1)+'/'+_0x1997ea[_0x1c36(0x15)]+':\x20'+_0xc0d440['title']);try{const _0x913f85=await _0x1f5ce4[_0x1c36(0x39)](fetch,API_CONFIG[_0x1c36(0x3a)]+_0x1c36(0x3b),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x1c36(0x3c)+_0x34c4c0,'User-Agent':_0x1c36(0x3d)+Platform['OS']+')'},'body':JSON[_0x1c36(0x3e)](_0x12d0c8)}),_0x3bef07=await _0x913f85[_0x1c36(0x3f)]();if(_0x913f85['ok']){if(_0x1c36(0x40)!==_0x1f5ce4['IXjfm'])return _0x5c72ac[_0x1c36(0x1a)]('❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input'),{'success':![],'error':_0x1f5ce4[_0x1c36(0x41)]};else console[_0x1c36(0x12)](_0x1c36(0x42)+(_0x4fedb7+0x1)+'/'+_0x1997ea['length']),_0xf782c1++;}else console[_0x1c36(0x43)](_0x1c36(0x44)+(_0x4fedb7+0x1)+'/'+_0x1997ea['length']+':',_0x3bef07[_0x1c36(0x1a)]||_0x913f85[_0x1c36(0x45)]),_0x204931++;}catch(_0x3a6991){console[_0x1c36(0x43)](_0x1c36(0x46)+_0x1f5ce4[_0x1c36(0x47)](_0x4fedb7,0x1)+':',_0x3a6991),_0x204931++;}_0x1f5ce4[_0x1c36(0x48)](_0x4fedb7,_0x1f5ce4['wsfiO'](_0x1997ea[_0x1c36(0x15)],0x1))&&await new Promise(_0x1deb82=>setTimeout(_0x1deb82,0x12c));}else return _0xd8257d[_0x1c36(0x43)](_0x1c36(0x49)+_0x42a9da[_0x1c36(0x45)]),_0x9d0e70[_0x1c36(0x43)]('âš ī¸\x20[CHATGPT_SERVICE]\x20Error:\x20'+(_0x5d7245[_0x1c36(0x1a)]||_0x1f5ce4[_0x1c36(0x4a)])),{'success':![],'error':_0x535b24[_0x1c36(0x1a)]||'HTTP\x20'+_0x31cbd4[_0x1c36(0x45)]};}return console['log'](_0x1c36(0x4b)+_0xf782c1+_0x1c36(0x4c)+_0x204931+_0x1c36(0x4d)),_0x1f5ce4[_0x1c36(0x4e)](_0xf782c1,0x0)?{'success':!![],'message':_0x1c36(0x4f)+_0xf782c1+_0x1c36(0x50)+_0x1997ea[_0x1c36(0x15)]+_0x1c36(0x51)}:{'success':![],'error':'Failed\x20to\x20store\x20conversations\x20('+_0x204931+_0x1c36(0x52)};}}catch(_0x573730){return console['error'](_0x1f5ce4['lHMAm'],_0x573730),{'success':![],'error':_0x573730[_0x1c36(0x1f)]||_0x1f5ce4['MYygE']};}};export const storeChatGPTMemories=async _0x521d66=>{const _0x2566bc={'QhJEV':function(_0x433285,_0x124460){return _0x433285+_0x124460;},'Fcwnu':_0x1c36(0x53),'nSxtH':function(_0x303ccd,_0x6e93f7){return _0x303ccd===_0x6e93f7;},'XySAX':function(_0x52d41c,_0x5e02ba){return _0x52d41c===_0x5e02ba;},'uPZnj':function(_0x4044c1,_0x10b890){return _0x4044c1===_0x10b890;},'BVosw':function(_0x126e7f,_0x463476){return _0x126e7f===_0x463476;},'Ncvox':function(_0x2532df,_0x3d9cd5){return _0x2532df===_0x3d9cd5;},'KNsnV':function(_0x361910,_0xf4cb18){return _0x361910+_0xf4cb18;},'QDvEz':_0x1c36(0x54),'Wgdoh':_0x1c36(0xa),'kNcJH':function(_0xb7e0c4,_0x20553e){return _0xb7e0c4===_0x20553e;},'OVzOi':_0x1c36(0x0),'UdgLG':_0x1c36(0x1),'unwPU':'🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','tXzSs':_0x1c36(0x55),'eCMVl':_0x1c36(0x56),'NbRPr':function(_0x52ab79,_0x2ade66){return _0x52ab79||_0x2ade66;},'qTtwG':function(_0x11590d,_0x2c5362,_0x4b3ae1){return _0x11590d(_0x2c5362,_0x4b3ae1);},'gWLVC':_0x1c36(0x57),'oTcnA':function(_0x21e157,_0x4cdcab){return _0x21e157!==_0x4cdcab;},'zAnLM':_0x1c36(0x58),'KSvIv':_0x1c36(0x59),'nIAKc':_0x1c36(0x5a),'emnsF':'fjKiD','OxHrW':'pzCrg','CkICX':_0x1c36(0x2)};var _0x48d176,_0x17b1aa,_0x2ce644;console['log'](_0x2566bc[_0x1c36(0x5b)]);const _0x458356=(_0x521d66===null||_0x2566bc[_0x1c36(0x5c)](_0x521d66,void 0x0)||_0x2566bc['XySAX'](_0x48d176=_0x521d66['items'],null)||_0x2566bc[_0x1c36(0x5d)](_0x48d176,void 0x0)?void 0x0:_0x48d176[_0x1c36(0x15)])||0x0,_0x29fea7=(_0x2566bc['uPZnj'](_0x521d66,null)||_0x2566bc['BVosw'](_0x521d66,void 0x0)||_0x2566bc[_0x1c36(0x5e)](_0x17b1aa=_0x521d66[_0x1c36(0x5f)],null)||_0x2566bc['nSxtH'](_0x17b1aa,void 0x0)?void 0x0:_0x17b1aa[_0x1c36(0x15)])||0x0,_0x28793d=(_0x2566bc[_0x1c36(0x5c)](_0x521d66,null)||_0x521d66===void 0x0||_0x2566bc[_0x1c36(0x60)](_0x2ce644=_0x521d66['memories'],null)||_0x2566bc['BVosw'](_0x2ce644,void 0x0)?void 0x0:_0x2ce644[_0x1c36(0x15)])||0x0,_0x453fda=_0x2566bc['KNsnV'](_0x458356+_0x29fea7,_0x28793d);console[_0x1c36(0x12)](_0x1c36(0x61)+_0x458356+_0x1c36(0x62)+_0x29fea7+_0x1c36(0x63)+_0x28793d+_0x1c36(0x64)+_0x453fda+')');if(!_0x521d66)return console[_0x1c36(0x1a)]('❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing'),{'success':![],'error':_0x2566bc[_0x1c36(0x65)]};try{const _0x1b1b76=await AsyncStorage[_0x1c36(0x22)](_0x2566bc[_0x1c36(0x66)])||await AsyncStorage[_0x1c36(0x22)](_0x1c36(0xb))||await AsyncStorage[_0x1c36(0x22)]('auth_token');if(!_0x1b1b76){if(_0x2566bc['kNcJH']('xQIBB',_0x1c36(0x67)))return console[_0x1c36(0x1a)](_0x2566bc[_0x1c36(0x68)]),{'success':![],'error':_0x2566bc[_0x1c36(0x69)]};else _0x48adba['warn'](_0x1c36(0x46)+_0x2566bc[_0x1c36(0x6a)](_0x27e2a8,0x1)+':',_0xd2ceae),_0x20a548++;}console[_0x1c36(0x12)](_0x2566bc['unwPU']);const _0xc70c9a=_0x2566bc[_0x1c36(0x6b)],_0x164c33={'platform':_0x2566bc[_0x1c36(0x6c)],'memoriesData':_0x521d66,'metadata':{'source':'react-native-sdk','appVersion':_0xc70c9a,'fetchedAt':new Date()['toISOString']()}},_0x18a539=Object[_0x1c36(0x6d)](_0x2566bc[_0x1c36(0x6e)](_0x521d66,{}));console[_0x1c36(0x12)](_0x1c36(0x6f)),console['log'](_0x1c36(0x70)+API_CONFIG['BASE_URL']+_0x1c36(0x71)),console[_0x1c36(0x12)]('đŸ“Ļ\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20'+_0x18a539[_0x1c36(0x72)](',\x20')),console[_0x1c36(0x12)](_0x1c36(0x73));const _0x239f99=await _0x2566bc['qTtwG'](fetch,API_CONFIG[_0x1c36(0x3a)]+_0x1c36(0x71),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1b1b76,'User-Agent':_0x1c36(0x74)+_0xc70c9a+'\x20('+Platform['OS']+')'},'body':JSON[_0x1c36(0x3e)](_0x164c33)}),_0x46faff=await _0x239f99[_0x1c36(0x3f)]();if(_0x239f99['ok']){const _0x2520df=_0x2566bc[_0x1c36(0x75)]['split']('|');let _0x9c34cb=0x0;while(!![]){switch(_0x2520df[_0x9c34cb++]){case'0':(_0x2c6cf1=_0x46faff[_0x1c36(0x76)])!==null&&_0x2566bc[_0x1c36(0x77)](_0x2c6cf1,void 0x0)&&_0x2c6cf1['memoriesCount']&&console['log'](_0x1c36(0x78)+_0x46faff[_0x1c36(0x76)][_0x1c36(0x79)]+'\x20memory\x20items\x20in\x20database');continue;case'1':return{'success':!![],'message':_0x46faff[_0x1c36(0x1f)]||_0x2566bc[_0x1c36(0x7a)],'data':_0x46faff['data']};case'2':var _0x2c6cf1;continue;case'3':_0x46faff[_0x1c36(0x1f)]&&console[_0x1c36(0x12)](_0x1c36(0x7b)+_0x46faff[_0x1c36(0x1f)]);continue;case'4':console[_0x1c36(0x12)](_0x2566bc[_0x1c36(0x7c)]);continue;}break;}}else return console[_0x1c36(0x43)](_0x1c36(0x49)+_0x239f99[_0x1c36(0x45)]),console[_0x1c36(0x43)](_0x1c36(0x7d)+(_0x46faff[_0x1c36(0x1a)]||_0x2566bc[_0x1c36(0x7e)])),{'success':![],'error':_0x46faff[_0x1c36(0x1a)]||_0x1c36(0x7f)+_0x239f99[_0x1c36(0x45)]};}catch(_0x1b1452){if(_0x2566bc[_0x1c36(0x80)](_0x2566bc['emnsF'],_0x2566bc[_0x1c36(0x81)]))_0x1fa453[_0x1c36(0x12)](_0x1c36(0x7b)+_0x24ee43[_0x1c36(0x1f)]);else return console['error'](_0x2566bc['CkICX'],_0x1b1452),{'success':![],'error':_0x1b1452['message']||_0x1c36(0x82)};}};
@@ -1 +1 @@
1
- import{storeClaudeConversations}from'./claudeConversationService';import{Alert}from'react-native';function _0x292c(_0x4012d9,_0x292c20){_0x4012d9=_0x4012d9-0x0;const _0x5c8ddb=_0x4012();let _0x38d858=_0x5c8ddb[_0x4012d9];return _0x38d858;}function _0x4012(){const _0x14275c=['âš ī¸\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:','👤\x20[CLAUDE_EXTRACTOR]\x20Username:','📊\x20[CLAUDE_EXTRACTOR]\x20Conversations\x20to\x20send:','❌\x20[CLAUDE_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','Data\x20Error','No\x20valid\x20conversations\x20found\x20to\x20export.','📡\x20[CLAUDE_EXTRACTOR]\x20Sending\x20to\x20backend...','✅\x20[CLAUDE_EXTRACTOR]\x20Export\x20completed\x20successfully','📊\x20[CLAUDE_EXTRACTOR]\x20Backend\x20response:','❌\x20[CLAUDE_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','❌\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','log','🚀\x20[CLAUDE_EXTRACTOR]\x20Initiating\x20conversation\x20export','error','XEDDo','alert','IjJAa','tYozk','default','length','â„šī¸\x20[CLAUDE_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','filter','conversation_id','title','isArray','user_messages','ehSiC','warn','BZFKg','AdUge','uGUYH','SCTXw','dXjVA','âš ī¸\x20[CLAUDE_EXTRACTOR]\x20Filtered\x20out\x20','OhFpZ','ULrbL','uoyvi','success','QHTym','data','cAJzE','XIOzQ','RkRkr'];_0x4012=function(){return _0x14275c;};return _0x4012();}export const useClaudeConversationExtractor=()=>{const _0x31f2b3={'ehSiC':function(_0x4f05a4,_0x2082ad){return _0x4f05a4>_0x2082ad;},'BZFKg':_0x292c(0x0),'iwNzn':_0x292c(0x1),'Skbyy':_0x292c(0x2),'XEDDo':'❌\x20[CLAUDE_EXTRACTOR]\x20Username\x20is\x20required','IjJAa':'Error','tYozk':'Username\x20is\x20required\x20to\x20export\x20Claude\x20conversations.','AdUge':_0x292c(0x3),'uGUYH':_0x292c(0x4),'SCTXw':_0x292c(0x5),'dXjVA':'default','hinPV':function(_0x271df0,_0x144521){return _0x271df0<_0x144521;},'OhFpZ':function(_0x14a31a,_0x9faa6c){return _0x14a31a-_0x9faa6c;},'ULrbL':_0x292c(0x6),'uoyvi':function(_0x5405f6,_0x5c4999,_0x42c9e3){return _0x5405f6(_0x5c4999,_0x42c9e3);},'FAUGy':_0x292c(0x7),'QHTym':_0x292c(0x8),'KPFOh':_0x292c(0x9),'cAJzE':_0x292c(0xa),'XIOzQ':'An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','RkRkr':_0x292c(0xb),'BYpAU':_0x292c(0xc)},_0x49a29f=async(_0x11174d,_0x362881)=>{console[_0x292c(0xd)](_0x292c(0xe)),console[_0x292c(0xd)](_0x31f2b3['iwNzn'],_0x11174d),console[_0x292c(0xd)](_0x31f2b3['Skbyy'],_0x362881['length']);if(!_0x11174d)return console[_0x292c(0xf)](_0x31f2b3[_0x292c(0x10)]),Alert[_0x292c(0x11)](_0x31f2b3[_0x292c(0x12)],_0x31f2b3[_0x292c(0x13)],[{'text':'OK','style':_0x292c(0x14)}]),![];if(!_0x362881||_0x362881[_0x292c(0x15)]===0x0)return console[_0x292c(0xd)](_0x292c(0x16)),!![];const _0x5adb27=_0x362881[_0x292c(0x17)](_0x2f3fd2=>{const _0x4addff=_0x2f3fd2[_0x292c(0x18)]&&_0x2f3fd2[_0x292c(0x19)]&&Array[_0x292c(0x1a)](_0x2f3fd2[_0x292c(0x1b)])&&_0x31f2b3[_0x292c(0x1c)](_0x2f3fd2[_0x292c(0x1b)]['length'],0x0);return!_0x4addff&&console[_0x292c(0x1d)](_0x31f2b3[_0x292c(0x1e)],_0x2f3fd2),_0x4addff;});if(_0x5adb27['length']===0x0)return console[_0x292c(0xf)](_0x31f2b3[_0x292c(0x1f)]),Alert['alert'](_0x31f2b3[_0x292c(0x20)],_0x31f2b3[_0x292c(0x21)],[{'text':'OK','style':_0x31f2b3[_0x292c(0x22)]}]),![];_0x31f2b3['hinPV'](_0x5adb27[_0x292c(0x15)],_0x362881['length'])&&console[_0x292c(0x1d)](_0x292c(0x23)+_0x31f2b3[_0x292c(0x24)](_0x362881[_0x292c(0x15)],_0x5adb27['length'])+'\x20invalid\x20conversations');try{console[_0x292c(0xd)](_0x31f2b3[_0x292c(0x25)]);const _0x58229a=await _0x31f2b3[_0x292c(0x26)](storeClaudeConversations,_0x11174d,_0x5adb27);return _0x58229a[_0x292c(0x27)]?(console[_0x292c(0xd)](_0x31f2b3['FAUGy']),console['log'](_0x31f2b3[_0x292c(0x28)],_0x58229a[_0x292c(0x29)]),!![]):(console['error'](_0x31f2b3['KPFOh'],_0x58229a[_0x292c(0xf)]),Alert['alert'](_0x31f2b3[_0x292c(0x2a)],_0x58229a['error']||_0x31f2b3[_0x292c(0x2b)],[{'text':'OK','style':_0x31f2b3[_0x292c(0x22)]}]),![]);}catch(_0x27b3b6){return console[_0x292c(0xf)](_0x31f2b3[_0x292c(0x2c)],_0x27b3b6),Alert[_0x292c(0x11)]('Export\x20Error',_0x31f2b3['BYpAU'],[{'text':'OK','style':_0x31f2b3[_0x292c(0x22)]}]),![];}};return{'initiateConversationExport':_0x49a29f};};
1
+ function _0x5863(){const _0x2e7d6f=['📊\x20[CLAUDE_EXTRACTOR]\x20Backend\x20response:','NPNpG','❌\x20[CLAUDE_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','default','❌\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','â„šī¸\x20[CLAUDE_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','👤\x20[CLAUDE_EXTRACTOR]\x20Username:','Error','No\x20valid\x20conversations\x20found\x20to\x20export.','FQHML','📡\x20[CLAUDE_EXTRACTOR]\x20Sending\x20to\x20backend...','✅\x20[CLAUDE_EXTRACTOR]\x20Export\x20completed\x20successfully','iCVko','fAWiQ','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','log','🚀\x20[CLAUDE_EXTRACTOR]\x20Initiating\x20conversation\x20export','Dmyve','📊\x20[CLAUDE_EXTRACTOR]\x20Conversations\x20to\x20send:','length','error','❌\x20[CLAUDE_EXTRACTOR]\x20Username\x20is\x20required','alert','YukxD','YDvur','jAKDc','ioaPe','filter','Tzivk','conversation_id','title','isArray','NEsCz','user_messages','vtXpP','data','warn','aVoAW','jBSNo','sgVif','gzowk','❌\x20[CLAUDE_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','Data\x20Error','TgIEE','zzFSi','HBeub','âš ī¸\x20[CLAUDE_EXTRACTOR]\x20Filtered\x20out\x20','HSgEq','\x20invalid\x20conversations','VKXVi','Export\x20Error','VVUWy','aldRG','EMdak','success','ClcWO','rnQGP','XEbuf','knNuC','KRrpN'];_0x5863=function(){return _0x2e7d6f;};return _0x5863();}import{storeClaudeConversations}from'./claudeConversationService';import{Alert}from'react-native';function _0x39b1(_0x58637f,_0x39b131){_0x58637f=_0x58637f-0x0;const _0x4459c8=_0x5863();let _0x19332c=_0x4459c8[_0x58637f];return _0x19332c;}export const useClaudeConversationExtractor=()=>{const _0x41bb10={'Tzivk':_0x39b1(0x0),'NEsCz':function(_0x2724f9,_0x211de5){return _0x2724f9>_0x211de5;},'ammVN':function(_0x3a2387,_0x4f7625){return _0x3a2387===_0x4f7625;},'vtXpP':_0x39b1(0x1),'aVoAW':'âš ī¸\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:','gzowk':_0x39b1(0x2),'XEbuf':_0x39b1(0x3),'YDvur':_0x39b1(0x4),'VKXVi':_0x39b1(0x5),'VVUWy':_0x39b1(0x6),'ioaPe':_0x39b1(0x7),'Dmyve':_0x39b1(0x8),'YukxD':_0x39b1(0x9),'jAKDc':function(_0x4ecdd3,_0x4bd96d){return _0x4ecdd3===_0x4bd96d;},'jBSNo':function(_0x25a93f,_0x3dde22){return _0x25a93f!==_0x3dde22;},'sgVif':'hrExh','TgIEE':_0x39b1(0xa),'zzFSi':function(_0x235313,_0x3f7b35){return _0x235313<_0x3f7b35;},'HBeub':_0x39b1(0xb),'HSgEq':function(_0x102a66,_0x58d268){return _0x102a66-_0x58d268;},'aldRG':_0x39b1(0xc),'EMdak':function(_0x1ea49d,_0xfdd37,_0x3e181c){return _0x1ea49d(_0xfdd37,_0x3e181c);},'ClcWO':_0x39b1(0xd),'rnQGP':function(_0x397329,_0x2ad034){return _0x397329!==_0x2ad034;},'nzSHr':_0x39b1(0xe),'sdGnY':_0x39b1(0xf),'knNuC':_0x39b1(0x10)},_0x3488c0=async(_0x3be6f9,_0x28cfa7)=>{const _0x3681ba={'KRrpN':_0x41bb10['ioaPe']};console[_0x39b1(0x11)](_0x39b1(0x12)),console[_0x39b1(0x11)](_0x41bb10[_0x39b1(0x13)],_0x3be6f9),console[_0x39b1(0x11)](_0x39b1(0x14),_0x28cfa7[_0x39b1(0x15)]);if(!_0x3be6f9)return console[_0x39b1(0x16)](_0x39b1(0x17)),Alert[_0x39b1(0x18)](_0x41bb10[_0x39b1(0x19)],'Username\x20is\x20required\x20to\x20export\x20Claude\x20conversations.',[{'text':'OK','style':_0x41bb10[_0x39b1(0x1a)]}]),![];if(!_0x28cfa7||_0x41bb10[_0x39b1(0x1b)](_0x28cfa7['length'],0x0))return console[_0x39b1(0x11)](_0x41bb10[_0x39b1(0x1c)]),!![];const _0x36b5e9=_0x28cfa7[_0x39b1(0x1d)](_0x12809f=>{const _0x236d1f={'KDjZG':_0x41bb10[_0x39b1(0x1e)]},_0x563b27=_0x12809f[_0x39b1(0x1f)]&&_0x12809f[_0x39b1(0x20)]&&Array[_0x39b1(0x21)](_0x12809f['user_messages'])&&_0x41bb10[_0x39b1(0x22)](_0x12809f[_0x39b1(0x23)][_0x39b1(0x15)],0x0);if(!_0x563b27){if(_0x41bb10['ammVN']('GPUEC',_0x41bb10[_0x39b1(0x24)]))return _0xd6b500[_0x39b1(0x11)](_0x39b1(0xd)),_0xed19e0[_0x39b1(0x11)](_0x236d1f['KDjZG'],_0x56d6e6[_0x39b1(0x25)]),!![];else console[_0x39b1(0x26)](_0x41bb10[_0x39b1(0x27)],_0x12809f);}return _0x563b27;});if(_0x36b5e9[_0x39b1(0x15)]===0x0)return _0x41bb10[_0x39b1(0x28)](_0x41bb10[_0x39b1(0x29)],_0x41bb10[_0x39b1(0x29)])?(_0x1e3ebe['error'](_0x41bb10[_0x39b1(0x2a)],_0x42bbfb[_0x39b1(0x16)]),Alert[_0x39b1(0x18)](_0x41bb10['XEbuf'],_0x477174[_0x39b1(0x16)]||'An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.',[{'text':'OK','style':_0x41bb10[_0x39b1(0x1a)]}]),![]):(console['error'](_0x39b1(0x2b)),Alert[_0x39b1(0x18)](_0x39b1(0x2c),_0x41bb10[_0x39b1(0x2d)],[{'text':'OK','style':_0x41bb10['YDvur']}]),![]);if(_0x41bb10[_0x39b1(0x2e)](_0x36b5e9[_0x39b1(0x15)],_0x28cfa7[_0x39b1(0x15)])){if(_0x41bb10[_0x39b1(0x1b)](_0x39b1(0xb),_0x41bb10[_0x39b1(0x2f)]))console[_0x39b1(0x26)](_0x39b1(0x30)+_0x41bb10[_0x39b1(0x31)](_0x28cfa7[_0x39b1(0x15)],_0x36b5e9['length'])+_0x39b1(0x32));else return _0x1dcf70[_0x39b1(0x16)](_0x41bb10[_0x39b1(0x33)],_0x25a35b),Alert[_0x39b1(0x18)](_0x39b1(0x34),_0x41bb10[_0x39b1(0x35)],[{'text':'OK','style':'default'}]),![];}try{console[_0x39b1(0x11)](_0x41bb10[_0x39b1(0x36)]);const _0x2d6209=await _0x41bb10[_0x39b1(0x37)](storeClaudeConversations,_0x3be6f9,_0x36b5e9);return _0x2d6209[_0x39b1(0x38)]?(console[_0x39b1(0x11)](_0x41bb10[_0x39b1(0x39)]),console[_0x39b1(0x11)](_0x41bb10[_0x39b1(0x1e)],_0x2d6209[_0x39b1(0x25)]),!![]):_0x41bb10[_0x39b1(0x3a)](_0x41bb10['nzSHr'],_0x41bb10['sdGnY'])?(console[_0x39b1(0x16)](_0x39b1(0x2),_0x2d6209[_0x39b1(0x16)]),Alert[_0x39b1(0x18)](_0x41bb10[_0x39b1(0x3b)],_0x2d6209[_0x39b1(0x16)]||_0x41bb10[_0x39b1(0x3c)],[{'text':'OK','style':_0x41bb10[_0x39b1(0x1a)]}]),![]):(_0x4019c0[_0x39b1(0x11)](_0x3681ba[_0x39b1(0x3d)]),!![]);}catch(_0x77ebec){return console['error'](_0x41bb10['VKXVi'],_0x77ebec),Alert['alert'](_0x39b1(0x34),_0x41bb10[_0x39b1(0x35)],[{'text':'OK','style':'default'}]),![];}};return{'initiateConversationExport':_0x3488c0};};