browserstack-node-sdk 1.34.21 → 1.34.22
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/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_0x46b176=a9_0x4343;function a9_0x5993(){const _0x7f999=['ACmFf','OVnmh','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','qBdzU','VwDIZ','INFO','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','://','clusterRegion','XhdyJ','pgbED','privateGrid','uBdIs','\x20are\x20not\x20present\x20in\x20VPC:\x20','init-not-called','pAgsJ','mNOff','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','HIwZj','gridName','MEeEo','skipTlsCertVerify','jPVXC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','GeWUc','Deleting\x20the\x20CloudFormation\x20Stacks','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','isNewAWSCluster','coLvU','annotations','24GlVfSi','NWHOQ','string','error','options','subnets','isSubnetsValid','setupNewCluster','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','AwNFa','fysTn','usage','Browserstack','qrCoy','VtOVx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','cIzRZ','22iENjGh','browserVersion','eqrvh','hubVersion','WJEEq','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','FJXem','xELZy','private-grid','statusCode','length','4CdQPuA','yWglq','getResourceClientId','2|1|3|4|5|8|10|12|13|14|9|11|0|6|7','Skip\x20insecure\x20cert\x20verification.','default','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','alreadyPresent','Create\x20a\x20private/public\x20grid.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Namespace\x20created','mNlnu','SxeEA','CLI\x20run\x20started','kRIyC','Grid\x20profile\x20fetched\x20from\x20backend','qYEDN','YjQtb','description','kuqAP','Spawning\x20the\x20grid\x20','ViuGq','create-grid-checks-null-response','zjerR','RBIFc','GET','grid-profile','ENuHR','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DQSDl','clusterName','xoZLV','hoGZV','user','\x27\x20grid\x20profile','nUIRh','https','gridProfile','msnaA','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','xrYWH','KwEom','mrJLh','readFileSync','Grid\x20can\x20be\x20accessed\x20at:\x20','jrROE','zrYJa','YvDEB','Cluster:\x20','defaultGridProfile','iviOP','https://','grid-name','get-grid-url-null-response','pGtuV','MiBye','kyBAY','eZfDC','rAkEi','deleteCluster','WgAUC','UFtVT','GSCBJ','Cluster\x20','nkfDE','KNLNw','bPZSB','yrbQP','YfdRT','parse','AlkrF','maxNodes','ZDaKM','IUALx','BbrVf','private-ingress-nginx-controller','jNdSJ','HWwcZ','tKZvF','LbBuo','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','tCnXV','get-grid-url-non-200','FqeBS','QKjHm','readNamespacedService','uOTyw','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','UMhbr','bxFBA','8|5|7|6|2|0|1|3|4','xaJDh','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','CSssk','Creating\x20namespace','uBNMV','DkumJ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','cloudProvider','non-aws-azure-cluster','epilogue','connectionTimeout','JbVsb','dmDvB','argv','OHsQL','reconnecting-websocket','206802RgchCI','mYLqP','/wd/hub','updateClusterAlreadyPresent','TVknx','help','peSlt','bxTxy','CLI\x20run\x20finished:\x20','fXqzL','dXThF','managedBy','CLI_RUN_STARTED','YqBoF','aVogi','MvXjN','edKUo','desc','Kpdlf','IfEGn','exit','<UsernamePlaceholder>','uWsEr','lToLT','2490nSXKKf','create','concurrency','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SwaOc','\x20using\x20\x27','gQKVN','/packages/cli/get-grid-url?gridIdentifier=','Create\x20a\x20new\x20Automation\x20grid.','toLowerCase','ccWSr','vpc','bstackUsername','GRFKZ','fZiZV','VSXol','1525834unuqVy','pre-spawned-invalid-subnets','replace','iusGY','yjxQq','KGrjc','sendEventToBackend','CLI_RUN_FINISHED','cluster-name','bstyD','sPZwm','instanceType','isPrivateGrid','Found\x20Subnets:\x20','ingress-nginx','ReMFp','xCfiS','Rsvwm','command','FqSKS','Grid\x20spawned\x20on\x20the\x20cluster','LOG','createOtherResources','rtTpK','SkUWq','got','bXROZ','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Svtcw','uIGnC','xMRKJ','gPBEK','WebSocket','tUwTf','type','ptNQZ','xSgWo','wTenF','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','create-grid-checks-non-200','dXjmR','kqjlg','Subnets:\x20','stringify','bNTaf','VpCtz','\x20in\x20existing\x20cluster\x20\x27','bstackAccesskey','ORAbi','xVQjQ','tARWA','/packages/cli/create-grid-checks','ERROR','EsVOU','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','gugKy','IxgRX','XcrqA','prespawned-cluster-args-not-passed','isClusterPresent','fjHQv','setupAutoscaler','izYKj','JmgKJ','2703732wGdJIc','aneuG','ryvyJ','qXeZu','nJyAl','get-grid-url-auth-failed','minNodes','nacGf','split','pre-spawned-subnets-not-selected','dGuwY','SrxBH','delay','1iNmlAd','mbHdV','sYfIx','../../utils/instrumentationUtils','name','cIAGU','ncpNp','info','PmdaC','WrGJl','KbFSP','region','QVlZS','LTObL','DJzgL','namespace','cNFdx','message','body','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','route53','cBjOE','vqIyB','gridProfileId','RSMbh','yqZkr','boolean','../../config/constants','../../utils/webSocketUtils','sendResourceDataToHST','vyaws','../../utils/createk8sClient','984487nArlMR','oTIdc','password','UvIUc','1925385ooQFxr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','14265OXMrBf','1172856wBEAFp','aQqMb','LgLqu','s3bucket','RoVmQ','skip-tls-cert-verify','newCluster'];a9_0x5993=function(){return _0x7f999;};return a9_0x5993();}(function(_0x37e84d,_0x5cb045){const _0x46de22=a9_0x4343,_0xe760fa=_0x37e84d();while(!![]){try{const _0x2f28b5=-parseInt(_0x46de22(0x147))/0x1*(parseInt(_0x46de22(0xfa))/0x2)+parseInt(_0x46de22(0xd1))/0x3*(parseInt(_0x46de22(0x1b0))/0x4)+parseInt(_0x46de22(0x16b))/0x5+-parseInt(_0x46de22(0x194))/0x6*(-parseInt(_0x46de22(0x167))/0x7)+parseInt(_0x46de22(0x16f))/0x8+parseInt(_0x46de22(0x16e))/0x9*(-parseInt(_0x46de22(0xe9))/0xa)+-parseInt(_0x46de22(0x1a5))/0xb*(-parseInt(_0x46de22(0x13a))/0xc);if(_0x2f28b5===_0x5cb045)break;else _0xe760fa['push'](_0xe760fa['shift']());}catch(_0x1c9d54){_0xe760fa['push'](_0xe760fa['shift']());}}}(a9_0x5993,0x6f61e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x46b176(0xd0)),got=require(a9_0x46b176(0x113)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x46b176(0x163)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x46b176(0x162)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x46b176(0x166)),{sendInstrumentationEvent}=require(a9_0x46b176(0x14a));function a9_0x4343(_0x5d62d4,_0xd05cb9){const _0x599345=a9_0x5993();return a9_0x4343=function(_0x434381,_0x506ec5){_0x434381=_0x434381-0xaa;let _0x301d41=_0x599345[_0x434381];return _0x301d41;},a9_0x4343(_0x5d62d4,_0xd05cb9);}exports[a9_0x46b176(0x10c)]='grid',exports[a9_0x46b176(0xe2)]=a9_0x46b176(0xf2),exports['builder']=function(_0x433e4a){const _0xa9f93c=a9_0x46b176,_0x3b767d={};_0x3b767d[_0xa9f93c(0x1e9)]=_0xa9f93c(0x190),_0x3b767d['mbHdV']=_0xa9f93c(0x196),_0x3b767d[_0xa9f93c(0x1c7)]=_0xa9f93c(0x1b9),_0x3b767d[_0xa9f93c(0xf0)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3b767d[_0xa9f93c(0x149)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3b767d[_0xa9f93c(0xdf)]=_0xa9f93c(0x18d),_0x3b767d[_0xa9f93c(0xd2)]=_0xa9f93c(0x1b8),_0x3b767d[_0xa9f93c(0x170)]=_0xa9f93c(0x1b4),_0x3b767d[_0xa9f93c(0x1ee)]='boolean',_0x3b767d['xELZy']=_0xa9f93c(0xd6);const _0x4ed0ed=_0x3b767d,_0x37a28e={};_0x37a28e[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x1e9)],_0x37a28e[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x14f7d8={};_0x14f7d8['description']=_0x4ed0ed[_0xa9f93c(0x1c7)],_0x14f7d8['type']=_0x4ed0ed[_0xa9f93c(0x148)];const _0x158ff4={};_0x158ff4[_0xa9f93c(0x1c2)]=_0x4ed0ed['gQKVN'],_0x158ff4[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x634d7a={};_0x634d7a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x149)],_0x634d7a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x592767={};_0x592767[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xdf)],_0x592767[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x3c575a={};_0x3c575a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xd2)],_0x3c575a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x31c9e9={};_0x31c9e9[_0xa9f93c(0x1c2)]=_0x4ed0ed['aQqMb'],_0x31c9e9[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x1ee)],_0x31c9e9[_0xa9f93c(0x1b5)]=![];const _0x12b946={};return _0x12b946[_0xa9f93c(0x1e6)]=_0x37a28e,_0x12b946[_0xa9f93c(0x1ca)]=_0x14f7d8,_0x12b946['cluster-name']=_0x158ff4,_0x12b946['cloud-provider']=_0x634d7a,_0x12b946[_0xa9f93c(0x152)]=_0x592767,_0x12b946[_0xa9f93c(0x1ad)]=_0x3c575a,_0x12b946[_0xa9f93c(0x174)]=_0x31c9e9,_0x433e4a[_0xa9f93c(0x19f)](HELP_HEADER_MESSAGE[_0xa9f93c(0xea)])[_0xa9f93c(0xca)](HELP_FOOTER_MESSAGE)[_0xa9f93c(0x198)](_0x12b946)[_0xa9f93c(0xd6)](_0x4ed0ed[_0xa9f93c(0x1ac)])[_0xa9f93c(0xce)];},exports['handler']=async function(_0x1e646d){const _0x1eb15a=a9_0x46b176,_0x4e9ab7={'izYKj':_0x1eb15a(0x197),'KNLNw':_0x1eb15a(0xc0),'XcrqA':_0x1eb15a(0x1bd),'xMRKJ':_0x1eb15a(0x1d4),'SxeEA':'warn','lToLT':function(_0x5cedd5,_0x1c034f){return _0x5cedd5===_0x1c034f;},'tCnXV':'http','XXnTA':_0x1eb15a(0x190),'CSssk':_0x1eb15a(0x196),'ptNQZ':_0x1eb15a(0x1b9),'qnVOn':_0x1eb15a(0x17c),'zFvCu':_0x1eb15a(0xed),'pJFXa':_0x1eb15a(0x18d),'TVknx':_0x1eb15a(0x1b8),'gugKy':_0x1eb15a(0x1b4),'PTqqi':_0x1eb15a(0x161),'dXjmR':_0x1eb15a(0xd6),'trSnM':_0x1eb15a(0x1b3),'ReMFp':function(_0x1f8c1c,_0x185f93){return _0x1f8c1c!==_0x185f93;},'ORAbi':function(_0x4bcdd3,_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a){return _0x4bcdd3(_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a);},'mNlnu':function(_0x2ce0dd){return _0x2ce0dd();},'qBdzU':function(_0x19d77b){return _0x19d77b();},'eZfDC':function(_0x37d901,_0x53ef35){return _0x37d901===_0x53ef35;},'xSgWo':_0x1eb15a(0xb0),'UnjVI':_0x1eb15a(0x16c),'pAgsJ':function(_0x322a72,_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8){return _0x322a72(_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8);},'UFtVT':'create-grid-called','EsVOU':_0x1eb15a(0x184),'NafWy':function(_0x44e546,_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c){return _0x44e546(_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c);},'vyaws':_0x1eb15a(0xe6),'mNOff':'<PasswordPlaceholder>','Dveph':'Adding\x20Websocket\x20listeners','YjQtb':'NpAnv','AwNFa':_0x1eb15a(0xbc),'tLDGV':_0x1eb15a(0x15a),'IfEGn':function(_0x5a0f5e,_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da){return _0x5a0f5e(_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da);},'sPZwm':_0x1eb15a(0x134),'ENuHR':function(_0x2d0c08,_0x2ff38b){return _0x2d0c08!==_0x2ff38b;},'cIAGU':_0x1eb15a(0x17f),'Kpdlf':'VNPMn','MPHat':_0x1eb15a(0x187),'KKAAR':_0x1eb15a(0xc9),'gPBEK':function(_0x424c8e,_0x325eff){return _0x424c8e===_0x325eff;},'hoGZV':'true','msnaA':_0x1eb15a(0x123),'NurFa':_0x1eb15a(0xb2),'KbFSP':function(_0x52268c,_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec){return _0x52268c(_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec);},'ryvyJ':_0x1eb15a(0x1a1),'ZDaKM':'kREUQ','jrROE':function(_0x4125a5,_0x2df749){return _0x4125a5!==_0x2df749;},'SrxBH':_0x1eb15a(0x111),'jPVXC':function(_0x24b213,_0x137628){return _0x24b213===_0x137628;},'VwDIZ':'FStst','HWwcZ':_0x1eb15a(0x157),'wTenF':_0x1eb15a(0x1c9),'bxFBA':function(_0x41c63c,_0x52b5c3,_0x799a54){return _0x41c63c(_0x52b5c3,_0x799a54);},'tARWA':_0x1eb15a(0xd7),'yWglq':_0x1eb15a(0x12b),'AlkrF':function(_0x48d9c0,_0xb306ed){return _0x48d9c0===_0xb306ed;},'KGrjc':function(_0x58259c,_0x4cce14){return _0x58259c===_0x4cce14;},'uWsEr':_0x1eb15a(0x116),'YfdRT':_0x1eb15a(0xaf),'ryqMU':_0x1eb15a(0xc2),'Vzevk':_0x1eb15a(0x1c6),'vqIyB':function(_0x23a8ce,_0x2f8cd7){return _0x23a8ce!==_0x2f8cd7;},'zbzfW':'EuIRv','dvwya':_0x1eb15a(0x1e8),'iusGY':_0x1eb15a(0x1d8),'FJXem':function(_0x2cd472,_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c){return _0x2cd472(_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c);},'Askyt':'create-grid-checks-auth-failed','DJzgL':function(_0x31f3bd,_0x4657ef){return _0x31f3bd!==_0x4657ef;},'xCfiS':_0x1eb15a(0xcf),'ccWSr':_0x1eb15a(0x114),'ViuGq':_0x1eb15a(0x121),'fZiZV':_0x1eb15a(0x1bf),'bNTaf':'EUoPx','ZFCzR':_0x1eb15a(0x150),'xrYWH':'create-grid-checks-grid-already-exists','fXqzL':function(_0x517267,_0x560d7f){return _0x517267===_0x560d7f;},'tUwTf':_0x1eb15a(0x13e),'EpKhD':_0x1eb15a(0x1db),'ACmFf':function(_0x51b6d6,_0x57b3e6){return _0x51b6d6===_0x57b3e6;},'yqZkr':function(_0x56c4b7,_0x48c8fc){return _0x56c4b7!==_0x48c8fc;},'xoZLV':_0x1eb15a(0x1c8),'JbVsb':function(_0x3ea28d,_0x56921c){return _0x3ea28d===_0x56921c;},'SkUWq':_0x1eb15a(0x1dc),'QVlZS':_0x1eb15a(0x1cc),'nacGf':function(_0x2bf68e,_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82){return _0x2bf68e(_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82);},'VSXol':'create-grid-checks-invalid-profile','fjHQv':function(_0x54f245,_0x32bb2f){return _0x54f245!==_0x32bb2f;},'uIGnC':'DCYCo','MvXjN':function(_0x1e2703,_0x46b7f7){return _0x1e2703===_0x46b7f7;},'edKUo':function(_0x5e9aed,_0xb64ace){return _0x5e9aed!==_0xb64ace;},'IkphZ':'WqdOU','DQSDl':_0x1eb15a(0x18a),'bPZSB':function(_0x50bf76,_0x138997){return _0x50bf76!==_0x138997;},'uBNMV':function(_0x10a000,_0x595b48){return _0x10a000!==_0x595b48;},'VtOVx':_0x1eb15a(0x18e),'dGuwY':function(_0x44a596,_0x3c8018){return _0x44a596===_0x3c8018;},'RSMbh':_0x1eb15a(0x19e),'uIEYT':_0x1eb15a(0x14d),'nUIRh':function(_0x1dbeb6,_0x51dd73){return _0x1dbeb6!==_0x51dd73;},'wWcnG':_0x1eb15a(0x10d),'OVnmh':function(_0x2b509,_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea){return _0x2b509(_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea);},'cBjOE':'axfPa','bLsIE':_0x1eb15a(0x188),'GaASA':'6|5|8|0|3|1|2|7|4','oTIdc':function(_0x306d28,_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb){return _0x306d28(_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb);},'yrbQP':function(_0x4ce4f0,_0x39883f){return _0x4ce4f0===_0x39883f;},'dXThF':_0x1eb15a(0x1d7),'FqeBS':function(_0x40fbe0,_0x286158){return _0x40fbe0!=_0x286158;},'qXeZu':function(_0x42208f,_0x4131ee){return _0x42208f!=_0x4131ee;},'wGCms':function(_0x55abd8,_0x5e8314){return _0x55abd8>_0x5e8314;},'LTObL':_0x1eb15a(0x115),'rAkEi':function(_0x3c0689,_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be){return _0x3c0689(_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be);},'pgbED':_0x1eb15a(0x143),'Rsvwm':function(_0x472fe3,_0x33ab69){return _0x472fe3===_0x33ab69;},'yjxQq':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','cZNav':function(_0x45a563,_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401){return _0x45a563(_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401);},'uBdIs':'pre-spawned-invalid-vpc','iviOP':function(_0x1e254a,_0x335b36){return _0x1e254a===_0x335b36;},'tKZvF':function(_0x4b96b3,_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587){return _0x4b96b3(_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587);},'kuqAP':_0x1eb15a(0xfb),'DkumJ':'3|2|1|0|4','JmgKJ':'Cluster\x20created\x20successfully','NWHOQ':'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.','cIzRZ':function(_0xdaeb6c,_0x3e04b7,_0x14ff55){return _0xdaeb6c(_0x3e04b7,_0x14ff55);},'UMhbr':function(_0x79aca,_0x42e9a5){return _0x79aca===_0x42e9a5;},'VpCtz':function(_0x16636c,_0xde38e6){return _0x16636c(_0xde38e6);},'RoVmQ':_0x1eb15a(0xc4),'xaJDh':function(_0x6aa91e,_0x2694cb){return _0x6aa91e!==_0x2694cb;},'GSCBJ':_0x1eb15a(0x1b5),'GRFKZ':_0x1eb15a(0x1a0),'UvIUc':'Namespace\x20Created','QKjHm':_0x1eb15a(0x1ba),'LbBuo':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','WJEEq':'Spawning\x20Grid\x20on\x20the\x20Cluster','eqrvh':function(_0x28bcdd,_0x48c217){return _0x28bcdd===_0x48c217;},'YqBoF':function(_0x47bb2c,_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a){return _0x47bb2c(_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a);},'bstyD':_0x1eb15a(0x10e),'IxgRX':_0x1eb15a(0xbd),'kRIyC':function(_0x1cf01d,_0x56cc12,_0x7f779e,_0x473325,_0x17c88e){return _0x1cf01d(_0x56cc12,_0x7f779e,_0x473325,_0x17c88e);},'zrYJa':_0x1eb15a(0xb1),'TPNEx':'ingress-nginx-controller','PmdaC':_0x1eb15a(0x108),'YvDEB':function(_0x5b5dce,_0x4c80e7){return _0x5b5dce===_0x4c80e7;},'EiApa':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','EXcCh':function(_0x23d03c,_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513){return _0x23d03c(_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513);},'bxTxy':_0x1eb15a(0x1e7),'qYEDN':_0x1eb15a(0x130),'coLvU':function(_0x3035c8,_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98){return _0x3035c8(_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98);},'aneuG':_0x1eb15a(0x13f),'kyBAY':function(_0x222f10,_0x4d5ced){return _0x222f10!==_0x4d5ced;},'dmDvB':_0x1eb15a(0xb8),'SwaOc':_0x1eb15a(0x18f),'LgLqu':function(_0x513ea9,_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0){return _0x513ea9(_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0);},'ISzzb':function(_0x499116,_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16){return _0x499116(_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16);},'nkfDE':'grid-spawning-failed'};let _0x38d54d=![],_0x30ca7b=![],_0x45da56,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x3c7e12,_0xd6f39,_0x12d00d,_0x6e7eae,_0x3dea52,_0x502ccc,_0x3da2f5,_0xbef3c2,_0x5c251e=0x1,_0x4d9d6b=0xe;try{global_registry['requestId']=_0x4e9ab7[_0x1eb15a(0x1bb)](uuidv4),global_registry[_0x1eb15a(0x106)]=![];!fs['existsSync'](_0x4e9ab7[_0x1eb15a(0x179)](getCredentialsPath))&&(_0x4e9ab7['eZfDC'](_0x4e9ab7[_0x1eb15a(0x11e)],_0x4e9ab7[_0x1eb15a(0x11e)])?(console[_0x1eb15a(0x197)](_0x4e9ab7['UnjVI']),await _0x4e9ab7[_0x1eb15a(0x185)](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x12f)],null,_0x1e646d),process['exit'](0x1)):_0x381634[_0x1eb15a(0x106)]=!![]);await _0x4e9ab7['NafWy'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x17b)],null,null,_0x1e646d);const _0x28cd26=JSON[_0x1eb15a(0xab)](fs[_0x1eb15a(0x1dd)](_0x4e9ab7[_0x1eb15a(0x1bb)](getCredentialsPath)));global_registry[_0x1eb15a(0xf6)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],global_registry[_0x1eb15a(0x129)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)];const _0x2609d9=WS_ENDPOINT[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x165)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)])[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x186)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),_0x33c6a1={};_0x33c6a1[_0x1eb15a(0x11a)]=ws,_0x33c6a1[_0x1eb15a(0xcb)]=0x36ee80,_0x502ccc=new ReconnectingWebSocket(_0x2609d9,[],_0x33c6a1),logger['debug'](_0x4e9ab7['Dveph']),webSocketUtils['addListeners'](_0x502ccc,_0x1e646d[_0x1eb15a(0x1d1)],_0x1e646d[_0x1eb15a(0x169)]);const _0x421e22=_0x1e646d['gridName']||DEFAULT_GRID_NAME;if(_0x1e646d[_0x1eb15a(0x1ce)]||_0x1e646d[_0x1eb15a(0xc8)]||_0x1e646d['region']){if(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1c1)],_0x4e9ab7[_0x1eb15a(0x1c1)]))_0x213004[_0x1eb15a(0x14e)](_0x1eb15a(0x107)+_0x10da4b[_0x1eb15a(0x125)](_0x41c6b2)+'\x20');else{if(!(_0x1e646d[_0x1eb15a(0x1ce)]&&_0x1e646d[_0x1eb15a(0xc8)]&&_0x1e646d[_0x1eb15a(0x152)])){if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x4e9ab7[_0x1eb15a(0x19d)],_0x4e9ab7['AwNFa']))_0x45da56=_0x4e9ab7['tLDGV'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x104)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1);else throw new _0x237944(_0x1eb15a(0x1f1)+_0x47f49f+_0x1eb15a(0x120));}![AWS,AZURE,GCP]['includes'](_0x1e646d[_0x1eb15a(0xc8)]['toLowerCase']())&&(_0x4e9ab7[_0x1eb15a(0x1cb)](_0x4e9ab7[_0x1eb15a(0x14c)],_0x4e9ab7[_0x1eb15a(0xe3)])?(_0x45da56=_0x4e9ab7['MPHat'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['KKAAR'],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x4d22c5[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x552a96[_0x1eb15a(0x1ce)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x1c0f45=![],_0x201f26=!![]));_0x1e646d[_0x1eb15a(0x181)]&&_0x4e9ab7[_0x1eb15a(0x119)](_0x1e646d[_0x1eb15a(0x181)][_0x1eb15a(0xf3)](),_0x4e9ab7[_0x1eb15a(0x1d0)])&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1d6)],_0x4e9ab7['NurFa'])?global_registry[_0x1eb15a(0x106)]=!![]:_0x4282f0['isPrivateGrid']=!![]);global_registry[_0x1eb15a(0xc8)]=_0x1e646d['cloudProvider'],global_registry['clusterRegion']=_0x1e646d['region'],global_registry[_0x1eb15a(0x1ce)]=_0x1e646d[_0x1eb15a(0x1ce)];const _0x4f084a=await _0x4e9ab7[_0x1eb15a(0x151)](getCloudProviderObject,_0x1e646d[_0x1eb15a(0xc8)],_0x1e646d['clusterName'],_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d),_0x65da63=await _0x4f084a[_0x1eb15a(0x135)]();if(!_0x65da63)_0x4e9ab7['ReMFp'](_0x4e9ab7[_0x1eb15a(0x13c)],_0x4e9ab7[_0x1eb15a(0xae)])?(logger[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x1e646d['clusterName']+_0x1eb15a(0x178)),_0x38d54d=![],_0x30ca7b=!![]):_0x19b043=_0x31604b[_0x22e799['gridProfile']];else{if(_0x4e9ab7[_0x1eb15a(0x1df)](_0x4e9ab7[_0x1eb15a(0x145)],_0x4e9ab7[_0x1eb15a(0x145)])){const _0x2e3670={};_0x2e3670[_0x1eb15a(0x11c)]=_0x4e0ac5[_0x1eb15a(0x10f)],_0x2e3670[_0x1eb15a(0x158)]=_0x49adc4,_0x456201['sendEventToBackend'](_0x13964a,_0x2e3670,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}else _0x38d54d=!![];}_0x4dd671=_0x1e646d['clusterName'],_0x1fbbfb=_0x1e646d['cloudProvider'][_0x1eb15a(0xf3)](),_0x386c66=_0x1e646d[_0x1eb15a(0x152)];}}else _0x1e646d[_0x1eb15a(0x1d5)]&&(_0x4e9ab7[_0x1eb15a(0x18c)](_0x4e9ab7[_0x1eb15a(0x17a)],_0x4e9ab7[_0x1eb15a(0xb3)])?_0x4351d9=null:global_registry[_0x1eb15a(0x1d5)]=_0x1e646d[_0x1eb15a(0x1d5)]);global_registry[_0x1eb15a(0x189)]=_0x1e646d['gridName'];const _0x28b9b4={'method':_0x4e9ab7[_0x1eb15a(0x11f)],'headers':_0x4e9ab7[_0x1eb15a(0xbf)](getAuthHeader,_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),'throwHttpErrors':![]},_0x2a9c10={};_0x2a9c10['gridName']=_0x421e22;const _0x59ff85=_0x2a9c10;if(_0x30ca7b){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x12c)],_0x4e9ab7[_0x1eb15a(0x1b1)])){const _0x45babd=_0x4e9ab7[_0x1eb15a(0x1f3)]['split']('|');let _0x3ef62d=0x0;while(!![]){switch(_0x45babd[_0x3ef62d++]){case'0':_0x4e3828['clusterRegion']=_0x9f0458;continue;case'1':_0xd7088c[_0x1eb15a(0x1ce)]=_0x44f5ee;continue;case'2':_0x5efaf0[_0x1eb15a(0xc8)]=_0x4b9e57;continue;case'3':_0x59877f[_0x1eb15a(0x1a8)]=_0x20917d['hubVersion'];continue;case'4':_0x27a07e['browserVersion']=_0xdfa615['browserVersion'];continue;case'5':_0x4ad48b=_0x1eb15a(0x1c4)+_0x585e09+_0x1eb15a(0x128)+_0x5f413f+'\x27';continue;case'6':const _0x418aa4={};_0x418aa4[_0x1eb15a(0x11c)]=_0x4558a4[_0x1eb15a(0x10f)],_0x418aa4[_0x1eb15a(0x158)]=_0x18e42b,_0x3107ff['sendEventToBackend'](_0x41f2aa,_0x418aa4);continue;case'7':_0x52156c[_0x1eb15a(0x14e)](_0x4aec24);continue;case'8':const _0x12fec0={};_0x12fec0[_0x1eb15a(0x11c)]=_0x2b5905[_0x1eb15a(0xdd)],_0x12fec0[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],_0x36a461[_0x1eb15a(0x100)](_0x194477,_0x12fec0);continue;}break;}}else _0x59ff85['region']=_0x386c66,_0x59ff85[_0x1eb15a(0xc8)]=_0x1fbbfb,_0x59ff85['newCluster']=!![];}const _0x6c45bd='https://'+AG_API_URL+_0x1eb15a(0x12d),_0x2cf8e4={'searchParams':_0x59ff85,'throwHttpErrors':![],..._0x28b9b4},_0x53e889=_0x2cf8e4,_0x260988=await _0x4e9ab7[_0x1eb15a(0xbf)](got,_0x6c45bd,_0x53e889);(_0x4e9ab7[_0x1eb15a(0xac)](_0x260988,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x260988,undefined))&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0xe7)],_0x4e9ab7[_0x1eb15a(0xaa)])?(_0x45da56=_0x4e9ab7['ryqMU'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7['Vzevk'],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x2bb132=_0x46d7ec[_0x1eb15a(0x15b)],_0x305e4a=_0x4e9ab7[_0x1eb15a(0x118)]));_0x4e9ab7[_0x1eb15a(0x1eb)](_0x260988[_0x1eb15a(0x1ae)],0x191)&&(_0x4e9ab7[_0x1eb15a(0x15d)](_0x4e9ab7['zbzfW'],_0x4e9ab7['dvwya'])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfd)],await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['Askyt'],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1)):_0x470165=null);if(_0x4e9ab7[_0x1eb15a(0x155)](_0x260988['statusCode'],0xc8)){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x10a)],_0x4e9ab7[_0x1eb15a(0xf4)])){const _0x572a49={};_0x572a49[_0x1eb15a(0x11c)]=_0x92c68d[_0x1eb15a(0x10f)],_0x572a49['message']='Cluster\x20'+_0x8462bd+_0x1eb15a(0x1aa),_0x368ef6[_0x1eb15a(0x100)](_0x200059,_0x572a49,_0x4e9ab7[_0x1eb15a(0x1bc)]),_0x4cb63d[_0x1eb15a(0x14e)]('Cluster\x20'+_0x3ddf02+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xa93c64=!![];if(_0x4e9ab7[_0x1eb15a(0xe8)](_0xdd030,!![]))throw new _0x3a16c5(_0x1eb15a(0x1f1)+_0x12d07a+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else _0x45da56='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1eb15a(0x125)](_0x260988[_0x1eb15a(0x159)]),await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c5)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1);}const _0x5c6778=JSON[_0x1eb15a(0xab)](_0x260988[_0x1eb15a(0x159)]),_0x125bb5={};_0x125bb5[_0x1eb15a(0x11c)]=WS_EVENTS['CLI_RUN_STARTED'],_0x125bb5[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x125bb5);const _0xbc9e88={};_0xbc9e88[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0xbc9e88[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xf8)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0xbc9e88);_0x5c6778[_0x1eb15a(0x1b7)]&&(_0x4e9ab7['ENuHR'](_0x4e9ab7[_0x1eb15a(0x126)],_0x4e9ab7['ZFCzR'])?(_0x45da56='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x421e22+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1da)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):_0x469481=_0x4e9ab7['tCnXV']);const _0x2e3ed0=_0x5c6778['gridProfiles'];let _0x204fb5=_0x2e3ed0[_0x5c6778[_0x1eb15a(0x1e3)]];if(_0x1e646d[_0x1eb15a(0x1d5)]){if(_0x4e9ab7['fXqzL'](_0x4e9ab7[_0x1eb15a(0x11b)],_0x4e9ab7['EpKhD'])){const _0x3ce5fe={};_0x3ce5fe[_0x1eb15a(0x1c2)]=_0x4e9ab7['XXnTA'],_0x3ce5fe[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x5f181b={};_0x5f181b[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x11d)],_0x5f181b[_0x1eb15a(0x11c)]=_0x4e9ab7['CSssk'];const _0x4a7915={};_0x4a7915[_0x1eb15a(0x1c2)]=_0x4e9ab7['qnVOn'],_0x4a7915[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x176bbf={};_0x176bbf[_0x1eb15a(0x1c2)]=_0x4e9ab7['zFvCu'],_0x176bbf[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x8c4f96={};_0x8c4f96['description']=_0x4e9ab7['pJFXa'],_0x8c4f96['type']=_0x4e9ab7['CSssk'];const _0x47df57={};_0x47df57[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0xd5)],_0x47df57['type']=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x2fc92c={};_0x2fc92c[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x131)],_0x2fc92c[_0x1eb15a(0x11c)]=_0x4e9ab7['PTqqi'],_0x2fc92c[_0x1eb15a(0x1b5)]=![];const _0x2d0b3a={};return _0x2d0b3a['grid-name']=_0x3ce5fe,_0x2d0b3a[_0x1eb15a(0x1ca)]=_0x5f181b,_0x2d0b3a[_0x1eb15a(0x102)]=_0x4a7915,_0x2d0b3a['cloud-provider']=_0x176bbf,_0x2d0b3a[_0x1eb15a(0x152)]=_0x8c4f96,_0x2d0b3a['private-grid']=_0x47df57,_0x2d0b3a[_0x1eb15a(0x174)]=_0x2fc92c,_0x2a5c80[_0x1eb15a(0x19f)](_0x4dbd8d[_0x1eb15a(0xea)])[_0x1eb15a(0xca)](_0x2a52d1)[_0x1eb15a(0x198)](_0x2d0b3a)[_0x1eb15a(0xd6)](_0x4e9ab7[_0x1eb15a(0x122)])[_0x1eb15a(0xce)];}else _0x204fb5=_0x2e3ed0[_0x1e646d['gridProfile']];}if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0x176)](_0x30ca7b,![])){if(_0x4e9ab7[_0x1eb15a(0x160)](_0x4e9ab7[_0x1eb15a(0x1cf)],_0x4e9ab7['xoZLV']))_0x14952e[_0x1eb15a(0x152)]=_0x456bff,_0x46c45a['cloudProvider']=_0xbfed4f,_0x101cfb[_0x1eb15a(0x175)]=!![];else{_0x4e9ab7[_0x1eb15a(0xcc)](_0x204fb5,undefined)&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x112)],_0x4e9ab7[_0x1eb15a(0x112)])?_0x566453[_0x1eb15a(0x106)]=!![]:(_0x45da56=_0x4e9ab7[_0x1eb15a(0x153)],await _0x4e9ab7[_0x1eb15a(0x141)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0xf9)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1)));global_registry[_0x1eb15a(0x15e)]=_0x204fb5['id'],_0x45da56='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x421e22+_0x1eb15a(0xef)+_0x204fb5[_0x1eb15a(0x14b)]+_0x1eb15a(0x1d2),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x12cd1c={};_0x12cd1c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x12cd1c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x12cd1c),_0x1fbbfb=_0x204fb5[_0x1eb15a(0xc8)],_0x4dd671=_0x204fb5[_0x1eb15a(0x1ce)],_0x386c66=_0x204fb5[_0x1eb15a(0x152)],_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=_0x204fb5[_0x1eb15a(0xf5)],_0xd6f39=_0x204fb5['securityGroups'],_0x12d00d=_0x204fb5[_0x1eb15a(0x199)],_0x6e7eae=_0x204fb5['s3bucket'],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x3c7e12&&_0x4e9ab7[_0x1eb15a(0xff)](_0x3c7e12[_0x1eb15a(0x1af)],0x0)&&(_0x4e9ab7[_0x1eb15a(0x136)](_0x4e9ab7['uIGnC'],_0x4e9ab7[_0x1eb15a(0x117)])?_0x545223['info']('Found\x20VPC:\x20'+_0x19abb6+'\x20'):_0x3c7e12=null),_0x12d00d&&_0x4e9ab7['MvXjN'](_0x12d00d['length'],0x0)&&(_0x4e9ab7[_0x1eb15a(0xe1)](_0x4e9ab7['IkphZ'],_0x4e9ab7[_0x1eb15a(0x1cd)])?_0x12d00d=null:_0x2abf26=!![]),_0x4e9ab7[_0x1eb15a(0x1f4)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7[_0x1eb15a(0xc5)](_0x4e9ab7[_0x1eb15a(0x1a2)],_0x4e9ab7[_0x1eb15a(0x1a2)])?_0xe6d78d[_0x1eb15a(0x164)]():global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x12a)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xff)](_0x30ca7b,!![])){if(_0x4e9ab7[_0x1eb15a(0x144)](_0x4e9ab7[_0x1eb15a(0x15f)],_0x4e9ab7['uIEYT']))_0x20832a['gridProfile']=_0x5a2a37[_0x1eb15a(0x1d5)];else{_0x45da56=_0x1eb15a(0xb6)+_0x421e22,logger['info'](_0x45da56);const _0x1455a3={};_0x1455a3['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0x1455a3['message']=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1455a3),_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=null,_0xd6f39=null,_0x12d00d=null,_0x6e7eae=_0x204fb5[_0x1eb15a(0x172)],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x4e9ab7[_0x1eb15a(0x136)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7['nUIRh'](_0x4e9ab7['wWcnG'],_0x4e9ab7['wWcnG'])?_0x4d1bd1[_0x1eb15a(0x197)](_0x1eb15a(0x1a3)+_0x5e7ff9+'\x20\x0a'+_0x228bac['stringify'](_0x49043a[_0x1eb15a(0x1d9)])):global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x177)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xe8)](_0x4e9ab7[_0x1eb15a(0x15c)],_0x4e9ab7['bLsIE'])){const _0xf3cab2=_0x4e9ab7['trSnM']['split']('|');let _0x11bf7b=0x0;while(!![]){switch(_0xf3cab2[_0x11bf7b++]){case'0':_0x1e4f5b=_0x169fb7[_0x1eb15a(0x1a6)];continue;case'1':_0x32c880['info'](_0x32e804);continue;case'2':_0x5f1a47=_0x1eb15a(0xb6)+_0x5a30d6;continue;case'3':const _0x4843cc={};_0x4843cc[_0x1eb15a(0x11c)]=_0x366e11[_0x1eb15a(0x10f)],_0x4843cc[_0x1eb15a(0x158)]=_0x335a08,_0x362884[_0x1eb15a(0x100)](_0x1b3a58,_0x4843cc);continue;case'4':_0x51a51e=_0x2d225e[_0x1eb15a(0xeb)];continue;case'5':_0x176dbf=_0x5bd08c[_0x1eb15a(0x105)];continue;case'6':_0x4e9ab7[_0x1eb15a(0x109)](_0xe37171[_0x1eb15a(0x181)],_0x18d905)&&_0x899bbc[_0x1eb15a(0x181)]&&(_0x20fc7a[_0x1eb15a(0x106)]=!![]);continue;case'7':_0x4e9ab7[_0x1eb15a(0x12a)](_0x4a333c,_0x3f7dae,_0x5cfd14,_0x2ab831,_0xb0717,_0x53a783,_0x6248de,_0x4adbcb,_0x510d52,_0x1886aa,_0xee38f3,_0x101592);continue;case'8':_0x281635=null;continue;case'9':_0xd4ede2=_0x4149f6[_0x1eb15a(0xad)];continue;case'10':_0x4b828c=null;continue;case'11':_0x2073c6=_0x2ecc3b[_0x1eb15a(0x1a8)];continue;case'12':_0x36e633=null;continue;case'13':_0x527bfe=_0x4518f5[_0x1eb15a(0x172)];continue;case'14':_0xb156a3=_0x1ac28c[_0x1eb15a(0x140)];continue;}break;}}else{const _0x5a9beb=_0x4e9ab7['GaASA'][_0x1eb15a(0x142)]('|');let _0x722407=0x0;while(!![]){switch(_0x5a9beb[_0x722407++]){case'0':const _0x621f92={};_0x621f92[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x621f92[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x621f92);continue;case'1':global_registry[_0x1eb15a(0x17e)]=_0x386c66;continue;case'2':global_registry[_0x1eb15a(0x1ce)]=_0x4dd671;continue;case'3':global_registry[_0x1eb15a(0xc8)]=_0x1fbbfb;continue;case'4':global_registry['browserVersion']=_0x5c6778['browserVersion'];continue;case'5':_0x45da56=_0x1eb15a(0x1c4)+_0x421e22+_0x1eb15a(0x128)+_0x4dd671+'\x27';continue;case'6':const _0x7df28={};_0x7df28[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0xdd)],_0x7df28[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x7df28);continue;case'7':global_registry[_0x1eb15a(0x1a8)]=_0x5c6778[_0x1eb15a(0x1a8)];continue;case'8':logger[_0x1eb15a(0x14e)](_0x45da56);continue;}break;}}}}const _0x136799=await _0x4e9ab7[_0x1eb15a(0x168)](getCloudProviderObject,_0x1fbbfb,_0x4dd671,_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d);_0x4e9ab7[_0x1eb15a(0x1df)](_0x1fbbfb,AZURE)&&_0x136799[_0x1eb15a(0x164)]();let _0x4b92b;if(_0x4e9ab7[_0x1eb15a(0xda)](_0x38d54d,![])){_0x45da56=_0x1eb15a(0xc7)+_0x386c66+').';const _0xcfcbe9={};_0xcfcbe9[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xcfcbe9[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0xcfcbe9),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x523fa6=await _0x136799[_0x1eb15a(0x135)]();if(_0x523fa6){const _0x1f41eb={};_0x1f41eb[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x1f41eb[_0x1eb15a(0x158)]='Cluster\x20'+_0x4dd671+_0x1eb15a(0x1aa),webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1f41eb,_0x4e9ab7[_0x1eb15a(0x1bc)]),logger['info'](_0x1eb15a(0x1f1)+_0x4dd671+_0x1eb15a(0x1aa)),_0x38d54d=!![];if(_0x4e9ab7[_0x1eb15a(0x1f5)](_0x30ca7b,!![]))throw new Error('Cluster\x20'+_0x4dd671+_0x1eb15a(0x120));}else{const _0x3ba1b5={};_0x3ba1b5[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3ba1b5['message']=_0x4e9ab7[_0x1eb15a(0xdb)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x3ba1b5),logger['info'](_0x4e9ab7['dXThF']);const _0xad6cd9=_0x4e9ab7[_0x1eb15a(0xb9)](_0x3c7e12,null)&&_0x4e9ab7['edKUo'](_0x3c7e12,undefined),_0x2b643e=_0x4e9ab7[_0x1eb15a(0x13d)](_0x12d00d,null)&&_0x4e9ab7[_0x1eb15a(0x1d3)](_0x12d00d,undefined)&&_0x4e9ab7['wGCms'](_0x12d00d[_0x1eb15a(0x1af)],0x0);if(_0xad6cd9){_0x4e9ab7[_0x1eb15a(0xac)](_0x2b643e,![])&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x154)],await _0x4e9ab7[_0x1eb15a(0x1ec)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0x180)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1));const _0x458804=await _0x136799['isVPCPresent'](_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x10b)](_0x458804,![])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfe)],await _0x4e9ab7['cZNav'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x182)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):logger[_0x1eb15a(0x14e)]('Found\x20VPC:\x20'+_0x3c7e12+'\x20');const _0x5e3692=await _0x136799[_0x1eb15a(0x19a)](_0x12d00d,_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x1e4)](_0x5e3692[0x0],![])?(_0x45da56=_0x1eb15a(0x124)+JSON['stringify'](_0x5e3692[0x1])+_0x1eb15a(0x183)+_0x3c7e12+_0x1eb15a(0x1b6),await _0x4e9ab7[_0x1eb15a(0xb4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c3)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](_0x12d00d)+'\x20'),await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);}else{const _0x69ecd3=_0x4e9ab7[_0x1eb15a(0xc6)][_0x1eb15a(0x142)]('|');let _0x517e35=0x0;while(!![]){switch(_0x69ecd3[_0x517e35++]){case'0':const _0x2832a7={};_0x2832a7[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2832a7[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x139)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2832a7);continue;case'1':await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);continue;case'2':logger[_0x1eb15a(0x14e)](_0x4e9ab7['NWHOQ']);continue;case'3':const _0x506f70={};_0x506f70[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x506f70[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x195)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x506f70);continue;case'4':logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x139)]);continue;}break;}}}}_0x38d54d&&_0x4e9ab7[_0x1eb15a(0xe0)](_0x1fbbfb,AZURE)&&(await _0x136799[_0x1eb15a(0xd4)](),await _0x136799[_0x1eb15a(0x110)]());const [_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x39b946,_0x3abcea]=await _0x4e9ab7[_0x1eb15a(0x1a4)](createK8sClient,_0x136799,_0x1e646d[_0x1eb15a(0x18b)]);_0x4e9ab7[_0x1eb15a(0x119)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0xbe)](_0x1fbbfb,AWS)&&(global_registry[_0x1eb15a(0x191)]=!![],_0x4b92b=await _0x136799[_0x1eb15a(0x137)](_0x51b6da,_0x1e646d));try{_0x3dea52=_0x4e9ab7[_0x1eb15a(0x127)](kebabCase,_0x421e22),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x173)]);const _0x4c074c={};_0x4c074c[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x4c074c[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x173)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x4c074c);if(_0x4e9ab7[_0x1eb15a(0xc1)](_0x3dea52,_0x4e9ab7[_0x1eb15a(0x1f0)])){const _0x4add87={};_0x4add87['createdBy']=_0x4e9ab7[_0x1eb15a(0xf7)],_0x4add87[_0x1eb15a(0xdc)]=_0x4e9ab7[_0x1eb15a(0xf7)];const _0x564fc3={};_0x564fc3[_0x1eb15a(0x14b)]=_0x3dea52,_0x564fc3[_0x1eb15a(0x193)]=_0x4add87;const _0x3fb259={};_0x3fb259['metadata']=_0x564fc3;const _0x504909=_0x3fb259,_0xdfff54={};_0xdfff54[_0x1eb15a(0x159)]=_0x504909,await _0x51b6da['createNamespace'](_0xdfff54),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x16a)]);}const _0x2a648d={};_0x2a648d[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2a648d[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xba)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2a648d);const _0xf4c0ae={};_0xf4c0ae['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0xf4c0ae[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xb5)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xf4c0ae),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x1a9)]);let _0x42b287={};_0x4e9ab7[_0x1eb15a(0x1a7)](_0x1fbbfb,AZURE)&&(_0x42b287={'clientId':await _0x136799[_0x1eb15a(0x1b2)]('turboscale-managed-identity-'+_0x4dd671)});await _0x4e9ab7[_0x1eb15a(0xde)](addGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52,_0x4dd671,_0x4b92b,_0x39b946,_0x3abcea,_0x42b287),_0x45da56=_0x4e9ab7[_0x1eb15a(0x103)],logger['info'](_0x45da56);const _0x91c01b={};_0x91c01b[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x91c01b[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x91c01b),_0x45da56=_0x4e9ab7[_0x1eb15a(0x132)],logger[_0x1eb15a(0x14e)](_0x45da56);const _0x5027ef={};_0x5027ef[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x5027ef[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0x5027ef),await _0x4e9ab7[_0x1eb15a(0x1be)](waitForDeployment,_0x24bead,_0x3dea52,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x2f22c0=await _0x4e9ab7[_0x1eb15a(0x1a4)](getNamespaceUID,_0x51b6da,_0x3dea52),_0x8c0045=global_registry[_0x1eb15a(0x106)]?_0x4e9ab7[_0x1eb15a(0x1e0)]:_0x4e9ab7['TPNEx'],_0xdc65f2={};_0xdc65f2[_0x1eb15a(0x14b)]=_0x8c0045,_0xdc65f2[_0x1eb15a(0x156)]=_0x4e9ab7[_0x1eb15a(0x14f)];const _0x1ab2e6=await _0x51b6da[_0x1eb15a(0xbb)](_0xdc65f2);let _0x413f09=_0x136799['getGridHostname'](_0x1ab2e6)+'/'+_0x3dea52,_0x3dc2d7=_0x4e9ab7[_0x1eb15a(0xb7)];try{const _0x19b0ae=_0x1eb15a(0x1e5)+AG_API_URL+_0x1eb15a(0xf1)+_0x2f22c0,_0x169df3=await _0x4e9ab7['bxFBA'](got,_0x19b0ae,_0x28b9b4);(_0x4e9ab7['YvDEB'](_0x169df3,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x169df3,undefined))&&(_0x45da56=_0x4e9ab7['EiApa'],await _0x4e9ab7['EXcCh'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xd8)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0xe8)](_0x169df3[_0x1eb15a(0x1ae)],0x191)&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x1c0)],await _0x4e9ab7[_0x1eb15a(0x192)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x13b)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0x1ea)](_0x169df3['statusCode'],0xc8)&&(_0x45da56=_0x1eb15a(0x19c)+JSON[_0x1eb15a(0x125)](_0x169df3),await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xcd)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1));const _0x38865a=JSON[_0x1eb15a(0xab)](_0x169df3[_0x1eb15a(0x159)]);_0x38865a[_0x1eb15a(0x15b)]&&(_0x413f09=_0x38865a[_0x1eb15a(0x15b)],_0x3dc2d7=_0x4e9ab7['xMRKJ']),global_registry['isPrivateGrid']&&(_0x3dc2d7=_0x4e9ab7['tCnXV']);}catch(_0x596067){}_0x45da56=_0x1eb15a(0x1de)+_0x413f09+'\x20',logger['info'](_0x45da56);const _0x39a864={};_0x39a864[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x39a864[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x39a864),_0x45da56='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x3dc2d7+_0x1eb15a(0x17d)+_0x413f09+_0x1eb15a(0xd3),logger[_0x1eb15a(0x14e)](_0x45da56);const _0xc1fe6c={};_0xc1fe6c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xc1fe6c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xc1fe6c);const _0x2f390f={};_0x2f390f[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x101)],_0x2f390f['message']=_0x1eb15a(0xd9)+_0x413f09,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2f390f),await webSocketUtils[_0x1eb15a(0x146)](0x7d0);}catch(_0x2c28b5){logger[_0x1eb15a(0x197)](_0x1eb15a(0xec)+_0x2c28b5+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x2c28b5[_0x1eb15a(0x1d9)]));if(_0x4e9ab7[_0x1eb15a(0x1e1)](_0x38d54d,![]))try{logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0xee)]),await _0x4e9ab7[_0x1eb15a(0x171)](removeGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52),await _0x136799[_0x1eb15a(0x1ed)](_0x51b6da,global_registry[_0x1eb15a(0x17e)]);}catch(_0x45ef40){logger[_0x1eb15a(0x197)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x45ef40+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x45ef40[_0x1eb15a(0x1d9)]));}throw _0x2c28b5;}}catch(_0x1bec1f){const _0xb905c6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1bec1f+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x1bec1f['stack']);if(_0x502ccc){const _0x3a8454={};_0x3a8454[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3a8454[_0x1eb15a(0x158)]=_0xb905c6,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x3a8454,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}await webSocketUtils[_0x1eb15a(0x146)](0x7d0);const _0x2cf676={};_0x2cf676[_0x1eb15a(0x197)]=_0xb905c6,await _0x4e9ab7['ISzzb'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1f2)],_0x2cf676,_0x1e646d),logger['error'](_0xb905c6);}process[_0x1eb15a(0xe5)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x46bf7e=a10_0x50f6;function a10_0x50f6(_0x2132c2,_0x2e7797){const _0x44f24a=a10_0x44f2();return a10_0x50f6=function(_0x50f635,_0x62377f){_0x50f635=_0x50f635-0x105;let _0x1266b7=_0x44f24a[_0x50f635];return _0x1266b7;},a10_0x50f6(_0x2132c2,_0x2e7797);}(function(_0x2e452b,_0x4c8477){const _0x42f556=a10_0x50f6,_0x51d660=_0x2e452b();while(!![]){try{const _0x1d19a2=parseInt(_0x42f556(0x10f))/0x1*(-parseInt(_0x42f556(0x10a))/0x2)+parseInt(_0x42f556(0x107))/0x3*(-parseInt(_0x42f556(0x105))/0x4)+-parseInt(_0x42f556(0x10c))/0x5*(parseInt(_0x42f556(0x114))/0x6)+parseInt(_0x42f556(0x113))/0x7+-parseInt(_0x42f556(0x117))/0x8+-parseInt(_0x42f556(0x119))/0x9*(-parseInt(_0x42f556(0x106))/0xa)+parseInt(_0x42f556(0x10e))/0xb;if(_0x1d19a2===_0x4c8477)break;else _0x51d660['push'](_0x51d660['shift']());}catch(_0x3831f9){_0x51d660['push'](_0x51d660['shift']());}}}(a10_0x44f2,0x1a853));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x46bf7e(0x109));exports[a10_0x46bf7e(0x111)]=a10_0x46bf7e(0x10d),exports['desc']=a10_0x46bf7e(0x112),exports[a10_0x46bf7e(0x116)]=function(_0x40cb64){const _0x14aefc=a10_0x46bf7e,_0x2f860e={};_0x2f860e['wuver']=_0x14aefc(0x110),_0x2f860e[_0x14aefc(0x108)]=_0x14aefc(0x11a);const _0x4ba9d3=_0x2f860e;return _0x40cb64[_0x14aefc(0x118)](HELP_HEADER_MESSAGE[_0x14aefc(0x10d)])[_0x14aefc(0x11b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4ba9d3['wuver'])[_0x14aefc(0x10b)]()['recommendCommands']()[_0x14aefc(0x115)]()[_0x14aefc(0x11a)](_0x4ba9d3[_0x14aefc(0x108)]);},exports['handler']=function(_0xa816ce){};function a10_0x44f2(){const _0x557e4d=['List\x20Grid\x20resources.','170086pMVDBq','69672tBzkJj','strict','builder','466944bVnyeP','usage','45caPbIK','help','epilogue','4hQzyTs','271670NZSntW','337938fGqtUO','tRdwi','../config/constants','50452VEGXwS','demandCommand','20kmmeMH','delete','4045404BDbaPY','8kUOFRo','delete_commands','command'];a10_0x44f2=function(){return _0x557e4d;};return a10_0x44f2();}
|
|
@@ -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
|
+
const a11_0x2d7847=a11_0x3d2f;(function(_0xe1a39c,_0x269e42){const _0x243e16=a11_0x3d2f,_0x462d06=_0xe1a39c();while(!![]){try{const _0x339ea8=parseInt(_0x243e16(0xf5))/0x1+-parseInt(_0x243e16(0xb9))/0x2+-parseInt(_0x243e16(0xcf))/0x3*(-parseInt(_0x243e16(0x10d))/0x4)+parseInt(_0x243e16(0x11c))/0x5+parseInt(_0x243e16(0xb5))/0x6*(-parseInt(_0x243e16(0xc8))/0x7)+-parseInt(_0x243e16(0xa6))/0x8*(-parseInt(_0x243e16(0xd2))/0x9)+parseInt(_0x243e16(0xb1))/0xa*(parseInt(_0x243e16(0xfd))/0xb);if(_0x339ea8===_0x269e42)break;else _0x462d06['push'](_0x462d06['shift']());}catch(_0x1a6796){_0x462d06['push'](_0x462d06['shift']());}}}(a11_0x2356,0xc87a1));function a11_0x3d2f(_0x1680fa,_0x4461f6){const _0x23569d=a11_0x2356();return a11_0x3d2f=function(_0x3d2ff8,_0x185772){_0x3d2ff8=_0x3d2ff8-0x87;let _0x42ad84=_0x23569d[_0x3d2ff8];return _0x42ad84;},a11_0x3d2f(_0x1680fa,_0x4461f6);}const fs=require('fs'),got=require(a11_0x2d7847(0x8b)),{v4:uuidv4}=require(a11_0x2d7847(0x9b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x2d7847(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2d7847(0xa8)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x2d7847(0xef)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x2d7847(0x8f)),{createK8sClient}=require(a11_0x2d7847(0x106)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2d7847(0x8d)),webSocketUtils=require(a11_0x2d7847(0xb4));exports[a11_0x2d7847(0xb8)]='grid',exports[a11_0x2d7847(0x107)]='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x303060){const _0x1f0c2d=a11_0x2d7847,_0x30f42f={};_0x30f42f[_0x1f0c2d(0xc6)]=_0x1f0c2d(0xff),_0x30f42f['eTdwW']=_0x1f0c2d(0xed),_0x30f42f[_0x1f0c2d(0xd8)]=_0x1f0c2d(0xea),_0x30f42f[_0x1f0c2d(0xc0)]=_0x1f0c2d(0x10b),_0x30f42f[_0x1f0c2d(0xcc)]=_0x1f0c2d(0x96);const _0x2bf72d=_0x30f42f,_0x5284ff={};_0x5284ff[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xc6)],_0x5284ff[_0x1f0c2d(0xa4)]=_0x2bf72d[_0x1f0c2d(0x113)];const _0x6b0872={};_0x6b0872[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xd8)],_0x6b0872[_0x1f0c2d(0xa4)]=_0x2bf72d['IQpMJ'],_0x6b0872[_0x1f0c2d(0xf8)]=![];const _0x374c4a={};return _0x374c4a[_0x1f0c2d(0xf9)]=_0x5284ff,_0x374c4a[_0x1f0c2d(0xbc)]=_0x6b0872,_0x303060[_0x1f0c2d(0xf0)](HELP_HEADER_MESSAGE[_0x1f0c2d(0xfc)])[_0x1f0c2d(0xfb)](HELP_FOOTER_MESSAGE)[_0x1f0c2d(0xb7)](_0x374c4a)[_0x1f0c2d(0x96)](_0x2bf72d['soRul'])[_0x1f0c2d(0xe5)];},exports[a11_0x2d7847(0xb2)]=async function(_0x11d0d2){const _0x5adc26=a11_0x2d7847,_0x81b355={'XMzie':'Pass\x20the\x20ID\x20of\x20the\x20Grid','lJJKN':_0x5adc26(0xed),'hmHbl':_0x5adc26(0xea),'htvHr':_0x5adc26(0x10b),'aGVis':_0x5adc26(0x96),'hYTQg':_0x5adc26(0x9a),'aiCDI':function(_0xfdb477,_0x18f141){return _0xfdb477!==_0x18f141;},'zrwmE':_0x5adc26(0x119),'mUlpu':_0x5adc26(0x98),'qFtYS':_0x5adc26(0xf1),'GLtEr':function(_0x24a618,_0x4f34fe){return _0x24a618!==_0x4f34fe;},'oCJYC':_0x5adc26(0xdc),'npkof':_0x5adc26(0xaa),'KEocd':_0x5adc26(0xfe),'Tiaam':function(_0x16089b){return _0x16089b();},'XheEZ':function(_0x4f51b5){return _0x4f51b5();},'TQgIl':function(_0x331d7e,_0x21bdd2){return _0x331d7e===_0x21bdd2;},'nuggI':_0x5adc26(0xe7),'FNsSS':_0x5adc26(0x121),'OPawG':function(_0x2c67af,_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add){return _0x2c67af(_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add);},'uFytz':'delete-grid-called','rVPkv':'init-not-called','AsbOv':_0x5adc26(0x125),'LLpAD':function(_0x33d5ff){return _0x33d5ff();},'UscVG':function(_0x30d8fc,_0x1d7555,_0x45e434,_0x373606){return _0x30d8fc(_0x1d7555,_0x45e434,_0x373606);},'xRWdm':'Browserstack','ozCQX':function(_0x7cd8f9,_0x5433da){return _0x7cd8f9!==_0x5433da;},'NDvFU':'VvDNK','WOQpK':_0x5adc26(0xba),'mKaHv':function(_0x28d86a,_0x334011){return _0x28d86a(_0x334011);},'iKgPf':function(_0x502da9,_0x422f09){return _0x502da9===_0x422f09;},'KWyxp':'JflJo','fxltw':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','TSLIM':_0x5adc26(0x10f),'UTLSH':function(_0xb94c1f,_0x572e4c){return _0xb94c1f===_0x572e4c;},'CjrNn':_0x5adc26(0x8c),'koWba':_0x5adc26(0x101),'PmVFo':_0x5adc26(0x112),'VcgYS':_0x5adc26(0xda),'notyg':function(_0xcfb2a5,_0x580454,_0x444e95){return _0xcfb2a5(_0x580454,_0x444e95);},'qIfOG':function(_0x3e135b,_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1){return _0x3e135b(_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1);},'sAWaQ':_0x5adc26(0x11b),'vTgYp':function(_0x81b01c,_0x5f34aa){return _0x81b01c!==_0x5f34aa;},'MGUOO':_0x5adc26(0xd5),'XpEQq':_0x5adc26(0x11e),'ywAUk':function(_0x50922f,_0x220f6d){return _0x50922f!==_0x220f6d;},'nIqRh':function(_0x4cf0fd,_0x4acae7){return _0x4cf0fd!==_0x4acae7;},'TdcbF':_0x5adc26(0xeb),'BGniu':function(_0x3ca293,_0x40cb1d){return _0x3ca293===_0x40cb1d;},'BMmIl':_0x5adc26(0xf3),'MmSvB':_0x5adc26(0xd1),'QDrat':function(_0x4fd584,_0x38d00f){return _0x4fd584===_0x38d00f;},'HSees':function(_0x44908c,_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f){return _0x44908c(_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f);},'bzUTQ':_0x5adc26(0x90),'jrHyj':function(_0x35a05f,_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5){return _0x35a05f(_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5);},'zETIA':function(_0x41691d,_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00){return _0x41691d(_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00);},'WeCuQ':_0x5adc26(0x8a)};try{global_registry[_0x5adc26(0xd4)]=_0x81b355[_0x5adc26(0xa3)](uuidv4);if(!fs[_0x5adc26(0xe8)](_0x81b355[_0x5adc26(0x92)](getCredentialsPath))){if(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0xc7)],_0x81b355[_0x5adc26(0xc7)]))console[_0x5adc26(0x95)](_0x81b355['FNsSS']),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes[_0x5adc26(0xf2)],_0x81b355['rVPkv'],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1);else{const _0x4b5f09={};_0x4b5f09['description']=_0x81b355[_0x5adc26(0xa2)],_0x4b5f09[_0x5adc26(0xa4)]=_0x81b355[_0x5adc26(0xca)];const _0x2c5feb={};_0x2c5feb[_0x5adc26(0xd9)]=_0x81b355['hmHbl'],_0x2c5feb['type']=_0x81b355[_0x5adc26(0x124)],_0x2c5feb[_0x5adc26(0xf8)]=![];const _0x120599={};return _0x120599[_0x5adc26(0xf9)]=_0x4b5f09,_0x120599[_0x5adc26(0xbc)]=_0x2c5feb,_0x236f24[_0x5adc26(0xf0)](_0x58bf81['delete'])[_0x5adc26(0xfb)](_0x3715f1)[_0x5adc26(0xb7)](_0x120599)[_0x5adc26(0x96)](_0x81b355[_0x5adc26(0x11d)])[_0x5adc26(0xe5)];}}_0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf6)],null,null,_0x11d0d2);!_0x11d0d2[_0x5adc26(0xdd)]&&(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0x105)],_0x81b355[_0x5adc26(0x105)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),process[_0x5adc26(0xad)](0x1)):_0x24d9d4[_0x5adc26(0xd0)](_0x81b355[_0x5adc26(0xfa)]));const _0x5ba8b4=JSON['parse'](fs[_0x5adc26(0x10a)](_0x81b355[_0x5adc26(0x10c)](getCredentialsPath))),[_0x1dc571,_0x271b41]=await _0x81b355['UscVG'](getGridDetails,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4['Browserstack'][_0x5adc26(0xb6)],_0x11d0d2[_0x5adc26(0xdd)]);if(_0x271b41){const _0x28630d=_0x271b41[_0x5adc26(0x100)];let _0xd1894b=_0x5adc26(0x97)+_0x28630d[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x28630d['id']+_0x5adc26(0x102);_0x271b41[_0x5adc26(0xc5)]&&_0x81b355[_0x5adc26(0xde)](_0x271b41[_0x5adc26(0x9e)],_0x81b355[_0x5adc26(0xbf)])&&(_0x81b355['ozCQX'](_0x81b355[_0x5adc26(0x93)],_0x81b355[_0x5adc26(0xc1)])?_0xd1894b=_0x5adc26(0x97)+_0x28630d['name']+'\x22\x20and\x20ID\x20'+_0x28630d['id']+_0x5adc26(0xee)+_0x28630d[_0x5adc26(0xab)]+_0x5adc26(0xae)+_0x28630d['clusterId']+_0x5adc26(0x102):_0x5e113a[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x4a88e5[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x1ff89b=await _0x81b355[_0x5adc26(0xcd)](inputConfirmation,_0xd1894b);(_0x81b355['TQgIl'](_0x1ff89b,undefined)||_0x81b355[_0x5adc26(0x116)](_0x1ff89b,null)||!(_0x81b355[_0x5adc26(0x116)](_0x1ff89b[_0x5adc26(0xe2)](),'y')||_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')))&&(_0x81b355[_0x5adc26(0xde)](_0x81b355['KWyxp'],_0x81b355[_0x5adc26(0xc2)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xf7)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xcb)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)):_0x328051[_0x5adc26(0xad)](0x0));_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')&&(_0x81b355['UTLSH'](_0x81b355['CjrNn'],_0x81b355[_0x5adc26(0xce)])?(_0x5344d3['warn'](_0x5adc26(0x108)+_0x2371ac+_0x5adc26(0xe9)),_0x3603fc=![]):process[_0x5adc26(0xad)](0x0));const _0x3d7d29=WS_ENDPOINT[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x110)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)])[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x109)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),_0x1df103={};_0x1df103[_0x5adc26(0xa9)]=ws,_0x1df103['connectionTimeout']=0x36ee80;const _0x906625=new ReconnectingWebSocket(_0x3d7d29,[],_0x1df103);global_registry[_0x5adc26(0xd7)]=_0x28630d['region'];const _0x4e771f=_0x28630d[_0x5adc26(0xb3)],_0x5ee590=await _0x81b355[_0x5adc26(0xe0)](getCloudProviderObject,_0x4e771f,_0x28630d[_0x5adc26(0xab)],_0x28630d[_0x5adc26(0x11a)],_0x906625,webSocketUtils,_0x11d0d2),_0x303769=await _0x5ee590[_0x5adc26(0x117)]();if(_0x303769){const _0xf15f05=_0x81b355[_0x5adc26(0xcd)](kebabCase,_0x28630d['name']),[_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0x640e08,_0x30025c]=await _0x81b355[_0x5adc26(0x115)](createK8sClient,_0x5ee590,_0x11d0d2[_0x5adc26(0x123)]);let _0x45cf96=!![];const _0x37c4aa={};_0x37c4aa[_0x5adc26(0x11a)]=_0xf15f05,await _0x1cf5cc[_0x5adc26(0x104)](_0x37c4aa)['then'](_0x1101ad=>{const _0x4c80be=_0x5adc26;_0x81b355[_0x4c80be(0x87)](_0x81b355[_0x4c80be(0x111)],_0x81b355[_0x4c80be(0x118)])?logger['info'](_0x4c80be(0x108)+_0xf15f05+_0x4c80be(0xd3)):_0x5631b0[_0x4c80be(0x100)](_0x4c80be(0x108)+_0xdd6ddc+_0x4c80be(0xd3));})['catch'](_0x49e44c=>{const _0xf47bae=_0x5adc26;_0x81b355[_0xf47bae(0xac)](_0x81b355[_0xf47bae(0x8e)],_0x81b355[_0xf47bae(0xc9)])?(logger[_0xf47bae(0xd0)](_0xf47bae(0x108)+_0xf15f05+_0xf47bae(0xe9)),_0x45cf96=![]):(_0x972b97['info'](_0x81b355[_0xf47bae(0x114)]),_0x46d6ae['exit'](0x0));});if(_0x45cf96){await _0x81b355[_0x5adc26(0x99)](removeGridComponents,_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0xf15f05);if(_0x271b41[_0x5adc26(0xc5)]){const _0x1552e3=await _0x5ee590[_0x5adc26(0x122)]();_0x1552e3?_0x81b355['iKgPf'](_0x81b355[_0x5adc26(0x126)],_0x81b355[_0x5adc26(0x126)])?await _0x5ee590['deleteCluster'](_0x1cf5cc,_0x28630d[_0x5adc26(0xb0)]):_0x21ea0c='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4f7f90[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x5efcc9['id']+_0x5adc26(0xee)+_0x476f77[_0x5adc26(0xab)]+'\x22\x20with\x20ID\x20'+_0x23a80e[_0x5adc26(0xbd)]+_0x5adc26(0x102):_0x81b355[_0x5adc26(0xa0)](_0x81b355['MGUOO'],_0x81b355[_0x5adc26(0xa1)])?(_0x912dab[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),_0xc2dac8[_0x5adc26(0xad)](0x1)):logger[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x28630d[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger['warn'](_0x81b355[_0x5adc26(0xfa)]);const _0x4b1900=_0x5adc26(0xd6)+AG_API_URL+'/packages/cli/grid/'+_0x11d0d2[_0x5adc26(0xdd)],_0x2b199a={'method':_0x81b355[_0x5adc26(0x9c)],'headers':_0x81b355[_0x5adc26(0x115)](getAuthHeader,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),'throwHttpErrors':![]},_0x442974=await _0x81b355['notyg'](got,_0x4b1900,_0x2b199a);_0x81b355['ywAUk'](_0x442974,null)&&_0x81b355[_0x5adc26(0xdb)](_0x442974,undefined)&&_0x81b355['TQgIl'](_0x442974[_0x5adc26(0xe3)],0xc8)&&(logger[_0x5adc26(0x100)](_0x81b355[_0x5adc26(0x114)]),process[_0x5adc26(0xad)](0x0)),logger[_0x5adc26(0x95)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x442974[_0x5adc26(0xe1)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}_0x81b355[_0x5adc26(0x94)](_0x1dc571['statusCode'],0x191)&&(logger[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0x103)]),await _0x81b355['OPawG'](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x9d)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),_0x81b355[_0x5adc26(0xdf)](_0x1dc571[_0x5adc26(0xe3)],0x190)&&(logger[_0x5adc26(0x95)](JSON[_0x5adc26(0x120)](_0x1dc571[_0x5adc26(0xe1)])[_0x5adc26(0x9f)]),await _0x81b355[_0x5adc26(0x11f)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xe6)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),logger[_0x5adc26(0x95)](_0x5adc26(0xc4)+JSON['stringify'](_0x1dc571)),await _0x81b355[_0x5adc26(0xbe)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}catch(_0x421b90){logger[_0x5adc26(0x95)](_0x5adc26(0xa5)+_0x421b90[_0x5adc26(0x91)]),await _0x81b355['zETIA'](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xbb)],_0x421b90,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}};function a11_0x2356(){const _0x459165=['4018870RmfeAK','aGVis','DELETE','HSees','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','isBrowserstackCluster','skipTlsCertVerify','htvHr','IsAGe','sAWaQ','aiCDI','uFytz','TdcbF','unknown-error','got','LpSqr','../../utils/utilityMethods','oCJYC','../../utils/userInput','invalid-grid-id','stack','XheEZ','NDvFU','BGniu','error','help','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','BZgTn','qIfOG','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','uuid','XpEQq','MmSvB','clusterSpawnedVia','message','vTgYp','MGUOO','XMzie','Tiaam','type','Failed\x20to\x20delete\x20resources!\x20Error:\x20','74744ETfFDB','replace','../../config/constants','WebSocket','KHJeu','clusterName','GLtEr','exit','\x22\x20with\x20ID\x20','KEocd','region','1270wXEVmQ','handler','cloudProvider','../../utils/webSocketUtils','6zfaJVh','password','options','command','2676138liPXvj','iuKGR','WeCuQ','skip-tls-cert-verify','clusterId','jrHyj','xRWdm','IQpMJ','WOQpK','KWyxp','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','onlyGridInCluster','DEeCi','nuggI','4955321cledKv','npkof','lJJKN','TSLIM','soRul','mKaHv','koWba','1611UJdSik','warn','unauthorised','504nqgofF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','requestId','EgQsl','https://','clusterRegion','LtyVT','description','<PasswordPlaceholder>','nIqRh','fvAjZ','gridId','TQgIl','QDrat','OPawG','body','toLowerCase','statusCode','\x22\x20and\x20ID\x20','argv','bzUTQ','aNeQM','existsSync','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Skip\x20insecure\x20cert\x20verification.','server-error','reconnecting-websocket','string','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../cloudproviders/utils','usage','Successfully\x20deleted\x20the\x20grid','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','545677IXfDtT','INFO','fxltw','default','grid-id','hYTQg','epilogue','delete','41437pgVHnU','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Pass\x20the\x20ID\x20of\x20the\x20Grid','info','HyizB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','BMmIl','readNamespace','AsbOv','../../utils/createk8sClient','desc','Namespace:\x20','VcgYS','readFileSync','boolean','LLpAD','3844rEMJJu','Cluster:\x20','invalid-input','PmVFo','zrwmE','<UsernamePlaceholder>','eTdwW','qFtYS','notyg','iKgPf','isClusterPresent','mUlpu','ofPvJ','name','eUxgK'];a11_0x2356=function(){return _0x459165;};return a11_0x2356();}
|
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_0x21e0(){const _0x3542ae=['Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','tdFiF','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xiQaW','debug','ERROR','75whpmuI','zGgtY','gMtSZ','help','../utils/userInput','command','AnViP','error','username','existsSync','strict','argv','rZaOy','../config/constants','qxNDu','utf-8','ROygq','bstackUsername','bstackAccesskey','DFvWf','OLHVX','/automate/plan.json','11864gENRVC','QNWWQ','NFLJf','TxluJ','YsWAs','string','uuid','builder','ILTUn','BROWSERSTACK_USERNAME','GET','handler','readFileSync','BROWSERSTACK_ACCESS_KEY','enjAb','Browserstack','mkdirSync','PADZA','ffUSi','EBnyr','168512BXAxDW','parse','GvIxH','bstack-accesskey','cItLB','266412buOULj','YOBIu','CXwHA','CzzfK','AWpUP','cGfPX','init','pdTCo','KrxRC','NwTBk','type','usage','40CCcURy','description','bstack-username','writeFileSync','Fjzxa','IrRdR','util','VkOEm','stringify','vnBCb','uDePm','524601lesGSm','requestId','exit','qRALm','options','299844JfFkpV','../config/logger','recommendCommands','nFgdE','JHdBu','desc','Dmiuy','129984YCsKoY','unknown-error','../utils/utilityMethods','env','903urGpOr','wrong-creds','epilogue','got','XvcYF','init-called','MAOJf','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','password','1858455sLEhid','YZftM','statusCode','TiTXH','https://','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.'];a12_0x21e0=function(){return _0x3542ae;};return a12_0x21e0();}const a12_0x353539=a12_0x14fe;(function(_0x3cd4cc,_0x2dff28){const _0x3b3133=a12_0x14fe,_0x77fa4a=_0x3cd4cc();while(!![]){try{const _0x5d290c=parseInt(_0x3b3133(0x127))/0x1+-parseInt(_0x3b3133(0x10b))/0x2+-parseInt(_0x3b3133(0x12c))/0x3+-parseInt(_0x3b3133(0x133))/0x4+-parseInt(_0x3b3133(0x14d))/0x5*(-parseInt(_0x3b3133(0x110))/0x6)+-parseInt(_0x3b3133(0x137))/0x7*(-parseInt(_0x3b3133(0xf7))/0x8)+parseInt(_0x3b3133(0x141))/0x9*(-parseInt(_0x3b3133(0x11c))/0xa);if(_0x5d290c===_0x2dff28)break;else _0x77fa4a['push'](_0x77fa4a['shift']());}catch(_0x43e590){_0x77fa4a['push'](_0x77fa4a['shift']());}}}(a12_0x21e0,0x52d3a));function a12_0x14fe(_0x298925,_0x556c19){const _0x21e00e=a12_0x21e0();return a12_0x14fe=function(_0x14fef1,_0x3ca55e){_0x14fef1=_0x14fef1-0xeb;let _0x254003=_0x21e00e[_0x14fef1];return _0x254003;},a12_0x14fe(_0x298925,_0x556c19);}const fs=require('fs'),util=require(a12_0x353539(0x122)),got=require(a12_0x353539(0x13a)),{v4:uuidv4}=require(a12_0x353539(0xfd)),{logger}=require(a12_0x353539(0x12d)),{inputBstackKeys}=require(a12_0x353539(0x151)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x353539(0xee)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x353539(0x135)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x353539(0x152)]=a12_0x353539(0x116),exports[a12_0x353539(0x131)]=a12_0x353539(0x147),exports[a12_0x353539(0xfe)]=function(_0x389cc8){const _0x5ca59e=a12_0x353539,_0x3edcfc={};_0x3edcfc['pdTCo']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['AnViP']=_0x5ca59e(0xfc),_0x3edcfc[_0x5ca59e(0xfa)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['cItLB']='help';const _0x40557c=_0x3edcfc,_0x2bec83={};_0x2bec83[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0x117)],_0x2bec83[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x3b0739={};_0x3b0739[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0xfa)],_0x3b0739[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x27f392={};return _0x27f392['bstack-username']=_0x2bec83,_0x27f392[_0x5ca59e(0x10e)]=_0x3b0739,_0x389cc8[_0x5ca59e(0x11b)](HELP_HEADER_MESSAGE[_0x5ca59e(0x116)])[_0x5ca59e(0x139)](HELP_FOOTER_MESSAGE)[_0x5ca59e(0x12b)](_0x27f392)[_0x5ca59e(0x12e)]()[_0x5ca59e(0xeb)]()['help'](_0x40557c[_0x5ca59e(0x10f)])[_0x5ca59e(0xec)];},exports[a12_0x353539(0x102)]=async function(_0x1447c3){const _0x246093=a12_0x353539,_0x1551cb={'xgIGf':_0x246093(0x149),'VkOEm':'string','YsWAs':_0x246093(0x146),'enjAb':_0x246093(0x150),'zGgtY':function(_0x5df156){return _0x5df156();},'QNWWQ':_0x246093(0xf0),'nFgdE':function(_0x4a4fa5,_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f){return _0x4a4fa5(_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f);},'KrxRC':_0x246093(0x13c),'ILTUn':function(_0x50c75a){return _0x50c75a();},'ROygq':function(_0x2c4662,_0x38e511){return _0x2c4662===_0x38e511;},'NwTBk':'HOMzC','tdFiF':_0x246093(0x126),'XvcYF':_0x246093(0x13d),'CXwHA':'DBtjc','nkKXB':function(_0x5b433b,_0x49504c){return _0x5b433b!==_0x49504c;},'qxNDu':_0x246093(0xf9),'YOBIu':function(_0x26f3f0,_0xf8837a){return _0x26f3f0!==_0xf8837a;},'Dmiuy':_0x246093(0x130),'gMtSZ':_0x246093(0x115),'IrRdR':function(_0x11fce9,_0x1b4404){return _0x11fce9!==_0x1b4404;},'lRvpY':'JpoEb','rZaOy':_0x246093(0x120),'AWpUP':_0x246093(0x13e),'lEUqF':function(_0xad546f){return _0xad546f();},'GqmGP':_0x246093(0x101),'JCXQX':function(_0x2822d2,_0x535dbd,_0x5911d9){return _0x2822d2(_0x535dbd,_0x5911d9);},'cLXgL':function(_0x2187a6,_0x3b2a72,_0x3cf1f1){return _0x2187a6(_0x3b2a72,_0x3cf1f1);},'ortFI':function(_0x8ee6da,_0x4348e4){return _0x8ee6da!==_0x4348e4;},'PADZA':function(_0xf5829,_0x477e83){return _0xf5829===_0x477e83;},'xiQaW':_0x246093(0x144),'vnBCb':_0x246093(0x10a),'GvIxH':_0x246093(0x142),'DFvWf':function(_0x2d061f){return _0x2d061f();},'pwIDw':_0x246093(0x113),'OQAud':_0x246093(0x13f),'ffUSi':function(_0x2e3a4a,_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c){return _0x2e3a4a(_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c);},'OLHVX':_0x246093(0x138),'qRALm':_0x246093(0x134)};try{global_registry[_0x246093(0x128)]=_0x1551cb[_0x246093(0x14e)](uuidv4),_0x1551cb[_0x246093(0x12f)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['INFO'],null,null,_0x1447c3);const _0xeab71a=_0x1551cb[_0x246093(0xff)](getDirForConfig);if(!fs['existsSync'](_0xeab71a)){if(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x119)],_0x1551cb[_0x246093(0x148)])){const _0x465f5b={};_0x465f5b[_0x246093(0x11d)]=_0x1551cb['xgIGf'],_0x465f5b[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x16b266={};_0x16b266[_0x246093(0x11d)]=_0x1551cb[_0x246093(0xfb)],_0x16b266[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x2b12f2={};return _0x2b12f2[_0x246093(0x11e)]=_0x465f5b,_0x2b12f2['bstack-accesskey']=_0x16b266,_0x12c8c5[_0x246093(0x11b)](_0x4f04e7[_0x246093(0x116)])[_0x246093(0x139)](_0x7d5716)[_0x246093(0x12b)](_0x2b12f2)['recommendCommands']()[_0x246093(0xeb)]()[_0x246093(0x150)](_0x1551cb[_0x246093(0x105)])[_0x246093(0xec)];}else fs[_0x246093(0x107)](_0xeab71a);}let _0x1f83d9,_0x112180;process[_0x246093(0x136)][_0x246093(0x100)]&&(_0x1551cb['ROygq'](_0x1551cb['XvcYF'],_0x1551cb[_0x246093(0x13b)])?_0x1f83d9=process[_0x246093(0x136)][_0x246093(0x100)]:_0x1aeb0e=!![]);process[_0x246093(0x136)][_0x246093(0x104)]&&(_0x1551cb['ROygq'](_0x1551cb[_0x246093(0x112)],_0x1551cb['CXwHA'])?_0x112180=process[_0x246093(0x136)]['BROWSERSTACK_ACCESS_KEY']:_0x52b151=_0x4471a4[_0x246093(0xf3)]);_0x1447c3[_0x246093(0xf2)]&&(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0xef)],_0x1551cb[_0x246093(0xef)])?_0x4e98b8=_0x3e189b[_0x246093(0xf2)]:_0x1f83d9=_0x1447c3['bstackUsername']);if(_0x1447c3[_0x246093(0xf3)]){if(_0x1551cb[_0x246093(0x111)](_0x1551cb[_0x246093(0x132)],_0x1551cb[_0x246093(0x14f)]))_0x112180=_0x1447c3[_0x246093(0xf3)];else{let _0x3f0cb9={};const _0x2be034=_0x1551cb['zGgtY'](_0x450ef8);_0x2cbca7[_0x246093(0x156)](_0x2be034)&&(_0x3f0cb9=_0x2959a6[_0x246093(0x10c)](_0x1510e9[_0x246093(0x103)](_0x2be034,_0x1551cb[_0x246093(0xf8)])));const _0x1c48f4={};_0x1c48f4[_0x246093(0x155)]=_0x4c83cf,_0x1c48f4[_0x246093(0x140)]=_0xf739fd,_0x3f0cb9[_0x246093(0x106)]=_0x1c48f4,_0x4e7c51['writeFileSync'](_0x2be034,_0x2deb6b[_0x246093(0x124)](_0x3f0cb9)),_0x3a9b87[_0x246093(0x129)](0x0);}}if(_0x1551cb[_0x246093(0xf1)](_0x1f83d9,undefined)||_0x1551cb[_0x246093(0xf1)](_0x112180,undefined)){if(_0x1551cb[_0x246093(0x121)](_0x1551cb['lRvpY'],_0x1551cb[_0x246093(0xed)])){logger[_0x246093(0x14b)](_0x1551cb[_0x246093(0x114)]);const [_0x3b7b8d,_0x596668]=await _0x1551cb['lEUqF'](inputBstackKeys);_0x1f83d9=_0x3b7b8d,_0x112180=_0x596668;}else _0x105601=_0x41db84[_0x246093(0x10c)](_0x230f98['readFileSync'](_0x3fecee,_0x1551cb[_0x246093(0xf8)]));}let _0x3753c8=![];const _0x4d315e=_0x246093(0x145)+_0x1f83d9+':'+_0x112180+'@'+BS_API_URL+_0x246093(0xf6),_0x55cc1d={'method':_0x1551cb['GqmGP'],'headers':_0x1551cb['JCXQX'](getAuthHeader,_0x1f83d9,_0x112180),'throwHttpErrors':![]},_0x2bd92e=await _0x1551cb['cLXgL'](got,_0x4d315e,_0x55cc1d);_0x1551cb['YOBIu'](_0x2bd92e,null)&&_0x1551cb['ortFI'](_0x2bd92e,undefined)&&_0x1551cb[_0x246093(0x108)](_0x2bd92e[_0x246093(0x143)],0xc8)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x14a)],_0x1551cb['xiQaW'])?_0x3753c8=!![]:_0x54d0d2=_0x414695[_0x246093(0x136)][_0x246093(0x100)]);if(_0x3753c8){if(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0x125)],_0x1551cb[_0x246093(0x10d)])){let _0x4337c2={};const _0x428aa1=_0x1551cb[_0x246093(0xf4)](getCredentialsPath);fs['existsSync'](_0x428aa1)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb['pwIDw'],_0x1551cb['pwIDw'])?_0x4337c2=JSON[_0x246093(0x10c)](fs[_0x246093(0x103)](_0x428aa1,_0x1551cb[_0x246093(0xf8)])):_0x464a59[_0x246093(0x107)](_0x6dce7a));const _0x193125={};_0x193125[_0x246093(0x155)]=_0x1f83d9,_0x193125[_0x246093(0x140)]=_0x112180,_0x4337c2[_0x246093(0x106)]=_0x193125,fs[_0x246093(0x11f)](_0x428aa1,JSON[_0x246093(0x124)](_0x4337c2)),process[_0x246093(0x129)](0x0);}else _0x2d94c9=_0x554432[_0x246093(0x136)][_0x246093(0x104)];}else logger[_0x246093(0x154)](_0x1551cb['OQAud']),await _0x1551cb['ffUSi'](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes[_0x246093(0x14c)],_0x1551cb[_0x246093(0xf5)],null,_0x1447c3),process[_0x246093(0x129)](0x1);}catch(_0x48cb45){logger[_0x246093(0x154)](_0x48cb45['stack']),await _0x1551cb[_0x246093(0x109)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['ERROR'],_0x1551cb[_0x246093(0x12a)],_0x48cb45,_0x1447c3),process[_0x246093(0x129)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x122030=a13_0x95b1;(function(_0x139cb9,_0x3fdd0a){const _0x2e21f2=a13_0x95b1,_0x3f78f2=_0x139cb9();while(!![]){try{const _0x449040=-parseInt(_0x2e21f2(0x12c))/0x1+parseInt(_0x2e21f2(0x11e))/0x2*(parseInt(_0x2e21f2(0x118))/0x3)+parseInt(_0x2e21f2(0x12b))/0x4*(-parseInt(_0x2e21f2(0x125))/0x5)+parseInt(_0x2e21f2(0x124))/0x6*(-parseInt(_0x2e21f2(0x116))/0x7)+parseInt(_0x2e21f2(0x122))/0x8+-parseInt(_0x2e21f2(0x123))/0x9*(parseInt(_0x2e21f2(0x11b))/0xa)+-parseInt(_0x2e21f2(0x117))/0xb*(-parseInt(_0x2e21f2(0x129))/0xc);if(_0x449040===_0x3fdd0a)break;else _0x3f78f2['push'](_0x3f78f2['shift']());}catch(_0x13b047){_0x3f78f2['push'](_0x3f78f2['shift']());}}}(a13_0x5760,0x5d575));function a13_0x95b1(_0x3de210,_0x357f1d){const _0x576069=a13_0x5760();return a13_0x95b1=function(_0x95b18f,_0x4c6689){_0x95b18f=_0x95b18f-0x113;let _0x492668=_0x576069[_0x95b18f];return _0x492668;},a13_0x95b1(_0x3de210,_0x357f1d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x122030(0x127));exports['command']=a13_0x122030(0x12a),exports['desc']=a13_0x122030(0x126),exports[a13_0x122030(0x121)]=function(_0x3fe46a){const _0x22f0e7=a13_0x122030,_0x350e80={};_0x350e80[_0x22f0e7(0x11d)]=_0x22f0e7(0x11f),_0x350e80[_0x22f0e7(0x128)]=_0x22f0e7(0x114);const _0xec9e6=_0x350e80;return _0x3fe46a[_0x22f0e7(0x119)](_0xec9e6['fXEXH'])['demandCommand']()[_0x22f0e7(0x115)](HELP_HEADER_MESSAGE[_0x22f0e7(0x12a)][_0x22f0e7(0x11a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x22f0e7(0x120)]()[_0x22f0e7(0x113)]()[_0x22f0e7(0x114)](_0xec9e6[_0x22f0e7(0x128)]);},exports[a13_0x122030(0x11c)]=function(_0x5ce29b){};function a13_0x5760(){const _0x18d31f=['builder','5214736YWhQlD','11043djZshL','2876730wftxyU','6490lSbLdi','List\x20down\x20the\x20Grid\x20resources.','../config/constants','zDDxi','468ewHcyR','list','1008PSrxfO','299547DPYwYj','strict','help','usage','7BvbrJc','378851QDqaYW','729237ohtfPC','commandDir','root','6110qJDprc','handler','fXEXH','2LhZxhg','list_commands','recommendCommands'];a13_0x5760=function(){return _0x18d31f;};return a13_0x5760();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x1589da=a14_0x4f3f;(function(_0x1a3285,_0x1f76f8){const _0x422f88=a14_0x4f3f,_0x1a45da=_0x1a3285();while(!![]){try{const _0x8aa782=parseInt(_0x422f88(0xd3))/0x1*(parseInt(_0x422f88(0x98))/0x2)+-parseInt(_0x422f88(0xbf))/0x3+parseInt(_0x422f88(0xb3))/0x4*(-parseInt(_0x422f88(0x9e))/0x5)+parseInt(_0x422f88(0x8a))/0x6+parseInt(_0x422f88(0xa8))/0x7+-parseInt(_0x422f88(0x89))/0x8*(parseInt(_0x422f88(0xa1))/0x9)+-parseInt(_0x422f88(0xac))/0xa*(parseInt(_0x422f88(0xa0))/0xb);if(_0x8aa782===_0x1f76f8)break;else _0x1a45da['push'](_0x1a45da['shift']());}catch(_0x35fc7c){_0x1a45da['push'](_0x1a45da['shift']());}}}(a14_0x3fc2,0x986df));function a14_0x4f3f(_0x3b0b18,_0x493485){const _0x3fc2b0=a14_0x3fc2();return a14_0x4f3f=function(_0x4f3f75,_0x2b61ed){_0x4f3f75=_0x4f3f75-0x89;let _0x5704fa=_0x3fc2b0[_0x4f3f75];return _0x5704fa;},a14_0x4f3f(_0x3b0b18,_0x493485);}const fs=require('fs'),got=require(a14_0x1589da(0xaf)),{table}=require(a14_0x1589da(0xbc)),{v4:uuidv4}=require(a14_0x1589da(0xb6)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1589da(0xcf)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x1589da(0x9f));exports['command']='grid-profiles',exports[a14_0x1589da(0xad)]=a14_0x1589da(0xb1),exports['builder']=function(_0x5ae866){const _0x54ca8c=a14_0x1589da,_0x5652bc={};_0x5652bc['VflWx']=_0x54ca8c(0x94),_0x5652bc['HFPyW']=_0x54ca8c(0xb0),_0x5652bc['tVtaQ']=_0x54ca8c(0xae);const _0x13a7ca=_0x5652bc,_0x159881={};_0x159881[_0x54ca8c(0xb7)]=_0x13a7ca['VflWx'],_0x159881[_0x54ca8c(0xd9)]=_0x13a7ca[_0x54ca8c(0x97)];const _0x38cd26={};return _0x38cd26[_0x54ca8c(0xdb)]=_0x159881,_0x5ae866['usage'](HELP_HEADER_MESSAGE[_0x54ca8c(0xa6)]['gridProfile'])[_0x54ca8c(0xc1)](HELP_FOOTER_MESSAGE)[_0x54ca8c(0xcc)](_0x38cd26)[_0x54ca8c(0xae)](_0x13a7ca['tVtaQ'])[_0x54ca8c(0xc4)];},exports[a14_0x1589da(0xb2)]=async function(_0x18a414){const _0x421640=a14_0x1589da,_0x14fd44={'WzcED':function(_0x3cdbd3){return _0x3cdbd3();},'XdSud':function(_0x170817){return _0x170817();},'AJGJh':_0x421640(0xb4),'FlAgx':function(_0x5ec475,_0x45fd75,_0x4044b9,_0x1d02e9,_0x221187,_0x19d891,_0x189db2){return _0x5ec475(_0x45fd75,_0x4044b9,_0x1d02e9,_0x221187,_0x19d891,_0x189db2);},'OEesi':_0x421640(0xe0),'ZOmUY':_0x421640(0xdd),'HXtwe':function(_0x26b8b8){return _0x26b8b8();},'MZCXz':_0x421640(0xcb),'jXqSU':function(_0x2357e2,_0x3eb52c,_0x37f946){return _0x2357e2(_0x3eb52c,_0x37f946);},'MaTIS':function(_0x573180,_0xc899fa,_0x3e7171,_0x437a94,_0x2b2175,_0x28a36a,_0x13c387){return _0x573180(_0xc899fa,_0x3e7171,_0x437a94,_0x2b2175,_0x28a36a,_0x13c387);},'vjxef':function(_0x50a132,_0x188860,_0x313845){return _0x50a132(_0x188860,_0x313845);},'mPrze':function(_0x2312bd,_0x57e10d){return _0x2312bd!==_0x57e10d;},'QvAbT':function(_0xcaac7,_0x3fd9a5){return _0xcaac7!==_0x3fd9a5;},'BLTdI':function(_0x4021bb,_0x58343c){return _0x4021bb===_0x58343c;},'aNMMh':_0x421640(0xa5),'jsUem':_0x421640(0x99),'zqAdQ':_0x421640(0xbd),'dRZCZ':'region','Sncnt':_0x421640(0xa2),'qRUps':function(_0x1156aa,_0x889c73){return _0x1156aa(_0x889c73);},'arqKr':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YhYtD':function(_0x1222e3,_0xe804fa,_0x415272,_0x429e4f,_0x1bb1f2,_0x142d32,_0x20da3d){return _0x1222e3(_0xe804fa,_0x415272,_0x429e4f,_0x1bb1f2,_0x142d32,_0x20da3d);},'TzCgc':_0x421640(0xdf),'OKLLv':function(_0x2da0ac,_0x2c7da4,_0x4def58,_0x1fb5ef,_0x201acf,_0x20a12d,_0x178438){return _0x2da0ac(_0x2c7da4,_0x4def58,_0x1fb5ef,_0x201acf,_0x20a12d,_0x178438);},'uAbyR':_0x421640(0xcd),'FAXNm':function(_0x4515b1,_0x4060d8,_0x2d9e3b,_0x3aaefe,_0x4cfb20,_0x542ed6,_0x1bd043){return _0x4515b1(_0x4060d8,_0x2d9e3b,_0x3aaefe,_0x4cfb20,_0x542ed6,_0x1bd043);},'tcOto':_0x421640(0xda)};try{global_registry[_0x421640(0x91)]=_0x14fd44[_0x421640(0xaa)](uuidv4);let _0x3028e6=_0x421640(0x9b)+AG_API_URL+_0x421640(0xd5);_0x18a414[_0x421640(0xc2)]&&(_0x3028e6=_0x421640(0x9b)+AG_API_URL+_0x421640(0xdc));!fs[_0x421640(0xc3)](_0x14fd44[_0x421640(0xb9)](getCredentialsPath))&&(console[_0x421640(0xd2)](_0x14fd44[_0x421640(0xc8)]),await _0x14fd44[_0x421640(0xce)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0xde)],null,_0x18a414),process['exit'](0x1));const _0xd2f0a8=JSON[_0x421640(0x9a)](fs['readFileSync'](_0x14fd44[_0x421640(0x95)](getCredentialsPath))),_0x4e1f5b={'method':_0x14fd44[_0x421640(0x90)],'headers':_0x14fd44['jXqSU'](getAuthHeader,_0xd2f0a8['Browserstack'][_0x421640(0xe1)],_0xd2f0a8[_0x421640(0xa3)][_0x421640(0xba)]),'throwHttpErrors':![]};global_registry[_0x421640(0xa7)]=_0xd2f0a8['Browserstack'][_0x421640(0xe1)],global_registry['bstackAccesskey']=_0xd2f0a8['Browserstack']['password'],_0x14fd44[_0x421640(0xa4)](sendInstrumentationEvent,_0x18a414,_0x14fd44['OEesi'],messageTypes[_0x421640(0x8e)],null,null,_0x18a414);const _0x9ebff8=await _0x14fd44[_0x421640(0x8d)](got,_0x3028e6,_0x4e1f5b);if(_0x14fd44['mPrze'](_0x9ebff8,null)&&_0x14fd44[_0x421640(0xb8)](_0x9ebff8,undefined)&&_0x14fd44[_0x421640(0xab)](_0x9ebff8[_0x421640(0xc5)],0xc8)){const _0x5060a7=JSON['parse'](_0x9ebff8[_0x421640(0xc0)]);console[_0x421640(0x8f)](_0x14fd44[_0x421640(0xca)]);const _0x37766c=[];_0x37766c[_0x421640(0xd1)]([_0x14fd44[_0x421640(0xc9)],_0x14fd44[_0x421640(0x92)],_0x14fd44[_0x421640(0xd7)],_0x14fd44[_0x421640(0x9d)]]),_0x5060a7['forEach'](_0x2a89fb=>{const _0x5d89f3=_0x421640;_0x37766c[_0x5d89f3(0xd1)]([_0x2a89fb[_0x5d89f3(0xbb)],_0x2a89fb['cloudProvider'],_0x2a89fb[_0x5d89f3(0xb5)],_0x2a89fb['concurrency']]);}),console[_0x421640(0x8f)](_0x14fd44[_0x421640(0xd4)](table,_0x37766c)),process[_0x421640(0x93)](0x0);}_0x14fd44[_0x421640(0xab)](_0x9ebff8[_0x421640(0xc5)],0x191)&&(console[_0x421640(0xd2)](_0x14fd44[_0x421640(0x9c)]),await _0x14fd44[_0x421640(0xd6)](sendInstrumentationEvent,_0x18a414,_0x14fd44['OEesi'],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0x8b)],null,_0x18a414),process[_0x421640(0x93)](0x1)),console[_0x421640(0xd2)](_0x421640(0x96)+JSON[_0x421640(0xd0)](_0x9ebff8)),await _0x14fd44[_0x421640(0xd8)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44['uAbyR'],_0x9ebff8,_0x18a414),process[_0x421640(0x93)](0x1);}catch(_0x54db0a){console[_0x421640(0xd2)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x54db0a[_0x421640(0x8c)]),await _0x14fd44[_0x421640(0xc7)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0xa9)],_0x54db0a,_0x18a414),process[_0x421640(0x93)](0x1);}};function a14_0x3fc2(){const _0x503197=['List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','handler','43964vsJhQq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','uuid','description','QvAbT','XdSud','password','name','table','cloud-provider','OEesi','1845429cudEml','body','epilogue','allGridProfiles','existsSync','argv','statusCode','ERROR','FAXNm','AJGJh','jsUem','aNMMh','GET','options','server-error','FlAgx','../../config/constants','stringify','push','error','910943LTcoqO','qRUps','/packages/cli/get-grid-profiles','YhYtD','dRZCZ','OKLLv','type','unknown-error','all-grid-profiles','/packages/cli/get-all-grid-profiles','init-not-called','ZOmUY','unauthorised','list-grid-profiles-called','username','34192nuHQdQ','3901830QEQjCX','TzCgc','stack','vjxef','INFO','log','MZCXz','requestId','zqAdQ','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','HXtwe','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HFPyW','2zowrGN','grid-profile-name','parse','https://','arqKr','Sncnt','70KeTDAT','../../utils/instrumentationUtils','3904516bSuYJj','981SwNKgd','concurrency','Browserstack','MaTIS','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','list','bstackUsername','4570594Tdydec','tcOto','WzcED','BLTdI','10HCgEcm','desc','help','got','boolean'];a14_0x3fc2=function(){return _0x503197;};return a14_0x3fc2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15_0x31fd8c=a15_0x5379;function a15_0x2594(){const _0x13a0b1=['mRTws','init-not-called','status','rRmCy','builder','unknown-error','password','help','list','grid','../../utils/instrumentationUtils','grid-id','body','log','144uwbDZY','got','running','vKRRc','readFileSync','cluster-name','phPYZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','142MqXXpk','statusCode','10583DSucNT','INFO','grid-name','error','GET','Failed\x20to\x20list\x20resources!\x20Error:\x20','Browserstack','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grids','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','/packages/cli/get-all-grids','kUQRK','parse','queued','BoTJu','https://','handler','2374030MdTiHh','bstackUsername','ERROR','zrMCH','PlmrW','YSXRu','zcCQh','username','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','22460WvXeaK','EbfXS','clusterName','description','oMZWJ','arJar','1765731QRANpZ','8pRRmRO','222HyFLyx','type','boolean','WduKk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','requestId','CwQLb','table','BUrch','unauthorised','all-grids','stack','sNyWl','5807000saQBAA','4491319bVSTPk','../../config/constants','6835338eiMhUi','epilogue','tdlzo','push','ZlWjy','name','WnTlY','6IGpIAW','options','desc','usage','command','JTAWQ','exit','list-grids-called'];a15_0x2594=function(){return _0x13a0b1;};return a15_0x2594();}function a15_0x5379(_0x1a097d,_0x5b47a5){const _0x259417=a15_0x2594();return a15_0x5379=function(_0x537958,_0x100767){_0x537958=_0x537958-0x19b;let _0xbfacb4=_0x259417[_0x537958];return _0xbfacb4;},a15_0x5379(_0x1a097d,_0x5b47a5);}(function(_0x496fb9,_0x3cc8d7){const _0xfc0d9d=a15_0x5379,_0x495951=_0x496fb9();while(!![]){try{const _0x5b6274=-parseInt(_0xfc0d9d(0x1eb))/0x1*(-parseInt(_0xfc0d9d(0x1e9))/0x2)+-parseInt(_0xfc0d9d(0x1b4))/0x3*(-parseInt(_0xfc0d9d(0x1ac))/0x4)+parseInt(_0xfc0d9d(0x1a3))/0x5*(parseInt(_0xfc0d9d(0x1cb))/0x6)+parseInt(_0xfc0d9d(0x1c2))/0x7*(-parseInt(_0xfc0d9d(0x1b3))/0x8)+parseInt(_0xfc0d9d(0x1c4))/0x9+parseInt(_0xfc0d9d(0x1c1))/0xa+-parseInt(_0xfc0d9d(0x1b2))/0xb*(parseInt(_0xfc0d9d(0x1e1))/0xc);if(_0x5b6274===_0x3cc8d7)break;else _0x495951['push'](_0x495951['shift']());}catch(_0x54b1bc){_0x495951['push'](_0x495951['shift']());}}}(a15_0x2594,0x65146));const fs=require('fs'),got=require(a15_0x31fd8c(0x1e2)),{table}=require(a15_0x31fd8c(0x1bb)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x31fd8c(0x1c3)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x31fd8c(0x1dd));exports[a15_0x31fd8c(0x1cf)]='grids',exports[a15_0x31fd8c(0x1cd)]=a15_0x31fd8c(0x19b),exports[a15_0x31fd8c(0x1d7)]=function(_0x4802d6){const _0x5939c8=a15_0x31fd8c,_0x3aa879={};_0x3aa879[_0x5939c8(0x1a9)]=_0x5939c8(0x1ab),_0x3aa879[_0x5939c8(0x1c6)]=_0x5939c8(0x1b6),_0x3aa879[_0x5939c8(0x19d)]='help';const _0x1c9cab=_0x3aa879,_0x14bf23={};_0x14bf23[_0x5939c8(0x1af)]=_0x1c9cab[_0x5939c8(0x1a9)],_0x14bf23[_0x5939c8(0x1b5)]=_0x1c9cab['tdlzo'];const _0x10ea20={};return _0x10ea20[_0x5939c8(0x1be)]=_0x14bf23,_0x4802d6[_0x5939c8(0x1ce)](HELP_HEADER_MESSAGE[_0x5939c8(0x1db)][_0x5939c8(0x1dc)])[_0x5939c8(0x1c5)](HELP_FOOTER_MESSAGE)[_0x5939c8(0x1cc)](_0x10ea20)[_0x5939c8(0x1da)](_0x1c9cab[_0x5939c8(0x19d)])['argv'];},exports[a15_0x31fd8c(0x1a2)]=async function(_0x5707c4){const _0x4ad90c=a15_0x31fd8c,_0x2cf7b9={'BUrch':function(_0x4c99ed){return _0x4c99ed();},'zrMCH':_0x4ad90c(0x1e8),'phPYZ':function(_0x2785d2,_0x17f27a,_0x3b1527,_0x2c2757,_0x5cdaab,_0xd3710d,_0x2cd1d4){return _0x2785d2(_0x17f27a,_0x3b1527,_0x2c2757,_0x5cdaab,_0xd3710d,_0x2cd1d4);},'rRmCy':_0x4ad90c(0x1d2),'EbfXS':_0x4ad90c(0x1d4),'WnTlY':_0x4ad90c(0x1ef),'WduKk':function(_0x467416,_0x11d84f,_0x4d0b90){return _0x467416(_0x11d84f,_0x4d0b90);},'vKRRc':function(_0x4321e7,_0x29b0c2){return _0x4321e7!==_0x29b0c2;},'JTAWQ':function(_0x2dbc92,_0xd9cc36){return _0x2dbc92===_0xd9cc36;},'CwQLb':'\x0aFound\x20the\x20following\x20grids:\x0a','BoTJu':_0x4ad90c(0x1de),'Pkomq':_0x4ad90c(0x1ed),'PlmrW':_0x4ad90c(0x1d5),'YSXRu':_0x4ad90c(0x1e3),'oMZWJ':_0x4ad90c(0x19f),'HmuWm':_0x4ad90c(0x1e6),'ZlWjy':function(_0x53a5dc,_0x479622){return _0x53a5dc(_0x479622);},'mRTws':_0x4ad90c(0x1f3),'ooZRP':function(_0x54fbd4,_0x5c354d,_0x661fa5,_0x54814e,_0x4beae2,_0x1a4386,_0x4a4134){return _0x54fbd4(_0x5c354d,_0x661fa5,_0x54814e,_0x4beae2,_0x1a4386,_0x4a4134);},'sNyWl':_0x4ad90c(0x1bd),'arJar':'server-error','jOAzc':_0x4ad90c(0x1d8)};try{global_registry[_0x4ad90c(0x1b9)]=_0x2cf7b9['BUrch'](uuidv4);!fs['existsSync'](_0x2cf7b9[_0x4ad90c(0x1bc)](getCredentialsPath))&&(console['error'](_0x2cf7b9[_0x4ad90c(0x1a6)]),await _0x2cf7b9['phPYZ'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9[_0x4ad90c(0x1ad)],null,_0x5707c4),process['exit'](0x1));const _0x123ed5=JSON[_0x4ad90c(0x19e)](fs[_0x4ad90c(0x1e5)](_0x2cf7b9['BUrch'](getCredentialsPath)));let _0x25b9da=_0x4ad90c(0x1a1)+AG_API_URL+_0x4ad90c(0x1f4);_0x5707c4['allGrids']&&(_0x25b9da=_0x4ad90c(0x1a1)+AG_API_URL+_0x4ad90c(0x19c));const _0x57597e={'method':_0x2cf7b9[_0x4ad90c(0x1ca)],'headers':_0x2cf7b9[_0x4ad90c(0x1b7)](getAuthHeader,_0x123ed5[_0x4ad90c(0x1f1)]['username'],_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1d9)]),'throwHttpErrors':![]};global_registry[_0x4ad90c(0x1a4)]=_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1aa)],global_registry[_0x4ad90c(0x1f2)]=_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1d9)],_0x2cf7b9['phPYZ'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9['rRmCy'],messageTypes[_0x4ad90c(0x1ec)],null,null,_0x5707c4);const _0x1250c9=await _0x2cf7b9[_0x4ad90c(0x1b7)](got,_0x25b9da,_0x57597e);if(_0x2cf7b9[_0x4ad90c(0x1e4)](_0x1250c9,null)&&_0x2cf7b9[_0x4ad90c(0x1e4)](_0x1250c9,undefined)&&_0x2cf7b9[_0x4ad90c(0x1d0)](_0x1250c9['statusCode'],0xc8)){const _0x520639=JSON[_0x4ad90c(0x19e)](_0x1250c9[_0x4ad90c(0x1df)]);console[_0x4ad90c(0x1e0)](_0x2cf7b9[_0x4ad90c(0x1ba)]);const _0x331f58=[];_0x331f58[_0x4ad90c(0x1c7)]([_0x2cf7b9[_0x4ad90c(0x1a0)],_0x2cf7b9['Pkomq'],_0x2cf7b9[_0x4ad90c(0x1a7)],_0x2cf7b9[_0x4ad90c(0x1a8)],_0x2cf7b9[_0x4ad90c(0x1b0)],_0x2cf7b9['HmuWm']]),_0x520639['forEach'](_0x1a4047=>{const _0x4543ea=_0x4ad90c;_0x331f58[_0x4543ea(0x1c7)]([_0x1a4047['id'],_0x1a4047[_0x4543ea(0x1c9)],_0x1a4047['status'],_0x1a4047[_0x4543ea(0x1e3)],_0x1a4047[_0x4543ea(0x19f)],_0x1a4047[_0x4543ea(0x1ae)]]);}),console[_0x4ad90c(0x1e0)](_0x2cf7b9[_0x4ad90c(0x1c8)](table,_0x331f58)),process[_0x4ad90c(0x1d1)](0x0);}_0x2cf7b9[_0x4ad90c(0x1d0)](_0x1250c9[_0x4ad90c(0x1ea)],0x191)&&(console[_0x4ad90c(0x1ee)](_0x2cf7b9[_0x4ad90c(0x1d3)]),await _0x2cf7b9['ooZRP'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes['ERROR'],_0x2cf7b9[_0x4ad90c(0x1c0)],null,_0x5707c4),process[_0x4ad90c(0x1d1)](0x1)),console[_0x4ad90c(0x1ee)](_0x4ad90c(0x1b8)+JSON['stringify'](_0x1250c9)),await _0x2cf7b9[_0x4ad90c(0x1e7)](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9[_0x4ad90c(0x1b1)],_0x1250c9,_0x5707c4),process[_0x4ad90c(0x1d1)](0x1);}catch(_0xfb351e){console['error'](_0x4ad90c(0x1f0)+_0xfb351e[_0x4ad90c(0x1bf)]),await _0x2cf7b9['ooZRP'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9['jOAzc'],_0xfb351e,_0x5707c4),process['exit'](0x1);}};
|