@onairos/react-native 3.6.7 → 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';import{Platform}from'react-native';const PIN_SERVICE_KEY=_0x4643(0x0),PIN_USERNAME=_0x4643(0x1);export const isBiometricAvailable=async()=>{const _0x1496b9={'HIQGc':'✅\x20PIN\x20retrieved\x20successfully','Bhnje':function(_0xb72e3e,_0x552aa2){return _0xb72e3e===_0x552aa2;},'VTUxc':function(_0x70cec,_0xa517be){return _0x70cec===_0xa517be;},'WTxdW':_0x4643(0x2)};try{const _0x17c757=await Keychain[_0x4643(0x3)]();return console[_0x4643(0x4)](_0x4643(0x5),_0x17c757),_0x17c757===Keychain[_0x4643(0x6)][_0x4643(0x7)]||_0x1496b9[_0x4643(0x8)](_0x17c757,Keychain[_0x4643(0x6)][_0x4643(0x9)])||_0x1496b9[_0x4643(0x8)](_0x17c757,Keychain['BIOMETRY_TYPE']['FINGERPRINT'])||_0x1496b9[_0x4643(0xa)](_0x17c757,Keychain[_0x4643(0x6)][_0x4643(0xb)])||_0x1496b9['Bhnje'](_0x17c757,Keychain['BIOMETRY_TYPE'][_0x4643(0xc)]);}catch(_0x178663){return _0x1496b9['VTUxc'](_0x4643(0x2),_0x1496b9[_0x4643(0xd)])?(console[_0x4643(0xe)]('❌\x20Error\x20checking\x20biometric\x20availability:',_0x178663),![]):(_0x556784[_0x4643(0x4)](_0x1496b9[_0x4643(0xf)]),_0x31e6ff[_0x4643(0x10)]);}};export const storePinWithBiometric=async _0x394635=>{const _0x451f22={'aaIxd':'❌\x20Error\x20removing\x20PIN\x20from\x20storage:','BCFYD':'🔐\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','IXWmp':function(_0x4777ec){return _0x4777ec();},'pECTJ':_0x4643(0x11),'DpakY':function(_0x2672e2,_0x3eb1d2){return _0x2672e2===_0x3eb1d2;},'vuDLj':_0x4643(0x12),'PRZrs':_0x4643(0x13),'oJcua':_0x4643(0x14),'PNrVq':function(_0x35a3a8,_0x5bac8a){return _0x35a3a8===_0x5bac8a;},'HgpZT':_0x4643(0x15),'pnSHq':_0x4643(0x16),'YaTcR':_0x4643(0x17),'TdJlF':_0x4643(0x18),'oZnrS':'yGwfD','pUTkB':_0x4643(0x19),'nNbQt':'❌\x20Error\x20details:','uKWXg':function(_0x10576e,_0x2cd832){return _0x10576e!==_0x2cd832;},'AVzJd':function(_0x2fbbf5,_0x75adcc){return _0x2fbbf5!==_0x75adcc;},'DmqfF':function(_0x40454d,_0x472ad8){return _0x40454d!==_0x472ad8;},'VadbP':_0x4643(0x1a),'vFKXJ':function(_0x3a3a71,_0x1e6c56){return _0x3a3a71===_0x1e6c56;},'lsQeH':function(_0x3112f7,_0x133d21){return _0x3112f7===_0x133d21;},'NTGjW':_0x4643(0x1b),'lqrAk':function(_0xf9f923,_0x1a9cc8){return _0xf9f923!==_0x1a9cc8;},'JVzKs':function(_0x26447e,_0x4c88df){return _0x26447e!==_0x4c88df;},'fGjRD':_0x4643(0x1c),'vxkLO':function(_0xd562b1,_0x2212d9){return _0xd562b1===_0x2212d9;},'MwwCa':function(_0x2e6026,_0x5d7f35){return _0x2e6026===_0x5d7f35;},'HUkmn':_0x4643(0x1d),'DteDE':_0x4643(0x1e),'AKLES':'đŸšĢ\x20Face\x20ID\x20authentication\x20failed','BLxWv':_0x4643(0x1f),'rRRnV':_0x4643(0x20)};try{console[_0x4643(0x4)](_0x451f22[_0x4643(0x21)]);const _0x3b6eec=await _0x451f22[_0x4643(0x22)](isBiometricAvailable);if(!_0x3b6eec)return console[_0x4643(0xe)](_0x451f22[_0x4643(0x23)]),![];console['log'](_0x4643(0x24));const _0x2807ee={'accessControl':Keychain[_0x4643(0x25)][_0x4643(0x26)],'authenticationType':Keychain['AUTHENTICATION_TYPE'][_0x4643(0x27)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._0x451f22[_0x4643(0x28)](Platform['OS'],_0x451f22[_0x4643(0x29)])&&{'localizedPrompt':_0x451f22['PRZrs'],'localizedCancel':_0x451f22[_0x4643(0x2a)]},..._0x451f22['PNrVq'](Platform['OS'],_0x4643(0x2b))&&{'promptMessage':_0x451f22[_0x4643(0x2c)],'cancelButtonText':_0x451f22[_0x4643(0x2a)]}};console['log'](_0x451f22[_0x4643(0x2d)]);const _0x27e3a0=await Keychain[_0x4643(0x2e)](PIN_USERNAME,_0x394635,{'service':PIN_SERVICE_KEY,..._0x2807ee});return console['log'](_0x451f22[_0x4643(0x2f)]),console['log'](_0x451f22[_0x4643(0x30)],_0x27e3a0),!![];}catch(_0x30de5c){if(_0x451f22['oZnrS']===_0x4643(0x31)){var _0x1862eb,_0x30920c,_0x104d79,_0x340331;console[_0x4643(0xe)](_0x451f22[_0x4643(0x32)],_0x30de5c),console['error'](_0x451f22[_0x4643(0x33)],{'message':_0x30de5c[_0x4643(0x34)],'code':_0x30de5c[_0x4643(0x35)],'domain':_0x30de5c[_0x4643(0x36)],'userInfo':_0x30de5c[_0x4643(0x37)]});if(_0x451f22[_0x4643(0x38)](_0x30de5c,null)&&_0x451f22[_0x4643(0x39)](_0x30de5c,void 0x0)&&_0x451f22[_0x4643(0x3a)](_0x1862eb=_0x30de5c[_0x4643(0x34)],null)&&_0x451f22[_0x4643(0x3a)](_0x1862eb,void 0x0)&&_0x1862eb[_0x4643(0x3b)](_0x451f22[_0x4643(0x3c)])||_0x451f22[_0x4643(0x3d)](_0x451f22[_0x4643(0x3e)](_0x30de5c,null)||_0x451f22[_0x4643(0x3f)](_0x30de5c,void 0x0)?void 0x0:_0x30de5c[_0x4643(0x35)],-0x80))return console[_0x4643(0x4)](_0x451f22[_0x4643(0x40)]),![];else{if(_0x451f22[_0x4643(0x41)](_0x30de5c,null)&&_0x451f22[_0x4643(0x41)](_0x30de5c,void 0x0)&&_0x451f22[_0x4643(0x38)](_0x30920c=_0x30de5c['message'],null)&&_0x451f22[_0x4643(0x42)](_0x30920c,void 0x0)&&_0x30920c['includes'](_0x451f22[_0x4643(0x43)])||(_0x451f22[_0x4643(0x44)](_0x30de5c,null)||_0x451f22[_0x4643(0x45)](_0x30de5c,void 0x0)?void 0x0:_0x30de5c[_0x4643(0x35)])===-0x6)return console[_0x4643(0x4)](_0x4643(0x46)),![];else{if(_0x451f22[_0x4643(0x38)](_0x30de5c,null)&&_0x451f22['JVzKs'](_0x30de5c,void 0x0)&&(_0x104d79=_0x30de5c[_0x4643(0x34)])!==null&&_0x104d79!==void 0x0&&_0x104d79[_0x4643(0x3b)](_0x4643(0x47))||(_0x30de5c===null||_0x30de5c===void 0x0?void 0x0:_0x30de5c[_0x4643(0x35)])===-0x1)return _0x451f22['uKWXg'](_0x451f22[_0x4643(0x48)],_0x451f22[_0x4643(0x49)])?(console[_0x4643(0x4)](_0x451f22['AKLES']),![]):(_0x1da8af[_0x4643(0x4)](_0x4643(0x4a)),null);else{if(_0x451f22['uKWXg'](_0x30de5c,null)&&_0x451f22[_0x4643(0x42)](_0x30de5c,void 0x0)&&(_0x340331=_0x30de5c['message'])!==null&&_0x451f22[_0x4643(0x3a)](_0x340331,void 0x0)&&_0x340331['includes'](_0x451f22[_0x4643(0x4b)])||(_0x451f22[_0x4643(0x28)](_0x30de5c,null)||_0x30de5c===void 0x0?void 0x0:_0x30de5c['code'])===-0x8)return console[_0x4643(0x4)](_0x4643(0x4c)),![];}}}return console[_0x4643(0xe)](_0x451f22[_0x4643(0x4d)],_0x30de5c['message']),![];}else return _0x1ce5c9[_0x4643(0xe)](_0x451f22[_0x4643(0x4e)],_0x3a0a55),![];}};export const retrievePinWithBiometric=async()=>{const _0xa5ab4b={'FlqOb':_0x4643(0x4f),'tbYkb':function(_0x57ad53,_0x3f2c0b){return _0x57ad53!==_0x3f2c0b;},'VYrBF':function(_0x285894,_0x2e32a1){return _0x285894!==_0x2e32a1;},'dxIZR':'UserCancel','dXwwi':function(_0x5bca5a,_0x469b1f){return _0x5bca5a!==_0x469b1f;},'CESYA':'BiometryNotAvailable','IaMKv':_0x4643(0x50),'qluoW':_0x4643(0x51),'BiMqi':_0x4643(0x52),'lrsZV':'âš ī¸\x20No\x20PIN\x20found\x20in\x20secure\x20storage','EnXCu':function(_0x5e5e86,_0x2b2d08){return _0x5e5e86===_0x2b2d08;},'uTOFl':_0x4643(0x53),'TORaD':function(_0x592372,_0x1ec12e){return _0x592372!==_0x1ec12e;},'Rsbce':function(_0x4561b9,_0x2236c5){return _0x4561b9!==_0x2236c5;},'tenGy':_0x4643(0x54),'yHOhU':function(_0x346dee,_0x5b28ef){return _0x346dee!==_0x5b28ef;},'gwzpF':function(_0x481656,_0x3dff08){return _0x481656!==_0x3dff08;}};try{console[_0x4643(0x4)](_0xa5ab4b[_0x4643(0x55)]);const _0x782491=await Keychain[_0x4643(0x56)]({'service':PIN_SERVICE_KEY});return _0x782491&&_0x782491[_0x4643(0x10)]?(console[_0x4643(0x4)](_0xa5ab4b[_0x4643(0x57)]),_0x782491[_0x4643(0x10)]):(console['log'](_0xa5ab4b[_0x4643(0x58)]),null);}catch(_0x1254c8){if(_0xa5ab4b[_0x4643(0x59)]('zngiE',_0xa5ab4b[_0x4643(0x5a)])){var _0x2967ee,_0x9903b0;_0x3e60f4[_0x4643(0xe)](_0xa5ab4b[_0x4643(0x5b)],_0x207515);if(_0xa5ab4b[_0x4643(0x5c)](_0x3480d2,null)&&_0xa5ab4b[_0x4643(0x5c)](_0x23d1b1,void 0x0)&&_0xa5ab4b[_0x4643(0x5d)](_0x2967ee=_0x1480a5[_0x4643(0x34)],null)&&_0xa5ab4b[_0x4643(0x5c)](_0x2967ee,void 0x0)&&_0x2967ee[_0x4643(0x3b)](_0xa5ab4b[_0x4643(0x5e)]))return _0x2e90cc['log']('👤\x20User\x20cancelled\x20biometric\x20authentication'),null;else{if(_0x1b7241!==null&&_0xa5ab4b[_0x4643(0x5f)](_0x3d5bbd,void 0x0)&&_0xa5ab4b[_0x4643(0x5f)](_0x9903b0=_0x2c0ef1[_0x4643(0x34)],null)&&_0xa5ab4b['VYrBF'](_0x9903b0,void 0x0)&&_0x9903b0[_0x4643(0x3b)](_0xa5ab4b[_0x4643(0x60)]))return _0x3a385b['log'](_0xa5ab4b[_0x4643(0x61)]),null;}return null;}else{var _0x1ae2f0,_0x3b7305;console[_0x4643(0xe)](_0xa5ab4b['FlqOb'],_0x1254c8);if(_0x1254c8!==null&&_0xa5ab4b[_0x4643(0x5d)](_0x1254c8,void 0x0)&&_0xa5ab4b['TORaD'](_0x1ae2f0=_0x1254c8[_0x4643(0x34)],null)&&_0xa5ab4b[_0x4643(0x62)](_0x1ae2f0,void 0x0)&&_0x1ae2f0[_0x4643(0x3b)](_0xa5ab4b['dxIZR']))return console[_0x4643(0x4)](_0xa5ab4b[_0x4643(0x63)]),null;else{if(_0xa5ab4b['tbYkb'](_0x1254c8,null)&&_0xa5ab4b[_0x4643(0x64)](_0x1254c8,void 0x0)&&_0xa5ab4b['gwzpF'](_0x3b7305=_0x1254c8[_0x4643(0x34)],null)&&_0xa5ab4b[_0x4643(0x5d)](_0x3b7305,void 0x0)&&_0x3b7305['includes'](_0x4643(0x1c)))return console[_0x4643(0x4)](_0x4643(0x50)),null;}return null;}}};export const isPinStored=async()=>{try{const _0x443b36=await Keychain[_0x4643(0x56)]({'service':PIN_SERVICE_KEY});return!!(_0x443b36&&_0x443b36[_0x4643(0x10)]);}catch(_0xd83758){return console[_0x4643(0xe)](_0x4643(0x65),_0xd83758),![];}};function _0x4643(_0x366255,_0x46432e){_0x366255=_0x366255-0x0;const _0x277a28=_0x3662();let _0x4c5694=_0x277a28[_0x366255];return _0x4c5694;}function _0x3662(){const _0x1d05e3=['OnairosEventsPIN','user_pin','VyFfp','getSupportedBiometryType','log','📱\x20Biometric\x20support:','BIOMETRY_TYPE','FACE_ID','Bhnje','TOUCH_ID','VTUxc','FACE','IRIS','WTxdW','error','HIQGc','password','❌\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','ios','Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','Cancel','Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','👤\x20Requesting\x20Face\x20ID\x20authentication...','✅\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','🔍\x20Keychain\x20storage\x20result:','❌\x20Face\x20ID\x20authentication\x20failed:','UserCancel','👤\x20User\x20cancelled\x20Face\x20ID\x20authentication','BiometryNotAvailable','FRLFg','IcTWW','BiometryLockout','❌\x20Unknown\x20Face\x20ID\x20error:','BCFYD','IXWmp','pECTJ','📱\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ACCESS_CONTROL','BIOMETRY_CURRENT_SET','BIOMETRICS','DpakY','vuDLj','oJcua','android','HgpZT','pnSHq','setGenericPassword','YaTcR','TdJlF','yGwfD','pUTkB','nNbQt','message','code','domain','userInfo','uKWXg','AVzJd','DmqfF','includes','VadbP','vFKXJ','PNrVq','lsQeH','NTGjW','lqrAk','JVzKs','fGjRD','vxkLO','MwwCa','📱\x20Face\x20ID/Touch\x20ID\x20not\x20available','AuthenticationFailed','HUkmn','DteDE','âš ī¸\x20No\x20PIN\x20found\x20in\x20secure\x20storage','BLxWv','🔒\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','rRRnV','aaIxd','❌\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','📱\x20Biometric\x20not\x20available','🔓\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','✅\x20PIN\x20retrieved\x20successfully','vtRbR','👤\x20User\x20cancelled\x20biometric\x20authentication','qluoW','getGenericPassword','BiMqi','lrsZV','EnXCu','uTOFl','FlqOb','tbYkb','VYrBF','dxIZR','dXwwi','CESYA','IaMKv','Rsbce','tenGy','yHOhU','❌\x20Error\x20checking\x20PIN\x20storage:','đŸ—‘ī¸\x20Removing\x20PIN\x20from\x20secure\x20storage...','✅\x20PIN\x20removed\x20successfully','Hnpaj','resetGenericPassword','EzrXk','PfUee'];_0x3662=function(){return _0x1d05e3;};return _0x3662();}export const removePinFromStorage=async()=>{const _0x22870f={'Hnpaj':_0x4643(0x66),'EzrXk':_0x4643(0x67),'PfUee':'❌\x20Error\x20removing\x20PIN\x20from\x20storage:'};try{return console[_0x4643(0x4)](_0x22870f[_0x4643(0x68)]),await Keychain[_0x4643(0x69)]({'service':PIN_SERVICE_KEY}),console['log'](_0x22870f[_0x4643(0x6a)]),!![];}catch(_0x31f4c9){return console[_0x4643(0xe)](_0x22870f[_0x4643(0x6b)],_0x31f4c9),![];}};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 _0x1a65(){const _0x5ae15a=['✅\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully','❌\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','default','❌\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','Export\x20Failed','FNkza','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','🚀\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','👤\x20[CHATGPT_EXTRACTOR]\x20Username:','📊\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','naDUy','❌\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','â„šī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','KEorn','Data\x20Error','No\x20valid\x20conversations\x20found\x20to\x20export.','lQrig','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','FAzEX','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','✅\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','CHzuH','🧠\x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','hLrdB','❌\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','VdaGu','dAVeF','SanLB','ZFKUY','Dwknw','TydED','vylNf','log','tenwc','length','zhkHN','PVfuK','error','lpbes','iKTDs','wmSJN','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','filter','❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','ntEhx','BmXee','nkxNl','kQYAY','xAjXo','conversation_id','title','isArray','user_messages','EqqaE','pQLFX','WlvjW','qXmuN','alert','IFxnr','hCTZY','JAGeZ','warn','grGBM','📋\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20','data','memoriesCount','\x20memories','zJpBv','âš ī¸\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','XXGOa','\x20invalid\x20conversations','wpJPR','VUFrI','FUEsW','📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:','xyVyk','jaZEH','GIuEQ','cHbnF','mOdJr','PkjcD','hyfQx','mHVyg','puguM','JfIAf','iGwkJ','WtPjF','BgmmR','uVQUO','MhiuF','mddMy','riQgq','gAxAC','KCpmC','rbyTN','owhaR','BZqAb','items','memory_entries','QoFKc','xQQCp','📋\x20[CHATGPT_EXTRACTOR]\x20Found\x20','\x20memory\x20items,\x20','\x20memory\x20entries,\x20','📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','VhEEX','success','nadEp','haFaV','uIBSQ'];_0x1a65=function(){return _0x5ae15a;};return _0x1a65();}function _0x223a(_0x1a6517,_0x223a6a){_0x1a6517=_0x1a6517-0x0;const _0x36075a=_0x1a65();let _0x198cf8=_0x36075a[_0x1a6517];return _0x198cf8;}import{storeChatGPTConversations,storeChatGPTMemories}from'./chatGPTConversationService';import{Alert}from'react-native';export const useChatGPTConversationExtractor=()=>{const _0x34cfe4={'cHbnF':_0x223a(0x0),'mOdJr':function(_0x4ae770,_0x4e037e){return _0x4ae770!==_0x4e037e;},'ZFKUY':function(_0x17f2db,_0x45b7b4){return _0x17f2db!==_0x45b7b4;},'JfIAf':_0x223a(0x1),'wmSJN':_0x223a(0x2),'VdaGu':_0x223a(0x3),'dAVeF':_0x223a(0x4),'SanLB':'nkxNl','Dwknw':_0x223a(0x5),'TydED':_0x223a(0x6),'vylNf':_0x223a(0x7),'PfuXV':_0x223a(0x8),'tenwc':_0x223a(0x9),'zhkHN':function(_0x2f4b88,_0x28bd3b){return _0x2f4b88===_0x28bd3b;},'PVfuK':_0x223a(0xa),'YrRAn':_0x223a(0xb),'lpbes':'Error','iKTDs':_0x223a(0xc),'jbgsE':_0x223a(0xd),'yGCqb':_0x223a(0xe),'GCMcR':_0x223a(0xf),'zJpBv':_0x223a(0x10),'QrloJ':function(_0x18ac32,_0x5176cb){return _0x18ac32<_0x5176cb;},'XXGOa':function(_0x15d992,_0x338482){return _0x15d992-_0x338482;},'wpJPR':function(_0x2884ae,_0x4ae647){return _0x2884ae===_0x4ae647;},'cvife':'VUFrI','pVVhj':'📡\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','FUEsW':function(_0x33b009,_0x505b9f,_0x97bb03){return _0x33b009(_0x505b9f,_0x97bb03);},'TpYHK':_0x223a(0x11),'jaZEH':'❌\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','GIuEQ':_0x223a(0x12),'hyfQx':function(_0x12bc1e,_0x5aa93d){return _0x12bc1e===_0x5aa93d;},'puguM':_0x223a(0x13),'iGwkJ':_0x223a(0x14),'WtPjF':_0x223a(0x15),'AsBZJ':_0x223a(0x16),'rbRSX':_0x223a(0x17),'BgmmR':function(_0x1a6aa0,_0x1598ac){return _0x1a6aa0===_0x1598ac;},'uVQUO':_0x223a(0x18),'Ohyil':_0x223a(0x19),'KCpmC':'âš ī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','rbyTN':function(_0x44c815,_0x560bfc){return _0x44c815===_0x560bfc;},'owhaR':function(_0x146b16,_0x2dc65b){return _0x146b16===_0x2dc65b;},'BZqAb':function(_0x4bd9b3,_0x471d69){return _0x4bd9b3===_0x471d69;},'xQQCp':function(_0x3cf5cd,_0x1c091c){return _0x3cf5cd===_0x1c091c;},'QoFKc':function(_0x51243e,_0xd58993){return _0x51243e===_0xd58993;},'VhEEX':function(_0x553ebd,_0x2c9f47){return _0x553ebd(_0x2c9f47);},'Oidpb':function(_0x376354,_0xc6c02b){return _0x376354!==_0xc6c02b;},'nadEp':_0x223a(0x1a),'haFaV':function(_0x34009e,_0x59ed6e){return _0x34009e!==_0x59ed6e;},'uIBSQ':_0x223a(0x1b)},_0x1034c2=async(_0x2a3e4e,_0x172b64)=>{const _0x2a9180={'fGyMv':_0x34cfe4[_0x223a(0x1c)],'ntEhx':_0x34cfe4[_0x223a(0x1d)],'BmXee':_0x223a(0x12),'kQYAY':_0x34cfe4[_0x223a(0x1e)],'EqqaE':function(_0x58e8ad,_0x25a1b3){return _0x58e8ad>_0x25a1b3;},'pQLFX':function(_0x1d85b6,_0x549953){return _0x34cfe4[_0x223a(0x1f)](_0x1d85b6,_0x549953);},'WlvjW':_0x34cfe4[_0x223a(0x20)],'grGBM':_0x34cfe4[_0x223a(0x21)],'PkjcD':function(_0x4eb7b5,_0x10b520){return _0x4eb7b5-_0x10b520;}};console['log'](_0x34cfe4[_0x223a(0x22)]),console['log'](_0x34cfe4['PfuXV'],_0x2a3e4e),console[_0x223a(0x23)](_0x34cfe4[_0x223a(0x24)],_0x172b64[_0x223a(0x25)]);if(!_0x2a3e4e)return _0x34cfe4[_0x223a(0x26)](_0x34cfe4[_0x223a(0x27)],_0x34cfe4[_0x223a(0x27)])?(console[_0x223a(0x28)](_0x34cfe4['YrRAn']),Alert['alert'](_0x34cfe4[_0x223a(0x29)],_0x34cfe4[_0x223a(0x2a)],[{'text':'OK','style':_0x34cfe4[_0x223a(0x2b)]}]),![]):(_0x105f6b['warn'](_0x223a(0x2c)),![]);if(!_0x172b64||_0x34cfe4['zhkHN'](_0x172b64[_0x223a(0x25)],0x0))return console[_0x223a(0x23)](_0x34cfe4['jbgsE']),!![];const _0x4c675e=_0x172b64[_0x223a(0x2d)](_0x52965c=>{const _0x15c519={'xAjXo':_0x2a9180['fGyMv'],'qXmuN':_0x223a(0x2e),'IFxnr':_0x2a9180[_0x223a(0x2f)],'hCTZY':_0x2a9180[_0x223a(0x30)],'JAGeZ':_0x223a(0x2)};if(_0x223a(0x31)!==_0x2a9180[_0x223a(0x32)])return _0x44c297['error'](_0x15c519[_0x223a(0x33)],_0x14d1b3[_0x223a(0x28)]),![];else{const _0x3065e5=_0x52965c[_0x223a(0x34)]&&_0x52965c[_0x223a(0x35)]&&Array[_0x223a(0x36)](_0x52965c[_0x223a(0x37)])&&_0x2a9180[_0x223a(0x38)](_0x52965c[_0x223a(0x37)][_0x223a(0x25)],0x0);if(!_0x3065e5){if(_0x2a9180[_0x223a(0x39)](_0x2a9180['WlvjW'],_0x2a9180[_0x223a(0x3a)]))return _0x52896d[_0x223a(0x28)](_0x15c519[_0x223a(0x3b)],_0x346429[_0x223a(0x28)]),Alert[_0x223a(0x3c)](_0x15c519[_0x223a(0x3d)],_0x5313f9[_0x223a(0x28)]||_0x15c519[_0x223a(0x3e)],[{'text':'OK','style':_0x15c519[_0x223a(0x3f)]}]),![];else console[_0x223a(0x40)](_0x2a9180[_0x223a(0x41)],_0x52965c);}return _0x3065e5;}});if(_0x4c675e[_0x223a(0x25)]===0x0){if(_0x34cfe4['yGCqb']!==_0x223a(0xe))_0x4ed471[_0x223a(0x23)](_0x223a(0x42)+_0x56ace7[_0x223a(0x43)][_0x223a(0x44)]+_0x223a(0x45));else return console[_0x223a(0x28)](_0x223a(0x1)),Alert['alert'](_0x34cfe4['GCMcR'],_0x34cfe4[_0x223a(0x46)],[{'text':'OK','style':_0x34cfe4['wmSJN']}]),![];}_0x34cfe4['QrloJ'](_0x4c675e[_0x223a(0x25)],_0x172b64['length'])&&console[_0x223a(0x40)](_0x223a(0x47)+_0x34cfe4[_0x223a(0x48)](_0x172b64['length'],_0x4c675e['length'])+_0x223a(0x49));try{if(_0x34cfe4[_0x223a(0x4a)](_0x34cfe4['cvife'],_0x223a(0x4b))){console[_0x223a(0x23)](_0x34cfe4['pVVhj']);const _0x3a1413=await _0x34cfe4[_0x223a(0x4c)](storeChatGPTConversations,_0x2a3e4e,_0x4c675e);if(_0x3a1413['success'])return console[_0x223a(0x23)]('✅\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully'),console[_0x223a(0x23)](_0x223a(0x4d),_0x3a1413['data']),!![];else{if(_0x223a(0x4e)!==_0x34cfe4['TpYHK'])return console['error'](_0x34cfe4[_0x223a(0x4f)],_0x3a1413[_0x223a(0x28)]),Alert[_0x223a(0x3c)](_0x223a(0x4),_0x3a1413[_0x223a(0x28)]||_0x34cfe4[_0x223a(0x50)],[{'text':'OK','style':_0x34cfe4[_0x223a(0x2b)]}]),![];else{var _0x5624f1;return _0x5e26ea[_0x223a(0x23)](_0x34cfe4[_0x223a(0x51)]),_0x34cfe4[_0x223a(0x52)](_0x5624f1=_0x1e865a['data'],null)&&_0x34cfe4[_0x223a(0x1f)](_0x5624f1,void 0x0)&&_0x5624f1[_0x223a(0x44)]&&_0x200525[_0x223a(0x23)](_0x223a(0x42)+_0x4177c0[_0x223a(0x43)][_0x223a(0x44)]+_0x223a(0x45)),!![];}}}else _0x4b5eeb[_0x223a(0x40)](_0x223a(0x47)+_0x2a9180[_0x223a(0x53)](_0x573798[_0x223a(0x25)],_0x39eea9[_0x223a(0x25)])+_0x223a(0x49));}catch(_0x11f57e){return _0x34cfe4[_0x223a(0x54)](_0x223a(0x55),_0x34cfe4[_0x223a(0x56)])?(_0x271af2[_0x223a(0x28)](_0x34cfe4[_0x223a(0x57)]),Alert[_0x223a(0x3c)](_0x223a(0xf),_0x223a(0x10),[{'text':'OK','style':_0x34cfe4[_0x223a(0x2b)]}]),![]):(console[_0x223a(0x28)](_0x34cfe4[_0x223a(0x58)],_0x11f57e),Alert['alert'](_0x34cfe4['WtPjF'],_0x34cfe4['AsBZJ'],[{'text':'OK','style':_0x223a(0x2)}]),![]);}},_0x5ccf3d=async _0x4d6357=>{const _0x272d61={'MhiuF':_0x34cfe4['iGwkJ'],'mddMy':_0x34cfe4[_0x223a(0x59)],'riQgq':_0x34cfe4['AsBZJ'],'gAxAC':_0x34cfe4['wmSJN']};if(_0x34cfe4[_0x223a(0x5a)](_0x34cfe4[_0x223a(0x5b)],'XZCea'))return _0x591aad[_0x223a(0x28)](_0x272d61[_0x223a(0x5c)],_0x3caada),Alert[_0x223a(0x3c)](_0x272d61[_0x223a(0x5d)],_0x272d61[_0x223a(0x5e)],[{'text':'OK','style':_0x272d61[_0x223a(0x5f)]}]),![];else{var _0x2879ba,_0xf3bb15,_0x2a7db2;console[_0x223a(0x23)](_0x34cfe4['Ohyil']);if(!_0x4d6357)return console['warn'](_0x34cfe4[_0x223a(0x60)]),![];const _0x3a8cc7=(_0x34cfe4[_0x223a(0x61)](_0x4d6357,null)||_0x34cfe4[_0x223a(0x62)](_0x4d6357,void 0x0)||_0x34cfe4[_0x223a(0x63)](_0x2879ba=_0x4d6357[_0x223a(0x64)],null)||_0x2879ba===void 0x0?void 0x0:_0x2879ba[_0x223a(0x25)])||0x0,_0x33011a=(_0x34cfe4['wpJPR'](_0x4d6357,null)||_0x34cfe4['xQQCp'](_0x4d6357,void 0x0)||_0x34cfe4[_0x223a(0x61)](_0xf3bb15=_0x4d6357[_0x223a(0x65)],null)||_0x34cfe4[_0x223a(0x62)](_0xf3bb15,void 0x0)?void 0x0:_0xf3bb15[_0x223a(0x25)])||0x0,_0x5363f1=(_0x4d6357===null||_0x34cfe4[_0x223a(0x66)](_0x4d6357,void 0x0)||_0x34cfe4[_0x223a(0x66)](_0x2a7db2=_0x4d6357['memories'],null)||_0x34cfe4[_0x223a(0x67)](_0x2a7db2,void 0x0)?void 0x0:_0x2a7db2['length'])||0x0;console[_0x223a(0x23)](_0x223a(0x68)+_0x3a8cc7+_0x223a(0x69)+_0x33011a+_0x223a(0x6a)+_0x5363f1+_0x223a(0x45));if(_0x3a8cc7===0x0&&_0x34cfe4[_0x223a(0x62)](_0x33011a,0x0)&&_0x34cfe4[_0x223a(0x66)](_0x5363f1,0x0))return console[_0x223a(0x23)]('â„šī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success'),!![];try{console[_0x223a(0x23)](_0x223a(0x6b));const _0x18c78c=await _0x34cfe4[_0x223a(0x6c)](storeChatGPTMemories,_0x4d6357);if(_0x18c78c[_0x223a(0x6d)]){if(_0x34cfe4['Oidpb'](_0x223a(0x1a),_0x34cfe4[_0x223a(0x6e)]))return _0xedadaa[_0x223a(0x23)](_0x34cfe4['rbRSX']),_0x39e125[_0x223a(0x23)]('📊\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:',_0x2d6997[_0x223a(0x43)]),!![];else{var _0x461306;return console['log'](_0x34cfe4[_0x223a(0x51)]),_0x34cfe4[_0x223a(0x6f)](_0x461306=_0x18c78c[_0x223a(0x43)],null)&&_0x461306!==void 0x0&&_0x461306['memoriesCount']&&console[_0x223a(0x23)](_0x223a(0x42)+_0x18c78c['data'][_0x223a(0x44)]+'\x20memories'),!![];}}else return console[_0x223a(0x28)](_0x34cfe4['VdaGu'],_0x18c78c[_0x223a(0x28)]),![];}catch(_0x52187e){return console[_0x223a(0x28)](_0x34cfe4[_0x223a(0x70)],_0x52187e),![];}}};return{'initiateConversationExport':_0x1034c2,'storeMemories':_0x5ccf3d};};
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';import AsyncStorage from'@react-native-async-storage/async-storage';function _0x3016(_0x38aca0,_0x301673){_0x38aca0=_0x38aca0-0x0;const _0x1a4205=_0x38ac();let _0x3bcb6d=_0x1a4205[_0x38aca0];return _0x3bcb6d;}function _0x38ac(){const _0x9832ce=['❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','🚀\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','📊\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','YNDiA','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','pwghv','lZXLN','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','17.0','iPhone','SQmYq','zJHnj','SLRvM','blwmj','❌\x20[CHATGPT_SERVICE]\x20Network\x20error:','qPPDF','log','ZmqBU','📊\x20[CHATGPT_SERVICE]\x20Total\x20messages:','reduce','length','luULc','YvXwK','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','❌\x20[CHATGPT_SERVICE]\x20Invalid\x20input','gmiMN','getItem','onairos_jwt_token','enoch_token','xZfDr','hkDbg','WTBFS','error','ZijQu','KtmCx','warn','âš ī¸\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20','status','GmbbY','1.0.0','ios','hPChL','mgCnC','Android','XSkEr','LDgsx','âš ī¸\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','now','user_messages','map','conversation_id','-msg-','toISOString','floor','hohLk','mobile-chatgpt','conversation','📡\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20','qlHys','title','XVGvV','BASE_URL','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','ustWO','nNLtb','\x20memory\x20items\x20in\x20database','TcuIH','QKSIk','CERgr','TYnUM','Invalid\x20input:\x20memoriesData\x20missing.','📊\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','Stored\x20','\x20of\x20','\x20conversations','❌\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','YIMDp','jFtBv','FnHzB','eXiHJ','Aoliz','message','❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','🧠\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','auth_token','PArfd','🔑\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','ZJzJG','Memories\x20stored\x20successfully','VvhVT','items','wNQfI','memory_entries','yORzD','aacBe','WFUMS','\x20entries,\x20','lZpPq','XzmbV','mIPVj','hlPsN','uJXwR','qjCdN','nLXUq','aBjkC','EduSc','eXVWl','keys','corSr','📡\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','/llm-data/store-memories','đŸ“Ļ\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20','join','json','✅\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','bawrf','data','sZMVR','📋\x20[CHATGPT_SERVICE]\x20Stored\x20','memoriesCount','GumjM','WWarK','âš ī¸\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','âš ī¸\x20[CHATGPT_SERVICE]\x20Error:\x20','OqfkD','HTTP\x20','ENOtr'];_0x38ac=function(){return _0x9832ce;};return _0x38ac();}import{Platform}from'react-native';export const storeChatGPTConversations=async(_0x103fb8,_0x1c856d)=>{const _0x336630={'TYnUM':_0x3016(0x0),'YIMDp':'Network\x20error.\x20Please\x20check\x20your\x20connection.','ZijQu':'❌\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','KtmCx':_0x3016(0x1),'qPPDF':_0x3016(0x2),'ZmqBU':_0x3016(0x3),'luULc':function(_0x6bea5a,_0x3b9003){return _0x6bea5a||_0x3b9003;},'YvXwK':_0x3016(0x4),'eSlYB':_0x3016(0x5),'gmiMN':_0x3016(0x6),'XNYqC':'vqRUi','xZfDr':'auth_token','hkDbg':function(_0x39a9b5,_0x131f27){return _0x39a9b5===_0x131f27;},'WTBFS':_0x3016(0x7),'GmbbY':_0x3016(0x8),'hPChL':_0x3016(0x9),'cctmc':function(_0x5e750c,_0x377f4d){return _0x5e750c===_0x377f4d;},'mgCnC':'ios','mEFDj':_0x3016(0xa),'XSkEr':function(_0x2ed0bd,_0x44a890){return _0x2ed0bd<_0x44a890;},'LDgsx':_0x3016(0xb),'LgFjQ':_0x3016(0xc),'hohLk':function(_0x37906f,_0x5dd5cf){return _0x37906f/_0x5dd5cf;},'qlHys':function(_0x371c00,_0x4f656f){return _0x371c00+_0x4f656f;},'PGEdw':function(_0x349567,_0x5f3a61){return _0x349567===_0x5f3a61;},'XVGvV':_0x3016(0xd),'ustWO':function(_0xce2728,_0x1186f2){return _0xce2728+_0x1186f2;},'nNLtb':function(_0x4b8d21,_0x485673){return _0x4b8d21+_0x485673;},'TcuIH':function(_0x2e89e3,_0x5de56d){return _0x2e89e3+_0x5de56d;},'QKSIk':function(_0x3b1eae,_0xd2ef0){return _0x3b1eae-_0xd2ef0;},'CERgr':_0x3016(0xe),'jFtBv':function(_0x5d65ef,_0x4c5e11){return _0x5d65ef!==_0x4c5e11;},'FnHzB':'eXiHJ','Aoliz':_0x3016(0xf)};console['log'](_0x336630[_0x3016(0x10)],_0x103fb8),console[_0x3016(0x11)](_0x336630[_0x3016(0x12)],_0x1c856d['length']),console[_0x3016(0x11)](_0x3016(0x13),_0x1c856d[_0x3016(0x14)]((_0x50b36a,_0x1f574f)=>_0x50b36a+_0x1f574f['user_messages'][_0x3016(0x15)],0x0));if(_0x336630[_0x3016(0x16)](!_0x103fb8,!_0x1c856d)||_0x1c856d[_0x3016(0x15)]===0x0)return _0x336630[_0x3016(0x17)]!==_0x336630[_0x3016(0x17)]?{'success':![],'error':_0x3016(0x18)+_0x3d3be9+_0x3016(0x19)}:(console['error'](_0x3016(0x1a)),{'success':![],'error':_0x336630['eSlYB']});try{if(_0x336630[_0x3016(0x1b)]!==_0x336630['XNYqC']){const _0x4bba91=await AsyncStorage[_0x3016(0x1c)](_0x3016(0x1d))||await AsyncStorage[_0x3016(0x1c)](_0x3016(0x1e))||await AsyncStorage[_0x3016(0x1c)](_0x336630[_0x3016(0x1f)]);if(!_0x4bba91){if(_0x336630[_0x3016(0x20)](_0x336630[_0x3016(0x21)],_0x336630[_0x3016(0x21)]))return console[_0x3016(0x22)](_0x336630[_0x3016(0x23)]),{'success':![],'error':_0x336630[_0x3016(0x24)]};else _0x2d5187[_0x3016(0x25)](_0x3016(0x26)+(_0x31a8e2+0x1)+'/'+_0x29d8b6[_0x3016(0x15)]+':',_0xf11b8d['error']||_0xe5f597[_0x3016(0x27)]),_0x58d0ff++;}console[_0x3016(0x11)](_0x336630[_0x3016(0x28)]);const _0x388904={'platform':Platform['OS'],'appVersion':_0x3016(0x29),'osVersion':Platform['OS']===_0x3016(0x2a)?_0x336630[_0x3016(0x2b)]:Platform['OS'],'deviceModel':_0x336630['cctmc'](Platform['OS'],_0x336630[_0x3016(0x2c)])?_0x336630['mEFDj']:_0x3016(0x2d),'isOfflineSync':![]};let _0x4d9aaa=0x0,_0x2ef25b=0x0;for(let _0x3bae39=0x0;_0x336630[_0x3016(0x2e)](_0x3bae39,_0x1c856d[_0x3016(0x15)]);_0x3bae39++){if(_0x336630[_0x3016(0x20)](_0x336630[_0x3016(0x2f)],_0x336630['LgFjQ']))_0x3e820e[_0x3016(0x25)](_0x3016(0x30)+(_0x59fb30+0x1)+':',_0x31cc5a),_0x445c56++;else{const _0x3061fe=_0x1c856d[_0x3bae39],_0x331171=Date[_0x3016(0x31)](),_0xcc66ec=_0x3061fe[_0x3016(0x32)][_0x3016(0x33)]((_0x422634,_0x544e2b)=>({'id':_0x3061fe[_0x3016(0x34)]+_0x3016(0x35)+_0x544e2b,'role':'user','content':_0x422634,'timestamp':new Date(_0x331171-(_0x3061fe['user_messages'][_0x3016(0x15)]-_0x544e2b)*0x3e8)[_0x3016(0x36)](),'metadata':{}})),_0x4a4812={'conversationId':_0x3061fe[_0x3016(0x34)],'messages':_0xcc66ec,'context':{'title':_0x3061fe['title'],'create_time':Math[_0x3016(0x37)](_0x336630['hohLk'](_0x331171,0x3e8)),'update_time':Math[_0x3016(0x37)](_0x336630[_0x3016(0x38)](_0x331171,0x3e8))},'mobileMetadata':_0x388904},_0x3e84b9={'platform':_0x3016(0x39),'conversationData':_0x4a4812,'memoryType':_0x3016(0x3a)};console['log'](_0x3016(0x3b)+_0x336630[_0x3016(0x3c)](_0x3bae39,0x1)+'/'+_0x1c856d['length']+':\x20'+_0x3061fe[_0x3016(0x3d)]);try{if(_0x336630['PGEdw'](_0x3016(0xd),_0x336630[_0x3016(0x3e)])){const _0x1560bc=await fetch(API_CONFIG[_0x3016(0x3f)]+_0x3016(0x40),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x3016(0x41)+_0x4bba91,'User-Agent':_0x3016(0x42)+Platform['OS']+')'},'body':JSON[_0x3016(0x43)](_0x3e84b9)}),_0x3e21e4=await _0x1560bc['json']();_0x1560bc['ok']?(console[_0x3016(0x11)]('✅\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20'+_0x336630[_0x3016(0x44)](_0x3bae39,0x1)+'/'+_0x1c856d[_0x3016(0x15)]),_0x4d9aaa++):(console[_0x3016(0x25)](_0x3016(0x26)+_0x336630[_0x3016(0x45)](_0x3bae39,0x1)+'/'+_0x1c856d[_0x3016(0x15)]+':',_0x3e21e4['error']||_0x1560bc[_0x3016(0x27)]),_0x2ef25b++);}else _0x3fe54c[_0x3016(0x11)]('📋\x20[CHATGPT_SERVICE]\x20Stored\x20'+_0x5294c8['data']['memoriesCount']+_0x3016(0x46));}catch(_0x74af13){console['warn'](_0x3016(0x30)+_0x336630[_0x3016(0x47)](_0x3bae39,0x1)+':',_0x74af13),_0x2ef25b++;}if(_0x336630['XSkEr'](_0x3bae39,_0x336630[_0x3016(0x48)](_0x1c856d[_0x3016(0x15)],0x1))){if(_0x336630[_0x3016(0x49)]!==_0x336630[_0x3016(0x49)])return _0x5d2017[_0x3016(0x22)](_0x336630[_0x3016(0x4a)]),{'success':![],'error':_0x3016(0x4b)};else await new Promise(_0x4547b3=>setTimeout(_0x4547b3,0x12c));}}}return console['log'](_0x3016(0x4c)+_0x4d9aaa+_0x3016(0x4d)+_0x2ef25b+_0x3016(0x4e)),_0x4d9aaa>0x0?{'success':!![],'message':_0x3016(0x4f)+_0x4d9aaa+_0x3016(0x50)+_0x1c856d['length']+_0x3016(0x51)}:{'success':![],'error':_0x3016(0x18)+_0x2ef25b+_0x3016(0x19)};}else return _0x2dba39[_0x3016(0x22)](_0x3016(0x52),_0x21543c),{'success':![],'error':_0x4e1282['message']||_0x336630[_0x3016(0x53)]};}catch(_0xde805f){return _0x336630[_0x3016(0x54)](_0x336630[_0x3016(0x55)],_0x3016(0x56))?(_0x25a97e[_0x3016(0x22)](_0x336630['ZijQu']),{'success':![],'error':_0x336630['KtmCx']}):(console[_0x3016(0x22)](_0x336630[_0x3016(0x57)],_0xde805f),{'success':![],'error':_0xde805f[_0x3016(0x58)]||_0x336630[_0x3016(0x53)]});}};export const storeChatGPTMemories=async _0x510155=>{const _0x9f5b18={'qjCdN':_0x3016(0xf),'nLXUq':'Network\x20error.\x20Please\x20check\x20your\x20connection.','GumjM':_0x3016(0x59),'aBjkC':_0x3016(0x1),'VvhVT':_0x3016(0x5a),'wNQfI':function(_0xf76a86,_0x407a8b){return _0xf76a86===_0x407a8b;},'yORzD':function(_0x21d8fd,_0x3c835c){return _0x21d8fd===_0x3c835c;},'aacBe':function(_0x92e4ba,_0x25d79f){return _0x92e4ba===_0x25d79f;},'WFUMS':function(_0x1f7f74,_0x254be4){return _0x1f7f74===_0x254be4;},'lZpPq':_0x3016(0x4b),'XzmbV':_0x3016(0x1d),'ZMlma':_0x3016(0x1e),'mIPVj':_0x3016(0x5b),'hlPsN':'ZLFBH','uJXwR':_0x3016(0x5c),'bwfpO':_0x3016(0x5d),'EduSc':_0x3016(0x29),'eXVWl':_0x3016(0x39),'corSr':function(_0xe4517e,_0x4e2942){return _0xe4517e||_0x4e2942;},'nTMXx':function(_0x332f62,_0x17e568,_0x3cd144){return _0x332f62(_0x17e568,_0x3cd144);},'bawrf':function(_0x377f16,_0x4abaf7){return _0x377f16!==_0x4abaf7;},'sZMVR':_0x3016(0x5e),'WWarK':_0x3016(0x5f),'OqfkD':'Unknown\x20error','ENOtr':_0x3016(0x52)};var _0x31bd5c,_0x5cc65b,_0x5501f5;console[_0x3016(0x11)](_0x9f5b18[_0x3016(0x60)]);const _0xdb0fc9=(_0x510155===null||_0x510155===void 0x0||(_0x31bd5c=_0x510155[_0x3016(0x61)])===null||_0x31bd5c===void 0x0?void 0x0:_0x31bd5c[_0x3016(0x15)])||0x0,_0x119ded=(_0x510155===null||_0x9f5b18[_0x3016(0x62)](_0x510155,void 0x0)||(_0x5cc65b=_0x510155[_0x3016(0x63)])===null||_0x9f5b18[_0x3016(0x64)](_0x5cc65b,void 0x0)?void 0x0:_0x5cc65b[_0x3016(0x15)])||0x0,_0x1267eb=(_0x9f5b18[_0x3016(0x65)](_0x510155,null)||_0x9f5b18['wNQfI'](_0x510155,void 0x0)||_0x9f5b18[_0x3016(0x62)](_0x5501f5=_0x510155['memories'],null)||_0x9f5b18[_0x3016(0x66)](_0x5501f5,void 0x0)?void 0x0:_0x5501f5[_0x3016(0x15)])||0x0,_0x3fe9b1=_0xdb0fc9+_0x119ded+_0x1267eb;console[_0x3016(0x11)]('📋\x20[CHATGPT_SERVICE]\x20Found\x20'+_0xdb0fc9+'\x20items,\x20'+_0x119ded+_0x3016(0x67)+_0x1267eb+'\x20memories\x20(total:\x20'+_0x3fe9b1+')');if(!_0x510155)return console['error'](_0x3016(0x0)),{'success':![],'error':_0x9f5b18[_0x3016(0x68)]};try{const _0x2ca357=await AsyncStorage[_0x3016(0x1c)](_0x9f5b18[_0x3016(0x69)])||await AsyncStorage['getItem'](_0x9f5b18['ZMlma'])||await AsyncStorage['getItem'](_0x9f5b18[_0x3016(0x6a)]);if(!_0x2ca357)return _0x9f5b18[_0x3016(0x6b)]===_0x9f5b18[_0x3016(0x6c)]?(_0x2ddc37[_0x3016(0x22)](_0x9f5b18[_0x3016(0x6d)],_0x10b1d4),{'success':![],'error':_0x3e5ba6[_0x3016(0x58)]||_0x9f5b18[_0x3016(0x6e)]}):(console[_0x3016(0x22)](_0x3016(0x59)),{'success':![],'error':_0x9f5b18[_0x3016(0x6f)]});console['log'](_0x9f5b18['bwfpO']);const _0x5da2a6=_0x9f5b18[_0x3016(0x70)],_0x353acd={'platform':_0x9f5b18[_0x3016(0x71)],'memoriesData':_0x510155,'metadata':{'source':'react-native-sdk','appVersion':_0x5da2a6,'fetchedAt':new Date()['toISOString']()}},_0x2ef92a=Object[_0x3016(0x72)](_0x9f5b18[_0x3016(0x73)](_0x510155,{}));console[_0x3016(0x11)](_0x3016(0x74)),console['log']('📍\x20[CHATGPT_SERVICE]\x20URL:\x20'+API_CONFIG[_0x3016(0x3f)]+_0x3016(0x75)),console['log'](_0x3016(0x76)+_0x2ef92a[_0x3016(0x77)](',\x20')),console['log']('đŸ“Ļ\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)');const _0x130440=await _0x9f5b18['nTMXx'](fetch,API_CONFIG[_0x3016(0x3f)]+_0x3016(0x75),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2ca357,'User-Agent':'OnairosSDK/'+_0x5da2a6+'\x20('+Platform['OS']+')'},'body':JSON['stringify'](_0x353acd)}),_0x40c1b2=await _0x130440[_0x3016(0x78)]();if(_0x130440['ok']){var _0x3ef32c;console[_0x3016(0x11)](_0x3016(0x79));_0x40c1b2[_0x3016(0x58)]&&console[_0x3016(0x11)]('📝\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20'+_0x40c1b2['message']);if(_0x9f5b18[_0x3016(0x7a)](_0x3ef32c=_0x40c1b2[_0x3016(0x7b)],null)&&_0x9f5b18[_0x3016(0x7a)](_0x3ef32c,void 0x0)&&_0x3ef32c['memoriesCount']){if(_0x9f5b18['wNQfI'](_0x9f5b18['sZMVR'],_0x9f5b18[_0x3016(0x7c)]))console['log'](_0x3016(0x7d)+_0x40c1b2[_0x3016(0x7b)][_0x3016(0x7e)]+'\x20memory\x20items\x20in\x20database');else return _0x3aac23[_0x3016(0x22)](_0x9f5b18[_0x3016(0x7f)]),{'success':![],'error':_0x9f5b18[_0x3016(0x6f)]};}return{'success':!![],'message':_0x40c1b2['message']||_0x9f5b18[_0x3016(0x80)],'data':_0x40c1b2[_0x3016(0x7b)]};}else return console[_0x3016(0x25)](_0x3016(0x81)+_0x130440['status']),console[_0x3016(0x25)](_0x3016(0x82)+(_0x40c1b2[_0x3016(0x22)]||_0x9f5b18[_0x3016(0x83)])),{'success':![],'error':_0x40c1b2['error']||_0x3016(0x84)+_0x130440[_0x3016(0x27)]};}catch(_0x31e000){return console[_0x3016(0x22)](_0x9f5b18[_0x3016(0x85)],_0x31e000),{'success':![],'error':_0x31e000['message']||_0x9f5b18['nLXUq']};}};
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';function _0x318c(_0x36d02f,_0x318c2b){_0x36d02f=_0x36d02f-0x0;const _0x3d4495=_0x36d0();let _0x32bd0d=_0x3d4495[_0x36d02f];return _0x32bd0d;}import{Alert}from'react-native';export const useClaudeConversationExtractor=()=>{const _0x17f840={'wOWGU':function(_0x5bfa65,_0x2028c9){return _0x5bfa65>_0x2028c9;},'xTAtD':_0x318c(0x0),'gOiOP':_0x318c(0x1),'BYWRc':_0x318c(0x2),'zzhvT':_0x318c(0x3),'RdMuF':_0x318c(0x4),'fpjoq':'✅\x20[CLAUDE_EXTRACTOR]\x20Export\x20completed\x20successfully','IRvfz':_0x318c(0x5),'fPDuz':function(_0x2e744e,_0x25fc69){return _0x2e744e>_0x25fc69;},'ByBzt':_0x318c(0x6),'kmMVo':function(_0x450bcb,_0x579cb6){return _0x450bcb===_0x579cb6;},'HrFQv':_0x318c(0x7),'NInjT':_0x318c(0x8),'myxQH':_0x318c(0x9),'xJKCz':_0x318c(0xa),'GWjxi':_0x318c(0xb),'AXALR':'QfvXO','JgqeV':_0x318c(0xc),'CRPfd':'❌\x20[CLAUDE_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','HTkmr':_0x318c(0xd),'TaQwY':function(_0x59f501,_0x2e5c06){return _0x59f501<_0x2e5c06;},'FQPdM':function(_0x50715e,_0x3b53e5){return _0x50715e===_0x3b53e5;},'phVFb':'tUOPx','ZIlxw':function(_0x14bd6a,_0x52e91e){return _0x14bd6a-_0x52e91e;},'Dhxfz':'FJcwJ','cTkVk':_0x318c(0xe),'VXqvR':_0x318c(0xf),'sLLvA':function(_0x1d3e0b,_0x566ab0,_0x9a9571){return _0x1d3e0b(_0x566ab0,_0x9a9571);},'eKskw':_0x318c(0x10),'LGagw':_0x318c(0x11),'WqhCI':_0x318c(0x12),'EUqFH':function(_0x14886c,_0x4e40f7){return _0x14886c===_0x4e40f7;},'orLkv':_0x318c(0x13)},_0x10eb33=async(_0x4dd6e4,_0x34e887)=>{const _0x3958ba={'KmdeN':function(_0x5ae84c,_0x381109){return _0x17f840[_0x318c(0x14)](_0x5ae84c,_0x381109);},'XTttJ':_0x17f840[_0x318c(0x15)]};console['log'](_0x17f840[_0x318c(0x16)]),console['log']('👤\x20[CLAUDE_EXTRACTOR]\x20Username:',_0x4dd6e4),console[_0x318c(0x17)](_0x318c(0x18),_0x34e887[_0x318c(0x19)]);if(!_0x4dd6e4){if(_0x17f840[_0x318c(0x1a)](_0x17f840[_0x318c(0x1b)],_0x17f840[_0x318c(0x1c)])){const _0x471601=_0x19bb36[_0x318c(0x1d)]&&_0x25a8b4['title']&&_0x1c6724[_0x318c(0x1e)](_0x18cacf[_0x318c(0x1f)])&&_0x17f840['wOWGU'](_0x566d42[_0x318c(0x1f)][_0x318c(0x19)],0x0);return!_0x471601&&_0x4c2ed5[_0x318c(0x20)](_0x17f840[_0x318c(0x15)],_0x48baf6),_0x471601;}else return console[_0x318c(0x21)](_0x17f840[_0x318c(0x22)]),Alert[_0x318c(0x23)](_0x17f840['xJKCz'],_0x17f840[_0x318c(0x24)],[{'text':'OK','style':_0x17f840[_0x318c(0x25)]}]),![];}if(!_0x34e887||_0x34e887[_0x318c(0x19)]===0x0)return _0x17f840[_0x318c(0x1a)](_0x17f840[_0x318c(0x26)],_0x17f840[_0x318c(0x27)])?(_0x3b630c[_0x318c(0x21)](_0x17f840[_0x318c(0x28)],_0x360f72),Alert[_0x318c(0x23)](_0x17f840[_0x318c(0x29)],_0x17f840[_0x318c(0x2a)],[{'text':'OK','style':_0x17f840['RdMuF']}]),![]):(console['log'](_0x17f840['IRvfz']),!![]);const _0x2d0be6=_0x34e887[_0x318c(0x2b)](_0x1a7afc=>{const _0x1ec737=_0x1a7afc[_0x318c(0x1d)]&&_0x1a7afc[_0x318c(0x2c)]&&Array['isArray'](_0x1a7afc[_0x318c(0x1f)])&&_0x3958ba[_0x318c(0x2d)](_0x1a7afc['user_messages'][_0x318c(0x19)],0x0);return!_0x1ec737&&console[_0x318c(0x20)](_0x3958ba[_0x318c(0x2e)],_0x1a7afc),_0x1ec737;});if(_0x2d0be6[_0x318c(0x19)]===0x0)return console[_0x318c(0x21)](_0x17f840['CRPfd']),Alert[_0x318c(0x23)](_0x17f840[_0x318c(0x2f)],_0x318c(0x30),[{'text':'OK','style':_0x17f840[_0x318c(0x25)]}]),![];if(_0x17f840['TaQwY'](_0x2d0be6[_0x318c(0x19)],_0x34e887[_0x318c(0x19)])){if(_0x17f840[_0x318c(0x31)](_0x318c(0x32),_0x17f840[_0x318c(0x33)]))console[_0x318c(0x20)](_0x318c(0x34)+_0x17f840[_0x318c(0x35)](_0x34e887[_0x318c(0x19)],_0x2d0be6[_0x318c(0x19)])+_0x318c(0x36));else return _0x285135[_0x318c(0x17)](_0x17f840[_0x318c(0x37)]),_0x3a7a57[_0x318c(0x17)](_0x318c(0x10),_0x4259bf[_0x318c(0x38)]),!![];}try{if(_0x17f840['FQPdM'](_0x17f840[_0x318c(0x39)],_0x17f840[_0x318c(0x3a)]))return _0x5dfb7a['log'](_0x17f840[_0x318c(0x3b)]),!![];else{console[_0x318c(0x17)](_0x17f840[_0x318c(0x3c)]);const _0x31f89b=await _0x17f840['sLLvA'](storeClaudeConversations,_0x4dd6e4,_0x2d0be6);return _0x31f89b[_0x318c(0x3d)]?(console[_0x318c(0x17)](_0x17f840[_0x318c(0x37)]),console['log'](_0x17f840[_0x318c(0x3e)],_0x31f89b['data']),!![]):(console[_0x318c(0x21)](_0x17f840[_0x318c(0x3f)],_0x31f89b[_0x318c(0x21)]),Alert[_0x318c(0x23)](_0x17f840[_0x318c(0x40)],_0x31f89b[_0x318c(0x21)]||_0x318c(0x41),[{'text':'OK','style':_0x17f840[_0x318c(0x25)]}]),![]);}}catch(_0x584eda){if(_0x17f840[_0x318c(0x42)](_0x17f840[_0x318c(0x43)],_0x17f840[_0x318c(0x43)]))return console[_0x318c(0x21)](_0x318c(0x1),_0x584eda),Alert[_0x318c(0x23)](_0x17f840[_0x318c(0x29)],_0x17f840[_0x318c(0x2a)],[{'text':'OK','style':_0x17f840['RdMuF']}]),![];else _0x124d60[_0x318c(0x20)]('âš ī¸\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:',_0x5a2bf2);}};return{'initiateConversationExport':_0x10eb33};};function _0x36d0(){const _0x33b99c=['âš ī¸\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:','❌\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','default','â„šī¸\x20[CLAUDE_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','🚀\x20[CLAUDE_EXTRACTOR]\x20Initiating\x20conversation\x20export','XzmDP','citjI','❌\x20[CLAUDE_EXTRACTOR]\x20Username\x20is\x20required','Error','Username\x20is\x20required\x20to\x20export\x20Claude\x20conversations.','xllhl','Data\x20Error','URZjs','📡\x20[CLAUDE_EXTRACTOR]\x20Sending\x20to\x20backend...','📊\x20[CLAUDE_EXTRACTOR]\x20Backend\x20response:','❌\x20[CLAUDE_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','tavZn','fPDuz','xTAtD','ByBzt','log','📊\x20[CLAUDE_EXTRACTOR]\x20Conversations\x20to\x20send:','length','kmMVo','HrFQv','NInjT','conversation_id','isArray','user_messages','warn','error','myxQH','alert','GWjxi','RdMuF','AXALR','JgqeV','gOiOP','BYWRc','zzhvT','filter','title','KmdeN','XTttJ','HTkmr','No\x20valid\x20conversations\x20found\x20to\x20export.','FQPdM','tUOPx','phVFb','âš ī¸\x20[CLAUDE_EXTRACTOR]\x20Filtered\x20out\x20','ZIlxw','\x20invalid\x20conversations','fpjoq','data','Dhxfz','cTkVk','IRvfz','VXqvR','success','eKskw','LGagw','WqhCI','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','EUqFH','orLkv'];_0x36d0=function(){return _0x33b99c;};return _0x36d0();}
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};};
@@ -1 +1 @@
1
- import{API_CONFIG}from'../config/api';import AsyncStorage from'@react-native-async-storage/async-storage';function _0x4ce8(){const _0x478c4b=['❌\x20[CLAUDE_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','🚀\x20[CLAUDE_SERVICE]\x20Storing\x20Claude\x20conversations\x20for:','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','fZyde','onairos_jwt_token','enoch_token','auth_token','🔑\x20[CLAUDE_SERVICE]\x20Auth\x20token\x20found','1.0.0','17.0','Android','mobile-claude','WCGYG','vIPZR','❌\x20[CLAUDE_SERVICE]\x20Network\x20error:','aoOoD','PawIA','length','📊\x20[CLAUDE_SERVICE]\x20Total\x20messages:','reduce','MYlvO','error','❌\x20[CLAUDE_SERVICE]\x20Invalid\x20input','QBVHq','RRWEF','AZHym','TRmpJ','aOOPO','getItem','XhXuV','xfJqk','VlDrD','log','KBJXw','fOnsr','jZpvq','Mdpwq','kZpKc','ios','qGSxo','user_messages','map','-msg-','user','toISOString','title','floor','yoMnI','IWzmu','BASE_URL','Bearer\x20','stringify','SuOcb','warn','âš ī¸\x20[CLAUDE_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','VUlKN','âš ī¸\x20[CLAUDE_SERVICE]\x20Failed\x20conversation\x20','jKBcR','Lysog','📊\x20[CLAUDE_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','Stored\x20','\x20of\x20','\x20conversations','cTdsR','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','THGQk','wvlhH'];_0x4ce8=function(){return _0x478c4b;};return _0x4ce8();}import{Platform}from'react-native';function _0x1c0c(_0x4ce8bd,_0x1c0ce1){_0x4ce8bd=_0x4ce8bd-0x0;const _0x3fd037=_0x4ce8();let _0x8533dc=_0x3fd037[_0x4ce8bd];return _0x8533dc;}export const storeClaudeConversations=async(_0x59db9b,_0x125cb9)=>{const _0x37f5a6={'TRmpJ':_0x1c0c(0x0),'aOOPO':_0x1c0c(0x1),'VUlKN':function(_0x1cbeb7,_0x586616){return _0x1cbeb7+_0x586616;},'aoOoD':_0x1c0c(0x2),'PawIA':'📊\x20[CLAUDE_SERVICE]\x20Number\x20of\x20conversations:','MYlvO':function(_0x32486a,_0x38bc2b){return _0x32486a===_0x38bc2b;},'QBVHq':_0x1c0c(0x3),'RRWEF':function(_0xf3528a,_0x38c70c){return _0xf3528a!==_0x38c70c;},'AZHym':_0x1c0c(0x4),'XhXuV':_0x1c0c(0x5),'xfJqk':_0x1c0c(0x6),'VlDrD':_0x1c0c(0x7),'KBJXw':_0x1c0c(0x8),'fOnsr':_0x1c0c(0x9),'jZpvq':'ios','Mdpwq':_0x1c0c(0xa),'kZpKc':function(_0x2c9d30,_0x3250e7){return _0x2c9d30===_0x3250e7;},'qGSxo':'iPhone','mzAVD':_0x1c0c(0xb),'yoMnI':function(_0x59eba3,_0x2dbb62){return _0x59eba3/_0x2dbb62;},'phGGL':_0x1c0c(0xc),'IWzmu':'conversation','IHyty':function(_0x453aeb,_0x933a2b){return _0x453aeb+_0x933a2b;},'SuOcb':_0x1c0c(0xd),'KMCES':function(_0x30de31,_0xd19c63){return _0x30de31+_0xd19c63;},'jKBcR':function(_0x55988b,_0x4aa987){return _0x55988b+_0x4aa987;},'Lysog':function(_0x4c7f54,_0x3a3ad3){return _0x4c7f54<_0x3a3ad3;},'bzdik':function(_0x457822,_0x466bf9){return _0x457822>_0x466bf9;},'cTdsR':_0x1c0c(0xe),'THGQk':_0x1c0c(0xf),'wvlhH':'Network\x20error.\x20Please\x20check\x20your\x20connection.'};console['log'](_0x37f5a6[_0x1c0c(0x10)],_0x59db9b),console['log'](_0x37f5a6[_0x1c0c(0x11)],_0x125cb9[_0x1c0c(0x12)]),console['log'](_0x1c0c(0x13),_0x125cb9[_0x1c0c(0x14)]((_0x53ebfd,_0xe75b41)=>_0x53ebfd+_0xe75b41['user_messages'][_0x1c0c(0x12)],0x0));if(!_0x59db9b||!_0x125cb9||_0x37f5a6[_0x1c0c(0x15)](_0x125cb9[_0x1c0c(0x12)],0x0))return console[_0x1c0c(0x16)](_0x1c0c(0x17)),{'success':![],'error':_0x37f5a6[_0x1c0c(0x18)]};try{if(_0x37f5a6[_0x1c0c(0x19)](_0x1c0c(0x4),_0x37f5a6[_0x1c0c(0x1a)]))return _0x9b4014[_0x1c0c(0x16)](_0x37f5a6[_0x1c0c(0x1b)]),{'success':![],'error':_0x37f5a6[_0x1c0c(0x1c)]};else{const _0xfe814d=await AsyncStorage[_0x1c0c(0x1d)](_0x37f5a6[_0x1c0c(0x1e)])||await AsyncStorage['getItem'](_0x37f5a6[_0x1c0c(0x1f)])||await AsyncStorage[_0x1c0c(0x1d)](_0x37f5a6[_0x1c0c(0x20)]);if(!_0xfe814d)return console['error'](_0x37f5a6[_0x1c0c(0x1b)]),{'success':![],'error':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.'};console[_0x1c0c(0x21)](_0x37f5a6[_0x1c0c(0x22)]);const _0x34ba77={'platform':Platform['OS'],'appVersion':_0x37f5a6[_0x1c0c(0x23)],'osVersion':_0x37f5a6['MYlvO'](Platform['OS'],_0x37f5a6[_0x1c0c(0x24)])?_0x37f5a6[_0x1c0c(0x25)]:Platform['OS'],'deviceModel':_0x37f5a6[_0x1c0c(0x26)](Platform['OS'],_0x1c0c(0x27))?_0x37f5a6[_0x1c0c(0x28)]:_0x37f5a6['mzAVD'],'isOfflineSync':![]};let _0x5879b1=0x0,_0x276f69=0x0;for(let _0x4a50a4=0x0;_0x4a50a4<_0x125cb9[_0x1c0c(0x12)];_0x4a50a4++){const _0x3ede06=_0x125cb9[_0x4a50a4],_0x3f2a49=Date['now'](),_0x361835=_0x3ede06[_0x1c0c(0x29)][_0x1c0c(0x2a)]((_0x52a648,_0x270983)=>({'id':_0x3ede06['conversation_id']+_0x1c0c(0x2b)+_0x270983,'role':_0x1c0c(0x2c),'content':_0x52a648,'timestamp':new Date(_0x3f2a49-(_0x3ede06['user_messages'][_0x1c0c(0x12)]-_0x270983)*0x3e8)[_0x1c0c(0x2d)](),'metadata':{}})),_0x4d58c0={'conversationId':_0x3ede06['conversation_id'],'messages':_0x361835,'context':{'title':_0x3ede06[_0x1c0c(0x2e)],'create_time':Math[_0x1c0c(0x2f)](_0x37f5a6['yoMnI'](_0x3f2a49,0x3e8)),'update_time':Math[_0x1c0c(0x2f)](_0x37f5a6[_0x1c0c(0x30)](_0x3f2a49,0x3e8))},'mobileMetadata':_0x34ba77},_0x2f2018={'platform':_0x37f5a6['phGGL'],'conversationData':_0x4d58c0,'memoryType':_0x37f5a6[_0x1c0c(0x31)]};console[_0x1c0c(0x21)]('📡\x20[CLAUDE_SERVICE]\x20Sending\x20conversation\x20'+_0x37f5a6['IHyty'](_0x4a50a4,0x1)+'/'+_0x125cb9[_0x1c0c(0x12)]+':\x20'+_0x3ede06[_0x1c0c(0x2e)]);try{const _0x31b237=await fetch(API_CONFIG[_0x1c0c(0x32)]+'/llm-data/store',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x1c0c(0x33)+_0xfe814d,'User-Agent':'OnairosSDK/1.0.0\x20('+Platform['OS']+')'},'body':JSON[_0x1c0c(0x34)](_0x2f2018)}),_0x39210e=await _0x31b237['json']();_0x31b237['ok']?_0x37f5a6[_0x1c0c(0x19)](_0x37f5a6[_0x1c0c(0x35)],'WCGYG')?(_0x2cba6c[_0x1c0c(0x36)](_0x1c0c(0x37)+_0x37f5a6[_0x1c0c(0x38)](_0x584f9a,0x1)+':',_0x37abdf),_0xdf9620++):(console[_0x1c0c(0x21)]('✅\x20[CLAUDE_SERVICE]\x20Sent\x20conversation\x20'+_0x37f5a6['KMCES'](_0x4a50a4,0x1)+'/'+_0x125cb9[_0x1c0c(0x12)]),_0x5879b1++):(console[_0x1c0c(0x36)](_0x1c0c(0x39)+_0x37f5a6[_0x1c0c(0x38)](_0x4a50a4,0x1)+'/'+_0x125cb9[_0x1c0c(0x12)]+':',_0x39210e[_0x1c0c(0x16)]||_0x31b237['status']),_0x276f69++);}catch(_0x7ff930){console['warn']('âš ī¸\x20[CLAUDE_SERVICE]\x20Network\x20error\x20for\x20conversation\x20'+_0x37f5a6[_0x1c0c(0x3a)](_0x4a50a4,0x1)+':',_0x7ff930),_0x276f69++;}_0x37f5a6[_0x1c0c(0x3b)](_0x4a50a4,_0x125cb9['length']-0x1)&&await new Promise(_0x41a4dc=>setTimeout(_0x41a4dc,0x12c));}return console[_0x1c0c(0x21)](_0x1c0c(0x3c)+_0x5879b1+_0x1c0c(0x3d)+_0x276f69+_0x1c0c(0x3e)),_0x37f5a6['bzdik'](_0x5879b1,0x0)?{'success':!![],'message':_0x1c0c(0x3f)+_0x5879b1+_0x1c0c(0x40)+_0x125cb9[_0x1c0c(0x12)]+_0x1c0c(0x41)}:_0x37f5a6['cTdsR']===_0x37f5a6[_0x1c0c(0x42)]?{'success':![],'error':_0x1c0c(0x43)+_0x276f69+_0x1c0c(0x44)}:{'success':![],'error':_0x1c0c(0x43)+_0x12c441+_0x1c0c(0x44)};}}catch(_0x15a4fa){return console['error'](_0x37f5a6[_0x1c0c(0x45)],_0x15a4fa),{'success':![],'error':_0x15a4fa['message']||_0x37f5a6[_0x1c0c(0x46)]};}};
1
+ import{API_CONFIG}from'../config/api';function _0x4553(){const _0x53a1de=['❌\x20[CLAUDE_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','📊\x20[CLAUDE_SERVICE]\x20Number\x20of\x20conversations:','📊\x20[CLAUDE_SERVICE]\x20Total\x20messages:','onairos_jwt_token','🔑\x20[CLAUDE_SERVICE]\x20Auth\x20token\x20found','1.0.0','ios','iPhone','GOLMo','JKMDd','AZFHP','KkmtN','dVHiq','Network\x20error.\x20Please\x20check\x20your\x20connection.','log','YAxmY','sgauu','length','MZLao','reduce','user_messages','wAPLD','VfGSP','xAtVJ','getItem','NzsdU','enoch_token','XVWBd','hUpde','Hyeka','kCfoX','gShRs','DhtOq','UtxXs','HYfbW','HIZAM','ehqMt','now','conversation_id','user','title','floor','RSQfH','conversation','FPONH','BASE_URL','/llm-data/store','OnairosSDK/1.0.0\x20(','stringify','json','yWNYv','kEfzC','EbYQo','warn','âš ī¸\x20[CLAUDE_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','✅\x20[CLAUDE_SERVICE]\x20Sent\x20conversation\x20','âš ī¸\x20[CLAUDE_SERVICE]\x20Failed\x20conversation\x20','error','status','uiRnb','JhibL','hVDiy','PtSfw','Jvfzb','CYXKJ','ccssz','xPelf','\x20of\x20','Stored\x20','\x20conversations','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','❌\x20[CLAUDE_SERVICE]\x20Invalid\x20input','EXspv','xOzyQ','yKITs','YRJJu'];_0x4553=function(){return _0x53a1de;};return _0x4553();}import AsyncStorage from'@react-native-async-storage/async-storage';function _0x5244(_0x4553bb,_0x524491){_0x4553bb=_0x4553bb-0x0;const _0x4d5eb1=_0x4553();let _0x1b7a67=_0x4d5eb1[_0x4553bb];return _0x1b7a67;}import{Platform}from'react-native';export const storeClaudeConversations=async(_0x5ec974,_0x1331d0)=>{const _0x3c48fe={'FPONH':function(_0x170220,_0xc94b90){return _0x170220+_0xc94b90;},'PtSfw':_0x5244(0x0),'hUpde':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','EXspv':_0x5244(0x1),'YAxmY':'🚀\x20[CLAUDE_SERVICE]\x20Storing\x20Claude\x20conversations\x20for:','sgauu':_0x5244(0x2),'MZLao':_0x5244(0x3),'wAPLD':function(_0xcab6cd,_0x287c10){return _0xcab6cd||_0x287c10;},'VfGSP':function(_0x249dec,_0x5e8dc4){return _0x249dec===_0x5e8dc4;},'xAtVJ':'Ztzif','NzsdU':_0x5244(0x4),'XVWBd':'auth_token','Hyeka':_0x5244(0x5),'kCfoX':_0x5244(0x6),'gShRs':function(_0x1cdf1b,_0x4b075e){return _0x1cdf1b===_0x4b075e;},'DhtOq':_0x5244(0x7),'yvzda':'17.0','UtxXs':_0x5244(0x8),'HYfbW':'Android','HIZAM':function(_0x3ecf4c,_0x341252){return _0x3ecf4c<_0x341252;},'ehqMt':_0x5244(0x9),'ePSsX':function(_0x370012,_0x5949f9){return _0x370012/_0x5949f9;},'RSQfH':'mobile-claude','vpaDP':function(_0x28f45c,_0x6552dc,_0x1ea674){return _0x28f45c(_0x6552dc,_0x1ea674);},'yWNYv':function(_0x29b02b,_0x57d1bb){return _0x29b02b!==_0x57d1bb;},'EbYQo':'kEfzC','uiRnb':_0x5244(0xa),'JhibL':function(_0x494cc3,_0x47e0d6){return _0x494cc3<_0x47e0d6;},'hVDiy':function(_0x1f3cfe,_0x26b7e1){return _0x1f3cfe-_0x26b7e1;},'Jvfzb':function(_0x259662,_0x124034){return _0x259662>_0x124034;},'CYXKJ':function(_0x220eba,_0x2348ec){return _0x220eba!==_0x2348ec;},'ccssz':_0x5244(0xb),'xPelf':_0x5244(0xc),'QiTzz':_0x5244(0xd),'yKITs':'❌\x20[CLAUDE_SERVICE]\x20Network\x20error:','YRJJu':_0x5244(0xe)};console[_0x5244(0xf)](_0x3c48fe[_0x5244(0x10)],_0x5ec974),console[_0x5244(0xf)](_0x3c48fe[_0x5244(0x11)],_0x1331d0[_0x5244(0x12)]),console[_0x5244(0xf)](_0x3c48fe[_0x5244(0x13)],_0x1331d0[_0x5244(0x14)]((_0x3262a9,_0x52c338)=>_0x3262a9+_0x52c338[_0x5244(0x15)][_0x5244(0x12)],0x0));if(_0x3c48fe[_0x5244(0x16)](!_0x5ec974,!_0x1331d0)||_0x3c48fe['VfGSP'](_0x1331d0[_0x5244(0x12)],0x0))return console['error']('❌\x20[CLAUDE_SERVICE]\x20Invalid\x20input'),{'success':![],'error':_0x3c48fe['EXspv']};try{if(_0x3c48fe[_0x5244(0x17)](_0x3c48fe[_0x5244(0x18)],_0x3c48fe[_0x5244(0x18)])){const _0x40867a=await AsyncStorage[_0x5244(0x19)](_0x3c48fe[_0x5244(0x1a)])||await AsyncStorage[_0x5244(0x19)](_0x5244(0x1b))||await AsyncStorage[_0x5244(0x19)](_0x3c48fe[_0x5244(0x1c)]);if(!_0x40867a)return console['error'](_0x3c48fe['PtSfw']),{'success':![],'error':_0x3c48fe[_0x5244(0x1d)]};console[_0x5244(0xf)](_0x3c48fe[_0x5244(0x1e)]);const _0x3257f3={'platform':Platform['OS'],'appVersion':_0x3c48fe[_0x5244(0x1f)],'osVersion':_0x3c48fe[_0x5244(0x20)](Platform['OS'],_0x3c48fe[_0x5244(0x21)])?_0x3c48fe['yvzda']:Platform['OS'],'deviceModel':_0x3c48fe['gShRs'](Platform['OS'],_0x3c48fe[_0x5244(0x21)])?_0x3c48fe[_0x5244(0x22)]:_0x3c48fe[_0x5244(0x23)],'isOfflineSync':![]};let _0x36ccf5=0x0,_0x5aa0e2=0x0;for(let _0x3fa700=0x0;_0x3c48fe[_0x5244(0x24)](_0x3fa700,_0x1331d0[_0x5244(0x12)]);_0x3fa700++){if(_0x3c48fe['ehqMt']===_0x3c48fe[_0x5244(0x25)]){const _0x170a22=_0x1331d0[_0x3fa700],_0x18c9f7=Date[_0x5244(0x26)](),_0x5a2d2d=_0x170a22[_0x5244(0x15)]['map']((_0x4cf975,_0x33f59d)=>({'id':_0x170a22[_0x5244(0x27)]+'-msg-'+_0x33f59d,'role':_0x5244(0x28),'content':_0x4cf975,'timestamp':new Date(_0x18c9f7-(_0x170a22[_0x5244(0x15)]['length']-_0x33f59d)*0x3e8)['toISOString'](),'metadata':{}})),_0x5b7d67={'conversationId':_0x170a22['conversation_id'],'messages':_0x5a2d2d,'context':{'title':_0x170a22[_0x5244(0x29)],'create_time':Math[_0x5244(0x2a)](_0x18c9f7/0x3e8),'update_time':Math['floor'](_0x3c48fe['ePSsX'](_0x18c9f7,0x3e8))},'mobileMetadata':_0x3257f3},_0x29b4a7={'platform':_0x3c48fe[_0x5244(0x2b)],'conversationData':_0x5b7d67,'memoryType':_0x5244(0x2c)};console[_0x5244(0xf)]('📡\x20[CLAUDE_SERVICE]\x20Sending\x20conversation\x20'+_0x3c48fe[_0x5244(0x2d)](_0x3fa700,0x1)+'/'+_0x1331d0[_0x5244(0x12)]+':\x20'+_0x170a22['title']);try{const _0x659fb2=await _0x3c48fe['vpaDP'](fetch,API_CONFIG[_0x5244(0x2e)]+_0x5244(0x2f),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x40867a,'User-Agent':_0x5244(0x30)+Platform['OS']+')'},'body':JSON[_0x5244(0x31)](_0x29b4a7)}),_0x36381e=await _0x659fb2[_0x5244(0x32)]();_0x659fb2['ok']?_0x3c48fe[_0x5244(0x33)](_0x5244(0x34),_0x3c48fe[_0x5244(0x35)])?(_0x91e974[_0x5244(0x36)](_0x5244(0x37)+_0x3c48fe['FPONH'](_0x5ba12f,0x1)+':',_0x38fdb9),_0x1ab48f++):(console[_0x5244(0xf)](_0x5244(0x38)+_0x3c48fe[_0x5244(0x2d)](_0x3fa700,0x1)+'/'+_0x1331d0[_0x5244(0x12)]),_0x36ccf5++):(console[_0x5244(0x36)](_0x5244(0x39)+(_0x3fa700+0x1)+'/'+_0x1331d0[_0x5244(0x12)]+':',_0x36381e[_0x5244(0x3a)]||_0x659fb2[_0x5244(0x3b)]),_0x5aa0e2++);}catch(_0x43adf8){_0x3c48fe['gShRs'](_0x3c48fe[_0x5244(0x3c)],_0x3c48fe[_0x5244(0x3c)])?(console[_0x5244(0x36)]('âš ī¸\x20[CLAUDE_SERVICE]\x20Network\x20error\x20for\x20conversation\x20'+_0x3c48fe['FPONH'](_0x3fa700,0x1)+':',_0x43adf8),_0x5aa0e2++):(_0x26cb03['log']('✅\x20[CLAUDE_SERVICE]\x20Sent\x20conversation\x20'+(_0x5ad40d+0x1)+'/'+_0x1306ad['length']),_0x3855c8++);}_0x3c48fe[_0x5244(0x3d)](_0x3fa700,_0x3c48fe[_0x5244(0x3e)](_0x1331d0['length'],0x1))&&await new Promise(_0x332c89=>setTimeout(_0x332c89,0x12c));}else return _0x5b1b37[_0x5244(0x3a)](_0x3c48fe[_0x5244(0x3f)]),{'success':![],'error':_0x3c48fe[_0x5244(0x1d)]};}return console[_0x5244(0xf)]('📊\x20[CLAUDE_SERVICE]\x20Complete:\x20'+_0x36ccf5+'\x20success,\x20'+_0x5aa0e2+'\x20failed'),_0x3c48fe[_0x5244(0x40)](_0x36ccf5,0x0)?_0x3c48fe[_0x5244(0x41)](_0x3c48fe[_0x5244(0x42)],_0x3c48fe[_0x5244(0x43)])?{'success':!![],'message':'Stored\x20'+_0x36ccf5+_0x5244(0x44)+_0x1331d0[_0x5244(0x12)]+'\x20conversations'}:{'success':!![],'message':_0x5244(0x45)+_0x16ba55+_0x5244(0x44)+_0x5484ce[_0x5244(0x12)]+_0x5244(0x46)}:{'success':![],'error':_0x5244(0x47)+_0x5aa0e2+_0x5244(0x48)};}else return _0x36bb36[_0x5244(0x3a)](_0x5244(0x49)),{'success':![],'error':_0x3c48fe[_0x5244(0x4a)]};}catch(_0x273abd){return _0x3c48fe['gShRs'](_0x3c48fe['QiTzz'],_0x5244(0x4b))?{'success':![],'error':_0x5244(0x47)+_0x33a578+'\x20errors)'}:(console[_0x5244(0x3a)](_0x3c48fe[_0x5244(0x4c)],_0x273abd),{'success':![],'error':_0x273abd['message']||_0x3c48fe[_0x5244(0x4d)]});}};