browserstack-node-sdk 1.28.1 → 1.28.2
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/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
- package/src/helpers/percy/Percy.js +0 -1
- package/src/helpers/percy/PercyBinary.js +0 -1
- package/src/helpers/percy/PercyCaptureMap.js +0 -1
- package/src/helpers/percy/PercyCaptureModes.js +0 -1
- package/src/helpers/percy/PercySDK.js +0 -1
- package/src/helpers/percy/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a9_0x2e1e(_0x265d78,_0x5acbb5){const _0x5d30b1=a9_0x5d30();return a9_0x2e1e=function(_0x2e1e50,_0x2e3442){_0x2e1e50=_0x2e1e50-0x1bd;let _0x18d621=_0x5d30b1[_0x2e1e50];return _0x18d621;},a9_0x2e1e(_0x265d78,_0x5acbb5);}const a9_0x484822=a9_0x2e1e;(function(_0x40dedb,_0x4f34e5){const _0x56406a=a9_0x2e1e,_0x665281=_0x40dedb();while(!![]){try{const _0x5725cf=parseInt(_0x56406a(0x1cb))/0x1+-parseInt(_0x56406a(0x1bf))/0x2*(parseInt(_0x56406a(0x1cf))/0x3)+-parseInt(_0x56406a(0x1ca))/0x4*(parseInt(_0x56406a(0x1cc))/0x5)+-parseInt(_0x56406a(0x1c8))/0x6*(parseInt(_0x56406a(0x1c3))/0x7)+parseInt(_0x56406a(0x1c1))/0x8+parseInt(_0x56406a(0x1c0))/0x9*(parseInt(_0x56406a(0x1cd))/0xa)+parseInt(_0x56406a(0x1c6))/0xb*(-parseInt(_0x56406a(0x1c5))/0xc);if(_0x5725cf===_0x4f34e5)break;else _0x665281['push'](_0x665281['shift']());}catch(_0x396223){_0x665281['push'](_0x665281['shift']());}}}(a9_0x5d30,0x23560));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x484822(0x1c2));exports['command']=a9_0x484822(0x1bd),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x484822(0x1d1)]=function(_0x12517b){const _0x170aa6=a9_0x484822,_0x512fb2={};_0x512fb2['TiEoV']=_0x170aa6(0x1ce),_0x512fb2[_0x170aa6(0x1be)]=_0x170aa6(0x1d0);const _0x53b0bf=_0x512fb2;return _0x12517b['usage'](HELP_HEADER_MESSAGE[_0x170aa6(0x1bd)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x53b0bf[_0x170aa6(0x1c4)])['demandCommand']()['recommendCommands']()[_0x170aa6(0x1c7)]()[_0x170aa6(0x1d0)](_0x53b0bf['odjsT']);},exports[a9_0x484822(0x1c9)]=function(_0x2b1ed5){};function a9_0x5d30(){const _0x57f7f0=['17181qMbnRY','989208NYRqCO','../config/constants','117411OrTslu','TiEoV','4404RTeEVr','1232jCfCmQ','strict','72FFgzCc','handler','284VAodbG','197137iNcpBl','1910pevbOU','1490HNTSJg','create_commands','3EVZSIN','help','builder','create','odjsT','381982YbXauy'];a9_0x5d30=function(){return _0x57f7f0;};return a9_0x5d30();}
|
|
@@ -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_0xa764(_0xd41875,_0x29ca70){const _0x4bacaf=a10_0x4bac();return a10_0xa764=function(_0xa76437,_0x25f1db){_0xa76437=_0xa76437-0x113;let _0x5e4fe8=_0x4bacaf[_0xa76437];return _0x5e4fe8;},a10_0xa764(_0xd41875,_0x29ca70);}const a10_0x3f0e8c=a10_0xa764;function a10_0x4bac(){const _0x24c999=['Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','wyVcs','XuOdN','debug','gridName','reconnecting-websocket','HUZym','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','desc','fSlGC','TokcX','s3Bucket','jLzDT','sendEventToBackend','cvXqv','tRifL','cluster-name','CLI_RUN_STARTED','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','5|8|7|2|0|3|4|1|6','Qvkxx','description','SkDUf','84MSNKTL','qTLaD','FZPKq','/packages/cli/create-grid-checks','sxglv','PhUtW','yidti','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','7|8|0|6|3|2|1|4|5','\x20in\x20existing\x20cluster\x20\x27','gridProfile','NGgrf','isVPCPresent','cTVGO','createdBy','includes','user','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','SetuS','lvnDg','YDZsl','eCsCb','username','ksSEV','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','GET','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','mQXtZ','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','private-ingress-nginx-controller','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QIUty','hubVersion','TwUoK','iYOmm','OjnXz','toLowerCase','HKXwh','ygUao','VTKCF','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','CLI_RUN_FINISHED','../../utils/userInput','isPrivateGrid','usage','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','xfRgb','CLI\x20run\x20started','pDekf','split','rwHfq','Found\x20Subnets:\x20','301931VEhgND','LOG','uuid','concurrency','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','YvgVb','cloud-provider','create','/wd/hub','vGkgE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','https://','gridProfiles','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','route53','grid-spawning-failed','defaultGridProfile','warn','IsGvi','https','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/instrumentationUtils','pre-spawned-invalid-vpc','DNpzB','nDiDS','name','HlQdQ','Wenud','cqtQg','vpYCf','Spawning\x20the\x20grid\x20','grid-name','PsuGS','IeUvt','kFpjK','FCGCx','default','replace','builder','XumuH','argv','parse','ewnsI','Kxjbm','Grid\x20can\x20be\x20accessed\x20at:\x20','SigQM','options','isSubnetsValid','length','metadata','RnHjc','Grid\x20spawned\x20on\x20the\x20cluster','password','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','HKSdM','CLI\x20run\x20finished:\x20','delay','ybEBt','YnLbP','PxmxB','coZGc','writeFileSync','connectionTimeout','Create\x20a\x20private/public\x20grid.','5285020gcmeuJ','info','clusterRegion','Deleting\x20the\x20CloudFormation\x20Stacks','getResourceClientId','browserVersion','exit','4|2|3|1|0','dqjqq','DlChs','OMeJY','privateGrid','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','1231000FItLbt','wroNv','Sxthc','cIwve','maxNodes','epilogue','\x20using\x20\x27','fXvJX','ISMMf','mNAlF','bQocu','gRXet','bstackAccesskey','pCDZW','oVNGn','hoeHI','9269640AhKobX','createOtherResources','iUziD','UMNdm','hfsmf','stringify','Creating\x20namespace','private-grid','type','qLCtB','Namespace\x20created','KpCeZ','../../utils/gridComponents','createNamespace','eGeea','<UsernamePlaceholder>','CaaOp','9951088bakOsZ','fetchLocalCreds','xWinD','Namespace\x20Created','grid-profile','existsSync','Cluster\x20created\x20successfully','DlaZT','widIB','fCxjC','create-grid-checks-grid-already-exists','message','Found\x20VPC:\x20','/packages/cli/get-grid-url?gridIdentifier=','xsaey','Will\x20be\x20spawning\x20the\x20grid\x20','wygtv','PxaJP','NfDta','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','tdWGP','util','WkCvU','BmpUy','QLOMq','nGdUz','instanceType','setupNewCluster','statusCode','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','create-grid-checks-invalid-profile','qgGbv','rkocY','OpzVs','skBiP','mpgIU','XXVBd','help','WaoJO','TMRhm','../../utils/webSocketUtils','promisify','ERROR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','syFqK','error','tTxKZ','body','fJySH','VvxCY','ptylf','auth','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.','string','JPGkD','OtQDO','method','INFO','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','clusterName','TeLMJ','oRfGg','ZViff','handler','create-grid-checks-auth-failed','huRTq','../../utils/createk8sClient','QUuZo','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','annotations','command','alreadyPresent','readFileSync','1NBvhxr','Cluster\x20','http','bstackUsername','request','NRTbQ','ejumN','turboscale-managed-identity-','securityGroups','non-aws-azure-cluster','Browserstack','quMUQ','WVFCR','4209096DSIRUX','quzOX','Spawning\x20grid\x20on\x20to\x20the\x20cluster','region','cVjwk','requestId','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','subnets','readNamespacedService','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Rbdba','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','SFltA','\x20are\x20not\x20present\x20in\x20VPC:\x20','pre-spawned-subnets-not-selected','pLWqW','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','hPJJu','CEgpY','\x27\x20grid\x20profile','updatePreSpawnedCluster','../../cloudproviders/utils','qKtbe','configureIfNotConfigured','oRBFb','wAieD','create-grid-checks-non-200','INHOn','cloudProvider','managedBy','RoLHb','psgnL','KOuYn','TLEJY','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','rCXge','deleteCluster','ingress-nginx-controller','Spawning\x20Grid\x20on\x20the\x20Cluster','tsLxg','Create\x20a\x20new\x20Automation\x20grid.','wMFpk','2479188LXbOxn'];a10_0x4bac=function(){return _0x24c999;};return a10_0x4bac();}(function(_0x1e054c,_0x351205){const _0x43e27b=a10_0xa764,_0xc3ac02=_0x1e054c();while(!![]){try{const _0x54b97a=parseInt(_0x43e27b(0x169))/0x1*(parseInt(_0x43e27b(0x239))/0x2)+parseInt(_0x43e27b(0x176))/0x3+-parseInt(_0x43e27b(0x1a0))/0x4+parseInt(_0x43e27b(0x22c))/0x5+-parseInt(_0x43e27b(0x1b8))/0x6*(-parseInt(_0x43e27b(0x1ec))/0x7)+-parseInt(_0x43e27b(0x120))/0x8+-parseInt(_0x43e27b(0x249))/0x9;if(_0x54b97a===_0x351205)break;else _0xc3ac02['push'](_0xc3ac02['shift']());}catch(_0x3cb3a2){_0xc3ac02['push'](_0xc3ac02['shift']());}}}(a10_0x4bac,0xbfd5b));const fs=require('fs'),ws=require('ws'),util=require(a10_0x3f0e8c(0x135)),ReconnectingWebSocket=require(a10_0x3f0e8c(0x1a6)),request=require(a10_0x3f0e8c(0x16d)),{v4:uuidv4}=require(a10_0x3f0e8c(0x1ee)),webSocketUtils=require(a10_0x3f0e8c(0x148)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a10_0x3f0e8c(0x1e2)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x3f0e8c(0x18b)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x3f0e8c(0x11b)),{createK8sClient}=require(a10_0x3f0e8c(0x162)),{sendInstrumentationEvent}=require(a10_0x3f0e8c(0x201)),promisifiedRequest=util[a10_0x3f0e8c(0x149)](request);exports[a10_0x3f0e8c(0x166)]='grid',exports[a10_0x3f0e8c(0x1a9)]=a10_0x3f0e8c(0x19e),exports[a10_0x3f0e8c(0x212)]=function(_0x362022){const _0x16d5e0=a10_0x3f0e8c,_0xe8038e={};_0xe8038e[_0x16d5e0(0x140)]=_0x16d5e0(0x186),_0xe8038e['pLWqW']=_0x16d5e0(0x155),_0xe8038e[_0x16d5e0(0x1e6)]=_0x16d5e0(0x1f9),_0xe8038e[_0x16d5e0(0x1e8)]=_0x16d5e0(0x17c),_0xe8038e[_0x16d5e0(0x1d7)]=_0x16d5e0(0x1f6),_0xe8038e[_0x16d5e0(0x204)]=_0x16d5e0(0x1d6),_0xe8038e['tAqhN']=_0x16d5e0(0x22b),_0xe8038e['LAYBw']=_0x16d5e0(0x145);const _0x45bdb6=_0xe8038e,_0x58c600={};_0x58c600[_0x16d5e0(0x1b6)]=_0x45bdb6['rkocY'],_0x58c600[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x10696d={};_0x10696d['description']=_0x45bdb6[_0x16d5e0(0x1e6)],_0x10696d[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x2c0a7a={};_0x2c0a7a[_0x16d5e0(0x1b6)]=_0x45bdb6[_0x16d5e0(0x1e8)],_0x2c0a7a[_0x16d5e0(0x117)]=_0x45bdb6['pLWqW'];const _0x1eeb2b={};_0x1eeb2b[_0x16d5e0(0x1b6)]=_0x45bdb6[_0x16d5e0(0x1d7)],_0x1eeb2b[_0x16d5e0(0x117)]=_0x45bdb6['pLWqW'];const _0x4d8653={};_0x4d8653['description']=_0x45bdb6[_0x16d5e0(0x204)],_0x4d8653[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x56ea53={};_0x56ea53[_0x16d5e0(0x1b6)]=_0x45bdb6['tAqhN'],_0x56ea53[_0x16d5e0(0x117)]=_0x45bdb6[_0x16d5e0(0x185)];const _0x24ddf3={};return _0x24ddf3['grid-name']=_0x58c600,_0x24ddf3[_0x16d5e0(0x124)]=_0x10696d,_0x24ddf3[_0x16d5e0(0x1b1)]=_0x2c0a7a,_0x24ddf3[_0x16d5e0(0x1f2)]=_0x1eeb2b,_0x24ddf3[_0x16d5e0(0x179)]=_0x4d8653,_0x24ddf3[_0x16d5e0(0x116)]=_0x56ea53,_0x362022[_0x16d5e0(0x1e4)](HELP_HEADER_MESSAGE['create'])[_0x16d5e0(0x23e)](HELP_FOOTER_MESSAGE)[_0x16d5e0(0x21a)](_0x24ddf3)[_0x16d5e0(0x145)](_0x45bdb6['LAYBw'])['argv'];},exports[a10_0x3f0e8c(0x15f)]=async function(_0x185d9e){const _0x47124c=a10_0x3f0e8c,_0x26f966={'iYOmm':_0x47124c(0x1ff),'gRXet':_0x47124c(0x1fd),'OpzVs':_0x47124c(0x1e0),'DlaZT':_0x47124c(0x14d),'xsaey':_0x47124c(0x16b),'cvXqv':_0x47124c(0x1c0),'qKtbe':_0x47124c(0x186),'tsLxg':'string','mQXtZ':_0x47124c(0x1f9),'SetuS':_0x47124c(0x17c),'huRTq':_0x47124c(0x1f6),'kXKPs':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UvGwT':_0x47124c(0x22b),'VvxCY':_0x47124c(0x145),'iMjHY':function(_0x1aa011){return _0x1aa011();},'quMUQ':function(_0x247f82){return _0x247f82();},'HKXwh':function(_0x512068,_0x2abd61){return _0x512068===_0x2abd61;},'INHOn':_0x47124c(0x144),'ewnsI':_0x47124c(0x197),'rCXge':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HUZym':function(_0x426ade,_0x4ef5e2,_0xbf3d77,_0x41d8d4,_0x46405d,_0xb34bbb,_0x23e0a4){return _0x426ade(_0x4ef5e2,_0xbf3d77,_0x41d8d4,_0x46405d,_0xb34bbb,_0x23e0a4);},'YDZsl':'create-grid-called','NSCwK':'init-not-called','XxDxB':function(_0x1cce6b,_0x1bcc39,_0x3846e8,_0x306921,_0x3904aa,_0x571328,_0x5be4fe){return _0x1cce6b(_0x1bcc39,_0x3846e8,_0x306921,_0x3904aa,_0x571328,_0x5be4fe);},'kFpjK':_0x47124c(0x11e),'pCDZW':'<PasswordPlaceholder>','hoeHI':'Adding\x20Websocket\x20listeners','eGeea':function(_0x34f879,_0x485224){return _0x34f879!==_0x485224;},'tRifL':'KVlmw','NfDta':function(_0x510d02,_0x5e5ba4){return _0x510d02===_0x5e5ba4;},'PXgbQ':'vWpKN','bQocu':_0x47124c(0x208),'vpYCf':_0x47124c(0x1b3),'OjnXz':function(_0x3a06bb,_0x2fe8a7,_0x2e64f3,_0x50dcdb,_0x2fabec,_0xef6055,_0x5d7e32,_0x32c666){return _0x3a06bb(_0x2fe8a7,_0x2e64f3,_0x50dcdb,_0x2fabec,_0xef6055,_0x5d7e32,_0x32c666);},'qgGbv':'prespawned-cluster-args-not-passed','rwHfq':function(_0x456e10,_0x14fcac){return _0x456e10===_0x14fcac;},'wroNv':'uWkYd','yidti':_0x47124c(0x1a1),'xutqQ':function(_0x38e0f5,_0x1b3799,_0x306075,_0x2dfc44,_0x25fe79,_0x3403f1,_0x52288c,_0x3716aa){return _0x38e0f5(_0x1b3799,_0x306075,_0x2dfc44,_0x25fe79,_0x3403f1,_0x52288c,_0x3716aa);},'KvghQ':_0x47124c(0x172),'FZPKq':'true','oRfGg':function(_0x5670cd,_0x5c2279){return _0x5670cd===_0x5c2279;},'YnLbP':_0x47124c(0x1bd),'CEgpY':function(_0x39f0b6,_0x59e0df){return _0x39f0b6===_0x59e0df;},'nGdUz':_0x47124c(0x16e),'DlChs':_0x47124c(0x1d1),'NGgrf':function(_0x37cab8,_0x425d96){return _0x37cab8(_0x425d96);},'CymjU':function(_0x9026ec,_0x27f8a2){return _0x9026ec===_0x27f8a2;},'SkDUf':function(_0xda60a3,_0x1e23b0){return _0xda60a3===_0x1e23b0;},'DNpzB':_0x47124c(0x21e),'OMeJY':_0x47124c(0x221),'WVFCR':'create-grid-checks-null-response','WaoJO':function(_0x1b91a8,_0x44dd3f){return _0x1b91a8===_0x44dd3f;},'JPGkD':_0x47124c(0x1b5),'eCsCb':_0x47124c(0x1bf),'iUziD':_0x47124c(0x160),'OtQDO':function(_0x3029a6,_0x4257b8){return _0x3029a6!==_0x4257b8;},'XhNQu':'yGiaK','PsuGS':_0x47124c(0x128),'iDslv':_0x47124c(0x190),'ksSEV':'Grid\x20profile\x20fetched\x20from\x20backend','KpCeZ':function(_0x59b2db,_0x265839){return _0x59b2db!==_0x265839;},'BmpUy':_0x47124c(0x18e),'ZViff':_0x47124c(0x15a),'TMRhm':function(_0x537085,_0x26e550,_0x408d51,_0x522e39,_0x22d61c,_0x19556c,_0x2204f2,_0x25cf23){return _0x537085(_0x26e550,_0x408d51,_0x522e39,_0x22d61c,_0x19556c,_0x2204f2,_0x25cf23);},'oVNGn':_0x47124c(0x12a),'FCGCx':_0x47124c(0x11f),'xWinD':'meNTN','fSlGC':function(_0x46385f,_0x5cfa6e){return _0x46385f===_0x5cfa6e;},'KOuYn':function(_0xc1cfdf,_0x4227f5){return _0xc1cfdf===_0x4227f5;},'mpgIU':_0x47124c(0x194),'peiNj':_0x47124c(0x16f),'lvnDg':_0x47124c(0x134),'fJySH':'OLTRb','UMNdm':_0x47124c(0x1d0),'ybEBt':function(_0x2a04d8,_0x4730c2,_0x43a857,_0x19ff73,_0x1bb3c4,_0x3d083b,_0x18b61e,_0x13f796){return _0x2a04d8(_0x4730c2,_0x43a857,_0x19ff73,_0x1bb3c4,_0x3d083b,_0x18b61e,_0x13f796);},'RnmPD':_0x47124c(0x13e),'PxmxB':function(_0x411794,_0x2cbd4d){return _0x411794===_0x2cbd4d;},'TokcX':'icTYt','dqjqq':_0x47124c(0x20d),'hPJJu':'tdwxX','Sxthc':function(_0x135718,_0xac3382,_0x40c714,_0x581b82,_0x458b00,_0x319869,_0x4a9950,_0x1bfdac,_0x1f657f,_0x24437a,_0x493b19,_0xb8798a){return _0x135718(_0xac3382,_0x40c714,_0x581b82,_0x458b00,_0x319869,_0x4a9950,_0x1bfdac,_0x1f657f,_0x24437a,_0x493b19,_0xb8798a);},'fXvJX':_0x47124c(0x1b4),'psgnL':function(_0x5aeeda,_0x1164bf,_0x4c53fc,_0x4ae2aa,_0x5f2a16,_0x432d59){return _0x5aeeda(_0x1164bf,_0x4c53fc,_0x4ae2aa,_0x5f2a16,_0x432d59);},'QLOMq':_0x47124c(0x133),'SFltA':function(_0x95a52a,_0x63197b){return _0x95a52a===_0x63197b;},'fCxjC':function(_0x536ed3,_0xae91fd,_0xf48bb8,_0x296ee4){return _0x536ed3(_0xae91fd,_0xf48bb8,_0x296ee4);},'YvgVb':_0x47124c(0x1d2),'GUSfF':_0x47124c(0x1c9),'ptylf':function(_0x5a66db,_0x1913cf){return _0x5a66db===_0x1913cf;},'qLCtB':_0x47124c(0x1d4),'TeLMJ':function(_0x51e79b,_0x1a28dd){return _0x51e79b!=_0x1a28dd;},'sxglv':function(_0x4d5321,_0xd0201c){return _0x4d5321!==_0xd0201c;},'skBiP':function(_0x13b5a8,_0x513699){return _0x13b5a8>_0x513699;},'wyVcs':function(_0x47d330,_0xa40086){return _0x47d330===_0xa40086;},'TwUoK':_0x47124c(0x198),'WkCvU':function(_0x5c0b45,_0x531ca1,_0x20e7f2,_0x347f32,_0x2b74e0,_0x1d2795,_0xf53de1,_0x3aaf94){return _0x5c0b45(_0x531ca1,_0x20e7f2,_0x347f32,_0x2b74e0,_0x1d2795,_0xf53de1,_0x3aaf94);},'Kxjbm':_0x47124c(0x184),'wAieD':_0x47124c(0x164),'cTVGO':_0x47124c(0x202),'wYTbR':'pre-spawned-invalid-subnets','XumuH':_0x47124c(0x233),'SigQM':_0x47124c(0x126),'syFqK':_0x47124c(0x154),'IsGvi':function(_0x4bc130,_0x580029){return _0x4bc130(_0x580029);},'dpYLp':function(_0x483f87,_0x102105){return _0x483f87===_0x102105;},'ISMMf':function(_0x126d69,_0x5c0a00){return _0x126d69==_0x5c0a00;},'hfsmf':function(_0x6d3830,_0x17ad6c){return _0x6d3830(_0x17ad6c);},'ygUao':_0x47124c(0x115),'cVjwk':_0x47124c(0x210),'HlQdQ':_0x47124c(0x173),'tTxKZ':_0x47124c(0x123),'Rbdba':_0x47124c(0x119),'Wenud':_0x47124c(0x178),'vGkgE':_0x47124c(0x19c),'qTLaD':function(_0x5b2979,_0x5f1d65,_0x498304,_0xc3ff00,_0xa5c945,_0x14b17c,_0x29a2c1,_0x5af384,_0x79f29b,_0xc907e3,_0x51eaf6){return _0x5b2979(_0x5f1d65,_0x498304,_0xc3ff00,_0xa5c945,_0x14b17c,_0x29a2c1,_0x5af384,_0x79f29b,_0xc907e3,_0x51eaf6);},'wygtv':_0x47124c(0x21f),'ibsbk':_0x47124c(0x1e5),'jLzDT':function(_0x1aa069,_0x1fd528,_0x152359){return _0x1aa069(_0x1fd528,_0x152359);},'coZGc':_0x47124c(0x1d5),'PxaJP':_0x47124c(0x19b),'XuOdN':'ingress-nginx','HKSdM':function(_0x4dd5ac,_0x111e12){return _0x4dd5ac==_0x111e12;},'MjGtN':_0x47124c(0x181),'yqHDF':'get-grid-url-null-response','VTKCF':_0x47124c(0x200),'QUuZo':function(_0x14cd4b,_0x184e7e,_0x40eaac,_0x5d50f4,_0x5c54b0,_0x2a68f5,_0x2744da,_0x42aeb1){return _0x14cd4b(_0x184e7e,_0x40eaac,_0x5d50f4,_0x5c54b0,_0x2a68f5,_0x2744da,_0x42aeb1);},'wMFpk':'get-grid-url-auth-failed','cIwve':function(_0x2b9e55,_0x3c9a7c){return _0x2b9e55!==_0x3c9a7c;},'SiFDV':'get-grid-url-non-200','mNAlF':function(_0x3df24e,_0x1aa412,_0x3edecb,_0x161ebe,_0x494e19,_0x1b7768){return _0x3df24e(_0x1aa412,_0x3edecb,_0x161ebe,_0x494e19,_0x1b7768);},'quzOX':_0x47124c(0x1fb)};let _0x536463=![],_0x4e6822,_0x53f1fb,_0x505ec3,_0x42d50f,_0x383a12,_0x46f58d,_0x2d5700,_0x3737fa,_0x134530,_0x24545e,_0x53ce91,_0x21eeee,_0x3cce2f=0x1,_0x258696=0xe;try{global_registry[_0x47124c(0x17b)]=_0x26f966['iMjHY'](uuidv4),global_registry[_0x47124c(0x1e3)]=![];!fs[_0x47124c(0x125)](_0x26f966[_0x47124c(0x174)](getCredentialsPath))&&(_0x26f966[_0x47124c(0x1dd)](_0x26f966[_0x47124c(0x191)],_0x26f966[_0x47124c(0x216)])?_0x311843[_0x47124c(0x22d)](_0x47124c(0x12c)+_0x2dc10f+'\x20'):(console['error'](_0x26f966[_0x47124c(0x199)]),await _0x26f966['HUZym'](sendInstrumentationEvent,_0x185d9e,_0x26f966[_0x47124c(0x1cc)],messageTypes[_0x47124c(0x14a)],_0x26f966['NSCwK'],null,_0x185d9e),process[_0x47124c(0x232)](0x1)));await _0x26f966['XxDxB'](sendInstrumentationEvent,_0x185d9e,_0x26f966[_0x47124c(0x1cc)],messageTypes[_0x47124c(0x159)],null,null,_0x185d9e);const _0x15ab25=JSON[_0x47124c(0x215)](fs[_0x47124c(0x168)](_0x26f966['iMjHY'](getCredentialsPath)));global_registry[_0x47124c(0x16c)]=_0x15ab25[_0x47124c(0x173)]['username'],global_registry[_0x47124c(0x245)]=_0x15ab25[_0x47124c(0x173)][_0x47124c(0x220)];const _0x61edfa=WS_ENDPOINT[_0x47124c(0x211)](_0x26f966[_0x47124c(0x20e)],_0x15ab25['Browserstack'][_0x47124c(0x1ce)])['replace'](_0x26f966[_0x47124c(0x246)],_0x15ab25[_0x47124c(0x173)][_0x47124c(0x220)]),_0xc51246={};_0xc51246['WebSocket']=ws,_0xc51246[_0x47124c(0x22a)]=0x36ee80,_0x24545e=new ReconnectingWebSocket(_0x61edfa,[],_0xc51246),logger[_0x47124c(0x1a4)](_0x26f966[_0x47124c(0x248)]),webSocketUtils['addListeners'](_0x24545e,_0x185d9e[_0x47124c(0x1c8)],_0x185d9e[_0x47124c(0x220)]);let _0x38bfef=DEFAULT_GRID_NAME;if(_0x185d9e[_0x47124c(0x15b)]||_0x185d9e['cloudProvider']||_0x185d9e['region']){if(_0x26f966[_0x47124c(0x11d)](_0x26f966[_0x47124c(0x1b0)],_0x26f966['tRifL']))_0x5789f1=_0x57c511[_0x47124c(0x1fa)],_0x5d06f7=_0x26f966[_0x47124c(0x1da)];else{!(_0x185d9e[_0x47124c(0x15b)]&&_0x185d9e[_0x47124c(0x192)]&&_0x185d9e[_0x47124c(0x179)])&&(_0x26f966[_0x47124c(0x132)](_0x26f966['PXgbQ'],_0x26f966[_0x47124c(0x243)])?_0x465092[_0x47124c(0x1e3)]=!![]:(_0x4e6822=_0x26f966[_0x47124c(0x209)],await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x13f)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1)));![AWS,AZURE,GCP][_0x47124c(0x1c7)](_0x185d9e['cloudProvider'][_0x47124c(0x1dc)]())&&(_0x26f966[_0x47124c(0x1ea)](_0x26f966[_0x47124c(0x23a)],_0x26f966[_0x47124c(0x23a)])?(_0x4e6822=_0x26f966[_0x47124c(0x1be)],await _0x26f966['xutqQ'](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966['KvghQ'],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1)):_0x51f36c=_0x19f6af[_0xbfe32b[_0x47124c(0x1c2)]]);if(_0x185d9e[_0x47124c(0x237)]&&_0x26f966[_0x47124c(0x1ea)](_0x185d9e['privateGrid'][_0x47124c(0x1dc)](),_0x26f966[_0x47124c(0x1ba)])){if(_0x26f966[_0x47124c(0x15d)](_0x26f966[_0x47124c(0x226)],_0x26f966[_0x47124c(0x226)]))global_registry[_0x47124c(0x1e3)]=!![];else{const _0x3dc84a={};_0x3dc84a['type']=_0x56b58f[_0x47124c(0x1ed)],_0x3dc84a[_0x47124c(0x12b)]=_0x47124c(0x16a)+_0x29a036+_0x47124c(0x1a8),_0x53f503['sendEventToBackend'](_0x534476,_0x3dc84a,_0x26f966[_0x47124c(0x244)]),_0x269e91[_0x47124c(0x22d)](_0x47124c(0x16a)+_0x479b09+_0x47124c(0x1a8)),_0x6a8593=!![];}}_0x536463=!![],_0x505ec3=_0x185d9e[_0x47124c(0x15b)],_0x53f1fb=_0x185d9e['cloudProvider'][_0x47124c(0x1dc)](),_0x42d50f=_0x185d9e[_0x47124c(0x179)];}}if(_0x185d9e[_0x47124c(0x1a5)]){if(_0x26f966[_0x47124c(0x188)](_0x26f966[_0x47124c(0x139)],_0x26f966['nGdUz']))_0x38bfef=_0x185d9e[_0x47124c(0x1a5)];else throw _0x444246;}global_registry[_0x47124c(0x1a5)]=_0x38bfef;const _0x262d1b={};_0x262d1b[_0x47124c(0x1ce)]=_0x15ab25[_0x47124c(0x173)][_0x47124c(0x1ce)],_0x262d1b[_0x47124c(0x220)]=_0x15ab25['Browserstack']['password'];const _0x2c5bf0={};_0x2c5bf0[_0x47124c(0x158)]=_0x26f966[_0x47124c(0x235)],_0x2c5bf0[_0x47124c(0x153)]=_0x262d1b;const _0x452295=_0x2c5bf0,_0x54a22a=_0x47124c(0x1f7)+AG_API_URL+_0x47124c(0x1bb),_0x2f141b={};_0x2f141b[_0x47124c(0x1a5)]=_0x38bfef;const _0x5356d9={'url':_0x54a22a,'qs':_0x2f141b,..._0x452295},_0x43ea03=_0x5356d9,_0x3561a7=await _0x26f966[_0x47124c(0x1c3)](promisifiedRequest,_0x43ea03);(_0x26f966['CymjU'](_0x3561a7,null)||_0x26f966[_0x47124c(0x1b7)](_0x3561a7,undefined))&&(_0x26f966[_0x47124c(0x11d)](_0x26f966[_0x47124c(0x203)],_0x26f966['DNpzB'])?(_0x418dd0[_0x47124c(0x14d)](_0x26f966[_0x47124c(0x141)]),_0x158368[_0x47124c(0x232)](0x1)):(_0x4e6822=_0x26f966[_0x47124c(0x236)],await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966['YDZsl'],_0x26f966[_0x47124c(0x175)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1)));_0x26f966[_0x47124c(0x146)](_0x3561a7[_0x47124c(0x13c)],0x191)&&(_0x26f966[_0x47124c(0x11d)](_0x26f966['JPGkD'],_0x26f966[_0x47124c(0x156)])?_0x2656b1['cloudProvider']={}:(_0x4e6822=_0x26f966[_0x47124c(0x1cd)],await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x24b)],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1)));_0x26f966['OtQDO'](_0x3561a7[_0x47124c(0x13c)],0xc8)&&(_0x26f966[_0x47124c(0x157)](_0x26f966['XhNQu'],_0x26f966[_0x47124c(0x20c)])?(_0x4e6822=_0x47124c(0x14b)+JSON[_0x47124c(0x114)](_0x3561a7),await _0x26f966[_0x47124c(0x1db)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966['YDZsl'],_0x26f966['iDslv'],_0x26f966[_0x47124c(0x127)]),logger['error'](_0x4e6822),process[_0x47124c(0x232)](0x1)):_0x398788[_0x47124c(0x22d)](_0x47124c(0x1eb)+_0x5cf56d[_0x47124c(0x114)](_0x1c354c)+'\x20'));const _0x495b98=JSON[_0x47124c(0x215)](_0x3561a7['body']),_0x4f5959={};_0x4f5959[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1b2)],_0x4f5959[_0x47124c(0x12b)]=_0x47124c(0x1e7),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x4f5959);const _0x482c92={};_0x482c92[_0x47124c(0x117)]=WS_EVENTS['LOG'],_0x482c92[_0x47124c(0x12b)]=_0x26f966[_0x47124c(0x1cf)],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x482c92);if(_0x495b98[_0x47124c(0x167)]){if(_0x26f966['KpCeZ'](_0x26f966[_0x47124c(0x137)],_0x26f966[_0x47124c(0x137)])){const _0x480dd9={};_0x480dd9[_0x47124c(0x117)]=_0x5f1f69[_0x47124c(0x1ed)],_0x480dd9[_0x47124c(0x12b)]=_0x2d9cbd,_0x207879[_0x47124c(0x1ae)](_0x54fba1,_0x480dd9,_0x26f966['DlaZT'],!![]);}else _0x4e6822=_0x26f966[_0x47124c(0x15e)],await _0x26f966[_0x47124c(0x147)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x247)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1);}const _0x538366=_0x495b98[_0x47124c(0x1f8)];let _0x35a325=_0x538366[_0x495b98[_0x47124c(0x1fc)]];_0x185d9e[_0x47124c(0x1c2)]&&(_0x26f966['KpCeZ'](_0x26f966[_0x47124c(0x20f)],_0x26f966[_0x47124c(0x122)])?_0x35a325=_0x538366[_0x185d9e['gridProfile']]:_0x19e508=_0x26f966[_0x47124c(0x12e)]);if(_0x26f966[_0x47124c(0x1aa)](_0x536463,![])){if(_0x26f966[_0x47124c(0x196)](_0x26f966[_0x47124c(0x143)],_0x26f966['peiNj']))_0x592b41=_0xeae389[_0x47124c(0x1a5)];else{if(_0x26f966[_0x47124c(0x1dd)](_0x35a325,undefined)){if(_0x26f966['OtQDO'](_0x26f966[_0x47124c(0x1cb)],_0x26f966[_0x47124c(0x150)]))_0x4e6822=_0x26f966[_0x47124c(0x24c)],await _0x26f966[_0x47124c(0x225)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966['YDZsl'],_0x26f966['RnmPD'],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1);else{const _0x59daca=_0x26f966[_0x47124c(0x1af)][_0x47124c(0x1e9)]('|');let _0xd106f5=0x0;while(!![]){switch(_0x59daca[_0xd106f5++]){case'0':_0x20a6ec[_0x47124c(0x22d)](_0x590b76);continue;case'1':_0x330e82['clusterName']=_0x3bc79f;continue;case'2':_0x39e1c3['clusterRegion']=_0x4133e9;continue;case'3':_0x2149d7[_0x47124c(0x192)]=_0xac0305;continue;case'4':_0x275e1d[_0x47124c(0x1d8)]=_0x554769['hubVersion'];continue;case'5':_0x393c5d[_0x47124c(0x231)]=_0x312bd2[_0x47124c(0x231)];continue;case'6':const _0x31ae22={};_0x31ae22[_0x47124c(0x117)]=_0x20e759['LOG'],_0x31ae22[_0x47124c(0x12b)]=_0x481040,_0x16e28e['sendEventToBackend'](_0x1d5620,_0x31ae22);continue;case'7':const _0x122e66={};_0x122e66[_0x47124c(0x117)]=_0x5d5c0c[_0x47124c(0x1b2)],_0x122e66[_0x47124c(0x12b)]=_0x47124c(0x1e7),_0x4b62d6['sendEventToBackend'](_0x4f7664,_0x122e66);continue;case'8':_0x4a43c6=_0x47124c(0x20a)+_0x1ee586+_0x47124c(0x1c1)+_0x1b6025+'\x27';continue;}break;}}}global_registry['gridProfileId']=_0x35a325['id'];if(_0x26f966[_0x47124c(0x227)](_0x53f1fb,AZURE)||_0x26f966[_0x47124c(0x132)](_0x35a325?.[_0x47124c(0x192)],AZURE)){if(_0x26f966[_0x47124c(0x132)](_0x26f966[_0x47124c(0x1ab)],_0x26f966[_0x47124c(0x234)])){const _0x445991={};_0x445991['description']=_0x26f966[_0x47124c(0x18c)],_0x445991[_0x47124c(0x117)]=_0x26f966[_0x47124c(0x19d)];const _0x1a7269={};_0x1a7269[_0x47124c(0x1b6)]=_0x26f966[_0x47124c(0x1d3)],_0x1a7269['type']=_0x26f966[_0x47124c(0x19d)];const _0x42bd96={};_0x42bd96['description']=_0x26f966[_0x47124c(0x1ca)],_0x42bd96['type']=_0x26f966[_0x47124c(0x19d)];const _0x223659={};_0x223659[_0x47124c(0x1b6)]=_0x26f966[_0x47124c(0x161)],_0x223659[_0x47124c(0x117)]=_0x26f966[_0x47124c(0x19d)];const _0x2bef4c={};_0x2bef4c[_0x47124c(0x1b6)]=_0x26f966['kXKPs'],_0x2bef4c[_0x47124c(0x117)]=_0x26f966['tsLxg'];const _0x469772={};_0x469772[_0x47124c(0x1b6)]=_0x26f966['UvGwT'],_0x469772[_0x47124c(0x117)]=_0x26f966['tsLxg'];const _0x426a6d={};return _0x426a6d[_0x47124c(0x20b)]=_0x445991,_0x426a6d[_0x47124c(0x124)]=_0x1a7269,_0x426a6d['cluster-name']=_0x42bd96,_0x426a6d[_0x47124c(0x1f2)]=_0x223659,_0x426a6d[_0x47124c(0x179)]=_0x2bef4c,_0x426a6d[_0x47124c(0x116)]=_0x469772,_0x591f44['usage'](_0x47467d[_0x47124c(0x1f3)])['epilogue'](_0x2bf5a4)[_0x47124c(0x21a)](_0x426a6d)['help'](_0x26f966[_0x47124c(0x151)])[_0x47124c(0x214)];}else console[_0x47124c(0x14d)](_0x26f966[_0x47124c(0x141)]),process[_0x47124c(0x232)](0x1);}_0x4e6822=_0x47124c(0x12f)+_0x38bfef+_0x47124c(0x23f)+_0x35a325[_0x47124c(0x205)]+_0x47124c(0x189),logger[_0x47124c(0x22d)](_0x4e6822);const _0xf98a72={};_0xf98a72['type']=WS_EVENTS[_0x47124c(0x1ed)],_0xf98a72['message']=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0xf98a72),_0x53f1fb=_0x35a325[_0x47124c(0x192)],_0x505ec3=_0x35a325[_0x47124c(0x15b)],_0x42d50f=_0x35a325[_0x47124c(0x179)],_0x383a12=_0x35a325[_0x47124c(0x1ef)],_0x46f58d=_0x35a325[_0x47124c(0x13a)],_0x2d5700=_0x35a325['vpc'],securityGroups=_0x35a325[_0x47124c(0x171)],subnets=_0x35a325[_0x47124c(0x17d)],_0x3737fa=_0x35a325['s3bucket'],_0x3cce2f=_0x35a325['minNodes'],_0x258696=_0x35a325[_0x47124c(0x23d)],_0x53ce91=_0x495b98['hubVersion'],_0x21eeee=_0x495b98[_0x47124c(0x231)],_0x26f966[_0x47124c(0x11a)](_0x35a325[_0x47124c(0x237)],undefined)&&_0x35a325['privateGrid']&&(_0x26f966[_0x47124c(0x11a)](_0x26f966[_0x47124c(0x187)],_0x26f966['hPJJu'])?_0x35225f[_0x47124c(0x1e3)]=!![]:global_registry[_0x47124c(0x1e3)]=!![]),_0x26f966[_0x47124c(0x23b)](updateGlobalRegistryWithConfig,_0x53f1fb,_0x505ec3,_0x42d50f,_0x383a12,_0x46f58d,_0x3737fa,_0x35a325,_0x53ce91,_0x21eeee,_0x3cce2f,_0x258696);}}else{const _0x2f7662=_0x26f966[_0x47124c(0x240)][_0x47124c(0x1e9)]('|');let _0x4b91fe=0x0;while(!![]){switch(_0x2f7662[_0x4b91fe++]){case'0':global_registry[_0x47124c(0x192)]=_0x53f1fb;continue;case'1':global_registry[_0x47124c(0x1d8)]=_0x495b98[_0x47124c(0x1d8)];continue;case'2':const _0x3de625={};_0x3de625[_0x47124c(0x117)]=WS_EVENTS['LOG'],_0x3de625[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x3de625);continue;case'3':global_registry[_0x47124c(0x22e)]=_0x42d50f;continue;case'4':global_registry['clusterName']=_0x505ec3;continue;case'5':const _0x2195e7={};_0x2195e7[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1b2)],_0x2195e7['message']=_0x47124c(0x1e7),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x2195e7);continue;case'6':global_registry['browserVersion']=_0x495b98[_0x47124c(0x231)];continue;case'7':logger['info'](_0x4e6822);continue;case'8':_0x4e6822='Spawning\x20the\x20grid\x20'+_0x38bfef+'\x20in\x20existing\x20cluster\x20\x27'+_0x505ec3+'\x27';continue;}break;}}const _0x1638f7=_0x26f966[_0x47124c(0x195)](getCloudProviderObject,_0x53f1fb,_0x505ec3,_0x38bfef,_0x24545e,webSocketUtils),_0x4128cc=_0x15ab25[_0x47124c(0x192)]||{};if(_0x26f966[_0x47124c(0x15d)](_0x4128cc[_0x53f1fb],undefined)){logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x138)]);_0x26f966[_0x47124c(0x182)](_0x15ab25['cloudProvider'],undefined)&&(_0x15ab25['cloudProvider']={});_0x15ab25[_0x47124c(0x192)][_0x53f1fb]={};const _0x2bdea3=await _0x26f966[_0x47124c(0x129)](inputCloudProviderKeys,_0x53f1fb,_0x15ab25,_0x1638f7);fs[_0x47124c(0x229)](_0x26f966['quMUQ'](getCredentialsPath),JSON[_0x47124c(0x114)](_0x2bdea3)),logger[_0x47124c(0x1a4)](_0x26f966[_0x47124c(0x1f1)]);}else{_0x4e6822=_0x26f966['GUSfF'];const _0xa0e848={};_0xa0e848[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0xa0e848[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0xa0e848),logger['info'](_0x4e6822),await _0x1638f7[_0x47124c(0x121)](_0x4128cc);}_0x1638f7[_0x47124c(0x18d)]();let _0x2b3a9f;if(_0x26f966[_0x47124c(0x152)](_0x536463,![])){_0x4e6822=_0x47124c(0x13d)+_0x42d50f+').';const _0x49ef63={};_0x49ef63[_0x47124c(0x117)]=WS_EVENTS['LOG'],_0x49ef63[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x49ef63),logger['info'](_0x4e6822);const _0xd866ee=await _0x1638f7['isClusterPresent']();if(_0xd866ee){const _0x596906={};_0x596906[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x596906[_0x47124c(0x12b)]='Cluster\x20'+_0x505ec3+_0x47124c(0x1a8),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x596906,_0x26f966[_0x47124c(0x244)]),logger[_0x47124c(0x22d)](_0x47124c(0x16a)+_0x505ec3+_0x47124c(0x1a8)),_0x536463=!![];}else{const _0x36f76d={};_0x36f76d[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x36f76d[_0x47124c(0x12b)]=_0x26f966['qLCtB'],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x36f76d),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x118)]);const _0x30e26e=_0x26f966[_0x47124c(0x15c)](_0x2d5700,null)&&_0x26f966[_0x47124c(0x11d)](_0x2d5700,undefined),_0x55ea45=_0x26f966[_0x47124c(0x15c)](subnets,null)&&_0x26f966[_0x47124c(0x1bc)](subnets,undefined)&&_0x26f966[_0x47124c(0x142)](subnets[_0x47124c(0x21c)],0x0);if(_0x30e26e){_0x26f966['wyVcs'](_0x55ea45,![])&&(_0x4e6822=_0x26f966[_0x47124c(0x1d9)],await _0x26f966[_0x47124c(0x136)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x217)],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1));const _0x38e1a4=await _0x1638f7[_0x47124c(0x1c4)](_0x2d5700);_0x26f966[_0x47124c(0x1b7)](_0x38e1a4,![])?(_0x4e6822=_0x26f966[_0x47124c(0x18f)],await _0x26f966[_0x47124c(0x147)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes['ERROR'],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x1c5)],_0x26f966['DlaZT']),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1)):logger[_0x47124c(0x22d)]('Found\x20VPC:\x20'+_0x2d5700+'\x20');const _0x112670=await _0x1638f7[_0x47124c(0x21b)](subnets,_0x2d5700);_0x26f966[_0x47124c(0x1a2)](_0x112670[0x0],![])?(_0x4e6822='Subnets:\x20'+_0x112670[0x1]+_0x47124c(0x183)+_0x2d5700+_0x47124c(0x238),await _0x26f966[_0x47124c(0x225)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966['wYTbR'],_0x26f966[_0x47124c(0x127)]),logger['error'](_0x4e6822),process[_0x47124c(0x232)](0x1)):logger[_0x47124c(0x22d)](_0x47124c(0x1eb)+JSON[_0x47124c(0x114)](subnets)+'\x20'),await _0x1638f7[_0x47124c(0x13b)](_0x2d5700,subnets);}else{const _0x15b2ec=_0x26f966[_0x47124c(0x213)][_0x47124c(0x1e9)]('|');let _0x3c058e=0x0;while(!![]){switch(_0x15b2ec[_0x3c058e++]){case'0':logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x219)]);continue;case'1':const _0xbd7861={};_0xbd7861[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0xbd7861[_0x47124c(0x12b)]=_0x47124c(0x126),webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0xbd7861);continue;case'2':logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x14c)]);continue;case'3':await _0x1638f7[_0x47124c(0x13b)]();continue;case'4':const _0x24ddef={};_0x24ddef['type']=WS_EVENTS['LOG'],_0x24ddef['message']=_0x26f966['syFqK'],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x24ddef);continue;}break;}}}}_0x536463&&_0x26f966[_0x47124c(0x188)](_0x53f1fb,AZURE)&&(global_registry[_0x47124c(0x1ac)]=_0x495b98['s3BucketName'],await _0x1638f7[_0x47124c(0x18a)](),await _0x1638f7[_0x47124c(0x24a)]());const [_0x130614,_0x3b7dd3,_0x20ec92,_0x57bfa3,_0x1408be,_0x3db274]=await _0x26f966['IsGvi'](createK8sClient,_0x1638f7);_0x26f966['dpYLp'](_0x536463,![])&&_0x26f966['ISMMf'](_0x53f1fb,AWS)&&(_0x2b3a9f=await _0x1638f7['setupAutoscaler'](_0x130614,_0x185d9e));try{_0x134530=_0x26f966[_0x47124c(0x113)](kebabCase,_0x38bfef),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x1de)]);const _0x5db1e5={};_0x5db1e5[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x5db1e5['message']=_0x26f966[_0x47124c(0x1de)],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x5db1e5);if(_0x26f966[_0x47124c(0x1bc)](_0x134530,_0x26f966[_0x47124c(0x17a)])){const _0x38ebdb={};_0x38ebdb[_0x47124c(0x1c6)]=_0x26f966[_0x47124c(0x206)],_0x38ebdb[_0x47124c(0x193)]=_0x26f966[_0x47124c(0x206)];const _0x21965a={};_0x21965a[_0x47124c(0x205)]=_0x134530,_0x21965a[_0x47124c(0x165)]=_0x38ebdb;const _0x4f05b2={};_0x4f05b2[_0x47124c(0x21d)]=_0x21965a;let _0x49197a=_0x4f05b2;await _0x130614[_0x47124c(0x11c)](_0x49197a),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x14e)]);}const _0x5189ce={};_0x5189ce[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x5189ce[_0x47124c(0x12b)]=_0x26f966[_0x47124c(0x180)],webSocketUtils['sendEventToBackend'](_0x24545e,_0x5189ce);const _0x1eaeaf={};_0x1eaeaf[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x1eaeaf[_0x47124c(0x12b)]=_0x26f966[_0x47124c(0x207)],webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x1eaeaf),logger[_0x47124c(0x22d)](_0x26f966[_0x47124c(0x1f5)]);let _0x948527={};_0x26f966[_0x47124c(0x1ea)](_0x53f1fb,AZURE)&&(_0x948527={'clientId':await _0x1638f7[_0x47124c(0x230)](_0x47124c(0x170)+_0x505ec3)});await _0x26f966[_0x47124c(0x1b9)](addGridComponents,_0x130614,_0x3b7dd3,_0x20ec92,_0x57bfa3,_0x134530,_0x505ec3,_0x2b3a9f,_0x1408be,_0x3db274,_0x948527),_0x4e6822=_0x26f966[_0x47124c(0x130)],logger[_0x47124c(0x22d)](_0x4e6822);const _0x368daa={};_0x368daa['type']=WS_EVENTS[_0x47124c(0x1ed)],_0x368daa['message']=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x368daa),_0x4e6822=_0x26f966['ibsbk'],logger[_0x47124c(0x22d)](_0x4e6822);const _0x3e429b={};_0x3e429b[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x3e429b[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0x3e429b),await webSocketUtils['delay'](0xea60);const _0x2cf00a=await _0x26f966[_0x47124c(0x1ad)](getNamespaceUID,_0x130614,_0x134530);let _0x3b77c5=global_registry[_0x47124c(0x1e3)]?_0x26f966[_0x47124c(0x228)]:_0x26f966[_0x47124c(0x131)],_0x593620=await _0x130614[_0x47124c(0x17e)](_0x3b77c5,_0x26f966[_0x47124c(0x1a3)]),_0x226b28=_0x1638f7['getGridHostname'](_0x593620)+'/'+_0x134530,_0x2f6147=_0x26f966[_0x47124c(0x12e)];try{const _0x131b9d={'url':_0x47124c(0x1f7)+AG_API_URL+_0x47124c(0x12d)+_0x2cf00a,..._0x452295},_0xefda4a=_0x131b9d,_0x2fc4a4=await _0x26f966[_0x47124c(0x1fe)](promisifiedRequest,_0xefda4a);(_0x26f966[_0x47124c(0x241)](_0x2fc4a4,null)||_0x26f966[_0x47124c(0x222)](_0x2fc4a4,undefined))&&(_0x4e6822=_0x26f966['MjGtN'],await _0x26f966['TMRhm'](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966['yqHDF'],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process[_0x47124c(0x232)](0x1));_0x26f966['PxmxB'](_0x2fc4a4[_0x47124c(0x13c)],0x191)&&(_0x4e6822=_0x26f966[_0x47124c(0x1df)],await _0x26f966[_0x47124c(0x163)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x1cc)],_0x26f966[_0x47124c(0x19f)],_0x26f966[_0x47124c(0x127)]),logger[_0x47124c(0x14d)](_0x4e6822),process['exit'](0x1));_0x26f966[_0x47124c(0x23c)](_0x2fc4a4[_0x47124c(0x13c)],0xc8)&&(_0x4e6822='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x47124c(0x114)](_0x2fc4a4),await _0x26f966[_0x47124c(0x136)](reportToGalactusAndSendToEDS,_0x185d9e,_0x24545e,_0x4e6822,messageTypes[_0x47124c(0x14a)],_0x26f966['YDZsl'],_0x26f966['SiFDV'],_0x26f966[_0x47124c(0x127)]),logger['error'](_0x4e6822),process[_0x47124c(0x232)](0x1));const _0x4c38e7=JSON[_0x47124c(0x215)](_0x2fc4a4[_0x47124c(0x14f)]);_0x4c38e7[_0x47124c(0x1fa)]&&(_0x226b28=_0x4c38e7[_0x47124c(0x1fa)],_0x2f6147=_0x26f966[_0x47124c(0x1da)]),global_registry['isPrivateGrid']&&(_0x2f6147=_0x26f966['xsaey']);}catch(_0x5dc81b){}_0x4e6822=_0x47124c(0x218)+_0x226b28+'\x20',logger[_0x47124c(0x22d)](_0x4e6822);const _0x42f27f={};_0x42f27f['type']=WS_EVENTS[_0x47124c(0x1ed)],_0x42f27f[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils['sendEventToBackend'](_0x24545e,_0x42f27f),_0x4e6822=_0x47124c(0x1f0)+_0x2f6147+'://'+_0x226b28+_0x47124c(0x1f4),logger[_0x47124c(0x22d)](_0x4e6822);const _0x4e024c={};_0x4e024c[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1ed)],_0x4e024c[_0x47124c(0x12b)]=_0x4e6822,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x4e024c);const _0x321296={};_0x321296[_0x47124c(0x117)]=WS_EVENTS[_0x47124c(0x1e1)],_0x321296[_0x47124c(0x12b)]=_0x47124c(0x223)+_0x226b28,webSocketUtils[_0x47124c(0x1ae)](_0x24545e,_0x321296),await webSocketUtils[_0x47124c(0x224)](0x7d0);}catch(_0x296646){if(_0x26f966[_0x47124c(0x15d)](_0x536463,![]))try{logger[_0x47124c(0x22d)](_0x47124c(0x22f)),await _0x26f966[_0x47124c(0x242)](removeGridComponents,_0x130614,_0x3b7dd3,_0x20ec92,_0x57bfa3,_0x134530),await _0x1638f7[_0x47124c(0x19a)](_0x130614,global_registry[_0x47124c(0x22e)]);}catch(_0xf0ac2d){throw _0xf0ac2d;}throw _0x296646;}}catch(_0x63a4f9){const _0x5e6f17=_0x47124c(0x17f)+_0x63a4f9+'\x20\x0a'+JSON[_0x47124c(0x114)](_0x63a4f9)+'\x20';if(_0x24545e){const _0x12b46c={};_0x12b46c['type']=WS_EVENTS[_0x47124c(0x1ed)],_0x12b46c[_0x47124c(0x12b)]=_0x5e6f17,webSocketUtils['sendEventToBackend'](_0x24545e,_0x12b46c,_0x26f966[_0x47124c(0x127)],!![]);}await webSocketUtils[_0x47124c(0x224)](0x7d0);const _0x5a0cc4={};_0x5a0cc4['error']=_0x5e6f17,await _0x26f966[_0x47124c(0x1a7)](sendInstrumentationEvent,_0x185d9e,_0x26f966[_0x47124c(0x1cc)],messageTypes[_0x47124c(0x14a)],_0x26f966[_0x47124c(0x177)],_0x5a0cc4,_0x185d9e),logger[_0x47124c(0x14d)](_0x5e6f17);}process[_0x47124c(0x232)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a11_0x351809=a11_0x4360;function a11_0x354a(){const _0x591c76=['demandCommand','command','43772cpnXzT','167354nIhQVh','6UgKXdp','builder','124155SAcLmo','handler','usage','sSRAO','366489uQzoZY','epilogue','delete_commands','16zfdTZQ','pICol','strict','2442727JRqOWC','delete','commandDir','help','1014448fRdngT','recommendCommands','1019097hSUBFH','List\x20Grid\x20resources.','../config/constants'];a11_0x354a=function(){return _0x591c76;};return a11_0x354a();}(function(_0x345b5e,_0x2ebcb1){const _0x292c62=a11_0x4360,_0x4ae34a=_0x345b5e();while(!![]){try{const _0x931bc9=-parseInt(_0x292c62(0x7b))/0x1+parseInt(_0x292c62(0x7c))/0x2+parseInt(_0x292c62(0x76))/0x3+parseInt(_0x292c62(0x74))/0x4+-parseInt(_0x292c62(0x7f))/0x5+-parseInt(_0x292c62(0x7d))/0x6*(parseInt(_0x292c62(0x70))/0x7)+-parseInt(_0x292c62(0x6d))/0x8*(parseInt(_0x292c62(0x6a))/0x9);if(_0x931bc9===_0x2ebcb1)break;else _0x4ae34a['push'](_0x4ae34a['shift']());}catch(_0x227588){_0x4ae34a['push'](_0x4ae34a['shift']());}}}(a11_0x354a,0x2b73e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x351809(0x78));function a11_0x4360(_0x3dd0a3,_0x5c2867){const _0x354a20=a11_0x354a();return a11_0x4360=function(_0x436082,_0x33ae69){_0x436082=_0x436082-0x68;let _0x5a9bdb=_0x354a20[_0x436082];return _0x5a9bdb;},a11_0x4360(_0x3dd0a3,_0x5c2867);}exports[a11_0x351809(0x7a)]=a11_0x351809(0x71),exports['desc']=a11_0x351809(0x77),exports[a11_0x351809(0x7e)]=function(_0x7e78d4){const _0xe8341d=a11_0x351809,_0x2c54d6={};_0x2c54d6[_0xe8341d(0x69)]=_0xe8341d(0x6c),_0x2c54d6[_0xe8341d(0x6e)]=_0xe8341d(0x73);const _0x88bd2f=_0x2c54d6;return _0x7e78d4[_0xe8341d(0x68)](HELP_HEADER_MESSAGE['delete'])[_0xe8341d(0x6b)](HELP_FOOTER_MESSAGE)[_0xe8341d(0x72)](_0x88bd2f['sSRAO'])[_0xe8341d(0x79)]()[_0xe8341d(0x75)]()[_0xe8341d(0x6f)]()[_0xe8341d(0x73)](_0x88bd2f[_0xe8341d(0x6e)]);},exports[a11_0x351809(0x80)]=function(_0x2c78c4){};
|
|
@@ -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
|
+
const a12_0x3faab4=a12_0x2ee8;(function(_0x5d9d3c,_0x5ecb5a){const _0x2c579d=a12_0x2ee8,_0x4b7f8e=_0x5d9d3c();while(!![]){try{const _0x41585b=parseInt(_0x2c579d(0x166))/0x1*(-parseInt(_0x2c579d(0x161))/0x2)+-parseInt(_0x2c579d(0x192))/0x3*(parseInt(_0x2c579d(0x160))/0x4)+parseInt(_0x2c579d(0x188))/0x5*(parseInt(_0x2c579d(0x1d3))/0x6)+-parseInt(_0x2c579d(0x185))/0x7+-parseInt(_0x2c579d(0x16b))/0x8+-parseInt(_0x2c579d(0x1a7))/0x9+-parseInt(_0x2c579d(0x170))/0xa*(-parseInt(_0x2c579d(0x183))/0xb);if(_0x41585b===_0x5ecb5a)break;else _0x4b7f8e['push'](_0x4b7f8e['shift']());}catch(_0x5f01ce){_0x4b7f8e['push'](_0x4b7f8e['shift']());}}}(a12_0x1edc,0x57e5a));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0x3faab4(0x189)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x3faab4(0x171)),{logger}=require(a12_0x3faab4(0x194)),{getCloudProviderObject}=require(a12_0x3faab4(0x159)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a12_0x3faab4(0x1d6)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x3faab4(0x191)),{createK8sClient}=require(a12_0x3faab4(0x1b3)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x3faab4(0x1ce)),promisifiedRequest=util['promisify'](request);exports[a12_0x3faab4(0x164)]=a12_0x3faab4(0x1ac),exports[a12_0x3faab4(0x195)]=a12_0x3faab4(0x187),exports['builder']=function(_0x40521b){const _0x203571=a12_0x3faab4,_0x49de28={};_0x49de28[_0x203571(0x175)]=_0x203571(0x158),_0x49de28[_0x203571(0x1c7)]=_0x203571(0x1c6),_0x49de28[_0x203571(0x1a8)]=_0x203571(0x1cb);const _0x2f4c55=_0x49de28,_0x1a644a={};_0x1a644a[_0x203571(0x1b2)]=_0x2f4c55[_0x203571(0x175)],_0x1a644a[_0x203571(0x1b8)]=_0x2f4c55[_0x203571(0x1c7)];const _0x33d9e3={};return _0x33d9e3['grid-id']=_0x1a644a,_0x40521b[_0x203571(0x173)](HELP_HEADER_MESSAGE[_0x203571(0x168)])[_0x203571(0x196)](HELP_FOOTER_MESSAGE)[_0x203571(0x165)](_0x33d9e3)[_0x203571(0x1cb)](_0x2f4c55[_0x203571(0x1a8)])[_0x203571(0x16c)];},exports['handler']=async function(_0x33d901){const _0x4ced53=a12_0x3faab4,_0x32a16b={'IqoIL':_0x4ced53(0x1e2),'BABOc':_0x4ced53(0x158),'zZMCZ':'string','BcfJk':_0x4ced53(0x1cb),'OWrOe':function(_0x4aa32b){return _0x4aa32b();},'EPwEH':function(_0x47b072,_0x5ba77a){return _0x47b072===_0x5ba77a;},'ReUjD':_0x4ced53(0x1dd),'GEwwv':_0x4ced53(0x1b0),'YDSuh':function(_0x1bba0b,_0xc4cde6,_0x2bcd3b,_0x184f3d,_0xb36548,_0x3e49e1,_0x2b2032){return _0x1bba0b(_0xc4cde6,_0x2bcd3b,_0x184f3d,_0xb36548,_0x3e49e1,_0x2b2032);},'LeXlJ':'delete-grid-called','DksVw':_0x4ced53(0x186),'CNKrX':function(_0x25f358,_0x55cf13){return _0x25f358!==_0x55cf13;},'jMqwE':_0x4ced53(0x182),'EZbof':function(_0x18ebae){return _0x18ebae();},'NrfAm':function(_0x18b834,_0x439ff2,_0x4a6d8a,_0x488c2b){return _0x18b834(_0x439ff2,_0x4a6d8a,_0x488c2b);},'ibqgI':_0x4ced53(0x167),'SwDBA':_0x4ced53(0x17c),'hbRAf':_0x4ced53(0x1c8),'Nuhyj':function(_0x25b5eb,_0x79b7a7){return _0x25b5eb(_0x79b7a7);},'WlmPN':function(_0x15c1a0,_0x39bd0a){return _0x15c1a0===_0x39bd0a;},'JhsOg':function(_0x2b68c3,_0x302d5){return _0x2b68c3===_0x302d5;},'RWmDk':_0x4ced53(0x174),'ketlf':'dsVkv','loZZw':_0x4ced53(0x19f),'fjQqO':_0x4ced53(0x1ae),'WXERi':function(_0x20faf9,_0xef67ba){return _0x20faf9!==_0xef67ba;},'kOxhq':'kMnZJ','EakdM':function(_0x1f8882,_0x21f552,_0x24a8e7,_0x4514ea){return _0x1f8882(_0x21f552,_0x24a8e7,_0x4514ea);},'JOlhu':function(_0x39fa02,_0x335429){return _0x39fa02===_0x335429;},'NxGSz':_0x4ced53(0x15e),'lrWXb':_0x4ced53(0x1b1),'KfICq':_0x4ced53(0x190),'kJKLJ':_0x4ced53(0x1d1),'rmwsH':_0x4ced53(0x1ba),'HYYPZ':_0x4ced53(0x1e4),'EFnEk':_0x4ced53(0x16f),'varHC':function(_0x216dcc,_0x3c104b,_0x1929a5,_0x141c84,_0x1940cd,_0x5e8cd8){return _0x216dcc(_0x3c104b,_0x1929a5,_0x141c84,_0x1940cd,_0x5e8cd8);},'JulgC':'DELETE','tLDkV':function(_0x11d3d1,_0x5854a2){return _0x11d3d1(_0x5854a2);},'EdlsF':function(_0x1a2f43,_0x1e8a69){return _0x1a2f43!==_0x1e8a69;},'iNcpf':function(_0x47734c,_0x486f76){return _0x47734c===_0x486f76;},'GykEP':_0x4ced53(0x15b),'fleeU':function(_0x1133de,_0x42d88c,_0x5ff2de,_0x1e3e5e,_0x2c97b3,_0x15ba3a,_0x48267d){return _0x1133de(_0x42d88c,_0x5ff2de,_0x1e3e5e,_0x2c97b3,_0x15ba3a,_0x48267d);},'MAhKS':_0x4ced53(0x1de),'DkKnf':function(_0x33c5da,_0x219f30,_0x2976c0,_0x46e26a,_0xfdd2,_0x34ee6c,_0x12c26d){return _0x33c5da(_0x219f30,_0x2976c0,_0x46e26a,_0xfdd2,_0x34ee6c,_0x12c26d);},'YOHrh':_0x4ced53(0x1af),'DcgzE':'unknown-error'};try{global_registry[_0x4ced53(0x16a)]=_0x32a16b['OWrOe'](uuidv4);!fs[_0x4ced53(0x1d8)](_0x32a16b['OWrOe'](getCredentialsPath))&&(_0x32a16b['EPwEH'](_0x32a16b['ReUjD'],_0x32a16b[_0x4ced53(0x179)])?(console['error'](_0x32a16b[_0x4ced53(0x1df)]),await _0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b['DksVw'],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)):_0x2cef20['warn']('Cluster:\x20'+_0x59459f['clusterName']+_0x4ced53(0x169)));_0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b['LeXlJ'],messageTypes[_0x4ced53(0x18e)],null,null,_0x33d901);!_0x33d901[_0x4ced53(0x19a)]&&(_0x32a16b[_0x4ced53(0x18d)](_0x32a16b[_0x4ced53(0x1e0)],_0x32a16b[_0x4ced53(0x1e0)])?_0x323178=_0x4ced53(0x17d)+_0x5d15e8['name']+'\x22\x20and\x20ID\x20'+_0x5e5927['id']+_0x4ced53(0x1e3)+_0xc2cc56[_0x4ced53(0x15d)]+_0x4ced53(0x1a5)+_0x27d4bf[_0x4ced53(0x1a6)]+_0x4ced53(0x1b5):(console[_0x4ced53(0x19b)](_0x32a16b[_0x4ced53(0x1be)]),process[_0x4ced53(0x1a0)](0x1)));const _0x5b9fa9=JSON[_0x4ced53(0x18f)](fs[_0x4ced53(0x1a2)](_0x32a16b[_0x4ced53(0x1a1)](getCredentialsPath))),[_0x39853a,_0x27ba3d]=await _0x32a16b[_0x4ced53(0x17e)](getGridDetails,_0x5b9fa9['Browserstack'][_0x4ced53(0x198)],_0x5b9fa9[_0x4ced53(0x167)][_0x4ced53(0x172)],_0x33d901[_0x4ced53(0x19a)]);if(_0x27ba3d){const _0x5f6e1=_0x27ba3d[_0x4ced53(0x1e6)];let _0x42bfa5=_0x4ced53(0x17d)+_0x5f6e1[_0x4ced53(0x176)]+'\x22\x20and\x20ID\x20'+_0x5f6e1['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x592e69;_0x27ba3d[_0x4ced53(0x1a9)]&&_0x32a16b[_0x4ced53(0x1aa)](_0x27ba3d[_0x4ced53(0x1dc)],_0x32a16b[_0x4ced53(0x1e1)])&&(_0x32a16b[_0x4ced53(0x1aa)](_0x32a16b[_0x4ced53(0x1c9)],_0x32a16b[_0x4ced53(0x1c5)])?(_0xfacd45[_0x4ced53(0x1e6)](_0x4ced53(0x17f)),_0x301567['exit'](0x0)):_0x42bfa5=_0x4ced53(0x17d)+_0x5f6e1[_0x4ced53(0x176)]+_0x4ced53(0x1cf)+_0x5f6e1['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x5f6e1['clusterName']+_0x4ced53(0x1a5)+_0x5f6e1[_0x4ced53(0x1a6)]+_0x4ced53(0x1b5));_0x592e69=await _0x32a16b[_0x4ced53(0x18b)](inputConfirmation,_0x42bfa5);(_0x32a16b[_0x4ced53(0x1aa)](_0x592e69,undefined)||_0x32a16b[_0x4ced53(0x1aa)](_0x592e69,null)||!(_0x32a16b[_0x4ced53(0x18a)](_0x592e69[_0x4ced53(0x181)](),'y')||_0x32a16b['EPwEH'](_0x592e69[_0x4ced53(0x181)](),'n')))&&(_0x32a16b[_0x4ced53(0x16e)](_0x32a16b[_0x4ced53(0x1cd)],_0x32a16b[_0x4ced53(0x1c4)])?(_0x840447[_0x4ced53(0x19b)](_0x32a16b[_0x4ced53(0x1be)]),_0x556db4['exit'](0x1)):(console[_0x4ced53(0x19b)](_0x32a16b[_0x4ced53(0x17b)]),await _0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x178)],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)));if(_0x32a16b[_0x4ced53(0x18a)](_0x592e69[_0x4ced53(0x181)](),'n')){if(_0x32a16b[_0x4ced53(0x19e)](_0x32a16b[_0x4ced53(0x19d)],_0x32a16b[_0x4ced53(0x19d)])){const _0x461e75={};_0x461e75['description']=_0x32a16b[_0x4ced53(0x197)],_0x461e75[_0x4ced53(0x1b8)]=_0x32a16b['zZMCZ'];const _0x4d4e15={};return _0x4d4e15[_0x4ced53(0x1d9)]=_0x461e75,_0x5b8675[_0x4ced53(0x173)](_0x449f35[_0x4ced53(0x168)])[_0x4ced53(0x196)](_0x81566f)[_0x4ced53(0x165)](_0x4d4e15)[_0x4ced53(0x1cb)](_0x32a16b[_0x4ced53(0x184)])[_0x4ced53(0x16c)];}else process['exit'](0x0);}global_registry[_0x4ced53(0x1e5)]=_0x5f6e1['region'];const _0x550f58=_0x5f6e1[_0x4ced53(0x1d5)],_0x912d38=_0x32a16b['EakdM'](getCloudProviderObject,_0x550f58,_0x5f6e1[_0x4ced53(0x15d)],_0x5f6e1['name']),_0x273950=_0x5b9fa9['cloudProvider'];if(_0x32a16b[_0x4ced53(0x16e)](_0x273950[_0x550f58],undefined)){if(_0x32a16b['JOlhu'](_0x32a16b[_0x4ced53(0x1e7)],_0x32a16b[_0x4ced53(0x1a3)]))_0x2a6909[_0x4ced53(0x1d5)]={};else{logger[_0x4ced53(0x1e6)](_0x32a16b[_0x4ced53(0x1ad)]);_0x32a16b['WlmPN'](_0x5b9fa9['cloudProvider'],undefined)&&(_0x32a16b[_0x4ced53(0x1aa)](_0x32a16b[_0x4ced53(0x1bf)],_0x32a16b[_0x4ced53(0x1c2)])?_0xbe90d8['exit'](0x0):_0x5b9fa9['cloudProvider']={});_0x5b9fa9[_0x4ced53(0x1d5)][_0x550f58]={};const _0x3afe70=await _0x32a16b[_0x4ced53(0x193)](inputCloudProviderKeys,_0x550f58,_0x5b9fa9,_0x912d38);fs[_0x4ced53(0x1c0)](_0x32a16b[_0x4ced53(0x1bc)](getCredentialsPath),JSON['stringify'](_0x3afe70)),logger[_0x4ced53(0x1bb)](_0x32a16b['HYYPZ']);}}else logger[_0x4ced53(0x1e6)](_0x32a16b[_0x4ced53(0x1d2)]),await _0x912d38[_0x4ced53(0x199)](_0x273950);_0x912d38['configureIfNotConfigured']();const _0x423fc8=_0x32a16b[_0x4ced53(0x18b)](kebabCase,_0x5f6e1[_0x4ced53(0x176)]),[_0x2a1f06,_0x5690c3,_0x2ab967,_0x4461b7,_0x32dd7d,_0x18389a]=await _0x32a16b[_0x4ced53(0x18b)](createK8sClient,_0x912d38);await _0x32a16b[_0x4ced53(0x1c1)](removeGridComponents,_0x2a1f06,_0x5690c3,_0x2ab967,_0x4461b7,_0x423fc8);if(_0x27ba3d[_0x4ced53(0x1a9)]){const _0x3f0363=await _0x912d38['isBrowserstackCluster']();_0x3f0363?await _0x912d38[_0x4ced53(0x1db)](_0x2a1f06,_0x5f6e1[_0x4ced53(0x1cc)]):logger[_0x4ced53(0x162)](_0x4ced53(0x1a4)+_0x5f6e1[_0x4ced53(0x15d)]+_0x4ced53(0x169));}const _0x4ca625=_0x4ced53(0x1b4)+AG_API_URL+_0x4ced53(0x1e9)+_0x33d901['gridId'],_0x2f27b9={};_0x2f27b9[_0x4ced53(0x198)]=_0x5b9fa9[_0x4ced53(0x167)][_0x4ced53(0x198)],_0x2f27b9[_0x4ced53(0x172)]=_0x5b9fa9[_0x4ced53(0x167)][_0x4ced53(0x172)];const _0x3b8950={};_0x3b8950[_0x4ced53(0x177)]=_0x4ca625,_0x3b8950['method']=_0x32a16b[_0x4ced53(0x1c3)],_0x3b8950[_0x4ced53(0x163)]=_0x2f27b9;const _0x9eb7ec=_0x3b8950,_0x5f5b28=await _0x32a16b[_0x4ced53(0x1b9)](promisifiedRequest,_0x9eb7ec);_0x32a16b[_0x4ced53(0x19e)](_0x5f5b28,null)&&_0x32a16b[_0x4ced53(0x16d)](_0x5f5b28,undefined)&&_0x32a16b[_0x4ced53(0x17a)](_0x5f5b28[_0x4ced53(0x1b6)],0xc8)&&(logger[_0x4ced53(0x1e6)]('Succesfully\x20deleted\x20the\x20grid'),process['exit'](0x0)),logger[_0x4ced53(0x19b)](_0x4ced53(0x1d0)+JSON[_0x4ced53(0x19c)](_0x5f5b28)),await _0x32a16b[_0x4ced53(0x15a)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x1b7)],_0x39853a,_0x33d901),process[_0x4ced53(0x1a0)](0x1);}_0x32a16b[_0x4ced53(0x17a)](_0x39853a[_0x4ced53(0x1b6)],0x191)&&(logger[_0x4ced53(0x19b)](_0x4ced53(0x1d4)),await _0x32a16b[_0x4ced53(0x15f)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x15c)],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)),_0x32a16b[_0x4ced53(0x18a)](_0x39853a[_0x4ced53(0x1b6)],0x190)&&(logger['error'](JSON[_0x4ced53(0x18f)](_0x39853a[_0x4ced53(0x1bd)])['message']),await _0x32a16b[_0x4ced53(0x1d7)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b[_0x4ced53(0x1ab)],null,_0x33d901),process[_0x4ced53(0x1a0)](0x1)),logger[_0x4ced53(0x19b)](_0x4ced53(0x18c)+JSON[_0x4ced53(0x19c)](_0x39853a)),await _0x32a16b[_0x4ced53(0x15f)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes['ERROR'],_0x32a16b['GykEP'],_0x39853a,_0x33d901),process[_0x4ced53(0x1a0)](0x1);}catch(_0x45247a){logger['error'](_0x4ced53(0x1e8)+_0x45247a[_0x4ced53(0x1da)]),await _0x32a16b[_0x4ced53(0x1d7)](sendInstrumentationEvent,_0x33d901,_0x32a16b[_0x4ced53(0x1ca)],messageTypes[_0x4ced53(0x180)],_0x32a16b['DcgzE'],_0x45247a,_0x33d901),process[_0x4ced53(0x1a0)](0x1);}};function a12_0x2ee8(_0x49b4ae,_0x418f77){const _0x1edc0e=a12_0x1edc();return a12_0x2ee8=function(_0x2ee89f,_0x2ebf01){_0x2ee89f=_0x2ee89f-0x158;let _0x386ead=_0x1edc0e[_0x2ee89f];return _0x386ead;},a12_0x2ee8(_0x49b4ae,_0x418f77);}function a12_0x1edc(){const _0x4ed361=['\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','requestId','5639312DkLTtJ','argv','EdlsF','JhsOg','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','30auXPBK','../../config/constants','password','usage','pIZnU','kdURG','name','url','fjQqO','ReUjD','iNcpf','loZZw','HPXkm','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','NrfAm','Succesfully\x20deleted\x20the\x20grid','ERROR','toLowerCase','OaBcY','7078060renska','BcfJk','4135607nhLPFZ','init-not-called','Delete\x20an\x20Automation\x20grid.','1865XzSHDL','uuid','WlmPN','Nuhyj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','CNKrX','INFO','parse','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','../../utils/userInput','833649jJAzTM','EakdM','../../config/logger','desc','epilogue','BABOc','username','fetchLocalCreds','gridId','error','stringify','kOxhq','WXERi','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','exit','EZbof','readFileSync','lrWXb','Cluster:\x20','\x22\x20with\x20ID\x20','clusterId','4545963rOFcXr','tjMDZ','onlyGridInCluster','EPwEH','YOHrh','grid','KfICq','invalid-input','invalid-grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lSwCG','description','../../utils/createk8sClient','https://','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','statusCode','GykEP','type','tLDkV','PSBrs','debug','OWrOe','body','IqoIL','kJKLJ','writeFileSync','varHC','rmwsH','JulgC','ketlf','hbRAf','string','xCqVM','NWSAm','SwDBA','LeXlJ','help','region','RWmDk','../../utils/utilityMethods','\x22\x20and\x20ID\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','GzMjG','EFnEk','10452CSLWXp','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','../../utils/instrumentationUtils','DkKnf','existsSync','grid-id','stack','deleteCluster','clusterSpawnedVia','YKROe','unauthorised','GEwwv','jMqwE','ibqgI','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','clusterRegion','info','NxGSz','Failed\x20to\x20delete\x20resources!\x20Error:\x20','/packages/cli/grid/','Pass\x20the\x20ID\x20of\x20the\x20Grid','../../cloudproviders/utils','YDSuh','server-error','MAhKS','clusterName','JSLMY','fleeU','4ZQTAHa','56566ATtLsv','warn','auth','command','options','5CNFsjk','Browserstack','delete'];a12_0x1edc=function(){return _0x4ed361;};return a12_0x1edc();}
|
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_0x219d7a=a13_0x3425;function a13_0x4a8e(){const _0x5e6396=['stringify','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','acULn','rxnkg','request','argv','INFO','xjvSb','nOKMb','recommendCommands','username','MjrfO','NZPzC','string','bstackUsername','MuiOj','mkdirSync','MSdyS','desc','password','BROWSERSTACK_ACCESS_KEY','dftiG','type','400266KZeNWH','pMXWo','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','NRTfE','options','command','TGnrT','BROWSERSTACK_USERNAME','statusCode','VvtMe','wHyWZ','url','xIvQx','../config/constants','VGOKw','help','pvEXx','existsSync','5WDaBzB','epilogue','TtSwI','LNSDJ','zalkU','env','3ggeTDu','piOSG','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','parse','laMUe','91230DplnWt','SOqAm','readFileSync','ZLZhq','1092560DtuPar','GTZmM','gwrcu','error','../utils/instrumentationUtils','description','nMliX','init','dbvEZ','dAtIp','Browserstack','zTemL','builder','821676hMqnNY','/automate/plan.json','bBgQU','sonoq','sZxgX','rhHMv','KMqdD','bstackAccesskey','423801lxTDKS','bstack-accesskey','handler','FhqND','jLvZo','KqnUH','init-called','rbDFu','PZnEc','uuid','fymea','strict','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','eNbvU','usage','uPRJn','GET','../utils/utilityMethods','OJUey','wrong-creds','https://','promisify','exit','LkqID','debug','1347262DOakYD','stack','ZQjqB','writeFileSync','150852hrJjqH'];a13_0x4a8e=function(){return _0x5e6396;};return a13_0x4a8e();}(function(_0x3a64b2,_0x2496b3){const _0x57c9b2=a13_0x3425,_0x42e783=_0x3a64b2();while(!![]){try{const _0x30a4c7=-parseInt(_0x57c9b2(0x1aa))/0x1*(parseInt(_0x57c9b2(0x1af))/0x2)+-parseInt(_0x57c9b2(0x1c8))/0x3+-parseInt(_0x57c9b2(0x17a))/0x4+parseInt(_0x57c9b2(0x1a4))/0x5*(parseInt(_0x57c9b2(0x1c0))/0x6)+parseInt(_0x57c9b2(0x176))/0x7+parseInt(_0x57c9b2(0x1b3))/0x8+-parseInt(_0x57c9b2(0x192))/0x9;if(_0x30a4c7===_0x2496b3)break;else _0x42e783['push'](_0x42e783['shift']());}catch(_0x50a349){_0x42e783['push'](_0x42e783['shift']());}}}(a13_0x4a8e,0x19cd3));const fs=require('fs'),util=require('util'),request=require(a13_0x219d7a(0x17f)),{v4:uuidv4}=require(a13_0x219d7a(0x1d1)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x219d7a(0x19f)),{getDirForConfig,getCredentialsPath}=require(a13_0x219d7a(0x16e)),{sendInstrumentationEvent}=require(a13_0x219d7a(0x1b7)),promisifiedRequest=util[a13_0x219d7a(0x172)](request);function a13_0x3425(_0x1936de,_0x4c0fa8){const _0x4a8e2b=a13_0x4a8e();return a13_0x3425=function(_0x342566,_0x509aac){_0x342566=_0x342566-0x16a;let _0x3e29f1=_0x4a8e2b[_0x342566];return _0x3e29f1;},a13_0x3425(_0x1936de,_0x4c0fa8);}exports[a13_0x219d7a(0x197)]=a13_0x219d7a(0x1ba),exports[a13_0x219d7a(0x18d)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a13_0x219d7a(0x1bf)]=function(_0x5de67f){const _0x41b8e7=a13_0x219d7a,_0x2ae0a7={};_0x2ae0a7[_0x41b8e7(0x174)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2ae0a7['xIvQx']=_0x41b8e7(0x188),_0x2ae0a7[_0x41b8e7(0x1b0)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2ae0a7[_0x41b8e7(0x1a7)]=_0x41b8e7(0x1a1);const _0x132325=_0x2ae0a7,_0x24eceb={};_0x24eceb[_0x41b8e7(0x1b8)]=_0x132325[_0x41b8e7(0x174)],_0x24eceb[_0x41b8e7(0x191)]=_0x132325[_0x41b8e7(0x19e)];const _0x3ad5e9={};_0x3ad5e9[_0x41b8e7(0x1b8)]=_0x132325[_0x41b8e7(0x1b0)],_0x3ad5e9[_0x41b8e7(0x191)]=_0x132325[_0x41b8e7(0x19e)];const _0x275ce7={};return _0x275ce7['bstack-username']=_0x24eceb,_0x275ce7[_0x41b8e7(0x1c9)]=_0x3ad5e9,_0x5de67f[_0x41b8e7(0x16b)](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x41b8e7(0x196)](_0x275ce7)[_0x41b8e7(0x184)]()[_0x41b8e7(0x1d3)]()[_0x41b8e7(0x1a1)](_0x132325['LNSDJ'])['argv'];},exports[a13_0x219d7a(0x1ca)]=async function(_0x3c1ac9){const _0x189627=a13_0x219d7a,_0x25d347={'xjvSb':function(_0x10efdb){return _0x10efdb();},'MSdyS':'utf-8','dbvEZ':_0x189627(0x1d4),'jLvZo':_0x189627(0x188),'MjrfO':_0x189627(0x1ac),'uPRJn':'help','VGOKw':function(_0x281579,_0xc19e74,_0x400632,_0x1d8e62,_0x105177,_0x5e663e,_0x41be8a){return _0x281579(_0xc19e74,_0x400632,_0x1d8e62,_0x105177,_0x5e663e,_0x41be8a);},'PZnEc':_0x189627(0x1ce),'ZLZhq':function(_0x3b8cf4,_0x2fdc73){return _0x3b8cf4!==_0x2fdc73;},'NZPzC':_0x189627(0x190),'nMliX':_0x189627(0x17e),'gwrcu':_0x189627(0x18a),'dAtIp':_0x189627(0x183),'piOSG':function(_0x592848,_0x483483){return _0x592848===_0x483483;},'pvEXx':_0x189627(0x1cb),'laMUe':_0x189627(0x1d2),'KMqdD':_0x189627(0x195),'bBgQU':function(_0x58408e,_0x170999){return _0x58408e===_0x170999;},'wHyWZ':function(_0x2fb3b1,_0x1de514){return _0x2fb3b1===_0x1de514;},'TGnrT':_0x189627(0x19b),'ZQjqB':'odxUl','hPKkI':_0x189627(0x194),'zTemL':function(_0x2f54f3){return _0x2f54f3();},'UjsGA':_0x189627(0x16d),'eNbvU':function(_0x470bd1,_0x1519b6){return _0x470bd1(_0x1519b6);},'sZxgX':function(_0x440c31,_0xb9be5c){return _0x440c31!==_0xb9be5c;},'mjLDX':function(_0x536732,_0x998750){return _0x536732!==_0x998750;},'UwNoU':function(_0x2496bc,_0x49d970){return _0x2496bc===_0x49d970;},'KqnUH':'EEjEO','GTZmM':function(_0x4294f5,_0x41505f){return _0x4294f5!==_0x41505f;},'rhHMv':_0x189627(0x1cf),'sonoq':_0x189627(0x1a6),'acULn':function(_0x5298c7,_0x598741){return _0x5298c7!==_0x598741;},'OJUey':'tVzBN','pMXWo':_0x189627(0x17c),'zalkU':_0x189627(0x170),'rTzJs':'unknown-error'};try{global_registry['requestId']=_0x25d347[_0x189627(0x182)](uuidv4),_0x25d347[_0x189627(0x1a0)](sendInstrumentationEvent,_0x3c1ac9,_0x25d347[_0x189627(0x1d0)],messageTypes[_0x189627(0x181)],null,null,_0x3c1ac9);const _0x381cdc=_0x25d347['xjvSb'](getDirForConfig);if(!fs[_0x189627(0x1a3)](_0x381cdc)){if(_0x25d347[_0x189627(0x1b2)](_0x25d347[_0x189627(0x187)],_0x25d347[_0x189627(0x187)])){let _0x71e441={};const _0x407794=_0x25d347[_0x189627(0x182)](_0x55f1c5);_0x11b0dc[_0x189627(0x1a3)](_0x407794)&&(_0x71e441=_0x5cba4e[_0x189627(0x1ad)](_0x5a725b[_0x189627(0x1b1)](_0x407794,_0x25d347[_0x189627(0x18c)])));const _0x5188b6={};_0x5188b6['username']=_0x63c96,_0x5188b6[_0x189627(0x18e)]=_0x85b2d8,_0x71e441[_0x189627(0x1bd)]=_0x5188b6,_0x32a60a[_0x189627(0x179)](_0x407794,_0x3264ba[_0x189627(0x17b)](_0x71e441)),_0x72ac94[_0x189627(0x173)](0x0);}else fs[_0x189627(0x18b)](_0x381cdc);}let _0x3de9f2,_0x3eab7d;process[_0x189627(0x1a9)][_0x189627(0x199)]&&(_0x25d347['ZLZhq'](_0x25d347[_0x189627(0x1b9)],_0x25d347['nMliX'])?_0x5f48b8=!![]:_0x3de9f2=process[_0x189627(0x1a9)][_0x189627(0x199)]);process[_0x189627(0x1a9)][_0x189627(0x18f)]&&(_0x25d347[_0x189627(0x1b2)](_0x25d347[_0x189627(0x1b5)],_0x25d347[_0x189627(0x1bc)])?_0x3eab7d=process[_0x189627(0x1a9)][_0x189627(0x18f)]:_0x4d8c9a[_0x189627(0x18b)](_0x5f0e04));_0x3c1ac9[_0x189627(0x189)]&&(_0x25d347[_0x189627(0x1ab)](_0x25d347[_0x189627(0x1a2)],_0x25d347[_0x189627(0x1ae)])?_0xe105b0=_0x5a01e6[_0x189627(0x1a9)][_0x189627(0x199)]:_0x3de9f2=_0x3c1ac9[_0x189627(0x189)]);if(_0x3c1ac9[_0x189627(0x1c7)]){if(_0x25d347[_0x189627(0x1ab)](_0x25d347[_0x189627(0x1c6)],_0x25d347['KMqdD']))_0x3eab7d=_0x3c1ac9[_0x189627(0x1c7)];else{const _0x56bc77={};_0x56bc77['description']=_0x25d347[_0x189627(0x1bb)],_0x56bc77[_0x189627(0x191)]=_0x25d347[_0x189627(0x1cc)];const _0x27f2a4={};_0x27f2a4['description']=_0x25d347[_0x189627(0x186)],_0x27f2a4[_0x189627(0x191)]=_0x25d347['jLvZo'];const _0x4a94e7={};return _0x4a94e7['bstack-username']=_0x56bc77,_0x4a94e7[_0x189627(0x1c9)]=_0x27f2a4,_0x1e04a5[_0x189627(0x16b)](_0x216744[_0x189627(0x1ba)])[_0x189627(0x1a5)](_0x1c8a1c)['options'](_0x4a94e7)[_0x189627(0x184)]()['strict']()[_0x189627(0x1a1)](_0x25d347[_0x189627(0x16c)])[_0x189627(0x180)];}}if(_0x25d347[_0x189627(0x1c2)](_0x3de9f2,undefined)||_0x25d347['wHyWZ'](_0x3eab7d,undefined)){if(_0x25d347[_0x189627(0x19c)](_0x25d347[_0x189627(0x198)],_0x25d347[_0x189627(0x178)]))_0x270a00=_0x4abc37[_0x189627(0x1a9)][_0x189627(0x18f)];else{logger[_0x189627(0x175)](_0x25d347['hPKkI']);const [_0x3a0a81,_0x516f8c]=await _0x25d347[_0x189627(0x1be)](inputBstackKeys);_0x3de9f2=_0x3a0a81,_0x3eab7d=_0x516f8c;}}let _0x4e0b16=![];const _0x2fdd96={};_0x2fdd96[_0x189627(0x19d)]=_0x189627(0x171)+_0x3de9f2+':'+_0x3eab7d+'@'+BS_API_URL+_0x189627(0x1c1),_0x2fdd96['method']=_0x25d347['UjsGA'];const _0x4e8b00=_0x2fdd96,_0x1f6d14=await _0x25d347[_0x189627(0x16a)](promisifiedRequest,_0x4e8b00);_0x25d347[_0x189627(0x1c4)](_0x1f6d14,null)&&_0x25d347['mjLDX'](_0x1f6d14,undefined)&&_0x25d347['UwNoU'](_0x1f6d14[_0x189627(0x19a)],0xc8)&&(_0x25d347[_0x189627(0x1c2)](_0x25d347['KqnUH'],_0x25d347[_0x189627(0x1cd)])?_0x4e0b16=!![]:_0x4b749a=_0x4240ef[_0x189627(0x1ad)](_0x66453a['readFileSync'](_0x11937d,_0x25d347[_0x189627(0x18c)])));if(_0x4e0b16){if(_0x25d347[_0x189627(0x1b4)](_0x25d347[_0x189627(0x1c5)],_0x25d347[_0x189627(0x1c3)])){let _0x30ec6b={};const _0xdb797f=_0x25d347[_0x189627(0x182)](getCredentialsPath);fs[_0x189627(0x1a3)](_0xdb797f)&&(_0x25d347[_0x189627(0x17d)](_0x25d347[_0x189627(0x16f)],_0x25d347[_0x189627(0x16f)])?_0x2686cc=_0x5c49c2[_0x189627(0x189)]:_0x30ec6b=JSON[_0x189627(0x1ad)](fs[_0x189627(0x1b1)](_0xdb797f,_0x25d347[_0x189627(0x18c)])));const _0x444e7e={};_0x444e7e[_0x189627(0x185)]=_0x3de9f2,_0x444e7e[_0x189627(0x18e)]=_0x3eab7d,_0x30ec6b['Browserstack']=_0x444e7e,fs[_0x189627(0x179)](_0xdb797f,JSON[_0x189627(0x17b)](_0x30ec6b)),process[_0x189627(0x173)](0x0);}else _0x5881ce=_0x2aa135[_0x189627(0x1c7)];}else logger[_0x189627(0x1b6)](_0x25d347[_0x189627(0x193)]),await _0x25d347[_0x189627(0x1a0)](sendInstrumentationEvent,_0x3c1ac9,_0x25d347[_0x189627(0x1d0)],messageTypes['ERROR'],_0x25d347[_0x189627(0x1a8)],null,_0x3c1ac9),process[_0x189627(0x173)](0x1);}catch(_0x5d2e34){logger['error'](_0x5d2e34[_0x189627(0x177)]),await _0x25d347[_0x189627(0x1a0)](sendInstrumentationEvent,_0x3c1ac9,_0x25d347[_0x189627(0x1d0)],messageTypes['ERROR'],_0x25d347['rTzJs'],_0x5d2e34,_0x3c1ac9),process[_0x189627(0x173)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x432028=a14_0x3344;(function(_0x400f03,_0x3c3ceb){const _0x2bdec4=a14_0x3344,_0x70794=_0x400f03();while(!![]){try{const _0x1df05c=-parseInt(_0x2bdec4(0x120))/0x1*(-parseInt(_0x2bdec4(0x128))/0x2)+-parseInt(_0x2bdec4(0x12e))/0x3+parseInt(_0x2bdec4(0x123))/0x4+-parseInt(_0x2bdec4(0x12c))/0x5+parseInt(_0x2bdec4(0x121))/0x6*(-parseInt(_0x2bdec4(0x12a))/0x7)+parseInt(_0x2bdec4(0x129))/0x8*(-parseInt(_0x2bdec4(0x122))/0x9)+parseInt(_0x2bdec4(0x124))/0xa;if(_0x1df05c===_0x3c3ceb)break;else _0x70794['push'](_0x70794['shift']());}catch(_0x80360a){_0x70794['push'](_0x70794['shift']());}}}(a14_0x13c7,0xd83c1));function a14_0x13c7(){const _0x13628c=['5442735YGvnFr','help','1635729DpaJdg','strict','List\x20down\x20the\x20Grid\x20resources.','epilogue','../config/constants','recommendCommands','commandDir','builder','list','1qZunOz','396444qaNEbF','10809540xvRDfw','7045500apKPFS','23275070JtOTKw','mUruE','command','desc','188366lWFoZI','8KSfFLE','49FkEsUa','usage'];a14_0x13c7=function(){return _0x13628c;};return a14_0x13c7();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x432028(0x132));function a14_0x3344(_0x347898,_0xc57155){const _0x13c789=a14_0x13c7();return a14_0x3344=function(_0x33444a,_0x27e1cf){_0x33444a=_0x33444a-0x11f;let _0x13c10b=_0x13c789[_0x33444a];return _0x13c10b;},a14_0x3344(_0x347898,_0xc57155);}exports[a14_0x432028(0x126)]=a14_0x432028(0x11f),exports[a14_0x432028(0x127)]=a14_0x432028(0x130),exports[a14_0x432028(0x135)]=function(_0x3a4161){const _0x47a02f=a14_0x432028,_0x4c4d89={};_0x4c4d89[_0x47a02f(0x125)]='list_commands',_0x4c4d89['PgCiZ']=_0x47a02f(0x12d);const _0xf585dc=_0x4c4d89;return _0x3a4161[_0x47a02f(0x134)](_0xf585dc['mUruE'])['demandCommand']()[_0x47a02f(0x12b)](HELP_HEADER_MESSAGE[_0x47a02f(0x11f)]['root'])[_0x47a02f(0x131)](HELP_FOOTER_MESSAGE)[_0x47a02f(0x133)]()[_0x47a02f(0x12f)]()[_0x47a02f(0x12d)](_0xf585dc['PgCiZ']);},exports['handler']=function(_0xfde8ee){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x12919b=a15_0x57a9;function a15_0x9cbd(){const _0x503794=['IaoUg','unknown-error','1893344sCoYPX','1030574jeRlvO','usage','YyHZQ','wJmrT','https://','qCFkZ','requestId','request','password','concurrency','CVBbw','desc','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Browserstack','252VZJSms','exit','log','8VTLEAH','allGridProfiles','region','error','body','11xcpcll','table','/packages/cli/get-grid-profiles','name','PExCE','sKUmw','../../utils/instrumentationUtils','49170GrHxFA','server-error','ONCgW','description','WZaWR','util','GET','CnxcQ','builder','all-grid-profiles','3213711fzQPVW','stack','deVQW','23767170JbVYDD','method','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','GwUsM','1056456UNWSce','push','bstackAccesskey','stringify','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','grid-profiles','ERROR','gbbsJ','epilogue','nJDZw','Failed\x20to\x20list\x20resources!\x20Error:\x20','forEach','handler','VzxVo','15186ylNrzL','list-grid-profiles-called','HfMqG','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','YthDx','cloudProvider','list','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Lhbxc','1001iHcoVd','help','uuid','grid-profile-name','username','url','parse','/packages/cli/get-all-grid-profiles','cloud-provider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wnSZO','jHrrX','existsSync','llMAZ'];a15_0x9cbd=function(){return _0x503794;};return a15_0x9cbd();}(function(_0x39ade1,_0x3def87){const _0x27cce0=a15_0x57a9,_0x29191d=_0x39ade1();while(!![]){try{const _0x2ddc99=parseInt(_0x27cce0(0x13f))/0x1+parseInt(_0x27cce0(0x13e))/0x2+parseInt(_0x27cce0(0x16e))/0x3+parseInt(_0x27cce0(0x14d))/0x4*(parseInt(_0x27cce0(0x15c))/0x5)+-parseInt(_0x27cce0(0x17c))/0x6*(-parseInt(_0x27cce0(0x185))/0x7)+-parseInt(_0x27cce0(0x150))/0x8*(parseInt(_0x27cce0(0x166))/0x9)+-parseInt(_0x27cce0(0x169))/0xa*(parseInt(_0x27cce0(0x155))/0xb);if(_0x2ddc99===_0x3def87)break;else _0x29191d['push'](_0x29191d['shift']());}catch(_0x2afca1){_0x29191d['push'](_0x29191d['shift']());}}}(a15_0x9cbd,0x8ce35));function a15_0x57a9(_0x302472,_0x1a495b){const _0x9cbdb1=a15_0x9cbd();return a15_0x57a9=function(_0x57a96f,_0x1ebccc){_0x57a96f=_0x57a96f-0x13a;let _0x208b21=_0x9cbdb1[_0x57a96f];return _0x208b21;},a15_0x57a9(_0x302472,_0x1a495b);}const fs=require('fs'),util=require(a15_0x12919b(0x161)),request=require(a15_0x12919b(0x146)),{table}=require(a15_0x12919b(0x156)),{v4:uuidv4}=require(a15_0x12919b(0x187)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x12919b(0x15b)),promisifiedRequest=util['promisify'](request);exports['command']=a15_0x12919b(0x173),exports[a15_0x12919b(0x14a)]=a15_0x12919b(0x17f),exports[a15_0x12919b(0x164)]=function(_0x46e574){const _0x236852=a15_0x12919b,_0x3778f9={};_0x3778f9[_0x236852(0x177)]=_0x236852(0x172),_0x3778f9[_0x236852(0x15a)]='boolean',_0x3778f9[_0x236852(0x168)]='help';const _0x5d6591=_0x3778f9,_0x13e6ae={};_0x13e6ae[_0x236852(0x15f)]=_0x5d6591[_0x236852(0x177)],_0x13e6ae['type']=_0x5d6591['sKUmw'];const _0x33ccda={};return _0x33ccda[_0x236852(0x165)]=_0x13e6ae,_0x46e574[_0x236852(0x140)](HELP_HEADER_MESSAGE[_0x236852(0x182)]['gridProfile'])[_0x236852(0x176)](HELP_FOOTER_MESSAGE)['options'](_0x33ccda)[_0x236852(0x186)](_0x5d6591[_0x236852(0x168)])['argv'];},exports[a15_0x12919b(0x17a)]=async function(_0x56d05a){const _0x4020ed=a15_0x12919b,_0x1fda4a={'HfMqG':function(_0x303126){return _0x303126();},'PExCE':_0x4020ed(0x18e),'qCFkZ':function(_0x28d154,_0x3379de,_0x936588,_0x3fcd4f,_0x305115,_0x5515b9,_0x39c3f8){return _0x28d154(_0x3379de,_0x936588,_0x3fcd4f,_0x305115,_0x5515b9,_0x39c3f8);},'ONCgW':_0x4020ed(0x17d),'CVBbw':_0x4020ed(0x16c),'Lhbxc':_0x4020ed(0x162),'llMAZ':function(_0xfd8f7b,_0x40e054){return _0xfd8f7b(_0x40e054);},'gbbsJ':function(_0x571f68,_0x6a3014){return _0x571f68!==_0x6a3014;},'GwUsM':function(_0x4ec447,_0x11f553){return _0x4ec447===_0x11f553;},'YthDx':_0x4020ed(0x14b),'wJmrT':_0x4020ed(0x188),'wnSZO':_0x4020ed(0x18d),'jHrrX':_0x4020ed(0x152),'WZaWR':_0x4020ed(0x148),'ycoLG':function(_0x58b60b,_0x235f03,_0x1dfdad,_0x245336,_0x124893,_0x2d250c,_0x1fd2b8){return _0x58b60b(_0x235f03,_0x1dfdad,_0x245336,_0x124893,_0x2d250c,_0x1fd2b8);},'YyHZQ':'unauthorised','IaoUg':_0x4020ed(0x15d),'CnxcQ':function(_0x424909,_0x19f46c,_0x443740,_0x59e789,_0x4c9e33,_0x87a360,_0x19e62c){return _0x424909(_0x19f46c,_0x443740,_0x59e789,_0x4c9e33,_0x87a360,_0x19e62c);},'VzxVo':_0x4020ed(0x13d)};try{global_registry[_0x4020ed(0x145)]=_0x1fda4a[_0x4020ed(0x17e)](uuidv4);let _0x361dac='https://'+AG_API_URL+_0x4020ed(0x157);_0x56d05a[_0x4020ed(0x151)]&&(_0x361dac=_0x4020ed(0x143)+AG_API_URL+_0x4020ed(0x18c));!fs[_0x4020ed(0x13a)](_0x1fda4a['HfMqG'](getCredentialsPath))&&(console[_0x4020ed(0x153)](_0x1fda4a[_0x4020ed(0x159)]),await _0x1fda4a[_0x4020ed(0x144)](sendInstrumentationEvent,_0x56d05a,_0x1fda4a[_0x4020ed(0x15e)],messageTypes['ERROR'],_0x1fda4a[_0x4020ed(0x149)],null,_0x56d05a),process[_0x4020ed(0x14e)](0x1));_0x1fda4a[_0x4020ed(0x144)](sendInstrumentationEvent,_0x56d05a,_0x1fda4a['ONCgW'],messageTypes['INFO'],null,null,_0x56d05a);const _0x45ab1a=JSON[_0x4020ed(0x18b)](fs['readFileSync'](_0x1fda4a[_0x4020ed(0x17e)](getCredentialsPath))),_0xc9c747={};_0xc9c747[_0x4020ed(0x189)]=_0x45ab1a[_0x4020ed(0x14c)][_0x4020ed(0x189)],_0xc9c747[_0x4020ed(0x147)]=_0x45ab1a[_0x4020ed(0x14c)]['password'];const _0x1acd66={};_0x1acd66[_0x4020ed(0x18a)]=_0x361dac,_0x1acd66[_0x4020ed(0x16a)]=_0x1fda4a[_0x4020ed(0x184)],_0x1acd66['auth']=_0xc9c747;const _0x234572=_0x1acd66;global_registry['bstackUsername']=_0x45ab1a[_0x4020ed(0x14c)][_0x4020ed(0x189)],global_registry[_0x4020ed(0x170)]=_0x45ab1a[_0x4020ed(0x14c)][_0x4020ed(0x147)];const _0x16d4dd=await _0x1fda4a[_0x4020ed(0x13b)](promisifiedRequest,_0x234572);if(_0x1fda4a[_0x4020ed(0x175)](_0x16d4dd,null)&&_0x1fda4a[_0x4020ed(0x175)](_0x16d4dd,undefined)&&_0x1fda4a[_0x4020ed(0x16d)](_0x16d4dd['statusCode'],0xc8)){const _0x70fce6=JSON[_0x4020ed(0x18b)](_0x16d4dd[_0x4020ed(0x154)]);console[_0x4020ed(0x14f)](_0x1fda4a[_0x4020ed(0x180)]);const _0x5e641a=[];_0x5e641a[_0x4020ed(0x16f)]([_0x1fda4a[_0x4020ed(0x142)],_0x1fda4a[_0x4020ed(0x18f)],_0x1fda4a[_0x4020ed(0x190)],_0x1fda4a[_0x4020ed(0x160)]]),_0x70fce6[_0x4020ed(0x179)](_0x280073=>{const _0x1296b7=_0x4020ed;_0x5e641a[_0x1296b7(0x16f)]([_0x280073[_0x1296b7(0x158)],_0x280073[_0x1296b7(0x181)],_0x280073[_0x1296b7(0x152)],_0x280073[_0x1296b7(0x148)]]);}),console[_0x4020ed(0x14f)](_0x1fda4a[_0x4020ed(0x13b)](table,_0x5e641a)),process['exit'](0x0);}_0x1fda4a[_0x4020ed(0x16d)](_0x16d4dd['statusCode'],0x191)&&(console[_0x4020ed(0x153)](_0x4020ed(0x183)),await _0x1fda4a['ycoLG'](sendInstrumentationEvent,_0x56d05a,_0x1fda4a['ONCgW'],messageTypes[_0x4020ed(0x174)],_0x1fda4a[_0x4020ed(0x141)],null,_0x56d05a),process['exit'](0x1)),console[_0x4020ed(0x153)](_0x4020ed(0x16b)+JSON[_0x4020ed(0x171)](_0x16d4dd)),await _0x1fda4a['qCFkZ'](sendInstrumentationEvent,_0x56d05a,_0x1fda4a['ONCgW'],messageTypes[_0x4020ed(0x174)],_0x1fda4a[_0x4020ed(0x13c)],_0x16d4dd,_0x56d05a),process['exit'](0x1);}catch(_0x652764){console[_0x4020ed(0x153)](_0x4020ed(0x178)+_0x652764[_0x4020ed(0x167)]),await _0x1fda4a[_0x4020ed(0x163)](sendInstrumentationEvent,_0x56d05a,_0x1fda4a[_0x4020ed(0x15e)],messageTypes['ERROR'],_0x1fda4a[_0x4020ed(0x17b)],_0x652764,_0x56d05a),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x2d747f=a16_0x25c3;(function(_0x18b464,_0x42d08b){const _0x33058c=a16_0x25c3,_0x45e626=_0x18b464();while(!![]){try{const _0x5f1402=parseInt(_0x33058c(0x1c7))/0x1+parseInt(_0x33058c(0x1f4))/0x2+-parseInt(_0x33058c(0x1c5))/0x3*(-parseInt(_0x33058c(0x1d5))/0x4)+parseInt(_0x33058c(0x1ac))/0x5*(parseInt(_0x33058c(0x1d4))/0x6)+-parseInt(_0x33058c(0x1b9))/0x7*(parseInt(_0x33058c(0x1dc))/0x8)+-parseInt(_0x33058c(0x1cc))/0x9*(parseInt(_0x33058c(0x1e1))/0xa)+-parseInt(_0x33058c(0x1cf))/0xb*(parseInt(_0x33058c(0x1e9))/0xc);if(_0x5f1402===_0x42d08b)break;else _0x45e626['push'](_0x45e626['shift']());}catch(_0x48154d){_0x45e626['push'](_0x45e626['shift']());}}}(a16_0x3ec2,0x81fe8));const fs=require('fs'),util=require(a16_0x2d747f(0x1f2)),request=require(a16_0x2d747f(0x1b3)),{table}=require(a16_0x2d747f(0x1a3)),{v4:uuidv4}=require(a16_0x2d747f(0x1ab)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x2d747f(0x1d3)),{sendInstrumentationEvent}=require(a16_0x2d747f(0x1e6)),promisifiedRequest=util['promisify'](request);exports[a16_0x2d747f(0x1da)]=a16_0x2d747f(0x1ca),exports[a16_0x2d747f(0x1df)]=a16_0x2d747f(0x1cd),exports[a16_0x2d747f(0x1bb)]=function(_0x132245){const _0x1ad00a=a16_0x2d747f,_0x205130={};_0x205130[_0x1ad00a(0x1ee)]=_0x1ad00a(0x19d),_0x205130[_0x1ad00a(0x1f1)]=_0x1ad00a(0x1ea),_0x205130[_0x1ad00a(0x1e0)]=_0x1ad00a(0x1a4);const _0x414c8f=_0x205130,_0x260a8f={};_0x260a8f[_0x1ad00a(0x1b8)]=_0x414c8f[_0x1ad00a(0x1ee)],_0x260a8f[_0x1ad00a(0x1aa)]=_0x414c8f[_0x1ad00a(0x1f1)];const _0x297d9f={};return _0x297d9f[_0x1ad00a(0x1bf)]=_0x260a8f,_0x132245[_0x1ad00a(0x1c3)](HELP_HEADER_MESSAGE[_0x1ad00a(0x1ef)][_0x1ad00a(0x1b4)])[_0x1ad00a(0x1c1)](HELP_FOOTER_MESSAGE)['options'](_0x297d9f)[_0x1ad00a(0x1a4)](_0x414c8f[_0x1ad00a(0x1e0)])[_0x1ad00a(0x1af)];},exports[a16_0x2d747f(0x1a1)]=async function(_0x1ee29a){const _0x4c6205=a16_0x2d747f,_0x472966={'AwAok':function(_0x4e5eae){return _0x4e5eae();},'qysrU':_0x4c6205(0x1b6),'OdPrK':function(_0x306d34,_0x38bb6d,_0x988064,_0x1b505e,_0x53ce40,_0x566d8a,_0x40c456){return _0x306d34(_0x38bb6d,_0x988064,_0x1b505e,_0x53ce40,_0x566d8a,_0x40c456);},'ebZKr':_0x4c6205(0x1b1),'OgndB':_0x4c6205(0x1c2),'XKWDm':'GET','EoSiG':function(_0x5d4610,_0x2d0da0,_0x393ae3,_0x1714b5,_0x3e829f,_0x2cb5e3,_0x14f9dc){return _0x5d4610(_0x2d0da0,_0x393ae3,_0x1714b5,_0x3e829f,_0x2cb5e3,_0x14f9dc);},'UVDFU':function(_0x571adb,_0x10bd53){return _0x571adb(_0x10bd53);},'FnpWK':function(_0x374ada,_0x3ff3c0){return _0x374ada!==_0x3ff3c0;},'oOWhW':function(_0x58d040,_0x1d265b){return _0x58d040!==_0x1d265b;},'gUjGH':function(_0x3deefc,_0x1d6619){return _0x3deefc===_0x1d6619;},'KejBF':_0x4c6205(0x1d7),'KnXAO':'grid-id','Fcnbf':_0x4c6205(0x1b5),'eZSlG':_0x4c6205(0x1e2),'HTUvB':'running','PTGvy':'queued','DihWB':_0x4c6205(0x1e4),'KnHTl':function(_0x4f2cfc,_0x278b17){return _0x4f2cfc(_0x278b17);},'fAkxy':function(_0x3ab669,_0x3ba7a5){return _0x3ab669===_0x3ba7a5;},'NRnle':_0x4c6205(0x1ce),'Vteta':function(_0x35b4e2,_0x171535,_0x529829,_0x470016,_0x4875ff,_0x3e981d,_0x54de08){return _0x35b4e2(_0x171535,_0x529829,_0x470016,_0x4875ff,_0x3e981d,_0x54de08);},'SnUVr':'server-error','XjNpZ':function(_0x4eebbd,_0x4e6d43,_0x1c5226,_0x53b746,_0x5c64d5,_0x10f4d4,_0x159720){return _0x4eebbd(_0x4e6d43,_0x1c5226,_0x53b746,_0x5c64d5,_0x10f4d4,_0x159720);},'CPdAA':_0x4c6205(0x1e7)};try{global_registry[_0x4c6205(0x1ec)]=_0x472966[_0x4c6205(0x1a5)](uuidv4);!fs[_0x4c6205(0x1a6)](_0x472966[_0x4c6205(0x1a5)](getCredentialsPath))&&(console['error'](_0x472966[_0x4c6205(0x1e5)]),await _0x472966['OdPrK'](sendInstrumentationEvent,_0x1ee29a,_0x472966['ebZKr'],messageTypes[_0x4c6205(0x1d6)],_0x472966['OgndB'],null,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1));const _0x17745d=JSON[_0x4c6205(0x1b7)](fs['readFileSync'](_0x472966[_0x4c6205(0x1a5)](getCredentialsPath)));let _0x5cb3b0='https://'+AG_API_URL+'/packages/cli/get-grids';_0x1ee29a['allGrids']&&(_0x5cb3b0='https://'+AG_API_URL+_0x4c6205(0x1bc));const _0x35f8aa={};_0x35f8aa[_0x4c6205(0x1cb)]=_0x17745d[_0x4c6205(0x1be)][_0x4c6205(0x1cb)],_0x35f8aa[_0x4c6205(0x1a2)]=_0x17745d[_0x4c6205(0x1be)]['password'];const _0x5f1e59={};_0x5f1e59['url']=_0x5cb3b0,_0x5f1e59['method']=_0x472966[_0x4c6205(0x1eb)],_0x5f1e59[_0x4c6205(0x1d0)]=_0x35f8aa;const _0x5a0318=_0x5f1e59;global_registry[_0x4c6205(0x1f6)]=_0x17745d[_0x4c6205(0x1be)]['username'],global_registry[_0x4c6205(0x1f3)]=_0x17745d['Browserstack'][_0x4c6205(0x1a2)],_0x472966[_0x4c6205(0x19e)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes[_0x4c6205(0x1c0)],null,null,_0x1ee29a);const _0x4bb523=await _0x472966[_0x4c6205(0x1ae)](promisifiedRequest,_0x5a0318);if(_0x472966[_0x4c6205(0x1c8)](_0x4bb523,null)&&_0x472966[_0x4c6205(0x1ad)](_0x4bb523,undefined)&&_0x472966[_0x4c6205(0x1de)](_0x4bb523['statusCode'],0xc8)){const _0x3d836e=JSON[_0x4c6205(0x1b7)](_0x4bb523[_0x4c6205(0x1c6)]);console[_0x4c6205(0x1f0)](_0x472966[_0x4c6205(0x1ba)]);const _0x44c457=[];_0x44c457[_0x4c6205(0x1b0)]([_0x472966[_0x4c6205(0x1a7)],_0x472966[_0x4c6205(0x1a9)],_0x472966[_0x4c6205(0x1a0)],_0x472966[_0x4c6205(0x1b2)],_0x472966[_0x4c6205(0x1dd)],_0x472966[_0x4c6205(0x19f)]]),_0x3d836e[_0x4c6205(0x1db)](_0x23d8a0=>{const _0x383600=_0x4c6205;_0x44c457[_0x383600(0x1b0)]([_0x23d8a0['id'],_0x23d8a0['name'],_0x23d8a0[_0x383600(0x1e2)],_0x23d8a0['running'],_0x23d8a0['queued'],_0x23d8a0[_0x383600(0x1d8)]]);}),console[_0x4c6205(0x1f0)](_0x472966[_0x4c6205(0x1a8)](table,_0x44c457)),process[_0x4c6205(0x1d2)](0x0);}_0x472966['fAkxy'](_0x4bb523[_0x4c6205(0x1bd)],0x191)&&(console[_0x4c6205(0x1e8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x472966[_0x4c6205(0x19e)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes[_0x4c6205(0x1d6)],_0x472966[_0x4c6205(0x1e3)],null,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1)),console[_0x4c6205(0x1e8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4c6205(0x1c4)](_0x4bb523)),await _0x472966[_0x4c6205(0x1d9)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes[_0x4c6205(0x1d6)],_0x472966[_0x4c6205(0x1ed)],_0x4bb523,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1);}catch(_0x44f91b){console[_0x4c6205(0x1e8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x44f91b['stack']),await _0x472966[_0x4c6205(0x1f5)](sendInstrumentationEvent,_0x1ee29a,_0x472966[_0x4c6205(0x1c9)],messageTypes['ERROR'],_0x472966[_0x4c6205(0x1d1)],_0x44f91b,_0x1ee29a),process[_0x4c6205(0x1d2)](0x1);}};function a16_0x25c3(_0xec689b,_0x20c0a2){const _0x3ec281=a16_0x3ec2();return a16_0x25c3=function(_0x25c368,_0xd9527f){_0x25c368=_0x25c368-0x19d;let _0x229b5e=_0x3ec281[_0x25c368];return _0x229b5e;},a16_0x25c3(_0xec689b,_0x20c0a2);}function a16_0x3ec2(){const _0x366c58=['handler','password','table','help','AwAok','existsSync','KnXAO','KnHTl','Fcnbf','type','uuid','15UuTnwO','oOWhW','UVDFU','argv','push','list-grids-called','HTUvB','request','grid','grid-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','description','28CMyslP','KejBF','builder','/packages/cli/get-all-grids','statusCode','Browserstack','all-grids','INFO','epilogue','init-not-called','usage','stringify','3qXuXIQ','body','920120sTMesa','FnpWK','ebZKr','grids','username','1309311pVWGAu','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','unauthorised','4953883wQmUay','auth','CPdAA','exit','../../utils/utilityMethods','416718BeFYAb','3010628YPIgBi','ERROR','\x0aFound\x20the\x20following\x20grids:\x0a','clusterName','Vteta','command','forEach','1956144ugBUMN','PTGvy','gUjGH','desc','VtJiW','40yHkIsu','status','NRnle','cluster-name','qysrU','../../utils/instrumentationUtils','unknown-error','error','12dLURMN','boolean','XKWDm','requestId','SnUVr','ufXwR','list','log','evBJI','util','bstackAccesskey','1323322PxdXBY','XjNpZ','bstackUsername','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','EoSiG','DihWB','eZSlG'];a16_0x3ec2=function(){return _0x366c58;};return a16_0x3ec2();}
|