browserstack-node-sdk 1.63.4 → 1.63.6
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0x115a(){const _0x3a9f28=['1090548rZvVBe','statusCode','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','MVhoK','/packages/cli/get-all-grids','stringify','bstackUsername','all-grids','NOfYq','uuid','log','help','215keHWUq','requestId','knAcT','push','clusterName','9014400SNLZQi','grids','exit','ERROR','usage','table','queued','rAaTJ','5834304VVshTk','uVkVh','20949860GPTxFc','boolean','cVqeC','\x0aFound\x20the\x20following\x20grids:\x0a','server-error','YToTz','91ceqyog','parse','unknown-error','command','sptNI','hNqFQ','argv','cluster-name','grid-name','uScbR','init-not-called','list-grids-called','allGrids','wAsav','status','rwNfs','PbYGn','nUmIE','129342bNMvQE','pFrwa','handler','INFO','ftner','running','got','username','description','../../config/constants','error','body','forEach','https://','bstackAccesskey','377420hKvVJq','grid-id','6HbeToC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list','njqUx','GQDxS','Browserstack','xxkTO','type','HXoLv','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','57828MVzBIj','stack','unauthorised','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20list\x20resources!\x20Error:\x20','nHpMm','name','existsSync','raJVO','desc','/packages/cli/get-grids','afTwM','password'];a15_0x115a=function(){return _0x3a9f28;};return a15_0x115a();}const a15_0x140651=a15_0x4466;function a15_0x4466(_0x5d1d3f,_0xc14194){const _0x115a0d=a15_0x115a();return a15_0x4466=function(_0x4466db,_0x3a72f8){_0x4466db=_0x4466db-0x75;let _0x366df7=_0x115a0d[_0x4466db];return _0x366df7;},a15_0x4466(_0x5d1d3f,_0xc14194);}(function(_0x32b25a,_0xe9a391){const _0x4e052b=a15_0x4466,_0x40bfd8=_0x32b25a();while(!![]){try{const _0x5eb68c=-parseInt(_0x4e052b(0x9d))/0x1+-parseInt(_0x4e052b(0x84))/0x2*(-parseInt(_0x4e052b(0x86))/0x3)+-parseInt(_0x4e052b(0x90))/0x4*(-parseInt(_0x4e052b(0xaa))/0x5)+-parseInt(_0x4e052b(0x75))/0x6*(-parseInt(_0x4e052b(0xbf))/0x7)+-parseInt(_0x4e052b(0xb7))/0x8+-parseInt(_0x4e052b(0xaf))/0x9+parseInt(_0x4e052b(0xb9))/0xa;if(_0x5eb68c===_0xe9a391)break;else _0x40bfd8['push'](_0x40bfd8['shift']());}catch(_0x2e0bee){_0x40bfd8['push'](_0x40bfd8['shift']());}}}(a15_0x115a,0x86f9e));const fs=require('fs'),got=require(a15_0x140651(0x7b)),{table}=require(a15_0x140651(0xb4)),{v4:uuidv4}=require(a15_0x140651(0xa7)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x140651(0x7e)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x140651(0xc2)]=a15_0x140651(0xb0),exports[a15_0x140651(0x99)]=a15_0x140651(0x93),exports['builder']=function(_0x3997fe){const _0x3e456e=a15_0x140651,_0x88067f={};_0x88067f[_0x3e456e(0xb6)]=_0x3e456e(0x8f),_0x88067f[_0x3e456e(0x79)]=_0x3e456e(0xba),_0x88067f[_0x3e456e(0xa6)]=_0x3e456e(0xa9);const _0x9cf02e=_0x88067f,_0x2961f4={};_0x2961f4[_0x3e456e(0x7d)]=_0x9cf02e['rAaTJ'],_0x2961f4[_0x3e456e(0x8d)]=_0x9cf02e[_0x3e456e(0x79)];const _0x1ecb4c={};return _0x1ecb4c[_0x3e456e(0xa5)]=_0x2961f4,_0x3997fe[_0x3e456e(0xb3)](HELP_HEADER_MESSAGE[_0x3e456e(0x88)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3e456e(0x9f)](_0x1ecb4c)[_0x3e456e(0xa9)](_0x9cf02e[_0x3e456e(0xa6)])[_0x3e456e(0xc5)];},exports[a15_0x140651(0x77)]=async function(_0x34855e){const _0x39efce=a15_0x140651,_0x298e13={'raJVO':function(_0x590d87){return _0x590d87();},'BYqgg':_0x39efce(0x87),'afTwM':function(_0x40f353,_0x7f826b,_0x27ceb3,_0x4b3a69,_0x7d1568,_0x50eb62,_0x5edec8){return _0x40f353(_0x7f826b,_0x27ceb3,_0x4b3a69,_0x7d1568,_0x50eb62,_0x5edec8);},'uScbR':_0x39efce(0xca),'GQDxS':_0x39efce(0xc9),'PbYGn':function(_0x4ed9b9){return _0x4ed9b9();},'knAcT':'GET','nUmIE':function(_0x575f4f,_0xc8edf9,_0x17ad76){return _0x575f4f(_0xc8edf9,_0x17ad76);},'YToTz':function(_0x558fd7,_0x25b8c3,_0xdd58f2,_0x57147c,_0x19fe29,_0x8a0da3,_0x2cbb47){return _0x558fd7(_0x25b8c3,_0xdd58f2,_0x57147c,_0x19fe29,_0x8a0da3,_0x2cbb47);},'dCcgR':function(_0x44951f,_0xabdfff){return _0x44951f!==_0xabdfff;},'eKNOP':function(_0x315dca,_0x520e09){return _0x315dca!==_0x520e09;},'xxkTO':function(_0x25ccd0,_0x1801cc){return _0x25ccd0===_0x1801cc;},'MVhoK':_0x39efce(0xbc),'UJGuG':_0x39efce(0x85),'hNqFQ':_0x39efce(0xc7),'rwNfs':_0x39efce(0xcd),'uVkVh':_0x39efce(0x7a),'njqUx':_0x39efce(0xb5),'nHpMm':_0x39efce(0xc6),'afCvI':function(_0x1b37e7,_0x272d08){return _0x1b37e7(_0x272d08);},'wAsav':function(_0x24dbf6,_0x4f6671){return _0x24dbf6===_0x4f6671;},'FnZiT':_0x39efce(0xa0),'sptNI':_0x39efce(0x92),'HXoLv':_0x39efce(0xbd),'cVqeC':function(_0x58650a,_0x511e72,_0x450183,_0x21921d,_0x1dd8ab,_0x36292f,_0x3d8fba){return _0x58650a(_0x511e72,_0x450183,_0x21921d,_0x1dd8ab,_0x36292f,_0x3d8fba);},'pFrwa':_0x39efce(0xc1)};try{global_registry[_0x39efce(0xab)]=_0x298e13[_0x39efce(0x98)](uuidv4);!fs[_0x39efce(0x97)](_0x298e13[_0x39efce(0x98)](getCredentialsPath))&&(console[_0x39efce(0x7f)](_0x298e13['BYqgg']),await _0x298e13['afTwM'](sendInstrumentationEvent,_0x34855e,_0x298e13[_0x39efce(0xc8)],messageTypes[_0x39efce(0xb2)],_0x298e13[_0x39efce(0x8a)],null,_0x34855e),process['exit'](0x1));const _0x69d1b9=JSON[_0x39efce(0xc0)](fs['readFileSync'](_0x298e13[_0x39efce(0xcf)](getCredentialsPath)));let _0x37d89c=_0x39efce(0x82)+AG_API_URL+_0x39efce(0x9a);_0x34855e[_0x39efce(0xcb)]&&(_0x37d89c=_0x39efce(0x82)+AG_API_URL+_0x39efce(0xa2));const _0x12088f={'method':_0x298e13[_0x39efce(0xac)],'headers':_0x298e13[_0x39efce(0xd0)](getAuthHeader,_0x69d1b9[_0x39efce(0x8b)]['username'],_0x69d1b9[_0x39efce(0x8b)]['password']),'throwHttpErrors':![]};global_registry[_0x39efce(0xa4)]=_0x69d1b9['Browserstack'][_0x39efce(0x7c)],global_registry[_0x39efce(0x83)]=_0x69d1b9[_0x39efce(0x8b)][_0x39efce(0x9c)],_0x298e13['YToTz'](sendInstrumentationEvent,_0x34855e,_0x298e13[_0x39efce(0xc8)],messageTypes[_0x39efce(0x78)],null,null,_0x34855e);const _0x714fa2=await _0x298e13[_0x39efce(0xd0)](got,_0x37d89c,_0x12088f);if(_0x298e13['dCcgR'](_0x714fa2,null)&&_0x298e13['eKNOP'](_0x714fa2,undefined)&&_0x298e13[_0x39efce(0x8c)](_0x714fa2[_0x39efce(0x9e)],0xc8)){const _0x3c32cd=JSON[_0x39efce(0xc0)](_0x714fa2[_0x39efce(0x80)]);console[_0x39efce(0xa8)](_0x298e13[_0x39efce(0xa1)]);const _0x1b2cd7=[];_0x1b2cd7['push']([_0x298e13['UJGuG'],_0x298e13[_0x39efce(0xc4)],_0x298e13[_0x39efce(0xce)],_0x298e13[_0x39efce(0xb8)],_0x298e13[_0x39efce(0x89)],_0x298e13[_0x39efce(0x95)]]),_0x3c32cd[_0x39efce(0x81)](_0x22c31d=>{const _0x4179e2=_0x39efce;_0x1b2cd7[_0x4179e2(0xad)]([_0x22c31d['id'],_0x22c31d[_0x4179e2(0x96)],_0x22c31d[_0x4179e2(0xcd)],_0x22c31d[_0x4179e2(0x7a)],_0x22c31d[_0x4179e2(0xb5)],_0x22c31d[_0x4179e2(0xae)]]);}),console[_0x39efce(0xa8)](_0x298e13['afCvI'](table,_0x1b2cd7)),process[_0x39efce(0xb1)](0x0);}_0x298e13[_0x39efce(0xcc)](_0x714fa2['statusCode'],0x191)&&(console['error'](_0x298e13['FnZiT']),await _0x298e13[_0x39efce(0xbe)](sendInstrumentationEvent,_0x34855e,_0x298e13['uScbR'],messageTypes[_0x39efce(0xb2)],_0x298e13[_0x39efce(0xc3)],null,_0x34855e),process[_0x39efce(0xb1)](0x1)),console[_0x39efce(0x7f)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x39efce(0xa3)](_0x714fa2)),await _0x298e13[_0x39efce(0x9b)](sendInstrumentationEvent,_0x34855e,_0x298e13[_0x39efce(0xc8)],messageTypes[_0x39efce(0xb2)],_0x298e13[_0x39efce(0x8e)],_0x714fa2,_0x34855e),process[_0x39efce(0xb1)](0x1);}catch(_0x3cf517){console[_0x39efce(0x7f)](_0x39efce(0x94)+_0x3cf517[_0x39efce(0x91)]),await _0x298e13[_0x39efce(0xbb)](sendInstrumentationEvent,_0x34855e,_0x298e13[_0x39efce(0xc8)],messageTypes['ERROR'],_0x298e13[_0x39efce(0x76)],_0x3cf517,_0x34855e),process[_0x39efce(0xb1)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x461f62=a16_0x5353;function a16_0x5353(_0x8ea3d5,_0x26e145){const _0x52d691=a16_0x52d6();return a16_0x5353=function(_0x53534b,_0x22f38d){_0x53534b=_0x53534b-0x119;let _0x4bfe55=_0x52d691[_0x53534b];return _0x4bfe55;},a16_0x5353(_0x8ea3d5,_0x26e145);}(function(_0x458207,_0x1d7f6f){const _0x2e0587=a16_0x5353,_0x103ad9=_0x458207();while(!![]){try{const _0x1ab663=-parseInt(_0x2e0587(0x11f))/0x1+parseInt(_0x2e0587(0x123))/0x2+-parseInt(_0x2e0587(0x132))/0x3+parseInt(_0x2e0587(0x120))/0x4+parseInt(_0x2e0587(0x129))/0x5*(-parseInt(_0x2e0587(0x11b))/0x6)+parseInt(_0x2e0587(0x119))/0x7*(parseInt(_0x2e0587(0x125))/0x8)+parseInt(_0x2e0587(0x12f))/0x9*(parseInt(_0x2e0587(0x131))/0xa);if(_0x1ab663===_0x1d7f6f)break;else _0x103ad9['push'](_0x103ad9['shift']());}catch(_0x207b72){_0x103ad9['push'](_0x103ad9['shift']());}}}(a16_0x52d6,0xdab9d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x461f62(0x121));exports[a16_0x461f62(0x128)]=a16_0x461f62(0x12b),exports[a16_0x461f62(0x122)]=a16_0x461f62(0x11e),exports[a16_0x461f62(0x11c)]=function(_0x138ed7){const _0x24f062=a16_0x461f62,_0xe674a6={};_0xe674a6['ijKmk']=_0x24f062(0x12a),_0xe674a6[_0x24f062(0x12c)]=_0x24f062(0x12e);const _0x2cb613=_0xe674a6;return _0x138ed7[_0x24f062(0x126)](HELP_HEADER_MESSAGE[_0x24f062(0x12d)])[_0x24f062(0x127)](HELP_FOOTER_MESSAGE)[_0x24f062(0x124)](_0x2cb613['ijKmk'])[_0x24f062(0x11a)]()[_0x24f062(0x130)]()[_0x24f062(0x11d)]()[_0x24f062(0x12e)](_0x2cb613[_0x24f062(0x12c)]);},exports['handler']=function(_0x12ce0b){};function a16_0x52d6(){const _0x5977f2=['294RsfivB','demandCommand','1884pSOrSU','builder','strict','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','248706qrpeic','2282320UkMEKS','../config/constants','desc','2814316nqVDfv','commandDir','79792PlWIFU','usage','epilogue','command','16325buFXXu','precheck_commands','pre-check','EqGoU','pre_check','help','8703WaGqRT','recommendCommands','1160zQdsXT','1017003qNpKWk'];a16_0x52d6=function(){return _0x5977f2;};return a16_0x52d6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x10a23b=a17_0x5932;(function(_0xef4b0d,_0x4a9bee){const _0x1052e7=a17_0x5932,_0x52b4f5=_0xef4b0d();while(!![]){try{const _0x37e534=parseInt(_0x1052e7(0x143))/0x1+-parseInt(_0x1052e7(0x1c7))/0x2*(parseInt(_0x1052e7(0x200))/0x3)+parseInt(_0x1052e7(0x223))/0x4*(-parseInt(_0x1052e7(0x1f4))/0x5)+-parseInt(_0x1052e7(0x1d7))/0x6*(parseInt(_0x1052e7(0x145))/0x7)+parseInt(_0x1052e7(0x1c4))/0x8*(-parseInt(_0x1052e7(0x20e))/0x9)+parseInt(_0x1052e7(0x1e1))/0xa+parseInt(_0x1052e7(0x1d1))/0xb;if(_0x37e534===_0x4a9bee)break;else _0x52b4f5['push'](_0x52b4f5['shift']());}catch(_0x1dbe0e){_0x52b4f5['push'](_0x52b4f5['shift']());}}}(a17_0x305d,0xa1abe));const fs=require('fs'),ws=require('ws'),got=require(a17_0x10a23b(0x13d)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x10a23b(0x153)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x10a23b(0x1df)),webSocketUtils=require(a17_0x10a23b(0x175)),{sendInstrumentationEvent}=require(a17_0x10a23b(0x1b5));function a17_0x5932(_0x1d8da7,_0xd1c83){const _0x305d80=a17_0x305d();return a17_0x5932=function(_0x593232,_0x2f6ab7){_0x593232=_0x593232-0x134;let _0xa1821c=_0x305d80[_0x593232];return _0xa1821c;},a17_0x5932(_0x1d8da7,_0xd1c83);}exports['command']=a17_0x10a23b(0x1ed),exports[a17_0x10a23b(0x142)]=a17_0x10a23b(0x168),exports[a17_0x10a23b(0x1da)]=function(_0x45fa90){const _0x4141e3=a17_0x10a23b,_0x4187ad={};_0x4187ad['PhEpv']=_0x4141e3(0x1e6),_0x4187ad[_0x4141e3(0x165)]=_0x4141e3(0x213),_0x4187ad[_0x4141e3(0x22e)]=_0x4141e3(0x195),_0x4187ad[_0x4141e3(0x19a)]=_0x4141e3(0x17e),_0x4187ad[_0x4141e3(0x22f)]=_0x4141e3(0x196),_0x4187ad[_0x4141e3(0x20f)]='help';const _0x1caf21=_0x4187ad,_0x44a7e7={};_0x44a7e7['description']=_0x1caf21[_0x4141e3(0x1f2)],_0x44a7e7[_0x4141e3(0x1bb)]=_0x1caf21[_0x4141e3(0x165)];const _0x52902f={};_0x52902f[_0x4141e3(0x17f)]=_0x1caf21['kDtFH'],_0x52902f['type']=_0x1caf21['qmRLX'];const _0x2e5262={};_0x2e5262[_0x4141e3(0x17f)]=_0x1caf21[_0x4141e3(0x19a)],_0x2e5262['type']=_0x1caf21[_0x4141e3(0x165)];const _0x4c76b3={};_0x4c76b3[_0x4141e3(0x17f)]=_0x1caf21[_0x4141e3(0x22f)],_0x4c76b3[_0x4141e3(0x1bb)]=_0x1caf21[_0x4141e3(0x165)];const _0x9714c8={};return _0x9714c8['cluster-name']=_0x44a7e7,_0x9714c8['cloud-provider']=_0x52902f,_0x9714c8[_0x4141e3(0x1a3)]=_0x2e5262,_0x9714c8['grid-profile']=_0x4c76b3,_0x45fa90[_0x4141e3(0x187)](HELP_HEADER_MESSAGE[_0x4141e3(0x205)])[_0x4141e3(0x207)](HELP_FOOTER_MESSAGE)[_0x4141e3(0x21d)](_0x9714c8)[_0x4141e3(0x16f)](_0x1caf21[_0x4141e3(0x20f)])[_0x4141e3(0x1b1)];};async function inputValidation(_0xba54e9,_0xbf7f42){const _0x319fa2=a17_0x10a23b,_0x1f7ea1={'USkrC':_0x319fa2(0x1a3),'itUjB':'is\x20already\x20present','ZxtzF':'will\x20be\x20created','IQJVU':_0x319fa2(0x1f8),'yNMIq':_0x319fa2(0x20c),'RkQYU':function(_0x587d2f,_0x8f5269){return _0x587d2f+_0x8f5269;},'ppMCg':_0x319fa2(0x229),'qQPDz':_0x319fa2(0x152),'xyiwh':function(_0x34e4ac,_0x16516c){return _0x34e4ac||_0x16516c;},'ipQJF':_0x319fa2(0x174),'TaFZA':'Error\x20Details:\x0a','UHgHL':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','muuxB':'error','nFziB':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','JtXAg':_0x319fa2(0x213),'sUENR':_0x319fa2(0x195),'dwydN':_0x319fa2(0x17e),'UluPi':_0x319fa2(0x196),'LkAoF':_0x319fa2(0x16f),'NgdOl':function(_0x602316,_0x1640b9){return _0x602316!==_0x1640b9;},'eLciu':_0x319fa2(0x198),'EClhz':_0x319fa2(0x22c),'PEjFr':_0x319fa2(0x135),'sZYjU':_0x319fa2(0x1b7),'Skvwu':function(_0x243a91,_0x51ab39){return _0x243a91!==_0x51ab39;},'OSBQQ':_0x319fa2(0x181),'gfAgl':function(_0x3388ff,_0x5cf967){return _0x3388ff!==_0x5cf967;},'kaFVA':'htAKE','NQSJc':function(_0x200b7f,_0x38e64a){return _0x200b7f>_0x38e64a;},'yjfuj':function(_0x28f227,_0xdd96f1){return _0x28f227===_0xdd96f1;},'LZYKf':_0x319fa2(0x19f),'hRFZv':_0x319fa2(0x20b),'GGSMj':function(_0x52791e,_0x146430,_0x4f14d3,_0x1cd874,_0x181dc6,_0x3f99e2,_0x516a3d,_0x51cf5a){return _0x52791e(_0x146430,_0x4f14d3,_0x1cd874,_0x181dc6,_0x3f99e2,_0x516a3d,_0x51cf5a);},'SgCBN':_0x319fa2(0x1f1),'DsHfh':_0x319fa2(0x184),'xglgF':function(_0x37248d,_0x6cfb0e){return _0x37248d!==_0x6cfb0e;},'ssIiF':_0x319fa2(0x1ef),'jXRUk':_0x319fa2(0x218),'iuUzZ':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','gTobQ':_0x319fa2(0x193),'CkSQS':'nulMM','zYKTc':function(_0x471417,_0x591059){return _0x471417!==_0x591059;},'ERhxG':'ZZCOJ','oPYho':_0x319fa2(0x163),'LNajY':_0x319fa2(0x19b),'rFMPl':function(_0x4da678,_0xa4802f,_0x80337f){return _0x4da678(_0xa4802f,_0x80337f);},'HWHgI':function(_0x5a3eba,_0x36f229,_0x4e14c9,_0x2fadbe,_0x3518d6,_0x4bd026){return _0x5a3eba(_0x36f229,_0x4e14c9,_0x2fadbe,_0x3518d6,_0x4bd026);},'BrPRB':_0x319fa2(0x16a),'anIVv':_0x319fa2(0x183),'iOonp':function(_0x38ce33,_0x137430){return _0x38ce33===_0x137430;},'grqcf':function(_0x10c982,_0x383c54){return _0x10c982!==_0x383c54;},'xCWVL':_0x319fa2(0x1f6),'OJINR':function(_0x55e847,_0x495c99){return _0x55e847(_0x495c99);},'DJjVh':function(_0xe009f7,_0x1fe6c1){return _0xe009f7!==_0x1fe6c1;},'qHWDG':'CJszP','HkyXm':_0x319fa2(0x221),'YTIfd':'pre-check-grid-profile-empty','zZZEo':function(_0x35faf6,_0x21e532){return _0x35faf6!==_0x21e532;},'sVEUL':'uCMLF','EIUXT':_0x319fa2(0x202),'TSKoC':function(_0x2fe01c,_0x190b88){return _0x2fe01c===_0x190b88;},'OOiSc':_0x319fa2(0x1b0),'EbZja':_0x319fa2(0x178),'Wmutu':_0x319fa2(0x20d),'YtcrC':function(_0x16a1c8,_0x26535b){return _0x16a1c8===_0x26535b;},'opSPM':_0x319fa2(0x173),'cybaf':function(_0x31ddec,_0x2a0e82){return _0x31ddec===_0x2a0e82;},'mvvVM':'kYbsY'};let _0x5db986;try{if(_0x1f7ea1[_0x319fa2(0x1a4)](_0x1f7ea1[_0x319fa2(0x1c5)],_0x1f7ea1[_0x319fa2(0x1c5)]))_0x14681a['push'](_0x1f7ea1[_0x319fa2(0x147)]);else{if(_0xba54e9[_0x319fa2(0x14d)]||_0xba54e9['cloudProvider']||_0xba54e9[_0x319fa2(0x1a3)]){if(_0x1f7ea1[_0x319fa2(0x1a4)](_0x1f7ea1['EClhz'],_0x1f7ea1[_0x319fa2(0x1b3)])){const _0x2f4cc=[];!_0xba54e9[_0x319fa2(0x14d)]&&(_0x1f7ea1[_0x319fa2(0x1a4)](_0x1f7ea1[_0x319fa2(0x1d8)],_0x1f7ea1['sZYjU'])?_0x3819d6+=_0x319fa2(0x233)+_0x41f850[_0x319fa2(0x14d)]+'\x20'+(_0x3a5e01?_0x1f7ea1['itUjB']:_0x1f7ea1[_0x319fa2(0x1fb)])+'\x0a\x0a':_0x2f4cc[_0x319fa2(0x169)](_0x1f7ea1[_0x319fa2(0x15d)]));;!_0xba54e9[_0x319fa2(0x1b6)]&&(_0x1f7ea1[_0x319fa2(0x225)](_0x1f7ea1[_0x319fa2(0x172)],_0x1f7ea1[_0x319fa2(0x172)])?_0x3da0a6[_0x319fa2(0x169)](_0x1f7ea1[_0x319fa2(0x15d)]):_0x2f4cc['push'](_0x1f7ea1[_0x319fa2(0x1bf)]));;!_0xba54e9[_0x319fa2(0x1a3)]&&(_0x1f7ea1['gfAgl'](_0x1f7ea1[_0x319fa2(0x148)],_0x1f7ea1[_0x319fa2(0x148)])?_0x372076[_0x319fa2(0x169)](_0x1f7ea1[_0x319fa2(0x1bf)]):_0x2f4cc['push'](_0x1f7ea1[_0x319fa2(0x147)]));;_0x1f7ea1['NQSJc'](_0x2f4cc[_0x319fa2(0x13f)],0x0)&&(_0x1f7ea1[_0x319fa2(0x1cd)](_0x1f7ea1['LZYKf'],_0x1f7ea1[_0x319fa2(0x1aa)])?_0x4691cf['exit'](0x1):(_0x5db986=_0x319fa2(0x222)+_0x2f4cc['join'](',\x20')+_0x319fa2(0x1fc),await _0x1f7ea1['GGSMj'](reportToGalactusAndSendToEDS,_0xba54e9,_0xbf7f42,_0x5db986,messageTypes[_0x319fa2(0x1d4)],_0x1f7ea1[_0x319fa2(0x227)],_0x1f7ea1['DsHfh'],_0x1f7ea1[_0x319fa2(0x1ad)]),logger['error'](_0x5db986),process[_0x319fa2(0x197)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x319fa2(0x21b)](_0xba54e9[_0x319fa2(0x1b6)][_0x319fa2(0x14a)]())&&(_0x1f7ea1[_0x319fa2(0x13b)](_0x1f7ea1[_0x319fa2(0x13e)],_0x1f7ea1['jXRUk'])?(_0x5db986=_0x1f7ea1[_0x319fa2(0x141)],await _0x1f7ea1[_0x319fa2(0x1af)](reportToGalactusAndSendToEDS,_0xba54e9,_0xbf7f42,_0x5db986,messageTypes[_0x319fa2(0x1d4)],_0x1f7ea1[_0x319fa2(0x227)],_0x1f7ea1[_0x319fa2(0x15b)],_0x1f7ea1[_0x319fa2(0x1ad)]),logger[_0x319fa2(0x190)](_0x5db986),!_0xba54e9[_0x319fa2(0x1b6)]&&(_0x1f7ea1[_0x319fa2(0x1cd)](_0x1f7ea1[_0x319fa2(0x22d)],_0x1f7ea1[_0x319fa2(0x22d)])?(logger[_0x319fa2(0x216)](_0x319fa2(0x160)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0xba54e9['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x319fa2(0x1f7)]):_0x34e018['error'](_0x319fa2(0x226)+_0x49620b[_0x319fa2(0x190)]['stack']))):_0x4f8998=_0x46402d),global_registry[_0x319fa2(0x14d)]=_0xba54e9[_0x319fa2(0x14d)],global_registry[_0x319fa2(0x1b6)]=_0xba54e9[_0x319fa2(0x1b6)],global_registry[_0x319fa2(0x138)]=_0xba54e9['region'];}else _0x56ff26[_0x319fa2(0x216)]('['+_0x44c7ec+_0x319fa2(0x212)+_0x4f5f73['status']+'\x20data\x20:\x20'+_0x3a2673[_0x319fa2(0x1ea)]+_0x319fa2(0x171)+_0x2d8887[_0x319fa2(0x190)]),_0x3d3c86['error']&&_0x5ea64a[_0x319fa2(0x190)](_0x319fa2(0x226)+_0x553e95[_0x319fa2(0x190)][_0x319fa2(0x199)]);}else{if(_0xba54e9['gridProfile']){if(_0x1f7ea1[_0x319fa2(0x18d)](_0x1f7ea1[_0x319fa2(0x139)],_0x1f7ea1['oPYho'])){global_registry['gridProfile']=_0xba54e9[_0x319fa2(0x203)],logger[_0x319fa2(0x149)](_0x319fa2(0x1de)+_0xba54e9[_0x319fa2(0x203)]);const _0x3c964d=_0x319fa2(0x22a)+AG_API_URL+_0x319fa2(0x177),_0x4f33f7={};_0x4f33f7[_0x319fa2(0x1e5)]=_0x1f7ea1['LNajY'],_0x4f33f7[_0x319fa2(0x201)]=global_registry[_0x319fa2(0x146)],_0x4f33f7[_0x319fa2(0x166)]=![];const _0x48b5e8=_0x4f33f7,_0x2f84f0=await _0x1f7ea1[_0x319fa2(0x215)](got,_0x3c964d,_0x48b5e8),_0x73ef3a=await _0x1f7ea1[_0x319fa2(0x1e3)](responseValidation,_0x2f84f0,_0x1f7ea1[_0x319fa2(0x16d)],_0x1f7ea1[_0x319fa2(0x14e)],_0xba54e9,_0xbf7f42);let _0x103e2e={};if(_0x1f7ea1[_0x319fa2(0x14c)](_0x73ef3a,0xc8)){if(_0x1f7ea1[_0x319fa2(0x21c)](_0x1f7ea1['xCWVL'],_0x1f7ea1[_0x319fa2(0x18a)]))_0x191466+=_0x319fa2(0x233)+_0x209339[_0x319fa2(0x14d)]+_0x319fa2(0x16b);else{const _0x1f0102=JSON[_0x319fa2(0x19c)](_0x2f84f0['body']),_0x48f791=_0x1f0102['find'](_0x5c5d15=>_0x5c5d15[_0x319fa2(0x224)]===_0xba54e9[_0x319fa2(0x203)])||null;if(_0x1f7ea1[_0x319fa2(0x192)](isUndefined,_0x48f791)){if(_0x1f7ea1[_0x319fa2(0x206)](_0x1f7ea1[_0x319fa2(0x1e7)],_0x1f7ea1[_0x319fa2(0x1bd)]))_0x5db986=_0x319fa2(0x1ce)+_0xba54e9[_0x319fa2(0x203)]+_0x319fa2(0x1db),await _0x1f7ea1[_0x319fa2(0x1af)](reportToGalactusAndSendToEDS,_0xba54e9,_0xbf7f42,_0x5db986,messageTypes['ERROR'],_0x1f7ea1[_0x319fa2(0x227)],_0x1f7ea1[_0x319fa2(0x1a5)],_0x1f7ea1[_0x319fa2(0x1ad)]),logger[_0x319fa2(0x190)](_0x5db986),process[_0x319fa2(0x197)](0x1);else{const {header:_0x1cbc5f,response:_0x84b70b}=_0x2698cf,{status:_0x574aa4,data:_0x5ed006,error:_0x290d78}=_0x84b70b;_0x5d33be+=_0x1cbc5f+'\x20#'+_0x1f7ea1[_0x319fa2(0x1ae)](_0x5a2c5f,0x1)+'\x0a',_0x5abb90+=_0x319fa2(0x16e)+(_0x574aa4?_0x1f7ea1[_0x319fa2(0x1f9)]:_0x1f7ea1[_0x319fa2(0x17a)])+'\x0a',_0x48d68c+='Message:\x20'+_0x1f7ea1['xyiwh'](_0x5ed006,_0x1f7ea1[_0x319fa2(0x1ab)])+'\x0a',_0x290d78&&(_0x47cd06+=_0x1f7ea1[_0x319fa2(0x136)],_0x5c3a2f+=_0x319fa2(0x1c9)+(_0x290d78[_0x319fa2(0x17b)]||_0x1f7ea1[_0x319fa2(0x1ab)])+'\x0a',_0x2241ed+=_0x319fa2(0x137)+(_0x290d78[_0x319fa2(0x1a7)]||_0x1f7ea1['ipQJF'])+'\x0a',_0x5ee8a5+=_0x319fa2(0x1fe)+(_0x290d78[_0x319fa2(0x199)]||_0x1f7ea1[_0x319fa2(0x1ab)])+'\x0a'),_0x46a8fb+='\x0a\x0a';}}else _0x1f7ea1['zZZEo'](_0x1f7ea1[_0x319fa2(0x15f)],_0x1f7ea1[_0x319fa2(0x1fd)])?_0x103e2e=_0x48f791:(_0xd38e04['error'](_0x1f7ea1[_0x319fa2(0x17d)]),_0x4d8b70[_0x319fa2(0x197)](0x1));}}else{if(_0x1f7ea1[_0x319fa2(0x232)](_0x1f7ea1[_0x319fa2(0x1c3)],_0x1f7ea1[_0x319fa2(0x1d3)])){const _0x179990={};_0x179990[_0x319fa2(0x1bb)]=_0x151c6f[_0x319fa2(0x1d9)],_0x179990['message']=_0x13faa2,_0x4af749[_0x319fa2(0x21e)](_0x459271,_0x179990,_0x1f7ea1[_0x319fa2(0x1ad)],!![]);}else process[_0x319fa2(0x197)](0x1);}const _0x8f008={};_0x8f008['type']=WS_EVENTS[_0x319fa2(0x1d9)],_0x8f008[_0x319fa2(0x17b)]=_0x1f7ea1[_0x319fa2(0x1ec)],webSocketUtils['sendEventToBackend'](_0xbf7f42,_0x8f008),global_registry[_0x319fa2(0x1b6)]=_0x103e2e[_0x319fa2(0x1b6)],global_registry[_0x319fa2(0x138)]=_0x103e2e[_0x319fa2(0x1a3)],global_registry[_0x319fa2(0x14d)]=_0x103e2e[_0x319fa2(0x14d)];}else _0x18b28d+=_0x1f7ea1[_0x319fa2(0x136)],_0x4f7f39+=_0x319fa2(0x1c9)+(_0x2a4b02[_0x319fa2(0x17b)]||_0x1f7ea1[_0x319fa2(0x1ab)])+'\x0a',_0x204781+=_0x319fa2(0x137)+(_0xcae6dd[_0x319fa2(0x1a7)]||_0x1f7ea1[_0x319fa2(0x1ab)])+'\x0a',_0x291909+=_0x319fa2(0x1fe)+(_0x429ae3[_0x319fa2(0x199)]||_0x1f7ea1[_0x319fa2(0x1ab)])+'\x0a';}else _0x1f7ea1[_0x319fa2(0x1bc)](_0x1f7ea1[_0x319fa2(0x18e)],_0x1f7ea1['opSPM'])?(logger[_0x319fa2(0x190)](_0x1f7ea1[_0x319fa2(0x17d)]),process['exit'](0x1)):_0x2fe088[_0x319fa2(0x216)](_0x319fa2(0x164)+_0x1586db['clusterName']+'`\x20already\x20exists');}}}catch(_0x514d6f){if(_0x1f7ea1[_0x319fa2(0x134)](_0x1f7ea1[_0x319fa2(0x179)],_0x1f7ea1['mvvVM']))_0x5db986=_0x319fa2(0x180)+_0x514d6f+':\x20'+_0x514d6f[_0x319fa2(0x199)],logger[_0x319fa2(0x190)](_0x5db986),await _0x1f7ea1['GGSMj'](reportToGalactusAndSendToEDS,_0xba54e9,_0xbf7f42,_0x5db986,messageTypes[_0x319fa2(0x1d4)],_0x1f7ea1[_0x319fa2(0x227)],_0x1f7ea1['gTobQ'],_0x1f7ea1['muuxB']),process[_0x319fa2(0x197)](0x1);else{const _0x581cda={};_0x581cda[_0x319fa2(0x17f)]=_0x1f7ea1[_0x319fa2(0x14b)],_0x581cda[_0x319fa2(0x1bb)]=_0x1f7ea1[_0x319fa2(0x1cb)];const _0x4a64ef={};_0x4a64ef[_0x319fa2(0x17f)]=_0x1f7ea1['sUENR'],_0x4a64ef[_0x319fa2(0x1bb)]=_0x1f7ea1[_0x319fa2(0x1cb)];const _0x50a949={};_0x50a949['description']=_0x1f7ea1['dwydN'],_0x50a949[_0x319fa2(0x1bb)]=_0x1f7ea1[_0x319fa2(0x1cb)];const _0x55ba14={};_0x55ba14[_0x319fa2(0x17f)]=_0x1f7ea1[_0x319fa2(0x16c)],_0x55ba14[_0x319fa2(0x1bb)]=_0x1f7ea1['JtXAg'];const _0x29f411={};return _0x29f411['cluster-name']=_0x581cda,_0x29f411[_0x319fa2(0x20c)]=_0x4a64ef,_0x29f411[_0x319fa2(0x1a3)]=_0x50a949,_0x29f411[_0x319fa2(0x183)]=_0x55ba14,_0x40e08f['usage'](_0x232aa7[_0x319fa2(0x205)])[_0x319fa2(0x207)](_0x5360e5)[_0x319fa2(0x21d)](_0x29f411)[_0x319fa2(0x16f)](_0x1f7ea1[_0x319fa2(0x21a)])[_0x319fa2(0x1b1)];}}}function printResponse(_0x33b441,_0x7263b7){const _0x297e4f=a17_0x10a23b,_0x16c677={};_0x16c677[_0x297e4f(0x22b)]=function(_0x389577,_0xc62fd7){return _0x389577===_0xc62fd7;},_0x16c677[_0x297e4f(0x217)]=_0x297e4f(0x170),_0x16c677[_0x297e4f(0x19d)]=_0x297e4f(0x159);const _0xd94d07=_0x16c677;logger['info']('['+_0x33b441+_0x297e4f(0x212)+_0x7263b7[_0x297e4f(0x140)]+'\x20data\x20:\x20'+_0x7263b7[_0x297e4f(0x1ea)]+_0x297e4f(0x171)+_0x7263b7[_0x297e4f(0x190)]),_0x7263b7[_0x297e4f(0x190)]&&(_0xd94d07[_0x297e4f(0x22b)](_0xd94d07[_0x297e4f(0x217)],_0xd94d07[_0x297e4f(0x19d)])?(_0x4cdb51[_0x297e4f(0x216)](_0x297e4f(0x160)+_0x25c03c[_0x297e4f(0x1f7)]+'\x20'),_0x2fba6b['cloudProvider']=_0x331093['CLOUD_PROVIDER']):logger[_0x297e4f(0x190)](_0x297e4f(0x226)+_0x7263b7[_0x297e4f(0x190)]['stack']));}async function generateReport(_0x142c69,_0x57f652){const _0x57e3d9=a17_0x10a23b,_0x2704ab={'bUEHO':function(_0x3e3cbb,_0x7ee4a5){return _0x3e3cbb+_0x7ee4a5;},'ogUrW':_0x57e3d9(0x229),'TkSuZ':_0x57e3d9(0x152),'xTFZZ':function(_0x232bf6,_0x229389){return _0x232bf6||_0x229389;},'uOpPF':_0x57e3d9(0x174),'ONzgE':'Error\x20Details:\x0a','yAUCg':_0x57e3d9(0x1f3),'ajsAo':function(_0x1c1af1,_0x4d9948){return _0x1c1af1!=_0x4d9948;},'DvBvv':'is\x20already\x20present','EhNOH':_0x57e3d9(0x1fa),'scyFv':function(_0x514ab2){return _0x514ab2();}};let _0x338c34=_0x57e3d9(0x1ff)+global_registry[_0x57e3d9(0x1b6)]+_0x57e3d9(0x1d0);return _0x142c69['forEach']((_0x390467,_0x1913d0)=>{const _0x28cf1b=_0x57e3d9,{header:_0xdf889b,response:_0x3bb113}=_0x390467,{status:_0x54b651,data:_0x42ccac,error:_0x29e1b0}=_0x3bb113;_0x338c34+=_0xdf889b+'\x20#'+_0x2704ab['bUEHO'](_0x1913d0,0x1)+'\x0a',_0x338c34+='Status:\x20'+(_0x54b651?_0x2704ab[_0x28cf1b(0x1dc)]:_0x2704ab[_0x28cf1b(0x1b8)])+'\x0a',_0x338c34+=_0x28cf1b(0x1ee)+_0x2704ab[_0x28cf1b(0x1b4)](_0x42ccac,_0x2704ab[_0x28cf1b(0x211)])+'\x0a',_0x29e1b0&&(_0x338c34+=_0x2704ab[_0x28cf1b(0x1f5)],_0x338c34+='\x20\x20Message:\x20'+(_0x29e1b0[_0x28cf1b(0x17b)]||_0x2704ab[_0x28cf1b(0x211)])+'\x0a',_0x338c34+=_0x28cf1b(0x137)+(_0x29e1b0['code']||_0x2704ab['uOpPF'])+'\x0a',_0x338c34+='\x20\x20Stack:\x20'+(_0x29e1b0['stack']||_0x2704ab['uOpPF'])+'\x0a'),_0x338c34+='\x0a\x0a';}),_0x338c34+=_0x2704ab[_0x57e3d9(0x1d2)],_0x2704ab[_0x57e3d9(0x1a8)](_0x57f652,null)?_0x338c34+='Cluster\x20'+global_registry[_0x57e3d9(0x14d)]+'\x20'+(_0x57f652?_0x2704ab[_0x57e3d9(0x20a)]:_0x2704ab['EhNOH'])+'\x0a\x0a':_0x338c34+=_0x57e3d9(0x233)+global_registry[_0x57e3d9(0x14d)]+_0x57e3d9(0x16b),_0x338c34+=_0x2704ab[_0x57e3d9(0x1a0)](getSystemMetaData),_0x338c34;}function a17_0x305d(){const _0x56a75d=['DvBvv','rVswb','cloud-provider','Grid\x20profile\x20fetched\x20for\x20pre-check','5724LXICry','ZFbEB','credential-not-found','uOpPF',']\x20status\x20:\x20','string','stack\x20trace\x20','rFMPl','info','TVjev','dquQU','bstackAccesskey','LkAoF','includes','grqcf','options','sendEventToBackend','KgfZI','TLSv1_2_client_method','knpJU','Missing\x20required\x20arguments:\x20','8fAJjQu','name','Skvwu','error\x20stack\x20:\x20','SgCBN','pre-check-failed','Success','https://','xijZV','jKNuz','CkSQS','kDtFH','MgKvw','WebSocket','\x20region\x20-\x20','TSKoC','Cluster\x20','cybaf','cGmeN','TaFZA','\x20\x20Code:\x20','clusterRegion','ERhxG','Tool\x20Installed','xglgF','username','got','ssIiF','length','status','iuUzZ','desc','495780laaYAz','ZtAHR','1841eubBTq','authHeader','USkrC','kaFVA','debug','toLowerCase','nFziB','iOonp','clusterName','anIVv','`\x20is\x20present\x20in\x20region\x20`','uOnBh','getUTCMinutes','Failure','../../utils/utilityMethods','INFO','isClusterPresent','toolInstalledResp','bstackUsername','thIuv','LgUCl','response','gTobQ','header','IQJVU','Failed\x20in\x20pre-check!\x20Error:\x20','sVEUL','Setting\x20cloud\x20provider\x20as\x20','checkAccess','log/report_','QNowa','Cluster\x20`','qmRLX','throwHttpErrors','getUTCHours','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','push','pre-check','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','UluPi','BrPRB','Status:\x20','help','qzDuw','\x20error\x20:\x20','OSBQQ','BQLda','N/A','../../utils/webSocketUtils','stringify','/packages/cli/get-all-grid-profiles','HuNUB','mvvVM','qQPDz','message','DQfgD','UHgHL','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','description','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','jiqow','utf-8','grid-profile','pre-check-cluster-args-not-passed','UZKoX','password','usage','cluster-check-failed-','delay','xCWVL','User\x20Access','bWcVd','zYKTc','opSPM','accessResp','error','wqGrp','OJINR','cloud-provider-not-supported','isCliToolInstalled','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','exit','WHpKC','stack','BVhlt','GET','parse','olWCw','requestId','yIQGg','scyFv','4|3|2|1|0','DoUHV','region','NgdOl','YTIfd','qPWxk','code','ajsAo','replace','hRFZv','ipQJF','ZQKhP','muuxB','RkQYU','GGSMj','oHshC','argv','JMQat','PEjFr','xTFZZ','../../utils/instrumentationUtils','cloudProvider','WbsTS','TkSuZ','suhHZ','`\x20,error\x20:\x20','type','YtcrC','HkyXm','getUTCFullYear','yNMIq','EOobH','unable\x20to\x20verify\x20if\x20cluster\x20`','`\x20already\x20exists','OOiSc','6376EvHdHZ','eLciu','SSL\x20Configured','8086SOTwfK','init','\x20\x20Message:\x20','NjXhH','JtXAg','<UsernamePlaceholder>','yjfuj','Invalid\x20input.\x20grid\x20profiles:\x20','OIYsZ','\x20===\x0a\x0a','15039596WXggTv','yAUCg','EbZja','ERROR','existsSync','getUTCMonth','23298ykvhRM','sZYjU','LOG','builder','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','ogUrW','connectionTimeout','grid\x20profile\x20flow\x20','../../cloudproviders/utils','getUTCDate','7916680sqkEqU','Whitelisted\x20browserstack','HWHgI','gNwli','method','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','qHWDG','WuTde','JRcPa','data','.txt','Wmutu','grid','Message:\x20','StNHm','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pre-check-grid-called','PhEpv','Cluster\x20details\x0a-----------------------\x0a','827345BtbyxJ','ONzgE','yVEyK','CLOUD_PROVIDER','cluster-name','ppMCg','will\x20be\x20created','ZxtzF','.\x20Please\x20provide\x20all\x20required\x20arguments.','EIUXT','\x20\x20Stack:\x20','===\x20Precheck\x20Report\x20-\x20','99nXiRBU','headers','mFmAe','gridProfile','BmDXp','pre_check','DJjVh','epilogue','handler','Browserstack'];a17_0x305d=function(){return _0x56a75d;};return a17_0x305d();};exports[a17_0x10a23b(0x208)]=async function(_0x25125c){const _0x51dfce=a17_0x10a23b,_0x3d8638={'JRcPa':function(_0x516e2f){return _0x516e2f();},'DQfgD':function(_0x2cff36){return _0x2cff36();},'OIYsZ':_0x51dfce(0x1f0),'oSQFk':function(_0x56daac,_0x5b4496,_0x4944ea,_0x367701,_0x1e8e8a,_0x4350be,_0x1af584,_0x365f7a){return _0x56daac(_0x5b4496,_0x4944ea,_0x367701,_0x1e8e8a,_0x4350be,_0x1af584,_0x365f7a);},'NjXhH':_0x51dfce(0x1f1),'PZORY':_0x51dfce(0x210),'UZKoX':'error','DoUHV':function(_0x9ca4fa,_0x1aa607,_0x205d8d,_0x59cdab,_0x186dc9,_0x13b5b3,_0x2eaec9){return _0x9ca4fa(_0x1aa607,_0x205d8d,_0x59cdab,_0x186dc9,_0x13b5b3,_0x2eaec9);},'JMQat':_0x51dfce(0x1cc),'NWFJN':'<PasswordPlaceholder>','bWcVd':function(_0x4f614f,_0x20451d,_0x109224){return _0x4f614f(_0x20451d,_0x109224);},'CwkQc':function(_0x51fce0,_0x1989ea,_0x20de00,_0x25cf59,_0x8b265b,_0x33a631,_0x2dd38e){return _0x51fce0(_0x1989ea,_0x20de00,_0x25cf59,_0x8b265b,_0x33a631,_0x2dd38e);},'MLhYm':'dummy-grid','gNwli':function(_0x30f75e,_0x52be6c,_0x26086b){return _0x30f75e(_0x52be6c,_0x26086b);},'suhHZ':_0x51dfce(0x156),'ZtAHR':_0x51dfce(0x1a1),'BmDXp':function(_0x29f719,_0x67d2ad,_0x454e86,_0x1904ac,_0x57f2eb,_0x2b364f,_0x6c27e8,_0x5344e1){return _0x29f719(_0x67d2ad,_0x454e86,_0x1904ac,_0x57f2eb,_0x2b364f,_0x6c27e8,_0x5344e1);},'qPWxk':_0x51dfce(0x18f),'EOobH':function(_0x3f098e){return _0x3f098e();},'KgfZI':function(_0x13b0e3,_0x15e3ac,_0x506e7f){return _0x13b0e3(_0x15e3ac,_0x506e7f);},'TxWif':'isTrialGridAccessible','wqGrp':function(_0x50da0a,_0x2803f3){return _0x50da0a(_0x2803f3);},'ZQKhP':_0x51dfce(0x220),'YWRPM':'isTls1_2_SUPPORTED','iSKuA':_0x51dfce(0x13a),'YvywO':_0x51dfce(0x18b),'FseSV':_0x51dfce(0x1e2),'uOnBh':_0x51dfce(0x1c6),'thIuv':function(_0x3e11fa,_0x448cc7){return _0x3e11fa+_0x448cc7;},'fdCXY':_0x51dfce(0x182),'WuTde':function(_0x1e88ee,_0x596d05,_0x3357e5,_0xd63706,_0x183fdf,_0x2c6fff,_0x392943){return _0x1e88ee(_0x596d05,_0x3357e5,_0xd63706,_0x183fdf,_0x2c6fff,_0x392943);},'SMHjs':_0x51dfce(0x228)};let _0x335b59,_0xdbe462;try{global_registry[_0x51dfce(0x19e)]=_0x3d8638[_0x51dfce(0x1e9)](uuidv4);!fs[_0x51dfce(0x1d5)](_0x3d8638['DQfgD'](getCredentialsPath))&&(_0xdbe462=_0x3d8638[_0x51dfce(0x1cf)],logger[_0x51dfce(0x190)](_0xdbe462),await _0x3d8638['oSQFk'](reportToGalactusAndSendToEDS,_0x25125c,_0x335b59,_0xdbe462,messageTypes['ERROR'],_0x3d8638[_0x51dfce(0x1ca)],_0x3d8638['PZORY'],_0x3d8638[_0x51dfce(0x185)]),process[_0x51dfce(0x197)](0x1));_0x3d8638[_0x51dfce(0x1a2)](sendInstrumentationEvent,_0x25125c,_0x3d8638[_0x51dfce(0x1ca)],messageTypes[_0x51dfce(0x154)],null,null,_0x25125c);const _0x21885b=JSON[_0x51dfce(0x19c)](fs['readFileSync'](_0x3d8638[_0x51dfce(0x17c)](getCredentialsPath)));global_registry[_0x51dfce(0x157)]=_0x21885b[_0x51dfce(0x209)][_0x51dfce(0x13c)],global_registry[_0x51dfce(0x219)]=_0x21885b[_0x51dfce(0x209)]['password'];const _0x586321=WS_ENDPOINT[_0x51dfce(0x1a9)](_0x3d8638[_0x51dfce(0x1b2)],_0x21885b[_0x51dfce(0x209)][_0x51dfce(0x13c)])[_0x51dfce(0x1a9)](_0x3d8638['NWFJN'],_0x21885b[_0x51dfce(0x209)][_0x51dfce(0x186)]),_0xbfea64={};_0xbfea64[_0x51dfce(0x230)]=ws,_0xbfea64[_0x51dfce(0x1dd)]=0x36ee80,_0x335b59=new ReconnectingWebSocket(_0x586321,[],_0xbfea64),global_registry[_0x51dfce(0x146)]=_0x3d8638[_0x51dfce(0x18c)](getAuthHeader,global_registry[_0x51dfce(0x157)],global_registry[_0x51dfce(0x219)]),await _0x3d8638[_0x51dfce(0x18c)](inputValidation,_0x25125c,_0x335b59),logger[_0x51dfce(0x216)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x51dfce(0x231)+global_registry[_0x51dfce(0x138)]);let _0x57134c=await _0x3d8638['CwkQc'](getCloudProviderObjectWithOutInit,global_registry[_0x51dfce(0x1b6)],global_registry[_0x51dfce(0x14d)],_0x3d8638['MLhYm'],_0x335b59,webSocketUtils,_0x25125c);const _0x39aede=await _0x57134c[_0x51dfce(0x194)]();_0x3d8638[_0x51dfce(0x1e4)](printResponse,_0x3d8638[_0x51dfce(0x1b9)],_0x39aede),_0x57134c=await _0x57134c[_0x51dfce(0x1c8)]();let _0xe87287=![];try{_0xe87287=await _0x57134c[_0x51dfce(0x155)]();}catch(_0x210557){const _0x500cf0=_0x3d8638[_0x51dfce(0x144)]['split']('|');let _0x2b9183=0x0;while(!![]){switch(_0x500cf0[_0x2b9183++]){case'0':await _0x3d8638[_0x51dfce(0x204)](reportToGalactusAndSendToEDS,_0x25125c,_0x335b59,_0xdbe462,messageTypes['ERROR'],_0x3d8638[_0x51dfce(0x1ca)],_0x51dfce(0x188)+global_registry[_0x51dfce(0x1b6)],_0x3d8638[_0x51dfce(0x185)]);continue;case'1':_0xdbe462+='\x0a'+JSON[_0x51dfce(0x176)](_0x210557[_0x51dfce(0x199)]);continue;case'2':logger[_0x51dfce(0x190)](_0xdbe462);continue;case'3':_0xe87287=null;continue;case'4':_0xdbe462=_0x51dfce(0x1c1)+global_registry[_0x51dfce(0x14d)]+_0x51dfce(0x14f)+global_registry['clusterRegion']+_0x51dfce(0x1ba)+_0x210557;continue;}break;}}_0xe87287&&logger['info'](_0x51dfce(0x164)+global_registry['clusterName']+_0x51dfce(0x1c2));const _0x530fd3=await _0x57134c[_0x51dfce(0x161)]();_0x3d8638[_0x51dfce(0x1e4)](printResponse,_0x3d8638[_0x51dfce(0x1a6)],_0x530fd3);const _0x1c542f=await _0x3d8638[_0x51dfce(0x1c0)](curlRequest);_0x3d8638[_0x51dfce(0x21f)](printResponse,_0x3d8638['TxWif'],_0x1c542f);const _0x21042a=await _0x3d8638[_0x51dfce(0x191)](isTlsSupported,_0x3d8638[_0x51dfce(0x1ac)]);_0x3d8638['KgfZI'](printResponse,_0x3d8638['YWRPM'],_0x21042a);const _0x343ad4={};_0x343ad4['header']=_0x3d8638['iSKuA'],_0x343ad4[_0x51dfce(0x15a)]=_0x39aede;const _0x5b2055={};_0x5b2055[_0x51dfce(0x15c)]=_0x3d8638['YvywO'],_0x5b2055[_0x51dfce(0x15a)]=_0x530fd3;const _0x2fe2b7={};_0x2fe2b7[_0x51dfce(0x15c)]=_0x3d8638['FseSV'],_0x2fe2b7[_0x51dfce(0x15a)]=_0x1c542f;const _0x54dc1d={};_0x54dc1d[_0x51dfce(0x15c)]=_0x3d8638[_0x51dfce(0x150)],_0x54dc1d['response']=_0x21042a;const _0x2a03ae=[_0x343ad4,_0x5b2055,_0x2fe2b7,_0x54dc1d],_0x2226d1=await _0x3d8638[_0x51dfce(0x18c)](generateReport,_0x2a03ae,_0xe87287),_0x1f64ad=new Date(),_0x2ae1b8=_0x1f64ad[_0x51dfce(0x1be)]()+'_'+_0x3d8638[_0x51dfce(0x158)](_0x1f64ad[_0x51dfce(0x1d6)](),0x1)+'_'+_0x1f64ad[_0x51dfce(0x1e0)]()+'_'+_0x1f64ad[_0x51dfce(0x167)]()+'_'+_0x1f64ad[_0x51dfce(0x151)](),_0x7206a1=_0x51dfce(0x162)+_0x2ae1b8+_0x51dfce(0x1eb);fs['writeFileSync'](_0x7206a1,_0x2226d1,_0x3d8638['fdCXY']),logger[_0x51dfce(0x216)]('Report\x20saved\x20in\x20'+_0x7206a1),process[_0x51dfce(0x197)](0x0);}catch(_0x39d825){let _0x5b8b6d=_0x51dfce(0x15e)+_0x39d825+'\x20';logger['error'](_0x5b8b6d),_0x5b8b6d+='\x0a'+JSON[_0x51dfce(0x176)](_0x39d825['stack']),logger[_0x51dfce(0x149)](_0x51dfce(0x214)+_0x39d825[_0x51dfce(0x199)]);if(_0x335b59){const _0x55ed09={};_0x55ed09['type']=WS_EVENTS['LOG'],_0x55ed09[_0x51dfce(0x17b)]=_0x5b8b6d,webSocketUtils['sendEventToBackend'](_0x335b59,_0x55ed09,_0x3d8638[_0x51dfce(0x185)],!![]);}await webSocketUtils[_0x51dfce(0x189)](0x7d0);const _0x5534f4={};_0x5534f4[_0x51dfce(0x190)]=_0x5b8b6d,await _0x3d8638[_0x51dfce(0x1e8)](sendInstrumentationEvent,_0x25125c,_0x3d8638[_0x51dfce(0x1ca)],messageTypes[_0x51dfce(0x1d4)],_0x3d8638['SMHjs'],_0x5534f4,_0x25125c),process[_0x51dfce(0x197)](0x1);}};
|
|
1
|
+
const a17_0x2ec702=a17_0x1379;(function(_0x168272,_0x5a72b6){const _0x3555fd=a17_0x1379,_0x13ff23=_0x168272();while(!![]){try{const _0x25c599=parseInt(_0x3555fd(0x267))/0x1+parseInt(_0x3555fd(0x22a))/0x2*(parseInt(_0x3555fd(0x248))/0x3)+parseInt(_0x3555fd(0x24d))/0x4*(parseInt(_0x3555fd(0x20b))/0x5)+parseInt(_0x3555fd(0x2b3))/0x6*(-parseInt(_0x3555fd(0x223))/0x7)+-parseInt(_0x3555fd(0x23b))/0x8*(-parseInt(_0x3555fd(0x2e7))/0x9)+parseInt(_0x3555fd(0x291))/0xa*(-parseInt(_0x3555fd(0x2a1))/0xb)+-parseInt(_0x3555fd(0x26d))/0xc*(parseInt(_0x3555fd(0x24f))/0xd);if(_0x25c599===_0x5a72b6)break;else _0x13ff23['push'](_0x13ff23['shift']());}catch(_0x19b1b4){_0x13ff23['push'](_0x13ff23['shift']());}}}(a17_0x2800,0xb9e63));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x2ec702(0x239)),ReconnectingWebSocket=require(a17_0x2ec702(0x27d)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x2ec702(0x2ba)),{logger}=require(a17_0x2ec702(0x20c)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x2ec702(0x286)),{sendInstrumentationEvent}=require(a17_0x2ec702(0x2c1));exports[a17_0x2ec702(0x2bb)]=a17_0x2ec702(0x202),exports['desc']=a17_0x2ec702(0x2b2),exports[a17_0x2ec702(0x298)]=function(_0x2bd5de){const _0x1797c5=a17_0x2ec702,_0x113d98={};_0x113d98[_0x1797c5(0x293)]=_0x1797c5(0x2ac),_0x113d98['MArAt']='string',_0x113d98[_0x1797c5(0x26a)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x113d98['AoZUq']=_0x1797c5(0x297),_0x113d98[_0x1797c5(0x234)]=_0x1797c5(0x277),_0x113d98[_0x1797c5(0x233)]=_0x1797c5(0x2a5);const _0x5ef6c0=_0x113d98,_0x5925a8={};_0x5925a8['description']=_0x5ef6c0[_0x1797c5(0x293)],_0x5925a8[_0x1797c5(0x26f)]=_0x5ef6c0['MArAt'];const _0x46bc36={};_0x46bc36['description']=_0x5ef6c0[_0x1797c5(0x26a)],_0x46bc36[_0x1797c5(0x26f)]=_0x5ef6c0['MArAt'];const _0x2e4e88={};_0x2e4e88[_0x1797c5(0x29a)]=_0x5ef6c0[_0x1797c5(0x2a2)],_0x2e4e88[_0x1797c5(0x26f)]=_0x5ef6c0[_0x1797c5(0x2b4)];const _0x356ea2={};_0x356ea2[_0x1797c5(0x29a)]=_0x5ef6c0[_0x1797c5(0x234)],_0x356ea2[_0x1797c5(0x26f)]=_0x5ef6c0['MArAt'];const _0x54bd0e={};return _0x54bd0e[_0x1797c5(0x2af)]=_0x5925a8,_0x54bd0e[_0x1797c5(0x29f)]=_0x46bc36,_0x54bd0e['region']=_0x2e4e88,_0x54bd0e['grid-profile']=_0x356ea2,_0x2bd5de[_0x1797c5(0x27a)](HELP_HEADER_MESSAGE[_0x1797c5(0x219)])[_0x1797c5(0x24a)](HELP_FOOTER_MESSAGE)['options'](_0x54bd0e)['help'](_0x5ef6c0['hleYx'])[_0x1797c5(0x261)];};function a17_0x1379(_0x5d9a75,_0x28e67c){const _0x2800d8=a17_0x2800();return a17_0x1379=function(_0x1379f0,_0x3c6704){_0x1379f0=_0x1379f0-0x1eb;let _0xc8f5fb=_0x2800d8[_0x1379f0];return _0xc8f5fb;},a17_0x1379(_0x5d9a75,_0x28e67c);}async function inputValidation(_0xc243f1,_0x24cc25){const _0x4a22a7=a17_0x2ec702,_0x246044={'wayxR':_0x4a22a7(0x29d),'ECpBV':_0x4a22a7(0x2d4),'JTdSY':function(_0x183367,_0x3877dc){return _0x183367+_0x3877dc;},'coaPR':_0x4a22a7(0x227),'WeLWb':_0x4a22a7(0x2d5),'jbJwh':function(_0x4ac4b3,_0x4281b7){return _0x4ac4b3||_0x4281b7;},'IiboY':'N/A','CqAXM':_0x4a22a7(0x23f),'ZXaJN':'cluster-name','lJZAp':_0x4a22a7(0x29f),'eMPQP':_0x4a22a7(0x21f),'MhwGg':_0x4a22a7(0x2ac),'SSBCS':'string','tZEsC':_0x4a22a7(0x224),'JKkvH':_0x4a22a7(0x297),'WUKRm':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','rkHNQ':'help','IylVE':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','yKeAF':_0x4a22a7(0x1fb),'qFwHZ':function(_0x4f1b23,_0x5b5802){return _0x4f1b23===_0x5b5802;},'AyVCr':_0x4a22a7(0x208),'rZUDR':function(_0x19553f,_0x36cada){return _0x19553f!==_0x36cada;},'AYpkP':_0x4a22a7(0x1f6),'dBAeh':_0x4a22a7(0x226),'oDcTU':_0x4a22a7(0x23c),'hlvAj':function(_0x39eaba,_0x2059b5){return _0x39eaba!==_0x2059b5;},'bvAtB':_0x4a22a7(0x2a7),'ypCXX':'gdRel','GscCZ':function(_0x338030,_0x41bbd5){return _0x338030===_0x41bbd5;},'vMTrQ':_0x4a22a7(0x278),'yrBzv':_0x4a22a7(0x26e),'NRrUd':function(_0x3f8278,_0xc836d4){return _0x3f8278>_0xc836d4;},'UygfE':function(_0x3c45c4,_0x25acad){return _0x3c45c4===_0x25acad;},'ubndE':'yzGlJ','XVFfV':function(_0x285772,_0x5d7d2f,_0x553091,_0x4eb05b,_0x1ba0fe,_0x2ee585,_0x2257d6,_0x29cb55){return _0x285772(_0x5d7d2f,_0x553091,_0x4eb05b,_0x1ba0fe,_0x2ee585,_0x2257d6,_0x29cb55);},'kZScU':_0x4a22a7(0x2da),'LfEed':'pre-check-cluster-args-not-passed','ErTqC':_0x4a22a7(0x2ea),'dntiX':_0x4a22a7(0x2b1),'UeWzj':_0x4a22a7(0x246),'Sjbth':function(_0x3c9b4a,_0x35a94d,_0x3136c9,_0x16a53b,_0x40a40e,_0x2356d1,_0x2ec2ce,_0x352e09){return _0x3c9b4a(_0x35a94d,_0x3136c9,_0x16a53b,_0x40a40e,_0x2356d1,_0x2ec2ce,_0x352e09);},'VNZFT':_0x4a22a7(0x271),'DAeyV':function(_0x20aa5c,_0x1d41f3){return _0x20aa5c===_0x1d41f3;},'zWfzT':_0x4a22a7(0x21c),'VlOku':_0x4a22a7(0x24e),'KBakd':function(_0x5d8544,_0x1d3e10){return _0x5d8544===_0x1d3e10;},'ZGrAN':_0x4a22a7(0x200),'vgiby':'GET','FYLUy':function(_0x326ab4,_0x206b0e,_0x88e938){return _0x326ab4(_0x206b0e,_0x88e938);},'XlUKg':function(_0x1c352b,_0x2cd13f,_0x309fcc,_0x3131d9,_0x50a7b6,_0x4df5c3){return _0x1c352b(_0x2cd13f,_0x309fcc,_0x3131d9,_0x50a7b6,_0x4df5c3);},'rfcpR':_0x4a22a7(0x28f),'AMCwY':_0x4a22a7(0x232),'dbcmQ':function(_0x4068ee,_0x2fa792){return _0x4068ee!==_0x2fa792;},'pdLnb':_0x4a22a7(0x20f),'hCPyW':_0x4a22a7(0x2c3),'oHYdi':function(_0x57f6f4,_0x355762){return _0x57f6f4(_0x355762);},'iexpG':function(_0x2b6eaa,_0x5da272){return _0x2b6eaa===_0x5da272;},'Nwsio':_0x4a22a7(0x25c),'dSNbE':_0x4a22a7(0x270),'GWOac':_0x4a22a7(0x1f5),'OpDWq':_0x4a22a7(0x282),'flzvb':_0x4a22a7(0x24b),'ANKIY':function(_0x2386e2,_0x4fa5e5){return _0x2386e2!==_0x4fa5e5;},'wZYCD':'VXKyL','mlBTp':_0x4a22a7(0x2d2),'iKyKf':_0x4a22a7(0x275),'wpIVR':_0x4a22a7(0x2a3),'OUCjL':function(_0x82a10,_0x4c9699){return _0x82a10===_0x4c9699;},'oZpRi':_0x4a22a7(0x2e5),'omDNi':'VLdaB'};let _0x40b1fe;try{if(_0x246044[_0x4a22a7(0x260)](_0x246044[_0x4a22a7(0x290)],_0x246044[_0x4a22a7(0x290)])){if(_0xc243f1[_0x4a22a7(0x295)]||_0xc243f1[_0x4a22a7(0x225)]||_0xc243f1[_0x4a22a7(0x1fb)]){if(_0x246044[_0x4a22a7(0x244)](_0x246044[_0x4a22a7(0x2e2)],_0x246044['AYpkP']))_0x5e921f=_0x2feb26;else{const _0xa7733e=[];!_0xc243f1[_0x4a22a7(0x295)]&&(_0x246044[_0x4a22a7(0x260)](_0x246044[_0x4a22a7(0x215)],_0x246044[_0x4a22a7(0x28a)])?_0x338c2f+=_0x4a22a7(0x1ee)+_0x51a470[_0x4a22a7(0x295)]+'\x20'+(_0x3305e3?_0x246044[_0x4a22a7(0x231)]:_0x246044[_0x4a22a7(0x228)])+'\x0a\x0a':_0xa7733e[_0x4a22a7(0x20e)](_0x246044[_0x4a22a7(0x285)]));;if(!_0xc243f1[_0x4a22a7(0x225)]){if(_0x246044['hlvAj'](_0x246044[_0x4a22a7(0x1ed)],_0x246044[_0x4a22a7(0x236)]))_0xa7733e[_0x4a22a7(0x20e)](_0x246044[_0x4a22a7(0x1f9)]);else{const {header:_0x20fbc3,response:_0x5dbf1f}=_0x388659,{status:_0x346e19,data:_0xc663c9,error:_0x3dff27}=_0x5dbf1f;_0x5dfb9c+=_0x20fbc3+'\x20#'+_0x246044[_0x4a22a7(0x283)](_0xb625e7,0x1)+'\x0a',_0x1aef47+='Status:\x20'+(_0x346e19?_0x246044[_0x4a22a7(0x2b0)]:_0x246044['WeLWb'])+'\x0a',_0x3c8a87+='Message:\x20'+_0x246044[_0x4a22a7(0x22b)](_0xc663c9,_0x246044[_0x4a22a7(0x1f2)])+'\x0a',_0x3dff27&&(_0x300bc4+=_0x246044[_0x4a22a7(0x2ab)],_0x1387f5+='\x20\x20Message:\x20'+(_0x3dff27[_0x4a22a7(0x266)]||_0x246044[_0x4a22a7(0x1f2)])+'\x0a',_0x3888dd+=_0x4a22a7(0x245)+(_0x3dff27['code']||_0x246044[_0x4a22a7(0x1f2)])+'\x0a',_0x20b0d6+='\x20\x20Stack:\x20'+(_0x3dff27[_0x4a22a7(0x2dd)]||_0x246044[_0x4a22a7(0x1f2)])+'\x0a'),_0x26c961+='\x0a\x0a';}};!_0xc243f1[_0x4a22a7(0x1fb)]&&(_0x246044[_0x4a22a7(0x2e6)](_0x246044[_0x4a22a7(0x241)],_0x246044[_0x4a22a7(0x2a6)])?(_0x5488c9[_0x4a22a7(0x21d)]('['+_0x18d67b+_0x4a22a7(0x272)+_0x4331f3[_0x4a22a7(0x2b8)]+_0x4a22a7(0x2cd)+_0x4dac12[_0x4a22a7(0x20a)]+_0x4a22a7(0x1fd)+_0x32a488[_0x4a22a7(0x21f)]),_0x205a5c[_0x4a22a7(0x21f)]&&_0x382196[_0x4a22a7(0x21f)]('error\x20stack\x20:\x20'+_0xed6e9a[_0x4a22a7(0x21f)][_0x4a22a7(0x2dd)])):_0xa7733e[_0x4a22a7(0x20e)](_0x246044[_0x4a22a7(0x2e9)]));;_0x246044[_0x4a22a7(0x210)](_0xa7733e['length'],0x0)&&(_0x246044[_0x4a22a7(0x292)](_0x246044[_0x4a22a7(0x22e)],_0x246044[_0x4a22a7(0x22e)])?(_0x40b1fe=_0x4a22a7(0x27b)+_0xa7733e['join'](',\x20')+_0x4a22a7(0x209),await _0x246044[_0x4a22a7(0x201)](reportToGalactusAndSendToEDS,_0xc243f1,_0x24cc25,_0x40b1fe,messageTypes[_0x4a22a7(0x2e8)],_0x246044['kZScU'],_0x246044[_0x4a22a7(0x29e)],_0x246044[_0x4a22a7(0x214)]),logger['error'](_0x40b1fe),process[_0x4a22a7(0x28e)](0x1)):_0x1ea959[_0x4a22a7(0x28e)](0x1)),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x4a22a7(0x22d)](_0xc243f1[_0x4a22a7(0x225)][_0x4a22a7(0x279)]())&&(_0x246044['UygfE'](_0x246044[_0x4a22a7(0x218)],_0x246044[_0x4a22a7(0x21b)])?_0x1ad327+=_0x4a22a7(0x1ee)+_0x475e86['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x40b1fe=_0x246044[_0x4a22a7(0x25f)],await _0x246044[_0x4a22a7(0x2b5)](reportToGalactusAndSendToEDS,_0xc243f1,_0x24cc25,_0x40b1fe,messageTypes[_0x4a22a7(0x2e8)],_0x246044[_0x4a22a7(0x29b)],_0x246044[_0x4a22a7(0x21a)],_0x246044[_0x4a22a7(0x214)]),logger['error'](_0x40b1fe),!_0xc243f1['cloudProvider']&&(_0x246044[_0x4a22a7(0x2bc)](_0x246044['zWfzT'],_0x246044['VlOku'])?(_0x45dcdb+=_0x246044[_0x4a22a7(0x2ab)],_0x29dab1+=_0x4a22a7(0x254)+(_0x24a47d[_0x4a22a7(0x266)]||_0x246044[_0x4a22a7(0x1f2)])+'\x0a',_0x1778c2+=_0x4a22a7(0x245)+(_0x50c667[_0x4a22a7(0x1eb)]||_0x246044[_0x4a22a7(0x1f2)])+'\x0a',_0x1815a8+='\x20\x20Stack:\x20'+(_0x4d15f0[_0x4a22a7(0x2dd)]||_0x246044[_0x4a22a7(0x1f2)])+'\x0a'):(logger[_0x4a22a7(0x21d)](_0x4a22a7(0x24c)+DEFAULT_CLUSTER_DETAILS[_0x4a22a7(0x2aa)]+'\x20'),_0xc243f1['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x4a22a7(0x2aa)])))),global_registry[_0x4a22a7(0x295)]=_0xc243f1[_0x4a22a7(0x295)],global_registry['cloudProvider']=_0xc243f1[_0x4a22a7(0x225)],global_registry[_0x4a22a7(0x2eb)]=_0xc243f1[_0x4a22a7(0x1fb)];}}else{if(_0xc243f1[_0x4a22a7(0x2e0)]){if(_0x246044[_0x4a22a7(0x213)](_0x246044['ZGrAN'],_0x246044['ZGrAN'])){global_registry[_0x4a22a7(0x2e0)]=_0xc243f1[_0x4a22a7(0x2e0)],logger['debug']('grid\x20profile\x20flow\x20'+_0xc243f1[_0x4a22a7(0x2e0)]);const _0x5644d8=_0x4a22a7(0x20d)+AG_API_URL+_0x4a22a7(0x212),_0x1c9d58={};_0x1c9d58[_0x4a22a7(0x256)]=_0x246044['vgiby'],_0x1c9d58['headers']=global_registry['authHeader'],_0x1c9d58['throwHttpErrors']=![];const _0x51f1d6=_0x1c9d58,_0x5903f5=await _0x246044[_0x4a22a7(0x203)](got,_0x5644d8,_0x51f1d6),_0xc2cafa=await _0x246044[_0x4a22a7(0x2c4)](responseValidation,_0x5903f5,_0x246044[_0x4a22a7(0x264)],_0x246044[_0x4a22a7(0x247)],_0xc243f1,_0x24cc25);let _0x5daec1={};if(_0x246044[_0x4a22a7(0x213)](_0xc2cafa,0xc8)){if(_0x246044[_0x4a22a7(0x2bd)](_0x246044[_0x4a22a7(0x25a)],_0x246044[_0x4a22a7(0x273)])){const _0x52988a=JSON['parse'](_0x5903f5[_0x4a22a7(0x259)]),_0x1f96d2=_0x52988a['find'](_0x54d5c5=>_0x54d5c5['name']===_0xc243f1['gridProfile'])||null;_0x246044[_0x4a22a7(0x2c6)](isUndefined,_0x1f96d2)?_0x246044[_0x4a22a7(0x237)](_0x246044['Nwsio'],_0x246044[_0x4a22a7(0x268)])?_0x1d904a[_0x4a22a7(0x20e)](_0x246044[_0x4a22a7(0x285)]):(_0x40b1fe=_0x4a22a7(0x249)+_0xc243f1[_0x4a22a7(0x2e0)]+_0x4a22a7(0x274),await _0x246044[_0x4a22a7(0x201)](reportToGalactusAndSendToEDS,_0xc243f1,_0x24cc25,_0x40b1fe,messageTypes[_0x4a22a7(0x2e8)],_0x246044[_0x4a22a7(0x29b)],_0x246044[_0x4a22a7(0x2c7)],_0x246044['eMPQP']),logger[_0x4a22a7(0x21f)](_0x40b1fe),process[_0x4a22a7(0x28e)](0x1)):_0x246044[_0x4a22a7(0x2bc)](_0x246044['OpDWq'],_0x246044[_0x4a22a7(0x25d)])?_0x5300e4['push'](_0x246044[_0x4a22a7(0x1f9)]):_0x5daec1=_0x1f96d2;}else _0x4e3aeb['error'](_0x4a22a7(0x2db)+_0x3a82b1[_0x4a22a7(0x21f)][_0x4a22a7(0x2dd)]);}else _0x246044[_0x4a22a7(0x2c5)](_0x246044['wZYCD'],_0x246044[_0x4a22a7(0x288)])?process['exit'](0x1):_0x1c71ea[_0x4a22a7(0x21d)](_0x4a22a7(0x2dc)+_0xc83c9d[_0x4a22a7(0x295)]+_0x4a22a7(0x280));const _0x419ae={};_0x419ae[_0x4a22a7(0x26f)]=WS_EVENTS[_0x4a22a7(0x2d6)],_0x419ae[_0x4a22a7(0x266)]=_0x246044[_0x4a22a7(0x276)],webSocketUtils['sendEventToBackend'](_0x24cc25,_0x419ae),global_registry[_0x4a22a7(0x225)]=_0x5daec1[_0x4a22a7(0x225)],global_registry[_0x4a22a7(0x2eb)]=_0x5daec1['region'],global_registry['clusterName']=_0x5daec1[_0x4a22a7(0x295)];}else{const _0x59305d={};_0x59305d['type']=_0x4cb9e1[_0x4a22a7(0x2d6)],_0x59305d[_0x4a22a7(0x266)]=_0x424ed0,_0x196e21[_0x4a22a7(0x281)](_0x133208,_0x59305d,_0x246044[_0x4a22a7(0x214)],!![]);}}else{if(_0x246044[_0x4a22a7(0x2c5)](_0x246044[_0x4a22a7(0x2ce)],_0x246044[_0x4a22a7(0x2ce)])){const _0x1b6beb={};_0x1b6beb[_0x4a22a7(0x29a)]=_0x246044[_0x4a22a7(0x1fc)],_0x1b6beb[_0x4a22a7(0x26f)]=_0x246044[_0x4a22a7(0x2b6)];const _0x24f2cf={};_0x24f2cf[_0x4a22a7(0x29a)]=_0x246044[_0x4a22a7(0x2c2)],_0x24f2cf[_0x4a22a7(0x26f)]=_0x246044['SSBCS'];const _0xb5e1d3={};_0xb5e1d3[_0x4a22a7(0x29a)]=_0x246044[_0x4a22a7(0x269)],_0xb5e1d3['type']=_0x246044[_0x4a22a7(0x2b6)];const _0xbce61e={};_0xbce61e['description']=_0x246044[_0x4a22a7(0x26b)],_0xbce61e[_0x4a22a7(0x26f)]=_0x246044['SSBCS'];const _0x475c17={};return _0x475c17['cluster-name']=_0x1b6beb,_0x475c17['cloud-provider']=_0x24f2cf,_0x475c17[_0x4a22a7(0x1fb)]=_0xb5e1d3,_0x475c17['grid-profile']=_0xbce61e,_0x3c4522['usage'](_0x760872[_0x4a22a7(0x219)])[_0x4a22a7(0x24a)](_0x1cce41)['options'](_0x475c17)[_0x4a22a7(0x2a5)](_0x246044[_0x4a22a7(0x263)])[_0x4a22a7(0x261)];}else logger[_0x4a22a7(0x21f)](_0x246044[_0x4a22a7(0x27e)]),process[_0x4a22a7(0x28e)](0x1);}}}else _0x48413b[_0x4a22a7(0x21f)](_0x246044[_0x4a22a7(0x27e)]),_0x260f1d['exit'](0x1);}catch(_0x955609){_0x246044[_0x4a22a7(0x2d9)](_0x246044[_0x4a22a7(0x250)],_0x246044[_0x4a22a7(0x1ff)])?_0x545ff8[_0x4a22a7(0x20e)](_0x246044[_0x4a22a7(0x2e9)]):(_0x40b1fe=_0x4a22a7(0x2a9)+_0x955609+':\x20'+_0x955609[_0x4a22a7(0x2dd)],logger[_0x4a22a7(0x21f)](_0x40b1fe),await _0x246044[_0x4a22a7(0x201)](reportToGalactusAndSendToEDS,_0xc243f1,_0x24cc25,_0x40b1fe,messageTypes[_0x4a22a7(0x2e8)],_0x246044[_0x4a22a7(0x29b)],_0x246044[_0x4a22a7(0x21a)],_0x246044[_0x4a22a7(0x214)]),process[_0x4a22a7(0x28e)](0x1));}}function printResponse(_0x2e7d62,_0x5f0c32){const _0x3f2cb9=a17_0x2ec702,_0x2729b9={};_0x2729b9[_0x3f2cb9(0x1fe)]=function(_0x4fdb82,_0x587436){return _0x4fdb82===_0x587436;},_0x2729b9[_0x3f2cb9(0x2cf)]=_0x3f2cb9(0x217);const _0x4b3389=_0x2729b9;logger[_0x3f2cb9(0x21d)]('['+_0x2e7d62+_0x3f2cb9(0x272)+_0x5f0c32[_0x3f2cb9(0x2b8)]+'\x20data\x20:\x20'+_0x5f0c32[_0x3f2cb9(0x20a)]+_0x3f2cb9(0x1fd)+_0x5f0c32['error']),_0x5f0c32[_0x3f2cb9(0x21f)]&&(_0x4b3389[_0x3f2cb9(0x1fe)](_0x4b3389[_0x3f2cb9(0x2cf)],_0x4b3389[_0x3f2cb9(0x2cf)])?logger['error'](_0x3f2cb9(0x2db)+_0x5f0c32[_0x3f2cb9(0x21f)][_0x3f2cb9(0x2dd)]):(_0x521c15[_0x3f2cb9(0x21d)](_0x3f2cb9(0x24c)+_0x4ebea8[_0x3f2cb9(0x2aa)]+'\x20'),_0x4e92b0['cloudProvider']=_0xec33af[_0x3f2cb9(0x2aa)]));}function a17_0x2800(){const _0x25ee6c=['Success','ECpBV','stringify','6ZrszyI','jbJwh','getUTCHours','includes','ubndE','INFO','log/report_','wayxR','grid-profile','hleYx','alVXj','Report\x20saved\x20in\x20','ypCXX','iexpG','nGwYg','uuid','parse','2593144CmNYYt','AZcuc','FBPXO','WebSocket','Error\x20Details:\x0a','bRzyF','vMTrQ','<PasswordPlaceholder>','getUTCMinutes','rZUDR','\x20\x20Code:\x20','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','AMCwY','1304517gQBdOw','Invalid\x20input.\x20grid\x20profiles:\x20','epilogue','rSfMD','Setting\x20cloud\x20provider\x20as\x20','477492gvpznJ','jnqbS','1547SnWieR','oZpRi','.txt','vyqcn','pMVID','\x20\x20Message:\x20','BWirs','method','split','getUTCDate','body','pdLnb','MYfcY','WFYnr','flzvb','mnFKB','UeWzj','qFwHZ','argv','WgqLn','rkHNQ','rfcpR','bstackUsername','message','777674lYSVzV','dSNbE','JKkvH','PgPID','WUKRm','isTls1_2_SUPPORTED','152436APEeFh','pmIsW','type','aFEOL','cloud-provider-not-supported',']\x20status\x20:\x20','hCPyW','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Grid\x20profile\x20fetched\x20for\x20pre-check','iKyKf','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','GhzqB','toLowerCase','usage','Missing\x20required\x20arguments:\x20','3|1|2|4|0','reconnecting-websocket','IylVE','connectionTimeout','`\x20already\x20exists','sendEventToBackend','POkYr','JTdSY','knmAS','ZXaJN','../../utils/webSocketUtils','Failed\x20in\x20pre-check!\x20Error:\x20','mlBTp','requestId','oDcTU','isCliToolInstalled','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','accessResp','exit','pre-check','AyVCr','2777340HhyiDd','UygfE','UHpWg','handler','clusterName','User\x20Access','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','builder','jwlMT','description','kZScU','\x20\x20Stack:\x20','is\x20already\x20present','LfEed','cloud-provider','SSL\x20Configured','22ErocKs','AoZUq','eFTIb','mnplL','help','yrBzv','snEqY','password','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','CLOUD_PROVIDER','CqAXM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','TvkKw','EAnvC','cluster-name','coaPR','FTeGS','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1398bMAWkY','MArAt','Sjbth','SSBCS','isClusterPresent','status','delay','../../utils/utilityMethods','command','DAeyV','dbcmQ','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','fJFxK','HpCMR','../../utils/instrumentationUtils','tZEsC','uUJDO','XlUKg','ANKIY','oHYdi','GWOac','scMGP','getUTCFullYear','yPnsi','existsSync','===\x20Precheck\x20Report\x20-\x20','\x20data\x20:\x20','wpIVR','kFtOM','checkAccess','PCuQb','FXnOj','qWMVs','will\x20be\x20created','Failure','LOG','response','unable\x20to\x20verify\x20if\x20cluster\x20`','OUCjL','pre-check-grid-called','error\x20stack\x20:\x20','Cluster\x20`','stack','Browserstack','getUTCMonth','gridProfile','Xvqjh','AYpkP','cluster-check-failed-','<UsernamePlaceholder>','RkVoc','GscCZ','18yzCIWj','ERROR','yKeAF','EelEg','clusterRegion','forEach','code','debug','bvAtB','Cluster\x20','toolInstalledResp','replace','Tool\x20Installed','IiboY','JTAwi','username','pre-check-grid-profile-empty','swkGn','rmKNu','credential-not-found','lJZAp','dcHab','region','MhwGg','\x20error\x20:\x20','wqexN','omDNi','MqYBl','XVFfV','grid','FYLUy','jZMYF','bstackAccesskey','`\x20,error\x20:\x20','Pthya','StYOL','.\x20Please\x20provide\x20all\x20required\x20arguments.','data','15SVdAal','../../config/logger','https://','push','JUbtM','NRrUd','header','/packages/cli/get-all-grid-profiles','KBakd','eMPQP','dBAeh','Qgtxe','cSosg','ErTqC','pre_check','VNZFT','dntiX','GiOwJ','info','TLSv1_2_client_method','error','init','authHeader','CLSSH','7812JnygUE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cloudProvider','NXjst'];a17_0x2800=function(){return _0x25ee6c;};return a17_0x2800();}async function generateReport(_0x5d6eb3,_0x10cd86){const _0x1a5254=a17_0x2ec702,_0x3dad81={'rmKNu':function(_0x1e0944,_0x4f72f9){return _0x1e0944+_0x4f72f9;},'nImFx':_0x1a5254(0x227),'QNurL':_0x1a5254(0x2d5),'PtMZY':function(_0x405356,_0x380f03){return _0x405356||_0x380f03;},'scMGP':'N/A','Qrofs':_0x1a5254(0x23f),'JTAwi':'Cluster\x20details\x0a-----------------------\x0a','MYfcY':function(_0x11c678,_0x5789dd){return _0x11c678!=_0x5789dd;},'EAnvC':_0x1a5254(0x29d),'mnplL':_0x1a5254(0x2d4),'FBPXO':function(_0x1a6a71){return _0x1a6a71();}};let _0x24aa1f=_0x1a5254(0x2cc)+global_registry[_0x1a5254(0x225)]+'\x20===\x0a\x0a';return _0x5d6eb3[_0x1a5254(0x2ec)]((_0x64ba16,_0x28bfb8)=>{const _0x2265e6=_0x1a5254,{header:_0x4b259b,response:_0x19bb89}=_0x64ba16,{status:_0x1d5006,data:_0xf7555b,error:_0x5ebcc3}=_0x19bb89;_0x24aa1f+=_0x4b259b+'\x20#'+_0x3dad81[_0x2265e6(0x1f7)](_0x28bfb8,0x1)+'\x0a',_0x24aa1f+='Status:\x20'+(_0x1d5006?_0x3dad81['nImFx']:_0x3dad81['QNurL'])+'\x0a',_0x24aa1f+='Message:\x20'+_0x3dad81['PtMZY'](_0xf7555b,_0x3dad81['scMGP'])+'\x0a',_0x5ebcc3&&(_0x24aa1f+=_0x3dad81['Qrofs'],_0x24aa1f+=_0x2265e6(0x254)+(_0x5ebcc3[_0x2265e6(0x266)]||_0x3dad81['scMGP'])+'\x0a',_0x24aa1f+=_0x2265e6(0x245)+(_0x5ebcc3[_0x2265e6(0x1eb)]||_0x3dad81[_0x2265e6(0x2c8)])+'\x0a',_0x24aa1f+=_0x2265e6(0x29c)+(_0x5ebcc3[_0x2265e6(0x2dd)]||_0x3dad81[_0x2265e6(0x2c8)])+'\x0a'),_0x24aa1f+='\x0a\x0a';}),_0x24aa1f+=_0x3dad81[_0x1a5254(0x1f3)],_0x3dad81[_0x1a5254(0x25b)](_0x10cd86,null)?_0x24aa1f+=_0x1a5254(0x1ee)+global_registry['clusterName']+'\x20'+(_0x10cd86?_0x3dad81[_0x1a5254(0x2ae)]:_0x3dad81[_0x1a5254(0x2a4)])+'\x0a\x0a':_0x24aa1f+=_0x1a5254(0x1ee)+global_registry[_0x1a5254(0x295)]+_0x1a5254(0x2be),_0x24aa1f+=_0x3dad81[_0x1a5254(0x23d)](getSystemMetaData),_0x24aa1f;};exports[a17_0x2ec702(0x294)]=async function(_0x345a5f){const _0x322467=a17_0x2ec702,_0x2dbf63={'pMVID':function(_0x4a0ce0){return _0x4a0ce0();},'dcHab':_0x322467(0x28c),'mnFKB':function(_0x9810af,_0x54c218,_0x550563,_0x3b5318,_0x5a45ce,_0x17b42d,_0x4a37bb,_0x645d2e){return _0x9810af(_0x54c218,_0x550563,_0x3b5318,_0x5a45ce,_0x17b42d,_0x4a37bb,_0x645d2e);},'Xvqjh':_0x322467(0x2da),'xRkiB':_0x322467(0x1f8),'knmAS':'error','PCuQb':function(_0x14dd2d,_0x34e73c,_0x2a98f5,_0x210cc2,_0x42f645,_0x1346b7,_0x3625d3){return _0x14dd2d(_0x34e73c,_0x2a98f5,_0x210cc2,_0x42f645,_0x1346b7,_0x3625d3);},'lRloC':_0x322467(0x2e4),'bRzyF':_0x322467(0x242),'jwlMT':function(_0x5004d3,_0x3a29da,_0x1763f9){return _0x5004d3(_0x3a29da,_0x1763f9);},'qPhgP':'dummy-grid','WgqLn':_0x322467(0x1ef),'CLSSH':_0x322467(0x27c),'fJFxK':function(_0x165cf7,_0x163199,_0x3b8f27){return _0x165cf7(_0x163199,_0x3b8f27);},'Vgwhm':_0x322467(0x28d),'vyqcn':function(_0xeb1b6c,_0x239a27,_0xe863e3){return _0xeb1b6c(_0x239a27,_0xe863e3);},'BWirs':'isTrialGridAccessible','jZMYF':function(_0x1f41c9,_0x5dc940){return _0x1f41c9(_0x5dc940);},'Qgtxe':_0x322467(0x21e),'nGwYg':_0x322467(0x26c),'SSkoC':_0x322467(0x1f1),'qWMVs':_0x322467(0x296),'TvkKw':'Whitelisted\x20browserstack','GiCXv':_0x322467(0x2a0),'bagPC':function(_0x1a3e4a,_0x2558d3){return _0x1a3e4a+_0x2558d3;},'yPnsi':'utf-8','HpCMR':function(_0x1468a7,_0x159577,_0x2027b5,_0x33204d,_0x26c4a5,_0x17357c,_0x4fe08e){return _0x1468a7(_0x159577,_0x2027b5,_0x33204d,_0x26c4a5,_0x17357c,_0x4fe08e);},'Pthya':'pre-check-failed'};let _0x54167d,_0x2eb684;try{global_registry[_0x322467(0x289)]=_0x2dbf63[_0x322467(0x253)](uuidv4);!fs[_0x322467(0x2cb)](_0x2dbf63[_0x322467(0x253)](getCredentialsPath))&&(_0x2eb684=_0x2dbf63[_0x322467(0x1fa)],logger['error'](_0x2eb684),await _0x2dbf63[_0x322467(0x25e)](reportToGalactusAndSendToEDS,_0x345a5f,_0x54167d,_0x2eb684,messageTypes[_0x322467(0x2e8)],_0x2dbf63[_0x322467(0x2e1)],_0x2dbf63['xRkiB'],_0x2dbf63[_0x322467(0x284)]),process[_0x322467(0x28e)](0x1));_0x2dbf63[_0x322467(0x2d1)](sendInstrumentationEvent,_0x345a5f,_0x2dbf63[_0x322467(0x2e1)],messageTypes[_0x322467(0x22f)],null,null,_0x345a5f);const _0x1beb38=JSON[_0x322467(0x23a)](fs['readFileSync'](_0x2dbf63['pMVID'](getCredentialsPath)));global_registry[_0x322467(0x265)]=_0x1beb38['Browserstack'][_0x322467(0x1f4)],global_registry[_0x322467(0x205)]=_0x1beb38[_0x322467(0x2de)][_0x322467(0x2a8)];const _0x344faf=WS_ENDPOINT[_0x322467(0x1f0)](_0x2dbf63['lRloC'],_0x1beb38[_0x322467(0x2de)][_0x322467(0x1f4)])['replace'](_0x2dbf63[_0x322467(0x240)],_0x1beb38[_0x322467(0x2de)][_0x322467(0x2a8)]),_0x4fba2a={};_0x4fba2a[_0x322467(0x23e)]=ws,_0x4fba2a[_0x322467(0x27f)]=0x36ee80,_0x54167d=new ReconnectingWebSocket(_0x344faf,[],_0x4fba2a),global_registry[_0x322467(0x221)]=_0x2dbf63[_0x322467(0x299)](getAuthHeader,global_registry[_0x322467(0x265)],global_registry['bstackAccesskey']),await _0x2dbf63[_0x322467(0x299)](inputValidation,_0x345a5f,_0x54167d),logger[_0x322467(0x21d)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x322467(0x2eb)]);let _0xb57a59=await _0x2dbf63[_0x322467(0x2d1)](getCloudProviderObjectWithOutInit,global_registry[_0x322467(0x225)],global_registry[_0x322467(0x295)],_0x2dbf63['qPhgP'],_0x54167d,webSocketUtils,_0x345a5f);const _0x15d9a3=await _0xb57a59[_0x322467(0x28b)]();_0x2dbf63['jwlMT'](printResponse,_0x2dbf63[_0x322467(0x262)],_0x15d9a3),_0xb57a59=await _0xb57a59[_0x322467(0x220)]();let _0x1a8445=![];try{_0x1a8445=await _0xb57a59[_0x322467(0x2b7)]();}catch(_0x5f20c4){const _0x2184af=_0x2dbf63[_0x322467(0x222)][_0x322467(0x257)]('|');let _0x2e8bb7=0x0;while(!![]){switch(_0x2184af[_0x2e8bb7++]){case'0':await _0x2dbf63['mnFKB'](reportToGalactusAndSendToEDS,_0x345a5f,_0x54167d,_0x2eb684,messageTypes[_0x322467(0x2e8)],_0x2dbf63[_0x322467(0x2e1)],_0x322467(0x2e3)+global_registry[_0x322467(0x225)],_0x2dbf63[_0x322467(0x284)]);continue;case'1':_0x1a8445=null;continue;case'2':logger[_0x322467(0x21f)](_0x2eb684);continue;case'3':_0x2eb684=_0x322467(0x2d8)+global_registry[_0x322467(0x295)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x322467(0x2eb)]+_0x322467(0x206)+_0x5f20c4;continue;case'4':_0x2eb684+='\x0a'+JSON['stringify'](_0x5f20c4['stack']);continue;}break;}}_0x1a8445&&logger[_0x322467(0x21d)](_0x322467(0x2dc)+global_registry[_0x322467(0x295)]+_0x322467(0x280));const _0x23e728=await _0xb57a59[_0x322467(0x2d0)]();_0x2dbf63[_0x322467(0x2bf)](printResponse,_0x2dbf63['Vgwhm'],_0x23e728);const _0x3ab40a=await _0x2dbf63['pMVID'](curlRequest);_0x2dbf63[_0x322467(0x252)](printResponse,_0x2dbf63[_0x322467(0x255)],_0x3ab40a);const _0x40a334=await _0x2dbf63[_0x322467(0x204)](isTlsSupported,_0x2dbf63[_0x322467(0x216)]);_0x2dbf63[_0x322467(0x252)](printResponse,_0x2dbf63[_0x322467(0x238)],_0x40a334);const _0x4a7317={};_0x4a7317[_0x322467(0x211)]=_0x2dbf63['SSkoC'],_0x4a7317[_0x322467(0x2d7)]=_0x15d9a3;const _0x4dc5ad={};_0x4dc5ad[_0x322467(0x211)]=_0x2dbf63[_0x322467(0x2d3)],_0x4dc5ad[_0x322467(0x2d7)]=_0x23e728;const _0x154b14={};_0x154b14['header']=_0x2dbf63[_0x322467(0x2ad)],_0x154b14[_0x322467(0x2d7)]=_0x3ab40a;const _0x12d4d0={};_0x12d4d0[_0x322467(0x211)]=_0x2dbf63['GiCXv'],_0x12d4d0[_0x322467(0x2d7)]=_0x40a334;const _0x11a183=[_0x4a7317,_0x4dc5ad,_0x154b14,_0x12d4d0],_0x46f889=await _0x2dbf63['vyqcn'](generateReport,_0x11a183,_0x1a8445),_0x4a6250=new Date(),_0x2855b8=_0x4a6250[_0x322467(0x2c9)]()+'_'+_0x2dbf63['bagPC'](_0x4a6250[_0x322467(0x2df)](),0x1)+'_'+_0x4a6250[_0x322467(0x258)]()+'_'+_0x4a6250[_0x322467(0x22c)]()+'_'+_0x4a6250[_0x322467(0x243)](),_0x398edf=_0x322467(0x230)+_0x2855b8+_0x322467(0x251);fs['writeFileSync'](_0x398edf,_0x46f889,_0x2dbf63[_0x322467(0x2ca)]),logger[_0x322467(0x21d)](_0x322467(0x235)+_0x398edf),process[_0x322467(0x28e)](0x0);}catch(_0x32f69f){let _0x2e5b83=_0x322467(0x287)+_0x32f69f+'\x20';logger[_0x322467(0x21f)](_0x2e5b83),_0x2e5b83+='\x0a'+JSON[_0x322467(0x229)](_0x32f69f['stack']),logger[_0x322467(0x1ec)]('stack\x20trace\x20'+_0x32f69f[_0x322467(0x2dd)]);if(_0x54167d){const _0x356739={};_0x356739[_0x322467(0x26f)]=WS_EVENTS[_0x322467(0x2d6)],_0x356739[_0x322467(0x266)]=_0x2e5b83,webSocketUtils[_0x322467(0x281)](_0x54167d,_0x356739,_0x2dbf63[_0x322467(0x284)],!![]);}await webSocketUtils[_0x322467(0x2b9)](0x7d0);const _0x1102dd={};_0x1102dd[_0x322467(0x21f)]=_0x2e5b83,await _0x2dbf63[_0x322467(0x2c0)](sendInstrumentationEvent,_0x345a5f,_0x2dbf63[_0x322467(0x2e1)],messageTypes[_0x322467(0x2e8)],_0x2dbf63[_0x322467(0x207)],_0x1102dd,_0x345a5f),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x39d44f=a18_0x43d8;(function(_0x3584c0,_0x2965cb){const _0x56fd2a=a18_0x43d8,_0x425b89=_0x3584c0();while(!![]){try{const _0x1fde11=-parseInt(_0x56fd2a(0x129))/0x1+-parseInt(_0x56fd2a(0x139))/0x2*(parseInt(_0x56fd2a(0x133))/0x3)+-parseInt(_0x56fd2a(0x13b))/0x4+-parseInt(_0x56fd2a(0x12a))/0x5*(parseInt(_0x56fd2a(0x127))/0x6)+-parseInt(_0x56fd2a(0x130))/0x7+parseInt(_0x56fd2a(0x12f))/0x8+parseInt(_0x56fd2a(0x13e))/0x9*(parseInt(_0x56fd2a(0x12e))/0xa);if(_0x1fde11===_0x2965cb)break;else _0x425b89['push'](_0x425b89['shift']());}catch(_0x332b3f){_0x425b89['push'](_0x425b89['shift']());}}}(a18_0x1f77,0xa400a));function a18_0x1f77(){const _0x5ad5c9=['411JaHtft','epilogue','command','usage','demandCommand','handler','1484DQYxfd','builder','3712272SOuDyU','commandDir','start_commands','31863960vJhjte','help','282KbKDaM','../config/constants','264162AVIROk','91935OdCClv','desc','strict','recommendCommands','10tzAXYB','2413136BfvLjg','7085785vuIdXX','dnaSN','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0x1f77=function(){return _0x5ad5c9;};return a18_0x1f77();}function a18_0x43d8(_0x5a1539,_0x61143b){const _0x1f7782=a18_0x1f77();return a18_0x43d8=function(_0x43d840,_0xcb49bf){_0x43d840=_0x43d840-0x127;let _0x35317a=_0x1f7782[_0x43d840];return _0x35317a;},a18_0x43d8(_0x5a1539,_0x61143b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x39d44f(0x128));exports[a18_0x39d44f(0x135)]='start',exports[a18_0x39d44f(0x12b)]=a18_0x39d44f(0x132),exports[a18_0x39d44f(0x13a)]=function(_0x37b49a){const _0x47f3ab=a18_0x39d44f,_0x5f26f2={};_0x5f26f2['SlBYV']=_0x47f3ab(0x13d),_0x5f26f2[_0x47f3ab(0x131)]=_0x47f3ab(0x13f);const _0x474e84=_0x5f26f2;return _0x37b49a[_0x47f3ab(0x136)](HELP_HEADER_MESSAGE['start'])[_0x47f3ab(0x134)](HELP_FOOTER_MESSAGE)[_0x47f3ab(0x13c)](_0x474e84['SlBYV'])[_0x47f3ab(0x137)]()[_0x47f3ab(0x12d)]()[_0x47f3ab(0x12c)]()[_0x47f3ab(0x13f)](_0x474e84[_0x47f3ab(0x131)]);},exports[a18_0x39d44f(0x138)]=function(_0x3354cb){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x2e9758=a19_0x3af3;(function(_0x4f73ac,_0xc1d24){const _0x12c581=a19_0x3af3,_0x568c5a=_0x4f73ac();while(!![]){try{const _0x3517a3=parseInt(_0x12c581(0x16f))/0x1+parseInt(_0x12c581(0x176))/0x2*(-parseInt(_0x12c581(0x18e))/0x3)+parseInt(_0x12c581(0x177))/0x4+parseInt(_0x12c581(0x194))/0x5+-parseInt(_0x12c581(0x182))/0x6+-parseInt(_0x12c581(0x157))/0x7+parseInt(_0x12c581(0x189))/0x8;if(_0x3517a3===_0xc1d24)break;else _0x568c5a['push'](_0x568c5a['shift']());}catch(_0x3236e0){_0x568c5a['push'](_0x568c5a['shift']());}}}(a19_0x336b,0x8d3cb));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2e9758(0x19b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2e9758(0x179)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x2e9758(0x161)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x2e9758(0x1a1)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x2e9758(0x165)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x3af3(_0x4976cc,_0x4080b6){const _0x336b71=a19_0x336b();return a19_0x3af3=function(_0x3af384,_0x32bcab){_0x3af384=_0x3af384-0x151;let _0xa843df=_0x336b71[_0x3af384];return _0xa843df;},a19_0x3af3(_0x4976cc,_0x4080b6);}function a19_0x336b(){const _0x4db44e=['ZYHwT','Browserstack','mmTok','ZbbUa','reconnecting-websocket','name','GJSxZ','INFO','clusterName','stringify','../../utils/instrumentationUtils','RZVRV','Start\x20an\x20existing\x20Automation\x20grid.','gvQjE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','ozdQv','epilogue','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','aOiVB','bstackAccesskey','info','username','4014381PCzlDx','invalid-grid-id','statusCode','init-not-called','HeLhO','KJWJe','ZbvfW','cloudProvider','IkGVH','WebSocket','../../utils/utilityMethods','command','clusterRegion','skip-tls-cert-verify','../../utils/createk8sClient','type','debug','<PasswordPlaceholder>','FjSiI','message','ERROR','jbeBs','gridId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1112430xOlLfX','desc','handler','ejrDa','parse','skipTlsCertVerify','grid','477886FnPVXs','2032912pIZxZf','boolean','../../config/constants','default','addListeners','options','connectionTimeout','body','RajXB','password','description','2999754wlFeZA','stack','unauthorised','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','GLcPt','region','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','390440CROgeK','DTboy','Skip\x20insecure\x20cert\x20verification.','readFileSync','grid-id','3ktoDhm','CNtxK','Starting\x20grid\x20','exit','error','help','1107145euqADZ','argv','start-grid-called'];a19_0x336b=function(){return _0x4db44e;};return a19_0x336b();}exports[a19_0x2e9758(0x162)]=a19_0x2e9758(0x175),exports[a19_0x2e9758(0x170)]=a19_0x2e9758(0x1a3),exports['builder']=function(_0xb4c022){const _0x34e477=a19_0x2e9758,_0x2da52a={};_0x2da52a[_0x34e477(0x1a4)]=_0x34e477(0x188),_0x2da52a[_0x34e477(0x169)]='string',_0x2da52a[_0x34e477(0x186)]=_0x34e477(0x18b),_0x2da52a[_0x34e477(0x1a7)]=_0x34e477(0x178),_0x2da52a['LfgMw']=_0x34e477(0x193);const _0x3d3a46=_0x2da52a,_0x5ab2={};_0x5ab2[_0x34e477(0x181)]=_0x3d3a46[_0x34e477(0x1a4)],_0x5ab2[_0x34e477(0x166)]=_0x3d3a46['FjSiI'];const _0x6b69f2={};_0x6b69f2[_0x34e477(0x181)]=_0x3d3a46[_0x34e477(0x186)],_0x6b69f2[_0x34e477(0x166)]=_0x3d3a46[_0x34e477(0x1a7)],_0x6b69f2[_0x34e477(0x17a)]=![];const _0x33b803={};return _0x33b803[_0x34e477(0x18d)]=_0x5ab2,_0x33b803[_0x34e477(0x164)]=_0x6b69f2,_0xb4c022['usage'](HELP_HEADER_MESSAGE['start'])[_0x34e477(0x1a8)](HELP_FOOTER_MESSAGE)[_0x34e477(0x17c)](_0x33b803)[_0x34e477(0x193)](_0x3d3a46['LfgMw'])[_0x34e477(0x195)];},exports[a19_0x2e9758(0x171)]=async function(_0x4548b6){const _0x412ec5=a19_0x2e9758,_0x334c19={'CNtxK':_0x412ec5(0x185),'KJWJe':function(_0x2eb101){return _0x2eb101();},'jbeBs':_0x412ec5(0x151),'ejrDa':function(_0x53fe88,_0x1a09f3,_0x376c9a,_0x189c66,_0x33aa6c,_0x5d8773,_0xb8bae4){return _0x53fe88(_0x1a09f3,_0x376c9a,_0x189c66,_0x33aa6c,_0x5d8773,_0xb8bae4);},'GJSxZ':_0x412ec5(0x196),'cjWAg':_0x412ec5(0x15a),'DTboy':'<UsernamePlaceholder>','IkGVH':_0x412ec5(0x168),'TpfIr':'Adding\x20Websocket\x20listeners','ZhoWt':function(_0x2e87a4,_0x22896d,_0x1e2b84,_0x4ae81d){return _0x2e87a4(_0x22896d,_0x1e2b84,_0x4ae81d);},'HeLhO':function(_0x389d9d,_0x8e1095,_0x1e1304,_0x53833f,_0x51c783,_0x1af2ca,_0x37d4b5){return _0x389d9d(_0x8e1095,_0x1e1304,_0x53833f,_0x51c783,_0x1af2ca,_0x37d4b5);},'ZbvfW':function(_0x1a205d,_0x4bc928,_0xa2c63a){return _0x1a205d(_0x4bc928,_0xa2c63a);},'aOiVB':'Grid\x20started','ZYHwT':function(_0x3bc5d4,_0x63ed6d){return _0x3bc5d4===_0x63ed6d;},'pszTB':_0x412ec5(0x1a5),'SkyZa':function(_0x35d35a,_0x8b1a09,_0x49f351,_0x23d668,_0x5cbc1e,_0x2a6fde,_0x1ab3da){return _0x35d35a(_0x8b1a09,_0x49f351,_0x23d668,_0x5cbc1e,_0x2a6fde,_0x1ab3da);},'RZVRV':_0x412ec5(0x184),'RajXB':function(_0x243a3f,_0x7cd77c){return _0x243a3f===_0x7cd77c;},'mmTok':function(_0x56efc1,_0x2a6946,_0x483c9e,_0x1b359e,_0x5cc92d,_0x2c1d3b,_0x5b032c){return _0x56efc1(_0x2a6946,_0x483c9e,_0x1b359e,_0x5cc92d,_0x2c1d3b,_0x5b032c);},'ZbbUa':_0x412ec5(0x158),'DSvsJ':function(_0x56b204,_0x18cccf,_0x334033,_0x1525c0,_0x31af12,_0x252536,_0x557d4b){return _0x56b204(_0x18cccf,_0x334033,_0x1525c0,_0x31af12,_0x252536,_0x557d4b);},'LgVAM':_0x412ec5(0x152)};let _0x308d4a;try{!_0x4548b6[_0x412ec5(0x16d)]&&(logger['error'](_0x334c19[_0x412ec5(0x18f)]),process[_0x412ec5(0x191)](0x1));!fs['existsSync'](_0x334c19[_0x412ec5(0x15c)](getCredentialsPath))&&(logger[_0x412ec5(0x192)](_0x334c19[_0x412ec5(0x16c)]),await _0x334c19[_0x412ec5(0x172)](sendInstrumentationEvent,_0x4548b6,_0x334c19[_0x412ec5(0x19d)],messageTypes['ERROR'],_0x334c19['cjWAg'],null,_0x4548b6),process[_0x412ec5(0x191)](0x1));logger['info'](_0x412ec5(0x190)+_0x4548b6[_0x412ec5(0x16d)]),await _0x334c19[_0x412ec5(0x172)](sendInstrumentationEvent,_0x4548b6,_0x334c19[_0x412ec5(0x19d)],messageTypes[_0x412ec5(0x19e)],null,null,_0x4548b6);const _0x3665a2=JSON[_0x412ec5(0x173)](fs[_0x412ec5(0x18c)](_0x334c19[_0x412ec5(0x15c)](getCredentialsPath)));global_registry['bstackUsername']=_0x3665a2[_0x412ec5(0x198)][_0x412ec5(0x156)],global_registry[_0x412ec5(0x154)]=_0x3665a2['Browserstack'][_0x412ec5(0x180)];const _0x456d63=WS_ENDPOINT['replace'](_0x334c19[_0x412ec5(0x18a)],_0x3665a2[_0x412ec5(0x198)]['username'])['replace'](_0x334c19[_0x412ec5(0x15f)],_0x3665a2[_0x412ec5(0x198)][_0x412ec5(0x180)]),_0x1df286={};_0x1df286[_0x412ec5(0x160)]=ws,_0x1df286[_0x412ec5(0x17d)]=0x36ee80,_0x308d4a=new ReconnectingWebSocket(_0x456d63,[],_0x1df286),logger[_0x412ec5(0x167)](_0x334c19['TpfIr']),webSocketUtils[_0x412ec5(0x17b)](_0x308d4a,_0x4548b6['user'],_0x4548b6['password']);const [_0x390876,_0xf4cc8e]=await _0x334c19['ZhoWt'](getGridDetails,_0x3665a2['Browserstack'][_0x412ec5(0x156)],_0x3665a2[_0x412ec5(0x198)][_0x412ec5(0x180)],_0x4548b6[_0x412ec5(0x16d)]);if(_0xf4cc8e){const _0x1107e2=_0xf4cc8e[_0x412ec5(0x155)];global_registry[_0x412ec5(0x15e)]=_0x1107e2[_0x412ec5(0x15e)],global_registry[_0x412ec5(0x163)]=_0x1107e2[_0x412ec5(0x187)],global_registry[_0x412ec5(0x19f)]=_0x1107e2['clusterName'];const _0x1f8cf6=await _0x334c19[_0x412ec5(0x15b)](getCloudProviderObject,_0x1107e2[_0x412ec5(0x15e)],_0x1107e2[_0x412ec5(0x19f)],_0x1107e2[_0x412ec5(0x19c)],_0x308d4a,webSocketUtils,_0x4548b6),[_0x15da02,_0x2c8fce,_0x366919,_0x3ce618,_0x140b42,_0x1375ed]=await _0x334c19[_0x412ec5(0x15d)](createK8sClient,_0x1f8cf6,_0x4548b6[_0x412ec5(0x174)]);await _0x334c19[_0x412ec5(0x15d)](scaleUpHubDeployment,_0x2c8fce,_0x1107e2[_0x412ec5(0x19c)]),logger[_0x412ec5(0x155)](_0x334c19[_0x412ec5(0x153)]),process[_0x412ec5(0x191)](0x0);}_0x334c19[_0x412ec5(0x197)](_0x390876[_0x412ec5(0x159)],0x191)&&(logger['error'](_0x334c19['pszTB']),await _0x334c19['SkyZa'](sendInstrumentationEvent,_0x4548b6,_0x334c19[_0x412ec5(0x19d)],messageTypes[_0x412ec5(0x16b)],_0x334c19[_0x412ec5(0x1a2)],null,_0x4548b6),process[_0x412ec5(0x191)](0x1)),_0x334c19[_0x412ec5(0x17f)](_0x390876[_0x412ec5(0x159)],0x190)&&(logger[_0x412ec5(0x192)](JSON[_0x412ec5(0x173)](_0x390876[_0x412ec5(0x17e)])[_0x412ec5(0x16a)]),await _0x334c19[_0x412ec5(0x199)](sendInstrumentationEvent,_0x4548b6,_0x334c19[_0x412ec5(0x19d)],messageTypes[_0x412ec5(0x16b)],_0x334c19[_0x412ec5(0x19a)],null,_0x4548b6),process['exit'](0x1)),logger[_0x412ec5(0x192)](_0x412ec5(0x16e)+JSON[_0x412ec5(0x1a0)](_0x390876)),await _0x334c19['DSvsJ'](sendInstrumentationEvent,_0x4548b6,_0x334c19['GJSxZ'],messageTypes['ERROR'],_0x334c19['LgVAM'],_0x390876,_0x4548b6),process[_0x412ec5(0x191)](0x1);}catch(_0x35d760){const _0x3268dc=_0x412ec5(0x1a6)+_0x35d760+'\x20\x0a'+JSON[_0x412ec5(0x1a0)](_0x35d760[_0x412ec5(0x183)])+'\x20';logger[_0x412ec5(0x192)](_0x3268dc),process[_0x412ec5(0x191)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x3b280b=a20_0x1c6c;function a20_0x3448(){const _0x12b2af=['995368HrKhIX','handler','desc','21LTQvGU','stop','Stop\x20a\x20running\x20Automation\x20grid.','3845061TaOJEa','uTEPP','568188NJMxxW','demandCommand','1643613yUlatt','3038864WoRUiR','35ZcOcQy','70521CSTTUP','usage','epilogue','369126pXQdhE','2YdlndJ','help','command','builder','vwgcB','../config/constants','1990YMFLMh'];a20_0x3448=function(){return _0x12b2af;};return a20_0x3448();}(function(_0x299f7d,_0x1680ca){const _0x5de977=a20_0x1c6c,_0x235ca7=_0x299f7d();while(!![]){try{const _0x4bf9b4=parseInt(_0x5de977(0x101))/0x1+-parseInt(_0x5de977(0x10a))/0x2*(-parseInt(_0x5de977(0x103))/0x3)+-parseInt(_0x5de977(0x104))/0x4+-parseInt(_0x5de977(0x105))/0x5*(parseInt(_0x5de977(0x109))/0x6)+parseInt(_0x5de977(0x114))/0x7*(-parseInt(_0x5de977(0x111))/0x8)+-parseInt(_0x5de977(0xff))/0x9+-parseInt(_0x5de977(0x110))/0xa*(-parseInt(_0x5de977(0x106))/0xb);if(_0x4bf9b4===_0x1680ca)break;else _0x235ca7['push'](_0x235ca7['shift']());}catch(_0x2c13ae){_0x235ca7['push'](_0x235ca7['shift']());}}}(a20_0x3448,0x61e61));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x3b280b(0x10f));function a20_0x1c6c(_0xa97e43,_0xb75ec2){const _0x344848=a20_0x3448();return a20_0x1c6c=function(_0x1c6c8f,_0x417a1b){_0x1c6c8f=_0x1c6c8f-0xfd;let _0x5ba64b=_0x344848[_0x1c6c8f];return _0x5ba64b;},a20_0x1c6c(_0xa97e43,_0xb75ec2);}exports[a20_0x3b280b(0x10c)]=a20_0x3b280b(0xfd),exports[a20_0x3b280b(0x113)]=a20_0x3b280b(0xfe),exports[a20_0x3b280b(0x10d)]=function(_0x9e5c01){const _0x18b2aa=a20_0x3b280b,_0x2c00d2={};_0x2c00d2['uTEPP']='stop_commands',_0x2c00d2[_0x18b2aa(0x10e)]=_0x18b2aa(0x10b);const _0x115450=_0x2c00d2;return _0x9e5c01[_0x18b2aa(0x107)](HELP_HEADER_MESSAGE[_0x18b2aa(0xfd)])[_0x18b2aa(0x108)](HELP_FOOTER_MESSAGE)['commandDir'](_0x115450[_0x18b2aa(0x100)])[_0x18b2aa(0x102)]()['recommendCommands']()['strict']()[_0x18b2aa(0x10b)](_0x115450[_0x18b2aa(0x10e)]);},exports[a20_0x3b280b(0x112)]=function(_0xc7a33a){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21_0x29bb6c=a21_0x45d0;function a21_0x130a(){const _0x6bf6a1=['desc','gridId','options','1135352kywJjp','8JrDXGQ','username','bstackUsername','Stopping\x20grid\x20','217xkUoui','Adding\x20Websocket\x20listeners','statusCode','orkYF','builder','190692wYBbBd','aaQin','LJYDW','../../config/constants','type','xusac','region','jMpay','tvkJl','unauthorised','existsSync','../../config/logger','AraDQ','readFileSync','usage','HiiQP','WfIGm','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','qWRvi','WebSocket','string','wfQSJ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','exit','YMLDP','cloudProvider','name','26229995NNmwOd','help','clusterName','4016574TOHYKM','vhCja','2010kWzYal','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','10737vnNhhP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid','xzaLR','51998XqpOcO','../../cloudproviders/utils','eADSL','<UsernamePlaceholder>','Browserstack','ERROR','bstackAccesskey','3421865AWRcZT','body','argv','fjjXr','skip-tls-cert-verify','default','addListeners','DRPkP','description','XFCeX','25wHMGGK','Grid\x20stoppped.','message','debug','slmhn','error','gayOJ','<PasswordPlaceholder>','stringify','skipTlsCertVerify','../../utils/utilityMethods','user','invalid-grid-id','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','replace','../../utils/createk8sClient','ACAGH','password','epilogue','info','parse','OnIjI','init-not-called','command','INFO'];a21_0x130a=function(){return _0x6bf6a1;};return a21_0x130a();}(function(_0x37b4b4,_0x4ac3cb){const _0x24ad5b=a21_0x45d0,_0x597191=_0x37b4b4();while(!![]){try{const _0x107d08=-parseInt(_0x24ad5b(0x202))/0x1*(parseInt(_0x24ad5b(0x1f1))/0x2)+parseInt(_0x24ad5b(0x1e8))/0x3+parseInt(_0x24ad5b(0x1c0))/0x4*(parseInt(_0x24ad5b(0x1f8))/0x5)+parseInt(_0x24ad5b(0x1c9))/0x6*(parseInt(_0x24ad5b(0x1c4))/0x7)+-parseInt(_0x24ad5b(0x1bf))/0x8+-parseInt(_0x24ad5b(0x1ed))/0x9*(-parseInt(_0x24ad5b(0x1ea))/0xa)+-parseInt(_0x24ad5b(0x1e5))/0xb;if(_0x107d08===_0x4ac3cb)break;else _0x597191['push'](_0x597191['shift']());}catch(_0x1d87c6){_0x597191['push'](_0x597191['shift']());}}}(a21_0x130a,0xb89e8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x29bb6c(0x1cc)),{logger}=require(a21_0x29bb6c(0x1d4)),{getCredentialsPath,getGridDetails}=require(a21_0x29bb6c(0x20c)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x29bb6c(0x211)),{getCloudProviderObject}=require(a21_0x29bb6c(0x1f2));function a21_0x45d0(_0x2dc918,_0x308aa5){const _0x130a7e=a21_0x130a();return a21_0x45d0=function(_0x45d076,_0x297866){_0x45d076=_0x45d076-0x1ba;let _0x365ba3=_0x130a7e[_0x45d076];return _0x365ba3;},a21_0x45d0(_0x2dc918,_0x308aa5);}exports[a21_0x29bb6c(0x1ba)]=a21_0x29bb6c(0x1ef),exports[a21_0x29bb6c(0x1bc)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x29bb6c(0x1c8)]=function(_0x533c2e){const _0x4added=a21_0x29bb6c,_0x5c5ad5={};_0x5c5ad5[_0x4added(0x1e9)]=_0x4added(0x1da),_0x5c5ad5[_0x4added(0x1ca)]=_0x4added(0x1dd),_0x5c5ad5[_0x4added(0x217)]='Skip\x20insecure\x20cert\x20verification.',_0x5c5ad5[_0x4added(0x1ff)]='boolean',_0x5c5ad5[_0x4added(0x1de)]=_0x4added(0x1e6);const _0x4383b4=_0x5c5ad5,_0x54f1bb={};_0x54f1bb[_0x4added(0x200)]=_0x4383b4[_0x4added(0x1e9)],_0x54f1bb['type']=_0x4383b4[_0x4added(0x1ca)];const _0x328d17={};_0x328d17['description']=_0x4383b4[_0x4added(0x217)],_0x328d17[_0x4added(0x1cd)]=_0x4383b4[_0x4added(0x1ff)],_0x328d17[_0x4added(0x1fd)]=![];const _0x1bbbdf={};return _0x1bbbdf[_0x4added(0x1e0)]=_0x54f1bb,_0x1bbbdf[_0x4added(0x1fc)]=_0x328d17,_0x533c2e[_0x4added(0x1d7)](HELP_HEADER_MESSAGE['stop'])[_0x4added(0x214)](HELP_FOOTER_MESSAGE)[_0x4added(0x1be)](_0x1bbbdf)[_0x4added(0x1e6)](_0x4383b4['wfQSJ'])[_0x4added(0x1fa)];},exports['handler']=async function(_0x360728){const _0x27730f=a21_0x29bb6c,_0x420d3c={'AraDQ':_0x27730f(0x1eb),'jmJOT':function(_0x166c7a){return _0x166c7a();},'fjjXr':_0x27730f(0x1df),'WfIGm':function(_0x7d2656,_0x1d156f,_0x5e02b5,_0x58d148,_0x545455,_0x301f59,_0x2e1b86){return _0x7d2656(_0x1d156f,_0x5e02b5,_0x58d148,_0x545455,_0x301f59,_0x2e1b86);},'orkYF':'stop-grid-called','tvkJl':_0x27730f(0x218),'gayOJ':function(_0x251d2f,_0x19008b,_0x51629b,_0x27456d,_0x564099,_0x5a6787,_0x26e876){return _0x251d2f(_0x19008b,_0x51629b,_0x27456d,_0x564099,_0x5a6787,_0x26e876);},'BGIUm':function(_0x17dc1f){return _0x17dc1f();},'ACAGH':_0x27730f(0x1f4),'VAbjO':_0x27730f(0x209),'jMpay':_0x27730f(0x1c5),'slmhn':function(_0x408804,_0x112e45,_0x1cd38d,_0x3b09ca){return _0x408804(_0x112e45,_0x1cd38d,_0x3b09ca);},'XFCeX':function(_0xbe8abb,_0x1e2d4f,_0x1134a7,_0x3f72b7,_0x4cab75,_0x2f77d7,_0x1f62b9){return _0xbe8abb(_0x1e2d4f,_0x1134a7,_0x3f72b7,_0x4cab75,_0x2f77d7,_0x1f62b9);},'xzaLR':function(_0x6b1c8,_0x717019,_0x22df14){return _0x6b1c8(_0x717019,_0x22df14);},'HiiQP':_0x27730f(0x203),'eADSL':function(_0x486e06,_0x41d567){return _0x486e06===_0x41d567;},'Xcckb':_0x27730f(0x1ec),'qWRvi':_0x27730f(0x1d2),'PuShC':function(_0x5e3eab,_0x20b1bc){return _0x5e3eab===_0x20b1bc;},'LJYDW':function(_0x44d0d4,_0x3c29e6,_0xd5ca91,_0x50d94b,_0x4dcada,_0x2dd11f,_0x105b8d){return _0x44d0d4(_0x3c29e6,_0xd5ca91,_0x50d94b,_0x4dcada,_0x2dd11f,_0x105b8d);},'YMLDP':_0x27730f(0x20e),'xusac':function(_0x34a699,_0x149b0c,_0x5e61da,_0x46c42e,_0x3c35d1,_0x1550b6,_0xbdc8){return _0x34a699(_0x149b0c,_0x5e61da,_0x46c42e,_0x3c35d1,_0x1550b6,_0xbdc8);},'Tpove':'server-error'};let _0x1af5ad;try{!_0x360728['gridId']&&(logger[_0x27730f(0x207)](_0x420d3c[_0x27730f(0x1d5)]),process[_0x27730f(0x1e1)](0x1));!fs[_0x27730f(0x1d3)](_0x420d3c['jmJOT'](getCredentialsPath))&&(logger[_0x27730f(0x207)](_0x420d3c[_0x27730f(0x1fb)]),await _0x420d3c[_0x27730f(0x1d9)](sendInstrumentationEvent,_0x360728,_0x420d3c[_0x27730f(0x1c7)],messageTypes[_0x27730f(0x1f6)],_0x420d3c[_0x27730f(0x1d1)],null,_0x360728),process['exit'](0x1));logger[_0x27730f(0x215)](_0x27730f(0x1c3)+_0x360728[_0x27730f(0x1bd)]),await _0x420d3c['gayOJ'](sendInstrumentationEvent,_0x360728,_0x420d3c[_0x27730f(0x1c7)],messageTypes[_0x27730f(0x1bb)],null,null,_0x360728);const _0x241126=JSON[_0x27730f(0x216)](fs[_0x27730f(0x1d6)](_0x420d3c['BGIUm'](getCredentialsPath)));global_registry[_0x27730f(0x1c2)]=_0x241126['Browserstack'][_0x27730f(0x1c1)],global_registry[_0x27730f(0x1f7)]=_0x241126[_0x27730f(0x1f5)]['password'];const _0x37622b=WS_ENDPOINT[_0x27730f(0x210)](_0x420d3c[_0x27730f(0x212)],_0x241126['Browserstack']['username'])['replace'](_0x420d3c['VAbjO'],_0x241126[_0x27730f(0x1f5)][_0x27730f(0x213)]),_0x4ae9d1={};_0x4ae9d1[_0x27730f(0x1dc)]=ws,_0x4ae9d1['connectionTimeout']=0x36ee80,_0x1af5ad=new ReconnectingWebSocket(_0x37622b,[],_0x4ae9d1),logger[_0x27730f(0x205)](_0x420d3c[_0x27730f(0x1d0)]),webSocketUtils[_0x27730f(0x1fe)](_0x1af5ad,_0x360728[_0x27730f(0x20d)],_0x360728[_0x27730f(0x213)]);const [_0x23659d,_0x5b68f1]=await _0x420d3c[_0x27730f(0x206)](getGridDetails,_0x241126['Browserstack'][_0x27730f(0x1c1)],_0x241126[_0x27730f(0x1f5)][_0x27730f(0x213)],_0x360728[_0x27730f(0x1bd)]);if(_0x5b68f1){const _0xe55599=_0x5b68f1[_0x27730f(0x215)];global_registry[_0x27730f(0x1e3)]=_0xe55599[_0x27730f(0x1e3)],global_registry['clusterRegion']=_0xe55599[_0x27730f(0x1cf)],global_registry[_0x27730f(0x1e7)]=_0xe55599[_0x27730f(0x1e7)];const _0x1993b5=await _0x420d3c[_0x27730f(0x201)](getCloudProviderObject,_0xe55599['cloudProvider'],_0xe55599[_0x27730f(0x1e7)],_0xe55599[_0x27730f(0x1e4)],_0x1af5ad,webSocketUtils,_0x360728),[_0x2cc3a0,_0x5c2518,_0x2ded61,_0x112361,_0x5cac75,_0x513e9c]=await _0x420d3c[_0x27730f(0x1f0)](createK8sClient,_0x1993b5,_0x360728[_0x27730f(0x20b)]);await _0x420d3c[_0x27730f(0x1f0)](scaleDownHubDeployment,_0x5c2518,_0xe55599[_0x27730f(0x1e4)]),logger['info'](_0x420d3c[_0x27730f(0x1d8)]),process[_0x27730f(0x1e1)](0x0);}_0x420d3c[_0x27730f(0x1f3)](_0x23659d[_0x27730f(0x1c6)],0x191)&&(logger[_0x27730f(0x207)](_0x420d3c['Xcckb']),await _0x420d3c[_0x27730f(0x208)](sendInstrumentationEvent,_0x360728,_0x420d3c[_0x27730f(0x1c7)],messageTypes[_0x27730f(0x1f6)],_0x420d3c[_0x27730f(0x1db)],null,_0x360728),process[_0x27730f(0x1e1)](0x1)),_0x420d3c['PuShC'](_0x23659d[_0x27730f(0x1c6)],0x190)&&(logger[_0x27730f(0x207)](JSON[_0x27730f(0x216)](_0x23659d[_0x27730f(0x1f9)])[_0x27730f(0x204)]),await _0x420d3c[_0x27730f(0x1cb)](sendInstrumentationEvent,_0x360728,_0x420d3c[_0x27730f(0x1c7)],messageTypes[_0x27730f(0x1f6)],_0x420d3c[_0x27730f(0x1e2)],null,_0x360728),process[_0x27730f(0x1e1)](0x1)),logger[_0x27730f(0x207)](_0x27730f(0x1ee)+JSON['stringify'](_0x23659d)),await _0x420d3c[_0x27730f(0x1ce)](sendInstrumentationEvent,_0x360728,_0x420d3c[_0x27730f(0x1c7)],messageTypes[_0x27730f(0x1f6)],_0x420d3c['Tpove'],_0x23659d,_0x360728),process['exit'](0x1);}catch(_0x13f972){const _0x46c699=_0x27730f(0x20f)+_0x13f972+'\x20\x0a'+JSON[_0x27730f(0x20a)](_0x13f972['stack'])+'\x20';logger[_0x27730f(0x207)](_0x46c699),process[_0x27730f(0x1e1)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x304ec6=a22_0x4812;(function(_0xe13553,_0x4b3ed0){const _0x2eb876=a22_0x4812,_0x8ac388=_0xe13553();while(!![]){try{const _0x283751=parseInt(_0x2eb876(0x87))/0x1+parseInt(_0x2eb876(0x93))/0x2+-parseInt(_0x2eb876(0x94))/0x3+parseInt(_0x2eb876(0xa5))/0x4*(-parseInt(_0x2eb876(0xb6))/0x5)+parseInt(_0x2eb876(0xc4))/0x6*(-parseInt(_0x2eb876(0xe9))/0x7)+parseInt(_0x2eb876(0xd8))/0x8*(-parseInt(_0x2eb876(0xed))/0x9)+parseInt(_0x2eb876(0x86))/0xa;if(_0x283751===_0x4b3ed0)break;else _0x8ac388['push'](_0x8ac388['shift']());}catch(_0x4d642c){_0x8ac388['push'](_0x8ac388['shift']());}}}(a22_0x5a8c,0x1d68a),require(a22_0x304ec6(0x96))[a22_0x304ec6(0x7e)]());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x304ec6(0xcb),agApiUrl=a22_0x304ec6(0xc1);const _env=(process['env'][a22_0x304ec6(0xe5)]||a22_0x304ec6(0xc7))[a22_0x304ec6(0x84)]();if(_env===a22_0x304ec6(0xd4)||_env===a22_0x304ec6(0xd9))gridURL=a22_0x304ec6(0x83),bsApiUrl=a22_0x304ec6(0xbf),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x304ec6(0xae)||_env===a22_0x304ec6(0xac))&&(gridURL=a22_0x304ec6(0xb2),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x304ec6(0xde));exports[a22_0x304ec6(0xb3)]=process['env'][a22_0x304ec6(0xb3)]||gridURL,exports[a22_0x304ec6(0xaa)]=process['env'][a22_0x304ec6(0xaa)]||bsApiUrl,exports[a22_0x304ec6(0xab)]=process[a22_0x304ec6(0xa2)][a22_0x304ec6(0xab)]||agApiUrl,exports[a22_0x304ec6(0x8b)]=a22_0x304ec6(0x98)+this['AG_API_URL']+a22_0x304ec6(0xca),exports['CP_CONFIG_FILE']=a22_0x304ec6(0xd2),exports[a22_0x304ec6(0x9a)]=a22_0x304ec6(0xdc),exports[a22_0x304ec6(0xa1)]=a22_0x304ec6(0xcf),exports['AWS']='aws',exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x304ec6(0xc0)]=a22_0x304ec6(0xb7),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x304ec6(0xa7),exports[a22_0x304ec6(0xdd)]='browserstack-turboscale-grid',exports['AZURE']='azure',exports[a22_0x304ec6(0xdb)]=a22_0x304ec6(0xbe),exports[a22_0x304ec6(0x7c)]=[this[a22_0x304ec6(0x7f)],this[a22_0x304ec6(0xeb)],this['GCP']];const a22_0x30a0d4={};a22_0x30a0d4['Key']=a22_0x304ec6(0xe8),a22_0x30a0d4[a22_0x304ec6(0x9e)]=a22_0x304ec6(0x8d);const a22_0x4d31d9={};a22_0x4d31d9[a22_0x304ec6(0xd1)]=a22_0x304ec6(0xe1),a22_0x4d31d9[a22_0x304ec6(0x9e)]=a22_0x304ec6(0xb9);const common_hst_tags_list=[a22_0x30a0d4,a22_0x4d31d9];if(process[a22_0x304ec6(0xa2)][a22_0x304ec6(0xa6)]){const parsedTags=process[a22_0x304ec6(0xa2)][a22_0x304ec6(0xa6)]['split'](',');parsedTags[a22_0x304ec6(0x7d)](_0x2578f7=>{const _0x2744df=a22_0x304ec6,_0xfe94f=_0x2578f7[_0x2744df(0xd7)](':'),_0x5294f8={};_0x5294f8[_0x2744df(0xd1)]=_0xfe94f[0x0],_0x5294f8['Value']=_0xfe94f[0x1],common_hst_tags_list[_0x2744df(0x95)](_0x5294f8);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x211110={};a22_0x211110['browserstack:managedBy']=a22_0x304ec6(0x8d),a22_0x211110[a22_0x304ec6(0xe1)]='BrowserStack-Automate-TurboScale',exports[a22_0x304ec6(0xe4)]=a22_0x211110,exports[a22_0x304ec6(0xe0)]=[this[a22_0x304ec6(0x7f)]];const a22_0x1ba9f6={};a22_0x1ba9f6[a22_0x304ec6(0xa4)]=a22_0x304ec6(0xc8),a22_0x1ba9f6[a22_0x304ec6(0x8c)]=a22_0x304ec6(0xa8),a22_0x1ba9f6['GRID_URL']=a22_0x304ec6(0xa9),a22_0x1ba9f6[a22_0x304ec6(0xb8)]=a22_0x304ec6(0xd5),a22_0x1ba9f6['CLI_RUN_FINISHED']=a22_0x304ec6(0x8f),exports[a22_0x304ec6(0x9c)]=a22_0x1ba9f6,exports[a22_0x304ec6(0xb5)]={},exports['LINK_MESSAGE']=a22_0x304ec6(0x85);const a22_0x27a21b={};a22_0x27a21b[a22_0x304ec6(0xa0)]=a22_0x304ec6(0xce)+this[a22_0x304ec6(0xa3)],a22_0x27a21b['init']=a22_0x304ec6(0xb4)+this[a22_0x304ec6(0xa3)],a22_0x27a21b['configure']=a22_0x304ec6(0xb0)+this[a22_0x304ec6(0xa3)],a22_0x27a21b[a22_0x304ec6(0x9b)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x304ec6(0xa3)],a22_0x27a21b[a22_0x304ec6(0x90)]={},a22_0x27a21b['delete']=a22_0x304ec6(0x82)+this[a22_0x304ec6(0xa3)],a22_0x27a21b[a22_0x304ec6(0x80)]=a22_0x304ec6(0xda)+this['LINK_MESSAGE'],a22_0x27a21b['start']=a22_0x304ec6(0xe7)+this[a22_0x304ec6(0xa3)],a22_0x27a21b[a22_0x304ec6(0xbd)]=a22_0x304ec6(0xc6)+this[a22_0x304ec6(0xa3)],a22_0x27a21b['pre_check']=a22_0x304ec6(0x92)+this['LINK_MESSAGE'],a22_0x27a21b[a22_0x304ec6(0x90)][a22_0x304ec6(0xa0)]=a22_0x304ec6(0xb1)+this[a22_0x304ec6(0xa3)],a22_0x27a21b[a22_0x304ec6(0x90)][a22_0x304ec6(0xbb)]=a22_0x304ec6(0xe3)+this[a22_0x304ec6(0xa3)],a22_0x27a21b[a22_0x304ec6(0x90)][a22_0x304ec6(0x9f)]=a22_0x304ec6(0x88)+this[a22_0x304ec6(0xa3)],exports['HELP_HEADER_MESSAGE']=a22_0x27a21b,exports['HELP_FOOTER_MESSAGE']=a22_0x304ec6(0x9d);function a22_0x5a8c(){const _0x46ef3c=['DASHBOARD_ENDPOINT','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','global_registry','5DCkAup','BSTACK-ATS-CLUSTER-AUTOSCALER','CLI_RUN_STARTED','BrowserStack-Automate-TurboScale','[REDACTED]','grid','REGION','stop','gcp','api-devhst.bsstag.com','CLUSTER_AUTOSCALER_STACK_NAME','grid-api.browserstack.com','pre-check','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','18966yLNKBq','us-east-1','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','prod','log','SUCCESS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','api.browserstack.com','TRIAL_GRID_URL','warning','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','high-scale-grid','CLUSTER','Key','credentials','RAW_ARGS_REGEX','staging','cliRunStarted','MessageDescription','split','204824UYdqCW','stag','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','GCP','BrowserStackIAMUser','TURBOSCALE_DEPLOYMENT','grid-api-preprod.bsstag.com','info','SUPPORTED_CLOUD_PROVIDERS','browserstack:service','WARNING','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','HST_CLUSTER_TAGS','BROWSERSTACK_ENV','DEFAULT_CLUSTER_DETAILS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','browserstack:managedBy','350cIuxuC','CLOUD_PROVIDER','AZURE','unknown','18muHXeP','ALL_SUPPORTED_CLOUD_PROVIDERS','forEach','config','AWS','connect','error','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid-devhst.bsstag.com','toLowerCase','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','1572150iLotlF','89982dSePrJ','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','INFO','WS_ENDPOINT','RESOURCES','BrowserStack','UNKNOWN','cliRunFinished','list','NULL','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','420918hhuxvj','376983VNfEvf','push','dotenv','grid-profile','wss://','messageTypes','IAM_USER_NAME','create','WS_EVENTS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','Value','gridProfile','root','DEFAULT_GRID_NAME','env','LINK_MESSAGE','LOG','9124nWRcHb','TURBOSCALE_CUSTOM_TAGS','BSTACK-ATS-CLUSTER-HUB-HA','resourceInfo','gridUrl','BS_API_URL','AG_API_URL','pre-prod','success','preprod','high-scale-grid-cluster','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','grid-preprod.bsstag.com'];a22_0x5a8c=function(){return _0x46ef3c;};return a22_0x5a8c();}function a22_0x4812(_0x5acd79,_0x4ea539){const _0x5a8c23=a22_0x5a8c();return a22_0x4812=function(_0x4812a7,_0xb1bc01){_0x4812a7=_0x4812a7-0x7c;let _0x185dc5=_0x5a8c23[_0x4812a7];return _0x185dc5;},a22_0x4812(_0x5acd79,_0x4ea539);}const a22_0x1fed71={};a22_0x1fed71[a22_0x304ec6(0xc9)]=a22_0x304ec6(0xad),a22_0x1fed71['ERROR']=a22_0x304ec6(0x81),a22_0x1fed71[a22_0x304ec6(0x8a)]=a22_0x304ec6(0xdf),a22_0x1fed71[a22_0x304ec6(0xe2)]=a22_0x304ec6(0xcd),a22_0x1fed71[a22_0x304ec6(0x8e)]=a22_0x304ec6(0xec),a22_0x1fed71[a22_0x304ec6(0x91)]=null,exports[a22_0x304ec6(0x99)]=a22_0x1fed71,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x304ec6(0xd3)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x304ec6(0xba);const a22_0x135c5c={};a22_0x135c5c[a22_0x304ec6(0x97)]=a22_0x304ec6(0xc3);const a22_0x4d8bc8={};a22_0x4d8bc8[a22_0x304ec6(0xc2)]=a22_0x135c5c,exports[a22_0x304ec6(0xd6)]=a22_0x4d8bc8,exports[a22_0x304ec6(0xcc)]=a22_0x304ec6(0x89);const a22_0x31ad4f={};a22_0x31ad4f[a22_0x304ec6(0xd0)]=a22_0x304ec6(0xaf),a22_0x31ad4f[a22_0x304ec6(0xea)]='aws',a22_0x31ad4f[a22_0x304ec6(0xbc)]=a22_0x304ec6(0xc5),exports[a22_0x304ec6(0xe6)]=a22_0x31ad4f;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x3dc5d3=a23_0x44df;(function(_0x13eeae,_0x541954){const _0x358045=a23_0x44df,_0x1a01a0=_0x13eeae();while(!![]){try{const _0x5560a1=-parseInt(_0x358045(0x1fe))/0x1+parseInt(_0x358045(0x1e7))/0x2+-parseInt(_0x358045(0x1ff))/0x3+parseInt(_0x358045(0x201))/0x4+-parseInt(_0x358045(0x1fb))/0x5+-parseInt(_0x358045(0x1f1))/0x6+-parseInt(_0x358045(0x1f0))/0x7*(-parseInt(_0x358045(0x1eb))/0x8);if(_0x5560a1===_0x541954)break;else _0x1a01a0['push'](_0x1a01a0['shift']());}catch(_0x53494a){_0x1a01a0['push'](_0x1a01a0['shift']());}}}(a23_0x10d7,0x25e5b));function a23_0x44df(_0xf06684,_0x39e9ed){const _0x10d710=a23_0x10d7();return a23_0x44df=function(_0x44df55,_0x4f0e40){_0x44df55=_0x44df55-0x1e7;let _0x47f738=_0x10d710[_0x44df55];return _0x47f738;},a23_0x44df(_0xf06684,_0x39e9ed);}const winston=require('winston'),fs=require('fs'),path=require(a23_0x3dc5d3(0x1f2)),logDir=a23_0x3dc5d3(0x203);!fs[a23_0x3dc5d3(0x1ef)](logDir)&&fs[a23_0x3dc5d3(0x1f4)](logDir);const a23_0x33caa2={};function a23_0x10d7(){const _0x55e3a3=['name','logger','existsSync','270977ggkypb','1157328wJIRPR','path','colorize','mkdirSync','File','Console','YYYY-MM-DD\x20HH:mm:ss','createLogger','timestamp','transports','1488935SEWuAX','level','format','192274Hzivdf','453300CDBOIX','fileLogger','5504VVZaqR','printf','log','usage.log','195094GMBriA','join','debug','console.info','184iQsyCm','combine'];a23_0x10d7=function(){return _0x55e3a3;};return a23_0x10d7();}a23_0x33caa2[a23_0x3dc5d3(0x1fd)]=a23_0x3dc5d3(0x1f7);const a23_0x123bbb={};a23_0x123bbb[a23_0x3dc5d3(0x1fc)]=!![];const a23_0x538d42={};a23_0x538d42[a23_0x3dc5d3(0x1ed)]=a23_0x3dc5d3(0x1ea),exports[a23_0x3dc5d3(0x1ee)]=new winston[(a23_0x3dc5d3(0x1f8))]({'format':winston['format'][a23_0x3dc5d3(0x1ec)](winston[a23_0x3dc5d3(0x1fd)][a23_0x3dc5d3(0x1f9)](a23_0x33caa2),winston[a23_0x3dc5d3(0x1fd)][a23_0x3dc5d3(0x1f3)](a23_0x123bbb),winston[a23_0x3dc5d3(0x1fd)][a23_0x3dc5d3(0x202)](_0x1f01a4=>_0x1f01a4['timestamp']+'\x20-\x20'+_0x1f01a4[a23_0x3dc5d3(0x1fc)]+':\x20'+_0x1f01a4['message'])),'transports':[new winston[(a23_0x3dc5d3(0x1fa))][(a23_0x3dc5d3(0x1f6))](a23_0x538d42),new winston[(a23_0x3dc5d3(0x1fa))][(a23_0x3dc5d3(0x1f5))]({'filename':path[a23_0x3dc5d3(0x1e8)](logDir,'events.log'),'level':a23_0x3dc5d3(0x1e9)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x3dc5d3(0x1f5))]({'filename':path[a23_0x3dc5d3(0x1e8)](logDir,a23_0x3dc5d3(0x204)),'level':'debug'})]};exports[a23_0x3dc5d3(0x200)]=new winston[(a23_0x3dc5d3(0x1f8))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';const a24_0x13970b=a24_0x5a60;function a24_0x5a60(_0x6a6bbe,_0x5ebb3e){const _0x3f9a42=a24_0x3f9a();return a24_0x5a60=function(_0x5a60f9,_0x306888){_0x5a60f9=_0x5a60f9-0x169;let _0x1a4276=_0x3f9a42[_0x5a60f9];return _0x1a4276;},a24_0x5a60(_0x6a6bbe,_0x5ebb3e);}(function(_0x44573e,_0x315891){const _0x160da1=a24_0x5a60,_0x2c8325=_0x44573e();while(!![]){try{const _0x31ebcd=-parseInt(_0x160da1(0x174))/0x1+parseInt(_0x160da1(0x177))/0x2*(-parseInt(_0x160da1(0x16b))/0x3)+-parseInt(_0x160da1(0x169))/0x4+-parseInt(_0x160da1(0x171))/0x5+-parseInt(_0x160da1(0x17c))/0x6*(parseInt(_0x160da1(0x170))/0x7)+-parseInt(_0x160da1(0x17b))/0x8*(-parseInt(_0x160da1(0x173))/0x9)+parseInt(_0x160da1(0x178))/0xa;if(_0x31ebcd===_0x315891)break;else _0x2c8325['push'](_0x2c8325['shift']());}catch(_0x58e29f){_0x2c8325['push'](_0x2c8325['shift']());}}}(a24_0x3f9a,0x59daf));function a24_0x3f9a(){const _0x3514f4=['./config/constants','14224agoUzo','2712MMQnEq','env','2682944AzfBGt','root','3RBebox','epilogue','usage','xoWfx','commands','2555qGzyPB','2887405WHMYjW','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1251OzTUdj','276970TUFYPp','OJkKc','demandCommand','1339220XrAKPF','24806820VDiwVU','help'];a24_0x3f9a=function(){return _0x3514f4;};return a24_0x3f9a();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x13970b(0x17a));process[a24_0x13970b(0x17d)][a24_0x13970b(0x172)]=0x1;function run(_0x474473){const _0x33fa26=a24_0x13970b,_0x1d1580={};_0x1d1580['xoWfx']=_0x33fa26(0x16f),_0x1d1580[_0x33fa26(0x175)]='help';const _0x16e2b9=_0x1d1580;_0x474473[_0x33fa26(0x16d)](HELP_HEADER_MESSAGE[_0x33fa26(0x16a)])['commandDir'](_0x16e2b9[_0x33fa26(0x16e)])[_0x33fa26(0x176)]()[_0x33fa26(0x179)](_0x16e2b9[_0x33fa26(0x175)])[_0x33fa26(0x16c)](HELP_FOOTER_MESSAGE);}module['exports']=run;
|