browserstack-node-sdk 1.33.7 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -0
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x130f1c=a9_0x1fa1;(function(_0x43ed85,_0x3f525f){const _0x4fb733=a9_0x1fa1,_0x2c03b3=_0x43ed85();while(!![]){try{const _0xaafbd6=-parseInt(_0x4fb733(0x1ca))/0x1+-parseInt(_0x4fb733(0x177))/0x2+parseInt(_0x4fb733(0x18a))/0x3*(parseInt(_0x4fb733(0xed))/0x4)+-parseInt(_0x4fb733(0x179))/0x5*(-parseInt(_0x4fb733(0xca))/0x6)+parseInt(_0x4fb733(0xc9))/0x7+-parseInt(_0x4fb733(0x10b))/0x8+parseInt(_0x4fb733(0x115))/0x9;if(_0xaafbd6===_0x3f525f)break;else _0x2c03b3['push'](_0x2c03b3['shift']());}catch(_0x964fd7){_0x2c03b3['push'](_0x2c03b3['shift']());}}}(a9_0x44f3,0x2f04c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x130f1c(0x157)),got=require('got'),{v4:uuidv4}=require(a9_0x130f1c(0x1b8)),webSocketUtils=require(a9_0x130f1c(0x186)),{logger}=require(a9_0x130f1c(0x136)),{inputCloudProviderKeys}=require(a9_0x130f1c(0x118)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x130f1c(0x1ab)),{getCloudProviderObject}=require(a9_0x130f1c(0x1e0)),{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_0x130f1c(0x12e)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x130f1c(0x172)),{sendInstrumentationEvent}=require(a9_0x130f1c(0xd4));function a9_0x1fa1(_0x53c717,_0x23ef26){const _0x44f3da=a9_0x44f3();return a9_0x1fa1=function(_0x1fa17f,_0x2a6545){_0x1fa17f=_0x1fa17f-0xbe;let _0x132080=_0x44f3da[_0x1fa17f];return _0x132080;},a9_0x1fa1(_0x53c717,_0x23ef26);}function a9_0x44f3(){const _0x433361=['gridProfileId','clusterRegion','ingress-nginx-controller','grid-profile','sendEventToBackend','atjdj','reconnecting-websocket','YpYyQ','3|5|1|2|4|6|8|7|0','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','alreadyPresent','BEcZO','\x20in\x20existing\x20cluster\x20\x27','etRhG','length','true','/packages/cli/create-grid-checks','delay','/wd/hub','bKtSQ','LDeyz','GET','CbLmy','YONis','private-grid','cOZyU','cluster-name','\x27\x20grid\x20profile','sppNd','BXQvD','MxKpE','type','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','../../utils/createk8sClient','srMES','https','ttCKY','CQYsG','357118nAqMil','xKhZG','107090CMItpd','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','FqYVk','YjkRd','cloudProvider','create-grid-checks-non-200','kzTCq','DpkRu','Browserstack','pre-spawned-invalid-subnets','deaIX','TSzYO','../../utils/webSocketUtils','FYZmN','<PasswordPlaceholder>','Found\x20VPC:\x20','290883cQlQTP','Creating\x20namespace','Found\x20Subnets:\x20','BSdST','Pdtby','Spawning\x20Grid\x20on\x20the\x20Cluster','CLI\x20run\x20finished:\x20','bGexm','XumsY','1|3|4|0|2','debug','ndBCc','message','Grid\x20spawned\x20on\x20the\x20cluster','YmMfG','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERHPF','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','EycLt','NGeNC','connectionTimeout','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.','MeCsW','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','jVljs','WebSocket','subnets','ugOGh','PPgzx','iJvqk','replace','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','../../utils/utilityMethods','create-grid-checks-grid-already-exists','Create\x20a\x20new\x20Automation\x20grid.','get-grid-url-null-response','QZbfo','hubVersion','setupAutoscaler','isPrivateGrid','pRvVN','AHTbH','securityGroups','oNGIG','KxUgS','uuid','ytRzn','instanceType','sfuGK','create-grid-called','includes','region','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','jGrYs','command','UGquu','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','annotations','IwhUS','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Spawning\x20grid\x20on\x20to\x20the\x20cluster','://','iHzcV','381131rdNVhz','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','managedBy','privateGrid','warn','ERIFM','RpNZk','namespace','JrCtl','vGNeD','epilogue','iVtme','bTPVg','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','isSubnetsValid','fetchLocalCreds','https://','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','SpSoX','grid-name','QrrUz','create-grid-checks-auth-failed','../../cloudproviders/utils','CLI\x20run\x20started','createNamespace','QourF','create-grid-checks-null-response','WSCeE','DrTWN','vpc','LBCSN','TNEQs','CLI_RUN_STARTED','gridName','APDtQ','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','gridProfile','HUmXl','getGridHostname','zjUEO','stringify','ZSYyA','prespawned-cluster-args-not-passed','createOtherResources','mDZbA','EKnpw','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','parse','isVPCPresent','info','http','stack','1702022DHInIV','42YgUWwZ','split','Wpigq','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','tjjnU','vNQOY','yRwZK','setupNewCluster','Spawning\x20the\x20grid\x20','\x20are\x20not\x20present\x20in\x20VPC:\x20','../../utils/instrumentationUtils','IufHv','Sxdqp','writeFileSync','mmaWZ','RsnVL','qPuog','argv','string','cviWy','ewaKH','mOvlB','Namespace\x20Created','dLGHf','TwObf','toKFK','hqWfs','statusCode','init-not-called','BRhna','MPCQr','s3bucket','jSshp','toLowerCase','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','8aqwAtT','username','builder','name','route53','SEnkR','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','help','tGsTT','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','<UsernamePlaceholder>','TMYqt','CLI_RUN_FINISHED','desc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','handler','description','NztkR','sAvCC','RuzPq','exit','gridProfiles','getResourceClientId','UpVqC','eTwcv','Create\x20a\x20private/public\x20grid.','clusterName','OlzFF','OvuEA','IjWdu','724392JATvNv','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','concurrency','LPaSv','VpPFk','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','maxNodes','bstackAccesskey','FozCq','Cluster\x20','2302497iaAAFS','NunSB','password','../../utils/userInput','browserVersion','JTVJk','updatePreSpawnedCluster','turboscale-managed-identity-','zOiLu','wsXlz','PFpJp','ghxPV','body','Subnets:\x20','szaKt','pre-spawned-invalid-vpc','DkFzh','CQLOX','createdBy','LOG','Cluster\x20created\x20successfully','CFtOS','Namespace\x20created','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','existsSync','../../config/constants','minNodes','KaIgU','nirpJ','SRcEY','XOcQg','HOGGv','bstackUsername','../../config/logger','fxbFS','grid','Deleting\x20the\x20CloudFormation\x20Stacks','QXxZz','BwcCr','ucaWn','FmweK','isNewAWSCluster','IDsRz','pKmCh','mBDKm','pre-spawned-subnets-not-selected','JqANC','RGcsf','error','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','NrMGz','MmJkP','HEiwu','ERROR','wpWQk','Will\x20be\x20spawning\x20the\x20grid\x20','usage','XHhAi','OYPsP','DmlKs'];a9_0x44f3=function(){return _0x433361;};return a9_0x44f3();}exports[a9_0x130f1c(0x1c1)]=a9_0x130f1c(0x138),exports[a9_0x130f1c(0xfa)]=a9_0x130f1c(0x1ad),exports[a9_0x130f1c(0xef)]=function(_0x1c5b7a){const _0x53eea2=a9_0x130f1c,_0x41936d={};_0x41936d['gSBvC']=_0x53eea2(0x1ed),_0x41936d[_0x53eea2(0x10f)]='string',_0x41936d[_0x53eea2(0xc1)]=_0x53eea2(0x146),_0x41936d[_0x53eea2(0xe4)]=_0x53eea2(0xfb),_0x41936d[_0x53eea2(0x1d3)]=_0x53eea2(0x1cb),_0x41936d[_0x53eea2(0x14b)]=_0x53eea2(0x1d7),_0x41936d[_0x53eea2(0x123)]=_0x53eea2(0x106),_0x41936d['srMES']=_0x53eea2(0xf4);const _0x4c8317=_0x41936d,_0x48b029={};_0x48b029[_0x53eea2(0xfd)]=_0x4c8317['gSBvC'],_0x48b029['type']=_0x4c8317[_0x53eea2(0x10f)];const _0x4bfa80={};_0x4bfa80[_0x53eea2(0xfd)]=_0x4c8317[_0x53eea2(0xc1)],_0x4bfa80[_0x53eea2(0x170)]=_0x4c8317[_0x53eea2(0x10f)];const _0x2b4a2d={};_0x2b4a2d['description']=_0x4c8317['hqWfs'],_0x2b4a2d[_0x53eea2(0x170)]=_0x4c8317[_0x53eea2(0x10f)];const _0x1fbf72={};_0x1fbf72[_0x53eea2(0xfd)]=_0x4c8317[_0x53eea2(0x1d3)],_0x1fbf72[_0x53eea2(0x170)]=_0x4c8317[_0x53eea2(0x10f)];const _0x10ecd5={};_0x10ecd5['description']=_0x4c8317[_0x53eea2(0x14b)],_0x10ecd5[_0x53eea2(0x170)]=_0x4c8317[_0x53eea2(0x10f)];const _0x2240c3={};_0x2240c3[_0x53eea2(0xfd)]=_0x4c8317[_0x53eea2(0x123)],_0x2240c3[_0x53eea2(0x170)]=_0x4c8317['VpPFk'];const _0x40c3d0={};return _0x40c3d0[_0x53eea2(0x1dd)]=_0x48b029,_0x40c3d0[_0x53eea2(0x154)]=_0x4bfa80,_0x40c3d0[_0x53eea2(0x16b)]=_0x2b4a2d,_0x40c3d0['cloud-provider']=_0x1fbf72,_0x40c3d0['region']=_0x10ecd5,_0x40c3d0[_0x53eea2(0x169)]=_0x2240c3,_0x1c5b7a[_0x53eea2(0x14d)](HELP_HEADER_MESSAGE['create'])[_0x53eea2(0x1d4)](HELP_FOOTER_MESSAGE)[_0x53eea2(0x199)](_0x40c3d0)['help'](_0x4c8317[_0x53eea2(0x173)])[_0x53eea2(0xdb)];},exports[a9_0x130f1c(0xfc)]=async function(_0x283f0b){const _0x8de4aa=a9_0x130f1c,_0x4d97e6={'tjjnU':_0x8de4aa(0x174),'NunSB':_0x8de4aa(0x145),'APDtQ':_0x8de4aa(0xc7),'NztkR':_0x8de4aa(0x1ed),'IufHv':_0x8de4aa(0xdc),'WSCeE':_0x8de4aa(0x146),'toKFK':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','BwcCr':_0x8de4aa(0x1cb),'DmlKs':_0x8de4aa(0x1d7),'TSzYO':_0x8de4aa(0x106),'wdspV':'help','eCXiz':'3|8|0|6|2|4|7|5|1','Pdtby':_0x8de4aa(0x1ce),'PFpJp':function(_0x5f1178){return _0x5f1178();},'ytRzn':function(_0x3c477b){return _0x3c477b();},'iHzcV':function(_0x363f66,_0x3721d1){return _0x363f66===_0x3721d1;},'RsnVL':'JtzyQ','vXMQW':_0x8de4aa(0x19a),'iVtme':function(_0x2aac01,_0x46ee90,_0x386b57,_0x40b622,_0x35c4c0,_0x22fd2d,_0x344d10){return _0x2aac01(_0x46ee90,_0x386b57,_0x40b622,_0x35c4c0,_0x22fd2d,_0x344d10);},'NGeNC':_0x8de4aa(0x1bc),'jGrYs':_0x8de4aa(0xe6),'JqANC':function(_0x2279ff,_0x421bc2,_0x4da097,_0x260139,_0x52ce3d,_0x156f1b,_0x5a37b9){return _0x2279ff(_0x421bc2,_0x4da097,_0x260139,_0x52ce3d,_0x156f1b,_0x5a37b9);},'sAvCC':_0x8de4aa(0xf7),'SEnkR':_0x8de4aa(0x188),'PPgzx':'Adding\x20Websocket\x20listeners','ZDJOQ':function(_0x3dcd9d,_0xc78ca0){return _0x3dcd9d!==_0xc78ca0;},'vvnHc':_0x8de4aa(0xe7),'BXQvD':_0x8de4aa(0x132),'QZbfo':_0x8de4aa(0x16f),'ERHPF':_0x8de4aa(0x1d0),'qPuog':_0x8de4aa(0x1aa),'LDeyz':function(_0x5b5c10,_0x3186db,_0x13d61a,_0x19c30c,_0x3107f2,_0x572216,_0x3edbb4,_0x2c6c8e){return _0x5b5c10(_0x3186db,_0x13d61a,_0x19c30c,_0x3107f2,_0x572216,_0x3edbb4,_0x2c6c8e);},'LiBQB':_0x8de4aa(0xbf),'dLGHf':'dEYkS','MPCQr':_0x8de4aa(0x187),'mmaWZ':_0x8de4aa(0x1db),'atjdj':function(_0xe1843,_0x262868,_0x9f39a8,_0x29f6af,_0x4287b0,_0x3f4dcb,_0x3f1040,_0x4994bd){return _0xe1843(_0x262868,_0x9f39a8,_0x29f6af,_0x4287b0,_0x3f4dcb,_0x3f1040,_0x4994bd);},'MeCsW':'non-aws-azure-cluster','zOiLu':_0x8de4aa(0x160),'pRvVN':_0x8de4aa(0xd0),'jaBKe':_0x8de4aa(0x12a),'zjUEO':function(_0x13f87d,_0x2293cc){return _0x13f87d!==_0x2293cc;},'TNEQs':_0x8de4aa(0x16a),'vNQOY':_0x8de4aa(0x148),'ghxPV':'DqOGb','KxUgS':_0x8de4aa(0x166),'GHvVQ':function(_0x3f31ec,_0x5bb12a,_0x137d8a){return _0x3f31ec(_0x5bb12a,_0x137d8a);},'Wpigq':function(_0x69ec0b,_0x10b91d){return _0x69ec0b===_0x10b91d;},'HOGGv':function(_0x5cec5c,_0x2b92f6){return _0x5cec5c!==_0x2b92f6;},'eTwcv':'uJyhO','ugOGh':_0x8de4aa(0x164),'tGsTT':_0x8de4aa(0x19c),'AjnlL':_0x8de4aa(0x1e4),'sppNd':_0x8de4aa(0xbe),'wCqHM':_0x8de4aa(0x1c3),'nrPLs':_0x8de4aa(0x1df),'luoau':function(_0x53857a,_0x51fe52){return _0x53857a!==_0x51fe52;},'VmfEf':function(_0x1d0488,_0x344b2b){return _0x1d0488===_0x344b2b;},'CbLmy':_0x8de4aa(0x131),'IwhUS':_0x8de4aa(0x17f),'pjUBB':'Grid\x20profile\x20fetched\x20from\x20backend','RGcsf':function(_0x4239a1,_0x3e3fa5){return _0x4239a1!==_0x3e3fa5;},'cviWy':_0x8de4aa(0x11a),'ewaKH':_0x8de4aa(0xcd),'IjWdu':function(_0x5049b8,_0x36191b,_0x57a21c,_0x42533d,_0x289ee0,_0x4e2033,_0x354ee0,_0x51a8f6){return _0x5049b8(_0x36191b,_0x57a21c,_0x42533d,_0x289ee0,_0x4e2033,_0x354ee0,_0x51a8f6);},'KaIgU':_0x8de4aa(0x1ac),'LPaSv':_0x8de4aa(0x13a),'jSshp':function(_0x3bddc7,_0x463d57){return _0x3bddc7===_0x463d57;},'wsXlz':'cvVEm','LBCSN':_0x8de4aa(0x125),'fxbFS':_0x8de4aa(0xc3),'mBDKm':function(_0x17ddf8,_0x5e7389,_0x19dda0,_0xe288ad,_0x5d5221,_0x2a1447,_0x4b96c1,_0x476ac2){return _0x17ddf8(_0x5e7389,_0x19dda0,_0xe288ad,_0x5d5221,_0x2a1447,_0x4b96c1,_0x476ac2);},'CQYsG':'create-grid-checks-invalid-profile','XumsY':function(_0x3e96a2,_0x53f4f4){return _0x3e96a2!==_0x53f4f4;},'YpYyQ':'ZafGl','IDsRz':function(_0x2a01db,_0x1b7fbb,_0xbb3357,_0x273dc8,_0x24207c,_0x4e2b9d,_0x1e771d,_0x59421e,_0x8a9dcd,_0x57ef1a,_0x19af42,_0x1d598b){return _0x2a01db(_0x1b7fbb,_0xbb3357,_0x273dc8,_0x24207c,_0x4e2b9d,_0x1e771d,_0x59421e,_0x8a9dcd,_0x57ef1a,_0x19af42,_0x1d598b);},'EycLt':function(_0xae6708,_0x3ea9bf){return _0xae6708===_0x3ea9bf;},'OYPsP':_0x8de4aa(0xd6),'sfuGK':_0x8de4aa(0x159),'mUzQV':_0x8de4aa(0x15a),'WDlkv':function(_0x324d75,_0x5efb07){return _0x324d75===_0x5efb07;},'HUmXl':function(_0x1c913c,_0x146713,_0x4ead96,_0x10bec5){return _0x1c913c(_0x146713,_0x4ead96,_0x10bec5);},'DpkRu':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','kzTCq':_0x8de4aa(0x1a2),'XHhAi':function(_0x4fc635,_0x2c8963){return _0x4fc635!==_0x2c8963;},'jVljs':_0x8de4aa(0x171),'mOvlB':function(_0x4c8503,_0x445a72){return _0x4c8503!=_0x445a72;},'YmMfG':function(_0x79cc4d,_0x5d3f7b){return _0x79cc4d!==_0x5d3f7b;},'NrMGz':function(_0x2615f8,_0x34a01c){return _0x2615f8!=_0x34a01c;},'xKhZG':function(_0x2a3fcb,_0x416ded){return _0x2a3fcb>_0x416ded;},'ttCKY':_0x8de4aa(0xf3),'iJvqk':function(_0x18ce2a,_0x5bba74,_0x16f02e,_0x5693d1,_0x291e79,_0x1586ae,_0x241628,_0x3b07ad){return _0x18ce2a(_0x5bba74,_0x16f02e,_0x5693d1,_0x291e79,_0x1586ae,_0x241628,_0x3b07ad);},'RISyA':_0x8de4aa(0x142),'ERIFM':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','tbHyH':_0x8de4aa(0x124),'FozCq':function(_0x5024ba,_0x1389d5){return _0x5024ba===_0x1389d5;},'ucaWn':_0x8de4aa(0x183),'uzQqK':_0x8de4aa(0x193),'etRhG':_0x8de4aa(0x1a0),'DrTWN':'Cluster\x20created\x20successfully','bGexm':function(_0x824016,_0x31bbb8){return _0x824016===_0x31bbb8;},'XOcQg':function(_0x4c2e17,_0x1d620e){return _0x4c2e17(_0x1d620e);},'FqYVk':function(_0x3fec59,_0x145a27){return _0x3fec59===_0x145a27;},'SpSoX':function(_0x1f2878,_0x44612d){return _0x1f2878==_0x44612d;},'ndBCc':function(_0x11baf3,_0x27fd77){return _0x11baf3(_0x27fd77);},'QrrUz':_0x8de4aa(0x18b),'BSdST':function(_0x25c806,_0x3228e4){return _0x25c806!==_0x3228e4;},'uxnfM':'default','QourF':_0x8de4aa(0x182),'TMYqt':_0x8de4aa(0xe0),'hYoiJ':_0x8de4aa(0x12b),'FmStM':_0x8de4aa(0x1c7),'JrCtl':_0x8de4aa(0x18f),'YjkRd':function(_0x35923f,_0x491961){return _0x35923f===_0x491961;},'HEiwu':function(_0x335c2d,_0x382a75,_0x3f2b86,_0x466458,_0x59b430,_0x5f3861,_0x2324fc,_0x4d2624,_0x417aa9,_0x3b32cb,_0x42f5c3){return _0x335c2d(_0x382a75,_0x3f2b86,_0x466458,_0x59b430,_0x5f3861,_0x2324fc,_0x4d2624,_0x417aa9,_0x3b32cb,_0x42f5c3);},'OlzFF':_0x8de4aa(0x197),'UpVqC':_0x8de4aa(0x1c6),'pKmCh':function(_0x9bd607,_0x384089,_0x30d56c,_0x26aa08,_0x95018f){return _0x9bd607(_0x384089,_0x30d56c,_0x26aa08,_0x95018f);},'deaIX':function(_0x1c135d,_0x1e375f,_0x31d4e3){return _0x1c135d(_0x1e375f,_0x31d4e3);},'BEcZO':'private-ingress-nginx-controller','JVuOe':_0x8de4aa(0x153),'CQLOX':'ingress-nginx','tVlwE':function(_0x34c40d,_0x3108be,_0x35b3c1){return _0x34c40d(_0x3108be,_0x35b3c1);},'UGquu':function(_0x5d3663,_0x17c8e6){return _0x5d3663==_0x17c8e6;},'bTPVg':function(_0x178f40,_0x3ac69f){return _0x178f40==_0x3ac69f;},'AHTbH':_0x8de4aa(0x17a),'OvuEA':_0x8de4aa(0x1ae),'RuzPq':function(_0x204284,_0x4c716c){return _0x204284===_0x4c716c;},'oNGIG':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','EKnpw':function(_0x2cc5cc,_0x36e995,_0x2bc673,_0x35b95b,_0x2e186d,_0x2573b7,_0x4c5d23,_0x4a2096){return _0x2cc5cc(_0x36e995,_0x2bc673,_0x35b95b,_0x2e186d,_0x2573b7,_0x4c5d23,_0x4a2096);},'TwObf':'get-grid-url-auth-failed','FmweK':'get-grid-url-non-200','EPZLl':function(_0x4661ef,_0x409216,_0x23d4e5,_0x4ace22,_0x354c52,_0x2f7891){return _0x4661ef(_0x409216,_0x23d4e5,_0x4ace22,_0x354c52,_0x2f7891);},'YONis':'grid-spawning-failed'};let _0x9e33cd=![],_0x1d0846,_0x283936,_0x1740d7,_0x2a6fde,_0x400b1c,_0x1f7a3b,_0x28acea,_0x39d7cb,_0x33331d,_0x2c712a,_0xa47da9,_0x3ffd53,_0x58d84c=0x1,_0x4162d4=0xe;try{global_registry['requestId']=_0x4d97e6[_0x8de4aa(0x11f)](uuidv4),global_registry[_0x8de4aa(0x1b2)]=![];!fs[_0x8de4aa(0x12d)](_0x4d97e6[_0x8de4aa(0x1b9)](getCredentialsPath))&&(_0x4d97e6[_0x8de4aa(0x1c9)](_0x4d97e6['RsnVL'],_0x4d97e6[_0x8de4aa(0xd9)])?(console[_0x8de4aa(0x145)](_0x4d97e6['vXMQW']),await _0x4d97e6[_0x8de4aa(0x1d5)](sendInstrumentationEvent,_0x283f0b,_0x4d97e6['NGeNC'],messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x1c0)],null,_0x283f0b),process[_0x8de4aa(0x101)](0x1)):_0xc7feb9['sendResourceDataToHST']());await _0x4d97e6[_0x8de4aa(0x143)](sendInstrumentationEvent,_0x283f0b,_0x4d97e6[_0x8de4aa(0x19e)],messageTypes['INFO'],null,null,_0x283f0b);const _0x2ecf9e=JSON['parse'](fs['readFileSync'](_0x4d97e6[_0x8de4aa(0x11f)](getCredentialsPath)));global_registry[_0x8de4aa(0x135)]=_0x2ecf9e[_0x8de4aa(0x182)][_0x8de4aa(0xee)],global_registry[_0x8de4aa(0x112)]=_0x2ecf9e[_0x8de4aa(0x182)][_0x8de4aa(0x117)];const _0x7078aa=WS_ENDPOINT[_0x8de4aa(0x1a9)](_0x4d97e6[_0x8de4aa(0xff)],_0x2ecf9e[_0x8de4aa(0x182)]['username'])[_0x8de4aa(0x1a9)](_0x4d97e6[_0x8de4aa(0xf2)],_0x2ecf9e[_0x8de4aa(0x182)][_0x8de4aa(0x117)]),_0x3e3fcb={};_0x3e3fcb[_0x8de4aa(0x1a4)]=ws,_0x3e3fcb[_0x8de4aa(0x19f)]=0x36ee80,_0x2c712a=new ReconnectingWebSocket(_0x7078aa,[],_0x3e3fcb),logger[_0x8de4aa(0x194)](_0x4d97e6[_0x8de4aa(0x1a7)]),webSocketUtils['addListeners'](_0x2c712a,_0x283f0b['user'],_0x283f0b[_0x8de4aa(0x117)]);let _0x550d27=DEFAULT_GRID_NAME;(_0x283f0b[_0x8de4aa(0x107)]||_0x283f0b['cloudProvider']||_0x283f0b[_0x8de4aa(0x1be)])&&(_0x4d97e6['ZDJOQ'](_0x4d97e6['vvnHc'],_0x4d97e6[_0x8de4aa(0x16e)])?(!(_0x283f0b[_0x8de4aa(0x107)]&&_0x283f0b[_0x8de4aa(0x17e)]&&_0x283f0b[_0x8de4aa(0x1be)])&&(_0x4d97e6[_0x8de4aa(0x1c9)](_0x4d97e6[_0x8de4aa(0x1af)],_0x4d97e6[_0x8de4aa(0x19b)])?_0x576267=_0x5d2c28[_0x2a8212[_0x8de4aa(0x1ee)]]:(_0x1d0846=_0x4d97e6[_0x8de4aa(0xda)],await _0x4d97e6['LDeyz'](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6['LiBQB'],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1))),![AWS,AZURE,GCP][_0x8de4aa(0x1bd)](_0x283f0b[_0x8de4aa(0x17e)][_0x8de4aa(0xeb)]())&&(_0x4d97e6[_0x8de4aa(0x1c9)](_0x4d97e6[_0x8de4aa(0xe1)],_0x4d97e6[_0x8de4aa(0xe8)])?(_0x36b3f5=_0x51a738['route53'],_0x4f795f=_0x4d97e6['tjjnU']):(_0x1d0846=_0x4d97e6[_0x8de4aa(0xd8)],await _0x4d97e6[_0x8de4aa(0x156)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes['ERROR'],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6[_0x8de4aa(0x1a1)],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1))),_0x283f0b[_0x8de4aa(0x1cd)]&&_0x4d97e6[_0x8de4aa(0x1c9)](_0x283f0b[_0x8de4aa(0x1cd)][_0x8de4aa(0xeb)](),_0x4d97e6[_0x8de4aa(0x11d)])&&(_0x4d97e6['ZDJOQ'](_0x4d97e6[_0x8de4aa(0x1b3)],_0x4d97e6['jaBKe'])?global_registry[_0x8de4aa(0x1b2)]=!![]:_0x5e9b1a=_0x42cb0e[_0x8de4aa(0x1eb)]),_0x9e33cd=!![],_0x1740d7=_0x283f0b[_0x8de4aa(0x107)],_0x283936=_0x283f0b['cloudProvider']['toLowerCase'](),_0x2a6fde=_0x283f0b['region']):_0x397089[_0x8de4aa(0x1ee)]=_0x22f8eb[_0x8de4aa(0x1ee)]);if(_0x283f0b[_0x8de4aa(0x1eb)]){if(_0x4d97e6[_0x8de4aa(0x1f1)](_0x4d97e6[_0x8de4aa(0x1e9)],_0x4d97e6[_0x8de4aa(0xcf)]))_0x550d27=_0x283f0b[_0x8de4aa(0x1eb)];else{const _0x542794={};_0x542794['type']=_0x8e431c[_0x8de4aa(0x128)],_0x542794[_0x8de4aa(0x196)]=_0x4a3385,_0xd1ba27[_0x8de4aa(0x155)](_0x1f4651,_0x542794,_0x4d97e6['NunSB'],!![]);}}_0x283f0b['gridProfile']&&(_0x4d97e6[_0x8de4aa(0x1f1)](_0x4d97e6[_0x8de4aa(0x120)],_0x4d97e6[_0x8de4aa(0x120)])?_0x5b6fda[_0x8de4aa(0x145)](_0x8de4aa(0xec)+_0x3abb00+'\x20\x0a'+_0x4b21a4[_0x8de4aa(0x1f2)](_0x2a0e65[_0x8de4aa(0xc8)])):global_registry[_0x8de4aa(0x1ee)]=_0x283f0b['gridProfile']);global_registry['gridName']=_0x550d27;const _0x5489ff={'method':_0x4d97e6[_0x8de4aa(0x1b7)],'headers':_0x4d97e6['GHvVQ'](getAuthHeader,_0x2ecf9e['Browserstack']['username'],_0x2ecf9e[_0x8de4aa(0x182)][_0x8de4aa(0x117)]),'throwHttpErrors':![]},_0x5e3502=_0x8de4aa(0x1da)+AG_API_URL+_0x8de4aa(0x161),_0xc3664c={};_0xc3664c[_0x8de4aa(0x1eb)]=_0x550d27;const _0x51aea9={'searchParams':_0xc3664c,'throwHttpErrors':![],..._0x5489ff},_0x5703e9=_0x51aea9,_0x16e54d=await _0x4d97e6['GHvVQ'](got,_0x5e3502,_0x5703e9);(_0x4d97e6[_0x8de4aa(0x1c9)](_0x16e54d,null)||_0x4d97e6[_0x8de4aa(0xcc)](_0x16e54d,undefined))&&(_0x4d97e6['HOGGv'](_0x4d97e6[_0x8de4aa(0x105)],_0x4d97e6[_0x8de4aa(0x1a6)])?(_0x1d0846=_0x4d97e6[_0x8de4aa(0xf5)],await _0x4d97e6[_0x8de4aa(0x165)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes['ERROR'],_0x4d97e6['NGeNC'],_0x4d97e6['AjnlL'],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1)):_0x32c3fc['cloudProvider']={});_0x4d97e6[_0x8de4aa(0xcc)](_0x16e54d['statusCode'],0x191)&&(_0x4d97e6[_0x8de4aa(0x1c9)](_0x4d97e6[_0x8de4aa(0x16d)],_0x4d97e6[_0x8de4aa(0x16d)])?(_0x1d0846=_0x4d97e6['wCqHM'],await _0x4d97e6[_0x8de4aa(0x165)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes['ERROR'],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6['nrPLs'],_0x4d97e6['NunSB']),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1)):_0x11fce7=_0x4d97e6['APDtQ']);_0x4d97e6['luoau'](_0x16e54d[_0x8de4aa(0xe5)],0xc8)&&(_0x4d97e6['VmfEf'](_0x4d97e6[_0x8de4aa(0x167)],_0x4d97e6[_0x8de4aa(0x167)])?(_0x1d0846=_0x8de4aa(0xf6)+JSON['stringify'](_0x16e54d),await _0x4d97e6[_0x8de4aa(0x165)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6[_0x8de4aa(0x1c5)],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1)):_0x1febd9[_0x8de4aa(0xc6)](_0x8de4aa(0x18c)+_0xf240ed[_0x8de4aa(0x1f2)](_0x4b6957)+'\x20'));const _0x28de59=JSON['parse'](_0x16e54d[_0x8de4aa(0x121)]),_0x23c5a9={};_0x23c5a9[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x1ea)],_0x23c5a9[_0x8de4aa(0x196)]=_0x8de4aa(0x1e1),webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x23c5a9);const _0x2b42b4={};_0x2b42b4[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x2b42b4['message']=_0x4d97e6['pjUBB'],webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x2b42b4);if(_0x28de59[_0x8de4aa(0x15b)]){if(_0x4d97e6[_0x8de4aa(0x144)](_0x4d97e6[_0x8de4aa(0xdd)],_0x4d97e6[_0x8de4aa(0xdd)])){const _0x581cc0={};_0x581cc0[_0x8de4aa(0xfd)]=_0x4d97e6[_0x8de4aa(0xfe)],_0x581cc0['type']=_0x4d97e6[_0x8de4aa(0xd5)];const _0x285ed3={};_0x285ed3[_0x8de4aa(0xfd)]=_0x4d97e6[_0x8de4aa(0x1e5)],_0x285ed3[_0x8de4aa(0x170)]=_0x4d97e6[_0x8de4aa(0xd5)];const _0x272255={};_0x272255[_0x8de4aa(0xfd)]=_0x4d97e6[_0x8de4aa(0xe3)],_0x272255['type']=_0x4d97e6['IufHv'];const _0x4f968e={};_0x4f968e[_0x8de4aa(0xfd)]=_0x4d97e6[_0x8de4aa(0x13b)],_0x4f968e['type']=_0x4d97e6[_0x8de4aa(0xd5)];const _0xd24eea={};_0xd24eea[_0x8de4aa(0xfd)]=_0x4d97e6[_0x8de4aa(0x150)],_0xd24eea[_0x8de4aa(0x170)]=_0x4d97e6[_0x8de4aa(0xd5)];const _0x245083={};_0x245083['description']=_0x4d97e6[_0x8de4aa(0x185)],_0x245083[_0x8de4aa(0x170)]=_0x4d97e6[_0x8de4aa(0xd5)];const _0x3964ef={};return _0x3964ef['grid-name']=_0x581cc0,_0x3964ef[_0x8de4aa(0x154)]=_0x285ed3,_0x3964ef[_0x8de4aa(0x16b)]=_0x272255,_0x3964ef['cloud-provider']=_0x4f968e,_0x3964ef[_0x8de4aa(0x1be)]=_0xd24eea,_0x3964ef[_0x8de4aa(0x169)]=_0x245083,_0x334d4b['usage'](_0x1d4bd7['create'])[_0x8de4aa(0x1d4)](_0x185f6c)[_0x8de4aa(0x199)](_0x3964ef)['help'](_0x4d97e6['wdspV'])[_0x8de4aa(0xdb)];}else _0x1d0846=_0x4d97e6[_0x8de4aa(0xde)],await _0x4d97e6[_0x8de4aa(0x10a)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6[_0x8de4aa(0x130)],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process['exit'](0x1);}const _0x2da7c6=_0x28de59[_0x8de4aa(0x102)];let _0x22c4b0=_0x2da7c6[_0x28de59['defaultGridProfile']];if(_0x283f0b[_0x8de4aa(0x1ee)]){if(_0x4d97e6[_0x8de4aa(0x134)](_0x4d97e6[_0x8de4aa(0x10e)],_0x4d97e6[_0x8de4aa(0x10e)])){const _0x1621cf=_0x4d97e6['eCXiz']['split']('|');let _0x9ab0d7=0x0;while(!![]){switch(_0x1621cf[_0x9ab0d7++]){case'0':_0x249fbc[_0x8de4aa(0xc6)](_0x5ad80e);continue;case'1':_0x513582[_0x8de4aa(0x119)]=_0x2ca42e[_0x8de4aa(0x119)];continue;case'2':_0x411c9a[_0x8de4aa(0x17e)]=_0x4fd489;continue;case'3':const _0x4969a6={};_0x4969a6['type']=_0x4c022e[_0x8de4aa(0x1ea)],_0x4969a6[_0x8de4aa(0x196)]=_0x8de4aa(0x1e1),_0x2e363e[_0x8de4aa(0x155)](_0xc1b0cc,_0x4969a6);continue;case'4':_0x1e6eea[_0x8de4aa(0x152)]=_0x2b4c56;continue;case'5':_0x5703bc[_0x8de4aa(0x1b0)]=_0x5b83d4[_0x8de4aa(0x1b0)];continue;case'6':const _0x3ccb2f={};_0x3ccb2f[_0x8de4aa(0x170)]=_0x28c776[_0x8de4aa(0x128)],_0x3ccb2f['message']=_0x4dbb23,_0x19dcf3['sendEventToBackend'](_0x7aa07f,_0x3ccb2f);continue;case'7':_0x2a2d6d[_0x8de4aa(0x107)]=_0x1c2f67;continue;case'8':_0x4bf8ce='Spawning\x20the\x20grid\x20'+_0xfeb187+_0x8de4aa(0x15d)+_0x4c6255+'\x27';continue;}break;}}else _0x22c4b0=_0x2da7c6[_0x283f0b[_0x8de4aa(0x1ee)]];}if(_0x4d97e6['Wpigq'](_0x9e33cd,![])){if(_0x4d97e6[_0x8de4aa(0xea)](_0x4d97e6[_0x8de4aa(0x11e)],_0x4d97e6[_0x8de4aa(0x11e)])){_0x4d97e6[_0x8de4aa(0xea)](_0x22c4b0,undefined)&&(_0x4d97e6['jSshp'](_0x4d97e6['LBCSN'],_0x4d97e6[_0x8de4aa(0x1e8)])?(_0x1d0846=_0x4d97e6[_0x8de4aa(0x137)],await _0x4d97e6[_0x8de4aa(0x141)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6[_0x8de4aa(0x176)],_0x4d97e6['NunSB']),logger['error'](_0x1d0846),process[_0x8de4aa(0x101)](0x1)):_0x265c4c[_0x8de4aa(0xc6)](_0x8de4aa(0x189)+_0x194805+'\x20'));global_registry[_0x8de4aa(0x151)]=_0x22c4b0['id'],_0x1d0846=_0x8de4aa(0x14c)+_0x550d27+'\x20using\x20\x27'+_0x22c4b0[_0x8de4aa(0xf0)]+_0x8de4aa(0x16c),logger['info'](_0x1d0846);const _0x579b3a={};_0x579b3a[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x579b3a[_0x8de4aa(0x196)]=_0x1d0846,webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x579b3a),_0x283936=_0x22c4b0[_0x8de4aa(0x17e)],_0x1740d7=_0x22c4b0[_0x8de4aa(0x107)],_0x2a6fde=_0x22c4b0[_0x8de4aa(0x1be)],_0x400b1c=_0x22c4b0[_0x8de4aa(0x10d)],_0x1f7a3b=_0x22c4b0[_0x8de4aa(0x1ba)],_0x28acea=_0x22c4b0[_0x8de4aa(0x1e7)],securityGroups=_0x22c4b0[_0x8de4aa(0x1b5)],subnets=_0x22c4b0[_0x8de4aa(0x1a5)],_0x39d7cb=_0x22c4b0[_0x8de4aa(0xe9)],_0x58d84c=_0x22c4b0[_0x8de4aa(0x12f)],_0x4162d4=_0x22c4b0[_0x8de4aa(0x111)],_0xa47da9=_0x28de59['hubVersion'],_0x3ffd53=_0x28de59[_0x8de4aa(0x119)],_0x4d97e6[_0x8de4aa(0x192)](_0x22c4b0[_0x8de4aa(0x1cd)],undefined)&&_0x22c4b0['privateGrid']&&(_0x4d97e6[_0x8de4aa(0xcc)](_0x4d97e6[_0x8de4aa(0x158)],_0x4d97e6[_0x8de4aa(0x158)])?global_registry[_0x8de4aa(0x1b2)]=!![]:_0x45ffa1[_0x8de4aa(0x1b2)]=!![]),_0x4d97e6[_0x8de4aa(0x13f)](updateGlobalRegistryWithConfig,_0x283936,_0x1740d7,_0x2a6fde,_0x400b1c,_0x1f7a3b,_0x39d7cb,_0x22c4b0,_0xa47da9,_0x3ffd53,_0x58d84c,_0x4162d4);}else _0xb2fb55['isPrivateGrid']=!![];}else{if(_0x4d97e6[_0x8de4aa(0x19d)](_0x4d97e6[_0x8de4aa(0x14f)],_0x4d97e6[_0x8de4aa(0x14f)])){const _0x3c0427=_0x4d97e6[_0x8de4aa(0x1bb)][_0x8de4aa(0xcb)]('|');let _0x363ff4=0x0;while(!![]){switch(_0x3c0427[_0x363ff4++]){case'0':global_registry[_0x8de4aa(0x119)]=_0x28de59[_0x8de4aa(0x119)];continue;case'1':logger['info'](_0x1d0846);continue;case'2':const _0x33c304={};_0x33c304[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x33c304[_0x8de4aa(0x196)]=_0x1d0846,webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x33c304);continue;case'3':const _0xaebab8={};_0xaebab8[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x1ea)],_0xaebab8[_0x8de4aa(0x196)]=_0x8de4aa(0x1e1),webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0xaebab8);continue;case'4':global_registry['cloudProvider']=_0x283936;continue;case'5':_0x1d0846=_0x8de4aa(0xd2)+_0x550d27+_0x8de4aa(0x15d)+_0x1740d7+'\x27';continue;case'6':global_registry[_0x8de4aa(0x152)]=_0x2a6fde;continue;case'7':global_registry[_0x8de4aa(0x1b0)]=_0x28de59['hubVersion'];continue;case'8':global_registry['clusterName']=_0x1740d7;continue;}break;}}else{const _0x2ff351={};_0x2ff351[_0x8de4aa(0x170)]=_0x598203['LOG'],_0x2ff351[_0x8de4aa(0x196)]=_0x8de4aa(0x114)+_0x196124+_0x8de4aa(0x1bf),_0x25b177['sendEventToBackend'](_0x170b1d,_0x2ff351,_0x4d97e6['Pdtby']),_0x5e474e[_0x8de4aa(0xc6)]('Cluster\x20'+_0x4d6395+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3df9c8=!![];}}const _0x357dba=await _0x4d97e6['JqANC'](getCloudProviderObject,_0x283936,_0x1740d7,_0x550d27,_0x2c712a,webSocketUtils,_0x283f0b),_0x4a0065=_0x2ecf9e[_0x8de4aa(0x17e)]||{};if(_0x4d97e6['iHzcV'](_0x4a0065[_0x283936],undefined)){logger[_0x8de4aa(0xc6)](_0x4d97e6['mUzQV']);_0x4d97e6['WDlkv'](_0x2ecf9e[_0x8de4aa(0x17e)],undefined)&&(_0x2ecf9e['cloudProvider']={});_0x2ecf9e[_0x8de4aa(0x17e)][_0x283936]={};const _0x3063aa=await _0x4d97e6[_0x8de4aa(0x1ef)](inputCloudProviderKeys,_0x283936,_0x2ecf9e,_0x357dba);fs[_0x8de4aa(0xd7)](_0x4d97e6[_0x8de4aa(0x11f)](getCredentialsPath),JSON[_0x8de4aa(0x1f2)](_0x3063aa)),logger['debug'](_0x4d97e6[_0x8de4aa(0x181)]);}else{_0x1d0846=_0x4d97e6[_0x8de4aa(0x180)];const _0xf854f7={};_0xf854f7[_0x8de4aa(0x170)]=WS_EVENTS['LOG'],_0xf854f7[_0x8de4aa(0x196)]=_0x1d0846,webSocketUtils['sendEventToBackend'](_0x2c712a,_0xf854f7),logger[_0x8de4aa(0xc6)](_0x1d0846),await _0x357dba[_0x8de4aa(0x1d9)](_0x4a0065);}_0x357dba['configureIfNotConfigured']();_0x4d97e6[_0x8de4aa(0x14e)](_0x283936,AZURE)&&_0x357dba['sendResourceDataToHST']();let _0x25abaa;if(_0x4d97e6[_0x8de4aa(0x19d)](_0x9e33cd,![])){_0x1d0846=_0x8de4aa(0x110)+_0x2a6fde+').';const _0x5a2644={};_0x5a2644['type']=WS_EVENTS['LOG'],_0x5a2644[_0x8de4aa(0x196)]=_0x1d0846,webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x5a2644),logger[_0x8de4aa(0xc6)](_0x1d0846);const _0x3656e2=await _0x357dba['isClusterPresent']();if(_0x3656e2){const _0x1e330e={};_0x1e330e[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x1e330e[_0x8de4aa(0x196)]=_0x8de4aa(0x114)+_0x1740d7+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x2c712a,_0x1e330e,_0x4d97e6[_0x8de4aa(0x18e)]),logger['info'](_0x8de4aa(0x114)+_0x1740d7+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x9e33cd=!![];}else{const _0x4a036f={};_0x4a036f[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x4a036f[_0x8de4aa(0x196)]=_0x4d97e6[_0x8de4aa(0x1a3)],webSocketUtils['sendEventToBackend'](_0x2c712a,_0x4a036f),logger[_0x8de4aa(0xc6)](_0x4d97e6[_0x8de4aa(0x1a3)]);const _0x134301=_0x4d97e6[_0x8de4aa(0xdf)](_0x28acea,null)&&_0x4d97e6[_0x8de4aa(0x198)](_0x28acea,undefined),_0x4b3d77=_0x4d97e6[_0x8de4aa(0x147)](subnets,null)&&_0x4d97e6[_0x8de4aa(0x198)](subnets,undefined)&&_0x4d97e6[_0x8de4aa(0x178)](subnets[_0x8de4aa(0x15f)],0x0);if(_0x134301){_0x4d97e6['EycLt'](_0x4b3d77,![])&&(_0x1d0846=_0x4d97e6[_0x8de4aa(0x175)],await _0x4d97e6[_0x8de4aa(0x1a8)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6['RISyA'],_0x4d97e6['NunSB']),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1));const _0x3d776c=await _0x357dba[_0x8de4aa(0xc5)](_0x28acea);_0x4d97e6[_0x8de4aa(0xcc)](_0x3d776c,![])?(_0x1d0846=_0x4d97e6[_0x8de4aa(0x1cf)],await _0x4d97e6[_0x8de4aa(0x10a)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6['tbHyH'],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1)):logger[_0x8de4aa(0xc6)](_0x8de4aa(0x189)+_0x28acea+'\x20');const _0x21cbed=await _0x357dba[_0x8de4aa(0x1d8)](subnets,_0x28acea);_0x4d97e6[_0x8de4aa(0x113)](_0x21cbed[0x0],![])?(_0x1d0846=_0x8de4aa(0x122)+JSON[_0x8de4aa(0x1f2)](_0x21cbed[0x1])+_0x8de4aa(0xd3)+_0x28acea+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4d97e6[_0x8de4aa(0x141)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6['NGeNC'],_0x4d97e6[_0x8de4aa(0x13c)],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process['exit'](0x1)):logger[_0x8de4aa(0xc6)](_0x8de4aa(0x18c)+JSON[_0x8de4aa(0x1f2)](subnets)+'\x20'),await _0x357dba[_0x8de4aa(0xd1)](_0x28acea,subnets);}else{const _0x165d54=_0x4d97e6['uzQqK'][_0x8de4aa(0xcb)]('|');let _0x149da8=0x0;while(!![]){switch(_0x165d54[_0x149da8++]){case'0':const _0x944c0e={};_0x944c0e[_0x8de4aa(0x170)]=WS_EVENTS['LOG'],_0x944c0e[_0x8de4aa(0x196)]=_0x8de4aa(0x129),webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x944c0e);continue;case'1':const _0x333936={};_0x333936[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x333936['message']=_0x4d97e6[_0x8de4aa(0x15e)],webSocketUtils['sendEventToBackend'](_0x2c712a,_0x333936);continue;case'2':logger[_0x8de4aa(0xc6)](_0x4d97e6[_0x8de4aa(0x1e6)]);continue;case'3':logger[_0x8de4aa(0xc6)](_0x4d97e6[_0x8de4aa(0x15e)]);continue;case'4':await _0x357dba['setupNewCluster']();continue;}break;}}}}_0x9e33cd&&_0x4d97e6[_0x8de4aa(0x191)](_0x283936,AZURE)&&(await _0x357dba[_0x8de4aa(0x11b)](),await _0x357dba[_0x8de4aa(0xc0)]());const [_0x376eb9,_0x45a338,_0x261af5,_0x29cb9a,_0x1aaf73,_0xad2ab9]=await _0x4d97e6[_0x8de4aa(0x133)](createK8sClient,_0x357dba);_0x4d97e6[_0x8de4aa(0x17c)](_0x9e33cd,![])&&_0x4d97e6[_0x8de4aa(0x1dc)](_0x283936,AWS)&&(global_registry[_0x8de4aa(0x13e)]=!![],_0x25abaa=await _0x357dba[_0x8de4aa(0x1b1)](_0x376eb9,_0x283f0b));try{_0x33331d=_0x4d97e6[_0x8de4aa(0x195)](kebabCase,_0x550d27),logger['info'](_0x4d97e6['QrrUz']);const _0x162121={};_0x162121[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x162121[_0x8de4aa(0x196)]=_0x4d97e6[_0x8de4aa(0x1de)],webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x162121);if(_0x4d97e6[_0x8de4aa(0x18d)](_0x33331d,_0x4d97e6['uxnfM'])){const _0x372765={};_0x372765[_0x8de4aa(0x127)]=_0x4d97e6[_0x8de4aa(0x1e3)],_0x372765[_0x8de4aa(0x1cc)]=_0x4d97e6[_0x8de4aa(0x1e3)];const _0x2da7c2={};_0x2da7c2[_0x8de4aa(0xf0)]=_0x33331d,_0x2da7c2[_0x8de4aa(0x1c4)]=_0x372765;const _0x531f70={};_0x531f70['metadata']=_0x2da7c2;let _0x12c3a8=_0x531f70;const _0x22c9bc={};_0x22c9bc[_0x8de4aa(0x121)]=_0x12c3a8,await _0x376eb9[_0x8de4aa(0x1e2)](_0x22c9bc),logger[_0x8de4aa(0xc6)](_0x4d97e6[_0x8de4aa(0xf8)]);}const _0x2b8432={};_0x2b8432['type']=WS_EVENTS['LOG'],_0x2b8432[_0x8de4aa(0x196)]=_0x4d97e6['hYoiJ'],webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x2b8432);const _0x3bf510={};_0x3bf510[_0x8de4aa(0x170)]=WS_EVENTS['LOG'],_0x3bf510[_0x8de4aa(0x196)]=_0x4d97e6['FmStM'],webSocketUtils['sendEventToBackend'](_0x2c712a,_0x3bf510),logger[_0x8de4aa(0xc6)](_0x4d97e6[_0x8de4aa(0x1d2)]);let _0x337546={};_0x4d97e6[_0x8de4aa(0x17d)](_0x283936,AZURE)&&(_0x337546={'clientId':await _0x357dba[_0x8de4aa(0x103)](_0x8de4aa(0x11c)+_0x1740d7)});await _0x4d97e6[_0x8de4aa(0x149)](addGridComponents,_0x376eb9,_0x45a338,_0x261af5,_0x29cb9a,_0x33331d,_0x1740d7,_0x25abaa,_0x1aaf73,_0xad2ab9,_0x337546),_0x1d0846=_0x4d97e6[_0x8de4aa(0x108)],logger['info'](_0x1d0846);const _0x578354={};_0x578354[_0x8de4aa(0x170)]=WS_EVENTS['LOG'],_0x578354[_0x8de4aa(0x196)]=_0x1d0846,webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x578354),_0x1d0846=_0x4d97e6[_0x8de4aa(0x104)],logger[_0x8de4aa(0xc6)](_0x1d0846);const _0x40d878={};_0x40d878[_0x8de4aa(0x170)]=WS_EVENTS['LOG'],_0x40d878['message']=_0x1d0846,webSocketUtils['sendEventToBackend'](_0x2c712a,_0x40d878),await _0x4d97e6[_0x8de4aa(0x140)](waitForDeployment,_0x45a338,_0x33331d,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4cd1d2=await _0x4d97e6[_0x8de4aa(0x184)](getNamespaceUID,_0x376eb9,_0x33331d);let _0xf6b6da=global_registry[_0x8de4aa(0x1b2)]?_0x4d97e6[_0x8de4aa(0x15c)]:_0x4d97e6['JVuOe'];const _0x3579b8={};_0x3579b8[_0x8de4aa(0xf0)]=_0xf6b6da,_0x3579b8[_0x8de4aa(0x1d1)]=_0x4d97e6[_0x8de4aa(0x126)];let _0x597d7b=await _0x376eb9['readNamespacedService'](_0x3579b8),_0x432146=_0x357dba[_0x8de4aa(0x1f0)](_0x597d7b)+'/'+_0x33331d,_0x842709=_0x4d97e6[_0x8de4aa(0x1ec)];try{const _0x8e194b=_0x8de4aa(0x1da)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x4cd1d2,_0x26a9f8=await _0x4d97e6['tVlwE'](got,_0x8e194b,_0x5489ff);(_0x4d97e6[_0x8de4aa(0x1c2)](_0x26a9f8,null)||_0x4d97e6[_0x8de4aa(0x1d6)](_0x26a9f8,undefined))&&(_0x1d0846=_0x4d97e6[_0x8de4aa(0x1b4)],await _0x4d97e6[_0x8de4aa(0x1a8)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6[_0x8de4aa(0x109)],_0x4d97e6['NunSB']),logger[_0x8de4aa(0x145)](_0x1d0846),process['exit'](0x1));_0x4d97e6[_0x8de4aa(0x100)](_0x26a9f8[_0x8de4aa(0xe5)],0x191)&&(_0x1d0846=_0x4d97e6[_0x8de4aa(0x1b6)],await _0x4d97e6[_0x8de4aa(0xc2)](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x19e)],_0x4d97e6[_0x8de4aa(0xe2)],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1));_0x4d97e6['HOGGv'](_0x26a9f8[_0x8de4aa(0xe5)],0xc8)&&(_0x1d0846='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x8de4aa(0x1f2)](_0x26a9f8),await _0x4d97e6['EKnpw'](reportToGalactusAndSendToEDS,_0x283f0b,_0x2c712a,_0x1d0846,messageTypes[_0x8de4aa(0x14a)],_0x4d97e6['NGeNC'],_0x4d97e6[_0x8de4aa(0x13d)],_0x4d97e6[_0x8de4aa(0x116)]),logger[_0x8de4aa(0x145)](_0x1d0846),process[_0x8de4aa(0x101)](0x1));const _0x1f6b37=JSON[_0x8de4aa(0xc4)](_0x26a9f8[_0x8de4aa(0x121)]);_0x1f6b37[_0x8de4aa(0xf1)]&&(_0x432146=_0x1f6b37['route53'],_0x842709=_0x4d97e6[_0x8de4aa(0xce)]),global_registry[_0x8de4aa(0x1b2)]&&(_0x842709=_0x4d97e6[_0x8de4aa(0x1ec)]);}catch(_0x66fc07){}_0x1d0846='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x432146+'\x20',logger[_0x8de4aa(0xc6)](_0x1d0846);const _0x1ca066={};_0x1ca066['type']=WS_EVENTS[_0x8de4aa(0x128)],_0x1ca066[_0x8de4aa(0x196)]=_0x1d0846,webSocketUtils['sendEventToBackend'](_0x2c712a,_0x1ca066),_0x1d0846=_0x8de4aa(0x10c)+_0x842709+_0x8de4aa(0x1c8)+_0x432146+_0x8de4aa(0x163),logger[_0x8de4aa(0xc6)](_0x1d0846);const _0x5f402e={};_0x5f402e[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0x128)],_0x5f402e[_0x8de4aa(0x196)]=_0x1d0846,webSocketUtils[_0x8de4aa(0x155)](_0x2c712a,_0x5f402e);const _0x5d1bd0={};_0x5d1bd0[_0x8de4aa(0x170)]=WS_EVENTS[_0x8de4aa(0xf9)],_0x5d1bd0[_0x8de4aa(0x196)]=_0x8de4aa(0x190)+_0x432146,webSocketUtils['sendEventToBackend'](_0x2c712a,_0x5d1bd0),await webSocketUtils[_0x8de4aa(0x162)](0x7d0);}catch(_0x14fc90){logger['error'](_0x8de4aa(0x17b)+_0x14fc90+'\x20\x0a'+JSON['stringify'](_0x14fc90[_0x8de4aa(0xc8)]));if(_0x4d97e6[_0x8de4aa(0x17c)](_0x9e33cd,![]))try{logger[_0x8de4aa(0xc6)](_0x8de4aa(0x139)),await _0x4d97e6['EPZLl'](removeGridComponents,_0x376eb9,_0x45a338,_0x261af5,_0x29cb9a,_0x33331d),await _0x357dba['deleteCluster'](_0x376eb9,global_registry[_0x8de4aa(0x152)]);}catch(_0x3a0963){logger[_0x8de4aa(0x145)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x3a0963+'\x20\x0a'+JSON[_0x8de4aa(0x1f2)](_0x3a0963[_0x8de4aa(0xc8)]));}throw _0x14fc90;}}catch(_0x364570){const _0x13dcf5=_0x8de4aa(0x12c)+_0x364570+'\x20\x0a'+JSON[_0x8de4aa(0x1f2)](_0x364570['stack']);if(_0x2c712a){const _0x30fc9a={};_0x30fc9a['type']=WS_EVENTS['LOG'],_0x30fc9a[_0x8de4aa(0x196)]=_0x13dcf5,webSocketUtils['sendEventToBackend'](_0x2c712a,_0x30fc9a,_0x4d97e6[_0x8de4aa(0x116)],!![]);}await webSocketUtils[_0x8de4aa(0x162)](0x7d0);const _0x445de4={};_0x445de4['error']=_0x13dcf5,await _0x4d97e6[_0x8de4aa(0x143)](sendInstrumentationEvent,_0x283f0b,_0x4d97e6[_0x8de4aa(0x19e)],messageTypes[_0x8de4aa(0x14a)],_0x4d97e6[_0x8de4aa(0x168)],_0x445de4,_0x283f0b),logger[_0x8de4aa(0x145)](_0x13dcf5);}process[_0x8de4aa(0x101)](0x0);};
|
|
1
|
+
function a9_0x2546(_0x56f5ce,_0xd166f1){const _0x3ab82d=a9_0x3ab8();return a9_0x2546=function(_0x25461a,_0x2d7c69){_0x25461a=_0x25461a-0x17e;let _0x2318b1=_0x3ab82d[_0x25461a];return _0x2318b1;},a9_0x2546(_0x56f5ce,_0xd166f1);}const a9_0x5110fc=a9_0x2546;function a9_0x3ab8(){const _0x4c4a18=['nYULP','vpc','isClusterPresent','help','mbIgD','pMuOR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','mZpye','tTxJX','NUVdI','bGtNC','isSubnetsValid','privateGrid','HMXwl','15HBEHKa','error','options','s3bucket','WJlvn','Deleting\x20the\x20CloudFormation\x20Stacks','TPlLP','grid-spawning-failed','OnCJm','GFmAB','pMYhI','cloudProvider','Uhzmd','concurrency','instanceType','uuid','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','kZqdN','region','bstackUsername','hubVersion','default','cTyHw','subnets','BMpKT','length','nGqWi','Found\x20Subnets:\x20','EsiNr','isVPCPresent','csLGS','warn','builder','Creating\x20namespace','ZGxba','vNGAZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oTcuL','Ergha','deleteCluster','BcdVO','JQpkC','Cybla','grid','1|2|3|4|0','uOrSi','12186210pTLjKC','TmkeN','message','Odely','UNOyL','pre-spawned-subnets-not-selected','eYSpa','password','LFHEA','LOG','sendResourceDataToHST','sendEventToBackend','statusCode','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','username','rPrlX','uHpTF','EBfpO','command','ehgse','\x27\x20grid\x20profile','Grid\x20can\x20be\x20accessed\x20at:\x20','1853574brOZFr','turboscale-managed-identity-','CRuLz','type','qNcUF','../../utils/createk8sClient','mEyrj','58537sopoqb','cluster-name','YPfAc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','413AVaiuT','EEJtf','private-grid','delay','YjQoH','clusterName','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid-profile','got','writeFileSync','YRxDV','WxJTd','requestId','private-ingress-nginx-controller','kpzpH','fHDYC','CEiuC','pre-spawned-invalid-vpc','grid-name','11754315TOWvTL','fetchLocalCreds','50EIWdpg','YlCpq','route53','updatePreSpawnedCluster','OWNHH','vLgqp','Found\x20VPC:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','../../utils/utilityMethods','DqDdU','YjICp','createdBy','../../config/constants','namespace','prespawned-cluster-args-not-passed','<UsernamePlaceholder>','mIAab','browserVersion','Grid\x20spawned\x20on\x20the\x20cluster','user','DJldo','NmfGg','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','mGTQg','create-grid-checks-grid-already-exists','3|5|6|0|8|4|1|7|2','bstackAccesskey','createOtherResources','https','NONfZ','create','dAXwI','Subnets:\x20','create-grid-checks-null-response','INFO','setupAutoscaler','gridName','CLI\x20run\x20started','VAsJK','QluSj','pblPl','GRdWe','Bpcpr','yNodW','pre-spawned-invalid-subnets','SzIfL','TTfAK','parse','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','atkfI','ingress-nginx','573264DkCRFD','goxaQ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','hWDiV','rlLcl','Pizcx','toLowerCase','Cluster\x20','<PasswordPlaceholder>','string','jHGkC','https://','defaultGridProfile','rbkUr','/packages/cli/get-grid-url?gridIdentifier=','MUkCx','existsSync','EiNjS','init-not-called','XUJCT','/wd/hub','koEos','QCNES','NtEHz','SJVyf','minNodes','bpRhY','argv','includes','mxSLV','pdXrA','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','true','VGDjC','exit','ithVj','usage','http','NDfLF','handler','Namespace\x20Created','ERROR','zVyNu','../../cloudproviders/utils','setupNewCluster','oysmO','metadata','CLI_RUN_STARTED','://','SpsIT','../../utils/webSocketUtils','rDhTO','../../utils/userInput','stjIy','Spawning\x20grid\x20on\x20to\x20the\x20cluster','nzfKO','name','VAgUh','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','WebSocket','cloud-provider','epilogue','fmuTz','get-grid-url-null-response','clusterRegion','BRTTh','uPOzh','get-grid-url-auth-failed','stack','\x20using\x20\x27','xXqXG','split','configureIfNotConfigured','connectionTimeout','OSWXx','rnCwx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Fqqsp','getResourceClientId','info','TjmdD','desc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','ingress-nginx-controller','readFileSync','Mqffh','gridProfile','foiEe','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','sFGUk','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ubkTp','yzdsh','QauQM','ELGam','ETkXQ','wCRiI','kDnGO','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','oiOii','Fnqmk','pGSTq','dzCGj','Create\x20a\x20private/public\x20grid.','5955460iKPWBd','readNamespacedService','getGridHostname','CzoDf','reconnecting-websocket','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','BDxOS','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','non-aws-azure-cluster','isPrivateGrid','RKmxw','../../config/logger','TGwrk','JbKwT','Will\x20be\x20spawning\x20the\x20grid\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','VokdA','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','rMmFK','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','description','stringify','Grid\x20profile\x20fetched\x20from\x20backend','FJoLc','dmOOv','\x20in\x20existing\x20cluster\x20\x27','Browserstack','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Create\x20a\x20new\x20Automation\x20grid.','iWuBY','EigUv','40952cqDpkd','jolGs','replace'];a9_0x3ab8=function(){return _0x4c4a18;};return a9_0x3ab8();}(function(_0x528336,_0x3866b4){const _0x27237c=a9_0x2546,_0x2ba96d=_0x528336();while(!![]){try{const _0xcbd463=parseInt(_0x27237c(0x2a2))/0x1*(-parseInt(_0x27237c(0x189))/0x2)+parseInt(_0x27237c(0x1bc))/0x3+parseInt(_0x27237c(0x225))/0x4+parseInt(_0x27237c(0x256))/0x5*(parseInt(_0x27237c(0x29b))/0x6)+-parseInt(_0x27237c(0x2a6))/0x7*(parseInt(_0x27237c(0x245))/0x8)+-parseInt(_0x27237c(0x187))/0x9+parseInt(_0x27237c(0x284))/0xa;if(_0xcbd463===_0x3866b4)break;else _0x2ba96d['push'](_0x2ba96d['shift']());}catch(_0x38ec08){_0x2ba96d['push'](_0x2ba96d['shift']());}}}(a9_0x3ab8,0xb80d8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x5110fc(0x229)),got=require(a9_0x5110fc(0x2ae)),{v4:uuidv4}=require(a9_0x5110fc(0x265)),webSocketUtils=require(a9_0x5110fc(0x1ee)),{logger}=require(a9_0x5110fc(0x231)),{inputCloudProviderKeys}=require(a9_0x5110fc(0x1f0)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5110fc(0x191)),{getCloudProviderObject}=require(a9_0x5110fc(0x1e7)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x5110fc(0x195)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x5110fc(0x2a0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x5110fc(0x297)]=a9_0x5110fc(0x281),exports[a9_0x5110fc(0x20d)]=a9_0x5110fc(0x242),exports[a9_0x5110fc(0x276)]=function(_0x4069b7){const _0x37056a=a9_0x5110fc,_0x28f57f={};_0x28f57f['iWuBY']=_0x37056a(0x21f),_0x28f57f['dmOOv']=_0x37056a(0x1c5),_0x28f57f['ehgse']=_0x37056a(0x235),_0x28f57f['ELGam']=_0x37056a(0x2a5),_0x28f57f[_0x37056a(0x212)]=_0x37056a(0x217),_0x28f57f['fHDYC']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x28f57f[_0x37056a(0x223)]=_0x37056a(0x224),_0x28f57f[_0x37056a(0x26c)]=_0x37056a(0x24b);const _0x1fafc6=_0x28f57f,_0x591cb9={};_0x591cb9['description']=_0x1fafc6[_0x37056a(0x243)],_0x591cb9[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x203dc6={};_0x203dc6[_0x37056a(0x23a)]=_0x1fafc6[_0x37056a(0x298)],_0x203dc6[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x2ae24c={};_0x2ae24c['description']=_0x1fafc6[_0x37056a(0x21b)],_0x2ae24c[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x209412={};_0x209412['description']=_0x1fafc6[_0x37056a(0x212)],_0x209412[_0x37056a(0x29e)]=_0x1fafc6['dmOOv'];const _0x54ccd2={};_0x54ccd2['description']=_0x1fafc6[_0x37056a(0x183)],_0x54ccd2['type']=_0x1fafc6[_0x37056a(0x23e)];const _0x2fc3b8={};_0x2fc3b8[_0x37056a(0x23a)]=_0x1fafc6['dzCGj'],_0x2fc3b8[_0x37056a(0x29e)]=_0x1fafc6[_0x37056a(0x23e)];const _0x13c826={};return _0x13c826[_0x37056a(0x186)]=_0x591cb9,_0x13c826[_0x37056a(0x2ad)]=_0x203dc6,_0x13c826[_0x37056a(0x2a3)]=_0x2ae24c,_0x13c826[_0x37056a(0x1f8)]=_0x209412,_0x13c826[_0x37056a(0x268)]=_0x54ccd2,_0x13c826[_0x37056a(0x2a8)]=_0x2fc3b8,_0x4069b7[_0x37056a(0x1e0)](HELP_HEADER_MESSAGE[_0x37056a(0x1a7)])[_0x37056a(0x1f9)](HELP_FOOTER_MESSAGE)['options'](_0x13c826)[_0x37056a(0x24b)](_0x1fafc6[_0x37056a(0x26c)])[_0x37056a(0x1d7)];},exports[a9_0x5110fc(0x1e3)]=async function(_0x4f3380){const _0x1ebc18=a9_0x5110fc,_0x5ec5af={'BcdVO':_0x1ebc18(0x257),'kpzpH':_0x1ebc18(0x1a5),'mbIgD':'7|3|1|8|4|6|2|5|0','JbKwT':_0x1ebc18(0x21f),'TPlLP':'string','CEiuC':_0x1ebc18(0x235),'vLgqp':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vMNAV':_0x1ebc18(0x217),'oiOii':_0x1ebc18(0x292),'QauQM':_0x1ebc18(0x224),'rFHaf':_0x1ebc18(0x24b),'tTxJX':_0x1ebc18(0x275),'YPfAc':_0x1ebc18(0x1e1),'SpsIT':function(_0x4777bd){return _0x4777bd();},'Pizcx':function(_0x38cd70){return _0x38cd70();},'CzoDf':function(_0x4c77e4,_0x5af3cc){return _0x4c77e4!==_0x5af3cc;},'ZxPHz':_0x1ebc18(0x207),'vXIwI':_0x1ebc18(0x27a),'rPrlX':function(_0x2aae74,_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9){return _0x2aae74(_0x3aa1e3,_0x5ecef3,_0x152318,_0x8d6fa8,_0x46cfe2,_0x28bed9);},'qNcUF':'create-grid-called','XUJCT':_0x1ebc18(0x1ce),'EiNjS':_0x1ebc18(0x198),'hWDiV':_0x1ebc18(0x1c4),'IjyBp':'Adding\x20Websocket\x20listeners','IjqfJ':function(_0x102f90,_0x56219f){return _0x102f90!==_0x56219f;},'bqiaQ':'GDLwW','csLGS':'xxCUn','hYipM':_0x1ebc18(0x1a6),'foiEe':_0x1ebc18(0x2a7),'SAiuX':_0x1ebc18(0x1b9),'QluSj':function(_0x1b1a6b,_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289){return _0x1b1a6b(_0x479eb7,_0x1900ae,_0x28fc69,_0xddcc28,_0x1b1ef5,_0x261dd9,_0x25f289);},'SzIfL':_0x1ebc18(0x197),'fmuTz':function(_0x3b0067,_0x376a72){return _0x3b0067===_0x376a72;},'SJVyf':_0x1ebc18(0x287),'uPOzh':'ZjwMx','ETkXQ':_0x1ebc18(0x239),'Uhzmd':function(_0x5ecfd1,_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083){return _0x5ecfd1(_0x5e101b,_0x56c147,_0x33fb41,_0x2dab05,_0x5e77ac,_0x47b693,_0x1c4083);},'bpRhY':_0x1ebc18(0x22e),'mZpye':_0x1ebc18(0x1dc),'nGqWi':_0x1ebc18(0x1c0),'jHGkC':function(_0x2c3520,_0x144449){return _0x2c3520!==_0x144449;},'pGSTq':_0x1ebc18(0x1f5),'UNOyL':function(_0x3ffa9b,_0xf84079){return _0x3ffa9b===_0xf84079;},'Fqqsp':_0x1ebc18(0x283),'llSBu':'GET','OWNHH':function(_0x458cc6,_0x1b3b60,_0x4a431b){return _0x458cc6(_0x1b3b60,_0x4a431b);},'TTfAK':_0x1ebc18(0x267),'yNodW':_0x1ebc18(0x24e),'rDhTO':_0x1ebc18(0x1aa),'kiYmu':_0x1ebc18(0x28c),'ZFpWt':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','smLIS':'create-grid-checks-auth-failed','TmkeN':function(_0x38509e,_0x51bf81){return _0x38509e===_0x51bf81;},'MfurH':_0x1ebc18(0x1fd),'EigUv':_0x1ebc18(0x1b2),'OnCJm':'create-grid-checks-non-200','nYULP':_0x1ebc18(0x23c),'ZhGXn':function(_0x1a0256,_0x19ab0a){return _0x1a0256===_0x19ab0a;},'VAsJK':'ApheZ','WxJTd':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','rbkUr':function(_0x2bdfc0,_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5){return _0x2bdfc0(_0xe4a44d,_0x454571,_0x3f3282,_0x66a0ec,_0x73572a,_0x21aff,_0x60b5);},'YlCpq':_0x1ebc18(0x1a1),'Fnqmk':_0x1ebc18(0x17e),'wCRiI':_0x1ebc18(0x1e9),'sFGUk':function(_0x48bd51,_0xab4e24){return _0x48bd51===_0xab4e24;},'ithVj':_0x1ebc18(0x1a8),'MUkCx':_0x1ebc18(0x1d3),'mxSLV':_0x1ebc18(0x22c),'kDnGO':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','qeWth':'create-grid-checks-invalid-profile','koEos':function(_0x1d206d,_0x3fce51){return _0x1d206d===_0x3fce51;},'mEyrj':_0x1ebc18(0x19e),'RKmxw':function(_0x274715,_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9){return _0x274715(_0x39eafa,_0x2986af,_0x4b8e8c,_0x479a2a,_0x46d40b,_0x1f0cdb,_0x2b52ce,_0x409115,_0x5a2afc,_0x525620,_0x477ea9);},'pMuOR':function(_0x5b2e73,_0x56abf0){return _0x5b2e73!==_0x56abf0;},'ygZaZ':'THMtX','mIAab':_0x1ebc18(0x219),'goxaQ':_0x1ebc18(0x1a2),'jolGs':function(_0x3b819f,_0x2f2214){return _0x3b819f===_0x2f2214;},'EBfpO':_0x1ebc18(0x215),'TGwrk':function(_0x2bf129,_0x59ddf7){return _0x2bf129===_0x59ddf7;},'vNGAZ':function(_0x461a98,_0x1666f6,_0x1bc843,_0x1d47df){return _0x461a98(_0x1666f6,_0x1bc843,_0x1d47df);},'HMXwl':_0x1ebc18(0x19f),'CRuLz':_0x1ebc18(0x291),'LVTBi':function(_0x4d87ea,_0x14017d){return _0x4d87ea!==_0x14017d;},'BMpKT':function(_0x286b8e,_0x25ad09){return _0x286b8e===_0x25ad09;},'xXqXG':_0x1ebc18(0x20e),'DJldo':function(_0x338743,_0x1111e2){return _0x338743!=_0x1111e2;},'PrfWg':function(_0x4566b4,_0x20f428){return _0x4566b4!==_0x20f428;},'DqDdU':function(_0x2608ab,_0x357807){return _0x2608ab>_0x357807;},'EsiNr':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','bGtNC':function(_0x36b23e,_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898){return _0x36b23e(_0x25bc0e,_0x582f53,_0x29f230,_0x27884c,_0xaf477b,_0x59e46c,_0x169898);},'Cybla':_0x1ebc18(0x289),'QCNES':function(_0x59147f,_0x4a2d2a){return _0x59147f===_0x4a2d2a;},'NUVdI':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NDfLF':_0x1ebc18(0x185),'FuPyP':function(_0x1f0715,_0x2cfe0a){return _0x1f0715===_0x2cfe0a;},'TjmdD':_0x1ebc18(0x1b5),'YjQoH':_0x1ebc18(0x282),'iiKLf':'Cluster\x20created\x20successfully','FJoLc':_0x1ebc18(0x22d),'pMYhI':function(_0x5b5328,_0x276c4c){return _0x5b5328===_0x276c4c;},'oTcuL':function(_0x28c55c,_0x533e76){return _0x28c55c(_0x533e76);},'nzfKO':function(_0x203659,_0x488e73){return _0x203659==_0x488e73;},'ubkTp':_0x1ebc18(0x277),'uHpTF':_0x1ebc18(0x26b),'atkfI':_0x1ebc18(0x240),'BomGy':_0x1ebc18(0x1e4),'JQpkC':'Namespace\x20created','zVyNu':_0x1ebc18(0x1f2),'VokdA':_0x1ebc18(0x190),'jjvpf':function(_0x216553,_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1){return _0x216553(_0x56419e,_0x1c2abf,_0x53e342,_0x1b56bc,_0x3c27f9,_0x28b1b0,_0x407662,_0x29b224,_0x1faa40,_0x15bbd1);},'Bpcpr':_0x1ebc18(0x19b),'GFmAB':_0x1ebc18(0x1db),'ZGxba':function(_0x13a2f2,_0x24e252,_0x5deb44,_0x890ce4,_0x48c741){return _0x13a2f2(_0x24e252,_0x5deb44,_0x890ce4,_0x48c741);},'WJlvn':function(_0x5421ac,_0x186bfb,_0x3afe1f){return _0x5421ac(_0x186bfb,_0x3afe1f);},'Ergha':_0x1ebc18(0x181),'VGDjC':_0x1ebc18(0x210),'stjIy':_0x1ebc18(0x1bb),'OSWXx':function(_0x12da79,_0xa9e84e,_0x32d927){return _0x12da79(_0xa9e84e,_0x32d927);},'ImahP':function(_0x31d8d1,_0x2c4522){return _0x31d8d1==_0x2c4522;},'rMmFK':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gMdmo':function(_0x278dca,_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb){return _0x278dca(_0x22fe6b,_0x13e167,_0xccf3df,_0x5639e9,_0x26905d,_0x36d51e,_0x4377cb);},'eYSpa':_0x1ebc18(0x1fb),'tYFrw':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','mGTQg':_0x1ebc18(0x1ff),'hdowz':function(_0x25a870,_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a){return _0x25a870(_0x17b660,_0x5c0394,_0x8c04e0,_0x31b35d,_0x5a73e6,_0x17f30c,_0x5ea28a);},'YjICp':'get-grid-url-non-200','pblPl':function(_0x154649,_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41){return _0x154649(_0x520f3d,_0x205ae0,_0x3530ae,_0x5f265a,_0x4b6d41);},'pdXrA':_0x1ebc18(0x25d)};let _0x401707=![],_0x3e855f,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6946,_0x2c6229,_0x3f9948,_0x3e1cbc,_0x4d23ef,_0x4248e7,_0x1c4e0f=0x1,_0x58c419=0xe;try{global_registry[_0x1ebc18(0x180)]=_0x5ec5af[_0x1ebc18(0x1ed)](uuidv4),global_registry[_0x1ebc18(0x22f)]=![];!fs[_0x1ebc18(0x1cc)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath))&&(_0x5ec5af[_0x1ebc18(0x228)](_0x5ec5af['ZxPHz'],_0x5ec5af['ZxPHz'])?_0x3344d0['cloudProvider']={}:(console[_0x1ebc18(0x257)](_0x5ec5af['vXIwI']),await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1cf)],null,_0x4f3380),process[_0x1ebc18(0x1de)](0x1)));await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1ab)],null,null,_0x4f3380);const _0x8ad0c5=JSON['parse'](fs[_0x1ebc18(0x211)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath)));global_registry[_0x1ebc18(0x269)]=_0x8ad0c5[_0x1ebc18(0x240)]['username'],global_registry[_0x1ebc18(0x1a3)]=_0x8ad0c5['Browserstack']['password'];const _0x4540e9=WS_ENDPOINT[_0x1ebc18(0x247)](_0x5ec5af[_0x1ebc18(0x1cd)],_0x8ad0c5['Browserstack'][_0x1ebc18(0x293)])['replace'](_0x5ec5af[_0x1ebc18(0x1bf)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),_0x4f18a4={};_0x4f18a4[_0x1ebc18(0x1f7)]=ws,_0x4f18a4[_0x1ebc18(0x205)]=0x36ee80,_0x3e1cbc=new ReconnectingWebSocket(_0x4540e9,[],_0x4f18a4),logger['debug'](_0x5ec5af['IjyBp']),webSocketUtils['addListeners'](_0x3e1cbc,_0x4f3380[_0x1ebc18(0x19c)],_0x4f3380[_0x1ebc18(0x28b)]);let _0x2ca59b=DEFAULT_GRID_NAME;(_0x4f3380[_0x1ebc18(0x2ab)]||_0x4f3380[_0x1ebc18(0x261)]||_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['IjqfJ'](_0x5ec5af['bqiaQ'],_0x5ec5af[_0x1ebc18(0x274)])?(!(_0x4f3380[_0x1ebc18(0x2ab)]&&_0x4f3380['cloudProvider']&&_0x4f3380[_0x1ebc18(0x268)])&&(_0x5ec5af['CzoDf'](_0x5ec5af['hYipM'],_0x5ec5af[_0x1ebc18(0x214)])?(_0x3e855f=_0x5ec5af['SAiuX'],await _0x5ec5af[_0x1ebc18(0x1b0)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1b6)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x227c2d[_0x1ebc18(0x22f)]=!![]),![AWS,AZURE,GCP][_0x1ebc18(0x1d8)](_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)]())&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1d4)],_0x5ec5af[_0x1ebc18(0x1fe)])?_0x258c9e[_0x1ebc18(0x257)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0xd31705+'\x20\x0a'+_0x1448a7[_0x1ebc18(0x23b)](_0xcde52a['stack'])):(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21c)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1d6)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1))),_0x4f3380[_0x1ebc18(0x254)]&&_0x5ec5af[_0x1ebc18(0x1fa)](_0x4f3380['privateGrid'][_0x1ebc18(0x1c2)](),_0x5ec5af[_0x1ebc18(0x24f)])&&(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x270)],_0x5ec5af[_0x1ebc18(0x270)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x3e0ba3=_0x437f27[_0xda5921[_0x1ebc18(0x213)]]),_0x401707=!![],_0x406c74=_0x4f3380[_0x1ebc18(0x2ab)],_0x1c492c=_0x4f3380['cloudProvider'][_0x1ebc18(0x1c2)](),_0x36e8e4=_0x4f3380[_0x1ebc18(0x268)]):_0x2f0845[_0x1ebc18(0x20b)]('Found\x20VPC:\x20'+_0x3123f8+'\x20'));if(_0x4f3380[_0x1ebc18(0x1ad)]){if(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x222)],_0x5ec5af[_0x1ebc18(0x222)])){const _0xbf54cc={};_0xbf54cc[_0x1ebc18(0x29e)]=_0x4d7401[_0x1ebc18(0x28d)],_0xbf54cc['message']=_0x411775,_0xc29500['sendEventToBackend'](_0x281c07,_0xbf54cc,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}else _0x2ca59b=_0x4f3380['gridName'];}_0x4f3380['gridProfile']&&(_0x5ec5af['UNOyL'](_0x5ec5af[_0x1ebc18(0x209)],_0x5ec5af[_0x1ebc18(0x209)])?global_registry[_0x1ebc18(0x213)]=_0x4f3380['gridProfile']:(_0x16e5f2=_0x4262b6['route53'],_0x1081c3=_0x5ec5af[_0x1ebc18(0x182)]));global_registry['gridName']=_0x2ca59b;const _0x535172={'method':_0x5ec5af['llSBu'],'headers':_0x5ec5af[_0x1ebc18(0x18d)](getAuthHeader,_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x293)],_0x8ad0c5[_0x1ebc18(0x240)][_0x1ebc18(0x28b)]),'throwHttpErrors':![]},_0x146099=_0x1ebc18(0x1c7)+AG_API_URL+'/packages/cli/create-grid-checks',_0x7bc92d={};_0x7bc92d[_0x1ebc18(0x1ad)]=_0x2ca59b;const _0x324154={'searchParams':_0x7bc92d,'throwHttpErrors':![],..._0x535172},_0x440496=_0x324154,_0x1de9e8=await _0x5ec5af[_0x1ebc18(0x18d)](got,_0x146099,_0x440496);if(_0x5ec5af[_0x1ebc18(0x288)](_0x1de9e8,null)||_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8,undefined)){if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x5ec5af[_0x1ebc18(0x1b7)],_0x5ec5af[_0x1ebc18(0x1b7)]))_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b4)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x1ef)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x9c9b44=_0x5ec5af[_0x1ebc18(0x24c)][_0x1ebc18(0x203)]('|');let _0x165808=0x0;while(!![]){switch(_0x9c9b44[_0x165808++]){case'0':_0x1c6a59[_0x1ebc18(0x19a)]=_0x4b6f21[_0x1ebc18(0x19a)];continue;case'1':_0x4e535a['info'](_0xa1092c);continue;case'2':_0x460ff8[_0x1ebc18(0x2ab)]=_0x5bf143;continue;case'3':_0x4a3931='Spawning\x20the\x20grid\x20'+_0x55d995+_0x1ebc18(0x23f)+_0x39b715+'\x27';continue;case'4':_0x51412e[_0x1ebc18(0x261)]=_0x14722d;continue;case'5':_0x30c42c[_0x1ebc18(0x26a)]=_0xd1a507[_0x1ebc18(0x26a)];continue;case'6':_0x5e517f[_0x1ebc18(0x1fc)]=_0x54488b;continue;case'7':const _0x416898={};_0x416898['type']=_0x6212c2['CLI_RUN_STARTED'],_0x416898[_0x1ebc18(0x286)]=_0x1ebc18(0x1ae),_0x53862a[_0x1ebc18(0x28f)](_0x1edc44,_0x416898);continue;case'8':const _0x19558d={};_0x19558d[_0x1ebc18(0x29e)]=_0x2c459d[_0x1ebc18(0x28d)],_0x19558d[_0x1ebc18(0x286)]=_0x284994,_0xa001d8[_0x1ebc18(0x28f)](_0x6316fc,_0x19558d);continue;}break;}}}if(_0x5ec5af[_0x1ebc18(0x1fa)](_0x1de9e8[_0x1ebc18(0x290)],0x191)){if(_0x5ec5af[_0x1ebc18(0x288)](_0x5ec5af['kiYmu'],_0x5ec5af['kiYmu']))_0x3e855f=_0x5ec5af['ZFpWt'],await _0x5ec5af['Uhzmd'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['smLIS'],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);else{const _0x35ef8d={};_0x35ef8d[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x233)],_0x35ef8d[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x420849={};_0x420849['description']=_0x5ec5af[_0x1ebc18(0x184)],_0x420849['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x3c3d36={};_0x3c3d36[_0x1ebc18(0x23a)]=_0x5ec5af[_0x1ebc18(0x18e)],_0x3c3d36[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0xf6d42b={};_0xf6d42b[_0x1ebc18(0x23a)]=_0x5ec5af['vMNAV'],_0xf6d42b['type']=_0x5ec5af[_0x1ebc18(0x25c)];const _0x112b4d={};_0x112b4d['description']=_0x5ec5af[_0x1ebc18(0x220)],_0x112b4d[_0x1ebc18(0x29e)]=_0x5ec5af[_0x1ebc18(0x25c)];const _0x2a95f3={};_0x2a95f3['description']=_0x5ec5af[_0x1ebc18(0x21a)],_0x2a95f3[_0x1ebc18(0x29e)]=_0x5ec5af['TPlLP'];const _0x6e5953={};return _0x6e5953[_0x1ebc18(0x186)]=_0x35ef8d,_0x6e5953[_0x1ebc18(0x2ad)]=_0x420849,_0x6e5953[_0x1ebc18(0x2a3)]=_0x3c3d36,_0x6e5953[_0x1ebc18(0x1f8)]=_0xf6d42b,_0x6e5953['region']=_0x112b4d,_0x6e5953[_0x1ebc18(0x2a8)]=_0x2a95f3,_0x136328[_0x1ebc18(0x1e0)](_0x5acf50['create'])[_0x1ebc18(0x1f9)](_0x5411be)[_0x1ebc18(0x258)](_0x6e5953)[_0x1ebc18(0x24b)](_0x5ec5af['rFHaf'])[_0x1ebc18(0x1d7)];}}if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x1de9e8['statusCode'],0xc8)){if(_0x5ec5af[_0x1ebc18(0x285)](_0x5ec5af['MfurH'],_0x5ec5af[_0x1ebc18(0x244)])){const _0x3da469={};_0x3da469[_0x1ebc18(0x29e)]=_0x388f73[_0x1ebc18(0x28d)],_0x3da469[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x1dde5a+_0x1ebc18(0x22a),_0xeb9622[_0x1ebc18(0x28f)](_0x16611b,_0x3da469,_0x5ec5af[_0x1ebc18(0x250)]),_0x32ba57[_0x1ebc18(0x20b)](_0x1ebc18(0x1c3)+_0x85f3ef+_0x1ebc18(0x22a)),_0x5f3947=!![];}else _0x3e855f=_0x1ebc18(0x1be)+JSON[_0x1ebc18(0x23b)](_0x1de9e8),await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x25e)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1);}const _0x1f8161=JSON[_0x1ebc18(0x1b8)](_0x1de9e8['body']),_0x3d143f={};_0x3d143f['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x3d143f['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x3d143f);const _0x271858={};_0x271858['type']=WS_EVENTS['LOG'],_0x271858[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x248)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x271858);_0x1f8161['alreadyPresent']&&(_0x5ec5af['ZhGXn'](_0x5ec5af[_0x1ebc18(0x1af)],_0x5ec5af[_0x1ebc18(0x1af)])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x17f)],await _0x5ec5af['rbkUr'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x18a)],_0x5ec5af[_0x1ebc18(0x27e)]),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):_0x41f745['info'](_0x1ebc18(0x271)+_0x2da38a[_0x1ebc18(0x23b)](_0x290bf4)+'\x20'));const _0x1b7d9c=_0x1f8161['gridProfiles'];let _0x353171=_0x1b7d9c[_0x1f8161[_0x1ebc18(0x1c8)]];_0x4f3380[_0x1ebc18(0x213)]&&(_0x5ec5af['jHGkC'](_0x5ec5af[_0x1ebc18(0x221)],_0x5ec5af[_0x1ebc18(0x21d)])?_0x353171=_0x1b7d9c[_0x4f3380['gridProfile']]:_0x3fc06d[_0x1ebc18(0x22f)]=!![]);if(_0x5ec5af[_0x1ebc18(0x216)](_0x401707,![])){if(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1df)],_0x5ec5af[_0x1ebc18(0x1cb)])){_0x5ec5af[_0x1ebc18(0x1fa)](_0x353171,undefined)&&(_0x5ec5af[_0x1ebc18(0x1c6)](_0x5ec5af[_0x1ebc18(0x1d9)],_0x5ec5af[_0x1ebc18(0x1d9)])?_0xa23763[_0x1ebc18(0x28e)]():(_0x3e855f=_0x5ec5af[_0x1ebc18(0x21e)],await _0x5ec5af[_0x1ebc18(0x262)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af['qeWth'],_0x5ec5af['BcdVO']),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)));global_registry['gridProfileId']=_0x353171['id'],_0x3e855f=_0x1ebc18(0x234)+_0x2ca59b+_0x1ebc18(0x201)+_0x353171[_0x1ebc18(0x1f4)]+_0x1ebc18(0x299),logger['info'](_0x3e855f);const _0x1e22a2={};_0x1e22a2[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x1e22a2[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x1e22a2),_0x1c492c=_0x353171['cloudProvider'],_0x406c74=_0x353171[_0x1ebc18(0x2ab)],_0x36e8e4=_0x353171['region'],_0x334135=_0x353171[_0x1ebc18(0x263)],_0x2e7315=_0x353171[_0x1ebc18(0x264)],_0x2c6946=_0x353171[_0x1ebc18(0x249)],securityGroups=_0x353171['securityGroups'],subnets=_0x353171[_0x1ebc18(0x26d)],_0x2c6229=_0x353171[_0x1ebc18(0x259)],_0x1c4e0f=_0x353171[_0x1ebc18(0x1d5)],_0x58c419=_0x353171['maxNodes'],_0x4d23ef=_0x1f8161[_0x1ebc18(0x26a)],_0x4248e7=_0x1f8161[_0x1ebc18(0x19a)],_0x5ec5af[_0x1ebc18(0x1c6)](_0x353171['privateGrid'],undefined)&&_0x353171[_0x1ebc18(0x254)]&&(_0x5ec5af['koEos'](_0x5ec5af['mEyrj'],_0x5ec5af[_0x1ebc18(0x2a1)])?global_registry[_0x1ebc18(0x22f)]=!![]:_0x586023[_0x1ebc18(0x213)]=_0x54e7c0['gridProfile']),_0x5ec5af[_0x1ebc18(0x230)](updateGlobalRegistryWithConfig,_0x1c492c,_0x406c74,_0x36e8e4,_0x334135,_0x2e7315,_0x2c6229,_0x353171,_0x4d23ef,_0x4248e7,_0x1c4e0f,_0x58c419);}else _0xa7f8b9=_0x43fa5b[_0x1ebc18(0x1ad)];}else{if(_0x5ec5af[_0x1ebc18(0x24d)](_0x5ec5af['ygZaZ'],_0x5ec5af[_0x1ebc18(0x199)])){const _0x67b50e=_0x5ec5af[_0x1ebc18(0x1bd)]['split']('|');let _0x47550c=0x0;while(!![]){switch(_0x67b50e[_0x47550c++]){case'0':const _0x490e62={};_0x490e62[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x490e62[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x490e62);continue;case'1':global_registry[_0x1ebc18(0x2ab)]=_0x406c74;continue;case'2':global_registry['browserVersion']=_0x1f8161[_0x1ebc18(0x19a)];continue;case'3':const _0x438ba9={};_0x438ba9[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x1eb)],_0x438ba9['message']=_0x1ebc18(0x1ae),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x438ba9);continue;case'4':global_registry['clusterRegion']=_0x36e8e4;continue;case'5':_0x3e855f='Spawning\x20the\x20grid\x20'+_0x2ca59b+_0x1ebc18(0x23f)+_0x406c74+'\x27';continue;case'6':logger[_0x1ebc18(0x20b)](_0x3e855f);continue;case'7':global_registry[_0x1ebc18(0x26a)]=_0x1f8161[_0x1ebc18(0x26a)];continue;case'8':global_registry['cloudProvider']=_0x1c492c;continue;}break;}}else _0x362438=_0x5ec5af[_0x1ebc18(0x2a4)];}const _0x6f6981=await _0x5ec5af[_0x1ebc18(0x294)](getCloudProviderObject,_0x1c492c,_0x406c74,_0x2ca59b,_0x3e1cbc,webSocketUtils,_0x4f3380),_0x185e10=_0x8ad0c5[_0x1ebc18(0x261)]||{};if(_0x5ec5af['jolGs'](_0x185e10[_0x1c492c],undefined)){logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x296)]);_0x5ec5af[_0x1ebc18(0x232)](_0x8ad0c5['cloudProvider'],undefined)&&(_0x8ad0c5[_0x1ebc18(0x261)]={});_0x8ad0c5[_0x1ebc18(0x261)][_0x1c492c]={};const _0x28b201=await _0x5ec5af[_0x1ebc18(0x279)](inputCloudProviderKeys,_0x1c492c,_0x8ad0c5,_0x6f6981);fs[_0x1ebc18(0x2af)](_0x5ec5af[_0x1ebc18(0x1c1)](getCredentialsPath),JSON[_0x1ebc18(0x23b)](_0x28b201)),logger['debug'](_0x5ec5af[_0x1ebc18(0x255)]);}else{_0x3e855f=_0x5ec5af[_0x1ebc18(0x29d)];const _0x48c60c={};_0x48c60c[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x48c60c['message']=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x48c60c),logger[_0x1ebc18(0x20b)](_0x3e855f),await _0x6f6981[_0x1ebc18(0x188)](_0x185e10);}_0x6f6981[_0x1ebc18(0x204)]();_0x5ec5af['LVTBi'](_0x1c492c,AZURE)&&_0x6f6981[_0x1ebc18(0x28e)]();let _0xacea99;if(_0x5ec5af[_0x1ebc18(0x26e)](_0x401707,![])){_0x3e855f=_0x1ebc18(0x2ac)+_0x36e8e4+').';const _0x23ae3d={};_0x23ae3d['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x23ae3d[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x23ae3d),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0xab175c=await _0x6f6981[_0x1ebc18(0x24a)]();if(_0xab175c){const _0x38dc81={};_0x38dc81[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x38dc81[_0x1ebc18(0x286)]=_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a),webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x38dc81,_0x5ec5af[_0x1ebc18(0x250)]),logger['info'](_0x1ebc18(0x1c3)+_0x406c74+_0x1ebc18(0x22a)),_0x401707=!![];}else{const _0x49d2bb={};_0x49d2bb[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x49d2bb['message']=_0x5ec5af[_0x1ebc18(0x202)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x49d2bb),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x202)]);const _0x2596aa=_0x5ec5af['DJldo'](_0x2c6946,null)&&_0x5ec5af['PrfWg'](_0x2c6946,undefined),_0x1884ce=_0x5ec5af[_0x1ebc18(0x19d)](subnets,null)&&_0x5ec5af['CzoDf'](subnets,undefined)&&_0x5ec5af[_0x1ebc18(0x192)](subnets[_0x1ebc18(0x26f)],0x0);if(_0x2596aa){_0x5ec5af[_0x1ebc18(0x1d1)](_0x1884ce,![])&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x272)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x280)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1));const _0x2379e2=await _0x6f6981[_0x1ebc18(0x273)](_0x2c6946);_0x5ec5af[_0x1ebc18(0x1d2)](_0x2379e2,![])?(_0x3e855f=_0x5ec5af[_0x1ebc18(0x251)],await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1e2)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process['exit'](0x1)):logger[_0x1ebc18(0x20b)](_0x1ebc18(0x18f)+_0x2c6946+'\x20');const _0x3f007e=await _0x6f6981[_0x1ebc18(0x253)](subnets,_0x2c6946);_0x5ec5af['FuPyP'](_0x3f007e[0x0],![])?(_0x3e855f=_0x1ebc18(0x1a9)+JSON['stringify'](_0x3f007e[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2c6946+_0x1ebc18(0x266),await _0x5ec5af[_0x1ebc18(0x252)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes['ERROR'],_0x5ec5af['qNcUF'],_0x5ec5af[_0x1ebc18(0x20c)],_0x5ec5af[_0x1ebc18(0x27e)]),logger['error'](_0x3e855f),process[_0x1ebc18(0x1de)](0x1)):logger['info'](_0x1ebc18(0x271)+JSON['stringify'](subnets)+'\x20'),await _0x6f6981[_0x1ebc18(0x1e8)](_0x2c6946,subnets);}else{const _0xd8478b=_0x5ec5af[_0x1ebc18(0x2aa)][_0x1ebc18(0x203)]('|');let _0x5c75bf=0x0;while(!![]){switch(_0xd8478b[_0x5c75bf++]){case'0':logger[_0x1ebc18(0x20b)](_0x5ec5af['iiKLf']);continue;case'1':const _0x125f57={};_0x125f57[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x125f57[_0x1ebc18(0x286)]=_0x5ec5af['FJoLc'],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x125f57);continue;case'2':logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x23d)]);continue;case'3':await _0x6f6981[_0x1ebc18(0x1e8)]();continue;case'4':const _0x4754ae={};_0x4754ae['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x4754ae[_0x1ebc18(0x286)]='Cluster\x20created\x20successfully',webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x4754ae);continue;}break;}}}}_0x401707&&_0x5ec5af[_0x1ebc18(0x260)](_0x1c492c,AZURE)&&(await _0x6f6981[_0x1ebc18(0x18c)](),await _0x6f6981[_0x1ebc18(0x1a4)]());const [_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x30df9f,_0x13d6c0]=await _0x5ec5af['oTcuL'](createK8sClient,_0x6f6981);_0x5ec5af[_0x1ebc18(0x246)](_0x401707,![])&&_0x5ec5af[_0x1ebc18(0x1f3)](_0x1c492c,AWS)&&(global_registry['isNewAWSCluster']=!![],_0xacea99=await _0x6f6981[_0x1ebc18(0x1ac)](_0x6ab267,_0x4f3380));try{_0x3f9948=_0x5ec5af[_0x1ebc18(0x27b)](kebabCase,_0x2ca59b),logger[_0x1ebc18(0x20b)](_0x5ec5af['ubkTp']);const _0x34fe22={};_0x34fe22[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x34fe22[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x218)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x34fe22);if(_0x5ec5af[_0x1ebc18(0x228)](_0x3f9948,_0x5ec5af[_0x1ebc18(0x295)])){const _0x2486d6={};_0x2486d6[_0x1ebc18(0x194)]=_0x5ec5af['atkfI'],_0x2486d6['managedBy']=_0x5ec5af[_0x1ebc18(0x1ba)];const _0x39ad57={};_0x39ad57['name']=_0x3f9948,_0x39ad57['annotations']=_0x2486d6;const _0x173141={};_0x173141[_0x1ebc18(0x1ea)]=_0x39ad57;let _0x117860=_0x173141;const _0x188577={};_0x188577[_0x1ebc18(0x20f)]=_0x117860,await _0x6ab267['createNamespace'](_0x188577),logger[_0x1ebc18(0x20b)](_0x5ec5af['BomGy']);}const _0x422e47={};_0x422e47[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x422e47[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x27f)],webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x422e47);const _0x44114f={};_0x44114f[_0x1ebc18(0x29e)]=WS_EVENTS['LOG'],_0x44114f[_0x1ebc18(0x286)]=_0x5ec5af[_0x1ebc18(0x1e6)],webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x44114f),logger[_0x1ebc18(0x20b)](_0x5ec5af[_0x1ebc18(0x236)]);let _0x10fba1={};_0x5ec5af[_0x1ebc18(0x1fa)](_0x1c492c,AZURE)&&(_0x10fba1={'clientId':await _0x6f6981[_0x1ebc18(0x20a)](_0x1ebc18(0x29c)+_0x406c74)});await _0x5ec5af['jjvpf'](addGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948,_0x406c74,_0xacea99,_0x30df9f,_0x13d6c0,_0x10fba1),_0x3e855f=_0x5ec5af[_0x1ebc18(0x1b3)],logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x527e64={};_0x527e64[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x527e64[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x527e64),_0x3e855f=_0x5ec5af[_0x1ebc18(0x25f)],logger['info'](_0x3e855f);const _0x4a2218={};_0x4a2218[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x4a2218[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x4a2218),await _0x5ec5af[_0x1ebc18(0x278)](waitForDeployment,_0xc78ecd,_0x3f9948,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4bced1=await _0x5ec5af[_0x1ebc18(0x25a)](getNamespaceUID,_0x6ab267,_0x3f9948);let _0x59ddaf=global_registry[_0x1ebc18(0x22f)]?_0x5ec5af[_0x1ebc18(0x27c)]:_0x5ec5af[_0x1ebc18(0x1dd)];const _0x2579e4={};_0x2579e4[_0x1ebc18(0x1f4)]=_0x59ddaf,_0x2579e4[_0x1ebc18(0x196)]=_0x5ec5af[_0x1ebc18(0x1f1)];let _0x2d9227=await _0x6ab267[_0x1ebc18(0x226)](_0x2579e4),_0xe1d017=_0x6f6981[_0x1ebc18(0x227)](_0x2d9227)+'/'+_0x3f9948,_0x1f0ea0=_0x5ec5af['YPfAc'];try{const _0x59cc3a='https://'+AG_API_URL+_0x1ebc18(0x1ca)+_0x4bced1,_0x347d09=await _0x5ec5af[_0x1ebc18(0x206)](got,_0x59cc3a,_0x535172);(_0x5ec5af[_0x1ebc18(0x1f3)](_0x347d09,null)||_0x5ec5af['ImahP'](_0x347d09,undefined))&&(_0x3e855f=_0x5ec5af[_0x1ebc18(0x238)],await _0x5ec5af['gMdmo'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x28a)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));_0x5ec5af[_0x1ebc18(0x285)](_0x347d09[_0x1ebc18(0x290)],0x191)&&(_0x3e855f=_0x5ec5af['tYFrw'],await _0x5ec5af[_0x1ebc18(0x1c9)](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x1a0)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process['exit'](0x1));_0x5ec5af[_0x1ebc18(0x24d)](_0x347d09['statusCode'],0xc8)&&(_0x3e855f=_0x1ebc18(0x237)+JSON[_0x1ebc18(0x23b)](_0x347d09),await _0x5ec5af['hdowz'](reportToGalactusAndSendToEDS,_0x4f3380,_0x3e1cbc,_0x3e855f,messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x29f)],_0x5ec5af[_0x1ebc18(0x193)],_0x5ec5af['BcdVO']),logger[_0x1ebc18(0x257)](_0x3e855f),process[_0x1ebc18(0x1de)](0x1));const _0x4055b2=JSON[_0x1ebc18(0x1b8)](_0x347d09[_0x1ebc18(0x20f)]);_0x4055b2['route53']&&(_0xe1d017=_0x4055b2[_0x1ebc18(0x18b)],_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x182)]),global_registry[_0x1ebc18(0x22f)]&&(_0x1f0ea0=_0x5ec5af[_0x1ebc18(0x2a4)]);}catch(_0x24df2d){}_0x3e855f=_0x1ebc18(0x29a)+_0xe1d017+'\x20',logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x2c3b86={};_0x2c3b86['type']=WS_EVENTS[_0x1ebc18(0x28d)],_0x2c3b86[_0x1ebc18(0x286)]=_0x3e855f,webSocketUtils[_0x1ebc18(0x28f)](_0x3e1cbc,_0x2c3b86),_0x3e855f=_0x1ebc18(0x22b)+_0x1f0ea0+_0x1ebc18(0x1ec)+_0xe1d017+_0x1ebc18(0x1d0),logger[_0x1ebc18(0x20b)](_0x3e855f);const _0x73eb35={};_0x73eb35[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x73eb35['message']=_0x3e855f,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x73eb35);const _0x1af10b={};_0x1af10b[_0x1ebc18(0x29e)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x1af10b['message']='CLI\x20run\x20finished:\x20'+_0xe1d017,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x1af10b),await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);}catch(_0x314408){logger['error'](_0x1ebc18(0x1f6)+_0x314408+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x314408[_0x1ebc18(0x200)]));if(_0x5ec5af[_0x1ebc18(0x260)](_0x401707,![]))try{logger[_0x1ebc18(0x20b)](_0x1ebc18(0x25b)),await _0x5ec5af[_0x1ebc18(0x1b1)](removeGridComponents,_0x6ab267,_0xc78ecd,_0x101f8d,_0x11043f,_0x3f9948),await _0x6f6981[_0x1ebc18(0x27d)](_0x6ab267,global_registry[_0x1ebc18(0x1fc)]);}catch(_0x51c404){logger[_0x1ebc18(0x257)](_0x1ebc18(0x208)+_0x51c404+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x51c404[_0x1ebc18(0x200)]));}throw _0x314408;}}catch(_0x2bf341){const _0xe45d72=_0x1ebc18(0x241)+_0x2bf341+'\x20\x0a'+JSON[_0x1ebc18(0x23b)](_0x2bf341[_0x1ebc18(0x200)]);if(_0x3e1cbc){const _0x468df5={};_0x468df5[_0x1ebc18(0x29e)]=WS_EVENTS[_0x1ebc18(0x28d)],_0x468df5[_0x1ebc18(0x286)]=_0xe45d72,webSocketUtils['sendEventToBackend'](_0x3e1cbc,_0x468df5,_0x5ec5af[_0x1ebc18(0x27e)],!![]);}await webSocketUtils[_0x1ebc18(0x2a9)](0x7d0);const _0x499325={};_0x499325[_0x1ebc18(0x257)]=_0xe45d72,await _0x5ec5af[_0x1ebc18(0x294)](sendInstrumentationEvent,_0x4f3380,_0x5ec5af[_0x1ebc18(0x29f)],messageTypes[_0x1ebc18(0x1e5)],_0x5ec5af[_0x1ebc18(0x1da)],_0x499325,_0x4f3380),logger[_0x1ebc18(0x257)](_0xe45d72);}process[_0x1ebc18(0x1de)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a10_0x23d7(){const _0x1795fd=['kQeLu','command','16MeNqtD','help','demandCommand','1095591yWdQlu','10ykPDsD','eWOTZ','epilogue','11531gCrSKg','64TjwYNX','List\x20Grid\x20resources.','34136080DvbMJw','handler','desc','../config/constants','recommendCommands','delete_commands','13107762TFWeQw','delete','157278ffhFjR','usage','9334692stQAnd','687460Zssmig','222SEAoTp'];a10_0x23d7=function(){return _0x1795fd;};return a10_0x23d7();}const a10_0x2bd486=a10_0x1644;function a10_0x1644(_0x2ff49b,_0x194a84){const _0x23d7b4=a10_0x23d7();return a10_0x1644=function(_0x1644e9,_0x153770){_0x1644e9=_0x1644e9-0x148;let _0x241bf8=_0x23d7b4[_0x1644e9];return _0x241bf8;},a10_0x1644(_0x2ff49b,_0x194a84);}(function(_0x26611b,_0x2e8fb2){const _0x4679ef=a10_0x1644,_0x5509d6=_0x26611b();while(!![]){try{const _0x438046=-parseInt(_0x4679ef(0x14d))/0x1*(-parseInt(_0x4679ef(0x15c))/0x2)+parseInt(_0x4679ef(0x158))/0x3*(-parseInt(_0x4679ef(0x14e))/0x4)+parseInt(_0x4679ef(0x15b))/0x5+parseInt(_0x4679ef(0x15a))/0x6+-parseInt(_0x4679ef(0x149))/0x7*(-parseInt(_0x4679ef(0x15f))/0x8)+-parseInt(_0x4679ef(0x156))/0x9*(-parseInt(_0x4679ef(0x14a))/0xa)+-parseInt(_0x4679ef(0x150))/0xb;if(_0x438046===_0x2e8fb2)break;else _0x5509d6['push'](_0x5509d6['shift']());}catch(_0x14be86){_0x5509d6['push'](_0x5509d6['shift']());}}}(a10_0x23d7,0xc3733));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x2bd486(0x153));exports[a10_0x2bd486(0x15e)]=a10_0x2bd486(0x157),exports[a10_0x2bd486(0x152)]=a10_0x2bd486(0x14f),exports['builder']=function(_0x98a74d){const _0xc24e5b=a10_0x2bd486,_0x53665d={};_0x53665d['eWOTZ']=_0xc24e5b(0x155),_0x53665d[_0xc24e5b(0x15d)]=_0xc24e5b(0x160);const _0x398d3c=_0x53665d;return _0x98a74d[_0xc24e5b(0x159)](HELP_HEADER_MESSAGE[_0xc24e5b(0x157)])[_0xc24e5b(0x14c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x398d3c[_0xc24e5b(0x14b)])[_0xc24e5b(0x148)]()[_0xc24e5b(0x154)]()['strict']()['help'](_0x398d3c[_0xc24e5b(0x15d)]);},exports[a10_0x2bd486(0x151)]=function(_0x4804d6){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0x1548(_0xa067e9,_0x3da472){const _0x18aea7=a11_0x18ae();return a11_0x1548=function(_0x154811,_0x3bd7ae){_0x154811=_0x154811-0x117;let _0x149108=_0x18aea7[_0x154811];return _0x149108;},a11_0x1548(_0xa067e9,_0x3da472);}const a11_0x21924c=a11_0x1548;(function(_0x50df70,_0x58fe83){const _0x36df4c=a11_0x1548,_0x15c628=_0x50df70();while(!![]){try{const _0x436714=parseInt(_0x36df4c(0x199))/0x1+parseInt(_0x36df4c(0x1a1))/0x2+-parseInt(_0x36df4c(0x1a8))/0x3*(parseInt(_0x36df4c(0x16b))/0x4)+parseInt(_0x36df4c(0x133))/0x5+-parseInt(_0x36df4c(0x15d))/0x6*(parseInt(_0x36df4c(0x134))/0x7)+parseInt(_0x36df4c(0x123))/0x8+parseInt(_0x36df4c(0x18c))/0x9*(-parseInt(_0x36df4c(0x132))/0xa);if(_0x436714===_0x58fe83)break;else _0x15c628['push'](_0x15c628['shift']());}catch(_0x14ddf5){_0x15c628['push'](_0x15c628['shift']());}}}(a11_0x18ae,0x8952b));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_0x21924c(0x153)),{logger}=require(a11_0x21924c(0x19d)),{getCloudProviderObject}=require(a11_0x21924c(0x12e)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x21924c(0x1a3)),{sendInstrumentationEvent}=require(a11_0x21924c(0x152)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x21924c(0x14d)),{createK8sClient}=require(a11_0x21924c(0x183)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods');function a11_0x18ae(){const _0x5c1e9f=['zMfUM','cloudProvider','server-error','AMKmi','../../utils/instrumentationUtils','../../config/constants','type','Ycobg','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','fetchLocalCreds','CRHKp','aijdv','dZxjI','toLowerCase','requestId','17718eRvGXH','handler','ZnmDx','init-not-called','usage','Delete\x20an\x20Automation\x20grid.','name','options','wHfoH','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','fEZdX','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','message','iZFqX','82796sxRPDw','/packages/cli/grid/','unauthorised','pVwAw','PPIKr','sHJVG','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','catch','eNPgt','MHNYh','cVhDv','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','gridId','string','cxkeM','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Failed\x20to\x20delete\x20resources!\x20Error:\x20','https://','info','eMQal','delete','zlzpF','deleteCluster','../../utils/createk8sClient','qWtlB','xPdKE','cESpS','stringify','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','isClusterPresent','GQzgu','clusterName','45MYoFMw','epilogue','DelJr','readNamespace','gJCUR','AMChD','configureIfNotConfigured','error','oGZxb','sxnUw','warn','lGlvA','grid-id','319436pFoMcA','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','then','DOqPh','../../config/logger','oYXis','gXCYw','ERROR','1507906wvYfUb','nDrUb','../../utils/gridComponents','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','Successfully\x20deleted\x20the\x20grid','aqLEz','stack','132NEzeBK','UZSak','lmMFH','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','tWKIV','RgHIc','command','KWdjZ','password','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','help','body','onlyGridInCluster','Namespace:\x20','PIlBy','fRpYY','GPPRX','pRYlu','oskck','yaaEy','\x22\x20with\x20ID\x20','eAayf','5382712RdMjHc','DELETE','HOYeI','region','invalid-input','clusterRegion','statusCode','clusterId','exit','FhRCg','SjqvE','../../cloudproviders/utils','username','QnynL','grid','1370730bCKbkO','4911485AJmpLI','1351RAzGFt','clusterSpawnedVia','\x22\x20and\x20ID\x20','debug','argv','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','qHSNO','Browserstack','nIMqe','eYiwl','cttFf','writeFileSync','parse','sqtTM','unknown-error','acqKn','Cluster:\x20','Pass\x20the\x20ID\x20of\x20the\x20Grid','cmDdB','dplop','INFO','YedVZ','builder','pXgGa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/userInput'];a11_0x18ae=function(){return _0x5c1e9f;};return a11_0x18ae();}exports[a11_0x21924c(0x1ae)]=a11_0x21924c(0x131),exports['desc']=a11_0x21924c(0x162),exports[a11_0x21924c(0x14a)]=function(_0x4f63f8){const _0x33844d=a11_0x21924c,_0x163473={};_0x163473['DelJr']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x163473[_0x33844d(0x149)]=_0x33844d(0x178),_0x163473[_0x33844d(0x1a2)]=_0x33844d(0x117);const _0x2ad1f4=_0x163473,_0x544c71={};_0x544c71['description']=_0x2ad1f4[_0x33844d(0x18e)],_0x544c71[_0x33844d(0x154)]=_0x2ad1f4['YedVZ'];const _0x51b31f={};return _0x51b31f['grid-id']=_0x544c71,_0x4f63f8[_0x33844d(0x161)](HELP_HEADER_MESSAGE[_0x33844d(0x180)])[_0x33844d(0x18d)](HELP_FOOTER_MESSAGE)[_0x33844d(0x164)](_0x51b31f)['help'](_0x2ad1f4[_0x33844d(0x1a2)])[_0x33844d(0x138)];},exports[a11_0x21924c(0x15e)]=async function(_0x2e6ff9){const _0x5a47ac=a11_0x21924c,_0x3a8807={'cdmOF':_0x5a47ac(0x139),'MPAeb':_0x5a47ac(0x145),'fMKOR':'string','oGZxb':_0x5a47ac(0x117),'DOqPh':function(_0x3a705c,_0x305d55){return _0x3a705c!==_0x305d55;},'cxkeM':_0x5a47ac(0x175),'KWdjZ':'wOTXu','GQzgu':function(_0x566951,_0x530268){return _0x566951===_0x530268;},'sxnUw':_0x5a47ac(0x122),'tpqey':function(_0x82cfba){return _0x82cfba();},'AMKmi':function(_0x79dc2){return _0x79dc2();},'gXCYw':'cnSps','CRHKp':_0x5a47ac(0x14c),'eNPgt':function(_0xef5d3f,_0x2b8bcb,_0xaab375,_0x5553b2,_0x1b0b0a,_0x50a126,_0x2f80a3){return _0xef5d3f(_0x2b8bcb,_0xaab375,_0x5553b2,_0x1b0b0a,_0x50a126,_0x2f80a3);},'qHSNO':'delete-grid-called','JcfeH':_0x5a47ac(0x160),'zlzpF':function(_0x451171,_0x315c03,_0x1c9c82,_0x54e389,_0x3df847,_0x33bf14,_0x2db770){return _0x451171(_0x315c03,_0x1c9c82,_0x54e389,_0x3df847,_0x33bf14,_0x2db770);},'lmMFH':function(_0x2167f6,_0x1822be){return _0x2167f6!==_0x1822be;},'IbqLC':_0x5a47ac(0x146),'iZFqX':_0x5a47ac(0x11b),'SjqvE':function(_0x4bc93a){return _0x4bc93a();},'oYXis':function(_0x49d210,_0x4937ee,_0x5e9d75,_0x52634c){return _0x49d210(_0x4937ee,_0x5e9d75,_0x52634c);},'sHJVG':function(_0x4ab79b,_0xdea616){return _0x4ab79b===_0xdea616;},'PPIKr':'Browserstack','akGnY':'tYEip','pqVBG':_0x5a47ac(0x16e),'TJvIE':function(_0x3af5f5,_0x5489d0){return _0x3af5f5(_0x5489d0);},'AMChD':function(_0x520267,_0x289c26){return _0x520267===_0x289c26;},'gJCUR':function(_0x38c6dc,_0x5477ec){return _0x38c6dc===_0x5477ec;},'xPdKE':function(_0x35751a,_0x57a929){return _0x35751a===_0x57a929;},'aijdv':function(_0x51205a,_0x304380){return _0x51205a===_0x304380;},'RgHIc':_0x5a47ac(0x14b),'etHBH':_0x5a47ac(0x1b1),'zMfUM':function(_0x26e368,_0x16ed9a,_0x391a36,_0x1ff1cd,_0x3c615c,_0xd213bd,_0x3e6e9d){return _0x26e368(_0x16ed9a,_0x391a36,_0x1ff1cd,_0x3c615c,_0xd213bd,_0x3e6e9d);},'cESpS':_0x5a47ac(0x127),'vJSru':_0x5a47ac(0x143),'Ycobg':_0x5a47ac(0x120),'dplop':function(_0xf50d2b,_0x739070,_0xdd0a62,_0x1a065c,_0x56691b){return _0xf50d2b(_0x739070,_0xdd0a62,_0x1a065c,_0x56691b);},'UZSak':function(_0x513db5,_0x63385c){return _0x513db5===_0x63385c;},'pRYlu':_0x5a47ac(0x141),'dZxjI':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','fvWzV':_0x5a47ac(0x125),'lGlvA':'TIImY','fEZdX':function(_0x4cfdee,_0x5950d4,_0x550a8b,_0xf8d8e6){return _0x4cfdee(_0x5950d4,_0x550a8b,_0xf8d8e6);},'QnynL':function(_0x1923e7){return _0x1923e7();},'qWtlB':_0x5a47ac(0x19a),'XaUhu':function(_0x33e586,_0x56d411){return _0x33e586===_0x56d411;},'GPPRX':_0x5a47ac(0x15f),'bkdTf':_0x5a47ac(0x1a4),'fRpYY':function(_0x29607b,_0x3aac6f){return _0x29607b(_0x3aac6f);},'cttFf':function(_0x3d5bf0,_0x5c554f,_0x1fb4eb,_0x4ecfe4,_0x2eabff,_0x2d2872){return _0x3d5bf0(_0x5c554f,_0x1fb4eb,_0x4ecfe4,_0x2eabff,_0x2d2872);},'tWKIV':_0x5a47ac(0x124),'eYiwl':function(_0x760584,_0x22c082,_0x2e0fdb){return _0x760584(_0x22c082,_0x2e0fdb);},'FhRCg':function(_0x4eb068,_0x54b01a){return _0x4eb068!==_0x54b01a;},'eMQal':function(_0x35fc56,_0x3885ec,_0x1e7f7a,_0x4dfc7e,_0x349b16,_0x1077c6,_0x24185b){return _0x35fc56(_0x3885ec,_0x1e7f7a,_0x4dfc7e,_0x349b16,_0x1077c6,_0x24185b);},'aqLEz':_0x5a47ac(0x150),'hdWIc':function(_0x3fe6b2,_0x42c17e,_0x489eba,_0x2e4564,_0x459880,_0x52e43e,_0x2fb06d){return _0x3fe6b2(_0x42c17e,_0x489eba,_0x2e4564,_0x459880,_0x52e43e,_0x2fb06d);},'roQvE':_0x5a47ac(0x16d),'oskck':function(_0x1f5d40,_0x4a672c){return _0x1f5d40===_0x4a672c;},'MHNYh':function(_0x3667ca,_0x1143b2,_0x35a9c1,_0x1efec7,_0xa45da6,_0x42853c,_0x39e078){return _0x3667ca(_0x1143b2,_0x35a9c1,_0x1efec7,_0xa45da6,_0x42853c,_0x39e078);},'wHfoH':'invalid-grid-id','nIMqe':_0x5a47ac(0x142)};try{global_registry[_0x5a47ac(0x15c)]=_0x3a8807['tpqey'](uuidv4);!fs['existsSync'](_0x3a8807[_0x5a47ac(0x151)](getCredentialsPath))&&(_0x3a8807['DOqPh'](_0x3a8807['gXCYw'],_0x3a8807[_0x5a47ac(0x19f)])?(_0x2facca['error'](_0x3a8807['cdmOF']),_0x1ede45[_0x5a47ac(0x12b)](0x1)):(console['error'](_0x3a8807[_0x5a47ac(0x158)]),await _0x3a8807[_0x5a47ac(0x173)](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807[_0x5a47ac(0x13a)],messageTypes[_0x5a47ac(0x1a0)],_0x3a8807['JcfeH'],null,_0x2e6ff9),process[_0x5a47ac(0x12b)](0x1)));_0x3a8807[_0x5a47ac(0x181)](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807[_0x5a47ac(0x13a)],messageTypes[_0x5a47ac(0x148)],null,null,_0x2e6ff9);!_0x2e6ff9['gridId']&&(_0x3a8807['lmMFH'](_0x3a8807['IbqLC'],_0x3a8807[_0x5a47ac(0x16a)])?(console[_0x5a47ac(0x193)](_0x3a8807['cdmOF']),process[_0x5a47ac(0x12b)](0x1)):(_0x4a48bc[_0x5a47ac(0x196)](_0x5a47ac(0x11a)+_0x52b288+_0x5a47ac(0x17b)),_0x11bed2=![]));const _0xbff735=JSON[_0x5a47ac(0x140)](fs['readFileSync'](_0x3a8807[_0x5a47ac(0x12d)](getCredentialsPath))),[_0x5da161,_0xe8fec8]=await _0x3a8807[_0x5a47ac(0x19e)](getGridDetails,_0xbff735[_0x5a47ac(0x13b)][_0x5a47ac(0x12f)],_0xbff735['Browserstack'][_0x5a47ac(0x1b0)],_0x2e6ff9[_0x5a47ac(0x177)]);if(_0xe8fec8){const _0x4bb546=_0xe8fec8[_0x5a47ac(0x17e)];let _0x257f4b='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4bb546[_0x5a47ac(0x163)]+_0x5a47ac(0x136)+_0x4bb546['id']+_0x5a47ac(0x168),_0x2ff2f3;_0xe8fec8['onlyGridInCluster']&&_0x3a8807[_0x5a47ac(0x170)](_0xe8fec8[_0x5a47ac(0x135)],_0x3a8807[_0x5a47ac(0x16f)])&&(_0x3a8807['DOqPh'](_0x3a8807['akGnY'],_0x3a8807['pqVBG'])?_0x257f4b=_0x5a47ac(0x1ab)+_0x4bb546[_0x5a47ac(0x163)]+_0x5a47ac(0x136)+_0x4bb546['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4bb546[_0x5a47ac(0x18b)]+_0x5a47ac(0x121)+_0x4bb546[_0x5a47ac(0x12a)]+_0x5a47ac(0x168):_0xc03ba0['cloudProvider']={});_0x2ff2f3=await _0x3a8807['TJvIE'](inputConfirmation,_0x257f4b);if(_0x3a8807[_0x5a47ac(0x191)](_0x2ff2f3,undefined)||_0x3a8807[_0x5a47ac(0x170)](_0x2ff2f3,null)||!(_0x3a8807[_0x5a47ac(0x190)](_0x2ff2f3[_0x5a47ac(0x15b)](),'y')||_0x3a8807['xPdKE'](_0x2ff2f3[_0x5a47ac(0x15b)](),'n'))){if(_0x3a8807['aijdv'](_0x3a8807[_0x5a47ac(0x1ad)],_0x3a8807[_0x5a47ac(0x1ad)]))console['error'](_0x3a8807['etHBH']),await _0x3a8807[_0x5a47ac(0x14e)](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807['qHSNO'],messageTypes[_0x5a47ac(0x1a0)],_0x3a8807[_0x5a47ac(0x186)],null,_0x2e6ff9),process[_0x5a47ac(0x12b)](0x1);else{const _0x6d2451={};_0x6d2451['description']=_0x3a8807['MPAeb'],_0x6d2451[_0x5a47ac(0x154)]=_0x3a8807['fMKOR'];const _0x1d7590={};return _0x1d7590[_0x5a47ac(0x198)]=_0x6d2451,_0x4ae10b[_0x5a47ac(0x161)](_0x12fbd9[_0x5a47ac(0x180)])[_0x5a47ac(0x18d)](_0x23381d)[_0x5a47ac(0x164)](_0x1d7590)[_0x5a47ac(0x117)](_0x3a8807[_0x5a47ac(0x194)])['argv'];}}_0x3a8807[_0x5a47ac(0x185)](_0x2ff2f3[_0x5a47ac(0x15b)](),'n')&&(_0x3a8807[_0x5a47ac(0x159)](_0x3a8807['vJSru'],_0x3a8807[_0x5a47ac(0x155)])?(_0x6f651a['info'](_0x5a47ac(0x1a5)),_0xa4facd['exit'](0x0)):process[_0x5a47ac(0x12b)](0x0));global_registry[_0x5a47ac(0x128)]=_0x4bb546[_0x5a47ac(0x126)];const _0x1d4837=_0x4bb546[_0x5a47ac(0x14f)],_0x27fe8f=await _0x3a8807[_0x5a47ac(0x147)](getCloudProviderObject,_0x1d4837,_0x4bb546['clusterName'],_0x4bb546[_0x5a47ac(0x163)],_0x2e6ff9),_0x1c7bbd=_0xbff735[_0x5a47ac(0x14f)];if(_0x3a8807[_0x5a47ac(0x1a9)](_0x1c7bbd[_0x1d4837],undefined)){if(_0x3a8807[_0x5a47ac(0x1aa)](_0x3a8807[_0x5a47ac(0x11e)],_0x3a8807[_0x5a47ac(0x11e)]))_0xfd4d21['warn'](_0x5a47ac(0x144)+_0x48dbd6[_0x5a47ac(0x18b)]+_0x5a47ac(0x156));else{logger[_0x5a47ac(0x17e)](_0x3a8807[_0x5a47ac(0x15a)]);_0x3a8807[_0x5a47ac(0x159)](_0xbff735[_0x5a47ac(0x14f)],undefined)&&(_0x3a8807['lmMFH'](_0x3a8807['fvWzV'],_0x3a8807[_0x5a47ac(0x197)])?_0xbff735[_0x5a47ac(0x14f)]={}:_0x4d3613[_0x5a47ac(0x17e)](_0x5a47ac(0x11a)+_0x412cc2+_0x5a47ac(0x17a)));_0xbff735[_0x5a47ac(0x14f)][_0x1d4837]={};const _0xbee319=await _0x3a8807[_0x5a47ac(0x167)](inputCloudProviderKeys,_0x1d4837,_0xbff735,_0x27fe8f);fs[_0x5a47ac(0x13f)](_0x3a8807[_0x5a47ac(0x130)](getCredentialsPath),JSON[_0x5a47ac(0x187)](_0xbee319)),logger[_0x5a47ac(0x137)](_0x3a8807[_0x5a47ac(0x184)]);}}else _0x3a8807['XaUhu'](_0x3a8807[_0x5a47ac(0x11d)],_0x3a8807[_0x5a47ac(0x11d)])?(logger[_0x5a47ac(0x17e)](_0x3a8807['bkdTf']),await _0x27fe8f[_0x5a47ac(0x157)](_0x1c7bbd)):_0x3185f7['warn'](_0x5a47ac(0x171));_0x27fe8f[_0x5a47ac(0x192)]();const _0x3dfdeb=await _0x27fe8f[_0x5a47ac(0x189)]();if(_0x3dfdeb){const _0x470233=_0x3a8807['TJvIE'](kebabCase,_0x4bb546['name']),[_0x49bac0,_0x1652e1,_0x3ad01f,_0x4a2948,_0x5d2760,_0x17764b]=await _0x3a8807[_0x5a47ac(0x11c)](createK8sClient,_0x27fe8f);let _0x12bfcb=!![];const _0x4791b3={};_0x4791b3[_0x5a47ac(0x163)]=_0x470233,await _0x49bac0[_0x5a47ac(0x18f)](_0x4791b3)[_0x5a47ac(0x19b)](_0x4aa127=>{const _0x1181c2=_0x5a47ac;_0x3a8807[_0x1181c2(0x19c)](_0x3a8807[_0x1181c2(0x179)],_0x3a8807[_0x1181c2(0x1af)])?logger[_0x1181c2(0x17e)](_0x1181c2(0x11a)+_0x470233+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):_0x5618f8='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5e9292['name']+_0x1181c2(0x136)+_0x501149['id']+_0x1181c2(0x188)+_0x30d322[_0x1181c2(0x18b)]+_0x1181c2(0x121)+_0x3458f4[_0x1181c2(0x12a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';})[_0x5a47ac(0x172)](_0x45b245=>{const _0x46d324=_0x5a47ac;_0x3a8807[_0x46d324(0x18a)](_0x3a8807[_0x46d324(0x195)],_0x3a8807[_0x46d324(0x195)])?(logger['warn']('Namespace:\x20'+_0x470233+_0x46d324(0x17b)),_0x12bfcb=![]):_0x3cccba[_0x46d324(0x12b)](0x0);});if(_0x12bfcb){await _0x3a8807[_0x5a47ac(0x13e)](removeGridComponents,_0x49bac0,_0x1652e1,_0x3ad01f,_0x4a2948,_0x470233);if(_0xe8fec8[_0x5a47ac(0x119)]){const _0x2f3b6f=await _0x27fe8f['isBrowserstackCluster']();_0x2f3b6f?await _0x27fe8f[_0x5a47ac(0x182)](_0x49bac0,_0x4bb546[_0x5a47ac(0x126)]):logger[_0x5a47ac(0x196)](_0x5a47ac(0x144)+_0x4bb546[_0x5a47ac(0x18b)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x5a47ac(0x196)](_0x5a47ac(0x171));const _0x497395=_0x5a47ac(0x17d)+AG_API_URL+_0x5a47ac(0x16c)+_0x2e6ff9['gridId'],_0x284c1b={'method':_0x3a8807[_0x5a47ac(0x1ac)],'headers':_0x3a8807['eYiwl'](getAuthHeader,_0xbff735[_0x5a47ac(0x13b)][_0x5a47ac(0x12f)],_0xbff735[_0x5a47ac(0x13b)][_0x5a47ac(0x1b0)]),'throwHttpErrors':![]},_0x4cb9b8=await _0x3a8807[_0x5a47ac(0x13d)](got,_0x497395,_0x284c1b);_0x3a8807[_0x5a47ac(0x12c)](_0x4cb9b8,null)&&_0x3a8807[_0x5a47ac(0x19c)](_0x4cb9b8,undefined)&&_0x3a8807[_0x5a47ac(0x190)](_0x4cb9b8[_0x5a47ac(0x129)],0xc8)&&(logger[_0x5a47ac(0x17e)](_0x5a47ac(0x1a5)),process[_0x5a47ac(0x12b)](0x0)),logger[_0x5a47ac(0x193)](_0x5a47ac(0x176)+_0x4cb9b8[_0x5a47ac(0x118)]),await _0x3a8807[_0x5a47ac(0x17f)](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807['qHSNO'],messageTypes[_0x5a47ac(0x1a0)],_0x3a8807[_0x5a47ac(0x1a6)],_0x5da161,_0x2e6ff9),process[_0x5a47ac(0x12b)](0x1);}_0x3a8807[_0x5a47ac(0x185)](_0x5da161[_0x5a47ac(0x129)],0x191)&&(logger[_0x5a47ac(0x193)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x3a8807['hdWIc'](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807[_0x5a47ac(0x13a)],messageTypes['ERROR'],_0x3a8807['roQvE'],null,_0x2e6ff9),process['exit'](0x1)),_0x3a8807[_0x5a47ac(0x11f)](_0x5da161[_0x5a47ac(0x129)],0x190)&&(logger[_0x5a47ac(0x193)](JSON[_0x5a47ac(0x140)](_0x5da161['body'])[_0x5a47ac(0x169)]),await _0x3a8807[_0x5a47ac(0x174)](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807[_0x5a47ac(0x13a)],messageTypes[_0x5a47ac(0x1a0)],_0x3a8807[_0x5a47ac(0x165)],null,_0x2e6ff9),process[_0x5a47ac(0x12b)](0x1)),logger['error'](_0x5a47ac(0x166)+JSON['stringify'](_0x5da161)),await _0x3a8807[_0x5a47ac(0x173)](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807[_0x5a47ac(0x13a)],messageTypes[_0x5a47ac(0x1a0)],_0x3a8807[_0x5a47ac(0x1a6)],_0x5da161,_0x2e6ff9),process[_0x5a47ac(0x12b)](0x1);}catch(_0x36cde6){logger['error'](_0x5a47ac(0x17c)+_0x36cde6[_0x5a47ac(0x1a7)]),await _0x3a8807[_0x5a47ac(0x174)](sendInstrumentationEvent,_0x2e6ff9,_0x3a8807[_0x5a47ac(0x13a)],messageTypes['ERROR'],_0x3a8807[_0x5a47ac(0x13c)],_0x36cde6,_0x2e6ff9),process[_0x5a47ac(0x12b)](0x1);}};
|
|
1
|
+
const a11_0x50b5ff=a11_0x4251;(function(_0x336bfd,_0x2a4f00){const _0x522186=a11_0x4251,_0xb159e0=_0x336bfd();while(!![]){try{const _0xaa1ee4=parseInt(_0x522186(0xca))/0x1+-parseInt(_0x522186(0x73))/0x2*(parseInt(_0x522186(0x94))/0x3)+-parseInt(_0x522186(0xaf))/0x4*(-parseInt(_0x522186(0xfb))/0x5)+-parseInt(_0x522186(0x7c))/0x6*(-parseInt(_0x522186(0x6f))/0x7)+parseInt(_0x522186(0x87))/0x8*(parseInt(_0x522186(0x6e))/0x9)+parseInt(_0x522186(0xc8))/0xa*(parseInt(_0x522186(0xbb))/0xb)+-parseInt(_0x522186(0xb3))/0xc;if(_0xaa1ee4===_0x2a4f00)break;else _0xb159e0['push'](_0xb159e0['shift']());}catch(_0x1ac5a3){_0xb159e0['push'](_0xb159e0['shift']());}}}(a11_0x46c7,0xdbda4));function a11_0x4251(_0x50990a,_0x391e99){const _0x46c7e2=a11_0x46c7();return a11_0x4251=function(_0x42516a,_0x56cc13){_0x42516a=_0x42516a-0x65;let _0xe39850=_0x46c7e2[_0x42516a];return _0xe39850;},a11_0x4251(_0x50990a,_0x391e99);}const fs=require('fs'),got=require(a11_0x50b5ff(0x67)),{v4:uuidv4}=require(a11_0x50b5ff(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x50b5ff(0xc9)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x50b5ff(0xb8)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x50b5ff(0x6d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require('../../utils/userInput'),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x50b5ff(0x93));function a11_0x46c7(){const _0x115fe3=['Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','../../utils/gridComponents','1875285tYxqKS','117054wvlGKU','DNOev','DTxau','catch','5506ddxwne','CKWZW','info','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','zciMW','stringify','bttXs','Browserstack','318qoFFRc','readFileSync','region','\x22\x20and\x20ID\x20','pTPvx','https://','Namespace:\x20','fwZqV','ERROR','cloudProvider','sUdbM','40GvLkAi','aNpFt','Successfully\x20deleted\x20the\x20grid','ZxYZf','invalid-input','LhYPy','delete','desc','mTADF','VTplC','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','handler','../../utils/utilityMethods','471KCWgpA','KAJZm','SjliH','WqtjW','clusterId','Tsulh','MCABW','ElWzU','TWWvI','Delete\x20an\x20Automation\x20grid.','qRUwW','TsRjY','exit','invalid-grid-id','TjPUi','roXTp','onlyGridInCluster','qMxVw','euAUo','debug','ukGXK','toLowerCase','DeaPH','LkwBx','BsMHA','parse','nrgYn','5372uQPgnM','builder','description','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','47334828DFGWvo','bgDoE','\x22\x20with\x20ID\x20','delete-grid-called','options','../../cloudproviders/utils','buECI','fxJnY','13211ZWEzLT','ffNKy','configureIfNotConfigured','wUzKT','HmdXj','Cluster:\x20','clusterName','eFboa','DELETE','type','ZbudJ','gridId','fetchLocalCreds','9230udqwLR','../../config/constants','1630970WqXtHi','clusterSpawnedVia','EWmCb','command','tsmOz','grid-id','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','then','name','vnpCR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','unauthorised','LseFg','Pass\x20the\x20ID\x20of\x20the\x20Grid','warn','PIaaP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KjTiX','RKwlq','MfOiM','YRkjc','statusCode','usage','uVLrA','cAaWU','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','argv','PWMMg','mdhdf','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','requestId','uuid','aXBzC','ZnmHR','epilogue','readNamespace','stack','server-error','oedqu','username','KKwPH','unknown-error','Jzfio','VSRyU','Failed\x20to\x20delete\x20resources!\x20Error:\x20','PNcfj','2270hSfECs','string','password','zDapi','UNEBK','help','got','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','lEZug','mCXbA'];a11_0x46c7=function(){return _0x115fe3;};return a11_0x46c7();}exports[a11_0x50b5ff(0xcd)]='grid',exports[a11_0x50b5ff(0x8e)]=a11_0x50b5ff(0x9d),exports[a11_0x50b5ff(0xb0)]=function(_0x2df659){const _0x1e28fc=a11_0x50b5ff,_0x143034={};_0x143034[_0x1e28fc(0x9a)]=_0x1e28fc(0xd9),_0x143034[_0x1e28fc(0x69)]='string',_0x143034[_0x1e28fc(0xf3)]=_0x1e28fc(0x66);const _0x598bbc=_0x143034,_0xf73226={};_0xf73226['description']=_0x598bbc[_0x1e28fc(0x9a)],_0xf73226[_0x1e28fc(0xc4)]=_0x598bbc[_0x1e28fc(0x69)];const _0x968a6b={};return _0x968a6b[_0x1e28fc(0xcf)]=_0xf73226,_0x2df659[_0x1e28fc(0xe2)](HELP_HEADER_MESSAGE[_0x1e28fc(0x8d)])[_0x1e28fc(0xef)](HELP_FOOTER_MESSAGE)[_0x1e28fc(0xb7)](_0x968a6b)['help'](_0x598bbc[_0x1e28fc(0xf3)])[_0x1e28fc(0xe7)];},exports[a11_0x50b5ff(0x92)]=async function(_0x4978f3){const _0x3cf5a5=a11_0x50b5ff,_0x283431={'PNcfj':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','bgDoE':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ZxYZf':_0x3cf5a5(0xfc),'TjPUi':_0x3cf5a5(0x66),'DTxau':function(_0xf01d9e,_0xa8ee1d){return _0xf01d9e!==_0xa8ee1d;},'YRkjc':_0x3cf5a5(0x74),'roXTp':_0x3cf5a5(0x80),'HmdXj':function(_0x420d9c,_0x44cba4){return _0x420d9c===_0x44cba4;},'PWMMg':_0x3cf5a5(0x96),'EWmCb':_0x3cf5a5(0xde),'eFboa':function(_0x12c5f2){return _0x12c5f2();},'sUdbM':function(_0x4e5f08){return _0x4e5f08();},'aXBzC':_0x3cf5a5(0x97),'zDapi':_0x3cf5a5(0xb2),'VTplC':function(_0x3ed090,_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7){return _0x3ed090(_0x2dea33,_0x3c3b45,_0x41167b,_0x27086f,_0x20942b,_0x464ed7);},'LseFg':_0x3cf5a5(0xb6),'aNpFt':'init-not-called','Tsulh':function(_0x56b8a8,_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660){return _0x56b8a8(_0x4caf85,_0xff1a50,_0x5d915e,_0x113031,_0x42c914,_0x30c660);},'BsMHA':_0x3cf5a5(0xbe),'yNTUR':function(_0x1a9488,_0x449557,_0x23211e,_0x5d80ad){return _0x1a9488(_0x449557,_0x23211e,_0x5d80ad);},'ggMsc':function(_0x53f342,_0x32312b){return _0x53f342===_0x32312b;},'fxJnY':_0x3cf5a5(0x7b),'qMxVw':_0x3cf5a5(0x95),'ZnmHR':function(_0x2e7fb2,_0x2784a6){return _0x2e7fb2(_0x2784a6);},'zciMW':function(_0x4d4fb5,_0x3b4ed5){return _0x4d4fb5===_0x3b4ed5;},'ElWzU':function(_0x3be3a5,_0x22429b){return _0x3be3a5===_0x22429b;},'nrgYn':function(_0x50cdf6,_0x2c909b){return _0x50cdf6===_0x2c909b;},'buECI':function(_0x41498c,_0x2033d3){return _0x41498c!==_0x2033d3;},'KKwPH':_0x3cf5a5(0x9e),'UNEBK':_0x3cf5a5(0xa8),'TWWvI':_0x3cf5a5(0x6b),'Jzfio':function(_0x50447e,_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6){return _0x50447e(_0x3c4b4b,_0x423157,_0x37abbf,_0x587ae4,_0x3c13d3,_0x1d7af6);},'fwZqV':_0x3cf5a5(0x8b),'IyqWJ':function(_0x335668,_0x36a296){return _0x335668===_0x36a296;},'bttXs':function(_0x24f4ee,_0x37c12d){return _0x24f4ee!==_0x37c12d;},'TsRjY':'xYFIf','swDGW':function(_0x3bebbe,_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae){return _0x3bebbe(_0x2f6ea1,_0x29c6e1,_0x1293dc,_0x2ffaae);},'DNOev':function(_0x5af361,_0xb7d745){return _0x5af361===_0xb7d745;},'OuOFO':function(_0x11f9cc,_0x2f5a21){return _0x11f9cc!==_0x2f5a21;},'zfxfX':'VxqDf','ymoyt':_0x3cf5a5(0x8c),'PIaaP':_0x3cf5a5(0xe5),'ZbudJ':_0x3cf5a5(0xab),'MfOiM':_0x3cf5a5(0xd4),'mTADF':function(_0x38dee0,_0x22b222,_0x5d932e,_0x4137eb){return _0x38dee0(_0x22b222,_0x5d932e,_0x4137eb);},'mdhdf':function(_0xd41d8d){return _0xd41d8d();},'euAUo':_0x3cf5a5(0x6c),'lIUlq':function(_0x31416b,_0x976acc){return _0x31416b!==_0x976acc;},'ffNKy':'WPbxf','uVLrA':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','jECmw':function(_0xec7634,_0x3525c2){return _0xec7634(_0x3525c2);},'KjTiX':function(_0x37aa2d,_0x30f412){return _0x37aa2d(_0x30f412);},'FWbct':function(_0x36115a,_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b){return _0x36115a(_0x1fb415,_0x1d64d2,_0x215940,_0xbf0f8b,_0x55823b);},'DQzQn':_0x3cf5a5(0xc3),'VSRyU':function(_0x136376,_0x55d190,_0x203d90){return _0x136376(_0x55d190,_0x203d90);},'DeaPH':function(_0x17e3a9,_0x39f37d){return _0x17e3a9!==_0x39f37d;},'cAaWU':function(_0x4e975d,_0x4d49a7){return _0x4e975d!==_0x4d49a7;},'fsNrb':_0x3cf5a5(0xf2),'OEwyj':_0x3cf5a5(0xd7),'gpetX':function(_0x19ee25,_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44){return _0x19ee25(_0x3251ee,_0x3abf72,_0x4a976d,_0x50f78d,_0x5eff96,_0x5e2f44);},'mCXbA':_0x3cf5a5(0xa1),'tsmOz':_0x3cf5a5(0xf6)};try{global_registry[_0x3cf5a5(0xeb)]=_0x283431[_0x3cf5a5(0xc2)](uuidv4);!fs['existsSync'](_0x283431[_0x3cf5a5(0x86)](getCredentialsPath))&&(_0x283431['DTxau'](_0x283431['aXBzC'],_0x283431[_0x3cf5a5(0xed)])?(_0x33ad5d[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),_0x552731[_0x3cf5a5(0xa0)](0x1)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfe)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x88)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)));_0x283431[_0x3cf5a5(0x99)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['INFO'],null,null,_0x4978f3);!_0x4978f3[_0x3cf5a5(0xc6)]&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xac)],_0x283431['BsMHA'])?_0x3d23c0[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x19fe09[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68)):(console[_0x3cf5a5(0xd6)](_0x283431[_0x3cf5a5(0xfa)]),process[_0x3cf5a5(0xa0)](0x1)));const _0x6973bd=JSON[_0x3cf5a5(0xad)](fs[_0x3cf5a5(0x7d)](_0x283431[_0x3cf5a5(0xc2)](getCredentialsPath))),[_0x399814,_0x483fb8]=await _0x283431['yNTUR'](getGridDetails,_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xf4)],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)],_0x4978f3[_0x3cf5a5(0xc6)]);if(_0x483fb8){const _0x4eb716=_0x483fb8[_0x3cf5a5(0x75)];let _0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x4eb716['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x58dc36;_0x483fb8[_0x3cf5a5(0xa4)]&&_0x283431['ggMsc'](_0x483fb8[_0x3cf5a5(0xcb)],_0x283431[_0x3cf5a5(0xba)])&&(_0x283431[_0x3cf5a5(0x71)](_0x283431[_0x3cf5a5(0xa5)],_0x283431[_0x3cf5a5(0xa5)])?_0x4ef2f4['info'](_0x3cf5a5(0x82)+_0x2a87d2+_0x3cf5a5(0xe6)):_0x21f3f2=_0x3cf5a5(0xea)+_0x4eb716['name']+_0x3cf5a5(0x7f)+_0x4eb716['id']+_0x3cf5a5(0xd1)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0xb5)+_0x4eb716['clusterId']+_0x3cf5a5(0x76));_0x58dc36=await _0x283431[_0x3cf5a5(0xee)](inputConfirmation,_0x21f3f2);(_0x283431[_0x3cf5a5(0x78)](_0x58dc36,undefined)||_0x283431[_0x3cf5a5(0x9b)](_0x58dc36,null)||!(_0x283431[_0x3cf5a5(0xae)](_0x58dc36[_0x3cf5a5(0xa9)](),'y')||_0x283431['ggMsc'](_0x58dc36['toLowerCase'](),'n')))&&(_0x283431[_0x3cf5a5(0xb9)](_0x283431[_0x3cf5a5(0xf5)],_0x283431[_0x3cf5a5(0x65)])?(console['error'](_0x283431[_0x3cf5a5(0x9c)]),await _0x283431['Jzfio'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x83)],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)):_0x572a3b=_0x3cf5a5(0xea)+_0x168e78[_0x3cf5a5(0xd3)]+_0x3cf5a5(0x7f)+_0x273fd5['id']+_0x3cf5a5(0xd1)+_0x49049f['clusterName']+'\x22\x20with\x20ID\x20'+_0x27fdac[_0x3cf5a5(0x98)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x283431['IyqWJ'](_0x58dc36[_0x3cf5a5(0xa9)](),'n')&&(_0x283431[_0x3cf5a5(0x7a)](_0x283431[_0x3cf5a5(0x9f)],_0x283431[_0x3cf5a5(0x9f)])?_0x18baf4['warn']('Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted'):process[_0x3cf5a5(0xa0)](0x0));global_registry['clusterRegion']=_0x4eb716[_0x3cf5a5(0x7e)];const _0xdc5b5d=_0x4eb716[_0x3cf5a5(0x85)],_0xa3167=await _0x283431['swDGW'](getCloudProviderObject,_0xdc5b5d,_0x4eb716[_0x3cf5a5(0xc1)],_0x4eb716[_0x3cf5a5(0xd3)],_0x4978f3),_0x248c82=_0x6973bd[_0x3cf5a5(0x85)];if(_0x283431[_0x3cf5a5(0x70)](_0x248c82[_0xdc5b5d],undefined)){if(_0x283431['OuOFO'](_0x283431['zfxfX'],_0x283431['ymoyt'])){logger['info'](_0x283431[_0x3cf5a5(0xdb)]);_0x283431['ElWzU'](_0x6973bd[_0x3cf5a5(0x85)],undefined)&&(_0x283431['nrgYn'](_0x283431[_0x3cf5a5(0xc5)],_0x283431[_0x3cf5a5(0xdf)])?_0x1ae051[_0x3cf5a5(0x85)]={}:_0x6973bd[_0x3cf5a5(0x85)]={});_0x6973bd[_0x3cf5a5(0x85)][_0xdc5b5d]={};const _0x13c0e4=await _0x283431[_0x3cf5a5(0x8f)](inputCloudProviderKeys,_0xdc5b5d,_0x6973bd,_0xa3167);fs['writeFileSync'](_0x283431[_0x3cf5a5(0xe9)](getCredentialsPath),JSON[_0x3cf5a5(0x79)](_0x13c0e4)),logger[_0x3cf5a5(0xa7)](_0x283431[_0x3cf5a5(0xa6)]);}else _0x24c87c[_0x3cf5a5(0xa0)](0x0);}else{if(_0x283431['lIUlq'](_0x283431[_0x3cf5a5(0xbc)],_0x283431[_0x3cf5a5(0xbc)])){const _0x40c54a={};_0x40c54a[_0x3cf5a5(0xb1)]=_0x283431[_0x3cf5a5(0xb4)],_0x40c54a[_0x3cf5a5(0xc4)]=_0x283431[_0x3cf5a5(0x8a)];const _0x34d81b={};return _0x34d81b['grid-id']=_0x40c54a,_0x314445[_0x3cf5a5(0xe2)](_0x5f598b['delete'])[_0x3cf5a5(0xef)](_0x4178c6)[_0x3cf5a5(0xb7)](_0x34d81b)[_0x3cf5a5(0x66)](_0x283431[_0x3cf5a5(0xa2)])[_0x3cf5a5(0xe7)];}else logger[_0x3cf5a5(0x75)](_0x283431[_0x3cf5a5(0xe3)]),await _0xa3167[_0x3cf5a5(0xc7)](_0x248c82);}_0xa3167[_0x3cf5a5(0xbd)]();const _0x2f7776=await _0xa3167['isClusterPresent']();if(_0x2f7776){const _0xc1809a=_0x283431['jECmw'](kebabCase,_0x4eb716[_0x3cf5a5(0xd3)]),[_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0x3daee1,_0x1d847b]=await _0x283431[_0x3cf5a5(0xdd)](createK8sClient,_0xa3167);let _0x12fcd8=!![];const _0x53666a={};_0x53666a[_0x3cf5a5(0xd3)]=_0xc1809a,await _0x524a26[_0x3cf5a5(0xf0)](_0x53666a)[_0x3cf5a5(0xd2)](_0x3b698e=>{const _0x294dc5=_0x3cf5a5;_0x283431[_0x294dc5(0x71)](_0x283431[_0x294dc5(0xe0)],_0x283431[_0x294dc5(0xa3)])?logger[_0x294dc5(0x75)]('Namespace:\x20'+_0xc1809a+_0x294dc5(0xe6)):(_0x1a3612[_0x294dc5(0xda)](_0x294dc5(0x82)+_0x3b2314+_0x294dc5(0x91)),_0xd2ff81=![]);})[_0x3cf5a5(0x72)](_0x3a150e=>{const _0x43f116=_0x3cf5a5;_0x283431[_0x43f116(0xbf)](_0x283431[_0x43f116(0xe8)],_0x283431[_0x43f116(0xcc)])?(_0x2ef590[_0x43f116(0x75)](_0x43f116(0x89)),_0xd79020[_0x43f116(0xa0)](0x0)):(logger[_0x43f116(0xda)]('Namespace:\x20'+_0xc1809a+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x12fcd8=![]);});if(_0x12fcd8){await _0x283431['FWbct'](removeGridComponents,_0x524a26,_0x11a9bc,_0xcbd14e,_0x26448a,_0xc1809a);if(_0x483fb8[_0x3cf5a5(0xa4)]){const _0x41d279=await _0xa3167['isBrowserstackCluster']();_0x41d279?await _0xa3167['deleteCluster'](_0x524a26,_0x4eb716['region']):logger[_0x3cf5a5(0xda)](_0x3cf5a5(0xc0)+_0x4eb716[_0x3cf5a5(0xc1)]+_0x3cf5a5(0x68));}}}else logger['warn'](_0x3cf5a5(0x77));const _0x4980e5=_0x3cf5a5(0x81)+AG_API_URL+'/packages/cli/grid/'+_0x4978f3[_0x3cf5a5(0xc6)],_0x98d007={'method':_0x283431['DQzQn'],'headers':_0x283431[_0x3cf5a5(0xf8)](getAuthHeader,_0x6973bd['Browserstack']['username'],_0x6973bd[_0x3cf5a5(0x7b)][_0x3cf5a5(0xfd)]),'throwHttpErrors':![]},_0x2abe9a=await _0x283431[_0x3cf5a5(0xf8)](got,_0x4980e5,_0x98d007);_0x283431[_0x3cf5a5(0xaa)](_0x2abe9a,null)&&_0x283431[_0x3cf5a5(0xe4)](_0x2abe9a,undefined)&&_0x283431[_0x3cf5a5(0xbf)](_0x2abe9a[_0x3cf5a5(0xe1)],0xc8)&&(logger[_0x3cf5a5(0x75)](_0x3cf5a5(0x89)),process['exit'](0x0)),logger[_0x3cf5a5(0xd6)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x2abe9a[_0x3cf5a5(0xd0)]),await _0x283431['VTplC'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}_0x283431[_0x3cf5a5(0x78)](_0x399814[_0x3cf5a5(0xe1)],0x191)&&(logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xdc)),await _0x283431['Tsulh'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431['OEwyj'],null,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1)),_0x283431[_0x3cf5a5(0x9b)](_0x399814['statusCode'],0x190)&&(logger[_0x3cf5a5(0xd6)](JSON[_0x3cf5a5(0xad)](_0x399814[_0x3cf5a5(0xd0)])['message']),await _0x283431['gpetX'](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0x6a)],null,_0x4978f3),process['exit'](0x1)),logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xd5)+JSON['stringify'](_0x399814)),await _0x283431[_0x3cf5a5(0xf7)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes['ERROR'],_0x283431['fsNrb'],_0x399814,_0x4978f3),process[_0x3cf5a5(0xa0)](0x1);}catch(_0x2c1e00){logger[_0x3cf5a5(0xd6)](_0x3cf5a5(0xf9)+_0x2c1e00[_0x3cf5a5(0xf1)]),await _0x283431[_0x3cf5a5(0x90)](sendInstrumentationEvent,_0x4978f3,_0x283431[_0x3cf5a5(0xd8)],messageTypes[_0x3cf5a5(0x84)],_0x283431[_0x3cf5a5(0xce)],_0x2c1e00,_0x4978f3),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x224027=a12_0x4376;(function(_0x36b8e0,_0xa951ef){const _0x5ce47a=a12_0x4376,_0x212297=_0x36b8e0();while(!![]){try{const _0x1b9551=-parseInt(_0x5ce47a(0x1dd))/0x1*(parseInt(_0x5ce47a(0x1f7))/0x2)+-parseInt(_0x5ce47a(0x1e1))/0x3+parseInt(_0x5ce47a(0x1e9))/0x4+-parseInt(_0x5ce47a(0x22d))/0x5+-parseInt(_0x5ce47a(0x1fc))/0x6+parseInt(_0x5ce47a(0x227))/0x7*(-parseInt(_0x5ce47a(0x21b))/0x8)+parseInt(_0x5ce47a(0x1f4))/0x9*(parseInt(_0x5ce47a(0x22a))/0xa);if(_0x1b9551===_0xa951ef)break;else _0x212297['push'](_0x212297['shift']());}catch(_0x32a4df){_0x212297['push'](_0x212297['shift']());}}}(a12_0x43cd,0x88aa7));function a12_0x4376(_0x5bd999,_0x5aac44){const _0x43cd93=a12_0x43cd();return a12_0x4376=function(_0x43764b,_0x757aa7){_0x43764b=_0x43764b-0x1c9;let _0x5b8b42=_0x43cd93[_0x43764b];return _0x5b8b42;},a12_0x4376(_0x5bd999,_0x5aac44);}const fs=require('fs'),util=require('util'),got=require(a12_0x224027(0x225)),{v4:uuidv4}=require(a12_0x224027(0x1c9)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x224027(0x1d0)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x224027(0x1db)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a12_0x43cd(){const _0x167a3f=['Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','EKBHV','398536ADxjtx','help','wKwmq','builder','ETGXX','Gqeyx','readFileSync','desc','usage','statusCode','password','18iwVYYa','nEQhv','FRbrF','81574npOhss','username','init','Wxnbv','dcLmC','67302RYUIqk','stringify','epilogue','bstack-username','tnvJL','strict','QcKxd','description','tioPk','pnnmu','LyWJL','bKJMo','requestId','KcKzX','IfNyB','qxryH','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','kMoBq','ikNLO','iUcVR','bAUpO','KFZIp','env','bstackUsername','oBmwI','DjGbJ','BROWSERSTACK_USERNAME','BNLcd','ANdAp','cOrOX','sUaGS','272erpXrM','XRros','string','jIYYR','exit','jRuoA','parse','NEMfF','huggS','handler','got','bstack-accesskey','138649DigVPI','hRueb','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','11175020HYRwWE','utf-8','argv','1591150CxXLvr','unknown-error','bstackAccesskey','BROWSERSTACK_ACCESS_KEY','stack','wIVQF','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','/automate/plan.json','uuid','INFO','mkdirSync','wrong-creds','options','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','type','../config/constants','ZZYot','GbjdI','existsSync','ixUlA','XKakW','QMUeR','KZKpu','svHfZ','ERROR','jniqg','../utils/utilityMethods','writeFileSync','9uJTOjz','WaJVk','Browserstack','tTLaE','1214661FKldPL','TSFbp','recommendCommands','Dxvns','wazdZ','GmNaI'];a12_0x43cd=function(){return _0x167a3f;};return a12_0x43cd();}exports['command']=a12_0x224027(0x1f9),exports[a12_0x224027(0x1f0)]=a12_0x224027(0x229),exports[a12_0x224027(0x1ec)]=function(_0x59b937){const _0x1e0733=a12_0x224027,_0x396f59={};_0x396f59[_0x1e0733(0x223)]=_0x1e0733(0x1ce),_0x396f59['EKBHV']=_0x1e0733(0x21d),_0x396f59['onCdL']=_0x1e0733(0x1e7),_0x396f59['bKJMo']=_0x1e0733(0x1ea);const _0x48b997=_0x396f59,_0x4d8c66={};_0x4d8c66[_0x1e0733(0x203)]=_0x48b997[_0x1e0733(0x223)],_0x4d8c66['type']=_0x48b997[_0x1e0733(0x1e8)];const _0x102c77={};_0x102c77['description']=_0x48b997['onCdL'],_0x102c77[_0x1e0733(0x1cf)]=_0x48b997[_0x1e0733(0x1e8)];const _0x23a017={};return _0x23a017[_0x1e0733(0x1ff)]=_0x4d8c66,_0x23a017[_0x1e0733(0x226)]=_0x102c77,_0x59b937[_0x1e0733(0x1f1)](HELP_HEADER_MESSAGE[_0x1e0733(0x1f9)])[_0x1e0733(0x1fe)](HELP_FOOTER_MESSAGE)['options'](_0x23a017)[_0x1e0733(0x1e3)]()[_0x1e0733(0x201)]()[_0x1e0733(0x1ea)](_0x48b997[_0x1e0733(0x207)])[_0x1e0733(0x22c)];},exports[a12_0x224027(0x224)]=async function(_0x4460cd){const _0x516d49=a12_0x224027,_0x44099f={'Dxvns':function(_0x3115f3){return _0x3115f3();},'oBmwI':_0x516d49(0x22b),'cOrOX':_0x516d49(0x1ce),'KZKpu':'string','wazdZ':_0x516d49(0x1e7),'sUaGS':_0x516d49(0x1ea),'GmNaI':function(_0x18e987,_0xc3d296,_0x5396e1,_0x5c75a3,_0x482e12,_0x3711ca,_0xb96e2b){return _0x18e987(_0xc3d296,_0x5396e1,_0x5c75a3,_0x482e12,_0x3711ca,_0xb96e2b);},'LyWJL':'init-called','wIVQF':function(_0x27d56b){return _0x27d56b();},'ZZYot':function(_0x6c9a15,_0x39e492){return _0x6c9a15===_0x39e492;},'KFZIp':_0x516d49(0x228),'wAXBt':function(_0x6138f6,_0x47c901){return _0x6138f6!==_0x47c901;},'ETGXX':_0x516d49(0x1fb),'ANdAp':_0x516d49(0x209),'WaJVk':function(_0x72d5de,_0x4b683e){return _0x72d5de===_0x4b683e;},'guawi':'dNMpX','bAUpO':_0x516d49(0x1da),'tTLaE':_0x516d49(0x200),'Gqeyx':_0x516d49(0x20a),'jRuoA':'mOGJy','ixUlA':function(_0x1e2b9d,_0x5e2888){return _0x1e2b9d===_0x5e2888;},'nEQhv':_0x516d49(0x1f6),'jIYYR':_0x516d49(0x1d5),'Wxnbv':_0x516d49(0x233),'NEMfF':'GET','wKwmq':function(_0x4a4dfa,_0x2b3623,_0x26bb82){return _0x4a4dfa(_0x2b3623,_0x26bb82);},'DjGbJ':function(_0xf5309c,_0x314df5,_0x3c4efb){return _0xf5309c(_0x314df5,_0x3c4efb);},'tioPk':function(_0x328507,_0x408eb9){return _0x328507!==_0x408eb9;},'ikNLO':function(_0x3faf0c,_0x4971e8){return _0x3faf0c!==_0x4971e8;},'ERYFk':function(_0xa02857,_0x558e1c){return _0xa02857===_0x558e1c;},'iUcVR':_0x516d49(0x20d),'pnnmu':_0x516d49(0x1e2),'BNLcd':_0x516d49(0x1d8),'QMUeR':_0x516d49(0x20c),'XRros':function(_0x109e5f,_0x37ce3a,_0x18e9a9,_0x5c93b1,_0x5874d2,_0x1790fe,_0x36b9f4){return _0x109e5f(_0x37ce3a,_0x18e9a9,_0x5c93b1,_0x5874d2,_0x1790fe,_0x36b9f4);},'QcKxd':_0x516d49(0x1cc),'GbjdI':function(_0x24257c,_0x1b503c,_0x2debd2,_0x7b2fdc,_0x475f4b,_0x4095fc,_0x2f5c2d){return _0x24257c(_0x1b503c,_0x2debd2,_0x7b2fdc,_0x475f4b,_0x4095fc,_0x2f5c2d);},'qxryH':_0x516d49(0x22e)};try{global_registry[_0x516d49(0x208)]=_0x44099f[_0x516d49(0x1e4)](uuidv4),_0x44099f[_0x516d49(0x1e6)](sendInstrumentationEvent,_0x4460cd,_0x44099f['LyWJL'],messageTypes[_0x516d49(0x1ca)],null,null,_0x4460cd);const _0x383cae=_0x44099f[_0x516d49(0x232)](getDirForConfig);!fs['existsSync'](_0x383cae)&&(_0x44099f[_0x516d49(0x1d1)](_0x44099f['KFZIp'],_0x44099f[_0x516d49(0x211)])?fs['mkdirSync'](_0x383cae):_0x19e329[_0x516d49(0x1cb)](_0x36d075));let _0x133a51,_0x4b43d9;if(process[_0x516d49(0x212)][_0x516d49(0x216)]){if(_0x44099f['wAXBt'](_0x44099f[_0x516d49(0x1ed)],_0x44099f[_0x516d49(0x218)]))_0x133a51=process[_0x516d49(0x212)][_0x516d49(0x216)];else{let _0x3c4853={};const _0x3f3765=_0x44099f[_0x516d49(0x1e4)](_0x246fd4);_0x19e1d2[_0x516d49(0x1d3)](_0x3f3765)&&(_0x3c4853=_0x2baf5b['parse'](_0x213006[_0x516d49(0x1ef)](_0x3f3765,_0x44099f[_0x516d49(0x214)])));const _0x45b14b={};_0x45b14b[_0x516d49(0x1f8)]=_0x5935ad,_0x45b14b['password']=_0x839e71,_0x3c4853[_0x516d49(0x1df)]=_0x45b14b,_0x27209f['writeFileSync'](_0x3f3765,_0x1eb3cc[_0x516d49(0x1fd)](_0x3c4853)),_0x59e92f['exit'](0x0);}}process[_0x516d49(0x212)]['BROWSERSTACK_ACCESS_KEY']&&(_0x44099f[_0x516d49(0x1de)](_0x44099f['guawi'],_0x44099f[_0x516d49(0x210)])?_0x56dbbb=_0x228677[_0x516d49(0x212)][_0x516d49(0x230)]:_0x4b43d9=process[_0x516d49(0x212)][_0x516d49(0x230)]);if(_0x4460cd['bstackUsername']){if(_0x44099f['ZZYot'](_0x44099f[_0x516d49(0x1e0)],_0x44099f[_0x516d49(0x1e0)]))_0x133a51=_0x4460cd[_0x516d49(0x213)];else{const _0x407901={};_0x407901['description']=_0x44099f[_0x516d49(0x219)],_0x407901['type']=_0x44099f[_0x516d49(0x1d7)];const _0x137237={};_0x137237[_0x516d49(0x203)]=_0x44099f[_0x516d49(0x1e5)],_0x137237[_0x516d49(0x1cf)]=_0x44099f[_0x516d49(0x1d7)];const _0x5e8eb0={};return _0x5e8eb0['bstack-username']=_0x407901,_0x5e8eb0[_0x516d49(0x226)]=_0x137237,_0x5700df[_0x516d49(0x1f1)](_0x40f1c1[_0x516d49(0x1f9)])['epilogue'](_0x441ab7)[_0x516d49(0x1cd)](_0x5e8eb0)[_0x516d49(0x1e3)]()['strict']()[_0x516d49(0x1ea)](_0x44099f[_0x516d49(0x21a)])[_0x516d49(0x22c)];}}_0x4460cd[_0x516d49(0x22f)]&&(_0x44099f[_0x516d49(0x1de)](_0x44099f[_0x516d49(0x1ee)],_0x44099f[_0x516d49(0x220)])?_0x31890c=!![]:_0x4b43d9=_0x4460cd['bstackAccesskey']);if(_0x44099f[_0x516d49(0x1de)](_0x133a51,undefined)||_0x44099f[_0x516d49(0x1d4)](_0x4b43d9,undefined)){if(_0x44099f[_0x516d49(0x1de)](_0x44099f[_0x516d49(0x1f5)],_0x44099f[_0x516d49(0x21e)]))_0x32ec37=_0x5eadf2[_0x516d49(0x221)](_0x3056cd[_0x516d49(0x1ef)](_0x58592c,_0x44099f['oBmwI']));else{logger['debug'](_0x44099f[_0x516d49(0x1fa)]);const [_0x2246c4,_0x131ac5]=await _0x44099f[_0x516d49(0x1e4)](inputBstackKeys);_0x133a51=_0x2246c4,_0x4b43d9=_0x131ac5;}}let _0x3fbdee=![];const _0xc0ce63='https://'+_0x133a51+':'+_0x4b43d9+'@'+BS_API_URL+_0x516d49(0x234),_0x27a4d9={'method':_0x44099f[_0x516d49(0x222)],'headers':_0x44099f[_0x516d49(0x1eb)](getAuthHeader,_0x133a51,_0x4b43d9),'throwHttpErrors':![]},_0x107cf9=await _0x44099f[_0x516d49(0x215)](got,_0xc0ce63,_0x27a4d9);_0x44099f[_0x516d49(0x204)](_0x107cf9,null)&&_0x44099f['ikNLO'](_0x107cf9,undefined)&&_0x44099f['ERYFk'](_0x107cf9[_0x516d49(0x1f2)],0xc8)&&(_0x44099f['ikNLO'](_0x44099f[_0x516d49(0x20f)],_0x44099f['iUcVR'])?_0x2e7056=_0xe29158[_0x516d49(0x212)][_0x516d49(0x216)]:_0x3fbdee=!![]);if(_0x3fbdee){if(_0x44099f[_0x516d49(0x1d4)](_0x44099f['pnnmu'],_0x44099f[_0x516d49(0x205)])){let _0x26fe29={};const _0x47fb6c=_0x44099f[_0x516d49(0x1e4)](getCredentialsPath);fs[_0x516d49(0x1d3)](_0x47fb6c)&&(_0x44099f[_0x516d49(0x20e)](_0x44099f[_0x516d49(0x217)],_0x44099f['BNLcd'])?_0x4377f6=_0x4c4afd[_0x516d49(0x213)]:_0x26fe29=JSON['parse'](fs[_0x516d49(0x1ef)](_0x47fb6c,_0x44099f[_0x516d49(0x214)])));const _0x589f21={};_0x589f21[_0x516d49(0x1f8)]=_0x133a51,_0x589f21[_0x516d49(0x1f3)]=_0x4b43d9,_0x26fe29[_0x516d49(0x1df)]=_0x589f21,fs[_0x516d49(0x1dc)](_0x47fb6c,JSON[_0x516d49(0x1fd)](_0x26fe29)),process[_0x516d49(0x21f)](0x0);}else _0x4d03c8=_0x1e083e[_0x516d49(0x22f)];}else logger['error'](_0x44099f[_0x516d49(0x1d6)]),await _0x44099f[_0x516d49(0x21c)](sendInstrumentationEvent,_0x4460cd,_0x44099f['LyWJL'],messageTypes['ERROR'],_0x44099f[_0x516d49(0x202)],null,_0x4460cd),process['exit'](0x1);}catch(_0x2c8df4){logger['error'](_0x2c8df4[_0x516d49(0x231)]),await _0x44099f[_0x516d49(0x1d2)](sendInstrumentationEvent,_0x4460cd,_0x44099f[_0x516d49(0x206)],messageTypes[_0x516d49(0x1d9)],_0x44099f[_0x516d49(0x20b)],_0x2c8df4,_0x4460cd),process[_0x516d49(0x21f)](0x1);}};
|
|
1
|
+
const a12_0x2056b1=a12_0x25db;(function(_0x2ff3da,_0x4f155e){const _0x5767ac=a12_0x25db,_0x4678a0=_0x2ff3da();while(!![]){try{const _0x48aa85=parseInt(_0x5767ac(0x18d))/0x1*(parseInt(_0x5767ac(0x184))/0x2)+parseInt(_0x5767ac(0x190))/0x3*(parseInt(_0x5767ac(0x170))/0x4)+-parseInt(_0x5767ac(0x197))/0x5*(parseInt(_0x5767ac(0x175))/0x6)+parseInt(_0x5767ac(0x18c))/0x7+parseInt(_0x5767ac(0x181))/0x8+-parseInt(_0x5767ac(0x17f))/0x9*(parseInt(_0x5767ac(0x16d))/0xa)+-parseInt(_0x5767ac(0x19d))/0xb;if(_0x48aa85===_0x4f155e)break;else _0x4678a0['push'](_0x4678a0['shift']());}catch(_0x3518d2){_0x4678a0['push'](_0x4678a0['shift']());}}}(a12_0x148c,0x3c2c7));const fs=require('fs'),util=require(a12_0x2056b1(0x17c)),got=require(a12_0x2056b1(0x19c)),{v4:uuidv4}=require(a12_0x2056b1(0x177)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x2056b1(0x14d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x2056b1(0x15e)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2056b1(0x171)),{sendInstrumentationEvent}=require(a12_0x2056b1(0x165));function a12_0x148c(){const _0x4f04fb=['guyyN','wrong-creds','MyAiJ','recommendCommands','kxHRf','handler','868905sOLXPY','CXiiN','writeFileSync','nKWfs','zbpJg','got','8144950twxgoo','AgOfj','ERROR','wROcy','type','qmSrH','init-called','XLRRl','bstackUsername','XgehA','command','ZwbnR','sIKKA','exit','existsSync','bstack-accesskey','bSJhy','unknown-error','stringify','strict','utf-8','INFO','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','init','https://','/automate/plan.json','YOxeW','epilogue','description','PeunG','YctBD','env','../utils/userInput','ghwnk','iFsts','kKEEe','BROWSERSTACK_ACCESS_KEY','oXBXG','builder','desc','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','argv','SQuYc','options','username','fwxuA','readFileSync','IqaIw','../config/constants','BROWSERSTACK_USERNAME','WgdYr','PVYTs','ZAvPW','dIvPl','SaLVp','../utils/instrumentationUtils','password','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','mkdirSync','statusCode','eHckQ','requestId','AsMVj','2540uktZxJ','nZKNT','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','161068MhUsXO','../utils/utilityMethods','kbeSI','debug','uvJAR','6ViPldv','Ctqjg','uuid','stack','bstackAccesskey','ZrXnH','string','util','tqhJG','error','8055GzCOwP','ioScj','794520lCMfTJ','aJMXU','parse','927190DrrRVn','Browserstack','ecrYG','help','xhWPh','aXjAx','ZTNJg','IjLVy','2393426DAsTWs','1PGUhPc','ipwuR','tKFsD','36Gerblh'];a12_0x148c=function(){return _0x4f04fb;};return a12_0x148c();}function a12_0x25db(_0x46ea50,_0x4d2ec8){const _0x148c74=a12_0x148c();return a12_0x25db=function(_0x25db7c,_0x59723c){_0x25db7c=_0x25db7c-0x13b;let _0x4bb811=_0x148c74[_0x25db7c];return _0x4bb811;},a12_0x25db(_0x46ea50,_0x4d2ec8);}exports[a12_0x2056b1(0x1a7)]='init',exports[a12_0x2056b1(0x154)]=a12_0x2056b1(0x167),exports[a12_0x2056b1(0x153)]=function(_0x197277){const _0x4eb589=a12_0x2056b1,_0x45a432={};_0x45a432['oXBXG']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x45a432[_0x4eb589(0x172)]=_0x4eb589(0x17b),_0x45a432[_0x4eb589(0x19a)]=_0x4eb589(0x16f),_0x45a432[_0x4eb589(0x150)]='help';const _0x3fb4ce=_0x45a432,_0x29c1da={};_0x29c1da[_0x4eb589(0x149)]=_0x3fb4ce[_0x4eb589(0x152)],_0x29c1da[_0x4eb589(0x1a1)]=_0x3fb4ce[_0x4eb589(0x172)];const _0x77b407={};_0x77b407[_0x4eb589(0x149)]=_0x3fb4ce['nKWfs'],_0x77b407['type']=_0x3fb4ce[_0x4eb589(0x172)];const _0xb9488={};return _0xb9488['bstack-username']=_0x29c1da,_0xb9488[_0x4eb589(0x13b)]=_0x77b407,_0x197277['usage'](HELP_HEADER_MESSAGE[_0x4eb589(0x144)])[_0x4eb589(0x148)](HELP_FOOTER_MESSAGE)[_0x4eb589(0x159)](_0xb9488)['recommendCommands']()[_0x4eb589(0x13f)]()[_0x4eb589(0x187)](_0x3fb4ce['kKEEe'])[_0x4eb589(0x157)];},exports[a12_0x2056b1(0x196)]=async function(_0x258642){const _0x3ac7b3=a12_0x2056b1,_0x182dda={'kxHRf':function(_0x1558d7){return _0x1558d7();},'tKFsD':_0x3ac7b3(0x140),'aJMXU':_0x3ac7b3(0x142),'YctBD':_0x3ac7b3(0x17b),'ZAvPW':_0x3ac7b3(0x16f),'AgOfj':_0x3ac7b3(0x187),'zbpJg':function(_0x59d766){return _0x59d766();},'xhWPh':function(_0x2c9475,_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14){return _0x2c9475(_0x254804,_0x328eed,_0x18770c,_0xe8798a,_0x447018,_0x33ed14);},'ipwuR':_0x3ac7b3(0x1a3),'MyAiJ':function(_0x18b16b){return _0x18b16b();},'YOxeW':function(_0x4a5d9c,_0x3c610e){return _0x4a5d9c!==_0x3c610e;},'AsMVj':'ernSl','zcsud':_0x3ac7b3(0x16e),'sIKKA':_0x3ac7b3(0x1a0),'eHckQ':function(_0x5aa429,_0x56f70d){return _0x5aa429===_0x56f70d;},'PeunG':'SZsQO','SaLVp':'rLjzW','bSJhy':function(_0x2ea7f0,_0xb90a97){return _0x2ea7f0!==_0xb90a97;},'XLRRl':'rvSqG','PVYTs':_0x3ac7b3(0x18b),'dIvPl':'SUjCE','uvJAR':function(_0x55632e,_0x32fc9e){return _0x55632e===_0x32fc9e;},'ZrXnH':function(_0x169623,_0xc38ddb){return _0x169623!==_0xc38ddb;},'CXiiN':_0x3ac7b3(0x191),'ZwbnR':'ZBxto','ZTNJg':_0x3ac7b3(0x155),'TsMyi':function(_0x3004e5){return _0x3004e5();},'SQuYc':'GET','OEHcw':function(_0x4ca191,_0x1b947c,_0x33e811){return _0x4ca191(_0x1b947c,_0x33e811);},'iFsts':function(_0x40a5a4,_0x529da9,_0x28c882){return _0x40a5a4(_0x529da9,_0x28c882);},'qmSrH':function(_0x1a61e3,_0x3edc06){return _0x1a61e3!==_0x3edc06;},'IqaIw':_0x3ac7b3(0x1a6),'fwxuA':_0x3ac7b3(0x189),'PnIRd':function(_0x2f83df,_0x10386d){return _0x2f83df===_0x10386d;},'Ctqjg':'yPDPM','tJMTC':function(_0x20ba8f,_0x2103cc){return _0x20ba8f!==_0x2103cc;},'WgdYr':_0x3ac7b3(0x186),'BpcLh':_0x3ac7b3(0x17d),'hVQay':_0x3ac7b3(0x156),'ghwnk':_0x3ac7b3(0x192),'ioScj':_0x3ac7b3(0x13d)};try{global_registry[_0x3ac7b3(0x16b)]=_0x182dda[_0x3ac7b3(0x19b)](uuidv4),_0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x141)],null,null,_0x258642);const _0x3b1066=_0x182dda[_0x3ac7b3(0x193)](getDirForConfig);if(!fs[_0x3ac7b3(0x1ab)](_0x3b1066)){if(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x16c)],_0x182dda['zcsud']))fs['mkdirSync'](_0x3b1066);else{let _0x387acf={};const _0x94cb9=_0x182dda[_0x3ac7b3(0x195)](_0x38ce48);_0x1f2c96[_0x3ac7b3(0x1ab)](_0x94cb9)&&(_0x387acf=_0x50572a[_0x3ac7b3(0x183)](_0x5b8102['readFileSync'](_0x94cb9,_0x182dda[_0x3ac7b3(0x18f)])));const _0x2a1268={};_0x2a1268['username']=_0x16fc0e,_0x2a1268['password']=_0x3d4aeb,_0x387acf['Browserstack']=_0x2a1268,_0x17f839[_0x3ac7b3(0x199)](_0x94cb9,_0x288ef3[_0x3ac7b3(0x13e)](_0x387acf)),_0x5b41f4[_0x3ac7b3(0x1aa)](0x0);}}let _0x378024,_0x2b9173;process[_0x3ac7b3(0x14c)]['BROWSERSTACK_USERNAME']&&(_0x182dda[_0x3ac7b3(0x147)](_0x182dda[_0x3ac7b3(0x1a9)],_0x182dda[_0x3ac7b3(0x1a9)])?_0x5ca588=_0x2426fb[_0x3ac7b3(0x179)]:_0x378024=process[_0x3ac7b3(0x14c)][_0x3ac7b3(0x15f)]);process['env'][_0x3ac7b3(0x151)]&&(_0x182dda['eHckQ'](_0x182dda[_0x3ac7b3(0x14a)],_0x182dda[_0x3ac7b3(0x164)])?_0x41661d[_0x3ac7b3(0x168)](_0x282c41):_0x2b9173=process['env']['BROWSERSTACK_ACCESS_KEY']);_0x258642[_0x3ac7b3(0x1a5)]&&(_0x182dda[_0x3ac7b3(0x13c)](_0x182dda[_0x3ac7b3(0x1a4)],_0x182dda[_0x3ac7b3(0x1a4)])?_0x32ef40=_0xc37cb7[_0x3ac7b3(0x1a5)]:_0x378024=_0x258642[_0x3ac7b3(0x1a5)]);if(_0x258642['bstackAccesskey']){if(_0x182dda[_0x3ac7b3(0x16a)](_0x182dda[_0x3ac7b3(0x161)],_0x182dda[_0x3ac7b3(0x163)])){const _0xd8c740={};_0xd8c740[_0x3ac7b3(0x149)]=_0x182dda[_0x3ac7b3(0x182)],_0xd8c740[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x4c3183={};_0x4c3183['description']=_0x182dda[_0x3ac7b3(0x162)],_0x4c3183[_0x3ac7b3(0x1a1)]=_0x182dda[_0x3ac7b3(0x14b)];const _0x502c53={};return _0x502c53['bstack-username']=_0xd8c740,_0x502c53[_0x3ac7b3(0x13b)]=_0x4c3183,_0x503355[_0x3ac7b3(0x143)](_0x4f56d4[_0x3ac7b3(0x144)])['epilogue'](_0x4c054a)[_0x3ac7b3(0x159)](_0x502c53)[_0x3ac7b3(0x194)]()[_0x3ac7b3(0x13f)]()[_0x3ac7b3(0x187)](_0x182dda[_0x3ac7b3(0x19e)])['argv'];}else _0x2b9173=_0x258642[_0x3ac7b3(0x179)];}if(_0x182dda[_0x3ac7b3(0x174)](_0x378024,undefined)||_0x182dda[_0x3ac7b3(0x16a)](_0x2b9173,undefined)){if(_0x182dda[_0x3ac7b3(0x17a)](_0x182dda[_0x3ac7b3(0x198)],_0x182dda[_0x3ac7b3(0x1a8)])){logger[_0x3ac7b3(0x173)](_0x182dda[_0x3ac7b3(0x18a)]);const [_0x5b5c51,_0x46b64c]=await _0x182dda['TsMyi'](inputBstackKeys);_0x378024=_0x5b5c51,_0x2b9173=_0x46b64c;}else _0x4d1ef7=_0x3f1a06['env']['BROWSERSTACK_USERNAME'];}let _0x5ef85f=![];const _0xa18b4c=_0x3ac7b3(0x145)+_0x378024+':'+_0x2b9173+'@'+BS_API_URL+_0x3ac7b3(0x146),_0xaf4cd7={'method':_0x182dda[_0x3ac7b3(0x158)],'headers':_0x182dda['OEHcw'](getAuthHeader,_0x378024,_0x2b9173),'throwHttpErrors':![]},_0x333333=await _0x182dda[_0x3ac7b3(0x14f)](got,_0xa18b4c,_0xaf4cd7);_0x182dda['qmSrH'](_0x333333,null)&&_0x182dda[_0x3ac7b3(0x1a2)](_0x333333,undefined)&&_0x182dda[_0x3ac7b3(0x16a)](_0x333333[_0x3ac7b3(0x169)],0xc8)&&(_0x182dda[_0x3ac7b3(0x1a2)](_0x182dda[_0x3ac7b3(0x15d)],_0x182dda[_0x3ac7b3(0x15b)])?_0x5ef85f=!![]:_0x24d1b8=!![]);if(_0x5ef85f){if(_0x182dda['PnIRd'](_0x182dda[_0x3ac7b3(0x176)],_0x182dda['Ctqjg'])){let _0x5e70c8={};const _0xf8b08d=_0x182dda[_0x3ac7b3(0x193)](getCredentialsPath);fs['existsSync'](_0xf8b08d)&&(_0x182dda['tJMTC'](_0x182dda[_0x3ac7b3(0x160)],_0x182dda['BpcLh'])?_0x5e70c8=JSON[_0x3ac7b3(0x183)](fs[_0x3ac7b3(0x15c)](_0xf8b08d,_0x182dda[_0x3ac7b3(0x18f)])):_0x3fc5ba=_0x5455ff['parse'](_0x201d4c[_0x3ac7b3(0x15c)](_0x530bcc,_0x182dda[_0x3ac7b3(0x18f)])));const _0x5526be={};_0x5526be[_0x3ac7b3(0x15a)]=_0x378024,_0x5526be[_0x3ac7b3(0x166)]=_0x2b9173,_0x5e70c8[_0x3ac7b3(0x185)]=_0x5526be,fs[_0x3ac7b3(0x199)](_0xf8b08d,JSON[_0x3ac7b3(0x13e)](_0x5e70c8)),process[_0x3ac7b3(0x1aa)](0x0);}else _0x4d5ba8=_0x28acc1[_0x3ac7b3(0x14c)][_0x3ac7b3(0x151)];}else logger['error'](_0x182dda['hVQay']),await _0x182dda['xhWPh'](sendInstrumentationEvent,_0x258642,_0x182dda['ipwuR'],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x14e)],null,_0x258642),process[_0x3ac7b3(0x1aa)](0x1);}catch(_0x430d40){logger[_0x3ac7b3(0x17e)](_0x430d40[_0x3ac7b3(0x178)]),await _0x182dda[_0x3ac7b3(0x188)](sendInstrumentationEvent,_0x258642,_0x182dda[_0x3ac7b3(0x18e)],messageTypes[_0x3ac7b3(0x19f)],_0x182dda[_0x3ac7b3(0x180)],_0x430d40,_0x258642),process['exit'](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0xb5192a=a13_0x1f73;(function(_0x719dee,_0x17eb9a){const _0x2b07db=a13_0x1f73,_0x306414=_0x719dee();while(!![]){try{const _0x105baf=-parseInt(_0x2b07db(0x1b0))/0x1*(parseInt(_0x2b07db(0x1a7))/0x2)+-parseInt(_0x2b07db(0x1aa))/0x3+-parseInt(_0x2b07db(0x1ac))/0x4*(parseInt(_0x2b07db(0x1a4))/0x5)+-parseInt(_0x2b07db(0x1a9))/0x6+parseInt(_0x2b07db(0x19f))/0x7+parseInt(_0x2b07db(0x1a1))/0x8+parseInt(_0x2b07db(0x1a3))/0x9*(parseInt(_0x2b07db(0x1ad))/0xa);if(_0x105baf===_0x17eb9a)break;else _0x306414['push'](_0x306414['shift']());}catch(_0x69f9b6){_0x306414['push'](_0x306414['shift']());}}}(a13_0x3619,0x30020));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0xb5192a(0x1af));exports['command']=a13_0xb5192a(0x1a6),exports[a13_0xb5192a(0x1ab)]=a13_0xb5192a(0x19e),exports['builder']=function(_0x537f5b){const _0x741f25=a13_0xb5192a,_0x18d04c={};_0x18d04c[_0x741f25(0x1a2)]='list_commands',_0x18d04c['vValc']=_0x741f25(0x19d);const _0x4cf96a=_0x18d04c;return _0x537f5b[_0x741f25(0x1ae)](_0x4cf96a['dPVlp'])[_0x741f25(0x1b1)]()[_0x741f25(0x1a5)](HELP_HEADER_MESSAGE[_0x741f25(0x1a6)][_0x741f25(0x19b)])[_0x741f25(0x19c)](HELP_FOOTER_MESSAGE)[_0x741f25(0x1a8)]()['strict']()[_0x741f25(0x19d)](_0x4cf96a[_0x741f25(0x1a0)]);},exports[a13_0xb5192a(0x1b2)]=function(_0x2badb8){};function a13_0x1f73(_0x3d1a0e,_0x58d94d){const _0x3619af=a13_0x3619();return a13_0x1f73=function(_0x1f7314,_0x2a3543){_0x1f7314=_0x1f7314-0x19b;let _0x64207e=_0x3619af[_0x1f7314];return _0x64207e;},a13_0x1f73(_0x3d1a0e,_0x58d94d);}function a13_0x3619(){const _0x520084=['epilogue','help','List\x20down\x20the\x20Grid\x20resources.','1805216dmHjOv','vValc','1006872JfbIvK','dPVlp','117ABXdXq','4560PhHwbq','usage','list','14506ZiwlxO','recommendCommands','1959150bvSLMr','613452yhJilD','desc','584LGISEE','472970FMRXiK','commandDir','../config/constants','19uXtaMQ','demandCommand','handler','root'];a13_0x3619=function(){return _0x520084;};return a13_0x3619();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x339b2d=a14_0x5a29;function a14_0x28d1(){const _0x9cbcf2=['type','got','uuid','error','axEzQ','jknvE','vcULL','qCnfm','3174948dryANh','init-not-called','unknown-error','641013hoZJay','DDUtk','readFileSync','region','list-grid-profiles-called','builder','description','vCAyD','statusCode','lmyvi','../../utils/instrumentationUtils','/packages/cli/get-all-grid-profiles','wpnBd','cloud-provider','body','cloudProvider','6042744HzMfrP','push','stack','../../config/constants','epilogue','hzNyk','bstackAccesskey','desc','name','argv','table','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid-profile-name','Browserstack','qPIxU','36352216NOjjWs','GET','ACeuC','bstackUsername','stringify','concurrency','Txpec','656872xvKSrz','handler','LyXJN','526984XDYJuJ','../../utils/utilityMethods','requestId','3620247YsqqjQ','GLQQf','parse','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','HhxzU','server-error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','log','ERROR','unauthorised','ZseaV','username','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','all-grid-profiles','45hodHIv','usage','WXetX','kKjor','OEZQT','options','INFO','https://','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','YptiD','help','password','yxvsc','pTegh'];a14_0x28d1=function(){return _0x9cbcf2;};return a14_0x28d1();}(function(_0x2254ac,_0x15e069){const _0x13682c=a14_0x5a29,_0x570d58=_0x2254ac();while(!![]){try{const _0x3c6374=-parseInt(_0x13682c(0xcb))/0x1+parseInt(_0x13682c(0xa0))/0x2+-parseInt(_0x13682c(0xa3))/0x3+parseInt(_0x13682c(0x9d))/0x4*(-parseInt(_0x13682c(0xb1))/0x5)+-parseInt(_0x13682c(0xdb))/0x6+parseInt(_0x13682c(0xc8))/0x7+parseInt(_0x13682c(0x96))/0x8;if(_0x3c6374===_0x15e069)break;else _0x570d58['push'](_0x570d58['shift']());}catch(_0x3f8907){_0x570d58['push'](_0x570d58['shift']());}}}(a14_0x28d1,0xe29eb));const fs=require('fs'),got=require(a14_0x339b2d(0xc1)),{table}=require(a14_0x339b2d(0xe5)),{v4:uuidv4}=require(a14_0x339b2d(0xc2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x339b2d(0xde)),{getCredentialsPath,getAuthHeader}=require(a14_0x339b2d(0xa1)),{sendInstrumentationEvent}=require(a14_0x339b2d(0xd5));function a14_0x5a29(_0x2e83b1,_0x1e9def){const _0x28d109=a14_0x28d1();return a14_0x5a29=function(_0x5a292b,_0x339d7b){_0x5a292b=_0x5a292b-0x92;let _0x1d0e78=_0x28d109[_0x5a292b];return _0x1d0e78;},a14_0x5a29(_0x2e83b1,_0x1e9def);}exports['command']='grid-profiles',exports[a14_0x339b2d(0xe2)]=a14_0x339b2d(0xa6),exports[a14_0x339b2d(0xd0)]=function(_0x39fffd){const _0x60249f=a14_0x339b2d,_0x22b150={};_0x22b150[_0x60249f(0xad)]=_0x60249f(0xba),_0x22b150['DfwDD']='boolean',_0x22b150[_0x60249f(0xbb)]=_0x60249f(0xbc);const _0x51b8b6=_0x22b150,_0x3ec826={};_0x3ec826[_0x60249f(0xd1)]=_0x51b8b6[_0x60249f(0xad)],_0x3ec826[_0x60249f(0xc0)]=_0x51b8b6['DfwDD'];const _0x5396d9={};return _0x5396d9[_0x60249f(0xb0)]=_0x3ec826,_0x39fffd[_0x60249f(0xb2)](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x60249f(0xdf)](HELP_FOOTER_MESSAGE)[_0x60249f(0xb6)](_0x5396d9)[_0x60249f(0xbc)](_0x51b8b6[_0x60249f(0xbb)])[_0x60249f(0xe4)];},exports[a14_0x339b2d(0x9e)]=async function(_0x38a8a6){const _0x121ab6=a14_0x339b2d,_0x3393d5={'kKjor':function(_0x3bf78b){return _0x3bf78b();},'jknvE':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WXetX':function(_0x1dd860,_0x4426d9,_0x54609a,_0x595999,_0xa3c540,_0x47e791,_0x18f456){return _0x1dd860(_0x4426d9,_0x54609a,_0x595999,_0xa3c540,_0x47e791,_0x18f456);},'hzNyk':_0x121ab6(0xcf),'ACeuC':_0x121ab6(0xc9),'lmyvi':function(_0x22ce66){return _0x22ce66();},'wpnBd':_0x121ab6(0x97),'axEzQ':function(_0x5b8369,_0x19bf2b,_0x4b2266){return _0x5b8369(_0x19bf2b,_0x4b2266);},'HhxzU':function(_0x2498ad,_0x509b17,_0x54f2bb,_0x4a53db,_0x39525b,_0x453467,_0x5dd078){return _0x2498ad(_0x509b17,_0x54f2bb,_0x4a53db,_0x39525b,_0x453467,_0x5dd078);},'LyXJN':function(_0x329e80,_0xff1423){return _0x329e80!==_0xff1423;},'vcULL':function(_0xb3b078,_0x32395d){return _0xb3b078===_0x32395d;},'oMoFd':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','qPIxU':_0x121ab6(0x93),'yxvsc':_0x121ab6(0xd8),'pTegh':_0x121ab6(0xce),'GpWNz':_0x121ab6(0x9b),'vCAyD':function(_0x1189c3,_0x278f3d){return _0x1189c3(_0x278f3d);},'GLQQf':function(_0x3bd706,_0x5910ce,_0x287abc,_0x5212c0,_0x273e80,_0x4868c1,_0x32ee75){return _0x3bd706(_0x5910ce,_0x287abc,_0x5212c0,_0x273e80,_0x4868c1,_0x32ee75);},'Txpec':_0x121ab6(0xac),'qCnfm':function(_0x3f9515,_0x4a8bca,_0x5cb556,_0x559f75,_0x28f16d,_0x3da7bb,_0x4a96f3){return _0x3f9515(_0x4a8bca,_0x5cb556,_0x559f75,_0x28f16d,_0x3da7bb,_0x4a96f3);},'DDUtk':_0x121ab6(0xa8),'OEZQT':_0x121ab6(0xca)};try{global_registry[_0x121ab6(0xa2)]=_0x3393d5[_0x121ab6(0xb4)](uuidv4);let _0x1cb03f=_0x121ab6(0xb8)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x38a8a6['allGridProfiles']&&(_0x1cb03f=_0x121ab6(0xb8)+AG_API_URL+_0x121ab6(0xd6));!fs['existsSync'](_0x3393d5['kKjor'](getCredentialsPath))&&(console[_0x121ab6(0xc3)](_0x3393d5[_0x121ab6(0xc5)]),await _0x3393d5['WXetX'](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0x98)],null,_0x38a8a6),process[_0x121ab6(0xb9)](0x1));const _0x1881bc=JSON[_0x121ab6(0xa5)](fs[_0x121ab6(0xcd)](_0x3393d5[_0x121ab6(0xd4)](getCredentialsPath))),_0x4cee7e={'method':_0x3393d5[_0x121ab6(0xd7)],'headers':_0x3393d5[_0x121ab6(0xc4)](getAuthHeader,_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xae)],_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xbd)]),'throwHttpErrors':![]};global_registry[_0x121ab6(0x99)]=_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xae)],global_registry[_0x121ab6(0xe1)]=_0x1881bc[_0x121ab6(0x94)][_0x121ab6(0xbd)],_0x3393d5[_0x121ab6(0xa7)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xb7)],null,null,_0x38a8a6);const _0x4e203f=await _0x3393d5[_0x121ab6(0xc4)](got,_0x1cb03f,_0x4cee7e);if(_0x3393d5[_0x121ab6(0x9f)](_0x4e203f,null)&&_0x3393d5[_0x121ab6(0x9f)](_0x4e203f,undefined)&&_0x3393d5[_0x121ab6(0xc6)](_0x4e203f['statusCode'],0xc8)){const _0x3f99c0=JSON[_0x121ab6(0xa5)](_0x4e203f[_0x121ab6(0xd9)]);console[_0x121ab6(0xaa)](_0x3393d5['oMoFd']);const _0x49fc67=[];_0x49fc67[_0x121ab6(0xdc)]([_0x3393d5[_0x121ab6(0x95)],_0x3393d5[_0x121ab6(0xbe)],_0x3393d5[_0x121ab6(0xbf)],_0x3393d5['GpWNz']]),_0x3f99c0['forEach'](_0x2edb6a=>{const _0x4c5e03=_0x121ab6;_0x49fc67['push']([_0x2edb6a[_0x4c5e03(0xe3)],_0x2edb6a[_0x4c5e03(0xda)],_0x2edb6a[_0x4c5e03(0xce)],_0x2edb6a[_0x4c5e03(0x9b)]]);}),console[_0x121ab6(0xaa)](_0x3393d5[_0x121ab6(0xd2)](table,_0x49fc67)),process['exit'](0x0);}_0x3393d5[_0x121ab6(0xc6)](_0x4e203f[_0x121ab6(0xd3)],0x191)&&(console[_0x121ab6(0xc3)](_0x121ab6(0xaf)),await _0x3393d5[_0x121ab6(0xa4)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0x9c)],null,_0x38a8a6),process['exit'](0x1)),console[_0x121ab6(0xc3)](_0x121ab6(0xa9)+JSON[_0x121ab6(0x9a)](_0x4e203f)),await _0x3393d5[_0x121ab6(0xc7)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5[_0x121ab6(0xe0)],messageTypes['ERROR'],_0x3393d5[_0x121ab6(0xcc)],_0x4e203f,_0x38a8a6),process['exit'](0x1);}catch(_0x5bd339){console[_0x121ab6(0xc3)](_0x121ab6(0x92)+_0x5bd339[_0x121ab6(0xdd)]),await _0x3393d5[_0x121ab6(0xb3)](sendInstrumentationEvent,_0x38a8a6,_0x3393d5['hzNyk'],messageTypes[_0x121ab6(0xab)],_0x3393d5[_0x121ab6(0xb5)],_0x5bd339,_0x38a8a6),process[_0x121ab6(0xb9)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0x1fb4(_0x5708b6,_0x21f29b){const _0x15ca8d=a15_0x15ca();return a15_0x1fb4=function(_0x1fb4a9,_0x35d126){_0x1fb4a9=_0x1fb4a9-0xf6;let _0x490de=_0x15ca8d[_0x1fb4a9];return _0x490de;},a15_0x1fb4(_0x5708b6,_0x21f29b);}function a15_0x15ca(){const _0x4e89b0=['unknown-error','uuid','hhqhr','epilogue','queued','error','78985CdAOJK','JZcuK','init-not-called','WQFMu','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','8AorwkA','grid-id','GttUw','unauthorised','password','12651952gLPCyd','ywzTj','KZVTz','statusCode','help','200WSNCFJ','126yfuaqN','qyLox','ZyJeM','28870479aeITZh','builder','UCFtO','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','argv','nATFW','CahBE','handler','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','name','grid','all-grids','stack','forEach','KRuDp','xUTxS','command','https://','cluster-name','body','\x0aFound\x20the\x20following\x20grids:\x0a','FMvQV','stringify','exit','desc','DABVj','requestId','Browserstack','7065426qCQMNc','30760RpTEzw','list-grids-called','options','/packages/cli/get-grids','CmsGJ','username','got','INFO','parse','push','GeRoP','../../utils/utilityMethods','readFileSync','bstackAccesskey','bstackUsername','GET','server-error','AfaQQ','boolean','status','fMZLx','89277ftYTcY','Failed\x20to\x20list\x20resources!\x20Error:\x20','existsSync','allGrids','mjHJD','list','../../utils/instrumentationUtils','clusterName','7eKoTWy','MnftC','SmMEB','ERROR','../../config/constants','uxGJd','1510298UMgRvs','SEDZA','log'];a15_0x15ca=function(){return _0x4e89b0;};return a15_0x15ca();}const a15_0x438985=a15_0x1fb4;(function(_0x15d6d8,_0x4facf4){const _0x1eca06=a15_0x1fb4,_0x3e7a70=_0x15d6d8();while(!![]){try{const _0x59fd1a=-parseInt(_0x1eca06(0x124))/0x1+parseInt(_0x1eca06(0x132))/0x2*(parseInt(_0x1eca06(0x116))/0x3)+parseInt(_0x1eca06(0x13c))/0x4*(-parseInt(_0x1eca06(0x12d))/0x5)+-parseInt(_0x1eca06(0x100))/0x6*(parseInt(_0x1eca06(0x11e))/0x7)+parseInt(_0x1eca06(0x137))/0x8+parseInt(_0x1eca06(0x13d))/0x9*(-parseInt(_0x1eca06(0x101))/0xa)+parseInt(_0x1eca06(0x140))/0xb;if(_0x59fd1a===_0x4facf4)break;else _0x3e7a70['push'](_0x3e7a70['shift']());}catch(_0x57d767){_0x3e7a70['push'](_0x3e7a70['shift']());}}}(a15_0x15ca,0xc45f0));const fs=require('fs'),got=require(a15_0x438985(0x107)),{table}=require('table'),{v4:uuidv4}=require(a15_0x438985(0x128)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x438985(0x122)),{getCredentialsPath,getAuthHeader}=require(a15_0x438985(0x10c)),{sendInstrumentationEvent}=require(a15_0x438985(0x11c));exports[a15_0x438985(0x150)]='grids',exports[a15_0x438985(0xfc)]=a15_0x438985(0x148),exports[a15_0x438985(0x141)]=function(_0x1fdd49){const _0x1f045=a15_0x438985,_0x1b6361={};_0x1b6361['KZVTz']=_0x1f045(0x143),_0x1b6361[_0x1f045(0x129)]=_0x1f045(0x113),_0x1b6361[_0x1f045(0x120)]=_0x1f045(0x13b);const _0x59f8ca=_0x1b6361,_0x3b2643={};_0x3b2643['description']=_0x59f8ca[_0x1f045(0x139)],_0x3b2643['type']=_0x59f8ca[_0x1f045(0x129)];const _0x29a185={};return _0x29a185[_0x1f045(0x14b)]=_0x3b2643,_0x1fdd49['usage'](HELP_HEADER_MESSAGE[_0x1f045(0x11b)][_0x1f045(0x14a)])[_0x1f045(0x12a)](HELP_FOOTER_MESSAGE)[_0x1f045(0x103)](_0x29a185)[_0x1f045(0x13b)](_0x59f8ca['SmMEB'])[_0x1f045(0x144)];},exports[a15_0x438985(0x147)]=async function(_0x460387){const _0x1375c1=a15_0x438985,_0x14ef7c={'GttUw':function(_0x55d640){return _0x55d640();},'UCFtO':function(_0xe12728){return _0xe12728();},'qyLox':_0x1375c1(0x131),'xUTxS':function(_0x340fa7,_0xb040f8,_0x422f8b,_0x4bfa69,_0x3c91ec,_0x149528,_0x2661d8){return _0x340fa7(_0xb040f8,_0x422f8b,_0x4bfa69,_0x3c91ec,_0x149528,_0x2661d8);},'GeRoP':_0x1375c1(0x102),'WQFMu':_0x1375c1(0x12f),'mjHJD':function(_0x28f46d){return _0x28f46d();},'pyZzL':_0x1375c1(0x110),'RvlKU':function(_0x50394c,_0x5d2193,_0x29571b){return _0x50394c(_0x5d2193,_0x29571b);},'SEDZA':function(_0x5c47bb,_0x5d41b2,_0x149f16){return _0x5c47bb(_0x5d41b2,_0x149f16);},'DABVj':function(_0x287315,_0x2b3936){return _0x287315!==_0x2b3936;},'nATFW':function(_0x54d02b,_0x3ac1eb){return _0x54d02b===_0x3ac1eb;},'OljsV':_0x1375c1(0xf8),'KRuDp':_0x1375c1(0x133),'ywzTj':'grid-name','JZcuK':_0x1375c1(0x114),'CmsGJ':'running','fMZLx':_0x1375c1(0x12b),'YmLMm':_0x1375c1(0xf6),'AfaQQ':function(_0x137a97,_0x34d7d6){return _0x137a97(_0x34d7d6);},'jeIqW':function(_0x373997,_0x6617dc,_0x50e4b0,_0x56ab7b,_0x2b2e62,_0x280995,_0x1f9bf1){return _0x373997(_0x6617dc,_0x50e4b0,_0x56ab7b,_0x2b2e62,_0x280995,_0x1f9bf1);},'ZyJeM':_0x1375c1(0x135),'FMvQV':function(_0x2fbb60,_0x50518d,_0x4aaad6,_0x1723f7,_0x35c721,_0x4fe024,_0x44c9dd){return _0x2fbb60(_0x50518d,_0x4aaad6,_0x1723f7,_0x35c721,_0x4fe024,_0x44c9dd);},'uxGJd':_0x1375c1(0x111),'CahBE':function(_0x5bd048,_0x2a5978,_0x1286b3,_0x2d227f,_0x3df4bb,_0x14a534,_0x1e59a5){return _0x5bd048(_0x2a5978,_0x1286b3,_0x2d227f,_0x3df4bb,_0x14a534,_0x1e59a5);},'MnftC':_0x1375c1(0x127)};try{global_registry[_0x1375c1(0xfe)]=_0x14ef7c[_0x1375c1(0x134)](uuidv4);!fs[_0x1375c1(0x118)](_0x14ef7c[_0x1375c1(0x142)](getCredentialsPath))&&(console[_0x1375c1(0x12c)](_0x14ef7c[_0x1375c1(0x13e)]),await _0x14ef7c[_0x1375c1(0x14f)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes['ERROR'],_0x14ef7c[_0x1375c1(0x130)],null,_0x460387),process[_0x1375c1(0xfb)](0x1));const _0x55fe90=JSON[_0x1375c1(0x109)](fs[_0x1375c1(0x10d)](_0x14ef7c[_0x1375c1(0x11a)](getCredentialsPath)));let _0x28ba0a=_0x1375c1(0x151)+AG_API_URL+_0x1375c1(0x104);_0x460387[_0x1375c1(0x119)]&&(_0x28ba0a=_0x1375c1(0x151)+AG_API_URL+'/packages/cli/get-all-grids');const _0x27b878={'method':_0x14ef7c['pyZzL'],'headers':_0x14ef7c['RvlKU'](getAuthHeader,_0x55fe90['Browserstack'][_0x1375c1(0x106)],_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x136)]),'throwHttpErrors':![]};global_registry[_0x1375c1(0x10f)]=_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x106)],global_registry[_0x1375c1(0x10e)]=_0x55fe90[_0x1375c1(0xff)][_0x1375c1(0x136)],_0x14ef7c['xUTxS'](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x108)],null,null,_0x460387);const _0x4cc933=await _0x14ef7c[_0x1375c1(0x125)](got,_0x28ba0a,_0x27b878);if(_0x14ef7c[_0x1375c1(0xfd)](_0x4cc933,null)&&_0x14ef7c[_0x1375c1(0xfd)](_0x4cc933,undefined)&&_0x14ef7c[_0x1375c1(0x145)](_0x4cc933[_0x1375c1(0x13a)],0xc8)){const _0x523c21=JSON[_0x1375c1(0x109)](_0x4cc933[_0x1375c1(0xf7)]);console[_0x1375c1(0x126)](_0x14ef7c['OljsV']);const _0x24fdfe=[];_0x24fdfe[_0x1375c1(0x10a)]([_0x14ef7c[_0x1375c1(0x14e)],_0x14ef7c[_0x1375c1(0x138)],_0x14ef7c[_0x1375c1(0x12e)],_0x14ef7c[_0x1375c1(0x105)],_0x14ef7c[_0x1375c1(0x115)],_0x14ef7c['YmLMm']]),_0x523c21[_0x1375c1(0x14d)](_0x17ea37=>{const _0x3c0a66=_0x1375c1;_0x24fdfe['push']([_0x17ea37['id'],_0x17ea37[_0x3c0a66(0x149)],_0x17ea37[_0x3c0a66(0x114)],_0x17ea37['running'],_0x17ea37[_0x3c0a66(0x12b)],_0x17ea37[_0x3c0a66(0x11d)]]);}),console['log'](_0x14ef7c[_0x1375c1(0x112)](table,_0x24fdfe)),process[_0x1375c1(0xfb)](0x0);}_0x14ef7c[_0x1375c1(0x145)](_0x4cc933[_0x1375c1(0x13a)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x14ef7c['jeIqW'](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x121)],_0x14ef7c[_0x1375c1(0x13f)],null,_0x460387),process[_0x1375c1(0xfb)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1375c1(0xfa)](_0x4cc933)),await _0x14ef7c[_0x1375c1(0xf9)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes['ERROR'],_0x14ef7c[_0x1375c1(0x123)],_0x4cc933,_0x460387),process[_0x1375c1(0xfb)](0x1);}catch(_0x580567){console[_0x1375c1(0x12c)](_0x1375c1(0x117)+_0x580567[_0x1375c1(0x14c)]),await _0x14ef7c[_0x1375c1(0x146)](sendInstrumentationEvent,_0x460387,_0x14ef7c[_0x1375c1(0x10b)],messageTypes[_0x1375c1(0x121)],_0x14ef7c[_0x1375c1(0x11f)],_0x580567,_0x460387),process[_0x1375c1(0xfb)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16_0x232c(){const _0x57bda9=['291iklCAR','85qdKXhZ','16178760lHfYbF','7125129XBBwwH','usage','handler','11385871kIXPEq','7578GoTgVk','350454rDkVvz','builder','commandDir','start','desc','help','372384eXyDui','start_commands','kMTxs','demandCommand','8eRkVgB','4328208zXkVke','Start\x20an\x20existing\x20Automation\x20grid.','epilogue'];a16_0x232c=function(){return _0x57bda9;};return a16_0x232c();}const a16_0x3ff61a=a16_0x1d07;function a16_0x1d07(_0x4ebcdb,_0x17eb48){const _0x232c79=a16_0x232c();return a16_0x1d07=function(_0x1d07e3,_0x4f8b9d){_0x1d07e3=_0x1d07e3-0x166;let _0x1f98f3=_0x232c79[_0x1d07e3];return _0x1f98f3;},a16_0x1d07(_0x4ebcdb,_0x17eb48);}(function(_0x1b14be,_0x3e141d){const _0x4f070e=a16_0x1d07,_0x2e8415=_0x1b14be();while(!![]){try{const _0x47da6b=parseInt(_0x4f070e(0x16a))/0x1+parseInt(_0x4f070e(0x179))/0x2*(-parseInt(_0x4f070e(0x172))/0x3)+parseInt(_0x4f070e(0x16f))/0x4+-parseInt(_0x4f070e(0x173))/0x5*(parseInt(_0x4f070e(0x17a))/0x6)+parseInt(_0x4f070e(0x178))/0x7+-parseInt(_0x4f070e(0x16e))/0x8*(-parseInt(_0x4f070e(0x175))/0x9)+-parseInt(_0x4f070e(0x174))/0xa;if(_0x47da6b===_0x3e141d)break;else _0x2e8415['push'](_0x2e8415['shift']());}catch(_0x3a21b8){_0x2e8415['push'](_0x2e8415['shift']());}}}(a16_0x232c,0xda564));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='start',exports[a16_0x3ff61a(0x168)]=a16_0x3ff61a(0x170),exports[a16_0x3ff61a(0x17b)]=function(_0x5c7b16){const _0x13dd39=a16_0x3ff61a,_0x35488c={};_0x35488c[_0x13dd39(0x16c)]=_0x13dd39(0x16b),_0x35488c['OERuG']=_0x13dd39(0x169);const _0xdcb060=_0x35488c;return _0x5c7b16[_0x13dd39(0x176)](HELP_HEADER_MESSAGE[_0x13dd39(0x167)])[_0x13dd39(0x171)](HELP_FOOTER_MESSAGE)[_0x13dd39(0x166)](_0xdcb060[_0x13dd39(0x16c)])[_0x13dd39(0x16d)]()['recommendCommands']()['strict']()[_0x13dd39(0x169)](_0xdcb060['OERuG']);},exports[a16_0x3ff61a(0x177)]=function(_0x3d028d){};
|