browserstack-node-sdk 1.28.1 → 1.28.3
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/gcs.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/customEnvironment.js +1 -1
- package/src/bin/jest/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.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/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/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/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
|
+
const a9_0x2e715a=a9_0x67e6;function a9_0x67e6(_0x82bee3,_0x4fcc91){const _0x2e3ab4=a9_0x2e3a();return a9_0x67e6=function(_0x67e625,_0x5e9afd){_0x67e625=_0x67e625-0xba;let _0xb11fad=_0x2e3ab4[_0x67e625];return _0xb11fad;},a9_0x67e6(_0x82bee3,_0x4fcc91);}(function(_0x22e364,_0x5e0b58){const _0x310f30=a9_0x67e6,_0x5dd895=_0x22e364();while(!![]){try{const _0x49cc97=-parseInt(_0x310f30(0xbb))/0x1*(-parseInt(_0x310f30(0xc1))/0x2)+-parseInt(_0x310f30(0xcc))/0x3+-parseInt(_0x310f30(0xc2))/0x4+parseInt(_0x310f30(0xc7))/0x5+parseInt(_0x310f30(0xbe))/0x6+parseInt(_0x310f30(0xbf))/0x7*(parseInt(_0x310f30(0xce))/0x8)+-parseInt(_0x310f30(0xca))/0x9;if(_0x49cc97===_0x5e0b58)break;else _0x5dd895['push'](_0x5dd895['shift']());}catch(_0x156072){_0x5dd895['push'](_0x5dd895['shift']());}}}(a9_0x2e3a,0xcfb6f));function a9_0x2e3a(){const _0x3ab88f=['exlev','commandDir','10097802cdOOhO','command','540432KFAbsZ','strict','3510872TVEHUt','builder','533590VRrblf','Create\x20a\x20new\x20Automation\x20grid.','zqBYD','2266032nNEWPb','7tiDtSN','../config/constants','4FjMEqZ','3458352yLeCkL','usage','desc','create_commands','help','5668990pZgAvd'];a9_0x2e3a=function(){return _0x3ab88f;};return a9_0x2e3a();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x2e715a(0xc0));exports[a9_0x2e715a(0xcb)]='create',exports[a9_0x2e715a(0xc4)]=a9_0x2e715a(0xbc),exports[a9_0x2e715a(0xba)]=function(_0x532339){const _0x4fac6d=a9_0x2e715a,_0x29c5a8={};_0x29c5a8[_0x4fac6d(0xbd)]=_0x4fac6d(0xc5),_0x29c5a8['exlev']='help';const _0x59a0db=_0x29c5a8;return _0x532339[_0x4fac6d(0xc3)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4fac6d(0xc9)](_0x59a0db[_0x4fac6d(0xbd)])['demandCommand']()['recommendCommands']()[_0x4fac6d(0xcd)]()[_0x4fac6d(0xc6)](_0x59a0db[_0x4fac6d(0xc8)]);},exports['handler']=function(_0xe74c5d){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x342a2a=a10_0x215b;(function(_0xe1f67f,_0x22c807){const _0x47cefa=a10_0x215b,_0x165759=_0xe1f67f();while(!![]){try{const _0x3cf7a6=-parseInt(_0x47cefa(0x2ad))/0x1+-parseInt(_0x47cefa(0x223))/0x2+-parseInt(_0x47cefa(0x2f2))/0x3*(parseInt(_0x47cefa(0x1f1))/0x4)+parseInt(_0x47cefa(0x241))/0x5*(parseInt(_0x47cefa(0x2cb))/0x6)+-parseInt(_0x47cefa(0x272))/0x7+parseInt(_0x47cefa(0x253))/0x8*(-parseInt(_0x47cefa(0x26e))/0x9)+-parseInt(_0x47cefa(0x258))/0xa*(-parseInt(_0x47cefa(0x267))/0xb);if(_0x3cf7a6===_0x22c807)break;else _0x165759['push'](_0x165759['shift']());}catch(_0x49d555){_0x165759['push'](_0x165759['shift']());}}}(a10_0x4818,0xb1f29));const fs=require('fs'),ws=require('ws'),util=require(a10_0x342a2a(0x2ea)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a10_0x342a2a(0x2c1)),{v4:uuidv4}=require(a10_0x342a2a(0x25b)),webSocketUtils=require(a10_0x342a2a(0x22f)),{logger}=require(a10_0x342a2a(0x263)),{inputCloudProviderKeys}=require(a10_0x342a2a(0x21f)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x342a2a(0x2d8)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x342a2a(0x23b)),{createK8sClient}=require(a10_0x342a2a(0x20f)),{sendInstrumentationEvent}=require(a10_0x342a2a(0x22d)),promisifiedRequest=util[a10_0x342a2a(0x2ce)](request);function a10_0x4818(){const _0x51571a=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rLobZ','TwCgj','privateGrid','PIcNQ','iOeZr','rCXtQ','1|7|0|4|6|8|2|5|3','default','length','message','pkAzS','../../utils/createk8sClient','Grid\x20can\x20be\x20accessed\x20at:\x20','yUYBY','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','zcVLD','includes','RFApI','HOVon','cloudProvider','rvfKO','gridProfile','minNodes','htpPT','pre-spawned-invalid-subnets','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','YimjB','../../utils/userInput','help','grid-profile','ptzBQ','1318522Zvrehu','XIlSA','UrduL','create-grid-checks-invalid-profile','xzIcD','exit','ERROR','CPVyr','VLAui','EUabF','../../utils/instrumentationUtils','<PasswordPlaceholder>','../../utils/webSocketUtils','LOG','replace','uCNIo','imcVH','Cluster\x20','getResourceClientId','metadata','WebSocket','createNamespace','defaultGridProfile','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','../../utils/gridComponents','RthNL','bAlkF','crQRP','kRdTn','username','2998055dLLZOg','yvHwA','/packages/cli/create-grid-checks','Namespace\x20Created','gridProfiles','get-grid-url-non-200','GTCRc','CLI\x20run\x20started','aMEqA','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','https','sendEventToBackend','QlvzJ','CLI_RUN_FINISHED','MaUWT','aFqak','fMrGe','JBxEI','280ypkDVT','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','mOrrj','clusterRegion','type','10WivwGO','XQvhp','4|1|3|2|0','uuid','pre-spawned-invalid-vpc','toLowerCase','Ropzi','isSubnetsValid','CQmBa','WkGpZ','configureIfNotConfigured','../../config/logger','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Spawning\x20Grid\x20on\x20the\x20Cluster','non-aws-azure-cluster','46607440iRRkxQ','HDGAs','FRlCC','Create\x20a\x20new\x20Automation\x20grid.','ERrGa','prespawned-cluster-args-not-passed','ZlKKz','265149BuAFux','ingress-nginx','parse','isVPCPresent','10122987IvuGVm','mkZXJ','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','command','iHgVS','nkiQk','managedBy','rvxlO','name','NpVtn','FCKMo','split','region','qPgxv','MtopB','getGridHostname','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','CLI\x20run\x20finished:\x20','dNlLc','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','oYPOp','Swscc','FEuGD','debug','QEcCF','uNmDE','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','rLNMb','PTzhA','Deleting\x20the\x20CloudFormation\x20Stacks','stuFT','dLfin','NGrjn','setupAutoscaler','private-ingress-nginx-controller','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','description','LKQPO','delay','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.','s3bucket','readFileSync','createdBy','PaYPN','NBpfF','FncaD','RMLrw','JKwcd','get-grid-url-auth-failed','bstackAccesskey','argv','fwiRE','Grid\x20spawned\x20on\x20the\x20cluster','auth','vpc','cloud-provider','stringify','318054xfEawy','turboscale-managed-identity-','isPrivateGrid','createOtherResources','iIeOC','\x20in\x20existing\x20cluster\x20\x27','SnGuZ','Create\x20a\x20private/public\x20grid.','\x20using\x20\x27','addListeners','subnets','error','qQkwJ','dUNPv','Grid\x20profile\x20fetched\x20from\x20backend','OWMQG','UKcUA','fetchLocalCreds','hubVersion','connectionTimeout','request','vfytr','UAfXK','Creating\x20namespace','writeFileSync','ROjTk','BoxAV','Cluster\x20created\x20successfully','s3Bucket','NFOaO','6rBBfDj','body','BaCYa','promisify','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Osjkx','annotations','string','cHofx','Will\x20be\x20spawning\x20the\x20grid\x20','mOyWw','cluster-name','http','../../config/constants','8|5|1|7|6|0|2|3|4','uhhbN','ZJisa','VfQkN','Browserstack','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','existsSync','Adding\x20Websocket\x20listeners','QrGUA','Brdrx','HxPIX','create-grid-checks-null-response','tprlO','CLI_RUN_STARTED','securityGroups','gjvhO','MmDYd','util','gridName','qVWHP','https://','JQmoi','zvWbO','KCfik','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','3ZcaAae','browserVersion','YRSyb','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','pwIhG','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Subnets:\x20','create-grid-checks-grid-already-exists','epilogue','EMGVe','info','JMkAL','WMJbV','desc','RVwwy','route53','deleteCluster','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','fpvVM','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','FTEEf','lOQuq','HJkkT','create','ZpWVl','kffWk','password','DfVtW','SuaYp','maxNodes','handler','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','warn','riSOI','Dnwpd','xqmNp','nIYNE','usage','Spawning\x20the\x20grid\x20','JXrVA','Found\x20VPC:\x20','true','tmxZU','clusterName','jgdqw','get-grid-url-null-response','TGFHu','xAPIj','alreadyPresent','concurrency','KXKhV','IrAvZ','2612748mtmmaC','JBOlq','mybzG','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','WrgQe','<UsernamePlaceholder>','EFJOL','sVVFH','setupNewCluster','create-grid-checks-auth-failed','statusCode','grid-spawning-failed','user','sAuYg','jxWwW','create-grid-called','Spawning\x20grid\x20on\x20to\x20the\x20cluster','SngqQ'];a10_0x4818=function(){return _0x51571a;};return a10_0x4818();}function a10_0x215b(_0x40e768,_0x40eb50){const _0x481862=a10_0x4818();return a10_0x215b=function(_0x215bb7,_0x41c4c3){_0x215bb7=_0x215bb7-0x1cc;let _0xbf5a7=_0x481862[_0x215bb7];return _0xbf5a7;},a10_0x215b(_0x40e768,_0x40eb50);}exports[a10_0x342a2a(0x275)]='grid',exports[a10_0x342a2a(0x2ff)]=a10_0x342a2a(0x26a),exports['builder']=function(_0x8004c0){const _0xc19a8f=a10_0x342a2a,_0x54a859={};_0x54a859[_0xc19a8f(0x21e)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x54a859['ROjTk']=_0xc19a8f(0x2d2),_0x54a859[_0xc19a8f(0x1ff)]=_0xc19a8f(0x295),_0x54a859[_0xc19a8f(0x204)]=_0xc19a8f(0x264),_0x54a859[_0xc19a8f(0x242)]=_0xc19a8f(0x2f1),_0x54a859[_0xc19a8f(0x23d)]=_0xc19a8f(0x1dc),_0x54a859['ZlKKz']=_0xc19a8f(0x2b4),_0x54a859['mOrrj']=_0xc19a8f(0x220);const _0x3e978a=_0x54a859,_0x1fb32d={};_0x1fb32d[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x21e)],_0x1fb32d[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x6f1df1={};_0x6f1df1[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x1ff)],_0x6f1df1[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x5a3de1={};_0x5a3de1['description']=_0x3e978a[_0xc19a8f(0x204)],_0x5a3de1[_0xc19a8f(0x257)]=_0x3e978a['ROjTk'];const _0x47561f={};_0x47561f['description']=_0x3e978a[_0xc19a8f(0x242)],_0x47561f[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x2582b6={};_0x2582b6[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x23d)],_0x2582b6[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x3498ba={};_0x3498ba[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x26d)],_0x3498ba['type']=_0x3e978a[_0xc19a8f(0x2c6)];const _0x454d28={};return _0x454d28['grid-name']=_0x1fb32d,_0x454d28[_0xc19a8f(0x221)]=_0x6f1df1,_0x454d28[_0xc19a8f(0x2d6)]=_0x5a3de1,_0x454d28[_0xc19a8f(0x2ab)]=_0x47561f,_0x454d28['region']=_0x2582b6,_0x454d28['private-grid']=_0x3498ba,_0x8004c0[_0xc19a8f(0x1e2)](HELP_HEADER_MESSAGE[_0xc19a8f(0x1d4)])[_0xc19a8f(0x2fa)](HELP_FOOTER_MESSAGE)['options'](_0x454d28)['help'](_0x3e978a[_0xc19a8f(0x255)])[_0xc19a8f(0x2a6)];},exports[a10_0x342a2a(0x1db)]=async function(_0x3101a8){const _0x4fd4aa=a10_0x342a2a,_0x556a93={'HDGAs':'error','HOVon':_0x4fd4aa(0x23a),'kffWk':_0x4fd4aa(0x2d2),'esEFO':_0x4fd4aa(0x295),'Hofbu':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','VLAui':_0x4fd4aa(0x2f1),'JMkAL':_0x4fd4aa(0x1dc),'rvxlO':_0x4fd4aa(0x2b4),'SnGuZ':_0x4fd4aa(0x220),'kZZao':_0x4fd4aa(0x20a),'WrgQe':_0x4fd4aa(0x2d7),'pwIhG':_0x4fd4aa(0x24b),'EMGVe':_0x4fd4aa(0x21d),'UAfXK':_0x4fd4aa(0x1dd),'ptzBQ':function(_0x4fbb5b){return _0x4fbb5b();},'gjvhO':function(_0x27ca67){return _0x27ca67();},'RFApI':function(_0x302f70,_0x5f07a){return _0x302f70!==_0x5f07a;},'QrGUA':'uRAAS','TwCgj':_0x4fd4aa(0x277),'Osjkx':_0x4fd4aa(0x203),'EUabF':function(_0x4cc357,_0x4a52de,_0x8980fd,_0x518e91,_0x5d1126,_0x171e22,_0x1fac15){return _0x4cc357(_0x4a52de,_0x8980fd,_0x518e91,_0x5d1126,_0x171e22,_0x1fac15);},'BoxAV':_0x4fd4aa(0x200),'zcVLD':'init-not-called','mOyWw':function(_0x4451c6,_0x1a3aa0,_0x37780a,_0x40b217,_0x5b15c5,_0x37f676,_0x2175a1){return _0x4451c6(_0x1a3aa0,_0x37780a,_0x40b217,_0x5b15c5,_0x37f676,_0x2175a1);},'JBxEI':_0x4fd4aa(0x1f6),'TGFHu':_0x4fd4aa(0x22e),'aMEqA':_0x4fd4aa(0x2e0),'cHofx':function(_0x2d6e80,_0x2dc14d){return _0x2d6e80!==_0x2dc14d;},'tmxZU':_0x4fd4aa(0x2db),'NBpfF':function(_0x12ebe5,_0x7aeb91){return _0x12ebe5!==_0x7aeb91;},'YRSyb':_0x4fd4aa(0x299),'lxBPI':'aTfnJ','fwiRE':_0x4fd4aa(0x285),'XIlSA':function(_0x2d620a,_0x4f55a9,_0x171d0d,_0x9844c4,_0x558764,_0x2662d7,_0x2a162c,_0x34b72b){return _0x2d620a(_0x4f55a9,_0x171d0d,_0x9844c4,_0x558764,_0x2662d7,_0x2a162c,_0x34b72b);},'tprlO':_0x4fd4aa(0x26c),'jgdqw':function(_0x36617d,_0x48c5fb){return _0x36617d===_0x48c5fb;},'qPgxv':_0x4fd4aa(0x273),'GTCRc':_0x4fd4aa(0x1f4),'UrduL':function(_0x55f879,_0x3a23e8,_0x25122b,_0x4fd3de,_0x5d854d,_0x3a3fd4,_0xb830aa,_0x27fed8){return _0x55f879(_0x3a23e8,_0x25122b,_0x4fd3de,_0x5d854d,_0x3a3fd4,_0xb830aa,_0x27fed8);},'CQmBa':_0x4fd4aa(0x266),'SuaYp':function(_0x294ccd,_0x50c5a3){return _0x294ccd===_0x50c5a3;},'sVVFH':_0x4fd4aa(0x1e6),'MmDYd':_0x4fd4aa(0x21b),'QlvzJ':function(_0x2c1ab2,_0x1d73e6){return _0x2c1ab2===_0x1d73e6;},'fMrGe':_0x4fd4aa(0x291),'JQmoi':'GET','HJkkT':function(_0x3b569a,_0x4061ee){return _0x3b569a(_0x4061ee);},'PaYPN':_0x4fd4aa(0x28d),'EFJOL':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Dnwpd':_0x4fd4aa(0x2e4),'dUNPv':function(_0x380567,_0xd9fcde){return _0x380567===_0xd9fcde;},'Ropzi':function(_0x190a1c,_0x26e7f4){return _0x190a1c!==_0x26e7f4;},'ZpWVl':_0x4fd4aa(0x2b1),'riSOI':'IUqcI','PIcNQ':_0x4fd4aa(0x24a),'xqmNp':_0x4fd4aa(0x1fa),'imcVH':'pGPQV','MtopB':_0x4fd4aa(0x250),'oYPOp':'create-grid-checks-non-200','AeOim':_0x4fd4aa(0x2bb),'FTEEf':'hOkOi','PTzhA':_0x4fd4aa(0x28c),'MaUWT':_0x4fd4aa(0x2f9),'NFOaO':function(_0x2be889,_0x52f7be){return _0x2be889!==_0x52f7be;},'stuFT':'EuFOD','FncaD':function(_0x25a389,_0x4ae53e){return _0x25a389===_0x4ae53e;},'uNmDE':function(_0x37cc5c,_0x5c1dc1){return _0x37cc5c!==_0x5c1dc1;},'ERrGa':_0x4fd4aa(0x287),'zjUNs':function(_0x1fb6c9,_0x9ccd6d){return _0x1fb6c9!==_0x9ccd6d;},'iOeZr':_0x4fd4aa(0x2a3),'rCXtQ':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','dNlLc':_0x4fd4aa(0x226),'CuLwY':function(_0x195140,_0x3f589d){return _0x195140===_0x3f589d;},'OWMQG':function(_0x1c2310,_0x2cd1ad){return _0x1c2310===_0x2cd1ad;},'DfVtW':function(_0x4966f1,_0x4f2847){return _0x4966f1!==_0x4f2847;},'QEcCF':_0x4fd4aa(0x27c),'CPVyr':'TPLxm','NGrjn':'IBWXJ','nIYNE':function(_0x38cc53,_0x405e8a,_0x401229,_0xcffec3,_0x172cae,_0x403744,_0x5e9999,_0x35e0cd,_0x1646ae,_0x82fa60,_0x3a479d,_0xce73eb){return _0x38cc53(_0x405e8a,_0x401229,_0xcffec3,_0x172cae,_0x403744,_0x5e9999,_0x35e0cd,_0x1646ae,_0x82fa60,_0x3a479d,_0xce73eb);},'RthNL':_0x4fd4aa(0x2d9),'pkAzS':function(_0x593852,_0x6ff72a,_0x5b59cf,_0x394c92,_0x3ddde5,_0x4f9454){return _0x593852(_0x6ff72a,_0x5b59cf,_0x394c92,_0x3ddde5,_0x4f9454);},'sAuYg':function(_0x2915b3,_0x58bf24){return _0x2915b3===_0x58bf24;},'mybzG':_0x4fd4aa(0x282),'XmyPJ':function(_0x300ac8,_0xf0113b){return _0x300ac8===_0xf0113b;},'CucUG':function(_0x3bc34d,_0x1882bf,_0x13c073,_0x358ee2){return _0x3bc34d(_0x1882bf,_0x13c073,_0x358ee2);},'XQvhp':_0x4fd4aa(0x2cf),'kFSGB':_0x4fd4aa(0x212),'lOQuq':_0x4fd4aa(0x254),'qVWHP':function(_0x25d965,_0x2bd7d1){return _0x25d965!=_0x2bd7d1;},'iGkre':function(_0x37e164,_0x227af8){return _0x37e164!==_0x227af8;},'KXKhV':function(_0x206d66,_0x377a79){return _0x206d66>_0x377a79;},'crQRP':function(_0x363cf6,_0x409328){return _0x363cf6===_0x409328;},'VfQkN':_0x4fd4aa(0x1ce),'xzIcD':function(_0x32906c,_0x46d4a0,_0x2ae08f,_0xef0fac,_0x10655a,_0x181ab9,_0x11c240,_0x114cf3){return _0x32906c(_0x46d4a0,_0x2ae08f,_0xef0fac,_0x10655a,_0x181ab9,_0x11c240,_0x114cf3);},'WkGpZ':'pre-spawned-subnets-not-selected','zrqfS':_0x4fd4aa(0x2de),'SdVYZ':_0x4fd4aa(0x25c),'xuIbz':function(_0x34107f,_0x299430,_0x337c62,_0x4be0e9,_0x9da639,_0x2fcd70,_0x297f9e,_0x441484){return _0x34107f(_0x299430,_0x337c62,_0x4be0e9,_0x9da639,_0x2fcd70,_0x297f9e,_0x441484);},'WWtxL':_0x4fd4aa(0x21c),'Brdrx':_0x4fd4aa(0x25a),'uCNIo':'Cluster\x20created\x20successfully','fpvVM':_0x4fd4aa(0x29b),'jYAMO':function(_0x5c01e1,_0x341563){return _0x5c01e1===_0x341563;},'qQkwJ':function(_0x1f8cc4,_0x300daa){return _0x1f8cc4==_0x300daa;},'BaCYa':_0x4fd4aa(0x2c4),'COvQX':function(_0x29fef9,_0x26778e){return _0x29fef9!==_0x26778e;},'RMLrw':_0x4fd4aa(0x20b),'HxPIX':_0x4fd4aa(0x2dd),'WMJbV':_0x4fd4aa(0x244),'SngqQ':'Namespace\x20created','KCfik':_0x4fd4aa(0x201),'AuGbJ':_0x4fd4aa(0x265),'zvWbO':function(_0xecd720,_0x1aba97){return _0xecd720===_0x1aba97;},'FRlCC':function(_0x4946da,_0x52fdf2,_0x427724,_0x47c894,_0xb18bd,_0xd90255,_0x1d47ee,_0x3c2460,_0x36a238,_0x3e5b17,_0x3740cd){return _0x4946da(_0x52fdf2,_0x427724,_0x47c894,_0xb18bd,_0xd90255,_0x1d47ee,_0x3c2460,_0x36a238,_0x3e5b17,_0x3740cd);},'uhhbN':_0x4fd4aa(0x2a8),'FEuGD':_0x4fd4aa(0x296),'NpVtn':function(_0x545433,_0x43b5bf,_0x5af7ea){return _0x545433(_0x43b5bf,_0x5af7ea);},'xAPIj':_0x4fd4aa(0x294),'kRdTn':'ingress-nginx-controller','EMkBG':_0x4fd4aa(0x26f),'UKcUA':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','NrrCM':_0x4fd4aa(0x1ea),'yUYBY':function(_0x162c6f,_0x1f1a5b){return _0x162c6f===_0x1f1a5b;},'NHyiz':_0x4fd4aa(0x2f5),'IrAvZ':function(_0x30363d,_0x3df126,_0x2a1de7,_0x2363a2,_0x2015dd,_0x476a0e,_0x5bcb13,_0x2bc618){return _0x30363d(_0x3df126,_0x2a1de7,_0x2363a2,_0x2015dd,_0x476a0e,_0x5bcb13,_0x2bc618);},'RVwwy':_0x4fd4aa(0x2a4),'JXrVA':function(_0x2ec3d0,_0xca0e3c){return _0x2ec3d0!==_0xca0e3c;},'iHgVS':function(_0x3c18fe,_0x1e5bf4,_0x4b7bc9,_0x34177d,_0x345e7a,_0x45d101,_0x18a3b2,_0x466f39){return _0x3c18fe(_0x1e5bf4,_0x4b7bc9,_0x34177d,_0x345e7a,_0x45d101,_0x18a3b2,_0x466f39);},'vfytr':_0x4fd4aa(0x246),'JBOlq':function(_0x221ca1,_0x90c6d4){return _0x221ca1===_0x90c6d4;},'WcVPD':function(_0x5b1835,_0x3d1106,_0x34cf38,_0x230f08,_0x21b674,_0x531b72,_0x2dd348){return _0x5b1835(_0x3d1106,_0x34cf38,_0x230f08,_0x21b674,_0x531b72,_0x2dd348);},'rvfKO':_0x4fd4aa(0x1fc)};let _0x40a009=![],_0x5118c6,_0x4c29bc,_0x20fe76,_0x526b38,_0x5a6394,_0x152525,_0xe74233,_0x583840,_0x1169c5,_0x3b5e2b,_0x186545,_0x12391f,_0x1761bc=0x1,_0x4265c6=0xe;try{global_registry['requestId']=_0x556a93[_0x4fd4aa(0x222)](uuidv4),global_registry[_0x4fd4aa(0x2af)]=![];if(!fs[_0x4fd4aa(0x2df)](_0x556a93[_0x4fd4aa(0x2e8)](getCredentialsPath))){if(_0x556a93[_0x4fd4aa(0x215)](_0x556a93[_0x4fd4aa(0x2e1)],_0x556a93[_0x4fd4aa(0x205)]))console['error'](_0x556a93[_0x4fd4aa(0x2d0)]),await _0x556a93[_0x4fd4aa(0x22c)](sendInstrumentationEvent,_0x3101a8,_0x556a93[_0x4fd4aa(0x2c7)],messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x213)],null,_0x3101a8),process['exit'](0x1);else throw _0xcf2d3a;}await _0x556a93[_0x4fd4aa(0x2d5)](sendInstrumentationEvent,_0x3101a8,_0x556a93['BoxAV'],messageTypes['INFO'],null,null,_0x3101a8);const _0x3d114f=JSON[_0x4fd4aa(0x270)](fs[_0x4fd4aa(0x29d)](_0x556a93[_0x4fd4aa(0x2e8)](getCredentialsPath)));global_registry['bstackUsername']=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x240)],global_registry[_0x4fd4aa(0x2a5)]=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x1d7)];const _0x251981=WS_ENDPOINT[_0x4fd4aa(0x231)](_0x556a93[_0x4fd4aa(0x252)],_0x3d114f[_0x4fd4aa(0x2dd)]['username'])['replace'](_0x556a93[_0x4fd4aa(0x1eb)],_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x1d7)]),_0x350ac0={};_0x350ac0[_0x4fd4aa(0x237)]=ws,_0x350ac0[_0x4fd4aa(0x2c0)]=0x36ee80,_0x3b5e2b=new ReconnectingWebSocket(_0x251981,[],_0x350ac0),logger['debug'](_0x556a93[_0x4fd4aa(0x249)]),webSocketUtils[_0x4fd4aa(0x2b6)](_0x3b5e2b,_0x3101a8[_0x4fd4aa(0x1fd)],_0x3101a8[_0x4fd4aa(0x1d7)]);let _0x321ed0=DEFAULT_GRID_NAME;if(_0x3101a8[_0x4fd4aa(0x1e8)]||_0x3101a8['cloudProvider']||_0x3101a8[_0x4fd4aa(0x27e)]){if(_0x556a93[_0x4fd4aa(0x2d3)](_0x556a93[_0x4fd4aa(0x1e7)],_0x556a93[_0x4fd4aa(0x1e7)]))_0x3022f8=_0x2dde1c[_0x1759e2[_0x4fd4aa(0x219)]];else{if(!(_0x3101a8[_0x4fd4aa(0x1e8)]&&_0x3101a8['cloudProvider']&&_0x3101a8[_0x4fd4aa(0x27e)])){if(_0x556a93[_0x4fd4aa(0x2a0)](_0x556a93[_0x4fd4aa(0x2f4)],_0x556a93['lxBPI']))_0x5118c6=_0x556a93[_0x4fd4aa(0x2a7)],await _0x556a93['XIlSA'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x2e5)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1);else{const _0x5ae9fd={};_0x5ae9fd[_0x4fd4aa(0x257)]=_0x1aa362[_0x4fd4aa(0x230)],_0x5ae9fd[_0x4fd4aa(0x20d)]=_0x5b0db2,_0x3adf92[_0x4fd4aa(0x24c)](_0x4f9f13,_0x5ae9fd,_0x556a93[_0x4fd4aa(0x268)],!![]);}}![AWS,AZURE,GCP][_0x4fd4aa(0x214)](_0x3101a8[_0x4fd4aa(0x217)][_0x4fd4aa(0x25d)]())&&(_0x556a93[_0x4fd4aa(0x1e9)](_0x556a93[_0x4fd4aa(0x27f)],_0x556a93['qPgxv'])?(_0x5118c6=_0x556a93[_0x4fd4aa(0x247)],await _0x556a93['UrduL'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x260)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)):_0x3ccea4[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x1e5)+_0x76ae2b+'\x20')),_0x3101a8['privateGrid']&&_0x556a93[_0x4fd4aa(0x1d9)](_0x3101a8[_0x4fd4aa(0x206)][_0x4fd4aa(0x25d)](),_0x556a93[_0x4fd4aa(0x1f8)])&&(_0x556a93[_0x4fd4aa(0x2d3)](_0x556a93['MmDYd'],_0x556a93[_0x4fd4aa(0x2e9)])?_0x2fdfdb[_0x4fd4aa(0x217)]={}:global_registry[_0x4fd4aa(0x2af)]=!![]),_0x40a009=!![],_0x20fe76=_0x3101a8[_0x4fd4aa(0x1e8)],_0x4c29bc=_0x3101a8[_0x4fd4aa(0x217)][_0x4fd4aa(0x25d)](),_0x526b38=_0x3101a8['region'];}}_0x3101a8[_0x4fd4aa(0x2eb)]&&(_0x556a93['QlvzJ'](_0x556a93['fMrGe'],_0x556a93[_0x4fd4aa(0x251)])?_0x321ed0=_0x3101a8['gridName']:_0x41e656[_0x4fd4aa(0x2af)]=!![]);global_registry[_0x4fd4aa(0x2eb)]=_0x321ed0;const _0x221007={};_0x221007['username']=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x240)],_0x221007[_0x4fd4aa(0x1d7)]=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x1d7)];const _0x1d8091={};_0x1d8091['method']=_0x556a93[_0x4fd4aa(0x2ee)],_0x1d8091[_0x4fd4aa(0x2a9)]=_0x221007;const _0x2dabec=_0x1d8091,_0x132e63=_0x4fd4aa(0x2ed)+AG_API_URL+_0x4fd4aa(0x243),_0x5e67a9={};_0x5e67a9[_0x4fd4aa(0x2eb)]=_0x321ed0;const _0x117792={'url':_0x132e63,'qs':_0x5e67a9,..._0x2dabec},_0x3e684a=_0x117792,_0x57b900=await _0x556a93[_0x4fd4aa(0x1d3)](promisifiedRequest,_0x3e684a);if(_0x556a93['jgdqw'](_0x57b900,null)||_0x556a93[_0x4fd4aa(0x1d9)](_0x57b900,undefined)){if(_0x556a93[_0x4fd4aa(0x24d)](_0x556a93['PaYPN'],_0x556a93[_0x4fd4aa(0x29f)]))_0x5118c6=_0x556a93[_0x4fd4aa(0x1f7)],await _0x556a93[_0x4fd4aa(0x224)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x1df)],_0x556a93['HDGAs']),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1);else{const _0x4cc3a9={};_0x4cc3a9[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x216)],_0x4cc3a9[_0x4fd4aa(0x257)]=_0x556a93['kffWk'];const _0x3c781d={};_0x3c781d[_0x4fd4aa(0x298)]=_0x556a93['esEFO'],_0x3c781d[_0x4fd4aa(0x257)]=_0x556a93['kffWk'];const _0x39daf7={};_0x39daf7[_0x4fd4aa(0x298)]=_0x556a93['Hofbu'],_0x39daf7['type']=_0x556a93[_0x4fd4aa(0x1d6)];const _0x588e86={};_0x588e86[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x22b)],_0x588e86[_0x4fd4aa(0x257)]=_0x556a93[_0x4fd4aa(0x1d6)];const _0x4c8228={};_0x4c8228[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x2fd)],_0x4c8228[_0x4fd4aa(0x257)]=_0x556a93[_0x4fd4aa(0x1d6)];const _0x34ac99={};_0x34ac99[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x279)],_0x34ac99[_0x4fd4aa(0x257)]=_0x556a93[_0x4fd4aa(0x1d6)];const _0x53771b={};return _0x53771b['grid-name']=_0x4cc3a9,_0x53771b[_0x4fd4aa(0x221)]=_0x3c781d,_0x53771b[_0x4fd4aa(0x2d6)]=_0x39daf7,_0x53771b['cloud-provider']=_0x588e86,_0x53771b[_0x4fd4aa(0x27e)]=_0x4c8228,_0x53771b['private-grid']=_0x34ac99,_0x43b078['usage'](_0x3c4bb0[_0x4fd4aa(0x1d4)])[_0x4fd4aa(0x2fa)](_0x3248b2)['options'](_0x53771b)[_0x4fd4aa(0x220)](_0x556a93[_0x4fd4aa(0x2b3)])['argv'];}}if(_0x556a93[_0x4fd4aa(0x2ba)](_0x57b900['statusCode'],0x191)){if(_0x556a93[_0x4fd4aa(0x25e)](_0x556a93[_0x4fd4aa(0x1d5)],_0x556a93[_0x4fd4aa(0x1de)]))_0x5118c6=_0x556a93[_0x4fd4aa(0x207)],await _0x556a93['XIlSA'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x1e0)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1);else{const _0x1337f5=_0x556a93['kZZao'][_0x4fd4aa(0x27d)]('|');let _0x199b03=0x0;while(!![]){switch(_0x1337f5[_0x199b03++]){case'0':_0x584547[_0x4fd4aa(0x2fc)](_0x5cde10);continue;case'1':const _0x658995={};_0x658995[_0x4fd4aa(0x257)]=_0x535509[_0x4fd4aa(0x2e6)],_0x658995[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x248),_0x1bf626[_0x4fd4aa(0x24c)](_0x21734e,_0x658995);continue;case'2':_0x56b797[_0x4fd4aa(0x1e8)]=_0x41d12c;continue;case'3':_0x2576af['browserVersion']=_0x662e44['browserVersion'];continue;case'4':const _0x3ad9d8={};_0x3ad9d8[_0x4fd4aa(0x257)]=_0xa4fbb6[_0x4fd4aa(0x230)],_0x3ad9d8['message']=_0x19456e,_0x24aad1[_0x4fd4aa(0x24c)](_0x247bd5,_0x3ad9d8);continue;case'5':_0x27eda6[_0x4fd4aa(0x2bf)]=_0x5cfa47['hubVersion'];continue;case'6':_0x4efd4d[_0x4fd4aa(0x217)]=_0x46900d;continue;case'7':_0x5e44be=_0x4fd4aa(0x1e3)+_0x5c0397+_0x4fd4aa(0x2b2)+_0x4038bb+'\x27';continue;case'8':_0x81f18[_0x4fd4aa(0x256)]=_0x43a370;continue;}break;}}}_0x556a93[_0x4fd4aa(0x2d3)](_0x57b900[_0x4fd4aa(0x1fb)],0xc8)&&(_0x556a93[_0x4fd4aa(0x1e9)](_0x556a93[_0x4fd4aa(0x233)],_0x556a93[_0x4fd4aa(0x280)])?_0x4049f9=_0x556a93[_0x4fd4aa(0x1f5)]:(_0x5118c6='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4fd4aa(0x2ac)](_0x57b900),await _0x556a93[_0x4fd4aa(0x224)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes['ERROR'],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x286)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)));const _0x3aa187=JSON['parse'](_0x57b900[_0x4fd4aa(0x2cc)]),_0x3dcce6={};_0x3dcce6[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x2e6)],_0x3dcce6[_0x4fd4aa(0x20d)]='CLI\x20run\x20started',webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x3dcce6);const _0x18c6f6={};_0x18c6f6[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x18c6f6[_0x4fd4aa(0x20d)]=_0x556a93['AeOim'],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x18c6f6);_0x3aa187[_0x4fd4aa(0x1ed)]&&(_0x556a93[_0x4fd4aa(0x2a0)](_0x556a93[_0x4fd4aa(0x1d1)],_0x556a93[_0x4fd4aa(0x1d1)])?(_0x11a99c=_0x3b9681[_0x4fd4aa(0x1cc)],_0x20795f=_0x556a93[_0x4fd4aa(0x2f6)]):(_0x5118c6=_0x556a93[_0x4fd4aa(0x28e)],await _0x556a93['UrduL'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x24f)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)));const _0x3713db=_0x3aa187[_0x4fd4aa(0x245)];let _0x37267e=_0x3713db[_0x3aa187[_0x4fd4aa(0x239)]];_0x3101a8[_0x4fd4aa(0x219)]&&(_0x556a93[_0x4fd4aa(0x2ca)](_0x556a93['stuFT'],_0x556a93[_0x4fd4aa(0x290)])?_0x429fa2=_0x29691e[_0x4fd4aa(0x2eb)]:_0x37267e=_0x3713db[_0x3101a8[_0x4fd4aa(0x219)]]);if(_0x556a93['FncaD'](_0x40a009,![])){if(_0x556a93[_0x4fd4aa(0x28b)](_0x556a93[_0x4fd4aa(0x26b)],_0x556a93[_0x4fd4aa(0x26b)]))_0x9811e2[_0x4fd4aa(0x2b8)](_0x556a93[_0x4fd4aa(0x2fb)]),_0x325704[_0x4fd4aa(0x228)](0x1);else{_0x556a93['dUNPv'](_0x37267e,undefined)&&(_0x556a93['zjUNs'](_0x556a93[_0x4fd4aa(0x208)],_0x556a93[_0x4fd4aa(0x208)])?_0x3df689['isPrivateGrid']=!![]:(_0x5118c6=_0x556a93[_0x4fd4aa(0x209)],await _0x556a93[_0x4fd4aa(0x225)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x284)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)));global_registry['gridProfileId']=_0x37267e['id'];(_0x556a93['CuLwY'](_0x4c29bc,AZURE)||_0x556a93['OWMQG'](_0x37267e?.[_0x4fd4aa(0x217)],AZURE))&&(_0x556a93[_0x4fd4aa(0x1d8)](_0x556a93[_0x4fd4aa(0x28a)],_0x556a93['QEcCF'])?_0x14bfaf[_0x4fd4aa(0x2fc)]('Found\x20Subnets:\x20'+_0x399a0a[_0x4fd4aa(0x2ac)](_0x47515d)+'\x20'):(console[_0x4fd4aa(0x2b8)](_0x556a93[_0x4fd4aa(0x2fb)]),process[_0x4fd4aa(0x228)](0x1)));_0x5118c6=_0x4fd4aa(0x2d4)+_0x321ed0+_0x4fd4aa(0x2b5)+_0x37267e[_0x4fd4aa(0x27a)]+'\x27\x20grid\x20profile',logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x701a59={};_0x701a59[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x701a59[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils['sendEventToBackend'](_0x3b5e2b,_0x701a59),_0x4c29bc=_0x37267e[_0x4fd4aa(0x217)],_0x20fe76=_0x37267e[_0x4fd4aa(0x1e8)],_0x526b38=_0x37267e[_0x4fd4aa(0x27e)],_0x5a6394=_0x37267e[_0x4fd4aa(0x1ee)],_0x152525=_0x37267e['instanceType'],_0xe74233=_0x37267e[_0x4fd4aa(0x2aa)],securityGroups=_0x37267e[_0x4fd4aa(0x2e7)],subnets=_0x37267e[_0x4fd4aa(0x2b7)],_0x583840=_0x37267e[_0x4fd4aa(0x29c)],_0x1761bc=_0x37267e[_0x4fd4aa(0x21a)],_0x4265c6=_0x37267e[_0x4fd4aa(0x1da)],_0x186545=_0x3aa187[_0x4fd4aa(0x2bf)],_0x12391f=_0x3aa187[_0x4fd4aa(0x2f3)];if(_0x556a93[_0x4fd4aa(0x215)](_0x37267e[_0x4fd4aa(0x206)],undefined)&&_0x37267e[_0x4fd4aa(0x206)]){if(_0x556a93['dUNPv'](_0x556a93[_0x4fd4aa(0x22a)],_0x556a93[_0x4fd4aa(0x292)])){const _0x4d02c0={};_0x4d02c0[_0x4fd4aa(0x257)]=_0x56fae5[_0x4fd4aa(0x230)],_0x4d02c0[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x234)+_0x4c87f3+_0x4fd4aa(0x274),_0x15bc3f[_0x4fd4aa(0x24c)](_0x37986f,_0x4d02c0,_0x556a93[_0x4fd4aa(0x2c3)]),_0x50d91f[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x234)+_0x51d8cc+_0x4fd4aa(0x274)),_0x40c7f9=!![];}else global_registry['isPrivateGrid']=!![];}_0x556a93[_0x4fd4aa(0x1e1)](updateGlobalRegistryWithConfig,_0x4c29bc,_0x20fe76,_0x526b38,_0x5a6394,_0x152525,_0x583840,_0x37267e,_0x186545,_0x12391f,_0x1761bc,_0x4265c6);}}else{const _0x12a634=_0x556a93[_0x4fd4aa(0x23c)]['split']('|');let _0x475feb=0x0;while(!![]){switch(_0x12a634[_0x475feb++]){case'0':global_registry[_0x4fd4aa(0x256)]=_0x526b38;continue;case'1':logger[_0x4fd4aa(0x2fc)](_0x5118c6);continue;case'2':global_registry['clusterName']=_0x20fe76;continue;case'3':global_registry[_0x4fd4aa(0x2bf)]=_0x3aa187['hubVersion'];continue;case'4':global_registry[_0x4fd4aa(0x2f3)]=_0x3aa187[_0x4fd4aa(0x2f3)];continue;case'5':_0x5118c6=_0x4fd4aa(0x1e3)+_0x321ed0+_0x4fd4aa(0x2b2)+_0x20fe76+'\x27';continue;case'6':global_registry['cloudProvider']=_0x4c29bc;continue;case'7':const _0x13c7fa={};_0x13c7fa[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x13c7fa[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x13c7fa);continue;case'8':const _0x358851={};_0x358851[_0x4fd4aa(0x257)]=WS_EVENTS['CLI_RUN_STARTED'],_0x358851[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x248),webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x358851);continue;}break;}}const _0x2a8d14=_0x556a93[_0x4fd4aa(0x20e)](getCloudProviderObject,_0x4c29bc,_0x20fe76,_0x321ed0,_0x3b5e2b,webSocketUtils),_0x13abbb=_0x3d114f[_0x4fd4aa(0x217)]||{};if(_0x556a93[_0x4fd4aa(0x1fe)](_0x13abbb[_0x4c29bc],undefined)){logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x1f3)]);_0x556a93['XmyPJ'](_0x3d114f[_0x4fd4aa(0x217)],undefined)&&(_0x3d114f['cloudProvider']={});_0x3d114f[_0x4fd4aa(0x217)][_0x4c29bc]={};const _0x28983a=await _0x556a93['CucUG'](inputCloudProviderKeys,_0x4c29bc,_0x3d114f,_0x2a8d14);fs[_0x4fd4aa(0x2c5)](_0x556a93[_0x4fd4aa(0x222)](getCredentialsPath),JSON['stringify'](_0x28983a)),logger[_0x4fd4aa(0x289)](_0x556a93[_0x4fd4aa(0x259)]);}else{_0x5118c6=_0x556a93['kFSGB'];const _0x24b04d={};_0x24b04d[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x24b04d['message']=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x24b04d),logger[_0x4fd4aa(0x2fc)](_0x5118c6),await _0x2a8d14[_0x4fd4aa(0x2be)](_0x13abbb);}_0x2a8d14[_0x4fd4aa(0x262)]();let _0x11bd91;if(_0x556a93[_0x4fd4aa(0x2a1)](_0x40a009,![])){_0x5118c6=_0x4fd4aa(0x297)+_0x526b38+').';const _0x397f9e={};_0x397f9e[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x397f9e[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x397f9e),logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x48a451=await _0x2a8d14['isClusterPresent']();if(_0x48a451){const _0x4ddb28={};_0x4ddb28['type']=WS_EVENTS['LOG'],_0x4ddb28[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x234)+_0x20fe76+_0x4fd4aa(0x274),webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x4ddb28,_0x556a93[_0x4fd4aa(0x2c3)]),logger[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x234)+_0x20fe76+_0x4fd4aa(0x274)),_0x40a009=!![];}else{const _0x4c2c4f={};_0x4c2c4f[_0x4fd4aa(0x257)]=WS_EVENTS['LOG'],_0x4c2c4f[_0x4fd4aa(0x20d)]=_0x556a93['lOQuq'],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x4c2c4f),logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x1d2)]);const _0x34cdce=_0x556a93['qVWHP'](_0xe74233,null)&&_0x556a93['iGkre'](_0xe74233,undefined),_0x31219b=_0x556a93[_0x4fd4aa(0x2ec)](subnets,null)&&_0x556a93[_0x4fd4aa(0x2d3)](subnets,undefined)&&_0x556a93[_0x4fd4aa(0x1ef)](subnets[_0x4fd4aa(0x20c)],0x0);if(_0x34cdce){_0x556a93[_0x4fd4aa(0x23e)](_0x31219b,![])&&(_0x5118c6=_0x556a93[_0x4fd4aa(0x2dc)],await _0x556a93[_0x4fd4aa(0x227)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x261)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1));const _0x17b273=await _0x2a8d14[_0x4fd4aa(0x271)](_0xe74233);_0x556a93[_0x4fd4aa(0x1e9)](_0x17b273,![])?(_0x5118c6=_0x556a93['zrqfS'],await _0x556a93[_0x4fd4aa(0x224)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes['ERROR'],_0x556a93['BoxAV'],_0x556a93['SdVYZ'],_0x556a93['HDGAs']),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)):logger[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x1e5)+_0xe74233+'\x20');const _0x3b0736=await _0x2a8d14[_0x4fd4aa(0x25f)](subnets,_0xe74233);_0x556a93[_0x4fd4aa(0x1e9)](_0x3b0736[0x0],![])?(_0x5118c6=_0x4fd4aa(0x2f8)+_0x3b0736[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0xe74233+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x556a93['xuIbz'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes['ERROR'],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93['WWtxL'],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)):logger[_0x4fd4aa(0x2fc)]('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x2a8d14[_0x4fd4aa(0x1f9)](_0xe74233,subnets);}else{const _0x974e55=_0x556a93[_0x4fd4aa(0x2e2)][_0x4fd4aa(0x27d)]('|');let _0x3ca1c1=0x0;while(!![]){switch(_0x974e55[_0x3ca1c1++]){case'0':logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x232)]);continue;case'1':logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x1cf)]);continue;case'2':const _0x229e4f={};_0x229e4f[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x229e4f[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x2c8),webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x229e4f);continue;case'3':await _0x2a8d14[_0x4fd4aa(0x1f9)]();continue;case'4':const _0x532d4d={};_0x532d4d[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x532d4d[_0x4fd4aa(0x20d)]=_0x556a93[_0x4fd4aa(0x1cf)],webSocketUtils['sendEventToBackend'](_0x3b5e2b,_0x532d4d);continue;}break;}}}}_0x40a009&&_0x556a93['jYAMO'](_0x4c29bc,AZURE)&&(global_registry[_0x4fd4aa(0x2c9)]=_0x3aa187['s3BucketName'],await _0x2a8d14['updatePreSpawnedCluster'](),await _0x2a8d14[_0x4fd4aa(0x2b0)]());const [_0x56ac7b,_0x10c22d,_0x224751,_0x116ab2,_0x321f95,_0x217113]=await _0x556a93[_0x4fd4aa(0x1d3)](createK8sClient,_0x2a8d14);_0x556a93[_0x4fd4aa(0x2bc)](_0x40a009,![])&&_0x556a93[_0x4fd4aa(0x2b9)](_0x4c29bc,AWS)&&(_0x11bd91=await _0x2a8d14[_0x4fd4aa(0x293)](_0x56ac7b,_0x3101a8));try{_0x1169c5=_0x556a93[_0x4fd4aa(0x1d3)](kebabCase,_0x321ed0),logger['info'](_0x556a93[_0x4fd4aa(0x2cd)]);const _0x2c787e={};_0x2c787e['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x2c787e[_0x4fd4aa(0x20d)]=_0x556a93[_0x4fd4aa(0x2cd)],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x2c787e);if(_0x556a93['COvQX'](_0x1169c5,_0x556a93[_0x4fd4aa(0x2a2)])){const _0x4854e6={};_0x4854e6[_0x4fd4aa(0x29e)]=_0x556a93[_0x4fd4aa(0x2e3)],_0x4854e6[_0x4fd4aa(0x278)]=_0x556a93[_0x4fd4aa(0x2e3)];const _0x5b9bfd={};_0x5b9bfd['name']=_0x1169c5,_0x5b9bfd[_0x4fd4aa(0x2d1)]=_0x4854e6;const _0x201e2d={};_0x201e2d[_0x4fd4aa(0x236)]=_0x5b9bfd;let _0x388057=_0x201e2d;await _0x56ac7b[_0x4fd4aa(0x238)](_0x388057),logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x2fe)]);}const _0x10bbb2={};_0x10bbb2[_0x4fd4aa(0x257)]=WS_EVENTS['LOG'],_0x10bbb2['message']=_0x556a93[_0x4fd4aa(0x202)],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x10bbb2);const _0x96979e={};_0x96979e['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x96979e['message']=_0x556a93[_0x4fd4aa(0x2f0)],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x96979e),logger[_0x4fd4aa(0x2fc)](_0x556a93['AuGbJ']);let _0x1da14e={};_0x556a93[_0x4fd4aa(0x2ef)](_0x4c29bc,AZURE)&&(_0x1da14e={'clientId':await _0x2a8d14[_0x4fd4aa(0x235)](_0x4fd4aa(0x2ae)+_0x20fe76)});await _0x556a93[_0x4fd4aa(0x269)](addGridComponents,_0x56ac7b,_0x10c22d,_0x224751,_0x116ab2,_0x1169c5,_0x20fe76,_0x11bd91,_0x321f95,_0x217113,_0x1da14e),_0x5118c6=_0x556a93[_0x4fd4aa(0x2da)],logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x4c8d19={};_0x4c8d19['type']=WS_EVENTS['LOG'],_0x4c8d19[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x4c8d19),_0x5118c6=_0x556a93[_0x4fd4aa(0x288)],logger['info'](_0x5118c6);const _0x133528={};_0x133528['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x133528[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x133528),await webSocketUtils[_0x4fd4aa(0x29a)](0xea60);const _0x4f8d4d=await _0x556a93[_0x4fd4aa(0x27b)](getNamespaceUID,_0x56ac7b,_0x1169c5);let _0x20ce83=global_registry[_0x4fd4aa(0x2af)]?_0x556a93[_0x4fd4aa(0x1ec)]:_0x556a93[_0x4fd4aa(0x23f)],_0x1bc8cf=await _0x56ac7b['readNamespacedService'](_0x20ce83,_0x556a93['EMkBG']),_0x301104=_0x2a8d14[_0x4fd4aa(0x281)](_0x1bc8cf)+'/'+_0x1169c5,_0x4d9b46=_0x556a93['WrgQe'];try{const _0x46ee2f={'url':'https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x4f8d4d,..._0x2dabec},_0x2593f7=_0x46ee2f,_0x2dcc4b=await _0x556a93[_0x4fd4aa(0x1d3)](promisifiedRequest,_0x2593f7);(_0x556a93[_0x4fd4aa(0x2b9)](_0x2dcc4b,null)||_0x556a93['qQkwJ'](_0x2dcc4b,undefined))&&(_0x5118c6=_0x556a93[_0x4fd4aa(0x2bd)],await _0x556a93[_0x4fd4aa(0x227)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93['NrrCM'],_0x556a93['HDGAs']),logger['error'](_0x5118c6),process[_0x4fd4aa(0x228)](0x1));_0x556a93[_0x4fd4aa(0x211)](_0x2dcc4b[_0x4fd4aa(0x1fb)],0x191)&&(_0x5118c6=_0x556a93['NHyiz'],await _0x556a93[_0x4fd4aa(0x1f0)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x300)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1));_0x556a93[_0x4fd4aa(0x1e4)](_0x2dcc4b[_0x4fd4aa(0x1fb)],0xc8)&&(_0x5118c6=_0x4fd4aa(0x1d0)+JSON[_0x4fd4aa(0x2ac)](_0x2dcc4b),await _0x556a93[_0x4fd4aa(0x276)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93['BoxAV'],_0x556a93[_0x4fd4aa(0x2c2)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process['exit'](0x1));const _0x287a4c=JSON[_0x4fd4aa(0x270)](_0x2dcc4b['body']);_0x287a4c[_0x4fd4aa(0x1cc)]&&(_0x301104=_0x287a4c[_0x4fd4aa(0x1cc)],_0x4d9b46=_0x556a93[_0x4fd4aa(0x2f6)]),global_registry[_0x4fd4aa(0x2af)]&&(_0x4d9b46=_0x556a93[_0x4fd4aa(0x1f5)]);}catch(_0x13accd){}_0x5118c6=_0x4fd4aa(0x210)+_0x301104+'\x20',logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x453e80={};_0x453e80['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x453e80[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x453e80),_0x5118c6='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x4d9b46+'://'+_0x301104+'/wd/hub',logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x589888={};_0x589888[_0x4fd4aa(0x257)]=WS_EVENTS['LOG'],_0x589888[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils['sendEventToBackend'](_0x3b5e2b,_0x589888);const _0x3d4322={};_0x3d4322['type']=WS_EVENTS[_0x4fd4aa(0x24e)],_0x3d4322[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x283)+_0x301104,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x3d4322),await webSocketUtils[_0x4fd4aa(0x29a)](0x7d0);}catch(_0x1b5118){if(_0x556a93[_0x4fd4aa(0x1f2)](_0x40a009,![]))try{logger['info'](_0x4fd4aa(0x28f)),await _0x556a93[_0x4fd4aa(0x20e)](removeGridComponents,_0x56ac7b,_0x10c22d,_0x224751,_0x116ab2,_0x1169c5),await _0x2a8d14[_0x4fd4aa(0x1cd)](_0x56ac7b,global_registry[_0x4fd4aa(0x256)]);}catch(_0x3eb7bd){throw _0x3eb7bd;}throw _0x1b5118;}}catch(_0x92ffb1){const _0x59c915=_0x4fd4aa(0x2f7)+_0x92ffb1+'\x20\x0a'+JSON[_0x4fd4aa(0x2ac)](_0x92ffb1)+'\x20';if(_0x3b5e2b){const _0x1d7499={};_0x1d7499[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x1d7499[_0x4fd4aa(0x20d)]=_0x59c915,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x1d7499,_0x556a93[_0x4fd4aa(0x268)],!![]);}await webSocketUtils[_0x4fd4aa(0x29a)](0x7d0);const _0x100af8={};_0x100af8[_0x4fd4aa(0x2b8)]=_0x59c915,await _0x556a93['WcVPD'](sendInstrumentationEvent,_0x3101a8,_0x556a93[_0x4fd4aa(0x2c7)],messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x218)],_0x100af8,_0x3101a8),logger[_0x4fd4aa(0x2b8)](_0x59c915);}process[_0x4fd4aa(0x228)](0x0);};
|
|
1
|
+
function a10_0x1eff(){const _0x2f8351=['../../utils/instrumentationUtils','hubVersion','grid-profile','tjYwR','3822540VJdlut','dQKyQ','rpNoq','\x20in\x20existing\x20cluster\x20\x27','username','UfPyF','1288917fhZTjw','QqXYK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','irGAp','zNdnq','LDBre','jJAEH','Cluster\x20','CLI\x20run\x20started','onIBj','DZYvT','QfgxJ','pre-spawned-subnets-not-selected','YnWJC','pVKNA','s3BucketName','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','LOG','GBCpj','zaanH','statusCode','create-grid-called','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.','://','HjSBS','tpDIM','clusterName','https','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','body','route53','yFqvf','RKERQ','getResourceClientId','jxhyT','readFileSync','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','handler','IzcYC','Namespace\x20Created','fuTID','RyrXf','cloudProvider','dEFff','length','grid-name','privateGrid','PbBHH','FfFsq','warn','concurrency','CZtFN','http','xTcTC','fpDkO','IiIWo','gridProfileId','grid-spawning-failed','zjtKz','VXqmt','browserVersion','PiFZK','ingress-nginx','VPACi','QuXxJ','bstackUsername','5|1|6|7|0|2|4|8|3','existsSync','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','iwspL','isPrivateGrid','s3bucket','Spawning\x20the\x20grid\x20','Will\x20be\x20spawning\x20the\x20grid\x20','jBEiV','auth','non-aws-azure-cluster','get-grid-url-null-response','grid','error','3iydhFx','type','adXFc','tSORC','eoAVi','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','info','help','26842cBjNbn','writeFileSync','LJMQL','qCuLz','BXgQU','turboscale-managed-identity-','fetchLocalCreds','createdBy','NVlFz','zDWjQ','Namespace\x20created','create-grid-checks-null-response','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','uIBAv','ZgonX','ictQP','aGTSZ','kDiTE','BqCSy','aSFST','create-grid-checks-non-200','1|5|0|2|3|7|4|6|8','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','irzfR','pVJIo','Create\x20a\x20new\x20Automation\x20grid.','gridProfile','ABoPm','vpc','exit','185zkiIZR','mdyGk','get-grid-url-non-200','create','cSEaI','util','ERROR','/wd/hub','argv','8HSCFHs','builder','wuAIG','isClusterPresent','iEJao','910793VaqEDZ','onOqE','annotations','aGEup','fTkLW','UUemQ','oHxmA','uZBaT','options','Njotl','WebSocket','Creating\x20namespace','gywVY','BzxOs','Browserstack','38saQshv','requestId','zUiNL','reconnecting-websocket','password','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','JevTI','MJDpm','AooSS','uiOsg','\x27\x20grid\x20profile','clusterRegion','AwGON','bcBEb','method','toLowerCase','isSubnetsValid','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','bzGjK','get-grid-url-auth-failed','Found\x20Subnets:\x20','bstackAccesskey','managedBy','init-not-called','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','epilogue','create-grid-checks-grid-already-exists','87618DnYpwm','XUIgU','Grid\x20can\x20be\x20accessed\x20at:\x20','WgZCo','lnxUg','pzODL','hzFcd','addListeners','createOtherResources','/packages/cli/get-grid-url?gridIdentifier=','NpdRJ','kydOe','JJJEf','region','cuhwe','private-ingress-nginx-controller','YyAhS','BVlsR','promisify','iKIIS','FxrqF','setupAutoscaler','sBuVl','CLI_RUN_STARTED','../../config/logger','https://','metadata','hVqHE','12zoHaZj','jQHCC','replace','951012tMrbBP','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/create-grid-checks','description','sjJLM','sendEventToBackend','SEPyY','JblkK','xtalp','../../utils/createk8sClient','yoTzc','IzSgG','s3Bucket','YlHxZ','pre-spawned-invalid-vpc','connectionTimeout','uuid','cluster-name','NxLRZ','11HXvSQB','xvflQ','ccWMf','ODMOH','540440BOgiNO','uTAtc','request','../../utils/gridComponents','securityGroups','VaOPU','pdmIo','private-grid','Found\x20VPC:\x20','../../config/constants','delay','jNrNW','RHcjO','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ngxMo','wWeng','Cluster\x20created\x20successfully','true','bnJdv','createNamespace','instanceType','VbxiQ','BmrSP','Spawning\x20Grid\x20on\x20the\x20Cluster','lzBbp','isVPCPresent','cloud-provider','TZmpO','URttk','ooBAs','Grid\x20spawned\x20on\x20the\x20cluster','desc','CtfUC','Create\x20a\x20private/public\x20grid.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','message','alreadyPresent','defaultGridProfile','IMCHi','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','OgqRH','ClQbP','oIpwg','\x20are\x20not\x20present\x20in\x20VPC:\x20','FAGAA','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','minNodes','qQLsJ','getGridHostname','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','user','JfmBQ','YuGeW','setupNewCluster','iuCKE','rwZOz','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','usage','create-grid-checks-invalid-profile','uyfXe','hWOwv','VDhnx','Deleting\x20the\x20CloudFormation\x20Stacks','DASUh','CbjRU','string','Grid\x20profile\x20fetched\x20from\x20backend','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','INFO','OYXGs','stringify','KsDWs','subnets','DuwfP','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','VloOL','configureIfNotConfigured','pPFuf','pdvGi','beiLA','gridName','wWgqp','wzJhw','command','dHhaj','split'];a10_0x1eff=function(){return _0x2f8351;};return a10_0x1eff();}const a10_0xdcb783=a10_0x6a52;function a10_0x6a52(_0x1ce290,_0xe289f8){const _0x1eff07=a10_0x1eff();return a10_0x6a52=function(_0x6a52a9,_0x142d71){_0x6a52a9=_0x6a52a9-0x109;let _0x42d594=_0x1eff07[_0x6a52a9];return _0x42d594;},a10_0x6a52(_0x1ce290,_0xe289f8);}(function(_0x1c8f0a,_0x148a32){const _0x297379=a10_0x6a52,_0x2d4bd0=_0x1c8f0a();while(!![]){try{const _0x4e9078=-parseInt(_0x297379(0x218))/0x1*(parseInt(_0x297379(0x10e))/0x2)+parseInt(_0x297379(0x210))/0x3*(-parseInt(_0x297379(0x15f))/0x4)+-parseInt(_0x297379(0x236))/0x5*(-parseInt(_0x297379(0x129))/0x6)+parseInt(_0x297379(0x1bf))/0x7+-parseInt(_0x297379(0x23f))/0x8*(parseInt(_0x297379(0x148))/0x9)+-parseInt(_0x297379(0x1b9))/0xa*(-parseInt(_0x297379(0x15b))/0xb)+parseInt(_0x297379(0x145))/0xc*(-parseInt(_0x297379(0x244))/0xd);if(_0x4e9078===_0x148a32)break;else _0x2d4bd0['push'](_0x2d4bd0['shift']());}catch(_0xdf062f){_0x2d4bd0['push'](_0x2d4bd0['shift']());}}}(a10_0x1eff,0x45ca3));const fs=require('fs'),ws=require('ws'),util=require(a10_0xdcb783(0x23b)),ReconnectingWebSocket=require(a10_0xdcb783(0x111)),request=require(a10_0xdcb783(0x161)),{v4:uuidv4}=require(a10_0xdcb783(0x158)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a10_0xdcb783(0x141)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0xdcb783(0x168)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0xdcb783(0x162)),{createK8sClient}=require(a10_0xdcb783(0x151)),{sendInstrumentationEvent}=require(a10_0xdcb783(0x1b5)),promisifiedRequest=util[a10_0xdcb783(0x13b)](request);exports[a10_0xdcb783(0x1b2)]=a10_0xdcb783(0x20e),exports[a10_0xdcb783(0x17e)]=a10_0xdcb783(0x231),exports[a10_0xdcb783(0x240)]=function(_0x1473bf){const _0x4be587=a10_0xdcb783,_0x32e65f={};_0x32e65f['VbxiQ']='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x32e65f[_0x4be587(0x233)]=_0x4be587(0x1a0),_0x32e65f['jQHCC']=_0x4be587(0x1e4),_0x32e65f['yKZWJ']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x32e65f[_0x4be587(0x24b)]=_0x4be587(0x215),_0x32e65f[_0x4be587(0x1f0)]=_0x4be587(0x1d0),_0x32e65f['jJAEH']=_0x4be587(0x180),_0x32e65f['oHxmA']=_0x4be587(0x217);const _0x4e6cfc=_0x32e65f,_0x3aaf48={};_0x3aaf48[_0x4be587(0x14b)]=_0x4e6cfc[_0x4be587(0x174)],_0x3aaf48['type']=_0x4e6cfc[_0x4be587(0x233)];const _0x54a1c7={};_0x54a1c7['description']=_0x4e6cfc[_0x4be587(0x146)],_0x54a1c7[_0x4be587(0x211)]=_0x4e6cfc[_0x4be587(0x233)];const _0x30cb63={};_0x30cb63[_0x4be587(0x14b)]=_0x4e6cfc['yKZWJ'],_0x30cb63[_0x4be587(0x211)]=_0x4e6cfc[_0x4be587(0x233)];const _0x53f4aa={};_0x53f4aa[_0x4be587(0x14b)]=_0x4e6cfc[_0x4be587(0x24b)],_0x53f4aa['type']=_0x4e6cfc['ABoPm'];const _0xcc475e={};_0xcc475e['description']=_0x4e6cfc['FfFsq'],_0xcc475e['type']=_0x4e6cfc[_0x4be587(0x233)];const _0x267c62={};_0x267c62[_0x4be587(0x14b)]=_0x4e6cfc[_0x4be587(0x1c6)],_0x267c62[_0x4be587(0x211)]=_0x4e6cfc[_0x4be587(0x233)];const _0x100d9b={};return _0x100d9b[_0x4be587(0x1ed)]=_0x3aaf48,_0x100d9b[_0x4be587(0x1b7)]=_0x54a1c7,_0x100d9b[_0x4be587(0x159)]=_0x30cb63,_0x100d9b[_0x4be587(0x179)]=_0x53f4aa,_0x100d9b[_0x4be587(0x136)]=_0xcc475e,_0x100d9b[_0x4be587(0x166)]=_0x267c62,_0x1473bf[_0x4be587(0x198)](HELP_HEADER_MESSAGE['create'])[_0x4be587(0x127)](HELP_FOOTER_MESSAGE)[_0x4be587(0x24c)](_0x100d9b)[_0x4be587(0x217)](_0x4e6cfc[_0x4be587(0x24a)])[_0x4be587(0x23e)];},exports[a10_0xdcb783(0x1e5)]=async function(_0x453497){const _0x3e257d=a10_0xdcb783,_0x5c6aaf={'yoTzc':_0x3e257d(0x202),'YyAhS':_0x3e257d(0x1f1),'sBuVl':_0x3e257d(0x1f4),'rwZOz':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','iEJao':_0x3e257d(0x1a0),'BVlsR':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vCUmB':_0x3e257d(0x190),'irzfR':_0x3e257d(0x215),'pdvGi':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','xZVYP':'Create\x20a\x20private/public\x20grid.','pPFuf':_0x3e257d(0x217),'bcBEb':_0x3e257d(0x204),'NVlFz':_0x3e257d(0x1db),'beiLA':_0x3e257d(0x20f),'fuTID':function(_0x1bc2d2){return _0x1bc2d2();},'kydOe':function(_0x351b33){return _0x351b33();},'JevTI':function(_0x3be601,_0x2c233d){return _0x3be601!==_0x2c233d;},'naQZr':'EdLHm','uiOsg':_0x3e257d(0x15d),'QuXxJ':_0x3e257d(0x1c1),'FxrqF':function(_0x4a0af0,_0x19ef14,_0x309a38,_0x6a305d,_0x1ecf2e,_0x987ac1,_0x481d8c){return _0x4a0af0(_0x19ef14,_0x309a38,_0x6a305d,_0x1ecf2e,_0x987ac1,_0x481d8c);},'aGTSZ':_0x3e257d(0x1d5),'BwaUT':_0x3e257d(0x125),'OgqRH':function(_0x1f193c,_0x4ddc04,_0x18165e,_0x1774d8,_0x4ea9ba,_0x3db0e5,_0x3fe60b){return _0x1f193c(_0x4ddc04,_0x18165e,_0x1774d8,_0x4ea9ba,_0x3db0e5,_0x3fe60b);},'NxLRZ':'<UsernamePlaceholder>','wzJhw':'<PasswordPlaceholder>','BPvLB':'Adding\x20Websocket\x20listeners','YuGeW':function(_0x236397,_0x285ed3){return _0x236397!==_0x285ed3;},'irGAp':_0x3e257d(0x18b),'BmrSP':_0x3e257d(0x1fb),'ngxMo':function(_0x175aa2,_0x1431c1){return _0x175aa2!==_0x1431c1;},'IMCHi':_0x3e257d(0x1b0),'aSFST':_0x3e257d(0x1dc),'QqXYK':function(_0x12d732,_0x58027a,_0x217a7b,_0x5a85a5,_0x6dff58,_0x5804ba,_0x10c15,_0x54bd63){return _0x12d732(_0x58027a,_0x217a7b,_0x5a85a5,_0x6dff58,_0x5804ba,_0x10c15,_0x54bd63);},'yFqvf':'prespawned-cluster-args-not-passed','fTkLW':function(_0x2f5cb6,_0x2e5873){return _0x2f5cb6!==_0x2e5873;},'wWeng':_0x3e257d(0x153),'onOqE':_0x3e257d(0x137),'RyrXf':_0x3e257d(0x16c),'xtalp':function(_0x6dcae1,_0x2742ed,_0x5e0e56,_0x25ff78,_0x54f079,_0x8191fe,_0x23867d,_0x2e55d1){return _0x6dcae1(_0x2742ed,_0x5e0e56,_0x25ff78,_0x54f079,_0x8191fe,_0x23867d,_0x2e55d1);},'fpDkO':_0x3e257d(0x20c),'UUemQ':function(_0x5ed541,_0x47b1c9){return _0x5ed541===_0x47b1c9;},'ClQbP':_0x3e257d(0x170),'IiIWo':function(_0x3ba1aa,_0x30856d){return _0x3ba1aa!==_0x30856d;},'iuCKE':_0x3e257d(0x1eb),'rpNoq':_0x3e257d(0x212),'uTAtc':function(_0x4b8ac6,_0xda8d21){return _0x4b8ac6===_0xda8d21;},'BXgQU':'ZxTKj','VloOL':'GET','uyfXe':function(_0xa99f3,_0x2492e6){return _0xa99f3(_0x2492e6);},'hWOwv':_0x3e257d(0x241),'pVJIo':_0x3e257d(0x186),'DZYvT':function(_0x2d495e,_0x3e45f5,_0xc531ae,_0x31cc33,_0x400a91,_0x5b945e,_0x2b8726,_0xb601d1){return _0x2d495e(_0x3e45f5,_0xc531ae,_0x31cc33,_0x400a91,_0x5b945e,_0x2b8726,_0xb601d1);},'LDBre':_0x3e257d(0x223),'TZmpO':function(_0x1ddd25,_0x4ccb18){return _0x1ddd25===_0x4ccb18;},'LgbxI':function(_0x1161f8,_0x455ffb){return _0x1161f8!==_0x455ffb;},'eoAVi':_0x3e257d(0x12e),'URttk':_0x3e257d(0x18e),'jBEiV':_0x3e257d(0x149),'dQKyQ':function(_0x27382b,_0x176b92,_0x20cc04,_0x2860d1,_0x189e1b,_0x411bb3,_0x2cb3e2,_0x4bbfb4){return _0x27382b(_0x176b92,_0x20cc04,_0x2860d1,_0x189e1b,_0x411bb3,_0x2cb3e2,_0x4bbfb4);},'dyNxP':'create-grid-checks-auth-failed','zjtKz':_0x3e257d(0x22a),'MJDpm':function(_0x51be46,_0x386895,_0x2b42d6,_0x5d611d,_0x240895,_0x100c49,_0xdc7460,_0x3a1a10){return _0x51be46(_0x386895,_0x2b42d6,_0x5d611d,_0x240895,_0x100c49,_0xdc7460,_0x3a1a10);},'SEPyY':_0x3e257d(0x22c),'hzFcd':_0x3e257d(0x1a1),'RHcjO':function(_0x300173,_0xfcfdce){return _0x300173===_0xfcfdce;},'IdZRk':_0x3e257d(0x24d),'XUIgU':'AjvkB','CbjRU':_0x3e257d(0x181),'JblkK':_0x3e257d(0x128),'AooSS':function(_0x5b34c8,_0x214d9c){return _0x5b34c8!==_0x214d9c;},'YlHxZ':_0x3e257d(0x23a),'ODMOH':_0x3e257d(0x1d8),'onIBj':_0x3e257d(0x237),'gywVY':'caiGR','GBCpj':'hXPKU','PiFZK':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','sjJLM':function(_0x31c8c8,_0x33e7c5,_0x342b08,_0x57bba9,_0x3f44de,_0x51590a,_0x57b57d,_0x12f08e){return _0x31c8c8(_0x33e7c5,_0x342b08,_0x57bba9,_0x3f44de,_0x51590a,_0x57b57d,_0x12f08e);},'qkIbd':_0x3e257d(0x199),'BzxOs':function(_0x3c696d,_0x45fdbb){return _0x3c696d===_0x45fdbb;},'UaMix':function(_0x5487ec,_0x5116d3){return _0x5487ec===_0x5116d3;},'XpHzI':_0x3e257d(0x192),'kaNzf':'pqvWL','jxhyT':function(_0x50f2d5,_0x2132ca){return _0x50f2d5!==_0x2132ca;},'VaOPU':_0x3e257d(0x226),'tpDIM':_0x3e257d(0x221),'DNzQf':function(_0x4c8fff,_0x34701b,_0x1e408e,_0x475269,_0x556375,_0x2a8859,_0x43313e,_0x593e11,_0xdb4419,_0x379f18,_0x568125,_0x2a677a){return _0x4c8fff(_0x34701b,_0x1e408e,_0x475269,_0x556375,_0x2a8859,_0x43313e,_0x593e11,_0xdb4419,_0x379f18,_0x568125,_0x2a677a);},'ooBAs':_0x3e257d(0x22d),'iKIIS':function(_0x418627,_0xf2c02a,_0x1f10e6,_0x28bb55,_0x2e3fa5,_0xd8e63d){return _0x418627(_0xf2c02a,_0x1f10e6,_0x28bb55,_0x2e3fa5,_0xd8e63d);},'tSORC':function(_0xdca110,_0x29b98a){return _0xdca110===_0x29b98a;},'ictQP':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','puKEu':function(_0x36d33f,_0x3e6104){return _0x36d33f===_0x3e6104;},'DuwfP':function(_0xda7b2f,_0x2b5a7a,_0x43edf1,_0x28a05d){return _0xda7b2f(_0x2b5a7a,_0x43edf1,_0x28a05d);},'bzGjK':function(_0xadc6ea){return _0xadc6ea();},'PnBJj':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','HJQEf':_0x3e257d(0x1c2),'kDiTE':function(_0x5eb4ab,_0x3b05f5){return _0x5eb4ab===_0x3b05f5;},'oIpwg':_0x3e257d(0x18c),'WgZCo':function(_0x5cdd30,_0x310d07){return _0x5cdd30!=_0x310d07;},'zUiNL':function(_0x11ff3c,_0x2e8ad7){return _0x11ff3c!==_0x2e8ad7;},'xvflQ':function(_0x3c3a43,_0x5f08a4){return _0x3c3a43!==_0x5f08a4;},'RKERQ':function(_0x5158b0,_0x44fc13){return _0x5158b0>_0x44fc13;},'VPACi':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','pVKNA':_0x3e257d(0x1cc),'pdXNu':_0x3e257d(0x1a9),'lnxUg':_0x3e257d(0x156),'PbBHH':function(_0x1cf2da,_0x191678,_0x192a8e,_0x276c77,_0x215656,_0x4b0228,_0xcff02a,_0xc132f4){return _0x1cf2da(_0x191678,_0x192a8e,_0x276c77,_0x215656,_0x4b0228,_0xcff02a,_0xc132f4);},'Nyoui':'pre-spawned-invalid-subnets','czJEZ':'4|1|2|3|0','NpdRJ':_0x3e257d(0x16f),'OYXGs':_0x3e257d(0x1d6),'lzBbp':function(_0x1005d7,_0x3f4c68){return _0x1005d7(_0x3f4c68);},'hVqHE':function(_0x35ebe8,_0x3734c1){return _0x35ebe8==_0x3734c1;},'LJMQL':_0x3e257d(0x10a),'UfPyF':function(_0x3183c8,_0x1ee201){return _0x3183c8!==_0x1ee201;},'Wqcoq':'default','aGEup':_0x3e257d(0x10d),'VDhnx':_0x3e257d(0x1e7),'YnWJC':_0x3e257d(0x222),'KsDWs':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','tjYwR':_0x3e257d(0x176),'hraXf':function(_0x29707a,_0x2e7b12){return _0x29707a===_0x2e7b12;},'uIBAv':function(_0x1cc1d9,_0x4402d7,_0x2ffc96,_0x890b8,_0x274286,_0x412c35,_0x301e03,_0x18eb05,_0x18ccd6,_0x474825,_0x41faa2){return _0x1cc1d9(_0x4402d7,_0x2ffc96,_0x890b8,_0x274286,_0x412c35,_0x301e03,_0x18eb05,_0x18ccd6,_0x474825,_0x41faa2);},'AwGON':_0x3e257d(0x17d),'bnJdv':_0x3e257d(0x22e),'pdmIo':function(_0x594f4d,_0x201419,_0x23de92){return _0x594f4d(_0x201419,_0x23de92);},'xTcTC':_0x3e257d(0x138),'qCuLz':'ingress-nginx-controller','pljfT':_0x3e257d(0x1fe),'DASUh':function(_0x277734,_0x185ba4){return _0x277734==_0x185ba4;},'dHhaj':function(_0x47c87f,_0x1ba540){return _0x47c87f==_0x1ba540;},'ElVhS':_0x3e257d(0x11f),'nEPcT':_0x3e257d(0x20d),'zaanH':function(_0x17e7aa,_0xa7aa3f){return _0x17e7aa===_0xa7aa3f;},'zNdnq':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','CZtFN':function(_0xacf400,_0x5aef6a,_0x516d47,_0x4ac55c,_0x139fa7,_0x5456ad,_0x46a93a,_0xd0e6b1){return _0xacf400(_0x5aef6a,_0x516d47,_0x4ac55c,_0x139fa7,_0x5456ad,_0x46a93a,_0xd0e6b1);},'CtfUC':_0x3e257d(0x121),'JJJEf':function(_0x1d90d1,_0x57b427,_0x4285b3,_0x473652,_0x501de3,_0x201448,_0x517f69,_0x21ff42){return _0x1d90d1(_0x57b427,_0x4285b3,_0x473652,_0x501de3,_0x201448,_0x517f69,_0x21ff42);},'QfgxJ':_0x3e257d(0x238),'jNrNW':function(_0x5b673b,_0x49af58){return _0x5b673b===_0x49af58;},'iwspL':function(_0x48ee28,_0x1e52f8,_0x22d406,_0x10c4d5,_0x171333,_0x419b4d){return _0x48ee28(_0x1e52f8,_0x22d406,_0x10c4d5,_0x171333,_0x419b4d);},'IzcYC':_0x3e257d(0x1f9)};let _0xc959c7=![],_0xcd440f,_0x246311,_0x1b5df5,_0x4599b6,_0x4f7d56,_0x4e1d68,_0x6db9a8,_0x53f4f7,_0x4de76c,_0x561851,_0x3f7caa,_0x8c1aa1,_0x730521=0x1,_0xde9ed5=0xe;try{global_registry[_0x3e257d(0x10f)]=_0x5c6aaf[_0x3e257d(0x1e8)](uuidv4),global_registry[_0x3e257d(0x206)]=![];!fs[_0x3e257d(0x203)](_0x5c6aaf[_0x3e257d(0x134)](getCredentialsPath))&&(_0x5c6aaf[_0x3e257d(0x114)](_0x5c6aaf['naQZr'],_0x5c6aaf[_0x3e257d(0x117)])?(console[_0x3e257d(0x20f)](_0x5c6aaf[_0x3e257d(0x200)]),await _0x5c6aaf['FxrqF'](sendInstrumentationEvent,_0x453497,_0x5c6aaf[_0x3e257d(0x228)],messageTypes['ERROR'],_0x5c6aaf['BwaUT'],null,_0x453497),process[_0x3e257d(0x235)](0x1)):_0x2d487e['isPrivateGrid']=!![]);await _0x5c6aaf[_0x3e257d(0x187)](sendInstrumentationEvent,_0x453497,_0x5c6aaf['aGTSZ'],messageTypes[_0x3e257d(0x1a3)],null,null,_0x453497);const _0xe1ed7e=JSON['parse'](fs[_0x3e257d(0x1e3)](_0x5c6aaf[_0x3e257d(0x134)](getCredentialsPath)));global_registry[_0x3e257d(0x201)]=_0xe1ed7e[_0x3e257d(0x10d)][_0x3e257d(0x1bd)],global_registry[_0x3e257d(0x123)]=_0xe1ed7e[_0x3e257d(0x10d)]['password'];const _0x2e4a04=WS_ENDPOINT[_0x3e257d(0x147)](_0x5c6aaf[_0x3e257d(0x15a)],_0xe1ed7e[_0x3e257d(0x10d)][_0x3e257d(0x1bd)])[_0x3e257d(0x147)](_0x5c6aaf[_0x3e257d(0x1b1)],_0xe1ed7e['Browserstack'][_0x3e257d(0x112)]),_0x1a178e={};_0x1a178e[_0x3e257d(0x109)]=ws,_0x1a178e[_0x3e257d(0x157)]=0x36ee80,_0x561851=new ReconnectingWebSocket(_0x2e4a04,[],_0x1a178e),logger['debug'](_0x5c6aaf['BPvLB']),webSocketUtils[_0x3e257d(0x130)](_0x561851,_0x453497[_0x3e257d(0x191)],_0x453497[_0x3e257d(0x112)]);let _0xa07af8=DEFAULT_GRID_NAME;if(_0x453497[_0x3e257d(0x1da)]||_0x453497[_0x3e257d(0x1ea)]||_0x453497[_0x3e257d(0x136)]){if(_0x5c6aaf[_0x3e257d(0x193)](_0x5c6aaf[_0x3e257d(0x1c3)],_0x5c6aaf[_0x3e257d(0x175)])){!(_0x453497[_0x3e257d(0x1da)]&&_0x453497[_0x3e257d(0x1ea)]&&_0x453497[_0x3e257d(0x136)])&&(_0x5c6aaf[_0x3e257d(0x16d)](_0x5c6aaf[_0x3e257d(0x185)],_0x5c6aaf[_0x3e257d(0x185)])?_0x52dab4[_0x3e257d(0x1ea)]={}:(_0xcd440f=_0x5c6aaf[_0x3e257d(0x22b)],await _0x5c6aaf[_0x3e257d(0x1c0)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x1df)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process['exit'](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x453497[_0x3e257d(0x1ea)][_0x3e257d(0x11d)]())){if(_0x5c6aaf[_0x3e257d(0x248)](_0x5c6aaf[_0x3e257d(0x16e)],_0x5c6aaf[_0x3e257d(0x245)]))_0xcd440f=_0x5c6aaf[_0x3e257d(0x1e9)],await _0x5c6aaf[_0x3e257d(0x150)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes['ERROR'],_0x5c6aaf['aGTSZ'],_0x5c6aaf[_0x3e257d(0x1f6)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1);else{const _0x2f1419=_0x5c6aaf[_0x3e257d(0x152)][_0x3e257d(0x1b4)]('|');let _0xadb48c=0x0;while(!![]){switch(_0x2f1419[_0xadb48c++]){case'0':_0x14edae[_0x3e257d(0x1ea)]=_0x284d1d;continue;case'1':_0x1bd7b7=_0x3e257d(0x208)+_0x54ce5f+_0x3e257d(0x1bc)+_0x3148aa+'\x27';continue;case'2':_0x3d8232[_0x3e257d(0x119)]=_0x3e8827;continue;case'3':_0x4addea[_0x3e257d(0x1fc)]=_0x5972ee[_0x3e257d(0x1fc)];continue;case'4':_0x1a2703['clusterName']=_0x31bb6d;continue;case'5':const _0x27df54={};_0x27df54[_0x3e257d(0x211)]=_0x4f81aa[_0x3e257d(0x140)],_0x27df54[_0x3e257d(0x182)]=_0x3e257d(0x1c8),_0x29f096[_0x3e257d(0x14d)](_0x39eedb,_0x27df54);continue;case'6':_0x242173[_0x3e257d(0x216)](_0x4b7821);continue;case'7':const _0x7edc54={};_0x7edc54['type']=_0x1513ad[_0x3e257d(0x1d1)],_0x7edc54[_0x3e257d(0x182)]=_0x5b5b0e,_0x554fd9['sendEventToBackend'](_0x7ea10f,_0x7edc54);continue;case'8':_0x146a49[_0x3e257d(0x1b6)]=_0x135ead[_0x3e257d(0x1b6)];continue;}break;}}}if(_0x453497[_0x3e257d(0x1ee)]&&_0x5c6aaf[_0x3e257d(0x249)](_0x453497[_0x3e257d(0x1ee)]['toLowerCase'](),_0x5c6aaf[_0x3e257d(0x188)])){if(_0x5c6aaf[_0x3e257d(0x1f7)](_0x5c6aaf[_0x3e257d(0x195)],_0x5c6aaf[_0x3e257d(0x1bb)]))global_registry[_0x3e257d(0x206)]=!![];else{const _0xeb1654={};_0xeb1654['type']=_0x4f1b38[_0x3e257d(0x1d1)],_0xeb1654[_0x3e257d(0x182)]=_0x3e257d(0x1c7)+_0x415ad1+_0x3e257d(0x126),_0x1f2ab6['sendEventToBackend'](_0x35c902,_0xeb1654,_0x5c6aaf[_0x3e257d(0x139)]),_0x2fc7d5[_0x3e257d(0x216)](_0x3e257d(0x1c7)+_0x3ed71b+_0x3e257d(0x126)),_0x512981=!![];}}_0xc959c7=!![],_0x1b5df5=_0x453497[_0x3e257d(0x1da)],_0x246311=_0x453497[_0x3e257d(0x1ea)]['toLowerCase'](),_0x4599b6=_0x453497[_0x3e257d(0x136)];}else _0x45f1d1=_0x5c6aaf[_0x3e257d(0x13f)];}if(_0x453497[_0x3e257d(0x1af)]){if(_0x5c6aaf[_0x3e257d(0x160)](_0x5c6aaf[_0x3e257d(0x21c)],_0x5c6aaf[_0x3e257d(0x21c)]))_0xa07af8=_0x453497[_0x3e257d(0x1af)];else{const _0x3cdd39={};_0x3cdd39[_0x3e257d(0x14b)]=_0x5c6aaf[_0x3e257d(0x196)],_0x3cdd39[_0x3e257d(0x211)]=_0x5c6aaf[_0x3e257d(0x243)];const _0x51f4a2={};_0x51f4a2[_0x3e257d(0x14b)]=_0x5c6aaf[_0x3e257d(0x13a)],_0x51f4a2[_0x3e257d(0x211)]=_0x5c6aaf[_0x3e257d(0x243)];const _0x29878d={};_0x29878d[_0x3e257d(0x14b)]=_0x5c6aaf['vCUmB'],_0x29878d['type']=_0x5c6aaf['iEJao'];const _0x268be5={};_0x268be5['description']=_0x5c6aaf[_0x3e257d(0x22f)],_0x268be5['type']=_0x5c6aaf[_0x3e257d(0x243)];const _0x3aca16={};_0x3aca16[_0x3e257d(0x14b)]=_0x5c6aaf[_0x3e257d(0x1ad)],_0x3aca16['type']=_0x5c6aaf['iEJao'];const _0x17a5d5={};_0x17a5d5[_0x3e257d(0x14b)]=_0x5c6aaf['xZVYP'],_0x17a5d5[_0x3e257d(0x211)]=_0x5c6aaf[_0x3e257d(0x243)];const _0x5da071={};return _0x5da071['grid-name']=_0x3cdd39,_0x5da071[_0x3e257d(0x1b7)]=_0x51f4a2,_0x5da071[_0x3e257d(0x159)]=_0x29878d,_0x5da071[_0x3e257d(0x179)]=_0x268be5,_0x5da071[_0x3e257d(0x136)]=_0x3aca16,_0x5da071[_0x3e257d(0x166)]=_0x17a5d5,_0x302dcf[_0x3e257d(0x198)](_0x3beec5[_0x3e257d(0x239)])[_0x3e257d(0x127)](_0x296d19)['options'](_0x5da071)[_0x3e257d(0x217)](_0x5c6aaf[_0x3e257d(0x1ac)])[_0x3e257d(0x23e)];}}global_registry['gridName']=_0xa07af8;const _0x3ac5cc={};_0x3ac5cc['username']=_0xe1ed7e[_0x3e257d(0x10d)]['username'],_0x3ac5cc[_0x3e257d(0x112)]=_0xe1ed7e[_0x3e257d(0x10d)]['password'];const _0x4e9d87={};_0x4e9d87[_0x3e257d(0x11c)]=_0x5c6aaf[_0x3e257d(0x1aa)],_0x4e9d87[_0x3e257d(0x20b)]=_0x3ac5cc;const _0x1d1de2=_0x4e9d87,_0x33975f=_0x3e257d(0x142)+AG_API_URL+_0x3e257d(0x14a),_0x3db1f5={};_0x3db1f5[_0x3e257d(0x1af)]=_0xa07af8;const _0x3823d6={'url':_0x33975f,'qs':_0x3db1f5,..._0x1d1de2},_0x49d900=_0x3823d6,_0x4690e7=await _0x5c6aaf[_0x3e257d(0x19a)](promisifiedRequest,_0x49d900);(_0x5c6aaf['uTAtc'](_0x4690e7,null)||_0x5c6aaf[_0x3e257d(0x160)](_0x4690e7,undefined))&&(_0x5c6aaf[_0x3e257d(0x160)](_0x5c6aaf[_0x3e257d(0x19b)],_0x5c6aaf['hWOwv'])?(_0xcd440f=_0x5c6aaf[_0x3e257d(0x230)],await _0x5c6aaf[_0x3e257d(0x1ca)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf['aGTSZ'],_0x5c6aaf[_0x3e257d(0x1c5)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)):_0x16d3ee=_0x495f24['gridName']);_0x5c6aaf[_0x3e257d(0x17a)](_0x4690e7[_0x3e257d(0x1d4)],0x191)&&(_0x5c6aaf['LgbxI'](_0x5c6aaf[_0x3e257d(0x214)],_0x5c6aaf[_0x3e257d(0x17b)])?(_0xcd440f=_0x5c6aaf[_0x3e257d(0x20a)],await _0x5c6aaf[_0x3e257d(0x1ba)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf['dyNxP'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)):(_0x6058c2[_0x3e257d(0x20f)](_0x5c6aaf[_0x3e257d(0x11b)]),_0x51ebe8[_0x3e257d(0x235)](0x1)));if(_0x5c6aaf['JevTI'](_0x4690e7[_0x3e257d(0x1d4)],0xc8)){if(_0x5c6aaf['fTkLW'](_0x5c6aaf['zjtKz'],_0x5c6aaf[_0x3e257d(0x1fa)]))throw _0x2233bf;else _0xcd440f=_0x3e257d(0x113)+JSON['stringify'](_0x4690e7),await _0x5c6aaf[_0x3e257d(0x115)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x14e)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1);}const _0x38c19a=JSON['parse'](_0x4690e7[_0x3e257d(0x1dd)]),_0x5ba31c={};_0x5ba31c[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x140)],_0x5ba31c[_0x3e257d(0x182)]=_0x3e257d(0x1c8),webSocketUtils['sendEventToBackend'](_0x561851,_0x5ba31c);const _0x4dad02={};_0x4dad02[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x4dad02[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x12f)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x4dad02);_0x38c19a[_0x3e257d(0x183)]&&(_0x5c6aaf['RHcjO'](_0x5c6aaf['IdZRk'],_0x5c6aaf[_0x3e257d(0x12a)])?_0x38308b[_0x3e257d(0x216)]('Found\x20VPC:\x20'+_0x30314e+'\x20'):(_0xcd440f=_0x5c6aaf[_0x3e257d(0x19f)],await _0x5c6aaf[_0x3e257d(0x1c0)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf['aGTSZ'],_0x5c6aaf[_0x3e257d(0x14f)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)));const _0x136706=_0x38c19a['gridProfiles'];let _0x292f0b=_0x136706[_0x38c19a[_0x3e257d(0x184)]];_0x453497[_0x3e257d(0x232)]&&(_0x5c6aaf[_0x3e257d(0x116)](_0x5c6aaf[_0x3e257d(0x155)],_0x5c6aaf[_0x3e257d(0x15e)])?_0x292f0b=_0x136706[_0x453497['gridProfile']]:(_0x2a3a00=_0x4bb0a4[_0x3e257d(0x1de)],_0x450b41=_0x5c6aaf['NVlFz']));if(_0x5c6aaf[_0x3e257d(0x16b)](_0xc959c7,![])){if(_0x5c6aaf['RHcjO'](_0x5c6aaf[_0x3e257d(0x1c9)],_0x5c6aaf[_0x3e257d(0x10b)]))_0x4028f1[_0x3e257d(0x216)](_0x3e257d(0x122)+_0x2d6efd[_0x3e257d(0x1a5)](_0xed4bf4)+'\x20');else{if(_0x5c6aaf[_0x3e257d(0x17a)](_0x292f0b,undefined)){if(_0x5c6aaf[_0x3e257d(0x160)](_0x5c6aaf[_0x3e257d(0x1d2)],_0x5c6aaf[_0x3e257d(0x1d2)]))_0xcd440f=_0x5c6aaf[_0x3e257d(0x1fd)],await _0x5c6aaf[_0x3e257d(0x14c)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf['aGTSZ'],_0x5c6aaf['qkIbd'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1);else{const _0x373b63={};_0x373b63[_0x3e257d(0x211)]=_0x524eb7[_0x3e257d(0x1d1)],_0x373b63[_0x3e257d(0x182)]=_0x3a30f8,_0x411930['sendEventToBackend'](_0x1ff267,_0x373b63,_0x5c6aaf[_0x3e257d(0x1ae)],!![]);}}global_registry[_0x3e257d(0x1f8)]=_0x292f0b['id'];(_0x5c6aaf[_0x3e257d(0x10c)](_0x246311,AZURE)||_0x5c6aaf[_0x3e257d(0x17a)](_0x292f0b?.[_0x3e257d(0x1ea)],AZURE))&&(_0x5c6aaf['UaMix'](_0x5c6aaf['XpHzI'],_0x5c6aaf['kaNzf'])?_0x46fdd2[_0x3e257d(0x206)]=!![]:(console[_0x3e257d(0x20f)](_0x5c6aaf[_0x3e257d(0x11b)]),process[_0x3e257d(0x235)](0x1)));_0xcd440f=_0x3e257d(0x209)+_0xa07af8+'\x20using\x20\x27'+_0x292f0b['name']+_0x3e257d(0x118),logger['info'](_0xcd440f);const _0x51d54b={};_0x51d54b[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x51d54b[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils['sendEventToBackend'](_0x561851,_0x51d54b),_0x246311=_0x292f0b[_0x3e257d(0x1ea)],_0x1b5df5=_0x292f0b[_0x3e257d(0x1da)],_0x4599b6=_0x292f0b[_0x3e257d(0x136)],_0x4f7d56=_0x292f0b[_0x3e257d(0x1f2)],_0x4e1d68=_0x292f0b[_0x3e257d(0x173)],_0x6db9a8=_0x292f0b[_0x3e257d(0x234)],securityGroups=_0x292f0b[_0x3e257d(0x163)],subnets=_0x292f0b[_0x3e257d(0x1a7)],_0x53f4f7=_0x292f0b[_0x3e257d(0x207)],_0x730521=_0x292f0b[_0x3e257d(0x18d)],_0xde9ed5=_0x292f0b['maxNodes'],_0x3f7caa=_0x38c19a['hubVersion'],_0x8c1aa1=_0x38c19a[_0x3e257d(0x1fc)],_0x5c6aaf[_0x3e257d(0x1e2)](_0x292f0b[_0x3e257d(0x1ee)],undefined)&&_0x292f0b['privateGrid']&&(_0x5c6aaf['ngxMo'](_0x5c6aaf[_0x3e257d(0x164)],_0x5c6aaf[_0x3e257d(0x1d9)])?global_registry[_0x3e257d(0x206)]=!![]:_0x2ae520=_0x4dc3ce[_0x5ca812[_0x3e257d(0x232)]]),_0x5c6aaf['DNzQf'](updateGlobalRegistryWithConfig,_0x246311,_0x1b5df5,_0x4599b6,_0x4f7d56,_0x4e1d68,_0x53f4f7,_0x292f0b,_0x3f7caa,_0x8c1aa1,_0x730521,_0xde9ed5);}}else{const _0x10080e=_0x5c6aaf[_0x3e257d(0x17c)][_0x3e257d(0x1b4)]('|');let _0x5e7706=0x0;while(!![]){switch(_0x10080e[_0x5e7706++]){case'0':logger[_0x3e257d(0x216)](_0xcd440f);continue;case'1':const _0x57d7a4={};_0x57d7a4[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x140)],_0x57d7a4[_0x3e257d(0x182)]='CLI\x20run\x20started',webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x57d7a4);continue;case'2':const _0x266b9f={};_0x266b9f[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x266b9f[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x266b9f);continue;case'3':global_registry['cloudProvider']=_0x246311;continue;case'4':global_registry[_0x3e257d(0x1da)]=_0x1b5df5;continue;case'5':_0xcd440f=_0x3e257d(0x208)+_0xa07af8+_0x3e257d(0x1bc)+_0x1b5df5+'\x27';continue;case'6':global_registry[_0x3e257d(0x1b6)]=_0x38c19a[_0x3e257d(0x1b6)];continue;case'7':global_registry['clusterRegion']=_0x4599b6;continue;case'8':global_registry[_0x3e257d(0x1fc)]=_0x38c19a[_0x3e257d(0x1fc)];continue;}break;}}const _0x57bd4c=_0x5c6aaf[_0x3e257d(0x13c)](getCloudProviderObject,_0x246311,_0x1b5df5,_0xa07af8,_0x561851,webSocketUtils),_0x22cf9f=_0xe1ed7e[_0x3e257d(0x1ea)]||{};if(_0x5c6aaf['tSORC'](_0x22cf9f[_0x246311],undefined)){logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x227)]);_0x5c6aaf['puKEu'](_0xe1ed7e[_0x3e257d(0x1ea)],undefined)&&(_0xe1ed7e['cloudProvider']={});_0xe1ed7e['cloudProvider'][_0x246311]={};const _0x2ebdc2=await _0x5c6aaf[_0x3e257d(0x1a8)](inputCloudProviderKeys,_0x246311,_0xe1ed7e,_0x57bd4c);fs[_0x3e257d(0x219)](_0x5c6aaf[_0x3e257d(0x120)](getCredentialsPath),JSON['stringify'](_0x2ebdc2)),logger['debug'](_0x5c6aaf['PnBJj']);}else{_0xcd440f=_0x5c6aaf['HJQEf'];const _0x53f8bc={};_0x53f8bc[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x53f8bc[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x53f8bc),logger[_0x3e257d(0x216)](_0xcd440f),await _0x57bd4c[_0x3e257d(0x21e)](_0x22cf9f);}_0x57bd4c[_0x3e257d(0x1ab)]();let _0x21b862;if(_0x5c6aaf[_0x3e257d(0x229)](_0xc959c7,![])){_0xcd440f='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x4599b6+').';const _0x3d70f5={};_0x3d70f5[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x3d70f5[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x3d70f5),logger[_0x3e257d(0x216)](_0xcd440f);const _0x32250b=await _0x57bd4c[_0x3e257d(0x242)]();if(_0x32250b){const _0x4b40bd={};_0x4b40bd['type']=WS_EVENTS['LOG'],_0x4b40bd[_0x3e257d(0x182)]=_0x3e257d(0x1c7)+_0x1b5df5+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x4b40bd,_0x5c6aaf[_0x3e257d(0x139)]),logger[_0x3e257d(0x216)](_0x3e257d(0x1c7)+_0x1b5df5+_0x3e257d(0x126)),_0xc959c7=!![];}else{const _0x391209={};_0x391209[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x391209[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x189)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x391209),logger['info'](_0x5c6aaf[_0x3e257d(0x189)]);const _0x49a9a2=_0x5c6aaf[_0x3e257d(0x12c)](_0x6db9a8,null)&&_0x5c6aaf[_0x3e257d(0x110)](_0x6db9a8,undefined),_0x379dea=_0x5c6aaf[_0x3e257d(0x12c)](subnets,null)&&_0x5c6aaf[_0x3e257d(0x15c)](subnets,undefined)&&_0x5c6aaf[_0x3e257d(0x1e0)](subnets[_0x3e257d(0x1ec)],0x0);if(_0x49a9a2){_0x5c6aaf[_0x3e257d(0x249)](_0x379dea,![])&&(_0xcd440f=_0x5c6aaf[_0x3e257d(0x1ff)],await _0x5c6aaf[_0x3e257d(0x1c0)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x1ce)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));const _0x4d81d9=await _0x57bd4c[_0x3e257d(0x178)](_0x6db9a8);_0x5c6aaf[_0x3e257d(0x229)](_0x4d81d9,![])?(_0xcd440f=_0x5c6aaf['pdXNu'],await _0x5c6aaf[_0x3e257d(0x1ca)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x12d)],_0x5c6aaf['beiLA']),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1)):logger[_0x3e257d(0x216)](_0x3e257d(0x167)+_0x6db9a8+'\x20');const _0x2b60c8=await _0x57bd4c[_0x3e257d(0x11e)](subnets,_0x6db9a8);_0x5c6aaf[_0x3e257d(0x213)](_0x2b60c8[0x0],![])?(_0xcd440f='Subnets:\x20'+_0x2b60c8[0x1]+_0x3e257d(0x18a)+_0x6db9a8+_0x3e257d(0x197),await _0x5c6aaf[_0x3e257d(0x1ef)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf['Nyoui'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger['error'](_0xcd440f),process['exit'](0x1)):logger[_0x3e257d(0x216)]('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x57bd4c['setupNewCluster'](_0x6db9a8,subnets);}else{const _0x3e58c9=_0x5c6aaf['czJEZ'][_0x3e257d(0x1b4)]('|');let _0x1be549=0x0;while(!![]){switch(_0x3e58c9[_0x1be549++]){case'0':logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x133)]);continue;case'1':logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x1a4)]);continue;case'2':await _0x57bd4c[_0x3e257d(0x194)]();continue;case'3':const _0x218c19={};_0x218c19[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x218c19[_0x3e257d(0x182)]=_0x3e257d(0x16f),webSocketUtils['sendEventToBackend'](_0x561851,_0x218c19);continue;case'4':const _0x370890={};_0x370890[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x370890[_0x3e257d(0x182)]=_0x5c6aaf['OYXGs'],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x370890);continue;}break;}}}}_0xc959c7&&_0x5c6aaf[_0x3e257d(0x16b)](_0x246311,AZURE)&&(global_registry[_0x3e257d(0x154)]=_0x38c19a[_0x3e257d(0x1cf)],await _0x57bd4c['updatePreSpawnedCluster'](),await _0x57bd4c[_0x3e257d(0x131)]());const [_0x12c55f,_0x58e554,_0x547653,_0x215a5f,_0x460aef,_0x21a45a]=await _0x5c6aaf['lzBbp'](createK8sClient,_0x57bd4c);_0x5c6aaf[_0x3e257d(0x160)](_0xc959c7,![])&&_0x5c6aaf[_0x3e257d(0x144)](_0x246311,AWS)&&(_0x21b862=await _0x57bd4c[_0x3e257d(0x13e)](_0x12c55f,_0x453497));try{_0x4de76c=_0x5c6aaf[_0x3e257d(0x177)](kebabCase,_0xa07af8),logger['info'](_0x5c6aaf[_0x3e257d(0x21a)]);const _0x514493={};_0x514493[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0x514493[_0x3e257d(0x182)]=_0x5c6aaf['LJMQL'],webSocketUtils['sendEventToBackend'](_0x561851,_0x514493);if(_0x5c6aaf[_0x3e257d(0x1be)](_0x4de76c,_0x5c6aaf['Wqcoq'])){const _0x30b297={};_0x30b297[_0x3e257d(0x21f)]=_0x5c6aaf[_0x3e257d(0x247)],_0x30b297[_0x3e257d(0x124)]=_0x5c6aaf[_0x3e257d(0x247)];const _0x340a8b={};_0x340a8b['name']=_0x4de76c,_0x340a8b[_0x3e257d(0x246)]=_0x30b297;const _0x2a00ab={};_0x2a00ab[_0x3e257d(0x143)]=_0x340a8b;let _0x555bc4=_0x2a00ab;await _0x12c55f[_0x3e257d(0x172)](_0x555bc4),logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x19c)]);}const _0x34e524={};_0x34e524['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0x34e524[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x1cd)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x34e524);const _0x538691={};_0x538691['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0x538691[_0x3e257d(0x182)]=_0x5c6aaf[_0x3e257d(0x1a6)],webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x538691),logger[_0x3e257d(0x216)](_0x5c6aaf[_0x3e257d(0x1b8)]);let _0x1bd476={};_0x5c6aaf['hraXf'](_0x246311,AZURE)&&(_0x1bd476={'clientId':await _0x57bd4c[_0x3e257d(0x1e1)](_0x3e257d(0x21d)+_0x1b5df5)});await _0x5c6aaf[_0x3e257d(0x225)](addGridComponents,_0x12c55f,_0x58e554,_0x547653,_0x215a5f,_0x4de76c,_0x1b5df5,_0x21b862,_0x460aef,_0x21a45a,_0x1bd476),_0xcd440f=_0x5c6aaf[_0x3e257d(0x11a)],logger[_0x3e257d(0x216)](_0xcd440f);const _0xd0b9a8={};_0xd0b9a8['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0xd0b9a8[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils['sendEventToBackend'](_0x561851,_0xd0b9a8),_0xcd440f=_0x5c6aaf[_0x3e257d(0x171)],logger['info'](_0xcd440f);const _0x32f527={};_0x32f527[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x32f527['message']=_0xcd440f,webSocketUtils['sendEventToBackend'](_0x561851,_0x32f527),await webSocketUtils['delay'](0xea60);const _0x495186=await _0x5c6aaf[_0x3e257d(0x165)](getNamespaceUID,_0x12c55f,_0x4de76c);let _0x41ca2e=global_registry[_0x3e257d(0x206)]?_0x5c6aaf[_0x3e257d(0x1f5)]:_0x5c6aaf[_0x3e257d(0x21b)],_0x20ef44=await _0x12c55f['readNamespacedService'](_0x41ca2e,_0x5c6aaf['pljfT']),_0x517c99=_0x57bd4c[_0x3e257d(0x18f)](_0x20ef44)+'/'+_0x4de76c,_0x47d85a=_0x5c6aaf[_0x3e257d(0x13f)];try{const _0x8c661f={'url':_0x3e257d(0x142)+AG_API_URL+_0x3e257d(0x132)+_0x495186,..._0x1d1de2},_0x220230=_0x8c661f,_0x370811=await _0x5c6aaf[_0x3e257d(0x19a)](promisifiedRequest,_0x220230);(_0x5c6aaf[_0x3e257d(0x19e)](_0x370811,null)||_0x5c6aaf[_0x3e257d(0x1b3)](_0x370811,undefined))&&(_0xcd440f=_0x5c6aaf['ElVhS'],await _0x5c6aaf[_0x3e257d(0x1ca)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf['nEPcT'],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));_0x5c6aaf[_0x3e257d(0x1d3)](_0x370811['statusCode'],0x191)&&(_0xcd440f=_0x5c6aaf[_0x3e257d(0x1c4)],await _0x5c6aaf[_0x3e257d(0x1f3)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x17f)],_0x5c6aaf['beiLA']),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));_0x5c6aaf[_0x3e257d(0x1f7)](_0x370811[_0x3e257d(0x1d4)],0xc8)&&(_0xcd440f=_0x3e257d(0x224)+JSON[_0x3e257d(0x1a5)](_0x370811),await _0x5c6aaf[_0x3e257d(0x135)](reportToGalactusAndSendToEDS,_0x453497,_0x561851,_0xcd440f,messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x228)],_0x5c6aaf[_0x3e257d(0x1cb)],_0x5c6aaf[_0x3e257d(0x1ae)]),logger[_0x3e257d(0x20f)](_0xcd440f),process[_0x3e257d(0x235)](0x1));const _0x3978cf=JSON['parse'](_0x370811[_0x3e257d(0x1dd)]);_0x3978cf[_0x3e257d(0x1de)]&&(_0x517c99=_0x3978cf[_0x3e257d(0x1de)],_0x47d85a=_0x5c6aaf[_0x3e257d(0x220)]),global_registry[_0x3e257d(0x206)]&&(_0x47d85a=_0x5c6aaf[_0x3e257d(0x13f)]);}catch(_0x318dfa){}_0xcd440f=_0x3e257d(0x12b)+_0x517c99+'\x20',logger['info'](_0xcd440f);const _0x21d8cc={};_0x21d8cc['type']=WS_EVENTS[_0x3e257d(0x1d1)],_0x21d8cc['message']=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x21d8cc),_0xcd440f=_0x3e257d(0x1a2)+_0x47d85a+_0x3e257d(0x1d7)+_0x517c99+_0x3e257d(0x23d),logger[_0x3e257d(0x216)](_0xcd440f);const _0xf615de={};_0xf615de[_0x3e257d(0x211)]=WS_EVENTS['LOG'],_0xf615de[_0x3e257d(0x182)]=_0xcd440f,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0xf615de);const _0x5cc8c0={};_0x5cc8c0[_0x3e257d(0x211)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x5cc8c0['message']='CLI\x20run\x20finished:\x20'+_0x517c99,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x5cc8c0),await webSocketUtils[_0x3e257d(0x169)](0x7d0);}catch(_0x462d33){if(_0x5c6aaf[_0x3e257d(0x16a)](_0xc959c7,![]))try{logger['info'](_0x3e257d(0x19d)),await _0x5c6aaf[_0x3e257d(0x205)](removeGridComponents,_0x12c55f,_0x58e554,_0x547653,_0x215a5f,_0x4de76c),await _0x57bd4c['deleteCluster'](_0x12c55f,global_registry['clusterRegion']);}catch(_0x3a44d9){throw _0x3a44d9;}throw _0x462d33;}}catch(_0x517d84){const _0x1cbbb2='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x517d84+'\x20\x0a'+JSON[_0x3e257d(0x1a5)](_0x517d84)+'\x20';if(_0x561851){const _0x1064d8={};_0x1064d8[_0x3e257d(0x211)]=WS_EVENTS[_0x3e257d(0x1d1)],_0x1064d8['message']=_0x1cbbb2,webSocketUtils[_0x3e257d(0x14d)](_0x561851,_0x1064d8,_0x5c6aaf[_0x3e257d(0x1ae)],!![]);}await webSocketUtils[_0x3e257d(0x169)](0x7d0);const _0x343e0d={};_0x343e0d['error']=_0x1cbbb2,await _0x5c6aaf[_0x3e257d(0x13d)](sendInstrumentationEvent,_0x453497,_0x5c6aaf[_0x3e257d(0x228)],messageTypes[_0x3e257d(0x23c)],_0x5c6aaf[_0x3e257d(0x1e6)],_0x343e0d,_0x453497),logger['error'](_0x1cbbb2);}process[_0x3e257d(0x235)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a11_0x3a7631=a11_0x3c7e;(function(_0x1812bd,_0x1c93ab){const _0x4e3a4f=a11_0x3c7e,_0x58b035=_0x1812bd();while(!![]){try{const _0x1c207d=parseInt(_0x4e3a4f(0xbb))/0x1+-parseInt(_0x4e3a4f(0xc7))/0x2+-parseInt(_0x4e3a4f(0xcb))/0x3+-parseInt(_0x4e3a4f(0xbc))/0x4+-parseInt(_0x4e3a4f(0xc3))/0x5*(parseInt(_0x4e3a4f(0xbf))/0x6)+parseInt(_0x4e3a4f(0xba))/0x7+parseInt(_0x4e3a4f(0xb7))/0x8;if(_0x1c207d===_0x1c93ab)break;else _0x58b035['push'](_0x58b035['shift']());}catch(_0x3faa93){_0x58b035['push'](_0x58b035['shift']());}}}(a11_0x1fe2,0x23a52));function a11_0x1fe2(){const _0x38a5d9=['255sTGjGj','LOuJw','command','TplqH','63080WMqegF','commandDir','List\x20Grid\x20resources.','usage','57735grRNfN','recommendCommands','demandCommand','841216GBBmIV','../config/constants','builder','1491308mHHTML','275480BSiGYT','1042876CJfazI','delete_commands','help','16020ZDuevh','delete','strict','epilogue'];a11_0x1fe2=function(){return _0x38a5d9;};return a11_0x1fe2();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x3a7631(0xb8));function a11_0x3c7e(_0x493506,_0x353865){const _0x1fe26e=a11_0x1fe2();return a11_0x3c7e=function(_0x3c7ece,_0x1ee3c6){_0x3c7ece=_0x3c7ece-0xb5;let _0x5f1ad2=_0x1fe26e[_0x3c7ece];return _0x5f1ad2;},a11_0x3c7e(_0x493506,_0x353865);}exports[a11_0x3a7631(0xc5)]=a11_0x3a7631(0xc0),exports['desc']=a11_0x3a7631(0xc9),exports[a11_0x3a7631(0xb9)]=function(_0x404283){const _0x4b56c4=a11_0x3a7631,_0x15f98b={};_0x15f98b[_0x4b56c4(0xc6)]=_0x4b56c4(0xbd),_0x15f98b[_0x4b56c4(0xc4)]='help';const _0x3aad95=_0x15f98b;return _0x404283[_0x4b56c4(0xca)](HELP_HEADER_MESSAGE['delete'])[_0x4b56c4(0xc2)](HELP_FOOTER_MESSAGE)[_0x4b56c4(0xc8)](_0x3aad95[_0x4b56c4(0xc6)])[_0x4b56c4(0xb6)]()[_0x4b56c4(0xb5)]()[_0x4b56c4(0xc1)]()[_0x4b56c4(0xbe)](_0x3aad95[_0x4b56c4(0xc4)]);},exports['handler']=function(_0x1d3ad9){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x4d29(_0x4600be,_0x230795){const _0x37622b=a12_0x3762();return a12_0x4d29=function(_0x4d2958,_0x171a33){_0x4d2958=_0x4d2958-0xad;let _0xe3eec4=_0x37622b[_0x4d2958];return _0xe3eec4;},a12_0x4d29(_0x4600be,_0x230795);}const a12_0x54f7b6=a12_0x4d29;(function(_0x35f174,_0x464695){const _0x276097=a12_0x4d29,_0x79eae9=_0x35f174();while(!![]){try{const _0x1208a6=-parseInt(_0x276097(0x125))/0x1+-parseInt(_0x276097(0x124))/0x2*(-parseInt(_0x276097(0xdb))/0x3)+-parseInt(_0x276097(0x121))/0x4*(parseInt(_0x276097(0xd8))/0x5)+-parseInt(_0x276097(0xe8))/0x6*(parseInt(_0x276097(0xdf))/0x7)+parseInt(_0x276097(0xe4))/0x8+parseInt(_0x276097(0xe0))/0x9+parseInt(_0x276097(0xcf))/0xa*(parseInt(_0x276097(0xfc))/0xb);if(_0x1208a6===_0x464695)break;else _0x79eae9['push'](_0x79eae9['shift']());}catch(_0x21f1a6){_0x79eae9['push'](_0x79eae9['shift']());}}}(a12_0x3762,0x5120b));function a12_0x3762(){const _0x50aeb2=['lIMdz','3iHkMDm','gridId','eWjAq','server-error','129640ZHKmDK','105273iZdaFa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','info','1318720KPsnfj','LgCnA','existsSync','desc','78BBvITg','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','help','\x22\x20and\x20ID\x20','../../utils/userInput','error','username','VYSlz','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WHZUL','uuid','\x22\x20with\x20ID\x20','delete-grid-called','xGsqp','DFDmy','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','znQHB','hRdKL','Xjvyk','11vWzXwp','promisify','fetchLocalCreds','invalid-grid-id','liWWP','../../cloudproviders/utils','usage','mYgDM','ynICF','unauthorised','ERROR','VZRiB','zNMvX','stack','xZnoO','mmbUE','method','bnVvE','/packages/cli/grid/','stringify','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','type','JMhSp','lkdAr','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','password','description','epilogue','FKmzq','options','builder','xOEjY','message','Delete\x20an\x20Automation\x20grid.','sAlte','init-not-called','Cluster:\x20','78552gEepvA','oyeWV','isBrowserstackCluster','745268JHXAbU','17437NtOzNe','name','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','statusCode','rWpbU','writeFileSync','../../config/constants','AUTnr','MRgGO','PAcmR','uNWFZ','KiGKK','Pass\x20the\x20ID\x20of\x20the\x20Grid','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','tBndF','url','piRYn','clusterId','zokpa','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','exit','unknown-error','toLowerCase','FbPEZ','FoLDR','cloudProvider','MCAHT','YwdpM','../../utils/instrumentationUtils','deleteCluster','Browserstack','NUtFM','grid','FuKPv','DELETE','NViiu','../../utils/utilityMethods','invalid-input','clusterRegion','clusterName','QfkXr','INFO','../../config/logger','grid-id','requestId','uivKL','string','Failed\x20to\x20delete\x20resources!\x20Error:\x20','tosaW','Succesfully\x20deleted\x20the\x20grid','delete','HdcxI','DrOYw','util','gJFTI','region','1002390pYLDsz','warn','WfyKr','auth','../../utils/gridComponents','kyWwB','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','debug','15VuSMxZ','../../utils/createk8sClient'];a12_0x3762=function(){return _0x50aeb2;};return a12_0x3762();}const fs=require('fs'),util=require(a12_0x54f7b6(0xcc)),request=require('request'),{v4:uuidv4}=require(a12_0x54f7b6(0xf3)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x54f7b6(0x12b)),{logger}=require(a12_0x54f7b6(0xc1)),{getCloudProviderObject}=require(a12_0x54f7b6(0x101)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x54f7b6(0xd3)),{sendInstrumentationEvent}=require(a12_0x54f7b6(0xb3)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x54f7b6(0xed)),{createK8sClient}=require(a12_0x54f7b6(0xd9)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x54f7b6(0xbb)),promisifiedRequest=util[a12_0x54f7b6(0xfd)](request);exports['command']=a12_0x54f7b6(0xb7),exports[a12_0x54f7b6(0xe7)]=a12_0x54f7b6(0x11d),exports[a12_0x54f7b6(0x11a)]=function(_0x34306d){const _0x115db9=a12_0x54f7b6,_0x55bbdf={};_0x55bbdf['HdcxI']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x55bbdf[_0x115db9(0x137)]=_0x115db9(0xc5),_0x55bbdf[_0x115db9(0xcd)]=_0x115db9(0xeb);const _0xed49b1=_0x55bbdf,_0x533d82={};_0x533d82[_0x115db9(0x116)]=_0xed49b1[_0x115db9(0xca)],_0x533d82[_0x115db9(0x111)]=_0xed49b1[_0x115db9(0x137)];const _0x482974={};return _0x482974[_0x115db9(0xc2)]=_0x533d82,_0x34306d[_0x115db9(0x102)](HELP_HEADER_MESSAGE[_0x115db9(0xc9)])[_0x115db9(0x117)](HELP_FOOTER_MESSAGE)[_0x115db9(0x119)](_0x482974)[_0x115db9(0xeb)](_0xed49b1[_0x115db9(0xcd)])['argv'];},exports['handler']=async function(_0x2f0ecb){const _0x2c6fca=a12_0x54f7b6,_0x5cfd60={'gsVjW':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Xjvyk':_0x2c6fca(0x131),'xGsqp':_0x2c6fca(0xc5),'DgNAr':_0x2c6fca(0xeb),'QfkXr':function(_0x5e5a37){return _0x5e5a37();},'tosaW':function(_0x37dfed){return _0x37dfed();},'NViiu':function(_0x251d2c,_0x57bb3a){return _0x251d2c===_0x57bb3a;},'WfyKr':_0x2c6fca(0xaf),'xwnTN':_0x2c6fca(0xb8),'EkEfh':_0x2c6fca(0xd6),'VZRiB':function(_0x394b9e,_0x3f9eec,_0x35d022,_0x4bb234,_0x29c3ff,_0x344960,_0x57911d){return _0x394b9e(_0x3f9eec,_0x35d022,_0x4bb234,_0x29c3ff,_0x344960,_0x57911d);},'MRgGO':_0x2c6fca(0xf5),'rYCvK':_0x2c6fca(0x11f),'xOEjY':function(_0x343d2e,_0x1e9109){return _0x343d2e!==_0x1e9109;},'eWjAq':_0x2c6fca(0xcb),'yNWhT':_0x2c6fca(0x130),'LgCnA':function(_0x4b2554,_0x365689,_0x27131b,_0x399549){return _0x4b2554(_0x365689,_0x27131b,_0x399549);},'rWpbU':_0x2c6fca(0xb5),'zNMvX':function(_0x238324,_0x123d35){return _0x238324===_0x123d35;},'xZnoO':'NEGQn','MCAHT':'zsHzk','FKmzq':function(_0x4d1dd6,_0x2b9346){return _0x4d1dd6(_0x2b9346);},'uNWFZ':function(_0x20fe12,_0x3eae4d){return _0x20fe12===_0x3eae4d;},'bnVvE':function(_0x2b1552,_0x40d5e4){return _0x2b1552!==_0x40d5e4;},'JMhSp':_0x2c6fca(0xae),'adlNy':_0x2c6fca(0xf8),'lIMdz':_0x2c6fca(0xbc),'oyeWV':_0x2c6fca(0x12e),'WHZUL':'MDGEo','NUtFM':function(_0x424543,_0x32e79e){return _0x424543===_0x32e79e;},'piRYn':function(_0x40419a,_0x11f794){return _0x40419a===_0x11f794;},'lkdAr':'suOsy','kyWwB':_0x2c6fca(0xe9),'sAlte':function(_0x4db557,_0x3df8ba){return _0x4db557===_0x3df8ba;},'WkxcN':_0x2c6fca(0x104),'MFKVJ':_0x2c6fca(0x10b),'tBndF':function(_0x28389d){return _0x28389d();},'aUGJI':_0x2c6fca(0xea),'VYSlz':_0x2c6fca(0x114),'dKJjh':function(_0x28a578,_0x224079,_0x30c48e,_0x357946,_0x506540,_0x4deb4e){return _0x28a578(_0x224079,_0x30c48e,_0x357946,_0x506540,_0x4deb4e);},'znQHB':_0x2c6fca(0xb9),'MQacj':function(_0x88cbde,_0x2659a5){return _0x88cbde(_0x2659a5);},'uivKL':function(_0x407c80,_0x2fbf06){return _0x407c80!==_0x2fbf06;},'liWWP':_0x2c6fca(0xde),'DFDmy':function(_0xece626,_0x14671f,_0x399bf0,_0x3e7067,_0x2d58eb,_0x7b3564,_0x183f21){return _0xece626(_0x14671f,_0x399bf0,_0x3e7067,_0x2d58eb,_0x7b3564,_0x183f21);},'TuYsY':_0x2c6fca(0x105),'mYgDM':_0x2c6fca(0xff),'hRdKL':function(_0xaf3cd0,_0xa2b930,_0x226675,_0x1f3539,_0x42fbf0,_0x849fcf,_0x4daf31){return _0xaf3cd0(_0xa2b930,_0x226675,_0x1f3539,_0x42fbf0,_0x849fcf,_0x4daf31);},'YwdpM':function(_0x226e71,_0x1f6aae,_0x580b34,_0x1f6681,_0x5615df,_0x7ccd7,_0x4a9fc3){return _0x226e71(_0x1f6aae,_0x580b34,_0x1f6681,_0x5615df,_0x7ccd7,_0x4a9fc3);},'AUTnr':_0x2c6fca(0x13a)};try{global_registry[_0x2c6fca(0xc3)]=_0x5cfd60[_0x2c6fca(0xbf)](uuidv4);!fs[_0x2c6fca(0xe6)](_0x5cfd60['tosaW'](getCredentialsPath))&&(_0x5cfd60[_0x2c6fca(0xba)](_0x5cfd60[_0x2c6fca(0xd1)],_0x5cfd60['xwnTN'])?(_0xff7772[_0x2c6fca(0xe3)](_0x2c6fca(0xc8)),_0x1c7dc6[_0x2c6fca(0x139)](0x0)):(console['error'](_0x5cfd60['EkEfh']),await _0x5cfd60[_0x2c6fca(0x107)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes['ERROR'],_0x5cfd60['rYCvK'],null,_0x2f0ecb),process['exit'](0x1)));_0x5cfd60[_0x2c6fca(0x107)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0xc0)],null,null,_0x2f0ecb);!_0x2f0ecb[_0x2c6fca(0xdc)]&&(_0x5cfd60[_0x2c6fca(0x11b)](_0x5cfd60[_0x2c6fca(0xdd)],_0x5cfd60['yNWhT'])?(console['error'](_0x5cfd60['gsVjW']),process[_0x2c6fca(0x139)](0x1)):_0x485e98['warn']('Cluster:\x20'+_0x373ccb[_0x2c6fca(0xbe)]+_0x2c6fca(0x127)));const _0x2faa81=JSON['parse'](fs['readFileSync'](_0x5cfd60[_0x2c6fca(0xc7)](getCredentialsPath))),[_0x12f299,_0x4388d4]=await _0x5cfd60[_0x2c6fca(0xe5)](getGridDetails,_0x2faa81['Browserstack'][_0x2c6fca(0xef)],_0x2faa81['Browserstack']['password'],_0x2f0ecb[_0x2c6fca(0xdc)]);if(_0x4388d4){const _0x4b015c=_0x4388d4[_0x2c6fca(0xe3)];let _0x477f91=_0x2c6fca(0x132)+_0x4b015c['name']+_0x2c6fca(0xec)+_0x4b015c['id']+_0x2c6fca(0x110),_0x211ff3;_0x4388d4['onlyGridInCluster']&&_0x5cfd60[_0x2c6fca(0xba)](_0x4388d4['clusterSpawnedVia'],_0x5cfd60[_0x2c6fca(0x129)])&&(_0x5cfd60[_0x2c6fca(0x108)](_0x5cfd60[_0x2c6fca(0x10a)],_0x5cfd60[_0x2c6fca(0xb1)])?(_0x1fdc2c[_0x2c6fca(0xee)](_0x5cfd60['gsVjW']),_0x760811['exit'](0x1)):_0x477f91=_0x2c6fca(0x132)+_0x4b015c[_0x2c6fca(0x126)]+_0x2c6fca(0xec)+_0x4b015c['id']+_0x2c6fca(0x138)+_0x4b015c[_0x2c6fca(0xbe)]+'\x22\x20with\x20ID\x20'+_0x4b015c[_0x2c6fca(0x136)]+_0x2c6fca(0x110));_0x211ff3=await _0x5cfd60['FKmzq'](inputConfirmation,_0x477f91);(_0x5cfd60[_0x2c6fca(0x12f)](_0x211ff3,undefined)||_0x5cfd60[_0x2c6fca(0x108)](_0x211ff3,null)||!(_0x5cfd60['NViiu'](_0x211ff3[_0x2c6fca(0xad)](),'y')||_0x5cfd60[_0x2c6fca(0xba)](_0x211ff3[_0x2c6fca(0xad)](),'n')))&&(_0x5cfd60[_0x2c6fca(0x10d)](_0x5cfd60[_0x2c6fca(0x112)],_0x5cfd60['JMhSp'])?_0x8cd03b['cloudProvider']={}:(console[_0x2c6fca(0xee)](_0x5cfd60['adlNy']),await _0x5cfd60['VZRiB'](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60['MRgGO'],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0xda)],null,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1)));_0x5cfd60['zNMvX'](_0x211ff3[_0x2c6fca(0xad)](),'n')&&(_0x5cfd60[_0x2c6fca(0x12f)](_0x5cfd60[_0x2c6fca(0x122)],_0x5cfd60[_0x2c6fca(0xf2)])?_0x47bd18[_0x2c6fca(0x139)](0x0):process[_0x2c6fca(0x139)](0x0));global_registry[_0x2c6fca(0xbd)]=_0x4b015c['region'];const _0x2fb778=_0x4b015c[_0x2c6fca(0xb0)],_0x28ec9c=_0x5cfd60[_0x2c6fca(0xe5)](getCloudProviderObject,_0x2fb778,_0x4b015c[_0x2c6fca(0xbe)],_0x4b015c[_0x2c6fca(0x126)]),_0x215b72=_0x2faa81['cloudProvider'];if(_0x5cfd60[_0x2c6fca(0xb6)](_0x215b72[_0x2fb778],undefined)){if(_0x5cfd60[_0x2c6fca(0x135)](_0x5cfd60[_0x2c6fca(0x113)],_0x5cfd60[_0x2c6fca(0x113)])){logger[_0x2c6fca(0xe3)](_0x5cfd60[_0x2c6fca(0xd4)]);_0x5cfd60[_0x2c6fca(0x11e)](_0x2faa81['cloudProvider'],undefined)&&(_0x5cfd60[_0x2c6fca(0x10d)](_0x5cfd60['WkxcN'],_0x5cfd60['MFKVJ'])?_0x2faa81['cloudProvider']={}:_0x28cb38=_0x2c6fca(0x132)+_0x40358b[_0x2c6fca(0x126)]+_0x2c6fca(0xec)+_0x13d741['id']+_0x2c6fca(0x138)+_0x1a7a3e['clusterName']+_0x2c6fca(0xf4)+_0x9c71db[_0x2c6fca(0x136)]+_0x2c6fca(0x110));_0x2faa81['cloudProvider'][_0x2fb778]={};const _0x39894a=await _0x5cfd60['LgCnA'](inputCloudProviderKeys,_0x2fb778,_0x2faa81,_0x28ec9c);fs[_0x2c6fca(0x12a)](_0x5cfd60[_0x2c6fca(0x133)](getCredentialsPath),JSON[_0x2c6fca(0x10f)](_0x39894a)),logger[_0x2c6fca(0xd7)](_0x5cfd60['aUGJI']);}else{const _0x38c2de={};_0x38c2de[_0x2c6fca(0x116)]=_0x5cfd60[_0x2c6fca(0xfb)],_0x38c2de['type']=_0x5cfd60[_0x2c6fca(0xf6)];const _0x3d2b6f={};return _0x3d2b6f[_0x2c6fca(0xc2)]=_0x38c2de,_0x20f9ce[_0x2c6fca(0x102)](_0x5076c5[_0x2c6fca(0xc9)])['epilogue'](_0x6c21ef)['options'](_0x3d2b6f)[_0x2c6fca(0xeb)](_0x5cfd60['DgNAr'])['argv'];}}else logger['info'](_0x5cfd60[_0x2c6fca(0xf0)]),await _0x28ec9c[_0x2c6fca(0xfe)](_0x215b72);_0x28ec9c['configureIfNotConfigured']();const _0x2d983c=_0x5cfd60[_0x2c6fca(0x118)](kebabCase,_0x4b015c['name']),[_0x3974c2,_0x3e33e6,_0x3cd7fb,_0x4e7941,_0x2ffd74,_0x701906]=await _0x5cfd60[_0x2c6fca(0x118)](createK8sClient,_0x28ec9c);await _0x5cfd60['dKJjh'](removeGridComponents,_0x3974c2,_0x3e33e6,_0x3cd7fb,_0x4e7941,_0x2d983c);if(_0x4388d4['onlyGridInCluster']){const _0x4ff04b=await _0x28ec9c[_0x2c6fca(0x123)]();_0x4ff04b?await _0x28ec9c[_0x2c6fca(0xb4)](_0x3974c2,_0x4b015c[_0x2c6fca(0xce)]):logger[_0x2c6fca(0xd0)](_0x2c6fca(0x120)+_0x4b015c[_0x2c6fca(0xbe)]+_0x2c6fca(0x127));}const _0x519186=_0x2c6fca(0xd5)+AG_API_URL+_0x2c6fca(0x10e)+_0x2f0ecb[_0x2c6fca(0xdc)],_0x33d388={};_0x33d388[_0x2c6fca(0xef)]=_0x2faa81[_0x2c6fca(0xb5)][_0x2c6fca(0xef)],_0x33d388['password']=_0x2faa81['Browserstack'][_0x2c6fca(0x115)];const _0x1f8d9e={};_0x1f8d9e[_0x2c6fca(0x134)]=_0x519186,_0x1f8d9e[_0x2c6fca(0x10c)]=_0x5cfd60[_0x2c6fca(0xf9)],_0x1f8d9e[_0x2c6fca(0xd2)]=_0x33d388;const _0x57e4f4=_0x1f8d9e,_0x2d4a47=await _0x5cfd60['MQacj'](promisifiedRequest,_0x57e4f4);_0x5cfd60[_0x2c6fca(0xc4)](_0x2d4a47,null)&&_0x5cfd60[_0x2c6fca(0x10d)](_0x2d4a47,undefined)&&_0x5cfd60[_0x2c6fca(0xb6)](_0x2d4a47[_0x2c6fca(0x128)],0xc8)&&(logger['info'](_0x2c6fca(0xc8)),process[_0x2c6fca(0x139)](0x0)),logger[_0x2c6fca(0xee)](_0x2c6fca(0xe2)+JSON[_0x2c6fca(0x10f)](_0x2d4a47)),await _0x5cfd60['VZRiB'](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0x100)],_0x12f299,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1);}_0x5cfd60[_0x2c6fca(0x11e)](_0x12f299[_0x2c6fca(0x128)],0x191)&&(logger['error'](_0x2c6fca(0xf1)),await _0x5cfd60[_0x2c6fca(0xf7)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes['ERROR'],_0x5cfd60['TuYsY'],null,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1)),_0x5cfd60[_0x2c6fca(0x12f)](_0x12f299[_0x2c6fca(0x128)],0x190)&&(logger[_0x2c6fca(0xee)](JSON['parse'](_0x12f299['body'])[_0x2c6fca(0x11c)]),await _0x5cfd60[_0x2c6fca(0x107)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0x103)],null,_0x2f0ecb),process['exit'](0x1)),logger['error'](_0x2c6fca(0xe1)+JSON[_0x2c6fca(0x10f)](_0x12f299)),await _0x5cfd60[_0x2c6fca(0xfa)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60['MRgGO'],messageTypes[_0x2c6fca(0x106)],_0x5cfd60['liWWP'],_0x12f299,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1);}catch(_0x210cd1){logger[_0x2c6fca(0xee)](_0x2c6fca(0xc6)+_0x210cd1[_0x2c6fca(0x109)]),await _0x5cfd60[_0x2c6fca(0xb2)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0x12c)],_0x210cd1,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1);}};
|
|
1
|
+
function a12_0x19f8(){const _0x38c02a=['dVVbZ','aDXGP','unknown-error','method','onlyGridInCluster','eBrOl','\x22\x20with\x20ID\x20','deleteCluster','stack','delete-grid-called','argv','kaHNY','lUrtg','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','gridId','SkkCR','1718aHdVYD','dGpJN','NuFzj','ieqwm','cfzaA','warn','type','../../utils/utilityMethods','string','TNCyn','writeFileSync','../../utils/gridComponents','Pass\x20the\x20ID\x20of\x20the\x20Grid','toLowerCase','oCxHx','name','help','XTVfQ','MNIZw','Succesfully\x20deleted\x20the\x20grid','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','request','6974648pZNgpP','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','wvwhe','desc','../../config/logger','ERROR','igYBc','info','/packages/cli/grid/','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','url','azasA','../../utils/instrumentationUtils','statusCode','314097ZamNoQ','gcodK','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','region','PGzCC','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid','unauthorised','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','eWAVl','4312233XbhpCj','../../utils/createk8sClient','debug','INFO','1307WVydwa','exit','FPNYc','readFileSync','../../utils/userInput','hDzfx','QrrEJ','IjwSs','clusterName','19428yMbqUs','util','WPBlR','kDMSI','command','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','invalid-input','YmmpX','kZuee','wCOEg','Cluster:\x20','Fjlrc','ctJPD','Failed\x20to\x20delete\x20resources!\x20Error:\x20','xhyOP','error','XbJxR','9977unhxha','RqWoT','GilmT','zspku','username','Browserstack','taxPG','BmPpt','usage','uuid','NXvgr','8zusoIV','existsSync','https://','epilogue','TWWAn','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','cloudProvider','options','vgqWN','stringify','RqILb','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','delete','parse','35PewnTg','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','1509980pisanU','body','pemDD','ZZxXm','3BVaqHz','eXtpu','builder','rUoav','promisify','681396HHNYlw','rzdxk','nzvPJ','RkJju','clusterId','LJsiA','description','\x22\x20and\x20ID\x20','password'];a12_0x19f8=function(){return _0x38c02a;};return a12_0x19f8();}const a12_0x7577aa=a12_0x45d1;function a12_0x45d1(_0xe12a1d,_0x3d2fa5){const _0x19f809=a12_0x19f8();return a12_0x45d1=function(_0x45d19f,_0xa2aca5){_0x45d19f=_0x45d19f-0xe9;let _0x2154bf=_0x19f809[_0x45d19f];return _0x2154bf;},a12_0x45d1(_0xe12a1d,_0x3d2fa5);}(function(_0x1b47eb,_0x18f921){const _0x35cda8=a12_0x45d1,_0x3429db=_0x1b47eb();while(!![]){try{const _0x1712f3=-parseInt(_0x35cda8(0x166))/0x1*(-parseInt(_0x35cda8(0x134))/0x2)+parseInt(_0x35cda8(0x116))/0x3*(parseInt(_0x35cda8(0x14a))/0x4)+parseInt(_0x35cda8(0x110))/0x5*(-parseInt(_0x35cda8(0x11b))/0x6)+-parseInt(_0x35cda8(0x158))/0x7+-parseInt(_0x35cda8(0x102))/0x8*(-parseInt(_0x35cda8(0x162))/0x9)+-parseInt(_0x35cda8(0x112))/0xa+-parseInt(_0x35cda8(0xf7))/0xb*(parseInt(_0x35cda8(0x16f))/0xc);if(_0x1712f3===_0x18f921)break;else _0x3429db['push'](_0x3429db['shift']());}catch(_0x4debb0){_0x3429db['push'](_0x3429db['shift']());}}}(a12_0x19f8,0xd85e8));const fs=require('fs'),util=require(a12_0x7577aa(0x170)),request=require(a12_0x7577aa(0x149)),{v4:uuidv4}=require(a12_0x7577aa(0x100)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x7577aa(0x14e)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x7577aa(0x13f)),{sendInstrumentationEvent}=require(a12_0x7577aa(0x156)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x7577aa(0x16a)),{createK8sClient}=require(a12_0x7577aa(0x163)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x7577aa(0x13b)),promisifiedRequest=util[a12_0x7577aa(0x11a)](request);exports[a12_0x7577aa(0xea)]=a12_0x7577aa(0x15e),exports[a12_0x7577aa(0x14d)]='Delete\x20an\x20Automation\x20grid.',exports[a12_0x7577aa(0x118)]=function(_0x3480c1){const _0x36c9aa=a12_0x7577aa,_0x217aed={};_0x217aed[_0x36c9aa(0x11d)]=_0x36c9aa(0x140),_0x217aed['Fjlrc']='string',_0x217aed['eWAVl']=_0x36c9aa(0x144);const _0x342890=_0x217aed,_0x1c764e={};_0x1c764e[_0x36c9aa(0x121)]=_0x342890[_0x36c9aa(0x11d)],_0x1c764e[_0x36c9aa(0x13a)]=_0x342890[_0x36c9aa(0xf1)];const _0x7ff033={};return _0x7ff033['grid-id']=_0x1c764e,_0x3480c1[_0x36c9aa(0xff)](HELP_HEADER_MESSAGE[_0x36c9aa(0x10e)])[_0x36c9aa(0x105)](HELP_FOOTER_MESSAGE)[_0x36c9aa(0x109)](_0x7ff033)[_0x36c9aa(0x144)](_0x342890[_0x36c9aa(0x161)])[_0x36c9aa(0x12e)];},exports['handler']=async function(_0x5eb4fa){const _0x2340c0=a12_0x7577aa,_0xa23502={'vgqWN':_0x2340c0(0x140),'zkSGa':_0x2340c0(0x13c),'gcodK':_0x2340c0(0x144),'TNCyn':_0x2340c0(0x107),'RqILb':function(_0x3d1cf6){return _0x3d1cf6();},'isXHh':function(_0x22ba7d,_0x2fafd2){return _0x22ba7d!==_0x2fafd2;},'RqWoT':_0x2340c0(0x130),'aDXGP':'lJizs','azasA':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rUoav':function(_0x121f34,_0x412cc7,_0x11b8bc,_0x174f7a,_0xa9bef8,_0x2e3540,_0x38442a){return _0x121f34(_0x412cc7,_0x11b8bc,_0x174f7a,_0xa9bef8,_0x2e3540,_0x38442a);},'eXtpu':_0x2340c0(0x12d),'BpCSr':'init-not-called','BmPpt':function(_0xe12b4d,_0x393f75,_0x28c5c5,_0x1f0993,_0x323b0b,_0x5f0ad7,_0x28f053){return _0xe12b4d(_0x393f75,_0x28c5c5,_0x1f0993,_0x323b0b,_0x5f0ad7,_0x28f053);},'taxPG':function(_0x555361,_0x4f092b){return _0x555361!==_0x4f092b;},'dGpJN':_0x2340c0(0x115),'MNIZw':_0x2340c0(0xed),'NuFzj':function(_0x3fc24e,_0x1fb528,_0x3c0a71,_0x5accc1){return _0x3fc24e(_0x1fb528,_0x3c0a71,_0x5accc1);},'wCOEg':function(_0x486644,_0x5bb68c){return _0x486644===_0x5bb68c;},'EzpCx':_0x2340c0(0xfc),'NXvgr':function(_0x1ebaed,_0x3abaca){return _0x1ebaed!==_0x3abaca;},'igfgD':'lEhfA','TWWAn':_0x2340c0(0x14c),'RkJju':function(_0x3176bd,_0x524f21){return _0x3176bd(_0x524f21);},'kZuee':function(_0x14c176,_0x3be9ac){return _0x14c176===_0x3be9ac;},'GilmT':'Witey','eBrOl':'xbGsF','dVVbZ':_0x2340c0(0x131),'cfzaA':function(_0x4dac23,_0x5788ce,_0x51418f,_0x4d226d,_0xa6b93f,_0x611c1c,_0x215e92){return _0x4dac23(_0x5788ce,_0x51418f,_0x4d226d,_0xa6b93f,_0x611c1c,_0x215e92);},'igYBc':_0x2340c0(0xec),'XbJxR':'ZIHsd','ZNtVU':_0x2340c0(0x145),'LJsiA':function(_0xe95954,_0x5cb2ed,_0x4465ae,_0x492102){return _0xe95954(_0x5cb2ed,_0x4465ae,_0x492102);},'ctJPD':function(_0x35ba52,_0xa4c2e8){return _0x35ba52===_0xa4c2e8;},'ieqwm':function(_0x2810be,_0x48fa5b){return _0x2810be===_0x48fa5b;},'QMaht':_0x2340c0(0x16d),'xaoyx':_0x2340c0(0x114),'wGhWD':_0x2340c0(0x14b),'QrrEJ':function(_0x34455b,_0x408ecb){return _0x34455b===_0x408ecb;},'oCxHx':_0x2340c0(0x168),'cPvks':function(_0x4c0824){return _0x4c0824();},'NeTvW':_0x2340c0(0x15a),'xhyOP':_0x2340c0(0x148),'rzdxk':function(_0x6f5c93,_0x270886){return _0x6f5c93(_0x270886);},'slNCC':function(_0x3f1e7d,_0x2d82a5){return _0x3f1e7d(_0x2d82a5);},'SkkCR':function(_0x2a9795,_0x5ed6bb,_0x5bca10,_0xcefe5e,_0x3aac5c,_0x5a56cb){return _0x2a9795(_0x5ed6bb,_0x5bca10,_0xcefe5e,_0x3aac5c,_0x5a56cb);},'kaHNY':'DELETE','BLfzM':function(_0x2ebbd2,_0x14e020){return _0x2ebbd2!==_0x14e020;},'zspku':'server-error','kDMSI':function(_0x2da5c0,_0x951c4c){return _0x2da5c0===_0x951c4c;},'hDzfx':function(_0x1546f2,_0x1db70d,_0x51c9d1,_0x770682,_0x37b1df,_0x1a92ce,_0x141fac){return _0x1546f2(_0x1db70d,_0x51c9d1,_0x770682,_0x37b1df,_0x1a92ce,_0x141fac);},'cPhVT':_0x2340c0(0x15f),'XPcQA':function(_0x230019,_0x253517,_0x5b00bc,_0x49195b,_0x4535cd,_0x494f9b,_0x978b5c){return _0x230019(_0x253517,_0x5b00bc,_0x49195b,_0x4535cd,_0x494f9b,_0x978b5c);},'WPBlR':'invalid-grid-id','FpxMd':function(_0x465ad5,_0x17b9a7,_0x59ae3c,_0x204129,_0x410c75,_0xa8cf59,_0x3d62f1){return _0x465ad5(_0x17b9a7,_0x59ae3c,_0x204129,_0x410c75,_0xa8cf59,_0x3d62f1);},'PGzCC':_0x2340c0(0x126)};try{global_registry['requestId']=_0xa23502[_0x2340c0(0x10c)](uuidv4);!fs[_0x2340c0(0x103)](_0xa23502[_0x2340c0(0x10c)](getCredentialsPath))&&(_0xa23502['isXHh'](_0xa23502[_0x2340c0(0xf8)],_0xa23502[_0x2340c0(0x125)])?(console[_0x2340c0(0xf5)](_0xa23502[_0x2340c0(0x155)]),await _0xa23502['rUoav'](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x14f)],_0xa23502['BpCSr'],null,_0x5eb4fa),process[_0x2340c0(0x167)](0x1)):(_0x4ee8a3['info'](_0x2340c0(0x147)),_0x1c9557[_0x2340c0(0x167)](0x0)));_0xa23502[_0x2340c0(0xfe)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x165)],null,null,_0x5eb4fa);!_0x5eb4fa[_0x2340c0(0x132)]&&(_0xa23502[_0x2340c0(0xfd)](_0xa23502[_0x2340c0(0x135)],_0xa23502[_0x2340c0(0x146)])?(console[_0x2340c0(0xf5)](_0xa23502['TNCyn']),process[_0x2340c0(0x167)](0x1)):_0x1a080b[_0x2340c0(0x167)](0x0));const _0x4ad70d=JSON[_0x2340c0(0x10f)](fs[_0x2340c0(0x169)](_0xa23502[_0x2340c0(0x10c)](getCredentialsPath))),[_0x9333d8,_0x54e6b6]=await _0xa23502[_0x2340c0(0x136)](getGridDetails,_0x4ad70d[_0x2340c0(0xfc)][_0x2340c0(0xfb)],_0x4ad70d[_0x2340c0(0xfc)][_0x2340c0(0x123)],_0x5eb4fa[_0x2340c0(0x132)]);if(_0x54e6b6){const _0x2b04cb=_0x54e6b6['info'];let _0x283c69=_0x2340c0(0x10d)+_0x2b04cb[_0x2340c0(0x143)]+'\x22\x20and\x20ID\x20'+_0x2b04cb['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x2fd860;_0x54e6b6[_0x2340c0(0x128)]&&_0xa23502[_0x2340c0(0xef)](_0x54e6b6['clusterSpawnedVia'],_0xa23502['EzpCx'])&&(_0xa23502[_0x2340c0(0x101)](_0xa23502['igfgD'],_0xa23502[_0x2340c0(0x106)])?_0x283c69='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2b04cb[_0x2340c0(0x143)]+_0x2340c0(0x122)+_0x2b04cb['id']+_0x2340c0(0x111)+_0x2b04cb[_0x2340c0(0x16e)]+_0x2340c0(0x12a)+_0x2b04cb[_0x2340c0(0x11f)]+_0x2340c0(0x160):_0x466bf8['cloudProvider']={});_0x2fd860=await _0xa23502[_0x2340c0(0x11e)](inputConfirmation,_0x283c69);if(_0xa23502[_0x2340c0(0xef)](_0x2fd860,undefined)||_0xa23502[_0x2340c0(0xef)](_0x2fd860,null)||!(_0xa23502[_0x2340c0(0xef)](_0x2fd860['toLowerCase'](),'y')||_0xa23502[_0x2340c0(0xee)](_0x2fd860[_0x2340c0(0x141)](),'n'))){if(_0xa23502['NXvgr'](_0xa23502[_0x2340c0(0xf9)],_0xa23502[_0x2340c0(0x129)]))console[_0x2340c0(0xf5)](_0xa23502[_0x2340c0(0x124)]),await _0xa23502[_0x2340c0(0x138)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502['eXtpu'],messageTypes[_0x2340c0(0x14f)],_0xa23502[_0x2340c0(0x150)],null,_0x5eb4fa),process['exit'](0x1);else{const _0x4ec82={};_0x4ec82[_0x2340c0(0x121)]=_0xa23502[_0x2340c0(0x10a)],_0x4ec82['type']=_0xa23502['zkSGa'];const _0x3dbf2d={};return _0x3dbf2d['grid-id']=_0x4ec82,_0x451e3f[_0x2340c0(0xff)](_0x1f191d[_0x2340c0(0x10e)])[_0x2340c0(0x105)](_0xf4ced3)['options'](_0x3dbf2d)[_0x2340c0(0x144)](_0xa23502[_0x2340c0(0x159)])[_0x2340c0(0x12e)];}}_0xa23502[_0x2340c0(0xee)](_0x2fd860['toLowerCase'](),'n')&&(_0xa23502[_0x2340c0(0xee)](_0xa23502[_0x2340c0(0xf6)],_0xa23502['ZNtVU'])?(_0x45d29e[_0x2340c0(0xf5)](_0xa23502[_0x2340c0(0x13d)]),_0x2827d5[_0x2340c0(0x167)](0x1)):process[_0x2340c0(0x167)](0x0));global_registry['clusterRegion']=_0x2b04cb[_0x2340c0(0x15b)];const _0x49417b=_0x2b04cb[_0x2340c0(0x108)],_0x2e17d7=_0xa23502[_0x2340c0(0x120)](getCloudProviderObject,_0x49417b,_0x2b04cb[_0x2340c0(0x16e)],_0x2b04cb[_0x2340c0(0x143)]),_0x403477=_0x4ad70d['cloudProvider'];if(_0xa23502[_0x2340c0(0xf2)](_0x403477[_0x49417b],undefined)){if(_0xa23502[_0x2340c0(0x137)](_0xa23502['QMaht'],_0xa23502['xaoyx']))_0xf52df6[_0x2340c0(0x139)](_0x2340c0(0xf0)+_0x4dc1aa[_0x2340c0(0x16e)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');else{logger[_0x2340c0(0x151)](_0xa23502['wGhWD']);_0xa23502['QrrEJ'](_0x4ad70d['cloudProvider'],undefined)&&(_0xa23502[_0x2340c0(0x101)](_0xa23502[_0x2340c0(0x142)],_0xa23502[_0x2340c0(0x142)])?_0x2b1a3e='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2af449[_0x2340c0(0x143)]+_0x2340c0(0x122)+_0x3f59e9['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x571ca6[_0x2340c0(0x16e)]+_0x2340c0(0x12a)+_0x105d85['clusterId']+_0x2340c0(0x160):_0x4ad70d[_0x2340c0(0x108)]={});_0x4ad70d[_0x2340c0(0x108)][_0x49417b]={};const _0x41c7fe=await _0xa23502[_0x2340c0(0x120)](inputCloudProviderKeys,_0x49417b,_0x4ad70d,_0x2e17d7);fs[_0x2340c0(0x13e)](_0xa23502['cPvks'](getCredentialsPath),JSON['stringify'](_0x41c7fe)),logger[_0x2340c0(0x164)](_0xa23502['NeTvW']);}}else logger[_0x2340c0(0x151)](_0xa23502[_0x2340c0(0xf4)]),await _0x2e17d7['fetchLocalCreds'](_0x403477);_0x2e17d7['configureIfNotConfigured']();const _0x480443=_0xa23502['rzdxk'](kebabCase,_0x2b04cb['name']),[_0x9d203a,_0x4c17c7,_0x236917,_0x4ab58b,_0x414ec0,_0x338775]=await _0xa23502['slNCC'](createK8sClient,_0x2e17d7);await _0xa23502[_0x2340c0(0x133)](removeGridComponents,_0x9d203a,_0x4c17c7,_0x236917,_0x4ab58b,_0x480443);if(_0x54e6b6[_0x2340c0(0x128)]){const _0x36b1a3=await _0x2e17d7['isBrowserstackCluster']();_0x36b1a3?await _0x2e17d7[_0x2340c0(0x12b)](_0x9d203a,_0x2b04cb[_0x2340c0(0x15b)]):logger['warn']('Cluster:\x20'+_0x2b04cb[_0x2340c0(0x16e)]+_0x2340c0(0xeb));}const _0x517a53=_0x2340c0(0x104)+AG_API_URL+_0x2340c0(0x152)+_0x5eb4fa[_0x2340c0(0x132)],_0x5ca4b8={};_0x5ca4b8['username']=_0x4ad70d[_0x2340c0(0xfc)][_0x2340c0(0xfb)],_0x5ca4b8[_0x2340c0(0x123)]=_0x4ad70d[_0x2340c0(0xfc)]['password'];const _0x55e5c8={};_0x55e5c8[_0x2340c0(0x154)]=_0x517a53,_0x55e5c8[_0x2340c0(0x127)]=_0xa23502[_0x2340c0(0x12f)],_0x55e5c8['auth']=_0x5ca4b8;const _0xb26b28=_0x55e5c8,_0x4062ff=await _0xa23502[_0x2340c0(0x11c)](promisifiedRequest,_0xb26b28);_0xa23502['BLfzM'](_0x4062ff,null)&&_0xa23502[_0x2340c0(0xfd)](_0x4062ff,undefined)&&_0xa23502[_0x2340c0(0x16c)](_0x4062ff[_0x2340c0(0x157)],0xc8)&&(logger[_0x2340c0(0x151)](_0x2340c0(0x147)),process[_0x2340c0(0x167)](0x0)),logger[_0x2340c0(0xf5)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x2340c0(0x10b)](_0x4062ff)),await _0xa23502[_0x2340c0(0x119)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes['ERROR'],_0xa23502[_0x2340c0(0xfa)],_0x9333d8,_0x5eb4fa),process[_0x2340c0(0x167)](0x1);}_0xa23502[_0x2340c0(0xe9)](_0x9333d8['statusCode'],0x191)&&(logger['error'](_0x2340c0(0x153)),await _0xa23502[_0x2340c0(0x16b)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x14f)],_0xa23502['cPhVT'],null,_0x5eb4fa),process[_0x2340c0(0x167)](0x1)),_0xa23502[_0x2340c0(0xf2)](_0x9333d8['statusCode'],0x190)&&(logger[_0x2340c0(0xf5)](JSON[_0x2340c0(0x10f)](_0x9333d8[_0x2340c0(0x113)])['message']),await _0xa23502['XPcQA'](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes['ERROR'],_0xa23502[_0x2340c0(0x171)],null,_0x5eb4fa),process['exit'](0x1)),logger['error'](_0x2340c0(0x15d)+JSON[_0x2340c0(0x10b)](_0x9333d8)),await _0xa23502[_0x2340c0(0x138)](sendInstrumentationEvent,_0x5eb4fa,_0xa23502[_0x2340c0(0x117)],messageTypes[_0x2340c0(0x14f)],_0xa23502[_0x2340c0(0xfa)],_0x9333d8,_0x5eb4fa),process['exit'](0x1);}catch(_0x3fa59d){logger[_0x2340c0(0xf5)](_0x2340c0(0xf3)+_0x3fa59d[_0x2340c0(0x12c)]),await _0xa23502['FpxMd'](sendInstrumentationEvent,_0x5eb4fa,_0xa23502['eXtpu'],messageTypes['ERROR'],_0xa23502[_0x2340c0(0x15c)],_0x3fa59d,_0x5eb4fa),process[_0x2340c0(0x167)](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a13_0x2ea1(_0x1b8371,_0x304cf1){const _0x5097f0=a13_0x5097();return a13_0x2ea1=function(_0x2ea1f5,_0x14f5d5){_0x2ea1f5=_0x2ea1f5-0x11c;let _0x2b5c5c=_0x5097f0[_0x2ea1f5];return _0x2b5c5c;},a13_0x2ea1(_0x1b8371,_0x304cf1);}function a13_0x5097(){const _0x3ceb09=['../config/logger','error','BROWSERSTACK_ACCESS_KEY','unknown-error','cNAmk','readFileSync','bstack-username','KrSDY','parse','AmGzv','WSIbK','env','BROWSERSTACK_USERNAME','CGcQx','ICPSa','qqvNC','wdmHs','username','ocXxW','exit','help','strict','RzUZP','writeFileSync','iVIXs','uuid','mVxMO','stack','cNWKX','password','BxdYc','400iCYeGd','200WDberW','YXwgU','198624kBPMDC','dQUtb','ZSiAL','gdudi','builder','Bpgog','CQhZm','url','requestId','KjbjA','779647nciDPm','cxhvm','BiqeS','jXeDk','3879618FfYqMe','iqdlX','CKBGK','type','DPNuo','fshLk','jdHPb','ERROR','wISOT','desc','string','options','96971OMRFPb','command','DzaBu','qfcVl','wrong-creds','handler','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Browserstack','bstackAccesskey','UQRiF','fuNTQ','debug','Zefmk','DMGTB','stringify','usage','OdXJg','existsSync','dqRzU','recommendCommands','method','xvEzi','xgpBj','353215McLUww','argv','dHbfE','xnnjY','KiNZU','RbAzd','488KiiyNH','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/constants','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','2jSpYDN','init','VVdcn','IWSJs','../utils/utilityMethods','111055wAYGgz','526374oGQSJx','init-called','bstack-accesskey','description','utf-8','epilogue','qxtRt','NlKII','GET','DPYBX','mkdirSync','promisify','bstackUsername','tOCoL','crFQV','https://'];a13_0x5097=function(){return _0x3ceb09;};return a13_0x5097();}const a13_0x404a12=a13_0x2ea1;(function(_0x380422,_0x302ba0){const _0x22789f=a13_0x2ea1,_0x359556=_0x380422();while(!![]){try{const _0x2c7637=-parseInt(_0x22789f(0x154))/0x1*(-parseInt(_0x22789f(0x15e))/0x2)+parseInt(_0x22789f(0x123))/0x3+-parseInt(_0x22789f(0x121))/0x4*(parseInt(_0x22789f(0x163))/0x5)+-parseInt(_0x22789f(0x131))/0x6+-parseInt(_0x22789f(0x13d))/0x7*(parseInt(_0x22789f(0x15a))/0x8)+-parseInt(_0x22789f(0x164))/0x9+-parseInt(_0x22789f(0x120))/0xa*(-parseInt(_0x22789f(0x12d))/0xb);if(_0x2c7637===_0x302ba0)break;else _0x359556['push'](_0x359556['shift']());}catch(_0xe227d){_0x359556['push'](_0x359556['shift']());}}}(a13_0x5097,0x90fa7));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a13_0x404a12(0x18d)),{logger}=require(a13_0x404a12(0x174)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x404a12(0x15c)),{getDirForConfig,getCredentialsPath}=require(a13_0x404a12(0x162)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a13_0x404a12(0x16f)](request);exports[a13_0x404a12(0x13e)]=a13_0x404a12(0x15f),exports[a13_0x404a12(0x13a)]=a13_0x404a12(0x15d),exports[a13_0x404a12(0x127)]=function(_0x35ceb9){const _0x2b07e8=a13_0x404a12,_0x57ac23={};_0x57ac23[_0x2b07e8(0x12f)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x57ac23[_0x2b07e8(0x140)]=_0x2b07e8(0x13b),_0x57ac23[_0x2b07e8(0x129)]=_0x2b07e8(0x15b),_0x57ac23[_0x2b07e8(0x172)]=_0x2b07e8(0x188);const _0x3b0c72=_0x57ac23,_0x56362f={};_0x56362f['description']=_0x3b0c72['BiqeS'],_0x56362f[_0x2b07e8(0x134)]=_0x3b0c72[_0x2b07e8(0x140)];const _0x312181={};_0x312181[_0x2b07e8(0x167)]=_0x3b0c72[_0x2b07e8(0x129)],_0x312181[_0x2b07e8(0x134)]=_0x3b0c72[_0x2b07e8(0x140)];const _0x5542dc={};return _0x5542dc[_0x2b07e8(0x17a)]=_0x56362f,_0x5542dc[_0x2b07e8(0x166)]=_0x312181,_0x35ceb9[_0x2b07e8(0x14c)](HELP_HEADER_MESSAGE[_0x2b07e8(0x15f)])[_0x2b07e8(0x169)](HELP_FOOTER_MESSAGE)[_0x2b07e8(0x13c)](_0x5542dc)['recommendCommands']()[_0x2b07e8(0x189)]()[_0x2b07e8(0x188)](_0x3b0c72[_0x2b07e8(0x172)])[_0x2b07e8(0x155)];},exports[a13_0x404a12(0x142)]=async function(_0x4bda57){const _0x49cfae=a13_0x404a12,_0x47d2c2={'VVdcn':_0x49cfae(0x143),'WSIbK':_0x49cfae(0x13b),'eeznL':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZSiAL':_0x49cfae(0x188),'qqvNC':_0x49cfae(0x168),'xnnjY':function(_0x7d822c){return _0x7d822c();},'CKBGK':function(_0x3b9ae8){return _0x3b9ae8();},'DMGTB':function(_0x3572fc,_0x2eafb8,_0x1ef02a,_0x218d65,_0x4c0375,_0x33bc35,_0xc7e1e9){return _0x3572fc(_0x2eafb8,_0x1ef02a,_0x218d65,_0x4c0375,_0x33bc35,_0xc7e1e9);},'OdXJg':_0x49cfae(0x165),'qxtRt':function(_0x21b54d){return _0x21b54d();},'jtWAA':function(_0x56b7a7,_0x5214ca){return _0x56b7a7===_0x5214ca;},'wISOT':_0x49cfae(0x152),'GCOwk':function(_0x49f11d,_0x126392){return _0x49f11d===_0x126392;},'iqdlX':_0x49cfae(0x16b),'KrSDY':_0x49cfae(0x156),'fuNTQ':function(_0x3729ff,_0xf4f7d0){return _0x3729ff===_0xf4f7d0;},'DPYBX':'nCpsG','fshLk':function(_0x195d76,_0x214fa2){return _0x195d76===_0x214fa2;},'RzUZP':_0x49cfae(0x12c),'cNAmk':_0x49cfae(0x137),'jXeDk':function(_0x47b31d,_0x75c8ac){return _0x47b31d!==_0x75c8ac;},'DzaBu':_0x49cfae(0x158),'QEbGf':_0x49cfae(0x161),'iVIXs':function(_0xfd1e0e,_0x59a8c8){return _0xfd1e0e===_0x59a8c8;},'BxdYc':_0x49cfae(0x135),'cxhvm':_0x49cfae(0x124),'mVxMO':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','YXwgU':_0x49cfae(0x16c),'Wguno':function(_0x1f1fee,_0x2c7dfb){return _0x1f1fee(_0x2c7dfb);},'RbAzd':function(_0x3f180f,_0x31551a){return _0x3f180f!==_0x31551a;},'gdudi':function(_0xeb6a86,_0x5c466a){return _0xeb6a86!==_0x5c466a;},'LifZH':function(_0x4f1aca,_0x5cd2ee){return _0x4f1aca!==_0x5cd2ee;},'Bpgog':_0x49cfae(0x184),'cNWKX':_0x49cfae(0x181),'tOCoL':_0x49cfae(0x146),'ICPSa':function(_0x4ab560){return _0x4ab560();},'xgpBj':'lhJkN','ocXxW':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Zefmk':function(_0x314b45,_0x290055,_0x315c66,_0x23ff0f,_0x19bdc5,_0x4326a0,_0x3f637f){return _0x314b45(_0x290055,_0x315c66,_0x23ff0f,_0x19bdc5,_0x4326a0,_0x3f637f);},'UUran':_0x49cfae(0x141),'AmGzv':function(_0x50b61d,_0x532cf3,_0x53435c,_0x384593,_0x24262f,_0x2a8dcd,_0x3ea7ca){return _0x50b61d(_0x532cf3,_0x53435c,_0x384593,_0x24262f,_0x2a8dcd,_0x3ea7ca);},'dqRzU':_0x49cfae(0x177)};try{global_registry[_0x49cfae(0x12b)]=_0x47d2c2[_0x49cfae(0x133)](uuidv4),_0x47d2c2[_0x49cfae(0x14a)](sendInstrumentationEvent,_0x4bda57,_0x47d2c2[_0x49cfae(0x14d)],messageTypes['INFO'],null,null,_0x4bda57);const _0x1e4109=_0x47d2c2[_0x49cfae(0x16a)](getDirForConfig);!fs[_0x49cfae(0x14e)](_0x1e4109)&&(_0x47d2c2['jtWAA'](_0x47d2c2['wISOT'],_0x47d2c2[_0x49cfae(0x139)])?fs[_0x49cfae(0x16e)](_0x1e4109):_0x278587=_0x3f5d5a[_0x49cfae(0x145)]);let _0x293a90,_0x5c5c05;process[_0x49cfae(0x17f)][_0x49cfae(0x180)]&&(_0x47d2c2['GCOwk'](_0x47d2c2[_0x49cfae(0x132)],_0x47d2c2[_0x49cfae(0x17b)])?_0x518789=_0x54e891[_0x49cfae(0x17f)]['BROWSERSTACK_USERNAME']:_0x293a90=process['env'][_0x49cfae(0x180)]);if(process[_0x49cfae(0x17f)]['BROWSERSTACK_ACCESS_KEY']){if(_0x47d2c2[_0x49cfae(0x147)](_0x47d2c2[_0x49cfae(0x16d)],_0x47d2c2['DPYBX']))_0x5c5c05=process[_0x49cfae(0x17f)][_0x49cfae(0x176)];else{const _0x2a311c={};_0x2a311c[_0x49cfae(0x167)]=_0x47d2c2[_0x49cfae(0x160)],_0x2a311c[_0x49cfae(0x134)]=_0x47d2c2[_0x49cfae(0x17e)];const _0x4508f4={};_0x4508f4[_0x49cfae(0x167)]=_0x47d2c2['eeznL'],_0x4508f4[_0x49cfae(0x134)]=_0x47d2c2[_0x49cfae(0x17e)];const _0x1d886a={};return _0x1d886a['bstack-username']=_0x2a311c,_0x1d886a[_0x49cfae(0x166)]=_0x4508f4,_0x57a776['usage'](_0x497c43[_0x49cfae(0x15f)])['epilogue'](_0x283685)[_0x49cfae(0x13c)](_0x1d886a)[_0x49cfae(0x150)]()[_0x49cfae(0x189)]()[_0x49cfae(0x188)](_0x47d2c2[_0x49cfae(0x125)])[_0x49cfae(0x155)];}}_0x4bda57[_0x49cfae(0x170)]&&(_0x47d2c2[_0x49cfae(0x136)](_0x47d2c2[_0x49cfae(0x18a)],_0x47d2c2[_0x49cfae(0x178)])?_0x459640=_0x4f8bd8[_0x49cfae(0x170)]:_0x293a90=_0x4bda57['bstackUsername']);_0x4bda57[_0x49cfae(0x145)]&&(_0x47d2c2[_0x49cfae(0x130)](_0x47d2c2[_0x49cfae(0x13f)],_0x47d2c2['QEbGf'])?_0x5c5c05=_0x4bda57[_0x49cfae(0x145)]:_0x57c10a=!![]);if(_0x47d2c2['jtWAA'](_0x293a90,undefined)||_0x47d2c2['fshLk'](_0x5c5c05,undefined)){if(_0x47d2c2[_0x49cfae(0x18c)](_0x47d2c2[_0x49cfae(0x11f)],_0x47d2c2[_0x49cfae(0x12e)]))_0x51405d=_0x1a0081[_0x49cfae(0x17c)](_0x13f231[_0x49cfae(0x179)](_0x59fb18,_0x47d2c2['qqvNC']));else{logger[_0x49cfae(0x148)](_0x47d2c2[_0x49cfae(0x18e)]);const [_0x1e40d8,_0x29c087]=await _0x47d2c2['xnnjY'](inputBstackKeys);_0x293a90=_0x1e40d8,_0x5c5c05=_0x29c087;}}let _0x2221d6=![];const _0x1bfcf1={};_0x1bfcf1[_0x49cfae(0x12a)]=_0x49cfae(0x173)+_0x293a90+':'+_0x5c5c05+'@'+BS_API_URL+'/automate/plan.json',_0x1bfcf1[_0x49cfae(0x151)]=_0x47d2c2[_0x49cfae(0x122)];const _0xaec097=_0x1bfcf1,_0x14aecb=await _0x47d2c2['Wguno'](promisifiedRequest,_0xaec097);if(_0x47d2c2[_0x49cfae(0x159)](_0x14aecb,null)&&_0x47d2c2[_0x49cfae(0x126)](_0x14aecb,undefined)&&_0x47d2c2[_0x49cfae(0x18c)](_0x14aecb['statusCode'],0xc8)){if(_0x47d2c2['LifZH'](_0x47d2c2[_0x49cfae(0x128)],_0x47d2c2[_0x49cfae(0x128)])){let _0xe61731={};const _0x5592fc=_0x47d2c2[_0x49cfae(0x157)](_0x3ab169);_0x4d4bff['existsSync'](_0x5592fc)&&(_0xe61731=_0x83e529[_0x49cfae(0x17c)](_0x54eb4a[_0x49cfae(0x179)](_0x5592fc,_0x47d2c2[_0x49cfae(0x183)])));const _0xfe3a5={};_0xfe3a5[_0x49cfae(0x185)]=_0x212ab0,_0xfe3a5[_0x49cfae(0x11e)]=_0x368fac,_0xe61731[_0x49cfae(0x144)]=_0xfe3a5,_0x3a0f50[_0x49cfae(0x18b)](_0x5592fc,_0x21766e[_0x49cfae(0x14b)](_0xe61731)),_0x1066d0['exit'](0x0);}else _0x2221d6=!![];}if(_0x2221d6){if(_0x47d2c2['fshLk'](_0x47d2c2[_0x49cfae(0x11d)],_0x47d2c2[_0x49cfae(0x171)]))_0x5c7bfe['mkdirSync'](_0x345b60);else{let _0x532f77={};const _0x3801de=_0x47d2c2[_0x49cfae(0x182)](getCredentialsPath);fs[_0x49cfae(0x14e)](_0x3801de)&&(_0x47d2c2[_0x49cfae(0x147)](_0x47d2c2[_0x49cfae(0x153)],_0x47d2c2[_0x49cfae(0x153)])?_0x532f77=JSON[_0x49cfae(0x17c)](fs[_0x49cfae(0x179)](_0x3801de,_0x47d2c2[_0x49cfae(0x183)])):_0x580e90=_0xa33520[_0x49cfae(0x17f)][_0x49cfae(0x176)]);const _0xd55cf8={};_0xd55cf8[_0x49cfae(0x185)]=_0x293a90,_0xd55cf8['password']=_0x5c5c05,_0x532f77[_0x49cfae(0x144)]=_0xd55cf8,fs[_0x49cfae(0x18b)](_0x3801de,JSON[_0x49cfae(0x14b)](_0x532f77)),process[_0x49cfae(0x187)](0x0);}}else logger[_0x49cfae(0x175)](_0x47d2c2[_0x49cfae(0x186)]),await _0x47d2c2[_0x49cfae(0x149)](sendInstrumentationEvent,_0x4bda57,_0x47d2c2[_0x49cfae(0x14d)],messageTypes[_0x49cfae(0x138)],_0x47d2c2['UUran'],null,_0x4bda57),process[_0x49cfae(0x187)](0x1);}catch(_0x2daf5a){logger[_0x49cfae(0x175)](_0x2daf5a[_0x49cfae(0x11c)]),await _0x47d2c2[_0x49cfae(0x17d)](sendInstrumentationEvent,_0x4bda57,_0x47d2c2[_0x49cfae(0x14d)],messageTypes[_0x49cfae(0x138)],_0x47d2c2[_0x49cfae(0x14f)],_0x2daf5a,_0x4bda57),process[_0x49cfae(0x187)](0x1);}};
|
|
1
|
+
const a13_0xef949e=a13_0x3d5c;function a13_0x2d41(){const _0x560db7=['IbWzm','HOXPc','Browserstack','jnkPU','327951oeWCjC','EWVCf','argv','PnQkW','LJCSN','zOfCT','ryAKo','KkwGz','method','PovtM','aMsEB','util','type','handler','80802BoDZyN','usage','cjpHl','bstack-accesskey','rRolZ','1209910TAKCSb','aclNN','description','WdvYy','options','bstackAccesskey','wyhim','daXTN','bstack-username','GET','gbYSJ','DVMcz','parse','username','../config/logger','BROWSERSTACK_ACCESS_KEY','epilogue','init-called','RYyem','nyUpw','strict','IvSnG','ngHOv','https://','stringify','init','1339090HrKueL','LpJvR','1093998FFajtK','IAmum','609OTTczi','../config/constants','sWlkR','readFileSync','bstackUsername','error','request','KVSSD','promisify','toRvJ','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','recommendCommands','mkdirSync','uuid','411656PrAogb','QkaRs','bQwmA','password','nbTTd','IPZZZ','ugcgw','oeDST','existsSync','EMpvo','unknown-error','ERROR','wTlBR','../utils/utilityMethods','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','debug','weWqa','11553200UBSFix','SXdHx','BROWSERSTACK_USERNAME','../utils/instrumentationUtils','help','qtehm','exit','string','QucBL','env'];a13_0x2d41=function(){return _0x560db7;};return a13_0x2d41();}(function(_0x463f20,_0x32953d){const _0x355ff4=a13_0x3d5c,_0x54c2ce=_0x463f20();while(!![]){try{const _0x196a25=parseInt(_0x355ff4(0x72))/0x1+parseInt(_0x355ff4(0x85))/0x2+parseInt(_0x355ff4(0xa1))/0x3+-parseInt(_0x355ff4(0xb2))/0x4+-parseInt(_0x355ff4(0x9f))/0x5+-parseInt(_0x355ff4(0x80))/0x6*(-parseInt(_0x355ff4(0xa3))/0x7)+-parseInt(_0x355ff4(0xc3))/0x8;if(_0x196a25===_0x32953d)break;else _0x54c2ce['push'](_0x54c2ce['shift']());}catch(_0x47e69b){_0x54c2ce['push'](_0x54c2ce['shift']());}}}(a13_0x2d41,0x9fbef));function a13_0x3d5c(_0x109e56,_0x568072){const _0x2d4102=a13_0x2d41();return a13_0x3d5c=function(_0x3d5c85,_0x5ebcda){_0x3d5c85=_0x3d5c85-0x66;let _0x3e68b8=_0x2d4102[_0x3d5c85];return _0x3e68b8;},a13_0x3d5c(_0x109e56,_0x568072);}const fs=require('fs'),util=require(a13_0xef949e(0x7d)),request=require(a13_0xef949e(0xa9)),{v4:uuidv4}=require(a13_0xef949e(0xb1)),{logger}=require(a13_0xef949e(0x93)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0xef949e(0xa4)),{getDirForConfig,getCredentialsPath}=require(a13_0xef949e(0xbf)),{sendInstrumentationEvent}=require(a13_0xef949e(0x67)),promisifiedRequest=util[a13_0xef949e(0xab)](request);exports['command']='init',exports['desc']=a13_0xef949e(0xae),exports['builder']=function(_0x1067cd){const _0xc73eba=a13_0xef949e,_0x18e87b={};_0x18e87b[_0xc73eba(0x76)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x18e87b[_0xc73eba(0x6e)]=_0xc73eba(0x6b),_0x18e87b[_0xc73eba(0x7c)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x18e87b[_0xc73eba(0x6c)]=_0xc73eba(0x68);const _0x10962f=_0x18e87b,_0x356db0={};_0x356db0[_0xc73eba(0x87)]=_0x10962f[_0xc73eba(0x76)],_0x356db0[_0xc73eba(0x7e)]=_0x10962f['IbWzm'];const _0x26b296={};_0x26b296[_0xc73eba(0x87)]=_0x10962f[_0xc73eba(0x7c)],_0x26b296[_0xc73eba(0x7e)]=_0x10962f[_0xc73eba(0x6e)];const _0x4eab17={};return _0x4eab17['bstack-username']=_0x356db0,_0x4eab17[_0xc73eba(0x83)]=_0x26b296,_0x1067cd[_0xc73eba(0x81)](HELP_HEADER_MESSAGE[_0xc73eba(0x9e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc73eba(0x89)](_0x4eab17)['recommendCommands']()[_0xc73eba(0x99)]()['help'](_0x10962f['QucBL'])[_0xc73eba(0x74)];},exports[a13_0xef949e(0x7f)]=async function(_0x658882){const _0x3880a1=a13_0xef949e,_0x41619c={'PovtM':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','RYyem':_0x3880a1(0x6b),'IvSnG':_0x3880a1(0xc0),'dhvxY':_0x3880a1(0x68),'wTlBR':function(_0x1c1882){return _0x1c1882();},'DVMcz':'utf-8','cjpHl':function(_0x42d859,_0xb96af3,_0x2097c8,_0x20a70f,_0x4b7902,_0x133ee7,_0x25b577){return _0x42d859(_0xb96af3,_0x2097c8,_0x20a70f,_0x4b7902,_0x133ee7,_0x25b577);},'PnQkW':_0x3880a1(0x96),'KVSSD':function(_0x1d7fad,_0x2dbe25){return _0x1d7fad!==_0x2dbe25;},'bQwmA':_0x3880a1(0x6f),'zOfCT':_0x3880a1(0xa2),'sWlkR':_0x3880a1(0xb8),'LXRcO':function(_0x1d59db,_0x16f817){return _0x1d59db!==_0x16f817;},'IPZZZ':'DoUnz','EWVCf':_0x3880a1(0x71),'rRvsM':_0x3880a1(0xb6),'daXTN':function(_0x400e44,_0x84769a){return _0x400e44===_0x84769a;},'toRvJ':'zruGk','SXdHx':function(_0x51e038,_0xc4c08e){return _0x51e038===_0xc4c08e;},'rRolZ':function(_0x18633a,_0x3717b8){return _0x18633a!==_0x3717b8;},'WdvYy':'uoZXt','aclNN':_0x3880a1(0x9b),'QkaRs':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','PbPxQ':_0x3880a1(0x8e),'fiEfA':function(_0xf59b2b,_0x2ccb71){return _0xf59b2b(_0x2ccb71);},'weWqa':function(_0x376372,_0x2aa269){return _0x376372!==_0x2aa269;},'bFLPz':function(_0x4db93,_0x49bc60){return _0x4db93!==_0x49bc60;},'oeDST':function(_0x50a028,_0x332441){return _0x50a028===_0x332441;},'rSfst':'OFQIC','LpJvR':_0x3880a1(0x98),'qtehm':function(_0x4121c2){return _0x4121c2();},'wyhim':function(_0x1f9de4,_0xaceb56){return _0x1f9de4!==_0xaceb56;},'gbYSJ':_0x3880a1(0xbb),'KkwGz':_0x3880a1(0xad),'UCLhO':function(_0x3a21e6,_0x5e6c54,_0x42b986,_0x229990,_0x3e661b,_0x4fa82d,_0x30b15e){return _0x3a21e6(_0x5e6c54,_0x42b986,_0x229990,_0x3e661b,_0x4fa82d,_0x30b15e);},'ryAKo':'wrong-creds','pskzU':_0x3880a1(0xbc)};try{global_registry['requestId']=_0x41619c['wTlBR'](uuidv4),_0x41619c[_0x3880a1(0x82)](sendInstrumentationEvent,_0x658882,_0x41619c[_0x3880a1(0x75)],messageTypes['INFO'],null,null,_0x658882);const _0x239cdf=_0x41619c[_0x3880a1(0xbe)](getDirForConfig);!fs[_0x3880a1(0xba)](_0x239cdf)&&(_0x41619c['KVSSD'](_0x41619c[_0x3880a1(0xb4)],_0x41619c['bQwmA'])?_0x342cab[_0x3880a1(0xb0)](_0x5b5aeb):fs[_0x3880a1(0xb0)](_0x239cdf));let _0x54cbb3,_0x462bba;if(process[_0x3880a1(0x6d)][_0x3880a1(0x66)]){if(_0x41619c[_0x3880a1(0xaa)](_0x41619c[_0x3880a1(0x77)],_0x41619c[_0x3880a1(0xa5)]))_0x54cbb3=process[_0x3880a1(0x6d)][_0x3880a1(0x66)];else{const _0x113be7={};_0x113be7['description']=_0x41619c[_0x3880a1(0x7b)],_0x113be7[_0x3880a1(0x7e)]=_0x41619c[_0x3880a1(0x97)];const _0x3785b4={};_0x3785b4['description']=_0x41619c[_0x3880a1(0x9a)],_0x3785b4[_0x3880a1(0x7e)]=_0x41619c['RYyem'];const _0x18b720={};return _0x18b720[_0x3880a1(0x8d)]=_0x113be7,_0x18b720[_0x3880a1(0x83)]=_0x3785b4,_0x5f1c11['usage'](_0x823302[_0x3880a1(0x9e)])[_0x3880a1(0x95)](_0x29e179)[_0x3880a1(0x89)](_0x18b720)[_0x3880a1(0xaf)]()[_0x3880a1(0x99)]()[_0x3880a1(0x68)](_0x41619c['dhvxY'])[_0x3880a1(0x74)];}}process[_0x3880a1(0x6d)]['BROWSERSTACK_ACCESS_KEY']&&(_0x41619c['LXRcO'](_0x41619c[_0x3880a1(0xb7)],_0x41619c['IPZZZ'])?_0x3866e4=_0x40f507['env']['BROWSERSTACK_ACCESS_KEY']:_0x462bba=process['env'][_0x3880a1(0x94)]);if(_0x658882[_0x3880a1(0xa7)]){if(_0x41619c[_0x3880a1(0xaa)](_0x41619c[_0x3880a1(0x73)],_0x41619c['rRvsM']))_0x54cbb3=_0x658882[_0x3880a1(0xa7)];else{let _0x5c1867={};const _0x4b06cc=_0x41619c[_0x3880a1(0xbe)](_0x54e471);_0x3a2c21['existsSync'](_0x4b06cc)&&(_0x5c1867=_0x3300d8[_0x3880a1(0x91)](_0x3858bf[_0x3880a1(0xa6)](_0x4b06cc,_0x41619c[_0x3880a1(0x90)])));const _0x59e3f7={};_0x59e3f7[_0x3880a1(0x92)]=_0x15889a,_0x59e3f7[_0x3880a1(0xb5)]=_0x340480,_0x5c1867['Browserstack']=_0x59e3f7,_0x20b496['writeFileSync'](_0x4b06cc,_0x1f8caf[_0x3880a1(0x9d)](_0x5c1867)),_0xf7042c[_0x3880a1(0x6a)](0x0);}}_0x658882[_0x3880a1(0x8a)]&&(_0x41619c[_0x3880a1(0x8c)](_0x41619c[_0x3880a1(0xac)],_0x41619c['toRvJ'])?_0x462bba=_0x658882[_0x3880a1(0x8a)]:_0x14f6cf=_0x5f3cf3[_0x3880a1(0x8a)]);if(_0x41619c[_0x3880a1(0x8c)](_0x54cbb3,undefined)||_0x41619c[_0x3880a1(0xc4)](_0x462bba,undefined)){if(_0x41619c[_0x3880a1(0x84)](_0x41619c[_0x3880a1(0x88)],_0x41619c[_0x3880a1(0x86)])){logger[_0x3880a1(0xc1)](_0x41619c[_0x3880a1(0xb3)]);const [_0x5d8c80,_0x92996]=await _0x41619c[_0x3880a1(0xbe)](inputBstackKeys);_0x54cbb3=_0x5d8c80,_0x462bba=_0x92996;}else _0x492b3e=!![];}let _0x3313a0=![];const _0x116a3c={};_0x116a3c['url']=_0x3880a1(0x9c)+_0x54cbb3+':'+_0x462bba+'@'+BS_API_URL+'/automate/plan.json',_0x116a3c[_0x3880a1(0x7a)]=_0x41619c['PbPxQ'];const _0x24a8d8=_0x116a3c,_0x112810=await _0x41619c['fiEfA'](promisifiedRequest,_0x24a8d8);_0x41619c[_0x3880a1(0xc2)](_0x112810,null)&&_0x41619c['bFLPz'](_0x112810,undefined)&&_0x41619c['oeDST'](_0x112810['statusCode'],0xc8)&&(_0x41619c['LXRcO'](_0x41619c['rSfst'],_0x41619c['rSfst'])?_0x3a11c3=_0x1b3f9e['env'][_0x3880a1(0x66)]:_0x3313a0=!![]);if(_0x3313a0){if(_0x41619c[_0x3880a1(0xb9)](_0x41619c[_0x3880a1(0xa0)],_0x41619c[_0x3880a1(0xa0)])){let _0x8bbab0={};const _0x36e681=_0x41619c[_0x3880a1(0x69)](getCredentialsPath);fs[_0x3880a1(0xba)](_0x36e681)&&(_0x41619c[_0x3880a1(0x8b)](_0x41619c[_0x3880a1(0x8f)],_0x41619c[_0x3880a1(0x8f)])?_0x5fd4e4=_0x3ae865[_0x3880a1(0xa7)]:_0x8bbab0=JSON[_0x3880a1(0x91)](fs[_0x3880a1(0xa6)](_0x36e681,_0x41619c[_0x3880a1(0x90)])));const _0x510f78={};_0x510f78['username']=_0x54cbb3,_0x510f78[_0x3880a1(0xb5)]=_0x462bba,_0x8bbab0[_0x3880a1(0x70)]=_0x510f78,fs['writeFileSync'](_0x36e681,JSON['stringify'](_0x8bbab0)),process[_0x3880a1(0x6a)](0x0);}else _0x290aa6=_0x235613[_0x3880a1(0x91)](_0xaa2d97[_0x3880a1(0xa6)](_0x5d0936,_0x41619c[_0x3880a1(0x90)]));}else logger[_0x3880a1(0xa8)](_0x41619c[_0x3880a1(0x79)]),await _0x41619c['UCLhO'](sendInstrumentationEvent,_0x658882,_0x41619c[_0x3880a1(0x75)],messageTypes[_0x3880a1(0xbd)],_0x41619c[_0x3880a1(0x78)],null,_0x658882),process[_0x3880a1(0x6a)](0x1);}catch(_0x3f4054){logger[_0x3880a1(0xa8)](_0x3f4054['stack']),await _0x41619c[_0x3880a1(0x82)](sendInstrumentationEvent,_0x658882,_0x41619c[_0x3880a1(0x75)],messageTypes[_0x3880a1(0xbd)],_0x41619c['pskzU'],_0x3f4054,_0x658882),process[_0x3880a1(0x6a)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x453a2a=a14_0x370b;function a14_0x370b(_0x59f02b,_0x37b61e){const _0x92e9bf=a14_0x92e9();return a14_0x370b=function(_0x370bc7,_0x24d200){_0x370bc7=_0x370bc7-0x1bb;let _0x521ea2=_0x92e9bf[_0x370bc7];return _0x521ea2;},a14_0x370b(_0x59f02b,_0x37b61e);}(function(_0x58edb7,_0x4c531c){const _0x5aa6d4=a14_0x370b,_0x4ffa18=_0x58edb7();while(!![]){try{const _0x25ff8f=parseInt(_0x5aa6d4(0x1bc))/0x1+-parseInt(_0x5aa6d4(0x1d1))/0x2*(-parseInt(_0x5aa6d4(0x1bf))/0x3)+parseInt(_0x5aa6d4(0x1bd))/0x4*(-parseInt(_0x5aa6d4(0x1d3))/0x5)+parseInt(_0x5aa6d4(0x1c8))/0x6*(parseInt(_0x5aa6d4(0x1d0))/0x7)+-parseInt(_0x5aa6d4(0x1d4))/0x8*(-parseInt(_0x5aa6d4(0x1ca))/0x9)+-parseInt(_0x5aa6d4(0x1c7))/0xa*(parseInt(_0x5aa6d4(0x1c2))/0xb)+-parseInt(_0x5aa6d4(0x1c6))/0xc*(parseInt(_0x5aa6d4(0x1c1))/0xd);if(_0x25ff8f===_0x4c531c)break;else _0x4ffa18['push'](_0x4ffa18['shift']());}catch(_0x124dc2){_0x4ffa18['push'](_0x4ffa18['shift']());}}}(a14_0x92e9,0xa670c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x453a2a(0x1c4));exports[a14_0x453a2a(0x1cf)]=a14_0x453a2a(0x1cb),exports['desc']=a14_0x453a2a(0x1ce),exports['builder']=function(_0x27c949){const _0x51e3f1=a14_0x453a2a,_0x2a8aa1={};_0x2a8aa1[_0x51e3f1(0x1d2)]='list_commands',_0x2a8aa1[_0x51e3f1(0x1cc)]='help';const _0x1c2f2d=_0x2a8aa1;return _0x27c949[_0x51e3f1(0x1be)](_0x1c2f2d['iUPbs'])[_0x51e3f1(0x1c3)]()['usage'](HELP_HEADER_MESSAGE[_0x51e3f1(0x1cb)][_0x51e3f1(0x1bb)])[_0x51e3f1(0x1c0)](HELP_FOOTER_MESSAGE)[_0x51e3f1(0x1cd)]()[_0x51e3f1(0x1c9)]()['help'](_0x1c2f2d[_0x51e3f1(0x1cc)]);},exports[a14_0x453a2a(0x1c5)]=function(_0x324262){};function a14_0x92e9(){const _0x38e2bc=['66175AUDeBt','1208GIZqZG','root','589042fTrqmK','124ndgUlo','commandDir','1407GXegQQ','epilogue','559THDVex','166870NKeYwL','demandCommand','../config/constants','handler','306192NtlSZb','230sBbIbz','9708SqGNVW','strict','9729wMneyQ','list','eVjWL','recommendCommands','List\x20down\x20the\x20Grid\x20resources.','command','4431YvbARe','3248tnqqna','iUPbs'];a14_0x92e9=function(){return _0x38e2bc;};return a14_0x92e9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15_0x3209(_0x4cb327,_0x563237){const _0x3c14a6=a15_0x3c14();return a15_0x3209=function(_0x3209b5,_0x215bd0){_0x3209b5=_0x3209b5-0x70;let _0x492a5b=_0x3c14a6[_0x3209b5];return _0x492a5b;},a15_0x3209(_0x4cb327,_0x563237);}const a15_0x51aa35=a15_0x3209;(function(_0x2b5786,_0x1f5a70){const _0x1396ac=a15_0x3209,_0x4075e3=_0x2b5786();while(!![]){try{const _0x52268a=parseInt(_0x1396ac(0xa9))/0x1+parseInt(_0x1396ac(0xbf))/0x2+parseInt(_0x1396ac(0x8e))/0x3*(-parseInt(_0x1396ac(0x85))/0x4)+-parseInt(_0x1396ac(0x9d))/0x5+parseInt(_0x1396ac(0xac))/0x6*(-parseInt(_0x1396ac(0xb4))/0x7)+parseInt(_0x1396ac(0xbd))/0x8+parseInt(_0x1396ac(0xb6))/0x9*(parseInt(_0x1396ac(0x79))/0xa);if(_0x52268a===_0x1f5a70)break;else _0x4075e3['push'](_0x4075e3['shift']());}catch(_0x497177){_0x4075e3['push'](_0x4075e3['shift']());}}}(a15_0x3c14,0x28384));function a15_0x3c14(){const _0x146ce9=['hAgpH','lUXuz','1611813kCwiLK','EzJrv','117iivgcS','unauthorised','existsSync','request','gridProfile','exit','promisify','1834336ZiaxcG','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','135796cVnAXN','INFO','uuid','name','grid-profile-name','hGzuB','allGridProfiles','../../config/constants','stringify','error','epilogue','50790OYziYu','llhwY','push','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','list-grid-profiles-called','Browserstack','auth','ZuOfR','statusCode','handler','Failed\x20to\x20list\x20resources!\x20Error:\x20','cloudProvider','12NyHnWI','server-error','YJJsM','url','username','region','unknown-error','nRdGn','https://','48453gHpbqR','help','rMXvh','boolean','bstackUsername','iMTtK','all-grid-profiles','readFileSync','init-not-called','util','forEach','bstackAccesskey','BnysY','log','parse','411415uJvTht','OmJTD','lQnae','password','gkKIK','/packages/cli/get-grid-profiles','stack','ujWEm','requestId','builder','command','argv','162518SNIThh','/packages/cli/get-all-grid-profiles','desc','6aVJdTA','ERROR','body','method','concurrency','GET'];a15_0x3c14=function(){return _0x146ce9;};return a15_0x3c14();}const fs=require('fs'),util=require(a15_0x51aa35(0x97)),request=require(a15_0x51aa35(0xb9)),{table}=require('table'),{v4:uuidv4}=require(a15_0x51aa35(0x70)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x51aa35(0x75)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a15_0x51aa35(0xbc)](request);exports[a15_0x51aa35(0xa7)]='grid-profiles',exports[a15_0x51aa35(0xab)]=a15_0x51aa35(0x7c),exports[a15_0x51aa35(0xa6)]=function(_0x583080){const _0x495fa6=a15_0x51aa35,_0x3f61fb={};_0x3f61fb['RkwXl']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x3f61fb[_0x495fa6(0x9e)]=_0x495fa6(0x91),_0x3f61fb[_0x495fa6(0x90)]=_0x495fa6(0x8f);const _0x8c5b90=_0x3f61fb,_0x5ceb52={};_0x5ceb52['description']=_0x8c5b90['RkwXl'],_0x5ceb52['type']=_0x8c5b90['OmJTD'];const _0x14bafc={};return _0x14bafc[_0x495fa6(0x94)]=_0x5ceb52,_0x583080['usage'](HELP_HEADER_MESSAGE['list'][_0x495fa6(0xba)])[_0x495fa6(0x78)](HELP_FOOTER_MESSAGE)['options'](_0x14bafc)[_0x495fa6(0x8f)](_0x8c5b90['rMXvh'])[_0x495fa6(0xa8)];},exports[a15_0x51aa35(0x82)]=async function(_0x38533f){const _0x5f1d0d=a15_0x51aa35,_0x18a8da={'YJJsM':function(_0x2d9177){return _0x2d9177();},'iTDxK':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lUXuz':function(_0x55213e,_0x471836,_0x23b8a6,_0x3ec050,_0x4e8a39,_0x89e78,_0x17d61a){return _0x55213e(_0x471836,_0x23b8a6,_0x3ec050,_0x4e8a39,_0x89e78,_0x17d61a);},'ZuOfR':_0x5f1d0d(0x7d),'yWJEE':_0x5f1d0d(0x96),'iMTtK':_0x5f1d0d(0xb1),'nRdGn':function(_0x24c105,_0x1a85d6){return _0x24c105(_0x1a85d6);},'EzJrv':function(_0x335a4e,_0x5c63e6){return _0x335a4e!==_0x5c63e6;},'hGzuB':function(_0x4e63a9,_0x4dead4){return _0x4e63a9!==_0x4dead4;},'gkKIK':function(_0x2fa4a8,_0x45004c){return _0x2fa4a8===_0x45004c;},'IAbhT':_0x5f1d0d(0xbe),'lQnae':_0x5f1d0d(0x72),'aIuzv':'cloud-provider','ujWEm':_0x5f1d0d(0x8a),'naUFR':_0x5f1d0d(0xb0),'llhwY':function(_0x466f6f,_0x849864){return _0x466f6f===_0x849864;},'YaWeA':_0x5f1d0d(0xb7),'BnysY':function(_0x56897b,_0x3f095a,_0x720054,_0x4a1b3b,_0x978484,_0x390c6c,_0x5e8433){return _0x56897b(_0x3f095a,_0x720054,_0x4a1b3b,_0x978484,_0x390c6c,_0x5e8433);},'RuibG':_0x5f1d0d(0x86),'hAgpH':_0x5f1d0d(0x8b)};try{global_registry[_0x5f1d0d(0xa5)]=_0x18a8da['YJJsM'](uuidv4);let _0x41112e=_0x5f1d0d(0x8d)+AG_API_URL+_0x5f1d0d(0xa2);_0x38533f[_0x5f1d0d(0x74)]&&(_0x41112e=_0x5f1d0d(0x8d)+AG_API_URL+_0x5f1d0d(0xaa));!fs[_0x5f1d0d(0xb8)](_0x18a8da[_0x5f1d0d(0x87)](getCredentialsPath))&&(console['error'](_0x18a8da['iTDxK']),await _0x18a8da['lUXuz'](sendInstrumentationEvent,_0x38533f,_0x18a8da['ZuOfR'],messageTypes[_0x5f1d0d(0xad)],_0x18a8da['yWJEE'],null,_0x38533f),process[_0x5f1d0d(0xbb)](0x1));_0x18a8da[_0x5f1d0d(0xb3)](sendInstrumentationEvent,_0x38533f,_0x18a8da[_0x5f1d0d(0x80)],messageTypes[_0x5f1d0d(0xc0)],null,null,_0x38533f);const _0x46ac67=JSON[_0x5f1d0d(0x9c)](fs[_0x5f1d0d(0x95)](_0x18a8da[_0x5f1d0d(0x87)](getCredentialsPath))),_0x5bbbf8={};_0x5bbbf8[_0x5f1d0d(0x89)]=_0x46ac67[_0x5f1d0d(0x7e)][_0x5f1d0d(0x89)],_0x5bbbf8[_0x5f1d0d(0xa0)]=_0x46ac67['Browserstack'][_0x5f1d0d(0xa0)];const _0x2ef2ea={};_0x2ef2ea[_0x5f1d0d(0x88)]=_0x41112e,_0x2ef2ea[_0x5f1d0d(0xaf)]=_0x18a8da[_0x5f1d0d(0x93)],_0x2ef2ea[_0x5f1d0d(0x7f)]=_0x5bbbf8;const _0x3a9eee=_0x2ef2ea;global_registry[_0x5f1d0d(0x92)]=_0x46ac67[_0x5f1d0d(0x7e)][_0x5f1d0d(0x89)],global_registry[_0x5f1d0d(0x99)]=_0x46ac67[_0x5f1d0d(0x7e)]['password'];const _0x415516=await _0x18a8da[_0x5f1d0d(0x8c)](promisifiedRequest,_0x3a9eee);if(_0x18a8da[_0x5f1d0d(0xb5)](_0x415516,null)&&_0x18a8da[_0x5f1d0d(0x73)](_0x415516,undefined)&&_0x18a8da[_0x5f1d0d(0xa1)](_0x415516[_0x5f1d0d(0x81)],0xc8)){const _0x2a0aae=JSON[_0x5f1d0d(0x9c)](_0x415516[_0x5f1d0d(0xae)]);console[_0x5f1d0d(0x9b)](_0x18a8da['IAbhT']);const _0x3c199b=[];_0x3c199b[_0x5f1d0d(0x7b)]([_0x18a8da[_0x5f1d0d(0x9f)],_0x18a8da['aIuzv'],_0x18a8da[_0x5f1d0d(0xa4)],_0x18a8da['naUFR']]),_0x2a0aae[_0x5f1d0d(0x98)](_0x3ca769=>{const _0x5cdb2e=_0x5f1d0d;_0x3c199b[_0x5cdb2e(0x7b)]([_0x3ca769[_0x5cdb2e(0x71)],_0x3ca769[_0x5cdb2e(0x84)],_0x3ca769[_0x5cdb2e(0x8a)],_0x3ca769[_0x5cdb2e(0xb0)]]);}),console[_0x5f1d0d(0x9b)](_0x18a8da[_0x5f1d0d(0x8c)](table,_0x3c199b)),process[_0x5f1d0d(0xbb)](0x0);}_0x18a8da[_0x5f1d0d(0x7a)](_0x415516[_0x5f1d0d(0x81)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x18a8da[_0x5f1d0d(0xb3)](sendInstrumentationEvent,_0x38533f,_0x18a8da[_0x5f1d0d(0x80)],messageTypes[_0x5f1d0d(0xad)],_0x18a8da['YaWeA'],null,_0x38533f),process[_0x5f1d0d(0xbb)](0x1)),console[_0x5f1d0d(0x77)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5f1d0d(0x76)](_0x415516)),await _0x18a8da[_0x5f1d0d(0x9a)](sendInstrumentationEvent,_0x38533f,_0x18a8da['ZuOfR'],messageTypes[_0x5f1d0d(0xad)],_0x18a8da['RuibG'],_0x415516,_0x38533f),process[_0x5f1d0d(0xbb)](0x1);}catch(_0x2a6d68){console[_0x5f1d0d(0x77)](_0x5f1d0d(0x83)+_0x2a6d68[_0x5f1d0d(0xa3)]),await _0x18a8da[_0x5f1d0d(0x9a)](sendInstrumentationEvent,_0x38533f,_0x18a8da[_0x5f1d0d(0x80)],messageTypes[_0x5f1d0d(0xad)],_0x18a8da[_0x5f1d0d(0xb2)],_0x2a6d68,_0x38533f),process[_0x5f1d0d(0xbb)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x5a3860=a16_0x2aac;function a16_0x5c73(){const _0x303126=['log','stack','../../utils/utilityMethods','exit','existsSync','UOlrA','qICmB','grid-name','url','method','running','XoKFw','util','../../utils/instrumentationUtils','requestId','695079kQeJcf','description','server-error','1260552vHFqzQ','name','list','bstackUsername','clusterName','grids','dAgfR','help','MBoOg','35NZrcwM','options','xXuSO','statusCode','https://','bdjhE','XQXZu','parse','queued','Browserstack','forEach','argv','body','init-not-called','table','2834616hSykpg','KxmAl','Msuhl','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','auth','command','7549384vDcdoH','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','554564WTZTjV','Failed\x20to\x20list\x20resources!\x20Error:\x20','readFileSync','allGrids','dRCDj','Ortaz','push','list-grids-called','lAVPi','unknown-error','iXnhr','stringify','error','password','uPuia','epilogue','qYoor','DBUiL','INFO','status','grid-id','1657179IsYGbd','VLPts','grid','XVTlG','218057SkJeMu','poPZL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ERROR','JddXL','DCfpP','all-grids','username','cluster-name','bstackAccesskey'];a16_0x5c73=function(){return _0x303126;};return a16_0x5c73();}(function(_0x445cfa,_0x5112d0){const _0x2f6f6c=a16_0x2aac,_0x3886dc=_0x445cfa();while(!![]){try{const _0x44a506=parseInt(_0x2f6f6c(0x199))/0x1+parseInt(_0x2f6f6c(0x177))/0x2+-parseInt(_0x2f6f6c(0x195))/0x3+-parseInt(_0x2f6f6c(0x180))/0x4*(-parseInt(_0x2f6f6c(0x1be))/0x5)+-parseInt(_0x2f6f6c(0x1b5))/0x6+-parseInt(_0x2f6f6c(0x1b2))/0x7+-parseInt(_0x2f6f6c(0x17d))/0x8;if(_0x44a506===_0x5112d0)break;else _0x3886dc['push'](_0x3886dc['shift']());}catch(_0x18b854){_0x3886dc['push'](_0x3886dc['shift']());}}}(a16_0x5c73,0xc368d));const fs=require('fs'),util=require(a16_0x5a3860(0x1af)),request=require('request'),{table}=require(a16_0x5a3860(0x176)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x5a3860(0x1a5)),{sendInstrumentationEvent}=require(a16_0x5a3860(0x1b0)),promisifiedRequest=util['promisify'](request);function a16_0x2aac(_0x39821a,_0x5aab98){const _0x5c73a3=a16_0x5c73();return a16_0x2aac=function(_0x2aacdf,_0x2eb304){_0x2aacdf=_0x2aacdf-0x175;let _0x4f5669=_0x5c73a3[_0x2aacdf];return _0x4f5669;},a16_0x2aac(_0x39821a,_0x5aab98);}exports[a16_0x5a3860(0x17c)]=a16_0x5a3860(0x1ba),exports['desc']=a16_0x5a3860(0x17a),exports['builder']=function(_0xecdb03){const _0x372a40=a16_0x5a3860,_0x2ca74c={};_0x2ca74c[_0x372a40(0x1c3)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x2ca74c[_0x372a40(0x1c0)]='boolean',_0x2ca74c['qICmB']=_0x372a40(0x1bc);const _0x5c2979=_0x2ca74c,_0x2ff68b={};_0x2ff68b[_0x372a40(0x1b3)]=_0x5c2979['bdjhE'],_0x2ff68b['type']=_0x5c2979[_0x372a40(0x1c0)];const _0x792423={};return _0x792423[_0x372a40(0x19f)]=_0x2ff68b,_0xecdb03['usage'](HELP_HEADER_MESSAGE[_0x372a40(0x1b7)][_0x372a40(0x197)])[_0x372a40(0x18f)](HELP_FOOTER_MESSAGE)[_0x372a40(0x1bf)](_0x792423)['help'](_0x5c2979[_0x372a40(0x1a9)])[_0x372a40(0x1c9)];},exports['handler']=async function(_0x222309){const _0x4d1a26=a16_0x5a3860,_0x32f8b6={'DCfpP':function(_0x2647cd){return _0x2647cd();},'lMMGM':_0x4d1a26(0x17e),'UOlrA':function(_0x43f92b,_0x1f888b,_0x3f6605,_0x5aec4d,_0x542d77,_0x309e0a,_0x3da110){return _0x43f92b(_0x1f888b,_0x3f6605,_0x5aec4d,_0x542d77,_0x309e0a,_0x3da110);},'Msuhl':_0x4d1a26(0x187),'dAgfR':_0x4d1a26(0x175),'lAVPi':'GET','Ortaz':function(_0x292d42,_0x1f2c43,_0x533697,_0xa19785,_0x41bc86,_0xf403cc,_0x55323e){return _0x292d42(_0x1f2c43,_0x533697,_0xa19785,_0x41bc86,_0xf403cc,_0x55323e);},'DBUiL':function(_0x474304,_0x5b9e09){return _0x474304(_0x5b9e09);},'uPuia':function(_0x5c06e4,_0x163b15){return _0x5c06e4!==_0x163b15;},'MBoOg':function(_0x1efa43,_0x182fbc){return _0x1efa43!==_0x182fbc;},'XQXZu':function(_0x1188bd,_0x3bd172){return _0x1188bd===_0x3bd172;},'JddXL':'\x0aFound\x20the\x20following\x20grids:\x0a','XVTlG':_0x4d1a26(0x194),'TqIAc':_0x4d1a26(0x1aa),'XoKFw':_0x4d1a26(0x193),'zxdnj':_0x4d1a26(0x1ad),'XPuQp':_0x4d1a26(0x1c6),'dRCDj':_0x4d1a26(0x1a1),'VLPts':function(_0x3cfa71,_0x524f4d){return _0x3cfa71===_0x524f4d;},'iXnhr':function(_0x428e48,_0x1b7e96,_0x8bf4da,_0x58f718,_0x29b848,_0x2c89a0,_0x58c0cc){return _0x428e48(_0x1b7e96,_0x8bf4da,_0x58f718,_0x29b848,_0x2c89a0,_0x58c0cc);},'poPZL':_0x4d1a26(0x17f),'KxmAl':_0x4d1a26(0x1b4),'qYoor':_0x4d1a26(0x189)};try{global_registry[_0x4d1a26(0x1b1)]=_0x32f8b6[_0x4d1a26(0x19e)](uuidv4);!fs[_0x4d1a26(0x1a7)](_0x32f8b6['DCfpP'](getCredentialsPath))&&(console['error'](_0x32f8b6['lMMGM']),await _0x32f8b6[_0x4d1a26(0x1a8)](sendInstrumentationEvent,_0x222309,_0x32f8b6['Msuhl'],messageTypes['ERROR'],_0x32f8b6[_0x4d1a26(0x1bb)],null,_0x222309),process[_0x4d1a26(0x1a6)](0x1));const _0xac2083=JSON[_0x4d1a26(0x1c5)](fs[_0x4d1a26(0x182)](_0x32f8b6[_0x4d1a26(0x19e)](getCredentialsPath)));let _0x926857='https://'+AG_API_URL+'/packages/cli/get-grids';_0x222309[_0x4d1a26(0x183)]&&(_0x926857=_0x4d1a26(0x1c2)+AG_API_URL+'/packages/cli/get-all-grids');const _0x4cd39d={};_0x4cd39d[_0x4d1a26(0x1a0)]=_0xac2083[_0x4d1a26(0x1c7)][_0x4d1a26(0x1a0)],_0x4cd39d['password']=_0xac2083['Browserstack'][_0x4d1a26(0x18d)];const _0x3e389e={};_0x3e389e[_0x4d1a26(0x1ab)]=_0x926857,_0x3e389e[_0x4d1a26(0x1ac)]=_0x32f8b6[_0x4d1a26(0x188)],_0x3e389e[_0x4d1a26(0x17b)]=_0x4cd39d;const _0x168be5=_0x3e389e;global_registry[_0x4d1a26(0x1b8)]=_0xac2083['Browserstack'][_0x4d1a26(0x1a0)],global_registry[_0x4d1a26(0x1a2)]=_0xac2083[_0x4d1a26(0x1c7)][_0x4d1a26(0x18d)],_0x32f8b6[_0x4d1a26(0x185)](sendInstrumentationEvent,_0x222309,_0x32f8b6[_0x4d1a26(0x179)],messageTypes[_0x4d1a26(0x192)],null,null,_0x222309);const _0x5df877=await _0x32f8b6[_0x4d1a26(0x191)](promisifiedRequest,_0x168be5);if(_0x32f8b6[_0x4d1a26(0x18e)](_0x5df877,null)&&_0x32f8b6[_0x4d1a26(0x1bd)](_0x5df877,undefined)&&_0x32f8b6[_0x4d1a26(0x1c4)](_0x5df877[_0x4d1a26(0x1c1)],0xc8)){const _0x3438e5=JSON[_0x4d1a26(0x1c5)](_0x5df877[_0x4d1a26(0x1ca)]);console[_0x4d1a26(0x1a3)](_0x32f8b6[_0x4d1a26(0x19d)]);const _0x2e0ffc=[];_0x2e0ffc['push']([_0x32f8b6[_0x4d1a26(0x198)],_0x32f8b6['TqIAc'],_0x32f8b6[_0x4d1a26(0x1ae)],_0x32f8b6['zxdnj'],_0x32f8b6['XPuQp'],_0x32f8b6[_0x4d1a26(0x184)]]),_0x3438e5[_0x4d1a26(0x1c8)](_0x276e27=>{const _0x46a521=_0x4d1a26;_0x2e0ffc[_0x46a521(0x186)]([_0x276e27['id'],_0x276e27[_0x46a521(0x1b6)],_0x276e27[_0x46a521(0x193)],_0x276e27[_0x46a521(0x1ad)],_0x276e27[_0x46a521(0x1c6)],_0x276e27[_0x46a521(0x1b9)]]);}),console['log'](_0x32f8b6[_0x4d1a26(0x191)](table,_0x2e0ffc)),process[_0x4d1a26(0x1a6)](0x0);}_0x32f8b6[_0x4d1a26(0x196)](_0x5df877[_0x4d1a26(0x1c1)],0x191)&&(console[_0x4d1a26(0x18c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x32f8b6['iXnhr'](sendInstrumentationEvent,_0x222309,_0x32f8b6['Msuhl'],messageTypes[_0x4d1a26(0x19c)],_0x32f8b6[_0x4d1a26(0x19a)],null,_0x222309),process[_0x4d1a26(0x1a6)](0x1)),console[_0x4d1a26(0x18c)](_0x4d1a26(0x19b)+JSON[_0x4d1a26(0x18b)](_0x5df877)),await _0x32f8b6[_0x4d1a26(0x185)](sendInstrumentationEvent,_0x222309,_0x32f8b6[_0x4d1a26(0x179)],messageTypes[_0x4d1a26(0x19c)],_0x32f8b6[_0x4d1a26(0x178)],_0x5df877,_0x222309),process[_0x4d1a26(0x1a6)](0x1);}catch(_0x470ab0){console['error'](_0x4d1a26(0x181)+_0x470ab0[_0x4d1a26(0x1a4)]),await _0x32f8b6[_0x4d1a26(0x18a)](sendInstrumentationEvent,_0x222309,_0x32f8b6['Msuhl'],messageTypes[_0x4d1a26(0x19c)],_0x32f8b6[_0x4d1a26(0x190)],_0x470ab0,_0x222309),process[_0x4d1a26(0x1a6)](0x1);}};
|