browserstack-node-sdk 1.34.23 → 1.34.25
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/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/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-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/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x46d1ad=a9_0x26ee;(function(_0x5610f5,_0xa5e664){const _0x2dea46=a9_0x26ee,_0x3a9543=_0x5610f5();while(!![]){try{const _0x388d94=-parseInt(_0x2dea46(0xfa))/0x1+-parseInt(_0x2dea46(0x12e))/0x2+parseInt(_0x2dea46(0x1fe))/0x3*(parseInt(_0x2dea46(0x1e4))/0x4)+parseInt(_0x2dea46(0x1b6))/0x5*(parseInt(_0x2dea46(0x147))/0x6)+parseInt(_0x2dea46(0x188))/0x7+parseInt(_0x2dea46(0x18a))/0x8+-parseInt(_0x2dea46(0x223))/0x9;if(_0x388d94===_0xa5e664)break;else _0x3a9543['push'](_0x3a9543['shift']());}catch(_0x1632d7){_0x3a9543['push'](_0x3a9543['shift']());}}}(a9_0x4e49,0x3b532));function a9_0x4e49(){const _0x3a55e7=['381308ZFvAvh','gridProfile','ACftm','yDmYi','Grid\x20profile\x20fetched\x20from\x20backend','get-grid-url-auth-failed','UBuKU','createNamespace','createOtherResources','VVyPd','WebSocket','yFyMs','JDFuL','message','WMWQG','VHNIY','Deleting\x20the\x20CloudFormation\x20Stacks','Creating\x20namespace','jtZhz','https','PbkrD','\x27\x20grid\x20profile','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UcAGq','sendEventToBackend','738GHzVgJ','ddxON','ingress-nginx','OtQiw','rZhIs','fmGpr','zgOcZ','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','AxqMv','AbKGK','Create\x20a\x20private/public\x20grid.','VEzuZ','eSgrP','3|2|4|1|0','eslWa','qYUZI','ixEHu','uOMyd','cxNgs','bsRiA','RjnCa','XCwcP','MuoSW','getGridHostname','body','create-grid-checks-non-200','AhqrM','gridName','TOqvL','string','stack','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','handler','pre-spawned-subnets-not-selected','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','fxxlx','default','JlwiS','connectionTimeout','tRzXs','subnets','Grid\x20can\x20be\x20accessed\x20at:\x20','/packages/cli/get-grid-url?gridIdentifier=','ERROR','MVAFC','CGxZO','VYXWa','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid','cluster-name','instanceType','grid-name','JuDzy','sMoET','readNamespacedService','namespace','create-grid-called','UBmdU','EczER','MBuDy','paOcg','description','\x20are\x20not\x20present\x20in\x20VPC:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','minNodes','1805594xBCFVW','rPuXJ','1997216mGXCHi','kWWrH','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','RKwQP','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','cXqJp','ywhBg','WbmTu','UzHLw','gJiHd','managedBy','length','isVPCPresent','Browserstack','Namespace\x20created','Found\x20Subnets:\x20','PijzG','kwjRa','name','../../utils/webSocketUtils','APIeI','includes','../../utils/utilityMethods','parse','uuid','BElBd','QxKOF','s3bucket','alreadyPresent','ESIjx','\x20using\x20\x27','newCluster','Found\x20VPC:\x20','dLgzD','pbzTX','split','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','wPLgX','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Cluster\x20','eexEX','true','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','pMLUI','14085VrKJXa','OaGej','JXFQj','KroDT','isNewAWSCluster','error','zEXoU','metadata','isPrivateGrid','ZVxmj','UlwDY','aKlIx','VjRku','info','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','<PasswordPlaceholder>','AWjMu','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','CXGFS','OjsPz','qSdck','EdgBB','mpRMU','bstackUsername','desc','clusterRegion','tKcxO','sendResourceDataToHST','create-grid-checks-null-response','cloud-provider','qJehA','esipw','QYmJL','nqxJB','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.','xdrEs','Subnets:\x20','Klwlg','bTJvz','wFiRD','zSOso','YhcHF','debug','annotations','stringify','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','627604nfkFQO','QhACi','DlTpr','EELBu','type','CLI_RUN_FINISHED','epilogue','browserVersion','URDRV','private-grid','privateGrid','bblFF','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Wwblf','route53','get-grid-url-null-response','gVyaC','zfXtX','NcJNB','get-grid-url-non-200','vpc','exit','Cluster:\x20','TpzFy','\x20in\x20existing\x20cluster\x20\x27','skip-tls-cert-verify','3OHJieF','delay','ajZZJ','cxqZt','jPGCg','argv','WZLlX','GKMiy','eVmIE','../../utils/instrumentationUtils','https://','cloudProvider','Skip\x20insecure\x20cert\x20verification.','private-ingress-nginx-controller','BIuGB','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','GqwiO','cPSyY','maxNodes','4|8|3|0|7|5|2|1|6','setupNewCluster','SPQcQ','cyOoe','ezJOv','CLI\x20run\x20started','gridProfiles','../../config/constants','lJgHj','AiuIt','gOehs','hBmJO','RlkSA','Hnjak','concurrency','2|10|1|5|0|14|7|9|3|6|12|4|8|11|13','../../utils/gridComponents','createdBy','3514212QVNMnm','eEJJE','awVDs','gijYN','statusCode','TEeHt','xpxmu','xconk','fPocS','RGEKU','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','tbnnW','GsLJj','juVyg','toLowerCase','ZlNIv','oYWxt','MUXXq','rPxLw','bstackAccesskey','pre-spawned-invalid-subnets','UVRmd','region','/wd/hub','EpTSF','jLxwM','cgUAb','VnYIQ','MSTFx','brQJa','grid-profile','QAxTl','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','iMQTG','186870mpSXNz','bVGQl','DdsUM','../../utils/createk8sClient','aPajm','lUgfd','ZjaMz','password','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','replace','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','sXyvh','HBhIM','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','INFO','ORdRS','Cluster\x20created\x20successfully','boolean','isClusterPresent','Spawning\x20the\x20grid\x20','username','Will\x20be\x20spawning\x20the\x20grid\x20','../../cloudproviders/utils','GbvMK','snZqG','HsmUJ','JRcvP','got','QTpld','IkJTm','xFtqo','options','help','YnLEa','create-grid-checks-invalid-profile','clusterName','addListeners','hubVersion','CLI_RUN_STARTED','rdMVD','Spawning\x20Grid\x20on\x20the\x20Cluster','CLI\x20run\x20finished:\x20','JRqlR','BJZso','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','create','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','LOG','uqRKU','RngUh','<UsernamePlaceholder>','aTOub'];a9_0x4e49=function(){return _0x3a55e7;};return a9_0x4e49();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x46d1ad(0x115)),{v4:uuidv4}=require(a9_0x46d1ad(0x1a2)),webSocketUtils=require(a9_0x46d1ad(0x19d)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x46d1ad(0x1a0)),{getCloudProviderObject}=require(a9_0x46d1ad(0x110)),{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_0x46d1ad(0x218)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x46d1ad(0x221)),{createK8sClient}=require(a9_0x46d1ad(0xfd)),{sendInstrumentationEvent}=require(a9_0x46d1ad(0x207));function a9_0x26ee(_0x5556c5,_0x26dba5){const _0x4e49c2=a9_0x4e49();return a9_0x26ee=function(_0x26eedf,_0x144b7c){_0x26eedf=_0x26eedf-0xde;let _0x1271ea=_0x4e49c2[_0x26eedf];return _0x1271ea;},a9_0x26ee(_0x5556c5,_0x26dba5);}exports['command']=a9_0x46d1ad(0x177),exports[a9_0x46d1ad(0x1ce)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x59779f){const _0xb428ba=a9_0x46d1ad,_0x65d4c7={};_0x65d4c7[_0xb428ba(0x163)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x65d4c7['QxKOF']='string',_0x65d4c7[_0xb428ba(0x21b)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x65d4c7[_0xb428ba(0x1c6)]=_0xb428ba(0x20d),_0x65d4c7[_0xb428ba(0xe2)]=_0xb428ba(0x1c4),_0x65d4c7['RGEKU']=_0xb428ba(0xf7),_0x65d4c7['lJgHj']='Create\x20a\x20private/public\x20grid.',_0x65d4c7['Klwlg']=_0xb428ba(0x20a),_0x65d4c7[_0xb428ba(0x1f4)]=_0xb428ba(0x10b),_0x65d4c7[_0xb428ba(0xf6)]=_0xb428ba(0x11a);const _0x271aa9=_0x65d4c7,_0x2ce00a={};_0x2ce00a[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0x163)],_0x2ce00a[_0xb428ba(0x1e8)]=_0x271aa9['QxKOF'];const _0x515a32={};_0x515a32['description']=_0x271aa9['gOehs'],_0x515a32[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x42393f={};_0x42393f[_0xb428ba(0x184)]=_0x271aa9['AWjMu'],_0x42393f[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x198864={};_0x198864[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0xe2)],_0x198864['type']=_0x271aa9['QxKOF'];const _0x142c22={};_0x142c22[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0xe0)],_0x142c22['type']=_0x271aa9['QxKOF'];const _0x5893bb={};_0x5893bb['description']=_0x271aa9[_0xb428ba(0x219)],_0x5893bb[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x2266b0={};_0x2266b0[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0x1db)],_0x2266b0[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1f4)],_0x2266b0[_0xb428ba(0x16b)]=![];const _0x1b452c={};return _0x1b452c[_0xb428ba(0x17a)]=_0x2ce00a,_0x1b452c[_0xb428ba(0xf5)]=_0x515a32,_0x1b452c[_0xb428ba(0x178)]=_0x42393f,_0x1b452c[_0xb428ba(0x1d3)]=_0x198864,_0x1b452c[_0xb428ba(0xed)]=_0x142c22,_0x1b452c[_0xb428ba(0x1ed)]=_0x5893bb,_0x1b452c['skip-tls-cert-verify']=_0x2266b0,_0x59779f['usage'](HELP_HEADER_MESSAGE[_0xb428ba(0x127)])[_0xb428ba(0x1ea)](HELP_FOOTER_MESSAGE)[_0xb428ba(0x119)](_0x1b452c)[_0xb428ba(0x11a)](_0x271aa9[_0xb428ba(0xf6)])[_0xb428ba(0x203)];},exports[a9_0x46d1ad(0x167)]=async function(_0x1c27c0){const _0x36c5bc=a9_0x46d1ad,_0x37c55c={'JRqlR':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','EpTSF':_0x36c5bc(0x164),'JieHf':_0x36c5bc(0x126),'cyOoe':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','CGxZO':_0x36c5bc(0x1c4),'DlTpr':_0x36c5bc(0xf7),'RGlDD':_0x36c5bc(0x151),'TpzFy':_0x36c5bc(0x20a),'JbMQn':_0x36c5bc(0x10b),'QTpld':_0x36c5bc(0x11a),'xpxmu':_0x36c5bc(0x1bb),'zgOcZ':_0x36c5bc(0x220),'gijYN':function(_0x3e22dd,_0x1c6a6a){return _0x3e22dd!==_0x1c6a6a;},'UBuKU':function(_0xc8f6e3,_0x427cea,_0x166de3,_0x2a85c8,_0x3d5c06,_0x53d400,_0x4a69e0,_0x57503e,_0x2ae519,_0x57a314,_0x50731c,_0x56b1e5){return _0xc8f6e3(_0x427cea,_0x166de3,_0x2a85c8,_0x3d5c06,_0x53d400,_0x4a69e0,_0x57503e,_0x2ae519,_0x57a314,_0x50731c,_0x56b1e5);},'juVyg':'http','VnYIQ':'1|4|6|2|5|8|0|7|3','bTJvz':_0x36c5bc(0x216),'brQJa':_0x36c5bc(0x141),'AxqMv':'warn','MSTFx':function(_0x2a3ad1,_0x3d43af){return _0x2a3ad1===_0x3d43af;},'rgisx':function(_0xbcf7e8){return _0xbcf7e8();},'iMQTG':function(_0x1e2891){return _0x1e2891();},'BJZso':'DUtKy','QJBJD':_0x36c5bc(0x1c9),'aTOub':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JDFuL':function(_0x40b584,_0x5789d1,_0x6ce225,_0x257e97,_0x2f3d96,_0x3328b7,_0x57393f){return _0x40b584(_0x5789d1,_0x6ce225,_0x257e97,_0x2f3d96,_0x3328b7,_0x57393f);},'PijzG':_0x36c5bc(0x17f),'jPGCg':'init-not-called','sGkwf':function(_0x34d5fd,_0x325d50,_0x42451f,_0xf2f2da,_0x1cf64c,_0x3715e8,_0x29bb5e){return _0x34d5fd(_0x325d50,_0x42451f,_0xf2f2da,_0x1cf64c,_0x3715e8,_0x29bb5e);},'xFtqo':function(_0x1a8a25){return _0x1a8a25();},'ESIjx':_0x36c5bc(0x12c),'XCwcP':_0x36c5bc(0x1c5),'paOcg':'Adding\x20Websocket\x20listeners','jtZhz':_0x36c5bc(0x17b),'MUXXq':function(_0x2f56ad,_0xb11dcb){return _0x2f56ad!==_0xb11dcb;},'eexEX':_0x36c5bc(0x16c),'GKMiy':_0x36c5bc(0x14e),'JXFQj':function(_0x2b17a7,_0x116409,_0xe0d6ec,_0x1fbe6d,_0x19a6d2,_0xfdd8fa,_0x2e9a40,_0x50a8c1){return _0x2b17a7(_0x116409,_0xe0d6ec,_0x1fbe6d,_0x19a6d2,_0xfdd8fa,_0x2e9a40,_0x50a8c1);},'zfXtX':'prespawned-cluster-args-not-passed','CXGFS':function(_0x1dd7c4,_0x39cda1){return _0x1dd7c4===_0x39cda1;},'bsRiA':_0x36c5bc(0x109),'OaGej':_0x36c5bc(0x144),'sXyvh':'non-aws-azure-cluster','UcAGq':function(_0x21ea6e,_0x4e5abd){return _0x21ea6e===_0x4e5abd;},'IkJTm':_0x36c5bc(0x1b3),'EELBu':'dTxJQ','rPuXJ':_0x36c5bc(0x1bc),'AiuIt':_0x36c5bc(0xec),'YhcHF':'iRlPO','QYmJL':_0x36c5bc(0x1d0),'TEeHt':_0x36c5bc(0x112),'EBZAk':_0x36c5bc(0x1f6),'BIuGB':'GET','wwphd':function(_0x4cea86,_0x10e764,_0x2612f4){return _0x4cea86(_0x10e764,_0x2612f4);},'gJiHd':function(_0x52eeea,_0x4328fb){return _0x52eeea===_0x4328fb;},'OtQiw':'kbnbL','cxNgs':function(_0xe32c41,_0xf9c9bc){return _0xe32c41===_0xf9c9bc;},'YnLEa':function(_0x4dba36,_0x40247c){return _0x4dba36===_0x40247c;},'eEJJE':'tJLFS','cGDhd':_0x36c5bc(0x1e5),'cXzmc':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','HqckP':_0x36c5bc(0x1d2),'ACftm':function(_0xab0118,_0x446e69){return _0xab0118!==_0x446e69;},'URvRM':_0x36c5bc(0xdf),'UzHLw':'ebuhA','epWoa':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','SPQcQ':function(_0x4fd268,_0x5bdde6,_0x4d3f58,_0x54423f,_0x14a933,_0x4d091a,_0x1a3360,_0x34bbf2){return _0x4fd268(_0x5bdde6,_0x4d3f58,_0x54423f,_0x14a933,_0x4d091a,_0x1a3360,_0x34bbf2);},'rZhIs':'create-grid-checks-auth-failed','qYUZI':function(_0x3eb846,_0x18fc22){return _0x3eb846!==_0x18fc22;},'GsLJj':_0x36c5bc(0x17c),'hBmJO':_0x36c5bc(0x160),'WbmTu':_0x36c5bc(0x132),'KroDT':function(_0x2e2629,_0x1d5a62){return _0x2e2629===_0x1d5a62;},'mpRMU':_0x36c5bc(0x175),'UBmdU':function(_0x15ef5f,_0x1094a8,_0x48d5b3,_0xc12ffd,_0x55f2fd,_0x3b575d,_0x3be3a5,_0x4fd40f){return _0x15ef5f(_0x1094a8,_0x48d5b3,_0xc12ffd,_0x55f2fd,_0x3b575d,_0x3be3a5,_0x4fd40f);},'MVAFC':'create-grid-checks-grid-already-exists','ZVxmj':_0x36c5bc(0x1c2),'RngUh':'kHmJz','yFyMs':function(_0x1edf68,_0x3449ea){return _0x1edf68===_0x3449ea;},'GqwiO':_0x36c5bc(0x12a),'APIeI':_0x36c5bc(0xfc),'UlwDY':function(_0x3b3971,_0xbffde4){return _0x3b3971===_0xbffde4;},'ddxON':function(_0x2f49ea,_0x370b5f){return _0x2f49ea===_0x370b5f;},'cXqJp':'XLGKd','URDRV':'JPLsl','WZLlX':_0x36c5bc(0x169),'kwjRa':function(_0x1a49c9,_0x364c1f,_0x16814f,_0x42f2be,_0xa1b206,_0xb2d780,_0x15fe2c,_0x35e1f8){return _0x1a49c9(_0x364c1f,_0x16814f,_0x42f2be,_0xa1b206,_0xb2d780,_0x15fe2c,_0x35e1f8);},'bOQMI':_0x36c5bc(0x11c),'sDfyC':_0x36c5bc(0x13c),'BElBd':'nuTTG','MuoSW':function(_0x330c5b,_0x5bb250){return _0x330c5b!==_0x5bb250;},'EdgBB':_0x36c5bc(0x200),'ZjaMz':_0x36c5bc(0x131),'eSgrP':_0x36c5bc(0xe7),'xconk':_0x36c5bc(0x13d),'AbKGK':function(_0x2b4bff,_0x2f00c5){return _0x2b4bff!==_0x2f00c5;},'xdrEs':function(_0x4e1d0e,_0x4d94bf){return _0x4e1d0e!==_0x4d94bf;},'HsmUJ':'GGBxI','cxqZt':function(_0x4bd9c8,_0x304166){return _0x4bd9c8===_0x304166;},'JRcvP':_0x36c5bc(0x21e),'ZlNIv':_0x36c5bc(0x1d4),'aKlIx':_0x36c5bc(0x211),'rdMVD':function(_0x4fe422,_0x1fca6f){return _0x4fe422!==_0x1fca6f;},'tRzXs':function(_0x51bc83,_0x3c2356){return _0x51bc83===_0x3c2356;},'RjnCa':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','PbkrD':function(_0x24b9ba,_0xcb9c58){return _0x24b9ba!=_0xcb9c58;},'lDwsj':function(_0x3259eb,_0x2f6011){return _0x3259eb!=_0x2f6011;},'esipw':function(_0x178cd1,_0x58ffd5){return _0x178cd1!==_0x58ffd5;},'zSOso':function(_0x1e5bed,_0x4c5fd1){return _0x1e5bed>_0x4c5fd1;},'wPLgX':_0x36c5bc(0xe1),'GbvMK':function(_0x5eaf00,_0x2cd15e,_0x3ba5fc,_0x10170e,_0x1e61bb,_0xe79032,_0x546717,_0x316bb9){return _0x5eaf00(_0x2cd15e,_0x3ba5fc,_0x10170e,_0x1e61bb,_0xe79032,_0x546717,_0x316bb9);},'RKwQP':_0x36c5bc(0x168),'ixEHu':_0x36c5bc(0x18c),'nqxJB':'pre-spawned-invalid-vpc','kWWrH':_0x36c5bc(0xeb),'ozVtt':_0x36c5bc(0x154),'dLgzD':_0x36c5bc(0x10a),'cPSyY':_0x36c5bc(0x1d8),'bVGQl':function(_0x49429a,_0x332785){return _0x49429a===_0x332785;},'uOMyd':function(_0x1f1f2b,_0xf9a9cc,_0x41b504){return _0x1f1f2b(_0xf9a9cc,_0x41b504);},'aPajm':function(_0x5e951a,_0x411f7c){return _0x5e951a===_0x411f7c;},'pbzTX':function(_0x57bf07,_0xa6ee0e){return _0x57bf07(_0xa6ee0e);},'fxxlx':_0x36c5bc(0x13f),'eVmIE':function(_0x7c16f1,_0xbd2886){return _0x7c16f1!==_0xbd2886;},'SzZec':'default','lUgfd':_0x36c5bc(0x197),'ywhBg':'Namespace\x20Created','UsvII':_0x36c5bc(0x198),'MBuDy':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','qSdck':_0x36c5bc(0x122),'bblFF':function(_0xfe0f0,_0x5313be,_0x317922,_0x46676f,_0xa01aa2,_0x506dd8,_0x52d753,_0xc681bd,_0x5baeb0,_0x2201e0,_0x544c66){return _0xfe0f0(_0x5313be,_0x317922,_0x46676f,_0xa01aa2,_0x506dd8,_0x52d753,_0xc681bd,_0x5baeb0,_0x2201e0,_0x544c66);},'cgUAb':'Grid\x20spawned\x20on\x20the\x20cluster','VEzuZ':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Wwblf':function(_0x43aac8,_0x33ac9d,_0x1bbb07,_0x3b4952,_0x4552f9){return _0x43aac8(_0x33ac9d,_0x1bbb07,_0x3b4952,_0x4552f9);},'fmGpr':_0x36c5bc(0x20b),'pMLUI':'ingress-nginx-controller','HBhIM':_0x36c5bc(0x149),'EczER':_0x36c5bc(0x18e),'RlkSA':function(_0x5a5d66,_0x2445d8,_0x5efb99,_0x49a37c,_0x4d5035,_0x1eda30,_0x11b5e2,_0xd00090){return _0x5a5d66(_0x2445d8,_0x5efb99,_0x49a37c,_0x4d5035,_0x1eda30,_0x11b5e2,_0xd00090);},'wFiRD':_0x36c5bc(0x1f3),'ezJOv':_0x36c5bc(0x1c7),'ySAED':_0x36c5bc(0x133),'awVDs':function(_0xb58467,_0x4f3f33){return _0xb58467!==_0x4f3f33;},'eslWa':_0x36c5bc(0x1f7),'jLxwM':_0x36c5bc(0x13e),'rPxLw':function(_0xf997db,_0x20182a,_0x4076e5,_0x4f0e78,_0x23513c,_0x35c15e){return _0xf997db(_0x20182a,_0x4076e5,_0x4f0e78,_0x23513c,_0x35c15e);},'VVyPd':function(_0xe393c3,_0x34c40e,_0xaa8155,_0x58ccbb,_0x36205a,_0xa0ec98,_0x5646f0){return _0xe393c3(_0x34c40e,_0xaa8155,_0x58ccbb,_0x36205a,_0xa0ec98,_0x5646f0);},'AhqrM':'grid-spawning-failed'};let _0x592cda=![],_0x23951c=![],_0x14a123,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x584d90,_0x27b907,_0x5a1461,_0x313009,_0x4baa9a,_0x363b83,_0x31bbec,_0x42cfcf,_0x99aedb=0x1,_0x48dac6=0xe;try{global_registry['requestId']=_0x37c55c['rgisx'](uuidv4),global_registry['isPrivateGrid']=![];if(!fs['existsSync'](_0x37c55c[_0x36c5bc(0xf9)](getCredentialsPath))){if(_0x37c55c[_0x36c5bc(0x226)](_0x37c55c[_0x36c5bc(0x125)],_0x37c55c['QJBJD']))console[_0x36c5bc(0x1bb)](_0x37c55c[_0x36c5bc(0x12d)]),await _0x37c55c[_0x36c5bc(0x13a)](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x202)],null,_0x1c27c0),process[_0x36c5bc(0x1f9)](0x1);else{const _0x557fb0={};_0x557fb0['description']=_0x37c55c[_0x36c5bc(0x124)],_0x557fb0[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x47b381={};_0x47b381['description']=_0x37c55c['JieHf'],_0x47b381[_0x36c5bc(0x1e8)]=_0x37c55c['EpTSF'];const _0x4278ad={};_0x4278ad[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x214)],_0x4278ad['type']=_0x37c55c[_0x36c5bc(0xef)];const _0x126195={};_0x126195[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x174)],_0x126195[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x477845={};_0x477845[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x1e6)],_0x477845[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x26eea2={};_0x26eea2[_0x36c5bc(0x184)]=_0x37c55c['RGlDD'],_0x26eea2[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x5af0a6={};_0x5af0a6[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x1fb)],_0x5af0a6[_0x36c5bc(0x1e8)]=_0x37c55c['JbMQn'],_0x5af0a6[_0x36c5bc(0x16b)]=![];const _0x890000={};return _0x890000[_0x36c5bc(0x17a)]=_0x557fb0,_0x890000[_0x36c5bc(0xf5)]=_0x47b381,_0x890000[_0x36c5bc(0x178)]=_0x4278ad,_0x890000[_0x36c5bc(0x1d3)]=_0x126195,_0x890000[_0x36c5bc(0xed)]=_0x477845,_0x890000[_0x36c5bc(0x1ed)]=_0x26eea2,_0x890000[_0x36c5bc(0x1fd)]=_0x5af0a6,_0x3fb468['usage'](_0x28e3ed[_0x36c5bc(0x127)])[_0x36c5bc(0x1ea)](_0x471b67)[_0x36c5bc(0x119)](_0x890000)['help'](_0x37c55c[_0x36c5bc(0x116)])[_0x36c5bc(0x203)];}}await _0x37c55c['sGkwf'](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x108)],null,null,_0x1c27c0);const _0x353408=JSON[_0x36c5bc(0x1a1)](fs['readFileSync'](_0x37c55c[_0x36c5bc(0x118)](getCredentialsPath)));global_registry[_0x36c5bc(0x1cd)]=_0x353408['Browserstack'][_0x36c5bc(0x10e)],global_registry[_0x36c5bc(0xea)]=_0x353408['Browserstack'][_0x36c5bc(0x101)];const _0x358303=WS_ENDPOINT[_0x36c5bc(0x103)](_0x37c55c[_0x36c5bc(0x1a7)],_0x353408['Browserstack']['username'])[_0x36c5bc(0x103)](_0x37c55c[_0x36c5bc(0x15c)],_0x353408['Browserstack']['password']),_0x3e7f5b={};_0x3e7f5b[_0x36c5bc(0x138)]=ws,_0x3e7f5b[_0x36c5bc(0x16d)]=0x36ee80,_0x363b83=new ReconnectingWebSocket(_0x358303,[],_0x3e7f5b),logger[_0x36c5bc(0x1e0)](_0x37c55c[_0x36c5bc(0x183)]),webSocketUtils[_0x36c5bc(0x11e)](_0x363b83,_0x1c27c0['user'],_0x1c27c0[_0x36c5bc(0x101)]);const _0x44810f=_0x1c27c0[_0x36c5bc(0x162)]||DEFAULT_GRID_NAME;if(_0x1c27c0['clusterName']||_0x1c27c0[_0x36c5bc(0x209)]||_0x1c27c0[_0x36c5bc(0xed)]){if(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c['jtZhz'],_0x37c55c[_0x36c5bc(0x140)])){!(_0x1c27c0['clusterName']&&_0x1c27c0[_0x36c5bc(0x209)]&&_0x1c27c0[_0x36c5bc(0xed)])&&(_0x37c55c[_0x36c5bc(0xe8)](_0x37c55c[_0x36c5bc(0x1b2)],_0x37c55c[_0x36c5bc(0x1b2)])?(_0x2a01ca[_0x36c5bc(0x1c3)]('Cluster:\x20'+_0x52cd6e[_0x36c5bc(0x11d)]+_0x36c5bc(0x1b0)),_0x4d7291=![],_0x9c719=!![]):(_0x14a123=_0x37c55c[_0x36c5bc(0x205)],await _0x37c55c['JXFQj'](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c[_0x36c5bc(0x1f5)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));if(![AWS,AZURE,GCP][_0x36c5bc(0x19f)](_0x1c27c0[_0x36c5bc(0x209)][_0x36c5bc(0xe5)]())){if(_0x37c55c[_0x36c5bc(0x1c8)](_0x37c55c[_0x36c5bc(0x15a)],_0x37c55c[_0x36c5bc(0x15a)]))_0x14a123=_0x37c55c[_0x36c5bc(0x1b7)],await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x105)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1);else throw new _0x5061f9(_0x36c5bc(0x1b1)+_0xcf026a+_0x36c5bc(0x107));}_0x1c27c0[_0x36c5bc(0x1ee)]&&_0x37c55c[_0x36c5bc(0x145)](_0x1c27c0[_0x36c5bc(0x1ee)][_0x36c5bc(0xe5)](),_0x37c55c[_0x36c5bc(0x117)])&&(_0x37c55c[_0x36c5bc(0x226)](_0x37c55c[_0x36c5bc(0x1e7)],_0x37c55c[_0x36c5bc(0x1e7)])?_0x3a475f=null:global_registry[_0x36c5bc(0x1be)]=!![]);global_registry[_0x36c5bc(0x209)]=_0x1c27c0[_0x36c5bc(0x209)],global_registry[_0x36c5bc(0x1cf)]=_0x1c27c0[_0x36c5bc(0xed)],global_registry[_0x36c5bc(0x11d)]=_0x1c27c0[_0x36c5bc(0x11d)];const _0x472a70=await _0x37c55c['JDFuL'](getCloudProviderObject,_0x1c27c0['cloudProvider'],_0x1c27c0[_0x36c5bc(0x11d)],_0x44810f,_0x363b83,webSocketUtils,_0x1c27c0),_0x3352a8=await _0x472a70[_0x36c5bc(0x10c)]();if(!_0x3352a8)_0x37c55c['CXGFS'](_0x37c55c[_0x36c5bc(0x189)],_0x37c55c[_0x36c5bc(0x21a)])?_0x2ba702[_0x36c5bc(0x1bb)](_0x36c5bc(0x102)+_0x33739d+'\x20\x0a'+_0x255695[_0x36c5bc(0x1e2)](_0x2cff26[_0x36c5bc(0x165)])):(logger[_0x36c5bc(0x1c3)](_0x36c5bc(0x1fa)+_0x1c27c0[_0x36c5bc(0x11d)]+_0x36c5bc(0x1b0)),_0x592cda=![],_0x23951c=!![]);else{if(_0x37c55c[_0x36c5bc(0xe8)](_0x37c55c[_0x36c5bc(0x1df)],_0x37c55c[_0x36c5bc(0x1d6)]))_0x592cda=!![];else{const _0x5efff7={};_0x5efff7[_0x36c5bc(0x1e8)]=_0x2fa009[_0x36c5bc(0x129)],_0x5efff7[_0x36c5bc(0x13b)]=_0x4852aa,_0x3e1b8f['sendEventToBackend'](_0x3c0a21,_0x5efff7,_0x37c55c[_0x36c5bc(0x229)],!![]);}}_0xeb4943=_0x1c27c0[_0x36c5bc(0x11d)],_0x1f5be3=_0x1c27c0[_0x36c5bc(0x209)]['toLowerCase'](),_0x3dcbb9=_0x1c27c0[_0x36c5bc(0xed)];}else _0x32fd7f['region']=_0x4d11a3,_0x169276['cloudProvider']=_0x3acadf,_0x1babcb[_0x36c5bc(0x1a9)]=!![];}else _0x1c27c0['gridProfile']&&(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c[_0x36c5bc(0x228)],_0x37c55c['EBZAk'])?_0x539571['isPrivateGrid']=!![]:global_registry['gridProfile']=_0x1c27c0[_0x36c5bc(0x12f)]);global_registry[_0x36c5bc(0x162)]=_0x1c27c0[_0x36c5bc(0x162)];const _0x1c6bff={'method':_0x37c55c[_0x36c5bc(0x20c)],'headers':_0x37c55c['wwphd'](getAuthHeader,_0x353408[_0x36c5bc(0x197)][_0x36c5bc(0x10e)],_0x353408[_0x36c5bc(0x197)][_0x36c5bc(0x101)]),'throwHttpErrors':![]},_0x125a53={};_0x125a53[_0x36c5bc(0x162)]=_0x44810f;const _0x419206=_0x125a53;_0x23951c&&(_0x37c55c[_0x36c5bc(0x193)](_0x37c55c[_0x36c5bc(0x14a)],_0x37c55c[_0x36c5bc(0x14a)])?(_0x419206[_0x36c5bc(0xed)]=_0x3dcbb9,_0x419206[_0x36c5bc(0x209)]=_0x1f5be3,_0x419206['newCluster']=!![]):_0x339b83[_0x36c5bc(0x1be)]=!![]);const _0x558100=_0x36c5bc(0x208)+AG_API_URL+'/packages/cli/create-grid-checks',_0x374c9a={'searchParams':_0x419206,'throwHttpErrors':![],..._0x1c6bff},_0xab3f18=_0x374c9a,_0x20a06c=await _0x37c55c['wwphd'](got,_0x558100,_0xab3f18);(_0x37c55c[_0x36c5bc(0x159)](_0x20a06c,null)||_0x37c55c[_0x36c5bc(0x11b)](_0x20a06c,undefined))&&(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c[_0x36c5bc(0x224)],_0x37c55c['cGDhd'])?_0x4962d3=_0x14e3d5[_0x162cef[_0x36c5bc(0x12f)]]:(_0x14a123=_0x37c55c['cXzmc'],await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c['HqckP'],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process['exit'](0x1)));_0x37c55c[_0x36c5bc(0x145)](_0x20a06c['statusCode'],0x191)&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c['URvRM'],_0x37c55c[_0x36c5bc(0x192)])?(_0x14a123=_0x37c55c['epWoa'],await _0x37c55c[_0x36c5bc(0x213)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c[_0x36c5bc(0x14b)],_0x37c55c['xpxmu']),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)):_0x2e6de0[_0x36c5bc(0x12f)]=_0x47881a['gridProfile']);_0x37c55c[_0x36c5bc(0x156)](_0x20a06c[_0x36c5bc(0x227)],0xc8)&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c['GsLJj'],_0x37c55c[_0x36c5bc(0xe3)])?_0x5647e7=!![]:(_0x14a123='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x20a06c[_0x36c5bc(0x15f)]),await _0x37c55c['SPQcQ'](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x21c)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));const _0xd596e=JSON[_0x36c5bc(0x1a1)](_0x20a06c['body']),_0x1f0dec={};_0x1f0dec[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x120)],_0x1f0dec[_0x36c5bc(0x13b)]=_0x37c55c['bTJvz'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x1f0dec);const _0x44b10e={};_0x44b10e['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x44b10e[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x191)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x44b10e);if(_0xd596e[_0x36c5bc(0x1a6)]){if(_0x37c55c[_0x36c5bc(0x1b9)](_0x37c55c[_0x36c5bc(0x1cc)],_0x37c55c[_0x36c5bc(0x1cc)]))_0x14a123=_0x36c5bc(0x1e3)+_0x44810f+_0x36c5bc(0x1f0),await _0x37c55c[_0x36c5bc(0x180)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x173)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1);else{const _0x34b779=_0x37c55c[_0x36c5bc(0x14d)][_0x36c5bc(0x1ad)]('|');let _0x1fb486=0x0;while(!![]){switch(_0x34b779[_0x1fb486++]){case'0':_0x78f1cb=_0x3fe463[_0x36c5bc(0x179)];continue;case'1':const _0x17944c={};_0x17944c['type']=_0x42dbe4[_0x36c5bc(0x129)],_0x17944c['message']=_0x4f2a2e,_0x158466[_0x36c5bc(0x146)](_0x2a97f4,_0x17944c);continue;case'2':_0x43cab8='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x4c1ed0;continue;case'3':_0x4f3c59=_0x186c4c[_0x36c5bc(0x1a5)];continue;case'4':_0x1176bd=_0x49a6e5[_0x36c5bc(0x11f)];continue;case'5':_0x3d7865=_0x1032c7[_0x36c5bc(0x21f)];continue;case'6':_0x56ebc2=_0x35b9a8[_0x36c5bc(0x187)];continue;case'7':_0x57092b=null;continue;case'8':_0xa4124e=_0x125df2[_0x36c5bc(0x1eb)];continue;case'9':_0x5d2f5d=null;continue;case'10':_0x2c6092[_0x36c5bc(0x1c3)](_0x131e17);continue;case'11':_0x37c55c['gijYN'](_0xba160['privateGrid'],_0x48ec56)&&_0x29b59e[_0x36c5bc(0x1ee)]&&(_0x43d4b6[_0x36c5bc(0x1be)]=!![]);continue;case'12':_0x18a62b=_0x41f6fa[_0x36c5bc(0x210)];continue;case'13':_0x37c55c[_0x36c5bc(0x134)](_0xe5503,_0x1aab40,_0x4c9a3c,_0x304a13,_0x45de18,_0x541630,_0x1cbd33,_0x15db32,_0x201fc4,_0x11702b,_0x2eb11c,_0x215a21);continue;case'14':_0x47a2b4=null;continue;}break;}}}const _0x369e3a=_0xd596e[_0x36c5bc(0x217)];let _0x4d76be=_0x369e3a[_0xd596e['defaultGridProfile']];_0x1c27c0[_0x36c5bc(0x12f)]&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c[_0x36c5bc(0x1bf)],_0x37c55c[_0x36c5bc(0x12b)])?_0x4d76be=_0x369e3a[_0x1c27c0[_0x36c5bc(0x12f)]]:_0x4a6642[_0x36c5bc(0x1c3)](_0x36c5bc(0x1aa)+_0x2dd870+'\x20'));if(_0x37c55c[_0x36c5bc(0x1c8)](_0x592cda,![])&&_0x37c55c['MSTFx'](_0x23951c,![])){if(_0x37c55c[_0x36c5bc(0x139)](_0x37c55c[_0x36c5bc(0x20e)],_0x37c55c[_0x36c5bc(0x19e)]))_0x402ab8[_0x36c5bc(0x1d1)]();else{_0x37c55c[_0x36c5bc(0x1c0)](_0x4d76be,undefined)&&(_0x37c55c[_0x36c5bc(0x148)](_0x37c55c[_0x36c5bc(0x18f)],_0x37c55c[_0x36c5bc(0x1ec)])?_0x48b9f7=_0x37c55c[_0x36c5bc(0xe4)]:(_0x14a123=_0x37c55c[_0x36c5bc(0x204)],await _0x37c55c[_0x36c5bc(0x19b)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c['bOQMI'],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));global_registry['gridProfileId']=_0x4d76be['id'],_0x14a123=_0x36c5bc(0x10f)+_0x44810f+_0x36c5bc(0x1a8)+_0x4d76be[_0x36c5bc(0x19c)]+_0x36c5bc(0x143),logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x2ec0dc={};_0x2ec0dc[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x2ec0dc[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x2ec0dc),_0x1f5be3=_0x4d76be[_0x36c5bc(0x209)],_0xeb4943=_0x4d76be['clusterName'],_0x3dcbb9=_0x4d76be[_0x36c5bc(0xed)],_0x44e994=_0x4d76be[_0x36c5bc(0x21f)],_0x3d00ac=_0x4d76be[_0x36c5bc(0x179)],_0x584d90=_0x4d76be[_0x36c5bc(0x1f8)],_0x27b907=_0x4d76be['securityGroups'],_0x5a1461=_0x4d76be[_0x36c5bc(0x16f)],_0x313009=_0x4d76be[_0x36c5bc(0x1a5)],_0x99aedb=_0x4d76be[_0x36c5bc(0x187)],_0x48dac6=_0x4d76be[_0x36c5bc(0x210)],_0x31bbec=_0xd596e[_0x36c5bc(0x11f)],_0x42cfcf=_0xd596e[_0x36c5bc(0x1eb)];_0x584d90&&_0x37c55c[_0x36c5bc(0x139)](_0x584d90[_0x36c5bc(0x195)],0x0)&&(_0x37c55c[_0x36c5bc(0x156)](_0x37c55c['sDfyC'],_0x37c55c[_0x36c5bc(0x1a3)])?_0x584d90=null:_0x19924e[_0x36c5bc(0x1c3)](_0x36c5bc(0x199)+_0x7db34e[_0x36c5bc(0x1e2)](_0x40600b)+'\x20'));_0x5a1461&&_0x37c55c[_0x36c5bc(0x11b)](_0x5a1461[_0x36c5bc(0x195)],0x0)&&(_0x37c55c[_0x36c5bc(0x15d)](_0x37c55c[_0x36c5bc(0x1cb)],_0x37c55c['EdgBB'])?_0x231b72=null:_0x5a1461=null);if(_0x37c55c[_0x36c5bc(0x130)](_0x4d76be['privateGrid'],undefined)&&_0x4d76be[_0x36c5bc(0x1ee)]){if(_0x37c55c[_0x36c5bc(0x159)](_0x37c55c['ZjaMz'],_0x37c55c[_0x36c5bc(0x100)]))global_registry['isPrivateGrid']=!![];else{const _0x4f1053=_0x37c55c[_0x36c5bc(0xf2)][_0x36c5bc(0x1ad)]('|');let _0x518e80=0x0;while(!![]){switch(_0x4f1053[_0x518e80++]){case'0':_0x1fea57[_0x36c5bc(0x11d)]=_0x39f091;continue;case'1':const _0x2246b4={};_0x2246b4[_0x36c5bc(0x1e8)]=_0x9d7878[_0x36c5bc(0x120)],_0x2246b4[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x1dc)],_0x3d4b54['sendEventToBackend'](_0x2ced65,_0x2246b4);continue;case'2':const _0x133fc6={};_0x133fc6[_0x36c5bc(0x1e8)]=_0x5459f7[_0x36c5bc(0x129)],_0x133fc6[_0x36c5bc(0x13b)]=_0x535dff,_0x3eba50[_0x36c5bc(0x146)](_0x34be6b,_0x133fc6);continue;case'3':_0x123418[_0x36c5bc(0x1eb)]=_0x50a5f1['browserVersion'];continue;case'4':_0x55166f=_0x36c5bc(0x10d)+_0x48406c+_0x36c5bc(0x1fc)+_0x2d563e+'\x27';continue;case'5':_0x232488[_0x36c5bc(0x209)]=_0x308406;continue;case'6':_0x38d1a5[_0x36c5bc(0x1c3)](_0xbba055);continue;case'7':_0x4cfc6c['hubVersion']=_0x340ba9[_0x36c5bc(0x11f)];continue;case'8':_0x58b113['clusterRegion']=_0x28accf;continue;}break;}}}_0x37c55c[_0x36c5bc(0x134)](updateGlobalRegistryWithConfig,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x313009,_0x4d76be,_0x31bbec,_0x42cfcf,_0x99aedb,_0x48dac6);}}else{if(_0x37c55c[_0x36c5bc(0x139)](_0x23951c,!![])){if(_0x37c55c[_0x36c5bc(0x1c8)](_0x37c55c[_0x36c5bc(0x153)],_0x37c55c[_0x36c5bc(0xde)]))_0x4678fa[_0x36c5bc(0x1be)]=!![];else{_0x14a123=_0x36c5bc(0x166)+_0x44810f,logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x445309={};_0x445309[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x445309[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x445309),_0x44e994=_0x4d76be[_0x36c5bc(0x21f)],_0x3d00ac=_0x4d76be[_0x36c5bc(0x179)],_0x584d90=null,_0x27b907=null,_0x5a1461=null,_0x313009=_0x4d76be['s3bucket'],_0x99aedb=_0x4d76be[_0x36c5bc(0x187)],_0x48dac6=_0x4d76be[_0x36c5bc(0x210)],_0x31bbec=_0xd596e[_0x36c5bc(0x11f)],_0x42cfcf=_0xd596e[_0x36c5bc(0x1eb)],_0x37c55c[_0x36c5bc(0x150)](_0x4d76be[_0x36c5bc(0x1ee)],undefined)&&_0x4d76be[_0x36c5bc(0x1ee)]&&(_0x37c55c[_0x36c5bc(0x1d9)](_0x37c55c[_0x36c5bc(0x113)],_0x37c55c[_0x36c5bc(0x113)])?(_0x1ebc61=_0x352458['route53'],_0x105563=_0x37c55c[_0x36c5bc(0xf4)]):global_registry['isPrivateGrid']=!![]),_0x37c55c[_0x36c5bc(0x134)](updateGlobalRegistryWithConfig,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x313009,_0x4d76be,_0x31bbec,_0x42cfcf,_0x99aedb,_0x48dac6);}}else{if(_0x37c55c[_0x36c5bc(0x201)](_0x37c55c[_0x36c5bc(0x114)],_0x37c55c[_0x36c5bc(0xe6)])){const _0x2c7c93={};_0x2c7c93['type']=_0x17ce3c[_0x36c5bc(0x129)],_0x2c7c93[_0x36c5bc(0x13b)]=_0x36c5bc(0x1b1)+_0x1cf469+_0x36c5bc(0x186),_0x1e1e99[_0x36c5bc(0x146)](_0x42bc39,_0x2c7c93,_0x37c55c[_0x36c5bc(0x14f)]),_0x50c571['info'](_0x36c5bc(0x1b1)+_0x1e4de6+_0x36c5bc(0x186)),_0x53a844=!![];if(_0x37c55c[_0x36c5bc(0xf3)](_0x4a0a4f,!![]))throw new _0x53786f(_0x36c5bc(0x1b1)+_0x53c2df+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x27c87c=_0x37c55c[_0x36c5bc(0x1c1)][_0x36c5bc(0x1ad)]('|');let _0xeaf314=0x0;while(!![]){switch(_0x27c87c[_0xeaf314++]){case'0':const _0x107aae={};_0x107aae[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x107aae[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x107aae);continue;case'1':global_registry[_0x36c5bc(0x11f)]=_0xd596e['hubVersion'];continue;case'2':global_registry[_0x36c5bc(0x11d)]=_0xeb4943;continue;case'3':logger['info'](_0x14a123);continue;case'4':const _0x9de30d={};_0x9de30d[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x120)],_0x9de30d[_0x36c5bc(0x13b)]=_0x37c55c['bTJvz'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x9de30d);continue;case'5':global_registry[_0x36c5bc(0x1cf)]=_0x3dcbb9;continue;case'6':global_registry['browserVersion']=_0xd596e['browserVersion'];continue;case'7':global_registry['cloudProvider']=_0x1f5be3;continue;case'8':_0x14a123=_0x36c5bc(0x10d)+_0x44810f+_0x36c5bc(0x1fc)+_0xeb4943+'\x27';continue;}break;}}}}const _0x3e59f1=await _0x37c55c['sGkwf'](getCloudProviderObject,_0x1f5be3,_0xeb4943,_0x44810f,_0x363b83,webSocketUtils,_0x1c27c0);_0x37c55c[_0x36c5bc(0x121)](_0x1f5be3,AZURE)&&_0x3e59f1[_0x36c5bc(0x1d1)]();let _0x28c8fd;if(_0x37c55c[_0x36c5bc(0x16e)](_0x592cda,![])){_0x14a123=_0x36c5bc(0x176)+_0x3dcbb9+').';const _0x4df2ce={};_0x4df2ce[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x4df2ce[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x4df2ce),logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x363bd6=await _0x3e59f1[_0x36c5bc(0x10c)]();if(_0x363bd6){const _0x2e8767={};_0x2e8767[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x2e8767[_0x36c5bc(0x13b)]=_0x36c5bc(0x1b1)+_0xeb4943+_0x36c5bc(0x186),webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x2e8767,_0x37c55c[_0x36c5bc(0x14f)]),logger[_0x36c5bc(0x1c3)]('Cluster\x20'+_0xeb4943+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x592cda=!![];if(_0x37c55c[_0x36c5bc(0x139)](_0x23951c,!![]))throw new Error(_0x36c5bc(0x1b1)+_0xeb4943+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x1873a6={};_0x1873a6['type']=WS_EVENTS['LOG'],_0x1873a6[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x15b)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x1873a6),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x15b)]);const _0x2b25de=_0x37c55c[_0x36c5bc(0x142)](_0x584d90,null)&&_0x37c55c[_0x36c5bc(0x156)](_0x584d90,undefined),_0x5be318=_0x37c55c['lDwsj'](_0x5a1461,null)&&_0x37c55c[_0x36c5bc(0x1d5)](_0x5a1461,undefined)&&_0x37c55c[_0x36c5bc(0x1de)](_0x5a1461['length'],0x0);if(_0x2b25de){_0x37c55c[_0x36c5bc(0x159)](_0x5be318,![])&&(_0x14a123=_0x37c55c[_0x36c5bc(0x1af)],await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x18d)],_0x37c55c[_0x36c5bc(0x229)]),logger['error'](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));const _0x3281b8=await _0x3e59f1[_0x36c5bc(0x196)](_0x584d90);_0x37c55c[_0x36c5bc(0x11b)](_0x3281b8,![])?(_0x14a123=_0x37c55c[_0x36c5bc(0x157)],await _0x37c55c[_0x36c5bc(0x180)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x1d7)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)):logger['info'](_0x36c5bc(0x1aa)+_0x584d90+'\x20');const _0x2809c2=await _0x3e59f1['isSubnetsValid'](_0x5a1461,_0x584d90);_0x37c55c['cxNgs'](_0x2809c2[0x0],![])?(_0x14a123=_0x36c5bc(0x1da)+JSON[_0x36c5bc(0x1e2)](_0x2809c2[0x1])+_0x36c5bc(0x185)+_0x584d90+_0x36c5bc(0x104),await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x18b)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process['exit'](0x1)):logger[_0x36c5bc(0x1c3)](_0x36c5bc(0x199)+JSON[_0x36c5bc(0x1e2)](_0x5a1461)+'\x20'),await _0x3e59f1['setupNewCluster'](_0x584d90,_0x5a1461);}else{const _0x4562e5=_0x37c55c['ozVtt'][_0x36c5bc(0x1ad)]('|');let _0x54933d=0x0;while(!![]){switch(_0x4562e5[_0x54933d++]){case'0':logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x1ab)]);continue;case'1':const _0x16d39d={};_0x16d39d['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x16d39d[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x1ab)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x16d39d);continue;case'2':logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x20f)]);continue;case'3':const _0x379c6d={};_0x379c6d[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x379c6d[_0x36c5bc(0x13b)]=_0x37c55c['cPSyY'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x379c6d);continue;case'4':await _0x3e59f1[_0x36c5bc(0x212)](_0x584d90,_0x5a1461);continue;}break;}}}}_0x592cda&&_0x37c55c[_0x36c5bc(0xfb)](_0x1f5be3,AZURE)&&(await _0x3e59f1['updateClusterAlreadyPresent'](),await _0x3e59f1[_0x36c5bc(0x136)]());const [_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x5aca63,_0x4ac675]=await _0x37c55c[_0x36c5bc(0x158)](createK8sClient,_0x3e59f1,_0x1c27c0['skipTlsCertVerify']);_0x37c55c[_0x36c5bc(0xfe)](_0x592cda,![])&&_0x37c55c['KroDT'](_0x1f5be3,AWS)&&(global_registry[_0x36c5bc(0x1ba)]=!![],_0x28c8fd=await _0x3e59f1['setupAutoscaler'](_0x4b62ac,_0x1c27c0));try{_0x4baa9a=_0x37c55c[_0x36c5bc(0x1ac)](kebabCase,_0x44810f),logger[_0x36c5bc(0x1c3)](_0x37c55c['fxxlx']);const _0x3ce639={};_0x3ce639[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x3ce639[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x16a)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x3ce639);if(_0x37c55c[_0x36c5bc(0x206)](_0x4baa9a,_0x37c55c['SzZec'])){const _0x594f84={};_0x594f84[_0x36c5bc(0x222)]=_0x37c55c[_0x36c5bc(0xff)],_0x594f84[_0x36c5bc(0x194)]=_0x37c55c[_0x36c5bc(0xff)];const _0x404c9b={};_0x404c9b[_0x36c5bc(0x19c)]=_0x4baa9a,_0x404c9b[_0x36c5bc(0x1e1)]=_0x594f84;const _0x4cb42e={};_0x4cb42e[_0x36c5bc(0x1bd)]=_0x404c9b;const _0xbeac77=_0x4cb42e,_0x17d38a={};_0x17d38a[_0x36c5bc(0x15f)]=_0xbeac77,await _0x4b62ac[_0x36c5bc(0x135)](_0x17d38a),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x190)]);}const _0x3db11b={};_0x3db11b[_0x36c5bc(0x1e8)]=WS_EVENTS['LOG'],_0x3db11b[_0x36c5bc(0x13b)]=_0x37c55c['UsvII'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x3db11b);const _0x56db50={};_0x56db50[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x56db50[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x182)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x56db50),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x1ca)]);let _0x1fcee7={};_0x37c55c[_0x36c5bc(0x1c0)](_0x1f5be3,AZURE)&&(_0x1fcee7={'clientId':await _0x3e59f1['getResourceClientId']('turboscale-managed-identity-'+_0xeb4943)});await _0x37c55c[_0x36c5bc(0x1ef)](addGridComponents,_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x4baa9a,_0xeb4943,_0x28c8fd,_0x5aca63,_0x4ac675,_0x1fcee7),_0x14a123=_0x37c55c[_0x36c5bc(0xf1)],logger['info'](_0x14a123);const _0x4faba2={};_0x4faba2[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x4faba2['message']=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x4faba2),_0x14a123=_0x37c55c[_0x36c5bc(0x152)],logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x1df75d={};_0x1df75d['type']=WS_EVENTS['LOG'],_0x1df75d['message']=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x1df75d),await _0x37c55c[_0x36c5bc(0x1f1)](waitForDeployment,_0x3388fa,_0x4baa9a,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x22517d=await _0x37c55c['wwphd'](getNamespaceUID,_0x4b62ac,_0x4baa9a),_0x3ed1b9=global_registry[_0x36c5bc(0x1be)]?_0x37c55c[_0x36c5bc(0x14c)]:_0x37c55c[_0x36c5bc(0x1b5)],_0x13050e={};_0x13050e[_0x36c5bc(0x19c)]=_0x3ed1b9,_0x13050e[_0x36c5bc(0x17e)]=_0x37c55c[_0x36c5bc(0x106)];const _0x3387f4=await _0x4b62ac[_0x36c5bc(0x17d)](_0x13050e);let _0x5b653f=_0x3e59f1[_0x36c5bc(0x15e)](_0x3387f4)+'/'+_0x4baa9a,_0x5b0e41=_0x37c55c[_0x36c5bc(0xe4)];try{const _0x4d43b1='https://'+AG_API_URL+_0x36c5bc(0x171)+_0x22517d,_0x6d31bc=await _0x37c55c[_0x36c5bc(0x158)](got,_0x4d43b1,_0x1c6bff);(_0x37c55c[_0x36c5bc(0x16e)](_0x6d31bc,null)||_0x37c55c[_0x36c5bc(0x16e)](_0x6d31bc,undefined))&&(_0x14a123=_0x37c55c[_0x36c5bc(0x181)],await _0x37c55c[_0x36c5bc(0x21d)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x1dd)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));_0x37c55c[_0x36c5bc(0xfe)](_0x6d31bc['statusCode'],0x191)&&(_0x14a123=_0x37c55c[_0x36c5bc(0x215)],await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c['ySAED'],_0x37c55c['xpxmu']),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));_0x37c55c[_0x36c5bc(0x225)](_0x6d31bc[_0x36c5bc(0x227)],0xc8)&&(_0x14a123=_0x36c5bc(0xf8)+JSON[_0x36c5bc(0x1e2)](_0x6d31bc),await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x155)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));const _0x556ec2=JSON[_0x36c5bc(0x1a1)](_0x6d31bc[_0x36c5bc(0x15f)]);_0x556ec2[_0x36c5bc(0x1f2)]&&(_0x5b653f=_0x556ec2[_0x36c5bc(0x1f2)],_0x5b0e41=_0x37c55c[_0x36c5bc(0xf4)]),global_registry[_0x36c5bc(0x1be)]&&(_0x5b0e41=_0x37c55c[_0x36c5bc(0xe4)]);}catch(_0x1a2a8e){}_0x14a123=_0x36c5bc(0x170)+_0x5b653f+'\x20',logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x316649={};_0x316649['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x316649[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x316649),_0x14a123=_0x36c5bc(0x1ae)+_0x5b0e41+'://'+_0x5b653f+_0x36c5bc(0xee),logger['info'](_0x14a123);const _0x33c2db={};_0x33c2db[_0x36c5bc(0x1e8)]=WS_EVENTS['LOG'],_0x33c2db['message']=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x33c2db);const _0xd578ca={};_0xd578ca['type']=WS_EVENTS[_0x36c5bc(0x1e9)],_0xd578ca[_0x36c5bc(0x13b)]=_0x36c5bc(0x123)+_0x5b653f,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0xd578ca),await webSocketUtils[_0x36c5bc(0x1ff)](0x7d0);}catch(_0x18ee6d){logger[_0x36c5bc(0x1bb)](_0x36c5bc(0x1b4)+_0x18ee6d+'\x20\x0a'+JSON['stringify'](_0x18ee6d['stack']));if(_0x37c55c[_0x36c5bc(0x145)](_0x592cda,![]))try{logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0xf0)]),await _0x37c55c[_0x36c5bc(0xe9)](removeGridComponents,_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x4baa9a),await _0x3e59f1['deleteCluster'](_0x4b62ac,global_registry['clusterRegion']);}catch(_0x2f157f){logger[_0x36c5bc(0x1bb)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x2f157f+'\x20\x0a'+JSON[_0x36c5bc(0x1e2)](_0x2f157f[_0x36c5bc(0x165)]));}throw _0x18ee6d;}}catch(_0x192f61){const _0x251ffc=_0x36c5bc(0x128)+_0x192f61+'\x20\x0a'+JSON[_0x36c5bc(0x1e2)](_0x192f61[_0x36c5bc(0x165)]);if(_0x363b83){const _0x2e8b6c={};_0x2e8b6c['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x2e8b6c[_0x36c5bc(0x13b)]=_0x251ffc,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x2e8b6c,_0x37c55c[_0x36c5bc(0x229)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xf90d72={};_0xf90d72[_0x36c5bc(0x1bb)]=_0x251ffc,await _0x37c55c[_0x36c5bc(0x137)](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x161)],_0xf90d72,_0x1c27c0),logger[_0x36c5bc(0x1bb)](_0x251ffc);}process['exit'](0x0);};
|
|
1
|
+
function a9_0x5656(){const _0x583424=['PBweb','CLI\x20run\x20started','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','privateGrid','mzMti','IekCF','boolean','HvLJP','CLFbX','bvqBo','raMdi','PEVGt','CiyWT','route53','QIDPr','Cluster\x20created\x20successfully','WgPhK','ingress-nginx','54NCCoIs','password','ERROR','wKoej','/wd/hub','yVled','TRWpD','JSEHJ','delay','body','create-grid-checks-null-response','https','ZCqEM','init-not-called','newCluster','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','vlgsl','JfHQR','\x20are\x20not\x20present\x20in\x20VPC:\x20','xmMRP','TVler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridProfileId','asLAo','ulliQ','LsAPp','clusterName','MCtsx','true','name','s3bucket','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','GEYKS','Found\x20VPC:\x20','split','ztUmL','JZAeQ','7|9|14|0|3|2|12|13|8|11|1|6|5|10|4','QeyVO','create-grid-checks-invalid-profile','create-grid-called','Cluster:\x20','http','Grid\x20profile\x20fetched\x20from\x20backend','KsxDN','cloudProvider','help','LOG','bpufm','OxkCy','UKTPF','15UmEdlJ','<UsernamePlaceholder>','Will\x20be\x20spawning\x20the\x20grid\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','/packages/cli/get-grid-url?gridIdentifier=','1010538kYItHX','OVKie','wywLD','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','pre-spawned-subnets-not-selected','pre-spawned-invalid-vpc','LGkdS','private-ingress-nginx-controller','buVdl','UqtAc','maxNodes','Browserstack','tbcQr','aDHcI','SzZhM','cUAQb','create','jDbxO','Create\x20a\x20private/public\x20grid.','region','NGBMr','usage','Spawning\x20the\x20grid\x20','info','connectionTimeout','njMWi','YyRuv','gridProfiles','YrLVg','exit','sEFzu','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','rEmLL','\x20in\x20existing\x20cluster\x20\x27','createdBy','ENmWK','rEIPj','://','CMsrq','error','non-aws-azure-cluster','XXbgN','jFkiH','ZhDoO','30biLXZz','wMkLR','cffOL','Found\x20Subnets:\x20','yaVQe','180vtgygz','grid-profile','sBIyl','wKWER','GET','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','message','wQuJw','command','skip-tls-cert-verify','mDJOC','toLowerCase','FqSwc','5820PplumQ','fgpAP','https://','UlTGP','stringify','zxrFI','ghoLb','grid-name','yWtPX','QnLaH','eFAvs','private-grid','pre-spawned-invalid-subnets','../../config/constants','adjum','readNamespacedService','CTxMI','lOPIL','TdEtg','IMpIE','get-grid-url-auth-failed','JFugr','length','sendEventToBackend','uZIJE','create-grid-checks-grid-already-exists','DwoCV','eboJt','ZQxau','GWgJR','annotations','get-grid-url-null-response','setupAutoscaler','statusCode','securityGroups','uIlHW','28066064XgtwPy','getResourceClientId','kGbSb','DPHYe','iAAkU','INFO','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','fdFwU','bwbfD','hrMGt','createNamespace','EJZed','mWIlU','jzgkR','Msozu','IAvRz','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','nhomt','gIlau','gridName','create-grid-checks-non-200','Namespace\x20created','Subnets:\x20','tQmFe','create-grid-checks-auth-failed','clusterRegion','418AprJtt','../../utils/webSocketUtils','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','STzNz','deleteCluster','lKXxR','qCqLu','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','GYvLZ','uaHXC','GnMlN','description','updateClusterAlreadyPresent','\x27\x20grid\x20profile','DPryo','sdOqX','alreadyPresent','got','VaTEe','GHQFW','zBqVz','builder','/packages/cli/create-grid-checks','HJVbz','Deleting\x20the\x20CloudFormation\x20Stacks','replace','Create\x20a\x20new\x20Automation\x20grid.','\x20using\x20\x27','epilogue','Htzcm','drvRy','XXsQt','80cAsFRM','FbtVg','RtMTg','JLhDf','managedBy','default','oGbzB','1501284BLSvyv','rGXmo','../../cloudproviders/utils','namespace','instanceType','3687bxeMQd','bstackAccesskey','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','minNodes','jldyl','uuid','OCgLC','../../utils/utilityMethods','aWIhD','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Spawning\x20Grid\x20on\x20the\x20Cluster','YTaAQ','8|6|5|0|1|7|2|3|4','xYHkS','turboscale-managed-identity-','existsSync','UJhgi','VhpNR','skipTlsCertVerify','type','Creating\x20namespace','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','aCFPK','76930rvmPQT','parse','2|0|3|1|4','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.','LNXuo','MdqCl','xNeVL','JuBuR','prespawned-cluster-args-not-passed','oePnx','setupNewCluster','SIAgJ','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','wncfx','stack','RPtRX','Ljdoi','isNewAWSCluster','fiRee','vpc','sendResourceDataToHST','CLI_RUN_STARTED','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','KVXTl','cNrNf','EDAlu','kBben','ingress-nginx-controller','hubVersion','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','subnets','isSubnetsValid','gFdyc','isPrivateGrid','NpBmy','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','aXSOt','43419gPTxKx','xijgV','debug','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','sNDFJ','VeqQS','isClusterPresent','reconnecting-websocket','RAAzB','BruqD','Ilrfv','ZymfZ','Namespace\x20Created','pctdC','cluster-name','eiPIu','isVPCPresent','Cluster\x20','aVsai','nfVhd','gridProfile','concurrency','getGridHostname','YlbXz','browserVersion','gsYJV','hmWio','Skip\x20insecure\x20cert\x20verification.','CYVyW','VVcaK','bstackUsername','username','argv','requestId','metadata','XnGbx','string','defaultGridProfile','user','mOjXn','warn','createOtherResources','itpKw','Adding\x20Websocket\x20listeners'];a9_0x5656=function(){return _0x583424;};return a9_0x5656();}const a9_0x50843c=a9_0x54b4;(function(_0x2cae57,_0x2bc260){const _0x420cc7=a9_0x54b4,_0x3567dc=_0x2cae57();while(!![]){try{const _0x43e345=parseInt(_0x420cc7(0x257))/0x1*(parseInt(_0x420cc7(0x176))/0x2)+parseInt(_0x420cc7(0x295))/0x3*(-parseInt(_0x420cc7(0x1e0))/0x4)+-parseInt(_0x420cc7(0x1aa))/0x5*(parseInt(_0x420cc7(0x252))/0x6)+parseInt(_0x420cc7(0x26f))/0x7*(-parseInt(_0x420cc7(0x24b))/0x8)+parseInt(_0x420cc7(0x1af))/0x9*(-parseInt(_0x420cc7(0x1db))/0xa)+parseInt(_0x420cc7(0x22b))/0xb*(-parseInt(_0x420cc7(0x1ed))/0xc)+parseInt(_0x420cc7(0x211))/0xd;if(_0x43e345===_0x2bc260)break;else _0x3567dc['push'](_0x3567dc['shift']());}catch(_0x327212){_0x3567dc['push'](_0x3567dc['shift']());}}}(a9_0x5656,0x5f8ce));function a9_0x54b4(_0x736825,_0x5f435b){const _0x56563d=a9_0x5656();return a9_0x54b4=function(_0x54b473,_0x1777c0){_0x54b473=_0x54b473-0x13d;let _0x4b7e2b=_0x56563d[_0x54b473];return _0x4b7e2b;},a9_0x54b4(_0x736825,_0x5f435b);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x50843c(0x13f)),got=require(a9_0x50843c(0x23c)),{v4:uuidv4}=require(a9_0x50843c(0x25d)),webSocketUtils=require(a9_0x50843c(0x22c)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x50843c(0x25f)),{getCloudProviderObject}=require(a9_0x50843c(0x254)),{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_0x50843c(0x1fa)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x50843c(0x1e8)]='grid',exports['desc']=a9_0x50843c(0x245),exports[a9_0x50843c(0x240)]=function(_0x25efa0){const _0x4ddc4c=a9_0x50843c,_0x1ed9d4={};_0x1ed9d4[_0x4ddc4c(0x172)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x1ed9d4['KsxDN']=_0x4ddc4c(0x15c),_0x1ed9d4['ulliQ']=_0x4ddc4c(0x298),_0x1ed9d4['PEVGt']=_0x4ddc4c(0x1ad),_0x1ed9d4[_0x4ddc4c(0x208)]=_0x4ddc4c(0x293),_0x1ed9d4[_0x4ddc4c(0x205)]=_0x4ddc4c(0x285),_0x1ed9d4['UKTPF']=_0x4ddc4c(0x1c1),_0x1ed9d4['oeIsz']=_0x4ddc4c(0x153),_0x1ed9d4[_0x4ddc4c(0x21e)]=_0x4ddc4c(0x16a),_0x1ed9d4[_0x4ddc4c(0x21f)]=_0x4ddc4c(0x1a5);const _0x4d3f4d=_0x1ed9d4,_0x569817={};_0x569817[_0x4ddc4c(0x236)]=_0x4d3f4d['QIDPr'],_0x569817['type']=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x1ba0ff={};_0x1ba0ff[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x18e)],_0x1ba0ff[_0x4ddc4c(0x26b)]=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x2194cd={};_0x2194cd[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x16f)],_0x2194cd[_0x4ddc4c(0x26b)]=_0x4d3f4d['KsxDN'];const _0x3403c3={};_0x3403c3[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x208)],_0x3403c3['type']=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x59c7f2={};_0x59c7f2[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x205)],_0x59c7f2[_0x4ddc4c(0x26b)]=_0x4d3f4d[_0x4ddc4c(0x1a3)];const _0x5962ea={};_0x5962ea[_0x4ddc4c(0x236)]=_0x4d3f4d[_0x4ddc4c(0x1a9)],_0x5962ea['type']=_0x4d3f4d['KsxDN'];const _0x49a6b8={};_0x49a6b8[_0x4ddc4c(0x236)]=_0x4d3f4d['oeIsz'],_0x49a6b8['type']=_0x4d3f4d[_0x4ddc4c(0x21e)],_0x49a6b8[_0x4ddc4c(0x250)]=![];const _0x111cd8={};return _0x111cd8[_0x4ddc4c(0x1f4)]=_0x569817,_0x111cd8[_0x4ddc4c(0x1e1)]=_0x1ba0ff,_0x111cd8[_0x4ddc4c(0x146)]=_0x2194cd,_0x111cd8['cloud-provider']=_0x3403c3,_0x111cd8[_0x4ddc4c(0x1c2)]=_0x59c7f2,_0x111cd8[_0x4ddc4c(0x1f8)]=_0x5962ea,_0x111cd8['skip-tls-cert-verify']=_0x49a6b8,_0x25efa0[_0x4ddc4c(0x1c4)](HELP_HEADER_MESSAGE[_0x4ddc4c(0x1bf)])[_0x4ddc4c(0x247)](HELP_FOOTER_MESSAGE)['options'](_0x111cd8)[_0x4ddc4c(0x1a5)](_0x4d3f4d[_0x4ddc4c(0x21f)])['argv'];},exports['handler']=async function(_0x4db362){const _0x3cf5f2=a9_0x50843c,_0x5c2694={'EJZed':_0x3cf5f2(0x1ce),'DwoCV':_0x3cf5f2(0x15c),'pHzXB':_0x3cf5f2(0x298),'MWxCw':_0x3cf5f2(0x1ad),'HvLJP':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','rymZV':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IMpIE':'Create\x20a\x20private/public\x20grid.','itpKw':_0x3cf5f2(0x153),'yWtPX':_0x3cf5f2(0x16a),'cUAQb':'help','yVled':_0x3cf5f2(0x160),'HJVbz':function(_0x3e8893,_0x1d2899){return _0x3e8893===_0x1d2899;},'PBweb':_0x3cf5f2(0x19c),'rGXmo':function(_0x2abf8e,_0x5189f7,_0xb0b21e,_0x2d47b0,_0x2aef2c,_0x348ce9,_0x474506,_0x4fa86f,_0x1c39fd,_0x4cf0e0,_0x2fe8fb,_0x1e1e3d){return _0x2abf8e(_0x5189f7,_0xb0b21e,_0x2d47b0,_0x2aef2c,_0x348ce9,_0x474506,_0x4fa86f,_0x1c39fd,_0x4cf0e0,_0x2fe8fb,_0x1e1e3d);},'vlgsl':function(_0xce0212,_0x3ef687){return _0xce0212!==_0x3ef687;},'pEvHS':'5|3|2|0|1|7|8|6|4','Ilrfv':_0x3cf5f2(0x165),'nhomt':_0x3cf5f2(0x181),'CYVyW':_0x3cf5f2(0x1a1),'VaTEe':_0x3cf5f2(0x1d6),'eiPIu':function(_0x1b2427){return _0x1b2427();},'CTxMI':function(_0x79431e,_0x3784e2){return _0x79431e===_0x3784e2;},'JfHQR':_0x3cf5f2(0x274),'FJEOY':_0x3cf5f2(0x25c),'TdEtg':_0x3cf5f2(0x18b),'RAAzB':function(_0xcf7cb4,_0x9e173a,_0x331d46,_0x697b80,_0x148204,_0x278117,_0x41a5fc){return _0xcf7cb4(_0x9e173a,_0x331d46,_0x697b80,_0x148204,_0x278117,_0x41a5fc);},'aWIhD':_0x3cf5f2(0x19f),'ULhyH':_0x3cf5f2(0x183),'njMWi':_0x3cf5f2(0x1ab),'VhpNR':'<PasswordPlaceholder>','rEmLL':_0x3cf5f2(0x163),'ZCqEM':'onnWJ','NpBmy':_0x3cf5f2(0x14f),'GYvLZ':_0x3cf5f2(0x288),'drvRy':_0x3cf5f2(0x1fe),'fiRee':_0x3cf5f2(0x221),'YrLVg':function(_0x32a358,_0x158e27,_0x4e6504,_0x35ef04,_0x31a453,_0x50924d,_0x251f49,_0x1b1127){return _0x32a358(_0x158e27,_0x4e6504,_0x35ef04,_0x31a453,_0x50924d,_0x251f49,_0x1b1127);},'wywLD':_0x3cf5f2(0x277),'ZhDoO':_0x3cf5f2(0x210),'cffOL':_0x3cf5f2(0x251),'hdNRf':_0x3cf5f2(0x1b2),'bvqBo':_0x3cf5f2(0x1d7),'jxkWm':function(_0x2c3101,_0x49c629){return _0x2c3101===_0x49c629;},'ztUmL':_0x3cf5f2(0x192),'VVcaK':_0x3cf5f2(0x219),'GEYKS':function(_0x40712e,_0x37a63f){return _0x40712e!==_0x37a63f;},'wMkLR':'VaCaO','utNiK':_0x3cf5f2(0x24d),'aCFPK':_0x3cf5f2(0x18f),'uaHXC':_0x3cf5f2(0x1b7),'YyRuv':_0x3cf5f2(0x1e4),'gsYJV':function(_0x32c256,_0x164fd6,_0x4a164f){return _0x32c256(_0x164fd6,_0x4a164f);},'aXSOt':function(_0x15aa1b,_0x517a7e){return _0x15aa1b!==_0x517a7e;},'VeqQS':'okdIM','SIAgJ':function(_0x500f23,_0x388b01,_0x24d8aa){return _0x500f23(_0x388b01,_0x24d8aa);},'xNeVL':function(_0x3f7942,_0x4c314f){return _0x3f7942===_0x4c314f;},'aVsai':function(_0x2f450f,_0x388de8){return _0x2f450f===_0x388de8;},'KfMmR':'FCqQo','lNKCK':'QLFUc','ENmWK':_0x3cf5f2(0x185),'wQuJw':function(_0x47bba9,_0x5a9176,_0x52fe3a,_0xa9b3d1,_0x3f0080,_0x59a9d8,_0x68bd23,_0xaa3121){return _0x47bba9(_0x5a9176,_0x52fe3a,_0xa9b3d1,_0x3f0080,_0x59a9d8,_0x68bd23,_0xaa3121);},'MCtsx':_0x3cf5f2(0x180),'RPtRX':function(_0x5b1523,_0xcf0708){return _0x5b1523===_0xcf0708;},'OMiol':function(_0x1043cb,_0x21a0b3){return _0x1043cb===_0x21a0b3;},'BruqD':_0x3cf5f2(0x1ec),'sNDFJ':_0x3cf5f2(0x259),'nGLfW':_0x3cf5f2(0x229),'TVler':function(_0xa17bde,_0x47227e){return _0xa17bde!==_0x47227e;},'LGkdS':_0x3cf5f2(0x287),'iAAkU':_0x3cf5f2(0x278),'SzZhM':_0x3cf5f2(0x225),'JLhDf':_0x3cf5f2(0x1a2),'asLAo':'LXUFv','WgPhK':function(_0x39d8ec,_0x183d63,_0x524b2d,_0x2b1990,_0x4b13ae,_0x36f938,_0x45f0e4,_0x3294bc){return _0x39d8ec(_0x183d63,_0x524b2d,_0x2b1990,_0x4b13ae,_0x36f938,_0x45f0e4,_0x3294bc);},'XXbgN':_0x3cf5f2(0x206),'DPryo':_0x3cf5f2(0x1cd),'QnLaH':_0x3cf5f2(0x16e),'XXsQt':function(_0x175e55,_0x36ebde){return _0x175e55===_0x36ebde;},'tbcQr':function(_0xc71d40,_0x5b52ca){return _0xc71d40!==_0x5b52ca;},'jiomA':'BnxlY','sdOqX':function(_0x16c6d7,_0x5ba36e){return _0x16c6d7!==_0x5ba36e;},'NGBMr':_0x3cf5f2(0x230),'UlTGP':'xQeqN','QeyVO':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','mDJOC':_0x3cf5f2(0x19e),'zxrFI':function(_0x412d52,_0x1f2b57){return _0x412d52===_0x1f2b57;},'OCgLC':_0x3cf5f2(0x231),'QhAML':function(_0x762e01,_0x47dfe7){return _0x762e01===_0x47dfe7;},'OxkCy':_0x3cf5f2(0x21d),'kGbSb':function(_0x14dd63,_0x5ae74a){return _0x14dd63===_0x5ae74a;},'OVKie':_0x3cf5f2(0x296),'sBIyl':_0x3cf5f2(0x1ee),'gIlau':function(_0x37bfff,_0x1b6f4d,_0x5b0506,_0x3c455f,_0x16086a,_0xac4e4a,_0x2a0c72,_0x5913c1,_0x2bad30,_0x10a8a2,_0x470dd9,_0x66ce0a){return _0x37bfff(_0x1b6f4d,_0x5b0506,_0x3c455f,_0x16086a,_0xac4e4a,_0x2a0c72,_0x5913c1,_0x2bad30,_0x10a8a2,_0x470dd9,_0x66ce0a);},'gFdyc':function(_0x509142,_0x58d44d){return _0x509142===_0x58d44d;},'JFugr':_0x3cf5f2(0x1f7),'IAvRz':_0x3cf5f2(0x189),'IekCF':'fjMzj','rEIPj':function(_0x541ef7,_0x4bb245){return _0x541ef7===_0x4bb245;},'KVXTl':_0x3cf5f2(0x1b8),'XkgeB':'FSgKp','LNXuo':_0x3cf5f2(0x264),'JZAeQ':function(_0x398d40,_0x118434,_0x382d9a,_0x1fcc6a,_0x1c70f7,_0x34a60b,_0x224f9b){return _0x398d40(_0x118434,_0x382d9a,_0x1fcc6a,_0x1c70f7,_0x34a60b,_0x224f9b);},'ZQxau':function(_0x4c82f7,_0x567222){return _0x4c82f7!==_0x567222;},'bpufm':function(_0x168833,_0x543132){return _0x168833===_0x543132;},'XnGbx':function(_0x2ec696,_0xa5d18f){return _0x2ec696===_0xa5d18f;},'mzMti':_0x3cf5f2(0x217),'JSEHJ':function(_0xa020c0,_0x2c5541){return _0xa020c0!=_0x2c5541;},'mOjXn':function(_0x28aef1,_0x56e2cd){return _0x28aef1!=_0x56e2cd;},'DPHYe':function(_0x59edef,_0xb338cf){return _0x59edef>_0xb338cf;},'JuBuR':function(_0x43d7b7,_0x2a265f){return _0x43d7b7===_0x2a265f;},'wKWER':_0x3cf5f2(0x261),'Htzcm':_0x3cf5f2(0x1b3),'adjum':_0x3cf5f2(0x195),'Ljdoi':_0x3cf5f2(0x1b4),'dBYBW':function(_0x8336dc,_0x19cf8e){return _0x8336dc===_0x19cf8e;},'tQVRZ':_0x3cf5f2(0x1f9),'bWorp':_0x3cf5f2(0x271),'GHQFW':_0x3cf5f2(0x272),'tQmFe':_0x3cf5f2(0x173),'jFkiH':function(_0x337bd5,_0x1aa6be){return _0x337bd5===_0x1aa6be;},'fdFwU':function(_0x582e61,_0x244249){return _0x582e61===_0x244249;},'CiyWT':function(_0x2e2358,_0x6b273e){return _0x2e2358(_0x6b273e);},'GWgJR':_0x3cf5f2(0x26c),'pctdC':_0x3cf5f2(0x250),'wKoej':'Browserstack','UJhgi':_0x3cf5f2(0x144),'zBqVz':_0x3cf5f2(0x226),'wncfx':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','yaVQe':_0x3cf5f2(0x262),'kBben':function(_0x1fbeb6,_0x525e5f,_0xd2a52c,_0x383a93,_0x5e968a,_0x51f382,_0xc06865,_0x4aa47c,_0x1d3fca,_0x407cda,_0xae3852){return _0x1fbeb6(_0x525e5f,_0xd2a52c,_0x383a93,_0x5e968a,_0x51f382,_0xc06865,_0x4aa47c,_0x1d3fca,_0x407cda,_0xae3852);},'nfVhd':'Grid\x20spawned\x20on\x20the\x20cluster','CLFbX':_0x3cf5f2(0x196),'hmWio':function(_0xbae4b7,_0x58f6c,_0x1cf8d6,_0xdb56ef,_0xd227a7){return _0xbae4b7(_0x58f6c,_0x1cf8d6,_0xdb56ef,_0xd227a7);},'xYHkS':function(_0x141bf6,_0x411921,_0x3e5960){return _0x141bf6(_0x411921,_0x3e5960);},'dyOfh':_0x3cf5f2(0x1b6),'ghoLb':_0x3cf5f2(0x28a),'TemTo':_0x3cf5f2(0x175),'ydvLM':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','STzNz':function(_0x4425c8,_0x1dbe01,_0x3a451e,_0x5ca1c8,_0xd336b2,_0x3865ad,_0xd60d74,_0x3025d6){return _0x4425c8(_0x1dbe01,_0x3a451e,_0x5ca1c8,_0xd336b2,_0x3865ad,_0xd60d74,_0x3025d6);},'cRIcZ':_0x3cf5f2(0x20c),'GnMlN':function(_0x5503e0,_0x4dbc10){return _0x5503e0===_0x4dbc10;},'jDbxO':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','IaftU':function(_0x3e03df,_0x3fd6e3,_0x1be90a,_0x12a5d4,_0x55c591,_0x102572,_0x134ed0,_0x2e2f41){return _0x3e03df(_0x3fd6e3,_0x1be90a,_0x12a5d4,_0x55c591,_0x102572,_0x134ed0,_0x2e2f41);},'YTaAQ':_0x3cf5f2(0x201),'hrMGt':function(_0xab43e0,_0x181fae){return _0xab43e0!==_0x181fae;},'CMsrq':function(_0x15e313,_0x2f2f5c,_0x252a13,_0x1a3985,_0x4b67f7,_0x59d016,_0x38d2a0,_0x5d49f2){return _0x15e313(_0x2f2f5c,_0x252a13,_0x1a3985,_0x4b67f7,_0x59d016,_0x38d2a0,_0x5d49f2);},'FbtVg':'get-grid-url-non-200','TRWpD':function(_0x542bc8,_0x41f12c){return _0x542bc8===_0x41f12c;},'uMNyE':_0x3cf5f2(0x243),'aDHcI':function(_0x317ccd,_0x324792,_0x356c55,_0x2cbc6f,_0x318479,_0x18348b){return _0x317ccd(_0x324792,_0x356c55,_0x2cbc6f,_0x318479,_0x18348b);},'ZymfZ':function(_0x54b05c,_0x473978,_0x1cec3f,_0x3f4cce,_0x460ed3,_0x3dd2ba,_0x560ffc){return _0x54b05c(_0x473978,_0x1cec3f,_0x3f4cce,_0x460ed3,_0x3dd2ba,_0x560ffc);},'KEJMA':'grid-spawning-failed'};let _0x1703e6=![],_0x4c5256=![],_0x5b9d4f,_0x1576c9,_0x2554e5,_0x2a6352,_0x54c291,_0x5b83a5,_0x2a619e,_0xd86a6d,_0xfb6e5a,_0x385bd9,_0x1c8a70,_0x4e8e1c,_0x59a767,_0x4d1dc8,_0x4d0204=0x1,_0x5eda53=0xe;try{global_registry[_0x3cf5f2(0x159)]=_0x5c2694[_0x3cf5f2(0x147)](uuidv4),global_registry[_0x3cf5f2(0x290)]=![];!fs[_0x3cf5f2(0x267)](_0x5c2694[_0x3cf5f2(0x147)](getCredentialsPath))&&(_0x5c2694['CTxMI'](_0x5c2694[_0x3cf5f2(0x187)],_0x5c2694['FJEOY'])?_0x1a159c=!![]:(console['error'](_0x5c2694[_0x3cf5f2(0x1ff)]),await _0x5c2694[_0x3cf5f2(0x140)](sendInstrumentationEvent,_0x4db362,_0x5c2694['aWIhD'],messageTypes[_0x3cf5f2(0x178)],_0x5c2694['ULhyH'],null,_0x4db362),process[_0x3cf5f2(0x1cc)](0x1)));await _0x5c2694[_0x3cf5f2(0x140)](sendInstrumentationEvent,_0x4db362,_0x5c2694[_0x3cf5f2(0x260)],messageTypes[_0x3cf5f2(0x216)],null,null,_0x4db362);const _0x3eb0ee=JSON[_0x3cf5f2(0x270)](fs['readFileSync'](_0x5c2694[_0x3cf5f2(0x147)](getCredentialsPath)));global_registry[_0x3cf5f2(0x156)]=_0x3eb0ee['Browserstack']['username'],global_registry[_0x3cf5f2(0x258)]=_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x177)];const _0x2cc743=WS_ENDPOINT[_0x3cf5f2(0x244)](_0x5c2694[_0x3cf5f2(0x1c8)],_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x157)])[_0x3cf5f2(0x244)](_0x5c2694[_0x3cf5f2(0x269)],_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x177)]),_0x319dc5={};_0x319dc5['WebSocket']=ws,_0x319dc5[_0x3cf5f2(0x1c7)]=0x36ee80,_0x4e8e1c=new ReconnectingWebSocket(_0x2cc743,[],_0x319dc5),logger[_0x3cf5f2(0x297)](_0x5c2694[_0x3cf5f2(0x1cf)]),webSocketUtils['addListeners'](_0x4e8e1c,_0x4db362[_0x3cf5f2(0x15e)],_0x4db362[_0x3cf5f2(0x177)]);const _0x287f14=_0x4db362[_0x3cf5f2(0x224)]||DEFAULT_GRID_NAME;if(_0x4db362[_0x3cf5f2(0x190)]||_0x4db362[_0x3cf5f2(0x1a4)]||_0x4db362[_0x3cf5f2(0x1c2)]){if(_0x5c2694[_0x3cf5f2(0x186)](_0x5c2694[_0x3cf5f2(0x182)],_0x5c2694[_0x3cf5f2(0x291)])){!(_0x4db362[_0x3cf5f2(0x190)]&&_0x4db362[_0x3cf5f2(0x1a4)]&&_0x4db362['region'])&&(_0x5c2694[_0x3cf5f2(0x242)](_0x5c2694[_0x3cf5f2(0x233)],_0x5c2694[_0x3cf5f2(0x249)])?_0x1fc891[_0x3cf5f2(0x1c6)]('Found\x20VPC:\x20'+_0x47b617+'\x20'):(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x281)],await _0x5c2694[_0x3cf5f2(0x1cb)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694['aWIhD'],_0x5c2694[_0x3cf5f2(0x1b1)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)));![AWS,AZURE,GCP]['includes'](_0x4db362[_0x3cf5f2(0x1a4)][_0x3cf5f2(0x1eb)]())&&(_0x5c2694[_0x3cf5f2(0x186)](_0x5c2694[_0x3cf5f2(0x1da)],_0x5c2694[_0x3cf5f2(0x1dd)])?(_0x5b9d4f=_0x5c2694['hdNRf'],await _0x5c2694[_0x3cf5f2(0x1cb)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x16d)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):(_0x4efd33[_0x3cf5f2(0x1c2)]=_0xcb5c98,_0x238e76[_0x3cf5f2(0x1a4)]=_0x2de163,_0x4e638f[_0x3cf5f2(0x184)]=!![]));if(_0x4db362['privateGrid']&&_0x5c2694['jxkWm'](_0x4db362[_0x3cf5f2(0x167)]['toLowerCase'](),_0x5c2694[_0x3cf5f2(0x19a)])){if(_0x5c2694['vlgsl'](_0x5c2694['VVcaK'],_0x5c2694[_0x3cf5f2(0x155)])){const _0x44f759={};_0x44f759[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x21c)],_0x44f759[_0x3cf5f2(0x26b)]=_0x5c2694[_0x3cf5f2(0x207)];const _0x1270ff={};_0x1270ff[_0x3cf5f2(0x236)]=_0x5c2694['pHzXB'],_0x1270ff['type']=_0x5c2694[_0x3cf5f2(0x207)];const _0x4802f5={};_0x4802f5['description']=_0x5c2694['MWxCw'],_0x4802f5[_0x3cf5f2(0x26b)]=_0x5c2694[_0x3cf5f2(0x207)];const _0xde538c={};_0xde538c[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x16b)],_0xde538c['type']=_0x5c2694[_0x3cf5f2(0x207)];const _0x343849={};_0x343849[_0x3cf5f2(0x236)]=_0x5c2694['rymZV'],_0x343849['type']=_0x5c2694['DwoCV'];const _0x38f24a={};_0x38f24a[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x200)],_0x38f24a[_0x3cf5f2(0x26b)]=_0x5c2694[_0x3cf5f2(0x207)];const _0x2272de={};_0x2272de[_0x3cf5f2(0x236)]=_0x5c2694[_0x3cf5f2(0x162)],_0x2272de['type']=_0x5c2694[_0x3cf5f2(0x1f5)],_0x2272de[_0x3cf5f2(0x250)]=![];const _0x4327cb={};return _0x4327cb[_0x3cf5f2(0x1f4)]=_0x44f759,_0x4327cb[_0x3cf5f2(0x1e1)]=_0x1270ff,_0x4327cb[_0x3cf5f2(0x146)]=_0x4802f5,_0x4327cb['cloud-provider']=_0xde538c,_0x4327cb[_0x3cf5f2(0x1c2)]=_0x343849,_0x4327cb[_0x3cf5f2(0x1f8)]=_0x38f24a,_0x4327cb[_0x3cf5f2(0x1e9)]=_0x2272de,_0x274867[_0x3cf5f2(0x1c4)](_0x1f31f1[_0x3cf5f2(0x1bf)])[_0x3cf5f2(0x247)](_0xc72bdf)['options'](_0x4327cb)['help'](_0x5c2694[_0x3cf5f2(0x1be)])[_0x3cf5f2(0x158)];}else global_registry[_0x3cf5f2(0x290)]=!![];}global_registry[_0x3cf5f2(0x1a4)]=_0x4db362[_0x3cf5f2(0x1a4)],global_registry['clusterRegion']=_0x4db362['region'],global_registry[_0x3cf5f2(0x190)]=_0x4db362[_0x3cf5f2(0x190)];const _0x65cd7b=await _0x5c2694[_0x3cf5f2(0x140)](getCloudProviderObject,_0x4db362[_0x3cf5f2(0x1a4)],_0x4db362[_0x3cf5f2(0x190)],_0x287f14,_0x4e8e1c,webSocketUtils,_0x4db362),_0x1047b8=await _0x65cd7b[_0x3cf5f2(0x13e)]();if(!_0x1047b8){if(_0x5c2694[_0x3cf5f2(0x197)](_0x5c2694[_0x3cf5f2(0x1dc)],_0x5c2694[_0x3cf5f2(0x1dc)])){const _0x2f7a66={};_0x2f7a66[_0x3cf5f2(0x26b)]=_0x3be6f1['LOG'],_0x2f7a66['message']=_0x3cf5f2(0x149)+_0x5f14f7+_0x3cf5f2(0x1e5),_0x1eec6f['sendEventToBackend'](_0x2d8295,_0x2f7a66,_0x5c2694[_0x3cf5f2(0x17b)]),_0x152a97[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x149)+_0x5bd1ee+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x414f9c=!![];if(_0x5c2694[_0x3cf5f2(0x242)](_0x5b7b67,!![]))throw new _0x36a726('Cluster\x20'+_0x4a9cdb+_0x3cf5f2(0x28c));}else logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x1a0)+_0x4db362[_0x3cf5f2(0x190)]+_0x3cf5f2(0x26d)),_0x1703e6=![],_0x4c5256=!![];}else{if(_0x5c2694[_0x3cf5f2(0x242)](_0x5c2694['utNiK'],_0x5c2694[_0x3cf5f2(0x26e)])){const _0x50e992=_0x5c2694[_0x3cf5f2(0x164)][_0x3cf5f2(0x199)]('|');let _0x46305f=0x0;while(!![]){switch(_0x50e992[_0x46305f++]){case'0':_0x186ce1=_0x196aeb[_0x3cf5f2(0x14d)];continue;case'1':_0x2b6f95=_0x33d0b0[_0x3cf5f2(0x1b9)];continue;case'2':_0x49eaa7=null;continue;case'3':_0x5e7e67=_0x28c247[_0x3cf5f2(0x256)];continue;case'4':_0x5c2694[_0x3cf5f2(0x253)](_0x1e28ec,_0x485104,_0x8c2f10,_0x32b311,_0xb1b70d,_0x361678,_0x3dbc9f,_0x8f37f7,_0x51f1ae,_0x59bb5a,_0x5eb014,_0x5e937d);continue;case'5':_0x4592b4=_0x40e567[_0x3cf5f2(0x150)];continue;case'6':_0x3f84a6=_0x538113['hubVersion'];continue;case'7':_0x56d1e3='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x1b1b65;continue;case'8':_0x2afb93=_0xcd6d71['s3bucket'];continue;case'9':_0x37fb01[_0x3cf5f2(0x1c6)](_0x12d81c);continue;case'10':_0x5c2694[_0x3cf5f2(0x186)](_0x1f7e6f[_0x3cf5f2(0x167)],_0x121616)&&_0x1903f5[_0x3cf5f2(0x167)]&&(_0x27c676['isPrivateGrid']=!![]);continue;case'11':_0x6b3b3f=_0x27ff9e['minNodes'];continue;case'12':_0x51bfa9=null;continue;case'13':_0x2caf4f=null;continue;case'14':const _0xfe21be={};_0xfe21be['type']=_0x56ec7c['LOG'],_0xfe21be[_0x3cf5f2(0x1e6)]=_0x50eb3a,_0x59e264[_0x3cf5f2(0x204)](_0x5c8e3f,_0xfe21be);continue;}break;}}else _0x1703e6=!![];}_0x2554e5=_0x4db362[_0x3cf5f2(0x190)],_0x1576c9=_0x4db362[_0x3cf5f2(0x1a4)][_0x3cf5f2(0x1eb)](),_0x2a6352=_0x4db362['region'];}else{const _0x32c4b7=_0x5c2694['pEvHS']['split']('|');let _0x57d93d=0x0;while(!![]){switch(_0x32c4b7[_0x57d93d++]){case'0':const _0x497232={};_0x497232[_0x3cf5f2(0x26b)]=_0x37ba57[_0x3cf5f2(0x1a6)],_0x497232['message']=_0x59e239,_0x277c3b[_0x3cf5f2(0x204)](_0x4eb0c5,_0x497232);continue;case'1':_0x2884c5[_0x3cf5f2(0x1a4)]=_0x51808f;continue;case'2':_0x518dfc[_0x3cf5f2(0x1c6)](_0xfc2be3);continue;case'3':_0x23581e=_0x3cf5f2(0x1c5)+_0x28e981+_0x3cf5f2(0x1d0)+_0x2c7ec2+'\x27';continue;case'4':_0x46bc5f[_0x3cf5f2(0x150)]=_0x5760d9['browserVersion'];continue;case'5':const _0x370ba5={};_0x370ba5['type']=_0x5f3800['CLI_RUN_STARTED'],_0x370ba5[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x142)],_0x803d21['sendEventToBackend'](_0xe9f1f,_0x370ba5);continue;case'6':_0x282eac[_0x3cf5f2(0x28b)]=_0x378afb[_0x3cf5f2(0x28b)];continue;case'7':_0xff9c23['clusterRegion']=_0x330cbf;continue;case'8':_0x29939c[_0x3cf5f2(0x190)]=_0x1cd9ad;continue;}break;}}}else _0x4db362[_0x3cf5f2(0x14c)]&&(_0x5c2694[_0x3cf5f2(0x186)](_0x5c2694[_0x3cf5f2(0x234)],_0x5c2694[_0x3cf5f2(0x234)])?_0x2d0979[_0x3cf5f2(0x1d6)](_0x3cf5f2(0x25a)+_0x548582+'\x20\x0a'+_0x47f73e[_0x3cf5f2(0x1f1)](_0x4a969b[_0x3cf5f2(0x27d)])):global_registry[_0x3cf5f2(0x14c)]=_0x4db362['gridProfile']);global_registry[_0x3cf5f2(0x224)]=_0x4db362['gridName'];const _0x541231={'method':_0x5c2694[_0x3cf5f2(0x1c9)],'headers':_0x5c2694[_0x3cf5f2(0x151)](getAuthHeader,_0x3eb0ee['Browserstack']['username'],_0x3eb0ee[_0x3cf5f2(0x1ba)][_0x3cf5f2(0x177)]),'throwHttpErrors':![]},_0x40d535={};_0x40d535[_0x3cf5f2(0x224)]=_0x287f14;const _0x116403=_0x40d535;_0x4c5256&&(_0x5c2694[_0x3cf5f2(0x294)](_0x5c2694[_0x3cf5f2(0x13d)],_0x5c2694['VeqQS'])?_0x36da6c=null:(_0x116403[_0x3cf5f2(0x1c2)]=_0x2a6352,_0x116403[_0x3cf5f2(0x1a4)]=_0x1576c9,_0x116403[_0x3cf5f2(0x184)]=!![]));const _0xe0bb1c=_0x3cf5f2(0x1ef)+AG_API_URL+_0x3cf5f2(0x241),_0x17651a={'searchParams':_0x116403,'throwHttpErrors':![],..._0x541231},_0x4b9a3d=_0x17651a,_0x2ec37a=await _0x5c2694[_0x3cf5f2(0x27a)](got,_0xe0bb1c,_0x4b9a3d);(_0x5c2694['xNeVL'](_0x2ec37a,null)||_0x5c2694[_0x3cf5f2(0x14a)](_0x2ec37a,undefined))&&(_0x5c2694[_0x3cf5f2(0x275)](_0x5c2694['KfMmR'],_0x5c2694['lNKCK'])?(_0x4d02a5=_0x1fbd49['route53'],_0x1e67ad=_0x5c2694[_0x3cf5f2(0x222)]):(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1d2)],await _0x5c2694[_0x3cf5f2(0x1e7)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x191)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)));_0x5c2694[_0x3cf5f2(0x27e)](_0x2ec37a[_0x3cf5f2(0x20e)],0x191)&&(_0x5c2694['OMiol'](_0x5c2694[_0x3cf5f2(0x141)],_0x5c2694[_0x3cf5f2(0x141)])?(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x299)],await _0x5c2694['YrLVg'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694['aWIhD'],_0x5c2694['nGLfW'],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):_0x48f59a[_0x3cf5f2(0x290)]=!![]);_0x5c2694[_0x3cf5f2(0x18a)](_0x2ec37a[_0x3cf5f2(0x20e)],0xc8)&&(_0x5c2694[_0x3cf5f2(0x197)](_0x5c2694[_0x3cf5f2(0x1b5)],_0x5c2694[_0x3cf5f2(0x215)])?(_0x5b9d4f=_0x3cf5f2(0x22d)+JSON[_0x3cf5f2(0x1f1)](_0x2ec37a[_0x3cf5f2(0x17f)]),await _0x5c2694[_0x3cf5f2(0x1cb)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x1bd)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):_0x4d7fdd['gridProfile']=_0x5be1ae[_0x3cf5f2(0x14c)]);const _0x1fa48e=JSON[_0x3cf5f2(0x270)](_0x2ec37a[_0x3cf5f2(0x17f)]),_0x51313c={};_0x51313c['type']=WS_EVENTS[_0x3cf5f2(0x284)],_0x51313c[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x142)],webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x51313c);const _0x3b9364={};_0x3b9364[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x3b9364[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x24e)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x3b9364);if(_0x1fa48e[_0x3cf5f2(0x23b)]){if(_0x5c2694['TVler'](_0x5c2694[_0x3cf5f2(0x18d)],_0x5c2694[_0x3cf5f2(0x18d)]))throw new _0x58f213(_0x3cf5f2(0x149)+_0x3f1717+_0x3cf5f2(0x28c));else _0x5b9d4f=_0x3cf5f2(0x292)+_0x287f14+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x5c2694['WgPhK'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x1d8)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1);}const _0x202833=_0x1fa48e[_0x3cf5f2(0x1ca)];let _0x27753f=_0x202833[_0x1fa48e[_0x3cf5f2(0x15d)]];_0x4db362[_0x3cf5f2(0x14c)]&&(_0x5c2694['jxkWm'](_0x5c2694[_0x3cf5f2(0x239)],_0x5c2694[_0x3cf5f2(0x1f6)])?_0x14a727=null:_0x27753f=_0x202833[_0x4db362[_0x3cf5f2(0x14c)]]);if(_0x5c2694['jxkWm'](_0x1703e6,![])&&_0x5c2694[_0x3cf5f2(0x24a)](_0x4c5256,![])){if(_0x5c2694[_0x3cf5f2(0x1bb)](_0x5c2694['jiomA'],_0x5c2694['jiomA']))_0xc05355=_0x5c2694[_0x3cf5f2(0x154)];else{if(_0x5c2694[_0x3cf5f2(0x275)](_0x27753f,undefined)){if(_0x5c2694[_0x3cf5f2(0x23a)](_0x5c2694[_0x3cf5f2(0x1c3)],_0x5c2694[_0x3cf5f2(0x1f0)]))_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x19d)],await _0x5c2694['wQuJw'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x1ea)],_0x5c2694['VaTEe']),logger['error'](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1);else{const _0x352883={};_0x352883['type']=_0x10f932[_0x3cf5f2(0x1a6)],_0x352883[_0x3cf5f2(0x1e6)]=_0xf7b4e6,_0x231ced[_0x3cf5f2(0x204)](_0x21dcd3,_0x352883,_0x5c2694[_0x3cf5f2(0x23d)],!![]);}}global_registry[_0x3cf5f2(0x18c)]=_0x27753f['id'],_0x5b9d4f=_0x3cf5f2(0x1ac)+_0x287f14+_0x3cf5f2(0x246)+_0x27753f[_0x3cf5f2(0x193)]+_0x3cf5f2(0x238),logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x1a9280={};_0x1a9280[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x1a9280[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x1a9280),_0x1576c9=_0x27753f[_0x3cf5f2(0x1a4)],_0x2554e5=_0x27753f['clusterName'],_0x2a6352=_0x27753f['region'],_0x54c291=_0x27753f['concurrency'],_0x5b83a5=_0x27753f[_0x3cf5f2(0x256)],_0x2a619e=_0x27753f[_0x3cf5f2(0x282)],_0xd86a6d=_0x27753f[_0x3cf5f2(0x20f)],_0xfb6e5a=_0x27753f[_0x3cf5f2(0x28d)],_0x385bd9=_0x27753f[_0x3cf5f2(0x194)],_0x4d0204=_0x27753f[_0x3cf5f2(0x25b)],_0x5eda53=_0x27753f[_0x3cf5f2(0x1b9)],_0x59a767=_0x1fa48e[_0x3cf5f2(0x28b)],_0x4d1dc8=_0x1fa48e['browserVersion'],_0x2a619e&&_0x5c2694[_0x3cf5f2(0x1fd)](_0x2a619e[_0x3cf5f2(0x203)],0x0)&&(_0x5c2694[_0x3cf5f2(0x1f2)](_0x5c2694[_0x3cf5f2(0x25e)],_0x5c2694[_0x3cf5f2(0x25e)])?_0x2a619e=null:(_0x44aafa['info'](_0x3cf5f2(0x1a0)+_0x303088[_0x3cf5f2(0x190)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x4ef1e8=![],_0x3ca4c5=!![])),_0xfb6e5a&&_0x5c2694['QhAML'](_0xfb6e5a[_0x3cf5f2(0x203)],0x0)&&(_0x5c2694[_0x3cf5f2(0x23a)](_0x5c2694['OxkCy'],_0x5c2694[_0x3cf5f2(0x1a8)])?_0x20452a=_0x1f4427[_0xe2b616['gridProfile']]:_0xfb6e5a=null),_0x5c2694[_0x3cf5f2(0x294)](_0x27753f[_0x3cf5f2(0x167)],undefined)&&_0x27753f['privateGrid']&&(_0x5c2694[_0x3cf5f2(0x213)](_0x5c2694[_0x3cf5f2(0x1b0)],_0x5c2694[_0x3cf5f2(0x1e2)])?_0x14eb46['info'](_0x3cf5f2(0x1de)+_0x113eb2[_0x3cf5f2(0x1f1)](_0x1e8aaa)+'\x20'):global_registry['isPrivateGrid']=!![]),_0x5c2694[_0x3cf5f2(0x223)](updateGlobalRegistryWithConfig,_0x1576c9,_0x2554e5,_0x2a6352,_0x54c291,_0x5b83a5,_0x385bd9,_0x27753f,_0x59a767,_0x4d1dc8,_0x4d0204,_0x5eda53);}}else{if(_0x5c2694[_0x3cf5f2(0x28f)](_0x4c5256,!![])){if(_0x5c2694[_0x3cf5f2(0x23a)](_0x5c2694[_0x3cf5f2(0x202)],_0x5c2694[_0x3cf5f2(0x220)])){_0x5b9d4f='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x287f14,logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x5bef23={};_0x5bef23[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x5bef23[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x5bef23),_0x54c291=_0x27753f[_0x3cf5f2(0x14d)],_0x5b83a5=_0x27753f['instanceType'],_0x2a619e=null,_0xd86a6d=null,_0xfb6e5a=null,_0x385bd9=_0x27753f['s3bucket'],_0x4d0204=_0x27753f[_0x3cf5f2(0x25b)],_0x5eda53=_0x27753f[_0x3cf5f2(0x1b9)],_0x59a767=_0x1fa48e['hubVersion'],_0x4d1dc8=_0x1fa48e[_0x3cf5f2(0x150)],_0x5c2694[_0x3cf5f2(0x294)](_0x27753f['privateGrid'],undefined)&&_0x27753f['privateGrid']&&(_0x5c2694[_0x3cf5f2(0x275)](_0x5c2694[_0x3cf5f2(0x169)],_0x5c2694['IekCF'])?global_registry[_0x3cf5f2(0x290)]=!![]:_0x596058[_0x3cf5f2(0x290)]=!![]),_0x5c2694['rGXmo'](updateGlobalRegistryWithConfig,_0x1576c9,_0x2554e5,_0x2a6352,_0x54c291,_0x5b83a5,_0x385bd9,_0x27753f,_0x59a767,_0x4d1dc8,_0x4d0204,_0x5eda53);}else _0x26ca43['isPrivateGrid']=!![];}else{if(_0x5c2694['rEIPj'](_0x5c2694[_0x3cf5f2(0x286)],_0x5c2694['XkgeB']))_0x84c6db[_0x3cf5f2(0x283)]();else{const _0x3bc7d5=_0x5c2694[_0x3cf5f2(0x273)][_0x3cf5f2(0x199)]('|');let _0x45f558=0x0;while(!![]){switch(_0x3bc7d5[_0x45f558++]){case'0':const _0x4a7124={};_0x4a7124[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x4a7124[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x4a7124);continue;case'1':global_registry[_0x3cf5f2(0x1a4)]=_0x1576c9;continue;case'2':global_registry[_0x3cf5f2(0x190)]=_0x2554e5;continue;case'3':global_registry[_0x3cf5f2(0x28b)]=_0x1fa48e[_0x3cf5f2(0x28b)];continue;case'4':global_registry[_0x3cf5f2(0x150)]=_0x1fa48e['browserVersion'];continue;case'5':logger['info'](_0x5b9d4f);continue;case'6':_0x5b9d4f=_0x3cf5f2(0x1c5)+_0x287f14+_0x3cf5f2(0x1d0)+_0x2554e5+'\x27';continue;case'7':global_registry[_0x3cf5f2(0x22a)]=_0x2a6352;continue;case'8':const _0x2f2b01={};_0x2f2b01[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x284)],_0x2f2b01[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x142)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x2f2b01);continue;}break;}}}}const _0x49738d=await _0x5c2694[_0x3cf5f2(0x19b)](getCloudProviderObject,_0x1576c9,_0x2554e5,_0x287f14,_0x4e8e1c,webSocketUtils,_0x4db362);_0x5c2694[_0x3cf5f2(0x209)](_0x1576c9,AZURE)&&_0x49738d['sendResourceDataToHST']();let _0x45db9b;if(_0x5c2694[_0x3cf5f2(0x1a7)](_0x1703e6,![])){_0x5b9d4f='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x2a6352+').';const _0x97fd74={};_0x97fd74[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x97fd74[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x97fd74),logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x564039=await _0x49738d['isClusterPresent']();if(_0x564039){const _0x1d7365={};_0x1d7365[_0x3cf5f2(0x26b)]=WS_EVENTS['LOG'],_0x1d7365['message']=_0x3cf5f2(0x149)+_0x2554e5+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x1d7365,_0x5c2694['yVled']),logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x149)+_0x2554e5+_0x3cf5f2(0x1e5)),_0x1703e6=!![];if(_0x5c2694[_0x3cf5f2(0x15b)](_0x4c5256,!![]))throw new Error(_0x3cf5f2(0x149)+_0x2554e5+_0x3cf5f2(0x28c));}else{const _0x414a52={};_0x414a52[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x414a52[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x168)],webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x414a52),logger['info'](_0x5c2694[_0x3cf5f2(0x168)]);const _0x28431c=_0x5c2694[_0x3cf5f2(0x17d)](_0x2a619e,null)&&_0x5c2694[_0x3cf5f2(0x294)](_0x2a619e,undefined),_0x4e8cec=_0x5c2694[_0x3cf5f2(0x15f)](_0xfb6e5a,null)&&_0x5c2694[_0x3cf5f2(0x294)](_0xfb6e5a,undefined)&&_0x5c2694[_0x3cf5f2(0x214)](_0xfb6e5a[_0x3cf5f2(0x203)],0x0);if(_0x28431c){_0x5c2694[_0x3cf5f2(0x276)](_0x4e8cec,![])&&(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1e3)],await _0x5c2694[_0x3cf5f2(0x1e7)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x248)],_0x5c2694[_0x3cf5f2(0x23d)]),logger['error'](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));const _0x35ff39=await _0x49738d[_0x3cf5f2(0x148)](_0x2a619e);_0x5c2694['XnGbx'](_0x35ff39,![])?(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1fb)],await _0x5c2694[_0x3cf5f2(0x1e7)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x27f)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x198)+_0x2a619e+'\x20');const _0x40a845=await _0x49738d[_0x3cf5f2(0x28e)](_0xfb6e5a,_0x2a619e);_0x5c2694['dBYBW'](_0x40a845[0x0],![])?(_0x5b9d4f=_0x3cf5f2(0x227)+JSON[_0x3cf5f2(0x1f1)](_0x40a845[0x1])+_0x3cf5f2(0x188)+_0x2a619e+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x5c2694[_0x3cf5f2(0x174)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694['tQVRZ'],_0x5c2694['VaTEe']),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1)):logger[_0x3cf5f2(0x1c6)](_0x3cf5f2(0x1de)+JSON['stringify'](_0xfb6e5a)+'\x20'),await _0x49738d[_0x3cf5f2(0x279)](_0x2a619e,_0xfb6e5a);}else{const _0x5ed4bb=_0x5c2694['bWorp'][_0x3cf5f2(0x199)]('|');let _0x1630ef=0x0;while(!![]){switch(_0x5ed4bb[_0x1630ef++]){case'0':logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x23e)]);continue;case'1':const _0x1d0d5a={};_0x1d0d5a['type']=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x1d0d5a[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x228)],webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x1d0d5a);continue;case'2':const _0x469cc4={};_0x469cc4[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x469cc4[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x23e)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x469cc4);continue;case'3':await _0x49738d[_0x3cf5f2(0x279)](_0x2a619e,_0xfb6e5a);continue;case'4':logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x228)]);continue;}break;}}}}_0x1703e6&&_0x5c2694[_0x3cf5f2(0x1d9)](_0x1576c9,AZURE)&&(await _0x49738d[_0x3cf5f2(0x237)](),await _0x49738d[_0x3cf5f2(0x161)]());const [_0x42a698,_0x29ec46,_0x115218,_0xac9424,_0x2828c2,_0xcf5749]=await _0x5c2694[_0x3cf5f2(0x27a)](createK8sClient,_0x49738d,_0x4db362[_0x3cf5f2(0x26a)]);_0x5c2694[_0x3cf5f2(0x218)](_0x1703e6,![])&&_0x5c2694[_0x3cf5f2(0x276)](_0x1576c9,AWS)&&(global_registry[_0x3cf5f2(0x280)]=!![],_0x45db9b=await _0x49738d[_0x3cf5f2(0x20d)](_0x42a698,_0x4db362));try{_0x1c8a70=_0x5c2694[_0x3cf5f2(0x170)](kebabCase,_0x287f14),logger[_0x3cf5f2(0x1c6)](_0x5c2694['GWgJR']);const _0x20188f={};_0x20188f[_0x3cf5f2(0x26b)]=WS_EVENTS['LOG'],_0x20188f['message']=_0x5c2694[_0x3cf5f2(0x20a)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x20188f);if(_0x5c2694[_0x3cf5f2(0x1bb)](_0x1c8a70,_0x5c2694[_0x3cf5f2(0x145)])){const _0x420290={};_0x420290[_0x3cf5f2(0x1d1)]=_0x5c2694[_0x3cf5f2(0x179)],_0x420290[_0x3cf5f2(0x24f)]=_0x5c2694[_0x3cf5f2(0x179)];const _0x2b44e7={};_0x2b44e7[_0x3cf5f2(0x193)]=_0x1c8a70,_0x2b44e7[_0x3cf5f2(0x20b)]=_0x420290;const _0xc63728={};_0xc63728[_0x3cf5f2(0x15a)]=_0x2b44e7;const _0x40e2ac=_0xc63728,_0x1dec13={};_0x1dec13[_0x3cf5f2(0x17f)]=_0x40e2ac,await _0x42a698[_0x3cf5f2(0x21b)](_0x1dec13),logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x268)]);}const _0xf85c7d={};_0xf85c7d[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0xf85c7d[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x23f)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0xf85c7d);const _0x2684bf={};_0x2684bf[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x2684bf[_0x3cf5f2(0x1e6)]=_0x5c2694[_0x3cf5f2(0x27c)],webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x2684bf),logger[_0x3cf5f2(0x1c6)](_0x5c2694[_0x3cf5f2(0x1df)]);let _0x17c589={};_0x5c2694[_0x3cf5f2(0x1d3)](_0x1576c9,AZURE)&&(_0x17c589={'clientId':await _0x49738d[_0x3cf5f2(0x212)](_0x3cf5f2(0x266)+_0x2554e5)});await _0x5c2694[_0x3cf5f2(0x289)](addGridComponents,_0x42a698,_0x29ec46,_0x115218,_0xac9424,_0x1c8a70,_0x2554e5,_0x45db9b,_0x2828c2,_0xcf5749,_0x17c589),_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x14b)],logger['info'](_0x5b9d4f);const _0x5167e4={};_0x5167e4[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x5167e4[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils['sendEventToBackend'](_0x4e8e1c,_0x5167e4),_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x16c)],logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x2418f4={};_0x2418f4[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x2418f4['message']=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x2418f4),await _0x5c2694[_0x3cf5f2(0x152)](waitForDeployment,_0x29ec46,_0x1c8a70,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x14f268=await _0x5c2694[_0x3cf5f2(0x265)](getNamespaceUID,_0x42a698,_0x1c8a70),_0x12e336=global_registry[_0x3cf5f2(0x290)]?_0x5c2694['dyOfh']:_0x5c2694[_0x3cf5f2(0x1f3)],_0xfa896f={};_0xfa896f[_0x3cf5f2(0x193)]=_0x12e336,_0xfa896f[_0x3cf5f2(0x255)]=_0x5c2694['TemTo'];const _0x40aa35=await _0x42a698[_0x3cf5f2(0x1fc)](_0xfa896f);let _0x2cb28d=_0x49738d[_0x3cf5f2(0x14e)](_0x40aa35)+'/'+_0x1c8a70,_0x5c4f09=_0x5c2694[_0x3cf5f2(0x154)];try{const _0x1b5747=_0x3cf5f2(0x1ef)+AG_API_URL+_0x3cf5f2(0x1ae)+_0x14f268,_0x4db900=await _0x5c2694[_0x3cf5f2(0x27a)](got,_0x1b5747,_0x541231);(_0x5c2694['gFdyc'](_0x4db900,null)||_0x5c2694[_0x3cf5f2(0x1f2)](_0x4db900,undefined))&&(_0x5b9d4f=_0x5c2694['ydvLM'],await _0x5c2694[_0x3cf5f2(0x22e)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes[_0x3cf5f2(0x178)],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694['cRIcZ'],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));_0x5c2694[_0x3cf5f2(0x235)](_0x4db900['statusCode'],0x191)&&(_0x5b9d4f=_0x5c2694[_0x3cf5f2(0x1c0)],await _0x5c2694['IaftU'](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x263)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));_0x5c2694[_0x3cf5f2(0x21a)](_0x4db900[_0x3cf5f2(0x20e)],0xc8)&&(_0x5b9d4f=_0x3cf5f2(0x27b)+JSON[_0x3cf5f2(0x1f1)](_0x4db900),await _0x5c2694[_0x3cf5f2(0x1d5)](reportToGalactusAndSendToEDS,_0x4db362,_0x4e8e1c,_0x5b9d4f,messageTypes['ERROR'],_0x5c2694[_0x3cf5f2(0x260)],_0x5c2694[_0x3cf5f2(0x24c)],_0x5c2694[_0x3cf5f2(0x23d)]),logger[_0x3cf5f2(0x1d6)](_0x5b9d4f),process[_0x3cf5f2(0x1cc)](0x1));const _0x1a405d=JSON[_0x3cf5f2(0x270)](_0x4db900[_0x3cf5f2(0x17f)]);_0x1a405d[_0x3cf5f2(0x171)]&&(_0x2cb28d=_0x1a405d['route53'],_0x5c4f09=_0x5c2694[_0x3cf5f2(0x222)]),global_registry['isPrivateGrid']&&(_0x5c4f09=_0x5c2694[_0x3cf5f2(0x154)]);}catch(_0x1ae188){}_0x5b9d4f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x2cb28d+'\x20',logger[_0x3cf5f2(0x1c6)](_0x5b9d4f);const _0x562efe={};_0x562efe[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x562efe[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x562efe),_0x5b9d4f=_0x3cf5f2(0x166)+_0x5c4f09+_0x3cf5f2(0x1d4)+_0x2cb28d+_0x3cf5f2(0x17a),logger['info'](_0x5b9d4f);const _0x3e41ea={};_0x3e41ea[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x3e41ea[_0x3cf5f2(0x1e6)]=_0x5b9d4f,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x3e41ea);const _0x27c8a3={};_0x27c8a3[_0x3cf5f2(0x26b)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x27c8a3[_0x3cf5f2(0x1e6)]='CLI\x20run\x20finished:\x20'+_0x2cb28d,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x27c8a3),await webSocketUtils[_0x3cf5f2(0x17e)](0x7d0);}catch(_0x532f25){logger[_0x3cf5f2(0x1d6)](_0x3cf5f2(0x232)+_0x532f25+'\x20\x0a'+JSON[_0x3cf5f2(0x1f1)](_0x532f25[_0x3cf5f2(0x27d)]));if(_0x5c2694[_0x3cf5f2(0x17c)](_0x1703e6,![]))try{logger[_0x3cf5f2(0x1c6)](_0x5c2694['uMNyE']),await _0x5c2694[_0x3cf5f2(0x1bc)](removeGridComponents,_0x42a698,_0x29ec46,_0x115218,_0xac9424,_0x1c8a70),await _0x49738d[_0x3cf5f2(0x22f)](_0x42a698,global_registry[_0x3cf5f2(0x22a)]);}catch(_0xe3cd11){logger['error'](_0x3cf5f2(0x25a)+_0xe3cd11+'\x20\x0a'+JSON[_0x3cf5f2(0x1f1)](_0xe3cd11[_0x3cf5f2(0x27d)]));}throw _0x532f25;}}catch(_0x2843f3){const _0x3119f5='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x2843f3+'\x20\x0a'+JSON['stringify'](_0x2843f3[_0x3cf5f2(0x27d)]);if(_0x4e8e1c){const _0x96903a={};_0x96903a[_0x3cf5f2(0x26b)]=WS_EVENTS[_0x3cf5f2(0x1a6)],_0x96903a[_0x3cf5f2(0x1e6)]=_0x3119f5,webSocketUtils[_0x3cf5f2(0x204)](_0x4e8e1c,_0x96903a,_0x5c2694[_0x3cf5f2(0x23d)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x493a62={};_0x493a62[_0x3cf5f2(0x1d6)]=_0x3119f5,await _0x5c2694[_0x3cf5f2(0x143)](sendInstrumentationEvent,_0x4db362,_0x5c2694[_0x3cf5f2(0x260)],messageTypes['ERROR'],_0x5c2694['KEJMA'],_0x493a62,_0x4db362),logger[_0x3cf5f2(0x1d6)](_0x3119f5);}process[_0x3cf5f2(0x1cc)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x47c117=a10_0x5ad1;(function(_0x3ef5d1,_0x40eb07){const _0x5f45bd=a10_0x5ad1,_0x12f733=_0x3ef5d1();while(!![]){try{const _0x3421b3=parseInt(_0x5f45bd(0x101))/0x1+-parseInt(_0x5f45bd(0xfe))/0x2*(parseInt(_0x5f45bd(0xf6))/0x3)+parseInt(_0x5f45bd(0x109))/0x4*(-parseInt(_0x5f45bd(0x10c))/0x5)+parseInt(_0x5f45bd(0x106))/0x6+parseInt(_0x5f45bd(0xfa))/0x7*(parseInt(_0x5f45bd(0xff))/0x8)+-parseInt(_0x5f45bd(0xfd))/0x9+-parseInt(_0x5f45bd(0x102))/0xa;if(_0x3421b3===_0x40eb07)break;else _0x12f733['push'](_0x12f733['shift']());}catch(_0x17f5b5){_0x12f733['push'](_0x12f733['shift']());}}}(a10_0x335b,0x30220));function a10_0x335b(){const _0x1088aa=['epilogue','5660qlPIIK','List\x20Grid\x20resources.','PAdFG','170ZrfskM','builder','45789ybLgQV','handler','tyzbJ','commandDir','56yrFVAp','command','help','3468600GeICdq','10bRtsdy','309648QoZMDT','desc','379303EHvGoN','2035930vlNNwr','recommendCommands','strict','usage','1329714tkaDeM','delete'];a10_0x335b=function(){return _0x1088aa;};return a10_0x335b();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x5ad1(_0x2fc01d,_0x34a209){const _0x335b8d=a10_0x335b();return a10_0x5ad1=function(_0x5ad188,_0x3abac8){_0x5ad188=_0x5ad188-0xf6;let _0x27595f=_0x335b8d[_0x5ad188];return _0x27595f;},a10_0x5ad1(_0x2fc01d,_0x34a209);}exports[a10_0x47c117(0xfb)]='delete',exports[a10_0x47c117(0x100)]=a10_0x47c117(0x10a),exports[a10_0x47c117(0x10d)]=function(_0x3e64c1){const _0x3b08ac=a10_0x47c117,_0x5c729c={};_0x5c729c[_0x3b08ac(0xf8)]='delete_commands',_0x5c729c[_0x3b08ac(0x10b)]='help';const _0x43f28a=_0x5c729c;return _0x3e64c1[_0x3b08ac(0x105)](HELP_HEADER_MESSAGE[_0x3b08ac(0x107)])[_0x3b08ac(0x108)](HELP_FOOTER_MESSAGE)[_0x3b08ac(0xf9)](_0x43f28a[_0x3b08ac(0xf8)])['demandCommand']()[_0x3b08ac(0x103)]()[_0x3b08ac(0x104)]()[_0x3b08ac(0xfc)](_0x43f28a[_0x3b08ac(0x10b)]);},exports[a10_0x47c117(0xf7)]=function(_0x890c49){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0xc06f(_0x1640ba,_0x42cca9){const _0x2bfde2=a11_0x2bfd();return a11_0xc06f=function(_0xc06f36,_0x3c0e0b){_0xc06f36=_0xc06f36-0xf0;let _0x1570cb=_0x2bfde2[_0xc06f36];return _0x1570cb;},a11_0xc06f(_0x1640ba,_0x42cca9);}const a11_0x4b589d=a11_0xc06f;(function(_0x419b8d,_0x1ffac2){const _0x54d002=a11_0xc06f,_0x4dc529=_0x419b8d();while(!![]){try{const _0x281bc5=-parseInt(_0x54d002(0x102))/0x1*(-parseInt(_0x54d002(0x188))/0x2)+parseInt(_0x54d002(0x181))/0x3+-parseInt(_0x54d002(0x124))/0x4*(-parseInt(_0x54d002(0x129))/0x5)+-parseInt(_0x54d002(0x127))/0x6+-parseInt(_0x54d002(0x161))/0x7+-parseInt(_0x54d002(0x141))/0x8+parseInt(_0x54d002(0xfc))/0x9*(-parseInt(_0x54d002(0x16b))/0xa);if(_0x281bc5===_0x1ffac2)break;else _0x4dc529['push'](_0x4dc529['shift']());}catch(_0x105f2e){_0x4dc529['push'](_0x4dc529['shift']());}}}(a11_0x2bfd,0xc1388));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x4b589d(0x11b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x4b589d(0x132)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x4b589d(0xfa)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x4b589d(0x159)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x4b589d(0x12e)),{inputConfirmation}=require(a11_0x4b589d(0x165)),{createK8sClient}=require(a11_0x4b589d(0x187)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x4b589d(0x142));function a11_0x2bfd(){const _0x110878=['clusterSpawnedVia','onlyGridInCluster','TCGAZ','GJeIx','unauthorised','4253703cxIMPp','https://','connectionTimeout','ezhpo','uSJIe','EHcxo','../../utils/createk8sClient','4xQOKSh','help','OveMb','nwtQg','string','qgzUd','kWnIx','dgeJN','replace','Cluster:\x20','default','stbIt','../../config/constants','RqWKy','351dxvwnD','clusterId','Delete\x20an\x20Automation\x20grid.','existsSync','yrFGm','TbgtC','30721AoNpAg','yejCk','CWctX','region','handler','name','Successfully\x20deleted\x20the\x20grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','invalid-input','OSnxh','password','azNth','wWVuR','OPaUh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','delete-grid-called','JUHoH','RDMFL','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Skip\x20insecure\x20cert\x20verification.','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','shhjR','VeepP','vtNER','vvNrT','uuid','ERROR','\x22\x20and\x20ID\x20','ERnnB','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Inpiv','<UsernamePlaceholder>','type','vxlEZ','12PKkvNn','warn','then','5852244fNpRtm','clusterRegion','2501095SJXrjU','cloudProvider','hQtbB','qfMjF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','../../utils/instrumentationUtils','cvppL','jyXVb','Browserstack','reconnecting-websocket','yDbwa','WebSocket','readFileSync','exit','UXVqB','usage','pHCca','ITgIX','argv','HQiJh','skip-tls-cert-verify','options','isClusterPresent','kdNjv','1900712utlpsm','../../utils/webSocketUtils','vnovi','gridId','bLlGm','epilogue','DcsGk','skipTlsCertVerify','stack','UKoff','uvvuh','info','clusterName','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','unknown-error','desc','eIpkH','mKykG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','boolean','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','PEHxd','../../cloudproviders/utils','toLowerCase','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','command','body','username','invalid-grid-id','deleteCluster','819413JRfSjQ','PDoLL','GjOst','description','../../utils/userInput','parse','jHDAg','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','bKEIA','delete','220140YqQdLk','BQnnx','XVOHg','requestId','cpshk','\x22\x20with\x20ID\x20','HHbcS','ucppt','/packages/cli/grid/','CLsYr','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Namespace:\x20','xrFkd','yepNC','statusCode','JiZCE','init-not-called'];a11_0x2bfd=function(){return _0x110878;};return a11_0x2bfd();}exports[a11_0x4b589d(0x15c)]='grid',exports[a11_0x4b589d(0x150)]=a11_0x4b589d(0xfe),exports['builder']=function(_0x135dab){const _0x27f1ed=a11_0x4b589d,_0x2b8036={};_0x2b8036['OSnxh']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x2b8036[_0x27f1ed(0xf9)]=_0x27f1ed(0xf2),_0x2b8036[_0x27f1ed(0x119)]='Skip\x20insecure\x20cert\x20verification.',_0x2b8036[_0x27f1ed(0x120)]=_0x27f1ed(0x156),_0x2b8036[_0x27f1ed(0xf0)]=_0x27f1ed(0x189);const _0x1bdc40=_0x2b8036,_0x287885={};_0x287885[_0x27f1ed(0x164)]=_0x1bdc40[_0x27f1ed(0x10b)],_0x287885[_0x27f1ed(0x122)]=_0x1bdc40[_0x27f1ed(0xf9)];const _0x37ff2d={};_0x37ff2d[_0x27f1ed(0x164)]=_0x1bdc40['vtNER'],_0x37ff2d['type']=_0x1bdc40[_0x27f1ed(0x120)],_0x37ff2d[_0x27f1ed(0xf8)]=![];const _0x5abbf6={};return _0x5abbf6['grid-id']=_0x287885,_0x5abbf6[_0x27f1ed(0x13d)]=_0x37ff2d,_0x135dab[_0x27f1ed(0x138)](HELP_HEADER_MESSAGE['delete'])[_0x27f1ed(0x146)](HELP_FOOTER_MESSAGE)['options'](_0x5abbf6)['help'](_0x1bdc40[_0x27f1ed(0xf0)])[_0x27f1ed(0x13b)];},exports[a11_0x4b589d(0x106)]=async function(_0x503469){const _0x1537fa=a11_0x4b589d,_0x469d82={'jHDAg':_0x1537fa(0x108),'CLsYr':_0x1537fa(0x114),'ezhpo':function(_0x46df98,_0x208a33){return _0x46df98!==_0x208a33;},'HQiJh':'gFLUf','jyXVb':'JOJdF','bKEIA':_0x1537fa(0xf3),'eIpkH':'Pass\x20the\x20ID\x20of\x20the\x20Grid','usGVR':'string','pRrNv':_0x1537fa(0x115),'nwtQg':_0x1537fa(0x156),'JUHoH':_0x1537fa(0x189),'bLlGm':_0x1537fa(0x14e),'UXVqB':function(_0x129870){return _0x129870();},'XVJEE':function(_0x50e664){return _0x50e664();},'BQnnx':function(_0x310af8,_0x2784ac){return _0x310af8===_0x2784ac;},'OPaUh':_0x1537fa(0x13a),'vvNrT':_0x1537fa(0x153),'uvvuh':function(_0x765cb8,_0x143982,_0x12e5c6,_0x111262,_0x1fff80,_0x5a7cc6,_0x43c5ce){return _0x765cb8(_0x143982,_0x12e5c6,_0x111262,_0x1fff80,_0x5a7cc6,_0x43c5ce);},'cvppL':_0x1537fa(0x111),'TbgtC':_0x1537fa(0x17b),'CWctX':function(_0x582c60,_0x542a22){return _0x582c60!==_0x542a22;},'vnovi':_0x1537fa(0x16d),'yejCk':function(_0x47b6ad){return _0x47b6ad();},'shhjR':function(_0x1c4748,_0x4491e3,_0x4b9236,_0x4f0db7){return _0x1c4748(_0x4491e3,_0x4b9236,_0x4f0db7);},'UKoff':_0x1537fa(0x131),'dgeJN':_0x1537fa(0x10e),'uSJIe':function(_0x159572,_0x2d8236){return _0x159572(_0x2d8236);},'DcsGk':_0x1537fa(0x100),'yepNC':_0x1537fa(0x186),'VeepP':_0x1537fa(0x11f),'xrFkd':_0x1537fa(0x10a),'kWnIx':_0x1537fa(0x133),'pHCca':_0x1537fa(0x121),'ZxbLc':'<PasswordPlaceholder>','ERnnB':function(_0xc49fbb,_0x40f9af,_0x1b8886,_0x29d860,_0x5394f3,_0xa962e1,_0x2139dd){return _0xc49fbb(_0x40f9af,_0x1b8886,_0x29d860,_0x5394f3,_0xa962e1,_0x2139dd);},'ucppt':function(_0x408746,_0x432b20,_0x1363c8){return _0x408746(_0x432b20,_0x1363c8);},'HBzJQ':function(_0x341bd4,_0x2da2c2,_0x11a057,_0x1d01fd,_0x283b60,_0x59531a){return _0x341bd4(_0x2da2c2,_0x11a057,_0x1d01fd,_0x283b60,_0x59531a);},'cpshk':function(_0x4529d7,_0x4adc67){return _0x4529d7===_0x4adc67;},'mKykG':_0x1537fa(0x162),'RDMFL':_0x1537fa(0x17e),'JiZCE':'DELETE','GjOst':function(_0x5ef728,_0x357eb7,_0x43684c){return _0x5ef728(_0x357eb7,_0x43684c);},'azNth':function(_0x3e1be7,_0x64e202){return _0x3e1be7!==_0x64e202;},'vxlEZ':function(_0x47d9d0,_0x5afaaf){return _0x47d9d0===_0x5afaaf;},'qfMjF':function(_0x41e692,_0x1a14d8,_0x1c15f4,_0x4cf792,_0x1c2960,_0x48e90d,_0x56e20f){return _0x41e692(_0x1a14d8,_0x1c15f4,_0x4cf792,_0x1c2960,_0x48e90d,_0x56e20f);},'HHbcS':'server-error','RqWKy':function(_0x1345d1,_0x2bdaf9){return _0x1345d1===_0x2bdaf9;},'zuxpc':_0x1537fa(0x110),'PEHxd':_0x1537fa(0x180),'hQtbB':function(_0x59c370,_0x4e6680,_0x428654,_0x3dd866,_0x178ad3,_0x108e70,_0x5a9167){return _0x59c370(_0x4e6680,_0x428654,_0x3dd866,_0x178ad3,_0x108e70,_0x5a9167);},'GJeIx':_0x1537fa(0x15f),'Ocdtd':function(_0x3161fe,_0x4b4eea,_0xda8a2e,_0x5d2b9a,_0x484f5d,_0x35ce35,_0x474449){return _0x3161fe(_0x4b4eea,_0xda8a2e,_0x5d2b9a,_0x484f5d,_0x35ce35,_0x474449);},'kdNjv':_0x1537fa(0x14f)};try{global_registry[_0x1537fa(0x16e)]=_0x469d82[_0x1537fa(0x137)](uuidv4);!fs[_0x1537fa(0xff)](_0x469d82['XVJEE'](getCredentialsPath))&&(_0x469d82[_0x1537fa(0x16c)](_0x469d82[_0x1537fa(0x10f)],_0x469d82[_0x1537fa(0x10f)])?(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x11a)]),await _0x469d82['uvvuh'](sendInstrumentationEvent,_0x503469,_0x469d82['cvppL'],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x101)],null,_0x503469),process[_0x1537fa(0x136)](0x1)):_0x30d37a[_0x1537fa(0x125)](_0x1537fa(0xf7)+_0x5a4cf8['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));_0x469d82['uvvuh'](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['INFO'],null,null,_0x503469);!_0x503469['gridId']&&(_0x469d82[_0x1537fa(0x104)](_0x469d82[_0x1537fa(0x143)],_0x469d82[_0x1537fa(0x143)])?_0x1c4df7=_0x1537fa(0x15b)+_0x5967ef[_0x1537fa(0x107)]+_0x1537fa(0x11d)+_0x12efb3['id']+_0x1537fa(0x168)+_0x13055c[_0x1537fa(0x14d)]+'\x22\x20with\x20ID\x20'+_0xa5587e['clusterId']+_0x1537fa(0x157):(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x174)]),process[_0x1537fa(0x136)](0x1)));const _0x23e592=JSON[_0x1537fa(0x166)](fs[_0x1537fa(0x135)](_0x469d82[_0x1537fa(0x103)](getCredentialsPath))),[_0x13da76,_0x28eb5f]=await _0x469d82[_0x1537fa(0x117)](getGridDetails,_0x23e592['Browserstack'][_0x1537fa(0x15e)],_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x10c)],_0x503469[_0x1537fa(0x144)]);if(_0x28eb5f){const _0x132a32=_0x28eb5f[_0x1537fa(0x14c)];let _0x3eacc0=_0x1537fa(0x15b)+_0x132a32['name']+_0x1537fa(0x11d)+_0x132a32['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x28eb5f[_0x1537fa(0x17d)]&&_0x469d82[_0x1537fa(0x16c)](_0x28eb5f[_0x1537fa(0x17c)],_0x469d82[_0x1537fa(0x14a)])&&(_0x469d82[_0x1537fa(0x16c)](_0x469d82[_0x1537fa(0xf5)],_0x469d82[_0x1537fa(0xf5)])?_0x3eacc0='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x132a32['name']+_0x1537fa(0x11d)+_0x132a32['id']+_0x1537fa(0x168)+_0x132a32[_0x1537fa(0x14d)]+_0x1537fa(0x170)+_0x132a32[_0x1537fa(0xfd)]+_0x1537fa(0x157):(_0x30bdd9[_0x1537fa(0x14c)](_0x469d82[_0x1537fa(0x167)]),_0x2e1d67[_0x1537fa(0x136)](0x0)));const _0x156fe4=await _0x469d82[_0x1537fa(0x185)](inputConfirmation,_0x3eacc0);(_0x469d82[_0x1537fa(0x16c)](_0x156fe4,undefined)||_0x469d82[_0x1537fa(0x16c)](_0x156fe4,null)||!(_0x469d82[_0x1537fa(0x16c)](_0x156fe4[_0x1537fa(0x15a)](),'y')||_0x469d82['BQnnx'](_0x156fe4['toLowerCase'](),'n')))&&(_0x469d82[_0x1537fa(0x104)](_0x469d82[_0x1537fa(0x147)],_0x469d82[_0x1537fa(0x178)])?(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x118)]),await _0x469d82[_0x1537fa(0x14b)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x177)],null,_0x503469),process['exit'](0x1)):_0x547ffc[_0x1537fa(0x14c)](_0x1537fa(0x176)+_0x5ba362+_0x1537fa(0x12d)));_0x469d82[_0x1537fa(0x16c)](_0x156fe4[_0x1537fa(0x15a)](),'n')&&(_0x469d82['ezhpo'](_0x469d82[_0x1537fa(0xf4)],_0x469d82['kWnIx'])?(_0x21dc54[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x174)]),_0x1744b0['exit'](0x1)):process['exit'](0x0));const _0x21f6ec=WS_ENDPOINT[_0x1537fa(0xf6)](_0x469d82[_0x1537fa(0x139)],_0x23e592[_0x1537fa(0x131)]['username'])[_0x1537fa(0xf6)](_0x469d82['ZxbLc'],_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x10c)]),_0x12da54={};_0x12da54[_0x1537fa(0x134)]=ws,_0x12da54[_0x1537fa(0x183)]=0x36ee80;const _0x1210dc=new ReconnectingWebSocket(_0x21f6ec,[],_0x12da54);global_registry[_0x1537fa(0x128)]=_0x132a32[_0x1537fa(0x105)];const _0x3e0d1c=_0x132a32[_0x1537fa(0x12a)],_0x5d072c=await _0x469d82['ERnnB'](getCloudProviderObject,_0x3e0d1c,_0x132a32[_0x1537fa(0x14d)],_0x132a32[_0x1537fa(0x107)],_0x1210dc,webSocketUtils,_0x503469),_0x5d31a0=await _0x5d072c[_0x1537fa(0x13f)]();if(_0x5d31a0){const _0x1b91e5=_0x469d82[_0x1537fa(0x185)](kebabCase,_0x132a32[_0x1537fa(0x107)]),[_0x3b0adc,_0x18fe5c,_0x1954ee,_0xae18d7,_0xd9e8fd,_0x1dd20d]=await _0x469d82[_0x1537fa(0x172)](createK8sClient,_0x5d072c,_0x503469[_0x1537fa(0x148)]);let _0x540032=!![];const _0x3f6f1a={};_0x3f6f1a[_0x1537fa(0x107)]=_0x1b91e5,await _0x3b0adc['readNamespace'](_0x3f6f1a)[_0x1537fa(0x126)](_0x2bb048=>{const _0x4ead59=_0x1537fa;_0x469d82[_0x4ead59(0x184)](_0x469d82[_0x4ead59(0x13c)],_0x469d82[_0x4ead59(0x13c)])?(_0x40c775['warn'](_0x4ead59(0x176)+_0x215a4b+_0x4ead59(0x155)),_0x580809=![]):logger[_0x4ead59(0x14c)](_0x4ead59(0x176)+_0x1b91e5+_0x4ead59(0x12d));})['catch'](_0x5c8836=>{const _0x2459ad=_0x1537fa;_0x469d82[_0x2459ad(0x184)](_0x469d82[_0x2459ad(0x130)],_0x469d82[_0x2459ad(0x169)])?(logger[_0x2459ad(0x125)](_0x2459ad(0x176)+_0x1b91e5+_0x2459ad(0x155)),_0x540032=![]):_0xf8ba8f[_0x2459ad(0x136)](0x0);});if(_0x540032){await _0x469d82['HBzJQ'](removeGridComponents,_0x3b0adc,_0x18fe5c,_0x1954ee,_0xae18d7,_0x1b91e5);if(_0x28eb5f[_0x1537fa(0x17d)]){const _0x49844a=await _0x5d072c['isBrowserstackCluster']();if(_0x49844a){if(_0x469d82[_0x1537fa(0x16f)](_0x469d82[_0x1537fa(0x152)],_0x469d82[_0x1537fa(0x152)]))await _0x5d072c[_0x1537fa(0x160)](_0x3b0adc,_0x132a32['region']);else{const _0x4484b8={};_0x4484b8[_0x1537fa(0x164)]=_0x469d82[_0x1537fa(0x151)],_0x4484b8['type']=_0x469d82['usGVR'];const _0xe02ec9={};_0xe02ec9[_0x1537fa(0x164)]=_0x469d82['pRrNv'],_0xe02ec9[_0x1537fa(0x122)]=_0x469d82[_0x1537fa(0xf1)],_0xe02ec9[_0x1537fa(0xf8)]=![];const _0x2e1155={};return _0x2e1155['grid-id']=_0x4484b8,_0x2e1155[_0x1537fa(0x13d)]=_0xe02ec9,_0x463b34[_0x1537fa(0x138)](_0x1a07c0[_0x1537fa(0x16a)])[_0x1537fa(0x146)](_0xabd589)[_0x1537fa(0x13e)](_0x2e1155)['help'](_0x469d82[_0x1537fa(0x112)])[_0x1537fa(0x13b)];}}else _0x469d82['CWctX'](_0x469d82[_0x1537fa(0x113)],_0x469d82[_0x1537fa(0x113)])?_0x260985[_0x1537fa(0x125)](_0x469d82[_0x1537fa(0x145)]):logger['warn'](_0x1537fa(0xf7)+_0x132a32['clusterName']+_0x1537fa(0x175));}}}else logger[_0x1537fa(0x125)](_0x469d82['bLlGm']);const _0x4a5eac=_0x1537fa(0x182)+AG_API_URL+_0x1537fa(0x173)+_0x503469[_0x1537fa(0x144)],_0x529008={'method':_0x469d82[_0x1537fa(0x17a)],'headers':_0x469d82['GjOst'](getAuthHeader,_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x15e)],_0x23e592['Browserstack']['password']),'throwHttpErrors':![]},_0x20bff1=await _0x469d82[_0x1537fa(0x163)](got,_0x4a5eac,_0x529008);_0x469d82[_0x1537fa(0x10d)](_0x20bff1,null)&&_0x469d82[_0x1537fa(0x10d)](_0x20bff1,undefined)&&_0x469d82[_0x1537fa(0x123)](_0x20bff1[_0x1537fa(0x179)],0xc8)&&(logger[_0x1537fa(0x14c)](_0x469d82[_0x1537fa(0x167)]),process['exit'](0x0)),logger[_0x1537fa(0x154)](_0x1537fa(0x116)+_0x20bff1[_0x1537fa(0x15d)]),await _0x469d82[_0x1537fa(0x12c)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x171)],_0x13da76,_0x503469),process['exit'](0x1);}_0x469d82[_0x1537fa(0xfb)](_0x13da76[_0x1537fa(0x179)],0x191)&&(logger['error'](_0x469d82['zuxpc']),await _0x469d82[_0x1537fa(0x11e)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x158)],null,_0x503469),process['exit'](0x1)),_0x469d82[_0x1537fa(0x123)](_0x13da76[_0x1537fa(0x179)],0x190)&&(logger[_0x1537fa(0x154)](JSON['parse'](_0x13da76[_0x1537fa(0x15d)])['message']),await _0x469d82[_0x1537fa(0x12b)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['ERROR'],_0x469d82[_0x1537fa(0x17f)],null,_0x503469),process['exit'](0x1)),logger[_0x1537fa(0x154)](_0x1537fa(0x109)+JSON['stringify'](_0x13da76)),await _0x469d82['Ocdtd'](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['ERROR'],_0x469d82[_0x1537fa(0x171)],_0x13da76,_0x503469),process[_0x1537fa(0x136)](0x1);}catch(_0x175c86){logger['error']('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x175c86[_0x1537fa(0x149)]),await _0x469d82[_0x1537fa(0x12c)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x140)],_0x175c86,_0x503469),process[_0x1537fa(0x136)](0x1);}};
|
|
1
|
+
const a11_0x1bb41b=a11_0x231c;function a11_0x231c(_0xc0fdb0,_0x1f7c8){const _0x490b77=a11_0x490b();return a11_0x231c=function(_0x231cb9,_0xf10605){_0x231cb9=_0x231cb9-0x12d;let _0x17d09d=_0x490b77[_0x231cb9];return _0x17d09d;},a11_0x231c(_0xc0fdb0,_0x1f7c8);}(function(_0x26772d,_0x271a01){const _0x329d6f=a11_0x231c,_0x4ff302=_0x26772d();while(!![]){try{const _0x4cc735=-parseInt(_0x329d6f(0x16c))/0x1*(parseInt(_0x329d6f(0x1bb))/0x2)+-parseInt(_0x329d6f(0x196))/0x3+-parseInt(_0x329d6f(0x144))/0x4+-parseInt(_0x329d6f(0x18f))/0x5*(parseInt(_0x329d6f(0x189))/0x6)+-parseInt(_0x329d6f(0x167))/0x7*(parseInt(_0x329d6f(0x18b))/0x8)+-parseInt(_0x329d6f(0x14b))/0x9+parseInt(_0x329d6f(0x156))/0xa*(parseInt(_0x329d6f(0x13c))/0xb);if(_0x4cc735===_0x271a01)break;else _0x4ff302['push'](_0x4ff302['shift']());}catch(_0x2bf34a){_0x4ff302['push'](_0x4ff302['shift']());}}}(a11_0x490b,0x50b8b));const fs=require('fs'),got=require(a11_0x1bb41b(0x179)),{v4:uuidv4}=require(a11_0x1bb41b(0x1bd)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1bb41b(0x1b8)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1bb41b(0x16a)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x1bb41b(0x1cb)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1bb41b(0x184)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x1bb41b(0x166)),{createK8sClient}=require(a11_0x1bb41b(0x19a)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1bb41b(0x14a)),webSocketUtils=require(a11_0x1bb41b(0x159));function a11_0x490b(){const _0x170b53=['Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','tvmHs','handler','Skip\x20insecure\x20cert\x20verification.','xZrdq','TlJJL','isBrowserstackCluster','9850gsOupR','DELETE','SvrIS','../../utils/webSocketUtils','XgLoB','njuVq','<PasswordPlaceholder>','tKJwS','clusterRegion','Pass\x20the\x20ID\x20of\x20the\x20Grid','dkPkV','dKTqi','epilogue','delete','existsSync','username','../../utils/userInput','203qPbyqs','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','../../config/constants','\x22\x20and\x20ID\x20','7ggnpAW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','parse','JeAeI','ziErM','uRcaq','\x22\x20with\x20ID\x20','password','dWpqU','command','got','unknown-error','nyWDU','VZJjM','GsBHj','statusCode','RkpIS','VjSHl','warn','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../../utils/gridComponents','string','clusterId','message','invalid-grid-id','1266318AGVvcW','RYxGU','113888NpGWne','onlyGridInCluster','clusterName','Delete\x20an\x20Automation\x20grid.','5IwYCGA','stringify','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','server-error','gridId','argv','stack','44859JOJglV','builder','WskIK','DYIVn','../../utils/createk8sClient','exit','init-not-called','isClusterPresent','options','zOXUH','clusterSpawnedVia','yoFDt','BHJDC','Ntatl','ERROR','readFileSync','Successfully\x20deleted\x20the\x20grid','grid','Cluster:\x20','connectionTimeout','ZfVgg','grid-id','requestId','qTPvZ','usage','tYTBa','delete-grid-called','catch','eQADe','vuqgL','fOcTC','unauthorised','dABsR','lhupH','reconnecting-websocket','tungX','NLFGa','73182ENjDez','error','uuid','replace','vDRIj','ilYUd','info','region','OEXKF','THjWm','cloudProvider','toLowerCase','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','help','nIgYd','XhcBu','../../cloudproviders/utils','vaXrg','PMXpk','wJSEA','vestv','tWTac','body','inuMw','xtbDU','tyBnw','skipTlsCertVerify','KMxfq','cLJoq','name','lAasQ','yJKxY','23221AgXkYn','default','WebSocket','Namespace:\x20','unCZB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','description','deleteCluster','2429248tmhESN','CQcmI','skip-tls-cert-verify','desc','EzumA','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','2217609bKqrUX','type','Browserstack','boolean'];a11_0x490b=function(){return _0x170b53;};return a11_0x490b();}exports[a11_0x1bb41b(0x178)]=a11_0x1bb41b(0x1a7),exports[a11_0x1bb41b(0x147)]=a11_0x1bb41b(0x18e),exports[a11_0x1bb41b(0x197)]=function(_0x1d74c9){const _0x37c970=a11_0x1bb41b,_0x5707d4={};_0x5707d4[_0x37c970(0x1b9)]=_0x37c970(0x15f),_0x5707d4[_0x37c970(0x1c9)]=_0x37c970(0x185),_0x5707d4[_0x37c970(0x15b)]='Skip\x20insecure\x20cert\x20verification.',_0x5707d4[_0x37c970(0x134)]=_0x37c970(0x14e),_0x5707d4[_0x37c970(0x135)]=_0x37c970(0x1c8);const _0x4a73c9=_0x5707d4,_0x352d83={};_0x352d83['description']=_0x4a73c9[_0x37c970(0x1b9)],_0x352d83[_0x37c970(0x14c)]=_0x4a73c9['nIgYd'];const _0xd4ac4a={};_0xd4ac4a[_0x37c970(0x142)]=_0x4a73c9[_0x37c970(0x15b)],_0xd4ac4a[_0x37c970(0x14c)]=_0x4a73c9[_0x37c970(0x134)],_0xd4ac4a['default']=![];const _0x1f0582={};return _0x1f0582[_0x37c970(0x1ab)]=_0x352d83,_0x1f0582[_0x37c970(0x146)]=_0xd4ac4a,_0x1d74c9[_0x37c970(0x1ae)](HELP_HEADER_MESSAGE[_0x37c970(0x163)])[_0x37c970(0x162)](HELP_FOOTER_MESSAGE)[_0x37c970(0x19e)](_0x1f0582)['help'](_0x4a73c9[_0x37c970(0x135)])[_0x37c970(0x194)];},exports[a11_0x1bb41b(0x151)]=async function(_0x4b9721){const _0x4e2d4e=a11_0x1bb41b,_0x3ab98c={'unCZB':_0x4e2d4e(0x1a6),'RkpIS':_0x4e2d4e(0x14f),'TlJJL':_0x4e2d4e(0x1c7),'THjWm':function(_0x58f0e7,_0x271f33){return _0x58f0e7!==_0x271f33;},'cLJoq':_0x4e2d4e(0x1c0),'RYxGU':function(_0x143bb1,_0x1b17d7){return _0x143bb1===_0x1b17d7;},'VjSHl':'XGBsH','tKJwS':_0x4e2d4e(0x150),'NLFGa':_0x4e2d4e(0x15f),'pQLBb':_0x4e2d4e(0x185),'EzumA':_0x4e2d4e(0x152),'fOcTC':_0x4e2d4e(0x14e),'jOKSk':_0x4e2d4e(0x1c8),'eQADe':function(_0x1fa465){return _0x1fa465();},'tWTac':function(_0x2fb96b){return _0x2fb96b();},'yJKxY':function(_0x2d363b,_0x5268e2){return _0x2d363b===_0x5268e2;},'tmUgb':'zjhhV','GokCg':_0x4e2d4e(0x174),'vDRIj':_0x4e2d4e(0x149),'PMXpk':function(_0x32cc01,_0x573857,_0x354eef,_0x278546,_0x1968d7,_0x354e19,_0x554188){return _0x32cc01(_0x573857,_0x354eef,_0x278546,_0x1968d7,_0x354e19,_0x554188);},'ziErM':_0x4e2d4e(0x1b0),'cZqYJ':_0x4e2d4e(0x19c),'YbVVU':function(_0xf25622,_0x36a3ef){return _0xf25622===_0x36a3ef;},'sUfDl':_0x4e2d4e(0x153),'zOXUH':_0x4e2d4e(0x145),'DYIVn':function(_0x2b7d86,_0x325236,_0x208d76,_0x55bf66){return _0x2b7d86(_0x325236,_0x208d76,_0x55bf66);},'XgLoB':function(_0x50b018,_0x593191){return _0x50b018===_0x593191;},'RLeMX':_0x4e2d4e(0x14d),'nyWDU':_0x4e2d4e(0x12d),'WskIK':function(_0x3bdafb,_0x4ac3ca){return _0x3bdafb(_0x4ac3ca);},'ZfVgg':function(_0x318d9e,_0x53a805){return _0x318d9e===_0x53a805;},'Ntatl':function(_0x5a1dfa,_0x1114d2){return _0x5a1dfa===_0x1114d2;},'vuqgL':function(_0x28fa4b,_0x2fbf98){return _0x28fa4b===_0x2fbf98;},'JeAeI':'NIWQU','qTPvZ':_0x4e2d4e(0x183),'lhupH':'invalid-input','RWdfw':'JvlRN','BHJDC':_0x4e2d4e(0x12f),'dkPkV':'<UsernamePlaceholder>','GsBHj':_0x4e2d4e(0x15c),'laLfq':function(_0x251f40,_0x15ca42,_0x1d6750,_0x43aa65,_0x472f75,_0x3e27b5,_0x1cf5ca){return _0x251f40(_0x15ca42,_0x1d6750,_0x43aa65,_0x472f75,_0x3e27b5,_0x1cf5ca);},'dKTqi':function(_0x23d650,_0x5766c1,_0xd42377){return _0x23d650(_0x5766c1,_0xd42377);},'tYTBa':function(_0x18a008,_0x2961be,_0x51fb7e,_0x51e49d,_0x58db1d,_0x1083bf){return _0x18a008(_0x2961be,_0x51fb7e,_0x51e49d,_0x58db1d,_0x1083bf);},'dWpqU':_0x4e2d4e(0x13a),'XhcBu':'PXHgV','OEXKF':_0x4e2d4e(0x130),'lVytd':_0x4e2d4e(0x157),'VZJjM':function(_0x17430f,_0x491075,_0x17521c){return _0x17430f(_0x491075,_0x17521c);},'KMxfq':function(_0x2d8e38,_0x3682af){return _0x2d8e38!==_0x3682af;},'inuMw':function(_0x3dea8c,_0xaa3d64,_0x3a9b28,_0x101061,_0x124d47,_0x4a7c31,_0x24b051){return _0x3dea8c(_0xaa3d64,_0x3a9b28,_0x101061,_0x124d47,_0x4a7c31,_0x24b051);},'yoFDt':_0x4e2d4e(0x192),'SvrIS':_0x4e2d4e(0x170),'zNyJm':_0x4e2d4e(0x1b5),'EvcBc':_0x4e2d4e(0x188),'dABsR':function(_0x3c67b4,_0x224215,_0x1d6755,_0x185136,_0x935e1b,_0x4221d5,_0xabc1a5){return _0x3c67b4(_0x224215,_0x1d6755,_0x185136,_0x935e1b,_0x4221d5,_0xabc1a5);},'LYNOg':function(_0x4d87d4,_0x48b1ea,_0x5f04c8,_0x2bec55,_0x4fc2c7,_0x310a4c,_0x3c8206){return _0x4d87d4(_0x48b1ea,_0x5f04c8,_0x2bec55,_0x4fc2c7,_0x310a4c,_0x3c8206);},'BEYNh':_0x4e2d4e(0x17a)};try{global_registry[_0x4e2d4e(0x1ac)]=_0x3ab98c[_0x4e2d4e(0x1b2)](uuidv4);!fs[_0x4e2d4e(0x164)](_0x3ab98c[_0x4e2d4e(0x131)](getCredentialsPath))&&(_0x3ab98c[_0x4e2d4e(0x13b)](_0x3ab98c['tmUgb'],_0x3ab98c['GokCg'])?(_0x2689eb[_0x4e2d4e(0x1c1)](_0x3ab98c['unCZB']),_0x13890c[_0x4e2d4e(0x19b)](0x0)):(console[_0x4e2d4e(0x1bc)](_0x3ab98c[_0x4e2d4e(0x1bf)]),await _0x3ab98c[_0x4e2d4e(0x12e)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c['ziErM'],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c['cZqYJ'],null,_0x4b9721),process['exit'](0x1)));_0x3ab98c['PMXpk'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes['INFO'],null,null,_0x4b9721);!_0x4b9721['gridId']&&(_0x3ab98c['YbVVU'](_0x3ab98c['sUfDl'],_0x3ab98c[_0x4e2d4e(0x19f)])?_0x55fc02='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4889be[_0x4e2d4e(0x139)]+_0x4e2d4e(0x16b)+_0x17966b['id']+_0x4e2d4e(0x16e)+_0x10e2ae[_0x4e2d4e(0x18d)]+_0x4e2d4e(0x175)+_0x2ea5ab['clusterId']+_0x4e2d4e(0x141):(console[_0x4e2d4e(0x1bc)](_0x3ab98c[_0x4e2d4e(0x17f)]),process['exit'](0x1)));const _0x1fc82b=JSON[_0x4e2d4e(0x171)](fs[_0x4e2d4e(0x1a5)](_0x3ab98c[_0x4e2d4e(0x1b2)](getCredentialsPath))),[_0xe5c4b2,_0x4a7b20]=await _0x3ab98c[_0x4e2d4e(0x199)](getGridDetails,_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x165)],_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x176)],_0x4b9721[_0x4e2d4e(0x193)]);if(_0x4a7b20){const _0x3215a9=_0x4a7b20[_0x4e2d4e(0x1c1)];let _0x1a0243='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x3215a9[_0x4e2d4e(0x139)]+_0x4e2d4e(0x16b)+_0x3215a9['id']+_0x4e2d4e(0x141);_0x4a7b20[_0x4e2d4e(0x18c)]&&_0x3ab98c[_0x4e2d4e(0x15a)](_0x4a7b20[_0x4e2d4e(0x1a0)],_0x3ab98c['RLeMX'])&&(_0x3ab98c[_0x4e2d4e(0x1c4)](_0x3ab98c[_0x4e2d4e(0x17b)],_0x3ab98c[_0x4e2d4e(0x17b)])?(_0x4ed9c4[_0x4e2d4e(0x1bc)](_0x3ab98c['RkpIS']),_0xeae4d1[_0x4e2d4e(0x19b)](0x1)):_0x1a0243=_0x4e2d4e(0x182)+_0x3215a9[_0x4e2d4e(0x139)]+_0x4e2d4e(0x16b)+_0x3215a9['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3215a9['clusterName']+_0x4e2d4e(0x175)+_0x3215a9[_0x4e2d4e(0x186)]+_0x4e2d4e(0x141));const _0x441b0f=await _0x3ab98c[_0x4e2d4e(0x198)](inputConfirmation,_0x1a0243);(_0x3ab98c[_0x4e2d4e(0x18a)](_0x441b0f,undefined)||_0x3ab98c[_0x4e2d4e(0x1aa)](_0x441b0f,null)||!(_0x3ab98c[_0x4e2d4e(0x1a3)](_0x441b0f[_0x4e2d4e(0x1c6)](),'y')||_0x3ab98c[_0x4e2d4e(0x1a3)](_0x441b0f[_0x4e2d4e(0x1c6)](),'n')))&&(_0x3ab98c[_0x4e2d4e(0x1b3)](_0x3ab98c[_0x4e2d4e(0x172)],_0x3ab98c[_0x4e2d4e(0x172)])?(console[_0x4e2d4e(0x1bc)](_0x3ab98c[_0x4e2d4e(0x1ad)]),await _0x3ab98c[_0x4e2d4e(0x12e)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c[_0x4e2d4e(0x1b7)],null,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1)):_0x4ecc67[_0x4e2d4e(0x19b)](0x0));_0x3ab98c[_0x4e2d4e(0x1aa)](_0x441b0f[_0x4e2d4e(0x1c6)](),'n')&&(_0x3ab98c[_0x4e2d4e(0x15a)](_0x3ab98c['RWdfw'],_0x3ab98c[_0x4e2d4e(0x1a2)])?(_0x50c36e[_0x4e2d4e(0x181)](_0x4e2d4e(0x13f)+_0xf1bc4c+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x15bc8e=![]):process['exit'](0x0));const _0x3da42b=WS_ENDPOINT[_0x4e2d4e(0x1be)](_0x3ab98c[_0x4e2d4e(0x160)],_0x1fc82b['Browserstack'][_0x4e2d4e(0x165)])[_0x4e2d4e(0x1be)](_0x3ab98c[_0x4e2d4e(0x17d)],_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x176)]),_0x1e87a1={};_0x1e87a1[_0x4e2d4e(0x13e)]=ws,_0x1e87a1[_0x4e2d4e(0x1a9)]=0x36ee80;const _0x1a00f9=new ReconnectingWebSocket(_0x3da42b,[],_0x1e87a1);global_registry[_0x4e2d4e(0x15e)]=_0x3215a9[_0x4e2d4e(0x1c2)];const _0x4719f7=_0x3215a9[_0x4e2d4e(0x1c5)],_0x326602=await _0x3ab98c['laLfq'](getCloudProviderObject,_0x4719f7,_0x3215a9[_0x4e2d4e(0x18d)],_0x3215a9['name'],_0x1a00f9,webSocketUtils,_0x4b9721),_0x5de98b=await _0x326602[_0x4e2d4e(0x19d)]();if(_0x5de98b){const _0x19e5e6=_0x3ab98c[_0x4e2d4e(0x198)](kebabCase,_0x3215a9[_0x4e2d4e(0x139)]),[_0x339a76,_0x1963ae,_0x480822,_0x325ea7,_0x23b777,_0x29027c]=await _0x3ab98c[_0x4e2d4e(0x161)](createK8sClient,_0x326602,_0x4b9721[_0x4e2d4e(0x136)]);let _0x443f99=!![];const _0x4d464d={};_0x4d464d[_0x4e2d4e(0x139)]=_0x19e5e6,await _0x339a76['readNamespace'](_0x4d464d)['then'](_0x1cd069=>{const _0x2c7e5a=_0x4e2d4e;_0x3ab98c[_0x2c7e5a(0x1c4)](_0x3ab98c[_0x2c7e5a(0x138)],_0x3ab98c[_0x2c7e5a(0x138)])?_0x45aa59[_0x2c7e5a(0x181)](_0x3ab98c[_0x2c7e5a(0x154)]):logger['info'](_0x2c7e5a(0x13f)+_0x19e5e6+_0x2c7e5a(0x191));})[_0x4e2d4e(0x1b1)](_0x1d89aa=>{const _0x156b75=_0x4e2d4e;_0x3ab98c['RYxGU'](_0x3ab98c[_0x156b75(0x180)],_0x3ab98c[_0x156b75(0x15d)])?_0x15c2af[_0x156b75(0x1c1)](_0x156b75(0x13f)+_0x76757d+_0x156b75(0x191)):(logger['warn'](_0x156b75(0x13f)+_0x19e5e6+_0x156b75(0x169)),_0x443f99=![]);});if(_0x443f99){await _0x3ab98c[_0x4e2d4e(0x1af)](removeGridComponents,_0x339a76,_0x1963ae,_0x480822,_0x325ea7,_0x19e5e6);if(_0x4a7b20['onlyGridInCluster']){const _0x596eb8=await _0x326602[_0x4e2d4e(0x155)]();if(_0x596eb8){if(_0x3ab98c[_0x4e2d4e(0x1b3)](_0x3ab98c[_0x4e2d4e(0x177)],_0x3ab98c[_0x4e2d4e(0x177)]))await _0x326602[_0x4e2d4e(0x143)](_0x339a76,_0x3215a9[_0x4e2d4e(0x1c2)]);else{const _0x3d2d20={};_0x3d2d20[_0x4e2d4e(0x142)]=_0x3ab98c[_0x4e2d4e(0x1ba)],_0x3d2d20[_0x4e2d4e(0x14c)]=_0x3ab98c['pQLBb'];const _0x4a5260={};_0x4a5260['description']=_0x3ab98c[_0x4e2d4e(0x148)],_0x4a5260[_0x4e2d4e(0x14c)]=_0x3ab98c[_0x4e2d4e(0x1b4)],_0x4a5260[_0x4e2d4e(0x13d)]=![];const _0x14347b={};return _0x14347b[_0x4e2d4e(0x1ab)]=_0x3d2d20,_0x14347b[_0x4e2d4e(0x146)]=_0x4a5260,_0x2deb94[_0x4e2d4e(0x1ae)](_0x4aa6ab[_0x4e2d4e(0x163)])[_0x4e2d4e(0x162)](_0x36344b)[_0x4e2d4e(0x19e)](_0x14347b)[_0x4e2d4e(0x1c8)](_0x3ab98c['jOKSk'])[_0x4e2d4e(0x194)];}}else _0x3ab98c[_0x4e2d4e(0x18a)](_0x3ab98c[_0x4e2d4e(0x1ca)],_0x3ab98c[_0x4e2d4e(0x1c3)])?_0x34f15b[_0x4e2d4e(0x181)](_0x4e2d4e(0x1a8)+_0x4fd95b[_0x4e2d4e(0x18d)]+_0x4e2d4e(0x16f)):logger[_0x4e2d4e(0x181)]('Cluster:\x20'+_0x3215a9['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x4e2d4e(0x181)](_0x3ab98c[_0x4e2d4e(0x154)]);const _0x46a7df='https://'+AG_API_URL+'/packages/cli/grid/'+_0x4b9721[_0x4e2d4e(0x193)],_0x2b4ae7={'method':_0x3ab98c['lVytd'],'headers':_0x3ab98c[_0x4e2d4e(0x161)](getAuthHeader,_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x165)],_0x1fc82b[_0x4e2d4e(0x14d)][_0x4e2d4e(0x176)]),'throwHttpErrors':![]},_0x866376=await _0x3ab98c[_0x4e2d4e(0x17c)](got,_0x46a7df,_0x2b4ae7);_0x3ab98c[_0x4e2d4e(0x137)](_0x866376,null)&&_0x3ab98c[_0x4e2d4e(0x1c4)](_0x866376,undefined)&&_0x3ab98c[_0x4e2d4e(0x13b)](_0x866376[_0x4e2d4e(0x17e)],0xc8)&&(logger[_0x4e2d4e(0x1c1)](_0x3ab98c[_0x4e2d4e(0x140)]),process[_0x4e2d4e(0x19b)](0x0)),logger['error'](_0x4e2d4e(0x168)+_0x866376[_0x4e2d4e(0x132)]),await _0x3ab98c['inuMw'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes['ERROR'],_0x3ab98c[_0x4e2d4e(0x1a1)],_0xe5c4b2,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1);}_0x3ab98c['XgLoB'](_0xe5c4b2[_0x4e2d4e(0x17e)],0x191)&&(logger['error'](_0x3ab98c[_0x4e2d4e(0x158)]),await _0x3ab98c['PMXpk'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c['ziErM'],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c['zNyJm'],null,_0x4b9721),process['exit'](0x1)),_0x3ab98c[_0x4e2d4e(0x1a3)](_0xe5c4b2[_0x4e2d4e(0x17e)],0x190)&&(logger[_0x4e2d4e(0x1bc)](JSON['parse'](_0xe5c4b2[_0x4e2d4e(0x132)])[_0x4e2d4e(0x187)]),await _0x3ab98c[_0x4e2d4e(0x133)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c['EvcBc'],null,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1)),logger[_0x4e2d4e(0x1bc)](_0x4e2d4e(0x16d)+JSON[_0x4e2d4e(0x190)](_0xe5c4b2)),await _0x3ab98c[_0x4e2d4e(0x1b6)](sendInstrumentationEvent,_0x4b9721,_0x3ab98c['ziErM'],messageTypes[_0x4e2d4e(0x1a4)],_0x3ab98c[_0x4e2d4e(0x1a1)],_0xe5c4b2,_0x4b9721),process[_0x4e2d4e(0x19b)](0x1);}catch(_0x2a3813){logger[_0x4e2d4e(0x1bc)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x2a3813[_0x4e2d4e(0x195)]),await _0x3ab98c['LYNOg'](sendInstrumentationEvent,_0x4b9721,_0x3ab98c[_0x4e2d4e(0x173)],messageTypes['ERROR'],_0x3ab98c['BEYNh'],_0x2a3813,_0x4b9721),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x2406(){const _0x48eb79=['JWDaG','../utils/utilityMethods','KnrIH','got','NIJjT','npimJ','argv','gbizA','239111Rdygin','xYopY','string','GihIR','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SwLOo','POSIb','SZglL','Browserstack','bAhcv','bstackUsername','tWSvF','type','../utils/userInput','bstackAccesskey','bXmPj','password','kswOS','mjkkx','help','handler','builder','djSyi','jeZwL','BxiEp','bstack-username','strict','1739403IUntpz','702228RjWVZa','12DybnAZ','HTCTV','bstack-accesskey','writeFileSync','jirqs','readFileSync','NMluL','stpUm','env','https://','OJdKt','XFrxg','utf-8','LkMvS','30FiVurX','description','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','rhgzx','eaMSF','../utils/instrumentationUtils','mkdirSync','BROWSERSTACK_USERNAME','PGdHe','yFoar','options','6252328nwDZhb','parse','ULAwI','vqxiZ','epilogue','YRMmj','exit','../config/constants','jUMaz','stack','init-called','stringify','WodSF','recommendCommands','username','fjfzL','nOCQg','MtagC','emLUm','1584114WcfUvU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','YKywv','vNmFE','HxnMA','debug','ERROR','MgQJV','command','existsSync','vTWck','PtROi','20NtGfYz','error','462634DnWbSD','wrong-creds','jPprR','unknown-error','iAsGv','HIyrm','6334167GaDhYb','eeRMD','usage'];a12_0x2406=function(){return _0x48eb79;};return a12_0x2406();}const a12_0x5bd0c9=a12_0x31c4;(function(_0x4463f2,_0x4e704f){const _0x31ea1e=a12_0x31c4,_0x1eec1e=_0x4463f2();while(!![]){try{const _0x541310=-parseInt(_0x31ea1e(0x80))/0x1+-parseInt(_0x31ea1e(0x6f))/0x2*(-parseInt(_0x31ea1e(0x9d))/0x3)+-parseInt(_0x31ea1e(0x9c))/0x4+-parseInt(_0x31ea1e(0x6d))/0x5*(parseInt(_0x31ea1e(0xc9))/0x6)+parseInt(_0x31ea1e(0x75))/0x7+parseInt(_0x31ea1e(0xb6))/0x8+parseInt(_0x31ea1e(0x9b))/0x9*(-parseInt(_0x31ea1e(0xab))/0xa);if(_0x541310===_0x4e704f)break;else _0x1eec1e['push'](_0x1eec1e['shift']());}catch(_0x48f388){_0x1eec1e['push'](_0x1eec1e['shift']());}}}(a12_0x2406,0x88ff9));const fs=require('fs'),util=require('util'),got=require(a12_0x5bd0c9(0x7b)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x5bd0c9(0x8d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5bd0c9(0xbd)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x5bd0c9(0x79)),{sendInstrumentationEvent}=require(a12_0x5bd0c9(0xb0));function a12_0x31c4(_0x53b065,_0x1d5682){const _0x240663=a12_0x2406();return a12_0x31c4=function(_0x31c43a,_0x27eef2){_0x31c43a=_0x31c43a-0x6c;let _0x2e4199=_0x240663[_0x31c43a];return _0x2e4199;},a12_0x31c4(_0x53b065,_0x1d5682);}exports[a12_0x5bd0c9(0xd1)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x5bd0c9(0x95)]=function(_0x26285f){const _0x2274f7=a12_0x5bd0c9,_0x28a5ac={};_0x28a5ac[_0x2274f7(0x92)]=_0x2274f7(0x84),_0x28a5ac[_0x2274f7(0xa1)]=_0x2274f7(0x82),_0x28a5ac['XFrxg']=_0x2274f7(0xca),_0x28a5ac[_0x2274f7(0x7f)]=_0x2274f7(0x93);const _0x4491b0=_0x28a5ac,_0x538426={};_0x538426[_0x2274f7(0xac)]=_0x4491b0[_0x2274f7(0x92)],_0x538426[_0x2274f7(0x8c)]=_0x4491b0[_0x2274f7(0xa1)];const _0x297400={};_0x297400[_0x2274f7(0xac)]=_0x4491b0[_0x2274f7(0xa8)],_0x297400['type']=_0x4491b0[_0x2274f7(0xa1)];const _0x5ef9f2={};return _0x5ef9f2[_0x2274f7(0x99)]=_0x538426,_0x5ef9f2[_0x2274f7(0x9f)]=_0x297400,_0x26285f['usage'](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2274f7(0xb5)](_0x5ef9f2)[_0x2274f7(0xc3)]()[_0x2274f7(0x9a)]()[_0x2274f7(0x93)](_0x4491b0[_0x2274f7(0x7f)])[_0x2274f7(0x7e)];},exports[a12_0x5bd0c9(0x94)]=async function(_0x18410a){const _0x4c6fd0=a12_0x5bd0c9,_0x5bccae={'jPprR':_0x4c6fd0(0xa9),'xYopY':function(_0x1c0b17){return _0x1c0b17();},'jeZwL':_0x4c6fd0(0x84),'rhgzx':_0x4c6fd0(0x82),'NIJjT':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GihIR':_0x4c6fd0(0x93),'eaMSF':function(_0x320c52,_0x3cda1e,_0x412b6d,_0x2ff8b8,_0x51687a,_0x50d00d,_0x5242ae){return _0x320c52(_0x3cda1e,_0x412b6d,_0x2ff8b8,_0x51687a,_0x50d00d,_0x5242ae);},'npimJ':_0x4c6fd0(0xc0),'vNmFE':function(_0x4836a4,_0x523049){return _0x4836a4===_0x523049;},'DteLY':_0x4c6fd0(0xa4),'xsqhh':_0x4c6fd0(0x98),'SZglL':function(_0x4615f7,_0x4ed68c){return _0x4615f7!==_0x4ed68c;},'vqxiZ':_0x4c6fd0(0xc6),'PGdHe':function(_0x59111b,_0x429c43){return _0x59111b!==_0x429c43;},'bAhcv':_0x4c6fd0(0x76),'OJdKt':function(_0x1aef36,_0x2ca2e6){return _0x1aef36===_0x2ca2e6;},'IRNQt':_0x4c6fd0(0xc7),'HTCTV':_0x4c6fd0(0x96),'SwLOo':function(_0x237fdc,_0x5be26b){return _0x237fdc===_0x5be26b;},'JWDaG':_0x4c6fd0(0x8b),'jUMaz':function(_0x15d2c4,_0x32c390){return _0x15d2c4===_0x32c390;},'MgQJV':function(_0x25bb50,_0x4a2cc7){return _0x25bb50===_0x4a2cc7;},'HIyrm':_0x4c6fd0(0xd3),'iAsGv':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','WodSF':function(_0x1c59ea){return _0x1c59ea();},'HxnMA':'GET','emLUm':function(_0x26babf,_0x48ea2a,_0xbc0d76){return _0x26babf(_0x48ea2a,_0xbc0d76);},'ULAwI':function(_0x485ada,_0x3789e8,_0x560a25){return _0x485ada(_0x3789e8,_0x560a25);},'IRYCa':function(_0x584f53,_0x4bb81e){return _0x584f53===_0x4bb81e;},'kswOS':function(_0x5350e4,_0x776b1a){return _0x5350e4===_0x776b1a;},'iwScy':'WtZNH','aLCXA':_0x4c6fd0(0xb4),'YKywv':'NDWlU','fjfzL':_0x4c6fd0(0x8f),'LkMvS':function(_0x4e7606){return _0x4e7606();},'KnrIH':_0x4c6fd0(0x86),'JJBbv':_0x4c6fd0(0xa3),'YRMmj':_0x4c6fd0(0xad),'PtROi':_0x4c6fd0(0x70),'TddGj':_0x4c6fd0(0x72)};try{global_registry['requestId']=_0x5bccae['xYopY'](uuidv4),_0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae[_0x4c6fd0(0x7d)],messageTypes['INFO'],null,null,_0x18410a);const _0x337240=_0x5bccae[_0x4c6fd0(0x81)](getDirForConfig);!fs[_0x4c6fd0(0xd2)](_0x337240)&&(_0x5bccae['vNmFE'](_0x5bccae['DteLY'],_0x5bccae['xsqhh'])?_0x305e48=!![]:fs['mkdirSync'](_0x337240));let _0x347a68,_0x1b7ef4;process[_0x4c6fd0(0xa5)][_0x4c6fd0(0xb2)]&&(_0x5bccae[_0x4c6fd0(0x87)](_0x5bccae[_0x4c6fd0(0xb9)],_0x5bccae[_0x4c6fd0(0xb9)])?_0x469cc5=_0x171d31[_0x4c6fd0(0xa5)]['BROWSERSTACK_ACCESS_KEY']:_0x347a68=process[_0x4c6fd0(0xa5)][_0x4c6fd0(0xb2)]);process[_0x4c6fd0(0xa5)]['BROWSERSTACK_ACCESS_KEY']&&(_0x5bccae[_0x4c6fd0(0xb3)](_0x5bccae[_0x4c6fd0(0x89)],_0x5bccae[_0x4c6fd0(0x89)])?_0x5b57c5=_0x33edfb[_0x4c6fd0(0x8a)]:_0x1b7ef4=process['env']['BROWSERSTACK_ACCESS_KEY']);_0x18410a['bstackUsername']&&(_0x5bccae[_0x4c6fd0(0xa7)](_0x5bccae['IRNQt'],_0x5bccae[_0x4c6fd0(0x9e)])?_0x60b7b3=_0x72406f['env']['BROWSERSTACK_USERNAME']:_0x347a68=_0x18410a[_0x4c6fd0(0x8a)]);_0x18410a[_0x4c6fd0(0x8e)]&&(_0x5bccae[_0x4c6fd0(0x85)](_0x5bccae[_0x4c6fd0(0x78)],_0x5bccae[_0x4c6fd0(0x78)])?_0x1b7ef4=_0x18410a[_0x4c6fd0(0x8e)]:_0x4c9281=_0x5ca450[_0x4c6fd0(0xb7)](_0x218ff9[_0x4c6fd0(0xa2)](_0x539067,_0x5bccae[_0x4c6fd0(0x71)])));if(_0x5bccae[_0x4c6fd0(0xbe)](_0x347a68,undefined)||_0x5bccae[_0x4c6fd0(0xd0)](_0x1b7ef4,undefined)){if(_0x5bccae[_0x4c6fd0(0xcc)](_0x5bccae[_0x4c6fd0(0x74)],_0x5bccae[_0x4c6fd0(0x74)])){logger[_0x4c6fd0(0xce)](_0x5bccae[_0x4c6fd0(0x73)]);const [_0x2d0661,_0x490000]=await _0x5bccae[_0x4c6fd0(0xc2)](inputBstackKeys);_0x347a68=_0x2d0661,_0x1b7ef4=_0x490000;}else _0x38e967=_0x11aa08[_0x4c6fd0(0x8e)];}let _0x4f2972=![];const _0x4820bc=_0x4c6fd0(0xa6)+_0x347a68+':'+_0x1b7ef4+'@'+BS_API_URL+'/automate/plan.json',_0x4122c3={'method':_0x5bccae[_0x4c6fd0(0xcd)],'headers':_0x5bccae[_0x4c6fd0(0xc8)](getAuthHeader,_0x347a68,_0x1b7ef4),'throwHttpErrors':![]},_0x21dcdb=await _0x5bccae[_0x4c6fd0(0xb8)](got,_0x4820bc,_0x4122c3);_0x5bccae['SZglL'](_0x21dcdb,null)&&_0x5bccae[_0x4c6fd0(0xb3)](_0x21dcdb,undefined)&&_0x5bccae['IRYCa'](_0x21dcdb['statusCode'],0xc8)&&(_0x5bccae[_0x4c6fd0(0x91)](_0x5bccae['iwScy'],_0x5bccae['aLCXA'])?_0x5052a7[_0x4c6fd0(0xb1)](_0x3f0b3f):_0x4f2972=!![]);if(_0x4f2972){if(_0x5bccae[_0x4c6fd0(0xb3)](_0x5bccae[_0x4c6fd0(0xcb)],_0x5bccae[_0x4c6fd0(0xc5)])){let _0x557f9b={};const _0x46bb7b=_0x5bccae[_0x4c6fd0(0xaa)](getCredentialsPath);if(fs[_0x4c6fd0(0xd2)](_0x46bb7b)){if(_0x5bccae['SZglL'](_0x5bccae[_0x4c6fd0(0x7a)],_0x5bccae['JJBbv']))_0x557f9b=JSON[_0x4c6fd0(0xb7)](fs[_0x4c6fd0(0xa2)](_0x46bb7b,_0x5bccae[_0x4c6fd0(0x71)]));else{let _0x18bd6f={};const _0x201fa8=_0x5bccae['xYopY'](_0x4d5e96);_0x7dd3cf['existsSync'](_0x201fa8)&&(_0x18bd6f=_0x5262cf[_0x4c6fd0(0xb7)](_0x266303[_0x4c6fd0(0xa2)](_0x201fa8,_0x5bccae[_0x4c6fd0(0x71)])));const _0xc30d8={};_0xc30d8[_0x4c6fd0(0xc4)]=_0x9872f8,_0xc30d8[_0x4c6fd0(0x90)]=_0x5ad348,_0x18bd6f[_0x4c6fd0(0x88)]=_0xc30d8,_0xfdf0b9['writeFileSync'](_0x201fa8,_0x44c9e7[_0x4c6fd0(0xc1)](_0x18bd6f)),_0x2f1a03[_0x4c6fd0(0xbc)](0x0);}}const _0x374ffa={};_0x374ffa[_0x4c6fd0(0xc4)]=_0x347a68,_0x374ffa[_0x4c6fd0(0x90)]=_0x1b7ef4,_0x557f9b[_0x4c6fd0(0x88)]=_0x374ffa,fs[_0x4c6fd0(0xa0)](_0x46bb7b,JSON[_0x4c6fd0(0xc1)](_0x557f9b)),process[_0x4c6fd0(0xbc)](0x0);}else{const _0x1a63c8={};_0x1a63c8[_0x4c6fd0(0xac)]=_0x5bccae[_0x4c6fd0(0x97)],_0x1a63c8[_0x4c6fd0(0x8c)]=_0x5bccae[_0x4c6fd0(0xae)];const _0x38cdc6={};_0x38cdc6['description']=_0x5bccae[_0x4c6fd0(0x7c)],_0x38cdc6[_0x4c6fd0(0x8c)]=_0x5bccae[_0x4c6fd0(0xae)];const _0x474e71={};return _0x474e71[_0x4c6fd0(0x99)]=_0x1a63c8,_0x474e71[_0x4c6fd0(0x9f)]=_0x38cdc6,_0x3380f3[_0x4c6fd0(0x77)](_0x226888['init'])[_0x4c6fd0(0xba)](_0xf26654)[_0x4c6fd0(0xb5)](_0x474e71)[_0x4c6fd0(0xc3)]()[_0x4c6fd0(0x9a)]()[_0x4c6fd0(0x93)](_0x5bccae[_0x4c6fd0(0x83)])['argv'];}}else logger[_0x4c6fd0(0x6e)](_0x5bccae[_0x4c6fd0(0xbb)]),await _0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae['npimJ'],messageTypes[_0x4c6fd0(0xcf)],_0x5bccae[_0x4c6fd0(0x6c)],null,_0x18410a),process[_0x4c6fd0(0xbc)](0x1);}catch(_0x479781){logger[_0x4c6fd0(0x6e)](_0x479781[_0x4c6fd0(0xbf)]),await _0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae[_0x4c6fd0(0x7d)],messageTypes[_0x4c6fd0(0xcf)],_0x5bccae['TddGj'],_0x479781,_0x18410a),process[_0x4c6fd0(0xbc)](0x1);}};
|
|
1
|
+
function a12_0x274e(){const _0xd122e3=['msdQH','TxyIN','IjAYM','SVuCQ','vVVKz','OKFCl','usage','bstack-username','584ErACGP','4263096KArgtK','recommendCommands','uuid','hYGvS','DxVoh','error','Rmiwf','DwneH','RpVce','bstackAccesskey','MDLck','password','601478BGMdMv','description','TQhva','argv','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Browserstack','../utils/userInput','bstackUsername','IAJSv','XfXWg','epilogue','zugWc','wrong-creds','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/logger','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','mkdirSync','uYwIw','BROWSERSTACK_ACCESS_KEY','desc','env','string','mNRDA','stringify','ZNBrR','exit','JjrWS','1VpddTO','KXQpe','init','9ecKxij','https://','type','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','518130huAjuL','tImnU','nuwjV','TETeO','tbrUr','ylPtR','8825QfvEQR','xxRhE','parse','996KxNvfr','statusCode','options','../utils/instrumentationUtils','bstack-accesskey','kvRVt','jxwSt','readFileSync','unknown-error','../config/constants','geNfL','jIszT','OBRNk','1546727nVtFsY','got','mGLhF','strict','QONcn','52784ZTkhNc','help','command','/automate/plan.json','QeUWg','writeFileSync','TEhmm','kzUyc','yTjaO','11vUmRoA','xOKXS','tacBn','ItIoB','VtyMF','BROWSERSTACK_USERNAME','513woFwiH','username','LQPfU','existsSync','nHmaU','gTTfm','debug','evPtW','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','SSzDH'];a12_0x274e=function(){return _0xd122e3;};return a12_0x274e();}const a12_0x5420ab=a12_0x29f0;function a12_0x29f0(_0x5f33c5,_0x395a52){const _0x274e8c=a12_0x274e();return a12_0x29f0=function(_0x29f074,_0x203037){_0x29f074=_0x29f074-0x174;let _0xafde91=_0x274e8c[_0x29f074];return _0xafde91;},a12_0x29f0(_0x5f33c5,_0x395a52);}(function(_0x531fce,_0x5286e4){const _0x49119b=a12_0x29f0,_0x401605=_0x531fce();while(!![]){try{const _0x488a9b=parseInt(_0x49119b(0x19d))/0x1*(parseInt(_0x49119b(0x181))/0x2)+-parseInt(_0x49119b(0x1ce))/0x3*(parseInt(_0x49119b(0x174))/0x4)+-parseInt(_0x49119b(0x1aa))/0x5*(parseInt(_0x49119b(0x1ad))/0x6)+-parseInt(_0x49119b(0x1ba))/0x7+parseInt(_0x49119b(0x1bf))/0x8*(parseInt(_0x49119b(0x1a0))/0x9)+parseInt(_0x49119b(0x1a4))/0xa*(parseInt(_0x49119b(0x1c8))/0xb)+parseInt(_0x49119b(0x175))/0xc;if(_0x488a9b===_0x5286e4)break;else _0x401605['push'](_0x401605['shift']());}catch(_0x41be2f){_0x401605['push'](_0x401605['shift']());}}}(a12_0x274e,0x2ad83));const fs=require('fs'),util=require('util'),got=require(a12_0x5420ab(0x1bb)),{v4:uuidv4}=require(a12_0x5420ab(0x177)),{logger}=require(a12_0x5420ab(0x18f)),{inputBstackKeys}=require(a12_0x5420ab(0x187)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5420ab(0x1b6)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x5420ab(0x1b0));exports[a12_0x5420ab(0x1c1)]=a12_0x5420ab(0x19f),exports[a12_0x5420ab(0x195)]=a12_0x5420ab(0x1d6),exports[a12_0x5420ab(0x191)]=function(_0x107d14){const _0x47942d=a12_0x5420ab,_0x9937fc={};_0x9937fc[_0x47942d(0x17d)]=_0x47942d(0x18e),_0x9937fc[_0x47942d(0x18c)]=_0x47942d(0x197),_0x9937fc[_0x47942d(0x19a)]=_0x47942d(0x190),_0x9937fc[_0x47942d(0x17f)]=_0x47942d(0x1c0);const _0x3c1f31=_0x9937fc,_0x13c1a9={};_0x13c1a9[_0x47942d(0x182)]=_0x3c1f31[_0x47942d(0x17d)],_0x13c1a9['type']=_0x3c1f31[_0x47942d(0x18c)];const _0x571921={};_0x571921['description']=_0x3c1f31[_0x47942d(0x19a)],_0x571921[_0x47942d(0x1a2)]=_0x3c1f31[_0x47942d(0x18c)];const _0x56d21c={};return _0x56d21c[_0x47942d(0x1df)]=_0x13c1a9,_0x56d21c[_0x47942d(0x1b1)]=_0x571921,_0x107d14[_0x47942d(0x1de)](HELP_HEADER_MESSAGE[_0x47942d(0x19f)])[_0x47942d(0x18b)](HELP_FOOTER_MESSAGE)[_0x47942d(0x1af)](_0x56d21c)[_0x47942d(0x176)]()[_0x47942d(0x1bd)]()[_0x47942d(0x1c0)](_0x3c1f31['MDLck'])[_0x47942d(0x184)];},exports['handler']=async function(_0x44347c){const _0x2c0c49=a12_0x5420ab,_0x3fa42f={'mGLhF':function(_0x1f8c48){return _0x1f8c48();},'SSzDH':'utf-8','ItIoB':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','OKFCl':'string','xEofv':_0x2c0c49(0x190),'TxyIN':_0x2c0c49(0x1c0),'nHmaU':function(_0x37604a,_0x27ca51,_0x441d6d,_0x3d6819,_0x2e6ab0,_0x3ce1d6,_0x6e3549){return _0x37604a(_0x27ca51,_0x441d6d,_0x3d6819,_0x2e6ab0,_0x3ce1d6,_0x6e3549);},'hYGvS':'init-called','XfXWg':function(_0x3f34a4,_0x46aba3){return _0x3f34a4===_0x46aba3;},'msdQH':'YErZA','kvRVt':function(_0x4a4dcd,_0x588ab5){return _0x4a4dcd!==_0x588ab5;},'gTTfm':'SIwwX','tbrUr':_0x2c0c49(0x183),'IjAYM':_0x2c0c49(0x1c7),'JjrWS':_0x2c0c49(0x1ca),'TETeO':function(_0x1dc6ee,_0xe98835){return _0x1dc6ee!==_0xe98835;},'jIszT':_0x2c0c49(0x1c5),'xOKXS':function(_0xd049d4,_0x471da5){return _0xd049d4===_0x471da5;},'evPtW':_0x2c0c49(0x1c3),'nuwjV':_0x2c0c49(0x17c),'DxVoh':_0x2c0c49(0x1a3),'mNRDA':function(_0x348ac4){return _0x348ac4();},'QONcn':'GET','vVVKz':function(_0x78a988,_0x3233c4,_0x103fdc){return _0x78a988(_0x3233c4,_0x103fdc);},'Rmiwf':function(_0x5a3ae9,_0x5646f9,_0xd6a6d){return _0x5a3ae9(_0x5646f9,_0xd6a6d);},'ylPtR':function(_0x381d01,_0x1573b9){return _0x381d01!==_0x1573b9;},'OBRNk':function(_0x5a819b,_0x277b93){return _0x5a819b===_0x277b93;},'nZXmk':function(_0x1728dd,_0x3eb76c){return _0x1728dd===_0x3eb76c;},'LQPfU':_0x2c0c49(0x1c6),'aSbnj':_0x2c0c49(0x1db),'gNokX':_0x2c0c49(0x189),'geNfL':'WFiMQ','tImnU':_0x2c0c49(0x1ab),'KXQpe':_0x2c0c49(0x1b3),'VtyMF':_0x2c0c49(0x185),'lXPEw':_0x2c0c49(0x18d),'uYwIw':_0x2c0c49(0x1b5)};try{global_registry['requestId']=_0x3fa42f['mGLhF'](uuidv4),_0x3fa42f[_0x2c0c49(0x1d2)](sendInstrumentationEvent,_0x44347c,_0x3fa42f[_0x2c0c49(0x178)],messageTypes['INFO'],null,null,_0x44347c);const _0x449dba=_0x3fa42f[_0x2c0c49(0x1bc)](getDirForConfig);if(!fs['existsSync'](_0x449dba)){if(_0x3fa42f[_0x2c0c49(0x18a)](_0x3fa42f[_0x2c0c49(0x1d8)],_0x3fa42f[_0x2c0c49(0x1d8)]))fs['mkdirSync'](_0x449dba);else{let _0x4c7c7d={};const _0x2d5229=_0x3fa42f[_0x2c0c49(0x1bc)](_0x3ac810);_0x1f93a5['existsSync'](_0x2d5229)&&(_0x4c7c7d=_0x54098c[_0x2c0c49(0x1ac)](_0x5d8da7[_0x2c0c49(0x1b4)](_0x2d5229,_0x3fa42f[_0x2c0c49(0x1d7)])));const _0x538bcf={};_0x538bcf['username']=_0x137cd7,_0x538bcf[_0x2c0c49(0x180)]=_0x207c0e,_0x4c7c7d[_0x2c0c49(0x186)]=_0x538bcf,_0x3b97eb[_0x2c0c49(0x1c4)](_0x2d5229,_0x4c01b3[_0x2c0c49(0x199)](_0x4c7c7d)),_0x444bae['exit'](0x0);}}let _0x5dc91a,_0x41c22c;process[_0x2c0c49(0x196)]['BROWSERSTACK_USERNAME']&&(_0x3fa42f[_0x2c0c49(0x1b2)](_0x3fa42f[_0x2c0c49(0x1d3)],_0x3fa42f[_0x2c0c49(0x1a8)])?_0x5dc91a=process['env'][_0x2c0c49(0x1cd)]:_0x26b062=_0x593323[_0x2c0c49(0x1ac)](_0x371ab0[_0x2c0c49(0x1b4)](_0x5c776c,_0x3fa42f['SSzDH'])));process[_0x2c0c49(0x196)][_0x2c0c49(0x194)]&&(_0x3fa42f[_0x2c0c49(0x1b2)](_0x3fa42f[_0x2c0c49(0x1da)],_0x3fa42f[_0x2c0c49(0x19c)])?_0x41c22c=process['env'][_0x2c0c49(0x194)]:_0x8a0c2f[_0x2c0c49(0x192)](_0x694869));_0x44347c[_0x2c0c49(0x188)]&&(_0x3fa42f[_0x2c0c49(0x1a7)](_0x3fa42f[_0x2c0c49(0x1b8)],_0x3fa42f[_0x2c0c49(0x1b8)])?_0x5265e9=_0x26a9d3['bstackAccesskey']:_0x5dc91a=_0x44347c[_0x2c0c49(0x188)]);_0x44347c[_0x2c0c49(0x17e)]&&(_0x3fa42f[_0x2c0c49(0x1c9)](_0x3fa42f[_0x2c0c49(0x1d5)],_0x3fa42f[_0x2c0c49(0x1d5)])?_0x41c22c=_0x44347c[_0x2c0c49(0x17e)]:_0x5abad1=!![]);if(_0x3fa42f[_0x2c0c49(0x18a)](_0x5dc91a,undefined)||_0x3fa42f[_0x2c0c49(0x1c9)](_0x41c22c,undefined)){if(_0x3fa42f['xOKXS'](_0x3fa42f[_0x2c0c49(0x1a6)],_0x3fa42f['nuwjV'])){logger[_0x2c0c49(0x1d4)](_0x3fa42f[_0x2c0c49(0x179)]);const [_0x1e47d8,_0x2e069c]=await _0x3fa42f[_0x2c0c49(0x198)](inputBstackKeys);_0x5dc91a=_0x1e47d8,_0x41c22c=_0x2e069c;}else{const _0x3e00c1={};_0x3e00c1[_0x2c0c49(0x182)]=_0x3fa42f[_0x2c0c49(0x1cb)],_0x3e00c1[_0x2c0c49(0x1a2)]=_0x3fa42f[_0x2c0c49(0x1dd)];const _0x369d59={};_0x369d59['description']=_0x3fa42f['xEofv'],_0x369d59[_0x2c0c49(0x1a2)]=_0x3fa42f[_0x2c0c49(0x1dd)];const _0x1b6026={};return _0x1b6026[_0x2c0c49(0x1df)]=_0x3e00c1,_0x1b6026[_0x2c0c49(0x1b1)]=_0x369d59,_0x92d283['usage'](_0x16d4bd['init'])['epilogue'](_0x24aba8)[_0x2c0c49(0x1af)](_0x1b6026)[_0x2c0c49(0x176)]()['strict']()['help'](_0x3fa42f[_0x2c0c49(0x1d9)])[_0x2c0c49(0x184)];}}let _0xa6b27c=![];const _0x4c8f6e=_0x2c0c49(0x1a1)+_0x5dc91a+':'+_0x41c22c+'@'+BS_API_URL+_0x2c0c49(0x1c2),_0xd150f={'method':_0x3fa42f[_0x2c0c49(0x1be)],'headers':_0x3fa42f[_0x2c0c49(0x1dc)](getAuthHeader,_0x5dc91a,_0x41c22c),'throwHttpErrors':![]},_0x49a9c5=await _0x3fa42f[_0x2c0c49(0x17b)](got,_0x4c8f6e,_0xd150f);_0x3fa42f['ylPtR'](_0x49a9c5,null)&&_0x3fa42f[_0x2c0c49(0x1a9)](_0x49a9c5,undefined)&&_0x3fa42f[_0x2c0c49(0x1b9)](_0x49a9c5[_0x2c0c49(0x1ae)],0xc8)&&(_0x3fa42f['nZXmk'](_0x3fa42f[_0x2c0c49(0x1d0)],_0x3fa42f['aSbnj'])?_0x45c433=_0x32a960[_0x2c0c49(0x196)][_0x2c0c49(0x1cd)]:_0xa6b27c=!![]);if(_0xa6b27c){if(_0x3fa42f[_0x2c0c49(0x1a7)](_0x3fa42f['gNokX'],_0x3fa42f[_0x2c0c49(0x1b7)])){let _0x32f104={};const _0x54ba6d=_0x3fa42f[_0x2c0c49(0x1bc)](getCredentialsPath);fs[_0x2c0c49(0x1d1)](_0x54ba6d)&&(_0x3fa42f[_0x2c0c49(0x1a7)](_0x3fa42f[_0x2c0c49(0x1a5)],_0x3fa42f[_0x2c0c49(0x19e)])?_0x32f104=JSON[_0x2c0c49(0x1ac)](fs[_0x2c0c49(0x1b4)](_0x54ba6d,_0x3fa42f[_0x2c0c49(0x1d7)])):_0x447b00=_0x451c50['bstackUsername']);const _0x31b803={};_0x31b803[_0x2c0c49(0x1cf)]=_0x5dc91a,_0x31b803['password']=_0x41c22c,_0x32f104[_0x2c0c49(0x186)]=_0x31b803,fs[_0x2c0c49(0x1c4)](_0x54ba6d,JSON[_0x2c0c49(0x199)](_0x32f104)),process[_0x2c0c49(0x19b)](0x0);}else _0x5e1f65=_0x20a69c[_0x2c0c49(0x196)]['BROWSERSTACK_ACCESS_KEY'];}else logger[_0x2c0c49(0x17a)](_0x3fa42f[_0x2c0c49(0x1cc)]),await _0x3fa42f[_0x2c0c49(0x1d2)](sendInstrumentationEvent,_0x44347c,_0x3fa42f['hYGvS'],messageTypes['ERROR'],_0x3fa42f['lXPEw'],null,_0x44347c),process[_0x2c0c49(0x19b)](0x1);}catch(_0x15dcb4){logger[_0x2c0c49(0x17a)](_0x15dcb4['stack']),await _0x3fa42f['nHmaU'](sendInstrumentationEvent,_0x44347c,_0x3fa42f[_0x2c0c49(0x178)],messageTypes['ERROR'],_0x3fa42f[_0x2c0c49(0x193)],_0x15dcb4,_0x44347c),process[_0x2c0c49(0x19b)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x251ccc=a13_0x3c9a;(function(_0x3a5ecc,_0x1aa2c4){const _0x306fa3=a13_0x3c9a,_0x553177=_0x3a5ecc();while(!![]){try{const _0x4c535e=-parseInt(_0x306fa3(0x187))/0x1*(parseInt(_0x306fa3(0x174))/0x2)+parseInt(_0x306fa3(0x173))/0x3+parseInt(_0x306fa3(0x17b))/0x4*(-parseInt(_0x306fa3(0x178))/0x5)+-parseInt(_0x306fa3(0x186))/0x6+parseInt(_0x306fa3(0x182))/0x7+-parseInt(_0x306fa3(0x184))/0x8+parseInt(_0x306fa3(0x17d))/0x9;if(_0x4c535e===_0x1aa2c4)break;else _0x553177['push'](_0x553177['shift']());}catch(_0x1722fb){_0x553177['push'](_0x553177['shift']());}}}(a13_0x4e7f,0xf1148));function a13_0x3c9a(_0x371eb0,_0x419b62){const _0x4e7f22=a13_0x4e7f();return a13_0x3c9a=function(_0x3c9a82,_0x188418){_0x3c9a82=_0x3c9a82-0x173;let _0x4cecb7=_0x4e7f22[_0x3c9a82];return _0x4cecb7;},a13_0x3c9a(_0x371eb0,_0x419b62);}function a13_0x4e7f(){const _0x16c216=['handler','command','NcKSQ','25dDLzfQ','UcVaa','List\x20down\x20the\x20Grid\x20resources.','1488908oWGeuc','../config/constants','10546380PJVlgv','root','epilogue','list_commands','help','10465231ydkJrx','list','1242728VByMKw','builder','966246jfxNXs','2000DxRCXI','recommendCommands','usage','2214384UWnPlJ','240tIRzoC'];a13_0x4e7f=function(){return _0x16c216;};return a13_0x4e7f();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x251ccc(0x17c));exports[a13_0x251ccc(0x176)]=a13_0x251ccc(0x183),exports['desc']=a13_0x251ccc(0x17a),exports[a13_0x251ccc(0x185)]=function(_0x4a1847){const _0x211350=a13_0x251ccc,_0x277480={};_0x277480[_0x211350(0x177)]=_0x211350(0x180),_0x277480[_0x211350(0x179)]='help';const _0x3635ee=_0x277480;return _0x4a1847['commandDir'](_0x3635ee['NcKSQ'])['demandCommand']()[_0x211350(0x189)](HELP_HEADER_MESSAGE[_0x211350(0x183)][_0x211350(0x17e)])[_0x211350(0x17f)](HELP_FOOTER_MESSAGE)[_0x211350(0x188)]()['strict']()[_0x211350(0x181)](_0x3635ee[_0x211350(0x179)]);},exports[a13_0x251ccc(0x175)]=function(_0x3681e5){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a14_0x59f0(_0x1f8733,_0x3f58bb){const _0x301a83=a14_0x301a();return a14_0x59f0=function(_0x59f00c,_0x2a0e42){_0x59f00c=_0x59f00c-0xf5;let _0x43a8c5=_0x301a83[_0x59f00c];return _0x43a8c5;},a14_0x59f0(_0x1f8733,_0x3f58bb);}const a14_0x1c0e9e=a14_0x59f0;(function(_0x543d36,_0x1dc341){const _0x5d6b81=a14_0x59f0,_0x27ebb4=_0x543d36();while(!![]){try{const _0x36af38=-parseInt(_0x5d6b81(0x103))/0x1+-parseInt(_0x5d6b81(0x110))/0x2*(-parseInt(_0x5d6b81(0x124))/0x3)+parseInt(_0x5d6b81(0x10c))/0x4+-parseInt(_0x5d6b81(0x115))/0x5*(-parseInt(_0x5d6b81(0x102))/0x6)+parseInt(_0x5d6b81(0x136))/0x7*(-parseInt(_0x5d6b81(0x106))/0x8)+-parseInt(_0x5d6b81(0x13c))/0x9+parseInt(_0x5d6b81(0x147))/0xa;if(_0x36af38===_0x1dc341)break;else _0x27ebb4['push'](_0x27ebb4['shift']());}catch(_0x23fb55){_0x27ebb4['push'](_0x27ebb4['shift']());}}}(a14_0x301a,0x4e556));function a14_0x301a(){const _0x48159b=['JJIan','SozbH','region','/packages/cli/get-all-grid-profiles','TruPa','error','list','server-error','type','rYtPW','unknown-error','username','INFO','bstackAccesskey','ERROR','QScga','bKgHf','1470ydEnLL','desc','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ERHWj','IeyRs','490473lcHWYy','exit','qtJFM','stringify','wfPuW','mRnHi','list-grid-profiles-called','AtzKc','description','boolean','gridProfile','712600jJNllk','grid-profile-name','log','DChYH','push','help','allGridProfiles','requestId','argv','NiOKE','cloud-provider','GET','handler','ymlnW','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','150GklYdL','346240sPnIbw','../../config/constants','vGceg','22328sukGqP','concurrency','table','/packages/cli/get-grid-profiles','unauthorised','cloudProvider','2447804aTzJER','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WSJOR','rEoQi','28486SCPovi','grid-profiles','statusCode','parse','epilogue','110655LcNXGI','../../utils/utilityMethods','../../utils/instrumentationUtils','options','https://','body','usage','uuid','IhzEG','Browserstack','init-not-called','readFileSync','Failed\x20to\x20list\x20resources!\x20Error:\x20','all-grid-profiles','WXuIS','15nctWUi'];a14_0x301a=function(){return _0x48159b;};return a14_0x301a();}const fs=require('fs'),got=require('got'),{table}=require(a14_0x1c0e9e(0x108)),{v4:uuidv4}=require(a14_0x1c0e9e(0x11c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1c0e9e(0x104)),{getCredentialsPath,getAuthHeader}=require(a14_0x1c0e9e(0x116)),{sendInstrumentationEvent}=require(a14_0x1c0e9e(0x117));exports['command']=a14_0x1c0e9e(0x111),exports[a14_0x1c0e9e(0x137)]=a14_0x1c0e9e(0x138),exports['builder']=function(_0x1bf8e4){const _0x3a449a=a14_0x1c0e9e,_0xc2217a={};_0xc2217a[_0x3a449a(0x125)]=_0x3a449a(0x101),_0xc2217a[_0x3a449a(0x10e)]=_0x3a449a(0x145),_0xc2217a[_0x3a449a(0x105)]='help';const _0x438020=_0xc2217a,_0x4c0f77={};_0x4c0f77[_0x3a449a(0x144)]=_0x438020[_0x3a449a(0x125)],_0x4c0f77[_0x3a449a(0x12d)]=_0x438020[_0x3a449a(0x10e)];const _0x5d88d7={};return _0x5d88d7[_0x3a449a(0x122)]=_0x4c0f77,_0x1bf8e4[_0x3a449a(0x11b)](HELP_HEADER_MESSAGE[_0x3a449a(0x12b)][_0x3a449a(0x146)])[_0x3a449a(0x114)](HELP_FOOTER_MESSAGE)[_0x3a449a(0x118)](_0x5d88d7)[_0x3a449a(0xf8)](_0x438020[_0x3a449a(0x105)])[_0x3a449a(0xfb)];},exports[a14_0x1c0e9e(0xff)]=async function(_0x47e317){const _0x237c96=a14_0x1c0e9e,_0x59da23={'oCMEq':function(_0x99aeb9){return _0x99aeb9();},'ERHWj':function(_0x326401){return _0x326401();},'eeytk':_0x237c96(0x10d),'AtzKc':function(_0x1750d3,_0x10065b,_0x5adbfc,_0x5a1dd8,_0x3f3f93,_0x5a0a6e,_0x3582fe){return _0x1750d3(_0x10065b,_0x5adbfc,_0x5a1dd8,_0x3f3f93,_0x5a0a6e,_0x3582fe);},'DChYH':_0x237c96(0x142),'ymlnW':_0x237c96(0x11f),'NiOKE':_0x237c96(0xfe),'qtJFM':function(_0x56e691,_0x22d7db,_0x2de3bd){return _0x56e691(_0x22d7db,_0x2de3bd);},'bKgHf':function(_0x17867c,_0x354072){return _0x17867c!==_0x354072;},'TruPa':function(_0x25ca5b,_0x22be51){return _0x25ca5b!==_0x22be51;},'rEoQi':function(_0x28dba0,_0x7296f0){return _0x28dba0===_0x7296f0;},'QKxeH':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','QScga':_0x237c96(0x148),'NfZjw':_0x237c96(0xfd),'SozbH':_0x237c96(0x127),'VIKog':_0x237c96(0x107),'rYtPW':function(_0xe60b9,_0x4f39d2){return _0xe60b9(_0x4f39d2);},'IeyRs':function(_0x454cf3,_0x27f856){return _0x454cf3===_0x27f856;},'IhzEG':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','mRnHi':_0x237c96(0x10a),'wfPuW':_0x237c96(0x12c),'XLMez':function(_0x3fcd4c,_0x17c63a,_0x37b832,_0x1a9bfd,_0x3030ba,_0x145d67,_0x54870d){return _0x3fcd4c(_0x17c63a,_0x37b832,_0x1a9bfd,_0x3030ba,_0x145d67,_0x54870d);},'WXuIS':_0x237c96(0x12f)};try{global_registry[_0x237c96(0xfa)]=_0x59da23['oCMEq'](uuidv4);let _0xed636d=_0x237c96(0x119)+AG_API_URL+_0x237c96(0x109);_0x47e317[_0x237c96(0xf9)]&&(_0xed636d=_0x237c96(0x119)+AG_API_URL+_0x237c96(0x128));!fs['existsSync'](_0x59da23[_0x237c96(0x13a)](getCredentialsPath))&&(console[_0x237c96(0x12a)](_0x59da23['eeytk']),await _0x59da23[_0x237c96(0x143)](sendInstrumentationEvent,_0x47e317,_0x59da23['DChYH'],messageTypes[_0x237c96(0x133)],_0x59da23[_0x237c96(0x100)],null,_0x47e317),process[_0x237c96(0x13d)](0x1));const _0x38a298=JSON[_0x237c96(0x113)](fs[_0x237c96(0x120)](_0x59da23['oCMEq'](getCredentialsPath))),_0x28649e={'method':_0x59da23[_0x237c96(0xfc)],'headers':_0x59da23[_0x237c96(0x13e)](getAuthHeader,_0x38a298[_0x237c96(0x11e)][_0x237c96(0x130)],_0x38a298[_0x237c96(0x11e)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x38a298[_0x237c96(0x11e)][_0x237c96(0x130)],global_registry[_0x237c96(0x132)]=_0x38a298[_0x237c96(0x11e)]['password'],_0x59da23['AtzKc'](sendInstrumentationEvent,_0x47e317,_0x59da23[_0x237c96(0xf6)],messageTypes[_0x237c96(0x131)],null,null,_0x47e317);const _0x466556=await _0x59da23['qtJFM'](got,_0xed636d,_0x28649e);if(_0x59da23[_0x237c96(0x135)](_0x466556,null)&&_0x59da23[_0x237c96(0x129)](_0x466556,undefined)&&_0x59da23[_0x237c96(0x10f)](_0x466556[_0x237c96(0x112)],0xc8)){const _0x3e4575=JSON['parse'](_0x466556[_0x237c96(0x11a)]);console[_0x237c96(0xf5)](_0x59da23['QKxeH']);const _0x53171b=[];_0x53171b[_0x237c96(0xf7)]([_0x59da23[_0x237c96(0x134)],_0x59da23['NfZjw'],_0x59da23[_0x237c96(0x126)],_0x59da23['VIKog']]),_0x3e4575['forEach'](_0x3eb093=>{const _0x4b52b8=_0x237c96;_0x53171b['push']([_0x3eb093['name'],_0x3eb093[_0x4b52b8(0x10b)],_0x3eb093['region'],_0x3eb093[_0x4b52b8(0x107)]]);}),console['log'](_0x59da23[_0x237c96(0x12e)](table,_0x53171b)),process[_0x237c96(0x13d)](0x0);}_0x59da23[_0x237c96(0x13b)](_0x466556[_0x237c96(0x112)],0x191)&&(console[_0x237c96(0x12a)](_0x59da23[_0x237c96(0x11d)]),await _0x59da23['AtzKc'](sendInstrumentationEvent,_0x47e317,_0x59da23['DChYH'],messageTypes[_0x237c96(0x133)],_0x59da23[_0x237c96(0x141)],null,_0x47e317),process[_0x237c96(0x13d)](0x1)),console['error'](_0x237c96(0x139)+JSON[_0x237c96(0x13f)](_0x466556)),await _0x59da23['AtzKc'](sendInstrumentationEvent,_0x47e317,_0x59da23[_0x237c96(0xf6)],messageTypes['ERROR'],_0x59da23[_0x237c96(0x140)],_0x466556,_0x47e317),process[_0x237c96(0x13d)](0x1);}catch(_0x174994){console[_0x237c96(0x12a)](_0x237c96(0x121)+_0x174994['stack']),await _0x59da23['XLMez'](sendInstrumentationEvent,_0x47e317,_0x59da23[_0x237c96(0xf6)],messageTypes['ERROR'],_0x59da23[_0x237c96(0x123)],_0x174994,_0x47e317),process[_0x237c96(0x13d)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a15_0x1f3662=a15_0x43c2;function a15_0x43c2(_0x3c84d8,_0x556fd7){const _0x2d543e=a15_0x2d54();return a15_0x43c2=function(_0x43c2b3,_0x1132db){_0x43c2b3=_0x43c2b3-0x68;let _0x3a7ffe=_0x2d543e[_0x43c2b3];return _0x3a7ffe;},a15_0x43c2(_0x3c84d8,_0x556fd7);}(function(_0x43b0dd,_0x2cc21c){const _0x29e287=a15_0x43c2,_0x5e4c0a=_0x43b0dd();while(!![]){try{const _0x33db4f=-parseInt(_0x29e287(0xa5))/0x1*(parseInt(_0x29e287(0x70))/0x2)+parseInt(_0x29e287(0x9e))/0x3*(-parseInt(_0x29e287(0x7e))/0x4)+parseInt(_0x29e287(0x6c))/0x5+parseInt(_0x29e287(0xb7))/0x6+-parseInt(_0x29e287(0xa3))/0x7*(-parseInt(_0x29e287(0x7d))/0x8)+parseInt(_0x29e287(0x9c))/0x9*(-parseInt(_0x29e287(0x91))/0xa)+-parseInt(_0x29e287(0xae))/0xb*(-parseInt(_0x29e287(0xc1))/0xc);if(_0x33db4f===_0x2cc21c)break;else _0x5e4c0a['push'](_0x5e4c0a['shift']());}catch(_0x50a851){_0x5e4c0a['push'](_0x5e4c0a['shift']());}}}(a15_0x2d54,0x719f1));const fs=require('fs'),got=require(a15_0x1f3662(0x97)),{table}=require(a15_0x1f3662(0x95)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1f3662(0x79)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x1f3662(0x77));exports[a15_0x1f3662(0xb0)]=a15_0x1f3662(0x7a),exports[a15_0x1f3662(0x89)]=a15_0x1f3662(0xbd),exports[a15_0x1f3662(0x99)]=function(_0x350731){const _0x23d0e1=a15_0x1f3662,_0x590e2d={};_0x590e2d[_0x23d0e1(0xb9)]=_0x23d0e1(0x6a),_0x590e2d[_0x23d0e1(0x94)]=_0x23d0e1(0x71),_0x590e2d[_0x23d0e1(0x81)]=_0x23d0e1(0x93);const _0x187057=_0x590e2d,_0x110b5c={};_0x110b5c['description']=_0x187057[_0x23d0e1(0xb9)],_0x110b5c[_0x23d0e1(0x69)]=_0x187057[_0x23d0e1(0x94)];const _0x31680e={};return _0x31680e['all-grids']=_0x110b5c,_0x350731['usage'](HELP_HEADER_MESSAGE[_0x23d0e1(0x76)][_0x23d0e1(0x74)])[_0x23d0e1(0x85)](HELP_FOOTER_MESSAGE)[_0x23d0e1(0x8a)](_0x31680e)[_0x23d0e1(0x93)](_0x187057['DlXmh'])[_0x23d0e1(0xb2)];},exports[a15_0x1f3662(0xba)]=async function(_0x827750){const _0x4df1db=a15_0x1f3662,_0x33e19f={'KDFjH':function(_0x59bf68){return _0x59bf68();},'AtJqE':function(_0x560668){return _0x560668();},'RhxBD':_0x4df1db(0xc3),'TmbWz':function(_0x46acbd,_0xc859da,_0xe52593,_0xf2e3e4,_0x3d8820,_0x26377a,_0x16dac5){return _0x46acbd(_0xc859da,_0xe52593,_0xf2e3e4,_0x3d8820,_0x26377a,_0x16dac5);},'SlgeX':'list-grids-called','PounS':_0x4df1db(0xb8),'OPVdt':'GET','GjZuh':function(_0x299e5c,_0x473eb4,_0x284a80){return _0x299e5c(_0x473eb4,_0x284a80);},'ZExjP':function(_0x8a3e12,_0x103158,_0x505660,_0x1115a2,_0x357da7,_0x21fd8d,_0xd12115){return _0x8a3e12(_0x103158,_0x505660,_0x1115a2,_0x357da7,_0x21fd8d,_0xd12115);},'TQuvD':function(_0x18296f,_0x181ad6){return _0x18296f!==_0x181ad6;},'zleZC':function(_0x2319f9,_0x3841fc){return _0x2319f9!==_0x3841fc;},'ltELd':function(_0x4aab00,_0x5ec388){return _0x4aab00===_0x5ec388;},'fIgyS':_0x4df1db(0x6e),'KwkUd':'grid-id','vGiqg':_0x4df1db(0x8e),'IXOdu':_0x4df1db(0xc2),'lQIUy':'running','AXzfK':_0x4df1db(0xb5),'MTguD':_0x4df1db(0xb4),'PBoWQ':function(_0xd804a2,_0x31eb45){return _0xd804a2(_0x31eb45);},'FejiH':_0x4df1db(0x8b),'uRzuU':function(_0x2e4009,_0x290c14,_0x2eb847,_0x13a70c,_0x29b253,_0x3bf7f3,_0x2b771b){return _0x2e4009(_0x290c14,_0x2eb847,_0x13a70c,_0x29b253,_0x3bf7f3,_0x2b771b);},'nDOUz':_0x4df1db(0xad),'TDYjs':function(_0x27aec9,_0x2cd3b3,_0x607b75,_0x3a6bac,_0x4a5307,_0x4488e9,_0x417308){return _0x27aec9(_0x2cd3b3,_0x607b75,_0x3a6bac,_0x4a5307,_0x4488e9,_0x417308);},'bTIPj':'server-error','UzoRf':_0x4df1db(0x92)};try{global_registry[_0x4df1db(0x6d)]=_0x33e19f[_0x4df1db(0x8d)](uuidv4);!fs[_0x4df1db(0x73)](_0x33e19f[_0x4df1db(0xc0)](getCredentialsPath))&&(console[_0x4df1db(0x83)](_0x33e19f[_0x4df1db(0x82)]),await _0x33e19f['TmbWz'](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x96)],_0x33e19f[_0x4df1db(0xa7)],null,_0x827750),process[_0x4df1db(0x6b)](0x1));const _0x3a8322=JSON[_0x4df1db(0x78)](fs[_0x4df1db(0x9d)](_0x33e19f[_0x4df1db(0xc0)](getCredentialsPath)));let _0x1c8de0=_0x4df1db(0xb1)+AG_API_URL+_0x4df1db(0xc4);_0x827750[_0x4df1db(0xbe)]&&(_0x1c8de0=_0x4df1db(0xb1)+AG_API_URL+_0x4df1db(0x8c));const _0x2f3ad9={'method':_0x33e19f[_0x4df1db(0xa2)],'headers':_0x33e19f[_0x4df1db(0x9a)](getAuthHeader,_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0x7b)],_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0xbb)]),'throwHttpErrors':![]};global_registry[_0x4df1db(0x75)]=_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0x7b)],global_registry[_0x4df1db(0xa9)]=_0x3a8322[_0x4df1db(0x88)][_0x4df1db(0xbb)],_0x33e19f[_0x4df1db(0x9b)](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x9f)],null,null,_0x827750);const _0x53e80b=await _0x33e19f[_0x4df1db(0x9a)](got,_0x1c8de0,_0x2f3ad9);if(_0x33e19f[_0x4df1db(0x84)](_0x53e80b,null)&&_0x33e19f['zleZC'](_0x53e80b,undefined)&&_0x33e19f[_0x4df1db(0x8f)](_0x53e80b[_0x4df1db(0xa0)],0xc8)){const _0x20af3a=JSON[_0x4df1db(0x78)](_0x53e80b[_0x4df1db(0x87)]);console[_0x4df1db(0xaa)](_0x33e19f[_0x4df1db(0x86)]);const _0x3cdc63=[];_0x3cdc63[_0x4df1db(0xaf)]([_0x33e19f[_0x4df1db(0x68)],_0x33e19f[_0x4df1db(0xa1)],_0x33e19f[_0x4df1db(0x7c)],_0x33e19f[_0x4df1db(0x7f)],_0x33e19f['AXzfK'],_0x33e19f['MTguD']]),_0x20af3a[_0x4df1db(0x80)](_0x57f532=>{const _0x56d161=_0x4df1db;_0x3cdc63[_0x56d161(0xaf)]([_0x57f532['id'],_0x57f532['name'],_0x57f532[_0x56d161(0xc2)],_0x57f532[_0x56d161(0xa6)],_0x57f532['queued'],_0x57f532[_0x56d161(0xbc)]]);}),console['log'](_0x33e19f[_0x4df1db(0x90)](table,_0x3cdc63)),process[_0x4df1db(0x6b)](0x0);}_0x33e19f[_0x4df1db(0x8f)](_0x53e80b['statusCode'],0x191)&&(console[_0x4df1db(0x83)](_0x33e19f[_0x4df1db(0xb3)]),await _0x33e19f[_0x4df1db(0xbf)](sendInstrumentationEvent,_0x827750,_0x33e19f['SlgeX'],messageTypes['ERROR'],_0x33e19f['nDOUz'],null,_0x827750),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4df1db(0xa4)](_0x53e80b)),await _0x33e19f[_0x4df1db(0x72)](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x96)],_0x33e19f[_0x4df1db(0xa8)],_0x53e80b,_0x827750),process[_0x4df1db(0x6b)](0x1);}catch(_0x42b93a){console[_0x4df1db(0x83)](_0x4df1db(0x6f)+_0x42b93a[_0x4df1db(0x98)]),await _0x33e19f[_0x4df1db(0xac)](sendInstrumentationEvent,_0x827750,_0x33e19f[_0x4df1db(0xab)],messageTypes[_0x4df1db(0x96)],_0x33e19f[_0x4df1db(0xb6)],_0x42b93a,_0x827750),process[_0x4df1db(0x6b)](0x1);}};function a15_0x2d54(){const _0x2a1dbe=['exit','293705JdqcVl','requestId','\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20list\x20resources!\x20Error:\x20','2pRyzzs','boolean','TDYjs','existsSync','grid','bstackUsername','list','../../utils/instrumentationUtils','parse','../../config/constants','grids','username','IXOdu','8LfYQVI','230756GxRsDe','lQIUy','forEach','DlXmh','RhxBD','error','TQuvD','epilogue','fIgyS','body','Browserstack','desc','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-all-grids','KDFjH','grid-name','ltELd','PBoWQ','10kaXafH','unknown-error','help','Twezk','table','ERROR','got','stack','builder','GjZuh','ZExjP','1434402zELclO','readFileSync','27RSLjei','INFO','statusCode','vGiqg','OPVdt','3652859nQRtqm','stringify','566602mbMXBL','running','PounS','bTIPj','bstackAccesskey','log','SlgeX','TmbWz','unauthorised','2077086cJOoCp','push','command','https://','argv','FejiH','cluster-name','queued','UzoRf','4514064kirHCX','init-not-called','SlUFI','handler','password','clusterName','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','allGrids','uRzuU','AtJqE','24NsfReN','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-grids','KwkUd','type','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.'];a15_0x2d54=function(){return _0x2a1dbe;};return a15_0x2d54();}
|