@onairos/react-native 3.6.7 → 3.6.8

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 (216) hide show
  1. package/lib/commonjs/api/index.js +1 -1
  2. package/lib/commonjs/components/BodyText.js +1 -1
  3. package/lib/commonjs/components/BrandMark.js +1 -1
  4. package/lib/commonjs/components/CodeInput.js +1 -1
  5. package/lib/commonjs/components/EmailInput.js +1 -1
  6. package/lib/commonjs/components/GoogleButton.js +1 -1
  7. package/lib/commonjs/components/HeadingGroup.js +1 -1
  8. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  9. package/lib/commonjs/components/ModalHeader.js +1 -1
  10. package/lib/commonjs/components/ModalSheet.js +1 -1
  11. package/lib/commonjs/components/Onairos.js +1 -1
  12. package/lib/commonjs/components/OnairosButton.js +1 -1
  13. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  14. package/lib/commonjs/components/Overlay.js +1 -1
  15. package/lib/commonjs/components/PersonaImage.js +1 -1
  16. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  17. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  18. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  19. package/lib/commonjs/components/PinInput.js +1 -1
  20. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  21. package/lib/commonjs/components/PlatformList.js +1 -1
  22. package/lib/commonjs/components/PlatformToggle.js +1 -1
  23. package/lib/commonjs/components/PrimaryButton.js +1 -1
  24. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  25. package/lib/commonjs/components/SignInStep.js +1 -1
  26. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  27. package/lib/commonjs/components/VerificationStep.js +1 -1
  28. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  29. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  30. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  31. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  32. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  33. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  34. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  35. package/lib/commonjs/components/icons/EnochE.js +1 -1
  36. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  37. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  38. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  39. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  40. package/lib/commonjs/components/icons/index.js +1 -1
  41. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  42. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  43. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  44. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  45. package/lib/commonjs/config/api.js +1 -1
  46. package/lib/commonjs/constants/index.js +1 -1
  47. package/lib/commonjs/context/AuthContext.js +1 -1
  48. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  49. package/lib/commonjs/hooks/useConnections.js +1 -1
  50. package/lib/commonjs/hooks/useCredentials.js +1 -1
  51. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  52. package/lib/commonjs/index.js +1 -1
  53. package/lib/commonjs/services/apiClient.js +1 -1
  54. package/lib/commonjs/services/biometricPinService.js +1 -1
  55. package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
  56. package/lib/commonjs/services/chatGPTConversationService.js +1 -1
  57. package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
  58. package/lib/commonjs/services/claudeConversationService.js +1 -1
  59. package/lib/commonjs/services/connectedAccountsService.js +1 -1
  60. package/lib/commonjs/services/googleAuthService.js +1 -1
  61. package/lib/commonjs/services/hingeDataExtractor.js +1 -1
  62. package/lib/commonjs/services/hingeDataService.js +1 -1
  63. package/lib/commonjs/services/imageCompressionService.js +1 -1
  64. package/lib/commonjs/services/instagramDataExtractor.js +1 -1
  65. package/lib/commonjs/services/instagramDataService.js +1 -1
  66. package/lib/commonjs/services/jwtStorageService.js +1 -1
  67. package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
  68. package/lib/commonjs/services/linkedinProfileService.js +1 -1
  69. package/lib/commonjs/services/linkedinScrapingService.js +1 -1
  70. package/lib/commonjs/services/llmDataStorage.js +1 -1
  71. package/lib/commonjs/services/mobileTrainingService.js +1 -1
  72. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  73. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  74. package/lib/commonjs/services/platformAuthService.js +1 -1
  75. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  76. package/lib/commonjs/services/sephoraDataService.js +1 -1
  77. package/lib/commonjs/services/storageService.js +1 -1
  78. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  79. package/lib/commonjs/services/telegramDataService.js +1 -1
  80. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  81. package/lib/commonjs/services/userConnectionsService.js +1 -1
  82. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  83. package/lib/commonjs/theme/index.js +1 -1
  84. package/lib/commonjs/types/index.js +1 -1
  85. package/lib/commonjs/types.js +1 -1
  86. package/lib/commonjs/utils/Portal.js +1 -1
  87. package/lib/commonjs/utils/api.js +1 -1
  88. package/lib/commonjs/utils/assetRegistry.js +1 -1
  89. package/lib/commonjs/utils/auth.js +1 -1
  90. package/lib/commonjs/utils/connectorTests.js +1 -1
  91. package/lib/commonjs/utils/crypto.js +1 -1
  92. package/lib/commonjs/utils/debugHelper.js +1 -1
  93. package/lib/commonjs/utils/encryption.js +1 -1
  94. package/lib/commonjs/utils/eventUtils.js +1 -1
  95. package/lib/commonjs/utils/haptics.js +1 -1
  96. package/lib/commonjs/utils/imagePreloader.js +1 -1
  97. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  98. package/lib/commonjs/utils/onairosApi.js +1 -1
  99. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  100. package/lib/commonjs/utils/retryHelper.js +1 -1
  101. package/lib/commonjs/utils/secureStorage.js +1 -1
  102. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  103. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  104. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  105. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  106. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  107. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  108. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  109. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  110. package/lib/module/api/index.js +1 -1
  111. package/lib/module/components/BodyText.js +1 -1
  112. package/lib/module/components/BrandMark.js +1 -1
  113. package/lib/module/components/CodeInput.js +1 -1
  114. package/lib/module/components/EmailInput.js +1 -1
  115. package/lib/module/components/GoogleButton.js +1 -1
  116. package/lib/module/components/HeadingGroup.js +1 -1
  117. package/lib/module/components/LLMDataInputModal.js +1 -1
  118. package/lib/module/components/ModalHeader.js +1 -1
  119. package/lib/module/components/ModalSheet.js +1 -1
  120. package/lib/module/components/Onairos.js +1 -1
  121. package/lib/module/components/OnairosButton.js +1 -1
  122. package/lib/module/components/OnairosSignInButton.js +1 -1
  123. package/lib/module/components/Overlay.js +1 -1
  124. package/lib/module/components/PersonaImage.js +1 -1
  125. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  126. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  127. package/lib/module/components/PinCreationScreen.js +1 -1
  128. package/lib/module/components/PinInput.js +1 -1
  129. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  130. package/lib/module/components/PlatformList.js +1 -1
  131. package/lib/module/components/PlatformToggle.js +1 -1
  132. package/lib/module/components/PrimaryButton.js +1 -1
  133. package/lib/module/components/SignInMatchAnimation.js +1 -1
  134. package/lib/module/components/SignInStep.js +1 -1
  135. package/lib/module/components/UniversalOnboarding.js +1 -1
  136. package/lib/module/components/VerificationStep.js +1 -1
  137. package/lib/module/components/WelcomeScreen.js +1 -1
  138. package/lib/module/components/icons/Basicproficon.js +1 -1
  139. package/lib/module/components/icons/Basicprofile.js +1 -1
  140. package/lib/module/components/icons/Checkbox.js +1 -1
  141. package/lib/module/components/icons/Checkmark.js +1 -1
  142. package/lib/module/components/icons/Contentanalysis.js +1 -1
  143. package/lib/module/components/icons/Contenticon.js +1 -1
  144. package/lib/module/components/icons/EnochE.js +1 -1
  145. package/lib/module/components/icons/Personalityicon.js +1 -1
  146. package/lib/module/components/icons/Personalityprofile.js +1 -1
  147. package/lib/module/components/icons/Personalitytraits.js +1 -1
  148. package/lib/module/components/icons/Userpreferences.js +1 -1
  149. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  150. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  151. package/lib/module/components/onboarding/PinInput.js +1 -1
  152. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  153. package/lib/module/config/api.js +1 -1
  154. package/lib/module/constants/index.js +1 -1
  155. package/lib/module/context/AuthContext.js +1 -1
  156. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  157. package/lib/module/hooks/useConnections.js +1 -1
  158. package/lib/module/hooks/useCredentials.js +1 -1
  159. package/lib/module/hooks/useUserConnections.js +1 -1
  160. package/lib/module/index.js +1 -1
  161. package/lib/module/services/apiClient.js +1 -1
  162. package/lib/module/services/biometricPinService.js +1 -1
  163. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  164. package/lib/module/services/chatGPTConversationService.js +1 -1
  165. package/lib/module/services/claudeConversationExtractor.js +1 -1
  166. package/lib/module/services/claudeConversationService.js +1 -1
  167. package/lib/module/services/connectedAccountsService.js +1 -1
  168. package/lib/module/services/googleAuthService.js +1 -1
  169. package/lib/module/services/hingeDataExtractor.js +1 -1
  170. package/lib/module/services/hingeDataService.js +1 -1
  171. package/lib/module/services/imageCompressionService.js +1 -1
  172. package/lib/module/services/instagramDataExtractor.js +1 -1
  173. package/lib/module/services/instagramDataService.js +1 -1
  174. package/lib/module/services/jwtStorageService.js +1 -1
  175. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  176. package/lib/module/services/linkedinProfileService.js +1 -1
  177. package/lib/module/services/linkedinScrapingService.js +1 -1
  178. package/lib/module/services/llmDataStorage.js +1 -1
  179. package/lib/module/services/mobileTrainingService.js +1 -1
  180. package/lib/module/services/pinEncryptionService.js +1 -1
  181. package/lib/module/services/pinStorageUtils.js +1 -1
  182. package/lib/module/services/platformAuthService.js +1 -1
  183. package/lib/module/services/sephoraDataExtractor.js +1 -1
  184. package/lib/module/services/sephoraDataService.js +1 -1
  185. package/lib/module/services/storageService.js +1 -1
  186. package/lib/module/services/telegramDataExtractor.js +1 -1
  187. package/lib/module/services/telegramDataService.js +1 -1
  188. package/lib/module/services/trainingApiHelpers.js +1 -1
  189. package/lib/module/services/userConnectionsService.js +1 -1
  190. package/lib/module/services/youtubeMigrationService.js +1 -1
  191. package/lib/module/theme/index.js +1 -1
  192. package/lib/module/types.js +1 -1
  193. package/lib/module/utils/Portal.js +1 -1
  194. package/lib/module/utils/api.js +1 -1
  195. package/lib/module/utils/assetRegistry.js +1 -1
  196. package/lib/module/utils/auth.js +1 -1
  197. package/lib/module/utils/connectorTests.js +1 -1
  198. package/lib/module/utils/crypto.js +1 -1
  199. package/lib/module/utils/debugHelper.js +1 -1
  200. package/lib/module/utils/encryption.js +1 -1
  201. package/lib/module/utils/eventUtils.js +1 -1
  202. package/lib/module/utils/haptics.js +1 -1
  203. package/lib/module/utils/networkDiagnostics.js +1 -1
  204. package/lib/module/utils/onairosApi.js +1 -1
  205. package/lib/module/utils/programmaticFlow.js +1 -1
  206. package/lib/module/utils/retryHelper.js +1 -1
  207. package/lib/module/utils/secureStorage.js +1 -1
  208. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  209. package/lib/module/utils/webviewScripts/claude.js +1 -1
  210. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  211. package/lib/module/utils/webviewScripts/index.js +1 -1
  212. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  213. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  214. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  215. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  216. package/package.json +1 -1
