browserstack-node-sdk 1.31.10 → 1.31.11
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/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/templates/turboscale-agent.yaml +61 -0
- 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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.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.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/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/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/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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a8_0x1435(){const _0xdff34f=['epilogue','demandCommand','strict','desc','xpWux','118713MbjwHj','1040592ckQxOG','Create\x20a\x20new\x20Automation\x20grid.','help','2531250QxkjRB','2xZgXzr','usage','2673663KWCXfT','recommendCommands','commandDir','1969100nspfIk','30hAhDBN','ozDdn','../config/constants','command','create_commands','384mImKnH','1133956FEsxqn','create','627748rZlPZG','builder'];a8_0x1435=function(){return _0xdff34f;};return a8_0x1435();}function a8_0x4930(_0x43b10a,_0x1bba02){const _0x14354d=a8_0x1435();return a8_0x4930=function(_0x4930ca,_0x50eebc){_0x4930ca=_0x4930ca-0x1c6;let _0x359af5=_0x14354d[_0x4930ca];return _0x359af5;},a8_0x4930(_0x43b10a,_0x1bba02);}const a8_0x4bc854=a8_0x4930;(function(_0x18ed19,_0x3c85f7){const _0x21bdac=a8_0x4930,_0x41f155=_0x18ed19();while(!![]){try{const _0x5bed74=-parseInt(_0x21bdac(0x1d7))/0x1*(parseInt(_0x21bdac(0x1cb))/0x2)+-parseInt(_0x21bdac(0x1cd))/0x3+-parseInt(_0x21bdac(0x1d9))/0x4*(-parseInt(_0x21bdac(0x1d1))/0x5)+parseInt(_0x21bdac(0x1d6))/0x6*(parseInt(_0x21bdac(0x1c6))/0x7)+parseInt(_0x21bdac(0x1c7))/0x8+parseInt(_0x21bdac(0x1ca))/0x9+parseInt(_0x21bdac(0x1d0))/0xa;if(_0x5bed74===_0x3c85f7)break;else _0x41f155['push'](_0x41f155['shift']());}catch(_0x261ea0){_0x41f155['push'](_0x41f155['shift']());}}}(a8_0x1435,0x94f07));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x4bc854(0x1d3));exports[a8_0x4bc854(0x1d4)]=a8_0x4bc854(0x1d8),exports[a8_0x4bc854(0x1de)]=a8_0x4bc854(0x1c8),exports[a8_0x4bc854(0x1da)]=function(_0x2cdfa5){const _0x234f02=a8_0x4bc854,_0x245972={};_0x245972[_0x234f02(0x1d2)]=_0x234f02(0x1d5),_0x245972[_0x234f02(0x1df)]=_0x234f02(0x1c9);const _0xb752d9=_0x245972;return _0x2cdfa5[_0x234f02(0x1cc)](HELP_HEADER_MESSAGE[_0x234f02(0x1d8)])[_0x234f02(0x1db)](HELP_FOOTER_MESSAGE)[_0x234f02(0x1cf)](_0xb752d9[_0x234f02(0x1d2)])[_0x234f02(0x1dc)]()[_0x234f02(0x1ce)]()[_0x234f02(0x1dd)]()[_0x234f02(0x1c9)](_0xb752d9['xpWux']);},exports['handler']=function(_0x5c9ab2){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a9_0x3ff7(_0x16fd4a,_0x7729fd){const _0x460817=a9_0x4608();return a9_0x3ff7=function(_0x3ff7cc,_0x33a6c5){_0x3ff7cc=_0x3ff7cc-0x1f3;let _0x591426=_0x460817[_0x3ff7cc];return _0x591426;},a9_0x3ff7(_0x16fd4a,_0x7729fd);}const a9_0x733eba=a9_0x3ff7;(function(_0x1f9735,_0x3e8e7e){const _0x215c65=a9_0x3ff7,_0x2a0567=_0x1f9735();while(!![]){try{const _0xae57a8=parseInt(_0x215c65(0x299))/0x1+parseInt(_0x215c65(0x2c3))/0x2+-parseInt(_0x215c65(0x2a4))/0x3*(-parseInt(_0x215c65(0x322))/0x4)+parseInt(_0x215c65(0x315))/0x5*(parseInt(_0x215c65(0x2f6))/0x6)+parseInt(_0x215c65(0x236))/0x7+parseInt(_0x215c65(0x21e))/0x8*(parseInt(_0x215c65(0x237))/0x9)+-parseInt(_0x215c65(0x2f4))/0xa*(parseInt(_0x215c65(0x29e))/0xb);if(_0xae57a8===_0x3e8e7e)break;else _0x2a0567['push'](_0x2a0567['shift']());}catch(_0x4d4eb5){_0x2a0567['push'](_0x2a0567['shift']());}}}(a9_0x4608,0x1f8fc));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x733eba(0x20f)),got=require(a9_0x733eba(0x275)),{v4:uuidv4}=require(a9_0x733eba(0x268)),webSocketUtils=require(a9_0x733eba(0x2c7)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a9_0x733eba(0x211)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader}=require(a9_0x733eba(0x2b9)),{getCloudProviderObject}=require(a9_0x733eba(0x23f)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x733eba(0x326)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x733eba(0x2b7)),{createK8sClient}=require(a9_0x733eba(0x258)),{sendInstrumentationEvent}=require(a9_0x733eba(0x327));exports[a9_0x733eba(0x2dd)]='grid',exports[a9_0x733eba(0x311)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x733eba(0x2fa)]=function(_0x30211d){const _0x20993f=a9_0x733eba,_0x2e5c89={};_0x2e5c89[_0x20993f(0x2a3)]=_0x20993f(0x29c),_0x2e5c89['YyRsV']='string',_0x2e5c89[_0x20993f(0x282)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2e5c89[_0x20993f(0x2d8)]=_0x20993f(0x2a2),_0x2e5c89[_0x20993f(0x243)]=_0x20993f(0x330),_0x2e5c89[_0x20993f(0x306)]=_0x20993f(0x32f),_0x2e5c89[_0x20993f(0x207)]=_0x20993f(0x28f),_0x2e5c89[_0x20993f(0x2e2)]=_0x20993f(0x251);const _0x1b1ac5=_0x2e5c89,_0x209d53={};_0x209d53[_0x20993f(0x323)]=_0x1b1ac5[_0x20993f(0x2a3)],_0x209d53[_0x20993f(0x2fe)]=_0x1b1ac5[_0x20993f(0x24c)];const _0x45a23d={};_0x45a23d[_0x20993f(0x323)]=_0x1b1ac5[_0x20993f(0x282)],_0x45a23d[_0x20993f(0x2fe)]=_0x1b1ac5[_0x20993f(0x24c)];const _0x125f2d={};_0x125f2d['description']=_0x1b1ac5[_0x20993f(0x2d8)],_0x125f2d[_0x20993f(0x2fe)]=_0x1b1ac5[_0x20993f(0x24c)];const _0x38d978={};_0x38d978[_0x20993f(0x323)]=_0x1b1ac5[_0x20993f(0x243)],_0x38d978[_0x20993f(0x2fe)]=_0x1b1ac5[_0x20993f(0x24c)];const _0x541269={};_0x541269[_0x20993f(0x323)]=_0x1b1ac5[_0x20993f(0x306)],_0x541269[_0x20993f(0x2fe)]=_0x1b1ac5['YyRsV'];const _0x5664ea={};_0x5664ea[_0x20993f(0x323)]=_0x1b1ac5[_0x20993f(0x207)],_0x5664ea[_0x20993f(0x2fe)]=_0x1b1ac5['YyRsV'];const _0xf73ffb={};return _0xf73ffb[_0x20993f(0x23b)]=_0x209d53,_0xf73ffb[_0x20993f(0x31e)]=_0x45a23d,_0xf73ffb['cluster-name']=_0x125f2d,_0xf73ffb[_0x20993f(0x281)]=_0x38d978,_0xf73ffb[_0x20993f(0x2bb)]=_0x541269,_0xf73ffb[_0x20993f(0x339)]=_0x5664ea,_0x30211d[_0x20993f(0x30d)](HELP_HEADER_MESSAGE[_0x20993f(0x29d)])[_0x20993f(0x264)](HELP_FOOTER_MESSAGE)[_0x20993f(0x2a6)](_0xf73ffb)[_0x20993f(0x251)](_0x1b1ac5['LSeZj'])['argv'];},exports[a9_0x733eba(0x244)]=async function(_0x474949){const _0xf7edd=a9_0x733eba,_0x4482da={'fDMpk':_0xf7edd(0x279),'WwPrd':_0xf7edd(0x29c),'egBwY':_0xf7edd(0x298),'mJaRQ':_0xf7edd(0x1fa),'krePu':_0xf7edd(0x2a2),'tbyby':_0xf7edd(0x330),'LzAMd':_0xf7edd(0x32f),'oAMWn':'Create\x20a\x20private/public\x20grid.','YVWZO':_0xf7edd(0x251),'ZFzoI':_0xf7edd(0x331),'Fceqy':_0xf7edd(0x249),'JxgKs':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','wgYSA':_0xf7edd(0x2d3),'ZLLkF':_0xf7edd(0x233),'LdMda':function(_0x456090){return _0x456090();},'eMuHG':function(_0x291fad){return _0x291fad();},'TZlxC':function(_0xe4acf,_0x416093){return _0xe4acf!==_0x416093;},'qvGYl':_0xf7edd(0x234),'iUpfE':_0xf7edd(0x32a),'UIhJU':function(_0x3c1ba5,_0x31712c,_0x54375b,_0x39137e,_0x202357,_0x1846db,_0x4f039c){return _0x3c1ba5(_0x31712c,_0x54375b,_0x39137e,_0x202357,_0x1846db,_0x4f039c);},'dlRUx':'create-grid-called','jlJbF':'init-not-called','qmSPW':function(_0xed5179,_0x2956e0,_0x51da80,_0x5d3e7a,_0x1cdc0d,_0x40472c,_0x181718){return _0xed5179(_0x2956e0,_0x51da80,_0x5d3e7a,_0x1cdc0d,_0x40472c,_0x181718);},'frlNp':_0xf7edd(0x2b2),'EvPCr':_0xf7edd(0x2bd),'OkqhA':'Adding\x20Websocket\x20listeners','UquCU':function(_0xd70a05,_0x616771){return _0xd70a05!==_0x616771;},'hGjTn':_0xf7edd(0x2f0),'UrDxG':function(_0x52bb94,_0x3dd728){return _0x52bb94===_0x3dd728;},'TJlPx':_0xf7edd(0x262),'pyzLc':_0xf7edd(0x213),'cANYm':function(_0x55462f,_0x495b6f,_0xb34731,_0x5b5564,_0x5cd06e,_0x278763,_0x25d5bc,_0xa3dbed){return _0x55462f(_0x495b6f,_0xb34731,_0x5b5564,_0x5cd06e,_0x278763,_0x25d5bc,_0xa3dbed);},'kUKBM':_0xf7edd(0x239),'eAplI':function(_0x41d708,_0xd2887b){return _0x41d708===_0xd2887b;},'CsHjb':'PrBuF','Awjke':'DUlLh','cOCbL':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','JXpjH':_0xf7edd(0x2f9),'uXTcD':function(_0x5a46b7,_0x4246f8){return _0x5a46b7===_0x4246f8;},'WdrAO':_0xf7edd(0x335),'jTvAF':function(_0x37c1a4,_0x4219a6){return _0x37c1a4!==_0x4219a6;},'JVcbh':_0xf7edd(0x284),'jfsSD':_0xf7edd(0x294),'ZLTdM':function(_0xcfaca3,_0x193e98){return _0xcfaca3===_0x193e98;},'EBhpn':_0xf7edd(0x28e),'tCplE':_0xf7edd(0x226),'Oqkse':_0xf7edd(0x293),'zRnAN':function(_0x3f893d,_0x1bea80,_0x12986a){return _0x3f893d(_0x1bea80,_0x12986a);},'vUnom':function(_0x538ab4,_0x9bf7ca){return _0x538ab4===_0x9bf7ca;},'uxsiT':function(_0x1fcc03,_0x84a539){return _0x1fcc03===_0x84a539;},'lroFq':_0xf7edd(0x20c),'beZUD':_0xf7edd(0x314),'VyMhF':_0xf7edd(0x28b),'NCEzN':function(_0x37a086,_0x2bd3e4,_0x32dfe7,_0x5f1271,_0x4dd8a2,_0x3b8875,_0x445718,_0x17b624){return _0x37a086(_0x2bd3e4,_0x32dfe7,_0x5f1271,_0x4dd8a2,_0x3b8875,_0x445718,_0x17b624);},'phRCV':_0xf7edd(0x2f3),'dgWxv':function(_0x262b6b,_0xa02c93){return _0x262b6b===_0xa02c93;},'NqyHz':function(_0x5525b4,_0x508437){return _0x5525b4===_0x508437;},'mwwAs':_0xf7edd(0x22e),'wlqGz':_0xf7edd(0x2f8),'UriwJ':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','LtYaU':_0xf7edd(0x2d0),'ohxim':_0xf7edd(0x290),'RlJhP':_0xf7edd(0x20e),'jfSAy':_0xf7edd(0x296),'brupU':_0xf7edd(0x31f),'LGJMM':function(_0x197b68,_0x481cdd){return _0x197b68===_0x481cdd;},'cKDcI':'GhoUY','fnuFm':_0xf7edd(0x208),'CQReW':_0xf7edd(0x291),'UQNbk':function(_0x46b4ee,_0xf43a14,_0x2ab27f,_0x5dd675,_0x4eab23,_0x5a5ffb,_0x1d0139,_0x8e44bf){return _0x46b4ee(_0xf43a14,_0x2ab27f,_0x5dd675,_0x4eab23,_0x5a5ffb,_0x1d0139,_0x8e44bf);},'CVTrd':_0xf7edd(0x21a),'dDqGP':function(_0x8ee1b2,_0xe117a0){return _0x8ee1b2===_0xe117a0;},'LgdUs':_0xf7edd(0x312),'egARp':'DLIeP','phmLf':function(_0x50ddc0,_0x496644){return _0x50ddc0===_0x496644;},'GwqNd':_0xf7edd(0x257),'xRBqx':'aVIyZ','ALdAM':_0xf7edd(0x301),'JPwJo':'create-grid-checks-invalid-profile','Mwszj':function(_0x570a4d,_0x4a78fe){return _0x570a4d===_0x4a78fe;},'HjLgS':_0xf7edd(0x300),'fVZSy':function(_0x4594fc,_0x59c91a){return _0x4594fc!==_0x59c91a;},'jHDRv':_0xf7edd(0x313),'CHbnP':_0xf7edd(0x219),'exFSX':function(_0xedee2,_0x2d3efa,_0x17c6cb,_0x2c218a,_0x5d24f7,_0x4bcf80,_0x2cd0c5,_0x1d0eb2,_0x4e6f21,_0x40d025,_0x1c65cf,_0x383ecb){return _0xedee2(_0x2d3efa,_0x17c6cb,_0x2c218a,_0x5d24f7,_0x4bcf80,_0x2cd0c5,_0x1d0eb2,_0x4e6f21,_0x40d025,_0x1c65cf,_0x383ecb);},'LdnyZ':_0xf7edd(0x27b),'sPDNb':function(_0x4142b9,_0x2e82a8,_0x602d0b,_0x50577d,_0x4cf8f4,_0x37efef){return _0x4142b9(_0x2e82a8,_0x602d0b,_0x50577d,_0x4cf8f4,_0x37efef);},'PfjZb':_0xf7edd(0x338),'YqxXQ':function(_0x11a5e7,_0x2dc1bc){return _0x11a5e7===_0x2dc1bc;},'GwtiN':function(_0x2f8065,_0x49ab7d,_0x4d92d2,_0x4c9471){return _0x2f8065(_0x49ab7d,_0x4d92d2,_0x4c9471);},'VwbZx':function(_0x127ac4){return _0x127ac4();},'DmTnO':_0xf7edd(0x22d),'jiEoa':_0xf7edd(0x21b),'SKqcg':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Pngab':function(_0x1202a6,_0x528252){return _0x1202a6!=_0x528252;},'Shsrz':function(_0xe3b482,_0x2c6469){return _0xe3b482!==_0x2c6469;},'ORMOH':function(_0x5ada67,_0xb43ef2){return _0x5ada67!=_0xb43ef2;},'xYrNi':function(_0x2375ce,_0x31bdb7){return _0x2375ce>_0x31bdb7;},'zVQnJ':_0xf7edd(0x28c),'hYHeP':'pre-spawned-subnets-not-selected','Dqmwq':_0xf7edd(0x2e6),'WMmfu':'pre-spawned-invalid-vpc','NHblN':function(_0x4464da,_0x1601cd){return _0x4464da===_0x1601cd;},'lHxIS':_0xf7edd(0x272),'mKtKK':_0xf7edd(0x2df),'jbeGs':_0xf7edd(0x1fc),'AqlEZ':_0xf7edd(0x205),'RBizw':function(_0x4f06b2,_0x4ccb6f){return _0x4f06b2===_0x4ccb6f;},'MzRHW':function(_0x3e7e80,_0x50e10e){return _0x3e7e80(_0x50e10e);},'FpzVN':function(_0x6fc9a7,_0x241a89){return _0x6fc9a7===_0x241a89;},'NzBZt':function(_0x1fed9a,_0x9baac1){return _0x1fed9a==_0x9baac1;},'wwLye':_0xf7edd(0x263),'muOhV':_0xf7edd(0x1f6),'kJzyx':_0xf7edd(0x31c),'DuPVE':_0xf7edd(0x307),'Crvsf':_0xf7edd(0x278),'TKpRv':_0xf7edd(0x2e8),'EfxRs':_0xf7edd(0x250),'NZkaE':function(_0x282a23,_0x5dbdd9,_0x36b956,_0x14e523,_0x4fe59d,_0x5e0d4b,_0x2bbb61,_0x30108f,_0x14faef,_0x5734bd,_0x2978cf){return _0x282a23(_0x5dbdd9,_0x36b956,_0x14e523,_0x4fe59d,_0x5e0d4b,_0x2bbb61,_0x30108f,_0x14faef,_0x5734bd,_0x2978cf);},'cUmdu':_0xf7edd(0x277),'BteRP':_0xf7edd(0x2bc),'WaOXJ':function(_0x433658,_0xc07d18,_0x3f216b){return _0x433658(_0xc07d18,_0x3f216b);},'upFfp':_0xf7edd(0x2af),'oQVLR':_0xf7edd(0x23c),'rrVPo':_0xf7edd(0x216),'HllLR':function(_0x20d7db,_0x2fe6d7){return _0x20d7db==_0x2fe6d7;},'Cqfbh':_0xf7edd(0x2ef),'vbrqL':_0xf7edd(0x210),'OZkSj':function(_0x3c36d1,_0xa5101a){return _0x3c36d1===_0xa5101a;},'QZuqY':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','hqETX':_0xf7edd(0x2e3),'jGTYa':function(_0x15b083,_0x31fac9,_0x392298,_0x31fe56,_0x1e931f,_0x50fab4,_0x21cc6c,_0x527e42){return _0x15b083(_0x31fac9,_0x392298,_0x31fe56,_0x1e931f,_0x50fab4,_0x21cc6c,_0x527e42);},'oZihp':'get-grid-url-non-200','fBuRh':_0xf7edd(0x2d1)};let _0x3424b5=![],_0x4712db,_0x5289a4,_0x40f250,_0x5606eb,_0x2ab9d9,_0x355250,_0x3285c4,_0x30cd7f,_0x3b8469,_0x3a720e,_0x3d6bc6,_0x2796d2,_0x1d8fda=0x1,_0x348980=0xe;try{global_registry[_0xf7edd(0x305)]=_0x4482da['LdMda'](uuidv4),global_registry[_0xf7edd(0x246)]=![];if(!fs[_0xf7edd(0x201)](_0x4482da[_0xf7edd(0x30b)](getCredentialsPath))){if(_0x4482da[_0xf7edd(0x204)](_0x4482da[_0xf7edd(0x2d5)],_0x4482da['qvGYl'])){const _0x106f47={};_0x106f47[_0xf7edd(0x2fe)]=_0x391da8[_0xf7edd(0x32b)],_0x106f47['message']=_0xf7edd(0x2cd)+_0x3f3b33+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x385810['sendEventToBackend'](_0x162f60,_0x106f47,_0x4482da[_0xf7edd(0x1f4)]),_0x92e469[_0xf7edd(0x2f7)](_0xf7edd(0x2cd)+_0x433128+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x2fc450=!![];}else console['error'](_0x4482da[_0xf7edd(0x2ea)]),await _0x4482da[_0xf7edd(0x27f)](sendInstrumentationEvent,_0x474949,_0x4482da[_0xf7edd(0x26c)],messageTypes['ERROR'],_0x4482da[_0xf7edd(0x2ce)],null,_0x474949),process['exit'](0x1);}await _0x4482da[_0xf7edd(0x30c)](sendInstrumentationEvent,_0x474949,_0x4482da[_0xf7edd(0x26c)],messageTypes['INFO'],null,null,_0x474949);const _0x31fabe=JSON[_0xf7edd(0x28a)](fs[_0xf7edd(0x2b6)](_0x4482da[_0xf7edd(0x30b)](getCredentialsPath)));global_registry[_0xf7edd(0x2fd)]=_0x31fabe[_0xf7edd(0x31c)][_0xf7edd(0x30f)],global_registry[_0xf7edd(0x242)]=_0x31fabe[_0xf7edd(0x31c)]['password'];const _0x4988b1=WS_ENDPOINT['replace'](_0x4482da[_0xf7edd(0x24e)],_0x31fabe[_0xf7edd(0x31c)][_0xf7edd(0x30f)])[_0xf7edd(0x297)](_0x4482da[_0xf7edd(0x2b0)],_0x31fabe[_0xf7edd(0x31c)][_0xf7edd(0x23a)]),_0x53302f={};_0x53302f[_0xf7edd(0x2dc)]=ws,_0x53302f[_0xf7edd(0x202)]=0x36ee80,_0x3a720e=new ReconnectingWebSocket(_0x4988b1,[],_0x53302f),logger[_0xf7edd(0x260)](_0x4482da[_0xf7edd(0x2fb)]),webSocketUtils['addListeners'](_0x3a720e,_0x474949[_0xf7edd(0x2e5)],_0x474949[_0xf7edd(0x23a)]);let _0x157102=DEFAULT_GRID_NAME;if(_0x474949[_0xf7edd(0x2e0)]||_0x474949[_0xf7edd(0x2e9)]||_0x474949[_0xf7edd(0x2bb)]){if(_0x4482da[_0xf7edd(0x295)](_0x4482da[_0xf7edd(0x2c0)],_0x4482da[_0xf7edd(0x2c0)])){const _0x43136b={};_0x43136b['description']=_0x4482da[_0xf7edd(0x24a)],_0x43136b['type']=_0x4482da['egBwY'];const _0x2c9294={};_0x2c9294[_0xf7edd(0x323)]=_0x4482da[_0xf7edd(0x2b8)],_0x2c9294[_0xf7edd(0x2fe)]=_0x4482da['egBwY'];const _0x407994={};_0x407994[_0xf7edd(0x323)]=_0x4482da[_0xf7edd(0x333)],_0x407994['type']=_0x4482da[_0xf7edd(0x2e1)];const _0x53536c={};_0x53536c[_0xf7edd(0x323)]=_0x4482da[_0xf7edd(0x318)],_0x53536c[_0xf7edd(0x2fe)]=_0x4482da[_0xf7edd(0x2e1)];const _0x297bc5={};_0x297bc5[_0xf7edd(0x323)]=_0x4482da[_0xf7edd(0x2b4)],_0x297bc5['type']=_0x4482da[_0xf7edd(0x2e1)];const _0x573293={};_0x573293[_0xf7edd(0x323)]=_0x4482da['oAMWn'],_0x573293[_0xf7edd(0x2fe)]=_0x4482da[_0xf7edd(0x2e1)];const _0x19fe69={};return _0x19fe69[_0xf7edd(0x23b)]=_0x43136b,_0x19fe69[_0xf7edd(0x31e)]=_0x2c9294,_0x19fe69[_0xf7edd(0x270)]=_0x407994,_0x19fe69[_0xf7edd(0x281)]=_0x53536c,_0x19fe69[_0xf7edd(0x2bb)]=_0x297bc5,_0x19fe69[_0xf7edd(0x339)]=_0x573293,_0x1f1a7e[_0xf7edd(0x30d)](_0x25abe8['create'])[_0xf7edd(0x264)](_0x2c0c21)[_0xf7edd(0x2a6)](_0x19fe69)[_0xf7edd(0x251)](_0x4482da[_0xf7edd(0x25d)])[_0xf7edd(0x304)];}else{if(!(_0x474949['clusterName']&&_0x474949[_0xf7edd(0x2e9)]&&_0x474949[_0xf7edd(0x2bb)])){if(_0x4482da[_0xf7edd(0x2be)](_0x4482da[_0xf7edd(0x31d)],_0x4482da[_0xf7edd(0x31d)]))_0x4712db=_0x4482da[_0xf7edd(0x2d6)],await _0x4482da['cANYm'](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da[_0xf7edd(0x26c)],_0x4482da[_0xf7edd(0x1fe)],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process['exit'](0x1);else throw _0x20e09c;}![AWS,AZURE,GCP]['includes'](_0x474949['cloudProvider'][_0xf7edd(0x2a1)]())&&(_0x4482da['eAplI'](_0x4482da[_0xf7edd(0x203)],_0x4482da[_0xf7edd(0x2ac)])?_0x58f026[_0xf7edd(0x2e9)]={}:(_0x4712db=_0x4482da['cOCbL'],await _0x4482da['cANYm'](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da['dlRUx'],_0x4482da[_0xf7edd(0x20d)],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1)));if(_0x474949[_0xf7edd(0x303)]&&_0x4482da[_0xf7edd(0x2a0)](_0x474949['privateGrid'][_0xf7edd(0x2a1)](),_0x4482da[_0xf7edd(0x2a9)])){if(_0x4482da['jTvAF'](_0x4482da['JVcbh'],_0x4482da['jfsSD']))global_registry[_0xf7edd(0x246)]=!![];else{const _0x3bc359=_0x4482da[_0xf7edd(0x32c)][_0xf7edd(0x232)]('|');let _0x50348a=0x0;while(!![]){switch(_0x3bc359[_0x50348a++]){case'0':_0x3c7295['clusterName']=_0x2ef5ca;continue;case'1':const _0x5a78b5={};_0x5a78b5[_0xf7edd(0x2fe)]=_0x36b4a5['CLI_RUN_STARTED'],_0x5a78b5[_0xf7edd(0x23e)]=_0xf7edd(0x27d),_0x1f30ee['sendEventToBackend'](_0x20630d,_0x5a78b5);continue;case'2':_0x224895[_0xf7edd(0x2f7)](_0x4301bd);continue;case'3':_0x232783='Spawning\x20the\x20grid\x20'+_0x5f3f83+_0xf7edd(0x218)+_0x12324c+'\x27';continue;case'4':_0x49b2f5[_0xf7edd(0x2de)]=_0x2b8aa0['hubVersion'];continue;case'5':const _0x36bd87={};_0x36bd87[_0xf7edd(0x2fe)]=_0x113a09[_0xf7edd(0x32b)],_0x36bd87[_0xf7edd(0x23e)]=_0x4da741,_0x905563[_0xf7edd(0x27a)](_0x2d01cc,_0x36bd87);continue;case'6':_0x26f4d4['clusterRegion']=_0x303cde;continue;case'7':_0x4474d2[_0xf7edd(0x2e9)]=_0x446b80;continue;case'8':_0x546dde['browserVersion']=_0x375602[_0xf7edd(0x26a)];continue;}break;}}}_0x3424b5=!![],_0x40f250=_0x474949[_0xf7edd(0x2e0)],_0x5289a4=_0x474949[_0xf7edd(0x2e9)][_0xf7edd(0x2a1)](),_0x5606eb=_0x474949['region'];}}_0x474949[_0xf7edd(0x25b)]&&(_0x4482da[_0xf7edd(0x2db)](_0x4482da[_0xf7edd(0x22f)],_0x4482da[_0xf7edd(0x1ff)])?_0x2da2cb[_0xf7edd(0x246)]=!![]:_0x157102=_0x474949[_0xf7edd(0x25b)]);global_registry[_0xf7edd(0x25b)]=_0x157102;const _0x72bc11={'method':_0x4482da[_0xf7edd(0x22b)],'headers':_0x4482da[_0xf7edd(0x30a)](getAuthHeader,_0x31fabe[_0xf7edd(0x31c)][_0xf7edd(0x30f)],_0x31fabe[_0xf7edd(0x31c)][_0xf7edd(0x23a)])},_0x4d3639='https://'+AG_API_URL+_0xf7edd(0x230),_0x3a0a4d={};_0x3a0a4d[_0xf7edd(0x25b)]=_0x157102;const _0x3e12ba={'searchParams':_0x3a0a4d,..._0x72bc11},_0x35f655=_0x3e12ba,_0x336b8d=await _0x4482da[_0xf7edd(0x30a)](got,_0x4d3639,_0x35f655);(_0x4482da['uXTcD'](_0x336b8d,null)||_0x4482da[_0xf7edd(0x280)](_0x336b8d,undefined))&&(_0x4482da[_0xf7edd(0x286)](_0x4482da['lroFq'],_0x4482da[_0xf7edd(0x2ad)])?_0x13533b=_0x159e6f[_0xf7edd(0x25b)]:(_0x4712db=_0x4482da[_0xf7edd(0x32d)],await _0x4482da[_0xf7edd(0x235)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da['dlRUx'],_0x4482da[_0xf7edd(0x1fd)],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1)));_0x4482da[_0xf7edd(0x254)](_0x336b8d[_0xf7edd(0x2c9)],0x191)&&(_0x4482da[_0xf7edd(0x32e)](_0x4482da[_0xf7edd(0x26f)],_0x4482da[_0xf7edd(0x29f)])?_0xdf6a95[_0xf7edd(0x2f7)](_0xf7edd(0x31a)+_0x1e91eb[_0xf7edd(0x273)](_0x25ab87)+'\x20'):(_0x4712db=_0x4482da[_0xf7edd(0x1f8)],await _0x4482da[_0xf7edd(0x235)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes['ERROR'],_0x4482da[_0xf7edd(0x26c)],_0x4482da[_0xf7edd(0x20b)],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1)));_0x4482da[_0xf7edd(0x1fb)](_0x336b8d[_0xf7edd(0x2c9)],0xc8)&&(_0x4482da[_0xf7edd(0x295)](_0x4482da[_0xf7edd(0x287)],_0x4482da[_0xf7edd(0x225)])?(_0x4712db=_0xf7edd(0x274)+JSON[_0xf7edd(0x273)](_0x336b8d),await _0x4482da['cANYm'](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes['ERROR'],_0x4482da[_0xf7edd(0x26c)],_0x4482da['jfSAy'],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1)):(_0x3f6953=_0x236d36[_0xf7edd(0x241)],_0x402002=_0x4482da[_0xf7edd(0x2fc)]));const _0x1d00c5=JSON['parse'](_0x336b8d['body']),_0x4c06b4={};_0x4c06b4[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x238)],_0x4c06b4['message']='CLI\x20run\x20started',webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x4c06b4);const _0x16f7f3={};_0x16f7f3[_0xf7edd(0x2fe)]=WS_EVENTS['LOG'],_0x16f7f3['message']=_0x4482da[_0xf7edd(0x328)],webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x16f7f3);_0x1d00c5[_0xf7edd(0x2a7)]&&(_0x4482da[_0xf7edd(0x1f3)](_0x4482da['cKDcI'],_0x4482da[_0xf7edd(0x25a)])?_0x20574f[_0xf7edd(0x246)]=!![]:(_0x4712db=_0x4482da[_0xf7edd(0x25c)],await _0x4482da[_0xf7edd(0x256)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da['dlRUx'],_0x4482da[_0xf7edd(0x21c)],_0x4482da['wgYSA']),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1)));const _0x18eeb7=_0x1d00c5[_0xf7edd(0x2d7)];let _0x37b021=_0x18eeb7[_0x1d00c5['defaultGridProfile']];_0x474949['gridProfile']&&(_0x4482da[_0xf7edd(0x255)](_0x4482da[_0xf7edd(0x217)],_0x4482da[_0xf7edd(0x217)])?_0x37b021=_0x18eeb7[_0x474949[_0xf7edd(0x310)]]:(_0x44eccf[_0xf7edd(0x2d3)](_0x4482da['JxgKs']),_0xad36b9['exit'](0x1)));if(_0x4482da[_0xf7edd(0x280)](_0x3424b5,![])){if(_0x4482da[_0xf7edd(0x254)](_0x4482da[_0xf7edd(0x229)],_0x4482da['egARp'])){if(_0x4482da['phmLf'](_0x37b021,undefined)){if(_0x4482da['UquCU'](_0x4482da[_0xf7edd(0x220)],_0x4482da[_0xf7edd(0x2b1)]))_0x4712db=_0x4482da[_0xf7edd(0x289)],await _0x4482da['UQNbk'](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da['dlRUx'],_0x4482da[_0xf7edd(0x1f7)],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1);else{const _0x2db11f={};_0x2db11f[_0xf7edd(0x2fe)]=_0x4d6da9['LOG'],_0x2db11f[_0xf7edd(0x23e)]=_0xeadb1f,_0x3cdd76[_0xf7edd(0x27a)](_0xae5721,_0x2db11f,_0x4482da[_0xf7edd(0x2c2)],!![]);}}global_registry[_0xf7edd(0x308)]=_0x37b021['id'];(_0x4482da[_0xf7edd(0x266)](_0x5289a4,AZURE)||_0x4482da['vUnom'](_0x37b021?.['cloudProvider'],AZURE))&&(_0x4482da[_0xf7edd(0x1fb)](_0x4482da[_0xf7edd(0x228)],_0x4482da[_0xf7edd(0x228)])?_0x2d6a95=_0xfa6dfc[_0x22d5fd[_0xf7edd(0x310)]]:(console[_0xf7edd(0x2d3)](_0x4482da['JxgKs']),process['exit'](0x1)));_0x4712db=_0xf7edd(0x252)+_0x157102+_0xf7edd(0x292)+_0x37b021[_0xf7edd(0x334)]+_0xf7edd(0x222),logger[_0xf7edd(0x2f7)](_0x4712db);const _0x4880e8={};_0x4880e8[_0xf7edd(0x2fe)]=WS_EVENTS['LOG'],_0x4880e8[_0xf7edd(0x23e)]=_0x4712db,webSocketUtils['sendEventToBackend'](_0x3a720e,_0x4880e8),_0x5289a4=_0x37b021[_0xf7edd(0x2e9)],_0x40f250=_0x37b021[_0xf7edd(0x2e0)],_0x5606eb=_0x37b021[_0xf7edd(0x2bb)],_0x2ab9d9=_0x37b021[_0xf7edd(0x200)],_0x355250=_0x37b021[_0xf7edd(0x271)],_0x3285c4=_0x37b021[_0xf7edd(0x221)],securityGroups=_0x37b021[_0xf7edd(0x321)],subnets=_0x37b021[_0xf7edd(0x25e)],_0x30cd7f=_0x37b021[_0xf7edd(0x26e)],_0x1d8fda=_0x37b021[_0xf7edd(0x24b)],_0x348980=_0x37b021[_0xf7edd(0x1f9)],_0x3d6bc6=_0x1d00c5['hubVersion'],_0x2796d2=_0x1d00c5[_0xf7edd(0x26a)],_0x4482da[_0xf7edd(0x295)](_0x37b021[_0xf7edd(0x303)],undefined)&&_0x37b021[_0xf7edd(0x303)]&&(_0x4482da[_0xf7edd(0x317)](_0x4482da[_0xf7edd(0x2c5)],_0x4482da['CHbnP'])?global_registry[_0xf7edd(0x246)]=!![]:_0x253b11[_0xf7edd(0x2f7)](_0xf7edd(0x206)+_0x734847+'\x20')),_0x4482da[_0xf7edd(0x21f)](updateGlobalRegistryWithConfig,_0x5289a4,_0x40f250,_0x5606eb,_0x2ab9d9,_0x355250,_0x30cd7f,_0x37b021,_0x3d6bc6,_0x2796d2,_0x1d8fda,_0x348980);}else _0xcdb5b5=_0x4482da[_0xf7edd(0x2ba)];}else{const _0xc57dad=_0x4482da[_0xf7edd(0x22a)][_0xf7edd(0x232)]('|');let _0x6c0c24=0x0;while(!![]){switch(_0xc57dad[_0x6c0c24++]){case'0':global_registry[_0xf7edd(0x2de)]=_0x1d00c5[_0xf7edd(0x2de)];continue;case'1':global_registry[_0xf7edd(0x319)]=_0x5606eb;continue;case'2':_0x4712db=_0xf7edd(0x2d9)+_0x157102+'\x20in\x20existing\x20cluster\x20\x27'+_0x40f250+'\x27';continue;case'3':logger[_0xf7edd(0x2f7)](_0x4712db);continue;case'4':const _0x10249a={};_0x10249a[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x238)],_0x10249a[_0xf7edd(0x23e)]=_0xf7edd(0x27d),webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x10249a);continue;case'5':global_registry[_0xf7edd(0x2e0)]=_0x40f250;continue;case'6':const _0x408d84={};_0x408d84[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x32b)],_0x408d84[_0xf7edd(0x23e)]=_0x4712db,webSocketUtils['sendEventToBackend'](_0x3a720e,_0x408d84);continue;case'7':global_registry[_0xf7edd(0x2e9)]=_0x5289a4;continue;case'8':global_registry['browserVersion']=_0x1d00c5[_0xf7edd(0x26a)];continue;}break;}}const _0x5b8edd=_0x4482da['sPDNb'](getCloudProviderObject,_0x5289a4,_0x40f250,_0x157102,_0x3a720e,webSocketUtils),_0x35a0be=_0x31fabe[_0xf7edd(0x2e9)]||{};if(_0x4482da[_0xf7edd(0x283)](_0x35a0be[_0x5289a4],undefined)){logger['info'](_0x4482da[_0xf7edd(0x2da)]);_0x4482da[_0xf7edd(0x265)](_0x31fabe[_0xf7edd(0x2e9)],undefined)&&(_0x31fabe['cloudProvider']={});_0x31fabe['cloudProvider'][_0x5289a4]={};const _0x3f6ee0=await _0x4482da[_0xf7edd(0x2cc)](inputCloudProviderKeys,_0x5289a4,_0x31fabe,_0x5b8edd);fs[_0xf7edd(0x26d)](_0x4482da[_0xf7edd(0x2cb)](getCredentialsPath),JSON[_0xf7edd(0x273)](_0x3f6ee0)),logger[_0xf7edd(0x260)](_0x4482da[_0xf7edd(0x336)]);}else{_0x4712db=_0x4482da['jiEoa'];const _0x21b739={};_0x21b739['type']=WS_EVENTS[_0xf7edd(0x32b)],_0x21b739[_0xf7edd(0x23e)]=_0x4712db,webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x21b739),logger[_0xf7edd(0x2f7)](_0x4712db),await _0x5b8edd['fetchLocalCreds'](_0x35a0be);}_0x5b8edd['configureIfNotConfigured']();let _0x37166b;if(_0x4482da[_0xf7edd(0x2be)](_0x3424b5,![])){_0x4712db=_0xf7edd(0x2cf)+_0x5606eb+').';const _0x306db4={};_0x306db4[_0xf7edd(0x2fe)]=WS_EVENTS['LOG'],_0x306db4['message']=_0x4712db,webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x306db4),logger[_0xf7edd(0x2f7)](_0x4712db);const _0x481f48=await _0x5b8edd[_0xf7edd(0x332)]();if(_0x481f48){const _0x234f5d={};_0x234f5d[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x32b)],_0x234f5d[_0xf7edd(0x23e)]=_0xf7edd(0x2cd)+_0x40f250+_0xf7edd(0x223),webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x234f5d,_0x4482da[_0xf7edd(0x1f4)]),logger['info']('Cluster\x20'+_0x40f250+_0xf7edd(0x223)),_0x3424b5=!![];}else{const _0x2a4c04={};_0x2a4c04[_0xf7edd(0x2fe)]=WS_EVENTS['LOG'],_0x2a4c04['message']=_0x4482da['SKqcg'],webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x2a4c04),logger['info'](_0x4482da[_0xf7edd(0x2aa)]);const _0xe298f6=_0x4482da[_0xf7edd(0x2ab)](_0x3285c4,null)&&_0x4482da[_0xf7edd(0x27c)](_0x3285c4,undefined),_0x13d1cf=_0x4482da[_0xf7edd(0x2ee)](subnets,null)&&_0x4482da[_0xf7edd(0x317)](subnets,undefined)&&_0x4482da[_0xf7edd(0x31b)](subnets['length'],0x0);if(_0xe298f6){_0x4482da[_0xf7edd(0x1f3)](_0x13d1cf,![])&&(_0x4712db=_0x4482da[_0xf7edd(0x209)],await _0x4482da[_0xf7edd(0x235)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da[_0xf7edd(0x26c)],_0x4482da['hYHeP'],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1));const _0x35272c=await _0x5b8edd[_0xf7edd(0x2ae)](_0x3285c4);_0x4482da[_0xf7edd(0x283)](_0x35272c,![])?(_0x4712db=_0x4482da['Dqmwq'],await _0x4482da[_0xf7edd(0x256)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da[_0xf7edd(0x26c)],_0x4482da[_0xf7edd(0x2b3)],_0x4482da[_0xf7edd(0x2c2)]),logger['error'](_0x4712db),process[_0xf7edd(0x215)](0x1)):logger[_0xf7edd(0x2f7)](_0xf7edd(0x206)+_0x3285c4+'\x20');const _0x7e0b9f=await _0x5b8edd[_0xf7edd(0x261)](subnets,_0x3285c4);_0x4482da[_0xf7edd(0x240)](_0x7e0b9f[0x0],![])?(_0x4712db=_0xf7edd(0x231)+_0x7e0b9f[0x1]+_0xf7edd(0x329)+_0x3285c4+_0xf7edd(0x2ec),await _0x4482da['NCEzN'](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da[_0xf7edd(0x26c)],_0x4482da[_0xf7edd(0x24f)],_0x4482da[_0xf7edd(0x2c2)]),logger['error'](_0x4712db),process[_0xf7edd(0x215)](0x1)):logger['info'](_0xf7edd(0x31a)+JSON[_0xf7edd(0x273)](subnets)+'\x20'),await _0x5b8edd[_0xf7edd(0x276)](_0x3285c4,subnets);}else{const _0x36db47=_0x4482da[_0xf7edd(0x24d)][_0xf7edd(0x232)]('|');let _0x415438=0x0;while(!![]){switch(_0x36db47[_0x415438++]){case'0':const _0x50e817={};_0x50e817[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x32b)],_0x50e817[_0xf7edd(0x23e)]=_0x4482da[_0xf7edd(0x325)],webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x50e817);continue;case'1':logger['info'](_0x4482da['AqlEZ']);continue;case'2':logger[_0xf7edd(0x2f7)](_0x4482da['jbeGs']);continue;case'3':await _0x5b8edd[_0xf7edd(0x276)]();continue;case'4':const _0x5cd527={};_0x5cd527[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x32b)],_0x5cd527['message']='Cluster\x20created\x20successfully',webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x5cd527);continue;}break;}}}}_0x3424b5&&_0x4482da[_0xf7edd(0x22c)](_0x5289a4,AZURE)&&(global_registry[_0xf7edd(0x309)]=_0x1d00c5[_0xf7edd(0x21d)],await _0x5b8edd[_0xf7edd(0x2bf)](),await _0x5b8edd[_0xf7edd(0x2f1)]());const [_0x28f451,_0x14e512,_0x4de017,_0x5dd2c6,_0x52a9ab,_0x53c547]=await _0x4482da['MzRHW'](createK8sClient,_0x5b8edd);_0x4482da[_0xf7edd(0x302)](_0x3424b5,![])&&_0x4482da[_0xf7edd(0x285)](_0x5289a4,AWS)&&(_0x37166b=await _0x5b8edd[_0xf7edd(0x26b)](_0x28f451,_0x474949));try{_0x3b8469=_0x4482da[_0xf7edd(0x2a5)](kebabCase,_0x157102),logger[_0xf7edd(0x2f7)](_0x4482da[_0xf7edd(0x2ca)]);const _0x8a182b={};_0x8a182b[_0xf7edd(0x2fe)]=WS_EVENTS['LOG'],_0x8a182b[_0xf7edd(0x23e)]=_0x4482da[_0xf7edd(0x2ca)],webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x8a182b);if(_0x4482da[_0xf7edd(0x1fb)](_0x3b8469,_0x4482da[_0xf7edd(0x2ff)])){const _0x30e5c1={};_0x30e5c1['createdBy']=_0x4482da[_0xf7edd(0x269)],_0x30e5c1[_0xf7edd(0x253)]=_0x4482da['kJzyx'];const _0x2e2a29={};_0x2e2a29[_0xf7edd(0x334)]=_0x3b8469,_0x2e2a29['annotations']=_0x30e5c1;const _0x5b7a00={};_0x5b7a00[_0xf7edd(0x337)]=_0x2e2a29;let _0x5e4c3a=_0x5b7a00;const _0xc24511={};_0xc24511[_0xf7edd(0x320)]=_0x5e4c3a,await _0x28f451[_0xf7edd(0x247)](_0xc24511),logger[_0xf7edd(0x2f7)](_0x4482da['DuPVE']);}const _0x5745ff={};_0x5745ff['type']=WS_EVENTS['LOG'],_0x5745ff[_0xf7edd(0x23e)]=_0x4482da[_0xf7edd(0x20a)],webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x5745ff);const _0x40b4c7={};_0x40b4c7[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x32b)],_0x40b4c7[_0xf7edd(0x23e)]=_0x4482da[_0xf7edd(0x212)],webSocketUtils['sendEventToBackend'](_0x3a720e,_0x40b4c7),logger[_0xf7edd(0x2f7)](_0x4482da[_0xf7edd(0x2ed)]);let _0x375f99={};_0x4482da['ZLTdM'](_0x5289a4,AZURE)&&(_0x375f99={'clientId':await _0x5b8edd[_0xf7edd(0x27e)]('turboscale-managed-identity-'+_0x40f250)});await _0x4482da[_0xf7edd(0x288)](addGridComponents,_0x28f451,_0x14e512,_0x4de017,_0x5dd2c6,_0x3b8469,_0x40f250,_0x37166b,_0x52a9ab,_0x53c547,_0x375f99),_0x4712db=_0x4482da[_0xf7edd(0x2e4)],logger[_0xf7edd(0x2f7)](_0x4712db);const _0x2bbcbb={};_0x2bbcbb[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x32b)],_0x2bbcbb[_0xf7edd(0x23e)]=_0x4712db,webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x2bbcbb),_0x4712db=_0x4482da['BteRP'],logger[_0xf7edd(0x2f7)](_0x4712db);const _0x3daab5={};_0x3daab5['type']=WS_EVENTS[_0xf7edd(0x32b)],_0x3daab5[_0xf7edd(0x23e)]=_0x4712db,webSocketUtils['sendEventToBackend'](_0x3a720e,_0x3daab5),await webSocketUtils[_0xf7edd(0x245)](0xea60);const _0x3a3d24=await _0x4482da[_0xf7edd(0x2f5)](getNamespaceUID,_0x28f451,_0x3b8469);let _0x1dc2d9=global_registry[_0xf7edd(0x246)]?_0x4482da[_0xf7edd(0x248)]:_0x4482da[_0xf7edd(0x214)];const _0x12eee3={};_0x12eee3['name']=_0x1dc2d9,_0x12eee3[_0xf7edd(0x227)]=_0x4482da[_0xf7edd(0x324)];let _0x2bc77b=await _0x28f451[_0xf7edd(0x259)](_0x12eee3),_0x228dae=_0x5b8edd[_0xf7edd(0x2d2)](_0x2bc77b)+'/'+_0x3b8469,_0x1f531b=_0x4482da[_0xf7edd(0x2ba)];try{const _0x513fa7=_0xf7edd(0x29a)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x3a3d24,_0x2e0e17=await _0x4482da[_0xf7edd(0x2f5)](got,_0x513fa7,_0x72bc11);(_0x4482da['NzBZt'](_0x2e0e17,null)||_0x4482da[_0xf7edd(0x2f2)](_0x2e0e17,undefined))&&(_0x4712db=_0x4482da[_0xf7edd(0x25f)],await _0x4482da[_0xf7edd(0x235)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes['ERROR'],_0x4482da[_0xf7edd(0x26c)],_0x4482da[_0xf7edd(0x2e7)],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1));_0x4482da[_0xf7edd(0x29b)](_0x2e0e17[_0xf7edd(0x2c9)],0x191)&&(_0x4712db=_0x4482da[_0xf7edd(0x2a8)],await _0x4482da[_0xf7edd(0x235)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da[_0xf7edd(0x26c)],_0x4482da[_0xf7edd(0x267)],_0x4482da[_0xf7edd(0x2c2)]),logger[_0xf7edd(0x2d3)](_0x4712db),process['exit'](0x1));_0x4482da[_0xf7edd(0x295)](_0x2e0e17[_0xf7edd(0x2c9)],0xc8)&&(_0x4712db=_0xf7edd(0x1f5)+JSON[_0xf7edd(0x273)](_0x2e0e17),await _0x4482da[_0xf7edd(0x2d4)](reportToGalactusAndSendToEDS,_0x474949,_0x3a720e,_0x4712db,messageTypes[_0xf7edd(0x2c8)],_0x4482da[_0xf7edd(0x26c)],_0x4482da[_0xf7edd(0x28d)],_0x4482da['wgYSA']),logger[_0xf7edd(0x2d3)](_0x4712db),process[_0xf7edd(0x215)](0x1));const _0x504dc6=JSON[_0xf7edd(0x28a)](_0x2e0e17['body']);_0x504dc6['route53']&&(_0x228dae=_0x504dc6[_0xf7edd(0x241)],_0x1f531b=_0x4482da[_0xf7edd(0x2fc)]),global_registry[_0xf7edd(0x246)]&&(_0x1f531b=_0x4482da[_0xf7edd(0x2ba)]);}catch(_0x487d15){}_0x4712db='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x228dae+'\x20',logger[_0xf7edd(0x2f7)](_0x4712db);const _0x5f22d7={};_0x5f22d7[_0xf7edd(0x2fe)]=WS_EVENTS['LOG'],_0x5f22d7[_0xf7edd(0x23e)]=_0x4712db,webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x5f22d7),_0x4712db=_0xf7edd(0x2c4)+_0x1f531b+_0xf7edd(0x2c6)+_0x228dae+_0xf7edd(0x2eb),logger[_0xf7edd(0x2f7)](_0x4712db);const _0x223a7e={};_0x223a7e[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x32b)],_0x223a7e['message']=_0x4712db,webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x223a7e);const _0x1ff90d={};_0x1ff90d[_0xf7edd(0x2fe)]=WS_EVENTS[_0xf7edd(0x23d)],_0x1ff90d[_0xf7edd(0x23e)]=_0xf7edd(0x30e)+_0x228dae,webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0x1ff90d),await webSocketUtils[_0xf7edd(0x245)](0x7d0);}catch(_0x1b56cc){if(_0x4482da[_0xf7edd(0x266)](_0x3424b5,![]))try{logger[_0xf7edd(0x2f7)](_0xf7edd(0x2b5)),await _0x4482da['sPDNb'](removeGridComponents,_0x28f451,_0x14e512,_0x4de017,_0x5dd2c6,_0x3b8469),await _0x5b8edd[_0xf7edd(0x224)](_0x28f451,global_registry[_0xf7edd(0x319)]);}catch(_0x199ca5){throw _0x199ca5;}throw _0x1b56cc;}}catch(_0xc4ea08){const _0x4809fa=_0xf7edd(0x2c1)+_0xc4ea08+'\x20\x0a'+JSON[_0xf7edd(0x273)](_0xc4ea08)+'\x20';if(_0x3a720e){const _0xb4901d={};_0xb4901d['type']=WS_EVENTS[_0xf7edd(0x32b)],_0xb4901d[_0xf7edd(0x23e)]=_0x4809fa,webSocketUtils[_0xf7edd(0x27a)](_0x3a720e,_0xb4901d,_0x4482da[_0xf7edd(0x2c2)],!![]);}await webSocketUtils[_0xf7edd(0x245)](0x7d0);const _0x236ddf={};_0x236ddf[_0xf7edd(0x2d3)]=_0x4809fa,await _0x4482da[_0xf7edd(0x27f)](sendInstrumentationEvent,_0x474949,_0x4482da[_0xf7edd(0x26c)],messageTypes[_0xf7edd(0x2c8)],_0x4482da[_0xf7edd(0x316)],_0x236ddf,_0x474949),logger[_0xf7edd(0x2d3)](_0x4809fa);}process[_0xf7edd(0x215)](0x0);};function a9_0x4608(){const _0x52dbad=['Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','wgYSA','489652OofVjr','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','jHDRv','://','../../utils/webSocketUtils','ERROR','statusCode','wwLye','VwbZx','GwtiN','Cluster\x20','jlJbF','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','create-grid-checks-auth-failed','grid-spawning-failed','getGridHostname','error','jGTYa','qvGYl','pyzLc','gridProfiles','sKAkM','Spawning\x20the\x20grid\x20','PfjZb','ZLTdM','WebSocket','command','hubVersion','0|2|3|4|1','clusterName','egBwY','LSeZj','get-grid-url-auth-failed','cUmdu','user','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','vbrqL','Spawning\x20grid\x20on\x20to\x20the\x20cluster','cloudProvider','iUpfE','/wd/hub','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','EfxRs','ORMOH','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','ubtZO','createOtherResources','HllLR','create-grid-checks-null-response','1250CBHyjQ','WaOXJ','12xaMwWf','info','bWBDu','non-aws-azure-cluster','builder','OkqhA','Fceqy','bstackUsername','type','muOhV','xJJiV','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','FpzVN','privateGrid','argv','requestId','KiVQz','Namespace\x20Created','gridProfileId','s3Bucket','zRnAN','eMuHG','qmSPW','usage','CLI\x20run\x20finished:\x20','username','gridProfile','desc','SHbEc','bhEAP','MgvfW','68330dqiNlb','fBuRh','fVZSy','tbyby','clusterRegion','Found\x20Subnets:\x20','xYrNi','Browserstack','TJlPx','grid-profile','Grid\x20profile\x20fetched\x20from\x20backend','body','securityGroups','89372IQxDxm','description','rrVPo','jbeGs','../../config/constants','../../utils/instrumentationUtils','brupU','\x20are\x20not\x20present\x20in\x20VPC:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LOG','ZFzoI','VyMhF','NqyHz','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','1|3|2|5|7|6|0|4|8','isClusterPresent','krePu','name','true','DmTnO','metadata','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','private-grid','LGJMM','fDMpk','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','default','JPwJo','UriwJ','maxNodes','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','jTvAF','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','phRCV','kUKBM','tCplE','concurrency','existsSync','connectionTimeout','CsHjb','TZlxC','Cluster\x20created\x20successfully','Found\x20VPC:\x20','LAoWN','zQPGq','zVQnJ','Crvsf','LtYaU','RiKeQ','JXpjH','Iymqs','reconnecting-websocket','get-grid-url-null-response','../../utils/userInput','TKpRv','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','oQVLR','exit','ingress-nginx','LgdUs','\x20in\x20existing\x20cluster\x20\x27','DPBsQ','create-grid-checks-grid-already-exists','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','CVTrd','s3BucketName','9696PdEDCF','exFSX','GwqNd','vpc','\x27\x20grid\x20profile','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','deleteCluster','RlJhP','eZzKL','namespace','HjLgS','egARp','LdnyZ','Oqkse','RBizw','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','FOQFg','EBhpn','/packages/cli/create-grid-checks','Subnets:\x20','split','http','TWTpd','NCEzN','1090299Zqvpmc','387nwwZSw','CLI_RUN_STARTED','prespawned-cluster-args-not-passed','password','grid-name','ingress-nginx-controller','CLI_RUN_FINISHED','message','../../cloudproviders/utils','NHblN','route53','bstackAccesskey','KbDqN','handler','delay','isPrivateGrid','createNamespace','upFfp','https','WwPrd','minNodes','YyRsV','mKtKK','frlNp','lHxIS','Spawning\x20Grid\x20on\x20the\x20Cluster','help','Will\x20be\x20spawning\x20the\x20grid\x20','managedBy','dgWxv','dDqGP','UQNbk','ZYTER','../../utils/createk8sClient','readNamespacedService','fnuFm','gridName','CQReW','YVWZO','subnets','Cqfbh','debug','isSubnetsValid','HvaVF','Creating\x20namespace','epilogue','YqxXQ','Mwszj','hqETX','uuid','kJzyx','browserVersion','setupAutoscaler','dlRUx','writeFileSync','s3bucket','mwwAs','cluster-name','instanceType','pre-spawned-invalid-subnets','stringify','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','got','setupNewCluster','Grid\x20spawned\x20on\x20the\x20cluster','Namespace\x20created','warn','sendEventToBackend','4|2|3|6|7|1|5|0|8','Shsrz','CLI\x20run\x20started','getResourceClientId','UIhJU','vUnom','cloud-provider','reoOH','phmLf','UBNGs','NzBZt','uxsiT','ohxim','NZkaE','ALdAM','parse','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','oZihp','hmhJD','Create\x20a\x20private/public\x20grid.','PpVfz','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','\x20using\x20\x27','GET','Ckpeu','UquCU','create-grid-checks-non-200','replace','string','18626NpfJpk','https://','OZkSj','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','create','48235oJTTuF','wlqGz','uXTcD','toLowerCase','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','aArlE','24XcUDCT','MzRHW','options','alreadyPresent','QZuqY','WdrAO','SKqcg','Pngab','Awjke','beZUD','isVPCPresent','private-ingress-nginx-controller','EvPCr','xRBqx','<UsernamePlaceholder>','WMmfu','LzAMd','Deleting\x20the\x20CloudFormation\x20Stacks','readFileSync','../../utils/gridComponents','mJaRQ','../../utils/utilityMethods','ZLLkF','region','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','<PasswordPlaceholder>','UrDxG','updatePreSpawnedCluster','hGjTn'];a9_0x4608=function(){return _0x52dbad;};return a9_0x4608();}
|
|
1
|
+
function a9_0xcc62(_0x53921c,_0x535a78){const _0x1fb440=a9_0x1fb4();return a9_0xcc62=function(_0xcc62ca,_0x250f08){_0xcc62ca=_0xcc62ca-0xbb;let _0x1b8007=_0x1fb440[_0xcc62ca];return _0x1b8007;},a9_0xcc62(_0x53921c,_0x535a78);}const a9_0x4dd7d5=a9_0xcc62;(function(_0x1eaaf8,_0x7df0f9){const _0x5293ff=a9_0xcc62,_0x154a96=_0x1eaaf8();while(!![]){try{const _0xa6c722=-parseInt(_0x5293ff(0x1aa))/0x1+parseInt(_0x5293ff(0xc4))/0x2+-parseInt(_0x5293ff(0xd3))/0x3+parseInt(_0x5293ff(0x181))/0x4+-parseInt(_0x5293ff(0x17b))/0x5+-parseInt(_0x5293ff(0x1c1))/0x6+parseInt(_0x5293ff(0xf2))/0x7*(parseInt(_0x5293ff(0x127))/0x8);if(_0xa6c722===_0x7df0f9)break;else _0x154a96['push'](_0x154a96['shift']());}catch(_0x417fd3){_0x154a96['push'](_0x154a96['shift']());}}}(a9_0x1fb4,0x974e3));function a9_0x1fb4(){const _0x57a4da=['cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','init-not-called','deleteCluster','createNamespace','Fxbaz','desc','got','Pkvpb','create-grid-checks-grid-already-exists','isClusterPresent','builder','s3BucketName','IfSvb','argv','Grid\x20spawned\x20on\x20the\x20cluster','/wd/hub','okQLc','vAdjd','Tzjcw','VyZHZ','get-grid-url-null-response','hOsNF','RPIai','Cluster\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','yLwim','privateGrid','hzEfB','vZlwG','length','216KmEruW','nWvBR','uySCR','Creating\x20namespace','LkjYP','password','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','clusterName','delay','name','eCyoX','madCB','create-grid-checks-null-response','ABsRz','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','MlYmc','ZKuEu','s3Bucket','includes','setupNewCluster','MYVYr','VcuPr','get-grid-url-auth-failed','xXGxH','ERROR','WkcZY','DZWZg','statusCode','uzFJI','sendEventToBackend','isPrivateGrid','GET','<PasswordPlaceholder>','lHFEV','region','vEYSo','GCnST','qZioP','crMfr','cFioM','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Found\x20VPC:\x20','CLI_RUN_STARTED','Subnets:\x20','mhPqE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ZIqpw','../../utils/userInput','toLowerCase','info','ohSXV','../../utils/instrumentationUtils','clusterRegion','usage','DIltz','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','grid-spawning-failed','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','kVMGw','createdBy','true','https://','xDVCx','JPEvP','GAiTS','reconnecting-websocket','Found\x20Subnets:\x20','create','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eOWEQ','grid-profile','\x20using\x20\x27','grid','help','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Spawning\x20grid\x20on\x20to\x20the\x20cluster','kMhDq','zsGXb','KYbhz','BKIfR','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','readFileSync','stringify','5496795fwBuzN','qqxcs','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','options','xKcQt','jmnRF','4640092JaEnPe','QCVUV','default','Iamdt','writeFileSync','LOG','XvqCO','OwZRe','OGzkl','Nwewa','lXZHB','pre-spawned-subnets-not-selected','browserVersion','body','mQaqb','addListeners','GQqpu','DkUqA','debug','nvOqu','BtIYT','create-grid-checks-auth-failed','gXPYP','dYzog','/packages/cli/get-grid-url?gridIdentifier=','concurrency','ceimK','CLI\x20run\x20started','existsSync','Deleting\x20the\x20CloudFormation\x20Stacks','4|1|2|3|0','HMDVt','CgcLp','username','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','pre-spawned-invalid-vpc','requestId','JTAxw','orNQR','wPgek','minNodes','154746qLGBoG','split','YufUb','instanceType','Will\x20be\x20spawning\x20the\x20grid\x20','readNamespacedService','tMdUP','Spawning\x20the\x20grid\x20','type','ingress-nginx','managedBy','ClyWk','annotations','gjSjU','kCllT','AcwTF','lGkOJ','wCCer','epilogue','TSJMQ','../../utils/utilityMethods','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Namespace\x20Created','5034402orEDjq','hIvsw','nnTEm','eJtfX','QXfHh','create-grid-checks-invalid-profile','ClmhL','\x27\x20grid\x20profile','warn','Adding\x20Websocket\x20listeners','ONWOV','cloudProvider','IBXJd','KXmmX','bQrdZ','bstackAccesskey','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','OwgMy','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','../../utils/webSocketUtils','SSusq','gridName','string','pre-spawned-invalid-subnets','<UsernamePlaceholder>','Browserstack','uLUsc','Cluster\x20created\x20successfully','alKnW','MsHBq','get-grid-url-non-200','iHaXg','maxNodes','rhtKM','Wfnbb','svisx','description','namespace','QjQaN','ZFCwv','1422202uycgOV','ppZWG','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','private-grid','ylYeQ','gridProfiles','eenhy','turboscale-managed-identity-','Create\x20a\x20new\x20Automation\x20grid.','grid-name','zLXuH','4|3|7|0|6|8|1|5|2','SPQIf','\x20in\x20existing\x20cluster\x20\x27','command','3163326cnpoAy','Spawning\x20Grid\x20on\x20the\x20Cluster','QSaIC','cloud-provider','Udomq','RIMZs','hubVersion','message','qNPTd','nExUQ','SLzUz','XDHuW','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','MJEUN','VIcCf','updatePreSpawnedCluster','LNBsW','NLLqF','pxVcX','oaFwe','lRubg','\x20are\x20not\x20present\x20in\x20VPC:\x20','gridProfile','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','user','Create\x20a\x20private/public\x20grid.','non-aws-azure-cluster','https','parse','jzLMV','YibMv','491617bYOgYp','wtDhG','route53','exit','nqgVT','create-grid-called','JfwxY','IhGMq','private-ingress-nginx-controller','iQKDN','CLI_RUN_FINISHED','SnFek','alreadyPresent','configureIfNotConfigured','nEDMy','getGridHostname','QpFoe','HDQcT','UTCPa','error','replace','XDNcI','tuHIO'];a9_0x1fb4=function(){return _0x57a4da;};return a9_0x1fb4();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x4dd7d5(0x169)),got=require(a9_0x4dd7d5(0x10f)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x4dd7d5(0x1d4)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a9_0x4dd7d5(0x157)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader}=require(a9_0x4dd7d5(0x1be)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x4dd7d5(0x15b));exports[a9_0x4dd7d5(0xd2)]=a9_0x4dd7d5(0x170),exports[a9_0x4dd7d5(0x10e)]=a9_0x4dd7d5(0xcc),exports[a9_0x4dd7d5(0x113)]=function(_0x4ab803){const _0x483b36=a9_0x4dd7d5,_0x49c1e0={};_0x49c1e0[_0x483b36(0x1c3)]=_0x483b36(0x172),_0x49c1e0[_0x483b36(0x11a)]='string',_0x49c1e0[_0x483b36(0x162)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x49c1e0['BvgYP']=_0x483b36(0x161),_0x49c1e0[_0x483b36(0x102)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x49c1e0[_0x483b36(0xfd)]=_0x483b36(0x14f),_0x49c1e0['ZKuEu']=_0x483b36(0xec),_0x49c1e0[_0x483b36(0x124)]=_0x483b36(0x171);const _0x35ea94=_0x49c1e0,_0x334129={};_0x334129[_0x483b36(0xc0)]=_0x35ea94[_0x483b36(0x1c3)],_0x334129[_0x483b36(0x1b2)]=_0x35ea94[_0x483b36(0x11a)];const _0x56e9f1={};_0x56e9f1[_0x483b36(0xc0)]=_0x35ea94[_0x483b36(0x162)],_0x56e9f1[_0x483b36(0x1b2)]=_0x35ea94['vAdjd'];const _0xc81512={};_0xc81512[_0x483b36(0xc0)]=_0x35ea94['BvgYP'],_0xc81512[_0x483b36(0x1b2)]=_0x35ea94[_0x483b36(0x11a)];const _0x2e95dc={};_0x2e95dc['description']=_0x35ea94[_0x483b36(0x102)],_0x2e95dc['type']=_0x35ea94[_0x483b36(0x11a)];const _0x68b4cb={};_0x68b4cb['description']=_0x35ea94[_0x483b36(0xfd)],_0x68b4cb[_0x483b36(0x1b2)]=_0x35ea94[_0x483b36(0x11a)];const _0x5e80fd={};_0x5e80fd['description']=_0x35ea94[_0x483b36(0x137)],_0x5e80fd['type']=_0x35ea94['vAdjd'];const _0x55b1ff={};return _0x55b1ff[_0x483b36(0xcd)]=_0x334129,_0x55b1ff[_0x483b36(0x16e)]=_0x56e9f1,_0x55b1ff['cluster-name']=_0xc81512,_0x55b1ff[_0x483b36(0xd6)]=_0x2e95dc,_0x55b1ff[_0x483b36(0x149)]=_0x68b4cb,_0x55b1ff[_0x483b36(0xc7)]=_0x5e80fd,_0x4ab803[_0x483b36(0x15d)](HELP_HEADER_MESSAGE[_0x483b36(0x16b)])[_0x483b36(0x1bc)](HELP_FOOTER_MESSAGE)[_0x483b36(0x17e)](_0x55b1ff)[_0x483b36(0x171)](_0x35ea94['hzEfB'])[_0x483b36(0x116)];},exports['handler']=async function(_0x5714b3){const _0x58794d=a9_0x4dd7d5,_0x45f456={'eCyoX':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','BKIfR':_0x58794d(0x1c9),'rhtKM':'http','lHFEV':_0x58794d(0xee),'MsHBq':'error','dWiVR':_0x58794d(0x172),'ppZWG':_0x58794d(0x1d7),'dYzog':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vEYSo':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','zLXuH':_0x58794d(0x154),'usQbp':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','pxeAJ':'Create\x20a\x20private/public\x20grid.','clRLM':_0x58794d(0x171),'IhGMq':_0x58794d(0xcf),'mhPqE':function(_0x4a469d){return _0x4a469d();},'lXZHB':function(_0x4e1c8c,_0x16763b){return _0x4e1c8c!==_0x16763b;},'zsGXb':'sfHay','MJEUN':'yincL','WkcZY':_0x58794d(0x16c),'XvqCO':function(_0x3767cf,_0x3dc4e8,_0x4864f1,_0x2c53af,_0xa28652,_0x44bca8,_0x1f16e7){return _0x3767cf(_0x3dc4e8,_0x4864f1,_0x2c53af,_0xa28652,_0x44bca8,_0x1f16e7);},'nvOqu':_0x58794d(0xf7),'TuBMs':_0x58794d(0x10a),'ABsRz':_0x58794d(0x1d9),'qqxcs':_0x58794d(0x147),'nWvBR':_0x58794d(0x1ca),'eJtfX':function(_0xbad9a1,_0x50a0d7){return _0xbad9a1===_0x50a0d7;},'alKnW':_0x58794d(0x108),'GQqpu':_0x58794d(0x103),'orNQR':_0x58794d(0x109),'ZIqpw':function(_0x25d32d,_0x9320ef,_0x1fd4c6,_0x461c16,_0x49588d,_0x5b04ef,_0x169093,_0x5c8eab){return _0x25d32d(_0x9320ef,_0x1fd4c6,_0x461c16,_0x49588d,_0x5b04ef,_0x169093,_0x5c8eab);},'bQrdZ':'prespawned-cluster-args-not-passed','tMdUP':function(_0x273430,_0x459ff5){return _0x273430!==_0x459ff5;},'KEewY':_0x58794d(0x11c),'OwgMy':_0x58794d(0x1d3),'iHaXg':function(_0x3c8419,_0x5ed000,_0x44f9f2,_0x4e380d,_0x4ce354,_0x57e96b,_0x2da654,_0x52e97e){return _0x3c8419(_0x5ed000,_0x44f9f2,_0x4e380d,_0x4ce354,_0x57e96b,_0x2da654,_0x52e97e);},'LkjYP':_0x58794d(0xed),'xXGxH':_0x58794d(0x164),'wtDhG':function(_0x488fcd,_0x16f014){return _0x488fcd!==_0x16f014;},'QSaIC':_0x58794d(0xe7),'OwZRe':_0x58794d(0x1a1),'Tzjcw':function(_0x512b77,_0x11ab06){return _0x512b77!==_0x11ab06;},'mjJIt':_0x58794d(0xbe),'teuMz':_0x58794d(0x146),'DZWZg':function(_0x10e9ac,_0x1a7691,_0x1cbf95){return _0x10e9ac(_0x1a7691,_0x1cbf95);},'qNPTd':function(_0xcf12fc,_0x2776d6){return _0xcf12fc===_0x2776d6;},'qWrGA':function(_0x1e5ea8,_0x777d34){return _0x1e5ea8!==_0x777d34;},'QjQaN':_0x58794d(0x115),'jzLMV':'QqxMm','wCCer':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','crMfr':_0x58794d(0x133),'jmnRF':_0x58794d(0x1ba),'uySCR':_0x58794d(0x1cb),'YufUb':_0x58794d(0xdf),'ClmhL':_0x58794d(0x196),'nExUQ':function(_0x17a875,_0x2900a4){return _0x17a875===_0x2900a4;},'uzFJI':_0x58794d(0xd0),'NScFO':function(_0x4886e0,_0x55d59d,_0x4f7a19,_0x598c92,_0x3a7555,_0x487793,_0x2b8e2b,_0x599b4e){return _0x4886e0(_0x55d59d,_0x4f7a19,_0x598c92,_0x3a7555,_0x487793,_0x2b8e2b,_0x599b4e);},'SLzUz':'create-grid-checks-non-200','hOsNF':'Grid\x20profile\x20fetched\x20from\x20backend','Iamdt':function(_0x49d2ba,_0x696061){return _0x49d2ba!==_0x696061;},'hIvsw':_0x58794d(0xf1),'nUcOj':_0x58794d(0x178),'vZlwG':function(_0x150495,_0x48e230,_0x4dcd47,_0x1b4a57,_0x29f824,_0x3ea410,_0x2661c0,_0x7e8e31){return _0x150495(_0x48e230,_0x4dcd47,_0x1b4a57,_0x29f824,_0x3ea410,_0x2661c0,_0x7e8e31);},'IBXJd':_0x58794d(0x111),'nEDMy':_0x58794d(0x132),'AcwTF':function(_0x51478e,_0x651e79){return _0x51478e===_0x651e79;},'pXdtO':function(_0x46be5d,_0x1f6c87){return _0x46be5d!==_0x1f6c87;},'GCnST':_0x58794d(0x189),'QCVUV':function(_0x1d9fef,_0x50bf92){return _0x1d9fef===_0x50bf92;},'VIcCf':_0x58794d(0x110),'gjSjU':_0x58794d(0x1ce),'Fxbaz':_0x58794d(0xea),'gXPYP':function(_0x59ac61,_0x443033,_0x2c3b03,_0x321708,_0x200383,_0x42ac78,_0x1a6f1d,_0x3d7702){return _0x59ac61(_0x443033,_0x2c3b03,_0x321708,_0x200383,_0x42ac78,_0x1a6f1d,_0x3d7702);},'ibfSc':_0x58794d(0x1c6),'mQaqb':function(_0x41a6be,_0x34a3c1){return _0x41a6be===_0x34a3c1;},'kCllT':_0x58794d(0x14e),'Nwewa':_0x58794d(0x1db),'MlYmc':function(_0xb6886d,_0x42209c){return _0xb6886d!==_0x42209c;},'xKcQt':function(_0x9e4dc9,_0x12c3a3){return _0x9e4dc9===_0x12c3a3;},'eenhy':'rWzbD','ohSXV':_0x58794d(0x167),'hOIyh':function(_0x451567,_0x16f499,_0x218aa5,_0x5cea6b,_0x5175e9,_0x41bccd,_0x2f9c6f,_0xf4608d,_0x38560d,_0x5bd63f,_0x227c3d,_0x150cdc){return _0x451567(_0x16f499,_0x218aa5,_0x5cea6b,_0x5175e9,_0x41bccd,_0x2f9c6f,_0xf4608d,_0x38560d,_0x5bd63f,_0x227c3d,_0x150cdc);},'LNBsW':'4|6|0|1|5|3|7|8|2','okQLc':function(_0x5f3654,_0x3343a9,_0x11a9e4,_0x2591b5,_0x49dc1f,_0x42f3a3){return _0x5f3654(_0x3343a9,_0x11a9e4,_0x2591b5,_0x49dc1f,_0x42f3a3);},'xDVCx':_0x58794d(0x12d),'olkzt':function(_0x223609,_0x4e813f){return _0x223609===_0x4e813f;},'VcuPr':function(_0x4084fe,_0x251d24,_0x588829,_0x367eb9){return _0x4084fe(_0x251d24,_0x588829,_0x367eb9);},'pxVcX':function(_0x1cdf68){return _0x1cdf68();},'ZFCwv':_0x58794d(0x17d),'WDFhC':_0x58794d(0x1bf),'mYcSk':_0x58794d(0xc6),'wPgek':function(_0x43f6b4,_0x1bbd0a){return _0x43f6b4!=_0x1bbd0a;},'xEuQh':function(_0x27037c,_0x3a6b7b){return _0x27037c!==_0x3a6b7b;},'DIltz':function(_0x4411fc,_0x2c032e){return _0x4411fc>_0x2c032e;},'yLwim':function(_0xc34d7,_0x9d99b8){return _0xc34d7===_0x9d99b8;},'nqgVT':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','DkUqA':_0x58794d(0x18c),'GkGDv':function(_0x292ba3,_0x1eeb5a){return _0x292ba3===_0x1eeb5a;},'JfwxY':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','HoTjC':_0x58794d(0x1a4),'WasuT':function(_0x24c09f,_0xb88fe8,_0x2f6dfe,_0xc43480,_0x12152,_0x2e6f75,_0x5181d7,_0x319039){return _0x24c09f(_0xb88fe8,_0x2f6dfe,_0xc43480,_0x12152,_0x2e6f75,_0x5181d7,_0x319039);},'UTCPa':_0x58794d(0x1d8),'GEJIO':_0x58794d(0x19f),'NLLqF':'Cluster\x20created\x20successfully','RIMZs':_0x58794d(0x1d1),'TSJMQ':function(_0x23ae86,_0x4b038a){return _0x23ae86(_0x4b038a);},'fPGdz':function(_0x509c56,_0x247f59){return _0x509c56===_0x247f59;},'oaFwe':function(_0x2deb5a,_0x56e971){return _0x2deb5a==_0x56e971;},'GAiTS':_0x58794d(0x12a),'HMDVt':_0x58794d(0x183),'iQKDN':_0x58794d(0x1da),'svisx':_0x58794d(0x1c0),'QXfHh':'Namespace\x20created','RPIai':_0x58794d(0x173),'KFEQu':_0x58794d(0xd4),'ceimK':function(_0x59957c,_0x102ca3,_0x48e3c9,_0x32caae,_0x209aa6,_0x2b9e25,_0x348746,_0x35dbe9,_0x56db59,_0x8efcf9,_0xb083f8){return _0x59957c(_0x102ca3,_0x48e3c9,_0x32caae,_0x209aa6,_0x2b9e25,_0x348746,_0x35dbe9,_0x56db59,_0x8efcf9,_0xb083f8);},'BtIYT':_0x58794d(0x117),'cSyrP':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','XDHuW':function(_0x12f9b,_0x5b6129,_0x1339bc){return _0x12f9b(_0x5b6129,_0x1339bc);},'ylYeQ':_0x58794d(0xfa),'qZioP':'ingress-nginx-controller','kMhDq':_0x58794d(0x1b3),'MYVYr':function(_0x23080c,_0x42dc60){return _0x23080c==_0x42dc60;},'eOWEQ':function(_0x289039,_0x31bcd2){return _0x289039==_0x31bcd2;},'yGCOr':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','XDNcI':function(_0x5cb667,_0x3553a0,_0x551628,_0x30598a,_0x20024a,_0x301569,_0x27bcdb,_0xe92dd8){return _0x5cb667(_0x3553a0,_0x551628,_0x30598a,_0x20024a,_0x301569,_0x27bcdb,_0xe92dd8);},'Udomq':_0x58794d(0x11d),'ClyWk':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','lJurz':_0x58794d(0x13d),'KYbhz':function(_0x4f6b3d,_0x7029f,_0x170418,_0x15aa70,_0x5dc6c2,_0x34d363,_0x4523eb,_0x5491c2){return _0x4f6b3d(_0x7029f,_0x170418,_0x15aa70,_0x5dc6c2,_0x34d363,_0x4523eb,_0x5491c2);},'JTAxw':_0x58794d(0x1df),'SSusq':function(_0x177db2,_0x52f36b){return _0x177db2===_0x52f36b;},'thcXQ':function(_0x4867eb,_0x454e03,_0x5d5e61,_0x4f6d65,_0x57add5,_0x17ac00,_0x1fceef){return _0x4867eb(_0x454e03,_0x5d5e61,_0x4f6d65,_0x57add5,_0x17ac00,_0x1fceef);},'WoOln':_0x58794d(0x160)};let _0x45448e=![],_0x26e751,_0x1b556b,_0xdab0eb,_0x3bf293,_0xe2a9a,_0x46cbe2,_0x7d61b7,_0x45d21e,_0x1808b5,_0x2928e9,_0x4efa70,_0x558993,_0x3e96ef=0x1,_0x1ceab2=0xe;try{global_registry[_0x58794d(0x1a5)]=_0x45f456['mhPqE'](uuidv4),global_registry[_0x58794d(0x145)]=![];!fs[_0x58794d(0x19d)](_0x45f456[_0x58794d(0x153)](getCredentialsPath))&&(_0x45f456['lXZHB'](_0x45f456[_0x58794d(0x175)],_0x45f456[_0x58794d(0xe0)])?(console['error'](_0x45f456[_0x58794d(0x140)]),await _0x45f456[_0x58794d(0x187)](sendInstrumentationEvent,_0x5714b3,_0x45f456[_0x58794d(0x194)],messageTypes[_0x58794d(0x13f)],_0x45f456['TuBMs'],null,_0x5714b3),process[_0x58794d(0xf5)](0x1)):_0x26148f[_0x58794d(0x1cc)]={});await _0x45f456[_0x58794d(0x187)](sendInstrumentationEvent,_0x5714b3,_0x45f456[_0x58794d(0x194)],messageTypes['INFO'],null,null,_0x5714b3);const _0x5d939b=JSON['parse'](fs[_0x58794d(0x179)](_0x45f456[_0x58794d(0x153)](getCredentialsPath)));global_registry['bstackUsername']=_0x5d939b[_0x58794d(0x1da)][_0x58794d(0x1a2)],global_registry[_0x58794d(0x1d0)]=_0x5d939b['Browserstack'][_0x58794d(0x12c)];const _0x396345=WS_ENDPOINT[_0x58794d(0x106)](_0x45f456[_0x58794d(0x134)],_0x5d939b[_0x58794d(0x1da)]['username'])[_0x58794d(0x106)](_0x45f456[_0x58794d(0x17c)],_0x5d939b[_0x58794d(0x1da)]['password']),_0x152bee={};_0x152bee['WebSocket']=ws,_0x152bee['connectionTimeout']=0x36ee80,_0x2928e9=new ReconnectingWebSocket(_0x396345,[],_0x152bee),logger[_0x58794d(0x193)](_0x45f456[_0x58794d(0x128)]),webSocketUtils[_0x58794d(0x190)](_0x2928e9,_0x5714b3[_0x58794d(0xeb)],_0x5714b3['password']);let _0x4624fe=DEFAULT_GRID_NAME;if(_0x5714b3['clusterName']||_0x5714b3[_0x58794d(0x1cc)]||_0x5714b3[_0x58794d(0x149)]){if(_0x45f456[_0x58794d(0x1c4)](_0x45f456[_0x58794d(0x1dd)],_0x45f456[_0x58794d(0x1dd)])){!(_0x5714b3[_0x58794d(0x12e)]&&_0x5714b3[_0x58794d(0x1cc)]&&_0x5714b3[_0x58794d(0x149)])&&(_0x45f456[_0x58794d(0x1c4)](_0x45f456[_0x58794d(0x191)],_0x45f456[_0x58794d(0x191)])?(_0x26e751=_0x45f456[_0x58794d(0x1a7)],await _0x45f456['ZIqpw'](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456[_0x58794d(0x194)],_0x45f456[_0x58794d(0x1cf)],_0x45f456['MsHBq']),logger['error'](_0x26e751),process[_0x58794d(0xf5)](0x1)):(_0x1f9b02['error'](_0x45f456[_0x58794d(0x131)]),_0xfc08c9[_0x58794d(0xf5)](0x1)));if(![AWS,AZURE,GCP][_0x58794d(0x139)](_0x5714b3['cloudProvider'][_0x58794d(0x158)]())){if(_0x45f456[_0x58794d(0x1b0)](_0x45f456['KEewY'],_0x45f456['KEewY'])){const _0x2fb35d={};_0x2fb35d[_0x58794d(0x1b2)]=_0x5a590d[_0x58794d(0x186)],_0x2fb35d[_0x58794d(0xda)]='Cluster\x20'+_0x476808+_0x58794d(0x121),_0x239540['sendEventToBackend'](_0x1f3bff,_0x2fb35d,_0x45f456['BKIfR']),_0x53278f[_0x58794d(0x159)](_0x58794d(0x120)+_0x445eed+_0x58794d(0x121)),_0x52fe88=!![];}else _0x26e751=_0x45f456[_0x58794d(0x1d2)],await _0x45f456[_0x58794d(0xbb)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456[_0x58794d(0x194)],_0x45f456[_0x58794d(0x12b)],_0x45f456[_0x58794d(0x1de)]),logger['error'](_0x26e751),process[_0x58794d(0xf5)](0x1);}_0x5714b3[_0x58794d(0x123)]&&_0x45f456[_0x58794d(0x1c4)](_0x5714b3[_0x58794d(0x123)]['toLowerCase'](),_0x45f456[_0x58794d(0x13e)])&&(_0x45f456[_0x58794d(0xf3)](_0x45f456[_0x58794d(0xd5)],_0x45f456[_0x58794d(0x188)])?global_registry['isPrivateGrid']=!![]:_0x29b434=_0x45f456['rhtKM']),_0x45448e=!![],_0xdab0eb=_0x5714b3[_0x58794d(0x12e)],_0x1b556b=_0x5714b3[_0x58794d(0x1cc)][_0x58794d(0x158)](),_0x3bf293=_0x5714b3[_0x58794d(0x149)];}else _0x2da5b7=_0x2d44ee[_0x58794d(0xf4)],_0x49836c=_0x45f456[_0x58794d(0x148)];}if(_0x5714b3[_0x58794d(0x1d6)]){if(_0x45f456[_0x58794d(0x11b)](_0x45f456['mjJIt'],_0x45f456['mjJIt'])){const _0x40db61={};_0x40db61[_0x58794d(0x1b2)]=_0x544b7a['LOG'],_0x40db61[_0x58794d(0xda)]=_0xfaa9e9,_0x2df632[_0x58794d(0x144)](_0x5001a2,_0x40db61,_0x45f456['MsHBq'],!![]);}else _0x4624fe=_0x5714b3[_0x58794d(0x1d6)];}global_registry[_0x58794d(0x1d6)]=_0x4624fe;const _0x3e8526={'method':_0x45f456['teuMz'],'headers':_0x45f456[_0x58794d(0x141)](getAuthHeader,_0x5d939b[_0x58794d(0x1da)][_0x58794d(0x1a2)],_0x5d939b[_0x58794d(0x1da)][_0x58794d(0x12c)])},_0x496fc7=_0x58794d(0x165)+AG_API_URL+'/packages/cli/create-grid-checks',_0x36f285={};_0x36f285[_0x58794d(0x1d6)]=_0x4624fe;const _0xf69a89={'searchParams':_0x36f285,..._0x3e8526},_0x5d39f7=_0xf69a89,_0x33e718=await _0x45f456['DZWZg'](got,_0x496fc7,_0x5d39f7);(_0x45f456[_0x58794d(0xdb)](_0x33e718,null)||_0x45f456['qNPTd'](_0x33e718,undefined))&&(_0x45f456['qWrGA'](_0x45f456[_0x58794d(0xc2)],_0x45f456[_0x58794d(0xf0)])?(_0x26e751=_0x45f456[_0x58794d(0x1bb)],await _0x45f456[_0x58794d(0x156)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456['nvOqu'],_0x45f456[_0x58794d(0x14d)],_0x45f456['MsHBq']),logger[_0x58794d(0x105)](_0x26e751),process[_0x58794d(0xf5)](0x1)):_0x346566[_0x58794d(0x145)]=!![]);if(_0x45f456[_0x58794d(0xdb)](_0x33e718[_0x58794d(0x142)],0x191)){if(_0x45f456[_0x58794d(0xdb)](_0x45f456[_0x58794d(0x180)],_0x45f456[_0x58794d(0x129)])){const _0x12f5d2={};_0x12f5d2[_0x58794d(0xc0)]=_0x45f456['dWiVR'],_0x12f5d2['type']=_0x45f456[_0x58794d(0xc5)];const _0x200abc={};_0x200abc[_0x58794d(0xc0)]=_0x45f456[_0x58794d(0x198)],_0x200abc[_0x58794d(0x1b2)]=_0x45f456[_0x58794d(0xc5)];const _0x5a112f={};_0x5a112f['description']=_0x45f456[_0x58794d(0x14a)],_0x5a112f[_0x58794d(0x1b2)]=_0x45f456[_0x58794d(0xc5)];const _0x23c07b={};_0x23c07b['description']=_0x45f456[_0x58794d(0xce)],_0x23c07b[_0x58794d(0x1b2)]=_0x45f456[_0x58794d(0xc5)];const _0x3cf8f9={};_0x3cf8f9[_0x58794d(0xc0)]=_0x45f456['usQbp'],_0x3cf8f9[_0x58794d(0x1b2)]=_0x45f456[_0x58794d(0xc5)];const _0x375f85={};_0x375f85[_0x58794d(0xc0)]=_0x45f456['pxeAJ'],_0x375f85[_0x58794d(0x1b2)]=_0x45f456[_0x58794d(0xc5)];const _0x272cb8={};return _0x272cb8['grid-name']=_0x12f5d2,_0x272cb8[_0x58794d(0x16e)]=_0x200abc,_0x272cb8['cluster-name']=_0x5a112f,_0x272cb8[_0x58794d(0xd6)]=_0x23c07b,_0x272cb8[_0x58794d(0x149)]=_0x3cf8f9,_0x272cb8[_0x58794d(0xc7)]=_0x375f85,_0x32325b[_0x58794d(0x15d)](_0x154c19[_0x58794d(0x16b)])[_0x58794d(0x1bc)](_0x116358)[_0x58794d(0x17e)](_0x272cb8)[_0x58794d(0x171)](_0x45f456['clRLM'])[_0x58794d(0x116)];}else _0x26e751=_0x45f456[_0x58794d(0x1ac)],await _0x45f456[_0x58794d(0xbb)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456['nvOqu'],_0x45f456[_0x58794d(0x1c7)],_0x45f456[_0x58794d(0x1de)]),logger[_0x58794d(0x105)](_0x26e751),process[_0x58794d(0xf5)](0x1);}_0x45f456['wtDhG'](_0x33e718[_0x58794d(0x142)],0xc8)&&(_0x45f456[_0x58794d(0xdc)](_0x45f456[_0x58794d(0x143)],_0x45f456[_0x58794d(0x143)])?(_0x26e751=_0x58794d(0x155)+JSON['stringify'](_0x33e718),await _0x45f456['NScFO'](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes['ERROR'],_0x45f456[_0x58794d(0x194)],_0x45f456[_0x58794d(0xdd)],_0x45f456[_0x58794d(0x1de)]),logger[_0x58794d(0x105)](_0x26e751),process[_0x58794d(0xf5)](0x1)):_0x3d882f[_0x58794d(0x159)](_0x58794d(0x16a)+_0x11f0e6[_0x58794d(0x17a)](_0x2cd414)+'\x20'));const _0x49a6fa=JSON[_0x58794d(0xef)](_0x33e718[_0x58794d(0x18e)]),_0x11c5a1={};_0x11c5a1[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x151)],_0x11c5a1[_0x58794d(0xda)]='CLI\x20run\x20started',webSocketUtils['sendEventToBackend'](_0x2928e9,_0x11c5a1);const _0x57551c={};_0x57551c['type']=WS_EVENTS['LOG'],_0x57551c[_0x58794d(0xda)]=_0x45f456[_0x58794d(0x11e)],webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x57551c);_0x49a6fa[_0x58794d(0xfe)]&&(_0x45f456[_0x58794d(0x184)](_0x45f456[_0x58794d(0x1c2)],_0x45f456[_0x58794d(0x1c2)])?_0x4c689b=_0x8db92d[_0x59325c['gridProfile']]:(_0x26e751=_0x45f456['nUcOj'],await _0x45f456[_0x58794d(0x125)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456[_0x58794d(0x194)],_0x45f456[_0x58794d(0x1cd)],_0x45f456[_0x58794d(0x1de)]),logger[_0x58794d(0x105)](_0x26e751),process[_0x58794d(0xf5)](0x1)));const _0xe62701=_0x49a6fa[_0x58794d(0xc9)];let _0x3ae8da=_0xe62701[_0x49a6fa['defaultGridProfile']];if(_0x5714b3[_0x58794d(0xe9)]){if(_0x45f456[_0x58794d(0xdb)](_0x45f456['nEDMy'],_0x45f456[_0x58794d(0x100)]))_0x3ae8da=_0xe62701[_0x5714b3['gridProfile']];else{const _0x5085a9=_0x45f456[_0x58794d(0xf9)]['split']('|');let _0x5e2634=0x0;while(!![]){switch(_0x5085a9[_0x5e2634++]){case'0':const _0x3903ef={};_0x3903ef[_0x58794d(0x1b2)]=_0xb9c880[_0x58794d(0x186)],_0x3903ef[_0x58794d(0xda)]=_0x50cae8,_0x4b8d02[_0x58794d(0x144)](_0x36b71a,_0x3903ef);continue;case'1':_0x106000['clusterName']=_0x3ba1e3;continue;case'2':_0x1925d0[_0x58794d(0x18d)]=_0x1495a8[_0x58794d(0x18d)];continue;case'3':_0x166632=_0x58794d(0x1b1)+_0x57fcca+_0x58794d(0xd1)+_0x2dee05+'\x27';continue;case'4':const _0x34d41b={};_0x34d41b[_0x58794d(0x1b2)]=_0x234ed5['CLI_RUN_STARTED'],_0x34d41b[_0x58794d(0xda)]='CLI\x20run\x20started',_0x19c555[_0x58794d(0x144)](_0x4d3392,_0x34d41b);continue;case'5':_0x268f99[_0x58794d(0xd9)]=_0x53ad04[_0x58794d(0xd9)];continue;case'6':_0x5e5a0b[_0x58794d(0x1cc)]=_0x2bcc3c;continue;case'7':_0x1c9b0f['info'](_0x54d302);continue;case'8':_0x1d58ac[_0x58794d(0x15c)]=_0x191158;continue;}break;}}}if(_0x45f456[_0x58794d(0x1b9)](_0x45448e,![])){if(_0x45f456['pXdtO'](_0x45f456[_0x58794d(0x14b)],_0x45f456[_0x58794d(0x14b)]))_0x4f7d5a['isPrivateGrid']=!![];else{if(_0x45f456[_0x58794d(0x182)](_0x3ae8da,undefined)){if(_0x45f456[_0x58794d(0x18b)](_0x45f456[_0x58794d(0xe1)],_0x45f456[_0x58794d(0x1b7)]))_0x26e751=_0x45f456[_0x58794d(0x10d)],await _0x45f456['gXPYP'](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456[_0x58794d(0x194)],_0x45f456['ibfSc'],_0x45f456[_0x58794d(0x1de)]),logger[_0x58794d(0x105)](_0x26e751),process[_0x58794d(0xf5)](0x1);else throw _0x3f622b;}global_registry['gridProfileId']=_0x3ae8da['id'];(_0x45f456[_0x58794d(0x182)](_0x1b556b,AZURE)||_0x45f456[_0x58794d(0x18f)](_0x3ae8da?.[_0x58794d(0x1cc)],AZURE))&&(_0x45f456[_0x58794d(0x18f)](_0x45f456[_0x58794d(0x1b8)],_0x45f456[_0x58794d(0x18a)])?_0x28b9e9=_0x1d6e99['gridName']:(console['error'](_0x45f456[_0x58794d(0x131)]),process[_0x58794d(0xf5)](0x1)));_0x26e751=_0x58794d(0x1ae)+_0x4624fe+_0x58794d(0x16f)+_0x3ae8da[_0x58794d(0x130)]+_0x58794d(0x1c8),logger[_0x58794d(0x159)](_0x26e751);const _0x212cac={};_0x212cac['type']=WS_EVENTS['LOG'],_0x212cac['message']=_0x26e751,webSocketUtils['sendEventToBackend'](_0x2928e9,_0x212cac),_0x1b556b=_0x3ae8da[_0x58794d(0x1cc)],_0xdab0eb=_0x3ae8da[_0x58794d(0x12e)],_0x3bf293=_0x3ae8da[_0x58794d(0x149)],_0xe2a9a=_0x3ae8da[_0x58794d(0x19a)],_0x46cbe2=_0x3ae8da[_0x58794d(0x1ad)],_0x7d61b7=_0x3ae8da['vpc'],securityGroups=_0x3ae8da['securityGroups'],subnets=_0x3ae8da['subnets'],_0x45d21e=_0x3ae8da['s3bucket'],_0x3e96ef=_0x3ae8da[_0x58794d(0x1a9)],_0x1ceab2=_0x3ae8da[_0x58794d(0xbc)],_0x4efa70=_0x49a6fa[_0x58794d(0xd9)],_0x558993=_0x49a6fa[_0x58794d(0x18d)],_0x45f456[_0x58794d(0x136)](_0x3ae8da[_0x58794d(0x123)],undefined)&&_0x3ae8da[_0x58794d(0x123)]&&(_0x45f456[_0x58794d(0x17f)](_0x45f456[_0x58794d(0xca)],_0x45f456[_0x58794d(0x15a)])?_0xa0b626[_0x58794d(0x159)]('Found\x20VPC:\x20'+_0x42dc68+'\x20'):global_registry[_0x58794d(0x145)]=!![]),_0x45f456['hOIyh'](updateGlobalRegistryWithConfig,_0x1b556b,_0xdab0eb,_0x3bf293,_0xe2a9a,_0x46cbe2,_0x45d21e,_0x3ae8da,_0x4efa70,_0x558993,_0x3e96ef,_0x1ceab2);}}else{const _0x5aa598=_0x45f456[_0x58794d(0xe3)][_0x58794d(0x1ab)]('|');let _0x445a29=0x0;while(!![]){switch(_0x5aa598[_0x445a29++]){case'0':logger[_0x58794d(0x159)](_0x26e751);continue;case'1':const _0x13fa97={};_0x13fa97[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x13fa97[_0x58794d(0xda)]=_0x26e751,webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x13fa97);continue;case'2':global_registry[_0x58794d(0x18d)]=_0x49a6fa[_0x58794d(0x18d)];continue;case'3':global_registry[_0x58794d(0x15c)]=_0x3bf293;continue;case'4':const _0x55ff55={};_0x55ff55[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x151)],_0x55ff55['message']=_0x58794d(0x19c),webSocketUtils['sendEventToBackend'](_0x2928e9,_0x55ff55);continue;case'5':global_registry[_0x58794d(0x1cc)]=_0x1b556b;continue;case'6':_0x26e751=_0x58794d(0x1b1)+_0x4624fe+_0x58794d(0xd1)+_0xdab0eb+'\x27';continue;case'7':global_registry[_0x58794d(0x12e)]=_0xdab0eb;continue;case'8':global_registry[_0x58794d(0xd9)]=_0x49a6fa[_0x58794d(0xd9)];continue;}break;}}const _0x115e3f=_0x45f456[_0x58794d(0x119)](getCloudProviderObject,_0x1b556b,_0xdab0eb,_0x4624fe,_0x2928e9,webSocketUtils),_0x595f14=_0x5d939b[_0x58794d(0x1cc)]||{};if(_0x45f456[_0x58794d(0x1c4)](_0x595f14[_0x1b556b],undefined)){logger[_0x58794d(0x159)](_0x45f456[_0x58794d(0x166)]);_0x45f456['olkzt'](_0x5d939b['cloudProvider'],undefined)&&(_0x5d939b[_0x58794d(0x1cc)]={});_0x5d939b[_0x58794d(0x1cc)][_0x1b556b]={};const _0x2b2453=await _0x45f456[_0x58794d(0x13c)](inputCloudProviderKeys,_0x1b556b,_0x5d939b,_0x115e3f);fs[_0x58794d(0x185)](_0x45f456[_0x58794d(0xe5)](getCredentialsPath),JSON[_0x58794d(0x17a)](_0x2b2453)),logger['debug'](_0x45f456[_0x58794d(0xc3)]);}else{_0x26e751=_0x45f456['WDFhC'];const _0xab12f={};_0xab12f[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0xab12f[_0x58794d(0xda)]=_0x26e751,webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0xab12f),logger[_0x58794d(0x159)](_0x26e751),await _0x115e3f['fetchLocalCreds'](_0x595f14);}_0x115e3f[_0x58794d(0xff)]();let _0x12c045;if(_0x45f456[_0x58794d(0xdc)](_0x45448e,![])){_0x26e751='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x3bf293+').';const _0x15a835={};_0x15a835[_0x58794d(0x1b2)]=WS_EVENTS['LOG'],_0x15a835['message']=_0x26e751,webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x15a835),logger[_0x58794d(0x159)](_0x26e751);const _0x3e85a8=await _0x115e3f[_0x58794d(0x112)]();if(_0x3e85a8){const _0x5d0d9={};_0x5d0d9[_0x58794d(0x1b2)]=WS_EVENTS['LOG'],_0x5d0d9['message']='Cluster\x20'+_0xdab0eb+_0x58794d(0x121),webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x5d0d9,_0x45f456[_0x58794d(0x177)]),logger['info'](_0x58794d(0x120)+_0xdab0eb+_0x58794d(0x121)),_0x45448e=!![];}else{const _0x17300e={};_0x17300e[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x17300e[_0x58794d(0xda)]=_0x45f456['mYcSk'],webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x17300e),logger[_0x58794d(0x159)](_0x45f456['mYcSk']);const _0x200e10=_0x45f456[_0x58794d(0x1a8)](_0x7d61b7,null)&&_0x45f456['xEuQh'](_0x7d61b7,undefined),_0x9f604b=_0x45f456[_0x58794d(0x1a8)](subnets,null)&&_0x45f456[_0x58794d(0x18b)](subnets,undefined)&&_0x45f456[_0x58794d(0x15e)](subnets[_0x58794d(0x126)],0x0);if(_0x200e10){_0x45f456[_0x58794d(0x122)](_0x9f604b,![])&&(_0x26e751=_0x45f456[_0x58794d(0xf6)],await _0x45f456[_0x58794d(0x197)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456[_0x58794d(0x194)],_0x45f456[_0x58794d(0x192)],_0x45f456[_0x58794d(0x1de)]),logger['error'](_0x26e751),process['exit'](0x1));const _0x4774f2=await _0x115e3f['isVPCPresent'](_0x7d61b7);_0x45f456['GkGDv'](_0x4774f2,![])?(_0x26e751=_0x45f456[_0x58794d(0xf8)],await _0x45f456[_0x58794d(0x156)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456['nvOqu'],_0x45f456['HoTjC'],_0x45f456[_0x58794d(0x1de)]),logger[_0x58794d(0x105)](_0x26e751),process[_0x58794d(0xf5)](0x1)):logger[_0x58794d(0x159)](_0x58794d(0x150)+_0x7d61b7+'\x20');const _0x489cf9=await _0x115e3f['isSubnetsValid'](subnets,_0x7d61b7);_0x45f456[_0x58794d(0x17f)](_0x489cf9[0x0],![])?(_0x26e751=_0x58794d(0x152)+_0x489cf9[0x1]+_0x58794d(0xe8)+_0x7d61b7+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x45f456['WasuT'](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456[_0x58794d(0x194)],_0x45f456[_0x58794d(0x104)],_0x45f456['MsHBq']),logger[_0x58794d(0x105)](_0x26e751),process[_0x58794d(0xf5)](0x1)):logger[_0x58794d(0x159)](_0x58794d(0x16a)+JSON[_0x58794d(0x17a)](subnets)+'\x20'),await _0x115e3f[_0x58794d(0x13a)](_0x7d61b7,subnets);}else{const _0x42deb6=_0x45f456['GEJIO']['split']('|');let _0x2e5109=0x0;while(!![]){switch(_0x42deb6[_0x2e5109++]){case'0':logger[_0x58794d(0x159)](_0x45f456[_0x58794d(0xe4)]);continue;case'1':logger[_0x58794d(0x159)](_0x45f456[_0x58794d(0xd8)]);continue;case'2':await _0x115e3f[_0x58794d(0x13a)]();continue;case'3':const _0x53b04f={};_0x53b04f[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x53b04f[_0x58794d(0xda)]=_0x58794d(0x1dc),webSocketUtils['sendEventToBackend'](_0x2928e9,_0x53b04f);continue;case'4':const _0x3fc7f4={};_0x3fc7f4[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x3fc7f4[_0x58794d(0xda)]=_0x45f456['RIMZs'],webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x3fc7f4);continue;}break;}}}}_0x45448e&&_0x45f456[_0x58794d(0x182)](_0x1b556b,AZURE)&&(global_registry[_0x58794d(0x138)]=_0x49a6fa[_0x58794d(0x114)],await _0x115e3f[_0x58794d(0xe2)](),await _0x115e3f['createOtherResources']());const [_0x488b24,_0x1630a6,_0x203f0c,_0x333f06,_0x4f890a,_0x25d2fb]=await _0x45f456[_0x58794d(0x1bd)](createK8sClient,_0x115e3f);_0x45f456['fPGdz'](_0x45448e,![])&&_0x45f456[_0x58794d(0xe6)](_0x1b556b,AWS)&&(_0x12c045=await _0x115e3f['setupAutoscaler'](_0x488b24,_0x5714b3));try{_0x1808b5=_0x45f456[_0x58794d(0x1bd)](kebabCase,_0x4624fe),logger['info'](_0x45f456['GAiTS']);const _0x400169={};_0x400169['type']=WS_EVENTS['LOG'],_0x400169[_0x58794d(0xda)]=_0x45f456[_0x58794d(0x168)],webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x400169);if(_0x45f456[_0x58794d(0x11b)](_0x1808b5,_0x45f456[_0x58794d(0x1a0)])){const _0x31dcea={};_0x31dcea[_0x58794d(0x163)]=_0x45f456[_0x58794d(0xfb)],_0x31dcea[_0x58794d(0x1b4)]=_0x45f456[_0x58794d(0xfb)];const _0x1b85a0={};_0x1b85a0[_0x58794d(0x130)]=_0x1808b5,_0x1b85a0[_0x58794d(0x1b6)]=_0x31dcea;const _0x4df575={};_0x4df575['metadata']=_0x1b85a0;let _0x49cb66=_0x4df575;const _0x4aadc4={};_0x4aadc4['body']=_0x49cb66,await _0x488b24[_0x58794d(0x10c)](_0x4aadc4),logger[_0x58794d(0x159)](_0x45f456[_0x58794d(0xbf)]);}const _0x3db1dd={};_0x3db1dd[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x3db1dd[_0x58794d(0xda)]=_0x45f456[_0x58794d(0x1c5)],webSocketUtils['sendEventToBackend'](_0x2928e9,_0x3db1dd);const _0x103ac4={};_0x103ac4[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x103ac4[_0x58794d(0xda)]=_0x45f456[_0x58794d(0x11f)],webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x103ac4),logger[_0x58794d(0x159)](_0x45f456['KFEQu']);let _0x17b3d9={};_0x45f456[_0x58794d(0x18f)](_0x1b556b,AZURE)&&(_0x17b3d9={'clientId':await _0x115e3f['getResourceClientId'](_0x58794d(0xcb)+_0xdab0eb)});await _0x45f456[_0x58794d(0x19b)](addGridComponents,_0x488b24,_0x1630a6,_0x203f0c,_0x333f06,_0x1808b5,_0xdab0eb,_0x12c045,_0x4f890a,_0x25d2fb,_0x17b3d9),_0x26e751=_0x45f456[_0x58794d(0x195)],logger[_0x58794d(0x159)](_0x26e751);const _0x3e4a36={};_0x3e4a36[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x3e4a36[_0x58794d(0xda)]=_0x26e751,webSocketUtils['sendEventToBackend'](_0x2928e9,_0x3e4a36),_0x26e751=_0x45f456['cSyrP'],logger[_0x58794d(0x159)](_0x26e751);const _0x3a97d3={};_0x3a97d3['type']=WS_EVENTS[_0x58794d(0x186)],_0x3a97d3[_0x58794d(0xda)]=_0x26e751,webSocketUtils['sendEventToBackend'](_0x2928e9,_0x3a97d3),await webSocketUtils[_0x58794d(0x12f)](0xea60);const _0x4e33bb=await _0x45f456[_0x58794d(0xde)](getNamespaceUID,_0x488b24,_0x1808b5);let _0x3c8735=global_registry[_0x58794d(0x145)]?_0x45f456[_0x58794d(0xc8)]:_0x45f456[_0x58794d(0x14c)];const _0x59d454={};_0x59d454['name']=_0x3c8735,_0x59d454[_0x58794d(0xc1)]=_0x45f456[_0x58794d(0x174)];let _0x2a5087=await _0x488b24[_0x58794d(0x1af)](_0x59d454),_0x16715f=_0x115e3f[_0x58794d(0x101)](_0x2a5087)+'/'+_0x1808b5,_0x5c548c=_0x45f456[_0x58794d(0xbd)];try{const _0x4c38e1=_0x58794d(0x165)+AG_API_URL+_0x58794d(0x199)+_0x4e33bb,_0x10131c=await _0x45f456['XDHuW'](got,_0x4c38e1,_0x3e8526);(_0x45f456[_0x58794d(0x13b)](_0x10131c,null)||_0x45f456[_0x58794d(0x16d)](_0x10131c,undefined))&&(_0x26e751=_0x45f456['yGCOr'],await _0x45f456[_0x58794d(0x107)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes['ERROR'],_0x45f456['nvOqu'],_0x45f456[_0x58794d(0xd7)],_0x45f456[_0x58794d(0x1de)]),logger[_0x58794d(0x105)](_0x26e751),process['exit'](0x1));_0x45f456['olkzt'](_0x10131c['statusCode'],0x191)&&(_0x26e751=_0x45f456[_0x58794d(0x1b5)],await _0x45f456[_0x58794d(0x156)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456['nvOqu'],_0x45f456['lJurz'],_0x45f456['MsHBq']),logger[_0x58794d(0x105)](_0x26e751),process['exit'](0x1));_0x45f456['xEuQh'](_0x10131c['statusCode'],0xc8)&&(_0x26e751=_0x58794d(0x135)+JSON['stringify'](_0x10131c),await _0x45f456[_0x58794d(0x176)](reportToGalactusAndSendToEDS,_0x5714b3,_0x2928e9,_0x26e751,messageTypes[_0x58794d(0x13f)],_0x45f456[_0x58794d(0x194)],_0x45f456[_0x58794d(0x1a6)],_0x45f456[_0x58794d(0x1de)]),logger['error'](_0x26e751),process['exit'](0x1));const _0x1d932c=JSON[_0x58794d(0xef)](_0x10131c[_0x58794d(0x18e)]);_0x1d932c[_0x58794d(0xf4)]&&(_0x16715f=_0x1d932c['route53'],_0x5c548c=_0x45f456[_0x58794d(0x148)]),global_registry['isPrivateGrid']&&(_0x5c548c=_0x45f456[_0x58794d(0xbd)]);}catch(_0x4424ff){}_0x26e751='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x16715f+'\x20',logger[_0x58794d(0x159)](_0x26e751);const _0x3341be={};_0x3341be[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x3341be[_0x58794d(0xda)]=_0x26e751,webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x3341be),_0x26e751=_0x58794d(0x15f)+_0x5c548c+'://'+_0x16715f+_0x58794d(0x118),logger[_0x58794d(0x159)](_0x26e751);const _0x34eca5={};_0x34eca5[_0x58794d(0x1b2)]=WS_EVENTS[_0x58794d(0x186)],_0x34eca5[_0x58794d(0xda)]=_0x26e751,webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x34eca5);const _0x3dedc3={};_0x3dedc3['type']=WS_EVENTS[_0x58794d(0xfc)],_0x3dedc3[_0x58794d(0xda)]='CLI\x20run\x20finished:\x20'+_0x16715f,webSocketUtils['sendEventToBackend'](_0x2928e9,_0x3dedc3),await webSocketUtils['delay'](0x7d0);}catch(_0x2d78e5){if(_0x45f456[_0x58794d(0x1d5)](_0x45448e,![]))try{logger['info'](_0x58794d(0x19e)),await _0x45f456[_0x58794d(0x119)](removeGridComponents,_0x488b24,_0x1630a6,_0x203f0c,_0x333f06,_0x1808b5),await _0x115e3f[_0x58794d(0x10b)](_0x488b24,global_registry[_0x58794d(0x15c)]);}catch(_0x4ae6de){throw _0x4ae6de;}throw _0x2d78e5;}}catch(_0x143801){const _0x32ac7e=_0x58794d(0x1a3)+_0x143801+'\x20\x0a'+JSON[_0x58794d(0x17a)](_0x143801)+'\x20';if(_0x2928e9){const _0x47b27e={};_0x47b27e['type']=WS_EVENTS[_0x58794d(0x186)],_0x47b27e[_0x58794d(0xda)]=_0x32ac7e,webSocketUtils[_0x58794d(0x144)](_0x2928e9,_0x47b27e,_0x45f456[_0x58794d(0x1de)],!![]);}await webSocketUtils[_0x58794d(0x12f)](0x7d0);const _0x1ed405={};_0x1ed405[_0x58794d(0x105)]=_0x32ac7e,await _0x45f456['thcXQ'](sendInstrumentationEvent,_0x5714b3,_0x45f456[_0x58794d(0x194)],messageTypes[_0x58794d(0x13f)],_0x45f456['WoOln'],_0x1ed405,_0x5714b3),logger['error'](_0x32ac7e);}process['exit'](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10_0x3cf124=a10_0x1b13;(function(_0x148719,_0x1b9327){const _0xbb84f1=a10_0x1b13,_0x43019c=_0x148719();while(!![]){try{const _0x2f8d0f=-parseInt(_0xbb84f1(0x106))/0x1*(-parseInt(_0xbb84f1(0x10b))/0x2)+parseInt(_0xbb84f1(0x107))/0x3+parseInt(_0xbb84f1(0x104))/0x4+-parseInt(_0xbb84f1(0x10a))/0x5+parseInt(_0xbb84f1(0x117))/0x6*(parseInt(_0xbb84f1(0x10e))/0x7)+parseInt(_0xbb84f1(0x119))/0x8+-parseInt(_0xbb84f1(0x105))/0x9;if(_0x2f8d0f===_0x1b9327)break;else _0x43019c['push'](_0x43019c['shift']());}catch(_0x1bf879){_0x43019c['push'](_0x43019c['shift']());}}}(a10_0x3b57,0x40000));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x3cf124(0x108));function a10_0x1b13(_0xe5f7d3,_0x25ede0){const _0x3b5788=a10_0x3b57();return a10_0x1b13=function(_0x1b1366,_0x392387){_0x1b1366=_0x1b1366-0x103;let _0x2059c3=_0x3b5788[_0x1b1366];return _0x2059c3;},a10_0x1b13(_0xe5f7d3,_0x25ede0);}exports[a10_0x3cf124(0x10c)]='delete',exports[a10_0x3cf124(0x110)]=a10_0x3cf124(0x10d),exports[a10_0x3cf124(0x10f)]=function(_0x18ffe5){const _0x3a25be=a10_0x3cf124,_0x3d5608={};_0x3d5608['KbRYS']=_0x3a25be(0x116),_0x3d5608[_0x3a25be(0x114)]=_0x3a25be(0x113);const _0x232ffc=_0x3d5608;return _0x18ffe5[_0x3a25be(0x118)](HELP_HEADER_MESSAGE[_0x3a25be(0x103)])[_0x3a25be(0x115)](HELP_FOOTER_MESSAGE)['commandDir'](_0x232ffc['KbRYS'])[_0x3a25be(0x112)]()['recommendCommands']()[_0x3a25be(0x111)]()['help'](_0x232ffc[_0x3a25be(0x114)]);},exports[a10_0x3cf124(0x109)]=function(_0x4f2dfa){};function a10_0x3b57(){const _0x3b1df=['handler','1772955BQqmhd','2zNMgRr','command','List\x20Grid\x20resources.','7OeFJvS','builder','desc','strict','demandCommand','help','ansdG','epilogue','delete_commands','447822rDZVJX','usage','3194584OeMVDY','delete','393344jqglGR','2781648ghbxOy','81283fTsGAG','816684fqexMi','../config/constants'];a10_0x3b57=function(){return _0x3b1df;};return a10_0x3b57();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0xddb1(){const _0x378a52=['dmmtq','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','hJXdX','xGGwr','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','NEFcL','pbBkh','tZDZF','username','osKub','description','aAKKR','mHQyN','parse','message','SYZrm','Browserstack','delete','mKrcg','usage','SFDhn','../../cloudproviders/utils','stringify','exit','hqkBV','yZete','Failed\x20to\x20delete\x20resources!\x20Error:\x20','zEwZN','existsSync','configureIfNotConfigured','JNXZJ','Succesfully\x20deleted\x20the\x20grid','SZncm','../../utils/utilityMethods','fetchLocalCreds','clusterId','EIBzD','qxKPB','2028928NpemUW','\x22\x20and\x20ID\x20','VaJsL','info','INFO','toLowerCase','AVxhj','Delete\x20an\x20Automation\x20grid.','desc','\x22\x20with\x20ID\x20','RlBJq','qBjuQ','3435804CXKqNS','uyEud','EZnDj','20640141JEsbiy','XUrCZ','FWGbA','yHgvt','options','invalid-grid-id','grid','UMeeC','IwRMP','pEYMQ','1844108hCkWVX','help','48270dEVLLI','yJFca','283863lYMRws','XAbxD','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','IGYRV','zNzmy','Daqwd','stack','../../config/logger','ERROR','Cluster:\x20','KhIhW','type','isBrowserstackCluster','lLnkI','zhetM','Pjebk','FIHnB','region','YFpAO','name','builder','gsYRv','orHEj','cVotM','DWIkt','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','statusCode','EhKnp','../../utils/createk8sClient','password','got','uVgVm','eMBLE','mhXXd','cloudProvider','https://','Sethq','GdRLD','delete-grid-called','clusterName','Pass\x20the\x20ID\x20of\x20the\x20Grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','maQyD','init-not-called','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../utils/userInput','2xtLSxl','onlyGridInCluster','4937072juczqo','1070seCvzs','KauFv','writeFileSync','clusterRegion','RhaVb','argv','error','handler','grid-id','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','unauthorised','jHnIc','EQWAR','ikoEe','ZXWAw','epilogue','DELETE','warn','LmLxt','gridId','kbZhZ','KieDR'];a11_0xddb1=function(){return _0x378a52;};return a11_0xddb1();}const a11_0x1f7d3c=a11_0x32ba;function a11_0x32ba(_0x4ee235,_0x217fb2){const _0xddb16a=a11_0xddb1();return a11_0x32ba=function(_0x32baa7,_0x5731dc){_0x32baa7=_0x32baa7-0x16e;let _0x49464a=_0xddb16a[_0x32baa7];return _0x49464a;},a11_0x32ba(_0x4ee235,_0x217fb2);}(function(_0x3616ef,_0x1d9816){const _0x3dade3=a11_0x32ba,_0x26894b=_0x3616ef();while(!![]){try{const _0x3bbdfb=parseInt(_0x3dade3(0x1c3))/0x1*(parseInt(_0x3dade3(0x1f1))/0x2)+parseInt(_0x3dade3(0x1b2))/0x3+parseInt(_0x3dade3(0x1bf))/0x4+-parseInt(_0x3dade3(0x1f4))/0x5*(-parseInt(_0x3dade3(0x1c1))/0x6)+-parseInt(_0x3dade3(0x1f3))/0x7+parseInt(_0x3dade3(0x1a6))/0x8+-parseInt(_0x3dade3(0x1b5))/0x9;if(_0x3bbdfb===_0x1d9816)break;else _0x26894b['push'](_0x26894b['shift']());}catch(_0x561763){_0x26894b['push'](_0x26894b['shift']());}}}(a11_0xddb1,0xd39c7));const fs=require('fs'),got=require(a11_0x1f7d3c(0x1e1)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a11_0x1f7d3c(0x1ca)),{getCloudProviderObject}=require(a11_0x1f7d3c(0x195)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x1f7d3c(0x1f0)),{createK8sClient}=require(a11_0x1f7d3c(0x1df)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1f7d3c(0x1a1));exports['command']=a11_0x1f7d3c(0x1bb),exports[a11_0x1f7d3c(0x1ae)]=a11_0x1f7d3c(0x1ad),exports[a11_0x1f7d3c(0x1d7)]=function(_0x1ba377){const _0xc3caf5=a11_0x1f7d3c,_0x526f93={};_0x526f93[_0xc3caf5(0x1e8)]=_0xc3caf5(0x1eb),_0x526f93[_0xc3caf5(0x185)]='string',_0x526f93[_0xc3caf5(0x176)]=_0xc3caf5(0x1c0);const _0x170759=_0x526f93,_0x425c1a={};_0x425c1a['description']=_0x170759[_0xc3caf5(0x1e8)],_0x425c1a[_0xc3caf5(0x1ce)]=_0x170759['NEFcL'];const _0x4e41fa={};return _0x4e41fa[_0xc3caf5(0x170)]=_0x425c1a,_0x1ba377[_0xc3caf5(0x193)](HELP_HEADER_MESSAGE[_0xc3caf5(0x191)])[_0xc3caf5(0x177)](HELP_FOOTER_MESSAGE)[_0xc3caf5(0x1b9)](_0x4e41fa)[_0xc3caf5(0x1c0)](_0x170759[_0xc3caf5(0x176)])[_0xc3caf5(0x1f9)];},exports[a11_0x1f7d3c(0x16f)]=async function(_0x193484){const _0x4296c8=a11_0x1f7d3c,_0x1ee113={'DWIkt':_0x4296c8(0x1eb),'WjTiW':'string','mHQyN':_0x4296c8(0x1c0),'yHgvt':_0x4296c8(0x180),'mKrcg':function(_0x3b1925){return _0x3b1925();},'lLnkI':function(_0x4b0580){return _0x4b0580();},'hqkBV':function(_0x448aff,_0x26430a){return _0x448aff!==_0x26430a;},'UMeeC':_0x4296c8(0x17a),'jHnIc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RlBJq':function(_0x4ade78,_0x5d2e04,_0x280f90,_0x53bf4e,_0x15d62f,_0x5e57a2,_0x451190){return _0x4ade78(_0x5d2e04,_0x280f90,_0x53bf4e,_0x15d62f,_0x5e57a2,_0x451190);},'JNXZJ':_0x4296c8(0x1e9),'VaJsL':_0x4296c8(0x1ee),'gsYRv':function(_0x556814,_0x1ef367,_0x5c2b31,_0x333a60,_0x47aed7,_0x5bc4f1,_0x2e38dd){return _0x556814(_0x1ef367,_0x5c2b31,_0x333a60,_0x47aed7,_0x5bc4f1,_0x2e38dd);},'KhIhW':function(_0x48bbeb,_0x3455fc){return _0x48bbeb!==_0x3455fc;},'zEwZN':_0x4296c8(0x1f8),'zNzmy':function(_0x191442){return _0x191442();},'ItuuB':function(_0x169901,_0x5c6c37,_0x2a8e38,_0x285c25){return _0x169901(_0x5c6c37,_0x2a8e38,_0x285c25);},'Daqwd':function(_0x175200,_0x45c9d2){return _0x175200===_0x45c9d2;},'eMBLE':_0x4296c8(0x190),'IwRMP':function(_0x2e2b81,_0x3af5ad){return _0x2e2b81!==_0x3af5ad;},'Pjebk':'SkuWd','xGznI':function(_0x3953f3,_0x25503e){return _0x3953f3(_0x25503e);},'Sethq':function(_0x555abd,_0x587863){return _0x555abd===_0x587863;},'FWGbA':function(_0x2971d1,_0x1b3baf){return _0x2971d1===_0x1b3baf;},'zhetM':function(_0x35fd87,_0x99b384){return _0x35fd87===_0x99b384;},'osKub':function(_0x5eecf4,_0xa5ecbe){return _0x5eecf4===_0xa5ecbe;},'SYZrm':function(_0x3cc30f,_0x128d8a){return _0x3cc30f!==_0x128d8a;},'dmmtq':_0x4296c8(0x1da),'hJXdX':_0x4296c8(0x1e2),'SUHNH':_0x4296c8(0x1c5),'KauFv':'invalid-input','llGih':function(_0x2731c7,_0x17e744){return _0x2731c7===_0x17e744;},'EZnDj':'cBvQP','nAQEn':_0x4296c8(0x174),'KieDR':function(_0x363ab9,_0x22608e){return _0x363ab9===_0x22608e;},'SFDhn':function(_0x4d9750,_0x5beffb){return _0x4d9750===_0x5beffb;},'qTGIU':_0x4296c8(0x175),'pEYMQ':_0x4296c8(0x1b6),'qxKPB':_0x4296c8(0x184),'CujWq':function(_0x152bd3,_0x263897){return _0x152bd3===_0x263897;},'tZDZF':_0x4296c8(0x199),'xGGwr':function(_0x23e46a,_0x4feedb,_0x2ad05b,_0x4d56a5){return _0x23e46a(_0x4feedb,_0x2ad05b,_0x4d56a5);},'SZncm':function(_0x585ab8){return _0x585ab8();},'XAbxD':_0x4296c8(0x1dc),'EhKnp':_0x4296c8(0x17f),'IGYRV':function(_0x1fb9a3,_0xe4fe12){return _0x1fb9a3(_0xe4fe12);},'orHEj':function(_0x2fe8b3,_0x9db8a4){return _0x2fe8b3(_0x9db8a4);},'uyEud':function(_0x20d8b2,_0x3eb970,_0x3cea97,_0x4c4115,_0x516eb9,_0x272cf5){return _0x20d8b2(_0x3eb970,_0x3cea97,_0x4c4115,_0x516eb9,_0x272cf5);},'PEZzg':_0x4296c8(0x178),'AVxhj':function(_0x3ee68d,_0x1cf1d3,_0x39b57e){return _0x3ee68d(_0x1cf1d3,_0x39b57e);},'YFpAO':function(_0x5e8257,_0x366a29,_0x5d23f0){return _0x5e8257(_0x366a29,_0x5d23f0);},'kbZhZ':function(_0x5e24ba,_0x5cf665){return _0x5e24ba!==_0x5cf665;},'aAKKR':function(_0x51cab5,_0x167db0){return _0x51cab5!==_0x167db0;},'qBjuQ':'server-error','gDecj':function(_0x5281e8,_0x42420c){return _0x5281e8===_0x42420c;},'FIHnB':function(_0x3a336e,_0x58d44d,_0x32bf4e,_0x3d42ea,_0x452066,_0x2d6e92,_0x2556b0){return _0x3a336e(_0x58d44d,_0x32bf4e,_0x3d42ea,_0x452066,_0x2d6e92,_0x2556b0);},'maQyD':_0x4296c8(0x172),'EIBzD':function(_0x1461df,_0x2e7350){return _0x1461df===_0x2e7350;},'pbBkh':_0x4296c8(0x1ba),'yJFca':function(_0x489b83,_0xd3cfd0,_0x3d0a0a,_0x46327c,_0x1ffa42,_0x5252ba,_0x36d2de){return _0x489b83(_0xd3cfd0,_0x3d0a0a,_0x46327c,_0x1ffa42,_0x5252ba,_0x36d2de);},'mhXXd':'unknown-error'};try{global_registry['requestId']=_0x1ee113[_0x4296c8(0x192)](uuidv4);!fs[_0x4296c8(0x19c)](_0x1ee113[_0x4296c8(0x1d0)](getCredentialsPath))&&(_0x1ee113[_0x4296c8(0x198)](_0x1ee113[_0x4296c8(0x1bc)],_0x1ee113['UMeeC'])?_0x4aad4c['warn'](_0x4296c8(0x1cc)+_0x8bb9eb[_0x4296c8(0x1ea)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):(console[_0x4296c8(0x16e)](_0x1ee113[_0x4296c8(0x173)]),await _0x1ee113[_0x4296c8(0x1b0)](sendInstrumentationEvent,_0x193484,_0x1ee113[_0x4296c8(0x19e)],messageTypes[_0x4296c8(0x1cb)],_0x1ee113[_0x4296c8(0x1a8)],null,_0x193484),process['exit'](0x1)));_0x1ee113[_0x4296c8(0x1d8)](sendInstrumentationEvent,_0x193484,_0x1ee113['JNXZJ'],messageTypes[_0x4296c8(0x1aa)],null,null,_0x193484);if(!_0x193484[_0x4296c8(0x17b)]){if(_0x1ee113[_0x4296c8(0x1cd)](_0x1ee113['zEwZN'],_0x1ee113[_0x4296c8(0x19b)])){const _0x1e9b62={};_0x1e9b62[_0x4296c8(0x18a)]=_0x1ee113[_0x4296c8(0x1db)],_0x1e9b62[_0x4296c8(0x1ce)]=_0x1ee113['WjTiW'];const _0x56969f={};return _0x56969f[_0x4296c8(0x170)]=_0x1e9b62,_0x4e44f9[_0x4296c8(0x193)](_0x58af49['delete'])[_0x4296c8(0x177)](_0x2d66b5)[_0x4296c8(0x1b9)](_0x56969f)[_0x4296c8(0x1c0)](_0x1ee113[_0x4296c8(0x18c)])[_0x4296c8(0x1f9)];}else console[_0x4296c8(0x16e)](_0x1ee113[_0x4296c8(0x1b8)]),process[_0x4296c8(0x197)](0x1);}const _0x2943e0=JSON[_0x4296c8(0x18d)](fs['readFileSync'](_0x1ee113[_0x4296c8(0x1c7)](getCredentialsPath))),[_0x57beb4,_0x43efdc]=await _0x1ee113['ItuuB'](getGridDetails,_0x2943e0[_0x4296c8(0x190)][_0x4296c8(0x188)],_0x2943e0[_0x4296c8(0x190)][_0x4296c8(0x1e0)],_0x193484[_0x4296c8(0x17b)]);if(_0x43efdc){const _0x379a7a=_0x43efdc[_0x4296c8(0x1a9)];let _0x2bcb02=_0x4296c8(0x183)+_0x379a7a[_0x4296c8(0x1d6)]+_0x4296c8(0x1a7)+_0x379a7a['id']+_0x4296c8(0x171),_0x4af04e;_0x43efdc[_0x4296c8(0x1f2)]&&_0x1ee113[_0x4296c8(0x1c8)](_0x43efdc['clusterSpawnedVia'],_0x1ee113[_0x4296c8(0x1e3)])&&(_0x1ee113[_0x4296c8(0x1bd)](_0x1ee113['Pjebk'],_0x1ee113[_0x4296c8(0x1d2)])?(_0x3a35cb[_0x4296c8(0x16e)](_0x1ee113[_0x4296c8(0x1b8)]),_0x2a9007['exit'](0x1)):_0x2bcb02=_0x4296c8(0x183)+_0x379a7a[_0x4296c8(0x1d6)]+_0x4296c8(0x1a7)+_0x379a7a['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x379a7a['clusterName']+'\x22\x20with\x20ID\x20'+_0x379a7a[_0x4296c8(0x1a3)]+_0x4296c8(0x171));_0x4af04e=await _0x1ee113['xGznI'](inputConfirmation,_0x2bcb02);(_0x1ee113[_0x4296c8(0x1e7)](_0x4af04e,undefined)||_0x1ee113[_0x4296c8(0x1b7)](_0x4af04e,null)||!(_0x1ee113[_0x4296c8(0x1d1)](_0x4af04e[_0x4296c8(0x1ab)](),'y')||_0x1ee113[_0x4296c8(0x189)](_0x4af04e[_0x4296c8(0x1ab)](),'n')))&&(_0x1ee113[_0x4296c8(0x18f)](_0x1ee113[_0x4296c8(0x17e)],_0x1ee113[_0x4296c8(0x181)])?(console['error'](_0x1ee113['SUHNH']),await _0x1ee113['RlBJq'](sendInstrumentationEvent,_0x193484,_0x1ee113[_0x4296c8(0x19e)],messageTypes[_0x4296c8(0x1cb)],_0x1ee113[_0x4296c8(0x1f5)],null,_0x193484),process['exit'](0x1)):(_0x452eb7['info']('Succesfully\x20deleted\x20the\x20grid'),_0x25a43d[_0x4296c8(0x197)](0x0)));_0x1ee113['llGih'](_0x4af04e['toLowerCase'](),'n')&&(_0x1ee113[_0x4296c8(0x1cd)](_0x1ee113[_0x4296c8(0x1b4)],_0x1ee113['nAQEn'])?process['exit'](0x0):_0x2503f9[_0x4296c8(0x1e5)]={});global_registry[_0x4296c8(0x1f7)]=_0x379a7a[_0x4296c8(0x1d4)];const _0x43928a=_0x379a7a[_0x4296c8(0x1e5)],_0x1d641c=_0x1ee113['ItuuB'](getCloudProviderObject,_0x43928a,_0x379a7a[_0x4296c8(0x1ea)],_0x379a7a[_0x4296c8(0x1d6)]),_0x1db3b1=_0x2943e0[_0x4296c8(0x1e5)];if(_0x1ee113[_0x4296c8(0x17d)](_0x1db3b1[_0x43928a],undefined)){if(_0x1ee113[_0x4296c8(0x194)](_0x1ee113['qTGIU'],_0x1ee113[_0x4296c8(0x1be)]))_0x586bbb[_0x4296c8(0x197)](0x0);else{logger[_0x4296c8(0x1a9)](_0x1ee113[_0x4296c8(0x1a5)]);_0x1ee113['Daqwd'](_0x2943e0[_0x4296c8(0x1e5)],undefined)&&(_0x1ee113['CujWq'](_0x1ee113[_0x4296c8(0x187)],_0x1ee113[_0x4296c8(0x187)])?_0x2943e0[_0x4296c8(0x1e5)]={}:_0x363875=_0x4296c8(0x183)+_0x261740[_0x4296c8(0x1d6)]+_0x4296c8(0x1a7)+_0x2ef3bc['id']+_0x4296c8(0x1ef)+_0x26dea9[_0x4296c8(0x1ea)]+_0x4296c8(0x1af)+_0x2b9591['clusterId']+_0x4296c8(0x171));_0x2943e0['cloudProvider'][_0x43928a]={};const _0x4cd2a3=await _0x1ee113[_0x4296c8(0x182)](inputCloudProviderKeys,_0x43928a,_0x2943e0,_0x1d641c);fs[_0x4296c8(0x1f6)](_0x1ee113[_0x4296c8(0x1a0)](getCredentialsPath),JSON['stringify'](_0x4cd2a3)),logger['debug'](_0x1ee113[_0x4296c8(0x1c4)]);}}else logger[_0x4296c8(0x1a9)](_0x1ee113[_0x4296c8(0x1de)]),await _0x1d641c[_0x4296c8(0x1a2)](_0x1db3b1);_0x1d641c[_0x4296c8(0x19d)]();const _0x3b6967=_0x1ee113[_0x4296c8(0x1c6)](kebabCase,_0x379a7a[_0x4296c8(0x1d6)]),[_0x1ee6e7,_0x2337b0,_0x39aeca,_0x550838,_0x3eed6d,_0x4ce710]=await _0x1ee113[_0x4296c8(0x1d9)](createK8sClient,_0x1d641c);await _0x1ee113[_0x4296c8(0x1b3)](removeGridComponents,_0x1ee6e7,_0x2337b0,_0x39aeca,_0x550838,_0x3b6967);if(_0x43efdc[_0x4296c8(0x1f2)]){const _0x3be4d4=await _0x1d641c[_0x4296c8(0x1cf)]();_0x3be4d4?await _0x1d641c['deleteCluster'](_0x1ee6e7,_0x379a7a[_0x4296c8(0x1d4)]):logger[_0x4296c8(0x179)](_0x4296c8(0x1cc)+_0x379a7a[_0x4296c8(0x1ea)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x2b550d=_0x4296c8(0x1e6)+AG_API_URL+'/packages/cli/grid/'+_0x193484[_0x4296c8(0x17b)],_0x266be3={'method':_0x1ee113['PEZzg'],'headers':_0x1ee113[_0x4296c8(0x1ac)](getAuthHeader,_0x2943e0[_0x4296c8(0x190)]['username'],_0x2943e0['Browserstack'][_0x4296c8(0x1e0)])},_0x5d1432=await _0x1ee113[_0x4296c8(0x1d5)](got,_0x2b550d,_0x266be3);_0x1ee113[_0x4296c8(0x17c)](_0x5d1432,null)&&_0x1ee113[_0x4296c8(0x18b)](_0x5d1432,undefined)&&_0x1ee113['KieDR'](_0x5d1432['statusCode'],0xc8)&&(logger[_0x4296c8(0x1a9)](_0x4296c8(0x19f)),process[_0x4296c8(0x197)](0x0)),logger[_0x4296c8(0x16e)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x5d1432)),await _0x1ee113['gsYRv'](sendInstrumentationEvent,_0x193484,_0x1ee113[_0x4296c8(0x19e)],messageTypes[_0x4296c8(0x1cb)],_0x1ee113['qBjuQ'],_0x57beb4,_0x193484),process['exit'](0x1);}_0x1ee113['gDecj'](_0x57beb4[_0x4296c8(0x1dd)],0x191)&&(logger[_0x4296c8(0x16e)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x1ee113[_0x4296c8(0x1d3)](sendInstrumentationEvent,_0x193484,_0x1ee113['JNXZJ'],messageTypes[_0x4296c8(0x1cb)],_0x1ee113[_0x4296c8(0x1ed)],null,_0x193484),process[_0x4296c8(0x197)](0x1)),_0x1ee113[_0x4296c8(0x1a4)](_0x57beb4['statusCode'],0x190)&&(logger[_0x4296c8(0x16e)](JSON[_0x4296c8(0x18d)](_0x57beb4['body'])[_0x4296c8(0x18e)]),await _0x1ee113[_0x4296c8(0x1b0)](sendInstrumentationEvent,_0x193484,_0x1ee113['JNXZJ'],messageTypes['ERROR'],_0x1ee113[_0x4296c8(0x186)],null,_0x193484),process['exit'](0x1)),logger[_0x4296c8(0x16e)](_0x4296c8(0x1ec)+JSON[_0x4296c8(0x196)](_0x57beb4)),await _0x1ee113[_0x4296c8(0x1d8)](sendInstrumentationEvent,_0x193484,_0x1ee113['JNXZJ'],messageTypes[_0x4296c8(0x1cb)],_0x1ee113[_0x4296c8(0x1b1)],_0x57beb4,_0x193484),process['exit'](0x1);}catch(_0xc8ba5f){logger[_0x4296c8(0x16e)](_0x4296c8(0x19a)+_0xc8ba5f[_0x4296c8(0x1c9)]),await _0x1ee113[_0x4296c8(0x1c2)](sendInstrumentationEvent,_0x193484,_0x1ee113[_0x4296c8(0x19e)],messageTypes[_0x4296c8(0x1cb)],_0x1ee113[_0x4296c8(0x1e4)],_0xc8ba5f,_0x193484),process['exit'](0x1);}};
|
|
1
|
+
const a11_0xe72cf1=a11_0x55b0;(function(_0x349974,_0x1237ef){const _0x3c972e=a11_0x55b0,_0x3ed813=_0x349974();while(!![]){try{const _0x4ebf90=parseInt(_0x3c972e(0x1be))/0x1+parseInt(_0x3c972e(0x1f5))/0x2*(-parseInt(_0x3c972e(0x1d5))/0x3)+-parseInt(_0x3c972e(0x211))/0x4*(parseInt(_0x3c972e(0x1fd))/0x5)+-parseInt(_0x3c972e(0x22f))/0x6*(-parseInt(_0x3c972e(0x201))/0x7)+parseInt(_0x3c972e(0x1b9))/0x8+-parseInt(_0x3c972e(0x210))/0x9+parseInt(_0x3c972e(0x1fa))/0xa;if(_0x4ebf90===_0x1237ef)break;else _0x3ed813['push'](_0x3ed813['shift']());}catch(_0x4523b3){_0x3ed813['push'](_0x3ed813['shift']());}}}(a11_0x5300,0x8d209));const fs=require('fs'),got=require(a11_0xe72cf1(0x241)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0xe72cf1(0x1f7)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0xe72cf1(0x1f1)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0xe72cf1(0x216)),{sendInstrumentationEvent}=require(a11_0xe72cf1(0x235)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0xe72cf1(0x20f)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods');function a11_0x55b0(_0x4a52ad,_0xe0d465){const _0x530060=a11_0x5300();return a11_0x55b0=function(_0x55b0fe,_0x2ad64d){_0x55b0fe=_0x55b0fe-0x1b4;let _0x5ad36d=_0x530060[_0x55b0fe];return _0x5ad36d;},a11_0x55b0(_0x4a52ad,_0xe0d465);}exports[a11_0xe72cf1(0x1cc)]=a11_0xe72cf1(0x1c9),exports[a11_0xe72cf1(0x233)]=a11_0xe72cf1(0x209),exports['builder']=function(_0x1f606e){const _0x3b7115=a11_0xe72cf1,_0x5c2b7b={};_0x5c2b7b[_0x3b7115(0x21a)]=_0x3b7115(0x1e9),_0x5c2b7b[_0x3b7115(0x237)]=_0x3b7115(0x1f8),_0x5c2b7b[_0x3b7115(0x1d0)]='help';const _0x4f9863=_0x5c2b7b,_0x4c7c07={};_0x4c7c07['description']=_0x4f9863['GpjHH'],_0x4c7c07[_0x3b7115(0x1ef)]=_0x4f9863[_0x3b7115(0x237)];const _0x4c7e85={};return _0x4c7e85[_0x3b7115(0x1c4)]=_0x4c7c07,_0x1f606e[_0x3b7115(0x1c8)](HELP_HEADER_MESSAGE[_0x3b7115(0x214)])[_0x3b7115(0x218)](HELP_FOOTER_MESSAGE)[_0x3b7115(0x1dc)](_0x4c7e85)['help'](_0x4f9863['vMhWu'])[_0x3b7115(0x228)];},exports[a11_0xe72cf1(0x231)]=async function(_0x52d63d){const _0x2b22e1=a11_0xe72cf1,_0x5ed007={'kXFcd':_0x2b22e1(0x1e9),'uzCtV':_0x2b22e1(0x1f8),'ufyMk':_0x2b22e1(0x212),'nXSxT':_0x2b22e1(0x1ba),'uSsII':function(_0x3cc5a6){return _0x3cc5a6();},'VrcWI':function(_0x53df0a,_0xcf4a92){return _0x53df0a===_0xcf4a92;},'YgaNc':_0x2b22e1(0x222),'VtxSo':_0x2b22e1(0x243),'zZirk':function(_0x17f083,_0x162348,_0x144e39,_0x516d18,_0x327fac,_0x1fd38d,_0x2c5a13){return _0x17f083(_0x162348,_0x144e39,_0x516d18,_0x327fac,_0x1fd38d,_0x2c5a13);},'cBuwC':'delete-grid-called','VVlPB':_0x2b22e1(0x1bc),'wIdfn':function(_0x522b95,_0x9a709,_0xbd15c8,_0x450fbb,_0x3567d0,_0x294451,_0x2b9946){return _0x522b95(_0x9a709,_0xbd15c8,_0x450fbb,_0x3567d0,_0x294451,_0x2b9946);},'ptOpq':function(_0x209fdb,_0x35e332){return _0x209fdb!==_0x35e332;},'pMdcF':_0x2b22e1(0x23b),'FcDmE':_0x2b22e1(0x1d3),'fhVnT':function(_0x2af11e){return _0x2af11e();},'KBkmA':function(_0x1048f0,_0x3576a1,_0x16c4b9,_0x2397bf){return _0x1048f0(_0x3576a1,_0x16c4b9,_0x2397bf);},'Nqoyn':function(_0x3439dd,_0x470de0){return _0x3439dd===_0x470de0;},'veFVF':'Browserstack','eqTlx':function(_0x18df0f,_0x414987){return _0x18df0f!==_0x414987;},'BUCRo':_0x2b22e1(0x1bd),'xcxFu':_0x2b22e1(0x21b),'yayRg':function(_0x3a7cb2,_0x5b955c){return _0x3a7cb2(_0x5b955c);},'OsjOR':function(_0x5ca30f,_0x1f8ac1){return _0x5ca30f===_0x1f8ac1;},'dlGaG':'nXSDK','Ixlcc':_0x2b22e1(0x236),'rsbmY':_0x2b22e1(0x204),'tXuwM':'invalid-input','SOuVf':function(_0x4a6429,_0x221756){return _0x4a6429!==_0x221756;},'cJCHn':_0x2b22e1(0x1cd),'hMuQd':'WtUCo','zHbTI':function(_0x1431bd,_0x3c40dc,_0x61a658,_0x6031b2){return _0x1431bd(_0x3c40dc,_0x61a658,_0x6031b2);},'jzmpm':function(_0x554464,_0x100e3d){return _0x554464===_0x100e3d;},'fbYnI':_0x2b22e1(0x1f2),'dVLRv':_0x2b22e1(0x1da),'mCisv':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','OTyyX':function(_0x48a2bc,_0x2b67a1){return _0x48a2bc===_0x2b67a1;},'BKGqZ':_0x2b22e1(0x1e5),'HyDDn':'WVKWw','SKpUw':function(_0xb5ac15,_0x433ec5,_0x274405,_0x1b9b83){return _0xb5ac15(_0x433ec5,_0x274405,_0x1b9b83);},'znjHO':_0x2b22e1(0x1ed),'jfJer':_0x2b22e1(0x203),'dKDtG':function(_0x488480,_0x5dfa15){return _0x488480(_0x5dfa15);},'PUXag':function(_0x293745,_0x2b71cb){return _0x293745(_0x2b71cb);},'Lnrjg':function(_0x224eb1,_0x2b7329,_0x34d6c3,_0x1b5f4f,_0x16ae41,_0x3f3b99){return _0x224eb1(_0x2b7329,_0x34d6c3,_0x1b5f4f,_0x16ae41,_0x3f3b99);},'DqfUw':'DELETE','ofGgb':function(_0x5a2eea,_0x3dc97c,_0xa40ce3){return _0x5a2eea(_0x3dc97c,_0xa40ce3);},'TWCZI':function(_0x262428,_0xbd621f,_0x2f7630){return _0x262428(_0xbd621f,_0x2f7630);},'pOEMn':function(_0x33a66f,_0x36aec0){return _0x33a66f!==_0x36aec0;},'ckgHO':function(_0x4ea355,_0x1f4b86){return _0x4ea355===_0x1f4b86;},'Azenw':function(_0x5c643d,_0x354147,_0x158b70,_0x3b566a,_0x541067,_0x16c181,_0x5f3d34){return _0x5c643d(_0x354147,_0x158b70,_0x3b566a,_0x541067,_0x16c181,_0x5f3d34);},'YVhfi':_0x2b22e1(0x23a),'cpPMe':function(_0x518173,_0x1155ea){return _0x518173===_0x1155ea;},'PRgwa':_0x2b22e1(0x1f9),'GUYHt':function(_0x4501ff,_0x147af2){return _0x4501ff===_0x147af2;},'yrCLO':_0x2b22e1(0x22c),'mycsm':function(_0x53cceb,_0xa04f49,_0x204dcc,_0x177f38,_0xcb4b69,_0xd8b605,_0x284aea){return _0x53cceb(_0xa04f49,_0x204dcc,_0x177f38,_0xcb4b69,_0xd8b605,_0x284aea);},'LswCn':'unknown-error'};try{global_registry[_0x2b22e1(0x207)]=_0x5ed007[_0x2b22e1(0x22d)](uuidv4);!fs[_0x2b22e1(0x1fe)](_0x5ed007[_0x2b22e1(0x22d)](getCredentialsPath))&&(_0x5ed007['VrcWI'](_0x5ed007[_0x2b22e1(0x1bf)],_0x5ed007['YgaNc'])?(console[_0x2b22e1(0x240)](_0x5ed007[_0x2b22e1(0x1e8)]),await _0x5ed007[_0x2b22e1(0x1de)](sendInstrumentationEvent,_0x52d63d,_0x5ed007[_0x2b22e1(0x1db)],messageTypes[_0x2b22e1(0x1e1)],_0x5ed007[_0x2b22e1(0x1c7)],null,_0x52d63d),process[_0x2b22e1(0x23c)](0x1)):_0x19bf83['warn'](_0x2b22e1(0x1ce)+_0x3c9073[_0x2b22e1(0x239)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));_0x5ed007[_0x2b22e1(0x1f3)](sendInstrumentationEvent,_0x52d63d,_0x5ed007['cBuwC'],messageTypes[_0x2b22e1(0x23e)],null,null,_0x52d63d);!_0x52d63d[_0x2b22e1(0x21e)]&&(_0x5ed007[_0x2b22e1(0x1e7)](_0x5ed007['pMdcF'],_0x5ed007['FcDmE'])?(console[_0x2b22e1(0x240)](_0x5ed007[_0x2b22e1(0x1b4)]),process[_0x2b22e1(0x23c)](0x1)):(_0x4c649b[_0x2b22e1(0x229)]('Succesfully\x20deleted\x20the\x20grid'),_0x1bb664[_0x2b22e1(0x23c)](0x0)));const _0x204790=JSON[_0x2b22e1(0x1d8)](fs[_0x2b22e1(0x1eb)](_0x5ed007[_0x2b22e1(0x223)](getCredentialsPath))),[_0x5ce45f,_0x5add22]=await _0x5ed007[_0x2b22e1(0x22e)](getGridDetails,_0x204790[_0x2b22e1(0x1d7)]['username'],_0x204790[_0x2b22e1(0x1d7)]['password'],_0x52d63d[_0x2b22e1(0x21e)]);if(_0x5add22){const _0x289008=_0x5add22['info'];let _0x3ccf05=_0x2b22e1(0x1c3)+_0x289008['name']+'\x22\x20and\x20ID\x20'+_0x289008['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x186dd6;if(_0x5add22[_0x2b22e1(0x1d6)]&&_0x5ed007[_0x2b22e1(0x225)](_0x5add22[_0x2b22e1(0x242)],_0x5ed007[_0x2b22e1(0x219)])){if(_0x5ed007[_0x2b22e1(0x1c1)](_0x5ed007[_0x2b22e1(0x21f)],_0x5ed007[_0x2b22e1(0x1e2)]))_0x3ccf05=_0x2b22e1(0x1c3)+_0x289008[_0x2b22e1(0x1c0)]+_0x2b22e1(0x1fc)+_0x289008['id']+_0x2b22e1(0x1ea)+_0x289008['clusterName']+_0x2b22e1(0x20e)+_0x289008[_0x2b22e1(0x220)]+_0x2b22e1(0x1ca);else{const _0x357b5f={};_0x357b5f[_0x2b22e1(0x1e0)]=_0x5ed007[_0x2b22e1(0x208)],_0x357b5f[_0x2b22e1(0x1ef)]=_0x5ed007[_0x2b22e1(0x1d4)];const _0x1a2fbf={};return _0x1a2fbf[_0x2b22e1(0x1c4)]=_0x357b5f,_0x42b176[_0x2b22e1(0x1c8)](_0x5e57d2[_0x2b22e1(0x214)])[_0x2b22e1(0x218)](_0x26d2a5)[_0x2b22e1(0x1dc)](_0x1a2fbf)[_0x2b22e1(0x212)](_0x5ed007[_0x2b22e1(0x232)])[_0x2b22e1(0x228)];}}_0x186dd6=await _0x5ed007[_0x2b22e1(0x1c2)](inputConfirmation,_0x3ccf05);(_0x5ed007[_0x2b22e1(0x1f6)](_0x186dd6,undefined)||_0x5ed007[_0x2b22e1(0x1f6)](_0x186dd6,null)||!(_0x5ed007[_0x2b22e1(0x1f6)](_0x186dd6[_0x2b22e1(0x20b)](),'y')||_0x5ed007['Nqoyn'](_0x186dd6[_0x2b22e1(0x20b)](),'n')))&&(_0x5ed007[_0x2b22e1(0x1e7)](_0x5ed007['dlGaG'],_0x5ed007[_0x2b22e1(0x1c6)])?(console[_0x2b22e1(0x240)](_0x5ed007[_0x2b22e1(0x1c5)]),await _0x5ed007[_0x2b22e1(0x1de)](sendInstrumentationEvent,_0x52d63d,_0x5ed007['cBuwC'],messageTypes['ERROR'],_0x5ed007[_0x2b22e1(0x23f)],null,_0x52d63d),process['exit'](0x1)):_0x370ac9=_0x2b22e1(0x1c3)+_0x5f4b35['name']+_0x2b22e1(0x1fc)+_0x5483c7['id']+_0x2b22e1(0x1ea)+_0x299b50[_0x2b22e1(0x239)]+_0x2b22e1(0x20e)+_0x468a36[_0x2b22e1(0x220)]+_0x2b22e1(0x1ca));_0x5ed007[_0x2b22e1(0x225)](_0x186dd6['toLowerCase'](),'n')&&(_0x5ed007[_0x2b22e1(0x215)](_0x5ed007['cJCHn'],_0x5ed007[_0x2b22e1(0x21c)])?process[_0x2b22e1(0x23c)](0x0):_0x48c7cf['cloudProvider']={});global_registry[_0x2b22e1(0x1b6)]=_0x289008[_0x2b22e1(0x205)];const _0x152c0b=_0x289008[_0x2b22e1(0x1fb)],_0x249cb2=_0x5ed007[_0x2b22e1(0x22b)](getCloudProviderObject,_0x152c0b,_0x289008[_0x2b22e1(0x239)],_0x289008[_0x2b22e1(0x1c0)]),_0x5f085d=_0x204790['cloudProvider'];if(_0x5ed007['VrcWI'](_0x5f085d[_0x152c0b],undefined)){if(_0x5ed007[_0x2b22e1(0x245)](_0x5ed007[_0x2b22e1(0x1ff)],_0x5ed007['dVLRv']))_0x2b53f5[_0x2b22e1(0x240)](_0x5ed007[_0x2b22e1(0x1b4)]),_0x531ded[_0x2b22e1(0x23c)](0x1);else{logger[_0x2b22e1(0x229)](_0x5ed007[_0x2b22e1(0x227)]);_0x5ed007[_0x2b22e1(0x20d)](_0x204790['cloudProvider'],undefined)&&(_0x5ed007[_0x2b22e1(0x230)](_0x5ed007[_0x2b22e1(0x1b7)],_0x5ed007[_0x2b22e1(0x22a)])?_0x1da81c[_0x2b22e1(0x23c)](0x0):_0x204790[_0x2b22e1(0x1fb)]={});_0x204790[_0x2b22e1(0x1fb)][_0x152c0b]={};const _0x32ef8a=await _0x5ed007[_0x2b22e1(0x224)](inputCloudProviderKeys,_0x152c0b,_0x204790,_0x249cb2);fs[_0x2b22e1(0x1bb)](_0x5ed007['fhVnT'](getCredentialsPath),JSON[_0x2b22e1(0x234)](_0x32ef8a)),logger[_0x2b22e1(0x1ee)](_0x5ed007[_0x2b22e1(0x200)]);}}else logger['info'](_0x5ed007['jfJer']),await _0x249cb2['fetchLocalCreds'](_0x5f085d);_0x249cb2[_0x2b22e1(0x226)]();const _0x337959=_0x5ed007[_0x2b22e1(0x1d2)](kebabCase,_0x289008[_0x2b22e1(0x1c0)]),[_0x41cf36,_0x39c306,_0x289324,_0x512a15,_0x290397,_0x2985ed]=await _0x5ed007[_0x2b22e1(0x20a)](createK8sClient,_0x249cb2);await _0x5ed007[_0x2b22e1(0x1ec)](removeGridComponents,_0x41cf36,_0x39c306,_0x289324,_0x512a15,_0x337959);if(_0x5add22[_0x2b22e1(0x1d6)]){const _0x4b5fef=await _0x249cb2[_0x2b22e1(0x1d9)]();_0x4b5fef?await _0x249cb2[_0x2b22e1(0x1e3)](_0x41cf36,_0x289008[_0x2b22e1(0x205)]):logger[_0x2b22e1(0x244)]('Cluster:\x20'+_0x289008[_0x2b22e1(0x239)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x5288a2=_0x2b22e1(0x221)+AG_API_URL+_0x2b22e1(0x238)+_0x52d63d['gridId'],_0x4faeb4={'method':_0x5ed007[_0x2b22e1(0x1b8)],'headers':_0x5ed007['ofGgb'](getAuthHeader,_0x204790['Browserstack'][_0x2b22e1(0x213)],_0x204790[_0x2b22e1(0x1d7)]['password'])},_0x5a2fa2=await _0x5ed007[_0x2b22e1(0x1df)](got,_0x5288a2,_0x4faeb4);_0x5ed007['pOEMn'](_0x5a2fa2,null)&&_0x5ed007[_0x2b22e1(0x202)](_0x5a2fa2,undefined)&&_0x5ed007[_0x2b22e1(0x1cf)](_0x5a2fa2['statusCode'],0xc8)&&(logger['info'](_0x2b22e1(0x1cb)),process[_0x2b22e1(0x23c)](0x0)),logger[_0x2b22e1(0x240)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x2b22e1(0x234)](_0x5a2fa2)),await _0x5ed007[_0x2b22e1(0x1d1)](sendInstrumentationEvent,_0x52d63d,_0x5ed007['cBuwC'],messageTypes[_0x2b22e1(0x1e1)],_0x5ed007['YVhfi'],_0x5ce45f,_0x52d63d),process[_0x2b22e1(0x23c)](0x1);}_0x5ed007[_0x2b22e1(0x1dd)](_0x5ce45f[_0x2b22e1(0x1e6)],0x191)&&(logger['error'](_0x2b22e1(0x21d)),await _0x5ed007[_0x2b22e1(0x1d1)](sendInstrumentationEvent,_0x52d63d,_0x5ed007['cBuwC'],messageTypes[_0x2b22e1(0x1e1)],_0x5ed007[_0x2b22e1(0x1f0)],null,_0x52d63d),process[_0x2b22e1(0x23c)](0x1)),_0x5ed007[_0x2b22e1(0x1b5)](_0x5ce45f[_0x2b22e1(0x1e6)],0x190)&&(logger[_0x2b22e1(0x240)](JSON[_0x2b22e1(0x1d8)](_0x5ce45f['body'])['message']),await _0x5ed007[_0x2b22e1(0x1f3)](sendInstrumentationEvent,_0x52d63d,_0x5ed007['cBuwC'],messageTypes['ERROR'],_0x5ed007[_0x2b22e1(0x1f4)],null,_0x52d63d),process[_0x2b22e1(0x23c)](0x1)),logger[_0x2b22e1(0x240)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x5ce45f)),await _0x5ed007[_0x2b22e1(0x20c)](sendInstrumentationEvent,_0x52d63d,_0x5ed007['cBuwC'],messageTypes['ERROR'],_0x5ed007[_0x2b22e1(0x23d)],_0x5ce45f,_0x52d63d),process[_0x2b22e1(0x23c)](0x1);}catch(_0x4e9344){logger['error'](_0x2b22e1(0x1e4)+_0x4e9344[_0x2b22e1(0x217)]),await _0x5ed007[_0x2b22e1(0x20c)](sendInstrumentationEvent,_0x52d63d,_0x5ed007[_0x2b22e1(0x1db)],messageTypes[_0x2b22e1(0x1e1)],_0x5ed007[_0x2b22e1(0x206)],_0x4e9344,_0x52d63d),process[_0x2b22e1(0x23c)](0x1);}};function a11_0x5300(){const _0x29f1ff=['PRgwa','../../cloudproviders/utils','ridaZ','wIdfn','yrCLO','1036DorJuR','OsjOR','../../config/constants','string','unauthorised','3468730PVJIww','cloudProvider','\x22\x20and\x20ID\x20','3125dAXMIt','existsSync','fbYnI','znjHO','42EkHuRb','pOEMn','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','region','LswCn','requestId','kXFcd','Delete\x20an\x20Automation\x20grid.','PUXag','toLowerCase','mycsm','VrcWI','\x22\x20with\x20ID\x20','../../utils/userInput','3495861ciiorz','2452eYPCEh','help','username','delete','SOuVf','../../utils/gridComponents','stack','epilogue','veFVF','GpjHH','NPdUz','hMuQd','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridId','BUCRo','clusterId','https://','aKyWj','fhVnT','SKpUw','Nqoyn','configureIfNotConfigured','mCisv','argv','info','HyDDn','zHbTI','invalid-grid-id','uSsII','KBkmA','1027146ZkGvoX','OTyyX','handler','ufyMk','desc','stringify','../../utils/instrumentationUtils','YbjpO','xpGJn','/packages/cli/grid/','clusterName','server-error','fQFKO','exit','YVhfi','INFO','tXuwM','error','got','clusterSpawnedVia','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','warn','jzmpm','nXSxT','GUYHt','clusterRegion','BKGqZ','DqfUw','2788064MHLwke','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','writeFileSync','init-not-called','vlEhl','5742shoMUY','YgaNc','name','eqTlx','yayRg','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','grid-id','rsbmY','Ixlcc','VVlPB','usage','grid','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Succesfully\x20deleted\x20the\x20grid','command','nXDrA','Cluster:\x20','ckgHO','vMhWu','Azenw','dKDtG','ANybt','uzCtV','2193uVExsg','onlyGridInCluster','Browserstack','parse','isBrowserstackCluster','wYEcV','cBuwC','options','cpPMe','zZirk','TWCZI','description','ERROR','xcxFu','deleteCluster','Failed\x20to\x20delete\x20resources!\x20Error:\x20','ZcYiM','statusCode','ptOpq','VtxSo','Pass\x20the\x20ID\x20of\x20the\x20Grid','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','readFileSync','Lnrjg','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','debug','type'];a11_0x5300=function(){return _0x29f1ff;};return a11_0x5300();}
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x513862=a12_0x57f0;(function(_0x1ff466,_0x5b5e51){const _0x559124=a12_0x57f0,_0xbcc3c7=_0x1ff466();while(!![]){try{const _0x220834=parseInt(_0x559124(0x1ad))/0x1*(parseInt(_0x559124(0x151))/0x2)+-parseInt(_0x559124(0x18e))/0x3*(-parseInt(_0x559124(0x1c0))/0x4)+-parseInt(_0x559124(0x1b6))/0x5+-parseInt(_0x559124(0x1b2))/0x6*(-parseInt(_0x559124(0x17d))/0x7)+parseInt(_0x559124(0x16b))/0x8*(-parseInt(_0x559124(0x172))/0x9)+parseInt(_0x559124(0x1b8))/0xa*(-parseInt(_0x559124(0x1bf))/0xb)+parseInt(_0x559124(0x19e))/0xc;if(_0x220834===_0x5b5e51)break;else _0xbcc3c7['push'](_0xbcc3c7['shift']());}catch(_0x14fb3b){_0xbcc3c7['push'](_0xbcc3c7['shift']());}}}(a12_0x514f,0x6e730));function a12_0x57f0(_0x505bc1,_0xd5ee0f){const _0x514f67=a12_0x514f();return a12_0x57f0=function(_0x57f01c,_0x2a9767){_0x57f01c=_0x57f01c-0x150;let _0x4441f3=_0x514f67[_0x57f01c];return _0x4441f3;},a12_0x57f0(_0x505bc1,_0xd5ee0f);}const fs=require('fs'),util=require('util'),got=require(a12_0x513862(0x19a)),{v4:uuidv4}=require(a12_0x513862(0x18b)),{logger}=require(a12_0x513862(0x1c4)),{inputBstackKeys}=require(a12_0x513862(0x1a4)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x513862(0x1a1)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x513862(0x154));exports[a12_0x513862(0x192)]=a12_0x513862(0x164),exports['desc']=a12_0x513862(0x17b),exports['builder']=function(_0x663c99){const _0x2dfd39=a12_0x513862,_0x17daa1={};_0x17daa1['icmfE']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x17daa1[_0x2dfd39(0x1c3)]=_0x2dfd39(0x197),_0x17daa1['tQxjK']=_0x2dfd39(0x1aa),_0x17daa1[_0x2dfd39(0x15d)]=_0x2dfd39(0x1b3);const _0x2cd235=_0x17daa1,_0x322e12={};_0x322e12[_0x2dfd39(0x190)]=_0x2cd235[_0x2dfd39(0x1ac)],_0x322e12[_0x2dfd39(0x1a3)]=_0x2cd235['jkZMm'];const _0x5df362={};_0x5df362[_0x2dfd39(0x190)]=_0x2cd235[_0x2dfd39(0x1bd)],_0x5df362[_0x2dfd39(0x1a3)]=_0x2cd235[_0x2dfd39(0x1c3)];const _0x35fd1c={};return _0x35fd1c[_0x2dfd39(0x193)]=_0x322e12,_0x35fd1c[_0x2dfd39(0x183)]=_0x5df362,_0x663c99[_0x2dfd39(0x16f)](HELP_HEADER_MESSAGE[_0x2dfd39(0x164)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2dfd39(0x158)](_0x35fd1c)[_0x2dfd39(0x157)]()[_0x2dfd39(0x16e)]()[_0x2dfd39(0x1b3)](_0x2cd235[_0x2dfd39(0x15d)])[_0x2dfd39(0x1a0)];},exports[a12_0x513862(0x19f)]=async function(_0x2b94ed){const _0x5eb0ba=a12_0x513862,_0x30ba7b={'lUZEl':function(_0x19f1ad){return _0x19f1ad();},'vkvmz':_0x5eb0ba(0x194),'xFIWN':_0x5eb0ba(0x1be),'YrQcn':_0x5eb0ba(0x197),'VbWMS':_0x5eb0ba(0x1aa),'kjcJw':_0x5eb0ba(0x1b3),'bJtRB':function(_0x3da6fc,_0x1c31c4,_0x3b03a6,_0x30e8cd,_0x10ca8d,_0x16562d,_0x494ea4){return _0x3da6fc(_0x1c31c4,_0x3b03a6,_0x30e8cd,_0x10ca8d,_0x16562d,_0x494ea4);},'zsXIy':_0x5eb0ba(0x198),'BsDrG':function(_0x5cb6c2,_0xa513){return _0x5cb6c2===_0xa513;},'PiDtX':_0x5eb0ba(0x171),'SfiXq':_0x5eb0ba(0x1a8),'yZpbR':function(_0x2ae409,_0x1eba8d){return _0x2ae409!==_0x1eba8d;},'SOSlU':_0x5eb0ba(0x1b7),'NGZbh':_0x5eb0ba(0x163),'rMDuR':function(_0x25565a,_0x4ff3f5){return _0x25565a!==_0x4ff3f5;},'bisPg':'iuluH','wACKJ':function(_0x93fe97,_0xbcad88){return _0x93fe97===_0xbcad88;},'BtiJt':_0x5eb0ba(0x1c1),'jyNkb':_0x5eb0ba(0x178),'KJoCE':_0x5eb0ba(0x165),'Zljum':_0x5eb0ba(0x1b1),'ZdBlG':function(_0x35ed80,_0x297bf5){return _0x35ed80===_0x297bf5;},'dVhVP':_0x5eb0ba(0x1b4),'GYaXX':_0x5eb0ba(0x155),'OcnFc':_0x5eb0ba(0x1a2),'GhjYc':_0x5eb0ba(0x18a),'McePB':function(_0x51c9e9,_0x557653,_0x4cc629){return _0x51c9e9(_0x557653,_0x4cc629);},'Cwazt':function(_0x2f14df,_0x2de94a,_0x1f85b8){return _0x2f14df(_0x2de94a,_0x1f85b8);},'etGTo':function(_0x10474d,_0x1227b6){return _0x10474d!==_0x1227b6;},'yfhAH':function(_0x1573b9,_0x31748f){return _0x1573b9===_0x31748f;},'NIoQp':'GfpmB','JlCZn':_0x5eb0ba(0x19d),'GEiXm':function(_0x2d5102,_0x5bec16){return _0x2d5102!==_0x5bec16;},'pNpdw':_0x5eb0ba(0x19c),'XNdTe':function(_0x2c4c8e){return _0x2c4c8e();},'dRyOc':function(_0x14b16c,_0x1d57bb){return _0x14b16c===_0x1d57bb;},'wWewY':'eRofL','IDUXa':'KvDIo','nrhvm':_0x5eb0ba(0x1a5),'cdbJg':function(_0x44bc43,_0xcc9c77,_0x28866f,_0x4b3244,_0x12e530,_0x574f6a,_0x40b5f6){return _0x44bc43(_0xcc9c77,_0x28866f,_0x4b3244,_0x12e530,_0x574f6a,_0x40b5f6);},'qbNJC':_0x5eb0ba(0x17a),'cnVHQ':function(_0x34e327,_0x518595,_0x2bfa96,_0x1b3fa4,_0x427848,_0x32eda6,_0x33be70){return _0x34e327(_0x518595,_0x2bfa96,_0x1b3fa4,_0x427848,_0x32eda6,_0x33be70);},'cZQKB':_0x5eb0ba(0x186)};try{global_registry['requestId']=_0x30ba7b[_0x5eb0ba(0x1af)](uuidv4),_0x30ba7b[_0x5eb0ba(0x1c2)](sendInstrumentationEvent,_0x2b94ed,_0x30ba7b[_0x5eb0ba(0x170)],messageTypes[_0x5eb0ba(0x191)],null,null,_0x2b94ed);const _0x304918=_0x30ba7b[_0x5eb0ba(0x1af)](getDirForConfig);if(!fs[_0x5eb0ba(0x199)](_0x304918)){if(_0x30ba7b['BsDrG'](_0x30ba7b[_0x5eb0ba(0x159)],_0x30ba7b[_0x5eb0ba(0x17c)])){let _0x4cdb9a={};const _0x12c2b8=_0x30ba7b[_0x5eb0ba(0x1af)](_0x4aa785);_0x51a886['existsSync'](_0x12c2b8)&&(_0x4cdb9a=_0x32d4cb[_0x5eb0ba(0x173)](_0x137761[_0x5eb0ba(0x188)](_0x12c2b8,_0x30ba7b[_0x5eb0ba(0x15c)])));const _0x4483e4={};_0x4483e4[_0x5eb0ba(0x18d)]=_0x25b4dc,_0x4483e4[_0x5eb0ba(0x167)]=_0x3a3f56,_0x4cdb9a[_0x5eb0ba(0x179)]=_0x4483e4,_0x1a4cdc[_0x5eb0ba(0x175)](_0x12c2b8,_0x2f804f[_0x5eb0ba(0x17e)](_0x4cdb9a)),_0x283525[_0x5eb0ba(0x15e)](0x0);}else fs[_0x5eb0ba(0x1ab)](_0x304918);}let _0x32da20,_0x1b8403;process[_0x5eb0ba(0x15f)][_0x5eb0ba(0x1b0)]&&(_0x30ba7b[_0x5eb0ba(0x185)](_0x30ba7b[_0x5eb0ba(0x15a)],_0x30ba7b['NGZbh'])?_0x32da20=process[_0x5eb0ba(0x15f)]['BROWSERSTACK_USERNAME']:_0x1bf214[_0x5eb0ba(0x1ab)](_0x5cbcd8));if(process[_0x5eb0ba(0x15f)][_0x5eb0ba(0x189)]){if(_0x30ba7b[_0x5eb0ba(0x1a9)](_0x30ba7b[_0x5eb0ba(0x187)],_0x30ba7b[_0x5eb0ba(0x187)])){const _0x55e7bb={};_0x55e7bb['description']=_0x30ba7b['xFIWN'],_0x55e7bb[_0x5eb0ba(0x1a3)]=_0x30ba7b['YrQcn'];const _0xb90ec7={};_0xb90ec7[_0x5eb0ba(0x190)]=_0x30ba7b[_0x5eb0ba(0x1bc)],_0xb90ec7[_0x5eb0ba(0x1a3)]=_0x30ba7b[_0x5eb0ba(0x181)];const _0x23e620={};return _0x23e620[_0x5eb0ba(0x193)]=_0x55e7bb,_0x23e620[_0x5eb0ba(0x183)]=_0xb90ec7,_0x2e1d1d['usage'](_0x7e243b[_0x5eb0ba(0x164)])[_0x5eb0ba(0x1b9)](_0x39a1f8)['options'](_0x23e620)[_0x5eb0ba(0x157)]()[_0x5eb0ba(0x16e)]()[_0x5eb0ba(0x1b3)](_0x30ba7b['kjcJw'])[_0x5eb0ba(0x1a0)];}else _0x1b8403=process[_0x5eb0ba(0x15f)]['BROWSERSTACK_ACCESS_KEY'];}_0x2b94ed[_0x5eb0ba(0x1ba)]&&(_0x30ba7b[_0x5eb0ba(0x184)](_0x30ba7b['BtiJt'],_0x30ba7b[_0x5eb0ba(0x168)])?_0x263211=_0x2dad68[_0x5eb0ba(0x173)](_0x5389d0[_0x5eb0ba(0x188)](_0x1a856c,_0x30ba7b[_0x5eb0ba(0x15c)])):_0x32da20=_0x2b94ed[_0x5eb0ba(0x1ba)]);_0x2b94ed[_0x5eb0ba(0x1c5)]&&(_0x30ba7b[_0x5eb0ba(0x1a9)](_0x30ba7b['KJoCE'],_0x30ba7b[_0x5eb0ba(0x19b)])?_0x1b8403=_0x2b94ed[_0x5eb0ba(0x1c5)]:_0x443a9d=!![]);if(_0x30ba7b[_0x5eb0ba(0x169)](_0x32da20,undefined)||_0x30ba7b['BsDrG'](_0x1b8403,undefined)){if(_0x30ba7b[_0x5eb0ba(0x161)](_0x30ba7b[_0x5eb0ba(0x162)],_0x30ba7b[_0x5eb0ba(0x1bb)]))_0x3a60f0=_0x9fac85[_0x5eb0ba(0x15f)][_0x5eb0ba(0x189)];else{logger[_0x5eb0ba(0x16a)](_0x30ba7b[_0x5eb0ba(0x174)]);const [_0x3e73a8,_0x55dd52]=await _0x30ba7b[_0x5eb0ba(0x1af)](inputBstackKeys);_0x32da20=_0x3e73a8,_0x1b8403=_0x55dd52;}}let _0x416dd0=![];const _0x1395ff=_0x5eb0ba(0x177)+_0x32da20+':'+_0x1b8403+'@'+BS_API_URL+_0x5eb0ba(0x156),_0x54c298={'method':_0x30ba7b[_0x5eb0ba(0x196)],'headers':_0x30ba7b['McePB'](getAuthHeader,_0x32da20,_0x1b8403)},_0x3e10ca=await _0x30ba7b[_0x5eb0ba(0x195)](got,_0x1395ff,_0x54c298);_0x30ba7b[_0x5eb0ba(0x150)](_0x3e10ca,null)&&_0x30ba7b[_0x5eb0ba(0x150)](_0x3e10ca,undefined)&&_0x30ba7b[_0x5eb0ba(0x18c)](_0x3e10ca[_0x5eb0ba(0x17f)],0xc8)&&(_0x30ba7b[_0x5eb0ba(0x169)](_0x30ba7b[_0x5eb0ba(0x160)],_0x30ba7b['JlCZn'])?_0x238ca4=_0x3a1822[_0x5eb0ba(0x1ba)]:_0x416dd0=!![]);if(_0x416dd0){if(_0x30ba7b[_0x5eb0ba(0x166)](_0x30ba7b[_0x5eb0ba(0x1ae)],_0x30ba7b[_0x5eb0ba(0x1ae)]))_0x446f96=_0x561871[_0x5eb0ba(0x15f)]['BROWSERSTACK_USERNAME'];else{let _0x53899b={};const _0x23bf5c=_0x30ba7b[_0x5eb0ba(0x1a6)](getCredentialsPath);fs['existsSync'](_0x23bf5c)&&(_0x30ba7b[_0x5eb0ba(0x153)](_0x30ba7b[_0x5eb0ba(0x1b5)],_0x30ba7b[_0x5eb0ba(0x1a7)])?_0x258600=_0x1c0ca4[_0x5eb0ba(0x1c5)]:_0x53899b=JSON[_0x5eb0ba(0x173)](fs[_0x5eb0ba(0x188)](_0x23bf5c,_0x30ba7b['vkvmz'])));const _0x36f662={};_0x36f662[_0x5eb0ba(0x18d)]=_0x32da20,_0x36f662[_0x5eb0ba(0x167)]=_0x1b8403,_0x53899b[_0x5eb0ba(0x179)]=_0x36f662,fs['writeFileSync'](_0x23bf5c,JSON[_0x5eb0ba(0x17e)](_0x53899b)),process['exit'](0x0);}}else logger[_0x5eb0ba(0x16d)](_0x30ba7b[_0x5eb0ba(0x152)]),await _0x30ba7b[_0x5eb0ba(0x18f)](sendInstrumentationEvent,_0x2b94ed,_0x30ba7b[_0x5eb0ba(0x170)],messageTypes[_0x5eb0ba(0x182)],_0x30ba7b[_0x5eb0ba(0x16c)],null,_0x2b94ed),process[_0x5eb0ba(0x15e)](0x1);}catch(_0x9fcbcd){logger[_0x5eb0ba(0x16d)](_0x9fcbcd[_0x5eb0ba(0x180)]),await _0x30ba7b[_0x5eb0ba(0x15b)](sendInstrumentationEvent,_0x2b94ed,_0x30ba7b['zsXIy'],messageTypes[_0x5eb0ba(0x182)],_0x30ba7b[_0x5eb0ba(0x176)],_0x9fcbcd,_0x2b94ed),process['exit'](0x1);}};function a12_0x514f(){const _0x166f4d=['yumwP','/automate/plan.json','recommendCommands','options','PiDtX','SOSlU','cnVHQ','vkvmz','EPCmm','exit','env','NIoQp','BsDrG','dVhVP','JHSKG','init','lWcVn','GEiXm','password','jyNkb','ZdBlG','debug','1352QWZdnl','qbNJC','error','strict','usage','zsXIy','RyABZ','7398iXJtHd','parse','OcnFc','writeFileSync','cZQKB','https://','bQHyY','Browserstack','wrong-creds','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','SfiXq','7dgueEx','stringify','statusCode','stack','YrQcn','ERROR','bstack-accesskey','wACKJ','yZpbR','unknown-error','bisPg','readFileSync','BROWSERSTACK_ACCESS_KEY','GET','uuid','yfhAH','username','597AdqeXO','cdbJg','description','INFO','command','bstack-username','utf-8','Cwazt','GhjYc','string','init-called','existsSync','got','Zljum','SCEMr','jbatU','16214088tCkNlj','handler','argv','../config/constants','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','type','../utils/userInput','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','XNdTe','IDUXa','YTPFC','rMDuR','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','mkdirSync','icmfE','118VelRkH','pNpdw','lUZEl','BROWSERSTACK_USERNAME','kIqGi','99114nYFplq','help','dUVKY','wWewY','2874830jjWDht','bjLtd','19630rjYYpt','epilogue','bstackUsername','GYaXX','VbWMS','tQxjK','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','4334ioACXR','1868bumywU','oPIjU','bJtRB','jkZMm','../config/logger','bstackAccesskey','etGTo','8120jbVpir','nrhvm','dRyOc','../utils/instrumentationUtils'];a12_0x514f=function(){return _0x166f4d;};return a12_0x514f();}
|
|
1
|
+
const a12_0xdaed33=a12_0x47d5;(function(_0x223e22,_0x3ffa78){const _0x5de28d=a12_0x47d5,_0x250eef=_0x223e22();while(!![]){try{const _0x25bac0=-parseInt(_0x5de28d(0xec))/0x1+-parseInt(_0x5de28d(0xd2))/0x2+parseInt(_0x5de28d(0xda))/0x3*(parseInt(_0x5de28d(0x98))/0x4)+-parseInt(_0x5de28d(0x89))/0x5*(parseInt(_0x5de28d(0xd4))/0x6)+parseInt(_0x5de28d(0xb6))/0x7+-parseInt(_0x5de28d(0xd8))/0x8+parseInt(_0x5de28d(0xae))/0x9;if(_0x25bac0===_0x3ffa78)break;else _0x250eef['push'](_0x250eef['shift']());}catch(_0x52ff4d){_0x250eef['push'](_0x250eef['shift']());}}}(a12_0x5f1f,0xf14b6));function a12_0x47d5(_0x492782,_0x1b2745){const _0x5f1fcc=a12_0x5f1f();return a12_0x47d5=function(_0x47d54b,_0x13f6b1){_0x47d54b=_0x47d54b-0x89;let _0x1b8751=_0x5f1fcc[_0x47d54b];return _0x1b8751;},a12_0x47d5(_0x492782,_0x1b2745);}function a12_0x5f1f(){const _0x35fb01=['mwlmu','JnCxB','QOILU','nXLRr','byRec','srhQA','1468CiRyzG','WzlgN','TCHuW','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','wrong-creds','../utils/userInput','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','waHXB','desc','mYiAJ','bWSSw','cXtmn','password','bstackUsername','init-called','debug','env','uKiXz','zUxNF','ewkJb','bstackAccesskey','BROWSERSTACK_ACCESS_KEY','27955341uTdPDC','ERROR','usage','LstIt','zRGIf','msBik','JKtKg','ddwEp','1887767MXTPVS','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','UrSjR','widGW','strict','utf-8','NxxMH','BSusn','type','/automate/plan.json','https://','oqlMg','zyMoV','../config/constants','CUXlG','writeFileSync','Aoico','unknown-error','got','help','../utils/utilityMethods','uuid','xgylg','command','bkUkn','../utils/instrumentationUtils','parse','string','2249940aHjkRG','NBFbu','6AopWUQ','Qpjra','epilogue','INFO','5743184zupndt','exit','2094bWAEWr','argv','JXLup','handler','LZoVe','requestId','mkdirSync','recommendCommands','JMUwi','username','existsSync','QZuJA','stringify','BROWSERSTACK_USERNAME','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','tFXKP','options','Browserstack','657135jNHFBZ','builder','URgPY','mfPBl','dlhym','readFileSync','718255rQCWwF','error','description','TzYLY','../config/logger','eTBxj','bstack-username','WyOWf','JMYCK'];a12_0x5f1f=function(){return _0x35fb01;};return a12_0x5f1f();}const fs=require('fs'),util=require('util'),got=require(a12_0xdaed33(0xc8)),{v4:uuidv4}=require(a12_0xdaed33(0xcb)),{logger}=require(a12_0xdaed33(0x8d)),{inputBstackKeys}=require(a12_0xdaed33(0x9d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0xdaed33(0xc3)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0xdaed33(0xca)),{sendInstrumentationEvent}=require(a12_0xdaed33(0xcf));exports[a12_0xdaed33(0xcd)]='init',exports[a12_0xdaed33(0xa0)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0xdaed33(0xed)]=function(_0x33eb72){const _0x20cf49=a12_0xdaed33,_0x1c650a={};_0x1c650a[_0x20cf49(0xb5)]=_0x20cf49(0x9b),_0x1c650a[_0x20cf49(0x91)]=_0x20cf49(0xd1),_0x1c650a[_0x20cf49(0x9f)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x1c650a[_0x20cf49(0xb8)]=_0x20cf49(0xc9);const _0x3d6196=_0x1c650a,_0x238fc5={};_0x238fc5[_0x20cf49(0x8b)]=_0x3d6196['ddwEp'],_0x238fc5[_0x20cf49(0xbe)]=_0x3d6196[_0x20cf49(0x91)];const _0x1de95a={};_0x1de95a[_0x20cf49(0x8b)]=_0x3d6196['waHXB'],_0x1de95a[_0x20cf49(0xbe)]=_0x3d6196[_0x20cf49(0x91)];const _0x3c6f9d={};return _0x3c6f9d['bstack-username']=_0x238fc5,_0x3c6f9d['bstack-accesskey']=_0x1de95a,_0x33eb72[_0x20cf49(0xb0)](HELP_HEADER_MESSAGE['init'])[_0x20cf49(0xd6)](HELP_FOOTER_MESSAGE)[_0x20cf49(0xea)](_0x3c6f9d)[_0x20cf49(0xe1)]()[_0x20cf49(0xba)]()[_0x20cf49(0xc9)](_0x3d6196[_0x20cf49(0xb8)])['argv'];},exports[a12_0xdaed33(0xdd)]=async function(_0x10d383){const _0x2003f6=a12_0xdaed33,_0x5808bf={'WzlgN':function(_0x42a338){return _0x42a338();},'mwlmu':_0x2003f6(0xbb),'MdHxN':_0x2003f6(0x9b),'dlhym':_0x2003f6(0xd1),'mYiAJ':_0x2003f6(0x9e),'msBik':'help','JXLup':function(_0x447078,_0x2dd54e,_0x1de43e,_0xf6a35b,_0x3669f7,_0x280102,_0x2306bf){return _0x447078(_0x2dd54e,_0x1de43e,_0xf6a35b,_0x3669f7,_0x280102,_0x2306bf);},'eTBxj':_0x2003f6(0xa6),'CUXlG':function(_0x148af7){return _0x148af7();},'URgPY':function(_0x2b57fe,_0x164d28){return _0x2b57fe!==_0x164d28;},'JnCxB':_0x2003f6(0xb4),'nXLRr':_0x2003f6(0xde),'TzYLY':function(_0x347ba6,_0x37a800){return _0x347ba6!==_0x37a800;},'QZuJA':_0x2003f6(0x90),'mfPBl':'cxKJu','cXtmn':function(_0x163f25,_0x120b2e){return _0x163f25===_0x120b2e;},'wRbiR':_0x2003f6(0xa2),'widGW':_0x2003f6(0xbc),'byRec':_0x2003f6(0xc2),'LstIt':function(_0x5accd8,_0x30710d){return _0x5accd8===_0x30710d;},'TCHuW':function(_0x31dac8,_0x2cb95d){return _0x31dac8===_0x2cb95d;},'oqlMg':function(_0x271c04,_0x495816){return _0x271c04!==_0x495816;},'ewkJb':_0x2003f6(0xaa),'BSusn':_0x2003f6(0x97),'tFXKP':_0x2003f6(0xe8),'zRGIf':'GET','QOILU':function(_0x20258a,_0x1c9c7b,_0x2b35e4){return _0x20258a(_0x1c9c7b,_0x2b35e4);},'Qpjra':function(_0x4e176c,_0x2aac93){return _0x4e176c!==_0x2aac93;},'NBFbu':_0x2003f6(0xcc),'sBDvU':'URPxr','uKiXz':_0x2003f6(0xc6),'JMUwi':'CEQjH','mAvYB':_0x2003f6(0xb7),'sIBpV':_0x2003f6(0x9c),'bkUkn':_0x2003f6(0xc7)};try{global_registry[_0x2003f6(0xdf)]=_0x5808bf[_0x2003f6(0x99)](uuidv4),_0x5808bf['JXLup'](sendInstrumentationEvent,_0x10d383,_0x5808bf[_0x2003f6(0x8e)],messageTypes[_0x2003f6(0xd7)],null,null,_0x10d383);const _0xa40c13=_0x5808bf[_0x2003f6(0xc4)](getDirForConfig);if(!fs[_0x2003f6(0xe4)](_0xa40c13)){if(_0x5808bf['URgPY'](_0x5808bf[_0x2003f6(0x93)],_0x5808bf[_0x2003f6(0x93)])){let _0xd7e5db={};const _0x3aa6f3=_0x5808bf[_0x2003f6(0x99)](_0x8146f9);_0x37f85d[_0x2003f6(0xe4)](_0x3aa6f3)&&(_0xd7e5db=_0x10592f['parse'](_0x577653[_0x2003f6(0xf1)](_0x3aa6f3,_0x5808bf[_0x2003f6(0x92)])));const _0x44f34a={};_0x44f34a[_0x2003f6(0xe3)]=_0x2a0541,_0x44f34a[_0x2003f6(0xa4)]=_0x2aec0,_0xd7e5db['Browserstack']=_0x44f34a,_0xd9bf07[_0x2003f6(0xc5)](_0x3aa6f3,_0x1422be[_0x2003f6(0xe6)](_0xd7e5db)),_0x523828[_0x2003f6(0xd9)](0x0);}else fs['mkdirSync'](_0xa40c13);}let _0x1526ae,_0x4f618b;process[_0x2003f6(0xa8)][_0x2003f6(0xe7)]&&(_0x5808bf[_0x2003f6(0xee)](_0x5808bf[_0x2003f6(0x95)],_0x5808bf[_0x2003f6(0x95)])?_0x270847=_0x45fd66['bstackAccesskey']:_0x1526ae=process[_0x2003f6(0xa8)][_0x2003f6(0xe7)]);process[_0x2003f6(0xa8)][_0x2003f6(0xad)]&&(_0x5808bf[_0x2003f6(0x8c)](_0x5808bf[_0x2003f6(0xe5)],_0x5808bf[_0x2003f6(0xef)])?_0x4f618b=process[_0x2003f6(0xa8)][_0x2003f6(0xad)]:_0x7163ac=_0x1d5a82[_0x2003f6(0xa8)][_0x2003f6(0xad)]);_0x10d383[_0x2003f6(0xa5)]&&(_0x5808bf[_0x2003f6(0xa3)](_0x5808bf['wRbiR'],_0x5808bf['wRbiR'])?_0x1526ae=_0x10d383[_0x2003f6(0xa5)]:_0x322045=_0x18e748[_0x2003f6(0xd0)](_0x479a6f[_0x2003f6(0xf1)](_0x5a540e,_0x5808bf[_0x2003f6(0x92)])));_0x10d383['bstackAccesskey']&&(_0x5808bf['cXtmn'](_0x5808bf[_0x2003f6(0xb9)],_0x5808bf[_0x2003f6(0x96)])?_0x51bb0b=_0x39378d[_0x2003f6(0xa8)][_0x2003f6(0xe7)]:_0x4f618b=_0x10d383[_0x2003f6(0xac)]);if(_0x5808bf[_0x2003f6(0xb1)](_0x1526ae,undefined)||_0x5808bf[_0x2003f6(0x9a)](_0x4f618b,undefined)){if(_0x5808bf[_0x2003f6(0xc1)](_0x5808bf[_0x2003f6(0xab)],_0x5808bf[_0x2003f6(0xbd)])){logger[_0x2003f6(0xa7)](_0x5808bf[_0x2003f6(0xe9)]);const [_0x3a8c03,_0x36afd3]=await _0x5808bf[_0x2003f6(0x99)](inputBstackKeys);_0x1526ae=_0x3a8c03,_0x4f618b=_0x36afd3;}else _0x18650b[_0x2003f6(0xe0)](_0xfb457a);}let _0xa2224f=![];const _0x4e982f=_0x2003f6(0xc0)+_0x1526ae+':'+_0x4f618b+'@'+BS_API_URL+_0x2003f6(0xbf),_0x5a5fed={'method':_0x5808bf[_0x2003f6(0xb2)],'headers':_0x5808bf[_0x2003f6(0x94)](getAuthHeader,_0x1526ae,_0x4f618b)},_0x3008f2=await _0x5808bf[_0x2003f6(0x94)](got,_0x4e982f,_0x5a5fed);if(_0x5808bf['TzYLY'](_0x3008f2,null)&&_0x5808bf[_0x2003f6(0xd5)](_0x3008f2,undefined)&&_0x5808bf[_0x2003f6(0xa3)](_0x3008f2['statusCode'],0xc8)){if(_0x5808bf['cXtmn'](_0x5808bf[_0x2003f6(0xd3)],_0x5808bf['sBDvU'])){const _0x297724={};_0x297724[_0x2003f6(0x8b)]=_0x5808bf['MdHxN'],_0x297724['type']=_0x5808bf[_0x2003f6(0xf0)];const _0x320ba1={};_0x320ba1[_0x2003f6(0x8b)]=_0x5808bf[_0x2003f6(0xa1)],_0x320ba1['type']=_0x5808bf[_0x2003f6(0xf0)];const _0x40ed25={};return _0x40ed25[_0x2003f6(0x8f)]=_0x297724,_0x40ed25['bstack-accesskey']=_0x320ba1,_0x38f746[_0x2003f6(0xb0)](_0x5da217['init'])['epilogue'](_0x7c5627)[_0x2003f6(0xea)](_0x40ed25)[_0x2003f6(0xe1)]()[_0x2003f6(0xba)]()['help'](_0x5808bf[_0x2003f6(0xb3)])[_0x2003f6(0xdb)];}else _0xa2224f=!![];}if(_0xa2224f){if(_0x5808bf[_0x2003f6(0x8c)](_0x5808bf[_0x2003f6(0xa9)],_0x5808bf[_0x2003f6(0xa9)]))_0x165c08=!![];else{let _0x575645={};const _0x422fdf=_0x5808bf[_0x2003f6(0x99)](getCredentialsPath);fs[_0x2003f6(0xe4)](_0x422fdf)&&(_0x5808bf['LstIt'](_0x5808bf[_0x2003f6(0xe2)],_0x5808bf[_0x2003f6(0xe2)])?_0x575645=JSON[_0x2003f6(0xd0)](fs[_0x2003f6(0xf1)](_0x422fdf,_0x5808bf[_0x2003f6(0x92)])):_0x3f5b2a=_0x5d3f94[_0x2003f6(0xa5)]);const _0x39581a={};_0x39581a['username']=_0x1526ae,_0x39581a['password']=_0x4f618b,_0x575645[_0x2003f6(0xeb)]=_0x39581a,fs[_0x2003f6(0xc5)](_0x422fdf,JSON['stringify'](_0x575645)),process[_0x2003f6(0xd9)](0x0);}}else logger[_0x2003f6(0x8a)](_0x5808bf['mAvYB']),await _0x5808bf['JXLup'](sendInstrumentationEvent,_0x10d383,_0x5808bf['eTBxj'],messageTypes[_0x2003f6(0xaf)],_0x5808bf['sIBpV'],null,_0x10d383),process[_0x2003f6(0xd9)](0x1);}catch(_0x50de44){logger[_0x2003f6(0x8a)](_0x50de44['stack']),await _0x5808bf[_0x2003f6(0xdc)](sendInstrumentationEvent,_0x10d383,_0x5808bf['eTBxj'],messageTypes[_0x2003f6(0xaf)],_0x5808bf[_0x2003f6(0xce)],_0x50de44,_0x10d383),process[_0x2003f6(0xd9)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a13_0xbd3b(){const _0x1ed157=['usage','command','recommendCommands','epilogue','3308628jZelFH','handler','1083436dEfsYn','30SHGSjJ','demandCommand','root','nGxhX','213136wJoBWS','4311kilnvd','cHWjM','desc','1475168KfSlwJ','195916BAaCtm','list_commands','help','2824160fOzNUI','list','List\x20down\x20the\x20Grid\x20resources.','strict','commandDir','20730Gydfau','builder','21nqbYxO'];a13_0xbd3b=function(){return _0x1ed157;};return a13_0xbd3b();}const a13_0x403e44=a13_0x508f;(function(_0x2caba3,_0x48fce8){const _0x40a1f0=a13_0x508f,_0x43c52d=_0x2caba3();while(!![]){try{const _0x32782c=-parseInt(_0x40a1f0(0xe1))/0x1+-parseInt(_0x40a1f0(0xdc))/0x2+parseInt(_0x40a1f0(0xdd))/0x3*(-parseInt(_0x40a1f0(0xe6))/0x4)+-parseInt(_0x40a1f0(0xe9))/0x5+parseInt(_0x40a1f0(0xda))/0x6+-parseInt(_0x40a1f0(0xf0))/0x7*(-parseInt(_0x40a1f0(0xe5))/0x8)+-parseInt(_0x40a1f0(0xe2))/0x9*(-parseInt(_0x40a1f0(0xee))/0xa);if(_0x32782c===_0x48fce8)break;else _0x43c52d['push'](_0x43c52d['shift']());}catch(_0x4669d3){_0x43c52d['push'](_0x43c52d['shift']());}}}(a13_0xbd3b,0x46575));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x508f(_0x29025c,_0x283d15){const _0xbd3b35=a13_0xbd3b();return a13_0x508f=function(_0x508fe6,_0x60951d){_0x508fe6=_0x508fe6-0xd6;let _0x1efe3c=_0xbd3b35[_0x508fe6];return _0x1efe3c;},a13_0x508f(_0x29025c,_0x283d15);}exports[a13_0x403e44(0xd7)]=a13_0x403e44(0xea),exports[a13_0x403e44(0xe4)]=a13_0x403e44(0xeb),exports[a13_0x403e44(0xef)]=function(_0x1dc4a5){const _0x569042=a13_0x403e44,_0x30e350={};_0x30e350['nGxhX']=_0x569042(0xe7),_0x30e350[_0x569042(0xe3)]=_0x569042(0xe8);const _0x5d8cc7=_0x30e350;return _0x1dc4a5[_0x569042(0xed)](_0x5d8cc7[_0x569042(0xe0)])[_0x569042(0xde)]()[_0x569042(0xd6)](HELP_HEADER_MESSAGE[_0x569042(0xea)][_0x569042(0xdf)])[_0x569042(0xd9)](HELP_FOOTER_MESSAGE)[_0x569042(0xd8)]()[_0x569042(0xec)]()[_0x569042(0xe8)](_0x5d8cc7[_0x569042(0xe3)]);},exports[a13_0x403e44(0xdb)]=function(_0x2b2ec9){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x8a7414=a14_0x49a7;(function(_0x45313a,_0x462f6c){const _0x20aa1a=a14_0x49a7,_0x30c449=_0x45313a();while(!![]){try{const _0x381b9f=parseInt(_0x20aa1a(0xa4))/0x1+-parseInt(_0x20aa1a(0xa1))/0x2+-parseInt(_0x20aa1a(0xa0))/0x3+-parseInt(_0x20aa1a(0x7c))/0x4*(-parseInt(_0x20aa1a(0x90))/0x5)+parseInt(_0x20aa1a(0x72))/0x6+-parseInt(_0x20aa1a(0x88))/0x7+parseInt(_0x20aa1a(0x8c))/0x8*(parseInt(_0x20aa1a(0x8b))/0x9);if(_0x381b9f===_0x462f6c)break;else _0x30c449['push'](_0x30c449['shift']());}catch(_0x40889e){_0x30c449['push'](_0x30c449['shift']());}}}(a14_0xa262,0x7693b));function a14_0x49a7(_0x31e993,_0x14ecb4){const _0xa262a5=a14_0xa262();return a14_0x49a7=function(_0x49a7be,_0x19181f){_0x49a7be=_0x49a7be-0x70;let _0x1c7110=_0xa262a5[_0x49a7be];return _0x1c7110;},a14_0x49a7(_0x31e993,_0x14ecb4);}const fs=require('fs'),got=require(a14_0x8a7414(0x91)),{table}=require(a14_0x8a7414(0xaa)),{v4:uuidv4}=require(a14_0x8a7414(0x84)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x8a7414(0x79)),{getCredentialsPath,getAuthHeader}=require(a14_0x8a7414(0x80)),{sendInstrumentationEvent}=require(a14_0x8a7414(0x93));function a14_0xa262(){const _0x15aea4=['GET','2607162qjQyWK','help','https://','statusCode','gdVCg','handler','options','../../config/constants','fZTnP','exit','412tFBUiE','ERROR','GDIzf','existsSync','../../utils/utilityMethods','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','fVYRf','type','uuid','XuAIM','username','requestId','2767569lWygxk','region','body','50346TtxPPu','296EDohhv','KKMjM','list','UbhWE','12185upgnhD','got','forEach','../../utils/instrumentationUtils','grid-profiles','description','yfAMJ','unknown-error','NYJnW','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RQZtW','stringify','server-error','INFO','153273ELFKMi','670006EFagpU','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','374636fwfMnH','boolean','allGridProfiles','/packages/cli/get-all-grid-profiles','cloudProvider','ibXlS','table','name','bstackAccesskey','unauthorised','Failed\x20to\x20list\x20resources!\x20Error:\x20','epilogue','command','oXyQo','parse','XFLVh','fRhyP','Vnhyr','push','readFileSync','list-grid-profiles-called','concurrency','ploWh','cloud-provider','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','desc','gridProfile','BtWfk','Browserstack','all-grid-profiles','stack','AbDiv'];a14_0xa262=function(){return _0x15aea4;};return a14_0xa262();}exports[a14_0x8a7414(0xb0)]=a14_0x8a7414(0x94),exports[a14_0x8a7414(0xbd)]=a14_0x8a7414(0x81),exports['builder']=function(_0x1ea981){const _0x3f7fc4=a14_0x8a7414,_0x1ae9f3={};_0x1ae9f3[_0x3f7fc4(0xa9)]=_0x3f7fc4(0x99),_0x1ae9f3[_0x3f7fc4(0xb3)]=_0x3f7fc4(0xa5),_0x1ae9f3[_0x3f7fc4(0x76)]=_0x3f7fc4(0x73);const _0x76708c=_0x1ae9f3,_0x153b95={};_0x153b95[_0x3f7fc4(0x95)]=_0x76708c[_0x3f7fc4(0xa9)],_0x153b95[_0x3f7fc4(0x83)]=_0x76708c[_0x3f7fc4(0xb3)];const _0x854d60={};return _0x854d60[_0x3f7fc4(0xc1)]=_0x153b95,_0x1ea981['usage'](HELP_HEADER_MESSAGE[_0x3f7fc4(0x8e)][_0x3f7fc4(0xbe)])[_0x3f7fc4(0xaf)](HELP_FOOTER_MESSAGE)[_0x3f7fc4(0x78)](_0x854d60)[_0x3f7fc4(0x73)](_0x76708c[_0x3f7fc4(0x76)])['argv'];},exports[a14_0x8a7414(0x77)]=async function(_0x433fa1){const _0x37bd83=a14_0x8a7414,_0x4ff147={'fVYRf':function(_0x9017d2){return _0x9017d2();},'owJLD':function(_0x3af894){return _0x3af894();},'xgDrq':_0x37bd83(0xa3),'XuAIM':function(_0x53fdec,_0x2707c0,_0x5378eb,_0x52ea79,_0x4e5508,_0x5d9250,_0x177969){return _0x53fdec(_0x2707c0,_0x5378eb,_0x52ea79,_0x4e5508,_0x5d9250,_0x177969);},'oXyQo':_0x37bd83(0xb8),'ZaDrB':'init-not-called','Vnhyr':_0x37bd83(0x71),'RQZtW':function(_0x208b51,_0x2e0083,_0x45f657){return _0x208b51(_0x2e0083,_0x45f657);},'AbDiv':function(_0x52c328,_0x3c0c87){return _0x52c328!==_0x3c0c87;},'UbhWE':function(_0x39b353,_0x24dcb5){return _0x39b353!==_0x24dcb5;},'KtLrd':function(_0x2a53be,_0x4d910c){return _0x2a53be===_0x4d910c;},'pXqyK':_0x37bd83(0xa2),'YIpYW':'grid-profile-name','yfAMJ':_0x37bd83(0xbb),'fZTnP':_0x37bd83(0x89),'NYJnW':_0x37bd83(0xb9),'FzAeO':function(_0x2a7e79,_0x45d4bd){return _0x2a7e79(_0x45d4bd);},'fRhyP':function(_0x4b0e6e,_0x504105){return _0x4b0e6e===_0x504105;},'BtWfk':_0x37bd83(0xad),'KKMjM':function(_0x54d461,_0x5413de,_0x39fac7,_0x4a0cfa,_0x1c107e,_0x2c5f25,_0x2a5379){return _0x54d461(_0x5413de,_0x39fac7,_0x4a0cfa,_0x1c107e,_0x2c5f25,_0x2a5379);},'ploWh':_0x37bd83(0x9e),'GDIzf':function(_0x3e8148,_0x53b745,_0x33a507,_0x258369,_0x4f82f0,_0x23e13f,_0x137e94){return _0x3e8148(_0x53b745,_0x33a507,_0x258369,_0x4f82f0,_0x23e13f,_0x137e94);},'uIAoe':_0x37bd83(0x97)};try{global_registry[_0x37bd83(0x87)]=_0x4ff147['fVYRf'](uuidv4);let _0x943aab=_0x37bd83(0x74)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x433fa1[_0x37bd83(0xa6)]&&(_0x943aab='https://'+AG_API_URL+_0x37bd83(0xa7));!fs[_0x37bd83(0x7f)](_0x4ff147['owJLD'](getCredentialsPath))&&(console[_0x37bd83(0x9a)](_0x4ff147['xgDrq']),await _0x4ff147[_0x37bd83(0x85)](sendInstrumentationEvent,_0x433fa1,_0x4ff147[_0x37bd83(0xb1)],messageTypes['ERROR'],_0x4ff147['ZaDrB'],null,_0x433fa1),process[_0x37bd83(0x7b)](0x1));_0x4ff147[_0x37bd83(0x85)](sendInstrumentationEvent,_0x433fa1,_0x4ff147['oXyQo'],messageTypes[_0x37bd83(0x9f)],null,null,_0x433fa1);const _0x5c07e8=JSON[_0x37bd83(0xb2)](fs[_0x37bd83(0xb7)](_0x4ff147[_0x37bd83(0x82)](getCredentialsPath))),_0x3d52dc={'method':_0x4ff147[_0x37bd83(0xb5)],'headers':_0x4ff147[_0x37bd83(0x9c)](getAuthHeader,_0x5c07e8[_0x37bd83(0xc0)][_0x37bd83(0x86)],_0x5c07e8[_0x37bd83(0xc0)]['password'])};global_registry['bstackUsername']=_0x5c07e8[_0x37bd83(0xc0)][_0x37bd83(0x86)],global_registry[_0x37bd83(0xac)]=_0x5c07e8['Browserstack']['password'];const _0x262293=await _0x4ff147['RQZtW'](got,_0x943aab,_0x3d52dc);if(_0x4ff147[_0x37bd83(0x70)](_0x262293,null)&&_0x4ff147[_0x37bd83(0x8f)](_0x262293,undefined)&&_0x4ff147['KtLrd'](_0x262293[_0x37bd83(0x75)],0xc8)){const _0x451060=JSON['parse'](_0x262293[_0x37bd83(0x8a)]);console['log'](_0x4ff147['pXqyK']);const _0x4477b3=[];_0x4477b3[_0x37bd83(0xb6)]([_0x4ff147['YIpYW'],_0x4ff147[_0x37bd83(0x96)],_0x4ff147[_0x37bd83(0x7a)],_0x4ff147[_0x37bd83(0x98)]]),_0x451060[_0x37bd83(0x92)](_0x3d5560=>{const _0x10d6ed=_0x37bd83;_0x4477b3['push']([_0x3d5560[_0x10d6ed(0xab)],_0x3d5560[_0x10d6ed(0xa8)],_0x3d5560[_0x10d6ed(0x89)],_0x3d5560[_0x10d6ed(0xb9)]]);}),console['log'](_0x4ff147['FzAeO'](table,_0x4477b3)),process['exit'](0x0);}_0x4ff147[_0x37bd83(0xb4)](_0x262293['statusCode'],0x191)&&(console[_0x37bd83(0x9a)](_0x37bd83(0x9b)),await _0x4ff147[_0x37bd83(0x85)](sendInstrumentationEvent,_0x433fa1,_0x4ff147['oXyQo'],messageTypes[_0x37bd83(0x7d)],_0x4ff147[_0x37bd83(0xbf)],null,_0x433fa1),process[_0x37bd83(0x7b)](0x1)),console[_0x37bd83(0x9a)](_0x37bd83(0xbc)+JSON[_0x37bd83(0x9d)](_0x262293)),await _0x4ff147[_0x37bd83(0x8d)](sendInstrumentationEvent,_0x433fa1,_0x4ff147[_0x37bd83(0xb1)],messageTypes[_0x37bd83(0x7d)],_0x4ff147[_0x37bd83(0xba)],_0x262293,_0x433fa1),process[_0x37bd83(0x7b)](0x1);}catch(_0x480524){console[_0x37bd83(0x9a)](_0x37bd83(0xae)+_0x480524[_0x37bd83(0xc2)]),await _0x4ff147[_0x37bd83(0x7e)](sendInstrumentationEvent,_0x433fa1,_0x4ff147['oXyQo'],messageTypes[_0x37bd83(0x7d)],_0x4ff147['uIAoe'],_0x480524,_0x433fa1),process[_0x37bd83(0x7b)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15_0x4b8aa2=a15_0x57de;(function(_0x2eecf9,_0x2e0923){const _0x27a8c5=a15_0x57de,_0x226daa=_0x2eecf9();while(!![]){try{const _0x1f760b=parseInt(_0x27a8c5(0xf2))/0x1+parseInt(_0x27a8c5(0xef))/0x2+-parseInt(_0x27a8c5(0xf9))/0x3*(-parseInt(_0x27a8c5(0xc0))/0x4)+parseInt(_0x27a8c5(0x109))/0x5*(parseInt(_0x27a8c5(0xdb))/0x6)+-parseInt(_0x27a8c5(0xe8))/0x7+parseInt(_0x27a8c5(0x10d))/0x8+-parseInt(_0x27a8c5(0x10b))/0x9*(parseInt(_0x27a8c5(0xf6))/0xa);if(_0x1f760b===_0x2e0923)break;else _0x226daa['push'](_0x226daa['shift']());}catch(_0x446582){_0x226daa['push'](_0x226daa['shift']());}}}(a15_0x3c4f,0xe0521));const fs=require('fs'),got=require('got'),{table}=require(a15_0x4b8aa2(0xe3)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x4b8aa2(0xcc)),{sendInstrumentationEvent}=require(a15_0x4b8aa2(0xf4));function a15_0x3c4f(){const _0x1c1f10=['usage','name','existsSync','EiQoI','DLQRW','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','/packages/cli/get-grids','4832oFZDRQ','sxzJY','readFileSync','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','rJVaM','type','exit','unknown-error','builder','pnuTP','xbhwc','queued','../../utils/utilityMethods','jiEZl','username','VeobZ','djIQy','gzkWp','description','allGrids','DCqWu','lqXnN','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','pdBkI','xEOkR','options','1032WmWWvG','VHenc','push','argv','list','ERROR','zsAAh','password','table','forEach','cluster-name','statusCode','handler','8933813DIRaqJ','grid','zhYVl','Failed\x20to\x20list\x20resources!\x20Error:\x20','help','QBKdA','server-error','3243592kIfQRa','body','HjMPw','186392fOGKbr','log','../../utils/instrumentationUtils','SAorL','40myXBcb','parse','stack','1458bnlpsQ','clusterName','error','requestId','https://','bstackAccesskey','running','unauthorised','GET','grids','lwqiw','cPsyU','UFHeE','JhXoz','VkSEG','all-grids','37355vpZgRO','boolean','6446241vWIwPT','Browserstack','11038272LtJUlV','desc'];a15_0x3c4f=function(){return _0x1c1f10;};return a15_0x3c4f();}function a15_0x57de(_0x548045,_0x1312cf){const _0x3c4fd3=a15_0x3c4f();return a15_0x57de=function(_0x57de00,_0x5d7b76){_0x57de00=_0x57de00-0xbb;let _0xef62a2=_0x3c4fd3[_0x57de00];return _0xef62a2;},a15_0x57de(_0x548045,_0x1312cf);}exports['command']=a15_0x4b8aa2(0x102),exports[a15_0x4b8aa2(0x10e)]=a15_0x4b8aa2(0xc3),exports[a15_0x4b8aa2(0xc8)]=function(_0x57221b){const _0x43ea60=a15_0x4b8aa2,_0x17dabe={};_0x17dabe[_0x43ea60(0xd8)]=_0x43ea60(0xbe),_0x17dabe[_0x43ea60(0xca)]=_0x43ea60(0x10a),_0x17dabe[_0x43ea60(0xd9)]=_0x43ea60(0xec);const _0x372c9=_0x17dabe,_0x5c8305={};_0x5c8305[_0x43ea60(0xd2)]=_0x372c9[_0x43ea60(0xd8)],_0x5c8305[_0x43ea60(0xc5)]=_0x372c9[_0x43ea60(0xca)];const _0x32dde1={};return _0x32dde1[_0x43ea60(0x108)]=_0x5c8305,_0x57221b[_0x43ea60(0x10f)](HELP_HEADER_MESSAGE[_0x43ea60(0xdf)][_0x43ea60(0xe9)])[_0x43ea60(0xd6)](HELP_FOOTER_MESSAGE)[_0x43ea60(0xda)](_0x32dde1)['help'](_0x372c9[_0x43ea60(0xd9)])[_0x43ea60(0xde)];},exports[a15_0x4b8aa2(0xe7)]=async function(_0x35cbb0){const _0xaabd18=a15_0x4b8aa2,_0x39a32d={'xtJxD':function(_0x4d5c66){return _0x4d5c66();},'rJVaM':function(_0x1c8cc3){return _0x1c8cc3();},'EiQoI':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KRXqH':function(_0x5f3fb8,_0x194e38,_0x308ee7,_0x487a2e,_0x1cdbd4,_0x14d67d,_0x3a5f57){return _0x5f3fb8(_0x194e38,_0x308ee7,_0x487a2e,_0x1cdbd4,_0x14d67d,_0x3a5f57);},'pnuTP':'list-grids-called','jGZUB':'init-not-called','SAorL':function(_0x453711){return _0x453711();},'zhYVl':_0xaabd18(0x101),'ogXEw':function(_0x5934b0,_0x5b1b0f,_0x4eb492){return _0x5934b0(_0x5b1b0f,_0x4eb492);},'VkSEG':function(_0x3a3d34,_0x90cb91,_0x30eeab,_0x157635,_0xec3ae6,_0x44860f,_0xb66a9){return _0x3a3d34(_0x90cb91,_0x30eeab,_0x157635,_0xec3ae6,_0x44860f,_0xb66a9);},'HjMPw':function(_0x7c5174,_0x1c8cb6,_0x2292d1){return _0x7c5174(_0x1c8cb6,_0x2292d1);},'sxzJY':function(_0x5dbc35,_0x37e7c2){return _0x5dbc35!==_0x37e7c2;},'lwqiw':function(_0x136689,_0x50f0ef){return _0x136689!==_0x50f0ef;},'zsAAh':function(_0x5d5c4b,_0x442b1b){return _0x5d5c4b===_0x442b1b;},'djIQy':'\x0aFound\x20the\x20following\x20grids:\x0a','lqXnN':'grid-id','TwiLP':'grid-name','gzkWp':'status','cPsyU':'running','VeobZ':_0xaabd18(0xcb),'jiEZl':_0xaabd18(0xe5),'DCqWu':function(_0x3ac753,_0x1d24b1){return _0x3ac753(_0x1d24b1);},'DLQRW':function(_0xfd2620,_0x5dcee1,_0x5aabcc,_0x33e00c,_0x598d28,_0x49333d,_0x421443){return _0xfd2620(_0x5dcee1,_0x5aabcc,_0x33e00c,_0x598d28,_0x49333d,_0x421443);},'JhXoz':_0xaabd18(0x100),'VHenc':function(_0x3cffb4,_0x2f460e,_0x5cf0e1,_0x54008a,_0x2cc18e,_0x4569d0,_0x1a38f2){return _0x3cffb4(_0x2f460e,_0x5cf0e1,_0x54008a,_0x2cc18e,_0x4569d0,_0x1a38f2);},'UFHeE':_0xaabd18(0xee),'QBKdA':_0xaabd18(0xc7)};try{global_registry[_0xaabd18(0xfc)]=_0x39a32d['xtJxD'](uuidv4);!fs[_0xaabd18(0xbb)](_0x39a32d[_0xaabd18(0xc4)](getCredentialsPath))&&(console['error'](_0x39a32d[_0xaabd18(0xbc)]),await _0x39a32d['KRXqH'](sendInstrumentationEvent,_0x35cbb0,_0x39a32d[_0xaabd18(0xc9)],messageTypes['ERROR'],_0x39a32d['jGZUB'],null,_0x35cbb0),process[_0xaabd18(0xc6)](0x1));const _0x18830e=JSON[_0xaabd18(0xf7)](fs[_0xaabd18(0xc2)](_0x39a32d[_0xaabd18(0xf5)](getCredentialsPath)));let _0x435926=_0xaabd18(0xfd)+AG_API_URL+_0xaabd18(0xbf);_0x35cbb0[_0xaabd18(0xd3)]&&(_0x435926=_0xaabd18(0xfd)+AG_API_URL+'/packages/cli/get-all-grids');const _0x4e2478={'method':_0x39a32d[_0xaabd18(0xea)],'headers':_0x39a32d['ogXEw'](getAuthHeader,_0x18830e[_0xaabd18(0x10c)][_0xaabd18(0xce)],_0x18830e[_0xaabd18(0x10c)][_0xaabd18(0xe2)])};global_registry['bstackUsername']=_0x18830e['Browserstack']['username'],global_registry[_0xaabd18(0xfe)]=_0x18830e['Browserstack'][_0xaabd18(0xe2)],_0x39a32d[_0xaabd18(0x107)](sendInstrumentationEvent,_0x35cbb0,_0x39a32d[_0xaabd18(0xc9)],messageTypes['INFO'],null,null,_0x35cbb0);const _0x2d25f5=await _0x39a32d[_0xaabd18(0xf1)](got,_0x435926,_0x4e2478);if(_0x39a32d[_0xaabd18(0xc1)](_0x2d25f5,null)&&_0x39a32d[_0xaabd18(0x103)](_0x2d25f5,undefined)&&_0x39a32d[_0xaabd18(0xe1)](_0x2d25f5[_0xaabd18(0xe6)],0xc8)){const _0x2cc5d3=JSON[_0xaabd18(0xf7)](_0x2d25f5[_0xaabd18(0xf0)]);console[_0xaabd18(0xf3)](_0x39a32d[_0xaabd18(0xd0)]);const _0x107414=[];_0x107414[_0xaabd18(0xdd)]([_0x39a32d[_0xaabd18(0xd5)],_0x39a32d['TwiLP'],_0x39a32d[_0xaabd18(0xd1)],_0x39a32d[_0xaabd18(0x104)],_0x39a32d[_0xaabd18(0xcf)],_0x39a32d[_0xaabd18(0xcd)]]),_0x2cc5d3[_0xaabd18(0xe4)](_0x4e7bbd=>{const _0x3484ea=_0xaabd18;_0x107414[_0x3484ea(0xdd)]([_0x4e7bbd['id'],_0x4e7bbd[_0x3484ea(0x110)],_0x4e7bbd['status'],_0x4e7bbd[_0x3484ea(0xff)],_0x4e7bbd['queued'],_0x4e7bbd[_0x3484ea(0xfa)]]);}),console[_0xaabd18(0xf3)](_0x39a32d[_0xaabd18(0xd4)](table,_0x107414)),process['exit'](0x0);}_0x39a32d[_0xaabd18(0xe1)](_0x2d25f5[_0xaabd18(0xe6)],0x191)&&(console[_0xaabd18(0xfb)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x39a32d[_0xaabd18(0xbd)](sendInstrumentationEvent,_0x35cbb0,_0x39a32d[_0xaabd18(0xc9)],messageTypes[_0xaabd18(0xe0)],_0x39a32d[_0xaabd18(0x106)],null,_0x35cbb0),process['exit'](0x1)),console[_0xaabd18(0xfb)](_0xaabd18(0xd7)+JSON['stringify'](_0x2d25f5)),await _0x39a32d[_0xaabd18(0xdc)](sendInstrumentationEvent,_0x35cbb0,_0x39a32d['pnuTP'],messageTypes[_0xaabd18(0xe0)],_0x39a32d[_0xaabd18(0x105)],_0x2d25f5,_0x35cbb0),process[_0xaabd18(0xc6)](0x1);}catch(_0x187c52){console[_0xaabd18(0xfb)](_0xaabd18(0xeb)+_0x187c52[_0xaabd18(0xf8)]),await _0x39a32d[_0xaabd18(0x107)](sendInstrumentationEvent,_0x35cbb0,_0x39a32d[_0xaabd18(0xc9)],messageTypes['ERROR'],_0x39a32d[_0xaabd18(0xed)],_0x187c52,_0x35cbb0),process['exit'](0x1);}};
|