browserstack-node-sdk 1.42.6 → 1.42.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/cucumber-sessionDetails.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/playwright-patcher.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_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/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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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
|
+
function a15_0x3544(){const _0x486e73=['PRxxV','ncgQM','statusCode','allGrids','INFO','dpJri','okuki','oGEWy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','8PPakPa','SjJiB','NmsgM','log','51310WfsLpp','IlITY','bstackAccesskey','grid-id','Failed\x20to\x20list\x20resources!\x20Error:\x20','stack','push','boolean','error','17143698GkxXyK','body','FumCX','67znuhql','clusterName','/packages/cli/get-all-grids','EGeLU','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','username','list-grids-called','argv','uuid','ikAbV','usage','builder','369GyaZJA','3814144wDLKsj','description','unauthorised','https://','15326rAxLIi','table','Odjii','ERROR','bstackUsername','xgflU','grid','oZXVL','Browserstack','grids','Vzirw','../../utils/utilityMethods','type','exit','11851WCMFSf','eoHnx','status','all-grids','CledB','hmtvN','eqKSf','running','1219175XQCdzP','unknown-error','epilogue','options','requestId','readFileSync','1328766xUWLay','password','../../config/constants','queued','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OYUXm','cracd','OElbK','parse','VkNLE','help','GET','1068izlHOu'];a15_0x3544=function(){return _0x486e73;};return a15_0x3544();}function a15_0x2ac6(_0x394067,_0x47e858){const _0x3544fb=a15_0x3544();return a15_0x2ac6=function(_0x2ac6bf,_0x405ea9){_0x2ac6bf=_0x2ac6bf-0x9b;let _0x1a91f6=_0x3544fb[_0x2ac6bf];return _0x1a91f6;},a15_0x2ac6(_0x394067,_0x47e858);}const a15_0x56bc50=a15_0x2ac6;(function(_0x117ce8,_0x1664da){const _0x4a15e2=a15_0x2ac6,_0x45a82b=_0x117ce8();while(!![]){try{const _0x274d7a=-parseInt(_0x4a15e2(0xe3))/0x1*(-parseInt(_0x4a15e2(0xa1))/0x2)+parseInt(_0x4a15e2(0xbd))/0x3+parseInt(_0x4a15e2(0xd3))/0x4*(parseInt(_0x4a15e2(0xb7))/0x5)+parseInt(_0x4a15e2(0xc9))/0x6*(-parseInt(_0x4a15e2(0xaf))/0x7)+parseInt(_0x4a15e2(0x9d))/0x8+parseInt(_0x4a15e2(0x9c))/0x9*(parseInt(_0x4a15e2(0xd7))/0xa)+-parseInt(_0x4a15e2(0xe0))/0xb;if(_0x274d7a===_0x1664da)break;else _0x45a82b['push'](_0x45a82b['shift']());}catch(_0x12a14d){_0x45a82b['push'](_0x45a82b['shift']());}}}(a15_0x3544,0x423b0));const fs=require('fs'),got=require('got'),{table}=require(a15_0x56bc50(0xa2)),{v4:uuidv4}=require(a15_0x56bc50(0xeb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x56bc50(0xbf)),{getCredentialsPath,getAuthHeader}=require(a15_0x56bc50(0xac)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a15_0x56bc50(0xaa),exports['desc']=a15_0x56bc50(0xd2),exports[a15_0x56bc50(0x9b)]=function(_0xceb49a){const _0x3329a1=a15_0x56bc50,_0x494882={};_0x494882['HWZDw']=_0x3329a1(0xe7),_0x494882[_0x3329a1(0xb0)]=_0x3329a1(0xde),_0x494882[_0x3329a1(0xd1)]=_0x3329a1(0xc7);const _0x561d8e=_0x494882,_0x4e3dc3={};_0x4e3dc3[_0x3329a1(0x9e)]=_0x561d8e['HWZDw'],_0x4e3dc3[_0x3329a1(0xad)]=_0x561d8e['eoHnx'];const _0x437b3a={};return _0x437b3a[_0x3329a1(0xb2)]=_0x4e3dc3,_0xceb49a[_0x3329a1(0xed)](HELP_HEADER_MESSAGE['list'][_0x3329a1(0xa7)])[_0x3329a1(0xb9)](HELP_FOOTER_MESSAGE)[_0x3329a1(0xba)](_0x437b3a)[_0x3329a1(0xc7)](_0x561d8e['oGEWy'])[_0x3329a1(0xea)];},exports['handler']=async function(_0x52cc47){const _0x596417=a15_0x56bc50,_0x131f35={'NmsgM':function(_0x506272){return _0x506272();},'OYUXm':_0x596417(0xc1),'EGeLU':function(_0x144a99,_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432){return _0x144a99(_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432);},'Odjii':_0x596417(0xe9),'cracd':'init-not-called','hmtvN':function(_0x2db5b6){return _0x2db5b6();},'SjJiB':_0x596417(0xc8),'okuki':function(_0x4228ed,_0x599466,_0x2eaf4e){return _0x4228ed(_0x599466,_0x2eaf4e);},'CledB':function(_0x4dbb69,_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80){return _0x4dbb69(_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80);},'Vzirw':function(_0x27f73f,_0x50fed8,_0x35e341){return _0x27f73f(_0x50fed8,_0x35e341);},'GOoQQ':function(_0x1462cf,_0xa9111c){return _0x1462cf!==_0xa9111c;},'OElbK':function(_0x561a97,_0x15bb30){return _0x561a97!==_0x15bb30;},'VkNLE':function(_0x433ea2,_0x5d3335){return _0x433ea2===_0x5d3335;},'PRxxV':'\x0aFound\x20the\x20following\x20grids:\x0a','sDjNb':_0x596417(0xda),'ikAbV':'grid-name','dpJri':'status','wdqvW':_0x596417(0xb6),'ncgQM':'queued','oZXVL':'cluster-name','IZGFk':function(_0x3ab47c,_0x520cb0){return _0x3ab47c(_0x520cb0);},'xgflU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FumCX':function(_0x1bceb7,_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a){return _0x1bceb7(_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a);},'eqKSf':_0x596417(0x9f),'ikabD':'server-error','IlITY':_0x596417(0xb8)};try{global_registry[_0x596417(0xbb)]=_0x131f35[_0x596417(0xd5)](uuidv4);!fs['existsSync'](_0x131f35['NmsgM'](getCredentialsPath))&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xc2)]),await _0x131f35['EGeLU'](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xc3)],null,_0x52cc47),process['exit'](0x1));const _0x4c272e=JSON[_0x596417(0xc5)](fs[_0x596417(0xbc)](_0x131f35[_0x596417(0xb4)](getCredentialsPath)));let _0x4e2468=_0x596417(0xa0)+AG_API_URL+'/packages/cli/get-grids';_0x52cc47[_0x596417(0xcd)]&&(_0x4e2468=_0x596417(0xa0)+AG_API_URL+_0x596417(0xe5));const _0x18c468={'method':_0x131f35[_0x596417(0xd4)],'headers':_0x131f35[_0x596417(0xd0)](getAuthHeader,_0x4c272e[_0x596417(0xa9)][_0x596417(0xe8)],_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)]),'throwHttpErrors':![]};global_registry[_0x596417(0xa5)]=_0x4c272e[_0x596417(0xa9)]['username'],global_registry[_0x596417(0xd9)]=_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)],_0x131f35['CledB'](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xce)],null,null,_0x52cc47);const _0x1ebffb=await _0x131f35[_0x596417(0xab)](got,_0x4e2468,_0x18c468);if(_0x131f35['GOoQQ'](_0x1ebffb,null)&&_0x131f35[_0x596417(0xc4)](_0x1ebffb,undefined)&&_0x131f35[_0x596417(0xc6)](_0x1ebffb[_0x596417(0xcc)],0xc8)){const _0x156876=JSON[_0x596417(0xc5)](_0x1ebffb[_0x596417(0xe1)]);console[_0x596417(0xd6)](_0x131f35[_0x596417(0xca)]);const _0x4e36ac=[];_0x4e36ac['push']([_0x131f35['sDjNb'],_0x131f35[_0x596417(0xec)],_0x131f35[_0x596417(0xcf)],_0x131f35['wdqvW'],_0x131f35[_0x596417(0xcb)],_0x131f35[_0x596417(0xa8)]]),_0x156876['forEach'](_0x576ad5=>{const _0x13467f=_0x596417;_0x4e36ac[_0x13467f(0xdd)]([_0x576ad5['id'],_0x576ad5['name'],_0x576ad5[_0x13467f(0xb1)],_0x576ad5[_0x13467f(0xb6)],_0x576ad5[_0x13467f(0xc0)],_0x576ad5[_0x13467f(0xe4)]]);}),console[_0x596417(0xd6)](_0x131f35['IZGFk'](table,_0x4e36ac)),process[_0x596417(0xae)](0x0);}_0x131f35['VkNLE'](_0x1ebffb[_0x596417(0xcc)],0x191)&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xa6)]),await _0x131f35[_0x596417(0xe2)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xb5)],null,_0x52cc47),process[_0x596417(0xae)](0x1)),console[_0x596417(0xdf)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1ebffb)),await _0x131f35[_0x596417(0xe6)](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xa4)],_0x131f35['ikabD'],_0x1ebffb,_0x52cc47),process[_0x596417(0xae)](0x1);}catch(_0x5b52dd){console[_0x596417(0xdf)](_0x596417(0xdb)+_0x5b52dd[_0x596417(0xdc)]),await _0x131f35[_0x596417(0xb3)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xd8)],_0x5b52dd,_0x52cc47),process[_0x596417(0xae)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x4c1995=a16_0x20be;(function(_0x1542ea,_0x4a5076){const _0x7c2d1b=a16_0x20be,_0x4bba5b=_0x1542ea();while(!![]){try{const _0x2ec6ea=parseInt(_0x7c2d1b(0x84))/0x1+-parseInt(_0x7c2d1b(0x7c))/0x2+-parseInt(_0x7c2d1b(0x92))/0x3+-parseInt(_0x7c2d1b(0x81))/0x4*(-parseInt(_0x7c2d1b(0x89))/0x5)+parseInt(_0x7c2d1b(0x8f))/0x6*(parseInt(_0x7c2d1b(0x86))/0x7)+parseInt(_0x7c2d1b(0x7e))/0x8+parseInt(_0x7c2d1b(0x80))/0x9;if(_0x2ec6ea===_0x4a5076)break;else _0x4bba5b['push'](_0x4bba5b['shift']());}catch(_0xf3081f){_0x4bba5b['push'](_0x4bba5b['shift']());}}}(a16_0x3415,0x44778));function a16_0x20be(_0x33d84e,_0x464fde){const _0x3415c0=a16_0x3415();return a16_0x20be=function(_0x20be47,_0x1f34bc){_0x20be47=_0x20be47-0x7c;let _0x2943fb=_0x3415c0[_0x20be47];return _0x2943fb;},a16_0x20be(_0x33d84e,_0x464fde);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x3415(){const _0x23ea43=['demandCommand','epilogue','commandDir','handler','pre-check','1362okjFHQ','FsSRW','ybDtL','1204986jASvgY','strict','recommendCommands','1083650zPxNju','command','2373032HGaUOb','precheck_commands','1112103bURNJj','4hBTobQ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','402843OXpsnm','usage','5194utxDKJ','builder','pre_check','1162270HogOVh'];a16_0x3415=function(){return _0x23ea43;};return a16_0x3415();}exports[a16_0x4c1995(0x7d)]=a16_0x4c1995(0x8e),exports['desc']=a16_0x4c1995(0x82),exports[a16_0x4c1995(0x87)]=function(_0x594e34){const _0x5db112=a16_0x4c1995,_0x23f521={};_0x23f521[_0x5db112(0x91)]=_0x5db112(0x7f),_0x23f521[_0x5db112(0x90)]=_0x5db112(0x83);const _0x4110a9=_0x23f521;return _0x594e34[_0x5db112(0x85)](HELP_HEADER_MESSAGE[_0x5db112(0x88)])[_0x5db112(0x8b)](HELP_FOOTER_MESSAGE)[_0x5db112(0x8c)](_0x4110a9[_0x5db112(0x91)])[_0x5db112(0x8a)]()[_0x5db112(0x94)]()[_0x5db112(0x93)]()[_0x5db112(0x83)](_0x4110a9[_0x5db112(0x90)]);},exports[a16_0x4c1995(0x8d)]=function(_0x1c3d2b){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x4fc318=a17_0x52f8;(function(_0x3bb263,_0x79fd5){const _0x112cb3=a17_0x52f8,_0x2204aa=_0x3bb263();while(!![]){try{const _0x383602=-parseInt(_0x112cb3(0x202))/0x1+-parseInt(_0x112cb3(0x16e))/0x2*(-parseInt(_0x112cb3(0x14c))/0x3)+parseInt(_0x112cb3(0x236))/0x4*(parseInt(_0x112cb3(0x21e))/0x5)+parseInt(_0x112cb3(0x162))/0x6+-parseInt(_0x112cb3(0x15c))/0x7*(parseInt(_0x112cb3(0x1d6))/0x8)+parseInt(_0x112cb3(0x188))/0x9*(-parseInt(_0x112cb3(0x15d))/0xa)+parseInt(_0x112cb3(0x1d4))/0xb;if(_0x383602===_0x79fd5)break;else _0x2204aa['push'](_0x2204aa['shift']());}catch(_0x2b5a7a){_0x2204aa['push'](_0x2204aa['shift']());}}}(a17_0x3887,0x74c77));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4fc318(0x224)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x4fc318(0x1f9)),{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_0x4fc318(0x1b4)),webSocketUtils=require(a17_0x4fc318(0x20c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x4fc318(0x1c0)]=a17_0x4fc318(0x157),exports[a17_0x4fc318(0x1a8)]=a17_0x4fc318(0x215),exports[a17_0x4fc318(0x1a2)]=function(_0x59b4aa){const _0x33e765=a17_0x4fc318,_0x3e7b9c={};_0x3e7b9c[_0x33e765(0x1d1)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3e7b9c[_0x33e765(0x1e7)]=_0x33e765(0x207),_0x3e7b9c[_0x33e765(0x1ef)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3e7b9c[_0x33e765(0x15f)]=_0x33e765(0x156),_0x3e7b9c[_0x33e765(0x16f)]=_0x33e765(0x158),_0x3e7b9c[_0x33e765(0x218)]=_0x33e765(0x193);const _0x56a051=_0x3e7b9c,_0x6f1e9c={};_0x6f1e9c[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x1d1)],_0x6f1e9c[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x3cad93={};_0x3cad93[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x1ef)],_0x3cad93[_0x33e765(0x1a4)]=_0x56a051['yZjth'];const _0x2d6c7f={};_0x2d6c7f[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x15f)],_0x2d6c7f[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x17a4fb={};_0x17a4fb[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x16f)],_0x17a4fb[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x682057={};return _0x682057[_0x33e765(0x16d)]=_0x6f1e9c,_0x682057[_0x33e765(0x1aa)]=_0x3cad93,_0x682057[_0x33e765(0x1ea)]=_0x2d6c7f,_0x682057[_0x33e765(0x1bd)]=_0x17a4fb,_0x59b4aa['usage'](HELP_HEADER_MESSAGE[_0x33e765(0x1df)])[_0x33e765(0x171)](HELP_FOOTER_MESSAGE)['options'](_0x682057)[_0x33e765(0x193)](_0x56a051[_0x33e765(0x218)])[_0x33e765(0x1a3)];};function a17_0x52f8(_0x26963f,_0x23351f){const _0x3887b1=a17_0x3887();return a17_0x52f8=function(_0x52f84f,_0x55aae2){_0x52f84f=_0x52f84f-0x13d;let _0x47b176=_0x3887b1[_0x52f84f];return _0x47b176;},a17_0x52f8(_0x26963f,_0x23351f);}async function inputValidation(_0x50e845,_0x31f755){const _0x36a896=a17_0x4fc318,_0x276964={'myXNR':_0x36a896(0x1ea),'QheFS':_0x36a896(0x1f4),'PerOA':'cluster-name','KrcTT':'is\x20already\x20present','BOwdV':_0x36a896(0x18c),'VMTiL':_0x36a896(0x1aa),'BaiEE':function(_0x3efecd,_0x3ed9fa){return _0x3efecd+_0x3ed9fa;},'bIKnA':_0x36a896(0x1b8),'yNHbK':_0x36a896(0x1f0),'eRVnv':function(_0x4ff491,_0x33cd6a){return _0x4ff491||_0x33cd6a;},'NbUgb':'N/A','zuMcQ':'Error\x20Details:\x0a','tsTbK':_0x36a896(0x185),'myGul':_0x36a896(0x1bb),'gEEsD':_0x36a896(0x207),'xiJMC':_0x36a896(0x1f2),'SKnIg':_0x36a896(0x156),'JHZOo':_0x36a896(0x158),'qhETv':'help','NQKcR':function(_0x5ca35a,_0x164fdb){return _0x5ca35a!==_0x164fdb;},'PtEnU':'GJxvc','yhvUY':_0x36a896(0x1f1),'TUAIp':function(_0x1976a5,_0x466eaf){return _0x1976a5===_0x466eaf;},'KORbC':_0x36a896(0x1ce),'TuYKc':function(_0x2ccfaa,_0x147ac6){return _0x2ccfaa!==_0x147ac6;},'aGTog':_0x36a896(0x210),'uaGaW':'bXspO','hNrrs':_0x36a896(0x189),'prNwi':_0x36a896(0x1de),'jfGgK':'RpPAE','yviMi':function(_0x1aabf4,_0x39c1d5){return _0x1aabf4>_0x39c1d5;},'jEqTF':_0x36a896(0x1b7),'OoNTD':function(_0xa2b332,_0x31e70b,_0x549e07,_0x3a5716,_0xa60829,_0x3cc44f,_0x54b11b,_0x106481){return _0xa2b332(_0x31e70b,_0x549e07,_0x3a5716,_0xa60829,_0x3cc44f,_0x54b11b,_0x106481);},'juGBm':_0x36a896(0x1f8),'tVQFo':_0x36a896(0x19a),'Hbsby':function(_0x4b134b,_0x1ed780){return _0x4b134b!==_0x1ed780;},'ELRzm':_0x36a896(0x234),'RQDUp':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FYiXu':_0x36a896(0x17f),'fdhZI':function(_0x129328,_0x41a711){return _0x129328!==_0x41a711;},'TaZOl':_0x36a896(0x1b9),'ytNst':function(_0xa72cfb,_0x18ca8e){return _0xa72cfb===_0x18ca8e;},'BjHjo':_0x36a896(0x1eb),'aApKE':_0x36a896(0x150),'phAsU':function(_0x38621f,_0x1f1501,_0x220bad){return _0x38621f(_0x1f1501,_0x220bad);},'SGDaF':function(_0x292047,_0x4856d8,_0x3d0d12,_0x3644ce,_0x3e5a62,_0x28f765){return _0x292047(_0x4856d8,_0x3d0d12,_0x3644ce,_0x3e5a62,_0x28f765);},'Wxqfa':_0x36a896(0x22d),'pjnwr':_0x36a896(0x1bd),'OfbqD':function(_0x52acb8,_0x312d93){return _0x52acb8!==_0x312d93;},'RvNww':_0x36a896(0x228),'PRrQH':_0x36a896(0x1c5),'hNFCZ':function(_0x57bd98,_0x5d167e){return _0x57bd98(_0x5d167e);},'bbVkq':function(_0x3b309c,_0x4b1259){return _0x3b309c===_0x4b1259;},'NpsQT':_0x36a896(0x233),'GFWEd':_0x36a896(0x1be),'lHtLV':function(_0x3ec8a0,_0x4a6256){return _0x3ec8a0!==_0x4a6256;},'APRWa':_0x36a896(0x23a),'jRdWq':'CLeai','kSNsn':_0x36a896(0x172),'tFwgB':_0x36a896(0x13d),'tGgEx':'XkFjG','lMtdW':_0x36a896(0x23b),'wkfED':'MpZVW'};let _0x4067ef;try{if(_0x276964[_0x36a896(0x1cb)](_0x276964[_0x36a896(0x1ee)],_0x276964['yhvUY'])){if(_0x50e845[_0x36a896(0x147)]||_0x50e845['cloudProvider']||_0x50e845[_0x36a896(0x1ea)]){if(_0x276964['TUAIp'](_0x276964['KORbC'],_0x276964[_0x36a896(0x13e)])){const _0x58140a=[];!_0x50e845[_0x36a896(0x147)]&&(_0x276964[_0x36a896(0x212)](_0x276964['aGTog'],_0x276964[_0x36a896(0x173)])?_0x58140a[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1a1)]):_0x487fed[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1d8)]));;if(!_0x50e845[_0x36a896(0x18a)]){if(_0x276964[_0x36a896(0x206)](_0x276964['hNrrs'],_0x276964[_0x36a896(0x151)])){const _0x39cb78={};_0x39cb78[_0x36a896(0x1a4)]=_0x2a774c[_0x36a896(0x169)],_0x39cb78['message']=_0x2501ac,_0x5cef23[_0x36a896(0x20b)](_0x545545,_0x39cb78,_0x276964[_0x36a896(0x153)],!![]);}else _0x58140a[_0x36a896(0x14d)](_0x276964['VMTiL']);};!_0x50e845[_0x36a896(0x1ea)]&&(_0x276964[_0x36a896(0x1cb)](_0x276964[_0x36a896(0x223)],_0x276964[_0x36a896(0x223)])?_0x3fbebb[_0x36a896(0x14d)](_0x276964['PerOA']):_0x58140a[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1d8)]));;_0x276964['yviMi'](_0x58140a[_0x36a896(0x15e)],0x0)&&(_0x276964[_0x36a896(0x212)](_0x276964[_0x36a896(0x191)],_0x276964[_0x36a896(0x191)])?_0x2bab18+='Cluster\x20'+_0x1d6ad5[_0x36a896(0x147)]+'\x20'+(_0x447701?_0x276964[_0x36a896(0x159)]:_0x276964[_0x36a896(0x20d)])+'\x0a\x0a':(_0x4067ef=_0x36a896(0x152)+_0x58140a[_0x36a896(0x14e)](',\x20')+_0x36a896(0x19b),await _0x276964['OoNTD'](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes['ERROR'],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x18b)],_0x276964['QheFS']),logger[_0x36a896(0x1f4)](_0x4067ef),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x36a896(0x230)](_0x50e845[_0x36a896(0x18a)][_0x36a896(0x235)]())&&(_0x276964[_0x36a896(0x163)](_0x276964[_0x36a896(0x221)],_0x276964[_0x36a896(0x221)])?_0x44e0cc[_0x36a896(0x14d)](_0x276964['VMTiL']):(_0x4067ef=_0x276964[_0x36a896(0x239)],await _0x276964['OoNTD'](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x21d)],_0x276964[_0x36a896(0x153)]),logger[_0x36a896(0x1f4)](_0x4067ef),!_0x50e845[_0x36a896(0x18a)]&&(_0x276964['fdhZI'](_0x276964[_0x36a896(0x178)],_0x276964[_0x36a896(0x178)])?_0x1883f1[_0x36a896(0x167)](_0x36a896(0x148)+_0x40fdc4[_0x36a896(0x147)]+_0x36a896(0x164)):(logger[_0x36a896(0x167)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x36a896(0x22a)]+'\x20'),_0x50e845[_0x36a896(0x18a)]=DEFAULT_CLUSTER_DETAILS[_0x36a896(0x22a)])))),global_registry[_0x36a896(0x147)]=_0x50e845[_0x36a896(0x147)],global_registry[_0x36a896(0x18a)]=_0x50e845['cloudProvider'],global_registry[_0x36a896(0x15a)]=_0x50e845[_0x36a896(0x1ea)];}else _0x8bf3ba+='Cluster\x20'+_0x3d6142['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else{if(_0x50e845[_0x36a896(0x23d)]){if(_0x276964['ytNst'](_0x276964['BjHjo'],_0x276964['BjHjo'])){global_registry[_0x36a896(0x23d)]=_0x50e845[_0x36a896(0x23d)],logger[_0x36a896(0x14f)]('grid\x20profile\x20flow\x20'+_0x50e845[_0x36a896(0x23d)]);const _0x539dcb='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x1398ae={};_0x1398ae[_0x36a896(0x1e3)]=_0x276964[_0x36a896(0x21c)],_0x1398ae[_0x36a896(0x1e8)]=global_registry[_0x36a896(0x18d)],_0x1398ae[_0x36a896(0x23e)]=![];const _0x4be680=_0x1398ae,_0x232784=await _0x276964[_0x36a896(0x165)](got,_0x539dcb,_0x4be680),_0x58f0ef=await _0x276964['SGDaF'](responseValidation,_0x232784,_0x276964[_0x36a896(0x1ed)],_0x276964[_0x36a896(0x200)],_0x50e845,_0x31f755);let _0x3b8b8b={};if(_0x276964[_0x36a896(0x206)](_0x58f0ef,0xc8)){if(_0x276964[_0x36a896(0x217)](_0x276964[_0x36a896(0x1c3)],_0x276964[_0x36a896(0x1e2)])){const _0x44c31b=JSON[_0x36a896(0x1e6)](_0x232784['body']),_0x161cac=_0x44c31b[_0x36a896(0x15b)](_0x3f82c5=>_0x3f82c5[_0x36a896(0x142)]===_0x50e845[_0x36a896(0x23d)])||null;if(_0x276964[_0x36a896(0x203)](isUndefined,_0x161cac))_0x276964[_0x36a896(0x198)](_0x276964['NpsQT'],_0x276964[_0x36a896(0x20a)])?(_0x4067ef=_0x36a896(0x160)+_0x50e845[_0x36a896(0x23d)]+_0x36a896(0x1a6),await _0x276964[_0x36a896(0x219)](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x1d0)],_0x276964[_0x36a896(0x153)]),logger[_0x36a896(0x1f4)](_0x4067ef),process['exit'](0x1)):_0xb2119b['error'](_0x36a896(0x179)+_0x19ee7c[_0x36a896(0x1f4)][_0x36a896(0x1e0)]);else{if(_0x276964[_0x36a896(0x20e)](_0x276964[_0x36a896(0x17a)],_0x276964[_0x36a896(0x1b5)]))_0x3b8b8b=_0x161cac;else{const {header:_0x1e6ce9,response:_0x1e7110}=_0x39da8a,{status:_0x589d9b,data:_0x975bbc,error:_0x366ea8}=_0x1e7110;_0x520b97+=_0x1e6ce9+'\x20#'+_0x276964[_0x36a896(0x166)](_0x2ec4c3,0x1)+'\x0a',_0x2d101d+='Status:\x20'+(_0x589d9b?_0x276964[_0x36a896(0x192)]:_0x276964[_0x36a896(0x154)])+'\x0a',_0x40467b+=_0x36a896(0x199)+_0x276964['eRVnv'](_0x975bbc,_0x276964['NbUgb'])+'\x0a',_0x366ea8&&(_0xe9b73+=_0x276964[_0x36a896(0x1b6)],_0x4322c7+=_0x36a896(0x1fa)+(_0x366ea8[_0x36a896(0x187)]||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x4bde2e+=_0x36a896(0x1ac)+(_0x366ea8[_0x36a896(0x18f)]||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x10cf8d+=_0x36a896(0x1c2)+(_0x366ea8[_0x36a896(0x1e0)]||_0x276964[_0x36a896(0x1fe)])+'\x0a'),_0x27d542+='\x0a\x0a';}}}else _0x3a6cbf[_0x36a896(0x140)](0x1);}else _0x276964[_0x36a896(0x198)](_0x276964[_0x36a896(0x168)],_0x276964[_0x36a896(0x168)])?process[_0x36a896(0x140)](0x1):(_0x261cee[_0x36a896(0x1f4)](_0x276964['tsTbK']),_0x3494ed[_0x36a896(0x140)](0x1));const _0x366965={};_0x366965['type']=WS_EVENTS[_0x36a896(0x169)],_0x366965['message']=_0x276964[_0x36a896(0x186)],webSocketUtils[_0x36a896(0x20b)](_0x31f755,_0x366965),global_registry['cloudProvider']=_0x3b8b8b['cloudProvider'],global_registry['clusterRegion']=_0x3b8b8b[_0x36a896(0x1ea)],global_registry[_0x36a896(0x147)]=_0x3b8b8b[_0x36a896(0x147)];}else{const _0x20437a={};_0x20437a[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x1c9)],_0x20437a[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x5e0f20={};_0x5e0f20[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x1cc)],_0x5e0f20[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x5ee055={};_0x5ee055[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x21f)],_0x5ee055[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x3c2eb1={};_0x3c2eb1[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x144)],_0x3c2eb1[_0x36a896(0x1a4)]=_0x276964['gEEsD'];const _0x1b0535={};return _0x1b0535[_0x36a896(0x16d)]=_0x20437a,_0x1b0535[_0x36a896(0x1aa)]=_0x5e0f20,_0x1b0535[_0x36a896(0x1ea)]=_0x5ee055,_0x1b0535[_0x36a896(0x1bd)]=_0x3c2eb1,_0x1cb03d['usage'](_0x258871['pre_check'])[_0x36a896(0x171)](_0x39b840)['options'](_0x1b0535)[_0x36a896(0x193)](_0x276964[_0x36a896(0x182)])[_0x36a896(0x1a3)];}}else _0x276964[_0x36a896(0x217)](_0x276964[_0x36a896(0x194)],_0x276964[_0x36a896(0x194)])?(_0xd31e5b[_0x36a896(0x167)]('['+_0x102e87+_0x36a896(0x17c)+_0x3c5478[_0x36a896(0x1dc)]+'\x20data\x20:\x20'+_0x13abeb['data']+_0x36a896(0x19e)+_0x555f61[_0x36a896(0x1f4)]),_0x21bb38['error']&&_0xe1a6f5[_0x36a896(0x1f4)](_0x36a896(0x179)+_0x4a8847[_0x36a896(0x1f4)][_0x36a896(0x1e0)])):(logger[_0x36a896(0x1f4)](_0x276964[_0x36a896(0x1a7)]),process[_0x36a896(0x140)](0x1));}}else _0x2676fc+=_0x276964[_0x36a896(0x1b6)],_0x399dbd+='\x20\x20Message:\x20'+(_0x359652['message']||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x4bbd87+=_0x36a896(0x1ac)+(_0x2ecfb6[_0x36a896(0x18f)]||_0x276964['NbUgb'])+'\x0a',_0x83fedc+='\x20\x20Stack:\x20'+(_0x172da8[_0x36a896(0x1e0)]||_0x276964[_0x36a896(0x1fe)])+'\x0a';}catch(_0x41f753){_0x276964[_0x36a896(0x17e)](_0x276964[_0x36a896(0x195)],_0x276964[_0x36a896(0x1ab)])?(_0x23e7b0['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x5568d9[_0x36a896(0x22a)]+'\x20'),_0x20a375[_0x36a896(0x18a)]=_0x3022eb[_0x36a896(0x22a)]):(_0x4067ef=_0x36a896(0x204)+_0x41f753+':\x20'+_0x41f753[_0x36a896(0x1e0)],logger['error'](_0x4067ef),await _0x276964[_0x36a896(0x219)](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x21d)],_0x276964[_0x36a896(0x153)]),process['exit'](0x1));}}function a17_0x3887(){const _0x369d43=['message','9XAtuuP','ssdor','cloudProvider','tVQFo','will\x20be\x20created','authHeader','forEach','code','MfaGM','jEqTF','bIKnA','help','tGgEx','lMtdW','zaOtB','aDtzY','bbVkq','Message:\x20','pre-check-cluster-args-not-passed','.\x20Please\x20provide\x20all\x20required\x20arguments.','PsfSy','isClusterPresent','\x20error\x20:\x20','epIbH','WVDkZ','PerOA','builder','argv','type','zQZyg','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','tsTbK','desc','response','cloud-provider','wkfED','\x20\x20Code:\x20','readFileSync','EKxfR','accessResp','isTrialGridAccessible','Pre-check\x20running\x20for\x20Cloud\x20-\x20','requestId','ZtAmo','../../cloudproviders/utils','jRdWq','zuMcQ','SFmQs','Success','jSoFC','Report\x20saved\x20in\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','WTxZD','grid-profile','pre-check-grid-profile-empty','isCliToolInstalled','command','Browserstack','\x20\x20Stack:\x20','RvNww','N/A','nYNRP','SSL\x20Configured','getUTCMonth','<UsernamePlaceholder>','myGul','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','NQKcR','xiJMC','description','LOsSK','mPMnc','GFWEd','BsVTG','stringify','username','2224992OeEYRb','Ujzwu','2582792mqbzFa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','myXNR','VRELE','NlPeh','\x20===\x0a\x0a','status','password','oJTBw','pre_check','stack','idpTD','PRrQH','method','handler','dDdYF','parse','yZjth','headers','BRBLG','region','pizuD','\x20region\x20-\x20','Wxqfa','PtEnU','MqCnT','Failure','HIJXS','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','vovtb','error','bstackAccesskey','delay','IIlQk','pre-check-grid-called','../../config/logger','\x20\x20Message:\x20','qIgIf','ldOmI','Zhpzn','NbUgb','Whitelisted\x20browserstack','pjnwr','getUTCMinutes','883537Nquqgn','hNFCZ','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','`\x20is\x20present\x20in\x20region\x20`','TUAIp','string','bstackUsername','ERROR','NpsQT','sendEventToBackend','../../utils/webSocketUtils','BOwdV','lHtLV','isTls1_2_SUPPORTED','WwUqP','jdeVV','TuYKc','checkAccess','QzBoJ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','data','OfbqD','TrJZY','OoNTD','QHiJJ','replace','aApKE','FYiXu','8335wBjLLY','SKnIg','juGBm','ELRzm','dummy-grid','jfGgK','reconnecting-websocket','utf-8','PtbUI','`\x20,error\x20:\x20','aZbHg','LFeeh','CLOUD_PROVIDER','===\x20Precheck\x20Report\x20-\x20','tFzXv','pre-check','\x20data\x20:\x20','getUTCFullYear','includes','INFO','GPMbf','YporY','IgHmo','toLowerCase','480FPRvGO','<PasswordPlaceholder>','pEOEi','RQDUp','DVKhw','OmDNJ','Error\x20Details:\x0a','gridProfile','throwHttpErrors','Grid\x20profile\x20fetched\x20for\x20pre-check','KORbC','yjbDU','exit','WebSocket','name','.txt','JHZOo','header','3|2|4|1|0','clusterName','Cluster\x20`','YvGXi','User\x20Access','GYAre','3YNJVnp','push','join','debug','GET','prNwi','Missing\x20required\x20arguments:\x20','QheFS','yNHbK','Cluster\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','grid','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','KrcTT','clusterRegion','find','7GlFCYQ','2174030cORmXo','length','vwuZu','Invalid\x20input.\x20grid\x20profiles:\x20','TLSv1_2_client_method','3783906lJpiyh','Hbsby','`\x20already\x20exists','phAsU','BaiEE','info','kSNsn','LOG','ENMZG','Tool\x20Installed','connectionTimeout','cluster-name','1738306JuJqKP','VVOTQ','stack\x20trace\x20','epilogue','iQGMN','uaGaW','aPioD','Ijpjr','cdTSF','Cluster\x20details\x0a-----------------------\x0a','TaZOl','error\x20stack\x20:\x20','APRWa','iVOqm',']\x20status\x20:\x20','YDEEp','ytNst','cloud-provider-not-supported','gEEsD','split','qhETv','writeFileSync','BrnDc','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','tFwgB'];a17_0x3887=function(){return _0x369d43;};return a17_0x3887();}function printResponse(_0xe2c939,_0xdcd35a){const _0x2aad10=a17_0x4fc318,_0x6e0af8={};_0x6e0af8[_0x2aad10(0x1d9)]=function(_0xc83bde,_0x16aaab){return _0xc83bde!==_0x16aaab;},_0x6e0af8[_0x2aad10(0x184)]=_0x2aad10(0x211),_0x6e0af8[_0x2aad10(0x214)]=_0x2aad10(0x1bc);const _0x186792=_0x6e0af8;logger['info']('['+_0xe2c939+_0x2aad10(0x17c)+_0xdcd35a[_0x2aad10(0x1dc)]+_0x2aad10(0x22e)+_0xdcd35a[_0x2aad10(0x216)]+_0x2aad10(0x19e)+_0xdcd35a[_0x2aad10(0x1f4)]),_0xdcd35a[_0x2aad10(0x1f4)]&&(_0x186792['VRELE'](_0x186792[_0x2aad10(0x184)],_0x186792['QzBoJ'])?logger[_0x2aad10(0x1f4)]('error\x20stack\x20:\x20'+_0xdcd35a[_0x2aad10(0x1f4)][_0x2aad10(0x1e0)]):_0x48c57b=_0x4e85d7);}async function generateReport(_0x5a8240,_0x2a9b0c){const _0x5140a4=a17_0x4fc318,_0x3ec35e={'CRDBs':function(_0x5f5c85,_0x11d6b2){return _0x5f5c85+_0x11d6b2;},'vovtb':_0x5140a4(0x1b8),'PtbUI':_0x5140a4(0x1f0),'cdTSF':function(_0x20dc7e,_0x3a5825){return _0x20dc7e||_0x3a5825;},'WVDkZ':_0x5140a4(0x1c4),'vZCEI':_0x5140a4(0x23c),'lPXEZ':_0x5140a4(0x177),'RdXmJ':function(_0x2f35a6,_0xda8e69){return _0x2f35a6!=_0xda8e69;},'qIgIf':'is\x20already\x20present','MruJG':_0x5140a4(0x18c),'QYAHY':function(_0x586721){return _0x586721();}};let _0xd4ac4c=_0x5140a4(0x22b)+global_registry[_0x5140a4(0x18a)]+_0x5140a4(0x1db);return _0x5a8240[_0x5140a4(0x18e)]((_0x1b6a1c,_0x4ccd13)=>{const _0x11fe6d=_0x5140a4,{header:_0x46d76e,response:_0x3f0249}=_0x1b6a1c,{status:_0x35d23d,data:_0x5ae603,error:_0x41cb2c}=_0x3f0249;_0xd4ac4c+=_0x46d76e+'\x20#'+_0x3ec35e['CRDBs'](_0x4ccd13,0x1)+'\x0a',_0xd4ac4c+='Status:\x20'+(_0x35d23d?_0x3ec35e[_0x11fe6d(0x1f3)]:_0x3ec35e[_0x11fe6d(0x226)])+'\x0a',_0xd4ac4c+=_0x11fe6d(0x199)+_0x3ec35e[_0x11fe6d(0x176)](_0x5ae603,_0x3ec35e['WVDkZ'])+'\x0a',_0x41cb2c&&(_0xd4ac4c+=_0x3ec35e['vZCEI'],_0xd4ac4c+='\x20\x20Message:\x20'+(_0x41cb2c[_0x11fe6d(0x187)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a',_0xd4ac4c+='\x20\x20Code:\x20'+(_0x41cb2c[_0x11fe6d(0x18f)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a',_0xd4ac4c+='\x20\x20Stack:\x20'+(_0x41cb2c[_0x11fe6d(0x1e0)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a'),_0xd4ac4c+='\x0a\x0a';}),_0xd4ac4c+=_0x3ec35e['lPXEZ'],_0x3ec35e['RdXmJ'](_0x2a9b0c,null)?_0xd4ac4c+=_0x5140a4(0x155)+global_registry[_0x5140a4(0x147)]+'\x20'+(_0x2a9b0c?_0x3ec35e[_0x5140a4(0x1fb)]:_0x3ec35e['MruJG'])+'\x0a\x0a':_0xd4ac4c+=_0x5140a4(0x155)+global_registry[_0x5140a4(0x147)]+_0x5140a4(0x1ca),_0xd4ac4c+=_0x3ec35e['QYAHY'](getSystemMetaData),_0xd4ac4c;};exports[a17_0x4fc318(0x1e4)]=async function(_0x337da0){const _0x5505bc=a17_0x4fc318,_0x44c842={'BRBLG':function(_0x65e62c){return _0x65e62c();},'dDdYF':function(_0x3306d9){return _0x3306d9();},'aPioD':_0x5505bc(0x1d7),'PsfSy':function(_0x37e971,_0xe33903,_0x34ebd6,_0xd15151,_0x536b63,_0x5045f2,_0x1447d9,_0x1bf5d9){return _0x37e971(_0xe33903,_0x34ebd6,_0xd15151,_0x536b63,_0x5045f2,_0x1447d9,_0x1bf5d9);},'iVOqm':'pre-check-grid-called','yjbDU':'credential-not-found','idpTD':_0x5505bc(0x1f4),'YDEEp':function(_0x633bd1,_0x33bab1,_0x5070a3,_0x2902b4,_0x379ace,_0x36310f,_0x43c28e){return _0x633bd1(_0x33bab1,_0x5070a3,_0x2902b4,_0x379ace,_0x36310f,_0x43c28e);},'aDtzY':_0x5505bc(0x1c8),'epIbH':_0x5505bc(0x237),'tFzXv':function(_0x1f4ae1,_0x20e00a,_0x5dae77){return _0x1f4ae1(_0x20e00a,_0x5dae77);},'ldOmI':_0x5505bc(0x222),'GYAre':function(_0x17352d,_0x134791,_0x354723){return _0x17352d(_0x134791,_0x354723);},'EKxfR':'toolInstalledResp','GPMbf':_0x5505bc(0x146),'zQZyg':function(_0x572928,_0x564c4c,_0xaa576b,_0xa126a4,_0x256359,_0x358321,_0x22869b,_0x5c8340){return _0x572928(_0x564c4c,_0xaa576b,_0xa126a4,_0x256359,_0x358321,_0x22869b,_0x5c8340);},'pEOEi':function(_0x5ac4ab,_0x51efe6,_0x1093a9){return _0x5ac4ab(_0x51efe6,_0x1093a9);},'Ijpjr':_0x5505bc(0x1af),'QHiJJ':function(_0x5cb59a){return _0x5cb59a();},'MfaGM':function(_0x3d299a,_0x5cb40a,_0x4c084f){return _0x3d299a(_0x5cb40a,_0x4c084f);},'ENMZG':_0x5505bc(0x1b0),'IIlQk':function(_0x449e41,_0x42972a){return _0x449e41(_0x42972a);},'mPMnc':_0x5505bc(0x161),'Zhpzn':function(_0x3de591,_0x2953fe,_0x2ea5b7){return _0x3de591(_0x2953fe,_0x2ea5b7);},'YFiDi':_0x5505bc(0x20f),'YvGXi':_0x5505bc(0x16b),'NlPeh':_0x5505bc(0x14a),'zaOtB':_0x5505bc(0x1ff),'Ujzwu':_0x5505bc(0x1c6),'hjjcT':function(_0x121e75,_0x5daf8f,_0x53dd4b){return _0x121e75(_0x5daf8f,_0x53dd4b);},'XGSKw':function(_0xa121b4,_0x3cddaa){return _0xa121b4+_0x3cddaa;},'AtvEq':_0x5505bc(0x225),'ZtAmo':function(_0x4251ab,_0x5b9123,_0x26a00d,_0x434834,_0x3f672c,_0x346552,_0x17027f){return _0x4251ab(_0x5b9123,_0x26a00d,_0x434834,_0x3f672c,_0x346552,_0x17027f);},'LFeeh':'pre-check-failed'};let _0x38bb99,_0x151a74;try{global_registry[_0x5505bc(0x1b2)]=_0x44c842[_0x5505bc(0x1e9)](uuidv4);!fs['existsSync'](_0x44c842[_0x5505bc(0x1e5)](getCredentialsPath))&&(_0x151a74=_0x44c842[_0x5505bc(0x174)],logger['error'](_0x151a74),await _0x44c842[_0x5505bc(0x19c)](reportToGalactusAndSendToEDS,_0x337da0,_0x38bb99,_0x151a74,messageTypes['ERROR'],_0x44c842['iVOqm'],_0x44c842[_0x5505bc(0x13f)],_0x44c842[_0x5505bc(0x1e1)]),process[_0x5505bc(0x140)](0x1));_0x44c842[_0x5505bc(0x17d)](sendInstrumentationEvent,_0x337da0,_0x44c842[_0x5505bc(0x17b)],messageTypes[_0x5505bc(0x231)],null,null,_0x337da0);const _0x29797b=JSON[_0x5505bc(0x1e6)](fs[_0x5505bc(0x1ad)](_0x44c842[_0x5505bc(0x1e9)](getCredentialsPath)));global_registry['bstackUsername']=_0x29797b[_0x5505bc(0x1c1)][_0x5505bc(0x1d3)],global_registry['bstackAccesskey']=_0x29797b['Browserstack'][_0x5505bc(0x1dd)];const _0x1e9407=WS_ENDPOINT[_0x5505bc(0x21b)](_0x44c842[_0x5505bc(0x197)],_0x29797b[_0x5505bc(0x1c1)][_0x5505bc(0x1d3)])[_0x5505bc(0x21b)](_0x44c842[_0x5505bc(0x19f)],_0x29797b[_0x5505bc(0x1c1)]['password']),_0x2b20b7={};_0x2b20b7[_0x5505bc(0x141)]=ws,_0x2b20b7[_0x5505bc(0x16c)]=0x36ee80,_0x38bb99=new ReconnectingWebSocket(_0x1e9407,[],_0x2b20b7),global_registry[_0x5505bc(0x18d)]=_0x44c842[_0x5505bc(0x22c)](getAuthHeader,global_registry[_0x5505bc(0x208)],global_registry[_0x5505bc(0x1f5)]),await _0x44c842[_0x5505bc(0x22c)](inputValidation,_0x337da0,_0x38bb99),logger[_0x5505bc(0x167)](_0x5505bc(0x1b1)+global_registry[_0x5505bc(0x18a)]+_0x5505bc(0x1ec)+global_registry[_0x5505bc(0x15a)]);let _0x520275=await _0x44c842[_0x5505bc(0x17d)](getCloudProviderObjectWithOutInit,global_registry[_0x5505bc(0x18a)],global_registry[_0x5505bc(0x147)],_0x44c842[_0x5505bc(0x1fc)],_0x38bb99,webSocketUtils,_0x337da0);const _0x23a8e5=await _0x520275[_0x5505bc(0x1bf)]();_0x44c842[_0x5505bc(0x14b)](printResponse,_0x44c842[_0x5505bc(0x1ae)],_0x23a8e5),_0x520275=await _0x520275['init']();let _0x38ade3=![];try{_0x38ade3=await _0x520275[_0x5505bc(0x19d)]();}catch(_0x22950f){const _0x2bc9ac=_0x44c842[_0x5505bc(0x232)][_0x5505bc(0x181)]('|');let _0x2ae670=0x0;while(!![]){switch(_0x2bc9ac[_0x2ae670++]){case'0':await _0x44c842[_0x5505bc(0x1a5)](reportToGalactusAndSendToEDS,_0x337da0,_0x38bb99,_0x151a74,messageTypes[_0x5505bc(0x209)],_0x44c842[_0x5505bc(0x17b)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x44c842['idpTD']);continue;case'1':_0x151a74+='\x0a'+JSON[_0x5505bc(0x1d2)](_0x22950f[_0x5505bc(0x1e0)]);continue;case'2':_0x38ade3=null;continue;case'3':_0x151a74='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x5505bc(0x147)]+_0x5505bc(0x205)+global_registry[_0x5505bc(0x15a)]+_0x5505bc(0x227)+_0x22950f;continue;case'4':logger[_0x5505bc(0x1f4)](_0x151a74);continue;}break;}}_0x38ade3&&logger['info'](_0x5505bc(0x148)+global_registry[_0x5505bc(0x147)]+_0x5505bc(0x164));const _0x55c6ba=await _0x520275[_0x5505bc(0x213)]();_0x44c842[_0x5505bc(0x238)](printResponse,_0x44c842[_0x5505bc(0x175)],_0x55c6ba);const _0x596829=await _0x44c842[_0x5505bc(0x21a)](curlRequest);_0x44c842[_0x5505bc(0x190)](printResponse,_0x44c842[_0x5505bc(0x16a)],_0x596829);const _0x488a5d=await _0x44c842[_0x5505bc(0x1f7)](isTlsSupported,_0x44c842[_0x5505bc(0x1cf)]);_0x44c842[_0x5505bc(0x1fd)](printResponse,_0x44c842['YFiDi'],_0x488a5d);const _0x38b403={};_0x38b403[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x149)],_0x38b403[_0x5505bc(0x1a9)]=_0x23a8e5;const _0x26adbc={};_0x26adbc[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x1da)],_0x26adbc[_0x5505bc(0x1a9)]=_0x55c6ba;const _0x34b401={};_0x34b401[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x196)],_0x34b401[_0x5505bc(0x1a9)]=_0x596829;const _0x248b85={};_0x248b85[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x1d5)],_0x248b85[_0x5505bc(0x1a9)]=_0x488a5d;const _0x2a02d4=[_0x38b403,_0x26adbc,_0x34b401,_0x248b85],_0xa08480=await _0x44c842['hjjcT'](generateReport,_0x2a02d4,_0x38ade3),_0x334878=new Date(),_0x599873=_0x334878[_0x5505bc(0x22f)]()+'_'+_0x44c842['XGSKw'](_0x334878[_0x5505bc(0x1c7)](),0x1)+'_'+_0x334878['getUTCDate']()+'_'+_0x334878['getUTCHours']()+'_'+_0x334878[_0x5505bc(0x201)](),_0x428ba9='log/report_'+_0x599873+_0x5505bc(0x143);fs[_0x5505bc(0x183)](_0x428ba9,_0xa08480,_0x44c842['AtvEq']),logger[_0x5505bc(0x167)](_0x5505bc(0x1ba)+_0x428ba9),process['exit'](0x0);}catch(_0x5914e0){let _0x16e434='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x5914e0+'\x20';logger[_0x5505bc(0x1f4)](_0x16e434),_0x16e434+='\x0a'+JSON['stringify'](_0x5914e0[_0x5505bc(0x1e0)]),logger[_0x5505bc(0x14f)](_0x5505bc(0x170)+_0x5914e0[_0x5505bc(0x1e0)]);if(_0x38bb99){const _0x340eee={};_0x340eee['type']=WS_EVENTS[_0x5505bc(0x169)],_0x340eee[_0x5505bc(0x187)]=_0x16e434,webSocketUtils[_0x5505bc(0x20b)](_0x38bb99,_0x340eee,_0x44c842[_0x5505bc(0x1e1)],!![]);}await webSocketUtils[_0x5505bc(0x1f6)](0x7d0);const _0x12bb18={};_0x12bb18[_0x5505bc(0x1f4)]=_0x16e434,await _0x44c842[_0x5505bc(0x1b3)](sendInstrumentationEvent,_0x337da0,_0x44c842['iVOqm'],messageTypes[_0x5505bc(0x209)],_0x44c842[_0x5505bc(0x229)],_0x12bb18,_0x337da0),process[_0x5505bc(0x140)](0x1);}};
|
|
1
|
+
const a17_0x3b23b4=a17_0x4f2e;(function(_0x5cc7a4,_0x4d1503){const _0x1c72ba=a17_0x4f2e,_0x1413d4=_0x5cc7a4();while(!![]){try{const _0x2dd175=parseInt(_0x1c72ba(0x237))/0x1+-parseInt(_0x1c72ba(0x207))/0x2+-parseInt(_0x1c72ba(0x2aa))/0x3*(parseInt(_0x1c72ba(0x1cc))/0x4)+parseInt(_0x1c72ba(0x1dc))/0x5*(parseInt(_0x1c72ba(0x247))/0x6)+parseInt(_0x1c72ba(0x1ce))/0x7*(-parseInt(_0x1c72ba(0x1f6))/0x8)+-parseInt(_0x1c72ba(0x26b))/0x9*(-parseInt(_0x1c72ba(0x20a))/0xa)+parseInt(_0x1c72ba(0x22a))/0xb;if(_0x2dd175===_0x4d1503)break;else _0x1413d4['push'](_0x1413d4['shift']());}catch(_0x1998ed){_0x1413d4['push'](_0x1413d4['shift']());}}}(a17_0x5a37,0x246c0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3b23b4(0x2ac)),{v4:uuidv4}=require(a17_0x3b23b4(0x262)),ReconnectingWebSocket=require(a17_0x3b23b4(0x212)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3b23b4(0x1c8)),{logger}=require(a17_0x3b23b4(0x1b5)),{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_0x3b23b4(0x1f9)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x3b23b4(0x238)),{sendInstrumentationEvent}=require(a17_0x3b23b4(0x1b2));function a17_0x5a37(){const _0x245faf=['Yqqhy','UqqBU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FaxkM','N/A','YypAh','cedbw','/packages/cli/get-all-grid-profiles','\x20region\x20-\x20','DoUSf','PCcLr','MEsdo','1644bAIKLU','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IDULv','message','dozFS','OXSEe','WebSocket','===\x20Precheck\x20Report\x20-\x20','oEaLW','npHta','FGyrY','readFileSync','ELoVu','raQGU','ZLLlc','Whitelisted\x20browserstack','<UsernamePlaceholder>','User\x20Access','ditbQ','Missing\x20required\x20arguments:\x20','Failure','iEEBC','jquqf','grid','forEach','ETTjo','lzMNE','uuid','status','getUTCMinutes','help','epilogue','`\x20,error\x20:\x20','aRFsr','wjBhA','ROsGz','31446YCfULg','stringify','odXMq','pSTXw','LOG','stack\x20trace\x20','cloudProvider','authHeader','zxJfJ','description','VWQWe','grid\x20profile\x20flow\x20','FHwTG','buZya','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','oPDNK','KorlP','\x20\x20Message:\x20','JSKhF','tOUyW','join','accessResp','MxsFN','VMpwJ','gkGEn','wmEws','dNYDs','exit','WXcIA','push','DrKNg','.txt','tztQl','AQeMt','getUTCHours','code','Browserstack','getUTCFullYear','command','nrbaf','AHkQn','qLHZz','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',']\x20status\x20:\x20','BCKEZ','connectionTimeout','UdEih','xCQor','header','qxzZP','XeNKN','hBxlo','IcSKc','\x20data\x20:\x20','WOZLs','bstackUsername','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','options','Message:\x20','oXTBX','bTUao','Opfrh','headers','6iUDoXH','jovYx','got','SQGlS','\x20===\x0a\x0a','CXjMw','debug','gylTh','pSWLG','KYytK','tDAzA','includes','../../utils/instrumentationUtils','clusterRegion','Report\x20saved\x20in\x20','../../config/logger','response','`\x20already\x20exists','body','bstackAccesskey','ivzdH','grid-profile','IaeYC','credential-not-found','unable\x20to\x20verify\x20if\x20cluster\x20`','usage','jVxfZ','init','GET','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','length','ERROR','ZQsHV','../../utils/utilityMethods','YFaLs','IowOS','msZEz','506392wYFztf','vlnPk','1112237KnwjKb','TLSv1_2_client_method','delay','cloud-provider','QDBdu','\x20\x20Stack:\x20','LXdpJ','Invalid\x20input.\x20grid\x20profiles:\x20','Status:\x20','gLFKd','cluster-name','ukNaj','bQscv','pre-check-failed','2050QoFmGm','is\x20already\x20present','string','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','tpmel','toLowerCase','oJxjX','pre_check','type','ozNBA','cloud-provider-not-supported','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Success','gridProfile','eEvNb','rQpnj','replace','split','mlsza','hGDDq','FCRPN','IdJYj','JrMDz','wJQrl','handler','error\x20stack\x20:\x20','8tQATkI','thycr','isCliToolInstalled','../../config/constants','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20\x20Code:\x20','ySQOW','Grid\x20profile\x20fetched\x20for\x20pre-check','dXwky','getUTCDate','ZIvxH','getUTCMonth','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WIjPj','SSL\x20Configured','iJqen','468652VeahEY','password','JMynb','340DjCJDF','utf-8','VEVXT','Cluster\x20`','parse','region','XTfSt','yXzPS','reconnecting-websocket','KwqWM','stack','Error\x20Details:\x0a','ZWWER','BaNOs','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','2|4|3|1|0','method','Cluster\x20','CLOUD_PROVIDER','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tLkPP','clusterName','name','YqVNl','vARYS','twzBv','toolInstalledResp','vYPSk','data','checkAccess','Failed\x20in\x20pre-check!\x20Error:\x20','sendEventToBackend','4142281ofVPOd','pre-check','isvIy','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','isClusterPresent','nylzK','rTxav','fymVV','error','LivPY','info','YeOSd','will\x20be\x20created','187890ZGoRrV','../../utils/webSocketUtils','log/report_','isTls1_2_SUPPORTED'];a17_0x5a37=function(){return _0x245faf;};return a17_0x5a37();}exports[a17_0x3b23b4(0x291)]=a17_0x3b23b4(0x25e),exports[a17_0x3b23b4(0x1fa)]=a17_0x3b23b4(0x279),exports['builder']=function(_0x46bfbb){const _0x31be11=a17_0x3b23b4,_0x942fc={};_0x942fc['dozFS']=_0x31be11(0x23d),_0x942fc['wJQrl']=_0x31be11(0x1de),_0x942fc[_0x31be11(0x26d)]=_0x31be11(0x2a3),_0x942fc[_0x31be11(0x28c)]=_0x31be11(0x248),_0x942fc[_0x31be11(0x2af)]=_0x31be11(0x203),_0x942fc[_0x31be11(0x246)]=_0x31be11(0x265);const _0x282ea2=_0x942fc,_0x1d3849={};_0x1d3849[_0x31be11(0x274)]=_0x282ea2[_0x31be11(0x24b)],_0x1d3849[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x5b6bb9={};_0x5b6bb9['description']=_0x282ea2[_0x31be11(0x26d)],_0x5b6bb9[_0x31be11(0x1e4)]=_0x282ea2['wJQrl'];const _0x3e0f4a={};_0x3e0f4a[_0x31be11(0x274)]=_0x282ea2['AQeMt'],_0x3e0f4a[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x1091f7={};_0x1091f7[_0x31be11(0x274)]=_0x282ea2['CXjMw'],_0x1091f7['type']=_0x282ea2[_0x31be11(0x1f3)];const _0x36eb4f={};return _0x36eb4f[_0x31be11(0x1d8)]=_0x1d3849,_0x36eb4f[_0x31be11(0x1d1)]=_0x5b6bb9,_0x36eb4f[_0x31be11(0x20f)]=_0x3e0f4a,_0x36eb4f[_0x31be11(0x1bb)]=_0x1091f7,_0x46bfbb[_0x31be11(0x1bf)](HELP_HEADER_MESSAGE[_0x31be11(0x1e3)])[_0x31be11(0x266)](HELP_FOOTER_MESSAGE)[_0x31be11(0x2a4)](_0x36eb4f)[_0x31be11(0x265)](_0x282ea2[_0x31be11(0x246)])['argv'];};async function inputValidation(_0x5c791e,_0x5aebcf){const _0x1556ce=a17_0x3b23b4,_0x4c8df1={'ROsGz':_0x1556ce(0x232),'Ugqrz':_0x1556ce(0x23d),'zxJfJ':'string','oPDNK':_0x1556ce(0x2a3),'UqqBU':_0x1556ce(0x248),'DoUSf':_0x1556ce(0x203),'NBDCq':_0x1556ce(0x265),'IaeYC':_0x1556ce(0x1d8),'VMpwJ':_0x1556ce(0x295),'YqVNl':function(_0x2a0e8d,_0x4b21b6){return _0x2a0e8d+_0x4b21b6;},'twzBv':_0x1556ce(0x1e8),'aQKVB':_0x1556ce(0x25b),'msZEz':function(_0x465296,_0x2ce77d){return _0x465296||_0x2ce77d;},'bQscv':'N/A','IcSKc':_0x1556ce(0x215),'itnRN':_0x1556ce(0x1dd),'dNYDs':_0x1556ce(0x236),'jquqf':_0x1556ce(0x1d1),'aRFsr':function(_0x34ee35,_0x58126e){return _0x34ee35!==_0x58126e;},'JikjW':_0x1556ce(0x1f7),'UvXQb':_0x1556ce(0x209),'dXwky':function(_0x56479b,_0x52a6c8){return _0x56479b===_0x52a6c8;},'vARYS':'Uemab','KYytK':function(_0x389fbb,_0x24e735){return _0x389fbb!==_0x24e735;},'tpmel':_0x1556ce(0x261),'wjBhA':_0x1556ce(0x22f),'wmEws':_0x1556ce(0x29c),'YeOSd':_0x1556ce(0x297),'ksGVY':_0x1556ce(0x23b),'riDmp':_0x1556ce(0x253),'ZWWER':_0x1556ce(0x20f),'ukNaj':function(_0x5b4955,_0x208f12){return _0x5b4955>_0x208f12;},'ditbQ':_0x1556ce(0x275),'WXcIA':_0x1556ce(0x245),'WOZLs':function(_0x12f49e,_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020){return _0x12f49e(_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020);},'FHwTG':'pre-check-grid-called','FCRPN':'pre-check-cluster-args-not-passed','xzGOJ':function(_0x5ed734,_0x6a2f2f){return _0x5ed734!==_0x6a2f2f;},'KorlP':_0x1556ce(0x2b4),'ZIvxH':_0x1556ce(0x22d),'pNDLo':_0x1556ce(0x1e6),'ivzdH':function(_0x573bbd,_0x168946){return _0x573bbd!==_0x168946;},'UdEih':'nfXXy','eEvNb':function(_0x17308f,_0x2eeae0){return _0x17308f===_0x2eeae0;},'lkKYF':_0x1556ce(0x23e),'iEEBC':_0x1556ce(0x24f),'oXTBX':_0x1556ce(0x1c2),'AHkQn':function(_0x37f311,_0x27ecfc,_0x3c7ebe){return _0x37f311(_0x27ecfc,_0x3c7ebe);},'OXSEe':function(_0x9ff1f1,_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb){return _0x9ff1f1(_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb);},'jovYx':_0x1556ce(0x22b),'KpYLp':_0x1556ce(0x1bb),'elfmu':_0x1556ce(0x254),'ZQWJc':function(_0x949141,_0x5bb083){return _0x949141(_0x5bb083);},'hGDDq':function(_0x4fd96e,_0xa45690){return _0x4fd96e!==_0xa45690;},'vYPSk':_0x1556ce(0x231),'JSKhF':'pre-check-grid-profile-empty','WIjPj':'Jvajr','ZLLlc':'QVnGK','qLHZz':_0x1556ce(0x28b),'bTUao':_0x1556ce(0x1fe),'KwqWM':_0x1556ce(0x1eb),'YFaLs':_0x1556ce(0x21e),'ETTjo':function(_0x777856,_0x2ba190){return _0x777856===_0x2ba190;},'isvIy':_0x1556ce(0x210)};let _0x11e858;try{if(_0x4c8df1[_0x1556ce(0x268)](_0x4c8df1['JikjW'],_0x4c8df1['UvXQb'])){if(_0x5c791e['clusterName']||_0x5c791e[_0x1556ce(0x271)]||_0x5c791e[_0x1556ce(0x20f)]){if(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1[_0x1556ce(0x222)],_0x4c8df1[_0x1556ce(0x222)])){const _0xaa35b8=[];!_0x5c791e[_0x1556ce(0x21f)]&&(_0x4c8df1['KYytK'](_0x4c8df1[_0x1556ce(0x1e0)],_0x4c8df1[_0x1556ce(0x269)])?_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):_0x4d64f3['info'](_0x1556ce(0x20d)+_0x573a20[_0x1556ce(0x21f)]+_0x1556ce(0x1b7)));;if(!_0x5c791e['cloudProvider']){if(_0x4c8df1['dXwky'](_0x4c8df1[_0x1556ce(0x284)],_0x4c8df1[_0x1556ce(0x235)])){const _0x18ca36={};_0x18ca36[_0x1556ce(0x1e4)]=_0x51cf20[_0x1556ce(0x26f)],_0x18ca36[_0x1556ce(0x24a)]=_0x3bc148,_0x25f7a9[_0x1556ce(0x229)](_0x414166,_0x18ca36,_0x4c8df1[_0x1556ce(0x26a)],!![]);}else _0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x25d)]);};!_0x5c791e[_0x1556ce(0x20f)]&&(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1['ksGVY'],_0x4c8df1['riDmp'])?(_0x2aff6e[_0x1556ce(0x234)](_0x1556ce(0x1c3)+_0x343376['CLOUD_PROVIDER']+'\x20'),_0x507fe5['cloudProvider']=_0x582c2b[_0x1556ce(0x21c)]):_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x216)]));;if(_0x4c8df1[_0x1556ce(0x1d9)](_0xaa35b8[_0x1556ce(0x1c5)],0x0)){if(_0x4c8df1[_0x1556ce(0x2b3)](_0x4c8df1[_0x1556ce(0x259)],_0x4c8df1[_0x1556ce(0x287)]))_0x11e858=_0x1556ce(0x25a)+_0xaa35b8[_0x1556ce(0x27f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x1f0)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1);else{const _0x8b7acb={};_0x8b7acb[_0x1556ce(0x274)]=_0x4c8df1['Ugqrz'],_0x8b7acb[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x5d21f5={};_0x5d21f5[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x27a)],_0x5d21f5[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x3517ed={};_0x3517ed[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x23c)],_0x3517ed[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0x19c15d={};_0x19c15d[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x244)],_0x19c15d[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0xf5b738={};return _0xf5b738[_0x1556ce(0x1d8)]=_0x8b7acb,_0xf5b738[_0x1556ce(0x1d1)]=_0x5d21f5,_0xf5b738[_0x1556ce(0x20f)]=_0x3517ed,_0xf5b738[_0x1556ce(0x1bb)]=_0x19c15d,_0x3c246e[_0x1556ce(0x1bf)](_0x11e770['pre_check'])[_0x1556ce(0x266)](_0x1163df)[_0x1556ce(0x2a4)](_0xf5b738)['help'](_0x4c8df1['NBDCq'])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1556ce(0x1b1)](_0x5c791e[_0x1556ce(0x271)][_0x1556ce(0x1e1)]())&&(_0x4c8df1['xzGOJ'](_0x4c8df1[_0x1556ce(0x27b)],_0x4c8df1[_0x1556ce(0x27b)])?_0x202fb5[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):(_0x11e858=_0x4c8df1[_0x1556ce(0x201)],await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),!_0x5c791e[_0x1556ce(0x271)]&&(_0x4c8df1['ivzdH'](_0x4c8df1[_0x1556ce(0x299)],_0x4c8df1[_0x1556ce(0x299)])?_0x1472e9[_0x1556ce(0x232)](_0x1556ce(0x1f5)+_0x45e7bd[_0x1556ce(0x232)]['stack']):(logger[_0x1556ce(0x234)](_0x1556ce(0x1c3)+DEFAULT_CLUSTER_DETAILS[_0x1556ce(0x21c)]+'\x20'),_0x5c791e[_0x1556ce(0x271)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x1556ce(0x21f)]=_0x5c791e['clusterName'],global_registry[_0x1556ce(0x271)]=_0x5c791e[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x5c791e['region'];}else _0x1ebae2['info']('['+_0x9eba50+']\x20status\x20:\x20'+_0x2e1b62[_0x1556ce(0x263)]+_0x1556ce(0x2a0)+_0x89e54d[_0x1556ce(0x226)]+'\x20error\x20:\x20'+_0x5adc42['error']),_0x54ce21[_0x1556ce(0x232)]&&_0x1858c9[_0x1556ce(0x232)]('error\x20stack\x20:\x20'+_0x57294d[_0x1556ce(0x232)][_0x1556ce(0x214)]);}else{if(_0x5c791e['gridProfile']){if(_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1['lkKYF'],_0x4c8df1[_0x1556ce(0x25c)]))_0x4b7aab[_0x1556ce(0x232)](_0x4c8df1[_0x1556ce(0x282)]),_0x3502a5[_0x1556ce(0x286)](0x1);else{global_registry[_0x1556ce(0x1e9)]=_0x5c791e[_0x1556ce(0x1e9)],logger[_0x1556ce(0x2b0)](_0x1556ce(0x276)+_0x5c791e[_0x1556ce(0x1e9)]);const _0x2112d7='https://'+AG_API_URL+_0x1556ce(0x242),_0x35ea78={};_0x35ea78[_0x1556ce(0x21a)]=_0x4c8df1[_0x1556ce(0x2a6)],_0x35ea78[_0x1556ce(0x2a9)]=global_registry['authHeader'],_0x35ea78['throwHttpErrors']=![];const _0x1f6b0e=_0x35ea78,_0x2d1def=await _0x4c8df1[_0x1556ce(0x293)](got,_0x2112d7,_0x1f6b0e),_0x61d6cf=await _0x4c8df1[_0x1556ce(0x24c)](responseValidation,_0x2d1def,_0x4c8df1[_0x1556ce(0x2ab)],_0x4c8df1['KpYLp'],_0x5c791e,_0x5aebcf);let _0x46b3ea={};if(_0x4c8df1[_0x1556ce(0x1ea)](_0x61d6cf,0xc8)){if(_0x4c8df1[_0x1556ce(0x1ba)](_0x4c8df1['elfmu'],_0x4c8df1['elfmu'])){const {header:_0x40111c,response:_0x5087db}=_0x1b5130,{status:_0x357d5f,data:_0x53a1ed,error:_0x2e407c}=_0x5087db;_0xf00a70+=_0x40111c+'\x20#'+_0x4c8df1[_0x1556ce(0x221)](_0x737f63,0x1)+'\x0a',_0x38c65d+=_0x1556ce(0x1d6)+(_0x357d5f?_0x4c8df1[_0x1556ce(0x223)]:_0x4c8df1['aQKVB'])+'\x0a',_0x52eeb5+=_0x1556ce(0x2a5)+_0x4c8df1[_0x1556ce(0x1cb)](_0x53a1ed,_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x2e407c&&(_0x426533+=_0x4c8df1[_0x1556ce(0x29f)],_0x18e08b+=_0x1556ce(0x27c)+(_0x2e407c[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0xfe6d6d+=_0x1556ce(0x1fc)+(_0x2e407c[_0x1556ce(0x28e)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x10a204+=_0x1556ce(0x1d3)+(_0x2e407c['stack']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a'),_0xfe2560+='\x0a\x0a';}else{const _0x46bfc8=JSON[_0x1556ce(0x20e)](_0x2d1def[_0x1556ce(0x1b8)]),_0x5d3e61=_0x46bfc8['find'](_0x59bb50=>_0x59bb50[_0x1556ce(0x220)]===_0x5c791e[_0x1556ce(0x1e9)])||null;_0x4c8df1['ZQWJc'](isUndefined,_0x5d3e61)?_0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1['vYPSk'],_0x4c8df1[_0x1556ce(0x225)])?_0x361e43+=_0x1556ce(0x21b)+_0x52d505[_0x1556ce(0x21f)]+'\x20'+(_0x5796b9?_0x4c8df1['itnRN']:_0x4c8df1[_0x1556ce(0x285)])+'\x0a\x0a':(_0x11e858=_0x1556ce(0x1d5)+_0x5c791e[_0x1556ce(0x1e9)]+_0x1556ce(0x1e7),await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x27d)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1)):_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1[_0x1556ce(0x204)],_0x4c8df1[_0x1556ce(0x255)])?_0x29dfdb+=_0x1556ce(0x21b)+_0x2262c2[_0x1556ce(0x21f)]+_0x1556ce(0x1df):_0x46b3ea=_0x5d3e61;}}else _0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1[_0x1556ce(0x294)],_0x4c8df1[_0x1556ce(0x294)])?(_0x26f256+=_0x4c8df1[_0x1556ce(0x29f)],_0x2fb7d7+=_0x1556ce(0x27c)+(_0x42786b[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x5b6d52+=_0x1556ce(0x1fc)+(_0x24e16b['code']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x17f2d8+=_0x1556ce(0x1d3)+(_0x5378cd[_0x1556ce(0x214)]||_0x4c8df1['bQscv'])+'\x0a'):process[_0x1556ce(0x286)](0x1);const _0x1da674={};_0x1da674[_0x1556ce(0x1e4)]=WS_EVENTS[_0x1556ce(0x26f)],_0x1da674[_0x1556ce(0x24a)]=_0x4c8df1[_0x1556ce(0x2a7)],webSocketUtils[_0x1556ce(0x229)](_0x5aebcf,_0x1da674),global_registry[_0x1556ce(0x271)]=_0x46b3ea[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x46b3ea[_0x1556ce(0x20f)],global_registry[_0x1556ce(0x21f)]=_0x46b3ea[_0x1556ce(0x21f)];}}else _0x4c8df1['hGDDq'](_0x4c8df1[_0x1556ce(0x213)],_0x4c8df1[_0x1556ce(0x1c9)])?(logger[_0x1556ce(0x232)](_0x4c8df1['VMpwJ']),process['exit'](0x1)):_0x10ad27=_0x1c4d6b;}}else _0x4b3146[_0x1556ce(0x286)](0x1);}catch(_0x3f4633){_0x4c8df1[_0x1556ce(0x260)](_0x4c8df1[_0x1556ce(0x22c)],_0x4c8df1[_0x1556ce(0x22c)])?(_0x11e858=_0x1556ce(0x218)+_0x3f4633+':\x20'+_0x3f4633[_0x1556ce(0x214)],logger[_0x1556ce(0x232)](_0x11e858),await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),process[_0x1556ce(0x286)](0x1)):_0x354fe0[_0x1556ce(0x288)](_0x4c8df1['jquqf']);}}function printResponse(_0x5db037,_0x3cd99f){const _0xa51358=a17_0x3b23b4,_0x5bcf14={};_0x5bcf14[_0xa51358(0x1e2)]=_0xa51358(0x20f),_0x5bcf14[_0xa51358(0x1c7)]=function(_0x32d8e3,_0x5f1334){return _0x32d8e3===_0x5f1334;},_0x5bcf14[_0xa51358(0x27e)]='tRiuG',_0x5bcf14[_0xa51358(0x1e5)]=_0xa51358(0x26e);const _0x32ca75=_0x5bcf14;logger[_0xa51358(0x234)]('['+_0x5db037+_0xa51358(0x296)+_0x3cd99f[_0xa51358(0x263)]+_0xa51358(0x2a0)+_0x3cd99f[_0xa51358(0x226)]+_0xa51358(0x1c4)+_0x3cd99f['error']),_0x3cd99f[_0xa51358(0x232)]&&(_0x32ca75['ZQsHV'](_0x32ca75[_0xa51358(0x27e)],_0x32ca75['ozNBA'])?_0x34d312['push'](_0x32ca75[_0xa51358(0x1e2)]):logger[_0xa51358(0x232)]('error\x20stack\x20:\x20'+_0x3cd99f[_0xa51358(0x232)][_0xa51358(0x214)]));}function a17_0x4f2e(_0x240957,_0x26979c){const _0x5a37a9=a17_0x5a37();return a17_0x4f2e=function(_0x4f2e09,_0x4cb122){_0x4f2e09=_0x4f2e09-0x1b1;let _0x357962=_0x5a37a9[_0x4f2e09];return _0x357962;},a17_0x4f2e(_0x240957,_0x26979c);}async function generateReport(_0x4ed127,_0x17c68d){const _0x2b7e67=a17_0x3b23b4,_0x28aa2a={'PfLYK':function(_0x41c4bf,_0x2ed62e){return _0x41c4bf+_0x2ed62e;},'iydNY':'Success','mlsza':_0x2b7e67(0x25b),'buZya':function(_0x167aae,_0x45c867){return _0x167aae||_0x45c867;},'YypAh':_0x2b7e67(0x23f),'gylTh':_0x2b7e67(0x215),'iJqen':'Cluster\x20details\x0a-----------------------\x0a','FGyrY':function(_0x412d87,_0x46f33e){return _0x412d87!=_0x46f33e;},'IDULv':_0x2b7e67(0x1dd),'yXzPS':_0x2b7e67(0x236),'pygnY':function(_0x5a74e4){return _0x5a74e4();}};let _0x1ce5a3=_0x2b7e67(0x24e)+global_registry['cloudProvider']+_0x2b7e67(0x2ae);return _0x4ed127[_0x2b7e67(0x25f)]((_0x1401e7,_0xa7ed1)=>{const _0x5a4093=_0x2b7e67,{header:_0x33903d,response:_0xe0fb3c}=_0x1401e7,{status:_0x3c8449,data:_0x1b8642,error:_0x2dfe89}=_0xe0fb3c;_0x1ce5a3+=_0x33903d+'\x20#'+_0x28aa2a['PfLYK'](_0xa7ed1,0x1)+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d6)+(_0x3c8449?_0x28aa2a['iydNY']:_0x28aa2a[_0x5a4093(0x1ee)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x2a5)+_0x28aa2a[_0x5a4093(0x278)](_0x1b8642,_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x2dfe89&&(_0x1ce5a3+=_0x28aa2a[_0x5a4093(0x2b1)],_0x1ce5a3+=_0x5a4093(0x27c)+(_0x2dfe89[_0x5a4093(0x24a)]||_0x28aa2a['YypAh'])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1fc)+(_0x2dfe89[_0x5a4093(0x28e)]||_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d3)+(_0x2dfe89[_0x5a4093(0x214)]||_0x28aa2a['YypAh'])+'\x0a'),_0x1ce5a3+='\x0a\x0a';}),_0x1ce5a3+=_0x28aa2a[_0x2b7e67(0x206)],_0x28aa2a[_0x2b7e67(0x251)](_0x17c68d,null)?_0x1ce5a3+='Cluster\x20'+global_registry[_0x2b7e67(0x21f)]+'\x20'+(_0x17c68d?_0x28aa2a[_0x2b7e67(0x249)]:_0x28aa2a[_0x2b7e67(0x211)])+'\x0a\x0a':_0x1ce5a3+=_0x2b7e67(0x21b)+global_registry[_0x2b7e67(0x21f)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x1ce5a3+=_0x28aa2a['pygnY'](getSystemMetaData),_0x1ce5a3;};exports[a17_0x3b23b4(0x1f4)]=async function(_0x50bbec){const _0x38e0d8=a17_0x3b23b4,_0x405bcc={'LXdpJ':function(_0x3e8de4){return _0x3e8de4();},'pzDof':function(_0x2c999c){return _0x2c999c();},'VEVXT':_0x38e0d8(0x1fb),'nrbaf':function(_0x16c0ce,_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270){return _0x16c0ce(_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270);},'gLFKd':'pre-check-grid-called','jVxfZ':_0x38e0d8(0x1bd),'rTxav':_0x38e0d8(0x232),'npHta':function(_0x5024d9,_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85){return _0x5024d9(_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85);},'gkGEn':_0x38e0d8(0x257),'ySQOW':'<PasswordPlaceholder>','MxsFN':function(_0x3ec305,_0xdc097f,_0x19401c){return _0x3ec305(_0xdc097f,_0x19401c);},'vESCO':function(_0x18845a,_0x2d904b,_0x3ea541){return _0x18845a(_0x2d904b,_0x3ea541);},'hBxlo':function(_0x4e40c2,_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b){return _0x4e40c2(_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b);},'cedbw':'dummy-grid','wwSvv':function(_0x3586c5,_0x4cebdf,_0x20661b){return _0x3586c5(_0x4cebdf,_0x20661b);},'BaNOs':_0x38e0d8(0x224),'LivPY':_0x38e0d8(0x219),'xCQor':function(_0x20c007,_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818){return _0x20c007(_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818);},'Opfrh':_0x38e0d8(0x280),'pSWLG':function(_0x557d00){return _0x557d00();},'SQGlS':function(_0x314b21,_0xdd5775,_0x14b665){return _0x314b21(_0xdd5775,_0x14b665);},'ikvdt':'isTrialGridAccessible','ETySx':function(_0x2ce930,_0x4a2bce){return _0x2ce930(_0x4a2bce);},'QDBdu':_0x38e0d8(0x1cf),'IowOS':function(_0x3a0f28,_0x455a10,_0x5f31cd){return _0x3a0f28(_0x455a10,_0x5f31cd);},'zMUOb':_0x38e0d8(0x23a),'JrMDz':'Tool\x20Installed','DrKNg':_0x38e0d8(0x258),'yLXBm':_0x38e0d8(0x256),'vlnPk':_0x38e0d8(0x205),'XeNKN':function(_0x3eb2ea,_0x244372,_0x3287df){return _0x3eb2ea(_0x244372,_0x3287df);},'AefdU':function(_0x171867,_0x485ab4){return _0x171867+_0x485ab4;},'MgAGI':_0x38e0d8(0x20b),'IdJYj':function(_0x2f905f,_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12){return _0x2f905f(_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12);},'gXJaK':_0x38e0d8(0x1db)};let _0x118434,_0x396019;try{global_registry['requestId']=_0x405bcc[_0x38e0d8(0x1d4)](uuidv4);!fs['existsSync'](_0x405bcc['pzDof'](getCredentialsPath))&&(_0x396019=_0x405bcc[_0x38e0d8(0x20c)],logger[_0x38e0d8(0x232)](_0x396019),await _0x405bcc[_0x38e0d8(0x292)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],_0x405bcc[_0x38e0d8(0x1c0)],_0x405bcc['rTxav']),process[_0x38e0d8(0x286)](0x1));_0x405bcc[_0x38e0d8(0x250)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes['INFO'],null,null,_0x50bbec);const _0x104fa6=JSON[_0x38e0d8(0x20e)](fs[_0x38e0d8(0x252)](_0x405bcc['LXdpJ'](getCredentialsPath)));global_registry[_0x38e0d8(0x2a2)]=_0x104fa6['Browserstack']['username'],global_registry['bstackAccesskey']=_0x104fa6[_0x38e0d8(0x28f)]['password'];const _0x560874=WS_ENDPOINT['replace'](_0x405bcc[_0x38e0d8(0x283)],_0x104fa6[_0x38e0d8(0x28f)]['username'])[_0x38e0d8(0x1ec)](_0x405bcc[_0x38e0d8(0x1fd)],_0x104fa6[_0x38e0d8(0x28f)][_0x38e0d8(0x208)]),_0x4cafc9={};_0x4cafc9[_0x38e0d8(0x24d)]=ws,_0x4cafc9[_0x38e0d8(0x298)]=0x36ee80,_0x118434=new ReconnectingWebSocket(_0x560874,[],_0x4cafc9),global_registry[_0x38e0d8(0x272)]=_0x405bcc[_0x38e0d8(0x281)](getAuthHeader,global_registry[_0x38e0d8(0x2a2)],global_registry[_0x38e0d8(0x1b9)]),await _0x405bcc['vESCO'](inputValidation,_0x50bbec,_0x118434),logger[_0x38e0d8(0x234)](_0x38e0d8(0x21d)+global_registry[_0x38e0d8(0x271)]+_0x38e0d8(0x243)+global_registry[_0x38e0d8(0x1b3)]);let _0x583331=await _0x405bcc[_0x38e0d8(0x29e)](getCloudProviderObjectWithOutInit,global_registry[_0x38e0d8(0x271)],global_registry[_0x38e0d8(0x21f)],_0x405bcc[_0x38e0d8(0x241)],_0x118434,webSocketUtils,_0x50bbec);const _0x3b5349=await _0x583331[_0x38e0d8(0x1f8)]();_0x405bcc['wwSvv'](printResponse,_0x405bcc[_0x38e0d8(0x217)],_0x3b5349),_0x583331=await _0x583331[_0x38e0d8(0x1c1)]();let _0x70b294=![];try{_0x70b294=await _0x583331[_0x38e0d8(0x22e)]();}catch(_0x36116c){const _0x855fe7=_0x405bcc[_0x38e0d8(0x233)][_0x38e0d8(0x1ed)]('|');let _0x506d09=0x0;while(!![]){switch(_0x855fe7[_0x506d09++]){case'0':await _0x405bcc[_0x38e0d8(0x29a)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],'cluster-check-failed-'+global_registry[_0x38e0d8(0x271)],_0x405bcc['rTxav']);continue;case'1':_0x396019+='\x0a'+JSON[_0x38e0d8(0x26c)](_0x36116c[_0x38e0d8(0x214)]);continue;case'2':_0x396019=_0x38e0d8(0x1be)+global_registry[_0x38e0d8(0x21f)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x38e0d8(0x1b3)]+_0x38e0d8(0x267)+_0x36116c;continue;case'3':logger[_0x38e0d8(0x232)](_0x396019);continue;case'4':_0x70b294=null;continue;}break;}}_0x70b294&&logger['info'](_0x38e0d8(0x20d)+global_registry['clusterName']+_0x38e0d8(0x1b7));const _0x117912=await _0x583331[_0x38e0d8(0x227)]();_0x405bcc['MxsFN'](printResponse,_0x405bcc[_0x38e0d8(0x2a8)],_0x117912);const _0x3d824d=await _0x405bcc[_0x38e0d8(0x2b2)](curlRequest);_0x405bcc[_0x38e0d8(0x2ad)](printResponse,_0x405bcc['ikvdt'],_0x3d824d);const _0x24ad1c=await _0x405bcc['ETySx'](isTlsSupported,_0x405bcc[_0x38e0d8(0x1d2)]);_0x405bcc[_0x38e0d8(0x1ca)](printResponse,_0x405bcc['zMUOb'],_0x24ad1c);const _0x5e179a={};_0x5e179a[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x1f2)],_0x5e179a[_0x38e0d8(0x1b6)]=_0x3b5349;const _0x23dc9d={};_0x23dc9d[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x289)],_0x23dc9d[_0x38e0d8(0x1b6)]=_0x117912;const _0xd71ec4={};_0xd71ec4[_0x38e0d8(0x29b)]=_0x405bcc['yLXBm'],_0xd71ec4['response']=_0x3d824d;const _0x1b9cc3={};_0x1b9cc3['header']=_0x405bcc[_0x38e0d8(0x1cd)],_0x1b9cc3['response']=_0x24ad1c;const _0x23d763=[_0x5e179a,_0x23dc9d,_0xd71ec4,_0x1b9cc3],_0x12d6db=await _0x405bcc[_0x38e0d8(0x29d)](generateReport,_0x23d763,_0x70b294),_0x119caa=new Date(),_0x1b9c9a=_0x119caa[_0x38e0d8(0x290)]()+'_'+_0x405bcc['AefdU'](_0x119caa[_0x38e0d8(0x202)](),0x1)+'_'+_0x119caa[_0x38e0d8(0x200)]()+'_'+_0x119caa[_0x38e0d8(0x28d)]()+'_'+_0x119caa[_0x38e0d8(0x264)](),_0x1244bd=_0x38e0d8(0x239)+_0x1b9c9a+_0x38e0d8(0x28a);fs['writeFileSync'](_0x1244bd,_0x12d6db,_0x405bcc['MgAGI']),logger[_0x38e0d8(0x234)](_0x38e0d8(0x1b4)+_0x1244bd),process['exit'](0x0);}catch(_0x3c6ae8){let _0x374078=_0x38e0d8(0x228)+_0x3c6ae8+'\x20';logger[_0x38e0d8(0x232)](_0x374078),_0x374078+='\x0a'+JSON['stringify'](_0x3c6ae8[_0x38e0d8(0x214)]),logger[_0x38e0d8(0x2b0)](_0x38e0d8(0x270)+_0x3c6ae8[_0x38e0d8(0x214)]);if(_0x118434){const _0xa60cf1={};_0xa60cf1['type']=WS_EVENTS[_0x38e0d8(0x26f)],_0xa60cf1[_0x38e0d8(0x24a)]=_0x374078,webSocketUtils[_0x38e0d8(0x229)](_0x118434,_0xa60cf1,_0x405bcc[_0x38e0d8(0x230)],!![]);}await webSocketUtils[_0x38e0d8(0x1d0)](0x7d0);const _0x3224c7={};_0x3224c7[_0x38e0d8(0x232)]=_0x374078,await _0x405bcc[_0x38e0d8(0x1f1)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes[_0x38e0d8(0x1c6)],_0x405bcc['gXJaK'],_0x3224c7,_0x50bbec),process[_0x38e0d8(0x286)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x1b96f7=a18_0x1ff9;(function(_0x3b7fe3,_0x20732a){const _0x21b239=a18_0x1ff9,_0x2ad848=_0x3b7fe3();while(!![]){try{const _0x387a64=parseInt(_0x21b239(0x13a))/0x1+parseInt(_0x21b239(0x139))/0x2*(-parseInt(_0x21b239(0x13e))/0x3)+parseInt(_0x21b239(0x130))/0x4*(-parseInt(_0x21b239(0x13d))/0x5)+-parseInt(_0x21b239(0x12b))/0x6*(-parseInt(_0x21b239(0x12e))/0x7)+parseInt(_0x21b239(0x13c))/0x8+parseInt(_0x21b239(0x128))/0x9+-parseInt(_0x21b239(0x137))/0xa;if(_0x387a64===_0x20732a)break;else _0x2ad848['push'](_0x2ad848['shift']());}catch(_0x3ff225){_0x2ad848['push'](_0x2ad848['shift']());}}}(a18_0x5754,0xa6826));function a18_0x5754(){const _0x33e628=['desc','start','strict','commandDir','builder','21878720VTSczY','handler','289042maErMQ','1155287lAdVjD','Uewjp','4450144qStgwI','294990cXqeaI','9eOkfmR','usage','bFUEG','recommendCommands','4083534TYcwPj','demandCommand','../config/constants','292260PhjPHp','start_commands','command','189HtwzOF','Start\x20an\x20existing\x20Automation\x20grid.','12CtPJqc','help'];a18_0x5754=function(){return _0x33e628;};return a18_0x5754();}function a18_0x1ff9(_0x5d722d,_0x208459){const _0x575481=a18_0x5754();return a18_0x1ff9=function(_0x1ff92c,_0x4ea4fe){_0x1ff92c=_0x1ff92c-0x126;let _0x55811f=_0x575481[_0x1ff92c];return _0x55811f;},a18_0x1ff9(_0x5d722d,_0x208459);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1b96f7(0x12a));exports[a18_0x1b96f7(0x12d)]=a18_0x1b96f7(0x133),exports[a18_0x1b96f7(0x132)]=a18_0x1b96f7(0x12f),exports[a18_0x1b96f7(0x136)]=function(_0x2c39ea){const _0x43ea0f=a18_0x1b96f7,_0x430db5={};_0x430db5[_0x43ea0f(0x126)]=_0x43ea0f(0x12c),_0x430db5['Uewjp']=_0x43ea0f(0x131);const _0x2211d7=_0x430db5;return _0x2c39ea[_0x43ea0f(0x13f)](HELP_HEADER_MESSAGE[_0x43ea0f(0x133)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x43ea0f(0x135)](_0x2211d7['bFUEG'])[_0x43ea0f(0x129)]()[_0x43ea0f(0x127)]()[_0x43ea0f(0x134)]()['help'](_0x2211d7[_0x43ea0f(0x13b)]);},exports[a18_0x1b96f7(0x138)]=function(_0x35f552){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x3c67a7=a19_0x4dcb;(function(_0xe12203,_0x1d03cb){const _0x13eb35=a19_0x4dcb,_0x545e37=_0xe12203();while(!![]){try{const _0x281fbf=-parseInt(_0x13eb35(0xb7))/0x1*(-parseInt(_0x13eb35(0xd7))/0x2)+-parseInt(_0x13eb35(0xbb))/0x3+parseInt(_0x13eb35(0xe6))/0x4+-parseInt(_0x13eb35(0xa6))/0x5+-parseInt(_0x13eb35(0xb1))/0x6*(-parseInt(_0x13eb35(0xd4))/0x7)+-parseInt(_0x13eb35(0xcb))/0x8+-parseInt(_0x13eb35(0xcf))/0x9*(-parseInt(_0x13eb35(0xc6))/0xa);if(_0x281fbf===_0x1d03cb)break;else _0x545e37['push'](_0x545e37['shift']());}catch(_0x57fa27){_0x545e37['push'](_0x545e37['shift']());}}}(a19_0x46ee,0xc6d5a));function a19_0x46ee(){const _0xc2cef6=['49TdGAZR','info','bstackUsername','2vEfVrJ','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','replace','hjJel','ERROR','options','statusCode','connectionTimeout','gridId','addListeners','command','JqHHI','bstackAccesskey','unauthorised','3505876gbITrK','<PasswordPlaceholder>','grid-id','body','OxbcR','parse','type','name','menyG','uuMlP','user','password','../../utils/gridComponents','MAliK','argv','YQmTW','UaNow','Gutut','Start\x20an\x20existing\x20Automation\x20grid.','boolean','tdXCS','../../cloudproviders/utils','error','7111910oiHqra','description','../../utils/utilityMethods','clusterName','builder','INFO','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','RpgXp','OMOmv','server-error','462846lBtZEJ','reconnecting-websocket','../../utils/webSocketUtils','RDLqS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','280794xQrlJa','zflWd','desc','region','2080134bQJHWC','debug','jhQSL','readFileSync','usage','clusterRegion','Grid\x20started','Starting\x20grid\x20','ZuZSd','Skip\x20insecure\x20cert\x20verification.','Browserstack','2990VEgoHk','start-grid-called','<UsernamePlaceholder>','stringify','IWakk','9313176ZIojzS','cloudProvider','EMTiy','exit','72153yyjgPy','username','start','../../utils/instrumentationUtils','TOSyT'];a19_0x46ee=function(){return _0xc2cef6;};return a19_0x46ee();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3c67a7(0xb2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x3c67a7(0xa8)),{scaleUpHubDeployment}=require(a19_0x3c67a7(0xf2)),{sendInstrumentationEvent}=require(a19_0x3c67a7(0xd2)),webSocketUtils=require(a19_0x3c67a7(0xb3)),{createK8sClient}=require(a19_0x3c67a7(0xd9)),{getCloudProviderObject}=require(a19_0x3c67a7(0xa4));function a19_0x4dcb(_0x44cf5f,_0x341ff7){const _0x46eeee=a19_0x46ee();return a19_0x4dcb=function(_0x4dcb57,_0x321c42){_0x4dcb57=_0x4dcb57-0x9f;let _0x5f0735=_0x46eeee[_0x4dcb57];return _0x5f0735;},a19_0x4dcb(_0x44cf5f,_0x341ff7);}exports[a19_0x3c67a7(0xe2)]='grid',exports[a19_0x3c67a7(0xb9)]=a19_0x3c67a7(0xa1),exports[a19_0x3c67a7(0xaa)]=function(_0xb34c27){const _0x5f27c1=a19_0x3c67a7,_0x565324={};_0x565324[_0x5f27c1(0xe3)]=_0x5f27c1(0xad),_0x565324[_0x5f27c1(0xae)]='string',_0x565324[_0x5f27c1(0xb8)]=_0x5f27c1(0xc4),_0x565324[_0x5f27c1(0xd3)]=_0x5f27c1(0xa2),_0x565324[_0x5f27c1(0xf5)]='help';const _0x57e5fd=_0x565324,_0x6abb3b={};_0x6abb3b[_0x5f27c1(0xa7)]=_0x57e5fd['JqHHI'],_0x6abb3b[_0x5f27c1(0xec)]=_0x57e5fd[_0x5f27c1(0xae)];const _0xa8859b={};_0xa8859b[_0x5f27c1(0xa7)]=_0x57e5fd[_0x5f27c1(0xb8)],_0xa8859b[_0x5f27c1(0xec)]=_0x57e5fd['TOSyT'],_0xa8859b['default']=![];const _0x4e80e1={};return _0x4e80e1[_0x5f27c1(0xe8)]=_0x6abb3b,_0x4e80e1['skip-tls-cert-verify']=_0xa8859b,_0xb34c27[_0x5f27c1(0xbf)](HELP_HEADER_MESSAGE[_0x5f27c1(0xd1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f27c1(0xdd)](_0x4e80e1)['help'](_0x57e5fd[_0x5f27c1(0xf5)])[_0x5f27c1(0xf4)];},exports['handler']=async function(_0x46a9dc){const _0x16ee09=a19_0x3c67a7,_0x2dc354={'IllXl':_0x16ee09(0xb6),'wtFyF':function(_0x26aa03){return _0x26aa03();},'igMvz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UaNow':function(_0x468a02,_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74){return _0x468a02(_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74);},'OxbcR':_0x16ee09(0xc7),'Gutut':'init-not-called','ilxNp':function(_0x168fae){return _0x168fae();},'RDLqS':_0x16ee09(0xc8),'MAliK':_0x16ee09(0xe7),'menyG':_0x16ee09(0xd8),'IWakk':function(_0x540f23,_0x2d36a7,_0x4bd64e,_0x1d536d){return _0x540f23(_0x2d36a7,_0x4bd64e,_0x1d536d);},'EMTiy':function(_0x4492c1,_0xf71466,_0x1721cc){return _0x4492c1(_0xf71466,_0x1721cc);},'tdXCS':function(_0x980aac,_0x3c94c5,_0x1cfc63){return _0x980aac(_0x3c94c5,_0x1cfc63);},'uuMlP':_0x16ee09(0xc1),'OMOmv':function(_0x4a318a,_0x31353e){return _0x4a318a===_0x31353e;},'ZrEtt':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TPBzs':function(_0xfe79a,_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5){return _0xfe79a(_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5);},'hjJel':_0x16ee09(0xe5),'ZuZSd':function(_0x2afa86,_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be){return _0x2afa86(_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be);},'RzlUR':'invalid-grid-id','jhQSL':_0x16ee09(0xb0)};let _0x3475c6;try{!_0x46a9dc['gridId']&&(logger[_0x16ee09(0xa5)](_0x2dc354['IllXl']),process['exit'](0x1));!fs['existsSync'](_0x2dc354['wtFyF'](getCredentialsPath))&&(logger[_0x16ee09(0xa5)](_0x2dc354['igMvz']),await _0x2dc354[_0x16ee09(0x9f)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xa0)],null,_0x46a9dc),process['exit'](0x1));logger[_0x16ee09(0xd5)](_0x16ee09(0xc2)+_0x46a9dc[_0x16ee09(0xe0)]),await _0x2dc354['UaNow'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354['OxbcR'],messageTypes[_0x16ee09(0xab)],null,null,_0x46a9dc);const _0x3284db=JSON[_0x16ee09(0xeb)](fs[_0x16ee09(0xbe)](_0x2dc354['ilxNp'](getCredentialsPath)));global_registry[_0x16ee09(0xd6)]=_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],global_registry[_0x16ee09(0xe4)]=_0x3284db[_0x16ee09(0xc5)]['password'];const _0xbc260e=WS_ENDPOINT[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xb4)],_0x3284db['Browserstack'][_0x16ee09(0xd0)])[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xf3)],_0x3284db[_0x16ee09(0xc5)]['password']),_0x20c44c={};_0x20c44c['WebSocket']=ws,_0x20c44c[_0x16ee09(0xdf)]=0x36ee80,_0x3475c6=new ReconnectingWebSocket(_0xbc260e,[],_0x20c44c),logger[_0x16ee09(0xbc)](_0x2dc354[_0x16ee09(0xee)]),webSocketUtils[_0x16ee09(0xe1)](_0x3475c6,_0x46a9dc[_0x16ee09(0xf0)],_0x46a9dc[_0x16ee09(0xf1)]);const [_0x605c03,_0x2a1649]=await _0x2dc354[_0x16ee09(0xca)](getGridDetails,_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xf1)],_0x46a9dc[_0x16ee09(0xe0)]);if(_0x2a1649){const _0x390710=_0x2a1649[_0x16ee09(0xd5)];global_registry[_0x16ee09(0xcc)]=_0x390710[_0x16ee09(0xcc)],global_registry[_0x16ee09(0xc0)]=_0x390710[_0x16ee09(0xba)],global_registry['clusterName']=_0x390710[_0x16ee09(0xa9)];const _0x46c041=await _0x2dc354[_0x16ee09(0x9f)](getCloudProviderObject,_0x390710[_0x16ee09(0xcc)],_0x390710['clusterName'],_0x390710[_0x16ee09(0xed)],_0x3475c6,webSocketUtils,_0x46a9dc),[_0x2f7bf7,_0x14ab66,_0x5f1769,_0x6988e6,_0x44d091,_0x5729d6]=await _0x2dc354[_0x16ee09(0xcd)](createK8sClient,_0x46c041,_0x46a9dc[_0x16ee09(0xac)]);await _0x2dc354[_0x16ee09(0xa3)](scaleUpHubDeployment,_0x14ab66,_0x390710[_0x16ee09(0xed)]),logger[_0x16ee09(0xd5)](_0x2dc354[_0x16ee09(0xef)]),process[_0x16ee09(0xce)](0x0);}_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x191)&&(logger['error'](_0x2dc354['ZrEtt']),await _0x2dc354['TPBzs'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xdb)],null,_0x46a9dc),process['exit'](0x1)),_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x190)&&(logger[_0x16ee09(0xa5)](JSON['parse'](_0x605c03[_0x16ee09(0xe9)])['message']),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes['ERROR'],_0x2dc354['RzlUR'],null,_0x46a9dc),process[_0x16ee09(0xce)](0x1)),logger[_0x16ee09(0xa5)](_0x16ee09(0xb5)+JSON[_0x16ee09(0xc9)](_0x605c03)),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xbd)],_0x605c03,_0x46a9dc),process['exit'](0x1);}catch(_0x425391){const _0x1b7b6b='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x425391+'\x20\x0a'+JSON[_0x16ee09(0xc9)](_0x425391['stack'])+'\x20';logger['error'](_0x1b7b6b),process[_0x16ee09(0xce)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a20_0x507def=a20_0x4a4e;function a20_0x4a4e(_0x11cf95,_0x5a3591){const _0x191050=a20_0x1910();return a20_0x4a4e=function(_0x4a4ea0,_0x39a6ad){_0x4a4ea0=_0x4a4ea0-0x7e;let _0x5966e4=_0x191050[_0x4a4ea0];return _0x5966e4;},a20_0x4a4e(_0x11cf95,_0x5a3591);}function a20_0x1910(){const _0x4ba88b=['handler','XZqqF','usage','fTVXc','help','228102LwVZdV','91435yCSuNX','builder','12511490TpDoRb','command','787874oCMuYc','66dRCoqS','commandDir','138987ESascC','1328810rKteio','1pBesLF','stop','stop_commands','recommendCommands','../config/constants','desc','Stop\x20a\x20running\x20Automation\x20grid.','192ikMukX','1052096GgNeik'];a20_0x1910=function(){return _0x4ba88b;};return a20_0x1910();}(function(_0x5e12d8,_0x50c767){const _0x29fd3c=a20_0x4a4e,_0x44c63e=_0x5e12d8();while(!![]){try{const _0x1cf60e=parseInt(_0x29fd3c(0x8f))/0x1*(-parseInt(_0x29fd3c(0x8a))/0x2)+-parseInt(_0x29fd3c(0x85))/0x3+parseInt(_0x29fd3c(0x7f))/0x4+-parseInt(_0x29fd3c(0x86))/0x5*(parseInt(_0x29fd3c(0x8b))/0x6)+-parseInt(_0x29fd3c(0x8e))/0x7+parseInt(_0x29fd3c(0x7e))/0x8*(-parseInt(_0x29fd3c(0x8d))/0x9)+parseInt(_0x29fd3c(0x88))/0xa;if(_0x1cf60e===_0x50c767)break;else _0x44c63e['push'](_0x44c63e['shift']());}catch(_0x4ac5ae){_0x44c63e['push'](_0x44c63e['shift']());}}}(a20_0x1910,0x44fd7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x507def(0x93));exports[a20_0x507def(0x89)]='stop',exports[a20_0x507def(0x94)]=a20_0x507def(0x95),exports[a20_0x507def(0x87)]=function(_0x27ca59){const _0x39257a=a20_0x507def,_0x6e4e7d={};_0x6e4e7d['XZqqF']=_0x39257a(0x91),_0x6e4e7d[_0x39257a(0x83)]=_0x39257a(0x84);const _0x2c36a8=_0x6e4e7d;return _0x27ca59[_0x39257a(0x82)](HELP_HEADER_MESSAGE[_0x39257a(0x90)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x39257a(0x8c)](_0x2c36a8[_0x39257a(0x81)])['demandCommand']()[_0x39257a(0x92)]()['strict']()[_0x39257a(0x84)](_0x2c36a8[_0x39257a(0x83)]);},exports[a20_0x507def(0x80)]=function(_0x40ce8d){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x40d87d=a21_0x1007;function a21_0x398e(){const _0x596252=['<PasswordPlaceholder>','ERROR','../../config/logger','3647124bxbblA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','epilogue','invalid-grid-id','nXQLv','../../utils/gridComponents','grid-id','686885xbbRXG','skipTlsCertVerify','../../utils/instrumentationUtils','LwHOp','YyLDh','connectionTimeout','WebSocket','stack','command','ncGIW','../../config/constants','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','init-not-called','Adding\x20Websocket\x20listeners','string','AvxnF','JxhiN','type','36213OzIDXU','help','clusterName','gridId','region','1103893nKpIIm','unauthorised','password','argv','QkeJv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RSFFo','cloudProvider','name','user','error','JSkcV','scNtO','XpOwE','existsSync','info','12lbBhYj','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','reconnecting-websocket','1287304gBkYsH','<UsernamePlaceholder>','description','readFileSync','MEfaD','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','skip-tls-cert-verify','stop','username','body','txEhl','../../utils/createk8sClient','AMoOI','hwbLH','bstackUsername','21337376oVzXhU','usage','kgeBS','desc','../../utils/webSocketUtils','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','myUlG','exit','default','Browserstack','3620199MYxJWy','handler','DvdPQ','message','bstackAccesskey','MWcCU'];a21_0x398e=function(){return _0x596252;};return a21_0x398e();}(function(_0x2c738a,_0x2903df){const _0x59dff5=a21_0x1007,_0x401509=_0x2c738a();while(!![]){try{const _0x379683=-parseInt(_0x59dff5(0x90))/0x1+parseInt(_0x59dff5(0xa9))/0x2+-parseInt(_0x59dff5(0xc3))/0x3+-parseInt(_0x59dff5(0x76))/0x4+parseInt(_0x59dff5(0x7d))/0x5+parseInt(_0x59dff5(0xa5))/0x6*(-parseInt(_0x59dff5(0x95))/0x7)+parseInt(_0x59dff5(0xb8))/0x8;if(_0x379683===_0x2903df)break;else _0x401509['push'](_0x401509['shift']());}catch(_0x305195){_0x401509['push'](_0x401509['shift']());}}}(a21_0x398e,0xeec9c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x40d87d(0xa8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x40d87d(0x87)),{logger}=require(a21_0x40d87d(0x75)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x40d87d(0x7b)),{sendInstrumentationEvent}=require(a21_0x40d87d(0x7f)),webSocketUtils=require(a21_0x40d87d(0xbc)),{createK8sClient}=require(a21_0x40d87d(0xb4)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x1007(_0x10a980,_0x2a6aa0){const _0x398e19=a21_0x398e();return a21_0x1007=function(_0x100775,_0x5eb099){_0x100775=_0x100775-0x75;let _0x403444=_0x398e19[_0x100775];return _0x403444;},a21_0x1007(_0x10a980,_0x2a6aa0);}exports[a21_0x40d87d(0x85)]='grid',exports[a21_0x40d87d(0xbb)]=a21_0x40d87d(0xa6),exports['builder']=function(_0x1523f8){const _0x404826=a21_0x40d87d,_0x1b98ba={};_0x1b98ba[_0x404826(0x8e)]=_0x404826(0xae),_0x1b98ba[_0x404826(0xa2)]=_0x404826(0x8c),_0x1b98ba[_0x404826(0x9b)]='Skip\x20insecure\x20cert\x20verification.',_0x1b98ba[_0x404826(0xb5)]=_0x404826(0x88),_0x1b98ba['tudoa']=_0x404826(0x91);const _0x3220d0=_0x1b98ba,_0x4cddaa={};_0x4cddaa[_0x404826(0xab)]=_0x3220d0['JxhiN'],_0x4cddaa[_0x404826(0x8f)]=_0x3220d0['XpOwE'];const _0x3aa181={};_0x3aa181['description']=_0x3220d0[_0x404826(0x9b)],_0x3aa181[_0x404826(0x8f)]=_0x3220d0[_0x404826(0xb5)],_0x3aa181[_0x404826(0xc1)]=![];const _0x535797={};return _0x535797[_0x404826(0x7c)]=_0x4cddaa,_0x535797[_0x404826(0xaf)]=_0x3aa181,_0x1523f8[_0x404826(0xb9)](HELP_HEADER_MESSAGE[_0x404826(0xb0)])[_0x404826(0x78)](HELP_FOOTER_MESSAGE)[_0x404826(0xbd)](_0x535797)['help'](_0x3220d0['tudoa'])[_0x404826(0x98)];},exports[a21_0x40d87d(0xc4)]=async function(_0x4bcdab){const _0x1398ff=a21_0x40d87d,_0x1eb35d={'YyLDh':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','kDheu':function(_0xf01e23){return _0xf01e23();},'TAwPk':_0x1398ff(0xbe),'kgeBS':function(_0x2b623b,_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989){return _0x2b623b(_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989);},'nXQLv':'stop-grid-called','JSkcV':_0x1398ff(0x8a),'hwbLH':function(_0x5e5a0b,_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4){return _0x5e5a0b(_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4);},'cVXGp':function(_0x26ceb9){return _0x26ceb9();},'uwmke':_0x1398ff(0xaa),'scNtO':_0x1398ff(0xc9),'DvdPQ':_0x1398ff(0x8b),'hZEcA':function(_0x3d9dff,_0x39e829,_0x5c6729,_0x288fe1){return _0x3d9dff(_0x39e829,_0x5c6729,_0x288fe1);},'AvxnF':function(_0x17bca8,_0x3fb7d1,_0x2e244f){return _0x17bca8(_0x3fb7d1,_0x2e244f);},'myUlG':function(_0xf17430,_0x371be0,_0x13d67b){return _0xf17430(_0x371be0,_0x13d67b);},'MWcCU':'Grid\x20stoppped.','LwHOp':function(_0x1e90ca,_0x536248){return _0x1e90ca===_0x536248;},'MEfaD':_0x1398ff(0x89),'txEhl':_0x1398ff(0x96),'liuPb':function(_0x2586e8,_0x22bda9){return _0x2586e8===_0x22bda9;},'QkeJv':_0x1398ff(0x79),'ncGIW':'server-error'};let _0x5a0570;try{!_0x4bcdab[_0x1398ff(0x93)]&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0x81)]),process[_0x1398ff(0xc0)](0x1));!fs[_0x1398ff(0xa3)](_0x1eb35d['kDheu'](getCredentialsPath))&&(logger[_0x1398ff(0x9f)](_0x1eb35d['TAwPk']),await _0x1eb35d['kgeBS'](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xa0)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1));logger[_0x1398ff(0xa4)]('Stopping\x20grid\x20'+_0x4bcdab[_0x1398ff(0x93)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes['INFO'],null,null,_0x4bcdab);const _0x39cdc7=JSON['parse'](fs[_0x1398ff(0xac)](_0x1eb35d['cVXGp'](getCredentialsPath)));global_registry[_0x1398ff(0xb7)]=_0x39cdc7[_0x1398ff(0xc2)]['username'],global_registry[_0x1398ff(0xc7)]=_0x39cdc7['Browserstack'][_0x1398ff(0x97)];const _0xec67e4=WS_ENDPOINT['replace'](_0x1eb35d['uwmke'],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0xb1)])['replace'](_0x1eb35d[_0x1398ff(0xa1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)]),_0x1ca27e={};_0x1ca27e[_0x1398ff(0x83)]=ws,_0x1ca27e[_0x1398ff(0x82)]=0x36ee80,_0x5a0570=new ReconnectingWebSocket(_0xec67e4,[],_0x1ca27e),logger['debug'](_0x1eb35d[_0x1398ff(0xc5)]),webSocketUtils['addListeners'](_0x5a0570,_0x4bcdab[_0x1398ff(0x9e)],_0x4bcdab['password']);const [_0x1a0fec,_0x406906]=await _0x1eb35d['hZEcA'](getGridDetails,_0x39cdc7['Browserstack'][_0x1398ff(0xb1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)],_0x4bcdab[_0x1398ff(0x93)]);if(_0x406906){const _0xdb9db=_0x406906['info'];global_registry[_0x1398ff(0x9c)]=_0xdb9db[_0x1398ff(0x9c)],global_registry['clusterRegion']=_0xdb9db[_0x1398ff(0x94)],global_registry[_0x1398ff(0x92)]=_0xdb9db[_0x1398ff(0x92)];const _0x5eb537=await _0x1eb35d['kgeBS'](getCloudProviderObject,_0xdb9db['cloudProvider'],_0xdb9db['clusterName'],_0xdb9db[_0x1398ff(0x9d)],_0x5a0570,webSocketUtils,_0x4bcdab),[_0x2c4c11,_0x2a3c07,_0x2a07ed,_0xaa2aa7,_0x1eb8c6,_0x16f405]=await _0x1eb35d[_0x1398ff(0x8d)](createK8sClient,_0x5eb537,_0x4bcdab[_0x1398ff(0x7e)]);await _0x1eb35d[_0x1398ff(0xbf)](scaleDownHubDeployment,_0x2a3c07,_0xdb9db[_0x1398ff(0x9d)]),logger['info'](_0x1eb35d[_0x1398ff(0xc8)]),process[_0x1398ff(0xc0)](0x0);}_0x1eb35d[_0x1398ff(0x80)](_0x1a0fec[_0x1398ff(0xa7)],0x191)&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0xad)]),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xb3)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),_0x1eb35d['liuPb'](_0x1a0fec[_0x1398ff(0xa7)],0x190)&&(logger[_0x1398ff(0x9f)](JSON['parse'](_0x1a0fec[_0x1398ff(0xb2)])[_0x1398ff(0xc6)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x99)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),logger['error'](_0x1398ff(0x9a)+JSON['stringify'](_0x1a0fec)),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x86)],_0x1a0fec,_0x4bcdab),process[_0x1398ff(0xc0)](0x1);}catch(_0x1f9023){const _0x5c33a5=_0x1398ff(0x77)+_0x1f9023+'\x20\x0a'+JSON['stringify'](_0x1f9023[_0x1398ff(0x84)])+'\x20';logger[_0x1398ff(0x9f)](_0x5c33a5),process[_0x1398ff(0xc0)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x50086a=a22_0x3b8f;(function(_0x4d819b,_0x490808){const _0x37e1ec=a22_0x3b8f,_0x1f8ed2=_0x4d819b();while(!![]){try{const _0x4edf8f=parseInt(_0x37e1ec(0xd3))/0x1*(parseInt(_0x37e1ec(0xb1))/0x2)+parseInt(_0x37e1ec(0xe0))/0x3*(parseInt(_0x37e1ec(0xdb))/0x4)+-parseInt(_0x37e1ec(0xd5))/0x5+parseInt(_0x37e1ec(0xcf))/0x6*(parseInt(_0x37e1ec(0xe1))/0x7)+parseInt(_0x37e1ec(0xb0))/0x8+parseInt(_0x37e1ec(0xb2))/0x9*(-parseInt(_0x37e1ec(0x9d))/0xa)+-parseInt(_0x37e1ec(0xf8))/0xb;if(_0x4edf8f===_0x490808)break;else _0x1f8ed2['push'](_0x1f8ed2['shift']());}catch(_0x4b753e){_0x1f8ed2['push'](_0x1f8ed2['shift']());}}}(a22_0x3266,0x7025d),require(a22_0x50086a(0xbe))[a22_0x50086a(0xe4)]());let gridURL=a22_0x50086a(0xca),bsApiUrl=a22_0x50086a(0xf5),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x50086a(0xa0)][a22_0x50086a(0xc0)]||a22_0x50086a(0xb6))[a22_0x50086a(0x98)]();if(_env===a22_0x50086a(0x9b)||_env==='stag')gridURL=a22_0x50086a(0xaa),bsApiUrl=a22_0x50086a(0x95),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x50086a(0xe8))&&(gridURL=a22_0x50086a(0x9e),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x50086a(0x92));exports[a22_0x50086a(0xf6)]=process[a22_0x50086a(0xa0)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x50086a(0xc7)]=process[a22_0x50086a(0xa0)][a22_0x50086a(0xc7)]||bsApiUrl,exports[a22_0x50086a(0xa3)]=process[a22_0x50086a(0xa0)]['AG_API_URL']||agApiUrl,exports[a22_0x50086a(0xea)]=a22_0x50086a(0xeb)+this['AG_API_URL']+a22_0x50086a(0xa1),exports[a22_0x50086a(0x8f)]=a22_0x50086a(0xf0),exports[a22_0x50086a(0x8a)]=a22_0x50086a(0xd4),exports[a22_0x50086a(0xdd)]=a22_0x50086a(0xe6),exports[a22_0x50086a(0xc3)]=a22_0x50086a(0x89),exports[a22_0x50086a(0xba)]=a22_0x50086a(0xa4),exports[a22_0x50086a(0xed)]=a22_0x50086a(0xb4),exports[a22_0x50086a(0xfb)]=a22_0x50086a(0xee),exports[a22_0x50086a(0xec)]=a22_0x50086a(0xd9),exports['AZURE']=a22_0x50086a(0xcd),exports[a22_0x50086a(0xae)]=a22_0x50086a(0xc8),exports[a22_0x50086a(0xda)]=[this['AWS'],this[a22_0x50086a(0xbb)],this[a22_0x50086a(0xae)]];function a22_0x3266(){const _0x301655=['configure','1659QbMXby','14idqhvp','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','config','root','high-scale-grid','REGION','pre-prod','Value','WS_ENDPOINT','wss://','TURBOSCALE_DEPLOYMENT','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER-HUB-HA','CLOUD_PROVIDER','credentials','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','list','SUPPORTED_CLOUD_PROVIDERS','RESOURCES','api.browserstack.com','DASHBOARD_ENDPOINT','unknown','8208574gMaxbi','browserstack:service','TURBOSCALE_CUSTOM_TAGS','CLUSTER_HUB_HA_STACK_NAME','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','aws','IAM_USER_NAME','warning','LOG','gridUrl','UNKNOWN','CP_CONFIG_FILE','cliRunStarted','grid-profile','grid-api-preprod.bsstag.com','stop','split','api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','toLowerCase','CLI_ARGS_REGEX','gridProfile','staging','info','3860arUEjy','grid-preprod.bsstag.com','resourceInfo','env','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','AG_API_URL','BSTACK-ATS-CLUSTER','DEFAULT_CLUSTER_DETAILS','INFO','us-east-1','TRIAL_GRID_URL','global_registry','grid-devhst.bsstag.com','BrowserStack','log','CLI_RUN_FINISHED','GCP','Key','5194672aRTVOD','2SLqSEX','5121zbyFSR','CLUSTER','BSTACK-ATS-CLUSTER-AUTOSCALER','HELP_FOOTER_MESSAGE','prod','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','create','CLUSTER_DEP_STACK_NAME','AZURE','SUCCESS','high-scale-grid-cluster','dotenv','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BROWSERSTACK_ENV','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AWS','CLI_RUN_STARTED','cliRunFinished','[REDACTED]','BS_API_URL','gcp','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid.browserstack.com','start','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','842034fPoGko','ERROR','WS_EVENTS','LINK_MESSAGE','619008DfmPCZ','BrowserStackIAMUser','3641120MtPRsz','messageTypes','WARNING','grid','browserstack-turboscale-grid','ALL_SUPPORTED_CLOUD_PROVIDERS','4372KcBpix','GRID_URL','DEFAULT_GRID_NAME','browserstack:managedBy'];a22_0x3266=function(){return _0x301655;};return a22_0x3266();}const a22_0x3da3e4={};a22_0x3da3e4[a22_0x50086a(0xaf)]=a22_0x50086a(0xde),a22_0x3da3e4[a22_0x50086a(0xe9)]=a22_0x50086a(0xab);const a22_0xc82ce8={};a22_0xc82ce8['Key']=a22_0x50086a(0xf9),a22_0xc82ce8[a22_0x50086a(0xe9)]=a22_0x50086a(0xe2);const common_hst_tags_list=[a22_0x3da3e4,a22_0xc82ce8];if(process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]){const parsedTags=process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]['split'](',');parsedTags['forEach'](_0x3b7f1c=>{const _0x4ae65b=a22_0x50086a,_0x1c149f=_0x3b7f1c[_0x4ae65b(0x94)](':'),_0x50de5a={};_0x50de5a[_0x4ae65b(0xaf)]=_0x1c149f[0x0],_0x50de5a[_0x4ae65b(0xe9)]=_0x1c149f[0x1],common_hst_tags_list['push'](_0x50de5a);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2393fd={};a22_0x2393fd['browserstack:managedBy']=a22_0x50086a(0xab),a22_0x2393fd[a22_0x50086a(0xf9)]=a22_0x50086a(0xe2),exports['HST_CLUSTER_TAGS']=a22_0x2393fd,exports[a22_0x50086a(0xf3)]=[this[a22_0x50086a(0xc3)]];const a22_0x26d524={};a22_0x26d524[a22_0x50086a(0x8c)]=a22_0x50086a(0xac),a22_0x26d524[a22_0x50086a(0xf4)]=a22_0x50086a(0x9f),a22_0x26d524[a22_0x50086a(0xdc)]=a22_0x50086a(0x8d),a22_0x26d524[a22_0x50086a(0xc4)]=a22_0x50086a(0x90),a22_0x26d524[a22_0x50086a(0xad)]=a22_0x50086a(0xc5),exports[a22_0x50086a(0xd1)]=a22_0x26d524,exports[a22_0x50086a(0xa9)]={},exports[a22_0x50086a(0xd2)]=a22_0x50086a(0xb8);const a22_0x36a236={};a22_0x36a236['root']=a22_0x50086a(0xb7)+this[a22_0x50086a(0xd2)],a22_0x36a236['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xdf)]=a22_0x50086a(0x88)+this['LINK_MESSAGE'],a22_0x36a236[a22_0x50086a(0xb9)]=a22_0x50086a(0xbf)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)]={},a22_0x36a236[a22_0x50086a(0xc1)]=a22_0x50086a(0xc9)+this[a22_0x50086a(0xd2)],a22_0x36a236['connect']=a22_0x50086a(0xe3)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xcb)]=a22_0x50086a(0xcc)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0x93)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x50086a(0xd2)],a22_0x36a236['pre_check']=a22_0x50086a(0xf1)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xe5)]=a22_0x50086a(0x96)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xd8)]=a22_0x50086a(0xa2)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0x9a)]=a22_0x50086a(0xc2)+this[a22_0x50086a(0xd2)],exports['HELP_HEADER_MESSAGE']=a22_0x36a236,exports[a22_0x50086a(0xb5)]=a22_0x50086a(0xce);const a22_0x577d26={};function a22_0x3b8f(_0x1aaaa6,_0x79a752){const _0x3266a8=a22_0x3266();return a22_0x3b8f=function(_0x3b8f5a,_0x38c978){_0x3b8f5a=_0x3b8f5a-0x88;let _0x549345=_0x3266a8[_0x3b8f5a];return _0x549345;},a22_0x3b8f(_0x1aaaa6,_0x79a752);}a22_0x577d26[a22_0x50086a(0xbc)]='success',a22_0x577d26[a22_0x50086a(0xd0)]='error',a22_0x577d26[a22_0x50086a(0xa6)]=a22_0x50086a(0x9c),a22_0x577d26[a22_0x50086a(0xd7)]=a22_0x50086a(0x8b),a22_0x577d26[a22_0x50086a(0x8e)]=a22_0x50086a(0xf7),a22_0x577d26[a22_0x50086a(0xfc)]=null,exports[a22_0x50086a(0xd6)]=a22_0x577d26,exports[a22_0x50086a(0x99)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x50086a(0xc6);const a22_0x29e9f7={};a22_0x29e9f7[a22_0x50086a(0x91)]=a22_0x50086a(0x97);const a22_0x23b957={};a22_0x23b957['pre-check']=a22_0x29e9f7,exports['MessageDescription']=a22_0x23b957,exports[a22_0x50086a(0xa8)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x3dda79={};a22_0x3dda79[a22_0x50086a(0xb3)]=a22_0x50086a(0xbd),a22_0x3dda79[a22_0x50086a(0xef)]=a22_0x50086a(0x89),a22_0x3dda79[a22_0x50086a(0xe7)]=a22_0x50086a(0xa7),exports[a22_0x50086a(0xa5)]=a22_0x3dda79;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x211a41=a23_0x5873;function a23_0x5873(_0x18f089,_0x28c624){const _0x20e7e5=a23_0x20e7();return a23_0x5873=function(_0x58731f,_0x1f7a5d){_0x58731f=_0x58731f-0xb1;let _0x3622bf=_0x20e7e5[_0x58731f];return _0x3622bf;},a23_0x5873(_0x18f089,_0x28c624);}(function(_0x2710aa,_0x400b42){const _0x53fed1=a23_0x5873,_0x17af7=_0x2710aa();while(!![]){try{const _0x5018ea=parseInt(_0x53fed1(0xc7))/0x1+-parseInt(_0x53fed1(0xb3))/0x2+parseInt(_0x53fed1(0xc0))/0x3+-parseInt(_0x53fed1(0xcb))/0x4*(parseInt(_0x53fed1(0xbb))/0x5)+parseInt(_0x53fed1(0xb5))/0x6+parseInt(_0x53fed1(0xbf))/0x7*(parseInt(_0x53fed1(0xcc))/0x8)+parseInt(_0x53fed1(0xd0))/0x9*(-parseInt(_0x53fed1(0xb7))/0xa);if(_0x5018ea===_0x400b42)break;else _0x17af7['push'](_0x17af7['shift']());}catch(_0x468e03){_0x17af7['push'](_0x17af7['shift']());}}}(a23_0x20e7,0x7dd13));const winston=require(a23_0x211a41(0xc5)),fs=require('fs'),path=require('path'),logDir=a23_0x211a41(0xc8);!fs[a23_0x211a41(0xce)](logDir)&&fs[a23_0x211a41(0xbd)](logDir);const a23_0x151388={};a23_0x151388[a23_0x211a41(0xc1)]=a23_0x211a41(0xc6);function a23_0x20e7(){const _0x3478c8=['695984NNcJQA','logger','existsSync','level','9PIGlLs','debug','console.info','772188eIIBEv','combine','6064974ykLPWO','transports','12209990TRTKAE','printf','Console','join','14855LLHySa','usage.log','mkdirSync','name','7erOYec','2950974BxXDWd','format','File','fileLogger','message','winston','YYYY-MM-DD\x20HH:mm:ss','724285MITRfY','log','timestamp','createLogger','920IvLeSa'];a23_0x20e7=function(){return _0x3478c8;};return a23_0x20e7();}const a23_0x1011f6={};a23_0x1011f6[a23_0x211a41(0xcf)]=!![];const a23_0x301aa8={};a23_0x301aa8[a23_0x211a41(0xbe)]=a23_0x211a41(0xb2),exports[a23_0x211a41(0xcd)]=new winston[(a23_0x211a41(0xca))]({'format':winston[a23_0x211a41(0xc1)][a23_0x211a41(0xb4)](winston[a23_0x211a41(0xc1)][a23_0x211a41(0xc9)](a23_0x151388),winston['format']['colorize'](a23_0x1011f6),winston['format'][a23_0x211a41(0xb8)](_0x2d2b35=>_0x2d2b35[a23_0x211a41(0xc9)]+'\x20-\x20'+_0x2d2b35[a23_0x211a41(0xcf)]+':\x20'+_0x2d2b35[a23_0x211a41(0xc4)])),'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xb9))](a23_0x301aa8),new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,'events.log'),'level':a23_0x211a41(0xb1)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,a23_0x211a41(0xbc)),'level':a23_0x211a41(0xb1)})]};exports[a23_0x211a41(0xc3)]=new winston[(a23_0x211a41(0xca))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a24_0x495989=a24_0x484b;(function(_0x3e547a,_0x343764){const _0x5c0bf3=a24_0x484b,_0x5339bf=_0x3e547a();while(!![]){try{const _0x6b3eea=parseInt(_0x5c0bf3(0x11e))/0x1+-parseInt(_0x5c0bf3(0x113))/0x2*(-parseInt(_0x5c0bf3(0x112))/0x3)+parseInt(_0x5c0bf3(0x121))/0x4*(-parseInt(_0x5c0bf3(0x118))/0x5)+-parseInt(_0x5c0bf3(0x11a))/0x6*(parseInt(_0x5c0bf3(0x116))/0x7)+parseInt(_0x5c0bf3(0x123))/0x8+parseInt(_0x5c0bf3(0x126))/0x9*(-parseInt(_0x5c0bf3(0x119))/0xa)+-parseInt(_0x5c0bf3(0x117))/0xb*(parseInt(_0x5c0bf3(0x11f))/0xc);if(_0x6b3eea===_0x343764)break;else _0x5339bf['push'](_0x5339bf['shift']());}catch(_0x519ef1){_0x5339bf['push'](_0x5339bf['shift']());}}}(a24_0x20ab,0xdfba4));function a24_0x20ab(){const _0x4d1758=['demandCommand','root','1976823gzQleV','commandDir','281832gLnQSI','26NUyXoN','NwnJd','help','217TBWGRR','10833141oxRhvZ','3113735aZfGjH','10HxjeXL','134850XMHJID','epilogue','jvgBr','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1373751QblbSu','12HWupox','commands','4iuiaov','./config/constants','6762520NraXKc'];a24_0x20ab=function(){return _0x4d1758;};return a24_0x20ab();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x495989(0x122));process['env'][a24_0x495989(0x11d)]=0x1;function a24_0x484b(_0x40c130,_0x252b4){const _0x20ab91=a24_0x20ab();return a24_0x484b=function(_0x484b8c,_0x418816){_0x484b8c=_0x484b8c-0x111;let _0x390645=_0x20ab91[_0x484b8c];return _0x390645;},a24_0x484b(_0x40c130,_0x252b4);}function run(_0x518006){const _0x2290bc=a24_0x495989,_0xf0fa3e={};_0xf0fa3e[_0x2290bc(0x114)]=_0x2290bc(0x120),_0xf0fa3e[_0x2290bc(0x11c)]=_0x2290bc(0x115);const _0x5f9452=_0xf0fa3e;_0x518006['usage'](HELP_HEADER_MESSAGE[_0x2290bc(0x125)])[_0x2290bc(0x111)](_0x5f9452[_0x2290bc(0x114)])[_0x2290bc(0x124)]()[_0x2290bc(0x115)](_0x5f9452[_0x2290bc(0x11c)])[_0x2290bc(0x11b)](HELP_FOOTER_MESSAGE);}module['exports']=run;
|