browserstack-node-sdk 1.34.0 → 1.34.1
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/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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a9_0x45d5(){const _0x1856b2=['cluster-name','includes','ZIRLN','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','IlzWU','1554723YJlbwg','aRWxD','YqqRT','UpIKH','parse','bkuIF','stack','bpWQp','jJWWD','replace','rPdka','FnvBS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','qGOyf','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Grid\x20can\x20be\x20accessed\x20at:\x20','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','LOG','DghHk','metadata','baiET','YTKUt','256926hbskcq','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HfWYA','cSVBJ','name','ingress-nginx-controller','hubVersion','clusterRegion','connectionTimeout','10vUIrxE','qvIeq','WaiLW','Found\x20VPC:\x20','ktDal','sanux','abfgj','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','namespace','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','rMSGi','/packages/cli/get-grid-url?gridIdentifier=','lMgsV','7173287TWtXPq','cloud-provider','SoJEU','BbxJG','1|0|3|2|4','gridProfile','Grid\x20profile\x20fetched\x20from\x20backend','isNewAWSCluster','getResourceClientId','<PasswordPlaceholder>','non-aws-azure-cluster','createOtherResources','command','warn','HidwH','route53','QnRmy','Gzawj','init-not-called','dktNT','\x27\x20grid\x20profile','createdBy','description','info','writeFileSync','isSubnetsValid','pre-spawned-invalid-subnets','FSYvI','private-ingress-nginx-controller','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','handler','\x20are\x20not\x20present\x20in\x20VPC:\x20','create-grid-checks-null-response','HrLaY','desc','CLI\x20run\x20finished:\x20','maxNodes','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Spawning\x20the\x20grid\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Jgutr','DscTz','sendEventToBackend','gGtqz','pqQvU','gridName','oHqHz','DXoxM','://','iwqXl','cRTEZ','OnbBG','XPQvl','BSnHn','WINBy','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','iivbB','oBvan','create','gridProfileId','nwMQl','arvLj','JVXvm','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tiIEV','NxLRP','AYEou','BLJoD','yCMWs','alreadyPresent','type','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','user','toLowerCase','browserVersion','IjOWL','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','xXJUo','https://','iWnrN','SuoIT','length','concurrency','JOiAD','qkKkY','options','Rlbbe','KhCZV','vpc','usage','wXWCu','create-grid-checks-grid-already-exists','fetchLocalCreds','help','builder','XRYLS','xkHXD','bstackAccesskey','ZLrVP','pre-spawned-invalid-vpc','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','MGKEq','CXBVN','isPrivateGrid','s3bucket','Found\x20Subnets:\x20','ERROR','YGLIu','imJQB','ACSoN','CLI_RUN_STARTED','Cluster\x20','XFwoA','\x20in\x20existing\x20cluster\x20\x27','gridProfiles','grid-name','qMOKs','DoZVN','rFtaQ','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','vuXES','updatePreSpawnedCluster','Namespace\x20created','vVOqf','delay','vQCbH','cloudProvider','vBSku','VcRKD','iyYTZ','statusCode','stringify','pre-spawned-subnets-not-selected','configureIfNotConfigured','423712MAsQoq','iRaWM','sexdG','hbNUd','Spawning\x20Grid\x20on\x20the\x20Cluster','body','epilogue','SZpWQ','../../cloudproviders/utils','tMuNA','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','OyTTP','665010rSDTKE','hoUkD','OFgMH','103204UzUfQg','sendResourceDataToHST','noeqD','LYJXf','Spawning\x20grid\x20on\x20to\x20the\x20cluster','INFO','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','xfxRV','FvRQr','default','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','debug','LxtYH','\x20using\x20\x27','vpufJ','7|3|6|2|4|1|0|8|5','../../utils/gridComponents','true','../../utils/instrumentationUtils','cEdAG','Namespace\x20Created','string','clusterName','prespawned-cluster-args-not-passed','VDHAq','awEUF','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','region','bstackUsername','hNZcz','yxyks','gAlMQ','HsNxe','QnexA','1175060pWymCn','isClusterPresent','izyXY','https','UOUhz','../../utils/utilityMethods','Ogsak','jnRSU','grid','grid-spawning-failed','http','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','IhjSA','../../utils/createk8sClient','48NqmnDE','annotations','exit','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','private-grid','ejkrG','yaAYP','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.','get-grid-url-auth-failed','grid-profile','split','../../utils/userInput','iSvRb','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','BwYFF','CLI\x20run\x20started','hUrLQ','username','lpXjq','jQmSu','prKLc','/packages/cli/create-grid-checks','isVPCPresent','zxYcg','Creating\x20namespace','Browserstack','6|7|5|0|8|3|2|4|1','puKNZ','get-grid-url-non-200','BEIZQ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','qwDfu','YmsEy','Cluster\x20created\x20successfully','addListeners','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error','FXOBA','yfxPt','SrhfJ','create-grid-checks-invalid-profile','Grid\x20spawned\x20on\x20the\x20cluster','lQImX','privateGrid','Chhjk','password','LJTeT','pnNKG','ZjWxe','yZPpW','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','tDPla','PWbbe','requestId','HUYjV','existsSync','Ftoiz','getGridHostname','LpNMR','98cCsHMD','mhEjQ','defaultGridProfile','Deleting\x20the\x20CloudFormation\x20Stacks','UqUan','SkokH','reconnecting-websocket','message','zKKeO','../../utils/webSocketUtils','grsIF','pyBUJ','<UsernamePlaceholder>','Create\x20a\x20private/public\x20grid.','../../config/logger','MeKnN','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','30KwhceL','create-grid-called','JZqUt'];a9_0x45d5=function(){return _0x1856b2;};return a9_0x45d5();}const a9_0x28992b=a9_0x446c;(function(_0x5be46d,_0x1b8584){const _0x4a1753=a9_0x446c,_0x412997=_0x5be46d();while(!![]){try{const _0x40fde5=parseInt(_0x4a1753(0xf8))/0x1+-parseInt(_0x4a1753(0x104))/0x2+parseInt(_0x4a1753(0x183))/0x3*(-parseInt(_0x4a1753(0x107))/0x4)+-parseInt(_0x4a1753(0x129))/0x5+-parseInt(_0x4a1753(0x1a1))/0x6*(-parseInt(_0x4a1753(0x172))/0x7)+parseInt(_0x4a1753(0x137))/0x8*(parseInt(_0x4a1753(0x18b))/0x9)+parseInt(_0x4a1753(0x1aa))/0xa*(-parseInt(_0x4a1753(0x1b7))/0xb);if(_0x40fde5===_0x1b8584)break;else _0x412997['push'](_0x412997['shift']());}catch(_0x594e56){_0x412997['push'](_0x412997['shift']());}}}(a9_0x45d5,0x8e19c));function a9_0x446c(_0x2d6f53,_0x37de94){const _0x45d5c8=a9_0x45d5();return a9_0x446c=function(_0x446c5a,_0x3637ca){_0x446c5a=_0x446c5a-0xcb;let _0x5024b9=_0x45d5c8[_0x446c5a];return _0x5024b9;},a9_0x446c(_0x2d6f53,_0x37de94);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x28992b(0x178)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x28992b(0x17b)),{logger}=require(a9_0x28992b(0x180)),{inputCloudProviderKeys}=require(a9_0x28992b(0x142)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x28992b(0x12e)),{getCloudProviderObject}=require(a9_0x28992b(0x100)),{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('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x28992b(0x117)),{createK8sClient}=require(a9_0x28992b(0x136)),{sendInstrumentationEvent}=require(a9_0x28992b(0x119));exports[a9_0x28992b(0x1c3)]=a9_0x28992b(0x131),exports[a9_0x28992b(0x1d9)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x28992b(0xd0)]=function(_0x3d0d68){const _0x5ea4df=a9_0x28992b,_0x3c7e1b={};_0x3c7e1b[_0x5ea4df(0x1b0)]=_0x5ea4df(0x199),_0x3c7e1b['jnRSU']=_0x5ea4df(0x11c),_0x3c7e1b['mhEjQ']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3c7e1b[_0x5ea4df(0x16f)]=_0x5ea4df(0x197),_0x3c7e1b['jJWWD']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3c7e1b['YqqRT']=_0x5ea4df(0x1de),_0x3c7e1b[_0x5ea4df(0xd2)]=_0x5ea4df(0x17f),_0x3c7e1b[_0x5ea4df(0x1b9)]=_0x5ea4df(0xcf);const _0x56d8c1=_0x3c7e1b,_0x5a77e1={};_0x5a77e1[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x1b0)],_0x5a77e1['type']=_0x56d8c1[_0x5ea4df(0x130)];const _0x46c7af={};_0x46c7af[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x173)],_0x46c7af['type']=_0x56d8c1['jnRSU'];const _0x162a7c={};_0x162a7c[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x16f)],_0x162a7c[_0x5ea4df(0x1fd)]=_0x56d8c1[_0x5ea4df(0x130)];const _0x4677a6={};_0x4677a6['description']=_0x56d8c1[_0x5ea4df(0x193)],_0x4677a6[_0x5ea4df(0x1fd)]=_0x56d8c1['jnRSU'];const _0x576b14={};_0x576b14[_0x5ea4df(0x1cd)]=_0x56d8c1[_0x5ea4df(0x18d)],_0x576b14['type']=_0x56d8c1[_0x5ea4df(0x130)];const _0x38c2d3={};_0x38c2d3['description']=_0x56d8c1[_0x5ea4df(0xd2)],_0x38c2d3[_0x5ea4df(0x1fd)]=_0x56d8c1['jnRSU'];const _0x4b37fd={};return _0x4b37fd[_0x5ea4df(0xe5)]=_0x5a77e1,_0x4b37fd[_0x5ea4df(0x140)]=_0x46c7af,_0x4b37fd[_0x5ea4df(0x186)]=_0x162a7c,_0x4b37fd['cloud-provider']=_0x4677a6,_0x4b37fd[_0x5ea4df(0x122)]=_0x576b14,_0x4b37fd[_0x5ea4df(0x13b)]=_0x38c2d3,_0x3d0d68['usage'](HELP_HEADER_MESSAGE[_0x5ea4df(0x1f1)])[_0x5ea4df(0xfe)](HELP_FOOTER_MESSAGE)[_0x5ea4df(0x20c)](_0x4b37fd)[_0x5ea4df(0xcf)](_0x56d8c1[_0x5ea4df(0x1b9)])['argv'];},exports[a9_0x28992b(0x1d5)]=async function(_0x365fb0){const _0x51d05a=a9_0x28992b,_0x173de8={'OyTTP':_0x51d05a(0x1c4),'QnRmy':_0x51d05a(0x133),'iRaWM':_0x51d05a(0x12c),'yfxPt':_0x51d05a(0x199),'sanux':_0x51d05a(0x11c),'wXWCu':_0x51d05a(0x1a2),'zlKlJ':_0x51d05a(0x197),'Jgutr':_0x51d05a(0x111),'bkuIF':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bpWQp':_0x51d05a(0x17f),'bACrK':'help','dktNT':_0x51d05a(0x151),'ZLrVP':_0x51d05a(0x15b),'AYEou':function(_0x5898fc){return _0x5898fc();},'qvIeq':function(_0x2fca8a){return _0x2fca8a();},'cEdAG':function(_0x21f4c4,_0x527fac){return _0x21f4c4!==_0x527fac;},'bERsh':_0x51d05a(0x14e),'VDHAq':_0x51d05a(0x1dc),'IhjSA':function(_0xe20777,_0x108905,_0x2ed8e9,_0x34ac98,_0x56d9db,_0x1d8863,_0x4a08ff){return _0xe20777(_0x108905,_0x2ed8e9,_0x34ac98,_0x56d9db,_0x1d8863,_0x4a08ff);},'XRYLS':_0x51d05a(0x184),'UpIKH':_0x51d05a(0x1c9),'iwqXl':_0x51d05a(0x17e),'ZjWxe':_0x51d05a(0x1c0),'VcRKD':'Adding\x20Websocket\x20listeners','MeKnN':function(_0x2990c8,_0x47c802){return _0x2990c8===_0x47c802;},'YGLIu':_0x51d05a(0x20d),'MCrYd':_0x51d05a(0xf3),'lpXjq':function(_0x5645e4,_0x1f9762){return _0x5645e4!==_0x1f9762;},'FXOBA':'yFqSW','wRECR':_0x51d05a(0x182),'cRTEZ':function(_0x30e069,_0x3394f7,_0x24ee5e,_0x54b8e1,_0x1f53df,_0x3bbedc,_0x3e368d,_0x114692){return _0x30e069(_0x3394f7,_0x24ee5e,_0x54b8e1,_0x1f53df,_0x3bbedc,_0x3e368d,_0x114692);},'UjjCC':_0x51d05a(0x11e),'prKLc':function(_0x16b7e3,_0x4a4fc6){return _0x16b7e3!==_0x4a4fc6;},'aRWxD':'rqUoN','lQImX':_0x51d05a(0x15a),'hbNUd':_0x51d05a(0x1c1),'oADdG':_0x51d05a(0x118),'QnexA':_0x51d05a(0x1e3),'BwYFF':_0x51d05a(0x1e2),'yxyks':function(_0x35277f,_0x122dd3){return _0x35277f===_0x122dd3;},'qGOyf':_0x51d05a(0x1ba),'SrhfJ':_0x51d05a(0x12d),'Chhjk':_0x51d05a(0x1c5),'zKKeO':'GET','HUYjV':function(_0x58140c,_0x5e441a,_0x3050bd){return _0x58140c(_0x5e441a,_0x3050bd);},'SuoIT':function(_0x263a2e,_0x17feea){return _0x263a2e===_0x17feea;},'sexdG':'pEYuO','MGKEq':_0x51d05a(0x1b1),'SZpWQ':_0x51d05a(0x1d7),'vuXES':function(_0x2fd076,_0x70b474){return _0x2fd076===_0x70b474;},'xfxRV':function(_0x78a0cb,_0xd3a890){return _0x78a0cb!==_0xd3a890;},'iivbB':_0x51d05a(0x154),'imJQB':_0x51d05a(0x176),'tDPla':_0x51d05a(0x1d4),'UCEjl':'create-grid-checks-auth-failed','BSnHn':function(_0xacbdd9,_0x11323e){return _0xacbdd9!==_0x11323e;},'yZPpW':function(_0x2bcb4d,_0x38b7a2){return _0x2bcb4d===_0x38b7a2;},'DoZVN':_0x51d05a(0xe2),'iSvRb':_0x51d05a(0x177),'mOjze':'create-grid-checks-non-200','ACSoN':_0x51d05a(0x1bd),'PWbbe':_0x51d05a(0x188),'LYJXf':_0x51d05a(0x147),'DghHk':_0x51d05a(0x155),'yaAYP':function(_0x98f327,_0x1e25b3,_0x5ee19f,_0x186db9,_0x13d3fc,_0x29e29c,_0x2c9c01,_0xf88d9a){return _0x98f327(_0x1e25b3,_0x5ee19f,_0x186db9,_0x13d3fc,_0x29e29c,_0x2c9c01,_0xf88d9a);},'puKNZ':_0x51d05a(0xcd),'ktDal':function(_0x41102c,_0x5325fd){return _0x41102c!==_0x5325fd;},'DXoxM':'QKBNm','hNZcz':function(_0x1ead6a,_0x547743){return _0x1ead6a===_0x547743;},'yCMWs':_0x51d05a(0x1ea),'hoUkD':_0x51d05a(0x1ed),'grsIF':_0x51d05a(0x1b6),'qwDfu':_0x51d05a(0x10d),'vQCbH':function(_0x2c4193,_0xd0eacb,_0x4cb2aa,_0x1b6a75,_0x1993dd,_0x9e8a0b,_0x25962c,_0x3e5ead){return _0x2c4193(_0xd0eacb,_0x4cb2aa,_0x1b6a75,_0x1993dd,_0x9e8a0b,_0x25962c,_0x3e5ead);},'DscTz':_0x51d05a(0x15f),'xXJUo':_0x51d05a(0x20a),'awEUF':_0x51d05a(0x10f),'QygvT':function(_0x661a84,_0x20a071,_0x1423e1,_0x552acc,_0x259089,_0x2a2d8,_0x3478e4,_0x1c70ef,_0x29b61d,_0xebe861,_0x386360,_0x44c651){return _0x661a84(_0x20a071,_0x1423e1,_0x552acc,_0x259089,_0x2a2d8,_0x3478e4,_0x1c70ef,_0x29b61d,_0xebe861,_0x386360,_0x44c651);},'cNiwM':function(_0x263ed1,_0x386ebd){return _0x263ed1===_0x386ebd;},'cSVBJ':_0x51d05a(0xe6),'jQmSu':_0x51d05a(0x116),'AnrNW':function(_0xe7408b,_0x433c58,_0x47f198,_0x4b271d,_0x12adce,_0xa813fb,_0x2a3f21){return _0xe7408b(_0x433c58,_0x47f198,_0x4b271d,_0x12adce,_0xa813fb,_0x2a3f21);},'WdHWc':_0x51d05a(0x144),'FnvBS':function(_0x51c646,_0x2f9caa){return _0x51c646===_0x2f9caa;},'WaiLW':function(_0x2523ac,_0x51f83a,_0x483554,_0x307912){return _0x2523ac(_0x51f83a,_0x483554,_0x307912);},'NxLRP':_0x51d05a(0x189),'XPQvl':_0x51d05a(0x1b3),'HsNxe':function(_0x56611d,_0x50dcee){return _0x56611d!==_0x50dcee;},'ejkrG':function(_0x413e82,_0x398704){return _0x413e82===_0x398704;},'YTKUt':_0x51d05a(0x169),'tiIEV':function(_0x436382,_0x378174){return _0x436382!=_0x378174;},'IjOWL':function(_0x2b4260,_0x17b1c1){return _0x2b4260!==_0x17b1c1;},'qkKkY':function(_0xfd6818,_0x4c34ad){return _0xfd6818>_0x4c34ad;},'JVXvm':function(_0x308310,_0x444a9d){return _0x308310===_0x444a9d;},'rPdka':_0x51d05a(0xd6),'IlzWU':function(_0x2767ef,_0x5429b8,_0xdb5b11,_0x503681,_0x47441e,_0x5ae458,_0x45fe96,_0x5a7057){return _0x2767ef(_0x5429b8,_0xdb5b11,_0x503681,_0x47441e,_0x5ae458,_0x45fe96,_0x5a7057);},'lcERh':_0x51d05a(0xf6),'HfWYA':_0x51d05a(0x19b),'CXBVN':_0x51d05a(0xd5),'arvLj':function(_0x3d7e53,_0x2b8894){return _0x3d7e53===_0x2b8894;},'vVOqf':_0x51d05a(0x1d1),'vBSku':_0x51d05a(0x1bb),'YmsEy':_0x51d05a(0x13e),'pnNKG':_0x51d05a(0x158),'pyBUJ':function(_0x86cd3d,_0x89302){return _0x86cd3d(_0x89302);},'nwMQl':function(_0x31312f,_0x2454a3){return _0x31312f===_0x2454a3;},'LpNMR':function(_0x3250a5,_0x1d615e){return _0x3250a5==_0x1d615e;},'Gzawj':_0x51d05a(0x14f),'shSNr':function(_0x37ef29,_0x2ce3bf){return _0x37ef29!==_0x2ce3bf;},'rMSGi':_0x51d05a(0x110),'izyXY':'Browserstack','FSYvI':_0x51d05a(0x11b),'LJTeT':_0x51d05a(0xec),'Ogsak':_0x51d05a(0x10b),'rFtaQ':_0x51d05a(0xfc),'bsLpM':function(_0xcd49af,_0x4426e9){return _0xcd49af===_0x4426e9;},'BLJoD':function(_0x47f8b2,_0x210192,_0x4f23a1,_0xf20196,_0x12bc5f,_0x1432bf,_0xa377aa,_0x43ca2e,_0x563efa,_0x4d0712,_0x3f05ed){return _0x47f8b2(_0x210192,_0x4f23a1,_0xf20196,_0x12bc5f,_0x1432bf,_0xa377aa,_0x43ca2e,_0x563efa,_0x4d0712,_0x3f05ed);},'iWnrN':_0x51d05a(0x160),'yidNF':_0x51d05a(0x1ee),'baiET':function(_0x465346,_0x1571ab,_0x4e86a9,_0x5e14ca,_0x565338){return _0x465346(_0x1571ab,_0x4e86a9,_0x5e14ca,_0x565338);},'UDMOk':_0x51d05a(0x1d3),'oBvan':_0x51d05a(0x1a6),'noeqD':'ingress-nginx','oHqHz':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','UGoNK':'get-grid-url-null-response','ThQSW':function(_0x9ad728,_0x392688){return _0x9ad728===_0x392688;},'HrLaY':_0x51d05a(0x121),'KhCZV':_0x51d05a(0x13f),'gAlMQ':function(_0x4f58fb,_0x512655){return _0x4f58fb!==_0x512655;},'JZqUt':function(_0x3b63a7,_0x172ed5,_0x169530,_0x5cf25f,_0x555076,_0x4d0f2a,_0x1b706d,_0x3a8019){return _0x3b63a7(_0x172ed5,_0x169530,_0x5cf25f,_0x555076,_0x4d0f2a,_0x1b706d,_0x3a8019);},'LxtYH':_0x51d05a(0x153),'vpufJ':function(_0x5b0237,_0x1c7469,_0x21cc5f,_0x473fcc,_0x3c667a,_0x27ad57){return _0x5b0237(_0x1c7469,_0x21cc5f,_0x473fcc,_0x3c667a,_0x27ad57);},'tMuNA':function(_0x2b8d07,_0x4170ca,_0x55f930,_0x123349,_0x2b57ae,_0x3e780e,_0x107e88){return _0x2b8d07(_0x4170ca,_0x55f930,_0x123349,_0x2b57ae,_0x3e780e,_0x107e88);},'OFgMH':_0x51d05a(0x132)};let _0xbfa9fe=![],_0x174e0d,_0x3d863b,_0x1777a8,_0x7a0b16,_0x587efe,_0x2ef632,_0x4f60fd,_0x1b76ef,_0x3b88f2,_0x3a2e03,_0x5e63a8,_0x8c548a,_0x3acf6b=0x1,_0x188ce8=0xe;try{global_registry[_0x51d05a(0x16c)]=_0x173de8[_0x51d05a(0x1f9)](uuidv4),global_registry[_0x51d05a(0xd9)]=![];!fs[_0x51d05a(0x16e)](_0x173de8[_0x51d05a(0x1ab)](getCredentialsPath))&&(_0x173de8['cEdAG'](_0x173de8['bERsh'],_0x173de8['bERsh'])?_0x5b8768['info']('Found\x20VPC:\x20'+_0x13ed2e+'\x20'):(console[_0x51d05a(0x15b)](_0x173de8[_0x51d05a(0x11f)]),await _0x173de8[_0x51d05a(0x135)](sendInstrumentationEvent,_0x365fb0,_0x173de8[_0x51d05a(0xd1)],messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0x18e)],null,_0x365fb0),process[_0x51d05a(0x139)](0x1)));await _0x173de8['IhjSA'](sendInstrumentationEvent,_0x365fb0,_0x173de8[_0x51d05a(0xd1)],messageTypes[_0x51d05a(0x10c)],null,null,_0x365fb0);const _0x41239f=JSON['parse'](fs['readFileSync'](_0x173de8[_0x51d05a(0x1f9)](getCredentialsPath)));global_registry[_0x51d05a(0x123)]=_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x148)],global_registry[_0x51d05a(0xd3)]=_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x164)];const _0x351133=WS_ENDPOINT['replace'](_0x173de8[_0x51d05a(0x1e8)],_0x41239f[_0x51d05a(0x150)]['username'])[_0x51d05a(0x194)](_0x173de8[_0x51d05a(0x167)],_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x164)]),_0x35ce15={};_0x35ce15['WebSocket']=ws,_0x35ce15[_0x51d05a(0x1a9)]=0x36ee80,_0x3a2e03=new ReconnectingWebSocket(_0x351133,[],_0x35ce15),logger[_0x51d05a(0x112)](_0x173de8[_0x51d05a(0xf2)]),webSocketUtils[_0x51d05a(0x159)](_0x3a2e03,_0x365fb0[_0x51d05a(0x1ff)],_0x365fb0['password']);let _0x3897e9=DEFAULT_GRID_NAME;if(_0x365fb0[_0x51d05a(0x11d)]||_0x365fb0[_0x51d05a(0xf0)]||_0x365fb0[_0x51d05a(0x122)]){if(_0x173de8[_0x51d05a(0x181)](_0x173de8[_0x51d05a(0xdd)],_0x173de8['MCrYd']))_0x144074['isPrivateGrid']=!![];else{if(!(_0x365fb0[_0x51d05a(0x11d)]&&_0x365fb0[_0x51d05a(0xf0)]&&_0x365fb0['region'])){if(_0x173de8[_0x51d05a(0x149)](_0x173de8[_0x51d05a(0x15c)],_0x173de8[_0x51d05a(0x15c)])){const _0x189678={};_0x189678[_0x51d05a(0x1fd)]=_0x4fa859[_0x51d05a(0x19c)],_0x189678[_0x51d05a(0x179)]=_0x51d05a(0xe1)+_0x130112+_0x51d05a(0x13a),_0x1c7d1e[_0x51d05a(0x1e1)](_0x312828,_0x189678,_0x173de8[_0x51d05a(0x103)]),_0x17228f[_0x51d05a(0x1ce)](_0x51d05a(0xe1)+_0x2d4159+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x18eccd=!![];}else _0x174e0d=_0x173de8['wRECR'],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8['UjjCC'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1);}![AWS,AZURE,GCP][_0x51d05a(0x187)](_0x365fb0[_0x51d05a(0xf0)][_0x51d05a(0x200)]())&&(_0x173de8['prKLc'](_0x173de8['aRWxD'],_0x173de8[_0x51d05a(0x18c)])?_0x350442[_0x51d05a(0x15b)](_0x51d05a(0x134)+_0x32f3ea+'\x20\x0a'+_0x348aef[_0x51d05a(0xf5)](_0x941542['stack'])):(_0x174e0d=_0x173de8[_0x51d05a(0x161)],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xfb)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1))),_0x365fb0[_0x51d05a(0x162)]&&_0x173de8[_0x51d05a(0x181)](_0x365fb0[_0x51d05a(0x162)][_0x51d05a(0x200)](),_0x173de8['oADdG'])&&(_0x173de8[_0x51d05a(0x11a)](_0x173de8[_0x51d05a(0x128)],_0x173de8[_0x51d05a(0x145)])?global_registry[_0x51d05a(0xd9)]=!![]:_0x43215a=_0x173de8[_0x51d05a(0x1c7)]),_0xbfa9fe=!![],_0x1777a8=_0x365fb0[_0x51d05a(0x11d)],_0x3d863b=_0x365fb0[_0x51d05a(0xf0)]['toLowerCase'](),_0x7a0b16=_0x365fb0[_0x51d05a(0x122)];}}_0x365fb0[_0x51d05a(0x1e4)]&&(_0x173de8[_0x51d05a(0x125)](_0x173de8['qGOyf'],_0x173de8[_0x51d05a(0x198)])?_0x3897e9=_0x365fb0['gridName']:_0x3016b1=_0x5ebfda[_0x13e2e9[_0x51d05a(0x1bc)]]);_0x365fb0['gridProfile']&&(_0x173de8[_0x51d05a(0x149)](_0x173de8[_0x51d05a(0x15e)],_0x173de8[_0x51d05a(0x163)])?global_registry[_0x51d05a(0x1bc)]=_0x365fb0[_0x51d05a(0x1bc)]:(_0x4a6df2=_0x138ab5['route53'],_0x10b264=_0x173de8['iRaWM']));global_registry[_0x51d05a(0x1e4)]=_0x3897e9;const _0x19f989={'method':_0x173de8[_0x51d05a(0x17a)],'headers':_0x173de8[_0x51d05a(0x16d)](getAuthHeader,_0x41239f[_0x51d05a(0x150)][_0x51d05a(0x148)],_0x41239f['Browserstack'][_0x51d05a(0x164)]),'throwHttpErrors':![]},_0x15517b='https://'+AG_API_URL+_0x51d05a(0x14c),_0x4ec9bd={};_0x4ec9bd[_0x51d05a(0x1e4)]=_0x3897e9;const _0x3ea63d={'searchParams':_0x4ec9bd,'throwHttpErrors':![],..._0x19f989},_0x1e3ec3=_0x3ea63d,_0x3a77b8=await _0x173de8['HUYjV'](got,_0x15517b,_0x1e3ec3);(_0x173de8[_0x51d05a(0x181)](_0x3a77b8,null)||_0x173de8[_0x51d05a(0x207)](_0x3a77b8,undefined))&&(_0x173de8[_0x51d05a(0x14b)](_0x173de8[_0x51d05a(0xfa)],_0x173de8[_0x51d05a(0xfa)])?_0x3b3c92[_0x51d05a(0x1bc)]=_0x5f4ce0[_0x51d05a(0x1bc)]:(_0x174e0d=_0x173de8[_0x51d05a(0xd7)],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes['ERROR'],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xff)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1)));_0x173de8[_0x51d05a(0xea)](_0x3a77b8[_0x51d05a(0xf4)],0x191)&&(_0x173de8[_0x51d05a(0x10e)](_0x173de8[_0x51d05a(0x1ef)],_0x173de8[_0x51d05a(0xde)])?(_0x174e0d=_0x173de8[_0x51d05a(0x16a)],await _0x173de8['cRTEZ'](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8['UCEjl'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1)):_0x4d665b[_0x51d05a(0x108)]());if(_0x173de8[_0x51d05a(0x1ec)](_0x3a77b8[_0x51d05a(0xf4)],0xc8)){if(_0x173de8[_0x51d05a(0x168)](_0x173de8[_0x51d05a(0xe7)],_0x173de8[_0x51d05a(0x143)])){const _0x1ce852={};_0x1ce852[_0x51d05a(0x1cd)]=_0x173de8[_0x51d05a(0x15d)],_0x1ce852['type']=_0x173de8[_0x51d05a(0x1af)];const _0x3e9b9a={};_0x3e9b9a['description']=_0x173de8[_0x51d05a(0xcc)],_0x3e9b9a[_0x51d05a(0x1fd)]=_0x173de8[_0x51d05a(0x1af)];const _0xc50f3f={};_0xc50f3f[_0x51d05a(0x1cd)]=_0x173de8['zlKlJ'],_0xc50f3f[_0x51d05a(0x1fd)]=_0x173de8[_0x51d05a(0x1af)];const _0x483be7={};_0x483be7['description']=_0x173de8[_0x51d05a(0x1df)],_0x483be7['type']=_0x173de8['sanux'];const _0x468b26={};_0x468b26[_0x51d05a(0x1cd)]=_0x173de8[_0x51d05a(0x190)],_0x468b26[_0x51d05a(0x1fd)]=_0x173de8[_0x51d05a(0x1af)];const _0x184fdd={};_0x184fdd[_0x51d05a(0x1cd)]=_0x173de8[_0x51d05a(0x192)],_0x184fdd['type']=_0x173de8[_0x51d05a(0x1af)];const _0x59dc1f={};return _0x59dc1f[_0x51d05a(0xe5)]=_0x1ce852,_0x59dc1f['grid-profile']=_0x3e9b9a,_0x59dc1f[_0x51d05a(0x186)]=_0xc50f3f,_0x59dc1f[_0x51d05a(0x1b8)]=_0x483be7,_0x59dc1f[_0x51d05a(0x122)]=_0x468b26,_0x59dc1f['private-grid']=_0x184fdd,_0x19f4a3[_0x51d05a(0xcb)](_0x595f9f[_0x51d05a(0x1f1)])[_0x51d05a(0xfe)](_0x331f52)[_0x51d05a(0x20c)](_0x59dc1f)['help'](_0x173de8['bACrK'])['argv'];}else _0x174e0d='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x51d05a(0xf5)](_0x3a77b8),await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes['ERROR'],_0x173de8[_0x51d05a(0xd1)],_0x173de8['mOjze'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1);}const _0x21524c=JSON[_0x51d05a(0x18f)](_0x3a77b8[_0x51d05a(0xfd)]),_0x3cbe06={};_0x3cbe06[_0x51d05a(0x1fd)]=WS_EVENTS['CLI_RUN_STARTED'],_0x3cbe06[_0x51d05a(0x179)]=_0x51d05a(0x146),webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x3cbe06);const _0x384c97={};_0x384c97[_0x51d05a(0x1fd)]=WS_EVENTS['LOG'],_0x384c97[_0x51d05a(0x179)]=_0x173de8[_0x51d05a(0xdf)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x384c97);if(_0x21524c[_0x51d05a(0x1fc)]){if(_0x173de8[_0x51d05a(0xea)](_0x173de8[_0x51d05a(0x16b)],_0x173de8[_0x51d05a(0x10a)])){const _0x12d6aa=_0x173de8[_0x51d05a(0x1ca)][_0x51d05a(0x141)]('|');let _0x3c566b=0x0;while(!![]){switch(_0x12d6aa[_0x3c566b++]){case'0':const _0xc43b9={};_0xc43b9[_0x51d05a(0x1fd)]=_0x2e8832[_0x51d05a(0x19c)],_0xc43b9[_0x51d05a(0x179)]=_0x276ab2,_0x34d006['sendEventToBackend'](_0x56f7f0,_0xc43b9);continue;case'1':_0x19afd9[_0x51d05a(0x201)]=_0x1add99[_0x51d05a(0x201)];continue;case'2':_0x3cdcba[_0x51d05a(0x11d)]=_0x9c2e55;continue;case'3':_0x396c68[_0x51d05a(0x1a8)]=_0x42c289;continue;case'4':_0x3e1373[_0x51d05a(0x1a7)]=_0x3521c2[_0x51d05a(0x1a7)];continue;case'5':_0x1603f1[_0x51d05a(0x1ce)](_0xc0d201);continue;case'6':const _0x3e4410={};_0x3e4410['type']=_0x22419e['CLI_RUN_STARTED'],_0x3e4410[_0x51d05a(0x179)]=_0x51d05a(0x146),_0x39d021['sendEventToBackend'](_0x1e7974,_0x3e4410);continue;case'7':_0xb920c=_0x51d05a(0x1dd)+_0x1eeca3+_0x51d05a(0xe3)+_0x3c6e20+'\x27';continue;case'8':_0x46e34f[_0x51d05a(0xf0)]=_0x1105c5;continue;}break;}}else _0x174e0d=_0x173de8[_0x51d05a(0x19d)],await _0x173de8[_0x51d05a(0x13d)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8['XRYLS'],_0x173de8[_0x51d05a(0x152)],_0x173de8[_0x51d05a(0xd4)]),logger['error'](_0x174e0d),process[_0x51d05a(0x139)](0x1);}const _0xf53109=_0x21524c[_0x51d05a(0xe4)];let _0x52d88a=_0xf53109[_0x21524c[_0x51d05a(0x174)]];_0x365fb0[_0x51d05a(0x1bc)]&&(_0x173de8[_0x51d05a(0x1ae)](_0x173de8[_0x51d05a(0x1e6)],_0x173de8[_0x51d05a(0x1e6)])?_0x4cbc0e[_0x51d05a(0xd9)]=!![]:_0x52d88a=_0xf53109[_0x365fb0[_0x51d05a(0x1bc)]]);if(_0x173de8[_0x51d05a(0x124)](_0xbfa9fe,![])){if(_0x173de8[_0x51d05a(0x1ae)](_0x173de8[_0x51d05a(0x1fb)],_0x173de8[_0x51d05a(0x105)])){_0x173de8['MeKnN'](_0x52d88a,undefined)&&(_0x173de8[_0x51d05a(0x125)](_0x173de8[_0x51d05a(0x17c)],_0x173de8[_0x51d05a(0x17c)])?(_0x174e0d=_0x173de8[_0x51d05a(0x156)],await _0x173de8[_0x51d05a(0xef)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8['XRYLS'],_0x173de8[_0x51d05a(0x1e0)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process['exit'](0x1)):_0xe45b10[_0x51d05a(0xf0)]={});global_registry[_0x51d05a(0x1f2)]=_0x52d88a['id'],_0x174e0d='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x3897e9+_0x51d05a(0x114)+_0x52d88a[_0x51d05a(0x1a5)]+_0x51d05a(0x1cb),logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x166cf0={};_0x166cf0[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x166cf0[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x166cf0),_0x3d863b=_0x52d88a[_0x51d05a(0xf0)],_0x1777a8=_0x52d88a[_0x51d05a(0x11d)],_0x7a0b16=_0x52d88a['region'],_0x587efe=_0x52d88a[_0x51d05a(0x209)],_0x2ef632=_0x52d88a['instanceType'],_0x4f60fd=_0x52d88a[_0x51d05a(0x20f)],securityGroups=_0x52d88a['securityGroups'],subnets=_0x52d88a['subnets'],_0x1b76ef=_0x52d88a[_0x51d05a(0xda)],_0x3acf6b=_0x52d88a['minNodes'],_0x188ce8=_0x52d88a[_0x51d05a(0x1db)],_0x5e63a8=_0x21524c[_0x51d05a(0x1a7)],_0x8c548a=_0x21524c[_0x51d05a(0x201)],_0x173de8[_0x51d05a(0x1ae)](_0x52d88a[_0x51d05a(0x162)],undefined)&&_0x52d88a[_0x51d05a(0x162)]&&(_0x173de8[_0x51d05a(0x11a)](_0x173de8[_0x51d05a(0x204)],_0x173de8[_0x51d05a(0x120)])?global_registry[_0x51d05a(0xd9)]=!![]:_0x30dbb4[_0x51d05a(0x1ce)](_0x51d05a(0xdb)+_0x22680e[_0x51d05a(0xf5)](_0xbb7f0f)+'\x20')),_0x173de8['QygvT'](updateGlobalRegistryWithConfig,_0x3d863b,_0x1777a8,_0x7a0b16,_0x587efe,_0x2ef632,_0x1b76ef,_0x52d88a,_0x5e63a8,_0x8c548a,_0x3acf6b,_0x188ce8);}else{const _0x15152f={};_0x15152f[_0x51d05a(0x1fd)]=_0x3d5078[_0x51d05a(0x19c)],_0x15152f[_0x51d05a(0x179)]=_0x452124,_0x3ba6a9[_0x51d05a(0x1e1)](_0x5840f6,_0x15152f,_0x173de8['ZLrVP'],!![]);}}else{if(_0x173de8['cNiwM'](_0x173de8[_0x51d05a(0x1a4)],_0x173de8[_0x51d05a(0x1a4)])){const _0x36b2e0=_0x173de8[_0x51d05a(0x14a)][_0x51d05a(0x141)]('|');let _0x9747e7=0x0;while(!![]){switch(_0x36b2e0[_0x9747e7++]){case'0':global_registry[_0x51d05a(0x11d)]=_0x1777a8;continue;case'1':global_registry[_0x51d05a(0x1a8)]=_0x7a0b16;continue;case'2':const _0xa193e5={};_0xa193e5[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0xa193e5[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0xa193e5);continue;case'3':_0x174e0d=_0x51d05a(0x1dd)+_0x3897e9+_0x51d05a(0xe3)+_0x1777a8+'\x27';continue;case'4':global_registry[_0x51d05a(0xf0)]=_0x3d863b;continue;case'5':global_registry[_0x51d05a(0x201)]=_0x21524c['browserVersion'];continue;case'6':logger[_0x51d05a(0x1ce)](_0x174e0d);continue;case'7':const _0x5998cd={};_0x5998cd[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0xe0)],_0x5998cd[_0x51d05a(0x179)]=_0x51d05a(0x146),webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x5998cd);continue;case'8':global_registry[_0x51d05a(0x1a7)]=_0x21524c[_0x51d05a(0x1a7)];continue;}break;}}else _0x7b77b7=_0x590621['gridName'];}const _0x1bece5=await _0x173de8['AnrNW'](getCloudProviderObject,_0x3d863b,_0x1777a8,_0x3897e9,_0x3a2e03,webSocketUtils,_0x365fb0),_0x13226f=_0x41239f['cloudProvider']||{};if(_0x173de8[_0x51d05a(0x181)](_0x13226f[_0x3d863b],undefined)){logger[_0x51d05a(0x1ce)](_0x173de8['WdHWc']);_0x173de8[_0x51d05a(0x196)](_0x41239f[_0x51d05a(0xf0)],undefined)&&(_0x41239f[_0x51d05a(0xf0)]={});_0x41239f[_0x51d05a(0xf0)][_0x3d863b]={};const _0x4dbc8a=await _0x173de8[_0x51d05a(0x1ac)](inputCloudProviderKeys,_0x3d863b,_0x41239f,_0x1bece5);fs[_0x51d05a(0x1cf)](_0x173de8[_0x51d05a(0x1f9)](getCredentialsPath),JSON[_0x51d05a(0xf5)](_0x4dbc8a)),logger[_0x51d05a(0x112)](_0x173de8[_0x51d05a(0x1f8)]);}else{_0x174e0d=_0x173de8[_0x51d05a(0x1eb)];const _0x129f8c={};_0x129f8c['type']=WS_EVENTS[_0x51d05a(0x19c)],_0x129f8c['message']=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x129f8c),logger[_0x51d05a(0x1ce)](_0x174e0d),await _0x1bece5[_0x51d05a(0xce)](_0x13226f);}_0x1bece5[_0x51d05a(0xf7)]();_0x173de8[_0x51d05a(0x127)](_0x3d863b,AZURE)&&_0x1bece5[_0x51d05a(0x108)]();let _0x5e903d;if(_0x173de8[_0x51d05a(0x13c)](_0xbfa9fe,![])){_0x174e0d=_0x51d05a(0x1fe)+_0x7a0b16+').';const _0x3788ed={};_0x3788ed[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x3788ed[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x3788ed),logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x3ec0b9=await _0x1bece5[_0x51d05a(0x12a)]();if(_0x3ec0b9){const _0x593dd7={};_0x593dd7[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x593dd7[_0x51d05a(0x179)]=_0x51d05a(0xe1)+_0x1777a8+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x593dd7,_0x173de8[_0x51d05a(0x103)]),logger[_0x51d05a(0x1ce)](_0x51d05a(0xe1)+_0x1777a8+_0x51d05a(0x13a)),_0xbfa9fe=!![];}else{const _0x32cbd6={};_0x32cbd6[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x32cbd6[_0x51d05a(0x179)]=_0x173de8[_0x51d05a(0x1a0)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x32cbd6),logger['info'](_0x173de8[_0x51d05a(0x1a0)]);const _0x1f42f4=_0x173de8['tiIEV'](_0x4f60fd,null)&&_0x173de8[_0x51d05a(0x127)](_0x4f60fd,undefined),_0x1f8d78=_0x173de8[_0x51d05a(0x1f7)](subnets,null)&&_0x173de8[_0x51d05a(0x202)](subnets,undefined)&&_0x173de8[_0x51d05a(0x20b)](subnets[_0x51d05a(0x208)],0x0);if(_0x1f42f4){_0x173de8[_0x51d05a(0x1f5)](_0x1f8d78,![])&&(_0x174e0d=_0x173de8[_0x51d05a(0x195)],await _0x173de8[_0x51d05a(0x18a)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8['XRYLS'],_0x173de8['lcERh'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1));const _0x570c40=await _0x1bece5[_0x51d05a(0x14d)](_0x4f60fd);_0x173de8[_0x51d05a(0xea)](_0x570c40,![])?(_0x174e0d=_0x173de8[_0x51d05a(0x1a3)],await _0x173de8['cRTEZ'](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xd8)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1)):logger[_0x51d05a(0x1ce)](_0x51d05a(0x1ad)+_0x4f60fd+'\x20');const _0x5c6df8=await _0x1bece5[_0x51d05a(0x1d0)](subnets,_0x4f60fd);_0x173de8[_0x51d05a(0x1f4)](_0x5c6df8[0x0],![])?(_0x174e0d='Subnets:\x20'+JSON['stringify'](_0x5c6df8[0x1])+_0x51d05a(0x1d6)+_0x4f60fd+_0x51d05a(0x102),await _0x173de8[_0x51d05a(0x13d)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0xed)],_0x173de8[_0x51d05a(0xd4)]),logger['error'](_0x174e0d),process['exit'](0x1)):logger[_0x51d05a(0x1ce)](_0x51d05a(0xdb)+JSON[_0x51d05a(0xf5)](subnets)+'\x20'),await _0x1bece5['setupNewCluster'](_0x4f60fd,subnets);}else{const _0x2dca9d=_0x173de8[_0x51d05a(0xf1)][_0x51d05a(0x141)]('|');let _0x1229c6=0x0;while(!![]){switch(_0x2dca9d[_0x1229c6++]){case'0':logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0x157)]);continue;case'1':const _0x207350={};_0x207350[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x207350['message']=_0x173de8[_0x51d05a(0x157)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x207350);continue;case'2':const _0x2d54b7={};_0x2d54b7[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x2d54b7[_0x51d05a(0x179)]=_0x51d05a(0x158),webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x2d54b7);continue;case'3':await _0x1bece5['setupNewCluster']();continue;case'4':logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0x166)]);continue;}break;}}}}_0xbfa9fe&&_0x173de8[_0x51d05a(0x1f4)](_0x3d863b,AZURE)&&(await _0x1bece5[_0x51d05a(0xeb)](),await _0x1bece5[_0x51d05a(0x1c2)]());const [_0xb05fb9,_0x1c3ed2,_0x2939d9,_0x3d9bf4,_0x1d5120,_0x3b5939]=await _0x173de8[_0x51d05a(0x17d)](createK8sClient,_0x1bece5);_0x173de8[_0x51d05a(0x1f3)](_0xbfa9fe,![])&&_0x173de8[_0x51d05a(0x171)](_0x3d863b,AWS)&&(global_registry[_0x51d05a(0x1be)]=!![],_0x5e903d=await _0x1bece5['setupAutoscaler'](_0xb05fb9,_0x365fb0));try{_0x3b88f2=_0x173de8[_0x51d05a(0x17d)](kebabCase,_0x3897e9),logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0x1c8)]);const _0x2e4f97={};_0x2e4f97[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x2e4f97[_0x51d05a(0x179)]=_0x173de8[_0x51d05a(0x1c8)],webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x2e4f97);if(_0x173de8['shSNr'](_0x3b88f2,_0x173de8[_0x51d05a(0x1b4)])){const _0x5238bf={};_0x5238bf[_0x51d05a(0x1cc)]=_0x173de8[_0x51d05a(0x12b)],_0x5238bf['managedBy']=_0x173de8[_0x51d05a(0x12b)];const _0x8896a8={};_0x8896a8[_0x51d05a(0x1a5)]=_0x3b88f2,_0x8896a8[_0x51d05a(0x138)]=_0x5238bf;const _0x230ed6={};_0x230ed6[_0x51d05a(0x19e)]=_0x8896a8;let _0x256575=_0x230ed6;const _0x5b04f9={};_0x5b04f9[_0x51d05a(0xfd)]=_0x256575,await _0xb05fb9['createNamespace'](_0x5b04f9),logger['info'](_0x173de8[_0x51d05a(0x1d2)]);}const _0x558232={};_0x558232['type']=WS_EVENTS[_0x51d05a(0x19c)],_0x558232['message']=_0x173de8[_0x51d05a(0x165)],webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x558232);const _0x589789={};_0x589789[_0x51d05a(0x1fd)]=WS_EVENTS['LOG'],_0x589789['message']=_0x173de8[_0x51d05a(0x12f)],webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x589789),logger[_0x51d05a(0x1ce)](_0x173de8[_0x51d05a(0xe8)]);let _0x13d82c={};_0x173de8['bsLpM'](_0x3d863b,AZURE)&&(_0x13d82c={'clientId':await _0x1bece5[_0x51d05a(0x1bf)]('turboscale-managed-identity-'+_0x1777a8)});await _0x173de8[_0x51d05a(0x1fa)](addGridComponents,_0xb05fb9,_0x1c3ed2,_0x2939d9,_0x3d9bf4,_0x3b88f2,_0x1777a8,_0x5e903d,_0x1d5120,_0x3b5939,_0x13d82c),_0x174e0d=_0x173de8[_0x51d05a(0x206)],logger[_0x51d05a(0x1ce)](_0x174e0d);const _0xe11c6a={};_0xe11c6a[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0xe11c6a[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0xe11c6a),_0x174e0d=_0x173de8['yidNF'],logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x1930f1={};_0x1930f1[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x1930f1[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x1930f1),await _0x173de8[_0x51d05a(0x19f)](waitForDeployment,_0x1c3ed2,_0x3b88f2,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x18fd66=await _0x173de8['HUYjV'](getNamespaceUID,_0xb05fb9,_0x3b88f2);let _0x2a9423=global_registry[_0x51d05a(0xd9)]?_0x173de8['UDMOk']:_0x173de8[_0x51d05a(0x1f0)];const _0x5cd7dd={};_0x5cd7dd[_0x51d05a(0x1a5)]=_0x2a9423,_0x5cd7dd[_0x51d05a(0x1b2)]=_0x173de8[_0x51d05a(0x109)];let _0x3dc9ce=await _0xb05fb9['readNamespacedService'](_0x5cd7dd),_0x1bf9a8=_0x1bece5[_0x51d05a(0x170)](_0x3dc9ce)+'/'+_0x3b88f2,_0x50f2eb=_0x173de8[_0x51d05a(0x1c7)];try{const _0x296463=_0x51d05a(0x205)+AG_API_URL+_0x51d05a(0x1b5)+_0x18fd66,_0x237801=await _0x173de8[_0x51d05a(0x16d)](got,_0x296463,_0x19f989);(_0x173de8[_0x51d05a(0x171)](_0x237801,null)||_0x173de8[_0x51d05a(0x171)](_0x237801,undefined))&&(_0x174e0d=_0x173de8[_0x51d05a(0x1e5)],await _0x173de8[_0x51d05a(0xef)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes['ERROR'],_0x173de8[_0x51d05a(0xd1)],_0x173de8['UGoNK'],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1));_0x173de8['ThQSW'](_0x237801[_0x51d05a(0xf4)],0x191)&&(_0x174e0d=_0x173de8[_0x51d05a(0x1d8)],await _0x173de8[_0x51d05a(0x1e9)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0x20e)],_0x173de8[_0x51d05a(0xd4)]),logger[_0x51d05a(0x15b)](_0x174e0d),process[_0x51d05a(0x139)](0x1));_0x173de8[_0x51d05a(0x126)](_0x237801[_0x51d05a(0xf4)],0xc8)&&(_0x174e0d=_0x51d05a(0xe9)+JSON[_0x51d05a(0xf5)](_0x237801),await _0x173de8[_0x51d05a(0x185)](reportToGalactusAndSendToEDS,_0x365fb0,_0x3a2e03,_0x174e0d,messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0xd1)],_0x173de8[_0x51d05a(0x113)],_0x173de8[_0x51d05a(0xd4)]),logger['error'](_0x174e0d),process['exit'](0x1));const _0x420a5c=JSON[_0x51d05a(0x18f)](_0x237801[_0x51d05a(0xfd)]);_0x420a5c[_0x51d05a(0x1c6)]&&(_0x1bf9a8=_0x420a5c[_0x51d05a(0x1c6)],_0x50f2eb=_0x173de8[_0x51d05a(0xf9)]),global_registry[_0x51d05a(0xd9)]&&(_0x50f2eb=_0x173de8[_0x51d05a(0x1c7)]);}catch(_0x2d6bd7){}_0x174e0d=_0x51d05a(0x19a)+_0x1bf9a8+'\x20',logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x4ff99c={};_0x4ff99c[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x4ff99c[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x4ff99c),_0x174e0d=_0x51d05a(0x1f6)+_0x50f2eb+_0x51d05a(0x1e7)+_0x1bf9a8+'/wd/hub',logger[_0x51d05a(0x1ce)](_0x174e0d);const _0x568245={};_0x568245[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x568245[_0x51d05a(0x179)]=_0x174e0d,webSocketUtils[_0x51d05a(0x1e1)](_0x3a2e03,_0x568245);const _0x25a411={};_0x25a411[_0x51d05a(0x1fd)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x25a411['message']=_0x51d05a(0x1da)+_0x1bf9a8,webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x25a411),await webSocketUtils[_0x51d05a(0xee)](0x7d0);}catch(_0x2221b8){logger['error'](_0x51d05a(0x203)+_0x2221b8+'\x20\x0a'+JSON['stringify'](_0x2221b8[_0x51d05a(0x191)]));if(_0x173de8[_0x51d05a(0x125)](_0xbfa9fe,![]))try{logger['info'](_0x51d05a(0x175)),await _0x173de8[_0x51d05a(0x115)](removeGridComponents,_0xb05fb9,_0x1c3ed2,_0x2939d9,_0x3d9bf4,_0x3b88f2),await _0x1bece5['deleteCluster'](_0xb05fb9,global_registry[_0x51d05a(0x1a8)]);}catch(_0x2caf54){logger[_0x51d05a(0x15b)](_0x51d05a(0x134)+_0x2caf54+'\x20\x0a'+JSON['stringify'](_0x2caf54[_0x51d05a(0x191)]));}throw _0x2221b8;}}catch(_0x59a9d4){const _0x5e340c='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x59a9d4+'\x20\x0a'+JSON['stringify'](_0x59a9d4[_0x51d05a(0x191)]);if(_0x3a2e03){const _0x24f90e={};_0x24f90e[_0x51d05a(0x1fd)]=WS_EVENTS[_0x51d05a(0x19c)],_0x24f90e['message']=_0x5e340c,webSocketUtils['sendEventToBackend'](_0x3a2e03,_0x24f90e,_0x173de8[_0x51d05a(0xd4)],!![]);}await webSocketUtils[_0x51d05a(0xee)](0x7d0);const _0x453f9b={};_0x453f9b[_0x51d05a(0x15b)]=_0x5e340c,await _0x173de8[_0x51d05a(0x101)](sendInstrumentationEvent,_0x365fb0,_0x173de8['XRYLS'],messageTypes[_0x51d05a(0xdc)],_0x173de8[_0x51d05a(0x106)],_0x453f9b,_0x365fb0),logger[_0x51d05a(0x15b)](_0x5e340c);}process[_0x51d05a(0x139)](0x0);};
|
|
1
|
+
function a9_0x2546(_0x56f5ce,_0xd166f1){const _0x3ab82d=a9_0x3ab8();return a9_0x2546=function(_0x25461a,_0x2d7c69){_0x25461a=_0x25461a-0x17e;let _0x2318b1=_0x3ab82d[_0x25461a];return _0x2318b1;},a9_0x2546(_0x56f5ce,_0xd166f1);}const a9_0x5110fc=a9_0x2546;function a9_0x3ab8(){const _0x4c4a18=['nYULP','vpc','isClusterPresent','help','mbIgD','pMuOR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','mZpye','tTxJX','NUVdI','bGtNC','isSubnetsValid','privateGrid','HMXwl','15HBEHKa','error','options','s3bucket','WJlvn','Deleting\x20the\x20CloudFormation\x20Stacks','TPlLP','grid-spawning-failed','OnCJm','GFmAB','pMYhI','cloudProvider','Uhzmd','concurrency','instanceType','uuid','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','kZqdN','region','bstackUsername','hubVersion','default','cTyHw','subnets','BMpKT','length','nGqWi','Found\x20Subnets:\x20','EsiNr','isVPCPresent','csLGS','warn','builder','Creating\x20namespace','ZGxba','vNGAZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oTcuL','Ergha','deleteCluster','BcdVO','JQpkC','Cybla','grid','1|2|3|4|0','uOrSi','12186210pTLjKC','TmkeN','message','Odely','UNOyL','pre-spawned-subnets-not-selected','eYSpa','password','LFHEA','LOG','sendResourceDataToHST','sendEventToBackend','statusCode','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','username','rPrlX','uHpTF','EBfpO','command','ehgse','\x27\x20grid\x20profile','Grid\x20can\x20be\x20accessed\x20at:\x20','1853574brOZFr','turboscale-managed-identity-','CRuLz','type','qNcUF','../../utils/createk8sClient','mEyrj','58537sopoqb','cluster-name','YPfAc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','413AVaiuT','EEJtf','private-grid','delay','YjQoH','clusterName','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid-profile','got','writeFileSync','YRxDV','WxJTd','requestId','private-ingress-nginx-controller','kpzpH','fHDYC','CEiuC','pre-spawned-invalid-vpc','grid-name','11754315TOWvTL','fetchLocalCreds','50EIWdpg','YlCpq','route53','updatePreSpawnedCluster','OWNHH','vLgqp','Found\x20VPC:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','../../utils/utilityMethods','DqDdU','YjICp','createdBy','../../config/constants','namespace','prespawned-cluster-args-not-passed','<UsernamePlaceholder>','mIAab','browserVersion','Grid\x20spawned\x20on\x20the\x20cluster','user','DJldo','NmfGg','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','mGTQg','create-grid-checks-grid-already-exists','3|5|6|0|8|4|1|7|2','bstackAccesskey','createOtherResources','https','NONfZ','create','dAXwI','Subnets:\x20','create-grid-checks-null-response','INFO','setupAutoscaler','gridName','CLI\x20run\x20started','VAsJK','QluSj','pblPl','GRdWe','Bpcpr','yNodW','pre-spawned-invalid-subnets','SzIfL','TTfAK','parse','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','atkfI','ingress-nginx','573264DkCRFD','goxaQ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','hWDiV','rlLcl','Pizcx','toLowerCase','Cluster\x20','<PasswordPlaceholder>','string','jHGkC','https://','defaultGridProfile','rbkUr','/packages/cli/get-grid-url?gridIdentifier=','MUkCx','existsSync','EiNjS','init-not-called','XUJCT','/wd/hub','koEos','QCNES','NtEHz','SJVyf','minNodes','bpRhY','argv','includes','mxSLV','pdXrA','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','true','VGDjC','exit','ithVj','usage','http','NDfLF','handler','Namespace\x20Created','ERROR','zVyNu','../../cloudproviders/utils','setupNewCluster','oysmO','metadata','CLI_RUN_STARTED','://','SpsIT','../../utils/webSocketUtils','rDhTO','../../utils/userInput','stjIy','Spawning\x20grid\x20on\x20to\x20the\x20cluster','nzfKO','name','VAgUh','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','WebSocket','cloud-provider','epilogue','fmuTz','get-grid-url-null-response','clusterRegion','BRTTh','uPOzh','get-grid-url-auth-failed','stack','\x20using\x20\x27','xXqXG','split','configureIfNotConfigured','connectionTimeout','OSWXx','rnCwx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Fqqsp','getResourceClientId','info','TjmdD','desc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','ingress-nginx-controller','readFileSync','Mqffh','gridProfile','foiEe','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','sFGUk','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ubkTp','yzdsh','QauQM','ELGam','ETkXQ','wCRiI','kDnGO','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','oiOii','Fnqmk','pGSTq','dzCGj','Create\x20a\x20private/public\x20grid.','5955460iKPWBd','readNamespacedService','getGridHostname','CzoDf','reconnecting-websocket','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','BDxOS','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.','non-aws-azure-cluster','isPrivateGrid','RKmxw','../../config/logger','TGwrk','JbKwT','Will\x20be\x20spawning\x20the\x20grid\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','VokdA','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','rMmFK','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','description','stringify','Grid\x20profile\x20fetched\x20from\x20backend','FJoLc','dmOOv','\x20in\x20existing\x20cluster\x20\x27','Browserstack','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Create\x20a\x20new\x20Automation\x20grid.','iWuBY','EigUv','40952cqDpkd','jolGs','replace'];a9_0x3ab8=function(){return _0x4c4a18;};return a9_0x3ab8();}(function(_0x528336,_0x3866b4){const _0x27237c=a9_0x2546,_0x2ba96d=_0x528336();while(!![]){try{const _0xcbd463=parseInt(_0x27237c(0x2a2))/0x1*(-parseInt(_0x27237c(0x189))/0x2)+parseInt(_0x27237c(0x1bc))/0x3+parseInt(_0x27237c(0x225))/0x4+parseInt(_0x27237c(0x256))/0x5*(parseInt(_0x27237c(0x29b))/0x6)+-parseInt(_0x27237c(0x2a6))/0x7*(parseInt(_0x27237c(0x245))/0x8)+-parseInt(_0x27237c(0x187))/0x9+parseInt(_0x27237c(0x284))/0xa;if(_0xcbd463===_0x3866b4)break;else _0x2ba96d['push'](_0x2ba96d['shift']());}catch(_0x38ec08){_0x2ba96d['push'](_0x2ba96d['shift']());}}}(a9_0x3ab8,0xb80d8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x5110fc(0x229)),got=require(a9_0x5110fc(0x2ae)),{v4:uuidv4}=require(a9_0x5110fc(0x265)),webSocketUtils=require(a9_0x5110fc(0x1ee)),{logger}=require(a9_0x5110fc(0x231)),{inputCloudProviderKeys}=require(a9_0x5110fc(0x1f0)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5110fc(0x191)),{getCloudProviderObject}=require(a9_0x5110fc(0x1e7)),{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_0x5110fc(0x195)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x5110fc(0x2a0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x5110fc(0x297)]=a9_0x5110fc(0x281),exports[a9_0x5110fc(0x20d)]=a9_0x5110fc(0x242),exports[a9_0x5110fc(0x276)]=function(_0x4069b7){const _0x37056a=a9_0x5110fc,_0x28f57f={};_0x28f57f['iWuBY']=_0x37056a(0x21f),_0x28f57f['dmOOv']=_0x37056a(0x1c5),_0x28f57f['ehgse']=_0x37056a(0x235),_0x28f57f['ELGam']=_0x37056a(0x2a5),_0x28f57f[_0x37056a(0x212)]=_0x37056a(0x217),_0x28f57f['fHDYC']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x28f57f[_0x37056a(0x223)]=_0x37056a(0x224),_0x28f57f[_0x37056a(0x26c)]=_0x37056a(0x24b);const _0x1fafc6=_0x28f57f,_0x591cb9={};_0x591cb9['description']=_0x1fafc6[_0x37056a(0x243)],_0x591cb9[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x203dc6={};_0x203dc6[_0x37056a(0x23a)]=_0x1fafc6[_0x37056a(0x298)],_0x203dc6[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x2ae24c={};_0x2ae24c['description']=_0x1fafc6[_0x37056a(0x21b)],_0x2ae24c[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x209412={};_0x209412['description']=_0x1fafc6[_0x37056a(0x212)],_0x209412[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x54ccd2={};_0x54ccd2['description']=_0x1fafc6[_0x37056a(0x183)],_0x54ccd2['type']=_0x1fafc6[_0x37056a(0x23e)];const _0x2fc3b8={};_0x2fc3b8[_0x37056a(0x23a)]=_0x1fafc6['dzCGj'],_0x2fc3b8[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x13c826={};return _0x13c826[_0x37056a(0x186)]=_0x591cb9,_0x13c826[_0x37056a(0x2ad)]=_0x203dc6,_0x13c826[_0x37056a(0x2a3)]=_0x2ae24c,_0x13c826[_0x37056a(0x1f8)]=_0x209412,_0x13c826[_0x37056a(0x268)]=_0x54ccd2,_0x13c826[_0x37056a(0x2a8)]=_0x2fc3b8,_0x4069b7[_0x37056a(0x1e0)](HELP_HEADER_MESSAGE[_0x37056a(0x1a7)])[_0x37056a(0x1f9)](HELP_FOOTER_MESSAGE)['options'](_0x13c826)[_0x37056a(0x24b)](_0x1fafc6[_0x37056a(0x26c)])[_0x37056a(0x1d7)];},exports[a9_0x5110fc(0x1e3)]=async function(_0x4f3380){const _0x1ebc18=a9_0x5110fc,_0x5ec5af={'BcdVO':_0x1ebc18(0x257),'kpzpH':_0x1ebc18(0x1a5),'mbIgD':'7|3|1|8|4|6|2|5|0','JbKwT':_0x1ebc18(0x21f),'TPlLP':'string','CEiuC':_0x1ebc18(0x235),'vLgqp':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vMNAV':_0x1ebc18(0x217),'oiOii':_0x1ebc18(0x292),'QauQM':_0x1ebc18(0x224),'rFHaf':_0x1ebc18(0x24b),'tTxJX':_0x1ebc18(0x275),'YPfAc':_0x1ebc18(0x1e1),'SpsIT':function(_0x4777bd){return _0x4777bd();},'Pizcx':function(_0x38cd70){return _0x38cd70();},'CzoDf':function(_0x4c77e4,_0x5af3cc){return _0x4c77e4!==_0x5af3cc;},'ZxPHz':_0x1ebc18(0x207),'vXIwI':_0x1ebc18(0x27a),'rPrlX':function(_0x2aae74,_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9){return _0x2aae74(_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9);},'qNcUF':'create-grid-called','XUJCT':_0x1ebc18(0x1ce),'EiNjS':_0x1ebc18(0x198),'hWDiV':_0x1ebc18(0x1c4),'IjyBp':'Adding\x20Websocket\x20listeners','IjqfJ':function(_0x102f90,_0x56219f){return _0x102f90!==_0x56219f;},'bqiaQ':'GDLwW','csLGS':'xxCUn','hYipM':_0x1ebc18(0x1a6),'foiEe':_0x1ebc18(0x2a7),'SAiuX':_0x1ebc18(0x1b9),'QluSj':function(_0x1b1a6b,_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289){return _0x1b1a6b(_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289);},'SzIfL':_0x1ebc18(0x197),'fmuTz':function(_0x3b0067,_0x376a72){return _0x3b0067===_0x376a72;},'SJVyf':_0x1ebc18(0x287),'uPOzh':'ZjwMx','ETkXQ':_0x1ebc18(0x239),'Uhzmd':function(_0x5ecfd1,_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083){return _0x5ecfd1(_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083);},'bpRhY':_0x1ebc18(0x22e),'mZpye':_0x1ebc18(0x1dc),'nGqWi':_0x1ebc18(0x1c0),'jHGkC':function(_0x2c3520,_0x144449){return _0x2c3520!==_0x144449;},'pGSTq':_0x1ebc18(0x1f5),'UNOyL':function(_0x3ffa9b,_0xf84079){return _0x3ffa9b===_0xf84079;},'Fqqsp':_0x1ebc18(0x283),'llSBu':'GET','OWNHH':function(_0x458cc6,_0x1b3b60,_0x4a431b){return _0x458cc6(_0x1b3b60,_0x4a431b);},'TTfAK':_0x1ebc18(0x267),'yNodW':_0x1ebc18(0x24e),'rDhTO':_0x1ebc18(0x1aa),'kiYmu':_0x1ebc18(0x28c),'ZFpWt':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','smLIS':'create-grid-checks-auth-failed','TmkeN':function(_0x38509e,_0x51bf81){return _0x38509e===_0x51bf81;},'MfurH':_0x1ebc18(0x1fd),'EigUv':_0x1ebc18(0x1b2),'OnCJm':'create-grid-checks-non-200','nYULP':_0x1ebc18(0x23c),'ZhGXn':function(_0x1a0256,_0x19ab0a){return _0x1a0256===_0x19ab0a;},'VAsJK':'ApheZ','WxJTd':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','rbkUr':function(_0x2bdfc0,_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5){return _0x2bdfc0(_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5);},'YlCpq':_0x1ebc18(0x1a1),'Fnqmk':_0x1ebc18(0x17e),'wCRiI':_0x1ebc18(0x1e9),'sFGUk':function(_0x48bd51,_0xab4e24){return _0x48bd51===_0xab4e24;},'ithVj':_0x1ebc18(0x1a8),'MUkCx':_0x1ebc18(0x1d3),'mxSLV':_0x1ebc18(0x22c),'kDnGO':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','qeWth':'create-grid-checks-invalid-profile','koEos':function(_0x1d206d,_0x3fce51){return _0x1d206d===_0x3fce51;},'mEyrj':_0x1ebc18(0x19e),'RKmxw':function(_0x274715,_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9){return _0x274715(_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9);},'pMuOR':function(_0x5b2e73,_0x56abf0){return _0x5b2e73!==_0x56abf0;},'ygZaZ':'THMtX','mIAab':_0x1ebc18(0x219),'goxaQ':_0x1ebc18(0x1a2),'jolGs':function(_0x3b819f,_0x2f2214){return _0x3b819f===_0x2f2214;},'EBfpO':_0x1ebc18(0x215),'TGwrk':function(_0x2bf129,_0x59ddf7){return _0x2bf129===_0x59ddf7;},'vNGAZ':function(_0x461a98,_0x1666f6,_0x1bc843,_0x1d47df){return _0x461a98(_0x1666f6,_0x1bc843,_0x1d47df);},'HMXwl':_0x1ebc18(0x19f),'CRuLz':_0x1ebc18(0x291),'LVTBi':function(_0x4d87ea,_0x14017d){return _0x4d87ea!==_0x14017d;},'BMpKT':function(_0x286b8e,_0x25ad09){return _0x286b8e===_0x25ad09;},'xXqXG':_0x1ebc18(0x20e),'DJldo':function(_0x338743,_0x1111e2){return _0x338743!=_0x1111e2;},'PrfWg':function(_0x4566b4,_0x20f428){return _0x4566b4!==_0x20f428;},'DqDdU':function(_0x2608ab,_0x357807){return _0x2608ab>_0x357807;},'EsiNr':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','bGtNC':function(_0x36b23e,_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898){return _0x36b23e(_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898);},'Cybla':_0x1ebc18(0x289),'QCNES':function(_0x59147f,_0x4a2d2a){return _0x59147f===_0x4a2d2a;},'NUVdI':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NDfLF':_0x1ebc18(0x185),'FuPyP':function(_0x1f0715,_0x2cfe0a){return _0x1f0715===_0x2cfe0a;},'TjmdD':_0x1ebc18(0x1b5),'YjQoH':_0x1ebc18(0x282),'iiKLf':'Cluster\x20created\x20successfully','FJoLc':_0x1ebc18(0x22d),'pMYhI':function(_0x5b5328,_0x276c4c){return _0x5b5328===_0x276c4c;},'oTcuL':function(_0x28c55c,_0x533e76){return _0x28c55c(_0x533e76);},'nzfKO':function(_0x203659,_0x488e73){return _0x203659==_0x488e73;},'ubkTp':_0x1ebc18(0x277),'uHpTF':_0x1ebc18(0x26b),'atkfI':_0x1ebc18(0x240),'BomGy':_0x1ebc18(0x1e4),'JQpkC':'Namespace\x20created','zVyNu':_0x1ebc18(0x1f2),'VokdA':_0x1ebc18(0x190),'jjvpf':function(_0x216553,_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1){return _0x216553(_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1);},'Bpcpr':_0x1ebc18(0x19b),'GFmAB':_0x1ebc18(0x1db),'ZGxba':function(_0x13a2f2,_0x24e252,_0x5deb44,_0x890ce4,_0x48c741){return _0x13a2f2(_0x24e252,_0x5deb44,_0x890ce4,_0x48c741);},'WJlvn':function(_0x5421ac,_0x186bfb,_0x3afe1f){return _0x5421ac(_0x186bfb,_0x3afe1f);},'Ergha':_0x1ebc18(0x181),'VGDjC':_0x1ebc18(0x210),'stjIy':_0x1ebc18(0x1bb),'OSWXx':function(_0x12da79,_0xa9e84e,_0x32d927){return _0x12da79(_0xa9e84e,_0x32d927);},'ImahP':function(_0x31d8d1,_0x2c4522){return _0x31d8d1==_0x2c4522;},'rMmFK':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gMdmo':function(_0x278dca,_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb){return _0x278dca(_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb);},'eYSpa':_0x1ebc18(0x1fb),'tYFrw':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','mGTQg':_0x1ebc18(0x1ff),'hdowz':function(_0x25a870,_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a){return _0x25a870(_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a);},'YjICp':'get-grid-url-non-200','pblPl':function(_0x154649,_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41){return _0x154649(_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41);},'pdXrA':_0x1ebc18(0x25d)};let _0x401707=![],_0x3e855f,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6946,_0x2c6229,_0x3f9948,_0x3e1cbc,_0x4d23ef,_0x4248e7,_0x1c4e0f=0x1,_0x58c419=0xe;try{global_registry[_0x1ebc18(0x180)]=_0x5ec5af[_0x1ebc18(0x1ed)](uuidv4),global_registry[_0x1ebc18(0x22f)]=![];!fs[_0x1ebc18(0x1cc)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath))&&(_0x5ec5af[_0x1ebc18(0x228)](_0x5ec5af['ZxPHz'],_0x5ec5af['ZxPHz'])?_0x3344d0['cloudProvider']={}:(console[_0x1ebc18(0x257)](_0x5ec5af['vXIwI']),await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1cf)],null,_0x4f3380),process[_0x1ebc18(0x1de)](0x1)));await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1ab)],null,null,_0x4f3380);const _0x8ad0c5=JSON['parse'](fs[_0x1ebc18(0x211)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath)));global_registry[_0x1ebc18(0x269)]=_0x8ad0c5[_0x1ebc18(0x240)]['username'],global_registry[_0x1ebc18(0x1a3)]=_0x8ad0c5['Browserstack']['password'];const _0x4540e9=WS_ENDPOINT[_0x1ebc18(0x247)](_0x5ec5af[_0x1ebc18(0x1cd)],_0x8ad0c5['Browserstack'][_0x1ebc18(0x293)])['replace'](_0x5ec5af[_0x1ebc18(0x1bf)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),_0x4f18a4={};_0x4f18a4[_0x1ebc18(0x1f7)]=ws,_0x4f18a4[_0x1ebc18(0x205)]=0x36ee80,_0x3e1cbc=new ReconnectingWebSocket(_0x4540e9,[],_0x4f18a4),logger['debug'](_0x5ec5af['IjyBp']),webSocketUtils['addListeners'](_0x3e1cbc,_0x4f3380[_0x1ebc18(0x19c)],_0x4f3380[_0x1ebc18(0x28b)]);let _0x2ca59b=DEFAULT_GRID_NAME;(_0x4f3380[_0x1ebc18(0x2ab)]||_0x4f3380[_0x1ebc18(0x261)]||_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['IjqfJ'](_0x5ec5af['bqiaQ'],_0x5ec5af[_0x1ebc18(0x274)])?(!(_0x4f3380[_0x1ebc18(0x2ab)]&&_0x4f3380['cloudProvider']&&_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['CzoDf'](_0x5ec5af['hYipM'],_0x5ec5af[_0x1ebc18(0x214)])?(_0x3e855f=_0x5ec5af['SAiuX'],await _0x5ec5af[_0x1ebc18(0x1b0)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1b6)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x227c2d[_0x1ebc18(0x22f)]=!![]),![AWS,AZURE,GCP][_0x1ebc18(0x1d8)](_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)]())&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1d4)],_0x5ec5af[_0x1ebc18(0x1fe)])?_0x258c9e[_0x1ebc18(0x257)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0xd31705+'\x20\x0a'+_0x1448a7[_0x1ebc18(0x23b)](_0xcde52a['stack'])):(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21c)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1d6)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1))),_0x4f3380[_0x1ebc18(0x254)]&&_0x5ec5af[_0x1ebc18(0x1fa)](_0x4f3380['privateGrid'][_0x1ebc18(0x1c2)](),_0x5ec5af[_0x1ebc18(0x24f)])&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x270)],_0x5ec5af[_0x1ebc18(0x270)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x3e0ba3=_0x437f27[_0xda5921[_0x1ebc18(0x213)]]),_0x401707=!![],_0x406c74=_0x4f3380[_0x1ebc18(0x2ab)],_0x1c492c=_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)](),_0x36e8e4=_0x4f3380[_0x1ebc18(0x268)]):_0x2f0845[_0x1ebc18(0x20b)]('Found\x20VPC:\x20'+_0x3123f8+'\x20'));if(_0x4f3380[_0x1ebc18(0x1ad)]){if(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x222)],_0x5ec5af[_0x1ebc18(0x222)])){const _0xbf54cc={};_0xbf54cc[_0x1ebc18(0x29e)]=_0x4d7401[_0x1ebc18(0x28d)],_0xbf54cc['message']=_0x411775,_0xc29500['sendEventToBackend'](_0x281c07,_0xbf54cc,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}else _0x2ca59b=_0x4f3380['gridName'];}_0x4f3380['gridProfile']&&(_0x5ec5af['UNOyL'](_0x5ec5af[_0x1ebc18(0x209)],_0x5ec5af[_0x1ebc18(0x209)])?global_registry[_0x1ebc18(0x213)]=_0x4f3380['gridProfile']:(_0x16e5f2=_0x4262b6['route53'],_0x1081c3=_0x5ec5af[_0x1ebc18(0x182)]));global_registry['gridName']=_0x2ca59b;const _0x535172={'method':_0x5ec5af['llSBu'],'headers':_0x5ec5af[_0x1ebc18(0x18d)](getAuthHeader,_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x293)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),'throwHttpErrors':![]},_0x146099=_0x1ebc18(0x1c7)+AG_API_URL+'/packages/cli/create-grid-checks',_0x7bc92d={};_0x7bc92d[_0x1ebc18(0x1ad)]=_0x2ca59b;const _0x324154={'searchParams':_0x7bc92d,'throwHttpErrors':![],..._0x535172},_0x440496=_0x324154,_0x1de9e8=await _0x5ec5af[_0x1ebc18(0x18d)](got,_0x146099,_0x440496);if(_0x5ec5af[_0x1ebc18(0x288)](_0x1de9e8,null)||_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8,undefined)){if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1b7)],_0x5ec5af[_0x1ebc18(0x1b7)]))_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b4)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1ef)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x9c9b44=_0x5ec5af[_0x1ebc18(0x24c)][_0x1ebc18(0x203)]('|');let _0x165808=0x0;while(!![]){switch(_0x9c9b44[_0x165808++]){case'0':_0x1c6a59[_0x1ebc18(0x19a)]=_0x4b6f21[_0x1ebc18(0x19a)];continue;case'1':_0x4e535a['info'](_0xa1092c);continue;case'2':_0x460ff8[_0x1ebc18(0x2ab)]=_0x5bf143;continue;case'3':_0x4a3931='Spawning\x20the\x20grid\x20'+_0x55d995+_0x1ebc18(0x23f)+_0x39b715+'\x27';continue;case'4':_0x51412e[_0x1ebc18(0x261)]=_0x14722d;continue;case'5':_0x30c42c[_0x1ebc18(0x26a)]=_0xd1a507[_0x1ebc18(0x26a)];continue;case'6':_0x5e517f[_0x1ebc18(0x1fc)]=_0x54488b;continue;case'7':const _0x416898={};_0x416898['type']=_0x6212c2['CLI_RUN_STARTED'],_0x416898[_0x1ebc18(0x286)]=_0x1ebc18(0x1ae),_0x53862a[_0x1ebc18(0x28f)](_0x1edc44,_0x416898);continue;case'8':const _0x19558d={};_0x19558d[_0x1ebc18(0x29e)]=_0x2c459d[_0x1ebc18(0x28d)],_0x19558d[_0x1ebc18(0x286)]=_0x284994,_0xa001d8[_0x1ebc18(0x28f)](_0x6316fc,_0x19558d);continue;}break;}}}if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8[_0x1ebc18(0x290)],0x191)){if(_0x5ec5af[_0x1ebc18(0x288)](_0x5ec5af['kiYmu'],_0x5ec5af['kiYmu']))_0x3e855f=_0x5ec5af['ZFpWt'],await _0x5ec5af['Uhzmd'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['smLIS'],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x35ef8d={};_0x35ef8d[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x233)],_0x35ef8d[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x420849={};_0x420849['description']=_0x5ec5af[_0x1ebc18(0x184)],_0x420849['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x3c3d36={};_0x3c3d36[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x18e)],_0x3c3d36[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0xf6d42b={};_0xf6d42b[_0x1ebc18(0x23a)]=_0x5ec5af['vMNAV'],_0xf6d42b['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x112b4d={};_0x112b4d['description']=_0x5ec5af[_0x1ebc18(0x220)],_0x112b4d[_0x1ebc18(0x29e)]=_0x5ec5af[_0x1ebc18(0x25c)];const _0x2a95f3={};_0x2a95f3['description']=_0x5ec5af[_0x1ebc18(0x21a)],_0x2a95f3[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x6e5953={};return _0x6e5953[_0x1ebc18(0x186)]=_0x35ef8d,_0x6e5953[_0x1ebc18(0x2ad)]=_0x420849,_0x6e5953[_0x1ebc18(0x2a3)]=_0x3c3d36,_0x6e5953[_0x1ebc18(0x1f8)]=_0xf6d42b,_0x6e5953['region']=_0x112b4d,_0x6e5953[_0x1ebc18(0x2a8)]=_0x2a95f3,_0x136328[_0x1ebc18(0x1e0)](_0x5acf50['create'])[_0x1ebc18(0x1f9)](_0x5411be)[_0x1ebc18(0x258)](_0x6e5953)[_0x1ebc18(0x24b)](_0x5ec5af['rFHaf'])[_0x1ebc18(0x1d7)];}}if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x1de9e8['statusCode'],0xc8)){if(_0x5ec5af[_0x1ebc18(0x285)](_0x5ec5af['MfurH'],_0x5ec5af[_0x1ebc18(0x244)])){const _0x3da469={};_0x3da469[_0x1ebc18(0x29e)]=_0x388f73[_0x1ebc18(0x28d)],_0x3da469[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x1dde5a+_0x1ebc18(0x22a),_0xeb9622[_0x1ebc18(0x28f)](_0x16611b,_0x3da469,_0x5ec5af[_0x1ebc18(0x250)]),_0x32ba57[_0x1ebc18(0x20b)](_0x1ebc18(0x1c3)+_0x85f3ef+_0x1ebc18(0x22a)),_0x5f3947=!![];}else _0x3e855f=_0x1ebc18(0x1be)+JSON[_0x1ebc18(0x23b)](_0x1de9e8),await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x25e)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);}const _0x1f8161=JSON[_0x1ebc18(0x1b8)](_0x1de9e8['body']),_0x3d143f={};_0x3d143f['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x3d143f['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x3d143f);const _0x271858={};_0x271858['type']=WS_EVENTS['LOG'],_0x271858[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x248)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x271858);_0x1f8161['alreadyPresent']&&(_0x5ec5af['ZhGXn'](_0x5ec5af[_0x1ebc18(0x1af)],_0x5ec5af[_0x1ebc18(0x1af)])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x17f)],await _0x5ec5af['rbkUr'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x18a)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x41f745['info'](_0x1ebc18(0x271)+_0x2da38a[_0x1ebc18(0x23b)](_0x290bf4)+'\x20'));const _0x1b7d9c=_0x1f8161['gridProfiles'];let _0x353171=_0x1b7d9c[_0x1f8161[_0x1ebc18(0x1c8)]];_0x4f3380[_0x1ebc18(0x213)]&&(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x221)],_0x5ec5af[_0x1ebc18(0x21d)])?_0x353171=_0x1b7d9c[_0x4f3380['gridProfile']]:_0x3fc06d[_0x1ebc18(0x22f)]=!![]);if(_0x5ec5af[_0x1ebc18(0x216)](_0x401707,![])){if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1df)],_0x5ec5af[_0x1ebc18(0x1cb)])){_0x5ec5af[_0x1ebc18(0x1fa)](_0x353171,undefined)&&(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1d9)],_0x5ec5af[_0x1ebc18(0x1d9)])?_0xa23763[_0x1ebc18(0x28e)]():(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21e)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['qeWth'],_0x5ec5af['BcdVO']),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)));global_registry['gridProfileId']=_0x353171['id'],_0x3e855f=_0x1ebc18(0x234)+_0x2ca59b+_0x1ebc18(0x201)+_0x353171[_0x1ebc18(0x1f4)]+_0x1ebc18(0x299),logger['info'](_0x3e855f);const _0x1e22a2={};_0x1e22a2[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x1e22a2[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x1e22a2),_0x1c492c=_0x353171['cloudProvider'],_0x406c74=_0x353171[_0x1ebc18(0x2ab)],_0x36e8e4=_0x353171['region'],_0x334135=_0x353171[_0x1ebc18(0x263)],_0x2e7315=_0x353171[_0x1ebc18(0x264)],_0x2c6946=_0x353171[_0x1ebc18(0x249)],securityGroups=_0x353171['securityGroups'],subnets=_0x353171[_0x1ebc18(0x26d)],_0x2c6229=_0x353171[_0x1ebc18(0x259)],_0x1c4e0f=_0x353171[_0x1ebc18(0x1d5)],_0x58c419=_0x353171['maxNodes'],_0x4d23ef=_0x1f8161[_0x1ebc18(0x26a)],_0x4248e7=_0x1f8161[_0x1ebc18(0x19a)],_0x5ec5af[_0x1ebc18(0x1c6)](_0x353171['privateGrid'],undefined)&&_0x353171[_0x1ebc18(0x254)]&&(_0x5ec5af['koEos'](_0x5ec5af['mEyrj'],_0x5ec5af[_0x1ebc18(0x2a1)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x586023[_0x1ebc18(0x213)]=_0x54e7c0['gridProfile']),_0x5ec5af[_0x1ebc18(0x230)](updateGlobalRegistryWithConfig,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6229,_0x353171,_0x4d23ef,_0x4248e7,_0x1c4e0f,_0x58c419);}else _0xa7f8b9=_0x43fa5b[_0x1ebc18(0x1ad)];}else{if(_0x5ec5af[_0x1ebc18(0x24d)](_0x5ec5af['ygZaZ'],_0x5ec5af[_0x1ebc18(0x199)])){const _0x67b50e=_0x5ec5af[_0x1ebc18(0x1bd)]['split']('|');let _0x47550c=0x0;while(!![]){switch(_0x67b50e[_0x47550c++]){case'0':const _0x490e62={};_0x490e62[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x490e62[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x490e62);continue;case'1':global_registry[_0x1ebc18(0x2ab)]=_0x406c74;continue;case'2':global_registry['browserVersion']=_0x1f8161[_0x1ebc18(0x19a)];continue;case'3':const _0x438ba9={};_0x438ba9[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x1eb)],_0x438ba9['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x438ba9);continue;case'4':global_registry['clusterRegion']=_0x36e8e4;continue;case'5':_0x3e855f='Spawning\x20the\x20grid\x20'+_0x2ca59b+_0x1ebc18(0x23f)+_0x406c74+'\x27';continue;case'6':logger[_0x1ebc18(0x20b)](_0x3e855f);continue;case'7':global_registry[_0x1ebc18(0x26a)]=_0x1f8161[_0x1ebc18(0x26a)];continue;case'8':global_registry['cloudProvider']=_0x1c492c;continue;}break;}}else _0x362438=_0x5ec5af[_0x1ebc18(0x2a4)];}const _0x6f6981=await _0x5ec5af[_0x1ebc18(0x294)](getCloudProviderObject,_0x1c492c,_0x406c74,_0x2ca59b,_0x3e1cbc,webSocketUtils,_0x4f3380),_0x185e10=_0x8ad0c5[_0x1ebc18(0x261)]||{};if(_0x5ec5af['jolGs'](_0x185e10[_0x1c492c],undefined)){logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x296)]);_0x5ec5af[_0x1ebc18(0x232)](_0x8ad0c5['cloudProvider'],undefined)&&(_0x8ad0c5[_0x1ebc18(0x261)]={});_0x8ad0c5[_0x1ebc18(0x261)][_0x1c492c]={};const _0x28b201=await _0x5ec5af[_0x1ebc18(0x279)](inputCloudProviderKeys,_0x1c492c,_0x8ad0c5,_0x6f6981);fs[_0x1ebc18(0x2af)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath),JSON[_0x1ebc18(0x23b)](_0x28b201)),logger['debug'](_0x5ec5af[_0x1ebc18(0x255)]);}else{_0x3e855f=_0x5ec5af[_0x1ebc18(0x29d)];const _0x48c60c={};_0x48c60c[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x48c60c['message']=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x48c60c),logger[_0x1ebc18(0x20b)](_0x3e855f),await _0x6f6981[_0x1ebc18(0x188)](_0x185e10);}_0x6f6981[_0x1ebc18(0x204)]();_0x5ec5af['LVTBi'](_0x1c492c,AZURE)&&_0x6f6981[_0x1ebc18(0x28e)]();let _0xacea99;if(_0x5ec5af[_0x1ebc18(0x26e)](_0x401707,![])){_0x3e855f=_0x1ebc18(0x2ac)+_0x36e8e4+').';const _0x23ae3d={};_0x23ae3d['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x23ae3d[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x23ae3d),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0xab175c=await _0x6f6981[_0x1ebc18(0x24a)]();if(_0xab175c){const _0x38dc81={};_0x38dc81[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x38dc81[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x38dc81,_0x5ec5af[_0x1ebc18(0x250)]),logger['info'](_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a)),_0x401707=!![];}else{const _0x49d2bb={};_0x49d2bb[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x49d2bb['message']=_0x5ec5af[_0x1ebc18(0x202)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x49d2bb),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x202)]);const _0x2596aa=_0x5ec5af['DJldo'](_0x2c6946,null)&&_0x5ec5af['PrfWg'](_0x2c6946,undefined),_0x1884ce=_0x5ec5af[_0x1ebc18(0x19d)](subnets,null)&&_0x5ec5af['CzoDf'](subnets,undefined)&&_0x5ec5af[_0x1ebc18(0x192)](subnets[_0x1ebc18(0x26f)],0x0);if(_0x2596aa){_0x5ec5af[_0x1ebc18(0x1d1)](_0x1884ce,![])&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x272)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x280)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1));const _0x2379e2=await _0x6f6981[_0x1ebc18(0x273)](_0x2c6946);_0x5ec5af[_0x1ebc18(0x1d2)](_0x2379e2,![])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x251)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1e2)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1)):logger[_0x1ebc18(0x20b)](_0x1ebc18(0x18f)+_0x2c6946+'\x20');const _0x3f007e=await _0x6f6981[_0x1ebc18(0x253)](subnets,_0x2c6946);_0x5ec5af['FuPyP'](_0x3f007e[0x0],![])?(_0x3e855f=_0x1ebc18(0x1a9)+JSON['stringify'](_0x3f007e[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2c6946+_0x1ebc18(0x266),await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x20c)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):logger['info'](_0x1ebc18(0x271)+JSON['stringify'](subnets)+'\x20'),await _0x6f6981[_0x1ebc18(0x1e8)](_0x2c6946,subnets);}else{const _0xd8478b=_0x5ec5af[_0x1ebc18(0x2aa)][_0x1ebc18(0x203)]('|');let _0x5c75bf=0x0;while(!![]){switch(_0xd8478b[_0x5c75bf++]){case'0':logger[_0x1ebc18(0x20b)](_0x5ec5af['iiKLf']);continue;case'1':const _0x125f57={};_0x125f57[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x125f57[_0x1ebc18(0x286)]=_0x5ec5af['FJoLc'],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x125f57);continue;case'2':logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x23d)]);continue;case'3':await _0x6f6981[_0x1ebc18(0x1e8)]();continue;case'4':const _0x4754ae={};_0x4754ae['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x4754ae[_0x1ebc18(0x286)]='Cluster\x20created\x20successfully',webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x4754ae);continue;}break;}}}}_0x401707&&_0x5ec5af[_0x1ebc18(0x260)](_0x1c492c,AZURE)&&(await _0x6f6981[_0x1ebc18(0x18c)](),await _0x6f6981[_0x1ebc18(0x1a4)]());const [_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x30df9f,_0x13d6c0]=await _0x5ec5af['oTcuL'](createK8sClient,_0x6f6981);_0x5ec5af[_0x1ebc18(0x246)](_0x401707,![])&&_0x5ec5af[_0x1ebc18(0x1f3)](_0x1c492c,AWS)&&(global_registry['isNewAWSCluster']=!![],_0xacea99=await _0x6f6981[_0x1ebc18(0x1ac)](_0x6ab267,_0x4f3380));try{_0x3f9948=_0x5ec5af[_0x1ebc18(0x27b)](kebabCase,_0x2ca59b),logger[_0x1ebc18(0x20b)](_0x5ec5af['ubkTp']);const _0x34fe22={};_0x34fe22[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x34fe22[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x218)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x34fe22);if(_0x5ec5af[_0x1ebc18(0x228)](_0x3f9948,_0x5ec5af[_0x1ebc18(0x295)])){const _0x2486d6={};_0x2486d6[_0x1ebc18(0x194)]=_0x5ec5af['atkfI'],_0x2486d6['managedBy']=_0x5ec5af[_0x1ebc18(0x1ba)];const _0x39ad57={};_0x39ad57['name']=_0x3f9948,_0x39ad57['annotations']=_0x2486d6;const _0x173141={};_0x173141[_0x1ebc18(0x1ea)]=_0x39ad57;let _0x117860=_0x173141;const _0x188577={};_0x188577[_0x1ebc18(0x20f)]=_0x117860,await _0x6ab267['createNamespace'](_0x188577),logger[_0x1ebc18(0x20b)](_0x5ec5af['BomGy']);}const _0x422e47={};_0x422e47[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x422e47[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x27f)],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x422e47);const _0x44114f={};_0x44114f[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x44114f[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x1e6)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x44114f),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x236)]);let _0x10fba1={};_0x5ec5af[_0x1ebc18(0x1fa)](_0x1c492c,AZURE)&&(_0x10fba1={'clientId':await _0x6f6981[_0x1ebc18(0x20a)](_0x1ebc18(0x29c)+_0x406c74)});await _0x5ec5af['jjvpf'](addGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948,_0x406c74,_0xacea99,_0x30df9f,_0x13d6c0,_0x10fba1),_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b3)],logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x527e64={};_0x527e64[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x527e64[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x527e64),_0x3e855f=_0x5ec5af[_0x1ebc18(0x25f)],logger['info'](_0x3e855f);const _0x4a2218={};_0x4a2218[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x4a2218[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x4a2218),await _0x5ec5af[_0x1ebc18(0x278)](waitForDeployment,_0xc78ecd,_0x3f9948,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4bced1=await _0x5ec5af[_0x1ebc18(0x25a)](getNamespaceUID,_0x6ab267,_0x3f9948);let _0x59ddaf=global_registry[_0x1ebc18(0x22f)]?_0x5ec5af[_0x1ebc18(0x27c)]:_0x5ec5af[_0x1ebc18(0x1dd)];const _0x2579e4={};_0x2579e4[_0x1ebc18(0x1f4)]=_0x59ddaf,_0x2579e4[_0x1ebc18(0x196)]=_0x5ec5af[_0x1ebc18(0x1f1)];let _0x2d9227=await _0x6ab267[_0x1ebc18(0x226)](_0x2579e4),_0xe1d017=_0x6f6981[_0x1ebc18(0x227)](_0x2d9227)+'/'+_0x3f9948,_0x1f0ea0=_0x5ec5af['YPfAc'];try{const _0x59cc3a='https://'+AG_API_URL+_0x1ebc18(0x1ca)+_0x4bced1,_0x347d09=await _0x5ec5af[_0x1ebc18(0x206)](got,_0x59cc3a,_0x535172);(_0x5ec5af[_0x1ebc18(0x1f3)](_0x347d09,null)||_0x5ec5af['ImahP'](_0x347d09,undefined))&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x238)],await _0x5ec5af['gMdmo'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x28a)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));_0x5ec5af[_0x1ebc18(0x285)](_0x347d09[_0x1ebc18(0x290)],0x191)&&(_0x3e855f=_0x5ec5af['tYFrw'],await _0x5ec5af[_0x1ebc18(0x1c9)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1a0)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process['exit'](0x1));_0x5ec5af[_0x1ebc18(0x24d)](_0x347d09['statusCode'],0xc8)&&(_0x3e855f=_0x1ebc18(0x237)+JSON[_0x1ebc18(0x23b)](_0x347d09),await _0x5ec5af['hdowz'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x193)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));const _0x4055b2=JSON[_0x1ebc18(0x1b8)](_0x347d09[_0x1ebc18(0x20f)]);_0x4055b2['route53']&&(_0xe1d017=_0x4055b2[_0x1ebc18(0x18b)],_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x182)]),global_registry[_0x1ebc18(0x22f)]&&(_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x2a4)]);}catch(_0x24df2d){}_0x3e855f=_0x1ebc18(0x29a)+_0xe1d017+'\x20',logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x2c3b86={};_0x2c3b86['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x2c3b86[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x2c3b86),_0x3e855f=_0x1ebc18(0x22b)+_0x1f0ea0+_0x1ebc18(0x1ec)+_0xe1d017+_0x1ebc18(0x1d0),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x73eb35={};_0x73eb35[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x73eb35['message']=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x73eb35);const _0x1af10b={};_0x1af10b[_0x1ebc18(0x29e)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x1af10b['message']='CLI\x20run\x20finished:\x20'+_0xe1d017,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x1af10b),await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);}catch(_0x314408){logger['error'](_0x1ebc18(0x1f6)+_0x314408+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x314408[_0x1ebc18(0x200)]));if(_0x5ec5af[_0x1ebc18(0x260)](_0x401707,![]))try{logger[_0x1ebc18(0x20b)](_0x1ebc18(0x25b)),await _0x5ec5af[_0x1ebc18(0x1b1)](removeGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948),await _0x6f6981[_0x1ebc18(0x27d)](_0x6ab267,global_registry[_0x1ebc18(0x1fc)]);}catch(_0x51c404){logger[_0x1ebc18(0x257)](_0x1ebc18(0x208)+_0x51c404+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x51c404[_0x1ebc18(0x200)]));}throw _0x314408;}}catch(_0x2bf341){const _0xe45d72=_0x1ebc18(0x241)+_0x2bf341+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x2bf341[_0x1ebc18(0x200)]);if(_0x3e1cbc){const _0x468df5={};_0x468df5[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x468df5[_0x1ebc18(0x286)]=_0xe45d72,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x468df5,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);const _0x499325={};_0x499325[_0x1ebc18(0x257)]=_0xe45d72,await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1da)],_0x499325,_0x4f3380),logger[_0x1ebc18(0x257)](_0xe45d72);}process[_0x1ebc18(0x1de)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a10_0x23d7(){const _0x1795fd=['kQeLu','command','16MeNqtD','help','demandCommand','1095591yWdQlu','10ykPDsD','eWOTZ','epilogue','11531gCrSKg','64TjwYNX','List\x20Grid\x20resources.','34136080DvbMJw','handler','desc','../config/constants','recommendCommands','delete_commands','13107762TFWeQw','delete','157278ffhFjR','usage','9334692stQAnd','687460Zssmig','222SEAoTp'];a10_0x23d7=function(){return _0x1795fd;};return a10_0x23d7();}const a10_0x2bd486=a10_0x1644;function a10_0x1644(_0x2ff49b,_0x194a84){const _0x23d7b4=a10_0x23d7();return a10_0x1644=function(_0x1644e9,_0x153770){_0x1644e9=_0x1644e9-0x148;let _0x241bf8=_0x23d7b4[_0x1644e9];return _0x241bf8;},a10_0x1644(_0x2ff49b,_0x194a84);}(function(_0x26611b,_0x2e8fb2){const _0x4679ef=a10_0x1644,_0x5509d6=_0x26611b();while(!![]){try{const _0x438046=-parseInt(_0x4679ef(0x14d))/0x1*(-parseInt(_0x4679ef(0x15c))/0x2)+parseInt(_0x4679ef(0x158))/0x3*(-parseInt(_0x4679ef(0x14e))/0x4)+parseInt(_0x4679ef(0x15b))/0x5+parseInt(_0x4679ef(0x15a))/0x6+-parseInt(_0x4679ef(0x149))/0x7*(-parseInt(_0x4679ef(0x15f))/0x8)+-parseInt(_0x4679ef(0x156))/0x9*(-parseInt(_0x4679ef(0x14a))/0xa)+-parseInt(_0x4679ef(0x150))/0xb;if(_0x438046===_0x2e8fb2)break;else _0x5509d6['push'](_0x5509d6['shift']());}catch(_0x14be86){_0x5509d6['push'](_0x5509d6['shift']());}}}(a10_0x23d7,0xc3733));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x2bd486(0x153));exports[a10_0x2bd486(0x15e)]=a10_0x2bd486(0x157),exports[a10_0x2bd486(0x152)]=a10_0x2bd486(0x14f),exports['builder']=function(_0x98a74d){const _0xc24e5b=a10_0x2bd486,_0x53665d={};_0x53665d['eWOTZ']=_0xc24e5b(0x155),_0x53665d[_0xc24e5b(0x15d)]=_0xc24e5b(0x160);const _0x398d3c=_0x53665d;return _0x98a74d[_0xc24e5b(0x159)](HELP_HEADER_MESSAGE[_0xc24e5b(0x157)])[_0xc24e5b(0x14c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x398d3c[_0xc24e5b(0x14b)])[_0xc24e5b(0x148)]()[_0xc24e5b(0x154)]()['strict']()['help'](_0x398d3c[_0xc24e5b(0x15d)]);},exports[a10_0x2bd486(0x151)]=function(_0x4804d6){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x266e99=a11_0x15cc;function a11_0x4752(){const _0x4f1415=['38iSSbtb','../../utils/gridComponents','delete','oBmov','UKaSa','gjzyD','error','zQUsJ','1916944PMpjeY','uuid','CzKLH','toLowerCase','XnShK','RssmW','ezJPU','options','onlyGridInCluster','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','/packages/cli/grid/','SJLrQ','delete-grid-called','QCIVq','edjZz','ODxVP','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','../../utils/createk8sClient','6452664UJMNHk','CRYSr','string','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','catch','\x22\x20with\x20ID\x20','parse','BHLqS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RBNFf','ZUNFW','clusterId','cloudProvider','hYRps','QVREK','RcwtK','JLyJk','ZlDZw','Namespace:\x20','MNLxA','../../config/logger','../../utils/userInput','info','iUTNM','Failed\x20to\x20delete\x20resources!\x20Error:\x20','deleteCluster','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','qMWZF','czhNI','Pass\x20the\x20ID\x20of\x20the\x20Grid','36JadcQK','INFO','ePigC','Rxdrf','password','eHKBm','https://','warn','epilogue','fXbHz','QPLxn','stringify','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','OJtFF','14486131AmaeSO','requestId','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','exit','argv','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','grid','gridId','OOrpO','ZmwQQ','region','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','RmBGR','dAaHe','rHcyy','10xchlpr','xREzp','name','7lnbrwV','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','isClusterPresent','UFKvN','Browserstack','kEXxx','WLxFH','help','invalid-grid-id','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','1468asefny','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XZQWU','type','Cluster:\x20','yfEbN','unauthorised','Successfully\x20deleted\x20the\x20grid','writeFileSync','144kNSynC','fetchLocalCreds','usage','uLxZe','KQORY','14187FXVVEP','../../config/constants','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','MblJy','Delete\x20an\x20Automation\x20grid.','7173YSAPVD','grid-id','../../utils/instrumentationUtils','DPgIi','readNamespace','RoWdl','ERROR','AVUyM','clusterName','3278180GxgTdG','isBrowserstackCluster','message','FljJZ','MXlwB','fZyfp','JKuAO','username','PUxdZ','DELETE','clusterSpawnedVia','lYRWV','OrRDG','unknown-error','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','readFileSync','eBnki','Qsayw','ovWpN','URNYc','\x22\x20and\x20ID\x20','DZhLr','configureIfNotConfigured','BGseB','yTTts','HTKLK','1207323vLKWbq','statusCode','AtPee','gINNp','xbcaS'];a11_0x4752=function(){return _0x4f1415;};return a11_0x4752();}function a11_0x15cc(_0x22671c,_0x267e84){const _0x475297=a11_0x4752();return a11_0x15cc=function(_0x15cc22,_0x2fe4aa){_0x15cc22=_0x15cc22-0x12c;let _0x589866=_0x475297[_0x15cc22];return _0x589866;},a11_0x15cc(_0x22671c,_0x267e84);}(function(_0x279e20,_0x2fc56a){const _0x1233cd=a11_0x15cc,_0x3df5a1=_0x279e20();while(!![]){try{const _0x1eade2=-parseInt(_0x1233cd(0x1be))/0x1*(-parseInt(_0x1233cd(0x148))/0x2)+parseInt(_0x1233cd(0x1b9))/0x3*(parseInt(_0x1233cd(0x1ab))/0x4)+-parseInt(_0x1233cd(0x1c7))/0x5+-parseInt(_0x1233cd(0x162))/0x6*(parseInt(_0x1233cd(0x1a1))/0x7)+-parseInt(_0x1233cd(0x150))/0x8*(-parseInt(_0x1233cd(0x180))/0x9)+parseInt(_0x1233cd(0x19e))/0xa*(-parseInt(_0x1233cd(0x18e))/0xb)+parseInt(_0x1233cd(0x1b4))/0xc*(parseInt(_0x1233cd(0x143))/0xd);if(_0x1eade2===_0x2fc56a)break;else _0x3df5a1['push'](_0x3df5a1['shift']());}catch(_0x158300){_0x3df5a1['push'](_0x3df5a1['shift']());}}}(a11_0x4752,0xdaef1));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x266e99(0x151)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x266e99(0x1ba)),{logger}=require(a11_0x266e99(0x176)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x266e99(0x149)),{sendInstrumentationEvent}=require(a11_0x266e99(0x1c0)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x266e99(0x177)),{createK8sClient}=require(a11_0x266e99(0x161)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods');exports['command']=a11_0x266e99(0x194),exports['desc']=a11_0x266e99(0x1bd),exports['builder']=function(_0x252236){const _0x286f2c=a11_0x266e99,_0xe405c8={};_0xe405c8[_0x286f2c(0x19c)]=_0x286f2c(0x17f),_0xe405c8[_0x286f2c(0x145)]=_0x286f2c(0x164),_0xe405c8[_0x286f2c(0x171)]=_0x286f2c(0x1a8);const _0xd3f755=_0xe405c8,_0x377f70={};_0x377f70['description']=_0xd3f755[_0x286f2c(0x19c)],_0x377f70['type']=_0xd3f755[_0x286f2c(0x145)];const _0x2efaa6={};return _0x2efaa6[_0x286f2c(0x1bf)]=_0x377f70,_0x252236[_0x286f2c(0x1b6)](HELP_HEADER_MESSAGE[_0x286f2c(0x14a)])[_0x286f2c(0x188)](HELP_FOOTER_MESSAGE)[_0x286f2c(0x157)](_0x2efaa6)['help'](_0xd3f755[_0x286f2c(0x171)])[_0x286f2c(0x192)];},exports['handler']=async function(_0x54214c){const _0x577659=a11_0x266e99,_0xb1aad6={'RoWdl':_0x577659(0x193),'qkfte':_0x577659(0x17f),'joeuX':_0x577659(0x164),'Rxdrf':'help','DPgIi':function(_0x5be669,_0x51b77e){return _0x5be669===_0x51b77e;},'JKuAO':_0x577659(0x16c),'yfEbN':_0x577659(0x1b7),'PUxdZ':function(_0x445fbf,_0x101a26){return _0x445fbf!==_0x101a26;},'oBmov':_0x577659(0x196),'WLxFH':function(_0xf40c1d){return _0xf40c1d();},'RmBGR':function(_0x5da8f1){return _0x5da8f1();},'HTKLK':function(_0x4270d4,_0x274fb0){return _0x4270d4===_0x274fb0;},'gINNp':'eNDAN','gjzyD':'nfvKP','iUTNM':_0x577659(0x165),'ovWpN':function(_0x389568,_0x1bd8a9,_0x1b84e5,_0x5533fb,_0x535abf,_0x987772,_0x281709){return _0x389568(_0x1bd8a9,_0x1b84e5,_0x5533fb,_0x535abf,_0x987772,_0x281709);},'BGseB':_0x577659(0x15c),'vcUDs':'init-not-called','QHuuX':function(_0x154105,_0x365977){return _0x154105!==_0x365977;},'lYRWV':_0x577659(0x163),'ePigC':function(_0x4c3e4b,_0xc8c2bf,_0x3c320a,_0x52fe79){return _0x4c3e4b(_0xc8c2bf,_0x3c320a,_0x52fe79);},'gIKaL':_0x577659(0x1a5),'RssmW':function(_0x1c967f,_0x383251){return _0x1c967f===_0x383251;},'eBnki':_0x577659(0x17d),'SJLrQ':_0x577659(0x17e),'ZlDZw':function(_0x27cf3f,_0x3124a2){return _0x27cf3f(_0x3124a2);},'UKaSa':function(_0x367c57,_0x5a7583){return _0x367c57===_0x5a7583;},'kEXxx':function(_0x1afa35,_0x4f8cd3){return _0x1afa35===_0x4f8cd3;},'hYRps':function(_0x323249,_0x25c977){return _0x323249===_0x25c977;},'UFKvN':'crXBc','vLtoN':_0x577659(0x175),'OrRDG':_0x577659(0x137),'XZQWU':function(_0x2bde92,_0x1cc859,_0x55b55b,_0x18ad86,_0x1b6eb1,_0x40e4ac,_0x4f526f){return _0x2bde92(_0x1cc859,_0x55b55b,_0x18ad86,_0x1b6eb1,_0x40e4ac,_0x4f526f);},'QVREK':'invalid-input','BHLqS':function(_0x38d591,_0x1cc429){return _0x38d591===_0x1cc429;},'XnShK':'PGqFH','CzKLH':_0x577659(0x18a),'yTTts':function(_0xea263b,_0xa072ff,_0x1db094,_0x430ce6,_0x557834){return _0xea263b(_0xa072ff,_0x1db094,_0x430ce6,_0x557834);},'MblJy':function(_0x25b89d,_0x6e0d6){return _0x25b89d===_0x6e0d6;},'MXlwB':_0x577659(0x18d),'ezJPU':'NjOhb','fZyfp':_0x577659(0x136),'ZmwQQ':_0x577659(0x172),'RZIGH':function(_0x38879e){return _0x38879e();},'xbcaS':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','rHcyy':_0x577659(0x19f),'bKBjf':_0x577659(0x18c),'edjZz':function(_0xd10b03,_0x3f2213){return _0xd10b03(_0x3f2213);},'Qsayw':function(_0x4563ef,_0x5a784e){return _0x4563ef(_0x5a784e);},'dFbOy':function(_0x124e28,_0x1d463d,_0x3522c9,_0x2e19a5,_0x4cf2ba,_0x234b81){return _0x124e28(_0x1d463d,_0x3522c9,_0x2e19a5,_0x4cf2ba,_0x234b81);},'eHKBm':_0x577659(0x131),'DZhLr':function(_0x24f188,_0x3c95dc,_0x586f98){return _0x24f188(_0x3c95dc,_0x586f98);},'AVUyM':function(_0xef702d,_0x42a0a6){return _0xef702d!==_0x42a0a6;},'ODxVP':function(_0x10f701,_0x4d985d){return _0x10f701!==_0x4d985d;},'RBNFf':function(_0x35d0a1,_0x214dcd){return _0x35d0a1===_0x214dcd;},'fXbHz':function(_0x1a2c7c,_0x4f0697,_0x51128b,_0x13783c,_0x1c0fc2,_0x3d1674,_0x5c6e22){return _0x1a2c7c(_0x4f0697,_0x51128b,_0x13783c,_0x1c0fc2,_0x3d1674,_0x5c6e22);},'MRljg':'server-error','KQORY':_0x577659(0x1b1),'QCIVq':_0x577659(0x1a9),'zQUsJ':function(_0x4c580b,_0x1aa7ed,_0x24d4e8,_0x4aadad,_0x25e33d,_0x16b2e5,_0x4d340d){return _0x4c580b(_0x1aa7ed,_0x24d4e8,_0x4aadad,_0x25e33d,_0x16b2e5,_0x4d340d);},'URNYc':function(_0x1ce14e,_0x28f539,_0x28832e,_0x5e549d,_0x4ddd22,_0x343ed0,_0xa36a18){return _0x1ce14e(_0x28f539,_0x28832e,_0x5e549d,_0x4ddd22,_0x343ed0,_0xa36a18);},'FljJZ':_0x577659(0x135)};try{global_registry[_0x577659(0x18f)]=_0xb1aad6[_0x577659(0x1a7)](uuidv4);!fs['existsSync'](_0xb1aad6[_0x577659(0x19b)](getCredentialsPath))&&(_0xb1aad6[_0x577659(0x142)](_0xb1aad6[_0x577659(0x146)],_0xb1aad6[_0x577659(0x14d)])?(_0x346953[_0x577659(0x187)](_0x577659(0x174)+_0x4420c9+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x2fc249=![]):(console['error'](_0xb1aad6[_0x577659(0x179)]),await _0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes['ERROR'],_0xb1aad6['vcUDs'],null,_0x54214c),process[_0x577659(0x191)](0x1)));_0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x181)],null,null,_0x54214c);!_0x54214c[_0x577659(0x195)]&&(_0xb1aad6['QHuuX'](_0xb1aad6[_0x577659(0x133)],_0xb1aad6[_0x577659(0x133)])?_0x18c65d='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x27e853[_0x577659(0x1a0)]+'\x22\x20and\x20ID\x20'+_0x5568a9['id']+_0x577659(0x19a)+_0x1be87d[_0x577659(0x1c6)]+_0x577659(0x167)+_0x5be760[_0x577659(0x16d)]+_0x577659(0x190):(console['error'](_0xb1aad6[_0x577659(0x1c3)]),process[_0x577659(0x191)](0x1)));const _0x24b3f6=JSON[_0x577659(0x168)](fs[_0x577659(0x138)](_0xb1aad6[_0x577659(0x1a7)](getCredentialsPath))),[_0x3ca1b3,_0x1e92f0]=await _0xb1aad6['ePigC'](getGridDetails,_0x24b3f6[_0x577659(0x1a5)][_0x577659(0x12f)],_0x24b3f6[_0x577659(0x1a5)]['password'],_0x54214c[_0x577659(0x195)]);if(_0x1e92f0){const _0x1eb397=_0x1e92f0['info'];let _0xe8e733=_0x577659(0x159)+_0x1eb397[_0x577659(0x1a0)]+'\x22\x20and\x20ID\x20'+_0x1eb397['id']+_0x577659(0x190),_0x13f86d;_0x1e92f0['onlyGridInCluster']&&_0xb1aad6[_0x577659(0x1c1)](_0x1e92f0[_0x577659(0x132)],_0xb1aad6['gIKaL'])&&(_0xb1aad6['RssmW'](_0xb1aad6[_0x577659(0x139)],_0xb1aad6[_0x577659(0x15b)])?(_0x5a33a3[_0x577659(0x14e)](_0xb1aad6[_0x577659(0x1c3)]),_0x468f80[_0x577659(0x191)](0x1)):_0xe8e733=_0x577659(0x159)+_0x1eb397[_0x577659(0x1a0)]+_0x577659(0x13d)+_0x1eb397['id']+_0x577659(0x19a)+_0x1eb397[_0x577659(0x1c6)]+_0x577659(0x167)+_0x1eb397['clusterId']+_0x577659(0x190));_0x13f86d=await _0xb1aad6[_0x577659(0x173)](inputConfirmation,_0xe8e733);(_0xb1aad6[_0x577659(0x1c1)](_0x13f86d,undefined)||_0xb1aad6[_0x577659(0x14c)](_0x13f86d,null)||!(_0xb1aad6[_0x577659(0x1a6)](_0x13f86d[_0x577659(0x153)](),'y')||_0xb1aad6[_0x577659(0x16f)](_0x13f86d[_0x577659(0x153)](),'n')))&&(_0xb1aad6[_0x577659(0x1c1)](_0xb1aad6[_0x577659(0x1a4)],_0xb1aad6['vLtoN'])?_0x5af22d[_0x577659(0x187)](_0x577659(0x1af)+_0x378f0c[_0x577659(0x1c6)]+_0x577659(0x1aa)):(console[_0x577659(0x14e)](_0xb1aad6[_0x577659(0x134)]),await _0xb1aad6[_0x577659(0x1ad)](sendInstrumentationEvent,_0x54214c,_0xb1aad6['BGseB'],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x170)],null,_0x54214c),process['exit'](0x1)));_0xb1aad6[_0x577659(0x14c)](_0x13f86d[_0x577659(0x153)](),'n')&&(_0xb1aad6[_0x577659(0x169)](_0xb1aad6[_0x577659(0x154)],_0xb1aad6[_0x577659(0x152)])?_0x3501e8['warn'](_0x577659(0x1a2)):process[_0x577659(0x191)](0x0));global_registry['clusterRegion']=_0x1eb397[_0x577659(0x198)];const _0x534777=_0x1eb397[_0x577659(0x16e)],_0x3a1f1b=await _0xb1aad6[_0x577659(0x141)](getCloudProviderObject,_0x534777,_0x1eb397[_0x577659(0x1c6)],_0x1eb397['name'],_0x54214c),_0x397f41=_0x24b3f6['cloudProvider'];if(_0xb1aad6['UKaSa'](_0x397f41[_0x534777],undefined)){if(_0xb1aad6[_0x577659(0x1bc)](_0xb1aad6[_0x577659(0x12c)],_0xb1aad6[_0x577659(0x156)])){const _0x391a68={};_0x391a68['description']=_0xb1aad6['qkfte'],_0x391a68[_0x577659(0x1ae)]=_0xb1aad6['joeuX'];const _0x50f162={};return _0x50f162['grid-id']=_0x391a68,_0x20596d[_0x577659(0x1b6)](_0x45d932[_0x577659(0x14a)])[_0x577659(0x188)](_0x7cf5e4)[_0x577659(0x157)](_0x50f162)[_0x577659(0x1a8)](_0xb1aad6[_0x577659(0x183)])[_0x577659(0x192)];}else{logger[_0x577659(0x178)](_0xb1aad6[_0x577659(0x12d)]);_0xb1aad6[_0x577659(0x155)](_0x24b3f6[_0x577659(0x16e)],undefined)&&(_0xb1aad6[_0x577659(0x130)](_0xb1aad6[_0x577659(0x197)],_0xb1aad6[_0x577659(0x197)])?_0xfbc7f0['exit'](0x0):_0x24b3f6['cloudProvider']={});_0x24b3f6[_0x577659(0x16e)][_0x534777]={};const _0x4bbec2=await _0xb1aad6[_0x577659(0x182)](inputCloudProviderKeys,_0x534777,_0x24b3f6,_0x3a1f1b);fs[_0x577659(0x1b3)](_0xb1aad6['RZIGH'](getCredentialsPath),JSON[_0x577659(0x18b)](_0x4bbec2)),logger['debug'](_0xb1aad6[_0x577659(0x147)]);}}else _0xb1aad6[_0x577659(0x1bc)](_0xb1aad6['rHcyy'],_0xb1aad6[_0x577659(0x19d)])?(logger[_0x577659(0x178)](_0xb1aad6['bKBjf']),await _0x3a1f1b[_0x577659(0x1b5)](_0x397f41)):_0x567ffb[_0x577659(0x16e)]={};_0x3a1f1b[_0x577659(0x13f)]();const _0x23c80b=await _0x3a1f1b[_0x577659(0x1a3)]();if(_0x23c80b){const _0x4d743e=_0xb1aad6[_0x577659(0x15e)](kebabCase,_0x1eb397[_0x577659(0x1a0)]),[_0x3eebe2,_0x34f041,_0x506b64,_0x5ceaa8,_0x4c3460,_0x16571d]=await _0xb1aad6[_0x577659(0x13a)](createK8sClient,_0x3a1f1b);let _0x1beef5=!![];const _0x30f49b={};_0x30f49b[_0x577659(0x1a0)]=_0x4d743e,await _0x3eebe2[_0x577659(0x1c2)](_0x30f49b)['then'](_0x273cc0=>{const _0x5f30b9=_0x577659;_0xb1aad6['DPgIi'](_0xb1aad6[_0x5f30b9(0x12e)],_0xb1aad6[_0x5f30b9(0x1b0)])?(_0x5aab3a['info']('Successfully\x20deleted\x20the\x20grid'),_0x85e241[_0x5f30b9(0x191)](0x0)):logger[_0x5f30b9(0x178)](_0x5f30b9(0x174)+_0x4d743e+_0x5f30b9(0x17c));})[_0x577659(0x166)](_0x5ca322=>{const _0x4b0b71=_0x577659;_0xb1aad6[_0x4b0b71(0x130)](_0xb1aad6[_0x4b0b71(0x14b)],_0xb1aad6[_0x4b0b71(0x14b)])?_0x5cf138[_0x4b0b71(0x178)](_0x4b0b71(0x174)+_0x4dec46+_0x4b0b71(0x17c)):(logger[_0x4b0b71(0x187)](_0x4b0b71(0x174)+_0x4d743e+_0x4b0b71(0x1bb)),_0x1beef5=![]);});if(_0x1beef5){await _0xb1aad6['dFbOy'](removeGridComponents,_0x3eebe2,_0x34f041,_0x506b64,_0x5ceaa8,_0x4d743e);if(_0x1e92f0[_0x577659(0x158)]){const _0x5433ab=await _0x3a1f1b[_0x577659(0x1c8)]();_0x5433ab?await _0x3a1f1b[_0x577659(0x17b)](_0x3eebe2,_0x1eb397[_0x577659(0x198)]):logger['warn'](_0x577659(0x1af)+_0x1eb397['clusterName']+_0x577659(0x1aa));}}}else logger[_0x577659(0x187)](_0x577659(0x1a2));const _0x114c17=_0x577659(0x186)+AG_API_URL+_0x577659(0x15a)+_0x54214c[_0x577659(0x195)],_0x144596={'method':_0xb1aad6[_0x577659(0x185)],'headers':_0xb1aad6[_0x577659(0x13e)](getAuthHeader,_0x24b3f6[_0x577659(0x1a5)]['username'],_0x24b3f6[_0x577659(0x1a5)][_0x577659(0x184)]),'throwHttpErrors':![]},_0x505981=await _0xb1aad6[_0x577659(0x13e)](got,_0x114c17,_0x144596);_0xb1aad6[_0x577659(0x1c5)](_0x505981,null)&&_0xb1aad6[_0x577659(0x15f)](_0x505981,undefined)&&_0xb1aad6[_0x577659(0x16b)](_0x505981[_0x577659(0x144)],0xc8)&&(logger[_0x577659(0x178)](_0x577659(0x1b2)),process['exit'](0x0)),logger[_0x577659(0x14e)](_0x577659(0x160)+_0x505981[_0x577659(0x199)]),await _0xb1aad6[_0x577659(0x189)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes['ERROR'],_0xb1aad6['MRljg'],_0x3ca1b3,_0x54214c),process[_0x577659(0x191)](0x1);}_0xb1aad6[_0x577659(0x142)](_0x3ca1b3['statusCode'],0x191)&&(logger['error'](_0x577659(0x1ac)),await _0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x1b8)],null,_0x54214c),process['exit'](0x1)),_0xb1aad6['kEXxx'](_0x3ca1b3['statusCode'],0x190)&&(logger[_0x577659(0x14e)](JSON['parse'](_0x3ca1b3[_0x577659(0x199)])[_0x577659(0x1c9)]),await _0xb1aad6[_0x577659(0x13b)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x15d)],null,_0x54214c),process[_0x577659(0x191)](0x1)),logger[_0x577659(0x14e)](_0x577659(0x16a)+JSON['stringify'](_0x3ca1b3)),await _0xb1aad6[_0x577659(0x14f)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes['ERROR'],_0xb1aad6['MRljg'],_0x3ca1b3,_0x54214c),process[_0x577659(0x191)](0x1);}catch(_0x7ace9a){logger[_0x577659(0x14e)](_0x577659(0x17a)+_0x7ace9a['stack']),await _0xb1aad6[_0x577659(0x13c)](sendInstrumentationEvent,_0x54214c,_0xb1aad6[_0x577659(0x140)],messageTypes[_0x577659(0x1c4)],_0xb1aad6[_0x577659(0x1ca)],_0x7ace9a,_0x54214c),process[_0x577659(0x191)](0x1);}};
|
|
1
|
+
const a11_0x50b5ff=a11_0x4251;(function(_0x336bfd,_0x2a4f00){const _0x522186=a11_0x4251,_0xb159e0=_0x336bfd();while(!![]){try{const _0xaa1ee4=parseInt(_0x522186(0xca))/0x1+-parseInt(_0x522186(0x73))/0x2*(parseInt(_0x522186(0x94))/0x3)+-parseInt(_0x522186(0xaf))/0x4*(-parseInt(_0x522186(0xfb))/0x5)+-parseInt(_0x522186(0x7c))/0x6*(-parseInt(_0x522186(0x6f))/0x7)+parseInt(_0x522186(0x87))/0x8*(parseInt(_0x522186(0x6e))/0x9)+parseInt(_0x522186(0xc8))/0xa*(parseInt(_0x522186(0xbb))/0xb)+-parseInt(_0x522186(0xb3))/0xc;if(_0xaa1ee4===_0x2a4f00)break;else _0xb159e0['push'](_0xb159e0['shift']());}catch(_0x1ac5a3){_0xb159e0['push'](_0xb159e0['shift']());}}}(a11_0x46c7,0xdbda4));function a11_0x4251(_0x50990a,_0x391e99){const _0x46c7e2=a11_0x46c7();return a11_0x4251=function(_0x42516a,_0x56cc13){_0x42516a=_0x42516a-0x65;let _0xe39850=_0x46c7e2[_0x42516a];return _0xe39850;},a11_0x4251(_0x50990a,_0x391e99);}const fs=require('fs'),got=require(a11_0x50b5ff(0x67)),{v4:uuidv4}=require(a11_0x50b5ff(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x50b5ff(0xc9)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x50b5ff(0xb8)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x50b5ff(0x6d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require('../../utils/userInput'),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x50b5ff(0x93));function a11_0x46c7(){const _0x115fe3=['Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','../../utils/gridComponents','1875285tYxqKS','117054wvlGKU','DNOev','DTxau','catch','5506ddxwne','CKWZW','info','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','zciMW','stringify','bttXs','Browserstack','318qoFFRc','readFileSync','region','\x22\x20and\x20ID\x20','pTPvx','https://','Namespace:\x20','fwZqV','ERROR','cloudProvider','sUdbM','40GvLkAi','aNpFt','Successfully\x20deleted\x20the\x20grid','ZxYZf','invalid-input','LhYPy','delete','desc','mTADF','VTplC','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','handler','../../utils/utilityMethods','471KCWgpA','KAJZm','SjliH','WqtjW','clusterId','Tsulh','MCABW','ElWzU','TWWvI','Delete\x20an\x20Automation\x20grid.','qRUwW','TsRjY','exit','invalid-grid-id','TjPUi','roXTp','onlyGridInCluster','qMxVw','euAUo','debug','ukGXK','toLowerCase','DeaPH','LkwBx','BsMHA','parse','nrgYn','5372uQPgnM','builder','description','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','47334828DFGWvo','bgDoE','\x22\x20with\x20ID\x20','delete-grid-called','options','../../cloudproviders/utils','buECI','fxJnY','13211ZWEzLT','ffNKy','configureIfNotConfigured','wUzKT','HmdXj','Cluster:\x20','clusterName','eFboa','DELETE','type','ZbudJ','gridId','fetchLocalCreds','9230udqwLR','../../config/constants','1630970WqXtHi','clusterSpawnedVia','EWmCb','command','tsmOz','grid-id','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','then','name','vnpCR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','unauthorised','LseFg','Pass\x20the\x20ID\x20of\x20the\x20Grid','warn','PIaaP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KjTiX','RKwlq','MfOiM','YRkjc','statusCode','usage','uVLrA','cAaWU','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','argv','PWMMg','mdhdf','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','requestId','uuid','aXBzC','ZnmHR','epilogue','readNamespace','stack','server-error','oedqu','username','KKwPH','unknown-error','Jzfio','VSRyU','Failed\x20to\x20delete\x20resources!\x20Error:\x20','PNcfj','2270hSfECs','string','password','zDapi','UNEBK','help','got','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','lEZug','mCXbA'];a11_0x46c7=function(){return _0x115fe3;};return a11_0x46c7();}exports[a11_0x50b5ff(0xcd)]='grid',exports[a11_0x50b5ff(0x8e)]=a11_0x50b5ff(0x9d),exports[a11_0x50b5ff(0xb0)]=function(_0x2df659){const _0x1e28fc=a11_0x50b5ff,_0x143034={};_0x143034[_0x1e28fc(0x9a)]=_0x1e28fc(0xd9),_0x143034[_0x1e28fc(0x69)]='string',_0x143034[_0x1e28fc(0xf3)]=_0x1e28fc(0x66);const _0x598bbc=_0x143034,_0xf73226={};_0xf73226['description']=_0x598bbc[_0x1e28fc(0x9a)],_0xf73226[_0x1e28fc(0xc4)]=_0x598bbc[_0x1e28fc(0x69)];const _0x968a6b={};return _0x968a6b[_0x1e28fc(0xcf)]=_0xf73226,_0x2df659[_0x1e28fc(0xe2)](HELP_HEADER_MESSAGE[_0x1e28fc(0x8d)])[_0x1e28fc(0xef)](HELP_FOOTER_MESSAGE)[_0x1e28fc(0xb7)](_0x968a6b)['help'](_0x598bbc[_0x1e28fc(0xf3)])[_0x1e28fc(0xe7)];},exports[a11_0x50b5ff(0x92)]=async function(_0x4978f3){const _0x3cf5a5=a11_0x50b5ff,_0x283431={'PNcfj':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','bgDoE':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ZxYZf':_0x3cf5a5(0xfc),'TjPUi':_0x3cf5a5(0x66),'DTxau':function(_0xf01d9e,_0xa8ee1d){return _0xf01d9e!==_0xa8ee1d;},'YRkjc':_0x3cf5a5(0x74),'roXTp':_0x3cf5a5(0x80),'HmdXj':function(_0x420d9c,_0x44cba4){return _0x420d9c===_0x44cba4;},'PWMMg':_0x3cf5a5(0x96),'EWmCb':_0x3cf5a5(0xde),'eFboa':function(_0x12c5f2){return _0x12c5f2();},'sUdbM':function(_0x4e5f08){return _0x4e5f08();},'aXBzC':_0x3cf5a5(0x97),'zDapi':_0x3cf5a5(0xb2),'VTplC':function(_0x3ed090,_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7){return _0x3ed090(_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7);},'LseFg':_0x3cf5a5(0xb6),'aNpFt':'init-not-called','Tsulh':function(_0x56b8a8,_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660){return _0x56b8a8(_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660);},'BsMHA':_0x3cf5a5(0xbe),'yNTUR':function(_0x1a9488,_0x449557,_0x23211e,_0x5d80ad){return _0x1a9488(_0x449557,_0x23211e,_0x5d80ad);},'ggMsc':function(_0x53f342,_0x32312b){return _0x53f342===_0x32312b;},'fxJnY':_0x3cf5a5(0x7b),'qMxVw':_0x3cf5a5(0x95),'ZnmHR':function(_0x2e7fb2,_0x2784a6){return _0x2e7fb2(_0x2784a6);},'zciMW':function(_0x4d4fb5,_0x3b4ed5){return _0x4d4fb5===_0x3b4ed5;},'ElWzU':function(_0x3be3a5,_0x22429b){return _0x3be3a5===_0x22429b;},'nrgYn':function(_0x50cdf6,_0x2c909b){return _0x50cdf6===_0x2c909b;},'buECI':function(_0x41498c,_0x2033d3){return _0x41498c!==_0x2033d3;},'KKwPH':_0x3cf5a5(0x9e),'UNEBK':_0x3cf5a5(0xa8),'TWWvI':_0x3cf5a5(0x6b),'Jzfio':function(_0x50447e,_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6){return _0x50447e(_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6);},'fwZqV':_0x3cf5a5(0x8b),'IyqWJ':function(_0x335668,_0x36a296){return _0x335668===_0x36a296;},'bttXs':function(_0x24f4ee,_0x37c12d){return _0x24f4ee!==_0x37c12d;},'TsRjY':'xYFIf','swDGW':function(_0x3bebbe,_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae){return _0x3bebbe(_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae);},'DNOev':function(_0x5af361,_0xb7d745){return _0x5af361===_0xb7d745;},'OuOFO':function(_0x11f9cc,_0x2f5a21){return _0x11f9cc!==_0x2f5a21;},'zfxfX':'VxqDf','ymoyt':_0x3cf5a5(0x8c),'PIaaP':_0x3cf5a5(0xe5),'ZbudJ':_0x3cf5a5(0xab),'MfOiM':_0x3cf5a5(0xd4),'mTADF':function(_0x38dee0,_0x22b222,_0x5d932e,_0x4137eb){return _0x38dee0(_0x22b222,_0x5d932e,_0x4137eb);},'mdhdf':function(_0xd41d8d){return _0xd41d8d();},'euAUo':_0x3cf5a5(0x6c),'lIUlq':function(_0x31416b,_0x976acc){return _0x31416b!==_0x976acc;},'ffNKy':'WPbxf','uVLrA':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','jECmw':function(_0xec7634,_0x3525c2){return _0xec7634(_0x3525c2);},'KjTiX':function(_0x37aa2d,_0x30f412){return _0x37aa2d(_0x30f412);},'FWbct':function(_0x36115a,_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b){return _0x36115a(_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b);},'DQzQn':_0x3cf5a5(0xc3),'VSRyU':function(_0x136376,_0x55d190,_0x203d90){return _0x136376(_0x55d190,_0x203d90);},'DeaPH':function(_0x17e3a9,_0x39f37d){return _0x17e3a9!==_0x39f37d;},'cAaWU':function(_0x4e975d,_0x4d49a7){return _0x4e975d!==_0x4d49a7;},'fsNrb':_0x3cf5a5(0xf2),'OEwyj':_0x3cf5a5(0xd7),'gpetX':function(_0x19ee25,_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44){return _0x19ee25(_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44);},'mCXbA':_0x3cf5a5(0xa1),'tsmOz':_0x3cf5a5(0xf6)};try{global_registry[_0x3cf5a5(0xeb)]=_0x283431[_0x3cf5a5(0xc2)](uuidv4);!fs['existsSync'](_0x283431[_0x3cf5a5(0x86)](getCredentialsPath))&&(_0x283431['DTxau'](_0x283431['aXBzC'],_0x283431[_0x3cf5a5(0xed)])?(_0x33ad5d[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),_0x552731[_0x3cf5a5(0xa0)](0x1)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfe)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x88)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)));_0x283431[_0x3cf5a5(0x99)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['INFO'],null,null,_0x4978f3);!_0x4978f3[_0x3cf5a5(0xc6)]&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xac)],_0x283431['BsMHA'])?_0x3d23c0[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x19fe09[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),process[_0x3cf5a5(0xa0)](0x1)));const _0x6973bd=JSON[_0x3cf5a5(0xad)](fs[_0x3cf5a5(0x7d)](_0x283431[_0x3cf5a5(0xc2)](getCredentialsPath))),[_0x399814,_0x483fb8]=await _0x283431['yNTUR'](getGridDetails,_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xf4)],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)],_0x4978f3[_0x3cf5a5(0xc6)]);if(_0x483fb8){const _0x4eb716=_0x483fb8[_0x3cf5a5(0x75)];let _0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x4eb716['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x58dc36;_0x483fb8[_0x3cf5a5(0xa4)]&&_0x283431['ggMsc'](_0x483fb8[_0x3cf5a5(0xcb)],_0x283431[_0x3cf5a5(0xba)])&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xa5)],_0x283431[_0x3cf5a5(0xa5)])?_0x4ef2f4['info'](_0x3cf5a5(0x82)+_0x2a87d2+_0x3cf5a5(0xe6)):_0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716['name']+_0x3cf5a5(0x7f)+_0x4eb716['id']+_0x3cf5a5(0xd1)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0xb5)+_0x4eb716['clusterId']+_0x3cf5a5(0x76));_0x58dc36=await _0x283431[_0x3cf5a5(0xee)](inputConfirmation,_0x21f3f2);(_0x283431[_0x3cf5a5(0x78)](_0x58dc36,undefined)||_0x283431[_0x3cf5a5(0x9b)](_0x58dc36,null)||!(_0x283431[_0x3cf5a5(0xae)](_0x58dc36[_0x3cf5a5(0xa9)](),'y')||_0x283431['ggMsc'](_0x58dc36['toLowerCase'](),'n')))&&(_0x283431[_0x3cf5a5(0xb9)](_0x283431[_0x3cf5a5(0xf5)],_0x283431[_0x3cf5a5(0x65)])?(console['error'](_0x283431[_0x3cf5a5(0x9c)]),await _0x283431['Jzfio'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x83)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)):_0x572a3b=_0x3cf5a5(0xea)+_0x168e78[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x273fd5['id']+_0x3cf5a5(0xd1)+_0x49049f['clusterName']+'\x22\x20with\x20ID\x20'+_0x27fdac[_0x3cf5a5(0x98)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x283431['IyqWJ'](_0x58dc36[_0x3cf5a5(0xa9)](),'n')&&(_0x283431[_0x3cf5a5(0x7a)](_0x283431[_0x3cf5a5(0x9f)],_0x283431[_0x3cf5a5(0x9f)])?_0x18baf4['warn']('Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted'):process[_0x3cf5a5(0xa0)](0x0));global_registry['clusterRegion']=_0x4eb716[_0x3cf5a5(0x7e)];const _0xdc5b5d=_0x4eb716[_0x3cf5a5(0x85)],_0xa3167=await _0x283431['swDGW'](getCloudProviderObject,_0xdc5b5d,_0x4eb716[_0x3cf5a5(0xc1)],_0x4eb716[_0x3cf5a5(0xd3)],_0x4978f3),_0x248c82=_0x6973bd[_0x3cf5a5(0x85)];if(_0x283431[_0x3cf5a5(0x70)](_0x248c82[_0xdc5b5d],undefined)){if(_0x283431['OuOFO'](_0x283431['zfxfX'],_0x283431['ymoyt'])){logger['info'](_0x283431[_0x3cf5a5(0xdb)]);_0x283431['ElWzU'](_0x6973bd[_0x3cf5a5(0x85)],undefined)&&(_0x283431['nrgYn'](_0x283431[_0x3cf5a5(0xc5)],_0x283431[_0x3cf5a5(0xdf)])?_0x1ae051[_0x3cf5a5(0x85)]={}:_0x6973bd[_0x3cf5a5(0x85)]={});_0x6973bd[_0x3cf5a5(0x85)][_0xdc5b5d]={};const _0x13c0e4=await _0x283431[_0x3cf5a5(0x8f)](inputCloudProviderKeys,_0xdc5b5d,_0x6973bd,_0xa3167);fs['writeFileSync'](_0x283431[_0x3cf5a5(0xe9)](getCredentialsPath),JSON[_0x3cf5a5(0x79)](_0x13c0e4)),logger[_0x3cf5a5(0xa7)](_0x283431[_0x3cf5a5(0xa6)]);}else _0x24c87c[_0x3cf5a5(0xa0)](0x0);}else{if(_0x283431['lIUlq'](_0x283431[_0x3cf5a5(0xbc)],_0x283431[_0x3cf5a5(0xbc)])){const _0x40c54a={};_0x40c54a[_0x3cf5a5(0xb1)]=_0x283431[_0x3cf5a5(0xb4)],_0x40c54a[_0x3cf5a5(0xc4)]=_0x283431[_0x3cf5a5(0x8a)];const _0x34d81b={};return _0x34d81b['grid-id']=_0x40c54a,_0x314445[_0x3cf5a5(0xe2)](_0x5f598b['delete'])[_0x3cf5a5(0xef)](_0x4178c6)[_0x3cf5a5(0xb7)](_0x34d81b)[_0x3cf5a5(0x66)](_0x283431[_0x3cf5a5(0xa2)])[_0x3cf5a5(0xe7)];}else logger[_0x3cf5a5(0x75)](_0x283431[_0x3cf5a5(0xe3)]),await _0xa3167[_0x3cf5a5(0xc7)](_0x248c82);}_0xa3167[_0x3cf5a5(0xbd)]();const _0x2f7776=await _0xa3167['isClusterPresent']();if(_0x2f7776){const _0xc1809a=_0x283431['jECmw'](kebabCase,_0x4eb716[_0x3cf5a5(0xd3)]),[_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0x3daee1,_0x1d847b]=await _0x283431[_0x3cf5a5(0xdd)](createK8sClient,_0xa3167);let _0x12fcd8=!![];const _0x53666a={};_0x53666a[_0x3cf5a5(0xd3)]=_0xc1809a,await _0x524a26[_0x3cf5a5(0xf0)](_0x53666a)[_0x3cf5a5(0xd2)](_0x3b698e=>{const _0x294dc5=_0x3cf5a5;_0x283431[_0x294dc5(0x71)](_0x283431[_0x294dc5(0xe0)],_0x283431[_0x294dc5(0xa3)])?logger[_0x294dc5(0x75)]('Namespace:\x20'+_0xc1809a+_0x294dc5(0xe6)):(_0x1a3612[_0x294dc5(0xda)](_0x294dc5(0x82)+_0x3b2314+_0x294dc5(0x91)),_0xd2ff81=![]);})[_0x3cf5a5(0x72)](_0x3a150e=>{const _0x43f116=_0x3cf5a5;_0x283431[_0x43f116(0xbf)](_0x283431[_0x43f116(0xe8)],_0x283431[_0x43f116(0xcc)])?(_0x2ef590[_0x43f116(0x75)](_0x43f116(0x89)),_0xd79020[_0x43f116(0xa0)](0x0)):(logger[_0x43f116(0xda)]('Namespace:\x20'+_0xc1809a+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x12fcd8=![]);});if(_0x12fcd8){await _0x283431['FWbct'](removeGridComponents,_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0xc1809a);if(_0x483fb8[_0x3cf5a5(0xa4)]){const _0x41d279=await _0xa3167['isBrowserstackCluster']();_0x41d279?await _0xa3167['deleteCluster'](_0x524a26,_0x4eb716['region']):logger[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68));}}}else logger['warn'](_0x3cf5a5(0x77));const _0x4980e5=_0x3cf5a5(0x81)+AG_API_URL+'/packages/cli/grid/'+_0x4978f3[_0x3cf5a5(0xc6)],_0x98d007={'method':_0x283431['DQzQn'],'headers':_0x283431[_0x3cf5a5(0xf8)](getAuthHeader,_0x6973bd['Browserstack']['username'],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)]),'throwHttpErrors':![]},_0x2abe9a=await _0x283431[_0x3cf5a5(0xf8)](got,_0x4980e5,_0x98d007);_0x283431[_0x3cf5a5(0xaa)](_0x2abe9a,null)&&_0x283431[_0x3cf5a5(0xe4)](_0x2abe9a,undefined)&&_0x283431[_0x3cf5a5(0xbf)](_0x2abe9a[_0x3cf5a5(0xe1)],0xc8)&&(logger[_0x3cf5a5(0x75)](_0x3cf5a5(0x89)),process['exit'](0x0)),logger[_0x3cf5a5(0xd6)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x2abe9a[_0x3cf5a5(0xd0)]),await _0x283431['VTplC'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}_0x283431[_0x3cf5a5(0x78)](_0x399814[_0x3cf5a5(0xe1)],0x191)&&(logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xdc)),await _0x283431['Tsulh'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['OEwyj'],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)),_0x283431[_0x3cf5a5(0x9b)](_0x399814['statusCode'],0x190)&&(logger[_0x3cf5a5(0xd6)](JSON[_0x3cf5a5(0xad)](_0x399814[_0x3cf5a5(0xd0)])['message']),await _0x283431['gpetX'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x6a)],null,_0x4978f3),process['exit'](0x1)),logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xd5)+JSON['stringify'](_0x399814)),await _0x283431[_0x3cf5a5(0xf7)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['ERROR'],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}catch(_0x2c1e00){logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xf9)+_0x2c1e00[_0x3cf5a5(0xf1)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0xce)],_0x2c1e00,_0x4978f3),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x1be345=a12_0x3962;(function(_0x595708,_0x48d267){const _0xd1c02e=a12_0x3962,_0x1febba=_0x595708();while(!![]){try{const _0x58cec5=-parseInt(_0xd1c02e(0x207))/0x1*(-parseInt(_0xd1c02e(0x247))/0x2)+parseInt(_0xd1c02e(0x230))/0x3+parseInt(_0xd1c02e(0x1fe))/0x4+parseInt(_0xd1c02e(0x22b))/0x5*(-parseInt(_0xd1c02e(0x20c))/0x6)+-parseInt(_0xd1c02e(0x208))/0x7+-parseInt(_0xd1c02e(0x200))/0x8*(-parseInt(_0xd1c02e(0x217))/0x9)+parseInt(_0xd1c02e(0x23e))/0xa;if(_0x58cec5===_0x48d267)break;else _0x1febba['push'](_0x1febba['shift']());}catch(_0x4591de){_0x1febba['push'](_0x1febba['shift']());}}}(a12_0x3da2,0x7b868));const fs=require('fs'),util=require(a12_0x1be345(0x1fd)),got=require(a12_0x1be345(0x21c)),{v4:uuidv4}=require(a12_0x1be345(0x222)),{logger}=require(a12_0x1be345(0x234)),{inputBstackKeys}=require(a12_0x1be345(0x213)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x1be345(0x226)),{sendInstrumentationEvent}=require(a12_0x1be345(0x20a));exports[a12_0x1be345(0x242)]=a12_0x1be345(0x202),exports[a12_0x1be345(0x24d)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x1be345(0x24a)]=function(_0x9c989f){const _0x44e3de=a12_0x1be345,_0x5949d6={};_0x5949d6['npRQf']=_0x44e3de(0x23a),_0x5949d6[_0x44e3de(0x250)]=_0x44e3de(0x20f),_0x5949d6[_0x44e3de(0x22f)]=_0x44e3de(0x1f0),_0x5949d6[_0x44e3de(0x244)]=_0x44e3de(0x212);const _0x52f41e=_0x5949d6,_0x5d77ec={};_0x5d77ec[_0x44e3de(0x215)]=_0x52f41e[_0x44e3de(0x23f)],_0x5d77ec[_0x44e3de(0x24c)]=_0x52f41e['OWbnA'];const _0x97d75a={};_0x97d75a['description']=_0x52f41e['llHie'],_0x97d75a['type']=_0x52f41e[_0x44e3de(0x250)];const _0x3e426c={};return _0x3e426c['bstack-username']=_0x5d77ec,_0x3e426c['bstack-accesskey']=_0x97d75a,_0x9c989f['usage'](HELP_HEADER_MESSAGE['init'])[_0x44e3de(0x20e)](HELP_FOOTER_MESSAGE)[_0x44e3de(0x219)](_0x3e426c)[_0x44e3de(0x21b)]()[_0x44e3de(0x253)]()[_0x44e3de(0x212)](_0x52f41e['Dpddp'])[_0x44e3de(0x24f)];},exports[a12_0x1be345(0x205)]=async function(_0x3d0123){const _0xb8758b=a12_0x1be345,_0x1ae5e2={'OiCie':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lTqgZ':_0xb8758b(0x20f),'cWpoe':_0xb8758b(0x1f0),'xadwY':'help','ikJZy':function(_0x3050ed){return _0x3050ed();},'OsUTJ':_0xb8758b(0x22a),'CaEba':function(_0x247922,_0x4d7b94,_0x321aac,_0x345c47,_0x1588cf,_0x35f343,_0x48ba6c){return _0x247922(_0x4d7b94,_0x321aac,_0x345c47,_0x1588cf,_0x35f343,_0x48ba6c);},'gWjqQ':_0xb8758b(0x21d),'DTIDo':function(_0x4a1f3b,_0x46e6b8){return _0x4a1f3b!==_0x46e6b8;},'TtucR':'shgVq','oocRa':function(_0x5586df,_0x30b62f){return _0x5586df===_0x30b62f;},'tZVCz':_0xb8758b(0x209),'NDIJr':_0xb8758b(0x21a),'ySdGp':'keSFf','vkefW':function(_0x5f4f4a,_0x399b40){return _0x5f4f4a!==_0x399b40;},'GKhDt':_0xb8758b(0x206),'toiif':'vrINZ','bSDmJ':function(_0x58215c,_0x31f0c9){return _0x58215c===_0x31f0c9;},'ljwBO':_0xb8758b(0x254),'Idlul':_0xb8758b(0x239),'WNgEj':function(_0x5d5f1f,_0x21b6cb){return _0x5d5f1f!==_0x21b6cb;},'wxbIf':'ypYPT','xaBFz':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','QxafO':function(_0x3eaf3c){return _0x3eaf3c();},'uLOwA':'GET','MksSD':function(_0x324783,_0x576d58,_0x20457d){return _0x324783(_0x576d58,_0x20457d);},'PHJBQ':_0xb8758b(0x214),'SEsjP':_0xb8758b(0x249),'JKOOt':_0xb8758b(0x233),'BfveP':_0xb8758b(0x23d),'Cbyso':function(_0x695259,_0x3aa9c5){return _0x695259===_0x3aa9c5;},'IpHBK':_0xb8758b(0x1f5),'iyodc':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','DdDqp':_0xb8758b(0x20b),'ylrYb':function(_0xfe95eb,_0x4d1bc0,_0x59db72,_0x143bd1,_0x1096e2,_0x31f096,_0x506e77){return _0xfe95eb(_0x4d1bc0,_0x59db72,_0x143bd1,_0x1096e2,_0x31f096,_0x506e77);},'IkOVW':_0xb8758b(0x22e)};try{global_registry['requestId']=_0x1ae5e2[_0xb8758b(0x21e)](uuidv4),_0x1ae5e2[_0xb8758b(0x211)](sendInstrumentationEvent,_0x3d0123,_0x1ae5e2['gWjqQ'],messageTypes[_0xb8758b(0x20d)],null,null,_0x3d0123);const _0x4c6895=_0x1ae5e2[_0xb8758b(0x21e)](getDirForConfig);!fs[_0xb8758b(0x232)](_0x4c6895)&&(_0x1ae5e2[_0xb8758b(0x224)](_0x1ae5e2[_0xb8758b(0x227)],_0x1ae5e2[_0xb8758b(0x227)])?_0x3bd5a8=!![]:fs[_0xb8758b(0x221)](_0x4c6895));let _0x2fd8af,_0x232b8b;if(process[_0xb8758b(0x243)][_0xb8758b(0x1ef)]){if(_0x1ae5e2[_0xb8758b(0x22c)](_0x1ae5e2[_0xb8758b(0x23b)],_0x1ae5e2[_0xb8758b(0x23b)]))_0x2fd8af=process[_0xb8758b(0x243)][_0xb8758b(0x1ef)];else{const _0x2d2d09={};_0x2d2d09[_0xb8758b(0x215)]=_0x1ae5e2[_0xb8758b(0x252)],_0x2d2d09[_0xb8758b(0x24c)]=_0x1ae5e2[_0xb8758b(0x229)];const _0x464177={};_0x464177['description']=_0x1ae5e2[_0xb8758b(0x23c)],_0x464177['type']=_0x1ae5e2[_0xb8758b(0x229)];const _0x41dad9={};return _0x41dad9[_0xb8758b(0x203)]=_0x2d2d09,_0x41dad9[_0xb8758b(0x1f8)]=_0x464177,_0x4fc406['usage'](_0x3db227[_0xb8758b(0x202)])[_0xb8758b(0x20e)](_0x2cf436)[_0xb8758b(0x219)](_0x41dad9)[_0xb8758b(0x21b)]()[_0xb8758b(0x253)]()[_0xb8758b(0x212)](_0x1ae5e2[_0xb8758b(0x248)])['argv'];}}if(process['env'][_0xb8758b(0x1ff)]){if(_0x1ae5e2[_0xb8758b(0x22c)](_0x1ae5e2[_0xb8758b(0x1f4)],_0x1ae5e2[_0xb8758b(0x240)])){let _0x2c7b74={};const _0xe71e34=_0x1ae5e2['ikJZy'](_0x25e23b);_0x5ce80e[_0xb8758b(0x232)](_0xe71e34)&&(_0x2c7b74=_0x5e025e['parse'](_0x54fb14['readFileSync'](_0xe71e34,_0x1ae5e2['OsUTJ'])));const _0x2a7e88={};_0x2a7e88[_0xb8758b(0x236)]=_0x3e571a,_0x2a7e88[_0xb8758b(0x24b)]=_0x58518f,_0x2c7b74[_0xb8758b(0x201)]=_0x2a7e88,_0x2aba9e[_0xb8758b(0x216)](_0xe71e34,_0x3206af['stringify'](_0x2c7b74)),_0x5cdebc[_0xb8758b(0x225)](0x0);}else _0x232b8b=process[_0xb8758b(0x243)]['BROWSERSTACK_ACCESS_KEY'];}_0x3d0123[_0xb8758b(0x245)]&&(_0x1ae5e2[_0xb8758b(0x1fa)](_0x1ae5e2['GKhDt'],_0x1ae5e2[_0xb8758b(0x22d)])?_0x2fd8af=_0x3d0123[_0xb8758b(0x245)]:_0x169355=_0x75b31a[_0xb8758b(0x245)]);_0x3d0123[_0xb8758b(0x246)]&&(_0x1ae5e2[_0xb8758b(0x1f7)](_0x1ae5e2['ljwBO'],_0x1ae5e2[_0xb8758b(0x238)])?_0x2cbb08=_0x4606['env'][_0xb8758b(0x1ff)]:_0x232b8b=_0x3d0123[_0xb8758b(0x246)]);if(_0x1ae5e2[_0xb8758b(0x22c)](_0x2fd8af,undefined)||_0x1ae5e2['bSDmJ'](_0x232b8b,undefined)){if(_0x1ae5e2[_0xb8758b(0x1f3)](_0x1ae5e2[_0xb8758b(0x1fc)],_0x1ae5e2[_0xb8758b(0x1fc)]))_0x299a25[_0xb8758b(0x221)](_0x574713);else{logger[_0xb8758b(0x223)](_0x1ae5e2['xaBFz']);const [_0x1cde95,_0x463c0d]=await _0x1ae5e2['QxafO'](inputBstackKeys);_0x2fd8af=_0x1cde95,_0x232b8b=_0x463c0d;}}let _0x52e109=![];const _0x24e5c0=_0xb8758b(0x1f9)+_0x2fd8af+':'+_0x232b8b+'@'+BS_API_URL+'/automate/plan.json',_0x187acd={'method':_0x1ae5e2['uLOwA'],'headers':_0x1ae5e2[_0xb8758b(0x220)](getAuthHeader,_0x2fd8af,_0x232b8b),'throwHttpErrors':![]},_0x41fdec=await _0x1ae5e2[_0xb8758b(0x220)](got,_0x24e5c0,_0x187acd);_0x1ae5e2[_0xb8758b(0x224)](_0x41fdec,null)&&_0x1ae5e2[_0xb8758b(0x1fa)](_0x41fdec,undefined)&&_0x1ae5e2[_0xb8758b(0x22c)](_0x41fdec[_0xb8758b(0x228)],0xc8)&&(_0x1ae5e2[_0xb8758b(0x224)](_0x1ae5e2[_0xb8758b(0x1f2)],_0x1ae5e2[_0xb8758b(0x24e)])?_0x52e109=!![]:_0x20aed9=_0x2d8723[_0xb8758b(0x246)]);if(_0x52e109){if(_0x1ae5e2[_0xb8758b(0x1fa)](_0x1ae5e2[_0xb8758b(0x237)],_0x1ae5e2[_0xb8758b(0x251)])){let _0x4d8087={};const _0x53c9a5=_0x1ae5e2['QxafO'](getCredentialsPath);fs[_0xb8758b(0x232)](_0x53c9a5)&&(_0x1ae5e2['Cbyso'](_0x1ae5e2[_0xb8758b(0x204)],_0x1ae5e2[_0xb8758b(0x204)])?_0x4d8087=JSON[_0xb8758b(0x241)](fs[_0xb8758b(0x231)](_0x53c9a5,_0x1ae5e2[_0xb8758b(0x218)])):_0x31f678=_0x32a05e[_0xb8758b(0x241)](_0x297a54[_0xb8758b(0x231)](_0x9596f,_0x1ae5e2[_0xb8758b(0x218)])));const _0x1b9baf={};_0x1b9baf[_0xb8758b(0x236)]=_0x2fd8af,_0x1b9baf['password']=_0x232b8b,_0x4d8087[_0xb8758b(0x201)]=_0x1b9baf,fs[_0xb8758b(0x216)](_0x53c9a5,JSON[_0xb8758b(0x1f1)](_0x4d8087)),process['exit'](0x0);}else _0x32a87e=_0xd8e5e6[_0xb8758b(0x243)][_0xb8758b(0x1ef)];}else logger['error'](_0x1ae5e2[_0xb8758b(0x1fb)]),await _0x1ae5e2[_0xb8758b(0x211)](sendInstrumentationEvent,_0x3d0123,_0x1ae5e2['gWjqQ'],messageTypes[_0xb8758b(0x210)],_0x1ae5e2['DdDqp'],null,_0x3d0123),process['exit'](0x1);}catch(_0x245136){logger[_0xb8758b(0x1f6)](_0x245136[_0xb8758b(0x235)]),await _0x1ae5e2['ylrYb'](sendInstrumentationEvent,_0x3d0123,_0x1ae5e2[_0xb8758b(0x21f)],messageTypes['ERROR'],_0x1ae5e2['IkOVW'],_0x245136,_0x3d0123),process[_0xb8758b(0x225)](0x1);}};function a12_0x3962(_0x4dca99,_0x5ceb72){const _0x3da294=a12_0x3da2();return a12_0x3962=function(_0x39623f,_0x1470bd){_0x39623f=_0x39623f-0x1ef;let _0x1ae17f=_0x3da294[_0x39623f];return _0x1ae17f;},a12_0x3962(_0x4dca99,_0x5ceb72);}function a12_0x3da2(){const _0x35bd58=['type','desc','SEsjP','argv','OWbnA','BfveP','OiCie','strict','gkDgc','BROWSERSTACK_USERNAME','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','stringify','PHJBQ','WNgEj','NDIJr','tEEXr','error','bSDmJ','bstack-accesskey','https://','vkefW','iyodc','wxbIf','util','806980lEgtey','BROWSERSTACK_ACCESS_KEY','544jpyBTD','Browserstack','init','bstack-username','IpHBK','handler','JekwA','3635zYUffZ','7078512UZfYma','vxbBf','../utils/instrumentationUtils','wrong-creds','192WeoOXt','INFO','epilogue','string','ERROR','CaEba','help','../utils/userInput','MNque','description','writeFileSync','54909LDZzBn','OsUTJ','options','ALFVX','recommendCommands','got','init-called','ikJZy','gWjqQ','MksSD','mkdirSync','uuid','debug','DTIDo','exit','../utils/utilityMethods','TtucR','statusCode','lTqgZ','utf-8','117155LBarHt','oocRa','toiif','unknown-error','llHie','934194isecif','readFileSync','existsSync','UlnGn','../config/logger','stack','username','JKOOt','Idlul','FcaUg','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','tZVCz','cWpoe','NICNn','10445220FeDpHr','npRQf','ySdGp','parse','command','env','Dpddp','bstackUsername','bstackAccesskey','162RvWdVd','xadwY','UOcom','builder','password'];a12_0x3da2=function(){return _0x35bd58;};return a12_0x3da2();}
|
|
1
|
+
const a12_0x2056b1=a12_0x25db;(function(_0x2ff3da,_0x4f155e){const _0x5767ac=a12_0x25db,_0x4678a0=_0x2ff3da();while(!![]){try{const _0x48aa85=parseInt(_0x5767ac(0x18d))/0x1*(parseInt(_0x5767ac(0x184))/0x2)+parseInt(_0x5767ac(0x190))/0x3*(parseInt(_0x5767ac(0x170))/0x4)+-parseInt(_0x5767ac(0x197))/0x5*(parseInt(_0x5767ac(0x175))/0x6)+parseInt(_0x5767ac(0x18c))/0x7+parseInt(_0x5767ac(0x181))/0x8+-parseInt(_0x5767ac(0x17f))/0x9*(parseInt(_0x5767ac(0x16d))/0xa)+-parseInt(_0x5767ac(0x19d))/0xb;if(_0x48aa85===_0x4f155e)break;else _0x4678a0['push'](_0x4678a0['shift']());}catch(_0x3518d2){_0x4678a0['push'](_0x4678a0['shift']());}}}(a12_0x148c,0x3c2c7));const fs=require('fs'),util=require(a12_0x2056b1(0x17c)),got=require(a12_0x2056b1(0x19c)),{v4:uuidv4}=require(a12_0x2056b1(0x177)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x2056b1(0x14d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x2056b1(0x15e)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2056b1(0x171)),{sendInstrumentationEvent}=require(a12_0x2056b1(0x165));function a12_0x148c(){const _0x4f04fb=['guyyN','wrong-creds','MyAiJ','recommendCommands','kxHRf','handler','868905sOLXPY','CXiiN','writeFileSync','nKWfs','zbpJg','got','8144950twxgoo','AgOfj','ERROR','wROcy','type','qmSrH','init-called','XLRRl','bstackUsername','XgehA','command','ZwbnR','sIKKA','exit','existsSync','bstack-accesskey','bSJhy','unknown-error','stringify','strict','utf-8','INFO','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','init','https://','/automate/plan.json','YOxeW','epilogue','description','PeunG','YctBD','env','../utils/userInput','ghwnk','iFsts','kKEEe','BROWSERSTACK_ACCESS_KEY','oXBXG','builder','desc','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!','argv','SQuYc','options','username','fwxuA','readFileSync','IqaIw','../config/constants','BROWSERSTACK_USERNAME','WgdYr','PVYTs','ZAvPW','dIvPl','SaLVp','../utils/instrumentationUtils','password','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','mkdirSync','statusCode','eHckQ','requestId','AsMVj','2540uktZxJ','nZKNT','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','161068MhUsXO','../utils/utilityMethods','kbeSI','debug','uvJAR','6ViPldv','Ctqjg','uuid','stack','bstackAccesskey','ZrXnH','string','util','tqhJG','error','8055GzCOwP','ioScj','794520lCMfTJ','aJMXU','parse','927190DrrRVn','Browserstack','ecrYG','help','xhWPh','aXjAx','ZTNJg','IjLVy','2393426DAsTWs','1PGUhPc','ipwuR','tKFsD','36Gerblh'];a12_0x148c=function(){return _0x4f04fb;};return a12_0x148c();}function a12_0x25db(_0x46ea50,_0x4d2ec8){const _0x148c74=a12_0x148c();return a12_0x25db=function(_0x25db7c,_0x59723c){_0x25db7c=_0x25db7c-0x13b;let _0x4bb811=_0x148c74[_0x25db7c];return _0x4bb811;},a12_0x25db(_0x46ea50,_0x4d2ec8);}exports[a12_0x2056b1(0x1a7)]='init',exports[a12_0x2056b1(0x154)]=a12_0x2056b1(0x167),exports[a12_0x2056b1(0x153)]=function(_0x197277){const _0x4eb589=a12_0x2056b1,_0x45a432={};_0x45a432['oXBXG']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x45a432[_0x4eb589(0x172)]=_0x4eb589(0x17b),_0x45a432[_0x4eb589(0x19a)]=_0x4eb589(0x16f),_0x45a432[_0x4eb589(0x150)]='help';const _0x3fb4ce=_0x45a432,_0x29c1da={};_0x29c1da[_0x4eb589(0x149)]=_0x3fb4ce[_0x4eb589(0x152)],_0x29c1da[_0x4eb589(0x1a1)]=_0x3fb4ce[_0x4eb589(0x172)];const _0x77b407={};_0x77b407[_0x4eb589(0x149)]=_0x3fb4ce['nKWfs'],_0x77b407['type']=_0x3fb4ce[_0x4eb589(0x172)];const _0xb9488={};return _0xb9488['bstack-username']=_0x29c1da,_0xb9488[_0x4eb589(0x13b)]=_0x77b407,_0x197277['usage'](HELP_HEADER_MESSAGE[_0x4eb589(0x144)])[_0x4eb589(0x148)](HELP_FOOTER_MESSAGE)[_0x4eb589(0x159)](_0xb9488)['recommendCommands']()[_0x4eb589(0x13f)]()[_0x4eb589(0x187)](_0x3fb4ce['kKEEe'])[_0x4eb589(0x157)];},exports[a12_0x2056b1(0x196)]=async function(_0x258642){const _0x3ac7b3=a12_0x2056b1,_0x182dda={'kxHRf':function(_0x1558d7){return _0x1558d7();},'tKFsD':_0x3ac7b3(0x140),'aJMXU':_0x3ac7b3(0x142),'YctBD':_0x3ac7b3(0x17b),'ZAvPW':_0x3ac7b3(0x16f),'AgOfj':_0x3ac7b3(0x187),'zbpJg':function(_0x59d766){return _0x59d766();},'xhWPh':function(_0x2c9475,_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14){return _0x2c9475(_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14);},'ipwuR':_0x3ac7b3(0x1a3),'MyAiJ':function(_0x18b16b){return _0x18b16b();},'YOxeW':function(_0x4a5d9c,_0x3c610e){return _0x4a5d9c!==_0x3c610e;},'AsMVj':'ernSl','zcsud':_0x3ac7b3(0x16e),'sIKKA':_0x3ac7b3(0x1a0),'eHckQ':function(_0x5aa429,_0x56f70d){return _0x5aa429===_0x56f70d;},'PeunG':'SZsQO','SaLVp':'rLjzW','bSJhy':function(_0x2ea7f0,_0xb90a97){return _0x2ea7f0!==_0xb90a97;},'XLRRl':'rvSqG','PVYTs':_0x3ac7b3(0x18b),'dIvPl':'SUjCE','uvJAR':function(_0x55632e,_0x32fc9e){return _0x55632e===_0x32fc9e;},'ZrXnH':function(_0x169623,_0xc38ddb){return _0x169623!==_0xc38ddb;},'CXiiN':_0x3ac7b3(0x191),'ZwbnR':'ZBxto','ZTNJg':_0x3ac7b3(0x155),'TsMyi':function(_0x3004e5){return _0x3004e5();},'SQuYc':'GET','OEHcw':function(_0x4ca191,_0x1b947c,_0x33e811){return _0x4ca191(_0x1b947c,_0x33e811);},'iFsts':function(_0x40a5a4,_0x529da9,_0x28c882){return _0x40a5a4(_0x529da9,_0x28c882);},'qmSrH':function(_0x1a61e3,_0x3edc06){return _0x1a61e3!==_0x3edc06;},'IqaIw':_0x3ac7b3(0x1a6),'fwxuA':_0x3ac7b3(0x189),'PnIRd':function(_0x2f83df,_0x10386d){return _0x2f83df===_0x10386d;},'Ctqjg':'yPDPM','tJMTC':function(_0x20ba8f,_0x2103cc){return _0x20ba8f!==_0x2103cc;},'WgdYr':_0x3ac7b3(0x186),'BpcLh':_0x3ac7b3(0x17d),'hVQay':_0x3ac7b3(0x156),'ghwnk':_0x3ac7b3(0x192),'ioScj':_0x3ac7b3(0x13d)};try{global_registry[_0x3ac7b3(0x16b)]=_0x182dda[_0x3ac7b3(0x19b)](uuidv4),_0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x141)],null,null,_0x258642);const _0x3b1066=_0x182dda[_0x3ac7b3(0x193)](getDirForConfig);if(!fs[_0x3ac7b3(0x1ab)](_0x3b1066)){if(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x16c)],_0x182dda['zcsud']))fs['mkdirSync'](_0x3b1066);else{let _0x387acf={};const _0x94cb9=_0x182dda[_0x3ac7b3(0x195)](_0x38ce48);_0x1f2c96[_0x3ac7b3(0x1ab)](_0x94cb9)&&(_0x387acf=_0x50572a[_0x3ac7b3(0x183)](_0x5b8102['readFileSync'](_0x94cb9,_0x182dda[_0x3ac7b3(0x18f)])));const _0x2a1268={};_0x2a1268['username']=_0x16fc0e,_0x2a1268['password']=_0x3d4aeb,_0x387acf['Browserstack']=_0x2a1268,_0x17f839[_0x3ac7b3(0x199)](_0x94cb9,_0x288ef3[_0x3ac7b3(0x13e)](_0x387acf)),_0x5b41f4[_0x3ac7b3(0x1aa)](0x0);}}let _0x378024,_0x2b9173;process[_0x3ac7b3(0x14c)]['BROWSERSTACK_USERNAME']&&(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x1a9)],_0x182dda[_0x3ac7b3(0x1a9)])?_0x5ca588=_0x2426fb[_0x3ac7b3(0x179)]:_0x378024=process[_0x3ac7b3(0x14c)][_0x3ac7b3(0x15f)]);process['env'][_0x3ac7b3(0x151)]&&(_0x182dda['eHckQ'](_0x182dda[_0x3ac7b3(0x14a)],_0x182dda[_0x3ac7b3(0x164)])?_0x41661d[_0x3ac7b3(0x168)](_0x282c41):_0x2b9173=process['env']['BROWSERSTACK_ACCESS_KEY']);_0x258642[_0x3ac7b3(0x1a5)]&&(_0x182dda[_0x3ac7b3(0x13c)](_0x182dda[_0x3ac7b3(0x1a4)],_0x182dda[_0x3ac7b3(0x1a4)])?_0x32ef40=_0xc37cb7[_0x3ac7b3(0x1a5)]:_0x378024=_0x258642[_0x3ac7b3(0x1a5)]);if(_0x258642['bstackAccesskey']){if(_0x182dda[_0x3ac7b3(0x16a)](_0x182dda[_0x3ac7b3(0x161)],_0x182dda[_0x3ac7b3(0x163)])){const _0xd8c740={};_0xd8c740[_0x3ac7b3(0x149)]=_0x182dda[_0x3ac7b3(0x182)],_0xd8c740[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x4c3183={};_0x4c3183['description']=_0x182dda[_0x3ac7b3(0x162)],_0x4c3183[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x502c53={};return _0x502c53['bstack-username']=_0xd8c740,_0x502c53[_0x3ac7b3(0x13b)]=_0x4c3183,_0x503355[_0x3ac7b3(0x143)](_0x4f56d4[_0x3ac7b3(0x144)])['epilogue'](_0x4c054a)[_0x3ac7b3(0x159)](_0x502c53)[_0x3ac7b3(0x194)]()[_0x3ac7b3(0x13f)]()[_0x3ac7b3(0x187)](_0x182dda[_0x3ac7b3(0x19e)])['argv'];}else _0x2b9173=_0x258642[_0x3ac7b3(0x179)];}if(_0x182dda[_0x3ac7b3(0x174)](_0x378024,undefined)||_0x182dda[_0x3ac7b3(0x16a)](_0x2b9173,undefined)){if(_0x182dda[_0x3ac7b3(0x17a)](_0x182dda[_0x3ac7b3(0x198)],_0x182dda[_0x3ac7b3(0x1a8)])){logger[_0x3ac7b3(0x173)](_0x182dda[_0x3ac7b3(0x18a)]);const [_0x5b5c51,_0x46b64c]=await _0x182dda['TsMyi'](inputBstackKeys);_0x378024=_0x5b5c51,_0x2b9173=_0x46b64c;}else _0x4d1ef7=_0x3f1a06['env']['BROWSERSTACK_USERNAME'];}let _0x5ef85f=![];const _0xa18b4c=_0x3ac7b3(0x145)+_0x378024+':'+_0x2b9173+'@'+BS_API_URL+_0x3ac7b3(0x146),_0xaf4cd7={'method':_0x182dda[_0x3ac7b3(0x158)],'headers':_0x182dda['OEHcw'](getAuthHeader,_0x378024,_0x2b9173),'throwHttpErrors':![]},_0x333333=await _0x182dda[_0x3ac7b3(0x14f)](got,_0xa18b4c,_0xaf4cd7);_0x182dda['qmSrH'](_0x333333,null)&&_0x182dda[_0x3ac7b3(0x1a2)](_0x333333,undefined)&&_0x182dda[_0x3ac7b3(0x16a)](_0x333333[_0x3ac7b3(0x169)],0xc8)&&(_0x182dda[_0x3ac7b3(0x1a2)](_0x182dda[_0x3ac7b3(0x15d)],_0x182dda[_0x3ac7b3(0x15b)])?_0x5ef85f=!![]:_0x24d1b8=!![]);if(_0x5ef85f){if(_0x182dda['PnIRd'](_0x182dda[_0x3ac7b3(0x176)],_0x182dda['Ctqjg'])){let _0x5e70c8={};const _0xf8b08d=_0x182dda[_0x3ac7b3(0x193)](getCredentialsPath);fs['existsSync'](_0xf8b08d)&&(_0x182dda['tJMTC'](_0x182dda[_0x3ac7b3(0x160)],_0x182dda['BpcLh'])?_0x5e70c8=JSON[_0x3ac7b3(0x183)](fs[_0x3ac7b3(0x15c)](_0xf8b08d,_0x182dda[_0x3ac7b3(0x18f)])):_0x3fc5ba=_0x5455ff['parse'](_0x201d4c[_0x3ac7b3(0x15c)](_0x530bcc,_0x182dda[_0x3ac7b3(0x18f)])));const _0x5526be={};_0x5526be[_0x3ac7b3(0x15a)]=_0x378024,_0x5526be[_0x3ac7b3(0x166)]=_0x2b9173,_0x5e70c8[_0x3ac7b3(0x185)]=_0x5526be,fs[_0x3ac7b3(0x199)](_0xf8b08d,JSON[_0x3ac7b3(0x13e)](_0x5e70c8)),process[_0x3ac7b3(0x1aa)](0x0);}else _0x4d5ba8=_0x28acc1[_0x3ac7b3(0x14c)][_0x3ac7b3(0x151)];}else logger['error'](_0x182dda['hVQay']),await _0x182dda['xhWPh'](sendInstrumentationEvent,_0x258642,_0x182dda['ipwuR'],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x14e)],null,_0x258642),process[_0x3ac7b3(0x1aa)](0x1);}catch(_0x430d40){logger[_0x3ac7b3(0x17e)](_0x430d40[_0x3ac7b3(0x178)]),await _0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x180)],_0x430d40,_0x258642),process['exit'](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0xb5192a=a13_0x1f73;(function(_0x719dee,_0x17eb9a){const _0x2b07db=a13_0x1f73,_0x306414=_0x719dee();while(!![]){try{const _0x105baf=-parseInt(_0x2b07db(0x1b0))/0x1*(parseInt(_0x2b07db(0x1a7))/0x2)+-parseInt(_0x2b07db(0x1aa))/0x3+-parseInt(_0x2b07db(0x1ac))/0x4*(parseInt(_0x2b07db(0x1a4))/0x5)+-parseInt(_0x2b07db(0x1a9))/0x6+parseInt(_0x2b07db(0x19f))/0x7+parseInt(_0x2b07db(0x1a1))/0x8+parseInt(_0x2b07db(0x1a3))/0x9*(parseInt(_0x2b07db(0x1ad))/0xa);if(_0x105baf===_0x17eb9a)break;else _0x306414['push'](_0x306414['shift']());}catch(_0x69f9b6){_0x306414['push'](_0x306414['shift']());}}}(a13_0x3619,0x30020));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0xb5192a(0x1af));exports['command']=a13_0xb5192a(0x1a6),exports[a13_0xb5192a(0x1ab)]=a13_0xb5192a(0x19e),exports['builder']=function(_0x537f5b){const _0x741f25=a13_0xb5192a,_0x18d04c={};_0x18d04c[_0x741f25(0x1a2)]='list_commands',_0x18d04c['vValc']=_0x741f25(0x19d);const _0x4cf96a=_0x18d04c;return _0x537f5b[_0x741f25(0x1ae)](_0x4cf96a['dPVlp'])[_0x741f25(0x1b1)]()[_0x741f25(0x1a5)](HELP_HEADER_MESSAGE[_0x741f25(0x1a6)][_0x741f25(0x19b)])[_0x741f25(0x19c)](HELP_FOOTER_MESSAGE)[_0x741f25(0x1a8)]()['strict']()[_0x741f25(0x19d)](_0x4cf96a[_0x741f25(0x1a0)]);},exports[a13_0xb5192a(0x1b2)]=function(_0x2badb8){};function a13_0x1f73(_0x3d1a0e,_0x58d94d){const _0x3619af=a13_0x3619();return a13_0x1f73=function(_0x1f7314,_0x2a3543){_0x1f7314=_0x1f7314-0x19b;let _0x64207e=_0x3619af[_0x1f7314];return _0x64207e;},a13_0x1f73(_0x3d1a0e,_0x58d94d);}function a13_0x3619(){const _0x520084=['epilogue','help','List\x20down\x20the\x20Grid\x20resources.','1805216dmHjOv','vValc','1006872JfbIvK','dPVlp','117ABXdXq','4560PhHwbq','usage','list','14506ZiwlxO','recommendCommands','1959150bvSLMr','613452yhJilD','desc','584LGISEE','472970FMRXiK','commandDir','../config/constants','19uXtaMQ','demandCommand','handler','root'];a13_0x3619=function(){return _0x520084;};return a13_0x3619();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14_0x339b2d=a14_0x5a29;function a14_0x28d1(){const _0x9cbcf2=['type','got','uuid','error','axEzQ','jknvE','vcULL','qCnfm','3174948dryANh','init-not-called','unknown-error','641013hoZJay','DDUtk','readFileSync','region','list-grid-profiles-called','builder','description','vCAyD','statusCode','lmyvi','../../utils/instrumentationUtils','/packages/cli/get-all-grid-profiles','wpnBd','cloud-provider','body','cloudProvider','6042744HzMfrP','push','stack','../../config/constants','epilogue','hzNyk','bstackAccesskey','desc','name','argv','table','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid-profile-name','Browserstack','qPIxU','36352216NOjjWs','GET','ACeuC','bstackUsername','stringify','concurrency','Txpec','656872xvKSrz','handler','LyXJN','526984XDYJuJ','../../utils/utilityMethods','requestId','3620247YsqqjQ','GLQQf','parse','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','HhxzU','server-error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','log','ERROR','unauthorised','ZseaV','username','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','all-grid-profiles','45hodHIv','usage','WXetX','kKjor','OEZQT','options','INFO','https://','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','YptiD','help','password','yxvsc','pTegh'];a14_0x28d1=function(){return _0x9cbcf2;};return a14_0x28d1();}(function(_0x2254ac,_0x15e069){const _0x13682c=a14_0x5a29,_0x570d58=_0x2254ac();while(!![]){try{const _0x3c6374=-parseInt(_0x13682c(0xcb))/0x1+parseInt(_0x13682c(0xa0))/0x2+-parseInt(_0x13682c(0xa3))/0x3+parseInt(_0x13682c(0x9d))/0x4*(-parseInt(_0x13682c(0xb1))/0x5)+-parseInt(_0x13682c(0xdb))/0x6+parseInt(_0x13682c(0xc8))/0x7+parseInt(_0x13682c(0x96))/0x8;if(_0x3c6374===_0x15e069)break;else _0x570d58['push'](_0x570d58['shift']());}catch(_0x3f8907){_0x570d58['push'](_0x570d58['shift']());}}}(a14_0x28d1,0xe29eb));const fs=require('fs'),got=require(a14_0x339b2d(0xc1)),{table}=require(a14_0x339b2d(0xe5)),{v4:uuidv4}=require(a14_0x339b2d(0xc2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x339b2d(0xde)),{getCredentialsPath,getAuthHeader}=require(a14_0x339b2d(0xa1)),{sendInstrumentationEvent}=require(a14_0x339b2d(0xd5));function a14_0x5a29(_0x2e83b1,_0x1e9def){const _0x28d109=a14_0x28d1();return a14_0x5a29=function(_0x5a292b,_0x339d7b){_0x5a292b=_0x5a292b-0x92;let _0x1d0e78=_0x28d109[_0x5a292b];return _0x1d0e78;},a14_0x5a29(_0x2e83b1,_0x1e9def);}exports['command']='grid-profiles',exports[a14_0x339b2d(0xe2)]=a14_0x339b2d(0xa6),exports[a14_0x339b2d(0xd0)]=function(_0x39fffd){const _0x60249f=a14_0x339b2d,_0x22b150={};_0x22b150[_0x60249f(0xad)]=_0x60249f(0xba),_0x22b150['DfwDD']='boolean',_0x22b150[_0x60249f(0xbb)]=_0x60249f(0xbc);const _0x51b8b6=_0x22b150,_0x3ec826={};_0x3ec826[_0x60249f(0xd1)]=_0x51b8b6[_0x60249f(0xad)],_0x3ec826[_0x60249f(0xc0)]=_0x51b8b6['DfwDD'];const _0x5396d9={};return _0x5396d9[_0x60249f(0xb0)]=_0x3ec826,_0x39fffd[_0x60249f(0xb2)](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x60249f(0xdf)](HELP_FOOTER_MESSAGE)[_0x60249f(0xb6)](_0x5396d9)[_0x60249f(0xbc)](_0x51b8b6[_0x60249f(0xbb)])[_0x60249f(0xe4)];},exports[a14_0x339b2d(0x9e)]=async function(_0x38a8a6){const _0x121ab6=a14_0x339b2d,_0x3393d5={'kKjor':function(_0x3bf78b){return _0x3bf78b();},'jknvE':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WXetX':function(_0x1dd860,_0x4426d9,_0x54609a,_0x595999,_0xa3c540,_0x47e791,_0x18f456){return _0x1dd860(_0x4426d9,_0x54609a,_0x595999,_0xa3c540,_0x47e791,_0x18f456);},'hzNyk':_0x121ab6(0xcf),'ACeuC':_0x121ab6(0xc9),'lmyvi':function(_0x22ce66){return _0x22ce66();},'wpnBd':_0x121ab6(0x97),'axEzQ':function(_0x5b8369,_0x19bf2b,_0x4b2266){return _0x5b8369(_0x19bf2b,_0x4b2266);},'HhxzU':function(_0x2498ad,_0x509b17,_0x54f2bb,_0x4a53db,_0x39525b,_0x453467,_0x5dd078){return _0x2498ad(_0x509b17,_0x54f2bb,_0x4a53db,_0x39525b,_0x453467,_0x5dd078);},'LyXJN':function(_0x329e80,_0xff1423){return _0x329e80!==_0xff1423;},'vcULL':function(_0xb3b078,_0x32395d){return _0xb3b078===_0x32395d;},'oMoFd':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','qPIxU':_0x121ab6(0x93),'yxvsc':_0x121ab6(0xd8),'pTegh':_0x121ab6(0xce),'GpWNz':_0x121ab6(0x9b),'vCAyD':function(_0x1189c3,_0x278f3d){return _0x1189c3(_0x278f3d);},'GLQQf':function(_0x3bd706,_0x5910ce,_0x287abc,_0x5212c0,_0x273e80,_0x4868c1,_0x32ee75){return _0x3bd706(_0x5910ce,_0x287abc,_0x5212c0,_0x273e80,_0x4868c1,_0x32ee75);},'Txpec':_0x121ab6(0xac),'qCnfm':function(_0x3f9515,_0x4a8bca,_0x5cb556,_0x559f75,_0x28f16d,_0x3da7bb,_0x4a96f3){return _0x3f9515(_0x4a8bca,_0x5cb556,_0x559f75,_0x28f16d,_0x3da7bb,_0x4a96f3);},'DDUtk':_0x121ab6(0xa8),'OEZQT':_0x121ab6(0xca)};try{global_registry[_0x121ab6(0xa2)]=_0x3393d5[_0x121ab6(0xb4)](uuidv4);let _0x1cb03f=_0x121ab6(0xb8)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x38a8a6['allGridProfiles']&&(_0x1cb03f=_0x121ab6(0xb8)+AG_API_URL+_0x121ab6(0xd6));!fs['existsSync'](_0x3393d5['kKjor'](getCredentialsPath))&&(console[_0x121ab6(0xc3)](_0x3393d5[_0x121ab6(0xc5)]),await _0x3393d5['WXetX'](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0x98)],null,_0x38a8a6),process[_0x121ab6(0xb9)](0x1));const _0x1881bc=JSON[_0x121ab6(0xa5)](fs[_0x121ab6(0xcd)](_0x3393d5[_0x121ab6(0xd4)](getCredentialsPath))),_0x4cee7e={'method':_0x3393d5[_0x121ab6(0xd7)],'headers':_0x3393d5[_0x121ab6(0xc4)](getAuthHeader,_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xae)],_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xbd)]),'throwHttpErrors':![]};global_registry[_0x121ab6(0x99)]=_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xae)],global_registry[_0x121ab6(0xe1)]=_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xbd)],_0x3393d5[_0x121ab6(0xa7)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xb7)],null,null,_0x38a8a6);const _0x4e203f=await _0x3393d5[_0x121ab6(0xc4)](got,_0x1cb03f,_0x4cee7e);if(_0x3393d5[_0x121ab6(0x9f)](_0x4e203f,null)&&_0x3393d5[_0x121ab6(0x9f)](_0x4e203f,undefined)&&_0x3393d5[_0x121ab6(0xc6)](_0x4e203f['statusCode'],0xc8)){const _0x3f99c0=JSON[_0x121ab6(0xa5)](_0x4e203f[_0x121ab6(0xd9)]);console[_0x121ab6(0xaa)](_0x3393d5['oMoFd']);const _0x49fc67=[];_0x49fc67[_0x121ab6(0xdc)]([_0x3393d5[_0x121ab6(0x95)],_0x3393d5[_0x121ab6(0xbe)],_0x3393d5[_0x121ab6(0xbf)],_0x3393d5['GpWNz']]),_0x3f99c0['forEach'](_0x2edb6a=>{const _0x4c5e03=_0x121ab6;_0x49fc67['push']([_0x2edb6a[_0x4c5e03(0xe3)],_0x2edb6a[_0x4c5e03(0xda)],_0x2edb6a[_0x4c5e03(0xce)],_0x2edb6a[_0x4c5e03(0x9b)]]);}),console[_0x121ab6(0xaa)](_0x3393d5[_0x121ab6(0xd2)](table,_0x49fc67)),process['exit'](0x0);}_0x3393d5[_0x121ab6(0xc6)](_0x4e203f[_0x121ab6(0xd3)],0x191)&&(console[_0x121ab6(0xc3)](_0x121ab6(0xaf)),await _0x3393d5[_0x121ab6(0xa4)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0x9c)],null,_0x38a8a6),process['exit'](0x1)),console[_0x121ab6(0xc3)](_0x121ab6(0xa9)+JSON[_0x121ab6(0x9a)](_0x4e203f)),await _0x3393d5[_0x121ab6(0xc7)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes['ERROR'],_0x3393d5[_0x121ab6(0xcc)],_0x4e203f,_0x38a8a6),process['exit'](0x1);}catch(_0x5bd339){console[_0x121ab6(0xc3)](_0x121ab6(0x92)+_0x5bd339[_0x121ab6(0xdd)]),await _0x3393d5[_0x121ab6(0xb3)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5['hzNyk'],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0xb5)],_0x5bd339,_0x38a8a6),process[_0x121ab6(0xb9)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15_0x1fb4(_0x5708b6,_0x21f29b){const _0x15ca8d=a15_0x15ca();return a15_0x1fb4=function(_0x1fb4a9,_0x35d126){_0x1fb4a9=_0x1fb4a9-0xf6;let _0x490de=_0x15ca8d[_0x1fb4a9];return _0x490de;},a15_0x1fb4(_0x5708b6,_0x21f29b);}function a15_0x15ca(){const _0x4e89b0=['unknown-error','uuid','hhqhr','epilogue','queued','error','78985CdAOJK','JZcuK','init-not-called','WQFMu','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','8AorwkA','grid-id','GttUw','unauthorised','password','12651952gLPCyd','ywzTj','KZVTz','statusCode','help','200WSNCFJ','126yfuaqN','qyLox','ZyJeM','28870479aeITZh','builder','UCFtO','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','argv','nATFW','CahBE','handler','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','name','grid','all-grids','stack','forEach','KRuDp','xUTxS','command','https://','cluster-name','body','\x0aFound\x20the\x20following\x20grids:\x0a','FMvQV','stringify','exit','desc','DABVj','requestId','Browserstack','7065426qCQMNc','30760RpTEzw','list-grids-called','options','/packages/cli/get-grids','CmsGJ','username','got','INFO','parse','push','GeRoP','../../utils/utilityMethods','readFileSync','bstackAccesskey','bstackUsername','GET','server-error','AfaQQ','boolean','status','fMZLx','89277ftYTcY','Failed\x20to\x20list\x20resources!\x20Error:\x20','existsSync','allGrids','mjHJD','list','../../utils/instrumentationUtils','clusterName','7eKoTWy','MnftC','SmMEB','ERROR','../../config/constants','uxGJd','1510298UMgRvs','SEDZA','log'];a15_0x15ca=function(){return _0x4e89b0;};return a15_0x15ca();}const a15_0x438985=a15_0x1fb4;(function(_0x15d6d8,_0x4facf4){const _0x1eca06=a15_0x1fb4,_0x3e7a70=_0x15d6d8();while(!![]){try{const _0x59fd1a=-parseInt(_0x1eca06(0x124))/0x1+parseInt(_0x1eca06(0x132))/0x2*(parseInt(_0x1eca06(0x116))/0x3)+parseInt(_0x1eca06(0x13c))/0x4*(-parseInt(_0x1eca06(0x12d))/0x5)+-parseInt(_0x1eca06(0x100))/0x6*(parseInt(_0x1eca06(0x11e))/0x7)+parseInt(_0x1eca06(0x137))/0x8+parseInt(_0x1eca06(0x13d))/0x9*(-parseInt(_0x1eca06(0x101))/0xa)+parseInt(_0x1eca06(0x140))/0xb;if(_0x59fd1a===_0x4facf4)break;else _0x3e7a70['push'](_0x3e7a70['shift']());}catch(_0x57d767){_0x3e7a70['push'](_0x3e7a70['shift']());}}}(a15_0x15ca,0xc45f0));const fs=require('fs'),got=require(a15_0x438985(0x107)),{table}=require('table'),{v4:uuidv4}=require(a15_0x438985(0x128)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x438985(0x122)),{getCredentialsPath,getAuthHeader}=require(a15_0x438985(0x10c)),{sendInstrumentationEvent}=require(a15_0x438985(0x11c));exports[a15_0x438985(0x150)]='grids',exports[a15_0x438985(0xfc)]=a15_0x438985(0x148),exports[a15_0x438985(0x141)]=function(_0x1fdd49){const _0x1f045=a15_0x438985,_0x1b6361={};_0x1b6361['KZVTz']=_0x1f045(0x143),_0x1b6361[_0x1f045(0x129)]=_0x1f045(0x113),_0x1b6361[_0x1f045(0x120)]=_0x1f045(0x13b);const _0x59f8ca=_0x1b6361,_0x3b2643={};_0x3b2643['description']=_0x59f8ca[_0x1f045(0x139)],_0x3b2643['type']=_0x59f8ca[_0x1f045(0x129)];const _0x29a185={};return _0x29a185[_0x1f045(0x14b)]=_0x3b2643,_0x1fdd49['usage'](HELP_HEADER_MESSAGE[_0x1f045(0x11b)][_0x1f045(0x14a)])[_0x1f045(0x12a)](HELP_FOOTER_MESSAGE)[_0x1f045(0x103)](_0x29a185)[_0x1f045(0x13b)](_0x59f8ca['SmMEB'])[_0x1f045(0x144)];},exports[a15_0x438985(0x147)]=async function(_0x460387){const _0x1375c1=a15_0x438985,_0x14ef7c={'GttUw':function(_0x55d640){return _0x55d640();},'UCFtO':function(_0xe12728){return _0xe12728();},'qyLox':_0x1375c1(0x131),'xUTxS':function(_0x340fa7,_0xb040f8,_0x422f8b,_0x4bfa69,_0x3c91ec,_0x149528,_0x2661d8){return _0x340fa7(_0xb040f8,_0x422f8b,_0x4bfa69,_0x3c91ec,_0x149528,_0x2661d8);},'GeRoP':_0x1375c1(0x102),'WQFMu':_0x1375c1(0x12f),'mjHJD':function(_0x28f46d){return _0x28f46d();},'pyZzL':_0x1375c1(0x110),'RvlKU':function(_0x50394c,_0x5d2193,_0x29571b){return _0x50394c(_0x5d2193,_0x29571b);},'SEDZA':function(_0x5c47bb,_0x5d41b2,_0x149f16){return _0x5c47bb(_0x5d41b2,_0x149f16);},'DABVj':function(_0x287315,_0x2b3936){return _0x287315!==_0x2b3936;},'nATFW':function(_0x54d02b,_0x3ac1eb){return _0x54d02b===_0x3ac1eb;},'OljsV':_0x1375c1(0xf8),'KRuDp':_0x1375c1(0x133),'ywzTj':'grid-name','JZcuK':_0x1375c1(0x114),'CmsGJ':'running','fMZLx':_0x1375c1(0x12b),'YmLMm':_0x1375c1(0xf6),'AfaQQ':function(_0x137a97,_0x34d7d6){return _0x137a97(_0x34d7d6);},'jeIqW':function(_0x373997,_0x6617dc,_0x50e4b0,_0x56ab7b,_0x2b2e62,_0x280995,_0x1f9bf1){return _0x373997(_0x6617dc,_0x50e4b0,_0x56ab7b,_0x2b2e62,_0x280995,_0x1f9bf1);},'ZyJeM':_0x1375c1(0x135),'FMvQV':function(_0x2fbb60,_0x50518d,_0x4aaad6,_0x1723f7,_0x35c721,_0x4fe024,_0x44c9dd){return _0x2fbb60(_0x50518d,_0x4aaad6,_0x1723f7,_0x35c721,_0x4fe024,_0x44c9dd);},'uxGJd':_0x1375c1(0x111),'CahBE':function(_0x5bd048,_0x2a5978,_0x1286b3,_0x2d227f,_0x3df4bb,_0x14a534,_0x1e59a5){return _0x5bd048(_0x2a5978,_0x1286b3,_0x2d227f,_0x3df4bb,_0x14a534,_0x1e59a5);},'MnftC':_0x1375c1(0x127)};try{global_registry[_0x1375c1(0xfe)]=_0x14ef7c[_0x1375c1(0x134)](uuidv4);!fs[_0x1375c1(0x118)](_0x14ef7c[_0x1375c1(0x142)](getCredentialsPath))&&(console[_0x1375c1(0x12c)](_0x14ef7c[_0x1375c1(0x13e)]),await _0x14ef7c[_0x1375c1(0x14f)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes['ERROR'],_0x14ef7c[_0x1375c1(0x130)],null,_0x460387),process[_0x1375c1(0xfb)](0x1));const _0x55fe90=JSON[_0x1375c1(0x109)](fs[_0x1375c1(0x10d)](_0x14ef7c[_0x1375c1(0x11a)](getCredentialsPath)));let _0x28ba0a=_0x1375c1(0x151)+AG_API_URL+_0x1375c1(0x104);_0x460387[_0x1375c1(0x119)]&&(_0x28ba0a=_0x1375c1(0x151)+AG_API_URL+'/packages/cli/get-all-grids');const _0x27b878={'method':_0x14ef7c['pyZzL'],'headers':_0x14ef7c['RvlKU'](getAuthHeader,_0x55fe90['Browserstack'][_0x1375c1(0x106)],_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x136)]),'throwHttpErrors':![]};global_registry[_0x1375c1(0x10f)]=_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x106)],global_registry[_0x1375c1(0x10e)]=_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x136)],_0x14ef7c['xUTxS'](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x108)],null,null,_0x460387);const _0x4cc933=await _0x14ef7c[_0x1375c1(0x125)](got,_0x28ba0a,_0x27b878);if(_0x14ef7c[_0x1375c1(0xfd)](_0x4cc933,null)&&_0x14ef7c[_0x1375c1(0xfd)](_0x4cc933,undefined)&&_0x14ef7c[_0x1375c1(0x145)](_0x4cc933[_0x1375c1(0x13a)],0xc8)){const _0x523c21=JSON[_0x1375c1(0x109)](_0x4cc933[_0x1375c1(0xf7)]);console[_0x1375c1(0x126)](_0x14ef7c['OljsV']);const _0x24fdfe=[];_0x24fdfe[_0x1375c1(0x10a)]([_0x14ef7c[_0x1375c1(0x14e)],_0x14ef7c[_0x1375c1(0x138)],_0x14ef7c[_0x1375c1(0x12e)],_0x14ef7c[_0x1375c1(0x105)],_0x14ef7c[_0x1375c1(0x115)],_0x14ef7c['YmLMm']]),_0x523c21[_0x1375c1(0x14d)](_0x17ea37=>{const _0x3c0a66=_0x1375c1;_0x24fdfe['push']([_0x17ea37['id'],_0x17ea37[_0x3c0a66(0x149)],_0x17ea37[_0x3c0a66(0x114)],_0x17ea37['running'],_0x17ea37[_0x3c0a66(0x12b)],_0x17ea37[_0x3c0a66(0x11d)]]);}),console['log'](_0x14ef7c[_0x1375c1(0x112)](table,_0x24fdfe)),process[_0x1375c1(0xfb)](0x0);}_0x14ef7c[_0x1375c1(0x145)](_0x4cc933[_0x1375c1(0x13a)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x14ef7c['jeIqW'](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x121)],_0x14ef7c[_0x1375c1(0x13f)],null,_0x460387),process[_0x1375c1(0xfb)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1375c1(0xfa)](_0x4cc933)),await _0x14ef7c[_0x1375c1(0xf9)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes['ERROR'],_0x14ef7c[_0x1375c1(0x123)],_0x4cc933,_0x460387),process[_0x1375c1(0xfb)](0x1);}catch(_0x580567){console[_0x1375c1(0x12c)](_0x1375c1(0x117)+_0x580567[_0x1375c1(0x14c)]),await _0x14ef7c[_0x1375c1(0x146)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x121)],_0x14ef7c[_0x1375c1(0x11f)],_0x580567,_0x460387),process[_0x1375c1(0xfb)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a16_0x232c(){const _0x57bda9=['291iklCAR','85qdKXhZ','16178760lHfYbF','7125129XBBwwH','usage','handler','11385871kIXPEq','7578GoTgVk','350454rDkVvz','builder','commandDir','start','desc','help','372384eXyDui','start_commands','kMTxs','demandCommand','8eRkVgB','4328208zXkVke','Start\x20an\x20existing\x20Automation\x20grid.','epilogue'];a16_0x232c=function(){return _0x57bda9;};return a16_0x232c();}const a16_0x3ff61a=a16_0x1d07;function a16_0x1d07(_0x4ebcdb,_0x17eb48){const _0x232c79=a16_0x232c();return a16_0x1d07=function(_0x1d07e3,_0x4f8b9d){_0x1d07e3=_0x1d07e3-0x166;let _0x1f98f3=_0x232c79[_0x1d07e3];return _0x1f98f3;},a16_0x1d07(_0x4ebcdb,_0x17eb48);}(function(_0x1b14be,_0x3e141d){const _0x4f070e=a16_0x1d07,_0x2e8415=_0x1b14be();while(!![]){try{const _0x47da6b=parseInt(_0x4f070e(0x16a))/0x1+parseInt(_0x4f070e(0x179))/0x2*(-parseInt(_0x4f070e(0x172))/0x3)+parseInt(_0x4f070e(0x16f))/0x4+-parseInt(_0x4f070e(0x173))/0x5*(parseInt(_0x4f070e(0x17a))/0x6)+parseInt(_0x4f070e(0x178))/0x7+-parseInt(_0x4f070e(0x16e))/0x8*(-parseInt(_0x4f070e(0x175))/0x9)+-parseInt(_0x4f070e(0x174))/0xa;if(_0x47da6b===_0x3e141d)break;else _0x2e8415['push'](_0x2e8415['shift']());}catch(_0x3a21b8){_0x2e8415['push'](_0x2e8415['shift']());}}}(a16_0x232c,0xda564));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='start',exports[a16_0x3ff61a(0x168)]=a16_0x3ff61a(0x170),exports[a16_0x3ff61a(0x17b)]=function(_0x5c7b16){const _0x13dd39=a16_0x3ff61a,_0x35488c={};_0x35488c[_0x13dd39(0x16c)]=_0x13dd39(0x16b),_0x35488c['OERuG']=_0x13dd39(0x169);const _0xdcb060=_0x35488c;return _0x5c7b16[_0x13dd39(0x176)](HELP_HEADER_MESSAGE[_0x13dd39(0x167)])[_0x13dd39(0x171)](HELP_FOOTER_MESSAGE)[_0x13dd39(0x166)](_0xdcb060[_0x13dd39(0x16c)])[_0x13dd39(0x16d)]()['recommendCommands']()['strict']()[_0x13dd39(0x169)](_0xdcb060['OERuG']);},exports[a16_0x3ff61a(0x177)]=function(_0x3d028d){};
|