browserstack-node-sdk 1.46.6 → 1.46.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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/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/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/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.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/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.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/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/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/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/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a15_0x44a20c=a15_0x2316;(function(_0x4daab5,_0x41b43c){const _0x201ed8=a15_0x2316,_0x3bf1b3=_0x4daab5();while(!![]){try{const _0x46d188=-parseInt(_0x201ed8(0xe6))/0x1+parseInt(_0x201ed8(0xc5))/0x2+-parseInt(_0x201ed8(0xb9))/0x3*(-parseInt(_0x201ed8(0xf3))/0x4)+-parseInt(_0x201ed8(0xfc))/0x5*(parseInt(_0x201ed8(0xea))/0x6)+parseInt(_0x201ed8(0xcd))/0x7*(parseInt(_0x201ed8(0xbf))/0x8)+parseInt(_0x201ed8(0xbe))/0x9+-parseInt(_0x201ed8(0xcc))/0xa;if(_0x46d188===_0x41b43c)break;else _0x3bf1b3['push'](_0x3bf1b3['shift']());}catch(_0x44984b){_0x3bf1b3['push'](_0x3bf1b3['shift']());}}}(a15_0x487c,0x2aea2));function a15_0x2316(_0x1da38a,_0x2a44de){const _0x487c8e=a15_0x487c();return a15_0x2316=function(_0x23164e,_0x1a38ec){_0x23164e=_0x23164e-0xb2;let _0x6c0930=_0x487c8e[_0x23164e];return _0x6c0930;},a15_0x2316(_0x1da38a,_0x2a44de);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x44a20c(0xee)),{v4:uuidv4}=require(a15_0x44a20c(0xd2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x44a20c(0xe8)),{getCredentialsPath,getAuthHeader}=require(a15_0x44a20c(0xcb)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x487c(){const _0x480003=['356214VfInsJ','queued','bstackAccesskey','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','table','vMcEc','oUwmo','grids','https://','44ANvxkj','log','grid-name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','clusterName','LMTun','parse','5YwGcbg','tOdeS','ERROR','command','name','stack','\x0aFound\x20the\x20following\x20grids:\x0a','usage','uhGYU','/packages/cli/get-grids','options','exit','pAFoN','unauthorised','push','LisIU','DDesA','trZHS','81261WuiOEY','bstackUsername','yClDQ','boolean','rMEgx','2486358XhxwZS','32lgyMBq','help','nnyun','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','jXFeA','133124CfXlhB','running','username','forEach','epilogue','grid','../../utils/utilityMethods','2627460kXXIwj','353402hZNMsv','VRfVM','readFileSync','INFO','server-error','uuid','list','VkGfo','allGrids','Browserstack','status','iINYM','desc','description','ATGNr','body','GSIhO','statusCode','jRhOg','password','KjLpt','cluster-name','list-grids-called','stringify','SoXyf','344832OowkAK','TlBeE','../../config/constants','unknown-error'];a15_0x487c=function(){return _0x480003;};return a15_0x487c();}exports[a15_0x44a20c(0xff)]=a15_0x44a20c(0xf1),exports[a15_0x44a20c(0xd9)]=a15_0x44a20c(0xc3),exports['builder']=function(_0x415a11){const _0x563e10=a15_0x44a20c,_0x505314={};_0x505314[_0x563e10(0xb3)]=_0x563e10(0xed),_0x505314[_0x563e10(0xd4)]=_0x563e10(0xbc),_0x505314['oUwmo']=_0x563e10(0xc0);const _0x46b089=_0x505314,_0x367460={};_0x367460[_0x563e10(0xda)]=_0x46b089[_0x563e10(0xb3)],_0x367460['type']=_0x46b089[_0x563e10(0xd4)];const _0x456f16={};return _0x456f16['all-grids']=_0x367460,_0x415a11[_0x563e10(0x103)](HELP_HEADER_MESSAGE[_0x563e10(0xd3)][_0x563e10(0xca)])[_0x563e10(0xc9)](HELP_FOOTER_MESSAGE)[_0x563e10(0x106)](_0x456f16)[_0x563e10(0xc0)](_0x46b089[_0x563e10(0xf0)])['argv'];},exports['handler']=async function(_0x1fe5d9){const _0x41afdc=a15_0x44a20c,_0x544640={'tOdeS':function(_0x51229f){return _0x51229f();},'KjLpt':_0x41afdc(0xf7),'trZHS':function(_0x544cb6,_0x2262ec,_0x179cbd,_0x4851c5,_0x53aade,_0xe79894,_0x638fee){return _0x544cb6(_0x2262ec,_0x179cbd,_0x4851c5,_0x53aade,_0xe79894,_0x638fee);},'iINYM':_0x41afdc(0xe3),'uhGYU':_0x41afdc(0xc2),'cjKpI':'GET','nnyun':function(_0x3da4c7,_0x185186,_0xdfe11e){return _0x3da4c7(_0x185186,_0xdfe11e);},'TlBeE':function(_0x50cbba,_0x44181d){return _0x50cbba!==_0x44181d;},'ALbUF':function(_0x55f88d,_0x164144){return _0x55f88d===_0x164144;},'Tdqtl':_0x41afdc(0x102),'DDesA':'grid-id','EvmuI':_0x41afdc(0xf5),'rMEgx':_0x41afdc(0xd7),'jRhOg':_0x41afdc(0xc6),'SoXyf':'queued','vMcEc':_0x41afdc(0xe2),'ATGNr':function(_0x2a779c,_0x2e65f6){return _0x2a779c(_0x2e65f6);},'CqrAY':function(_0x2d6aab,_0x368105){return _0x2d6aab===_0x368105;},'jXFeA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LMTun':function(_0x4cb290,_0x3e5f07,_0x11dbb8,_0x2fdfd8,_0x54a5a1,_0x49b07e,_0x4cde89){return _0x4cb290(_0x3e5f07,_0x11dbb8,_0x2fdfd8,_0x54a5a1,_0x49b07e,_0x4cde89);},'yClDQ':_0x41afdc(0xb4),'IZdlH':function(_0x6f5dba,_0x5e8771,_0x37fa55,_0x794ec5,_0x5e3f67,_0x5de28f,_0x2a4aa1){return _0x6f5dba(_0x5e8771,_0x37fa55,_0x794ec5,_0x5e3f67,_0x5de28f,_0x2a4aa1);},'LisIU':_0x41afdc(0xd1),'GSIhO':function(_0x4b83ac,_0x12f8a6,_0x3dd56f,_0x12ff54,_0x393b9b,_0x47b025,_0x470494){return _0x4b83ac(_0x12f8a6,_0x3dd56f,_0x12ff54,_0x393b9b,_0x47b025,_0x470494);},'VRfVM':_0x41afdc(0xe9)};try{global_registry['requestId']=_0x544640['tOdeS'](uuidv4);!fs['existsSync'](_0x544640['tOdeS'](getCredentialsPath))&&(console[_0x41afdc(0xf8)](_0x544640[_0x41afdc(0xe1)]),await _0x544640['trZHS'](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0x104)],null,_0x1fe5d9),process[_0x41afdc(0xb2)](0x1));const _0x3855e7=JSON['parse'](fs[_0x41afdc(0xcf)](_0x544640[_0x41afdc(0xfd)](getCredentialsPath)));let _0x362516='https://'+AG_API_URL+_0x41afdc(0x105);_0x1fe5d9[_0x41afdc(0xd5)]&&(_0x362516=_0x41afdc(0xf2)+AG_API_URL+'/packages/cli/get-all-grids');const _0x405be5={'method':_0x544640['cjKpI'],'headers':_0x544640[_0x41afdc(0xc1)](getAuthHeader,_0x3855e7['Browserstack'][_0x41afdc(0xc7)],_0x3855e7['Browserstack'][_0x41afdc(0xe0)]),'throwHttpErrors':![]};global_registry[_0x41afdc(0xba)]=_0x3855e7[_0x41afdc(0xd6)][_0x41afdc(0xc7)],global_registry[_0x41afdc(0xec)]=_0x3855e7['Browserstack'][_0x41afdc(0xe0)],_0x544640[_0x41afdc(0xb8)](sendInstrumentationEvent,_0x1fe5d9,_0x544640['iINYM'],messageTypes[_0x41afdc(0xd0)],null,null,_0x1fe5d9);const _0x19af61=await _0x544640[_0x41afdc(0xc1)](got,_0x362516,_0x405be5);if(_0x544640[_0x41afdc(0xe7)](_0x19af61,null)&&_0x544640[_0x41afdc(0xe7)](_0x19af61,undefined)&&_0x544640['ALbUF'](_0x19af61[_0x41afdc(0xde)],0xc8)){const _0x3ae8c3=JSON[_0x41afdc(0xfb)](_0x19af61[_0x41afdc(0xdc)]);console[_0x41afdc(0xf4)](_0x544640['Tdqtl']);const _0x39c7d8=[];_0x39c7d8[_0x41afdc(0xb5)]([_0x544640[_0x41afdc(0xb7)],_0x544640['EvmuI'],_0x544640[_0x41afdc(0xbd)],_0x544640[_0x41afdc(0xdf)],_0x544640[_0x41afdc(0xe5)],_0x544640[_0x41afdc(0xef)]]),_0x3ae8c3[_0x41afdc(0xc8)](_0x24dc79=>{const _0x5bdf05=_0x41afdc;_0x39c7d8[_0x5bdf05(0xb5)]([_0x24dc79['id'],_0x24dc79[_0x5bdf05(0x100)],_0x24dc79[_0x5bdf05(0xd7)],_0x24dc79[_0x5bdf05(0xc6)],_0x24dc79[_0x5bdf05(0xeb)],_0x24dc79[_0x5bdf05(0xf9)]]);}),console['log'](_0x544640[_0x41afdc(0xdb)](table,_0x39c7d8)),process[_0x41afdc(0xb2)](0x0);}_0x544640['CqrAY'](_0x19af61['statusCode'],0x191)&&(console[_0x41afdc(0xf8)](_0x544640[_0x41afdc(0xc4)]),await _0x544640[_0x41afdc(0xfa)](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xbb)],null,_0x1fe5d9),process['exit'](0x1)),console[_0x41afdc(0xf8)](_0x41afdc(0xf6)+JSON[_0x41afdc(0xe4)](_0x19af61)),await _0x544640['IZdlH'](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xb6)],_0x19af61,_0x1fe5d9),process[_0x41afdc(0xb2)](0x1);}catch(_0x32be2e){console[_0x41afdc(0xf8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x32be2e[_0x41afdc(0x101)]),await _0x544640[_0x41afdc(0xdd)](sendInstrumentationEvent,_0x1fe5d9,_0x544640['iINYM'],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xce)],_0x32be2e,_0x1fe5d9),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x5ea5e8=a16_0x4317;function a16_0x26d2(){const _0x311cad=['DRSgu','builder','help','187032gHkhPL','desc','pre_check','9GBnAjQ','655431pOQmuU','demandCommand','44092xRQYYx','bBOAR','157963auJzMX','292RedTAB','35NyzmSK','16225BjvEqb','3153640lrZVyU','strict','1302952oScxxy','usage','pre-check','commandDir','handler','command','precheck_commands','recommendCommands','../config/constants'];a16_0x26d2=function(){return _0x311cad;};return a16_0x26d2();}(function(_0x384551,_0x2de060){const _0x3e7131=a16_0x4317,_0x24792b=_0x384551();while(!![]){try{const _0x269323=-parseInt(_0x3e7131(0x92))/0x1+parseInt(_0x3e7131(0x90))/0x2+parseInt(_0x3e7131(0x8e))/0x3+-parseInt(_0x3e7131(0x93))/0x4*(parseInt(_0x3e7131(0x95))/0x5)+parseInt(_0x3e7131(0xa4))/0x6*(parseInt(_0x3e7131(0x94))/0x7)+parseInt(_0x3e7131(0x98))/0x8*(-parseInt(_0x3e7131(0x8d))/0x9)+parseInt(_0x3e7131(0x96))/0xa;if(_0x269323===_0x2de060)break;else _0x24792b['push'](_0x24792b['shift']());}catch(_0x4bfa4b){_0x24792b['push'](_0x24792b['shift']());}}}(a16_0x26d2,0x259ae));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5ea5e8(0xa0));function a16_0x4317(_0x577825,_0x5c974b){const _0x26d290=a16_0x26d2();return a16_0x4317=function(_0x431712,_0x3e2f8c){_0x431712=_0x431712-0x8d;let _0x497e73=_0x26d290[_0x431712];return _0x497e73;},a16_0x4317(_0x577825,_0x5c974b);}exports[a16_0x5ea5e8(0x9d)]=a16_0x5ea5e8(0x9a),exports[a16_0x5ea5e8(0xa5)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x5ea5e8(0xa2)]=function(_0x3f84f3){const _0x2f5124=a16_0x5ea5e8,_0x4e4287={};_0x4e4287[_0x2f5124(0xa1)]=_0x2f5124(0x9e),_0x4e4287[_0x2f5124(0x91)]=_0x2f5124(0xa3);const _0xb7cdc1=_0x4e4287;return _0x3f84f3[_0x2f5124(0x99)](HELP_HEADER_MESSAGE[_0x2f5124(0xa6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f5124(0x9b)](_0xb7cdc1[_0x2f5124(0xa1)])[_0x2f5124(0x8f)]()[_0x2f5124(0x9f)]()[_0x2f5124(0x97)]()['help'](_0xb7cdc1[_0x2f5124(0x91)]);},exports[a16_0x5ea5e8(0x9c)]=function(_0x51e089){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a17_0x3228(){const _0x3f0017=['QohAv','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','44lYMSKV','accessResp','VNvWS','cluster-name','response','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','includes','4495744WVOVni','status','utf-8','KxgFP','ImRKm','reconnecting-websocket','delay','ImMNh','uQNoW','GiNfg','JKjkS','hQhGJ','ceveE','WLGwe','gridProfile','HvnSt','INFO','vYrdg','WxHfB','0|2|1|4|3','Tool\x20Installed','grid','QWEWi','\x20\x20Code:\x20','LczDA','wfnmM','checkAccess','WfRWr','IoeCI','oyjFh','header','Message:\x20','info','throwHttpErrors','<PasswordPlaceholder>','grid\x20profile\x20flow\x20','help','TLSv1_2_client_method','ERROR','JPKRO','writeFileSync','YXQxQ','grid-profile','argv','Success','string','<UsernamePlaceholder>','gdHqS','VjHYU','RLJLY','.\x20Please\x20provide\x20all\x20required\x20arguments.','region','HbAtq','ouHpa','https://','stack\x20trace\x20','authHeader','length','16591230xSaIOC','isCliToolInstalled','qxSdb','forEach','getUTCHours','\x20\x20Stack:\x20','wxoDm','bTzFF','mKQaU','body','clusterName','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','../../config/logger','push','isTrialGridAccessible','N/A','clusterRegion','\x20error\x20:\x20','toLowerCase','getUTCMonth','Ucyco','lsZLy','Cluster\x20','ofaKJ','4228kmLsAX','split','vEFPs','ZYsuW','RWfCg','FGusu','UHAZI','sYrtj','User\x20Access','username','cluster-check-failed-','`\x20already\x20exists','cloudProvider','lqGXP','pre-check','epilogue','Whitelisted\x20browserstack','pre_check','Browserstack','Cluster\x20details\x0a-----------------------\x0a','Missing\x20required\x20arguments:\x20','slSTL','ONXVS','YtqLR','credential-not-found','ySjos','KvZTQ','hMzFV','ISOJG','type','oihWy','mhxkh','LwZDw','bstackAccesskey','643769qEhKps','GET','\x20data\x20:\x20','command','NNwNu','is\x20already\x20present','isTls1_2_SUPPORTED','`\x20is\x20present\x20in\x20region\x20`','ZQsNc','fBKxz','password','handler','stringify','eXNRq','sendEventToBackend','lcErf','uFgKo','message','\x20===\x0a\x0a','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','XtIBw','XyJSC','MfiKx','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','RVxiM','IugsL','uuid','join','LOG','will\x20be\x20created','JeSql','options','cJaYc','description','readFileSync','kKgRc','`\x20,error\x20:\x20','pre-check-grid-called','FTEQq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MeyWo','../../cloudproviders/utils','headers','SEJZs','vbEve','qjDiH','hFvpP','LHjyK','cloud-provider','JeRil','GGfHK','lhuby','3111xbkpPU','\x20\x20Message:\x20','pre-check-failed','getUTCFullYear','Failure','LjmJB','VluPf','Cgwgo','wyrkk','Setting\x20cloud\x20provider\x20as\x20','laNWX','eIORv','TCvoJ','kETEW','bstackUsername','mGuEG','connectionTimeout','../../utils/utilityMethods','SSL\x20Configured','code','NVrey','Pkgcc','/packages/cli/get-all-grid-profiles','stack','Status:\x20','debug','.txt','tLSOJ','Grid\x20profile\x20fetched\x20for\x20pre-check','xRqmk','../../utils/webSocketUtils','toolInstalledResp','PnmCc','CLOUD_PROVIDER','cloud-provider-not-supported','dRHqe','dsQJe','fTBPo','DVclu','qawZt','hpGVI','===\x20Precheck\x20Report\x20-\x20','pre-check-cluster-args-not-passed','AhEzK','data','log/report_','PBOgA','../../utils/instrumentationUtils','oWHwl','requestId','OIkdo','JHnEp','replace','Report\x20saved\x20in\x20','Zwnvm','parse','TZXaa','EPOPx',']\x20status\x20:\x20','47878VMmRTu','error','eQJPU','GmMLM','2197146IXIZaz','SRPiJ','mnQHx','wfPvy','exit','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','170840MNEalX','mNUBw','Cluster\x20`','ldmWO','unable\x20to\x20verify\x20if\x20cluster\x20`'];a17_0x3228=function(){return _0x3f0017;};return a17_0x3228();}const a17_0x1d83aa=a17_0x3acb;(function(_0x3134b2,_0x4bf817){const _0x5b6ddf=a17_0x3acb,_0x5448c7=_0x3134b2();while(!![]){try{const _0x48b811=-parseInt(_0x5b6ddf(0x1be))/0x1*(parseInt(_0x5b6ddf(0x1ac))/0x2)+-parseInt(_0x5b6ddf(0x26d))/0x3*(parseInt(_0x5b6ddf(0x217))/0x4)+parseInt(_0x5b6ddf(0x1b7))/0x5+parseInt(_0x5b6ddf(0x1b0))/0x6+-parseInt(_0x5b6ddf(0x239))/0x7+parseInt(_0x5b6ddf(0x1c5))/0x8+parseInt(_0x5b6ddf(0x1ff))/0x9;if(_0x48b811===_0x4bf817)break;else _0x5448c7['push'](_0x5448c7['shift']());}catch(_0x112535){_0x5448c7['push'](_0x5448c7['shift']());}}}(a17_0x3228,0x89cb5));function a17_0x3acb(_0x43714d,_0x1a560e){const _0x3228e7=a17_0x3228();return a17_0x3acb=function(_0x3acb5e,_0x4ba539){_0x3acb5e=_0x3acb5e-0x173;let _0x4ac487=_0x3228e7[_0x3acb5e];return _0x4ac487;},a17_0x3acb(_0x43714d,_0x1a560e);}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1d83aa(0x253)),ReconnectingWebSocket=require(a17_0x1d83aa(0x1ca)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1d83aa(0x182)),{logger}=require(a17_0x1d83aa(0x20b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x1d83aa(0x262)),webSocketUtils=require(a17_0x1d83aa(0x18f)),{sendInstrumentationEvent}=require(a17_0x1d83aa(0x1a0));exports[a17_0x1d83aa(0x23c)]=a17_0x1d83aa(0x1da),exports['desc']=a17_0x1d83aa(0x20a),exports['builder']=function(_0x4eeaaa){const _0x38cbd9=a17_0x1d83aa,_0x244ebf={};_0x244ebf['UtCtY']=_0x38cbd9(0x1bd),_0x244ebf[_0x38cbd9(0x267)]=_0x38cbd9(0x1f2),_0x244ebf[_0x38cbd9(0x1a9)]=_0x38cbd9(0x250),_0x244ebf[_0x38cbd9(0x1cf)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x244ebf['wfnmM']=_0x38cbd9(0x1b6),_0x244ebf[_0x38cbd9(0x26c)]=_0x38cbd9(0x1e9);const _0x38ccfa=_0x244ebf,_0x41b481={};_0x41b481[_0x38cbd9(0x25a)]=_0x38ccfa['UtCtY'],_0x41b481[_0x38cbd9(0x234)]=_0x38ccfa[_0x38cbd9(0x267)];const _0x480a4f={};_0x480a4f[_0x38cbd9(0x25a)]=_0x38ccfa[_0x38cbd9(0x1a9)],_0x480a4f[_0x38cbd9(0x234)]=_0x38ccfa[_0x38cbd9(0x267)];const _0x40495b={};_0x40495b['description']=_0x38ccfa[_0x38cbd9(0x1cf)],_0x40495b[_0x38cbd9(0x234)]=_0x38ccfa['hFvpP'];const _0x4bcb58={};_0x4bcb58[_0x38cbd9(0x25a)]=_0x38ccfa[_0x38cbd9(0x1de)],_0x4bcb58[_0x38cbd9(0x234)]=_0x38ccfa[_0x38cbd9(0x267)];const _0xb818fd={};return _0xb818fd[_0x38cbd9(0x1c1)]=_0x41b481,_0xb818fd[_0x38cbd9(0x269)]=_0x480a4f,_0xb818fd[_0x38cbd9(0x1f8)]=_0x40495b,_0xb818fd[_0x38cbd9(0x1ef)]=_0x4bcb58,_0x4eeaaa['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x38cbd9(0x226)](HELP_FOOTER_MESSAGE)['options'](_0xb818fd)[_0x38cbd9(0x1e9)](_0x38ccfa[_0x38cbd9(0x26c)])[_0x38cbd9(0x1f0)];};async function inputValidation(_0x5a0851,_0x44ae5d){const _0x511951=a17_0x1d83aa,_0x2252ed={'CvTgb':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OIkdo':_0x511951(0x1f2),'GWDcw':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','fkqoR':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','NNwNu':_0x511951(0x1b6),'Cgwgo':'help','YtqLR':_0x511951(0x269),'kETEW':_0x511951(0x23e),'JvVOY':_0x511951(0x256),'bcSWe':function(_0x146a26,_0x4133ed){return _0x146a26+_0x4133ed;},'ICBFo':_0x511951(0x1f1),'IugsL':_0x511951(0x175),'UHAZI':function(_0x2b45d2,_0x3dd942){return _0x2b45d2||_0x3dd942;},'XyJSC':'N/A','mGuEG':'Error\x20Details:\x0a','JHnEp':_0x511951(0x1f8),'LczDA':'error','ImRKm':_0x511951(0x1c1),'gdHqS':_0x511951(0x1b5),'EPOPx':function(_0x32061d,_0xe4d32e){return _0x32061d===_0xe4d32e;},'mnQHx':'dDkgM','MfiKx':function(_0x193308,_0x3609ba){return _0x193308!==_0x3609ba;},'Zwnvm':'kCtfp','VNvWS':_0x511951(0x261),'oyjFh':function(_0x2a230c,_0x11efec){return _0x2a230c===_0x11efec;},'LwZDw':'rfSFK','krZZj':'ebuih','TCvoJ':_0x511951(0x1d2),'hQhGJ':_0x511951(0x233),'HbAtq':_0x511951(0x205),'vEFPs':function(_0x1ea7d5,_0x222266){return _0x1ea7d5>_0x222266;},'CKisM':function(_0x54383b,_0x1b7cb8){return _0x54383b!==_0x1b7cb8;},'KvZTQ':_0x511951(0x176),'vYrdg':function(_0x2f5d3c,_0xc56338,_0x39c197,_0x5213bf,_0x47dae7,_0x1524cd,_0x5947be,_0x689ae3){return _0x2f5d3c(_0xc56338,_0x39c197,_0x5213bf,_0x47dae7,_0x1524cd,_0x5947be,_0x689ae3);},'JeRil':'pre-check-grid-called','qFqqz':_0x511951(0x19b),'LHjyK':function(_0x9da846,_0x4828d0){return _0x9da846!==_0x4828d0;},'xRqmk':_0x511951(0x191),'sYrtj':_0x511951(0x1a1),'DHmdp':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','WxHfB':function(_0x16b3a0,_0x290e08,_0x2e89d9,_0x20b0a8,_0x5cd732,_0x5a9480,_0xf45624,_0x429a37){return _0x16b3a0(_0x290e08,_0x2e89d9,_0x20b0a8,_0x5cd732,_0x5a9480,_0xf45624,_0x429a37);},'hpGVI':_0x511951(0x193),'SEJZs':_0x511951(0x196),'FGusu':'Fooib','PBOgA':_0x511951(0x23a),'DVclu':function(_0x190d1e,_0x286c9d,_0x4a535e){return _0x190d1e(_0x286c9d,_0x4a535e);},'mNUBw':function(_0x3d8b3c,_0x31c2bf,_0x56b68b,_0x2411d2,_0xc75f7e,_0x3ea8f4){return _0x3d8b3c(_0x31c2bf,_0x56b68b,_0x2411d2,_0xc75f7e,_0x3ea8f4);},'uFgKo':_0x511951(0x225),'HvnSt':_0x511951(0x1ef),'QWEWi':_0x511951(0x224),'ZYsuW':function(_0x1aea58,_0x3569d7){return _0x1aea58(_0x3569d7);},'NVrey':_0x511951(0x201),'QZzMw':function(_0x2c5496,_0x42ebe3,_0x5936d2,_0x159488,_0x4101e4,_0x538dcc,_0x5164f8,_0x5cf88b){return _0x2c5496(_0x42ebe3,_0x5936d2,_0x159488,_0x4101e4,_0x538dcc,_0x5164f8,_0x5cf88b);},'qjDiH':'pre-check-grid-profile-empty','ySjos':_0x511951(0x241),'wfPvy':function(_0x5103b6,_0xb9327b){return _0x5103b6!==_0xb9327b;},'dRHqe':'zVzjr','qkGtT':_0x511951(0x18d),'HUWcC':_0x511951(0x1ee),'QohAv':_0x511951(0x1ba),'JPKRO':_0x511951(0x248),'tLSOJ':function(_0x1b805f,_0x545c27,_0x4aa2c3,_0x3a089e,_0x5a7aa1,_0x5cde08,_0x2982ef,_0x228544){return _0x1b805f(_0x545c27,_0x4aa2c3,_0x3a089e,_0x5a7aa1,_0x5cde08,_0x2982ef,_0x228544);}};let _0x1a93c0;try{if(_0x2252ed[_0x511951(0x1aa)](_0x2252ed[_0x511951(0x1b2)],_0x2252ed[_0x511951(0x1b2)])){if(_0x5a0851[_0x511951(0x209)]||_0x5a0851[_0x511951(0x223)]||_0x5a0851['region']){if(_0x2252ed[_0x511951(0x24f)](_0x2252ed[_0x511951(0x1a7)],_0x2252ed[_0x511951(0x1c0)])){const _0x4f5c5e=[];if(!_0x5a0851[_0x511951(0x209)]){if(_0x2252ed['oyjFh'](_0x2252ed[_0x511951(0x237)],_0x2252ed['krZZj'])){const _0x1847cb={};_0x1847cb[_0x511951(0x25a)]=_0x2252ed['CvTgb'],_0x1847cb[_0x511951(0x234)]=_0x2252ed['OIkdo'];const _0x2362cf={};_0x2362cf[_0x511951(0x25a)]=_0x2252ed['GWDcw'],_0x2362cf['type']=_0x2252ed[_0x511951(0x1a3)];const _0x3f487b={};_0x3f487b[_0x511951(0x25a)]=_0x2252ed['fkqoR'],_0x3f487b['type']=_0x2252ed[_0x511951(0x1a3)];const _0x13fbb7={};_0x13fbb7[_0x511951(0x25a)]=_0x2252ed[_0x511951(0x23d)],_0x13fbb7[_0x511951(0x234)]=_0x2252ed[_0x511951(0x1a3)];const _0x1c2430={};return _0x1c2430['cluster-name']=_0x1847cb,_0x1c2430[_0x511951(0x269)]=_0x2362cf,_0x1c2430['region']=_0x3f487b,_0x1c2430[_0x511951(0x1ef)]=_0x13fbb7,_0x551d16['usage'](_0x457e58[_0x511951(0x228)])['epilogue'](_0x1f212a)[_0x511951(0x258)](_0x1c2430)[_0x511951(0x1e9)](_0x2252ed[_0x511951(0x178)])[_0x511951(0x1f0)];}else _0x4f5c5e[_0x511951(0x20c)](_0x2252ed[_0x511951(0x1c9)]);};!_0x5a0851[_0x511951(0x223)]&&(_0x2252ed[_0x511951(0x1e2)](_0x2252ed[_0x511951(0x17d)],_0x2252ed[_0x511951(0x1d0)])?_0x2126a0[_0x511951(0x20c)](_0x2252ed[_0x511951(0x22e)]):_0x4f5c5e[_0x511951(0x20c)](_0x2252ed['YtqLR']));;!_0x5a0851[_0x511951(0x1f8)]&&(_0x2252ed[_0x511951(0x24f)](_0x2252ed[_0x511951(0x1f9)],_0x2252ed[_0x511951(0x1f9)])?_0x3f15da+=_0x511951(0x215)+_0x5daf02[_0x511951(0x209)]+'\x20'+(_0x1a8cc0?_0x2252ed[_0x511951(0x17e)]:_0x2252ed['JvVOY'])+'\x0a\x0a':_0x4f5c5e[_0x511951(0x20c)](_0x2252ed[_0x511951(0x1a4)]));;if(_0x2252ed[_0x511951(0x219)](_0x4f5c5e[_0x511951(0x1fe)],0x0)){if(_0x2252ed['CKisM'](_0x2252ed[_0x511951(0x231)],_0x2252ed[_0x511951(0x231)])){const {header:_0xfd8675,response:_0x2089cb}=_0x8db80b,{status:_0x5443b4,data:_0x84ed46,error:_0x1746f2}=_0x2089cb;_0x1caf0f+=_0xfd8675+'\x20#'+_0x2252ed['bcSWe'](_0x24e3e0,0x1)+'\x0a',_0x5044c5+=_0x511951(0x189)+(_0x5443b4?_0x2252ed['ICBFo']:_0x2252ed[_0x511951(0x252)])+'\x0a',_0x23af6a+=_0x511951(0x1e4)+_0x2252ed[_0x511951(0x21d)](_0x84ed46,_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x1746f2&&(_0x4229ee+=_0x2252ed['mGuEG'],_0xe8b8c0+=_0x511951(0x26e)+(_0x1746f2[_0x511951(0x24a)]||_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x5a9fa1+='\x20\x20Code:\x20'+(_0x1746f2[_0x511951(0x184)]||_0x2252ed['XyJSC'])+'\x0a',_0x1b4b98+=_0x511951(0x204)+(_0x1746f2[_0x511951(0x188)]||_0x2252ed['XyJSC'])+'\x0a'),_0x199c79+='\x0a\x0a';}else _0x1a93c0=_0x511951(0x22b)+_0x4f5c5e[_0x511951(0x254)](',\x20')+_0x511951(0x1f7),await _0x2252ed[_0x511951(0x1d6)](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed[_0x511951(0x26a)],_0x2252ed['qFqqz'],_0x2252ed['LczDA']),logger[_0x511951(0x1ad)](_0x1a93c0),process[_0x511951(0x1b4)](0x1);}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x511951(0x1c4)](_0x5a0851[_0x511951(0x223)][_0x511951(0x211)]())&&(_0x2252ed[_0x511951(0x268)](_0x2252ed[_0x511951(0x18e)],_0x2252ed[_0x511951(0x21e)])?(_0x1a93c0=_0x2252ed['DHmdp'],await _0x2252ed[_0x511951(0x1d7)](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed[_0x511951(0x26a)],_0x2252ed[_0x511951(0x199)],_0x2252ed[_0x511951(0x1dd)]),logger[_0x511951(0x1ad)](_0x1a93c0),!_0x5a0851['cloudProvider']&&(_0x2252ed[_0x511951(0x1e2)](_0x2252ed[_0x511951(0x264)],_0x2252ed[_0x511951(0x264)])?(logger[_0x511951(0x1e5)](_0x511951(0x17a)+DEFAULT_CLUSTER_DETAILS[_0x511951(0x192)]+'\x20'),_0x5a0851['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x511951(0x192)]):_0x1eb320[_0x511951(0x20c)](_0x2252ed['JHnEp']))):(_0x357255+=_0x2252ed[_0x511951(0x180)],_0x43b05e+=_0x511951(0x26e)+(_0xe07a56[_0x511951(0x24a)]||_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x115147+=_0x511951(0x1dc)+(_0x5deb20[_0x511951(0x184)]||_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x45acb5+='\x20\x20Stack:\x20'+(_0x17b9d2[_0x511951(0x188)]||_0x2252ed['XyJSC'])+'\x0a')),global_registry[_0x511951(0x209)]=_0x5a0851[_0x511951(0x209)],global_registry[_0x511951(0x223)]=_0x5a0851[_0x511951(0x223)],global_registry[_0x511951(0x20f)]=_0x5a0851[_0x511951(0x1f8)];}else _0x141940=_0x25d666;}else{if(_0x5a0851[_0x511951(0x1d3)]){if(_0x2252ed['oyjFh'](_0x2252ed[_0x511951(0x21c)],_0x2252ed[_0x511951(0x21c)])){global_registry[_0x511951(0x1d3)]=_0x5a0851['gridProfile'],logger[_0x511951(0x18a)](_0x511951(0x1e8)+_0x5a0851[_0x511951(0x1d3)]);const _0x1f39ff=_0x511951(0x1fb)+AG_API_URL+_0x511951(0x187),_0x48c2ec={};_0x48c2ec['method']=_0x2252ed[_0x511951(0x19f)],_0x48c2ec[_0x511951(0x263)]=global_registry[_0x511951(0x1fd)],_0x48c2ec[_0x511951(0x1e6)]=![];const _0x570e3e=_0x48c2ec,_0x4ca7a2=await _0x2252ed[_0x511951(0x197)](got,_0x1f39ff,_0x570e3e),_0x506ccd=await _0x2252ed[_0x511951(0x1b8)](responseValidation,_0x4ca7a2,_0x2252ed[_0x511951(0x249)],_0x2252ed[_0x511951(0x1d4)],_0x5a0851,_0x44ae5d);let _0x1a6ba6={};if(_0x2252ed[_0x511951(0x1aa)](_0x506ccd,0xc8)){if(_0x2252ed[_0x511951(0x24f)](_0x2252ed[_0x511951(0x1db)],_0x2252ed['QWEWi']))_0x514b28[_0x511951(0x1b4)](0x1);else{const _0x48d386=JSON[_0x511951(0x1a8)](_0x4ca7a2[_0x511951(0x208)]),_0x3650e9=_0x48d386['find'](_0x3096de=>_0x3096de['name']===_0x5a0851[_0x511951(0x1d3)])||null;if(_0x2252ed[_0x511951(0x21a)](isUndefined,_0x3650e9))_0x2252ed[_0x511951(0x1aa)](_0x2252ed[_0x511951(0x185)],_0x2252ed[_0x511951(0x185)])?(_0x1a93c0='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5a0851[_0x511951(0x1d3)]+_0x511951(0x24c),await _0x2252ed['QZzMw'](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed['JeRil'],_0x2252ed[_0x511951(0x266)],_0x2252ed['LczDA']),logger[_0x511951(0x1ad)](_0x1a93c0),process[_0x511951(0x1b4)](0x1)):_0x4770ec+='Cluster\x20'+_0x432398[_0x511951(0x209)]+_0x511951(0x1c3);else{if(_0x2252ed[_0x511951(0x1aa)](_0x2252ed[_0x511951(0x230)],_0x2252ed['ySjos']))_0x1a6ba6=_0x3650e9;else{const _0x55b2eb={};_0x55b2eb[_0x511951(0x234)]=_0x3323f3[_0x511951(0x255)],_0x55b2eb['message']=_0x374fdb,_0x21b9d6[_0x511951(0x247)](_0x1f7eaa,_0x55b2eb,_0x2252ed[_0x511951(0x1dd)],!![]);}}}}else _0x2252ed[_0x511951(0x1b3)](_0x2252ed[_0x511951(0x194)],_0x2252ed[_0x511951(0x194)])?_0x261faf['push'](_0x2252ed[_0x511951(0x1c9)]):process[_0x511951(0x1b4)](0x1);const _0x59de65={};_0x59de65[_0x511951(0x234)]=WS_EVENTS['LOG'],_0x59de65[_0x511951(0x24a)]=_0x2252ed['qkGtT'],webSocketUtils['sendEventToBackend'](_0x44ae5d,_0x59de65),global_registry['cloudProvider']=_0x1a6ba6[_0x511951(0x223)],global_registry[_0x511951(0x20f)]=_0x1a6ba6[_0x511951(0x1f8)],global_registry[_0x511951(0x209)]=_0x1a6ba6[_0x511951(0x209)];}else _0x335dd4[_0x511951(0x1e5)](_0x511951(0x1b9)+_0x49eaa5[_0x511951(0x209)]+_0x511951(0x222));}else _0x2252ed[_0x511951(0x1b3)](_0x2252ed['HUWcC'],_0x2252ed[_0x511951(0x1bc)])?(logger[_0x511951(0x1ad)](_0x2252ed[_0x511951(0x1f4)]),process['exit'](0x1)):_0x1f542f[_0x511951(0x1ad)]('error\x20stack\x20:\x20'+_0x55c62a[_0x511951(0x1ad)]['stack']);}}else _0x4c5066[_0x511951(0x1ad)](_0x2252ed[_0x511951(0x1f4)]),_0xb25061[_0x511951(0x1b4)](0x1);}catch(_0x2f390c){_0x2252ed[_0x511951(0x1e2)](_0x2252ed[_0x511951(0x1ec)],_0x2252ed[_0x511951(0x1ec)])?(_0x1a93c0='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x2f390c+':\x20'+_0x2f390c[_0x511951(0x188)],logger[_0x511951(0x1ad)](_0x1a93c0),await _0x2252ed[_0x511951(0x18c)](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed[_0x511951(0x26a)],_0x2252ed[_0x511951(0x199)],_0x2252ed[_0x511951(0x1dd)]),process[_0x511951(0x1b4)](0x1)):(_0xad6155[_0x511951(0x1e5)](_0x511951(0x17a)+_0x15bad4[_0x511951(0x192)]+'\x20'),_0x8f5a26[_0x511951(0x223)]=_0x53ed2c[_0x511951(0x192)]);}}function printResponse(_0x3a439c,_0x4ef654){const _0x4db76d=a17_0x1d83aa,_0x1208b5={};_0x1208b5[_0x4db76d(0x25f)]=function(_0x1b6c1b,_0x3d7f09){return _0x1b6c1b===_0x3d7f09;},_0x1208b5['WfRWr']=_0x4db76d(0x177),_0x1208b5[_0x4db76d(0x1f6)]='IIKiJ';const _0x4ab130=_0x1208b5;logger['info']('['+_0x3a439c+_0x4db76d(0x1ab)+_0x4ef654[_0x4db76d(0x1c6)]+'\x20data\x20:\x20'+_0x4ef654['data']+_0x4db76d(0x210)+_0x4ef654[_0x4db76d(0x1ad)]),_0x4ef654['error']&&(_0x4ab130[_0x4db76d(0x25f)](_0x4ab130[_0x4db76d(0x1e0)],_0x4ab130[_0x4db76d(0x1f6)])?(_0x3f69b1['info']('['+_0x51047f+_0x4db76d(0x1ab)+_0x211ccd[_0x4db76d(0x1c6)]+_0x4db76d(0x23b)+_0x3078b5[_0x4db76d(0x19d)]+'\x20error\x20:\x20'+_0x3e9672[_0x4db76d(0x1ad)]),_0x1081fa[_0x4db76d(0x1ad)]&&_0x1ac58a[_0x4db76d(0x1ad)]('error\x20stack\x20:\x20'+_0x593795[_0x4db76d(0x1ad)][_0x4db76d(0x188)])):logger[_0x4db76d(0x1ad)]('error\x20stack\x20:\x20'+_0x4ef654[_0x4db76d(0x1ad)][_0x4db76d(0x188)]));}async function generateReport(_0xdc2312,_0x35dcc4){const _0x32d89f=a17_0x1d83aa,_0x1c452a={'XtIBw':function(_0x37ea5a,_0x2a4d11){return _0x37ea5a+_0x2a4d11;},'RVxiM':'Success','uQNoW':_0x32d89f(0x175),'lsZLy':function(_0x3fd6fc,_0xb5d548){return _0x3fd6fc||_0xb5d548;},'ceveE':_0x32d89f(0x20e),'vbEve':'Error\x20Details:\x0a','SRPiJ':_0x32d89f(0x22a),'laNWX':function(_0x5a7d38,_0x151947){return _0x5a7d38!=_0x151947;},'GmMLM':_0x32d89f(0x23e),'VjHYU':_0x32d89f(0x256),'cJaYc':function(_0x52ebd2){return _0x52ebd2();}};let _0x12ab11=_0x32d89f(0x19a)+global_registry[_0x32d89f(0x223)]+_0x32d89f(0x24b);return _0xdc2312[_0x32d89f(0x202)]((_0x54f280,_0x2e16aa)=>{const _0xf4a35=_0x32d89f,{header:_0x48a4e6,response:_0x18784b}=_0x54f280,{status:_0x370b81,data:_0x13df10,error:_0x464bfa}=_0x18784b;_0x12ab11+=_0x48a4e6+'\x20#'+_0x1c452a[_0xf4a35(0x24d)](_0x2e16aa,0x1)+'\x0a',_0x12ab11+=_0xf4a35(0x189)+(_0x370b81?_0x1c452a[_0xf4a35(0x251)]:_0x1c452a[_0xf4a35(0x1cd)])+'\x0a',_0x12ab11+=_0xf4a35(0x1e4)+_0x1c452a[_0xf4a35(0x214)](_0x13df10,_0x1c452a['ceveE'])+'\x0a',_0x464bfa&&(_0x12ab11+=_0x1c452a[_0xf4a35(0x265)],_0x12ab11+=_0xf4a35(0x26e)+(_0x464bfa[_0xf4a35(0x24a)]||_0x1c452a['ceveE'])+'\x0a',_0x12ab11+='\x20\x20Code:\x20'+(_0x464bfa['code']||_0x1c452a['ceveE'])+'\x0a',_0x12ab11+=_0xf4a35(0x204)+(_0x464bfa['stack']||_0x1c452a[_0xf4a35(0x1d1)])+'\x0a'),_0x12ab11+='\x0a\x0a';}),_0x12ab11+=_0x1c452a[_0x32d89f(0x1b1)],_0x1c452a[_0x32d89f(0x17b)](_0x35dcc4,null)?_0x12ab11+='Cluster\x20'+global_registry[_0x32d89f(0x209)]+'\x20'+(_0x35dcc4?_0x1c452a[_0x32d89f(0x1af)]:_0x1c452a[_0x32d89f(0x1f5)])+'\x0a\x0a':_0x12ab11+=_0x32d89f(0x215)+global_registry[_0x32d89f(0x209)]+_0x32d89f(0x1c3),_0x12ab11+=_0x1c452a[_0x32d89f(0x259)](getSystemMetaData),_0x12ab11;};exports[a17_0x1d83aa(0x244)]=async function(_0x247678){const _0x10a127=a17_0x1d83aa,_0x1af21b={'VnLxU':function(_0x581121){return _0x581121();},'ofaKJ':function(_0x4ffd27){return _0x4ffd27();},'eIORv':_0x10a127(0x260),'eXNRq':function(_0x5379e4,_0xe4acba,_0x483bc9,_0x2b52a2,_0x192d72,_0x2c90d0,_0x712eac,_0x587ff3){return _0x5379e4(_0xe4acba,_0x483bc9,_0x2b52a2,_0x192d72,_0x2c90d0,_0x712eac,_0x587ff3);},'Ucyco':_0x10a127(0x25e),'NTErf':_0x10a127(0x22f),'ONXVS':_0x10a127(0x1ad),'GGfHK':function(_0x3eaf8b,_0x5f0203,_0x4ed0ed,_0x5cbd7e,_0x200bbd,_0x37d0ec,_0x4346fc){return _0x3eaf8b(_0x5f0203,_0x4ed0ed,_0x5cbd7e,_0x200bbd,_0x37d0ec,_0x4346fc);},'vtReA':function(_0x22cc7f){return _0x22cc7f();},'RWfCg':_0x10a127(0x1f3),'CWHSL':_0x10a127(0x1e7),'bTzFF':function(_0x3871c3,_0x2aa5ea,_0x53fae4){return _0x3871c3(_0x2aa5ea,_0x53fae4);},'Pkgcc':function(_0x440905,_0x59ae1c,_0x4547d6){return _0x440905(_0x59ae1c,_0x4547d6);},'dsQJe':function(_0x2966cd,_0x392ef2,_0x24ede4,_0x5d0c76,_0x470775,_0xd138cd,_0x3aa4b5){return _0x2966cd(_0x392ef2,_0x24ede4,_0x5d0c76,_0x470775,_0xd138cd,_0x3aa4b5);},'oihWy':'dummy-grid','eQJPU':_0x10a127(0x190),'IoeCI':_0x10a127(0x1d8),'wyrkk':function(_0x2378a0,_0x318689,_0x2bfe1b){return _0x2378a0(_0x318689,_0x2bfe1b);},'KxgFP':_0x10a127(0x1bf),'JeSql':function(_0x54a734){return _0x54a734();},'qawZt':function(_0x17b7c0,_0x2436f8,_0x443ceb){return _0x17b7c0(_0x2436f8,_0x443ceb);},'mhxkh':_0x10a127(0x20d),'hMzFV':function(_0x1d8c21,_0x6e8f39){return _0x1d8c21(_0x6e8f39);},'AhEzK':_0x10a127(0x1ea),'kKgRc':_0x10a127(0x23f),'ouHpa':_0x10a127(0x1d9),'fBKxz':_0x10a127(0x21f),'slSTL':_0x10a127(0x227),'ImMNh':_0x10a127(0x183),'GiNfg':function(_0x4aa7b1,_0x3a7509){return _0x4aa7b1+_0x3a7509;},'mKQaU':_0x10a127(0x1c7),'MyHAW':_0x10a127(0x173)};let _0x128cee,_0x281647;try{global_registry[_0x10a127(0x1a2)]=_0x1af21b['VnLxU'](uuidv4);!fs['existsSync'](_0x1af21b[_0x10a127(0x216)](getCredentialsPath))&&(_0x281647=_0x1af21b[_0x10a127(0x17c)],logger[_0x10a127(0x1ad)](_0x281647),await _0x1af21b[_0x10a127(0x246)](reportToGalactusAndSendToEDS,_0x247678,_0x128cee,_0x281647,messageTypes[_0x10a127(0x1eb)],_0x1af21b['Ucyco'],_0x1af21b['NTErf'],_0x1af21b[_0x10a127(0x22d)]),process[_0x10a127(0x1b4)](0x1));_0x1af21b[_0x10a127(0x26b)](sendInstrumentationEvent,_0x247678,_0x1af21b[_0x10a127(0x213)],messageTypes[_0x10a127(0x1d5)],null,null,_0x247678);const _0x16547d=JSON[_0x10a127(0x1a8)](fs[_0x10a127(0x25b)](_0x1af21b['vtReA'](getCredentialsPath)));global_registry[_0x10a127(0x17f)]=_0x16547d[_0x10a127(0x229)][_0x10a127(0x220)],global_registry[_0x10a127(0x238)]=_0x16547d[_0x10a127(0x229)][_0x10a127(0x243)];const _0x2a802b=WS_ENDPOINT['replace'](_0x1af21b[_0x10a127(0x21b)],_0x16547d[_0x10a127(0x229)][_0x10a127(0x220)])[_0x10a127(0x1a5)](_0x1af21b['CWHSL'],_0x16547d['Browserstack'][_0x10a127(0x243)]),_0x145c4e={};_0x145c4e['WebSocket']=ws,_0x145c4e[_0x10a127(0x181)]=0x36ee80,_0x128cee=new ReconnectingWebSocket(_0x2a802b,[],_0x145c4e),global_registry['authHeader']=_0x1af21b['bTzFF'](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x10a127(0x238)]),await _0x1af21b[_0x10a127(0x186)](inputValidation,_0x247678,_0x128cee),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x10a127(0x20f)]);let _0x189b37=await _0x1af21b[_0x10a127(0x195)](getCloudProviderObjectWithOutInit,global_registry[_0x10a127(0x223)],global_registry['clusterName'],_0x1af21b[_0x10a127(0x235)],_0x128cee,webSocketUtils,_0x247678);const _0x4ce48e=await _0x189b37[_0x10a127(0x200)]();_0x1af21b[_0x10a127(0x206)](printResponse,_0x1af21b[_0x10a127(0x1ae)],_0x4ce48e),_0x189b37=await _0x189b37['init']();let _0x291ff9=![];try{_0x291ff9=await _0x189b37['isClusterPresent']();}catch(_0x40be07){const _0xf6a8f6=_0x1af21b[_0x10a127(0x1e1)][_0x10a127(0x218)]('|');let _0x209ada=0x0;while(!![]){switch(_0xf6a8f6[_0x209ada++]){case'0':_0x281647=_0x10a127(0x1bb)+global_registry['clusterName']+_0x10a127(0x240)+global_registry['clusterRegion']+_0x10a127(0x25d)+_0x40be07;continue;case'1':logger['error'](_0x281647);continue;case'2':_0x291ff9=null;continue;case'3':await _0x1af21b[_0x10a127(0x246)](reportToGalactusAndSendToEDS,_0x247678,_0x128cee,_0x281647,messageTypes[_0x10a127(0x1eb)],_0x1af21b[_0x10a127(0x213)],_0x10a127(0x221)+global_registry['cloudProvider'],_0x1af21b[_0x10a127(0x22d)]);continue;case'4':_0x281647+='\x0a'+JSON['stringify'](_0x40be07['stack']);continue;}break;}}_0x291ff9&&logger[_0x10a127(0x1e5)](_0x10a127(0x1b9)+global_registry[_0x10a127(0x209)]+_0x10a127(0x222));const _0x4ab89c=await _0x189b37[_0x10a127(0x1df)]();_0x1af21b[_0x10a127(0x179)](printResponse,_0x1af21b[_0x10a127(0x1c8)],_0x4ab89c);const _0x48cc81=await _0x1af21b[_0x10a127(0x257)](curlRequest);_0x1af21b[_0x10a127(0x198)](printResponse,_0x1af21b[_0x10a127(0x236)],_0x48cc81);const _0x59c9d6=await _0x1af21b[_0x10a127(0x232)](isTlsSupported,_0x1af21b[_0x10a127(0x19c)]);_0x1af21b['Pkgcc'](printResponse,_0x1af21b[_0x10a127(0x25c)],_0x59c9d6);const _0x1d8cb1={};_0x1d8cb1[_0x10a127(0x1e3)]=_0x1af21b[_0x10a127(0x1fa)],_0x1d8cb1['response']=_0x4ce48e;const _0x1f288f={};_0x1f288f['header']=_0x1af21b[_0x10a127(0x242)],_0x1f288f[_0x10a127(0x1c2)]=_0x4ab89c;const _0x3a7306={};_0x3a7306[_0x10a127(0x1e3)]=_0x1af21b[_0x10a127(0x22c)],_0x3a7306[_0x10a127(0x1c2)]=_0x48cc81;const _0x2f3925={};_0x2f3925['header']=_0x1af21b[_0x10a127(0x1cc)],_0x2f3925[_0x10a127(0x1c2)]=_0x59c9d6;const _0x22136b=[_0x1d8cb1,_0x1f288f,_0x3a7306,_0x2f3925],_0x2774ff=await _0x1af21b[_0x10a127(0x206)](generateReport,_0x22136b,_0x291ff9),_0x450df0=new Date(),_0x2222d7=_0x450df0[_0x10a127(0x174)]()+'_'+_0x1af21b[_0x10a127(0x1ce)](_0x450df0[_0x10a127(0x212)](),0x1)+'_'+_0x450df0['getUTCDate']()+'_'+_0x450df0[_0x10a127(0x203)]()+'_'+_0x450df0['getUTCMinutes'](),_0x1ed773=_0x10a127(0x19e)+_0x2222d7+_0x10a127(0x18b);fs[_0x10a127(0x1ed)](_0x1ed773,_0x2774ff,_0x1af21b[_0x10a127(0x207)]),logger[_0x10a127(0x1e5)](_0x10a127(0x1a6)+_0x1ed773),process[_0x10a127(0x1b4)](0x0);}catch(_0x35587f){let _0x2f4fff='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x35587f+'\x20';logger[_0x10a127(0x1ad)](_0x2f4fff),_0x2f4fff+='\x0a'+JSON[_0x10a127(0x245)](_0x35587f['stack']),logger[_0x10a127(0x18a)](_0x10a127(0x1fc)+_0x35587f[_0x10a127(0x188)]);if(_0x128cee){const _0x3097f9={};_0x3097f9['type']=WS_EVENTS[_0x10a127(0x255)],_0x3097f9['message']=_0x2f4fff,webSocketUtils[_0x10a127(0x247)](_0x128cee,_0x3097f9,_0x1af21b[_0x10a127(0x22d)],!![]);}await webSocketUtils[_0x10a127(0x1cb)](0x7d0);const _0x4cdb7b={};_0x4cdb7b['error']=_0x2f4fff,await _0x1af21b[_0x10a127(0x195)](sendInstrumentationEvent,_0x247678,_0x1af21b['Ucyco'],messageTypes[_0x10a127(0x1eb)],_0x1af21b['MyHAW'],_0x4cdb7b,_0x247678),process[_0x10a127(0x1b4)](0x1);}};
|
|
1
|
+
const a17_0x3e02de=a17_0x2381;function a17_0x2381(_0x4d56af,_0xfa3ec3){const _0x338ef2=a17_0x338e();return a17_0x2381=function(_0x23813e,_0xf8af56){_0x23813e=_0x23813e-0x167;let _0x36bb29=_0x338ef2[_0x23813e];return _0x36bb29;},a17_0x2381(_0x4d56af,_0xfa3ec3);}(function(_0x2b68df,_0x151197){const _0x25761a=a17_0x2381,_0x2e60b0=_0x2b68df();while(!![]){try{const _0x3578a5=-parseInt(_0x25761a(0x21f))/0x1*(-parseInt(_0x25761a(0x21d))/0x2)+parseInt(_0x25761a(0x23a))/0x3*(parseInt(_0x25761a(0x228))/0x4)+parseInt(_0x25761a(0x177))/0x5*(parseInt(_0x25761a(0x1c5))/0x6)+parseInt(_0x25761a(0x21a))/0x7*(parseInt(_0x25761a(0x24a))/0x8)+parseInt(_0x25761a(0x1de))/0x9+-parseInt(_0x25761a(0x1dd))/0xa+-parseInt(_0x25761a(0x190))/0xb;if(_0x3578a5===_0x151197)break;else _0x2e60b0['push'](_0x2e60b0['shift']());}catch(_0x4f9e77){_0x2e60b0['push'](_0x2e60b0['shift']());}}}(a17_0x338e,0x22aaa));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3e02de(0x218)),{v4:uuidv4}=require(a17_0x3e02de(0x19a)),ReconnectingWebSocket=require(a17_0x3e02de(0x1f1)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x3e02de(0x1d3)),{getCloudProviderObjectWithOutInit}=require(a17_0x3e02de(0x1b4)),webSocketUtils=require(a17_0x3e02de(0x254)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x3e02de(0x25e)]=a17_0x3e02de(0x229),exports[a17_0x3e02de(0x18b)]=a17_0x3e02de(0x1ec),exports[a17_0x3e02de(0x20c)]=function(_0x271be6){const _0x287a05=a17_0x3e02de,_0x5c5616={};_0x5c5616[_0x287a05(0x1db)]=_0x287a05(0x21e),_0x5c5616[_0x287a05(0x1cc)]=_0x287a05(0x1ce),_0x5c5616[_0x287a05(0x1c3)]=_0x287a05(0x192),_0x5c5616[_0x287a05(0x1a9)]=_0x287a05(0x18a),_0x5c5616[_0x287a05(0x18c)]=_0x287a05(0x23e),_0x5c5616[_0x287a05(0x207)]=_0x287a05(0x1bc);const _0x158a60=_0x5c5616,_0x55342b={};_0x55342b[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1db)],_0x55342b[_0x287a05(0x184)]=_0x158a60['eusPr'];const _0x3c71c8={};_0x3c71c8[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1c3)],_0x3c71c8[_0x287a05(0x184)]=_0x158a60[_0x287a05(0x1cc)];const _0x33c807={};_0x33c807[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1a9)],_0x33c807[_0x287a05(0x184)]=_0x158a60[_0x287a05(0x1cc)];const _0x41e46b={};_0x41e46b[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x18c)],_0x41e46b['type']=_0x158a60[_0x287a05(0x1cc)];const _0xc42868={};return _0xc42868['cluster-name']=_0x55342b,_0xc42868[_0x287a05(0x1f3)]=_0x3c71c8,_0xc42868[_0x287a05(0x1eb)]=_0x33c807,_0xc42868[_0x287a05(0x19f)]=_0x41e46b,_0x271be6[_0x287a05(0x1ff)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x287a05(0x1b0)](_0xc42868)[_0x287a05(0x1bc)](_0x158a60[_0x287a05(0x207)])[_0x287a05(0x25a)];};async function inputValidation(_0x552483,_0x2ec854){const _0x484fa4=a17_0x3e02de,_0xbd3c1={'OLvhJ':function(_0x412217,_0xb8d2a){return _0x412217+_0xb8d2a;},'ebVmK':_0x484fa4(0x239),'iNySX':_0x484fa4(0x22d),'yyUbs':function(_0xb5e552,_0x2c72c9){return _0xb5e552||_0x2c72c9;},'RmKIL':_0x484fa4(0x25d),'XZwhk':_0x484fa4(0x215),'GLShy':_0x484fa4(0x269),'XqSCQ':_0x484fa4(0x1e6),'qKUVg':_0x484fa4(0x20a),'xGshs':'cloud-provider','RIJfY':_0x484fa4(0x1eb),'HNeIS':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','TibXJ':_0x484fa4(0x1ce),'nmchv':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','QTOwe':_0x484fa4(0x18a),'GYZjB':_0x484fa4(0x23e),'tLCUc':_0x484fa4(0x1bc),'ggkzA':function(_0x404866,_0x5f5cda){return _0x404866===_0x5f5cda;},'cakMm':_0x484fa4(0x261),'BEYiY':_0x484fa4(0x1a7),'jcwPU':function(_0x18cc10,_0x39b9dd){return _0x18cc10!==_0x39b9dd;},'bbglh':_0x484fa4(0x1e0),'YpCoZ':function(_0x41a5a7,_0x1ab781){return _0x41a5a7===_0x1ab781;},'neogl':_0x484fa4(0x1af),'aJeIQ':_0x484fa4(0x1ea),'OZEBH':_0x484fa4(0x22a),'TkZIx':'PEwkl','BCcpH':function(_0x83d4d1,_0x1df3f3){return _0x83d4d1>_0x1df3f3;},'LrpRY':function(_0x18ba04,_0x2df2ba){return _0x18ba04!==_0x2df2ba;},'vGtrq':_0x484fa4(0x238),'ucmGg':function(_0x484d49,_0x36688a,_0x3dcd1c,_0x5f352c,_0x247883,_0x39ca7c,_0x568d05,_0x147797){return _0x484d49(_0x36688a,_0x3dcd1c,_0x5f352c,_0x247883,_0x39ca7c,_0x568d05,_0x147797);},'UOlie':_0x484fa4(0x213),'rIzqP':_0x484fa4(0x256),'osyIz':_0x484fa4(0x1c9),'ybjLm':_0x484fa4(0x202),'TyWzo':'cloud-provider-not-supported','WCaTT':function(_0x4f0646,_0x55b0b6){return _0x4f0646===_0x55b0b6;},'gRPYS':_0x484fa4(0x16c),'gCgzv':'YeBwj','gauTj':_0x484fa4(0x1be),'hXgfx':'GET','TTqAs':function(_0x4a3bb6,_0x524899,_0x65bb0e){return _0x4a3bb6(_0x524899,_0x65bb0e);},'HYcbG':function(_0x2850cb,_0xe2307a,_0x219adf,_0x238df9,_0x2e8098,_0x3a195a){return _0x2850cb(_0xe2307a,_0x219adf,_0x238df9,_0x2e8098,_0x3a195a);},'nUJpU':_0x484fa4(0x167),'HMNlS':_0x484fa4(0x19f),'ZmzqY':function(_0x377f45,_0x587b51){return _0x377f45!==_0x587b51;},'EdryL':_0x484fa4(0x210),'ZTkJs':'DekJs','grUhR':function(_0x19654b,_0x51e819){return _0x19654b(_0x51e819);},'NSIfJ':_0x484fa4(0x250),'EzsQB':_0x484fa4(0x1b5),'IsIpn':function(_0x35ae3e,_0x241c33,_0x163fed,_0x175052,_0x30e804,_0xb305b3,_0x24c04d,_0x3d8f3b){return _0x35ae3e(_0x241c33,_0x163fed,_0x175052,_0x30e804,_0xb305b3,_0x24c04d,_0x3d8f3b);},'fIPPL':_0x484fa4(0x231),'SdLxX':function(_0x44f6d4,_0x2f141f){return _0x44f6d4!==_0x2f141f;},'WFWuQ':_0x484fa4(0x247),'sZVSv':'nqCEg','MzMIx':_0x484fa4(0x1a2),'wibTH':'DzDPU','FObic':_0x484fa4(0x236),'frGVi':function(_0x15af6d,_0x41748e){return _0x15af6d===_0x41748e;},'pkmkw':'Xrjwi','sAzmG':_0x484fa4(0x199),'vHhsc':function(_0x4703e1,_0x41d7c9){return _0x4703e1===_0x41d7c9;},'VwvzY':_0x484fa4(0x19e),'rXqjP':_0x484fa4(0x24e),'dzLDD':function(_0x1bd356,_0x16dfbc,_0x217f9c,_0x31de68,_0x3fc715,_0x43b427,_0x157435,_0x5f4d87){return _0x1bd356(_0x16dfbc,_0x217f9c,_0x31de68,_0x3fc715,_0x43b427,_0x157435,_0x5f4d87);}};let _0x2aa9fb;try{if(_0xbd3c1[_0x484fa4(0x1f6)](_0xbd3c1[_0x484fa4(0x223)],_0xbd3c1[_0x484fa4(0x1a1)])){const {header:_0x3bd19e,response:_0x25fd48}=_0x5c1fbb,{status:_0x1c40df,data:_0x282b4c,error:_0x1df45a}=_0x25fd48;_0x29f2d6+=_0x3bd19e+'\x20#'+_0xbd3c1[_0x484fa4(0x17c)](_0x25b6d1,0x1)+'\x0a',_0x1bc785+=_0x484fa4(0x265)+(_0x1c40df?_0xbd3c1[_0x484fa4(0x240)]:_0xbd3c1[_0x484fa4(0x237)])+'\x0a',_0x13da9b+=_0x484fa4(0x1d5)+_0xbd3c1[_0x484fa4(0x266)](_0x282b4c,_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x1df45a&&(_0x3ed9df+=_0xbd3c1[_0x484fa4(0x168)],_0x94beb7+=_0x484fa4(0x1c7)+(_0x1df45a[_0x484fa4(0x21c)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x26d242+=_0x484fa4(0x1f2)+(_0x1df45a['code']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x2765bf+=_0x484fa4(0x249)+(_0x1df45a['stack']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a'),_0xdc27ce+='\x0a\x0a';}else{if(_0x552483[_0x484fa4(0x214)]||_0x552483[_0x484fa4(0x189)]||_0x552483[_0x484fa4(0x1eb)]){if(_0xbd3c1[_0x484fa4(0x1ae)](_0xbd3c1[_0x484fa4(0x217)],_0xbd3c1['bbglh']))_0x1e955c[_0x484fa4(0x197)]('['+_0x51347e+_0x484fa4(0x172)+_0x59d903[_0x484fa4(0x253)]+_0x484fa4(0x183)+_0x488ac6[_0x484fa4(0x198)]+'\x20error\x20:\x20'+_0x54a69b['error']),_0x15d5b2[_0x484fa4(0x20a)]&&_0x56863['error'](_0x484fa4(0x208)+_0x359885['error'][_0x484fa4(0x186)]);else{const _0xf28f9c=[];!_0x552483['clusterName']&&(_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1[_0x484fa4(0x1e9)],_0xbd3c1[_0x484fa4(0x1dc)])?_0x212436+=_0x484fa4(0x1e1)+_0x55db09[_0x484fa4(0x214)]+_0x484fa4(0x23b):_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1[_0x484fa4(0x1b6)]));;!_0x552483[_0x484fa4(0x189)]&&(_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1[_0x484fa4(0x196)],_0xbd3c1[_0x484fa4(0x196)])?_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1['xGshs']):_0x4e0477[_0x484fa4(0x262)](_0xbd3c1['GLShy']));;!_0x552483[_0x484fa4(0x1eb)]&&(_0xbd3c1['jcwPU'](_0xbd3c1[_0x484fa4(0x187)],_0xbd3c1[_0x484fa4(0x187)])?(_0x1d2859['error'](_0xbd3c1[_0x484fa4(0x1e8)]),_0x108ae2[_0x484fa4(0x201)](0x1)):_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1[_0x484fa4(0x220)]));;_0xbd3c1[_0x484fa4(0x185)](_0xf28f9c[_0x484fa4(0x25b)],0x0)&&(_0xbd3c1[_0x484fa4(0x18f)](_0xbd3c1[_0x484fa4(0x1b9)],_0xbd3c1[_0x484fa4(0x1b9)])?_0x357fc6[_0x484fa4(0x201)](0x1):(_0x2aa9fb='Missing\x20required\x20arguments:\x20'+_0xf28f9c[_0x484fa4(0x1f8)](',\x20')+_0x484fa4(0x23d),await _0xbd3c1[_0x484fa4(0x19b)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes[_0x484fa4(0x23c)],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1[_0x484fa4(0x1c8)],_0xbd3c1['qKUVg']),logger['error'](_0x2aa9fb),process['exit'](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x484fa4(0x25c)](_0x552483['cloudProvider'][_0x484fa4(0x1f5)]())){if(_0xbd3c1[_0x484fa4(0x18f)](_0xbd3c1[_0x484fa4(0x1b3)],_0xbd3c1[_0x484fa4(0x1b3)])){const _0xb875b4={};_0xb875b4[_0x484fa4(0x184)]=_0x34ba9b['LOG'],_0xb875b4[_0x484fa4(0x21c)]=_0x265b64,_0x4c76c2[_0x484fa4(0x17d)](_0x2f110b,_0xb875b4,_0xbd3c1['qKUVg'],!![]);}else _0x2aa9fb=_0xbd3c1[_0x484fa4(0x1d8)],await _0xbd3c1[_0x484fa4(0x19b)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1['UOlie'],_0xbd3c1['TyWzo'],_0xbd3c1[_0x484fa4(0x1f0)]),logger[_0x484fa4(0x20a)](_0x2aa9fb),!_0x552483[_0x484fa4(0x189)]&&(_0xbd3c1[_0x484fa4(0x252)](_0xbd3c1[_0x484fa4(0x17e)],_0xbd3c1[_0x484fa4(0x235)])?(_0x567686+=_0xbd3c1[_0x484fa4(0x168)],_0x2f5bd0+=_0x484fa4(0x1c7)+(_0x534079['message']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x593bf3+=_0x484fa4(0x1f2)+(_0x9ac67c[_0x484fa4(0x188)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x333627+=_0x484fa4(0x249)+(_0x2e9cf2[_0x484fa4(0x186)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a'):(logger[_0x484fa4(0x197)](_0x484fa4(0x1f4)+DEFAULT_CLUSTER_DETAILS[_0x484fa4(0x1b8)]+'\x20'),_0x552483['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry['clusterName']=_0x552483[_0x484fa4(0x214)],global_registry[_0x484fa4(0x189)]=_0x552483['cloudProvider'],global_registry[_0x484fa4(0x1aa)]=_0x552483[_0x484fa4(0x1eb)];}}else{if(_0x552483['gridProfile']){if(_0xbd3c1['jcwPU'](_0xbd3c1['gauTj'],_0xbd3c1['gauTj']))_0x444508['push'](_0xbd3c1['xGshs']);else{global_registry[_0x484fa4(0x193)]=_0x552483[_0x484fa4(0x193)],logger['debug']('grid\x20profile\x20flow\x20'+_0x552483[_0x484fa4(0x193)]);const _0x3a3226=_0x484fa4(0x180)+AG_API_URL+_0x484fa4(0x1ef),_0x591bab={};_0x591bab['method']=_0xbd3c1['hXgfx'],_0x591bab[_0x484fa4(0x170)]=global_registry[_0x484fa4(0x200)],_0x591bab[_0x484fa4(0x24b)]=![];const _0x5eafa8=_0x591bab,_0x312394=await _0xbd3c1['TTqAs'](got,_0x3a3226,_0x5eafa8),_0xaad640=await _0xbd3c1[_0x484fa4(0x20b)](responseValidation,_0x312394,_0xbd3c1[_0x484fa4(0x260)],_0xbd3c1[_0x484fa4(0x23f)],_0x552483,_0x2ec854);let _0x1bb07e={};if(_0xbd3c1[_0x484fa4(0x252)](_0xaad640,0xc8)){if(_0xbd3c1[_0x484fa4(0x1b2)](_0xbd3c1['EdryL'],_0xbd3c1['ZTkJs'])){const _0x5de70b=JSON[_0x484fa4(0x1d6)](_0x312394[_0x484fa4(0x16f)]),_0x48e489=_0x5de70b[_0x484fa4(0x1cd)](_0x34dc1a=>_0x34dc1a[_0x484fa4(0x1bb)]===_0x552483[_0x484fa4(0x193)])||null;if(_0xbd3c1[_0x484fa4(0x1fc)](isUndefined,_0x48e489))_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1['NSIfJ'],_0xbd3c1[_0x484fa4(0x243)])?_0x1007cc['push'](_0xbd3c1[_0x484fa4(0x220)]):(_0x2aa9fb=_0x484fa4(0x232)+_0x552483['gridProfile']+_0x484fa4(0x257),await _0xbd3c1[_0x484fa4(0x26a)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1['fIPPL'],_0xbd3c1[_0x484fa4(0x1f0)]),logger['error'](_0x2aa9fb),process[_0x484fa4(0x201)](0x1));else{if(_0xbd3c1['SdLxX'](_0xbd3c1[_0x484fa4(0x21b)],_0xbd3c1['sZVSv']))_0x1bb07e=_0x48e489;else{const _0x43cb49={};_0x43cb49['description']=_0xbd3c1['HNeIS'],_0x43cb49[_0x484fa4(0x184)]=_0xbd3c1['TibXJ'];const _0x33ca13={};_0x33ca13['description']=_0xbd3c1['nmchv'],_0x33ca13[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x311a72={};_0x311a72['description']=_0xbd3c1[_0x484fa4(0x206)],_0x311a72[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x86f485={};_0x86f485[_0x484fa4(0x191)]=_0xbd3c1[_0x484fa4(0x216)],_0x86f485[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x81fcf0={};return _0x81fcf0['cluster-name']=_0x43cb49,_0x81fcf0[_0x484fa4(0x1f3)]=_0x33ca13,_0x81fcf0[_0x484fa4(0x1eb)]=_0x311a72,_0x81fcf0[_0x484fa4(0x19f)]=_0x86f485,_0x452b5a[_0x484fa4(0x1ff)](_0xd9c437[_0x484fa4(0x1a0)])[_0x484fa4(0x1c1)](_0x43a96b)[_0x484fa4(0x1b0)](_0x81fcf0)[_0x484fa4(0x1bc)](_0xbd3c1[_0x484fa4(0x221)])[_0x484fa4(0x25a)];}}}else _0x5cb0cb[_0x484fa4(0x197)]('Cluster\x20`'+_0x4e314e[_0x484fa4(0x214)]+_0x484fa4(0x1a4));}else _0xbd3c1[_0x484fa4(0x1d1)](_0xbd3c1[_0x484fa4(0x169)],_0xbd3c1[_0x484fa4(0x1ac)])?process[_0x484fa4(0x201)](0x1):(_0x53bc53[_0x484fa4(0x197)](_0x484fa4(0x1f4)+_0x21a661[_0x484fa4(0x1b8)]+'\x20'),_0x4f66f2[_0x484fa4(0x189)]=_0x31739e[_0x484fa4(0x1b8)]);const _0x2a2c07={};_0x2a2c07['type']=WS_EVENTS[_0x484fa4(0x264)],_0x2a2c07[_0x484fa4(0x21c)]=_0xbd3c1[_0x484fa4(0x174)],webSocketUtils[_0x484fa4(0x17d)](_0x2ec854,_0x2a2c07),global_registry[_0x484fa4(0x189)]=_0x1bb07e['cloudProvider'],global_registry[_0x484fa4(0x1aa)]=_0x1bb07e[_0x484fa4(0x1eb)],global_registry[_0x484fa4(0x214)]=_0x1bb07e[_0x484fa4(0x214)];}}else _0xbd3c1[_0x484fa4(0x227)](_0xbd3c1[_0x484fa4(0x24d)],_0xbd3c1['sAzmG'])?_0x381287['error'](_0x484fa4(0x208)+_0x35b448[_0x484fa4(0x20a)]['stack']):(logger['error'](_0xbd3c1[_0x484fa4(0x1e8)]),process['exit'](0x1));}}}catch(_0x486d81){_0xbd3c1['vHhsc'](_0xbd3c1[_0x484fa4(0x267)],_0xbd3c1['rXqjP'])?_0x5804bb=_0x4cfee3:(_0x2aa9fb=_0x484fa4(0x224)+_0x486d81+':\x20'+_0x486d81[_0x484fa4(0x186)],logger['error'](_0x2aa9fb),await _0xbd3c1['dzLDD'](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1[_0x484fa4(0x24c)],_0xbd3c1[_0x484fa4(0x1f0)]),process[_0x484fa4(0x201)](0x1));}}function printResponse(_0x34d5a8,_0xc34124){const _0x466a5c=a17_0x3e02de,_0x1193f9={};_0x1193f9[_0x466a5c(0x176)]='is\x20already\x20present',_0x1193f9[_0x466a5c(0x1c6)]=_0x466a5c(0x1b1),_0x1193f9[_0x466a5c(0x1bf)]=function(_0x545a74,_0x4d88ae){return _0x545a74!==_0x4d88ae;},_0x1193f9[_0x466a5c(0x1e4)]=_0x466a5c(0x226);const _0x33975b=_0x1193f9;logger[_0x466a5c(0x197)]('['+_0x34d5a8+']\x20status\x20:\x20'+_0xc34124[_0x466a5c(0x253)]+_0x466a5c(0x183)+_0xc34124[_0x466a5c(0x198)]+_0x466a5c(0x233)+_0xc34124[_0x466a5c(0x20a)]),_0xc34124[_0x466a5c(0x20a)]&&(_0x33975b[_0x466a5c(0x1bf)](_0x33975b[_0x466a5c(0x1e4)],_0x33975b['nwPuQ'])?_0x1de563+=_0x466a5c(0x1e1)+_0x5a9e1d[_0x466a5c(0x214)]+'\x20'+(_0xa5931?_0x33975b[_0x466a5c(0x176)]:_0x33975b[_0x466a5c(0x1c6)])+'\x0a\x0a':logger[_0x466a5c(0x20a)](_0x466a5c(0x208)+_0xc34124['error'][_0x466a5c(0x186)]));}async function generateReport(_0x3ae5fd,_0x4f8cf3){const _0x449404=a17_0x3e02de,_0x3e55b7={'qmpdv':function(_0x1a2428,_0x470290){return _0x1a2428+_0x470290;},'FLiBM':_0x449404(0x239),'lIkFk':'Failure','vVexC':function(_0x3de529,_0x2b702a){return _0x3de529||_0x2b702a;},'slPMu':_0x449404(0x25d),'SYNcP':_0x449404(0x215),'pZMac':_0x449404(0x1c4),'XuPUX':function(_0x259000,_0x3f7818){return _0x259000!=_0x3f7818;},'viJxK':'is\x20already\x20present','ZKkje':'will\x20be\x20created','MsCFN':function(_0x127f23){return _0x127f23();}};let _0x4907a6=_0x449404(0x1ab)+global_registry['cloudProvider']+_0x449404(0x230);return _0x3ae5fd[_0x449404(0x1f7)]((_0x48d307,_0x51e141)=>{const _0x13debc=_0x449404,{header:_0x228fc3,response:_0x50e561}=_0x48d307,{status:_0x2f429d,data:_0x316266,error:_0x554608}=_0x50e561;_0x4907a6+=_0x228fc3+'\x20#'+_0x3e55b7[_0x13debc(0x1fa)](_0x51e141,0x1)+'\x0a',_0x4907a6+=_0x13debc(0x265)+(_0x2f429d?_0x3e55b7[_0x13debc(0x1c0)]:_0x3e55b7[_0x13debc(0x22b)])+'\x0a',_0x4907a6+=_0x13debc(0x1d5)+_0x3e55b7[_0x13debc(0x203)](_0x316266,_0x3e55b7['slPMu'])+'\x0a',_0x554608&&(_0x4907a6+=_0x3e55b7[_0x13debc(0x20d)],_0x4907a6+=_0x13debc(0x1c7)+(_0x554608[_0x13debc(0x21c)]||_0x3e55b7[_0x13debc(0x1cb)])+'\x0a',_0x4907a6+=_0x13debc(0x1f2)+(_0x554608[_0x13debc(0x188)]||_0x3e55b7['slPMu'])+'\x0a',_0x4907a6+=_0x13debc(0x249)+(_0x554608[_0x13debc(0x186)]||_0x3e55b7[_0x13debc(0x1cb)])+'\x0a'),_0x4907a6+='\x0a\x0a';}),_0x4907a6+=_0x3e55b7['pZMac'],_0x3e55b7[_0x449404(0x1f9)](_0x4f8cf3,null)?_0x4907a6+='Cluster\x20'+global_registry[_0x449404(0x214)]+'\x20'+(_0x4f8cf3?_0x3e55b7[_0x449404(0x1a5)]:_0x3e55b7[_0x449404(0x22c)])+'\x0a\x0a':_0x4907a6+=_0x449404(0x1e1)+global_registry[_0x449404(0x214)]+_0x449404(0x23b),_0x4907a6+=_0x3e55b7['MsCFN'](getSystemMetaData),_0x4907a6;};exports['handler']=async function(_0x3d6d28){const _0x1a2d1f=a17_0x3e02de,_0x263b3f={'Jeduw':function(_0x5e0b3b){return _0x5e0b3b();},'vLgKM':function(_0xd4014b){return _0xd4014b();},'ILFID':_0x1a2d1f(0x1a6),'sySWw':function(_0x2591e5,_0x4377ff,_0x38cf8b,_0x83998c,_0x1a7aa0,_0x2938f1,_0x32d84b,_0x2e55dc){return _0x2591e5(_0x4377ff,_0x38cf8b,_0x83998c,_0x1a7aa0,_0x2938f1,_0x32d84b,_0x2e55dc);},'nsblp':_0x1a2d1f(0x213),'baclH':_0x1a2d1f(0x268),'XFEDr':_0x1a2d1f(0x20a),'FNTUH':function(_0x1414fe,_0x866e55,_0x1283ad,_0x58dcb0,_0x361ff5,_0x1fc7aa,_0x49e62e){return _0x1414fe(_0x866e55,_0x1283ad,_0x58dcb0,_0x361ff5,_0x1fc7aa,_0x49e62e);},'zIcwE':function(_0x392412){return _0x392412();},'dwhjF':'<UsernamePlaceholder>','aSWlf':_0x1a2d1f(0x181),'wdLPU':function(_0x50b511,_0x54a5c7,_0x3a3c4f){return _0x50b511(_0x54a5c7,_0x3a3c4f);},'BdYuY':function(_0x244604,_0xe9a945,_0x410091){return _0x244604(_0xe9a945,_0x410091);},'aDtJT':function(_0x6b5d1c,_0x1676e5,_0x41f2a1,_0x2fb5f2,_0x382279,_0x5c0b1e,_0x4515e7){return _0x6b5d1c(_0x1676e5,_0x41f2a1,_0x2fb5f2,_0x382279,_0x5c0b1e,_0x4515e7);},'ntXxv':'dummy-grid','axBkK':'toolInstalledResp','IQIAO':_0x1a2d1f(0x19d),'gjJuA':function(_0x2ae546,_0x282756,_0x55859d){return _0x2ae546(_0x282756,_0x55859d);},'UMlmV':_0x1a2d1f(0x222),'xjDAQ':function(_0x1f7d76,_0x22fca4,_0x579bb9){return _0x1f7d76(_0x22fca4,_0x579bb9);},'CJULG':'isTrialGridAccessible','sGSQQ':function(_0x8eee7d,_0xdbdec6){return _0x8eee7d(_0xdbdec6);},'csdFK':_0x1a2d1f(0x1d0),'svpQR':_0x1a2d1f(0x1ee),'kQmqs':_0x1a2d1f(0x1d4),'IjmuW':_0x1a2d1f(0x22f),'ZtyeM':_0x1a2d1f(0x18e),'zMRZW':_0x1a2d1f(0x212),'mWasZ':function(_0x2a721a,_0x45715c){return _0x2a721a+_0x45715c;},'IasWl':_0x1a2d1f(0x1c2),'EmoXR':function(_0x363c71,_0x12b4d1,_0x4c33c3,_0x5eeda5,_0xcfdd14,_0x420837,_0x3f386f){return _0x363c71(_0x12b4d1,_0x4c33c3,_0x5eeda5,_0xcfdd14,_0x420837,_0x3f386f);},'AUZBr':_0x1a2d1f(0x1e2)};let _0x69cf25,_0x5ac80d;try{global_registry[_0x1a2d1f(0x173)]=_0x263b3f[_0x1a2d1f(0x178)](uuidv4);!fs[_0x1a2d1f(0x18d)](_0x263b3f[_0x1a2d1f(0x17f)](getCredentialsPath))&&(_0x5ac80d=_0x263b3f['ILFID'],logger[_0x1a2d1f(0x20a)](_0x5ac80d),await _0x263b3f[_0x1a2d1f(0x1cf)](reportToGalactusAndSendToEDS,_0x3d6d28,_0x69cf25,_0x5ac80d,messageTypes[_0x1a2d1f(0x23c)],_0x263b3f['nsblp'],_0x263b3f['baclH'],_0x263b3f['XFEDr']),process['exit'](0x1));_0x263b3f[_0x1a2d1f(0x209)](sendInstrumentationEvent,_0x3d6d28,_0x263b3f[_0x1a2d1f(0x1e3)],messageTypes[_0x1a2d1f(0x22e)],null,null,_0x3d6d28);const _0x4b3733=JSON['parse'](fs['readFileSync'](_0x263b3f['zIcwE'](getCredentialsPath)));global_registry[_0x1a2d1f(0x16b)]=_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x195)],global_registry['bstackAccesskey']=_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x179)];const _0x434427=WS_ENDPOINT[_0x1a2d1f(0x1a8)](_0x263b3f[_0x1a2d1f(0x17a)],_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x195)])[_0x1a2d1f(0x1a8)](_0x263b3f[_0x1a2d1f(0x1fe)],_0x4b3733['Browserstack']['password']),_0x356104={};_0x356104[_0x1a2d1f(0x245)]=ws,_0x356104[_0x1a2d1f(0x16e)]=0x36ee80,_0x69cf25=new ReconnectingWebSocket(_0x434427,[],_0x356104),global_registry[_0x1a2d1f(0x200)]=_0x263b3f[_0x1a2d1f(0x1ca)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x263b3f['BdYuY'](inputValidation,_0x3d6d28,_0x69cf25),logger['info'](_0x1a2d1f(0x1e5)+global_registry['cloudProvider']+_0x1a2d1f(0x1df)+global_registry[_0x1a2d1f(0x1aa)]);let _0x53de70=await _0x263b3f['aDtJT'](getCloudProviderObjectWithOutInit,global_registry[_0x1a2d1f(0x189)],global_registry[_0x1a2d1f(0x214)],_0x263b3f[_0x1a2d1f(0x263)],_0x69cf25,webSocketUtils,_0x3d6d28);const _0x5e03e4=await _0x53de70[_0x1a2d1f(0x258)]();_0x263b3f[_0x1a2d1f(0x1ca)](printResponse,_0x263b3f[_0x1a2d1f(0x242)],_0x5e03e4),_0x53de70=await _0x53de70['init']();let _0x11e368=![];try{_0x11e368=await _0x53de70[_0x1a2d1f(0x1bd)]();}catch(_0x23d0d0){const _0x450fd7=_0x263b3f['IQIAO']['split']('|');let _0xca2d0b=0x0;while(!![]){switch(_0x450fd7[_0xca2d0b++]){case'0':logger['error'](_0x5ac80d);continue;case'1':_0x5ac80d=_0x1a2d1f(0x1fb)+global_registry[_0x1a2d1f(0x214)]+_0x1a2d1f(0x25f)+global_registry[_0x1a2d1f(0x1aa)]+_0x1a2d1f(0x24f)+_0x23d0d0;continue;case'2':_0x5ac80d+='\x0a'+JSON[_0x1a2d1f(0x234)](_0x23d0d0['stack']);continue;case'3':await _0x263b3f['sySWw'](reportToGalactusAndSendToEDS,_0x3d6d28,_0x69cf25,_0x5ac80d,messageTypes[_0x1a2d1f(0x23c)],_0x263b3f[_0x1a2d1f(0x1e3)],_0x1a2d1f(0x244)+global_registry['cloudProvider'],_0x263b3f[_0x1a2d1f(0x1d2)]);continue;case'4':_0x11e368=null;continue;}break;}}_0x11e368&&logger[_0x1a2d1f(0x197)](_0x1a2d1f(0x16d)+global_registry[_0x1a2d1f(0x214)]+_0x1a2d1f(0x1a4));const _0x48c7ca=await _0x53de70[_0x1a2d1f(0x259)]();_0x263b3f[_0x1a2d1f(0x205)](printResponse,_0x263b3f[_0x1a2d1f(0x16a)],_0x48c7ca);const _0x4b5f3f=await _0x263b3f['zIcwE'](curlRequest);_0x263b3f[_0x1a2d1f(0x1e7)](printResponse,_0x263b3f['CJULG'],_0x4b5f3f);const _0x1f7b9c=await _0x263b3f[_0x1a2d1f(0x1fd)](isTlsSupported,_0x263b3f[_0x1a2d1f(0x1b7)]);_0x263b3f[_0x1a2d1f(0x1ca)](printResponse,_0x263b3f[_0x1a2d1f(0x1d7)],_0x1f7b9c);const _0x3b9655={};_0x3b9655['header']=_0x263b3f[_0x1a2d1f(0x20e)],_0x3b9655[_0x1a2d1f(0x204)]=_0x5e03e4;const _0x57570b={};_0x57570b[_0x1a2d1f(0x19c)]=_0x263b3f['IjmuW'],_0x57570b[_0x1a2d1f(0x204)]=_0x48c7ca;const _0x2478e8={};_0x2478e8[_0x1a2d1f(0x19c)]=_0x263b3f[_0x1a2d1f(0x182)],_0x2478e8[_0x1a2d1f(0x204)]=_0x4b5f3f;const _0x4ab0c5={};_0x4ab0c5['header']=_0x263b3f[_0x1a2d1f(0x211)],_0x4ab0c5[_0x1a2d1f(0x204)]=_0x1f7b9c;const _0x8f5b90=[_0x3b9655,_0x57570b,_0x2478e8,_0x4ab0c5],_0x3c99c6=await _0x263b3f[_0x1a2d1f(0x1a3)](generateReport,_0x8f5b90,_0x11e368),_0x2d4ca3=new Date(),_0x265f18=_0x2d4ca3[_0x1a2d1f(0x175)]()+'_'+_0x263b3f['mWasZ'](_0x2d4ca3[_0x1a2d1f(0x171)](),0x1)+'_'+_0x2d4ca3[_0x1a2d1f(0x219)]()+'_'+_0x2d4ca3['getUTCHours']()+'_'+_0x2d4ca3[_0x1a2d1f(0x1da)](),_0xb2c401=_0x1a2d1f(0x194)+_0x265f18+_0x1a2d1f(0x255);fs['writeFileSync'](_0xb2c401,_0x3c99c6,_0x263b3f['IasWl']),logger[_0x1a2d1f(0x197)](_0x1a2d1f(0x17b)+_0xb2c401),process['exit'](0x0);}catch(_0xf31e34){let _0x413ae=_0x1a2d1f(0x1ad)+_0xf31e34+'\x20';logger[_0x1a2d1f(0x20a)](_0x413ae),_0x413ae+='\x0a'+JSON[_0x1a2d1f(0x234)](_0xf31e34['stack']),logger[_0x1a2d1f(0x20f)](_0x1a2d1f(0x251)+_0xf31e34[_0x1a2d1f(0x186)]);if(_0x69cf25){const _0x128612={};_0x128612[_0x1a2d1f(0x184)]=WS_EVENTS[_0x1a2d1f(0x264)],_0x128612['message']=_0x413ae,webSocketUtils[_0x1a2d1f(0x17d)](_0x69cf25,_0x128612,_0x263b3f[_0x1a2d1f(0x1d2)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x5e27fb={};_0x5e27fb[_0x1a2d1f(0x20a)]=_0x413ae,await _0x263b3f[_0x1a2d1f(0x1ed)](sendInstrumentationEvent,_0x3d6d28,_0x263b3f[_0x1a2d1f(0x1e3)],messageTypes[_0x1a2d1f(0x23c)],_0x263b3f[_0x1a2d1f(0x225)],_0x5e27fb,_0x3d6d28),process[_0x1a2d1f(0x201)](0x1);}};function a17_0x338e(){const _0x3aa0f5=['BdYuY','`\x20already\x20exists','viJxK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MikuR','replace','bdhUz','clusterRegion','===\x20Precheck\x20Report\x20-\x20','wibTH','Failed\x20in\x20pre-check!\x20Error:\x20','jcwPU','AFMLU','options','will\x20be\x20created','ZmzqY','osyIz','../../cloudproviders/utils','supAD','GLShy','csdFK','CLOUD_PROVIDER','vGtrq','RmKIL','name','help','isClusterPresent','hmKzH','UfjEU','FLiBM','epilogue','utf-8','Ozrbs','Cluster\x20details\x0a-----------------------\x0a','1321746BmHgXM','URFph','\x20\x20Message:\x20','rIzqP','MDGnL','wdLPU','slPMu','eusPr','find','string','sySWw','TLSv1_2_client_method','SdLxX','XFEDr','../../config/constants','Tool\x20Installed','Message:\x20','parse','svpQR','ybjLm','TibXJ','getUTCMinutes','hrKen','aJeIQ','2399540zZAJIo','1057968SJCvzL','\x20region\x20-\x20','ITNCw','Cluster\x20','pre-check-failed','nsblp','nwPuQ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xjDAQ','XqSCQ','neogl','BJsHV','region','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','EmoXR','isTls1_2_SUPPORTED','/packages/cli/get-all-grid-profiles','qKUVg','reconnecting-websocket','\x20\x20Code:\x20','cloud-provider','Setting\x20cloud\x20provider\x20as\x20','toLowerCase','ggkzA','forEach','join','XuPUX','qmpdv','unable\x20to\x20verify\x20if\x20cluster\x20`','grUhR','sGSQQ','aSWlf','usage','authHeader','exit','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vVexC','response','gjJuA','QTOwe','iZTGA','error\x20stack\x20:\x20','FNTUH','error','HYcbG','builder','SYNcP','kQmqs','debug','BXnKF','zMRZW','SSL\x20Configured','pre-check-grid-called','clusterName','Error\x20Details:\x0a','GYZjB','bbglh','got','getUTCDate','7QZejsv','WFWuQ','message','2FMTEZJ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','165101njhlmd','RIJfY','tLCUc','accessResp','cakMm','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','AUZBr','bZUaD','frGVi','228PbZkVb','grid','qGDeq','lIkFk','ZKkje','Failure','INFO','User\x20Access','\x20===\x0a\x0a','pre-check-grid-profile-empty','Invalid\x20input.\x20grid\x20profiles:\x20','\x20error\x20:\x20','stringify','gCgzv','Grid\x20profile\x20fetched\x20for\x20pre-check','iNySX','OHdkS','Success','9003DcAzsA','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','ERROR','.\x20Please\x20provide\x20all\x20required\x20arguments.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HMNlS','ebVmK','UOlie','axBkK','EzsQB','cluster-check-failed-','WebSocket','YpCoZ','kVArf','Browserstack','\x20\x20Stack:\x20','40448FgLwDq','throwHttpErrors','TyWzo','pkmkw','JEOcP','`\x20,error\x20:\x20','SYBkx','stack\x20trace\x20','WCaTT','status','../../utils/webSocketUtils','.txt','pre-check-cluster-args-not-passed','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','isCliToolInstalled','checkAccess','argv','length','includes','N/A','command','`\x20is\x20present\x20in\x20region\x20`','nUJpU','vnMMf','push','ntXxv','LOG','Status:\x20','yyUbs','VwvzY','credential-not-found','cluster-name','IsIpn','pre-check','XZwhk','MzMIx','UMlmV','bstackUsername','akWum','Cluster\x20`','connectionTimeout','body','headers','getUTCMonth',']\x20status\x20:\x20','requestId','FObic','getUTCFullYear','uBMBy','5gfQSXm','Jeduw','password','dwhjF','Report\x20saved\x20in\x20','OLvhJ','sendEventToBackend','gRPYS','vLgKM','https://','<PasswordPlaceholder>','ZtyeM','\x20data\x20:\x20','type','BCcpH','stack','TkZIx','code','cloudProvider','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','desc','Rjttc','existsSync','Whitelisted\x20browserstack','LrpRY','3268199ixFsXj','description','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','gridProfile','log/report_','username','OZEBH','info','data','pIdVp','uuid','ucmGg','header','1|4|0|2|3','kxPLB','grid-profile','pre_check','BEYiY','atZBN'];a17_0x338e=function(){return _0x3aa0f5;};return a17_0x338e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x49cdf8=a18_0x4034;function a18_0x3779(){const _0x1eef66=['recommendCommands','553692EMJwsj','handler','builder','start_commands','27ndMNeK','635668RcOBmr','epilogue','help','start','98965jMnGxA','strict','commandDir','315iWgqZA','command','usage','607864qxsmRk','18nnqhEW','1068HmFrWT','104062qMxtQW','cgDoY','10956RPjyFq','2AvhYjr','20IrlYZZ','demandCommand','chyce'];a18_0x3779=function(){return _0x1eef66;};return a18_0x3779();}(function(_0x258fec,_0x431451){const _0x528f5a=a18_0x4034,_0x3c0399=_0x258fec();while(!![]){try{const _0x1008b1=parseInt(_0x528f5a(0xd0))/0x1*(parseInt(_0x528f5a(0xdc))/0x2)+parseInt(_0x528f5a(0xe5))/0x3*(-parseInt(_0x528f5a(0xdb))/0x4)+-parseInt(_0x528f5a(0xd3))/0x5*(parseInt(_0x528f5a(0xd8))/0x6)+-parseInt(_0x528f5a(0xd9))/0x7+-parseInt(_0x528f5a(0xd6))/0x8*(-parseInt(_0x528f5a(0xd7))/0x9)+-parseInt(_0x528f5a(0xdd))/0xa*(parseInt(_0x528f5a(0xe6))/0xb)+parseInt(_0x528f5a(0xe1))/0xc;if(_0x1008b1===_0x431451)break;else _0x3c0399['push'](_0x3c0399['shift']());}catch(_0x5e1fbb){_0x3c0399['push'](_0x3c0399['shift']());}}}(a18_0x3779,0x1fecd));function a18_0x4034(_0x5f075e,_0x5ea556){const _0x377943=a18_0x3779();return a18_0x4034=function(_0x403421,_0x452fe8){_0x403421=_0x403421-0xcf;let _0x305f19=_0x377943[_0x403421];return _0x305f19;},a18_0x4034(_0x5f075e,_0x5ea556);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x49cdf8(0xd4)]='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x49cdf8(0xe3)]=function(_0x1ee20a){const _0x573928=a18_0x49cdf8,_0x2a5885={};_0x2a5885[_0x573928(0xdf)]=_0x573928(0xe4),_0x2a5885[_0x573928(0xda)]=_0x573928(0xe8);const _0x121e9c=_0x2a5885;return _0x1ee20a[_0x573928(0xd5)](HELP_HEADER_MESSAGE[_0x573928(0xcf)])[_0x573928(0xe7)](HELP_FOOTER_MESSAGE)[_0x573928(0xd2)](_0x121e9c[_0x573928(0xdf)])[_0x573928(0xde)]()[_0x573928(0xe0)]()[_0x573928(0xd1)]()[_0x573928(0xe8)](_0x121e9c[_0x573928(0xda)]);},exports[a18_0x49cdf8(0xe2)]=function(_0x335ca0){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x91acf=a19_0x2d16;function a19_0x2d16(_0x2fa702,_0x22e247){const _0x14a95f=a19_0x14a9();return a19_0x2d16=function(_0x2d1666,_0x501840){_0x2d1666=_0x2d1666-0x6b;let _0x568e04=_0x14a95f[_0x2d1666];return _0x568e04;},a19_0x2d16(_0x2fa702,_0x22e247);}(function(_0x50d78e,_0x217f87){const _0x3968df=a19_0x2d16,_0x5c9ba3=_0x50d78e();while(!![]){try{const _0x512e68=-parseInt(_0x3968df(0xa5))/0x1+parseInt(_0x3968df(0x7f))/0x2*(-parseInt(_0x3968df(0xa4))/0x3)+parseInt(_0x3968df(0x6b))/0x4*(-parseInt(_0x3968df(0x7a))/0x5)+parseInt(_0x3968df(0x7e))/0x6*(-parseInt(_0x3968df(0xa9))/0x7)+parseInt(_0x3968df(0xb5))/0x8+parseInt(_0x3968df(0x76))/0x9+parseInt(_0x3968df(0xa8))/0xa;if(_0x512e68===_0x217f87)break;else _0x5c9ba3['push'](_0x5c9ba3['shift']());}catch(_0xed45dc){_0x5c9ba3['push'](_0x5c9ba3['shift']());}}}(a19_0x14a9,0x76843));function a19_0x14a9(){const _0x4aba35=['Grid\x20started','kXgjX','cloudProvider','ZhBon','start','eXbYB','command','bstackAccesskey','error','../../config/logger','Browserstack','connectionTimeout','enNOV','<UsernamePlaceholder>','ZBDmb','stringify','parse','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','info','reconnecting-websocket','nPriO','epilogue','3OMJcIK','489103ucegeh','body','clusterName','9826840HWlaqA','946743dEgCCH','desc','options','default','../../cloudproviders/utils','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid-id','readFileSync','XPzbR','unauthorised','bstackUsername','5990824SXoKfR','../../utils/createk8sClient','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','fKqfL','ERROR','gridId','wQomh','skip-tls-cert-verify','string','password','addListeners','WebSocket','20pKMmAw','type','NaMdS','description','exit','hxzKp','server-error','INFO','init-not-called','existsSync','PCCJq','3155355ujjcIj','RwalV','NuhKz','grid','277715KgAeRT','clusterRegion','replace','PHALY','12UJVWCb','1118746eAuLuF','argv','username','kNTfA','sRlHn','nTYRt','name','help','debug','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','uTyXy','usage','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KonyZ','builder'];a19_0x14a9=function(){return _0x4aba35;};return a19_0x14a9();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x91acf(0xa1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x91acf(0x97)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x91acf(0xb6)),{getCloudProviderObject}=require(a19_0x91acf(0xad));exports[a19_0x91acf(0x94)]=a19_0x91acf(0x79),exports[a19_0x91acf(0xaa)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x91acf(0x8d)]=function(_0x178998){const _0x35076d=a19_0x91acf,_0x409260={};_0x409260['FBCQJ']=_0x35076d(0x9f),_0x409260['NuhKz']=_0x35076d(0xbd),_0x409260['kwrBk']='Skip\x20insecure\x20cert\x20verification.',_0x409260[_0x35076d(0x82)]='boolean',_0x409260[_0x35076d(0x7d)]=_0x35076d(0x86);const _0x40ca1d=_0x409260,_0x3ba793={};_0x3ba793['description']=_0x40ca1d['FBCQJ'],_0x3ba793[_0x35076d(0x6c)]=_0x40ca1d[_0x35076d(0x78)];const _0x539c63={};_0x539c63[_0x35076d(0x6e)]=_0x40ca1d['kwrBk'],_0x539c63[_0x35076d(0x6c)]=_0x40ca1d[_0x35076d(0x82)],_0x539c63[_0x35076d(0xac)]=![];const _0x244de3={};return _0x244de3[_0x35076d(0xb0)]=_0x3ba793,_0x244de3[_0x35076d(0xbc)]=_0x539c63,_0x178998[_0x35076d(0x8a)](HELP_HEADER_MESSAGE[_0x35076d(0x92)])[_0x35076d(0xa3)](HELP_FOOTER_MESSAGE)[_0x35076d(0xab)](_0x244de3)['help'](_0x40ca1d['PHALY'])[_0x35076d(0x80)];},exports['handler']=async function(_0x20dd66){const _0x3513bf=a19_0x91acf,_0x3077a9={'NaMdS':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','nTYRt':function(_0x35b720){return _0x35b720();},'dOYNs':_0x3513bf(0x8b),'fKqfL':function(_0x4bca46,_0x425f5a,_0x191a4a,_0x370b9e,_0x5280d2,_0x5ebaff,_0xa23d65){return _0x4bca46(_0x425f5a,_0x191a4a,_0x370b9e,_0x5280d2,_0x5ebaff,_0xa23d65);},'wQomh':'start-grid-called','ZBDmb':_0x3513bf(0x73),'PCCJq':function(_0x5d1ed2){return _0x5d1ed2();},'fJuGR':_0x3513bf(0x9b),'sRlHn':'<PasswordPlaceholder>','kXgjX':'Adding\x20Websocket\x20listeners','nPriO':function(_0x501eb3,_0x228e69,_0x471ec9,_0x6bc61c){return _0x501eb3(_0x228e69,_0x471ec9,_0x6bc61c);},'uTyXy':function(_0x4a5d77,_0x43a410,_0x4fa5e3,_0x46f648,_0x55b06f,_0x297cae,_0x65a7f){return _0x4a5d77(_0x43a410,_0x4fa5e3,_0x46f648,_0x55b06f,_0x297cae,_0x65a7f);},'ZhBon':function(_0x39032b,_0x44a59e,_0x54e750){return _0x39032b(_0x44a59e,_0x54e750);},'RwalV':function(_0x241a1c,_0x25c859,_0xa43691){return _0x241a1c(_0x25c859,_0xa43691);},'enNOV':_0x3513bf(0x8e),'KonyZ':function(_0x17dd3f,_0x30a03d){return _0x17dd3f===_0x30a03d;},'GmhtR':_0x3513bf(0xb7),'eXbYB':_0x3513bf(0xb3),'hxzKp':'invalid-grid-id','rLUmr':function(_0x27b5f1,_0x1c901e,_0x55b11d,_0x4dc9ad,_0x495f7d,_0x207e94,_0x357f88){return _0x27b5f1(_0x1c901e,_0x55b11d,_0x4dc9ad,_0x495f7d,_0x207e94,_0x357f88);},'XPzbR':_0x3513bf(0x71)};let _0x109d70;try{!_0x20dd66[_0x3513bf(0xba)]&&(logger[_0x3513bf(0x96)](_0x3077a9[_0x3513bf(0x6d)]),process[_0x3513bf(0x6f)](0x1));!fs[_0x3513bf(0x74)](_0x3077a9[_0x3513bf(0x84)](getCredentialsPath))&&(logger[_0x3513bf(0x96)](_0x3077a9['dOYNs']),await _0x3077a9[_0x3513bf(0xb8)](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes['ERROR'],_0x3077a9[_0x3513bf(0x9c)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1));logger[_0x3513bf(0xa0)]('Starting\x20grid\x20'+_0x20dd66[_0x3513bf(0xba)]),await _0x3077a9['fKqfL'](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes[_0x3513bf(0x72)],null,null,_0x20dd66);const _0x5de2f9=JSON[_0x3513bf(0x9e)](fs[_0x3513bf(0xb1)](_0x3077a9[_0x3513bf(0x75)](getCredentialsPath)));global_registry[_0x3513bf(0xb4)]=_0x5de2f9['Browserstack']['username'],global_registry[_0x3513bf(0x95)]=_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0xbe)];const _0x311249=WS_ENDPOINT[_0x3513bf(0x7c)](_0x3077a9['fJuGR'],_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0x81)])[_0x3513bf(0x7c)](_0x3077a9[_0x3513bf(0x83)],_0x5de2f9[_0x3513bf(0x98)]['password']),_0x48ad8d={};_0x48ad8d[_0x3513bf(0xc0)]=ws,_0x48ad8d[_0x3513bf(0x99)]=0x36ee80,_0x109d70=new ReconnectingWebSocket(_0x311249,[],_0x48ad8d),logger[_0x3513bf(0x87)](_0x3077a9[_0x3513bf(0x8f)]),webSocketUtils[_0x3513bf(0xbf)](_0x109d70,_0x20dd66['user'],_0x20dd66[_0x3513bf(0xbe)]);const [_0x65bef8,_0x28edf8]=await _0x3077a9[_0x3513bf(0xa2)](getGridDetails,_0x5de2f9[_0x3513bf(0x98)]['username'],_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0xbe)],_0x20dd66[_0x3513bf(0xba)]);if(_0x28edf8){const _0x315ef9=_0x28edf8[_0x3513bf(0xa0)];global_registry[_0x3513bf(0x90)]=_0x315ef9[_0x3513bf(0x90)],global_registry[_0x3513bf(0x7b)]=_0x315ef9['region'],global_registry[_0x3513bf(0xa7)]=_0x315ef9['clusterName'];const _0x1e3f80=await _0x3077a9[_0x3513bf(0x89)](getCloudProviderObject,_0x315ef9[_0x3513bf(0x90)],_0x315ef9[_0x3513bf(0xa7)],_0x315ef9[_0x3513bf(0x85)],_0x109d70,webSocketUtils,_0x20dd66),[_0x87110e,_0x1f8310,_0x235edf,_0x4e03d0,_0x117baa,_0x175bf4]=await _0x3077a9[_0x3513bf(0x91)](createK8sClient,_0x1e3f80,_0x20dd66['skipTlsCertVerify']);await _0x3077a9[_0x3513bf(0x77)](scaleUpHubDeployment,_0x1f8310,_0x315ef9[_0x3513bf(0x85)]),logger[_0x3513bf(0xa0)](_0x3077a9[_0x3513bf(0x9a)]),process[_0x3513bf(0x6f)](0x0);}_0x3077a9['KonyZ'](_0x65bef8['statusCode'],0x191)&&(logger[_0x3513bf(0x96)](_0x3077a9['GmhtR']),await _0x3077a9[_0x3513bf(0xb8)](sendInstrumentationEvent,_0x20dd66,_0x3077a9['wQomh'],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0x93)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1)),_0x3077a9[_0x3513bf(0x8c)](_0x65bef8['statusCode'],0x190)&&(logger[_0x3513bf(0x96)](JSON[_0x3513bf(0x9e)](_0x65bef8[_0x3513bf(0xa6)])['message']),await _0x3077a9[_0x3513bf(0x89)](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0x70)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1)),logger[_0x3513bf(0x96)](_0x3513bf(0xaf)+JSON[_0x3513bf(0x9d)](_0x65bef8)),await _0x3077a9['rLUmr'](sendInstrumentationEvent,_0x20dd66,_0x3077a9['wQomh'],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0xb2)],_0x65bef8,_0x20dd66),process[_0x3513bf(0x6f)](0x1);}catch(_0x1eee52){const _0x1f7d84=_0x3513bf(0x88)+_0x1eee52+'\x20\x0a'+JSON[_0x3513bf(0x9d)](_0x1eee52[_0x3513bf(0xae)])+'\x20';logger[_0x3513bf(0x96)](_0x1f7d84),process[_0x3513bf(0x6f)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a20_0x259d9a=a20_0x14bb;(function(_0x1d1ac2,_0x1ed53f){const _0x77b98f=a20_0x14bb,_0x517127=_0x1d1ac2();while(!![]){try{const _0x5de83c=-parseInt(_0x77b98f(0x1a9))/0x1+parseInt(_0x77b98f(0x1b0))/0x2+-parseInt(_0x77b98f(0x1a6))/0x3*(parseInt(_0x77b98f(0x1b1))/0x4)+-parseInt(_0x77b98f(0x1ac))/0x5*(parseInt(_0x77b98f(0x1a1))/0x6)+parseInt(_0x77b98f(0x1a5))/0x7+-parseInt(_0x77b98f(0x1ab))/0x8*(parseInt(_0x77b98f(0x1ad))/0x9)+parseInt(_0x77b98f(0x1a3))/0xa;if(_0x5de83c===_0x1ed53f)break;else _0x517127['push'](_0x517127['shift']());}catch(_0x18a584){_0x517127['push'](_0x517127['shift']());}}}(a20_0x4679,0xa7f48));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x259d9a(0x1b6));function a20_0x14bb(_0x3bcef1,_0x34840f){const _0x467900=a20_0x4679();return a20_0x14bb=function(_0x14bb3d,_0xa122d2){_0x14bb3d=_0x14bb3d-0x1a1;let _0x379953=_0x467900[_0x14bb3d];return _0x379953;},a20_0x14bb(_0x3bcef1,_0x34840f);}exports[a20_0x259d9a(0x1a2)]=a20_0x259d9a(0x1b3),exports[a20_0x259d9a(0x1ae)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x259d9a(0x1a8)]=function(_0x43b586){const _0x4dc064=a20_0x259d9a,_0x3c4345={};_0x3c4345[_0x4dc064(0x1a7)]=_0x4dc064(0x1af),_0x3c4345['QCHVj']='help';const _0x56ec37=_0x3c4345;return _0x43b586[_0x4dc064(0x1b5)](HELP_HEADER_MESSAGE[_0x4dc064(0x1b3)])[_0x4dc064(0x1b8)](HELP_FOOTER_MESSAGE)[_0x4dc064(0x1a4)](_0x56ec37[_0x4dc064(0x1a7)])[_0x4dc064(0x1b2)]()[_0x4dc064(0x1b7)]()[_0x4dc064(0x1b4)]()[_0x4dc064(0x1aa)](_0x56ec37['QCHVj']);},exports['handler']=function(_0x11e42d){};function a20_0x4679(){const _0x3ca210=['demandCommand','stop','strict','usage','../config/constants','recommendCommands','epilogue','871356YYClia','command','19987790UqRUlL','commandDir','6821353BHIMZj','14109BcnSFD','rXxyG','builder','897032GthZpn','help','32nFRxdO','5GcSERC','2526030Ufrzmo','desc','stop_commands','2496394rROBxN','1164ZzDziP'];a20_0x4679=function(){return _0x3ca210;};return a20_0x4679();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x5d30d2=a21_0x48dc;function a21_0x2949(){const _0x258a30=['stack','zwMMO','name','UnMFa','../../utils/webSocketUtils','goZCe','exit','6959228rjsNds','epilogue','PvIvr','gbbSX','bstackAccesskey','XKttA','default','87560hKaeLY','../../utils/instrumentationUtils','LqTgu','CtbOq','nyrAk','../../cloudproviders/utils','8yiOmpX','options','../../utils/createk8sClient','help','reconnecting-websocket','parse','ERROR','1200fLTzFH','crWWe','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','info','debug','Stop\x20a\x20running\x20Automation\x20grid.','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','15558ELkWMl','type','45528cMUHYa','password','Skip\x20insecure\x20cert\x20verification.','MFwXc','gridId','139NRYePQ','replace','gajGR','grid-id','INFO','body','3806SbBXTv','invalid-grid-id','region','7083387xQptIP','Browserstack','2819058SHfJcu','IsKTx','connectionTimeout','statusCode','../../utils/utilityMethods','kYEQf','clusterRegion','GiUkH','eDmNd','existsSync','skipTlsCertVerify','stop','8275730SCOsKJ','bstackUsername','MayQh','KWkvo','../../config/logger','<UsernamePlaceholder>','username','clusterName','usage','<PasswordPlaceholder>','WbRFh','stringify','unauthorised','RluQV','cloudProvider','JCSIZ','stop-grid-called','description','argv','MkDvx','grid','lSQrx','error','handler'];a21_0x2949=function(){return _0x258a30;};return a21_0x2949();}(function(_0x1c7620,_0x3b5d6d){const _0x346c22=a21_0x48dc,_0x420ac4=_0x1c7620();while(!![]){try{const _0x1be921=parseInt(_0x346c22(0x198))/0x1*(parseInt(_0x346c22(0x191))/0x2)+parseInt(_0x346c22(0x1a3))/0x3+-parseInt(_0x346c22(0x176))/0x4+parseInt(_0x346c22(0x1af))/0x5+parseInt(_0x346c22(0x18a))/0x6*(parseInt(_0x346c22(0x193))/0x7)+-parseInt(_0x346c22(0x183))/0x8*(-parseInt(_0x346c22(0x1a1))/0x9)+-parseInt(_0x346c22(0x17d))/0xa*(parseInt(_0x346c22(0x19e))/0xb);if(_0x1be921===_0x3b5d6d)break;else _0x420ac4['push'](_0x420ac4['shift']());}catch(_0x260fea){_0x420ac4['push'](_0x420ac4['shift']());}}}(a21_0x2949,0xf2d0d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5d30d2(0x187)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5d30d2(0x1b3)),{getCredentialsPath,getGridDetails}=require(a21_0x5d30d2(0x1a7)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x5d30d2(0x17e)),webSocketUtils=require(a21_0x5d30d2(0x173)),{createK8sClient}=require(a21_0x5d30d2(0x185)),{getCloudProviderObject}=require(a21_0x5d30d2(0x182));function a21_0x48dc(_0x5eb7d5,_0x42b787){const _0x2949c5=a21_0x2949();return a21_0x48dc=function(_0x48dcf5,_0x2cfd86){_0x48dcf5=_0x48dcf5-0x160;let _0x53f0be=_0x2949c5[_0x48dcf5];return _0x53f0be;},a21_0x48dc(_0x5eb7d5,_0x42b787);}exports['command']=a21_0x5d30d2(0x16b),exports['desc']=a21_0x5d30d2(0x18f),exports['builder']=function(_0x29f332){const _0x2f94e2=a21_0x5d30d2,_0x1f41f9={};_0x1f41f9['kYEQf']=_0x2f94e2(0x190),_0x1f41f9[_0x2f94e2(0x181)]='string',_0x1f41f9[_0x2f94e2(0x16c)]=_0x2f94e2(0x195),_0x1f41f9[_0x2f94e2(0x16a)]='boolean',_0x1f41f9['dBGZl']=_0x2f94e2(0x186);const _0x8fae79=_0x1f41f9,_0x1748d5={};_0x1748d5[_0x2f94e2(0x168)]=_0x8fae79[_0x2f94e2(0x1a8)],_0x1748d5['type']=_0x8fae79['nyrAk'];const _0x1bea75={};_0x1bea75[_0x2f94e2(0x168)]=_0x8fae79['lSQrx'],_0x1bea75[_0x2f94e2(0x192)]=_0x8fae79[_0x2f94e2(0x16a)],_0x1bea75[_0x2f94e2(0x17c)]=![];const _0x29af2a={};return _0x29af2a[_0x2f94e2(0x19b)]=_0x1748d5,_0x29af2a['skip-tls-cert-verify']=_0x1bea75,_0x29f332[_0x2f94e2(0x1b7)](HELP_HEADER_MESSAGE[_0x2f94e2(0x1ae)])[_0x2f94e2(0x177)](HELP_FOOTER_MESSAGE)[_0x2f94e2(0x184)](_0x29af2a)[_0x2f94e2(0x186)](_0x8fae79['dBGZl'])[_0x2f94e2(0x169)];},exports[a21_0x5d30d2(0x16e)]=async function(_0x2aaf59){const _0x511517=a21_0x5d30d2,_0x34e23e={'goZCe':_0x511517(0x18c),'KWkvo':function(_0x941f6d){return _0x941f6d();},'UnMFa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','CtbOq':function(_0x1d0da3,_0x4fd11b,_0xf31d70,_0x4b1415,_0x274041,_0x5acc5a,_0x38bb26){return _0x1d0da3(_0x4fd11b,_0xf31d70,_0x4b1415,_0x274041,_0x5acc5a,_0x38bb26);},'JCSIZ':_0x511517(0x167),'gajGR':'init-not-called','zwMMO':_0x511517(0x1b4),'crWWe':_0x511517(0x160),'RluQV':'Adding\x20Websocket\x20listeners','MFwXc':function(_0xb7788b,_0x3854f2,_0x15e9db,_0x5a33f8){return _0xb7788b(_0x3854f2,_0x15e9db,_0x5a33f8);},'LqTgu':function(_0x4cbeee,_0x25e4d3,_0x2884b6,_0x253a40,_0xd71e87,_0x4d09d7,_0x145b68){return _0x4cbeee(_0x25e4d3,_0x2884b6,_0x253a40,_0xd71e87,_0x4d09d7,_0x145b68);},'PvIvr':function(_0x30b2ed,_0x2ce927,_0x26c283){return _0x30b2ed(_0x2ce927,_0x26c283);},'IsKTx':function(_0x54872f,_0x4778f4,_0x241ea4){return _0x54872f(_0x4778f4,_0x241ea4);},'gbbSX':'Grid\x20stoppped.','mndmI':function(_0x2ac890,_0x478642){return _0x2ac890===_0x478642;},'XKttA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WbRFh':function(_0x4290bf,_0x1e7793,_0x18efe2,_0x11b77e,_0x16366f,_0x40ccc1,_0x21d716){return _0x4290bf(_0x1e7793,_0x18efe2,_0x11b77e,_0x16366f,_0x40ccc1,_0x21d716);},'GiUkH':_0x511517(0x163),'eDmNd':function(_0x36db52,_0x1d7f20,_0x38e7a1,_0x23b4a6,_0x291c7e,_0x527706,_0xa3607a){return _0x36db52(_0x1d7f20,_0x38e7a1,_0x23b4a6,_0x291c7e,_0x527706,_0xa3607a);},'unzsK':_0x511517(0x19f),'MayQh':'server-error'};let _0x8ab08c;try{!_0x2aaf59[_0x511517(0x197)]&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x174)]),process[_0x511517(0x175)](0x1));!fs[_0x511517(0x1ac)](_0x34e23e[_0x511517(0x1b2)](getCredentialsPath))&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x172)]),await _0x34e23e['CtbOq'](sendInstrumentationEvent,_0x2aaf59,_0x34e23e['JCSIZ'],messageTypes['ERROR'],_0x34e23e[_0x511517(0x19a)],null,_0x2aaf59),process[_0x511517(0x175)](0x1));logger[_0x511517(0x18d)]('Stopping\x20grid\x20'+_0x2aaf59[_0x511517(0x197)]),await _0x34e23e[_0x511517(0x180)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x19c)],null,null,_0x2aaf59);const _0x245552=JSON[_0x511517(0x188)](fs['readFileSync'](_0x34e23e['KWkvo'](getCredentialsPath)));global_registry[_0x511517(0x1b0)]=_0x245552[_0x511517(0x1a2)][_0x511517(0x1b5)],global_registry[_0x511517(0x17a)]=_0x245552[_0x511517(0x1a2)]['password'];const _0x3aba5b=WS_ENDPOINT[_0x511517(0x199)](_0x34e23e[_0x511517(0x170)],_0x245552['Browserstack']['username'])[_0x511517(0x199)](_0x34e23e[_0x511517(0x18b)],_0x245552[_0x511517(0x1a2)]['password']),_0x522817={};_0x522817['WebSocket']=ws,_0x522817[_0x511517(0x1a5)]=0x36ee80,_0x8ab08c=new ReconnectingWebSocket(_0x3aba5b,[],_0x522817),logger[_0x511517(0x18e)](_0x34e23e[_0x511517(0x164)]),webSocketUtils['addListeners'](_0x8ab08c,_0x2aaf59['user'],_0x2aaf59[_0x511517(0x194)]);const [_0x4d7f12,_0x24b615]=await _0x34e23e[_0x511517(0x196)](getGridDetails,_0x245552[_0x511517(0x1a2)][_0x511517(0x1b5)],_0x245552[_0x511517(0x1a2)][_0x511517(0x194)],_0x2aaf59[_0x511517(0x197)]);if(_0x24b615){const _0x56beec=_0x24b615[_0x511517(0x18d)];global_registry[_0x511517(0x165)]=_0x56beec[_0x511517(0x165)],global_registry[_0x511517(0x1a9)]=_0x56beec[_0x511517(0x1a0)],global_registry[_0x511517(0x1b6)]=_0x56beec[_0x511517(0x1b6)];const _0x25b972=await _0x34e23e[_0x511517(0x17f)](getCloudProviderObject,_0x56beec[_0x511517(0x165)],_0x56beec[_0x511517(0x1b6)],_0x56beec[_0x511517(0x171)],_0x8ab08c,webSocketUtils,_0x2aaf59),[_0x4fc06a,_0x1bb96e,_0x355741,_0x16614b,_0x21e2c3,_0x5239b4]=await _0x34e23e[_0x511517(0x178)](createK8sClient,_0x25b972,_0x2aaf59[_0x511517(0x1ad)]);await _0x34e23e[_0x511517(0x1a4)](scaleDownHubDeployment,_0x1bb96e,_0x56beec[_0x511517(0x171)]),logger['info'](_0x34e23e[_0x511517(0x179)]),process[_0x511517(0x175)](0x0);}_0x34e23e['mndmI'](_0x4d7f12[_0x511517(0x1a6)],0x191)&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x17b)]),await _0x34e23e[_0x511517(0x161)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x189)],_0x34e23e[_0x511517(0x1aa)],null,_0x2aaf59),process[_0x511517(0x175)](0x1)),_0x34e23e['mndmI'](_0x4d7f12['statusCode'],0x190)&&(logger[_0x511517(0x16d)](JSON[_0x511517(0x188)](_0x4d7f12[_0x511517(0x19d)])['message']),await _0x34e23e[_0x511517(0x1ab)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes['ERROR'],_0x34e23e['unzsK'],null,_0x2aaf59),process[_0x511517(0x175)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x511517(0x162)](_0x4d7f12)),await _0x34e23e['eDmNd'](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x189)],_0x34e23e[_0x511517(0x1b1)],_0x4d7f12,_0x2aaf59),process['exit'](0x1);}catch(_0x72abf3){const _0x485474='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x72abf3+'\x20\x0a'+JSON[_0x511517(0x162)](_0x72abf3[_0x511517(0x16f)])+'\x20';logger['error'](_0x485474),process[_0x511517(0x175)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x3e7c9a=a22_0x5577;(function(_0x2cbb81,_0x4454c7){const _0x100305=a22_0x5577,_0x31544b=_0x2cbb81();while(!![]){try{const _0x19b27d=-parseInt(_0x100305(0xb9))/0x1+parseInt(_0x100305(0xda))/0x2*(-parseInt(_0x100305(0xb5))/0x3)+-parseInt(_0x100305(0xe9))/0x4+parseInt(_0x100305(0x9e))/0x5*(parseInt(_0x100305(0xbe))/0x6)+parseInt(_0x100305(0x8a))/0x7*(parseInt(_0x100305(0x9d))/0x8)+parseInt(_0x100305(0x86))/0x9*(-parseInt(_0x100305(0xe2))/0xa)+parseInt(_0x100305(0x83))/0xb*(-parseInt(_0x100305(0xd2))/0xc);if(_0x19b27d===_0x4454c7)break;else _0x31544b['push'](_0x31544b['shift']());}catch(_0x201294){_0x31544b['push'](_0x31544b['shift']());}}}(a22_0x1469,0x58a5a),require(a22_0x3e7c9a(0x99))[a22_0x3e7c9a(0x90)]());let gridURL=a22_0x3e7c9a(0xc9),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x3e7c9a(0xa6);const _env=(process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0x85)]||a22_0x3e7c9a(0xec))['toLowerCase']();if(_env===a22_0x3e7c9a(0xb6)||_env===a22_0x3e7c9a(0xc7))gridURL=a22_0x3e7c9a(0xdc),bsApiUrl=a22_0x3e7c9a(0xb3),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x3e7c9a(0x81))&&(gridURL=a22_0x3e7c9a(0xed),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x3e7c9a(0x82));exports[a22_0x3e7c9a(0xa7)]=process['env'][a22_0x3e7c9a(0xa7)]||gridURL,exports[a22_0x3e7c9a(0xc3)]=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xc3)]||bsApiUrl,exports[a22_0x3e7c9a(0x88)]=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0x88)]||agApiUrl,exports[a22_0x3e7c9a(0xc2)]=a22_0x3e7c9a(0xaf)+this[a22_0x3e7c9a(0x88)]+a22_0x3e7c9a(0x98),exports['CP_CONFIG_FILE']=a22_0x3e7c9a(0x91),exports[a22_0x3e7c9a(0xdb)]=a22_0x3e7c9a(0xb0),exports[a22_0x3e7c9a(0xab)]=a22_0x3e7c9a(0xe0),exports[a22_0x3e7c9a(0xce)]=a22_0x3e7c9a(0x7d),exports[a22_0x3e7c9a(0x8d)]='BSTACK-ATS-CLUSTER',exports[a22_0x3e7c9a(0xc6)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x3e7c9a(0xbd)]=a22_0x3e7c9a(0x9a),exports[a22_0x3e7c9a(0x8e)]=a22_0x3e7c9a(0xa1),exports['AZURE']=a22_0x3e7c9a(0xd8),exports['GCP']=a22_0x3e7c9a(0xdd),exports[a22_0x3e7c9a(0xe5)]=[this[a22_0x3e7c9a(0xce)],this[a22_0x3e7c9a(0xd9)],this[a22_0x3e7c9a(0xa0)]];const a22_0x1f4f40={};function a22_0x5577(_0x197973,_0x25f6eb){const _0x146901=a22_0x1469();return a22_0x5577=function(_0x5577e2,_0x5f0642){_0x5577e2=_0x5577e2-0x7c;let _0x3f9224=_0x146901[_0x5577e2];return _0x3f9224;},a22_0x5577(_0x197973,_0x25f6eb);}a22_0x1f4f40[a22_0x3e7c9a(0xaa)]=a22_0x3e7c9a(0xac),a22_0x1f4f40[a22_0x3e7c9a(0xe6)]=a22_0x3e7c9a(0xa4);const a22_0x398340={};a22_0x398340[a22_0x3e7c9a(0xaa)]=a22_0x3e7c9a(0x89),a22_0x398340[a22_0x3e7c9a(0xe6)]=a22_0x3e7c9a(0xeb);function a22_0x1469(){const _0x435088=['CLUSTER_AUTOSCALER_STACK_NAME','stag','GRID_URL','grid.browserstack.com','NULL','ERROR','REDACTED','error','AWS','env','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HELP_HEADER_MESSAGE','246624ixcinG','configure','resourceInfo','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','HELP_FOOTER_MESSAGE','messageTypes','azure','AZURE','54558SOQHZQ','IAM_USER_NAME','grid-devhst.bsstag.com','gcp','COMMON_HST_TAGS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','high-scale-grid','WS_EVENTS','189560UFCbLo','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','DEFAULT_CLUSTER_DETAILS','ALL_SUPPORTED_CLOUD_PROVIDERS','Value','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','TURBOSCALE_CUSTOM_TAGS','881520XlQdvk','SUPPORTED_CLOUD_PROVIDERS','BrowserStack-Automate-TurboScale','prod','grid-preprod.bsstag.com','split','stop','aws','us-east-1','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','start','pre-prod','grid-api-preprod.bsstag.com','187isVFCC','CLI_RUN_STARTED','BROWSERSTACK_ENV','9umEMYZ','root','AG_API_URL','browserstack:service','7ISNTql','gridProfile','push','CLUSTER_DEP_STACK_NAME','TURBOSCALE_DEPLOYMENT','RESOURCES','config','credentials','gridUrl','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','create','log','LOG','CLUSTER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','dotenv','BSTACK-ATS-CLUSTER-HUB-HA','cliRunStarted','CLI_RUN_FINISHED','2447840cLUxua','20135dlUlii','TRIAL_GRID_URL','GCP','browserstack-turboscale-grid','success','pre-check','BrowserStack','LINK_MESSAGE','grid-api.browserstack.com','DASHBOARD_ENDPOINT','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Key','DEFAULT_GRID_NAME','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','grid-profile','wss://','BrowserStackIAMUser','CLI_ARGS_REGEX','forEach','api-devhst.bsstag.com','INFO','6civACi','staging','init','delete','8356ictTEg','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','list','UNKNOWN','CLUSTER_HUB_HA_STACK_NAME','1056hapLOh','warning','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_ENDPOINT','BS_API_URL','[REDACTED]','REGION'];a22_0x1469=function(){return _0x435088;};return a22_0x1469();}const common_hst_tags_list=[a22_0x1f4f40,a22_0x398340];if(process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xe8)]){const parsedTags=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xe8)][a22_0x3e7c9a(0xee)](',');parsedTags[a22_0x3e7c9a(0xb2)](_0x101032=>{const _0x7a8648=a22_0x3e7c9a,_0x3fcd66=_0x101032['split'](':'),_0x331513={};_0x331513[_0x7a8648(0xaa)]=_0x3fcd66[0x0],_0x331513[_0x7a8648(0xe6)]=_0x3fcd66[0x1],common_hst_tags_list[_0x7a8648(0x8c)](_0x331513);});}exports[a22_0x3e7c9a(0xde)]=common_hst_tags_list;const a22_0x2ce470={};a22_0x2ce470[a22_0x3e7c9a(0xac)]=a22_0x3e7c9a(0xa4),a22_0x2ce470[a22_0x3e7c9a(0x89)]=a22_0x3e7c9a(0xeb),exports['HST_CLUSTER_TAGS']=a22_0x2ce470,exports[a22_0x3e7c9a(0xea)]=[this[a22_0x3e7c9a(0xce)]];const a22_0x439b7f={};a22_0x439b7f[a22_0x3e7c9a(0x96)]=a22_0x3e7c9a(0x95),a22_0x439b7f[a22_0x3e7c9a(0x8f)]=a22_0x3e7c9a(0xd4),a22_0x439b7f[a22_0x3e7c9a(0xc8)]=a22_0x3e7c9a(0x92),a22_0x439b7f[a22_0x3e7c9a(0x84)]=a22_0x3e7c9a(0x9b),a22_0x439b7f[a22_0x3e7c9a(0x9c)]='cliRunFinished',exports[a22_0x3e7c9a(0xe1)]=a22_0x439b7f,exports['global_registry']={},exports[a22_0x3e7c9a(0xa5)]=a22_0x3e7c9a(0x7f);const a22_0x520b85={};a22_0x520b85['root']=a22_0x3e7c9a(0xa8)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xb7)]=a22_0x3e7c9a(0xd0)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xd3)]=a22_0x3e7c9a(0xc0)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0x94)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)]={},a22_0x520b85[a22_0x3e7c9a(0xb8)]=a22_0x3e7c9a(0xc1)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85['connect']=a22_0x3e7c9a(0xba)+this['LINK_MESSAGE'],a22_0x520b85[a22_0x3e7c9a(0x80)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0x7c)]=a22_0x3e7c9a(0xe7)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)][a22_0x3e7c9a(0x87)]=a22_0x3e7c9a(0xa9)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)]['grid']=a22_0x3e7c9a(0x93)+this['LINK_MESSAGE'],a22_0x520b85[a22_0x3e7c9a(0xbb)][a22_0x3e7c9a(0x8b)]=a22_0x3e7c9a(0xad)+this[a22_0x3e7c9a(0xa5)],exports[a22_0x3e7c9a(0xd1)]=a22_0x520b85,exports[a22_0x3e7c9a(0xd6)]=a22_0x3e7c9a(0xdf);const a22_0xdfd70e={};a22_0xdfd70e['SUCCESS']=a22_0x3e7c9a(0xa2),a22_0xdfd70e[a22_0x3e7c9a(0xcb)]=a22_0x3e7c9a(0xcd),a22_0xdfd70e[a22_0x3e7c9a(0xb4)]='info',a22_0xdfd70e['WARNING']=a22_0x3e7c9a(0xbf),a22_0xdfd70e[a22_0x3e7c9a(0xbc)]='unknown',a22_0xdfd70e[a22_0x3e7c9a(0xca)]=null,exports[a22_0x3e7c9a(0xd7)]=a22_0xdfd70e,exports[a22_0x3e7c9a(0xb1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x3e7c9a(0xcc)]=a22_0x3e7c9a(0xc4);const a22_0x47a381={};a22_0x47a381[a22_0x3e7c9a(0xae)]=a22_0x3e7c9a(0xd5);const a22_0x853314={};a22_0x853314[a22_0x3e7c9a(0xa3)]=a22_0x47a381,exports['MessageDescription']=a22_0x853314,exports[a22_0x3e7c9a(0x9f)]=a22_0x3e7c9a(0xe3);const a22_0xfdac6b={};a22_0xfdac6b[a22_0x3e7c9a(0x97)]='high-scale-grid-cluster',a22_0xfdac6b['CLOUD_PROVIDER']=a22_0x3e7c9a(0x7d),a22_0xfdac6b[a22_0x3e7c9a(0xc5)]=a22_0x3e7c9a(0x7e),exports[a22_0x3e7c9a(0xe4)]=a22_0xfdac6b;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a23_0x208a42=a23_0x56a3;(function(_0x3e9ea3,_0x2f12e1){const _0x1d3c8d=a23_0x56a3,_0x4b025c=_0x3e9ea3();while(!![]){try{const _0x252920=-parseInt(_0x1d3c8d(0x8d))/0x1+-parseInt(_0x1d3c8d(0x88))/0x2+-parseInt(_0x1d3c8d(0x95))/0x3+parseInt(_0x1d3c8d(0x83))/0x4+parseInt(_0x1d3c8d(0x9b))/0x5+parseInt(_0x1d3c8d(0x90))/0x6+-parseInt(_0x1d3c8d(0x9a))/0x7*(-parseInt(_0x1d3c8d(0x8c))/0x8);if(_0x252920===_0x2f12e1)break;else _0x4b025c['push'](_0x4b025c['shift']());}catch(_0x4258b3){_0x4b025c['push'](_0x4b025c['shift']());}}}(a23_0x24f3,0x48767));const winston=require(a23_0x208a42(0x9c)),fs=require('fs'),path=require(a23_0x208a42(0xa0)),logDir='log';function a23_0x24f3(){const _0x31116d=['join','combine','level','444689VMubwY','1125215rhDaYO','winston','createLogger','mkdirSync','name','path','existsSync','365612XDQQiZ','File','colorize','console.info','YYYY-MM-DD\x20HH:mm:ss','816608IHgIWW','events.log','Console','format','64FhkFbR','56911kQuyap','\x20-\x20','transports','3113550CxdKQb','message','usage.log','printf','logger','1744695bJIOSW','timestamp'];a23_0x24f3=function(){return _0x31116d;};return a23_0x24f3();}!fs[a23_0x208a42(0xa1)](logDir)&&fs[a23_0x208a42(0x9e)](logDir);const a23_0x1003fb={};a23_0x1003fb[a23_0x208a42(0x8b)]=a23_0x208a42(0x87);const a23_0x56f0a7={};a23_0x56f0a7[a23_0x208a42(0x99)]=!![];function a23_0x56a3(_0x1499d1,_0x20ff21){const _0x24f386=a23_0x24f3();return a23_0x56a3=function(_0x56a300,_0x565006){_0x56a300=_0x56a300-0x83;let _0x560789=_0x24f386[_0x56a300];return _0x560789;},a23_0x56a3(_0x1499d1,_0x20ff21);}const a23_0x2c7224={};a23_0x2c7224[a23_0x208a42(0x9f)]=a23_0x208a42(0x86),exports[a23_0x208a42(0x94)]=new winston[(a23_0x208a42(0x9d))]({'format':winston[a23_0x208a42(0x8b)][a23_0x208a42(0x98)](winston[a23_0x208a42(0x8b)][a23_0x208a42(0x96)](a23_0x1003fb),winston[a23_0x208a42(0x8b)][a23_0x208a42(0x85)](a23_0x56f0a7),winston[a23_0x208a42(0x8b)][a23_0x208a42(0x93)](_0x33e703=>_0x33e703[a23_0x208a42(0x96)]+a23_0x208a42(0x8e)+_0x33e703[a23_0x208a42(0x99)]+':\x20'+_0x33e703[a23_0x208a42(0x91)])),'transports':[new winston['transports'][(a23_0x208a42(0x8a))](a23_0x2c7224),new winston[(a23_0x208a42(0x8f))][(a23_0x208a42(0x84))]({'filename':path[a23_0x208a42(0x97)](logDir,a23_0x208a42(0x89)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x208a42(0x8f))]['File']({'filename':path[a23_0x208a42(0x97)](logDir,a23_0x208a42(0x92)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x208a42(0x9d))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a24_0x3594(){const _0x524131=['10888seuoTi','5660930kSONWQ','usage','env','1350TisiIl','epilogue','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','2114NjaGSD','5660GAwUim','1695365GYmYel','help','3nfZRss','TdeZQ','554721IKZucE','2FFiQEI','oGVyO','26ThJjLK','demandCommand','13794276IPdcLr','6jcJODr','2966252cSojrw'];a24_0x3594=function(){return _0x524131;};return a24_0x3594();}function a24_0x2fec(_0x196cf7,_0x1897ec){const _0x359422=a24_0x3594();return a24_0x2fec=function(_0x2fec66,_0x1861f8){_0x2fec66=_0x2fec66-0x95;let _0x50cc32=_0x359422[_0x2fec66];return _0x50cc32;},a24_0x2fec(_0x196cf7,_0x1897ec);}const a24_0x20277e=a24_0x2fec;(function(_0x1f419e,_0x1f63a5){const _0xd7567f=a24_0x2fec,_0x4f30b4=_0x1f419e();while(!![]){try{const _0x6312fe=parseInt(_0xd7567f(0x98))/0x1*(-parseInt(_0xd7567f(0x99))/0x2)+-parseInt(_0xd7567f(0x96))/0x3*(parseInt(_0xd7567f(0x9f))/0x4)+-parseInt(_0xd7567f(0xab))/0x5*(parseInt(_0xd7567f(0x9e))/0x6)+-parseInt(_0xd7567f(0xa9))/0x7*(-parseInt(_0xd7567f(0xa0))/0x8)+-parseInt(_0xd7567f(0xa4))/0x9*(parseInt(_0xd7567f(0xaa))/0xa)+-parseInt(_0xd7567f(0xa1))/0xb+-parseInt(_0xd7567f(0x9d))/0xc*(-parseInt(_0xd7567f(0x9b))/0xd);if(_0x6312fe===_0x1f63a5)break;else _0x4f30b4['push'](_0x4f30b4['shift']());}catch(_0x347666){_0x4f30b4['push'](_0x4f30b4['shift']());}}}(a24_0x3594,0x7402d));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x20277e(0xa6));process[a24_0x20277e(0xa3)][a24_0x20277e(0xa7)]=0x1;function run(_0x496b00){const _0x3214c9=a24_0x20277e,_0x16f403={};_0x16f403[_0x3214c9(0x97)]=_0x3214c9(0xa8),_0x16f403[_0x3214c9(0x9a)]='help';const _0x263135=_0x16f403;_0x496b00[_0x3214c9(0xa2)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x263135[_0x3214c9(0x97)])[_0x3214c9(0x9c)]()[_0x3214c9(0x95)](_0x263135[_0x3214c9(0x9a)])[_0x3214c9(0xa5)](HELP_FOOTER_MESSAGE);}module['exports']=run;
|