@@ -1 +1 @@
1
- import{getUserAuthHeaders,getApiHeaders}from'../config/api';function _0x4148(_0x5d2076,_0x414876){_0x5d2076=_0x5d2076-0x0;const _0x103ea3=_0x5d20();let _0x41b5f4=_0x103ea3[_0x5d2076];return _0x41b5f4;}import{API_CONFIG}from'../config/api';import{getUserIdFromToken}from'./jwtStorageService';export const scrapeLinkedInProfile=async(_0x1dea1e,_0x1e4e24)=>{const _0x2f9bcc={'paUwg':_0x4148(0x0),'KVEZG':function(_0x202144,_0x3d0aba){return _0x202144 instanceof _0x3d0aba;},'NvXIh':_0x4148(0x1),'zUgDU':function(_0x14b300){return _0x14b300();},'UReDT':_0x4148(0x2),'JxwTs':function(_0x2864d4,_0x3f47f1){return _0x2864d4!==_0x3f47f1;},'sSfad':'Llmon','NRPeo':_0x4148(0x3),'WchAL':'🔍\x20[LINKEDIN\x20SCRAPE]\x20Passed\x20User\x20ID:','TvRIM':'🔍\x20[LINKEDIN\x20SCRAPE]\x20Profile\x20URL:','WmglL':function(_0x6ef802,_0x19b5c8){return _0x6ef802||_0x19b5c8;},'iQmBI':_0x4148(0x4),'yqHkw':function(_0x19a728,_0x4826b5){return _0x19a728(_0x4826b5);},'CsUVy':'ygsyQ','mCddp':_0x4148(0x5),'xWsIP':function(_0x5a4caf,_0x1ae363){return _0x5a4caf!==_0x1ae363;},'ixtnc':_0x4148(0x6),'hwYJu':_0x4148(0x7),'tUsbq':function(_0x3eeafb,_0x3155a1){return _0x3eeafb!==_0x3155a1;},'aCPbs':_0x4148(0x8),'rcOcq':'WheTP','wQxTY':_0x4148(0x9),'jDgFR':function(_0x5e24ae){return _0x5e24ae();},'gWCBh':function(_0x5a05fb,_0x76d9d3,_0x4f9214){return _0x5a05fb(_0x76d9d3,_0x4f9214);},'XJDMX':_0x4148(0xa),'VlIqf':_0x4148(0xb),'vmLtY':function(_0x385307,_0x1c1658){return _0x385307===_0x1c1658;},'CuPNb':function(_0x15226d,_0x1968f2){return _0x15226d===_0x1968f2;},'EoZps':function(_0x3b764b,_0xed4a20){return _0x3b764b===_0xed4a20;},'hJmiI':function(_0x586571,_0x500bf1){return _0x586571===_0x500bf1;},'saxqv':function(_0x445bec,_0x48176d){return _0x445bec===_0x48176d;},'DLffa':function(_0x1e76e0,_0x2ffe9c){return _0x1e76e0===_0x2ffe9c;},'anFna':'Profile\x20scraped\x20successfully','EgmeK':_0x4148(0xc),'fhWrp':function(_0x38ceab,_0x24280d){return _0x38ceab instanceof _0x24280d;}};try{if(_0x2f9bcc[_0x4148(0xd)](_0x2f9bcc[_0x4148(0xe)],_0x2f9bcc['sSfad']))return![];else{var _0xab91e,_0x13ee42,_0x597f93,_0x2591ef,_0x3be9ab;console['log'](_0x2f9bcc[_0x4148(0xf)]),console['log'](_0x2f9bcc[_0x4148(0x10)],_0x1dea1e),console[_0x4148(0x11)](_0x2f9bcc['TvRIM'],_0x1e4e24);const _0x33ba54=await _0x2f9bcc['zUgDU'](getUserIdFromToken),_0x576688=_0x2f9bcc[_0x4148(0x12)](_0x33ba54,_0x1dea1e);console['log'](_0x4148(0x13),_0x33ba54),console[_0x4148(0x11)](_0x2f9bcc[_0x4148(0x14)],_0x576688);if(!_0x2f9bcc[_0x4148(0x15)](isValidLinkedInUrl,_0x1e4e24))return _0x4148(0x16)===_0x2f9bcc[_0x4148(0x17)]?(_0x2a3830['error'](_0x2f9bcc[_0x4148(0x18)],_0x5a583e),{'success':![],'error':_0x2f9bcc[_0x4148(0x19)](_0x2aa457,_0x169790)?_0x2396cb[_0x4148(0x1a)]:_0x2f9bcc['NvXIh']}):(console[_0x4148(0x1b)](_0x2f9bcc['mCddp']),{'success':![],'error':'Invalid\x20LinkedIn\x20profile\x20URL.\x20Please\x20use\x20format:\x20https://linkedin.com/in/username'});let _0x41de5c;try{_0x2f9bcc['xWsIP'](_0x2f9bcc[_0x4148(0x1c)],_0x4148(0x1d))?(_0x41de5c=await getUserAuthHeaders(),console[_0x4148(0x11)](_0x2f9bcc[_0x4148(0x1e)])):_0x3d5c4b=_0x2f9bcc[_0x4148(0x1f)](_0x4a513d);}catch(_0x35dd88){if(_0x2f9bcc[_0x4148(0x20)](_0x2f9bcc[_0x4148(0x21)],_0x2f9bcc[_0x4148(0x22)]))console[_0x4148(0x23)](_0x2f9bcc[_0x4148(0x24)],_0x35dd88),_0x41de5c=_0x2f9bcc[_0x4148(0x25)](getApiHeaders);else return _0x2b06d4[_0x4148(0x1b)](_0x2f9bcc[_0x4148(0x26)],_0x46241b),{'connected':![]};}const _0x5e891a=await _0x2f9bcc[_0x4148(0x27)](fetch,API_CONFIG[_0x4148(0x28)]+'/enoch/linkedin-scrape/scrape-profile',{'method':'POST','headers':_0x41de5c,'body':JSON[_0x4148(0x29)]({'userId':_0x576688,'profileUrl':_0x1e4e24})});if(!_0x5e891a['ok']){const _0x46d4e7=await _0x5e891a[_0x4148(0x2a)]();console[_0x4148(0x1b)](_0x2f9bcc[_0x4148(0x2b)],_0x5e891a[_0x4148(0x2c)],_0x46d4e7);let _0xed1a5='Scraping\x20failed:\x20'+_0x5e891a[_0x4148(0x2c)];try{const _0x3f8d04=JSON[_0x4148(0x2d)](_0x46d4e7);_0xed1a5=_0x3f8d04[_0x4148(0x1b)]||_0x3f8d04[_0x4148(0x1a)]||_0xed1a5;}catch{}return{'success':![],'error':_0xed1a5};}const _0x13d302=await _0x5e891a['json']();return console['log'](_0x2f9bcc[_0x4148(0x2e)]),console[_0x4148(0x11)](_0x4148(0x2f),{'name':(_0xab91e=_0x13d302[_0x4148(0x30)])===null||_0x2f9bcc[_0x4148(0x31)](_0xab91e,void 0x0)?void 0x0:_0xab91e['fullName'],'headline':_0x2f9bcc[_0x4148(0x31)](_0x13ee42=_0x13d302['profileData'],null)||_0x2f9bcc[_0x4148(0x31)](_0x13ee42,void 0x0)?void 0x0:_0x13ee42[_0x4148(0x32)],'experienceCount':(_0x2f9bcc['CuPNb'](_0x597f93=_0x13d302[_0x4148(0x30)],null)||_0x597f93===void 0x0||_0x2f9bcc[_0x4148(0x33)](_0x597f93=_0x597f93[_0x4148(0x34)],null)||_0x2f9bcc[_0x4148(0x33)](_0x597f93,void 0x0)?void 0x0:_0x597f93[_0x4148(0x35)])||0x0,'educationCount':((_0x2591ef=_0x13d302[_0x4148(0x30)])===null||_0x2f9bcc[_0x4148(0x36)](_0x2591ef,void 0x0)||_0x2f9bcc[_0x4148(0x31)](_0x2591ef=_0x2591ef[_0x4148(0x37)],null)||_0x2f9bcc[_0x4148(0x38)](_0x2591ef,void 0x0)?void 0x0:_0x2591ef['length'])||0x0,'skillsCount':(_0x2f9bcc['saxqv'](_0x3be9ab=_0x13d302['profileData'],null)||_0x2f9bcc[_0x4148(0x39)](_0x3be9ab,void 0x0)||(_0x3be9ab=_0x3be9ab[_0x4148(0x3a)])===null||_0x2f9bcc[_0x4148(0x31)](_0x3be9ab,void 0x0)?void 0x0:_0x3be9ab[_0x4148(0x35)])||0x0}),{'success':!![],'data':_0x13d302[_0x4148(0x30)],'message':_0x2f9bcc[_0x4148(0x3b)]};}}catch(_0x3d0a49){if(_0x2f9bcc[_0x4148(0x20)](_0x2f9bcc['EgmeK'],_0x2f9bcc[_0x4148(0x3c)])){const _0x4529a1=_0x2dbd10['parse'](_0x378c42);_0x3b13c3=_0x4529a1[_0x4148(0x1b)]||_0x4529a1[_0x4148(0x1a)]||_0x478563;}else return console[_0x4148(0x1b)](_0x2f9bcc[_0x4148(0x18)],_0x3d0a49),{'success':![],'error':_0x2f9bcc[_0x4148(0x3d)](_0x3d0a49,Error)?_0x3d0a49['message']:_0x2f9bcc[_0x4148(0x3e)]};}};export const extractLinkedInUsername=_0x1d17df=>{const _0x4e454e={'rfnKT':'❌\x20[LINKEDIN]\x20Error\x20checking\x20scrape\x20availability:','exoDb':_0x4148(0x3f),'ZMRVv':'❌\x20[LINKEDIN]\x20Error\x20extracting\x20username:'};try{const _0x3e3903=_0x1d17df[_0x4148(0x40)](/linkedin\.com\/in\/([^\/\?#]+)/);return _0x3e3903?_0x3e3903[0x1]:null;}catch(_0x2ae167){return _0x4148(0x3f)!==_0x4e454e[_0x4148(0x41)]?(_0x21e76f[_0x4148(0x1b)](_0x4e454e[_0x4148(0x42)],_0x482876),![]):(console['error'](_0x4e454e[_0x4148(0x43)],_0x2ae167),null);}};export const isValidLinkedInUrl=_0x2361a1=>{const _0x5f2007={'TEubC':'string','dAIxc':function(_0x5af25f,_0x1d4cd5){return _0x5af25f===_0x1d4cd5;},'gzHRw':_0x4148(0x44),'dpLWp':function(_0x462368,_0x4c344b){return _0x462368(_0x4c344b);},'ZHJAs':function(_0x45e2ff,_0x2ef1ef){return _0x45e2ff!==_0x2ef1ef;}};if(!_0x2361a1||typeof _0x2361a1!==_0x5f2007[_0x4148(0x45)])return![];const _0x14f36d=/linkedin\.com\/in\/[^\/\?#]+/[_0x4148(0x46)](_0x2361a1);if(!_0x14f36d){if(_0x5f2007[_0x4148(0x47)](_0x5f2007[_0x4148(0x48)],_0x5f2007[_0x4148(0x48)]))return![];else try{const _0x1ee61e=_0x379eb6['match'](/linkedin\.com\/in\/([^\/\?#]+)/);return _0x1ee61e?_0x1ee61e[0x1]:null;}catch(_0x15567f){return _0x1cd0b8[_0x4148(0x1b)]('❌\x20[LINKEDIN]\x20Error\x20extracting\x20username:',_0x15567f),null;}}const _0x35fef1=_0x5f2007[_0x4148(0x49)](extractLinkedInUsername,_0x2361a1);return _0x5f2007[_0x4148(0x4a)](_0x35fef1,null)&&_0x35fef1['length']>0x0;};function _0x5d20(){const _0x3db712=['❌\x20[LINKEDIN\x20SCRAPE]\x20Error:','Unknown\x20error\x20occurred\x20during\x20scraping','❌\x20[LINKEDIN]\x20Error\x20getting\x20connection\x20status:','🔍\x20[LINKEDIN\x20SCRAPE]\x20Starting\x20profile\x20scrape...','🔍\x20[LINKEDIN\x20SCRAPE]\x20Effective\x20userId\x20(will\x20use):','❌\x20[LINKEDIN\x20SCRAPE]\x20Invalid\x20LinkedIn\x20URL','GHzgh','🔑\x20[LINKEDIN\x20SCRAPE]\x20Using\x20authenticated\x20user\x20headers','wgztN','⚠️\x20[LINKEDIN\x20SCRAPE]\x20No\x20user\x20auth\x20available,\x20using\x20basic\x20headers:','❌\x20[LINKEDIN\x20SCRAPE]\x20Failed:','✅\x20[LINKEDIN\x20SCRAPE]\x20Profile\x20scraped\x20successfully','VYZuR','JxwTs','sSfad','NRPeo','WchAL','log','WmglL','🔍\x20[LINKEDIN\x20SCRAPE]\x20JWT\x20userId:','iQmBI','yqHkw','xpgLn','CsUVy','paUwg','KVEZG','message','error','ixtnc','gKcCh','hwYJu','zUgDU','tUsbq','aCPbs','rcOcq','warn','wQxTY','jDgFR','UReDT','gWCBh','BASE_URL','stringify','text','XJDMX','status','parse','VlIqf','📊\x20[LINKEDIN\x20SCRAPE]\x20Data\x20preview:','profileData','vmLtY','headline','CuPNb','experience','length','EoZps','education','hJmiI','DLffa','skills','anFna','EgmeK','fhWrp','NvXIh','nOyWP','match','exoDb','rfnKT','ZMRVv','RNQQY','TEubC','test','dAIxc','gzHRw','dpLWp','ZHJAs','http://','https://','SsTMl','zOzjt','linkedin.com/in/','/in/','startsWith','ZDcbD','LzAxw','UJBMq','TXPSf','includes','HkvnT','RhSRP','https://linkedin.com','https://linkedin.com/in/','DMUZJ','❌\x20[LINKEDIN]\x20Error\x20checking\x20scrape\x20availability:','YuVJV','TXlSm','xIPuV','OJzvC','pvmUw','WZqLI','HtQXJ','/user/','/connections','json','govat','connections','LinkedIn','zhNhe','NKqCW','MdsYO','/enoch/linkedin-scrape/scrape-profile/','rJtrZ','VcXfi','vpBzJ'];_0x5d20=function(){return _0x3db712;};return _0x5d20();}export const formatLinkedInUrl=_0x311a30=>{const _0x11051e={'TXPSf':function(_0x579c6c){return _0x579c6c();},'aWemE':_0x4148(0x4b),'ZDcbD':_0x4148(0x4c),'LzAxw':function(_0xc662c0,_0xe7c590){return _0xc662c0!==_0xe7c590;},'UJBMq':_0x4148(0x4d),'rEluE':_0x4148(0x4e),'HkvnT':_0x4148(0x4f),'RhSRP':_0x4148(0x50)};if(_0x311a30[_0x4148(0x51)](_0x11051e['aWemE'])||_0x311a30['startsWith'](_0x11051e[_0x4148(0x52)])){if(_0x11051e[_0x4148(0x53)](_0x11051e[_0x4148(0x54)],_0x11051e['rEluE']))return _0x311a30;else _0x550299=_0x11051e[_0x4148(0x55)](_0x37a33e);}if(!_0x311a30[_0x4148(0x56)]('/'))return'https://linkedin.com/in/'+_0x311a30;if(_0x311a30[_0x4148(0x51)](_0x11051e[_0x4148(0x57)]))return _0x4148(0x4c)+_0x311a30;if(_0x311a30[_0x4148(0x51)](_0x11051e[_0x4148(0x58)]))return _0x4148(0x59)+_0x311a30;return _0x4148(0x5a)+_0x311a30;};export const canScrapeProfile=async _0x60d1d0=>{const _0x40046f={'pvmUw':_0x4148(0x5),'WZqLI':'Invalid\x20LinkedIn\x20profile\x20URL.\x20Please\x20use\x20format:\x20https://linkedin.com/in/username','YuVJV':function(_0x1c2f50,_0x505112){return _0x1c2f50!==_0x505112;},'TXlSm':_0x4148(0x5b),'xIPuV':'KRumS','OJzvC':function(_0x2b9d24){return _0x2b9d24();},'HtQXJ':function(_0x29356f,_0x5863e5,_0x5485fc){return _0x29356f(_0x5863e5,_0x5485fc);},'govat':function(_0x4f24e9,_0x1f2089){return _0x4f24e9===_0x1f2089;},'zhNhe':_0x4148(0x5c)};try{if(_0x40046f[_0x4148(0x5d)]('RIJPc','RIJPc')){const _0x8568d7=_0x3d8805['match'](/linkedin\.com\/in\/([^\/\?#]+)/);return _0x8568d7?_0x8568d7[0x1]:null;}else{let _0x5ba17b;try{if(_0x40046f['YuVJV'](_0x40046f[_0x4148(0x5e)],_0x40046f[_0x4148(0x5f)]))_0x5ba17b=await _0x40046f[_0x4148(0x60)](getUserAuthHeaders);else return _0x3cb971[_0x4148(0x1b)](_0x40046f[_0x4148(0x61)]),{'success':![],'error':_0x40046f[_0x4148(0x62)]};}catch{_0x5ba17b=_0x40046f['OJzvC'](getApiHeaders);}const _0x4acc67=await _0x40046f[_0x4148(0x63)](fetch,API_CONFIG['BASE_URL']+_0x4148(0x64)+_0x60d1d0+_0x4148(0x65),{'headers':_0x5ba17b});if(_0x4acc67['ok']){var _0x23529a;const _0x432e57=await _0x4acc67[_0x4148(0x66)]();return _0x40046f['YuVJV'](_0x40046f[_0x4148(0x67)](_0x23529a=_0x432e57[_0x4148(0x68)],null)||_0x40046f[_0x4148(0x67)](_0x23529a,void 0x0)?void 0x0:_0x23529a[_0x4148(0x69)],undefined);}return![];}}catch(_0x5a06a6){return console['error'](_0x40046f[_0x4148(0x6a)],_0x5a06a6),![];}};export const getLinkedInConnectionStatus=async _0x4b11ed=>{const _0x2617cf={'MdsYO':function(_0x5e5d64){return _0x5e5d64();},'rJtrZ':function(_0x58ff58,_0x548178){return _0x58ff58!==_0x548178;},'VcXfi':_0x4148(0x6b),'vpBzJ':'❌\x20[LINKEDIN]\x20Error\x20getting\x20connection\x20status:'};try{let _0x49fa46;try{_0x49fa46=await _0x2617cf[_0x4148(0x6c)](getUserAuthHeaders);}catch{_0x49fa46=getApiHeaders();}const _0x57a945=await fetch(API_CONFIG[_0x4148(0x28)]+_0x4148(0x6d)+_0x4b11ed,{'headers':_0x49fa46});if(_0x57a945['ok']){if(_0x2617cf[_0x4148(0x6e)](_0x2617cf['VcXfi'],_0x2617cf[_0x4148(0x6f)]))return _0x90b963;else{const _0x2b01b9=await _0x57a945['json']();return _0x2b01b9;}}return{'connected':![]};}catch(_0x42dfdf){return console['error'](_0x2617cf[_0x4148(0x70)],_0x42dfdf),{'connected':![]};}};
1
+ import{getUserAuthHeaders,getApiHeaders}from'../config/api';import{API_CONFIG}from'../config/api';import{getUserIdFromToken}from'./jwtStorageService';export const scrapeLinkedInProfile=async(_0x5f1177,_0xf35963)=>{const _0x18fe84={'KJKWS':'❌\x20[LINKEDIN\x20SCRAPE]\x20Error:','LZuLB':function(_0x1a9a8f,_0x48a69e){return _0x1a9a8f instanceof _0x48a69e;},'kXQde':'🔍\x20[LINKEDIN\x20SCRAPE]\x20Passed\x20User\x20ID:','YCGUz':_0x4a8b(0x0),'eRwHy':function(_0x28426c){return _0x28426c();},'eKjHy':function(_0x4b58d1,_0x18a409){return _0x4b58d1||_0x18a409;},'QGyRS':'🔍\x20[LINKEDIN\x20SCRAPE]\x20JWT\x20userId:','fsueR':_0x4a8b(0x1),'YQcwH':function(_0x222d92,_0x3d7357){return _0x222d92(_0x3d7357);},'qEhdX':_0x4a8b(0x2),'feDDk':_0x4a8b(0x3),'efZhQ':function(_0x3ea821){return _0x3ea821();},'MEuZF':_0x4a8b(0x4),'RkKph':function(_0x286f2a,_0x32f4b6){return _0x286f2a===_0x32f4b6;},'YRjEk':'LHefR','kVFRq':_0x4a8b(0x5),'FaqFr':function(_0x98da3a){return _0x98da3a();},'fIqZb':function(_0x23dc58,_0x1facbe,_0x120c81){return _0x23dc58(_0x1facbe,_0x120c81);},'ilweY':_0x4a8b(0x6),'xPyZY':_0x4a8b(0x7),'BxPwM':function(_0x4f19c2,_0x6426ff){return _0x4f19c2===_0x6426ff;},'lQDnz':function(_0x52d631,_0x37d6d2){return _0x52d631===_0x37d6d2;},'YNkeP':function(_0x5464a3,_0x4f27ce){return _0x5464a3===_0x4f27ce;},'FLZRt':'Profile\x20scraped\x20successfully','iCqBi':function(_0x191951,_0x46dfab){return _0x191951!==_0x46dfab;},'opTPq':_0x4a8b(0x8),'caXVa':'Unknown\x20error\x20occurred\x20during\x20scraping'};try{var _0x4853d2,_0x47df52,_0x21b860,_0x10222b,_0x24cee2;console[_0x4a8b(0x9)](_0x4a8b(0xa)),console[_0x4a8b(0x9)](_0x18fe84[_0x4a8b(0xb)],_0x5f1177),console[_0x4a8b(0x9)](_0x18fe84[_0x4a8b(0xc)],_0xf35963);const _0x356b9e=await _0x18fe84['eRwHy'](getUserIdFromToken),_0xc75957=_0x18fe84[_0x4a8b(0xd)](_0x356b9e,_0x5f1177);console[_0x4a8b(0x9)](_0x18fe84['QGyRS'],_0x356b9e),console[_0x4a8b(0x9)](_0x18fe84[_0x4a8b(0xe)],_0xc75957);if(!_0x18fe84['YQcwH'](isValidLinkedInUrl,_0xf35963))return _0x18fe84[_0x4a8b(0xf)]===_0x18fe84[_0x4a8b(0xf)]?(console[_0x4a8b(0x10)](_0x4a8b(0x11)),{'success':![],'error':_0x18fe84[_0x4a8b(0x12)]}):![];let _0x412639;try{_0x412639=await _0x18fe84[_0x4a8b(0x13)](getUserAuthHeaders),console[_0x4a8b(0x9)](_0x18fe84['MEuZF']);}catch(_0x47ef58){if(_0x18fe84[_0x4a8b(0x14)](_0x18fe84[_0x4a8b(0x15)],_0x18fe84['YRjEk']))console[_0x4a8b(0x16)](_0x18fe84[_0x4a8b(0x17)],_0x47ef58),_0x412639=_0x18fe84[_0x4a8b(0x18)](getApiHeaders);else return _0x4a8b(0x19)+_0x3556bb;}const _0x3bbd7c=await _0x18fe84[_0x4a8b(0x1a)](fetch,API_CONFIG[_0x4a8b(0x1b)]+_0x4a8b(0x1c),{'method':'POST','headers':_0x412639,'body':JSON['stringify']({'userId':_0xc75957,'profileUrl':_0xf35963})});if(!_0x3bbd7c['ok']){const _0x385c21=await _0x3bbd7c['text']();console['error'](_0x18fe84[_0x4a8b(0x1d)],_0x3bbd7c[_0x4a8b(0x1e)],_0x385c21);let _0x445000=_0x4a8b(0x1f)+_0x3bbd7c['status'];try{const _0x23f1c2=JSON['parse'](_0x385c21);_0x445000=_0x23f1c2['error']||_0x23f1c2[_0x4a8b(0x20)]||_0x445000;}catch{}return{'success':![],'error':_0x445000};}const _0x59a5cf=await _0x3bbd7c[_0x4a8b(0x21)]();return console[_0x4a8b(0x9)]('✅\x20[LINKEDIN\x20SCRAPE]\x20Profile\x20scraped\x20successfully'),console[_0x4a8b(0x9)](_0x18fe84['xPyZY'],{'name':(_0x4853d2=_0x59a5cf[_0x4a8b(0x22)])===null||_0x18fe84[_0x4a8b(0x14)](_0x4853d2,void 0x0)?void 0x0:_0x4853d2[_0x4a8b(0x23)],'headline':_0x18fe84[_0x4a8b(0x24)](_0x47df52=_0x59a5cf['profileData'],null)||_0x47df52===void 0x0?void 0x0:_0x47df52[_0x4a8b(0x25)],'experienceCount':(_0x18fe84[_0x4a8b(0x26)](_0x21b860=_0x59a5cf[_0x4a8b(0x22)],null)||_0x18fe84[_0x4a8b(0x14)](_0x21b860,void 0x0)||(_0x21b860=_0x21b860[_0x4a8b(0x27)])===null||_0x21b860===void 0x0?void 0x0:_0x21b860[_0x4a8b(0x28)])||0x0,'educationCount':((_0x10222b=_0x59a5cf['profileData'])===null||_0x18fe84[_0x4a8b(0x14)](_0x10222b,void 0x0)||(_0x10222b=_0x10222b[_0x4a8b(0x29)])===null||_0x18fe84[_0x4a8b(0x14)](_0x10222b,void 0x0)?void 0x0:_0x10222b[_0x4a8b(0x28)])||0x0,'skillsCount':(_0x18fe84[_0x4a8b(0x2a)](_0x24cee2=_0x59a5cf['profileData'],null)||_0x24cee2===void 0x0||(_0x24cee2=_0x24cee2[_0x4a8b(0x2b)])===null||_0x18fe84['BxPwM'](_0x24cee2,void 0x0)?void 0x0:_0x24cee2[_0x4a8b(0x28)])||0x0}),{'success':!![],'data':_0x59a5cf[_0x4a8b(0x22)],'message':_0x18fe84[_0x4a8b(0x2c)]};}catch(_0xf8e3c7){return _0x18fe84[_0x4a8b(0x2d)](_0x18fe84[_0x4a8b(0x2e)],_0x18fe84['opTPq'])?(_0x59de97[_0x4a8b(0x10)](_0x18fe84['KJKWS'],_0x49c491),{'success':![],'error':_0x18fe84['LZuLB'](_0x653c0a,_0x4dac92)?_0x3005f7[_0x4a8b(0x20)]:'Unknown\x20error\x20occurred\x20during\x20scraping'}):(console[_0x4a8b(0x10)](_0x18fe84[_0x4a8b(0x2f)],_0xf8e3c7),{'success':![],'error':_0x18fe84[_0x4a8b(0x30)](_0xf8e3c7,Error)?_0xf8e3c7[_0x4a8b(0x20)]:_0x18fe84[_0x4a8b(0x31)]});}};export const extractLinkedInUsername=_0x2c0066=>{const _0x4f7c43={'tcQck':function(_0x5030d0,_0x3160b){return _0x5030d0!==_0x3160b;},'rmAwc':_0x4a8b(0x32),'MyzCz':function(_0x5edff7,_0x16b45e){return _0x5edff7!==_0x16b45e;},'ZIDQa':_0x4a8b(0x33),'INKGD':_0x4a8b(0x34),'aEykq':_0x4a8b(0x35)};try{if(_0x4f7c43[_0x4a8b(0x36)]('uRYzR',_0x4f7c43[_0x4a8b(0x37)])){const _0x180abe=_0x2c0066['match'](/linkedin\.com\/in\/([^\/\?#]+)/);return _0x180abe?_0x180abe[0x1]:null;}else _0x4d6143[_0x4a8b(0x16)]('⚠️\x20[LINKEDIN\x20SCRAPE]\x20No\x20user\x20auth\x20available,\x20using\x20basic\x20headers:',_0x39ac13),_0x322299=_0x2c5e97();}catch(_0x690e61){return _0x4f7c43[_0x4a8b(0x38)](_0x4f7c43['ZIDQa'],_0x4f7c43[_0x4a8b(0x39)])?(console['error'](_0x4f7c43['aEykq'],_0x690e61),null):_0x4a6914;}};export const isValidLinkedInUrl=_0x201a50=>{const _0x510dc8={'FqQUo':'string','otfHs':function(_0x2e37ea,_0x51ea41){return _0x2e37ea(_0x51ea41);},'ZeAYA':function(_0xbfbfca,_0xc322ff){return _0xbfbfca>_0xc322ff;}};if(!_0x201a50||typeof _0x201a50!==_0x510dc8[_0x4a8b(0x3a)])return![];const _0x2d872c=/linkedin\.com\/in\/[^\/\?#]+/[_0x4a8b(0x3b)](_0x201a50);if(!_0x2d872c)return![];const _0x1753c8=_0x510dc8[_0x4a8b(0x3c)](extractLinkedInUsername,_0x201a50);return _0x1753c8!==null&&_0x510dc8[_0x4a8b(0x3d)](_0x1753c8[_0x4a8b(0x28)],0x0);};export const formatLinkedInUrl=_0x36aa29=>{const _0x2780d2={'PhkRS':function(_0x552478){return _0x552478();},'KCwpd':_0x4a8b(0x3e),'ZWErw':_0x4a8b(0x3f),'Uoaln':_0x4a8b(0x40),'gwjmb':function(_0x4c3e34,_0x357071){return _0x4c3e34!==_0x357071;},'rQTzn':_0x4a8b(0x41),'tzGla':_0x4a8b(0x42)};if(_0x36aa29[_0x4a8b(0x43)](_0x2780d2[_0x4a8b(0x44)])||_0x36aa29[_0x4a8b(0x43)](_0x2780d2[_0x4a8b(0x45)]))return _0x36aa29;if(!_0x36aa29[_0x4a8b(0x46)]('/'))return _0x4a8b(0x19)+_0x36aa29;if(_0x36aa29['startsWith'](_0x2780d2['Uoaln'])){if(_0x2780d2[_0x4a8b(0x47)](_0x2780d2['rQTzn'],'EnmyU'))_0x28dac8=_0x2780d2[_0x4a8b(0x48)](_0x533007);else return _0x4a8b(0x3f)+_0x36aa29;}if(_0x36aa29['startsWith'](_0x2780d2[_0x4a8b(0x49)]))return _0x4a8b(0x4a)+_0x36aa29;return _0x4a8b(0x19)+_0x36aa29;};function _0x4a8b(_0x4a0f5a,_0x4a8bd4){_0x4a0f5a=_0x4a0f5a-0x0;const _0x530f02=_0x4a0f();let _0x444a66=_0x530f02[_0x4a0f5a];return _0x444a66;}function _0x4a0f(){const _0x1a6204=['🔍\x20[LINKEDIN\x20SCRAPE]\x20Profile\x20URL:','🔍\x20[LINKEDIN\x20SCRAPE]\x20Effective\x20userId\x20(will\x20use):','RAQOx','Invalid\x20LinkedIn\x20profile\x20URL.\x20Please\x20use\x20format:\x20https://linkedin.com/in/username','🔑\x20[LINKEDIN\x20SCRAPE]\x20Using\x20authenticated\x20user\x20headers','⚠️\x20[LINKEDIN\x20SCRAPE]\x20No\x20user\x20auth\x20available,\x20using\x20basic\x20headers:','❌\x20[LINKEDIN\x20SCRAPE]\x20Failed:','📊\x20[LINKEDIN\x20SCRAPE]\x20Data\x20preview:','iLirb','log','🔍\x20[LINKEDIN\x20SCRAPE]\x20Starting\x20profile\x20scrape...','kXQde','YCGUz','eKjHy','fsueR','qEhdX','error','❌\x20[LINKEDIN\x20SCRAPE]\x20Invalid\x20LinkedIn\x20URL','feDDk','efZhQ','RkKph','YRjEk','warn','kVFRq','FaqFr','https://linkedin.com/in/','fIqZb','BASE_URL','/enoch/linkedin-scrape/scrape-profile','ilweY','status','Scraping\x20failed:\x20','message','json','profileData','fullName','BxPwM','headline','lQDnz','experience','length','education','YNkeP','skills','FLZRt','iCqBi','opTPq','KJKWS','LZuLB','caXVa','aLnGL','iplKs','PujdM','❌\x20[LINKEDIN]\x20Error\x20extracting\x20username:','tcQck','rmAwc','MyzCz','INKGD','FqQUo','test','otfHs','ZeAYA','http://','https://','linkedin.com/in/','EnmyU','/in/','startsWith','KCwpd','ZWErw','includes','gwjmb','PhkRS','tzGla','https://linkedin.com','❌\x20[LINKEDIN]\x20Error\x20checking\x20scrape\x20availability:','Bqoou','FPvog','hIOsV','JpuNx','VPSxq','nNtaL','fBPML','/user/','/connections','Hzlaj','TpARB','match','AJQGF','YXULI','connections','LinkedIn','parse','wxOFp','FTZjA','PtHDk','❌\x20[LINKEDIN]\x20Error\x20getting\x20connection\x20status:','ZeiOb','XMnUU','cWZkZ','VkAzY','EfaVM','Qaxnb','JMUUn'];_0x4a0f=function(){return _0x1a6204;};return _0x4a0f();}export const canScrapeProfile=async _0xd195f2=>{const _0xb74f10={'nNtaL':_0x4a8b(0x4b),'AJQGF':'❌\x20[LINKEDIN]\x20Error\x20extracting\x20username:','FPvog':'HQpTa','hIOsV':function(_0x244da7){return _0x244da7();},'JpuNx':_0x4a8b(0x4c),'VPSxq':'OwCRa','fBPML':function(_0x10bff0,_0x3d3c0b,_0x5a32d8){return _0x10bff0(_0x3d3c0b,_0x5a32d8);},'Hzlaj':function(_0x44ad9b,_0x4953c4){return _0x44ad9b!==_0x4953c4;},'YXULI':function(_0x4a27fe,_0x3e8226){return _0x4a27fe!==_0x3e8226;},'FTZjA':'wxOFp'};try{if(_0xb74f10[_0x4a8b(0x4d)]===_0xb74f10[_0x4a8b(0x4d)]){let _0x2a375b;try{_0x2a375b=await _0xb74f10[_0x4a8b(0x4e)](getUserAuthHeaders);}catch{if(_0xb74f10[_0x4a8b(0x4f)]===_0xb74f10[_0x4a8b(0x50)])return _0x4fb3fe[_0x4a8b(0x10)](_0xb74f10[_0x4a8b(0x51)],_0x5d42f3),![];else _0x2a375b=_0xb74f10['hIOsV'](getApiHeaders);}const _0x42cb08=await _0xb74f10[_0x4a8b(0x52)](fetch,API_CONFIG[_0x4a8b(0x1b)]+_0x4a8b(0x53)+_0xd195f2+_0x4a8b(0x54),{'headers':_0x2a375b});if(_0x42cb08['ok']){if(_0xb74f10[_0x4a8b(0x55)](_0x4a8b(0x56),'TpARB'))try{const _0x552fa5=_0x3989f4[_0x4a8b(0x57)](/linkedin\.com\/in\/([^\/\?#]+)/);return _0x552fa5?_0x552fa5[0x1]:null;}catch(_0x1a1173){return _0x2252eb[_0x4a8b(0x10)](_0xb74f10[_0x4a8b(0x58)],_0x1a1173),null;}else{var _0x38aa65;const _0x4581fe=await _0x42cb08[_0x4a8b(0x21)]();return _0xb74f10[_0x4a8b(0x59)]((_0x38aa65=_0x4581fe[_0x4a8b(0x5a)])===null||_0x38aa65===void 0x0?void 0x0:_0x38aa65[_0x4a8b(0x5b)],undefined);}}return![];}else{const _0x3e837b=_0x5e0ee3[_0x4a8b(0x5c)](_0x175f69);_0x59402f=_0x3e837b[_0x4a8b(0x10)]||_0x3e837b['message']||_0x1deb20;}}catch(_0xb7ea04){if(_0x4a8b(0x5d)===_0xb74f10[_0x4a8b(0x5e)])return console[_0x4a8b(0x10)](_0x4a8b(0x4b),_0xb7ea04),![];else{const _0x8ae453=_0x4741b2['match'](/linkedin\.com\/in\/([^\/\?#]+)/);return _0x8ae453?_0x8ae453[0x1]:null;}}};export const getLinkedInConnectionStatus=async _0x31f757=>{const _0x203638={'XMnUU':function(_0x2551fa,_0x3ea5f6){return _0x2551fa!==_0x3ea5f6;},'jHVzn':function(_0x1e7595,_0x2dc991){return _0x1e7595(_0x2dc991);},'cWZkZ':function(_0x126f41,_0x1c5af0){return _0x126f41!==_0x1c5af0;},'ZeiOb':_0x4a8b(0x5f),'VkAzY':function(_0x5815ea){return _0x5815ea();},'EfaVM':function(_0x5c0961){return _0x5c0961();},'Qaxnb':function(_0x47fcac,_0x19c7af,_0x2d6a1b){return _0x47fcac(_0x19c7af,_0x2d6a1b);},'JMUUn':_0x4a8b(0x60)};try{let _0x2d897a;try{if(_0x203638[_0x4a8b(0x61)]!==_0x203638[_0x4a8b(0x61)]){if(!_0x33a70a||_0x203638[_0x4a8b(0x62)](typeof _0x48f3fa,'string'))return![];const _0x497976=/linkedin\.com\/in\/[^\/\?#]+/[_0x4a8b(0x3b)](_0x186ebe);if(!_0x497976)return![];const _0x2c4524=_0x203638['jHVzn'](_0x229c7b,_0x464e2f);return _0x203638[_0x4a8b(0x63)](_0x2c4524,null)&&_0x2c4524[_0x4a8b(0x28)]>0x0;}else _0x2d897a=await _0x203638[_0x4a8b(0x64)](getUserAuthHeaders);}catch{_0x2d897a=_0x203638[_0x4a8b(0x65)](getApiHeaders);}const _0x4382da=await _0x203638[_0x4a8b(0x66)](fetch,API_CONFIG[_0x4a8b(0x1b)]+'/enoch/linkedin-scrape/scrape-profile/'+_0x31f757,{'headers':_0x2d897a});if(_0x4382da['ok']){const _0x50cbd0=await _0x4382da[_0x4a8b(0x21)]();return _0x50cbd0;}return{'connected':![]};}catch(_0x42c681){return console[_0x4a8b(0x10)](_0x203638[_0x4a8b(0x67)],_0x42c681),{'connected':![]};}};
@@ -1 +1 @@
1
- import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const LLM_DATA_STORAGE_KEY=_0x28d2(0x0),LLM_METADATA_STORAGE_KEY=_0x28d2(0x1);function _0x1d26(){const _0x3e850d=['@onairos:llm_data','@onairos:llm_metadata','💾\x20Storing\x20LLM\x20data\x20locally\x20(temporary)...','connected','✅\x20LLM\x20data\x20stored\x20locally\x20successfully','log','setItem','userId','stringify','email','appName','timestamp','data','kSamt','zvHPk','dataSize','\x20bytes','error','❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:','IJDRX','getItem','parse','✅\x20Retrieved\x20LLM\x20data\x20for\x20user:','PAZbX','❌\x20Failed\x20to\x20request\x20LLM\x20data\x20from\x20backend:','Unknown\x20error','llm','🔍\x20Platform\x20connection\x20check:','❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:','ZzzpI','HJLHG','bLSmr','yHieo','EJFfG','lbFPZ','TrYyJ','message','yBnGw','SWENb','PkXzv','entries','filter','map','includes','chatgpt','length','qfqOL','TkMtp','yNDPR','OxmGt','1.0','suHuC','NzYcw','❌\x20Failed\x20to\x20update\x20LLM\x20status:','warn','ETkMr','connectionStatus','✅\x20Updated\x20LLM\x20status\x20to:\x20','huxHP','drMoK','conversations','customData','toISOString','JaLcx','ILyBB','drGMj','tyfty','AZmtP','leUAU','removeItem','⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','zkbDs','YiyWu','❌\x20Failed\x20to\x20clear\x20LLM\x20data:','dWZcl','FOVTK','XmSlu','opayB','chatHistory','❌\x20Backend\x20data\x20ingestion\x20failed:','❌\x20Failed\x20to\x20send\x20data\x20to\x20backend:','📡\x20Sending\x20LLM\x20data\x20to\x20backend\x20for\x20processing...','JITMn','/llmdata','xPYpM','Bearer\x20','accessToken','refreshToken','tokenExpiry','ACfwb','✅\x20Backend\x20received\x20and\x20stored\x20LLM\x20data:','connectionId','text','wrlxw','status','WgVbX','aZxsu','❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:','DdOJr','📤\x20Requesting\x20backend\x20to\x20send\x20LLM\x20data\x20to\x20developer...','✅\x20Backend\x20processing\x20LLM\x20data\x20request:','❌\x20Failed\x20to\x20request\x20LLM\x20data:','bXYRK','ELuRS','oOhmJ','mhtDu','GxlmM','BASE_URL','/llmdata/request','NYSae','apiUrl','token','XuWMo','UqUYd','lMMTt','nYbat','getAllKeys','startsWith','sHaWc'];_0x1d26=function(){return _0x3e850d;};return _0x1d26();}function _0x28d2(_0x1d26f2,_0x28d26b){_0x1d26f2=_0x1d26f2-0x0;const _0x370052=_0x1d26();let _0x138b98=_0x370052[_0x1d26f2];return _0x138b98;}export const storeLLMData=async _0x448418=>{const _0x292da3={'HJYlN':_0x28d2(0x2),'kSamt':_0x28d2(0x3),'zvHPk':_0x28d2(0x4)};try{console[_0x28d2(0x5)](_0x292da3['HJYlN']),await AsyncStorage[_0x28d2(0x6)](LLM_DATA_STORAGE_KEY+':'+_0x448418[_0x28d2(0x7)],JSON[_0x28d2(0x8)](_0x448418));const _0x11640a={'userId':_0x448418['userId'],'email':_0x448418[_0x28d2(0x9)],'appName':_0x448418[_0x28d2(0xa)],'timestamp':_0x448418[_0x28d2(0xb)],'hasData':!![],'dataSize':JSON[_0x28d2(0x8)](_0x448418[_0x28d2(0xc)])['length'],'connectionStatus':_0x292da3[_0x28d2(0xd)]};return await AsyncStorage[_0x28d2(0x6)](LLM_METADATA_STORAGE_KEY+':'+_0x448418[_0x28d2(0x7)],JSON[_0x28d2(0x8)](_0x11640a)),console[_0x28d2(0x5)](_0x292da3[_0x28d2(0xe)]),console[_0x28d2(0x5)]('📊\x20Data\x20size:\x20'+_0x11640a[_0x28d2(0xf)]+_0x28d2(0x10)),!![];}catch(_0x4960ae){return console[_0x28d2(0x11)]('❌\x20Failed\x20to\x20store\x20LLM\x20data:',_0x4960ae),![];}};export const getLLMData=async _0x3b75fd=>{const _0x5660fe={'IJDRX':'DIAbO','sSoPG':'ℹ️\x20No\x20LLM\x20data\x20found\x20for\x20user:','PAZbX':_0x28d2(0x12)};try{if(_0x5660fe['IJDRX']===_0x5660fe[_0x28d2(0x13)]){const _0x4aeeda=await AsyncStorage[_0x28d2(0x14)](LLM_DATA_STORAGE_KEY+':'+_0x3b75fd);if(!_0x4aeeda)return console[_0x28d2(0x5)](_0x5660fe['sSoPG'],_0x3b75fd),null;const _0x553665=JSON[_0x28d2(0x15)](_0x4aeeda);return console['log'](_0x28d2(0x16),_0x3b75fd),_0x553665;}else return _0x48e318[_0x28d2(0x11)](_0x28d2(0x12),_0x5e72ba),null;}catch(_0xe890d1){return console['error'](_0x5660fe[_0x28d2(0x17)],_0xe890d1),null;}};export const getLLMMetadata=async _0x29c580=>{const _0x534afd={'msslQ':_0x28d2(0x18),'EgQLq':function(_0xc162e3,_0x800f48){return _0xc162e3 instanceof _0x800f48;},'yBnGw':_0x28d2(0x19),'BsJbj':_0x28d2(0x1a),'qfqOL':_0x28d2(0x1b),'OxmGt':_0x28d2(0x1c),'lbFPZ':_0x28d2(0x1d),'TrYyJ':_0x28d2(0x1e),'SWENb':_0x28d2(0x1f),'PkXzv':_0x28d2(0x20),'TkMtp':function(_0x3b8dbe,_0x505470){return _0x3b8dbe===_0x505470;},'yNDPR':_0x28d2(0x21)};try{if(_0x534afd[_0x28d2(0x22)]===_0x534afd[_0x28d2(0x23)])return _0x146568[_0x28d2(0x11)](_0x534afd['msslQ'],_0xc4fcbc),{'success':![],'message':_0x534afd['EgQLq'](_0xd34384,_0xb64523)?_0x37e23b[_0x28d2(0x24)]:_0x534afd[_0x28d2(0x25)]};else{const _0x12c977=await AsyncStorage[_0x28d2(0x14)](LLM_METADATA_STORAGE_KEY+':'+_0x29c580);if(!_0x12c977){if(_0x534afd[_0x28d2(0x26)]===_0x534afd[_0x28d2(0x27)]){const _0x3b50a7=_0x591dec[_0x28d2(0x28)](_0x4414da)[_0x28d2(0x29)](([_0x38c358,_0xb03920])=>_0xb03920)[_0x28d2(0x2a)](([_0x35f35f,_0x2f115f])=>_0x35f35f),_0x2394c7=_0x3b50a7[_0x28d2(0x2b)](_0x534afd['BsJbj'])||_0x3b50a7[_0x28d2(0x2b)](_0x28d2(0x2c)),_0x1cf4cd=_0x3b50a7[_0x28d2(0x2d)]===0x1&&_0x2394c7;return _0x3d46e4['log'](_0x534afd[_0x28d2(0x2e)],{'connectedPlatforms':_0x3b50a7,'hasLLM':_0x2394c7,'onlyLLM':_0x1cf4cd}),_0x1cf4cd;}else return null;}return JSON['parse'](_0x12c977);}}catch(_0x2ad229){return _0x534afd[_0x28d2(0x2f)](_0x534afd[_0x28d2(0x30)],_0x534afd['yNDPR'])?(console[_0x28d2(0x11)](_0x534afd[_0x28d2(0x31)],_0x2ad229),null):(_0x5592cc[_0x28d2(0x11)](_0x534afd[_0x28d2(0x31)],_0xf9d9bd),null);}};export const updateLLMStatus=async(_0x170cd5,_0x5bc98b)=>{const _0x36051b={'YvhRp':_0x28d2(0x1a),'uWfYy':_0x28d2(0x2c),'IAKAi':_0x28d2(0x32),'ETkMr':'⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','SWahg':function(_0x5a12a6,_0x32c5f5){return _0x5a12a6===_0x32c5f5;},'huxHP':_0x28d2(0x33),'drMoK':_0x28d2(0x34),'JaLcx':_0x28d2(0x35)};try{const _0x127519=await getLLMMetadata(_0x170cd5);if(!_0x127519)return console[_0x28d2(0x36)](_0x36051b[_0x28d2(0x37)],_0x170cd5),![];return _0x127519[_0x28d2(0x38)]=_0x5bc98b,await AsyncStorage['setItem'](LLM_METADATA_STORAGE_KEY+':'+_0x170cd5,JSON[_0x28d2(0x8)](_0x127519)),console[_0x28d2(0x5)](_0x28d2(0x39)+_0x5bc98b),!![];}catch(_0x5ac5d1){return _0x36051b['SWahg'](_0x36051b[_0x28d2(0x3a)],_0x36051b[_0x28d2(0x3b)])?{'platform':_0x36051b['YvhRp'],'userId':_0x504fe0['userId'],'email':_0x5477c1[_0x28d2(0x9)],'timestamp':_0x22fc50[_0x28d2(0xb)],'data':{'type':_0x36051b['uWfYy'],'conversations':_0x11fdf4[_0x28d2(0xc)][_0x28d2(0x3c)]||[],'chatHistory':_0x2345bf[_0x28d2(0xc)]['chatHistory']||[],'preferences':_0x44ad0c['data']['preferences']||{},'customData':_0x5e781d['data'][_0x28d2(0x3d)]||{}},'metadata':{'appName':_0x454b79[_0x28d2(0xa)],'collectedAt':new _0x5729dc(_0x5ebac5[_0x28d2(0xb)])[_0x28d2(0x3e)](),'dataVersion':_0x36051b['IAKAi']}}:(console['error'](_0x36051b[_0x28d2(0x3f)],_0x5ac5d1),![]);}};export const clearLLMData=async _0x10f127=>{const _0x2d8aa6={'ownhd':function(_0x1cc9cd,_0x381231){return _0x1cc9cd!==_0x381231;},'leUAU':_0x28d2(0x40),'eOUpw':'✅\x20LLM\x20data\x20cleared\x20for\x20user:','jVGHN':function(_0x35c8fb,_0x4faafb){return _0x35c8fb===_0x4faafb;},'zkbDs':_0x28d2(0x41),'YiyWu':_0x28d2(0x42)};try{return _0x2d8aa6['ownhd'](_0x28d2(0x43),_0x2d8aa6[_0x28d2(0x44)])?(await AsyncStorage['removeItem'](LLM_DATA_STORAGE_KEY+':'+_0x10f127),await AsyncStorage[_0x28d2(0x45)](LLM_METADATA_STORAGE_KEY+':'+_0x10f127),console['log'](_0x2d8aa6['eOUpw'],_0x10f127),!![]):(_0x39c535[_0x28d2(0x36)](_0x28d2(0x46),_0x5dd667),![]);}catch(_0x33dc48){return _0x2d8aa6['jVGHN'](_0x2d8aa6[_0x28d2(0x47)],_0x2d8aa6[_0x28d2(0x48)])?null:(console['error'](_0x28d2(0x49),_0x33dc48),![]);}};export const hasOnlyLLMConnection=_0x338148=>{const _0x4e1d1b={'EPYAl':_0x28d2(0x1a),'dWZcl':_0x28d2(0x2c),'FOVTK':function(_0x23577e,_0x31f783){return _0x23577e===_0x31f783;},'XmSlu':'🔍\x20Platform\x20connection\x20check:'},_0x95893e=Object[_0x28d2(0x28)](_0x338148)[_0x28d2(0x29)](([_0x5e8dca,_0x3b6ebe])=>_0x3b6ebe)[_0x28d2(0x2a)](([_0x153f73,_0x5ece50])=>_0x153f73),_0x5cbac6=_0x95893e[_0x28d2(0x2b)](_0x4e1d1b['EPYAl'])||_0x95893e[_0x28d2(0x2b)](_0x4e1d1b[_0x28d2(0x4a)]),_0x5485b1=_0x4e1d1b[_0x28d2(0x4b)](_0x95893e[_0x28d2(0x2d)],0x1)&&_0x5cbac6;return console[_0x28d2(0x5)](_0x4e1d1b[_0x28d2(0x4c)],{'connectedPlatforms':_0x95893e,'hasLLM':_0x5cbac6,'onlyLLM':_0x5485b1}),_0x5485b1;};export const formatLLMDataForDeveloper=_0x5e5118=>{const _0x13bd6b={'opayB':'llm'};return{'platform':_0x13bd6b[_0x28d2(0x4d)],'userId':_0x5e5118[_0x28d2(0x7)],'email':_0x5e5118[_0x28d2(0x9)],'timestamp':_0x5e5118[_0x28d2(0xb)],'data':{'type':_0x28d2(0x2c),'conversations':_0x5e5118['data'][_0x28d2(0x3c)]||[],'chatHistory':_0x5e5118[_0x28d2(0xc)][_0x28d2(0x4e)]||[],'preferences':_0x5e5118[_0x28d2(0xc)]['preferences']||{},'customData':_0x5e5118[_0x28d2(0xc)][_0x28d2(0x3d)]||{}},'metadata':{'appName':_0x5e5118['appName'],'collectedAt':new Date(_0x5e5118['timestamp'])[_0x28d2(0x3e)](),'dataVersion':_0x28d2(0x32)}};};export const sendLLMDataToBackend=async(_0x4c3671,_0x45f3ac)=>{const _0xbae14c={'JITMn':function(_0x3ad6a1,_0x931094,_0xf046a5){return _0x3ad6a1(_0x931094,_0xf046a5);},'xPYpM':function(_0x4a47ea,_0x2405e2){return _0x4a47ea&&_0x2405e2;},'ACfwb':_0x28d2(0x32),'wrlxw':_0x28d2(0x4f),'WgVbX':_0x28d2(0x50),'aZxsu':function(_0x2fb52c,_0x50895a){return _0x2fb52c instanceof _0x50895a;}};try{console['log'](_0x28d2(0x51));const _0x2394c6=await _0xbae14c[_0x28d2(0x52)](fetch,API_CONFIG['BASE_URL']+_0x28d2(0x53),{'method':'POST','headers':{'Content-Type':'application/json',..._0xbae14c[_0x28d2(0x54)](_0x45f3ac,{'Authorization':_0x28d2(0x55)+_0x45f3ac})},'body':JSON[_0x28d2(0x8)]({'userId':_0x4c3671[_0x28d2(0x7)],'email':_0x4c3671['email'],'appName':_0x4c3671[_0x28d2(0xa)],'platform':_0x28d2(0x1a),'connectionType':_0x28d2(0x2c),'timestamp':new Date()['toISOString'](),'data':_0x4c3671['data'],'accessToken':_0x4c3671[_0x28d2(0x56)],'refreshToken':_0x4c3671[_0x28d2(0x57)],'tokenExpiry':_0x4c3671[_0x28d2(0x58)],'metadata':{'collectedAt':new Date(_0x4c3671[_0x28d2(0xb)])[_0x28d2(0x3e)](),'dataVersion':_0xbae14c[_0x28d2(0x59)]}})});if(_0x2394c6['ok']){const _0x4a394c=await _0x2394c6['json']();return console[_0x28d2(0x5)](_0x28d2(0x5a),_0x4a394c),{'success':!![],'message':_0x4a394c[_0x28d2(0x24)],'connectionId':_0x4a394c[_0x28d2(0x5b)]};}else{const _0x4b4f23=await _0x2394c6[_0x28d2(0x5c)]();return console[_0x28d2(0x11)](_0xbae14c[_0x28d2(0x5d)],_0x2394c6[_0x28d2(0x5e)],_0x4b4f23),{'success':![],'message':'Backend\x20error:\x20'+_0x2394c6['status']};}}catch(_0x28343e){return console['error'](_0xbae14c[_0x28d2(0x5f)],_0x28343e),{'success':![],'message':_0xbae14c[_0x28d2(0x60)](_0x28343e,Error)?_0x28343e[_0x28d2(0x24)]:_0x28d2(0x19)};}};export const requestLLMDataForDeveloper=async(_0xd51e6e,_0x420112,_0x4dcad2,_0x538f96,_0x42dd66)=>{const _0x2e9f3b={'oOhmJ':_0x28d2(0x61),'bXYRK':function(_0xba7880,_0x268602){return _0xba7880!==_0x268602;},'ELuRS':_0x28d2(0x62),'mhtDu':_0x28d2(0x63),'GxlmM':function(_0x4a7c6d,_0x26d10d,_0x1be300){return _0x4a7c6d(_0x26d10d,_0x1be300);},'NYSae':_0x28d2(0x64),'XuWMo':_0x28d2(0x65),'UqUYd':_0x28d2(0x18),'lMMTt':function(_0x229143,_0x12b99c){return _0x229143 instanceof _0x12b99c;},'nYbat':'Unknown\x20error'};try{if(_0x2e9f3b[_0x28d2(0x66)](_0x2e9f3b[_0x28d2(0x67)],_0x2e9f3b[_0x28d2(0x67)]))return _0x16a4dd['error'](_0x2e9f3b[_0x28d2(0x68)],_0x3e69a5),[];else{console[_0x28d2(0x5)](_0x2e9f3b[_0x28d2(0x69)]);const _0x4bf76f=await _0x2e9f3b[_0x28d2(0x6a)](fetch,API_CONFIG[_0x28d2(0x6b)]+_0x28d2(0x6c),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x42dd66},'body':JSON[_0x28d2(0x8)]({'userId':_0xd51e6e,'email':_0x420112,'appName':_0x4dcad2,'requestedData':_0x538f96,'timestamp':new Date()[_0x28d2(0x3e)]()})});if(_0x4bf76f['ok']){const _0xbcf17d=await _0x4bf76f['json']();return console[_0x28d2(0x5)](_0x2e9f3b[_0x28d2(0x6d)],_0xbcf17d),{'success':!![],'message':_0xbcf17d[_0x28d2(0x24)],'apiUrl':_0xbcf17d[_0x28d2(0x6e)],'token':_0xbcf17d[_0x28d2(0x6f)]};}else{const _0x473a1f=await _0x4bf76f[_0x28d2(0x5c)]();return console[_0x28d2(0x11)](_0x2e9f3b[_0x28d2(0x70)],_0x4bf76f['status'],_0x473a1f),{'success':![],'message':'Backend\x20error:\x20'+_0x4bf76f[_0x28d2(0x5e)]};}}}catch(_0x41df29){return console['error'](_0x2e9f3b[_0x28d2(0x71)],_0x41df29),{'success':![],'message':_0x2e9f3b[_0x28d2(0x72)](_0x41df29,Error)?_0x41df29['message']:_0x2e9f3b[_0x28d2(0x73)]};}};export const getAllLLMDataKeys=async()=>{const _0x14fd6f={'sHaWc':_0x28d2(0x61)};try{const _0x578d5c=await AsyncStorage[_0x28d2(0x74)](),_0x23abe2=_0x578d5c[_0x28d2(0x29)](_0x21f000=>_0x21f000[_0x28d2(0x75)](LLM_DATA_STORAGE_KEY)||_0x21f000[_0x28d2(0x75)](LLM_METADATA_STORAGE_KEY));return _0x23abe2;}catch(_0x30814e){return console[_0x28d2(0x11)](_0x14fd6f[_0x28d2(0x76)],_0x30814e),[];}};
1
+ import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';function _0x5c8a(_0xcf1c67,_0x5c8a07){_0xcf1c67=_0xcf1c67-0x0;const _0x19ba39=_0xcf1c();let _0x2b99ff=_0x19ba39[_0xcf1c67];return _0x2b99ff;}const LLM_DATA_STORAGE_KEY='@onairos:llm_data',LLM_METADATA_STORAGE_KEY='@onairos:llm_metadata';export const storeLLMData=async _0x2e127d=>{const _0x1b0f11={'UFkbe':_0x5c8a(0x0),'bNVaG':function(_0x162ed2,_0x40d31f){return _0x162ed2!==_0x40d31f;},'OfGUM':'GZofa','xhhEb':'connected','ftMLT':_0x5c8a(0x1)};try{if(_0x1b0f11[_0x5c8a(0x2)](_0x1b0f11[_0x5c8a(0x3)],_0x1b0f11[_0x5c8a(0x3)]))return _0x183cd2[_0x5c8a(0x4)](_0x1b0f11[_0x5c8a(0x5)],_0x39b068),[];else{console['log'](_0x5c8a(0x6)),await AsyncStorage['setItem'](LLM_DATA_STORAGE_KEY+':'+_0x2e127d['userId'],JSON[_0x5c8a(0x7)](_0x2e127d));const _0x4cb137={'userId':_0x2e127d[_0x5c8a(0x8)],'email':_0x2e127d['email'],'appName':_0x2e127d[_0x5c8a(0x9)],'timestamp':_0x2e127d[_0x5c8a(0xa)],'hasData':!![],'dataSize':JSON['stringify'](_0x2e127d[_0x5c8a(0xb)])[_0x5c8a(0xc)],'connectionStatus':_0x1b0f11[_0x5c8a(0xd)]};return await AsyncStorage['setItem'](LLM_METADATA_STORAGE_KEY+':'+_0x2e127d[_0x5c8a(0x8)],JSON[_0x5c8a(0x7)](_0x4cb137)),console['log'](_0x5c8a(0xe)),console[_0x5c8a(0xf)](_0x5c8a(0x10)+_0x4cb137[_0x5c8a(0x11)]+_0x5c8a(0x12)),!![];}}catch(_0x433175){return console['error'](_0x1b0f11[_0x5c8a(0x13)],_0x433175),![];}};export const getLLMData=async _0x141513=>{const _0x26711a={'GbDpi':_0x5c8a(0x14),'qAfba':'Unknown\x20error','dzoNr':function(_0x46e8aa,_0x3757ed){return _0x46e8aa!==_0x3757ed;},'nTIsx':_0x5c8a(0x15),'SniNL':_0x5c8a(0x16)};try{const _0x5e2540=await AsyncStorage[_0x5c8a(0x17)](LLM_DATA_STORAGE_KEY+':'+_0x141513);if(!_0x5e2540)return _0x26711a[_0x5c8a(0x18)](_0x26711a['nTIsx'],_0x26711a[_0x5c8a(0x19)])?(_0x14614f['error'](_0x26711a[_0x5c8a(0x1a)],_0x34b2f0),{'success':![],'message':_0x387d6d instanceof _0x26577a?_0xd609f1[_0x5c8a(0x1b)]:_0x26711a[_0x5c8a(0x1c)]}):(console[_0x5c8a(0xf)]('ℹ️\x20No\x20LLM\x20data\x20found\x20for\x20user:',_0x141513),null);const _0x4b737b=JSON['parse'](_0x5e2540);return console[_0x5c8a(0xf)](_0x5c8a(0x1d),_0x141513),_0x4b737b;}catch(_0x2824e9){return console[_0x5c8a(0x4)](_0x26711a[_0x5c8a(0x1e)],_0x2824e9),null;}};export const getLLMMetadata=async _0x4b7832=>{const _0x2e5f80={'iWxAI':_0x5c8a(0x1f),'TRPZP':'PKIgj'};try{const _0x4ac9ec=await AsyncStorage[_0x5c8a(0x17)](LLM_METADATA_STORAGE_KEY+':'+_0x4b7832);if(!_0x4ac9ec)return _0x2e5f80['TRPZP']===_0x2e5f80[_0x5c8a(0x20)]?null:(_0x3f8684[_0x5c8a(0x4)](_0x2e5f80[_0x5c8a(0x21)],_0x53b600),null);return JSON['parse'](_0x4ac9ec);}catch(_0x395c23){return console[_0x5c8a(0x4)](_0x2e5f80[_0x5c8a(0x21)],_0x395c23),null;}};export const updateLLMStatus=async(_0x215265,_0x52cb6c)=>{const _0x223de1={'fMGoi':_0x5c8a(0x1),'IKqKT':_0x5c8a(0x22),'BITUk':_0x5c8a(0x23),'fqkAG':function(_0xea02dc,_0x1679df){return _0xea02dc(_0x1679df);},'NpyTi':'⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','ykpBA':function(_0x265254,_0x30b266){return _0x265254===_0x30b266;},'Tkbtx':_0x5c8a(0x24)};try{if(_0x223de1[_0x5c8a(0x25)]!==_0x223de1['BITUk']){const _0x4002c5=await _0x223de1[_0x5c8a(0x26)](getLLMMetadata,_0x215265);if(!_0x4002c5)return console['warn'](_0x223de1['NpyTi'],_0x215265),![];return _0x4002c5[_0x5c8a(0x27)]=_0x52cb6c,await AsyncStorage[_0x5c8a(0x28)](LLM_METADATA_STORAGE_KEY+':'+_0x215265,JSON[_0x5c8a(0x7)](_0x4002c5)),console[_0x5c8a(0xf)](_0x5c8a(0x29)+_0x52cb6c),!![];}else return _0x421384[_0x5c8a(0x4)](_0x223de1[_0x5c8a(0x2a)],_0x311208),![];}catch(_0x369bfb){return _0x223de1[_0x5c8a(0x2b)](_0x5c8a(0x2c),_0x223de1[_0x5c8a(0x2d)])?null:(console[_0x5c8a(0x4)](_0x5c8a(0x2e),_0x369bfb),![]);}};export const clearLLMData=async _0x31e7ed=>{const _0x46e572={'yxEWo':_0x5c8a(0x2f),'Gstsc':function(_0x1b31b5,_0x5f5267){return _0x1b31b5!==_0x5f5267;},'BqzXq':'FKqSr','MgUEH':_0x5c8a(0x30),'zFZLH':_0x5c8a(0x31)};try{return _0x46e572[_0x5c8a(0x32)]('FKqSr',_0x46e572[_0x5c8a(0x33)])?(_0x4215c6[_0x5c8a(0xf)](_0x46e572['yxEWo'],_0x4b1b14),null):(await AsyncStorage[_0x5c8a(0x34)](LLM_DATA_STORAGE_KEY+':'+_0x31e7ed),await AsyncStorage[_0x5c8a(0x34)](LLM_METADATA_STORAGE_KEY+':'+_0x31e7ed),console[_0x5c8a(0xf)](_0x46e572[_0x5c8a(0x35)],_0x31e7ed),!![]);}catch(_0x338a0e){return console[_0x5c8a(0x4)](_0x46e572[_0x5c8a(0x36)],_0x338a0e),![];}};export const hasOnlyLLMConnection=_0x80ef97=>{const _0x6ceac2={'kPmWt':_0x5c8a(0x37),'YlkyN':'chatgpt','MGLON':function(_0x89a123,_0x5960db){return _0x89a123===_0x5960db;},'LxnIE':_0x5c8a(0x38)},_0x59e035=Object[_0x5c8a(0x39)](_0x80ef97)[_0x5c8a(0x3a)](([_0x5beb47,_0x34eb4f])=>_0x34eb4f)['map'](([_0x50e63a,_0x348359])=>_0x50e63a),_0x50a2ab=_0x59e035['includes'](_0x6ceac2[_0x5c8a(0x3b)])||_0x59e035[_0x5c8a(0x3c)](_0x6ceac2['YlkyN']),_0x501be2=_0x6ceac2['MGLON'](_0x59e035['length'],0x1)&&_0x50a2ab;return console[_0x5c8a(0xf)](_0x6ceac2[_0x5c8a(0x3d)],{'connectedPlatforms':_0x59e035,'hasLLM':_0x50a2ab,'onlyLLM':_0x501be2}),_0x501be2;};function _0xcf1c(){const _0x4b3423=['❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:','❌\x20Failed\x20to\x20store\x20LLM\x20data:','bNVaG','OfGUM','error','UFkbe','💾\x20Storing\x20LLM\x20data\x20locally\x20(temporary)...','stringify','userId','appName','timestamp','data','length','xhhEb','✅\x20LLM\x20data\x20stored\x20locally\x20successfully','log','📊\x20Data\x20size:\x20','dataSize','\x20bytes','ftMLT','❌\x20Failed\x20to\x20request\x20LLM\x20data\x20from\x20backend:','egbrk','❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:','getItem','dzoNr','nTIsx','GbDpi','message','qAfba','✅\x20Retrieved\x20LLM\x20data\x20for\x20user:','SniNL','❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:','TRPZP','iWxAI','yEEon','BhIgO','RSucb','IKqKT','fqkAG','connectionStatus','setItem','✅\x20Updated\x20LLM\x20status\x20to:\x20','fMGoi','ykpBA','ljlNX','Tkbtx','❌\x20Failed\x20to\x20update\x20LLM\x20status:','ℹ️\x20No\x20LLM\x20data\x20found\x20for\x20user:','✅\x20LLM\x20data\x20cleared\x20for\x20user:','❌\x20Failed\x20to\x20clear\x20LLM\x20data:','Gstsc','BqzXq','removeItem','MgUEH','zFZLH','llm','🔍\x20Platform\x20connection\x20check:','entries','filter','kPmWt','includes','LxnIE','chatgpt','chatHistory','preferences','1.0','❌\x20Backend\x20data\x20ingestion\x20failed:','MxASO','BASE_URL','email','XiNQq','toISOString','refreshToken','tokenExpiry','json','SwOoz','status','Backend\x20error:\x20','utQuN','📤\x20Requesting\x20backend\x20to\x20send\x20LLM\x20data\x20to\x20developer...','✅\x20Backend\x20processing\x20LLM\x20data\x20request:','❌\x20Failed\x20to\x20request\x20LLM\x20data:','siRfT','/llmdata/request','Bearer\x20','YvzJN','iMOvs','BoqIw','apiUrl','Rurax','ixQAC','uIubh','BNwbt','Unknown\x20error','getAllKeys','startsWith'];_0xcf1c=function(){return _0x4b3423;};return _0xcf1c();}export const formatLLMDataForDeveloper=_0x2a97ca=>{const _0x1692cd={'cAwNe':_0x5c8a(0x37),'mYVqX':_0x5c8a(0x3e)};return{'platform':_0x1692cd['cAwNe'],'userId':_0x2a97ca[_0x5c8a(0x8)],'email':_0x2a97ca['email'],'timestamp':_0x2a97ca['timestamp'],'data':{'type':_0x1692cd['mYVqX'],'conversations':_0x2a97ca['data']['conversations']||[],'chatHistory':_0x2a97ca['data'][_0x5c8a(0x3f)]||[],'preferences':_0x2a97ca['data'][_0x5c8a(0x40)]||{},'customData':_0x2a97ca[_0x5c8a(0xb)]['customData']||{}},'metadata':{'appName':_0x2a97ca[_0x5c8a(0x9)],'collectedAt':new Date(_0x2a97ca[_0x5c8a(0xa)])['toISOString'](),'dataVersion':_0x5c8a(0x41)}};};export const sendLLMDataToBackend=async(_0x1a268c,_0x2123c5)=>{const _0x5c300c={'aFNJS':'📡\x20Sending\x20LLM\x20data\x20to\x20backend\x20for\x20processing...','MxASO':function(_0x37ae95,_0x22965e,_0x3e8306){return _0x37ae95(_0x22965e,_0x3e8306);},'aIFLL':function(_0x4cd26d,_0x27d9d0){return _0x4cd26d&&_0x27d9d0;},'XiNQq':_0x5c8a(0x3e),'SiSSS':_0x5c8a(0x41),'SwOoz':'✅\x20Backend\x20received\x20and\x20stored\x20LLM\x20data:','yazQV':_0x5c8a(0x42),'utQuN':'❌\x20Failed\x20to\x20send\x20data\x20to\x20backend:','nioOS':function(_0x46a4fb,_0x130996){return _0x46a4fb instanceof _0x130996;},'OfZrp':'Unknown\x20error'};try{console[_0x5c8a(0xf)](_0x5c300c['aFNJS']);const _0x162321=await _0x5c300c[_0x5c8a(0x43)](fetch,API_CONFIG[_0x5c8a(0x44)]+'/llmdata',{'method':'POST','headers':{'Content-Type':'application/json',..._0x5c300c['aIFLL'](_0x2123c5,{'Authorization':'Bearer\x20'+_0x2123c5})},'body':JSON[_0x5c8a(0x7)]({'userId':_0x1a268c['userId'],'email':_0x1a268c[_0x5c8a(0x45)],'appName':_0x1a268c[_0x5c8a(0x9)],'platform':'llm','connectionType':_0x5c300c[_0x5c8a(0x46)],'timestamp':new Date()[_0x5c8a(0x47)](),'data':_0x1a268c[_0x5c8a(0xb)],'accessToken':_0x1a268c['accessToken'],'refreshToken':_0x1a268c[_0x5c8a(0x48)],'tokenExpiry':_0x1a268c[_0x5c8a(0x49)],'metadata':{'collectedAt':new Date(_0x1a268c[_0x5c8a(0xa)])['toISOString'](),'dataVersion':_0x5c300c['SiSSS']}})});if(_0x162321['ok']){const _0x4c73d0=await _0x162321[_0x5c8a(0x4a)]();return console[_0x5c8a(0xf)](_0x5c300c[_0x5c8a(0x4b)],_0x4c73d0),{'success':!![],'message':_0x4c73d0[_0x5c8a(0x1b)],'connectionId':_0x4c73d0['connectionId']};}else{const _0x2ec6a5=await _0x162321['text']();return console['error'](_0x5c300c['yazQV'],_0x162321[_0x5c8a(0x4c)],_0x2ec6a5),{'success':![],'message':_0x5c8a(0x4d)+_0x162321['status']};}}catch(_0x40fd31){return console[_0x5c8a(0x4)](_0x5c300c[_0x5c8a(0x4e)],_0x40fd31),{'success':![],'message':_0x5c300c['nioOS'](_0x40fd31,Error)?_0x40fd31[_0x5c8a(0x1b)]:_0x5c300c['OfZrp']};}};export const requestLLMDataForDeveloper=async(_0x236a9a,_0x142925,_0x1872fa,_0x3636fc,_0x551d73)=>{const _0xe3989d={'Rurax':_0x5c8a(0x31),'siRfT':_0x5c8a(0x4f),'HGkUe':function(_0x29df86,_0x59c59f,_0x154366){return _0x29df86(_0x59c59f,_0x154366);},'YvzJN':function(_0x253e11,_0x262428){return _0x253e11===_0x262428;},'BoqIw':_0x5c8a(0x50),'ixQAC':_0x5c8a(0x51),'uIubh':_0x5c8a(0x14),'BNwbt':function(_0x52ea0f,_0x36a359){return _0x52ea0f instanceof _0x36a359;}};try{console[_0x5c8a(0xf)](_0xe3989d[_0x5c8a(0x52)]);const _0x3101e7=await _0xe3989d['HGkUe'](fetch,API_CONFIG['BASE_URL']+_0x5c8a(0x53),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x5c8a(0x54)+_0x551d73},'body':JSON['stringify']({'userId':_0x236a9a,'email':_0x142925,'appName':_0x1872fa,'requestedData':_0x3636fc,'timestamp':new Date()['toISOString']()})});if(_0x3101e7['ok']){if(_0xe3989d[_0x5c8a(0x55)](_0x5c8a(0x56),_0x5c8a(0x56))){const _0x1814a2=await _0x3101e7[_0x5c8a(0x4a)]();return console[_0x5c8a(0xf)](_0xe3989d[_0x5c8a(0x57)],_0x1814a2),{'success':!![],'message':_0x1814a2['message'],'apiUrl':_0x1814a2[_0x5c8a(0x58)],'token':_0x1814a2['token']};}else return _0x2dbdc8[_0x5c8a(0x4)](_0xe3989d[_0x5c8a(0x59)],_0x33e490),![];}else{const _0x19f2ab=await _0x3101e7['text']();return console[_0x5c8a(0x4)](_0xe3989d[_0x5c8a(0x5a)],_0x3101e7[_0x5c8a(0x4c)],_0x19f2ab),{'success':![],'message':'Backend\x20error:\x20'+_0x3101e7[_0x5c8a(0x4c)]};}}catch(_0x5b7889){return console[_0x5c8a(0x4)](_0xe3989d[_0x5c8a(0x5b)],_0x5b7889),{'success':![],'message':_0xe3989d[_0x5c8a(0x5c)](_0x5b7889,Error)?_0x5b7889[_0x5c8a(0x1b)]:_0x5c8a(0x5d)};}};export const getAllLLMDataKeys=async()=>{try{const _0x371c0a=await AsyncStorage[_0x5c8a(0x5e)](),_0x55dae3=_0x371c0a[_0x5c8a(0x3a)](_0x34f98d=>_0x34f98d[_0x5c8a(0x5f)](LLM_DATA_STORAGE_KEY)||_0x34f98d[_0x5c8a(0x5f)](LLM_METADATA_STORAGE_KEY));return _0x55dae3;}catch(_0xe2b72f){return console['error'](_0x5c8a(0x0),_0xe2b72f),[];}};
@@ -1 +1 @@
1
- import{getAuthToken}from'./authService';import{API_CONFIG}from'../config/api';const API_BASE_URL=''+API_CONFIG[_0x447d(0x0)];function _0x447d(_0x16ecaa,_0x447d4d){_0x16ecaa=_0x16ecaa-0x0;const _0x3d40cc=_0x16ec();let _0x14a061=_0x3d40cc[_0x16ecaa];return _0x14a061;}function _0x16ec(){const _0xd6d5e=['BASE_URL','❌\x20Failed\x20to\x20get\x20model\x20info:','No\x20authentication\x20token\x20available','emzEX','❌\x20Failed\x20to\x20get\x20training\x20status:','InTQO','SnbFr','parse','error','HTTP\x20','NKUCY','/mobile-training/status/','status','json','PSBrz','SJUEP','seosL','NPKsH','/mobile-training/model-info','❌\x20Failed\x20to\x20get\x20health\x20check:','/mobile-training/health','MmdJp','ℹ️\x20[TRAINING]\x20No\x20migration\x20checks\x20needed:','\x20\x20\x20-\x20Full\x20refresh\x20tokens:\x20Auto-refresh\x20when\x20expired\x20✅','\x20\x20\x20-\x20Backend\x20validation:\x20Handles\x20all\x20edge\x20cases\x20✅','❌\x20Training\x20error:','🚀\x20Starting\x20Enoch\x20training\x20for\x20user:','username','(backend\x20auto-handles\x20YouTube)','log','YRMHH','dzFTQ','OfHoE','tgcqc','kJRvK','igDxR','warn','❌\x20Training\x20API\x20failed\x20with\x20status:','Error:','❌\x20Training\x20start\x20error:','KjJLJ','📤\x20Sending\x20training\x20data\x20to\x20/mobile-training/enoch:','cJZgD','/mobile-training/enoch','stringify','📡\x20Training\x20API\x20response\x20status:','text','hWqVu','Training\x20API\x20failed:\x20','\x20-\x20','📡\x20Training\x20API\x20response:','cUKgD','QfDqr','success','isTraining','PeUXf','features','⚠️\x20Could\x20not\x20get\x20training\x20features:'];_0x16ec=function(){return _0xd6d5e;};return _0x16ec();}export const getTrainingStatus=async _0x72e1d2=>{const _0x65ff9e={'SJUEP':_0x447d(0x1),'InTQO':function(_0x5ded04){return _0x5ded04();},'SnbFr':'QMdOO','NKUCY':_0x447d(0x2),'KzYln':function(_0x23e9ec,_0x5db517){return _0x23e9ec!==_0x5db517;},'PSBrz':_0x447d(0x3),'mTntq':_0x447d(0x4)};try{const _0x4b9a79=await _0x65ff9e[_0x447d(0x5)](getAuthToken);if(!_0x4b9a79){if(_0x65ff9e[_0x447d(0x6)]!==_0x65ff9e[_0x447d(0x6)]){const _0x20b8cd=_0x2df306[_0x447d(0x7)](_0x4cc81c);throw new _0x214e6d(_0x20b8cd[_0x447d(0x8)]||_0x447d(0x9)+_0x30710b['status']);}else throw new Error(_0x65ff9e[_0x447d(0xa)]);}const _0x21bc79=await fetch(API_BASE_URL+_0x447d(0xb)+_0x72e1d2,{'method':'GET','headers':{'Authorization':_0x4b9a79,'Content-Type':'application/json'}});if(!_0x21bc79['ok']){const _0x3545b8=await _0x21bc79['json']();throw new Error(_0x3545b8['error']||_0x447d(0x9)+_0x21bc79[_0x447d(0xc)]);}return await _0x21bc79[_0x447d(0xd)]();}catch(_0x377b7b){if(_0x65ff9e['KzYln'](_0x447d(0x3),_0x65ff9e[_0x447d(0xe)])){_0x3c3075['error'](_0x65ff9e[_0x447d(0xf)],_0x45958b);throw _0x4d264f;}else{console[_0x447d(0x8)](_0x65ff9e['mTntq'],_0x377b7b);throw _0x377b7b;}}};export const getModelInfo=async()=>{const _0xcd6ff1={'seosL':function(_0x3f5579){return _0x3f5579();},'uGXXS':_0x447d(0x2),'NPKsH':function(_0x1e27d9,_0x55c0e7,_0x205821){return _0x1e27d9(_0x55c0e7,_0x205821);},'FYIeH':_0x447d(0x1)};try{const _0x5d5e7d=await _0xcd6ff1[_0x447d(0x10)](getAuthToken);if(!_0x5d5e7d)throw new Error(_0xcd6ff1['uGXXS']);const _0x5a376f=await _0xcd6ff1[_0x447d(0x11)](fetch,API_BASE_URL+_0x447d(0x12),{'method':'GET','headers':{'Authorization':_0x5d5e7d,'Content-Type':'application/json'}});if(!_0x5a376f['ok']){const _0x445052=await _0x5a376f[_0x447d(0xd)]();throw new Error(_0x445052[_0x447d(0x8)]||_0x447d(0x9)+_0x5a376f[_0x447d(0xc)]);}return await _0x5a376f['json']();}catch(_0x18cdbd){console[_0x447d(0x8)](_0xcd6ff1['FYIeH'],_0x18cdbd);throw _0x18cdbd;}};export const getHealthCheck=async()=>{const _0x18f57f={'AzYbk':function(_0xb19466,_0x417468,_0x4d3cb5){return _0xb19466(_0x417468,_0x4d3cb5);},'MmdJp':_0x447d(0x13)};try{const _0x20522f=await _0x18f57f['AzYbk'](fetch,API_BASE_URL+_0x447d(0x14),{'method':'GET','headers':{'Content-Type':'application/json'}});if(!_0x20522f['ok']){const _0x230815=await _0x20522f[_0x447d(0xd)]();throw new Error(_0x230815[_0x447d(0x8)]||_0x447d(0x9)+_0x20522f[_0x447d(0xc)]);}return await _0x20522f[_0x447d(0xd)]();}catch(_0x2a25a2){console[_0x447d(0x8)](_0x18f57f[_0x447d(0x15)],_0x2a25a2);throw _0x2a25a2;}};export const startEnochTrainingWithYouTubeCheck=async _0xc0b027=>{const _0x3e9920={'otlbc':'⚠️\x20Could\x20not\x20check\x20training\x20status:','YRMHH':'🚀\x20[TRAINING]\x20Starting\x20training\x20-\x20backend\x20handles\x20all\x20YouTube\x20cases\x20automatically','dzFTQ':_0x447d(0x16),'OfHoE':_0x447d(0x17),'sbhUP':_0x447d(0x18),'kJRvK':'TzPZS','igDxR':_0x447d(0x19)};try{return console['log'](_0x447d(0x1a),_0xc0b027[_0x447d(0x1b)],_0x447d(0x1c)),console[_0x447d(0x1d)](_0x3e9920[_0x447d(0x1e)]),console[_0x447d(0x1d)](_0x3e9920[_0x447d(0x1f)]),console[_0x447d(0x1d)]('\x20\x20\x20-\x20Temporary\x20mode\x20connections:\x20Work\x20automatically\x20✅'),console['log'](_0x3e9920[_0x447d(0x20)]),console['log'](_0x3e9920['sbhUP']),await startEnochTraining(_0xc0b027);}catch(_0x3d8ac4){if(_0x447d(0x21)!==_0x3e9920[_0x447d(0x22)]){console[_0x447d(0x8)](_0x3e9920[_0x447d(0x23)],_0x3d8ac4);throw _0x3d8ac4;}else return _0x510f01[_0x447d(0x24)](_0x3e9920['otlbc'],_0x427aae),![];}};export const startEnochTraining=async _0x146dbc=>{const _0x1d08cb={'KjJLJ':'No\x20authentication\x20token\x20available','cJZgD':function(_0x71c446,_0x3986dc,_0xa9a3d0){return _0x71c446(_0x3986dc,_0xa9a3d0);},'hWqVu':_0x447d(0x25),'JWuIs':_0x447d(0x26),'cUKgD':_0x447d(0x27)};try{const _0x4563d1=await getAuthToken();if(!_0x4563d1)throw new Error(_0x1d08cb[_0x447d(0x28)]);console['log'](_0x447d(0x29),_0x146dbc);const _0x3ca059=await _0x1d08cb[_0x447d(0x2a)](fetch,API_BASE_URL+_0x447d(0x2b),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4563d1},'body':JSON[_0x447d(0x2c)](_0x146dbc)});console['log'](_0x447d(0x2d),_0x3ca059[_0x447d(0xc)]);if(!_0x3ca059['ok']){const _0x421060=await _0x3ca059[_0x447d(0x2e)]();console[_0x447d(0x8)](_0x1d08cb[_0x447d(0x2f)],_0x3ca059[_0x447d(0xc)],_0x1d08cb['JWuIs'],_0x421060);try{const _0x3e244d=JSON[_0x447d(0x7)](_0x421060);throw new Error(_0x3e244d[_0x447d(0x8)]||_0x447d(0x9)+_0x3ca059[_0x447d(0xc)]);}catch(_0x5f3d2c){throw new Error(_0x447d(0x30)+_0x3ca059['status']+_0x447d(0x31)+_0x421060);}}const _0x4c8ad7=await _0x3ca059[_0x447d(0xd)]();return console['log'](_0x447d(0x32),_0x4c8ad7),_0x4c8ad7;}catch(_0x36945b){console['error'](_0x1d08cb[_0x447d(0x33)],_0x36945b);throw _0x36945b;}};export const isTrainingInProgress=async _0x50b9a2=>{const _0x349e9c={'QfDqr':function(_0x3e8929,_0x1cbdb3){return _0x3e8929(_0x1cbdb3);},'ECfTL':'⚠️\x20Could\x20not\x20check\x20training\x20status:'};try{const _0x596d5a=await _0x349e9c[_0x447d(0x34)](getTrainingStatus,_0x50b9a2);return _0x596d5a[_0x447d(0x35)]&&_0x596d5a[_0x447d(0x36)];}catch(_0x25dde9){return console[_0x447d(0x24)](_0x349e9c['ECfTL'],_0x25dde9),![];}};export const getTrainingFeatures=async()=>{const _0x14f09a={'PeUXf':function(_0x1ef5c3){return _0x1ef5c3();}};try{const _0x20ebad=await _0x14f09a[_0x447d(0x37)](getHealthCheck);return _0x20ebad[_0x447d(0x38)];}catch(_0x3e53a5){return console[_0x447d(0x24)](_0x447d(0x39),_0x3e53a5),null;}};
1
+ function _0x37a6(_0x1d17be,_0x37a614){_0x1d17be=_0x1d17be-0x0;const _0xc917e5=_0x1d17();let _0x15b9e1=_0xc917e5[_0x1d17be];return _0x15b9e1;}import{getAuthToken}from'./authService';import{API_CONFIG}from'../config/api';const API_BASE_URL=''+API_CONFIG['BASE_URL'];export const getTrainingStatus=async _0x4e1c91=>{const _0x40def1={'OXhSD':_0x37a6(0x0),'JKDUY':function(_0x497778,_0x30ccff){return _0x497778===_0x30ccff;},'LRwze':_0x37a6(0x1),'kMtFj':_0x37a6(0x2),'lyZuw':'mURbh','lSIZo':_0x37a6(0x3)};try{const _0x1279ca=await getAuthToken();if(!_0x1279ca){if(_0x40def1[_0x37a6(0x4)](_0x37a6(0x1),_0x40def1[_0x37a6(0x5)]))throw new Error(_0x40def1[_0x37a6(0x6)]);else return _0x3f0643[_0x37a6(0x7)](_0x37a6(0x8),_0xbac54),null;}const _0xcb2d37=await fetch(API_BASE_URL+_0x37a6(0x9)+_0x4e1c91,{'method':'GET','headers':{'Authorization':_0x1279ca,'Content-Type':'application/json'}});if(!_0xcb2d37['ok']){if(_0x40def1[_0x37a6(0xa)]===_0x40def1[_0x37a6(0xb)])throw new _0x1838ee(_0x40def1['OXhSD']);else{const _0x3668e9=await _0xcb2d37[_0x37a6(0xc)]();throw new Error(_0x3668e9['error']||_0x37a6(0xd)+_0xcb2d37['status']);}}return await _0xcb2d37[_0x37a6(0xc)]();}catch(_0x3a93a3){if(_0x40def1[_0x37a6(0x4)](_0x40def1[_0x37a6(0xe)],_0x40def1[_0x37a6(0xe)])){console['error']('❌\x20Failed\x20to\x20get\x20training\x20status:',_0x3a93a3);throw _0x3a93a3;}else throw new _0x2c0526('Training\x20API\x20failed:\x20'+_0x3fee66[_0x37a6(0xf)]+_0x37a6(0x10)+_0x4a09b9);}};export const getModelInfo=async()=>{const _0x160bf={'cDrpv':_0x37a6(0x11),'QbLjU':_0x37a6(0x12),'JPTKZ':function(_0x251b5e){return _0x251b5e();},'fRyWy':_0x37a6(0x0),'COkhl':_0x37a6(0x13)};try{if(_0x160bf[_0x37a6(0x14)]==='XHHLO'){_0x1d02ec['error'](_0x160bf[_0x37a6(0x15)],_0x213bb2);throw _0x34d1b5;}else{const _0x5d4458=await _0x160bf[_0x37a6(0x16)](getAuthToken);if(!_0x5d4458)throw new Error(_0x160bf[_0x37a6(0x17)]);const _0x4cadbe=await fetch(API_BASE_URL+'/mobile-training/model-info',{'method':'GET','headers':{'Authorization':_0x5d4458,'Content-Type':'application/json'}});if(!_0x4cadbe['ok']){const _0x23811b=await _0x4cadbe[_0x37a6(0xc)]();throw new Error(_0x23811b['error']||_0x37a6(0xd)+_0x4cadbe[_0x37a6(0xf)]);}return await _0x4cadbe[_0x37a6(0xc)]();}}catch(_0x34f028){console[_0x37a6(0x18)](_0x160bf['COkhl'],_0x34f028);throw _0x34f028;}};export const getHealthCheck=async()=>{try{const _0x29e86f=await fetch(API_BASE_URL+_0x37a6(0x19),{'method':'GET','headers':{'Content-Type':'application/json'}});if(!_0x29e86f['ok']){const _0x202334=await _0x29e86f[_0x37a6(0xc)]();throw new Error(_0x202334['error']||_0x37a6(0xd)+_0x29e86f['status']);}return await _0x29e86f[_0x37a6(0xc)]();}catch(_0x4a821e){console[_0x37a6(0x18)](_0x37a6(0x1a),_0x4a821e);throw _0x4a821e;}};export const startEnochTrainingWithYouTubeCheck=async _0x68bc0d=>{const _0x32a1f7={'sIPOC':'🚀\x20Starting\x20Enoch\x20training\x20for\x20user:','hvQez':_0x37a6(0x1b),'TsNTv':'🚀\x20[TRAINING]\x20Starting\x20training\x20-\x20backend\x20handles\x20all\x20YouTube\x20cases\x20automatically','CjSvV':_0x37a6(0x1c),'BPrZX':_0x37a6(0x1d),'BkIDk':_0x37a6(0x1e),'ZIpeE':function(_0x4cb2bc,_0x4775fe){return _0x4cb2bc(_0x4775fe);}};try{return console[_0x37a6(0x1f)](_0x32a1f7[_0x37a6(0x20)],_0x68bc0d[_0x37a6(0x21)],_0x32a1f7[_0x37a6(0x22)]),console['log'](_0x32a1f7['TsNTv']),console[_0x37a6(0x1f)](_0x37a6(0x23)),console[_0x37a6(0x1f)](_0x32a1f7[_0x37a6(0x24)]),console[_0x37a6(0x1f)](_0x32a1f7['BPrZX']),console[_0x37a6(0x1f)](_0x32a1f7[_0x37a6(0x25)]),await _0x32a1f7[_0x37a6(0x26)](startEnochTraining,_0x68bc0d);}catch(_0x5ccd67){console[_0x37a6(0x18)](_0x37a6(0x27),_0x5ccd67);throw _0x5ccd67;}};export const startEnochTraining=async _0x52aa3=>{const _0x2c78f8={'AHOvS':_0x37a6(0x13),'lURcU':_0x37a6(0x28),'oSJhi':_0x37a6(0x29),'ESpPl':_0x37a6(0x2a),'fbCCW':_0x37a6(0x0),'XPSeC':_0x37a6(0x2b),'DSmiR':function(_0x210e49,_0x4c2406,_0x332c91){return _0x210e49(_0x4c2406,_0x332c91);},'knmeQ':_0x37a6(0x2c),'zFcrw':_0x37a6(0x2d),'YEtjf':function(_0x439eb4,_0xe34d0d){return _0x439eb4!==_0xe34d0d;},'CogxB':_0x37a6(0x2e)};try{const _0x463972=await getAuthToken();if(!_0x463972){if(_0x2c78f8['oSJhi']!==_0x2c78f8[_0x37a6(0x2f)])throw new Error(_0x2c78f8[_0x37a6(0x30)]);else{_0x46d99c[_0x37a6(0x18)](_0x2c78f8[_0x37a6(0x31)],_0x2b082e);throw _0x19f450;}}console[_0x37a6(0x1f)](_0x2c78f8[_0x37a6(0x32)],_0x52aa3);const _0x599c16=await _0x2c78f8[_0x37a6(0x33)](fetch,API_BASE_URL+_0x37a6(0x34),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x463972},'body':JSON[_0x37a6(0x35)](_0x52aa3)});console[_0x37a6(0x1f)]('📡\x20Training\x20API\x20response\x20status:',_0x599c16[_0x37a6(0xf)]);if(!_0x599c16['ok']){const _0x26e168=await _0x599c16[_0x37a6(0x36)]();console['error'](_0x2c78f8[_0x37a6(0x37)],_0x599c16[_0x37a6(0xf)],_0x37a6(0x38),_0x26e168);try{const _0x54dff0=JSON[_0x37a6(0x39)](_0x26e168);throw new Error(_0x54dff0[_0x37a6(0x18)]||'HTTP\x20'+_0x599c16[_0x37a6(0xf)]);}catch(_0x523f40){throw new Error(_0x37a6(0x3a)+_0x599c16[_0x37a6(0xf)]+_0x37a6(0x10)+_0x26e168);}}const _0x581e8f=await _0x599c16[_0x37a6(0xc)]();return console[_0x37a6(0x1f)](_0x2c78f8[_0x37a6(0x3b)],_0x581e8f),_0x581e8f;}catch(_0x36011d){if(_0x2c78f8[_0x37a6(0x3c)](_0x2c78f8[_0x37a6(0x3d)],'CnhbA')){_0x26ef7b['error'](_0x2c78f8[_0x37a6(0x3e)],_0x20ded4);throw _0x3b193a;}else{console['error'](_0x37a6(0x11),_0x36011d);throw _0x36011d;}}};export const isTrainingInProgress=async _0x36f445=>{const _0x2424d1={'kItRE':function(_0x24cbb2,_0x5b397e){return _0x24cbb2!==_0x5b397e;},'IoETE':_0x37a6(0x3f),'AGFHF':_0x37a6(0x40)};try{if(_0x2424d1[_0x37a6(0x41)](_0x2424d1[_0x37a6(0x42)],_0x2424d1[_0x37a6(0x42)]))throw new _0x72bea3(_0x37a6(0x0));else{const _0x392e83=await getTrainingStatus(_0x36f445);return _0x392e83[_0x37a6(0x43)]&&_0x392e83['isTraining'];}}catch(_0x37983a){return console[_0x37a6(0x7)](_0x2424d1[_0x37a6(0x44)],_0x37983a),![];}};function _0x1d17(){const _0x161923=['No\x20authentication\x20token\x20available','NWzNv','nPMud','qdvJX','JKDUY','LRwze','OXhSD','warn','⚠️\x20Could\x20not\x20get\x20training\x20features:','/mobile-training/status/','kMtFj','lyZuw','json','HTTP\x20','lSIZo','status','\x20-\x20','❌\x20Training\x20start\x20error:','BpjaM','❌\x20Failed\x20to\x20get\x20model\x20info:','QbLjU','cDrpv','JPTKZ','fRyWy','error','/mobile-training/health','❌\x20Failed\x20to\x20get\x20health\x20check:','(backend\x20auto-handles\x20YouTube)','\x20\x20\x20-\x20Temporary\x20mode\x20connections:\x20Work\x20automatically\x20✅','\x20\x20\x20-\x20Full\x20refresh\x20tokens:\x20Auto-refresh\x20when\x20expired\x20✅','\x20\x20\x20-\x20Backend\x20validation:\x20Handles\x20all\x20edge\x20cases\x20✅','log','sIPOC','username','hvQez','ℹ️\x20[TRAINING]\x20No\x20migration\x20checks\x20needed:','CjSvV','BkIDk','ZIpeE','❌\x20Training\x20error:','❌\x20Failed\x20to\x20get\x20training\x20status:','xDbIP','vpior','📤\x20Sending\x20training\x20data\x20to\x20/mobile-training/enoch:','❌\x20Training\x20API\x20failed\x20with\x20status:','📡\x20Training\x20API\x20response:','CnhbA','ESpPl','fbCCW','AHOvS','XPSeC','DSmiR','/mobile-training/enoch','stringify','text','knmeQ','Error:','parse','Training\x20API\x20failed:\x20','zFcrw','YEtjf','CogxB','lURcU','yZQze','⚠️\x20Could\x20not\x20check\x20training\x20status:','kItRE','IoETE','success','AGFHF','QRNOG','features','lgKuY'];_0x1d17=function(){return _0x161923;};return _0x1d17();}export const getTrainingFeatures=async()=>{const _0x4a4b28={'AqMka':_0x37a6(0x40),'CDmdU':function(_0x2add1d,_0x30c46e){return _0x2add1d===_0x30c46e;},'QRNOG':'AGVYZ','lgKuY':'⚠️\x20Could\x20not\x20get\x20training\x20features:'};try{if(_0x4a4b28['CDmdU']('HooNk',_0x4a4b28[_0x37a6(0x45)]))return _0x11bf41[_0x37a6(0x7)](_0x4a4b28['AqMka'],_0x481a91),![];else{const _0x509107=await getHealthCheck();return _0x509107[_0x37a6(0x46)];}}catch(_0x253a3f){return console[_0x37a6(0x7)](_0x4a4b28[_0x37a6(0x47)],_0x253a3f),null;}};
@@ -4,4 +4,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
4
4
  require('react-native-crypto-js')
5
5
  ];
6
6
  function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
7
- const CryptoJS=__ONAIROS_REQ_FUNC__(0x0);import{getTemporaryPin}from'./pinStorageUtils';const ENCRYPTION_KEY=_0x594d(0x0);export const encryptPin=_0x57453e=>{const _0xc5dcde={'Dvbdg':_0x594d(0x1)};try{const _0x3bab27=CryptoJS[_0x594d(0x2)][_0x594d(0x3)](_0x57453e,ENCRYPTION_KEY)['toString']();return console[_0x594d(0x4)]('🔐\x20PIN\x20encrypted\x20successfully'),_0x3bab27;}catch(_0x28af5d){console[_0x594d(0x5)](_0xc5dcde[_0x594d(0x6)],_0x28af5d);throw _0x28af5d;}};function _0x4c27(){const _0x1a3a51=['onairos-pin-encryption-key-2024','❌\x20Error\x20encrypting\x20PIN:','AES','encrypt','log','error','Dvbdg','🔓\x20PIN\x20decrypted\x20successfully','❌\x20Error\x20decrypting\x20PIN:','⚠️\x20No\x20temporary\x20PIN\x20available\x20for\x20encryption','KNKlC','yhmLj','zNGAZ','toString','enc','Utf8','FUCbv','decrypt','aEbOP','fXbSv','PorVm','✅\x20PIN\x20encrypted\x20for\x20API\x20transmission','LqnRK','❌\x20Error\x20getting\x20encrypted\x20PIN\x20for\x20API:','KrdTc','nYwGz','VdiLu','VxslN','txdUI','UGVTh','SHA256','🔒\x20PIN\x20hashed\x20successfully','SGlvv','FIZMi','aITXv','DKyaT','nievK','zdygW','zlCKg','wilPO','BjruZ','JZoIF','❌\x20Error\x20hashing\x20PIN:','POVrV','ulWPq','hUpFG','nNgxG','bwmgj'];_0x4c27=function(){return _0x1a3a51;};return _0x4c27();}export const decryptPin=_0x1158e7=>{const _0x220b1a={'FUCbv':_0x594d(0x7),'fXbSv':_0x594d(0x8),'PorVm':_0x594d(0x9),'NvRcK':_0x594d(0xa),'aEbOP':_0x594d(0xb)};try{if(_0x220b1a['NvRcK']===_0x594d(0xc))try{const _0x2dc8ad=_0x4a1a77[_0x594d(0x2)]['decrypt'](_0x650257,_0x194254),_0x12f9d9=_0x2dc8ad[_0x594d(0xd)](_0xff30b7[_0x594d(0xe)][_0x594d(0xf)]);return _0x29bbbb[_0x594d(0x4)](_0x220b1a[_0x594d(0x10)]),_0x12f9d9;}catch(_0x380678){_0x3826b8[_0x594d(0x5)](_0x220b1a['fXbSv'],_0x380678);throw _0x380678;}else{const _0x130556=CryptoJS['AES'][_0x594d(0x11)](_0x1158e7,ENCRYPTION_KEY),_0x3d1df3=_0x130556[_0x594d(0xd)](CryptoJS[_0x594d(0xe)]['Utf8']);return console[_0x594d(0x4)](_0x220b1a[_0x594d(0x10)]),_0x3d1df3;}}catch(_0x433174){if(_0x220b1a['aEbOP']===_0x220b1a[_0x594d(0x12)]){console[_0x594d(0x5)](_0x220b1a[_0x594d(0x13)],_0x433174);throw _0x433174;}else return _0x28f65b[_0x594d(0x4)](_0x220b1a[_0x594d(0x14)]),null;}};function _0x594d(_0x4c27d4,_0x594dbb){_0x4c27d4=_0x4c27d4-0x0;const _0x56cc80=_0x4c27();let _0x4e0ac4=_0x56cc80[_0x4c27d4];return _0x4e0ac4;}export const getEncryptedPinForAPI=async()=>{const _0x2a478c={'PAjru':function(_0x4c5d3b,_0x51ec08){return _0x4c5d3b+_0x51ec08;},'aITXv':_0x594d(0x7),'zdygW':function(_0x5e5de4){return _0x5e5de4();},'SGlvv':_0x594d(0x9),'zlCKg':function(_0x66fbee,_0x3021e9){return _0x66fbee(_0x3021e9);},'wilPO':_0x594d(0x15),'KrdTc':function(_0x4c37ec,_0x3acdcd){return _0x4c37ec===_0x3acdcd;},'nYwGz':'cZpJB','VdiLu':function(_0x3af33e){return _0x3af33e();},'VxslN':function(_0x382737,_0x4ab867){return _0x382737===_0x4ab867;},'UGVTh':'SbgYP','FIZMi':function(_0x1a85f3,_0x22e616){return _0x1a85f3(_0x22e616);},'XVffE':function(_0x596226,_0x89f87e){return _0x596226===_0x89f87e;},'DKyaT':_0x594d(0x16),'nievK':_0x594d(0x17)};try{if(_0x2a478c[_0x594d(0x18)](_0x2a478c[_0x594d(0x19)],_0x2a478c[_0x594d(0x19)])){const _0x3aff8a=_0x2a478c[_0x594d(0x1a)](getTemporaryPin);if(!_0x3aff8a){if(_0x2a478c[_0x594d(0x1b)](_0x594d(0x1c),_0x2a478c[_0x594d(0x1d)])){const _0x1a8031=_0x160d11[_0x594d(0x1e)](_0x2a478c['PAjru'](_0x984145,_0x27ba4c))[_0x594d(0xd)]();return _0x7c291c[_0x594d(0x4)](_0x594d(0x1f)),_0x1a8031;}else return console[_0x594d(0x4)](_0x2a478c[_0x594d(0x20)]),null;}const _0x1ed0db=_0x2a478c[_0x594d(0x21)](encryptPin,_0x3aff8a);return console[_0x594d(0x4)]('✅\x20PIN\x20encrypted\x20for\x20API\x20transmission'),_0x1ed0db;}else{const _0x5f4a8d=_0x4d7318[_0x594d(0x2)][_0x594d(0x11)](_0x248fd5,_0x2e02b0),_0x575984=_0x5f4a8d[_0x594d(0xd)](_0x408d0c[_0x594d(0xe)][_0x594d(0xf)]);return _0x4fb434[_0x594d(0x4)](_0x2a478c[_0x594d(0x22)]),_0x575984;}}catch(_0x46b832){if(_0x2a478c['XVffE'](_0x2a478c[_0x594d(0x23)],_0x594d(0x16)))return console[_0x594d(0x5)](_0x2a478c[_0x594d(0x24)],_0x46b832),null;else{const _0x5baa6d=_0x2a478c[_0x594d(0x25)](_0x2a7ac4);if(!_0x5baa6d)return _0x1ddacf['log'](_0x2a478c['SGlvv']),null;const _0xf38f69=_0x2a478c[_0x594d(0x26)](_0xd99b48,_0x5baa6d);return _0x11b9cd['log'](_0x2a478c[_0x594d(0x27)]),_0xf38f69;}}};export const hashPin=_0x21d16e=>{const _0x1b5356={'POVrV':function(_0x1ab8dc,_0x1070dd){return _0x1ab8dc+_0x1070dd;},'ulWPq':_0x594d(0x1f),'hUpFG':function(_0x1084d0,_0x5a2fa4){return _0x1084d0===_0x5a2fa4;},'IBAVX':_0x594d(0x28),'nNgxG':_0x594d(0x29),'bwmgj':_0x594d(0x2a)};try{const _0x3b16ae=CryptoJS[_0x594d(0x1e)](_0x1b5356[_0x594d(0x2b)](_0x21d16e,ENCRYPTION_KEY))[_0x594d(0xd)]();return console[_0x594d(0x4)](_0x1b5356[_0x594d(0x2c)]),_0x3b16ae;}catch(_0x5bd643){if(_0x1b5356[_0x594d(0x2d)](_0x1b5356['IBAVX'],_0x1b5356[_0x594d(0x2e)])){_0xc21031[_0x594d(0x5)](_0x594d(0x2a),_0x29bd78);throw _0x3eee48;}else{console['error'](_0x1b5356[_0x594d(0x2f)],_0x5bd643);throw _0x5bd643;}}};
7
+ function _0xf6f1(){const _0x551094=['onairos-pin-encryption-key-2024','❌\x20Error\x20hashing\x20PIN:','❌\x20Error\x20decrypting\x20PIN:','🔐\x20PIN\x20encrypted\x20successfully','HphlX','❌\x20Error\x20encrypting\x20PIN:','fmGIh','nXErv','vgvOJ','toString','SHA256','error','BKJZk','qsoDn','zFLIX','LNJVl','⚠️\x20No\x20temporary\x20PIN\x20available\x20for\x20encryption','🔓\x20PIN\x20decrypted\x20successfully','aKuIh','CrjGz','lzeXA','log','ezFDW','AES','decrypt','enc','Utf8','LIrje','YqKdg','RHmSs','❌\x20Error\x20getting\x20encrypted\x20PIN\x20for\x20API:','ptZGt','dYNCh','UhwNM','olpkh','CPXDx','ZOWTP','✅\x20PIN\x20encrypted\x20for\x20API\x20transmission'];_0xf6f1=function(){return _0x551094;};return _0xf6f1();}const CryptoJS=__ONAIROS_REQ_FUNC__(0x0);import{getTemporaryPin}from'./pinStorageUtils';function _0x4c0f(_0xf6f1b7,_0x4c0f74){_0xf6f1b7=_0xf6f1b7-0x0;const _0x4c33b1=_0xf6f1();let _0xc0d2b3=_0x4c33b1[_0xf6f1b7];return _0xc0d2b3;}const ENCRYPTION_KEY=_0x4c0f(0x0);export const encryptPin=_0x4f40ba=>{const _0x4a6822={'oiNeE':function(_0xf5da68,_0x2e6de5){return _0xf5da68+_0x2e6de5;},'BKJZk':_0x4c0f(0x1),'LNJVl':_0x4c0f(0x2),'fmGIh':function(_0x40716c,_0x40c1bb){return _0x40716c!==_0x40c1bb;},'nXErv':'msCqr','vgvOJ':'rGlWE','nAUVO':_0x4c0f(0x3),'qsoDn':_0x4c0f(0x4),'zFLIX':_0x4c0f(0x5)};try{if(_0x4a6822[_0x4c0f(0x6)](_0x4a6822[_0x4c0f(0x7)],_0x4a6822[_0x4c0f(0x8)])){const _0x32e909=CryptoJS['AES']['encrypt'](_0x4f40ba,ENCRYPTION_KEY)[_0x4c0f(0x9)]();return console['log'](_0x4a6822['nAUVO']),_0x32e909;}else try{const _0x5dd178=_0x44422f[_0x4c0f(0xa)](_0x4a6822['oiNeE'](_0x2f1c83,_0x6dd774))[_0x4c0f(0x9)]();return _0x49aa8d['log']('🔒\x20PIN\x20hashed\x20successfully'),_0x5dd178;}catch(_0xee684a){_0x1f1cd3[_0x4c0f(0xb)](_0x4a6822[_0x4c0f(0xc)],_0xee684a);throw _0xee684a;}}catch(_0x587747){if(_0x4a6822[_0x4c0f(0xd)]===_0x4a6822[_0x4c0f(0xd)]){console[_0x4c0f(0xb)](_0x4a6822[_0x4c0f(0xe)],_0x587747);throw _0x587747;}else{_0xab1f19[_0x4c0f(0xb)](_0x4a6822[_0x4c0f(0xf)],_0x24620a);throw _0x895767;}}};export const decryptPin=_0x12f1de=>{const _0x5b0fc5={'QVdCB':function(_0x3bd4a4){return _0x3bd4a4();},'ezFDW':_0x4c0f(0x10),'EBDHQ':'✅\x20PIN\x20encrypted\x20for\x20API\x20transmission','flAwg':'❌\x20Error\x20getting\x20encrypted\x20PIN\x20for\x20API:','aKuIh':function(_0x5771ee,_0x54f589){return _0x5771ee!==_0x54f589;},'lzeXA':'CrjGz','RCWhI':_0x4c0f(0x11),'LIrje':_0x4c0f(0x2)};try{if(_0x5b0fc5[_0x4c0f(0x12)](_0x4c0f(0x13),_0x5b0fc5[_0x4c0f(0x14)]))try{const _0x545984=_0x5b0fc5['QVdCB'](_0x1283cf);if(!_0x545984)return _0x13f259[_0x4c0f(0x15)](_0x5b0fc5[_0x4c0f(0x16)]),null;const _0x155b40=_0x1fec78(_0x545984);return _0x22e6af['log'](_0x5b0fc5['EBDHQ']),_0x155b40;}catch(_0x2f9048){return _0x381f0a[_0x4c0f(0xb)](_0x5b0fc5['flAwg'],_0x2f9048),null;}else{const _0x776ead=CryptoJS[_0x4c0f(0x17)][_0x4c0f(0x18)](_0x12f1de,ENCRYPTION_KEY),_0x2e3a88=_0x776ead['toString'](CryptoJS[_0x4c0f(0x19)][_0x4c0f(0x1a)]);return console[_0x4c0f(0x15)](_0x5b0fc5['RCWhI']),_0x2e3a88;}}catch(_0x4acbcb){console[_0x4c0f(0xb)](_0x5b0fc5[_0x4c0f(0x1b)],_0x4acbcb);throw _0x4acbcb;}};export const getEncryptedPinForAPI=async()=>{const _0x3a15a3={'UhwNM':_0x4c0f(0x1),'CPXDx':_0x4c0f(0x10),'ptZGt':function(_0x4950b9,_0x41d1a3){return _0x4950b9!==_0x41d1a3;},'dYNCh':_0x4c0f(0x1c),'olpkh':_0x4c0f(0x1d),'ZOWTP':function(_0x1c5d8b,_0x46d2c3){return _0x1c5d8b(_0x46d2c3);},'rBOyM':_0x4c0f(0x1e)};try{if(_0x3a15a3[_0x4c0f(0x1f)](_0x3a15a3[_0x4c0f(0x20)],_0x3a15a3['dYNCh'])){_0xfb9b38[_0x4c0f(0xb)](_0x3a15a3[_0x4c0f(0x21)],_0x316fd0);throw _0x213e21;}else{const _0x107204=getTemporaryPin();if(!_0x107204)return _0x3a15a3[_0x4c0f(0x22)]!==_0x3a15a3[_0x4c0f(0x22)]?(_0x4abeff[_0x4c0f(0x15)](_0x3a15a3[_0x4c0f(0x23)]),null):(console[_0x4c0f(0x15)](_0x4c0f(0x10)),null);const _0x3aa4cd=_0x3a15a3[_0x4c0f(0x24)](encryptPin,_0x107204);return console[_0x4c0f(0x15)](_0x4c0f(0x25)),_0x3aa4cd;}}catch(_0x1a9027){return console[_0x4c0f(0xb)](_0x3a15a3['rBOyM'],_0x1a9027),null;}};export const hashPin=_0x574e83=>{const _0x17ad78={'OSnwG':'🔒\x20PIN\x20hashed\x20successfully'};try{const _0x471929=CryptoJS['SHA256'](_0x574e83+ENCRYPTION_KEY)['toString']();return console[_0x4c0f(0x15)](_0x17ad78['OSnwG']),_0x471929;}catch(_0x29dd28){console[_0x4c0f(0xb)](_0x4c0f(0x1),_0x29dd28);throw _0x29dd28;}};
@@ -1 +1 @@
1
- import{biometricPinService}from'./biometricPinService';export const getStoredPinForTraining=async()=>{const _0x1cb3d0={'DdYgG':_0x56d1(0x0),'aJFeE':_0x56d1(0x1),'gFPcs':_0x56d1(0x2)};try{console[_0x56d1(0x3)](_0x1cb3d0[_0x56d1(0x4)]);const _0x31a9ff=await biometricPinService[_0x56d1(0x5)]();if(!_0x31a9ff)return console[_0x56d1(0x3)](_0x1cb3d0[_0x56d1(0x6)]),null;const _0xa8c61=await biometricPinService['retrievePinWithBiometric']();return _0xa8c61?(console[_0x56d1(0x3)](_0x1cb3d0['gFPcs']),_0xa8c61):(console['log'](_0x56d1(0x7)),null);}catch(_0x45580d){return console[_0x56d1(0x8)](_0x56d1(0x9),_0x45580d),null;}};export const hasStoredPin=async()=>{try{return await biometricPinService[_0x56d1(0x5)]();}catch(_0x30b9d6){return console[_0x56d1(0x8)](_0x56d1(0xa),_0x30b9d6),![];}};function _0x216d(){const _0x46adbf=['🔓\x20Retrieving\x20stored\x20PIN\x20for\x20training...','⚠️\x20No\x20PIN\x20stored\x20in\x20secure\x20storage','✅\x20PIN\x20retrieved\x20successfully\x20for\x20training','log','DdYgG','isPinStored','aJFeE','❌\x20Failed\x20to\x20retrieve\x20PIN\x20or\x20user\x20cancelled\x20authentication','error','❌\x20Error\x20retrieving\x20stored\x20PIN:','❌\x20Error\x20checking\x20PIN\x20storage:','🗑️\x20Clearing\x20stored\x20PIN...','removePinFromStorage','📝\x20Using\x20temporary\x20PIN\x20for\x20training','XImqG','SDAKf','ErcDY','🗑️\x20Temporary\x20PIN\x20cleared'];_0x216d=function(){return _0x46adbf;};return _0x216d();}export const clearStoredPin=async()=>{const _0x3a08fb={'KLFoB':'❌\x20Error\x20clearing\x20stored\x20PIN:'};try{return console[_0x56d1(0x3)](_0x56d1(0xb)),await biometricPinService[_0x56d1(0xc)]();}catch(_0x550825){return console[_0x56d1(0x8)](_0x3a08fb['KLFoB'],_0x550825),![];}};function _0x56d1(_0x216d34,_0x56d1d3){_0x216d34=_0x216d34-0x0;const _0x472f61=_0x216d();let _0x15a1dd=_0x472f61[_0x216d34];return _0x15a1dd;}export const getPinForTraining=async _0x504a9e=>{const _0x24d0e8={'XImqG':_0x56d1(0xd),'SDAKf':function(_0x23e006){return _0x23e006();}};if(_0x504a9e)return console[_0x56d1(0x3)](_0x24d0e8[_0x56d1(0xe)]),_0x504a9e;return await _0x24d0e8[_0x56d1(0xf)](getStoredPinForTraining);};let temporaryPin=null;export const setTemporaryPin=_0x2f29fa=>{const _0x2d0186={'ErcDY':'📝\x20Temporary\x20PIN\x20set\x20for\x20training'};temporaryPin=_0x2f29fa,console['log'](_0x2d0186[_0x56d1(0x10)]);};export const getTemporaryPin=()=>{return temporaryPin;};export const clearTemporaryPin=()=>{temporaryPin=null,console['log'](_0x56d1(0x11));};
1
+ import{biometricPinService}from'./biometricPinService';export const getStoredPinForTraining=async()=>{const _0x407ae3={'beDAG':_0x175e(0x0),'IXJtX':_0x175e(0x1),'rKctQ':_0x175e(0x2),'nttdm':'✅\x20PIN\x20retrieved\x20successfully\x20for\x20training','ZaEoS':function(_0xeaa19f,_0x9b3fa1){return _0xeaa19f===_0x9b3fa1;},'fqkoX':_0x175e(0x3),'diKlC':_0x175e(0x4),'hMKfL':_0x175e(0x5)};try{console['log'](_0x407ae3[_0x175e(0x6)]);const _0x1ce650=await biometricPinService[_0x175e(0x7)]();if(!_0x1ce650)return console[_0x175e(0x8)](_0x407ae3['rKctQ']),null;const _0xa4eab1=await biometricPinService[_0x175e(0x9)]();return _0xa4eab1?(console[_0x175e(0x8)](_0x407ae3[_0x175e(0xa)]),_0xa4eab1):_0x407ae3[_0x175e(0xb)](_0x175e(0xc),_0x407ae3['fqkoX'])?(_0x3c0d59['error'](_0x407ae3['beDAG'],_0x7683b7),![]):(console[_0x175e(0x8)](_0x407ae3[_0x175e(0xd)]),null);}catch(_0x576f20){return console[_0x175e(0xe)](_0x407ae3[_0x175e(0xf)],_0x576f20),null;}};export const hasStoredPin=async()=>{const _0x130b59={'pBWpt':_0x175e(0x10)};try{return await biometricPinService[_0x175e(0x7)]();}catch(_0x5820b4){return console[_0x175e(0xe)](_0x130b59[_0x175e(0x11)],_0x5820b4),![];}};function _0x175e(_0x4c5478,_0x175eed){_0x4c5478=_0x4c5478-0x0;const _0x1417b1=_0x4c54();let _0x437368=_0x1417b1[_0x4c5478];return _0x437368;}export const clearStoredPin=async()=>{const _0x1e8732={'efBFZ':_0x175e(0x5),'rTPpy':_0x175e(0x12),'zSnMI':_0x175e(0x13),'tgkSU':function(_0x3e24f1,_0x4d776b){return _0x3e24f1===_0x4d776b;},'JVpCa':_0x175e(0x14),'wAEoY':_0x175e(0x0)};try{return _0x1e8732[_0x175e(0x15)]!==_0x175e(0x16)?(console['log'](_0x1e8732[_0x175e(0x17)]),await biometricPinService[_0x175e(0x18)]()):(_0xea0fd8['error'](_0x1e8732[_0x175e(0x19)],_0x2113ef),null);}catch(_0x227ab2){return _0x1e8732['tgkSU'](_0x1e8732['JVpCa'],_0x1e8732[_0x175e(0x1a)])?(console['error'](_0x1e8732['wAEoY'],_0x227ab2),![]):_0x163116;}};export const getPinForTraining=async _0x560c7e=>{const _0xc9ec45={'Mzmdi':'🗑️\x20Temporary\x20PIN\x20cleared','DnNUf':function(_0x5c09c6,_0xc252de){return _0x5c09c6===_0xc252de;},'PpSSE':_0x175e(0x1b),'yrkwD':'📝\x20Using\x20temporary\x20PIN\x20for\x20training','aSagy':function(_0x26180c){return _0x26180c();}};if(_0x560c7e){if(_0xc9ec45[_0x175e(0x1c)](_0xc9ec45['PpSSE'],_0xc9ec45[_0x175e(0x1d)]))return console[_0x175e(0x8)](_0xc9ec45['yrkwD']),_0x560c7e;else _0x40bacb=null,_0x250040[_0x175e(0x8)](_0xc9ec45['Mzmdi']);}return await _0xc9ec45[_0x175e(0x1e)](getStoredPinForTraining);};let temporaryPin=null;export const setTemporaryPin=_0x2487f0=>{temporaryPin=_0x2487f0,console[_0x175e(0x8)](_0x175e(0x1f));};export const getTemporaryPin=()=>{return temporaryPin;};export const clearTemporaryPin=()=>{const _0x2e00b9={'FRYPS':'🗑️\x20Temporary\x20PIN\x20cleared'};temporaryPin=null,console[_0x175e(0x8)](_0x2e00b9[_0x175e(0x20)]);};function _0x4c54(){const _0x457c56=['❌\x20Error\x20clearing\x20stored\x20PIN:','🔓\x20Retrieving\x20stored\x20PIN\x20for\x20training...','⚠️\x20No\x20PIN\x20stored\x20in\x20secure\x20storage','MbGhx','❌\x20Failed\x20to\x20retrieve\x20PIN\x20or\x20user\x20cancelled\x20authentication','❌\x20Error\x20retrieving\x20stored\x20PIN:','IXJtX','isPinStored','log','retrievePinWithBiometric','nttdm','ZaEoS','HRDZY','diKlC','error','hMKfL','❌\x20Error\x20checking\x20PIN\x20storage:','pBWpt','fhARd','🗑️\x20Clearing\x20stored\x20PIN...','aDDHT','rTPpy','YIDSN','zSnMI','removePinFromStorage','efBFZ','JVpCa','mcZUg','DnNUf','PpSSE','aSagy','📝\x20Temporary\x20PIN\x20set\x20for\x20training','FRYPS'];_0x4c54=function(){return _0x457c56;};return _0x4c54();}