browserstack-node-sdk 1.32.14 → 1.32.16
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.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 -0
- package/src/helpers/testhub/testhubHandler.js +1 -0
- package/src/helpers/testhub/utils.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x5128ce=a9_0x46f1;(function(_0x379261,_0x1d0220){const _0x130044=a9_0x46f1,_0x5eb2ba=_0x379261();while(!![]){try{const _0xdcd1c1=parseInt(_0x130044(0x1cd))/0x1*(parseInt(_0x130044(0x25d))/0x2)+-parseInt(_0x130044(0x282))/0x3+parseInt(_0x130044(0x1f5))/0x4*(parseInt(_0x130044(0x1e8))/0x5)+-parseInt(_0x130044(0x2d2))/0x6*(-parseInt(_0x130044(0x2a5))/0x7)+parseInt(_0x130044(0x230))/0x8*(parseInt(_0x130044(0x243))/0x9)+-parseInt(_0x130044(0x26f))/0xa*(-parseInt(_0x130044(0x285))/0xb)+-parseInt(_0x130044(0x222))/0xc;if(_0xdcd1c1===_0x1d0220)break;else _0x5eb2ba['push'](_0x5eb2ba['shift']());}catch(_0x4bc554){_0x5eb2ba['push'](_0x5eb2ba['shift']());}}}(a9_0x1775,0xe150e));function a9_0x1775(){const _0x141d12=['Czjyk','minNodes','/packages/cli/create-grid-checks','KaoxM','../../utils/userInput','zXPMv','Bqefn','1009506GfzzUy','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','mmMol','eYWUO','privateGrid','desc','XGRLO','isNewAWSCluster','builder','securityGroups','GXQPg','help','SqLDe','setupNewCluster','ApQvs','yDYBD','vxzUt','uesLP','MSVYo','gUuQu','argv','concurrency','updatePreSpawnedCluster','pnDkc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Browserstack','GbMBZ','fetchLocalCreds','mJbUS','clusterRegion','../../cloudproviders/utils','gridName','options','pre-spawned-invalid-subnets','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','SiJpO','https://','HFgpV','VCihn','MNVUI','CLI_RUN_FINISHED','uUfCy','kAwQu','Create\x20a\x20private/public\x20grid.','private-grid','ACoFP','CETnW','Spawning\x20grid\x20on\x20to\x20the\x20cluster','oUBMn','isClusterPresent','namespace','468794JkHqCm','create-grid-checks-auth-failed','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','reconnecting-websocket','grid-name','Ijgfb','uuid','CLI_RUN_STARTED','mgVye','DpItV','CLI\x20run\x20started','nQXeR','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','caUuo','prespawned-cluster-args-not-passed','get-grid-url-non-200','mEtEw','Will\x20be\x20spawning\x20the\x20grid\x20','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','clusterName','kdRzD','info','turboscale-managed-identity-','<UsernamePlaceholder>','../../config/constants','oiqac','1777705XRbDEx','statusCode','Spawning\x20the\x20grid\x20','tZXEC','gthke','HJBmw','toLowerCase','body','odgjw','fjOvZ','type','onIAe','create-grid-called','12xreojI','\x20using\x20\x27','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','biLhd','nBQAe','usage','oapOr','wTxel','SQswj','\x20are\x20not\x20present\x20in\x20VPC:\x20','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','createNamespace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zyjeY','OvkeR','<PasswordPlaceholder>','hhNao','message','https','OSPRE','ingress-nginx-controller','metadata','../../utils/gridComponents','zXgHn','cRWBC','/packages/cli/get-grid-url?gridIdentifier=','yeynG','PKOqC','GVpmX','grid-profile','zbNnl','DKIUJ','ZkXIQ','buyCq','ingress-nginx','description','requestId','browserVersion','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','length','Deleting\x20the\x20CloudFormation\x20Stacks','rlppO','yUJkq','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','33744228zXpeks','hZszy','private-ingress-nginx-controller','parse','iiBOV','exit','http','cloud-provider','route53','alreadyPresent','eNjvv','get-grid-url-auth-failed','addListeners','stack','7089128UZhJsY','GULRV','FBefd','TYNin','eWJxR','Subnets:\x20','get-grid-url-null-response','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','IWokt','create-grid-checks-invalid-profile','bGewZ','ShnFI','defaultGridProfile','isPrivateGrid','jjoGE','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WSRBP','split','create-grid-checks-non-200','18AGSmOT','xIezQ','GaIpN','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','GET','RgBVT','Found\x20Subnets:\x20','subnets','zaUxG','stringify','FHXUn','got','rSujE','knKUB','Idhah','7|5|4|2|6|8|1|0|3','lWLjs','ERROR','Grid\x20can\x20be\x20accessed\x20at:\x20','KAUOK','epilogue','DzsbT','../../utils/createk8sClient','s3bucket','maxNodes','NkyEH','2YYpyLR','pnhXg','Unlso','error','yaeDM','true','cluster-name','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','cloudProvider','Found\x20VPC:\x20','vpc','includes','Adding\x20Websocket\x20listeners','gPPmv','gridProfiles','Grid\x20spawned\x20on\x20the\x20cluster','cJBbR','6|8|1|3|0|4|7|2|5','10gtumCX','connectionTimeout','readFileSync','ktiLz','BzSNL','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','fNokk','Rrset','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfileId','bstackUsername','YOuuk','isSubnetsValid','ONKnY','warn','debug','TphAL','createOtherResources','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','4522164HNAcmx','jkhUG','replace','15728339tSVHmf','WebSocket','../../utils/utilityMethods','ZZsyP','HDxgL','KtFUJ','Bcpsh','iTKyi','Namespace\x20Created','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','instanceType','yEKKf','uGEUI','handler','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','password','delay','configureIfNotConfigured','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','ytfXv','wgTWt','javUq','SsYIL','sendEventToBackend','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','init-not-called','Cluster\x20created\x20successfully','mgUjY','create-grid-checks-null-response','\x27\x20grid\x20profile','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','LOG','21gcELxY','bEOTP','SEjad','vnqGT','../../utils/instrumentationUtils','lcPPH','LwCVG','../../config/logger','hKYkC','\x20in\x20existing\x20cluster\x20\x27','command','hubVersion','iYHQt','default','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ruUae','create','QoOYQ','name','SYVPZ','string','RwYWi','gridProfile','mpIFO','managedBy','KFJiv','region','create-grid-checks-grid-already-exists','CLI\x20run\x20finished:\x20','SJbRP','Namespace\x20created','username','CaRvy','NiGHH','vNGoO','HRsna','pre-spawned-subnets-not-selected','MkZvX'];a9_0x1775=function(){return _0x141d12;};return a9_0x1775();}function a9_0x46f1(_0x57dba4,_0x5e4e2){const _0x17754e=a9_0x1775();return a9_0x46f1=function(_0x46f13,_0x5c230d){_0x46f13=_0x46f13-0x1ca;let _0x10f8a2=_0x17754e[_0x46f13];return _0x10f8a2;},a9_0x46f1(_0x57dba4,_0x5e4e2);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x5128ce(0x1d1)),got=require(a9_0x5128ce(0x24e)),{v4:uuidv4}=require(a9_0x5128ce(0x1d4)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x5128ce(0x2ac)),{inputCloudProviderKeys}=require(a9_0x5128ce(0x2cf)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5128ce(0x287)),{getCloudProviderObject}=require(a9_0x5128ce(0x2f0)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x5128ce(0x1e6)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x5128ce(0x20c)),{createK8sClient}=require(a9_0x5128ce(0x259)),{sendInstrumentationEvent}=require(a9_0x5128ce(0x2a9));exports[a9_0x5128ce(0x2af)]='grid',exports[a9_0x5128ce(0x2d7)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x5128ce(0x2da)]=function(_0x584155){const _0x2e90fc=a9_0x5128ce,_0x38a831={};_0x38a831[_0x2e90fc(0x231)]=_0x2e90fc(0x1cf),_0x38a831[_0x2e90fc(0x27f)]=_0x2e90fc(0x2b9),_0x38a831[_0x2e90fc(0x2f5)]=_0x2e90fc(0x1d0),_0x38a831['VCihn']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x38a831['jjoGE']=_0x2e90fc(0x29d),_0x38a831[_0x2e90fc(0x211)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x38a831['ONKnY']=_0x2e90fc(0x2fd),_0x38a831['DKIUJ']=_0x2e90fc(0x2dd);const _0x1bff07=_0x38a831,_0x292526={};_0x292526[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x231)],_0x292526[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x4bea73={};_0x4bea73[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x2f5)],_0x4bea73[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x1a4cd9={};_0x1a4cd9[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x2f8)],_0x1a4cd9['type']=_0x1bff07[_0x2e90fc(0x27f)];const _0x4b7c6d={};_0x4b7c6d[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x23e)],_0x4b7c6d['type']=_0x1bff07['TphAL'];const _0x3babfa={};_0x3babfa[_0x2e90fc(0x219)]=_0x1bff07['PKOqC'],_0x3babfa[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x11728b={};_0x11728b['description']=_0x1bff07[_0x2e90fc(0x27c)],_0x11728b['type']=_0x1bff07['TphAL'];const _0x46e6d6={};return _0x46e6d6[_0x2e90fc(0x1d2)]=_0x292526,_0x46e6d6[_0x2e90fc(0x213)]=_0x4bea73,_0x46e6d6[_0x2e90fc(0x263)]=_0x1a4cd9,_0x46e6d6[_0x2e90fc(0x229)]=_0x4b7c6d,_0x46e6d6[_0x2e90fc(0x2bf)]=_0x3babfa,_0x46e6d6[_0x2e90fc(0x2fe)]=_0x11728b,_0x584155['usage'](HELP_HEADER_MESSAGE[_0x2e90fc(0x2b5)])[_0x2e90fc(0x257)](HELP_FOOTER_MESSAGE)['options'](_0x46e6d6)[_0x2e90fc(0x2dd)](_0x1bff07[_0x2e90fc(0x215)])[_0x2e90fc(0x2e6)];},exports[a9_0x5128ce(0x292)]=async function(_0x24f922){const _0x42cf3c=a9_0x5128ce,_0x131c52={'knKUB':_0x42cf3c(0x228),'HRsna':_0x42cf3c(0x208),'kdRzD':_0x42cf3c(0x26e),'yeynG':_0x42cf3c(0x260),'yUJkq':_0x42cf3c(0x27d),'mpIFO':_0x42cf3c(0x1cf),'FBefd':_0x42cf3c(0x2b9),'vnqGT':_0x42cf3c(0x1d0),'hJnJg':_0x42cf3c(0x1da),'uesLP':_0x42cf3c(0x29d),'jutks':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','SqLDe':'Create\x20a\x20private/public\x20grid.','mgUjY':_0x42cf3c(0x2dd),'MSVYo':function(_0x9e5799){return _0x9e5799();},'tZXEC':function(_0x25fbfb){return _0x25fbfb();},'DpItV':function(_0x231be8,_0x38254d){return _0x231be8!==_0x38254d;},'yEKKf':'IbgiJ','pDnRv':_0x42cf3c(0x202),'DzsbT':function(_0x5830fa,_0x2619e8,_0x2c9499,_0x115fae,_0xd61709,_0x2d7c06,_0x59ffad){return _0x5830fa(_0x2619e8,_0x2c9499,_0x115fae,_0xd61709,_0x2d7c06,_0x59ffad);},'caUuo':_0x42cf3c(0x1f4),'hKYkC':_0x42cf3c(0x29e),'HHYZN':function(_0x4207f8,_0x1e6ccf,_0x4b4ca8,_0x3f2b4b,_0x1c7ace,_0x39168b,_0x2d02d9){return _0x4207f8(_0x1e6ccf,_0x4b4ca8,_0x3f2b4b,_0x1c7ace,_0x39168b,_0x2d02d9);},'iYHQt':_0x42cf3c(0x1e5),'gthke':_0x42cf3c(0x205),'KtFUJ':_0x42cf3c(0x269),'xIezQ':'qvQAM','fjOvZ':function(_0x13efde,_0x2dad3e){return _0x13efde===_0x2dad3e;},'eNjvv':_0x42cf3c(0x2c5),'YOuuk':_0x42cf3c(0x237),'GaIpN':function(_0x4f65b1,_0x4e0226,_0x4b5419,_0x5b0af4,_0x2384b2,_0x35f141,_0x33febb,_0x2b42d5){return _0x4f65b1(_0x4e0226,_0x4b5419,_0x5b0af4,_0x2384b2,_0x35f141,_0x33febb,_0x2b42d5);},'faSUY':_0x42cf3c(0x1dc),'onIAe':function(_0x8fd719,_0x2f9c28){return _0x8fd719!==_0x2f9c28;},'mEtEw':_0x42cf3c(0x2ff),'VmYTh':_0x42cf3c(0x21c),'WSRBP':function(_0x5f8eab,_0x1f1168,_0xa88655,_0x3d7601,_0x3eafa8,_0x216ed8,_0x192ba3,_0x4a145b){return _0x5f8eab(_0x1f1168,_0xa88655,_0x3d7601,_0x3eafa8,_0x216ed8,_0x192ba3,_0x4a145b);},'uNQYG':'non-aws-azure-cluster','cRWBC':function(_0x2fadd4,_0x3889bc){return _0x2fadd4===_0x3889bc;},'oapOr':_0x42cf3c(0x262),'ktiLz':'OpzrY','TYNin':_0x42cf3c(0x2fc),'KFJiv':function(_0x3b87c0,_0xad0bb3){return _0x3b87c0!==_0xad0bb3;},'MkZvX':_0x42cf3c(0x253),'zaUxG':_0x42cf3c(0x247),'TxseV':function(_0x8d8f8,_0x554089,_0x18beaf){return _0x8d8f8(_0x554089,_0x18beaf);},'eYWUO':function(_0x2d5bbf,_0x4209cd,_0x16318f){return _0x2d5bbf(_0x4209cd,_0x16318f);},'HJBmw':function(_0x58c1f9,_0x1b28b4){return _0x58c1f9===_0x1b28b4;},'zbNnl':_0x42cf3c(0x2c2),'ShnFI':'VJmEc','gPPmv':_0x42cf3c(0x264),'HDxgL':_0x42cf3c(0x2a1),'ytfXv':function(_0x59738d,_0x5e5905){return _0x59738d===_0x5e5905;},'KaoxM':_0x42cf3c(0x2dc),'fNokk':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ApQvs':function(_0x435c7c,_0x4865bc,_0x2e7e84,_0x3490c6,_0x126aad,_0x285b9b,_0x1f5957,_0x2ae7ff){return _0x435c7c(_0x4865bc,_0x2e7e84,_0x3490c6,_0x126aad,_0x285b9b,_0x1f5957,_0x2ae7ff);},'MNVUI':_0x42cf3c(0x1ce),'yDYBD':function(_0x539fb9,_0x3d129b){return _0x539fb9===_0x3d129b;},'nQXeR':_0x42cf3c(0x25f),'oUBMn':function(_0x55b718,_0x608336,_0x4211f3,_0x316f90,_0x566417,_0x9a4fc7,_0x45c8ce,_0x44f5f0){return _0x55b718(_0x608336,_0x4211f3,_0x316f90,_0x566417,_0x9a4fc7,_0x45c8ce,_0x44f5f0);},'wgTWt':_0x42cf3c(0x242),'mmMol':'Grid\x20profile\x20fetched\x20from\x20backend','bEOTP':_0x42cf3c(0x273),'ZkXIQ':_0x42cf3c(0x2a3),'iiBOV':_0x42cf3c(0x2c0),'eBowu':_0x42cf3c(0x212),'AAKIc':_0x42cf3c(0x1d6),'OSPRE':function(_0xdad0db,_0x2481a7){return _0xdad0db===_0x2481a7;},'eiSCK':_0x42cf3c(0x25e),'vxzUt':_0x42cf3c(0x2e9),'KAUOK':function(_0x4f666f,_0x2365fa){return _0x4f666f===_0x2365fa;},'Miaax':_0x42cf3c(0x217),'gUuQu':_0x42cf3c(0x200),'pIsWz':_0x42cf3c(0x239),'RwYWi':function(_0x15cfe4,_0x9c4eba){return _0x15cfe4!==_0x9c4eba;},'rSujE':_0x42cf3c(0x28c),'kMass':function(_0x1e7a87,_0x4e4174,_0x55d174,_0x5eea6c,_0x50cd26,_0x35bb1b,_0x17549a,_0x48c80b,_0x11c858,_0x2aba96,_0x253381,_0x592f56){return _0x1e7a87(_0x4e4174,_0x55d174,_0x5eea6c,_0x50cd26,_0x35bb1b,_0x17549a,_0x48c80b,_0x11c858,_0x2aba96,_0x253381,_0x592f56);},'dhQsk':_0x42cf3c(0x29b),'neOSN':_0x42cf3c(0x2fb),'UOJXS':_0x42cf3c(0x252),'GbMBZ':function(_0x302a0e,_0x3ccba1){return _0x302a0e===_0x3ccba1;},'VaZzo':_0x42cf3c(0x1f7),'Czjyk':function(_0x3203e7,_0x2767f1){return _0x3203e7===_0x2767f1;},'hhNao':function(_0x1043f1,_0x1d550a,_0x40a703,_0x360725){return _0x1043f1(_0x1d550a,_0x40a703,_0x360725);},'hZszy':_0x42cf3c(0x221),'Rrset':_0x42cf3c(0x23f),'FHXUn':function(_0x51502c,_0xdde61a){return _0x51502c!==_0xdde61a;},'Tfiom':_0x42cf3c(0x2ea),'IWokt':function(_0x51aeb9,_0x5e43bf){return _0x51aeb9!=_0x5e43bf;},'CETnW':function(_0x4e44fb,_0xae65b7){return _0x4e44fb!==_0xae65b7;},'LwCVG':function(_0x333560,_0x1f015d){return _0x333560>_0x1f015d;},'vNGoO':function(_0x1f959e,_0x351c40){return _0x1f959e===_0x351c40;},'WBpDh':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','zXgHn':_0x42cf3c(0x2c9),'QoOYQ':_0x42cf3c(0x2d3),'RgBVT':'pre-spawned-invalid-vpc','odgjw':function(_0x563af3,_0xf03205,_0x4ccaaa,_0xc5954a,_0x2bc19f,_0x4871f8,_0x2c73e9,_0x32e0ff){return _0x563af3(_0xf03205,_0x4ccaaa,_0xc5954a,_0x2bc19f,_0x4871f8,_0x2c73e9,_0x32e0ff);},'nBQAe':_0x42cf3c(0x2f3),'ECYwm':'1|0|3|4|2','wTxel':_0x42cf3c(0x1ff),'Ijgfb':_0x42cf3c(0x29f),'OvkeR':function(_0x33f99d,_0x27edd7){return _0x33f99d===_0x27edd7;},'Idhah':function(_0x2eff08,_0x11317a){return _0x2eff08(_0x11317a);},'zyjeY':function(_0xd504bb,_0x4c460e){return _0xd504bb===_0x4c460e;},'HFgpV':function(_0x3a2574,_0x5c5731){return _0x3a2574==_0x5c5731;},'oiqac':function(_0x4f0f12,_0x42d057){return _0x4f0f12(_0x42d057);},'bGewZ':'Creating\x20namespace','glRkc':function(_0x22ab24,_0x2e7449){return _0x22ab24!==_0x2e7449;},'yaeDM':_0x42cf3c(0x2b2),'ruUae':'Browserstack','rlppO':_0x42cf3c(0x28d),'XGRLO':_0x42cf3c(0x2c3),'uGEUI':_0x42cf3c(0x301),'eWJxR':'Spawning\x20Grid\x20on\x20the\x20Cluster','SQswj':function(_0x3eef54,_0x10bdfc,_0x4e5ab1,_0x55e7b3,_0x5197dd,_0x36cf90,_0x344b14,_0x4260c,_0x4d296b,_0x1b7459,_0x482acb){return _0x3eef54(_0x10bdfc,_0x4e5ab1,_0x55e7b3,_0x5197dd,_0x36cf90,_0x344b14,_0x4260c,_0x4d296b,_0x1b7459,_0x482acb);},'EatvJ':_0x42cf3c(0x26c),'ZZsyP':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Bcpsh':function(_0x58d8ea,_0x34ff61,_0x4881df,_0x3b6ab9,_0x4afc2d){return _0x58d8ea(_0x34ff61,_0x4881df,_0x3b6ab9,_0x4afc2d);},'cJBbR':function(_0x2a7af0,_0x388055,_0x363378){return _0x2a7af0(_0x388055,_0x363378);},'yOeEF':_0x42cf3c(0x224),'jkhUG':_0x42cf3c(0x20a),'biLhd':_0x42cf3c(0x218),'zXPMv':function(_0x2bcfe9,_0x3be431,_0x926cf9){return _0x2bcfe9(_0x3be431,_0x926cf9);},'lcPPH':_0x42cf3c(0x277),'SYVPZ':_0x42cf3c(0x236),'mJbUS':function(_0x478616,_0x514c5b){return _0x478616===_0x514c5b;},'SEjad':_0x42cf3c(0x293),'NkyEH':_0x42cf3c(0x22d),'wiwef':function(_0x403b8b,_0x43170c){return _0x403b8b!==_0x43170c;},'BiasN':_0x42cf3c(0x1dd),'Bqefn':function(_0x74d67f,_0x598947){return _0x74d67f===_0x598947;},'javUq':function(_0x575dd6,_0x43f242,_0x293f4d,_0x1e84f8,_0x3c26b0,_0x49d841){return _0x575dd6(_0x43f242,_0x293f4d,_0x1e84f8,_0x3c26b0,_0x49d841);},'NiGHH':'grid-spawning-failed'};let _0x190125=![],_0x2f0939,_0x2ae629,_0x5eca07,_0xc208a6,_0xb49e46,_0x192d85,_0x5837d4,_0xb2dc79,_0x4dd117,_0x140842,_0x386e50,_0x5c25e5,_0x86bf72=0x1,_0x18ba3f=0xe;try{global_registry[_0x42cf3c(0x21a)]=_0x131c52[_0x42cf3c(0x2e4)](uuidv4),global_registry[_0x42cf3c(0x23d)]=![];!fs['existsSync'](_0x131c52[_0x42cf3c(0x1eb)](getCredentialsPath))&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x290)],_0x131c52[_0x42cf3c(0x290)])?_0x3386a6[_0x42cf3c(0x260)](_0x42cf3c(0x281)+_0x40c7a8+'\x20\x0a'+_0x31f984['stringify'](_0x348515[_0x42cf3c(0x22f)])):(console[_0x42cf3c(0x260)](_0x131c52['pDnRv']),await _0x131c52[_0x42cf3c(0x258)](sendInstrumentationEvent,_0x24f922,_0x131c52['caUuo'],messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x2ad)],null,_0x24f922),process[_0x42cf3c(0x227)](0x1)));await _0x131c52['HHYZN'](sendInstrumentationEvent,_0x24f922,_0x131c52[_0x42cf3c(0x1db)],messageTypes['INFO'],null,null,_0x24f922);const _0x58019f=JSON[_0x42cf3c(0x225)](fs[_0x42cf3c(0x271)](_0x131c52['MSVYo'](getCredentialsPath)));global_registry[_0x42cf3c(0x279)]=_0x58019f['Browserstack']['username'],global_registry['bstackAccesskey']=_0x58019f[_0x42cf3c(0x2eb)][_0x42cf3c(0x294)];const _0xf50a76=WS_ENDPOINT[_0x42cf3c(0x284)](_0x131c52[_0x42cf3c(0x2b1)],_0x58019f[_0x42cf3c(0x2eb)][_0x42cf3c(0x2c4)])['replace'](_0x131c52[_0x42cf3c(0x1ec)],_0x58019f['Browserstack'][_0x42cf3c(0x294)]),_0x389779={};_0x389779[_0x42cf3c(0x286)]=ws,_0x389779[_0x42cf3c(0x270)]=0x36ee80,_0x140842=new ReconnectingWebSocket(_0xf50a76,[],_0x389779),logger[_0x42cf3c(0x27e)](_0x131c52[_0x42cf3c(0x28a)]),webSocketUtils[_0x42cf3c(0x22e)](_0x140842,_0x24f922['user'],_0x24f922['password']);let _0x437e13=DEFAULT_GRID_NAME;(_0x24f922[_0x42cf3c(0x1e1)]||_0x24f922['cloudProvider']||_0x24f922[_0x42cf3c(0x2bf)])&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x244)],_0x131c52[_0x42cf3c(0x244)])?_0x51092d=_0x131c52[_0x42cf3c(0x250)]:(!(_0x24f922[_0x42cf3c(0x1e1)]&&_0x24f922[_0x42cf3c(0x265)]&&_0x24f922[_0x42cf3c(0x2bf)])&&(_0x131c52[_0x42cf3c(0x1f1)](_0x131c52[_0x42cf3c(0x22c)],_0x131c52['eNjvv'])?(_0x2f0939=_0x131c52[_0x42cf3c(0x27a)],await _0x131c52[_0x42cf3c(0x245)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52['caUuo'],_0x131c52['faSUY'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):(_0x658978=_0x33ca51['route53'],_0x59b4ab=_0x131c52[_0x42cf3c(0x2c8)])),![AWS,AZURE,GCP][_0x42cf3c(0x268)](_0x24f922[_0x42cf3c(0x265)][_0x42cf3c(0x1ee)]())&&(_0x131c52[_0x42cf3c(0x1f3)](_0x131c52[_0x42cf3c(0x1de)],_0x131c52[_0x42cf3c(0x1de)])?_0x1fed51[_0x42cf3c(0x23d)]=!![]:(_0x2f0939=_0x131c52['VmYTh'],await _0x131c52[_0x42cf3c(0x240)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['uNQYG'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1))),_0x24f922[_0x42cf3c(0x2d6)]&&_0x131c52[_0x42cf3c(0x20e)](_0x24f922[_0x42cf3c(0x2d6)][_0x42cf3c(0x1ee)](),_0x131c52[_0x42cf3c(0x1fb)])&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x272)],_0x131c52[_0x42cf3c(0x272)])?_0x451e1f['info'](_0x42cf3c(0x266)+_0x4d2311+'\x20'):global_registry[_0x42cf3c(0x23d)]=!![]),_0x190125=!![],_0x5eca07=_0x24f922['clusterName'],_0x2ae629=_0x24f922[_0x42cf3c(0x265)][_0x42cf3c(0x1ee)](),_0xc208a6=_0x24f922[_0x42cf3c(0x2bf)]));_0x24f922[_0x42cf3c(0x2f1)]&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x233)],_0x131c52[_0x42cf3c(0x233)])?_0x12c123[_0x42cf3c(0x1e3)]('Found\x20Subnets:\x20'+_0x1ad24c[_0x42cf3c(0x24c)](_0x4aa391)+'\x20'):_0x437e13=_0x24f922['gridName']);if(_0x24f922[_0x42cf3c(0x2bb)]){if(_0x131c52[_0x42cf3c(0x2be)](_0x131c52['MkZvX'],_0x131c52[_0x42cf3c(0x2ca)])){const _0x4d4ab5=_0x131c52[_0x42cf3c(0x1e2)]['split']('|');let _0x4721bf=0x0;while(!![]){switch(_0x4d4ab5[_0x4721bf++]){case'0':_0x484b7b['cloudProvider']=_0x574285;continue;case'1':_0x4fac9d[_0x42cf3c(0x1e3)](_0x4a3b4d);continue;case'2':_0x48bc2e[_0x42cf3c(0x2b0)]=_0x48229a[_0x42cf3c(0x2b0)];continue;case'3':const _0x4918c9={};_0x4918c9[_0x42cf3c(0x1f2)]=_0x168ffd[_0x42cf3c(0x2a4)],_0x4918c9['message']=_0xa192fb,_0x1ecbe7[_0x42cf3c(0x29c)](_0x5da753,_0x4918c9);continue;case'4':_0x8f9dd6[_0x42cf3c(0x2ef)]=_0x4a68b6;continue;case'5':_0x242c98[_0x42cf3c(0x21b)]=_0x39f1fb[_0x42cf3c(0x21b)];continue;case'6':const _0x2809a6={};_0x2809a6[_0x42cf3c(0x1f2)]=_0x21a5c2[_0x42cf3c(0x1d5)],_0x2809a6[_0x42cf3c(0x207)]=_0x42cf3c(0x1d8),_0x1455bb[_0x42cf3c(0x29c)](_0x14c1c8,_0x2809a6);continue;case'7':_0x4ef590['clusterName']=_0x2522b4;continue;case'8':_0x1a9716='Spawning\x20the\x20grid\x20'+_0x276361+'\x20in\x20existing\x20cluster\x20\x27'+_0x530cdb+'\x27';continue;}break;}}else global_registry[_0x42cf3c(0x2bb)]=_0x24f922['gridProfile'];}global_registry['gridName']=_0x437e13;const _0x5e7160={'method':_0x131c52[_0x42cf3c(0x24b)],'headers':_0x131c52['TxseV'](getAuthHeader,_0x58019f[_0x42cf3c(0x2eb)]['username'],_0x58019f['Browserstack'][_0x42cf3c(0x294)]),'throwHttpErrors':![]},_0x2fc350=_0x42cf3c(0x2f6)+AG_API_URL+_0x42cf3c(0x2cd),_0x7796f3={};_0x7796f3[_0x42cf3c(0x2f1)]=_0x437e13;const _0x4dd7f1={'searchParams':_0x7796f3,'throwHttpErrors':![],..._0x5e7160},_0x28f55f=_0x4dd7f1,_0x3c0cfa=await _0x131c52[_0x42cf3c(0x2d5)](got,_0x2fc350,_0x28f55f);if(_0x131c52[_0x42cf3c(0x20e)](_0x3c0cfa,null)||_0x131c52[_0x42cf3c(0x20e)](_0x3c0cfa,undefined)){if(_0x131c52[_0x42cf3c(0x1ed)](_0x131c52[_0x42cf3c(0x214)],_0x131c52[_0x42cf3c(0x23b)])){const _0x5c020b={};_0x5c020b[_0x42cf3c(0x1f2)]=_0x282857[_0x42cf3c(0x2a4)],_0x5c020b[_0x42cf3c(0x207)]=_0x5ee859,_0x4ada86[_0x42cf3c(0x29c)](_0x2f6721,_0x5c020b,_0x131c52[_0x42cf3c(0x210)],!![]);}else _0x2f0939=_0x131c52[_0x42cf3c(0x26a)],await _0x131c52['WSRBP'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x289)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1);}_0x131c52[_0x42cf3c(0x298)](_0x3c0cfa[_0x42cf3c(0x1e9)],0x191)&&(_0x131c52[_0x42cf3c(0x298)](_0x131c52['KaoxM'],_0x131c52[_0x42cf3c(0x2ce)])?(_0x2f0939=_0x131c52[_0x42cf3c(0x275)],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x2f9)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x1347a0=_0x1b215b[_0x42cf3c(0x2f1)]);_0x131c52[_0x42cf3c(0x2be)](_0x3c0cfa[_0x42cf3c(0x1e9)],0xc8)&&(_0x131c52['yDYBD'](_0x131c52[_0x42cf3c(0x1d9)],_0x131c52['nQXeR'])?(_0x2f0939=_0x42cf3c(0x28e)+JSON[_0x42cf3c(0x24c)](_0x3c0cfa),await _0x131c52[_0x42cf3c(0x1ca)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x299)],_0x131c52['yeynG']),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x59761e['isPrivateGrid']=!![]);const _0x15cb67=JSON[_0x42cf3c(0x225)](_0x3c0cfa[_0x42cf3c(0x1ef)]),_0x16bc82={};_0x16bc82[_0x42cf3c(0x1f2)]=WS_EVENTS['CLI_RUN_STARTED'],_0x16bc82[_0x42cf3c(0x207)]=_0x42cf3c(0x1d8),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x16bc82);const _0x3c940c={};_0x3c940c[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x3c940c[_0x42cf3c(0x207)]=_0x131c52[_0x42cf3c(0x2d4)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x3c940c);_0x15cb67[_0x42cf3c(0x22b)]&&(_0x131c52[_0x42cf3c(0x1f1)](_0x131c52[_0x42cf3c(0x2a6)],_0x131c52[_0x42cf3c(0x2a6)])?(_0x2f0939=_0x131c52[_0x42cf3c(0x216)],await _0x131c52['oUBMn'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52['caUuo'],_0x131c52[_0x42cf3c(0x226)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x2443b6['sendResourceDataToHST']());const _0xf2fbe5=_0x15cb67[_0x42cf3c(0x26b)];let _0x523abb=_0xf2fbe5[_0x15cb67[_0x42cf3c(0x23c)]];if(_0x24f922[_0x42cf3c(0x2bb)]){if(_0x131c52['DpItV'](_0x131c52['eBowu'],_0x131c52['AAKIc']))_0x523abb=_0xf2fbe5[_0x24f922[_0x42cf3c(0x2bb)]];else{const _0x18a3bb={};_0x18a3bb['type']=_0x54b16b['LOG'],_0x18a3bb[_0x42cf3c(0x207)]='Cluster\x20'+_0x42e94c+_0x42cf3c(0x297),_0x45e23f['sendEventToBackend'](_0x20d00b,_0x18a3bb,_0x131c52[_0x42cf3c(0x220)]),_0x3d40ca[_0x42cf3c(0x1e3)]('Cluster\x20'+_0x7a05c1+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3e07df=!![];}}if(_0x131c52[_0x42cf3c(0x2e1)](_0x190125,![])){if(_0x131c52[_0x42cf3c(0x209)](_0x131c52['eiSCK'],_0x131c52[_0x42cf3c(0x2e2)]))_0x573ad5=_0xe3146a[_0x4136c3[_0x42cf3c(0x2bb)]];else{_0x131c52[_0x42cf3c(0x256)](_0x523abb,undefined)&&(_0x131c52[_0x42cf3c(0x2be)](_0x131c52['Miaax'],_0x131c52['Miaax'])?_0x5ca529[_0x42cf3c(0x265)]={}:(_0x2f0939=_0x131c52[_0x42cf3c(0x2e5)],await _0x131c52[_0x42cf3c(0x240)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['pIsWz'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)));global_registry[_0x42cf3c(0x278)]=_0x523abb['id'],_0x2f0939=_0x42cf3c(0x1df)+_0x437e13+_0x42cf3c(0x1f6)+_0x523abb[_0x42cf3c(0x2b7)]+_0x42cf3c(0x2a2),logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x5b85fa={};_0x5b85fa['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5b85fa[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x5b85fa),_0x2ae629=_0x523abb[_0x42cf3c(0x265)],_0x5eca07=_0x523abb[_0x42cf3c(0x1e1)],_0xc208a6=_0x523abb[_0x42cf3c(0x2bf)],_0xb49e46=_0x523abb[_0x42cf3c(0x2e7)],_0x192d85=_0x523abb[_0x42cf3c(0x28f)],_0x5837d4=_0x523abb[_0x42cf3c(0x267)],securityGroups=_0x523abb[_0x42cf3c(0x2db)],subnets=_0x523abb[_0x42cf3c(0x24a)],_0xb2dc79=_0x523abb[_0x42cf3c(0x25a)],_0x86bf72=_0x523abb[_0x42cf3c(0x2cc)],_0x18ba3f=_0x523abb[_0x42cf3c(0x25b)],_0x386e50=_0x15cb67[_0x42cf3c(0x2b0)],_0x5c25e5=_0x15cb67[_0x42cf3c(0x21b)],_0x131c52[_0x42cf3c(0x1d7)](_0x523abb[_0x42cf3c(0x2d6)],undefined)&&_0x523abb['privateGrid']&&(_0x131c52[_0x42cf3c(0x2ba)](_0x131c52[_0x42cf3c(0x24f)],_0x131c52[_0x42cf3c(0x24f)])?_0x111b7d[_0x42cf3c(0x2bb)]=_0x3755ff[_0x42cf3c(0x2bb)]:global_registry[_0x42cf3c(0x23d)]=!![]),_0x131c52['kMass'](updateGlobalRegistryWithConfig,_0x2ae629,_0x5eca07,_0xc208a6,_0xb49e46,_0x192d85,_0xb2dc79,_0x523abb,_0x386e50,_0x5c25e5,_0x86bf72,_0x18ba3f);}}else{if(_0x131c52['fjOvZ'](_0x131c52['dhQsk'],_0x131c52['neOSN'])){const _0xa53c18={};_0xa53c18[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2bc)],_0xa53c18[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x3abf65={};_0x3abf65[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2a8)],_0x3abf65[_0x42cf3c(0x1f2)]=_0x131c52['FBefd'];const _0x64ce29={};_0x64ce29[_0x42cf3c(0x219)]=_0x131c52['hJnJg'],_0x64ce29['type']=_0x131c52[_0x42cf3c(0x232)];const _0x1d7722={};_0x1d7722[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2e3)],_0x1d7722[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x322cf2={};_0x322cf2[_0x42cf3c(0x219)]=_0x131c52['jutks'],_0x322cf2[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x54a1ae={};_0x54a1ae[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2de)],_0x54a1ae[_0x42cf3c(0x1f2)]=_0x131c52['FBefd'];const _0x3d1f2c={};return _0x3d1f2c['grid-name']=_0xa53c18,_0x3d1f2c['grid-profile']=_0x3abf65,_0x3d1f2c[_0x42cf3c(0x263)]=_0x64ce29,_0x3d1f2c[_0x42cf3c(0x229)]=_0x1d7722,_0x3d1f2c[_0x42cf3c(0x2bf)]=_0x322cf2,_0x3d1f2c['private-grid']=_0x54a1ae,_0x5c76e6[_0x42cf3c(0x1fa)](_0x5bbfdf[_0x42cf3c(0x2b5)])['epilogue'](_0x332c03)[_0x42cf3c(0x2f2)](_0x3d1f2c)['help'](_0x131c52[_0x42cf3c(0x2a0)])[_0x42cf3c(0x2e6)];}else{const _0x164cf7=_0x131c52['UOJXS'][_0x42cf3c(0x241)]('|');let _0x560b75=0x0;while(!![]){switch(_0x164cf7[_0x560b75++]){case'0':global_registry[_0x42cf3c(0x2b0)]=_0x15cb67[_0x42cf3c(0x2b0)];continue;case'1':global_registry['clusterName']=_0x5eca07;continue;case'2':const _0x42a802={};_0x42a802['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x42a802['message']=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x42a802);continue;case'3':global_registry[_0x42cf3c(0x21b)]=_0x15cb67[_0x42cf3c(0x21b)];continue;case'4':logger[_0x42cf3c(0x1e3)](_0x2f0939);continue;case'5':_0x2f0939=_0x42cf3c(0x1ea)+_0x437e13+_0x42cf3c(0x2ae)+_0x5eca07+'\x27';continue;case'6':global_registry[_0x42cf3c(0x265)]=_0x2ae629;continue;case'7':const _0x28f95c={};_0x28f95c[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x1d5)],_0x28f95c['message']=_0x42cf3c(0x1d8),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x28f95c);continue;case'8':global_registry[_0x42cf3c(0x2ef)]=_0xc208a6;continue;}break;}}}const _0x4d8417=await _0x131c52['HHYZN'](getCloudProviderObject,_0x2ae629,_0x5eca07,_0x437e13,_0x140842,webSocketUtils,_0x24f922),_0x422d1c=_0x58019f[_0x42cf3c(0x265)]||{};if(_0x131c52[_0x42cf3c(0x2ec)](_0x422d1c[_0x2ae629],undefined)){logger['info'](_0x131c52['VaZzo']);_0x131c52[_0x42cf3c(0x2cb)](_0x58019f[_0x42cf3c(0x265)],undefined)&&(_0x58019f[_0x42cf3c(0x265)]={});_0x58019f['cloudProvider'][_0x2ae629]={};const _0x491dde=await _0x131c52[_0x42cf3c(0x206)](inputCloudProviderKeys,_0x2ae629,_0x58019f,_0x4d8417);fs['writeFileSync'](_0x131c52['MSVYo'](getCredentialsPath),JSON[_0x42cf3c(0x24c)](_0x491dde)),logger[_0x42cf3c(0x27e)](_0x131c52[_0x42cf3c(0x223)]);}else{_0x2f0939=_0x131c52[_0x42cf3c(0x276)];const _0x3c0eda={};_0x3c0eda[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x3c0eda[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x3c0eda),logger[_0x42cf3c(0x1e3)](_0x2f0939),await _0x4d8417[_0x42cf3c(0x2ed)](_0x422d1c);}_0x4d8417[_0x42cf3c(0x296)]();_0x131c52[_0x42cf3c(0x24d)](_0x2ae629,AZURE)&&_0x4d8417['sendResourceDataToHST']();let _0x4d2347;if(_0x131c52[_0x42cf3c(0x2cb)](_0x190125,![])){_0x2f0939='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0xc208a6+').';const _0x4c1c18={};_0x4c1c18['type']=WS_EVENTS['LOG'],_0x4c1c18[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x4c1c18),logger['info'](_0x2f0939);const _0x35fd36=await _0x4d8417[_0x42cf3c(0x1cb)]();if(_0x35fd36){const _0x2ee3f8={};_0x2ee3f8['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2ee3f8[_0x42cf3c(0x207)]='Cluster\x20'+_0x5eca07+_0x42cf3c(0x297),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2ee3f8,_0x131c52[_0x42cf3c(0x220)]),logger[_0x42cf3c(0x1e3)]('Cluster\x20'+_0x5eca07+_0x42cf3c(0x297)),_0x190125=!![];}else{const _0x5ebc54={};_0x5ebc54['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5ebc54[_0x42cf3c(0x207)]=_0x131c52['Tfiom'],webSocketUtils['sendEventToBackend'](_0x140842,_0x5ebc54),logger[_0x42cf3c(0x1e3)](_0x131c52['Tfiom']);const _0x3c69b6=_0x131c52[_0x42cf3c(0x238)](_0x5837d4,null)&&_0x131c52[_0x42cf3c(0x300)](_0x5837d4,undefined),_0x5a110a=_0x131c52[_0x42cf3c(0x238)](subnets,null)&&_0x131c52[_0x42cf3c(0x2ba)](subnets,undefined)&&_0x131c52[_0x42cf3c(0x2ab)](subnets[_0x42cf3c(0x21d)],0x0);if(_0x3c69b6){_0x131c52[_0x42cf3c(0x2c7)](_0x5a110a,![])&&(_0x2f0939=_0x131c52['WBpDh'],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x20d)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process['exit'](0x1));const _0x4cb563=await _0x4d8417['isVPCPresent'](_0x5837d4);_0x131c52['KAUOK'](_0x4cb563,![])?(_0x2f0939=_0x131c52[_0x42cf3c(0x2b6)],await _0x131c52[_0x42cf3c(0x1ca)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x248)],_0x131c52['yeynG']),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x5837d4+'\x20');const _0xcb1757=await _0x4d8417[_0x42cf3c(0x27b)](subnets,_0x5837d4);_0x131c52[_0x42cf3c(0x2e1)](_0xcb1757[0x0],![])?(_0x2f0939=_0x42cf3c(0x235)+JSON[_0x42cf3c(0x24c)](_0xcb1757[0x1])+_0x42cf3c(0x1fe)+_0x5837d4+_0x42cf3c(0x2b3),await _0x131c52[_0x42cf3c(0x1f0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x1f9)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):logger[_0x42cf3c(0x1e3)](_0x42cf3c(0x249)+JSON[_0x42cf3c(0x24c)](subnets)+'\x20'),await _0x4d8417[_0x42cf3c(0x2df)](_0x5837d4,subnets);}else{const _0x1fe3d2=_0x131c52['ECYwm']['split']('|');let _0x195598=0x0;while(!![]){switch(_0x1fe3d2[_0x195598++]){case'0':logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x1fc)]);continue;case'1':const _0x580ffd={};_0x580ffd[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x580ffd[_0x42cf3c(0x207)]=_0x131c52['wTxel'],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x580ffd);continue;case'2':logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x1d3)]);continue;case'3':await _0x4d8417['setupNewCluster']();continue;case'4':const _0x509e73={};_0x509e73[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x509e73[_0x42cf3c(0x207)]=_0x42cf3c(0x29f),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x509e73);continue;}break;}}}}_0x190125&&_0x131c52[_0x42cf3c(0x204)](_0x2ae629,AZURE)&&(await _0x4d8417[_0x42cf3c(0x2e8)](),await _0x4d8417[_0x42cf3c(0x280)]());const [_0x229656,_0x5aea49,_0x445292,_0x586452,_0x241767,_0xaa190a]=await _0x131c52[_0x42cf3c(0x251)](createK8sClient,_0x4d8417);_0x131c52[_0x42cf3c(0x203)](_0x190125,![])&&_0x131c52[_0x42cf3c(0x2f7)](_0x2ae629,AWS)&&(global_registry[_0x42cf3c(0x2d9)]=!![],_0x4d2347=await _0x4d8417['setupAutoscaler'](_0x229656,_0x24f922));try{_0x4dd117=_0x131c52[_0x42cf3c(0x1e7)](kebabCase,_0x437e13),logger['info'](_0x131c52[_0x42cf3c(0x23a)]);const _0x511fe0={};_0x511fe0[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x511fe0[_0x42cf3c(0x207)]=_0x131c52['bGewZ'],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x511fe0);if(_0x131c52['glRkc'](_0x4dd117,_0x131c52[_0x42cf3c(0x261)])){const _0x8abcfa={};_0x8abcfa['createdBy']=_0x131c52[_0x42cf3c(0x2b4)],_0x8abcfa[_0x42cf3c(0x2bd)]=_0x131c52[_0x42cf3c(0x2b4)];const _0x128da0={};_0x128da0[_0x42cf3c(0x2b7)]=_0x4dd117,_0x128da0['annotations']=_0x8abcfa;const _0xbe4418={};_0xbe4418[_0x42cf3c(0x20b)]=_0x128da0;let _0x53cdae=_0xbe4418;const _0xe32750={};_0xe32750['body']=_0x53cdae,await _0x229656[_0x42cf3c(0x201)](_0xe32750),logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x21f)]);}const _0x102e67={};_0x102e67[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x102e67[_0x42cf3c(0x207)]=_0x131c52[_0x42cf3c(0x2d8)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x102e67);const _0x2e41ac={};_0x2e41ac['type']=WS_EVENTS['LOG'],_0x2e41ac['message']=_0x131c52[_0x42cf3c(0x291)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2e41ac),logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x234)]);let _0x1aa259={};_0x131c52['HJBmw'](_0x2ae629,AZURE)&&(_0x1aa259={'clientId':await _0x4d8417['getResourceClientId'](_0x42cf3c(0x1e4)+_0x5eca07)});await _0x131c52[_0x42cf3c(0x1fd)](addGridComponents,_0x229656,_0x5aea49,_0x445292,_0x586452,_0x4dd117,_0x5eca07,_0x4d2347,_0x241767,_0xaa190a,_0x1aa259),_0x2f0939=_0x131c52['EatvJ'],logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x2037b8={};_0x2037b8[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2037b8[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2037b8),_0x2f0939=_0x131c52[_0x42cf3c(0x288)],logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x2dc052={};_0x2dc052[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2dc052[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils['sendEventToBackend'](_0x140842,_0x2dc052),await _0x131c52[_0x42cf3c(0x28b)](waitForDeployment,_0x5aea49,_0x4dd117,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4fb741=await _0x131c52[_0x42cf3c(0x26d)](getNamespaceUID,_0x229656,_0x4dd117);let _0x4f1736=global_registry[_0x42cf3c(0x23d)]?_0x131c52['yOeEF']:_0x131c52[_0x42cf3c(0x283)];const _0x3c42eb={};_0x3c42eb[_0x42cf3c(0x2b7)]=_0x4f1736,_0x3c42eb[_0x42cf3c(0x1cc)]=_0x131c52[_0x42cf3c(0x1f8)];let _0x5d7562=await _0x229656['readNamespacedService'](_0x3c42eb),_0x57c83c=_0x4d8417['getGridHostname'](_0x5d7562)+'/'+_0x4dd117,_0x32c175=_0x131c52[_0x42cf3c(0x250)];try{const _0x510d22=_0x42cf3c(0x2f6)+AG_API_URL+_0x42cf3c(0x20f)+_0x4fb741,_0x5a84db=await _0x131c52[_0x42cf3c(0x2d0)](got,_0x510d22,_0x5e7160);(_0x131c52[_0x42cf3c(0x2f7)](_0x5a84db,null)||_0x131c52[_0x42cf3c(0x2f7)](_0x5a84db,undefined))&&(_0x2f0939=_0x131c52[_0x42cf3c(0x2aa)],await _0x131c52['WSRBP'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x2b8)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process['exit'](0x1));_0x131c52[_0x42cf3c(0x2ee)](_0x5a84db[_0x42cf3c(0x1e9)],0x191)&&(_0x2f0939=_0x131c52[_0x42cf3c(0x2a7)],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52['caUuo'],_0x131c52[_0x42cf3c(0x25c)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1));_0x131c52['wiwef'](_0x5a84db[_0x42cf3c(0x1e9)],0xc8)&&(_0x2f0939=_0x42cf3c(0x1e0)+JSON[_0x42cf3c(0x24c)](_0x5a84db),await _0x131c52['GaIpN'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['BiasN'],_0x131c52['yeynG']),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1));const _0x4831d1=JSON[_0x42cf3c(0x225)](_0x5a84db[_0x42cf3c(0x1ef)]);_0x4831d1['route53']&&(_0x57c83c=_0x4831d1[_0x42cf3c(0x22a)],_0x32c175=_0x131c52[_0x42cf3c(0x2c8)]),global_registry[_0x42cf3c(0x23d)]&&(_0x32c175=_0x131c52[_0x42cf3c(0x250)]);}catch(_0x2c33b4){}_0x2f0939=_0x42cf3c(0x255)+_0x57c83c+'\x20',logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x4d0342={};_0x4d0342['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x4d0342[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x4d0342),_0x2f0939=_0x42cf3c(0x246)+_0x32c175+'://'+_0x57c83c+'/wd/hub',logger['info'](_0x2f0939);const _0x5a4387={};_0x5a4387[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5a4387[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x5a4387);const _0x1a5426={};_0x1a5426['type']=WS_EVENTS[_0x42cf3c(0x2fa)],_0x1a5426[_0x42cf3c(0x207)]=_0x42cf3c(0x2c1)+_0x57c83c,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x1a5426),await webSocketUtils['delay'](0x7d0);}catch(_0x2921f0){logger['error'](_0x42cf3c(0x274)+_0x2921f0+'\x20\x0a'+JSON['stringify'](_0x2921f0[_0x42cf3c(0x22f)]));if(_0x131c52[_0x42cf3c(0x2d1)](_0x190125,![]))try{logger[_0x42cf3c(0x1e3)](_0x42cf3c(0x21e)),await _0x131c52[_0x42cf3c(0x29a)](removeGridComponents,_0x229656,_0x5aea49,_0x445292,_0x586452,_0x4dd117),await _0x4d8417['deleteCluster'](_0x229656,global_registry[_0x42cf3c(0x2ef)]);}catch(_0x23c46e){logger[_0x42cf3c(0x260)](_0x42cf3c(0x281)+_0x23c46e+'\x20\x0a'+JSON[_0x42cf3c(0x24c)](_0x23c46e['stack']));}throw _0x2921f0;}}catch(_0x220df6){const _0x3c4785=_0x42cf3c(0x2f4)+_0x220df6+'\x20\x0a'+JSON[_0x42cf3c(0x24c)](_0x220df6[_0x42cf3c(0x22f)]);if(_0x140842){const _0x249119={};_0x249119[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x249119[_0x42cf3c(0x207)]=_0x3c4785,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x249119,_0x131c52[_0x42cf3c(0x210)],!![]);}await webSocketUtils[_0x42cf3c(0x295)](0x7d0);const _0x107167={};_0x107167[_0x42cf3c(0x260)]=_0x3c4785,await _0x131c52[_0x42cf3c(0x258)](sendInstrumentationEvent,_0x24f922,_0x131c52['caUuo'],messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x2c6)],_0x107167,_0x24f922),logger[_0x42cf3c(0x260)](_0x3c4785);}process[_0x42cf3c(0x227)](0x0);};
|
|
1
|
+
function a9_0x11c4(_0x12c489,_0x3a75da){const _0x2db20e=a9_0x2db2();return a9_0x11c4=function(_0x11c48e,_0x1882d1){_0x11c48e=_0x11c48e-0x125;let _0x14158c=_0x2db20e[_0x11c48e];return _0x14158c;},a9_0x11c4(_0x12c489,_0x3a75da);}const a9_0x250086=a9_0x11c4;(function(_0x3c134c,_0x45e438){const _0x44bf56=a9_0x11c4,_0x14f80e=_0x3c134c();while(!![]){try{const _0x37cc5d=parseInt(_0x44bf56(0x1b4))/0x1*(parseInt(_0x44bf56(0x1d3))/0x2)+parseInt(_0x44bf56(0x1c8))/0x3+parseInt(_0x44bf56(0x214))/0x4+-parseInt(_0x44bf56(0x1c5))/0x5*(-parseInt(_0x44bf56(0x207))/0x6)+parseInt(_0x44bf56(0x1f0))/0x7*(parseInt(_0x44bf56(0x19c))/0x8)+-parseInt(_0x44bf56(0x1b2))/0x9+-parseInt(_0x44bf56(0x13c))/0xa;if(_0x37cc5d===_0x45e438)break;else _0x14f80e['push'](_0x14f80e['shift']());}catch(_0xd4ba0c){_0x14f80e['push'](_0x14f80e['shift']());}}}(a9_0x2db2,0x19d42));function a9_0x2db2(){const _0x46e082=['KGtQN','bstackAccesskey','rXQOF','argv','string','CLI\x20run\x20finished:\x20','IGbAS','prespawned-cluster-args-not-passed','GBGpn','Qlado','securityGroups','kqDRP','body','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','connectionTimeout','readNamespacedService','536796cDZXDl','iYoPu','24162pNWxBR','create-grid-checks-auth-failed','DmxLA','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.','bstackUsername','sendEventToBackend','KWSvE','INFO','SpXML','tcYNT','QfJAJ','ERROR','AfEwf','CguHA','getResourceClientId','lEfIa','../../cloudproviders/utils','6505rhajbb','ypTkm','elMQF','20952JuFMHI','FQIfj','qPsad','rmhbH','help','UKmSI','YjWrm','ZsMrC','split','Xqaiy','Namespace\x20Created','8yWkkzo','create','vpc','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','password','requestId','init-not-called','warn','includes','RHclV','statusCode','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','clusterRegion','uEBJy','create-grid-checks-invalid-profile','zFSVH','namespace','gridName','BYLtY','BGgQF','../../utils/webSocketUtils','uuid','get-grid-url-auth-failed','efrkl','non-aws-azure-cluster','SBhgp','nXDrQ','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','TiOEC','412783zRRvmJ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Deleting\x20the\x20CloudFormation\x20Stacks','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','XupQC','defaultGridProfile','updatePreSpawnedCluster','ewXqL','private-grid','cluster-name','ZSKYw','XKPql','grid-name','setupNewCluster','CLI_RUN_STARTED','Browserstack','Cluster\x20created\x20successfully','IDroN','EzVlp','debug','cFcjZ','region','options','798imWVoW','VJsfZ','type','setupAutoscaler','Found\x20Subnets:\x20','JthBh','dtPvj','aAwvb','existsSync','create-grid-called','../../utils/utilityMethods','Spawning\x20grid\x20on\x20to\x20the\x20cluster','bvrts','349652jWQYEL','MmKLs','uDpBw','epilogue','isPrivateGrid','sGdRP','SLbvR','configureIfNotConfigured','WyyBl','Found\x20VPC:\x20','xhnWZ','hubVersion','nOywV','yHKcD','message','addListeners','SOlpo','qdswT','emlIl','https://','lknPB','Cluster\x20','\x20in\x20existing\x20cluster\x20\x27','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','vOvaH','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','concurrency','zwjSC','mGkBR','gridProfile','oWoMT','get-grid-url-null-response','createdBy','create-grid-checks-grid-already-exists','description','browserVersion','WaJUP','ZHMCA','ZPkOx','DrUHV','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','WARjg','EKbCz','IwGac','fnGSo','usage','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','gridProfiles','subnets','desc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Spawning\x20the\x20grid\x20','name','Namespace\x20created','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','cksGW','wFFIN','cjUUS','suuDO','YtzBh','DmGLP','instanceType','dqBNL','parse','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','YqiXE','fetchLocalCreds','://','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ksHKI','ByXII','UaWgI','Create\x20a\x20new\x20Automation\x20grid.','getGridHostname','QCUHx','command','create-grid-checks-null-response','pfoSr','QvUwx','Spawning\x20Grid\x20on\x20the\x20Cluster','IzWcM','WMxCE','PpGBk','SVEmN','pre-spawned-subnets-not-selected','YjcAN','isClusterPresent','toLowerCase','isNewAWSCluster','../../config/logger','delay','stack','minNodes','Will\x20be\x20spawning\x20the\x20grid\x20','sendResourceDataToHST','handler','hsoNb','bbxIT','erXZR','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','3755470IkPxdr','Create\x20a\x20private/public\x20grid.','PhiPD','get-grid-url-non-200','stringify','mdqEh','mJzAv','vIyjR','info','qbmUZ','../../utils/createk8sClient','vEnlb','Grid\x20profile\x20fetched\x20from\x20backend','username','zNVZP','user','Subnets:\x20','NJxSO','EjRAL','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','BkZKW','zcoUn','dIxYg','gNwQJ','private-ingress-nginx-controller','swMZM','LOG','sBVgD','createNamespace','<UsernamePlaceholder>','yiLIT','UhQlL','kVCTf','Oiqvu','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QgmIt','pre-spawned-invalid-vpc','CqWEn','Adding\x20Websocket\x20listeners','cloud-provider','managedBy','grid','/packages/cli/create-grid-checks','dsUNf','cloudProvider','aKzWO','\x27\x20grid\x20profile','got','Fiuqn','VlhWc','wEuee','yBMuN','WpPtu','dYtyF','route53','WZCAi','nanaH','alreadyPresent','pre-spawned-invalid-subnets','privateGrid','grid-spawning-failed','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Qzhhs','rtUva','Grid\x20spawned\x20on\x20the\x20cluster','elIad','../../utils/instrumentationUtils','mSHcV','create-grid-checks-non-200','CLI\x20run\x20started','odaCK','jJRwM','lqXOb','7|1|6|4|8|2|5|0|3','SJtOU','tVGyD','s3bucket','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','default','error','PNtdJ','mlUIW','exit','VWVTM','WGiey','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','AIDvU','xqtSW','grid-profile','VsmNg','VNbak','CLI_RUN_FINISHED','UcKWL','mhhWS','writeFileSync','CuAms','24MECSAe','clusterName','ingress-nginx','ncNRO','replace','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!'];a9_0x2db2=function(){return _0x46e082;};return a9_0x2db2();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x250086(0x16b)),{v4:uuidv4}=require(a9_0x250086(0x1e8)),webSocketUtils=require(a9_0x250086(0x1e7)),{logger}=require(a9_0x250086(0x131)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x250086(0x211)),{getCloudProviderObject}=require(a9_0x250086(0x1c4)),{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('../../utils/gridComponents'),{createK8sClient}=require(a9_0x250086(0x146)),{sendInstrumentationEvent}=require(a9_0x250086(0x17e));exports[a9_0x250086(0x25f)]=a9_0x250086(0x165),exports[a9_0x250086(0x245)]=a9_0x250086(0x25c),exports['builder']=function(_0x2368bd){const _0x135aaa=a9_0x250086,_0x4ae5f8={};_0x4ae5f8['KgtJj']=_0x135aaa(0x1de),_0x4ae5f8[_0x135aaa(0x1bd)]=_0x135aaa(0x1a6),_0x4ae5f8[_0x135aaa(0x147)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x4ae5f8[_0x135aaa(0x1ce)]=_0x135aaa(0x246),_0x4ae5f8[_0x135aaa(0x1fa)]=_0x135aaa(0x1ee),_0x4ae5f8['PNtdJ']=_0x135aaa(0x23c),_0x4ae5f8[_0x135aaa(0x1ea)]='Create\x20a\x20private/public\x20grid.',_0x4ae5f8[_0x135aaa(0x204)]=_0x135aaa(0x1cc);const _0x3a3955=_0x4ae5f8,_0x179644={};_0x179644[_0x135aaa(0x236)]=_0x3a3955['KgtJj'],_0x179644[_0x135aaa(0x209)]=_0x3a3955[_0x135aaa(0x1bd)];const _0x443e41={};_0x443e41[_0x135aaa(0x236)]=_0x3a3955['vEnlb'],_0x443e41[_0x135aaa(0x209)]=_0x3a3955[_0x135aaa(0x1bd)];const _0x4f79ac={};_0x4f79ac[_0x135aaa(0x236)]=_0x3a3955[_0x135aaa(0x1ce)],_0x4f79ac['type']=_0x3a3955[_0x135aaa(0x1bd)];const _0x1f535f={};_0x1f535f[_0x135aaa(0x236)]=_0x3a3955[_0x135aaa(0x1fa)],_0x1f535f['type']=_0x3a3955[_0x135aaa(0x1bd)];const _0x4bbce8={};_0x4bbce8[_0x135aaa(0x236)]=_0x3a3955[_0x135aaa(0x18c)],_0x4bbce8[_0x135aaa(0x209)]=_0x3a3955[_0x135aaa(0x1bd)];const _0x3e191a={};_0x3e191a[_0x135aaa(0x236)]=_0x3a3955[_0x135aaa(0x1ea)],_0x3e191a[_0x135aaa(0x209)]=_0x3a3955[_0x135aaa(0x1bd)];const _0x4d3af8={};return _0x4d3af8[_0x135aaa(0x1fc)]=_0x179644,_0x4d3af8[_0x135aaa(0x194)]=_0x443e41,_0x4d3af8[_0x135aaa(0x1f9)]=_0x4f79ac,_0x4d3af8[_0x135aaa(0x163)]=_0x1f535f,_0x4d3af8['region']=_0x4bbce8,_0x4d3af8[_0x135aaa(0x1f8)]=_0x3e191a,_0x2368bd['usage'](HELP_HEADER_MESSAGE[_0x135aaa(0x1d4)])[_0x135aaa(0x217)](HELP_FOOTER_MESSAGE)[_0x135aaa(0x206)](_0x4d3af8)['help'](_0x3a3955[_0x135aaa(0x204)])[_0x135aaa(0x1a5)];},exports[a9_0x250086(0x137)]=async function(_0x41cbcd){const _0x66069d=a9_0x250086,_0x956b1c={'SBhgp':_0x66069d(0x185),'yiLIT':'error','sBVgD':'http','bvrts':'https','KGtQN':_0x66069d(0x1da),'VsmNg':_0x66069d(0x1de),'GBGpn':'string','Fiuqn':_0x66069d(0x15e),'nanaH':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','KbqQz':_0x66069d(0x1ee),'WZCAi':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','TNFBe':_0x66069d(0x13d),'CguHA':_0x66069d(0x1cc),'rXQOF':function(_0x312804){return _0x312804();},'JGeOL':function(_0x2aa53e){return _0x2aa53e();},'IzWcM':function(_0x24bd3a,_0x20c38a){return _0x24bd3a===_0x20c38a;},'QCUHx':'sbAkg','ZHMCA':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lpuUp':function(_0x110a63,_0x84fff2,_0x2b7e7f,_0x293938,_0x5084c7,_0x2c462b,_0x14ab93){return _0x110a63(_0x84fff2,_0x2b7e7f,_0x293938,_0x5084c7,_0x2c462b,_0x14ab93);},'suuDO':_0x66069d(0x210),'nOywV':_0x66069d(0x1d9),'mhhWS':function(_0x1adaf9,_0x57bf51,_0x326be5,_0x484790,_0x3e8bd7,_0x2c9bec,_0xbf9f36){return _0x1adaf9(_0x57bf51,_0x326be5,_0x484790,_0x3e8bd7,_0x2c9bec,_0xbf9f36);},'SpXML':function(_0x18c73f){return _0x18c73f();},'xqtSW':_0x66069d(0x159),'vIyjR':'<PasswordPlaceholder>','elIad':_0x66069d(0x162),'mSHcV':function(_0x59807a,_0x4064c1){return _0x59807a===_0x4064c1;},'xhnWZ':_0x66069d(0x142),'PhiPD':function(_0x1b30fe,_0x221201){return _0x1b30fe===_0x221201;},'DrUHV':_0x66069d(0x196),'QinPD':'UGbIw','zcoUn':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cksGW':function(_0x39879c,_0x8b3eb4,_0xbb116a,_0x26bfb6,_0x4bb64f,_0x5090d8,_0x120cdd,_0x28351e){return _0x39879c(_0x8b3eb4,_0xbb116a,_0x26bfb6,_0x4bb64f,_0x5090d8,_0x120cdd,_0x28351e);},'QfJAJ':_0x66069d(0x1a9),'ksHKI':function(_0x5f82ed,_0x2e85a9){return _0x5f82ed===_0x2e85a9;},'CudBi':_0x66069d(0x139),'ncNRO':_0x66069d(0x1c0),'dsUNf':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Qzhhs':_0x66069d(0x1eb),'yBMuN':function(_0x3bcec6,_0x5e7de9){return _0x3bcec6===_0x5e7de9;},'DmxLA':'true','VJsfZ':function(_0xd589a6,_0xb65dd3){return _0xd589a6===_0xb65dd3;},'IGbAS':_0x66069d(0x1f4),'ZPkOx':function(_0x3437a6,_0x4dc349){return _0x3437a6!==_0x4dc349;},'Cihnc':_0x66069d(0x1c7),'kVCTf':_0x66069d(0x17b),'dIxYg':_0x66069d(0x226),'hbPQA':'GET','YjcAN':function(_0x56ae0d,_0x31db37,_0x22891e){return _0x56ae0d(_0x31db37,_0x22891e);},'NJxSO':function(_0x5b372d,_0xad67d0){return _0x5b372d===_0xad67d0;},'dqBNL':function(_0x426145,_0x4f3a3e){return _0x426145!==_0x4f3a3e;},'UKmSI':_0x66069d(0x171),'mvQSc':_0x66069d(0x1d6),'mdqEh':function(_0x46e44e,_0x302137,_0x3f2063,_0x5ae30a,_0x375d74,_0x1130ba,_0x554e2a,_0x1b2396){return _0x46e44e(_0x302137,_0x3f2063,_0x5ae30a,_0x375d74,_0x1130ba,_0x554e2a,_0x1b2396);},'zwjSC':_0x66069d(0x260),'XHIlM':function(_0x4528ff,_0x3d02fa){return _0x4528ff===_0x3d02fa;},'lknPB':_0x66069d(0x1ca),'MmKLs':_0x66069d(0x1c3),'IDroN':_0x66069d(0x1f3),'aKzWO':_0x66069d(0x1b5),'KWSvE':function(_0x13ac35,_0x306d68){return _0x13ac35===_0x306d68;},'sEHlH':'tIbiR','mYWJr':_0x66069d(0x25b),'QvUwx':function(_0x2da5a6,_0x51e680,_0x630054,_0x226554,_0xeb48b,_0x4c4c37,_0x46e947,_0x25b0ed){return _0x2da5a6(_0x51e680,_0x630054,_0x226554,_0xeb48b,_0x4c4c37,_0x46e947,_0x25b0ed);},'DmGLP':_0x66069d(0x180),'ypTkm':_0x66069d(0x148),'UcKWL':function(_0x3c0b81,_0x58570f){return _0x3c0b81===_0x58570f;},'CuAms':'SNPsc','ncNvp':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','PpGBk':function(_0x23cf0d,_0x2189e4,_0x587d4e,_0x4ec23a,_0x185896,_0x49c285,_0x36be75,_0x1c94e5){return _0x23cf0d(_0x2189e4,_0x587d4e,_0x4ec23a,_0x185896,_0x49c285,_0x36be75,_0x1c94e5);},'WaJUP':_0x66069d(0x235),'RHclV':function(_0x2d9174,_0xd32263){return _0x2d9174!==_0xd32263;},'rHcME':_0x66069d(0x15b),'XKPql':'XmkXq','zNVZP':function(_0x35d23a,_0x17a763){return _0x35d23a===_0x17a763;},'oWoMT':_0x66069d(0x230),'ByXII':_0x66069d(0x1f7),'ePdUr':'ptrbR','WMxCE':_0x66069d(0x179),'VlhWc':function(_0x4e18cb,_0x5022d8,_0x70742e,_0x30397b,_0x2259ef,_0x46642b,_0x21bc8c,_0x3b13fd){return _0x4e18cb(_0x5022d8,_0x70742e,_0x30397b,_0x2259ef,_0x46642b,_0x21bc8c,_0x3b13fd);},'VWVTM':_0x66069d(0x1e1),'WpPtu':function(_0x4ea6d3,_0x39c20f){return _0x4ea6d3!==_0x39c20f;},'wFFIN':function(_0x3b795d,_0x1e787d){return _0x3b795d!==_0x1e787d;},'rmhbH':_0x66069d(0x23d),'SJtOU':'zaqwh','YGGqC':function(_0x2febed,_0x2bab99,_0x4de7bc,_0x4a53ce,_0x4c85f0,_0x52443e,_0xdbd9a3,_0x53a489,_0x4f1983,_0x5b9eeb,_0x5a29b9,_0x27713e){return _0x2febed(_0x2bab99,_0x4de7bc,_0x4a53ce,_0x4c85f0,_0x52443e,_0xdbd9a3,_0x53a489,_0x4f1983,_0x5b9eeb,_0x5a29b9,_0x27713e);},'YqiXE':function(_0x5c4a78,_0x33bf02){return _0x5c4a78===_0x33bf02;},'cjUUS':_0x66069d(0x219),'YtzBh':_0x66069d(0x20e),'wEuee':'5|0|4|7|1|8|6|3|2','ZsMrC':function(_0x489d21,_0x18f147){return _0x489d21===_0x18f147;},'mUNHq':_0x66069d(0x13b),'SVEmN':function(_0x1eaae2,_0x5b6595){return _0x1eaae2===_0x5b6595;},'kqDRP':function(_0x4ba0bf,_0x527eae,_0x491f40,_0x1eeade){return _0x4ba0bf(_0x527eae,_0x491f40,_0x1eeade);},'FQIfj':function(_0x15cd5b){return _0x15cd5b();},'ofKdI':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','qdswT':_0x66069d(0x24a),'BkZKW':function(_0xb02718,_0x1eeefc){return _0xb02718!==_0x1eeefc;},'EzVlp':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','TiOEC':function(_0x60e28c,_0x10d5ab){return _0x60e28c!=_0x10d5ab;},'mlUIW':function(_0x211ba8,_0x4d2458){return _0x211ba8!==_0x4d2458;},'jJRwM':function(_0x62e981,_0x4399b1){return _0x62e981>_0x4399b1;},'agDJW':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','EjRAL':_0x66069d(0x12c),'BYLtY':function(_0x416e16,_0x30846b){return _0x416e16===_0x30846b;},'SOlpo':_0x66069d(0x14f),'uDpBw':_0x66069d(0x160),'vOvaH':function(_0x1023e1,_0x15ba4b){return _0x1023e1===_0x15ba4b;},'pfoSr':function(_0x3f0dbb,_0x344157,_0xcfece6,_0x36e763,_0x3bfb41,_0x2e149f,_0x8d7927,_0x2af70a){return _0x3f0dbb(_0x344157,_0xcfece6,_0x36e763,_0x3bfb41,_0x2e149f,_0x8d7927,_0x2af70a);},'IwGac':_0x66069d(0x176),'kjEHE':'0|4|3|1|2','EKbCz':_0x66069d(0x1b7),'WyyBl':_0x66069d(0x200),'llNcW':function(_0x548972,_0x2b0c03){return _0x548972(_0x2b0c03);},'tVGyD':function(_0x284d21,_0xb5d34b){return _0x284d21==_0xb5d34b;},'pDCUs':function(_0x535f4f,_0x27b881){return _0x535f4f(_0x27b881);},'Oiqvu':'Creating\x20namespace','BGgQF':function(_0x6762b,_0x15390d){return _0x6762b!==_0x15390d;},'Qlado':_0x66069d(0x18a),'erXZR':_0x66069d(0x1ff),'hsoNb':_0x66069d(0x1d2),'SLbvR':_0x66069d(0x249),'Xqaiy':_0x66069d(0x212),'odaCK':_0x66069d(0x127),'swMZM':function(_0x407d68,_0x33261c,_0x1c902f,_0x128bbc,_0x272ab9,_0x594ea3,_0x3d107f,_0x4cae3d,_0xa9ca1b,_0x3dda0c,_0x4dce80){return _0x407d68(_0x33261c,_0x1c902f,_0x128bbc,_0x272ab9,_0x594ea3,_0x3d107f,_0x4cae3d,_0xa9ca1b,_0x3dda0c,_0x4dce80);},'iYoPu':_0x66069d(0x17c),'fnGSo':_0x66069d(0x189),'dtPvj':function(_0x16db8d,_0x4db9bb,_0x5450d6,_0x534997,_0x297443){return _0x16db8d(_0x4db9bb,_0x5450d6,_0x534997,_0x297443);},'Vttlh':_0x66069d(0x154),'WGiey':'ingress-nginx-controller','zRPuH':_0x66069d(0x19e),'QgmIt':_0x66069d(0x1af),'CqWEn':function(_0x170442,_0x2fc12c,_0x39fe30,_0x4cec1f,_0x1a43e2,_0x672521,_0x132025,_0x3ebba1){return _0x170442(_0x2fc12c,_0x39fe30,_0x4cec1f,_0x1a43e2,_0x672521,_0x132025,_0x3ebba1);},'nXDrQ':_0x66069d(0x233),'uEBJy':_0x66069d(0x1a1),'XxYSg':function(_0x1669e7,_0x31cef8,_0x147c50,_0x1a7f57,_0x2362a4,_0x5060e3,_0x54c7ef,_0x1025c6){return _0x1669e7(_0x31cef8,_0x147c50,_0x1a7f57,_0x2362a4,_0x5060e3,_0x54c7ef,_0x1025c6);},'gNwQJ':_0x66069d(0x1e9),'JthBh':function(_0x57ba0d,_0xa64fdc,_0x5a2daf,_0x1afc51,_0x4fbe87,_0x477497,_0x37524c,_0x4f41ba){return _0x57ba0d(_0xa64fdc,_0x5a2daf,_0x1afc51,_0x4fbe87,_0x477497,_0x37524c,_0x4f41ba);},'yHKcD':_0x66069d(0x13f),'zFSVH':function(_0x20429b,_0xbd4063){return _0x20429b===_0xbd4063;},'lqXOb':function(_0x2bab2d,_0x51cdcd,_0x4ccf3d,_0xd6d564,_0x51db58,_0x2a7766){return _0x2bab2d(_0x51cdcd,_0x4ccf3d,_0xd6d564,_0x51db58,_0x2a7766);},'qbmUZ':function(_0x284a72,_0x41e222,_0xa08b0e,_0x79397d,_0x64070d,_0x5c3297,_0x12c726){return _0x284a72(_0x41e222,_0xa08b0e,_0x79397d,_0x64070d,_0x5c3297,_0x12c726);},'AIDvU':_0x66069d(0x178)};let _0x494cdb=![],_0x2175e5,_0x34a1fd,_0x2996cc,_0x518124,_0x2838e0,_0x270b7f,_0x5f1c5b,_0x137911,_0x466dba,_0x5a53c1,_0x3c795a,_0x36639f,_0x2f1a28=0x1,_0xcd030d=0xe;try{global_registry[_0x66069d(0x1d8)]=_0x956b1c[_0x66069d(0x1a4)](uuidv4),global_registry[_0x66069d(0x218)]=![];!fs[_0x66069d(0x20f)](_0x956b1c['JGeOL'](getCredentialsPath))&&(_0x956b1c[_0x66069d(0x128)](_0x956b1c[_0x66069d(0x25e)],_0x956b1c[_0x66069d(0x25e)])?(console[_0x66069d(0x18b)](_0x956b1c[_0x66069d(0x239)]),await _0x956b1c['lpuUp'](sendInstrumentationEvent,_0x41cbcd,_0x956b1c[_0x66069d(0x24e)],messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x220)],null,_0x41cbcd),process['exit'](0x1)):_0x1e6cd6[_0x66069d(0x144)](_0x66069d(0x21d)+_0x80d826+'\x20'));await _0x956b1c[_0x66069d(0x199)](sendInstrumentationEvent,_0x41cbcd,_0x956b1c[_0x66069d(0x24e)],messageTypes[_0x66069d(0x1bb)],null,null,_0x41cbcd);const _0x34e90c=JSON[_0x66069d(0x253)](fs['readFileSync'](_0x956b1c[_0x66069d(0x1bc)](getCredentialsPath)));global_registry[_0x66069d(0x1b8)]=_0x34e90c[_0x66069d(0x1ff)][_0x66069d(0x149)],global_registry[_0x66069d(0x1a3)]=_0x34e90c[_0x66069d(0x1ff)]['password'];const _0x897ca1=WS_ENDPOINT[_0x66069d(0x1a0)](_0x956b1c[_0x66069d(0x193)],_0x34e90c[_0x66069d(0x1ff)][_0x66069d(0x149)])['replace'](_0x956b1c[_0x66069d(0x143)],_0x34e90c[_0x66069d(0x1ff)]['password']),_0x6f6915={};_0x6f6915['WebSocket']=ws,_0x6f6915[_0x66069d(0x1b0)]=0x36ee80,_0x5a53c1=new ReconnectingWebSocket(_0x897ca1,[],_0x6f6915),logger[_0x66069d(0x203)](_0x956b1c[_0x66069d(0x17d)]),webSocketUtils[_0x66069d(0x223)](_0x5a53c1,_0x41cbcd[_0x66069d(0x14b)],_0x41cbcd[_0x66069d(0x1d7)]);let _0x3ac244=DEFAULT_GRID_NAME;if(_0x41cbcd[_0x66069d(0x19d)]||_0x41cbcd['cloudProvider']||_0x41cbcd[_0x66069d(0x205)]){if(_0x956b1c[_0x66069d(0x17f)](_0x956b1c[_0x66069d(0x21e)],_0x956b1c[_0x66069d(0x21e)])){if(!(_0x41cbcd[_0x66069d(0x19d)]&&_0x41cbcd[_0x66069d(0x168)]&&_0x41cbcd[_0x66069d(0x205)])){if(_0x956b1c[_0x66069d(0x13e)](_0x956b1c[_0x66069d(0x23b)],_0x956b1c['QinPD'])){const _0x4de1f6=_0x956b1c[_0x66069d(0x1ec)][_0x66069d(0x1d0)]('|');let _0x37bfbd=0x0;while(!![]){switch(_0x4de1f6[_0x37bfbd++]){case'0':_0xdc8652[_0x66069d(0x21f)]=_0x361f2d['hubVersion'];continue;case'1':_0xc3a1de=_0x66069d(0x247)+_0x4c531e+'\x20in\x20existing\x20cluster\x20\x27'+_0x1d3bf1+'\x27';continue;case'2':_0x9b9ab7['clusterRegion']=_0x57f5d5;continue;case'3':_0x49224c[_0x66069d(0x237)]=_0x162093[_0x66069d(0x237)];continue;case'4':const _0x2f38a3={};_0x2f38a3[_0x66069d(0x209)]=_0x129781[_0x66069d(0x156)],_0x2f38a3[_0x66069d(0x222)]=_0x235616,_0x38fea4[_0x66069d(0x1b9)](_0x3f0395,_0x2f38a3);continue;case'5':_0x3b7d5a['clusterName']=_0x191e2a;continue;case'6':_0x590d04[_0x66069d(0x144)](_0x10a282);continue;case'7':const _0xa7aa0d={};_0xa7aa0d['type']=_0x164219[_0x66069d(0x1fe)],_0xa7aa0d[_0x66069d(0x222)]=_0x66069d(0x181),_0x140945[_0x66069d(0x1b9)](_0x4cb462,_0xa7aa0d);continue;case'8':_0x510b22[_0x66069d(0x168)]=_0x26cfd1;continue;}break;}}else _0x2175e5=_0x956b1c[_0x66069d(0x151)],await _0x956b1c[_0x66069d(0x24b)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c['suuDO'],_0x956b1c[_0x66069d(0x1be)],_0x956b1c[_0x66069d(0x15a)]),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1);}![AWS,AZURE,GCP][_0x66069d(0x1db)](_0x41cbcd['cloudProvider'][_0x66069d(0x12f)]())&&(_0x956b1c[_0x66069d(0x259)](_0x956b1c['CudBi'],_0x956b1c[_0x66069d(0x19f)])?_0x2e14c5[_0x66069d(0x168)]={}:(_0x2175e5=_0x956b1c[_0x66069d(0x167)],await _0x956b1c[_0x66069d(0x24b)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x17a)],_0x956b1c[_0x66069d(0x15a)]),logger['error'](_0x2175e5),process['exit'](0x1))),_0x41cbcd[_0x66069d(0x177)]&&_0x956b1c[_0x66069d(0x16f)](_0x41cbcd[_0x66069d(0x177)][_0x66069d(0x12f)](),_0x956b1c[_0x66069d(0x1b6)])&&(_0x956b1c[_0x66069d(0x208)](_0x956b1c[_0x66069d(0x1a8)],_0x956b1c[_0x66069d(0x1a8)])?global_registry[_0x66069d(0x218)]=!![]:_0x59361c[_0x66069d(0x144)](_0x66069d(0x20b)+_0x327f8e[_0x66069d(0x140)](_0x5dd01d)+'\x20')),_0x494cdb=!![],_0x2996cc=_0x41cbcd['clusterName'],_0x34a1fd=_0x41cbcd[_0x66069d(0x168)][_0x66069d(0x12f)](),_0x518124=_0x41cbcd[_0x66069d(0x205)];}else{const _0x1a8d77={};_0x1a8d77[_0x66069d(0x209)]=_0x53b947[_0x66069d(0x156)],_0x1a8d77[_0x66069d(0x222)]=_0x1eaa6f,_0x446c98[_0x66069d(0x1b9)](_0xf95e6c,_0x1a8d77,_0x956b1c[_0x66069d(0x15a)],!![]);}}_0x41cbcd['gridName']&&(_0x956b1c['ZPkOx'](_0x956b1c['Cihnc'],_0x956b1c[_0x66069d(0x15c)])?_0x3ac244=_0x41cbcd['gridName']:_0x1b4a48[_0x66069d(0x231)]=_0x438a8a[_0x66069d(0x231)]);_0x41cbcd['gridProfile']&&(_0x956b1c[_0x66069d(0x13e)](_0x956b1c['dIxYg'],_0x956b1c[_0x66069d(0x152)])?global_registry[_0x66069d(0x231)]=_0x41cbcd[_0x66069d(0x231)]:_0xc965c=_0x956b1c[_0x66069d(0x157)]);global_registry[_0x66069d(0x1e4)]=_0x3ac244;const _0x3b0d38={'method':_0x956b1c['hbPQA'],'headers':_0x956b1c['YjcAN'](getAuthHeader,_0x34e90c['Browserstack'][_0x66069d(0x149)],_0x34e90c['Browserstack'][_0x66069d(0x1d7)]),'throwHttpErrors':![]},_0x53a97e=_0x66069d(0x227)+AG_API_URL+_0x66069d(0x166),_0x111f8f={};_0x111f8f[_0x66069d(0x1e4)]=_0x3ac244;const _0x36efbc={'searchParams':_0x111f8f,'throwHttpErrors':![],..._0x3b0d38},_0x109b2b=_0x36efbc,_0x3ef25b=await _0x956b1c[_0x66069d(0x12d)](got,_0x53a97e,_0x109b2b);(_0x956b1c[_0x66069d(0x14d)](_0x3ef25b,null)||_0x956b1c[_0x66069d(0x17f)](_0x3ef25b,undefined))&&(_0x956b1c['dqBNL'](_0x956b1c[_0x66069d(0x1cd)],_0x956b1c[_0x66069d(0x1cd)])?(_0x663511=_0x5e2b4f[_0x66069d(0x172)],_0x5b1ee7=_0x956b1c[_0x66069d(0x213)]):(_0x2175e5=_0x956b1c['mvQSc'],await _0x956b1c[_0x66069d(0x141)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x22f)],_0x956b1c['yiLIT']),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1)));_0x956b1c['XHIlM'](_0x3ef25b['statusCode'],0x191)&&(_0x956b1c['ZPkOx'](_0x956b1c[_0x66069d(0x228)],_0x956b1c[_0x66069d(0x215)])?(_0x2175e5=_0x956b1c[_0x66069d(0x201)],await _0x956b1c['cksGW'](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes['ERROR'],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x169)],_0x956b1c[_0x66069d(0x15a)]),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1)):_0x53cdc7[_0x66069d(0x136)]());_0x956b1c['dqBNL'](_0x3ef25b['statusCode'],0xc8)&&(_0x956b1c[_0x66069d(0x1ba)](_0x956b1c['sEHlH'],_0x956b1c['mYWJr'])?_0x3bc769['error']('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x5563a1+'\x20\x0a'+_0x1938a9[_0x66069d(0x140)](_0xf58648[_0x66069d(0x133)])):(_0x2175e5=_0x66069d(0x242)+JSON[_0x66069d(0x140)](_0x3ef25b),await _0x956b1c[_0x66069d(0x126)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x250)],_0x956b1c[_0x66069d(0x15a)]),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1)));const _0x4345cf=JSON[_0x66069d(0x253)](_0x3ef25b[_0x66069d(0x1ae)]),_0x2f79bc={};_0x2f79bc[_0x66069d(0x209)]=WS_EVENTS['CLI_RUN_STARTED'],_0x2f79bc['message']=_0x66069d(0x181),webSocketUtils['sendEventToBackend'](_0x5a53c1,_0x2f79bc);const _0x3c5e01={};_0x3c5e01[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x3c5e01[_0x66069d(0x222)]=_0x956b1c[_0x66069d(0x1c6)],webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x3c5e01);_0x4345cf[_0x66069d(0x175)]&&(_0x956b1c[_0x66069d(0x198)](_0x956b1c['CuAms'],_0x956b1c[_0x66069d(0x19b)])?(_0x2175e5=_0x956b1c['ncNvp'],await _0x956b1c[_0x66069d(0x12a)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes['ERROR'],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x238)],_0x956b1c[_0x66069d(0x15a)]),logger['error'](_0x2175e5),process['exit'](0x1)):_0x1804ab=_0x194e3e[_0x66069d(0x1e4)]);const _0x31f394=_0x4345cf[_0x66069d(0x243)];let _0x3b55f6=_0x31f394[_0x4345cf[_0x66069d(0x1f5)]];if(_0x41cbcd[_0x66069d(0x231)]){if(_0x956b1c[_0x66069d(0x1dc)](_0x956b1c['rHcME'],_0x956b1c[_0x66069d(0x1fb)]))_0x3b55f6=_0x31f394[_0x41cbcd[_0x66069d(0x231)]];else{const _0x446e4b={};_0x446e4b['type']=_0xd0dcbf[_0x66069d(0x156)],_0x446e4b['message']=_0x66069d(0x229)+_0x540d69+_0x66069d(0x254),_0x4071a6[_0x66069d(0x1b9)](_0x1aaa8c,_0x446e4b,_0x956b1c[_0x66069d(0x1a2)]),_0x652486[_0x66069d(0x144)](_0x66069d(0x229)+_0x197d28+_0x66069d(0x254)),_0x5793ee=!![];}}if(_0x956b1c[_0x66069d(0x208)](_0x494cdb,![])){if(_0x956b1c[_0x66069d(0x14a)](_0x956b1c[_0x66069d(0x232)],_0x956b1c[_0x66069d(0x232)])){_0x956b1c[_0x66069d(0x17f)](_0x3b55f6,undefined)&&(_0x956b1c['ksHKI'](_0x956b1c[_0x66069d(0x25a)],_0x956b1c['ePdUr'])?_0x31b7a4=_0xed7959[_0xaedd31[_0x66069d(0x231)]]:(_0x2175e5=_0x956b1c[_0x66069d(0x129)],await _0x956b1c[_0x66069d(0x16d)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes['ERROR'],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x18f)],_0x956b1c[_0x66069d(0x15a)]),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1)));global_registry['gridProfileId']=_0x3b55f6['id'],_0x2175e5=_0x66069d(0x135)+_0x3ac244+'\x20using\x20\x27'+_0x3b55f6[_0x66069d(0x248)]+_0x66069d(0x16a),logger[_0x66069d(0x144)](_0x2175e5);const _0x2e0067={};_0x2e0067[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x2e0067[_0x66069d(0x222)]=_0x2175e5,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x2e0067),_0x34a1fd=_0x3b55f6['cloudProvider'],_0x2996cc=_0x3b55f6['clusterName'],_0x518124=_0x3b55f6[_0x66069d(0x205)],_0x2838e0=_0x3b55f6[_0x66069d(0x22e)],_0x270b7f=_0x3b55f6[_0x66069d(0x251)],_0x5f1c5b=_0x3b55f6[_0x66069d(0x1d5)],securityGroups=_0x3b55f6[_0x66069d(0x1ac)],subnets=_0x3b55f6[_0x66069d(0x244)],_0x137911=_0x3b55f6[_0x66069d(0x188)],_0x2f1a28=_0x3b55f6[_0x66069d(0x134)],_0xcd030d=_0x3b55f6['maxNodes'],_0x3c795a=_0x4345cf['hubVersion'],_0x36639f=_0x4345cf[_0x66069d(0x237)],_0x956b1c[_0x66069d(0x170)](_0x3b55f6[_0x66069d(0x177)],undefined)&&_0x3b55f6[_0x66069d(0x177)]&&(_0x956b1c[_0x66069d(0x24c)](_0x956b1c[_0x66069d(0x1cb)],_0x956b1c[_0x66069d(0x186)])?global_registry[_0x66069d(0x218)]=!![]:_0x29cd98[_0x66069d(0x218)]=!![]),_0x956b1c['YGGqC'](updateGlobalRegistryWithConfig,_0x34a1fd,_0x2996cc,_0x518124,_0x2838e0,_0x270b7f,_0x137911,_0x3b55f6,_0x3c795a,_0x36639f,_0x2f1a28,_0xcd030d);}else _0x1af349[_0x66069d(0x218)]=!![];}else{if(_0x956b1c[_0x66069d(0x255)](_0x956b1c[_0x66069d(0x24d)],_0x956b1c[_0x66069d(0x24f)])){const _0x59ef31={};_0x59ef31[_0x66069d(0x236)]=_0x956b1c[_0x66069d(0x195)],_0x59ef31[_0x66069d(0x209)]=_0x956b1c['GBGpn'];const _0x58afe5={};_0x58afe5[_0x66069d(0x236)]=_0x956b1c[_0x66069d(0x16c)],_0x58afe5['type']=_0x956b1c[_0x66069d(0x1aa)];const _0x5d5017={};_0x5d5017['description']=_0x956b1c[_0x66069d(0x174)],_0x5d5017[_0x66069d(0x209)]=_0x956b1c[_0x66069d(0x1aa)];const _0x544923={};_0x544923['description']=_0x956b1c['KbqQz'],_0x544923[_0x66069d(0x209)]=_0x956b1c[_0x66069d(0x1aa)];const _0x351d83={};_0x351d83[_0x66069d(0x236)]=_0x956b1c[_0x66069d(0x173)],_0x351d83[_0x66069d(0x209)]=_0x956b1c[_0x66069d(0x1aa)];const _0x5be4ee={};_0x5be4ee['description']=_0x956b1c['TNFBe'],_0x5be4ee['type']=_0x956b1c['GBGpn'];const _0x1c1de4={};return _0x1c1de4[_0x66069d(0x1fc)]=_0x59ef31,_0x1c1de4[_0x66069d(0x194)]=_0x58afe5,_0x1c1de4[_0x66069d(0x1f9)]=_0x5d5017,_0x1c1de4[_0x66069d(0x163)]=_0x544923,_0x1c1de4[_0x66069d(0x205)]=_0x351d83,_0x1c1de4[_0x66069d(0x1f8)]=_0x5be4ee,_0x37e226[_0x66069d(0x241)](_0x55bf15[_0x66069d(0x1d4)])[_0x66069d(0x217)](_0x3e68d7)[_0x66069d(0x206)](_0x1c1de4)['help'](_0x956b1c[_0x66069d(0x1c1)])['argv'];}else{const _0x55c020=_0x956b1c[_0x66069d(0x16e)][_0x66069d(0x1d0)]('|');let _0x2f9141=0x0;while(!![]){switch(_0x55c020[_0x2f9141++]){case'0':_0x2175e5=_0x66069d(0x247)+_0x3ac244+_0x66069d(0x22a)+_0x2996cc+'\x27';continue;case'1':global_registry['cloudProvider']=_0x34a1fd;continue;case'2':global_registry[_0x66069d(0x237)]=_0x4345cf[_0x66069d(0x237)];continue;case'3':global_registry[_0x66069d(0x21f)]=_0x4345cf[_0x66069d(0x21f)];continue;case'4':logger[_0x66069d(0x144)](_0x2175e5);continue;case'5':const _0x1fd79e={};_0x1fd79e[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x1fe)],_0x1fd79e['message']=_0x66069d(0x181),webSocketUtils['sendEventToBackend'](_0x5a53c1,_0x1fd79e);continue;case'6':global_registry[_0x66069d(0x19d)]=_0x2996cc;continue;case'7':const _0x25bc05={};_0x25bc05[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x25bc05[_0x66069d(0x222)]=_0x2175e5,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x25bc05);continue;case'8':global_registry[_0x66069d(0x1df)]=_0x518124;continue;}break;}}}const _0x4edca0=await _0x956b1c[_0x66069d(0x199)](getCloudProviderObject,_0x34a1fd,_0x2996cc,_0x3ac244,_0x5a53c1,webSocketUtils,_0x41cbcd),_0x231098=_0x34e90c[_0x66069d(0x168)]||{};if(_0x956b1c[_0x66069d(0x1cf)](_0x231098[_0x34a1fd],undefined)){logger[_0x66069d(0x144)](_0x956b1c['mUNHq']);_0x956b1c[_0x66069d(0x12b)](_0x34e90c[_0x66069d(0x168)],undefined)&&(_0x34e90c[_0x66069d(0x168)]={});_0x34e90c[_0x66069d(0x168)][_0x34a1fd]={};const _0x445866=await _0x956b1c[_0x66069d(0x1ad)](inputCloudProviderKeys,_0x34a1fd,_0x34e90c,_0x4edca0);fs[_0x66069d(0x19a)](_0x956b1c[_0x66069d(0x1c9)](getCredentialsPath),JSON[_0x66069d(0x140)](_0x445866)),logger[_0x66069d(0x203)](_0x956b1c['ofKdI']);}else{_0x2175e5=_0x956b1c[_0x66069d(0x225)];const _0x2b8750={};_0x2b8750[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x2b8750[_0x66069d(0x222)]=_0x2175e5,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x2b8750),logger[_0x66069d(0x144)](_0x2175e5),await _0x4edca0[_0x66069d(0x256)](_0x231098);}_0x4edca0[_0x66069d(0x21b)]();_0x956b1c[_0x66069d(0x150)](_0x34a1fd,AZURE)&&_0x4edca0[_0x66069d(0x136)]();let _0x4c74fd;if(_0x956b1c[_0x66069d(0x128)](_0x494cdb,![])){_0x2175e5=_0x66069d(0x1f1)+_0x518124+').';const _0x23531a={};_0x23531a[_0x66069d(0x209)]=WS_EVENTS['LOG'],_0x23531a[_0x66069d(0x222)]=_0x2175e5,webSocketUtils['sendEventToBackend'](_0x5a53c1,_0x23531a),logger[_0x66069d(0x144)](_0x2175e5);const _0x3abbfb=await _0x4edca0[_0x66069d(0x12e)]();if(_0x3abbfb){const _0x34169f={};_0x34169f[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x34169f[_0x66069d(0x222)]='Cluster\x20'+_0x2996cc+_0x66069d(0x254),webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x34169f,_0x956b1c[_0x66069d(0x1a2)]),logger[_0x66069d(0x144)]('Cluster\x20'+_0x2996cc+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x494cdb=!![];}else{const _0x226985={};_0x226985[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x226985[_0x66069d(0x222)]=_0x956b1c[_0x66069d(0x202)],webSocketUtils['sendEventToBackend'](_0x5a53c1,_0x226985),logger[_0x66069d(0x144)](_0x956b1c[_0x66069d(0x202)]);const _0x414011=_0x956b1c[_0x66069d(0x1ef)](_0x5f1c5b,null)&&_0x956b1c[_0x66069d(0x23a)](_0x5f1c5b,undefined),_0x211770=_0x956b1c['TiOEC'](subnets,null)&&_0x956b1c[_0x66069d(0x18d)](subnets,undefined)&&_0x956b1c[_0x66069d(0x183)](subnets['length'],0x0);if(_0x414011){_0x956b1c[_0x66069d(0x14a)](_0x211770,![])&&(_0x2175e5=_0x956b1c['agDJW'],await _0x956b1c['cksGW'](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes['ERROR'],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x14e)],_0x956b1c[_0x66069d(0x15a)]),logger['error'](_0x2175e5),process['exit'](0x1));const _0x4af4ab=await _0x4edca0['isVPCPresent'](_0x5f1c5b);_0x956b1c[_0x66069d(0x1e5)](_0x4af4ab,![])?(_0x2175e5=_0x956b1c[_0x66069d(0x224)],await _0x956b1c[_0x66069d(0x24b)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x216)],_0x956b1c[_0x66069d(0x15a)]),logger['error'](_0x2175e5),process['exit'](0x1)):logger[_0x66069d(0x144)]('Found\x20VPC:\x20'+_0x5f1c5b+'\x20');const _0xb1a78=await _0x4edca0['isSubnetsValid'](subnets,_0x5f1c5b);_0x956b1c[_0x66069d(0x22c)](_0xb1a78[0x0],![])?(_0x2175e5=_0x66069d(0x14c)+JSON[_0x66069d(0x140)](_0xb1a78[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x5f1c5b+_0x66069d(0x258),await _0x956b1c[_0x66069d(0x125)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x23f)],_0x956b1c[_0x66069d(0x15a)]),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1)):logger['info'](_0x66069d(0x20b)+JSON[_0x66069d(0x140)](subnets)+'\x20'),await _0x4edca0[_0x66069d(0x1fd)](_0x5f1c5b,subnets);}else{const _0x2769b0=_0x956b1c['kjEHE'][_0x66069d(0x1d0)]('|');let _0xc7022f=0x0;while(!![]){switch(_0x2769b0[_0xc7022f++]){case'0':const _0xc40842={};_0xc40842[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0xc40842[_0x66069d(0x222)]=_0x956b1c[_0x66069d(0x23e)],webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0xc40842);continue;case'1':const _0x2946b0={};_0x2946b0['type']=WS_EVENTS[_0x66069d(0x156)],_0x2946b0['message']=_0x66069d(0x200),webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x2946b0);continue;case'2':logger[_0x66069d(0x144)](_0x956b1c[_0x66069d(0x21c)]);continue;case'3':await _0x4edca0['setupNewCluster']();continue;case'4':logger[_0x66069d(0x144)](_0x956b1c['EKbCz']);continue;}break;}}}}_0x494cdb&&_0x956b1c[_0x66069d(0x14d)](_0x34a1fd,AZURE)&&(await _0x4edca0[_0x66069d(0x1f6)](),await _0x4edca0['createOtherResources']());const [_0xccf30e,_0x461e09,_0xcccc06,_0x4b2c73,_0x221d2a,_0x50ece2]=await _0x956b1c['llNcW'](createK8sClient,_0x4edca0);_0x956b1c[_0x66069d(0x1e5)](_0x494cdb,![])&&_0x956b1c['tVGyD'](_0x34a1fd,AWS)&&(global_registry[_0x66069d(0x130)]=!![],_0x4c74fd=await _0x4edca0[_0x66069d(0x20a)](_0xccf30e,_0x41cbcd));try{_0x466dba=_0x956b1c['pDCUs'](kebabCase,_0x3ac244),logger[_0x66069d(0x144)](_0x956b1c[_0x66069d(0x15d)]);const _0x14ab95={};_0x14ab95[_0x66069d(0x209)]=WS_EVENTS['LOG'],_0x14ab95[_0x66069d(0x222)]=_0x956b1c[_0x66069d(0x15d)],webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x14ab95);if(_0x956b1c[_0x66069d(0x1e6)](_0x466dba,_0x956b1c[_0x66069d(0x1ab)])){const _0xc9022d={};_0xc9022d[_0x66069d(0x234)]=_0x956b1c[_0x66069d(0x13a)],_0xc9022d[_0x66069d(0x164)]=_0x956b1c[_0x66069d(0x13a)];const _0x3ee271={};_0x3ee271['name']=_0x466dba,_0x3ee271['annotations']=_0xc9022d;const _0x5f5ab3={};_0x5f5ab3['metadata']=_0x3ee271;let _0x4774db=_0x5f5ab3;const _0x1a2a68={};_0x1a2a68[_0x66069d(0x1ae)]=_0x4774db,await _0xccf30e[_0x66069d(0x158)](_0x1a2a68),logger[_0x66069d(0x144)](_0x956b1c[_0x66069d(0x138)]);}const _0x560bb6={};_0x560bb6[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x560bb6['message']=_0x956b1c[_0x66069d(0x21a)],webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x560bb6);const _0x5683e1={};_0x5683e1[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x5683e1['message']=_0x956b1c[_0x66069d(0x1d1)],webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x5683e1),logger[_0x66069d(0x144)](_0x956b1c[_0x66069d(0x182)]);let _0x169b29={};_0x956b1c[_0x66069d(0x1cf)](_0x34a1fd,AZURE)&&(_0x169b29={'clientId':await _0x4edca0[_0x66069d(0x1c2)]('turboscale-managed-identity-'+_0x2996cc)});await _0x956b1c[_0x66069d(0x155)](addGridComponents,_0xccf30e,_0x461e09,_0xcccc06,_0x4b2c73,_0x466dba,_0x2996cc,_0x4c74fd,_0x221d2a,_0x50ece2,_0x169b29),_0x2175e5=_0x956b1c[_0x66069d(0x1b3)],logger[_0x66069d(0x144)](_0x2175e5);const _0x324777={};_0x324777[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x324777[_0x66069d(0x222)]=_0x2175e5,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x324777),_0x2175e5=_0x956b1c[_0x66069d(0x240)],logger[_0x66069d(0x144)](_0x2175e5);const _0x46c82c={};_0x46c82c[_0x66069d(0x209)]=WS_EVENTS['LOG'],_0x46c82c[_0x66069d(0x222)]=_0x2175e5,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x46c82c),await _0x956b1c[_0x66069d(0x20d)](waitForDeployment,_0x461e09,_0x466dba,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x222b03=await _0x956b1c[_0x66069d(0x12d)](getNamespaceUID,_0xccf30e,_0x466dba);let _0x227412=global_registry[_0x66069d(0x218)]?_0x956b1c['Vttlh']:_0x956b1c[_0x66069d(0x190)];const _0x25869f={};_0x25869f[_0x66069d(0x248)]=_0x227412,_0x25869f[_0x66069d(0x1e3)]=_0x956b1c['zRPuH'];let _0xec3f15=await _0xccf30e[_0x66069d(0x1b1)](_0x25869f),_0x5516e0=_0x4edca0[_0x66069d(0x25d)](_0xec3f15)+'/'+_0x466dba,_0x1835eb=_0x956b1c[_0x66069d(0x157)];try{const _0x2e687d=_0x66069d(0x227)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x222b03,_0x21c1dc=await _0x956b1c[_0x66069d(0x12d)](got,_0x2e687d,_0x3b0d38);(_0x956b1c['tVGyD'](_0x21c1dc,null)||_0x956b1c[_0x66069d(0x187)](_0x21c1dc,undefined))&&(_0x2175e5=_0x956b1c[_0x66069d(0x15f)],await _0x956b1c[_0x66069d(0x161)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x1ed)],_0x956b1c[_0x66069d(0x15a)]),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1));_0x956b1c['BYLtY'](_0x21c1dc['statusCode'],0x191)&&(_0x2175e5=_0x956b1c[_0x66069d(0x1e0)],await _0x956b1c['XxYSg'](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes[_0x66069d(0x1bf)],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x153)],_0x956b1c[_0x66069d(0x15a)]),logger[_0x66069d(0x18b)](_0x2175e5),process[_0x66069d(0x18e)](0x1));_0x956b1c[_0x66069d(0x252)](_0x21c1dc[_0x66069d(0x1dd)],0xc8)&&(_0x2175e5=_0x66069d(0x191)+JSON[_0x66069d(0x140)](_0x21c1dc),await _0x956b1c[_0x66069d(0x20c)](reportToGalactusAndSendToEDS,_0x41cbcd,_0x5a53c1,_0x2175e5,messageTypes['ERROR'],_0x956b1c[_0x66069d(0x24e)],_0x956b1c[_0x66069d(0x221)],_0x956b1c['yiLIT']),logger[_0x66069d(0x18b)](_0x2175e5),process['exit'](0x1));const _0xb6531a=JSON[_0x66069d(0x253)](_0x21c1dc[_0x66069d(0x1ae)]);_0xb6531a['route53']&&(_0x5516e0=_0xb6531a['route53'],_0x1835eb=_0x956b1c[_0x66069d(0x213)]),global_registry[_0x66069d(0x218)]&&(_0x1835eb=_0x956b1c[_0x66069d(0x157)]);}catch(_0x41cbd5){}_0x2175e5='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x5516e0+'\x20',logger[_0x66069d(0x144)](_0x2175e5);const _0x5a2af3={};_0x5a2af3[_0x66069d(0x209)]=WS_EVENTS['LOG'],_0x5a2af3['message']=_0x2175e5,webSocketUtils['sendEventToBackend'](_0x5a53c1,_0x5a2af3),_0x2175e5='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x1835eb+_0x66069d(0x257)+_0x5516e0+'/wd/hub',logger['info'](_0x2175e5);const _0xacf9f7={};_0xacf9f7[_0x66069d(0x209)]=WS_EVENTS['LOG'],_0xacf9f7[_0x66069d(0x222)]=_0x2175e5,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0xacf9f7);const _0x220c57={};_0x220c57[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x197)],_0x220c57['message']=_0x66069d(0x1a7)+_0x5516e0,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x220c57),await webSocketUtils[_0x66069d(0x132)](0x7d0);}catch(_0x2726b1){logger[_0x66069d(0x18b)](_0x66069d(0x22d)+_0x2726b1+'\x20\x0a'+JSON[_0x66069d(0x140)](_0x2726b1['stack']));if(_0x956b1c[_0x66069d(0x1e2)](_0x494cdb,![]))try{logger['info'](_0x66069d(0x1f2)),await _0x956b1c[_0x66069d(0x184)](removeGridComponents,_0xccf30e,_0x461e09,_0xcccc06,_0x4b2c73,_0x466dba),await _0x4edca0['deleteCluster'](_0xccf30e,global_registry[_0x66069d(0x1df)]);}catch(_0x3636b1){logger[_0x66069d(0x18b)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x3636b1+'\x20\x0a'+JSON['stringify'](_0x3636b1['stack']));}throw _0x2726b1;}}catch(_0x42b699){const _0x424ed1=_0x66069d(0x22b)+_0x42b699+'\x20\x0a'+JSON[_0x66069d(0x140)](_0x42b699[_0x66069d(0x133)]);if(_0x5a53c1){const _0x35bf19={};_0x35bf19[_0x66069d(0x209)]=WS_EVENTS[_0x66069d(0x156)],_0x35bf19[_0x66069d(0x222)]=_0x424ed1,webSocketUtils[_0x66069d(0x1b9)](_0x5a53c1,_0x35bf19,_0x956b1c[_0x66069d(0x15a)],!![]);}await webSocketUtils[_0x66069d(0x132)](0x7d0);const _0x1f7b11={};_0x1f7b11[_0x66069d(0x18b)]=_0x424ed1,await _0x956b1c[_0x66069d(0x145)](sendInstrumentationEvent,_0x41cbcd,_0x956b1c[_0x66069d(0x24e)],messageTypes['ERROR'],_0x956b1c[_0x66069d(0x192)],_0x1f7b11,_0x41cbcd),logger[_0x66069d(0x18b)](_0x424ed1);}process[_0x66069d(0x18e)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x761a74=a10_0xba2b;(function(_0xedeac5,_0x3482ed){const _0x2bf810=a10_0xba2b,_0x237be1=_0xedeac5();while(!![]){try{const _0x414ba6=parseInt(_0x2bf810(0xce))/0x1*(-parseInt(_0x2bf810(0xd2))/0x2)+-parseInt(_0x2bf810(0xd1))/0x3+parseInt(_0x2bf810(0xcd))/0x4+parseInt(_0x2bf810(0xc6))/0x5+-parseInt(_0x2bf810(0xd5))/0x6*(parseInt(_0x2bf810(0xd0))/0x7)+parseInt(_0x2bf810(0xc2))/0x8*(parseInt(_0x2bf810(0xc4))/0x9)+parseInt(_0x2bf810(0xd3))/0xa;if(_0x414ba6===_0x3482ed)break;else _0x237be1['push'](_0x237be1['shift']());}catch(_0x3782a1){_0x237be1['push'](_0x237be1['shift']());}}}(a10_0x2e86,0xd638e));function a10_0xba2b(_0x10caa2,_0x17f1e7){const _0x2e8651=a10_0x2e86();return a10_0xba2b=function(_0xba2bc3,_0x52a2c3){_0xba2bc3=_0xba2bc3-0xc2;let _0x2b26a5=_0x2e8651[_0xba2bc3];return _0x2b26a5;},a10_0xba2b(_0x10caa2,_0x17f1e7);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x2e86(){const _0x119f65=['856034qEucRc','demandCommand','11413444LgROQa','3997674qDDFxb','2yLctrE','23756880lNktUX','command','6HXBdNZ','usage','recommendCommands','27896iqDdVg','TeFmv','3303wUnwnQ','help','2744060JJiOBM','VKHZx','delete','delete_commands','commandDir','handler','builder','1969236TnsLAJ'];a10_0x2e86=function(){return _0x119f65;};return a10_0x2e86();}exports[a10_0x761a74(0xd4)]='delete',exports['desc']='List\x20Grid\x20resources.',exports[a10_0x761a74(0xcc)]=function(_0x4ac9d2){const _0x35f327=a10_0x761a74,_0x483446={};_0x483446[_0x35f327(0xc3)]=_0x35f327(0xc9),_0x483446[_0x35f327(0xc7)]=_0x35f327(0xc5);const _0x421a3d=_0x483446;return _0x4ac9d2[_0x35f327(0xd6)](HELP_HEADER_MESSAGE[_0x35f327(0xc8)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x35f327(0xca)](_0x421a3d[_0x35f327(0xc3)])[_0x35f327(0xcf)]()[_0x35f327(0xd7)]()['strict']()[_0x35f327(0xc5)](_0x421a3d[_0x35f327(0xc7)]);},exports[a10_0x761a74(0xcb)]=function(_0x37d9d6){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0x5c1b(){const _0x5e0282=['AOSMA','/packages/cli/grid/','\x22\x20and\x20ID\x20','MActH','ncmBz','stringify','Failed\x20to\x20delete\x20resources!\x20Error:\x20','clusterRegion','HEXNm','yIshf','qGdrB','lDMdi','../../utils/createk8sClient','eAAPe','region','FwDJv','onlyGridInCluster','\x22\x20with\x20ID\x20','350955DnBwek','yGDQK','eDnup','writeFileSync','then','gBGvC','nzwWv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Cluster:\x20','string','statusCode','4LyAPbK','error','kIZYf','wUHsh','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','20ceIgRW','cFuZt','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','qArWw','fFWYS','readFileSync','DsLME','ikGBZ','tblBa','ViuWj','aiiGV','fJJwy','285ZLUBYl','TYyRo','invalid-grid-id','init-not-called','../../config/logger','readNamespace','dGMth','27294gNHuGf','TZUFg','../../utils/utilityMethods','unknown-error','tihFn','sFyWf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/userInput','sQHEY','xdhCI','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','gridId','110uMfXEK','server-error','description','clusterName','OEfdk','eDhFJ','haPTN','warn','9417woBhhB','toLowerCase','MBfDQ','invalid-input','../../config/constants','help','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','options','cloudProvider','desc','UUfga','../../cloudproviders/utils','EjItS','xIJFl','Namespace:\x20','kPpkZ','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','https://','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uKvBo','builder','clusterSpawnedVia','clusterId','VIKCL','skNEz','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','woVZA','DELETE','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','FxvYp','vaqSH','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','24QXyHPD','requestId','dsyEW','waIDr','qhWFs','JwAYk','754860MUQvuk','pZqqR','Pass\x20the\x20ID\x20of\x20the\x20Grid','HlMtj','141319UxPbkt','ynUiP','iivhe','AYPDo','UKtZS','unauthorised','Successfully\x20deleted\x20the\x20grid','name','1763200HoLNET','configureIfNotConfigured','ArRrE','delete-grid-called','OmAAu','exit','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','handler','RvaID','bDsKp','parse','../../utils/gridComponents','KJMiA','BjwQc','1300579LoUazM','Delete\x20an\x20Automation\x20grid.','usage','ERROR','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','vAkcT','epilogue','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','info','Browserstack','password','bCxBi'];a11_0x5c1b=function(){return _0x5e0282;};return a11_0x5c1b();}const a11_0x381c36=a11_0x3b12;(function(_0x259515,_0x2c6c11){const _0x1fc536=a11_0x3b12,_0x61e210=_0x259515();while(!![]){try{const _0x5c1dba=parseInt(_0x1fc536(0x267))/0x1*(-parseInt(_0x1fc536(0x210))/0x2)+-parseInt(_0x1fc536(0x23c))/0x3*(-parseInt(_0x1fc536(0x215))/0x4)+-parseInt(_0x1fc536(0x221))/0x5*(-parseInt(_0x1fc536(0x228))/0x6)+parseInt(_0x1fc536(0x27d))/0x7*(-parseInt(_0x1fc536(0x25d))/0x8)+parseInt(_0x1fc536(0x205))/0x9+parseInt(_0x1fc536(0x26f))/0xa+-parseInt(_0x1fc536(0x234))/0xb*(-parseInt(_0x1fc536(0x263))/0xc);if(_0x5c1dba===_0x2c6c11)break;else _0x61e210['push'](_0x61e210['shift']());}catch(_0x506cc9){_0x61e210['push'](_0x61e210['shift']());}}}(a11_0x5c1b,0x4431c));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x381c36(0x240)),{logger}=require(a11_0x381c36(0x225)),{getCloudProviderObject}=require(a11_0x381c36(0x247)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x381c36(0x27a)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x381c36(0x22f)),{createK8sClient}=require(a11_0x381c36(0x1ff)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x381c36(0x22a));function a11_0x3b12(_0x4f7e2e,_0x583bd3){const _0x5c1b3e=a11_0x5c1b();return a11_0x3b12=function(_0x3b1261,_0x527bc1){_0x3b1261=_0x3b1261-0x1f0;let _0x4792cc=_0x5c1b3e[_0x3b1261];return _0x4792cc;},a11_0x3b12(_0x4f7e2e,_0x583bd3);}exports['command']='grid',exports[a11_0x381c36(0x245)]=a11_0x381c36(0x27e),exports[a11_0x381c36(0x251)]=function(_0x1d3b5d){const _0x48c9a9=a11_0x381c36,_0x194b6d={};_0x194b6d[_0x48c9a9(0x254)]=_0x48c9a9(0x265),_0x194b6d[_0x48c9a9(0x1f7)]='string',_0x194b6d[_0x48c9a9(0x269)]=_0x48c9a9(0x241);const _0x188553=_0x194b6d,_0x4251db={};_0x4251db[_0x48c9a9(0x236)]=_0x188553[_0x48c9a9(0x254)],_0x4251db['type']=_0x188553[_0x48c9a9(0x1f7)];const _0x5e6587={};return _0x5e6587['grid-id']=_0x4251db,_0x1d3b5d[_0x48c9a9(0x27f)](HELP_HEADER_MESSAGE['delete'])[_0x48c9a9(0x283)](HELP_FOOTER_MESSAGE)[_0x48c9a9(0x243)](_0x5e6587)[_0x48c9a9(0x241)](_0x188553[_0x48c9a9(0x269)])['argv'];},exports[a11_0x381c36(0x276)]=async function(_0x3acada){const _0x3aaa3e=a11_0x381c36,_0xcac239={'qArWw':_0x3aaa3e(0x281),'TZUFg':_0x3aaa3e(0x265),'AYPDo':_0x3aaa3e(0x20e),'EjItS':_0x3aaa3e(0x241),'dGMth':function(_0x211143,_0x4990e9){return _0x211143!==_0x4990e9;},'UUfga':_0x3aaa3e(0x23e),'waFXo':_0x3aaa3e(0x20a),'dsyEW':function(_0x11615e){return _0x11615e();},'kPpkZ':function(_0x35f7c2){return _0x35f7c2();},'MActH':function(_0x110122,_0x93938a){return _0x110122!==_0x93938a;},'lDMdi':_0x3aaa3e(0x277),'ArRrE':_0x3aaa3e(0x22e),'TYyRo':function(_0x415792,_0x31e619,_0x1e3588,_0x4b8302,_0x1f849c,_0x28c821,_0x2cf6e4){return _0x415792(_0x31e619,_0x1e3588,_0x4b8302,_0x1f849c,_0x28c821,_0x2cf6e4);},'FwDJv':_0x3aaa3e(0x272),'BjwQc':_0x3aaa3e(0x224),'FxvYp':function(_0x54d341,_0x59993b){return _0x54d341===_0x59993b;},'yIshf':_0x3aaa3e(0x26b),'eDhFJ':function(_0x2fe0bc,_0x714ced,_0x3b51ba,_0x4bb1d2){return _0x2fe0bc(_0x714ced,_0x3b51ba,_0x4bb1d2);},'eDnup':_0x3aaa3e(0x1f0),'OmAAu':_0x3aaa3e(0x21c),'oQiaR':_0x3aaa3e(0x206),'sFyWf':function(_0x3fa1a1,_0x57951e){return _0x3fa1a1(_0x57951e);},'raojb':function(_0x2e40ce,_0xcc7e7a){return _0x2e40ce===_0xcc7e7a;},'woVZA':function(_0x606cbd,_0x343123){return _0x606cbd===_0x343123;},'waIDr':_0x3aaa3e(0x23a),'xIJFl':_0x3aaa3e(0x213),'cFuZt':_0x3aaa3e(0x214),'uKvBo':function(_0x3d4842,_0x11d2a5,_0x3eb797,_0x41db55,_0x5c7a3d,_0x5be976,_0x481d1f){return _0x3d4842(_0x11d2a5,_0x3eb797,_0x41db55,_0x5c7a3d,_0x5be976,_0x481d1f);},'Symsx':_0x3aaa3e(0x23f),'UtUpy':function(_0x3b1d44,_0x505448){return _0x3b1d44!==_0x505448;},'YrSPu':_0x3aaa3e(0x220),'LVrWD':_0x3aaa3e(0x22c),'nzwWv':function(_0x544d50,_0x2fd630,_0xd0581a,_0x258656,_0x50fd41){return _0x544d50(_0x2fd630,_0xd0581a,_0x258656,_0x50fd41);},'HlMtj':function(_0x3ff6cb,_0x32a121){return _0x3ff6cb!==_0x32a121;},'DsLME':'bJcHy','mJjcd':_0x3aaa3e(0x232),'AOSMA':function(_0x4830e9,_0x4bb44c){return _0x4830e9!==_0x4bb44c;},'vAkcT':_0x3aaa3e(0x238),'iBiyV':_0x3aaa3e(0x21f),'eAAPe':function(_0x38bd94,_0x2beb2a,_0x5c4123,_0x5cd587){return _0x38bd94(_0x2beb2a,_0x5c4123,_0x5cd587);},'tblBa':function(_0x55f8b3){return _0x55f8b3();},'jVqnJ':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','EqzKg':'VPFhV','NPdqQ':_0x3aaa3e(0x264),'HEXNm':_0x3aaa3e(0x275),'NEUQd':function(_0x39366d,_0x5b2b4c,_0x50c3ae,_0x4b20ac,_0x32edf6,_0x555f12){return _0x39366d(_0x5b2b4c,_0x50c3ae,_0x4b20ac,_0x32edf6,_0x555f12);},'JwAYk':_0x3aaa3e(0x258),'tzXtt':function(_0x13caea,_0xd4cfc1,_0xf2860){return _0x13caea(_0xd4cfc1,_0xf2860);},'bDsKp':function(_0xb0c1ef,_0x25ba18,_0xdda22d){return _0xb0c1ef(_0x25ba18,_0xdda22d);},'xdhCI':function(_0x584430,_0x471b93){return _0x584430!==_0x471b93;},'fFWYS':function(_0x197266,_0x47f549){return _0x197266===_0x47f549;},'bCxBi':function(_0x21910d,_0x561d77,_0x38f082,_0x5e9e0e,_0x3f3425,_0xb07973,_0x2db645){return _0x21910d(_0x561d77,_0x38f082,_0x5e9e0e,_0x3f3425,_0xb07973,_0x2db645);},'sQHEY':_0x3aaa3e(0x235),'skNEz':function(_0x292870,_0x1e5361,_0x5dc462,_0x562223,_0x235b8c,_0x100ca3,_0x4fd33c){return _0x292870(_0x1e5361,_0x5dc462,_0x562223,_0x235b8c,_0x100ca3,_0x4fd33c);},'kIZYf':_0x3aaa3e(0x26c),'qGdrB':function(_0x7416e9,_0x242884,_0x5845ec,_0x4b040e,_0x4d1e3b,_0xa40dc4,_0x58c577){return _0x7416e9(_0x242884,_0x5845ec,_0x4b040e,_0x4d1e3b,_0xa40dc4,_0x58c577);},'qhWFs':_0x3aaa3e(0x223),'vaqSH':_0x3aaa3e(0x22b)};try{global_registry[_0x3aaa3e(0x25e)]=_0xcac239[_0x3aaa3e(0x25f)](uuidv4);!fs[_0x3aaa3e(0x24e)](_0xcac239['kPpkZ'](getCredentialsPath))&&(_0xcac239[_0x3aaa3e(0x1f6)](_0xcac239[_0x3aaa3e(0x1fe)],_0xcac239[_0x3aaa3e(0x1fe)])?(_0x4a111e['warn']('Namespace:\x20'+_0x106ece+_0x3aaa3e(0x256)),_0x4b4060=![]):(console[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x271)]),await _0xcac239[_0x3aaa3e(0x222)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x27c)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)));_0xcac239['TYyRo'](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['INFO'],null,null,_0x3acada);!_0x3acada[_0x3aaa3e(0x233)]&&(_0xcac239['FxvYp'](_0xcac239[_0x3aaa3e(0x1fc)],_0xcac239[_0x3aaa3e(0x1fc)])?(console[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x218)]),process['exit'](0x1)):_0x55421d=_0x3aaa3e(0x217)+_0x28302c['name']+_0x3aaa3e(0x1f5)+_0x3b55d2['id']+_0x3aaa3e(0x284)+_0x20fefc['clusterName']+_0x3aaa3e(0x204)+_0x3997b5['clusterId']+_0x3aaa3e(0x25c));const _0x563ada=JSON[_0x3aaa3e(0x279)](fs[_0x3aaa3e(0x21a)](_0xcac239[_0x3aaa3e(0x24b)](getCredentialsPath))),[_0x44fc4c,_0x2af920]=await _0xcac239[_0x3aaa3e(0x239)](getGridDetails,_0x563ada['Browserstack']['username'],_0x563ada[_0x3aaa3e(0x1f0)][_0x3aaa3e(0x1f1)],_0x3acada[_0x3aaa3e(0x233)]);if(_0x2af920){const _0x3b2139=_0x2af920['info'];let _0x29526c=_0x3aaa3e(0x217)+_0x3b2139[_0x3aaa3e(0x26e)]+'\x22\x20and\x20ID\x20'+_0x3b2139['id']+_0x3aaa3e(0x25c),_0x237ce8;_0x2af920[_0x3aaa3e(0x203)]&&_0xcac239[_0x3aaa3e(0x25a)](_0x2af920[_0x3aaa3e(0x252)],_0xcac239[_0x3aaa3e(0x207)])&&(_0xcac239[_0x3aaa3e(0x227)](_0xcac239[_0x3aaa3e(0x273)],_0xcac239['oQiaR'])?_0x29526c=_0x3aaa3e(0x217)+_0x3b2139['name']+_0x3aaa3e(0x1f5)+_0x3b2139['id']+_0x3aaa3e(0x284)+_0x3b2139['clusterName']+_0x3aaa3e(0x204)+_0x3b2139[_0x3aaa3e(0x253)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x34c9d3['info'](_0x3aaa3e(0x26d)),_0x35aaf1['exit'](0x0)));_0x237ce8=await _0xcac239['sFyWf'](inputConfirmation,_0x29526c);(_0xcac239['FxvYp'](_0x237ce8,undefined)||_0xcac239['raojb'](_0x237ce8,null)||!(_0xcac239['FxvYp'](_0x237ce8[_0x3aaa3e(0x23d)](),'y')||_0xcac239[_0x3aaa3e(0x257)](_0x237ce8[_0x3aaa3e(0x23d)](),'n')))&&(_0xcac239[_0x3aaa3e(0x227)](_0xcac239[_0x3aaa3e(0x260)],_0xcac239[_0x3aaa3e(0x249)])?(console['error'](_0xcac239[_0x3aaa3e(0x216)]),await _0xcac239[_0x3aaa3e(0x250)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239['Symsx'],null,_0x3acada),process['exit'](0x1)):_0x2eea9f[_0x3aaa3e(0x285)](_0x3aaa3e(0x24a)+_0x556f19+_0x3aaa3e(0x24c)));_0xcac239[_0x3aaa3e(0x257)](_0x237ce8[_0x3aaa3e(0x23d)](),'n')&&(_0xcac239['UtUpy'](_0xcac239['YrSPu'],_0xcac239['LVrWD'])?process['exit'](0x0):_0x28736['warn'](_0x3aaa3e(0x20d)+_0x335154[_0x3aaa3e(0x237)]+_0x3aaa3e(0x259)));global_registry[_0x3aaa3e(0x1fa)]=_0x3b2139[_0x3aaa3e(0x201)];const _0x4b6dd2=_0x3b2139[_0x3aaa3e(0x244)],_0x48fe11=await _0xcac239[_0x3aaa3e(0x20b)](getCloudProviderObject,_0x4b6dd2,_0x3b2139[_0x3aaa3e(0x237)],_0x3b2139['name'],_0x3acada),_0x3f8da0=_0x563ada[_0x3aaa3e(0x244)];if(_0xcac239[_0x3aaa3e(0x257)](_0x3f8da0[_0x4b6dd2],undefined)){if(_0xcac239[_0x3aaa3e(0x266)](_0xcac239[_0x3aaa3e(0x21b)],_0xcac239[_0x3aaa3e(0x21b)]))_0x353e3c[_0x3aaa3e(0x274)](0x0);else{logger[_0x3aaa3e(0x285)](_0xcac239['mJjcd']);_0xcac239['FxvYp'](_0x563ada['cloudProvider'],undefined)&&(_0xcac239[_0x3aaa3e(0x1f3)](_0xcac239[_0x3aaa3e(0x282)],_0xcac239['iBiyV'])?_0x563ada[_0x3aaa3e(0x244)]={}:(_0x13b317[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x218)]),_0x1cd3ae['exit'](0x1)));_0x563ada[_0x3aaa3e(0x244)][_0x4b6dd2]={};const _0x249f01=await _0xcac239[_0x3aaa3e(0x200)](inputCloudProviderKeys,_0x4b6dd2,_0x563ada,_0x48fe11);fs[_0x3aaa3e(0x208)](_0xcac239[_0x3aaa3e(0x21d)](getCredentialsPath),JSON[_0x3aaa3e(0x1f8)](_0x249f01)),logger['debug'](_0xcac239['jVqnJ']);}}else _0xcac239['dGMth'](_0xcac239['EqzKg'],_0xcac239['NPdqQ'])?(logger[_0x3aaa3e(0x285)](_0xcac239[_0x3aaa3e(0x1fb)]),await _0x48fe11['fetchLocalCreds'](_0x3f8da0)):_0x2e69d1[_0x3aaa3e(0x244)]={};_0x48fe11[_0x3aaa3e(0x270)]();const _0x4957ce=_0xcac239[_0x3aaa3e(0x22d)](kebabCase,_0x3b2139['name']),[_0xae2b25,_0x190728,_0x5ef813,_0x3933dd,_0x293d11,_0x4887fa]=await _0xcac239['sFyWf'](createK8sClient,_0x48fe11);let _0x4d8cf8=!![];const _0x23feb4={};_0x23feb4[_0x3aaa3e(0x26e)]=_0x4957ce,await _0xae2b25[_0x3aaa3e(0x226)](_0x23feb4)[_0x3aaa3e(0x209)](_0x2b3716=>{const _0x5e710b=_0x3aaa3e,_0x14fe5a={};_0x14fe5a[_0x5e710b(0x268)]=_0xcac239[_0x5e710b(0x229)],_0x14fe5a[_0x5e710b(0x27b)]=_0xcac239[_0x5e710b(0x26a)],_0x14fe5a[_0x5e710b(0x21e)]=_0xcac239[_0x5e710b(0x248)];const _0x32f7bc=_0x14fe5a;if(_0xcac239[_0x5e710b(0x227)](_0xcac239[_0x5e710b(0x246)],_0xcac239['waFXo']))logger[_0x5e710b(0x285)](_0x5e710b(0x24a)+_0x4957ce+_0x5e710b(0x24c));else{const _0x428d60={};_0x428d60[_0x5e710b(0x236)]=_0x32f7bc[_0x5e710b(0x268)],_0x428d60['type']=_0x32f7bc[_0x5e710b(0x27b)];const _0xa27580={};return _0xa27580['grid-id']=_0x428d60,_0xd9745f[_0x5e710b(0x27f)](_0x5ef9d9['delete'])[_0x5e710b(0x283)](_0x1508fc)[_0x5e710b(0x243)](_0xa27580)[_0x5e710b(0x241)](_0x32f7bc[_0x5e710b(0x21e)])['argv'];}})['catch'](_0x2f091f=>{const _0x245110=_0x3aaa3e;logger[_0x245110(0x23b)]('Namespace:\x20'+_0x4957ce+_0x245110(0x256)),_0x4d8cf8=![];});if(_0x4d8cf8){await _0xcac239['NEUQd'](removeGridComponents,_0xae2b25,_0x190728,_0x5ef813,_0x3933dd,_0x4957ce);if(_0x2af920['onlyGridInCluster']){const _0x4ae782=await _0x48fe11['isBrowserstackCluster']();_0x4ae782?await _0x48fe11['deleteCluster'](_0xae2b25,_0x3b2139['region']):logger[_0x3aaa3e(0x23b)](_0x3aaa3e(0x20d)+_0x3b2139['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}const _0x340f81=_0x3aaa3e(0x24d)+AG_API_URL+_0x3aaa3e(0x1f4)+_0x3acada[_0x3aaa3e(0x233)],_0x459de1={'method':_0xcac239[_0x3aaa3e(0x262)],'headers':_0xcac239['tzXtt'](getAuthHeader,_0x563ada[_0x3aaa3e(0x1f0)]['username'],_0x563ada[_0x3aaa3e(0x1f0)]['password']),'throwHttpErrors':![]},_0x6fe5e8=await _0xcac239[_0x3aaa3e(0x278)](got,_0x340f81,_0x459de1);_0xcac239[_0x3aaa3e(0x1f3)](_0x6fe5e8,null)&&_0xcac239[_0x3aaa3e(0x231)](_0x6fe5e8,undefined)&&_0xcac239[_0x3aaa3e(0x219)](_0x6fe5e8['statusCode'],0xc8)&&(logger[_0x3aaa3e(0x285)](_0x3aaa3e(0x26d)),process[_0x3aaa3e(0x274)](0x0)),logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x242)+_0x6fe5e8['body']),await _0xcac239[_0x3aaa3e(0x1f2)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x230)],_0x44fc4c,_0x3acada),process[_0x3aaa3e(0x274)](0x1);}_0xcac239[_0x3aaa3e(0x219)](_0x44fc4c[_0x3aaa3e(0x20f)],0x191)&&(logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x24f)),await _0xcac239[_0x3aaa3e(0x255)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x212)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)),_0xcac239['FxvYp'](_0x44fc4c[_0x3aaa3e(0x20f)],0x190)&&(logger[_0x3aaa3e(0x211)](JSON[_0x3aaa3e(0x279)](_0x44fc4c['body'])['message']),await _0xcac239[_0x3aaa3e(0x1fd)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['ERROR'],_0xcac239[_0x3aaa3e(0x261)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)),logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x20c)+JSON[_0x3aaa3e(0x1f8)](_0x44fc4c)),await _0xcac239[_0x3aaa3e(0x1fd)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['ERROR'],_0xcac239['sQHEY'],_0x44fc4c,_0x3acada),process[_0x3aaa3e(0x274)](0x1);}catch(_0x9cd0e4){logger['error'](_0x3aaa3e(0x1f9)+_0x9cd0e4['stack']),await _0xcac239[_0x3aaa3e(0x255)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x25b)],_0x9cd0e4,_0x3acada),process['exit'](0x1);}};
|
|
1
|
+
const a11_0x507545=a11_0x510e;(function(_0x4c3f1a,_0x29d9a9){const _0x10f218=a11_0x510e,_0x1c8cd8=_0x4c3f1a();while(!![]){try{const _0x1b7d46=parseInt(_0x10f218(0x20c))/0x1*(-parseInt(_0x10f218(0x1d0))/0x2)+-parseInt(_0x10f218(0x1e7))/0x3*(-parseInt(_0x10f218(0x20e))/0x4)+parseInt(_0x10f218(0x213))/0x5+-parseInt(_0x10f218(0x216))/0x6*(parseInt(_0x10f218(0x19e))/0x7)+-parseInt(_0x10f218(0x1a9))/0x8+parseInt(_0x10f218(0x19c))/0x9+parseInt(_0x10f218(0x20d))/0xa;if(_0x1b7d46===_0x29d9a9)break;else _0x1c8cd8['push'](_0x1c8cd8['shift']());}catch(_0x352671){_0x1c8cd8['push'](_0x1c8cd8['shift']());}}}(a11_0x2027,0x96d2a));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x507545(0x1cc)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a11_0x507545(0x1bb)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x507545(0x195)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x507545(0x1d4)),{createK8sClient}=require(a11_0x507545(0x1e0)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x507545(0x1ce));function a11_0x510e(_0x3ed09e,_0x3d89a4){const _0x2027e0=a11_0x2027();return a11_0x510e=function(_0x510e86,_0x5ca0e8){_0x510e86=_0x510e86-0x18c;let _0x2db5d8=_0x2027e0[_0x510e86];return _0x2db5d8;},a11_0x510e(_0x3ed09e,_0x3d89a4);}exports[a11_0x507545(0x1c4)]=a11_0x507545(0x1df),exports[a11_0x507545(0x1d7)]='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x5db090){const _0x48bf07=a11_0x507545,_0x140e08={};_0x140e08[_0x48bf07(0x1af)]=_0x48bf07(0x1a0),_0x140e08[_0x48bf07(0x204)]='string',_0x140e08[_0x48bf07(0x206)]=_0x48bf07(0x1ab);const _0xbdfc1f=_0x140e08,_0x146c58={};_0x146c58[_0x48bf07(0x1a8)]=_0xbdfc1f[_0x48bf07(0x1af)],_0x146c58[_0x48bf07(0x217)]=_0xbdfc1f[_0x48bf07(0x204)];const _0x38a59c={};return _0x38a59c['grid-id']=_0x146c58,_0x5db090['usage'](HELP_HEADER_MESSAGE[_0x48bf07(0x21b)])[_0x48bf07(0x1d2)](HELP_FOOTER_MESSAGE)[_0x48bf07(0x1cd)](_0x38a59c)[_0x48bf07(0x1ab)](_0xbdfc1f[_0x48bf07(0x206)])[_0x48bf07(0x192)];},exports['handler']=async function(_0x316e25){const _0x21c483=a11_0x507545,_0x2ca60a={'BtbOg':_0x21c483(0x1a0),'FCPIY':_0x21c483(0x21f),'Cirzk':_0x21c483(0x1ab),'vYsMv':_0x21c483(0x1a1),'boSWp':function(_0x594b65,_0x2efbf2){return _0x594b65!==_0x2efbf2;},'PSITd':_0x21c483(0x1e5),'BMBjl':function(_0x23a0bc){return _0x23a0bc();},'eQIdN':function(_0x2e3e51,_0x5f7e22){return _0x2e3e51===_0x5f7e22;},'SFhdi':_0x21c483(0x1d9),'nzqQr':_0x21c483(0x18d),'uaaLb':_0x21c483(0x21c),'Tefmh':function(_0x507ac9,_0x5429f7,_0x5a8488,_0x24b4ee,_0xfb94a3,_0x200411,_0x31afba){return _0x507ac9(_0x5429f7,_0x5a8488,_0x24b4ee,_0xfb94a3,_0x200411,_0x31afba);},'OWGey':_0x21c483(0x1f0),'gzjUy':_0x21c483(0x198),'rTDtL':_0x21c483(0x208),'xwBAz':function(_0x419521){return _0x419521();},'EaMsW':function(_0x3aa517,_0x5671c8,_0x579238,_0x5c9721){return _0x3aa517(_0x5671c8,_0x579238,_0x5c9721);},'igVWW':_0x21c483(0x1fa),'omFRO':function(_0x3177c9,_0x2bd938){return _0x3177c9!==_0x2bd938;},'iPQuX':'YWUnG','qzzxu':function(_0x4a2d3b,_0x1e23f7){return _0x4a2d3b(_0x1e23f7);},'tChnB':_0x21c483(0x190),'OAeBU':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','pbDxZ':function(_0x192d50,_0x3bf1b5,_0x1e0907,_0x2ed1f7,_0x4191c9,_0x54771d,_0x5d3faa){return _0x192d50(_0x3bf1b5,_0x1e0907,_0x2ed1f7,_0x4191c9,_0x54771d,_0x5d3faa);},'kVQWw':'invalid-input','AiZpO':function(_0x3fd8c5,_0x5b73bd){return _0x3fd8c5===_0x5b73bd;},'jIANz':function(_0x3735b5,_0x44da1b){return _0x3735b5!==_0x44da1b;},'ZtvDb':_0x21c483(0x200),'QQmaj':function(_0x27c3a3,_0x561d72,_0x4c051b,_0x312eb9,_0x2aedcd){return _0x27c3a3(_0x561d72,_0x4c051b,_0x312eb9,_0x2aedcd);},'mcLfk':_0x21c483(0x1bc),'qTCRf':_0x21c483(0x1a2),'HTOEw':_0x21c483(0x1dd),'lTzzP':function(_0x23dbde,_0x3fd560){return _0x23dbde===_0x3fd560;},'xAHnK':_0x21c483(0x1e6),'hvZuU':function(_0x31eb0d,_0x35724b,_0x44763f,_0x12a493){return _0x31eb0d(_0x35724b,_0x44763f,_0x12a493);},'tHQzs':_0x21c483(0x1c7),'FojtX':function(_0x38f5c0,_0xb89dbb){return _0x38f5c0===_0xb89dbb;},'TyXdB':_0x21c483(0x1f8),'tSGLl':_0x21c483(0x211),'MjFYq':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','EudRr':function(_0x5e7aa9,_0x10936d){return _0x5e7aa9(_0x10936d);},'ofzkj':function(_0x17d8ae,_0x2e598a,_0x273fea,_0x1314d4,_0x3c8716,_0x2b0181){return _0x17d8ae(_0x2e598a,_0x273fea,_0x1314d4,_0x3c8716,_0x2b0181);},'aStUL':_0x21c483(0x1ff),'tVCZz':function(_0x4c8337,_0x531616,_0x179fe8){return _0x4c8337(_0x531616,_0x179fe8);},'jGROG':function(_0x859358,_0x2b6484,_0x5d93e2){return _0x859358(_0x2b6484,_0x5d93e2);},'ETBYc':'server-error','jfmFh':function(_0x375c61,_0x4f2f99){return _0x375c61===_0x4f2f99;},'qEkpM':_0x21c483(0x1c2),'PfNeI':function(_0x12eb94,_0x107146){return _0x12eb94===_0x107146;},'DnxFM':_0x21c483(0x197),'KjsiT':function(_0x513e76,_0x8fce39,_0x1a434a,_0x50910c,_0x36809f,_0x1488cc,_0x1cfe1f){return _0x513e76(_0x8fce39,_0x1a434a,_0x50910c,_0x36809f,_0x1488cc,_0x1cfe1f);},'aXiKq':function(_0x47ee13,_0x55b7ca,_0x467571,_0x1f8aad,_0x1535c7,_0x1a7ca9,_0x33ae4f){return _0x47ee13(_0x55b7ca,_0x467571,_0x1f8aad,_0x1535c7,_0x1a7ca9,_0x33ae4f);},'iCSNn':_0x21c483(0x193)};try{global_registry[_0x21c483(0x1ef)]=_0x2ca60a[_0x21c483(0x191)](uuidv4);!fs['existsSync'](_0x2ca60a[_0x21c483(0x191)](getCredentialsPath))&&(_0x2ca60a[_0x21c483(0x1e2)](_0x2ca60a['SFhdi'],_0x2ca60a[_0x21c483(0x194)])?(_0x210e50[_0x21c483(0x1e4)](_0x21c483(0x1d1)),_0x40393d[_0x21c483(0x19f)](0x0)):(console['error'](_0x2ca60a[_0x21c483(0x1fc)]),await _0x2ca60a[_0x21c483(0x19a)](sendInstrumentationEvent,_0x316e25,_0x2ca60a[_0x21c483(0x1f7)],messageTypes['ERROR'],_0x2ca60a['gzjUy'],null,_0x316e25),process[_0x21c483(0x19f)](0x1)));_0x2ca60a[_0x21c483(0x19a)](sendInstrumentationEvent,_0x316e25,_0x2ca60a[_0x21c483(0x1f7)],messageTypes[_0x21c483(0x1ec)],null,null,_0x316e25);if(!_0x316e25['gridId']){if(_0x2ca60a[_0x21c483(0x205)](_0x2ca60a[_0x21c483(0x1a5)],_0x2ca60a[_0x21c483(0x1a5)])){const _0x381db0={};_0x381db0[_0x21c483(0x1a8)]=_0x2ca60a[_0x21c483(0x1d6)],_0x381db0[_0x21c483(0x217)]=_0x2ca60a[_0x21c483(0x1a4)];const _0xbac8e9={};return _0xbac8e9[_0x21c483(0x1be)]=_0x381db0,_0x41bc56[_0x21c483(0x1e3)](_0x4b7bbc[_0x21c483(0x21b)])[_0x21c483(0x1d2)](_0x1fca16)[_0x21c483(0x1cd)](_0xbac8e9)[_0x21c483(0x1ab)](_0x2ca60a[_0x21c483(0x209)])[_0x21c483(0x192)];}else console[_0x21c483(0x1db)](_0x2ca60a['vYsMv']),process[_0x21c483(0x19f)](0x1);}const _0x9f3b27=JSON['parse'](fs[_0x21c483(0x1f6)](_0x2ca60a[_0x21c483(0x1b3)](getCredentialsPath))),[_0x519064,_0x3f5a1d]=await _0x2ca60a[_0x21c483(0x1d5)](getGridDetails,_0x9f3b27['Browserstack']['username'],_0x9f3b27['Browserstack'][_0x21c483(0x1c3)],_0x316e25[_0x21c483(0x1c6)]);if(_0x3f5a1d){const _0x40192d=_0x3f5a1d[_0x21c483(0x1e4)];let _0x20af48=_0x21c483(0x1ca)+_0x40192d[_0x21c483(0x1f3)]+_0x21c483(0x1a3)+_0x40192d['id']+_0x21c483(0x1aa),_0x274ee6;_0x3f5a1d[_0x21c483(0x1ba)]&&_0x2ca60a[_0x21c483(0x1e2)](_0x3f5a1d[_0x21c483(0x1c9)],_0x2ca60a['igVWW'])&&(_0x2ca60a[_0x21c483(0x18e)](_0x2ca60a[_0x21c483(0x1f4)],_0x2ca60a[_0x21c483(0x1f4)])?_0x49b946[_0x21c483(0x1e4)](_0x21c483(0x1cb)+_0x574497+_0x21c483(0x1b1)):_0x20af48=_0x21c483(0x1ca)+_0x40192d['name']+_0x21c483(0x1a3)+_0x40192d['id']+_0x21c483(0x1f9)+_0x40192d[_0x21c483(0x1bf)]+_0x21c483(0x20a)+_0x40192d[_0x21c483(0x21e)]+_0x21c483(0x1aa));_0x274ee6=await _0x2ca60a['qzzxu'](inputConfirmation,_0x20af48);(_0x2ca60a[_0x21c483(0x1e2)](_0x274ee6,undefined)||_0x2ca60a[_0x21c483(0x1e2)](_0x274ee6,null)||!(_0x2ca60a[_0x21c483(0x1e2)](_0x274ee6[_0x21c483(0x1ac)](),'y')||_0x2ca60a[_0x21c483(0x1e2)](_0x274ee6[_0x21c483(0x1ac)](),'n')))&&(_0x2ca60a[_0x21c483(0x18e)](_0x2ca60a['tChnB'],_0x2ca60a[_0x21c483(0x1ea)])?_0x32d932=_0x21c483(0x1ca)+_0x5e35ab['name']+_0x21c483(0x1a3)+_0x5afa05['id']+_0x21c483(0x1f9)+_0x470cbd[_0x21c483(0x1bf)]+_0x21c483(0x20a)+_0x249d3b[_0x21c483(0x21e)]+_0x21c483(0x1aa):(console[_0x21c483(0x1db)](_0x2ca60a['OAeBU']),await _0x2ca60a[_0x21c483(0x21d)](sendInstrumentationEvent,_0x316e25,_0x2ca60a[_0x21c483(0x1f7)],messageTypes[_0x21c483(0x1ad)],_0x2ca60a[_0x21c483(0x1fb)],null,_0x316e25),process['exit'](0x1)));_0x2ca60a[_0x21c483(0x1d3)](_0x274ee6[_0x21c483(0x1ac)](),'n')&&(_0x2ca60a['jIANz'](_0x2ca60a['ZtvDb'],_0x2ca60a[_0x21c483(0x1b7)])?(_0x41e00c[_0x21c483(0x1db)](_0x2ca60a[_0x21c483(0x1f1)]),_0x18cc85['exit'](0x1)):process[_0x21c483(0x19f)](0x0));global_registry[_0x21c483(0x1a6)]=_0x40192d[_0x21c483(0x196)];const _0x3fcc72=_0x40192d[_0x21c483(0x201)],_0xe4af0e=await _0x2ca60a[_0x21c483(0x1c5)](getCloudProviderObject,_0x3fcc72,_0x40192d[_0x21c483(0x1bf)],_0x40192d[_0x21c483(0x1f3)],_0x316e25),_0x5650c1=_0x9f3b27[_0x21c483(0x201)];if(_0x2ca60a[_0x21c483(0x1d3)](_0x5650c1[_0x3fcc72],undefined)){if(_0x2ca60a['jIANz'](_0x2ca60a[_0x21c483(0x1fd)],_0x2ca60a[_0x21c483(0x1bd)])){logger[_0x21c483(0x1e4)](_0x2ca60a[_0x21c483(0x199)]);_0x2ca60a[_0x21c483(0x1b9)](_0x9f3b27['cloudProvider'],undefined)&&(_0x2ca60a['eQIdN'](_0x2ca60a[_0x21c483(0x1de)],_0x2ca60a['xAHnK'])?_0x9f3b27[_0x21c483(0x201)]={}:_0x146db3[_0x21c483(0x21a)](_0x21c483(0x1b2)+_0x134e4b['clusterName']+_0x21c483(0x214)));_0x9f3b27[_0x21c483(0x201)][_0x3fcc72]={};const _0x263f9a=await _0x2ca60a[_0x21c483(0x1ed)](inputCloudProviderKeys,_0x3fcc72,_0x9f3b27,_0xe4af0e);fs[_0x21c483(0x220)](_0x2ca60a[_0x21c483(0x1b3)](getCredentialsPath),JSON[_0x21c483(0x1f5)](_0x263f9a)),logger['debug'](_0x2ca60a[_0x21c483(0x1c1)]);}else _0x2bf6d6[_0x21c483(0x19f)](0x0);}else _0x2ca60a['FojtX'](_0x2ca60a[_0x21c483(0x215)],_0x2ca60a[_0x21c483(0x1b8)])?(_0x2aa98f[_0x21c483(0x21a)](_0x21c483(0x1cb)+_0x467a83+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x16c818=![]):(logger['info'](_0x2ca60a[_0x21c483(0x20f)]),await _0xe4af0e[_0x21c483(0x1b5)](_0x5650c1));_0xe4af0e[_0x21c483(0x1da)]();const _0x59197b=_0x2ca60a[_0x21c483(0x1e8)](kebabCase,_0x40192d['name']),[_0x7fe757,_0x35685a,_0x61d9ff,_0xc4485e,_0x1dd924,_0x101404]=await _0x2ca60a[_0x21c483(0x18f)](createK8sClient,_0xe4af0e);let _0xf9943a=!![];const _0x12c382={};_0x12c382[_0x21c483(0x1f3)]=_0x59197b,await _0x7fe757['readNamespace'](_0x12c382)[_0x21c483(0x1a7)](_0x476fb4=>{const _0x31edf5=_0x21c483;_0x2ca60a[_0x31edf5(0x205)](_0x2ca60a[_0x31edf5(0x1dc)],_0x2ca60a[_0x31edf5(0x1dc)])?_0x7c2101['cloudProvider']={}:logger[_0x31edf5(0x1e4)](_0x31edf5(0x1cb)+_0x59197b+_0x31edf5(0x1b1));})[_0x21c483(0x1c8)](_0x2f4030=>{const _0x3e42c2=_0x21c483;logger['warn'](_0x3e42c2(0x1cb)+_0x59197b+_0x3e42c2(0x1eb)),_0xf9943a=![];});if(_0xf9943a){await _0x2ca60a['ofzkj'](removeGridComponents,_0x7fe757,_0x35685a,_0x61d9ff,_0xc4485e,_0x59197b);if(_0x3f5a1d['onlyGridInCluster']){const _0x242eda=await _0xe4af0e[_0x21c483(0x1b4)]();_0x242eda?await _0xe4af0e[_0x21c483(0x1d8)](_0x7fe757,_0x40192d[_0x21c483(0x196)]):logger['warn']('Cluster:\x20'+_0x40192d['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}const _0x510679=_0x21c483(0x19b)+AG_API_URL+'/packages/cli/grid/'+_0x316e25[_0x21c483(0x1c6)],_0xe5fc27={'method':_0x2ca60a['aStUL'],'headers':_0x2ca60a[_0x21c483(0x207)](getAuthHeader,_0x9f3b27[_0x21c483(0x1fa)][_0x21c483(0x1e9)],_0x9f3b27['Browserstack'][_0x21c483(0x1c3)]),'throwHttpErrors':![]},_0x1ade64=await _0x2ca60a['jGROG'](got,_0x510679,_0xe5fc27);_0x2ca60a[_0x21c483(0x1b6)](_0x1ade64,null)&&_0x2ca60a['omFRO'](_0x1ade64,undefined)&&_0x2ca60a[_0x21c483(0x1b0)](_0x1ade64['statusCode'],0xc8)&&(logger['info'](_0x21c483(0x1d1)),process[_0x21c483(0x19f)](0x0)),logger[_0x21c483(0x1db)](_0x21c483(0x20b)+_0x1ade64[_0x21c483(0x1ee)]),await _0x2ca60a[_0x21c483(0x19a)](sendInstrumentationEvent,_0x316e25,_0x2ca60a['OWGey'],messageTypes['ERROR'],_0x2ca60a[_0x21c483(0x203)],_0x519064,_0x316e25),process['exit'](0x1);}_0x2ca60a[_0x21c483(0x18c)](_0x519064[_0x21c483(0x202)],0x191)&&(logger['error'](_0x21c483(0x219)),await _0x2ca60a['Tefmh'](sendInstrumentationEvent,_0x316e25,_0x2ca60a[_0x21c483(0x1f7)],messageTypes[_0x21c483(0x1ad)],_0x2ca60a[_0x21c483(0x218)],null,_0x316e25),process[_0x21c483(0x19f)](0x1)),_0x2ca60a[_0x21c483(0x1c0)](_0x519064[_0x21c483(0x202)],0x190)&&(logger[_0x21c483(0x1db)](JSON[_0x21c483(0x19d)](_0x519064[_0x21c483(0x1ee)])[_0x21c483(0x212)]),await _0x2ca60a[_0x21c483(0x21d)](sendInstrumentationEvent,_0x316e25,_0x2ca60a['OWGey'],messageTypes[_0x21c483(0x1ad)],_0x2ca60a[_0x21c483(0x1fe)],null,_0x316e25),process[_0x21c483(0x19f)](0x1)),logger[_0x21c483(0x1db)](_0x21c483(0x1ae)+JSON[_0x21c483(0x1f5)](_0x519064)),await _0x2ca60a[_0x21c483(0x1cf)](sendInstrumentationEvent,_0x316e25,_0x2ca60a[_0x21c483(0x1f7)],messageTypes[_0x21c483(0x1ad)],_0x2ca60a[_0x21c483(0x203)],_0x519064,_0x316e25),process[_0x21c483(0x19f)](0x1);}catch(_0x3d928b){logger['error'](_0x21c483(0x210)+_0x3d928b[_0x21c483(0x1f2)]),await _0x2ca60a[_0x21c483(0x1e1)](sendInstrumentationEvent,_0x316e25,_0x2ca60a[_0x21c483(0x1f7)],messageTypes['ERROR'],_0x2ca60a['iCSNn'],_0x3d928b,_0x316e25),process[_0x21c483(0x19f)](0x1);}};function a11_0x2027(){const _0x584c8e=['xAHnK','grid','../../utils/createk8sClient','aXiKq','eQIdN','usage','info','VcbVM','GTlIZ','3mRgRnL','EudRr','username','tChnB','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','INFO','hvZuU','body','requestId','delete-grid-called','vYsMv','stack','name','iPQuX','stringify','readFileSync','OWGey','jyCGa','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Browserstack','kVQWw','uaaLb','mcLfk','DnxFM','DELETE','XWcyl','cloudProvider','statusCode','ETBYc','QcNxt','boSWp','aYBoL','tVCZz','SegDo','Cirzk','\x22\x20with\x20ID\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','5287WEibus','2651900bZXTsB','3237064YJouIW','MjFYq','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Mwipn','message','4427875SpyDWG','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','TyXdB','7530RogOtE','type','qEkpM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','warn','delete','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pbDxZ','clusterId','string','writeFileSync','jfmFh','MnLRH','omFRO','qzzxu','qWxby','BMBjl','argv','unknown-error','nzqQr','../../utils/instrumentationUtils','region','invalid-grid-id','init-not-called','HTOEw','Tefmh','https://','7510329Ewphwf','parse','1799OMRIOg','exit','Pass\x20the\x20ID\x20of\x20the\x20Grid','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','rFmdA','\x22\x20and\x20ID\x20','FCPIY','rTDtL','clusterRegion','then','description','5993792MjaDBn','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','help','toLowerCase','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Uysbp','FojtX','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Cluster:\x20','xwBAz','isBrowserstackCluster','fetchLocalCreds','jIANz','ZtvDb','tSGLl','lTzzP','onlyGridInCluster','../../config/logger','YfHya','qTCRf','grid-id','clusterName','PfNeI','tHQzs','unauthorised','password','command','QQmaj','gridId','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','catch','clusterSpawnedVia','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Namespace:\x20','uuid','options','../../utils/utilityMethods','KjsiT','418cmmjeV','Successfully\x20deleted\x20the\x20grid','epilogue','AiZpO','../../utils/userInput','EaMsW','BtbOg','desc','deleteCluster','DdkYj','configureIfNotConfigured','error','PSITd','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally'];a11_0x2027=function(){return _0x584c8e;};return a11_0x2027();}
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x2f28f8=a12_0x167b;function a12_0x167b(_0x1693cd,_0x210a9e){const _0x5525af=a12_0x5525();return a12_0x167b=function(_0x167bb6,_0x37ab6f){_0x167bb6=_0x167bb6-0xb4;let _0x512092=_0x5525af[_0x167bb6];return _0x512092;},a12_0x167b(_0x1693cd,_0x210a9e);}function a12_0x5525(){const _0x488429=['GHQlD','UvjQi','command','BROWSERSTACK_ACCESS_KEY','klaIl','bstack-accesskey','23434QgPbcJ','Ajfxd','86ipilir','handler','CyFVi','402mokXTD','statusCode','wrong-creds','mpEXU','existsSync','bstackAccesskey','GET','exit','requestId','debug','/automate/plan.json','fhWfn','argv','env','WnVKC','stack','uPBlw','hAQle','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','help','HPOTI','ukNJD','ERROR','../utils/utilityMethods','pHrJh','2303331tNEubH','mkdirSync','Jaowg','usage','uZMIG','https://','aArYs','gClfp','stringify','NBiVP','epilogue','BerCk','dNcXP','bstackUsername','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','username','parse','../config/constants','xcBlI','string','YOiCd','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','keVbk','dqGoA','CVDaY','wzQnV','init','description','gAYzQ','readFileSync','Browserstack','unknown-error','83170ETtdHT','ySKfB','pabqJ','1939iGAXHQ','utf-8','nYiLR','desc','../utils/instrumentationUtils','wrGiN','type','uyPQc','PIpuN','password','HQFRk','recommendCommands','84gxBAse','cBYGS','eAeIN','BROWSERSTACK_USERNAME','init-called','INFO','MGOxi','flPYk','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','csanJ','38755xrGOiK','1529726MLnVbx','2343584kLLinW','Zbats','zhiYx','RoBGa','kzctx','error','927uMOVTW','util','MvGNp','nLAwq','got','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','17120xJycye','bvbxZ','writeFileSync'];a12_0x5525=function(){return _0x488429;};return a12_0x5525();}(function(_0x14799c,_0x54ef4b){const _0x12c814=a12_0x167b,_0x1ac629=_0x14799c();while(!![]){try{const _0x57256b=-parseInt(_0x12c814(0xf3))/0x1*(parseInt(_0x12c814(0xf1))/0x2)+-parseInt(_0x12c814(0x10f))/0x3+parseInt(_0x12c814(0xdc))/0x4+-parseInt(_0x12c814(0xda))/0x5*(-parseInt(_0x12c814(0xf6))/0x6)+parseInt(_0x12c814(0xc4))/0x7*(-parseInt(_0x12c814(0xe8))/0x8)+parseInt(_0x12c814(0xe2))/0x9*(parseInt(_0x12c814(0xc1))/0xa)+-parseInt(_0x12c814(0xdb))/0xb*(-parseInt(_0x12c814(0xd0))/0xc);if(_0x57256b===_0x54ef4b)break;else _0x1ac629['push'](_0x1ac629['shift']());}catch(_0x3677c6){_0x1ac629['push'](_0x1ac629['shift']());}}}(a12_0x5525,0x8a743));const fs=require('fs'),util=require(a12_0x2f28f8(0xe3)),got=require(a12_0x2f28f8(0xe6)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x2f28f8(0x120)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2f28f8(0x10d)),{sendInstrumentationEvent}=require(a12_0x2f28f8(0xc8));exports[a12_0x2f28f8(0xed)]=a12_0x2f28f8(0xbb),exports[a12_0x2f28f8(0xc7)]=a12_0x2f28f8(0x11d),exports['builder']=function(_0x2de296){const _0x16e99b=a12_0x2f28f8,_0x20958d={};_0x20958d[_0x16e99b(0xb5)]=_0x16e99b(0xe7),_0x20958d[_0x16e99b(0x104)]=_0x16e99b(0xb4),_0x20958d[_0x16e99b(0x101)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x20958d[_0x16e99b(0xcc)]=_0x16e99b(0x109);const _0x2aadae=_0x20958d,_0x196fd1={};_0x196fd1[_0x16e99b(0xbc)]=_0x2aadae['YOiCd'],_0x196fd1[_0x16e99b(0xca)]=_0x2aadae[_0x16e99b(0x104)];const _0x5d77c5={};_0x5d77c5['description']=_0x2aadae['fhWfn'],_0x5d77c5[_0x16e99b(0xca)]=_0x2aadae['WnVKC'];const _0x3da6d0={};return _0x3da6d0['bstack-username']=_0x196fd1,_0x3da6d0['bstack-accesskey']=_0x5d77c5,_0x2de296[_0x16e99b(0x112)](HELP_HEADER_MESSAGE[_0x16e99b(0xbb)])[_0x16e99b(0x119)](HELP_FOOTER_MESSAGE)['options'](_0x3da6d0)[_0x16e99b(0xcf)]()['strict']()[_0x16e99b(0x109)](_0x2aadae[_0x16e99b(0xcc)])[_0x16e99b(0x102)];},exports[a12_0x2f28f8(0xf4)]=async function(_0xab7fa){const _0x398030=a12_0x2f28f8,_0x4d8cfc={'dkACb':_0x398030(0xe7),'kzctx':_0x398030(0xb4),'WlBZE':_0x398030(0x108),'mpEXU':_0x398030(0x109),'Jaowg':_0x398030(0xc5),'dqGoA':function(_0x3162e3){return _0x3162e3();},'HQFRk':function(_0x21224f,_0x2d0ab9,_0x4c53c8,_0x2793cf,_0x37ad89,_0x15c0f1,_0x5b6f09){return _0x21224f(_0x2d0ab9,_0x4c53c8,_0x2793cf,_0x37ad89,_0x15c0f1,_0x5b6f09);},'ukNJD':_0x398030(0xd4),'uPBlw':function(_0x15032d,_0x31aeb2){return _0x15032d!==_0x31aeb2;},'gAYzQ':_0x398030(0xc2),'GHQlD':_0x398030(0x107),'uZMIG':_0x398030(0xb7),'nYiLR':_0x398030(0xcb),'eAeIN':_0x398030(0xde),'wrGiN':function(_0x4aadc6,_0x3d9b0d){return _0x4aadc6===_0x3d9b0d;},'pHrJh':_0x398030(0xef),'CVDaY':function(_0xebdb7e,_0x765e35){return _0xebdb7e!==_0x765e35;},'bvbxZ':_0x398030(0xf5),'MvGNp':_0x398030(0xd8),'cBYGS':function(_0x58367c){return _0x58367c();},'HPOTI':_0x398030(0xfc),'BerCk':function(_0xe204cf,_0x5906f1,_0x1ef21d){return _0xe204cf(_0x5906f1,_0x1ef21d);},'MGOxi':_0x398030(0x118),'UvjQi':function(_0x2ac1ab,_0x5c81f3){return _0x2ac1ab!==_0x5c81f3;},'wzQnV':_0x398030(0xdd),'gClfp':_0x398030(0xdf),'xcBlI':function(_0x3ac7f1){return _0x3ac7f1();},'nLAwq':function(_0x344c4d,_0x2febc9){return _0x344c4d===_0x2febc9;},'flPYk':_0x398030(0x11b),'Ajfxd':_0x398030(0xb6),'pabqJ':function(_0x20a0bb,_0x1939eb,_0x1b7619,_0x3734f7,_0x14cd63,_0x545bd2,_0x400a39){return _0x20a0bb(_0x1939eb,_0x1b7619,_0x3734f7,_0x14cd63,_0x545bd2,_0x400a39);},'znVfd':_0x398030(0xf8),'csanJ':function(_0x4cb54b,_0x440c2b,_0x4f33b,_0x2208a0,_0x4127e0,_0x30b14f,_0x47fde4){return _0x4cb54b(_0x440c2b,_0x4f33b,_0x2208a0,_0x4127e0,_0x30b14f,_0x47fde4);},'aArYs':_0x398030(0xc0)};try{global_registry[_0x398030(0xfe)]=_0x4d8cfc[_0x398030(0xb8)](uuidv4),_0x4d8cfc[_0x398030(0xce)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes[_0x398030(0xd5)],null,null,_0xab7fa);const _0xdc83f7=_0x4d8cfc['dqGoA'](getDirForConfig);if(!fs['existsSync'](_0xdc83f7)){if(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xbd)],_0x4d8cfc['gAYzQ'])){const _0x4c5fc8={};_0x4c5fc8[_0x398030(0xbc)]=_0x4d8cfc['dkACb'],_0x4c5fc8['type']=_0x4d8cfc['kzctx'];const _0x21edd8={};_0x21edd8[_0x398030(0xbc)]=_0x4d8cfc['WlBZE'],_0x21edd8[_0x398030(0xca)]=_0x4d8cfc[_0x398030(0xe0)];const _0x2b83a8={};return _0x2b83a8['bstack-username']=_0x4c5fc8,_0x2b83a8[_0x398030(0xf0)]=_0x21edd8,_0x39ec2d['usage'](_0x297e9d[_0x398030(0xbb)])[_0x398030(0x119)](_0x5084bf)['options'](_0x2b83a8)[_0x398030(0xcf)]()['strict']()[_0x398030(0x109)](_0x4d8cfc[_0x398030(0xf9)])['argv'];}else fs[_0x398030(0x110)](_0xdc83f7);}let _0x120ee4,_0x12e394;process[_0x398030(0x103)]['BROWSERSTACK_USERNAME']&&(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xeb)],_0x4d8cfc[_0x398030(0xeb)])?_0x314874=_0x181f6d['bstackAccesskey']:_0x120ee4=process[_0x398030(0x103)][_0x398030(0xd3)]);process[_0x398030(0x103)][_0x398030(0xee)]&&(_0x4d8cfc['uPBlw'](_0x4d8cfc[_0x398030(0x113)],_0x4d8cfc[_0x398030(0xc6)])?_0x12e394=process[_0x398030(0x103)][_0x398030(0xee)]:_0x227566=!![]);_0xab7fa[_0x398030(0x11c)]&&(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xd2)],_0x4d8cfc['eAeIN'])?_0x4d9fb7=_0x6df7d2[_0x398030(0x103)][_0x398030(0xd3)]:_0x120ee4=_0xab7fa[_0x398030(0x11c)]);_0xab7fa[_0x398030(0xfb)]&&(_0x4d8cfc['wrGiN'](_0x4d8cfc[_0x398030(0x10e)],_0x4d8cfc['pHrJh'])?_0x12e394=_0xab7fa[_0x398030(0xfb)]:_0xa6f8c1[_0x398030(0x110)](_0x48cb8c));if(_0x4d8cfc[_0x398030(0xc9)](_0x120ee4,undefined)||_0x4d8cfc['wrGiN'](_0x12e394,undefined)){if(_0x4d8cfc['CVDaY'](_0x4d8cfc[_0x398030(0xe9)],_0x4d8cfc[_0x398030(0xe9)]))_0x45c583=_0x515a4c['parse'](_0x591100['readFileSync'](_0x2d02d8,_0x4d8cfc[_0x398030(0x111)]));else{logger[_0x398030(0xff)](_0x4d8cfc[_0x398030(0xe4)]);const [_0x367171,_0x436b25]=await _0x4d8cfc[_0x398030(0xd1)](inputBstackKeys);_0x120ee4=_0x367171,_0x12e394=_0x436b25;}}let _0x4be949=![];const _0xf5b051=_0x398030(0x114)+_0x120ee4+':'+_0x12e394+'@'+BS_API_URL+_0x398030(0x100),_0x92d5da={'method':_0x4d8cfc[_0x398030(0x10a)],'headers':_0x4d8cfc['BerCk'](getAuthHeader,_0x120ee4,_0x12e394),'throwHttpErrors':![]},_0x201ff=await _0x4d8cfc[_0x398030(0x11a)](got,_0xf5b051,_0x92d5da);_0x4d8cfc[_0x398030(0x106)](_0x201ff,null)&&_0x4d8cfc[_0x398030(0xb9)](_0x201ff,undefined)&&_0x4d8cfc['wrGiN'](_0x201ff[_0x398030(0xf7)],0xc8)&&(_0x4d8cfc[_0x398030(0xc9)](_0x4d8cfc[_0x398030(0xd6)],_0x4d8cfc[_0x398030(0xd6)])?_0x4be949=!![]:_0x5428ae=_0x349f9e[_0x398030(0x11c)]);if(_0x4be949){if(_0x4d8cfc[_0x398030(0xec)](_0x4d8cfc[_0x398030(0xba)],_0x4d8cfc[_0x398030(0x116)])){let _0x5e722={};const _0x4a2786=_0x4d8cfc[_0x398030(0x121)](getCredentialsPath);if(fs[_0x398030(0xfa)](_0x4a2786)){if(_0x4d8cfc[_0x398030(0xe5)](_0x4d8cfc[_0x398030(0xd7)],_0x4d8cfc[_0x398030(0xd7)]))_0x5e722=JSON['parse'](fs[_0x398030(0xbe)](_0x4a2786,_0x4d8cfc[_0x398030(0x111)]));else{let _0x4e7bdc={};const _0x19fe45=_0x4d8cfc['dqGoA'](_0x4f8bf0);_0x358bd3[_0x398030(0xfa)](_0x19fe45)&&(_0x4e7bdc=_0x2b7e7a[_0x398030(0x11f)](_0x3927a7[_0x398030(0xbe)](_0x19fe45,_0x4d8cfc[_0x398030(0x111)])));const _0x555b1c={};_0x555b1c['username']=_0xd12c65,_0x555b1c[_0x398030(0xcd)]=_0x157c89,_0x4e7bdc[_0x398030(0xbf)]=_0x555b1c,_0x97dc8e['writeFileSync'](_0x19fe45,_0x18626e[_0x398030(0x117)](_0x4e7bdc)),_0x566da0[_0x398030(0xfd)](0x0);}}const _0x110862={};_0x110862[_0x398030(0x11e)]=_0x120ee4,_0x110862[_0x398030(0xcd)]=_0x12e394,_0x5e722[_0x398030(0xbf)]=_0x110862,fs[_0x398030(0xea)](_0x4a2786,JSON[_0x398030(0x117)](_0x5e722)),process[_0x398030(0xfd)](0x0);}else _0x1722fe=_0x355960['env'][_0x398030(0xee)];}else logger[_0x398030(0xe1)](_0x4d8cfc[_0x398030(0xf2)]),await _0x4d8cfc[_0x398030(0xc3)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes['ERROR'],_0x4d8cfc['znVfd'],null,_0xab7fa),process[_0x398030(0xfd)](0x1);}catch(_0x58f730){logger[_0x398030(0xe1)](_0x58f730[_0x398030(0x105)]),await _0x4d8cfc[_0x398030(0xd9)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes[_0x398030(0x10c)],_0x4d8cfc[_0x398030(0x115)],_0x58f730,_0xab7fa),process['exit'](0x1);}};
|
|
1
|
+
const a12_0x332719=a12_0x4ecc;function a12_0x4ecc(_0x5aab6f,_0x6f782c){const _0x2b94e0=a12_0x2b94();return a12_0x4ecc=function(_0x4ecc62,_0xf80d31){_0x4ecc62=_0x4ecc62-0x93;let _0x46693c=_0x2b94e0[_0x4ecc62];return _0x46693c;},a12_0x4ecc(_0x5aab6f,_0x6f782c);}(function(_0x20fd09,_0x25e7d9){const _0x2ae813=a12_0x4ecc,_0x3dff49=_0x20fd09();while(!![]){try{const _0x44dd49=-parseInt(_0x2ae813(0x9e))/0x1+parseInt(_0x2ae813(0xef))/0x2*(-parseInt(_0x2ae813(0xe9))/0x3)+parseInt(_0x2ae813(0xc5))/0x4*(parseInt(_0x2ae813(0x96))/0x5)+-parseInt(_0x2ae813(0xbf))/0x6+-parseInt(_0x2ae813(0xaf))/0x7+-parseInt(_0x2ae813(0x99))/0x8+-parseInt(_0x2ae813(0xa0))/0x9*(-parseInt(_0x2ae813(0xd7))/0xa);if(_0x44dd49===_0x25e7d9)break;else _0x3dff49['push'](_0x3dff49['shift']());}catch(_0x4cd736){_0x3dff49['push'](_0x3dff49['shift']());}}}(a12_0x2b94,0x3bacc));const fs=require('fs'),util=require(a12_0x332719(0xb8)),got=require('got'),{v4:uuidv4}=require(a12_0x332719(0xc7)),{logger}=require(a12_0x332719(0xf2)),{inputBstackKeys}=require(a12_0x332719(0xb7)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x332719(0x101)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a12_0x2b94(){const _0x5ae4d1=['init','../utils/utilityMethods','epilogue','wuMFf','WItNB','help','VytVM','BQMFL','init-called','685MhqCpv','nyLWh','xyTDL','821800jKtRpQ','stack','INFO','env','bstack-accesskey','110981ePnhoH','ONsVz','8240715bxRZja','RZtgn','RuIOz','oJzAH','nwQLH','dXmnm','BROWSERSTACK_ACCESS_KEY','WFydM','readFileSync','IOZhq','statusCode','/automate/plan.json','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','requestId','exit','2053163dIkAxZ','UmSiY','utf-8','argv','CtCEs','strict','options','XaTDd','../utils/userInput','util','oBAsV','FzRzl','type','bstackUsername','eVEWU','usage','696996EuJzRw','MFmMF','fWIkO','debug','gPmWH','bstackAccesskey','11644sQMFnb','bstack-username','uuid','FuVTY','yxEPK','string','FreBz','wMUYc','nTyzH','lpHPY','existsSync','ZNuyM','ftRTY','command','pCorB','XcsDR','builder','handler','10vyNGDh','rDnOM','KeRVV','desc','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','BROWSERSTACK_USERNAME','nZlGx','password','QtZTJ','username','SlFvU','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','https://','unknown-error','mkdirSync','WzWak','ZWYxI','Browserstack','1340499kCZeHw','recommendCommands','description','FaJFR','duWXZ','epxLG','2fluzbi','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','IpmFY','../config/logger','parse','error','yBLkq','ERROR','XJLAo','GET','wrong-creds','YLyqT','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','mTKuf','sLcCl','stringify','iaGVN'];a12_0x2b94=function(){return _0x5ae4d1;};return a12_0x2b94();}exports[a12_0x332719(0xd2)]=a12_0x332719(0x100),exports[a12_0x332719(0xda)]=a12_0x332719(0xf0),exports[a12_0x332719(0xd5)]=function(_0xae2a60){const _0x31c5bf=a12_0x332719,_0x196a5c={};_0x196a5c['oJzAH']=_0x31c5bf(0xe2),_0x196a5c['rDnOM']=_0x31c5bf(0xca),_0x196a5c[_0x31c5bf(0xf7)]=_0x31c5bf(0xfb),_0x196a5c[_0x31c5bf(0xc0)]='help';const _0x3efc7d=_0x196a5c,_0x1ac3d1={};_0x1ac3d1[_0x31c5bf(0xeb)]=_0x3efc7d[_0x31c5bf(0xa3)],_0x1ac3d1['type']=_0x3efc7d['rDnOM'];const _0x3f3dc1={};_0x3f3dc1[_0x31c5bf(0xeb)]=_0x3efc7d[_0x31c5bf(0xf7)],_0x3f3dc1[_0x31c5bf(0xbb)]=_0x3efc7d[_0x31c5bf(0xd8)];const _0x15b586={};return _0x15b586[_0x31c5bf(0xc6)]=_0x1ac3d1,_0x15b586[_0x31c5bf(0x9d)]=_0x3f3dc1,_0xae2a60[_0x31c5bf(0xbe)](HELP_HEADER_MESSAGE[_0x31c5bf(0x100)])[_0x31c5bf(0x102)](HELP_FOOTER_MESSAGE)[_0x31c5bf(0xb5)](_0x15b586)[_0x31c5bf(0xea)]()[_0x31c5bf(0xb4)]()['help'](_0x3efc7d[_0x31c5bf(0xc0)])[_0x31c5bf(0xb2)];},exports[a12_0x332719(0xd6)]=async function(_0x493fdc){const _0x5e2176=a12_0x332719,_0x4e4364={'iaGVN':_0x5e2176(0xe2),'gPmWH':_0x5e2176(0xca),'eVEWU':_0x5e2176(0xfb),'KeRVV':'help','FaJFR':_0x5e2176(0xb1),'wuMFf':function(_0x2df272){return _0x2df272();},'YLyqT':function(_0x6a2374){return _0x6a2374();},'ketYY':function(_0x21c950,_0x27ef7f,_0x2ef76d,_0x4186fc,_0x44a4d3,_0x5b3ff4,_0x4d36df){return _0x21c950(_0x27ef7f,_0x2ef76d,_0x4186fc,_0x44a4d3,_0x5b3ff4,_0x4d36df);},'FuVTY':_0x5e2176(0x95),'SPkDH':function(_0x588573){return _0x588573();},'nwQLH':function(_0x510e4d,_0x36edae){return _0x510e4d!==_0x36edae;},'lpHPY':_0x5e2176(0xb3),'VytVM':_0x5e2176(0xa5),'pCorB':function(_0x5a5084,_0x5294ae){return _0x5a5084===_0x5294ae;},'SlFvU':_0x5e2176(0xd1),'FreBz':_0x5e2176(0xe6),'mTKuf':_0x5e2176(0x94),'Nszxa':function(_0x204282,_0x4f89fe){return _0x204282===_0x4f89fe;},'nyLWh':_0x5e2176(0xa1),'xyTDL':_0x5e2176(0xa7),'IOZhq':_0x5e2176(0xcc),'XaTDd':function(_0x6f320e,_0x20a518){return _0x6f320e===_0x20a518;},'oBAsV':function(_0x168949,_0xb40a95){return _0x168949===_0xb40a95;},'MwOTX':function(_0x56374e,_0x295ea9){return _0x56374e===_0x295ea9;},'QtZTJ':_0x5e2176(0xf5),'UmSiY':_0x5e2176(0xac),'WItNB':_0x5e2176(0xf8),'LSiuC':function(_0x5977a1,_0x544ad0,_0x53d359){return _0x5977a1(_0x544ad0,_0x53d359);},'yxEPK':function(_0x46c1e1,_0x48c8cb){return _0x46c1e1===_0x48c8cb;},'ZNuyM':_0x5e2176(0xe7),'YtFay':_0x5e2176(0xf1),'fWIkO':function(_0xa36ea7,_0x1a6274){return _0xa36ea7===_0x1a6274;},'sLcCl':_0x5e2176(0xd4),'nZlGx':function(_0x24ae29,_0xd9fd){return _0x24ae29!==_0xd9fd;},'ONsVz':_0x5e2176(0xee),'RuIOz':_0x5e2176(0xdb),'GhBRW':function(_0x318dd8,_0x5ded42,_0x39bd78,_0x363832,_0x1fdc10,_0xac1b66,_0x112f1d){return _0x318dd8(_0x5ded42,_0x39bd78,_0x363832,_0x1fdc10,_0xac1b66,_0x112f1d);},'duWXZ':_0x5e2176(0xf9),'nTyzH':function(_0x5e40c9,_0x3c2bea,_0x10c651,_0x77a920,_0x207574,_0x591609,_0x2e9614){return _0x5e40c9(_0x3c2bea,_0x10c651,_0x77a920,_0x207574,_0x591609,_0x2e9614);},'FzRzl':_0x5e2176(0xe4)};try{global_registry[_0x5e2176(0xad)]=_0x4e4364[_0x5e2176(0xfa)](uuidv4),_0x4e4364['ketYY'](sendInstrumentationEvent,_0x493fdc,_0x4e4364[_0x5e2176(0xc8)],messageTypes[_0x5e2176(0x9b)],null,null,_0x493fdc);const _0x25d817=_0x4e4364['SPkDH'](getDirForConfig);!fs[_0x5e2176(0xcf)](_0x25d817)&&(_0x4e4364[_0x5e2176(0xa4)](_0x4e4364[_0x5e2176(0xce)],_0x4e4364[_0x5e2176(0x93)])?fs[_0x5e2176(0xe5)](_0x25d817):_0x5c8c38=!![]);let _0x47375d,_0x5f5c33;if(process['env'][_0x5e2176(0xdc)]){if(_0x4e4364[_0x5e2176(0xd3)](_0x4e4364['SlFvU'],_0x4e4364[_0x5e2176(0xe1)]))_0x47375d=process[_0x5e2176(0x9c)][_0x5e2176(0xdc)];else{const _0x3ba529={};_0x3ba529[_0x5e2176(0xeb)]=_0x4e4364[_0x5e2176(0xff)],_0x3ba529[_0x5e2176(0xbb)]=_0x4e4364[_0x5e2176(0xc3)];const _0xb732cd={};_0xb732cd[_0x5e2176(0xeb)]=_0x4e4364[_0x5e2176(0xbd)],_0xb732cd[_0x5e2176(0xbb)]=_0x4e4364[_0x5e2176(0xc3)];const _0xb30b7a={};return _0xb30b7a[_0x5e2176(0xc6)]=_0x3ba529,_0xb30b7a[_0x5e2176(0x9d)]=_0xb732cd,_0x79c028[_0x5e2176(0xbe)](_0x193f17[_0x5e2176(0x100)])[_0x5e2176(0x102)](_0x5add28)[_0x5e2176(0xb5)](_0xb30b7a)[_0x5e2176(0xea)]()['strict']()[_0x5e2176(0x105)](_0x4e4364[_0x5e2176(0xd9)])[_0x5e2176(0xb2)];}}process['env'][_0x5e2176(0xa6)]&&(_0x4e4364[_0x5e2176(0xd3)](_0x4e4364[_0x5e2176(0xcb)],_0x4e4364[_0x5e2176(0xfc)])?_0x5babab=_0x3333c6['env'][_0x5e2176(0xdc)]:_0x5f5c33=process[_0x5e2176(0x9c)][_0x5e2176(0xa6)]);_0x493fdc[_0x5e2176(0xbc)]&&(_0x4e4364['Nszxa'](_0x4e4364[_0x5e2176(0x97)],_0x4e4364[_0x5e2176(0x97)])?_0x47375d=_0x493fdc[_0x5e2176(0xbc)]:_0x37460b=_0x2c709d[_0x5e2176(0x9c)]['BROWSERSTACK_ACCESS_KEY']);_0x493fdc[_0x5e2176(0xc4)]&&(_0x4e4364['Nszxa'](_0x4e4364[_0x5e2176(0x98)],_0x4e4364[_0x5e2176(0xa9)])?_0x580be=_0x52924f[_0x5e2176(0xbc)]:_0x5f5c33=_0x493fdc[_0x5e2176(0xc4)]);if(_0x4e4364[_0x5e2176(0xb6)](_0x47375d,undefined)||_0x4e4364[_0x5e2176(0xb9)](_0x5f5c33,undefined)){if(_0x4e4364['MwOTX'](_0x4e4364[_0x5e2176(0xdf)],_0x4e4364['QtZTJ'])){logger[_0x5e2176(0xc2)](_0x4e4364[_0x5e2176(0xb0)]);const [_0x29be4d,_0x5c8e20]=await _0x4e4364[_0x5e2176(0x103)](inputBstackKeys);_0x47375d=_0x29be4d,_0x5f5c33=_0x5c8e20;}else _0x2275c2=_0x2b1156[_0x5e2176(0xf3)](_0x4a842a[_0x5e2176(0xa8)](_0x554ed5,_0x4e4364[_0x5e2176(0xec)]));}let _0xa2c813=![];const _0x495ebc=_0x5e2176(0xe3)+_0x47375d+':'+_0x5f5c33+'@'+BS_API_URL+_0x5e2176(0xab),_0x36d223={'method':_0x4e4364[_0x5e2176(0x104)],'headers':_0x4e4364['LSiuC'](getAuthHeader,_0x47375d,_0x5f5c33),'throwHttpErrors':![]},_0x278106=await _0x4e4364['LSiuC'](got,_0x495ebc,_0x36d223);_0x4e4364['nwQLH'](_0x278106,null)&&_0x4e4364['nwQLH'](_0x278106,undefined)&&_0x4e4364[_0x5e2176(0xc9)](_0x278106[_0x5e2176(0xaa)],0xc8)&&(_0x4e4364['Nszxa'](_0x4e4364[_0x5e2176(0xd0)],_0x4e4364['YtFay'])?_0x3cab6f=_0x3a3574[_0x5e2176(0xc4)]:_0xa2c813=!![]);if(_0xa2c813){if(_0x4e4364[_0x5e2176(0xc1)](_0x4e4364[_0x5e2176(0xfd)],_0x4e4364[_0x5e2176(0xfd)])){let _0x238ea1={};const _0x4c4687=_0x4e4364['wuMFf'](getCredentialsPath);if(fs[_0x5e2176(0xcf)](_0x4c4687)){if(_0x4e4364[_0x5e2176(0xdd)](_0x4e4364[_0x5e2176(0x9f)],_0x4e4364['ONsVz'])){let _0x19d326={};const _0x3c764e=_0x4e4364[_0x5e2176(0x103)](_0x30ea7e);_0x76a2cc[_0x5e2176(0xcf)](_0x3c764e)&&(_0x19d326=_0x39dba1[_0x5e2176(0xf3)](_0x38fd85[_0x5e2176(0xa8)](_0x3c764e,_0x4e4364[_0x5e2176(0xec)])));const _0x45c076={};_0x45c076[_0x5e2176(0xe0)]=_0x4703fc,_0x45c076[_0x5e2176(0xde)]=_0x1b7ed0,_0x19d326['Browserstack']=_0x45c076,_0xad2d34['writeFileSync'](_0x3c764e,_0x48d226[_0x5e2176(0xfe)](_0x19d326)),_0x33ccf3[_0x5e2176(0xae)](0x0);}else _0x238ea1=JSON['parse'](fs[_0x5e2176(0xa8)](_0x4c4687,_0x4e4364[_0x5e2176(0xec)]));}const _0xb70f91={};_0xb70f91[_0x5e2176(0xe0)]=_0x47375d,_0xb70f91[_0x5e2176(0xde)]=_0x5f5c33,_0x238ea1[_0x5e2176(0xe8)]=_0xb70f91,fs['writeFileSync'](_0x4c4687,JSON[_0x5e2176(0xfe)](_0x238ea1)),process[_0x5e2176(0xae)](0x0);}else _0x349cec[_0x5e2176(0xe5)](_0x4668d1);}else logger[_0x5e2176(0xf4)](_0x4e4364[_0x5e2176(0xa2)]),await _0x4e4364['GhBRW'](sendInstrumentationEvent,_0x493fdc,_0x4e4364['FuVTY'],messageTypes['ERROR'],_0x4e4364[_0x5e2176(0xed)],null,_0x493fdc),process[_0x5e2176(0xae)](0x1);}catch(_0x17ee21){logger[_0x5e2176(0xf4)](_0x17ee21[_0x5e2176(0x9a)]),await _0x4e4364[_0x5e2176(0xcd)](sendInstrumentationEvent,_0x493fdc,_0x4e4364[_0x5e2176(0xc8)],messageTypes[_0x5e2176(0xf6)],_0x4e4364[_0x5e2176(0xba)],_0x17ee21,_0x493fdc),process[_0x5e2176(0xae)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x2c67fb=a13_0x4ebc;(function(_0x61d1e8,_0xc85416){const _0x597010=a13_0x4ebc,_0x3b23b1=_0x61d1e8();while(!![]){try{const _0x3226ca=-parseInt(_0x597010(0x101))/0x1*(parseInt(_0x597010(0x103))/0x2)+-parseInt(_0x597010(0x107))/0x3*(-parseInt(_0x597010(0x10d))/0x4)+-parseInt(_0x597010(0x108))/0x5+-parseInt(_0x597010(0x10c))/0x6+-parseInt(_0x597010(0x102))/0x7+parseInt(_0x597010(0xfb))/0x8+-parseInt(_0x597010(0x10a))/0x9*(-parseInt(_0x597010(0x105))/0xa);if(_0x3226ca===_0xc85416)break;else _0x3b23b1['push'](_0x3b23b1['shift']());}catch(_0x59a22f){_0x3b23b1['push'](_0x3b23b1['shift']());}}}(a13_0x3bf9,0x6d5cc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x4ebc(_0x11c5a6,_0x11d40e){const _0x3bf93d=a13_0x3bf9();return a13_0x4ebc=function(_0x4ebcf9,_0x50c628){_0x4ebcf9=_0x4ebcf9-0xfa;let _0x474ae2=_0x3bf93d[_0x4ebcf9];return _0x474ae2;},a13_0x4ebc(_0x11c5a6,_0x11d40e);}function a13_0x3bf9(){const _0xd8a21b=['130wYOymu','desc','655773bwYRMy','1512200zLpSyN','CyGjJ','1065816GKbYQo','command','1112190hQjQPU','8OcJVEe','root','commandDir','LEgeg','630872gtqPPY','list','builder','help','usage','List\x20down\x20the\x20Grid\x20resources.','93001HVaCIJ','2630544FxIuyj','16rryjOr','demandCommand'];a13_0x3bf9=function(){return _0xd8a21b;};return a13_0x3bf9();}exports[a13_0x2c67fb(0x10b)]=a13_0x2c67fb(0xfc),exports[a13_0x2c67fb(0x106)]=a13_0x2c67fb(0x100),exports[a13_0x2c67fb(0xfd)]=function(_0x2fb24a){const _0x21458a=a13_0x2c67fb,_0xd2047a={};_0xd2047a[_0x21458a(0xfa)]='list_commands',_0xd2047a['CyGjJ']=_0x21458a(0xfe);const _0x4310ec=_0xd2047a;return _0x2fb24a[_0x21458a(0x10f)](_0x4310ec[_0x21458a(0xfa)])[_0x21458a(0x104)]()[_0x21458a(0xff)](HELP_HEADER_MESSAGE[_0x21458a(0xfc)][_0x21458a(0x10e)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()[_0x21458a(0xfe)](_0x4310ec[_0x21458a(0x109)]);},exports['handler']=function(_0x3f6d85){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a14_0x54dabd=a14_0x3334;function a14_0x3334(_0x9c0557,_0x262ec5){const _0x29cfe4=a14_0x29cf();return a14_0x3334=function(_0x333490,_0x3e0793){_0x333490=_0x333490-0x1c5;let _0xbaf251=_0x29cfe4[_0x333490];return _0xbaf251;},a14_0x3334(_0x9c0557,_0x262ec5);}function a14_0x29cf(){const _0xb1b3f1=['error','password','/packages/cli/get-grid-profiles','16552knfzuH','5VBgfxS','450009ypEpsz','156756BmPMpA','epilogue','ghABW','description','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','forEach','48225OZTcQy','log','cloud-provider','got','unauthorised','argv','exit','table','VUiYj','HUesF','MdRJC','list','builder','handler','Browserstack','statusCode','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','RJgaf','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kPFvt','name','push','existsSync','ERROR','VRGWr','cloudProvider','xniLT','bstackUsername','gWmLd','bstackAccesskey','35sDgQNV','help','server-error','2003658mZRIHt','gridProfile','https://','veyCA','BWhQz','region','Failed\x20to\x20list\x20resources!\x20Error:\x20','body','username','requestId','EyrCi','rTANk','YvsCw','867032yPSaMn','NZYIu','2LGNAeS','stack','command','all-grid-profiles','grid-profiles','init-not-called','type','options','unknown-error','parse','kvvwf','list-grid-profiles-called','2256730PhByRQ','QyPII','GET','bVFHM','dQvtH','concurrency','QROOW'];a14_0x29cf=function(){return _0xb1b3f1;};return a14_0x29cf();}(function(_0x4308a4,_0x4e32fd){const _0x5711b2=a14_0x3334,_0x9a796f=_0x4308a4();while(!![]){try{const _0xc19ea4=-parseInt(_0x5711b2(0x1e0))/0x1*(-parseInt(_0x5711b2(0x1f9))/0x2)+-parseInt(_0x5711b2(0x1ff))/0x3+-parseInt(_0x5711b2(0x1de))/0x4*(-parseInt(_0x5711b2(0x1f7))/0x5)+-parseInt(_0x5711b2(0x1d1))/0x6+parseInt(_0x5711b2(0x1ce))/0x7*(-parseInt(_0x5711b2(0x1f6))/0x8)+parseInt(_0x5711b2(0x1f8))/0x9+parseInt(_0x5711b2(0x1ec))/0xa;if(_0xc19ea4===_0x4e32fd)break;else _0x9a796f['push'](_0x9a796f['shift']());}catch(_0x1d1e1a){_0x9a796f['push'](_0x9a796f['shift']());}}}(a14_0x29cf,0x46839));const fs=require('fs'),got=require(a14_0x54dabd(0x202)),{table}=require(a14_0x54dabd(0x206)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x54dabd(0x1e2)]=a14_0x54dabd(0x1e4),exports['desc']=a14_0x54dabd(0x1fd),exports[a14_0x54dabd(0x20b)]=function(_0x3eb621){const _0x3a6fbe=a14_0x54dabd,_0x3830c6={};_0x3830c6['rTANk']=_0x3a6fbe(0x20f),_0x3830c6[_0x3a6fbe(0x1dd)]='boolean',_0x3830c6[_0x3a6fbe(0x208)]=_0x3a6fbe(0x1cf);const _0x40b044=_0x3830c6,_0x2af7f4={};_0x2af7f4[_0x3a6fbe(0x1fc)]=_0x40b044[_0x3a6fbe(0x1dc)],_0x2af7f4[_0x3a6fbe(0x1e6)]=_0x40b044[_0x3a6fbe(0x1dd)];const _0x4164ce={};return _0x4164ce[_0x3a6fbe(0x1e3)]=_0x2af7f4,_0x3eb621['usage'](HELP_HEADER_MESSAGE[_0x3a6fbe(0x20a)][_0x3a6fbe(0x1d2)])[_0x3a6fbe(0x1fa)](HELP_FOOTER_MESSAGE)[_0x3a6fbe(0x1e7)](_0x4164ce)[_0x3a6fbe(0x1cf)](_0x40b044[_0x3a6fbe(0x208)])[_0x3a6fbe(0x204)];},exports[a14_0x54dabd(0x20c)]=async function(_0x267197){const _0x4bb68f=a14_0x54dabd,_0x3f20f8={'MdRJC':function(_0x27d5c5){return _0x27d5c5();},'QROOW':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gWmLd':function(_0xaf2e7b,_0x3f11da,_0x24967d,_0x3f8556,_0x3a385b,_0x23f9a4,_0x3c5746){return _0xaf2e7b(_0x3f11da,_0x24967d,_0x3f8556,_0x3a385b,_0x23f9a4,_0x3c5746);},'VUiYj':_0x4bb68f(0x1eb),'xniLT':_0x4bb68f(0x1e5),'VRGWr':_0x4bb68f(0x1ee),'bVFHM':function(_0x2f45d0,_0x583268,_0x4fc9a6){return _0x2f45d0(_0x583268,_0x4fc9a6);},'LEEIS':function(_0x156b48,_0x3d5cb7){return _0x156b48!==_0x3d5cb7;},'ZECRh':function(_0x15082d,_0x5d714e){return _0x15082d!==_0x5d714e;},'RJgaf':function(_0x545b66,_0x15f908){return _0x545b66===_0x15f908;},'NdSTU':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','BWhQz':'grid-profile-name','dQvtH':_0x4bb68f(0x201),'veyCA':_0x4bb68f(0x1d6),'kvvwf':_0x4bb68f(0x1f1),'lqTPL':function(_0x4dcc69,_0x11bc06){return _0x4dcc69(_0x11bc06);},'NZYIu':function(_0x29a560,_0x2e8144,_0x1e48b2,_0x4d8d56,_0x1eab43,_0x249805,_0x32c249){return _0x29a560(_0x2e8144,_0x1e48b2,_0x4d8d56,_0x1eab43,_0x249805,_0x32c249);},'QyPII':_0x4bb68f(0x203),'kPFvt':function(_0x43e6ed,_0x227fde,_0x410935,_0x377ecc,_0x5bd085,_0x59307a,_0x590d3f){return _0x43e6ed(_0x227fde,_0x410935,_0x377ecc,_0x5bd085,_0x59307a,_0x590d3f);},'ghABW':_0x4bb68f(0x1d0),'cqJjt':function(_0xd47d3f,_0x3ca59f,_0x46a6d3,_0x3c5e88,_0xf8c73d,_0x8c302e,_0x2328b8){return _0xd47d3f(_0x3ca59f,_0x46a6d3,_0x3c5e88,_0xf8c73d,_0x8c302e,_0x2328b8);},'EyrCi':_0x4bb68f(0x1e8)};try{global_registry[_0x4bb68f(0x1da)]=_0x3f20f8[_0x4bb68f(0x209)](uuidv4);let _0x1d5ecf=_0x4bb68f(0x1d3)+AG_API_URL+_0x4bb68f(0x1f5);_0x267197['allGridProfiles']&&(_0x1d5ecf=_0x4bb68f(0x1d3)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x4bb68f(0x1c6)](_0x3f20f8['MdRJC'](getCredentialsPath))&&(console[_0x4bb68f(0x1f3)](_0x3f20f8[_0x4bb68f(0x1f2)]),await _0x3f20f8[_0x4bb68f(0x1cc)](sendInstrumentationEvent,_0x267197,_0x3f20f8[_0x4bb68f(0x207)],messageTypes[_0x4bb68f(0x1c7)],_0x3f20f8[_0x4bb68f(0x1ca)],null,_0x267197),process[_0x4bb68f(0x205)](0x1));const _0x503716=JSON[_0x4bb68f(0x1e9)](fs['readFileSync'](_0x3f20f8[_0x4bb68f(0x209)](getCredentialsPath))),_0x225b4d={'method':_0x3f20f8[_0x4bb68f(0x1c8)],'headers':_0x3f20f8[_0x4bb68f(0x1ef)](getAuthHeader,_0x503716[_0x4bb68f(0x20d)][_0x4bb68f(0x1d9)],_0x503716[_0x4bb68f(0x20d)][_0x4bb68f(0x1f4)]),'throwHttpErrors':![]};global_registry[_0x4bb68f(0x1cb)]=_0x503716['Browserstack'][_0x4bb68f(0x1d9)],global_registry[_0x4bb68f(0x1cd)]=_0x503716[_0x4bb68f(0x20d)][_0x4bb68f(0x1f4)],_0x3f20f8[_0x4bb68f(0x1cc)](sendInstrumentationEvent,_0x267197,_0x3f20f8[_0x4bb68f(0x207)],messageTypes['INFO'],null,null,_0x267197);const _0x2c0b0a=await _0x3f20f8['bVFHM'](got,_0x1d5ecf,_0x225b4d);if(_0x3f20f8['LEEIS'](_0x2c0b0a,null)&&_0x3f20f8['ZECRh'](_0x2c0b0a,undefined)&&_0x3f20f8[_0x4bb68f(0x210)](_0x2c0b0a[_0x4bb68f(0x20e)],0xc8)){const _0x43cfeb=JSON[_0x4bb68f(0x1e9)](_0x2c0b0a[_0x4bb68f(0x1d8)]);console[_0x4bb68f(0x200)](_0x3f20f8['NdSTU']);const _0x5a1487=[];_0x5a1487[_0x4bb68f(0x1c5)]([_0x3f20f8[_0x4bb68f(0x1d5)],_0x3f20f8[_0x4bb68f(0x1f0)],_0x3f20f8[_0x4bb68f(0x1d4)],_0x3f20f8[_0x4bb68f(0x1ea)]]),_0x43cfeb[_0x4bb68f(0x1fe)](_0x24d9a4=>{const _0x3629da=_0x4bb68f;_0x5a1487[_0x3629da(0x1c5)]([_0x24d9a4[_0x3629da(0x213)],_0x24d9a4[_0x3629da(0x1c9)],_0x24d9a4[_0x3629da(0x1d6)],_0x24d9a4[_0x3629da(0x1f1)]]);}),console[_0x4bb68f(0x200)](_0x3f20f8['lqTPL'](table,_0x5a1487)),process[_0x4bb68f(0x205)](0x0);}_0x3f20f8[_0x4bb68f(0x210)](_0x2c0b0a[_0x4bb68f(0x20e)],0x191)&&(console[_0x4bb68f(0x1f3)](_0x4bb68f(0x211)),await _0x3f20f8[_0x4bb68f(0x1df)](sendInstrumentationEvent,_0x267197,_0x3f20f8[_0x4bb68f(0x207)],messageTypes[_0x4bb68f(0x1c7)],_0x3f20f8[_0x4bb68f(0x1ed)],null,_0x267197),process[_0x4bb68f(0x205)](0x1)),console[_0x4bb68f(0x1f3)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2c0b0a)),await _0x3f20f8[_0x4bb68f(0x212)](sendInstrumentationEvent,_0x267197,_0x3f20f8['VUiYj'],messageTypes[_0x4bb68f(0x1c7)],_0x3f20f8[_0x4bb68f(0x1fb)],_0x2c0b0a,_0x267197),process['exit'](0x1);}catch(_0x543f4b){console['error'](_0x4bb68f(0x1d7)+_0x543f4b[_0x4bb68f(0x1e1)]),await _0x3f20f8['cqJjt'](sendInstrumentationEvent,_0x267197,_0x3f20f8[_0x4bb68f(0x207)],messageTypes[_0x4bb68f(0x1c7)],_0x3f20f8[_0x4bb68f(0x1db)],_0x543f4b,_0x267197),process[_0x4bb68f(0x205)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x568e33=a15_0x137c;function a15_0x137c(_0x462319,_0x559cb8){const _0x4f446e=a15_0x4f44();return a15_0x137c=function(_0x137c20,_0x34bf54){_0x137c20=_0x137c20-0x126;let _0x423852=_0x4f446e[_0x137c20];return _0x423852;},a15_0x137c(_0x462319,_0x559cb8);}function a15_0x4f44(){const _0x36ad96=['forEach','stringify','running','allGrids','uuid','name','error','type','\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','table','ONmoJ','MZVgi','1598362BEvdzb','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Browserstack','nMGvR','laDfo','grid','162816XpxUuE','list','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','/packages/cli/get-all-grids','unknown-error','wVshL','existsSync','kbrsd','XUdWq','../../utils/instrumentationUtils','queued','bstackAccesskey','2344347PYQCOr','unauthorised','14105970DMcQQp','32uDBKty','OCZwj','username','231lJJDRO','lZhbo','help','requestId','init-not-called','FgFIb','INFO','Bifhc','statusCode','oBpao','duIMT','builder','boolean','../../config/constants','1qSranL','exit','161pytzbz','grids','UTJZq','push','rOYce','status','stack','4728513HFmZIC','gfBNC','FleMh','ERROR','description','got','vxZcX','log','GET','readFileSync','212vVEngB','epilogue','OjKIb','cluster-name','lFSWh','grid-id','4745vYWTSp','yngqc','desc','wDhHe','https://','1012668WCfxYm','JqAft','clusterName','/packages/cli/get-grids','khqKq','argv','parse','bstackUsername'];a15_0x4f44=function(){return _0x36ad96;};return a15_0x4f44();}(function(_0x20c355,_0x2eca55){const _0x25dcc7=a15_0x137c,_0x39585a=_0x20c355();while(!![]){try{const _0x37661c=-parseInt(_0x25dcc7(0x172))/0x1*(parseInt(_0x25dcc7(0x14c))/0x2)+parseInt(_0x25dcc7(0x17b))/0x3+-parseInt(_0x25dcc7(0x12b))/0x4*(-parseInt(_0x25dcc7(0x131))/0x5)+-parseInt(_0x25dcc7(0x152))/0x6*(parseInt(_0x25dcc7(0x174))/0x7)+-parseInt(_0x25dcc7(0x161))/0x8*(-parseInt(_0x25dcc7(0x15e))/0x9)+parseInt(_0x25dcc7(0x160))/0xa+parseInt(_0x25dcc7(0x164))/0xb*(-parseInt(_0x25dcc7(0x136))/0xc);if(_0x37661c===_0x2eca55)break;else _0x39585a['push'](_0x39585a['shift']());}catch(_0x38b086){_0x39585a['push'](_0x39585a['shift']());}}}(a15_0x4f44,0xd7b3f));const fs=require('fs'),got=require(a15_0x568e33(0x126)),{table}=require(a15_0x568e33(0x149)),{v4:uuidv4}=require(a15_0x568e33(0x142)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x568e33(0x171)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x568e33(0x15b));exports['command']=a15_0x568e33(0x175),exports[a15_0x568e33(0x133)]=a15_0x568e33(0x14d),exports[a15_0x568e33(0x16f)]=function(_0x8627e){const _0x269ed8=a15_0x568e33,_0x170a5e={};_0x170a5e[_0x269ed8(0x16d)]=_0x269ed8(0x154),_0x170a5e[_0x269ed8(0x12d)]=_0x269ed8(0x170),_0x170a5e['VDcUe']=_0x269ed8(0x166);const _0x276045=_0x170a5e,_0x4787dd={};_0x4787dd[_0x269ed8(0x17f)]=_0x276045[_0x269ed8(0x16d)],_0x4787dd[_0x269ed8(0x145)]=_0x276045[_0x269ed8(0x12d)];const _0x566bab={};return _0x566bab['all-grids']=_0x4787dd,_0x8627e['usage'](HELP_HEADER_MESSAGE[_0x269ed8(0x153)][_0x269ed8(0x151)])[_0x269ed8(0x12c)](HELP_FOOTER_MESSAGE)['options'](_0x566bab)[_0x269ed8(0x166)](_0x276045['VDcUe'])[_0x269ed8(0x13b)];},exports['handler']=async function(_0x4d6017){const _0x41f004=a15_0x568e33,_0x1400c0={'OCZwj':function(_0x24bbdd){return _0x24bbdd();},'rOYce':function(_0x18047c){return _0x18047c();},'lFSWh':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ONmoJ':function(_0x462c86,_0x5c251d,_0x5f0f08,_0x53894b,_0x358005,_0x2ad64f,_0x32620b){return _0x462c86(_0x5c251d,_0x5f0f08,_0x53894b,_0x358005,_0x2ad64f,_0x32620b);},'Bifhc':'list-grids-called','IfiPp':_0x41f004(0x168),'lZhbo':_0x41f004(0x129),'vxZcX':function(_0x514fde,_0x2b4057,_0x530cfe){return _0x514fde(_0x2b4057,_0x530cfe);},'nMGvR':function(_0x62bddf,_0x35d3b5,_0x1f159b){return _0x62bddf(_0x35d3b5,_0x1f159b);},'FleMh':function(_0x27d986,_0x93fa0){return _0x27d986!==_0x93fa0;},'kbrsd':function(_0x558447,_0x1727ce){return _0x558447===_0x1727ce;},'duIMT':_0x41f004(0x146),'gfBNC':_0x41f004(0x130),'UTJZq':'grid-name','SJDeL':_0x41f004(0x179),'FgFIb':_0x41f004(0x140),'wDhHe':_0x41f004(0x15c),'khqKq':_0x41f004(0x12e),'wVshL':function(_0x46a3ea,_0x1555fd){return _0x46a3ea(_0x1555fd);},'JqAft':function(_0x1c59d2,_0x523468){return _0x1c59d2===_0x523468;},'yeUoX':_0x41f004(0x15f),'laDfo':function(_0x15ae24,_0x3fc097,_0x43bb0a,_0x270b5d,_0xb54ce,_0x16aaed,_0xbbbdf5){return _0x15ae24(_0x3fc097,_0x43bb0a,_0x270b5d,_0xb54ce,_0x16aaed,_0xbbbdf5);},'XUdWq':'server-error','MZVgi':function(_0x7e3eb2,_0x311ef5,_0x2542be,_0x28ff80,_0x20e51b,_0x1bbf75,_0x40344a){return _0x7e3eb2(_0x311ef5,_0x2542be,_0x28ff80,_0x20e51b,_0x1bbf75,_0x40344a);},'yngqc':_0x41f004(0x156)};try{global_registry[_0x41f004(0x167)]=_0x1400c0[_0x41f004(0x162)](uuidv4);!fs[_0x41f004(0x158)](_0x1400c0[_0x41f004(0x178)](getCredentialsPath))&&(console[_0x41f004(0x144)](_0x1400c0[_0x41f004(0x12f)]),await _0x1400c0[_0x41f004(0x14a)](sendInstrumentationEvent,_0x4d6017,_0x1400c0[_0x41f004(0x16b)],messageTypes[_0x41f004(0x17e)],_0x1400c0['IfiPp'],null,_0x4d6017),process[_0x41f004(0x173)](0x1));const _0x3aac59=JSON[_0x41f004(0x13c)](fs[_0x41f004(0x12a)](_0x1400c0[_0x41f004(0x162)](getCredentialsPath)));let _0x4729f6='https://'+AG_API_URL+_0x41f004(0x139);_0x4d6017[_0x41f004(0x141)]&&(_0x4729f6=_0x41f004(0x135)+AG_API_URL+_0x41f004(0x155));const _0x2125e4={'method':_0x1400c0[_0x41f004(0x165)],'headers':_0x1400c0[_0x41f004(0x127)](getAuthHeader,_0x3aac59[_0x41f004(0x14e)]['username'],_0x3aac59['Browserstack'][_0x41f004(0x148)]),'throwHttpErrors':![]};global_registry[_0x41f004(0x13d)]=_0x3aac59[_0x41f004(0x14e)][_0x41f004(0x163)],global_registry[_0x41f004(0x15d)]=_0x3aac59[_0x41f004(0x14e)][_0x41f004(0x148)],_0x1400c0[_0x41f004(0x14a)](sendInstrumentationEvent,_0x4d6017,_0x1400c0[_0x41f004(0x16b)],messageTypes[_0x41f004(0x16a)],null,null,_0x4d6017);const _0x4f640a=await _0x1400c0[_0x41f004(0x14f)](got,_0x4729f6,_0x2125e4);if(_0x1400c0['FleMh'](_0x4f640a,null)&&_0x1400c0[_0x41f004(0x17d)](_0x4f640a,undefined)&&_0x1400c0[_0x41f004(0x159)](_0x4f640a[_0x41f004(0x16c)],0xc8)){const _0xc72f0d=JSON['parse'](_0x4f640a['body']);console['log'](_0x1400c0[_0x41f004(0x16e)]);const _0x4201aa=[];_0x4201aa['push']([_0x1400c0[_0x41f004(0x17c)],_0x1400c0[_0x41f004(0x176)],_0x1400c0['SJDeL'],_0x1400c0[_0x41f004(0x169)],_0x1400c0[_0x41f004(0x134)],_0x1400c0[_0x41f004(0x13a)]]),_0xc72f0d[_0x41f004(0x13e)](_0x40b01a=>{const _0x471a11=_0x41f004;_0x4201aa[_0x471a11(0x177)]([_0x40b01a['id'],_0x40b01a[_0x471a11(0x143)],_0x40b01a['status'],_0x40b01a[_0x471a11(0x140)],_0x40b01a[_0x471a11(0x15c)],_0x40b01a[_0x471a11(0x138)]]);}),console[_0x41f004(0x128)](_0x1400c0[_0x41f004(0x157)](table,_0x4201aa)),process[_0x41f004(0x173)](0x0);}_0x1400c0[_0x41f004(0x137)](_0x4f640a['statusCode'],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x1400c0[_0x41f004(0x14a)](sendInstrumentationEvent,_0x4d6017,_0x1400c0[_0x41f004(0x16b)],messageTypes[_0x41f004(0x17e)],_0x1400c0['yeUoX'],null,_0x4d6017),process['exit'](0x1)),console[_0x41f004(0x144)](_0x41f004(0x147)+JSON[_0x41f004(0x13f)](_0x4f640a)),await _0x1400c0[_0x41f004(0x150)](sendInstrumentationEvent,_0x4d6017,_0x1400c0['Bifhc'],messageTypes[_0x41f004(0x17e)],_0x1400c0[_0x41f004(0x15a)],_0x4f640a,_0x4d6017),process[_0x41f004(0x173)](0x1);}catch(_0x470fa3){console[_0x41f004(0x144)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x470fa3[_0x41f004(0x17a)]),await _0x1400c0[_0x41f004(0x14b)](sendInstrumentationEvent,_0x4d6017,_0x1400c0[_0x41f004(0x16b)],messageTypes[_0x41f004(0x17e)],_0x1400c0[_0x41f004(0x132)],_0x470fa3,_0x4d6017),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16_0x5469(_0x11b33d,_0x247958){const _0x2a39fd=a16_0x2a39();return a16_0x5469=function(_0x546904,_0x3ce4f8){_0x546904=_0x546904-0x1a3;let _0x29df55=_0x2a39fd[_0x546904];return _0x29df55;},a16_0x5469(_0x11b33d,_0x247958);}const a16_0x1c665b=a16_0x5469;(function(_0x1297f1,_0x2d2503){const _0x358a09=a16_0x5469,_0x178ffd=_0x1297f1();while(!![]){try{const _0x43716f=parseInt(_0x358a09(0x1b5))/0x1*(-parseInt(_0x358a09(0x1b6))/0x2)+-parseInt(_0x358a09(0x1ac))/0x3*(-parseInt(_0x358a09(0x1ab))/0x4)+-parseInt(_0x358a09(0x1b1))/0x5+parseInt(_0x358a09(0x1b4))/0x6+-parseInt(_0x358a09(0x1a7))/0x7+-parseInt(_0x358a09(0x1bb))/0x8+parseInt(_0x358a09(0x1b3))/0x9;if(_0x43716f===_0x2d2503)break;else _0x178ffd['push'](_0x178ffd['shift']());}catch(_0xfb4277){_0x178ffd['push'](_0x178ffd['shift']());}}}(a16_0x2a39,0x42b52));function a16_0x2a39(){const _0x1701d0=['CrzmR','1627936ldbQHc','builder','EqTAk','demandCommand','handler','1624910HPjMDF','commandDir','desc','epilogue','4zcoyOI','905595TukIDP','recommendCommands','start','start_commands','command','1115340iSKYmD','strict','5229441goDZjC','2755998ikrrXp','410323dIAPVO','2mEcWuC','help','../config/constants','usage'];a16_0x2a39=function(){return _0x1701d0;};return a16_0x2a39();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1c665b(0x1b8));exports[a16_0x1c665b(0x1b0)]=a16_0x1c665b(0x1ae),exports[a16_0x1c665b(0x1a9)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x1c665b(0x1a3)]=function(_0xf3964a){const _0x45646f=a16_0x1c665b,_0x2255d5={};_0x2255d5[_0x45646f(0x1a4)]=_0x45646f(0x1af),_0x2255d5[_0x45646f(0x1ba)]=_0x45646f(0x1b7);const _0x184120=_0x2255d5;return _0xf3964a[_0x45646f(0x1b9)](HELP_HEADER_MESSAGE['start'])[_0x45646f(0x1aa)](HELP_FOOTER_MESSAGE)[_0x45646f(0x1a8)](_0x184120[_0x45646f(0x1a4)])[_0x45646f(0x1a5)]()[_0x45646f(0x1ad)]()[_0x45646f(0x1b2)]()[_0x45646f(0x1b7)](_0x184120[_0x45646f(0x1ba)]);},exports[a16_0x1c665b(0x1a6)]=function(_0x575e1d){};
|