browserstack-node-sdk 1.31.6 → 1.31.7
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/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/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/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/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/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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.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/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/performance-tester.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/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x47a0(_0x1ad74b,_0x299884){const _0x3be8c6=a8_0x3be8();return a8_0x47a0=function(_0x47a01a,_0x18eb1e){_0x47a01a=_0x47a01a-0x150;let _0x2237e3=_0x3be8c6[_0x47a01a];return _0x2237e3;},a8_0x47a0(_0x1ad74b,_0x299884);}function a8_0x3be8(){const _0x4d3c2a=['desc','43255GZDfZq','1015508YHGYTJ','Jowum','create','542BQasSk','8kaRnKP','1620731cmGbPE','commandDir','323379QVMCWx','983bgpcHT','1594116wDYgFu','strict','epilogue','builder','Create\x20a\x20new\x20Automation\x20grid.','15376471BNhtnF','help','114pbSMLu','10KhIQUc','command','csORD','recommendCommands'];a8_0x3be8=function(){return _0x4d3c2a;};return a8_0x3be8();}const a8_0x4e1ca8=a8_0x47a0;(function(_0x1a14b8,_0x4d68f1){const _0x27a183=a8_0x47a0,_0x1683fc=_0x1a14b8();while(!![]){try{const _0x49fadb=parseInt(_0x27a183(0x163))/0x1*(-parseInt(_0x27a183(0x15e))/0x2)+-parseInt(_0x27a183(0x162))/0x3+-parseInt(_0x27a183(0x15b))/0x4+-parseInt(_0x27a183(0x15a))/0x5*(parseInt(_0x27a183(0x154))/0x6)+-parseInt(_0x27a183(0x160))/0x7+-parseInt(_0x27a183(0x15f))/0x8*(parseInt(_0x27a183(0x164))/0x9)+parseInt(_0x27a183(0x155))/0xa*(parseInt(_0x27a183(0x152))/0xb);if(_0x49fadb===_0x4d68f1)break;else _0x1683fc['push'](_0x1683fc['shift']());}catch(_0x220a32){_0x1683fc['push'](_0x1683fc['shift']());}}}(a8_0x3be8,0x300a4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a8_0x4e1ca8(0x156)]=a8_0x4e1ca8(0x15d),exports[a8_0x4e1ca8(0x159)]=a8_0x4e1ca8(0x151),exports[a8_0x4e1ca8(0x150)]=function(_0x392521){const _0x182ac6=a8_0x4e1ca8,_0x6dbe69={};_0x6dbe69[_0x182ac6(0x15c)]='create_commands',_0x6dbe69[_0x182ac6(0x157)]=_0x182ac6(0x153);const _0x1efdbf=_0x6dbe69;return _0x392521['usage'](HELP_HEADER_MESSAGE[_0x182ac6(0x15d)])[_0x182ac6(0x166)](HELP_FOOTER_MESSAGE)[_0x182ac6(0x161)](_0x1efdbf['Jowum'])['demandCommand']()[_0x182ac6(0x158)]()[_0x182ac6(0x165)]()['help'](_0x1efdbf[_0x182ac6(0x157)]);},exports['handler']=function(_0x2ac5c1){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a9_0x506e(){const _0x1a6a03=['SyySb','116190qpeOVY','<PasswordPlaceholder>','create-grid-checks-grid-already-exists','JuXkm','YVvKl','0|1|2|3|4','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','tUpmk','debug','clusterRegion','SFXnb','stringify','wgEip','DfzEQ','../../utils/userInput','bstackUsername','vRORw','hHHmm','pre-spawned-invalid-vpc','route53','hPvUE','24cewWQT','isClusterPresent','description','securityGroups','request','TgEFA','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','iRWaZ','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','password','XgiqV','eEdHQ','JvcDn','SRIvA','isSubnetsValid','hYnBt','s3bucket','FqADP','CGuUc','length','username','CHvHJ','clusterName','SmrOU','uubPj','create-grid-checks-non-200','tkhQY','info','nnXBx','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tFLXc','help','hhJwI','gtBZA','KhJjZ','oWhRv','mnDlY','builder','readNamespacedService','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','PtJXx','kUEmR','4907zqOeIf','privateGrid','jORZE','dLVDe','KvpUq','rhehb','isPrivateGrid','s3BucketName','get-grid-url-non-200','includes','LOG','JyPmO','error','YhjZN','hESsX','grid-name','dLTJG','body','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','://','FIVxk','Grid\x20spawned\x20on\x20the\x20cluster','uURXs','https','JiLrM','VVwft','Creating\x20namespace','subnets','BSzlt','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','KIVXY','private-ingress-nginx-controller','requestId','type','XYToV','Deleting\x20the\x20CloudFormation\x20Stacks','Cluster\x20created\x20successfully','readFileSync','setupNewCluster','init-not-called','RpsCB','ERROR','Create\x20a\x20new\x20Automation\x20grid.','NIXUm','/packages/cli/create-grid-checks','RmOWP','Spawning\x20Grid\x20on\x20the\x20Cluster','auth','FZtwC','ingress-nginx-controller','usage','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','true','WvwlU','browserVersion','KwWxe','569808PQOVUA','reconnecting-websocket','DeZwe','PrGvb','HuIcU','ODLfq','delay','42758kadxZH','private-grid','TJHCC','addListeners','create-grid-checks-null-response','ICsMn','SifrG','YCNql','mxUaq','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','vpc','XmhqK','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','opQwe','PyubQ','create','toLowerCase','minNodes','../../utils/utilityMethods','Browserstack','bstackAccesskey','LxyHE','getResourceClientId','SsWis','DgNQa','nLLRg','cWWKX','187axDVhM','NmGXm','grid-spawning-failed','configureIfNotConfigured','ConpJ','turboscale-managed-identity-','NfQab','\x20in\x20existing\x20cluster\x20\x27','parse','yEmtP','epilogue','../../utils/webSocketUtils','rblSc','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','mZwxk','UcvrH','../../config/constants','khdla','toSRA','sendEventToBackend','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ingress-nginx','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','jjcTQ','919352cdIaug','promisify','method','JMatc','8PwAFvP','non-aws-azure-cluster','nRgpl','zudOH','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','sYXFp','updatePreSpawnedCluster','alreadyPresent','UrxEE','BjdmN','split','\x27\x20grid\x20profile','xAgeX','obWvj','grid','gridName','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','\x20are\x20not\x20present\x20in\x20VPC:\x20','cloud-provider','pre-spawned-subnets-not-selected','isVPCPresent','9ZzVHzo','string','../../utils/instrumentationUtils','createNamespace','grid-profile','Uqflm','name','../../config/logger','aipAL','4klZRSz','region','Adding\x20Websocket\x20listeners','tmiNw','222rgVUWC','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','TtrUG','zVatE','get-grid-url-auth-failed','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Will\x20be\x20spawning\x20the\x20grid\x20','CvWzN','UzRwE','metadata','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WebSocket','options','CumCd','statusCode','nEaaY','IDfvL','cloudProvider','../../utils/createk8sClient','gridProfileId','getGridHostname','BiJSW','Found\x20Subnets:\x20','FTnEu','WImPJ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','replace','FdNcI','Spawning\x20the\x20grid\x20','VJJrZ','LewQd','ojhsL','jFChI','command','cluster-name','zUdsW','HlrLF','Cluster\x20','gridProfiles','exit','AupxC','pre-spawned-invalid-subnets','util','connectionTimeout','Create\x20a\x20private/public\x20grid.','../../utils/gridComponents','ojKcw','cXidR','CLI_RUN_STARTED','Found\x20VPC:\x20','GET','CWQIo','argv','SVRjc','VkeCb','sZoVf','iLCEX','MmGnP','concurrency','uqPBv','existsSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Namespace\x20Created','KzrUi','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.','RoFnb','maxNodes','annotations','rfgUT','CLI\x20run\x20started','Grid\x20profile\x20fetched\x20from\x20backend','createOtherResources','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','default','984347SXEuVI','hubVersion','143870zUjAta','JTDDX','Pmclx','sXMBd','gridProfile','LLGLL','RSLVu','txJtu','Subnets:\x20','MsQFy','CLI\x20run\x20finished:\x20','Namespace\x20created','IksTz','2|7|8|5|6|1|4|0|3','NwLYL','user','message','SyLNb','prespawned-cluster-args-not-passed','instanceType'];a9_0x506e=function(){return _0x1a6a03;};return a9_0x506e();}const a9_0x5736cb=a9_0x1086;(function(_0xf04106,_0x2ec364){const _0x3c0108=a9_0x1086,_0x337e1a=_0xf04106();while(!![]){try{const _0x55d7cf=-parseInt(_0x3c0108(0x134))/0x1*(parseInt(_0x3c0108(0xfd))/0x2)+-parseInt(_0x3c0108(0xf6))/0x3+-parseInt(_0x3c0108(0x153))/0x4*(-parseInt(_0x3c0108(0x1a4))/0x5)+parseInt(_0x3c0108(0x157))/0x6*(-parseInt(_0x3c0108(0x1f9))/0x7)+parseInt(_0x3c0108(0x130))/0x8*(parseInt(_0x3c0108(0x14a))/0x9)+-parseInt(_0x3c0108(0x1b9))/0xa*(-parseInt(_0x3c0108(0x118))/0xb)+-parseInt(_0x3c0108(0x1ce))/0xc*(-parseInt(_0x3c0108(0x1a2))/0xd);if(_0x55d7cf===_0x2ec364)break;else _0x337e1a['push'](_0x337e1a['shift']());}catch(_0x5c5594){_0x337e1a['push'](_0x337e1a['shift']());}}}(a9_0x506e,0x19d15));const fs=require('fs'),ws=require('ws'),util=require(a9_0x5736cb(0x182)),ReconnectingWebSocket=require(a9_0x5736cb(0xf7)),request=require(a9_0x5736cb(0x1d2)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x5736cb(0x123)),{logger}=require(a9_0x5736cb(0x151)),{inputCloudProviderKeys}=require(a9_0x5736cb(0x1c7)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a9_0x5736cb(0x10f)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x5736cb(0x128)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x5736cb(0x185)),{createK8sClient}=require(a9_0x5736cb(0x16a)),{sendInstrumentationEvent}=require(a9_0x5736cb(0x14c)),promisifiedRequest=util[a9_0x5736cb(0x131)](request);function a9_0x1086(_0x11183e,_0xd53ac2){const _0x506ecb=a9_0x506e();return a9_0x1086=function(_0x1086e9,_0x14c225){_0x1086e9=_0x1086e9-0xf3;let _0x250804=_0x506ecb[_0x1086e9];return _0x250804;},a9_0x1086(_0x11183e,_0xd53ac2);}exports[a9_0x5736cb(0x179)]=a9_0x5736cb(0x142),exports['desc']=a9_0x5736cb(0x223),exports[a9_0x5736cb(0x1f3)]=function(_0x1e2406){const _0x5ae297=a9_0x5736cb,_0x3f265b={};_0x3f265b[_0x5ae297(0x19c)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x3f265b['SyySb']='string',_0x3f265b[_0x5ae297(0x12a)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3f265b['gtBZA']=_0x5ae297(0x216),_0x3f265b[_0x5ae297(0x21b)]=_0x5ae297(0x12c),_0x3f265b[_0x5ae297(0x108)]=_0x5ae297(0x106),_0x3f265b[_0x5ae297(0x17b)]=_0x5ae297(0x184),_0x3f265b['nEaaY']=_0x5ae297(0x1ed);const _0x542de5=_0x3f265b,_0x56d11b={};_0x56d11b[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x19c)],_0x56d11b[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x5a2e50={};_0x5a2e50[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x12a)],_0x5a2e50[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x17c663={};_0x17c663[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x1ef)],_0x17c663['type']=_0x542de5[_0x5ae297(0x1b8)];const _0x2995a7={};_0x2995a7[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x21b)],_0x2995a7[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x2a2d4f={};_0x2a2d4f[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x108)],_0x2a2d4f['type']=_0x542de5[_0x5ae297(0x1b8)];const _0x2f8a19={};_0x2f8a19[_0x5ae297(0x1d0)]=_0x542de5['zUdsW'],_0x2f8a19[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x1ea0d9={};return _0x1ea0d9[_0x5ae297(0x208)]=_0x56d11b,_0x1ea0d9[_0x5ae297(0x14e)]=_0x5a2e50,_0x1ea0d9[_0x5ae297(0x17a)]=_0x17c663,_0x1ea0d9[_0x5ae297(0x147)]=_0x2995a7,_0x1ea0d9[_0x5ae297(0x154)]=_0x2a2d4f,_0x1ea0d9[_0x5ae297(0xfe)]=_0x2f8a19,_0x1e2406[_0x5ae297(0x22b)](HELP_HEADER_MESSAGE['create'])[_0x5ae297(0x122)](HELP_FOOTER_MESSAGE)[_0x5ae297(0x164)](_0x1ea0d9)[_0x5ae297(0x1ed)](_0x542de5[_0x5ae297(0x167)])[_0x5ae297(0x18c)];},exports['handler']=async function(_0x4a5111){const _0x2db0b7=a9_0x5736cb,_0x4417a2={'nnXBx':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','xAgeX':_0x2db0b7(0x14b),'ObxSC':_0x2db0b7(0x138),'uaQwx':_0x2db0b7(0x216),'WImPJ':_0x2db0b7(0x12c),'txJtu':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','iRWaZ':_0x2db0b7(0x184),'HLIbn':'help','PyubQ':_0x2db0b7(0x205),'cWWKX':_0x2db0b7(0x158),'clixY':_0x2db0b7(0x1b1),'DfzEQ':'http','rhehb':'warn','DgNQa':_0x2db0b7(0x210),'JuXkm':function(_0x4835f4){return _0x4835f4();},'MmGnP':function(_0x207249){return _0x207249();},'KvpUq':function(_0x3f0bc,_0x48011f){return _0x3f0bc!==_0x48011f;},'hESsX':_0x2db0b7(0x165),'VJJrZ':_0x2db0b7(0x1f5),'hYnBt':function(_0x2f32a4,_0x534516,_0x4bab5e,_0x550396,_0x40cf75,_0x104137,_0x221ff3){return _0x2f32a4(_0x534516,_0x4bab5e,_0x550396,_0x40cf75,_0x104137,_0x221ff3);},'CGuUc':'create-grid-called','UzRwE':_0x2db0b7(0x220),'AHmSg':function(_0x33d27b){return _0x33d27b();},'FqADP':'<UsernamePlaceholder>','TtrUG':_0x2db0b7(0x1ba),'uQiQv':_0x2db0b7(0x155),'YhjZN':function(_0x3f5420,_0x161a63){return _0x3f5420!==_0x161a63;},'LxyHE':_0x2db0b7(0x176),'WvwlU':function(_0x342c1e,_0x12047c){return _0x342c1e!==_0x12047c;},'opQwe':'tXSly','PrGvb':_0x2db0b7(0x161),'FdNcI':function(_0x494790,_0x889e32,_0x1b19b2,_0xb6325c,_0x3a9f9c,_0x60bd70,_0x1478f4,_0x5791fb){return _0x494790(_0x889e32,_0x1b19b2,_0xb6325c,_0x3a9f9c,_0x60bd70,_0x1478f4,_0x5791fb);},'uqPBv':_0x2db0b7(0x1b6),'MsQFy':function(_0x48ba2d,_0x5c99f3){return _0x48ba2d!==_0x5c99f3;},'sYXFp':_0x2db0b7(0x1b0),'jCdzu':_0x2db0b7(0x141),'ojKcw':_0x2db0b7(0x22c),'tUpmk':function(_0x518cff,_0x27ab94,_0x372907,_0x11d99a,_0x23c874,_0x47dfab,_0x2922a8,_0xc89724){return _0x518cff(_0x27ab94,_0x372907,_0x11d99a,_0x23c874,_0x47dfab,_0x2922a8,_0xc89724);},'qUwKe':_0x2db0b7(0x135),'NfQab':function(_0x1d103a,_0x210625){return _0x1d103a===_0x210625;},'zudOH':_0x2db0b7(0x22d),'CWQIo':_0x2db0b7(0x1b5),'NmGXm':_0x2db0b7(0x133),'hhJwI':_0x2db0b7(0x199),'dLTJG':_0x2db0b7(0x18a),'UrxEE':function(_0x323392,_0x26525c){return _0x323392(_0x26525c);},'AupxC':function(_0x443082,_0x4e1358){return _0x443082===_0x4e1358;},'THRyK':function(_0x34999e,_0x543381){return _0x34999e!==_0x543381;},'HuIcU':_0x2db0b7(0x224),'hHHmm':_0x2db0b7(0x1d4),'AKhTw':_0x2db0b7(0x101),'SifrG':function(_0x54a7e5,_0x38a7cd){return _0x54a7e5===_0x38a7cd;},'BiJSW':_0x2db0b7(0x1a5),'wgEip':_0x2db0b7(0x1d9),'sZoVf':_0x2db0b7(0x125),'DeZwe':function(_0x4e6af4,_0x44040e,_0xe0f817,_0x14caaf,_0x327221,_0x3c1905,_0x22845b,_0x5ebc6c){return _0x4e6af4(_0x44040e,_0xe0f817,_0x14caaf,_0x327221,_0x3c1905,_0x22845b,_0x5ebc6c);},'CWRSF':'create-grid-checks-auth-failed','FZtwC':function(_0x4ed731,_0x3587bc){return _0x4ed731!==_0x3587bc;},'OUYkY':function(_0xc9e4ee,_0x4b107f){return _0xc9e4ee!==_0x4b107f;},'ojhsL':_0x2db0b7(0x116),'VVwft':_0x2db0b7(0x1a7),'hPvUE':_0x2db0b7(0x1e7),'YCNql':_0x2db0b7(0x19e),'HlrLF':function(_0x2477ee,_0x5dcb1){return _0x2477ee!==_0x5dcb1;},'SsWis':_0x2db0b7(0x121),'aWfYs':_0x2db0b7(0x226),'PtJXx':_0x2db0b7(0x171),'CHvHJ':function(_0x22e6cc,_0x23d216,_0x32be9e,_0x21c56c,_0x24e6f2,_0x2b3bc3,_0x263f5f,_0x3f3ca2){return _0x22e6cc(_0x23d216,_0x32be9e,_0x21c56c,_0x24e6f2,_0x2b3bc3,_0x263f5f,_0x3f3ca2);},'OipwL':_0x2db0b7(0x1bb),'FVtGh':_0x2db0b7(0x1d8),'mZwxk':'wXIjY','tkhQY':'OUCrL','kGgyI':'zLSEC','FTnEu':function(_0x5f4c7b,_0x1b1209){return _0x5f4c7b===_0x1b1209;},'nRgpl':function(_0xcb31ff,_0x3a10b5){return _0xcb31ff===_0x3a10b5;},'SFXnb':_0x2db0b7(0x1a9),'KIVXY':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','JyPmO':function(_0x361707,_0x39b603,_0x88baf0,_0x4ea536,_0x56a501,_0x504600,_0x3a4412,_0x552621){return _0x361707(_0x39b603,_0x88baf0,_0x4ea536,_0x56a501,_0x504600,_0x3a4412,_0x552621);},'KzrUi':'create-grid-checks-invalid-profile','jjcTQ':function(_0x1113a4,_0x1d9047){return _0x1113a4===_0x1d9047;},'GtbEs':'erglX','wnnMG':'IZKpU','rDGsO':function(_0x4e8b56,_0x5563e3){return _0x4e8b56===_0x5563e3;},'kUEmR':_0x2db0b7(0x168),'SRIvA':function(_0x656567,_0x347ed0,_0x57cdba,_0x293d07,_0x4b1d00,_0x180a9f,_0xd60d8c,_0x1fdd8b,_0x21c4c8,_0x2829e9,_0x25ad01,_0xde7bed){return _0x656567(_0x347ed0,_0x57cdba,_0x293d07,_0x4b1d00,_0x180a9f,_0xd60d8c,_0x1fdd8b,_0x21c4c8,_0x2829e9,_0x25ad01,_0xde7bed);},'ConpJ':'5|0|6|8|4|1|2|7|3','CvWzN':function(_0x1fc545,_0x2f838a,_0x4aa339,_0x2cd792,_0x3d0b43,_0x41ae7c){return _0x1fc545(_0x2f838a,_0x4aa339,_0x2cd792,_0x3d0b43,_0x41ae7c);},'NwLYL':function(_0x2d5984,_0x100cc9){return _0x2d5984===_0x100cc9;},'khdla':_0x2db0b7(0x1bf),'tFLXc':function(_0x36a04e,_0x38f0aa,_0x308036,_0x5eeb06){return _0x36a04e(_0x38f0aa,_0x308036,_0x5eeb06);},'mnDlY':_0x2db0b7(0x1d6),'TgEFA':_0x2db0b7(0x162),'ODLfq':_0x2db0b7(0x109),'KhJjZ':function(_0x156dd0,_0x31d4fb){return _0x156dd0!=_0x31d4fb;},'YVvKl':function(_0x3e5844,_0x316a82){return _0x3e5844!==_0x316a82;},'BjdmN':function(_0xf095ae,_0x2b7b03){return _0xf095ae!==_0x2b7b03;},'Pmclx':function(_0xfdeb4c,_0x2d5603){return _0xfdeb4c>_0x2d5603;},'UcvrH':_0x2db0b7(0x144),'Uqflm':_0x2db0b7(0x148),'cXidR':function(_0x38cdac,_0x103935){return _0x38cdac===_0x103935;},'SVRjc':_0x2db0b7(0x1a0),'gLxnz':_0x2db0b7(0x1cb),'tmiNw':function(_0x471452,_0x4ebcb3,_0x1e7eed,_0x4ddae4,_0x565a83,_0x453a07,_0x294bc5,_0x2ed755){return _0x471452(_0x4ebcb3,_0x1e7eed,_0x4ddae4,_0x565a83,_0x453a07,_0x294bc5,_0x2ed755);},'zVatE':_0x2db0b7(0x181),'RpsCB':_0x2db0b7(0x1be),'JvcDn':_0x2db0b7(0x198),'VkeCb':'Cluster\x20created\x20successfully','YcmTa':function(_0xe23e5d,_0x5f2c3c){return _0xe23e5d==_0x5f2c3c;},'dLVDe':_0x2db0b7(0x213),'pySdu':function(_0x479a6d,_0x5bb09d){return _0x479a6d!==_0x5bb09d;},'hbOdJ':_0x2db0b7(0x1a1),'uubPj':'Browserstack','RuAzg':_0x2db0b7(0x196),'cedRu':_0x2db0b7(0x1af),'jXgac':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','jORZE':_0x2db0b7(0x227),'oWhRv':function(_0x1e3ba8,_0x3f56f1){return _0x1e3ba8===_0x3f56f1;},'BSzlt':function(_0x296525,_0x291600,_0x92b6d5,_0x87deb1,_0x5c4fc5,_0xde522e,_0x1b0bd0,_0x473fb0,_0x38b8f0,_0x586769,_0x4968e){return _0x296525(_0x291600,_0x92b6d5,_0x87deb1,_0x5c4fc5,_0xde522e,_0x1b0bd0,_0x473fb0,_0x38b8f0,_0x586769,_0x4968e);},'KBWKt':_0x2db0b7(0x20e),'lrFaD':_0x2db0b7(0x15c),'JiLrM':function(_0x5bc363,_0x5c44e6,_0x19c1da){return _0x5bc363(_0x5c44e6,_0x19c1da);},'vRORw':_0x2db0b7(0x218),'FIVxk':_0x2db0b7(0x22a),'LhFaH':_0x2db0b7(0x12d),'afEaV':function(_0xd5ad5c,_0x3bd6e2){return _0xd5ad5c(_0x3bd6e2);},'iLCEX':function(_0x2da981,_0x2ea504){return _0x2da981==_0x2ea504;},'ICsMn':_0x2db0b7(0x1f6),'aipAL':'get-grid-url-null-response','KwWxe':function(_0x6d7729,_0x2b83dd){return _0x6d7729===_0x2b83dd;},'TJHCC':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RSLVu':function(_0x212409,_0x2d259d,_0x19f674,_0x358d49,_0x54f69e,_0x48781d,_0x19a6b4,_0x599f9a){return _0x212409(_0x2d259d,_0x19f674,_0x358d49,_0x54f69e,_0x48781d,_0x19a6b4,_0x599f9a);},'uURXs':_0x2db0b7(0x15b),'SmrOU':function(_0x2bc3b4,_0xc729d){return _0x2bc3b4!==_0xc729d;},'rblSc':_0x2db0b7(0x201),'mxUaq':function(_0x18e5ea,_0x2375ba,_0x357052,_0x3431dd,_0xdc6da3,_0x50631e,_0x969aa){return _0x18e5ea(_0x2375ba,_0x357052,_0x3431dd,_0xdc6da3,_0x50631e,_0x969aa);},'jFChI':_0x2db0b7(0x11a)};let _0x558c57=![],_0x3d0b9b,_0x143b9d,_0x1c04a4,_0x4a34f2,_0x3940dd,_0x1994aa,_0x56127f,_0x1213bd,_0x441f2e,_0x260e95,_0x5b7b6e,_0x60399e,_0x3a08e8=0x1,_0x250c19=0xe;try{global_registry[_0x2db0b7(0x219)]=_0x4417a2[_0x2db0b7(0x1bc)](uuidv4),global_registry[_0x2db0b7(0x1ff)]=![];!fs[_0x2db0b7(0x194)](_0x4417a2[_0x2db0b7(0x191)](getCredentialsPath))&&(_0x4417a2[_0x2db0b7(0x1fd)](_0x4417a2[_0x2db0b7(0x207)],_0x4417a2[_0x2db0b7(0x207)])?_0x3054c5[_0x2db0b7(0x1e9)](_0x2db0b7(0x16e)+_0x4db07b[_0x2db0b7(0x1c4)](_0x39699f)+'\x20'):(console[_0x2db0b7(0x205)](_0x4417a2[_0x2db0b7(0x175)]),await _0x4417a2[_0x2db0b7(0x1dd)](sendInstrumentationEvent,_0x4a5111,_0x4417a2[_0x2db0b7(0x1e0)],messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x15f)],null,_0x4a5111),process[_0x2db0b7(0x17f)](0x1)));await _0x4417a2[_0x2db0b7(0x1dd)](sendInstrumentationEvent,_0x4a5111,_0x4417a2[_0x2db0b7(0x1e0)],messageTypes['INFO'],null,null,_0x4a5111);const _0x4ebdd1=JSON[_0x2db0b7(0x120)](fs[_0x2db0b7(0x21e)](_0x4417a2['AHmSg'](getCredentialsPath)));global_registry[_0x2db0b7(0x1c8)]=_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1e2)],global_registry[_0x2db0b7(0x111)]=_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1d7)];const _0x2a3c28=WS_ENDPOINT[_0x2db0b7(0x172)](_0x4417a2[_0x2db0b7(0x1df)],_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1e2)])[_0x2db0b7(0x172)](_0x4417a2[_0x2db0b7(0x159)],_0x4ebdd1['Browserstack'][_0x2db0b7(0x1d7)]),_0x433dff={};_0x433dff[_0x2db0b7(0x163)]=ws,_0x433dff[_0x2db0b7(0x183)]=0x36ee80,_0x260e95=new ReconnectingWebSocket(_0x2a3c28,[],_0x433dff),logger[_0x2db0b7(0x1c1)](_0x4417a2['uQiQv']),webSocketUtils[_0x2db0b7(0x100)](_0x260e95,_0x4a5111[_0x2db0b7(0x1b3)],_0x4a5111[_0x2db0b7(0x1d7)]);let _0x154174=DEFAULT_GRID_NAME;if(_0x4a5111['clusterName']||_0x4a5111[_0x2db0b7(0x169)]||_0x4a5111[_0x2db0b7(0x154)]){if(_0x4417a2[_0x2db0b7(0x206)](_0x4417a2[_0x2db0b7(0x112)],_0x4417a2[_0x2db0b7(0x112)])){const _0x1c3a0e={};_0x1c3a0e['description']=_0x4417a2[_0x2db0b7(0x1ea)],_0x1c3a0e[_0x2db0b7(0x21a)]=_0x4417a2[_0x2db0b7(0x140)];const _0x3b8dae={};_0x3b8dae[_0x2db0b7(0x1d0)]=_0x4417a2['ObxSC'],_0x3b8dae[_0x2db0b7(0x21a)]=_0x4417a2[_0x2db0b7(0x140)];const _0x13fe3c={};_0x13fe3c[_0x2db0b7(0x1d0)]=_0x4417a2['uaQwx'],_0x13fe3c[_0x2db0b7(0x21a)]=_0x4417a2['xAgeX'];const _0x8c055d={};_0x8c055d['description']=_0x4417a2[_0x2db0b7(0x170)],_0x8c055d[_0x2db0b7(0x21a)]=_0x4417a2[_0x2db0b7(0x140)];const _0x1871c4={};_0x1871c4['description']=_0x4417a2[_0x2db0b7(0x1ab)],_0x1871c4['type']=_0x4417a2[_0x2db0b7(0x140)];const _0x32f296={};_0x32f296[_0x2db0b7(0x1d0)]=_0x4417a2[_0x2db0b7(0x1d5)],_0x32f296['type']=_0x4417a2[_0x2db0b7(0x140)];const _0x297d1b={};return _0x297d1b['grid-name']=_0x1c3a0e,_0x297d1b['grid-profile']=_0x3b8dae,_0x297d1b[_0x2db0b7(0x17a)]=_0x13fe3c,_0x297d1b[_0x2db0b7(0x147)]=_0x8c055d,_0x297d1b[_0x2db0b7(0x154)]=_0x1871c4,_0x297d1b[_0x2db0b7(0xfe)]=_0x32f296,_0x4cc7fc['usage'](_0x3b67dc[_0x2db0b7(0x10c)])[_0x2db0b7(0x122)](_0x4fc140)[_0x2db0b7(0x164)](_0x297d1b)[_0x2db0b7(0x1ed)](_0x4417a2['HLIbn'])[_0x2db0b7(0x18c)];}else{if(!(_0x4a5111[_0x2db0b7(0x1e4)]&&_0x4a5111[_0x2db0b7(0x169)]&&_0x4a5111[_0x2db0b7(0x154)])){if(_0x4417a2[_0x2db0b7(0xf3)](_0x4417a2[_0x2db0b7(0x10a)],_0x4417a2['opQwe'])){const _0xd617bc={};_0xd617bc[_0x2db0b7(0x21a)]=_0x54c68e[_0x2db0b7(0x203)],_0xd617bc[_0x2db0b7(0x1b4)]=_0x3bcd11,_0xcb07e6[_0x2db0b7(0x12b)](_0x5121f9,_0xd617bc,_0x4417a2['PyubQ'],!![]);}else _0x3d0b9b=_0x4417a2[_0x2db0b7(0xf9)],await _0x4417a2[_0x2db0b7(0x173)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x193)],_0x4417a2['PyubQ']),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1);}![AWS,AZURE,GCP][_0x2db0b7(0x202)](_0x4a5111['cloudProvider'][_0x2db0b7(0x10d)]())&&(_0x4417a2[_0x2db0b7(0x1ad)](_0x4417a2[_0x2db0b7(0x139)],_0x4417a2['jCdzu'])?(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x186)],await _0x4417a2['tUpmk'](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['qUwKe'],_0x4417a2['PyubQ']),logger['error'](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):(_0x2e7955[_0x2db0b7(0x205)](_0x4417a2[_0x2db0b7(0x117)]),_0x5c3752[_0x2db0b7(0x17f)](0x1))),_0x4a5111[_0x2db0b7(0x1fa)]&&_0x4417a2['NfQab'](_0x4a5111['privateGrid']['toLowerCase'](),_0x4417a2[_0x2db0b7(0x137)])&&(_0x4417a2[_0x2db0b7(0x11e)](_0x4417a2[_0x2db0b7(0x18b)],_0x4417a2[_0x2db0b7(0x119)])?_0x294eec[_0x2db0b7(0x1ff)]=!![]:global_registry[_0x2db0b7(0x1ff)]=!![]),_0x558c57=!![],_0x1c04a4=_0x4a5111[_0x2db0b7(0x1e4)],_0x143b9d=_0x4a5111['cloudProvider']['toLowerCase'](),_0x4a34f2=_0x4a5111[_0x2db0b7(0x154)];}}if(_0x4a5111[_0x2db0b7(0x143)]){if(_0x4417a2['YhjZN'](_0x4417a2[_0x2db0b7(0x1ee)],_0x4417a2[_0x2db0b7(0x1ee)]))throw _0x173c55;else _0x154174=_0x4a5111[_0x2db0b7(0x143)];}global_registry[_0x2db0b7(0x143)]=_0x154174;const _0x3b70e5={};_0x3b70e5[_0x2db0b7(0x1e2)]=_0x4ebdd1[_0x2db0b7(0x110)]['username'],_0x3b70e5[_0x2db0b7(0x1d7)]=_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1d7)];const _0x532a9e={};_0x532a9e[_0x2db0b7(0x132)]=_0x4417a2[_0x2db0b7(0x209)],_0x532a9e[_0x2db0b7(0x228)]=_0x3b70e5;const _0x5b58bc=_0x532a9e,_0x1b78e2='https://'+AG_API_URL+_0x2db0b7(0x225),_0x4407fc={};_0x4407fc['gridName']=_0x154174;const _0x54caa9={'url':_0x1b78e2,'qs':_0x4407fc,..._0x5b58bc},_0x558d4c=_0x54caa9,_0x462163=await _0x4417a2[_0x2db0b7(0x13c)](promisifiedRequest,_0x558d4c);(_0x4417a2[_0x2db0b7(0x180)](_0x462163,null)||_0x4417a2[_0x2db0b7(0x180)](_0x462163,undefined))&&(_0x4417a2['THRyK'](_0x4417a2[_0x2db0b7(0xfa)],_0x4417a2[_0x2db0b7(0xfa)])?_0x576bbd['isPrivateGrid']=!![]:(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x1ca)],await _0x4417a2['FdNcI'](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['AKhTw'],_0x4417a2[_0x2db0b7(0x10b)]),logger['error'](_0x3d0b9b),process['exit'](0x1)));_0x4417a2[_0x2db0b7(0x103)](_0x462163['statusCode'],0x191)&&(_0x4417a2[_0x2db0b7(0x103)](_0x4417a2[_0x2db0b7(0x16d)],_0x4417a2[_0x2db0b7(0x1c5)])?_0x46d30d=_0x29b820[_0x26c01e[_0x2db0b7(0x1a8)]]:(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x18f)],await _0x4417a2[_0x2db0b7(0xf8)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['CWRSF'],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)));if(_0x4417a2['FZtwC'](_0x462163['statusCode'],0xc8)){if(_0x4417a2['OUYkY'](_0x4417a2[_0x2db0b7(0x177)],_0x4417a2[_0x2db0b7(0x212)]))_0x3d0b9b=_0x2db0b7(0x195)+JSON[_0x2db0b7(0x1c4)](_0x462163),await _0x4417a2[_0x2db0b7(0x1c0)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x1cd)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1);else{const _0x26d149=_0x4417a2['clixY']['split']('|');let _0x3622a6=0x0;while(!![]){switch(_0x26d149[_0x3622a6++]){case'0':_0x19d5b5[_0x2db0b7(0x1a3)]=_0x4f0fdc[_0x2db0b7(0x1a3)];continue;case'1':_0x34d2dd[_0x2db0b7(0x1c2)]=_0x1201c7;continue;case'2':const _0x4fa867={};_0x4fa867[_0x2db0b7(0x21a)]=_0x179205['CLI_RUN_STARTED'],_0x4fa867[_0x2db0b7(0x1b4)]=_0x2db0b7(0x19d),_0x59dea8[_0x2db0b7(0x12b)](_0x5d06f7,_0x4fa867);continue;case'3':_0x5c1aef['browserVersion']=_0x464729[_0x2db0b7(0xf4)];continue;case'4':_0x1d86e2[_0x2db0b7(0x1e4)]=_0x33a9b8;continue;case'5':const _0x4ae203={};_0x4ae203['type']=_0x433e48[_0x2db0b7(0x203)],_0x4ae203[_0x2db0b7(0x1b4)]=_0x5e38f2,_0xd560d4[_0x2db0b7(0x12b)](_0x464bd0,_0x4ae203);continue;case'6':_0x30e99a[_0x2db0b7(0x169)]=_0x4ca0a7;continue;case'7':_0x3de754=_0x2db0b7(0x174)+_0x1b2c6f+_0x2db0b7(0x11f)+_0xcde54b+'\x27';continue;case'8':_0x3b6ffe[_0x2db0b7(0x1e9)](_0x354e8e);continue;}break;}}}const _0x16fbbc=JSON[_0x2db0b7(0x120)](_0x462163[_0x2db0b7(0x20a)]),_0x1ad825={};_0x1ad825[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x188)],_0x1ad825[_0x2db0b7(0x1b4)]=_0x2db0b7(0x19d),webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x1ad825);const _0x3d93f5={};_0x3d93f5[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x3d93f5['message']=_0x4417a2[_0x2db0b7(0x104)],webSocketUtils['sendEventToBackend'](_0x260e95,_0x3d93f5);_0x16fbbc[_0x2db0b7(0x13b)]&&(_0x4417a2[_0x2db0b7(0x17c)](_0x4417a2[_0x2db0b7(0x114)],_0x4417a2['aWfYs'])?(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x1f7)],await _0x4417a2[_0x2db0b7(0x1e3)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['OipwL'],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):_0x5b7958[_0x2db0b7(0x169)]={});const _0xc72ca1=_0x16fbbc[_0x2db0b7(0x17e)];let _0x3fb40b=_0xc72ca1[_0x16fbbc['defaultGridProfile']];_0x4a5111[_0x2db0b7(0x1a8)]&&(_0x4417a2[_0x2db0b7(0x1fd)](_0x4417a2['FVtGh'],_0x4417a2[_0x2db0b7(0x126)])?_0x3fb40b=_0xc72ca1[_0x4a5111[_0x2db0b7(0x1a8)]]:_0x32c041[_0x2db0b7(0x1e9)](_0x2db0b7(0x189)+_0x1aa5ad+'\x20'));if(_0x4417a2['SifrG'](_0x558c57,![])){if(_0x4417a2[_0x2db0b7(0x103)](_0x4417a2[_0x2db0b7(0x1e8)],_0x4417a2['kGgyI']))_0x5d2d71=_0x4417a2[_0x2db0b7(0x1c6)];else{if(_0x4417a2[_0x2db0b7(0x16f)](_0x3fb40b,undefined)){if(_0x4417a2[_0x2db0b7(0x136)](_0x4417a2['SFXnb'],_0x4417a2[_0x2db0b7(0x1c3)]))_0x3d0b9b=_0x4417a2[_0x2db0b7(0x217)],await _0x4417a2['JyPmO'](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes['ERROR'],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x197)],_0x4417a2[_0x2db0b7(0x10b)]),logger['error'](_0x3d0b9b),process['exit'](0x1);else{const _0x192dfc={};_0x192dfc[_0x2db0b7(0x21a)]=_0x11d54a[_0x2db0b7(0x203)],_0x192dfc[_0x2db0b7(0x1b4)]='Cluster\x20'+_0xf48ee0+_0x2db0b7(0x145),_0xfd3ae4['sendEventToBackend'](_0x43fafb,_0x192dfc,_0x4417a2[_0x2db0b7(0x1fe)]),_0xa45f2d[_0x2db0b7(0x1e9)](_0x2db0b7(0x17d)+_0x2a3ba7+_0x2db0b7(0x145)),_0x1cbcee=!![];}}global_registry[_0x2db0b7(0x16b)]=_0x3fb40b['id'];(_0x4417a2[_0x2db0b7(0x103)](_0x143b9d,AZURE)||_0x4417a2[_0x2db0b7(0x12f)](_0x3fb40b?.[_0x2db0b7(0x169)],AZURE))&&(_0x4417a2['AupxC'](_0x4417a2['GtbEs'],_0x4417a2['wnnMG'])?(_0x22ad15=_0x39b6b9['route53'],_0x36ce6f=_0x4417a2[_0x2db0b7(0x115)]):(console[_0x2db0b7(0x205)](_0x4417a2[_0x2db0b7(0x117)]),process[_0x2db0b7(0x17f)](0x1)));_0x3d0b9b=_0x2db0b7(0x15d)+_0x154174+'\x20using\x20\x27'+_0x3fb40b[_0x2db0b7(0x150)]+_0x2db0b7(0x13f),logger['info'](_0x3d0b9b);const _0x20a270={};_0x20a270[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x20a270['message']=_0x3d0b9b,webSocketUtils['sendEventToBackend'](_0x260e95,_0x20a270),_0x143b9d=_0x3fb40b[_0x2db0b7(0x169)],_0x1c04a4=_0x3fb40b[_0x2db0b7(0x1e4)],_0x4a34f2=_0x3fb40b[_0x2db0b7(0x154)],_0x3940dd=_0x3fb40b[_0x2db0b7(0x192)],_0x1994aa=_0x3fb40b[_0x2db0b7(0x1b7)],_0x56127f=_0x3fb40b[_0x2db0b7(0x107)],securityGroups=_0x3fb40b[_0x2db0b7(0x1d1)],subnets=_0x3fb40b[_0x2db0b7(0x214)],_0x1213bd=_0x3fb40b[_0x2db0b7(0x1de)],_0x3a08e8=_0x3fb40b[_0x2db0b7(0x10e)],_0x250c19=_0x3fb40b[_0x2db0b7(0x19a)],_0x5b7b6e=_0x16fbbc[_0x2db0b7(0x1a3)],_0x60399e=_0x16fbbc[_0x2db0b7(0xf4)],_0x4417a2[_0x2db0b7(0x229)](_0x3fb40b[_0x2db0b7(0x1fa)],undefined)&&_0x3fb40b['privateGrid']&&(_0x4417a2['rDGsO'](_0x4417a2[_0x2db0b7(0x1f8)],_0x4417a2[_0x2db0b7(0x1f8)])?global_registry['isPrivateGrid']=!![]:_0x14adf4=_0x23ade2[_0x2db0b7(0x143)]),_0x4417a2[_0x2db0b7(0x1db)](updateGlobalRegistryWithConfig,_0x143b9d,_0x1c04a4,_0x4a34f2,_0x3940dd,_0x1994aa,_0x1213bd,_0x3fb40b,_0x5b7b6e,_0x60399e,_0x3a08e8,_0x250c19);}}else{const _0x52fd47=_0x4417a2[_0x2db0b7(0x11c)][_0x2db0b7(0x13e)]('|');let _0x1e636e=0x0;while(!![]){switch(_0x52fd47[_0x1e636e++]){case'0':_0x3d0b9b='Spawning\x20the\x20grid\x20'+_0x154174+_0x2db0b7(0x11f)+_0x1c04a4+'\x27';continue;case'1':global_registry[_0x2db0b7(0x1c2)]=_0x4a34f2;continue;case'2':global_registry['clusterName']=_0x1c04a4;continue;case'3':global_registry['browserVersion']=_0x16fbbc[_0x2db0b7(0xf4)];continue;case'4':global_registry['cloudProvider']=_0x143b9d;continue;case'5':const _0x5178c6={};_0x5178c6[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x188)],_0x5178c6[_0x2db0b7(0x1b4)]='CLI\x20run\x20started',webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x5178c6);continue;case'6':logger['info'](_0x3d0b9b);continue;case'7':global_registry[_0x2db0b7(0x1a3)]=_0x16fbbc['hubVersion'];continue;case'8':const _0x316e7e={};_0x316e7e[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x316e7e[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x316e7e);continue;}break;}}const _0x57ff33=_0x4417a2[_0x2db0b7(0x15e)](getCloudProviderObject,_0x143b9d,_0x1c04a4,_0x154174,_0x260e95,webSocketUtils),_0x4e0c2a=_0x4ebdd1['cloudProvider']||{};if(_0x4417a2[_0x2db0b7(0x1b2)](_0x4e0c2a[_0x143b9d],undefined)){logger['info'](_0x4417a2[_0x2db0b7(0x129)]);_0x4417a2[_0x2db0b7(0x136)](_0x4ebdd1[_0x2db0b7(0x169)],undefined)&&(_0x4ebdd1[_0x2db0b7(0x169)]={});_0x4ebdd1[_0x2db0b7(0x169)][_0x143b9d]={};const _0x278fbc=await _0x4417a2[_0x2db0b7(0x1ec)](inputCloudProviderKeys,_0x143b9d,_0x4ebdd1,_0x57ff33);fs['writeFileSync'](_0x4417a2['AHmSg'](getCredentialsPath),JSON['stringify'](_0x278fbc)),logger[_0x2db0b7(0x1c1)](_0x4417a2[_0x2db0b7(0x1f2)]);}else{_0x3d0b9b=_0x4417a2[_0x2db0b7(0x1d3)];const _0x4017f1={};_0x4017f1[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x4017f1[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x4017f1),logger['info'](_0x3d0b9b),await _0x57ff33['fetchLocalCreds'](_0x4e0c2a);}_0x57ff33[_0x2db0b7(0x11b)]();let _0x1b52ee;if(_0x4417a2[_0x2db0b7(0x180)](_0x558c57,![])){_0x3d0b9b=_0x2db0b7(0x20b)+_0x4a34f2+').';const _0x2728dc={};_0x2728dc['type']=WS_EVENTS[_0x2db0b7(0x203)],_0x2728dc[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils['sendEventToBackend'](_0x260e95,_0x2728dc),logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0xd48649=await _0x57ff33[_0x2db0b7(0x1cf)]();if(_0xd48649){const _0x318358={};_0x318358[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x318358[_0x2db0b7(0x1b4)]=_0x2db0b7(0x17d)+_0x1c04a4+_0x2db0b7(0x145),webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x318358,_0x4417a2['rhehb']),logger[_0x2db0b7(0x1e9)](_0x2db0b7(0x17d)+_0x1c04a4+_0x2db0b7(0x145)),_0x558c57=!![];}else{const _0x4a1ae6={};_0x4a1ae6[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x4a1ae6['message']=_0x4417a2['ODLfq'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x4a1ae6),logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0xfb)]);const _0x4da235=_0x4417a2[_0x2db0b7(0x1f0)](_0x56127f,null)&&_0x4417a2[_0x2db0b7(0x1bd)](_0x56127f,undefined),_0xef39e5=_0x4417a2[_0x2db0b7(0x1f0)](subnets,null)&&_0x4417a2[_0x2db0b7(0x13d)](subnets,undefined)&&_0x4417a2[_0x2db0b7(0x1a6)](subnets[_0x2db0b7(0x1e1)],0x0);if(_0x4da235){_0x4417a2[_0x2db0b7(0x12f)](_0xef39e5,![])&&(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x127)],await _0x4417a2[_0x2db0b7(0x204)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes['ERROR'],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x14f)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1));const _0x5b768e=await _0x57ff33[_0x2db0b7(0x149)](_0x56127f);_0x4417a2[_0x2db0b7(0x187)](_0x5b768e,![])?(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x18d)],await _0x4417a2[_0x2db0b7(0x204)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['gLxnz'],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):logger[_0x2db0b7(0x1e9)](_0x2db0b7(0x189)+_0x56127f+'\x20');const _0x85cf13=await _0x57ff33[_0x2db0b7(0x1dc)](subnets,_0x56127f);_0x4417a2[_0x2db0b7(0x180)](_0x85cf13[0x0],![])?(_0x3d0b9b=_0x2db0b7(0x1ac)+_0x85cf13[0x1]+_0x2db0b7(0x146)+_0x56127f+_0x2db0b7(0x12e),await _0x4417a2[_0x2db0b7(0x156)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x15a)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):logger['info'](_0x2db0b7(0x16e)+JSON[_0x2db0b7(0x1c4)](subnets)+'\x20'),await _0x57ff33[_0x2db0b7(0x21f)](_0x56127f,subnets);}else{const _0x52eb74=_0x4417a2[_0x2db0b7(0x221)][_0x2db0b7(0x13e)]('|');let _0x1ed361=0x0;while(!![]){switch(_0x52eb74[_0x1ed361++]){case'0':const _0x391ac4={};_0x391ac4['type']=WS_EVENTS['LOG'],_0x391ac4['message']=_0x4417a2['JvcDn'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x391ac4);continue;case'1':logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x1da)]);continue;case'2':await _0x57ff33[_0x2db0b7(0x21f)]();continue;case'3':const _0x235254={};_0x235254[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x235254[_0x2db0b7(0x1b4)]=_0x2db0b7(0x21d),webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x235254);continue;case'4':logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x18e)]);continue;}break;}}}}_0x558c57&&_0x4417a2['AupxC'](_0x143b9d,AZURE)&&(global_registry['s3Bucket']=_0x16fbbc[_0x2db0b7(0x200)],await _0x57ff33[_0x2db0b7(0x13a)](),await _0x57ff33[_0x2db0b7(0x19f)]());const [_0x24d8bc,_0x438a2b,_0x3ab7a0,_0xe79fd6,_0x25ca6a,_0x29ec73]=await _0x4417a2[_0x2db0b7(0x13c)](createK8sClient,_0x57ff33);_0x4417a2[_0x2db0b7(0x103)](_0x558c57,![])&&_0x4417a2['YcmTa'](_0x143b9d,AWS)&&(_0x1b52ee=await _0x57ff33['setupAutoscaler'](_0x24d8bc,_0x4a5111));try{_0x441f2e=_0x4417a2[_0x2db0b7(0x13c)](kebabCase,_0x154174),logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x1fc)]);const _0x3e68fe={};_0x3e68fe[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x3e68fe[_0x2db0b7(0x1b4)]=_0x4417a2[_0x2db0b7(0x1fc)],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x3e68fe);if(_0x4417a2['pySdu'](_0x441f2e,_0x4417a2['hbOdJ'])){const _0x22e5cb={};_0x22e5cb['createdBy']=_0x4417a2[_0x2db0b7(0x1e6)],_0x22e5cb['managedBy']=_0x4417a2[_0x2db0b7(0x1e6)];const _0x395a63={};_0x395a63[_0x2db0b7(0x150)]=_0x441f2e,_0x395a63[_0x2db0b7(0x19b)]=_0x22e5cb;const _0x5b1d4c={};_0x5b1d4c[_0x2db0b7(0x160)]=_0x395a63;let _0x546a68=_0x5b1d4c;await _0x24d8bc[_0x2db0b7(0x14d)](_0x546a68),logger['info'](_0x4417a2['RuAzg']);}const _0x2a90af={};_0x2a90af[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x2a90af['message']=_0x4417a2['cedRu'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x2a90af);const _0x5c3b4e={};_0x5c3b4e['type']=WS_EVENTS[_0x2db0b7(0x203)],_0x5c3b4e[_0x2db0b7(0x1b4)]=_0x4417a2['jXgac'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x5c3b4e),logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x1fb)]);let _0x4b0049={};_0x4417a2[_0x2db0b7(0x1f1)](_0x143b9d,AZURE)&&(_0x4b0049={'clientId':await _0x57ff33[_0x2db0b7(0x113)](_0x2db0b7(0x11d)+_0x1c04a4)});await _0x4417a2[_0x2db0b7(0x215)](addGridComponents,_0x24d8bc,_0x438a2b,_0x3ab7a0,_0xe79fd6,_0x441f2e,_0x1c04a4,_0x1b52ee,_0x25ca6a,_0x29ec73,_0x4b0049),_0x3d0b9b=_0x4417a2['KBWKt'],logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0xd1d788={};_0xd1d788[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0xd1d788[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0xd1d788),_0x3d0b9b=_0x4417a2['lrFaD'],logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0xb88768={};_0xb88768[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0xb88768['message']=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0xb88768),await webSocketUtils['delay'](0xea60);const _0x204c10=await _0x4417a2[_0x2db0b7(0x211)](getNamespaceUID,_0x24d8bc,_0x441f2e);let _0x452419=global_registry['isPrivateGrid']?_0x4417a2[_0x2db0b7(0x1c9)]:_0x4417a2[_0x2db0b7(0x20d)],_0x3b83e1=await _0x24d8bc[_0x2db0b7(0x1f4)](_0x452419,_0x4417a2['LhFaH']),_0x38c13e=_0x57ff33[_0x2db0b7(0x16c)](_0x3b83e1)+'/'+_0x441f2e,_0x39947d=_0x4417a2['DfzEQ'];try{const _0x10c4c8={'url':'https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x204c10,..._0x5b58bc},_0x34711e=_0x10c4c8,_0x49b9b3=await _0x4417a2['afEaV'](promisifiedRequest,_0x34711e);(_0x4417a2[_0x2db0b7(0x190)](_0x49b9b3,null)||_0x4417a2['iLCEX'](_0x49b9b3,undefined))&&(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x102)],await _0x4417a2[_0x2db0b7(0x173)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x152)],_0x4417a2['PyubQ']),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1));_0x4417a2[_0x2db0b7(0xf5)](_0x49b9b3[_0x2db0b7(0x166)],0x191)&&(_0x3d0b9b=_0x4417a2[_0x2db0b7(0xff)],await _0x4417a2[_0x2db0b7(0x1aa)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x20f)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1));_0x4417a2[_0x2db0b7(0x1e5)](_0x49b9b3[_0x2db0b7(0x166)],0xc8)&&(_0x3d0b9b='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x2db0b7(0x1c4)](_0x49b9b3),await _0x4417a2[_0x2db0b7(0x1e3)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x124)],_0x4417a2[_0x2db0b7(0x10b)]),logger['error'](_0x3d0b9b),process['exit'](0x1));const _0x536186=JSON[_0x2db0b7(0x120)](_0x49b9b3[_0x2db0b7(0x20a)]);_0x536186['route53']&&(_0x38c13e=_0x536186[_0x2db0b7(0x1cc)],_0x39947d=_0x4417a2[_0x2db0b7(0x115)]),global_registry[_0x2db0b7(0x1ff)]&&(_0x39947d=_0x4417a2[_0x2db0b7(0x1c6)]);}catch(_0x197a71){}_0x3d0b9b='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x38c13e+'\x20',logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0x5485e3={};_0x5485e3['type']=WS_EVENTS[_0x2db0b7(0x203)],_0x5485e3[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x5485e3),_0x3d0b9b=_0x2db0b7(0x1eb)+_0x39947d+_0x2db0b7(0x20c)+_0x38c13e+'/wd/hub',logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0x22724c={};_0x22724c[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x22724c[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x22724c);const _0x13d050={};_0x13d050[_0x2db0b7(0x21a)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x13d050[_0x2db0b7(0x1b4)]=_0x2db0b7(0x1ae)+_0x38c13e,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x13d050),await webSocketUtils[_0x2db0b7(0xfc)](0x7d0);}catch(_0x9a86d7){if(_0x4417a2['AupxC'](_0x558c57,![]))try{logger[_0x2db0b7(0x1e9)](_0x2db0b7(0x21c)),await _0x4417a2[_0x2db0b7(0x15e)](removeGridComponents,_0x24d8bc,_0x438a2b,_0x3ab7a0,_0xe79fd6,_0x441f2e),await _0x57ff33['deleteCluster'](_0x24d8bc,global_registry['clusterRegion']);}catch(_0x38d93a){throw _0x38d93a;}throw _0x9a86d7;}}catch(_0xe92c25){const _0x473deb='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0xe92c25+'\x20\x0a'+JSON[_0x2db0b7(0x1c4)](_0xe92c25)+'\x20';if(_0x260e95){const _0x50f317={};_0x50f317[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x50f317[_0x2db0b7(0x1b4)]=_0x473deb,webSocketUtils['sendEventToBackend'](_0x260e95,_0x50f317,_0x4417a2['PyubQ'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x455715={};_0x455715['error']=_0x473deb,await _0x4417a2[_0x2db0b7(0x105)](sendInstrumentationEvent,_0x4a5111,_0x4417a2[_0x2db0b7(0x1e0)],messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x178)],_0x455715,_0x4a5111),logger[_0x2db0b7(0x205)](_0x473deb);}process[_0x2db0b7(0x17f)](0x0);};
|
|
1
|
+
const a9_0x1c787d=a9_0x123e;function a9_0x123e(_0x2a340c,_0x2006ec){const _0x4520d1=a9_0x4520();return a9_0x123e=function(_0x123e16,_0x3e11e1){_0x123e16=_0x123e16-0x8c;let _0x1a184c=_0x4520d1[_0x123e16];return _0x1a184c;},a9_0x123e(_0x2a340c,_0x2006ec);}(function(_0x5f3df0,_0x55ae4e){const _0xd5928b=a9_0x123e,_0x2bb9a4=_0x5f3df0();while(!![]){try{const _0x4e5d66=parseInt(_0xd5928b(0x95))/0x1*(parseInt(_0xd5928b(0x12a))/0x2)+parseInt(_0xd5928b(0x1aa))/0x3*(parseInt(_0xd5928b(0x125))/0x4)+parseInt(_0xd5928b(0x196))/0x5+parseInt(_0xd5928b(0xf6))/0x6+-parseInt(_0xd5928b(0x1b5))/0x7+-parseInt(_0xd5928b(0x124))/0x8+-parseInt(_0xd5928b(0x132))/0x9*(parseInt(_0xd5928b(0xf5))/0xa);if(_0x4e5d66===_0x55ae4e)break;else _0x2bb9a4['push'](_0x2bb9a4['shift']());}catch(_0x59e4ca){_0x2bb9a4['push'](_0x2bb9a4['shift']());}}}(a9_0x4520,0x99385));function a9_0x4520(){const _0x2594f6=['vpc','pre-spawned-invalid-vpc','YOvBh','wzTLc','PvgdM','create-grid-called','create-grid-checks-grid-already-exists','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','dyLTW','builder','subnets','nhHtZ','DBZfY','private-ingress-nginx-controller','PULFi','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.','bTxNe','wasWY','IlpiZ','grid','WbUAj','description','vYzNO','stringify','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','IoBzS','getGridHostname','HmmBm','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','20sxdVpL','831030SJpHan','XrFgf','defaultGridProfile','wLfHt','sendEventToBackend','ynigU','method','YDsef','isVPCPresent','tNYcE','fRDuF','hdSQH','bsNPY','tBpje','CLI\x20run\x20finished:\x20','argv','UehmL','IHsIj','Deleting\x20the\x20CloudFormation\x20Stacks','sJEAN','HbYyQ','pre-spawned-invalid-subnets','split','MoAjT','create-grid-checks-non-200','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','isClusterPresent','MjAFV','../../utils/webSocketUtils','BgUld','Grid\x20profile\x20fetched\x20from\x20backend','options','turboscale-managed-identity-','Namespace\x20Created','rkAkR','true','BPPdi','util','s3BucketName','4|1|7|5|0|8|6|2|3','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','get-grid-url-non-200','BDTsZ','Spawning\x20grid\x20on\x20to\x20the\x20cluster','njUmR','<PasswordPlaceholder>','9555176xbhmOd','4kuLbcO','handler','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/userInput','http','3722CnlZCZ','LpzIi','XHXlV','isPrivateGrid','length','string','ZIDgG','cloudProvider','1912797JrmCJl','cPoCk','Namespace\x20created','clusterRegion','password','command','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','create','WjDhF','createOtherResources','oLHEr','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','CdbdU','create-grid-checks-null-response','request','JLfXe','deleteCluster','zGGYf','LZpfx','EjIwa','CLI_RUN_STARTED','bstackUsername','ingress-nginx','jfgrk','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','adfFT','ymNNx','auth','ERROR','create-grid-checks-invalid-profile','txTJE','XKiQI','NvLqt','xlUhN','\x20in\x20existing\x20cluster\x20\x27','Bnufx','VlywD','VcNbz','managedBy','epilogue','evavl','KiZVJ','dvHcI','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pre-spawned-subnets-not-selected','Subnets:\x20','s3bucket','EspDg','tSnje','gridProfiles','instanceType','message','readNamespacedService','UrDBf','init-not-called','WzbfG','info','connectionTimeout','uuid','pwGzx','debug','kFTKS','YwDbw','cloud-provider','QPeEg','name','Hjcjn','gYeSj','privateGrid','parse','Spawning\x20Grid\x20on\x20the\x20Cluster','readFileSync','grid-spawning-failed','promisify','ZjJuX','grid-profile','hjEHY','gridName','jhwur','user','JQIZm','cluster-name','route53','NzbRU','FAdJe','statusCode','mymIE','qFOkM','../../config/constants','wPOMM','minNodes','bnmeA','desc','dpsQY','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','GcHaj','https://','exHIN','LOG','Tzmyf','4355625IrYqxF','CNwxs','ioTzJ','esLUr','type','gxire','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','6|1|7|8|2|3|4|0|5','lvNBF','Will\x20be\x20spawning\x20the\x20grid\x20','UnGEH','delay','../../utils/utilityMethods','../../utils/instrumentationUtils','region','non-aws-azure-cluster','ggiLV','WLRzZ','grid-name','ulsPw','3446403WolFjZ','CLI\x20run\x20started','ObzMK','usage','MSilY','ArnsE','updatePreSpawnedCluster','../../config/logger','Create\x20a\x20private/public\x20grid.','RuwJu','alreadyPresent','6818070pVWBtW','https','jAzvk','Dvipx','ryGYz','WebSocket','includes','maxNodes','help','CBEKv','OhJCe','fetchLocalCreds','RZdHU','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','OxdjB','wPFya','Spawning\x20the\x20grid\x20','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','Pdliz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','lVuMk','isSubnetsValid','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','571GjHbLA','securityGroups','1|0|3|4|2','Browserstack','vSTDx','Cluster\x20created\x20successfully','metadata','QdDvN','error','wAfWx','ZwOIM','hubVersion','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Creating\x20namespace','Lkvts','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','setupNewCluster','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','vTpay','GET','jBnWS','uStiJ','../../utils/createk8sClient','iAbpZ','getResourceClientId','tWhQF','Grid\x20can\x20be\x20accessed\x20at:\x20','XbLoG','VDrcd','Cluster\x20','createNamespace','PCoKR','private-grid','toLowerCase','gridProfile','Vysfv','hfhXC','create-grid-checks-auth-failed','reconnecting-websocket','body','DAPBI','dwUKv','gridProfileId','tmkPc','exit','fydtb','REGwT','default','clusterName','NXOQh','sRNRu','mENfs','uFTAV','CMvZl','Owcxt','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','browserVersion','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','/wd/hub','buHWb','username','\x27\x20grid\x20profile','setupAutoscaler','nAuUD','JwNTp','xJVXO','wwpym'];a9_0x4520=function(){return _0x2594f6;};return a9_0x4520();}const fs=require('fs'),ws=require('ws'),util=require(a9_0x1c787d(0x11b)),ReconnectingWebSocket=require(a9_0x1c787d(0xbb)),request=require(a9_0x1c787d(0x140)),{v4:uuidv4}=require(a9_0x1c787d(0x16c)),webSocketUtils=require(a9_0x1c787d(0x112)),{logger}=require(a9_0x1c787d(0x1b1)),{inputCloudProviderKeys}=require(a9_0x1c787d(0x128)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a9_0x1c787d(0x1a2)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x1c787d(0x18a)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x1c787d(0xab)),{sendInstrumentationEvent}=require(a9_0x1c787d(0x1a3)),promisifiedRequest=util[a9_0x1c787d(0x17b)](request);exports[a9_0x1c787d(0x137)]=a9_0x1c787d(0xeb),exports[a9_0x1c787d(0x18e)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x1c787d(0xe1)]=function(_0x9b0354){const _0x14464b=a9_0x1c787d,_0x12d817={};_0x12d817[_0x14464b(0x144)]=_0x14464b(0x19c),_0x12d817['ZIDgG']=_0x14464b(0x12f),_0x12d817[_0x14464b(0x99)]=_0x14464b(0x15d),_0x12d817[_0x14464b(0x8c)]=_0x14464b(0xce),_0x12d817[_0x14464b(0xbe)]=_0x14464b(0xcc),_0x12d817[_0x14464b(0xc6)]=_0x14464b(0xa4),_0x12d817[_0x14464b(0x106)]='Create\x20a\x20private/public\x20grid.',_0x12d817['fydtb']=_0x14464b(0x1bd);const _0x4ca159=_0x12d817,_0x57210d={};_0x57210d[_0x14464b(0xed)]=_0x4ca159['LZpfx'],_0x57210d[_0x14464b(0x19a)]=_0x4ca159[_0x14464b(0x130)];const _0x56b46c={};_0x56b46c[_0x14464b(0xed)]=_0x4ca159[_0x14464b(0x99)],_0x56b46c['type']=_0x4ca159[_0x14464b(0x130)];const _0x596361={};_0x596361[_0x14464b(0xed)]=_0x4ca159[_0x14464b(0x8c)],_0x596361[_0x14464b(0x19a)]=_0x4ca159[_0x14464b(0x130)];const _0x1b2136={};_0x1b2136[_0x14464b(0xed)]=_0x4ca159[_0x14464b(0xbe)],_0x1b2136[_0x14464b(0x19a)]=_0x4ca159[_0x14464b(0x130)];const _0x3f4574={};_0x3f4574[_0x14464b(0xed)]=_0x4ca159[_0x14464b(0xc6)],_0x3f4574[_0x14464b(0x19a)]=_0x4ca159[_0x14464b(0x130)];const _0x1f9a1a={};_0x1f9a1a[_0x14464b(0xed)]=_0x4ca159['UehmL'],_0x1f9a1a['type']=_0x4ca159[_0x14464b(0x130)];const _0x45e8ae={};return _0x45e8ae[_0x14464b(0x1a8)]=_0x57210d,_0x45e8ae[_0x14464b(0x17d)]=_0x56b46c,_0x45e8ae['cluster-name']=_0x596361,_0x45e8ae[_0x14464b(0x171)]=_0x1b2136,_0x45e8ae[_0x14464b(0x1a4)]=_0x3f4574,_0x45e8ae[_0x14464b(0xb5)]=_0x1f9a1a,_0x9b0354[_0x14464b(0x1ad)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x14464b(0x115)](_0x45e8ae)['help'](_0x4ca159[_0x14464b(0xc2)])[_0x14464b(0x105)];},exports[a9_0x1c787d(0x126)]=async function(_0x5d71f1){const _0x5ecc9d=a9_0x1c787d,_0x96a896={'xJVXO':_0x5ecc9d(0x11d),'iMraL':_0x5ecc9d(0x1b6),'WbUAj':_0x5ecc9d(0x129),'kFTKS':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','cPoCk':_0x5ecc9d(0x12f),'Bnufx':_0x5ecc9d(0x15d),'sctKr':_0x5ecc9d(0xce),'ZjJuX':_0x5ecc9d(0xcc),'VlywD':_0x5ecc9d(0xa4),'CNwxs':_0x5ecc9d(0x1b2),'zhcMt':'help','txTJE':_0x5ecc9d(0xa6),'uFTAV':'warn','CdbdU':_0x5ecc9d(0x9d),'EspDg':function(_0x96148c){return _0x96148c();},'Tzmyf':function(_0x17b910,_0xedb4c){return _0x17b910!==_0xedb4c;},'jAzvk':'pLQmR','NcSVu':_0x5ecc9d(0x138),'PvgdM':function(_0x150202,_0x2406c2,_0x4fcb7c,_0x1c3ba6,_0x904135,_0x2d11cf,_0x535321){return _0x150202(_0x2406c2,_0x4fcb7c,_0x1c3ba6,_0x904135,_0x2d11cf,_0x535321);},'ynigU':_0x5ecc9d(0xdd),'bykdU':_0x5ecc9d(0x168),'VcNbz':function(_0x2d4450,_0x1bc845,_0x4b142f,_0x203b7d,_0x2f114c,_0x50a12c,_0x8cadce){return _0x2d4450(_0x1bc845,_0x4b142f,_0x203b7d,_0x2f114c,_0x50a12c,_0x8cadce);},'ioTzJ':'<UsernamePlaceholder>','ggiLV':_0x5ecc9d(0x123),'JYyQH':'Adding\x20Websocket\x20listeners','nhHtZ':function(_0x354bc7,_0x2e499b){return _0x354bc7===_0x2e499b;},'bTxNe':_0x5ecc9d(0x90),'tSnje':function(_0x3e15c9,_0x14e37b){return _0x3e15c9!==_0x14e37b;},'evavl':_0x5ecc9d(0x9e),'GcHaj':_0x5ecc9d(0x9f),'sJEAN':_0x5ecc9d(0x13d),'Dvipx':function(_0x52e14,_0x17b479,_0x1d21a8,_0x252e4d,_0x33565e,_0x582505,_0x2681d1,_0x149d63){return _0x52e14(_0x17b479,_0x1d21a8,_0x252e4d,_0x33565e,_0x582505,_0x2681d1,_0x149d63);},'lVuMk':'prespawned-cluster-args-not-passed','YOvBh':function(_0x41a450,_0x33babc){return _0x41a450===_0x33babc;},'IlpiZ':'LMgzG','dyLTW':_0x5ecc9d(0x1c2),'wPOMM':function(_0x459792,_0x559c29,_0x31e08c,_0x37dde0,_0x585620,_0x59dbd4,_0x432dac,_0x33b784){return _0x459792(_0x559c29,_0x31e08c,_0x37dde0,_0x585620,_0x59dbd4,_0x432dac,_0x33b784);},'XrFgf':_0x5ecc9d(0x1a5),'WLRzZ':_0x5ecc9d(0x119),'XHXlV':_0x5ecc9d(0x145),'buHWb':_0x5ecc9d(0x10d),'jBnWS':_0x5ecc9d(0xa8),'DAPBI':function(_0x5c17a7,_0x33c78a){return _0x5c17a7(_0x33c78a);},'YwDbw':function(_0x226864,_0x448f7e){return _0x226864===_0x448f7e;},'mENfs':function(_0x510f42,_0x328db6){return _0x510f42!==_0x328db6;},'QdDvN':_0x5ecc9d(0x1ae),'ObzMK':_0x5ecc9d(0xf4),'nAuUD':_0x5ecc9d(0x13f),'tNYcE':function(_0x118c2e,_0xb93138){return _0x118c2e!==_0xb93138;},'adfFT':'dNkKS','GETnh':_0x5ecc9d(0x13a),'uStiJ':_0x5ecc9d(0x127),'dvHcI':function(_0x5dbb15,_0x425f36,_0x1d79de,_0x2589dd,_0x17ae70,_0x10af7b,_0x3698c2,_0x314261){return _0x5dbb15(_0x425f36,_0x1d79de,_0x2589dd,_0x17ae70,_0x10af7b,_0x3698c2,_0x314261);},'pCOys':_0x5ecc9d(0xba),'Hjcjn':function(_0x5b1302,_0x2d7cfd){return _0x5b1302!==_0x2d7cfd;},'NvLqt':function(_0x1c7d96,_0x4d3e52){return _0x1c7d96===_0x4d3e52;},'RuwJu':_0x5ecc9d(0x193),'wLfHt':_0x5ecc9d(0x102),'tmkPc':_0x5ecc9d(0x10e),'gxire':_0x5ecc9d(0x114),'JLfXe':_0x5ecc9d(0x101),'HmmBm':_0x5ecc9d(0x118),'asIYk':_0x5ecc9d(0xa1),'qFOkM':function(_0x4bdc49,_0x372e16,_0x424105,_0x3d9503,_0x4a2243,_0x41e9c7,_0x5b607b,_0x551033){return _0x4bdc49(_0x372e16,_0x424105,_0x3d9503,_0x4a2243,_0x41e9c7,_0x5b607b,_0x551033);},'CBEKv':_0x5ecc9d(0xde),'sRNRu':function(_0x9f1156,_0x5b3283){return _0x9f1156!==_0x5b3283;},'lvNBF':_0x5ecc9d(0xd7),'QPeEg':function(_0x513329,_0x3429f9){return _0x513329===_0x3429f9;},'jhwur':_0x5ecc9d(0x16d),'DBZfY':function(_0x60b8e4,_0x4a894f){return _0x60b8e4===_0x4a894f;},'xlUhN':function(_0x534271,_0x583cbc){return _0x534271===_0x583cbc;},'cyerv':'QZtdH','OxdjB':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','RZdHU':_0x5ecc9d(0x14f),'Vysfv':'MOLqT','zgoKw':'Urdsb','Lkvts':function(_0x5f3e93,_0x2c5884){return _0x5f3e93!==_0x2c5884;},'BPPdi':_0x5ecc9d(0x182),'REGwT':'BmjXT','UnGEH':function(_0x179a5b,_0x3126c0,_0x34aea6,_0x105f63,_0x5b037f,_0x10cf61,_0x15a5ef,_0xcec00a,_0x9d69de,_0x213a6f,_0x529fb5,_0x5cf31c){return _0x179a5b(_0x3126c0,_0x34aea6,_0x105f63,_0x5b037f,_0x10cf61,_0x15a5ef,_0xcec00a,_0x9d69de,_0x213a6f,_0x529fb5,_0x5cf31c);},'zGGYf':_0x5ecc9d(0x19d),'KiZVJ':function(_0x1d39c4,_0x7ba9f0,_0x2b7161,_0x1cb0de,_0x3c10cd,_0x413cc1){return _0x1d39c4(_0x7ba9f0,_0x2b7161,_0x1cb0de,_0x3c10cd,_0x413cc1);},'SYWZv':_0x5ecc9d(0x8e),'XbLoG':function(_0x25d5b4,_0x5cbd72){return _0x25d5b4===_0x5cbd72;},'XKiQI':function(_0x228218,_0x120325,_0xe3ae95,_0x59130c){return _0x228218(_0x120325,_0xe3ae95,_0x59130c);},'IoBzS':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','wasWY':_0x5ecc9d(0x1c3),'LpzIi':function(_0x28a438,_0x1e0981){return _0x28a438===_0x1e0981;},'tIqXC':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hfhXC':function(_0x28035a,_0x5bd272){return _0x28035a!=_0x5bd272;},'fRDuF':function(_0x164178,_0x15f4df){return _0x164178!==_0x15f4df;},'PCoKR':function(_0x46a2e4,_0x2dce28){return _0x46a2e4!=_0x2dce28;},'wzTLc':function(_0x22e5e6,_0x9eaf20){return _0x22e5e6!==_0x9eaf20;},'VDrcd':function(_0x9f2d33,_0xa869d5){return _0x9f2d33>_0xa869d5;},'HbYyQ':function(_0x30374d,_0x4780e1){return _0x30374d===_0x4780e1;},'ymNNx':_0x5ecc9d(0x10f),'dpsQY':_0x5ecc9d(0x15e),'JwNTp':function(_0x524ab,_0x1638f9){return _0x524ab===_0x1638f9;},'vYzNO':_0x5ecc9d(0x11e),'UrDBf':_0x5ecc9d(0xd9),'SUWTZ':function(_0x3df8da,_0x362791){return _0x3df8da===_0x362791;},'qoiIq':_0x5ecc9d(0x10b),'BgUld':_0x5ecc9d(0x97),'nKqmU':_0x5ecc9d(0xe7),'SyOFc':_0x5ecc9d(0x9a),'IHsIj':function(_0x59ab08,_0x512b22){return _0x59ab08===_0x512b22;},'vTpay':function(_0x12c50b,_0xeed76e){return _0x12c50b==_0xeed76e;},'hjEHY':_0x5ecc9d(0xa2),'CMvZl':function(_0x4de189,_0x20c5ce){return _0x4de189!==_0x20c5ce;},'bnmeA':_0x5ecc9d(0xc4),'YDsef':_0x5ecc9d(0x98),'tBpje':_0x5ecc9d(0x117),'njUmR':_0x5ecc9d(0x134),'dTeyE':_0x5ecc9d(0x121),'oLHEr':_0x5ecc9d(0x178),'MjAFV':function(_0x4cd5cc,_0x4b58ab,_0x5eff81,_0x45d34b,_0xa90819,_0x3e4aff,_0xecfe8d,_0x18ba15,_0x68db98,_0x542213,_0x54a381){return _0x4cd5cc(_0x4b58ab,_0x5eff81,_0x45d34b,_0xa90819,_0x3e4aff,_0xecfe8d,_0x18ba15,_0x68db98,_0x542213,_0x54a381);},'UUqit':'Grid\x20spawned\x20on\x20the\x20cluster','FAdJe':_0x5ecc9d(0x190),'NzbRU':function(_0x2017af,_0x29678d,_0x1b5bc2){return _0x2017af(_0x29678d,_0x1b5bc2);},'eRtmo':_0x5ecc9d(0xe5),'qAzya':'ingress-nginx-controller','SafNR':_0x5ecc9d(0x148),'gYeSj':function(_0x3ae206,_0x451bff){return _0x3ae206(_0x451bff);},'PULFi':function(_0x236c2d,_0x237e70){return _0x236c2d==_0x237e70;},'ArnsE':function(_0x320769,_0x314760){return _0x320769==_0x314760;},'jfgrk':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','tWhQF':function(_0x2297c5,_0x229602,_0x3c1e67,_0xe5436a,_0x18b76f,_0x204428,_0x1e251a,_0x2f810d){return _0x2297c5(_0x229602,_0x3c1e67,_0xe5436a,_0x18b76f,_0x204428,_0x1e251a,_0x2f810d);},'ryGYz':'get-grid-url-null-response','iAbpZ':function(_0x20b06e,_0x3e0dc9){return _0x20b06e===_0x3e0dc9;},'BDTsZ':_0x5ecc9d(0x14a),'ulsPw':function(_0x23b332,_0x31182b,_0x4f8a75,_0x31959a,_0x46fc4a,_0x5c9560,_0x324b5c,_0x452c44){return _0x23b332(_0x31182b,_0x4f8a75,_0x31959a,_0x46fc4a,_0x5c9560,_0x324b5c,_0x452c44);},'OhJCe':'get-grid-url-auth-failed','mymIE':function(_0x374e63,_0x28a03c){return _0x374e63!==_0x28a03c;},'esLUr':_0x5ecc9d(0x11f),'ghzgR':function(_0x37d445,_0x336852){return _0x37d445===_0x336852;},'Owcxt':function(_0x4c7a31,_0x253e40,_0x2ae9a1,_0x1a01c2,_0x5cadcd,_0x21a3a9){return _0x4c7a31(_0x253e40,_0x2ae9a1,_0x1a01c2,_0x5cadcd,_0x21a3a9);},'WzbfG':_0x5ecc9d(0x17a)};let _0x17e4ee=![],_0x287677,_0x273252,_0x4e11d2,_0x2c6c3e,_0x2beb3c,_0x470290,_0x519c53,_0x2b8980,_0x31de19,_0x5ec7dd,_0x429826,_0x49ff91,_0x331241=0x1,_0x4da1b5=0xe;try{global_registry['requestId']=_0x96a896[_0x5ecc9d(0x161)](uuidv4),global_registry[_0x5ecc9d(0x12d)]=![];!fs['existsSync'](_0x96a896[_0x5ecc9d(0x161)](getCredentialsPath))&&(_0x96a896[_0x5ecc9d(0x195)](_0x96a896[_0x5ecc9d(0x1b7)],_0x96a896[_0x5ecc9d(0x1b7)])?_0x3f288f[_0x5ecc9d(0x12d)]=!![]:(console['error'](_0x96a896['NcSVu']),await _0x96a896[_0x5ecc9d(0xdc)](sendInstrumentationEvent,_0x5d71f1,_0x96a896[_0x5ecc9d(0xfb)],messageTypes['ERROR'],_0x96a896['bykdU'],null,_0x5d71f1),process[_0x5ecc9d(0xc1)](0x1)));await _0x96a896[_0x5ecc9d(0x157)](sendInstrumentationEvent,_0x5d71f1,_0x96a896[_0x5ecc9d(0xfb)],messageTypes['INFO'],null,null,_0x5d71f1);const _0x595707=JSON[_0x5ecc9d(0x177)](fs[_0x5ecc9d(0x179)](_0x96a896[_0x5ecc9d(0x161)](getCredentialsPath)));global_registry[_0x5ecc9d(0x147)]=_0x595707[_0x5ecc9d(0x98)][_0x5ecc9d(0xd1)],global_registry['bstackAccesskey']=_0x595707[_0x5ecc9d(0x98)][_0x5ecc9d(0x136)];const _0x4e9f75=WS_ENDPOINT['replace'](_0x96a896[_0x5ecc9d(0x198)],_0x595707[_0x5ecc9d(0x98)][_0x5ecc9d(0xd1)])['replace'](_0x96a896[_0x5ecc9d(0x1a6)],_0x595707[_0x5ecc9d(0x98)]['password']),_0x1b7976={};_0x1b7976[_0x5ecc9d(0x1ba)]=ws,_0x1b7976[_0x5ecc9d(0x16b)]=0x36ee80,_0x5ec7dd=new ReconnectingWebSocket(_0x4e9f75,[],_0x1b7976),logger[_0x5ecc9d(0x16e)](_0x96a896['JYyQH']),webSocketUtils['addListeners'](_0x5ec7dd,_0x5d71f1[_0x5ecc9d(0x181)],_0x5d71f1[_0x5ecc9d(0x136)]);let _0x1928e4=DEFAULT_GRID_NAME;if(_0x5d71f1[_0x5ecc9d(0xc5)]||_0x5d71f1['cloudProvider']||_0x5d71f1[_0x5ecc9d(0x1a4)]){if(_0x96a896[_0x5ecc9d(0xe3)](_0x96a896[_0x5ecc9d(0xe8)],_0x96a896['bTxNe'])){if(!(_0x5d71f1[_0x5ecc9d(0xc5)]&&_0x5d71f1['cloudProvider']&&_0x5d71f1[_0x5ecc9d(0x1a4)])){if(_0x96a896[_0x5ecc9d(0x162)](_0x96a896[_0x5ecc9d(0x15a)],_0x96a896[_0x5ecc9d(0x191)]))_0x287677=_0x96a896[_0x5ecc9d(0x109)],await _0x96a896[_0x5ecc9d(0x1b8)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0x92)],_0x96a896[_0x5ecc9d(0x13e)]),logger['error'](_0x287677),process['exit'](0x1);else{const _0x42a9d2=_0x96a896[_0x5ecc9d(0xd6)][_0x5ecc9d(0x10c)]('|');let _0x3ed816=0x0;while(!![]){switch(_0x42a9d2[_0x3ed816++]){case'0':_0x186c0c[_0x5ecc9d(0x131)]=_0xe971b3;continue;case'1':_0x2ea233=_0x5ecc9d(0x8d)+_0x14c5a5+_0x5ecc9d(0x154)+_0x834e08+'\x27';continue;case'2':_0x34be14[_0x5ecc9d(0xa0)]=_0x2b9e7a['hubVersion'];continue;case'3':_0x21c937[_0x5ecc9d(0xcd)]=_0x1d9cbb[_0x5ecc9d(0xcd)];continue;case'4':const _0x302ba5={};_0x302ba5['type']=_0x2b89d9[_0x5ecc9d(0x146)],_0x302ba5[_0x5ecc9d(0x165)]=_0x5ecc9d(0x1ab),_0x46ba62[_0x5ecc9d(0xfa)](_0x7aa7d3,_0x302ba5);continue;case'5':const _0x220de3={};_0x220de3[_0x5ecc9d(0x19a)]=_0x57bd60[_0x5ecc9d(0x194)],_0x220de3['message']=_0x160dbd,_0x697319['sendEventToBackend'](_0x27b221,_0x220de3);continue;case'6':_0x5bfb03[_0x5ecc9d(0xc5)]=_0x373042;continue;case'7':_0x5b9b81['info'](_0x54b8e1);continue;case'8':_0x2f2bc4[_0x5ecc9d(0x135)]=_0x34fc11;continue;}break;}}}![AWS,AZURE,GCP][_0x5ecc9d(0x1bb)](_0x5d71f1[_0x5ecc9d(0x131)][_0x5ecc9d(0xb6)]())&&(_0x96a896[_0x5ecc9d(0xda)](_0x96a896[_0x5ecc9d(0xea)],_0x96a896[_0x5ecc9d(0xea)])?(_0x287677=_0x96a896[_0x5ecc9d(0xe0)],await _0x96a896[_0x5ecc9d(0x18b)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896['ynigU'],_0x96a896[_0x5ecc9d(0xf7)],_0x96a896['CdbdU']),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1)):_0x4c9515['info']('Found\x20Subnets:\x20'+_0x484fe3[_0x5ecc9d(0xef)](_0x1a773e)+'\x20')),_0x5d71f1[_0x5ecc9d(0x176)]&&_0x96a896['nhHtZ'](_0x5d71f1[_0x5ecc9d(0x176)][_0x5ecc9d(0xb6)](),_0x96a896[_0x5ecc9d(0x1a7)])&&(_0x96a896[_0x5ecc9d(0xe3)](_0x96a896[_0x5ecc9d(0x12c)],_0x96a896[_0x5ecc9d(0x12c)])?global_registry[_0x5ecc9d(0x12d)]=!![]:(_0x1639f1=_0x2df384[_0x5ecc9d(0x184)],_0xf4684a=_0x96a896['iMraL'])),_0x17e4ee=!![],_0x4e11d2=_0x5d71f1[_0x5ecc9d(0xc5)],_0x273252=_0x5d71f1[_0x5ecc9d(0x131)][_0x5ecc9d(0xb6)](),_0x2c6c3e=_0x5d71f1[_0x5ecc9d(0x1a4)];}else _0x54c8e9=_0x96a896[_0x5ecc9d(0xec)];}_0x5d71f1[_0x5ecc9d(0x17f)]&&(_0x96a896[_0x5ecc9d(0x195)](_0x96a896[_0x5ecc9d(0xd0)],_0x96a896['buHWb'])?_0x1a2e83[_0x5ecc9d(0x12d)]=!![]:_0x1928e4=_0x5d71f1[_0x5ecc9d(0x17f)]);global_registry[_0x5ecc9d(0x17f)]=_0x1928e4;const _0x52e366={};_0x52e366[_0x5ecc9d(0xd1)]=_0x595707[_0x5ecc9d(0x98)][_0x5ecc9d(0xd1)],_0x52e366[_0x5ecc9d(0x136)]=_0x595707[_0x5ecc9d(0x98)]['password'];const _0x40aec4={};_0x40aec4[_0x5ecc9d(0xfc)]=_0x96a896[_0x5ecc9d(0xa9)],_0x40aec4[_0x5ecc9d(0x14d)]=_0x52e366;const _0xd045c1=_0x40aec4,_0x457e4f=_0x5ecc9d(0x192)+AG_API_URL+'/packages/cli/create-grid-checks',_0x4661fd={};_0x4661fd[_0x5ecc9d(0x17f)]=_0x1928e4;const _0x2df9cb={'url':_0x457e4f,'qs':_0x4661fd,..._0xd045c1},_0x161c63=_0x2df9cb,_0x2ec334=await _0x96a896[_0x5ecc9d(0xbd)](promisifiedRequest,_0x161c63);(_0x96a896[_0x5ecc9d(0xda)](_0x2ec334,null)||_0x96a896[_0x5ecc9d(0x170)](_0x2ec334,undefined))&&(_0x96a896[_0x5ecc9d(0xc8)](_0x96a896[_0x5ecc9d(0x9c)],_0x96a896[_0x5ecc9d(0x9c)])?_0x33b628=_0x4abeea[_0x14f6ae[_0x5ecc9d(0xb7)]]:(_0x287677=_0x96a896[_0x5ecc9d(0x1ac)],await _0x96a896[_0x5ecc9d(0x1b8)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0xd4)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process['exit'](0x1)));if(_0x96a896[_0x5ecc9d(0xda)](_0x2ec334['statusCode'],0x191)){if(_0x96a896['tNYcE'](_0x96a896[_0x5ecc9d(0x14b)],_0x96a896['GETnh']))_0x287677=_0x96a896[_0x5ecc9d(0xaa)],await _0x96a896[_0x5ecc9d(0x15c)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes['ERROR'],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896['pCOys'],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1);else{const _0x1c9981={};_0x1c9981['description']=_0x96a896[_0x5ecc9d(0x16f)],_0x1c9981[_0x5ecc9d(0x19a)]=_0x96a896['cPoCk'];const _0xa42a4={};_0xa42a4[_0x5ecc9d(0xed)]=_0x96a896[_0x5ecc9d(0x155)],_0xa42a4[_0x5ecc9d(0x19a)]=_0x96a896['cPoCk'];const _0xac5009={};_0xac5009[_0x5ecc9d(0xed)]=_0x96a896['sctKr'],_0xac5009[_0x5ecc9d(0x19a)]=_0x96a896[_0x5ecc9d(0x133)];const _0x326b2f={};_0x326b2f[_0x5ecc9d(0xed)]=_0x96a896[_0x5ecc9d(0x17c)],_0x326b2f[_0x5ecc9d(0x19a)]=_0x96a896[_0x5ecc9d(0x133)];const _0x1d8ff3={};_0x1d8ff3[_0x5ecc9d(0xed)]=_0x96a896[_0x5ecc9d(0x156)],_0x1d8ff3[_0x5ecc9d(0x19a)]=_0x96a896['cPoCk'];const _0x329b35={};_0x329b35[_0x5ecc9d(0xed)]=_0x96a896[_0x5ecc9d(0x197)],_0x329b35[_0x5ecc9d(0x19a)]=_0x96a896[_0x5ecc9d(0x133)];const _0x4c89ab={};return _0x4c89ab['grid-name']=_0x1c9981,_0x4c89ab[_0x5ecc9d(0x17d)]=_0xa42a4,_0x4c89ab[_0x5ecc9d(0x183)]=_0xac5009,_0x4c89ab['cloud-provider']=_0x326b2f,_0x4c89ab[_0x5ecc9d(0x1a4)]=_0x1d8ff3,_0x4c89ab[_0x5ecc9d(0xb5)]=_0x329b35,_0x13e570[_0x5ecc9d(0x1ad)](_0x301e58[_0x5ecc9d(0x139)])[_0x5ecc9d(0x159)](_0x28cf5a)[_0x5ecc9d(0x115)](_0x4c89ab)[_0x5ecc9d(0x1bd)](_0x96a896['zhcMt'])['argv'];}}_0x96a896[_0x5ecc9d(0x174)](_0x2ec334[_0x5ecc9d(0x187)],0xc8)&&(_0x96a896[_0x5ecc9d(0x152)](_0x96a896[_0x5ecc9d(0x1b3)],_0x96a896[_0x5ecc9d(0xf9)])?_0x1effc2[_0x5ecc9d(0x16a)]('Found\x20VPC:\x20'+_0x39f612+'\x20'):(_0x287677=_0x5ecc9d(0x91)+JSON[_0x5ecc9d(0xef)](_0x2ec334),await _0x96a896[_0x5ecc9d(0x18b)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896['ynigU'],_0x96a896[_0x5ecc9d(0xc0)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1)));const _0x2ffc66=JSON[_0x5ecc9d(0x177)](_0x2ec334['body']),_0x202ea6={};_0x202ea6['type']=WS_EVENTS[_0x5ecc9d(0x146)],_0x202ea6[_0x5ecc9d(0x165)]=_0x5ecc9d(0x1ab),webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x202ea6);const _0xf8bd2f={};_0xf8bd2f[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0xf8bd2f[_0x5ecc9d(0x165)]=_0x96a896[_0x5ecc9d(0x19b)],webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0xf8bd2f);_0x2ffc66[_0x5ecc9d(0x1b4)]&&(_0x96a896[_0x5ecc9d(0xda)](_0x96a896[_0x5ecc9d(0x141)],_0x96a896[_0x5ecc9d(0xf3)])?_0x58e506=_0x142698[_0x5ecc9d(0x17f)]:(_0x287677=_0x96a896['asIYk'],await _0x96a896['qFOkM'](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0x1be)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1)));const _0x3c8d6c=_0x2ffc66[_0x5ecc9d(0x163)];let _0x346814=_0x3c8d6c[_0x2ffc66[_0x5ecc9d(0xf8)]];_0x5d71f1[_0x5ecc9d(0xb7)]&&(_0x96a896[_0x5ecc9d(0xc7)](_0x96a896[_0x5ecc9d(0x19e)],_0x96a896[_0x5ecc9d(0x19e)])?(_0x445739['error'](_0x96a896[_0x5ecc9d(0x150)]),_0x2af063[_0x5ecc9d(0xc1)](0x1)):_0x346814=_0x3c8d6c[_0x5d71f1[_0x5ecc9d(0xb7)]]);if(_0x96a896[_0x5ecc9d(0x172)](_0x17e4ee,![])){if(_0x96a896['NvLqt'](_0x96a896[_0x5ecc9d(0x180)],_0x96a896[_0x5ecc9d(0x180)])){if(_0x96a896[_0x5ecc9d(0xe4)](_0x346814,undefined)){if(_0x96a896['xlUhN'](_0x96a896['cyerv'],_0x96a896['cyerv']))_0x287677=_0x96a896[_0x5ecc9d(0x1c4)],await _0x96a896[_0x5ecc9d(0x189)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes['ERROR'],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0x1c1)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process['exit'](0x1);else throw _0x2097ca;}global_registry[_0x5ecc9d(0xbf)]=_0x346814['id'];if(_0x96a896[_0x5ecc9d(0xda)](_0x273252,AZURE)||_0x96a896[_0x5ecc9d(0x153)](_0x346814?.[_0x5ecc9d(0x131)],AZURE)){if(_0x96a896[_0x5ecc9d(0x162)](_0x96a896[_0x5ecc9d(0xb8)],_0x96a896['zgoKw']))console[_0x5ecc9d(0x9d)](_0x96a896['txTJE']),process[_0x5ecc9d(0xc1)](0x1);else{const _0x482daa={};_0x482daa['type']=_0x2bf354[_0x5ecc9d(0x194)],_0x482daa[_0x5ecc9d(0x165)]=_0x5ecc9d(0xb2)+_0x11dec8+_0x5ecc9d(0xdf),_0x11d0ad[_0x5ecc9d(0xfa)](_0x8c64b2,_0x482daa,_0x96a896[_0x5ecc9d(0xc9)]),_0x22f672['info'](_0x5ecc9d(0xb2)+_0x1bc3c7+_0x5ecc9d(0xdf)),_0xb61ddf=!![];}}_0x287677=_0x5ecc9d(0x19f)+_0x1928e4+'\x20using\x20\x27'+_0x346814['name']+_0x5ecc9d(0xd2),logger[_0x5ecc9d(0x16a)](_0x287677);const _0x5794c0={};_0x5794c0[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x5794c0[_0x5ecc9d(0x165)]=_0x287677,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x5794c0),_0x273252=_0x346814[_0x5ecc9d(0x131)],_0x4e11d2=_0x346814[_0x5ecc9d(0xc5)],_0x2c6c3e=_0x346814['region'],_0x2beb3c=_0x346814['concurrency'],_0x470290=_0x346814[_0x5ecc9d(0x164)],_0x519c53=_0x346814[_0x5ecc9d(0xd8)],securityGroups=_0x346814[_0x5ecc9d(0x96)],subnets=_0x346814[_0x5ecc9d(0xe2)],_0x2b8980=_0x346814[_0x5ecc9d(0x160)],_0x331241=_0x346814[_0x5ecc9d(0x18c)],_0x4da1b5=_0x346814[_0x5ecc9d(0x1bc)],_0x429826=_0x2ffc66[_0x5ecc9d(0xa0)],_0x49ff91=_0x2ffc66[_0x5ecc9d(0xcd)],_0x96a896[_0x5ecc9d(0xff)](_0x346814[_0x5ecc9d(0x176)],undefined)&&_0x346814['privateGrid']&&(_0x96a896[_0x5ecc9d(0xa3)](_0x96a896[_0x5ecc9d(0x11a)],_0x96a896[_0x5ecc9d(0xc3)])?global_registry['isPrivateGrid']=!![]:_0x59c054['cloudProvider']={}),_0x96a896[_0x5ecc9d(0x1a0)](updateGlobalRegistryWithConfig,_0x273252,_0x4e11d2,_0x2c6c3e,_0x2beb3c,_0x470290,_0x2b8980,_0x346814,_0x429826,_0x49ff91,_0x331241,_0x4da1b5);}else{const _0x28841d={};_0x28841d[_0x5ecc9d(0x19a)]=_0x4def27[_0x5ecc9d(0x194)],_0x28841d['message']=_0x48cefc,_0x472a04[_0x5ecc9d(0xfa)](_0x303404,_0x28841d,_0x96a896[_0x5ecc9d(0x13e)],!![]);}}else{const _0x432a15=_0x96a896[_0x5ecc9d(0x143)][_0x5ecc9d(0x10c)]('|');let _0x37a5e7=0x0;while(!![]){switch(_0x432a15[_0x37a5e7++]){case'0':global_registry[_0x5ecc9d(0xa0)]=_0x2ffc66['hubVersion'];continue;case'1':_0x287677=_0x5ecc9d(0x8d)+_0x1928e4+_0x5ecc9d(0x154)+_0x4e11d2+'\x27';continue;case'2':global_registry[_0x5ecc9d(0x131)]=_0x273252;continue;case'3':global_registry[_0x5ecc9d(0x135)]=_0x2c6c3e;continue;case'4':global_registry['clusterName']=_0x4e11d2;continue;case'5':global_registry[_0x5ecc9d(0xcd)]=_0x2ffc66[_0x5ecc9d(0xcd)];continue;case'6':const _0x590ca7={};_0x590ca7[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x146)],_0x590ca7[_0x5ecc9d(0x165)]=_0x5ecc9d(0x1ab),webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x590ca7);continue;case'7':logger['info'](_0x287677);continue;case'8':const _0x2a0b79={};_0x2a0b79['type']=WS_EVENTS[_0x5ecc9d(0x194)],_0x2a0b79[_0x5ecc9d(0x165)]=_0x287677,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x2a0b79);continue;}break;}}const _0x22733e=_0x96a896[_0x5ecc9d(0x15b)](getCloudProviderObject,_0x273252,_0x4e11d2,_0x1928e4,_0x5ec7dd,webSocketUtils),_0x39ac69=_0x595707[_0x5ecc9d(0x131)]||{};if(_0x96a896['nhHtZ'](_0x39ac69[_0x273252],undefined)){logger[_0x5ecc9d(0x16a)](_0x96a896['SYWZv']);_0x96a896[_0x5ecc9d(0xb0)](_0x595707[_0x5ecc9d(0x131)],undefined)&&(_0x595707[_0x5ecc9d(0x131)]={});_0x595707[_0x5ecc9d(0x131)][_0x273252]={};const _0x37879b=await _0x96a896[_0x5ecc9d(0x151)](inputCloudProviderKeys,_0x273252,_0x595707,_0x22733e);fs['writeFileSync'](_0x96a896[_0x5ecc9d(0x161)](getCredentialsPath),JSON['stringify'](_0x37879b)),logger[_0x5ecc9d(0x16e)](_0x96a896[_0x5ecc9d(0xf1)]);}else{_0x287677=_0x96a896[_0x5ecc9d(0xe9)];const _0x2b701c={};_0x2b701c[_0x5ecc9d(0x19a)]=WS_EVENTS['LOG'],_0x2b701c[_0x5ecc9d(0x165)]=_0x287677,webSocketUtils['sendEventToBackend'](_0x5ec7dd,_0x2b701c),logger[_0x5ecc9d(0x16a)](_0x287677),await _0x22733e[_0x5ecc9d(0x1c0)](_0x39ac69);}_0x22733e['configureIfNotConfigured']();let _0x1751f9;if(_0x96a896[_0x5ecc9d(0x12b)](_0x17e4ee,![])){_0x287677='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x2c6c3e+').';const _0x3c1677={};_0x3c1677[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x3c1677[_0x5ecc9d(0x165)]=_0x287677,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x3c1677),logger[_0x5ecc9d(0x16a)](_0x287677);const _0x1bdf3=await _0x22733e[_0x5ecc9d(0x110)]();if(_0x1bdf3){const _0x5f58fb={};_0x5f58fb[_0x5ecc9d(0x19a)]=WS_EVENTS['LOG'],_0x5f58fb['message']=_0x5ecc9d(0xb2)+_0x4e11d2+_0x5ecc9d(0xdf),webSocketUtils['sendEventToBackend'](_0x5ec7dd,_0x5f58fb,_0x96a896[_0x5ecc9d(0xc9)]),logger[_0x5ecc9d(0x16a)](_0x5ecc9d(0xb2)+_0x4e11d2+_0x5ecc9d(0xdf)),_0x17e4ee=!![];}else{const _0x5233ba={};_0x5233ba[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x5233ba['message']=_0x96a896['tIqXC'],webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x5233ba),logger['info'](_0x96a896['tIqXC']);const _0x412d05=_0x96a896[_0x5ecc9d(0xb9)](_0x519c53,null)&&_0x96a896[_0x5ecc9d(0x100)](_0x519c53,undefined),_0x24fcb9=_0x96a896[_0x5ecc9d(0xb4)](subnets,null)&&_0x96a896[_0x5ecc9d(0xdb)](subnets,undefined)&&_0x96a896[_0x5ecc9d(0xb1)](subnets[_0x5ecc9d(0x12e)],0x0);if(_0x412d05){_0x96a896[_0x5ecc9d(0x10a)](_0x24fcb9,![])&&(_0x287677=_0x96a896[_0x5ecc9d(0x14c)],await _0x96a896[_0x5ecc9d(0x18b)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0x18f)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1));const _0x1afd4=await _0x22733e[_0x5ecc9d(0xfe)](_0x519c53);_0x96a896[_0x5ecc9d(0xd5)](_0x1afd4,![])?(_0x287677=_0x96a896[_0x5ecc9d(0xee)],await _0x96a896[_0x5ecc9d(0x15c)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0x167)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1)):logger[_0x5ecc9d(0x16a)]('Found\x20VPC:\x20'+_0x519c53+'\x20');const _0xd81a64=await _0x22733e[_0x5ecc9d(0x93)](subnets,_0x519c53);_0x96a896['SUWTZ'](_0xd81a64[0x0],![])?(_0x287677=_0x5ecc9d(0x15f)+_0xd81a64[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x519c53+_0x5ecc9d(0x8f),await _0x96a896[_0x5ecc9d(0x189)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896['qoiIq'],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0x5ecc9d(0xef)](subnets)+'\x20'),await _0x22733e[_0x5ecc9d(0xa5)](_0x519c53,subnets);}else{const _0x51e51e=_0x96a896[_0x5ecc9d(0x113)][_0x5ecc9d(0x10c)]('|');let _0x82b3f7=0x0;while(!![]){switch(_0x51e51e[_0x82b3f7++]){case'0':logger[_0x5ecc9d(0x16a)](_0x96a896['nKqmU']);continue;case'1':const _0x59dec5={};_0x59dec5[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x59dec5[_0x5ecc9d(0x165)]=_0x96a896['nKqmU'],webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x59dec5);continue;case'2':logger[_0x5ecc9d(0x16a)](_0x96a896['SyOFc']);continue;case'3':await _0x22733e['setupNewCluster']();continue;case'4':const _0x315304={};_0x315304[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x315304['message']=_0x5ecc9d(0x9a),webSocketUtils['sendEventToBackend'](_0x5ec7dd,_0x315304);continue;}break;}}}}_0x17e4ee&&_0x96a896['nhHtZ'](_0x273252,AZURE)&&(global_registry['s3Bucket']=_0x2ffc66[_0x5ecc9d(0x11c)],await _0x22733e[_0x5ecc9d(0x1b0)](),await _0x22733e[_0x5ecc9d(0x13b)]());const [_0xc2fece,_0x3e204d,_0x2a9270,_0x39f940,_0x481f9f,_0x34f9b0]=await _0x96a896[_0x5ecc9d(0xbd)](createK8sClient,_0x22733e);_0x96a896[_0x5ecc9d(0x107)](_0x17e4ee,![])&&_0x96a896[_0x5ecc9d(0xa7)](_0x273252,AWS)&&(_0x1751f9=await _0x22733e[_0x5ecc9d(0xd3)](_0xc2fece,_0x5d71f1));try{_0x31de19=_0x96a896['DAPBI'](kebabCase,_0x1928e4),logger['info'](_0x96a896[_0x5ecc9d(0x17e)]);const _0x3fa4aa={};_0x3fa4aa['type']=WS_EVENTS[_0x5ecc9d(0x194)],_0x3fa4aa[_0x5ecc9d(0x165)]=_0x96a896['hjEHY'],webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x3fa4aa);if(_0x96a896[_0x5ecc9d(0xca)](_0x31de19,_0x96a896[_0x5ecc9d(0x18d)])){const _0x2b7092={};_0x2b7092['createdBy']=_0x96a896[_0x5ecc9d(0xfd)],_0x2b7092[_0x5ecc9d(0x158)]=_0x96a896[_0x5ecc9d(0xfd)];const _0x5a14d9={};_0x5a14d9[_0x5ecc9d(0x173)]=_0x31de19,_0x5a14d9['annotations']=_0x2b7092;const _0x27b6ec={};_0x27b6ec[_0x5ecc9d(0x9b)]=_0x5a14d9;let _0x2ac11e=_0x27b6ec;await _0xc2fece[_0x5ecc9d(0xb3)](_0x2ac11e),logger[_0x5ecc9d(0x16a)](_0x96a896[_0x5ecc9d(0x103)]);}const _0x4e54bb={};_0x4e54bb[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x4e54bb['message']=_0x96a896[_0x5ecc9d(0x122)],webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x4e54bb);const _0x308629={};_0x308629[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x308629[_0x5ecc9d(0x165)]=_0x96a896['dTeyE'],webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x308629),logger[_0x5ecc9d(0x16a)](_0x96a896[_0x5ecc9d(0x13c)]);let _0x45b8b8={};_0x96a896[_0x5ecc9d(0x152)](_0x273252,AZURE)&&(_0x45b8b8={'clientId':await _0x22733e[_0x5ecc9d(0xad)](_0x5ecc9d(0x116)+_0x4e11d2)});await _0x96a896[_0x5ecc9d(0x111)](addGridComponents,_0xc2fece,_0x3e204d,_0x2a9270,_0x39f940,_0x31de19,_0x4e11d2,_0x1751f9,_0x481f9f,_0x34f9b0,_0x45b8b8),_0x287677=_0x96a896['UUqit'],logger['info'](_0x287677);const _0x925cbf={};_0x925cbf[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0x925cbf[_0x5ecc9d(0x165)]=_0x287677,webSocketUtils['sendEventToBackend'](_0x5ec7dd,_0x925cbf),_0x287677=_0x96a896[_0x5ecc9d(0x186)],logger[_0x5ecc9d(0x16a)](_0x287677);const _0x6decad={};_0x6decad['type']=WS_EVENTS['LOG'],_0x6decad[_0x5ecc9d(0x165)]=_0x287677,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x6decad),await webSocketUtils['delay'](0xea60);const _0x5b7749=await _0x96a896[_0x5ecc9d(0x185)](getNamespaceUID,_0xc2fece,_0x31de19);let _0x5609a1=global_registry[_0x5ecc9d(0x12d)]?_0x96a896['eRtmo']:_0x96a896['qAzya'],_0x33f52d=await _0xc2fece[_0x5ecc9d(0x166)](_0x5609a1,_0x96a896['SafNR']),_0x4c481b=_0x22733e[_0x5ecc9d(0xf2)](_0x33f52d)+'/'+_0x31de19,_0x4b760a=_0x96a896[_0x5ecc9d(0xec)];try{const _0x9c9631={'url':_0x5ecc9d(0x192)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x5b7749,..._0xd045c1},_0x22dfcc=_0x9c9631,_0xd97a02=await _0x96a896[_0x5ecc9d(0x175)](promisifiedRequest,_0x22dfcc);(_0x96a896[_0x5ecc9d(0xe6)](_0xd97a02,null)||_0x96a896[_0x5ecc9d(0x1af)](_0xd97a02,undefined))&&(_0x287677=_0x96a896[_0x5ecc9d(0x149)],await _0x96a896[_0x5ecc9d(0xae)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896['ynigU'],_0x96a896[_0x5ecc9d(0x1b9)],_0x96a896[_0x5ecc9d(0x13e)]),logger['error'](_0x287677),process[_0x5ecc9d(0xc1)](0x1));_0x96a896[_0x5ecc9d(0xac)](_0xd97a02[_0x5ecc9d(0x187)],0x191)&&(_0x287677=_0x96a896[_0x5ecc9d(0x120)],await _0x96a896[_0x5ecc9d(0x1a9)](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes['ERROR'],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0x1bf)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1));_0x96a896[_0x5ecc9d(0x188)](_0xd97a02['statusCode'],0xc8)&&(_0x287677=_0x5ecc9d(0xf0)+JSON[_0x5ecc9d(0xef)](_0xd97a02),await _0x96a896['ulsPw'](reportToGalactusAndSendToEDS,_0x5d71f1,_0x5ec7dd,_0x287677,messageTypes[_0x5ecc9d(0x14e)],_0x96a896[_0x5ecc9d(0xfb)],_0x96a896[_0x5ecc9d(0x199)],_0x96a896[_0x5ecc9d(0x13e)]),logger[_0x5ecc9d(0x9d)](_0x287677),process[_0x5ecc9d(0xc1)](0x1));const _0x2dad4c=JSON[_0x5ecc9d(0x177)](_0xd97a02[_0x5ecc9d(0xbc)]);_0x2dad4c['route53']&&(_0x4c481b=_0x2dad4c['route53'],_0x4b760a=_0x96a896['iMraL']),global_registry[_0x5ecc9d(0x12d)]&&(_0x4b760a=_0x96a896[_0x5ecc9d(0xec)]);}catch(_0x4d490d){}_0x287677=_0x5ecc9d(0xaf)+_0x4c481b+'\x20',logger['info'](_0x287677);const _0x140e05={};_0x140e05['type']=WS_EVENTS[_0x5ecc9d(0x194)],_0x140e05['message']=_0x287677,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x140e05),_0x287677=_0x5ecc9d(0x94)+_0x4b760a+'://'+_0x4c481b+_0x5ecc9d(0xcf),logger[_0x5ecc9d(0x16a)](_0x287677);const _0xcab6ac={};_0xcab6ac[_0x5ecc9d(0x19a)]=WS_EVENTS[_0x5ecc9d(0x194)],_0xcab6ac[_0x5ecc9d(0x165)]=_0x287677,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0xcab6ac);const _0xbab83c={};_0xbab83c[_0x5ecc9d(0x19a)]=WS_EVENTS['CLI_RUN_FINISHED'],_0xbab83c['message']=_0x5ecc9d(0x104)+_0x4c481b,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0xbab83c),await webSocketUtils[_0x5ecc9d(0x1a1)](0x7d0);}catch(_0x33aed9){if(_0x96a896['ghzgR'](_0x17e4ee,![]))try{logger[_0x5ecc9d(0x16a)](_0x5ecc9d(0x108)),await _0x96a896[_0x5ecc9d(0xcb)](removeGridComponents,_0xc2fece,_0x3e204d,_0x2a9270,_0x39f940,_0x31de19),await _0x22733e[_0x5ecc9d(0x142)](_0xc2fece,global_registry[_0x5ecc9d(0x135)]);}catch(_0x25be22){throw _0x25be22;}throw _0x33aed9;}}catch(_0x12af84){const _0x4c9df5='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x12af84+'\x20\x0a'+JSON[_0x5ecc9d(0xef)](_0x12af84)+'\x20';if(_0x5ec7dd){const _0x2b1018={};_0x2b1018['type']=WS_EVENTS[_0x5ecc9d(0x194)],_0x2b1018[_0x5ecc9d(0x165)]=_0x4c9df5,webSocketUtils[_0x5ecc9d(0xfa)](_0x5ec7dd,_0x2b1018,_0x96a896[_0x5ecc9d(0x13e)],!![]);}await webSocketUtils[_0x5ecc9d(0x1a1)](0x7d0);const _0x61b126={};_0x61b126[_0x5ecc9d(0x9d)]=_0x4c9df5,await _0x96a896[_0x5ecc9d(0x157)](sendInstrumentationEvent,_0x5d71f1,_0x96a896[_0x5ecc9d(0xfb)],messageTypes['ERROR'],_0x96a896[_0x5ecc9d(0x169)],_0x61b126,_0x5d71f1),logger[_0x5ecc9d(0x9d)](_0x4c9df5);}process[_0x5ecc9d(0xc1)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x4ee8(_0x31b882,_0x1063cc){const _0x5bc518=a10_0x5bc5();return a10_0x4ee8=function(_0x4ee8c8,_0x1f2486){_0x4ee8c8=_0x4ee8c8-0xe6;let _0x1bbd85=_0x5bc518[_0x4ee8c8];return _0x1bbd85;},a10_0x4ee8(_0x31b882,_0x1063cc);}const a10_0xe15e76=a10_0x4ee8;function a10_0x5bc5(){const _0x1e5f26=['delete_commands','command','delete','usage','5129768VDOwJK','8xodOTY','List\x20Grid\x20resources.','feswa','desc','66sMVbEq','1LCrsBY','12033984fVPNGK','recommendCommands','3514941ySiHAk','404198ctNzBl','9HByknz','7450uVBrwf','epilogue','578896oGJzjE','commandDir','builder','1397UwLeev','443425sbeCht','demandCommand'];a10_0x5bc5=function(){return _0x1e5f26;};return a10_0x5bc5();}(function(_0x1d4363,_0x5b0114){const _0x2a4cfb=a10_0x4ee8,_0x1ef8cb=_0x1d4363();while(!![]){try{const _0x367e26=-parseInt(_0x2a4cfb(0xec))/0x1*(parseInt(_0x2a4cfb(0xf0))/0x2)+-parseInt(_0x2a4cfb(0xf1))/0x3*(-parseInt(_0x2a4cfb(0xf4))/0x4)+-parseInt(_0x2a4cfb(0xf8))/0x5*(parseInt(_0x2a4cfb(0xeb))/0x6)+parseInt(_0x2a4cfb(0xe6))/0x7+parseInt(_0x2a4cfb(0xe7))/0x8*(-parseInt(_0x2a4cfb(0xef))/0x9)+parseInt(_0x2a4cfb(0xf2))/0xa*(-parseInt(_0x2a4cfb(0xf7))/0xb)+parseInt(_0x2a4cfb(0xed))/0xc;if(_0x367e26===_0x5b0114)break;else _0x1ef8cb['push'](_0x1ef8cb['shift']());}catch(_0x33f52f){_0x1ef8cb['push'](_0x1ef8cb['shift']());}}}(a10_0x5bc5,0x7bc96));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0xe15e76(0xfb)]=a10_0xe15e76(0xfc),exports[a10_0xe15e76(0xea)]=a10_0xe15e76(0xe8),exports[a10_0xe15e76(0xf6)]=function(_0x3e3b28){const _0x10816e=a10_0xe15e76,_0x39474f={};_0x39474f[_0x10816e(0xe9)]=_0x10816e(0xfa),_0x39474f['oxiDb']='help';const _0x1af785=_0x39474f;return _0x3e3b28[_0x10816e(0xfd)](HELP_HEADER_MESSAGE[_0x10816e(0xfc)])[_0x10816e(0xf3)](HELP_FOOTER_MESSAGE)[_0x10816e(0xf5)](_0x1af785[_0x10816e(0xe9)])[_0x10816e(0xf9)]()[_0x10816e(0xee)]()['strict']()['help'](_0x1af785['oxiDb']);},exports['handler']=function(_0x46d713){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x1f3a2e=a11_0x32e6;(function(_0x2f3d33,_0x3a4cf9){const _0x5c5248=a11_0x32e6,_0x2a7b96=_0x2f3d33();while(!![]){try{const _0x1b5234=parseInt(_0x5c5248(0x1aa))/0x1+parseInt(_0x5c5248(0x1ab))/0x2+parseInt(_0x5c5248(0x15b))/0x3*(-parseInt(_0x5c5248(0x159))/0x4)+parseInt(_0x5c5248(0x17f))/0x5*(-parseInt(_0x5c5248(0x1d8))/0x6)+parseInt(_0x5c5248(0x161))/0x7+parseInt(_0x5c5248(0x175))/0x8*(-parseInt(_0x5c5248(0x1dd))/0x9)+parseInt(_0x5c5248(0x154))/0xa;if(_0x1b5234===_0x3a4cf9)break;else _0x2a7b96['push'](_0x2a7b96['shift']());}catch(_0x56839f){_0x2a7b96['push'](_0x2a7b96['shift']());}}}(a11_0x1b1c,0x5ec1a));function a11_0x32e6(_0xa2acda,_0x5258f8){const _0x1b1c9d=a11_0x1b1c();return a11_0x32e6=function(_0x32e650,_0x2f7173){_0x32e650=_0x32e650-0x14a;let _0x57407d=_0x1b1c9d[_0x32e650];return _0x57407d;},a11_0x32e6(_0xa2acda,_0x5258f8);}function a11_0x1b1c(){const _0x21a572=['method','rBllR','\x22\x20and\x20ID\x20','clusterId','configureIfNotConfigured','ehfzv','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','ERROR','builder','SADhD','deleteCluster','https://','kpibj','epilogue','invalid-input','VZgtN','AuCvM','clusterName','help','unknown-error','options','moygN','MFvDl','658569ZGjnQw','571584ttWmin','dgjrB','grid-id','wmxLS','bnaUc','tcSVX','../../utils/gridComponents','Succesfully\x20deleted\x20the\x20grid','Cluster:\x20','existsSync','type','message','cWJiD','body','cWMQN','parse','/packages/cli/grid/','stringify','tEnnc','PZCfr','bJCxx','handler','\x22\x20with\x20ID\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gRnwX','unauthorised','clusterRegion','ykVCg','eHVWR','delete','MmNIL','zYwYQ','../../utils/createk8sClient','cloudProvider','sGMaB','Pass\x20the\x20ID\x20of\x20the\x20Grid','vqGyn','init-not-called','server-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XamqB','eooZR','DELETE','stack','../../cloudproviders/utils','1974dlWSnX','exit','mWCuh','warn','pHoFJ','60327oIsAfr','request','MAcFq','../../utils/userInput','ZjGAp','info','Failed\x20to\x20delete\x20resources!\x20Error:\x20','url','desc','cySMu','../../config/constants','7731390dpdmNo','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','qrFvv','error','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','124964sqblJw','statusCode','69QpolSU','lWZOe','Euyqy','gVDwd','delete-grid-called','onlyGridInCluster','911890CTkQry','region','uuid','username','invalid-grid-id','vLuEM','gridId','command','Browserstack','ebhqA','description','uxnGS','hGERr','usage','WPACw','MrYTq','Delete\x20an\x20Automation\x20grid.','writeFileSync','WpUgw','grid','184ZWEifK','auth','INFO','toLowerCase','soDES','xQrvI','GQFfO','fKKJG','../../config/logger','fetchLocalCreds','8920UUGgMY','hjuEZ','yMjXM','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','isBrowserstackCluster','dFUef','LFlPK','clusterSpawnedVia','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','util','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','kjLZu','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','argv','JRyKP','iFLwB','hRoly','jnCpi','name'];a11_0x1b1c=function(){return _0x21a572;};return a11_0x1b1c();}const fs=require('fs'),util=require(a11_0x1f3a2e(0x189)),request=require(a11_0x1f3a2e(0x14a)),{v4:uuidv4}=require(a11_0x1f3a2e(0x163)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x1f3a2e(0x153)),{logger}=require(a11_0x1f3a2e(0x17d)),{getCloudProviderObject}=require(a11_0x1f3a2e(0x1d7)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1f3a2e(0x1b1)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x1f3a2e(0x14c)),{createK8sClient}=require(a11_0x1f3a2e(0x1cb)),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util['promisify'](request);exports[a11_0x1f3a2e(0x168)]=a11_0x1f3a2e(0x174),exports[a11_0x1f3a2e(0x151)]=a11_0x1f3a2e(0x171),exports[a11_0x1f3a2e(0x19b)]=function(_0x563fd9){const _0x31b3b0=a11_0x1f3a2e,_0x31dda8={};_0x31dda8[_0x31b3b0(0x1ac)]=_0x31b3b0(0x1ce),_0x31dda8[_0x31b3b0(0x18e)]='string',_0x31dda8[_0x31b3b0(0x16d)]=_0x31b3b0(0x1a5);const _0x204786=_0x31dda8,_0x2c094f={};_0x2c094f['description']=_0x204786[_0x31b3b0(0x1ac)],_0x2c094f[_0x31b3b0(0x1b5)]=_0x204786[_0x31b3b0(0x18e)];const _0x3baf57={};return _0x3baf57[_0x31b3b0(0x1ad)]=_0x2c094f,_0x563fd9[_0x31b3b0(0x16e)](HELP_HEADER_MESSAGE[_0x31b3b0(0x1c8)])[_0x31b3b0(0x1a0)](HELP_FOOTER_MESSAGE)[_0x31b3b0(0x1a7)](_0x3baf57)[_0x31b3b0(0x1a5)](_0x204786[_0x31b3b0(0x16d)])[_0x31b3b0(0x18d)];},exports[a11_0x1f3a2e(0x1c0)]=async function(_0x449209){const _0x426b0f=a11_0x1f3a2e,_0x5d0c29={'tcSVX':_0x426b0f(0x18a),'wmxLS':_0x426b0f(0x1ce),'cWMQN':'string','YeTDR':_0x426b0f(0x1a5),'hRoly':function(_0x3c0b55){return _0x3c0b55();},'SADhD':function(_0x150d53,_0x4bedc8){return _0x150d53===_0x4bedc8;},'dFUef':_0x426b0f(0x1a2),'tEmLl':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tEnnc':function(_0x1f407d,_0x541547,_0x4fb3ea,_0x56edd2,_0x5423ba,_0x1cad27,_0x173541){return _0x1f407d(_0x541547,_0x4fb3ea,_0x56edd2,_0x5423ba,_0x1cad27,_0x173541);},'cWJiD':_0x426b0f(0x15f),'bnaUc':_0x426b0f(0x1d0),'tibiX':function(_0x2da2fc,_0x50fc5c,_0x51b991,_0x47cbe,_0x2fa1dd,_0x15b48a,_0x334652){return _0x2da2fc(_0x50fc5c,_0x51b991,_0x47cbe,_0x2fa1dd,_0x15b48a,_0x334652);},'LFlPK':'oVmje','sGMaB':function(_0x387a07,_0x1927c3,_0x5be46d,_0x5aa945){return _0x387a07(_0x1927c3,_0x5be46d,_0x5aa945);},'mWCuh':function(_0xeb0d14,_0x19a6d4){return _0xeb0d14===_0x19a6d4;},'fhlof':_0x426b0f(0x169),'ZjGAp':function(_0x2e84d4,_0x60eeed){return _0x2e84d4!==_0x60eeed;},'pHoFJ':_0x426b0f(0x1bf),'fKKJG':'rNIKj','WPACw':function(_0x882969,_0x1282bc){return _0x882969(_0x1282bc);},'MAcFq':function(_0x72d408,_0x39a245){return _0x72d408===_0x39a245;},'cySMu':function(_0x295663,_0x2dbf2c){return _0x295663===_0x2dbf2c;},'gRnwX':function(_0x4a9592,_0x12c231){return _0x4a9592===_0x12c231;},'ehfzv':function(_0x4c16e3,_0x9d1b5e){return _0x4c16e3===_0x9d1b5e;},'MrYTq':_0x426b0f(0x166),'hjuEZ':_0x426b0f(0x1cf),'gcpmi':_0x426b0f(0x18c),'eHVWR':function(_0x193831,_0x3e8324,_0x580543,_0x12fe90,_0x2f700a,_0x5cb6e1,_0x3d2123){return _0x193831(_0x3e8324,_0x580543,_0x12fe90,_0x2f700a,_0x5cb6e1,_0x3d2123);},'iFLwB':_0x426b0f(0x1a1),'jnCpi':_0x426b0f(0x15d),'AuCvM':'rXyjh','gVDwd':function(_0x8e13,_0x3e0136){return _0x8e13===_0x3e0136;},'GQFfO':function(_0x4c0c7a,_0x3cdc27){return _0x4c0c7a!==_0x3cdc27;},'ykVCg':_0x426b0f(0x1be),'rBllR':_0x426b0f(0x183),'HVdzd':function(_0x146d01,_0x2083d5){return _0x146d01===_0x2083d5;},'yMjXM':function(_0x3c7640,_0x587cdd){return _0x3c7640!==_0x587cdd;},'kpibj':'yXXHh','eooZR':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ZAngt':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','moygN':function(_0x4f823a,_0x4d0710){return _0x4f823a(_0x4d0710);},'tQJvv':function(_0x25ab06,_0x11bc85){return _0x25ab06(_0x11bc85);},'XamqB':function(_0x34889c,_0x3e376a,_0x5e1170,_0x1b30ba,_0x479529,_0x1487d2){return _0x34889c(_0x3e376a,_0x5e1170,_0x1b30ba,_0x479529,_0x1487d2);},'WpUgw':_0x426b0f(0x1d5),'qrFvv':function(_0x4ca1f4,_0xbbdb81){return _0x4ca1f4!==_0xbbdb81;},'xQrvI':function(_0x12aa84,_0xe562d4){return _0x12aa84===_0xe562d4;},'kjLZu':_0x426b0f(0x1d1),'uxnGS':function(_0x1df8b5,_0x5d7926){return _0x1df8b5===_0x5d7926;},'ebhqA':function(_0x5af627,_0x55760f,_0x48be41,_0xfa9e48,_0x24b005,_0x55a256,_0x1247bc){return _0x5af627(_0x55760f,_0x48be41,_0xfa9e48,_0x24b005,_0x55a256,_0x1247bc);},'MmNIL':_0x426b0f(0x1c4),'zYwYQ':function(_0x469544,_0x550dff,_0x4f1140,_0xb814f9,_0x5532fa,_0xc642e8,_0x565165){return _0x469544(_0x550dff,_0x4f1140,_0xb814f9,_0x5532fa,_0xc642e8,_0x565165);},'lWZOe':_0x426b0f(0x165),'soDES':function(_0x56fa81,_0x143158,_0x3d4583,_0x583442,_0x1ecb5e,_0x3575a8,_0x35d471){return _0x56fa81(_0x143158,_0x3d4583,_0x583442,_0x1ecb5e,_0x3575a8,_0x35d471);},'MFvDl':function(_0x523004,_0x532eb2,_0x56b5cb,_0x765e5,_0x4a85c9,_0x282aaf,_0x2f44cd){return _0x523004(_0x532eb2,_0x56b5cb,_0x765e5,_0x4a85c9,_0x282aaf,_0x2f44cd);},'VFtFw':_0x426b0f(0x1a6)};try{global_registry['requestId']=_0x5d0c29['hRoly'](uuidv4);!fs[_0x426b0f(0x1b4)](_0x5d0c29[_0x426b0f(0x190)](getCredentialsPath))&&(_0x5d0c29[_0x426b0f(0x19c)](_0x5d0c29[_0x426b0f(0x185)],_0x5d0c29[_0x426b0f(0x185)])?(console[_0x426b0f(0x157)](_0x5d0c29['tEmLl']),await _0x5d0c29[_0x426b0f(0x1bd)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x1af)],null,_0x449209),process['exit'](0x1)):_0x3012af[_0x426b0f(0x1db)](_0x426b0f(0x1b3)+_0x479ac2[_0x426b0f(0x1a4)]+_0x426b0f(0x188)));_0x5d0c29['tibiX'](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x177)],null,null,_0x449209);!_0x449209[_0x426b0f(0x167)]&&(_0x5d0c29['SADhD'](_0x5d0c29[_0x426b0f(0x186)],_0x5d0c29[_0x426b0f(0x186)])?(console['error'](_0x5d0c29[_0x426b0f(0x1b0)]),process[_0x426b0f(0x1d9)](0x1)):(_0x196068[_0x426b0f(0x157)](_0x5d0c29[_0x426b0f(0x1b0)]),_0x426d18[_0x426b0f(0x1d9)](0x1)));const _0x6a0ce6=JSON[_0x426b0f(0x1ba)](fs['readFileSync'](_0x5d0c29[_0x426b0f(0x190)](getCredentialsPath))),[_0x39b5e9,_0x3e86af]=await _0x5d0c29[_0x426b0f(0x1cd)](getGridDetails,_0x6a0ce6['Browserstack'][_0x426b0f(0x164)],_0x6a0ce6[_0x426b0f(0x169)]['password'],_0x449209[_0x426b0f(0x167)]);if(_0x3e86af){const _0x49a124=_0x3e86af[_0x426b0f(0x14e)];let _0x565bfa=_0x426b0f(0x155)+_0x49a124[_0x426b0f(0x192)]+_0x426b0f(0x195)+_0x49a124['id']+_0x426b0f(0x199),_0x14bf02;if(_0x3e86af[_0x426b0f(0x160)]&&_0x5d0c29[_0x426b0f(0x1da)](_0x3e86af[_0x426b0f(0x187)],_0x5d0c29['fhlof'])){if(_0x5d0c29[_0x426b0f(0x14d)](_0x5d0c29[_0x426b0f(0x1dc)],_0x5d0c29[_0x426b0f(0x17c)]))_0x565bfa=_0x426b0f(0x155)+_0x49a124[_0x426b0f(0x192)]+_0x426b0f(0x195)+_0x49a124['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x49a124['clusterName']+_0x426b0f(0x1c1)+_0x49a124['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';else{const _0x3cb6ba={};_0x3cb6ba[_0x426b0f(0x16b)]=_0x5d0c29[_0x426b0f(0x1ae)],_0x3cb6ba[_0x426b0f(0x1b5)]=_0x5d0c29[_0x426b0f(0x1b9)];const _0x127cd6={};return _0x127cd6[_0x426b0f(0x1ad)]=_0x3cb6ba,_0x4fa685[_0x426b0f(0x16e)](_0x5a4402['delete'])['epilogue'](_0x4d5145)[_0x426b0f(0x1a7)](_0x127cd6)[_0x426b0f(0x1a5)](_0x5d0c29['YeTDR'])[_0x426b0f(0x18d)];}}_0x14bf02=await _0x5d0c29[_0x426b0f(0x16f)](inputConfirmation,_0x565bfa);(_0x5d0c29[_0x426b0f(0x14b)](_0x14bf02,undefined)||_0x5d0c29[_0x426b0f(0x14b)](_0x14bf02,null)||!(_0x5d0c29[_0x426b0f(0x152)](_0x14bf02[_0x426b0f(0x178)](),'y')||_0x5d0c29[_0x426b0f(0x1c3)](_0x14bf02['toLowerCase'](),'n')))&&(_0x5d0c29['ehfzv'](_0x5d0c29[_0x426b0f(0x170)],_0x5d0c29[_0x426b0f(0x180)])?_0x171e27[_0x426b0f(0x1d9)](0x0):(console['error'](_0x5d0c29['gcpmi']),await _0x5d0c29[_0x426b0f(0x1c7)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x18f)],null,_0x449209),process[_0x426b0f(0x1d9)](0x1)));_0x5d0c29['SADhD'](_0x14bf02[_0x426b0f(0x178)](),'n')&&(_0x5d0c29['ZjGAp'](_0x5d0c29[_0x426b0f(0x191)],_0x5d0c29[_0x426b0f(0x1a3)])?process[_0x426b0f(0x1d9)](0x0):_0x41af7b[_0x426b0f(0x1cc)]={});global_registry[_0x426b0f(0x1c5)]=_0x49a124[_0x426b0f(0x162)];const _0x26142c=_0x49a124['cloudProvider'],_0x1c5539=_0x5d0c29[_0x426b0f(0x1cd)](getCloudProviderObject,_0x26142c,_0x49a124[_0x426b0f(0x1a4)],_0x49a124['name']),_0x45ec84=_0x6a0ce6['cloudProvider'];if(_0x5d0c29[_0x426b0f(0x15e)](_0x45ec84[_0x26142c],undefined)){if(_0x5d0c29[_0x426b0f(0x17b)](_0x5d0c29[_0x426b0f(0x1c6)],_0x5d0c29[_0x426b0f(0x1c6)]))_0x3d7c1e=_0x426b0f(0x155)+_0x26d7cf[_0x426b0f(0x192)]+_0x426b0f(0x195)+_0x4ae312['id']+_0x426b0f(0x182)+_0x5c1675['clusterName']+'\x22\x20with\x20ID\x20'+_0x4566ab[_0x426b0f(0x196)]+_0x426b0f(0x199);else{logger[_0x426b0f(0x14e)](_0x5d0c29[_0x426b0f(0x194)]);_0x5d0c29['HVdzd'](_0x6a0ce6[_0x426b0f(0x1cc)],undefined)&&(_0x5d0c29[_0x426b0f(0x181)](_0x5d0c29[_0x426b0f(0x19f)],_0x5d0c29[_0x426b0f(0x19f)])?(_0x107242[_0x426b0f(0x14e)]('Succesfully\x20deleted\x20the\x20grid'),_0x2e7df8[_0x426b0f(0x1d9)](0x0)):_0x6a0ce6[_0x426b0f(0x1cc)]={});_0x6a0ce6['cloudProvider'][_0x26142c]={};const _0x169046=await _0x5d0c29['sGMaB'](inputCloudProviderKeys,_0x26142c,_0x6a0ce6,_0x1c5539);fs[_0x426b0f(0x172)](_0x5d0c29[_0x426b0f(0x190)](getCredentialsPath),JSON[_0x426b0f(0x1bc)](_0x169046)),logger['debug'](_0x5d0c29[_0x426b0f(0x1d4)]);}}else logger[_0x426b0f(0x14e)](_0x5d0c29['ZAngt']),await _0x1c5539[_0x426b0f(0x17e)](_0x45ec84);_0x1c5539[_0x426b0f(0x197)]();const _0x508c20=_0x5d0c29[_0x426b0f(0x1a8)](kebabCase,_0x49a124['name']),[_0x59f140,_0x37f818,_0x1a3dbe,_0x40566d,_0x4ac6e0,_0xfc3fce]=await _0x5d0c29['tQJvv'](createK8sClient,_0x1c5539);await _0x5d0c29[_0x426b0f(0x1d3)](removeGridComponents,_0x59f140,_0x37f818,_0x1a3dbe,_0x40566d,_0x508c20);if(_0x3e86af[_0x426b0f(0x160)]){const _0x51228a=await _0x1c5539[_0x426b0f(0x184)]();_0x51228a?await _0x1c5539[_0x426b0f(0x19d)](_0x59f140,_0x49a124['region']):logger[_0x426b0f(0x1db)](_0x426b0f(0x1b3)+_0x49a124[_0x426b0f(0x1a4)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x14bf67=_0x426b0f(0x19e)+AG_API_URL+_0x426b0f(0x1bb)+_0x449209[_0x426b0f(0x167)],_0x4b4af9={};_0x4b4af9['username']=_0x6a0ce6[_0x426b0f(0x169)][_0x426b0f(0x164)],_0x4b4af9['password']=_0x6a0ce6['Browserstack']['password'];const _0x2a0064={};_0x2a0064[_0x426b0f(0x150)]=_0x14bf67,_0x2a0064[_0x426b0f(0x193)]=_0x5d0c29[_0x426b0f(0x173)],_0x2a0064[_0x426b0f(0x176)]=_0x4b4af9;const _0x48ee61=_0x2a0064,_0x4bed03=await _0x5d0c29[_0x426b0f(0x16f)](promisifiedRequest,_0x48ee61);_0x5d0c29[_0x426b0f(0x156)](_0x4bed03,null)&&_0x5d0c29['qrFvv'](_0x4bed03,undefined)&&_0x5d0c29[_0x426b0f(0x17a)](_0x4bed03[_0x426b0f(0x15a)],0xc8)&&(logger[_0x426b0f(0x14e)](_0x426b0f(0x1b2)),process[_0x426b0f(0x1d9)](0x0)),logger[_0x426b0f(0x157)](_0x426b0f(0x158)+JSON[_0x426b0f(0x1bc)](_0x4bed03)),await _0x5d0c29['tEnnc'](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x18b)],_0x39b5e9,_0x449209),process[_0x426b0f(0x1d9)](0x1);}_0x5d0c29[_0x426b0f(0x16c)](_0x39b5e9['statusCode'],0x191)&&(logger['error'](_0x426b0f(0x1d2)),await _0x5d0c29[_0x426b0f(0x16a)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x1c9)],null,_0x449209),process[_0x426b0f(0x1d9)](0x1)),_0x5d0c29[_0x426b0f(0x198)](_0x39b5e9[_0x426b0f(0x15a)],0x190)&&(logger[_0x426b0f(0x157)](JSON[_0x426b0f(0x1ba)](_0x39b5e9[_0x426b0f(0x1b8)])[_0x426b0f(0x1b6)]),await _0x5d0c29[_0x426b0f(0x1ca)](sendInstrumentationEvent,_0x449209,_0x5d0c29['cWJiD'],messageTypes['ERROR'],_0x5d0c29[_0x426b0f(0x15c)],null,_0x449209),process[_0x426b0f(0x1d9)](0x1)),logger[_0x426b0f(0x157)](_0x426b0f(0x1c2)+JSON[_0x426b0f(0x1bc)](_0x39b5e9)),await _0x5d0c29[_0x426b0f(0x179)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes['ERROR'],_0x5d0c29['kjLZu'],_0x39b5e9,_0x449209),process['exit'](0x1);}catch(_0x41376a){logger[_0x426b0f(0x157)](_0x426b0f(0x14f)+_0x41376a[_0x426b0f(0x1d6)]),await _0x5d0c29[_0x426b0f(0x1a9)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29['VFtFw'],_0x41376a,_0x449209),process['exit'](0x1);}};
|
|
1
|
+
const a11_0x260925=a11_0x207a;function a11_0x207a(_0xb42e96,_0x52bf2f){const _0xaeb1fa=a11_0xaeb1();return a11_0x207a=function(_0x207a68,_0x41d6b6){_0x207a68=_0x207a68-0x1d7;let _0x10fd4e=_0xaeb1fa[_0x207a68];return _0x10fd4e;},a11_0x207a(_0xb42e96,_0x52bf2f);}(function(_0x2e30b8,_0x3a82d8){const _0x43ab38=a11_0x207a,_0x51b4db=_0x2e30b8();while(!![]){try{const _0x17517c=-parseInt(_0x43ab38(0x1fe))/0x1+-parseInt(_0x43ab38(0x265))/0x2*(-parseInt(_0x43ab38(0x23c))/0x3)+-parseInt(_0x43ab38(0x200))/0x4+-parseInt(_0x43ab38(0x258))/0x5+-parseInt(_0x43ab38(0x21b))/0x6+-parseInt(_0x43ab38(0x20b))/0x7*(parseInt(_0x43ab38(0x1f4))/0x8)+-parseInt(_0x43ab38(0x236))/0x9*(-parseInt(_0x43ab38(0x1dc))/0xa);if(_0x17517c===_0x3a82d8)break;else _0x51b4db['push'](_0x51b4db['shift']());}catch(_0x2e75b1){_0x51b4db['push'](_0x51b4db['shift']());}}}(a11_0xaeb1,0xee034));const fs=require('fs'),util=require(a11_0x260925(0x211)),request=require(a11_0x260925(0x21d)),{v4:uuidv4}=require(a11_0x260925(0x1f7)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x260925(0x24e)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x260925(0x244)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x260925(0x1fd)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x260925(0x215)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require(a11_0x260925(0x246)),promisifiedRequest=util['promisify'](request);function a11_0xaeb1(){const _0x1ff73c=['135UYmhSw','body','\x22\x20with\x20ID\x20','dBZfx','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','grITm','735705EFceKK','aiOUG','Pufvj','invalid-grid-id','BdGPA','oWqva','description','bgWFt','../../cloudproviders/utils','username','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','oPbwF','DELETE','JwKHm','IpxrN','command','grid-id','../../config/constants','init-not-called','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','warn','argv','XyVBe','cloudProvider','Delete\x20an\x20Automation\x20grid.','epilogue','DXkse','7183050wocXSZ','password','SgogA','auth','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','kdORC','aQGrk','method','exit','invalid-input','TCZdu','unauthorised','deleteCluster','2ArtSWh','INFO','SwpQY','toLowerCase','\x22\x20and\x20ID\x20','fceoD','hNIbw','statusCode','4749850pHARJg','options','usage','naaUg','Pass\x20the\x20ID\x20of\x20the\x20Grid','Succesfully\x20deleted\x20the\x20grid','unknown-error','clusterRegion','grid','wcNDK','https://','builder','OJncX','qishL','GbvRk','type','ZImxp','YHmgW','QjeWM','error','message','Cluster:\x20','wkIjt','string','12258824YkcSFP','desc','IfDKt','uuid','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','lotfG','PJvOh','delete','KhBam','../../utils/gridComponents','74586lXPQLm','geakM','7327400zygXsG','writeFileSync','configureIfNotConfigured','szZcu','kcKcZ','fetchLocalCreds','parse','stack','WDBGA','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','XJiWP','7AloDlZ','SiQwG','sMteC','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','cCRfS','url','util','stringify','nBskX','MlWfi','../../utils/userInput','KwNRd','rIpqi','onlyGridInCluster','GsPIm','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','9118266yAXaWt','help','request','tuqFz','info','ERROR','WvpFq','requestId','debug','RQwzv','name','XXybL','clusterId','Browserstack','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Nrkky','xfuhJ','server-error','gridId','clusterName','clusterSpawnedVia','cmQaj','YAeUS','LLizH','readFileSync','isBrowserstackCluster','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions'];a11_0xaeb1=function(){return _0x1ff73c;};return a11_0xaeb1();}exports[a11_0x260925(0x24c)]=a11_0x260925(0x1e4),exports[a11_0x260925(0x1f5)]=a11_0x260925(0x255),exports[a11_0x260925(0x1e7)]=function(_0x3d8e68){const _0x3da2e1=a11_0x260925,_0x21e070={};_0x21e070[_0x3da2e1(0x22a)]=_0x3da2e1(0x1e0),_0x21e070[_0x3da2e1(0x1ff)]='string',_0x21e070['hoeTr']=_0x3da2e1(0x21c);const _0x51313b=_0x21e070,_0x480ddc={};_0x480ddc['description']=_0x51313b['Nrkky'],_0x480ddc[_0x3da2e1(0x1eb)]=_0x51313b[_0x3da2e1(0x1ff)];const _0x2f7116={};return _0x2f7116['grid-id']=_0x480ddc,_0x3d8e68[_0x3da2e1(0x1de)](HELP_HEADER_MESSAGE[_0x3da2e1(0x1fb)])[_0x3da2e1(0x256)](HELP_FOOTER_MESSAGE)[_0x3da2e1(0x1dd)](_0x2f7116)[_0x3da2e1(0x21c)](_0x51313b['hoeTr'])['argv'];},exports['handler']=async function(_0x30bc76){const _0x111bc8=a11_0x260925,_0x2456e5={'kcKcZ':'Pass\x20the\x20ID\x20of\x20the\x20Grid','wcNDK':_0x111bc8(0x1f3),'IpxrN':_0x111bc8(0x21c),'Pufvj':_0x111bc8(0x25c),'rIpqi':function(_0x361d0e){return _0x361d0e();},'YAeUS':function(_0x520dab,_0x59cadb){return _0x520dab!==_0x59cadb;},'RQwzv':_0x111bc8(0x24a),'oPbwF':'MWjdB','nBskX':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LLizH':function(_0x50150e,_0x5d2311,_0x1c5b0b,_0x3d2b44,_0x4203cd,_0x5e0645,_0x50d88d){return _0x50150e(_0x5d2311,_0x1c5b0b,_0x3d2b44,_0x4203cd,_0x5e0645,_0x50d88d);},'GsPIm':'delete-grid-called','bgWFt':_0x111bc8(0x24f),'xfuhJ':function(_0xba5e00,_0x402632){return _0xba5e00!==_0x402632;},'naaUg':_0x111bc8(0x20f),'XXybL':function(_0xab6dd6,_0x365e10,_0x417880,_0x2c7e7d){return _0xab6dd6(_0x365e10,_0x417880,_0x2c7e7d);},'tuqFz':function(_0x11c891,_0x3c8117){return _0x11c891===_0x3c8117;},'KwNRd':_0x111bc8(0x228),'hNIbw':function(_0x29f4c8,_0x539313){return _0x29f4c8===_0x539313;},'wkIjt':_0x111bc8(0x20a),'aQGrk':function(_0x160a79,_0x4bdd5d){return _0x160a79(_0x4bdd5d);},'grITm':function(_0x6b9e32,_0x904bfb){return _0x6b9e32===_0x904bfb;},'BHCKD':function(_0x325ab2,_0x23689f){return _0x325ab2===_0x23689f;},'SgogA':_0x111bc8(0x1e9),'mSqbA':_0x111bc8(0x25d),'GbvRk':_0x111bc8(0x23a),'BdGPA':_0x111bc8(0x261),'ZImxp':function(_0x5e0a0a,_0x3ddc29){return _0x5e0a0a!==_0x3ddc29;},'XyVBe':'TnjSA','Brlmz':_0x111bc8(0x1f6),'WvpFq':function(_0xa6bfdf,_0x2827d8,_0x44ae27,_0x4cb249){return _0xa6bfdf(_0x2827d8,_0x44ae27,_0x4cb249);},'aiOUG':_0x111bc8(0x203),'hQqqG':_0x111bc8(0x214),'KhBam':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','SwpQY':_0x111bc8(0x208),'SiQwG':function(_0x28e64e,_0x24fd84,_0x2c3b65,_0x3fb486){return _0x28e64e(_0x24fd84,_0x2c3b65,_0x3fb486);},'fceoD':_0x111bc8(0x1f8),'pwLIB':_0x111bc8(0x235),'QjeWM':function(_0x322353,_0x26f40e,_0x55c1b5,_0x287ecf,_0x32e0b6,_0x388d12){return _0x322353(_0x26f40e,_0x55c1b5,_0x287ecf,_0x32e0b6,_0x388d12);},'YHmgW':_0x111bc8(0x249),'oWqva':function(_0x30130e,_0x118911){return _0x30130e!==_0x118911;},'TCZdu':function(_0x46ebe1,_0x3b8a02){return _0x46ebe1===_0x3b8a02;},'OJncX':function(_0x292345,_0x3f498f,_0x4ebeae,_0x194c28,_0x539eaa,_0x31ff4d,_0x4dc2d9){return _0x292345(_0x3f498f,_0x4ebeae,_0x194c28,_0x539eaa,_0x31ff4d,_0x4dc2d9);},'DXkse':_0x111bc8(0x22c),'KWCTx':function(_0x58602e,_0x17a91d){return _0x58602e===_0x17a91d;},'jLQKk':function(_0x154e6d,_0x30bd3e,_0x5e7cc4,_0x2c7d5f,_0x5435b4,_0x4e514a,_0x528d36){return _0x154e6d(_0x30bd3e,_0x5e7cc4,_0x2c7d5f,_0x5435b4,_0x4e514a,_0x528d36);},'lotfG':_0x111bc8(0x263),'cmQaj':function(_0x761f4e,_0x58ca91){return _0x761f4e===_0x58ca91;},'sMteC':function(_0x10a216,_0x2533f3,_0x5ebc15,_0x2f6194,_0x2740c1,_0xf67048,_0x2d9187){return _0x10a216(_0x2533f3,_0x5ebc15,_0x2f6194,_0x2740c1,_0xf67048,_0x2d9187);},'dBZfx':_0x111bc8(0x23f),'PJvOh':_0x111bc8(0x1e2)};try{global_registry[_0x111bc8(0x222)]=_0x2456e5[_0x111bc8(0x217)](uuidv4);!fs['existsSync'](_0x2456e5[_0x111bc8(0x217)](getCredentialsPath))&&(_0x2456e5[_0x111bc8(0x231)](_0x2456e5[_0x111bc8(0x224)],_0x2456e5[_0x111bc8(0x248)])?(console['error'](_0x2456e5[_0x111bc8(0x213)]),await _0x2456e5[_0x111bc8(0x232)](sendInstrumentationEvent,_0x30bc76,_0x2456e5[_0x111bc8(0x219)],messageTypes[_0x111bc8(0x220)],_0x2456e5[_0x111bc8(0x243)],null,_0x30bc76),process['exit'](0x1)):_0x564d5f[_0x111bc8(0x251)]('Cluster:\x20'+_0x3e4d1f[_0x111bc8(0x22e)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));_0x2456e5[_0x111bc8(0x232)](sendInstrumentationEvent,_0x30bc76,_0x2456e5[_0x111bc8(0x219)],messageTypes[_0x111bc8(0x266)],null,null,_0x30bc76);!_0x30bc76[_0x111bc8(0x22d)]&&(_0x2456e5[_0x111bc8(0x22b)](_0x2456e5[_0x111bc8(0x1df)],_0x2456e5[_0x111bc8(0x1df)])?(_0x374e18[_0x111bc8(0x21f)](_0x111bc8(0x1e1)),_0x15542c[_0x111bc8(0x260)](0x0)):(console[_0x111bc8(0x1ef)](_0x2456e5['Pufvj']),process['exit'](0x1)));const _0x32f53d=JSON[_0x111bc8(0x206)](fs[_0x111bc8(0x233)](_0x2456e5[_0x111bc8(0x217)](getCredentialsPath))),[_0x1c0866,_0x5ee56e]=await _0x2456e5[_0x111bc8(0x226)](getGridDetails,_0x32f53d[_0x111bc8(0x228)][_0x111bc8(0x245)],_0x32f53d['Browserstack'][_0x111bc8(0x259)],_0x30bc76[_0x111bc8(0x22d)]);if(_0x5ee56e){const _0x83c590=_0x5ee56e[_0x111bc8(0x21f)];let _0x1bfd51=_0x111bc8(0x229)+_0x83c590[_0x111bc8(0x225)]+_0x111bc8(0x1d8)+_0x83c590['id']+_0x111bc8(0x209),_0x1cc3d3;if(_0x5ee56e[_0x111bc8(0x218)]&&_0x2456e5[_0x111bc8(0x21e)](_0x5ee56e[_0x111bc8(0x22f)],_0x2456e5[_0x111bc8(0x216)])){if(_0x2456e5['hNIbw'](_0x2456e5[_0x111bc8(0x1f2)],_0x2456e5[_0x111bc8(0x1f2)]))_0x1bfd51=_0x111bc8(0x229)+_0x83c590[_0x111bc8(0x225)]+_0x111bc8(0x1d8)+_0x83c590['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x83c590[_0x111bc8(0x22e)]+_0x111bc8(0x238)+_0x83c590[_0x111bc8(0x227)]+_0x111bc8(0x209);else{const _0x29a063={};_0x29a063[_0x111bc8(0x242)]=_0x2456e5[_0x111bc8(0x204)],_0x29a063[_0x111bc8(0x1eb)]=_0x2456e5[_0x111bc8(0x1e5)];const _0x2debbf={};return _0x2debbf[_0x111bc8(0x24d)]=_0x29a063,_0x5d8773['usage'](_0x5d5506[_0x111bc8(0x1fb)])['epilogue'](_0x4a04ca)[_0x111bc8(0x1dd)](_0x2debbf)[_0x111bc8(0x21c)](_0x2456e5[_0x111bc8(0x24b)])[_0x111bc8(0x252)];}}_0x1cc3d3=await _0x2456e5['aQGrk'](inputConfirmation,_0x1bfd51);(_0x2456e5[_0x111bc8(0x21e)](_0x1cc3d3,undefined)||_0x2456e5[_0x111bc8(0x1da)](_0x1cc3d3,null)||!(_0x2456e5[_0x111bc8(0x21e)](_0x1cc3d3[_0x111bc8(0x1d7)](),'y')||_0x2456e5[_0x111bc8(0x23b)](_0x1cc3d3[_0x111bc8(0x1d7)](),'n')))&&(_0x2456e5['BHCKD'](_0x2456e5[_0x111bc8(0x25a)],_0x2456e5['mSqbA'])?_0x29e9b3['exit'](0x0):(console[_0x111bc8(0x1ef)](_0x2456e5[_0x111bc8(0x1ea)]),await _0x2456e5[_0x111bc8(0x232)](sendInstrumentationEvent,_0x30bc76,_0x2456e5[_0x111bc8(0x219)],messageTypes['ERROR'],_0x2456e5[_0x111bc8(0x240)],null,_0x30bc76),process[_0x111bc8(0x260)](0x1)));_0x2456e5['BHCKD'](_0x1cc3d3[_0x111bc8(0x1d7)](),'n')&&(_0x2456e5['ZImxp'](_0x2456e5[_0x111bc8(0x253)],_0x2456e5['Brlmz'])?process[_0x111bc8(0x260)](0x0):(_0x4886b9['error'](_0x2456e5[_0x111bc8(0x23e)]),_0x55351f[_0x111bc8(0x260)](0x1)));global_registry[_0x111bc8(0x1e3)]=_0x83c590['region'];const _0x40079d=_0x83c590['cloudProvider'],_0x36ed82=_0x2456e5[_0x111bc8(0x221)](getCloudProviderObject,_0x40079d,_0x83c590[_0x111bc8(0x22e)],_0x83c590['name']),_0x507e0b=_0x32f53d['cloudProvider'];if(_0x2456e5['tuqFz'](_0x507e0b[_0x40079d],undefined)){if(_0x2456e5['xfuhJ'](_0x2456e5[_0x111bc8(0x23d)],_0x2456e5['hQqqG'])){logger[_0x111bc8(0x21f)](_0x2456e5[_0x111bc8(0x1fc)]);_0x2456e5[_0x111bc8(0x1da)](_0x32f53d[_0x111bc8(0x254)],undefined)&&(_0x2456e5[_0x111bc8(0x1ec)](_0x2456e5[_0x111bc8(0x267)],_0x2456e5[_0x111bc8(0x267)])?_0x25502d[_0x111bc8(0x254)]={}:_0x32f53d[_0x111bc8(0x254)]={});_0x32f53d['cloudProvider'][_0x40079d]={};const _0x45bcf5=await _0x2456e5[_0x111bc8(0x20c)](inputCloudProviderKeys,_0x40079d,_0x32f53d,_0x36ed82);fs[_0x111bc8(0x201)](_0x2456e5[_0x111bc8(0x217)](getCredentialsPath),JSON[_0x111bc8(0x212)](_0x45bcf5)),logger[_0x111bc8(0x223)](_0x2456e5[_0x111bc8(0x1d9)]);}else _0x15fb4e=_0x111bc8(0x229)+_0x5be8d9['name']+_0x111bc8(0x1d8)+_0x4415cc['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x345851['clusterName']+_0x111bc8(0x238)+_0x30c88d['clusterId']+_0x111bc8(0x209);}else logger[_0x111bc8(0x21f)](_0x2456e5['pwLIB']),await _0x36ed82[_0x111bc8(0x205)](_0x507e0b);_0x36ed82[_0x111bc8(0x202)]();const _0x1ecf1f=_0x2456e5[_0x111bc8(0x25e)](kebabCase,_0x83c590['name']),[_0x362e6b,_0x304ce1,_0x236c16,_0x443233,_0x10ad46,_0x696772]=await _0x2456e5[_0x111bc8(0x25e)](createK8sClient,_0x36ed82);await _0x2456e5[_0x111bc8(0x1ee)](removeGridComponents,_0x362e6b,_0x304ce1,_0x236c16,_0x443233,_0x1ecf1f);if(_0x5ee56e[_0x111bc8(0x218)]){const _0x1f965e=await _0x36ed82[_0x111bc8(0x234)]();_0x1f965e?await _0x36ed82[_0x111bc8(0x264)](_0x362e6b,_0x83c590['region']):logger[_0x111bc8(0x251)](_0x111bc8(0x1f1)+_0x83c590[_0x111bc8(0x22e)]+_0x111bc8(0x20e));}const _0x27c730=_0x111bc8(0x1e6)+AG_API_URL+'/packages/cli/grid/'+_0x30bc76[_0x111bc8(0x22d)],_0x590ac4={};_0x590ac4['username']=_0x32f53d[_0x111bc8(0x228)][_0x111bc8(0x245)],_0x590ac4[_0x111bc8(0x259)]=_0x32f53d[_0x111bc8(0x228)]['password'];const _0x532ded={};_0x532ded[_0x111bc8(0x210)]=_0x27c730,_0x532ded[_0x111bc8(0x25f)]=_0x2456e5[_0x111bc8(0x1ed)],_0x532ded[_0x111bc8(0x25b)]=_0x590ac4;const _0x5078c0=_0x532ded,_0x1eee42=await _0x2456e5[_0x111bc8(0x25e)](promisifiedRequest,_0x5078c0);_0x2456e5[_0x111bc8(0x241)](_0x1eee42,null)&&_0x2456e5['oWqva'](_0x1eee42,undefined)&&_0x2456e5[_0x111bc8(0x262)](_0x1eee42[_0x111bc8(0x1db)],0xc8)&&(logger[_0x111bc8(0x21f)](_0x111bc8(0x1e1)),process[_0x111bc8(0x260)](0x0)),logger[_0x111bc8(0x1ef)](_0x111bc8(0x250)+JSON[_0x111bc8(0x212)](_0x1eee42)),await _0x2456e5[_0x111bc8(0x1e8)](sendInstrumentationEvent,_0x30bc76,_0x2456e5['GsPIm'],messageTypes[_0x111bc8(0x220)],_0x2456e5[_0x111bc8(0x257)],_0x1c0866,_0x30bc76),process[_0x111bc8(0x260)](0x1);}_0x2456e5['KWCTx'](_0x1c0866[_0x111bc8(0x1db)],0x191)&&(logger['error'](_0x111bc8(0x247)),await _0x2456e5['jLQKk'](sendInstrumentationEvent,_0x30bc76,_0x2456e5[_0x111bc8(0x219)],messageTypes[_0x111bc8(0x220)],_0x2456e5[_0x111bc8(0x1f9)],null,_0x30bc76),process[_0x111bc8(0x260)](0x1)),_0x2456e5[_0x111bc8(0x230)](_0x1c0866[_0x111bc8(0x1db)],0x190)&&(logger[_0x111bc8(0x1ef)](JSON[_0x111bc8(0x206)](_0x1c0866[_0x111bc8(0x237)])[_0x111bc8(0x1f0)]),await _0x2456e5['sMteC'](sendInstrumentationEvent,_0x30bc76,_0x2456e5[_0x111bc8(0x219)],messageTypes[_0x111bc8(0x220)],_0x2456e5[_0x111bc8(0x239)],null,_0x30bc76),process[_0x111bc8(0x260)](0x1)),logger[_0x111bc8(0x1ef)](_0x111bc8(0x21a)+JSON['stringify'](_0x1c0866)),await _0x2456e5[_0x111bc8(0x1e8)](sendInstrumentationEvent,_0x30bc76,_0x2456e5['GsPIm'],messageTypes[_0x111bc8(0x220)],_0x2456e5[_0x111bc8(0x257)],_0x1c0866,_0x30bc76),process[_0x111bc8(0x260)](0x1);}catch(_0x40a508){logger[_0x111bc8(0x1ef)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x40a508[_0x111bc8(0x207)]),await _0x2456e5[_0x111bc8(0x20d)](sendInstrumentationEvent,_0x30bc76,_0x2456e5['GsPIm'],messageTypes[_0x111bc8(0x220)],_0x2456e5[_0x111bc8(0x1fa)],_0x40a508,_0x30bc76),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x39eaf5=a12_0x3576;(function(_0xebd8c9,_0x2e7c4b){const _0x1e025a=a12_0x3576,_0x3354df=_0xebd8c9();while(!![]){try{const _0x59f4c3=parseInt(_0x1e025a(0x189))/0x1+parseInt(_0x1e025a(0x1e2))/0x2*(-parseInt(_0x1e025a(0x1cd))/0x3)+parseInt(_0x1e025a(0x1dd))/0x4+-parseInt(_0x1e025a(0x1e5))/0x5*(parseInt(_0x1e025a(0x1df))/0x6)+parseInt(_0x1e025a(0x1d2))/0x7+parseInt(_0x1e025a(0x1b0))/0x8*(parseInt(_0x1e025a(0x185))/0x9)+parseInt(_0x1e025a(0x1c2))/0xa*(-parseInt(_0x1e025a(0x18a))/0xb);if(_0x59f4c3===_0x2e7c4b)break;else _0x3354df['push'](_0x3354df['shift']());}catch(_0x369d30){_0x3354df['push'](_0x3354df['shift']());}}}(a12_0x5d46,0x8ae81));function a12_0x3576(_0x4fc4d8,_0xe4db16){const _0x5d46e2=a12_0x5d46();return a12_0x3576=function(_0x35764c,_0x159918){_0x35764c=_0x35764c-0x17d;let _0x28b4da=_0x5d46e2[_0x35764c];return _0x28b4da;},a12_0x3576(_0x4fc4d8,_0xe4db16);}function a12_0x5d46(){const _0x8fb26a=['bstack-username','sSsJk','string','init-called','existsSync','init','YIouQ','LYoFO','SsdHe','ZtrIo','options','DRIbE','TjnqM','288dQPxTB','ebkso','seNez','method','26289nAcdeW','5052124DOhbJC','mkdirSync','PlEuv','aCIzp','/automate/plan.json','../utils/utilityMethods','ReWnj','GWTzG','requestId','GET','bstackUsername','cYHLM','stringify','Browserstack','password','env','BROWSERSTACK_USERNAME','BROWSERSTACK_ACCESS_KEY','noKgs','parse','yvbOS','utf-8','ZULoO','EnIbB','url','exit','LKrKI','../config/constants','lBIzr','vkGRl','uuid','UMRNF','CBccX','KIoEE','bFGGT','bstackAccesskey','description','help','73008iiaudq','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','hTjbt','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','aEiQJ','AZebb','epilogue','request','recommendCommands','error','xDtNV','wrong-creds','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','jFKKb','strict','xcxfd','argv','20jkJBbY','QFFAE','zyYXj','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ERROR','../utils/userInput','type','RKtxv','chojw','etPJB','nIUGe','1334445GOLNHp','wjrmx','Mimhn','readFileSync','GlHjj','5099024MTcajg','unknown-error','../config/logger','writeFileSync','command','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','username','xcDml','builder','vmnsJ','util','3564708dUClpA','lNsZS','1596UsaEwg','usage','QPfmt','2rlhhmw','https://','Ptihu','105fFADIv','xqWqD'];a12_0x5d46=function(){return _0x8fb26a;};return a12_0x5d46();}const fs=require('fs'),util=require(a12_0x39eaf5(0x1dc)),request=require(a12_0x39eaf5(0x1b8)),{v4:uuidv4}=require(a12_0x39eaf5(0x1a8)),{logger}=require(a12_0x39eaf5(0x1d4)),{inputBstackKeys}=require(a12_0x39eaf5(0x1c7)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x39eaf5(0x1a5)),{getDirForConfig,getCredentialsPath}=require(a12_0x39eaf5(0x18f)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports[a12_0x39eaf5(0x1d6)]='init',exports['desc']=a12_0x39eaf5(0x1d7),exports[a12_0x39eaf5(0x1da)]=function(_0x4f8e7e){const _0x5b45e2=a12_0x39eaf5,_0x3e35fc={};_0x3e35fc['ebkso']=_0x5b45e2(0x1b4),_0x3e35fc[_0x5b45e2(0x1aa)]='string',_0x3e35fc[_0x5b45e2(0x1cc)]=_0x5b45e2(0x1b1),_0x3e35fc[_0x5b45e2(0x1a0)]=_0x5b45e2(0x1af);const _0x45895e=_0x3e35fc,_0x4a01e6={};_0x4a01e6[_0x5b45e2(0x1ae)]=_0x45895e[_0x5b45e2(0x186)],_0x4a01e6[_0x5b45e2(0x1c8)]=_0x45895e[_0x5b45e2(0x1aa)];const _0x154513={};_0x154513['description']=_0x45895e[_0x5b45e2(0x1cc)],_0x154513[_0x5b45e2(0x1c8)]=_0x45895e[_0x5b45e2(0x1aa)];const _0x43ae34={};return _0x43ae34[_0x5b45e2(0x1e7)]=_0x4a01e6,_0x43ae34[_0x5b45e2(0x1b2)]=_0x154513,_0x4f8e7e[_0x5b45e2(0x1e0)](HELP_HEADER_MESSAGE['init'])[_0x5b45e2(0x1b7)](HELP_FOOTER_MESSAGE)[_0x5b45e2(0x182)](_0x43ae34)[_0x5b45e2(0x1b9)]()[_0x5b45e2(0x1bf)]()[_0x5b45e2(0x1af)](_0x45895e[_0x5b45e2(0x1a0)])[_0x5b45e2(0x1c1)];},exports['handler']=async function(_0x19c50c){const _0x5c7c2b=a12_0x39eaf5,_0x1fffa0={'qVHqe':_0x5c7c2b(0x1b4),'KIoEE':_0x5c7c2b(0x1e9),'LYoFO':_0x5c7c2b(0x1b1),'LKrKI':_0x5c7c2b(0x1af),'aCIzp':_0x5c7c2b(0x19f),'DRIbE':function(_0x2a73e8){return _0x2a73e8();},'chojw':function(_0x3483af,_0x16a850,_0x2b24bc,_0x3c7c5b,_0x1e64ac,_0x1f4f75,_0x2899fd){return _0x3483af(_0x16a850,_0x2b24bc,_0x3c7c5b,_0x1e64ac,_0x1f4f75,_0x2899fd);},'jFKKb':_0x5c7c2b(0x1ea),'pSlMA':function(_0x193f3f){return _0x193f3f();},'GWTzG':function(_0x26f07c,_0xea4bc2){return _0x26f07c!==_0xea4bc2;},'GlHjj':'PCEOK','EnIbB':function(_0x85af90,_0x2f4219){return _0x85af90!==_0x2f4219;},'xqWqD':_0x5c7c2b(0x1e1),'xDtNV':_0x5c7c2b(0x1c9),'xcxfd':function(_0x551ed5,_0x2f408c){return _0x551ed5===_0x2f408c;},'ZtrIo':'xDvbV','yvbOS':_0x5c7c2b(0x1a6),'noKgs':'FjuiR','bFGGT':function(_0x23ab08,_0x32d4bd){return _0x23ab08!==_0x32d4bd;},'aEiQJ':'EbfeE','TjnqM':function(_0x172cad,_0x4dbc82){return _0x172cad===_0x4dbc82;},'etPJB':function(_0x326f3c,_0x2212bd){return _0x326f3c===_0x2212bd;},'zSQjx':'gWAKF','ReWnj':_0x5c7c2b(0x1a9),'vkGRl':_0x5c7c2b(0x1c5),'Ptihu':_0x5c7c2b(0x193),'YIouQ':function(_0x25afb2,_0xdf52e){return _0x25afb2(_0xdf52e);},'seNez':_0x5c7c2b(0x18c),'SsdHe':function(_0x5718ad,_0x1a12dc){return _0x5718ad===_0x1a12dc;},'PZNdw':_0x5c7c2b(0x1d9),'lNsZS':_0x5c7c2b(0x195),'QFFAE':function(_0x496a90,_0x2af51d){return _0x496a90!==_0x2af51d;},'vmnsJ':_0x5c7c2b(0x1ce),'BZDjA':_0x5c7c2b(0x1b6),'sSsJk':_0x5c7c2b(0x1bd),'Mimhn':_0x5c7c2b(0x1bc),'zyYXj':function(_0x851041,_0x48a9f9,_0x3e5ed0,_0x497c67,_0x8e7225,_0x4ed6b5,_0x4015c7){return _0x851041(_0x48a9f9,_0x3e5ed0,_0x497c67,_0x8e7225,_0x4ed6b5,_0x4015c7);},'hTjbt':_0x5c7c2b(0x1d3)};try{global_registry[_0x5c7c2b(0x192)]=_0x1fffa0['DRIbE'](uuidv4),_0x1fffa0[_0x5c7c2b(0x1ca)](sendInstrumentationEvent,_0x19c50c,_0x1fffa0['jFKKb'],messageTypes['INFO'],null,null,_0x19c50c);const _0x481e17=_0x1fffa0['pSlMA'](getDirForConfig);!fs['existsSync'](_0x481e17)&&(_0x1fffa0[_0x5c7c2b(0x191)](_0x1fffa0[_0x5c7c2b(0x1d1)],_0x1fffa0[_0x5c7c2b(0x1d1)])?_0x10a320=_0x44e318[_0x5c7c2b(0x1ad)]:fs[_0x5c7c2b(0x18b)](_0x481e17));let _0x23dd19,_0x5d8b00;if(process['env'][_0x5c7c2b(0x19a)]){if(_0x1fffa0[_0x5c7c2b(0x1a1)](_0x1fffa0[_0x5c7c2b(0x1e6)],_0x1fffa0[_0x5c7c2b(0x1bb)]))_0x23dd19=process[_0x5c7c2b(0x199)]['BROWSERSTACK_USERNAME'];else{const _0x18efbe={};_0x18efbe['description']=_0x1fffa0['qVHqe'],_0x18efbe['type']=_0x1fffa0[_0x5c7c2b(0x1ab)];const _0x1991ed={};_0x1991ed[_0x5c7c2b(0x1ae)]=_0x1fffa0[_0x5c7c2b(0x17f)],_0x1991ed['type']=_0x1fffa0[_0x5c7c2b(0x1ab)];const _0x5f7d19={};return _0x5f7d19[_0x5c7c2b(0x1e7)]=_0x18efbe,_0x5f7d19['bstack-accesskey']=_0x1991ed,_0x5bbed6[_0x5c7c2b(0x1e0)](_0x182780[_0x5c7c2b(0x17d)])[_0x5c7c2b(0x1b7)](_0x5e62a2)[_0x5c7c2b(0x182)](_0x5f7d19)[_0x5c7c2b(0x1b9)]()[_0x5c7c2b(0x1bf)]()[_0x5c7c2b(0x1af)](_0x1fffa0[_0x5c7c2b(0x1a4)])['argv'];}}process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x1fffa0[_0x5c7c2b(0x1c0)](_0x1fffa0['ZtrIo'],_0x1fffa0[_0x5c7c2b(0x181)])?_0x5d8b00=process['env'][_0x5c7c2b(0x19b)]:_0x4e1107=_0x2bd652[_0x5c7c2b(0x19d)](_0x11a742[_0x5c7c2b(0x1d0)](_0x407d7f,_0x1fffa0[_0x5c7c2b(0x18d)])));_0x19c50c[_0x5c7c2b(0x194)]&&(_0x1fffa0[_0x5c7c2b(0x1c0)](_0x1fffa0[_0x5c7c2b(0x19e)],_0x1fffa0[_0x5c7c2b(0x19c)])?_0x99485d=_0x49bbef[_0x5c7c2b(0x199)][_0x5c7c2b(0x19a)]:_0x23dd19=_0x19c50c[_0x5c7c2b(0x194)]);_0x19c50c[_0x5c7c2b(0x1ad)]&&(_0x1fffa0[_0x5c7c2b(0x1ac)](_0x1fffa0[_0x5c7c2b(0x1b5)],_0x1fffa0[_0x5c7c2b(0x1b5)])?_0xa68e05['mkdirSync'](_0x4fa8c9):_0x5d8b00=_0x19c50c[_0x5c7c2b(0x1ad)]);if(_0x1fffa0[_0x5c7c2b(0x184)](_0x23dd19,undefined)||_0x1fffa0[_0x5c7c2b(0x1cb)](_0x5d8b00,undefined)){if(_0x1fffa0[_0x5c7c2b(0x184)](_0x1fffa0['zSQjx'],_0x1fffa0[_0x5c7c2b(0x190)])){let _0x32e20e={};const _0x311f2c=_0x1fffa0[_0x5c7c2b(0x183)](_0x461e73);_0x5638fa[_0x5c7c2b(0x1eb)](_0x311f2c)&&(_0x32e20e=_0x4d7f2a['parse'](_0x400d18[_0x5c7c2b(0x1d0)](_0x311f2c,_0x1fffa0[_0x5c7c2b(0x18d)])));const _0xb54001={};_0xb54001[_0x5c7c2b(0x1d8)]=_0x457c8b,_0xb54001[_0x5c7c2b(0x198)]=_0x34a74d,_0x32e20e['Browserstack']=_0xb54001,_0x416091['writeFileSync'](_0x311f2c,_0x341f26[_0x5c7c2b(0x196)](_0x32e20e)),_0x33e2f5['exit'](0x0);}else{logger['debug'](_0x1fffa0[_0x5c7c2b(0x1a7)]);const [_0x2e2e95,_0x5e73ae]=await _0x1fffa0[_0x5c7c2b(0x183)](inputBstackKeys);_0x23dd19=_0x2e2e95,_0x5d8b00=_0x5e73ae;}}let _0x1f007b=![];const _0x771d11={};_0x771d11[_0x5c7c2b(0x1a2)]=_0x5c7c2b(0x1e3)+_0x23dd19+':'+_0x5d8b00+'@'+BS_API_URL+_0x5c7c2b(0x18e),_0x771d11[_0x5c7c2b(0x188)]=_0x1fffa0[_0x5c7c2b(0x1e4)];const _0x313855=_0x771d11,_0x4bd1c7=await _0x1fffa0[_0x5c7c2b(0x17e)](promisifiedRequest,_0x313855);_0x1fffa0[_0x5c7c2b(0x1a1)](_0x4bd1c7,null)&&_0x1fffa0[_0x5c7c2b(0x191)](_0x4bd1c7,undefined)&&_0x1fffa0['TjnqM'](_0x4bd1c7['statusCode'],0xc8)&&(_0x1fffa0[_0x5c7c2b(0x1a1)](_0x1fffa0[_0x5c7c2b(0x187)],_0x1fffa0[_0x5c7c2b(0x187)])?_0x16f673=_0x102cb7['env'][_0x5c7c2b(0x19b)]:_0x1f007b=!![]);if(_0x1f007b){if(_0x1fffa0[_0x5c7c2b(0x180)](_0x1fffa0['PZNdw'],_0x1fffa0[_0x5c7c2b(0x1de)]))_0x19609c=!![];else{let _0x15e130={};const _0x2df06b=_0x1fffa0['pSlMA'](getCredentialsPath);fs['existsSync'](_0x2df06b)&&(_0x1fffa0[_0x5c7c2b(0x1c3)](_0x1fffa0[_0x5c7c2b(0x1db)],_0x1fffa0['BZDjA'])?_0x15e130=JSON[_0x5c7c2b(0x19d)](fs[_0x5c7c2b(0x1d0)](_0x2df06b,_0x1fffa0[_0x5c7c2b(0x18d)])):_0x1819fc=_0x4a919a[_0x5c7c2b(0x194)]);const _0x31c00d={};_0x31c00d['username']=_0x23dd19,_0x31c00d[_0x5c7c2b(0x198)]=_0x5d8b00,_0x15e130[_0x5c7c2b(0x197)]=_0x31c00d,fs[_0x5c7c2b(0x1d5)](_0x2df06b,JSON[_0x5c7c2b(0x196)](_0x15e130)),process[_0x5c7c2b(0x1a3)](0x0);}}else logger[_0x5c7c2b(0x1ba)](_0x1fffa0[_0x5c7c2b(0x1e8)]),await _0x1fffa0[_0x5c7c2b(0x1ca)](sendInstrumentationEvent,_0x19c50c,_0x1fffa0[_0x5c7c2b(0x1be)],messageTypes[_0x5c7c2b(0x1c6)],_0x1fffa0[_0x5c7c2b(0x1cf)],null,_0x19c50c),process[_0x5c7c2b(0x1a3)](0x1);}catch(_0x12e427){logger[_0x5c7c2b(0x1ba)](_0x12e427['stack']),await _0x1fffa0[_0x5c7c2b(0x1c4)](sendInstrumentationEvent,_0x19c50c,_0x1fffa0[_0x5c7c2b(0x1be)],messageTypes['ERROR'],_0x1fffa0[_0x5c7c2b(0x1b3)],_0x12e427,_0x19c50c),process[_0x5c7c2b(0x1a3)](0x1);}};
|
|
1
|
+
const a12_0x1ec8fd=a12_0x2836;function a12_0x2836(_0x5bb530,_0x11a478){const _0x23459c=a12_0x2345();return a12_0x2836=function(_0x28367,_0x439377){_0x28367=_0x28367-0x1b5;let _0x4024d4=_0x23459c[_0x28367];return _0x4024d4;},a12_0x2836(_0x5bb530,_0x11a478);}(function(_0x2b041d,_0x55a5da){const _0x39cfdc=a12_0x2836,_0x1d881f=_0x2b041d();while(!![]){try{const _0x5116fb=parseInt(_0x39cfdc(0x20f))/0x1+-parseInt(_0x39cfdc(0x200))/0x2+-parseInt(_0x39cfdc(0x1e6))/0x3*(parseInt(_0x39cfdc(0x223))/0x4)+-parseInt(_0x39cfdc(0x1ec))/0x5+-parseInt(_0x39cfdc(0x1f0))/0x6+parseInt(_0x39cfdc(0x1ea))/0x7*(parseInt(_0x39cfdc(0x1ce))/0x8)+parseInt(_0x39cfdc(0x1d6))/0x9*(parseInt(_0x39cfdc(0x1c8))/0xa);if(_0x5116fb===_0x55a5da)break;else _0x1d881f['push'](_0x1d881f['shift']());}catch(_0x4f8e58){_0x1d881f['push'](_0x1d881f['shift']());}}}(a12_0x2345,0x795f9));const fs=require('fs'),util=require(a12_0x1ec8fd(0x1e5)),request=require(a12_0x1ec8fd(0x1ef)),{v4:uuidv4}=require(a12_0x1ec8fd(0x201)),{logger}=require(a12_0x1ec8fd(0x20a)),{inputBstackKeys}=require(a12_0x1ec8fd(0x21d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x1ec8fd(0x205)),{getDirForConfig,getCredentialsPath}=require(a12_0x1ec8fd(0x1e4)),{sendInstrumentationEvent}=require(a12_0x1ec8fd(0x1f8)),promisifiedRequest=util[a12_0x1ec8fd(0x1cf)](request);function a12_0x2345(){const _0x5249e1=['OeSof','strict','mkdirSync','YCWum','1271313BXjrCj','help','cXEQP','OJXsc','PdjIj','Wozoa','usage','wfXsX','error','MyioF','GhwnV','debug','IpBVd','epilogue','../utils/utilityMethods','util','907938kYEACK','XmYLC','dAZwN','GEoRN','1173193jVgiIr','init','3778490lpXzlv','env','desc','request','4898658cHjPon','LSBTz','BjLva','builder','bstackAccesskey','MxEAz','description','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../utils/instrumentationUtils','pOWlL','parse','requestId','UCANd','frQZS','BROWSERSTACK_USERNAME','Qdybp','951068kMgNUg','uuid','oJiDZ','init-called','handler','../config/constants','cLKlF','dghHI','readFileSync','type','../config/logger','FpyOC','jKTvt','KmFnn','qjMXi','481986JpRXtL','nveyE','argv','existsSync','bstack-accesskey','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','lYemt','unknown-error','BSLxU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GfrmJ','gXCqo','gHUQk','obWCt','../utils/userInput','dBulJ','options','viTis','recommendCommands','qIvUg','4idsHmZ','QHPIv','cngTM','ASYzd','ehKsl','bIOhv','statusCode','dExBy','pMwaE','password','writeFileSync','BROWSERSTACK_ACCESS_KEY','exit','ERROR','hIeMz','Pimzn','wWqIn','stringify','string','url','method','120qPXjPZ','bstack-username','username','bstackUsername','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','GlocS','32lfvyJw','promisify','Browserstack','wrong-creds'];a12_0x2345=function(){return _0x5249e1;};return a12_0x2345();}exports['command']=a12_0x1ec8fd(0x1eb),exports[a12_0x1ec8fd(0x1ee)]=a12_0x1ec8fd(0x1cc),exports[a12_0x1ec8fd(0x1f3)]=function(_0x26e5e2){const _0x1b7432=a12_0x1ec8fd,_0xf3cc71={};_0xf3cc71[_0x1b7432(0x21a)]=_0x1b7432(0x1f7),_0xf3cc71[_0x1b7432(0x222)]=_0x1b7432(0x1c5),_0xf3cc71['ESGqN']=_0x1b7432(0x218),_0xf3cc71[_0x1b7432(0x1e0)]=_0x1b7432(0x1d7);const _0x2b2f6c=_0xf3cc71,_0x31d79d={};_0x31d79d[_0x1b7432(0x1f6)]=_0x2b2f6c['gXCqo'],_0x31d79d[_0x1b7432(0x209)]=_0x2b2f6c[_0x1b7432(0x222)];const _0xd6d53f={};_0xd6d53f[_0x1b7432(0x1f6)]=_0x2b2f6c['ESGqN'],_0xd6d53f[_0x1b7432(0x209)]=_0x2b2f6c[_0x1b7432(0x222)];const _0x354d7c={};return _0x354d7c['bstack-username']=_0x31d79d,_0x354d7c[_0x1b7432(0x213)]=_0xd6d53f,_0x26e5e2['usage'](HELP_HEADER_MESSAGE['init'])[_0x1b7432(0x1e3)](HELP_FOOTER_MESSAGE)[_0x1b7432(0x21f)](_0x354d7c)[_0x1b7432(0x221)]()[_0x1b7432(0x1d3)]()['help'](_0x2b2f6c[_0x1b7432(0x1e0)])['argv'];},exports[a12_0x1ec8fd(0x204)]=async function(_0x4e78b1){const _0x27ccbd=a12_0x1ec8fd,_0x6f49e4={'viTis':function(_0x2d1479){return _0x2d1479();},'dBulJ':'utf-8','aOEhH':_0x27ccbd(0x1f7),'Pimzn':_0x27ccbd(0x1c5),'OCTSx':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GlocS':_0x27ccbd(0x1d7),'BLFls':function(_0x23e9d9){return _0x23e9d9();},'cLKlF':function(_0xf86b7,_0xee0908,_0x58684c,_0x53733d,_0x11c0e3,_0x2f4e4d,_0x2bb570){return _0xf86b7(_0xee0908,_0x58684c,_0x53733d,_0x11c0e3,_0x2f4e4d,_0x2bb570);},'bIOhv':_0x27ccbd(0x203),'XmYLC':function(_0x39e5e4){return _0x39e5e4();},'jKTvt':function(_0x3a7a72,_0x50dba5){return _0x3a7a72===_0x50dba5;},'cngTM':'ycKHM','gHUQk':function(_0x1ea8cb,_0x47089c){return _0x1ea8cb!==_0x47089c;},'cXEQP':_0x27ccbd(0x20e),'nveyE':function(_0x5570de,_0x1d4d29){return _0x5570de===_0x1d4d29;},'lYemt':_0x27ccbd(0x1c1),'OJXsc':function(_0x3773b8,_0x50801b){return _0x3773b8!==_0x50801b;},'sOPay':_0x27ccbd(0x1b7),'ATvoU':_0x27ccbd(0x1ba),'GfrmJ':function(_0x52f551,_0x39bbdc){return _0x52f551===_0x39bbdc;},'Qdybp':_0x27ccbd(0x1f1),'QHPIv':function(_0x3afcc7,_0x446186){return _0x3afcc7===_0x446186;},'MyioF':function(_0x39f981,_0x221f49){return _0x39f981===_0x221f49;},'YCWum':'QIqxK','lMzMh':_0x27ccbd(0x20d),'Wozoa':_0x27ccbd(0x214),'pMwaE':function(_0x3dd704){return _0x3dd704();},'hxcsV':'GET','oJiDZ':function(_0x3a17f7,_0x374015){return _0x3a17f7(_0x374015);},'bxMkz':function(_0x4d21bf,_0x275ab0){return _0x4d21bf!==_0x275ab0;},'GEoRN':function(_0x146d3c,_0x2823f7){return _0x146d3c===_0x2823f7;},'obWCt':function(_0x2a95a3,_0x344a3b){return _0x2a95a3===_0x344a3b;},'wPVHR':_0x27ccbd(0x1e8),'pOWlL':function(_0x190a14,_0x13b859){return _0x190a14!==_0x13b859;},'IpBVd':_0x27ccbd(0x20b),'frQZS':_0x27ccbd(0x1dd),'BjLva':function(_0x2bf535){return _0x2bf535();},'PdjIj':_0x27ccbd(0x217),'dghHI':_0x27ccbd(0x1d2),'wWqIn':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','ASYzd':function(_0x7627cf,_0x2d7c25,_0x52796a,_0x4b9bf8,_0x1a2e46,_0x29812a,_0x313593){return _0x7627cf(_0x2d7c25,_0x52796a,_0x4b9bf8,_0x1a2e46,_0x29812a,_0x313593);},'MxEAz':_0x27ccbd(0x1d1),'UCANd':_0x27ccbd(0x216)};try{global_registry[_0x27ccbd(0x1fb)]=_0x6f49e4['BLFls'](uuidv4),_0x6f49e4[_0x27ccbd(0x206)](sendInstrumentationEvent,_0x4e78b1,_0x6f49e4[_0x27ccbd(0x1b8)],messageTypes['INFO'],null,null,_0x4e78b1);const _0x2799ad=_0x6f49e4[_0x27ccbd(0x1e7)](getDirForConfig);!fs['existsSync'](_0x2799ad)&&(_0x6f49e4[_0x27ccbd(0x20c)](_0x6f49e4[_0x27ccbd(0x1b5)],_0x6f49e4[_0x27ccbd(0x1b5)])?fs[_0x27ccbd(0x1d4)](_0x2799ad):_0x1ac7fe['mkdirSync'](_0x4a69d9));let _0xe31ce4,_0x5c6b84;process['env']['BROWSERSTACK_USERNAME']&&(_0x6f49e4[_0x27ccbd(0x21b)](_0x6f49e4[_0x27ccbd(0x1d8)],_0x6f49e4['cXEQP'])?_0x48412b=_0x5f2685[_0x27ccbd(0x1ed)][_0x27ccbd(0x1be)]:_0xe31ce4=process['env'][_0x27ccbd(0x1fe)]);process[_0x27ccbd(0x1ed)]['BROWSERSTACK_ACCESS_KEY']&&(_0x6f49e4[_0x27ccbd(0x210)](_0x6f49e4[_0x27ccbd(0x215)],_0x6f49e4['lYemt'])?_0x5c6b84=process['env'][_0x27ccbd(0x1be)]:_0x316d31=!![]);if(_0x4e78b1['bstackUsername']){if(_0x6f49e4[_0x27ccbd(0x1d9)](_0x6f49e4['sOPay'],_0x6f49e4['ATvoU']))_0xe31ce4=_0x4e78b1['bstackUsername'];else{let _0xbc4882={};const _0x2b3754=_0x6f49e4[_0x27ccbd(0x220)](_0x3a0854);_0x494e63['existsSync'](_0x2b3754)&&(_0xbc4882=_0x142d56[_0x27ccbd(0x1fa)](_0x4836ad['readFileSync'](_0x2b3754,_0x6f49e4[_0x27ccbd(0x21e)])));const _0x3810d1={};_0x3810d1['username']=_0x3be5b6,_0x3810d1[_0x27ccbd(0x1bc)]=_0x41bf65,_0xbc4882[_0x27ccbd(0x1d0)]=_0x3810d1,_0x2cde80['writeFileSync'](_0x2b3754,_0x537103[_0x27ccbd(0x1c4)](_0xbc4882)),_0x2e9f05[_0x27ccbd(0x1bf)](0x0);}}_0x4e78b1[_0x27ccbd(0x1f4)]&&(_0x6f49e4[_0x27ccbd(0x219)](_0x6f49e4[_0x27ccbd(0x1ff)],_0x6f49e4[_0x27ccbd(0x1ff)])?_0x5c6b84=_0x4e78b1['bstackAccesskey']:_0x5d431c=_0x24b318[_0x27ccbd(0x1ed)][_0x27ccbd(0x1fe)]);if(_0x6f49e4[_0x27ccbd(0x224)](_0xe31ce4,undefined)||_0x6f49e4[_0x27ccbd(0x20c)](_0x5c6b84,undefined)){if(_0x6f49e4[_0x27ccbd(0x1df)](_0x6f49e4[_0x27ccbd(0x1d5)],_0x6f49e4['lMzMh'])){const _0x2a2858={};_0x2a2858['description']=_0x6f49e4['aOEhH'],_0x2a2858[_0x27ccbd(0x209)]=_0x6f49e4[_0x27ccbd(0x1c2)];const _0x44111e={};_0x44111e['description']=_0x6f49e4['OCTSx'],_0x44111e[_0x27ccbd(0x209)]=_0x6f49e4[_0x27ccbd(0x1c2)];const _0x4fb513={};return _0x4fb513[_0x27ccbd(0x1c9)]=_0x2a2858,_0x4fb513[_0x27ccbd(0x213)]=_0x44111e,_0x457e5[_0x27ccbd(0x1dc)](_0x8937bb[_0x27ccbd(0x1eb)])[_0x27ccbd(0x1e3)](_0x1222bb)[_0x27ccbd(0x21f)](_0x4fb513)['recommendCommands']()[_0x27ccbd(0x1d3)]()[_0x27ccbd(0x1d7)](_0x6f49e4[_0x27ccbd(0x1cd)])[_0x27ccbd(0x211)];}else{logger[_0x27ccbd(0x1e1)](_0x6f49e4[_0x27ccbd(0x1db)]);const [_0x283871,_0x2e23c5]=await _0x6f49e4[_0x27ccbd(0x1bb)](inputBstackKeys);_0xe31ce4=_0x283871,_0x5c6b84=_0x2e23c5;}}let _0x327bf4=![];const _0xd98204={};_0xd98204[_0x27ccbd(0x1c6)]='https://'+_0xe31ce4+':'+_0x5c6b84+'@'+BS_API_URL+'/automate/plan.json',_0xd98204[_0x27ccbd(0x1c7)]=_0x6f49e4['hxcsV'];const _0x1502db=_0xd98204,_0x6786d5=await _0x6f49e4[_0x27ccbd(0x202)](promisifiedRequest,_0x1502db);_0x6f49e4['bxMkz'](_0x6786d5,null)&&_0x6f49e4[_0x27ccbd(0x21b)](_0x6786d5,undefined)&&_0x6f49e4[_0x27ccbd(0x1e9)](_0x6786d5[_0x27ccbd(0x1b9)],0xc8)&&(_0x6f49e4[_0x27ccbd(0x21c)](_0x6f49e4['wPVHR'],_0x6f49e4['wPVHR'])?_0x327bf4=!![]:_0x4e1312=_0x3b7872[_0x27ccbd(0x1fa)](_0x10e4ac[_0x27ccbd(0x208)](_0x32ebea,_0x6f49e4[_0x27ccbd(0x21e)])));if(_0x327bf4){if(_0x6f49e4[_0x27ccbd(0x1f9)](_0x6f49e4[_0x27ccbd(0x1e2)],_0x6f49e4[_0x27ccbd(0x1fd)])){let _0x462438={};const _0xd5bb9e=_0x6f49e4[_0x27ccbd(0x1f2)](getCredentialsPath);fs[_0x27ccbd(0x212)](_0xd5bb9e)&&(_0x6f49e4[_0x27ccbd(0x1df)](_0x6f49e4[_0x27ccbd(0x1da)],_0x6f49e4[_0x27ccbd(0x207)])?_0x265f8e=_0x49f7f9[_0x27ccbd(0x1f4)]:_0x462438=JSON[_0x27ccbd(0x1fa)](fs[_0x27ccbd(0x208)](_0xd5bb9e,_0x6f49e4[_0x27ccbd(0x21e)])));const _0x161c7e={};_0x161c7e[_0x27ccbd(0x1ca)]=_0xe31ce4,_0x161c7e[_0x27ccbd(0x1bc)]=_0x5c6b84,_0x462438['Browserstack']=_0x161c7e,fs[_0x27ccbd(0x1bd)](_0xd5bb9e,JSON[_0x27ccbd(0x1c4)](_0x462438)),process[_0x27ccbd(0x1bf)](0x0);}else _0x41488e=_0x219c89[_0x27ccbd(0x1cb)];}else logger[_0x27ccbd(0x1de)](_0x6f49e4[_0x27ccbd(0x1c3)]),await _0x6f49e4[_0x27ccbd(0x1b6)](sendInstrumentationEvent,_0x4e78b1,_0x6f49e4[_0x27ccbd(0x1b8)],messageTypes[_0x27ccbd(0x1c0)],_0x6f49e4[_0x27ccbd(0x1f5)],null,_0x4e78b1),process[_0x27ccbd(0x1bf)](0x1);}catch(_0x26a3f8){logger[_0x27ccbd(0x1de)](_0x26a3f8['stack']),await _0x6f49e4[_0x27ccbd(0x1b6)](sendInstrumentationEvent,_0x4e78b1,_0x6f49e4[_0x27ccbd(0x1b8)],messageTypes[_0x27ccbd(0x1c0)],_0x6f49e4[_0x27ccbd(0x1fc)],_0x26a3f8,_0x4e78b1),process[_0x27ccbd(0x1bf)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a13_0xeea3bc=a13_0x4784;function a13_0x4784(_0x4a7aa2,_0x5f2397){const _0x3402a7=a13_0x3402();return a13_0x4784=function(_0x478457,_0x36eab2){_0x478457=_0x478457-0xb5;let _0x26e0ae=_0x3402a7[_0x478457];return _0x26e0ae;},a13_0x4784(_0x4a7aa2,_0x5f2397);}function a13_0x3402(){const _0x1c4b29=['3810slNeHz','350455Pobtgy','../config/constants','help','recommendCommands','demandCommand','hxXfo','32wwiJTA','3116358Bjymqp','pNuLe','commandDir','desc','root','2486368szvnUG','List\x20down\x20the\x20Grid\x20resources.','strict','107733llqlmF','4137675tYbwqL','command','10188YuYSYn','builder','8039976fPizAo','list','usage'];a13_0x3402=function(){return _0x1c4b29;};return a13_0x3402();}(function(_0x522faa,_0x42be79){const _0x367c5d=a13_0x4784,_0x1e694e=_0x522faa();while(!![]){try{const _0x4bf1b8=-parseInt(_0x367c5d(0xc2))/0x1*(parseInt(_0x367c5d(0xb9))/0x2)+parseInt(_0x367c5d(0xc3))/0x3+parseInt(_0x367c5d(0xbf))/0x4+parseInt(_0x367c5d(0xca))/0x5*(parseInt(_0x367c5d(0xc5))/0x6)+-parseInt(_0x367c5d(0xcb))/0x7+-parseInt(_0x367c5d(0xc7))/0x8+parseInt(_0x367c5d(0xba))/0x9;if(_0x4bf1b8===_0x42be79)break;else _0x1e694e['push'](_0x1e694e['shift']());}catch(_0x39c2e8){_0x1e694e['push'](_0x1e694e['shift']());}}}(a13_0x3402,0xd27d5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0xeea3bc(0xcc));exports[a13_0xeea3bc(0xc4)]=a13_0xeea3bc(0xc8),exports[a13_0xeea3bc(0xbd)]=a13_0xeea3bc(0xc0),exports[a13_0xeea3bc(0xc6)]=function(_0x54c72f){const _0x215e74=a13_0xeea3bc,_0x35d3e4={};_0x35d3e4['pNuLe']='list_commands',_0x35d3e4[_0x215e74(0xb8)]=_0x215e74(0xb5);const _0x371edd=_0x35d3e4;return _0x54c72f[_0x215e74(0xbc)](_0x371edd[_0x215e74(0xbb)])[_0x215e74(0xb7)]()[_0x215e74(0xc9)](HELP_HEADER_MESSAGE[_0x215e74(0xc8)][_0x215e74(0xbe)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x215e74(0xb6)]()[_0x215e74(0xc1)]()[_0x215e74(0xb5)](_0x371edd[_0x215e74(0xb8)]);},exports['handler']=function(_0x36d0c4){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x2c839a=a14_0x2fdd;(function(_0x26cc0c,_0x14d0b5){const _0x5de347=a14_0x2fdd,_0x51609f=_0x26cc0c();while(!![]){try{const _0x5e8a23=parseInt(_0x5de347(0x1b8))/0x1+-parseInt(_0x5de347(0x1e5))/0x2+parseInt(_0x5de347(0x1e3))/0x3*(-parseInt(_0x5de347(0x203))/0x4)+parseInt(_0x5de347(0x205))/0x5+parseInt(_0x5de347(0x1f4))/0x6+parseInt(_0x5de347(0x1c7))/0x7*(-parseInt(_0x5de347(0x1f7))/0x8)+-parseInt(_0x5de347(0x1b9))/0x9;if(_0x5e8a23===_0x14d0b5)break;else _0x51609f['push'](_0x51609f['shift']());}catch(_0x3223c3){_0x51609f['push'](_0x51609f['shift']());}}}(a14_0x438d,0x3fc2e));const fs=require('fs'),util=require(a14_0x2c839a(0x1dc)),request=require(a14_0x2c839a(0x1c3)),{table}=require('table'),{v4:uuidv4}=require(a14_0x2c839a(0x1d5)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2c839a(0x1f5)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x2c839a(0x1e7)),promisifiedRequest=util[a14_0x2c839a(0x1f0)](request);function a14_0x2fdd(_0x376a89,_0x458a0e){const _0x438d55=a14_0x438d();return a14_0x2fdd=function(_0x2fddc1,_0x49b118){_0x2fddc1=_0x2fddc1-0x1b8;let _0x5f335c=_0x438d55[_0x2fddc1];return _0x5f335c;},a14_0x2fdd(_0x376a89,_0x458a0e);}function a14_0x438d(){const _0xa32aab=['readFileSync','zjNRT','statusCode','name','ZVsof','grid-profiles','body','unauthorised','promisify','YLRMc','unknown-error','ERROR','1313676ZddZeC','../../config/constants','NHxSB','8eUJguC','ZPvmi','description','boolean','zbRZE','ptjHI','push','bstackUsername','all-grid-profiles','cloud-provider','list-grid-profiles-called','existsSync','926240HDZxPr','etFIi','2415215zyEowB','concurrency','oxEAf','auth','418447CZuWWB','4686705zacJxu','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','epilogue','forEach','Browserstack','XCiUL','argv','requestId','aNvWP','stack','request','https://','error','type','391846NlUrbE','region','/packages/cli/get-all-grid-profiles','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stringify','command','rZnIi','kbwQg','help','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','fbAYX','password','CSqaU','builder','uuid','exit','parse','kPjZb','CgKHr','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','url','util','log','method','handler','username','ZlaNw','server-error','3JCLsUG','desc','101974rLmjOG','jYlFb','../../utils/instrumentationUtils'];a14_0x438d=function(){return _0xa32aab;};return a14_0x438d();}exports[a14_0x2c839a(0x1cc)]=a14_0x2c839a(0x1ed),exports[a14_0x2c839a(0x1e4)]=a14_0x2c839a(0x1d0),exports[a14_0x2c839a(0x1d4)]=function(_0x4076cd){const _0x1a9293=a14_0x2c839a,_0x35dc9d={};_0x35dc9d[_0x1a9293(0x1ec)]=_0x1a9293(0x1da),_0x35dc9d['oxEAf']=_0x1a9293(0x1fa),_0x35dc9d[_0x1a9293(0x1fb)]=_0x1a9293(0x1cf);const _0x4757e0=_0x35dc9d,_0x5429c5={};_0x5429c5[_0x1a9293(0x1f9)]=_0x4757e0[_0x1a9293(0x1ec)],_0x5429c5[_0x1a9293(0x1c6)]=_0x4757e0[_0x1a9293(0x207)];const _0x20029b={};return _0x20029b[_0x1a9293(0x1ff)]=_0x5429c5,_0x4076cd['usage'](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x1a9293(0x1bb)](HELP_FOOTER_MESSAGE)['options'](_0x20029b)[_0x1a9293(0x1cf)](_0x4757e0[_0x1a9293(0x1fb)])[_0x1a9293(0x1bf)];},exports[a14_0x2c839a(0x1df)]=async function(_0x282cbc){const _0x357e25=a14_0x2c839a,_0x3fecf8={'YLRMc':function(_0xd9e87){return _0xd9e87();},'aNvWP':function(_0xcf99a4){return _0xcf99a4();},'XsVGV':_0x357e25(0x1ca),'jYlFb':function(_0x703e8,_0x2ca5af,_0x42c4ba,_0x4e274c,_0x34de13,_0x5a9e93,_0x1c1f76){return _0x703e8(_0x2ca5af,_0x42c4ba,_0x4e274c,_0x34de13,_0x5a9e93,_0x1c1f76);},'ZlaNw':_0x357e25(0x201),'fbAYX':'init-not-called','CgKHr':'GET','XCiUL':function(_0x4418b9,_0x5b6329){return _0x4418b9(_0x5b6329);},'kbwQg':function(_0x43927b,_0x1b3fe4){return _0x43927b!==_0x1b3fe4;},'xTFBE':function(_0x1ead1b,_0x4c2410){return _0x1ead1b!==_0x4c2410;},'InhVG':function(_0x31c21f,_0x46f487){return _0x31c21f===_0x46f487;},'kPjZb':_0x357e25(0x1ba),'nYjPr':'grid-profile-name','NHxSB':_0x357e25(0x200),'zjNRT':_0x357e25(0x1c8),'vHOuo':'concurrency','ZPvmi':function(_0x33ea94,_0x3f6e23){return _0x33ea94===_0x3f6e23;},'rZnIi':_0x357e25(0x1ef),'CSqaU':function(_0x59658c,_0x38bc68,_0x4d26e6,_0xd9b613,_0x19a08c,_0x48ff11,_0x129bb4){return _0x59658c(_0x38bc68,_0x4d26e6,_0xd9b613,_0x19a08c,_0x48ff11,_0x129bb4);},'etFIi':_0x357e25(0x1e2),'RerdY':function(_0x216486,_0x304d43,_0x256394,_0x385dc3,_0x2eb8a0,_0x3bf7ba,_0x19abeb){return _0x216486(_0x304d43,_0x256394,_0x385dc3,_0x2eb8a0,_0x3bf7ba,_0x19abeb);},'ptjHI':_0x357e25(0x1f2)};try{global_registry[_0x357e25(0x1c0)]=_0x3fecf8[_0x357e25(0x1f1)](uuidv4);let _0x27385d=_0x357e25(0x1c4)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x282cbc['allGridProfiles']&&(_0x27385d='https://'+AG_API_URL+_0x357e25(0x1c9));!fs[_0x357e25(0x202)](_0x3fecf8[_0x357e25(0x1c1)](getCredentialsPath))&&(console[_0x357e25(0x1c5)](_0x3fecf8['XsVGV']),await _0x3fecf8['jYlFb'](sendInstrumentationEvent,_0x282cbc,_0x3fecf8[_0x357e25(0x1e1)],messageTypes['ERROR'],_0x3fecf8[_0x357e25(0x1d1)],null,_0x282cbc),process[_0x357e25(0x1d6)](0x1));_0x3fecf8[_0x357e25(0x1e6)](sendInstrumentationEvent,_0x282cbc,_0x3fecf8[_0x357e25(0x1e1)],messageTypes['INFO'],null,null,_0x282cbc);const _0xeb283b=JSON[_0x357e25(0x1d7)](fs[_0x357e25(0x1e8)](_0x3fecf8[_0x357e25(0x1f1)](getCredentialsPath))),_0x131b0b={};_0x131b0b[_0x357e25(0x1e0)]=_0xeb283b[_0x357e25(0x1bd)][_0x357e25(0x1e0)],_0x131b0b[_0x357e25(0x1d2)]=_0xeb283b[_0x357e25(0x1bd)]['password'];const _0x5d5425={};_0x5d5425[_0x357e25(0x1db)]=_0x27385d,_0x5d5425[_0x357e25(0x1de)]=_0x3fecf8[_0x357e25(0x1d9)],_0x5d5425[_0x357e25(0x208)]=_0x131b0b;const _0x52c2d0=_0x5d5425;global_registry[_0x357e25(0x1fe)]=_0xeb283b[_0x357e25(0x1bd)][_0x357e25(0x1e0)],global_registry['bstackAccesskey']=_0xeb283b[_0x357e25(0x1bd)][_0x357e25(0x1d2)];const _0x5c31bb=await _0x3fecf8[_0x357e25(0x1be)](promisifiedRequest,_0x52c2d0);if(_0x3fecf8[_0x357e25(0x1ce)](_0x5c31bb,null)&&_0x3fecf8['xTFBE'](_0x5c31bb,undefined)&&_0x3fecf8['InhVG'](_0x5c31bb[_0x357e25(0x1ea)],0xc8)){const _0x14c7a3=JSON[_0x357e25(0x1d7)](_0x5c31bb[_0x357e25(0x1ee)]);console[_0x357e25(0x1dd)](_0x3fecf8[_0x357e25(0x1d8)]);const _0x5c688c=[];_0x5c688c[_0x357e25(0x1fd)]([_0x3fecf8['nYjPr'],_0x3fecf8[_0x357e25(0x1f6)],_0x3fecf8[_0x357e25(0x1e9)],_0x3fecf8['vHOuo']]),_0x14c7a3[_0x357e25(0x1bc)](_0x33a099=>{const _0x985f76=_0x357e25;_0x5c688c[_0x985f76(0x1fd)]([_0x33a099[_0x985f76(0x1eb)],_0x33a099['cloudProvider'],_0x33a099[_0x985f76(0x1c8)],_0x33a099[_0x985f76(0x206)]]);}),console['log'](_0x3fecf8['XCiUL'](table,_0x5c688c)),process[_0x357e25(0x1d6)](0x0);}_0x3fecf8[_0x357e25(0x1f8)](_0x5c31bb[_0x357e25(0x1ea)],0x191)&&(console[_0x357e25(0x1c5)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x3fecf8[_0x357e25(0x1e6)](sendInstrumentationEvent,_0x282cbc,_0x3fecf8[_0x357e25(0x1e1)],messageTypes[_0x357e25(0x1f3)],_0x3fecf8[_0x357e25(0x1cd)],null,_0x282cbc),process[_0x357e25(0x1d6)](0x1)),console[_0x357e25(0x1c5)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x357e25(0x1cb)](_0x5c31bb)),await _0x3fecf8[_0x357e25(0x1d3)](sendInstrumentationEvent,_0x282cbc,_0x3fecf8[_0x357e25(0x1e1)],messageTypes['ERROR'],_0x3fecf8[_0x357e25(0x204)],_0x5c31bb,_0x282cbc),process[_0x357e25(0x1d6)](0x1);}catch(_0x452a99){console[_0x357e25(0x1c5)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x452a99[_0x357e25(0x1c2)]),await _0x3fecf8['RerdY'](sendInstrumentationEvent,_0x282cbc,_0x3fecf8['ZlaNw'],messageTypes[_0x357e25(0x1f3)],_0x3fecf8[_0x357e25(0x1fc)],_0x452a99,_0x282cbc),process[_0x357e25(0x1d6)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a15_0x11876d=a15_0x43d6;function a15_0x43d6(_0x72ce38,_0x38ff8a){const _0x18faef=a15_0x18fa();return a15_0x43d6=function(_0x43d65a,_0x2ff4ea){_0x43d65a=_0x43d65a-0x18e;let _0x4e57e1=_0x18faef[_0x43d65a];return _0x4e57e1;},a15_0x43d6(_0x72ce38,_0x38ff8a);}function a15_0x18fa(){const _0x2cb743=['Browserstack','eRVMT','UfrmO','\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PRcNK','MWqEx','grids','epilogue','readFileSync','GET','util','options','log','1380197nZrZXC','promisify','request','JFUZT','argv','1307768fmLJKH','zyLSV','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','all-grids','grid-name','method','BVtGv','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','rdMen','bstackUsername','INFO','cCBcb','description','grid-id','BZyhF','207045zdWHXU','error','name','102EpjhdI','statusCode','DywMp','desc','/packages/cli/get-grids','544663nSkqkj','stack','/packages/cli/get-all-grids','builder','HnZpC','https://','exit','body','push','requestId','help','list','../../config/constants','1016310XpfszO','queued','TccVg','14310LwKXRn','TkAms','cluster-name','running','status','parse','uuid','table','grid','allGrids','wUHpE','url','usage','hpbrn','../../utils/utilityMethods','unknown-error','DyQCq','boolean','aywZN','password','9giBcrZ','forEach','stringify','WndHx','sGgKo','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ztQTa','690296hIEHpS','username','type','OyQUy'];a15_0x18fa=function(){return _0x2cb743;};return a15_0x18fa();}(function(_0xe8a461,_0x3b1c1c){const _0x50983d=a15_0x43d6,_0x531548=_0xe8a461();while(!![]){try{const _0x1ac28a=parseInt(_0x50983d(0x191))/0x1+-parseInt(_0x50983d(0x1e7))/0x2*(-parseInt(_0x50983d(0x1a1))/0x3)+-parseInt(_0x50983d(0x1d3))/0x4+parseInt(_0x50983d(0x1e4))/0x5+parseInt(_0x50983d(0x19e))/0x6+-parseInt(_0x50983d(0x1ce))/0x7+-parseInt(_0x50983d(0x1bc))/0x8*(parseInt(_0x50983d(0x1b5))/0x9);if(_0x1ac28a===_0x3b1c1c)break;else _0x531548['push'](_0x531548['shift']());}catch(_0x4727b7){_0x531548['push'](_0x531548['shift']());}}}(a15_0x18fa,0x5ece7));const fs=require('fs'),util=require(a15_0x11876d(0x1cb)),request=require(a15_0x11876d(0x1d0)),{table}=require(a15_0x11876d(0x1a8)),{v4:uuidv4}=require(a15_0x11876d(0x1a7)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x11876d(0x19d)),{getCredentialsPath}=require(a15_0x11876d(0x1af)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a15_0x11876d(0x1cf)](request);exports['command']=a15_0x11876d(0x1c7),exports[a15_0x11876d(0x18f)]=a15_0x11876d(0x1d5),exports[a15_0x11876d(0x194)]=function(_0x325499){const _0x1c46e1=a15_0x11876d,_0x282a3f={};_0x282a3f[_0x1c46e1(0x1dd)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x282a3f[_0x1c46e1(0x1ae)]=_0x1c46e1(0x1b2),_0x282a3f[_0x1c46e1(0x1d1)]=_0x1c46e1(0x19b);const _0x51a716=_0x282a3f,_0x185694={};_0x185694[_0x1c46e1(0x1e1)]=_0x51a716[_0x1c46e1(0x1dd)],_0x185694[_0x1c46e1(0x1be)]=_0x51a716['hpbrn'];const _0x27af09={};return _0x27af09[_0x1c46e1(0x1d6)]=_0x185694,_0x325499[_0x1c46e1(0x1ad)](HELP_HEADER_MESSAGE[_0x1c46e1(0x19c)][_0x1c46e1(0x1a9)])[_0x1c46e1(0x1c8)](HELP_FOOTER_MESSAGE)[_0x1c46e1(0x1cc)](_0x27af09)[_0x1c46e1(0x19b)](_0x51a716[_0x1c46e1(0x1d1)])[_0x1c46e1(0x1d2)];},exports['handler']=async function(_0x39cc3d){const _0x50dce4=a15_0x11876d,_0x1da51d={'eRVMT':function(_0x3e199c){return _0x3e199c();},'BVtGv':_0x50dce4(0x1db),'PTcHJ':function(_0x483007,_0x58bd9e,_0xbea77,_0xb9c227,_0x4017cd,_0x8fe95c,_0x3b13ba){return _0x483007(_0x58bd9e,_0xbea77,_0xb9c227,_0x4017cd,_0x8fe95c,_0x3b13ba);},'wUHpE':'list-grids-called','zyLSV':'init-not-called','HnZpC':function(_0x18e55c){return _0x18e55c();},'OyQUy':_0x50dce4(0x1ca),'cCBcb':function(_0x1f9512,_0x24cf08,_0x4460de,_0x49f998,_0x36df43,_0x4dd79b,_0x39eff2){return _0x1f9512(_0x24cf08,_0x4460de,_0x49f998,_0x36df43,_0x4dd79b,_0x39eff2);},'jetOf':function(_0x585bf0,_0x5d3f6b){return _0x585bf0(_0x5d3f6b);},'WndHx':function(_0x2ba461,_0x2a45e7){return _0x2ba461!==_0x2a45e7;},'PRcNK':function(_0x97e2d5,_0x2968ef){return _0x97e2d5===_0x2968ef;},'MWqEx':_0x50dce4(0x1c3),'DyQCq':_0x50dce4(0x1e2),'eGZQV':_0x50dce4(0x1d7),'BZyhF':_0x50dce4(0x1a5),'sGgKo':_0x50dce4(0x1a4),'aywZN':_0x50dce4(0x19f),'yNzql':_0x50dce4(0x1a3),'DywMp':function(_0x442c2e,_0x37a73f){return _0x442c2e(_0x37a73f);},'EJUJS':function(_0x4d8425,_0x1a2969){return _0x4d8425===_0x1a2969;},'TccVg':function(_0x618fea,_0xccfb10,_0x5d3b0a,_0x3f2f1b,_0x340e79,_0x3cc66c,_0x92cfac){return _0x618fea(_0xccfb10,_0x5d3b0a,_0x3f2f1b,_0x340e79,_0x3cc66c,_0x92cfac);},'eieaH':_0x50dce4(0x1dc),'ztQTa':function(_0x16e67d,_0x5390d0,_0x44ab80,_0xecae4b,_0xe90d79,_0x39eae7,_0x226d0a){return _0x16e67d(_0x5390d0,_0x44ab80,_0xecae4b,_0xe90d79,_0x39eae7,_0x226d0a);},'TkAms':'server-error','rALet':function(_0x5c541c,_0x25e270,_0xe382ba,_0x10eeab,_0x43b1fe,_0x5555c7,_0x1d4ce9){return _0x5c541c(_0x25e270,_0xe382ba,_0x10eeab,_0x43b1fe,_0x5555c7,_0x1d4ce9);},'UfrmO':_0x50dce4(0x1b0)};try{global_registry[_0x50dce4(0x19a)]=_0x1da51d['eRVMT'](uuidv4);!fs['existsSync'](_0x1da51d[_0x50dce4(0x1c1)](getCredentialsPath))&&(console[_0x50dce4(0x1e5)](_0x1da51d[_0x50dce4(0x1d9)]),await _0x1da51d['PTcHJ'](sendInstrumentationEvent,_0x39cc3d,_0x1da51d[_0x50dce4(0x1ab)],messageTypes[_0x50dce4(0x1da)],_0x1da51d[_0x50dce4(0x1d4)],null,_0x39cc3d),process[_0x50dce4(0x197)](0x1));const _0x4529fa=JSON['parse'](fs[_0x50dce4(0x1c9)](_0x1da51d[_0x50dce4(0x195)](getCredentialsPath)));let _0x29d3af='https://'+AG_API_URL+_0x50dce4(0x190);_0x39cc3d[_0x50dce4(0x1aa)]&&(_0x29d3af=_0x50dce4(0x196)+AG_API_URL+_0x50dce4(0x193));const _0x3620e0={};_0x3620e0[_0x50dce4(0x1bd)]=_0x4529fa[_0x50dce4(0x1c0)][_0x50dce4(0x1bd)],_0x3620e0['password']=_0x4529fa[_0x50dce4(0x1c0)][_0x50dce4(0x1b4)];const _0x2559ce={};_0x2559ce[_0x50dce4(0x1ac)]=_0x29d3af,_0x2559ce[_0x50dce4(0x1d8)]=_0x1da51d[_0x50dce4(0x1bf)],_0x2559ce['auth']=_0x3620e0;const _0x4e2a7f=_0x2559ce;global_registry[_0x50dce4(0x1de)]=_0x4529fa['Browserstack'][_0x50dce4(0x1bd)],global_registry['bstackAccesskey']=_0x4529fa[_0x50dce4(0x1c0)][_0x50dce4(0x1b4)],_0x1da51d[_0x50dce4(0x1e0)](sendInstrumentationEvent,_0x39cc3d,_0x1da51d[_0x50dce4(0x1ab)],messageTypes[_0x50dce4(0x1df)],null,null,_0x39cc3d);const _0x3b1995=await _0x1da51d['jetOf'](promisifiedRequest,_0x4e2a7f);if(_0x1da51d[_0x50dce4(0x1b8)](_0x3b1995,null)&&_0x1da51d[_0x50dce4(0x1b8)](_0x3b1995,undefined)&&_0x1da51d[_0x50dce4(0x1c5)](_0x3b1995['statusCode'],0xc8)){const _0x12ac0e=JSON[_0x50dce4(0x1a6)](_0x3b1995[_0x50dce4(0x198)]);console[_0x50dce4(0x1cd)](_0x1da51d[_0x50dce4(0x1c6)]);const _0x4f4254=[];_0x4f4254[_0x50dce4(0x199)]([_0x1da51d[_0x50dce4(0x1b1)],_0x1da51d['eGZQV'],_0x1da51d[_0x50dce4(0x1e3)],_0x1da51d[_0x50dce4(0x1b9)],_0x1da51d[_0x50dce4(0x1b3)],_0x1da51d['yNzql']]),_0x12ac0e[_0x50dce4(0x1b6)](_0x3e006a=>{const _0x3b0bf7=_0x50dce4;_0x4f4254[_0x3b0bf7(0x199)]([_0x3e006a['id'],_0x3e006a[_0x3b0bf7(0x1e6)],_0x3e006a[_0x3b0bf7(0x1a5)],_0x3e006a[_0x3b0bf7(0x1a4)],_0x3e006a[_0x3b0bf7(0x19f)],_0x3e006a['clusterName']]);}),console[_0x50dce4(0x1cd)](_0x1da51d[_0x50dce4(0x18e)](table,_0x4f4254)),process[_0x50dce4(0x197)](0x0);}_0x1da51d['EJUJS'](_0x3b1995[_0x50dce4(0x1e8)],0x191)&&(console['error'](_0x50dce4(0x1ba)),await _0x1da51d[_0x50dce4(0x1a0)](sendInstrumentationEvent,_0x39cc3d,_0x1da51d['wUHpE'],messageTypes[_0x50dce4(0x1da)],_0x1da51d['eieaH'],null,_0x39cc3d),process['exit'](0x1)),console[_0x50dce4(0x1e5)](_0x50dce4(0x1c4)+JSON[_0x50dce4(0x1b7)](_0x3b1995)),await _0x1da51d[_0x50dce4(0x1bb)](sendInstrumentationEvent,_0x39cc3d,_0x1da51d[_0x50dce4(0x1ab)],messageTypes['ERROR'],_0x1da51d[_0x50dce4(0x1a2)],_0x3b1995,_0x39cc3d),process[_0x50dce4(0x197)](0x1);}catch(_0x2fab7b){console[_0x50dce4(0x1e5)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x2fab7b[_0x50dce4(0x192)]),await _0x1da51d['rALet'](sendInstrumentationEvent,_0x39cc3d,_0x1da51d['wUHpE'],messageTypes[_0x50dce4(0x1da)],_0x1da51d[_0x50dce4(0x1c2)],_0x2fab7b,_0x39cc3d),process['exit'](0x1);}};
|