browserstack-node-sdk 1.36.4 → 1.36.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15_0x4d1b(){const _0x47881d=['grid-id','https://','desc','YWGkE','1058353Fhqxfa','HzGrV','list-grids-called','password','fezIx','wWqBZ','wcxzJ','OVSYv','grid','vLTdW','789200TnqGcg','UgoHb','/packages/cli/get-all-grids','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid-name','kZsKk','stringify','options','3642210BEMhXN','status','10JkNRTZ','push','117uLdclt','unauthorised','UXzaF','readFileSync','lIaGM','all-grids','1736172NABckB','server-error','PMIbq','lwQrD','OIxtH','opNrC','Failed\x20to\x20list\x20resources!\x20Error:\x20','bstackAccesskey','argv','help','../../config/constants','table','2970558HsLhiE','135560nExYnf','exit','clusterName','bstackUsername','queued','existsSync','usage','INFO','running','body','got','UioYZ','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','../../utils/utilityMethods','6909021eTBHOr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','error','Browserstack','OjLvq','handler','SDPkS','HRPAS','requestId','epilogue','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','ERROR','YOHzC','unknown-error','hmXMR','name','log','type'];a15_0x4d1b=function(){return _0x47881d;};return a15_0x4d1b();}const a15_0x34641a=a15_0x5c91;(function(_0x474310,_0x6ff0c8){const _0x5053b=a15_0x5c91,_0x20a0c9=_0x474310();while(!![]){try{const _0x233787=-parseInt(_0x5053b(0x1e1))/0x1+-parseInt(_0x5053b(0x1fe))/0x2+parseInt(_0x5053b(0x20a))/0x3+-parseInt(_0x5053b(0x20b))/0x4*(parseInt(_0x5053b(0x1f6))/0x5)+-parseInt(_0x5053b(0x1f4))/0x6+parseInt(_0x5053b(0x1ca))/0x7+-parseInt(_0x5053b(0x1eb))/0x8*(-parseInt(_0x5053b(0x1f8))/0x9);if(_0x233787===_0x6ff0c8)break;else _0x20a0c9['push'](_0x20a0c9['shift']());}catch(_0x46a472){_0x20a0c9['push'](_0x20a0c9['shift']());}}}(a15_0x4d1b,0xa0bd1));const fs=require('fs'),got=require(a15_0x34641a(0x1c6)),{table}=require(a15_0x34641a(0x209)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x34641a(0x208)),{getCredentialsPath,getAuthHeader}=require(a15_0x34641a(0x1c9)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x5c91(_0x1748d8,_0x5e111c){const _0x4d1b8d=a15_0x4d1b();return a15_0x5c91=function(_0x5c91e2,_0x4b8b27){_0x5c91e2=_0x5c91e2-0x1be;let _0x16f518=_0x4d1b8d[_0x5c91e2];return _0x16f518;},a15_0x5c91(_0x1748d8,_0x5e111c);}exports['command']='grids',exports[a15_0x34641a(0x1df)]=a15_0x34641a(0x1d5),exports['builder']=function(_0x512038){const _0x26642b=a15_0x34641a,_0x1999ff={};_0x1999ff['UioYZ']=_0x26642b(0x1c8),_0x1999ff[_0x26642b(0x1d2)]='boolean',_0x1999ff['CADXx']='help';const _0x246a1e=_0x1999ff,_0x2acac6={};_0x2acac6['description']=_0x246a1e[_0x26642b(0x1c7)],_0x2acac6[_0x26642b(0x1dc)]=_0x246a1e[_0x26642b(0x1d2)];const _0x2e06a5={};return _0x2e06a5[_0x26642b(0x1fd)]=_0x2acac6,_0x512038[_0x26642b(0x1c2)](HELP_HEADER_MESSAGE['list'][_0x26642b(0x1e9)])[_0x26642b(0x1d4)](HELP_FOOTER_MESSAGE)[_0x26642b(0x1f3)](_0x2e06a5)[_0x26642b(0x207)](_0x246a1e['CADXx'])[_0x26642b(0x206)];},exports[a15_0x34641a(0x1d0)]=async function(_0x50efe2){const _0x43d3c3=a15_0x34641a,_0x1d35ec={'fezIx':function(_0x45dd32){return _0x45dd32();},'UgoHb':_0x43d3c3(0x1cb),'OIxtH':function(_0x4fe7ea,_0x56e0df,_0x1d0dc0,_0x51e0b4,_0x149b63,_0x7ad978,_0x259b91){return _0x4fe7ea(_0x56e0df,_0x1d0dc0,_0x51e0b4,_0x149b63,_0x7ad978,_0x259b91);},'PMIbq':_0x43d3c3(0x1e3),'mqcob':'init-not-called','YWGkE':function(_0x224f67){return _0x224f67();},'kZsKk':'GET','sADVY':function(_0x35e139,_0x2b0327,_0x46cec6){return _0x35e139(_0x2b0327,_0x46cec6);},'wcxzJ':function(_0x5671ec,_0x52dc47,_0x1e2f67){return _0x5671ec(_0x52dc47,_0x1e2f67);},'PfQCL':function(_0x414636,_0x167f13){return _0x414636!==_0x167f13;},'OVSYv':function(_0xb85968,_0xf31143){return _0xb85968!==_0xf31143;},'oKvnv':function(_0x243196,_0x2247fc){return _0x243196===_0x2247fc;},'opNrC':'\x0aFound\x20the\x20following\x20grids:\x0a','YOHzC':_0x43d3c3(0x1dd),'ehWsQ':_0x43d3c3(0x1f0),'lIaGM':_0x43d3c3(0x1f5),'UXzaF':_0x43d3c3(0x1c4),'HzGrV':_0x43d3c3(0x1c0),'lwQrD':'cluster-name','wWqBZ':function(_0x13ce6a,_0x3e11e7){return _0x13ce6a(_0x3e11e7);},'aqjRT':function(_0x123d20,_0x2122ee){return _0x123d20===_0x2122ee;},'hmXMR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','SDPkS':_0x43d3c3(0x1f9),'qHFQB':function(_0x176503,_0x46ac47,_0xa07e2b,_0x1381b9,_0x299321,_0x37a85c,_0x2c365d){return _0x176503(_0x46ac47,_0xa07e2b,_0x1381b9,_0x299321,_0x37a85c,_0x2c365d);},'OjLvq':_0x43d3c3(0x1ff),'vLTdW':function(_0xd8363a,_0x45aa55,_0x1face2,_0x4bb46a,_0x37bafe,_0x26460d,_0x591502){return _0xd8363a(_0x45aa55,_0x1face2,_0x4bb46a,_0x37bafe,_0x26460d,_0x591502);},'WFbgN':_0x43d3c3(0x1d8)};try{global_registry[_0x43d3c3(0x1d3)]=_0x1d35ec[_0x43d3c3(0x1e5)](uuidv4);!fs[_0x43d3c3(0x1c1)](_0x1d35ec['fezIx'](getCredentialsPath))&&(console[_0x43d3c3(0x1cd)](_0x1d35ec[_0x43d3c3(0x1ec)]),await _0x1d35ec[_0x43d3c3(0x202)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes[_0x43d3c3(0x1d6)],_0x1d35ec['mqcob'],null,_0x50efe2),process['exit'](0x1));const _0x36ccb6=JSON['parse'](fs[_0x43d3c3(0x1fb)](_0x1d35ec[_0x43d3c3(0x1e0)](getCredentialsPath)));let _0x5326bf=_0x43d3c3(0x1de)+AG_API_URL+'/packages/cli/get-grids';_0x50efe2['allGrids']&&(_0x5326bf=_0x43d3c3(0x1de)+AG_API_URL+_0x43d3c3(0x1ed));const _0x3f83d3={'method':_0x1d35ec[_0x43d3c3(0x1f1)],'headers':_0x1d35ec['sADVY'](getAuthHeader,_0x36ccb6['Browserstack']['username'],_0x36ccb6[_0x43d3c3(0x1ce)][_0x43d3c3(0x1e4)]),'throwHttpErrors':![]};global_registry[_0x43d3c3(0x1bf)]=_0x36ccb6[_0x43d3c3(0x1ce)][_0x43d3c3(0x1ee)],global_registry[_0x43d3c3(0x205)]=_0x36ccb6[_0x43d3c3(0x1ce)][_0x43d3c3(0x1e4)],_0x1d35ec[_0x43d3c3(0x202)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec['PMIbq'],messageTypes[_0x43d3c3(0x1c3)],null,null,_0x50efe2);const _0x456693=await _0x1d35ec[_0x43d3c3(0x1e7)](got,_0x5326bf,_0x3f83d3);if(_0x1d35ec['PfQCL'](_0x456693,null)&&_0x1d35ec[_0x43d3c3(0x1e8)](_0x456693,undefined)&&_0x1d35ec['oKvnv'](_0x456693[_0x43d3c3(0x1cc)],0xc8)){const _0x80c74d=JSON['parse'](_0x456693[_0x43d3c3(0x1c5)]);console[_0x43d3c3(0x1db)](_0x1d35ec[_0x43d3c3(0x203)]);const _0x4bff41=[];_0x4bff41[_0x43d3c3(0x1f7)]([_0x1d35ec[_0x43d3c3(0x1d7)],_0x1d35ec['ehWsQ'],_0x1d35ec[_0x43d3c3(0x1fc)],_0x1d35ec[_0x43d3c3(0x1fa)],_0x1d35ec[_0x43d3c3(0x1e2)],_0x1d35ec[_0x43d3c3(0x201)]]),_0x80c74d['forEach'](_0x178efc=>{const _0x342a20=_0x43d3c3;_0x4bff41[_0x342a20(0x1f7)]([_0x178efc['id'],_0x178efc[_0x342a20(0x1da)],_0x178efc[_0x342a20(0x1f5)],_0x178efc[_0x342a20(0x1c4)],_0x178efc[_0x342a20(0x1c0)],_0x178efc[_0x342a20(0x1be)]]);}),console[_0x43d3c3(0x1db)](_0x1d35ec[_0x43d3c3(0x1e6)](table,_0x4bff41)),process['exit'](0x0);}_0x1d35ec['aqjRT'](_0x456693[_0x43d3c3(0x1cc)],0x191)&&(console[_0x43d3c3(0x1cd)](_0x1d35ec[_0x43d3c3(0x1d9)]),await _0x1d35ec[_0x43d3c3(0x202)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes['ERROR'],_0x1d35ec[_0x43d3c3(0x1d1)],null,_0x50efe2),process[_0x43d3c3(0x20c)](0x1)),console[_0x43d3c3(0x1cd)](_0x43d3c3(0x1ef)+JSON[_0x43d3c3(0x1f2)](_0x456693)),await _0x1d35ec['qHFQB'](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes['ERROR'],_0x1d35ec[_0x43d3c3(0x1cf)],_0x456693,_0x50efe2),process['exit'](0x1);}catch(_0x487cdf){console[_0x43d3c3(0x1cd)](_0x43d3c3(0x204)+_0x487cdf['stack']),await _0x1d35ec[_0x43d3c3(0x1ea)](sendInstrumentationEvent,_0x50efe2,_0x1d35ec[_0x43d3c3(0x200)],messageTypes[_0x43d3c3(0x1d6)],_0x1d35ec['WFbgN'],_0x487cdf,_0x50efe2),process[_0x43d3c3(0x20c)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a16_0x1b891e=a16_0x5e46;function a16_0x5e46(_0x55c9b7,_0x4aa41c){const _0x48f6bd=a16_0x48f6();return a16_0x5e46=function(_0x5e46ce,_0x3fa181){_0x5e46ce=_0x5e46ce-0x177;let _0x3982fe=_0x48f6bd[_0x5e46ce];return _0x3982fe;},a16_0x5e46(_0x55c9b7,_0x4aa41c);}(function(_0x133100,_0xf07280){const _0x41ec1a=a16_0x5e46,_0x45b95a=_0x133100();while(!![]){try{const _0x300647=parseInt(_0x41ec1a(0x187))/0x1*(parseInt(_0x41ec1a(0x18e))/0x2)+-parseInt(_0x41ec1a(0x184))/0x3+parseInt(_0x41ec1a(0x17f))/0x4*(-parseInt(_0x41ec1a(0x17e))/0x5)+-parseInt(_0x41ec1a(0x18a))/0x6+parseInt(_0x41ec1a(0x188))/0x7+parseInt(_0x41ec1a(0x179))/0x8+parseInt(_0x41ec1a(0x17a))/0x9;if(_0x300647===_0xf07280)break;else _0x45b95a['push'](_0x45b95a['shift']());}catch(_0x1e02f8){_0x45b95a['push'](_0x45b95a['shift']());}}}(a16_0x48f6,0x966a3));function a16_0x48f6(){const _0x2b5803=['10ClPUgC','recommendCommands','pre-check','1171632kICTCB','13795839WwCzxg','handler','strict','PDVlN','10KUShsC','1404776bGQLhV','precheck_commands','epilogue','pre_check','../config/constants','1236801DbTdmx','desc','command','28238ifkmgR','2238306iieZMG','builder','2457114SXNxma','aDLEO','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup'];a16_0x48f6=function(){return _0x2b5803;};return a16_0x48f6();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1b891e(0x183));exports[a16_0x1b891e(0x186)]=a16_0x1b891e(0x178),exports[a16_0x1b891e(0x185)]=a16_0x1b891e(0x18d),exports[a16_0x1b891e(0x189)]=function(_0x3532ec){const _0x3cb78c=a16_0x1b891e,_0x2d2453={};_0x2d2453[_0x3cb78c(0x18b)]=_0x3cb78c(0x180),_0x2d2453[_0x3cb78c(0x17d)]='help';const _0x445776=_0x2d2453;return _0x3532ec[_0x3cb78c(0x18c)](HELP_HEADER_MESSAGE[_0x3cb78c(0x182)])[_0x3cb78c(0x181)](HELP_FOOTER_MESSAGE)['commandDir'](_0x445776[_0x3cb78c(0x18b)])['demandCommand']()[_0x3cb78c(0x177)]()[_0x3cb78c(0x17c)]()['help'](_0x445776['PDVlN']);},exports[a16_0x1b891e(0x17b)]=function(_0x35588e){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x7329e3=a17_0x58c7;(function(_0xc14e35,_0x2cad4e){const _0x503257=a17_0x58c7,_0x2bf0c5=_0xc14e35();while(!![]){try{const _0x598f52=parseInt(_0x503257(0x188))/0x1*(parseInt(_0x503257(0x16b))/0x2)+parseInt(_0x503257(0x19b))/0x3*(parseInt(_0x503257(0x128))/0x4)+-parseInt(_0x503257(0x16f))/0x5+parseInt(_0x503257(0x158))/0x6+parseInt(_0x503257(0x186))/0x7+parseInt(_0x503257(0x1d1))/0x8*(-parseInt(_0x503257(0x1fe))/0x9)+-parseInt(_0x503257(0x1fa))/0xa;if(_0x598f52===_0x2cad4e)break;else _0x2bf0c5['push'](_0x2bf0c5['shift']());}catch(_0x27c242){_0x2bf0c5['push'](_0x2bf0c5['shift']());}}}(a17_0x1545,0x81d0a));const fs=require('fs'),ws=require('ws'),got=require(a17_0x7329e3(0x210)),{v4:uuidv4}=require(a17_0x7329e3(0x167)),ReconnectingWebSocket=require(a17_0x7329e3(0x181)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x7329e3(0x1a4)),{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('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x7329e3(0x196)),webSocketUtils=require(a17_0x7329e3(0x222)),{sendInstrumentationEvent}=require(a17_0x7329e3(0x1dc));exports[a17_0x7329e3(0x1e4)]=a17_0x7329e3(0x143),exports[a17_0x7329e3(0x1b2)]=a17_0x7329e3(0x1f1),exports[a17_0x7329e3(0x173)]=function(_0x2f76a9){const _0x46b286=a17_0x7329e3,_0x1b4cfe={};_0x1b4cfe[_0x46b286(0x224)]=_0x46b286(0x183),_0x1b4cfe[_0x46b286(0x155)]=_0x46b286(0x178),_0x1b4cfe[_0x46b286(0x1c4)]=_0x46b286(0x192),_0x1b4cfe[_0x46b286(0x1eb)]=_0x46b286(0x197),_0x1b4cfe[_0x46b286(0x13f)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1b4cfe[_0x46b286(0x132)]=_0x46b286(0x161);const _0x3e732d=_0x1b4cfe,_0x302653={};_0x302653[_0x46b286(0x13e)]=_0x3e732d['MgVkY'],_0x302653[_0x46b286(0x1c8)]=_0x3e732d['hAawb'];const _0x29cefc={};_0x29cefc['description']=_0x3e732d[_0x46b286(0x1c4)],_0x29cefc[_0x46b286(0x1c8)]=_0x3e732d[_0x46b286(0x155)];const _0x4a4270={};_0x4a4270['description']=_0x3e732d[_0x46b286(0x1eb)],_0x4a4270['type']=_0x3e732d[_0x46b286(0x155)];const _0x199ace={};_0x199ace[_0x46b286(0x13e)]=_0x3e732d[_0x46b286(0x13f)],_0x199ace[_0x46b286(0x1c8)]=_0x3e732d['hAawb'];const _0x29c5b9={};return _0x29c5b9['cluster-name']=_0x302653,_0x29c5b9[_0x46b286(0x1b5)]=_0x29cefc,_0x29c5b9[_0x46b286(0x21b)]=_0x4a4270,_0x29c5b9[_0x46b286(0x205)]=_0x199ace,_0x2f76a9[_0x46b286(0x166)](HELP_HEADER_MESSAGE[_0x46b286(0x1d6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x46b286(0x15d)](_0x29c5b9)[_0x46b286(0x161)](_0x3e732d[_0x46b286(0x132)])[_0x46b286(0x17e)];};function a17_0x58c7(_0x2df0dc,_0x592f5a){const _0x154584=a17_0x1545();return a17_0x58c7=function(_0x58c704,_0x14b4b0){_0x58c704=_0x58c704-0x127;let _0x25ad17=_0x154584[_0x58c704];return _0x25ad17;},a17_0x58c7(_0x2df0dc,_0x592f5a);}async function inputValidation(_0x1f6fd3,_0x1d60d2){const _0x9ff242=a17_0x7329e3,_0x3e641a={'fObsz':_0x9ff242(0x1cd),'FVlrP':'cluster-name','KyegZ':_0x9ff242(0x1b5),'IfMFV':_0x9ff242(0x183),'JRgco':_0x9ff242(0x178),'VoTsG':_0x9ff242(0x192),'HUVIV':_0x9ff242(0x197),'nhKGT':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ZUHHs':_0x9ff242(0x161),'iSmVr':_0x9ff242(0x1f5),'qRUps':_0x9ff242(0x156),'ayXyX':'error','lusax':_0x9ff242(0x1d0),'EsQjF':_0x9ff242(0x1db),'AtMAQ':'region','rEUKQ':function(_0x101a64,_0x51e6e5){return _0x101a64+_0x51e6e5;},'cVCRJ':_0x9ff242(0x1ee),'AXwjR':_0x9ff242(0x17d),'fgslF':function(_0x2f6c0b,_0x162b72){return _0x2f6c0b||_0x162b72;},'drSTN':function(_0x59ef12,_0xa12954){return _0x59ef12!==_0xa12954;},'qCLTw':_0x9ff242(0x1f4),'EJzQB':_0x9ff242(0x211),'hcMRj':_0x9ff242(0x17b),'NktUH':function(_0x28a1ce,_0x92141){return _0x28a1ce!==_0x92141;},'oRDdP':_0x9ff242(0x225),'pMjha':_0x9ff242(0x20d),'BbbJk':function(_0x340ae5,_0x2be785){return _0x340ae5!==_0x2be785;},'voUno':_0x9ff242(0x15e),'JOsUP':function(_0x6333b8,_0x51e66d){return _0x6333b8===_0x51e66d;},'wAQau':'aPEqr','TfJad':'esEMK','YLYZC':function(_0x3c79bc,_0x544a30){return _0x3c79bc>_0x544a30;},'thiSf':function(_0x15d903,_0xbf9470){return _0x15d903!==_0xbf9470;},'SJTNK':_0x9ff242(0x170),'lLFdZ':_0x9ff242(0x144),'sbXbD':function(_0x3cf1e1,_0x2ab2af,_0x2c7059,_0x41990a,_0x406316,_0x5579ce,_0x4b9ebb,_0x5ac267){return _0x3cf1e1(_0x2ab2af,_0x2c7059,_0x41990a,_0x406316,_0x5579ce,_0x4b9ebb,_0x5ac267);},'hSBhb':_0x9ff242(0x1a5),'qCAFd':_0x9ff242(0x12a),'oyneF':_0x9ff242(0x223),'NKuDg':'DbwEw','fBlrm':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MZRDx':_0x9ff242(0x16e),'IDIcr':_0x9ff242(0x1ad),'xrjBo':function(_0x588d70,_0x294c20){return _0x588d70===_0x294c20;},'XQVOn':'dWoCw','IMNbV':_0x9ff242(0x1e5),'rRAOL':_0x9ff242(0x14e),'YRYIn':function(_0x12ee0a,_0x5722cb,_0x2a69a2){return _0x12ee0a(_0x5722cb,_0x2a69a2);},'CoXKU':function(_0x19f240,_0x287609,_0x508801,_0x1ed333,_0x8be365,_0x5638fa){return _0x19f240(_0x287609,_0x508801,_0x1ed333,_0x8be365,_0x5638fa);},'RtYJO':_0x9ff242(0x12b),'xFuAR':'grid-profile','uDJBM':function(_0x478db6,_0x51fdde){return _0x478db6===_0x51fdde;},'sHXyf':function(_0xaa332f,_0x5bb110){return _0xaa332f!==_0x5bb110;},'ETHjV':'wDaFU','UapqK':function(_0x28e2ff,_0x2977a2){return _0x28e2ff(_0x2977a2);},'AKcah':function(_0x26a014,_0x40d298){return _0x26a014!==_0x40d298;},'hvamb':'CmVdF','FFCGZ':function(_0x5ba1f1,_0xeb0564,_0x155c5d,_0x187b0c,_0x3d66a6,_0x26d0ff,_0x43db50,_0x509be8){return _0x5ba1f1(_0xeb0564,_0x155c5d,_0x187b0c,_0x3d66a6,_0x26d0ff,_0x43db50,_0x509be8);},'oYcsw':_0x9ff242(0x1fc),'VSsBA':_0x9ff242(0x163),'kIRDZ':_0x9ff242(0x145),'AwXvN':function(_0xf93089,_0x94aa7f){return _0xf93089===_0x94aa7f;},'cxiHW':'suWMi','tmIjn':_0x9ff242(0x151),'yCHDg':_0x9ff242(0x1bd),'IzfXe':'DejBn','dFMXF':function(_0x2b26e8,_0x39b2ad){return _0x2b26e8!==_0x39b2ad;},'WqTrE':_0x9ff242(0x162),'FdlYj':_0x9ff242(0x1d8)};let _0x29c0d6;try{if(_0x3e641a[_0x9ff242(0x20a)](_0x3e641a[_0x9ff242(0x19a)],_0x3e641a['qCLTw']))_0xbdd599[_0x9ff242(0x199)](_0x3e641a[_0x9ff242(0x1fb)]),_0x5791d6[_0x9ff242(0x160)](0x1);else{if(_0x1f6fd3[_0x9ff242(0x1b6)]||_0x1f6fd3[_0x9ff242(0x1d2)]||_0x1f6fd3[_0x9ff242(0x21b)]){if(_0x3e641a[_0x9ff242(0x20a)](_0x3e641a[_0x9ff242(0x209)],_0x3e641a[_0x9ff242(0x18f)])){const _0x55ed86=[];!_0x1f6fd3['clusterName']&&(_0x3e641a[_0x9ff242(0x21d)](_0x3e641a['oRDdP'],_0x3e641a[_0x9ff242(0x1ec)])?_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x203)]):_0xbd040c=_0x25e570);;!_0x1f6fd3['cloudProvider']&&(_0x3e641a[_0x9ff242(0x165)](_0x3e641a['voUno'],_0x3e641a[_0x9ff242(0x16d)])?_0x3b6a08['error'](_0x9ff242(0x198)+_0x23bf38[_0x9ff242(0x199)][_0x9ff242(0x1f0)]):_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a['KyegZ']));;!_0x1f6fd3['region']&&(_0x3e641a['JOsUP'](_0x3e641a[_0x9ff242(0x20e)],_0x3e641a['TfJad'])?_0x1efabd[_0x9ff242(0x1d3)](_0x3e641a['FVlrP']):_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x1bf)]));;_0x3e641a[_0x9ff242(0x184)](_0x55ed86[_0x9ff242(0x20b)],0x0)&&(_0x3e641a['thiSf'](_0x3e641a[_0x9ff242(0x212)],_0x3e641a[_0x9ff242(0x19c)])?(_0x29c0d6=_0x9ff242(0x146)+_0x55ed86[_0x9ff242(0x1f6)](',\x20')+_0x9ff242(0x168),await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x12d)],_0x3e641a[_0x9ff242(0x1a0)]),logger[_0x9ff242(0x199)](_0x29c0d6),process[_0x9ff242(0x160)](0x1)):_0xd9f093[_0x9ff242(0x1b4)](_0x9ff242(0x1c0)+_0x34e02f[_0x9ff242(0x1b6)]+_0x9ff242(0x180))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x9ff242(0x149)](_0x1f6fd3[_0x9ff242(0x1d2)][_0x9ff242(0x1e6)]())&&(_0x3e641a[_0x9ff242(0x1b8)](_0x3e641a[_0x9ff242(0x18e)],_0x3e641a[_0x9ff242(0x1f7)])?(_0x29c0d6=_0x3e641a[_0x9ff242(0x1d9)],await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes['ERROR'],_0x3e641a[_0x9ff242(0x14a)],_0x3e641a['MZRDx'],_0x3e641a['ayXyX']),logger[_0x9ff242(0x199)](_0x29c0d6),!_0x1f6fd3[_0x9ff242(0x1d2)]&&(_0x3e641a[_0x9ff242(0x21d)](_0x3e641a[_0x9ff242(0x148)],_0x3e641a[_0x9ff242(0x148)])?_0x3a1946[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x133)]):(logger[_0x9ff242(0x1b4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x9ff242(0x17a)]+'\x20'),_0x1f6fd3[_0x9ff242(0x1d2)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x4b5427[_0x9ff242(0x1b4)]('['+_0x383733+_0x9ff242(0x13b)+_0xc70ccb['status']+_0x9ff242(0x15a)+_0x5874b6[_0x9ff242(0x14f)]+_0x9ff242(0x1bc)+_0x596eda[_0x9ff242(0x199)]),_0x26d4b2[_0x9ff242(0x199)]&&_0x724f1b['error'](_0x9ff242(0x198)+_0x10599b[_0x9ff242(0x199)]['stack']))),global_registry[_0x9ff242(0x1b6)]=_0x1f6fd3[_0x9ff242(0x1b6)],global_registry[_0x9ff242(0x1d2)]=_0x1f6fd3[_0x9ff242(0x1d2)],global_registry[_0x9ff242(0x1e0)]=_0x1f6fd3[_0x9ff242(0x21b)];}else{const _0xaa7290={};_0xaa7290[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x177)],_0xaa7290[_0x9ff242(0x1c8)]=_0x3e641a['JRgco'];const _0x4b25a8={};_0x4b25a8['description']=_0x3e641a['VoTsG'],_0x4b25a8[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0x30e5be={};_0x30e5be[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x157)],_0x30e5be[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0xf5eb81={};_0xf5eb81[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x1ed)],_0xf5eb81[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0x2a14eb={};return _0x2a14eb[_0x9ff242(0x1b9)]=_0xaa7290,_0x2a14eb[_0x9ff242(0x1b5)]=_0x4b25a8,_0x2a14eb[_0x9ff242(0x21b)]=_0x30e5be,_0x2a14eb[_0x9ff242(0x205)]=_0xf5eb81,_0x231cb7['usage'](_0x49b490['pre_check'])[_0x9ff242(0x1b7)](_0xa498c2)['options'](_0x2a14eb)[_0x9ff242(0x161)](_0x3e641a['ZUHHs'])[_0x9ff242(0x17e)];}}else{if(_0x1f6fd3[_0x9ff242(0x176)]){if(_0x3e641a[_0x9ff242(0x1a6)](_0x3e641a[_0x9ff242(0x136)],_0x3e641a[_0x9ff242(0x17c)]))_0x43d6d7+=_0x9ff242(0x175)+_0x576658[_0x9ff242(0x1b6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{global_registry[_0x9ff242(0x176)]=_0x1f6fd3['gridProfile'],logger['debug'](_0x9ff242(0x1c7)+_0x1f6fd3[_0x9ff242(0x176)]);const _0x38ae55=_0x9ff242(0x174)+AG_API_URL+_0x9ff242(0x1fd),_0x5b1831={};_0x5b1831[_0x9ff242(0x1be)]=_0x3e641a[_0x9ff242(0x1d4)],_0x5b1831[_0x9ff242(0x1ae)]=global_registry[_0x9ff242(0x194)],_0x5b1831[_0x9ff242(0x228)]=![];const _0x718815=_0x5b1831,_0x20941a=await _0x3e641a['YRYIn'](got,_0x38ae55,_0x718815),_0xfd5d50=await _0x3e641a['CoXKU'](responseValidation,_0x20941a,_0x3e641a[_0x9ff242(0x21a)],_0x3e641a[_0x9ff242(0x191)],_0x1f6fd3,_0x1d60d2);let _0x330eae={};if(_0x3e641a['uDJBM'](_0xfd5d50,0xc8)){if(_0x3e641a[_0x9ff242(0x21f)](_0x3e641a[_0x9ff242(0x1e8)],_0x3e641a[_0x9ff242(0x1e8)]))_0x3c6872+=_0x3e641a[_0x9ff242(0x1c3)],_0x1cb076+=_0x9ff242(0x131)+(_0x44c1df[_0x9ff242(0x1dd)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x40f54c+='\x20\x20Code:\x20'+(_0x2e8667[_0x9ff242(0x19f)]||_0x3e641a['qRUps'])+'\x0a',_0x2f8d76+=_0x9ff242(0x1aa)+(_0x1e9088[_0x9ff242(0x1f0)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a';else{const _0x43b0ef=JSON[_0x9ff242(0x18d)](_0x20941a[_0x9ff242(0x1ff)]),_0x24d98d=_0x43b0ef[_0x9ff242(0x1c2)](_0x4ad4ea=>_0x4ad4ea['name']===_0x1f6fd3[_0x9ff242(0x176)])||null;if(_0x3e641a[_0x9ff242(0x1b0)](isUndefined,_0x24d98d)){if(_0x3e641a['AKcah'](_0x3e641a[_0x9ff242(0x1ab)],_0x3e641a[_0x9ff242(0x1ab)])){const _0x440de1={};_0x440de1[_0x9ff242(0x1c8)]=_0x57b382[_0x9ff242(0x1f3)],_0x440de1[_0x9ff242(0x1dd)]=_0x3fb2d6,_0x5c79fb['sendEventToBackend'](_0x442b7d,_0x440de1,_0x3e641a['ayXyX'],!![]);}else _0x29c0d6=_0x9ff242(0x226)+_0x1f6fd3['gridProfile']+_0x9ff242(0x141),await _0x3e641a[_0x9ff242(0x172)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x213)],_0x3e641a[_0x9ff242(0x1a0)]),logger[_0x9ff242(0x199)](_0x29c0d6),process[_0x9ff242(0x160)](0x1);}else _0x3e641a['drSTN'](_0x3e641a[_0x9ff242(0x15f)],_0x3e641a[_0x9ff242(0x127)])?_0x330eae=_0x24d98d:_0x2e87bb+=_0x9ff242(0x175)+_0x9be643[_0x9ff242(0x1b6)]+'\x20'+(_0x5db94d?_0x3e641a[_0x9ff242(0x139)]:_0x3e641a[_0x9ff242(0x208)])+'\x0a\x0a';}}else _0x3e641a[_0x9ff242(0x207)](_0x3e641a[_0x9ff242(0x1d5)],_0x3e641a[_0x9ff242(0x1d5)])?process[_0x9ff242(0x160)](0x1):_0x369721['push'](_0x3e641a[_0x9ff242(0x1bf)]);const _0xdbba4e={};_0xdbba4e[_0x9ff242(0x1c8)]=WS_EVENTS[_0x9ff242(0x1f3)],_0xdbba4e['message']=_0x3e641a[_0x9ff242(0x12e)],webSocketUtils[_0x9ff242(0x164)](_0x1d60d2,_0xdbba4e),global_registry[_0x9ff242(0x1d2)]=_0x330eae[_0x9ff242(0x1d2)],global_registry[_0x9ff242(0x1e0)]=_0x330eae[_0x9ff242(0x21b)],global_registry[_0x9ff242(0x1b6)]=_0x330eae[_0x9ff242(0x1b6)];}}else _0x3e641a['AwXvN'](_0x3e641a[_0x9ff242(0x219)],_0x3e641a[_0x9ff242(0x187)])?_0xc7f568[_0x9ff242(0x160)](0x1):(logger['error'](_0x3e641a[_0x9ff242(0x1fb)]),process[_0x9ff242(0x160)](0x1));}}}catch(_0x4134bb){if(_0x3e641a['dFMXF'](_0x3e641a[_0x9ff242(0x1ce)],_0x3e641a[_0x9ff242(0x1d7)]))_0x29c0d6='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x4134bb+':\x20'+_0x4134bb['stack'],logger[_0x9ff242(0x199)](_0x29c0d6),await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x16c)],_0x3e641a['ayXyX']),process[_0x9ff242(0x160)](0x1);else{const {header:_0x5c7b68,response:_0xd35e8f}=_0x52c00d,{status:_0x3e5668,data:_0x2c6af5,error:_0x57427f}=_0xd35e8f;_0x52d7e5+=_0x5c7b68+'\x20#'+_0x3e641a['rEUKQ'](_0x2cd163,0x1)+'\x0a',_0x11800c+=_0x9ff242(0x140)+(_0x3e5668?_0x3e641a['cVCRJ']:_0x3e641a[_0x9ff242(0x1cb)])+'\x0a',_0x4050f1+=_0x9ff242(0x18a)+_0x3e641a[_0x9ff242(0x134)](_0x2c6af5,_0x3e641a['qRUps'])+'\x0a',_0x57427f&&(_0x221657+=_0x3e641a[_0x9ff242(0x1c3)],_0xfd501f+='\x20\x20Message:\x20'+(_0x57427f[_0x9ff242(0x1dd)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x121196+=_0x9ff242(0x1a1)+(_0x57427f[_0x9ff242(0x19f)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x57410e+=_0x9ff242(0x1aa)+(_0x57427f['stack']||_0x3e641a[_0x9ff242(0x17f)])+'\x0a'),_0x5a4759+='\x0a\x0a';}}}function printResponse(_0x1e9748,_0x18474b){const _0x50007a=a17_0x7329e3,_0x2448b6={};_0x2448b6[_0x50007a(0x1c5)]=function(_0x217ea2,_0x131a88){return _0x217ea2!==_0x131a88;},_0x2448b6[_0x50007a(0x1bb)]='TXwgk',_0x2448b6[_0x50007a(0x12c)]='nFdqa';const _0x5801d8=_0x2448b6;logger['info']('['+_0x1e9748+_0x50007a(0x13b)+_0x18474b[_0x50007a(0x142)]+_0x50007a(0x15a)+_0x18474b[_0x50007a(0x14f)]+_0x50007a(0x1bc)+_0x18474b[_0x50007a(0x199)]),_0x18474b[_0x50007a(0x199)]&&(_0x5801d8[_0x50007a(0x1c5)](_0x5801d8[_0x50007a(0x1bb)],_0x5801d8['iRZlu'])?logger['error'](_0x50007a(0x198)+_0x18474b['error'][_0x50007a(0x1f0)]):(_0x1ac11c[_0x50007a(0x1b4)](_0x50007a(0x14d)+_0x7eaa9a[_0x50007a(0x17a)]+'\x20'),_0x12f5c3[_0x50007a(0x1d2)]=_0x208c40[_0x50007a(0x17a)]));}async function generateReport(_0x6deb65,_0x360d91){const _0x4d2e27=a17_0x7329e3,_0x100a05={'fdNLH':function(_0x1e467a,_0x460e4c){return _0x1e467a+_0x460e4c;},'rLtJk':_0x4d2e27(0x1ee),'dmwJs':_0x4d2e27(0x17d),'EMPIw':function(_0x382aea,_0x484a71){return _0x382aea||_0x484a71;},'Yyamw':'N/A','tPVlW':_0x4d2e27(0x1f5),'mlrmN':_0x4d2e27(0x217),'xISkJ':function(_0xa26a5b,_0x3004f2){return _0xa26a5b!=_0x3004f2;},'YIuip':_0x4d2e27(0x1d0),'ONVKY':_0x4d2e27(0x1db),'MsGwk':function(_0x57c726){return _0x57c726();}};let _0x28182f='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x4d2e27(0x1d2)]+'\x20===\x0a\x0a';return _0x6deb65['forEach']((_0x594f9a,_0x5ed7db)=>{const _0x12a3f2=_0x4d2e27,{header:_0x445e2b,response:_0x1fcecb}=_0x594f9a,{status:_0x26a8ea,data:_0xdd9c9f,error:_0x5265eb}=_0x1fcecb;_0x28182f+=_0x445e2b+'\x20#'+_0x100a05[_0x12a3f2(0x1cf)](_0x5ed7db,0x1)+'\x0a',_0x28182f+=_0x12a3f2(0x140)+(_0x26a8ea?_0x100a05[_0x12a3f2(0x20c)]:_0x100a05[_0x12a3f2(0x206)])+'\x0a',_0x28182f+='Message:\x20'+_0x100a05['EMPIw'](_0xdd9c9f,_0x100a05[_0x12a3f2(0x19e)])+'\x0a',_0x5265eb&&(_0x28182f+=_0x100a05[_0x12a3f2(0x1b3)],_0x28182f+='\x20\x20Message:\x20'+(_0x5265eb[_0x12a3f2(0x1dd)]||_0x100a05[_0x12a3f2(0x19e)])+'\x0a',_0x28182f+='\x20\x20Code:\x20'+(_0x5265eb[_0x12a3f2(0x19f)]||_0x100a05['Yyamw'])+'\x0a',_0x28182f+='\x20\x20Stack:\x20'+(_0x5265eb['stack']||_0x100a05[_0x12a3f2(0x19e)])+'\x0a'),_0x28182f+='\x0a\x0a';}),_0x28182f+=_0x100a05['mlrmN'],_0x100a05['xISkJ'](_0x360d91,null)?_0x28182f+=_0x4d2e27(0x175)+global_registry[_0x4d2e27(0x1b6)]+'\x20'+(_0x360d91?_0x100a05[_0x4d2e27(0x171)]:_0x100a05[_0x4d2e27(0x130)])+'\x0a\x0a':_0x28182f+='Cluster\x20'+global_registry[_0x4d2e27(0x1b6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x28182f+=_0x100a05['MsGwk'](getSystemMetaData),_0x28182f;};function a17_0x1545(){const _0x4917e3=['toLowerCase','SSL\x20Configured','ETHjV','qTssy','2|3|0|1|4','MCqOM','pMjha','nhKGT','Success','isTls1_2_SUPPORTED','stack','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WebSocket','LOG','cymke','Error\x20Details:\x0a','join','NKuDg','password','isCliToolInstalled','19914180ylvAHW','fObsz','pre-check-grid-profile-empty','/packages/cli/get-all-grid-profiles','936kYVNAX','body','cjrlh','mmkWm','Browserstack','FVlrP','getUTCHours','grid-profile','dmwJs','AwXvN','EsQjF','EJzQB','drSTN','length','rLtJk','Hklkr','wAQau','sbXbD','got','XXBGi','SJTNK','oYcsw','toolInstalledResp','lPBfR','.txt','Cluster\x20details\x0a-----------------------\x0a','pre-check-failed','yCHDg','RtYJO','region','`\x20is\x20present\x20in\x20region\x20`','NktUH','credential-not-found','sHXyf','debug','aQDjr','../../utils/webSocketUtils','ZWZIZ','MgVkY','SQNdt','Invalid\x20input.\x20grid\x20profiles:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','throwHttpErrors','kIRDZ','3989912QougTv','ENcSs','pre-check-cluster-args-not-passed','pre-check','iRZlu','qCAFd','tmIjn','requestId','ONVKY','\x20\x20Message:\x20','eLLvk','KyegZ','fgslF','xAcPf','XQVOn','`\x20,error\x20:\x20','BPVvz','lusax','bOhzt',']\x20status\x20:\x20','oOXWs','wiCxn','description','NKVEZ','Status:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','status','grid','KabuD','UDNro','Missing\x20required\x20arguments:\x20','connectionTimeout','IDIcr','includes','hSBhb','replace','ERROR','Setting\x20cloud\x20provider\x20as\x20','GET','data','username','Grid\x20profile\x20fetched\x20for\x20pre-check','XrTmk','Report\x20saved\x20in\x20','UMilG','hAawb','N/A','HUVIV','4392888mGQpRf','JRgco','\x20data\x20:\x20','split','bstackAccesskey','options','aVGIh','VSsBA','exit','help','puGwu','oSmmH','sendEventToBackend','BbbJk','usage','uuid','.\x20Please\x20provide\x20all\x20required\x20arguments.','dummy-grid','PXAbA','822480uFYqdF','MZRDx','voUno','cloud-provider-not-supported','984065AgZrhL','dKVJb','YIuip','FFCGZ','builder','https://','Cluster\x20','gridProfile','IfMFV','string','ijrAS','CLOUD_PROVIDER','jFEHF','IMNbV','Failure','argv','qRUps','`\x20already\x20exists','reconnecting-websocket','nZlGK','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YLYZC','getUTCMinutes','2073281eSKKGu','IzfXe','2DCSiko','<PasswordPlaceholder>','Message:\x20','isClusterPresent','stack\x20trace\x20','parse','oyneF','hcMRj','SXiWE','xFuAR','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Whitelisted\x20browserstack','authHeader','bstackUsername','../../cloudproviders/utils','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','error\x20stack\x20:\x20','error','qCLTw','3BNwgFs','lLFdZ','response','Yyamw','code','ayXyX','\x20\x20Code:\x20','init','<UsernamePlaceholder>','../../utils/utilityMethods','pre-check-grid-called','xrjBo','getUTCDate','cPipk','stringify','\x20\x20Stack:\x20','hvamb','getUTCFullYear','iCPix','headers','WWVCO','UapqK','KVkoY','desc','tPVlW','info','cloud-provider','clusterName','epilogue','thiSf','cluster-name','vIwfT','zRnBt','\x20error\x20:\x20','xhqHu','method','AtMAQ','Cluster\x20`','INFO','find','iSmVr','ifXtw','GHrPk','zNvtK','grid\x20profile\x20flow\x20','type','handler','aVEdD','AXwjR','unable\x20to\x20verify\x20if\x20cluster\x20`','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','WqTrE','fdNLH','is\x20already\x20present','9872vgxrTr','cloudProvider','push','rRAOL','cxiHW','pre_check','FdlYj','QKEPJ','fBlrm','User\x20Access','will\x20be\x20created','../../utils/instrumentationUtils','message','Failed\x20in\x20pre-check!\x20Error:\x20','header','clusterRegion','delay','cnAun','utf-8','command','YemlK'];a17_0x1545=function(){return _0x4917e3;};return a17_0x1545();}exports[a17_0x7329e3(0x1c9)]=async function(_0x1e463e){const _0x276b38=a17_0x7329e3,_0x3d7f44={'vIwfT':function(_0x2d70bf){return _0x2d70bf();},'XrTmk':_0x276b38(0x227),'oOXWs':function(_0x4d1bd7,_0x3c4be3,_0x278232,_0x1c84ef,_0x37d3a1,_0x2dcca1,_0x23fbb2,_0x5c4ab9){return _0x4d1bd7(_0x3c4be3,_0x278232,_0x1c84ef,_0x37d3a1,_0x2dcca1,_0x23fbb2,_0x5c4ab9);},'xAcPf':_0x276b38(0x1a5),'BPVvz':_0x276b38(0x21e),'PXAbA':_0x276b38(0x199),'KVkoY':function(_0x597798,_0xf9d476,_0x51a68a,_0x59ddb5,_0x31205f,_0x549659,_0x39ed47){return _0x597798(_0xf9d476,_0x51a68a,_0x59ddb5,_0x31205f,_0x549659,_0x39ed47);},'MsLWo':_0x276b38(0x1a3),'bOhzt':_0x276b38(0x189),'cnAun':function(_0x42428d,_0x583d75,_0x67cb3b){return _0x42428d(_0x583d75,_0x67cb3b);},'SXiWE':_0x276b38(0x169),'aVEdD':_0x276b38(0x214),'zlOZa':_0x276b38(0x1ea),'qTssy':'accessResp','cPipk':function(_0x25936f,_0x2bd26a,_0x3498ef){return _0x25936f(_0x2bd26a,_0x3498ef);},'neKZL':'isTrialGridAccessible','lPBfR':function(_0x17722a,_0x1d4cd0){return _0x17722a(_0x1d4cd0);},'UMilG':'TLSv1_2_client_method','mmkWm':function(_0xfe14a3,_0x102b3c,_0x516f39){return _0xfe14a3(_0x102b3c,_0x516f39);},'PRyXz':_0x276b38(0x1ef),'YpmyH':'Tool\x20Installed','zNvtK':_0x276b38(0x1da),'wiCxn':_0x276b38(0x193),'aQDjr':_0x276b38(0x1e7),'nZlGK':function(_0x2d710b,_0x5bc6b9,_0xd1dfbd){return _0x2d710b(_0x5bc6b9,_0xd1dfbd);},'WWVCO':function(_0x5e0f00,_0x552cda){return _0x5e0f00+_0x552cda;},'ijrAS':_0x276b38(0x1e3),'ENcSs':function(_0x207e83,_0x3042d2,_0x4beb24,_0x145ba8,_0x32e322,_0x37ba8e,_0x29be54){return _0x207e83(_0x3042d2,_0x4beb24,_0x145ba8,_0x32e322,_0x37ba8e,_0x29be54);},'cjrlh':_0x276b38(0x218)};let _0x51d464,_0x766148;try{global_registry[_0x276b38(0x12f)]=_0x3d7f44['vIwfT'](uuidv4);!fs['existsSync'](_0x3d7f44[_0x276b38(0x1ba)](getCredentialsPath))&&(_0x766148=_0x3d7f44[_0x276b38(0x152)],logger[_0x276b38(0x199)](_0x766148),await _0x3d7f44[_0x276b38(0x13c)](reportToGalactusAndSendToEDS,_0x1e463e,_0x51d464,_0x766148,messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x135)],_0x3d7f44[_0x276b38(0x138)],_0x3d7f44[_0x276b38(0x16a)]),process['exit'](0x1));_0x3d7f44[_0x276b38(0x1b1)](sendInstrumentationEvent,_0x1e463e,_0x3d7f44[_0x276b38(0x135)],messageTypes[_0x276b38(0x1c1)],null,null,_0x1e463e);const _0x1fb24a=JSON[_0x276b38(0x18d)](fs['readFileSync'](_0x3d7f44['vIwfT'](getCredentialsPath)));global_registry[_0x276b38(0x195)]=_0x1fb24a[_0x276b38(0x202)][_0x276b38(0x150)],global_registry['bstackAccesskey']=_0x1fb24a['Browserstack'][_0x276b38(0x1f8)];const _0x118e0b=WS_ENDPOINT[_0x276b38(0x14b)](_0x3d7f44['MsLWo'],_0x1fb24a[_0x276b38(0x202)]['username'])[_0x276b38(0x14b)](_0x3d7f44[_0x276b38(0x13a)],_0x1fb24a[_0x276b38(0x202)]['password']),_0x45e87e={};_0x45e87e[_0x276b38(0x1f2)]=ws,_0x45e87e[_0x276b38(0x147)]=0x36ee80,_0x51d464=new ReconnectingWebSocket(_0x118e0b,[],_0x45e87e),global_registry[_0x276b38(0x194)]=_0x3d7f44[_0x276b38(0x1e2)](getAuthHeader,global_registry[_0x276b38(0x195)],global_registry[_0x276b38(0x15c)]),await _0x3d7f44[_0x276b38(0x1e2)](inputValidation,_0x1e463e,_0x51d464),logger[_0x276b38(0x1b4)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x276b38(0x1d2)]+'\x20region\x20-\x20'+global_registry[_0x276b38(0x1e0)]);let _0x31909c=await _0x3d7f44[_0x276b38(0x1b1)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x276b38(0x1b6)],_0x3d7f44[_0x276b38(0x190)],_0x51d464,webSocketUtils,_0x1e463e);const _0x4f7128=await _0x31909c[_0x276b38(0x1f9)]();_0x3d7f44['cnAun'](printResponse,_0x3d7f44[_0x276b38(0x1ca)],_0x4f7128),_0x31909c=await _0x31909c[_0x276b38(0x1a2)]();let _0x31e653=![];try{_0x31e653=await _0x31909c[_0x276b38(0x18b)]();}catch(_0x5cdb90){const _0x2d432c=_0x3d7f44['zlOZa'][_0x276b38(0x15b)]('|');let _0x44d71a=0x0;while(!![]){switch(_0x2d432c[_0x44d71a++]){case'0':logger[_0x276b38(0x199)](_0x766148);continue;case'1':_0x766148+='\x0a'+JSON['stringify'](_0x5cdb90['stack']);continue;case'2':_0x766148=_0x276b38(0x1cc)+global_registry[_0x276b38(0x1b6)]+_0x276b38(0x21c)+global_registry['clusterRegion']+_0x276b38(0x137)+_0x5cdb90;continue;case'3':_0x31e653=null;continue;case'4':await _0x3d7f44[_0x276b38(0x13c)](reportToGalactusAndSendToEDS,_0x1e463e,_0x51d464,_0x766148,messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x135)],'cluster-check-failed-'+global_registry[_0x276b38(0x1d2)],_0x3d7f44['PXAbA']);continue;}break;}}_0x31e653&&logger[_0x276b38(0x1b4)]('Cluster\x20`'+global_registry[_0x276b38(0x1b6)]+'`\x20already\x20exists');const _0x156295=await _0x31909c['checkAccess']();_0x3d7f44[_0x276b38(0x1e2)](printResponse,_0x3d7f44[_0x276b38(0x1e9)],_0x156295);const _0x5895e7=await _0x3d7f44[_0x276b38(0x1ba)](curlRequest);_0x3d7f44[_0x276b38(0x1a8)](printResponse,_0x3d7f44['neKZL'],_0x5895e7);const _0x5784c1=await _0x3d7f44[_0x276b38(0x215)](isTlsSupported,_0x3d7f44[_0x276b38(0x154)]);_0x3d7f44[_0x276b38(0x201)](printResponse,_0x3d7f44['PRyXz'],_0x5784c1);const _0x577db1={};_0x577db1[_0x276b38(0x1df)]=_0x3d7f44['YpmyH'],_0x577db1[_0x276b38(0x19d)]=_0x4f7128;const _0x32bb25={};_0x32bb25[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x1c6)],_0x32bb25[_0x276b38(0x19d)]=_0x156295;const _0x24eeae={};_0x24eeae[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x13d)],_0x24eeae[_0x276b38(0x19d)]=_0x5895e7;const _0x336b00={};_0x336b00[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x221)],_0x336b00[_0x276b38(0x19d)]=_0x5784c1;const _0x74d147=[_0x577db1,_0x32bb25,_0x24eeae,_0x336b00],_0x2ef780=await _0x3d7f44[_0x276b38(0x182)](generateReport,_0x74d147,_0x31e653),_0x267408=new Date(),_0x3f1cdd=_0x267408[_0x276b38(0x1ac)]()+'_'+_0x3d7f44[_0x276b38(0x1af)](_0x267408['getUTCMonth'](),0x1)+'_'+_0x267408[_0x276b38(0x1a7)]()+'_'+_0x267408[_0x276b38(0x204)]()+'_'+_0x267408[_0x276b38(0x185)](),_0xcf4f9a='log/report_'+_0x3f1cdd+_0x276b38(0x216);fs['writeFileSync'](_0xcf4f9a,_0x2ef780,_0x3d7f44[_0x276b38(0x179)]),logger['info'](_0x276b38(0x153)+_0xcf4f9a),process[_0x276b38(0x160)](0x0);}catch(_0x5eeaee){let _0x57b2c3=_0x276b38(0x1de)+_0x5eeaee+'\x20';logger[_0x276b38(0x199)](_0x57b2c3),_0x57b2c3+='\x0a'+JSON[_0x276b38(0x1a9)](_0x5eeaee[_0x276b38(0x1f0)]),logger[_0x276b38(0x220)](_0x276b38(0x18c)+_0x5eeaee[_0x276b38(0x1f0)]);if(_0x51d464){const _0x4eb11c={};_0x4eb11c[_0x276b38(0x1c8)]=WS_EVENTS[_0x276b38(0x1f3)],_0x4eb11c[_0x276b38(0x1dd)]=_0x57b2c3,webSocketUtils[_0x276b38(0x164)](_0x51d464,_0x4eb11c,_0x3d7f44[_0x276b38(0x16a)],!![]);}await webSocketUtils[_0x276b38(0x1e1)](0x7d0);const _0x506569={};_0x506569['error']=_0x57b2c3,await _0x3d7f44[_0x276b38(0x129)](sendInstrumentationEvent,_0x1e463e,_0x3d7f44[_0x276b38(0x135)],messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x200)],_0x506569,_0x1e463e),process[_0x276b38(0x160)](0x1);}};
|
|
1
|
+
const a17_0x5e65ac=a17_0x217a;function a17_0x1344(){const _0x34113e=['`\x20already\x20exists','KtjTI','Missing\x20required\x20arguments:\x20','302660tZTANu','sTOhH','tKlXL','MGnGm','header','message','parse','LYRZx','SjCCp','error','htQqS','`\x20,error\x20:\x20','Zpgsw','48sOiwbf','XgYgO','method','data','QCfIa','error\x20stack\x20:\x20','pre_check','push','status','tkkPx','isTls1_2_SUPPORTED','qaJLC','GClxX','Status:\x20','ubdmR','kXeyS','command','utf-8','clusterRegion','\x20\x20Code:\x20','requestId','region','rwELw','usage','../../utils/webSocketUtils','Browserstack','options','HEIym','ScKZi','UlqZQ','lZKPo','uKyTa','CLOUD_PROVIDER','===\x20Precheck\x20Report\x20-\x20','<PasswordPlaceholder>','../../config/constants','unTlq','JqwNR','../../utils/utilityMethods','getUTCMinutes','string','ERhTi','response','dPxXN','OVuzL','SSL\x20Configured','ZTFuO','cluster-check-failed-','getUTCMonth','GiRSb','136388lJAFnR','118143gXllvP','replace','split','throwHttpErrors','User\x20Access','yUemW','stack\x20trace\x20','nrQlj','Pre-check\x20running\x20for\x20Cloud\x20-\x20','cloudProvider','cloud-provider','qPoSR','wEZuA','PsVzx','QasiA','grid','1016092noptIA','uhHtc','delay','getUTCHours','1220118eTMEhC','voeRi',']\x20status\x20:\x20','pre-check-cluster-args-not-passed','QhwkS','exit','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OUuLL','GeqLi','gpzxx','sendEventToBackend','pre-check-grid-called','../../utils/instrumentationUtils','ZZbnG','getUTCFullYear','VHlSY','connectionTimeout','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','GQZlC','builder','zroYR','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WaHAJ','.\x20Please\x20provide\x20all\x20required\x20arguments.','debug','unable\x20to\x20verify\x20if\x20cluster\x20`','isCliToolInstalled','WebSocket','username','cGgfS','eejCA','name','log/report_','BSkzG','qrdNW','TXSvy','bstackAccesskey','ixqTw','oKrtu','Cluster\x20details\x0a-----------------------\x0a','MDxSn','AEvMp','Cluster\x20`','Yxqss','RrqhS','stringify','TMSeg','cuxYG','ZWglR','desc','LcCUs','UGXJb','accessResp','hLqkk','UgJLZ','stack','dsYwg','../../cloudproviders/utils','authHeader','Setting\x20cloud\x20provider\x20as\x20','MxdFG','10015ULidit','getUTCDate','EXTYe','CDDde','yADTC','LLbLN','includes','vjoJP','Whitelisted\x20browserstack','argv','BRagE','cSjcR','rxCKT','pre-check-failed','3QwrfLX','Invalid\x20input.\x20grid\x20profiles:\x20','epilogue','dITqF','880EPglWm','dOMRE','yyqgl','gqYHb','\x20\x20Stack:\x20','seQYc','fxlIK','clusterName','epFWF','grid-profile','1739880ImOhKG','bstackUsername','is\x20already\x20present','<UsernamePlaceholder>','pre-check','\x20===\x0a\x0a','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','MLDGb','uoKOU','join','aKSUn','eqnlo','ZEpPj','ezYBt','iZaTV','toolInstalledResp','wjKAI','BcAOj','DxOXm','N/A','PcnyS','pre-check-grid-profile-empty','wFjnF','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','.txt','writeFileSync','CiICt','TMEdm','Message:\x20','will\x20be\x20created','xlLDe','forEach','Success','guZsQ','eWOcF','awcbF','grfnE','TLSv1_2_client_method','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','faDni','ERROR','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Failure','LOG','Cluster\x20','Error\x20Details:\x0a','hawix','help','kWYTM','info','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OwcJD','toLowerCase','cluster-name','gridProfile','AIAZt','Tdziv','BrOSk','description','type','BwKPp','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','TYBgX','\x20error\x20:\x20','lFJBN','ZxkJT','\x20region\x20-\x20','WqIpu','\x20\x20Message:\x20','Hadro','tEhDx'];a17_0x1344=function(){return _0x34113e;};return a17_0x1344();}(function(_0x39ae5f,_0x344102){const _0x4bf24a=a17_0x217a,_0x2ec4b7=_0x39ae5f();while(!![]){try{const _0x312783=-parseInt(_0x4bf24a(0x1d8))/0x1+parseInt(_0x4bf24a(0x290))/0x2*(-parseInt(_0x4bf24a(0x238))/0x3)+-parseInt(_0x4bf24a(0x23c))/0x4*(-parseInt(_0x4bf24a(0x22a))/0x5)+parseInt(_0x4bf24a(0x1ed))/0x6+-parseInt(_0x4bf24a(0x1e9))/0x7+parseInt(_0x4bf24a(0x29d))/0x8*(-parseInt(_0x4bf24a(0x1d9))/0x9)+parseInt(_0x4bf24a(0x246))/0xa;if(_0x312783===_0x344102)break;else _0x2ec4b7['push'](_0x2ec4b7['shift']());}catch(_0x15c92b){_0x2ec4b7['push'](_0x2ec4b7['shift']());}}}(a17_0x1344,0x4acbd));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5e65ac(0x1cc)),{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_0x5e65ac(0x1c9)),{getCloudProviderObjectWithOutInit}=require(a17_0x5e65ac(0x226)),webSocketUtils=require(a17_0x5e65ac(0x1be)),{sendInstrumentationEvent}=require(a17_0x5e65ac(0x1f9));exports[a17_0x5e65ac(0x1b6)]=a17_0x5e65ac(0x1e8),exports[a17_0x5e65ac(0x21e)]=a17_0x5e65ac(0x24c),exports[a17_0x5e65ac(0x200)]=function(_0x3b6bfc){const _0x4c20ed=a17_0x5e65ac,_0x97e6e2={};_0x97e6e2[_0x4c20ed(0x213)]=_0x4c20ed(0x1f3),_0x97e6e2[_0x4c20ed(0x292)]=_0x4c20ed(0x1ce),_0x97e6e2['BcAOj']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x97e6e2[_0x4c20ed(0x2a8)]=_0x4c20ed(0x26f),_0x97e6e2[_0x4c20ed(0x256)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x97e6e2['MGnGm']=_0x4c20ed(0x275);const _0x58e8ae=_0x97e6e2,_0x45db81={};_0x45db81[_0x4c20ed(0x280)]=_0x58e8ae[_0x4c20ed(0x213)],_0x45db81['type']=_0x58e8ae['tKlXL'];const _0x14db19={};_0x14db19['description']=_0x58e8ae[_0x4c20ed(0x257)],_0x14db19['type']=_0x58e8ae[_0x4c20ed(0x292)];const _0x53af3e={};_0x53af3e[_0x4c20ed(0x280)]=_0x58e8ae[_0x4c20ed(0x2a8)],_0x53af3e[_0x4c20ed(0x281)]=_0x58e8ae[_0x4c20ed(0x292)];const _0x40f3d6={};_0x40f3d6[_0x4c20ed(0x280)]=_0x58e8ae[_0x4c20ed(0x256)],_0x40f3d6[_0x4c20ed(0x281)]=_0x58e8ae[_0x4c20ed(0x292)];const _0x5db068={};return _0x5db068[_0x4c20ed(0x27b)]=_0x45db81,_0x5db068[_0x4c20ed(0x1e3)]=_0x14db19,_0x5db068['region']=_0x53af3e,_0x5db068['grid-profile']=_0x40f3d6,_0x3b6bfc[_0x4c20ed(0x1bd)](HELP_HEADER_MESSAGE[_0x4c20ed(0x2a3)])[_0x4c20ed(0x23a)](HELP_FOOTER_MESSAGE)[_0x4c20ed(0x1c0)](_0x5db068)[_0x4c20ed(0x275)](_0x58e8ae[_0x4c20ed(0x293)])[_0x4c20ed(0x233)];};async function inputValidation(_0x2d4718,_0x2ce5b2){const _0x3a5ff2=a17_0x5e65ac,_0x816f1a={'kjjyW':function(_0x2d19ca,_0x41449b){return _0x2d19ca+_0x41449b;},'Zpgsw':_0x3a5ff2(0x266),'lZKPo':_0x3a5ff2(0x270),'iZaTV':function(_0x27f2f6,_0x24c6ea){return _0x27f2f6||_0x24c6ea;},'PsVzx':_0x3a5ff2(0x259),'Hadro':_0x3a5ff2(0x273),'tkkPx':_0x3a5ff2(0x299),'BrOSk':_0x3a5ff2(0x1bb),'sTOhH':'cloud-provider','tyiYK':_0x3a5ff2(0x1f3),'GClxX':_0x3a5ff2(0x1ce),'uvFlb':_0x3a5ff2(0x283),'BwKPp':_0x3a5ff2(0x26f),'SjCCp':_0x3a5ff2(0x202),'Tdziv':_0x3a5ff2(0x275),'nrQlj':_0x3a5ff2(0x27b),'UlqSO':_0x3a5ff2(0x248),'ZxkJT':_0x3a5ff2(0x263),'UcpFd':function(_0x2cfbee,_0x2eda36){return _0x2cfbee!==_0x2eda36;},'xlLDe':_0x3a5ff2(0x274),'uhHtc':function(_0xc5d043,_0x16c276){return _0xc5d043===_0x16c276;},'Yxqss':_0x3a5ff2(0x26a),'LmlDI':_0x3a5ff2(0x297),'UgJLZ':_0x3a5ff2(0x203),'VHlSY':function(_0x19d501,_0x2d1b34){return _0x19d501!==_0x2d1b34;},'hLqkk':'ZjLpf','LLbLN':'nbHYZ','rwELw':_0x3a5ff2(0x25c),'gtEFz':function(_0x5e438b,_0x3091f4){return _0x5e438b>_0x3091f4;},'aKSUn':function(_0x3fc54b,_0x312907){return _0x3fc54b===_0x312907;},'eqnlo':'AlLNy','OwcJD':_0x3a5ff2(0x212),'guZsQ':function(_0x1c648a,_0x5d5394,_0x40bac0,_0x58ca2a,_0x5eb3b1,_0x4a2f33,_0x5195c5,_0x199de3){return _0x1c648a(_0x5d5394,_0x40bac0,_0x58ca2a,_0x5eb3b1,_0x4a2f33,_0x5195c5,_0x199de3);},'faDni':_0x3a5ff2(0x1f8),'uKyTa':_0x3a5ff2(0x1f0),'cGgfS':function(_0x471189,_0x5afdf7){return _0x471189===_0x5afdf7;},'uoKOU':_0x3a5ff2(0x1ff),'GeqLi':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','dITqF':function(_0x5101c6,_0x42cc65,_0x2f3a45,_0x5b7d33,_0x4cb93c,_0x8e4637,_0xce1b62,_0x426dea){return _0x5101c6(_0x42cc65,_0x2f3a45,_0x5b7d33,_0x4cb93c,_0x8e4637,_0xce1b62,_0x426dea);},'KBHod':'cloud-provider-not-supported','TXSvy':_0x3a5ff2(0x242),'xjGWr':'SbuZF','kXeyS':_0x3a5ff2(0x20b),'yADTC':'GET','UlqZQ':function(_0x51cea8,_0x4629e1,_0x4309ab){return _0x51cea8(_0x4629e1,_0x4309ab);},'UGXJb':function(_0x18b4a1,_0x2e904b,_0x5437ac,_0x53e522,_0x4e93b,_0x463697){return _0x18b4a1(_0x2e904b,_0x5437ac,_0x53e522,_0x4e93b,_0x463697);},'MLDGb':_0x3a5ff2(0x24a),'dsYwg':_0x3a5ff2(0x245),'wEZuA':function(_0x2773e3,_0x16b125){return _0x2773e3===_0x16b125;},'CiICt':'MHNOC','gyslQ':_0x3a5ff2(0x1e4),'BRagE':function(_0x4fce8f,_0xfb7df9){return _0x4fce8f(_0xfb7df9);},'ZTFuO':_0x3a5ff2(0x216),'lFJBN':_0x3a5ff2(0x21f),'OVuzL':_0x3a5ff2(0x25b),'RluQp':function(_0xc6c2c9,_0x4985d1){return _0xc6c2c9!==_0x4985d1;},'ERhTi':_0x3a5ff2(0x231),'MxdFG':function(_0x462d33,_0x40fbcf){return _0x462d33===_0x40fbcf;},'DxOXm':_0x3a5ff2(0x284),'htQqS':'DnKLG','UtBLe':'Grid\x20profile\x20fetched\x20for\x20pre-check','cuxYG':_0x3a5ff2(0x252),'QCfIa':_0x3a5ff2(0x26c),'OUuLL':function(_0x2c720b,_0x405008){return _0x2c720b!==_0x405008;},'KtjTI':_0x3a5ff2(0x1f1),'HEIym':'aFJFH'};let _0x4d0db6;try{if(_0x816f1a['UcpFd'](_0x816f1a['xlLDe'],_0x816f1a[_0x3a5ff2(0x264)])){const {header:_0x2fdf56,response:_0xa8d520}=_0x12f676,{status:_0x3693ac,data:_0x3441af,error:_0x2b7110}=_0xa8d520;_0x3a248e+=_0x2fdf56+'\x20#'+_0x816f1a['kjjyW'](_0x3cf6c6,0x1)+'\x0a',_0x2a57d4+=_0x3a5ff2(0x2aa)+(_0x3693ac?_0x816f1a[_0x3a5ff2(0x29c)]:_0x816f1a[_0x3a5ff2(0x1c4)])+'\x0a',_0x493d57+=_0x3a5ff2(0x262)+_0x816f1a[_0x3a5ff2(0x254)](_0x3441af,_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x2b7110&&(_0x32c09f+=_0x816f1a['Hadro'],_0x3c1796+=_0x3a5ff2(0x28a)+(_0x2b7110[_0x3a5ff2(0x295)]||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x142adf+=_0x3a5ff2(0x1b9)+(_0x2b7110['code']||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x56ea63+=_0x3a5ff2(0x240)+(_0x2b7110[_0x3a5ff2(0x224)]||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a'),_0x2b2ad5+='\x0a\x0a';}else{if(_0x2d4718[_0x3a5ff2(0x243)]||_0x2d4718[_0x3a5ff2(0x1e2)]||_0x2d4718[_0x3a5ff2(0x1bb)]){if(_0x816f1a[_0x3a5ff2(0x1ea)](_0x816f1a[_0x3a5ff2(0x218)],_0x816f1a['LmlDI'])){const _0x4ee45a={};_0x4ee45a[_0x3a5ff2(0x281)]=_0x2a022f[_0x3a5ff2(0x271)],_0x4ee45a['message']=_0x2ae103,_0x5b1bb2['sendEventToBackend'](_0x31a36d,_0x4ee45a,_0x816f1a[_0x3a5ff2(0x2a6)],!![]);}else{const _0x244158=[];!_0x2d4718['clusterName']&&(_0x816f1a[_0x3a5ff2(0x1ea)](_0x816f1a['UgJLZ'],_0x816f1a[_0x3a5ff2(0x223)])?_0x244158[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x1e0)]):_0x38771f=_0x9229bc);;!_0x2d4718[_0x3a5ff2(0x1e2)]&&(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x222)],_0x816f1a['hLqkk'])?_0x218465[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x27f)]):_0x244158[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x291)]));;!_0x2d4718[_0x3a5ff2(0x1bb)]&&(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x22f)],_0x816f1a[_0x3a5ff2(0x1bc)])?_0x244158[_0x3a5ff2(0x2a4)](_0x816f1a['BrOSk']):(_0xfd5c80+=_0x816f1a[_0x3a5ff2(0x28b)],_0x2d8342+=_0x3a5ff2(0x28a)+(_0x4ad143['message']||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x3d7302+=_0x3a5ff2(0x1b9)+(_0x4c8057['code']||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a',_0x1fc2b3+='\x20\x20Stack:\x20'+(_0x4bef2f[_0x3a5ff2(0x224)]||_0x816f1a[_0x3a5ff2(0x1e6)])+'\x0a'));;_0x816f1a['gtEFz'](_0x244158['length'],0x0)&&(_0x816f1a[_0x3a5ff2(0x250)](_0x816f1a[_0x3a5ff2(0x251)],_0x816f1a[_0x3a5ff2(0x279)])?_0x75aca6+=_0x3a5ff2(0x272)+_0x23195b[_0x3a5ff2(0x243)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x4d0db6=_0x3a5ff2(0x28f)+_0x244158[_0x3a5ff2(0x24f)](',\x20')+_0x3a5ff2(0x204),await _0x816f1a[_0x3a5ff2(0x267)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a['faDni'],_0x816f1a[_0x3a5ff2(0x1c5)],_0x816f1a[_0x3a5ff2(0x2a6)]),logger[_0x3a5ff2(0x299)](_0x4d0db6),process[_0x3a5ff2(0x1f2)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a5ff2(0x230)](_0x2d4718[_0x3a5ff2(0x1e2)][_0x3a5ff2(0x27a)]())&&(_0x816f1a[_0x3a5ff2(0x20a)](_0x816f1a[_0x3a5ff2(0x24e)],_0x816f1a[_0x3a5ff2(0x24e)])?(_0x4d0db6=_0x816f1a[_0x3a5ff2(0x1f5)],await _0x816f1a[_0x3a5ff2(0x23b)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a['faDni'],_0x816f1a['KBHod'],_0x816f1a[_0x3a5ff2(0x2a6)]),logger[_0x3a5ff2(0x299)](_0x4d0db6),!_0x2d4718[_0x3a5ff2(0x1e2)]&&(_0x816f1a['aKSUn'](_0x816f1a['TXSvy'],_0x816f1a[_0x3a5ff2(0x210)])?(logger[_0x3a5ff2(0x277)](_0x3a5ff2(0x228)+DEFAULT_CLUSTER_DETAILS[_0x3a5ff2(0x1c6)]+'\x20'),_0x2d4718[_0x3a5ff2(0x1e2)]=DEFAULT_CLUSTER_DETAILS[_0x3a5ff2(0x1c6)]):_0x315ea3[_0x3a5ff2(0x299)](_0x3a5ff2(0x2a2)+_0x23ea9a[_0x3a5ff2(0x299)]['stack']))):_0x507747[_0x3a5ff2(0x2a4)](_0x816f1a[_0x3a5ff2(0x291)])),global_registry[_0x3a5ff2(0x243)]=_0x2d4718['clusterName'],global_registry[_0x3a5ff2(0x1e2)]=_0x2d4718[_0x3a5ff2(0x1e2)],global_registry['clusterRegion']=_0x2d4718[_0x3a5ff2(0x1bb)];}}else{if(_0x2d4718[_0x3a5ff2(0x27c)]){if(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a['xjGWr'],_0x816f1a[_0x3a5ff2(0x1b5)])){global_registry[_0x3a5ff2(0x27c)]=_0x2d4718[_0x3a5ff2(0x27c)],logger[_0x3a5ff2(0x205)]('grid\x20profile\x20flow\x20'+_0x2d4718[_0x3a5ff2(0x27c)]);const _0x2d7a3d='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x49a428={};_0x49a428[_0x3a5ff2(0x29f)]=_0x816f1a[_0x3a5ff2(0x22e)],_0x49a428['headers']=global_registry[_0x3a5ff2(0x227)],_0x49a428[_0x3a5ff2(0x1dc)]=![];const _0x621fea=_0x49a428,_0x28ca36=await _0x816f1a[_0x3a5ff2(0x1c3)](got,_0x2d7a3d,_0x621fea),_0x3a2d49=await _0x816f1a[_0x3a5ff2(0x220)](responseValidation,_0x28ca36,_0x816f1a[_0x3a5ff2(0x24d)],_0x816f1a[_0x3a5ff2(0x225)],_0x2d4718,_0x2ce5b2);let _0x1bebbd={};if(_0x816f1a[_0x3a5ff2(0x1e5)](_0x3a2d49,0xc8)){if(_0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x260)],_0x816f1a['gyslQ'])){const _0x2df260=JSON[_0x3a5ff2(0x296)](_0x28ca36['body']),_0x864715=_0x2df260['find'](_0xeae36c=>_0xeae36c[_0x3a5ff2(0x20c)]===_0x2d4718['gridProfile'])||null;if(_0x816f1a[_0x3a5ff2(0x234)](isUndefined,_0x864715)){if(_0x816f1a['aKSUn'](_0x816f1a[_0x3a5ff2(0x1d4)],_0x816f1a[_0x3a5ff2(0x286)])){const _0x218d98={};_0x218d98['description']=_0x816f1a['tyiYK'],_0x218d98[_0x3a5ff2(0x281)]=_0x816f1a['GClxX'];const _0x1da575={};_0x1da575[_0x3a5ff2(0x280)]=_0x816f1a['uvFlb'],_0x1da575[_0x3a5ff2(0x281)]=_0x816f1a[_0x3a5ff2(0x2a9)];const _0x215425={};_0x215425[_0x3a5ff2(0x280)]=_0x816f1a[_0x3a5ff2(0x282)],_0x215425['type']=_0x816f1a[_0x3a5ff2(0x2a9)];const _0x5b8258={};_0x5b8258['description']=_0x816f1a[_0x3a5ff2(0x298)],_0x5b8258[_0x3a5ff2(0x281)]=_0x816f1a[_0x3a5ff2(0x2a9)];const _0x9018e6={};return _0x9018e6['cluster-name']=_0x218d98,_0x9018e6[_0x3a5ff2(0x1e3)]=_0x1da575,_0x9018e6[_0x3a5ff2(0x1bb)]=_0x215425,_0x9018e6[_0x3a5ff2(0x245)]=_0x5b8258,_0x93d759['usage'](_0x59c3c4[_0x3a5ff2(0x2a3)])[_0x3a5ff2(0x23a)](_0x44abee)['options'](_0x9018e6)[_0x3a5ff2(0x275)](_0x816f1a[_0x3a5ff2(0x27e)])[_0x3a5ff2(0x233)];}else _0x4d0db6=_0x3a5ff2(0x239)+_0x2d4718[_0x3a5ff2(0x27c)]+_0x3a5ff2(0x1fe),await _0x816f1a[_0x3a5ff2(0x267)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a[_0x3a5ff2(0x26d)],_0x816f1a[_0x3a5ff2(0x1d2)],_0x816f1a['tkkPx']),logger[_0x3a5ff2(0x299)](_0x4d0db6),process[_0x3a5ff2(0x1f2)](0x1);}else _0x816f1a['RluQp'](_0x816f1a[_0x3a5ff2(0x1cf)],_0x816f1a[_0x3a5ff2(0x1cf)])?_0x32b9b3[_0x3a5ff2(0x277)](_0x3a5ff2(0x217)+_0x403642['clusterName']+_0x3a5ff2(0x28d)):_0x1bebbd=_0x864715;}else _0x42ecd7[_0x3a5ff2(0x1f2)](0x1);}else _0x816f1a[_0x3a5ff2(0x229)](_0x816f1a[_0x3a5ff2(0x258)],_0x816f1a[_0x3a5ff2(0x29a)])?_0x2a8e46[_0x3a5ff2(0x2a4)](_0x816f1a['nrQlj']):process[_0x3a5ff2(0x1f2)](0x1);const _0x1fa9b9={};_0x1fa9b9[_0x3a5ff2(0x281)]=WS_EVENTS[_0x3a5ff2(0x271)],_0x1fa9b9[_0x3a5ff2(0x295)]=_0x816f1a['UtBLe'],webSocketUtils[_0x3a5ff2(0x1f7)](_0x2ce5b2,_0x1fa9b9),global_registry['cloudProvider']=_0x1bebbd[_0x3a5ff2(0x1e2)],global_registry['clusterRegion']=_0x1bebbd[_0x3a5ff2(0x1bb)],global_registry[_0x3a5ff2(0x243)]=_0x1bebbd[_0x3a5ff2(0x243)];}else _0x259b98+=_0x3a5ff2(0x272)+_0x3588fa[_0x3a5ff2(0x243)]+'\x20'+(_0x9eed45?_0x816f1a['UlqSO']:_0x816f1a[_0x3a5ff2(0x287)])+'\x0a\x0a';}else _0x816f1a[_0x3a5ff2(0x1fc)](_0x816f1a[_0x3a5ff2(0x21c)],_0x816f1a[_0x3a5ff2(0x21c)])?(_0x23ef5d[_0x3a5ff2(0x277)](_0x3a5ff2(0x228)+_0x3a453b[_0x3a5ff2(0x1c6)]+'\x20'),_0x418d30[_0x3a5ff2(0x1e2)]=_0x26ad35[_0x3a5ff2(0x1c6)]):(logger[_0x3a5ff2(0x299)](_0x816f1a[_0x3a5ff2(0x2a1)]),process[_0x3a5ff2(0x1f2)](0x1));}}}catch(_0x13a8f4){_0x816f1a[_0x3a5ff2(0x1f4)](_0x816f1a[_0x3a5ff2(0x28e)],_0x816f1a[_0x3a5ff2(0x1c1)])?(_0x4d0db6=_0x3a5ff2(0x25d)+_0x13a8f4+':\x20'+_0x13a8f4['stack'],logger[_0x3a5ff2(0x299)](_0x4d0db6),await _0x816f1a[_0x3a5ff2(0x23b)](reportToGalactusAndSendToEDS,_0x2d4718,_0x2ce5b2,_0x4d0db6,messageTypes[_0x3a5ff2(0x26e)],_0x816f1a[_0x3a5ff2(0x26d)],_0x816f1a['KBHod'],_0x816f1a[_0x3a5ff2(0x2a6)]),process[_0x3a5ff2(0x1f2)](0x1)):(_0x525c17[_0x3a5ff2(0x277)]('['+_0x30a1ad+_0x3a5ff2(0x1ef)+_0xb18289[_0x3a5ff2(0x2a5)]+'\x20data\x20:\x20'+_0x30dbf9[_0x3a5ff2(0x2a0)]+_0x3a5ff2(0x285)+_0x7109b6[_0x3a5ff2(0x299)]),_0x29cdb7[_0x3a5ff2(0x299)]&&_0x7aafcb[_0x3a5ff2(0x299)](_0x3a5ff2(0x2a2)+_0x3911eb[_0x3a5ff2(0x299)][_0x3a5ff2(0x224)]));}}function printResponse(_0x3a992c,_0x4a43d2){const _0x5dc93d=a17_0x5e65ac,_0x4581c2={};_0x4581c2[_0x5dc93d(0x28c)]=_0x5dc93d(0x26c),_0x4581c2['BYjUF']=function(_0x4bbe5e,_0x4d66ef){return _0x4bbe5e===_0x4d66ef;},_0x4581c2['qrdNW']=_0x5dc93d(0x22c);const _0x485459=_0x4581c2;logger[_0x5dc93d(0x277)]('['+_0x3a992c+_0x5dc93d(0x1ef)+_0x4a43d2[_0x5dc93d(0x2a5)]+'\x20data\x20:\x20'+_0x4a43d2['data']+_0x5dc93d(0x285)+_0x4a43d2[_0x5dc93d(0x299)]),_0x4a43d2['error']&&(_0x485459['BYjUF'](_0x485459[_0x5dc93d(0x20f)],_0x485459[_0x5dc93d(0x20f)])?logger[_0x5dc93d(0x299)]('error\x20stack\x20:\x20'+_0x4a43d2['error'][_0x5dc93d(0x224)]):(_0x43dc62[_0x5dc93d(0x299)](_0x485459['tEhDx']),_0x5fa6fe[_0x5dc93d(0x1f2)](0x1)));}function a17_0x217a(_0x93bb1e,_0x5a2aad){const _0x13449b=a17_0x1344();return a17_0x217a=function(_0x217a9e,_0x52b31f){_0x217a9e=_0x217a9e-0x1b4;let _0x5d6238=_0x13449b[_0x217a9e];return _0x5d6238;},a17_0x217a(_0x93bb1e,_0x5a2aad);}async function generateReport(_0xf155fa,_0x180021){const _0x4d78c8=a17_0x5e65ac,_0x2a7672={'cSjcR':function(_0x1cdbd,_0x4c67a6){return _0x1cdbd+_0x4c67a6;},'voeRi':_0x4d78c8(0x266),'tettY':_0x4d78c8(0x270),'dOMRE':function(_0x4a90da,_0x24cf3a){return _0x4a90da||_0x24cf3a;},'MDxSn':_0x4d78c8(0x259),'gpzxx':_0x4d78c8(0x273),'ScKZi':_0x4d78c8(0x214),'itiDI':function(_0x5b5185,_0xb359c6){return _0x5b5185!=_0xb359c6;},'BSkzG':'is\x20already\x20present','ptgkT':_0x4d78c8(0x263),'yUemW':function(_0x9aab2a){return _0x9aab2a();}};let _0x57f120=_0x4d78c8(0x1c7)+global_registry['cloudProvider']+_0x4d78c8(0x24b);return _0xf155fa[_0x4d78c8(0x265)]((_0x1d76b0,_0x54ebd5)=>{const _0x4c2808=_0x4d78c8,{header:_0x1e9b85,response:_0x7d4cc7}=_0x1d76b0,{status:_0x1eb3ae,data:_0x181e06,error:_0x10261a}=_0x7d4cc7;_0x57f120+=_0x1e9b85+'\x20#'+_0x2a7672[_0x4c2808(0x235)](_0x54ebd5,0x1)+'\x0a',_0x57f120+=_0x4c2808(0x2aa)+(_0x1eb3ae?_0x2a7672[_0x4c2808(0x1ee)]:_0x2a7672['tettY'])+'\x0a',_0x57f120+=_0x4c2808(0x262)+_0x2a7672[_0x4c2808(0x23d)](_0x181e06,_0x2a7672[_0x4c2808(0x215)])+'\x0a',_0x10261a&&(_0x57f120+=_0x2a7672[_0x4c2808(0x1f6)],_0x57f120+=_0x4c2808(0x28a)+(_0x10261a[_0x4c2808(0x295)]||_0x2a7672['MDxSn'])+'\x0a',_0x57f120+=_0x4c2808(0x1b9)+(_0x10261a['code']||_0x2a7672[_0x4c2808(0x215)])+'\x0a',_0x57f120+=_0x4c2808(0x240)+(_0x10261a[_0x4c2808(0x224)]||_0x2a7672[_0x4c2808(0x215)])+'\x0a'),_0x57f120+='\x0a\x0a';}),_0x57f120+=_0x2a7672[_0x4d78c8(0x1c2)],_0x2a7672['itiDI'](_0x180021,null)?_0x57f120+=_0x4d78c8(0x272)+global_registry[_0x4d78c8(0x243)]+'\x20'+(_0x180021?_0x2a7672[_0x4d78c8(0x20e)]:_0x2a7672['ptgkT'])+'\x0a\x0a':_0x57f120+=_0x4d78c8(0x272)+global_registry[_0x4d78c8(0x243)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x57f120+=_0x2a7672[_0x4d78c8(0x1de)](getSystemMetaData),_0x57f120;};exports['handler']=async function(_0x4d71dd){const _0x73e54a=a17_0x5e65ac,_0x12ccb1={'epFWF':function(_0x523471){return _0x523471();},'GiRSb':function(_0x529ad2){return _0x529ad2();},'TMSeg':_0x73e54a(0x278),'yyqgl':function(_0x15df3e,_0x2621a7,_0x3ff9a2,_0x2cbb82,_0x276767,_0x3a3073,_0x1a1d67,_0x32fe3c){return _0x15df3e(_0x2621a7,_0x3ff9a2,_0x2cbb82,_0x276767,_0x3a3073,_0x1a1d67,_0x32fe3c);},'CDDde':_0x73e54a(0x1f8),'ZWglR':'credential-not-found','awcbF':_0x73e54a(0x299),'mfOZK':function(_0x5499b1,_0x528697,_0x533922,_0x1b1bdc,_0x11db58,_0x18fa63,_0x339af5){return _0x5499b1(_0x528697,_0x533922,_0x1b1bdc,_0x11db58,_0x18fa63,_0x339af5);},'rxCKT':function(_0x4409e3){return _0x4409e3();},'unTlq':_0x73e54a(0x249),'XgYgO':_0x73e54a(0x1c8),'RrqhS':function(_0x2b2415,_0x4e2b91,_0x3fa53f){return _0x2b2415(_0x4e2b91,_0x3fa53f);},'dPxXN':'dummy-grid','QasiA':function(_0x465c89,_0x3a6a8b,_0x55c8b0){return _0x465c89(_0x3a6a8b,_0x55c8b0);},'kWYTM':_0x73e54a(0x255),'ZZbnG':'3|4|1|2|0','JqwNR':function(_0xbb12da,_0x53c901,_0x40b7a6,_0xa58dd4,_0x39f92a,_0x204e6c,_0x2387e1,_0x43bce4){return _0xbb12da(_0x53c901,_0x40b7a6,_0xa58dd4,_0x39f92a,_0x204e6c,_0x2387e1,_0x43bce4);},'TMEdm':_0x73e54a(0x221),'KMAnw':function(_0x30e4d7,_0x315b03,_0x2c04a9){return _0x30e4d7(_0x315b03,_0x2c04a9);},'seQYc':'isTrialGridAccessible','AIAZt':function(_0x27fed6,_0x1d5b9b){return _0x27fed6(_0x1d5b9b);},'zroYR':_0x73e54a(0x26b),'YsXWG':_0x73e54a(0x2a7),'eWOcF':'Tool\x20Installed','ZMVxR':_0x73e54a(0x1dd),'XoufC':_0x73e54a(0x232),'paXff':_0x73e54a(0x1d3),'WqIpu':function(_0x3b444c,_0x19a0bc,_0x53ab4d){return _0x3b444c(_0x19a0bc,_0x53ab4d);},'gqYHb':function(_0x9cd15b,_0x757580){return _0x9cd15b+_0x757580;},'PcnyS':_0x73e54a(0x1b7),'ubdmR':function(_0x2e8201,_0x39f723,_0x173aef,_0x44136a,_0x58d017,_0x227d7e,_0x10add4){return _0x2e8201(_0x39f723,_0x173aef,_0x44136a,_0x58d017,_0x227d7e,_0x10add4);},'ezYBt':_0x73e54a(0x237)};let _0x31a73,_0x41b428;try{global_registry[_0x73e54a(0x1ba)]=_0x12ccb1[_0x73e54a(0x244)](uuidv4);!fs['existsSync'](_0x12ccb1[_0x73e54a(0x1d7)](getCredentialsPath))&&(_0x41b428=_0x12ccb1[_0x73e54a(0x21b)],logger['error'](_0x41b428),await _0x12ccb1[_0x73e54a(0x23e)](reportToGalactusAndSendToEDS,_0x4d71dd,_0x31a73,_0x41b428,messageTypes['ERROR'],_0x12ccb1[_0x73e54a(0x22d)],_0x12ccb1[_0x73e54a(0x21d)],_0x12ccb1[_0x73e54a(0x269)]),process[_0x73e54a(0x1f2)](0x1));_0x12ccb1['mfOZK'](sendInstrumentationEvent,_0x4d71dd,_0x12ccb1[_0x73e54a(0x22d)],messageTypes['INFO'],null,null,_0x4d71dd);const _0x50ee86=JSON[_0x73e54a(0x296)](fs['readFileSync'](_0x12ccb1[_0x73e54a(0x236)](getCredentialsPath)));global_registry[_0x73e54a(0x247)]=_0x50ee86[_0x73e54a(0x1bf)][_0x73e54a(0x209)],global_registry[_0x73e54a(0x211)]=_0x50ee86['Browserstack']['password'];const _0xe42b16=WS_ENDPOINT['replace'](_0x12ccb1[_0x73e54a(0x1ca)],_0x50ee86['Browserstack'][_0x73e54a(0x209)])[_0x73e54a(0x1da)](_0x12ccb1[_0x73e54a(0x29e)],_0x50ee86[_0x73e54a(0x1bf)]['password']),_0x5ab74d={};_0x5ab74d[_0x73e54a(0x208)]=ws,_0x5ab74d[_0x73e54a(0x1fd)]=0x36ee80,_0x31a73=new ReconnectingWebSocket(_0xe42b16,[],_0x5ab74d),global_registry['authHeader']=_0x12ccb1[_0x73e54a(0x219)](getAuthHeader,global_registry[_0x73e54a(0x247)],global_registry[_0x73e54a(0x211)]),await _0x12ccb1[_0x73e54a(0x219)](inputValidation,_0x4d71dd,_0x31a73),logger[_0x73e54a(0x277)](_0x73e54a(0x1e1)+global_registry[_0x73e54a(0x1e2)]+_0x73e54a(0x288)+global_registry[_0x73e54a(0x1b8)]);let _0x3cb596=await _0x12ccb1['mfOZK'](getCloudProviderObjectWithOutInit,global_registry[_0x73e54a(0x1e2)],global_registry[_0x73e54a(0x243)],_0x12ccb1[_0x73e54a(0x1d1)],_0x31a73,webSocketUtils,_0x4d71dd);const _0x3149f0=await _0x3cb596[_0x73e54a(0x207)]();_0x12ccb1[_0x73e54a(0x1e7)](printResponse,_0x12ccb1[_0x73e54a(0x276)],_0x3149f0),_0x3cb596=await _0x3cb596['init']();let _0x4fd690=![];try{_0x4fd690=await _0x3cb596['isClusterPresent']();}catch(_0x4ece4f){const _0x3f6643=_0x12ccb1[_0x73e54a(0x1fa)][_0x73e54a(0x1db)]('|');let _0xb9c4fd=0x0;while(!![]){switch(_0x3f6643[_0xb9c4fd++]){case'0':await _0x12ccb1[_0x73e54a(0x1cb)](reportToGalactusAndSendToEDS,_0x4d71dd,_0x31a73,_0x41b428,messageTypes[_0x73e54a(0x26e)],_0x12ccb1[_0x73e54a(0x22d)],_0x73e54a(0x1d5)+global_registry[_0x73e54a(0x1e2)],_0x12ccb1['awcbF']);continue;case'1':logger[_0x73e54a(0x299)](_0x41b428);continue;case'2':_0x41b428+='\x0a'+JSON['stringify'](_0x4ece4f[_0x73e54a(0x224)]);continue;case'3':_0x41b428=_0x73e54a(0x206)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x73e54a(0x1b8)]+_0x73e54a(0x29b)+_0x4ece4f;continue;case'4':_0x4fd690=null;continue;}break;}}_0x4fd690&&logger[_0x73e54a(0x277)]('Cluster\x20`'+global_registry[_0x73e54a(0x243)]+_0x73e54a(0x28d));const _0x2b4508=await _0x3cb596['checkAccess']();_0x12ccb1[_0x73e54a(0x219)](printResponse,_0x12ccb1[_0x73e54a(0x261)],_0x2b4508);const _0x3f948f=await _0x12ccb1['epFWF'](curlRequest);_0x12ccb1['KMAnw'](printResponse,_0x12ccb1[_0x73e54a(0x241)],_0x3f948f);const _0x56ab54=await _0x12ccb1[_0x73e54a(0x27d)](isTlsSupported,_0x12ccb1[_0x73e54a(0x201)]);_0x12ccb1[_0x73e54a(0x219)](printResponse,_0x12ccb1['YsXWG'],_0x56ab54);const _0x567579={};_0x567579['header']=_0x12ccb1[_0x73e54a(0x268)],_0x567579[_0x73e54a(0x1d0)]=_0x3149f0;const _0x3cd257={};_0x3cd257['header']=_0x12ccb1['ZMVxR'],_0x3cd257[_0x73e54a(0x1d0)]=_0x2b4508;const _0x377397={};_0x377397[_0x73e54a(0x294)]=_0x12ccb1['XoufC'],_0x377397[_0x73e54a(0x1d0)]=_0x3f948f;const _0xc1673e={};_0xc1673e[_0x73e54a(0x294)]=_0x12ccb1['paXff'],_0xc1673e['response']=_0x56ab54;const _0x31550a=[_0x567579,_0x3cd257,_0x377397,_0xc1673e],_0xedaf9a=await _0x12ccb1[_0x73e54a(0x289)](generateReport,_0x31550a,_0x4fd690),_0xd2a7fd=new Date(),_0x4c1108=_0xd2a7fd[_0x73e54a(0x1fb)]()+'_'+_0x12ccb1[_0x73e54a(0x23f)](_0xd2a7fd[_0x73e54a(0x1d6)](),0x1)+'_'+_0xd2a7fd[_0x73e54a(0x22b)]()+'_'+_0xd2a7fd[_0x73e54a(0x1ec)]()+'_'+_0xd2a7fd[_0x73e54a(0x1cd)](),_0xc3ba3b=_0x73e54a(0x20d)+_0x4c1108+_0x73e54a(0x25e);fs[_0x73e54a(0x25f)](_0xc3ba3b,_0xedaf9a,_0x12ccb1[_0x73e54a(0x25a)]),logger[_0x73e54a(0x277)]('Report\x20saved\x20in\x20'+_0xc3ba3b),process[_0x73e54a(0x1f2)](0x0);}catch(_0x1cc134){let _0x5dff24='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x1cc134+'\x20';logger['error'](_0x5dff24),_0x5dff24+='\x0a'+JSON[_0x73e54a(0x21a)](_0x1cc134['stack']),logger[_0x73e54a(0x205)](_0x73e54a(0x1df)+_0x1cc134['stack']);if(_0x31a73){const _0x11e256={};_0x11e256[_0x73e54a(0x281)]=WS_EVENTS['LOG'],_0x11e256[_0x73e54a(0x295)]=_0x5dff24,webSocketUtils['sendEventToBackend'](_0x31a73,_0x11e256,_0x12ccb1[_0x73e54a(0x269)],!![]);}await webSocketUtils[_0x73e54a(0x1eb)](0x7d0);const _0x13dee5={};_0x13dee5[_0x73e54a(0x299)]=_0x5dff24,await _0x12ccb1[_0x73e54a(0x1b4)](sendInstrumentationEvent,_0x4d71dd,_0x12ccb1[_0x73e54a(0x22d)],messageTypes[_0x73e54a(0x26e)],_0x12ccb1[_0x73e54a(0x253)],_0x13dee5,_0x4d71dd),process[_0x73e54a(0x1f2)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18_0x1a3cb2=a18_0x3671;function a18_0x3671(_0x43f4d8,_0x25b9e3){const _0xadba30=a18_0xadba();return a18_0x3671=function(_0x36711c,_0x47d501){_0x36711c=_0x36711c-0x12b;let _0x58f467=_0xadba30[_0x36711c];return _0x58f467;},a18_0x3671(_0x43f4d8,_0x25b9e3);}function a18_0xadba(){const _0x27cfa7=['desc','usage','1092UnLeFH','start_commands','start','5047124jnyqPu','9474344oTWrqR','OBswb','18190mHALyM','command','3NICQMi','eEKRi','demandCommand','strict','help','../config/constants','1047348cKZzYC','1669820NPVVFu','epilogue','3412584tXCMiY','3743124EaJzsO'];a18_0xadba=function(){return _0x27cfa7;};return a18_0xadba();}(function(_0x406a1e,_0x1ddc55){const _0xff9e4c=a18_0x3671,_0x951cf2=_0x406a1e();while(!![]){try{const _0x129200=-parseInt(_0xff9e4c(0x13f))/0x1+parseInt(_0xff9e4c(0x12b))/0x2+parseInt(_0xff9e4c(0x139))/0x3*(parseInt(_0xff9e4c(0x134))/0x4)+-parseInt(_0xff9e4c(0x137))/0x5*(parseInt(_0xff9e4c(0x131))/0x6)+-parseInt(_0xff9e4c(0x12e))/0x7+parseInt(_0xff9e4c(0x135))/0x8+-parseInt(_0xff9e4c(0x12d))/0x9;if(_0x129200===_0x1ddc55)break;else _0x951cf2['push'](_0x951cf2['shift']());}catch(_0x727226){_0x951cf2['push'](_0x951cf2['shift']());}}}(a18_0xadba,0xa08cc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1a3cb2(0x13e));exports[a18_0x1a3cb2(0x138)]=a18_0x1a3cb2(0x133),exports[a18_0x1a3cb2(0x12f)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x44ef2c){const _0x2f3c5d=a18_0x1a3cb2,_0x2adc7f={};_0x2adc7f[_0x2f3c5d(0x136)]=_0x2f3c5d(0x132),_0x2adc7f[_0x2f3c5d(0x13a)]=_0x2f3c5d(0x13d);const _0x542b50=_0x2adc7f;return _0x44ef2c[_0x2f3c5d(0x130)](HELP_HEADER_MESSAGE[_0x2f3c5d(0x133)])[_0x2f3c5d(0x12c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x542b50[_0x2f3c5d(0x136)])[_0x2f3c5d(0x13b)]()['recommendCommands']()[_0x2f3c5d(0x13c)]()['help'](_0x542b50[_0x2f3c5d(0x13a)]);},exports['handler']=function(_0x271a9e){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x5618ee=a19_0x21ec;(function(_0x48e133,_0x5c027d){const _0x2e18da=a19_0x21ec,_0x11ccaa=_0x48e133();while(!![]){try{const _0x16c8e0=parseInt(_0x2e18da(0x160))/0x1+-parseInt(_0x2e18da(0x12d))/0x2+parseInt(_0x2e18da(0x12e))/0x3+-parseInt(_0x2e18da(0x12a))/0x4+parseInt(_0x2e18da(0x163))/0x5+-parseInt(_0x2e18da(0x150))/0x6+-parseInt(_0x2e18da(0x140))/0x7*(-parseInt(_0x2e18da(0x165))/0x8);if(_0x16c8e0===_0x5c027d)break;else _0x11ccaa['push'](_0x11ccaa['shift']());}catch(_0x166b22){_0x11ccaa['push'](_0x11ccaa['shift']());}}}(a19_0x49c6,0x31b79));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5618ee(0x134)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5618ee(0x14a)),{logger}=require(a19_0x5618ee(0x117)),{getCredentialsPath,getGridDetails}=require(a19_0x5618ee(0x11f)),{scaleUpHubDeployment}=require(a19_0x5618ee(0x157)),{sendInstrumentationEvent}=require(a19_0x5618ee(0x12f)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x5618ee(0x133)),{getCloudProviderObject}=require(a19_0x5618ee(0x14d));function a19_0x21ec(_0x1ba98c,_0x50b560){const _0x49c6d5=a19_0x49c6();return a19_0x21ec=function(_0x21eceb,_0x59af51){_0x21eceb=_0x21eceb-0x113;let _0x33e6a3=_0x49c6d5[_0x21eceb];return _0x33e6a3;},a19_0x21ec(_0x1ba98c,_0x50b560);}exports['command']=a19_0x5618ee(0x12b),exports[a19_0x5618ee(0x125)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x3b7e09){const _0x590702=a19_0x5618ee,_0x5ac5d1={};_0x5ac5d1[_0x590702(0x162)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x5ac5d1['kQbGV']='string',_0x5ac5d1[_0x590702(0x13f)]='Skip\x20insecure\x20cert\x20verification.',_0x5ac5d1['LxjxE']=_0x590702(0x143),_0x5ac5d1[_0x590702(0x161)]=_0x590702(0x146);const _0x1211a1=_0x5ac5d1,_0x3def16={};_0x3def16[_0x590702(0x15e)]=_0x1211a1[_0x590702(0x162)],_0x3def16['type']=_0x1211a1[_0x590702(0x126)];const _0x28abf9={};_0x28abf9['description']=_0x1211a1[_0x590702(0x13f)],_0x28abf9[_0x590702(0x13c)]=_0x1211a1[_0x590702(0x11a)],_0x28abf9[_0x590702(0x15f)]=![];const _0x22ce6a={};return _0x22ce6a[_0x590702(0x124)]=_0x3def16,_0x22ce6a['skip-tls-cert-verify']=_0x28abf9,_0x3b7e09['usage'](HELP_HEADER_MESSAGE[_0x590702(0x166)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x590702(0x138)](_0x22ce6a)[_0x590702(0x146)](_0x1211a1[_0x590702(0x161)])['argv'];},exports[a19_0x5618ee(0x123)]=async function(_0x443237){const _0x4d32c7=a19_0x5618ee,_0xf51de7={'RjxJY':_0x4d32c7(0x120),'FtMcR':function(_0x6fa588){return _0x6fa588();},'SMdTo':_0x4d32c7(0x13d),'yGVXn':function(_0x22de17,_0x45455f,_0x377ab0,_0x2fec22,_0x13094a,_0x402fa7,_0x1e0587){return _0x22de17(_0x45455f,_0x377ab0,_0x2fec22,_0x13094a,_0x402fa7,_0x1e0587);},'ZORKr':_0x4d32c7(0x11e),'FGMzc':'init-not-called','TNDZl':'<UsernamePlaceholder>','fcylp':_0x4d32c7(0x15a),'iKueb':'Adding\x20Websocket\x20listeners','PgDGS':function(_0x282145,_0x454a0a,_0x25235e,_0x374601){return _0x282145(_0x454a0a,_0x25235e,_0x374601);},'MlEqW':function(_0x39f21e,_0x466593,_0x1ed5d5,_0x2b711f,_0x25f6bf,_0x18efa2,_0x38addb){return _0x39f21e(_0x466593,_0x1ed5d5,_0x2b711f,_0x25f6bf,_0x18efa2,_0x38addb);},'PTCHg':function(_0x46c99e,_0x6757c7,_0x28c76f){return _0x46c99e(_0x6757c7,_0x28c76f);},'RjQBF':'Grid\x20started','hkXlV':function(_0x561c11,_0x123072){return _0x561c11===_0x123072;},'jmzlm':_0x4d32c7(0x154),'QBuCc':_0x4d32c7(0x12c),'mMjPg':function(_0x342bbe,_0x3127b8){return _0x342bbe===_0x3127b8;},'oVXlV':_0x4d32c7(0x129),'JvlUz':function(_0x26e04f,_0x1bbcdc,_0x3e5782,_0x505f72,_0x34ada6,_0x4a977e,_0x46477c){return _0x26e04f(_0x1bbcdc,_0x3e5782,_0x505f72,_0x34ada6,_0x4a977e,_0x46477c);},'hyLGu':'server-error'};let _0x290097;try{!_0x443237[_0x4d32c7(0x119)]&&(logger[_0x4d32c7(0x131)](_0xf51de7[_0x4d32c7(0x127)]),process[_0x4d32c7(0x14f)](0x1));!fs[_0x4d32c7(0x132)](_0xf51de7[_0x4d32c7(0x142)](getCredentialsPath))&&(logger['error'](_0xf51de7['SMdTo']),await _0xf51de7['yGVXn'](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['ERROR'],_0xf51de7['FGMzc'],null,_0x443237),process['exit'](0x1));logger[_0x4d32c7(0x11d)](_0x4d32c7(0x137)+_0x443237[_0x4d32c7(0x119)]),await _0xf51de7[_0x4d32c7(0x136)](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['INFO'],null,null,_0x443237);const _0x48a5e4=JSON[_0x4d32c7(0x158)](fs['readFileSync'](_0xf51de7[_0x4d32c7(0x142)](getCredentialsPath)));global_registry[_0x4d32c7(0x128)]=_0x48a5e4['Browserstack'][_0x4d32c7(0x14c)],global_registry[_0x4d32c7(0x13b)]=_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x135)];const _0x11aa70=WS_ENDPOINT['replace'](_0xf51de7[_0x4d32c7(0x156)],_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x14c)])[_0x4d32c7(0x164)](_0xf51de7[_0x4d32c7(0x118)],_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x135)]),_0x4dce1d={};_0x4dce1d[_0x4d32c7(0x15c)]=ws,_0x4dce1d[_0x4d32c7(0x11c)]=0x36ee80,_0x290097=new ReconnectingWebSocket(_0x11aa70,[],_0x4dce1d),logger[_0x4d32c7(0x139)](_0xf51de7[_0x4d32c7(0x144)]),webSocketUtils['addListeners'](_0x290097,_0x443237[_0x4d32c7(0x14b)],_0x443237[_0x4d32c7(0x135)]);const [_0x45aa5f,_0x4ddf5d]=await _0xf51de7[_0x4d32c7(0x114)](getGridDetails,_0x48a5e4[_0x4d32c7(0x151)][_0x4d32c7(0x14c)],_0x48a5e4['Browserstack'][_0x4d32c7(0x135)],_0x443237['gridId']);if(_0x4ddf5d){const _0x9fd887=_0x4ddf5d['info'];global_registry[_0x4d32c7(0x159)]=_0x9fd887['cloudProvider'],global_registry[_0x4d32c7(0x15d)]=_0x9fd887[_0x4d32c7(0x153)],global_registry[_0x4d32c7(0x152)]=_0x9fd887['clusterName'];const _0x3f9f31=await _0xf51de7[_0x4d32c7(0x113)](getCloudProviderObject,_0x9fd887[_0x4d32c7(0x159)],_0x9fd887[_0x4d32c7(0x152)],_0x9fd887[_0x4d32c7(0x148)],_0x290097,webSocketUtils,_0x443237),[_0x12c16e,_0x58bc51,_0xb848f6,_0x4d969a,_0x442d18,_0x5e7096]=await _0xf51de7[_0x4d32c7(0x116)](createK8sClient,_0x3f9f31,_0x443237[_0x4d32c7(0x122)]);await _0xf51de7[_0x4d32c7(0x116)](scaleUpHubDeployment,_0x58bc51,_0x9fd887['name']),logger[_0x4d32c7(0x11d)](_0xf51de7['RjQBF']),process['exit'](0x0);}_0xf51de7[_0x4d32c7(0x145)](_0x45aa5f[_0x4d32c7(0x14e)],0x191)&&(logger[_0x4d32c7(0x131)](_0xf51de7['jmzlm']),await _0xf51de7[_0x4d32c7(0x113)](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['ERROR'],_0xf51de7[_0x4d32c7(0x147)],null,_0x443237),process[_0x4d32c7(0x14f)](0x1)),_0xf51de7[_0x4d32c7(0x115)](_0x45aa5f[_0x4d32c7(0x14e)],0x190)&&(logger[_0x4d32c7(0x131)](JSON[_0x4d32c7(0x158)](_0x45aa5f[_0x4d32c7(0x149)])[_0x4d32c7(0x130)]),await _0xf51de7[_0x4d32c7(0x113)](sendInstrumentationEvent,_0x443237,_0xf51de7['ZORKr'],messageTypes[_0x4d32c7(0x121)],_0xf51de7['oVXlV'],null,_0x443237),process[_0x4d32c7(0x14f)](0x1)),logger[_0x4d32c7(0x131)](_0x4d32c7(0x13e)+JSON[_0x4d32c7(0x11b)](_0x45aa5f)),await _0xf51de7[_0x4d32c7(0x141)](sendInstrumentationEvent,_0x443237,_0xf51de7[_0x4d32c7(0x15b)],messageTypes['ERROR'],_0xf51de7[_0x4d32c7(0x13a)],_0x45aa5f,_0x443237),process['exit'](0x1);}catch(_0xd63550){const _0x48f6b9='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0xd63550+'\x20\x0a'+JSON[_0x4d32c7(0x11b)](_0xd63550[_0x4d32c7(0x155)])+'\x20';logger['error'](_0x48f6b9),process[_0x4d32c7(0x14f)](0x1);}};function a19_0x49c6(){const _0x31902b=['connectionTimeout','info','start-grid-called','../../utils/utilityMethods','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ERROR','skipTlsCertVerify','handler','grid-id','desc','kQbGV','RjxJY','bstackUsername','invalid-grid-id','1349308jSTqGi','grid','unauthorised','517452PwNRQl','904560xPoUHL','../../utils/instrumentationUtils','message','error','existsSync','../../utils/createk8sClient','reconnecting-websocket','password','yGVXn','Starting\x20grid\x20','options','debug','hyLGu','bstackAccesskey','type','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XrWxN','406MjOElh','JvlUz','FtMcR','boolean','iKueb','hkXlV','help','QBuCc','name','body','../../config/constants','user','username','../../cloudproviders/utils','statusCode','exit','1499532VynlaA','Browserstack','clusterName','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','TNDZl','../../utils/gridComponents','parse','cloudProvider','<PasswordPlaceholder>','ZORKr','WebSocket','clusterRegion','description','default','177810jOQaJG','pLDFi','kbAZj','1031970oeARrh','replace','50192dEwBVK','start','MlEqW','PgDGS','mMjPg','PTCHg','../../config/logger','fcylp','gridId','LxjxE','stringify'];a19_0x49c6=function(){return _0x31902b;};return a19_0x49c6();}
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x5aa796=a20_0x3a04;(function(_0x10b8e1,_0x56a246){const _0x51e709=a20_0x3a04,_0x547547=_0x10b8e1();while(!![]){try{const _0x4434c9=-parseInt(_0x51e709(0x127))/0x1+-parseInt(_0x51e709(0x112))/0x2*(-parseInt(_0x51e709(0x11e))/0x3)+parseInt(_0x51e709(0x125))/0x4*(parseInt(_0x51e709(0x121))/0x5)+parseInt(_0x51e709(0x113))/0x6+parseInt(_0x51e709(0x11d))/0x7+parseInt(_0x51e709(0x12a))/0x8*(-parseInt(_0x51e709(0x123))/0x9)+-parseInt(_0x51e709(0x116))/0xa*(parseInt(_0x51e709(0x111))/0xb);if(_0x4434c9===_0x56a246)break;else _0x547547['push'](_0x547547['shift']());}catch(_0x4489b3){_0x547547['push'](_0x547547['shift']());}}}(a20_0x15c0,0x283c4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x5aa796(0x11a)]=a20_0x5aa796(0x114),exports[a20_0x5aa796(0x120)]=a20_0x5aa796(0x129),exports[a20_0x5aa796(0x119)]=function(_0xc5dcbd){const _0x456438=a20_0x5aa796,_0x505b79={};_0x505b79[_0x456438(0x11f)]=_0x456438(0x117),_0x505b79[_0x456438(0x115)]=_0x456438(0x11b);const _0x2a67d2=_0x505b79;return _0xc5dcbd[_0x456438(0x12b)](HELP_HEADER_MESSAGE[_0x456438(0x114)])[_0x456438(0x11c)](HELP_FOOTER_MESSAGE)[_0x456438(0x128)](_0x2a67d2['WLOTF'])[_0x456438(0x118)]()[_0x456438(0x126)]()[_0x456438(0x122)]()[_0x456438(0x11b)](_0x2a67d2[_0x456438(0x115)]);},exports[a20_0x5aa796(0x124)]=function(_0x139fde){};function a20_0x3a04(_0x4092da,_0x2629bb){const _0x15c061=a20_0x15c0();return a20_0x3a04=function(_0x3a04f3,_0x84df4c){_0x3a04f3=_0x3a04f3-0x111;let _0x135fd6=_0x15c061[_0x3a04f3];return _0x135fd6;},a20_0x3a04(_0x4092da,_0x2629bb);}function a20_0x15c0(){const _0x4d9182=['stop','EnuXm','30wtRYYY','stop_commands','demandCommand','builder','command','help','epilogue','892724oOEeBx','18eDlaim','WLOTF','desc','10IhybEM','strict','22329NNJoyL','handler','129972IlNRka','recommendCommands','210668PqhwsD','commandDir','Stop\x20a\x20running\x20Automation\x20grid.','528CnUEXf','usage','522335bWZPJi','82002wagfhX','1458894PoySve'];a20_0x15c0=function(){return _0x4d9182;};return a20_0x15c0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x53c08e=a21_0x2b91;(function(_0x465326,_0x39c591){const _0x9717f3=a21_0x2b91,_0x4f349b=_0x465326();while(!![]){try{const _0x27105b=-parseInt(_0x9717f3(0xbb))/0x1*(-parseInt(_0x9717f3(0xb0))/0x2)+parseInt(_0x9717f3(0xf6))/0x3+-parseInt(_0x9717f3(0xec))/0x4+parseInt(_0x9717f3(0xc6))/0x5+-parseInt(_0x9717f3(0xcd))/0x6*(parseInt(_0x9717f3(0xea))/0x7)+parseInt(_0x9717f3(0xb8))/0x8+-parseInt(_0x9717f3(0xb4))/0x9;if(_0x27105b===_0x39c591)break;else _0x4f349b['push'](_0x4f349b['shift']());}catch(_0x4ac6ae){_0x4f349b['push'](_0x4f349b['shift']());}}}(a21_0x239a,0xcb094));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x53c08e(0xd0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x53c08e(0xcf)),{getCredentialsPath,getGridDetails}=require(a21_0x53c08e(0xc3)),{scaleDownHubDeployment}=require(a21_0x53c08e(0xf5)),{sendInstrumentationEvent}=require(a21_0x53c08e(0xb5)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x53c08e(0xf8)),{getCloudProviderObject}=require(a21_0x53c08e(0xe4));exports[a21_0x53c08e(0xf7)]=a21_0x53c08e(0xb6),exports[a21_0x53c08e(0xdf)]=a21_0x53c08e(0xd4),exports[a21_0x53c08e(0xe1)]=function(_0x4b9a89){const _0x38828e=a21_0x53c08e,_0x7e836c={};_0x7e836c[_0x38828e(0xad)]=_0x38828e(0xb9),_0x7e836c['nAsvL']='string',_0x7e836c[_0x38828e(0xd9)]='Skip\x20insecure\x20cert\x20verification.',_0x7e836c[_0x38828e(0xc2)]=_0x38828e(0xc1),_0x7e836c['KeSbL']='help';const _0x3266b0=_0x7e836c,_0x46508e={};_0x46508e[_0x38828e(0xd1)]=_0x3266b0[_0x38828e(0xad)],_0x46508e['type']=_0x3266b0[_0x38828e(0xaa)];const _0x59ae17={};_0x59ae17[_0x38828e(0xd1)]=_0x3266b0[_0x38828e(0xd9)],_0x59ae17[_0x38828e(0xeb)]=_0x3266b0['OyuHR'],_0x59ae17[_0x38828e(0xd2)]=![];const _0x3b73d8={};return _0x3b73d8['grid-id']=_0x46508e,_0x3b73d8[_0x38828e(0xc8)]=_0x59ae17,_0x4b9a89[_0x38828e(0xbd)](HELP_HEADER_MESSAGE[_0x38828e(0xe9)])[_0x38828e(0xda)](HELP_FOOTER_MESSAGE)['options'](_0x3b73d8)[_0x38828e(0xb2)](_0x3266b0[_0x38828e(0xbc)])[_0x38828e(0xdc)];},exports[a21_0x53c08e(0xfc)]=async function(_0x6f64d6){const _0x2d9203=a21_0x53c08e,_0x4fde5f={'qzUYz':_0x2d9203(0xcc),'DdYMR':function(_0x220cc0){return _0x220cc0();},'ApEIQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fLlnL':function(_0x499f00,_0x118dc6,_0x2e1f51,_0x1f4176,_0x2855af,_0x749e9,_0xf9529a){return _0x499f00(_0x118dc6,_0x2e1f51,_0x1f4176,_0x2855af,_0x749e9,_0xf9529a);},'DNkqi':_0x2d9203(0xfe),'HzwyG':_0x2d9203(0xf4),'kbqFK':function(_0x130844){return _0x130844();},'ePgRW':_0x2d9203(0xff),'cfTzG':_0x2d9203(0xd7),'bzcRI':_0x2d9203(0xc5),'dZLfc':function(_0x3e2813,_0x331b43,_0x1eca74,_0x2951cc){return _0x3e2813(_0x331b43,_0x1eca74,_0x2951cc);},'sEbrA':function(_0x428f91,_0x2018f1,_0x5d017c,_0x78ecca,_0x31b36d,_0x161261,_0x46eebe){return _0x428f91(_0x2018f1,_0x5d017c,_0x78ecca,_0x31b36d,_0x161261,_0x46eebe);},'NZAhw':function(_0x11e5c6,_0x28d42b,_0x980ae9){return _0x11e5c6(_0x28d42b,_0x980ae9);},'bgXeZ':function(_0x4c5bae,_0x6da17d,_0x5b7015){return _0x4c5bae(_0x6da17d,_0x5b7015);},'bPvWd':_0x2d9203(0xaf),'TxEfc':function(_0x40483a,_0x109252){return _0x40483a===_0x109252;},'jpyxx':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qLyaP':function(_0x588d82,_0x10768e,_0x4eca2a,_0x201f5f,_0x2aecd5,_0x3ba6d9,_0x1cfa49){return _0x588d82(_0x10768e,_0x4eca2a,_0x201f5f,_0x2aecd5,_0x3ba6d9,_0x1cfa49);},'ntNBf':'unauthorised','ojoMu':function(_0x54174c,_0x38f927){return _0x54174c===_0x38f927;},'pbQIq':_0x2d9203(0xac),'OOFxE':_0x2d9203(0xf1)};let _0x441f23;try{!_0x6f64d6['gridId']&&(logger[_0x2d9203(0xbe)](_0x4fde5f[_0x2d9203(0xfd)]),process[_0x2d9203(0xf0)](0x1));!fs['existsSync'](_0x4fde5f[_0x2d9203(0xc7)](getCredentialsPath))&&(logger[_0x2d9203(0xbe)](_0x4fde5f[_0x2d9203(0xbf)]),await _0x4fde5f['fLlnL'](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f['DNkqi'],messageTypes[_0x2d9203(0xe7)],_0x4fde5f['HzwyG'],null,_0x6f64d6),process[_0x2d9203(0xf0)](0x1));logger[_0x2d9203(0xf2)](_0x2d9203(0xc0)+_0x6f64d6[_0x2d9203(0xd5)]),await _0x4fde5f[_0x2d9203(0xde)](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xae)],null,null,_0x6f64d6);const _0x5648b4=JSON['parse'](fs['readFileSync'](_0x4fde5f[_0x2d9203(0xd6)](getCredentialsPath)));global_registry[_0x2d9203(0xe0)]=_0x5648b4[_0x2d9203(0xb1)]['username'],global_registry[_0x2d9203(0xf9)]=_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xcb)];const _0x60baa5=WS_ENDPOINT['replace'](_0x4fde5f[_0x2d9203(0xee)],_0x5648b4[_0x2d9203(0xb1)]['username'])[_0x2d9203(0xef)](_0x4fde5f['cfTzG'],_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xcb)]),_0x1b31b0={};_0x1b31b0[_0x2d9203(0xf3)]=ws,_0x1b31b0['connectionTimeout']=0x36ee80,_0x441f23=new ReconnectingWebSocket(_0x60baa5,[],_0x1b31b0),logger['debug'](_0x4fde5f[_0x2d9203(0xdd)]),webSocketUtils[_0x2d9203(0xd3)](_0x441f23,_0x6f64d6[_0x2d9203(0xce)],_0x6f64d6[_0x2d9203(0xcb)]);const [_0xd19690,_0x2b5bbb]=await _0x4fde5f['dZLfc'](getGridDetails,_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xe2)],_0x5648b4[_0x2d9203(0xb1)][_0x2d9203(0xcb)],_0x6f64d6[_0x2d9203(0xd5)]);if(_0x2b5bbb){const _0x99118c=_0x2b5bbb[_0x2d9203(0xf2)];global_registry[_0x2d9203(0xb7)]=_0x99118c[_0x2d9203(0xb7)],global_registry[_0x2d9203(0xfa)]=_0x99118c[_0x2d9203(0xab)],global_registry[_0x2d9203(0xed)]=_0x99118c[_0x2d9203(0xed)];const _0x2817c2=await _0x4fde5f[_0x2d9203(0xba)](getCloudProviderObject,_0x99118c[_0x2d9203(0xb7)],_0x99118c['clusterName'],_0x99118c['name'],_0x441f23,webSocketUtils,_0x6f64d6),[_0xf39445,_0x429072,_0x319b62,_0x5a132d,_0x525ef1,_0x2e4d22]=await _0x4fde5f[_0x2d9203(0xe6)](createK8sClient,_0x2817c2,_0x6f64d6[_0x2d9203(0xe8)]);await _0x4fde5f[_0x2d9203(0xc4)](scaleDownHubDeployment,_0x429072,_0x99118c['name']),logger[_0x2d9203(0xf2)](_0x4fde5f[_0x2d9203(0xb3)]),process['exit'](0x0);}_0x4fde5f[_0x2d9203(0xe5)](_0xd19690['statusCode'],0x191)&&(logger['error'](_0x4fde5f[_0x2d9203(0xd8)]),await _0x4fde5f['qLyaP'](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xe7)],_0x4fde5f[_0x2d9203(0xdb)],null,_0x6f64d6),process[_0x2d9203(0xf0)](0x1)),_0x4fde5f[_0x2d9203(0xfb)](_0xd19690[_0x2d9203(0x100)],0x190)&&(logger['error'](JSON['parse'](_0xd19690[_0x2d9203(0xa8)])[_0x2d9203(0xe3)]),await _0x4fde5f['qLyaP'](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xe7)],_0x4fde5f[_0x2d9203(0xca)],null,_0x6f64d6),process[_0x2d9203(0xf0)](0x1)),logger[_0x2d9203(0xbe)](_0x2d9203(0xa9)+JSON['stringify'](_0xd19690)),await _0x4fde5f[_0x2d9203(0xde)](sendInstrumentationEvent,_0x6f64d6,_0x4fde5f[_0x2d9203(0xa7)],messageTypes[_0x2d9203(0xe7)],_0x4fde5f[_0x2d9203(0xc9)],_0xd19690,_0x6f64d6),process[_0x2d9203(0xf0)](0x1);}catch(_0x223172){const _0xa7aff0='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x223172+'\x20\x0a'+JSON['stringify'](_0x223172['stack'])+'\x20';logger[_0x2d9203(0xbe)](_0xa7aff0),process['exit'](0x1);}};function a21_0x2b91(_0x3c6471,_0x353bdd){const _0x239a8f=a21_0x239a();return a21_0x2b91=function(_0x2b918a,_0x1df73b){_0x2b918a=_0x2b918a-0xa7;let _0x42d44d=_0x239a8f[_0x2b918a];return _0x42d44d;},a21_0x2b91(_0x3c6471,_0x353bdd);}function a21_0x239a(){const _0x5061f2=['7446030ApCuUr','DdYMR','skip-tls-cert-verify','OOFxE','pbQIq','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','282WmuXJd','user','../../config/logger','reconnecting-websocket','description','default','addListeners','Stop\x20a\x20running\x20Automation\x20grid.','gridId','kbqFK','<PasswordPlaceholder>','jpyxx','nvjCC','epilogue','ntNBf','argv','bzcRI','fLlnL','desc','bstackUsername','builder','username','message','../../cloudproviders/utils','TxEfc','NZAhw','ERROR','skipTlsCertVerify','stop','87878eSeDaJ','type','854084xWxZjZ','clusterName','ePgRW','replace','exit','server-error','info','WebSocket','init-not-called','../../utils/gridComponents','2471913aQIXFh','command','../../utils/createk8sClient','bstackAccesskey','clusterRegion','ojoMu','handler','qzUYz','stop-grid-called','<UsernamePlaceholder>','statusCode','DNkqi','body','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','nAsvL','region','invalid-grid-id','rNkol','INFO','Grid\x20stoppped.','32fRWDzV','Browserstack','help','bPvWd','18488493heVmBw','../../utils/instrumentationUtils','grid','cloudProvider','1240504pQZhvy','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','sEbrA','76327BWeRwZ','KeSbL','usage','error','ApEIQ','Stopping\x20grid\x20','boolean','OyuHR','../../utils/utilityMethods','bgXeZ','Adding\x20Websocket\x20listeners'];a21_0x239a=function(){return _0x5061f2;};return a21_0x239a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x57df00=a22_0x4242;(function(_0xddab4f,_0x1d0756){const _0x22dd63=a22_0x4242,_0xcfc768=_0xddab4f();while(!![]){try{const _0x592fce=parseInt(_0x22dd63(0xd5))/0x1+-parseInt(_0x22dd63(0xc1))/0x2*(-parseInt(_0x22dd63(0xc5))/0x3)+parseInt(_0x22dd63(0xbf))/0x4*(-parseInt(_0x22dd63(0xdc))/0x5)+parseInt(_0x22dd63(0xcc))/0x6*(parseInt(_0x22dd63(0xb4))/0x7)+parseInt(_0x22dd63(0xcd))/0x8*(-parseInt(_0x22dd63(0xb3))/0x9)+parseInt(_0x22dd63(0xfa))/0xa+parseInt(_0x22dd63(0x113))/0xb*(-parseInt(_0x22dd63(0xdb))/0xc);if(_0x592fce===_0x1d0756)break;else _0xcfc768['push'](_0xcfc768['shift']());}catch(_0x567a24){_0xcfc768['push'](_0xcfc768['shift']());}}}(a22_0x1c9a,0xcdf55),require('dotenv')[a22_0x57df00(0xc8)](),exports[a22_0x57df00(0x107)]=process[a22_0x57df00(0xd2)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports[a22_0x57df00(0xe8)]=process[a22_0x57df00(0xd2)][a22_0x57df00(0xe8)]||a22_0x57df00(0xef),exports[a22_0x57df00(0xe7)]=process['env'][a22_0x57df00(0xe7)]||'grid-api.browserstack.com',exports[a22_0x57df00(0xd1)]=a22_0x57df00(0xb5)+this[a22_0x57df00(0xe7)]+a22_0x57df00(0xb2),exports['CP_CONFIG_FILE']=a22_0x57df00(0xe0),exports[a22_0x57df00(0xec)]=a22_0x57df00(0xb7),exports[a22_0x57df00(0xf1)]=a22_0x57df00(0x105),exports[a22_0x57df00(0x10f)]=a22_0x57df00(0xd9),exports['CLUSTER_DEP_STACK_NAME']=a22_0x57df00(0xde),exports[a22_0x57df00(0x106)]=a22_0x57df00(0x104),exports[a22_0x57df00(0x103)]=a22_0x57df00(0x112),exports[a22_0x57df00(0xab)]='browserstack-turboscale-grid',exports[a22_0x57df00(0xc9)]='azure',exports[a22_0x57df00(0xc2)]=a22_0x57df00(0xf4),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x57df00(0x10f)],this[a22_0x57df00(0xc9)],this[a22_0x57df00(0xc2)]]);const a22_0x5e3f47={};a22_0x5e3f47[a22_0x57df00(0x108)]=a22_0x57df00(0xe2),a22_0x5e3f47[a22_0x57df00(0x102)]=a22_0x57df00(0x10e);const a22_0x5d8a83={};a22_0x5d8a83[a22_0x57df00(0x108)]=a22_0x57df00(0xcf),a22_0x5d8a83[a22_0x57df00(0x102)]=a22_0x57df00(0x109);const common_hst_tags_list=[a22_0x5e3f47,a22_0x5d8a83];if(process[a22_0x57df00(0xd2)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x57df00(0xd2)][a22_0x57df00(0xac)][a22_0x57df00(0xb1)](',');parsedTags['forEach'](_0x5bdd62=>{const _0x4ef662=a22_0x57df00,_0x4ebc5c=_0x5bdd62['split'](':'),_0x54360c={};_0x54360c[_0x4ef662(0x108)]=_0x4ebc5c[0x0],_0x54360c[_0x4ef662(0x102)]=_0x4ebc5c[0x1],common_hst_tags_list[_0x4ef662(0xf8)](_0x54360c);});}exports[a22_0x57df00(0xf6)]=common_hst_tags_list;const a22_0x513172={};function a22_0x4242(_0x33492a,_0x59bae8){const _0x1c9aeb=a22_0x1c9a();return a22_0x4242=function(_0x4242c2,_0x3589f7){_0x4242c2=_0x4242c2-0xab;let _0x4199b5=_0x1c9aeb[_0x4242c2];return _0x4199b5;},a22_0x4242(_0x33492a,_0x59bae8);}a22_0x513172[a22_0x57df00(0xe2)]=a22_0x57df00(0x10e),a22_0x513172[a22_0x57df00(0xcf)]=a22_0x57df00(0x109),exports[a22_0x57df00(0xfd)]=a22_0x513172,exports[a22_0x57df00(0xbe)]=[this[a22_0x57df00(0x10f)]];const a22_0x55cb1b={};a22_0x55cb1b[a22_0x57df00(0xe1)]=a22_0x57df00(0xc4),a22_0x55cb1b[a22_0x57df00(0xba)]=a22_0x57df00(0xda),a22_0x55cb1b[a22_0x57df00(0xc3)]=a22_0x57df00(0x100),a22_0x55cb1b['CLI_RUN_STARTED']=a22_0x57df00(0xaf),a22_0x55cb1b[a22_0x57df00(0xf0)]='cliRunFinished',exports[a22_0x57df00(0x101)]=a22_0x55cb1b,exports[a22_0x57df00(0xd4)]={},exports['LINK_MESSAGE']=a22_0x57df00(0x10d);const a22_0x26613={};function a22_0x1c9a(){const _0x2646b6=['high-scale-grid-cluster','BSTACK-ATS-CLUSTER','pre-check','credentials','LOG','browserstack:managedBy','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','success','AG_API_URL','BS_API_URL','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','stop','unknown','IAM_USER_NAME','grid','grid-profile','api.browserstack.com','CLI_RUN_FINISHED','DEFAULT_GRID_NAME','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gcp','CLUSTER','COMMON_HST_TAGS','CLOUD_PROVIDER','push','CLI_ARGS_REGEX','9526800eTItHC','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','HST_CLUSTER_TAGS','root','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','gridUrl','WS_EVENTS','Value','CLUSTER_HUB_HA_STACK_NAME','BSTACK-ATS-CLUSTER-AUTOSCALER','high-scale-grid','CLUSTER_AUTOSCALER_STACK_NAME','DASHBOARD_ENDPOINT','Key','BrowserStack-Automate-TurboScale','start','pre_check','TRIAL_GRID_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','BrowserStack','AWS','HELP_FOOTER_MESSAGE','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-HUB-HA','233882WDzwOx','TURBOSCALE_DEPLOYMENT','TURBOSCALE_CUSTOM_TAGS','LINK_MESSAGE','[REDACTED]','cliRunStarted','us-east-1','split','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','269469xTgLED','4760371JXvFdw','wss://','DEFAULT_CLUSTER_DETAILS','BrowserStackIAMUser','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','RESOURCES','connect','init','gridProfile','SUPPORTED_CLOUD_PROVIDERS','4312236BSthLG','info','2ftcrdA','GCP','GRID_URL','log','2314749LXtNCn','INFO','NULL','config','AZURE','SUCCESS','error','12nVLeul','152XgoDfv','configure','browserstack:service','messageTypes','WS_ENDPOINT','env','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','global_registry','256654aEQOzF','list','WARNING','MessageDescription','aws','resourceInfo','480zlxPUU','5Tdfswa'];a22_0x1c9a=function(){return _0x2646b6;};return a22_0x1c9a();}a22_0x26613[a22_0x57df00(0xfe)]=a22_0x57df00(0xf2)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xbc)]=a22_0x57df00(0xb9)+this['LINK_MESSAGE'],a22_0x26613[a22_0x57df00(0xce)]=a22_0x57df00(0xf3)+this['LINK_MESSAGE'],a22_0x26613['create']=a22_0x57df00(0xe4)+this['LINK_MESSAGE'],a22_0x26613[a22_0x57df00(0xd6)]={},a22_0x26613['delete']=a22_0x57df00(0x111)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xbb)]=a22_0x57df00(0xd3)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0x10a)]=a22_0x57df00(0xe9)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xea)]=a22_0x57df00(0xe3)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0x10b)]=a22_0x57df00(0xfb)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xd6)]['root']=a22_0x57df00(0xff)+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xd6)][a22_0x57df00(0xed)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x57df00(0xad)],a22_0x26613[a22_0x57df00(0xd6)][a22_0x57df00(0xbd)]=a22_0x57df00(0xe5)+this[a22_0x57df00(0xad)],exports['HELP_HEADER_MESSAGE']=a22_0x26613,exports[a22_0x57df00(0x110)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x36abeb={};a22_0x36abeb[a22_0x57df00(0xca)]=a22_0x57df00(0xe6),a22_0x36abeb['ERROR']=a22_0x57df00(0xcb),a22_0x36abeb[a22_0x57df00(0xc6)]=a22_0x57df00(0xc0),a22_0x36abeb[a22_0x57df00(0xd7)]='warning',a22_0x36abeb['UNKNOWN']=a22_0x57df00(0xeb),a22_0x36abeb[a22_0x57df00(0xc7)]=null,exports[a22_0x57df00(0xd0)]=a22_0x36abeb,exports[a22_0x57df00(0xf9)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x57df00(0xae);const a22_0x19bc60={};a22_0x19bc60[a22_0x57df00(0xee)]=a22_0x57df00(0xb8);const a22_0x34dee6={};a22_0x34dee6[a22_0x57df00(0xdf)]=a22_0x19bc60,exports[a22_0x57df00(0xd8)]=a22_0x34dee6,exports[a22_0x57df00(0x10c)]=a22_0x57df00(0xfc);const a22_0xc187d8={};a22_0xc187d8[a22_0x57df00(0xf5)]=a22_0x57df00(0xdd),a22_0xc187d8[a22_0x57df00(0xf7)]=a22_0x57df00(0xd9),a22_0xc187d8['REGION']=a22_0x57df00(0xb0),exports[a22_0x57df00(0xb6)]=a22_0xc187d8;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x4c5549=a23_0x1a91;(function(_0x1df351,_0x423251){const _0x161ca6=a23_0x1a91,_0x34712b=_0x1df351();while(!![]){try{const _0x44f01d=-parseInt(_0x161ca6(0x1f0))/0x1+-parseInt(_0x161ca6(0x1dd))/0x2*(parseInt(_0x161ca6(0x1e2))/0x3)+-parseInt(_0x161ca6(0x1e4))/0x4*(-parseInt(_0x161ca6(0x1fa))/0x5)+-parseInt(_0x161ca6(0x1e7))/0x6+-parseInt(_0x161ca6(0x1f6))/0x7+parseInt(_0x161ca6(0x1df))/0x8+parseInt(_0x161ca6(0x1e3))/0x9;if(_0x44f01d===_0x423251)break;else _0x34712b['push'](_0x34712b['shift']());}catch(_0x541a1e){_0x34712b['push'](_0x34712b['shift']());}}}(a23_0x2330,0xa9e03));const winston=require(a23_0x4c5549(0x1ed)),fs=require('fs'),path=require(a23_0x4c5549(0x1f7)),logDir=a23_0x4c5549(0x1fb);!fs[a23_0x4c5549(0x1f5)](logDir)&&fs['mkdirSync'](logDir);const a23_0x3b33c6={};a23_0x3b33c6[a23_0x4c5549(0x1ee)]=a23_0x4c5549(0x1de);function a23_0x1a91(_0x528260,_0x4200b9){const _0x2330f5=a23_0x2330();return a23_0x1a91=function(_0x1a912c,_0x58e432){_0x1a912c=_0x1a912c-0x1dd;let _0x9c1839=_0x2330f5[_0x1a912c];return _0x9c1839;},a23_0x1a91(_0x528260,_0x4200b9);}const a23_0x2be898={};a23_0x2be898[a23_0x4c5549(0x1e9)]=!![];const a23_0x1ae438={};a23_0x1ae438[a23_0x4c5549(0x1e5)]=a23_0x4c5549(0x1f8),exports[a23_0x4c5549(0x1f3)]=new winston[(a23_0x4c5549(0x1f1))]({'format':winston['format'][a23_0x4c5549(0x1ea)](winston[a23_0x4c5549(0x1ee)][a23_0x4c5549(0x1ef)](a23_0x3b33c6),winston[a23_0x4c5549(0x1ee)][a23_0x4c5549(0x1e0)](a23_0x2be898),winston[a23_0x4c5549(0x1ee)]['printf'](_0x202c0a=>_0x202c0a[a23_0x4c5549(0x1ef)]+a23_0x4c5549(0x1ec)+_0x202c0a[a23_0x4c5549(0x1e9)]+':\x20'+_0x202c0a[a23_0x4c5549(0x1e6)])),'transports':[new winston[(a23_0x4c5549(0x1eb))][(a23_0x4c5549(0x1e8))](a23_0x1ae438),new winston[(a23_0x4c5549(0x1eb))][(a23_0x4c5549(0x1e1))]({'filename':path['join'](logDir,'events.log'),'level':'debug'})]});function a23_0x2330(){const _0x2d43f6=['6799284ojvANk','Console','level','combine','transports','\x20-\x20','winston','format','timestamp','292080UvnmZr','createLogger','debug','logger','usage.log','existsSync','2306395kPRnJO','path','console.info','join','3243725JTDkwx','log','6386wIWxrA','YYYY-MM-DD\x20HH:mm:ss','10366200KKQllc','colorize','File','9uOxoup','4640841wrvniF','4nqwKNZ','name','message'];a23_0x2330=function(){return _0x2d43f6;};return a23_0x2330();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x4c5549(0x1eb))][(a23_0x4c5549(0x1e1))]({'filename':path[a23_0x4c5549(0x1f9)](logDir,a23_0x4c5549(0x1f4)),'level':a23_0x4c5549(0x1f2)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a24_0x53ed(){const _0x298ef9=['OaXCy','demandCommand','10630gYypRU','commands','help','7232561HflluK','1756420BrRkGW','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1966968vFobOZ','116stRgWN','env','3iPvguJ','25483440wIesoQ','826565wOsVmQ','eMRKq','10323180YMALLL','8NeIIgo'];a24_0x53ed=function(){return _0x298ef9;};return a24_0x53ed();}const a24_0x5999d7=a24_0x316d;(function(_0x5a8115,_0x4d60ea){const _0x2e727e=a24_0x316d,_0x227204=_0x5a8115();while(!![]){try{const _0x819e68=-parseInt(_0x2e727e(0x8e))/0x1*(-parseInt(_0x2e727e(0x84))/0x2)+parseInt(_0x2e727e(0x86))/0x3*(parseInt(_0x2e727e(0x92))/0x4)+-parseInt(_0x2e727e(0x88))/0x5+-parseInt(_0x2e727e(0x8a))/0x6+parseInt(_0x2e727e(0x91))/0x7*(-parseInt(_0x2e727e(0x8b))/0x8)+parseInt(_0x2e727e(0x83))/0x9+parseInt(_0x2e727e(0x87))/0xa;if(_0x819e68===_0x4d60ea)break;else _0x227204['push'](_0x227204['shift']());}catch(_0x94fd72){_0x227204['push'](_0x227204['shift']());}}}(a24_0x53ed,0xdc933));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x5999d7(0x85)][a24_0x5999d7(0x82)]=0x1;function run(_0x3e82c1){const _0x2e96c6=a24_0x5999d7,_0x3ca4b8={};_0x3ca4b8[_0x2e96c6(0x8c)]=_0x2e96c6(0x8f),_0x3ca4b8[_0x2e96c6(0x89)]=_0x2e96c6(0x90);const _0x2a9139=_0x3ca4b8;_0x3e82c1['usage'](HELP_HEADER_MESSAGE[_0x2e96c6(0x81)])['commandDir'](_0x2a9139[_0x2e96c6(0x8c)])[_0x2e96c6(0x8d)]()[_0x2e96c6(0x90)](_0x2a9139[_0x2e96c6(0x89)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0x316d(_0x4cf2cd,_0x39f611){const _0x53eda0=a24_0x53ed();return a24_0x316d=function(_0x316d50,_0xfcd97b){_0x316d50=_0x316d50-0x81;let _0x3f3ec9=_0x53eda0[_0x316d50];return _0x3f3ec9;},a24_0x316d(_0x4cf2cd,_0x39f611);}module['exports']=run;
|