browserstack-node-sdk 1.34.50 → 1.34.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +3 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/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
|
-
const
|
|
1
|
+
const a15_0x1f26fc=a15_0x28f0;function a15_0x445f(){const _0x9d7f1c=['GVxiO','existsSync','bstackAccesskey','uPDZX','uBzuf','7796qkVjWT','desc','437110lAThuB','status','parse','list-grids-called','all-grids','list','wHljf','GET','init-not-called','push','eqJAB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','WXtav','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','GjCXt','pLHZZ','options','allGrids','description','HGqXe','username','name','statusCode','8pNBlvP','grid-id','https://','38460qEtets','clusterName','zdrOG','grid','exit','177cWexou','grids','log','command','SktMx','cluster-name','../../utils/instrumentationUtils','/packages/cli/get-all-grids','unauthorised','qBtiH','1347030rvYhBq','482391lMCQkF','ERROR','1224KTirya','password','WHPjV','BiYgT','../../utils/utilityMethods','stringify','Browserstack','error','yFxSK','readFileSync','running','queued','got','uuid','INFO','boolean','czmZu','epilogue','DOSHZ','forEach','usage','36783IBWtna','DVXKb','\x0aFound\x20the\x20following\x20grids:\x0a','requestId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','2824640PwiRmE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','builder','HlXjh','GjwPw','stack','2035LdfKAk','kilFE','handler','help','Hmdov','izigA','grid-name','Failed\x20to\x20list\x20resources!\x20Error:\x20'];a15_0x445f=function(){return _0x9d7f1c;};return a15_0x445f();}(function(_0x2020d0,_0x4294bc){const _0x280bff=a15_0x28f0,_0xdb0932=_0x2020d0();while(!![]){try{const _0x2e104d=-parseInt(_0x280bff(0xfb))/0x1*(parseInt(_0x280bff(0xd8))/0x2)+parseInt(_0x280bff(0x106))/0x3+parseInt(_0x280bff(0xf3))/0x4*(parseInt(_0x280bff(0xda))/0x5)+parseInt(_0x280bff(0x105))/0x6+parseInt(_0x280bff(0x123))/0x7+parseInt(_0x280bff(0x108))/0x8*(-parseInt(_0x280bff(0x11d))/0x9)+-parseInt(_0x280bff(0xf6))/0xa*(-parseInt(_0x280bff(0xcb))/0xb);if(_0x2e104d===_0x4294bc)break;else _0xdb0932['push'](_0xdb0932['shift']());}catch(_0x5981ef){_0xdb0932['push'](_0xdb0932['shift']());}}}(a15_0x445f,0x57def));const fs=require('fs'),got=require(a15_0x1f26fc(0x114)),{table}=require('table'),{v4:uuidv4}=require(a15_0x1f26fc(0x115)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1f26fc(0x122)),{getCredentialsPath,getAuthHeader}=require(a15_0x1f26fc(0x10c)),{sendInstrumentationEvent}=require(a15_0x1f26fc(0x101));function a15_0x28f0(_0x29336d,_0x378695){const _0x445f69=a15_0x445f();return a15_0x28f0=function(_0x28f0c3,_0x22c00a){_0x28f0c3=_0x28f0c3-0xc8;let _0x1251fe=_0x445f69[_0x28f0c3];return _0x1251fe;},a15_0x28f0(_0x29336d,_0x378695);}exports[a15_0x1f26fc(0xfe)]=a15_0x1f26fc(0xfc),exports[a15_0x1f26fc(0xd9)]=a15_0x1f26fc(0xe7),exports[a15_0x1f26fc(0x125)]=function(_0x136718){const _0x13c369=a15_0x1f26fc,_0x7c3a60={};_0x7c3a60[_0x13c369(0xf8)]=_0x13c369(0xe9),_0x7c3a60['BiYgT']=_0x13c369(0x117),_0x7c3a60['czmZu']=_0x13c369(0xce);const _0x2a7f32=_0x7c3a60,_0xeda6b1={};_0xeda6b1[_0x13c369(0xee)]=_0x2a7f32[_0x13c369(0xf8)],_0xeda6b1['type']=_0x2a7f32[_0x13c369(0x10b)];const _0xabe34a={};return _0xabe34a[_0x13c369(0xde)]=_0xeda6b1,_0x136718[_0x13c369(0x11c)](HELP_HEADER_MESSAGE[_0x13c369(0xdf)][_0x13c369(0xf9)])[_0x13c369(0x119)](HELP_FOOTER_MESSAGE)[_0x13c369(0xec)](_0xabe34a)['help'](_0x2a7f32[_0x13c369(0x118)])[_0x13c369(0xe6)];},exports[a15_0x1f26fc(0xcd)]=async function(_0x214541){const _0x1b66e4=a15_0x1f26fc,_0x99bf73={'WXtav':function(_0x2a674a){return _0x2a674a();},'HGqXe':function(_0x4176ee){return _0x4176ee();},'Hmdov':_0x1b66e4(0x121),'pLHZZ':function(_0x479ce7,_0x3ac168,_0x5ae213,_0x499681,_0x23369c,_0x4fa1e8,_0x1dc2e1){return _0x479ce7(_0x3ac168,_0x5ae213,_0x499681,_0x23369c,_0x4fa1e8,_0x1dc2e1);},'qBtiH':_0x1b66e4(0xdd),'DVXKb':_0x1b66e4(0xe2),'GVxiO':_0x1b66e4(0xe1),'GRkqd':function(_0x39626b,_0x5f09bc,_0x1a2d04){return _0x39626b(_0x5f09bc,_0x1a2d04);},'yFxSK':function(_0x239c63,_0x23a3cb,_0x538e83,_0xeb3cf8,_0x3fbd15,_0x4f7dc4,_0x23b706){return _0x239c63(_0x23a3cb,_0x538e83,_0xeb3cf8,_0x3fbd15,_0x4f7dc4,_0x23b706);},'kilFE':function(_0x7c8bba,_0x318a41,_0x31173e){return _0x7c8bba(_0x318a41,_0x31173e);},'mDIAe':function(_0x397f09,_0x44cc50){return _0x397f09!==_0x44cc50;},'izigA':function(_0xef553,_0x39ae1a){return _0xef553!==_0x39ae1a;},'eIDOK':function(_0x9dc557,_0x436bce){return _0x9dc557===_0x436bce;},'GjCXt':_0x1b66e4(0x11f),'WHPjV':_0x1b66e4(0xf4),'eqJAB':_0x1b66e4(0xd1),'Xfrbc':_0x1b66e4(0xdb),'GjwPw':'running','uPDZX':_0x1b66e4(0x113),'uBzuf':_0x1b66e4(0x100),'DOSHZ':function(_0x46ad15,_0x47d41c){return _0x46ad15(_0x47d41c);},'gixpW':_0x1b66e4(0x124),'HlXjh':_0x1b66e4(0x103),'SktMx':'server-error','wHljf':'unknown-error'};try{global_registry[_0x1b66e4(0x120)]=_0x99bf73[_0x1b66e4(0xe8)](uuidv4);!fs[_0x1b66e4(0xd4)](_0x99bf73[_0x1b66e4(0xef)](getCredentialsPath))&&(console[_0x1b66e4(0x10f)](_0x99bf73[_0x1b66e4(0xcf)]),await _0x99bf73[_0x1b66e4(0xeb)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes['ERROR'],_0x99bf73[_0x1b66e4(0x11e)],null,_0x214541),process['exit'](0x1));const _0x2b0f3d=JSON[_0x1b66e4(0xdc)](fs[_0x1b66e4(0x111)](_0x99bf73[_0x1b66e4(0xef)](getCredentialsPath)));let _0x5d3437=_0x1b66e4(0xf5)+AG_API_URL+'/packages/cli/get-grids';_0x214541[_0x1b66e4(0xed)]&&(_0x5d3437=_0x1b66e4(0xf5)+AG_API_URL+_0x1b66e4(0x102));const _0x5ba6c1={'method':_0x99bf73[_0x1b66e4(0xd3)],'headers':_0x99bf73['GRkqd'](getAuthHeader,_0x2b0f3d['Browserstack']['username'],_0x2b0f3d['Browserstack'][_0x1b66e4(0x109)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x2b0f3d['Browserstack'][_0x1b66e4(0xf0)],global_registry[_0x1b66e4(0xd5)]=_0x2b0f3d[_0x1b66e4(0x10e)]['password'],_0x99bf73[_0x1b66e4(0x110)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes[_0x1b66e4(0x116)],null,null,_0x214541);const _0x582281=await _0x99bf73[_0x1b66e4(0xcc)](got,_0x5d3437,_0x5ba6c1);if(_0x99bf73['mDIAe'](_0x582281,null)&&_0x99bf73[_0x1b66e4(0xd0)](_0x582281,undefined)&&_0x99bf73['eIDOK'](_0x582281[_0x1b66e4(0xf2)],0xc8)){const _0x52823e=JSON[_0x1b66e4(0xdc)](_0x582281['body']);console[_0x1b66e4(0xfd)](_0x99bf73[_0x1b66e4(0xea)]);const _0x2a7e15=[];_0x2a7e15['push']([_0x99bf73[_0x1b66e4(0x10a)],_0x99bf73[_0x1b66e4(0xe4)],_0x99bf73['Xfrbc'],_0x99bf73[_0x1b66e4(0xc9)],_0x99bf73[_0x1b66e4(0xd6)],_0x99bf73[_0x1b66e4(0xd7)]]),_0x52823e[_0x1b66e4(0x11b)](_0x584590=>{const _0x10cb0c=_0x1b66e4;_0x2a7e15[_0x10cb0c(0xe3)]([_0x584590['id'],_0x584590[_0x10cb0c(0xf1)],_0x584590['status'],_0x584590[_0x10cb0c(0x112)],_0x584590[_0x10cb0c(0x113)],_0x584590[_0x10cb0c(0xf7)]]);}),console['log'](_0x99bf73[_0x1b66e4(0x11a)](table,_0x2a7e15)),process[_0x1b66e4(0xfa)](0x0);}_0x99bf73['eIDOK'](_0x582281['statusCode'],0x191)&&(console[_0x1b66e4(0x10f)](_0x99bf73['gixpW']),await _0x99bf73[_0x1b66e4(0x110)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes['ERROR'],_0x99bf73[_0x1b66e4(0xc8)],null,_0x214541),process['exit'](0x1)),console[_0x1b66e4(0x10f)](_0x1b66e4(0xe5)+JSON[_0x1b66e4(0x10d)](_0x582281)),await _0x99bf73[_0x1b66e4(0xeb)](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes[_0x1b66e4(0x107)],_0x99bf73[_0x1b66e4(0xff)],_0x582281,_0x214541),process[_0x1b66e4(0xfa)](0x1);}catch(_0x31d4dd){console[_0x1b66e4(0x10f)](_0x1b66e4(0xd2)+_0x31d4dd[_0x1b66e4(0xca)]),await _0x99bf73['pLHZZ'](sendInstrumentationEvent,_0x214541,_0x99bf73[_0x1b66e4(0x104)],messageTypes[_0x1b66e4(0x107)],_0x99bf73[_0x1b66e4(0xe0)],_0x31d4dd,_0x214541),process[_0x1b66e4(0xfa)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x868081=a16_0x450a;(function(_0x24077b,_0xad2166){const _0x216801=a16_0x450a,_0x70fa80=_0x24077b();while(!![]){try{const _0x311f72=parseInt(_0x216801(0xb3))/0x1+-parseInt(_0x216801(0xb7))/0x2*(-parseInt(_0x216801(0xab))/0x3)+-parseInt(_0x216801(0xc2))/0x4*(-parseInt(_0x216801(0xaf))/0x5)+-parseInt(_0x216801(0xb5))/0x6*(-parseInt(_0x216801(0xc0))/0x7)+parseInt(_0x216801(0xbe))/0x8*(-parseInt(_0x216801(0xc4))/0x9)+-parseInt(_0x216801(0xb9))/0xa*(-parseInt(_0x216801(0xbd))/0xb)+-parseInt(_0x216801(0xb4))/0xc*(parseInt(_0x216801(0xba))/0xd);if(_0x311f72===_0xad2166)break;else _0x70fa80['push'](_0x70fa80['shift']());}catch(_0x5e8aed){_0x70fa80['push'](_0x70fa80['shift']());}}}(a16_0x5cbc,0x411ac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x868081(0xb0));function a16_0x450a(_0x412b59,_0x14fcd0){const _0x5cbc13=a16_0x5cbc();return a16_0x450a=function(_0x450ac9,_0x15b6b1){_0x450ac9=_0x450ac9-0xaa;let _0x1ab8d4=_0x5cbc13[_0x450ac9];return _0x1ab8d4;},a16_0x450a(_0x412b59,_0x14fcd0);}exports['command']='pre-check',exports[a16_0x868081(0xbf)]=a16_0x868081(0xb2),exports['builder']=function(_0x4840ef){const _0x4c9bfb=a16_0x868081,_0x462bea={};_0x462bea[_0x4c9bfb(0xb6)]=_0x4c9bfb(0xc1),_0x462bea[_0x4c9bfb(0xbc)]='help';const _0x5f0c26=_0x462bea;return _0x4840ef['usage'](HELP_HEADER_MESSAGE[_0x4c9bfb(0xad)])[_0x4c9bfb(0xb1)](HELP_FOOTER_MESSAGE)[_0x4c9bfb(0xbb)](_0x5f0c26[_0x4c9bfb(0xb6)])[_0x4c9bfb(0xc3)]()[_0x4c9bfb(0xaa)]()[_0x4c9bfb(0xac)]()[_0x4c9bfb(0xae)](_0x5f0c26[_0x4c9bfb(0xbc)]);},exports[a16_0x868081(0xb8)]=function(_0x5c3d39){};function a16_0x5cbc(){const _0x4a37fa=['176077AXworJ','1163024GRbboR','desc','7DatXeV','precheck_commands','24XFQAeP','demandCommand','9HZNxKX','recommendCommands','3AvAprr','strict','pre_check','help','2135xoJqxk','../config/constants','epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','299792vPgYPk','228NfQgYb','2825052iYUCEX','sWQzv','709966DysDvL','handler','80vyznUn','577603WVfOgq','commandDir','bsMmi'];a16_0x5cbc=function(){return _0x4a37fa;};return a16_0x5cbc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x4f986d=a17_0x1e2d;(function(_0x3c9419,_0x531143){const _0x2c8e2b=a17_0x1e2d,_0x4f700b=_0x3c9419();while(!![]){try{const _0xd23d83=-parseInt(_0x2c8e2b(0x147))/0x1*(parseInt(_0x2c8e2b(0x202))/0x2)+-parseInt(_0x2c8e2b(0x160))/0x3+-parseInt(_0x2c8e2b(0x1ae))/0x4*(-parseInt(_0x2c8e2b(0x133))/0x5)+-parseInt(_0x2c8e2b(0x17b))/0x6+parseInt(_0x2c8e2b(0x16c))/0x7*(-parseInt(_0x2c8e2b(0x1da))/0x8)+parseInt(_0x2c8e2b(0x12f))/0x9*(-parseInt(_0x2c8e2b(0x163))/0xa)+-parseInt(_0x2c8e2b(0x1bb))/0xb*(-parseInt(_0x2c8e2b(0x157))/0xc);if(_0xd23d83===_0x531143)break;else _0x4f700b['push'](_0x4f700b['shift']());}catch(_0x2b47d2){_0x4f700b['push'](_0x4f700b['shift']());}}}(a17_0x51cc,0x8e76f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4f986d(0x1c0)),{v4:uuidv4}=require(a17_0x4f986d(0x13b)),ReconnectingWebSocket=require(a17_0x4f986d(0x1c6)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4f986d(0x209)),{logger}=require(a17_0x4f986d(0x21a)),{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_0x4f986d(0x1f9)),{getCloudProviderObjectWithOutInit}=require(a17_0x4f986d(0x188)),webSocketUtils=require(a17_0x4f986d(0x127)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x4f986d(0x222)]=a17_0x4f986d(0x1c2),exports[a17_0x4f986d(0x138)]=a17_0x4f986d(0x155),exports[a17_0x4f986d(0x156)]=function(_0x5588e1){const _0x2187b3=a17_0x4f986d,_0xf3a0c={};_0xf3a0c[_0x2187b3(0x1e8)]=_0x2187b3(0x122),_0xf3a0c[_0x2187b3(0x1e0)]=_0x2187b3(0x169),_0xf3a0c[_0x2187b3(0x1bc)]=_0x2187b3(0x128),_0xf3a0c[_0x2187b3(0x124)]=_0x2187b3(0x17f),_0xf3a0c['Knxfk']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xf3a0c['asxzH']='help';const _0x3f8875=_0xf3a0c,_0x5a663f={};_0x5a663f[_0x2187b3(0x1f3)]=_0x3f8875[_0x2187b3(0x1e8)],_0x5a663f[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x4f4b8a={};_0x4f4b8a[_0x2187b3(0x1f3)]=_0x3f8875[_0x2187b3(0x1bc)],_0x4f4b8a[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x481670={};_0x481670[_0x2187b3(0x1f3)]=_0x3f8875['DwGkj'],_0x481670[_0x2187b3(0x1fe)]=_0x3f8875[_0x2187b3(0x1e0)];const _0x5e8f7f={};_0x5e8f7f['description']=_0x3f8875[_0x2187b3(0x1c9)],_0x5e8f7f['type']=_0x3f8875[_0x2187b3(0x1e0)];const _0x1ae7c6={};return _0x1ae7c6[_0x2187b3(0x1af)]=_0x5a663f,_0x1ae7c6[_0x2187b3(0x216)]=_0x4f4b8a,_0x1ae7c6[_0x2187b3(0x214)]=_0x481670,_0x1ae7c6[_0x2187b3(0x1f1)]=_0x5e8f7f,_0x5588e1[_0x2187b3(0x144)](HELP_HEADER_MESSAGE[_0x2187b3(0x21b)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1ae7c6)[_0x2187b3(0x1d9)](_0x3f8875[_0x2187b3(0x14e)])[_0x2187b3(0x219)];};function a17_0x1e2d(_0x25dc11,_0x19e1c4){const _0x51ccfe=a17_0x51cc();return a17_0x1e2d=function(_0x1e2dd2,_0x1c7440){_0x1e2dd2=_0x1e2dd2-0x121;let _0x101b40=_0x51ccfe[_0x1e2dd2];return _0x101b40;},a17_0x1e2d(_0x25dc11,_0x19e1c4);}async function inputValidation(_0x3bdf51,_0x2d5996){const _0x1f08c8=a17_0x4f986d,_0xe42e49={'vJSUe':function(_0x526099,_0xbccbb8){return _0x526099+_0xbccbb8;},'CDwIf':'Success','HmBTU':_0x1f08c8(0x1ba),'ZSARw':function(_0x523072,_0x538819){return _0x523072||_0x538819;},'QRyTa':_0x1f08c8(0x1d7),'ZCXpU':_0x1f08c8(0x132),'VnDCY':_0x1f08c8(0x141),'ARhuG':_0x1f08c8(0x14b),'rXVuZ':_0x1f08c8(0x20d),'EKhNM':_0x1f08c8(0x122),'GMuhv':_0x1f08c8(0x169),'uICkL':_0x1f08c8(0x128),'sXQbI':_0x1f08c8(0x17f),'tfJhv':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','AvKrr':'help','HYBCM':_0x1f08c8(0x1fc),'nYuJt':'region','pEktM':_0x1f08c8(0x1af),'SsVZE':function(_0x4a138c,_0x1daffe){return _0x4a138c===_0x1daffe;},'ruhrn':'eAbdq','OCbTO':_0x1f08c8(0x177),'cnggu':function(_0x356b40,_0x399f44){return _0x356b40!==_0x399f44;},'HMBMz':_0x1f08c8(0x15a),'vITQK':_0x1f08c8(0x18d),'qEmIP':function(_0x4d8bbf,_0x1ee075){return _0x4d8bbf===_0x1ee075;},'gWKKG':_0x1f08c8(0x1a3),'HFhdr':'lltVI','YdCwi':_0x1f08c8(0x216),'EdcFY':_0x1f08c8(0x1fa),'nHTvB':function(_0xc83bf6,_0x11f396){return _0xc83bf6>_0x11f396;},'kFdKi':_0x1f08c8(0x1d1),'CqmcZ':_0x1f08c8(0x1d2),'rnbSM':function(_0x52965b,_0x18819e,_0x4bf1d6,_0x4fbef8,_0x16d682,_0x29c1d,_0x4d1083,_0x5c517c){return _0x52965b(_0x18819e,_0x4bf1d6,_0x4fbef8,_0x16d682,_0x29c1d,_0x4d1083,_0x5c517c);},'ZsbvL':'pre-check-grid-called','OKnNe':_0x1f08c8(0x13f),'nqpoy':function(_0xfd718c,_0x4ee616){return _0xfd718c!==_0x4ee616;},'EzTCE':_0x1f08c8(0x152),'MrsHp':_0x1f08c8(0x1a1),'zguYj':_0x1f08c8(0x154),'rfHok':_0x1f08c8(0x1db),'GhYzC':_0x1f08c8(0x185),'KyzJD':'sdOdr','TJOta':function(_0x4b7f34,_0x49ffdb){return _0x4b7f34!==_0x49ffdb;},'cWZMC':_0x1f08c8(0x146),'UKztD':_0x1f08c8(0x134),'WIXAc':_0x1f08c8(0x170),'zvkeg':function(_0x2127c7,_0x5cb996,_0x534b17){return _0x2127c7(_0x5cb996,_0x534b17);},'fPTEP':function(_0x4aa85f,_0x324ba1,_0x336003,_0x395073,_0x2dbbad,_0x85e819){return _0x4aa85f(_0x324ba1,_0x336003,_0x395073,_0x2dbbad,_0x85e819);},'xUDPU':_0x1f08c8(0x15f),'rrEqi':_0x1f08c8(0x1f1),'pOZIj':function(_0xe9ef92,_0x28ac99){return _0xe9ef92===_0x28ac99;},'KUhtK':'tvClO','zrsFE':'tPvQO','OkGrM':function(_0x39e541,_0x48e2be){return _0x39e541(_0x48e2be);},'hjIry':_0x1f08c8(0x18f),'kSBJQ':'pre-check-grid-profile-empty','nGXUE':'vucCG','wigQE':'RErJy','RMCmY':function(_0x4cc6ef,_0x1654c7){return _0x4cc6ef!==_0x1654c7;},'KeWZw':_0x1f08c8(0x175),'HosOR':'IdUIX','aWLVo':'Grid\x20profile\x20fetched\x20for\x20pre-check','cjqkI':function(_0x226735,_0x551837){return _0x226735!==_0x551837;},'ADhnh':'iSOBH','smHnM':function(_0x353638,_0x4e3af9){return _0x353638!==_0x4e3af9;},'FcrVf':_0x1f08c8(0x14f),'SDhXy':_0x1f08c8(0x174)};let _0x5c384d;try{if(_0xe42e49['SsVZE'](_0xe42e49[_0x1f08c8(0x1b1)],_0xe42e49[_0x1f08c8(0x215)]))_0x20dc4e+='Cluster\x20'+_0x4911f9[_0x1f08c8(0x1ff)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{if(_0x3bdf51[_0x1f08c8(0x1ff)]||_0x3bdf51[_0x1f08c8(0x125)]||_0x3bdf51[_0x1f08c8(0x214)]){if(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49['HMBMz'],_0xe42e49[_0x1f08c8(0x1f2)])){const _0x5b4133=[];if(!_0x3bdf51[_0x1f08c8(0x1ff)]){if(_0xe42e49[_0x1f08c8(0x19a)](_0xe42e49[_0x1f08c8(0x194)],_0xe42e49['gWKKG']))_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x208)]);else{const {header:_0x1edbb7,response:_0x497f27}=_0x575919,{status:_0x4c00d0,data:_0x118a39,error:_0x494734}=_0x497f27;_0x5c332c+=_0x1edbb7+'\x20#'+_0xe42e49[_0x1f08c8(0x162)](_0x537b73,0x1)+'\x0a',_0x43009e+=_0x1f08c8(0x158)+(_0x4c00d0?_0xe42e49[_0x1f08c8(0x180)]:_0xe42e49[_0x1f08c8(0x18a)])+'\x0a',_0x108e5c+=_0x1f08c8(0x1ac)+_0xe42e49[_0x1f08c8(0x12e)](_0x118a39,_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x494734&&(_0x14eb32+=_0xe42e49[_0x1f08c8(0x1f6)],_0x3ca349+=_0x1f08c8(0x201)+(_0x494734[_0x1f08c8(0x17a)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x3da23f+=_0x1f08c8(0x191)+(_0x494734[_0x1f08c8(0x1b5)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x31bb37+=_0x1f08c8(0x18e)+(_0x494734[_0x1f08c8(0x1b9)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a'),_0x49f44f+='\x0a\x0a';}};!_0x3bdf51[_0x1f08c8(0x125)]&&(_0xe42e49[_0x1f08c8(0x19a)](_0xe42e49['HFhdr'],_0xe42e49[_0x1f08c8(0x213)])?_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1e5)]):_0x487a67[_0x1f08c8(0x197)](0x1));;!_0x3bdf51[_0x1f08c8(0x214)]&&(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49[_0x1f08c8(0x1b6)],_0xe42e49[_0x1f08c8(0x1b6)])?_0x2ef1b7[_0x1f08c8(0x141)]('error\x20stack\x20:\x20'+_0x4c25f1[_0x1f08c8(0x141)][_0x1f08c8(0x1b9)]):_0x5b4133[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1a9)]));;if(_0xe42e49[_0x1f08c8(0x171)](_0x5b4133['length'],0x0)){if(_0xe42e49[_0x1f08c8(0x13a)](_0xe42e49[_0x1f08c8(0x184)],_0xe42e49[_0x1f08c8(0x211)]))_0x5c384d=_0x1f08c8(0x1dd)+_0x5b4133[_0x1f08c8(0x131)](',\x20')+_0x1f08c8(0x16a),await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49['OKnNe'],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),process['exit'](0x1);else{const _0xc50515={};_0xc50515[_0x1f08c8(0x1fe)]=_0x34d7fa['LOG'],_0xc50515[_0x1f08c8(0x17a)]=_0x40bf2f,_0x25f707[_0x1f08c8(0x19f)](_0x11a5b7,_0xc50515,_0xe42e49[_0x1f08c8(0x1be)],!![]);}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1f08c8(0x19d)](_0x3bdf51[_0x1f08c8(0x125)][_0x1f08c8(0x173)]())&&(_0xe42e49['nqpoy'](_0xe42e49[_0x1f08c8(0x1d8)],_0xe42e49[_0x1f08c8(0x217)])?(_0x5c384d=_0xe42e49[_0x1f08c8(0x19c)],await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49[_0x1f08c8(0x136)],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),!_0x3bdf51[_0x1f08c8(0x125)]&&(_0xe42e49['nqpoy'](_0xe42e49['GhYzC'],_0xe42e49['KyzJD'])?(logger[_0x1f08c8(0x139)](_0x1f08c8(0x195)+DEFAULT_CLUSTER_DETAILS[_0x1f08c8(0x16b)]+'\x20'),_0x3bdf51['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x1f08c8(0x16b)]):_0x413a20+=_0x1f08c8(0x137)+_0x2cf504['clusterName']+'\x20'+(_0x3c1ac7?_0xe42e49['ARhuG']:_0xe42e49[_0x1f08c8(0x206)])+'\x0a\x0a')):_0x19129e=_0x5adacf),global_registry[_0x1f08c8(0x1ff)]=_0x3bdf51['clusterName'],global_registry[_0x1f08c8(0x125)]=_0x3bdf51[_0x1f08c8(0x125)],global_registry[_0x1f08c8(0x1ec)]=_0x3bdf51[_0x1f08c8(0x214)];}else _0x31f5cd+=_0xe42e49[_0x1f08c8(0x1f6)],_0x1844f6+=_0x1f08c8(0x201)+(_0x21e851['message']||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x4e9705+=_0x1f08c8(0x191)+(_0x2733ae[_0x1f08c8(0x1b5)]||_0xe42e49[_0x1f08c8(0x1fd)])+'\x0a',_0x519388+=_0x1f08c8(0x18e)+(_0x51c72b['stack']||_0xe42e49['QRyTa'])+'\x0a';}else{if(_0x3bdf51[_0x1f08c8(0x1d6)]){if(_0xe42e49[_0x1f08c8(0x1df)](_0xe42e49[_0x1f08c8(0x1ed)],_0xe42e49[_0x1f08c8(0x123)])){global_registry['gridProfile']=_0x3bdf51[_0x1f08c8(0x1d6)],logger['debug'](_0x1f08c8(0x148)+_0x3bdf51[_0x1f08c8(0x1d6)]);const _0x4c775e='https://'+AG_API_URL+_0x1f08c8(0x193),_0x470138={};_0x470138[_0x1f08c8(0x1dc)]=_0xe42e49[_0x1f08c8(0x1cb)],_0x470138[_0x1f08c8(0x16d)]=global_registry[_0x1f08c8(0x1fb)],_0x470138[_0x1f08c8(0x1d5)]=![];const _0x3bad49=_0x470138,_0x5975ce=await _0xe42e49[_0x1f08c8(0x1f0)](got,_0x4c775e,_0x3bad49),_0x51418a=await _0xe42e49[_0x1f08c8(0x1ce)](responseValidation,_0x5975ce,_0xe42e49[_0x1f08c8(0x21e)],_0xe42e49[_0x1f08c8(0x164)],_0x3bdf51,_0x2d5996);let _0x308be4={};if(_0xe42e49['qEmIP'](_0x51418a,0xc8)){if(_0xe42e49['pOZIj'](_0xe42e49[_0x1f08c8(0x1c7)],_0xe42e49[_0x1f08c8(0x1a6)])){const _0x720efb={};_0x720efb[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x198)],_0x720efb[_0x1f08c8(0x1fe)]=_0xe42e49[_0x1f08c8(0x149)];const _0x544bbf={};_0x544bbf[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x192)],_0x544bbf[_0x1f08c8(0x1fe)]=_0xe42e49[_0x1f08c8(0x149)];const _0x296d77={};_0x296d77[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x17e)],_0x296d77['type']=_0xe42e49[_0x1f08c8(0x149)];const _0x7d66a1={};_0x7d66a1[_0x1f08c8(0x1f3)]=_0xe42e49[_0x1f08c8(0x181)],_0x7d66a1['type']=_0xe42e49['GMuhv'];const _0x92bcd2={};return _0x92bcd2[_0x1f08c8(0x1af)]=_0x720efb,_0x92bcd2[_0x1f08c8(0x216)]=_0x544bbf,_0x92bcd2[_0x1f08c8(0x214)]=_0x296d77,_0x92bcd2['grid-profile']=_0x7d66a1,_0x23aeb3[_0x1f08c8(0x144)](_0x30d80a[_0x1f08c8(0x21b)])[_0x1f08c8(0x20c)](_0x27fc13)[_0x1f08c8(0x178)](_0x92bcd2)[_0x1f08c8(0x1d9)](_0xe42e49[_0x1f08c8(0x159)])[_0x1f08c8(0x219)];}else{const _0x43799a=JSON[_0x1f08c8(0x13d)](_0x5975ce['body']),_0x3eb271=_0x43799a[_0x1f08c8(0x204)](_0x4c8a47=>_0x4c8a47[_0x1f08c8(0x196)]===_0x3bdf51['gridProfile'])||null;_0xe42e49[_0x1f08c8(0x1d0)](isUndefined,_0x3eb271)?_0xe42e49[_0x1f08c8(0x19e)](_0xe42e49[_0x1f08c8(0x153)],_0xe42e49[_0x1f08c8(0x153)])?(_0x5c384d=_0x1f08c8(0x189)+_0x3bdf51[_0x1f08c8(0x1d6)]+_0x1f08c8(0x199),await _0xe42e49['rnbSM'](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49['kSBJQ'],_0xe42e49[_0x1f08c8(0x1be)]),logger[_0x1f08c8(0x141)](_0x5c384d),process['exit'](0x1)):(_0x4ee43c[_0x1f08c8(0x139)](_0x1f08c8(0x195)+_0x229931[_0x1f08c8(0x16b)]+'\x20'),_0x5cdcbe[_0x1f08c8(0x125)]=_0x25e43a['CLOUD_PROVIDER']):_0xe42e49[_0x1f08c8(0x20e)](_0xe42e49[_0x1f08c8(0x210)],_0xe42e49[_0x1f08c8(0x182)])?_0x308be4=_0x3eb271:(_0x1c2571['error'](_0xe42e49[_0x1f08c8(0x13c)]),_0x5dc696[_0x1f08c8(0x197)](0x1));}}else _0xe42e49[_0x1f08c8(0x1e7)](_0xe42e49['KeWZw'],_0xe42e49[_0x1f08c8(0x190)])?process[_0x1f08c8(0x197)](0x1):_0xd319db[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x1a9)]);const _0x328376={};_0x328376[_0x1f08c8(0x1fe)]=WS_EVENTS[_0x1f08c8(0x1bd)],_0x328376['message']=_0xe42e49['aWLVo'],webSocketUtils[_0x1f08c8(0x19f)](_0x2d5996,_0x328376),global_registry[_0x1f08c8(0x125)]=_0x308be4[_0x1f08c8(0x125)],global_registry['clusterRegion']=_0x308be4['region'],global_registry[_0x1f08c8(0x1ff)]=_0x308be4[_0x1f08c8(0x1ff)];}else _0x492be[_0x1f08c8(0x139)]('Cluster\x20`'+_0x4f1dcf['clusterName']+_0x1f08c8(0x12b));}else _0xe42e49['cjqkI'](_0xe42e49[_0x1f08c8(0x1cf)],_0xe42e49[_0x1f08c8(0x1cf)])?(_0x5989e1[_0x1f08c8(0x139)]('['+_0x3f0282+_0x1f08c8(0x1f4)+_0xa828b7['status']+'\x20data\x20:\x20'+_0x5229c9[_0x1f08c8(0x1ca)]+_0x1f08c8(0x18c)+_0x33b5d9[_0x1f08c8(0x141)]),_0x9749f7[_0x1f08c8(0x141)]&&_0x3729b8[_0x1f08c8(0x141)](_0x1f08c8(0x15d)+_0x423b58[_0x1f08c8(0x141)][_0x1f08c8(0x1b9)])):(logger['error'](_0xe42e49[_0x1f08c8(0x13c)]),process[_0x1f08c8(0x197)](0x1));}}}catch(_0x321d29){_0xe42e49[_0x1f08c8(0x12c)](_0xe42e49[_0x1f08c8(0x1eb)],_0xe42e49['SDhXy'])?(_0x5c384d=_0x1f08c8(0x1a7)+_0x321d29+':\x20'+_0x321d29[_0x1f08c8(0x1b9)],logger['error'](_0x5c384d),await _0xe42e49[_0x1f08c8(0x1a5)](reportToGalactusAndSendToEDS,_0x3bdf51,_0x2d5996,_0x5c384d,messageTypes[_0x1f08c8(0x19b)],_0xe42e49[_0x1f08c8(0x140)],_0xe42e49[_0x1f08c8(0x136)],_0xe42e49[_0x1f08c8(0x1be)]),process[_0x1f08c8(0x197)](0x1)):_0x133a2e[_0x1f08c8(0x20b)](_0xe42e49[_0x1f08c8(0x208)]);}}function printResponse(_0x4863ce,_0x3e00a8){const _0x112bce=a17_0x4f986d,_0x460c33={};_0x460c33[_0x112bce(0x179)]=_0x112bce(0x216),_0x460c33[_0x112bce(0x142)]=function(_0x1e29e9,_0x5586e4){return _0x1e29e9===_0x5586e4;},_0x460c33['gclBh']='ECAMK';const _0x580bc1=_0x460c33;logger['info']('['+_0x4863ce+_0x112bce(0x1f4)+_0x3e00a8[_0x112bce(0x183)]+_0x112bce(0x18b)+_0x3e00a8[_0x112bce(0x1ca)]+_0x112bce(0x18c)+_0x3e00a8['error']),_0x3e00a8['error']&&(_0x580bc1[_0x112bce(0x142)](_0x580bc1[_0x112bce(0x1a0)],_0x580bc1[_0x112bce(0x1a0)])?logger[_0x112bce(0x141)](_0x112bce(0x15d)+_0x3e00a8[_0x112bce(0x141)][_0x112bce(0x1b9)]):_0x12c02e[_0x112bce(0x20b)](_0x580bc1['yMZir']));}async function generateReport(_0x1e5f76,_0x4c713f){const _0x2d718d=a17_0x4f986d,_0x2790fb={'umols':function(_0x3a19b3,_0x36fb31){return _0x3a19b3+_0x36fb31;},'xmAOL':_0x2d718d(0x167),'JIIKA':_0x2d718d(0x1ba),'pykTt':function(_0x1a1345,_0x52c3dc){return _0x1a1345||_0x52c3dc;},'uQizu':_0x2d718d(0x1d7),'PhfhW':_0x2d718d(0x132),'TdoND':_0x2d718d(0x1b2),'wtuTT':function(_0x50b558,_0x225f8f){return _0x50b558!=_0x225f8f;},'gvmen':_0x2d718d(0x14b),'wyGRl':_0x2d718d(0x20d),'lrpof':function(_0x755930){return _0x755930();}};let _0x20f5e8=_0x2d718d(0x1ea)+global_registry[_0x2d718d(0x125)]+_0x2d718d(0x166);return _0x1e5f76[_0x2d718d(0x176)]((_0x5dd8cc,_0x7133b1)=>{const _0x54d5a9=_0x2d718d,{header:_0x1544a9,response:_0x4bb083}=_0x5dd8cc,{status:_0x1d1f3a,data:_0x56ce5a,error:_0x32d700}=_0x4bb083;_0x20f5e8+=_0x1544a9+'\x20#'+_0x2790fb['umols'](_0x7133b1,0x1)+'\x0a',_0x20f5e8+=_0x54d5a9(0x158)+(_0x1d1f3a?_0x2790fb[_0x54d5a9(0x1e2)]:_0x2790fb[_0x54d5a9(0x186)])+'\x0a',_0x20f5e8+=_0x54d5a9(0x1ac)+_0x2790fb[_0x54d5a9(0x129)](_0x56ce5a,_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a',_0x32d700&&(_0x20f5e8+=_0x2790fb[_0x54d5a9(0x1e6)],_0x20f5e8+='\x20\x20Message:\x20'+(_0x32d700['message']||_0x2790fb['uQizu'])+'\x0a',_0x20f5e8+=_0x54d5a9(0x191)+(_0x32d700['code']||_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a',_0x20f5e8+='\x20\x20Stack:\x20'+(_0x32d700[_0x54d5a9(0x1b9)]||_0x2790fb[_0x54d5a9(0x1a2)])+'\x0a'),_0x20f5e8+='\x0a\x0a';}),_0x20f5e8+=_0x2790fb[_0x2d718d(0x168)],_0x2790fb[_0x2d718d(0x1de)](_0x4c713f,null)?_0x20f5e8+=_0x2d718d(0x137)+global_registry[_0x2d718d(0x1ff)]+'\x20'+(_0x4c713f?_0x2790fb['gvmen']:_0x2790fb['wyGRl'])+'\x0a\x0a':_0x20f5e8+=_0x2d718d(0x137)+global_registry[_0x2d718d(0x1ff)]+_0x2d718d(0x135),_0x20f5e8+=_0x2790fb[_0x2d718d(0x121)](getSystemMetaData),_0x20f5e8;};exports['handler']=async function(_0x39bbe6){const _0x1b3959=a17_0x4f986d,_0x505afa={'DWcjz':function(_0x341bab){return _0x341bab();},'pkXVn':_0x1b3959(0x15c),'TLDaT':function(_0x6dde4,_0x1a1fe7,_0x44d4ec,_0x57e5f9,_0x94cc55,_0x262e9c,_0x26e0be,_0xbd0fa4){return _0x6dde4(_0x1a1fe7,_0x44d4ec,_0x57e5f9,_0x94cc55,_0x262e9c,_0x26e0be,_0xbd0fa4);},'okyYB':_0x1b3959(0x1e4),'GBySQ':_0x1b3959(0x1e9),'HokRR':'error','TxLza':function(_0x35a77b,_0x26ef0b,_0x4cd25d,_0x206c89,_0x2023cb,_0x274413,_0x47233c){return _0x35a77b(_0x26ef0b,_0x4cd25d,_0x206c89,_0x2023cb,_0x274413,_0x47233c);},'vAZmb':function(_0x1021a1){return _0x1021a1();},'PDOni':_0x1b3959(0x145),'gKBwZ':_0x1b3959(0x14d),'bUafF':function(_0x362453,_0x52ebb9,_0x2ce061){return _0x362453(_0x52ebb9,_0x2ce061);},'UcgJT':function(_0x123629,_0x3ebb2f,_0x3f21a0){return _0x123629(_0x3ebb2f,_0x3f21a0);},'RnemT':function(_0x1aa111,_0x41cfc5,_0x3196c6,_0x1f387a,_0x3a7205,_0x14ac79,_0x168bc4){return _0x1aa111(_0x41cfc5,_0x3196c6,_0x1f387a,_0x3a7205,_0x14ac79,_0x168bc4);},'alXKC':_0x1b3959(0x20a),'OaHCL':function(_0x56f068,_0x435143,_0x274fee){return _0x56f068(_0x435143,_0x274fee);},'UHgdE':_0x1b3959(0x150),'YoZob':'2|0|1|3|4','WpLrR':function(_0x593193,_0x38e6c6,_0x3edbcf){return _0x593193(_0x38e6c6,_0x3edbcf);},'tOuHW':_0x1b3959(0x14c),'FacQF':function(_0x1028ce,_0xc036b5,_0xc52982){return _0x1028ce(_0xc036b5,_0xc52982);},'aeIBa':'isTrialGridAccessible','UWXSR':function(_0x2af7d2,_0x43443e){return _0x2af7d2(_0x43443e);},'OJATA':_0x1b3959(0x187),'VgYjV':function(_0x3919f5,_0x55678e,_0x33d898){return _0x3919f5(_0x55678e,_0x33d898);},'uiqoP':'isTls1_2_SUPPORTED','BgkPm':_0x1b3959(0x1b3),'yAuJM':_0x1b3959(0x1d4),'dlnSy':_0x1b3959(0x221),'KVYRX':_0x1b3959(0x1f5),'aXzRB':function(_0x37abee,_0xe54b09,_0x5d4896){return _0x37abee(_0xe54b09,_0x5d4896);},'OhKQX':function(_0x3679d3,_0x508f8b){return _0x3679d3+_0x508f8b;},'UoGWq':_0x1b3959(0x1b0),'yJgJT':function(_0x271d8f,_0x244667,_0xba8a55,_0x4e19bc,_0x16bd51,_0x3a43db,_0x441d1d){return _0x271d8f(_0x244667,_0xba8a55,_0x4e19bc,_0x16bd51,_0x3a43db,_0x441d1d);},'JeJUE':_0x1b3959(0x1ee)};let _0x3f7ec4,_0x1ae2e2;try{global_registry['requestId']=_0x505afa[_0x1b3959(0x16e)](uuidv4);!fs[_0x1b3959(0x1aa)](_0x505afa[_0x1b3959(0x16e)](getCredentialsPath))&&(_0x1ae2e2=_0x505afa[_0x1b3959(0x21d)],logger[_0x1b3959(0x141)](_0x1ae2e2),await _0x505afa[_0x1b3959(0x1a8)](reportToGalactusAndSendToEDS,_0x39bbe6,_0x3f7ec4,_0x1ae2e2,messageTypes[_0x1b3959(0x19b)],_0x505afa[_0x1b3959(0x1c8)],_0x505afa[_0x1b3959(0x220)],_0x505afa['HokRR']),process[_0x1b3959(0x197)](0x1));_0x505afa['TxLza'](sendInstrumentationEvent,_0x39bbe6,_0x505afa['okyYB'],messageTypes['INFO'],null,null,_0x39bbe6);const _0x1dc4a5=JSON[_0x1b3959(0x13d)](fs['readFileSync'](_0x505afa[_0x1b3959(0x1b7)](getCredentialsPath)));global_registry[_0x1b3959(0x1e1)]=_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x151)],global_registry['bstackAccesskey']=_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x207)];const _0x90010f=WS_ENDPOINT[_0x1b3959(0x13e)](_0x505afa[_0x1b3959(0x172)],_0x1dc4a5['Browserstack']['username'])[_0x1b3959(0x13e)](_0x505afa[_0x1b3959(0x165)],_0x1dc4a5[_0x1b3959(0x1e3)][_0x1b3959(0x207)]),_0x260778={};_0x260778[_0x1b3959(0x15b)]=ws,_0x260778[_0x1b3959(0x14a)]=0x36ee80,_0x3f7ec4=new ReconnectingWebSocket(_0x90010f,[],_0x260778),global_registry[_0x1b3959(0x1fb)]=_0x505afa['bUafF'](getAuthHeader,global_registry[_0x1b3959(0x1e1)],global_registry[_0x1b3959(0x17c)]),await _0x505afa['UcgJT'](inputValidation,_0x39bbe6,_0x3f7ec4),logger['info'](_0x1b3959(0x126)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x1b3959(0x1ec)]);let _0x30e8a8=await _0x505afa['RnemT'](getCloudProviderObjectWithOutInit,global_registry[_0x1b3959(0x125)],global_registry['clusterName'],_0x505afa[_0x1b3959(0x1ef)],_0x3f7ec4,webSocketUtils,_0x39bbe6);const _0x2d85c8=await _0x30e8a8['isCliToolInstalled']();_0x505afa['OaHCL'](printResponse,_0x505afa[_0x1b3959(0x21c)],_0x2d85c8),_0x30e8a8=await _0x30e8a8['init']();let _0x24415b=![];try{_0x24415b=await _0x30e8a8['isClusterPresent']();}catch(_0x3266ee){const _0xe0c112=_0x505afa[_0x1b3959(0x12a)][_0x1b3959(0x1ab)]('|');let _0x48d424=0x0;while(!![]){switch(_0xe0c112[_0x48d424++]){case'0':_0x24415b=null;continue;case'1':logger['error'](_0x1ae2e2);continue;case'2':_0x1ae2e2=_0x1b3959(0x1c3)+global_registry[_0x1b3959(0x1ff)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x1b3959(0x1ec)]+'`\x20,error\x20:\x20'+_0x3266ee;continue;case'3':_0x1ae2e2+='\x0a'+JSON[_0x1b3959(0x1c5)](_0x3266ee[_0x1b3959(0x1b9)]);continue;case'4':await _0x505afa[_0x1b3959(0x1a8)](reportToGalactusAndSendToEDS,_0x39bbe6,_0x3f7ec4,_0x1ae2e2,messageTypes[_0x1b3959(0x19b)],_0x505afa['okyYB'],_0x1b3959(0x200)+global_registry[_0x1b3959(0x125)],_0x505afa[_0x1b3959(0x21f)]);continue;}break;}}_0x24415b&&logger[_0x1b3959(0x139)](_0x1b3959(0x1bf)+global_registry[_0x1b3959(0x1ff)]+'`\x20already\x20exists');const _0x1afea2=await _0x30e8a8[_0x1b3959(0x16f)]();_0x505afa[_0x1b3959(0x1d3)](printResponse,_0x505afa[_0x1b3959(0x1a4)],_0x1afea2);const _0x4ad512=await _0x505afa[_0x1b3959(0x1b7)](curlRequest);_0x505afa[_0x1b3959(0x1cd)](printResponse,_0x505afa[_0x1b3959(0x1c1)],_0x4ad512);const _0x392f57=await _0x505afa[_0x1b3959(0x1f8)](isTlsSupported,_0x505afa['OJATA']);_0x505afa['VgYjV'](printResponse,_0x505afa[_0x1b3959(0x20f)],_0x392f57);const _0x12495e={};_0x12495e['header']=_0x505afa[_0x1b3959(0x1cc)],_0x12495e['response']=_0x2d85c8;const _0xf77ba6={};_0xf77ba6[_0x1b3959(0x1c4)]=_0x505afa['yAuJM'],_0xf77ba6['response']=_0x1afea2;const _0x39a28a={};_0x39a28a['header']=_0x505afa['dlnSy'],_0x39a28a[_0x1b3959(0x130)]=_0x4ad512;const _0x5a22c7={};_0x5a22c7[_0x1b3959(0x1c4)]=_0x505afa[_0x1b3959(0x1ad)],_0x5a22c7['response']=_0x392f57;const _0x52bd28=[_0x12495e,_0xf77ba6,_0x39a28a,_0x5a22c7],_0x36dd89=await _0x505afa[_0x1b3959(0x205)](generateReport,_0x52bd28,_0x24415b),_0x22b696=new Date(),_0x415310=_0x22b696[_0x1b3959(0x17d)]()+'_'+_0x505afa['OhKQX'](_0x22b696['getUTCMonth'](),0x1)+'_'+_0x22b696['getUTCDate']()+'_'+_0x22b696['getUTCHours']()+'_'+_0x22b696[_0x1b3959(0x161)](),_0x24f769=_0x1b3959(0x15e)+_0x415310+_0x1b3959(0x12d);fs[_0x1b3959(0x212)](_0x24f769,_0x36dd89,_0x505afa[_0x1b3959(0x203)]),logger[_0x1b3959(0x139)](_0x1b3959(0x143)+_0x24f769),process['exit'](0x0);}catch(_0x2afe24){let _0x29f49d=_0x1b3959(0x1b8)+_0x2afe24+'\x20';logger['error'](_0x29f49d),_0x29f49d+='\x0a'+JSON[_0x1b3959(0x1c5)](_0x2afe24[_0x1b3959(0x1b9)]),logger['debug'](_0x1b3959(0x1f7)+_0x2afe24['stack']);if(_0x3f7ec4){const _0x6f443={};_0x6f443[_0x1b3959(0x1fe)]=WS_EVENTS[_0x1b3959(0x1bd)],_0x6f443[_0x1b3959(0x17a)]=_0x29f49d,webSocketUtils[_0x1b3959(0x19f)](_0x3f7ec4,_0x6f443,_0x505afa[_0x1b3959(0x21f)],!![]);}await webSocketUtils[_0x1b3959(0x218)](0x7d0);const _0x53beb5={};_0x53beb5[_0x1b3959(0x141)]=_0x29f49d,await _0x505afa['yJgJT'](sendInstrumentationEvent,_0x39bbe6,_0x505afa[_0x1b3959(0x1c8)],messageTypes['ERROR'],_0x505afa[_0x1b3959(0x1b4)],_0x53beb5,_0x39bbe6),process[_0x1b3959(0x197)](0x1);}};function a17_0x51cc(){const _0x25c5f6=['zrsFE','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','TLDaT','nYuJt','existsSync','split','Message:\x20','KVYRX','136IOMMIQ','cluster-name','utf-8','ruhrn','Cluster\x20details\x0a-----------------------\x0a','Tool\x20Installed','JeJUE','code','EdcFY','vAZmb','Failed\x20in\x20pre-check!\x20Error:\x20','stack','Failure','7536859jbsyUi','rEzwv','LOG','VnDCY','Cluster\x20`','got','aeIBa','grid','unable\x20to\x20verify\x20if\x20cluster\x20`','header','stringify','reconnecting-websocket','KUhtK','okyYB','Knxfk','data','WIXAc','BgkPm','FacQF','fPTEP','ADhnh','OkGrM','oEVCV','NgiVR','WpLrR','User\x20Access','throwHttpErrors','gridProfile','N/A','EzTCE','help','763936XnRLst','cloud-provider-not-supported','method','Missing\x20required\x20arguments:\x20','wtuTT','TJOta','padZo','bstackUsername','xmAOL','Browserstack','pre-check-grid-called','YdCwi','PhfhW','RMCmY','BLgYY','credential-not-found','===\x20Precheck\x20Report\x20-\x20','FcrVf','clusterRegion','cWZMC','pre-check-failed','alXKC','zvkeg','grid-profile','vITQK','description',']\x20status\x20:\x20','SSL\x20Configured','ZCXpU','stack\x20trace\x20','UWXSR','../../config/constants','bllTr','authHeader','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','QRyTa','type','clusterName','cluster-check-failed-','\x20\x20Message:\x20','21064nTCYca','UoGWq','find','aXzRB','rXVuZ','password','pEktM','../../utils/utilityMethods','dummy-grid','push','epilogue','will\x20be\x20created','nqpoy','uiqoP','nGXUE','CqmcZ','writeFileSync','HFhdr','region','OCbTO','cloud-provider','MrsHp','delay','argv','../../config/logger','pre_check','UHgdE','pkXVn','xUDPU','HokRR','GBySQ','Whitelisted\x20browserstack','command','lrpof','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','UKztD','DwGkj','cloudProvider','Pre-check\x20running\x20for\x20Cloud\x20-\x20','../../utils/webSocketUtils','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','pykTt','YoZob','`\x20already\x20exists','smHnM','.txt','ZSARw','5491467xpayJP','response','join','Error\x20Details:\x0a','134110guijWP','xfQrD','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','rfHok','Cluster\x20','desc','info','cnggu','uuid','HYBCM','parse','replace','pre-check-cluster-args-not-passed','ZsbvL','error','KNpKX','Report\x20saved\x20in\x20','usage','<UsernamePlaceholder>','ACbMp','4ewRzYD','grid\x20profile\x20flow\x20','GMuhv','connectionTimeout','is\x20already\x20present','accessResp','<PasswordPlaceholder>','asxzH','JhAAh','toolInstalledResp','username','DjDhU','hjIry','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','builder','24rZxQCi','Status:\x20','AvKrr','Jpmzx','WebSocket','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error\x20stack\x20:\x20','log/report_','pre-check','194106VYbGnD','getUTCMinutes','vJSUe','10xGAMCH','rrEqi','gKBwZ','\x20===\x0a\x0a','Success','TdoND','string','.\x20Please\x20provide\x20all\x20required\x20arguments.','CLOUD_PROVIDER','21PCiEKE','headers','DWcjz','checkAccess','GET','nHTvB','PDOni','toLowerCase','joeeI','jqmUW','forEach','EPRiA','options','yMZir','message','4171692jiEbqq','bstackAccesskey','getUTCFullYear','sXQbI','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','CDwIf','tfJhv','wigQE','status','kFdKi','oVSLR','JIIKA','TLSv1_2_client_method','../../cloudproviders/utils','Invalid\x20input.\x20grid\x20profiles:\x20','HmBTU','\x20data\x20:\x20','\x20error\x20:\x20','HsLKt','\x20\x20Stack:\x20','kUspl','HosOR','\x20\x20Code:\x20','uICkL','/packages/cli/get-all-grid-profiles','gWKKG','Setting\x20cloud\x20provider\x20as\x20','name','exit','EKhNM','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','qEmIP','ERROR','zguYj','includes','SsVZE','sendEventToBackend','gclBh','KvcQo','uQizu','dCkCk','tOuHW','rnbSM'];a17_0x51cc=function(){return _0x25c5f6;};return a17_0x51cc();}
|
|
1
|
+
const a17_0x145cd4=a17_0x1a88;(function(_0x29e310,_0x683593){const _0x51d620=a17_0x1a88,_0x239abb=_0x29e310();while(!![]){try{const _0x17615c=-parseInt(_0x51d620(0x207))/0x1+-parseInt(_0x51d620(0x1b9))/0x2*(parseInt(_0x51d620(0x268))/0x3)+parseInt(_0x51d620(0x1f2))/0x4*(-parseInt(_0x51d620(0x1dd))/0x5)+parseInt(_0x51d620(0x21e))/0x6+-parseInt(_0x51d620(0x276))/0x7*(parseInt(_0x51d620(0x1a1))/0x8)+parseInt(_0x51d620(0x1dc))/0x9*(-parseInt(_0x51d620(0x184))/0xa)+parseInt(_0x51d620(0x1d0))/0xb*(parseInt(_0x51d620(0x1ed))/0xc);if(_0x17615c===_0x683593)break;else _0x239abb['push'](_0x239abb['shift']());}catch(_0x78732a){_0x239abb['push'](_0x239abb['shift']());}}}(a17_0x5800,0x5f09d));function a17_0x5800(){const _0x5a1ba6=['rjvkb','RDEcL','vbTzQ','Invalid\x20input.\x20grid\x20profiles:\x20','Tool\x20Installed','XyuEt','forEach','2092092aCSUDt','../../utils/webSocketUtils','\x20region\x20-\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UfQBB','toolInstalledResp','GET','RdwRp','`\x20already\x20exists','coIzP','YpYfh','fFUln','options','pre_check','jcrPH','kkrSK','Whitelisted\x20browserstack','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','nQoAY','ICbQs','rpgnm','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','lqRDV','pUFsZ','yCvmV','iaeTP','olGWN','TaUlg','clusterName','throwHttpErrors','help','JWJrl','ZVvzI','readFileSync','DRMTD','status','bstackAccesskey','vvUBp','SSL\x20Configured','`\x20,error\x20:\x20','epilogue','DffnC','osdpY','hhRMT','usage','region','bstackUsername','WbnJg','.txt','fffjE','wIxZc','code','type','getUTCHours','writeFileSync','checkAccess','getUTCFullYear','PITnw','kdNhL','EvCqs','MczQR','lRRog','grid\x20profile\x20flow\x20','<PasswordPlaceholder>','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cloudProvider','debug','ykxmi','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','command','ukJSF','SVdNH','ivnNh','PrQpL','41958JncJQb','body','SbrUe','zUIcW','zwFIl','find','replace','qqjFw','dQlif','Browserstack','qUgNt','qSbuj','UCxaQ','getUTCMonth','13111IgVJiJ','xEiFV','handler','jwzck','User\x20Access','will\x20be\x20created','Setting\x20cloud\x20provider\x20as\x20','GQGMA','QRnZH','headers','AqScU','/packages/cli/get-all-grid-profiles','UaQza','`\x20is\x20present\x20in\x20region\x20`','YZqWg','2240BTcsgC','Failure','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','parse','../../config/constants','\x20\x20Code:\x20','includes','../../utils/instrumentationUtils','ZxWFg','xxoth','LOG','split','Cluster\x20','WebSocket','getUTCMinutes','getUTCDate','vEhxj','YUTjX','tCgHh','quqqQ','uuid','response','muIhh','KspEG','eizDd','pre-check-failed','HJqAH','tyEFL','HHscG','1648jKcBKo','FsqqP','tVijO','length','Fuiyt',']\x20status\x20:\x20','argv','===\x20Precheck\x20Report\x20-\x20','stack','jvVDc','cluster-name','error','UbDqi','UufZP','ROsFF','message','EFIgc','join','string','<UsernamePlaceholder>','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','reconnecting-websocket','Message:\x20','DeOAk','94YLMoiF','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','grid-profile','Status:\x20','EPGCb','existsSync','rpfJx','eXPBS','YKkdp','\x20data\x20:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','utf-8','cSXgU','bJWAf','KgNCu','isTls1_2_SUPPORTED','ycxyY','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','zqaZb','iolpb','\x20\x20Stack:\x20','CLOUD_PROVIDER','header','3456376ahZAmG','ixMUn','EiuEZ','ArFCq','AIQFy','bHCQm','4|3|0|2|1','lKiXB','EZOIW','\x20===\x0a\x0a','stringify','log/report_','13410LsVLrq','5Mcsquf','tjGGL','Pre-check\x20running\x20for\x20Cloud\x20-\x20','clusterRegion','N/A','uzqzT','isTrialGridAccessible','dummy-grid','zivnH','sendEventToBackend','pre-check-grid-called','pnNAQ','TdbWw','tiCyF','jjAOS','uXQFT','96aTcGgN','accessResp','ERROR','JrkPl','push','2522452TmxFCb','Samin','info','\x20error\x20:\x20','ldZoQ','cloud-provider','pre-check','Cluster\x20`','gridProfile','username','description','name','password','GJfMg','grid','requestId','error\x20stack\x20:\x20','is\x20already\x20present','authHeader','wezZC','BKfzT','465580wUZIYg','Success','pre-check-grid-profile-empty','init','credential-not-found','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bolbe','OkdVZ','rxmCJ','exit','Error\x20Details:\x0a','nCmzm','QBUCF','tONXF','lvZPf','prtui'];a17_0x5800=function(){return _0x5a1ba6;};return a17_0x5800();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x145cd4(0x198)),ReconnectingWebSocket=require(a17_0x145cd4(0x1b6)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x145cd4(0x188)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x145cd4(0x21f)),{sendInstrumentationEvent}=require(a17_0x145cd4(0x18b));function a17_0x1a88(_0x50f7eb,_0x492313){const _0x5800ea=a17_0x5800();return a17_0x1a88=function(_0x1a8816,_0x907cd0){_0x1a8816=_0x1a8816-0x177;let _0x500a1e=_0x5800ea[_0x1a8816];return _0x500a1e;},a17_0x1a88(_0x50f7eb,_0x492313);}exports[a17_0x145cd4(0x263)]=a17_0x145cd4(0x200),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x2860dc){const _0x4a086e=a17_0x145cd4,_0xea8c97={};_0xea8c97[_0x4a086e(0x1cb)]=_0x4a086e(0x22f),_0xea8c97[_0x4a086e(0x213)]=_0x4a086e(0x1b3),_0xea8c97[_0x4a086e(0x1b8)]=_0x4a086e(0x1ba),_0xea8c97[_0x4a086e(0x228)]=_0x4a086e(0x20c),_0xea8c97['prtui']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xea8c97[_0x4a086e(0x17f)]=_0x4a086e(0x23c);const _0x40a885=_0xea8c97,_0xc64e27={};_0xc64e27[_0x4a086e(0x1fc)]=_0x40a885[_0x4a086e(0x1cb)],_0xc64e27['type']=_0x40a885['QBUCF'];const _0x3eb3b2={};_0x3eb3b2['description']=_0x40a885['DeOAk'],_0x3eb3b2['type']=_0x40a885[_0x4a086e(0x213)];const _0x28135f={};_0x28135f[_0x4a086e(0x1fc)]=_0x40a885[_0x4a086e(0x228)],_0x28135f['type']=_0x40a885[_0x4a086e(0x213)];const _0x646e6e={};_0x646e6e[_0x4a086e(0x1fc)]=_0x40a885[_0x4a086e(0x216)],_0x646e6e[_0x4a086e(0x252)]=_0x40a885[_0x4a086e(0x213)];const _0x4576e8={};return _0x4576e8[_0x4a086e(0x1ab)]=_0xc64e27,_0x4576e8[_0x4a086e(0x1f7)]=_0x3eb3b2,_0x4576e8[_0x4a086e(0x24b)]=_0x28135f,_0x4576e8[_0x4a086e(0x1bb)]=_0x646e6e,_0x2860dc[_0x4a086e(0x24a)](HELP_HEADER_MESSAGE[_0x4a086e(0x22b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a086e(0x22a)](_0x4576e8)[_0x4a086e(0x23c)](_0x40a885['AqScU'])[_0x4a086e(0x1a7)];};async function inputValidation(_0x178202,_0x17ae08){const _0x58f127=a17_0x145cd4,_0x53e932={'EvCqs':_0x58f127(0x1ab),'qSbuj':_0x58f127(0x22f),'rjvkb':_0x58f127(0x1b3),'OkdVZ':_0x58f127(0x1ba),'BBsPw':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','jvVDc':_0x58f127(0x262),'QEYMs':_0x58f127(0x23c),'tCgHh':'cloud-provider','lKiXB':_0x58f127(0x1ac),'eizDd':_0x58f127(0x1b5),'Fuiyt':_0x58f127(0x211),'muIhh':_0x58f127(0x1e1),'RdwRp':'is\x20already\x20present','iaeTP':_0x58f127(0x17a),'wezZC':function(_0x44139d,_0x3a49a4){return _0x44139d+_0x3a49a4;},'coIzP':_0x58f127(0x208),'TaUlg':_0x58f127(0x185),'BKfzT':function(_0xbe66c3,_0x37fe8f){return _0xbe66c3||_0x37fe8f;},'tiCyF':function(_0x5e3efb,_0x2a199d){return _0x5e3efb===_0x2a199d;},'UaQza':_0x58f127(0x264),'DffnC':'VMtwj','rpfJx':function(_0x185172,_0x5a9c00){return _0x185172!==_0x5a9c00;},'ArFCq':_0x58f127(0x266),'tyEFL':_0x58f127(0x1c0),'QRnZH':function(_0x3412b5,_0x5b60cb){return _0x3412b5===_0x5b60cb;},'quqqQ':_0x58f127(0x1d8),'tVijO':_0x58f127(0x1ff),'KgNCu':'nfBNq','ldZoQ':_0x58f127(0x26b),'jwzck':function(_0x5cc4d5,_0x175061){return _0x5cc4d5===_0x175061;},'EPGCb':_0x58f127(0x261),'fxRuI':_0x58f127(0x235),'vbTzQ':_0x58f127(0x24b),'pnNAQ':function(_0x55f56e,_0x4a46b8){return _0x55f56e>_0x4a46b8;},'WbnJg':function(_0x5501d6,_0xfc7bb9){return _0x5501d6===_0xfc7bb9;},'dQlif':_0x58f127(0x1f3),'RDEcL':function(_0x26975d,_0x3825d6,_0x5b3f6d,_0x20a818,_0x17145d,_0x16c36c,_0x4fadfd,_0x6c6ea7){return _0x26975d(_0x3825d6,_0x5b3f6d,_0x20a818,_0x17145d,_0x16c36c,_0x4fadfd,_0x6c6ea7);},'hhRMT':_0x58f127(0x1e7),'MczQR':'pre-check-cluster-args-not-passed','EiuEZ':_0x58f127(0x22d),'tONXF':_0x58f127(0x1ca),'eAWah':'cloud-provider-not-supported','iolpb':function(_0x43f46d,_0x473280){return _0x43f46d===_0x473280;},'TXtoZ':'NQyZC','umDUw':_0x58f127(0x1ad),'PITnw':_0x58f127(0x26c),'qUgNt':_0x58f127(0x277),'uzqzT':_0x58f127(0x224),'nQoAY':function(_0x8554d5,_0x42e226,_0x5cce86){return _0x8554d5(_0x42e226,_0x5cce86);},'fAdGF':function(_0x2221fa,_0x2d2e73,_0x4ae5cd,_0x377273,_0x59dfef,_0x47c91d){return _0x2221fa(_0x2d2e73,_0x4ae5cd,_0x377273,_0x59dfef,_0x47c91d);},'jjAOS':_0x58f127(0x1f8),'GQGMA':'grid-profile','YKkdp':function(_0x1c43e3,_0x39aa10){return _0x1c43e3===_0x39aa10;},'DHycX':_0x58f127(0x231),'BMcKC':_0x58f127(0x1af),'UfQBB':function(_0x5a6f62,_0x1ede23){return _0x5a6f62(_0x1ede23);},'tjGGL':_0x58f127(0x19e),'jcrPH':_0x58f127(0x212),'sNkfc':_0x58f127(0x209),'UCxaQ':function(_0x44c461,_0x55169d){return _0x44c461===_0x55169d;},'vEhxj':_0x58f127(0x1e9),'olGWN':function(_0x3c077d,_0x423609){return _0x3c077d===_0x423609;},'zaJiK':_0x58f127(0x23e),'sqYuc':_0x58f127(0x267),'hQOlh':'Grid\x20profile\x20fetched\x20for\x20pre-check','JrkPl':function(_0x56cd07,_0x459747){return _0x56cd07!==_0x459747;},'xxoth':_0x58f127(0x1c5),'UufZP':'IBDZY'};let _0x1eb326;try{if(_0x53e932[_0x58f127(0x1ea)](_0x53e932[_0x58f127(0x181)],_0x53e932[_0x58f127(0x247)]))_0x413b89[_0x58f127(0x1f1)](_0x53e932[_0x58f127(0x259)]);else{if(_0x178202[_0x58f127(0x23a)]||_0x178202[_0x58f127(0x25f)]||_0x178202[_0x58f127(0x24b)]){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x1d3)],_0x53e932[_0x58f127(0x19f)])){const _0xe50c07=[];!_0x178202['clusterName']&&(_0x53e932[_0x58f127(0x17d)](_0x53e932[_0x58f127(0x197)],_0x53e932[_0x58f127(0x1a3)])?_0x659d94+=_0x58f127(0x190)+_0x9bcb60[_0x58f127(0x23a)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':_0xe50c07['push'](_0x53e932[_0x58f127(0x259)]));;if(!_0x178202['cloudProvider']){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x1c7)],_0x53e932[_0x58f127(0x1f6)]))_0xe50c07['push'](_0x53e932['tCgHh']);else{const _0x5ce9b6={};_0x5ce9b6[_0x58f127(0x1fc)]=_0x53e932[_0x58f127(0x273)],_0x5ce9b6[_0x58f127(0x252)]=_0x53e932[_0x58f127(0x217)];const _0x2ec968={};_0x2ec968[_0x58f127(0x1fc)]=_0x53e932[_0x58f127(0x20e)],_0x2ec968['type']=_0x53e932[_0x58f127(0x217)];const _0x2880b3={};_0x2880b3[_0x58f127(0x1fc)]=_0x53e932['BBsPw'],_0x2880b3['type']=_0x53e932[_0x58f127(0x217)];const _0x165e75={};_0x165e75['description']=_0x53e932[_0x58f127(0x1aa)],_0x165e75['type']=_0x53e932['rjvkb'];const _0x19a5dc={};return _0x19a5dc[_0x58f127(0x1ab)]=_0x5ce9b6,_0x19a5dc[_0x58f127(0x1f7)]=_0x2ec968,_0x19a5dc[_0x58f127(0x24b)]=_0x2880b3,_0x19a5dc[_0x58f127(0x1bb)]=_0x165e75,_0x357e6e[_0x58f127(0x24a)](_0x23849a[_0x58f127(0x22b)])[_0x58f127(0x246)](_0x53d68c)[_0x58f127(0x22a)](_0x19a5dc)[_0x58f127(0x23c)](_0x53e932['QEYMs'])[_0x58f127(0x1a7)];}};!_0x178202[_0x58f127(0x24b)]&&(_0x53e932[_0x58f127(0x178)](_0x53e932[_0x58f127(0x1bd)],_0x53e932['fxRuI'])?_0x67fabf=_0x49fb8d:_0xe50c07[_0x58f127(0x1f1)](_0x53e932[_0x58f127(0x219)]));;_0x53e932[_0x58f127(0x1e8)](_0xe50c07[_0x58f127(0x1a4)],0x0)&&(_0x53e932[_0x58f127(0x24d)](_0x53e932['dQlif'],_0x53e932[_0x58f127(0x270)])?(_0x1eb326='Missing\x20required\x20arguments:\x20'+_0xe50c07[_0x58f127(0x1b2)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes['ERROR'],_0x53e932[_0x58f127(0x249)],_0x53e932[_0x58f127(0x25a)],_0x53e932[_0x58f127(0x1d7)]),logger[_0x58f127(0x1ac)](_0x1eb326),process[_0x58f127(0x210)](0x1)):_0x3e8afc[_0x58f127(0x1f1)](_0x53e932[_0x58f127(0x196)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x58f127(0x18a)](_0x178202[_0x58f127(0x25f)]['toLowerCase']())){if(_0x53e932['rpfJx'](_0x53e932[_0x58f127(0x1d2)],_0x53e932[_0x58f127(0x1d2)])){const _0x3375dc={};_0x3375dc[_0x58f127(0x252)]=_0x2d57b[_0x58f127(0x18e)],_0x3375dc[_0x58f127(0x1b0)]=_0x26d95e,_0x28fe80[_0x58f127(0x1e6)](_0x152b61,_0x3375dc,_0x53e932['lKiXB'],!![]);}else _0x1eb326=_0x53e932[_0x58f127(0x214)],await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes[_0x58f127(0x1ef)],_0x53e932['hhRMT'],_0x53e932['eAWah'],_0x53e932['lKiXB']),logger[_0x58f127(0x1ac)](_0x1eb326),!_0x178202[_0x58f127(0x25f)]&&(_0x53e932[_0x58f127(0x1cc)](_0x53e932['TXtoZ'],_0x53e932['umDUw'])?(_0x46b1d9['info']('['+_0x35d81d+']\x20status\x20:\x20'+_0x311e3c['status']+_0x58f127(0x1c2)+_0x36d073['data']+_0x58f127(0x1f5)+_0x5b41d2['error']),_0x220254[_0x58f127(0x1ac)]&&_0x2ce64f[_0x58f127(0x1ac)]('error\x20stack\x20:\x20'+_0x3c6576[_0x58f127(0x1ac)][_0x58f127(0x1a9)])):(logger[_0x58f127(0x1f4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x178202[_0x58f127(0x25f)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0x58f127(0x23a)]=_0x178202[_0x58f127(0x23a)],global_registry[_0x58f127(0x25f)]=_0x178202[_0x58f127(0x25f)],global_registry[_0x58f127(0x1e0)]=_0x178202[_0x58f127(0x24b)];}else _0x1594fb[_0x58f127(0x210)](0x1);}else{if(_0x178202[_0x58f127(0x1fa)]){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x257)],_0x53e932[_0x58f127(0x272)])){global_registry[_0x58f127(0x1fa)]=_0x178202[_0x58f127(0x1fa)],logger[_0x58f127(0x260)](_0x58f127(0x25c)+_0x178202[_0x58f127(0x1fa)]);const _0x532141='https://'+AG_API_URL+_0x58f127(0x180),_0x5d1473={};_0x5d1473['method']=_0x53e932[_0x58f127(0x1e2)],_0x5d1473[_0x58f127(0x17e)]=global_registry['authHeader'],_0x5d1473[_0x58f127(0x23b)]=![];const _0x2dbc50=_0x5d1473,_0xcc84b8=await _0x53e932[_0x58f127(0x230)](got,_0x532141,_0x2dbc50),_0x2872e5=await _0x53e932['fAdGF'](responseValidation,_0xcc84b8,_0x53e932[_0x58f127(0x1eb)],_0x53e932[_0x58f127(0x17c)],_0x178202,_0x17ae08);let _0x3ad81b={};if(_0x53e932[_0x58f127(0x1c1)](_0x2872e5,0xc8)){if(_0x53e932[_0x58f127(0x1cc)](_0x53e932['DHycX'],_0x53e932['BMcKC']))_0x55739c['info'](_0x58f127(0x1f9)+_0x237d43['clusterName']+'`\x20already\x20exists');else{const _0x1d5b49=JSON['parse'](_0xcc84b8[_0x58f127(0x269)]),_0x441e88=_0x1d5b49[_0x58f127(0x26d)](_0x286fdd=>_0x286fdd[_0x58f127(0x1fd)]===_0x178202['gridProfile'])||null;_0x53e932[_0x58f127(0x222)](isUndefined,_0x441e88)?_0x53e932['rpfJx'](_0x53e932[_0x58f127(0x1de)],_0x53e932[_0x58f127(0x22c)])?(_0x1eb326=_0x58f127(0x21a)+_0x178202[_0x58f127(0x1fa)]+_0x58f127(0x186),await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes[_0x58f127(0x1ef)],_0x53e932[_0x58f127(0x249)],_0x53e932['sNkfc'],_0x53e932[_0x58f127(0x1d7)]),logger[_0x58f127(0x1ac)](_0x1eb326),process[_0x58f127(0x210)](0x1)):(_0x34b0e4[_0x58f127(0x1ac)](_0x53e932[_0x58f127(0x19c)]),_0x4a918d[_0x58f127(0x210)](0x1)):_0x53e932[_0x58f127(0x274)](_0x53e932[_0x58f127(0x194)],_0x53e932['vEhxj'])?_0x3ad81b=_0x441e88:(_0x45464c[_0x58f127(0x1f4)](_0x58f127(0x17b)+_0x3e430b[_0x58f127(0x1ce)]+'\x20'),_0x55a52f['cloudProvider']=_0x19cb0e[_0x58f127(0x1ce)]);}}else _0x53e932[_0x58f127(0x238)](_0x53e932['zaJiK'],_0x53e932['sqYuc'])?(_0x5b502a+=_0x53e932[_0x58f127(0x1a5)],_0x63f91f+='\x20\x20Message:\x20'+(_0x78611e['message']||_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x2b5025+=_0x58f127(0x189)+(_0x3b733f['code']||_0x53e932['muIhh'])+'\x0a',_0x34c4c8+='\x20\x20Stack:\x20'+(_0x16cdaf['stack']||_0x53e932[_0x58f127(0x19a)])+'\x0a'):process['exit'](0x1);const _0x3b97c1={};_0x3b97c1[_0x58f127(0x252)]=WS_EVENTS[_0x58f127(0x18e)],_0x3b97c1['message']=_0x53e932['hQOlh'],webSocketUtils['sendEventToBackend'](_0x17ae08,_0x3b97c1),global_registry[_0x58f127(0x25f)]=_0x3ad81b['cloudProvider'],global_registry[_0x58f127(0x1e0)]=_0x3ad81b[_0x58f127(0x24b)],global_registry['clusterName']=_0x3ad81b['clusterName'];}else _0x182b2d[_0x58f127(0x1ac)]('error\x20stack\x20:\x20'+_0x19993a[_0x58f127(0x1ac)]['stack']);}else _0x53e932[_0x58f127(0x1f0)](_0x53e932[_0x58f127(0x18d)],_0x53e932[_0x58f127(0x18d)])?_0x5eb388+=_0x58f127(0x190)+_0x4062b7[_0x58f127(0x23a)]+'\x20'+(_0xf14ff2?_0x53e932[_0x58f127(0x225)]:_0x53e932[_0x58f127(0x237)])+'\x0a\x0a':(logger[_0x58f127(0x1ac)](_0x53e932[_0x58f127(0x19c)]),process['exit'](0x1));}}}catch(_0x1a6687){if(_0x53e932[_0x58f127(0x1bf)](_0x53e932[_0x58f127(0x1ae)],_0x53e932[_0x58f127(0x1ae)])){const {header:_0x45f364,response:_0x328db0}=_0x27bdfa,{status:_0x55cd07,data:_0x59e042,error:_0x577834}=_0x328db0;_0x402a95+=_0x45f364+'\x20#'+_0x53e932[_0x58f127(0x205)](_0x3327c2,0x1)+'\x0a',_0x418f4a+=_0x58f127(0x1bc)+(_0x55cd07?_0x53e932[_0x58f127(0x227)]:_0x53e932[_0x58f127(0x239)])+'\x0a',_0x1761ec+='Message:\x20'+_0x53e932[_0x58f127(0x206)](_0x59e042,_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x577834&&(_0x53f58a+=_0x53e932[_0x58f127(0x1a5)],_0x39708a+='\x20\x20Message:\x20'+(_0x577834[_0x58f127(0x1b0)]||_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x15763f+=_0x58f127(0x189)+(_0x577834[_0x58f127(0x251)]||_0x53e932[_0x58f127(0x19a)])+'\x0a',_0x5943a6+='\x20\x20Stack:\x20'+(_0x577834[_0x58f127(0x1a9)]||_0x53e932[_0x58f127(0x19a)])+'\x0a'),_0x2140bf+='\x0a\x0a';}else _0x1eb326=_0x58f127(0x25e)+_0x1a6687+':\x20'+_0x1a6687['stack'],logger[_0x58f127(0x1ac)](_0x1eb326),await _0x53e932[_0x58f127(0x218)](reportToGalactusAndSendToEDS,_0x178202,_0x17ae08,_0x1eb326,messageTypes[_0x58f127(0x1ef)],_0x53e932[_0x58f127(0x249)],_0x53e932['eAWah'],_0x53e932[_0x58f127(0x1d7)]),process[_0x58f127(0x210)](0x1);}}function printResponse(_0x1dff15,_0x4c7c94){const _0xf6a463=a17_0x145cd4,_0x7a2bb4={};_0x7a2bb4['SVdNH']='region',_0x7a2bb4['MkrNr']=function(_0x3a5e0d,_0x5b2f10){return _0x3a5e0d===_0x5b2f10;},_0x7a2bb4[_0xf6a463(0x1d4)]=_0xf6a463(0x18c);const _0x359dae=_0x7a2bb4;logger[_0xf6a463(0x1f4)]('['+_0x1dff15+_0xf6a463(0x1a6)+_0x4c7c94[_0xf6a463(0x241)]+'\x20data\x20:\x20'+_0x4c7c94['data']+'\x20error\x20:\x20'+_0x4c7c94[_0xf6a463(0x1ac)]),_0x4c7c94[_0xf6a463(0x1ac)]&&(_0x359dae['MkrNr'](_0x359dae['AIQFy'],_0x359dae['AIQFy'])?logger[_0xf6a463(0x1ac)](_0xf6a463(0x202)+_0x4c7c94['error']['stack']):_0x1949bb[_0xf6a463(0x1f1)](_0x359dae[_0xf6a463(0x265)]));}async function generateReport(_0x2cd35b,_0x1e3482){const _0x228970=a17_0x145cd4,_0x20ddc7={'fdoDt':function(_0x4f5b84,_0x36fc0c){return _0x4f5b84+_0x36fc0c;},'osdpY':_0x228970(0x208),'lRRog':'Failure','JPdlB':function(_0x46cd8d,_0x3f7d01){return _0x46cd8d||_0x3f7d01;},'SbrUe':'N/A','mzfgu':_0x228970(0x211),'PtfVk':'Cluster\x20details\x0a-----------------------\x0a','YUTjX':function(_0x471626,_0x5b2f16){return _0x471626!=_0x5b2f16;},'JWJrl':_0x228970(0x203),'bJWAf':_0x228970(0x17a),'xrUrv':function(_0x2657be){return _0x2657be();}};let _0xb381a2=_0x228970(0x1a8)+global_registry[_0x228970(0x25f)]+_0x228970(0x1d9);return _0x2cd35b[_0x228970(0x21d)]((_0x346769,_0x51d73b)=>{const _0x21c7ba=_0x228970,{header:_0x44e225,response:_0x2599af}=_0x346769,{status:_0x310474,data:_0x54eb4c,error:_0x25f6b6}=_0x2599af;_0xb381a2+=_0x44e225+'\x20#'+_0x20ddc7['fdoDt'](_0x51d73b,0x1)+'\x0a',_0xb381a2+='Status:\x20'+(_0x310474?_0x20ddc7[_0x21c7ba(0x248)]:_0x20ddc7[_0x21c7ba(0x25b)])+'\x0a',_0xb381a2+=_0x21c7ba(0x1b7)+_0x20ddc7['JPdlB'](_0x54eb4c,_0x20ddc7['SbrUe'])+'\x0a',_0x25f6b6&&(_0xb381a2+=_0x20ddc7['mzfgu'],_0xb381a2+='\x20\x20Message:\x20'+(_0x25f6b6[_0x21c7ba(0x1b0)]||_0x20ddc7[_0x21c7ba(0x26a)])+'\x0a',_0xb381a2+=_0x21c7ba(0x189)+(_0x25f6b6[_0x21c7ba(0x251)]||_0x20ddc7['SbrUe'])+'\x0a',_0xb381a2+=_0x21c7ba(0x1cd)+(_0x25f6b6['stack']||_0x20ddc7[_0x21c7ba(0x26a)])+'\x0a'),_0xb381a2+='\x0a\x0a';}),_0xb381a2+=_0x20ddc7['PtfVk'],_0x20ddc7[_0x228970(0x195)](_0x1e3482,null)?_0xb381a2+=_0x228970(0x190)+global_registry[_0x228970(0x23a)]+'\x20'+(_0x1e3482?_0x20ddc7[_0x228970(0x23d)]:_0x20ddc7[_0x228970(0x1c6)])+'\x0a\x0a':_0xb381a2+=_0x228970(0x190)+global_registry[_0x228970(0x23a)]+_0x228970(0x233),_0xb381a2+=_0x20ddc7['xrUrv'](getSystemMetaData),_0xb381a2;};exports[a17_0x145cd4(0x177)]=async function(_0x2309df){const _0x102ae2=a17_0x145cd4,_0x2de87b={'XyuEt':function(_0x448bb3){return _0x448bb3();},'KefoW':function(_0x30a41d){return _0x30a41d();},'tmzHL':_0x102ae2(0x221),'lvZPf':function(_0x8b8d93,_0x1fb422,_0x5b34b5,_0x310240,_0x3145a3,_0x8917b6,_0x549b68,_0xe4400c){return _0x8b8d93(_0x1fb422,_0x5b34b5,_0x310240,_0x3145a3,_0x8917b6,_0x549b68,_0xe4400c);},'EFIgc':_0x102ae2(0x1e7),'UgAEh':_0x102ae2(0x20b),'qqjFw':_0x102ae2(0x1ac),'FsqqP':function(_0x5b3f6c,_0x53626e,_0x8252f0,_0x3d0bb1,_0x323f13,_0x4e3b22,_0x50c798){return _0x5b3f6c(_0x53626e,_0x8252f0,_0x3d0bb1,_0x323f13,_0x4e3b22,_0x50c798);},'zivnH':function(_0x3a5bb6){return _0x3a5bb6();},'rpgnm':_0x102ae2(0x1b4),'mhEYP':_0x102ae2(0x25d),'ixMUn':function(_0x3057ff,_0x43462f,_0x181e2e){return _0x3057ff(_0x43462f,_0x181e2e);},'rxmCJ':function(_0x54fe68,_0xe2c0aa,_0x4ed3f0){return _0x54fe68(_0xe2c0aa,_0x4ed3f0);},'lqRDV':_0x102ae2(0x1e4),'hgRri':_0x102ae2(0x223),'DRMTD':_0x102ae2(0x1d6),'vvUBp':function(_0x115889,_0x3514b3,_0x586e1b){return _0x115889(_0x3514b3,_0x586e1b);},'GgyNj':_0x102ae2(0x1ee),'wIxZc':function(_0x5eac2d){return _0x5eac2d();},'aCZCN':function(_0x2d34dc,_0x3ae648,_0x43b365){return _0x2d34dc(_0x3ae648,_0x43b365);},'yCvmV':_0x102ae2(0x1e3),'poZcP':function(_0x55e08e,_0x12ef49){return _0x55e08e(_0x12ef49);},'YZqWg':'TLSv1_2_client_method','fffjE':function(_0x3aaa84,_0x53b89e,_0x119c2a){return _0x3aaa84(_0x53b89e,_0x119c2a);},'xPkXw':_0x102ae2(0x1c8),'fFUln':_0x102ae2(0x21b),'ycxyY':_0x102ae2(0x179),'KspEG':_0x102ae2(0x22e),'bolbe':_0x102ae2(0x244),'bHCQm':function(_0x297d80,_0x2d3e09){return _0x297d80+_0x2d3e09;},'uXQFT':_0x102ae2(0x1c4),'kdNhL':function(_0xd1957b,_0x1bca55,_0x333416,_0x34146c,_0x42a3f0,_0x4707a3,_0x3c3471){return _0xd1957b(_0x1bca55,_0x333416,_0x34146c,_0x42a3f0,_0x4707a3,_0x3c3471);},'HHscG':_0x102ae2(0x19d)};let _0x2d08b6,_0x4e74d7;try{global_registry[_0x102ae2(0x201)]=_0x2de87b[_0x102ae2(0x21c)](uuidv4);!fs[_0x102ae2(0x1be)](_0x2de87b['KefoW'](getCredentialsPath))&&(_0x4e74d7=_0x2de87b['tmzHL'],logger[_0x102ae2(0x1ac)](_0x4e74d7),await _0x2de87b[_0x102ae2(0x215)](reportToGalactusAndSendToEDS,_0x2309df,_0x2d08b6,_0x4e74d7,messageTypes[_0x102ae2(0x1ef)],_0x2de87b[_0x102ae2(0x1b1)],_0x2de87b['UgAEh'],_0x2de87b[_0x102ae2(0x26f)]),process[_0x102ae2(0x210)](0x1));_0x2de87b[_0x102ae2(0x1a2)](sendInstrumentationEvent,_0x2309df,_0x2de87b[_0x102ae2(0x1b1)],messageTypes['INFO'],null,null,_0x2309df);const _0x1ce955=JSON[_0x102ae2(0x187)](fs[_0x102ae2(0x23f)](_0x2de87b[_0x102ae2(0x1e5)](getCredentialsPath)));global_registry[_0x102ae2(0x24c)]=_0x1ce955[_0x102ae2(0x271)]['username'],global_registry[_0x102ae2(0x242)]=_0x1ce955[_0x102ae2(0x271)][_0x102ae2(0x1fe)];const _0x3507c3=WS_ENDPOINT[_0x102ae2(0x26e)](_0x2de87b[_0x102ae2(0x232)],_0x1ce955[_0x102ae2(0x271)][_0x102ae2(0x1fb)])[_0x102ae2(0x26e)](_0x2de87b['mhEYP'],_0x1ce955[_0x102ae2(0x271)][_0x102ae2(0x1fe)]),_0x535f24={};_0x535f24[_0x102ae2(0x191)]=ws,_0x535f24['connectionTimeout']=0x36ee80,_0x2d08b6=new ReconnectingWebSocket(_0x3507c3,[],_0x535f24),global_registry[_0x102ae2(0x204)]=_0x2de87b[_0x102ae2(0x1d1)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x2de87b[_0x102ae2(0x20f)](inputValidation,_0x2309df,_0x2d08b6),logger[_0x102ae2(0x1f4)](_0x102ae2(0x1df)+global_registry[_0x102ae2(0x25f)]+_0x102ae2(0x220)+global_registry['clusterRegion']);let _0x1a8de3=await _0x2de87b[_0x102ae2(0x1a2)](getCloudProviderObjectWithOutInit,global_registry[_0x102ae2(0x25f)],global_registry[_0x102ae2(0x23a)],_0x2de87b[_0x102ae2(0x234)],_0x2d08b6,webSocketUtils,_0x2309df);const _0x1e4c60=await _0x1a8de3['isCliToolInstalled']();_0x2de87b[_0x102ae2(0x1d1)](printResponse,_0x2de87b['hgRri'],_0x1e4c60),_0x1a8de3=await _0x1a8de3[_0x102ae2(0x20a)]();let _0x3cd411=![];try{_0x3cd411=await _0x1a8de3['isClusterPresent']();}catch(_0x5dbaa0){const _0x3ad2bb=_0x2de87b[_0x102ae2(0x240)][_0x102ae2(0x18f)]('|');let _0x2b6aa0=0x0;while(!![]){switch(_0x3ad2bb[_0x2b6aa0++]){case'0':logger[_0x102ae2(0x1ac)](_0x4e74d7);continue;case'1':await _0x2de87b[_0x102ae2(0x215)](reportToGalactusAndSendToEDS,_0x2309df,_0x2d08b6,_0x4e74d7,messageTypes[_0x102ae2(0x1ef)],_0x2de87b['EFIgc'],'cluster-check-failed-'+global_registry['cloudProvider'],_0x2de87b[_0x102ae2(0x26f)]);continue;case'2':_0x4e74d7+='\x0a'+JSON[_0x102ae2(0x1da)](_0x5dbaa0[_0x102ae2(0x1a9)]);continue;case'3':_0x3cd411=null;continue;case'4':_0x4e74d7=_0x102ae2(0x1c3)+global_registry[_0x102ae2(0x23a)]+_0x102ae2(0x182)+global_registry[_0x102ae2(0x1e0)]+_0x102ae2(0x245)+_0x5dbaa0;continue;}break;}}_0x3cd411&&logger[_0x102ae2(0x1f4)](_0x102ae2(0x1f9)+global_registry['clusterName']+_0x102ae2(0x226));const _0x220bc2=await _0x1a8de3[_0x102ae2(0x255)]();_0x2de87b[_0x102ae2(0x243)](printResponse,_0x2de87b['GgyNj'],_0x220bc2);const _0x244ad0=await _0x2de87b[_0x102ae2(0x250)](curlRequest);_0x2de87b['aCZCN'](printResponse,_0x2de87b[_0x102ae2(0x236)],_0x244ad0);const _0xb7f785=await _0x2de87b['poZcP'](isTlsSupported,_0x2de87b[_0x102ae2(0x183)]);_0x2de87b[_0x102ae2(0x24f)](printResponse,_0x2de87b['xPkXw'],_0xb7f785);const _0x4f3502={};_0x4f3502[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x229)],_0x4f3502['response']=_0x1e4c60;const _0x59059f={};_0x59059f[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x1c9)],_0x59059f[_0x102ae2(0x199)]=_0x220bc2;const _0x127c38={};_0x127c38[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x19b)],_0x127c38['response']=_0x244ad0;const _0x63fd7={};_0x63fd7[_0x102ae2(0x1cf)]=_0x2de87b[_0x102ae2(0x20d)],_0x63fd7['response']=_0xb7f785;const _0x2fc887=[_0x4f3502,_0x59059f,_0x127c38,_0x63fd7],_0x1f837f=await _0x2de87b[_0x102ae2(0x243)](generateReport,_0x2fc887,_0x3cd411),_0xe54da6=new Date(),_0x2b7e63=_0xe54da6[_0x102ae2(0x256)]()+'_'+_0x2de87b[_0x102ae2(0x1d5)](_0xe54da6[_0x102ae2(0x275)](),0x1)+'_'+_0xe54da6[_0x102ae2(0x193)]()+'_'+_0xe54da6[_0x102ae2(0x253)]()+'_'+_0xe54da6[_0x102ae2(0x192)](),_0x27da1b=_0x102ae2(0x1db)+_0x2b7e63+_0x102ae2(0x24e);fs[_0x102ae2(0x254)](_0x27da1b,_0x1f837f,_0x2de87b[_0x102ae2(0x1ec)]),logger[_0x102ae2(0x1f4)]('Report\x20saved\x20in\x20'+_0x27da1b),process[_0x102ae2(0x210)](0x0);}catch(_0x426d4d){let _0x1e2ed3='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x426d4d+'\x20';logger['error'](_0x1e2ed3),_0x1e2ed3+='\x0a'+JSON[_0x102ae2(0x1da)](_0x426d4d[_0x102ae2(0x1a9)]),logger['debug']('stack\x20trace\x20'+_0x426d4d[_0x102ae2(0x1a9)]);if(_0x2d08b6){const _0x1c6dc9={};_0x1c6dc9['type']=WS_EVENTS[_0x102ae2(0x18e)],_0x1c6dc9[_0x102ae2(0x1b0)]=_0x1e2ed3,webSocketUtils[_0x102ae2(0x1e6)](_0x2d08b6,_0x1c6dc9,_0x2de87b[_0x102ae2(0x26f)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xb4c0e4={};_0xb4c0e4[_0x102ae2(0x1ac)]=_0x1e2ed3,await _0x2de87b[_0x102ae2(0x258)](sendInstrumentationEvent,_0x2309df,_0x2de87b[_0x102ae2(0x1b1)],messageTypes['ERROR'],_0x2de87b[_0x102ae2(0x1a0)],_0xb4c0e4,_0x2309df),process[_0x102ae2(0x210)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a18_0x1f1e(_0x4d4558,_0x513df9){const _0x15e1e7=a18_0x15e1();return a18_0x1f1e=function(_0x1f1e72,_0x4b3d17){_0x1f1e72=_0x1f1e72-0x143;let _0x21cd99=_0x15e1e7[_0x1f1e72];return _0x21cd99;},a18_0x1f1e(_0x4d4558,_0x513df9);}const a18_0x159775=a18_0x1f1e;(function(_0x11d040,_0x343adc){const _0x24e762=a18_0x1f1e,_0x5d6345=_0x11d040();while(!![]){try{const _0x4b3a0c=parseInt(_0x24e762(0x157))/0x1*(parseInt(_0x24e762(0x151))/0x2)+-parseInt(_0x24e762(0x146))/0x3*(-parseInt(_0x24e762(0x147))/0x4)+parseInt(_0x24e762(0x153))/0x5*(-parseInt(_0x24e762(0x148))/0x6)+-parseInt(_0x24e762(0x14b))/0x7*(-parseInt(_0x24e762(0x14a))/0x8)+-parseInt(_0x24e762(0x14c))/0x9*(parseInt(_0x24e762(0x144))/0xa)+-parseInt(_0x24e762(0x152))/0xb*(parseInt(_0x24e762(0x14d))/0xc)+parseInt(_0x24e762(0x15b))/0xd;if(_0x4b3a0c===_0x343adc)break;else _0x5d6345['push'](_0x5d6345['shift']());}catch(_0x52a035){_0x5d6345['push'](_0x5d6345['shift']());}}}(a18_0x15e1,0x6836a));function a18_0x15e1(){const _0x3bb4e9=['commandDir','strict','builder','1ffiHzr','Start\x20an\x20existing\x20Automation\x20grid.','toAyG','usage','10574629MDsYlm','desc','../config/constants','demandCommand','290jXpCTm','help','78MPRIlk','122732mqfgUU','6OapkzS','recommendCommands','483992ybNFgS','7dLOyeU','206253PWCmCG','447012nXHSys','ARbGo','handler','start','202178dwiHAB','99OAFBBV','1730345CmSzgZ'];a18_0x15e1=function(){return _0x3bb4e9;};return a18_0x15e1();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x159775(0x15d));exports['command']=a18_0x159775(0x150),exports[a18_0x159775(0x15c)]=a18_0x159775(0x158),exports[a18_0x159775(0x156)]=function(_0x577e14){const _0x228d65=a18_0x159775,_0x240b78={};_0x240b78['toAyG']='start_commands',_0x240b78[_0x228d65(0x14e)]=_0x228d65(0x145);const _0x14d649=_0x240b78;return _0x577e14[_0x228d65(0x15a)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x228d65(0x154)](_0x14d649[_0x228d65(0x159)])[_0x228d65(0x143)]()[_0x228d65(0x149)]()[_0x228d65(0x155)]()[_0x228d65(0x145)](_0x14d649[_0x228d65(0x14e)]);},exports[a18_0x159775(0x14f)]=function(_0x5624a7){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x2fa2bb=a19_0x493d;function a19_0x493d(_0x2dcb9f,_0x35da4e){const _0x290f6f=a19_0x290f();return a19_0x493d=function(_0x493dfb,_0x3d5f3c){_0x493dfb=_0x493dfb-0x66;let _0x21099b=_0x290f6f[_0x493dfb];return _0x21099b;},a19_0x493d(_0x2dcb9f,_0x35da4e);}(function(_0x153932,_0x1586e6){const _0x3ee35=a19_0x493d,_0x15a6e6=_0x153932();while(!![]){try{const _0x1b279a=-parseInt(_0x3ee35(0xb5))/0x1+-parseInt(_0x3ee35(0x67))/0x2*(-parseInt(_0x3ee35(0x94))/0x3)+parseInt(_0x3ee35(0x7c))/0x4+parseInt(_0x3ee35(0xb0))/0x5+-parseInt(_0x3ee35(0x89))/0x6*(-parseInt(_0x3ee35(0xb6))/0x7)+parseInt(_0x3ee35(0x82))/0x8+-parseInt(_0x3ee35(0x92))/0x9*(parseInt(_0x3ee35(0x69))/0xa);if(_0x1b279a===_0x1586e6)break;else _0x15a6e6['push'](_0x15a6e6['shift']());}catch(_0x35f1ef){_0x15a6e6['push'](_0x15a6e6['shift']());}}}(a19_0x290f,0x1905e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2fa2bb(0xb1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x2fa2bb(0xbb)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x2fa2bb(0x88)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x2fa2bb(0x93)]=a19_0x2fa2bb(0x9c),exports[a19_0x2fa2bb(0x7e)]=a19_0x2fa2bb(0xa3),exports[a19_0x2fa2bb(0xb8)]=function(_0x121f41){const _0x185d45=a19_0x2fa2bb,_0x37099c={};_0x37099c[_0x185d45(0x6d)]=_0x185d45(0x9d),_0x37099c[_0x185d45(0x9a)]='string',_0x37099c[_0x185d45(0xb4)]=_0x185d45(0x66),_0x37099c[_0x185d45(0x99)]=_0x185d45(0x83),_0x37099c[_0x185d45(0x76)]=_0x185d45(0x87);const _0x3e97ca=_0x37099c,_0x6ed43e={};_0x6ed43e[_0x185d45(0x80)]=_0x3e97ca[_0x185d45(0x6d)],_0x6ed43e['type']=_0x3e97ca[_0x185d45(0x9a)];const _0x191859={};_0x191859[_0x185d45(0x80)]=_0x3e97ca['tWZod'],_0x191859[_0x185d45(0x70)]=_0x3e97ca[_0x185d45(0x99)],_0x191859[_0x185d45(0x6e)]=![];const _0x594303={};return _0x594303[_0x185d45(0x75)]=_0x6ed43e,_0x594303[_0x185d45(0xab)]=_0x191859,_0x121f41[_0x185d45(0x71)](HELP_HEADER_MESSAGE['start'])[_0x185d45(0xac)](HELP_FOOTER_MESSAGE)[_0x185d45(0xc0)](_0x594303)[_0x185d45(0x87)](_0x3e97ca['SRcsE'])[_0x185d45(0xbf)];},exports[a19_0x2fa2bb(0xa5)]=async function(_0x42d978){const _0x30c8c8=a19_0x2fa2bb,_0x4f8dda={'bmWqT':_0x30c8c8(0x6b),'SSMgY':function(_0xe6d4de){return _0xe6d4de();},'JMnWh':_0x30c8c8(0x77),'Ohhcl':function(_0x36f583,_0x1993ab,_0x5817f9,_0x25f724,_0x32d8ba,_0xbfda7e,_0x3c2b30){return _0x36f583(_0x1993ab,_0x5817f9,_0x25f724,_0x32d8ba,_0xbfda7e,_0x3c2b30);},'nANyi':'start-grid-called','oJIyr':_0x30c8c8(0x78),'kgacN':function(_0x251c94,_0x5c4e56,_0xdaf1cf,_0x3cb8ef,_0x4fdcce,_0x4a4c19,_0x3fbe81){return _0x251c94(_0x5c4e56,_0xdaf1cf,_0x3cb8ef,_0x4fdcce,_0x4a4c19,_0x3fbe81);},'GgoWu':function(_0x21ad5b){return _0x21ad5b();},'UYAGX':_0x30c8c8(0x8f),'NIgkC':_0x30c8c8(0x98),'XVMeY':'Adding\x20Websocket\x20listeners','IxZnU':function(_0xb89ddc,_0x5a21f1,_0x4c882d,_0x325914){return _0xb89ddc(_0x5a21f1,_0x4c882d,_0x325914);},'NqIqk':function(_0x39ffa2,_0x404e6c,_0x4b36a0){return _0x39ffa2(_0x404e6c,_0x4b36a0);},'xNbeV':_0x30c8c8(0xa0),'PGVtu':function(_0x300b77,_0xedac1d){return _0x300b77===_0xedac1d;},'Lgotk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LBNhW':_0x30c8c8(0x8e),'fvJzm':function(_0x5b6730,_0x29d41e){return _0x5b6730===_0x29d41e;},'zDgej':_0x30c8c8(0x73),'rCGtf':function(_0x476727,_0xd7e102,_0x5a5903,_0x2ced86,_0x592d0c,_0x6056ae,_0x352e09){return _0x476727(_0xd7e102,_0x5a5903,_0x2ced86,_0x592d0c,_0x6056ae,_0x352e09);},'DDtIz':'server-error'};let _0x3e8ce4;try{!_0x42d978[_0x30c8c8(0x81)]&&(logger[_0x30c8c8(0x9b)](_0x4f8dda[_0x30c8c8(0x7d)]),process[_0x30c8c8(0xa1)](0x1));!fs[_0x30c8c8(0x9e)](_0x4f8dda[_0x30c8c8(0x9f)](getCredentialsPath))&&(logger['error'](_0x4f8dda[_0x30c8c8(0x84)]),await _0x4f8dda[_0x30c8c8(0x7a)](sendInstrumentationEvent,_0x42d978,_0x4f8dda[_0x30c8c8(0xa9)],messageTypes[_0x30c8c8(0xb9)],_0x4f8dda[_0x30c8c8(0xad)],null,_0x42d978),process[_0x30c8c8(0xa1)](0x1));logger[_0x30c8c8(0x7b)](_0x30c8c8(0x6f)+_0x42d978[_0x30c8c8(0x81)]),await _0x4f8dda[_0x30c8c8(0xaf)](sendInstrumentationEvent,_0x42d978,_0x4f8dda[_0x30c8c8(0xa9)],messageTypes[_0x30c8c8(0xb7)],null,null,_0x42d978);const _0x50b4c3=JSON[_0x30c8c8(0xaa)](fs[_0x30c8c8(0xbe)](_0x4f8dda[_0x30c8c8(0x72)](getCredentialsPath)));global_registry[_0x30c8c8(0x79)]=_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0x91)],global_registry['bstackAccesskey']=_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0xa4)];const _0x354e84=WS_ENDPOINT[_0x30c8c8(0xb2)](_0x4f8dda[_0x30c8c8(0xbc)],_0x50b4c3['Browserstack'][_0x30c8c8(0x91)])['replace'](_0x4f8dda['NIgkC'],_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0xa4)]),_0x1c1ca7={};_0x1c1ca7[_0x30c8c8(0x90)]=ws,_0x1c1ca7[_0x30c8c8(0x68)]=0x36ee80,_0x3e8ce4=new ReconnectingWebSocket(_0x354e84,[],_0x1c1ca7),logger[_0x30c8c8(0xb3)](_0x4f8dda[_0x30c8c8(0x7f)]),webSocketUtils[_0x30c8c8(0xa2)](_0x3e8ce4,_0x42d978[_0x30c8c8(0xa6)],_0x42d978[_0x30c8c8(0xa4)]);const [_0x7ce30c,_0x14119b]=await _0x4f8dda[_0x30c8c8(0x6c)](getGridDetails,_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0x91)],_0x50b4c3[_0x30c8c8(0x6a)][_0x30c8c8(0xa4)],_0x42d978[_0x30c8c8(0x81)]);if(_0x14119b){const _0x24d02b=_0x14119b[_0x30c8c8(0x7b)];global_registry[_0x30c8c8(0x74)]=_0x24d02b[_0x30c8c8(0x74)],global_registry['clusterRegion']=_0x24d02b[_0x30c8c8(0xa7)],global_registry[_0x30c8c8(0x8b)]=_0x24d02b[_0x30c8c8(0x8b)];const _0x4df65d=await _0x4f8dda[_0x30c8c8(0xaf)](getCloudProviderObject,_0x24d02b[_0x30c8c8(0x74)],_0x24d02b[_0x30c8c8(0x8b)],_0x24d02b[_0x30c8c8(0xc1)],_0x3e8ce4,webSocketUtils,_0x42d978),[_0x204a75,_0x34c1d3,_0x38f8d1,_0x429f78,_0x5280c6,_0x44cb79]=await _0x4f8dda[_0x30c8c8(0x8c)](createK8sClient,_0x4df65d,_0x42d978[_0x30c8c8(0x85)]);await _0x4f8dda[_0x30c8c8(0x8c)](scaleUpHubDeployment,_0x34c1d3,_0x24d02b['name']),logger[_0x30c8c8(0x7b)](_0x4f8dda[_0x30c8c8(0xa8)]),process[_0x30c8c8(0xa1)](0x0);}_0x4f8dda[_0x30c8c8(0x8a)](_0x7ce30c[_0x30c8c8(0x86)],0x191)&&(logger[_0x30c8c8(0x9b)](_0x4f8dda[_0x30c8c8(0x8d)]),await _0x4f8dda[_0x30c8c8(0xaf)](sendInstrumentationEvent,_0x42d978,_0x4f8dda[_0x30c8c8(0xa9)],messageTypes[_0x30c8c8(0xb9)],_0x4f8dda[_0x30c8c8(0x96)],null,_0x42d978),process[_0x30c8c8(0xa1)](0x1)),_0x4f8dda[_0x30c8c8(0xae)](_0x7ce30c['statusCode'],0x190)&&(logger[_0x30c8c8(0x9b)](JSON['parse'](_0x7ce30c['body'])[_0x30c8c8(0xbd)]),await _0x4f8dda['Ohhcl'](sendInstrumentationEvent,_0x42d978,_0x4f8dda['nANyi'],messageTypes['ERROR'],_0x4f8dda[_0x30c8c8(0x95)],null,_0x42d978),process[_0x30c8c8(0xa1)](0x1)),logger[_0x30c8c8(0x9b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x30c8c8(0xba)](_0x7ce30c)),await _0x4f8dda['rCGtf'](sendInstrumentationEvent,_0x42d978,_0x4f8dda['nANyi'],messageTypes[_0x30c8c8(0xb9)],_0x4f8dda[_0x30c8c8(0xc2)],_0x7ce30c,_0x42d978),process['exit'](0x1);}catch(_0x431db3){const _0x4f53d6='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x431db3+'\x20\x0a'+JSON[_0x30c8c8(0xba)](_0x431db3[_0x30c8c8(0x97)])+'\x20';logger[_0x30c8c8(0x9b)](_0x4f53d6),process[_0x30c8c8(0xa1)](0x1);}};function a19_0x290f(){const _0x74d997=['boolean','JMnWh','skipTlsCertVerify','statusCode','help','../../utils/webSocketUtils','3678BRaoCJ','PGVtu','clusterName','NqIqk','Lgotk','unauthorised','<UsernamePlaceholder>','WebSocket','username','1879749UZAoty','command','201ppQaoM','zDgej','LBNhW','stack','<PasswordPlaceholder>','vtGhq','OqWFu','error','grid','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','existsSync','SSMgY','Grid\x20started','exit','addListeners','Start\x20an\x20existing\x20Automation\x20grid.','password','handler','user','region','xNbeV','nANyi','parse','skip-tls-cert-verify','epilogue','oJIyr','fvJzm','kgacN','789540SgFdzZ','reconnecting-websocket','replace','debug','tWZod','22330mVSagY','1533MCYhUn','INFO','builder','ERROR','stringify','../../utils/utilityMethods','UYAGX','message','readFileSync','argv','options','name','DDtIz','Skip\x20insecure\x20cert\x20verification.','3134JhsqJq','connectionTimeout','30jGfBJl','Browserstack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','IxZnU','PucCF','default','Starting\x20grid\x20','type','usage','GgoWu','invalid-grid-id','cloudProvider','grid-id','SRcsE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','init-not-called','bstackUsername','Ohhcl','info','685548mDYhpW','bmWqT','desc','XVMeY','description','gridId','1463008tNSnXG'];a19_0x290f=function(){return _0x74d997;};return a19_0x290f();}
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a20_0x1a6ca9=a20_0x253e;(function(_0x5b4711,_0x10f683){const _0x591cfa=a20_0x253e,_0x23fd4f=_0x5b4711();while(!![]){try{const _0x37498d=-parseInt(_0x591cfa(0x12c))/0x1+parseInt(_0x591cfa(0x11c))/0x2*(-parseInt(_0x591cfa(0x12d))/0x3)+-parseInt(_0x591cfa(0x120))/0x4+parseInt(_0x591cfa(0x11e))/0x5*(-parseInt(_0x591cfa(0x125))/0x6)+-parseInt(_0x591cfa(0x123))/0x7*(-parseInt(_0x591cfa(0x12a))/0x8)+parseInt(_0x591cfa(0x131))/0x9+parseInt(_0x591cfa(0x126))/0xa;if(_0x37498d===_0x10f683)break;else _0x23fd4f['push'](_0x23fd4f['shift']());}catch(_0x58a0fb){_0x23fd4f['push'](_0x23fd4f['shift']());}}}(a20_0x76ce,0x5241c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1a6ca9(0x128));function a20_0x253e(_0x4cbb36,_0x3befb7){const _0x76ce73=a20_0x76ce();return a20_0x253e=function(_0x253e67,_0x17c7e0){_0x253e67=_0x253e67-0x11a;let _0x3b8e48=_0x76ce73[_0x253e67];return _0x3b8e48;},a20_0x253e(_0x4cbb36,_0x3befb7);}exports[a20_0x1a6ca9(0x11d)]=a20_0x1a6ca9(0x12b),exports[a20_0x1a6ca9(0x121)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x1a6ca9(0x129)]=function(_0x1cfe04){const _0x467d6c=a20_0x1a6ca9,_0xc7efcc={};_0xc7efcc['aUxyl']=_0x467d6c(0x11b),_0xc7efcc[_0x467d6c(0x11f)]=_0x467d6c(0x127);const _0x5a3842=_0xc7efcc;return _0x1cfe04[_0x467d6c(0x124)](HELP_HEADER_MESSAGE[_0x467d6c(0x12b)])[_0x467d6c(0x11a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5a3842[_0x467d6c(0x12f)])[_0x467d6c(0x12e)]()['recommendCommands']()[_0x467d6c(0x122)]()[_0x467d6c(0x127)](_0x5a3842[_0x467d6c(0x11f)]);},exports[a20_0x1a6ca9(0x130)]=function(_0x4684df){};function a20_0x76ce(){const _0x5272bc=['337778CvGulf','1818897mjjfbT','demandCommand','aUxyl','handler','366444uDukcr','epilogue','stop_commands','2ocEBLF','command','834535rKclTa','aZavX','1239912eveOlV','desc','strict','3731021GCMRHf','usage','6jWJfEr','11841670InZdgo','help','../config/constants','builder','8ENOSTV','stop'];a20_0x76ce=function(){return _0x5272bc;};return a20_0x76ce();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a21_0x3ab48a=a21_0x46d2;function a21_0x4b5f(){const _0x59d470=['175zPtrAg','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','command','15855708GxIHVy','Browserstack','qtEsS','10bUIWsT','<UsernamePlaceholder>','skipTlsCertVerify','Grid\x20stoppped.','../../utils/webSocketUtils','329127DoejUh','507339vRtknf','stack','username','nYfew','type','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../utils/utilityMethods','ROABU','existsSync','flCGV','error','PSpPD','BgpZN','epilogue','740325SllbAM','dMCjr','../../utils/createk8sClient','gridId','YAcmz','stop','30CVyRot','info','invalid-grid-id','handler','MbRYj','reconnecting-websocket','ERROR','Lyuxp','init-not-called','jvMzZ','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','region','../../utils/gridComponents','<PasswordPlaceholder>','password','description','RVGJf','GnFiK','mhJXI','cloudProvider','parse','clusterRegion','GvVex','builder','skip-tls-cert-verify','SjJkt','clusterName','server-error','10282347nNhFMt','usage','statusCode','jwpyz','connectionTimeout','8TdljJF','WebSocket','string','stringify','Ecfnv','Stop\x20a\x20running\x20Automation\x20grid.','exit','IjVYo','grid-id','IlVsD','../../cloudproviders/utils','body','addListeners','mfpcu','1736676cKiDjv','name','../../config/constants','../../config/logger','help','readFileSync','TVViC','168208knhbwz','message','roDmK','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a21_0x4b5f=function(){return _0x59d470;};return a21_0x4b5f();}function a21_0x46d2(_0x13faa0,_0x3c127a){const _0x4b5fe4=a21_0x4b5f();return a21_0x46d2=function(_0x46d2c5,_0x5d5424){_0x46d2c5=_0x46d2c5-0xd2;let _0x18611a=_0x4b5fe4[_0x46d2c5];return _0x18611a;},a21_0x46d2(_0x13faa0,_0x3c127a);}(function(_0x57cfae,_0x731b){const _0xfdcc7e=a21_0x46d2,_0x529b1c=_0x57cfae();while(!![]){try{const _0x1d34a8=-parseInt(_0xfdcc7e(0xe4))/0x1+parseInt(_0xfdcc7e(0x128))/0x2+parseInt(_0xfdcc7e(0xe3))/0x3*(parseInt(_0xfdcc7e(0x11a))/0x4)+parseInt(_0xfdcc7e(0xf3))/0x5*(-parseInt(_0xfdcc7e(0xf9))/0x6)+-parseInt(_0xfdcc7e(0xd7))/0x7*(-parseInt(_0xfdcc7e(0xd2))/0x8)+parseInt(_0xfdcc7e(0x115))/0x9*(-parseInt(_0xfdcc7e(0xde))/0xa)+parseInt(_0xfdcc7e(0xdb))/0xb;if(_0x1d34a8===_0x731b)break;else _0x529b1c['push'](_0x529b1c['shift']());}catch(_0x378cc1){_0x529b1c['push'](_0x529b1c['shift']());}}}(a21_0x4b5f,0xa246f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3ab48a(0xfe)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3ab48a(0x12a)),{logger}=require(a21_0x3ab48a(0x12b)),{getCredentialsPath,getGridDetails}=require(a21_0x3ab48a(0xeb)),{scaleDownHubDeployment}=require(a21_0x3ab48a(0x105)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x3ab48a(0xe2)),{createK8sClient}=require(a21_0x3ab48a(0xf5)),{getCloudProviderObject}=require(a21_0x3ab48a(0x124));exports[a21_0x3ab48a(0xda)]='grid',exports['desc']=a21_0x3ab48a(0x11f),exports[a21_0x3ab48a(0x110)]=function(_0x3d7d65){const _0x51a076=a21_0x3ab48a,_0x85156e={};_0x85156e['Lyuxp']=_0x51a076(0x103),_0x85156e[_0x51a076(0x112)]=_0x51a076(0x11c),_0x85156e[_0x51a076(0xf1)]='Skip\x20insecure\x20cert\x20verification.',_0x85156e['PSpPD']='boolean',_0x85156e[_0x51a076(0xe7)]=_0x51a076(0x12c);const _0x2a6315=_0x85156e,_0x942818={};_0x942818[_0x51a076(0x108)]=_0x2a6315[_0x51a076(0x100)],_0x942818[_0x51a076(0xe8)]=_0x2a6315[_0x51a076(0x112)];const _0x1b08f8={};_0x1b08f8['description']=_0x2a6315[_0x51a076(0xf1)],_0x1b08f8[_0x51a076(0xe8)]=_0x2a6315[_0x51a076(0xf0)],_0x1b08f8['default']=![];const _0xffb96e={};return _0xffb96e[_0x51a076(0x122)]=_0x942818,_0xffb96e[_0x51a076(0x111)]=_0x1b08f8,_0x3d7d65[_0x51a076(0x116)](HELP_HEADER_MESSAGE[_0x51a076(0xf8)])[_0x51a076(0xf2)](HELP_FOOTER_MESSAGE)['options'](_0xffb96e)['help'](_0x2a6315[_0x51a076(0xe7)])['argv'];},exports[a21_0x3ab48a(0xfc)]=async function(_0x547333){const _0x5347b9=a21_0x3ab48a,_0x318ef8={'roDmK':_0x5347b9(0xe9),'qdIFu':function(_0x5a90f1){return _0x5a90f1();},'mhJXI':_0x5347b9(0xd9),'IjVYo':function(_0x4e2ba0,_0x478da9,_0x159e5e,_0xe29aec,_0xc68975,_0x5645d8,_0x2e1f1e){return _0x4e2ba0(_0x478da9,_0x159e5e,_0xe29aec,_0xc68975,_0x5645d8,_0x2e1f1e);},'YAcmz':'stop-grid-called','qtEsS':_0x5347b9(0x101),'DMJbv':_0x5347b9(0xdf),'IlVsD':_0x5347b9(0x106),'Xteoc':'Adding\x20Websocket\x20listeners','dMCjr':function(_0x41dc9c,_0x782778,_0x50a0d0,_0x14cdb0){return _0x41dc9c(_0x782778,_0x50a0d0,_0x14cdb0);},'GnFiK':function(_0x541e28,_0x176c7d,_0x58bd15,_0x30783b,_0x46f468,_0x8eb820,_0x30c9b8){return _0x541e28(_0x176c7d,_0x58bd15,_0x30783b,_0x46f468,_0x8eb820,_0x30c9b8);},'flCGV':function(_0x46a5ae,_0x27e204,_0x2b30b8){return _0x46a5ae(_0x27e204,_0x2b30b8);},'Ecfnv':function(_0x5021e6,_0x56dc3a,_0x1290c8){return _0x5021e6(_0x56dc3a,_0x1290c8);},'MbRYj':_0x5347b9(0xe1),'TVViC':function(_0x256ca2,_0x10c5a5){return _0x256ca2===_0x10c5a5;},'GvVex':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','jvMzZ':function(_0x20ee0d,_0x4f888f,_0x1f1ee8,_0x1d24df,_0x16dd75,_0x555ba5,_0x4d8525){return _0x20ee0d(_0x4f888f,_0x1f1ee8,_0x1d24df,_0x16dd75,_0x555ba5,_0x4d8525);},'RVGJf':'unauthorised','oGHBN':function(_0x494db6,_0x728c6b,_0x54829f,_0x1ce134,_0x222aa0,_0x1d0d55,_0x3c398d){return _0x494db6(_0x728c6b,_0x54829f,_0x1ce134,_0x222aa0,_0x1d0d55,_0x3c398d);},'jwpyz':_0x5347b9(0xfb),'mfpcu':function(_0x15bf93,_0x54f975,_0xfa3675,_0x5355b6,_0x232101,_0x2db8c5,_0x55ac20){return _0x15bf93(_0x54f975,_0xfa3675,_0x5355b6,_0x232101,_0x2db8c5,_0x55ac20);},'ROABU':_0x5347b9(0x114)};let _0x3daa78;try{!_0x547333[_0x5347b9(0xf6)]&&(logger[_0x5347b9(0xef)](_0x318ef8[_0x5347b9(0xd4)]),process[_0x5347b9(0x120)](0x1));!fs[_0x5347b9(0xed)](_0x318ef8['qdIFu'](getCredentialsPath))&&(logger[_0x5347b9(0xef)](_0x318ef8[_0x5347b9(0x10b)]),await _0x318ef8[_0x5347b9(0x121)](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes[_0x5347b9(0xff)],_0x318ef8[_0x5347b9(0xdd)],null,_0x547333),process[_0x5347b9(0x120)](0x1));logger['info']('Stopping\x20grid\x20'+_0x547333[_0x5347b9(0xf6)]),await _0x318ef8['IjVYo'](sendInstrumentationEvent,_0x547333,_0x318ef8['YAcmz'],messageTypes[_0x5347b9(0xd8)],null,null,_0x547333);const _0x4dcca7=JSON[_0x5347b9(0x10d)](fs[_0x5347b9(0x12d)](_0x318ef8['qdIFu'](getCredentialsPath)));global_registry['bstackUsername']=_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0xe6)],global_registry['bstackAccesskey']=_0x4dcca7['Browserstack'][_0x5347b9(0x107)];const _0x37875e=WS_ENDPOINT['replace'](_0x318ef8['DMJbv'],_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0xe6)])[_0x5347b9(0xd5)](_0x318ef8[_0x5347b9(0x123)],_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0x107)]),_0x5ae308={};_0x5ae308[_0x5347b9(0x11b)]=ws,_0x5ae308[_0x5347b9(0x119)]=0x36ee80,_0x3daa78=new ReconnectingWebSocket(_0x37875e,[],_0x5ae308),logger['debug'](_0x318ef8['Xteoc']),webSocketUtils[_0x5347b9(0x126)](_0x3daa78,_0x547333['user'],_0x547333[_0x5347b9(0x107)]);const [_0xe4c0aa,_0x46b982]=await _0x318ef8[_0x5347b9(0xf4)](getGridDetails,_0x4dcca7[_0x5347b9(0xdc)][_0x5347b9(0xe6)],_0x4dcca7[_0x5347b9(0xdc)]['password'],_0x547333[_0x5347b9(0xf6)]);if(_0x46b982){const _0x3ac840=_0x46b982[_0x5347b9(0xfa)];global_registry[_0x5347b9(0x10c)]=_0x3ac840[_0x5347b9(0x10c)],global_registry[_0x5347b9(0x10e)]=_0x3ac840[_0x5347b9(0x104)],global_registry[_0x5347b9(0x113)]=_0x3ac840['clusterName'];const _0x1668f9=await _0x318ef8[_0x5347b9(0x10a)](getCloudProviderObject,_0x3ac840['cloudProvider'],_0x3ac840['clusterName'],_0x3ac840['name'],_0x3daa78,webSocketUtils,_0x547333),[_0x228c6b,_0x4a16bf,_0x25d6f6,_0x304dc7,_0x1a1c21,_0x5a94b0]=await _0x318ef8[_0x5347b9(0xee)](createK8sClient,_0x1668f9,_0x547333[_0x5347b9(0xe0)]);await _0x318ef8[_0x5347b9(0x11e)](scaleDownHubDeployment,_0x4a16bf,_0x3ac840[_0x5347b9(0x129)]),logger['info'](_0x318ef8[_0x5347b9(0xfd)]),process[_0x5347b9(0x120)](0x0);}_0x318ef8['TVViC'](_0xe4c0aa[_0x5347b9(0x117)],0x191)&&(logger[_0x5347b9(0xef)](_0x318ef8[_0x5347b9(0x10f)]),await _0x318ef8[_0x5347b9(0x102)](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes['ERROR'],_0x318ef8[_0x5347b9(0x109)],null,_0x547333),process[_0x5347b9(0x120)](0x1)),_0x318ef8[_0x5347b9(0x12e)](_0xe4c0aa['statusCode'],0x190)&&(logger[_0x5347b9(0xef)](JSON['parse'](_0xe4c0aa[_0x5347b9(0x125)])[_0x5347b9(0xd3)]),await _0x318ef8['oGHBN'](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes[_0x5347b9(0xff)],_0x318ef8[_0x5347b9(0x118)],null,_0x547333),process[_0x5347b9(0x120)](0x1)),logger['error'](_0x5347b9(0xd6)+JSON[_0x5347b9(0x11d)](_0xe4c0aa)),await _0x318ef8[_0x5347b9(0x127)](sendInstrumentationEvent,_0x547333,_0x318ef8[_0x5347b9(0xf7)],messageTypes['ERROR'],_0x318ef8[_0x5347b9(0xec)],_0xe4c0aa,_0x547333),process[_0x5347b9(0x120)](0x1);}catch(_0x192cea){const _0x3be994=_0x5347b9(0xea)+_0x192cea+'\x20\x0a'+JSON['stringify'](_0x192cea[_0x5347b9(0xe5)])+'\x20';logger[_0x5347b9(0xef)](_0x3be994),process[_0x5347b9(0x120)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x39399a=a22_0x133c;(function(_0x186067,_0x3d99ba){const _0x463e93=a22_0x133c,_0x55e8e1=_0x186067();while(!![]){try{const _0x4228c5=-parseInt(_0x463e93(0x1b5))/0x1*(parseInt(_0x463e93(0x1ef))/0x2)+-parseInt(_0x463e93(0x20a))/0x3*(parseInt(_0x463e93(0x1b7))/0x4)+-parseInt(_0x463e93(0x1f6))/0x5+parseInt(_0x463e93(0x1fc))/0x6*(-parseInt(_0x463e93(0x1e5))/0x7)+-parseInt(_0x463e93(0x20e))/0x8*(-parseInt(_0x463e93(0x1cc))/0x9)+-parseInt(_0x463e93(0x1f4))/0xa+-parseInt(_0x463e93(0x205))/0xb*(-parseInt(_0x463e93(0x1bb))/0xc);if(_0x4228c5===_0x3d99ba)break;else _0x55e8e1['push'](_0x55e8e1['shift']());}catch(_0x4c68c1){_0x55e8e1['push'](_0x55e8e1['shift']());}}}(a22_0x33d2,0xc80f0),require(a22_0x39399a(0x1e7))[a22_0x39399a(0x1be)](),exports[a22_0x39399a(0x1d7)]=process['env'][a22_0x39399a(0x1d7)]||a22_0x39399a(0x1c0),exports[a22_0x39399a(0x1d2)]=process['env'][a22_0x39399a(0x1d2)]||a22_0x39399a(0x1de),exports[a22_0x39399a(0x20b)]=process[a22_0x39399a(0x1e2)][a22_0x39399a(0x20b)]||'grid-api.browserstack.com',exports[a22_0x39399a(0x1b6)]='wss://'+this[a22_0x39399a(0x20b)]+a22_0x39399a(0x1e0),exports[a22_0x39399a(0x1c9)]='credentials',exports[a22_0x39399a(0x1e3)]=a22_0x39399a(0x1ea),exports[a22_0x39399a(0x216)]='high-scale-grid',exports[a22_0x39399a(0x212)]='aws',exports[a22_0x39399a(0x1f5)]=a22_0x39399a(0x1ed),exports[a22_0x39399a(0x1d0)]=a22_0x39399a(0x1dd),exports[a22_0x39399a(0x1ba)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a22_0x39399a(0x1f7),exports[a22_0x39399a(0x1b8)]=a22_0x39399a(0x1dc),exports[a22_0x39399a(0x20c)]=a22_0x39399a(0x1df),exports[a22_0x39399a(0x1eb)]=[this[a22_0x39399a(0x212)],this[a22_0x39399a(0x1b8)],this[a22_0x39399a(0x20c)]]);const a22_0x469c35={};a22_0x469c35[a22_0x39399a(0x208)]=a22_0x39399a(0x206),a22_0x469c35[a22_0x39399a(0x1ee)]=a22_0x39399a(0x1f0);const a22_0x1be495={};a22_0x1be495[a22_0x39399a(0x208)]=a22_0x39399a(0x1c6),a22_0x1be495[a22_0x39399a(0x1ee)]=a22_0x39399a(0x1d1);const common_hst_tags_list=[a22_0x469c35,a22_0x1be495];if(process[a22_0x39399a(0x1e2)][a22_0x39399a(0x1cb)]){const parsedTags=process[a22_0x39399a(0x1e2)][a22_0x39399a(0x1cb)][a22_0x39399a(0x1c8)](',');parsedTags[a22_0x39399a(0x209)](_0x3c2a63=>{const _0x33ebd3=a22_0x39399a,_0x43b298=_0x3c2a63[_0x33ebd3(0x1c8)](':'),_0x989a56={};_0x989a56[_0x33ebd3(0x208)]=_0x43b298[0x0],_0x989a56['Value']=_0x43b298[0x1],common_hst_tags_list[_0x33ebd3(0x1e4)](_0x989a56);});}exports[a22_0x39399a(0x215)]=common_hst_tags_list;const a22_0x22ba64={};a22_0x22ba64[a22_0x39399a(0x206)]=a22_0x39399a(0x1f0),a22_0x22ba64[a22_0x39399a(0x1c6)]='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x22ba64,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x39399a(0x212)]];const a22_0x1b4947={};a22_0x1b4947['LOG']='log',a22_0x1b4947[a22_0x39399a(0x1e1)]='resourceInfo',a22_0x1b4947[a22_0x39399a(0x1da)]='gridUrl',a22_0x1b4947['CLI_RUN_STARTED']=a22_0x39399a(0x1b9),a22_0x1b4947[a22_0x39399a(0x210)]='cliRunFinished',exports[a22_0x39399a(0x213)]=a22_0x1b4947,exports[a22_0x39399a(0x1f3)]={},exports[a22_0x39399a(0x1c1)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x5c3765={};a22_0x5c3765[a22_0x39399a(0x1d5)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1c7)]=a22_0x39399a(0x1d3)+this['LINK_MESSAGE'],a22_0x5c3765[a22_0x39399a(0x1fb)]=a22_0x39399a(0x201)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1f2)]=a22_0x39399a(0x1f9)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x202)]={},a22_0x5c3765['delete']=a22_0x39399a(0x20f)+this[a22_0x39399a(0x1c1)],a22_0x5c3765['connect']=a22_0x39399a(0x1f1)+this[a22_0x39399a(0x1c1)],a22_0x5c3765['start']=a22_0x39399a(0x1cf)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1c4)]=a22_0x39399a(0x211)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x1ec)]=a22_0x39399a(0x1b4)+this['LINK_MESSAGE'],a22_0x5c3765[a22_0x39399a(0x202)][a22_0x39399a(0x1d5)]=a22_0x39399a(0x1fe)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x202)][a22_0x39399a(0x1cd)]=a22_0x39399a(0x1c5)+this[a22_0x39399a(0x1c1)],a22_0x5c3765[a22_0x39399a(0x202)][a22_0x39399a(0x214)]=a22_0x39399a(0x1ca)+this[a22_0x39399a(0x1c1)],exports[a22_0x39399a(0x1c3)]=a22_0x5c3765,exports[a22_0x39399a(0x1e9)]=a22_0x39399a(0x1bf);const a22_0x1562cd={};a22_0x1562cd[a22_0x39399a(0x1ff)]='success',a22_0x1562cd[a22_0x39399a(0x1e8)]=a22_0x39399a(0x1ce),a22_0x1562cd[a22_0x39399a(0x204)]=a22_0x39399a(0x1db),a22_0x1562cd[a22_0x39399a(0x1d4)]=a22_0x39399a(0x217),a22_0x1562cd[a22_0x39399a(0x1d6)]=a22_0x39399a(0x203),a22_0x1562cd[a22_0x39399a(0x20d)]=null,exports[a22_0x39399a(0x1bd)]=a22_0x1562cd,exports[a22_0x39399a(0x1c2)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x39399a(0x1d9)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x39399a(0x1f8);const a22_0x3dc28b={};function a22_0x33d2(){const _0x309329=['\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','browserstack:service','init','split','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_CUSTOM_TAGS','576RmHKFb','grid','error','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLUSTER_AUTOSCALER_STACK_NAME','BrowserStack-Automate-TurboScale','BS_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','WARNING','root','UNKNOWN','DASHBOARD_ENDPOINT','REGION','RAW_ARGS_REGEX','GRID_URL','info','azure','BSTACK-ATS-CLUSTER-AUTOSCALER','api.browserstack.com','gcp','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','RESOURCES','env','IAM_USER_NAME','push','10367pZVHVc','us-east-1','dotenv','ERROR','HELP_FOOTER_MESSAGE','BrowserStackIAMUser','ALL_SUPPORTED_CLOUD_PROVIDERS','pre_check','BSTACK-ATS-CLUSTER','Value','49684DSmaHc','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','create','global_registry','7584530FcyPNf','CLUSTER_DEP_STACK_NAME','1744695xofIdv','browserstack-turboscale-grid','[REDACTED]','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','pre-check','configure','5124lfHKpu','CLUSTER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','SUCCESS','CLOUD_PROVIDER','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','list','unknown','INFO','1732390GbJKZx','browserstack:managedBy','TRIAL_GRID_URL','Key','forEach','317838kUHWYO','AG_API_URL','GCP','NULL','11384PZtDnc','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','CLI_RUN_FINISHED','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','AWS','WS_EVENTS','gridProfile','COMMON_HST_TAGS','DEFAULT_GRID_NAME','warning','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','61bgBvpm','WS_ENDPOINT','16exSkMQ','AZURE','cliRunStarted','CLUSTER_HUB_HA_STACK_NAME','384ASKBNj','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','messageTypes','config','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid.browserstack.com','LINK_MESSAGE','CLI_ARGS_REGEX','HELP_HEADER_MESSAGE','stop'];a22_0x33d2=function(){return _0x309329;};return a22_0x33d2();}a22_0x3dc28b['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x210796={};a22_0x210796[a22_0x39399a(0x1fa)]=a22_0x3dc28b,exports['MessageDescription']=a22_0x210796,exports[a22_0x39399a(0x207)]=a22_0x39399a(0x1bc);function a22_0x133c(_0x5c92d5,_0x10e7c4){const _0x33d29a=a22_0x33d2();return a22_0x133c=function(_0x133c2b,_0x3342bf){_0x133c2b=_0x133c2b-0x1b4;let _0x5b4dc1=_0x33d29a[_0x133c2b];return _0x5b4dc1;},a22_0x133c(_0x5c92d5,_0x10e7c4);}const a22_0xf1ae5c={};a22_0xf1ae5c[a22_0x39399a(0x1fd)]='high-scale-grid-cluster',a22_0xf1ae5c[a22_0x39399a(0x200)]='aws',a22_0xf1ae5c[a22_0x39399a(0x1d8)]=a22_0x39399a(0x1e6),exports['DEFAULT_CLUSTER_DETAILS']=a22_0xf1ae5c;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x3c71a1=a23_0x344f;function a23_0x1d27(){const _0x557118=['9385384ECcYKw','winston','createLogger','YYYY-MM-DD\x20HH:mm:ss','message','224115pHsMRX','format','usage.log','console.info','1GUAUeE','existsSync','Console','printf','1135506CuTsNd','colorize','58970HXGQip','619188VoFBTH','level','logger','fileLogger','join','debug','transports','2994220ksopbp','timestamp','mkdirSync','4532367ADyfss','log','9tDzVAj','File'];a23_0x1d27=function(){return _0x557118;};return a23_0x1d27();}(function(_0x568232,_0x59a4f1){const _0xdb34bf=a23_0x344f,_0x43d4b3=_0x568232();while(!![]){try{const _0x26eee8=-parseInt(_0xdb34bf(0xfa))/0x1*(-parseInt(_0xdb34bf(0x100))/0x2)+parseInt(_0xdb34bf(0x101))/0x3+parseInt(_0xdb34bf(0x108))/0x4+parseInt(_0xdb34bf(0xf6))/0x5+parseInt(_0xdb34bf(0xfe))/0x6+parseInt(_0xdb34bf(0x10b))/0x7+parseInt(_0xdb34bf(0xf1))/0x8*(-parseInt(_0xdb34bf(0x10d))/0x9);if(_0x26eee8===_0x59a4f1)break;else _0x43d4b3['push'](_0x43d4b3['shift']());}catch(_0x593488){_0x43d4b3['push'](_0x43d4b3['shift']());}}}(a23_0x1d27,0xa9252));const winston=require(a23_0x3c71a1(0xf2)),fs=require('fs'),path=require('path'),logDir=a23_0x3c71a1(0x10c);!fs[a23_0x3c71a1(0xfb)](logDir)&&fs[a23_0x3c71a1(0x10a)](logDir);const a23_0x39e7a5={};function a23_0x344f(_0x5e1482,_0x512be7){const _0x1d273a=a23_0x1d27();return a23_0x344f=function(_0x344fe1,_0x176a0){_0x344fe1=_0x344fe1-0xf1;let _0x525bf8=_0x1d273a[_0x344fe1];return _0x525bf8;},a23_0x344f(_0x5e1482,_0x512be7);}a23_0x39e7a5[a23_0x3c71a1(0xf7)]=a23_0x3c71a1(0xf4);const a23_0x33191e={};a23_0x33191e[a23_0x3c71a1(0x102)]=!![];const a23_0x535985={};a23_0x535985['name']=a23_0x3c71a1(0xf9),exports[a23_0x3c71a1(0x103)]=new winston['createLogger']({'format':winston[a23_0x3c71a1(0xf7)]['combine'](winston[a23_0x3c71a1(0xf7)][a23_0x3c71a1(0x109)](a23_0x39e7a5),winston[a23_0x3c71a1(0xf7)][a23_0x3c71a1(0xff)](a23_0x33191e),winston[a23_0x3c71a1(0xf7)][a23_0x3c71a1(0xfd)](_0x4a8c67=>_0x4a8c67['timestamp']+'\x20-\x20'+_0x4a8c67[a23_0x3c71a1(0x102)]+':\x20'+_0x4a8c67[a23_0x3c71a1(0xf5)])),'transports':[new winston[(a23_0x3c71a1(0x107))][(a23_0x3c71a1(0xfc))](a23_0x535985),new winston['transports']['File']({'filename':path[a23_0x3c71a1(0x105)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3c71a1(0x107))][(a23_0x3c71a1(0x10e))]({'filename':path[a23_0x3c71a1(0x105)](logDir,a23_0x3c71a1(0xf8)),'level':a23_0x3c71a1(0x106)})]};exports[a23_0x3c71a1(0x104)]=new winston[(a23_0x3c71a1(0xf3))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a24_0x3158(_0x54e1f4,_0xbda27b){const _0x3f24db=a24_0x3f24();return a24_0x3158=function(_0x315820,_0x533cda){_0x315820=_0x315820-0xf6;let _0x4c7928=_0x3f24db[_0x315820];return _0x4c7928;},a24_0x3158(_0x54e1f4,_0xbda27b);}const a24_0x2afa6b=a24_0x3158;(function(_0x31ede9,_0x2bacb1){const _0x55cb67=a24_0x3158,_0x43a7b5=_0x31ede9();while(!![]){try{const _0x86b9f7=-parseInt(_0x55cb67(0x100))/0x1+-parseInt(_0x55cb67(0xf8))/0x2*(-parseInt(_0x55cb67(0xf6))/0x3)+-parseInt(_0x55cb67(0xff))/0x4+parseInt(_0x55cb67(0x105))/0x5*(parseInt(_0x55cb67(0x102))/0x6)+parseInt(_0x55cb67(0x108))/0x7+parseInt(_0x55cb67(0x107))/0x8*(-parseInt(_0x55cb67(0x106))/0x9)+parseInt(_0x55cb67(0xfa))/0xa;if(_0x86b9f7===_0x2bacb1)break;else _0x43a7b5['push'](_0x43a7b5['shift']());}catch(_0x564a1a){_0x43a7b5['push'](_0x43a7b5['shift']());}}}(a24_0x3f24,0x98d8f));function a24_0x3f24(){const _0x392433=['eqmjq','5091iXccoY','usage','586uFBjgy','commandDir','5436350cccQxO','demandCommand','exports','commands','root','2625072tyfogA','449835YFzjea','help','150nkOFkU','env','vysdw','196125EuOJcU','375705Puevsq','136ntofJo','2942450aGdiED','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','./config/constants'];a24_0x3f24=function(){return _0x392433;};return a24_0x3f24();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2afa6b(0x10a));process[a24_0x2afa6b(0x103)][a24_0x2afa6b(0x109)]=0x1;function run(_0x2aad11){const _0x2b0414=a24_0x2afa6b,_0x3aea4b={};_0x3aea4b[_0x2b0414(0x10b)]=_0x2b0414(0xfd),_0x3aea4b[_0x2b0414(0x104)]=_0x2b0414(0x101);const _0x115182=_0x3aea4b;_0x2aad11[_0x2b0414(0xf7)](HELP_HEADER_MESSAGE[_0x2b0414(0xfe)])[_0x2b0414(0xf9)](_0x115182[_0x2b0414(0x10b)])[_0x2b0414(0xfb)]()['help'](_0x115182[_0x2b0414(0x104)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x2afa6b(0xfc)]=run;
|