browserstack-node-sdk 1.59.0 → 1.60.1
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 +3 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/assets/report.html +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/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/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
|
-
const
|
|
1
|
+
const a15_0x3cdb7c=a15_0x132f;(function(_0x2abdca,_0x188674){const _0x4dd639=a15_0x132f,_0x5e8c66=_0x2abdca();while(!![]){try{const _0x12aa0c=parseInt(_0x4dd639(0x11c))/0x1+-parseInt(_0x4dd639(0xeb))/0x2*(parseInt(_0x4dd639(0xf1))/0x3)+parseInt(_0x4dd639(0xd2))/0x4*(parseInt(_0x4dd639(0xe1))/0x5)+parseInt(_0x4dd639(0x108))/0x6*(-parseInt(_0x4dd639(0x11d))/0x7)+-parseInt(_0x4dd639(0xd0))/0x8*(-parseInt(_0x4dd639(0xdb))/0x9)+parseInt(_0x4dd639(0xe3))/0xa*(-parseInt(_0x4dd639(0xfe))/0xb)+parseInt(_0x4dd639(0x11a))/0xc;if(_0x12aa0c===_0x188674)break;else _0x5e8c66['push'](_0x5e8c66['shift']());}catch(_0x2c8619){_0x5e8c66['push'](_0x5e8c66['shift']());}}}(a15_0x522e,0x73d46));function a15_0x132f(_0x5f850c,_0x4f8460){const _0x522ed5=a15_0x522e();return a15_0x132f=function(_0x132fee,_0xf7d048){_0x132fee=_0x132fee-0xcd;let _0x1d0978=_0x522ed5[_0x132fee];return _0x1d0978;},a15_0x132f(_0x5f850c,_0x4f8460);}const fs=require('fs'),got=require(a15_0x3cdb7c(0xff)),{table}=require(a15_0x3cdb7c(0xee)),{v4:uuidv4}=require(a15_0x3cdb7c(0x121)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3cdb7c(0xfa)),{getCredentialsPath,getAuthHeader}=require(a15_0x3cdb7c(0x128)),{sendInstrumentationEvent}=require(a15_0x3cdb7c(0x116));function a15_0x522e(){const _0x1f0b52=['unauthorised','5471688gdwtoJ','ERROR','398421KkFqtZ','7JimoRS','UaHWl','SCMWe','uFLNW','uuid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','readFileSync','error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','KOzfL','bihTq','../../utils/utilityMethods','grid-id','parse','log','24Hzhpsj','GET','188GqiwBP','status','options','dHOjJ','https://','boolean','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','help','1853433qficgy','bstackAccesskey','exit','usage','bstackUsername','queued','1240FEeLJg','requestId','36370MCNVsV','stack','beTpe','description','QrBgx','desc','stringify','wFuzB','19762onPjAY','INFO','\x0aFound\x20the\x20following\x20grids:\x0a','table','lgVqR','all-grids','21mwWxfA','ShFsk','Qqvlq','existsSync','cluster-name','Browserstack','name','xiBEq','handler','../../config/constants','username','list-grids-called','epilogue','374WKvniE','got','command','running','icTdq','Failed\x20to\x20list\x20resources!\x20Error:\x20','password','statusCode','list','grids','4899594mtHJHM','sCDWL','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','push','JzfJH','zdafv','clusterName','unknown-error','grid','CXFNu','body','/packages/cli/get-grids','forEach','zYXcc','../../utils/instrumentationUtils','DlqlG','type'];a15_0x522e=function(){return _0x1f0b52;};return a15_0x522e();}exports[a15_0x3cdb7c(0x100)]=a15_0x3cdb7c(0x107),exports[a15_0x3cdb7c(0xe8)]=a15_0x3cdb7c(0xd9),exports['builder']=function(_0x4f54d1){const _0x338c6e=a15_0x3cdb7c,_0x45d620={};_0x45d620[_0x338c6e(0x120)]=_0x338c6e(0x125),_0x45d620['SCMWe']=_0x338c6e(0xd7),_0x45d620[_0x338c6e(0x111)]=_0x338c6e(0xda);const _0x58f107=_0x45d620,_0x1c056e={};_0x1c056e[_0x338c6e(0xe6)]=_0x58f107[_0x338c6e(0x120)],_0x1c056e[_0x338c6e(0x118)]=_0x58f107[_0x338c6e(0x11f)];const _0x42feb9={};return _0x42feb9[_0x338c6e(0xf0)]=_0x1c056e,_0x4f54d1[_0x338c6e(0xde)](HELP_HEADER_MESSAGE[_0x338c6e(0x106)][_0x338c6e(0x110)])[_0x338c6e(0xfd)](HELP_FOOTER_MESSAGE)[_0x338c6e(0xd4)](_0x42feb9)[_0x338c6e(0xda)](_0x58f107['CXFNu'])['argv'];},exports[a15_0x3cdb7c(0xf9)]=async function(_0xf7b002){const _0x163fdd=a15_0x3cdb7c,_0x5790cb={'icTdq':function(_0x2a0b85){return _0x2a0b85();},'DlqlG':_0x163fdd(0x10a),'Qqvlq':function(_0x5ea0ec,_0x3fc0dd,_0x116967,_0x23181f,_0x5e1ff0,_0x1bf2e6,_0x47ece7){return _0x5ea0ec(_0x3fc0dd,_0x116967,_0x23181f,_0x5e1ff0,_0x1bf2e6,_0x47ece7);},'UaHWl':_0x163fdd(0xfc),'boGiu':_0x163fdd(0xd8),'KOzfL':_0x163fdd(0xd1),'VgTwt':function(_0x100258,_0x4cb312,_0x490177){return _0x100258(_0x4cb312,_0x490177);},'ZMRxv':function(_0x2a2ef,_0x2c368a,_0x449eed){return _0x2a2ef(_0x2c368a,_0x449eed);},'JzfJH':function(_0x5e6556,_0x53254a){return _0x5e6556!==_0x53254a;},'sCDWL':function(_0x2bbd58,_0x5da917){return _0x2bbd58===_0x5da917;},'uTkUV':_0x163fdd(0xed),'dHOjJ':_0x163fdd(0xcd),'NnoMu':'grid-name','zdafv':_0x163fdd(0xd3),'beTpe':_0x163fdd(0x101),'QDMyD':_0x163fdd(0xe0),'wFuzB':_0x163fdd(0xf5),'ShFsk':function(_0x36cc5d,_0x444dff){return _0x36cc5d(_0x444dff);},'lgVqR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xiBEq':_0x163fdd(0x119),'CgmSm':function(_0x4ed495,_0x29639e,_0x4a5208,_0x39ff94,_0x5d756d,_0x59a8be,_0x21514c){return _0x4ed495(_0x29639e,_0x4a5208,_0x39ff94,_0x5d756d,_0x59a8be,_0x21514c);},'QrBgx':'server-error','zYXcc':function(_0x1aa876,_0x501834,_0x3557e1,_0xed8517,_0x3b02a0,_0x4de65c,_0x331b1c){return _0x1aa876(_0x501834,_0x3557e1,_0xed8517,_0x3b02a0,_0x4de65c,_0x331b1c);},'bihTq':_0x163fdd(0x10f)};try{global_registry[_0x163fdd(0xe2)]=_0x5790cb[_0x163fdd(0x102)](uuidv4);!fs[_0x163fdd(0xf4)](_0x5790cb[_0x163fdd(0x102)](getCredentialsPath))&&(console[_0x163fdd(0x124)](_0x5790cb[_0x163fdd(0x117)]),await _0x5790cb[_0x163fdd(0xf3)](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes['ERROR'],_0x5790cb['boGiu'],null,_0xf7b002),process['exit'](0x1));const _0x164301=JSON['parse'](fs[_0x163fdd(0x123)](_0x5790cb[_0x163fdd(0x102)](getCredentialsPath)));let _0x361d99=_0x163fdd(0xd6)+AG_API_URL+_0x163fdd(0x113);_0xf7b002['allGrids']&&(_0x361d99=_0x163fdd(0xd6)+AG_API_URL+'/packages/cli/get-all-grids');const _0x3cf2e9={'method':_0x5790cb[_0x163fdd(0x126)],'headers':_0x5790cb['VgTwt'](getAuthHeader,_0x164301[_0x163fdd(0xf6)]['username'],_0x164301[_0x163fdd(0xf6)]['password']),'throwHttpErrors':![]};global_registry[_0x163fdd(0xdf)]=_0x164301['Browserstack'][_0x163fdd(0xfb)],global_registry[_0x163fdd(0xdc)]=_0x164301[_0x163fdd(0xf6)][_0x163fdd(0x104)],_0x5790cb[_0x163fdd(0xf3)](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes[_0x163fdd(0xec)],null,null,_0xf7b002);const _0xd330f9=await _0x5790cb['ZMRxv'](got,_0x361d99,_0x3cf2e9);if(_0x5790cb[_0x163fdd(0x10c)](_0xd330f9,null)&&_0x5790cb[_0x163fdd(0x10c)](_0xd330f9,undefined)&&_0x5790cb[_0x163fdd(0x109)](_0xd330f9[_0x163fdd(0x105)],0xc8)){const _0xb29bc6=JSON[_0x163fdd(0xce)](_0xd330f9[_0x163fdd(0x112)]);console[_0x163fdd(0xcf)](_0x5790cb['uTkUV']);const _0x1b52b1=[];_0x1b52b1[_0x163fdd(0x10b)]([_0x5790cb[_0x163fdd(0xd5)],_0x5790cb['NnoMu'],_0x5790cb[_0x163fdd(0x10d)],_0x5790cb[_0x163fdd(0xe5)],_0x5790cb['QDMyD'],_0x5790cb[_0x163fdd(0xea)]]),_0xb29bc6[_0x163fdd(0x114)](_0x45b33d=>{const _0x4c08fe=_0x163fdd;_0x1b52b1['push']([_0x45b33d['id'],_0x45b33d[_0x4c08fe(0xf7)],_0x45b33d['status'],_0x45b33d['running'],_0x45b33d[_0x4c08fe(0xe0)],_0x45b33d[_0x4c08fe(0x10e)]]);}),console['log'](_0x5790cb[_0x163fdd(0xf2)](table,_0x1b52b1)),process[_0x163fdd(0xdd)](0x0);}_0x5790cb[_0x163fdd(0x109)](_0xd330f9[_0x163fdd(0x105)],0x191)&&(console[_0x163fdd(0x124)](_0x5790cb[_0x163fdd(0xef)]),await _0x5790cb['Qqvlq'](sendInstrumentationEvent,_0xf7b002,_0x5790cb['UaHWl'],messageTypes[_0x163fdd(0x11b)],_0x5790cb[_0x163fdd(0xf8)],null,_0xf7b002),process[_0x163fdd(0xdd)](0x1)),console[_0x163fdd(0x124)](_0x163fdd(0x122)+JSON[_0x163fdd(0xe9)](_0xd330f9)),await _0x5790cb['CgmSm'](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes['ERROR'],_0x5790cb[_0x163fdd(0xe7)],_0xd330f9,_0xf7b002),process[_0x163fdd(0xdd)](0x1);}catch(_0xe09e8d){console[_0x163fdd(0x124)](_0x163fdd(0x103)+_0xe09e8d[_0x163fdd(0xe4)]),await _0x5790cb[_0x163fdd(0x115)](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes['ERROR'],_0x5790cb[_0x163fdd(0x127)],_0xe09e8d,_0xf7b002),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16_0xf66e(){const _0x57079e=['strict','pre_check','qMYvQ','pre-check','2DiZDyk','epilogue','773458omLKJk','usage','help','5609030TBSNEq','recommendCommands','pUoMg','../config/constants','demandCommand','496XHWuvG','handler','builder','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','command','718803thwqTq','4884396NdQsdC','2900016LfyCfE','6933790eLdwKT','1360638aMjAcA'];a16_0xf66e=function(){return _0x57079e;};return a16_0xf66e();}const a16_0x26a359=a16_0x628b;(function(_0x1e6b28,_0x1132b9){const _0x1fa8ba=a16_0x628b,_0x59f4c0=_0x1e6b28();while(!![]){try{const _0x2ca924=-parseInt(_0x1fa8ba(0x92))/0x1*(parseInt(_0x1fa8ba(0x90))/0x2)+parseInt(_0x1fa8ba(0x8b))/0x3+-parseInt(_0x1fa8ba(0x88))/0x4+-parseInt(_0x1fa8ba(0x8a))/0x5+-parseInt(_0x1fa8ba(0x89))/0x6+-parseInt(_0x1fa8ba(0x95))/0x7+parseInt(_0x1fa8ba(0x81))/0x8*(parseInt(_0x1fa8ba(0x87))/0x9);if(_0x2ca924===_0x1132b9)break;else _0x59f4c0['push'](_0x59f4c0['shift']());}catch(_0x6bd2cd){_0x59f4c0['push'](_0x59f4c0['shift']());}}}(a16_0xf66e,0xb481f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x26a359(0x7f));function a16_0x628b(_0xe18541,_0x43457f){const _0xf66ee7=a16_0xf66e();return a16_0x628b=function(_0x628b5b,_0x3d00df){_0x628b5b=_0x628b5b-0x7f;let _0x11eb2c=_0xf66ee7[_0x628b5b];return _0x11eb2c;},a16_0x628b(_0xe18541,_0x43457f);}exports[a16_0x26a359(0x86)]=a16_0x26a359(0x8f),exports[a16_0x26a359(0x84)]=a16_0x26a359(0x85),exports[a16_0x26a359(0x83)]=function(_0x246957){const _0x24eee6=a16_0x26a359,_0x1dc899={};_0x1dc899['pUoMg']='precheck_commands',_0x1dc899[_0x24eee6(0x8e)]=_0x24eee6(0x94);const _0x274111=_0x1dc899;return _0x246957[_0x24eee6(0x93)](HELP_HEADER_MESSAGE[_0x24eee6(0x8d)])[_0x24eee6(0x91)](HELP_FOOTER_MESSAGE)['commandDir'](_0x274111[_0x24eee6(0x97)])[_0x24eee6(0x80)]()[_0x24eee6(0x96)]()[_0x24eee6(0x8c)]()[_0x24eee6(0x94)](_0x274111[_0x24eee6(0x8e)]);},exports[a16_0x26a359(0x82)]=function(_0x41f0dc){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x3fb03f=a17_0x3718;function a17_0x1bfe(){const _0x606b87=['Error\x20Details:\x0a','VfBTW','16MiFmpy','qndsY','stringify','authHeader','sAShS','headers','grid-profile','huIRx','SgOnA','delay','../../utils/utilityMethods','131612bwGGwN','join','fUJIZ','/packages/cli/get-all-grid-profiles','readFileSync','status','HDlMf','string','username','1650VRPwHB','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','BGgVn','CLOUD_PROVIDER','region','pre-check-failed','unable\x20to\x20verify\x20if\x20cluster\x20`','xdSer','forEach','cloudProvider','1914nsKdmd','OcCsW','noJtH','dxffM','push','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','clusterRegion','kEoOV','Missing\x20required\x20arguments:\x20','RlONz','../../config/logger','YzlXQ','ERROR','WmuEv','iuiBF','ZSYfJ','waqmq','xsIEw','DIPZO','command','TLSv1_2_client_method','ZXQNm','bjjMu','split','Cluster\x20`','bRqCE','argv','FsDBm','bjeVB','icSrD','txGkj','pre-check-grid-profile-empty','RGLON','JHrUM','AyTmQ','Chulv','Status:\x20','oblDQ','JNtiA','bstackUsername','Failed\x20in\x20pre-check!\x20Error:\x20','YqxpO','error','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','zVksy','bBeCO','Hlmzb','Invalid\x20input.\x20grid\x20profiles:\x20','got','pDvwW','Rezcq','cluster-check-failed-','NrbDj','AzLPm','dQmVR','acSHB','jApDW','epilogue','tZPzY','toolInstalledResp','../../config/constants','message','grid\x20profile\x20flow\x20','CmdtO','response','\x20\x20Stack:\x20','AcKVF','replace','1700678QDhHIL','\x20\x20Code:\x20','log/report_','\x20region\x20-\x20','bstackAccesskey','\x20error\x20:\x20','handler','hhtwC','naoAg','utf-8','MjVXm','will\x20be\x20created','error\x20stack\x20:\x20','ANeXc','cdTpb','Qjqxn','cloud-provider','credential-not-found','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','uTSfD','BOlkt','pre-check-cluster-args-not-passed','Setting\x20cloud\x20provider\x20as\x20','Avbzd','ZScfT','kDLvj','exit','Message:\x20','YpTad','pjagd','Pre-check\x20running\x20for\x20Cloud\x20-\x20','234540oSJlKe',']\x20status\x20:\x20','===\x20Precheck\x20Report\x20-\x20','ehGeb','clusterName','LnfYN','CdVRc','accessResp','MvykZ','JcFMc','sendEventToBackend','Browserstack','CPsVW','Failure','VHNtw','type','WgcjN','.\x20Please\x20provide\x20all\x20required\x20arguments.','iwlmQ','Whitelisted\x20browserstack','Grid\x20profile\x20fetched\x20for\x20pre-check','<PasswordPlaceholder>','IIjIJ','XwgXt','getUTCFullYear','zJNsG','body','<UsernamePlaceholder>','`\x20already\x20exists','1|3|2|0|4','mIPuI','PfoBY','INFO','parse','Tool\x20Installed','checkAccess','lHtrV','TPsHv','SlbWE','grid','EMhOq','qcjXa','FNWdm','https://','stack','Cluster\x20','usage','eQRhv','description','isTrialGridAccessible','options','GET','../../cloudproviders/utils','debug','SSL\x20Configured','bHMsQ','334974DLVFTf','desc','help','builder','Success','lDYjJ','`\x20,error\x20:\x20','Licng','method','pre_check','find','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','hoPYM','lANxC','gnITZ','ZLmPG','zBNiu','kXdJb','User\x20Access','../../utils/webSocketUtils','263844SYTBUI','connectionTimeout','oCRyb','throwHttpErrors','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','LrzIB','PWLPf','qtMeJ','KsVpf','ZpnKv','password','\x20\x20Message:\x20','existsSync','gridProfile','.txt','dIGpY','ZdUoN','sMkap','EwxtJ','is\x20already\x20present','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sehFc','XzHaH','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','LOG','code','BCNyG','IhJwT','data','BRcbz','fcycW','length','fmuyS','44060BwgIhk','header','\x20data\x20:\x20','pre-check','NiPYv','pre-check-grid-called','isClusterPresent','dNmDR','MmVgM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','info','N/A','getUTCMonth','cluster-name','KGmuc','xDFTj','WlWWn','gvqRq'];a17_0x1bfe=function(){return _0x606b87;};return a17_0x1bfe();}(function(_0x1f1900,_0xd83a70){const _0x5aa913=a17_0x3718,_0x4468f1=_0x1f1900();while(!![]){try{const _0x18dd49=parseInt(_0x5aa913(0x215))/0x1+parseInt(_0x5aa913(0x234))/0x2+-parseInt(_0x5aa913(0x2e3))/0x3+-parseInt(_0x5aa913(0x2ab))/0x4+parseInt(_0x5aa913(0x23d))/0x5*(-parseInt(_0x5aa913(0x247))/0x6)+parseInt(_0x5aa913(0x28c))/0x7+-parseInt(_0x5aa913(0x229))/0x8*(-parseInt(_0x5aa913(0x1f4))/0x9);if(_0x18dd49===_0xd83a70)break;else _0x4468f1['push'](_0x4468f1['shift']());}catch(_0x3c453e){_0x4468f1['push'](_0x4468f1['shift']());}}}(a17_0x1bfe,0x212d1));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3fb03f(0x278)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3fb03f(0x233)),{logger}=require(a17_0x3fb03f(0x252)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x3fb03f(0x284)),{getCloudProviderObjectWithOutInit}=require(a17_0x3fb03f(0x2df)),webSocketUtils=require(a17_0x3fb03f(0x1f3)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x3718(_0x2d0008,_0x1a9693){const _0x1bfecb=a17_0x1bfe();return a17_0x3718=function(_0x37181d,_0x19a844){_0x37181d=_0x37181d-0x1ef;let _0x54292a=_0x1bfecb[_0x37181d];return _0x54292a;},a17_0x3718(_0x2d0008,_0x1a9693);}exports[a17_0x3fb03f(0x25b)]=a17_0x3fb03f(0x2d2),exports[a17_0x3fb03f(0x2e4)]=a17_0x3fb03f(0x273),exports[a17_0x3fb03f(0x2e6)]=function(_0x5e9fd3){const _0x2c9f17=a17_0x3fb03f,_0x179943={};_0x179943[_0x2c9f17(0x2b7)]=_0x2c9f17(0x21e),_0x179943[_0x2c9f17(0x282)]='string',_0x179943[_0x2c9f17(0x230)]=_0x2c9f17(0x208),_0x179943['NiPYv']=_0x2c9f17(0x24c),_0x179943[_0x2c9f17(0x228)]=_0x2c9f17(0x23e),_0x179943[_0x2c9f17(0x299)]=_0x2c9f17(0x2e5);const _0x59a193=_0x179943,_0x31c599={};_0x31c599[_0x2c9f17(0x2db)]=_0x59a193['CPsVW'],_0x31c599[_0x2c9f17(0x2ba)]=_0x59a193[_0x2c9f17(0x282)];const _0x165a79={};_0x165a79[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x230)],_0x165a79[_0x2c9f17(0x2ba)]=_0x59a193['tZPzY'];const _0x27131c={};_0x27131c[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x219)],_0x27131c['type']=_0x59a193[_0x2c9f17(0x282)];const _0x57ed26={};_0x57ed26[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x228)],_0x57ed26['type']=_0x59a193[_0x2c9f17(0x282)];const _0x5090b0={};return _0x5090b0['cluster-name']=_0x31c599,_0x5090b0['cloud-provider']=_0x165a79,_0x5090b0[_0x2c9f17(0x241)]=_0x27131c,_0x5090b0[_0x2c9f17(0x22f)]=_0x57ed26,_0x5e9fd3[_0x2c9f17(0x2d9)](HELP_HEADER_MESSAGE[_0x2c9f17(0x2ec)])[_0x2c9f17(0x281)](HELP_FOOTER_MESSAGE)[_0x2c9f17(0x2dd)](_0x5090b0)[_0x2c9f17(0x2e5)](_0x59a193[_0x2c9f17(0x299)])[_0x2c9f17(0x262)];};async function inputValidation(_0xe42dfb,_0x58fc71){const _0x19f311=a17_0x3fb03f,_0x34e7fb={'qsyYT':function(_0x456b69,_0x4ab387){return _0x456b69+_0x4ab387;},'IIjIJ':_0x19f311(0x2e7),'LNwQU':_0x19f311(0x2b8),'GxiLf':function(_0xcc08df,_0xdba967){return _0xcc08df||_0xdba967;},'acSHB':'N/A','fylUg':_0x19f311(0x227),'uBVrZ':'cloud-provider','iwlmQ':_0x19f311(0x222),'CmdtO':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','IhJwT':_0x19f311(0x23b),'Avbzd':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','AcKVF':_0x19f311(0x24c),'dKAhN':_0x19f311(0x23e),'JcFMc':_0x19f311(0x2e5),'BGgVn':_0x19f311(0x29e),'KsVpf':_0x19f311(0x207),'EqboY':_0x19f311(0x297),'uTSfD':_0x19f311(0x272),'mIPuI':function(_0xe9d5d1,_0x1de7f2){return _0xe9d5d1===_0x1de7f2;},'TPsHv':_0x19f311(0x263),'WmuEv':_0x19f311(0x204),'xsIEw':function(_0x15fab1,_0x3e4afd){return _0x15fab1===_0x3e4afd;},'Rezcq':_0x19f311(0x1f1),'noJtH':function(_0x3062f2,_0x3fff50){return _0x3062f2===_0x3fff50;},'qJmDm':_0x19f311(0x261),'RlONz':'kptGH','dxffM':function(_0x35abe6,_0x190195){return _0x35abe6===_0x190195;},'qcjXa':'kzJSM','lHtrV':'xrJEx','oblDQ':_0x19f311(0x2f0),'adpyA':_0x19f311(0x269),'WlWWn':_0x19f311(0x241),'XzHaH':function(_0x4c75e2,_0x14bfef){return _0x4c75e2>_0x14bfef;},'PWLPf':function(_0x34d286,_0x2aac9c){return _0x34d286!==_0x2aac9c;},'icSrD':_0x19f311(0x271),'Hlmzb':function(_0x4f6e97,_0x20808b,_0x3f979f,_0x234768,_0x10cb20,_0x24a48f,_0x32171d,_0x3e0e8e){return _0x4f6e97(_0x20808b,_0x3f979f,_0x234768,_0x10cb20,_0x24a48f,_0x32171d,_0x3e0e8e);},'bjjMu':_0x19f311(0x21a),'xDFTj':_0x19f311(0x2a1),'OcCsW':_0x19f311(0x2e8),'srQxv':_0x19f311(0x1f8),'ZSYfJ':'cloud-provider-not-supported','Rbgfk':function(_0x35abbf,_0x2c56ea){return _0x35abbf!==_0x2c56ea;},'NXvBw':_0x19f311(0x2d5),'JNtiA':_0x19f311(0x1ef),'MjVXm':_0x19f311(0x2f1),'jaGWB':_0x19f311(0x2de),'bjeVB':function(_0x35833a,_0x4502c9,_0x56a172){return _0x35833a(_0x4502c9,_0x56a172);},'LrzIB':function(_0x5525e6,_0x40f223,_0x23dcfa,_0x37539f,_0x1bec17,_0x119bbd){return _0x5525e6(_0x40f223,_0x23dcfa,_0x37539f,_0x1bec17,_0x119bbd);},'Licng':_0x19f311(0x218),'ZXQNm':'grid-profile','qCoem':function(_0x4a9bec,_0x35f9ce){return _0x4a9bec===_0x35f9ce;},'sehFc':function(_0x347ac4,_0x1dec13){return _0x347ac4===_0x1dec13;},'MvykZ':_0x19f311(0x274),'BOlkt':_0x19f311(0x2ca),'YzlXQ':function(_0x3934ad,_0x418b83){return _0x3934ad(_0x418b83);},'fcycW':_0x19f311(0x236),'RGLON':_0x19f311(0x2ef),'bBeCO':function(_0x1ff827,_0x579a77,_0x3944f1,_0x4b7829,_0x4e2c11,_0x1fa64a,_0x56336c,_0x2aa6b6){return _0x1ff827(_0x579a77,_0x3944f1,_0x4b7829,_0x4e2c11,_0x1fa64a,_0x56336c,_0x2aa6b6);},'HDlMf':_0x19f311(0x267),'pjagd':_0x19f311(0x2a8),'Chulv':_0x19f311(0x2d3),'gahrr':_0x19f311(0x2bb),'AyTmQ':_0x19f311(0x2bf),'qtMeJ':function(_0x5b553e,_0x50fe7f){return _0x5b553e!==_0x50fe7f;},'BCNyG':_0x19f311(0x22a),'iuiBF':_0x19f311(0x2a5),'bHMsQ':'vuNFr','ehGeb':function(_0x44c6ba,_0x541bdd,_0x3e5172,_0x588f26,_0x372e26,_0x2b9cb8,_0x5caf38,_0x12d748){return _0x44c6ba(_0x541bdd,_0x3e5172,_0x588f26,_0x372e26,_0x2b9cb8,_0x5caf38,_0x12d748);}};let _0x401f19;try{if(_0x34e7fb[_0x19f311(0x2c9)](_0x34e7fb[_0x19f311(0x2d0)],_0x34e7fb[_0x19f311(0x255)])){const {header:_0x49a376,response:_0x120cd6}=_0x1a4d58,{status:_0x1c1b40,data:_0xc43e7d,error:_0x4602c3}=_0x120cd6;_0x5af744+=_0x49a376+'\x20#'+_0x34e7fb['qsyYT'](_0x4fa21d,0x1)+'\x0a',_0x50ffcc+=_0x19f311(0x26c)+(_0x1c1b40?_0x34e7fb[_0x19f311(0x2c1)]:_0x34e7fb['LNwQU'])+'\x0a',_0x5a4a6d+=_0x19f311(0x2a7)+_0x34e7fb['GxiLf'](_0xc43e7d,_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0x4602c3&&(_0x1b3728+=_0x34e7fb['fylUg'],_0x151e91+=_0x19f311(0x1ff)+(_0x4602c3['message']||_0x34e7fb['acSHB'])+'\x0a',_0x1017b2+=_0x19f311(0x28d)+(_0x4602c3[_0x19f311(0x20d)]||_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0xa62acf+='\x20\x20Stack:\x20'+(_0x4602c3['stack']||_0x34e7fb[_0x19f311(0x27f)])+'\x0a'),_0x87ba19+='\x0a\x0a';}else{if(_0xe42dfb[_0x19f311(0x2af)]||_0xe42dfb[_0x19f311(0x246)]||_0xe42dfb['region']){if(_0x34e7fb[_0x19f311(0x259)](_0x34e7fb[_0x19f311(0x27a)],_0x34e7fb[_0x19f311(0x27a)])){const _0x12f074=[];!_0xe42dfb['clusterName']&&(_0x34e7fb[_0x19f311(0x249)](_0x34e7fb['qJmDm'],_0x34e7fb[_0x19f311(0x251)])?_0x4f8045[_0x19f311(0x24b)](_0x34e7fb['uBVrZ']):_0x12f074['push'](_0x34e7fb[_0x19f311(0x2bd)]));;!_0xe42dfb[_0x19f311(0x246)]&&(_0x34e7fb[_0x19f311(0x24a)](_0x34e7fb[_0x19f311(0x2d4)],_0x34e7fb[_0x19f311(0x2cf)])?_0x3879b4[_0x19f311(0x24b)](_0x34e7fb[_0x19f311(0x2bd)]):_0x12f074[_0x19f311(0x24b)](_0x34e7fb['uBVrZ']));;if(!_0xe42dfb['region']){if(_0x34e7fb[_0x19f311(0x2c9)](_0x34e7fb[_0x19f311(0x26d)],_0x34e7fb['adpyA'])){const _0x4a7349={};_0x4a7349[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x287)],_0x4a7349[_0x19f311(0x2ba)]=_0x34e7fb['IhJwT'];const _0x54d1b0={};_0x54d1b0[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x2a3)],_0x54d1b0[_0x19f311(0x2ba)]=_0x34e7fb[_0x19f311(0x20f)];const _0x7938dd={};_0x7938dd[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x28a)],_0x7938dd[_0x19f311(0x2ba)]=_0x34e7fb[_0x19f311(0x20f)];const _0x40b5d7={};_0x40b5d7[_0x19f311(0x2db)]=_0x34e7fb['dKAhN'],_0x40b5d7[_0x19f311(0x2ba)]=_0x34e7fb['IhJwT'];const _0x594e96={};return _0x594e96[_0x19f311(0x222)]=_0x4a7349,_0x594e96[_0x19f311(0x29c)]=_0x54d1b0,_0x594e96[_0x19f311(0x241)]=_0x7938dd,_0x594e96[_0x19f311(0x22f)]=_0x40b5d7,_0x545459[_0x19f311(0x2d9)](_0x380ddc[_0x19f311(0x2ec)])[_0x19f311(0x281)](_0x255114)[_0x19f311(0x2dd)](_0x594e96)[_0x19f311(0x2e5)](_0x34e7fb[_0x19f311(0x2b4)])['argv'];}else _0x12f074[_0x19f311(0x24b)](_0x34e7fb[_0x19f311(0x225)]);};_0x34e7fb[_0x19f311(0x20a)](_0x12f074[_0x19f311(0x213)],0x0)&&(_0x34e7fb[_0x19f311(0x1fa)](_0x34e7fb[_0x19f311(0x265)],_0x34e7fb['icSrD'])?_0x14e2dc+=_0x19f311(0x2d8)+_0x286f39['clusterName']+_0x19f311(0x24d):(_0x401f19=_0x19f311(0x250)+_0x12f074[_0x19f311(0x235)](',\x20')+_0x19f311(0x2bc),await _0x34e7fb[_0x19f311(0x276)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x224)],_0x34e7fb[_0x19f311(0x29f)]),logger[_0x19f311(0x272)](_0x401f19),process[_0x19f311(0x2a6)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xe42dfb[_0x19f311(0x246)]['toLowerCase']())&&(_0x34e7fb['mIPuI'](_0x34e7fb['OcCsW'],_0x34e7fb[_0x19f311(0x248)])?(_0x401f19=_0x34e7fb['srQxv'],await _0x34e7fb[_0x19f311(0x276)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x257)],_0x34e7fb['uTSfD']),logger[_0x19f311(0x272)](_0x401f19),!_0xe42dfb[_0x19f311(0x246)]&&(_0x34e7fb['Rbgfk'](_0x34e7fb['NXvBw'],_0x34e7fb['NXvBw'])?_0x136dfd=_0xe2430b:(logger[_0x19f311(0x21f)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x19f311(0x240)]+'\x20'),_0xe42dfb[_0x19f311(0x246)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x1d9371[_0x19f311(0x272)](_0x34e7fb[_0x19f311(0x23f)]),_0x2f57c4[_0x19f311(0x2a6)](0x1))),global_registry[_0x19f311(0x2af)]=_0xe42dfb[_0x19f311(0x2af)],global_registry[_0x19f311(0x246)]=_0xe42dfb[_0x19f311(0x246)],global_registry[_0x19f311(0x24e)]=_0xe42dfb[_0x19f311(0x241)];}else _0x306e46[_0x19f311(0x2a6)](0x1);}else{if(_0xe42dfb['gridProfile']){if(_0x34e7fb[_0x19f311(0x24a)](_0x34e7fb[_0x19f311(0x26e)],_0x34e7fb[_0x19f311(0x296)]))_0x407352['error'](_0x19f311(0x298)+_0x24c8ef[_0x19f311(0x272)][_0x19f311(0x2d7)]);else{global_registry[_0x19f311(0x201)]=_0xe42dfb[_0x19f311(0x201)],logger[_0x19f311(0x2e0)](_0x19f311(0x286)+_0xe42dfb[_0x19f311(0x201)]);const _0x28f258=_0x19f311(0x2d6)+AG_API_URL+_0x19f311(0x237),_0x4c9a19={};_0x4c9a19[_0x19f311(0x2eb)]=_0x34e7fb['jaGWB'],_0x4c9a19[_0x19f311(0x22e)]=global_registry[_0x19f311(0x22c)],_0x4c9a19[_0x19f311(0x1f7)]=![];const _0x3361b3=_0x4c9a19,_0x537197=await _0x34e7fb[_0x19f311(0x264)](got,_0x28f258,_0x3361b3),_0x47dfdc=await _0x34e7fb[_0x19f311(0x1f9)](responseValidation,_0x537197,_0x34e7fb[_0x19f311(0x2ea)],_0x34e7fb[_0x19f311(0x25d)],_0xe42dfb,_0x58fc71);let _0x3a605d={};if(_0x34e7fb['qCoem'](_0x47dfdc,0xc8)){if(_0x34e7fb[_0x19f311(0x209)](_0x34e7fb[_0x19f311(0x2b3)],_0x34e7fb[_0x19f311(0x2a0)]))_0x38c963['info'](_0x19f311(0x2a2)+_0x1d4b40[_0x19f311(0x240)]+'\x20'),_0x24f431[_0x19f311(0x246)]=_0x1d6be7[_0x19f311(0x240)];else{const _0x114bd9=JSON[_0x19f311(0x2cc)](_0x537197[_0x19f311(0x2c5)]),_0x455be1=_0x114bd9[_0x19f311(0x2ed)](_0x30273d=>_0x30273d['name']===_0xe42dfb[_0x19f311(0x201)])||null;_0x34e7fb[_0x19f311(0x253)](isUndefined,_0x455be1)?_0x34e7fb['sehFc'](_0x34e7fb[_0x19f311(0x212)],_0x34e7fb[_0x19f311(0x268)])?_0x64bf4f+=_0x19f311(0x2d8)+_0x505306[_0x19f311(0x2af)]+'\x20'+(_0x99df86?_0x34e7fb[_0x19f311(0x1fc)]:_0x34e7fb['EqboY'])+'\x0a\x0a':(_0x401f19=_0x19f311(0x277)+_0xe42dfb['gridProfile']+_0x19f311(0x2ee),await _0x34e7fb[_0x19f311(0x275)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x23a)],_0x34e7fb['uTSfD']),logger[_0x19f311(0x272)](_0x401f19),process['exit'](0x1)):_0x34e7fb[_0x19f311(0x1fa)](_0x34e7fb[_0x19f311(0x2a9)],_0x34e7fb[_0x19f311(0x2a9)])?_0x5c34cd[_0x19f311(0x21f)]('Cluster\x20`'+_0x202931['clusterName']+_0x19f311(0x2c7)):_0x3a605d=_0x455be1;}}else _0x34e7fb[_0x19f311(0x249)](_0x34e7fb[_0x19f311(0x26b)],_0x34e7fb['gahrr'])?(_0x136e3e[_0x19f311(0x21f)]('['+_0x232e24+_0x19f311(0x2ac)+_0xb721ee[_0x19f311(0x239)]+_0x19f311(0x217)+_0x516d5b['data']+_0x19f311(0x291)+_0x4076d4[_0x19f311(0x272)]),_0x5268c1[_0x19f311(0x272)]&&_0x1c43c9[_0x19f311(0x272)](_0x19f311(0x298)+_0x292fda[_0x19f311(0x272)]['stack'])):process[_0x19f311(0x2a6)](0x1);const _0x1b2589={};_0x1b2589[_0x19f311(0x2ba)]=WS_EVENTS[_0x19f311(0x20c)],_0x1b2589[_0x19f311(0x285)]=_0x34e7fb[_0x19f311(0x26a)],webSocketUtils['sendEventToBackend'](_0x58fc71,_0x1b2589),global_registry[_0x19f311(0x246)]=_0x3a605d['cloudProvider'],global_registry[_0x19f311(0x24e)]=_0x3a605d[_0x19f311(0x241)],global_registry[_0x19f311(0x2af)]=_0x3a605d['clusterName'];}}else _0x34e7fb[_0x19f311(0x1fb)](_0x34e7fb[_0x19f311(0x20e)],_0x34e7fb[_0x19f311(0x20e)])?(_0x21e37e+=_0x34e7fb['fylUg'],_0x5159b9+=_0x19f311(0x1ff)+(_0x3ea641[_0x19f311(0x285)]||_0x34e7fb['acSHB'])+'\x0a',_0x206049+=_0x19f311(0x28d)+(_0x57ab72[_0x19f311(0x20d)]||_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0x3c7532+=_0x19f311(0x289)+(_0x6fc49c['stack']||_0x34e7fb[_0x19f311(0x27f)])+'\x0a'):(logger[_0x19f311(0x272)](_0x34e7fb[_0x19f311(0x23f)]),process[_0x19f311(0x2a6)](0x1));}}}catch(_0x432536){if(_0x34e7fb['Rbgfk'](_0x34e7fb[_0x19f311(0x256)],_0x34e7fb[_0x19f311(0x2e2)]))_0x401f19=_0x19f311(0x20b)+_0x432536+':\x20'+_0x432536[_0x19f311(0x2d7)],logger[_0x19f311(0x272)](_0x401f19),await _0x34e7fb[_0x19f311(0x2ae)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes[_0x19f311(0x254)],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x257)],_0x34e7fb[_0x19f311(0x29f)]),process[_0x19f311(0x2a6)](0x1);else{const _0x48ded2={};_0x48ded2['type']=_0x55b3e5[_0x19f311(0x20c)],_0x48ded2[_0x19f311(0x285)]=_0x3b859a,_0x193c71[_0x19f311(0x2b5)](_0xfcdb53,_0x48ded2,_0x34e7fb[_0x19f311(0x29f)],!![]);}}}function printResponse(_0x43face,_0x307daa){const _0x319688=a17_0x3fb03f,_0x51651e={};_0x51651e[_0x319688(0x214)]='region',_0x51651e[_0x319688(0x2c4)]=function(_0x3a460b,_0xb46863){return _0x3a460b===_0xb46863;},_0x51651e[_0x319688(0x27d)]='oZjXD';const _0x1f5908=_0x51651e;logger[_0x319688(0x21f)]('['+_0x43face+_0x319688(0x2ac)+_0x307daa['status']+'\x20data\x20:\x20'+_0x307daa[_0x319688(0x210)]+_0x319688(0x291)+_0x307daa['error']),_0x307daa[_0x319688(0x272)]&&(_0x1f5908['zJNsG'](_0x1f5908[_0x319688(0x27d)],_0x1f5908[_0x319688(0x27d)])?logger[_0x319688(0x272)]('error\x20stack\x20:\x20'+_0x307daa['error'][_0x319688(0x2d7)]):_0xbc55b4[_0x319688(0x24b)](_0x1f5908[_0x319688(0x214)]));}async function generateReport(_0x2e2498,_0x55dd3d){const _0x57e42e=a17_0x3fb03f,_0x55dd3a={'SuhjD':function(_0x974027,_0x59d51c){return _0x974027+_0x59d51c;},'sMkap':_0x57e42e(0x2e7),'pDvwW':_0x57e42e(0x2b8),'LnfYN':function(_0x29618c,_0x17c36a){return _0x29618c||_0x17c36a;},'eQRhv':_0x57e42e(0x220),'gMsIW':'Error\x20Details:\x0a','oCRyb':'Cluster\x20details\x0a-----------------------\x0a','kEoOV':function(_0x551502,_0x5a973c){return _0x551502!=_0x5a973c;},'XwgXt':_0x57e42e(0x207),'zBNiu':_0x57e42e(0x297),'hhtwC':function(_0x12dd4a){return _0x12dd4a();}};let _0x19d903=_0x57e42e(0x2ad)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x2e2498[_0x57e42e(0x245)]((_0x4ff759,_0x5e9fc3)=>{const _0x5b9642=_0x57e42e,{header:_0x2a6291,response:_0x424715}=_0x4ff759,{status:_0xc6797e,data:_0x35f860,error:_0x608513}=_0x424715;_0x19d903+=_0x2a6291+'\x20#'+_0x55dd3a['SuhjD'](_0x5e9fc3,0x1)+'\x0a',_0x19d903+=_0x5b9642(0x26c)+(_0xc6797e?_0x55dd3a[_0x5b9642(0x205)]:_0x55dd3a[_0x5b9642(0x279)])+'\x0a',_0x19d903+=_0x5b9642(0x2a7)+_0x55dd3a[_0x5b9642(0x2b0)](_0x35f860,_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x608513&&(_0x19d903+=_0x55dd3a['gMsIW'],_0x19d903+=_0x5b9642(0x1ff)+(_0x608513[_0x5b9642(0x285)]||_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x19d903+=_0x5b9642(0x28d)+(_0x608513[_0x5b9642(0x20d)]||_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x19d903+=_0x5b9642(0x289)+(_0x608513[_0x5b9642(0x2d7)]||_0x55dd3a['eQRhv'])+'\x0a'),_0x19d903+='\x0a\x0a';}),_0x19d903+=_0x55dd3a[_0x57e42e(0x1f6)],_0x55dd3a[_0x57e42e(0x24f)](_0x55dd3d,null)?_0x19d903+=_0x57e42e(0x2d8)+global_registry['clusterName']+'\x20'+(_0x55dd3d?_0x55dd3a[_0x57e42e(0x2c2)]:_0x55dd3a[_0x57e42e(0x1f0)])+'\x0a\x0a':_0x19d903+='Cluster\x20'+global_registry[_0x57e42e(0x2af)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x19d903+=_0x55dd3a[_0x57e42e(0x293)](getSystemMetaData),_0x19d903;};exports[a17_0x3fb03f(0x292)]=async function(_0x640ba6){const _0x2393ba=a17_0x3fb03f,_0x51db19={'cdTpb':function(_0x188317){return _0x188317();},'kJCru':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','txGkj':function(_0x4f9632,_0x4ade4c,_0x4d8881,_0x1a1f83,_0xb047e5,_0x657e0f,_0x4dea5c,_0x2df709){return _0x4f9632(_0x4ade4c,_0x4d8881,_0x1a1f83,_0xb047e5,_0x657e0f,_0x4dea5c,_0x2df709);},'sAShS':_0x2393ba(0x21a),'iVykc':_0x2393ba(0x29d),'CdVRc':_0x2393ba(0x272),'xdSer':function(_0x2342ec,_0x2cb839,_0x7834b3,_0x4c49b2,_0x4cc5bb,_0x1d66e5,_0x2cdcfa){return _0x2342ec(_0x2cb839,_0x7834b3,_0x4c49b2,_0x4cc5bb,_0x1d66e5,_0x2cdcfa);},'NrbDj':_0x2393ba(0x2c6),'qlSNW':_0x2393ba(0x2c0),'Qjqxn':function(_0x4227e6,_0x550070,_0x5b8c0e){return _0x4227e6(_0x550070,_0x5b8c0e);},'waqmq':'dummy-grid','dIGpY':function(_0x13f3fd,_0x55254f,_0x39a550){return _0x13f3fd(_0x55254f,_0x39a550);},'ZpnKv':_0x2393ba(0x283),'jApDW':_0x2393ba(0x2c8),'EwxtJ':function(_0xdf22b8,_0x5bc0a0,_0x2b6425,_0x4d1d18,_0x2d9a4e,_0x29a07d,_0x493905,_0x53e760){return _0xdf22b8(_0x5bc0a0,_0x2b6425,_0x4d1d18,_0x2d9a4e,_0x29a07d,_0x493905,_0x53e760);},'fjlrV':function(_0x4eec8f,_0x20a607,_0x30c0f8){return _0x4eec8f(_0x20a607,_0x30c0f8);},'SlbWE':_0x2393ba(0x2b2),'SgOnA':function(_0x5a7a03){return _0x5a7a03();},'ZScfT':_0x2393ba(0x2dc),'gvqRq':function(_0x3ed2bd,_0x25ae12){return _0x3ed2bd(_0x25ae12);},'MmVgM':_0x2393ba(0x25c),'dQmVR':'isTls1_2_SUPPORTED','VHNtw':_0x2393ba(0x2cd),'dNmDR':_0x2393ba(0x1f2),'naoAg':_0x2393ba(0x2be),'BRcbz':_0x2393ba(0x2e1),'UQsvv':function(_0x683ba4,_0x120338){return _0x683ba4+_0x120338;},'KGmuc':_0x2393ba(0x295),'DIPZO':_0x2393ba(0x242)};let _0x5de5fb,_0xa2c93c;try{global_registry['requestId']=_0x51db19[_0x2393ba(0x29a)](uuidv4);!fs[_0x2393ba(0x200)](_0x51db19[_0x2393ba(0x29a)](getCredentialsPath))&&(_0xa2c93c=_0x51db19['kJCru'],logger[_0x2393ba(0x272)](_0xa2c93c),await _0x51db19[_0x2393ba(0x266)](reportToGalactusAndSendToEDS,_0x640ba6,_0x5de5fb,_0xa2c93c,messageTypes[_0x2393ba(0x254)],_0x51db19[_0x2393ba(0x22d)],_0x51db19['iVykc'],_0x51db19[_0x2393ba(0x2b1)]),process[_0x2393ba(0x2a6)](0x1));_0x51db19['xdSer'](sendInstrumentationEvent,_0x640ba6,_0x51db19[_0x2393ba(0x22d)],messageTypes[_0x2393ba(0x2cb)],null,null,_0x640ba6);const _0x4ec286=JSON['parse'](fs[_0x2393ba(0x238)](_0x51db19['cdTpb'](getCredentialsPath)));global_registry[_0x2393ba(0x26f)]=_0x4ec286[_0x2393ba(0x2b6)][_0x2393ba(0x23c)],global_registry[_0x2393ba(0x290)]=_0x4ec286['Browserstack'][_0x2393ba(0x1fe)];const _0x3c9b1c=WS_ENDPOINT[_0x2393ba(0x28b)](_0x51db19[_0x2393ba(0x27c)],_0x4ec286['Browserstack'][_0x2393ba(0x23c)])['replace'](_0x51db19['qlSNW'],_0x4ec286[_0x2393ba(0x2b6)][_0x2393ba(0x1fe)]),_0x4db02a={};_0x4db02a['WebSocket']=ws,_0x4db02a[_0x2393ba(0x1f5)]=0x36ee80,_0x5de5fb=new ReconnectingWebSocket(_0x3c9b1c,[],_0x4db02a),global_registry['authHeader']=_0x51db19[_0x2393ba(0x29b)](getAuthHeader,global_registry[_0x2393ba(0x26f)],global_registry[_0x2393ba(0x290)]),await _0x51db19[_0x2393ba(0x29b)](inputValidation,_0x640ba6,_0x5de5fb),logger['info'](_0x2393ba(0x2aa)+global_registry[_0x2393ba(0x246)]+_0x2393ba(0x28f)+global_registry['clusterRegion']);let _0x4ad258=await _0x51db19[_0x2393ba(0x244)](getCloudProviderObjectWithOutInit,global_registry[_0x2393ba(0x246)],global_registry[_0x2393ba(0x2af)],_0x51db19[_0x2393ba(0x258)],_0x5de5fb,webSocketUtils,_0x640ba6);const _0x578b92=await _0x4ad258['isCliToolInstalled']();_0x51db19[_0x2393ba(0x203)](printResponse,_0x51db19[_0x2393ba(0x1fd)],_0x578b92),_0x4ad258=await _0x4ad258['init']();let _0x543a42=![];try{_0x543a42=await _0x4ad258[_0x2393ba(0x21b)]();}catch(_0x34b10a){const _0xfb48fb=_0x51db19[_0x2393ba(0x280)][_0x2393ba(0x25f)]('|');let _0x32396b=0x0;while(!![]){switch(_0xfb48fb[_0x32396b++]){case'0':_0xa2c93c+='\x0a'+JSON[_0x2393ba(0x22b)](_0x34b10a[_0x2393ba(0x2d7)]);continue;case'1':_0xa2c93c=_0x2393ba(0x243)+global_registry[_0x2393ba(0x2af)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x2393ba(0x24e)]+_0x2393ba(0x2e9)+_0x34b10a;continue;case'2':logger['error'](_0xa2c93c);continue;case'3':_0x543a42=null;continue;case'4':await _0x51db19[_0x2393ba(0x206)](reportToGalactusAndSendToEDS,_0x640ba6,_0x5de5fb,_0xa2c93c,messageTypes[_0x2393ba(0x254)],_0x51db19['sAShS'],_0x2393ba(0x27b)+global_registry[_0x2393ba(0x246)],_0x51db19[_0x2393ba(0x2b1)]);continue;}break;}}_0x543a42&&logger['info'](_0x2393ba(0x260)+global_registry[_0x2393ba(0x2af)]+_0x2393ba(0x2c7));const _0x2c6355=await _0x4ad258[_0x2393ba(0x2ce)]();_0x51db19['fjlrV'](printResponse,_0x51db19[_0x2393ba(0x2d1)],_0x2c6355);const _0x29c2d0=await _0x51db19[_0x2393ba(0x231)](curlRequest);_0x51db19[_0x2393ba(0x203)](printResponse,_0x51db19[_0x2393ba(0x2a4)],_0x29c2d0);const _0x390412=await _0x51db19[_0x2393ba(0x226)](isTlsSupported,_0x51db19[_0x2393ba(0x21d)]);_0x51db19[_0x2393ba(0x29b)](printResponse,_0x51db19[_0x2393ba(0x27e)],_0x390412);const _0x31b672={};_0x31b672[_0x2393ba(0x216)]=_0x51db19[_0x2393ba(0x2b9)],_0x31b672['response']=_0x578b92;const _0x5217cf={};_0x5217cf['header']=_0x51db19[_0x2393ba(0x21c)],_0x5217cf[_0x2393ba(0x288)]=_0x2c6355;const _0x3cf4f0={};_0x3cf4f0['header']=_0x51db19[_0x2393ba(0x294)],_0x3cf4f0['response']=_0x29c2d0;const _0x354286={};_0x354286[_0x2393ba(0x216)]=_0x51db19[_0x2393ba(0x211)],_0x354286[_0x2393ba(0x288)]=_0x390412;const _0x17c305=[_0x31b672,_0x5217cf,_0x3cf4f0,_0x354286],_0x26c702=await _0x51db19[_0x2393ba(0x29b)](generateReport,_0x17c305,_0x543a42),_0x260721=new Date(),_0x46290c=_0x260721[_0x2393ba(0x2c3)]()+'_'+_0x51db19['UQsvv'](_0x260721[_0x2393ba(0x221)](),0x1)+'_'+_0x260721['getUTCDate']()+'_'+_0x260721['getUTCHours']()+'_'+_0x260721['getUTCMinutes'](),_0x3cdea1=_0x2393ba(0x28e)+_0x46290c+_0x2393ba(0x202);fs['writeFileSync'](_0x3cdea1,_0x26c702,_0x51db19[_0x2393ba(0x223)]),logger[_0x2393ba(0x21f)]('Report\x20saved\x20in\x20'+_0x3cdea1),process['exit'](0x0);}catch(_0x43325e){let _0x4f43d9=_0x2393ba(0x270)+_0x43325e+'\x20';logger[_0x2393ba(0x272)](_0x4f43d9),_0x4f43d9+='\x0a'+JSON['stringify'](_0x43325e[_0x2393ba(0x2d7)]),logger[_0x2393ba(0x2e0)]('stack\x20trace\x20'+_0x43325e['stack']);if(_0x5de5fb){const _0x54e938={};_0x54e938['type']=WS_EVENTS['LOG'],_0x54e938['message']=_0x4f43d9,webSocketUtils['sendEventToBackend'](_0x5de5fb,_0x54e938,_0x51db19[_0x2393ba(0x2b1)],!![]);}await webSocketUtils[_0x2393ba(0x232)](0x7d0);const _0xaa7eb={};_0xaa7eb[_0x2393ba(0x272)]=_0x4f43d9,await _0x51db19[_0x2393ba(0x244)](sendInstrumentationEvent,_0x640ba6,_0x51db19['sAShS'],messageTypes[_0x2393ba(0x254)],_0x51db19[_0x2393ba(0x25a)],_0xaa7eb,_0x640ba6),process[_0x2393ba(0x2a6)](0x1);}};
|
|
1
|
+
const a17_0x3900fd=a17_0x46ef;(function(_0x40207c,_0x334a66){const _0x2d702d=a17_0x46ef,_0x4a8e27=_0x40207c();while(!![]){try{const _0x326bef=-parseInt(_0x2d702d(0x1d9))/0x1+-parseInt(_0x2d702d(0x22a))/0x2*(parseInt(_0x2d702d(0x1a5))/0x3)+parseInt(_0x2d702d(0x23f))/0x4*(-parseInt(_0x2d702d(0x1d4))/0x5)+-parseInt(_0x2d702d(0x216))/0x6+parseInt(_0x2d702d(0x24d))/0x7*(parseInt(_0x2d702d(0x247))/0x8)+parseInt(_0x2d702d(0x1e5))/0x9*(-parseInt(_0x2d702d(0x1e6))/0xa)+parseInt(_0x2d702d(0x204))/0xb;if(_0x326bef===_0x334a66)break;else _0x4a8e27['push'](_0x4a8e27['shift']());}catch(_0x59c157){_0x4a8e27['push'](_0x4a8e27['shift']());}}}(a17_0x471a,0x438e2));function a17_0x471a(){const _0x23000b=['GrlLr','gridProfile','xAgtQ','KyXaW','requestId','cloud-provider-not-supported','EzQyi','grid-profile','Setting\x20cloud\x20provider\x20as\x20','JOLsw','faEbS','tfTWB','SSL\x20Configured','cpCZN','Status:\x20','../../utils/utilityMethods','will\x20be\x20created','iVeYh','OIXaL','LEvXM','bdGhf','cloudProvider','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','status','IcbwB','region','Cluster\x20details\x0a-----------------------\x0a','ELfun','kyRAC','command','info','exit','MpjxB','Browserstack','header','xGzMJ','erUGR','stringify','ppBYC','isClusterPresent','hHxgt','2529rConHt','GEnnv','tNuCG','SQXFo','checkAccess','YBjsr','cluster-name','../../cloudproviders/utils','forEach','lwwxu','`\x20already\x20exists','writeFileSync','gJjhv','cvBRm','error\x20stack\x20:\x20','Tseih','sacfA','cqwJr','fSCaY','/packages/cli/get-all-grid-profiles','rnyLw','UPFMP','ymoix','BPtTk','vwHiX','Error\x20Details:\x0a','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WqcfA','FpgFQ','CHMBW','rNduO','ERROR','NQLuP','message','YBWui','length','ytTXh','snAjN','epilogue','AdWyB','fQUBH','push','fASNP','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','string','jsVKk','readFileSync','365qyPbwN','usage','../../config/logger','Missing\x20required\x20arguments:\x20','../../config/constants','214376CedCaa','`\x20is\x20present\x20in\x20region\x20`','hxakP','.\x20Please\x20provide\x20all\x20required\x20arguments.','fXLnQ','Whitelisted\x20browserstack','argv','HPQxV','log/report_','PMyyX','type','hymce','21933MGJzLO','1660TwYZSJ','join','\x20\x20Code:\x20','iLubE','CAzDV','BQHPi','getUTCMinutes','YSENC','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','connectionTimeout','iijVQ','cloud-provider','AnrBb','find','description','Mzacc','EaoLG','dJGHV','eBsIF','gBsnv','init','cluster-check-failed-','clusterName','grid\x20profile\x20flow\x20','clusterRegion','grid','\x20data\x20:\x20','handler','xucVU','OyVns','18689770XHPKSg','TXEeX','\x20===\x0a\x0a','username','wqbYI','<UsernamePlaceholder>','YasEm','\x20\x20Message:\x20','HcdBE','builder','jcTcz','getUTCHours','options','Failure','wYFRW','sendEventToBackend','authHeader','../../utils/instrumentationUtils','2739114RcbUOK','help','bstackAccesskey','is\x20already\x20present','cycYg','code','pre-check-grid-called','Sdrsw',']\x20status\x20:\x20','.txt','error','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Message:\x20','lKoqm','CLOUD_PROVIDER','Success','eYSKA','bstackUsername','getUTCMonth','uhStC','860rRRsRc','gOysT','dummy-grid','TLSv1_2_client_method','KPMmh','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','`\x20,error\x20:\x20','usCpu','https://','\x20\x20Stack:\x20','CKMAa','toLowerCase','Yqvsr','uuid','VFlvw','CzJAl','PWCWF','N/A','data','eTqIC','pre_check','24060yxCnwJ','TyZrp','isTrialGridAccessible','pre-check','getUTCDate','QkSpl','umuyY','debug','12944JprUxc','replace','XuLxn','existsSync','Failed\x20in\x20pre-check!\x20Error:\x20','\x20error\x20:\x20','1967jHacBG','body','Thbgm','cNAcK','bOXik','RJOuG','stack','URCfc','<PasswordPlaceholder>','dlhmW','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Report\x20saved\x20in\x20','Cluster\x20','IwHzF','mHFHI','\x20region\x20-\x20','desc','Vdnqr','gOeAt','sYfhk','LOG','delay','User\x20Access','jFPUQ','Grid\x20profile\x20fetched\x20for\x20pre-check','AsXQU','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','JJyTt','IjNVg','unable\x20to\x20verify\x20if\x20cluster\x20`','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','parse','isCliToolInstalled','uKHTr','LePyg','reconnecting-websocket','Invalid\x20input.\x20grid\x20profiles:\x20','iZuXy','accessResp','iSMYf','response','pre-check-grid-profile-empty','Cluster\x20`','UcpUb','anMwt','method','isTls1_2_SUPPORTED','yjSLD','xbHVk'];a17_0x471a=function(){return _0x23000b;};return a17_0x471a();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x3900fd(0x237)),ReconnectingWebSocket=require(a17_0x3900fd(0x16e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3900fd(0x18b)),{logger}=require(a17_0x3900fd(0x1d6)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x3900fd(0x1d8)),{getCloudProviderObjectWithOutInit}=require(a17_0x3900fd(0x1ac)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x3900fd(0x215));exports[a17_0x3900fd(0x199)]=a17_0x3900fd(0x1ff),exports[a17_0x3900fd(0x15b)]=a17_0x3900fd(0x169),exports[a17_0x3900fd(0x20d)]=function(_0xc25fb0){const _0x554330=a17_0x3900fd,_0x3b8254={};_0x3b8254['cNAcK']=_0x554330(0x1ee),_0x3b8254[_0x554330(0x1bd)]=_0x554330(0x1d1),_0x3b8254[_0x554330(0x187)]=_0x554330(0x221),_0x3b8254[_0x554330(0x22e)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3b8254[_0x554330(0x1ea)]=_0x554330(0x1bf),_0x3b8254['ELfun']=_0x554330(0x217);const _0x4b24e1=_0x3b8254,_0x17863d={};_0x17863d[_0x554330(0x1f4)]=_0x4b24e1[_0x554330(0x250)],_0x17863d[_0x554330(0x1e3)]=_0x4b24e1['vwHiX'];const _0x29f89a={};_0x29f89a[_0x554330(0x1f4)]=_0x4b24e1['tfTWB'],_0x29f89a[_0x554330(0x1e3)]=_0x4b24e1[_0x554330(0x1bd)];const _0x1efa98={};_0x1efa98[_0x554330(0x1f4)]=_0x4b24e1[_0x554330(0x22e)],_0x1efa98[_0x554330(0x1e3)]=_0x4b24e1['vwHiX'];const _0x54aa86={};_0x54aa86['description']=_0x4b24e1[_0x554330(0x1ea)],_0x54aa86[_0x554330(0x1e3)]=_0x4b24e1['vwHiX'];const _0x5c2afe={};return _0x5c2afe[_0x554330(0x1ab)]=_0x17863d,_0x5c2afe[_0x554330(0x1f1)]=_0x29f89a,_0x5c2afe[_0x554330(0x195)]=_0x1efa98,_0x5c2afe[_0x554330(0x183)]=_0x54aa86,_0xc25fb0[_0x554330(0x1d5)](HELP_HEADER_MESSAGE[_0x554330(0x23e)])[_0x554330(0x1cb)](HELP_FOOTER_MESSAGE)[_0x554330(0x210)](_0x5c2afe)['help'](_0x4b24e1[_0x554330(0x197)])[_0x554330(0x1df)];};async function inputValidation(_0x3a8b7f,_0x41d080){const _0x434ff5=a17_0x3900fd,_0x25e8ce={'rNduO':_0x434ff5(0x1f1),'dlhmW':_0x434ff5(0x220),'wqbYI':_0x434ff5(0x1be),'GEnnv':_0x434ff5(0x23b),'URCfc':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','PMyyX':'string','Tseih':_0x434ff5(0x221),'gJTVR':_0x434ff5(0x192),'FpgFQ':_0x434ff5(0x1bf),'ppBYC':_0x434ff5(0x217),'lKoqm':_0x434ff5(0x1d0),'sYfhk':function(_0x3c327b,_0xd243eb){return _0x3c327b+_0xd243eb;},'NQLuP':_0x434ff5(0x225),'BPtTk':_0x434ff5(0x211),'JOLsw':function(_0x473e57,_0x5b69e3){return _0x473e57||_0x5b69e3;},'gJjhv':_0x434ff5(0x195),'OIXaL':_0x434ff5(0x1ab),'hxakP':function(_0xea5e4e,_0x230f36){return _0xea5e4e===_0x230f36;},'BQHPi':_0x434ff5(0x1c2),'rnyLw':function(_0x9e4f02,_0x464cc7){return _0x9e4f02!==_0x464cc7;},'gaQZh':_0x434ff5(0x17b),'OXHtP':'uWVrM','WqcfA':function(_0x52c083,_0x111119){return _0x52c083!==_0x111119;},'Mzacc':_0x434ff5(0x205),'jFPUQ':_0x434ff5(0x17a),'CKMAa':_0x434ff5(0x1a7),'jcTcz':_0x434ff5(0x1bb),'ytTXh':_0x434ff5(0x1f2),'QHahb':function(_0x43d866,_0x4495a3){return _0x43d866>_0x4495a3;},'KmfzT':'ruYdN','xGzMJ':'BePRC','wYFRW':function(_0x5710bb,_0x39911e,_0x40f322,_0x475778,_0x3a0ca2,_0x27e3d2,_0x5c1ff9,_0x114e8f){return _0x5710bb(_0x39911e,_0x40f322,_0x475778,_0x3a0ca2,_0x27e3d2,_0x5c1ff9,_0x114e8f);},'kyRAC':_0x434ff5(0x21c),'eYSKA':'pre-check-cluster-args-not-passed','zQSbS':function(_0x4848be,_0x28dc3b){return _0x4848be!==_0x28dc3b;},'Vdnqr':_0x434ff5(0x16d),'IwHzF':_0x434ff5(0x257),'LEvXM':function(_0x50ab73,_0x175f5c,_0x1ca877,_0x4e504a,_0x19f5c4,_0x382235,_0x2799cb,_0x41681b){return _0x50ab73(_0x175f5c,_0x1ca877,_0x4e504a,_0x19f5c4,_0x382235,_0x2799cb,_0x41681b);},'iZuXy':_0x434ff5(0x181),'fSCaY':_0x434ff5(0x1e0),'YBWui':_0x434ff5(0x17e),'AsXQU':'THKAA','dsBWp':_0x434ff5(0x1cc),'VFlvw':'GET','POgEk':function(_0x4882f8,_0x7d24d2,_0x27e11c){return _0x4882f8(_0x7d24d2,_0x27e11c);},'faEbS':function(_0x54b1fe,_0x40d6a2,_0xbf5841,_0x3f6515,_0x5b9052,_0x284ded){return _0x54b1fe(_0x40d6a2,_0xbf5841,_0x3f6515,_0x5b9052,_0x284ded);},'DGBLy':_0x434ff5(0x242),'cvBRm':_0x434ff5(0x183),'JJyTt':function(_0x44ad65,_0x598d41){return _0x44ad65===_0x598d41;},'aamgI':function(_0x116859,_0x5ac008){return _0x116859!==_0x5ac008;},'cqwJr':_0x434ff5(0x190),'byTUj':function(_0x1b046a,_0x453177){return _0x1b046a(_0x453177);},'GfWkr':function(_0x3a1311,_0x5b6b76){return _0x3a1311===_0x5b6b76;},'lwwxu':_0x434ff5(0x1cf),'cycYg':'fXduK','IjNVg':function(_0x491868,_0x34ccc2,_0x5f2acd,_0x5febb8,_0x18fc51,_0x5be720,_0x4f7206,_0x536700){return _0x491868(_0x34ccc2,_0x5f2acd,_0x5febb8,_0x18fc51,_0x5be720,_0x4f7206,_0x536700);},'Yqvsr':_0x434ff5(0x174),'umuyY':_0x434ff5(0x1a0),'XuLxn':'kBfrq','KyXaW':_0x434ff5(0x20a),'Sdrsw':_0x434ff5(0x163),'eBsIF':_0x434ff5(0x23a),'MpjxB':function(_0x154847,_0x349464){return _0x154847!==_0x349464;},'snAjN':_0x434ff5(0x194),'gOeAt':function(_0x3f0845,_0x5c2abc,_0x410d90,_0x15adfb,_0x4d86c1,_0x28f291,_0x3d3432,_0x12aef6){return _0x3f0845(_0x5c2abc,_0x410d90,_0x15adfb,_0x4d86c1,_0x28f291,_0x3d3432,_0x12aef6);}};let _0x117c70;try{if(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x1eb)],_0x25e8ce['BQHPi'])){if(_0x3a8b7f[_0x434ff5(0x1fc)]||_0x3a8b7f[_0x434ff5(0x191)]||_0x3a8b7f[_0x434ff5(0x195)]){if(_0x25e8ce[_0x434ff5(0x1b9)](_0x25e8ce['gaQZh'],_0x25e8ce['OXHtP'])){const _0x265b14=[];!_0x3a8b7f[_0x434ff5(0x1fc)]&&(_0x25e8ce[_0x434ff5(0x1c0)](_0x25e8ce[_0x434ff5(0x1f5)],_0x25e8ce[_0x434ff5(0x1f5)])?_0x4a32e1[_0x434ff5(0x1ce)](_0x25e8ce[_0x434ff5(0x1c3)]):_0x265b14['push'](_0x25e8ce[_0x434ff5(0x18e)]));;if(!_0x3a8b7f[_0x434ff5(0x191)]){if(_0x25e8ce['hxakP'](_0x25e8ce[_0x434ff5(0x162)],_0x25e8ce[_0x434ff5(0x234)])){const _0x2d9114={};_0x2d9114[_0x434ff5(0x1e3)]=_0x173d33['LOG'],_0x2d9114[_0x434ff5(0x1c6)]=_0x3d08e2,_0x432c10[_0x434ff5(0x213)](_0x1b5828,_0x2d9114,_0x25e8ce[_0x434ff5(0x256)],!![]);}else _0x265b14['push'](_0x25e8ce[_0x434ff5(0x1c3)]);};!_0x3a8b7f[_0x434ff5(0x195)]&&(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x20e)],_0x25e8ce[_0x434ff5(0x1c9)])?_0x282e16['exit'](0x1):_0x265b14[_0x434ff5(0x1ce)](_0x25e8ce[_0x434ff5(0x1b1)]));;_0x25e8ce['QHahb'](_0x265b14[_0x434ff5(0x1c8)],0x0)&&(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce['KmfzT'],_0x25e8ce[_0x434ff5(0x19f)])?(_0xdd5cec+=_0x25e8ce[_0x434ff5(0x208)],_0x31a0a8+='\x20\x20Message:\x20'+(_0x2c583a[_0x434ff5(0x1c6)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0xde6f82+='\x20\x20Code:\x20'+(_0x3a45fe[_0x434ff5(0x21b)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0x3c3666+=_0x434ff5(0x233)+(_0x55b174[_0x434ff5(0x253)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a'):(_0x117c70=_0x434ff5(0x1d7)+_0x265b14[_0x434ff5(0x1e7)](',\x20')+_0x434ff5(0x1dc),await _0x25e8ce[_0x434ff5(0x212)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce[_0x434ff5(0x226)],_0x25e8ce['dlhmW']),logger[_0x434ff5(0x220)](_0x117c70),process[_0x434ff5(0x19b)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x3a8b7f['cloudProvider'][_0x434ff5(0x235)]())&&(_0x25e8ce['zQSbS'](_0x25e8ce[_0x434ff5(0x15c)],_0x25e8ce[_0x434ff5(0x15c)])?_0xf16eb7['error'](_0x434ff5(0x1b3)+_0x110ede['error']['stack']):(_0x117c70=_0x25e8ce[_0x434ff5(0x25a)],await _0x25e8ce[_0x434ff5(0x18f)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce[_0x434ff5(0x170)],_0x25e8ce['dlhmW']),logger[_0x434ff5(0x220)](_0x117c70),!_0x3a8b7f['cloudProvider']&&(_0x25e8ce['hxakP'](_0x25e8ce[_0x434ff5(0x1b7)],_0x25e8ce[_0x434ff5(0x1c7)])?_0x1614f9=_0x5ad958:(logger[_0x434ff5(0x19a)](_0x434ff5(0x184)+DEFAULT_CLUSTER_DETAILS[_0x434ff5(0x224)]+'\x20'),_0x3a8b7f[_0x434ff5(0x191)]=DEFAULT_CLUSTER_DETAILS[_0x434ff5(0x224)])))),global_registry['clusterName']=_0x3a8b7f['clusterName'],global_registry[_0x434ff5(0x191)]=_0x3a8b7f['cloudProvider'],global_registry['clusterRegion']=_0x3a8b7f[_0x434ff5(0x195)];}else{const _0x2da30b={};_0x2da30b[_0x434ff5(0x1f4)]=_0x25e8ce[_0x434ff5(0x254)],_0x2da30b['type']=_0x25e8ce['PMyyX'];const _0x3b48b7={};_0x3b48b7[_0x434ff5(0x1f4)]=_0x25e8ce[_0x434ff5(0x1b4)],_0x3b48b7[_0x434ff5(0x1e3)]=_0x25e8ce[_0x434ff5(0x1e2)];const _0x27aca7={};_0x27aca7[_0x434ff5(0x1f4)]=_0x25e8ce['gJTVR'],_0x27aca7['type']=_0x25e8ce[_0x434ff5(0x1e2)];const _0x2625e1={};_0x2625e1[_0x434ff5(0x1f4)]=_0x25e8ce[_0x434ff5(0x1c1)],_0x2625e1[_0x434ff5(0x1e3)]=_0x25e8ce[_0x434ff5(0x1e2)];const _0x1bc578={};return _0x1bc578[_0x434ff5(0x1ab)]=_0x2da30b,_0x1bc578[_0x434ff5(0x1f1)]=_0x3b48b7,_0x1bc578[_0x434ff5(0x195)]=_0x27aca7,_0x1bc578['grid-profile']=_0x2625e1,_0x1d9327['usage'](_0xbcef5b[_0x434ff5(0x23e)])[_0x434ff5(0x1cb)](_0x29f404)[_0x434ff5(0x210)](_0x1bc578)[_0x434ff5(0x217)](_0x25e8ce[_0x434ff5(0x1a2)])['argv'];}}else{if(_0x3a8b7f[_0x434ff5(0x17d)]){if(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x164)],_0x25e8ce['dsBWp']))_0x263076['error'](_0x25e8ce['lKoqm']),_0x3aa0b9[_0x434ff5(0x19b)](0x1);else{global_registry[_0x434ff5(0x17d)]=_0x3a8b7f[_0x434ff5(0x17d)],logger[_0x434ff5(0x246)](_0x434ff5(0x1fd)+_0x3a8b7f[_0x434ff5(0x17d)]);const _0x4edd8b=_0x434ff5(0x232)+AG_API_URL+_0x434ff5(0x1b8),_0x442a73={};_0x442a73[_0x434ff5(0x178)]=_0x25e8ce[_0x434ff5(0x238)],_0x442a73['headers']=global_registry['authHeader'],_0x442a73['throwHttpErrors']=![];const _0x5b788e=_0x442a73,_0x208205=await _0x25e8ce['POgEk'](got,_0x4edd8b,_0x5b788e),_0xf46173=await _0x25e8ce[_0x434ff5(0x186)](responseValidation,_0x208205,_0x25e8ce['DGBLy'],_0x25e8ce[_0x434ff5(0x1b2)],_0x3a8b7f,_0x41d080);let _0x260caf={};if(_0x25e8ce[_0x434ff5(0x166)](_0xf46173,0xc8)){if(_0x25e8ce['aamgI'](_0x25e8ce['cqwJr'],_0x25e8ce[_0x434ff5(0x1b6)])){const {header:_0x1c6348,response:_0x708849}=_0x36e9da,{status:_0x569d50,data:_0x4af6f7,error:_0x4388d5}=_0x708849;_0x24df86+=_0x1c6348+'\x20#'+_0x25e8ce[_0x434ff5(0x15e)](_0x20b96a,0x1)+'\x0a',_0x2aedc5+=_0x434ff5(0x18a)+(_0x569d50?_0x25e8ce[_0x434ff5(0x1c5)]:_0x25e8ce[_0x434ff5(0x1bc)])+'\x0a',_0x50d288+=_0x434ff5(0x222)+_0x25e8ce[_0x434ff5(0x185)](_0x4af6f7,_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0x4388d5&&(_0x6123c+=_0x25e8ce[_0x434ff5(0x208)],_0x26e57a+=_0x434ff5(0x20b)+(_0x4388d5['message']||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0x44beeb+='\x20\x20Code:\x20'+(_0x4388d5['code']||_0x25e8ce['GEnnv'])+'\x0a',_0x9b12a3+=_0x434ff5(0x233)+(_0x4388d5[_0x434ff5(0x253)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a'),_0x487bf8+='\x0a\x0a';}else{const _0x78bf20=JSON[_0x434ff5(0x16a)](_0x208205[_0x434ff5(0x24e)]),_0x25b6ac=_0x78bf20[_0x434ff5(0x1f3)](_0x5c4b78=>_0x5c4b78['name']===_0x3a8b7f[_0x434ff5(0x17d)])||null;_0x25e8ce['byTUj'](isUndefined,_0x25b6ac)?_0x25e8ce['GfWkr'](_0x25e8ce[_0x434ff5(0x1ae)],_0x25e8ce[_0x434ff5(0x21a)])?(_0x4b7f9d[_0x434ff5(0x19a)]('['+_0x2c2b4a+_0x434ff5(0x21e)+_0x44b80e[_0x434ff5(0x193)]+_0x434ff5(0x200)+_0x13c044[_0x434ff5(0x23c)]+_0x434ff5(0x24c)+_0x5d4c1c[_0x434ff5(0x220)]),_0x43d751['error']&&_0x91d05d[_0x434ff5(0x220)](_0x434ff5(0x1b3)+_0xeacf09[_0x434ff5(0x220)][_0x434ff5(0x253)])):(_0x117c70=_0x434ff5(0x16f)+_0x3a8b7f[_0x434ff5(0x17d)]+_0x434ff5(0x165),await _0x25e8ce[_0x434ff5(0x167)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce[_0x434ff5(0x236)],_0x25e8ce['dlhmW']),logger[_0x434ff5(0x220)](_0x117c70),process['exit'](0x1)):_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x245)],_0x25e8ce[_0x434ff5(0x249)])?(_0x58eb5a['info'](_0x434ff5(0x184)+_0xcc144e[_0x434ff5(0x224)]+'\x20'),_0x5e5f2d[_0x434ff5(0x191)]=_0x3d64bc[_0x434ff5(0x224)]):_0x260caf=_0x25b6ac;}}else _0x25e8ce['GfWkr'](_0x25e8ce[_0x434ff5(0x17f)],_0x25e8ce[_0x434ff5(0x17f)])?process['exit'](0x1):_0x59ea30[_0x434ff5(0x1ce)](_0x25e8ce[_0x434ff5(0x1b1)]);const _0x51c869={};_0x51c869[_0x434ff5(0x1e3)]=WS_EVENTS['LOG'],_0x51c869['message']=_0x25e8ce[_0x434ff5(0x21d)],webSocketUtils[_0x434ff5(0x213)](_0x41d080,_0x51c869),global_registry[_0x434ff5(0x191)]=_0x260caf[_0x434ff5(0x191)],global_registry['clusterRegion']=_0x260caf[_0x434ff5(0x195)],global_registry[_0x434ff5(0x1fc)]=_0x260caf[_0x434ff5(0x1fc)];}}else _0x25e8ce[_0x434ff5(0x1c0)](_0x25e8ce[_0x434ff5(0x1f8)],_0x25e8ce['eBsIF'])?_0x5ef7bd['push'](_0x25e8ce[_0x434ff5(0x18e)]):(logger['error'](_0x25e8ce[_0x434ff5(0x223)]),process[_0x434ff5(0x19b)](0x1));}}else _0x1f50f7[_0x434ff5(0x19a)]('Cluster\x20`'+_0x14a929[_0x434ff5(0x1fc)]+_0x434ff5(0x1af));}catch(_0x3557ad){_0x25e8ce[_0x434ff5(0x19c)](_0x25e8ce[_0x434ff5(0x1ca)],_0x25e8ce[_0x434ff5(0x1ca)])?_0x5360d9+=_0x434ff5(0x259)+_0x2d9e71[_0x434ff5(0x1fc)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x117c70='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x3557ad+':\x20'+_0x3557ad['stack'],logger[_0x434ff5(0x220)](_0x117c70),await _0x25e8ce[_0x434ff5(0x15d)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce['iZuXy'],_0x25e8ce[_0x434ff5(0x256)]),process[_0x434ff5(0x19b)](0x1));}}function printResponse(_0x205223,_0x37f833){const _0x76c279=a17_0x3900fd,_0x23ba3d={};_0x23ba3d[_0x76c279(0x1b5)]='is\x20already\x20present',_0x23ba3d[_0x76c279(0x240)]=_0x76c279(0x18c),_0x23ba3d[_0x76c279(0x24f)]=function(_0xc898bf,_0x4e87aa){return _0xc898bf!==_0x4e87aa;},_0x23ba3d[_0x76c279(0x18d)]=_0x76c279(0x159),_0x23ba3d[_0x76c279(0x1ed)]=_0x76c279(0x1a4);const _0x4df1cf=_0x23ba3d;logger[_0x76c279(0x19a)]('['+_0x205223+_0x76c279(0x21e)+_0x37f833['status']+'\x20data\x20:\x20'+_0x37f833[_0x76c279(0x23c)]+'\x20error\x20:\x20'+_0x37f833[_0x76c279(0x220)]),_0x37f833[_0x76c279(0x220)]&&(_0x4df1cf['Thbgm'](_0x4df1cf['iVeYh'],_0x4df1cf[_0x76c279(0x1ed)])?logger[_0x76c279(0x220)](_0x76c279(0x1b3)+_0x37f833[_0x76c279(0x220)][_0x76c279(0x253)]):_0x4116ff+='Cluster\x20'+_0x1dae43[_0x76c279(0x1fc)]+'\x20'+(_0x4f1b65?_0x4df1cf[_0x76c279(0x1b5)]:_0x4df1cf['TyZrp'])+'\x0a\x0a');}async function generateReport(_0x39814f,_0x21ae7e){const _0x928f89=a17_0x3900fd,_0x374c93={'uhStC':function(_0xeb2e68,_0x323f0f){return _0xeb2e68+_0x323f0f;},'RJOuG':'Success','gOysT':'Failure','OyVns':function(_0x2aadd1,_0x2d614b){return _0x2aadd1||_0x2d614b;},'iLubE':_0x928f89(0x23b),'wUloO':_0x928f89(0x1be),'aWiCr':_0x928f89(0x196),'xnTda':function(_0xa9993b,_0xfc7e8c){return _0xa9993b!=_0xfc7e8c;},'gBsnv':_0x928f89(0x219),'KXwcS':_0x928f89(0x18c),'SyQmJ':function(_0x2ce89b){return _0x2ce89b();}};let _0x211b3a='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x928f89(0x191)]+_0x928f89(0x206);return _0x39814f[_0x928f89(0x1ad)]((_0x1f9e2d,_0x34010d)=>{const _0x4370fa=_0x928f89,{header:_0x1b906a,response:_0x380a20}=_0x1f9e2d,{status:_0x2f42d2,data:_0x4acbe9,error:_0x255571}=_0x380a20;_0x211b3a+=_0x1b906a+'\x20#'+_0x374c93[_0x4370fa(0x229)](_0x34010d,0x1)+'\x0a',_0x211b3a+=_0x4370fa(0x18a)+(_0x2f42d2?_0x374c93[_0x4370fa(0x252)]:_0x374c93[_0x4370fa(0x22b)])+'\x0a',_0x211b3a+=_0x4370fa(0x222)+_0x374c93[_0x4370fa(0x203)](_0x4acbe9,_0x374c93[_0x4370fa(0x1e9)])+'\x0a',_0x255571&&(_0x211b3a+=_0x374c93['wUloO'],_0x211b3a+='\x20\x20Message:\x20'+(_0x255571[_0x4370fa(0x1c6)]||_0x374c93[_0x4370fa(0x1e9)])+'\x0a',_0x211b3a+=_0x4370fa(0x1e8)+(_0x255571['code']||_0x374c93[_0x4370fa(0x1e9)])+'\x0a',_0x211b3a+=_0x4370fa(0x233)+(_0x255571[_0x4370fa(0x253)]||_0x374c93[_0x4370fa(0x1e9)])+'\x0a'),_0x211b3a+='\x0a\x0a';}),_0x211b3a+=_0x374c93['aWiCr'],_0x374c93['xnTda'](_0x21ae7e,null)?_0x211b3a+=_0x928f89(0x259)+global_registry[_0x928f89(0x1fc)]+'\x20'+(_0x21ae7e?_0x374c93[_0x928f89(0x1f9)]:_0x374c93['KXwcS'])+'\x0a\x0a':_0x211b3a+=_0x928f89(0x259)+global_registry[_0x928f89(0x1fc)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x211b3a+=_0x374c93['SyQmJ'](getSystemMetaData),_0x211b3a;};function a17_0x46ef(_0x5626aa,_0x1041a8){const _0x471a06=a17_0x471a();return a17_0x46ef=function(_0x46efee,_0x4b3526){_0x46efee=_0x46efee-0x159;let _0x504516=_0x471a06[_0x46efee];return _0x504516;},a17_0x46ef(_0x5626aa,_0x1041a8);}exports[a17_0x3900fd(0x201)]=async function(_0x388ace){const _0x5380f1=a17_0x3900fd,_0x331fdb={'YBjsr':function(_0x476fc0){return _0x476fc0();},'ndecR':_0x5380f1(0x22f),'CzJAl':function(_0x34fa9d,_0x5b39e1,_0x42e76e,_0x4c5907,_0x27f791,_0x5e792f,_0x1d4e13,_0x559e17){return _0x34fa9d(_0x5b39e1,_0x42e76e,_0x4c5907,_0x27f791,_0x5e792f,_0x1d4e13,_0x559e17);},'fQUBH':'pre-check-grid-called','SQXFo':'credential-not-found','eTqIC':'error','uKHTr':function(_0x4fd63e,_0x36f0b5,_0xfefefd,_0x3af2f6,_0x2eb081,_0x4ccf7a,_0x48cfdd){return _0x4fd63e(_0x36f0b5,_0xfefefd,_0x3af2f6,_0x2eb081,_0x4ccf7a,_0x48cfdd);},'dJGHV':function(_0x379f1d){return _0x379f1d();},'HcdBE':_0x5380f1(0x209),'hymce':_0x5380f1(0x255),'fXLnQ':function(_0x4ccc53,_0x2c56ca,_0x135126){return _0x4ccc53(_0x2c56ca,_0x135126);},'UPFMP':function(_0x38b1f1,_0x990d81,_0x2991c8){return _0x38b1f1(_0x990d81,_0x2991c8);},'jsVKk':_0x5380f1(0x22c),'RZjxE':'toolInstalledResp','anMwt':'2|3|1|0|4','iijVQ':_0x5380f1(0x171),'EzQyi':_0x5380f1(0x241),'UcpUb':function(_0x111c41,_0x59a340){return _0x111c41(_0x59a340);},'gqLKc':_0x5380f1(0x22d),'xucVU':function(_0x31be38,_0x53b40a,_0x23cedb){return _0x31be38(_0x53b40a,_0x23cedb);},'bOXik':_0x5380f1(0x179),'ybUkA':'Tool\x20Installed','EaoLG':_0x5380f1(0x161),'iSMYf':_0x5380f1(0x1de),'qFAqA':_0x5380f1(0x188),'GrlLr':function(_0x5dc8d2,_0x2865c2,_0x56b094){return _0x5dc8d2(_0x2865c2,_0x56b094);},'usCpu':function(_0x1d4522,_0x55a820){return _0x1d4522+_0x55a820;},'YhDTi':'utf-8','cpCZN':function(_0x4aeddc,_0x3a9dfe,_0xad1867,_0x1fe932,_0xb63175,_0x5c48e8,_0x19b545){return _0x4aeddc(_0x3a9dfe,_0xad1867,_0x1fe932,_0xb63175,_0x5c48e8,_0x19b545);},'QkSpl':'pre-check-failed'};let _0x3c22ba,_0x351675;try{global_registry[_0x5380f1(0x180)]=_0x331fdb['YBjsr'](uuidv4);!fs[_0x5380f1(0x24a)](_0x331fdb[_0x5380f1(0x1aa)](getCredentialsPath))&&(_0x351675=_0x331fdb['ndecR'],logger[_0x5380f1(0x220)](_0x351675),await _0x331fdb[_0x5380f1(0x239)](reportToGalactusAndSendToEDS,_0x388ace,_0x3c22ba,_0x351675,messageTypes['ERROR'],_0x331fdb['fQUBH'],_0x331fdb[_0x5380f1(0x1a8)],_0x331fdb[_0x5380f1(0x23d)]),process[_0x5380f1(0x19b)](0x1));_0x331fdb[_0x5380f1(0x16c)](sendInstrumentationEvent,_0x388ace,_0x331fdb[_0x5380f1(0x1cd)],messageTypes['INFO'],null,null,_0x388ace);const _0x4dca17=JSON[_0x5380f1(0x16a)](fs[_0x5380f1(0x1d3)](_0x331fdb[_0x5380f1(0x1f7)](getCredentialsPath)));global_registry[_0x5380f1(0x227)]=_0x4dca17[_0x5380f1(0x19d)][_0x5380f1(0x207)],global_registry[_0x5380f1(0x218)]=_0x4dca17[_0x5380f1(0x19d)]['password'];const _0x5e00ba=WS_ENDPOINT[_0x5380f1(0x248)](_0x331fdb[_0x5380f1(0x20c)],_0x4dca17[_0x5380f1(0x19d)][_0x5380f1(0x207)])[_0x5380f1(0x248)](_0x331fdb[_0x5380f1(0x1e4)],_0x4dca17[_0x5380f1(0x19d)]['password']),_0x2312b9={};_0x2312b9['WebSocket']=ws,_0x2312b9[_0x5380f1(0x1ef)]=0x36ee80,_0x3c22ba=new ReconnectingWebSocket(_0x5e00ba,[],_0x2312b9),global_registry[_0x5380f1(0x214)]=_0x331fdb[_0x5380f1(0x1dd)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x5380f1(0x218)]),await _0x331fdb[_0x5380f1(0x1ba)](inputValidation,_0x388ace,_0x3c22ba),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x5380f1(0x191)]+_0x5380f1(0x15a)+global_registry['clusterRegion']);let _0x1761e1=await _0x331fdb[_0x5380f1(0x16c)](getCloudProviderObjectWithOutInit,global_registry[_0x5380f1(0x191)],global_registry['clusterName'],_0x331fdb[_0x5380f1(0x1d2)],_0x3c22ba,webSocketUtils,_0x388ace);const _0x398053=await _0x1761e1[_0x5380f1(0x16b)]();_0x331fdb[_0x5380f1(0x1dd)](printResponse,_0x331fdb['RZjxE'],_0x398053),_0x1761e1=await _0x1761e1[_0x5380f1(0x1fa)]();let _0x4ecedf=![];try{_0x4ecedf=await _0x1761e1[_0x5380f1(0x1a3)]();}catch(_0x45534d){const _0x3be4e2=_0x331fdb[_0x5380f1(0x177)]['split']('|');let _0x8008cd=0x0;while(!![]){switch(_0x3be4e2[_0x8008cd++]){case'0':_0x351675+='\x0a'+JSON[_0x5380f1(0x1a1)](_0x45534d['stack']);continue;case'1':logger[_0x5380f1(0x220)](_0x351675);continue;case'2':_0x351675=_0x5380f1(0x168)+global_registry[_0x5380f1(0x1fc)]+_0x5380f1(0x1da)+global_registry[_0x5380f1(0x1fe)]+_0x5380f1(0x230)+_0x45534d;continue;case'3':_0x4ecedf=null;continue;case'4':await _0x331fdb['CzJAl'](reportToGalactusAndSendToEDS,_0x388ace,_0x3c22ba,_0x351675,messageTypes[_0x5380f1(0x1c4)],_0x331fdb[_0x5380f1(0x1cd)],_0x5380f1(0x1fb)+global_registry[_0x5380f1(0x191)],_0x331fdb[_0x5380f1(0x23d)]);continue;}break;}}_0x4ecedf&&logger[_0x5380f1(0x19a)](_0x5380f1(0x175)+global_registry[_0x5380f1(0x1fc)]+'`\x20already\x20exists');const _0x2b1eec=await _0x1761e1[_0x5380f1(0x1a9)]();_0x331fdb[_0x5380f1(0x1dd)](printResponse,_0x331fdb[_0x5380f1(0x1f0)],_0x2b1eec);const _0x41c4fb=await _0x331fdb['YBjsr'](curlRequest);_0x331fdb['UPFMP'](printResponse,_0x331fdb[_0x5380f1(0x182)],_0x41c4fb);const _0x1b8f39=await _0x331fdb[_0x5380f1(0x176)](isTlsSupported,_0x331fdb['gqLKc']);_0x331fdb[_0x5380f1(0x202)](printResponse,_0x331fdb[_0x5380f1(0x251)],_0x1b8f39);const _0x4f9eb8={};_0x4f9eb8[_0x5380f1(0x19e)]=_0x331fdb['ybUkA'],_0x4f9eb8[_0x5380f1(0x173)]=_0x398053;const _0x4a9ccb={};_0x4a9ccb[_0x5380f1(0x19e)]=_0x331fdb[_0x5380f1(0x1f6)],_0x4a9ccb[_0x5380f1(0x173)]=_0x2b1eec;const _0xa0aa9a={};_0xa0aa9a[_0x5380f1(0x19e)]=_0x331fdb[_0x5380f1(0x172)],_0xa0aa9a[_0x5380f1(0x173)]=_0x41c4fb;const _0x1f6417={};_0x1f6417[_0x5380f1(0x19e)]=_0x331fdb['qFAqA'],_0x1f6417[_0x5380f1(0x173)]=_0x1b8f39;const _0x39c227=[_0x4f9eb8,_0x4a9ccb,_0xa0aa9a,_0x1f6417],_0x286784=await _0x331fdb[_0x5380f1(0x17c)](generateReport,_0x39c227,_0x4ecedf),_0xf5ccbf=new Date(),_0x85ec5b=_0xf5ccbf['getUTCFullYear']()+'_'+_0x331fdb[_0x5380f1(0x231)](_0xf5ccbf[_0x5380f1(0x228)](),0x1)+'_'+_0xf5ccbf[_0x5380f1(0x243)]()+'_'+_0xf5ccbf[_0x5380f1(0x20f)]()+'_'+_0xf5ccbf[_0x5380f1(0x1ec)](),_0x1af27a=_0x5380f1(0x1e1)+_0x85ec5b+_0x5380f1(0x21f);fs[_0x5380f1(0x1b0)](_0x1af27a,_0x286784,_0x331fdb['YhDTi']),logger[_0x5380f1(0x19a)](_0x5380f1(0x258)+_0x1af27a),process[_0x5380f1(0x19b)](0x0);}catch(_0x12687c){let _0x1f870a=_0x5380f1(0x24b)+_0x12687c+'\x20';logger[_0x5380f1(0x220)](_0x1f870a),_0x1f870a+='\x0a'+JSON[_0x5380f1(0x1a1)](_0x12687c['stack']),logger[_0x5380f1(0x246)]('stack\x20trace\x20'+_0x12687c[_0x5380f1(0x253)]);if(_0x3c22ba){const _0x8572cd={};_0x8572cd['type']=WS_EVENTS[_0x5380f1(0x15f)],_0x8572cd[_0x5380f1(0x1c6)]=_0x1f870a,webSocketUtils['sendEventToBackend'](_0x3c22ba,_0x8572cd,_0x331fdb[_0x5380f1(0x23d)],!![]);}await webSocketUtils[_0x5380f1(0x160)](0x7d0);const _0x17bb47={};_0x17bb47[_0x5380f1(0x220)]=_0x1f870a,await _0x331fdb[_0x5380f1(0x189)](sendInstrumentationEvent,_0x388ace,_0x331fdb[_0x5380f1(0x1cd)],messageTypes[_0x5380f1(0x1c4)],_0x331fdb[_0x5380f1(0x244)],_0x17bb47,_0x388ace),process[_0x5380f1(0x19b)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x57c8f2=a18_0x162e;(function(_0x3e315e,_0x1c3bdf){const _0x585bf3=a18_0x162e,_0x185b81=_0x3e315e();while(!![]){try{const _0x324c71=parseInt(_0x585bf3(0x118))/0x1*(-parseInt(_0x585bf3(0x12b))/0x2)+parseInt(_0x585bf3(0x113))/0x3*(-parseInt(_0x585bf3(0x124))/0x4)+-parseInt(_0x585bf3(0x127))/0x5+-parseInt(_0x585bf3(0x11e))/0x6*(-parseInt(_0x585bf3(0x125))/0x7)+-parseInt(_0x585bf3(0x116))/0x8+-parseInt(_0x585bf3(0x115))/0x9*(parseInt(_0x585bf3(0x11b))/0xa)+parseInt(_0x585bf3(0x119))/0xb;if(_0x324c71===_0x1c3bdf)break;else _0x185b81['push'](_0x185b81['shift']());}catch(_0x3b7027){_0x185b81['push'](_0x185b81['shift']());}}}(a18_0x561a,0x96ec9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x57c8f2(0x121));function a18_0x162e(_0x346572,_0x485efc){const _0x561a95=a18_0x561a();return a18_0x162e=function(_0x162ee8,_0x52eebd){_0x162ee8=_0x162ee8-0x113;let _0x17c50e=_0x561a95[_0x162ee8];return _0x17c50e;},a18_0x162e(_0x346572,_0x485efc);}exports[a18_0x57c8f2(0x117)]='start',exports[a18_0x57c8f2(0x114)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x57c8f2(0x11f)]=function(_0x3d5754){const _0x5ceca1=a18_0x57c8f2,_0xdfa0d7={};_0xdfa0d7[_0x5ceca1(0x11c)]='start_commands',_0xdfa0d7[_0x5ceca1(0x123)]=_0x5ceca1(0x129);const _0x4ad9e3=_0xdfa0d7;return _0x3d5754[_0x5ceca1(0x126)](HELP_HEADER_MESSAGE[_0x5ceca1(0x12c)])[_0x5ceca1(0x11d)](HELP_FOOTER_MESSAGE)[_0x5ceca1(0x128)](_0x4ad9e3[_0x5ceca1(0x11c)])[_0x5ceca1(0x120)]()[_0x5ceca1(0x122)]()[_0x5ceca1(0x11a)]()[_0x5ceca1(0x129)](_0x4ad9e3['wmtCZ']);},exports[a18_0x57c8f2(0x12a)]=function(_0x4993c6){};function a18_0x561a(){const _0x299825=['desc','9UWTbqr','3471600JzAAOE','command','165XFwCIw','32517947ahyvUO','strict','8825090llTTpY','ikgBq','epilogue','5262EEenwS','builder','demandCommand','../config/constants','recommendCommands','wmtCZ','13744ASvDVU','280GXcRYX','usage','75360kAZBaF','commandDir','help','handler','8210uckZiz','start','318nCyhrl'];a18_0x561a=function(){return _0x299825;};return a18_0x561a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a19_0x7a0b(_0x47a804,_0x3e2762){const _0x408d4e=a19_0x408d();return a19_0x7a0b=function(_0x7a0ba5,_0x5aadc5){_0x7a0ba5=_0x7a0ba5-0x158;let _0xa1477a=_0x408d4e[_0x7a0ba5];return _0xa1477a;},a19_0x7a0b(_0x47a804,_0x3e2762);}function a19_0x408d(){const _0x128383=['Grid\x20started','../../utils/createk8sClient','Starting\x20grid\x20','help','clusterRegion','exit','start','ERROR','1135274CcuLdQ','addListeners','WebSocket','Adding\x20Websocket\x20listeners','jzEYY','error','2DlnEOm','18GJMVAk','debug','clusterName','1008579saVkMi','default','Skip\x20insecure\x20cert\x20verification.','password','EFKdq','utjSN','body','bstackAccesskey','XTZpk','2867540thWtVb','argv','user','DNfuZ','cloudProvider','UuDEm','grid','type','42Xcpfiw','vWMvZ','kjqiG','bstackUsername','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','<UsernamePlaceholder>','XWbYO','97815twzCwW','24sVHYWR','username','wvDSX','boolean','skipTlsCertVerify','../../utils/webSocketUtils','invalid-grid-id','XdHTw','DNQwD','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Start\x20an\x20existing\x20Automation\x20grid.','3470863mWCUTG','3734576dAwOzm','<PasswordPlaceholder>','init-not-called','gridId','NGRuO','JgGdw','../../utils/gridComponents','command','KmIjm','WXpNW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','385847bTsoeH','jmzap','INFO','description','gChXJ','4cHQipM','FBziE','unauthorised','handler','start-grid-called','Phthu','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','existsSync','parse','Browserstack','stringify','replace','../../config/constants','string','name','skip-tls-cert-verify','epilogue','KLEIh','stack','statusCode','Mherm','info','../../cloudproviders/utils','../../config/logger'];a19_0x408d=function(){return _0x128383;};return a19_0x408d();}const a19_0x661d5f=a19_0x7a0b;(function(_0x45de6d,_0x365fc4){const _0x2d1521=a19_0x7a0b,_0x3e5531=_0x45de6d();while(!![]){try{const _0x6154e1=-parseInt(_0x2d1521(0x18f))/0x1*(parseInt(_0x2d1521(0x15b))/0x2)+parseInt(_0x2d1521(0x15f))/0x3*(-parseInt(_0x2d1521(0x194))/0x4)+parseInt(_0x2d1521(0x177))/0x5*(parseInt(_0x2d1521(0x170))/0x6)+parseInt(_0x2d1521(0x1b5))/0x7+-parseInt(_0x2d1521(0x184))/0x8+-parseInt(_0x2d1521(0x15c))/0x9*(-parseInt(_0x2d1521(0x168))/0xa)+-parseInt(_0x2d1521(0x183))/0xb*(-parseInt(_0x2d1521(0x178))/0xc);if(_0x6154e1===_0x365fc4)break;else _0x3e5531['push'](_0x3e5531['shift']());}catch(_0x349999){_0x3e5531['push'](_0x3e5531['shift']());}}}(a19_0x408d,0x4cdd3));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x661d5f(0x1a1)),{logger}=require(a19_0x661d5f(0x1ac)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x661d5f(0x18a)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x661d5f(0x17d)),{createK8sClient}=require(a19_0x661d5f(0x1ae)),{getCloudProviderObject}=require(a19_0x661d5f(0x1ab));exports[a19_0x661d5f(0x18b)]=a19_0x661d5f(0x16e),exports['desc']=a19_0x661d5f(0x182),exports[a19_0x661d5f(0x19b)]=function(_0x4e23e3){const _0x3bb55b=a19_0x661d5f,_0x26a8e5={};_0x26a8e5[_0x3bb55b(0x18c)]=_0x3bb55b(0x181),_0x26a8e5[_0x3bb55b(0x188)]=_0x3bb55b(0x1a2),_0x26a8e5[_0x3bb55b(0x176)]=_0x3bb55b(0x161),_0x26a8e5['utjSN']=_0x3bb55b(0x17b),_0x26a8e5[_0x3bb55b(0x195)]=_0x3bb55b(0x1b0);const _0x13b7e4=_0x26a8e5,_0xe91498={};_0xe91498[_0x3bb55b(0x192)]=_0x13b7e4[_0x3bb55b(0x18c)],_0xe91498[_0x3bb55b(0x16f)]=_0x13b7e4['NGRuO'];const _0x1a605d={};_0x1a605d[_0x3bb55b(0x192)]=_0x13b7e4[_0x3bb55b(0x176)],_0x1a605d[_0x3bb55b(0x16f)]=_0x13b7e4[_0x3bb55b(0x164)],_0x1a605d[_0x3bb55b(0x160)]=![];const _0x14b6fc={};return _0x14b6fc['grid-id']=_0xe91498,_0x14b6fc[_0x3bb55b(0x1a4)]=_0x1a605d,_0x4e23e3['usage'](HELP_HEADER_MESSAGE[_0x3bb55b(0x1b3)])[_0x3bb55b(0x1a5)](HELP_FOOTER_MESSAGE)['options'](_0x14b6fc)[_0x3bb55b(0x1b0)](_0x13b7e4[_0x3bb55b(0x195)])[_0x3bb55b(0x169)];},exports[a19_0x661d5f(0x197)]=async function(_0x270a64){const _0x5581c4=a19_0x661d5f,_0x4538a0={'vWMvZ':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','UuDEm':function(_0x1f78ec){return _0x1f78ec();},'wvDSX':_0x5581c4(0x18e),'KLEIh':function(_0x1e796e,_0x2a79f0,_0x382b6b,_0x30d607,_0x1921d6,_0x5dc8cf,_0x4ea50f){return _0x1e796e(_0x2a79f0,_0x382b6b,_0x30d607,_0x1921d6,_0x5dc8cf,_0x4ea50f);},'DNfuZ':_0x5581c4(0x198),'Phthu':_0x5581c4(0x186),'XTZpk':function(_0x2db0a2){return _0x2db0a2();},'jmzap':_0x5581c4(0x175),'XdHTw':_0x5581c4(0x185),'jzEYY':_0x5581c4(0x158),'LCyax':function(_0x2ab1d7,_0x477a5f,_0x1f9cec,_0x46d248){return _0x2ab1d7(_0x477a5f,_0x1f9cec,_0x46d248);},'PMGzn':function(_0x52f291,_0x4415ee,_0x441f51){return _0x52f291(_0x4415ee,_0x441f51);},'Mherm':_0x5581c4(0x1ad),'JgGdw':function(_0x44b9e9,_0x28b96d){return _0x44b9e9===_0x28b96d;},'EFKdq':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kjqiG':_0x5581c4(0x196),'gChXJ':function(_0x3f2d4d,_0x427026){return _0x3f2d4d===_0x427026;},'vkEvW':_0x5581c4(0x17e),'DNQwD':function(_0xf8a485,_0x23cbd7,_0x294559,_0x4b3f4d,_0x3047d6,_0x58167a,_0x3bacba){return _0xf8a485(_0x23cbd7,_0x294559,_0x4b3f4d,_0x3047d6,_0x58167a,_0x3bacba);},'WXpNW':'server-error'};let _0x58d16b;try{!_0x270a64[_0x5581c4(0x187)]&&(logger['error'](_0x4538a0[_0x5581c4(0x171)]),process[_0x5581c4(0x1b2)](0x1));!fs[_0x5581c4(0x19c)](_0x4538a0[_0x5581c4(0x16d)](getCredentialsPath))&&(logger[_0x5581c4(0x15a)](_0x4538a0[_0x5581c4(0x17a)]),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0['DNfuZ'],messageTypes[_0x5581c4(0x1b4)],_0x4538a0[_0x5581c4(0x199)],null,_0x270a64),process[_0x5581c4(0x1b2)](0x1));logger['info'](_0x5581c4(0x1af)+_0x270a64[_0x5581c4(0x187)]),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes[_0x5581c4(0x191)],null,null,_0x270a64);const _0x23da9a=JSON[_0x5581c4(0x19d)](fs['readFileSync'](_0x4538a0[_0x5581c4(0x167)](getCredentialsPath)));global_registry[_0x5581c4(0x173)]=_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x179)],global_registry[_0x5581c4(0x166)]=_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x162)];const _0x566f29=WS_ENDPOINT[_0x5581c4(0x1a0)](_0x4538a0[_0x5581c4(0x190)],_0x23da9a['Browserstack'][_0x5581c4(0x179)])[_0x5581c4(0x1a0)](_0x4538a0[_0x5581c4(0x17f)],_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x162)]),_0x3e6bd9={};_0x3e6bd9[_0x5581c4(0x1b7)]=ws,_0x3e6bd9['connectionTimeout']=0x36ee80,_0x58d16b=new ReconnectingWebSocket(_0x566f29,[],_0x3e6bd9),logger[_0x5581c4(0x15d)](_0x4538a0[_0x5581c4(0x159)]),webSocketUtils[_0x5581c4(0x1b6)](_0x58d16b,_0x270a64[_0x5581c4(0x16a)],_0x270a64[_0x5581c4(0x162)]);const [_0x53c145,_0x556281]=await _0x4538a0['LCyax'](getGridDetails,_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x179)],_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x162)],_0x270a64['gridId']);if(_0x556281){const _0x441a81=_0x556281['info'];global_registry[_0x5581c4(0x16c)]=_0x441a81[_0x5581c4(0x16c)],global_registry[_0x5581c4(0x1b1)]=_0x441a81['region'],global_registry[_0x5581c4(0x15e)]=_0x441a81[_0x5581c4(0x15e)];const _0x53a74a=await _0x4538a0[_0x5581c4(0x1a6)](getCloudProviderObject,_0x441a81[_0x5581c4(0x16c)],_0x441a81['clusterName'],_0x441a81['name'],_0x58d16b,webSocketUtils,_0x270a64),[_0x2a728e,_0x215961,_0x20851d,_0x42b3a4,_0x2e12d2,_0x4b5b04]=await _0x4538a0['PMGzn'](createK8sClient,_0x53a74a,_0x270a64[_0x5581c4(0x17c)]);await _0x4538a0['PMGzn'](scaleUpHubDeployment,_0x215961,_0x441a81[_0x5581c4(0x1a3)]),logger[_0x5581c4(0x1aa)](_0x4538a0[_0x5581c4(0x1a9)]),process[_0x5581c4(0x1b2)](0x0);}_0x4538a0[_0x5581c4(0x189)](_0x53c145['statusCode'],0x191)&&(logger['error'](_0x4538a0[_0x5581c4(0x163)]),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes['ERROR'],_0x4538a0[_0x5581c4(0x172)],null,_0x270a64),process[_0x5581c4(0x1b2)](0x1)),_0x4538a0[_0x5581c4(0x193)](_0x53c145[_0x5581c4(0x1a8)],0x190)&&(logger[_0x5581c4(0x15a)](JSON[_0x5581c4(0x19d)](_0x53c145[_0x5581c4(0x165)])['message']),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes[_0x5581c4(0x1b4)],_0x4538a0['vkEvW'],null,_0x270a64),process[_0x5581c4(0x1b2)](0x1)),logger[_0x5581c4(0x15a)](_0x5581c4(0x19a)+JSON['stringify'](_0x53c145)),await _0x4538a0[_0x5581c4(0x180)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes[_0x5581c4(0x1b4)],_0x4538a0[_0x5581c4(0x18d)],_0x53c145,_0x270a64),process['exit'](0x1);}catch(_0x7ad59a){const _0x4ea151=_0x5581c4(0x174)+_0x7ad59a+'\x20\x0a'+JSON[_0x5581c4(0x19f)](_0x7ad59a[_0x5581c4(0x1a7)])+'\x20';logger[_0x5581c4(0x15a)](_0x4ea151),process[_0x5581c4(0x1b2)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x14f8ec=a20_0xe314;function a20_0xe314(_0x173431,_0x2f40fd){const _0x30d0d9=a20_0x30d0();return a20_0xe314=function(_0xe314b6,_0x2f5666){_0xe314b6=_0xe314b6-0x93;let _0x5d6f7=_0x30d0d9[_0xe314b6];return _0x5d6f7;},a20_0xe314(_0x173431,_0x2f40fd);}function a20_0x30d0(){const _0x138381=['658120VheaTp','recommendCommands','26340rfElaq','2305410ZobSnQ','builder','../config/constants','usage','5OZODVH','stop_commands','13252836mnqGJT','4442268ZTfVrL','command','3BxGNCT','112hnRAGR','MxDsR','epilogue','4545xWWReY','stop','strict','demandCommand','530785KVfBeV','desc','220480cYdYxP','commandDir','help','44SLfEFE','tuQdt'];a20_0x30d0=function(){return _0x138381;};return a20_0x30d0();}(function(_0x4faa77,_0xf1de23){const _0x1cb37d=a20_0xe314,_0x1c6a36=_0x4faa77();while(!![]){try{const _0x44f487=parseInt(_0x1cb37d(0xa6))/0x1+-parseInt(_0x1cb37d(0xa8))/0x2+parseInt(_0x1cb37d(0x9e))/0x3*(-parseInt(_0x1cb37d(0x9c))/0x4)+-parseInt(_0x1cb37d(0x99))/0x5*(parseInt(_0x1cb37d(0x95))/0x6)+parseInt(_0x1cb37d(0x9f))/0x7*(-parseInt(_0x1cb37d(0xad))/0x8)+-parseInt(_0x1cb37d(0xa2))/0x9*(parseInt(_0x1cb37d(0x94))/0xa)+parseInt(_0x1cb37d(0xab))/0xb*(parseInt(_0x1cb37d(0x9b))/0xc);if(_0x44f487===_0xf1de23)break;else _0x1c6a36['push'](_0x1c6a36['shift']());}catch(_0x278ea2){_0x1c6a36['push'](_0x1c6a36['shift']());}}}(a20_0x30d0,0xaa271));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x14f8ec(0x97));exports[a20_0x14f8ec(0x9d)]='stop',exports[a20_0x14f8ec(0xa7)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x14f8ec(0x96)]=function(_0x21ca5f){const _0x1980a2=a20_0x14f8ec,_0x109722={};_0x109722['MxDsR']=_0x1980a2(0x9a),_0x109722['tuQdt']=_0x1980a2(0xaa);const _0x1de7f3=_0x109722;return _0x21ca5f[_0x1980a2(0x98)](HELP_HEADER_MESSAGE[_0x1980a2(0xa3)])[_0x1980a2(0xa1)](HELP_FOOTER_MESSAGE)[_0x1980a2(0xa9)](_0x1de7f3[_0x1980a2(0xa0)])[_0x1980a2(0xa5)]()[_0x1980a2(0x93)]()[_0x1980a2(0xa4)]()[_0x1980a2(0xaa)](_0x1de7f3[_0x1980a2(0xac)]);},exports['handler']=function(_0x148e5e){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a21_0x5e05(_0x117dc7,_0x16ab1d){const _0x3b821f=a21_0x3b82();return a21_0x5e05=function(_0x5e051d,_0x58fc22){_0x5e051d=_0x5e051d-0x166;let _0x5bafa8=_0x3b821f[_0x5e051d];return _0x5bafa8;},a21_0x5e05(_0x117dc7,_0x16ab1d);}const a21_0xef6709=a21_0x5e05;function a21_0x3b82(){const _0xee549e=['username','cloudProvider','<UsernamePlaceholder>','../../utils/instrumentationUtils','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../cloudproviders/utils','handler','Rkdrf','string','help','info','body','user','srsFl','skip-tls-cert-verify','dIKtB','qHTzU','password','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stop-grid-called','mibKy','existsSync','stop','statusCode','builder','5vfsjMQ','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','fQvMD','9XanLzc','5773831GlFipq','2338270suItZK','grid','IyYOj','epilogue','Tnefp','3758360HGnbEI','gkmSw','addListeners','ERROR','debug','error','type','9QMWLaJ','1064552YOPgzL','replace','INFO','connectionTimeout','KshHT','clusterName','../../utils/utilityMethods','exit','Stopping\x20grid\x20','NExEU','argv','usage','description','../../config/constants','KDmNB','pLMvj','1610052iJKzww','lbRFF','Stop\x20a\x20running\x20Automation\x20grid.','ZMWaL','../../utils/createk8sClient','../../utils/webSocketUtils','EvKWX','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PNGIl','177827BKpUqx','grid-id','iYXJD','server-error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','reconnecting-websocket','RTNtn','../../utils/gridComponents','BxgJg','PLCLk','kHeAd','desc','gridId','clusterRegion','Grid\x20stoppped.','message','372834ErzJmo','<PasswordPlaceholder>','parse','Browserstack','readFileSync','init-not-called'];a21_0x3b82=function(){return _0xee549e;};return a21_0x3b82();}(function(_0x48560a,_0x4e7a90){const _0xbc3dae=a21_0x5e05,_0xb9a834=_0x48560a();while(!![]){try{const _0x156986=parseInt(_0xbc3dae(0x194))/0x1+parseInt(_0xbc3dae(0x1a4))/0x2+parseInt(_0xbc3dae(0x17a))/0x3*(-parseInt(_0xbc3dae(0x17b))/0x4)+-parseInt(_0xbc3dae(0x169))/0x5*(-parseInt(_0xbc3dae(0x18b))/0x6)+parseInt(_0xbc3dae(0x16d))/0x7+-parseInt(_0xbc3dae(0x173))/0x8+parseInt(_0xbc3dae(0x16c))/0x9*(parseInt(_0xbc3dae(0x16e))/0xa);if(_0x156986===_0x4e7a90)break;else _0xb9a834['push'](_0xb9a834['shift']());}catch(_0x10a03c){_0xb9a834['push'](_0xb9a834['shift']());}}}(a21_0x3b82,0x6747d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0xef6709(0x199)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0xef6709(0x188)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0xef6709(0x181)),{scaleDownHubDeployment}=require(a21_0xef6709(0x19b)),{sendInstrumentationEvent}=require(a21_0xef6709(0x1ad)),webSocketUtils=require(a21_0xef6709(0x190)),{createK8sClient}=require(a21_0xef6709(0x18f)),{getCloudProviderObject}=require(a21_0xef6709(0x1af));exports['command']=a21_0xef6709(0x16f),exports[a21_0xef6709(0x19f)]=a21_0xef6709(0x18d),exports[a21_0xef6709(0x168)]=function(_0x38690a){const _0x5556ea=a21_0xef6709,_0x514b4d={};_0x514b4d['kHeAd']=_0x5556ea(0x16a),_0x514b4d[_0x5556ea(0x170)]=_0x5556ea(0x1b2),_0x514b4d['qHTzU']='Skip\x20insecure\x20cert\x20verification.',_0x514b4d['EvKWX']='boolean',_0x514b4d[_0x5556ea(0x189)]=_0x5556ea(0x1b3);const _0x44bbda=_0x514b4d,_0x252abd={};_0x252abd[_0x5556ea(0x187)]=_0x44bbda[_0x5556ea(0x19e)],_0x252abd[_0x5556ea(0x179)]=_0x44bbda[_0x5556ea(0x170)];const _0x562a58={};_0x562a58[_0x5556ea(0x187)]=_0x44bbda[_0x5556ea(0x1ba)],_0x562a58[_0x5556ea(0x179)]=_0x44bbda[_0x5556ea(0x191)],_0x562a58['default']=![];const _0x15ea4b={};return _0x15ea4b[_0x5556ea(0x195)]=_0x252abd,_0x15ea4b[_0x5556ea(0x1b8)]=_0x562a58,_0x38690a[_0x5556ea(0x186)](HELP_HEADER_MESSAGE[_0x5556ea(0x166)])[_0x5556ea(0x171)](HELP_FOOTER_MESSAGE)['options'](_0x15ea4b)['help'](_0x44bbda['KDmNB'])[_0x5556ea(0x185)];},exports[a21_0xef6709(0x1b0)]=async function(_0x3b345f){const _0xd0896f=a21_0xef6709,_0x100638={'gkmSw':_0xd0896f(0x198),'pLMvj':function(_0x3ad28f){return _0x3ad28f();},'mibKy':_0xd0896f(0x1bd),'ZMWaL':function(_0x47d501,_0x2624f8,_0x1b1e5b,_0x1a1a94,_0x514193,_0x22e36a,_0x192c4f){return _0x47d501(_0x2624f8,_0x1b1e5b,_0x1a1a94,_0x514193,_0x22e36a,_0x192c4f);},'KshHT':_0xd0896f(0x1be),'PNGIl':_0xd0896f(0x1a9),'RTNtn':function(_0x1c4e3b,_0x49c9c3,_0xf15746,_0x2ea0d7,_0x54cb91,_0x19e929,_0x2ff9d2){return _0x1c4e3b(_0x49c9c3,_0xf15746,_0x2ea0d7,_0x54cb91,_0x19e929,_0x2ff9d2);},'fQvMD':function(_0xa6447){return _0xa6447();},'tlLmI':_0xd0896f(0x1ac),'Tnefp':_0xd0896f(0x1a5),'dIKtB':'Adding\x20Websocket\x20listeners','srsFl':function(_0x2c4d5c,_0x1ed799,_0x126405,_0x5adff9){return _0x2c4d5c(_0x1ed799,_0x126405,_0x5adff9);},'BefMD':function(_0x15d0a0,_0xe48a1,_0x118c07,_0x1a4f2c,_0xc41982,_0x310cad,_0x16f6e0){return _0x15d0a0(_0xe48a1,_0x118c07,_0x1a4f2c,_0xc41982,_0x310cad,_0x16f6e0);},'lbRFF':function(_0x390ee8,_0x129dfe,_0x4c5217){return _0x390ee8(_0x129dfe,_0x4c5217);},'XygQN':_0xd0896f(0x1a2),'BxgJg':function(_0x2e97b5,_0x45e666){return _0x2e97b5===_0x45e666;},'NExEU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','PLCLk':'unauthorised','EfBan':'invalid-grid-id','iYXJD':function(_0x7182ca,_0x2a0fc6,_0x4dc003,_0x3052f9,_0x5cca47,_0x10c061,_0x1092d9){return _0x7182ca(_0x2a0fc6,_0x4dc003,_0x3052f9,_0x5cca47,_0x10c061,_0x1092d9);},'Rkdrf':_0xd0896f(0x197)};let _0x1db529;try{!_0x3b345f[_0xd0896f(0x1a0)]&&(logger[_0xd0896f(0x178)](_0x100638[_0xd0896f(0x174)]),process['exit'](0x1));!fs[_0xd0896f(0x1c0)](_0x100638[_0xd0896f(0x18a)](getCredentialsPath))&&(logger['error'](_0x100638[_0xd0896f(0x1bf)]),await _0x100638[_0xd0896f(0x18e)](sendInstrumentationEvent,_0x3b345f,_0x100638['KshHT'],messageTypes['ERROR'],_0x100638[_0xd0896f(0x193)],null,_0x3b345f),process[_0xd0896f(0x182)](0x1));logger['info'](_0xd0896f(0x183)+_0x3b345f['gridId']),await _0x100638[_0xd0896f(0x19a)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes[_0xd0896f(0x17d)],null,null,_0x3b345f);const _0x422129=JSON[_0xd0896f(0x1a6)](fs[_0xd0896f(0x1a8)](_0x100638[_0xd0896f(0x16b)](getCredentialsPath)));global_registry['bstackUsername']=_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1aa)],global_registry['bstackAccesskey']=_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1bb)];const _0x4bd9b0=WS_ENDPOINT[_0xd0896f(0x17c)](_0x100638['tlLmI'],_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1aa)])['replace'](_0x100638[_0xd0896f(0x172)],_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1bb)]),_0x93a0ba={};_0x93a0ba['WebSocket']=ws,_0x93a0ba[_0xd0896f(0x17e)]=0x36ee80,_0x1db529=new ReconnectingWebSocket(_0x4bd9b0,[],_0x93a0ba),logger[_0xd0896f(0x177)](_0x100638[_0xd0896f(0x1b9)]),webSocketUtils[_0xd0896f(0x175)](_0x1db529,_0x3b345f[_0xd0896f(0x1b6)],_0x3b345f[_0xd0896f(0x1bb)]);const [_0x114fb5,_0x22b04e]=await _0x100638[_0xd0896f(0x1b7)](getGridDetails,_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1aa)],_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1bb)],_0x3b345f[_0xd0896f(0x1a0)]);if(_0x22b04e){const _0x3e6de7=_0x22b04e[_0xd0896f(0x1b4)];global_registry[_0xd0896f(0x1ab)]=_0x3e6de7[_0xd0896f(0x1ab)],global_registry[_0xd0896f(0x1a1)]=_0x3e6de7['region'],global_registry['clusterName']=_0x3e6de7['clusterName'];const _0x7a7f56=await _0x100638['BefMD'](getCloudProviderObject,_0x3e6de7[_0xd0896f(0x1ab)],_0x3e6de7[_0xd0896f(0x180)],_0x3e6de7['name'],_0x1db529,webSocketUtils,_0x3b345f),[_0xae321b,_0x1b3339,_0x3ce0c6,_0x2c1a98,_0x3dab6b,_0x310905]=await _0x100638[_0xd0896f(0x18c)](createK8sClient,_0x7a7f56,_0x3b345f['skipTlsCertVerify']);await _0x100638[_0xd0896f(0x18c)](scaleDownHubDeployment,_0x1b3339,_0x3e6de7['name']),logger[_0xd0896f(0x1b4)](_0x100638['XygQN']),process[_0xd0896f(0x182)](0x0);}_0x100638[_0xd0896f(0x19c)](_0x114fb5[_0xd0896f(0x167)],0x191)&&(logger[_0xd0896f(0x178)](_0x100638[_0xd0896f(0x184)]),await _0x100638[_0xd0896f(0x19a)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes['ERROR'],_0x100638[_0xd0896f(0x19d)],null,_0x3b345f),process[_0xd0896f(0x182)](0x1)),_0x100638['BxgJg'](_0x114fb5['statusCode'],0x190)&&(logger[_0xd0896f(0x178)](JSON[_0xd0896f(0x1a6)](_0x114fb5[_0xd0896f(0x1b5)])[_0xd0896f(0x1a3)]),await _0x100638[_0xd0896f(0x19a)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes[_0xd0896f(0x176)],_0x100638['EfBan'],null,_0x3b345f),process[_0xd0896f(0x182)](0x1)),logger[_0xd0896f(0x178)](_0xd0896f(0x192)+JSON['stringify'](_0x114fb5)),await _0x100638[_0xd0896f(0x196)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes['ERROR'],_0x100638[_0xd0896f(0x1b1)],_0x114fb5,_0x3b345f),process[_0xd0896f(0x182)](0x1);}catch(_0x2968e0){const _0x22480c=_0xd0896f(0x1ae)+_0x2968e0+'\x20\x0a'+JSON['stringify'](_0x2968e0[_0xd0896f(0x1bc)])+'\x20';logger['error'](_0x22480c),process[_0xd0896f(0x182)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a22_0x8acea6=a22_0x28fd;(function(_0x5ca40b,_0x28a37e){const _0x5b7182=a22_0x28fd,_0x544cf6=_0x5ca40b();while(!![]){try{const _0x3ba663=parseInt(_0x5b7182(0x1a7))/0x1+-parseInt(_0x5b7182(0x1bb))/0x2+parseInt(_0x5b7182(0x1e6))/0x3+-parseInt(_0x5b7182(0x1ef))/0x4*(parseInt(_0x5b7182(0x1de))/0x5)+parseInt(_0x5b7182(0x1e5))/0x6+-parseInt(_0x5b7182(0x1e0))/0x7+parseInt(_0x5b7182(0x1d6))/0x8;if(_0x3ba663===_0x28a37e)break;else _0x544cf6['push'](_0x544cf6['shift']());}catch(_0x47c6e4){_0x544cf6['push'](_0x544cf6['shift']());}}}(a22_0x57e5,0xadef7),require('dotenv')[a22_0x8acea6(0x1c0)]());let gridURL=a22_0x8acea6(0x1bc),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x8acea6(0x1b0);const _env=(process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1f0)]||'prod')[a22_0x8acea6(0x197)]();if(_env===a22_0x8acea6(0x1b4)||_env===a22_0x8acea6(0x1b6))gridURL=a22_0x8acea6(0x1bd),bsApiUrl=a22_0x8acea6(0x1ce),agApiUrl=a22_0x8acea6(0x1e3);else(_env===a22_0x8acea6(0x1ad)||_env==='pre-prod')&&(gridURL=a22_0x8acea6(0x1cc),bsApiUrl=a22_0x8acea6(0x1c1),agApiUrl=a22_0x8acea6(0x1c4));exports[a22_0x8acea6(0x1cf)]=process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1cf)]||gridURL,exports['BS_API_URL']=process[a22_0x8acea6(0x1a2)]['BS_API_URL']||bsApiUrl,exports[a22_0x8acea6(0x1d8)]=process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1d8)]||agApiUrl,exports[a22_0x8acea6(0x1af)]='wss://'+this[a22_0x8acea6(0x1d8)]+a22_0x8acea6(0x1d7),exports[a22_0x8acea6(0x19d)]=a22_0x8acea6(0x1a3),exports[a22_0x8acea6(0x1eb)]=a22_0x8acea6(0x1f5),exports[a22_0x8acea6(0x1d5)]='high-scale-grid',exports[a22_0x8acea6(0x1d4)]=a22_0x8acea6(0x1b2),exports[a22_0x8acea6(0x1ec)]=a22_0x8acea6(0x1a4),exports[a22_0x8acea6(0x1a6)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x8acea6(0x198)]=a22_0x8acea6(0x1ae),exports[a22_0x8acea6(0x19f)]=a22_0x8acea6(0x1bf),exports[a22_0x8acea6(0x1b9)]=a22_0x8acea6(0x1b3),exports[a22_0x8acea6(0x1f7)]=a22_0x8acea6(0x1c8),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x8acea6(0x1b9)],this[a22_0x8acea6(0x1f7)]];const a22_0x3cea38={};a22_0x3cea38[a22_0x8acea6(0x192)]=a22_0x8acea6(0x18c),a22_0x3cea38[a22_0x8acea6(0x1f6)]=a22_0x8acea6(0x18a);const a22_0x212df7={};a22_0x212df7[a22_0x8acea6(0x192)]=a22_0x8acea6(0x1e2),a22_0x212df7[a22_0x8acea6(0x1f6)]=a22_0x8acea6(0x19e);const common_hst_tags_list=[a22_0x3cea38,a22_0x212df7];if(process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1f1)]){const parsedTags=process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1f1)][a22_0x8acea6(0x1f2)](',');parsedTags[a22_0x8acea6(0x1d2)](_0x3cc261=>{const _0x49456d=a22_0x8acea6,_0x23fbe8=_0x3cc261[_0x49456d(0x1f2)](':'),_0x437d5d={};_0x437d5d['Key']=_0x23fbe8[0x0],_0x437d5d[_0x49456d(0x1f6)]=_0x23fbe8[0x1],common_hst_tags_list[_0x49456d(0x1a0)](_0x437d5d);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x4eabc5={};a22_0x4eabc5[a22_0x8acea6(0x18c)]=a22_0x8acea6(0x18a),a22_0x4eabc5[a22_0x8acea6(0x1e2)]='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x4eabc5,exports[a22_0x8acea6(0x1c9)]=[this[a22_0x8acea6(0x1d4)]];const a22_0x1d141f={};a22_0x1d141f[a22_0x8acea6(0x18f)]=a22_0x8acea6(0x196),a22_0x1d141f[a22_0x8acea6(0x1db)]='resourceInfo',a22_0x1d141f[a22_0x8acea6(0x1b8)]='gridUrl',a22_0x1d141f['CLI_RUN_STARTED']=a22_0x8acea6(0x1dd),a22_0x1d141f[a22_0x8acea6(0x1d3)]=a22_0x8acea6(0x190),exports[a22_0x8acea6(0x1ac)]=a22_0x1d141f,exports[a22_0x8acea6(0x1a5)]={},exports['LINK_MESSAGE']=a22_0x8acea6(0x1c5);function a22_0x28fd(_0x4a298b,_0x13f236){const _0x57e53a=a22_0x57e5();return a22_0x28fd=function(_0x28fdcb,_0x44d129){_0x28fdcb=_0x28fdcb-0x18a;let _0x62b585=_0x57e53a[_0x28fdcb];return _0x62b585;},a22_0x28fd(_0x4a298b,_0x13f236);}const a22_0x24a526={};a22_0x24a526[a22_0x8acea6(0x19a)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1d9)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x8acea6(0x1b7)],a22_0x24a526['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x18b)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x19c)]={},a22_0x24a526[a22_0x8acea6(0x1e7)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1ca)]=a22_0x8acea6(0x1c6)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1df)]=a22_0x8acea6(0x1b5)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1f4)]=a22_0x8acea6(0x1a1)+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x1aa)]=a22_0x8acea6(0x1ba)+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x19c)][a22_0x8acea6(0x19a)]=a22_0x8acea6(0x1b1)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x19c)][a22_0x8acea6(0x1e9)]=a22_0x8acea6(0x1cb)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x19c)][a22_0x8acea6(0x1c7)]=a22_0x8acea6(0x195)+this[a22_0x8acea6(0x1b7)],exports[a22_0x8acea6(0x199)]=a22_0x24a526,exports['HELP_FOOTER_MESSAGE']=a22_0x8acea6(0x1e1);const a22_0x4c76a5={};a22_0x4c76a5[a22_0x8acea6(0x18d)]=a22_0x8acea6(0x1c2),a22_0x4c76a5[a22_0x8acea6(0x193)]=a22_0x8acea6(0x1e4),a22_0x4c76a5['INFO']=a22_0x8acea6(0x194),a22_0x4c76a5[a22_0x8acea6(0x1dc)]=a22_0x8acea6(0x1d1),a22_0x4c76a5[a22_0x8acea6(0x1a9)]=a22_0x8acea6(0x18e),a22_0x4c76a5['NULL']=null,exports[a22_0x8acea6(0x1ee)]=a22_0x4c76a5,exports[a22_0x8acea6(0x1ab)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x8acea6(0x1cd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x8acea6(0x1ed)]='[REDACTED]';const a22_0x128623={};function a22_0x57e5(){const _0xd56f2f=['api-devhst.bsstag.com','DASHBOARD_ENDPOINT','REGION','warning','forEach','CLI_RUN_FINISHED','AWS','DEFAULT_GRID_NAME','10915776BdRNDB','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','AG_API_URL','init','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','RESOURCES','WARNING','cliRunStarted','5VSttga','start','9860879BWfhLV','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','browserstack:service','grid-api-devhst.bsstag.com','error','184140RrVGDW','3130053npYwUP','delete','CLUSTER','grid','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','IAM_USER_NAME','CLUSTER_DEP_STACK_NAME','REDACTED','messageTypes','1523468BJGucp','BROWSERSTACK_ENV','TURBOSCALE_CUSTOM_TAGS','split','CLOUD_PROVIDER','stop','BrowserStackIAMUser','Value','GCP','BrowserStack','create','browserstack:managedBy','SUCCESS','unknown','LOG','cliRunFinished','high-scale-grid-cluster','Key','ERROR','info','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','log','toLowerCase','CLUSTER_HUB_HA_STACK_NAME','HELP_HEADER_MESSAGE','root','MessageDescription','list','CP_CONFIG_FILE','BrowserStack-Automate-TurboScale','TURBOSCALE_DEPLOYMENT','push','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','env','credentials','BSTACK-ATS-CLUSTER','global_registry','CLUSTER_AUTOSCALER_STACK_NAME','1011150NSEXMu','grid-profile','UNKNOWN','pre_check','CLI_ARGS_REGEX','WS_EVENTS','preprod','BSTACK-ATS-CLUSTER-HUB-HA','WS_ENDPOINT','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','aws','azure','staging','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','stag','LINK_MESSAGE','GRID_URL','AZURE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','1895320ykcILv','grid.browserstack.com','grid-devhst.bsstag.com','TRIAL_GRID_URL','browserstack-turboscale-grid','config','api-preprod.bsstag.com','success','pre-check','grid-api-preprod.bsstag.com','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridProfile','gcp','SUPPORTED_CLOUD_PROVIDERS','connect','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid-preprod.bsstag.com','RAW_ARGS_REGEX'];a22_0x57e5=function(){return _0xd56f2f;};return a22_0x57e5();}a22_0x128623[a22_0x8acea6(0x1a8)]=a22_0x8acea6(0x1da);const a22_0x5276ee={};a22_0x5276ee[a22_0x8acea6(0x1c3)]=a22_0x128623,exports[a22_0x8acea6(0x19b)]=a22_0x5276ee,exports[a22_0x8acea6(0x1be)]=a22_0x8acea6(0x1ea);const a22_0x14ca6b={};a22_0x14ca6b[a22_0x8acea6(0x1e8)]=a22_0x8acea6(0x191),a22_0x14ca6b[a22_0x8acea6(0x1f3)]=a22_0x8acea6(0x1b2),a22_0x14ca6b[a22_0x8acea6(0x1d0)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x14ca6b;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x44debb=a23_0x49b8;(function(_0x3e884e,_0x184fc3){const _0x4c1fa9=a23_0x49b8,_0x23211f=_0x3e884e();while(!![]){try{const _0x3cf926=parseInt(_0x4c1fa9(0xe3))/0x1*(-parseInt(_0x4c1fa9(0xd3))/0x2)+parseInt(_0x4c1fa9(0xe6))/0x3*(parseInt(_0x4c1fa9(0xde))/0x4)+-parseInt(_0x4c1fa9(0xcd))/0x5+parseInt(_0x4c1fa9(0xdb))/0x6+parseInt(_0x4c1fa9(0xcf))/0x7*(-parseInt(_0x4c1fa9(0xe5))/0x8)+parseInt(_0x4c1fa9(0xd4))/0x9+-parseInt(_0x4c1fa9(0xd5))/0xa;if(_0x3cf926===_0x184fc3)break;else _0x23211f['push'](_0x23211f['shift']());}catch(_0x2779e3){_0x23211f['push'](_0x23211f['shift']());}}}(a23_0x56d5,0xae5ad));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir=a23_0x44debb(0xe1);function a23_0x56d5(){const _0x1f97d4=['6887583PNFArk','16892690VnvOLj','combine','format','console.info','YYYY-MM-DD\x20HH:mm:ss','Console','7584330kBoQih','logger','message','4812128RKNTSr','timestamp','debug','log','existsSync','493JCjOyF','mkdirSync','8KGFDAU','3PYmrfs','join','createLogger','transports','503240lSIunn','usage.log','1043175JEacRC','printf','level','name','2350LcIxSr'];a23_0x56d5=function(){return _0x1f97d4;};return a23_0x56d5();}!fs[a23_0x44debb(0xe2)](logDir)&&fs[a23_0x44debb(0xe4)](logDir);const a23_0x1fcccd={};a23_0x1fcccd[a23_0x44debb(0xd7)]=a23_0x44debb(0xd9);const a23_0x58517b={};a23_0x58517b[a23_0x44debb(0xd1)]=!![];const a23_0x2a0f85={};a23_0x2a0f85[a23_0x44debb(0xd2)]=a23_0x44debb(0xd8),exports[a23_0x44debb(0xdc)]=new winston[(a23_0x44debb(0xe8))]({'format':winston[a23_0x44debb(0xd7)][a23_0x44debb(0xd6)](winston[a23_0x44debb(0xd7)][a23_0x44debb(0xdf)](a23_0x1fcccd),winston[a23_0x44debb(0xd7)]['colorize'](a23_0x58517b),winston[a23_0x44debb(0xd7)][a23_0x44debb(0xd0)](_0x28e65c=>_0x28e65c['timestamp']+'\x20-\x20'+_0x28e65c[a23_0x44debb(0xd1)]+':\x20'+_0x28e65c[a23_0x44debb(0xdd)])),'transports':[new winston['transports'][(a23_0x44debb(0xda))](a23_0x2a0f85),new winston[(a23_0x44debb(0xe9))]['File']({'filename':path[a23_0x44debb(0xe7)](logDir,'events.log'),'level':a23_0x44debb(0xe0)})]});const winstonFileLoggerParams={'transports':[new winston['transports']['File']({'filename':path[a23_0x44debb(0xe7)](logDir,a23_0x44debb(0xce)),'level':a23_0x44debb(0xe0)})]};function a23_0x49b8(_0x546b97,_0x197959){const _0x56d571=a23_0x56d5();return a23_0x49b8=function(_0x49b826,_0x3aed0c){_0x49b826=_0x49b826-0xcd;let _0x43d1a6=_0x56d571[_0x49b826];return _0x43d1a6;},a23_0x49b8(_0x546b97,_0x197959);}exports['fileLogger']=new winston[(a23_0x44debb(0xe8))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a24_0x2d6a60=a24_0x51a1;(function(_0x1a576d,_0x595c92){const _0x525838=a24_0x51a1,_0x2c5944=_0x1a576d();while(!![]){try{const _0x3da58d=-parseInt(_0x525838(0x84))/0x1*(-parseInt(_0x525838(0x7e))/0x2)+parseInt(_0x525838(0x75))/0x3*(-parseInt(_0x525838(0x73))/0x4)+-parseInt(_0x525838(0x83))/0x5*(-parseInt(_0x525838(0x7f))/0x6)+-parseInt(_0x525838(0x79))/0x7+parseInt(_0x525838(0x78))/0x8+parseInt(_0x525838(0x72))/0x9+-parseInt(_0x525838(0x77))/0xa*(parseInt(_0x525838(0x82))/0xb);if(_0x3da58d===_0x595c92)break;else _0x2c5944['push'](_0x2c5944['shift']());}catch(_0x40166d){_0x2c5944['push'](_0x2c5944['shift']());}}}(a24_0x53d7,0x70598));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2d6a60(0x7d));function a24_0x51a1(_0x3516cd,_0x158014){const _0x53d756=a24_0x53d7();return a24_0x51a1=function(_0x51a16b,_0x8de8ae){_0x51a16b=_0x51a16b-0x72;let _0x1ebacf=_0x53d756[_0x51a16b];return _0x1ebacf;},a24_0x51a1(_0x3516cd,_0x158014);}process[a24_0x2d6a60(0x85)][a24_0x2d6a60(0x74)]=0x1;function a24_0x53d7(){const _0x5b9216=['1vanVcH','env','demandCommand','8010459trvcJd','4jZmRqU','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','459201kJuFlK','XsbFV','20741390fnmmFT','4910528DaShjk','2711688CLvNSf','commandDir','help','root','./config/constants','1344566fBPxcu','141888DkcxxA','usage','exports','11xqTHuw','190pKPwGD'];a24_0x53d7=function(){return _0x5b9216;};return a24_0x53d7();}function run(_0x230de3){const _0x4aeb56=a24_0x2d6a60,_0x532c5d={};_0x532c5d['XsbFV']='commands',_0x532c5d['KsTyC']=_0x4aeb56(0x7b);const _0x15b1e5=_0x532c5d;_0x230de3[_0x4aeb56(0x80)](HELP_HEADER_MESSAGE[_0x4aeb56(0x7c)])[_0x4aeb56(0x7a)](_0x15b1e5[_0x4aeb56(0x76)])[_0x4aeb56(0x86)]()[_0x4aeb56(0x7b)](_0x15b1e5['KsTyC'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x2d6a60(0x81)]=run;
|