browserstack-node-sdk 1.32.13 → 1.32.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/templates/gcpresources/gkecluster.json +0 -3
- 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/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/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
|
-
const a9_0x4ebc48=a9_0x4dda;function a9_0x4dda(_0x5c1ed4,_0x47eac3){const _0x204b56=a9_0x204b();return a9_0x4dda=function(_0x4ddaf2,_0x434ad3){_0x4ddaf2=_0x4ddaf2-0xb6;let _0x3643c1=_0x204b56[_0x4ddaf2];return _0x3643c1;},a9_0x4dda(_0x5c1ed4,_0x47eac3);}(function(_0x3b0b3f,_0x2ce99b){const _0x52abcc=a9_0x4dda,_0x2557b2=_0x3b0b3f();while(!![]){try{const _0x2b8fa3=parseInt(_0x52abcc(0x194))/0x1+-parseInt(_0x52abcc(0xdb))/0x2+parseInt(_0x52abcc(0x110))/0x3+parseInt(_0x52abcc(0x12a))/0x4*(-parseInt(_0x52abcc(0x155))/0x5)+-parseInt(_0x52abcc(0x18d))/0x6*(-parseInt(_0x52abcc(0xec))/0x7)+parseInt(_0x52abcc(0x1a1))/0x8*(-parseInt(_0x52abcc(0xd8))/0x9)+parseInt(_0x52abcc(0x105))/0xa*(parseInt(_0x52abcc(0x1fa))/0xb);if(_0x2b8fa3===_0x2ce99b)break;else _0x2557b2['push'](_0x2557b2['shift']());}catch(_0x273ac1){_0x2557b2['push'](_0x2557b2['shift']());}}}(a9_0x204b,0xb9290));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x4ebc48(0x141)),got=require(a9_0x4ebc48(0x1d5)),{v4:uuidv4}=require(a9_0x4ebc48(0x158)),webSocketUtils=require(a9_0x4ebc48(0xe3)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a9_0x4ebc48(0x1c0)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x4ebc48(0x148)),{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,TURBOSCALE_DEPLOYMENT}=require(a9_0x4ebc48(0x1ab)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x4ebc48(0xc3)),{createK8sClient}=require(a9_0x4ebc48(0x1a8)),{sendInstrumentationEvent}=require(a9_0x4ebc48(0xc8));exports[a9_0x4ebc48(0x190)]='grid',exports[a9_0x4ebc48(0xcf)]=a9_0x4ebc48(0x1ed),exports['builder']=function(_0x4f7161){const _0x3d9924=a9_0x4ebc48,_0x2f3eb0={};_0x2f3eb0[_0x3d9924(0x1af)]=_0x3d9924(0xd3),_0x2f3eb0[_0x3d9924(0x1c6)]=_0x3d9924(0x1e2),_0x2f3eb0[_0x3d9924(0x183)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2f3eb0[_0x3d9924(0x174)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2f3eb0[_0x3d9924(0xd5)]=_0x3d9924(0x1fb),_0x2f3eb0[_0x3d9924(0x163)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2f3eb0[_0x3d9924(0xe8)]=_0x3d9924(0x123),_0x2f3eb0[_0x3d9924(0x1e9)]=_0x3d9924(0x10e);const _0x58780c=_0x2f3eb0,_0x23598f={};_0x23598f['description']=_0x58780c[_0x3d9924(0x1af)],_0x23598f[_0x3d9924(0x1f2)]=_0x58780c[_0x3d9924(0x1c6)];const _0x516c33={};_0x516c33[_0x3d9924(0xfc)]=_0x58780c['pmdrz'],_0x516c33['type']=_0x58780c[_0x3d9924(0x1c6)];const _0x40bd24={};_0x40bd24[_0x3d9924(0xfc)]=_0x58780c[_0x3d9924(0x174)],_0x40bd24[_0x3d9924(0x1f2)]=_0x58780c[_0x3d9924(0x1c6)];const _0x2823ed={};_0x2823ed[_0x3d9924(0xfc)]=_0x58780c[_0x3d9924(0xd5)],_0x2823ed[_0x3d9924(0x1f2)]=_0x58780c[_0x3d9924(0x1c6)];const _0x532903={};_0x532903['description']=_0x58780c[_0x3d9924(0x163)],_0x532903[_0x3d9924(0x1f2)]=_0x58780c[_0x3d9924(0x1c6)];const _0x31014c={};_0x31014c['description']=_0x58780c[_0x3d9924(0xe8)],_0x31014c[_0x3d9924(0x1f2)]=_0x58780c[_0x3d9924(0x1c6)];const _0x3cef96={};return _0x3cef96[_0x3d9924(0xeb)]=_0x23598f,_0x3cef96[_0x3d9924(0xd9)]=_0x516c33,_0x3cef96[_0x3d9924(0x1d8)]=_0x40bd24,_0x3cef96['cloud-provider']=_0x2823ed,_0x3cef96[_0x3d9924(0x120)]=_0x532903,_0x3cef96[_0x3d9924(0x1ac)]=_0x31014c,_0x4f7161['usage'](HELP_HEADER_MESSAGE[_0x3d9924(0x121)])[_0x3d9924(0x1e4)](HELP_FOOTER_MESSAGE)[_0x3d9924(0x152)](_0x3cef96)['help'](_0x58780c[_0x3d9924(0x1e9)])[_0x3d9924(0xfd)];},exports[a9_0x4ebc48(0x122)]=async function(_0xbd89ab){const _0x5c6133=a9_0x4ebc48,_0x395c5b={'usLkf':_0x5c6133(0x1d1),'nbPjL':_0x5c6133(0x136),'fDBFu':_0x5c6133(0x103),'AJfpZ':_0x5c6133(0xbe),'WORXd':_0x5c6133(0xd3),'mqRCS':_0x5c6133(0x1e2),'ocFxY':_0x5c6133(0x18f),'RucSH':_0x5c6133(0xb6),'dJdmt':_0x5c6133(0x1fb),'cHMTf':_0x5c6133(0x162),'AKqbY':_0x5c6133(0x123),'zAwPn':_0x5c6133(0x10e),'JADcR':_0x5c6133(0x16d),'wRkpa':function(_0x224c51){return _0x224c51();},'MWxTq':function(_0x1dd2c7,_0xea5aa9){return _0x1dd2c7===_0xea5aa9;},'LEpsK':'CrAbu','xOOcP':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Ubaem':function(_0x40de38,_0x3bb4ef,_0x26d8cc,_0x395cbb,_0x711a09,_0x51ca6c,_0x4c292b){return _0x40de38(_0x3bb4ef,_0x26d8cc,_0x395cbb,_0x711a09,_0x51ca6c,_0x4c292b);},'AEeGM':_0x5c6133(0x1f0),'CVnzP':_0x5c6133(0x187),'ggxVv':function(_0x5af264){return _0x5af264();},'cDRiE':_0x5c6133(0x1eb),'yUvBf':_0x5c6133(0x15b),'MELpQ':_0x5c6133(0x17f),'CzXeV':function(_0x34b134,_0x536682){return _0x34b134!==_0x536682;},'KQKcT':'hOjsH','dGhsN':_0x5c6133(0xfb),'IgGuK':_0x5c6133(0x12f),'wJEej':_0x5c6133(0x149),'RkQaZ':function(_0x14c369,_0x27f308,_0x4eda66,_0x1b0475,_0x56fd72,_0x16a257,_0x40632d,_0xe16d65){return _0x14c369(_0x27f308,_0x4eda66,_0x1b0475,_0x56fd72,_0x16a257,_0x40632d,_0xe16d65);},'PZypz':_0x5c6133(0x11e),'SSEdk':_0x5c6133(0x156),'hauOc':_0x5c6133(0x1ca),'cQRlR':_0x5c6133(0x188),'fsIID':_0x5c6133(0x1e3),'YKErI':function(_0x57407b,_0x1225c6){return _0x57407b===_0x1225c6;},'uSyMi':_0x5c6133(0x167),'FDGXQ':function(_0x497e47,_0x5b4f31){return _0x497e47===_0x5b4f31;},'qyMXc':_0x5c6133(0x19d),'nRNFH':function(_0x3920a4,_0x5ee30b){return _0x3920a4!==_0x5ee30b;},'ftVuo':_0x5c6133(0xb8),'wPNZb':_0x5c6133(0xf7),'qoYfE':function(_0x2d642c,_0x4f9583){return _0x2d642c===_0x4f9583;},'ooXTO':'ZGKbS','uOmxE':_0x5c6133(0x15c),'lsWzr':_0x5c6133(0x1ea),'yGSDb':function(_0x46c724,_0x5b2e52,_0x309ce4){return _0x46c724(_0x5b2e52,_0x309ce4);},'JYSpf':function(_0x37b8a0,_0x187032){return _0x37b8a0===_0x187032;},'csorb':function(_0x3f8c39,_0x4dda2b){return _0x3f8c39===_0x4dda2b;},'ZfRdk':_0x5c6133(0x119),'HljLP':_0x5c6133(0x1d2),'CjqNg':_0x5c6133(0x134),'aXPGF':function(_0x543612,_0x254f7a,_0x360e5d,_0x3fc68b,_0x2e3f93,_0x155b04,_0x44eee4,_0x1a56b9){return _0x543612(_0x254f7a,_0x360e5d,_0x3fc68b,_0x2e3f93,_0x155b04,_0x44eee4,_0x1a56b9);},'vtBkQ':_0x5c6133(0x127),'uIqGy':function(_0x18fcbf,_0x5b8a7b){return _0x18fcbf!==_0x5b8a7b;},'dovdG':_0x5c6133(0x1b1),'sTADs':_0x5c6133(0x1b3),'WBvKy':function(_0x277d13,_0x1c0aff,_0x1d5640,_0x59796b,_0x523641,_0x5b601b,_0x1ac74e,_0x52b356){return _0x277d13(_0x1c0aff,_0x1d5640,_0x59796b,_0x523641,_0x5b601b,_0x1ac74e,_0x52b356);},'IcPyh':_0x5c6133(0x157),'NsUfr':function(_0x4f7520,_0x3ac7ac){return _0x4f7520!==_0x3ac7ac;},'vDbOP':function(_0x42798d,_0x25d44b){return _0x42798d===_0x25d44b;},'XwvKo':_0x5c6133(0xe2),'GdrJU':_0x5c6133(0x15a),'epPUQ':_0x5c6133(0x143),'MExHh':_0x5c6133(0x17d),'bFzrk':function(_0x3a5e2b,_0xea958b){return _0x3a5e2b===_0xea958b;},'iXZPI':'bEcmt','ARFsw':_0x5c6133(0x1ef),'FEQIk':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','aecEr':'create-grid-checks-grid-already-exists','rUHYK':function(_0x1ff739,_0x532f66){return _0x1ff739!==_0x532f66;},'OMZOt':'XSDjY','cYTYV':_0x5c6133(0x129),'jJkZQ':function(_0x2662b8,_0x5c06dc){return _0x2662b8!==_0x5c06dc;},'oytgN':'dYzWn','sCrEx':_0x5c6133(0x1e8),'dRzCO':function(_0x70206a,_0x23c2f6){return _0x70206a===_0x23c2f6;},'qTKfb':function(_0x3efc5c,_0x33b39d){return _0x3efc5c===_0x33b39d;},'FYtYQ':_0x5c6133(0x189),'heXYE':_0x5c6133(0x18b),'EdHTa':function(_0x18bb1a,_0x3f29ac,_0x28f33a,_0x101d4f,_0x552a56,_0x2f70fd,_0x3f111a,_0x29cba0){return _0x18bb1a(_0x3f29ac,_0x28f33a,_0x101d4f,_0x552a56,_0x2f70fd,_0x3f111a,_0x29cba0);},'EMiDL':_0x5c6133(0xef),'DpMzd':function(_0x1f18e7,_0x19dbae){return _0x1f18e7!==_0x19dbae;},'bGJmw':_0x5c6133(0xda),'ZTLZz':function(_0x524755,_0x42e37e,_0x4b23cb,_0x1cd426,_0x2b867e,_0x21b5dc,_0x5b1668,_0x3cd0bc,_0x307928,_0x494e4a,_0x3c8eb3,_0x147d62){return _0x524755(_0x42e37e,_0x4b23cb,_0x1cd426,_0x2b867e,_0x21b5dc,_0x5b1668,_0x3cd0bc,_0x307928,_0x494e4a,_0x3c8eb3,_0x147d62);},'RBPoa':function(_0x21b534,_0x51aa0b){return _0x21b534!==_0x51aa0b;},'lfZsx':_0x5c6133(0xf8),'CPEts':_0x5c6133(0xfa),'LIUsU':_0x5c6133(0x1c2),'pomlu':function(_0x3d14ed,_0x56e14b,_0x5c7400,_0x1d25cc){return _0x3d14ed(_0x56e14b,_0x5c7400,_0x1d25cc);},'qmbRj':function(_0x10e93f){return _0x10e93f();},'OgHnm':_0x5c6133(0x150),'NheKa':_0x5c6133(0x171),'SRzOA':function(_0x1e4069,_0x51bca4){return _0x1e4069===_0x51bca4;},'QoSAD':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','LMhct':function(_0x4a0c81,_0x2e7daf){return _0x4a0c81!=_0x2e7daf;},'WEFnL':function(_0x5d0b2c,_0x2fdc87){return _0x5d0b2c!==_0x2fdc87;},'ecMch':function(_0x56e0b8,_0x3a78b8){return _0x56e0b8!=_0x3a78b8;},'fAUuJ':function(_0x425693,_0x19a77e){return _0x425693!==_0x19a77e;},'AfQzi':function(_0x43c45d,_0x3eda07){return _0x43c45d>_0x3eda07;},'ofSjC':function(_0x3d9562,_0x2cff1a){return _0x3d9562===_0x2cff1a;},'xXmTi':_0x5c6133(0x1f4),'jSGeT':_0x5c6133(0xfe),'aFlUD':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','nAxwL':'pre-spawned-invalid-vpc','kjlZA':function(_0x232fb3,_0xa679fb){return _0x232fb3===_0xa679fb;},'gDBtc':function(_0x5e52c6,_0x29d2bb,_0x2e0844,_0x39b39c,_0x37bf52,_0x561591,_0x52f467,_0x1a59ad){return _0x5e52c6(_0x29d2bb,_0x2e0844,_0x39b39c,_0x37bf52,_0x561591,_0x52f467,_0x1a59ad);},'erzEb':_0x5c6133(0x11d),'aXXec':_0x5c6133(0x1bd),'VkQtr':'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.','lwpiA':_0x5c6133(0x16b),'Wzrhj':function(_0x2e75da,_0x4aea7e){return _0x2e75da(_0x4aea7e);},'gFPff':function(_0x28d580,_0x1a1c5b){return _0x28d580==_0x1a1c5b;},'IFiac':function(_0x51af9d,_0x2ae521){return _0x51af9d(_0x2ae521);},'ZpIBt':_0x5c6133(0x1f8),'GWLNB':function(_0x2e63eb,_0x58de31){return _0x2e63eb!==_0x58de31;},'HlYDT':_0x5c6133(0xe0),'aKoAY':_0x5c6133(0x1c4),'aphde':_0x5c6133(0x1e7),'DjmdX':_0x5c6133(0x1ad),'ZMbea':_0x5c6133(0x12b),'mYNRn':_0x5c6133(0x1cb),'iTMPj':function(_0x393e83,_0x126c81){return _0x393e83===_0x126c81;},'VdDxu':function(_0xa6f624,_0xe25e9c,_0x5f3e18,_0x12edcf,_0x917c15,_0xf50cba,_0x246395,_0x160d16,_0x140b3b,_0x26b872,_0x332d83){return _0xa6f624(_0xe25e9c,_0x5f3e18,_0x12edcf,_0x917c15,_0xf50cba,_0x246395,_0x160d16,_0x140b3b,_0x26b872,_0x332d83);},'DKVQg':_0x5c6133(0x112),'IGpIU':_0x5c6133(0x15f),'YAhXs':function(_0x3a18d9,_0x45f725,_0x2633f2,_0x36aa85,_0x2f5b68){return _0x3a18d9(_0x45f725,_0x2633f2,_0x36aa85,_0x2f5b68);},'DtCtc':_0x5c6133(0x184),'PgYpM':'ingress-nginx-controller','SStaE':'ingress-nginx','IYpsi':function(_0x2b0b09,_0x586c03){return _0x2b0b09==_0x586c03;},'JeAhR':_0x5c6133(0x172),'WxRXq':'get-grid-url-null-response','onWHq':function(_0xab60d1,_0x2ef614){return _0xab60d1===_0x2ef614;},'qTvAy':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','rFwPL':'get-grid-url-auth-failed','UiTEU':function(_0x53e1de,_0x314fcb){return _0x53e1de!==_0x314fcb;},'iVNtl':_0x5c6133(0x13f),'otTaV':function(_0x2242de,_0x1a3667,_0x1e3d4f,_0x38b08e,_0x1decc2,_0x4315a7){return _0x2242de(_0x1a3667,_0x1e3d4f,_0x38b08e,_0x1decc2,_0x4315a7);},'toUfx':_0x5c6133(0xbf)};let _0xab9760=![],_0x4934b6,_0x38f1d6,_0xc63433,_0x41cecc,_0x330abf,_0x39e340,_0x4d840f,_0x36494a,_0x4edd91,_0x1ea758,_0x208ab9,_0xf95627,_0x3da2d2=0x1,_0x587ee3=0xe;try{global_registry[_0x5c6133(0x14e)]=_0x395c5b['wRkpa'](uuidv4),global_registry[_0x5c6133(0x1ee)]=![];!fs[_0x5c6133(0x11f)](_0x395c5b[_0x5c6133(0x1f9)](getCredentialsPath))&&(_0x395c5b[_0x5c6133(0x1bc)](_0x395c5b['LEpsK'],_0x395c5b[_0x5c6133(0xb9)])?(console['error'](_0x395c5b['xOOcP']),await _0x395c5b[_0x5c6133(0x10d)](sendInstrumentationEvent,_0xbd89ab,_0x395c5b[_0x5c6133(0x1b9)],messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1ce)],null,_0xbd89ab),process['exit'](0x1)):(_0x823fe7=_0x482f8a['route53'],_0x37a49e=_0x395c5b['usLkf']));await _0x395c5b[_0x5c6133(0x10d)](sendInstrumentationEvent,_0xbd89ab,_0x395c5b[_0x5c6133(0x1b9)],messageTypes[_0x5c6133(0x195)],null,null,_0xbd89ab);const _0x531669=JSON['parse'](fs['readFileSync'](_0x395c5b['ggxVv'](getCredentialsPath)));global_registry['bstackUsername']=_0x531669[_0x5c6133(0x1c4)][_0x5c6133(0x176)],global_registry[_0x5c6133(0x18e)]=_0x531669[_0x5c6133(0x1c4)]['password'];const _0xaf67a1=WS_ENDPOINT['replace'](_0x395c5b[_0x5c6133(0x1df)],_0x531669[_0x5c6133(0x1c4)][_0x5c6133(0x176)])[_0x5c6133(0x1c3)](_0x395c5b[_0x5c6133(0x144)],_0x531669[_0x5c6133(0x1c4)][_0x5c6133(0x1cf)]),_0x17d865={};_0x17d865['WebSocket']=ws,_0x17d865[_0x5c6133(0x179)]=0x36ee80,_0x1ea758=new ReconnectingWebSocket(_0xaf67a1,[],_0x17d865),logger[_0x5c6133(0x14a)](_0x395c5b[_0x5c6133(0x1d3)]),webSocketUtils['addListeners'](_0x1ea758,_0xbd89ab['user'],_0xbd89ab['password']);let _0x5cb39b=DEFAULT_GRID_NAME;if(_0xbd89ab['clusterName']||_0xbd89ab[_0x5c6133(0x1be)]||_0xbd89ab['region']){if(_0x395c5b[_0x5c6133(0x116)](_0x395c5b[_0x5c6133(0x1dc)],_0x395c5b[_0x5c6133(0xd0)])){!(_0xbd89ab[_0x5c6133(0xbc)]&&_0xbd89ab['cloudProvider']&&_0xbd89ab[_0x5c6133(0x120)])&&(_0x395c5b[_0x5c6133(0x1bc)](_0x395c5b[_0x5c6133(0xf3)],_0x395c5b[_0x5c6133(0xf3)])?(_0x4934b6=_0x395c5b[_0x5c6133(0x15d)],await _0x395c5b[_0x5c6133(0xc2)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b['PZypz'],_0x395c5b[_0x5c6133(0x13c)]),logger[_0x5c6133(0x136)](_0x4934b6),process[_0x5c6133(0xc7)](0x1)):_0x59ed25[_0x5c6133(0xed)]());if(![AWS,AZURE,GCP][_0x5c6133(0x10a)](_0xbd89ab[_0x5c6133(0x1be)][_0x5c6133(0x104)]())){if(_0x395c5b[_0x5c6133(0x1bc)](_0x395c5b[_0x5c6133(0xd1)],_0x395c5b[_0x5c6133(0x178)])){const _0x35e8b1={};_0x35e8b1[_0x5c6133(0x1f2)]=_0x1a0246[_0x5c6133(0xd7)],_0x35e8b1[_0x5c6133(0x1e6)]=_0x3df999,_0x3309fe['sendEventToBackend'](_0x4b5689,_0x35e8b1,_0x395c5b[_0x5c6133(0x13c)],!![]);}else _0x4934b6=_0x395c5b[_0x5c6133(0xe5)],await _0x395c5b[_0x5c6133(0xc2)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes['ERROR'],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x185)],_0x395c5b[_0x5c6133(0x13c)]),logger[_0x5c6133(0x136)](_0x4934b6),process[_0x5c6133(0xc7)](0x1);}_0xbd89ab[_0x5c6133(0x1e0)]&&_0x395c5b[_0x5c6133(0x1bb)](_0xbd89ab[_0x5c6133(0x1e0)][_0x5c6133(0x104)](),_0x395c5b[_0x5c6133(0x1a6)])&&(_0x395c5b[_0x5c6133(0x1d6)](_0x395c5b[_0x5c6133(0x10b)],_0x395c5b[_0x5c6133(0x10b)])?global_registry[_0x5c6133(0x1ee)]=!![]:_0x413aa1['info'](_0x5c6133(0x16a)+_0x38b873+'\x20')),_0xab9760=!![],_0xc63433=_0xbd89ab[_0x5c6133(0xbc)],_0x38f1d6=_0xbd89ab[_0x5c6133(0x1be)][_0x5c6133(0x104)](),_0x41cecc=_0xbd89ab[_0x5c6133(0x120)];}else _0x3186e7=_0x395c5b[_0x5c6133(0x1a7)];}if(_0xbd89ab[_0x5c6133(0x166)]){if(_0x395c5b[_0x5c6133(0xf9)](_0x395c5b[_0x5c6133(0x11b)],_0x395c5b[_0x5c6133(0x16c)]))_0x5cb39b=_0xbd89ab[_0x5c6133(0x166)];else{const _0x47bfe4={};_0x47bfe4[_0x5c6133(0x1f2)]=_0x5b98de[_0x5c6133(0xd7)],_0x47bfe4[_0x5c6133(0x1e6)]=_0x5c6133(0xe4)+_0x4a7c68+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x3cc8df['sendEventToBackend'](_0x1537b0,_0x47bfe4,_0x395c5b[_0x5c6133(0x1f1)]),_0x510da7[_0x5c6133(0xc4)](_0x5c6133(0xe4)+_0x52eba4+_0x5c6133(0xdd)),_0x5f3391=!![];}}if(_0xbd89ab[_0x5c6133(0x14d)]){if(_0x395c5b[_0x5c6133(0x196)](_0x395c5b[_0x5c6133(0x19a)],_0x395c5b[_0x5c6133(0x1a4)])){const _0x212bc5={};_0x212bc5[_0x5c6133(0xfc)]=_0x395c5b[_0x5c6133(0x165)],_0x212bc5[_0x5c6133(0x1f2)]=_0x395c5b[_0x5c6133(0x117)];const _0x3b8ac0={};_0x3b8ac0['description']=_0x395c5b[_0x5c6133(0x1cd)],_0x3b8ac0[_0x5c6133(0x1f2)]=_0x395c5b[_0x5c6133(0x117)];const _0x5559a9={};_0x5559a9[_0x5c6133(0xfc)]=_0x395c5b['RucSH'],_0x5559a9[_0x5c6133(0x1f2)]=_0x395c5b[_0x5c6133(0x117)];const _0x4cfff7={};_0x4cfff7[_0x5c6133(0xfc)]=_0x395c5b[_0x5c6133(0x14c)],_0x4cfff7[_0x5c6133(0x1f2)]=_0x395c5b[_0x5c6133(0x117)];const _0x4158ca={};_0x4158ca[_0x5c6133(0xfc)]=_0x395c5b[_0x5c6133(0xdc)],_0x4158ca['type']=_0x395c5b[_0x5c6133(0x117)];const _0x4d307f={};_0x4d307f[_0x5c6133(0xfc)]=_0x395c5b[_0x5c6133(0x160)],_0x4d307f[_0x5c6133(0x1f2)]=_0x395c5b[_0x5c6133(0x117)];const _0x52cbfe={};return _0x52cbfe[_0x5c6133(0xeb)]=_0x212bc5,_0x52cbfe[_0x5c6133(0xd9)]=_0x3b8ac0,_0x52cbfe[_0x5c6133(0x1d8)]=_0x5559a9,_0x52cbfe['cloud-provider']=_0x4cfff7,_0x52cbfe[_0x5c6133(0x120)]=_0x4158ca,_0x52cbfe[_0x5c6133(0x1ac)]=_0x4d307f,_0x39133f[_0x5c6133(0x169)](_0xf5890['create'])[_0x5c6133(0x1e4)](_0xe87309)['options'](_0x52cbfe)[_0x5c6133(0x10e)](_0x395c5b['zAwPn'])[_0x5c6133(0xfd)];}else global_registry[_0x5c6133(0x14d)]=_0xbd89ab[_0x5c6133(0x14d)];}global_registry[_0x5c6133(0x166)]=_0x5cb39b;const _0x1c0b33={'method':_0x395c5b[_0x5c6133(0x132)],'headers':_0x395c5b[_0x5c6133(0x1a0)](getAuthHeader,_0x531669[_0x5c6133(0x1c4)][_0x5c6133(0x176)],_0x531669[_0x5c6133(0x1c4)][_0x5c6133(0x1cf)]),'throwHttpErrors':![]},_0x4066cd=_0x5c6133(0x16e)+AG_API_URL+_0x5c6133(0x14f),_0x2c14fe={};_0x2c14fe[_0x5c6133(0x166)]=_0x5cb39b;const _0x5bf57d={'searchParams':_0x2c14fe,'throwHttpErrors':![],..._0x1c0b33},_0x1c0298=_0x5bf57d,_0x367ee9=await _0x395c5b[_0x5c6133(0x1a0)](got,_0x4066cd,_0x1c0298);if(_0x395c5b[_0x5c6133(0xc0)](_0x367ee9,null)||_0x395c5b['MWxTq'](_0x367ee9,undefined)){if(_0x395c5b[_0x5c6133(0x17b)](_0x395c5b[_0x5c6133(0x1b0)],_0x395c5b[_0x5c6133(0x19c)])){const _0x6d884e=_0x395c5b[_0x5c6133(0xf4)]['split']('|');let _0xe6bd3c=0x0;while(!![]){switch(_0x6d884e[_0xe6bd3c++]){case'0':_0x7039d6[_0x5c6133(0x1be)]=_0x337040;continue;case'1':_0x510ef5[_0x5c6133(0x18a)]=_0x505daa;continue;case'2':_0x6bc109=_0x5c6133(0x199)+_0x470d0e+_0x5c6133(0x1b7)+_0x51f297+'\x27';continue;case'3':const _0x57e0fd={};_0x57e0fd[_0x5c6133(0x1f2)]=_0x35328f[_0x5c6133(0x164)],_0x57e0fd['message']=_0x5c6133(0x161),_0x28e135['sendEventToBackend'](_0xa96262,_0x57e0fd);continue;case'4':_0x43c4ed[_0x5c6133(0x191)]=_0x56c012[_0x5c6133(0x191)];continue;case'5':const _0x1c9501={};_0x1c9501['type']=_0x4c600e['LOG'],_0x1c9501[_0x5c6133(0x1e6)]=_0x53d276,_0x171b65[_0x5c6133(0xc5)](_0x28baca,_0x1c9501);continue;case'6':_0x1b6617[_0x5c6133(0xc4)](_0x193544);continue;case'7':_0x3b24e0[_0x5c6133(0xbc)]=_0x5e28ab;continue;case'8':_0x35e306[_0x5c6133(0x1bf)]=_0x3e0814['hubVersion'];continue;}break;}}else _0x4934b6=_0x395c5b[_0x5c6133(0x1f3)],await _0x395c5b['aXPGF'](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0xf6)],_0x395c5b[_0x5c6133(0x13c)]),logger['error'](_0x4934b6),process[_0x5c6133(0xc7)](0x1);}_0x395c5b[_0x5c6133(0x1bc)](_0x367ee9[_0x5c6133(0xd2)],0x191)&&(_0x395c5b[_0x5c6133(0x1cc)](_0x395c5b[_0x5c6133(0x1dd)],_0x395c5b[_0x5c6133(0x1dd)])?_0x316b70[_0x5c6133(0x136)](_0x5c6133(0x1d9)+_0x428e43+'\x20\x0a'+_0x55b5f7[_0x5c6133(0x181)](_0x56894f[_0x5c6133(0x106)])):(_0x4934b6=_0x395c5b['sTADs'],await _0x395c5b['WBvKy'](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b['AEeGM'],_0x395c5b[_0x5c6133(0x100)],_0x395c5b[_0x5c6133(0x13c)]),logger[_0x5c6133(0x136)](_0x4934b6),process[_0x5c6133(0xc7)](0x1)));_0x395c5b[_0x5c6133(0xf5)](_0x367ee9['statusCode'],0xc8)&&(_0x395c5b['vDbOP'](_0x395c5b[_0x5c6133(0x17a)],_0x395c5b[_0x5c6133(0xf1)])?_0x288d15[_0x5c6133(0xc4)](_0x5c6133(0x12d)+_0x1abea6[_0x5c6133(0x181)](_0x3d5ee0)+'\x20'):(_0x4934b6='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x5c6133(0x181)](_0x367ee9),await _0x395c5b[_0x5c6133(0xe7)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x154)],_0x395c5b['nbPjL']),logger[_0x5c6133(0x136)](_0x4934b6),process['exit'](0x1)));const _0x47253a=JSON['parse'](_0x367ee9[_0x5c6133(0x1d7)]),_0xb08e23={};_0xb08e23['type']=WS_EVENTS['CLI_RUN_STARTED'],_0xb08e23[_0x5c6133(0x1e6)]=_0x5c6133(0x161),webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0xb08e23);const _0x9f2dc5={};_0x9f2dc5['type']=WS_EVENTS[_0x5c6133(0xd7)],_0x9f2dc5['message']=_0x395c5b[_0x5c6133(0xb7)],webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x9f2dc5);_0x47253a[_0x5c6133(0x140)]&&(_0x395c5b[_0x5c6133(0x126)](_0x395c5b[_0x5c6133(0x101)],_0x395c5b[_0x5c6133(0xdf)])?_0x4d569f[_0x5c6133(0x14d)]=_0x161689[_0x5c6133(0x14d)]:(_0x4934b6=_0x395c5b[_0x5c6133(0x10f)],await _0x395c5b[_0x5c6133(0xc6)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x1d4)],_0x395c5b['nbPjL']),logger['error'](_0x4934b6),process[_0x5c6133(0xc7)](0x1)));const _0x88ec06=_0x47253a[_0x5c6133(0x1de)];let _0x11a80e=_0x88ec06[_0x47253a[_0x5c6133(0x146)]];_0xbd89ab[_0x5c6133(0x14d)]&&(_0x395c5b['rUHYK'](_0x395c5b[_0x5c6133(0x17e)],_0x395c5b[_0x5c6133(0x159)])?_0x11a80e=_0x88ec06[_0xbd89ab[_0x5c6133(0x14d)]]:_0x4dc681[_0x5c6133(0x1ee)]=!![]);if(_0x395c5b[_0x5c6133(0x1bb)](_0xab9760,![])){if(_0x395c5b[_0x5c6133(0xe6)](_0x395c5b[_0x5c6133(0x13b)],_0x395c5b['sCrEx'])){_0x395c5b['dRzCO'](_0x11a80e,undefined)&&(_0x395c5b[_0x5c6133(0x1ae)](_0x395c5b[_0x5c6133(0xe9)],_0x395c5b[_0x5c6133(0xe9)])?(_0x4934b6=_0x395c5b[_0x5c6133(0x13d)],await _0x395c5b[_0x5c6133(0xba)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes['ERROR'],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x1a5)],_0x395c5b[_0x5c6133(0x13c)]),logger[_0x5c6133(0x136)](_0x4934b6),process[_0x5c6133(0xc7)](0x1)):_0x442d25['cloudProvider']={});global_registry[_0x5c6133(0x180)]=_0x11a80e['id'],_0x4934b6=_0x5c6133(0x10c)+_0x5cb39b+_0x5c6133(0x115)+_0x11a80e[_0x5c6133(0xee)]+'\x27\x20grid\x20profile',logger[_0x5c6133(0xc4)](_0x4934b6);const _0x5189f0={};_0x5189f0[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x5189f0[_0x5c6133(0x1e6)]=_0x4934b6,webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x5189f0),_0x38f1d6=_0x11a80e[_0x5c6133(0x1be)],_0xc63433=_0x11a80e[_0x5c6133(0xbc)],_0x41cecc=_0x11a80e[_0x5c6133(0x120)],_0x330abf=_0x11a80e[_0x5c6133(0xd6)],_0x39e340=_0x11a80e[_0x5c6133(0x114)],_0x4d840f=_0x11a80e[_0x5c6133(0xea)],securityGroups=_0x11a80e['securityGroups'],subnets=_0x11a80e[_0x5c6133(0x151)],_0x36494a=_0x11a80e['s3bucket'],_0x3da2d2=_0x11a80e[_0x5c6133(0x1a2)],_0x587ee3=_0x11a80e['maxNodes'],_0x208ab9=_0x47253a[_0x5c6133(0x1bf)],_0xf95627=_0x47253a['browserVersion'],_0x395c5b[_0x5c6133(0x15e)](_0x11a80e['privateGrid'],undefined)&&_0x11a80e[_0x5c6133(0x1e0)]&&(_0x395c5b[_0x5c6133(0x138)](_0x395c5b['bGJmw'],_0x395c5b[_0x5c6133(0x137)])?global_registry[_0x5c6133(0x1ee)]=!![]:_0x49e2d6=_0x45612b[_0x730e66[_0x5c6133(0x14d)]]),_0x395c5b[_0x5c6133(0x1c5)](updateGlobalRegistryWithConfig,_0x38f1d6,_0xc63433,_0x41cecc,_0x330abf,_0x39e340,_0x36494a,_0x11a80e,_0x208ab9,_0xf95627,_0x3da2d2,_0x587ee3);}else _0x5c7357=_0x51e020[_0x5c6133(0x166)];}else{if(_0x395c5b[_0x5c6133(0x1b4)](_0x395c5b[_0x5c6133(0x1a3)],_0x395c5b[_0x5c6133(0x1a3)]))_0x23602f[_0x5c6133(0x1ee)]=!![];else{const _0x178827=_0x395c5b['CPEts'][_0x5c6133(0x177)]('|');let _0x4944ef=0x0;while(!![]){switch(_0x178827[_0x4944ef++]){case'0':const _0x3fc094={};_0x3fc094['type']=WS_EVENTS[_0x5c6133(0x164)],_0x3fc094[_0x5c6133(0x1e6)]=_0x5c6133(0x161),webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x3fc094);continue;case'1':_0x4934b6=_0x5c6133(0x199)+_0x5cb39b+_0x5c6133(0x1b7)+_0xc63433+'\x27';continue;case'2':global_registry[_0x5c6133(0x18a)]=_0x41cecc;continue;case'3':const _0x4453b5={};_0x4453b5[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x4453b5[_0x5c6133(0x1e6)]=_0x4934b6,webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x4453b5);continue;case'4':global_registry[_0x5c6133(0x1be)]=_0x38f1d6;continue;case'5':global_registry[_0x5c6133(0x1bf)]=_0x47253a[_0x5c6133(0x1bf)];continue;case'6':logger[_0x5c6133(0xc4)](_0x4934b6);continue;case'7':global_registry[_0x5c6133(0xbc)]=_0xc63433;continue;case'8':global_registry['browserVersion']=_0x47253a[_0x5c6133(0x191)];continue;}break;}}}const _0x3e2eb0=await _0x395c5b['Ubaem'](getCloudProviderObject,_0x38f1d6,_0xc63433,_0x5cb39b,_0x1ea758,webSocketUtils,_0xbd89ab),_0x1d0b84=_0x531669[_0x5c6133(0x1be)]||{};if(_0x395c5b[_0x5c6133(0x138)](_0x1d0b84[_0x38f1d6],undefined)){logger[_0x5c6133(0xc4)](_0x395c5b[_0x5c6133(0x12c)]);_0x395c5b[_0x5c6133(0xc0)](_0x531669[_0x5c6133(0x1be)],undefined)&&(_0x531669[_0x5c6133(0x1be)]={});_0x531669[_0x5c6133(0x1be)][_0x38f1d6]={};const _0x14c276=await _0x395c5b[_0x5c6133(0xbb)](inputCloudProviderKeys,_0x38f1d6,_0x531669,_0x3e2eb0);fs[_0x5c6133(0x128)](_0x395c5b['qmbRj'](getCredentialsPath),JSON[_0x5c6133(0x181)](_0x14c276)),logger['debug'](_0x395c5b[_0x5c6133(0x102)]);}else{_0x4934b6=_0x395c5b[_0x5c6133(0x17c)];const _0x449f4f={};_0x449f4f['type']=WS_EVENTS[_0x5c6133(0xd7)],_0x449f4f[_0x5c6133(0x1e6)]=_0x4934b6,webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x449f4f),logger[_0x5c6133(0xc4)](_0x4934b6),await _0x3e2eb0[_0x5c6133(0x173)](_0x1d0b84);}_0x3e2eb0[_0x5c6133(0x193)]();_0x395c5b[_0x5c6133(0x1cc)](_0x38f1d6,AZURE)&&_0x3e2eb0['sendResourceDataToHST']();let _0x1ae713;if(_0x395c5b[_0x5c6133(0xd4)](_0xab9760,![])){_0x4934b6=_0x5c6133(0x113)+_0x41cecc+').';const _0x5b462a={};_0x5b462a[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x5b462a[_0x5c6133(0x1e6)]=_0x4934b6,webSocketUtils['sendEventToBackend'](_0x1ea758,_0x5b462a),logger[_0x5c6133(0xc4)](_0x4934b6);const _0xe6fb43=await _0x3e2eb0[_0x5c6133(0x108)]();if(_0xe6fb43){const _0x560612={};_0x560612[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x560612['message']=_0x5c6133(0xe4)+_0xc63433+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x560612,_0x395c5b['AJfpZ']),logger['info'](_0x5c6133(0xe4)+_0xc63433+_0x5c6133(0xdd)),_0xab9760=!![];}else{const _0x348e16={};_0x348e16[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x348e16[_0x5c6133(0x1e6)]=_0x395c5b[_0x5c6133(0x192)],webSocketUtils['sendEventToBackend'](_0x1ea758,_0x348e16),logger[_0x5c6133(0xc4)](_0x395c5b['QoSAD']);const _0x2a9344=_0x395c5b[_0x5c6133(0x118)](_0x4d840f,null)&&_0x395c5b['WEFnL'](_0x4d840f,undefined),_0x197f4d=_0x395c5b[_0x5c6133(0x131)](subnets,null)&&_0x395c5b[_0x5c6133(0x1e5)](subnets,undefined)&&_0x395c5b[_0x5c6133(0x1a9)](subnets[_0x5c6133(0x142)],0x0);if(_0x2a9344){_0x395c5b['ofSjC'](_0x197f4d,![])&&(_0x4934b6=_0x395c5b[_0x5c6133(0x13a)],await _0x395c5b['aXPGF'](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes['ERROR'],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x124)],_0x395c5b['nbPjL']),logger[_0x5c6133(0x136)](_0x4934b6),process[_0x5c6133(0xc7)](0x1));const _0x9a9343=await _0x3e2eb0['isVPCPresent'](_0x4d840f);_0x395c5b[_0x5c6133(0xd4)](_0x9a9343,![])?(_0x4934b6=_0x395c5b[_0x5c6133(0x198)],await _0x395c5b[_0x5c6133(0xba)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x170)],_0x395c5b[_0x5c6133(0x13c)]),logger['error'](_0x4934b6),process[_0x5c6133(0xc7)](0x1)):logger[_0x5c6133(0xc4)](_0x5c6133(0x16a)+_0x4d840f+'\x20');const _0x1ed003=await _0x3e2eb0[_0x5c6133(0x11c)](subnets,_0x4d840f);_0x395c5b['kjlZA'](_0x1ed003[0x0],![])?(_0x4934b6=_0x5c6133(0x1b2)+JSON[_0x5c6133(0x181)](_0x1ed003[0x1])+_0x5c6133(0x14b)+_0x4d840f+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x395c5b[_0x5c6133(0x1c8)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b['AEeGM'],_0x395c5b[_0x5c6133(0x1c7)],_0x395c5b[_0x5c6133(0x13c)]),logger[_0x5c6133(0x136)](_0x4934b6),process['exit'](0x1)):logger[_0x5c6133(0xc4)](_0x5c6133(0x12d)+JSON[_0x5c6133(0x181)](subnets)+'\x20'),await _0x3e2eb0[_0x5c6133(0x19e)](_0x4d840f,subnets);}else{const _0x485526=_0x395c5b[_0x5c6133(0x175)][_0x5c6133(0x177)]('|');let _0x544e8b=0x0;while(!![]){switch(_0x485526[_0x544e8b++]){case'0':const _0x5f40d6={};_0x5f40d6[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x5f40d6[_0x5c6133(0x1e6)]='Cluster\x20created\x20successfully',webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x5f40d6);continue;case'1':logger[_0x5c6133(0xc4)](_0x395c5b[_0x5c6133(0x1d0)]);continue;case'2':logger['info'](_0x395c5b[_0x5c6133(0x139)]);continue;case'3':await _0x3e2eb0[_0x5c6133(0x19e)]();continue;case'4':const _0x22e90c={};_0x22e90c[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x22e90c[_0x5c6133(0x1e6)]=_0x395c5b['VkQtr'],webSocketUtils['sendEventToBackend'](_0x1ea758,_0x22e90c);continue;}break;}}}}_0xab9760&&_0x395c5b['dRzCO'](_0x38f1d6,AZURE)&&(await _0x3e2eb0[_0x5c6133(0x1ec)](),await _0x3e2eb0[_0x5c6133(0x1e1)]());const [_0xc57ba8,_0xc6975d,_0x34ca3a,_0x3b8292,_0x5923a1,_0xd072b]=await _0x395c5b[_0x5c6133(0x16f)](createK8sClient,_0x3e2eb0);_0x395c5b[_0x5c6133(0x126)](_0xab9760,![])&&_0x395c5b[_0x5c6133(0x109)](_0x38f1d6,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x1ae713=await _0x3e2eb0[_0x5c6133(0xbd)](_0xc57ba8,_0xbd89ab));try{_0x4edd91=_0x395c5b[_0x5c6133(0x130)](kebabCase,_0x5cb39b),logger[_0x5c6133(0xc4)](_0x395c5b[_0x5c6133(0xc1)]);const _0x76b521={};_0x76b521['type']=WS_EVENTS['LOG'],_0x76b521['message']=_0x395c5b[_0x5c6133(0xc1)],webSocketUtils['sendEventToBackend'](_0x1ea758,_0x76b521);if(_0x395c5b[_0x5c6133(0x1c1)](_0x4edd91,_0x395c5b[_0x5c6133(0xcd)])){const _0x2a61f7={};_0x2a61f7['createdBy']=_0x395c5b[_0x5c6133(0xc9)],_0x2a61f7[_0x5c6133(0xf0)]=_0x395c5b['aKoAY'];const _0x21d73f={};_0x21d73f[_0x5c6133(0xee)]=_0x4edd91,_0x21d73f[_0x5c6133(0x1b8)]=_0x2a61f7;const _0x5423a7={};_0x5423a7[_0x5c6133(0x186)]=_0x21d73f;let _0x3e7b8f=_0x5423a7;const _0x56a321={};_0x56a321['body']=_0x3e7b8f,await _0xc57ba8[_0x5c6133(0xcb)](_0x56a321),logger[_0x5c6133(0xc4)](_0x395c5b[_0x5c6133(0x1ba)]);}const _0x386726={};_0x386726[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x386726[_0x5c6133(0x1e6)]=_0x395c5b[_0x5c6133(0x1aa)],webSocketUtils['sendEventToBackend'](_0x1ea758,_0x386726);const _0x6466d6={};_0x6466d6[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x6466d6[_0x5c6133(0x1e6)]=_0x395c5b['ZMbea'],webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x6466d6),logger['info'](_0x395c5b[_0x5c6133(0xce)]);let _0x11edce={};_0x395c5b[_0x5c6133(0xde)](_0x38f1d6,AZURE)&&(_0x11edce={'clientId':await _0x3e2eb0['getResourceClientId']('turboscale-managed-identity-'+_0xc63433)});await _0x395c5b[_0x5c6133(0x107)](addGridComponents,_0xc57ba8,_0xc6975d,_0x34ca3a,_0x3b8292,_0x4edd91,_0xc63433,_0x1ae713,_0x5923a1,_0xd072b,_0x11edce),_0x4934b6=_0x395c5b['DKVQg'],logger[_0x5c6133(0xc4)](_0x4934b6);const _0x30869b={};_0x30869b[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x30869b[_0x5c6133(0x1e6)]=_0x4934b6,webSocketUtils['sendEventToBackend'](_0x1ea758,_0x30869b),_0x4934b6=_0x395c5b[_0x5c6133(0x133)],logger[_0x5c6133(0xc4)](_0x4934b6);const _0x3f454c={};_0x3f454c[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x3f454c['message']=_0x4934b6,webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x3f454c),await _0x395c5b[_0x5c6133(0xcc)](waitForDeployment,_0xc6975d,_0x4edd91,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x155e47=await _0x395c5b[_0x5c6133(0x1a0)](getNamespaceUID,_0xc57ba8,_0x4edd91);let _0x326b34=global_registry[_0x5c6133(0x1ee)]?_0x395c5b[_0x5c6133(0x19b)]:_0x395c5b[_0x5c6133(0x1b6)];const _0x8ae439={};_0x8ae439[_0x5c6133(0xee)]=_0x326b34,_0x8ae439[_0x5c6133(0x125)]=_0x395c5b[_0x5c6133(0x11a)];let _0x153661=await _0xc57ba8[_0x5c6133(0xff)](_0x8ae439),_0x3ec108=_0x3e2eb0[_0x5c6133(0x1f6)](_0x153661)+'/'+_0x4edd91,_0x23b58d=_0x395c5b[_0x5c6133(0x1a7)];try{const _0x32a5b3=_0x5c6133(0x16e)+AG_API_URL+_0x5c6133(0x111)+_0x155e47,_0x3a1c9d=await _0x395c5b[_0x5c6133(0x1a0)](got,_0x32a5b3,_0x1c0b33);(_0x395c5b[_0x5c6133(0x135)](_0x3a1c9d,null)||_0x395c5b[_0x5c6133(0x109)](_0x3a1c9d,undefined))&&(_0x4934b6=_0x395c5b['JeAhR'],await _0x395c5b[_0x5c6133(0xc2)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b['WxRXq'],_0x395c5b[_0x5c6133(0x13c)]),logger['error'](_0x4934b6),process[_0x5c6133(0xc7)](0x1));_0x395c5b[_0x5c6133(0x1fc)](_0x3a1c9d['statusCode'],0x191)&&(_0x4934b6=_0x395c5b[_0x5c6133(0x197)],await _0x395c5b[_0x5c6133(0xc6)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x147)],_0x395c5b[_0x5c6133(0x13c)]),logger['error'](_0x4934b6),process['exit'](0x1));_0x395c5b[_0x5c6133(0x1f7)](_0x3a1c9d[_0x5c6133(0xd2)],0xc8)&&(_0x4934b6=_0x5c6133(0x145)+JSON[_0x5c6133(0x181)](_0x3a1c9d),await _0x395c5b[_0x5c6133(0x1c8)](reportToGalactusAndSendToEDS,_0xbd89ab,_0x1ea758,_0x4934b6,messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1b9)],_0x395c5b[_0x5c6133(0x1b5)],_0x395c5b[_0x5c6133(0x13c)]),logger[_0x5c6133(0x136)](_0x4934b6),process[_0x5c6133(0xc7)](0x1));const _0x46001d=JSON[_0x5c6133(0x13e)](_0x3a1c9d[_0x5c6133(0x1d7)]);_0x46001d[_0x5c6133(0x12e)]&&(_0x3ec108=_0x46001d[_0x5c6133(0x12e)],_0x23b58d=_0x395c5b[_0x5c6133(0x182)]),global_registry['isPrivateGrid']&&(_0x23b58d=_0x395c5b[_0x5c6133(0x1a7)]);}catch(_0x4c31e4){}_0x4934b6=_0x5c6133(0xca)+_0x3ec108+'\x20',logger[_0x5c6133(0xc4)](_0x4934b6);const _0x4be9af={};_0x4be9af[_0x5c6133(0x1f2)]=WS_EVENTS['LOG'],_0x4be9af[_0x5c6133(0x1e6)]=_0x4934b6,webSocketUtils['sendEventToBackend'](_0x1ea758,_0x4be9af),_0x4934b6=_0x5c6133(0x1f5)+_0x23b58d+'://'+_0x3ec108+_0x5c6133(0x1fd),logger['info'](_0x4934b6);const _0x58a48a={};_0x58a48a[_0x5c6133(0x1f2)]=WS_EVENTS[_0x5c6133(0xd7)],_0x58a48a['message']=_0x4934b6,webSocketUtils['sendEventToBackend'](_0x1ea758,_0x58a48a);const _0x473380={};_0x473380[_0x5c6133(0x1f2)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x473380[_0x5c6133(0x1e6)]=_0x5c6133(0xe1)+_0x3ec108,webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x473380),await webSocketUtils[_0x5c6133(0x19f)](0x7d0);}catch(_0x5b3e62){logger['error'](_0x5c6133(0x153)+_0x5b3e62+'\x20\x0a'+JSON[_0x5c6133(0x181)](_0x5b3e62['stack']));if(_0x395c5b[_0x5c6133(0x1db)](_0xab9760,![]))try{logger[_0x5c6133(0xc4)](_0x5c6133(0xf2)),await _0x395c5b['otTaV'](removeGridComponents,_0xc57ba8,_0xc6975d,_0x34ca3a,_0x3b8292,_0x4edd91),await _0x3e2eb0[_0x5c6133(0x168)](_0xc57ba8,global_registry[_0x5c6133(0x18a)]);}catch(_0x30cdbf){logger[_0x5c6133(0x136)](_0x5c6133(0x1d9)+_0x30cdbf+'\x20\x0a'+JSON[_0x5c6133(0x181)](_0x30cdbf[_0x5c6133(0x106)]));}throw _0x5b3e62;}}catch(_0x295cb1){const _0x352e54=_0x5c6133(0x18c)+_0x295cb1+'\x20\x0a'+JSON[_0x5c6133(0x181)](_0x295cb1[_0x5c6133(0x106)]);if(_0x1ea758){const _0x51afde={};_0x51afde['type']=WS_EVENTS['LOG'],_0x51afde[_0x5c6133(0x1e6)]=_0x352e54,webSocketUtils[_0x5c6133(0xc5)](_0x1ea758,_0x51afde,_0x395c5b[_0x5c6133(0x13c)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x30a837={};_0x30a837['error']=_0x352e54,await _0x395c5b[_0x5c6133(0x10d)](sendInstrumentationEvent,_0xbd89ab,_0x395c5b[_0x5c6133(0x1b9)],messageTypes[_0x5c6133(0x1c9)],_0x395c5b[_0x5c6133(0x1da)],_0x30a837,_0xbd89ab),logger[_0x5c6133(0x136)](_0x352e54);}process[_0x5c6133(0xc7)](0x0);};function a9_0x204b(){const _0x4978d3=['CVnzP','password','VkQtr','https','DReVe','MELpQ','aecEr','got','FDGXQ','body','cluster-name','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','toUfx','dRzCO','KQKcT','dovdG','gridProfiles','cDRiE','privateGrid','createOtherResources','string','non-aws-azure-cluster','epilogue','fAUuJ','message','Namespace\x20Created','ijfmI','jAuOh','GET','<UsernamePlaceholder>','updatePreSpawnedCluster','Create\x20a\x20new\x20Automation\x20grid.','isPrivateGrid','PZvud','create-grid-called','AJfpZ','type','CjqNg','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','getGridHostname','UiTEU','Creating\x20namespace','wRkpa','12671186nqXvEP','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','onWHq','/wd/hub','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','MExHh','WXAqN','LEpsK','EdHTa','pomlu','clusterName','setupAutoscaler','warn','grid-spawning-failed','JYSpf','ZpIBt','RkQaZ','../../utils/gridComponents','info','sendEventToBackend','WBvKy','exit','../../utils/instrumentationUtils','aKoAY','Grid\x20can\x20be\x20accessed\x20at:\x20','createNamespace','YAhXs','HlYDT','mYNRn','desc','dGhsN','SSEdk','statusCode','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','SRzOA','ykuKu','concurrency','LOG','999rQSSMG','grid-profile','bLVXP','2105870TlamkL','cHMTf','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','iTMPj','ARFsw','default','CLI\x20run\x20finished:\x20','YZMgB','../../utils/webSocketUtils','Cluster\x20','cQRlR','jJkZQ','aXPGF','ToiVY','FYtYQ','vpc','grid-name','6643bGQFMC','sendResourceDataToHST','name','create-grid-checks-invalid-profile','managedBy','GdrJU','Deleting\x20the\x20CloudFormation\x20Stacks','IgGuK','JADcR','NsUfr','vtBkQ','HxPQL','zoOTT','nRNFH','0|1|6|3|4|2|7|5|8','ygddi','description','argv','pre-spawned-subnets-not-selected','readNamespacedService','IcPyh','iXZPI','OgHnm','http','toLowerCase','20fMvNan','stack','VdDxu','isClusterPresent','gFPff','includes','qyMXc','Will\x20be\x20spawning\x20the\x20grid\x20','Ubaem','help','FEQIk','744132fIWrrZ','/packages/cli/get-grid-url?gridIdentifier=','Grid\x20spawned\x20on\x20the\x20cluster','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','instanceType','\x20using\x20\x27','CzXeV','mqRCS','LMhct','moToW','SStaE','ftVuo','isSubnetsValid','pre-spawned-invalid-subnets','prespawned-cluster-args-not-passed','existsSync','region','create','handler','Create\x20a\x20private/public\x20grid.','jSGeT','namespace','bFzrk','create-grid-checks-null-response','writeFileSync','TOKDr','4vtToEj','Spawning\x20grid\x20on\x20to\x20the\x20cluster','LIUsU','Found\x20Subnets:\x20','route53','yqRhF','IFiac','ecMch','lsWzr','IGpIU','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','IYpsi','error','bGJmw','vDbOP','lwpiA','xXmTi','oytgN','nbPjL','heXYE','parse','get-grid-url-non-200','alreadyPresent','reconnecting-websocket','length','create-grid-checks-non-200','yUvBf','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','defaultGridProfile','rFwPL','../../utils/utilityMethods','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','debug','\x20are\x20not\x20present\x20in\x20VPC:\x20','dJdmt','gridProfile','requestId','/packages/cli/create-grid-checks','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','subnets','options','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','epPUQ','6210830dnHaoz','bMKkh','create-grid-checks-auth-failed','uuid','cYTYV','EBxIk','<PasswordPlaceholder>','biQEO','wJEej','DpMzd','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','AKqbY','CLI\x20run\x20started','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ItcUw','CLI_RUN_STARTED','WORXd','gridName','true','deleteCluster','usage','Found\x20VPC:\x20','Cluster\x20created\x20successfully','wPNZb','3|2|6|5|0|1|7|8|4','https://','Wzrhj','nAxwL','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','fetchLocalCreds','btTbc','aXXec','username','split','hauOc','connectionTimeout','XwvKo','csorb','NheKa','Grid\x20profile\x20fetched\x20from\x20backend','OMZOt','Adding\x20Websocket\x20listeners','gridProfileId','stringify','usLkf','pmdrz','private-ingress-nginx-controller','fsIID','metadata','init-not-called','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NcffC','clusterRegion','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','2166BLlNQm','bstackAccesskey','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','command','browserVersion','QoSAD','configureIfNotConfigured','1170797QXkyZF','INFO','qoYfE','qTvAy','aFlUD','Spawning\x20the\x20grid\x20','ooXTO','DtCtc','HljLP','WngPZ','setupNewCluster','delay','yGSDb','72920lkULBs','minNodes','lfZsx','uOmxE','EMiDL','uSyMi','fDBFu','../../utils/createk8sClient','AfQzi','DjmdX','../../config/constants','private-grid','Namespace\x20created','qTKfb','zcRBh','ZfRdk','QIOfr','Subnets:\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','RBPoa','iVNtl','PgYpM','\x20in\x20existing\x20cluster\x20\x27','annotations','AEeGM','aphde','YKErI','MWxTq','4|1|3|0|2','cloudProvider','hubVersion','../../utils/userInput','GWLNB','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','replace','Browserstack','ZTLZz','ofEMI','erzEb','gDBtc','ERROR','rrMLL','Spawning\x20Grid\x20on\x20the\x20Cluster','uIqGy','ocFxY'];a9_0x204b=function(){return _0x4978d3;};return a9_0x204b();}
|
|
1
|
+
const a9_0x5128ce=a9_0x46f1;(function(_0x379261,_0x1d0220){const _0x130044=a9_0x46f1,_0x5eb2ba=_0x379261();while(!![]){try{const _0xdcd1c1=parseInt(_0x130044(0x1cd))/0x1*(parseInt(_0x130044(0x25d))/0x2)+-parseInt(_0x130044(0x282))/0x3+parseInt(_0x130044(0x1f5))/0x4*(parseInt(_0x130044(0x1e8))/0x5)+-parseInt(_0x130044(0x2d2))/0x6*(-parseInt(_0x130044(0x2a5))/0x7)+parseInt(_0x130044(0x230))/0x8*(parseInt(_0x130044(0x243))/0x9)+-parseInt(_0x130044(0x26f))/0xa*(-parseInt(_0x130044(0x285))/0xb)+-parseInt(_0x130044(0x222))/0xc;if(_0xdcd1c1===_0x1d0220)break;else _0x5eb2ba['push'](_0x5eb2ba['shift']());}catch(_0x4bc554){_0x5eb2ba['push'](_0x5eb2ba['shift']());}}}(a9_0x1775,0xe150e));function a9_0x1775(){const _0x141d12=['Czjyk','minNodes','/packages/cli/create-grid-checks','KaoxM','../../utils/userInput','zXPMv','Bqefn','1009506GfzzUy','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','mmMol','eYWUO','privateGrid','desc','XGRLO','isNewAWSCluster','builder','securityGroups','GXQPg','help','SqLDe','setupNewCluster','ApQvs','yDYBD','vxzUt','uesLP','MSVYo','gUuQu','argv','concurrency','updatePreSpawnedCluster','pnDkc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Browserstack','GbMBZ','fetchLocalCreds','mJbUS','clusterRegion','../../cloudproviders/utils','gridName','options','pre-spawned-invalid-subnets','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','SiJpO','https://','HFgpV','VCihn','MNVUI','CLI_RUN_FINISHED','uUfCy','kAwQu','Create\x20a\x20private/public\x20grid.','private-grid','ACoFP','CETnW','Spawning\x20grid\x20on\x20to\x20the\x20cluster','oUBMn','isClusterPresent','namespace','468794JkHqCm','create-grid-checks-auth-failed','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','reconnecting-websocket','grid-name','Ijgfb','uuid','CLI_RUN_STARTED','mgVye','DpItV','CLI\x20run\x20started','nQXeR','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','caUuo','prespawned-cluster-args-not-passed','get-grid-url-non-200','mEtEw','Will\x20be\x20spawning\x20the\x20grid\x20','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','clusterName','kdRzD','info','turboscale-managed-identity-','<UsernamePlaceholder>','../../config/constants','oiqac','1777705XRbDEx','statusCode','Spawning\x20the\x20grid\x20','tZXEC','gthke','HJBmw','toLowerCase','body','odgjw','fjOvZ','type','onIAe','create-grid-called','12xreojI','\x20using\x20\x27','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','biLhd','nBQAe','usage','oapOr','wTxel','SQswj','\x20are\x20not\x20present\x20in\x20VPC:\x20','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.','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','createNamespace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zyjeY','OvkeR','<PasswordPlaceholder>','hhNao','message','https','OSPRE','ingress-nginx-controller','metadata','../../utils/gridComponents','zXgHn','cRWBC','/packages/cli/get-grid-url?gridIdentifier=','yeynG','PKOqC','GVpmX','grid-profile','zbNnl','DKIUJ','ZkXIQ','buyCq','ingress-nginx','description','requestId','browserVersion','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','length','Deleting\x20the\x20CloudFormation\x20Stacks','rlppO','yUJkq','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','33744228zXpeks','hZszy','private-ingress-nginx-controller','parse','iiBOV','exit','http','cloud-provider','route53','alreadyPresent','eNjvv','get-grid-url-auth-failed','addListeners','stack','7089128UZhJsY','GULRV','FBefd','TYNin','eWJxR','Subnets:\x20','get-grid-url-null-response','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','IWokt','create-grid-checks-invalid-profile','bGewZ','ShnFI','defaultGridProfile','isPrivateGrid','jjoGE','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WSRBP','split','create-grid-checks-non-200','18AGSmOT','xIezQ','GaIpN','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','GET','RgBVT','Found\x20Subnets:\x20','subnets','zaUxG','stringify','FHXUn','got','rSujE','knKUB','Idhah','7|5|4|2|6|8|1|0|3','lWLjs','ERROR','Grid\x20can\x20be\x20accessed\x20at:\x20','KAUOK','epilogue','DzsbT','../../utils/createk8sClient','s3bucket','maxNodes','NkyEH','2YYpyLR','pnhXg','Unlso','error','yaeDM','true','cluster-name','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','cloudProvider','Found\x20VPC:\x20','vpc','includes','Adding\x20Websocket\x20listeners','gPPmv','gridProfiles','Grid\x20spawned\x20on\x20the\x20cluster','cJBbR','6|8|1|3|0|4|7|2|5','10gtumCX','connectionTimeout','readFileSync','ktiLz','BzSNL','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','fNokk','Rrset','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfileId','bstackUsername','YOuuk','isSubnetsValid','ONKnY','warn','debug','TphAL','createOtherResources','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','4522164HNAcmx','jkhUG','replace','15728339tSVHmf','WebSocket','../../utils/utilityMethods','ZZsyP','HDxgL','KtFUJ','Bcpsh','iTKyi','Namespace\x20Created','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','instanceType','yEKKf','uGEUI','handler','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','password','delay','configureIfNotConfigured','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','ytfXv','wgTWt','javUq','SsYIL','sendEventToBackend','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','init-not-called','Cluster\x20created\x20successfully','mgUjY','create-grid-checks-null-response','\x27\x20grid\x20profile','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','LOG','21gcELxY','bEOTP','SEjad','vnqGT','../../utils/instrumentationUtils','lcPPH','LwCVG','../../config/logger','hKYkC','\x20in\x20existing\x20cluster\x20\x27','command','hubVersion','iYHQt','default','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ruUae','create','QoOYQ','name','SYVPZ','string','RwYWi','gridProfile','mpIFO','managedBy','KFJiv','region','create-grid-checks-grid-already-exists','CLI\x20run\x20finished:\x20','SJbRP','Namespace\x20created','username','CaRvy','NiGHH','vNGoO','HRsna','pre-spawned-subnets-not-selected','MkZvX'];a9_0x1775=function(){return _0x141d12;};return a9_0x1775();}function a9_0x46f1(_0x57dba4,_0x5e4e2){const _0x17754e=a9_0x1775();return a9_0x46f1=function(_0x46f13,_0x5c230d){_0x46f13=_0x46f13-0x1ca;let _0x10f8a2=_0x17754e[_0x46f13];return _0x10f8a2;},a9_0x46f1(_0x57dba4,_0x5e4e2);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x5128ce(0x1d1)),got=require(a9_0x5128ce(0x24e)),{v4:uuidv4}=require(a9_0x5128ce(0x1d4)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x5128ce(0x2ac)),{inputCloudProviderKeys}=require(a9_0x5128ce(0x2cf)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5128ce(0x287)),{getCloudProviderObject}=require(a9_0x5128ce(0x2f0)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x5128ce(0x1e6)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x5128ce(0x20c)),{createK8sClient}=require(a9_0x5128ce(0x259)),{sendInstrumentationEvent}=require(a9_0x5128ce(0x2a9));exports[a9_0x5128ce(0x2af)]='grid',exports[a9_0x5128ce(0x2d7)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x5128ce(0x2da)]=function(_0x584155){const _0x2e90fc=a9_0x5128ce,_0x38a831={};_0x38a831[_0x2e90fc(0x231)]=_0x2e90fc(0x1cf),_0x38a831[_0x2e90fc(0x27f)]=_0x2e90fc(0x2b9),_0x38a831[_0x2e90fc(0x2f5)]=_0x2e90fc(0x1d0),_0x38a831['VCihn']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x38a831['jjoGE']=_0x2e90fc(0x29d),_0x38a831[_0x2e90fc(0x211)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x38a831['ONKnY']=_0x2e90fc(0x2fd),_0x38a831['DKIUJ']=_0x2e90fc(0x2dd);const _0x1bff07=_0x38a831,_0x292526={};_0x292526[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x231)],_0x292526[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x4bea73={};_0x4bea73[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x2f5)],_0x4bea73[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x1a4cd9={};_0x1a4cd9[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x2f8)],_0x1a4cd9['type']=_0x1bff07[_0x2e90fc(0x27f)];const _0x4b7c6d={};_0x4b7c6d[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x23e)],_0x4b7c6d['type']=_0x1bff07['TphAL'];const _0x3babfa={};_0x3babfa[_0x2e90fc(0x219)]=_0x1bff07['PKOqC'],_0x3babfa[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x11728b={};_0x11728b['description']=_0x1bff07[_0x2e90fc(0x27c)],_0x11728b['type']=_0x1bff07['TphAL'];const _0x46e6d6={};return _0x46e6d6[_0x2e90fc(0x1d2)]=_0x292526,_0x46e6d6[_0x2e90fc(0x213)]=_0x4bea73,_0x46e6d6[_0x2e90fc(0x263)]=_0x1a4cd9,_0x46e6d6[_0x2e90fc(0x229)]=_0x4b7c6d,_0x46e6d6[_0x2e90fc(0x2bf)]=_0x3babfa,_0x46e6d6[_0x2e90fc(0x2fe)]=_0x11728b,_0x584155['usage'](HELP_HEADER_MESSAGE[_0x2e90fc(0x2b5)])[_0x2e90fc(0x257)](HELP_FOOTER_MESSAGE)['options'](_0x46e6d6)[_0x2e90fc(0x2dd)](_0x1bff07[_0x2e90fc(0x215)])[_0x2e90fc(0x2e6)];},exports[a9_0x5128ce(0x292)]=async function(_0x24f922){const _0x42cf3c=a9_0x5128ce,_0x131c52={'knKUB':_0x42cf3c(0x228),'HRsna':_0x42cf3c(0x208),'kdRzD':_0x42cf3c(0x26e),'yeynG':_0x42cf3c(0x260),'yUJkq':_0x42cf3c(0x27d),'mpIFO':_0x42cf3c(0x1cf),'FBefd':_0x42cf3c(0x2b9),'vnqGT':_0x42cf3c(0x1d0),'hJnJg':_0x42cf3c(0x1da),'uesLP':_0x42cf3c(0x29d),'jutks':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','SqLDe':'Create\x20a\x20private/public\x20grid.','mgUjY':_0x42cf3c(0x2dd),'MSVYo':function(_0x9e5799){return _0x9e5799();},'tZXEC':function(_0x25fbfb){return _0x25fbfb();},'DpItV':function(_0x231be8,_0x38254d){return _0x231be8!==_0x38254d;},'yEKKf':'IbgiJ','pDnRv':_0x42cf3c(0x202),'DzsbT':function(_0x5830fa,_0x2619e8,_0x2c9499,_0x115fae,_0xd61709,_0x2d7c06,_0x59ffad){return _0x5830fa(_0x2619e8,_0x2c9499,_0x115fae,_0xd61709,_0x2d7c06,_0x59ffad);},'caUuo':_0x42cf3c(0x1f4),'hKYkC':_0x42cf3c(0x29e),'HHYZN':function(_0x4207f8,_0x1e6ccf,_0x4b4ca8,_0x3f2b4b,_0x1c7ace,_0x39168b,_0x2d02d9){return _0x4207f8(_0x1e6ccf,_0x4b4ca8,_0x3f2b4b,_0x1c7ace,_0x39168b,_0x2d02d9);},'iYHQt':_0x42cf3c(0x1e5),'gthke':_0x42cf3c(0x205),'KtFUJ':_0x42cf3c(0x269),'xIezQ':'qvQAM','fjOvZ':function(_0x13efde,_0x2dad3e){return _0x13efde===_0x2dad3e;},'eNjvv':_0x42cf3c(0x2c5),'YOuuk':_0x42cf3c(0x237),'GaIpN':function(_0x4f65b1,_0x4e0226,_0x4b5419,_0x5b0af4,_0x2384b2,_0x35f141,_0x33febb,_0x2b42d5){return _0x4f65b1(_0x4e0226,_0x4b5419,_0x5b0af4,_0x2384b2,_0x35f141,_0x33febb,_0x2b42d5);},'faSUY':_0x42cf3c(0x1dc),'onIAe':function(_0x8fd719,_0x2f9c28){return _0x8fd719!==_0x2f9c28;},'mEtEw':_0x42cf3c(0x2ff),'VmYTh':_0x42cf3c(0x21c),'WSRBP':function(_0x5f8eab,_0x1f1168,_0xa88655,_0x3d7601,_0x3eafa8,_0x216ed8,_0x192ba3,_0x4a145b){return _0x5f8eab(_0x1f1168,_0xa88655,_0x3d7601,_0x3eafa8,_0x216ed8,_0x192ba3,_0x4a145b);},'uNQYG':'non-aws-azure-cluster','cRWBC':function(_0x2fadd4,_0x3889bc){return _0x2fadd4===_0x3889bc;},'oapOr':_0x42cf3c(0x262),'ktiLz':'OpzrY','TYNin':_0x42cf3c(0x2fc),'KFJiv':function(_0x3b87c0,_0xad0bb3){return _0x3b87c0!==_0xad0bb3;},'MkZvX':_0x42cf3c(0x253),'zaUxG':_0x42cf3c(0x247),'TxseV':function(_0x8d8f8,_0x554089,_0x18beaf){return _0x8d8f8(_0x554089,_0x18beaf);},'eYWUO':function(_0x2d5bbf,_0x4209cd,_0x16318f){return _0x2d5bbf(_0x4209cd,_0x16318f);},'HJBmw':function(_0x58c1f9,_0x1b28b4){return _0x58c1f9===_0x1b28b4;},'zbNnl':_0x42cf3c(0x2c2),'ShnFI':'VJmEc','gPPmv':_0x42cf3c(0x264),'HDxgL':_0x42cf3c(0x2a1),'ytfXv':function(_0x59738d,_0x5e5905){return _0x59738d===_0x5e5905;},'KaoxM':_0x42cf3c(0x2dc),'fNokk':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ApQvs':function(_0x435c7c,_0x4865bc,_0x2e7e84,_0x3490c6,_0x126aad,_0x285b9b,_0x1f5957,_0x2ae7ff){return _0x435c7c(_0x4865bc,_0x2e7e84,_0x3490c6,_0x126aad,_0x285b9b,_0x1f5957,_0x2ae7ff);},'MNVUI':_0x42cf3c(0x1ce),'yDYBD':function(_0x539fb9,_0x3d129b){return _0x539fb9===_0x3d129b;},'nQXeR':_0x42cf3c(0x25f),'oUBMn':function(_0x55b718,_0x608336,_0x4211f3,_0x316f90,_0x566417,_0x9a4fc7,_0x45c8ce,_0x44f5f0){return _0x55b718(_0x608336,_0x4211f3,_0x316f90,_0x566417,_0x9a4fc7,_0x45c8ce,_0x44f5f0);},'wgTWt':_0x42cf3c(0x242),'mmMol':'Grid\x20profile\x20fetched\x20from\x20backend','bEOTP':_0x42cf3c(0x273),'ZkXIQ':_0x42cf3c(0x2a3),'iiBOV':_0x42cf3c(0x2c0),'eBowu':_0x42cf3c(0x212),'AAKIc':_0x42cf3c(0x1d6),'OSPRE':function(_0xdad0db,_0x2481a7){return _0xdad0db===_0x2481a7;},'eiSCK':_0x42cf3c(0x25e),'vxzUt':_0x42cf3c(0x2e9),'KAUOK':function(_0x4f666f,_0x2365fa){return _0x4f666f===_0x2365fa;},'Miaax':_0x42cf3c(0x217),'gUuQu':_0x42cf3c(0x200),'pIsWz':_0x42cf3c(0x239),'RwYWi':function(_0x15cfe4,_0x9c4eba){return _0x15cfe4!==_0x9c4eba;},'rSujE':_0x42cf3c(0x28c),'kMass':function(_0x1e7a87,_0x4e4174,_0x55d174,_0x5eea6c,_0x50cd26,_0x35bb1b,_0x17549a,_0x48c80b,_0x11c858,_0x2aba96,_0x253381,_0x592f56){return _0x1e7a87(_0x4e4174,_0x55d174,_0x5eea6c,_0x50cd26,_0x35bb1b,_0x17549a,_0x48c80b,_0x11c858,_0x2aba96,_0x253381,_0x592f56);},'dhQsk':_0x42cf3c(0x29b),'neOSN':_0x42cf3c(0x2fb),'UOJXS':_0x42cf3c(0x252),'GbMBZ':function(_0x302a0e,_0x3ccba1){return _0x302a0e===_0x3ccba1;},'VaZzo':_0x42cf3c(0x1f7),'Czjyk':function(_0x3203e7,_0x2767f1){return _0x3203e7===_0x2767f1;},'hhNao':function(_0x1043f1,_0x1d550a,_0x40a703,_0x360725){return _0x1043f1(_0x1d550a,_0x40a703,_0x360725);},'hZszy':_0x42cf3c(0x221),'Rrset':_0x42cf3c(0x23f),'FHXUn':function(_0x51502c,_0xdde61a){return _0x51502c!==_0xdde61a;},'Tfiom':_0x42cf3c(0x2ea),'IWokt':function(_0x51aeb9,_0x5e43bf){return _0x51aeb9!=_0x5e43bf;},'CETnW':function(_0x4e44fb,_0xae65b7){return _0x4e44fb!==_0xae65b7;},'LwCVG':function(_0x333560,_0x1f015d){return _0x333560>_0x1f015d;},'vNGoO':function(_0x1f959e,_0x351c40){return _0x1f959e===_0x351c40;},'WBpDh':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','zXgHn':_0x42cf3c(0x2c9),'QoOYQ':_0x42cf3c(0x2d3),'RgBVT':'pre-spawned-invalid-vpc','odgjw':function(_0x563af3,_0xf03205,_0x4ccaaa,_0xc5954a,_0x2bc19f,_0x4871f8,_0x2c73e9,_0x32e0ff){return _0x563af3(_0xf03205,_0x4ccaaa,_0xc5954a,_0x2bc19f,_0x4871f8,_0x2c73e9,_0x32e0ff);},'nBQAe':_0x42cf3c(0x2f3),'ECYwm':'1|0|3|4|2','wTxel':_0x42cf3c(0x1ff),'Ijgfb':_0x42cf3c(0x29f),'OvkeR':function(_0x33f99d,_0x27edd7){return _0x33f99d===_0x27edd7;},'Idhah':function(_0x2eff08,_0x11317a){return _0x2eff08(_0x11317a);},'zyjeY':function(_0xd504bb,_0x4c460e){return _0xd504bb===_0x4c460e;},'HFgpV':function(_0x3a2574,_0x5c5731){return _0x3a2574==_0x5c5731;},'oiqac':function(_0x4f0f12,_0x42d057){return _0x4f0f12(_0x42d057);},'bGewZ':'Creating\x20namespace','glRkc':function(_0x22ab24,_0x2e7449){return _0x22ab24!==_0x2e7449;},'yaeDM':_0x42cf3c(0x2b2),'ruUae':'Browserstack','rlppO':_0x42cf3c(0x28d),'XGRLO':_0x42cf3c(0x2c3),'uGEUI':_0x42cf3c(0x301),'eWJxR':'Spawning\x20Grid\x20on\x20the\x20Cluster','SQswj':function(_0x3eef54,_0x10bdfc,_0x4e5ab1,_0x55e7b3,_0x5197dd,_0x36cf90,_0x344b14,_0x4260c,_0x4d296b,_0x1b7459,_0x482acb){return _0x3eef54(_0x10bdfc,_0x4e5ab1,_0x55e7b3,_0x5197dd,_0x36cf90,_0x344b14,_0x4260c,_0x4d296b,_0x1b7459,_0x482acb);},'EatvJ':_0x42cf3c(0x26c),'ZZsyP':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Bcpsh':function(_0x58d8ea,_0x34ff61,_0x4881df,_0x3b6ab9,_0x4afc2d){return _0x58d8ea(_0x34ff61,_0x4881df,_0x3b6ab9,_0x4afc2d);},'cJBbR':function(_0x2a7af0,_0x388055,_0x363378){return _0x2a7af0(_0x388055,_0x363378);},'yOeEF':_0x42cf3c(0x224),'jkhUG':_0x42cf3c(0x20a),'biLhd':_0x42cf3c(0x218),'zXPMv':function(_0x2bcfe9,_0x3be431,_0x926cf9){return _0x2bcfe9(_0x3be431,_0x926cf9);},'lcPPH':_0x42cf3c(0x277),'SYVPZ':_0x42cf3c(0x236),'mJbUS':function(_0x478616,_0x514c5b){return _0x478616===_0x514c5b;},'SEjad':_0x42cf3c(0x293),'NkyEH':_0x42cf3c(0x22d),'wiwef':function(_0x403b8b,_0x43170c){return _0x403b8b!==_0x43170c;},'BiasN':_0x42cf3c(0x1dd),'Bqefn':function(_0x74d67f,_0x598947){return _0x74d67f===_0x598947;},'javUq':function(_0x575dd6,_0x43f242,_0x293f4d,_0x1e84f8,_0x3c26b0,_0x49d841){return _0x575dd6(_0x43f242,_0x293f4d,_0x1e84f8,_0x3c26b0,_0x49d841);},'NiGHH':'grid-spawning-failed'};let _0x190125=![],_0x2f0939,_0x2ae629,_0x5eca07,_0xc208a6,_0xb49e46,_0x192d85,_0x5837d4,_0xb2dc79,_0x4dd117,_0x140842,_0x386e50,_0x5c25e5,_0x86bf72=0x1,_0x18ba3f=0xe;try{global_registry[_0x42cf3c(0x21a)]=_0x131c52[_0x42cf3c(0x2e4)](uuidv4),global_registry[_0x42cf3c(0x23d)]=![];!fs['existsSync'](_0x131c52[_0x42cf3c(0x1eb)](getCredentialsPath))&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x290)],_0x131c52[_0x42cf3c(0x290)])?_0x3386a6[_0x42cf3c(0x260)](_0x42cf3c(0x281)+_0x40c7a8+'\x20\x0a'+_0x31f984['stringify'](_0x348515[_0x42cf3c(0x22f)])):(console[_0x42cf3c(0x260)](_0x131c52['pDnRv']),await _0x131c52[_0x42cf3c(0x258)](sendInstrumentationEvent,_0x24f922,_0x131c52['caUuo'],messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x2ad)],null,_0x24f922),process[_0x42cf3c(0x227)](0x1)));await _0x131c52['HHYZN'](sendInstrumentationEvent,_0x24f922,_0x131c52[_0x42cf3c(0x1db)],messageTypes['INFO'],null,null,_0x24f922);const _0x58019f=JSON[_0x42cf3c(0x225)](fs[_0x42cf3c(0x271)](_0x131c52['MSVYo'](getCredentialsPath)));global_registry[_0x42cf3c(0x279)]=_0x58019f['Browserstack']['username'],global_registry['bstackAccesskey']=_0x58019f[_0x42cf3c(0x2eb)][_0x42cf3c(0x294)];const _0xf50a76=WS_ENDPOINT[_0x42cf3c(0x284)](_0x131c52[_0x42cf3c(0x2b1)],_0x58019f[_0x42cf3c(0x2eb)][_0x42cf3c(0x2c4)])['replace'](_0x131c52[_0x42cf3c(0x1ec)],_0x58019f['Browserstack'][_0x42cf3c(0x294)]),_0x389779={};_0x389779[_0x42cf3c(0x286)]=ws,_0x389779[_0x42cf3c(0x270)]=0x36ee80,_0x140842=new ReconnectingWebSocket(_0xf50a76,[],_0x389779),logger[_0x42cf3c(0x27e)](_0x131c52[_0x42cf3c(0x28a)]),webSocketUtils[_0x42cf3c(0x22e)](_0x140842,_0x24f922['user'],_0x24f922['password']);let _0x437e13=DEFAULT_GRID_NAME;(_0x24f922[_0x42cf3c(0x1e1)]||_0x24f922['cloudProvider']||_0x24f922[_0x42cf3c(0x2bf)])&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x244)],_0x131c52[_0x42cf3c(0x244)])?_0x51092d=_0x131c52[_0x42cf3c(0x250)]:(!(_0x24f922[_0x42cf3c(0x1e1)]&&_0x24f922[_0x42cf3c(0x265)]&&_0x24f922[_0x42cf3c(0x2bf)])&&(_0x131c52[_0x42cf3c(0x1f1)](_0x131c52[_0x42cf3c(0x22c)],_0x131c52['eNjvv'])?(_0x2f0939=_0x131c52[_0x42cf3c(0x27a)],await _0x131c52[_0x42cf3c(0x245)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52['caUuo'],_0x131c52['faSUY'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):(_0x658978=_0x33ca51['route53'],_0x59b4ab=_0x131c52[_0x42cf3c(0x2c8)])),![AWS,AZURE,GCP][_0x42cf3c(0x268)](_0x24f922[_0x42cf3c(0x265)][_0x42cf3c(0x1ee)]())&&(_0x131c52[_0x42cf3c(0x1f3)](_0x131c52[_0x42cf3c(0x1de)],_0x131c52[_0x42cf3c(0x1de)])?_0x1fed51[_0x42cf3c(0x23d)]=!![]:(_0x2f0939=_0x131c52['VmYTh'],await _0x131c52[_0x42cf3c(0x240)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['uNQYG'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1))),_0x24f922[_0x42cf3c(0x2d6)]&&_0x131c52[_0x42cf3c(0x20e)](_0x24f922[_0x42cf3c(0x2d6)][_0x42cf3c(0x1ee)](),_0x131c52[_0x42cf3c(0x1fb)])&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x272)],_0x131c52[_0x42cf3c(0x272)])?_0x451e1f['info'](_0x42cf3c(0x266)+_0x4d2311+'\x20'):global_registry[_0x42cf3c(0x23d)]=!![]),_0x190125=!![],_0x5eca07=_0x24f922['clusterName'],_0x2ae629=_0x24f922[_0x42cf3c(0x265)][_0x42cf3c(0x1ee)](),_0xc208a6=_0x24f922[_0x42cf3c(0x2bf)]));_0x24f922[_0x42cf3c(0x2f1)]&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x233)],_0x131c52[_0x42cf3c(0x233)])?_0x12c123[_0x42cf3c(0x1e3)]('Found\x20Subnets:\x20'+_0x1ad24c[_0x42cf3c(0x24c)](_0x4aa391)+'\x20'):_0x437e13=_0x24f922['gridName']);if(_0x24f922[_0x42cf3c(0x2bb)]){if(_0x131c52[_0x42cf3c(0x2be)](_0x131c52['MkZvX'],_0x131c52[_0x42cf3c(0x2ca)])){const _0x4d4ab5=_0x131c52[_0x42cf3c(0x1e2)]['split']('|');let _0x4721bf=0x0;while(!![]){switch(_0x4d4ab5[_0x4721bf++]){case'0':_0x484b7b['cloudProvider']=_0x574285;continue;case'1':_0x4fac9d[_0x42cf3c(0x1e3)](_0x4a3b4d);continue;case'2':_0x48bc2e[_0x42cf3c(0x2b0)]=_0x48229a[_0x42cf3c(0x2b0)];continue;case'3':const _0x4918c9={};_0x4918c9[_0x42cf3c(0x1f2)]=_0x168ffd[_0x42cf3c(0x2a4)],_0x4918c9['message']=_0xa192fb,_0x1ecbe7[_0x42cf3c(0x29c)](_0x5da753,_0x4918c9);continue;case'4':_0x8f9dd6[_0x42cf3c(0x2ef)]=_0x4a68b6;continue;case'5':_0x242c98[_0x42cf3c(0x21b)]=_0x39f1fb[_0x42cf3c(0x21b)];continue;case'6':const _0x2809a6={};_0x2809a6[_0x42cf3c(0x1f2)]=_0x21a5c2[_0x42cf3c(0x1d5)],_0x2809a6[_0x42cf3c(0x207)]=_0x42cf3c(0x1d8),_0x1455bb[_0x42cf3c(0x29c)](_0x14c1c8,_0x2809a6);continue;case'7':_0x4ef590['clusterName']=_0x2522b4;continue;case'8':_0x1a9716='Spawning\x20the\x20grid\x20'+_0x276361+'\x20in\x20existing\x20cluster\x20\x27'+_0x530cdb+'\x27';continue;}break;}}else global_registry[_0x42cf3c(0x2bb)]=_0x24f922['gridProfile'];}global_registry['gridName']=_0x437e13;const _0x5e7160={'method':_0x131c52[_0x42cf3c(0x24b)],'headers':_0x131c52['TxseV'](getAuthHeader,_0x58019f[_0x42cf3c(0x2eb)]['username'],_0x58019f['Browserstack'][_0x42cf3c(0x294)]),'throwHttpErrors':![]},_0x2fc350=_0x42cf3c(0x2f6)+AG_API_URL+_0x42cf3c(0x2cd),_0x7796f3={};_0x7796f3[_0x42cf3c(0x2f1)]=_0x437e13;const _0x4dd7f1={'searchParams':_0x7796f3,'throwHttpErrors':![],..._0x5e7160},_0x28f55f=_0x4dd7f1,_0x3c0cfa=await _0x131c52[_0x42cf3c(0x2d5)](got,_0x2fc350,_0x28f55f);if(_0x131c52[_0x42cf3c(0x20e)](_0x3c0cfa,null)||_0x131c52[_0x42cf3c(0x20e)](_0x3c0cfa,undefined)){if(_0x131c52[_0x42cf3c(0x1ed)](_0x131c52[_0x42cf3c(0x214)],_0x131c52[_0x42cf3c(0x23b)])){const _0x5c020b={};_0x5c020b[_0x42cf3c(0x1f2)]=_0x282857[_0x42cf3c(0x2a4)],_0x5c020b[_0x42cf3c(0x207)]=_0x5ee859,_0x4ada86[_0x42cf3c(0x29c)](_0x2f6721,_0x5c020b,_0x131c52[_0x42cf3c(0x210)],!![]);}else _0x2f0939=_0x131c52[_0x42cf3c(0x26a)],await _0x131c52['WSRBP'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x289)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1);}_0x131c52[_0x42cf3c(0x298)](_0x3c0cfa[_0x42cf3c(0x1e9)],0x191)&&(_0x131c52[_0x42cf3c(0x298)](_0x131c52['KaoxM'],_0x131c52[_0x42cf3c(0x2ce)])?(_0x2f0939=_0x131c52[_0x42cf3c(0x275)],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x2f9)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x1347a0=_0x1b215b[_0x42cf3c(0x2f1)]);_0x131c52[_0x42cf3c(0x2be)](_0x3c0cfa[_0x42cf3c(0x1e9)],0xc8)&&(_0x131c52['yDYBD'](_0x131c52[_0x42cf3c(0x1d9)],_0x131c52['nQXeR'])?(_0x2f0939=_0x42cf3c(0x28e)+JSON[_0x42cf3c(0x24c)](_0x3c0cfa),await _0x131c52[_0x42cf3c(0x1ca)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x299)],_0x131c52['yeynG']),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x59761e['isPrivateGrid']=!![]);const _0x15cb67=JSON[_0x42cf3c(0x225)](_0x3c0cfa[_0x42cf3c(0x1ef)]),_0x16bc82={};_0x16bc82[_0x42cf3c(0x1f2)]=WS_EVENTS['CLI_RUN_STARTED'],_0x16bc82[_0x42cf3c(0x207)]=_0x42cf3c(0x1d8),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x16bc82);const _0x3c940c={};_0x3c940c[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x3c940c[_0x42cf3c(0x207)]=_0x131c52[_0x42cf3c(0x2d4)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x3c940c);_0x15cb67[_0x42cf3c(0x22b)]&&(_0x131c52[_0x42cf3c(0x1f1)](_0x131c52[_0x42cf3c(0x2a6)],_0x131c52[_0x42cf3c(0x2a6)])?(_0x2f0939=_0x131c52[_0x42cf3c(0x216)],await _0x131c52['oUBMn'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52['caUuo'],_0x131c52[_0x42cf3c(0x226)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x2443b6['sendResourceDataToHST']());const _0xf2fbe5=_0x15cb67[_0x42cf3c(0x26b)];let _0x523abb=_0xf2fbe5[_0x15cb67[_0x42cf3c(0x23c)]];if(_0x24f922[_0x42cf3c(0x2bb)]){if(_0x131c52['DpItV'](_0x131c52['eBowu'],_0x131c52['AAKIc']))_0x523abb=_0xf2fbe5[_0x24f922[_0x42cf3c(0x2bb)]];else{const _0x18a3bb={};_0x18a3bb['type']=_0x54b16b['LOG'],_0x18a3bb[_0x42cf3c(0x207)]='Cluster\x20'+_0x42e94c+_0x42cf3c(0x297),_0x45e23f['sendEventToBackend'](_0x20d00b,_0x18a3bb,_0x131c52[_0x42cf3c(0x220)]),_0x3d40ca[_0x42cf3c(0x1e3)]('Cluster\x20'+_0x7a05c1+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3e07df=!![];}}if(_0x131c52[_0x42cf3c(0x2e1)](_0x190125,![])){if(_0x131c52[_0x42cf3c(0x209)](_0x131c52['eiSCK'],_0x131c52[_0x42cf3c(0x2e2)]))_0x573ad5=_0xe3146a[_0x4136c3[_0x42cf3c(0x2bb)]];else{_0x131c52[_0x42cf3c(0x256)](_0x523abb,undefined)&&(_0x131c52[_0x42cf3c(0x2be)](_0x131c52['Miaax'],_0x131c52['Miaax'])?_0x5ca529[_0x42cf3c(0x265)]={}:(_0x2f0939=_0x131c52[_0x42cf3c(0x2e5)],await _0x131c52[_0x42cf3c(0x240)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['pIsWz'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)));global_registry[_0x42cf3c(0x278)]=_0x523abb['id'],_0x2f0939=_0x42cf3c(0x1df)+_0x437e13+_0x42cf3c(0x1f6)+_0x523abb[_0x42cf3c(0x2b7)]+_0x42cf3c(0x2a2),logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x5b85fa={};_0x5b85fa['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5b85fa[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x5b85fa),_0x2ae629=_0x523abb[_0x42cf3c(0x265)],_0x5eca07=_0x523abb[_0x42cf3c(0x1e1)],_0xc208a6=_0x523abb[_0x42cf3c(0x2bf)],_0xb49e46=_0x523abb[_0x42cf3c(0x2e7)],_0x192d85=_0x523abb[_0x42cf3c(0x28f)],_0x5837d4=_0x523abb[_0x42cf3c(0x267)],securityGroups=_0x523abb[_0x42cf3c(0x2db)],subnets=_0x523abb[_0x42cf3c(0x24a)],_0xb2dc79=_0x523abb[_0x42cf3c(0x25a)],_0x86bf72=_0x523abb[_0x42cf3c(0x2cc)],_0x18ba3f=_0x523abb[_0x42cf3c(0x25b)],_0x386e50=_0x15cb67[_0x42cf3c(0x2b0)],_0x5c25e5=_0x15cb67[_0x42cf3c(0x21b)],_0x131c52[_0x42cf3c(0x1d7)](_0x523abb[_0x42cf3c(0x2d6)],undefined)&&_0x523abb['privateGrid']&&(_0x131c52[_0x42cf3c(0x2ba)](_0x131c52[_0x42cf3c(0x24f)],_0x131c52[_0x42cf3c(0x24f)])?_0x111b7d[_0x42cf3c(0x2bb)]=_0x3755ff[_0x42cf3c(0x2bb)]:global_registry[_0x42cf3c(0x23d)]=!![]),_0x131c52['kMass'](updateGlobalRegistryWithConfig,_0x2ae629,_0x5eca07,_0xc208a6,_0xb49e46,_0x192d85,_0xb2dc79,_0x523abb,_0x386e50,_0x5c25e5,_0x86bf72,_0x18ba3f);}}else{if(_0x131c52['fjOvZ'](_0x131c52['dhQsk'],_0x131c52['neOSN'])){const _0xa53c18={};_0xa53c18[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2bc)],_0xa53c18[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x3abf65={};_0x3abf65[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2a8)],_0x3abf65[_0x42cf3c(0x1f2)]=_0x131c52['FBefd'];const _0x64ce29={};_0x64ce29[_0x42cf3c(0x219)]=_0x131c52['hJnJg'],_0x64ce29['type']=_0x131c52[_0x42cf3c(0x232)];const _0x1d7722={};_0x1d7722[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2e3)],_0x1d7722[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x322cf2={};_0x322cf2[_0x42cf3c(0x219)]=_0x131c52['jutks'],_0x322cf2[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x54a1ae={};_0x54a1ae[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2de)],_0x54a1ae[_0x42cf3c(0x1f2)]=_0x131c52['FBefd'];const _0x3d1f2c={};return _0x3d1f2c['grid-name']=_0xa53c18,_0x3d1f2c['grid-profile']=_0x3abf65,_0x3d1f2c[_0x42cf3c(0x263)]=_0x64ce29,_0x3d1f2c[_0x42cf3c(0x229)]=_0x1d7722,_0x3d1f2c[_0x42cf3c(0x2bf)]=_0x322cf2,_0x3d1f2c['private-grid']=_0x54a1ae,_0x5c76e6[_0x42cf3c(0x1fa)](_0x5bbfdf[_0x42cf3c(0x2b5)])['epilogue'](_0x332c03)[_0x42cf3c(0x2f2)](_0x3d1f2c)['help'](_0x131c52[_0x42cf3c(0x2a0)])[_0x42cf3c(0x2e6)];}else{const _0x164cf7=_0x131c52['UOJXS'][_0x42cf3c(0x241)]('|');let _0x560b75=0x0;while(!![]){switch(_0x164cf7[_0x560b75++]){case'0':global_registry[_0x42cf3c(0x2b0)]=_0x15cb67[_0x42cf3c(0x2b0)];continue;case'1':global_registry['clusterName']=_0x5eca07;continue;case'2':const _0x42a802={};_0x42a802['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x42a802['message']=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x42a802);continue;case'3':global_registry[_0x42cf3c(0x21b)]=_0x15cb67[_0x42cf3c(0x21b)];continue;case'4':logger[_0x42cf3c(0x1e3)](_0x2f0939);continue;case'5':_0x2f0939=_0x42cf3c(0x1ea)+_0x437e13+_0x42cf3c(0x2ae)+_0x5eca07+'\x27';continue;case'6':global_registry[_0x42cf3c(0x265)]=_0x2ae629;continue;case'7':const _0x28f95c={};_0x28f95c[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x1d5)],_0x28f95c['message']=_0x42cf3c(0x1d8),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x28f95c);continue;case'8':global_registry[_0x42cf3c(0x2ef)]=_0xc208a6;continue;}break;}}}const _0x4d8417=await _0x131c52['HHYZN'](getCloudProviderObject,_0x2ae629,_0x5eca07,_0x437e13,_0x140842,webSocketUtils,_0x24f922),_0x422d1c=_0x58019f[_0x42cf3c(0x265)]||{};if(_0x131c52[_0x42cf3c(0x2ec)](_0x422d1c[_0x2ae629],undefined)){logger['info'](_0x131c52['VaZzo']);_0x131c52[_0x42cf3c(0x2cb)](_0x58019f[_0x42cf3c(0x265)],undefined)&&(_0x58019f[_0x42cf3c(0x265)]={});_0x58019f['cloudProvider'][_0x2ae629]={};const _0x491dde=await _0x131c52[_0x42cf3c(0x206)](inputCloudProviderKeys,_0x2ae629,_0x58019f,_0x4d8417);fs['writeFileSync'](_0x131c52['MSVYo'](getCredentialsPath),JSON[_0x42cf3c(0x24c)](_0x491dde)),logger[_0x42cf3c(0x27e)](_0x131c52[_0x42cf3c(0x223)]);}else{_0x2f0939=_0x131c52[_0x42cf3c(0x276)];const _0x3c0eda={};_0x3c0eda[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x3c0eda[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x3c0eda),logger[_0x42cf3c(0x1e3)](_0x2f0939),await _0x4d8417[_0x42cf3c(0x2ed)](_0x422d1c);}_0x4d8417[_0x42cf3c(0x296)]();_0x131c52[_0x42cf3c(0x24d)](_0x2ae629,AZURE)&&_0x4d8417['sendResourceDataToHST']();let _0x4d2347;if(_0x131c52[_0x42cf3c(0x2cb)](_0x190125,![])){_0x2f0939='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0xc208a6+').';const _0x4c1c18={};_0x4c1c18['type']=WS_EVENTS['LOG'],_0x4c1c18[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x4c1c18),logger['info'](_0x2f0939);const _0x35fd36=await _0x4d8417[_0x42cf3c(0x1cb)]();if(_0x35fd36){const _0x2ee3f8={};_0x2ee3f8['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2ee3f8[_0x42cf3c(0x207)]='Cluster\x20'+_0x5eca07+_0x42cf3c(0x297),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2ee3f8,_0x131c52[_0x42cf3c(0x220)]),logger[_0x42cf3c(0x1e3)]('Cluster\x20'+_0x5eca07+_0x42cf3c(0x297)),_0x190125=!![];}else{const _0x5ebc54={};_0x5ebc54['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5ebc54[_0x42cf3c(0x207)]=_0x131c52['Tfiom'],webSocketUtils['sendEventToBackend'](_0x140842,_0x5ebc54),logger[_0x42cf3c(0x1e3)](_0x131c52['Tfiom']);const _0x3c69b6=_0x131c52[_0x42cf3c(0x238)](_0x5837d4,null)&&_0x131c52[_0x42cf3c(0x300)](_0x5837d4,undefined),_0x5a110a=_0x131c52[_0x42cf3c(0x238)](subnets,null)&&_0x131c52[_0x42cf3c(0x2ba)](subnets,undefined)&&_0x131c52[_0x42cf3c(0x2ab)](subnets[_0x42cf3c(0x21d)],0x0);if(_0x3c69b6){_0x131c52[_0x42cf3c(0x2c7)](_0x5a110a,![])&&(_0x2f0939=_0x131c52['WBpDh'],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x20d)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process['exit'](0x1));const _0x4cb563=await _0x4d8417['isVPCPresent'](_0x5837d4);_0x131c52['KAUOK'](_0x4cb563,![])?(_0x2f0939=_0x131c52[_0x42cf3c(0x2b6)],await _0x131c52[_0x42cf3c(0x1ca)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x248)],_0x131c52['yeynG']),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x5837d4+'\x20');const _0xcb1757=await _0x4d8417[_0x42cf3c(0x27b)](subnets,_0x5837d4);_0x131c52[_0x42cf3c(0x2e1)](_0xcb1757[0x0],![])?(_0x2f0939=_0x42cf3c(0x235)+JSON[_0x42cf3c(0x24c)](_0xcb1757[0x1])+_0x42cf3c(0x1fe)+_0x5837d4+_0x42cf3c(0x2b3),await _0x131c52[_0x42cf3c(0x1f0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x1f9)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):logger[_0x42cf3c(0x1e3)](_0x42cf3c(0x249)+JSON[_0x42cf3c(0x24c)](subnets)+'\x20'),await _0x4d8417[_0x42cf3c(0x2df)](_0x5837d4,subnets);}else{const _0x1fe3d2=_0x131c52['ECYwm']['split']('|');let _0x195598=0x0;while(!![]){switch(_0x1fe3d2[_0x195598++]){case'0':logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x1fc)]);continue;case'1':const _0x580ffd={};_0x580ffd[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x580ffd[_0x42cf3c(0x207)]=_0x131c52['wTxel'],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x580ffd);continue;case'2':logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x1d3)]);continue;case'3':await _0x4d8417['setupNewCluster']();continue;case'4':const _0x509e73={};_0x509e73[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x509e73[_0x42cf3c(0x207)]=_0x42cf3c(0x29f),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x509e73);continue;}break;}}}}_0x190125&&_0x131c52[_0x42cf3c(0x204)](_0x2ae629,AZURE)&&(await _0x4d8417[_0x42cf3c(0x2e8)](),await _0x4d8417[_0x42cf3c(0x280)]());const [_0x229656,_0x5aea49,_0x445292,_0x586452,_0x241767,_0xaa190a]=await _0x131c52[_0x42cf3c(0x251)](createK8sClient,_0x4d8417);_0x131c52[_0x42cf3c(0x203)](_0x190125,![])&&_0x131c52[_0x42cf3c(0x2f7)](_0x2ae629,AWS)&&(global_registry[_0x42cf3c(0x2d9)]=!![],_0x4d2347=await _0x4d8417['setupAutoscaler'](_0x229656,_0x24f922));try{_0x4dd117=_0x131c52[_0x42cf3c(0x1e7)](kebabCase,_0x437e13),logger['info'](_0x131c52[_0x42cf3c(0x23a)]);const _0x511fe0={};_0x511fe0[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x511fe0[_0x42cf3c(0x207)]=_0x131c52['bGewZ'],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x511fe0);if(_0x131c52['glRkc'](_0x4dd117,_0x131c52[_0x42cf3c(0x261)])){const _0x8abcfa={};_0x8abcfa['createdBy']=_0x131c52[_0x42cf3c(0x2b4)],_0x8abcfa[_0x42cf3c(0x2bd)]=_0x131c52[_0x42cf3c(0x2b4)];const _0x128da0={};_0x128da0[_0x42cf3c(0x2b7)]=_0x4dd117,_0x128da0['annotations']=_0x8abcfa;const _0xbe4418={};_0xbe4418[_0x42cf3c(0x20b)]=_0x128da0;let _0x53cdae=_0xbe4418;const _0xe32750={};_0xe32750['body']=_0x53cdae,await _0x229656[_0x42cf3c(0x201)](_0xe32750),logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x21f)]);}const _0x102e67={};_0x102e67[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x102e67[_0x42cf3c(0x207)]=_0x131c52[_0x42cf3c(0x2d8)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x102e67);const _0x2e41ac={};_0x2e41ac['type']=WS_EVENTS['LOG'],_0x2e41ac['message']=_0x131c52[_0x42cf3c(0x291)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2e41ac),logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x234)]);let _0x1aa259={};_0x131c52['HJBmw'](_0x2ae629,AZURE)&&(_0x1aa259={'clientId':await _0x4d8417['getResourceClientId'](_0x42cf3c(0x1e4)+_0x5eca07)});await _0x131c52[_0x42cf3c(0x1fd)](addGridComponents,_0x229656,_0x5aea49,_0x445292,_0x586452,_0x4dd117,_0x5eca07,_0x4d2347,_0x241767,_0xaa190a,_0x1aa259),_0x2f0939=_0x131c52['EatvJ'],logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x2037b8={};_0x2037b8[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2037b8[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2037b8),_0x2f0939=_0x131c52[_0x42cf3c(0x288)],logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x2dc052={};_0x2dc052[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2dc052[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils['sendEventToBackend'](_0x140842,_0x2dc052),await _0x131c52[_0x42cf3c(0x28b)](waitForDeployment,_0x5aea49,_0x4dd117,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4fb741=await _0x131c52[_0x42cf3c(0x26d)](getNamespaceUID,_0x229656,_0x4dd117);let _0x4f1736=global_registry[_0x42cf3c(0x23d)]?_0x131c52['yOeEF']:_0x131c52[_0x42cf3c(0x283)];const _0x3c42eb={};_0x3c42eb[_0x42cf3c(0x2b7)]=_0x4f1736,_0x3c42eb[_0x42cf3c(0x1cc)]=_0x131c52[_0x42cf3c(0x1f8)];let _0x5d7562=await _0x229656['readNamespacedService'](_0x3c42eb),_0x57c83c=_0x4d8417['getGridHostname'](_0x5d7562)+'/'+_0x4dd117,_0x32c175=_0x131c52[_0x42cf3c(0x250)];try{const _0x510d22=_0x42cf3c(0x2f6)+AG_API_URL+_0x42cf3c(0x20f)+_0x4fb741,_0x5a84db=await _0x131c52[_0x42cf3c(0x2d0)](got,_0x510d22,_0x5e7160);(_0x131c52[_0x42cf3c(0x2f7)](_0x5a84db,null)||_0x131c52[_0x42cf3c(0x2f7)](_0x5a84db,undefined))&&(_0x2f0939=_0x131c52[_0x42cf3c(0x2aa)],await _0x131c52['WSRBP'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x2b8)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process['exit'](0x1));_0x131c52[_0x42cf3c(0x2ee)](_0x5a84db[_0x42cf3c(0x1e9)],0x191)&&(_0x2f0939=_0x131c52[_0x42cf3c(0x2a7)],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52['caUuo'],_0x131c52[_0x42cf3c(0x25c)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1));_0x131c52['wiwef'](_0x5a84db[_0x42cf3c(0x1e9)],0xc8)&&(_0x2f0939=_0x42cf3c(0x1e0)+JSON[_0x42cf3c(0x24c)](_0x5a84db),await _0x131c52['GaIpN'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['BiasN'],_0x131c52['yeynG']),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1));const _0x4831d1=JSON[_0x42cf3c(0x225)](_0x5a84db[_0x42cf3c(0x1ef)]);_0x4831d1['route53']&&(_0x57c83c=_0x4831d1[_0x42cf3c(0x22a)],_0x32c175=_0x131c52[_0x42cf3c(0x2c8)]),global_registry[_0x42cf3c(0x23d)]&&(_0x32c175=_0x131c52[_0x42cf3c(0x250)]);}catch(_0x2c33b4){}_0x2f0939=_0x42cf3c(0x255)+_0x57c83c+'\x20',logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x4d0342={};_0x4d0342['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x4d0342[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x4d0342),_0x2f0939=_0x42cf3c(0x246)+_0x32c175+'://'+_0x57c83c+'/wd/hub',logger['info'](_0x2f0939);const _0x5a4387={};_0x5a4387[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5a4387[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x5a4387);const _0x1a5426={};_0x1a5426['type']=WS_EVENTS[_0x42cf3c(0x2fa)],_0x1a5426[_0x42cf3c(0x207)]=_0x42cf3c(0x2c1)+_0x57c83c,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x1a5426),await webSocketUtils['delay'](0x7d0);}catch(_0x2921f0){logger['error'](_0x42cf3c(0x274)+_0x2921f0+'\x20\x0a'+JSON['stringify'](_0x2921f0[_0x42cf3c(0x22f)]));if(_0x131c52[_0x42cf3c(0x2d1)](_0x190125,![]))try{logger[_0x42cf3c(0x1e3)](_0x42cf3c(0x21e)),await _0x131c52[_0x42cf3c(0x29a)](removeGridComponents,_0x229656,_0x5aea49,_0x445292,_0x586452,_0x4dd117),await _0x4d8417['deleteCluster'](_0x229656,global_registry[_0x42cf3c(0x2ef)]);}catch(_0x23c46e){logger[_0x42cf3c(0x260)](_0x42cf3c(0x281)+_0x23c46e+'\x20\x0a'+JSON[_0x42cf3c(0x24c)](_0x23c46e['stack']));}throw _0x2921f0;}}catch(_0x220df6){const _0x3c4785=_0x42cf3c(0x2f4)+_0x220df6+'\x20\x0a'+JSON[_0x42cf3c(0x24c)](_0x220df6[_0x42cf3c(0x22f)]);if(_0x140842){const _0x249119={};_0x249119[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x249119[_0x42cf3c(0x207)]=_0x3c4785,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x249119,_0x131c52[_0x42cf3c(0x210)],!![]);}await webSocketUtils[_0x42cf3c(0x295)](0x7d0);const _0x107167={};_0x107167[_0x42cf3c(0x260)]=_0x3c4785,await _0x131c52[_0x42cf3c(0x258)](sendInstrumentationEvent,_0x24f922,_0x131c52['caUuo'],messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x2c6)],_0x107167,_0x24f922),logger[_0x42cf3c(0x260)](_0x3c4785);}process[_0x42cf3c(0x227)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10_0x4d33f2=a10_0x5c1a;(function(_0x6c0600,_0x20282f){const _0x9e61f8=a10_0x5c1a,_0xf6c057=_0x6c0600();while(!![]){try{const _0x19c389=parseInt(_0x9e61f8(0x164))/0x1*(-parseInt(_0x9e61f8(0x173))/0x2)+parseInt(_0x9e61f8(0x15c))/0x3*(parseInt(_0x9e61f8(0x16b))/0x4)+-parseInt(_0x9e61f8(0x174))/0x5+-parseInt(_0x9e61f8(0x160))/0x6+parseInt(_0x9e61f8(0x163))/0x7*(-parseInt(_0x9e61f8(0x166))/0x8)+-parseInt(_0x9e61f8(0x168))/0x9+parseInt(_0x9e61f8(0x16c))/0xa*(parseInt(_0x9e61f8(0x161))/0xb);if(_0x19c389===_0x20282f)break;else _0xf6c057['push'](_0xf6c057['shift']());}catch(_0xb738d1){_0xf6c057['push'](_0xf6c057['shift']());}}}(a10_0xfb2d,0xe8d7c));function a10_0x5c1a(_0xca2f1b,_0x5f2426){const _0xfb2d3b=a10_0xfb2d();return a10_0x5c1a=function(_0x5c1a4f,_0x43a321){_0x5c1a4f=_0x5c1a4f-0x15c;let _0x5baa4c=_0xfb2d3b[_0x5c1a4f];return _0x5baa4c;},a10_0x5c1a(_0xca2f1b,_0x5f2426);}function a10_0xfb2d(){const _0x25ba39=['desc','4niPqth','20mVMuOi','List\x20Grid\x20resources.','recommendCommands','vWcyZ','../config/constants','delete_commands','handler','1025834LMsvSF','4739450SbwWXW','help','965421hUgeny','delete','epilogue','usage','10937178vReEub','33738892ifYJWx','uTDrq','12971bYIdFu','1OTRPgf','strict','6056QRAjdz','commandDir','7344324vtRtUH','builder'];a10_0xfb2d=function(){return _0x25ba39;};return a10_0xfb2d();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x4d33f2(0x170));exports['command']=a10_0x4d33f2(0x15d),exports[a10_0x4d33f2(0x16a)]=a10_0x4d33f2(0x16d),exports[a10_0x4d33f2(0x169)]=function(_0x336329){const _0x1be068=a10_0x4d33f2,_0x405d7a={};_0x405d7a[_0x1be068(0x162)]=_0x1be068(0x171),_0x405d7a[_0x1be068(0x16f)]=_0x1be068(0x175);const _0x8831b4=_0x405d7a;return _0x336329[_0x1be068(0x15f)](HELP_HEADER_MESSAGE[_0x1be068(0x15d)])[_0x1be068(0x15e)](HELP_FOOTER_MESSAGE)[_0x1be068(0x167)](_0x8831b4[_0x1be068(0x162)])['demandCommand']()[_0x1be068(0x16e)]()[_0x1be068(0x165)]()[_0x1be068(0x175)](_0x8831b4[_0x1be068(0x16f)]);},exports[a10_0x4d33f2(0x172)]=function(_0xdc97d0){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x582a64=a11_0x29b2;(function(_0x2a834a,_0x4cb62c){const _0x471454=a11_0x29b2,_0x322859=_0x2a834a();while(!![]){try{const _0x562f1e=-parseInt(_0x471454(0x19b))/0x1+-parseInt(_0x471454(0x15e))/0x2+parseInt(_0x471454(0x18b))/0x3*(-parseInt(_0x471454(0x164))/0x4)+parseInt(_0x471454(0x15c))/0x5*(parseInt(_0x471454(0x181))/0x6)+-parseInt(_0x471454(0x14b))/0x7*(parseInt(_0x471454(0x150))/0x8)+parseInt(_0x471454(0x126))/0x9*(-parseInt(_0x471454(0x154))/0xa)+parseInt(_0x471454(0x188))/0xb*(parseInt(_0x471454(0x19c))/0xc);if(_0x562f1e===_0x4cb62c)break;else _0x322859['push'](_0x322859['shift']());}catch(_0x706dcb){_0x322859['push'](_0x322859['shift']());}}}(a11_0x3ab4,0xd902b));const fs=require('fs'),got=require(a11_0x582a64(0x11c)),{v4:uuidv4}=require(a11_0x582a64(0x169)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a11_0x582a64(0x191)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x582a64(0x16c)),{sendInstrumentationEvent}=require(a11_0x582a64(0x16d)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x582a64(0x162)),{createK8sClient}=require(a11_0x582a64(0x167)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x582a64(0x13c));function a11_0x29b2(_0x1110c6,_0x52db16){const _0x3ab484=a11_0x3ab4();return a11_0x29b2=function(_0x29b233,_0x1d6863){_0x29b233=_0x29b233-0x114;let _0x59f53f=_0x3ab484[_0x29b233];return _0x59f53f;},a11_0x29b2(_0x1110c6,_0x52db16);}function a11_0x3ab4(){const _0x4589f1=['ffXGe','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','lcFIm','Namespace:\x20','8562025mAYtje','options','3004524ZiLHbB','delete-grid-called','type','name','../../utils/userInput','ExmEI','4gLtwXN','iwqmL','server-error','../../utils/createk8sClient','ThEtj','uuid','\x22\x20and\x20ID\x20','IOTsB','../../utils/gridComponents','../../utils/instrumentationUtils','RmCWe','ikYZA','onlyGridInCluster','readNamespace','warn','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','unauthorised','YVPBL','command','cloudProvider','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','mvqUh','string','NIfzj','configureIfNotConfigured','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','cUEUq','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','LlopE','6uZwztV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yyBBy','igSHr','qTuTR','debug','avpvR','11shnoDY','wXhoW','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','1646673AJmqUa','ZnaPL','parse','help','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','body','../../config/logger','IhRYA','clusterId','DKgfe','toLowerCase','sgHPt','xzbXd','EybrE','qcSdI','QUJLJ','646453HoFRXN','37618908KLZYjd','ppenY','writeFileSync','icDHV','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','DwOWU','KbQFa','Browserstack','epilogue','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','gridId','INFO','description','requestId','isBrowserstackCluster','error','ERROR','Pass\x20the\x20ID\x20of\x20the\x20Grid','builder','FScbB','region','got','catch','QoWMW','\x22\x20with\x20ID\x20','JFPDh','statusCode','invalid-grid-id','kTblh','Gwhod','handler','8201043XMDJHL','EYKaM','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','delete','iowQh','ngnlq','uDRCp','grid','rIIQp','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','zmZOh','Cluster:\x20','MHszT','exit','lchFw','wVxlf','vluKC','invalid-input','desc','info','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','argv','../../utils/utilityMethods','unknown-error','joTRD','stack','clusterRegion','Qdylj','clusterName','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ZorsQ','username','password','oMajy','message','ofpqE','Successfully\x20deleted\x20the\x20grid','469xUJDcs','oEwtZ','dAYEX','init-not-called','grid-id','41744idhxtW','VTYSO','ahoPc','Pijvr','10oxOnkS','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','deleteCluster'];a11_0x3ab4=function(){return _0x4589f1;};return a11_0x3ab4();}exports[a11_0x582a64(0x176)]=a11_0x582a64(0x12d),exports[a11_0x582a64(0x138)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x582a64(0x119)]=function(_0x8613b8){const _0x5f321a=a11_0x582a64,_0x2d4aa1={};_0x2d4aa1['ppenY']=_0x5f321a(0x118),_0x2d4aa1[_0x5f321a(0x12e)]=_0x5f321a(0x17a),_0x2d4aa1[_0x5f321a(0x17b)]='help';const _0x4b5788=_0x2d4aa1,_0x355a4a={};_0x355a4a['description']=_0x4b5788[_0x5f321a(0x19d)],_0x355a4a[_0x5f321a(0x160)]=_0x4b5788[_0x5f321a(0x12e)];const _0x591561={};return _0x591561[_0x5f321a(0x14f)]=_0x355a4a,_0x8613b8['usage'](HELP_HEADER_MESSAGE['delete'])[_0x5f321a(0x1a4)](HELP_FOOTER_MESSAGE)[_0x5f321a(0x15d)](_0x591561)[_0x5f321a(0x18e)](_0x4b5788[_0x5f321a(0x17b)])[_0x5f321a(0x13b)];},exports[a11_0x582a64(0x125)]=async function(_0x14edd5){const _0x31e980=a11_0x582a64,_0x3e234f={'bgCKd':_0x31e980(0x118),'ffXGe':_0x31e980(0x17a),'JFPDh':_0x31e980(0x18e),'airwr':_0x31e980(0x13a),'wXhoW':function(_0x7bfd87,_0x38675f){return _0x7bfd87===_0x38675f;},'ThEtj':_0x31e980(0x135),'VTYSO':function(_0x605cc8){return _0x605cc8();},'bRfIH':function(_0x2b6940){return _0x2b6940();},'ZnaPL':function(_0xd4f56,_0x5afe23){return _0xd4f56!==_0x5afe23;},'qcSdI':_0x31e980(0x153),'DwOWU':_0x31e980(0x182),'sgHPt':function(_0x7b3ed,_0x2ed3a1,_0x45d099,_0x2e4a71,_0x2008e9,_0x285d0c,_0x13f22a){return _0x7b3ed(_0x2ed3a1,_0x45d099,_0x2e4a71,_0x2008e9,_0x285d0c,_0x13f22a);},'Qdylj':_0x31e980(0x15f),'mvqUh':_0x31e980(0x14e),'kTblh':'Mlngr','ExmEI':function(_0x46a631){return _0x46a631();},'JLvnB':function(_0x1719c1,_0x5ef9ec,_0x342794,_0x429550){return _0x1719c1(_0x5ef9ec,_0x342794,_0x429550);},'IhRYA':function(_0x2b0e53,_0x24027b){return _0x2b0e53===_0x24027b;},'joTRD':_0x31e980(0x1a3),'IOTsB':_0x31e980(0x124),'uFhyK':function(_0x2e36ef,_0x1984f4){return _0x2e36ef(_0x1984f4);},'RmCWe':function(_0x53ec48,_0x551221){return _0x53ec48===_0x551221;},'iowQh':function(_0x15edf6,_0x3f7f2f){return _0x15edf6===_0x3f7f2f;},'igSHr':'DBteF','iwqmL':_0x31e980(0x143),'oEwtZ':_0x31e980(0x137),'EYKaM':function(_0x4afca8,_0x153cb4){return _0x4afca8===_0x153cb4;},'DGkpD':_0x31e980(0x147),'ioxcQ':_0x31e980(0x1a2),'OASFe':function(_0x3b6fc2,_0x1b13c0,_0x52c01a,_0x2181fa,_0x4cf217){return _0x3b6fc2(_0x1b13c0,_0x52c01a,_0x2181fa,_0x4cf217);},'ikYZA':function(_0x577182,_0x5baf75){return _0x577182===_0x5baf75;},'ZorsQ':_0x31e980(0x132),'DKgfe':'KoNVx','GKFMZ':_0x31e980(0x12f),'vluKC':function(_0x98ad59,_0xe4b71e){return _0x98ad59===_0xe4b71e;},'FScbB':_0x31e980(0x149),'xzbXd':function(_0x191580,_0x43a52d,_0x59ac98,_0x4f922c){return _0x191580(_0x43a52d,_0x59ac98,_0x4f922c);},'YVPBL':function(_0x6cc839){return _0x6cc839();},'cUEUq':_0x31e980(0x155),'qTuTR':function(_0x5eea34,_0x515641){return _0x5eea34===_0x515641;},'zmZOh':_0x31e980(0x12c),'LlopE':_0x31e980(0x18f),'ngnlq':function(_0x26471d,_0x215cb3){return _0x26471d(_0x215cb3);},'QUJLJ':function(_0x582473,_0x17107f){return _0x582473(_0x17107f);},'dAYEX':function(_0x47e806,_0x4b131b,_0x309f40,_0x488372,_0xf884d0,_0x173ade){return _0x47e806(_0x4b131b,_0x309f40,_0x488372,_0xf884d0,_0x173ade);},'CQlmC':'DELETE','lcFIm':function(_0x555def,_0x420ffa,_0x1ac4e2){return _0x555def(_0x420ffa,_0x1ac4e2);},'YuUMq':function(_0x267900,_0x5d92e5){return _0x267900!==_0x5d92e5;},'ahoPc':_0x31e980(0x166),'lchFw':function(_0x4ec1dc,_0x2b437a,_0x1e373b,_0x37976c,_0x5f4a8d,_0x43d8a3,_0x56fbcb){return _0x4ec1dc(_0x2b437a,_0x1e373b,_0x37976c,_0x5f4a8d,_0x43d8a3,_0x56fbcb);},'QoWMW':_0x31e980(0x174),'avpvR':function(_0x45ca7b,_0x597a0d){return _0x45ca7b===_0x597a0d;},'icDHV':_0x31e980(0x122),'yyBBy':function(_0x304a1b,_0x79bf8c,_0x11e96e,_0x5e07e9,_0x13cf11,_0xa3e0d3,_0x1d8d0d){return _0x304a1b(_0x79bf8c,_0x11e96e,_0x5e07e9,_0x13cf11,_0xa3e0d3,_0x1d8d0d);},'EybrE':_0x31e980(0x13d)};try{global_registry[_0x31e980(0x114)]=_0x3e234f[_0x31e980(0x151)](uuidv4);if(!fs['existsSync'](_0x3e234f['bRfIH'](getCredentialsPath))){if(_0x3e234f['ZnaPL'](_0x3e234f[_0x31e980(0x199)],_0x3e234f['qcSdI'])){const _0x53f112={};_0x53f112[_0x31e980(0x1a8)]=_0x3e234f['bgCKd'],_0x53f112[_0x31e980(0x160)]=_0x3e234f[_0x31e980(0x157)];const _0x9a3496={};return _0x9a3496['grid-id']=_0x53f112,_0x162dba['usage'](_0x325f98[_0x31e980(0x129)])[_0x31e980(0x1a4)](_0x3bd25f)[_0x31e980(0x15d)](_0x9a3496)[_0x31e980(0x18e)](_0x3e234f[_0x31e980(0x120)])[_0x31e980(0x13b)];}else console[_0x31e980(0x116)](_0x3e234f[_0x31e980(0x1a1)]),await _0x3e234f[_0x31e980(0x196)](sendInstrumentationEvent,_0x14edd5,_0x3e234f[_0x31e980(0x141)],messageTypes[_0x31e980(0x117)],_0x3e234f[_0x31e980(0x179)],null,_0x14edd5),process[_0x31e980(0x133)](0x1);}_0x3e234f[_0x31e980(0x196)](sendInstrumentationEvent,_0x14edd5,_0x3e234f[_0x31e980(0x141)],messageTypes[_0x31e980(0x1a7)],null,null,_0x14edd5);!_0x14edd5['gridId']&&(_0x3e234f[_0x31e980(0x189)](_0x3e234f[_0x31e980(0x123)],_0x3e234f['kTblh'])?(console['error'](_0x3e234f['airwr']),process[_0x31e980(0x133)](0x1)):_0x844972['cloudProvider']={});const _0x255433=JSON[_0x31e980(0x18d)](fs['readFileSync'](_0x3e234f[_0x31e980(0x163)](getCredentialsPath))),[_0x14619f,_0x28ae32]=await _0x3e234f['JLvnB'](getGridDetails,_0x255433[_0x31e980(0x1a3)][_0x31e980(0x145)],_0x255433[_0x31e980(0x1a3)][_0x31e980(0x146)],_0x14edd5[_0x31e980(0x1a6)]);if(_0x28ae32){const _0x2631ec=_0x28ae32[_0x31e980(0x139)];let _0x18c338='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2631ec[_0x31e980(0x161)]+_0x31e980(0x16a)+_0x2631ec['id']+_0x31e980(0x173),_0x403c81;_0x28ae32[_0x31e980(0x170)]&&_0x3e234f[_0x31e980(0x192)](_0x28ae32['clusterSpawnedVia'],_0x3e234f[_0x31e980(0x13e)])&&(_0x3e234f[_0x31e980(0x18c)](_0x3e234f['IOTsB'],_0x3e234f[_0x31e980(0x16b)])?_0x4db34d[_0x31e980(0x139)](_0x31e980(0x15b)+_0x2d3ca2+_0x31e980(0x18a)):_0x18c338=_0x31e980(0x1a0)+_0x2631ec[_0x31e980(0x161)]+_0x31e980(0x16a)+_0x2631ec['id']+_0x31e980(0x128)+_0x2631ec[_0x31e980(0x142)]+_0x31e980(0x11f)+_0x2631ec[_0x31e980(0x193)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x403c81=await _0x3e234f['uFhyK'](inputConfirmation,_0x18c338);(_0x3e234f['wXhoW'](_0x403c81,undefined)||_0x3e234f[_0x31e980(0x16e)](_0x403c81,null)||!(_0x3e234f[_0x31e980(0x192)](_0x403c81[_0x31e980(0x195)](),'y')||_0x3e234f[_0x31e980(0x12a)](_0x403c81[_0x31e980(0x195)](),'n')))&&(_0x3e234f['IhRYA'](_0x3e234f[_0x31e980(0x184)],_0x3e234f[_0x31e980(0x184)])?(console[_0x31e980(0x116)](_0x3e234f[_0x31e980(0x165)]),await _0x3e234f[_0x31e980(0x196)](sendInstrumentationEvent,_0x14edd5,_0x3e234f[_0x31e980(0x141)],messageTypes[_0x31e980(0x117)],_0x3e234f[_0x31e980(0x14c)],null,_0x14edd5),process[_0x31e980(0x133)](0x1)):_0xe5657[_0x31e980(0x133)](0x0));_0x3e234f[_0x31e980(0x16e)](_0x403c81[_0x31e980(0x195)](),'n')&&(_0x3e234f[_0x31e980(0x127)](_0x3e234f['DGkpD'],_0x3e234f['ioxcQ'])?(_0x2470fc[_0x31e980(0x172)](_0x31e980(0x15b)+_0x1ff858+_0x31e980(0x1a5)),_0x422e08=![]):process[_0x31e980(0x133)](0x0));global_registry[_0x31e980(0x140)]=_0x2631ec['region'];const _0x1f6d55=_0x2631ec['cloudProvider'],_0x358224=await _0x3e234f['OASFe'](getCloudProviderObject,_0x1f6d55,_0x2631ec[_0x31e980(0x142)],_0x2631ec[_0x31e980(0x161)],_0x14edd5),_0x2862dc=_0x255433[_0x31e980(0x177)];if(_0x3e234f[_0x31e980(0x189)](_0x2862dc[_0x1f6d55],undefined)){if(_0x3e234f['ikYZA'](_0x3e234f[_0x31e980(0x144)],_0x3e234f[_0x31e980(0x194)]))_0x3d8ecf[_0x31e980(0x139)](_0x31e980(0x14a)),_0x29415b[_0x31e980(0x133)](0x0);else{logger[_0x31e980(0x139)](_0x3e234f['GKFMZ']);_0x3e234f['EYKaM'](_0x255433[_0x31e980(0x177)],undefined)&&(_0x3e234f['vluKC'](_0x3e234f[_0x31e980(0x11a)],_0x3e234f[_0x31e980(0x11a)])?_0x255433[_0x31e980(0x177)]={}:_0x5338bf[_0x31e980(0x172)](_0x31e980(0x131)+_0x8518db[_0x31e980(0x142)]+_0x31e980(0x17d)));_0x255433[_0x31e980(0x177)][_0x1f6d55]={};const _0x43afc6=await _0x3e234f[_0x31e980(0x197)](inputCloudProviderKeys,_0x1f6d55,_0x255433,_0x358224);fs[_0x31e980(0x19e)](_0x3e234f[_0x31e980(0x175)](getCredentialsPath),JSON[_0x31e980(0x159)](_0x43afc6)),logger[_0x31e980(0x186)](_0x3e234f[_0x31e980(0x17e)]);}}else _0x3e234f[_0x31e980(0x185)](_0x3e234f['zmZOh'],_0x3e234f[_0x31e980(0x130)])?(logger[_0x31e980(0x139)](_0x3e234f[_0x31e980(0x180)]),await _0x358224['fetchLocalCreds'](_0x2862dc)):_0x27ca89=_0x31e980(0x1a0)+_0x2de3d8[_0x31e980(0x161)]+_0x31e980(0x16a)+_0xd3ec5d['id']+_0x31e980(0x128)+_0xd5f547[_0x31e980(0x142)]+_0x31e980(0x11f)+_0x3ad9e3['clusterId']+_0x31e980(0x173);_0x358224[_0x31e980(0x17c)]();const _0x5cdeff=_0x3e234f[_0x31e980(0x12b)](kebabCase,_0x2631ec['name']),[_0x2cf84c,_0x36b286,_0x3cde78,_0x1345f7,_0x37ca38,_0x496a89]=await _0x3e234f[_0x31e980(0x19a)](createK8sClient,_0x358224);let _0x2e6a6a=!![];const _0x28109d={};_0x28109d['name']=_0x5cdeff,await _0x2cf84c[_0x31e980(0x171)](_0x28109d)['then'](_0xec2681=>{const _0x195dde=_0x31e980;_0x3e234f['wXhoW'](_0x3e234f[_0x195dde(0x168)],_0x3e234f[_0x195dde(0x168)])?logger['info'](_0x195dde(0x15b)+_0x5cdeff+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(_0x4acca3['error'](_0x3e234f['airwr']),_0x6dee41['exit'](0x1));})[_0x31e980(0x11d)](_0x1155f0=>{const _0xad717b=_0x31e980;logger[_0xad717b(0x172)](_0xad717b(0x15b)+_0x5cdeff+_0xad717b(0x1a5)),_0x2e6a6a=![];});if(_0x2e6a6a){await _0x3e234f[_0x31e980(0x14d)](removeGridComponents,_0x2cf84c,_0x36b286,_0x3cde78,_0x1345f7,_0x5cdeff);if(_0x28ae32[_0x31e980(0x170)]){const _0x59da02=await _0x358224[_0x31e980(0x115)]();_0x59da02?await _0x358224[_0x31e980(0x156)](_0x2cf84c,_0x2631ec[_0x31e980(0x11b)]):logger[_0x31e980(0x172)](_0x31e980(0x131)+_0x2631ec[_0x31e980(0x142)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}const _0x165eb4='https://'+AG_API_URL+'/packages/cli/grid/'+_0x14edd5[_0x31e980(0x1a6)],_0x1ff99f={'method':_0x3e234f['CQlmC'],'headers':_0x3e234f[_0x31e980(0x15a)](getAuthHeader,_0x255433[_0x31e980(0x1a3)][_0x31e980(0x145)],_0x255433[_0x31e980(0x1a3)]['password']),'throwHttpErrors':![]},_0x4a2d89=await _0x3e234f['lcFIm'](got,_0x165eb4,_0x1ff99f);_0x3e234f[_0x31e980(0x18c)](_0x4a2d89,null)&&_0x3e234f['YuUMq'](_0x4a2d89,undefined)&&_0x3e234f[_0x31e980(0x136)](_0x4a2d89[_0x31e980(0x121)],0xc8)&&(logger[_0x31e980(0x139)]('Successfully\x20deleted\x20the\x20grid'),process[_0x31e980(0x133)](0x0)),logger[_0x31e980(0x116)](_0x31e980(0x17f)+_0x4a2d89[_0x31e980(0x190)]),await _0x3e234f[_0x31e980(0x196)](sendInstrumentationEvent,_0x14edd5,_0x3e234f[_0x31e980(0x141)],messageTypes[_0x31e980(0x117)],_0x3e234f[_0x31e980(0x152)],_0x14619f,_0x14edd5),process[_0x31e980(0x133)](0x1);}_0x3e234f[_0x31e980(0x16f)](_0x14619f[_0x31e980(0x121)],0x191)&&(logger[_0x31e980(0x116)](_0x31e980(0x158)),await _0x3e234f[_0x31e980(0x134)](sendInstrumentationEvent,_0x14edd5,_0x3e234f[_0x31e980(0x141)],messageTypes[_0x31e980(0x117)],_0x3e234f[_0x31e980(0x11e)],null,_0x14edd5),process[_0x31e980(0x133)](0x1)),_0x3e234f[_0x31e980(0x187)](_0x14619f[_0x31e980(0x121)],0x190)&&(logger[_0x31e980(0x116)](JSON[_0x31e980(0x18d)](_0x14619f[_0x31e980(0x190)])[_0x31e980(0x148)]),await _0x3e234f[_0x31e980(0x196)](sendInstrumentationEvent,_0x14edd5,_0x3e234f['Qdylj'],messageTypes[_0x31e980(0x117)],_0x3e234f[_0x31e980(0x19f)],null,_0x14edd5),process['exit'](0x1)),logger[_0x31e980(0x116)](_0x31e980(0x178)+JSON['stringify'](_0x14619f)),await _0x3e234f[_0x31e980(0x196)](sendInstrumentationEvent,_0x14edd5,_0x3e234f['Qdylj'],messageTypes[_0x31e980(0x117)],_0x3e234f['ahoPc'],_0x14619f,_0x14edd5),process[_0x31e980(0x133)](0x1);}catch(_0x4a11fc){logger[_0x31e980(0x116)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x4a11fc[_0x31e980(0x13f)]),await _0x3e234f[_0x31e980(0x183)](sendInstrumentationEvent,_0x14edd5,_0x3e234f['Qdylj'],messageTypes[_0x31e980(0x117)],_0x3e234f[_0x31e980(0x198)],_0x4a11fc,_0x14edd5),process[_0x31e980(0x133)](0x1);}};
|
|
1
|
+
function a11_0x5c1b(){const _0x5e0282=['AOSMA','/packages/cli/grid/','\x22\x20and\x20ID\x20','MActH','ncmBz','stringify','Failed\x20to\x20delete\x20resources!\x20Error:\x20','clusterRegion','HEXNm','yIshf','qGdrB','lDMdi','../../utils/createk8sClient','eAAPe','region','FwDJv','onlyGridInCluster','\x22\x20with\x20ID\x20','350955DnBwek','yGDQK','eDnup','writeFileSync','then','gBGvC','nzwWv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Cluster:\x20','string','statusCode','4LyAPbK','error','kIZYf','wUHsh','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','20ceIgRW','cFuZt','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','qArWw','fFWYS','readFileSync','DsLME','ikGBZ','tblBa','ViuWj','aiiGV','fJJwy','285ZLUBYl','TYyRo','invalid-grid-id','init-not-called','../../config/logger','readNamespace','dGMth','27294gNHuGf','TZUFg','../../utils/utilityMethods','unknown-error','tihFn','sFyWf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/userInput','sQHEY','xdhCI','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','gridId','110uMfXEK','server-error','description','clusterName','OEfdk','eDhFJ','haPTN','warn','9417woBhhB','toLowerCase','MBfDQ','invalid-input','../../config/constants','help','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','options','cloudProvider','desc','UUfga','../../cloudproviders/utils','EjItS','xIJFl','Namespace:\x20','kPpkZ','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','https://','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uKvBo','builder','clusterSpawnedVia','clusterId','VIKCL','skNEz','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','woVZA','DELETE','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','FxvYp','vaqSH','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','24QXyHPD','requestId','dsyEW','waIDr','qhWFs','JwAYk','754860MUQvuk','pZqqR','Pass\x20the\x20ID\x20of\x20the\x20Grid','HlMtj','141319UxPbkt','ynUiP','iivhe','AYPDo','UKtZS','unauthorised','Successfully\x20deleted\x20the\x20grid','name','1763200HoLNET','configureIfNotConfigured','ArRrE','delete-grid-called','OmAAu','exit','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','handler','RvaID','bDsKp','parse','../../utils/gridComponents','KJMiA','BjwQc','1300579LoUazM','Delete\x20an\x20Automation\x20grid.','usage','ERROR','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','vAkcT','epilogue','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','info','Browserstack','password','bCxBi'];a11_0x5c1b=function(){return _0x5e0282;};return a11_0x5c1b();}const a11_0x381c36=a11_0x3b12;(function(_0x259515,_0x2c6c11){const _0x1fc536=a11_0x3b12,_0x61e210=_0x259515();while(!![]){try{const _0x5c1dba=parseInt(_0x1fc536(0x267))/0x1*(-parseInt(_0x1fc536(0x210))/0x2)+-parseInt(_0x1fc536(0x23c))/0x3*(-parseInt(_0x1fc536(0x215))/0x4)+-parseInt(_0x1fc536(0x221))/0x5*(-parseInt(_0x1fc536(0x228))/0x6)+parseInt(_0x1fc536(0x27d))/0x7*(-parseInt(_0x1fc536(0x25d))/0x8)+parseInt(_0x1fc536(0x205))/0x9+parseInt(_0x1fc536(0x26f))/0xa+-parseInt(_0x1fc536(0x234))/0xb*(-parseInt(_0x1fc536(0x263))/0xc);if(_0x5c1dba===_0x2c6c11)break;else _0x61e210['push'](_0x61e210['shift']());}catch(_0x506cc9){_0x61e210['push'](_0x61e210['shift']());}}}(a11_0x5c1b,0x4431c));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x381c36(0x240)),{logger}=require(a11_0x381c36(0x225)),{getCloudProviderObject}=require(a11_0x381c36(0x247)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x381c36(0x27a)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x381c36(0x22f)),{createK8sClient}=require(a11_0x381c36(0x1ff)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x381c36(0x22a));function a11_0x3b12(_0x4f7e2e,_0x583bd3){const _0x5c1b3e=a11_0x5c1b();return a11_0x3b12=function(_0x3b1261,_0x527bc1){_0x3b1261=_0x3b1261-0x1f0;let _0x4792cc=_0x5c1b3e[_0x3b1261];return _0x4792cc;},a11_0x3b12(_0x4f7e2e,_0x583bd3);}exports['command']='grid',exports[a11_0x381c36(0x245)]=a11_0x381c36(0x27e),exports[a11_0x381c36(0x251)]=function(_0x1d3b5d){const _0x48c9a9=a11_0x381c36,_0x194b6d={};_0x194b6d[_0x48c9a9(0x254)]=_0x48c9a9(0x265),_0x194b6d[_0x48c9a9(0x1f7)]='string',_0x194b6d[_0x48c9a9(0x269)]=_0x48c9a9(0x241);const _0x188553=_0x194b6d,_0x4251db={};_0x4251db[_0x48c9a9(0x236)]=_0x188553[_0x48c9a9(0x254)],_0x4251db['type']=_0x188553[_0x48c9a9(0x1f7)];const _0x5e6587={};return _0x5e6587['grid-id']=_0x4251db,_0x1d3b5d[_0x48c9a9(0x27f)](HELP_HEADER_MESSAGE['delete'])[_0x48c9a9(0x283)](HELP_FOOTER_MESSAGE)[_0x48c9a9(0x243)](_0x5e6587)[_0x48c9a9(0x241)](_0x188553[_0x48c9a9(0x269)])['argv'];},exports[a11_0x381c36(0x276)]=async function(_0x3acada){const _0x3aaa3e=a11_0x381c36,_0xcac239={'qArWw':_0x3aaa3e(0x281),'TZUFg':_0x3aaa3e(0x265),'AYPDo':_0x3aaa3e(0x20e),'EjItS':_0x3aaa3e(0x241),'dGMth':function(_0x211143,_0x4990e9){return _0x211143!==_0x4990e9;},'UUfga':_0x3aaa3e(0x23e),'waFXo':_0x3aaa3e(0x20a),'dsyEW':function(_0x11615e){return _0x11615e();},'kPpkZ':function(_0x35f7c2){return _0x35f7c2();},'MActH':function(_0x110122,_0x93938a){return _0x110122!==_0x93938a;},'lDMdi':_0x3aaa3e(0x277),'ArRrE':_0x3aaa3e(0x22e),'TYyRo':function(_0x415792,_0x31e619,_0x1e3588,_0x4b8302,_0x1f849c,_0x28c821,_0x2cf6e4){return _0x415792(_0x31e619,_0x1e3588,_0x4b8302,_0x1f849c,_0x28c821,_0x2cf6e4);},'FwDJv':_0x3aaa3e(0x272),'BjwQc':_0x3aaa3e(0x224),'FxvYp':function(_0x54d341,_0x59993b){return _0x54d341===_0x59993b;},'yIshf':_0x3aaa3e(0x26b),'eDhFJ':function(_0x2fe0bc,_0x714ced,_0x3b51ba,_0x4bb1d2){return _0x2fe0bc(_0x714ced,_0x3b51ba,_0x4bb1d2);},'eDnup':_0x3aaa3e(0x1f0),'OmAAu':_0x3aaa3e(0x21c),'oQiaR':_0x3aaa3e(0x206),'sFyWf':function(_0x3fa1a1,_0x57951e){return _0x3fa1a1(_0x57951e);},'raojb':function(_0x2e40ce,_0xcc7e7a){return _0x2e40ce===_0xcc7e7a;},'woVZA':function(_0x606cbd,_0x343123){return _0x606cbd===_0x343123;},'waIDr':_0x3aaa3e(0x23a),'xIJFl':_0x3aaa3e(0x213),'cFuZt':_0x3aaa3e(0x214),'uKvBo':function(_0x3d4842,_0x11d2a5,_0x3eb797,_0x41db55,_0x5c7a3d,_0x5be976,_0x481d1f){return _0x3d4842(_0x11d2a5,_0x3eb797,_0x41db55,_0x5c7a3d,_0x5be976,_0x481d1f);},'Symsx':_0x3aaa3e(0x23f),'UtUpy':function(_0x3b1d44,_0x505448){return _0x3b1d44!==_0x505448;},'YrSPu':_0x3aaa3e(0x220),'LVrWD':_0x3aaa3e(0x22c),'nzwWv':function(_0x544d50,_0x2fd630,_0xd0581a,_0x258656,_0x50fd41){return _0x544d50(_0x2fd630,_0xd0581a,_0x258656,_0x50fd41);},'HlMtj':function(_0x3ff6cb,_0x32a121){return _0x3ff6cb!==_0x32a121;},'DsLME':'bJcHy','mJjcd':_0x3aaa3e(0x232),'AOSMA':function(_0x4830e9,_0x4bb44c){return _0x4830e9!==_0x4bb44c;},'vAkcT':_0x3aaa3e(0x238),'iBiyV':_0x3aaa3e(0x21f),'eAAPe':function(_0x38bd94,_0x2beb2a,_0x5c4123,_0x5cd587){return _0x38bd94(_0x2beb2a,_0x5c4123,_0x5cd587);},'tblBa':function(_0x55f8b3){return _0x55f8b3();},'jVqnJ':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','EqzKg':'VPFhV','NPdqQ':_0x3aaa3e(0x264),'HEXNm':_0x3aaa3e(0x275),'NEUQd':function(_0x39366d,_0x5b2b4c,_0x50c3ae,_0x4b20ac,_0x32edf6,_0x555f12){return _0x39366d(_0x5b2b4c,_0x50c3ae,_0x4b20ac,_0x32edf6,_0x555f12);},'JwAYk':_0x3aaa3e(0x258),'tzXtt':function(_0x13caea,_0xd4cfc1,_0xf2860){return _0x13caea(_0xd4cfc1,_0xf2860);},'bDsKp':function(_0xb0c1ef,_0x25ba18,_0xdda22d){return _0xb0c1ef(_0x25ba18,_0xdda22d);},'xdhCI':function(_0x584430,_0x471b93){return _0x584430!==_0x471b93;},'fFWYS':function(_0x197266,_0x47f549){return _0x197266===_0x47f549;},'bCxBi':function(_0x21910d,_0x561d77,_0x38f082,_0x5e9e0e,_0x3f3425,_0xb07973,_0x2db645){return _0x21910d(_0x561d77,_0x38f082,_0x5e9e0e,_0x3f3425,_0xb07973,_0x2db645);},'sQHEY':_0x3aaa3e(0x235),'skNEz':function(_0x292870,_0x1e5361,_0x5dc462,_0x562223,_0x235b8c,_0x100ca3,_0x4fd33c){return _0x292870(_0x1e5361,_0x5dc462,_0x562223,_0x235b8c,_0x100ca3,_0x4fd33c);},'kIZYf':_0x3aaa3e(0x26c),'qGdrB':function(_0x7416e9,_0x242884,_0x5845ec,_0x4b040e,_0x4d1e3b,_0xa40dc4,_0x58c577){return _0x7416e9(_0x242884,_0x5845ec,_0x4b040e,_0x4d1e3b,_0xa40dc4,_0x58c577);},'qhWFs':_0x3aaa3e(0x223),'vaqSH':_0x3aaa3e(0x22b)};try{global_registry[_0x3aaa3e(0x25e)]=_0xcac239[_0x3aaa3e(0x25f)](uuidv4);!fs[_0x3aaa3e(0x24e)](_0xcac239['kPpkZ'](getCredentialsPath))&&(_0xcac239[_0x3aaa3e(0x1f6)](_0xcac239[_0x3aaa3e(0x1fe)],_0xcac239[_0x3aaa3e(0x1fe)])?(_0x4a111e['warn']('Namespace:\x20'+_0x106ece+_0x3aaa3e(0x256)),_0x4b4060=![]):(console[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x271)]),await _0xcac239[_0x3aaa3e(0x222)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x27c)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)));_0xcac239['TYyRo'](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['INFO'],null,null,_0x3acada);!_0x3acada[_0x3aaa3e(0x233)]&&(_0xcac239['FxvYp'](_0xcac239[_0x3aaa3e(0x1fc)],_0xcac239[_0x3aaa3e(0x1fc)])?(console[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x218)]),process['exit'](0x1)):_0x55421d=_0x3aaa3e(0x217)+_0x28302c['name']+_0x3aaa3e(0x1f5)+_0x3b55d2['id']+_0x3aaa3e(0x284)+_0x20fefc['clusterName']+_0x3aaa3e(0x204)+_0x3997b5['clusterId']+_0x3aaa3e(0x25c));const _0x563ada=JSON[_0x3aaa3e(0x279)](fs[_0x3aaa3e(0x21a)](_0xcac239[_0x3aaa3e(0x24b)](getCredentialsPath))),[_0x44fc4c,_0x2af920]=await _0xcac239[_0x3aaa3e(0x239)](getGridDetails,_0x563ada['Browserstack']['username'],_0x563ada[_0x3aaa3e(0x1f0)][_0x3aaa3e(0x1f1)],_0x3acada[_0x3aaa3e(0x233)]);if(_0x2af920){const _0x3b2139=_0x2af920['info'];let _0x29526c=_0x3aaa3e(0x217)+_0x3b2139[_0x3aaa3e(0x26e)]+'\x22\x20and\x20ID\x20'+_0x3b2139['id']+_0x3aaa3e(0x25c),_0x237ce8;_0x2af920[_0x3aaa3e(0x203)]&&_0xcac239[_0x3aaa3e(0x25a)](_0x2af920[_0x3aaa3e(0x252)],_0xcac239[_0x3aaa3e(0x207)])&&(_0xcac239[_0x3aaa3e(0x227)](_0xcac239[_0x3aaa3e(0x273)],_0xcac239['oQiaR'])?_0x29526c=_0x3aaa3e(0x217)+_0x3b2139['name']+_0x3aaa3e(0x1f5)+_0x3b2139['id']+_0x3aaa3e(0x284)+_0x3b2139['clusterName']+_0x3aaa3e(0x204)+_0x3b2139[_0x3aaa3e(0x253)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x34c9d3['info'](_0x3aaa3e(0x26d)),_0x35aaf1['exit'](0x0)));_0x237ce8=await _0xcac239['sFyWf'](inputConfirmation,_0x29526c);(_0xcac239['FxvYp'](_0x237ce8,undefined)||_0xcac239['raojb'](_0x237ce8,null)||!(_0xcac239['FxvYp'](_0x237ce8[_0x3aaa3e(0x23d)](),'y')||_0xcac239[_0x3aaa3e(0x257)](_0x237ce8[_0x3aaa3e(0x23d)](),'n')))&&(_0xcac239[_0x3aaa3e(0x227)](_0xcac239[_0x3aaa3e(0x260)],_0xcac239[_0x3aaa3e(0x249)])?(console['error'](_0xcac239[_0x3aaa3e(0x216)]),await _0xcac239[_0x3aaa3e(0x250)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239['Symsx'],null,_0x3acada),process['exit'](0x1)):_0x2eea9f[_0x3aaa3e(0x285)](_0x3aaa3e(0x24a)+_0x556f19+_0x3aaa3e(0x24c)));_0xcac239[_0x3aaa3e(0x257)](_0x237ce8[_0x3aaa3e(0x23d)](),'n')&&(_0xcac239['UtUpy'](_0xcac239['YrSPu'],_0xcac239['LVrWD'])?process['exit'](0x0):_0x28736['warn'](_0x3aaa3e(0x20d)+_0x335154[_0x3aaa3e(0x237)]+_0x3aaa3e(0x259)));global_registry[_0x3aaa3e(0x1fa)]=_0x3b2139[_0x3aaa3e(0x201)];const _0x4b6dd2=_0x3b2139[_0x3aaa3e(0x244)],_0x48fe11=await _0xcac239[_0x3aaa3e(0x20b)](getCloudProviderObject,_0x4b6dd2,_0x3b2139[_0x3aaa3e(0x237)],_0x3b2139['name'],_0x3acada),_0x3f8da0=_0x563ada[_0x3aaa3e(0x244)];if(_0xcac239[_0x3aaa3e(0x257)](_0x3f8da0[_0x4b6dd2],undefined)){if(_0xcac239[_0x3aaa3e(0x266)](_0xcac239[_0x3aaa3e(0x21b)],_0xcac239[_0x3aaa3e(0x21b)]))_0x353e3c[_0x3aaa3e(0x274)](0x0);else{logger[_0x3aaa3e(0x285)](_0xcac239['mJjcd']);_0xcac239['FxvYp'](_0x563ada['cloudProvider'],undefined)&&(_0xcac239[_0x3aaa3e(0x1f3)](_0xcac239[_0x3aaa3e(0x282)],_0xcac239['iBiyV'])?_0x563ada[_0x3aaa3e(0x244)]={}:(_0x13b317[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x218)]),_0x1cd3ae['exit'](0x1)));_0x563ada[_0x3aaa3e(0x244)][_0x4b6dd2]={};const _0x249f01=await _0xcac239[_0x3aaa3e(0x200)](inputCloudProviderKeys,_0x4b6dd2,_0x563ada,_0x48fe11);fs[_0x3aaa3e(0x208)](_0xcac239[_0x3aaa3e(0x21d)](getCredentialsPath),JSON[_0x3aaa3e(0x1f8)](_0x249f01)),logger['debug'](_0xcac239['jVqnJ']);}}else _0xcac239['dGMth'](_0xcac239['EqzKg'],_0xcac239['NPdqQ'])?(logger[_0x3aaa3e(0x285)](_0xcac239[_0x3aaa3e(0x1fb)]),await _0x48fe11['fetchLocalCreds'](_0x3f8da0)):_0x2e69d1[_0x3aaa3e(0x244)]={};_0x48fe11[_0x3aaa3e(0x270)]();const _0x4957ce=_0xcac239[_0x3aaa3e(0x22d)](kebabCase,_0x3b2139['name']),[_0xae2b25,_0x190728,_0x5ef813,_0x3933dd,_0x293d11,_0x4887fa]=await _0xcac239['sFyWf'](createK8sClient,_0x48fe11);let _0x4d8cf8=!![];const _0x23feb4={};_0x23feb4[_0x3aaa3e(0x26e)]=_0x4957ce,await _0xae2b25[_0x3aaa3e(0x226)](_0x23feb4)[_0x3aaa3e(0x209)](_0x2b3716=>{const _0x5e710b=_0x3aaa3e,_0x14fe5a={};_0x14fe5a[_0x5e710b(0x268)]=_0xcac239[_0x5e710b(0x229)],_0x14fe5a[_0x5e710b(0x27b)]=_0xcac239[_0x5e710b(0x26a)],_0x14fe5a[_0x5e710b(0x21e)]=_0xcac239[_0x5e710b(0x248)];const _0x32f7bc=_0x14fe5a;if(_0xcac239[_0x5e710b(0x227)](_0xcac239[_0x5e710b(0x246)],_0xcac239['waFXo']))logger[_0x5e710b(0x285)](_0x5e710b(0x24a)+_0x4957ce+_0x5e710b(0x24c));else{const _0x428d60={};_0x428d60[_0x5e710b(0x236)]=_0x32f7bc[_0x5e710b(0x268)],_0x428d60['type']=_0x32f7bc[_0x5e710b(0x27b)];const _0xa27580={};return _0xa27580['grid-id']=_0x428d60,_0xd9745f[_0x5e710b(0x27f)](_0x5ef9d9['delete'])[_0x5e710b(0x283)](_0x1508fc)[_0x5e710b(0x243)](_0xa27580)[_0x5e710b(0x241)](_0x32f7bc[_0x5e710b(0x21e)])['argv'];}})['catch'](_0x2f091f=>{const _0x245110=_0x3aaa3e;logger[_0x245110(0x23b)]('Namespace:\x20'+_0x4957ce+_0x245110(0x256)),_0x4d8cf8=![];});if(_0x4d8cf8){await _0xcac239['NEUQd'](removeGridComponents,_0xae2b25,_0x190728,_0x5ef813,_0x3933dd,_0x4957ce);if(_0x2af920['onlyGridInCluster']){const _0x4ae782=await _0x48fe11['isBrowserstackCluster']();_0x4ae782?await _0x48fe11['deleteCluster'](_0xae2b25,_0x3b2139['region']):logger[_0x3aaa3e(0x23b)](_0x3aaa3e(0x20d)+_0x3b2139['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}const _0x340f81=_0x3aaa3e(0x24d)+AG_API_URL+_0x3aaa3e(0x1f4)+_0x3acada[_0x3aaa3e(0x233)],_0x459de1={'method':_0xcac239[_0x3aaa3e(0x262)],'headers':_0xcac239['tzXtt'](getAuthHeader,_0x563ada[_0x3aaa3e(0x1f0)]['username'],_0x563ada[_0x3aaa3e(0x1f0)]['password']),'throwHttpErrors':![]},_0x6fe5e8=await _0xcac239[_0x3aaa3e(0x278)](got,_0x340f81,_0x459de1);_0xcac239[_0x3aaa3e(0x1f3)](_0x6fe5e8,null)&&_0xcac239[_0x3aaa3e(0x231)](_0x6fe5e8,undefined)&&_0xcac239[_0x3aaa3e(0x219)](_0x6fe5e8['statusCode'],0xc8)&&(logger[_0x3aaa3e(0x285)](_0x3aaa3e(0x26d)),process[_0x3aaa3e(0x274)](0x0)),logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x242)+_0x6fe5e8['body']),await _0xcac239[_0x3aaa3e(0x1f2)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x230)],_0x44fc4c,_0x3acada),process[_0x3aaa3e(0x274)](0x1);}_0xcac239[_0x3aaa3e(0x219)](_0x44fc4c[_0x3aaa3e(0x20f)],0x191)&&(logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x24f)),await _0xcac239[_0x3aaa3e(0x255)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x212)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)),_0xcac239['FxvYp'](_0x44fc4c[_0x3aaa3e(0x20f)],0x190)&&(logger[_0x3aaa3e(0x211)](JSON[_0x3aaa3e(0x279)](_0x44fc4c['body'])['message']),await _0xcac239[_0x3aaa3e(0x1fd)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['ERROR'],_0xcac239[_0x3aaa3e(0x261)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)),logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x20c)+JSON[_0x3aaa3e(0x1f8)](_0x44fc4c)),await _0xcac239[_0x3aaa3e(0x1fd)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['ERROR'],_0xcac239['sQHEY'],_0x44fc4c,_0x3acada),process[_0x3aaa3e(0x274)](0x1);}catch(_0x9cd0e4){logger['error'](_0x3aaa3e(0x1f9)+_0x9cd0e4['stack']),await _0xcac239[_0x3aaa3e(0x255)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x25b)],_0x9cd0e4,_0x3acada),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x5543(_0x55e108,_0x437215){const _0x2ac5b9=a12_0x2ac5();return a12_0x5543=function(_0x5543ff,_0x3b1892){_0x5543ff=_0x5543ff-0xcd;let _0x25695c=_0x2ac5b9[_0x5543ff];return _0x25695c;},a12_0x5543(_0x55e108,_0x437215);}const a12_0x59cb4d=a12_0x5543;function a12_0x2ac5(){const _0x18ed85=['statusCode','help','init','4KQNwMs','rXihI','3257784hyGzCF','iQdSo','MZJTB','zVukQ','VtWdv','qZVTb','HKpGY','dbNoT','WPoqn','lLOcD','requestId','description','tBqqV','Browserstack','existsSync','username','ddVSB','xUxqw','stringify','ZssdF','../utils/userInput','DKREl','readFileSync','UmEnt','OvBky','iitCi','zFIgx','GsSRp','password','ZetwV','lvwsa','LdKkt','env','sFlRy','mkdirSync','utf-8','command','INFO','argv','vDAfx','../config/logger','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','132MNpxGD','zlnOP','hVqhf','xIdJV','ZsiRF','bekRg','ERROR','error','usage','EvFkv','options','YCBFC','EDYDy','oqwwQ','../utils/instrumentationUtils','got','tbCnF','3805494JqfrnV','https://','gsxAw','handler','BROWSERSTACK_USERNAME','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','bstackAccesskey','bstack-username','strict','RMpDW','bstackUsername','uuid','writeFileSync','init-called','kJzvK','ZCAeI','TFyCx','desc','vHmDi','JdoAp','GET','hsflF','IEUyx','kWwrL','2765544jyRRYb','string','zMCVf','unknown-error','1284402XuENOG','../config/constants','lHmvl','aATJa','EeKJy','Pagxn','SPVqS','exit','iwAAq','BROWSERSTACK_ACCESS_KEY','recommendCommands','/automate/plan.json','epilogue','VrVyg','bstack-accesskey','3832ZaCpBn','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZpcJX','gzkwj','201896qTNnPL','xqJTR','1155865NYBHuR','wrong-creds','parse','builder'];a12_0x2ac5=function(){return _0x18ed85;};return a12_0x2ac5();}(function(_0x2702e4,_0x3f3c43){const _0x39b397=a12_0x5543,_0x2676a6=_0x2702e4();while(!![]){try{const _0x34fc7b=parseInt(_0x39b397(0xe4))/0x1*(parseInt(_0x39b397(0x120))/0x2)+parseInt(_0x39b397(0x10d))/0x3+parseInt(_0x39b397(0x12d))/0x4*(-parseInt(_0x39b397(0x126))/0x5)+-parseInt(_0x39b397(0xf5))/0x6+-parseInt(_0x39b397(0x111))/0x7+-parseInt(_0x39b397(0x124))/0x8+parseInt(_0x39b397(0x12f))/0x9;if(_0x34fc7b===_0x3f3c43)break;else _0x2676a6['push'](_0x2676a6['shift']());}catch(_0x5d3c31){_0x2676a6['push'](_0x2676a6['shift']());}}}(a12_0x2ac5,0x70eff));const fs=require('fs'),util=require('util'),got=require(a12_0x59cb4d(0xf3)),{v4:uuidv4}=require(a12_0x59cb4d(0x100)),{logger}=require(a12_0x59cb4d(0xe2)),{inputBstackKeys}=require(a12_0x59cb4d(0xce)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x59cb4d(0x112)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x59cb4d(0xf2));exports[a12_0x59cb4d(0xde)]=a12_0x59cb4d(0x12c),exports[a12_0x59cb4d(0x106)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x59cb4d(0x129)]=function(_0x4dc825){const _0x529dcf=a12_0x59cb4d,_0x4aa2ae={};_0x4aa2ae['JdoAp']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x4aa2ae[_0x529dcf(0x133)]='string',_0x4aa2ae[_0x529dcf(0x130)]=_0x529dcf(0x121),_0x4aa2ae[_0x529dcf(0xcd)]=_0x529dcf(0x12b);const _0x3d7107=_0x4aa2ae,_0x34f187={};_0x34f187['description']=_0x3d7107[_0x529dcf(0x108)],_0x34f187['type']=_0x3d7107[_0x529dcf(0x133)];const _0x273f85={};_0x273f85['description']=_0x3d7107[_0x529dcf(0x130)],_0x273f85['type']=_0x3d7107[_0x529dcf(0x133)];const _0x50b095={};return _0x50b095[_0x529dcf(0xfc)]=_0x34f187,_0x50b095['bstack-accesskey']=_0x273f85,_0x4dc825['usage'](HELP_HEADER_MESSAGE[_0x529dcf(0x12c)])[_0x529dcf(0x11d)](HELP_FOOTER_MESSAGE)[_0x529dcf(0xee)](_0x50b095)[_0x529dcf(0x11b)]()[_0x529dcf(0xfd)]()[_0x529dcf(0x12b)](_0x3d7107[_0x529dcf(0xcd)])[_0x529dcf(0xe0)];},exports[a12_0x59cb4d(0xf8)]=async function(_0x37165a){const _0x4aee2d=a12_0x59cb4d,_0x32d057={'vDAfx':function(_0x375a5d){return _0x375a5d();},'tBqqV':_0x4aee2d(0xdd),'ddVSB':_0x4aee2d(0xe3),'DKREl':_0x4aee2d(0x10e),'zlnOP':_0x4aee2d(0x121),'qZVTb':_0x4aee2d(0x12b),'xUxqw':function(_0x1fb30c,_0x89f698,_0x1af1de,_0x5c801f,_0x2b9902,_0x21cfc5,_0xaac352){return _0x1fb30c(_0x89f698,_0x1af1de,_0x5c801f,_0x2b9902,_0x21cfc5,_0xaac352);},'EeKJy':_0x4aee2d(0x102),'iwAAq':function(_0x4430fe){return _0x4430fe();},'SPVqS':function(_0x5641b0,_0x21e21b){return _0x5641b0!==_0x21e21b;},'aATJa':_0x4aee2d(0x132),'kJzvK':_0x4aee2d(0x104),'UmEnt':function(_0x2abb55,_0x3b27a3){return _0x2abb55!==_0x3b27a3;},'EDYDy':_0x4aee2d(0x10c),'zFIgx':_0x4aee2d(0x105),'rXihI':_0x4aee2d(0x10f),'LdKkt':_0x4aee2d(0xfe),'oqwwQ':function(_0x41db7b,_0x36ee71){return _0x41db7b===_0x36ee71;},'XwtYu':'QXxNR','xqJTR':_0x4aee2d(0xf4),'WPoqn':function(_0x16ccaa,_0x4b2477){return _0x16ccaa!==_0x4b2477;},'ZsiRF':_0x4aee2d(0x11e),'bekRg':function(_0x1115a3,_0x1295e9){return _0x1115a3===_0x1295e9;},'bRuYv':_0x4aee2d(0xe6),'lLOcD':_0x4aee2d(0xd7),'iUaBa':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','QlSIX':_0x4aee2d(0x109),'lvwsa':function(_0x437b0b,_0x1dad4f,_0x5ae0ad){return _0x437b0b(_0x1dad4f,_0x5ae0ad);},'dbNoT':function(_0xf9740e,_0x451b1a,_0x45db9d){return _0xf9740e(_0x451b1a,_0x45db9d);},'ZpcJX':function(_0x2902a2,_0x483139){return _0x2902a2!==_0x483139;},'vHmDi':function(_0x56aa37,_0xcb8469){return _0x56aa37===_0xcb8469;},'HKpGY':function(_0x4ec66d,_0xe9fd8e){return _0x4ec66d!==_0xe9fd8e;},'IEUyx':'aPNxx','YCBFC':_0x4aee2d(0x131),'xIdJV':function(_0x12d50b,_0x197bbf){return _0x12d50b!==_0x197bbf;},'EvFkv':_0x4aee2d(0x116),'lHmvl':_0x4aee2d(0xdb),'qXgeC':function(_0x37638a,_0x33e238){return _0x37638a!==_0x33e238;},'gzkwj':_0x4aee2d(0xd2),'hsflF':_0x4aee2d(0xd5),'gsxAw':_0x4aee2d(0xfa),'yGmaL':function(_0x26a267,_0x1dedee,_0x6b64a9,_0x24c009,_0x213e60,_0x18f1c5,_0x1490fb){return _0x26a267(_0x1dedee,_0x6b64a9,_0x24c009,_0x213e60,_0x18f1c5,_0x1490fb);},'PjYzd':_0x4aee2d(0x127),'iitCi':_0x4aee2d(0x110)};try{global_registry[_0x4aee2d(0x139)]=_0x32d057['vDAfx'](uuidv4),_0x32d057[_0x4aee2d(0x140)](sendInstrumentationEvent,_0x37165a,_0x32d057['EeKJy'],messageTypes[_0x4aee2d(0xdf)],null,null,_0x37165a);const _0x55c101=_0x32d057[_0x4aee2d(0x119)](getDirForConfig);!fs[_0x4aee2d(0x13d)](_0x55c101)&&(_0x32d057[_0x4aee2d(0x117)](_0x32d057[_0x4aee2d(0x114)],_0x32d057[_0x4aee2d(0x103)])?fs['mkdirSync'](_0x55c101):_0xfdfbb6=_0x4b2ef7['env'][_0x4aee2d(0xf9)]);let _0x27fcd9,_0x3dd399;process[_0x4aee2d(0xda)]['BROWSERSTACK_USERNAME']&&(_0x32d057[_0x4aee2d(0xd1)](_0x32d057[_0x4aee2d(0xf0)],_0x32d057[_0x4aee2d(0xd4)])?_0x27fcd9=process['env'][_0x4aee2d(0xf9)]:_0xa16807=_0x3b511e[_0x4aee2d(0xff)]);process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x32d057[_0x4aee2d(0x117)](_0x32d057[_0x4aee2d(0x12e)],_0x32d057[_0x4aee2d(0xd9)])?_0x3dd399=process[_0x4aee2d(0xda)][_0x4aee2d(0x11a)]:_0x1eccd6=!![]);if(_0x37165a['bstackUsername']){if(_0x32d057[_0x4aee2d(0xf1)](_0x32d057['XwtYu'],_0x32d057[_0x4aee2d(0x125)])){let _0x2f85b2={};const _0x29ab2a=_0x32d057['vDAfx'](_0xb7255d);_0x44bfd4[_0x4aee2d(0x13d)](_0x29ab2a)&&(_0x2f85b2=_0x5d98d4[_0x4aee2d(0x128)](_0x565d05[_0x4aee2d(0xd0)](_0x29ab2a,_0x32d057['tBqqV'])));const _0x304d57={};_0x304d57[_0x4aee2d(0x13e)]=_0x24407c,_0x304d57[_0x4aee2d(0xd6)]=_0x3e3921,_0x2f85b2['Browserstack']=_0x304d57,_0x513210[_0x4aee2d(0x101)](_0x29ab2a,_0x33266a[_0x4aee2d(0x141)](_0x2f85b2)),_0xaa7623['exit'](0x0);}else _0x27fcd9=_0x37165a[_0x4aee2d(0xff)];}_0x37165a['bstackAccesskey']&&(_0x32d057[_0x4aee2d(0x137)](_0x32d057[_0x4aee2d(0xe8)],_0x32d057[_0x4aee2d(0xe8)])?_0xc0f91e=_0x297da6[_0x4aee2d(0x128)](_0x2e2401[_0x4aee2d(0xd0)](_0xc7bc2f,_0x32d057[_0x4aee2d(0x13b)])):_0x3dd399=_0x37165a['bstackAccesskey']);if(_0x32d057[_0x4aee2d(0xf1)](_0x27fcd9,undefined)||_0x32d057[_0x4aee2d(0xf1)](_0x3dd399,undefined)){if(_0x32d057[_0x4aee2d(0xe9)](_0x32d057['bRuYv'],_0x32d057[_0x4aee2d(0x138)])){const _0x50b3e2={};_0x50b3e2[_0x4aee2d(0x13a)]=_0x32d057[_0x4aee2d(0x13f)],_0x50b3e2['type']=_0x32d057[_0x4aee2d(0xcf)];const _0xe3eec5={};_0xe3eec5[_0x4aee2d(0x13a)]=_0x32d057[_0x4aee2d(0xe5)],_0xe3eec5['type']=_0x32d057[_0x4aee2d(0xcf)];const _0x347db1={};return _0x347db1['bstack-username']=_0x50b3e2,_0x347db1[_0x4aee2d(0x11f)]=_0xe3eec5,_0x155e9a[_0x4aee2d(0xec)](_0x1cb53[_0x4aee2d(0x12c)])[_0x4aee2d(0x11d)](_0x2c6ddc)[_0x4aee2d(0xee)](_0x347db1)['recommendCommands']()[_0x4aee2d(0xfd)]()['help'](_0x32d057[_0x4aee2d(0x134)])[_0x4aee2d(0xe0)];}else{logger['debug'](_0x32d057['iUaBa']);const [_0x458485,_0x7cf2c3]=await _0x32d057[_0x4aee2d(0x119)](inputBstackKeys);_0x27fcd9=_0x458485,_0x3dd399=_0x7cf2c3;}}let _0x3cef90=![];const _0xb77fd0=_0x4aee2d(0xf6)+_0x27fcd9+':'+_0x3dd399+'@'+BS_API_URL+_0x4aee2d(0x11c),_0x480357={'method':_0x32d057['QlSIX'],'headers':_0x32d057[_0x4aee2d(0xd8)](getAuthHeader,_0x27fcd9,_0x3dd399),'throwHttpErrors':![]},_0x6e2a50=await _0x32d057[_0x4aee2d(0x136)](got,_0xb77fd0,_0x480357);_0x32d057['UmEnt'](_0x6e2a50,null)&&_0x32d057[_0x4aee2d(0x122)](_0x6e2a50,undefined)&&_0x32d057[_0x4aee2d(0x107)](_0x6e2a50[_0x4aee2d(0x12a)],0xc8)&&(_0x32d057[_0x4aee2d(0x135)](_0x32d057[_0x4aee2d(0x10b)],_0x32d057[_0x4aee2d(0xef)])?_0x3cef90=!![]:_0x4175eb=_0x53105e[_0x4aee2d(0xda)]['BROWSERSTACK_ACCESS_KEY']);if(_0x3cef90){if(_0x32d057[_0x4aee2d(0xe7)](_0x32d057[_0x4aee2d(0xed)],_0x32d057[_0x4aee2d(0x113)])){let _0x3d3bd3={};const _0x1a36ff=_0x32d057[_0x4aee2d(0xe1)](getCredentialsPath);fs[_0x4aee2d(0x13d)](_0x1a36ff)&&(_0x32d057['qXgeC'](_0x32d057[_0x4aee2d(0x123)],_0x32d057[_0x4aee2d(0x10a)])?_0x3d3bd3=JSON[_0x4aee2d(0x128)](fs[_0x4aee2d(0xd0)](_0x1a36ff,_0x32d057[_0x4aee2d(0x13b)])):_0x354732[_0x4aee2d(0xdc)](_0x1fef5f));const _0x170d41={};_0x170d41[_0x4aee2d(0x13e)]=_0x27fcd9,_0x170d41['password']=_0x3dd399,_0x3d3bd3[_0x4aee2d(0x13c)]=_0x170d41,fs[_0x4aee2d(0x101)](_0x1a36ff,JSON[_0x4aee2d(0x141)](_0x3d3bd3)),process[_0x4aee2d(0x118)](0x0);}else _0x239fbc=_0x40011b[_0x4aee2d(0xfb)];}else logger[_0x4aee2d(0xeb)](_0x32d057[_0x4aee2d(0xf7)]),await _0x32d057['yGmaL'](sendInstrumentationEvent,_0x37165a,_0x32d057[_0x4aee2d(0x115)],messageTypes[_0x4aee2d(0xea)],_0x32d057['PjYzd'],null,_0x37165a),process['exit'](0x1);}catch(_0x45da0d){logger[_0x4aee2d(0xeb)](_0x45da0d['stack']),await _0x32d057[_0x4aee2d(0x140)](sendInstrumentationEvent,_0x37165a,_0x32d057[_0x4aee2d(0x115)],messageTypes[_0x4aee2d(0xea)],_0x32d057[_0x4aee2d(0xd3)],_0x45da0d,_0x37165a),process[_0x4aee2d(0x118)](0x1);}};
|
|
1
|
+
const a12_0x2f28f8=a12_0x167b;function a12_0x167b(_0x1693cd,_0x210a9e){const _0x5525af=a12_0x5525();return a12_0x167b=function(_0x167bb6,_0x37ab6f){_0x167bb6=_0x167bb6-0xb4;let _0x512092=_0x5525af[_0x167bb6];return _0x512092;},a12_0x167b(_0x1693cd,_0x210a9e);}function a12_0x5525(){const _0x488429=['GHQlD','UvjQi','command','BROWSERSTACK_ACCESS_KEY','klaIl','bstack-accesskey','23434QgPbcJ','Ajfxd','86ipilir','handler','CyFVi','402mokXTD','statusCode','wrong-creds','mpEXU','existsSync','bstackAccesskey','GET','exit','requestId','debug','/automate/plan.json','fhWfn','argv','env','WnVKC','stack','uPBlw','hAQle','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','help','HPOTI','ukNJD','ERROR','../utils/utilityMethods','pHrJh','2303331tNEubH','mkdirSync','Jaowg','usage','uZMIG','https://','aArYs','gClfp','stringify','NBiVP','epilogue','BerCk','dNcXP','bstackUsername','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','username','parse','../config/constants','xcBlI','string','YOiCd','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','keVbk','dqGoA','CVDaY','wzQnV','init','description','gAYzQ','readFileSync','Browserstack','unknown-error','83170ETtdHT','ySKfB','pabqJ','1939iGAXHQ','utf-8','nYiLR','desc','../utils/instrumentationUtils','wrGiN','type','uyPQc','PIpuN','password','HQFRk','recommendCommands','84gxBAse','cBYGS','eAeIN','BROWSERSTACK_USERNAME','init-called','INFO','MGOxi','flPYk','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','csanJ','38755xrGOiK','1529726MLnVbx','2343584kLLinW','Zbats','zhiYx','RoBGa','kzctx','error','927uMOVTW','util','MvGNp','nLAwq','got','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','17120xJycye','bvbxZ','writeFileSync'];a12_0x5525=function(){return _0x488429;};return a12_0x5525();}(function(_0x14799c,_0x54ef4b){const _0x12c814=a12_0x167b,_0x1ac629=_0x14799c();while(!![]){try{const _0x57256b=-parseInt(_0x12c814(0xf3))/0x1*(parseInt(_0x12c814(0xf1))/0x2)+-parseInt(_0x12c814(0x10f))/0x3+parseInt(_0x12c814(0xdc))/0x4+-parseInt(_0x12c814(0xda))/0x5*(-parseInt(_0x12c814(0xf6))/0x6)+parseInt(_0x12c814(0xc4))/0x7*(-parseInt(_0x12c814(0xe8))/0x8)+parseInt(_0x12c814(0xe2))/0x9*(parseInt(_0x12c814(0xc1))/0xa)+-parseInt(_0x12c814(0xdb))/0xb*(-parseInt(_0x12c814(0xd0))/0xc);if(_0x57256b===_0x54ef4b)break;else _0x1ac629['push'](_0x1ac629['shift']());}catch(_0x3677c6){_0x1ac629['push'](_0x1ac629['shift']());}}}(a12_0x5525,0x8a743));const fs=require('fs'),util=require(a12_0x2f28f8(0xe3)),got=require(a12_0x2f28f8(0xe6)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x2f28f8(0x120)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2f28f8(0x10d)),{sendInstrumentationEvent}=require(a12_0x2f28f8(0xc8));exports[a12_0x2f28f8(0xed)]=a12_0x2f28f8(0xbb),exports[a12_0x2f28f8(0xc7)]=a12_0x2f28f8(0x11d),exports['builder']=function(_0x2de296){const _0x16e99b=a12_0x2f28f8,_0x20958d={};_0x20958d[_0x16e99b(0xb5)]=_0x16e99b(0xe7),_0x20958d[_0x16e99b(0x104)]=_0x16e99b(0xb4),_0x20958d[_0x16e99b(0x101)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x20958d[_0x16e99b(0xcc)]=_0x16e99b(0x109);const _0x2aadae=_0x20958d,_0x196fd1={};_0x196fd1[_0x16e99b(0xbc)]=_0x2aadae['YOiCd'],_0x196fd1[_0x16e99b(0xca)]=_0x2aadae[_0x16e99b(0x104)];const _0x5d77c5={};_0x5d77c5['description']=_0x2aadae['fhWfn'],_0x5d77c5[_0x16e99b(0xca)]=_0x2aadae['WnVKC'];const _0x3da6d0={};return _0x3da6d0['bstack-username']=_0x196fd1,_0x3da6d0['bstack-accesskey']=_0x5d77c5,_0x2de296[_0x16e99b(0x112)](HELP_HEADER_MESSAGE[_0x16e99b(0xbb)])[_0x16e99b(0x119)](HELP_FOOTER_MESSAGE)['options'](_0x3da6d0)[_0x16e99b(0xcf)]()['strict']()[_0x16e99b(0x109)](_0x2aadae[_0x16e99b(0xcc)])[_0x16e99b(0x102)];},exports[a12_0x2f28f8(0xf4)]=async function(_0xab7fa){const _0x398030=a12_0x2f28f8,_0x4d8cfc={'dkACb':_0x398030(0xe7),'kzctx':_0x398030(0xb4),'WlBZE':_0x398030(0x108),'mpEXU':_0x398030(0x109),'Jaowg':_0x398030(0xc5),'dqGoA':function(_0x3162e3){return _0x3162e3();},'HQFRk':function(_0x21224f,_0x2d0ab9,_0x4c53c8,_0x2793cf,_0x37ad89,_0x15c0f1,_0x5b6f09){return _0x21224f(_0x2d0ab9,_0x4c53c8,_0x2793cf,_0x37ad89,_0x15c0f1,_0x5b6f09);},'ukNJD':_0x398030(0xd4),'uPBlw':function(_0x15032d,_0x31aeb2){return _0x15032d!==_0x31aeb2;},'gAYzQ':_0x398030(0xc2),'GHQlD':_0x398030(0x107),'uZMIG':_0x398030(0xb7),'nYiLR':_0x398030(0xcb),'eAeIN':_0x398030(0xde),'wrGiN':function(_0x4aadc6,_0x3d9b0d){return _0x4aadc6===_0x3d9b0d;},'pHrJh':_0x398030(0xef),'CVDaY':function(_0xebdb7e,_0x765e35){return _0xebdb7e!==_0x765e35;},'bvbxZ':_0x398030(0xf5),'MvGNp':_0x398030(0xd8),'cBYGS':function(_0x58367c){return _0x58367c();},'HPOTI':_0x398030(0xfc),'BerCk':function(_0xe204cf,_0x5906f1,_0x1ef21d){return _0xe204cf(_0x5906f1,_0x1ef21d);},'MGOxi':_0x398030(0x118),'UvjQi':function(_0x2ac1ab,_0x5c81f3){return _0x2ac1ab!==_0x5c81f3;},'wzQnV':_0x398030(0xdd),'gClfp':_0x398030(0xdf),'xcBlI':function(_0x3ac7f1){return _0x3ac7f1();},'nLAwq':function(_0x344c4d,_0x2febc9){return _0x344c4d===_0x2febc9;},'flPYk':_0x398030(0x11b),'Ajfxd':_0x398030(0xb6),'pabqJ':function(_0x20a0bb,_0x1939eb,_0x1b7619,_0x3734f7,_0x14cd63,_0x545bd2,_0x400a39){return _0x20a0bb(_0x1939eb,_0x1b7619,_0x3734f7,_0x14cd63,_0x545bd2,_0x400a39);},'znVfd':_0x398030(0xf8),'csanJ':function(_0x4cb54b,_0x440c2b,_0x4f33b,_0x2208a0,_0x4127e0,_0x30b14f,_0x47fde4){return _0x4cb54b(_0x440c2b,_0x4f33b,_0x2208a0,_0x4127e0,_0x30b14f,_0x47fde4);},'aArYs':_0x398030(0xc0)};try{global_registry[_0x398030(0xfe)]=_0x4d8cfc[_0x398030(0xb8)](uuidv4),_0x4d8cfc[_0x398030(0xce)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes[_0x398030(0xd5)],null,null,_0xab7fa);const _0xdc83f7=_0x4d8cfc['dqGoA'](getDirForConfig);if(!fs['existsSync'](_0xdc83f7)){if(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xbd)],_0x4d8cfc['gAYzQ'])){const _0x4c5fc8={};_0x4c5fc8[_0x398030(0xbc)]=_0x4d8cfc['dkACb'],_0x4c5fc8['type']=_0x4d8cfc['kzctx'];const _0x21edd8={};_0x21edd8[_0x398030(0xbc)]=_0x4d8cfc['WlBZE'],_0x21edd8[_0x398030(0xca)]=_0x4d8cfc[_0x398030(0xe0)];const _0x2b83a8={};return _0x2b83a8['bstack-username']=_0x4c5fc8,_0x2b83a8[_0x398030(0xf0)]=_0x21edd8,_0x39ec2d['usage'](_0x297e9d[_0x398030(0xbb)])[_0x398030(0x119)](_0x5084bf)['options'](_0x2b83a8)[_0x398030(0xcf)]()['strict']()[_0x398030(0x109)](_0x4d8cfc[_0x398030(0xf9)])['argv'];}else fs[_0x398030(0x110)](_0xdc83f7);}let _0x120ee4,_0x12e394;process[_0x398030(0x103)]['BROWSERSTACK_USERNAME']&&(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xeb)],_0x4d8cfc[_0x398030(0xeb)])?_0x314874=_0x181f6d['bstackAccesskey']:_0x120ee4=process[_0x398030(0x103)][_0x398030(0xd3)]);process[_0x398030(0x103)][_0x398030(0xee)]&&(_0x4d8cfc['uPBlw'](_0x4d8cfc[_0x398030(0x113)],_0x4d8cfc[_0x398030(0xc6)])?_0x12e394=process[_0x398030(0x103)][_0x398030(0xee)]:_0x227566=!![]);_0xab7fa[_0x398030(0x11c)]&&(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xd2)],_0x4d8cfc['eAeIN'])?_0x4d9fb7=_0x6df7d2[_0x398030(0x103)][_0x398030(0xd3)]:_0x120ee4=_0xab7fa[_0x398030(0x11c)]);_0xab7fa[_0x398030(0xfb)]&&(_0x4d8cfc['wrGiN'](_0x4d8cfc[_0x398030(0x10e)],_0x4d8cfc['pHrJh'])?_0x12e394=_0xab7fa[_0x398030(0xfb)]:_0xa6f8c1[_0x398030(0x110)](_0x48cb8c));if(_0x4d8cfc[_0x398030(0xc9)](_0x120ee4,undefined)||_0x4d8cfc['wrGiN'](_0x12e394,undefined)){if(_0x4d8cfc['CVDaY'](_0x4d8cfc[_0x398030(0xe9)],_0x4d8cfc[_0x398030(0xe9)]))_0x45c583=_0x515a4c['parse'](_0x591100['readFileSync'](_0x2d02d8,_0x4d8cfc[_0x398030(0x111)]));else{logger[_0x398030(0xff)](_0x4d8cfc[_0x398030(0xe4)]);const [_0x367171,_0x436b25]=await _0x4d8cfc[_0x398030(0xd1)](inputBstackKeys);_0x120ee4=_0x367171,_0x12e394=_0x436b25;}}let _0x4be949=![];const _0xf5b051=_0x398030(0x114)+_0x120ee4+':'+_0x12e394+'@'+BS_API_URL+_0x398030(0x100),_0x92d5da={'method':_0x4d8cfc[_0x398030(0x10a)],'headers':_0x4d8cfc['BerCk'](getAuthHeader,_0x120ee4,_0x12e394),'throwHttpErrors':![]},_0x201ff=await _0x4d8cfc[_0x398030(0x11a)](got,_0xf5b051,_0x92d5da);_0x4d8cfc[_0x398030(0x106)](_0x201ff,null)&&_0x4d8cfc[_0x398030(0xb9)](_0x201ff,undefined)&&_0x4d8cfc['wrGiN'](_0x201ff[_0x398030(0xf7)],0xc8)&&(_0x4d8cfc[_0x398030(0xc9)](_0x4d8cfc[_0x398030(0xd6)],_0x4d8cfc[_0x398030(0xd6)])?_0x4be949=!![]:_0x5428ae=_0x349f9e[_0x398030(0x11c)]);if(_0x4be949){if(_0x4d8cfc[_0x398030(0xec)](_0x4d8cfc[_0x398030(0xba)],_0x4d8cfc[_0x398030(0x116)])){let _0x5e722={};const _0x4a2786=_0x4d8cfc[_0x398030(0x121)](getCredentialsPath);if(fs[_0x398030(0xfa)](_0x4a2786)){if(_0x4d8cfc[_0x398030(0xe5)](_0x4d8cfc[_0x398030(0xd7)],_0x4d8cfc[_0x398030(0xd7)]))_0x5e722=JSON['parse'](fs[_0x398030(0xbe)](_0x4a2786,_0x4d8cfc[_0x398030(0x111)]));else{let _0x4e7bdc={};const _0x19fe45=_0x4d8cfc['dqGoA'](_0x4f8bf0);_0x358bd3[_0x398030(0xfa)](_0x19fe45)&&(_0x4e7bdc=_0x2b7e7a[_0x398030(0x11f)](_0x3927a7[_0x398030(0xbe)](_0x19fe45,_0x4d8cfc[_0x398030(0x111)])));const _0x555b1c={};_0x555b1c['username']=_0xd12c65,_0x555b1c[_0x398030(0xcd)]=_0x157c89,_0x4e7bdc[_0x398030(0xbf)]=_0x555b1c,_0x97dc8e['writeFileSync'](_0x19fe45,_0x18626e[_0x398030(0x117)](_0x4e7bdc)),_0x566da0[_0x398030(0xfd)](0x0);}}const _0x110862={};_0x110862[_0x398030(0x11e)]=_0x120ee4,_0x110862[_0x398030(0xcd)]=_0x12e394,_0x5e722[_0x398030(0xbf)]=_0x110862,fs[_0x398030(0xea)](_0x4a2786,JSON[_0x398030(0x117)](_0x5e722)),process[_0x398030(0xfd)](0x0);}else _0x1722fe=_0x355960['env'][_0x398030(0xee)];}else logger[_0x398030(0xe1)](_0x4d8cfc[_0x398030(0xf2)]),await _0x4d8cfc[_0x398030(0xc3)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes['ERROR'],_0x4d8cfc['znVfd'],null,_0xab7fa),process[_0x398030(0xfd)](0x1);}catch(_0x58f730){logger[_0x398030(0xe1)](_0x58f730[_0x398030(0x105)]),await _0x4d8cfc[_0x398030(0xd9)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes[_0x398030(0x10c)],_0x4d8cfc[_0x398030(0x115)],_0x58f730,_0xab7fa),process['exit'](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x5e1ecb=a13_0x4c1f;(function(_0x40fc95,_0x5e4ec3){const _0xbfef2b=a13_0x4c1f,_0x3ff34e=_0x40fc95();while(!![]){try{const _0x25e127=-parseInt(_0xbfef2b(0x147))/0x1+-parseInt(_0xbfef2b(0x14c))/0x2+parseInt(_0xbfef2b(0x145))/0x3+-parseInt(_0xbfef2b(0x14b))/0x4*(-parseInt(_0xbfef2b(0x146))/0x5)+parseInt(_0xbfef2b(0x13b))/0x6+-parseInt(_0xbfef2b(0x13d))/0x7+-parseInt(_0xbfef2b(0x142))/0x8*(-parseInt(_0xbfef2b(0x14e))/0x9);if(_0x25e127===_0x5e4ec3)break;else _0x3ff34e['push'](_0x3ff34e['shift']());}catch(_0x2573d3){_0x3ff34e['push'](_0x3ff34e['shift']());}}}(a13_0x1fb3,0xbf057));function a13_0x1fb3(){const _0x79174a=['help','4VSzwNl','641316iwPKiH','demandCommand','612qmjWff','../config/constants','epilogue','root','recommendCommands','commandDir','3904080VHMnlE','strict','10928407YLNLtM','handler','list','List\x20down\x20the\x20Grid\x20resources.','command','100016QpliSX','builder','DyFKA','3645516EGeivK','3518995zRCSZu','755505Hwhzzg','list_commands','axavF'];a13_0x1fb3=function(){return _0x79174a;};return a13_0x1fb3();}function a13_0x4c1f(_0x3fc085,_0x3f7f02){const _0x1fb37e=a13_0x1fb3();return a13_0x4c1f=function(_0x4c1f3e,_0x5ec4e8){_0x4c1f3e=_0x4c1f3e-0x13a;let _0x1e16cc=_0x1fb37e[_0x4c1f3e];return _0x1e16cc;},a13_0x4c1f(_0x3fc085,_0x3f7f02);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x5e1ecb(0x14f));exports[a13_0x5e1ecb(0x141)]=a13_0x5e1ecb(0x13f),exports['desc']=a13_0x5e1ecb(0x140),exports[a13_0x5e1ecb(0x143)]=function(_0x312ea2){const _0x6d11e0=a13_0x5e1ecb,_0x5be7f5={};_0x5be7f5[_0x6d11e0(0x149)]=_0x6d11e0(0x148),_0x5be7f5['DyFKA']=_0x6d11e0(0x14a);const _0x2023f0=_0x5be7f5;return _0x312ea2[_0x6d11e0(0x13a)](_0x2023f0[_0x6d11e0(0x149)])[_0x6d11e0(0x14d)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x6d11e0(0x151)])[_0x6d11e0(0x150)](HELP_FOOTER_MESSAGE)[_0x6d11e0(0x152)]()[_0x6d11e0(0x13c)]()['help'](_0x2023f0[_0x6d11e0(0x144)]);},exports[a13_0x5e1ecb(0x13e)]=function(_0x5408fe){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a14_0x32f6(_0x149fc4,_0xc5f74){const _0x4edc95=a14_0x4edc();return a14_0x32f6=function(_0x32f632,_0x185286){_0x32f632=_0x32f632-0x1cd;let _0x24f48e=_0x4edc95[_0x32f632];return _0x24f48e;},a14_0x32f6(_0x149fc4,_0xc5f74);}const a14_0x8eb349=a14_0x32f6;(function(_0x17ddf4,_0x592f4c){const _0x305a77=a14_0x32f6,_0x351989=_0x17ddf4();while(!![]){try{const _0x5e6c3e=-parseInt(_0x305a77(0x1e4))/0x1+parseInt(_0x305a77(0x1f1))/0x2+parseInt(_0x305a77(0x1f8))/0x3+-parseInt(_0x305a77(0x211))/0x4*(parseInt(_0x305a77(0x1f7))/0x5)+parseInt(_0x305a77(0x1f2))/0x6+-parseInt(_0x305a77(0x1d3))/0x7+parseInt(_0x305a77(0x1fc))/0x8*(parseInt(_0x305a77(0x1ef))/0x9);if(_0x5e6c3e===_0x592f4c)break;else _0x351989['push'](_0x351989['shift']());}catch(_0x248db7){_0x351989['push'](_0x351989['shift']());}}}(a14_0x4edc,0x3691a));const fs=require('fs'),got=require(a14_0x8eb349(0x1ed)),{table}=require(a14_0x8eb349(0x1d1)),{v4:uuidv4}=require(a14_0x8eb349(0x1f0)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a14_0x4edc(){const _0x180e59=['DgBVi','builder','MAfdF','push','grid-profiles','handler','UueKc','table','XrOci','1714132NtroIY','stack','description','tgoWo','wbYON','desc','TzCVu','XVwKr','ERROR','concurrency','usage','cloudProvider','INFO','argv','statusCode','readFileSync','parse','236987rBIpmK','allGridProfiles','gridProfile','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kLEeV','password','AcqqP','https://','epilogue','got','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','5013fQwSzE','uuid','258978cuvMgP','1972134lxvvMd','WemAw','exit','Beavi','vThhW','250615ccHnQG','793356rzGloO','unknown-error','/packages/cli/get-grid-profiles','grid-profile-name','1192XQTFMe','existsSync','EoEQm','server-error','rxErk','cloud-provider','CIwBm','cRODz','command','region','NiDIx','body','name','/packages/cli/get-all-grid-profiles','username','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','GqHmW','type','list','wKdxR','list-grid-profiles-called','8rdXywc','help','MzOze','all-grid-profiles','SyvLD','MZSEg','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','bstackUsername','log','error','unauthorised','Browserstack'];a14_0x4edc=function(){return _0x180e59;};return a14_0x4edc();}exports[a14_0x8eb349(0x204)]=a14_0x8eb349(0x1ce),exports[a14_0x8eb349(0x1d8)]=a14_0x8eb349(0x217),exports[a14_0x8eb349(0x21e)]=function(_0x3ba893){const _0x69283a=a14_0x8eb349,_0xe80c7={};_0xe80c7['CIwBm']=_0x69283a(0x20b),_0xe80c7[_0x69283a(0x1d2)]='boolean',_0xe80c7[_0x69283a(0x1f5)]='help';const _0x3425fe=_0xe80c7,_0x38caab={};_0x38caab[_0x69283a(0x1d5)]=_0x3425fe[_0x69283a(0x202)],_0x38caab[_0x69283a(0x20d)]=_0x3425fe[_0x69283a(0x1d2)];const _0x2c41f8={};return _0x2c41f8[_0x69283a(0x214)]=_0x38caab,_0x3ba893[_0x69283a(0x1dd)](HELP_HEADER_MESSAGE[_0x69283a(0x20e)][_0x69283a(0x1e6)])[_0x69283a(0x1ec)](HELP_FOOTER_MESSAGE)['options'](_0x2c41f8)[_0x69283a(0x212)](_0x3425fe[_0x69283a(0x1f5)])[_0x69283a(0x1e0)];},exports[a14_0x8eb349(0x1cf)]=async function(_0x5c9882){const _0x39ea41=a14_0x8eb349,_0x1e73f8={'DgBVi':function(_0x470a9d){return _0x470a9d();},'EoEQm':_0x39ea41(0x1ee),'WemAw':function(_0x53935a,_0x2532e9,_0x376ef3,_0x8ec4e2,_0x340662,_0x178828,_0x542ff8){return _0x53935a(_0x2532e9,_0x376ef3,_0x8ec4e2,_0x340662,_0x178828,_0x542ff8);},'tgoWo':_0x39ea41(0x210),'MZSEg':'init-not-called','kBJwH':function(_0x135fb2){return _0x135fb2();},'kLEeV':'GET','wKdxR':function(_0x3f2c9c,_0x256497,_0x4a7a5f){return _0x3f2c9c(_0x256497,_0x4a7a5f);},'MzOze':function(_0x1c24cb,_0x58ad28,_0x493557,_0x4c0421,_0x48e756,_0x5ae332,_0x4d6495){return _0x1c24cb(_0x58ad28,_0x493557,_0x4c0421,_0x48e756,_0x5ae332,_0x4d6495);},'SyvLD':function(_0x1b0c3c,_0x16cc93,_0x2417c1){return _0x1b0c3c(_0x16cc93,_0x2417c1);},'GqHmW':function(_0x3b9ad7,_0x1013bd){return _0x3b9ad7!==_0x1013bd;},'cRODz':function(_0x3af95d,_0x26050b){return _0x3af95d===_0x26050b;},'NBNjb':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','NiDIx':_0x39ea41(0x1fb),'TzCVu':_0x39ea41(0x201),'JRvQz':_0x39ea41(0x205),'rxErk':'concurrency','PMzSn':function(_0x308b2c,_0x45969e){return _0x308b2c(_0x45969e);},'JhUDu':function(_0x52d3eb,_0x5c9f61){return _0x52d3eb===_0x5c9f61;},'wbYON':function(_0x56a477,_0x1f59b1,_0x8e82fb,_0x36e638,_0x589350,_0x1b62c8,_0x2902db){return _0x56a477(_0x1f59b1,_0x8e82fb,_0x36e638,_0x589350,_0x1b62c8,_0x2902db);},'vThhW':_0x39ea41(0x21b),'MAfdF':function(_0x2a3ce9,_0x4a616c,_0x160d7f,_0x101601,_0xf09d77,_0x4f7fe3,_0x466f25){return _0x2a3ce9(_0x4a616c,_0x160d7f,_0x101601,_0xf09d77,_0x4f7fe3,_0x466f25);},'AcqqP':_0x39ea41(0x1ff),'XVwKr':function(_0x3d5bac,_0x167a52,_0x51593a,_0x51a01f,_0x5178ef,_0x20a3aa,_0x14b69c){return _0x3d5bac(_0x167a52,_0x51593a,_0x51a01f,_0x5178ef,_0x20a3aa,_0x14b69c);},'UueKc':_0x39ea41(0x1f9)};try{global_registry['requestId']=_0x1e73f8[_0x39ea41(0x21d)](uuidv4);let _0x5710dc=_0x39ea41(0x1eb)+AG_API_URL+_0x39ea41(0x1fa);_0x5c9882[_0x39ea41(0x1e5)]&&(_0x5710dc=_0x39ea41(0x1eb)+AG_API_URL+_0x39ea41(0x209));!fs[_0x39ea41(0x1fd)](_0x1e73f8[_0x39ea41(0x21d)](getCredentialsPath))&&(console['error'](_0x1e73f8[_0x39ea41(0x1fe)]),await _0x1e73f8[_0x39ea41(0x1f3)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes[_0x39ea41(0x1db)],_0x1e73f8[_0x39ea41(0x216)],null,_0x5c9882),process[_0x39ea41(0x1f4)](0x1));const _0x3e9856=JSON[_0x39ea41(0x1e3)](fs[_0x39ea41(0x1e2)](_0x1e73f8['kBJwH'](getCredentialsPath))),_0x407680={'method':_0x1e73f8[_0x39ea41(0x1e8)],'headers':_0x1e73f8[_0x39ea41(0x20f)](getAuthHeader,_0x3e9856['Browserstack'][_0x39ea41(0x20a)],_0x3e9856[_0x39ea41(0x21c)][_0x39ea41(0x1e9)]),'throwHttpErrors':![]};global_registry[_0x39ea41(0x218)]=_0x3e9856[_0x39ea41(0x21c)][_0x39ea41(0x20a)],global_registry['bstackAccesskey']=_0x3e9856[_0x39ea41(0x21c)][_0x39ea41(0x1e9)],_0x1e73f8[_0x39ea41(0x213)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes[_0x39ea41(0x1df)],null,null,_0x5c9882);const _0x2aaaab=await _0x1e73f8[_0x39ea41(0x215)](got,_0x5710dc,_0x407680);if(_0x1e73f8[_0x39ea41(0x20c)](_0x2aaaab,null)&&_0x1e73f8['GqHmW'](_0x2aaaab,undefined)&&_0x1e73f8[_0x39ea41(0x203)](_0x2aaaab[_0x39ea41(0x1e1)],0xc8)){const _0x1365c2=JSON[_0x39ea41(0x1e3)](_0x2aaaab[_0x39ea41(0x207)]);console[_0x39ea41(0x219)](_0x1e73f8['NBNjb']);const _0x2c56cd=[];_0x2c56cd[_0x39ea41(0x1cd)]([_0x1e73f8[_0x39ea41(0x206)],_0x1e73f8[_0x39ea41(0x1d9)],_0x1e73f8['JRvQz'],_0x1e73f8[_0x39ea41(0x200)]]),_0x1365c2['forEach'](_0x18afad=>{const _0x29256a=_0x39ea41;_0x2c56cd['push']([_0x18afad[_0x29256a(0x208)],_0x18afad[_0x29256a(0x1de)],_0x18afad[_0x29256a(0x205)],_0x18afad[_0x29256a(0x1dc)]]);}),console[_0x39ea41(0x219)](_0x1e73f8['PMzSn'](table,_0x2c56cd)),process[_0x39ea41(0x1f4)](0x0);}_0x1e73f8['JhUDu'](_0x2aaaab[_0x39ea41(0x1e1)],0x191)&&(console[_0x39ea41(0x21a)](_0x39ea41(0x1e7)),await _0x1e73f8[_0x39ea41(0x1d7)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes[_0x39ea41(0x1db)],_0x1e73f8[_0x39ea41(0x1f6)],null,_0x5c9882),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2aaaab)),await _0x1e73f8[_0x39ea41(0x21f)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8['tgoWo'],messageTypes['ERROR'],_0x1e73f8[_0x39ea41(0x1ea)],_0x2aaaab,_0x5c9882),process[_0x39ea41(0x1f4)](0x1);}catch(_0x5658ff){console[_0x39ea41(0x21a)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5658ff[_0x39ea41(0x1d4)]),await _0x1e73f8[_0x39ea41(0x1da)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes['ERROR'],_0x1e73f8[_0x39ea41(0x1d0)],_0x5658ff,_0x5c9882),process[_0x39ea41(0x1f4)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x4e0e40=a15_0xbc3f;(function(_0x513ed9,_0x21b875){const _0x526eec=a15_0xbc3f,_0x34c792=_0x513ed9();while(!![]){try{const _0x56170f=-parseInt(_0x526eec(0x118))/0x1*(parseInt(_0x526eec(0x149))/0x2)+parseInt(_0x526eec(0x120))/0x3*(parseInt(_0x526eec(0x108))/0x4)+parseInt(_0x526eec(0x123))/0x5+-parseInt(_0x526eec(0x132))/0x6+-parseInt(_0x526eec(0x130))/0x7+-parseInt(_0x526eec(0x14f))/0x8*(-parseInt(_0x526eec(0x114))/0x9)+-parseInt(_0x526eec(0x11c))/0xa*(parseInt(_0x526eec(0x13d))/0xb);if(_0x56170f===_0x21b875)break;else _0x34c792['push'](_0x34c792['shift']());}catch(_0x1ab09d){_0x34c792['push'](_0x34c792['shift']());}}}(a15_0x53e5,0x8f14e));function a15_0xbc3f(_0x53f14b,_0x24ad15){const _0x53e524=a15_0x53e5();return a15_0xbc3f=function(_0xbc3ff8,_0x557b28){_0xbc3ff8=_0xbc3ff8-0x106;let _0xd7f232=_0x53e524[_0xbc3ff8];return _0xd7f232;},a15_0xbc3f(_0x53f14b,_0x24ad15);}const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0x4e0e40(0x152)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4e0e40(0x112)),{getCredentialsPath,getAuthHeader}=require(a15_0x4e0e40(0x15e)),{sendInstrumentationEvent}=require(a15_0x4e0e40(0x119));function a15_0x53e5(){const _0x5eeb0b=['push','readFileSync','bstackAccesskey','HzUdQ','fuyIX','grids','server-error','https://','../../utils/utilityMethods','grid-id','tsLZJ','GoEKu','52sDxbFJ','exit','Tbesq','handler','stringify','bstackUsername','KmYVj','options','username','all-grids','../../config/constants','body','742167TFcKOB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','Browserstack','7IwwrzF','../../utils/instrumentationUtils','HzavY','type','187640vJrRKN','dnUiN','BoCop','error','211668oGOSHa','/packages/cli/get-all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','4374390hCTafV','list-grids-called','\x0aFound\x20the\x20following\x20grids:\x0a','JIHKZ','running','JGvmq','status','qrHoc','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','grid-name','PjjRf','description','help','6442121DmZvLb','allGrids','109410eSCziC','NxqYw','jSfGV','unauthorised','command','grid','stack','queued','RKQUH','statusCode','clusterName','341bJMGmP','cluster-name','requestId','qdTgJ','existsSync','forEach','unknown-error','password','log','pFIvv','OSlhy','parse','216526WqRbWH','init-not-called','ERROR','/packages/cli/get-grids','usage','DKwXH','104sWbETT','name','SJdjF','uuid','boolean','gKcgz','argv'];a15_0x53e5=function(){return _0x5eeb0b;};return a15_0x53e5();}exports[a15_0x4e0e40(0x136)]=a15_0x4e0e40(0x15b),exports[a15_0x4e0e40(0x116)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x929549){const _0x3618a4=a15_0x4e0e40,_0x3c50e6={};_0x3c50e6[_0x3618a4(0x15a)]=_0x3618a4(0x12b),_0x3c50e6['qdTgJ']=_0x3618a4(0x153),_0x3c50e6[_0x3618a4(0x146)]=_0x3618a4(0x12f);const _0x2d83e8=_0x3c50e6,_0x54b03a={};_0x54b03a[_0x3618a4(0x12e)]=_0x2d83e8[_0x3618a4(0x15a)],_0x54b03a[_0x3618a4(0x11b)]=_0x2d83e8[_0x3618a4(0x140)];const _0x535651={};return _0x535651[_0x3618a4(0x111)]=_0x54b03a,_0x929549[_0x3618a4(0x14d)](HELP_HEADER_MESSAGE['list'][_0x3618a4(0x137)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3618a4(0x10f)](_0x535651)[_0x3618a4(0x12f)](_0x2d83e8['pFIvv'])[_0x3618a4(0x155)];},exports[a15_0x4e0e40(0x10b)]=async function(_0x3c1ee4){const _0x1cb6ab=a15_0x4e0e40,_0x114f20={'HzUdQ':function(_0x42ccae){return _0x42ccae();},'DKwXH':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qrHoc':function(_0x58da45,_0x589e93,_0x446feb,_0x26b34e,_0xeb89a1,_0x4aa6ec,_0x12f672){return _0x58da45(_0x589e93,_0x446feb,_0x26b34e,_0xeb89a1,_0x4aa6ec,_0x12f672);},'HzavY':_0x1cb6ab(0x124),'BoCop':_0x1cb6ab(0x14a),'NxqYw':'GET','jSfGV':function(_0x3a3cde,_0x34810f,_0x17e9ab){return _0x3a3cde(_0x34810f,_0x17e9ab);},'tsLZJ':function(_0x5024bc,_0x169cfe,_0x1f6f92){return _0x5024bc(_0x169cfe,_0x1f6f92);},'PvzyX':function(_0x58bcd9,_0x192340){return _0x58bcd9!==_0x192340;},'GoEKu':function(_0x26d726,_0xd765dd){return _0x26d726===_0xd765dd;},'PjjRf':_0x1cb6ab(0x125),'OSlhy':_0x1cb6ab(0x15f),'KmYVj':_0x1cb6ab(0x12c),'SJdjF':'status','ZFvIz':_0x1cb6ab(0x127),'JIHKZ':_0x1cb6ab(0x139),'dnUiN':_0x1cb6ab(0x13e),'JGvmq':function(_0x5ebefd,_0x4653ac){return _0x5ebefd(_0x4653ac);},'RKQUH':_0x1cb6ab(0x135),'Tbesq':_0x1cb6ab(0x15c),'CcIdg':function(_0x2aad05,_0x2c42ac,_0x335edf,_0x371349,_0xf25ad4,_0x539d25,_0x313599){return _0x2aad05(_0x2c42ac,_0x335edf,_0x371349,_0xf25ad4,_0x539d25,_0x313599);},'gKcgz':_0x1cb6ab(0x143)};try{global_registry[_0x1cb6ab(0x13f)]=_0x114f20['HzUdQ'](uuidv4);!fs[_0x1cb6ab(0x141)](_0x114f20[_0x1cb6ab(0x159)](getCredentialsPath))&&(console[_0x1cb6ab(0x11f)](_0x114f20[_0x1cb6ab(0x14e)]),await _0x114f20[_0x1cb6ab(0x12a)](sendInstrumentationEvent,_0x3c1ee4,_0x114f20[_0x1cb6ab(0x11a)],messageTypes[_0x1cb6ab(0x14b)],_0x114f20[_0x1cb6ab(0x11e)],null,_0x3c1ee4),process['exit'](0x1));const _0x8518ea=JSON[_0x1cb6ab(0x148)](fs[_0x1cb6ab(0x157)](_0x114f20[_0x1cb6ab(0x159)](getCredentialsPath)));let _0x32fb2f=_0x1cb6ab(0x15d)+AG_API_URL+_0x1cb6ab(0x14c);_0x3c1ee4[_0x1cb6ab(0x131)]&&(_0x32fb2f='https://'+AG_API_URL+_0x1cb6ab(0x121));const _0x561d50={'method':_0x114f20[_0x1cb6ab(0x133)],'headers':_0x114f20[_0x1cb6ab(0x134)](getAuthHeader,_0x8518ea[_0x1cb6ab(0x117)][_0x1cb6ab(0x110)],_0x8518ea[_0x1cb6ab(0x117)][_0x1cb6ab(0x144)]),'throwHttpErrors':![]};global_registry[_0x1cb6ab(0x10d)]=_0x8518ea[_0x1cb6ab(0x117)]['username'],global_registry[_0x1cb6ab(0x158)]=_0x8518ea[_0x1cb6ab(0x117)][_0x1cb6ab(0x144)],_0x114f20['qrHoc'](sendInstrumentationEvent,_0x3c1ee4,_0x114f20[_0x1cb6ab(0x11a)],messageTypes['INFO'],null,null,_0x3c1ee4);const _0x34f648=await _0x114f20[_0x1cb6ab(0x106)](got,_0x32fb2f,_0x561d50);if(_0x114f20['PvzyX'](_0x34f648,null)&&_0x114f20['PvzyX'](_0x34f648,undefined)&&_0x114f20['GoEKu'](_0x34f648[_0x1cb6ab(0x13b)],0xc8)){const _0x2a9630=JSON[_0x1cb6ab(0x148)](_0x34f648[_0x1cb6ab(0x113)]);console[_0x1cb6ab(0x145)](_0x114f20[_0x1cb6ab(0x12d)]);const _0xe64758=[];_0xe64758['push']([_0x114f20[_0x1cb6ab(0x147)],_0x114f20[_0x1cb6ab(0x10e)],_0x114f20[_0x1cb6ab(0x151)],_0x114f20['ZFvIz'],_0x114f20[_0x1cb6ab(0x126)],_0x114f20[_0x1cb6ab(0x11d)]]),_0x2a9630[_0x1cb6ab(0x142)](_0x337c9e=>{const _0x148151=_0x1cb6ab;_0xe64758[_0x148151(0x156)]([_0x337c9e['id'],_0x337c9e[_0x148151(0x150)],_0x337c9e[_0x148151(0x129)],_0x337c9e[_0x148151(0x127)],_0x337c9e[_0x148151(0x139)],_0x337c9e[_0x148151(0x13c)]]);}),console[_0x1cb6ab(0x145)](_0x114f20[_0x1cb6ab(0x128)](table,_0xe64758)),process[_0x1cb6ab(0x109)](0x0);}_0x114f20[_0x1cb6ab(0x107)](_0x34f648[_0x1cb6ab(0x13b)],0x191)&&(console['error'](_0x1cb6ab(0x115)),await _0x114f20[_0x1cb6ab(0x12a)](sendInstrumentationEvent,_0x3c1ee4,_0x114f20[_0x1cb6ab(0x11a)],messageTypes[_0x1cb6ab(0x14b)],_0x114f20[_0x1cb6ab(0x13a)],null,_0x3c1ee4),process[_0x1cb6ab(0x109)](0x1)),console[_0x1cb6ab(0x11f)](_0x1cb6ab(0x122)+JSON[_0x1cb6ab(0x10c)](_0x34f648)),await _0x114f20[_0x1cb6ab(0x12a)](sendInstrumentationEvent,_0x3c1ee4,_0x114f20['HzavY'],messageTypes[_0x1cb6ab(0x14b)],_0x114f20[_0x1cb6ab(0x10a)],_0x34f648,_0x3c1ee4),process[_0x1cb6ab(0x109)](0x1);}catch(_0x4a22a7){console[_0x1cb6ab(0x11f)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x4a22a7[_0x1cb6ab(0x138)]),await _0x114f20['CcIdg'](sendInstrumentationEvent,_0x3c1ee4,_0x114f20['HzavY'],messageTypes['ERROR'],_0x114f20[_0x1cb6ab(0x154)],_0x4a22a7,_0x3c1ee4),process[_0x1cb6ab(0x109)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a16_0xd8b42f=a16_0x3c23;(function(_0x46de44,_0x2d58ac){const _0x4d7cc8=a16_0x3c23,_0x1b8a69=_0x46de44();while(!![]){try{const _0x20db04=-parseInt(_0x4d7cc8(0xde))/0x1+parseInt(_0x4d7cc8(0xd5))/0x2+-parseInt(_0x4d7cc8(0xe4))/0x3+parseInt(_0x4d7cc8(0xe1))/0x4+-parseInt(_0x4d7cc8(0xd7))/0x5+parseInt(_0x4d7cc8(0xe7))/0x6+parseInt(_0x4d7cc8(0xe9))/0x7;if(_0x20db04===_0x2d58ac)break;else _0x1b8a69['push'](_0x1b8a69['shift']());}catch(_0x5ea42f){_0x1b8a69['push'](_0x1b8a69['shift']());}}}(a16_0x1c8b,0xb4306));function a16_0x3c23(_0x476b5a,_0x2eeb5c){const _0x1c8b50=a16_0x1c8b();return a16_0x3c23=function(_0x3c23f4,_0x5306c8){_0x3c23f4=_0x3c23f4-0xd5;let _0xfcd295=_0x1c8b50[_0x3c23f4];return _0xfcd295;},a16_0x3c23(_0x476b5a,_0x2eeb5c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xd8b42f(0xe5));exports['command']=a16_0xd8b42f(0xd9),exports[a16_0xd8b42f(0xe6)]=a16_0xd8b42f(0xdb),exports[a16_0xd8b42f(0xe3)]=function(_0x4bf6d6){const _0x525431=a16_0xd8b42f,_0x1af4a9={};_0x1af4a9[_0x525431(0xd8)]='start_commands',_0x1af4a9[_0x525431(0xdf)]='help';const _0x1157fe=_0x1af4a9;return _0x4bf6d6[_0x525431(0xe8)](HELP_HEADER_MESSAGE[_0x525431(0xd9)])[_0x525431(0xd6)](HELP_FOOTER_MESSAGE)[_0x525431(0xda)](_0x1157fe['GUnvp'])[_0x525431(0xdd)]()[_0x525431(0xe0)]()['strict']()[_0x525431(0xdc)](_0x1157fe[_0x525431(0xdf)]);},exports[a16_0xd8b42f(0xe2)]=function(_0x3cb10e){};function a16_0x1c8b(){const _0x44336c=['desc','4389078VDbPKY','usage','2228051rXstig','744904GNpGiE','epilogue','318010Fvmqhi','GUnvp','start','commandDir','Start\x20an\x20existing\x20Automation\x20grid.','help','demandCommand','708458CeiyeI','uPQhK','recommendCommands','2917884yqXmnL','handler','builder','1924845byCQHI','../config/constants'];a16_0x1c8b=function(){return _0x44336c;};return a16_0x1c8b();}
|