@onairos/react-native 3.6.8 → 3.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +423 -423
- package/lib/commonjs/api/index.js +1 -1
- package/lib/commonjs/assets/images/Checkbox.svg +3 -3
- package/lib/commonjs/assets/images/EnochE.svg +19 -19
- package/lib/commonjs/assets/images/Personalityprofile.svg +3 -3
- package/lib/commonjs/assets/images/Personalitytraits.svg +3 -3
- package/lib/commonjs/assets/images/Userpreferences.svg +3 -3
- package/lib/commonjs/assets/images/arrow.svg +20 -20
- package/lib/commonjs/assets/images/basicproficon.svg +43 -43
- package/lib/commonjs/assets/images/basicprofile.svg +3 -3
- package/lib/commonjs/assets/images/checkmark.svg +4 -4
- package/lib/commonjs/assets/images/contentanalysis.svg +3 -3
- package/lib/commonjs/assets/images/contenticon.svg +23 -23
- package/lib/commonjs/assets/images/personalityicon.svg +18 -18
- package/lib/commonjs/assets/images/x-close.svg +3 -3
- package/lib/commonjs/components/BodyText.js +1 -1
- package/lib/commonjs/components/BrandMark.js +1 -1
- package/lib/commonjs/components/CodeInput.js +1 -1
- package/lib/commonjs/components/EmailInput.js +1 -1
- package/lib/commonjs/components/GoogleButton.js +1 -1
- package/lib/commonjs/components/HeadingGroup.js +1 -1
- package/lib/commonjs/components/LLMDataInputModal.js +1 -1
- package/lib/commonjs/components/ModalHeader.js +1 -1
- package/lib/commonjs/components/ModalSheet.js +1 -1
- package/lib/commonjs/components/Onairos.js +1 -1
- package/lib/commonjs/components/OnairosButton.js +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js +1 -1
- package/lib/commonjs/components/Overlay.js +1 -1
- package/lib/commonjs/components/PersonaImage.js +1 -1
- package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
- package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
- package/lib/commonjs/components/PinCreationScreen.js +1 -1
- package/lib/commonjs/components/PinInput.js +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
- package/lib/commonjs/components/PlatformList.js +1 -1
- package/lib/commonjs/components/PlatformToggle.js +1 -1
- package/lib/commonjs/components/PrimaryButton.js +1 -1
- package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
- package/lib/commonjs/components/SignInStep.js +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +1 -1
- package/lib/commonjs/components/VerificationStep.js +1 -1
- package/lib/commonjs/components/WelcomeScreen.js +1 -1
- package/lib/commonjs/components/icons/Basicproficon.js +1 -1
- package/lib/commonjs/components/icons/Basicprofile.js +1 -1
- package/lib/commonjs/components/icons/Checkbox.js +1 -1
- package/lib/commonjs/components/icons/Checkmark.js +1 -1
- package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
- package/lib/commonjs/components/icons/Contenticon.js +1 -1
- package/lib/commonjs/components/icons/EnochE.js +1 -1
- package/lib/commonjs/components/icons/Personalityicon.js +1 -1
- package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
- package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
- package/lib/commonjs/components/icons/Userpreferences.js +1 -1
- package/lib/commonjs/components/icons/index.js +1 -1
- package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/commonjs/components/onboarding/PinInput.js +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
- package/lib/commonjs/config/PLATFORM_APIS.md +559 -0
- package/lib/commonjs/config/api.js +1 -1
- package/lib/commonjs/config/telegramConfig.js +8 -0
- package/lib/commonjs/config/webchangelog/md +607 -0
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/context/AuthContext.js +1 -1
- package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
- package/lib/commonjs/hooks/useConnections.js +1 -1
- package/lib/commonjs/hooks/useCredentials.js +1 -1
- package/lib/commonjs/hooks/useUserConnections.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
- package/lib/commonjs/services/apiClient.js +1 -1
- package/lib/commonjs/services/apiKeyService.js +99 -99
- package/lib/commonjs/services/authService.js +72 -72
- package/lib/commonjs/services/biometricPinService.js +1 -1
- package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
- package/lib/commonjs/services/chatGPTConversationService.js +1 -1
- package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
- package/lib/commonjs/services/claudeConversationService.js +1 -1
- package/lib/commonjs/services/connectedAccountsService.js +1 -1
- package/lib/commonjs/services/googleAuthService.js +1 -1
- package/lib/commonjs/services/hingeDataExtractor.js +1 -1
- package/lib/commonjs/services/hingeDataService.js +1 -1
- package/lib/commonjs/services/imageCompressionService.js +1 -1
- package/lib/commonjs/services/instagramDataExtractor.js +1 -1
- package/lib/commonjs/services/instagramDataService.js +1 -1
- package/lib/commonjs/services/jwtStorageService.js +1 -1
- package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
- package/lib/commonjs/services/linkedinProfileService.js +1 -1
- package/lib/commonjs/services/linkedinScrapingService.js +1 -1
- package/lib/commonjs/services/llmDataStorage.js +1 -1
- package/lib/commonjs/services/mobileTrainingService.js +1 -1
- package/lib/commonjs/services/oauthService.js +20 -20
- package/lib/commonjs/services/pinEncryptionService.js +1 -1
- package/lib/commonjs/services/pinStorageUtils.js +1 -1
- package/lib/commonjs/services/platformAuthService.js +1 -1
- package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
- package/lib/commonjs/services/sephoraDataService.js +1 -1
- package/lib/commonjs/services/storageService.js +1 -1
- package/lib/commonjs/services/telegramDataExtractor.js +1 -1
- package/lib/commonjs/services/telegramDataService.js +1 -1
- package/lib/commonjs/services/trainingApiHelpers.js +1 -1
- package/lib/commonjs/services/userConnectionsService.js +1 -1
- package/lib/commonjs/services/youtubeMigrationService.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types.js +1 -1
- package/lib/commonjs/utils/Portal.js +1 -1
- package/lib/commonjs/utils/api.js +1 -1
- package/lib/commonjs/utils/assetRegistry.js +1 -1
- package/lib/commonjs/utils/auth.js +1 -1
- package/lib/commonjs/utils/connectorTests.js +1 -1
- package/lib/commonjs/utils/crypto.js +1 -1
- package/lib/commonjs/utils/debugHelper.js +1 -1
- package/lib/commonjs/utils/encryption.js +1 -1
- package/lib/commonjs/utils/eventUtils.js +1 -1
- package/lib/commonjs/utils/haptics.js +1 -1
- package/lib/commonjs/utils/imagePreloader.js +1 -1
- package/lib/commonjs/utils/networkDiagnostics.js +1 -1
- package/lib/commonjs/utils/onairosApi.js +1 -1
- package/lib/commonjs/utils/programmaticFlow.js +1 -1
- package/lib/commonjs/utils/retryHelper.js +1 -1
- package/lib/commonjs/utils/secureStorage.js +1 -1
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
- package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
- package/lib/commonjs/utils/webviewScripts/index.js +1 -1
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
- package/lib/module/api/index.js +1 -1
- package/lib/module/assets/images/Checkbox.svg +3 -3
- package/lib/module/assets/images/EnochE.svg +19 -19
- package/lib/module/assets/images/Personalityprofile.svg +3 -3
- package/lib/module/assets/images/Personalitytraits.svg +3 -3
- package/lib/module/assets/images/Userpreferences.svg +3 -3
- package/lib/module/assets/images/arrow.svg +20 -20
- package/lib/module/assets/images/basicproficon.svg +43 -43
- package/lib/module/assets/images/basicprofile.svg +3 -3
- package/lib/module/assets/images/checkmark.svg +4 -4
- package/lib/module/assets/images/contentanalysis.svg +3 -3
- package/lib/module/assets/images/contenticon.svg +23 -23
- package/lib/module/assets/images/personalityicon.svg +18 -18
- package/lib/module/assets/images/x-close.svg +3 -3
- package/lib/module/components/BodyText.js +1 -1
- package/lib/module/components/BrandMark.js +1 -1
- package/lib/module/components/CodeInput.js +1 -1
- package/lib/module/components/EmailInput.js +1 -1
- package/lib/module/components/GoogleButton.js +1 -1
- package/lib/module/components/HeadingGroup.js +1 -1
- package/lib/module/components/LLMDataInputModal.js +1 -1
- package/lib/module/components/ModalHeader.js +1 -1
- package/lib/module/components/ModalSheet.js +1 -1
- package/lib/module/components/Onairos.js +1 -1
- package/lib/module/components/OnairosButton.js +1 -1
- package/lib/module/components/OnairosSignInButton.js +1 -1
- package/lib/module/components/Overlay.js +1 -1
- package/lib/module/components/PersonaImage.js +1 -1
- package/lib/module/components/PersonaLoadingScreen.js +1 -1
- package/lib/module/components/PersonalizationConsentScreen.js +1 -1
- package/lib/module/components/PinCreationScreen.js +1 -1
- package/lib/module/components/PinInput.js +1 -1
- package/lib/module/components/PlatformConnectorsStep.js +1 -1
- package/lib/module/components/PlatformList.js +1 -1
- package/lib/module/components/PlatformToggle.js +1 -1
- package/lib/module/components/PrimaryButton.js +1 -1
- package/lib/module/components/SignInMatchAnimation.js +1 -1
- package/lib/module/components/SignInStep.js +1 -1
- package/lib/module/components/UniversalOnboarding.js +1 -1
- package/lib/module/components/VerificationStep.js +1 -1
- package/lib/module/components/WelcomeScreen.js +1 -1
- package/lib/module/components/icons/Basicproficon.js +1 -1
- package/lib/module/components/icons/Basicprofile.js +1 -1
- package/lib/module/components/icons/Checkbox.js +1 -1
- package/lib/module/components/icons/Checkmark.js +1 -1
- package/lib/module/components/icons/Contentanalysis.js +1 -1
- package/lib/module/components/icons/Contenticon.js +1 -1
- package/lib/module/components/icons/EnochE.js +1 -1
- package/lib/module/components/icons/Personalityicon.js +1 -1
- package/lib/module/components/icons/Personalityprofile.js +1 -1
- package/lib/module/components/icons/Personalitytraits.js +1 -1
- package/lib/module/components/icons/Userpreferences.js +1 -1
- package/lib/module/components/onboarding/OAuthWebView.js +1 -1
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/module/components/onboarding/PinInput.js +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js +1 -1
- package/lib/module/config/PLATFORM_APIS.md +559 -0
- package/lib/module/config/api.js +1 -1
- package/lib/module/config/telegramConfig.js +8 -0
- package/lib/module/config/webchangelog/md +607 -0
- package/lib/module/constants/index.js +1 -1
- package/lib/module/context/AuthContext.js +1 -1
- package/lib/module/hooks/useConnectedAccounts.js +1 -1
- package/lib/module/hooks/useConnections.js +1 -1
- package/lib/module/hooks/useCredentials.js +1 -1
- package/lib/module/hooks/useUserConnections.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
- package/lib/module/services/apiClient.js +1 -1
- package/lib/module/services/apiKeyService.js +99 -99
- package/lib/module/services/authService.js +72 -72
- package/lib/module/services/biometricPinService.js +1 -1
- package/lib/module/services/chatGPTConversationExtractor.js +1 -1
- package/lib/module/services/chatGPTConversationService.js +1 -1
- package/lib/module/services/claudeConversationExtractor.js +1 -1
- package/lib/module/services/claudeConversationService.js +1 -1
- package/lib/module/services/connectedAccountsService.js +1 -1
- package/lib/module/services/googleAuthService.js +1 -1
- package/lib/module/services/hingeDataExtractor.js +1 -1
- package/lib/module/services/hingeDataService.js +1 -1
- package/lib/module/services/imageCompressionService.js +1 -1
- package/lib/module/services/instagramDataExtractor.js +1 -1
- package/lib/module/services/instagramDataService.js +1 -1
- package/lib/module/services/jwtStorageService.js +1 -1
- package/lib/module/services/linkedinDOMExtractor.js +1 -1
- package/lib/module/services/linkedinProfileService.js +1 -1
- package/lib/module/services/linkedinScrapingService.js +1 -1
- package/lib/module/services/llmDataStorage.js +1 -1
- package/lib/module/services/mobileTrainingService.js +1 -1
- package/lib/module/services/oauthService.js +20 -20
- package/lib/module/services/pinEncryptionService.js +1 -1
- package/lib/module/services/pinStorageUtils.js +1 -1
- package/lib/module/services/platformAuthService.js +1 -1
- package/lib/module/services/sephoraDataExtractor.js +1 -1
- package/lib/module/services/sephoraDataService.js +1 -1
- package/lib/module/services/storageService.js +1 -1
- package/lib/module/services/telegramDataExtractor.js +1 -1
- package/lib/module/services/telegramDataService.js +1 -1
- package/lib/module/services/trainingApiHelpers.js +1 -1
- package/lib/module/services/userConnectionsService.js +1 -1
- package/lib/module/services/youtubeMigrationService.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/types.js +1 -1
- package/lib/module/utils/Portal.js +1 -1
- package/lib/module/utils/api.js +1 -1
- package/lib/module/utils/assetRegistry.js +1 -1
- package/lib/module/utils/auth.js +1 -1
- package/lib/module/utils/connectorTests.js +1 -1
- package/lib/module/utils/crypto.js +1 -1
- package/lib/module/utils/debugHelper.js +1 -1
- package/lib/module/utils/encryption.js +1 -1
- package/lib/module/utils/eventUtils.js +1 -1
- package/lib/module/utils/haptics.js +1 -1
- package/lib/module/utils/networkDiagnostics.js +1 -1
- package/lib/module/utils/onairosApi.js +1 -1
- package/lib/module/utils/programmaticFlow.js +1 -1
- package/lib/module/utils/retryHelper.js +1 -1
- package/lib/module/utils/secureStorage.js +1 -1
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/module/utils/webviewScripts/claude.js +1 -1
- package/lib/module/utils/webviewScripts/hinge.js +1 -1
- package/lib/module/utils/webviewScripts/index.js +1 -1
- package/lib/module/utils/webviewScripts/instagram.js +1 -1
- package/lib/module/utils/webviewScripts/linkedin.js +1 -1
- package/lib/module/utils/webviewScripts/sephora.js +1 -1
- package/lib/module/utils/webviewScripts/telegram.js +1 -1
- package/package.json +172 -172
|
@@ -51,24 +51,24 @@ const OAUTH_CONFIGS = {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
/**
|
|
55
|
-
* Generate a state value for OAuth to prevent CSRF attacks
|
|
54
|
+
/**
|
|
55
|
+
* Generate a state value for OAuth to prevent CSRF attacks
|
|
56
56
|
*/
|
|
57
57
|
const generateState = () => {
|
|
58
58
|
const randomValue = Math.random().toString(36).substring(2, 15);
|
|
59
59
|
return (0, _crypto.sha256)(randomValue).substring(0, 10);
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
* Initialize OAuth service handlers and listeners
|
|
62
|
+
/**
|
|
63
|
+
* Initialize OAuth service handlers and listeners
|
|
64
64
|
*/
|
|
65
65
|
const initializeOAuthService = () => {
|
|
66
66
|
// Set up deep linking handlers for OAuth redirects
|
|
67
67
|
_reactNative.Linking.addEventListener('url', handleDeepLink);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
/**
|
|
71
|
-
* Clean up OAuth service handlers and listeners
|
|
70
|
+
/**
|
|
71
|
+
* Clean up OAuth service handlers and listeners
|
|
72
72
|
*/
|
|
73
73
|
exports.initializeOAuthService = initializeOAuthService;
|
|
74
74
|
const cleanupOAuthService = () => {
|
|
@@ -85,8 +85,8 @@ let currentOAuthPlatform = null;
|
|
|
85
85
|
let currentOAuthResolve = null;
|
|
86
86
|
let currentOAuthReject = null;
|
|
87
87
|
|
|
88
|
-
/**
|
|
89
|
-
* Handle deep link callbacks from OAuth providers
|
|
88
|
+
/**
|
|
89
|
+
* Handle deep link callbacks from OAuth providers
|
|
90
90
|
*/
|
|
91
91
|
const handleDeepLink = async event => {
|
|
92
92
|
try {
|
|
@@ -154,8 +154,8 @@ const handleDeepLink = async event => {
|
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
/**
|
|
158
|
-
* Exchange OAuth authorization code for access token
|
|
157
|
+
/**
|
|
158
|
+
* Exchange OAuth authorization code for access token
|
|
159
159
|
*/
|
|
160
160
|
const exchangeCodeForToken = async (platform, code) => {
|
|
161
161
|
try {
|
|
@@ -200,8 +200,8 @@ const exchangeCodeForToken = async (platform, code) => {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
/**
|
|
204
|
-
* Fetch user information from the connected platform
|
|
203
|
+
/**
|
|
204
|
+
* Fetch user information from the connected platform
|
|
205
205
|
*/
|
|
206
206
|
const fetchUserInfo = async (platform, accessToken) => {
|
|
207
207
|
try {
|
|
@@ -266,8 +266,8 @@ const fetchUserInfo = async (platform, accessToken) => {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
/**
|
|
270
|
-
* Connect to a platform using OAuth
|
|
269
|
+
/**
|
|
270
|
+
* Connect to a platform using OAuth
|
|
271
271
|
*/
|
|
272
272
|
const connectPlatform = platform => {
|
|
273
273
|
return new Promise((resolve, reject) => {
|
|
@@ -302,8 +302,8 @@ const connectPlatform = platform => {
|
|
|
302
302
|
});
|
|
303
303
|
};
|
|
304
304
|
|
|
305
|
-
/**
|
|
306
|
-
* Disconnect from a platform
|
|
305
|
+
/**
|
|
306
|
+
* Disconnect from a platform
|
|
307
307
|
*/
|
|
308
308
|
exports.connectPlatform = connectPlatform;
|
|
309
309
|
const disconnectPlatform = async (platform, credentials) => {
|
|
@@ -334,8 +334,8 @@ const disconnectPlatform = async (platform, credentials) => {
|
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
/**
|
|
338
|
-
* Store platform connection data in user credentials
|
|
337
|
+
/**
|
|
338
|
+
* Store platform connection data in user credentials
|
|
339
339
|
*/
|
|
340
340
|
exports.disconnectPlatform = disconnectPlatform;
|
|
341
341
|
const storePlatformConnection = async (platform, connectionData, credentials) => {
|
|
@@ -376,8 +376,8 @@ const storePlatformConnection = async (platform, connectionData, credentials) =>
|
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
378
|
exports.storePlatformConnection = storePlatformConnection;
|
|
379
|
-
/**
|
|
380
|
-
* Service for handling OAuth connections to various platforms
|
|
379
|
+
/**
|
|
380
|
+
* Service for handling OAuth connections to various platforms
|
|
381
381
|
*/
|
|
382
382
|
const OAuthService = exports.OAuthService = {
|
|
383
383
|
initializeOAuthService,
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require('react-native-crypto-js')
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
Object[
|
|
8
|
+
Object[_0x5569(0x0)](exports,_0x5569(0x1),{'value':!![]}),exports[_0x5569(0x2)]=exports[_0x5569(0x3)]=exports[_0x5569(0x4)]=exports[_0x5569(0x5)]=void 0x0;var _pinStorageUtils=__ONAIROS_REQ_FUNC__(0x0);const CryptoJS=__ONAIROS_REQ_FUNC__(0x1),ENCRYPTION_KEY=_0x5569(0x6),encryptPin=_0x11411f=>{const _0x21172b={'pfNFK':_0x5569(0x7)};try{const _0x368e9e=CryptoJS[_0x5569(0x8)][_0x5569(0x9)](_0x11411f,ENCRYPTION_KEY)[_0x5569(0xa)]();return console[_0x5569(0xb)](_0x21172b[_0x5569(0xc)]),_0x368e9e;}catch(_0x107ad2){console['error']('❌\x20Error\x20encrypting\x20PIN:',_0x107ad2);throw _0x107ad2;}};exports[_0x5569(0x4)]=encryptPin;const decryptPin=_0x4dd10c=>{const _0x2ff538={'RVJQL':_0x5569(0xd),'ojihf':_0x5569(0xe)};try{const _0x186cb7=CryptoJS[_0x5569(0x8)][_0x5569(0xf)](_0x4dd10c,ENCRYPTION_KEY),_0x5b7d3d=_0x186cb7[_0x5569(0xa)](CryptoJS[_0x5569(0x10)][_0x5569(0x11)]);return console[_0x5569(0xb)](_0x2ff538['RVJQL']),_0x5b7d3d;}catch(_0x127709){console[_0x5569(0x12)](_0x2ff538[_0x5569(0x13)],_0x127709);throw _0x127709;}};exports[_0x5569(0x5)]=decryptPin;function _0x5569(_0x51ad3b,_0x5569ec){_0x51ad3b=_0x51ad3b-0x0;const _0x338abf=_0x51ad();let _0x426442=_0x338abf[_0x51ad3b];return _0x426442;}const getEncryptedPinForAPI=async()=>{const _0x4d09f9={'vDnrd':_0x5569(0x14),'qgzhJ':_0x5569(0x15),'NweGE':function(_0x2fbe27,_0x3775fc){return _0x2fbe27!==_0x3775fc;},'JCbdm':_0x5569(0x16)};try{if(_0x4d09f9['NweGE'](_0x4d09f9[_0x5569(0x17)],'jTpAQ'))try{const _0x595488=(0x0,_0x55caad[_0x5569(0x18)])();if(!_0x595488)return _0x38ea09[_0x5569(0xb)](_0x5569(0x19)),null;const _0x432995=_0x1aac65(_0x595488);return _0x598a24[_0x5569(0xb)](_0x4d09f9[_0x5569(0x1a)]),_0x432995;}catch(_0x174918){return _0x1e2b94[_0x5569(0x12)](_0x4d09f9[_0x5569(0x1b)],_0x174918),null;}else{const _0x5ad515=(0x0,_pinStorageUtils[_0x5569(0x18)])();if(!_0x5ad515)return console[_0x5569(0xb)](_0x5569(0x19)),null;const _0x22229d=encryptPin(_0x5ad515);return console[_0x5569(0xb)](_0x4d09f9[_0x5569(0x1a)]),_0x22229d;}}catch(_0x50ac88){return console[_0x5569(0x12)](_0x5569(0x15),_0x50ac88),null;}};exports[_0x5569(0x3)]=getEncryptedPinForAPI;const hashPin=_0x2fef03=>{const _0x1490b4={'FkEdX':_0x5569(0x15),'zQNrW':_0x5569(0x1c),'PBuaS':'🔒\x20PIN\x20hashed\x20successfully','FtJtu':_0x5569(0x1d)};try{if(_0x1490b4[_0x5569(0x1e)]!==_0x1490b4[_0x5569(0x1e)])return _0xe9dac5[_0x5569(0x12)](_0x1490b4[_0x5569(0x1f)],_0x2641dc),null;else{const _0x89495f=CryptoJS['SHA256'](_0x2fef03+ENCRYPTION_KEY)[_0x5569(0xa)]();return console['log'](_0x1490b4[_0x5569(0x20)]),_0x89495f;}}catch(_0x51f185){console[_0x5569(0x12)](_0x1490b4[_0x5569(0x21)],_0x51f185);throw _0x51f185;}};exports[_0x5569(0x2)]=hashPin;function _0x51ad(){const _0x172ad0=['defineProperty','__esModule','hashPin','getEncryptedPinForAPI','encryptPin','decryptPin','onairos-pin-encryption-key-2024','🔐\x20PIN\x20encrypted\x20successfully','AES','encrypt','toString','log','pfNFK','🔓\x20PIN\x20decrypted\x20successfully','❌\x20Error\x20decrypting\x20PIN:','decrypt','enc','Utf8','error','ojihf','✅\x20PIN\x20encrypted\x20for\x20API\x20transmission','❌\x20Error\x20getting\x20encrypted\x20PIN\x20for\x20API:','jTpAQ','JCbdm','getTemporaryPin','⚠️\x20No\x20temporary\x20PIN\x20available\x20for\x20encryption','vDnrd','qgzhJ','Zevdv','❌\x20Error\x20hashing\x20PIN:','zQNrW','FkEdX','PBuaS','FtJtu'];_0x51ad=function(){return _0x172ad0;};return _0x51ad();}
|
|
@@ -4,4 +4,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
4
4
|
require("./biometricPinService")
|
|
5
5
|
];
|
|
6
6
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
-
Object[
|
|
7
|
+
Object[_0x5717(0x0)](exports,_0x5717(0x1),{'value':!![]}),exports[_0x5717(0x2)]=exports[_0x5717(0x3)]=exports[_0x5717(0x4)]=exports[_0x5717(0x5)]=exports[_0x5717(0x6)]=exports[_0x5717(0x7)]=exports['clearStoredPin']=void 0x0;var _biometricPinService=__ONAIROS_REQ_FUNC__(0x0);const getStoredPinForTraining=async()=>{const _0x13a599={'PdYdi':_0x5717(0x8),'VoUnW':_0x5717(0x9),'fVpUK':_0x5717(0xa),'SRjhS':_0x5717(0xb),'zleMm':function(_0x1f44c4,_0xe40751){return _0x1f44c4===_0xe40751;},'PqvhY':_0x5717(0xc),'yvTFX':_0x5717(0xd),'najBG':'AvZIT'};try{console[_0x5717(0xe)](_0x13a599['fVpUK']);const _0x29ab67=await _biometricPinService[_0x5717(0xf)][_0x5717(0x10)]();if(!_0x29ab67)return console[_0x5717(0xe)](_0x13a599[_0x5717(0x11)]),null;const _0x3766f5=await _biometricPinService[_0x5717(0xf)]['retrievePinWithBiometric']();return _0x3766f5?(console['log'](_0x5717(0x8)),_0x3766f5):_0x13a599['zleMm'](_0x13a599[_0x5717(0x12)],_0x13a599['PqvhY'])?(console[_0x5717(0xe)](_0x13a599[_0x5717(0x13)]),null):(_0x1740c6[_0x5717(0xe)](_0x13a599[_0x5717(0x14)]),_0x3c400e);}catch(_0xd1a5a3){return _0x13a599['najBG']===_0x5717(0x15)?(_0x36e863[_0x5717(0x16)](_0x13a599['VoUnW'],_0x1bae66),null):(console[_0x5717(0x16)](_0x13a599[_0x5717(0x17)],_0xd1a5a3),null);}};exports[_0x5717(0x5)]=getStoredPinForTraining;const hasStoredPin=async()=>{const _0x998627={'UOUFB':function(_0xeffc60,_0x50c630){return _0xeffc60===_0x50c630;},'LzAVM':'ZvIAP','QlgFi':_0x5717(0x18)};try{return await _biometricPinService[_0x5717(0xf)][_0x5717(0x10)]();}catch(_0x407aa7){return _0x998627[_0x5717(0x19)](_0x998627['LzAVM'],'ZvIAP')?(console[_0x5717(0x16)](_0x998627[_0x5717(0x1a)],_0x407aa7),![]):_0xdb25c5;}};exports['hasStoredPin']=hasStoredPin;const clearStoredPin=async()=>{const _0x2e449c={'RiRJN':function(_0x55bcef,_0x23bbbb){return _0x55bcef!==_0x23bbbb;},'LkqBA':_0x5717(0x1b),'RlOLZ':_0x5717(0x1c)};try{return console[_0x5717(0xe)](_0x5717(0x1d)),await _biometricPinService[_0x5717(0xf)]['removePinFromStorage']();}catch(_0x149737){if(_0x2e449c['RiRJN'](_0x2e449c[_0x5717(0x1e)],_0x2e449c[_0x5717(0x1e)]))_0x21bf51=null,_0x1b8ecf[_0x5717(0xe)](_0x5717(0x1f));else return console[_0x5717(0x16)](_0x2e449c['RlOLZ'],_0x149737),![];}};function _0x5717(_0x3e01e2,_0x57176e){_0x3e01e2=_0x3e01e2-0x0;const _0x5594d7=_0x3e01();let _0x5bc724=_0x5594d7[_0x3e01e2];return _0x5bc724;}exports['clearStoredPin']=clearStoredPin;const getPinForTraining=async _0x28a76c=>{const _0x31b8e0={'dyRBy':_0x5717(0xd),'PAowg':function(_0x527266,_0x6da9ab){return _0x527266===_0x6da9ab;},'vsLgh':_0x5717(0x20),'lLZyd':function(_0x845bd4){return _0x845bd4();}};if(_0x28a76c)return _0x31b8e0[_0x5717(0x21)](_0x31b8e0[_0x5717(0x22)],_0x5717(0x20))?(console[_0x5717(0xe)](_0x5717(0x23)),_0x28a76c):(_0x522e87['log'](_0x31b8e0['dyRBy']),null);return await _0x31b8e0[_0x5717(0x24)](getStoredPinForTraining);};exports[_0x5717(0x6)]=getPinForTraining;let temporaryPin=null;const setTemporaryPin=_0x27eff7=>{temporaryPin=_0x27eff7,console['log'](_0x5717(0x25));};function _0x3e01(){const _0x293589=['defineProperty','__esModule','setTemporaryPin','hasStoredPin','getTemporaryPin','getStoredPinForTraining','getPinForTraining','clearTemporaryPin','✅\x20PIN\x20retrieved\x20successfully\x20for\x20training','❌\x20Error\x20retrieving\x20stored\x20PIN:','🔓\x20Retrieving\x20stored\x20PIN\x20for\x20training...','⚠️\x20No\x20PIN\x20stored\x20in\x20secure\x20storage','ReMDc','❌\x20Failed\x20to\x20retrieve\x20PIN\x20or\x20user\x20cancelled\x20authentication','log','biometricPinService','isPinStored','SRjhS','PqvhY','yvTFX','PdYdi','SLFDX','error','VoUnW','❌\x20Error\x20checking\x20PIN\x20storage:','UOUFB','QlgFi','EkwyL','❌\x20Error\x20clearing\x20stored\x20PIN:','🗑️\x20Clearing\x20stored\x20PIN...','LkqBA','🗑️\x20Temporary\x20PIN\x20cleared','bAWXz','PAowg','vsLgh','📝\x20Using\x20temporary\x20PIN\x20for\x20training','lLZyd','📝\x20Temporary\x20PIN\x20set\x20for\x20training','AnNoS'];_0x3e01=function(){return _0x293589;};return _0x3e01();}exports[_0x5717(0x2)]=setTemporaryPin;const getTemporaryPin=()=>{return temporaryPin;};exports[_0x5717(0x4)]=getTemporaryPin;const clearTemporaryPin=()=>{const _0x1e7b4e={'AnNoS':_0x5717(0x1f)};temporaryPin=null,console['log'](_0x1e7b4e[_0x5717(0x26)]);};exports[_0x5717(0x7)]=clearTemporaryPin;
|