browserstack-node-sdk 1.35.0 → 1.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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/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/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/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/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/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a15_0x37f9f1=a15_0x4301;function a15_0x27e7(){const _0x42a2d7=['error','12oxJmaK','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GET','INFO','mgYIp','server-error','allGrids','status','options','grid-id','boolean','log','LqpSE','oRpyz','ICZVz','LmXWF','parse','description','OcTBB','statusCode','epilogue','queued','handler','6416631OQIdte','tTqBV','FSEgL','659289fWpwkf','password','hfaXh','VLKHw','unknown-error','push','XQhiL','2494032jybZbh','cluster-name','grid-name','exit','bstackUsername','iTCPG','name','144213yZbESo','table','all-grids','dTZKS','stack','Ppdtc','YWHNM','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','got','159560OZFANH','body','argv','stringify','username','https://','Slvkx','1799931ZxPRQg','usage','Failed\x20to\x20list\x20resources!\x20Error:\x20','running','CUZfx','requestId','help','YPzVG','clusterName','AOeMH','/packages/cli/get-all-grids','init-not-called','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','type','../../utils/instrumentationUtils','ERROR','INmwz','spCdy','uuid','1203132kxjMgt','/packages/cli/get-grids','Browserstack','builder','existsSync','8PmmVwX','list-grids-called','uOrBZ'];a15_0x27e7=function(){return _0x42a2d7;};return a15_0x27e7();}(function(_0x1733f8,_0x4582a2){const _0x55f2c1=a15_0x4301,_0x2a9045=_0x1733f8();while(!![]){try{const _0xaf70de=parseInt(_0x55f2c1(0x1d6))/0x1+-parseInt(_0x55f2c1(0x1b2))/0x2+parseInt(_0x55f2c1(0x18d))/0x3*(parseInt(_0x55f2c1(0x1b7))/0x4)+parseInt(_0x55f2c1(0x196))/0x5+-parseInt(_0x55f2c1(0x1bb))/0x6*(parseInt(_0x55f2c1(0x19d))/0x7)+parseInt(_0x55f2c1(0x1dd))/0x8+parseInt(_0x55f2c1(0x1d3))/0x9;if(_0xaf70de===_0x4582a2)break;else _0x2a9045['push'](_0x2a9045['shift']());}catch(_0x491b8b){_0x2a9045['push'](_0x2a9045['shift']());}}}(a15_0x27e7,0xa9fa0));const fs=require('fs'),got=require(a15_0x37f9f1(0x195)),{table}=require(a15_0x37f9f1(0x18e)),{v4:uuidv4}=require(a15_0x37f9f1(0x1b1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x37f9f1(0x1ab)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x37f9f1(0x1ad));function a15_0x4301(_0x46321,_0x161457){const _0x27e79a=a15_0x27e7();return a15_0x4301=function(_0x4301bc,_0x444fdd){_0x4301bc=_0x4301bc-0x188;let _0x4628f2=_0x27e79a[_0x4301bc];return _0x4628f2;},a15_0x4301(_0x46321,_0x161457);}exports['command']='grids',exports['desc']=a15_0x37f9f1(0x194),exports[a15_0x37f9f1(0x1b5)]=function(_0xf7c94c){const _0xe775f3=a15_0x37f9f1,_0x1f2884={};_0x1f2884[_0xe775f3(0x1ca)]=_0xe775f3(0x1a9),_0x1f2884[_0xe775f3(0x19c)]=_0xe775f3(0x1c6),_0x1f2884[_0xe775f3(0x193)]=_0xe775f3(0x1a3);const _0x40e20a=_0x1f2884,_0x562ab6={};_0x562ab6[_0xe775f3(0x1cd)]=_0x40e20a[_0xe775f3(0x1ca)],_0x562ab6[_0xe775f3(0x1ac)]=_0x40e20a[_0xe775f3(0x19c)];const _0x176225={};return _0x176225[_0xe775f3(0x18f)]=_0x562ab6,_0xf7c94c[_0xe775f3(0x19e)](HELP_HEADER_MESSAGE['list'][_0xe775f3(0x1bc)])[_0xe775f3(0x1d0)](HELP_FOOTER_MESSAGE)[_0xe775f3(0x1c4)](_0x176225)[_0xe775f3(0x1a3)](_0x40e20a['YWHNM'])[_0xe775f3(0x198)];},exports[a15_0x37f9f1(0x1d2)]=async function(_0x43d2c8){const _0x2517be=a15_0x37f9f1,_0x23e818={'OcTBB':function(_0x3f1be7){return _0x3f1be7();},'hfaXh':_0x2517be(0x1aa),'INmwz':function(_0x111f50,_0x170804,_0x230bf5,_0x4393b4,_0x4e75e0,_0x50576b,_0x23173a){return _0x111f50(_0x170804,_0x230bf5,_0x4393b4,_0x4e75e0,_0x50576b,_0x23173a);},'VLKHw':_0x2517be(0x1b8),'oRpyz':_0x2517be(0x1a8),'AOeMH':_0x2517be(0x1be),'YPzVG':function(_0xca465e,_0x2bbcc2,_0x4f5034){return _0xca465e(_0x2bbcc2,_0x4f5034);},'XQhiL':function(_0x146751,_0x2a3b91,_0x82f333){return _0x146751(_0x2a3b91,_0x82f333);},'fTmHT':function(_0x50dee5,_0x14709e){return _0x50dee5!==_0x14709e;},'FSEgL':function(_0x200723,_0x272fa8){return _0x200723!==_0x272fa8;},'dTZKS':function(_0x439060,_0x531a13){return _0x439060===_0x531a13;},'mgYIp':'\x0aFound\x20the\x20following\x20grids:\x0a','mlCOv':_0x2517be(0x1c5),'ioWhD':_0x2517be(0x188),'iTCPG':_0x2517be(0x1c3),'CUZfx':_0x2517be(0x1a0),'tTqBV':_0x2517be(0x1d1),'LmXWF':_0x2517be(0x1de),'sAIaQ':function(_0x1ee0ae,_0x52f677){return _0x1ee0ae(_0x52f677);},'jnMWJ':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uOrBZ':'unauthorised','pFqQJ':function(_0x10e3e4,_0x35147a,_0x1e82b4,_0x4145d5,_0x1d8b17,_0x21eeff,_0x15af2e){return _0x10e3e4(_0x35147a,_0x1e82b4,_0x4145d5,_0x1d8b17,_0x21eeff,_0x15af2e);},'spCdy':_0x2517be(0x1c1),'LqpSE':function(_0x5618c2,_0x2bf0e1,_0x57fc21,_0x3422a8,_0x5ced66,_0x592938,_0x1e5158){return _0x5618c2(_0x2bf0e1,_0x57fc21,_0x3422a8,_0x5ced66,_0x592938,_0x1e5158);},'Ppdtc':_0x2517be(0x1da)};try{global_registry[_0x2517be(0x1a2)]=_0x23e818[_0x2517be(0x1ce)](uuidv4);!fs[_0x2517be(0x1b6)](_0x23e818[_0x2517be(0x1ce)](getCredentialsPath))&&(console['error'](_0x23e818[_0x2517be(0x1d8)]),await _0x23e818[_0x2517be(0x1af)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x1c9)],null,_0x43d2c8),process[_0x2517be(0x189)](0x1));const _0xb26f7e=JSON[_0x2517be(0x1cc)](fs['readFileSync'](_0x23e818[_0x2517be(0x1ce)](getCredentialsPath)));let _0x4990c5=_0x2517be(0x19b)+AG_API_URL+_0x2517be(0x1b3);_0x43d2c8[_0x2517be(0x1c2)]&&(_0x4990c5=_0x2517be(0x19b)+AG_API_URL+_0x2517be(0x1a7));const _0x3c4935={'method':_0x23e818[_0x2517be(0x1a6)],'headers':_0x23e818[_0x2517be(0x1a4)](getAuthHeader,_0xb26f7e['Browserstack'][_0x2517be(0x19a)],_0xb26f7e['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x2517be(0x18a)]=_0xb26f7e[_0x2517be(0x1b4)][_0x2517be(0x19a)],global_registry['bstackAccesskey']=_0xb26f7e[_0x2517be(0x1b4)][_0x2517be(0x1d7)],_0x23e818[_0x2517be(0x1af)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1bf)],null,null,_0x43d2c8);const _0x1ad29c=await _0x23e818[_0x2517be(0x1dc)](got,_0x4990c5,_0x3c4935);if(_0x23e818['fTmHT'](_0x1ad29c,null)&&_0x23e818[_0x2517be(0x1d5)](_0x1ad29c,undefined)&&_0x23e818['dTZKS'](_0x1ad29c[_0x2517be(0x1cf)],0xc8)){const _0x4dd4c5=JSON['parse'](_0x1ad29c[_0x2517be(0x197)]);console[_0x2517be(0x1c7)](_0x23e818[_0x2517be(0x1c0)]);const _0x8b8422=[];_0x8b8422[_0x2517be(0x1db)]([_0x23e818['mlCOv'],_0x23e818['ioWhD'],_0x23e818[_0x2517be(0x18b)],_0x23e818[_0x2517be(0x1a1)],_0x23e818[_0x2517be(0x1d4)],_0x23e818[_0x2517be(0x1cb)]]),_0x4dd4c5['forEach'](_0x28ea25=>{const _0x45ecfa=_0x2517be;_0x8b8422[_0x45ecfa(0x1db)]([_0x28ea25['id'],_0x28ea25[_0x45ecfa(0x18c)],_0x28ea25[_0x45ecfa(0x1c3)],_0x28ea25['running'],_0x28ea25[_0x45ecfa(0x1d1)],_0x28ea25[_0x45ecfa(0x1a5)]]);}),console['log'](_0x23e818['sAIaQ'](table,_0x8b8422)),process[_0x2517be(0x189)](0x0);}_0x23e818[_0x2517be(0x190)](_0x1ad29c[_0x2517be(0x1cf)],0x191)&&(console[_0x2517be(0x1ba)](_0x23e818['jnMWJ']),await _0x23e818[_0x2517be(0x1af)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x1b9)],null,_0x43d2c8),process[_0x2517be(0x189)](0x1)),console[_0x2517be(0x1ba)](_0x2517be(0x1bd)+JSON[_0x2517be(0x199)](_0x1ad29c)),await _0x23e818['pFqQJ'](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x1b0)],_0x1ad29c,_0x43d2c8),process[_0x2517be(0x189)](0x1);}catch(_0x482217){console[_0x2517be(0x1ba)](_0x2517be(0x19f)+_0x482217[_0x2517be(0x191)]),await _0x23e818[_0x2517be(0x1c8)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x192)],_0x482217,_0x43d2c8),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a16_0xa20d25=a16_0x339f;(function(_0x2dd71d,_0x3c581f){const _0x9b22db=a16_0x339f,_0x496c2e=_0x2dd71d();while(!![]){try{const _0xadb8e2=parseInt(_0x9b22db(0xc6))/0x1+parseInt(_0x9b22db(0xd9))/0x2+parseInt(_0x9b22db(0xc4))/0x3+-parseInt(_0x9b22db(0xd2))/0x4+-parseInt(_0x9b22db(0xd5))/0x5*(-parseInt(_0x9b22db(0xcf))/0x6)+parseInt(_0x9b22db(0xc7))/0x7+-parseInt(_0x9b22db(0xd8))/0x8;if(_0xadb8e2===_0x3c581f)break;else _0x496c2e['push'](_0x496c2e['shift']());}catch(_0x409cc6){_0x496c2e['push'](_0x496c2e['shift']());}}}(a16_0x3040,0xaa8d0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xa20d25(0xda));exports[a16_0xa20d25(0xd6)]='pre-check',exports[a16_0xa20d25(0xca)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x2cc70b){const _0x4cdf9a=a16_0xa20d25,_0x278e90={};_0x278e90[_0x4cdf9a(0xc5)]=_0x4cdf9a(0xce),_0x278e90[_0x4cdf9a(0xd3)]='help';const _0x8c04b3=_0x278e90;return _0x2cc70b[_0x4cdf9a(0xd0)](HELP_HEADER_MESSAGE[_0x4cdf9a(0xd4)])[_0x4cdf9a(0xc9)](HELP_FOOTER_MESSAGE)[_0x4cdf9a(0xc8)](_0x8c04b3[_0x4cdf9a(0xc5)])[_0x4cdf9a(0xd1)]()[_0x4cdf9a(0xd7)]()[_0x4cdf9a(0xcd)]()[_0x4cdf9a(0xcb)](_0x8c04b3[_0x4cdf9a(0xd3)]);},exports[a16_0xa20d25(0xcc)]=function(_0x211b79){};function a16_0x339f(_0x484b12,_0x536d3a){const _0x304002=a16_0x3040();return a16_0x339f=function(_0x339ffa,_0x32ca28){_0x339ffa=_0x339ffa-0xc4;let _0xa7f412=_0x304002[_0x339ffa];return _0xa7f412;},a16_0x339f(_0x484b12,_0x536d3a);}function a16_0x3040(){const _0x4eb95b=['3486740gNijTJ','TZjdB','pre_check','5130955CSMbGf','command','recommendCommands','28887368HhbSsV','2640104otavCx','../config/constants','2516973oQYlCH','yZCCg','856246rtyhMK','7977914FZziyT','commandDir','epilogue','desc','help','handler','strict','precheck_commands','6tztgjy','usage','demandCommand'];a16_0x3040=function(){return _0x4eb95b;};return a16_0x3040();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x374b19=a17_0x3397;(function(_0x474996,_0x328d90){const _0x108ddf=a17_0x3397,_0x3a49b0=_0x474996();while(!![]){try{const _0x5ded41=parseInt(_0x108ddf(0x225))/0x1*(parseInt(_0x108ddf(0x26e))/0x2)+parseInt(_0x108ddf(0x254))/0x3*(-parseInt(_0x108ddf(0x24b))/0x4)+parseInt(_0x108ddf(0x26b))/0x5*(-parseInt(_0x108ddf(0x200))/0x6)+parseInt(_0x108ddf(0x1b7))/0x7+-parseInt(_0x108ddf(0x276))/0x8+-parseInt(_0x108ddf(0x227))/0x9*(-parseInt(_0x108ddf(0x1ac))/0xa)+-parseInt(_0x108ddf(0x23c))/0xb*(-parseInt(_0x108ddf(0x1fd))/0xc);if(_0x5ded41===_0x328d90)break;else _0x3a49b0['push'](_0x3a49b0['shift']());}catch(_0x21196b){_0x3a49b0['push'](_0x3a49b0['shift']());}}}(a17_0x522f,0x89ff4));function a17_0x522f(){const _0x5e34b0=['oNUpa','pIdsN','VfZBj','Pre-check\x20running\x20for\x20Cloud\x20-\x20','GaVpE','zYphw','../../config/logger','handler','gridProfile','obazg','push','grid\x20profile\x20flow\x20','isCliToolInstalled','\x20\x20Code:\x20','isTls1_2_SUPPORTED','TrQBq','EpTBm','BuaFw','forEach','log/report_','/packages/cli/get-all-grid-profiles','clusterRegion','fTzjZ','existsSync','kIOKU','cloud-provider','46BAluHG','delay','1802637xISzdY','builder','xlrgd','UmQtt','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','type','includes','getUTCMinutes','will\x20be\x20created','faUyg','grid-profile','gwJig','epilogue','stack','info','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QoWjT','description','oauWl','xgpRm','https://','143oDSIvg','cZkLg','WnfZQ','DRqJW','TSAOi','apTJl','QIGas','code','mljAB','LWJfb','exit','pre-check-cluster-args-not-passed','credential-not-found','eCvGu','status','4OEvKLz','../../utils/webSocketUtils','iIPKm','Failed\x20in\x20pre-check!\x20Error:\x20','AcwzA','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Message:\x20','error','Cluster\x20`','2047578dpkfOM','tBKvv','\x20===\x0a\x0a','IaNsQ','../../utils/instrumentationUtils','cloud-provider-not-supported','XwvSP','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','body','dummy-grid','nvIwb','KCWlL','ZVmcc','GET','nAmmK','debug','pre-check','KQfuQ','QazJk',']\x20status\x20:\x20','is\x20already\x20present','bstackAccesskey','toLowerCase','2693005leAftg','dajOb','PwAiz','8506AuaTLo','bstackUsername','pre-check-grid-called','nmjIk','MAgHZ','isClusterPresent','CLOUD_PROVIDER','bSqUB','609416kiabYh','gmybJ','pre-check-failed','TxFnB','DMRbN','response','Invalid\x20input.\x20grid\x20profiles:\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','uuid','\x20region\x20-\x20','YEBrs','bMAOt','mJezM','bBxAr','Cluster\x20details\x0a-----------------------\x0a','getUTCDate','aBmhd','data','Status:\x20','Mhypw','clusterName','KNEdl','header','reconnecting-websocket','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','writeFileSync','Error\x20Details:\x0a','hBTfo','NqXAW','cpyBE','argv','zTLFS','`\x20is\x20present\x20in\x20region\x20`','0|3|2|4|1','ZNznw','SSL\x20Configured','username','rBimh','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UwWJh','===\x20Precheck\x20Report\x20-\x20','CLNhz','error\x20stack\x20:\x20','DiZzq','BjTLK','options','pWFjh','vwsbO','nMlvz','zKKVt','WxwKD','rynxl','50HXiIgW','getUTCFullYear','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','checkAccess','help','readFileSync','requestId','JHGaZ','getUTCMonth','qBcDR','iURzI','3965822BFhoMY','iAJwp','got','headers','WebSocket','password','OkgZd','stack\x20trace\x20','LOG','UMSXt','pre-check-grid-profile-empty','kTwfY','CGaww','pqCHy','\x20\x20Message:\x20','pnLHO','../../cloudproviders/utils','N/A','ccRsx','vQsfl','WRHxZ','bpMtH','UecfC','usage','xwuHt','Pempg','sendEventToBackend','Failure','cluster-name','Cluster\x20','mApUs','UnCzl','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','getUTCHours','ASDMX','message','<PasswordPlaceholder>','bFfEV','OrACu','tzLPL','zixJY','region','toolInstalledResp','KSHSq','ZamGi','\x20data\x20:\x20','split','PnJlS','Yoyzw','join','\x20\x20Stack:\x20','BMSDU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','wrYYY','gfGjC','pre_check','OgVBM','name','Browserstack','cloudProvider','connectionTimeout','KgZcM','`\x20,error\x20:\x20','JjUaD','ERROR','AyFgr','VXlIw','CUTeH','../../config/constants','jqwUr','91284mbOxsl','`\x20already\x20exists','utf-8','6RNoKPj','cQXdt','Success','iEuOc','nVqqV','stringify','CgQRN','grid','HyBoo','replace','parse'];a17_0x522f=function(){return _0x5e34b0;};return a17_0x522f();}function a17_0x3397(_0x1f46bc,_0x5d49de){const _0x522fc9=a17_0x522f();return a17_0x3397=function(_0x3397be,_0x5c1cb4){_0x3397be=_0x3397be-0x19f;let _0x4def81=_0x522fc9[_0x3397be];return _0x4def81;},a17_0x3397(_0x1f46bc,_0x5d49de);}const fs=require('fs'),ws=require('ws'),got=require(a17_0x374b19(0x1b9)),{v4:uuidv4}=require(a17_0x374b19(0x27e)),ReconnectingWebSocket=require(a17_0x374b19(0x28d)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x374b19(0x211)),{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_0x374b19(0x1fb)),{getCloudProviderObjectWithOutInit}=require(a17_0x374b19(0x1c7)),webSocketUtils=require(a17_0x374b19(0x24c)),{sendInstrumentationEvent}=require(a17_0x374b19(0x258));exports['command']=a17_0x374b19(0x207),exports['desc']=a17_0x374b19(0x1ae),exports[a17_0x374b19(0x228)]=function(_0x22a17a){const _0x53540c=a17_0x374b19,_0x5e5c17={};_0x5e5c17[_0x53540c(0x1f4)]=_0x53540c(0x1eb),_0x5e5c17['gwJig']='string',_0x5e5c17[_0x53540c(0x1f8)]=_0x53540c(0x25b),_0x5e5c17['zTLFS']=_0x53540c(0x29c),_0x5e5c17[_0x53540c(0x23f)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5e5c17[_0x53540c(0x291)]='help';const _0x2063f9=_0x5e5c17,_0x3388dc={};_0x3388dc['description']=_0x2063f9[_0x53540c(0x1f4)],_0x3388dc[_0x53540c(0x22c)]=_0x2063f9[_0x53540c(0x232)];const _0x4301f0={};_0x4301f0[_0x53540c(0x238)]=_0x2063f9[_0x53540c(0x1f8)],_0x4301f0[_0x53540c(0x22c)]=_0x2063f9[_0x53540c(0x232)];const _0xb9daf3={};_0xb9daf3['description']=_0x2063f9[_0x53540c(0x295)],_0xb9daf3[_0x53540c(0x22c)]=_0x2063f9[_0x53540c(0x232)];const _0x52c206={};_0x52c206['description']=_0x2063f9[_0x53540c(0x23f)],_0x52c206['type']=_0x2063f9['gwJig'];const _0x4d8641={};return _0x4d8641[_0x53540c(0x1d3)]=_0x3388dc,_0x4d8641['cloud-provider']=_0x4301f0,_0x4d8641[_0x53540c(0x1e0)]=_0xb9daf3,_0x4d8641[_0x53540c(0x231)]=_0x52c206,_0x22a17a[_0x53540c(0x1ce)](HELP_HEADER_MESSAGE[_0x53540c(0x1ee)])[_0x53540c(0x233)](HELP_FOOTER_MESSAGE)[_0x53540c(0x1a5)](_0x4d8641)[_0x53540c(0x1b0)](_0x2063f9[_0x53540c(0x291)])[_0x53540c(0x294)];};async function inputValidation(_0x1ce053,_0x5a5993){const _0x481bc6=a17_0x374b19,_0x82d2f1={'WRHxZ':function(_0x15f4ba,_0x584af3){return _0x15f4ba+_0x584af3;},'OkgZd':_0x481bc6(0x202),'UecfC':_0x481bc6(0x1d2),'ihMJz':function(_0x612234,_0x38cbfa){return _0x612234||_0x38cbfa;},'KSHSq':'N/A','Pempg':_0x481bc6(0x290),'GaVpE':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','QoWjT':_0x481bc6(0x1d3),'mljAB':'error','HyBoo':'is\x20already\x20present','XDWMf':_0x481bc6(0x22f),'mJezM':_0x481bc6(0x1eb),'rBimh':'string','KCWlL':_0x481bc6(0x25b),'TBCDF':_0x481bc6(0x29c),'nvIwb':_0x481bc6(0x250),'PUmrc':'help','gfGjC':'region','zixJY':function(_0x4be1d3,_0x199573){return _0x4be1d3!==_0x199573;},'Mhypw':_0x481bc6(0x1a8),'nAmmK':_0x481bc6(0x242),'CIXLv':'JAcry','naYvQ':_0x481bc6(0x271),'KQfuQ':_0x481bc6(0x223),'VXlIw':function(_0x33c24c,_0xde9e6d){return _0x33c24c===_0xde9e6d;},'JHGaZ':'MNNrb','XhXLw':'veywp','KNEdl':_0x481bc6(0x224),'WxwKD':function(_0x1703ae,_0x3352e9){return _0x1703ae===_0x3352e9;},'pIdsN':_0x481bc6(0x1a3),'sDItW':_0x481bc6(0x1f6),'vQsfl':function(_0x3cd0ec,_0x43027c){return _0x3cd0ec>_0x43027c;},'tBKvv':_0x481bc6(0x201),'kTwfY':function(_0x5e41a5,_0x1a2759,_0x2a4582,_0x3f2db7,_0xd4ffe1,_0x46f393,_0x3ef006,_0x1a9cf8){return _0x5e41a5(_0x1a2759,_0x2a4582,_0x3f2db7,_0xd4ffe1,_0x46f393,_0x3ef006,_0x1a9cf8);},'tzLPL':'pre-check-grid-called','Yoyzw':_0x481bc6(0x247),'pWFjh':_0x481bc6(0x1cc),'BHddr':_0x481bc6(0x1b6),'PwAiz':_0x481bc6(0x28e),'pnLHO':function(_0x546400,_0x3de412,_0x5be71b,_0x4111c9,_0xc578,_0x125fd2,_0x57f4df,_0xd2a8ab){return _0x546400(_0x3de412,_0x5be71b,_0x4111c9,_0xc578,_0x125fd2,_0x57f4df,_0xd2a8ab);},'TSAOi':_0x481bc6(0x259),'NqXAW':function(_0x403bed,_0x3e7540){return _0x403bed===_0x3e7540;},'oNUpa':'jFKKv','eneAi':_0x481bc6(0x277),'iEuOc':function(_0x557aeb,_0x4d7298){return _0x557aeb!==_0x4d7298;},'TdpUX':_0x481bc6(0x19f),'HICxY':_0x481bc6(0x261),'mApUs':function(_0x275c3e,_0xb63dab,_0x3b3c57){return _0x275c3e(_0xb63dab,_0x3b3c57);},'nUnBV':function(_0x1ea29a,_0x1af517,_0x4c72f7,_0x3c4201,_0x319e3d,_0x48fea7){return _0x1ea29a(_0x1af517,_0x4c72f7,_0x3c4201,_0x319e3d,_0x48fea7);},'OpVrl':_0x481bc6(0x264),'bBxAr':_0x481bc6(0x231),'UMSXt':function(_0x25135c,_0xf609d8){return _0x25135c!==_0xf609d8;},'NzVMh':_0x481bc6(0x1b5),'rynxl':function(_0x310dcb,_0x1ea38a){return _0x310dcb(_0x1ea38a);},'ZamGi':_0x481bc6(0x221),'QazJk':_0x481bc6(0x1c1),'eCvGu':_0x481bc6(0x1fa),'YEBrs':'xElMb','iIPKm':_0x481bc6(0x25a),'GMxOX':'Grid\x20profile\x20fetched\x20for\x20pre-check','BMSDU':_0x481bc6(0x26c),'OgVBM':_0x481bc6(0x1cf),'wrYYY':function(_0x5c5303,_0xa293e){return _0x5c5303===_0xa293e;},'YbPcv':_0x481bc6(0x23d),'pqCHy':_0x481bc6(0x239)};let _0x4bce60;try{if(_0x82d2f1[_0x481bc6(0x1df)](_0x82d2f1[_0x481bc6(0x289)],_0x82d2f1[_0x481bc6(0x262)])){if(_0x1ce053[_0x481bc6(0x28a)]||_0x1ce053[_0x481bc6(0x1f2)]||_0x1ce053[_0x481bc6(0x1e0)]){if(_0x82d2f1[_0x481bc6(0x1df)](_0x82d2f1['CIXLv'],_0x82d2f1['naYvQ'])){const _0x483c3c=[];!_0x1ce053[_0x481bc6(0x28a)]&&(_0x82d2f1[_0x481bc6(0x1df)](_0x82d2f1[_0x481bc6(0x265)],_0x82d2f1['KQfuQ'])?_0x2203b8[_0x481bc6(0x246)](0x1):_0x483c3c[_0x481bc6(0x215)](_0x82d2f1[_0x481bc6(0x237)]));;if(!_0x1ce053['cloudProvider']){if(_0x82d2f1[_0x481bc6(0x1f9)](_0x82d2f1[_0x481bc6(0x1b3)],_0x82d2f1['XhXLw'])){const {header:_0x2a45bf,response:_0x585eeb}=_0x1d18e6,{status:_0x15bba8,data:_0x16ffe8,error:_0x5e4bf0}=_0x585eeb;_0x56f1ab+=_0x2a45bf+'\x20#'+_0x82d2f1[_0x481bc6(0x1cb)](_0x1d9edf,0x1)+'\x0a',_0x2cbb46+=_0x481bc6(0x288)+(_0x15bba8?_0x82d2f1[_0x481bc6(0x1bd)]:_0x82d2f1[_0x481bc6(0x1cd)])+'\x0a',_0x5c6737+=_0x481bc6(0x251)+_0x82d2f1['ihMJz'](_0x16ffe8,_0x82d2f1[_0x481bc6(0x1e2)])+'\x0a',_0x5e4bf0&&(_0xb4101a+=_0x82d2f1[_0x481bc6(0x1d0)],_0x56d413+=_0x481bc6(0x1c5)+(_0x5e4bf0[_0x481bc6(0x1da)]||_0x82d2f1['KSHSq'])+'\x0a',_0x48b7e7+=_0x481bc6(0x218)+(_0x5e4bf0[_0x481bc6(0x243)]||_0x82d2f1[_0x481bc6(0x1e2)])+'\x0a',_0x38dd5f+=_0x481bc6(0x1e9)+(_0x5e4bf0[_0x481bc6(0x234)]||_0x82d2f1[_0x481bc6(0x1e2)])+'\x0a'),_0x2c94ee+='\x0a\x0a';}else _0x483c3c['push'](_0x82d2f1[_0x481bc6(0x28b)]);};!_0x1ce053[_0x481bc6(0x1e0)]&&(_0x82d2f1[_0x481bc6(0x1aa)](_0x82d2f1[_0x481bc6(0x20c)],_0x82d2f1['sDItW'])?_0x26c176+=_0x481bc6(0x1d4)+_0x322ea1[_0x481bc6(0x28a)]+_0x481bc6(0x22b):_0x483c3c[_0x481bc6(0x215)](_0x82d2f1[_0x481bc6(0x1ed)]));;_0x82d2f1[_0x481bc6(0x1ca)](_0x483c3c['length'],0x0)&&(_0x82d2f1[_0x481bc6(0x1aa)](_0x82d2f1[_0x481bc6(0x255)],_0x82d2f1['tBKvv'])?(_0x4bce60='Missing\x20required\x20arguments:\x20'+_0x483c3c[_0x481bc6(0x1e8)](',\x20')+_0x481bc6(0x27d),await _0x82d2f1['kTwfY'](reportToGalactusAndSendToEDS,_0x1ce053,_0x5a5993,_0x4bce60,messageTypes[_0x481bc6(0x1f7)],_0x82d2f1[_0x481bc6(0x1de)],_0x82d2f1[_0x481bc6(0x1e7)],_0x82d2f1[_0x481bc6(0x244)]),logger[_0x481bc6(0x252)](_0x4bce60),process[_0x481bc6(0x246)](0x1)):_0x5285b8=_0x151a3a),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x481bc6(0x22d)](_0x1ce053[_0x481bc6(0x1f2)][_0x481bc6(0x26a)]())&&(_0x82d2f1[_0x481bc6(0x1df)](_0x82d2f1[_0x481bc6(0x1a6)],_0x82d2f1['BHddr'])?(_0x4bce60=_0x82d2f1[_0x481bc6(0x26d)],await _0x82d2f1[_0x481bc6(0x1c6)](reportToGalactusAndSendToEDS,_0x1ce053,_0x5a5993,_0x4bce60,messageTypes[_0x481bc6(0x1f7)],_0x82d2f1[_0x481bc6(0x1de)],_0x82d2f1[_0x481bc6(0x240)],_0x82d2f1[_0x481bc6(0x244)]),logger[_0x481bc6(0x252)](_0x4bce60),!_0x1ce053[_0x481bc6(0x1f2)]&&(_0x82d2f1[_0x481bc6(0x292)](_0x82d2f1[_0x481bc6(0x20b)],_0x82d2f1['eneAi'])?(_0x252b08[_0x481bc6(0x252)](_0x82d2f1['GaVpE']),_0x282b1f[_0x481bc6(0x246)](0x1)):(logger[_0x481bc6(0x235)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x481bc6(0x274)]+'\x20'),_0x1ce053['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x481bc6(0x274)]))):_0x5c03bf['push'](_0x82d2f1[_0x481bc6(0x237)])),global_registry['clusterName']=_0x1ce053['clusterName'],global_registry[_0x481bc6(0x1f2)]=_0x1ce053[_0x481bc6(0x1f2)],global_registry[_0x481bc6(0x220)]=_0x1ce053['region'];}else _0x1a0216[_0x481bc6(0x235)]('Setting\x20cloud\x20provider\x20as\x20'+_0x12acbc[_0x481bc6(0x274)]+'\x20'),_0xc3de00['cloudProvider']=_0xe0f63b[_0x481bc6(0x274)];}else{if(_0x1ce053[_0x481bc6(0x213)]){if(_0x82d2f1[_0x481bc6(0x203)](_0x82d2f1['TdpUX'],_0x82d2f1['TdpUX'])){const _0x192f1d={};_0x192f1d['type']=_0x175b68[_0x481bc6(0x1bf)],_0x192f1d[_0x481bc6(0x1da)]=_0x5d0559,_0x11e67d[_0x481bc6(0x1d1)](_0x19da24,_0x192f1d,_0x82d2f1[_0x481bc6(0x244)],!![]);}else{global_registry['gridProfile']=_0x1ce053['gridProfile'],logger[_0x481bc6(0x263)](_0x481bc6(0x216)+_0x1ce053['gridProfile']);const _0x44f494=_0x481bc6(0x23b)+AG_API_URL+_0x481bc6(0x21f),_0x3a1967={};_0x3a1967['method']=_0x82d2f1['HICxY'],_0x3a1967[_0x481bc6(0x1ba)]=global_registry['authHeader'],_0x3a1967['throwHttpErrors']=![];const _0x574882=_0x3a1967,_0x49172b=await _0x82d2f1[_0x481bc6(0x1d5)](got,_0x44f494,_0x574882),_0x59e37f=await _0x82d2f1['nUnBV'](responseValidation,_0x49172b,_0x82d2f1['OpVrl'],_0x82d2f1[_0x481bc6(0x283)],_0x1ce053,_0x5a5993);let _0x3e8c62={};if(_0x82d2f1[_0x481bc6(0x1aa)](_0x59e37f,0xc8)){if(_0x82d2f1[_0x481bc6(0x1c0)](_0x82d2f1['NzVMh'],_0x82d2f1['NzVMh']))_0x80a13+=_0x481bc6(0x1d4)+_0x584d77[_0x481bc6(0x28a)]+'\x20'+(_0x2b1151?_0x82d2f1[_0x481bc6(0x208)]:_0x82d2f1['XDWMf'])+'\x0a\x0a';else{const _0x5bdde0=JSON[_0x481bc6(0x20a)](_0x49172b[_0x481bc6(0x25c)]),_0x30b781=_0x5bdde0['find'](_0x274fd5=>_0x274fd5[_0x481bc6(0x1f0)]===_0x1ce053[_0x481bc6(0x213)])||null;if(_0x82d2f1[_0x481bc6(0x1ab)](isUndefined,_0x30b781)){if(_0x82d2f1[_0x481bc6(0x292)](_0x82d2f1['ZamGi'],_0x82d2f1[_0x481bc6(0x1e3)]))_0x4bce60=_0x481bc6(0x27c)+_0x1ce053[_0x481bc6(0x213)]+_0x481bc6(0x1d7),await _0x82d2f1[_0x481bc6(0x1c6)](reportToGalactusAndSendToEDS,_0x1ce053,_0x5a5993,_0x4bce60,messageTypes[_0x481bc6(0x1f7)],_0x82d2f1['tzLPL'],_0x82d2f1[_0x481bc6(0x266)],_0x82d2f1[_0x481bc6(0x244)]),logger[_0x481bc6(0x252)](_0x4bce60),process[_0x481bc6(0x246)](0x1);else{const _0x448fd7={};_0x448fd7[_0x481bc6(0x238)]=_0x82d2f1[_0x481bc6(0x282)],_0x448fd7[_0x481bc6(0x22c)]=_0x82d2f1[_0x481bc6(0x29b)];const _0x287f70={};_0x287f70[_0x481bc6(0x238)]=_0x82d2f1[_0x481bc6(0x25f)],_0x287f70[_0x481bc6(0x22c)]=_0x82d2f1[_0x481bc6(0x29b)];const _0x32369c={};_0x32369c['description']=_0x82d2f1['TBCDF'],_0x32369c['type']=_0x82d2f1[_0x481bc6(0x29b)];const _0x50acf8={};_0x50acf8[_0x481bc6(0x238)]=_0x82d2f1[_0x481bc6(0x25e)],_0x50acf8[_0x481bc6(0x22c)]=_0x82d2f1[_0x481bc6(0x29b)];const _0x2e9c15={};return _0x2e9c15[_0x481bc6(0x1d3)]=_0x448fd7,_0x2e9c15[_0x481bc6(0x224)]=_0x287f70,_0x2e9c15['region']=_0x32369c,_0x2e9c15[_0x481bc6(0x231)]=_0x50acf8,_0x4d7e74[_0x481bc6(0x1ce)](_0x35c661['pre_check'])[_0x481bc6(0x233)](_0x31c58c)[_0x481bc6(0x1a5)](_0x2e9c15)['help'](_0x82d2f1['PUmrc'])[_0x481bc6(0x294)];}}else _0x82d2f1[_0x481bc6(0x1c0)](_0x82d2f1[_0x481bc6(0x249)],_0x82d2f1[_0x481bc6(0x280)])?_0x3e8c62=_0x30b781:(_0x1ceb03[_0x481bc6(0x235)]('['+_0x3b214e+_0x481bc6(0x267)+_0x16276b[_0x481bc6(0x24a)]+_0x481bc6(0x1e4)+_0x203c08[_0x481bc6(0x287)]+'\x20error\x20:\x20'+_0x2a7db1[_0x481bc6(0x252)]),_0x56d34a['error']&&_0x26dcf7[_0x481bc6(0x252)](_0x481bc6(0x1a2)+_0x1551c6[_0x481bc6(0x252)][_0x481bc6(0x234)]));}}else _0x82d2f1[_0x481bc6(0x292)](_0x82d2f1[_0x481bc6(0x24d)],_0x82d2f1[_0x481bc6(0x24d)])?process[_0x481bc6(0x246)](0x1):_0x27c48e[_0x481bc6(0x215)](_0x82d2f1[_0x481bc6(0x1ed)]);const _0x36408f={};_0x36408f[_0x481bc6(0x22c)]=WS_EVENTS[_0x481bc6(0x1bf)],_0x36408f[_0x481bc6(0x1da)]=_0x82d2f1['GMxOX'],webSocketUtils['sendEventToBackend'](_0x5a5993,_0x36408f),global_registry['cloudProvider']=_0x3e8c62[_0x481bc6(0x1f2)],global_registry[_0x481bc6(0x220)]=_0x3e8c62[_0x481bc6(0x1e0)],global_registry[_0x481bc6(0x28a)]=_0x3e8c62[_0x481bc6(0x28a)];}}else _0x82d2f1['iEuOc'](_0x82d2f1[_0x481bc6(0x1ea)],_0x82d2f1[_0x481bc6(0x1ef)])?(logger[_0x481bc6(0x252)](_0x82d2f1[_0x481bc6(0x20f)]),process['exit'](0x1)):_0x64d738[_0x481bc6(0x235)](_0x481bc6(0x253)+_0x9a8e27[_0x481bc6(0x28a)]+_0x481bc6(0x1fe));}}else _0x361318['error'](_0x481bc6(0x1a2)+_0x5cbfef[_0x481bc6(0x252)][_0x481bc6(0x234)]);}catch(_0x226309){_0x82d2f1[_0x481bc6(0x1ec)](_0x82d2f1['YbPcv'],_0x82d2f1[_0x481bc6(0x1c4)])?(_0x5933cd+=_0x82d2f1[_0x481bc6(0x1d0)],_0x2316ac+=_0x481bc6(0x1c5)+(_0x285d7f[_0x481bc6(0x1da)]||_0x82d2f1['KSHSq'])+'\x0a',_0x1490ac+=_0x481bc6(0x218)+(_0x15e2c3[_0x481bc6(0x243)]||_0x82d2f1[_0x481bc6(0x1e2)])+'\x0a',_0x4b7218+='\x20\x20Stack:\x20'+(_0x32f350[_0x481bc6(0x234)]||_0x82d2f1[_0x481bc6(0x1e2)])+'\x0a'):(_0x4bce60='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x226309+':\x20'+_0x226309[_0x481bc6(0x234)],logger[_0x481bc6(0x252)](_0x4bce60),await _0x82d2f1[_0x481bc6(0x1c2)](reportToGalactusAndSendToEDS,_0x1ce053,_0x5a5993,_0x4bce60,messageTypes[_0x481bc6(0x1f7)],_0x82d2f1[_0x481bc6(0x1de)],_0x82d2f1[_0x481bc6(0x240)],_0x82d2f1['mljAB']),process[_0x481bc6(0x246)](0x1));}}function printResponse(_0x2a5753,_0x1022a6){const _0x4e9a98=a17_0x374b19,_0x1c3594={};_0x1c3594[_0x4e9a98(0x229)]=_0x4e9a98(0x224),_0x1c3594['BjTLK']=function(_0x2c622a,_0x25b6bc){return _0x2c622a===_0x25b6bc;},_0x1c3594[_0x4e9a98(0x272)]=_0x4e9a98(0x206),_0x1c3594[_0x4e9a98(0x1b8)]=_0x4e9a98(0x23a);const _0x27b49e=_0x1c3594;logger[_0x4e9a98(0x235)]('['+_0x2a5753+_0x4e9a98(0x267)+_0x1022a6[_0x4e9a98(0x24a)]+_0x4e9a98(0x1e4)+_0x1022a6[_0x4e9a98(0x287)]+'\x20error\x20:\x20'+_0x1022a6[_0x4e9a98(0x252)]),_0x1022a6['error']&&(_0x27b49e[_0x4e9a98(0x1a4)](_0x27b49e['MAgHZ'],_0x27b49e[_0x4e9a98(0x1b8)])?_0x2a6e0e[_0x4e9a98(0x215)](_0x27b49e['xlrgd']):logger[_0x4e9a98(0x252)](_0x4e9a98(0x1a2)+_0x1022a6['error'][_0x4e9a98(0x234)]));}async function generateReport(_0x3cd401,_0x2016c5){const _0x49dbea=a17_0x374b19,_0x5ce609={'nYQJP':function(_0x260974,_0xdd7987){return _0x260974+_0xdd7987;},'IowxI':_0x49dbea(0x202),'DMRbN':_0x49dbea(0x1d2),'WnfZQ':function(_0x230c2a,_0x52c2bd){return _0x230c2a||_0x52c2bd;},'faUyg':_0x49dbea(0x1c8),'LMLsA':_0x49dbea(0x290),'UmQtt':_0x49dbea(0x284),'LWJfb':function(_0xe515c7,_0x582d31){return _0xe515c7!=_0x582d31;},'VfZBj':_0x49dbea(0x268),'GFZRR':'will\x20be\x20created','nyuwC':function(_0x31446b){return _0x31446b();}};let _0x72e843=_0x49dbea(0x1a0)+global_registry[_0x49dbea(0x1f2)]+_0x49dbea(0x256);return _0x3cd401[_0x49dbea(0x21d)]((_0x17f953,_0x1e5b93)=>{const _0x16d79b=_0x49dbea,{header:_0x52e6ba,response:_0xcf7b}=_0x17f953,{status:_0x216454,data:_0x1a8470,error:_0x3a9b0e}=_0xcf7b;_0x72e843+=_0x52e6ba+'\x20#'+_0x5ce609['nYQJP'](_0x1e5b93,0x1)+'\x0a',_0x72e843+=_0x16d79b(0x288)+(_0x216454?_0x5ce609['IowxI']:_0x5ce609[_0x16d79b(0x27a)])+'\x0a',_0x72e843+=_0x16d79b(0x251)+_0x5ce609[_0x16d79b(0x23e)](_0x1a8470,_0x5ce609[_0x16d79b(0x230)])+'\x0a',_0x3a9b0e&&(_0x72e843+=_0x5ce609['LMLsA'],_0x72e843+=_0x16d79b(0x1c5)+(_0x3a9b0e[_0x16d79b(0x1da)]||_0x5ce609[_0x16d79b(0x230)])+'\x0a',_0x72e843+=_0x16d79b(0x218)+(_0x3a9b0e[_0x16d79b(0x243)]||_0x5ce609[_0x16d79b(0x230)])+'\x0a',_0x72e843+=_0x16d79b(0x1e9)+(_0x3a9b0e['stack']||_0x5ce609[_0x16d79b(0x230)])+'\x0a'),_0x72e843+='\x0a\x0a';}),_0x72e843+=_0x5ce609[_0x49dbea(0x22a)],_0x5ce609[_0x49dbea(0x245)](_0x2016c5,null)?_0x72e843+=_0x49dbea(0x1d4)+global_registry[_0x49dbea(0x28a)]+'\x20'+(_0x2016c5?_0x5ce609[_0x49dbea(0x20d)]:_0x5ce609['GFZRR'])+'\x0a\x0a':_0x72e843+=_0x49dbea(0x1d4)+global_registry[_0x49dbea(0x28a)]+_0x49dbea(0x22b),_0x72e843+=_0x5ce609['nyuwC'](getSystemMetaData),_0x72e843;};exports[a17_0x374b19(0x212)]=async function(_0xfe8456){const _0x156ca0=a17_0x374b19,_0x2f642b={'CLNhz':function(_0x49c77f){return _0x49c77f();},'bFfEV':function(_0x30bcbd){return _0x30bcbd();},'zJZut':_0x156ca0(0x236),'bSqUB':function(_0x496569,_0x5258eb,_0x5431e1,_0x35d3c1,_0x8053f4,_0x17cab5,_0xe70c7f,_0x412025){return _0x496569(_0x5258eb,_0x5431e1,_0x35d3c1,_0x8053f4,_0x17cab5,_0xe70c7f,_0x412025);},'UnCzl':_0x156ca0(0x270),'apTJl':_0x156ca0(0x248),'cpyBE':_0x156ca0(0x252),'AcwzA':function(_0xfe14cb,_0x30a5d9,_0x38e97d,_0x1f78a9,_0x467260,_0x5d62af,_0x267acb){return _0xfe14cb(_0x30a5d9,_0x38e97d,_0x1f78a9,_0x467260,_0x5d62af,_0x267acb);},'BuaFw':function(_0x28f2aa){return _0x28f2aa();},'PnJlS':'<UsernamePlaceholder>','Qhiza':_0x156ca0(0x1db),'CGaww':function(_0x358047,_0x712638,_0x3a41b7){return _0x358047(_0x712638,_0x3a41b7);},'TrQBq':_0x156ca0(0x25d),'vwsbO':function(_0xf39ab9,_0x5a9c54,_0x1f7923){return _0xf39ab9(_0x5a9c54,_0x1f7923);},'TxFnB':_0x156ca0(0x1e1),'zKKVt':_0x156ca0(0x297),'ccRsx':'accessResp','zYphw':function(_0x5a9f86){return _0x5a9f86();},'ZVmcc':'isTrialGridAccessible','fLCIx':function(_0x3d7570,_0x15909f){return _0x3d7570(_0x15909f);},'OrACu':'TLSv1_2_client_method','obazg':_0x156ca0(0x219),'nVqqV':'Tool\x20Installed','aBmhd':'User\x20Access','IaNsQ':'Whitelisted\x20browserstack','bMAOt':_0x156ca0(0x299),'EpTBm':function(_0x456533,_0x58bf14,_0x5de2a4){return _0x456533(_0x58bf14,_0x5de2a4);},'ASDMX':function(_0x1e240e,_0x50ec92){return _0x1e240e+_0x50ec92;},'ZNznw':_0x156ca0(0x1ff),'cqOyG':function(_0x4d15f2,_0x13bc2c,_0x40e470,_0x4fa6fc,_0x2e6d87,_0x3255ae,_0x340da0){return _0x4d15f2(_0x13bc2c,_0x40e470,_0x4fa6fc,_0x2e6d87,_0x3255ae,_0x340da0);},'jqwUr':_0x156ca0(0x278)};let _0x31e75d,_0x2418b5;try{global_registry[_0x156ca0(0x1b2)]=_0x2f642b[_0x156ca0(0x1a1)](uuidv4);!fs[_0x156ca0(0x222)](_0x2f642b[_0x156ca0(0x1dc)](getCredentialsPath))&&(_0x2418b5=_0x2f642b['zJZut'],logger[_0x156ca0(0x252)](_0x2418b5),await _0x2f642b[_0x156ca0(0x275)](reportToGalactusAndSendToEDS,_0xfe8456,_0x31e75d,_0x2418b5,messageTypes[_0x156ca0(0x1f7)],_0x2f642b[_0x156ca0(0x1d6)],_0x2f642b[_0x156ca0(0x241)],_0x2f642b[_0x156ca0(0x293)]),process['exit'](0x1));_0x2f642b[_0x156ca0(0x24f)](sendInstrumentationEvent,_0xfe8456,_0x2f642b[_0x156ca0(0x1d6)],messageTypes['INFO'],null,null,_0xfe8456);const _0x1a0808=JSON[_0x156ca0(0x20a)](fs[_0x156ca0(0x1b1)](_0x2f642b[_0x156ca0(0x21c)](getCredentialsPath)));global_registry[_0x156ca0(0x26f)]=_0x1a0808[_0x156ca0(0x1f1)][_0x156ca0(0x29a)],global_registry[_0x156ca0(0x269)]=_0x1a0808[_0x156ca0(0x1f1)][_0x156ca0(0x1bc)];const _0x5c6d1f=WS_ENDPOINT[_0x156ca0(0x209)](_0x2f642b[_0x156ca0(0x1e6)],_0x1a0808[_0x156ca0(0x1f1)][_0x156ca0(0x29a)])['replace'](_0x2f642b['Qhiza'],_0x1a0808[_0x156ca0(0x1f1)]['password']),_0x5ed929={};_0x5ed929[_0x156ca0(0x1bb)]=ws,_0x5ed929[_0x156ca0(0x1f3)]=0x36ee80,_0x31e75d=new ReconnectingWebSocket(_0x5c6d1f,[],_0x5ed929),global_registry['authHeader']=_0x2f642b[_0x156ca0(0x1c3)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x2f642b['CGaww'](inputValidation,_0xfe8456,_0x31e75d),logger[_0x156ca0(0x235)](_0x156ca0(0x20e)+global_registry[_0x156ca0(0x1f2)]+_0x156ca0(0x27f)+global_registry[_0x156ca0(0x220)]);let _0x3d04dd=await _0x2f642b[_0x156ca0(0x24f)](getCloudProviderObjectWithOutInit,global_registry[_0x156ca0(0x1f2)],global_registry[_0x156ca0(0x28a)],_0x2f642b[_0x156ca0(0x21a)],_0x31e75d,webSocketUtils,_0xfe8456);const _0x30df22=await _0x3d04dd[_0x156ca0(0x217)]();_0x2f642b[_0x156ca0(0x1a7)](printResponse,_0x2f642b[_0x156ca0(0x279)],_0x30df22),_0x3d04dd=await _0x3d04dd['init']();let _0x524c0c=![];try{_0x524c0c=await _0x3d04dd[_0x156ca0(0x273)]();}catch(_0x58452e){const _0x10d2b5=_0x2f642b[_0x156ca0(0x1a9)][_0x156ca0(0x1e5)]('|');let _0x39ea9a=0x0;while(!![]){switch(_0x10d2b5[_0x39ea9a++]){case'0':_0x2418b5='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x156ca0(0x28a)]+_0x156ca0(0x296)+global_registry['clusterRegion']+_0x156ca0(0x1f5)+_0x58452e;continue;case'1':await _0x2f642b['bSqUB'](reportToGalactusAndSendToEDS,_0xfe8456,_0x31e75d,_0x2418b5,messageTypes['ERROR'],_0x2f642b[_0x156ca0(0x1d6)],'cluster-check-failed-'+global_registry[_0x156ca0(0x1f2)],_0x2f642b['cpyBE']);continue;case'2':logger['error'](_0x2418b5);continue;case'3':_0x524c0c=null;continue;case'4':_0x2418b5+='\x0a'+JSON[_0x156ca0(0x205)](_0x58452e[_0x156ca0(0x234)]);continue;}break;}}_0x524c0c&&logger[_0x156ca0(0x235)](_0x156ca0(0x253)+global_registry[_0x156ca0(0x28a)]+_0x156ca0(0x1fe));const _0xa79ebe=await _0x3d04dd[_0x156ca0(0x1af)]();_0x2f642b[_0x156ca0(0x1a7)](printResponse,_0x2f642b[_0x156ca0(0x1c9)],_0xa79ebe);const _0x425df=await _0x2f642b[_0x156ca0(0x210)](curlRequest);_0x2f642b['CGaww'](printResponse,_0x2f642b[_0x156ca0(0x260)],_0x425df);const _0x478b4c=await _0x2f642b['fLCIx'](isTlsSupported,_0x2f642b[_0x156ca0(0x1dd)]);_0x2f642b[_0x156ca0(0x1a7)](printResponse,_0x2f642b[_0x156ca0(0x214)],_0x478b4c);const _0x35d270={};_0x35d270[_0x156ca0(0x28c)]=_0x2f642b[_0x156ca0(0x204)],_0x35d270['response']=_0x30df22;const _0x455d10={};_0x455d10[_0x156ca0(0x28c)]=_0x2f642b[_0x156ca0(0x286)],_0x455d10[_0x156ca0(0x27b)]=_0xa79ebe;const _0x323d7a={};_0x323d7a[_0x156ca0(0x28c)]=_0x2f642b[_0x156ca0(0x257)],_0x323d7a['response']=_0x425df;const _0x3dba63={};_0x3dba63['header']=_0x2f642b[_0x156ca0(0x281)],_0x3dba63[_0x156ca0(0x27b)]=_0x478b4c;const _0x294e07=[_0x35d270,_0x455d10,_0x323d7a,_0x3dba63],_0x25375b=await _0x2f642b[_0x156ca0(0x21b)](generateReport,_0x294e07,_0x524c0c),_0x4fa396=new Date(),_0x446d3f=_0x4fa396[_0x156ca0(0x1ad)]()+'_'+_0x2f642b[_0x156ca0(0x1d9)](_0x4fa396[_0x156ca0(0x1b4)](),0x1)+'_'+_0x4fa396[_0x156ca0(0x285)]()+'_'+_0x4fa396[_0x156ca0(0x1d8)]()+'_'+_0x4fa396[_0x156ca0(0x22e)](),_0x239bc7=_0x156ca0(0x21e)+_0x446d3f+'.txt';fs[_0x156ca0(0x28f)](_0x239bc7,_0x25375b,_0x2f642b[_0x156ca0(0x298)]),logger[_0x156ca0(0x235)]('Report\x20saved\x20in\x20'+_0x239bc7),process['exit'](0x0);}catch(_0x1fb160){let _0x2e4c2e=_0x156ca0(0x24e)+_0x1fb160+'\x20';logger[_0x156ca0(0x252)](_0x2e4c2e),_0x2e4c2e+='\x0a'+JSON['stringify'](_0x1fb160['stack']),logger['debug'](_0x156ca0(0x1be)+_0x1fb160[_0x156ca0(0x234)]);if(_0x31e75d){const _0x2fb724={};_0x2fb724[_0x156ca0(0x22c)]=WS_EVENTS[_0x156ca0(0x1bf)],_0x2fb724[_0x156ca0(0x1da)]=_0x2e4c2e,webSocketUtils[_0x156ca0(0x1d1)](_0x31e75d,_0x2fb724,_0x2f642b[_0x156ca0(0x293)],!![]);}await webSocketUtils[_0x156ca0(0x226)](0x7d0);const _0x14ff15={};_0x14ff15[_0x156ca0(0x252)]=_0x2e4c2e,await _0x2f642b['cqOyG'](sendInstrumentationEvent,_0xfe8456,_0x2f642b[_0x156ca0(0x1d6)],messageTypes[_0x156ca0(0x1f7)],_0x2f642b[_0x156ca0(0x1fc)],_0x14ff15,_0xfe8456),process[_0x156ca0(0x246)](0x1);}};
|
|
1
|
+
const a17_0x4a0502=a17_0x1bc2;function a17_0x1bc2(_0x2cb671,_0xf759ca){const _0x5a3021=a17_0x5a30();return a17_0x1bc2=function(_0x1bc2c7,_0x2e3a68){_0x1bc2c7=_0x1bc2c7-0x127;let _0x26decf=_0x5a3021[_0x1bc2c7];return _0x26decf;},a17_0x1bc2(_0x2cb671,_0xf759ca);}(function(_0xc39921,_0x441bcd){const _0x2721c9=a17_0x1bc2,_0x1eb480=_0xc39921();while(!![]){try{const _0x3e7069=-parseInt(_0x2721c9(0x218))/0x1+-parseInt(_0x2721c9(0x214))/0x2+parseInt(_0x2721c9(0x159))/0x3+parseInt(_0x2721c9(0x1c0))/0x4+parseInt(_0x2721c9(0x1c2))/0x5+parseInt(_0x2721c9(0x1a8))/0x6*(-parseInt(_0x2721c9(0x168))/0x7)+parseInt(_0x2721c9(0x182))/0x8;if(_0x3e7069===_0x441bcd)break;else _0x1eb480['push'](_0x1eb480['shift']());}catch(_0x296321){_0x1eb480['push'](_0x1eb480['shift']());}}}(a17_0x5a30,0x6508b));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x4a0502(0x15c)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4a0502(0x1fa)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x4a0502(0x15e)),{getCloudProviderObjectWithOutInit}=require(a17_0x4a0502(0x13a)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x4a0502(0x1a1));exports[a17_0x4a0502(0x197)]=a17_0x4a0502(0x1d3),exports[a17_0x4a0502(0x156)]=a17_0x4a0502(0x1ad),exports[a17_0x4a0502(0x1e9)]=function(_0x5513a0){const _0x30c54e=a17_0x4a0502,_0x17b043={};_0x17b043[_0x30c54e(0x139)]=_0x30c54e(0x1ce),_0x17b043[_0x30c54e(0x1c9)]=_0x30c54e(0x1e6),_0x17b043[_0x30c54e(0x150)]=_0x30c54e(0x202),_0x17b043[_0x30c54e(0x176)]=_0x30c54e(0x1da),_0x17b043['xyuzH']=_0x30c54e(0x20a),_0x17b043[_0x30c54e(0x14d)]=_0x30c54e(0x1c1);const _0x3238e6=_0x17b043,_0x5605ac={};_0x5605ac[_0x30c54e(0x1d9)]=_0x3238e6['FkNiS'],_0x5605ac[_0x30c54e(0x209)]=_0x3238e6[_0x30c54e(0x1c9)];const _0x510ae6={};_0x510ae6['description']=_0x3238e6[_0x30c54e(0x150)],_0x510ae6[_0x30c54e(0x209)]=_0x3238e6['gMCwL'];const _0x27cc9b={};_0x27cc9b['description']=_0x3238e6[_0x30c54e(0x176)],_0x27cc9b[_0x30c54e(0x209)]=_0x3238e6['gMCwL'];const _0x3f8c93={};_0x3f8c93['description']=_0x3238e6[_0x30c54e(0x20c)],_0x3f8c93[_0x30c54e(0x209)]=_0x3238e6[_0x30c54e(0x1c9)];const _0x5f52ab={};return _0x5f52ab[_0x30c54e(0x181)]=_0x5605ac,_0x5f52ab[_0x30c54e(0x134)]=_0x510ae6,_0x5f52ab[_0x30c54e(0x219)]=_0x27cc9b,_0x5f52ab[_0x30c54e(0x1f4)]=_0x3f8c93,_0x5513a0['usage'](HELP_HEADER_MESSAGE[_0x30c54e(0x1c7)])[_0x30c54e(0x15a)](HELP_FOOTER_MESSAGE)['options'](_0x5f52ab)[_0x30c54e(0x1c1)](_0x3238e6[_0x30c54e(0x14d)])['argv'];};async function inputValidation(_0x3230a5,_0x57d7f5){const _0x588a23=a17_0x4a0502,_0x25176f={'LkBra':function(_0x5f4a0d,_0x57496c){return _0x5f4a0d+_0x57496c;},'fKmxU':'Success','yhEWg':_0x588a23(0x164),'oNnYR':function(_0xcf721,_0x372d83){return _0xcf721||_0x372d83;},'xFVLo':_0x588a23(0x1cc),'FJhPo':_0x588a23(0x16f),'gngGy':'error','zlmNY':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','HWZdY':_0x588a23(0x17d),'XgyRc':'will\x20be\x20created','jtrRm':'cloud-provider','bhtKX':_0x588a23(0x219),'bJMRJ':_0x588a23(0x181),'houLZ':function(_0x251eb3,_0x4a919f){return _0x251eb3===_0x4a919f;},'ahoeF':_0x588a23(0x220),'ISjlc':_0x588a23(0x1f7),'FxMJA':function(_0x2ceecc,_0x140a4d){return _0x2ceecc!==_0x140a4d;},'PkyuC':'OWRRK','enVJV':'fPJII','AGhqp':_0x588a23(0x198),'VriON':_0x588a23(0x154),'Udrfh':_0x588a23(0x17c),'VkTSw':function(_0x12dbfe,_0x42527d){return _0x12dbfe!==_0x42527d;},'qaMaL':_0x588a23(0x194),'zgPcr':function(_0x9925c8,_0x44bb4e){return _0x9925c8>_0x44bb4e;},'VIsNh':function(_0x3f6985,_0x137edc){return _0x3f6985===_0x137edc;},'Ybjza':_0x588a23(0x1cd),'xdjly':_0x588a23(0x1b3),'gsZrL':function(_0x133526,_0x54affa,_0x2b19fe,_0x340f4d,_0x562c81,_0x15c7cc,_0x37eef4,_0x1d940b){return _0x133526(_0x54affa,_0x2b19fe,_0x340f4d,_0x562c81,_0x15c7cc,_0x37eef4,_0x1d940b);},'WIEGM':_0x588a23(0x1ed),'JMJjs':_0x588a23(0x1bc),'fnCnq':function(_0x2c2913,_0x523a67){return _0x2c2913===_0x523a67;},'VDzjP':_0x588a23(0x213),'nRWvc':_0x588a23(0x1ff),'bkcbt':_0x588a23(0x215),'vepaE':'lUIbd','SGSJN':_0x588a23(0x162),'YwbTJ':_0x588a23(0x172),'kiMHE':'jriGK','anJhC':_0x588a23(0x18f),'zFrVi':function(_0x2a0101,_0xc7a25e,_0x27f441){return _0x2a0101(_0xc7a25e,_0x27f441);},'qIxsN':function(_0x26ef23,_0x2a98ec,_0x29036c,_0x4d16e4,_0x4b57f8,_0x2733a3){return _0x26ef23(_0x2a98ec,_0x29036c,_0x4d16e4,_0x4b57f8,_0x2733a3);},'swXcx':'pre-check','KKGDO':_0x588a23(0x1f4),'nkWrY':_0x588a23(0x1a7),'IsssB':_0x588a23(0x1a2),'txnvf':function(_0x35cbd7,_0x131e93){return _0x35cbd7(_0x131e93);},'JbhBJ':function(_0x5acc9c,_0x9d8481){return _0x5acc9c!==_0x9d8481;},'UXWHy':'jefNR','LBSOe':function(_0x9251ad,_0x47f32b,_0x58ada2,_0x38a4d3,_0x10cd72,_0x1e9dfe,_0xe51b2a,_0x85e224){return _0x9251ad(_0x47f32b,_0x58ada2,_0x38a4d3,_0x10cd72,_0x1e9dfe,_0xe51b2a,_0x85e224);},'TFtrB':_0x588a23(0x17e),'OYBZP':function(_0x19dbff,_0x246ad7){return _0x19dbff!==_0x246ad7;},'EOOJY':'rXzql','ATTgo':function(_0x45feca,_0x54369c){return _0x45feca===_0x54369c;},'rprdR':_0x588a23(0x1f1),'rNHPD':_0x588a23(0x171),'wNBTP':function(_0x310cb6,_0x299fe1){return _0x310cb6!==_0x299fe1;},'mAqtd':_0x588a23(0x1b4),'wQcJL':_0x588a23(0x138),'sqoHn':function(_0x1a9e4f,_0x29e814,_0x2ee9db,_0x150571,_0x16d05c,_0x867da7,_0x1581b5,_0x2c3507){return _0x1a9e4f(_0x29e814,_0x2ee9db,_0x150571,_0x16d05c,_0x867da7,_0x1581b5,_0x2c3507);}};let _0x113472;try{if(_0x25176f[_0x588a23(0x18b)](_0x25176f[_0x588a23(0x161)],_0x25176f[_0x588a23(0x208)]))_0x3ff460[_0x588a23(0x1db)](_0x588a23(0x1f3)+_0x32267f[_0x588a23(0x187)]+'\x20'),_0x6fbd24[_0x588a23(0x1fe)]=_0x1b856c['CLOUD_PROVIDER'];else{if(_0x3230a5['clusterName']||_0x3230a5[_0x588a23(0x1fe)]||_0x3230a5[_0x588a23(0x219)]){if(_0x25176f[_0x588a23(0x16e)](_0x25176f[_0x588a23(0x12d)],_0x25176f['enVJV'])){const _0x19c37f=[];!_0x3230a5[_0x588a23(0x1e1)]&&(_0x25176f['FxMJA'](_0x25176f[_0x588a23(0x136)],_0x25176f[_0x588a23(0x136)])?_0xd171f3['error'](_0x588a23(0x205)+_0x2d47db['error'][_0x588a23(0x13f)]):_0x19c37f[_0x588a23(0x132)](_0x25176f[_0x588a23(0x178)]));;if(!_0x3230a5[_0x588a23(0x1fe)]){if(_0x25176f[_0x588a23(0x16e)](_0x25176f['VriON'],_0x25176f['Udrfh']))_0x19c37f[_0x588a23(0x132)](_0x25176f[_0x588a23(0x1e2)]);else{const {header:_0x1c3259,response:_0x1b0c09}=_0x38580b,{status:_0x2f5e95,data:_0x31f542,error:_0x31f812}=_0x1b0c09;_0x39bf34+=_0x1c3259+'\x20#'+_0x25176f[_0x588a23(0x193)](_0x490dda,0x1)+'\x0a',_0x5daf30+='Status:\x20'+(_0x2f5e95?_0x25176f[_0x588a23(0x1e0)]:_0x25176f[_0x588a23(0x1fc)])+'\x0a',_0x52b4fa+=_0x588a23(0x1dd)+_0x25176f[_0x588a23(0x1e4)](_0x31f542,_0x25176f[_0x588a23(0x173)])+'\x0a',_0x31f812&&(_0x4afb96+=_0x25176f['FJhPo'],_0x5c5141+=_0x588a23(0x127)+(_0x31f812[_0x588a23(0x13e)]||_0x25176f['xFVLo'])+'\x0a',_0x46c48b+='\x20\x20Code:\x20'+(_0x31f812[_0x588a23(0x1bf)]||_0x25176f[_0x588a23(0x173)])+'\x0a',_0x1ade80+=_0x588a23(0x21b)+(_0x31f812[_0x588a23(0x13f)]||_0x25176f['xFVLo'])+'\x0a'),_0x55c585+='\x0a\x0a';}};if(!_0x3230a5[_0x588a23(0x219)]){if(_0x25176f['VkTSw'](_0x25176f[_0x588a23(0x1be)],_0x25176f[_0x588a23(0x1be)])){const _0x2f91ac={};_0x2f91ac[_0x588a23(0x209)]=_0x41b6ec[_0x588a23(0x151)],_0x2f91ac[_0x588a23(0x13e)]=_0x3e15e7,_0xada77b['sendEventToBackend'](_0x5432c4,_0x2f91ac,_0x25176f[_0x588a23(0x14b)],!![]);}else _0x19c37f[_0x588a23(0x132)](_0x25176f[_0x588a23(0x1de)]);};_0x25176f[_0x588a23(0x1b5)](_0x19c37f['length'],0x0)&&(_0x25176f[_0x588a23(0x170)](_0x25176f['Ybjza'],_0x25176f[_0x588a23(0x15d)])?(_0x296e17[_0x588a23(0x1cf)](_0x25176f[_0x588a23(0x18e)]),_0x1e482e[_0x588a23(0x14c)](0x1)):(_0x113472='Missing\x20required\x20arguments:\x20'+_0x19c37f[_0x588a23(0x16b)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x25176f['gsZrL'](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f[_0x588a23(0x217)],_0x25176f[_0x588a23(0x1a9)],_0x25176f[_0x588a23(0x14b)]),logger[_0x588a23(0x1cf)](_0x113472),process[_0x588a23(0x14c)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x588a23(0x1b1)](_0x3230a5['cloudProvider']['toLowerCase']())&&(_0x25176f['fnCnq'](_0x25176f[_0x588a23(0x1fd)],_0x25176f[_0x588a23(0x1fd)])?(_0x113472=_0x25176f[_0x588a23(0x1f6)],await _0x25176f[_0x588a23(0x212)](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f[_0x588a23(0x217)],_0x25176f['bkcbt'],_0x25176f[_0x588a23(0x14b)]),logger[_0x588a23(0x1cf)](_0x113472),!_0x3230a5['cloudProvider']&&(_0x25176f['VkTSw'](_0x25176f[_0x588a23(0x14a)],_0x25176f[_0x588a23(0x20f)])?(logger[_0x588a23(0x1db)](_0x588a23(0x1f3)+DEFAULT_CLUSTER_DETAILS[_0x588a23(0x187)]+'\x20'),_0x3230a5['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x588a23(0x187)]):_0x4a39f0[_0x588a23(0x14c)](0x1))):_0xeba83c+=_0x588a23(0x195)+_0x1fccc4[_0x588a23(0x1e1)]+'\x20'+(_0x48305e?_0x25176f[_0x588a23(0x17a)]:_0x25176f[_0x588a23(0x137)])+'\x0a\x0a'),global_registry[_0x588a23(0x1e1)]=_0x3230a5[_0x588a23(0x1e1)],global_registry['cloudProvider']=_0x3230a5[_0x588a23(0x1fe)],global_registry[_0x588a23(0x21e)]=_0x3230a5[_0x588a23(0x219)];}else _0x5d8f13[_0x588a23(0x132)](_0x25176f[_0x588a23(0x1e2)]);}else{if(_0x3230a5[_0x588a23(0x201)]){if(_0x25176f[_0x588a23(0x18b)](_0x25176f[_0x588a23(0x184)],_0x25176f[_0x588a23(0x1b0)]))_0x2a9a68[_0x588a23(0x132)](_0x25176f['bhtKX']);else{global_registry['gridProfile']=_0x3230a5['gridProfile'],logger[_0x588a23(0x1c8)](_0x588a23(0x1e5)+_0x3230a5[_0x588a23(0x201)]);const _0x5dd609=_0x588a23(0x200)+AG_API_URL+_0x588a23(0x1d8),_0x4f0b6d={};_0x4f0b6d['method']=_0x25176f[_0x588a23(0x1cb)],_0x4f0b6d['headers']=global_registry[_0x588a23(0x19b)],_0x4f0b6d[_0x588a23(0x16a)]=![];const _0x12afdc=_0x4f0b6d,_0x302690=await _0x25176f[_0x588a23(0x142)](got,_0x5dd609,_0x12afdc),_0x412956=await _0x25176f[_0x588a23(0x163)](responseValidation,_0x302690,_0x25176f[_0x588a23(0x1e3)],_0x25176f[_0x588a23(0x204)],_0x3230a5,_0x57d7f5);let _0x4eba0e={};if(_0x25176f[_0x588a23(0x167)](_0x412956,0xc8)){if(_0x25176f[_0x588a23(0x16e)](_0x25176f['nkWrY'],_0x25176f['IsssB'])){const _0x4c119d=JSON['parse'](_0x302690['body']),_0x40d994=_0x4c119d[_0x588a23(0x141)](_0x1fdf9e=>_0x1fdf9e['name']===_0x3230a5[_0x588a23(0x201)])||null;_0x25176f[_0x588a23(0x185)](isUndefined,_0x40d994)?_0x25176f['JbhBJ'](_0x25176f[_0x588a23(0x189)],_0x25176f[_0x588a23(0x189)])?_0x20be69+=_0x588a23(0x195)+_0x18a4c7[_0x588a23(0x1e1)]+_0x588a23(0x13c):(_0x113472=_0x588a23(0x177)+_0x3230a5[_0x588a23(0x201)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x25176f[_0x588a23(0x131)](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f['WIEGM'],_0x25176f[_0x588a23(0x221)],_0x25176f['gngGy']),logger[_0x588a23(0x1cf)](_0x113472),process[_0x588a23(0x14c)](0x1)):_0x25176f[_0x588a23(0x12f)](_0x25176f[_0x588a23(0x1fb)],_0x25176f[_0x588a23(0x1fb)])?_0x4facce[_0x588a23(0x132)](_0x25176f[_0x588a23(0x178)]):_0x4eba0e=_0x40d994;}else _0x155938=_0x8f2e1f;}else _0x25176f['ATTgo'](_0x25176f[_0x588a23(0x1df)],_0x25176f[_0x588a23(0x1df)])?process[_0x588a23(0x14c)](0x1):_0x12f861[_0x588a23(0x1db)](_0x588a23(0x160)+_0x43f2a5[_0x588a23(0x1e1)]+_0x588a23(0x145));const _0x41fe81={};_0x41fe81[_0x588a23(0x209)]=WS_EVENTS[_0x588a23(0x151)],_0x41fe81[_0x588a23(0x13e)]=_0x25176f[_0x588a23(0x1f2)],webSocketUtils[_0x588a23(0x129)](_0x57d7f5,_0x41fe81),global_registry['cloudProvider']=_0x4eba0e[_0x588a23(0x1fe)],global_registry[_0x588a23(0x21e)]=_0x4eba0e['region'],global_registry[_0x588a23(0x1e1)]=_0x4eba0e[_0x588a23(0x1e1)];}}else _0x25176f[_0x588a23(0x16d)](_0x25176f[_0x588a23(0x1c6)],_0x25176f['mAqtd'])?(_0x327fb9[_0x588a23(0x1db)]('['+_0x4c3b57+_0x588a23(0x133)+_0x2140eb[_0x588a23(0x12c)]+'\x20data\x20:\x20'+_0xe76745['data']+'\x20error\x20:\x20'+_0x1b0026['error']),_0x24c73d[_0x588a23(0x1cf)]&&_0x15949c[_0x588a23(0x1cf)](_0x588a23(0x205)+_0x5d8545[_0x588a23(0x1cf)][_0x588a23(0x13f)])):(logger[_0x588a23(0x1cf)](_0x25176f[_0x588a23(0x18e)]),process[_0x588a23(0x14c)](0x1));}}}catch(_0x3350ef){_0x25176f[_0x588a23(0x16d)](_0x25176f[_0x588a23(0x18a)],_0x25176f[_0x588a23(0x18a)])?(_0x53c68a+=_0x25176f[_0x588a23(0x157)],_0xa180bb+=_0x588a23(0x127)+(_0x2ae7b9[_0x588a23(0x13e)]||_0x25176f[_0x588a23(0x173)])+'\x0a',_0x51058d+=_0x588a23(0x19c)+(_0x5ce593[_0x588a23(0x1bf)]||_0x25176f[_0x588a23(0x173)])+'\x0a',_0x5a7056+='\x20\x20Stack:\x20'+(_0x46343[_0x588a23(0x13f)]||_0x25176f[_0x588a23(0x173)])+'\x0a'):(_0x113472=_0x588a23(0x1ef)+_0x3350ef+':\x20'+_0x3350ef[_0x588a23(0x13f)],logger['error'](_0x113472),await _0x25176f[_0x588a23(0x1a4)](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f[_0x588a23(0x217)],_0x25176f['bkcbt'],_0x25176f[_0x588a23(0x14b)]),process['exit'](0x1));}}function printResponse(_0x2febc3,_0x4c7004){const _0x139250=a17_0x4a0502,_0x4799d5={};_0x4799d5['SxKrR']=_0x139250(0x1ce),_0x4799d5['MNEvL']=_0x139250(0x1e6),_0x4799d5[_0x139250(0x148)]=_0x139250(0x202),_0x4799d5[_0x139250(0x20b)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4799d5[_0x139250(0x1d0)]=_0x139250(0x20a),_0x4799d5[_0x139250(0x1a6)]=_0x139250(0x1c1),_0x4799d5[_0x139250(0x1b8)]=function(_0x176f3a,_0x2f724a){return _0x176f3a!==_0x2f724a;},_0x4799d5['TjeGP']=_0x139250(0x1ea),_0x4799d5[_0x139250(0x1c4)]=_0x139250(0x12a);const _0x3376c5=_0x4799d5;logger[_0x139250(0x1db)]('['+_0x2febc3+_0x139250(0x133)+_0x4c7004['status']+_0x139250(0x1bd)+_0x4c7004[_0x139250(0x18c)]+_0x139250(0x211)+_0x4c7004[_0x139250(0x1cf)]);if(_0x4c7004[_0x139250(0x1cf)]){if(_0x3376c5[_0x139250(0x1b8)](_0x3376c5[_0x139250(0x17f)],_0x3376c5[_0x139250(0x1c4)]))logger[_0x139250(0x1cf)](_0x139250(0x205)+_0x4c7004[_0x139250(0x1cf)][_0x139250(0x13f)]);else{const _0x2d075e={};_0x2d075e[_0x139250(0x1d9)]=_0x3376c5[_0x139250(0x1e7)],_0x2d075e['type']=_0x3376c5[_0x139250(0x135)];const _0x1a2122={};_0x1a2122['description']=_0x3376c5[_0x139250(0x148)],_0x1a2122[_0x139250(0x209)]=_0x3376c5[_0x139250(0x135)];const _0x5572f2={};_0x5572f2['description']=_0x3376c5[_0x139250(0x20b)],_0x5572f2[_0x139250(0x209)]=_0x3376c5[_0x139250(0x135)];const _0x5f4c81={};_0x5f4c81[_0x139250(0x1d9)]=_0x3376c5[_0x139250(0x1d0)],_0x5f4c81[_0x139250(0x209)]=_0x3376c5[_0x139250(0x135)];const _0x373c5a={};return _0x373c5a[_0x139250(0x181)]=_0x2d075e,_0x373c5a['cloud-provider']=_0x1a2122,_0x373c5a[_0x139250(0x219)]=_0x5572f2,_0x373c5a[_0x139250(0x1f4)]=_0x5f4c81,_0x1708dd['usage'](_0x302455[_0x139250(0x1c7)])[_0x139250(0x15a)](_0x43057a)['options'](_0x373c5a)[_0x139250(0x1c1)](_0x3376c5['AEtri'])[_0x139250(0x1d4)];}}}async function generateReport(_0x57bdc6,_0x485bf3){const _0x5830f4=a17_0x4a0502,_0x3b7cfb={'QjpNd':function(_0x4226dd,_0x258050){return _0x4226dd+_0x258050;},'yGYZs':'Success','jKUam':_0x5830f4(0x164),'tlMbl':function(_0x598074,_0x3e57ab){return _0x598074||_0x3e57ab;},'sFXQM':'N/A','sTXmH':'Error\x20Details:\x0a','lTIXA':_0x5830f4(0x20e),'UwXPj':function(_0x4ff1ab,_0x35bdde){return _0x4ff1ab!=_0x35bdde;},'dcpLs':_0x5830f4(0x17d),'wifRS':'will\x20be\x20created','IdfFw':function(_0x28ed01){return _0x28ed01();}};let _0x37a6d3=_0x5830f4(0x149)+global_registry['cloudProvider']+_0x5830f4(0x1f8);return _0x57bdc6[_0x5830f4(0x1d2)]((_0x583703,_0x17906b)=>{const _0x17bfb2=_0x5830f4,{header:_0x240605,response:_0xf975b7}=_0x583703,{status:_0x4bc4a3,data:_0x4015f5,error:_0x276184}=_0xf975b7;_0x37a6d3+=_0x240605+'\x20#'+_0x3b7cfb[_0x17bfb2(0x1e8)](_0x17906b,0x1)+'\x0a',_0x37a6d3+=_0x17bfb2(0x1aa)+(_0x4bc4a3?_0x3b7cfb[_0x17bfb2(0x13b)]:_0x3b7cfb[_0x17bfb2(0x166)])+'\x0a',_0x37a6d3+=_0x17bfb2(0x1dd)+_0x3b7cfb[_0x17bfb2(0x207)](_0x4015f5,_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a',_0x276184&&(_0x37a6d3+=_0x3b7cfb[_0x17bfb2(0x1ae)],_0x37a6d3+=_0x17bfb2(0x127)+(_0x276184['message']||_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a',_0x37a6d3+=_0x17bfb2(0x19c)+(_0x276184[_0x17bfb2(0x1bf)]||_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a',_0x37a6d3+=_0x17bfb2(0x21b)+(_0x276184[_0x17bfb2(0x13f)]||_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a'),_0x37a6d3+='\x0a\x0a';}),_0x37a6d3+=_0x3b7cfb[_0x5830f4(0x144)],_0x3b7cfb[_0x5830f4(0x15f)](_0x485bf3,null)?_0x37a6d3+=_0x5830f4(0x195)+global_registry['clusterName']+'\x20'+(_0x485bf3?_0x3b7cfb[_0x5830f4(0x1c5)]:_0x3b7cfb[_0x5830f4(0x1ba)])+'\x0a\x0a':_0x37a6d3+=_0x5830f4(0x195)+global_registry[_0x5830f4(0x1e1)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x37a6d3+=_0x3b7cfb[_0x5830f4(0x1ab)](getSystemMetaData),_0x37a6d3;};function a17_0x5a30(){const _0xa7e6b5=['2881852oZYhGc','help','64390YPHLjE','YUXRc','jYWds','dcpLs','mAqtd','pre_check','debug','gMCwL','HUTYN','anJhC','N/A','dnLxR','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','error','AbICk','credential-not-found','forEach','grid','argv','init','qkUOL','sFXQM','/packages/cli/get-all-grid-profiles','description','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','info','replace','Message:\x20','bhtKX','rprdR','fKmxU','clusterName','jtrRm','swXcx','oNnYR','grid\x20profile\x20flow\x20','string','SxKrR','QjpNd','builder','FbQrI','eeEGt','EHdrB','pre-check-grid-called','VbORJ','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','TLSv1_2_client_method','iqypm','rNHPD','Setting\x20cloud\x20provider\x20as\x20','grid-profile','split','nRWvc','TWddK','\x20===\x0a\x0a','`\x20,error\x20:\x20','../../utils/utilityMethods','EOOJY','yhEWg','VDzjP','cloudProvider','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','https://','gridProfile','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','writeFileSync','KKGDO','error\x20stack\x20:\x20','getUTCMonth','tlMbl','ISjlc','type','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','wrqwA','xyuzH','lmrJB','Cluster\x20details\x0a-----------------------\x0a','SGSJN','unable\x20to\x20verify\x20if\x20cluster\x20`','\x20error\x20:\x20','gsZrL','HCZlU','1524010BtUTRh','cloud-provider-not-supported','`\x20is\x20present\x20in\x20region\x20`','WIEGM','805269MVPxGU','region','isTrialGridAccessible','\x20\x20Stack:\x20','ERROR','isClusterPresent','clusterRegion','stringify','ufhcM','TFtrB','\x20\x20Message:\x20','connectionTimeout','sendEventToBackend','jOuZV','Tool\x20Installed','status','PkyuC','zsHKg','OYBZP','BaCkb','LBSOe','push',']\x20status\x20:\x20','cloud-provider','MNEvL','AGhqp','XgyRc','PsMrn','FkNiS','../../cloudproviders/utils','yGYZs','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Whitelisted\x20browserstack','message','stack','delay','find','zFrVi','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lTIXA','`\x20already\x20exists','INFO','grxkk','zgmjR','===\x20Precheck\x20Report\x20-\x20','vepaE','gngGy','exit','aySkk','header','\x20region\x20-\x20','ZkcXn','LOG','SSL\x20Configured','hsFAV','mqkPh','1|0|2|4|3','desc','FJhPo','GRMeS','2110620YwgwCi','epilogue','fxFAf','uuid','xdjly','../../config/constants','UwXPj','Cluster\x20`','ahoeF','bzQra','qIxsN','Failure','UqwUg','jKUam','fnCnq','77938lXPmsH','EQjsL','throwHttpErrors','join','checkAccess','wNBTP','FxMJA','Error\x20Details:\x0a','VIsNh','Grid\x20profile\x20fetched\x20for\x20pre-check','MCDFd','xFVLo','getUTCFullYear','password','iVJqK','Invalid\x20input.\x20grid\x20profiles:\x20','bJMRJ','kyPSY','HWZdY','RyEVk','KYgbA','is\x20already\x20present','pre-check-grid-profile-empty','TjeGP','rKwUp','cluster-name','4442896bGvwVf','bstackUsername','YwbTJ','txnvf','NpxzG','CLOUD_PROVIDER','CYypC','UXWHy','wQcJL','houLZ','data','.txt','zlmNY','GET','HcdgJ','HmqTc','WUpVc','LkBra','UvKJe','Cluster\x20','bstackAccesskey','command','mHTlR','response','stack\x20trace\x20','authHeader','\x20\x20Code:\x20','utf-8','parse','getUTCDate','Browserstack','../../utils/instrumentationUtils','xvEBm','toolInstalledResp','sqoHn','isTls1_2_SUPPORTED','AEtri','uxHMu','6CYREUk','JMJjs','Status:\x20','IdfFw','dummy-grid','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','sTXmH','Report\x20saved\x20in\x20','kiMHE','includes','pre-check-failed','IQbaZ','ARaPk','zgPcr','eXhBY','existsSync','UwHgy','isCliToolInstalled','wifRS','readFileSync','pre-check-cluster-args-not-passed','\x20data\x20:\x20','qaMaL','code'];a17_0x5a30=function(){return _0xa7e6b5;};return a17_0x5a30();}exports['handler']=async function(_0x4c4387){const _0x2a839c=a17_0x4a0502,_0x4c7903={'YUXRc':function(_0x1f18ba){return _0x1f18ba();},'HmqTc':_0x2a839c(0x143),'WUUlz':function(_0x1ff7ba,_0x363978,_0x25b3d8,_0x226576,_0x5a669f,_0x1be9da,_0xa70d20,_0x20aa94){return _0x1ff7ba(_0x363978,_0x25b3d8,_0x226576,_0x5a669f,_0x1be9da,_0xa70d20,_0x20aa94);},'CYypC':_0x2a839c(0x1ed),'kyPSY':_0x2a839c(0x1d1),'eXhBY':_0x2a839c(0x1cf),'UqwUg':function(_0xa4a44c,_0x26f91a,_0x1a7779,_0x5a98cf,_0x5e6469,_0x4d2916,_0x418808){return _0xa4a44c(_0x26f91a,_0x1a7779,_0x5a98cf,_0x5e6469,_0x4d2916,_0x418808);},'GRMeS':'<UsernamePlaceholder>','WUpVc':'<PasswordPlaceholder>','HcdgJ':function(_0x3b6ef4,_0x375c17,_0xae3e4c){return _0x3b6ef4(_0x375c17,_0xae3e4c);},'HUTYN':function(_0x4f9857,_0x184ab0,_0x20ebb9,_0x364ea1,_0x363b09,_0x1e556a,_0xee26fd){return _0x4f9857(_0x184ab0,_0x20ebb9,_0x364ea1,_0x363b09,_0x1e556a,_0xee26fd);},'KYach':_0x2a839c(0x1ac),'rlNbP':_0x2a839c(0x1a3),'grxkk':_0x2a839c(0x155),'zsHKg':function(_0x2b1feb,_0x16d50e,_0x24ba84,_0x1d56e6,_0x121a75,_0x20306f,_0x19a872,_0x498a25){return _0x2b1feb(_0x16d50e,_0x24ba84,_0x1d56e6,_0x121a75,_0x20306f,_0x19a872,_0x498a25);},'eeEGt':function(_0x517052,_0x509b60,_0x2fe75a){return _0x517052(_0x509b60,_0x2fe75a);},'NpxzG':'accessResp','UHhui':_0x2a839c(0x21a),'zWvpx':function(_0x5df03a,_0x5d15ce){return _0x5df03a(_0x5d15ce);},'hsFAV':_0x2a839c(0x1f0),'EHdrB':function(_0x5c572f,_0x45dd85,_0x38075f){return _0x5c572f(_0x45dd85,_0x38075f);},'EQjsL':_0x2a839c(0x1a5),'CvNMN':_0x2a839c(0x12b),'VbORJ':'User\x20Access','fxFAf':_0x2a839c(0x13d),'rKwUp':_0x2a839c(0x152),'lmrJB':function(_0x5f120a,_0x2ab61f){return _0x5f120a+_0x2ab61f;},'RyEVk':_0x2a839c(0x19d),'qkUOL':function(_0x4a7893,_0x4016ad,_0x1e702b,_0x3d76d8,_0x4423d7,_0x2740f4,_0x780b41){return _0x4a7893(_0x4016ad,_0x1e702b,_0x3d76d8,_0x4423d7,_0x2740f4,_0x780b41);},'BaCkb':_0x2a839c(0x1b2)};let _0x52750b,_0x37e887;try{global_registry['requestId']=_0x4c7903['YUXRc'](uuidv4);!fs[_0x2a839c(0x1b7)](_0x4c7903[_0x2a839c(0x1c3)](getCredentialsPath))&&(_0x37e887=_0x4c7903[_0x2a839c(0x191)],logger[_0x2a839c(0x1cf)](_0x37e887),await _0x4c7903['WUUlz'](reportToGalactusAndSendToEDS,_0x4c4387,_0x52750b,_0x37e887,messageTypes['ERROR'],_0x4c7903['CYypC'],_0x4c7903[_0x2a839c(0x179)],_0x4c7903[_0x2a839c(0x1b6)]),process[_0x2a839c(0x14c)](0x1));_0x4c7903[_0x2a839c(0x165)](sendInstrumentationEvent,_0x4c4387,_0x4c7903['CYypC'],messageTypes[_0x2a839c(0x146)],null,null,_0x4c4387);const _0x4dd8f8=JSON[_0x2a839c(0x19e)](fs[_0x2a839c(0x1bb)](_0x4c7903[_0x2a839c(0x1c3)](getCredentialsPath)));global_registry[_0x2a839c(0x183)]=_0x4dd8f8[_0x2a839c(0x1a0)]['username'],global_registry[_0x2a839c(0x196)]=_0x4dd8f8[_0x2a839c(0x1a0)][_0x2a839c(0x175)];const _0x497cb4=WS_ENDPOINT[_0x2a839c(0x1dc)](_0x4c7903[_0x2a839c(0x158)],_0x4dd8f8[_0x2a839c(0x1a0)]['username'])[_0x2a839c(0x1dc)](_0x4c7903[_0x2a839c(0x192)],_0x4dd8f8[_0x2a839c(0x1a0)][_0x2a839c(0x175)]),_0x4bc3a7={};_0x4bc3a7['WebSocket']=ws,_0x4bc3a7[_0x2a839c(0x128)]=0x36ee80,_0x52750b=new ReconnectingWebSocket(_0x497cb4,[],_0x4bc3a7),global_registry[_0x2a839c(0x19b)]=_0x4c7903[_0x2a839c(0x190)](getAuthHeader,global_registry[_0x2a839c(0x183)],global_registry[_0x2a839c(0x196)]),await _0x4c7903['HcdgJ'](inputValidation,_0x4c4387,_0x52750b),logger[_0x2a839c(0x1db)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x2a839c(0x1fe)]+_0x2a839c(0x14f)+global_registry[_0x2a839c(0x21e)]);let _0x3bdc4d=await _0x4c7903[_0x2a839c(0x1ca)](getCloudProviderObjectWithOutInit,global_registry[_0x2a839c(0x1fe)],global_registry[_0x2a839c(0x1e1)],_0x4c7903['KYach'],_0x52750b,webSocketUtils,_0x4c4387);const _0x535164=await _0x3bdc4d[_0x2a839c(0x1b9)]();_0x4c7903[_0x2a839c(0x190)](printResponse,_0x4c7903['rlNbP'],_0x535164),_0x3bdc4d=await _0x3bdc4d[_0x2a839c(0x1d5)]();let _0x4e5fce=![];try{_0x4e5fce=await _0x3bdc4d[_0x2a839c(0x21d)]();}catch(_0x21ba51){const _0x3322e3=_0x4c7903[_0x2a839c(0x147)][_0x2a839c(0x1f5)]('|');let _0x5cd0b1=0x0;while(!![]){switch(_0x3322e3[_0x5cd0b1++]){case'0':_0x4e5fce=null;continue;case'1':_0x37e887=_0x2a839c(0x210)+global_registry[_0x2a839c(0x1e1)]+_0x2a839c(0x216)+global_registry[_0x2a839c(0x21e)]+_0x2a839c(0x1f9)+_0x21ba51;continue;case'2':logger[_0x2a839c(0x1cf)](_0x37e887);continue;case'3':await _0x4c7903[_0x2a839c(0x12e)](reportToGalactusAndSendToEDS,_0x4c4387,_0x52750b,_0x37e887,messageTypes[_0x2a839c(0x21c)],_0x4c7903[_0x2a839c(0x188)],'cluster-check-failed-'+global_registry[_0x2a839c(0x1fe)],_0x4c7903[_0x2a839c(0x1b6)]);continue;case'4':_0x37e887+='\x0a'+JSON[_0x2a839c(0x21f)](_0x21ba51[_0x2a839c(0x13f)]);continue;}break;}}_0x4e5fce&&logger['info'](_0x2a839c(0x160)+global_registry[_0x2a839c(0x1e1)]+'`\x20already\x20exists');const _0x59e908=await _0x3bdc4d[_0x2a839c(0x16c)]();_0x4c7903[_0x2a839c(0x1eb)](printResponse,_0x4c7903[_0x2a839c(0x186)],_0x59e908);const _0x1bbb72=await _0x4c7903[_0x2a839c(0x1c3)](curlRequest);_0x4c7903[_0x2a839c(0x1eb)](printResponse,_0x4c7903['UHhui'],_0x1bbb72);const _0x3ce6dc=await _0x4c7903['zWvpx'](isTlsSupported,_0x4c7903[_0x2a839c(0x153)]);_0x4c7903[_0x2a839c(0x1ec)](printResponse,_0x4c7903[_0x2a839c(0x169)],_0x3ce6dc);const _0x5f4b75={};_0x5f4b75['header']=_0x4c7903['CvNMN'],_0x5f4b75[_0x2a839c(0x199)]=_0x535164;const _0xd628d9={};_0xd628d9[_0x2a839c(0x14e)]=_0x4c7903[_0x2a839c(0x1ee)],_0xd628d9[_0x2a839c(0x199)]=_0x59e908;const _0x321665={};_0x321665[_0x2a839c(0x14e)]=_0x4c7903[_0x2a839c(0x15b)],_0x321665[_0x2a839c(0x199)]=_0x1bbb72;const _0x285a57={};_0x285a57[_0x2a839c(0x14e)]=_0x4c7903[_0x2a839c(0x180)],_0x285a57[_0x2a839c(0x199)]=_0x3ce6dc;const _0x47ea08=[_0x5f4b75,_0xd628d9,_0x321665,_0x285a57],_0x54f831=await _0x4c7903[_0x2a839c(0x1eb)](generateReport,_0x47ea08,_0x4e5fce),_0x6dc375=new Date(),_0x5880f=_0x6dc375[_0x2a839c(0x174)]()+'_'+_0x4c7903[_0x2a839c(0x20d)](_0x6dc375[_0x2a839c(0x206)](),0x1)+'_'+_0x6dc375[_0x2a839c(0x19f)]()+'_'+_0x6dc375['getUTCHours']()+'_'+_0x6dc375['getUTCMinutes'](),_0x4fee7c='log/report_'+_0x5880f+_0x2a839c(0x18d);fs[_0x2a839c(0x203)](_0x4fee7c,_0x54f831,_0x4c7903[_0x2a839c(0x17b)]),logger[_0x2a839c(0x1db)](_0x2a839c(0x1af)+_0x4fee7c),process[_0x2a839c(0x14c)](0x0);}catch(_0x17ed31){let _0x2ea738='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x17ed31+'\x20';logger[_0x2a839c(0x1cf)](_0x2ea738),_0x2ea738+='\x0a'+JSON['stringify'](_0x17ed31[_0x2a839c(0x13f)]),logger['debug'](_0x2a839c(0x19a)+_0x17ed31[_0x2a839c(0x13f)]);if(_0x52750b){const _0x7cad={};_0x7cad[_0x2a839c(0x209)]=WS_EVENTS[_0x2a839c(0x151)],_0x7cad[_0x2a839c(0x13e)]=_0x2ea738,webSocketUtils['sendEventToBackend'](_0x52750b,_0x7cad,_0x4c7903[_0x2a839c(0x1b6)],!![]);}await webSocketUtils[_0x2a839c(0x140)](0x7d0);const _0x52181e={};_0x52181e[_0x2a839c(0x1cf)]=_0x2ea738,await _0x4c7903[_0x2a839c(0x1d6)](sendInstrumentationEvent,_0x4c4387,_0x4c7903[_0x2a839c(0x188)],messageTypes[_0x2a839c(0x21c)],_0x4c7903[_0x2a839c(0x130)],_0x52181e,_0x4c4387),process[_0x2a839c(0x14c)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a18_0x437e(_0xccea93,_0x1c6ec9){const _0x5ca1f5=a18_0x5ca1();return a18_0x437e=function(_0x437ebe,_0x403d42){_0x437ebe=_0x437ebe-0x118;let _0x1f54b8=_0x5ca1f5[_0x437ebe];return _0x1f54b8;},a18_0x437e(_0xccea93,_0x1c6ec9);}const a18_0x170c23=a18_0x437e;(function(_0x171090,_0x342e84){const _0x161c5b=a18_0x437e,_0x4ed3af=_0x171090();while(!![]){try{const _0x331efb=parseInt(_0x161c5b(0x124))/0x1*(-parseInt(_0x161c5b(0x11f))/0x2)+-parseInt(_0x161c5b(0x11d))/0x3+parseInt(_0x161c5b(0x11b))/0x4*(-parseInt(_0x161c5b(0x121))/0x5)+-parseInt(_0x161c5b(0x118))/0x6*(parseInt(_0x161c5b(0x119))/0x7)+-parseInt(_0x161c5b(0x125))/0x8*(parseInt(_0x161c5b(0x127))/0x9)+parseInt(_0x161c5b(0x12d))/0xa+parseInt(_0x161c5b(0x11e))/0xb;if(_0x331efb===_0x342e84)break;else _0x4ed3af['push'](_0x4ed3af['shift']());}catch(_0x5229e9){_0x4ed3af['push'](_0x4ed3af['shift']());}}}(a18_0x5ca1,0xbe5aa));function a18_0x5ca1(){const _0x2a1e3f=['3710871aSFZwF','40349661PndRNg','2858thqsbz','builder','36115Ihssak','demandCommand','start','76TrsLMK','230696TzuURp','command','270fwNSgm','recommendCommands','help','mglbs','Start\x20an\x20existing\x20Automation\x20grid.','desc','5672430JWbHKC','epilogue','commandDir','78kbcrjz','627620OfwEzR','QREOq','44vXnEkb','usage'];a18_0x5ca1=function(){return _0x2a1e3f;};return a18_0x5ca1();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x170c23(0x126)]=a18_0x170c23(0x123),exports[a18_0x170c23(0x12c)]=a18_0x170c23(0x12b),exports[a18_0x170c23(0x120)]=function(_0x721e32){const _0x1bc0ca=a18_0x170c23,_0x34056e={};_0x34056e['mglbs']='start_commands',_0x34056e['QREOq']=_0x1bc0ca(0x129);const _0xfe2401=_0x34056e;return _0x721e32[_0x1bc0ca(0x11c)](HELP_HEADER_MESSAGE[_0x1bc0ca(0x123)])[_0x1bc0ca(0x12e)](HELP_FOOTER_MESSAGE)[_0x1bc0ca(0x12f)](_0xfe2401[_0x1bc0ca(0x12a)])[_0x1bc0ca(0x122)]()[_0x1bc0ca(0x128)]()['strict']()['help'](_0xfe2401[_0x1bc0ca(0x11a)]);},exports['handler']=function(_0x294f8a){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x23c734=a19_0x1860;(function(_0x1bd179,_0x128eb4){const _0x30110d=a19_0x1860,_0x2e50a5=_0x1bd179();while(!![]){try{const _0x2d1a85=parseInt(_0x30110d(0x199))/0x1+-parseInt(_0x30110d(0x18e))/0x2*(parseInt(_0x30110d(0x1ce))/0x3)+-parseInt(_0x30110d(0x1be))/0x4+-parseInt(_0x30110d(0x19c))/0x5*(parseInt(_0x30110d(0x1ab))/0x6)+-parseInt(_0x30110d(0x18c))/0x7*(-parseInt(_0x30110d(0x1b3))/0x8)+parseInt(_0x30110d(0x1b7))/0x9*(-parseInt(_0x30110d(0x1de))/0xa)+parseInt(_0x30110d(0x19f))/0xb;if(_0x2d1a85===_0x128eb4)break;else _0x2e50a5['push'](_0x2e50a5['shift']());}catch(_0x28ad52){_0x2e50a5['push'](_0x2e50a5['shift']());}}}(a19_0x530a,0x2349e));function a19_0x530a(){const _0x336756=['HDLdJ','builder','FSzus','skipTlsCertVerify','usage','grid-id','ERROR','bstackUsername','<PasswordPlaceholder>','type','stringify','start','existsSync','../../utils/createk8sClient','JKOfc','390770XOYpbD','desc','cloudProvider','user','replace','help','oRNmd','region','INFO','jksps','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../config/constants','729673wByVEb','addListeners','33342rllfWS','cTIxR','epilogue','vKfyh','Grid\x20started','gridId','exit','skip-tls-cert-verify','description','clusterName','efxJX','273687oPGHFK','clusterRegion','options','110GgcCNa','debug','../../cloudproviders/utils','2376528VtiSjO','yYdWv','readFileSync','bOUHl','unauthorised','init-not-called','../../utils/gridComponents','string','username','Pwpxl','IDWgo','TQILD','68682aVfZej','parse','start-grid-called','dqAuV','<UsernamePlaceholder>','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','statusCode','8IMyCwZ','error','HtWKS','Browserstack','18zaqHRb','name','info','../../utils/utilityMethods','body','argv','Starting\x20grid\x20','77672CxYBuC','AgvjV','../../config/logger','server-error','message','iWJwW','boolean','ErDNm','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','reconnecting-websocket','password','../../utils/instrumentationUtils','NouWg','stack','GwRUf','18lbCOUp'];a19_0x530a=function(){return _0x336756;};return a19_0x530a();}function a19_0x1860(_0x1cd714,_0x4a201f){const _0x530ade=a19_0x530a();return a19_0x1860=function(_0x18605d,_0xda3a57){_0x18605d=_0x18605d-0x186;let _0x3d99d5=_0x530ade[_0x18605d];return _0x3d99d5;},a19_0x1860(_0x1cd714,_0x4a201f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x23c734(0x1c8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x23c734(0x18b)),{logger}=require(a19_0x23c734(0x1c0)),{getCredentialsPath,getGridDetails}=require(a19_0x23c734(0x1ba)),{scaleUpHubDeployment}=require(a19_0x23c734(0x1a5)),{sendInstrumentationEvent}=require(a19_0x23c734(0x1ca)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x23c734(0x1dc)),{getCloudProviderObject}=require(a19_0x23c734(0x19e));exports['command']=a19_0x23c734(0x1b0),exports[a19_0x23c734(0x1df)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x23c734(0x1d0)]=function(_0x1a6bbd){const _0x315a3a=a19_0x23c734,_0xad4f42={};_0xad4f42[_0x315a3a(0x1cf)]=_0x315a3a(0x1c6),_0xad4f42['cTIxR']=_0x315a3a(0x1a6),_0xad4f42[_0x315a3a(0x1b5)]='Skip\x20insecure\x20cert\x20verification.',_0xad4f42[_0x315a3a(0x1cd)]=_0x315a3a(0x1c4),_0xad4f42[_0x315a3a(0x1c5)]=_0x315a3a(0x1e3);const _0x14b143=_0xad4f42,_0x515197={};_0x515197[_0x315a3a(0x196)]=_0x14b143[_0x315a3a(0x1cf)],_0x515197[_0x315a3a(0x1d8)]=_0x14b143[_0x315a3a(0x18f)];const _0x4edafa={};_0x4edafa[_0x315a3a(0x196)]=_0x14b143[_0x315a3a(0x1b5)],_0x4edafa[_0x315a3a(0x1d8)]=_0x14b143[_0x315a3a(0x1cd)],_0x4edafa['default']=![];const _0x10583e={};return _0x10583e[_0x315a3a(0x1d4)]=_0x515197,_0x10583e[_0x315a3a(0x195)]=_0x4edafa,_0x1a6bbd[_0x315a3a(0x1d3)](HELP_HEADER_MESSAGE[_0x315a3a(0x1da)])[_0x315a3a(0x190)](HELP_FOOTER_MESSAGE)[_0x315a3a(0x19b)](_0x10583e)[_0x315a3a(0x1e3)](_0x14b143[_0x315a3a(0x1c5)])[_0x315a3a(0x1bc)];},exports['handler']=async function(_0x58e652){const _0x3f1b8f=a19_0x23c734,_0x368c5f={'bOUHl':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','efxJX':function(_0xe49eb5){return _0xe49eb5();},'dqAuV':_0x3f1b8f(0x1c7),'JKOfc':function(_0x2efa69,_0x102fc2,_0x5d5afa,_0x662e87,_0x276488,_0x37714b,_0x3f5691){return _0x2efa69(_0x102fc2,_0x5d5afa,_0x662e87,_0x276488,_0x37714b,_0x3f5691);},'IDWgo':_0x3f1b8f(0x1ad),'jksps':_0x3f1b8f(0x1a4),'TQILD':_0x3f1b8f(0x1af),'ANmuS':_0x3f1b8f(0x1d7),'Pwpxl':'Adding\x20Websocket\x20listeners','zjIsd':function(_0x138722,_0x226d4b,_0x2a05bb,_0x55fd8d){return _0x138722(_0x226d4b,_0x2a05bb,_0x55fd8d);},'NouWg':function(_0x34f41a,_0x3e61b1,_0x271d57){return _0x34f41a(_0x3e61b1,_0x271d57);},'oRNmd':_0x3f1b8f(0x192),'FSzus':function(_0x3f9dbc,_0x1aee5d){return _0x3f9dbc===_0x1aee5d;},'lMhVW':_0x3f1b8f(0x18a),'yYdWv':_0x3f1b8f(0x1a3),'vKfyh':function(_0x4d4408,_0x5e1214,_0x4691a0,_0x2d1eeb,_0x18c908,_0x24577e,_0x3f1094){return _0x4d4408(_0x5e1214,_0x4691a0,_0x2d1eeb,_0x18c908,_0x24577e,_0x3f1094);},'AgvjV':'invalid-grid-id','iWJwW':_0x3f1b8f(0x1c1)};let _0x1190d5;try{!_0x58e652[_0x3f1b8f(0x193)]&&(logger[_0x3f1b8f(0x1b4)](_0x368c5f[_0x3f1b8f(0x1a2)]),process[_0x3f1b8f(0x194)](0x1));!fs[_0x3f1b8f(0x1db)](_0x368c5f[_0x3f1b8f(0x198)](getCredentialsPath))&&(logger[_0x3f1b8f(0x1b4)](_0x368c5f[_0x3f1b8f(0x1ae)]),await _0x368c5f[_0x3f1b8f(0x1dd)](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes['ERROR'],_0x368c5f[_0x3f1b8f(0x189)],null,_0x58e652),process[_0x3f1b8f(0x194)](0x1));logger[_0x3f1b8f(0x1b9)](_0x3f1b8f(0x1bd)+_0x58e652[_0x3f1b8f(0x193)]),await _0x368c5f[_0x3f1b8f(0x1dd)](sendInstrumentationEvent,_0x58e652,_0x368c5f['IDWgo'],messageTypes[_0x3f1b8f(0x188)],null,null,_0x58e652);const _0x2bc2bc=JSON[_0x3f1b8f(0x1ac)](fs[_0x3f1b8f(0x1a1)](_0x368c5f[_0x3f1b8f(0x198)](getCredentialsPath)));global_registry[_0x3f1b8f(0x1d6)]=_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1a7)],global_registry['bstackAccesskey']=_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1c9)];const _0x586702=WS_ENDPOINT[_0x3f1b8f(0x1e2)](_0x368c5f[_0x3f1b8f(0x1aa)],_0x2bc2bc['Browserstack'][_0x3f1b8f(0x1a7)])['replace'](_0x368c5f['ANmuS'],_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1c9)]),_0x59c53e={};_0x59c53e['WebSocket']=ws,_0x59c53e['connectionTimeout']=0x36ee80,_0x1190d5=new ReconnectingWebSocket(_0x586702,[],_0x59c53e),logger[_0x3f1b8f(0x19d)](_0x368c5f[_0x3f1b8f(0x1a8)]),webSocketUtils[_0x3f1b8f(0x18d)](_0x1190d5,_0x58e652[_0x3f1b8f(0x1e1)],_0x58e652[_0x3f1b8f(0x1c9)]);const [_0x5a85ec,_0x42e77b]=await _0x368c5f['zjIsd'](getGridDetails,_0x2bc2bc[_0x3f1b8f(0x1b6)]['username'],_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1c9)],_0x58e652[_0x3f1b8f(0x193)]);if(_0x42e77b){const _0x5ca01e=_0x42e77b[_0x3f1b8f(0x1b9)];global_registry[_0x3f1b8f(0x1e0)]=_0x5ca01e[_0x3f1b8f(0x1e0)],global_registry[_0x3f1b8f(0x19a)]=_0x5ca01e[_0x3f1b8f(0x187)],global_registry[_0x3f1b8f(0x197)]=_0x5ca01e[_0x3f1b8f(0x197)];const _0x14b66c=await _0x368c5f[_0x3f1b8f(0x1dd)](getCloudProviderObject,_0x5ca01e[_0x3f1b8f(0x1e0)],_0x5ca01e[_0x3f1b8f(0x197)],_0x5ca01e[_0x3f1b8f(0x1b8)],_0x1190d5,webSocketUtils,_0x58e652),[_0x52728e,_0x1f67ae,_0x197403,_0x333b50,_0xfb2624,_0x442f16]=await _0x368c5f['NouWg'](createK8sClient,_0x14b66c,_0x58e652[_0x3f1b8f(0x1d2)]);await _0x368c5f[_0x3f1b8f(0x1cb)](scaleUpHubDeployment,_0x1f67ae,_0x5ca01e[_0x3f1b8f(0x1b8)]),logger['info'](_0x368c5f[_0x3f1b8f(0x186)]),process['exit'](0x0);}_0x368c5f[_0x3f1b8f(0x1d1)](_0x5a85ec[_0x3f1b8f(0x1b2)],0x191)&&(logger[_0x3f1b8f(0x1b4)](_0x368c5f['lMhVW']),await _0x368c5f['JKOfc'](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes[_0x3f1b8f(0x1d5)],_0x368c5f[_0x3f1b8f(0x1a0)],null,_0x58e652),process[_0x3f1b8f(0x194)](0x1)),_0x368c5f[_0x3f1b8f(0x1d1)](_0x5a85ec[_0x3f1b8f(0x1b2)],0x190)&&(logger[_0x3f1b8f(0x1b4)](JSON['parse'](_0x5a85ec[_0x3f1b8f(0x1bb)])[_0x3f1b8f(0x1c2)]),await _0x368c5f[_0x3f1b8f(0x191)](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes[_0x3f1b8f(0x1d5)],_0x368c5f[_0x3f1b8f(0x1bf)],null,_0x58e652),process['exit'](0x1)),logger['error'](_0x3f1b8f(0x1b1)+JSON[_0x3f1b8f(0x1d9)](_0x5a85ec)),await _0x368c5f[_0x3f1b8f(0x191)](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes[_0x3f1b8f(0x1d5)],_0x368c5f[_0x3f1b8f(0x1c3)],_0x5a85ec,_0x58e652),process['exit'](0x1);}catch(_0x4840ce){const _0x16c830='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x4840ce+'\x20\x0a'+JSON[_0x3f1b8f(0x1d9)](_0x4840ce[_0x3f1b8f(0x1cc)])+'\x20';logger[_0x3f1b8f(0x1b4)](_0x16c830),process[_0x3f1b8f(0x194)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a20_0x160760=a20_0x3f9d;(function(_0x2d91c9,_0x4af633){const _0x186bf4=a20_0x3f9d,_0xd8278b=_0x2d91c9();while(!![]){try{const _0x321e6b=parseInt(_0x186bf4(0x122))/0x1+-parseInt(_0x186bf4(0x121))/0x2*(parseInt(_0x186bf4(0x120))/0x3)+-parseInt(_0x186bf4(0x11b))/0x4+parseInt(_0x186bf4(0x119))/0x5*(-parseInt(_0x186bf4(0x116))/0x6)+parseInt(_0x186bf4(0x124))/0x7+-parseInt(_0x186bf4(0x11f))/0x8+parseInt(_0x186bf4(0x113))/0x9;if(_0x321e6b===_0x4af633)break;else _0xd8278b['push'](_0xd8278b['shift']());}catch(_0x3547a9){_0xd8278b['push'](_0xd8278b['shift']());}}}(a20_0x1709,0x53631));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x160760(0x117));exports[a20_0x160760(0x11d)]=a20_0x160760(0x115),exports[a20_0x160760(0x112)]=a20_0x160760(0x126),exports[a20_0x160760(0x11c)]=function(_0x2e3567){const _0x79f310=a20_0x160760,_0x45bf9f={};_0x45bf9f[_0x79f310(0x125)]=_0x79f310(0x118),_0x45bf9f['yAGaE']=_0x79f310(0x11a);const _0x4ecf8d=_0x45bf9f;return _0x2e3567[_0x79f310(0x123)](HELP_HEADER_MESSAGE['stop'])[_0x79f310(0x114)](HELP_FOOTER_MESSAGE)[_0x79f310(0x11e)](_0x4ecf8d['rjVoY'])[_0x79f310(0x127)]()[_0x79f310(0x128)]()['strict']()['help'](_0x4ecf8d['yAGaE']);},exports['handler']=function(_0x4daa9b){};function a20_0x3f9d(_0x4fea72,_0x49780e){const _0x1709ea=a20_0x1709();return a20_0x3f9d=function(_0x3f9d23,_0x1f7abb){_0x3f9d23=_0x3f9d23-0x112;let _0x12cc8e=_0x1709ea[_0x3f9d23];return _0x12cc8e;},a20_0x3f9d(_0x4fea72,_0x49780e);}function a20_0x1709(){const _0x1e332c=['stop','1002wKbFFn','../config/constants','stop_commands','18260SdyVlH','help','2470464lKmAMN','builder','command','commandDir','4970024odFnBl','114339WlHZsz','22ukXKwv','382329jfILSU','usage','3744328KbnCPz','rjVoY','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','recommendCommands','desc','15230844SXaLyq','epilogue'];a20_0x1709=function(){return _0x1e332c;};return a20_0x1709();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a21_0x47bc(){const _0x9fc486=['message','Qlrwo','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../config/logger','3891600LhAjlJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','UzXtR','gridId','KdHGZ','debug','2339300ucFQrG','2808029eCjGlk','XfJJz','11212LaVVXq','builder','zqkyf','ozJMd','Browserstack','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','region','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','error','bstackUsername','Skip\x20insecure\x20cert\x20verification.','name','cloudProvider','23608287nTylbI','epilogue','Stopping\x20grid\x20','29UFPpHB','stack','kPwro','existsSync','statusCode','6923672lBIwDY','4WPMpuu','info','VFoJz','../../config/constants','exit','jJwzj','lBcKo','../../utils/utilityMethods','dQZrH','unauthorised','body','parse','stop-grid-called','ERROR','ZOwtC','mFHTU','rxxha','password','init-not-called','description','replace','INFO','type','<PasswordPlaceholder>','IPWaL','roWLW','grid','clusterName','ABFoj','../../utils/instrumentationUtils','skip-tls-cert-verify','Stop\x20a\x20running\x20Automation\x20grid.','user','<UsernamePlaceholder>','usage','365043RHAXlM','reconnecting-websocket','handler','../../cloudproviders/utils','argv','username','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','grid-id','skipTlsCertVerify','Grid\x20stoppped.','EdsAb','../../utils/webSocketUtils','AgmcQ','bstackAccesskey','string','invalid-grid-id','stop','VwqDp','stringify','clusterRegion','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.'];a21_0x47bc=function(){return _0x9fc486;};return a21_0x47bc();}const a21_0x4a2830=a21_0x458e;(function(_0x5427ec,_0x38b21b){const _0x563bbd=a21_0x458e,_0x25d581=_0x5427ec();while(!![]){try{const _0xdf8d87=parseInt(_0x563bbd(0x159))/0x1*(-parseInt(_0x563bbd(0x148))/0x2)+-parseInt(_0x563bbd(0x182))/0x3*(parseInt(_0x563bbd(0x15f))/0x4)+-parseInt(_0x563bbd(0x145))/0x5+-parseInt(_0x563bbd(0x13f))/0x6+parseInt(_0x563bbd(0x146))/0x7+-parseInt(_0x563bbd(0x15e))/0x8+parseInt(_0x563bbd(0x156))/0x9;if(_0xdf8d87===_0x38b21b)break;else _0x25d581['push'](_0x25d581['shift']());}catch(_0x476001){_0x25d581['push'](_0x25d581['shift']());}}}(a21_0x47bc,0xb9164));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4a2830(0x183)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4a2830(0x162)),{logger}=require(a21_0x4a2830(0x13e)),{getCredentialsPath,getGridDetails}=require(a21_0x4a2830(0x166)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x4a2830(0x17c)),webSocketUtils=require(a21_0x4a2830(0x131)),{createK8sClient}=require(a21_0x4a2830(0x12c)),{getCloudProviderObject}=require(a21_0x4a2830(0x185));function a21_0x458e(_0x52a5da,_0x472cf7){const _0x47bc1e=a21_0x47bc();return a21_0x458e=function(_0x458e13,_0x3e7e7d){_0x458e13=_0x458e13-0x129;let _0x506eaa=_0x47bc1e[_0x458e13];return _0x506eaa;},a21_0x458e(_0x52a5da,_0x472cf7);}exports['command']=a21_0x4a2830(0x179),exports[a21_0x4a2830(0x14d)]=a21_0x4a2830(0x17e),exports[a21_0x4a2830(0x149)]=function(_0x54bc73){const _0x5b7ee2=a21_0x4a2830,_0x5a8ac2={};_0x5a8ac2[_0x5b7ee2(0x132)]=_0x5b7ee2(0x13a),_0x5a8ac2[_0x5b7ee2(0x130)]=_0x5b7ee2(0x134),_0x5a8ac2[_0x5b7ee2(0x141)]=_0x5b7ee2(0x153),_0x5a8ac2[_0x5b7ee2(0x17b)]='boolean',_0x5a8ac2[_0x5b7ee2(0x177)]='help';const _0x138236=_0x5a8ac2,_0x43d3e6={};_0x43d3e6[_0x5b7ee2(0x172)]=_0x138236['AgmcQ'],_0x43d3e6[_0x5b7ee2(0x175)]=_0x138236['EdsAb'];const _0x21d4fe={};_0x21d4fe[_0x5b7ee2(0x172)]=_0x138236[_0x5b7ee2(0x141)],_0x21d4fe[_0x5b7ee2(0x175)]=_0x138236[_0x5b7ee2(0x17b)],_0x21d4fe['default']=![];const _0x5adcd4={};return _0x5adcd4[_0x5b7ee2(0x12d)]=_0x43d3e6,_0x5adcd4[_0x5b7ee2(0x17d)]=_0x21d4fe,_0x54bc73[_0x5b7ee2(0x181)](HELP_HEADER_MESSAGE[_0x5b7ee2(0x136)])[_0x5b7ee2(0x157)](HELP_FOOTER_MESSAGE)['options'](_0x5adcd4)['help'](_0x138236[_0x5b7ee2(0x177)])[_0x5b7ee2(0x129)];},exports[a21_0x4a2830(0x184)]=async function(_0x18d71f){const _0x408cb6=a21_0x4a2830,_0x3925fd={'VwqDp':_0x408cb6(0x150),'ujfWJ':function(_0x1f8c8a){return _0x1f8c8a();},'mFHTU':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dQZrH':function(_0x3b157e,_0x57968c,_0x2bed7f,_0x59834b,_0x21de48,_0x5c2d76,_0x441eed){return _0x3b157e(_0x57968c,_0x2bed7f,_0x59834b,_0x21de48,_0x5c2d76,_0x441eed);},'kPwro':_0x408cb6(0x16b),'YTBEp':_0x408cb6(0x171),'ZOwtC':_0x408cb6(0x180),'zqkyf':_0x408cb6(0x176),'KdHGZ':_0x408cb6(0x12b),'jJwzj':function(_0x5e65e6,_0x11f4e9,_0x457c1d,_0x552fd6){return _0x5e65e6(_0x11f4e9,_0x457c1d,_0x552fd6);},'roWLW':function(_0x194f7c,_0x3b25cc,_0x31be81,_0x5da1b6,_0x13b045,_0xe0b1a9,_0x5125fb){return _0x194f7c(_0x3b25cc,_0x31be81,_0x5da1b6,_0x13b045,_0xe0b1a9,_0x5125fb);},'rxxha':function(_0x184bbf,_0x6e97d1,_0xe7c1a9){return _0x184bbf(_0x6e97d1,_0xe7c1a9);},'ozJMd':_0x408cb6(0x12f),'BnCkY':function(_0x482e48,_0xf0ee42){return _0x482e48===_0xf0ee42;},'lBcKo':_0x408cb6(0x140),'EKDsW':function(_0x491047,_0x21e9b6,_0x485210,_0x17b1e4,_0x210188,_0x20f9e6,_0x4732b5){return _0x491047(_0x21e9b6,_0x485210,_0x17b1e4,_0x210188,_0x20f9e6,_0x4732b5);},'XfJJz':_0x408cb6(0x168),'eVUMc':function(_0xd27b7c,_0x646174){return _0xd27b7c===_0x646174;},'VFoJz':_0x408cb6(0x135),'Qlrwo':function(_0x414f6a,_0x7e1a50,_0x279941,_0x29da9f,_0x512e88,_0x4c4fd0,_0x442e0d){return _0x414f6a(_0x7e1a50,_0x279941,_0x29da9f,_0x512e88,_0x4c4fd0,_0x442e0d);},'yvyMu':'server-error'};let _0x13d53f;try{!_0x18d71f[_0x408cb6(0x142)]&&(logger[_0x408cb6(0x151)](_0x3925fd[_0x408cb6(0x137)]),process[_0x408cb6(0x163)](0x1));!fs[_0x408cb6(0x15c)](_0x3925fd['ujfWJ'](getCredentialsPath))&&(logger['error'](_0x3925fd[_0x408cb6(0x16e)]),await _0x3925fd[_0x408cb6(0x167)](sendInstrumentationEvent,_0x18d71f,_0x3925fd[_0x408cb6(0x15b)],messageTypes[_0x408cb6(0x16c)],_0x3925fd['YTBEp'],null,_0x18d71f),process['exit'](0x1));logger[_0x408cb6(0x160)](_0x408cb6(0x158)+_0x18d71f[_0x408cb6(0x142)]),await _0x3925fd[_0x408cb6(0x167)](sendInstrumentationEvent,_0x18d71f,_0x3925fd[_0x408cb6(0x15b)],messageTypes[_0x408cb6(0x174)],null,null,_0x18d71f);const _0x4b57c2=JSON[_0x408cb6(0x16a)](fs['readFileSync'](_0x3925fd['ujfWJ'](getCredentialsPath)));global_registry[_0x408cb6(0x152)]=_0x4b57c2['Browserstack'][_0x408cb6(0x12a)],global_registry[_0x408cb6(0x133)]=_0x4b57c2[_0x408cb6(0x14c)]['password'];const _0x2b3f29=WS_ENDPOINT[_0x408cb6(0x173)](_0x3925fd[_0x408cb6(0x16d)],_0x4b57c2[_0x408cb6(0x14c)][_0x408cb6(0x12a)])[_0x408cb6(0x173)](_0x3925fd[_0x408cb6(0x14a)],_0x4b57c2[_0x408cb6(0x14c)]['password']),_0x8000eb={};_0x8000eb['WebSocket']=ws,_0x8000eb['connectionTimeout']=0x36ee80,_0x13d53f=new ReconnectingWebSocket(_0x2b3f29,[],_0x8000eb),logger[_0x408cb6(0x144)](_0x3925fd[_0x408cb6(0x143)]),webSocketUtils['addListeners'](_0x13d53f,_0x18d71f[_0x408cb6(0x17f)],_0x18d71f[_0x408cb6(0x170)]);const [_0x285b4d,_0x470e6b]=await _0x3925fd[_0x408cb6(0x164)](getGridDetails,_0x4b57c2['Browserstack'][_0x408cb6(0x12a)],_0x4b57c2[_0x408cb6(0x14c)]['password'],_0x18d71f[_0x408cb6(0x142)]);if(_0x470e6b){const _0x3280f5=_0x470e6b[_0x408cb6(0x160)];global_registry[_0x408cb6(0x155)]=_0x3280f5['cloudProvider'],global_registry[_0x408cb6(0x139)]=_0x3280f5[_0x408cb6(0x14f)],global_registry[_0x408cb6(0x17a)]=_0x3280f5[_0x408cb6(0x17a)];const _0x41601b=await _0x3925fd[_0x408cb6(0x178)](getCloudProviderObject,_0x3280f5[_0x408cb6(0x155)],_0x3280f5[_0x408cb6(0x17a)],_0x3280f5[_0x408cb6(0x154)],_0x13d53f,webSocketUtils,_0x18d71f),[_0x284639,_0x294c2b,_0x536196,_0x181a65,_0x171f79,_0x141dd6]=await _0x3925fd[_0x408cb6(0x16f)](createK8sClient,_0x41601b,_0x18d71f[_0x408cb6(0x12e)]);await _0x3925fd[_0x408cb6(0x16f)](scaleDownHubDeployment,_0x294c2b,_0x3280f5[_0x408cb6(0x154)]),logger[_0x408cb6(0x160)](_0x3925fd[_0x408cb6(0x14b)]),process[_0x408cb6(0x163)](0x0);}_0x3925fd['BnCkY'](_0x285b4d['statusCode'],0x191)&&(logger[_0x408cb6(0x151)](_0x3925fd[_0x408cb6(0x165)]),await _0x3925fd['EKDsW'](sendInstrumentationEvent,_0x18d71f,_0x3925fd['kPwro'],messageTypes['ERROR'],_0x3925fd[_0x408cb6(0x147)],null,_0x18d71f),process[_0x408cb6(0x163)](0x1)),_0x3925fd['eVUMc'](_0x285b4d[_0x408cb6(0x15d)],0x190)&&(logger[_0x408cb6(0x151)](JSON['parse'](_0x285b4d[_0x408cb6(0x169)])[_0x408cb6(0x13b)]),await _0x3925fd[_0x408cb6(0x167)](sendInstrumentationEvent,_0x18d71f,_0x3925fd['kPwro'],messageTypes[_0x408cb6(0x16c)],_0x3925fd[_0x408cb6(0x161)],null,_0x18d71f),process['exit'](0x1)),logger[_0x408cb6(0x151)](_0x408cb6(0x14e)+JSON['stringify'](_0x285b4d)),await _0x3925fd[_0x408cb6(0x13c)](sendInstrumentationEvent,_0x18d71f,_0x3925fd['kPwro'],messageTypes['ERROR'],_0x3925fd['yvyMu'],_0x285b4d,_0x18d71f),process['exit'](0x1);}catch(_0x55b386){const _0x48104a=_0x408cb6(0x13d)+_0x55b386+'\x20\x0a'+JSON[_0x408cb6(0x138)](_0x55b386[_0x408cb6(0x15a)])+'\x20';logger[_0x408cb6(0x151)](_0x48104a),process[_0x408cb6(0x163)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a22_0x29c620=a22_0x3b43;(function(_0x459380,_0x4c56fd){const _0x79e25d=a22_0x3b43,_0x479f47=_0x459380();while(!![]){try{const _0x292c15=parseInt(_0x79e25d(0xf6))/0x1+-parseInt(_0x79e25d(0xde))/0x2*(parseInt(_0x79e25d(0xe1))/0x3)+parseInt(_0x79e25d(0xe7))/0x4+parseInt(_0x79e25d(0xda))/0x5+parseInt(_0x79e25d(0xe5))/0x6+-parseInt(_0x79e25d(0x101))/0x7+-parseInt(_0x79e25d(0x131))/0x8;if(_0x292c15===_0x4c56fd)break;else _0x479f47['push'](_0x479f47['shift']());}catch(_0x2cef5a){_0x479f47['push'](_0x479f47['shift']());}}}(a22_0x1608,0x852fa),require(a22_0x29c620(0x13e))[a22_0x29c620(0xe9)](),exports[a22_0x29c620(0x11c)]=process[a22_0x29c620(0x121)][a22_0x29c620(0x11c)]||'grid.browserstack.com',exports[a22_0x29c620(0x134)]=process[a22_0x29c620(0x121)][a22_0x29c620(0x134)]||'api.browserstack.com',exports[a22_0x29c620(0xef)]=process['env'][a22_0x29c620(0xef)]||a22_0x29c620(0xf5),exports[a22_0x29c620(0x10b)]=a22_0x29c620(0xf4)+this[a22_0x29c620(0xef)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x29c620(0x13c)]=a22_0x29c620(0xf2),exports[a22_0x29c620(0x116)]=a22_0x29c620(0x119),exports[a22_0x29c620(0x12a)]=a22_0x29c620(0x129),exports[a22_0x29c620(0xfa)]=a22_0x29c620(0x13d),exports[a22_0x29c620(0x117)]='BSTACK-ATS-CLUSTER',exports[a22_0x29c620(0xfb)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x29c620(0x127)]=a22_0x29c620(0x118),exports[a22_0x29c620(0x100)]=a22_0x29c620(0x10c),exports[a22_0x29c620(0x11f)]='azure',exports[a22_0x29c620(0x135)]=a22_0x29c620(0xec),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x29c620(0xfa)],this['AZURE'],this['GCP']]);const a22_0x36a52d={};a22_0x36a52d[a22_0x29c620(0x103)]='browserstack:managedBy',a22_0x36a52d[a22_0x29c620(0x125)]=a22_0x29c620(0x106);const a22_0x1eb3f4={};a22_0x1eb3f4['Key']='browserstack:service',a22_0x1eb3f4[a22_0x29c620(0x125)]=a22_0x29c620(0x132);const common_hst_tags_list=[a22_0x36a52d,a22_0x1eb3f4];if(process[a22_0x29c620(0x121)][a22_0x29c620(0x136)]){const parsedTags=process[a22_0x29c620(0x121)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x29c620(0x13f)](',');parsedTags[a22_0x29c620(0xff)](_0x303606=>{const _0x1f66f1=a22_0x29c620,_0x2f6201=_0x303606['split'](':'),_0x52ca15={};_0x52ca15[_0x1f66f1(0x103)]=_0x2f6201[0x0],_0x52ca15[_0x1f66f1(0x125)]=_0x2f6201[0x1],common_hst_tags_list[_0x1f66f1(0xed)](_0x52ca15);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2eb88a={};a22_0x2eb88a[a22_0x29c620(0x105)]='BrowserStack',a22_0x2eb88a['browserstack:service']=a22_0x29c620(0x132),exports[a22_0x29c620(0xea)]=a22_0x2eb88a,exports[a22_0x29c620(0x13b)]=[this[a22_0x29c620(0xfa)]];const a22_0x3a71fa={};a22_0x3a71fa[a22_0x29c620(0x108)]=a22_0x29c620(0xdc),a22_0x3a71fa['RESOURCES']=a22_0x29c620(0xdf),a22_0x3a71fa[a22_0x29c620(0x133)]=a22_0x29c620(0x139),a22_0x3a71fa[a22_0x29c620(0x137)]=a22_0x29c620(0x113),a22_0x3a71fa[a22_0x29c620(0x122)]=a22_0x29c620(0x10a),exports[a22_0x29c620(0x12f)]=a22_0x3a71fa,exports[a22_0x29c620(0xeb)]={},exports[a22_0x29c620(0x109)]=a22_0x29c620(0xfc);function a22_0x3b43(_0x44935d,_0x525c14){const _0x1608ac=a22_0x1608();return a22_0x3b43=function(_0x3b4319,_0x2675e1){_0x3b4319=_0x3b4319-0xd9;let _0xb27174=_0x1608ac[_0x3b4319];return _0xb27174;},a22_0x3b43(_0x44935d,_0x525c14);}const a22_0x12bc08={};a22_0x12bc08[a22_0x29c620(0xdb)]=a22_0x29c620(0x120)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0x12d)]=a22_0x29c620(0x114)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0x10e)]=a22_0x29c620(0xe4)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xf8)]=a22_0x29c620(0x124)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xee)]={},a22_0x12bc08['delete']=a22_0x29c620(0xfe)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xe0)]=a22_0x29c620(0xf9)+this[a22_0x29c620(0x109)],a22_0x12bc08['start']=a22_0x29c620(0x12b)+this[a22_0x29c620(0x109)],a22_0x12bc08['stop']=a22_0x29c620(0xd9)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xf1)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xee)][a22_0x29c620(0xdb)]=a22_0x29c620(0x110)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xee)][a22_0x29c620(0x126)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x12bc08[a22_0x29c620(0xee)][a22_0x29c620(0xe6)]=a22_0x29c620(0xe2)+this[a22_0x29c620(0x109)],exports[a22_0x29c620(0x10d)]=a22_0x12bc08,exports[a22_0x29c620(0x10f)]=a22_0x29c620(0x11e);function a22_0x1608(){const _0x423a62=['grid-api.browserstack.com','793775CCWGcp','DEFAULT_CLUSTER_DETAILS','create','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','AWS','CLUSTER_AUTOSCALER_STACK_NAME','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','RAW_ARGS_REGEX','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','forEach','TURBOSCALE_DEPLOYMENT','3507700BZUMVa','grid-profile','Key','error','browserstack:managedBy','BrowserStack','SUCCESS','LOG','LINK_MESSAGE','cliRunFinished','WS_ENDPOINT','browserstack-turboscale-grid','HELP_HEADER_MESSAGE','configure','HELP_FOOTER_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','MessageDescription','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','cliRunStarted','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','WARNING','IAM_USER_NAME','CLUSTER_DEP_STACK_NAME','BSTACK-ATS-CLUSTER-HUB-HA','BrowserStackIAMUser','success','UNKNOWN','DASHBOARD_ENDPOINT','us-east-1','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','AZURE','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','CLI_RUN_FINISHED','info','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','Value','grid','CLUSTER_HUB_HA_STACK_NAME','[REDACTED]','high-scale-grid','DEFAULT_GRID_NAME','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','init','messageTypes','WS_EVENTS','warning','5391704xPxJJX','BrowserStack-Automate-TurboScale','GRID_URL','BS_API_URL','GCP','TURBOSCALE_CUSTOM_TAGS','CLI_RUN_STARTED','REDACTED','gridUrl','high-scale-grid-cluster','SUPPORTED_CLOUD_PROVIDERS','CP_CONFIG_FILE','aws','dotenv','split','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','3064065LbONtB','root','log','TRIAL_GRID_URL','2CyQPSG','resourceInfo','connect','3114777eSuQyc','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','2127480PrLqcw','gridProfile','3990736VhYtMZ','CLUSTER','config','HST_CLUSTER_TAGS','global_registry','gcp','push','list','AG_API_URL','CLOUD_PROVIDER','pre_check','credentials','ERROR','wss://'];a22_0x1608=function(){return _0x423a62;};return a22_0x1608();}const a22_0x390ed6={};a22_0x390ed6[a22_0x29c620(0x107)]=a22_0x29c620(0x11a),a22_0x390ed6[a22_0x29c620(0xf3)]=a22_0x29c620(0x104),a22_0x390ed6['INFO']=a22_0x29c620(0x123),a22_0x390ed6[a22_0x29c620(0x115)]=a22_0x29c620(0x130),a22_0x390ed6[a22_0x29c620(0x11b)]='unknown',a22_0x390ed6[a22_0x29c620(0xe3)]=null,exports[a22_0x29c620(0x12e)]=a22_0x390ed6,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x29c620(0xfd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x29c620(0x138)]=a22_0x29c620(0x128);const a22_0x355218={};a22_0x355218[a22_0x29c620(0x102)]=a22_0x29c620(0x112);const a22_0x5e81e7={};a22_0x5e81e7['pre-check']=a22_0x355218,exports[a22_0x29c620(0x111)]=a22_0x5e81e7,exports[a22_0x29c620(0xdd)]=a22_0x29c620(0x12c);const a22_0x421ca5={};a22_0x421ca5[a22_0x29c620(0xe8)]=a22_0x29c620(0x13a),a22_0x421ca5[a22_0x29c620(0xf0)]=a22_0x29c620(0x13d),a22_0x421ca5['REGION']=a22_0x29c620(0x11d),exports[a22_0x29c620(0xf7)]=a22_0x421ca5;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x546cfd=a23_0x2ae5;(function(_0x4de164,_0x4cb699){const _0x17fcab=a23_0x2ae5,_0x599f60=_0x4de164();while(!![]){try{const _0xaa522c=parseInt(_0x17fcab(0x1e8))/0x1+-parseInt(_0x17fcab(0x1e4))/0x2+-parseInt(_0x17fcab(0x1f2))/0x3*(-parseInt(_0x17fcab(0x1df))/0x4)+-parseInt(_0x17fcab(0x1ef))/0x5+-parseInt(_0x17fcab(0x1f9))/0x6*(parseInt(_0x17fcab(0x1fd))/0x7)+parseInt(_0x17fcab(0x1f3))/0x8+-parseInt(_0x17fcab(0x1f5))/0x9;if(_0xaa522c===_0x4cb699)break;else _0x599f60['push'](_0x599f60['shift']());}catch(_0x4080c7){_0x599f60['push'](_0x599f60['shift']());}}}(a23_0x1531,0x51af0));const winston=require(a23_0x546cfd(0x1fa)),fs=require('fs'),path=require(a23_0x546cfd(0x1f8)),logDir=a23_0x546cfd(0x1e9);!fs[a23_0x546cfd(0x1e2)](logDir)&&fs['mkdirSync'](logDir);const a23_0x1294d0={};function a23_0x1531(){const _0x1f737a=['186wtcZEx','4684792lMUysP','colorize','4433184bFmJUS','\x20-\x20','logger','path','6GDIohS','winston','File','Console','3809589doyzyM','22860qxOaQb','level','timestamp','existsSync','join','464434EoqkpV','message','createLogger','YYYY-MM-DD\x20HH:mm:ss','668525MVfstP','log','console.info','transports','name','fileLogger','debug','24290uaePPP','usage.log','format'];a23_0x1531=function(){return _0x1f737a;};return a23_0x1531();}a23_0x1294d0['format']=a23_0x546cfd(0x1e7);const a23_0x2de5a0={};a23_0x2de5a0[a23_0x546cfd(0x1e0)]=!![];const a23_0x57f996={};function a23_0x2ae5(_0x579a65,_0x508fdf){const _0x15310d=a23_0x1531();return a23_0x2ae5=function(_0x2ae589,_0x5883de){_0x2ae589=_0x2ae589-0x1df;let _0x1d367f=_0x15310d[_0x2ae589];return _0x1d367f;},a23_0x2ae5(_0x579a65,_0x508fdf);}a23_0x57f996[a23_0x546cfd(0x1ec)]=a23_0x546cfd(0x1ea),exports[a23_0x546cfd(0x1f7)]=new winston[(a23_0x546cfd(0x1e6))]({'format':winston[a23_0x546cfd(0x1f1)]['combine'](winston[a23_0x546cfd(0x1f1)][a23_0x546cfd(0x1e1)](a23_0x1294d0),winston[a23_0x546cfd(0x1f1)][a23_0x546cfd(0x1f4)](a23_0x2de5a0),winston[a23_0x546cfd(0x1f1)]['printf'](_0x556fd0=>_0x556fd0[a23_0x546cfd(0x1e1)]+a23_0x546cfd(0x1f6)+_0x556fd0[a23_0x546cfd(0x1e0)]+':\x20'+_0x556fd0[a23_0x546cfd(0x1e5)])),'transports':[new winston[(a23_0x546cfd(0x1eb))][(a23_0x546cfd(0x1fc))](a23_0x57f996),new winston[(a23_0x546cfd(0x1eb))][(a23_0x546cfd(0x1fb))]({'filename':path[a23_0x546cfd(0x1e3)](logDir,'events.log'),'level':a23_0x546cfd(0x1ee)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x546cfd(0x1fb))]({'filename':path['join'](logDir,a23_0x546cfd(0x1f0)),'level':'debug'})]};exports[a23_0x546cfd(0x1ed)]=new winston[(a23_0x546cfd(0x1e6))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a24_0x36ed44=a24_0x8bbc;(function(_0x5463a0,_0xc92a5e){const _0x41754a=a24_0x8bbc,_0x215432=_0x5463a0();while(!![]){try{const _0x81fc6a=parseInt(_0x41754a(0xde))/0x1*(-parseInt(_0x41754a(0xdc))/0x2)+-parseInt(_0x41754a(0xe1))/0x3+-parseInt(_0x41754a(0xe4))/0x4+-parseInt(_0x41754a(0xd2))/0x5*(parseInt(_0x41754a(0xda))/0x6)+parseInt(_0x41754a(0xd3))/0x7*(-parseInt(_0x41754a(0xe5))/0x8)+-parseInt(_0x41754a(0xe6))/0x9*(-parseInt(_0x41754a(0xd8))/0xa)+parseInt(_0x41754a(0xdf))/0xb;if(_0x81fc6a===_0xc92a5e)break;else _0x215432['push'](_0x215432['shift']());}catch(_0x4b23be){_0x215432['push'](_0x215432['shift']());}}}(a24_0x22b7,0x88e55));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x36ed44(0xd5));function a24_0x8bbc(_0x57f4d2,_0x1d2c09){const _0x22b7ec=a24_0x22b7();return a24_0x8bbc=function(_0x8bbcbe,_0x590756){_0x8bbcbe=_0x8bbcbe-0xd2;let _0x2ac093=_0x22b7ec[_0x8bbcbe];return _0x2ac093;},a24_0x8bbc(_0x57f4d2,_0x1d2c09);}process['env'][a24_0x36ed44(0xdb)]=0x1;function run(_0x2833f8){const _0x4c2125=a24_0x36ed44,_0x578456={};_0x578456[_0x4c2125(0xd4)]=_0x4c2125(0xd7),_0x578456[_0x4c2125(0xe7)]=_0x4c2125(0xe0);const _0x352cd4=_0x578456;_0x2833f8['usage'](HELP_HEADER_MESSAGE[_0x4c2125(0xe2)])[_0x4c2125(0xd9)](_0x352cd4[_0x4c2125(0xd4)])[_0x4c2125(0xdd)]()['help'](_0x352cd4['RYXFt'])[_0x4c2125(0xd6)](HELP_FOOTER_MESSAGE);}module[a24_0x36ed44(0xe3)]=run;function a24_0x22b7(){const _0x584630=['epilogue','commands','77640iFgWdP','commandDir','404964BNBEtI','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','112442vGkXqr','demandCommand','7zBPJmn','34879845lHtFUa','help','491028fSvutU','root','exports','3946428NmvXsI','2152ZAmzbb','18aCOzCG','RYXFt','10KOjPXb','24640ICpbdz','treVX','./config/constants'];a24_0x22b7=function(){return _0x584630;};return a24_0x22b7();}
|