browserstack-node-sdk 1.34.21 → 1.34.23
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 -0
- package/src/helpers/central-scanner/helpers.js +1 -0
- 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_0x2cf5b0=a9_0x50fd;(function(_0x3f4003,_0x2b9f7b){const _0x3b8c79=a9_0x50fd,_0x404333=_0x3f4003();while(!![]){try{const _0x339e92=-parseInt(_0x3b8c79(0x238))/0x1*(parseInt(_0x3b8c79(0x2e2))/0x2)+-parseInt(_0x3b8c79(0x307))/0x3+-parseInt(_0x3b8c79(0x2c8))/0x4*(-parseInt(_0x3b8c79(0x30b))/0x5)+-parseInt(_0x3b8c79(0x30c))/0x6+-parseInt(_0x3b8c79(0x295))/0x7+parseInt(_0x3b8c79(0x21e))/0x8+parseInt(_0x3b8c79(0x20e))/0x9;if(_0x339e92===_0x2b9f7b)break;else _0x404333['push'](_0x404333['shift']());}catch(_0x10c47e){_0x404333['push'](_0x404333['shift']());}}}(a9_0x2cf2,0xafe9f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x2cf5b0(0x272)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x2cf5b0(0x288)),{logger}=require(a9_0x2cf5b0(0x20c)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x2cf5b0(0x24b)),{getCloudProviderObject}=require(a9_0x2cf5b0(0x290)),{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_0x2cf5b0(0x310)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x2cf5b0(0x306)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x2cf5b0(0x1ca));function a9_0x50fd(_0x4f3bc2,_0x2165d1){const _0x2cf243=a9_0x2cf2();return a9_0x50fd=function(_0x50fd85,_0x2e0d3f){_0x50fd85=_0x50fd85-0x1c8;let _0x5b4f4d=_0x2cf243[_0x50fd85];return _0x5b4f4d;},a9_0x50fd(_0x4f3bc2,_0x2165d1);}function a9_0x2cf2(){const _0x1d7b75=['CAGLm','GBSsy','managedBy','hzKVa','create-grid-checks-invalid-profile','kLuYl','debug','string','CLI_RUN_STARTED','Namespace\x20Created','LfkGb','QDrGr','Create\x20a\x20private/public\x20grid.','FKeJd','itUDY','bstackAccesskey','/packages/cli/get-grid-url?gridIdentifier=','clusterRegion','mCdzF','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','://','xbyUn','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','ZbVgF','Ghhgf','orkah','ZuvvD','VfMje','WrHNu','KxzCY','12004yDeelt','eQjXX','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','pNOWI','QUywq','hrVoH','DminQ','requestId','kLQUf','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','vpc','Cchol','XWBdC','browserVersion','Skip\x20insecure\x20cert\x20verification.','kiBoJ','ZoNbw','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','name','skipTlsCertVerify','Cluster:\x20','/packages/cli/create-grid-checks','rRBGy','fsSlK','VNpbU','https://','2vFLtTI','neNUr','<UsernamePlaceholder>','LPBii','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','YPuMz','<PasswordPlaceholder>','password','builder','help','stringify','WeUUX','createOtherResources','Found\x20Subnets:\x20','sCkCJ','uvrOQ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','pXQic','pre-spawned-invalid-subnets','vMSlD','ingress-nginx','non-aws-azure-cluster','BFtwa','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','bhtyh','djSUL','pre-spawned-invalid-vpc','lMiZy','qmQqq','kPDAf','HNiPp','dxdmD','dpduh','includes','ERROR','isNewAWSCluster','../../utils/gridComponents','285771XvTGXw','length','AbbbB','desc','295Uiiuxf','832404CKnrhL','wBcso','sAGTv','grid-name','../../config/constants','GWFrq','qFQCr','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','dQnsl','kGXEF','cluster-name','qomSE','mNFGA','wlLyJ','LFkPh','info','gridProfile','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','../../utils/instrumentationUtils','ZDvXB','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vUFNs','getResourceClientId','agPcN','/wd/hub','sendResourceDataToHST','phxps','get-grid-url-auth-failed','Namespace\x20created','wmbuh','KsjeM','BvLtW','pYvxG','statusCode','true','FMbHL','type','Cluster\x20created\x20successfully','pCuVR','Will\x20be\x20spawning\x20the\x20grid\x20','ggYDg','OuFKg','WTKDP','Adding\x20Websocket\x20listeners','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dZMKg','vbanf','PQQFn','newCluster','defaultGridProfile','BaEuY','Grid\x20can\x20be\x20accessed\x20at:\x20','sMNpP','INFO','krBgj','ehCpZ','IIium','epilogue','AKZXu','updateClusterAlreadyPresent','Ytozh','hJYtL','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Spawning\x20the\x20grid\x20','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','metadata','skip-tls-cert-verify','exit','setupNewCluster','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','tQgVw','TqzsE','s3bucket','stack','fxyXi','boolean','readFileSync','options','azabC','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','GLfIh','qFnzt','rdJPn','../../config/logger','argv','10859580mSveuj','message','default','arXtK','ZNYMm','Subnets:\x20','efSoZ','delay','cloudProvider','usage','AKRzW','private-grid','vZMBe','handler','HKarg','isClusterPresent','4264088cGVuYg','minNodes','instanceType','namespace','eLyVw','subnets','egVCg','eXGhz','ZysFB','bstackUsername','GHGLN','xBoQy','uKWmi','wrsrO','create-grid-checks-non-200','username','QttFd','region','QISAY','myyhD','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','VtuCI','NAEcs','ydyoD','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','794179OJbFJL','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','dddUA','clusterName','cloud-provider','\x20using\x20\x27','kaCxj','split','ieeZm','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.','CLI\x20run\x20started','ksccx','kwQdP','concurrency','init-not-called','iqNNn','description','isVPCPresent','ExKGf','../../utils/utilityMethods','error','route53','securityGroups','inTkI','XVhpz','VVKaa','ZZuEi','QelJB','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','Deleting\x20the\x20CloudFormation\x20Stacks','evQIB','LzHxm','lALZf','nnCOf','IleHG','ICyPC','ZPWUr','addListeners','Spawning\x20grid\x20on\x20to\x20the\x20cluster','body','rFgJy','eZhyE','IieLT','wkxYe','8|4|7|0|1|2|6|5|3','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','LOG','aDVKF','WHnjl','kqSSk','OdDQw','http','PPzkU','cLAFB','replace','hAPYw','ingress-nginx-controller','isPrivateGrid','reconnecting-websocket','alreadyPresent','parse','cRBSw','UXEZc','\x20are\x20not\x20present\x20in\x20VPC:\x20','sendEventToBackend','uspGQ','tTvIl','create-grid-checks-auth-failed','xSuSd','CdfVz','prespawned-cluster-args-not-passed','HMCSa','WdCuu','tslgy','deleteCluster','Found\x20VPC:\x20','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','WfntU','warn','privateGrid','../../utils/webSocketUtils','createNamespace','CLI\x20run\x20finished:\x20','hubVersion','NDHcl','DgTEk','command','gridProfileId','../../cloudproviders/utils','raGdK','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','RoMdE','scahD','1175839mOcXIQ','hDVum','maxNodes','get-grid-url-null-response','Browserstack','create','grid','MpWcw','\x20in\x20existing\x20cluster\x20\x27','vOiJc','nHUcr','MBfrC','toLowerCase','createdBy','WXETw','Cluster\x20','2|8|0|6|1|4|5|7|3','grid-spawning-failed','ayQSV','gridName','mBBGy'];a9_0x2cf2=function(){return _0x1d7b75;};return a9_0x2cf2();}exports[a9_0x2cf5b0(0x28e)]=a9_0x2cf5b0(0x29b),exports[a9_0x2cf5b0(0x30a)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x2cf5b0(0x2ea)]=function(_0x5cf459){const _0x100e7f=a9_0x2cf5b0,_0x5a03a4={};_0x5a03a4[_0x100e7f(0x1e1)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x5a03a4[_0x100e7f(0x1f5)]=_0x100e7f(0x2b1),_0x5a03a4[_0x100e7f(0x1d6)]=_0x100e7f(0x1cd),_0x5a03a4[_0x100e7f(0x2c6)]=_0x100e7f(0x2c0),_0x5a03a4['ieeZm']=_0x100e7f(0x2ca),_0x5a03a4[_0x100e7f(0x2af)]=_0x100e7f(0x232),_0x5a03a4['HUitV']=_0x100e7f(0x2b6),_0x5a03a4[_0x100e7f(0x25a)]='Skip\x20insecure\x20cert\x20verification.',_0x5a03a4[_0x100e7f(0x244)]=_0x100e7f(0x204),_0x5a03a4[_0x100e7f(0x2cc)]=_0x100e7f(0x2eb);const _0x9894d0=_0x5a03a4,_0x524db9={};_0x524db9['description']=_0x9894d0[_0x100e7f(0x1e1)],_0x524db9[_0x100e7f(0x1dd)]=_0x9894d0['Ytozh'];const _0x11af24={};_0x11af24[_0x100e7f(0x248)]=_0x9894d0[_0x100e7f(0x1d6)],_0x11af24[_0x100e7f(0x1dd)]=_0x9894d0[_0x100e7f(0x1f5)];const _0x5e0517={};_0x5e0517[_0x100e7f(0x248)]=_0x9894d0['WrHNu'],_0x5e0517[_0x100e7f(0x1dd)]=_0x9894d0['Ytozh'];const _0x217d00={};_0x217d00[_0x100e7f(0x248)]=_0x9894d0[_0x100e7f(0x240)],_0x217d00['type']=_0x9894d0[_0x100e7f(0x1f5)];const _0x20dccc={};_0x20dccc['description']=_0x9894d0[_0x100e7f(0x2af)],_0x20dccc[_0x100e7f(0x1dd)]=_0x9894d0[_0x100e7f(0x1f5)];const _0xad6730={};_0xad6730[_0x100e7f(0x248)]=_0x9894d0['HUitV'],_0xad6730[_0x100e7f(0x1dd)]=_0x9894d0[_0x100e7f(0x1f5)];const _0xefef66={};_0xefef66['description']=_0x9894d0[_0x100e7f(0x25a)],_0xefef66[_0x100e7f(0x1dd)]=_0x9894d0[_0x100e7f(0x244)],_0xefef66[_0x100e7f(0x210)]=![];const _0x5cd6f1={};return _0x5cd6f1[_0x100e7f(0x30f)]=_0x524db9,_0x5cd6f1['grid-profile']=_0x11af24,_0x5cd6f1['cluster-name']=_0x5e0517,_0x5cd6f1[_0x100e7f(0x23c)]=_0x217d00,_0x5cd6f1['region']=_0x20dccc,_0x5cd6f1[_0x100e7f(0x219)]=_0xad6730,_0x5cd6f1[_0x100e7f(0x1fb)]=_0xefef66,_0x5cf459[_0x100e7f(0x217)](HELP_HEADER_MESSAGE[_0x100e7f(0x29a)])[_0x100e7f(0x1f2)](HELP_FOOTER_MESSAGE)['options'](_0x5cd6f1)[_0x100e7f(0x2eb)](_0x9894d0[_0x100e7f(0x2cc)])[_0x100e7f(0x20d)];},exports[a9_0x2cf5b0(0x21b)]=async function(_0x229be1){const _0x537cfb=a9_0x2cf5b0,_0x474af2={'QttFd':_0x537cfb(0x286),'WXETw':function(_0x46231a,_0x138fcd){return _0x46231a===_0x138fcd;},'adpCs':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','WdCuu':'string','cLAFB':_0x537cfb(0x1cd),'UXEZc':_0x537cfb(0x2c0),'QISAY':_0x537cfb(0x2ca),'inTkI':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','coiHs':_0x537cfb(0x2b6),'lMiZy':_0x537cfb(0x2d6),'eFNgk':'boolean','Ttwcz':_0x537cfb(0x2eb),'NDHcl':'https','qmQqq':'12|11|6|3|1|10|8|5|14|9|13|7|0|4|2','tTvIl':function(_0x3f5579,_0x658b56,_0x1aa026,_0x430de0,_0x46c817,_0x92ad21,_0x4e4f9f,_0x48495b,_0x395603,_0x389fa,_0x286390,_0x3aa9a8){return _0x3f5579(_0x658b56,_0x1aa026,_0x430de0,_0x46c817,_0x92ad21,_0x4e4f9f,_0x48495b,_0x395603,_0x389fa,_0x286390,_0x3aa9a8);},'GHGLN':function(_0xcdf7db,_0xbebdd7){return _0xcdf7db!==_0xbebdd7;},'YcVnr':_0x537cfb(0x2a5),'wkxYe':_0x537cfb(0x242),'kqSSk':_0x537cfb(0x26b),'lALZf':_0x537cfb(0x24c),'HTqVV':function(_0x978a3b){return _0x978a3b();},'WfntU':function(_0x2d46c1){return _0x2d46c1();},'ZNYMm':function(_0x3252d4,_0x259e71){return _0x3252d4===_0x259e71;},'PPzkU':'swfgG','ZoNbw':_0x537cfb(0x1e5),'LPBii':function(_0x41e8da,_0x154ae8,_0x10e893,_0x450b39,_0x307759,_0x238e0e,_0x851c2){return _0x41e8da(_0x154ae8,_0x10e893,_0x450b39,_0x307759,_0x238e0e,_0x851c2);},'AKZXu':'create-grid-called','ZDvXB':_0x537cfb(0x246),'orkah':function(_0x31187f,_0x5e30dd,_0x7827ed,_0x2946d7,_0x588583,_0x371900,_0x35f50e){return _0x31187f(_0x5e30dd,_0x7827ed,_0x2946d7,_0x588583,_0x371900,_0x35f50e);},'NAEcs':function(_0x1bc5da){return _0x1bc5da();},'xSuSd':_0x537cfb(0x2e4),'arXtK':_0x537cfb(0x2e8),'fxyXi':_0x537cfb(0x1e4),'AbbbB':function(_0x29db64,_0x293600){return _0x29db64===_0x293600;},'WeUUX':_0x537cfb(0x1e3),'vOiJc':_0x537cfb(0x2ab),'wlLyJ':_0x537cfb(0x252),'bNtMq':_0x537cfb(0x260),'QelJB':_0x537cfb(0x208),'LfkGb':function(_0x4c10f2,_0x3ff228,_0x4e3aa8,_0x5421ec,_0x2de348,_0x14af27,_0x338b62,_0xf3e2e2){return _0x4c10f2(_0x3ff228,_0x4e3aa8,_0x5421ec,_0x2de348,_0x14af27,_0x338b62,_0xf3e2e2);},'UiFEM':_0x537cfb(0x27e),'kaCxj':'vORhs','PQQFn':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','WHnjl':function(_0x46880b,_0x1ca762,_0x534e29,_0x10fb16,_0x2f0e60,_0x15ab3a,_0x140d77,_0x534ea9){return _0x46880b(_0x1ca762,_0x534e29,_0x10fb16,_0x2f0e60,_0x15ab3a,_0x140d77,_0x534ea9);},'HMCSa':_0x537cfb(0x2f7),'aDVKF':_0x537cfb(0x1db),'LzHxm':function(_0x31fd4f,_0x20dab6){return _0x31fd4f!==_0x20dab6;},'vMSlD':'KQZsm','raGdK':_0x537cfb(0x243),'BFtwa':'aWBHW','KgNVE':_0x537cfb(0x1d7),'uvrOQ':_0x537cfb(0x2b7),'cRBSw':function(_0x285af8,_0x3adf9d){return _0x285af8!==_0x3adf9d;},'KxzCY':_0x537cfb(0x256),'GLfIh':_0x537cfb(0x259),'rdJPn':'GET','qFnzt':function(_0x5ac4f2,_0x18e737,_0x10a296){return _0x5ac4f2(_0x18e737,_0x10a296);},'egVCg':function(_0x5623c5,_0x2ea422){return _0x5623c5===_0x2ea422;},'CdfVz':_0x537cfb(0x29f),'ZPWUr':'LFfua','VVKaa':function(_0x1d0f94,_0x59be49){return _0x1d0f94===_0x59be49;},'mCdzF':function(_0x31c7b6,_0x77d728){return _0x31c7b6===_0x77d728;},'wrsrO':_0x537cfb(0x261),'efSoZ':_0x537cfb(0x1f7),'sAGTv':function(_0x1bccb6,_0xd70ba5,_0x5ebbc9,_0x3a9c4c,_0x508825,_0x5c5e9c,_0x44858a,_0xc90bbb){return _0x1bccb6(_0xd70ba5,_0x5ebbc9,_0x3a9c4c,_0x508825,_0x5c5e9c,_0x44858a,_0xc90bbb);},'vUFNs':'create-grid-checks-null-response','omXMz':function(_0x22dd42,_0x221d70){return _0x22dd42===_0x221d70;},'vbanf':function(_0x4a6e98,_0x4c174a){return _0x4a6e98===_0x4c174a;},'GWFrq':_0x537cfb(0x2cb),'VfMje':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','azabC':function(_0x2da65b,_0x44d4ce,_0x5ea373,_0x4ee29a,_0x35cab8,_0x5621ca,_0x208c31,_0x5b1708){return _0x2da65b(_0x44d4ce,_0x5ea373,_0x4ee29a,_0x35cab8,_0x5621ca,_0x208c31,_0x5b1708);},'RoMdE':_0x537cfb(0x27b),'tQgVw':function(_0x5a2af7,_0x35e116){return _0x5a2af7!==_0x35e116;},'uspGQ':function(_0x4eda34,_0x1ebc05){return _0x4eda34!==_0x1ebc05;},'dZMKg':_0x537cfb(0x1dc),'sCkCJ':'diLdF','pCuVR':_0x537cfb(0x22c),'HxgOg':'Grid\x20profile\x20fetched\x20from\x20backend','XVhpz':_0x537cfb(0x2e7),'kLQUf':function(_0x25d2c6,_0x3fc18a,_0x12ea28,_0x1dd621,_0x39bd9c,_0x6a7541,_0x1812d5,_0x8d2859){return _0x25d2c6(_0x3fc18a,_0x12ea28,_0x1dd621,_0x39bd9c,_0x6a7541,_0x1812d5,_0x8d2859);},'EjSjV':'create-grid-checks-grid-already-exists','CAGLm':function(_0x181f10,_0xae39a2){return _0x181f10===_0xae39a2;},'fsSlK':_0x537cfb(0x262),'hDVum':_0x537cfb(0x26a),'qFQCr':function(_0x3972ed,_0x171235){return _0x3972ed===_0x171235;},'qomSE':function(_0x593122,_0x2ae704){return _0x593122!==_0x2ae704;},'dxdmD':_0x537cfb(0x300),'myyhD':function(_0x3afe93,_0x5791d9){return _0x3afe93===_0x5791d9;},'kPDAf':function(_0x2cd496,_0x473937){return _0x2cd496!==_0x473937;},'VzeBP':'CKXeU','bhtyh':_0x537cfb(0x233),'pXQic':_0x537cfb(0x237),'sMNpP':_0x537cfb(0x2ae),'xBoQy':function(_0x961376,_0x523cd0){return _0x961376===_0x523cd0;},'ZysFB':function(_0x3e790d,_0x1d00b7){return _0x3e790d===_0x1d00b7;},'mBBGy':_0x537cfb(0x314),'hJYtL':_0x537cfb(0x294),'itUDY':function(_0x25525d,_0x12814f){return _0x25525d===_0x12814f;},'TqzsE':_0x537cfb(0x225),'ehCpZ':function(_0x2852f9,_0x3e8ea9){return _0x2852f9!==_0x3e8ea9;},'DminQ':'EocCD','ZuvvD':function(_0x39fb33,_0x168a83){return _0x39fb33===_0x168a83;},'vZMBe':function(_0x5907f2,_0x417801){return _0x5907f2!==_0x417801;},'rRBGy':'OIMuz','sEmPj':function(_0x306d1d,_0x3d1431){return _0x306d1d!==_0x3d1431;},'BHRKs':_0x537cfb(0x2ad),'MBfrC':_0x537cfb(0x318),'iqNNn':function(_0x410887,_0x192950,_0x5d50ac,_0x3614a7,_0x3f99dc,_0x255df4,_0x4b890d,_0xaf61db,_0x3e179d,_0x4470e9,_0x571867,_0x478984){return _0x410887(_0x192950,_0x5d50ac,_0x3614a7,_0x3f99dc,_0x255df4,_0x4b890d,_0xaf61db,_0x3e179d,_0x4470e9,_0x571867,_0x478984);},'aEQpV':function(_0x285d50,_0xf65a0e){return _0x285d50!==_0xf65a0e;},'AKRzW':_0x537cfb(0x1e2),'HKarg':_0x537cfb(0x29c),'pYvxG':_0x537cfb(0x264),'ayQSV':_0x537cfb(0x2e6),'XWBdC':function(_0x336fa5,_0x2835ff){return _0x336fa5!=_0x2835ff;},'suQKm':function(_0x31180b,_0x18f42c){return _0x31180b!==_0x18f42c;},'eLyVw':function(_0x1debe2,_0x3e3a75){return _0x1debe2>_0x3e3a75;},'kiBoJ':_0x537cfb(0x1c8),'dpduh':function(_0x3f894c,_0x52ce40,_0x5ed5da,_0x4aec67,_0x5717c8,_0x3a2537,_0xcc6c06,_0x458a61){return _0x3f894c(_0x52ce40,_0x5ed5da,_0x4aec67,_0x5717c8,_0x3a2537,_0xcc6c06,_0x458a61);},'VNpbU':'pre-spawned-subnets-not-selected','ExKGf':function(_0x146f54,_0x3c5ea1){return _0x146f54===_0x3c5ea1;},'xEQWs':_0x537cfb(0x292),'neNUr':function(_0x21b475,_0x1b5d8a,_0x35a62d,_0x63d8f2,_0xa49a51,_0x54b33f,_0x5be7c9,_0x39de58){return _0x21b475(_0x1b5d8a,_0x35a62d,_0x63d8f2,_0xa49a51,_0x54b33f,_0x5be7c9,_0x39de58);},'BaEuY':_0x537cfb(0x2fc),'NDlGx':_0x537cfb(0x2f4),'uKWmi':'0|2|3|1|4','NovQu':_0x537cfb(0x241),'tslgy':_0x537cfb(0x1de),'krBgj':function(_0x48e013,_0x2d0233,_0x3bc6b4){return _0x48e013(_0x2d0233,_0x3bc6b4);},'IIium':function(_0x184265,_0xcd47ff){return _0x184265(_0xcd47ff);},'WvnDf':'Creating\x20namespace','Cchol':_0x537cfb(0x210),'hAPYw':_0x537cfb(0x299),'YPumh':_0x537cfb(0x2b3),'dddUA':_0x537cfb(0x1d5),'djSUL':_0x537cfb(0x25e),'ydyoD':'Spawning\x20Grid\x20on\x20the\x20Cluster','Gbowz':function(_0x544ec8,_0x5134ac){return _0x544ec8===_0x5134ac;},'pMvCz':function(_0x2f1001,_0x460d83,_0x5bb2a3,_0x1c9194,_0x1515d1,_0x175ae6,_0x33a91e,_0x1545c6,_0x6ae83f,_0x321fda,_0x4c6eec){return _0x2f1001(_0x460d83,_0x5bb2a3,_0x1c9194,_0x1515d1,_0x175ae6,_0x33a91e,_0x1545c6,_0x6ae83f,_0x321fda,_0x4c6eec);},'hrVoH':'Grid\x20spawned\x20on\x20the\x20cluster','phxps':_0x537cfb(0x2bd),'kGXEF':function(_0x4f1325,_0x3daec5,_0x29a172,_0x15c152,_0x5f35fb){return _0x4f1325(_0x3daec5,_0x29a172,_0x15c152,_0x5f35fb);},'ZbVgF':'private-ingress-nginx-controller','bpSii':_0x537cfb(0x270),'NKpNn':_0x537cfb(0x2f6),'QDrGr':function(_0x47e878,_0x1c3696){return _0x47e878===_0x1c3696;},'DgTEk':function(_0x4ea0ba,_0x41f834){return _0x4ea0ba===_0x41f834;},'bCidO':_0x537cfb(0x313),'BvLtW':_0x537cfb(0x298),'xbyUn':function(_0x5dc34e,_0x3a0201){return _0x5dc34e===_0x3a0201;},'Ghhgf':_0x537cfb(0x2d9),'wBcso':function(_0x240563,_0x59b290,_0x17f02a,_0x105692,_0x3dd2b6,_0x3a6f8d,_0x41b515,_0x5d2d9d){return _0x240563(_0x59b290,_0x17f02a,_0x105692,_0x3dd2b6,_0x3a6f8d,_0x41b515,_0x5d2d9d);},'agPcN':_0x537cfb(0x1d4),'ICyPC':'get-grid-url-non-200','eQjXX':_0x537cfb(0x255),'kJRCR':function(_0x24fb06,_0x96d7d6,_0x4acf63,_0xcd4bcf,_0x811753,_0x263db8){return _0x24fb06(_0x96d7d6,_0x4acf63,_0xcd4bcf,_0x811753,_0x263db8);},'LFkPh':function(_0xfced45,_0x55b276,_0x4009ee,_0x2b7b54,_0xac3ae8,_0x18e740,_0x961762){return _0xfced45(_0x55b276,_0x4009ee,_0x2b7b54,_0xac3ae8,_0x18e740,_0x961762);},'JXZGn':_0x537cfb(0x2a6)};let _0x5b70f1=![],_0x26cea1=![],_0x5d58a0,_0x262a7f,_0x554056,_0x17aa96,_0x2fcfd4,_0x4493e8,_0x53c4f1,_0xdb7d0c,_0x8d6f76,_0x490adf,_0x126d6e,_0x1638a8,_0x20b2a2,_0x42a531,_0x228606=0x1,_0xdca43d=0xe;try{global_registry[_0x537cfb(0x2cf)]=_0x474af2['HTqVV'](uuidv4),global_registry[_0x537cfb(0x271)]=![];if(!fs['existsSync'](_0x474af2[_0x537cfb(0x285)](getCredentialsPath))){if(_0x474af2['ZNYMm'](_0x474af2[_0x537cfb(0x26c)],_0x474af2['PPzkU']))console[_0x537cfb(0x24c)](_0x474af2[_0x537cfb(0x2d8)]),await _0x474af2[_0x537cfb(0x2e5)](sendInstrumentationEvent,_0x229be1,_0x474af2[_0x537cfb(0x1f3)],messageTypes[_0x537cfb(0x304)],_0x474af2[_0x537cfb(0x1cb)],null,_0x229be1),process['exit'](0x1);else{const _0x4af701={};_0x4af701[_0x537cfb(0x1dd)]=_0x59dbcf[_0x537cfb(0x266)],_0x4af701[_0x537cfb(0x20f)]=_0x537cfb(0x2a4)+_0x2e7ffd+_0x537cfb(0x236),_0x201556[_0x537cfb(0x278)](_0x25f780,_0x4af701,_0x474af2['QttFd']),_0x38004a[_0x537cfb(0x31b)](_0x537cfb(0x2a4)+_0x35375b+_0x537cfb(0x236)),_0x1b9234=!![];if(_0x474af2[_0x537cfb(0x2a3)](_0x4d9bee,!![]))throw new _0x52ad30(_0x537cfb(0x2a4)+_0x45e26e+_0x537cfb(0x284));}}await _0x474af2[_0x537cfb(0x2c3)](sendInstrumentationEvent,_0x229be1,_0x474af2[_0x537cfb(0x1f3)],messageTypes[_0x537cfb(0x1ee)],null,null,_0x229be1);const _0x125cae=JSON[_0x537cfb(0x274)](fs[_0x537cfb(0x205)](_0x474af2[_0x537cfb(0x234)](getCredentialsPath)));global_registry[_0x537cfb(0x227)]=_0x125cae[_0x537cfb(0x299)][_0x537cfb(0x22d)],global_registry[_0x537cfb(0x2b9)]=_0x125cae[_0x537cfb(0x299)]['password'];const _0x45bd15=WS_ENDPOINT[_0x537cfb(0x26e)](_0x474af2[_0x537cfb(0x27c)],_0x125cae['Browserstack']['username'])[_0x537cfb(0x26e)](_0x474af2[_0x537cfb(0x211)],_0x125cae[_0x537cfb(0x299)][_0x537cfb(0x2e9)]),_0x1a037f={};_0x1a037f['WebSocket']=ws,_0x1a037f['connectionTimeout']=0x36ee80,_0x1638a8=new ReconnectingWebSocket(_0x45bd15,[],_0x1a037f),logger[_0x537cfb(0x2b0)](_0x474af2[_0x537cfb(0x203)]),webSocketUtils[_0x537cfb(0x25d)](_0x1638a8,_0x229be1['user'],_0x229be1[_0x537cfb(0x2e9)]);const _0x307eaa=_0x229be1['gridName']||DEFAULT_GRID_NAME;if(_0x229be1['clusterName']||_0x229be1[_0x537cfb(0x216)]||_0x229be1[_0x537cfb(0x22f)]){if(_0x474af2[_0x537cfb(0x309)](_0x474af2[_0x537cfb(0x2ed)],_0x474af2[_0x537cfb(0x29e)])){const _0x523d4d={};_0x523d4d[_0x537cfb(0x248)]=_0x474af2['adpCs'],_0x523d4d[_0x537cfb(0x1dd)]=_0x474af2['WdCuu'];const _0x39301e={};_0x39301e['description']=_0x474af2[_0x537cfb(0x26d)],_0x39301e[_0x537cfb(0x1dd)]=_0x474af2['WdCuu'];const _0x345c0d={};_0x345c0d[_0x537cfb(0x248)]=_0x474af2[_0x537cfb(0x276)],_0x345c0d[_0x537cfb(0x1dd)]=_0x474af2[_0x537cfb(0x280)];const _0x2b64ff={};_0x2b64ff[_0x537cfb(0x248)]=_0x474af2[_0x537cfb(0x230)],_0x2b64ff['type']=_0x474af2[_0x537cfb(0x280)];const _0x400015={};_0x400015['description']=_0x474af2[_0x537cfb(0x24f)],_0x400015[_0x537cfb(0x1dd)]=_0x474af2[_0x537cfb(0x280)];const _0x12400b={};_0x12400b[_0x537cfb(0x248)]=_0x474af2['coiHs'],_0x12400b[_0x537cfb(0x1dd)]=_0x474af2[_0x537cfb(0x280)];const _0x5263b8={};_0x5263b8[_0x537cfb(0x248)]=_0x474af2[_0x537cfb(0x2fd)],_0x5263b8[_0x537cfb(0x1dd)]=_0x474af2['eFNgk'],_0x5263b8[_0x537cfb(0x210)]=![];const _0xec353f={};return _0xec353f['grid-name']=_0x523d4d,_0xec353f['grid-profile']=_0x39301e,_0xec353f[_0x537cfb(0x316)]=_0x345c0d,_0xec353f['cloud-provider']=_0x2b64ff,_0xec353f[_0x537cfb(0x22f)]=_0x400015,_0xec353f[_0x537cfb(0x219)]=_0x12400b,_0xec353f[_0x537cfb(0x1fb)]=_0x5263b8,_0x3caef2[_0x537cfb(0x217)](_0x106a0c[_0x537cfb(0x29a)])[_0x537cfb(0x1f2)](_0xa79d4d)[_0x537cfb(0x206)](_0xec353f)[_0x537cfb(0x2eb)](_0x474af2['Ttwcz'])[_0x537cfb(0x20d)];}else{!(_0x229be1[_0x537cfb(0x23b)]&&_0x229be1[_0x537cfb(0x216)]&&_0x229be1[_0x537cfb(0x22f)])&&(_0x474af2['AbbbB'](_0x474af2[_0x537cfb(0x319)],_0x474af2['bNtMq'])?_0x164ece=null:(_0x5d58a0=_0x474af2[_0x537cfb(0x253)],await _0x474af2[_0x537cfb(0x2b4)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes['ERROR'],_0x474af2[_0x537cfb(0x1f3)],_0x474af2['UiFEM'],_0x474af2['lALZf']),logger['error'](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)));![AWS,AZURE,GCP][_0x537cfb(0x303)](_0x229be1[_0x537cfb(0x216)][_0x537cfb(0x2a1)]())&&(_0x474af2[_0x537cfb(0x228)](_0x474af2['kaCxj'],_0x474af2[_0x537cfb(0x23e)])?_0x56ce3d=null:(_0x5d58a0=_0x474af2[_0x537cfb(0x1e8)],await _0x474af2['WHnjl'](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2[_0x537cfb(0x1f3)],_0x474af2[_0x537cfb(0x27f)],_0x474af2['lALZf']),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)));_0x229be1['privateGrid']&&_0x474af2[_0x537cfb(0x212)](_0x229be1[_0x537cfb(0x287)][_0x537cfb(0x2a1)](),_0x474af2[_0x537cfb(0x267)])&&(_0x474af2[_0x537cfb(0x257)](_0x474af2[_0x537cfb(0x2f5)],_0x474af2[_0x537cfb(0x291)])?global_registry[_0x537cfb(0x271)]=!![]:(_0x570ff9=_0x55f5ec['route53'],_0x1372ba=_0x474af2[_0x537cfb(0x28c)]));global_registry[_0x537cfb(0x216)]=_0x229be1[_0x537cfb(0x216)],global_registry[_0x537cfb(0x2bb)]=_0x229be1[_0x537cfb(0x22f)],global_registry[_0x537cfb(0x23b)]=_0x229be1[_0x537cfb(0x23b)];const _0x146d2f=await _0x474af2[_0x537cfb(0x2e5)](getCloudProviderObject,_0x229be1[_0x537cfb(0x216)],_0x229be1[_0x537cfb(0x23b)],_0x307eaa,_0x1638a8,webSocketUtils,_0x229be1),_0x44ab3f=await _0x146d2f[_0x537cfb(0x21d)]();if(!_0x44ab3f){if(_0x474af2['ZNYMm'](_0x474af2[_0x537cfb(0x2f8)],_0x474af2['KgNVE'])){const _0x5c9731=_0x474af2[_0x537cfb(0x2fe)][_0x537cfb(0x23f)]('|');let _0x4e1e42=0x0;while(!![]){switch(_0x5c9731[_0x4e1e42++]){case'0':_0x114adf=_0x1bf50d[_0x537cfb(0x2d5)];continue;case'1':_0x417a01=_0x4325b1[_0x537cfb(0x220)];continue;case'2':_0x474af2[_0x537cfb(0x27a)](_0x29fa5e,_0x31c7cc,_0x405e4f,_0x23b65e,_0x1d174a,_0x3bcde8,_0x1eb370,_0x46e40d,_0x22b075,_0x5eeaf0,_0x196206,_0x4c2453);continue;case'3':_0x5338ee=_0x4d6f97[_0x537cfb(0x245)];continue;case'4':_0x474af2[_0x537cfb(0x228)](_0x3a7c75[_0x537cfb(0x287)],_0x108cd5)&&_0x37c325[_0x537cfb(0x287)]&&(_0x5dd432[_0x537cfb(0x271)]=!![]);continue;case'5':_0x2e0d22=null;continue;case'6':const _0x5c1aef={};_0x5c1aef[_0x537cfb(0x1dd)]=_0x5c54d1[_0x537cfb(0x266)],_0x5c1aef[_0x537cfb(0x20f)]=_0x3062fb,_0xcfefa5['sendEventToBackend'](_0x44508b,_0x5c1aef);continue;case'7':_0x52774a=_0x45d105['hubVersion'];continue;case'8':_0x13c696=null;continue;case'9':_0x299296=_0x5b14c1['minNodes'];continue;case'10':_0x1e3bf7=null;continue;case'11':_0x198e28[_0x537cfb(0x31b)](_0x49928d);continue;case'12':_0x5c3487=_0x537cfb(0x2f9)+_0xac0838;continue;case'13':_0x2373dc=_0x5c20b2[_0x537cfb(0x297)];continue;case'14':_0x3630c3=_0x183a30[_0x537cfb(0x201)];continue;}break;}}else logger['info']('Cluster:\x20'+_0x229be1[_0x537cfb(0x23b)]+_0x537cfb(0x1f9)),_0x5b70f1=![],_0x26cea1=!![];}else _0x474af2[_0x537cfb(0x309)](_0x474af2[_0x537cfb(0x2f1)],_0x474af2[_0x537cfb(0x2f1)])?_0x5b70f1=!![]:_0x1b70bc['isPrivateGrid']=!![];_0x554056=_0x229be1['clusterName'],_0x262a7f=_0x229be1[_0x537cfb(0x216)]['toLowerCase'](),_0x17aa96=_0x229be1[_0x537cfb(0x22f)];}}else{if(_0x229be1[_0x537cfb(0x31c)]){if(_0x474af2[_0x537cfb(0x275)](_0x474af2[_0x537cfb(0x2c7)],_0x474af2[_0x537cfb(0x209)]))global_registry['gridProfile']=_0x229be1[_0x537cfb(0x31c)];else{const _0x2a4862=_0x474af2['YcVnr'][_0x537cfb(0x23f)]('|');let _0xa6d464=0x0;while(!![]){switch(_0x2a4862[_0xa6d464++]){case'0':_0x4a74de[_0x537cfb(0x31b)](_0x1f0431);continue;case'1':_0x3bbe3c['cloudProvider']=_0x4b8127;continue;case'2':const _0x255689={};_0x255689[_0x537cfb(0x1dd)]=_0x8ae47c[_0x537cfb(0x2b2)],_0x255689['message']=_0x474af2[_0x537cfb(0x263)],_0xfb0356[_0x537cfb(0x278)](_0x576dfa,_0x255689);continue;case'3':_0x2bd407['browserVersion']=_0x2a8ea0[_0x537cfb(0x2d5)];continue;case'4':_0x52d133[_0x537cfb(0x2bb)]=_0x3192af;continue;case'5':_0x30cf4[_0x537cfb(0x23b)]=_0x389491;continue;case'6':const _0x19fff6={};_0x19fff6['type']=_0x2f21e7[_0x537cfb(0x266)],_0x19fff6['message']=_0xdaa044,_0x312d24[_0x537cfb(0x278)](_0x8a151b,_0x19fff6);continue;case'7':_0x4e16f1[_0x537cfb(0x28b)]=_0x5c6f2e[_0x537cfb(0x28b)];continue;case'8':_0x2fd068=_0x537cfb(0x1f8)+_0x4f2800+_0x537cfb(0x29d)+_0x1e9313+'\x27';continue;}break;}}}}global_registry['gridName']=_0x229be1[_0x537cfb(0x2a8)];const _0x3f4252={'method':_0x474af2[_0x537cfb(0x20b)],'headers':_0x474af2[_0x537cfb(0x20a)](getAuthHeader,_0x125cae[_0x537cfb(0x299)][_0x537cfb(0x22d)],_0x125cae[_0x537cfb(0x299)][_0x537cfb(0x2e9)]),'throwHttpErrors':![]},_0x439251={};_0x439251[_0x537cfb(0x2a8)]=_0x307eaa;const _0x821772=_0x439251;_0x26cea1&&(_0x474af2[_0x537cfb(0x224)](_0x474af2[_0x537cfb(0x27d)],_0x474af2[_0x537cfb(0x25c)])?_0x1c6617[_0x537cfb(0x31c)]=_0x18757e[_0x537cfb(0x31c)]:(_0x821772[_0x537cfb(0x22f)]=_0x17aa96,_0x821772[_0x537cfb(0x216)]=_0x262a7f,_0x821772[_0x537cfb(0x1e9)]=!![]));const _0x26fcc7=_0x537cfb(0x2e1)+AG_API_URL+_0x537cfb(0x2dd),_0x306b89={'searchParams':_0x821772,'throwHttpErrors':![],..._0x3f4252},_0x102abf=_0x306b89,_0x1f7f5a=await _0x474af2[_0x537cfb(0x20a)](got,_0x26fcc7,_0x102abf);(_0x474af2['VVKaa'](_0x1f7f5a,null)||_0x474af2[_0x537cfb(0x2bc)](_0x1f7f5a,undefined))&&(_0x474af2[_0x537cfb(0x251)](_0x474af2[_0x537cfb(0x22b)],_0x474af2[_0x537cfb(0x22b)])?(_0x5d58a0=_0x474af2[_0x537cfb(0x214)],await _0x474af2[_0x537cfb(0x30e)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2[_0x537cfb(0x1f3)],_0x474af2[_0x537cfb(0x1ce)],_0x474af2[_0x537cfb(0x258)]),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)):_0x306e76[_0x537cfb(0x271)]=!![]);_0x474af2['omXMz'](_0x1f7f5a['statusCode'],0x191)&&(_0x474af2[_0x537cfb(0x1e7)](_0x474af2['GWFrq'],_0x474af2[_0x537cfb(0x311)])?(_0x5d58a0=_0x474af2[_0x537cfb(0x2c5)],await _0x474af2['azabC'](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2[_0x537cfb(0x1f3)],_0x474af2[_0x537cfb(0x293)],_0x474af2[_0x537cfb(0x258)]),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)):_0x6299d3=!![]);_0x474af2[_0x537cfb(0x1ff)](_0x1f7f5a[_0x537cfb(0x1da)],0xc8)&&(_0x474af2[_0x537cfb(0x279)](_0x474af2[_0x537cfb(0x1e6)],_0x474af2[_0x537cfb(0x2f0)])?(_0x5d58a0=_0x537cfb(0x1fe)+JSON[_0x537cfb(0x2ec)](_0x1f7f5a[_0x537cfb(0x25f)]),await _0x474af2[_0x537cfb(0x268)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2['AKZXu'],_0x474af2[_0x537cfb(0x1df)],_0x474af2[_0x537cfb(0x258)]),logger['error'](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)):_0x22ed79[_0x537cfb(0x31b)](_0x537cfb(0x283)+_0x1a9f47+'\x20'));const _0x471e23=JSON[_0x537cfb(0x274)](_0x1f7f5a[_0x537cfb(0x25f)]),_0x3f4100={};_0x3f4100[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x2b2)],_0x3f4100[_0x537cfb(0x20f)]=_0x474af2[_0x537cfb(0x263)],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x3f4100);const _0x200822={};_0x200822['type']=WS_EVENTS[_0x537cfb(0x266)],_0x200822[_0x537cfb(0x20f)]=_0x474af2['HxgOg'],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x200822);_0x471e23[_0x537cfb(0x273)]&&(_0x474af2['WXETw'](_0x474af2[_0x537cfb(0x250)],_0x474af2['XVhpz'])?(_0x5d58a0='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x307eaa+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x474af2['kLQUf'](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes['ERROR'],_0x474af2[_0x537cfb(0x1f3)],_0x474af2['EjSjV'],_0x474af2['lALZf']),logger['error'](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)):_0x2355dd['info'](_0x537cfb(0x2ef)+_0x130809[_0x537cfb(0x2ec)](_0xea35ee)+'\x20'));const _0x3af0eb=_0x471e23['gridProfiles'];let _0x15a950=_0x3af0eb[_0x471e23[_0x537cfb(0x1ea)]];if(_0x229be1['gridProfile']){if(_0x474af2[_0x537cfb(0x2aa)](_0x474af2[_0x537cfb(0x2df)],_0x474af2[_0x537cfb(0x296)]))throw new _0x483de6(_0x537cfb(0x2a4)+_0x37b17f+_0x537cfb(0x284));else _0x15a950=_0x3af0eb[_0x229be1[_0x537cfb(0x31c)]];}if(_0x474af2[_0x537cfb(0x251)](_0x5b70f1,![])&&_0x474af2[_0x537cfb(0x312)](_0x26cea1,![])){if(_0x474af2[_0x537cfb(0x317)](_0x474af2['dxdmD'],_0x474af2[_0x537cfb(0x301)]))_0x1e499f[_0x537cfb(0x1d2)]();else{_0x474af2[_0x537cfb(0x231)](_0x15a950,undefined)&&(_0x474af2[_0x537cfb(0x2ff)](_0x474af2['VzeBP'],_0x474af2[_0x537cfb(0x2fa)])?(_0x5d58a0=_0x474af2[_0x537cfb(0x2f3)],await _0x474af2[_0x537cfb(0x2d0)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2['AKZXu'],_0x474af2[_0x537cfb(0x1ed)],_0x474af2[_0x537cfb(0x258)]),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)):(_0x443963[_0x537cfb(0x22f)]=_0x522310,_0x4f3bb6[_0x537cfb(0x216)]=_0x249948,_0x415886[_0x537cfb(0x1e9)]=!![]));global_registry[_0x537cfb(0x28f)]=_0x15a950['id'],_0x5d58a0=_0x537cfb(0x1e0)+_0x307eaa+_0x537cfb(0x23d)+_0x15a950['name']+'\x27\x20grid\x20profile',logger[_0x537cfb(0x31b)](_0x5d58a0);const _0x31af5c={};_0x31af5c[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x31af5c['message']=_0x5d58a0,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x31af5c),_0x262a7f=_0x15a950[_0x537cfb(0x216)],_0x554056=_0x15a950[_0x537cfb(0x23b)],_0x17aa96=_0x15a950[_0x537cfb(0x22f)],_0x2fcfd4=_0x15a950[_0x537cfb(0x245)],_0x4493e8=_0x15a950[_0x537cfb(0x220)],_0x53c4f1=_0x15a950[_0x537cfb(0x2d2)],_0xdb7d0c=_0x15a950[_0x537cfb(0x24e)],_0x8d6f76=_0x15a950[_0x537cfb(0x223)],_0x490adf=_0x15a950[_0x537cfb(0x201)],_0x228606=_0x15a950[_0x537cfb(0x21f)],_0xdca43d=_0x15a950[_0x537cfb(0x297)],_0x20b2a2=_0x471e23[_0x537cfb(0x28b)],_0x42a531=_0x471e23[_0x537cfb(0x2d5)];_0x53c4f1&&_0x474af2[_0x537cfb(0x229)](_0x53c4f1['length'],0x0)&&(_0x474af2[_0x537cfb(0x226)](_0x474af2[_0x537cfb(0x2a9)],_0x474af2[_0x537cfb(0x1f6)])?_0x4570e0=_0x474af2[_0x537cfb(0x269)]:_0x53c4f1=null);if(_0x8d6f76&&_0x474af2[_0x537cfb(0x2b8)](_0x8d6f76[_0x537cfb(0x308)],0x0)){if(_0x474af2[_0x537cfb(0x224)](_0x474af2[_0x537cfb(0x200)],_0x474af2['TqzsE']))_0x8d6f76=null;else{const _0x4ff1b9={};_0x4ff1b9[_0x537cfb(0x1dd)]=_0xa23d11[_0x537cfb(0x266)],_0x4ff1b9['message']=_0x5385c2,_0x42c1c4[_0x537cfb(0x278)](_0x3eeb1f,_0x4ff1b9,_0x474af2[_0x537cfb(0x258)],!![]);}}_0x474af2[_0x537cfb(0x1f0)](_0x15a950[_0x537cfb(0x287)],undefined)&&_0x15a950[_0x537cfb(0x287)]&&(_0x474af2['ehCpZ'](_0x474af2['DminQ'],_0x474af2[_0x537cfb(0x2ce)])?_0x6b0dd1[_0x537cfb(0x271)]=!![]:global_registry['isPrivateGrid']=!![]),_0x474af2[_0x537cfb(0x27a)](updateGlobalRegistryWithConfig,_0x262a7f,_0x554056,_0x17aa96,_0x2fcfd4,_0x4493e8,_0x490adf,_0x15a950,_0x20b2a2,_0x42a531,_0x228606,_0xdca43d);}}else{if(_0x474af2[_0x537cfb(0x2c4)](_0x26cea1,!![])){if(_0x474af2[_0x537cfb(0x21a)](_0x474af2[_0x537cfb(0x2de)],_0x474af2[_0x537cfb(0x2de)]))_0x25cbbb[_0x537cfb(0x31b)](_0x537cfb(0x2dc)+_0x1fa306[_0x537cfb(0x23b)]+_0x537cfb(0x1f9)),_0x31c95c=![],_0x41c950=!![];else{_0x5d58a0='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x307eaa,logger['info'](_0x5d58a0);const _0x5f0163={};_0x5f0163[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x5f0163[_0x537cfb(0x20f)]=_0x5d58a0,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x5f0163),_0x2fcfd4=_0x15a950['concurrency'],_0x4493e8=_0x15a950[_0x537cfb(0x220)],_0x53c4f1=null,_0xdb7d0c=null,_0x8d6f76=null,_0x490adf=_0x15a950[_0x537cfb(0x201)],_0x228606=_0x15a950['minNodes'],_0xdca43d=_0x15a950['maxNodes'],_0x20b2a2=_0x471e23[_0x537cfb(0x28b)],_0x42a531=_0x471e23['browserVersion'],_0x474af2['sEmPj'](_0x15a950[_0x537cfb(0x287)],undefined)&&_0x15a950[_0x537cfb(0x287)]&&(_0x474af2[_0x537cfb(0x226)](_0x474af2['BHRKs'],_0x474af2[_0x537cfb(0x2a0)])?_0x39c5cc[_0x537cfb(0x24c)](_0x537cfb(0x1cc)+_0x5c6b58+'\x20\x0a'+_0x57a849[_0x537cfb(0x2ec)](_0x35bfee[_0x537cfb(0x202)])):global_registry[_0x537cfb(0x271)]=!![]),_0x474af2[_0x537cfb(0x247)](updateGlobalRegistryWithConfig,_0x262a7f,_0x554056,_0x17aa96,_0x2fcfd4,_0x4493e8,_0x490adf,_0x15a950,_0x20b2a2,_0x42a531,_0x228606,_0xdca43d);}}else{if(_0x474af2['aEQpV'](_0x474af2[_0x537cfb(0x218)],_0x474af2[_0x537cfb(0x21c)])){const _0x188120=_0x474af2[_0x537cfb(0x1d9)]['split']('|');let _0x42c878=0x0;while(!![]){switch(_0x188120[_0x42c878++]){case'0':const _0x2e7a87={};_0x2e7a87[_0x537cfb(0x1dd)]=WS_EVENTS['LOG'],_0x2e7a87[_0x537cfb(0x20f)]=_0x5d58a0,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x2e7a87);continue;case'1':global_registry[_0x537cfb(0x216)]=_0x262a7f;continue;case'2':global_registry[_0x537cfb(0x2bb)]=_0x17aa96;continue;case'3':global_registry[_0x537cfb(0x2d5)]=_0x471e23[_0x537cfb(0x2d5)];continue;case'4':_0x5d58a0=_0x537cfb(0x1f8)+_0x307eaa+_0x537cfb(0x29d)+_0x554056+'\x27';continue;case'5':global_registry[_0x537cfb(0x28b)]=_0x471e23[_0x537cfb(0x28b)];continue;case'6':global_registry[_0x537cfb(0x23b)]=_0x554056;continue;case'7':logger[_0x537cfb(0x31b)](_0x5d58a0);continue;case'8':const _0x4114c6={};_0x4114c6[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x2b2)],_0x4114c6[_0x537cfb(0x20f)]=_0x474af2[_0x537cfb(0x263)],webSocketUtils['sendEventToBackend'](_0x1638a8,_0x4114c6);continue;}break;}}else _0x16d3cc=_0x7abab4[_0xf4962d[_0x537cfb(0x31c)]];}}const _0x3c2e0a=await _0x474af2['LPBii'](getCloudProviderObject,_0x262a7f,_0x554056,_0x307eaa,_0x1638a8,webSocketUtils,_0x229be1);_0x474af2['ehCpZ'](_0x262a7f,AZURE)&&_0x3c2e0a[_0x537cfb(0x1d2)]();let _0x256bc6;if(_0x474af2['egVCg'](_0x5b70f1,![])){_0x5d58a0=_0x537cfb(0x2f2)+_0x17aa96+').';const _0x19dae6={};_0x19dae6['type']=WS_EVENTS['LOG'],_0x19dae6['message']=_0x5d58a0,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x19dae6),logger[_0x537cfb(0x31b)](_0x5d58a0);const _0x16b98b=await _0x3c2e0a['isClusterPresent']();if(_0x16b98b){const _0x4bf67c={};_0x4bf67c[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x4bf67c[_0x537cfb(0x20f)]=_0x537cfb(0x2a4)+_0x554056+_0x537cfb(0x236),webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x4bf67c,_0x474af2[_0x537cfb(0x22e)]),logger[_0x537cfb(0x31b)]('Cluster\x20'+_0x554056+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x5b70f1=!![];if(_0x474af2[_0x537cfb(0x309)](_0x26cea1,!![]))throw new Error(_0x537cfb(0x2a4)+_0x554056+_0x537cfb(0x284));}else{const _0x19ac87={};_0x19ac87['type']=WS_EVENTS[_0x537cfb(0x266)],_0x19ac87[_0x537cfb(0x20f)]=_0x474af2[_0x537cfb(0x2a7)],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x19ac87),logger[_0x537cfb(0x31b)](_0x474af2[_0x537cfb(0x2a7)]);const _0x1cbff1=_0x474af2[_0x537cfb(0x2d4)](_0x53c4f1,null)&&_0x474af2['suQKm'](_0x53c4f1,undefined),_0x45c578=_0x474af2['XWBdC'](_0x8d6f76,null)&&_0x474af2[_0x537cfb(0x1ff)](_0x8d6f76,undefined)&&_0x474af2[_0x537cfb(0x222)](_0x8d6f76[_0x537cfb(0x308)],0x0);if(_0x1cbff1){_0x474af2['myyhD'](_0x45c578,![])&&(_0x5d58a0=_0x474af2[_0x537cfb(0x2d7)],await _0x474af2[_0x537cfb(0x302)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes['ERROR'],_0x474af2['AKZXu'],_0x474af2[_0x537cfb(0x2e0)],_0x474af2[_0x537cfb(0x258)]),logger['error'](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1));const _0x5bb256=await _0x3c2e0a[_0x537cfb(0x249)](_0x53c4f1);_0x474af2[_0x537cfb(0x24a)](_0x5bb256,![])?(_0x5d58a0=_0x474af2['xEQWs'],await _0x474af2[_0x537cfb(0x2e3)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2[_0x537cfb(0x1f3)],_0x474af2[_0x537cfb(0x1eb)],_0x474af2['lALZf']),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)):logger[_0x537cfb(0x31b)](_0x537cfb(0x283)+_0x53c4f1+'\x20');const _0xcc6c59=await _0x3c2e0a['isSubnetsValid'](_0x8d6f76,_0x53c4f1);_0x474af2['qFQCr'](_0xcc6c59[0x0],![])?(_0x5d58a0=_0x537cfb(0x213)+JSON[_0x537cfb(0x2ec)](_0xcc6c59[0x1])+_0x537cfb(0x277)+_0x53c4f1+_0x537cfb(0x239),await _0x474af2[_0x537cfb(0x207)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes['ERROR'],_0x474af2['AKZXu'],_0x474af2['NDlGx'],_0x474af2[_0x537cfb(0x258)]),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1)):logger[_0x537cfb(0x31b)](_0x537cfb(0x2ef)+JSON['stringify'](_0x8d6f76)+'\x20'),await _0x3c2e0a['setupNewCluster'](_0x53c4f1,_0x8d6f76);}else{const _0x58c3ec=_0x474af2[_0x537cfb(0x22a)]['split']('|');let _0x4ebc61=0x0;while(!![]){switch(_0x58c3ec[_0x4ebc61++]){case'0':const _0x1d16ec={};_0x1d16ec['type']=WS_EVENTS[_0x537cfb(0x266)],_0x1d16ec[_0x537cfb(0x20f)]=_0x474af2['NovQu'],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x1d16ec);continue;case'1':const _0x2261ee={};_0x2261ee[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x2261ee['message']=_0x474af2[_0x537cfb(0x281)],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x2261ee);continue;case'2':logger[_0x537cfb(0x31b)](_0x474af2['NovQu']);continue;case'3':await _0x3c2e0a[_0x537cfb(0x1fd)](_0x53c4f1,_0x8d6f76);continue;case'4':logger['info'](_0x474af2[_0x537cfb(0x281)]);continue;}break;}}}}_0x5b70f1&&_0x474af2[_0x537cfb(0x229)](_0x262a7f,AZURE)&&(await _0x3c2e0a[_0x537cfb(0x1f4)](),await _0x3c2e0a[_0x537cfb(0x2ee)]());const [_0x4bdbcf,_0x388775,_0x4c920b,_0xb30039,_0x35153f,_0x53b1b8]=await _0x474af2[_0x537cfb(0x1ef)](createK8sClient,_0x3c2e0a,_0x229be1[_0x537cfb(0x2db)]);_0x474af2[_0x537cfb(0x312)](_0x5b70f1,![])&&_0x474af2[_0x537cfb(0x2c4)](_0x262a7f,AWS)&&(global_registry[_0x537cfb(0x305)]=!![],_0x256bc6=await _0x3c2e0a['setupAutoscaler'](_0x4bdbcf,_0x229be1));try{_0x126d6e=_0x474af2[_0x537cfb(0x1f1)](kebabCase,_0x307eaa),logger[_0x537cfb(0x31b)](_0x474af2['WvnDf']);const _0x96faf8={};_0x96faf8[_0x537cfb(0x1dd)]=WS_EVENTS['LOG'],_0x96faf8['message']=_0x474af2['WvnDf'],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x96faf8);if(_0x474af2[_0x537cfb(0x228)](_0x126d6e,_0x474af2[_0x537cfb(0x2d3)])){const _0x8d1e40={};_0x8d1e40[_0x537cfb(0x2a2)]=_0x474af2[_0x537cfb(0x26f)],_0x8d1e40[_0x537cfb(0x2ac)]=_0x474af2[_0x537cfb(0x26f)];const _0xaff166={};_0xaff166[_0x537cfb(0x2da)]=_0x126d6e,_0xaff166['annotations']=_0x8d1e40;const _0x53cdc6={};_0x53cdc6[_0x537cfb(0x1fa)]=_0xaff166;const _0x582ce2=_0x53cdc6,_0xaad944={};_0xaad944[_0x537cfb(0x25f)]=_0x582ce2,await _0x4bdbcf[_0x537cfb(0x289)](_0xaad944),logger[_0x537cfb(0x31b)](_0x474af2['YPumh']);}const _0x2e809f={};_0x2e809f[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x2e809f[_0x537cfb(0x20f)]=_0x474af2[_0x537cfb(0x23a)],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x2e809f);const _0x15b2e0={};_0x15b2e0[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x15b2e0[_0x537cfb(0x20f)]=_0x474af2[_0x537cfb(0x2fb)],webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x15b2e0),logger[_0x537cfb(0x31b)](_0x474af2[_0x537cfb(0x235)]);let _0x38f57b={};_0x474af2['Gbowz'](_0x262a7f,AZURE)&&(_0x38f57b={'clientId':await _0x3c2e0a[_0x537cfb(0x1cf)]('turboscale-managed-identity-'+_0x554056)});await _0x474af2['pMvCz'](addGridComponents,_0x4bdbcf,_0x388775,_0x4c920b,_0xb30039,_0x126d6e,_0x554056,_0x256bc6,_0x35153f,_0x53b1b8,_0x38f57b),_0x5d58a0=_0x474af2[_0x537cfb(0x2cd)],logger[_0x537cfb(0x31b)](_0x5d58a0);const _0xb5c70a={};_0xb5c70a[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0xb5c70a[_0x537cfb(0x20f)]=_0x5d58a0,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0xb5c70a),_0x5d58a0=_0x474af2[_0x537cfb(0x1d3)],logger[_0x537cfb(0x31b)](_0x5d58a0);const _0x5364e6={};_0x5364e6[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x5364e6[_0x537cfb(0x20f)]=_0x5d58a0,webSocketUtils['sendEventToBackend'](_0x1638a8,_0x5364e6),await _0x474af2[_0x537cfb(0x315)](waitForDeployment,_0x388775,_0x126d6e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x20340c=await _0x474af2['krBgj'](getNamespaceUID,_0x4bdbcf,_0x126d6e),_0xa5c51f=global_registry[_0x537cfb(0x271)]?_0x474af2[_0x537cfb(0x2c1)]:_0x474af2['bpSii'],_0x32722b={};_0x32722b[_0x537cfb(0x2da)]=_0xa5c51f,_0x32722b[_0x537cfb(0x221)]=_0x474af2['NKpNn'];const _0x41fb9b=await _0x4bdbcf['readNamespacedService'](_0x32722b);let _0x4f7fe2=_0x3c2e0a['getGridHostname'](_0x41fb9b)+'/'+_0x126d6e,_0x26d424=_0x474af2[_0x537cfb(0x269)];try{const _0x4766a5='https://'+AG_API_URL+_0x537cfb(0x2ba)+_0x20340c,_0x4c90a7=await _0x474af2[_0x537cfb(0x20a)](got,_0x4766a5,_0x3f4252);(_0x474af2[_0x537cfb(0x2b5)](_0x4c90a7,null)||_0x474af2[_0x537cfb(0x28d)](_0x4c90a7,undefined))&&(_0x5d58a0=_0x474af2['bCidO'],await _0x474af2['kLQUf'](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2['AKZXu'],_0x474af2[_0x537cfb(0x1d8)],_0x474af2['lALZf']),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1));_0x474af2[_0x537cfb(0x2bf)](_0x4c90a7[_0x537cfb(0x1da)],0x191)&&(_0x5d58a0=_0x474af2[_0x537cfb(0x2c2)],await _0x474af2[_0x537cfb(0x30d)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes[_0x537cfb(0x304)],_0x474af2['AKZXu'],_0x474af2[_0x537cfb(0x1d0)],_0x474af2[_0x537cfb(0x258)]),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1));_0x474af2['kPDAf'](_0x4c90a7[_0x537cfb(0x1da)],0xc8)&&(_0x5d58a0=_0x537cfb(0x2d1)+JSON[_0x537cfb(0x2ec)](_0x4c90a7),await _0x474af2[_0x537cfb(0x2e3)](reportToGalactusAndSendToEDS,_0x229be1,_0x1638a8,_0x5d58a0,messageTypes['ERROR'],_0x474af2[_0x537cfb(0x1f3)],_0x474af2[_0x537cfb(0x25b)],_0x474af2[_0x537cfb(0x258)]),logger[_0x537cfb(0x24c)](_0x5d58a0),process[_0x537cfb(0x1fc)](0x1));const _0x4d3c11=JSON[_0x537cfb(0x274)](_0x4c90a7[_0x537cfb(0x25f)]);_0x4d3c11[_0x537cfb(0x24d)]&&(_0x4f7fe2=_0x4d3c11[_0x537cfb(0x24d)],_0x26d424=_0x474af2[_0x537cfb(0x28c)]),global_registry[_0x537cfb(0x271)]&&(_0x26d424=_0x474af2[_0x537cfb(0x269)]);}catch(_0x1551c9){}_0x5d58a0=_0x537cfb(0x1ec)+_0x4f7fe2+'\x20',logger['info'](_0x5d58a0);const _0x36fc17={};_0x36fc17[_0x537cfb(0x1dd)]=WS_EVENTS[_0x537cfb(0x266)],_0x36fc17['message']=_0x5d58a0,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x36fc17),_0x5d58a0=_0x537cfb(0x254)+_0x26d424+_0x537cfb(0x2be)+_0x4f7fe2+_0x537cfb(0x1d1),logger['info'](_0x5d58a0);const _0x3e15d5={};_0x3e15d5[_0x537cfb(0x1dd)]=WS_EVENTS['LOG'],_0x3e15d5[_0x537cfb(0x20f)]=_0x5d58a0,webSocketUtils['sendEventToBackend'](_0x1638a8,_0x3e15d5);const _0x53e251={};_0x53e251[_0x537cfb(0x1dd)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x53e251[_0x537cfb(0x20f)]=_0x537cfb(0x28a)+_0x4f7fe2,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x53e251),await webSocketUtils['delay'](0x7d0);}catch(_0x143b24){logger[_0x537cfb(0x24c)](_0x537cfb(0x265)+_0x143b24+'\x20\x0a'+JSON['stringify'](_0x143b24[_0x537cfb(0x202)]));if(_0x474af2['VVKaa'](_0x5b70f1,![]))try{logger['info'](_0x474af2[_0x537cfb(0x2c9)]),await _0x474af2['kJRCR'](removeGridComponents,_0x4bdbcf,_0x388775,_0x4c920b,_0xb30039,_0x126d6e),await _0x3c2e0a[_0x537cfb(0x282)](_0x4bdbcf,global_registry['clusterRegion']);}catch(_0x3e9fb6){logger[_0x537cfb(0x24c)](_0x537cfb(0x1cc)+_0x3e9fb6+'\x20\x0a'+JSON['stringify'](_0x3e9fb6['stack']));}throw _0x143b24;}}catch(_0x476551){const _0x4d8c05=_0x537cfb(0x1c9)+_0x476551+'\x20\x0a'+JSON[_0x537cfb(0x2ec)](_0x476551['stack']);if(_0x1638a8){const _0x5b651c={};_0x5b651c['type']=WS_EVENTS[_0x537cfb(0x266)],_0x5b651c[_0x537cfb(0x20f)]=_0x4d8c05,webSocketUtils[_0x537cfb(0x278)](_0x1638a8,_0x5b651c,_0x474af2[_0x537cfb(0x258)],!![]);}await webSocketUtils[_0x537cfb(0x215)](0x7d0);const _0x3a0390={};_0x3a0390[_0x537cfb(0x24c)]=_0x4d8c05,await _0x474af2[_0x537cfb(0x31a)](sendInstrumentationEvent,_0x229be1,_0x474af2[_0x537cfb(0x1f3)],messageTypes['ERROR'],_0x474af2['JXZGn'],_0x3a0390,_0x229be1),logger['error'](_0x4d8c05);}process[_0x537cfb(0x1fc)](0x0);};
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x515f6e=a10_0x3f64;(function(_0x579512,_0xd482b){const _0x4712e4=a10_0x3f64,_0x3d855d=_0x579512();while(!![]){try{const _0x55ddf6=-parseInt(_0x4712e4(0x1fe))/0x1*(-parseInt(_0x4712e4(0x1ef))/0x2)+parseInt(_0x4712e4(0x200))/0x3+parseInt(_0x4712e4(0x1f4))/0x4*(-parseInt(_0x4712e4(0x1ff))/0x5)+parseInt(_0x4712e4(0x1f7))/0x6*(-parseInt(_0x4712e4(0x1fd))/0x7)+-parseInt(_0x4712e4(0x1f3))/0x8+-parseInt(_0x4712e4(0x1f8))/0x9+parseInt(_0x4712e4(0x1fa))/0xa;if(_0x55ddf6===_0xd482b)break;else _0x3d855d['push'](_0x3d855d['shift']());}catch(_0xacb0bd){_0x3d855d['push'](_0x3d855d['shift']());}}}(a10_0xa9d6,0x9f454));function a10_0xa9d6(){const _0x4f1420=['delete','196637hLWumk','32468YqBoSn','5212255JXYEoD','2474373lgNntQ','KvkCf','demandCommand','handler','../config/constants','strict','64TVZZLF','recommendCommands','epilogue','command','5719288FckLvJ','4bhodmx','delete_commands','help','18stpwYZ','4882338ZIQSxU','ijxCj','11727220UDHQbm','usage'];a10_0xa9d6=function(){return _0x4f1420;};return a10_0xa9d6();}function a10_0x3f64(_0x4fc897,_0x1d5c55){const _0xa9d6f5=a10_0xa9d6();return a10_0x3f64=function(_0x3f648d,_0x1c2d24){_0x3f648d=_0x3f648d-0x1eb;let _0x2aef98=_0xa9d6f5[_0x3f648d];return _0x2aef98;},a10_0x3f64(_0x4fc897,_0x1d5c55);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x515f6e(0x1ed));exports[a10_0x515f6e(0x1f2)]=a10_0x515f6e(0x1fc),exports['desc']='List\x20Grid\x20resources.',exports['builder']=function(_0x5336e1){const _0x567f04=a10_0x515f6e,_0x12073a={};_0x12073a[_0x567f04(0x1f9)]=_0x567f04(0x1f5),_0x12073a[_0x567f04(0x201)]=_0x567f04(0x1f6);const _0x2a6b43=_0x12073a;return _0x5336e1[_0x567f04(0x1fb)](HELP_HEADER_MESSAGE[_0x567f04(0x1fc)])[_0x567f04(0x1f1)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2a6b43[_0x567f04(0x1f9)])[_0x567f04(0x1eb)]()[_0x567f04(0x1f0)]()[_0x567f04(0x1ee)]()[_0x567f04(0x1f6)](_0x2a6b43['KvkCf']);},exports[a10_0x515f6e(0x1ec)]=function(_0x2e3730){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0x177a(){const _0x21e504=['86826ZXNJai','217900oyObXi','KTNHf','reconnecting-websocket','parse','help','ZctNG','xAacJ','then','clusterSpawnedVia','exit','qOriP','readFileSync','ztrUt','135493luYKxU','options','stringify','szUFV','DXYlU','EOIGz','epilogue','delete-grid-called','ERROR','delete','Tpndo','connectionTimeout','message','argv','jGOKg','lpTGm','UXWnA','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','310GsrFjK','VWfIL','xufZx','Rqwzy','requestId','OIRDq','WebSocket','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','Browserstack','grid','../../utils/createk8sClient','clusterId','avmWQ','YqGwv','gRPuS','replace','\x22\x20with\x20ID\x20','skipTlsCertVerify','ydZrL','deleteCluster','clusterName','got','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','grid-id','description','command','../../utils/instrumentationUtils','Namespace:\x20','invalid-grid-id','hzAvg','warn','BVjjs','ZWkkF','cloudProvider','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Skip\x20insecure\x20cert\x20verification.','body','name','builder','pCxYw','desc','IAMOC','../../utils/gridComponents','403350YGPBVe','tHuvM','init-not-called','njruw','xIIXH','366465fYWbpS','WojBR','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','sLvpF','region','RJrVU','qnIKI','XdXWt','uPbgj','info','lhCgF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','14QeZRWm','uqnjs','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Dspbv','3mjwvJF','wYHlg','gaQqw','cZuCF','TKxkU','NwbXO','usage','bCSYX','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','../../config/logger','FVZby','GepoI','existsSync','uOHcM','boolean','MoXkL','username','../../utils/webSocketUtils','vsyfp','gridId','sGIYv','vsbJF','/packages/cli/grid/','isClusterPresent','bSdGq','JBhme','type','74709yXlSOx','Wehzl','Successfully\x20deleted\x20the\x20grid','statusCode','Delete\x20an\x20Automation\x20grid.','invalid-input','1510864CriHeb','CMBWA','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterRegion','NbrIT','default','readNamespace','RYsda','skip-tls-cert-verify','gjqCD','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','cIjbl','\x22\x20and\x20ID\x20','opPle','gqsyG','error','cFMMP','bYPRv','toLowerCase','SvBRg','Failed\x20to\x20delete\x20resources!\x20Error:\x20','hqgTo','string','zjdrz','unauthorised','password'];a11_0x177a=function(){return _0x21e504;};return a11_0x177a();}const a11_0x143f7e=a11_0xa198;(function(_0x7469dc,_0x8cfcf8){const _0x3d28a7=a11_0xa198,_0x59e485=_0x7469dc();while(!![]){try{const _0xd2aa17=parseInt(_0x3d28a7(0x1d1))/0x1+-parseInt(_0x3d28a7(0x173))/0x2+parseInt(_0x3d28a7(0x188))/0x3*(parseInt(_0x3d28a7(0x1c4))/0x4)+parseInt(_0x3d28a7(0x178))/0x5+-parseInt(_0x3d28a7(0x1c3))/0x6*(parseInt(_0x3d28a7(0x184))/0x7)+-parseInt(_0x3d28a7(0x1a9))/0x8+-parseInt(_0x3d28a7(0x1a3))/0x9*(-parseInt(_0x3d28a7(0x1e3))/0xa);if(_0xd2aa17===_0x8cfcf8)break;else _0x59e485['push'](_0x59e485['shift']());}catch(_0xfa43d0){_0x59e485['push'](_0x59e485['shift']());}}}(a11_0x177a,0x18afd));function a11_0xa198(_0x3049ae,_0x5331ad){const _0x177aa7=a11_0x177a();return a11_0xa198=function(_0xa1988a,_0x168aaf){_0xa1988a=_0xa1988a-0x153;let _0x330fc1=_0x177aa7[_0xa1988a];return _0x330fc1;},a11_0xa198(_0x3049ae,_0x5331ad);}const fs=require('fs'),got=require(a11_0x143f7e(0x15d)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x143f7e(0x1c6)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x143f7e(0x1ee)),{logger}=require(a11_0x143f7e(0x191)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x143f7e(0x172)),{sendInstrumentationEvent}=require(a11_0x143f7e(0x162)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x143f7e(0x1f1)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x143f7e(0x199));exports[a11_0x143f7e(0x161)]=a11_0x143f7e(0x1f0),exports[a11_0x143f7e(0x170)]=a11_0x143f7e(0x1a7),exports[a11_0x143f7e(0x16e)]=function(_0x295ab4){const _0x49ccfd=a11_0x143f7e,_0x13d722={};_0x13d722[_0x49ccfd(0x1be)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x13d722[_0x49ccfd(0x1d4)]='string',_0x13d722[_0x49ccfd(0x1e6)]=_0x49ccfd(0x16b),_0x13d722['mZmzK']='boolean',_0x13d722[_0x49ccfd(0x1b4)]='help';const _0xa30f6f=_0x13d722,_0xc0cc17={};_0xc0cc17[_0x49ccfd(0x160)]=_0xa30f6f[_0x49ccfd(0x1be)],_0xc0cc17['type']=_0xa30f6f[_0x49ccfd(0x1d4)];const _0x410d7e={};_0x410d7e[_0x49ccfd(0x160)]=_0xa30f6f[_0x49ccfd(0x1e6)],_0x410d7e[_0x49ccfd(0x1a2)]=_0xa30f6f['mZmzK'],_0x410d7e[_0x49ccfd(0x1ae)]=![];const _0x4527ac={};return _0x4527ac['grid-id']=_0xc0cc17,_0x4527ac[_0x49ccfd(0x1b1)]=_0x410d7e,_0x295ab4['usage'](HELP_HEADER_MESSAGE[_0x49ccfd(0x1da)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x49ccfd(0x1d2)](_0x4527ac)[_0x49ccfd(0x1c8)](_0xa30f6f[_0x49ccfd(0x1b4)])[_0x49ccfd(0x1de)];},exports[a11_0x143f7e(0x1eb)]=async function(_0x42e46d){const _0x2a0ab6=a11_0x143f7e,_0x103bf8={'YqGwv':'Pass\x20the\x20ID\x20of\x20the\x20Grid','pCxYw':_0x2a0ab6(0x1bf),'jGOKg':'Skip\x20insecure\x20cert\x20verification.','WojBR':_0x2a0ab6(0x196),'BVjjs':'help','cFMMP':_0x2a0ab6(0x1a5),'qnIKI':function(_0x5e7661,_0x2b96cb){return _0x5e7661===_0x2b96cb;},'gaQqw':_0x2a0ab6(0x1a4),'wYHlg':function(_0x145339,_0x23bc46){return _0x145339!==_0x23bc46;},'jLAwa':'BBLXs','ZWkkF':_0x2a0ab6(0x17d),'xAacJ':_0x2a0ab6(0x15e),'lhCgF':_0x2a0ab6(0x1e2),'Tpndo':function(_0xdba87){return _0xdba87();},'BFHLB':_0x2a0ab6(0x1bc),'vsyfp':_0x2a0ab6(0x171),'UXWnA':_0x2a0ab6(0x1ed),'bCSYX':function(_0x3b83e1,_0x128bfa,_0x483a2a,_0x2fdca6,_0x38960b,_0x56ad63,_0x5f4c25){return _0x3b83e1(_0x128bfa,_0x483a2a,_0x2fdca6,_0x38960b,_0x56ad63,_0x5f4c25);},'OIRDq':_0x2a0ab6(0x1d8),'hFmoI':_0x2a0ab6(0x175),'NwbXO':function(_0x2dda8c,_0x12774c,_0xc9bff2,_0x24c87d,_0x28b0a7,_0x42252c,_0x2b3682){return _0x2dda8c(_0x12774c,_0xc9bff2,_0x24c87d,_0x28b0a7,_0x42252c,_0x2b3682);},'uPbgj':_0x2a0ab6(0x1ce),'GepoI':_0x2a0ab6(0x197),'RYsda':function(_0x4ec278){return _0x4ec278();},'BxReP':function(_0x52902b,_0x1b6b88,_0x16fc06,_0x50aea2){return _0x52902b(_0x1b6b88,_0x16fc06,_0x50aea2);},'KTNHf':_0x2a0ab6(0x1ef),'CbTvX':function(_0x18ee13,_0x3d80e9){return _0x18ee13===_0x3d80e9;},'vPyIa':_0x2a0ab6(0x1ba),'NbrIT':'vyeRm','EOIGz':function(_0x54a584,_0xfc3d1e){return _0x54a584(_0xfc3d1e);},'opPle':function(_0x2f3d59,_0x9372fe){return _0x2f3d59===_0x9372fe;},'sLvpF':function(_0x5e5bcd,_0x4245d3){return _0x5e5bcd!==_0x4245d3;},'TKxkU':_0x2a0ab6(0x1e5),'sGIYv':_0x2a0ab6(0x1aa),'qaUjY':_0x2a0ab6(0x17a),'uOHcM':function(_0x17cc75,_0x15225e,_0x51cc2b,_0x2b57ee,_0x3e10d3,_0x52cd03,_0x4bb888){return _0x17cc75(_0x15225e,_0x51cc2b,_0x2b57ee,_0x3e10d3,_0x52cd03,_0x4bb888);},'JBhme':_0x2a0ab6(0x1a8),'tHuvM':function(_0x55e5ed,_0x441fbf){return _0x55e5ed===_0x441fbf;},'XdXWt':function(_0x316c60,_0x12c9d5){return _0x316c60===_0x12c9d5;},'OYlxC':_0x2a0ab6(0x187),'xIIXH':'<UsernamePlaceholder>','Nwxoz':'<PasswordPlaceholder>','gRPuS':function(_0x30e353,_0x3ecde8,_0x570e05,_0x11682e,_0x4e550c,_0x551875,_0x38aebd){return _0x30e353(_0x3ecde8,_0x570e05,_0x11682e,_0x4e550c,_0x551875,_0x38aebd);},'lpTGm':function(_0x28989c,_0x206f23){return _0x28989c(_0x206f23);},'njruw':function(_0x13b998,_0x1bf582,_0x55f62d){return _0x13b998(_0x1bf582,_0x55f62d);},'zjdrz':function(_0x3b6b53,_0x2ed6b1,_0x70a927,_0x48fab6,_0x3fccfb,_0x133c5c){return _0x3b6b53(_0x2ed6b1,_0x70a927,_0x48fab6,_0x3fccfb,_0x133c5c);},'vsbJF':'MiZrO','cZuCF':function(_0x55774e,_0x2fb03c){return _0x55774e!==_0x2fb03c;},'TgKql':'tPWit','avmWQ':'ETfmS','UuPAN':'DELETE','ZctNG':function(_0x5bc8ec,_0x26e92,_0x2f7830){return _0x5bc8ec(_0x26e92,_0x2f7830);},'uqnjs':function(_0x345211,_0x4dd026){return _0x345211!==_0x4dd026;},'TbRPb':function(_0x36ad81,_0x4376f5){return _0x36ad81===_0x4376f5;},'ztrUt':function(_0x5ba526,_0x1ef61b,_0x4e6494,_0x9760d6,_0x56b5f3,_0x968b19,_0x1eea49){return _0x5ba526(_0x1ef61b,_0x4e6494,_0x9760d6,_0x56b5f3,_0x968b19,_0x1eea49);},'gjqCD':'server-error','wOzPX':function(_0x5a004d,_0x421040){return _0x5a004d===_0x421040;},'gqsyG':_0x2a0ab6(0x1ab),'VWfIL':function(_0x3bb44f,_0x5ed3f8,_0x24a01c,_0x1e269a,_0x1c8220,_0x2ea110,_0x452c75){return _0x3bb44f(_0x5ed3f8,_0x24a01c,_0x1e269a,_0x1c8220,_0x2ea110,_0x452c75);},'FVZby':_0x2a0ab6(0x1c1),'hzAvg':function(_0x19a43b,_0x5720d7){return _0x19a43b===_0x5720d7;},'ydZrL':function(_0x1ed3b6,_0x5de3b0,_0xd57a1b,_0x1b7c01,_0x23974c,_0x233c48,_0xd4b63){return _0x1ed3b6(_0x5de3b0,_0xd57a1b,_0x1b7c01,_0x23974c,_0x233c48,_0xd4b63);},'DXYlU':_0x2a0ab6(0x164),'bSdGq':'unknown-error'};try{global_registry[_0x2a0ab6(0x1e7)]=_0x103bf8[_0x2a0ab6(0x1db)](uuidv4);if(!fs[_0x2a0ab6(0x194)](_0x103bf8[_0x2a0ab6(0x1db)](getCredentialsPath))){if(_0x103bf8[_0x2a0ab6(0x17e)](_0x103bf8['BFHLB'],_0x103bf8[_0x2a0ab6(0x19a)])){const _0x5b76f2={};_0x5b76f2['description']=_0x103bf8[_0x2a0ab6(0x155)],_0x5b76f2['type']=_0x103bf8[_0x2a0ab6(0x16f)];const _0xd4ccdd={};_0xd4ccdd[_0x2a0ab6(0x160)]=_0x103bf8[_0x2a0ab6(0x1df)],_0xd4ccdd['type']=_0x103bf8[_0x2a0ab6(0x179)],_0xd4ccdd[_0x2a0ab6(0x1ae)]=![];const _0x5af9b9={};return _0x5af9b9[_0x2a0ab6(0x15f)]=_0x5b76f2,_0x5af9b9[_0x2a0ab6(0x1b1)]=_0xd4ccdd,_0xf5360[_0x2a0ab6(0x18e)](_0x2ef494[_0x2a0ab6(0x1da)])[_0x2a0ab6(0x1d7)](_0x1b0661)[_0x2a0ab6(0x1d2)](_0x5af9b9)['help'](_0x103bf8[_0x2a0ab6(0x167)])[_0x2a0ab6(0x1de)];}else console[_0x2a0ab6(0x1b8)](_0x103bf8[_0x2a0ab6(0x1e1)]),await _0x103bf8[_0x2a0ab6(0x18f)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes[_0x2a0ab6(0x1d9)],_0x103bf8['hFmoI'],null,_0x42e46d),process['exit'](0x1);}_0x103bf8[_0x2a0ab6(0x18d)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes['INFO'],null,null,_0x42e46d);!_0x42e46d[_0x2a0ab6(0x19b)]&&(_0x103bf8['wYHlg'](_0x103bf8[_0x2a0ab6(0x180)],_0x103bf8[_0x2a0ab6(0x193)])?(console[_0x2a0ab6(0x1b8)](_0x103bf8[_0x2a0ab6(0x1ca)]),process['exit'](0x1)):_0x2e25f0[_0x2a0ab6(0x1cd)](0x0));const _0x2660bb=JSON[_0x2a0ab6(0x1c7)](fs[_0x2a0ab6(0x1cf)](_0x103bf8[_0x2a0ab6(0x1b0)](getCredentialsPath))),[_0x59c010,_0xc82e57]=await _0x103bf8['BxReP'](getGridDetails,_0x2660bb[_0x2a0ab6(0x1ef)]['username'],_0x2660bb[_0x2a0ab6(0x1ef)][_0x2a0ab6(0x1c2)],_0x42e46d[_0x2a0ab6(0x19b)]);if(_0xc82e57){const _0x264fd6=_0xc82e57[_0x2a0ab6(0x181)];let _0x43631a=_0x2a0ab6(0x186)+_0x264fd6['name']+_0x2a0ab6(0x1b5)+_0x264fd6['id']+_0x2a0ab6(0x190);_0xc82e57['onlyGridInCluster']&&_0x103bf8['qnIKI'](_0xc82e57[_0x2a0ab6(0x1cc)],_0x103bf8[_0x2a0ab6(0x1c5)])&&(_0x103bf8['CbTvX'](_0x103bf8['vPyIa'],_0x103bf8[_0x2a0ab6(0x1ad)])?_0x427135=_0x2a0ab6(0x186)+_0xa2df41[_0x2a0ab6(0x16d)]+_0x2a0ab6(0x1b5)+_0x9a9886['id']+_0x2a0ab6(0x1ea)+_0x356526[_0x2a0ab6(0x15c)]+'\x22\x20with\x20ID\x20'+_0x41227f[_0x2a0ab6(0x153)]+_0x2a0ab6(0x190):_0x43631a=_0x2a0ab6(0x186)+_0x264fd6[_0x2a0ab6(0x16d)]+_0x2a0ab6(0x1b5)+_0x264fd6['id']+_0x2a0ab6(0x1ea)+_0x264fd6['clusterName']+_0x2a0ab6(0x158)+_0x264fd6[_0x2a0ab6(0x153)]+_0x2a0ab6(0x190));const _0x279c87=await _0x103bf8[_0x2a0ab6(0x1d6)](inputConfirmation,_0x43631a);(_0x103bf8[_0x2a0ab6(0x17e)](_0x279c87,undefined)||_0x103bf8[_0x2a0ab6(0x17e)](_0x279c87,null)||!(_0x103bf8['qnIKI'](_0x279c87[_0x2a0ab6(0x1bb)](),'y')||_0x103bf8[_0x2a0ab6(0x1b6)](_0x279c87['toLowerCase'](),'n')))&&(_0x103bf8[_0x2a0ab6(0x17b)](_0x103bf8[_0x2a0ab6(0x18c)],_0x103bf8[_0x2a0ab6(0x19c)])?(console[_0x2a0ab6(0x1b8)](_0x103bf8['qaUjY']),await _0x103bf8[_0x2a0ab6(0x195)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes[_0x2a0ab6(0x1d9)],_0x103bf8[_0x2a0ab6(0x1a1)],null,_0x42e46d),process[_0x2a0ab6(0x1cd)](0x1)):(_0x50d13c['info'](_0x103bf8['cFMMP']),_0x1945f1[_0x2a0ab6(0x1cd)](0x0)));_0x103bf8[_0x2a0ab6(0x174)](_0x279c87['toLowerCase'](),'n')&&(_0x103bf8[_0x2a0ab6(0x17f)](_0x103bf8['OYlxC'],_0x103bf8['OYlxC'])?process[_0x2a0ab6(0x1cd)](0x0):(_0x571a0[_0x2a0ab6(0x166)]('Namespace:\x20'+_0xa9dd91+_0x2a0ab6(0x1b3)),_0x118533=![]));const _0x12e3e5=WS_ENDPOINT['replace'](_0x103bf8[_0x2a0ab6(0x177)],_0x2660bb['Browserstack']['username'])[_0x2a0ab6(0x157)](_0x103bf8['Nwxoz'],_0x2660bb[_0x2a0ab6(0x1ef)]['password']),_0x40e06b={};_0x40e06b[_0x2a0ab6(0x1e9)]=ws,_0x40e06b[_0x2a0ab6(0x1dc)]=0x36ee80;const _0x1470cd=new ReconnectingWebSocket(_0x12e3e5,[],_0x40e06b);global_registry[_0x2a0ab6(0x1ac)]=_0x264fd6[_0x2a0ab6(0x17c)];const _0x485c45=_0x264fd6[_0x2a0ab6(0x169)],_0x48d32f=await _0x103bf8[_0x2a0ab6(0x156)](getCloudProviderObject,_0x485c45,_0x264fd6[_0x2a0ab6(0x15c)],_0x264fd6['name'],_0x1470cd,webSocketUtils,_0x42e46d),_0x3aa2ac=await _0x48d32f[_0x2a0ab6(0x19f)]();if(_0x3aa2ac){const _0x6ea53f=_0x103bf8[_0x2a0ab6(0x1e0)](kebabCase,_0x264fd6[_0x2a0ab6(0x16d)]),[_0x59718e,_0x1fa16c,_0x4cfa98,_0x38c21b,_0x55b116,_0xd4d694]=await _0x103bf8['njruw'](createK8sClient,_0x48d32f,_0x42e46d[_0x2a0ab6(0x159)]);let _0x2af6cb=!![];const _0x15eac8={};_0x15eac8['name']=_0x6ea53f,await _0x59718e[_0x2a0ab6(0x1af)](_0x15eac8)[_0x2a0ab6(0x1cb)](_0x239cfc=>{const _0x50e417=_0x2a0ab6;_0x103bf8[_0x50e417(0x17e)](_0x103bf8[_0x50e417(0x18a)],_0x103bf8[_0x50e417(0x18a)])?logger['info'](_0x50e417(0x163)+_0x6ea53f+_0x50e417(0x183)):_0x2d834f['info']('Namespace:\x20'+_0x158608+_0x50e417(0x183));})['catch'](_0x1b8c4a=>{const _0x1ff922=_0x2a0ab6;_0x103bf8[_0x1ff922(0x189)](_0x103bf8['jLAwa'],_0x103bf8[_0x1ff922(0x168)])?(logger[_0x1ff922(0x166)](_0x1ff922(0x163)+_0x6ea53f+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x2af6cb=![]):_0xcc2843['warn']('Cluster:\x20'+_0x1e32be[_0x1ff922(0x15c)]+_0x1ff922(0x16a));});if(_0x2af6cb){await _0x103bf8[_0x2a0ab6(0x1c0)](removeGridComponents,_0x59718e,_0x1fa16c,_0x4cfa98,_0x38c21b,_0x6ea53f);if(_0xc82e57['onlyGridInCluster']){const _0x3fe682=await _0x48d32f['isBrowserstackCluster']();_0x3fe682?_0x103bf8[_0x2a0ab6(0x17b)](_0x103bf8[_0x2a0ab6(0x19d)],_0x103bf8['vsbJF'])?(_0x2d4696[_0x2a0ab6(0x1b8)](_0x103bf8[_0x2a0ab6(0x1ca)]),_0x42c02a[_0x2a0ab6(0x1cd)](0x1)):await _0x48d32f[_0x2a0ab6(0x15b)](_0x59718e,_0x264fd6[_0x2a0ab6(0x17c)]):_0x103bf8[_0x2a0ab6(0x18b)](_0x103bf8['TgKql'],_0x103bf8[_0x2a0ab6(0x154)])?logger[_0x2a0ab6(0x166)]('Cluster:\x20'+_0x264fd6['clusterName']+_0x2a0ab6(0x16a)):_0x48b114['warn'](_0x103bf8[_0x2a0ab6(0x182)]);}}}else logger['warn'](_0x103bf8['lhCgF']);const _0x16ba0a='https://'+AG_API_URL+_0x2a0ab6(0x19e)+_0x42e46d[_0x2a0ab6(0x19b)],_0x3f9371={'method':_0x103bf8['UuPAN'],'headers':_0x103bf8[_0x2a0ab6(0x1c9)](getAuthHeader,_0x2660bb['Browserstack'][_0x2a0ab6(0x198)],_0x2660bb['Browserstack'][_0x2a0ab6(0x1c2)]),'throwHttpErrors':![]},_0x1b2a6c=await _0x103bf8[_0x2a0ab6(0x176)](got,_0x16ba0a,_0x3f9371);_0x103bf8[_0x2a0ab6(0x189)](_0x1b2a6c,null)&&_0x103bf8[_0x2a0ab6(0x185)](_0x1b2a6c,undefined)&&_0x103bf8['TbRPb'](_0x1b2a6c[_0x2a0ab6(0x1a6)],0xc8)&&(logger['info'](_0x103bf8[_0x2a0ab6(0x1b9)]),process[_0x2a0ab6(0x1cd)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x1b2a6c[_0x2a0ab6(0x16c)]),await _0x103bf8[_0x2a0ab6(0x1d0)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes[_0x2a0ab6(0x1d9)],_0x103bf8[_0x2a0ab6(0x1b2)],_0x59c010,_0x42e46d),process[_0x2a0ab6(0x1cd)](0x1);}_0x103bf8['wOzPX'](_0x59c010['statusCode'],0x191)&&(logger[_0x2a0ab6(0x1b8)](_0x103bf8[_0x2a0ab6(0x1b7)]),await _0x103bf8[_0x2a0ab6(0x1e4)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes[_0x2a0ab6(0x1d9)],_0x103bf8[_0x2a0ab6(0x192)],null,_0x42e46d),process[_0x2a0ab6(0x1cd)](0x1)),_0x103bf8[_0x2a0ab6(0x165)](_0x59c010['statusCode'],0x190)&&(logger[_0x2a0ab6(0x1b8)](JSON[_0x2a0ab6(0x1c7)](_0x59c010[_0x2a0ab6(0x16c)])[_0x2a0ab6(0x1dd)]),await _0x103bf8[_0x2a0ab6(0x15a)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes['ERROR'],_0x103bf8[_0x2a0ab6(0x1d5)],null,_0x42e46d),process[_0x2a0ab6(0x1cd)](0x1)),logger[_0x2a0ab6(0x1b8)](_0x2a0ab6(0x1ec)+JSON[_0x2a0ab6(0x1d3)](_0x59c010)),await _0x103bf8[_0x2a0ab6(0x15a)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes[_0x2a0ab6(0x1d9)],_0x103bf8[_0x2a0ab6(0x1b2)],_0x59c010,_0x42e46d),process[_0x2a0ab6(0x1cd)](0x1);}catch(_0x2a47cd){logger[_0x2a0ab6(0x1b8)](_0x2a0ab6(0x1bd)+_0x2a47cd['stack']),await _0x103bf8[_0x2a0ab6(0x156)](sendInstrumentationEvent,_0x42e46d,_0x103bf8[_0x2a0ab6(0x1e8)],messageTypes[_0x2a0ab6(0x1d9)],_0x103bf8[_0x2a0ab6(0x1a0)],_0x2a47cd,_0x42e46d),process[_0x2a0ab6(0x1cd)](0x1);}};
|
|
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);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0xb346(_0x1699cf,_0x2b7413){const _0x42d318=a12_0x42d3();return a12_0xb346=function(_0xb346aa,_0x9af868){_0xb346aa=_0xb346aa-0x19b;let _0x53dab3=_0x42d318[_0xb346aa];return _0x53dab3;},a12_0xb346(_0x1699cf,_0x2b7413);}function a12_0x42d3(){const _0x3181e1=['poSiy','OIwck','unknown-error','fwOIN','init','bstackUsername','jtmuj','username','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','EOwlr','/automate/plan.json','qgfpE','bstack-username','VHthV','argv','DMudM','nsufV','pQOFQ','hTKEg','XFAJy','help','wrong-creds','password','lEjhQ','existsSync','bVShA','unvlO','zHyAr','bstack-accesskey','epilogue','../config/logger','eOzUq','3687720ZcwdOX','options','../utils/userInput','BROWSERSTACK_USERNAME','9SUXvzo','2895906VitONJ','usage','parse','JQegZ','mkdirSync','init-called','LOwnI','SADJE','wWLyV','jWQCy','1ZdfRsq','NwpgY','5rooYgX','exit','description','Qdbnx','32314975xiaHzJ','BpvTS','xCduA','lVUwn','wPPgY','bRIte','util','readFileSync','recommendCommands','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../utils/instrumentationUtils','bstackAccesskey','PbBtg','dIJoH','KiOYE','UngeJ','statusCode','ERROR','481152WOMBcg','type','AKGff','Ngjxl','71886smFvms','BROWSERSTACK_ACCESS_KEY','env','28OCSEFP','EdqlE','qdcrC','osfau','stringify','MCCVU','requestId','sUtLG','8312670IuXiJY','string','../utils/utilityMethods','INFO','utf-8','Browserstack','PRRVY','uDuis','stack','uuid','builder','709318kXFxnp','strict','jcwso','error','gAhHS'];a12_0x42d3=function(){return _0x3181e1;};return a12_0x42d3();}const a12_0x12c167=a12_0xb346;(function(_0x5a33e5,_0x2d4152){const _0x1baba5=a12_0xb346,_0x5806a4=_0x5a33e5();while(!![]){try{const _0x4da1d2=-parseInt(_0x1baba5(0x1c6))/0x1*(parseInt(_0x1baba5(0x1f8))/0x2)+-parseInt(_0x1baba5(0x1bc))/0x3+-parseInt(_0x1baba5(0x1de))/0x4*(-parseInt(_0x1baba5(0x1c8))/0x5)+-parseInt(_0x1baba5(0x1e2))/0x6*(-parseInt(_0x1baba5(0x1e5))/0x7)+parseInt(_0x1baba5(0x1b7))/0x8*(-parseInt(_0x1baba5(0x1bb))/0x9)+-parseInt(_0x1baba5(0x1ed))/0xa+parseInt(_0x1baba5(0x1cc))/0xb;if(_0x4da1d2===_0x2d4152)break;else _0x5806a4['push'](_0x5806a4['shift']());}catch(_0x46d94a){_0x5806a4['push'](_0x5806a4['shift']());}}}(a12_0x42d3,0x788b0));const fs=require('fs'),util=require(a12_0x12c167(0x1d2)),got=require('got'),{v4:uuidv4}=require(a12_0x12c167(0x1f6)),{logger}=require(a12_0x12c167(0x1b5)),{inputBstackKeys}=require(a12_0x12c167(0x1b9)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x12c167(0x1ef)),{sendInstrumentationEvent}=require(a12_0x12c167(0x1d6));exports['command']=a12_0x12c167(0x19b),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x12c167(0x1f7)]=function(_0x6a2360){const _0xda7009=a12_0x12c167,_0x3a53a0={};_0x3a53a0[_0xda7009(0x1a7)]=_0xda7009(0x1d5),_0x3a53a0[_0xda7009(0x1fe)]=_0xda7009(0x1ee),_0x3a53a0['unvlO']=_0xda7009(0x19f),_0x3a53a0[_0xda7009(0x1a9)]='help';const _0x17697f=_0x3a53a0,_0x11d970={};_0x11d970[_0xda7009(0x1ca)]=_0x17697f[_0xda7009(0x1a7)],_0x11d970[_0xda7009(0x1df)]=_0x17697f[_0xda7009(0x1fe)];const _0x13407a={};_0x13407a[_0xda7009(0x1ca)]=_0x17697f[_0xda7009(0x1b1)],_0x13407a[_0xda7009(0x1df)]=_0x17697f['OIwck'];const _0x40041b={};return _0x40041b[_0xda7009(0x1a3)]=_0x11d970,_0x40041b[_0xda7009(0x1b3)]=_0x13407a,_0x6a2360[_0xda7009(0x1bd)](HELP_HEADER_MESSAGE[_0xda7009(0x19b)])[_0xda7009(0x1b4)](HELP_FOOTER_MESSAGE)[_0xda7009(0x1b8)](_0x40041b)[_0xda7009(0x1d4)]()[_0xda7009(0x1f9)]()[_0xda7009(0x1ab)](_0x17697f[_0xda7009(0x1a9)])[_0xda7009(0x1a5)];},exports['handler']=async function(_0x415fbf){const _0x3d4277=a12_0x12c167,_0x3f844e={'poSiy':_0x3d4277(0x1d5),'PbBtg':_0x3d4277(0x1ee),'BpvTS':_0x3d4277(0x19f),'mgGhc':'help','bRIte':function(_0x86590){return _0x86590();},'SADJE':_0x3d4277(0x1f1),'zHyAr':function(_0xbb5e31,_0x3248ef,_0x4cc16e,_0x92e073,_0x4488df,_0x59428a,_0x17321e){return _0xbb5e31(_0x3248ef,_0x4cc16e,_0x92e073,_0x4488df,_0x59428a,_0x17321e);},'qdcrC':_0x3d4277(0x1c1),'byJan':function(_0x192527,_0x3665b5){return _0x192527!==_0x3665b5;},'JQegZ':_0x3d4277(0x1fa),'MLBVg':'ptWtq','fwOIN':function(_0x2751c3,_0x25b029){return _0x2751c3!==_0x25b029;},'doDDo':_0x3d4277(0x1d9),'qgfpE':function(_0x3eb9f8,_0x71416d){return _0x3eb9f8===_0x71416d;},'xCduA':_0x3d4277(0x1e1),'YQipx':_0x3d4277(0x1e0),'LOwnI':_0x3d4277(0x1ec),'XFAJy':function(_0x58928e,_0x1e6f99){return _0x58928e!==_0x1e6f99;},'DMudM':_0x3d4277(0x1c7),'EdqlE':'gkfzB','MSCWy':function(_0x3e4aae,_0x4a563b){return _0x3e4aae===_0x4a563b;},'KiOYE':_0x3d4277(0x1f3),'qGSkT':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','jWQCy':'GET','jtmuj':function(_0x590e3c,_0x34be97,_0x29b7e2){return _0x590e3c(_0x34be97,_0x29b7e2);},'bVShA':function(_0x5d724f,_0x3e3431){return _0x5d724f!==_0x3e3431;},'Qdbnx':function(_0x3bb359,_0x233f0f){return _0x3bb359!==_0x233f0f;},'tDuEK':'NOTpz','eOzUq':_0x3d4277(0x1f4),'GPjDG':function(_0x18a15d,_0x2de85d){return _0x18a15d!==_0x2de85d;},'wWLyV':_0x3d4277(0x1db),'osfau':'qPPRk','VHthV':function(_0x363236,_0x1ae834){return _0x363236!==_0x1ae834;},'lEjhQ':_0x3d4277(0x1fc),'pQOFQ':_0x3d4277(0x1cf),'wPPgY':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','EOwlr':function(_0x3e5855,_0x3d1169,_0x986c85,_0x3ad70b,_0x47f4af,_0x43712a,_0x444d8d){return _0x3e5855(_0x3d1169,_0x986c85,_0x3ad70b,_0x47f4af,_0x43712a,_0x444d8d);},'qOWJk':_0x3d4277(0x1ac),'MCCVU':_0x3d4277(0x1ff)};try{global_registry[_0x3d4277(0x1eb)]=_0x3f844e[_0x3d4277(0x1d1)](uuidv4),_0x3f844e[_0x3d4277(0x1b2)](sendInstrumentationEvent,_0x415fbf,_0x3f844e[_0x3d4277(0x1e7)],messageTypes[_0x3d4277(0x1f0)],null,null,_0x415fbf);const _0x166107=_0x3f844e[_0x3d4277(0x1d1)](getDirForConfig);if(!fs[_0x3d4277(0x1af)](_0x166107)){if(_0x3f844e['byJan'](_0x3f844e[_0x3d4277(0x1bf)],_0x3f844e['MLBVg']))fs['mkdirSync'](_0x166107);else{const _0x47540d={};_0x47540d['description']=_0x3f844e[_0x3d4277(0x1fd)],_0x47540d['type']=_0x3f844e['PbBtg'];const _0x56285c={};_0x56285c[_0x3d4277(0x1ca)]=_0x3f844e[_0x3d4277(0x1cd)],_0x56285c['type']=_0x3f844e[_0x3d4277(0x1d8)];const _0x251941={};return _0x251941['bstack-username']=_0x47540d,_0x251941[_0x3d4277(0x1b3)]=_0x56285c,_0x131c6b[_0x3d4277(0x1bd)](_0x329fa5['init'])[_0x3d4277(0x1b4)](_0x4f9cdb)[_0x3d4277(0x1b8)](_0x251941)[_0x3d4277(0x1d4)]()[_0x3d4277(0x1f9)]()[_0x3d4277(0x1ab)](_0x3f844e['mgGhc'])[_0x3d4277(0x1a5)];}}let _0x3af206,_0x1bb8d2;process[_0x3d4277(0x1e4)]['BROWSERSTACK_USERNAME']&&(_0x3f844e[_0x3d4277(0x200)](_0x3f844e['doDDo'],_0x3f844e['doDDo'])?_0x374d0d=_0x4af0ee[_0x3d4277(0x1e4)]['BROWSERSTACK_ACCESS_KEY']:_0x3af206=process[_0x3d4277(0x1e4)][_0x3d4277(0x1ba)]);process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x3f844e[_0x3d4277(0x1a2)](_0x3f844e[_0x3d4277(0x1ce)],_0x3f844e['YQipx'])?_0x9cd722=!![]:_0x1bb8d2=process[_0x3d4277(0x1e4)][_0x3d4277(0x1e3)]);_0x415fbf[_0x3d4277(0x19c)]&&(_0x3f844e['qgfpE'](_0x3f844e[_0x3d4277(0x1c2)],_0x3f844e[_0x3d4277(0x1c2)])?_0x3af206=_0x415fbf[_0x3d4277(0x19c)]:_0x1d80a1=_0x1893fb[_0x3d4277(0x19c)]);_0x415fbf[_0x3d4277(0x1d7)]&&(_0x3f844e['XFAJy'](_0x3f844e[_0x3d4277(0x1a6)],_0x3f844e[_0x3d4277(0x1e6)])?_0x1bb8d2=_0x415fbf[_0x3d4277(0x1d7)]:_0x5b464c=_0x21bd25[_0x3d4277(0x1e4)][_0x3d4277(0x1ba)]);if(_0x3f844e['qgfpE'](_0x3af206,undefined)||_0x3f844e[_0x3d4277(0x1a2)](_0x1bb8d2,undefined)){if(_0x3f844e['MSCWy'](_0x3f844e[_0x3d4277(0x1da)],_0x3f844e[_0x3d4277(0x1da)])){logger['debug'](_0x3f844e['qGSkT']);const [_0x2533eb,_0x1f3a8b]=await _0x3f844e[_0x3d4277(0x1d1)](inputBstackKeys);_0x3af206=_0x2533eb,_0x1bb8d2=_0x1f3a8b;}else _0x565e4b[_0x3d4277(0x1c0)](_0x394466);}let _0x1a1b66=![];const _0x2524ef='https://'+_0x3af206+':'+_0x1bb8d2+'@'+BS_API_URL+_0x3d4277(0x1a1),_0x14c946={'method':_0x3f844e[_0x3d4277(0x1c5)],'headers':_0x3f844e[_0x3d4277(0x19d)](getAuthHeader,_0x3af206,_0x1bb8d2),'throwHttpErrors':![]},_0x627d3d=await _0x3f844e[_0x3d4277(0x19d)](got,_0x2524ef,_0x14c946);if(_0x3f844e[_0x3d4277(0x1b0)](_0x627d3d,null)&&_0x3f844e[_0x3d4277(0x1aa)](_0x627d3d,undefined)&&_0x3f844e['qgfpE'](_0x627d3d[_0x3d4277(0x1dc)],0xc8)){if(_0x3f844e[_0x3d4277(0x1cb)](_0x3f844e['tDuEK'],_0x3f844e[_0x3d4277(0x1b6)]))_0x1a1b66=!![];else{let _0x4d681a={};const _0xec250=_0x3f844e[_0x3d4277(0x1d1)](_0xbd9146);_0xd622e3[_0x3d4277(0x1af)](_0xec250)&&(_0x4d681a=_0x5e628d[_0x3d4277(0x1be)](_0x4e209d[_0x3d4277(0x1d3)](_0xec250,_0x3f844e[_0x3d4277(0x1c3)])));const _0x1a2ce3={};_0x1a2ce3[_0x3d4277(0x19e)]=_0x2e3762,_0x1a2ce3[_0x3d4277(0x1ad)]=_0x3bfbde,_0x4d681a['Browserstack']=_0x1a2ce3,_0x52e78b['writeFileSync'](_0xec250,_0x1b23bd['stringify'](_0x4d681a)),_0x261145['exit'](0x0);}}if(_0x1a1b66){if(_0x3f844e['GPjDG'](_0x3f844e[_0x3d4277(0x1c4)],_0x3f844e[_0x3d4277(0x1e8)])){let _0xcfe7a5={};const _0x537c22=_0x3f844e[_0x3d4277(0x1d1)](getCredentialsPath);fs[_0x3d4277(0x1af)](_0x537c22)&&(_0x3f844e[_0x3d4277(0x1a4)](_0x3f844e[_0x3d4277(0x1ae)],_0x3f844e[_0x3d4277(0x1a8)])?_0xcfe7a5=JSON['parse'](fs[_0x3d4277(0x1d3)](_0x537c22,_0x3f844e[_0x3d4277(0x1c3)])):_0x50633a=_0x4356e7[_0x3d4277(0x1be)](_0x401d96['readFileSync'](_0x54115a,_0x3f844e[_0x3d4277(0x1c3)])));const _0x2e539e={};_0x2e539e[_0x3d4277(0x19e)]=_0x3af206,_0x2e539e[_0x3d4277(0x1ad)]=_0x1bb8d2,_0xcfe7a5[_0x3d4277(0x1f2)]=_0x2e539e,fs['writeFileSync'](_0x537c22,JSON[_0x3d4277(0x1e9)](_0xcfe7a5)),process[_0x3d4277(0x1c9)](0x0);}else _0x3a0403=_0x243250[_0x3d4277(0x1d7)];}else logger['error'](_0x3f844e[_0x3d4277(0x1d0)]),await _0x3f844e[_0x3d4277(0x1a0)](sendInstrumentationEvent,_0x415fbf,_0x3f844e[_0x3d4277(0x1e7)],messageTypes[_0x3d4277(0x1dd)],_0x3f844e['qOWJk'],null,_0x415fbf),process[_0x3d4277(0x1c9)](0x1);}catch(_0x50662f){logger[_0x3d4277(0x1fb)](_0x50662f[_0x3d4277(0x1f5)]),await _0x3f844e[_0x3d4277(0x1a0)](sendInstrumentationEvent,_0x415fbf,_0x3f844e[_0x3d4277(0x1e7)],messageTypes[_0x3d4277(0x1dd)],_0x3f844e[_0x3d4277(0x1ea)],_0x50662f,_0x415fbf),process[_0x3d4277(0x1c9)](0x1);}};
|
|
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);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x2cb9a9=a13_0x4435;(function(_0x486066,_0x3b5d8e){const _0x638e0c=a13_0x4435,_0x177cc1=_0x486066();while(!![]){try{const _0x503936=-parseInt(_0x638e0c(0xb7))/0x1*(parseInt(_0x638e0c(0xb4))/0x2)+parseInt(_0x638e0c(0xa6))/0x3*(parseInt(_0x638e0c(0xba))/0x4)+parseInt(_0x638e0c(0xb1))/0x5*(-parseInt(_0x638e0c(0xa5))/0x6)+-parseInt(_0x638e0c(0xa9))/0x7+parseInt(_0x638e0c(0xa8))/0x8*(parseInt(_0x638e0c(0xac))/0x9)+-parseInt(_0x638e0c(0xa2))/0xa*(parseInt(_0x638e0c(0xaf))/0xb)+parseInt(_0x638e0c(0xae))/0xc;if(_0x503936===_0x3b5d8e)break;else _0x177cc1['push'](_0x177cc1['shift']());}catch(_0xe58921){_0x177cc1['push'](_0x177cc1['shift']());}}}(a13_0x51ea,0xea56e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x2cb9a9(0xa3));function a13_0x4435(_0x5d9f1b,_0x392c21){const _0x51eaa6=a13_0x51ea();return a13_0x4435=function(_0x44359c,_0x42db3d){_0x44359c=_0x44359c-0xa2;let _0x13370a=_0x51eaa6[_0x44359c];return _0x13370a;},a13_0x4435(_0x5d9f1b,_0x392c21);}function a13_0x51ea(){const _0x4e3a33=['epilogue','7826835eoqAZC','command','root','278406eMHbCi','VqXyj','builder','10facjNC','desc','HEFfq','9124xBdHWe','20PDGAEb','../config/constants','help','6IUkUYM','1521ycHNAD','commandDir','14984mPxqql','6748133FmmLIA','List\x20down\x20the\x20Grid\x20resources.','list_commands','6138sXbkmb','demandCommand','43754196LhkulE','6593213tbnfXq'];a13_0x51ea=function(){return _0x4e3a33;};return a13_0x51ea();}exports[a13_0x2cb9a9(0xb2)]='list',exports[a13_0x2cb9a9(0xb8)]=a13_0x2cb9a9(0xaa),exports[a13_0x2cb9a9(0xb6)]=function(_0xd583cf){const _0x25de2f=a13_0x2cb9a9,_0x29c379={};_0x29c379[_0x25de2f(0xb9)]=_0x25de2f(0xab),_0x29c379[_0x25de2f(0xb5)]=_0x25de2f(0xa4);const _0x30cc9d=_0x29c379;return _0xd583cf[_0x25de2f(0xa7)](_0x30cc9d['HEFfq'])[_0x25de2f(0xad)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x25de2f(0xb3)])[_0x25de2f(0xb0)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()[_0x25de2f(0xa4)](_0x30cc9d['VqXyj']);},exports['handler']=function(_0x49ed7d){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x2d2d28=a14_0x5ee6;function a14_0x2770(){const _0x3f9f4e=['xnIFX','concurrency','qNsno','existsSync','SGPQV','builder','options','/packages/cli/get-grid-profiles','117VfoFcD','../../config/constants','60pNWZwi','sfswy','wWJlv','unknown-error','help','dMkWl','zOhnP','region','password','grid-profile-name','requestId','gVdQt','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','allGridProfiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XXSlI','8jYdpJE','ERROR','stack','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','description','Failed\x20to\x20list\x20resources!\x20Error:\x20','xrPdc','439406NuIhIL','270LMrtlv','bstackAccesskey','3565AtDqsu','uuid','RNYbP','FBVPy','error','RbFgw','Aboyl','forEach','4xvopOb','unauthorised','pZNSg','body','bstackUsername','klNYs','DMDBs','../../utils/instrumentationUtils','Browserstack','318kWCJNY','hzWmB','argv','https://','grid-profiles','server-error','exit','push','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list','list-grid-profiles-called','/packages/cli/get-all-grid-profiles','pkXSI','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','850XucfSX','INFO','miqKH','stringify','command','usage','got','handler','qihko','FYOBM','statusCode','cloud-provider','readFileSync','log','ahbOu','1793532KZiEOk','name','56860yBLkIG','type','init-not-called','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','454041zGPbty','GET','880818iJYwEi','QkWqH'];a14_0x2770=function(){return _0x3f9f4e;};return a14_0x2770();}(function(_0x1c772a,_0x113d7f){const _0x5bf839=a14_0x5ee6,_0x277d9f=_0x1c772a();while(!![]){try{const _0x3e0f20=-parseInt(_0x5bf839(0x1ce))/0x1*(-parseInt(_0x5bf839(0x1ad))/0x2)+-parseInt(_0x5bf839(0x1c4))/0x3*(-parseInt(_0x5bf839(0x1f3))/0x4)+parseInt(_0x5bf839(0x1eb))/0x5*(parseInt(_0x5bf839(0x19f))/0x6)+-parseInt(_0x5bf839(0x1c2))/0x7*(parseInt(_0x5bf839(0x1e0))/0x8)+parseInt(_0x5bf839(0x1e9))/0x9*(parseInt(_0x5bf839(0x1be))/0xa)+-parseInt(_0x5bf839(0x1e8))/0xb*(parseInt(_0x5bf839(0x1d0))/0xc)+-parseInt(_0x5bf839(0x1bc))/0xd;if(_0x3e0f20===_0x113d7f)break;else _0x277d9f['push'](_0x277d9f['shift']());}catch(_0x3ca7d9){_0x277d9f['push'](_0x277d9f['shift']());}}}(a14_0x2770,0x24697));function a14_0x5ee6(_0xccbd70,_0x381e72){const _0x2770a3=a14_0x2770();return a14_0x5ee6=function(_0x5ee65c,_0x236a1b){_0x5ee65c=_0x5ee65c-0x19d;let _0x4cb067=_0x2770a3[_0x5ee65c];return _0x4cb067;},a14_0x5ee6(_0xccbd70,_0x381e72);}const fs=require('fs'),got=require(a14_0x2d2d28(0x1b3)),{table}=require('table'),{v4:uuidv4}=require(a14_0x2d2d28(0x1ec)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2d2d28(0x1cf)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x2d2d28(0x19d));exports[a14_0x2d2d28(0x1b1)]=a14_0x2d2d28(0x1a3),exports[a14_0x2d2d28(0x1e4)]=a14_0x2d2d28(0x1dc),exports[a14_0x2d2d28(0x1cb)]=function(_0x3e9209){const _0xae87e3=a14_0x2d2d28,_0x9000b0={};_0x9000b0[_0xae87e3(0x1db)]=_0xae87e3(0x1ac),_0x9000b0['wWJlv']='boolean',_0x9000b0['xrPdc']=_0xae87e3(0x1d4);const _0x53a1d7=_0x9000b0,_0x151bc3={};_0x151bc3[_0xae87e3(0x1e5)]=_0x53a1d7[_0xae87e3(0x1db)],_0x151bc3[_0xae87e3(0x1bf)]=_0x53a1d7[_0xae87e3(0x1d2)];const _0x864b60={};return _0x864b60['all-grid-profiles']=_0x151bc3,_0x3e9209[_0xae87e3(0x1b2)](HELP_HEADER_MESSAGE[_0xae87e3(0x1a8)]['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xae87e3(0x1cc)](_0x864b60)[_0xae87e3(0x1d4)](_0x53a1d7[_0xae87e3(0x1e7)])[_0xae87e3(0x1a1)];},exports[a14_0x2d2d28(0x1b4)]=async function(_0x421277){const _0x572ce0=a14_0x2d2d28,_0x5d17ee={'Aboyl':function(_0x26903e){return _0x26903e();},'xnIFX':function(_0x464904){return _0x464904();},'hzWmB':_0x572ce0(0x1a7),'qihko':function(_0x185bb1,_0x31c714,_0x22ee12,_0x2c6e6c,_0x422eb2,_0x54cee4,_0x148864){return _0x185bb1(_0x31c714,_0x22ee12,_0x2c6e6c,_0x422eb2,_0x54cee4,_0x148864);},'klNYs':_0x572ce0(0x1a9),'XvchC':_0x572ce0(0x1c0),'XXSlI':_0x572ce0(0x1c3),'RbFgw':function(_0x47d5a5,_0x28277c,_0x21d63b){return _0x47d5a5(_0x28277c,_0x21d63b);},'zOhnP':function(_0x4c79e6,_0x10b9d0,_0x1620e7,_0x1bac36,_0x179e6c,_0x1d3b21,_0x2e0d56){return _0x4c79e6(_0x10b9d0,_0x1620e7,_0x1bac36,_0x179e6c,_0x1d3b21,_0x2e0d56);},'ahbOu':function(_0x2b8d40,_0xbe3391,_0x19f60d){return _0x2b8d40(_0xbe3391,_0x19f60d);},'sfswy':function(_0x385fdc,_0x51d62d){return _0x385fdc!==_0x51d62d;},'FBVPy':function(_0x36f99c,_0x5d1efa){return _0x36f99c===_0x5d1efa;},'QkWqH':_0x572ce0(0x1c1),'KQhvz':_0x572ce0(0x1d9),'qNsno':_0x572ce0(0x1b8),'DMDBs':'region','pkXSI':_0x572ce0(0x1c7),'pZNSg':function(_0x51a860,_0x22846c){return _0x51a860(_0x22846c);},'lJCTV':function(_0x592155,_0x44eed1){return _0x592155===_0x44eed1;},'FYOBM':_0x572ce0(0x1e3),'dMkWl':function(_0x398cbc,_0x23acf8,_0x4f8400,_0x5cc885,_0x3c48da,_0x9890c1,_0x254931){return _0x398cbc(_0x23acf8,_0x4f8400,_0x5cc885,_0x3c48da,_0x9890c1,_0x254931);},'RNYbP':_0x572ce0(0x1f4),'SGPQV':_0x572ce0(0x1a4),'miqKH':_0x572ce0(0x1d3)};try{global_registry[_0x572ce0(0x1da)]=_0x5d17ee[_0x572ce0(0x1f1)](uuidv4);let _0xb55e7=_0x572ce0(0x1a2)+AG_API_URL+_0x572ce0(0x1cd);_0x421277[_0x572ce0(0x1dd)]&&(_0xb55e7=_0x572ce0(0x1a2)+AG_API_URL+_0x572ce0(0x1aa));!fs[_0x572ce0(0x1c9)](_0x5d17ee[_0x572ce0(0x1c6)](getCredentialsPath))&&(console[_0x572ce0(0x1ef)](_0x5d17ee[_0x572ce0(0x1a0)]),await _0x5d17ee[_0x572ce0(0x1b5)](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes[_0x572ce0(0x1e1)],_0x5d17ee['XvchC'],null,_0x421277),process[_0x572ce0(0x1a5)](0x1));const _0x955154=JSON['parse'](fs[_0x572ce0(0x1b9)](_0x5d17ee['Aboyl'](getCredentialsPath))),_0x8adaff={'method':_0x5d17ee[_0x572ce0(0x1df)],'headers':_0x5d17ee[_0x572ce0(0x1f0)](getAuthHeader,_0x955154[_0x572ce0(0x19e)]['username'],_0x955154['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x572ce0(0x1f7)]=_0x955154[_0x572ce0(0x19e)]['username'],global_registry[_0x572ce0(0x1ea)]=_0x955154['Browserstack'][_0x572ce0(0x1d8)],_0x5d17ee[_0x572ce0(0x1d6)](sendInstrumentationEvent,_0x421277,_0x5d17ee['klNYs'],messageTypes[_0x572ce0(0x1ae)],null,null,_0x421277);const _0x5495dc=await _0x5d17ee[_0x572ce0(0x1bb)](got,_0xb55e7,_0x8adaff);if(_0x5d17ee[_0x572ce0(0x1d1)](_0x5495dc,null)&&_0x5d17ee[_0x572ce0(0x1d1)](_0x5495dc,undefined)&&_0x5d17ee[_0x572ce0(0x1ee)](_0x5495dc[_0x572ce0(0x1b7)],0xc8)){const _0x55800c=JSON['parse'](_0x5495dc[_0x572ce0(0x1f6)]);console['log'](_0x5d17ee[_0x572ce0(0x1c5)]);const _0x1008dd=[];_0x1008dd[_0x572ce0(0x1a6)]([_0x5d17ee['KQhvz'],_0x5d17ee[_0x572ce0(0x1c8)],_0x5d17ee[_0x572ce0(0x1f9)],_0x5d17ee[_0x572ce0(0x1ab)]]),_0x55800c[_0x572ce0(0x1f2)](_0x32f5df=>{const _0x5e2c47=_0x572ce0;_0x1008dd[_0x5e2c47(0x1a6)]([_0x32f5df[_0x5e2c47(0x1bd)],_0x32f5df['cloudProvider'],_0x32f5df[_0x5e2c47(0x1d7)],_0x32f5df[_0x5e2c47(0x1c7)]]);}),console[_0x572ce0(0x1ba)](_0x5d17ee[_0x572ce0(0x1f5)](table,_0x1008dd)),process['exit'](0x0);}_0x5d17ee['lJCTV'](_0x5495dc[_0x572ce0(0x1b7)],0x191)&&(console[_0x572ce0(0x1ef)](_0x5d17ee[_0x572ce0(0x1b6)]),await _0x5d17ee[_0x572ce0(0x1d5)](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes[_0x572ce0(0x1e1)],_0x5d17ee[_0x572ce0(0x1ed)],null,_0x421277),process['exit'](0x1)),console[_0x572ce0(0x1ef)](_0x572ce0(0x1de)+JSON[_0x572ce0(0x1b0)](_0x5495dc)),await _0x5d17ee['qihko'](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes[_0x572ce0(0x1e1)],_0x5d17ee[_0x572ce0(0x1ca)],_0x5495dc,_0x421277),process[_0x572ce0(0x1a5)](0x1);}catch(_0x318b65){console[_0x572ce0(0x1ef)](_0x572ce0(0x1e6)+_0x318b65[_0x572ce0(0x1e2)]),await _0x5d17ee[_0x572ce0(0x1d5)](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes['ERROR'],_0x5d17ee[_0x572ce0(0x1af)],_0x318b65,_0x421277),process[_0x572ce0(0x1a5)](0x1);}};
|