browserstack-node-sdk 1.29.3 → 1.30.0
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/customImplements/customCircus.js +1 -0
- package/src/bin/jest/customImplements/customEnvironment.js +1 -0
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -0
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -0
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -0
- package/src/bin/jest/test-observability/helper.js +1 -0
- package/src/bin/jest/test-observability/obsReporter.js +1 -0
- package/src/bin/jest/test-observability/test-details.js +1 -0
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/performance-tester.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
- package/src/bin/jest/customEnvironment.js +0 -1
- package/src/bin/jest/customTestRunnerTemplate.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9_0x5ee73d=a9_0x4150;(function(_0x466ad8,_0x3e52a3){const _0xad1601=a9_0x4150,_0x31fbfe=_0x466ad8();while(!![]){try{const _0x443139=parseInt(_0xad1601(0x1aa))/0x1*(parseInt(_0xad1601(0x1b4))/0x2)+-parseInt(_0xad1601(0x1a7))/0x3+parseInt(_0xad1601(0x1b0))/0x4*(parseInt(_0xad1601(0x1b9))/0x5)+-parseInt(_0xad1601(0x1ab))/0x6*(parseInt(_0xad1601(0x1a6))/0x7)+parseInt(_0xad1601(0x1b5))/0x8*(parseInt(_0xad1601(0x1b6))/0x9)+parseInt(_0xad1601(0x1a1))/0xa*(-parseInt(_0xad1601(0x1b3))/0xb)+-parseInt(_0xad1601(0x1a9))/0xc;if(_0x443139===_0x3e52a3)break;else _0x31fbfe['push'](_0x31fbfe['shift']());}catch(_0x25e878){_0x31fbfe['push'](_0x31fbfe['shift']());}}}(a9_0x5165,0x2e9cc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x5ee73d(0x1a3));function a9_0x4150(_0x4532d1,_0x386d77){const _0x51650e=a9_0x5165();return a9_0x4150=function(_0x41508f,_0x2f9a78){_0x41508f=_0x41508f-0x1a0;let _0x1dec68=_0x51650e[_0x41508f];return _0x1dec68;},a9_0x4150(_0x4532d1,_0x386d77);}function a9_0x5165(){const _0x4000ba=['1229020MGtoGC','usage','strict','1947MQEYsg','18572TMZlyA','10104Gbbznd','2511fAtGdB','XqlUL','create','5WOdVqs','command','recommendCommands','fcjZo','2510foyoSf','desc','../config/constants','create_commands','builder','18466UnAEFO','48774BslCUR','handler','4849428XsbLyj','1EPpMUn','30GrqstC','commandDir','help','Create\x20a\x20new\x20Automation\x20grid.','epilogue'];a9_0x5165=function(){return _0x4000ba;};return a9_0x5165();}exports[a9_0x5ee73d(0x1ba)]=a9_0x5ee73d(0x1b8),exports[a9_0x5ee73d(0x1a2)]=a9_0x5ee73d(0x1ae),exports[a9_0x5ee73d(0x1a5)]=function(_0x57e4b4){const _0x2c34d0=a9_0x5ee73d,_0x32cf30={};_0x32cf30[_0x2c34d0(0x1a0)]=_0x2c34d0(0x1a4),_0x32cf30['XqlUL']=_0x2c34d0(0x1ad);const _0x545b9f=_0x32cf30;return _0x57e4b4[_0x2c34d0(0x1b1)](HELP_HEADER_MESSAGE[_0x2c34d0(0x1b8)])[_0x2c34d0(0x1af)](HELP_FOOTER_MESSAGE)[_0x2c34d0(0x1ac)](_0x545b9f[_0x2c34d0(0x1a0)])['demandCommand']()[_0x2c34d0(0x1bb)]()[_0x2c34d0(0x1b2)]()['help'](_0x545b9f[_0x2c34d0(0x1b7)]);},exports[a9_0x5ee73d(0x1a8)]=function(_0x882757){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x2da769=a10_0xfdbd;(function(_0x4b7bcd,_0x7ab37c){const _0x3d408f=a10_0xfdbd,_0x5bb6d3=_0x4b7bcd();while(!![]){try{const _0x4e343e=parseInt(_0x3d408f(0x2d0))/0x1+-parseInt(_0x3d408f(0x23d))/0x2*(parseInt(_0x3d408f(0x275))/0x3)+parseInt(_0x3d408f(0x2e3))/0x4+-parseInt(_0x3d408f(0x297))/0x5+-parseInt(_0x3d408f(0x205))/0x6+parseInt(_0x3d408f(0x261))/0x7+parseInt(_0x3d408f(0x22f))/0x8;if(_0x4e343e===_0x7ab37c)break;else _0x5bb6d3['push'](_0x5bb6d3['shift']());}catch(_0x228dc8){_0x5bb6d3['push'](_0x5bb6d3['shift']());}}}(a10_0x9995,0x4ae03));function a10_0xfdbd(_0x2d730a,_0x4447e4){const _0x9995a1=a10_0x9995();return a10_0xfdbd=function(_0xfdbd0a,_0x5ad812){_0xfdbd0a=_0xfdbd0a-0x1f3;let _0x30f931=_0x9995a1[_0xfdbd0a];return _0x30f931;},a10_0xfdbd(_0x2d730a,_0x4447e4);}const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require(a10_0x2da769(0x270)),request=require('request'),{v4:uuidv4}=require(a10_0x2da769(0x257)),webSocketUtils=require(a10_0x2da769(0x27b)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x2da769(0x26f)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x2da769(0x20a)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a10_0x2da769(0x2b0)](request);function a10_0x9995(){const _0x44d01b=['Found\x20Subnets:\x20','hBKjd','AHNpd','<UsernamePlaceholder>','setupNewCluster','wgEiE','gridName','Subnets:\x20','PTKSp','uEgbt','fanYB','replace','maxNodes','319914LKubQD','http','deleteCluster','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','options','../../config/constants','8|2|7|1|3|5|0|4|6','kjlJB','ERROR','HyYEX','ZRtKv','method','TwRDg','bstackAccesskey','ABxzY','NJaOj','tFSxw','PzExr','string','dSGej','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hlcTC','toLowerCase','Cluster\x20created\x20successfully','ntseD','s3Bucket','create','body','VvcDe','KKcoV','oFwnw','create-grid-checks-non-200','fXIEi','Spawning\x20grid\x20on\x20to\x20the\x20cluster','private-grid','readNamespacedService','UUHMk','warn','UcIne','usage','mTtew','s3BucketName','1263192OoNRsU','IiFEo','managedBy','JoZJl','TBVqm','CLI\x20run\x20started','bKPrN','bYWah','bKyFr','qYXvF','euJSU','tMBgE','odJPn','cloud-provider','2538rFiUPR','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ZqjeN','ingress-nginx-controller','UfTpz','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','get-grid-url-auth-failed','dFNJR','IzJLa','CLeaN','dPtxz','HGNZN','MYqzo','sendEventToBackend','createNamespace','wXqhZ','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','QMTCT','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.','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','privateGrid','error','stringify','get-grid-url-non-200','uuid','pknjn','RToBg','jLVbz','clusterRegion','Lmsga','cluster-name','grid-name','sLYfC','Grid\x20spawned\x20on\x20the\x20cluster','1184134FmCdvD','oivvq','Namespace\x20created','ingress-nginx','LhMCP','grid','clusterName','cmqzU','getResourceClientId','name','delay','Browserstack','hjdeD','pkhgk','../../cloudproviders/utils','reconnecting-websocket','handler','aOsUk','Found\x20VPC:\x20','desc','849CoQSUF','FrfNP','eXaiP','IbYMr','setupAutoscaler','Create\x20a\x20private/public\x20grid.','../../utils/webSocketUtils','type','command','s3bucket','oeHsk','create-grid-checks-grid-already-exists','split','CLI\x20run\x20finished:\x20','OPGSX','PixRv','qStef','help','message','includes','ooluv','region','uxRtr','UgvrD','existsSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','grid-profile','browserVersion','hCehi','gTIst','\x27\x20grid\x20profile','default','wOzOz','isPrivateGrid','967450oHNHIo','ECKEl','LOG','parse','Cluster\x20','gztST','kRIry','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','mTBOC','pre-spawned-invalid-vpc','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','createOtherResources','info','/packages/cli/create-grid-checks','gridProfileId','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','isVPCPresent','configureIfNotConfigured','Grid\x20profile\x20fetched\x20from\x20backend','lkJuj','prespawned-cluster-args-not-passed','xfJib','emKto','vlbsr','gridProfiles','promisify','isSubnetsValid','auth','/wd/hub','NQPdK','private-ingress-nginx-controller','JkwVM','AqYVp','get-grid-url-null-response','instanceType','bvCFi','Pistf','non-aws-azure-cluster','securityGroups','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','gYUGH','IaRbD','CLI_RUN_FINISHED','phjdu','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','password','https://','iuhyC','true','ugmoe','EIeZM','MsVNu','hHoeA','gHPdS','<PasswordPlaceholder>','JaBLz','oAOBe','540282itVWiV','route53','RJXHZ','aWXUL','ZNWQz','gridProfile','rgqjB','unsmo','minNodes','CjFsZ','mkfDU','ABthL','rhAUU','WQtUo','argv','QuZCQ','hqetP','description','iWDRC','181136GMhJCn','oYikZ','nGzOc','pre-spawned-subnets-not-selected','FUVHl','LtAvK','CJwRR','3|0|1|4|2','cloudProvider','Kotby','subnets','isClusterPresent','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','NvQft','zkeZJ','turboscale-managed-identity-','JEPQV','yIXQh','kNFVe','CLI_RUN_STARTED','LNLcg','defaultGridProfile','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ByJrm','metadata','hubVersion','GlbsI','YtQju','ONYmv','QmRrM','epilogue','statusCode','Spawning\x20the\x20grid\x20','debug','ZAeLo','oWuom','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','aElIB','dtWMk','fetchLocalCreds','WVoXv','create-grid-called','lrbTB','vpc','mXLWg','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','alreadyPresent','\x20in\x20existing\x20cluster\x20\x27','Grid\x20can\x20be\x20accessed\x20at:\x20','XqYjX','annotations','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','connectionTimeout','username','\x20are\x20not\x20present\x20in\x20VPC:\x20','pre-spawned-invalid-subnets','GET','wMrlk','length','exit','user','iMLTX','DqOMi','CVsjo','PopMv','Adding\x20Websocket\x20listeners','rvRPu'];a10_0x9995=function(){return _0x44d01b;};return a10_0x9995();}exports[a10_0x2da769(0x27d)]=a10_0x2da769(0x266),exports[a10_0x2da769(0x274)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x34c851){const _0xdae901=a10_0x2da769,_0x50ddd2={};_0x50ddd2[_0xdae901(0x2ff)]=_0xdae901(0x2c3),_0x50ddd2['aElIB']=_0xdae901(0x217),_0x50ddd2[_0xdae901(0x2f0)]=_0xdae901(0x2f9),_0x50ddd2[_0xdae901(0x25a)]=_0xdae901(0x307),_0x50ddd2[_0xdae901(0x247)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x50ddd2[_0xdae901(0x222)]=_0xdae901(0x252),_0x50ddd2['uEgbt']=_0xdae901(0x27a),_0x50ddd2[_0xdae901(0x278)]=_0xdae901(0x286);const _0x1011da=_0x50ddd2,_0x26e573={};_0x26e573[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x2ff)],_0x26e573['type']=_0x1011da['aElIB'];const _0xeee82e={};_0xeee82e[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x2f0)],_0xeee82e[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x3b624b={};_0x3b624b[_0xdae901(0x2e1)]=_0x1011da['jLVbz'],_0x3b624b[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x5599fd={};_0x5599fd[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x247)],_0x5599fd[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x1a2fbf={};_0x1a2fbf[_0xdae901(0x2e1)]=_0x1011da['KKcoV'],_0x1a2fbf[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x2b47f2={};_0x2b47f2[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x201)],_0x2b47f2[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x16998b={};return _0x16998b['grid-name']=_0x26e573,_0x16998b[_0xdae901(0x28f)]=_0xeee82e,_0x16998b['cluster-name']=_0x3b624b,_0x16998b[_0xdae901(0x23c)]=_0x5599fd,_0x16998b[_0xdae901(0x28a)]=_0x1a2fbf,_0x16998b[_0xdae901(0x227)]=_0x2b47f2,_0x34c851[_0xdae901(0x22c)](HELP_HEADER_MESSAGE[_0xdae901(0x21f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x16998b)[_0xdae901(0x286)](_0x1011da[_0xdae901(0x278)])['argv'];},exports[a10_0x2da769(0x271)]=async function(_0x37087d){const _0x18f372=a10_0x2da769,_0x42e3c7={'JkwVM':_0x18f372(0x2a6),'aWXUL':_0x18f372(0x2c3),'fXIEi':_0x18f372(0x217),'rhAUU':_0x18f372(0x2f9),'wXqhZ':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FUVHl':_0x18f372(0x242),'lygmJ':_0x18f372(0x252),'yCHzY':'Create\x20a\x20private/public\x20grid.','JaBLz':'help','bKyFr':_0x18f372(0x206),'JEPQV':_0x18f372(0x254),'xfJib':'https','hqetP':_0x18f372(0x20b),'MYqzo':_0x18f372(0x22a),'CjFsZ':function(_0x11739b){return _0x11739b();},'ZNWQz':function(_0x1f96a6,_0x57a262){return _0x1f96a6===_0x57a262;},'ntseD':_0x18f372(0x2f1),'kjlJB':_0x18f372(0x316),'pkhgk':function(_0x2f8583,_0x17f313,_0x21d34e,_0x13b848,_0x2c7002,_0xcc9215,_0x36e172){return _0x2f8583(_0x17f313,_0x21d34e,_0x13b848,_0x2c7002,_0xcc9215,_0x36e172);},'ZAeLo':_0x18f372(0x30c),'hCehi':'init-not-called','PopMv':function(_0x2cd15a,_0xda56ce,_0x4aaed8,_0x25963c,_0x2f3efa,_0x37fcbf,_0x563db9){return _0x2cd15a(_0xda56ce,_0x4aaed8,_0x25963c,_0x2f3efa,_0x37fcbf,_0x563db9);},'rvRPu':function(_0x16eb6b){return _0x16eb6b();},'rgqjB':_0x18f372(0x1fb),'Lmsga':_0x18f372(0x2cd),'WVoXv':_0x18f372(0x1f6),'jyfSO':function(_0x1d474d,_0x2f0467){return _0x1d474d!==_0x2f0467;},'oWuom':_0x18f372(0x27f),'LhMCP':_0x18f372(0x314),'iWDRC':_0x18f372(0x309),'KSdcq':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','QMTCT':function(_0x4a4338,_0x2a38e6,_0x341638,_0x5ec90e,_0x116ca9,_0x141309,_0x2c77ad,_0x459df9){return _0x4a4338(_0x2a38e6,_0x341638,_0x5ec90e,_0x116ca9,_0x141309,_0x2c77ad,_0x459df9);},'IaRbD':_0x18f372(0x2ab),'LNLcg':function(_0x50adad,_0xddbd48){return _0x50adad===_0xddbd48;},'AHNpd':_0x18f372(0x2e8),'dSGej':_0x18f372(0x208),'gztST':_0x18f372(0x2bc),'TwRDg':function(_0x5da0ba,_0x520181){return _0x5da0ba===_0x520181;},'oFwnw':_0x18f372(0x2c7),'NJaOj':function(_0x239be7,_0x48dc2e){return _0x239be7===_0x48dc2e;},'mXLWg':_0x18f372(0x2ad),'RJXHZ':'WKHFL','ABxzY':_0x18f372(0x31b),'QhnwR':function(_0x382aed,_0x278b84){return _0x382aed(_0x278b84);},'lrbTB':function(_0x257821,_0xf6110a){return _0x257821===_0xf6110a;},'LVwrm':_0x18f372(0x268),'ZRtKv':_0x18f372(0x2bb),'iuhyC':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','qStef':function(_0xc737c8,_0x5555cf,_0x223584,_0x4fd568,_0x1a8d36,_0x592288,_0x18dade,_0x9e3cb9){return _0xc737c8(_0x5555cf,_0x223584,_0x4fd568,_0x1a8d36,_0x592288,_0x18dade,_0x9e3cb9);},'tCHhu':'create-grid-checks-null-response','CLeaN':function(_0x38add5,_0x129e51){return _0x38add5===_0x129e51;},'LmnCh':_0x18f372(0x238),'wMrlk':'aKSIf','gTIst':_0x18f372(0x2be),'euJSU':'create-grid-checks-auth-failed','bKPrN':_0x18f372(0x2b7),'ECKEl':_0x18f372(0x1f4),'IzJLa':function(_0x48bb54,_0x53c0cf,_0x4566bd,_0x2f34c5,_0xaf6315,_0x24e83d,_0x5ab5c3,_0x2b1204){return _0x48bb54(_0x53c0cf,_0x4566bd,_0x2f34c5,_0xaf6315,_0x24e83d,_0x5ab5c3,_0x2b1204);},'unsmo':_0x18f372(0x224),'hjdeD':_0x18f372(0x2a9),'EIeZM':function(_0x2403fe,_0x312606){return _0x2403fe!==_0x312606;},'iMLTX':_0x18f372(0x29d),'QmRrM':_0x18f372(0x2a1),'YPFzk':_0x18f372(0x280),'sLYfC':_0x18f372(0x202),'oAOBe':function(_0x10c7a2,_0x3c35f5){return _0x10c7a2===_0x3c35f5;},'mTtew':_0x18f372(0x277),'PixRv':'xZMWt','Kotby':function(_0x53a3bc,_0x320943){return _0x53a3bc===_0x320943;},'ZqjeN':'WmkPB','IiFEo':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','OPGSX':function(_0x2af495,_0x88744e,_0x41cb7d,_0xd11806,_0x58b6f3,_0x44dfc2,_0x453417,_0x2c83ee){return _0x2af495(_0x88744e,_0x41cb7d,_0xd11806,_0x58b6f3,_0x44dfc2,_0x453417,_0x2c83ee);},'aOsUk':'create-grid-checks-invalid-profile','bvCFi':function(_0x143c26,_0x49e284){return _0x143c26===_0x49e284;},'uxRtr':function(_0x177c05,_0x1e6e2b){return _0x177c05!==_0x1e6e2b;},'tMBgE':_0x18f372(0x21a),'UfTpz':'YsNbn','pknjn':_0x18f372(0x221),'mXZzf':'WSDty','XXnAq':function(_0x50842d,_0x45e5fb,_0x171bff,_0x2691e6,_0xb0bb82,_0x4ead81,_0x46720c,_0x26fe4d,_0xcc0944,_0x5a731a,_0x3a1c58,_0x2eab5c){return _0x50842d(_0x45e5fb,_0x171bff,_0x2691e6,_0xb0bb82,_0x4ead81,_0x46720c,_0x26fe4d,_0xcc0944,_0x5a731a,_0x3a1c58,_0x2eab5c);},'ByJrm':'6|5|7|3|0|4|1|8|2','VGVAC':function(_0x7ada25,_0x5d68d7,_0x546d52,_0x5b16fe,_0x4d8c51,_0x233e15){return _0x7ada25(_0x5d68d7,_0x546d52,_0x5b16fe,_0x4d8c51,_0x233e15);},'TBVqm':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','mkfDU':function(_0x3e5370,_0x12f519){return _0x3e5370===_0x12f519;},'oYikZ':function(_0x257b3d,_0x1c7d79,_0x5650db,_0x25d5f7){return _0x257b3d(_0x1c7d79,_0x5650db,_0x25d5f7);},'ooluv':function(_0x3aa164){return _0x3aa164();},'PTKSp':_0x18f372(0x2ef),'CUXCN':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WQtUo':_0x18f372(0x219),'phjdu':function(_0x3dcfcf,_0x1e88d0){return _0x3dcfcf!=_0x1e88d0;},'oivvq':function(_0x41d0ac,_0x1038e7){return _0x41d0ac!=_0x1038e7;},'FrfNP':function(_0x1a4c1c,_0x16261b){return _0x1a4c1c!==_0x16261b;},'ugmoe':function(_0x39c944,_0x4bd80a){return _0x39c944>_0x4bd80a;},'RToBg':function(_0x45a5b6,_0x202c77){return _0x45a5b6===_0x202c77;},'PzExr':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','UUHMk':function(_0x2a1704,_0x3c6d73,_0x590d1b,_0x519c04,_0x11646b,_0x4c9e11,_0x427a13,_0x35536b){return _0x2a1704(_0x3c6d73,_0x590d1b,_0x519c04,_0x11646b,_0x4c9e11,_0x427a13,_0x35536b);},'BtrBE':_0x18f372(0x2e6),'Gjkyy':_0x18f372(0x251),'JoZJl':_0x18f372(0x2a0),'mTBOC':function(_0x27a491,_0x2d3812){return _0x27a491===_0x2d3812;},'MsVNu':function(_0x1b1192,_0x532a17,_0x7fb8c0,_0x56243b,_0x4e35b1,_0xa8d1aa,_0x16b094,_0xb8aa30){return _0x1b1192(_0x532a17,_0x7fb8c0,_0x56243b,_0x4e35b1,_0xa8d1aa,_0x16b094,_0xb8aa30);},'HGNZN':_0x18f372(0x31a),'hBKjd':_0x18f372(0x2ea),'bYWah':_0x18f372(0x24f),'vYGjS':_0x18f372(0x21c),'NQPdK':function(_0x2d7799,_0x5f3a3d){return _0x2d7799==_0x5f3a3d;},'HyYEX':function(_0x32014e,_0x1d4633){return _0x32014e(_0x1d4633);},'vlbsr':'Creating\x20namespace','lkJuj':_0x18f372(0x294),'gYUGH':'Browserstack','LRhYL':'Namespace\x20Created','DqOMi':_0x18f372(0x263),'tFSxw':_0x18f372(0x226),'UcIne':'Spawning\x20Grid\x20on\x20the\x20Cluster','YtQju':function(_0x1de0bf,_0x2eba79){return _0x1de0bf===_0x2eba79;},'yIXQh':function(_0x47f53c,_0x3d825c,_0x17cb36,_0x27f004,_0x5e84f5,_0x2fa0b1,_0x29ff54,_0x310011,_0xeaf9bc,_0x843d67,_0xd8659){return _0x47f53c(_0x3d825c,_0x17cb36,_0x27f004,_0x5e84f5,_0x2fa0b1,_0x29ff54,_0x310011,_0xeaf9bc,_0x843d67,_0xd8659);},'NZYEA':_0x18f372(0x260),'odJPn':_0x18f372(0x29e),'CJwRR':function(_0x3a8a02,_0x3d5fe3,_0x106420){return _0x3a8a02(_0x3d5fe3,_0x106420);},'QuZCQ':_0x18f372(0x2b5),'wgEiE':_0x18f372(0x240),'UgvrD':_0x18f372(0x264),'gHPdS':function(_0x73d157,_0x1430d3){return _0x73d157(_0x1430d3);},'wOzOz':function(_0x521125,_0x3a4a96){return _0x521125==_0x3a4a96;},'dFNJR':_0x18f372(0x24d),'hHoeA':_0x18f372(0x2b8),'ANlsi':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','nGzOc':_0x18f372(0x243),'kNFVe':_0x18f372(0x256),'ABthL':function(_0x455a36,_0x30a478,_0x353f65,_0x5c28ed,_0x344131,_0x21010d){return _0x455a36(_0x30a478,_0x353f65,_0x5c28ed,_0x344131,_0x21010d);},'GlbsI':'grid-spawning-failed'};let _0x4ff1a1=![],_0x421223,_0x9e13f3,_0x4a6bb7,_0x35bbe6,_0x237481,_0x4af4c5,_0x298f12,_0x376c44,_0x2363e4,_0x1ea753,_0x1bf1f9,_0x55d4cf,_0xc1126a=0x1,_0x2333db=0xe;try{global_registry['requestId']=_0x42e3c7[_0x18f372(0x2d9)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x18f372(0x28d)](_0x42e3c7[_0x18f372(0x2d9)](getCredentialsPath))&&(_0x42e3c7['ZNWQz'](_0x42e3c7[_0x18f372(0x21d)],_0x42e3c7[_0x18f372(0x21d)])?(console['error'](_0x42e3c7[_0x18f372(0x20c)]),await _0x42e3c7[_0x18f372(0x26e)](sendInstrumentationEvent,_0x37087d,_0x42e3c7['ZAeLo'],messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x291)],null,_0x37087d),process[_0x18f372(0x31e)](0x1)):(_0x5b6f79[_0x18f372(0x254)](_0x42e3c7[_0x18f372(0x2b6)]),_0x30819c['exit'](0x1)));await _0x42e3c7[_0x18f372(0x1f5)](sendInstrumentationEvent,_0x37087d,_0x42e3c7[_0x18f372(0x305)],messageTypes['INFO'],null,null,_0x37087d);const _0x326126=JSON['parse'](fs['readFileSync'](_0x42e3c7[_0x18f372(0x1f7)](getCredentialsPath)));global_registry['bstackUsername']=_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)],global_registry[_0x18f372(0x212)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)];const _0x150b53=WS_ENDPOINT[_0x18f372(0x203)](_0x42e3c7[_0x18f372(0x2d6)],_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)])['replace'](_0x42e3c7[_0x18f372(0x25c)],_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)]),_0x1090f9={};_0x1090f9['WebSocket']=ws,_0x1090f9[_0x18f372(0x317)]=0x36ee80,_0x1ea753=new ReconnectingWebSocket(_0x150b53,[],_0x1090f9),logger['debug'](_0x42e3c7[_0x18f372(0x30b)]),webSocketUtils['addListeners'](_0x1ea753,_0x37087d[_0x18f372(0x31f)],_0x37087d[_0x18f372(0x2c4)]);let _0x2ac20e=DEFAULT_GRID_NAME;if(_0x37087d[_0x18f372(0x267)]||_0x37087d[_0x18f372(0x2eb)]||_0x37087d['region']){if(_0x42e3c7['jyfSO'](_0x42e3c7[_0x18f372(0x306)],_0x42e3c7[_0x18f372(0x265)])){!(_0x37087d['clusterName']&&_0x37087d[_0x18f372(0x2eb)]&&_0x37087d['region'])&&(_0x42e3c7[_0x18f372(0x2d4)](_0x42e3c7['iWDRC'],_0x42e3c7[_0x18f372(0x2e2)])?(_0x421223=_0x42e3c7['KSdcq'],await _0x42e3c7['QMTCT'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2c0)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process['exit'](0x1)):_0x4967e2[_0x18f372(0x296)]=!![]);if(![AWS,AZURE,GCP][_0x18f372(0x288)](_0x37087d[_0x18f372(0x2eb)][_0x18f372(0x21b)]())){if(_0x42e3c7[_0x18f372(0x2f7)](_0x42e3c7[_0x18f372(0x1fa)],_0x42e3c7[_0x18f372(0x1fa)]))_0x421223=_0x42e3c7[_0x18f372(0x218)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x29c)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1);else throw _0x1b4d87;}_0x37087d['privateGrid']&&_0x42e3c7[_0x18f372(0x211)](_0x37087d[_0x18f372(0x253)][_0x18f372(0x21b)](),_0x42e3c7[_0x18f372(0x223)])&&(_0x42e3c7[_0x18f372(0x214)](_0x42e3c7['mXLWg'],_0x42e3c7[_0x18f372(0x30f)])?global_registry[_0x18f372(0x296)]=!![]:_0x3a5f1d['cloudProvider']={}),_0x4ff1a1=!![],_0x4a6bb7=_0x37087d[_0x18f372(0x267)],_0x9e13f3=_0x37087d[_0x18f372(0x2eb)][_0x18f372(0x21b)](),_0x35bbe6=_0x37087d[_0x18f372(0x28a)];}else{const _0x557e03={};_0x557e03[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x2d3)],_0x557e03[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x26d191={};_0x26d191['description']=_0x42e3c7[_0x18f372(0x2dc)],_0x26d191[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x1fd032={};_0x1fd032[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x24c)],_0x1fd032[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x323a42={};_0x323a42[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x2e7)],_0x323a42[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x17ebef={};_0x17ebef[_0x18f372(0x2e1)]=_0x42e3c7['lygmJ'],_0x17ebef[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x43e070={};_0x43e070[_0x18f372(0x2e1)]=_0x42e3c7['yCHzY'],_0x43e070[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x4ddbee={};return _0x4ddbee[_0x18f372(0x25e)]=_0x557e03,_0x4ddbee[_0x18f372(0x28f)]=_0x26d191,_0x4ddbee[_0x18f372(0x25d)]=_0x1fd032,_0x4ddbee[_0x18f372(0x23c)]=_0x323a42,_0x4ddbee[_0x18f372(0x28a)]=_0x17ebef,_0x4ddbee[_0x18f372(0x227)]=_0x43e070,_0x37fa54[_0x18f372(0x22c)](_0x25fa5c[_0x18f372(0x21f)])[_0x18f372(0x301)](_0x488080)[_0x18f372(0x209)](_0x4ddbee)[_0x18f372(0x286)](_0x42e3c7[_0x18f372(0x2ce)])[_0x18f372(0x2de)];}}_0x37087d[_0x18f372(0x1fe)]&&(_0x42e3c7['LNLcg'](_0x42e3c7['RJXHZ'],_0x42e3c7[_0x18f372(0x2d2)])?_0x2ac20e=_0x37087d['gridName']:_0x533247=_0x42e3c7[_0x18f372(0x237)]);global_registry[_0x18f372(0x1fe)]=_0x2ac20e;const _0x154665={};_0x154665[_0x18f372(0x318)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)],_0x154665[_0x18f372(0x2c4)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)];const _0x10819c={};_0x10819c[_0x18f372(0x210)]=_0x42e3c7[_0x18f372(0x213)],_0x10819c[_0x18f372(0x2b2)]=_0x154665;const _0x209fce=_0x10819c,_0x44ee0b=_0x18f372(0x2c5)+AG_API_URL+_0x18f372(0x2a4),_0x4358c2={};_0x4358c2[_0x18f372(0x1fe)]=_0x2ac20e;const _0x221d92={'url':_0x44ee0b,'qs':_0x4358c2,..._0x209fce},_0x9f5b9b=_0x221d92,_0x305db5=await _0x42e3c7['QhnwR'](promisifiedRequest,_0x9f5b9b);if(_0x42e3c7[_0x18f372(0x211)](_0x305db5,null)||_0x42e3c7[_0x18f372(0x30d)](_0x305db5,undefined)){if(_0x42e3c7['jyfSO'](_0x42e3c7['LVwrm'],_0x42e3c7[_0x18f372(0x20f)]))_0x421223=_0x42e3c7[_0x18f372(0x2c6)],await _0x42e3c7[_0x18f372(0x285)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['tCHhu'],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process['exit'](0x1);else{const _0x5c6b05={};_0x5c6b05['type']=_0x1b8853[_0x18f372(0x299)],_0x5c6b05[_0x18f372(0x287)]=_0x2e1c77,_0xc5c4a3[_0x18f372(0x24a)](_0x3cb9f8,_0x5c6b05,_0x42e3c7['JEPQV'],!![]);}}_0x42e3c7[_0x18f372(0x246)](_0x305db5[_0x18f372(0x302)],0x191)&&(_0x42e3c7['LNLcg'](_0x42e3c7['LmnCh'],_0x42e3c7[_0x18f372(0x31c)])?(_0x276194=_0x12e61e[_0x18f372(0x2d1)],_0x3969af=_0x42e3c7[_0x18f372(0x2ac)]):(_0x421223=_0x42e3c7[_0x18f372(0x292)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x239)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1)));_0x42e3c7['jyfSO'](_0x305db5[_0x18f372(0x302)],0xc8)&&(_0x42e3c7[_0x18f372(0x2d4)](_0x42e3c7[_0x18f372(0x235)],_0x42e3c7[_0x18f372(0x298)])?_0x42f62a=_0x387386[_0x18f372(0x1fe)]:(_0x421223=_0x18f372(0x28e)+JSON[_0x18f372(0x255)](_0x305db5),await _0x42e3c7[_0x18f372(0x245)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2d7)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)));const _0x4ddf14=JSON[_0x18f372(0x29a)](_0x305db5[_0x18f372(0x220)]),_0x245143={};_0x245143[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x2f6)],_0x245143['message']=_0x18f372(0x234),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x245143);const _0x5e1e56={};_0x5e1e56[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x5e1e56['message']=_0x42e3c7[_0x18f372(0x26d)],webSocketUtils['sendEventToBackend'](_0x1ea753,_0x5e1e56);_0x4ddf14[_0x18f372(0x311)]&&(_0x42e3c7[_0x18f372(0x2c9)](_0x42e3c7['iMLTX'],_0x42e3c7[_0x18f372(0x320)])?_0x4fdf57['info']('Found\x20VPC:\x20'+_0x4ef534+'\x20'):(_0x421223=_0x42e3c7[_0x18f372(0x300)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['YPFzk'],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)));const _0x155495=_0x4ddf14[_0x18f372(0x2af)];let _0x3769e9=_0x155495[_0x4ddf14[_0x18f372(0x2f8)]];_0x37087d[_0x18f372(0x2d5)]&&(_0x42e3c7[_0x18f372(0x30d)](_0x42e3c7[_0x18f372(0x25f)],_0x42e3c7[_0x18f372(0x25f)])?_0x3769e9=_0x155495[_0x37087d[_0x18f372(0x2d5)]]:_0x340132[_0x18f372(0x296)]=!![]);if(_0x42e3c7['oAOBe'](_0x4ff1a1,![])){if(_0x42e3c7[_0x18f372(0x211)](_0x42e3c7[_0x18f372(0x22d)],_0x42e3c7[_0x18f372(0x284)])){const _0x5c8bb2=_0x42e3c7[_0x18f372(0x2e0)][_0x18f372(0x281)]('|');let _0x1b2aa0=0x0;while(!![]){switch(_0x5c8bb2[_0x1b2aa0++]){case'0':_0x3d449e[_0x18f372(0x267)]=_0xf60626;continue;case'1':const _0x136460={};_0x136460[_0x18f372(0x27c)]=_0x5c797f['LOG'],_0x136460['message']=_0x467f50,_0x128476[_0x18f372(0x24a)](_0x4e02ef,_0x136460);continue;case'2':_0x2fae54=_0x18f372(0x303)+_0x2cc265+_0x18f372(0x312)+_0x1d5fa2+'\x27';continue;case'3':_0x391b3b[_0x18f372(0x2eb)]=_0x52ef90;continue;case'4':_0x5f356e[_0x18f372(0x2fc)]=_0x48e578[_0x18f372(0x2fc)];continue;case'5':_0x3ccda5[_0x18f372(0x25b)]=_0x1f826b;continue;case'6':_0x3f0e07['browserVersion']=_0x3c8101[_0x18f372(0x290)];continue;case'7':_0x4a08f2[_0x18f372(0x2a3)](_0x2798fa);continue;case'8':const _0x44627d={};_0x44627d[_0x18f372(0x27c)]=_0x5f1419[_0x18f372(0x2f6)],_0x44627d[_0x18f372(0x287)]=_0x18f372(0x234),_0x3734e5['sendEventToBackend'](_0x48b071,_0x44627d);continue;}break;}}else{_0x42e3c7[_0x18f372(0x2ec)](_0x3769e9,undefined)&&(_0x42e3c7[_0x18f372(0x246)](_0x42e3c7[_0x18f372(0x23f)],_0x42e3c7[_0x18f372(0x23f)])?(_0x421223=_0x42e3c7[_0x18f372(0x230)],await _0x42e3c7[_0x18f372(0x283)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x272)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1)):_0x33f88b=_0x48dbd6[_0x258a1e[_0x18f372(0x2d5)]]);global_registry[_0x18f372(0x2a5)]=_0x3769e9['id'];(_0x42e3c7[_0x18f372(0x2ba)](_0x9e13f3,AZURE)||_0x42e3c7[_0x18f372(0x2cf)](_0x3769e9?.['cloudProvider'],AZURE))&&(_0x42e3c7['uxRtr'](_0x42e3c7[_0x18f372(0x23a)],_0x42e3c7[_0x18f372(0x241)])?(console[_0x18f372(0x254)](_0x42e3c7[_0x18f372(0x2b6)]),process['exit'](0x1)):_0x361051[_0x18f372(0x2a3)](_0x18f372(0x1f8)+_0x3e8c3e[_0x18f372(0x255)](_0x121a23)+'\x20'));_0x421223='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x2ac20e+'\x20using\x20\x27'+_0x3769e9[_0x18f372(0x26a)]+_0x18f372(0x293),logger[_0x18f372(0x2a3)](_0x421223);const _0x583d41={};_0x583d41[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x583d41[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x583d41),_0x9e13f3=_0x3769e9[_0x18f372(0x2eb)],_0x4a6bb7=_0x3769e9['clusterName'],_0x35bbe6=_0x3769e9[_0x18f372(0x28a)],_0x237481=_0x3769e9['concurrency'],_0x4af4c5=_0x3769e9[_0x18f372(0x2b9)],_0x298f12=_0x3769e9[_0x18f372(0x30e)],securityGroups=_0x3769e9[_0x18f372(0x2bd)],subnets=_0x3769e9[_0x18f372(0x2ed)],_0x376c44=_0x3769e9[_0x18f372(0x27e)],_0xc1126a=_0x3769e9[_0x18f372(0x2d8)],_0x2333db=_0x3769e9[_0x18f372(0x204)],_0x1bf1f9=_0x4ddf14[_0x18f372(0x2fc)],_0x55d4cf=_0x4ddf14[_0x18f372(0x290)];if(_0x42e3c7[_0x18f372(0x2c9)](_0x3769e9[_0x18f372(0x253)],undefined)&&_0x3769e9[_0x18f372(0x253)]){if(_0x42e3c7[_0x18f372(0x30d)](_0x42e3c7[_0x18f372(0x258)],_0x42e3c7['mXZzf'])){const _0x4fdf12={};_0x4fdf12[_0x18f372(0x27c)]=_0x19cf1d[_0x18f372(0x299)],_0x4fdf12[_0x18f372(0x287)]=_0x18f372(0x29b)+_0x485754+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0xc270f0[_0x18f372(0x24a)](_0x2adff9,_0x4fdf12,_0x42e3c7[_0x18f372(0x249)]),_0x51181c[_0x18f372(0x2a3)](_0x18f372(0x29b)+_0x428a27+_0x18f372(0x250)),_0x4cb7d3=!![];}else global_registry[_0x18f372(0x296)]=!![];}_0x42e3c7['XXnAq'](updateGlobalRegistryWithConfig,_0x9e13f3,_0x4a6bb7,_0x35bbe6,_0x237481,_0x4af4c5,_0x376c44,_0x3769e9,_0x1bf1f9,_0x55d4cf,_0xc1126a,_0x2333db);}}else{const _0xfadce0=_0x42e3c7[_0x18f372(0x2fa)][_0x18f372(0x281)]('|');let _0x1ea0eb=0x0;while(!![]){switch(_0xfadce0[_0x1ea0eb++]){case'0':global_registry['cloudProvider']=_0x9e13f3;continue;case'1':global_registry[_0x18f372(0x267)]=_0x4a6bb7;continue;case'2':global_registry[_0x18f372(0x290)]=_0x4ddf14['browserVersion'];continue;case'3':const _0x56499f={};_0x56499f[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x56499f[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x56499f);continue;case'4':global_registry[_0x18f372(0x25b)]=_0x35bbe6;continue;case'5':_0x421223=_0x18f372(0x303)+_0x2ac20e+_0x18f372(0x312)+_0x4a6bb7+'\x27';continue;case'6':const _0x5c3a99={};_0x5c3a99['type']=WS_EVENTS[_0x18f372(0x2f6)],_0x5c3a99[_0x18f372(0x287)]=_0x18f372(0x234),webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x5c3a99);continue;case'7':logger[_0x18f372(0x2a3)](_0x421223);continue;case'8':global_registry[_0x18f372(0x2fc)]=_0x4ddf14[_0x18f372(0x2fc)];continue;}break;}}const _0x4d506c=_0x42e3c7['VGVAC'](getCloudProviderObject,_0x9e13f3,_0x4a6bb7,_0x2ac20e,_0x1ea753,webSocketUtils),_0x301050=_0x326126[_0x18f372(0x2eb)]||{};if(_0x42e3c7['oAOBe'](_0x301050[_0x9e13f3],undefined)){logger['info'](_0x42e3c7[_0x18f372(0x233)]);_0x42e3c7['mkfDU'](_0x326126[_0x18f372(0x2eb)],undefined)&&(_0x326126[_0x18f372(0x2eb)]={});_0x326126[_0x18f372(0x2eb)][_0x9e13f3]={};const _0x327b0b=await _0x42e3c7[_0x18f372(0x2e4)](inputCloudProviderKeys,_0x9e13f3,_0x326126,_0x4d506c);fs['writeFileSync'](_0x42e3c7[_0x18f372(0x289)](getCredentialsPath),JSON['stringify'](_0x327b0b)),logger[_0x18f372(0x304)](_0x42e3c7[_0x18f372(0x200)]);}else{_0x421223=_0x42e3c7['CUXCN'];const _0x4d92b9={};_0x4d92b9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x4d92b9[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x4d92b9),logger[_0x18f372(0x2a3)](_0x421223),await _0x4d506c[_0x18f372(0x30a)](_0x301050);}_0x4d506c[_0x18f372(0x2a8)]();let _0x29375d;if(_0x42e3c7[_0x18f372(0x2da)](_0x4ff1a1,![])){_0x421223='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x35bbe6+').';const _0x5aded7={};_0x5aded7[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x5aded7[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x5aded7),logger[_0x18f372(0x2a3)](_0x421223);const _0xd5e36=await _0x4d506c[_0x18f372(0x2ee)]();if(_0xd5e36){const _0x165342={};_0x165342[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x165342[_0x18f372(0x287)]='Cluster\x20'+_0x4a6bb7+_0x18f372(0x250),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x165342,_0x42e3c7['MYqzo']),logger['info']('Cluster\x20'+_0x4a6bb7+_0x18f372(0x250)),_0x4ff1a1=!![];}else{const _0x1e1fd3={};_0x1e1fd3[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1e1fd3[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x2dd)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1e1fd3),logger[_0x18f372(0x2a3)](_0x42e3c7['WQtUo']);const _0x55db81=_0x42e3c7[_0x18f372(0x2c2)](_0x298f12,null)&&_0x42e3c7['EIeZM'](_0x298f12,undefined),_0x2870bd=_0x42e3c7[_0x18f372(0x262)](subnets,null)&&_0x42e3c7[_0x18f372(0x276)](subnets,undefined)&&_0x42e3c7[_0x18f372(0x2c8)](subnets[_0x18f372(0x31d)],0x0);if(_0x55db81){_0x42e3c7[_0x18f372(0x259)](_0x2870bd,![])&&(_0x421223=_0x42e3c7[_0x18f372(0x216)],await _0x42e3c7[_0x18f372(0x229)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['BtrBE'],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));const _0x52fb85=await _0x4d506c[_0x18f372(0x2a7)](_0x298f12);_0x42e3c7[_0x18f372(0x2d4)](_0x52fb85,![])?(_0x421223=_0x42e3c7['Gjkyy'],await _0x42e3c7['qStef'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x232)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)):logger['info'](_0x18f372(0x273)+_0x298f12+'\x20');const _0x336c80=await _0x4d506c[_0x18f372(0x2b1)](subnets,_0x298f12);_0x42e3c7[_0x18f372(0x29f)](_0x336c80[0x0],![])?(_0x421223=_0x18f372(0x1ff)+_0x336c80[0x1]+_0x18f372(0x319)+_0x298f12+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x42e3c7[_0x18f372(0x2ca)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x248)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)):logger[_0x18f372(0x2a3)](_0x18f372(0x1f8)+JSON[_0x18f372(0x255)](subnets)+'\x20'),await _0x4d506c['setupNewCluster'](_0x298f12,subnets);}else{const _0xe7d156=_0x42e3c7[_0x18f372(0x1f9)]['split']('|');let _0x204fc3=0x0;while(!![]){switch(_0xe7d156[_0x204fc3++]){case'0':logger[_0x18f372(0x2a3)](_0x42e3c7[_0x18f372(0x236)]);continue;case'1':await _0x4d506c[_0x18f372(0x1fc)]();continue;case'2':logger[_0x18f372(0x2a3)](_0x42e3c7['vYGjS']);continue;case'3':const _0x55eec4={};_0x55eec4[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x55eec4[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x236)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x55eec4);continue;case'4':const _0x15c1e4={};_0x15c1e4[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x15c1e4[_0x18f372(0x287)]=_0x18f372(0x21c),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x15c1e4);continue;}break;}}}}_0x4ff1a1&&_0x42e3c7[_0x18f372(0x2ba)](_0x9e13f3,AZURE)&&(global_registry[_0x18f372(0x21e)]=_0x4ddf14[_0x18f372(0x22e)],await _0x4d506c['updatePreSpawnedCluster'](),await _0x4d506c[_0x18f372(0x2a2)]());const [_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x36fa73,_0x1c98c8]=await _0x42e3c7['QhnwR'](createK8sClient,_0x4d506c);_0x42e3c7[_0x18f372(0x2d4)](_0x4ff1a1,![])&&_0x42e3c7[_0x18f372(0x2b4)](_0x9e13f3,AWS)&&(_0x29375d=await _0x4d506c[_0x18f372(0x279)](_0x4fb17a,_0x37087d));try{_0x2363e4=_0x42e3c7[_0x18f372(0x20e)](kebabCase,_0x2ac20e),logger['info'](_0x42e3c7[_0x18f372(0x2ae)]);const _0x432d46={};_0x432d46['type']=WS_EVENTS[_0x18f372(0x299)],_0x432d46[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x2ae)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x432d46);if(_0x42e3c7[_0x18f372(0x28b)](_0x2363e4,_0x42e3c7[_0x18f372(0x2aa)])){const _0x43ba58={};_0x43ba58['createdBy']=_0x42e3c7[_0x18f372(0x2bf)],_0x43ba58[_0x18f372(0x231)]=_0x42e3c7[_0x18f372(0x2bf)];const _0x1825c1={};_0x1825c1['name']=_0x2363e4,_0x1825c1[_0x18f372(0x315)]=_0x43ba58;const _0x251867={};_0x251867[_0x18f372(0x2fb)]=_0x1825c1;let _0x315e05=_0x251867;await _0x4fb17a[_0x18f372(0x24b)](_0x315e05),logger['info'](_0x42e3c7['LRhYL']);}const _0x19fbdb={};_0x19fbdb['type']=WS_EVENTS[_0x18f372(0x299)],_0x19fbdb[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x1f3)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x19fbdb);const _0x432db9={};_0x432db9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x432db9[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x215)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x432db9),logger[_0x18f372(0x2a3)](_0x42e3c7[_0x18f372(0x22b)]);let _0x52ce70={};_0x42e3c7['YtQju'](_0x9e13f3,AZURE)&&(_0x52ce70={'clientId':await _0x4d506c[_0x18f372(0x269)](_0x18f372(0x2f2)+_0x4a6bb7)});await _0x42e3c7[_0x18f372(0x2f4)](addGridComponents,_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x2363e4,_0x4a6bb7,_0x29375d,_0x36fa73,_0x1c98c8,_0x52ce70),_0x421223=_0x42e3c7['NZYEA'],logger[_0x18f372(0x2a3)](_0x421223);const _0x1abeef={};_0x1abeef[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1abeef[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1abeef),_0x421223=_0x42e3c7[_0x18f372(0x23b)],logger[_0x18f372(0x2a3)](_0x421223);const _0x1a7df9={};_0x1a7df9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1a7df9[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1a7df9),await webSocketUtils[_0x18f372(0x26b)](0xea60);const _0x1c5275=await _0x42e3c7[_0x18f372(0x2e9)](getNamespaceUID,_0x4fb17a,_0x2363e4);let _0x5aa659=global_registry[_0x18f372(0x296)]?_0x42e3c7[_0x18f372(0x2df)]:_0x42e3c7[_0x18f372(0x1fd)],_0x5455ea=await _0x4fb17a[_0x18f372(0x228)](_0x5aa659,_0x42e3c7[_0x18f372(0x28c)]),_0xb2c916=_0x4d506c['getGridHostname'](_0x5455ea)+'/'+_0x2363e4,_0x4abbc6=_0x42e3c7[_0x18f372(0x237)];try{const _0x1029a0={'url':_0x18f372(0x2c5)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x1c5275,..._0x209fce},_0x3eb842=_0x1029a0,_0x53ebf4=await _0x42e3c7[_0x18f372(0x2cc)](promisifiedRequest,_0x3eb842);(_0x42e3c7[_0x18f372(0x295)](_0x53ebf4,null)||_0x42e3c7[_0x18f372(0x295)](_0x53ebf4,undefined))&&(_0x421223=_0x42e3c7[_0x18f372(0x244)],await _0x42e3c7[_0x18f372(0x245)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2cb)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));_0x42e3c7[_0x18f372(0x2ba)](_0x53ebf4[_0x18f372(0x302)],0x191)&&(_0x421223=_0x42e3c7['ANlsi'],await _0x42e3c7['UUHMk'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x2e5)],_0x42e3c7['JEPQV']),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));_0x42e3c7[_0x18f372(0x276)](_0x53ebf4[_0x18f372(0x302)],0xc8)&&(_0x421223=_0x18f372(0x23e)+JSON['stringify'](_0x53ebf4),await _0x42e3c7[_0x18f372(0x229)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x2f5)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1));const _0xf2b155=JSON[_0x18f372(0x29a)](_0x53ebf4[_0x18f372(0x220)]);_0xf2b155[_0x18f372(0x2d1)]&&(_0xb2c916=_0xf2b155['route53'],_0x4abbc6=_0x42e3c7[_0x18f372(0x2ac)]),global_registry[_0x18f372(0x296)]&&(_0x4abbc6=_0x42e3c7['bKyFr']);}catch(_0x5243d0){}_0x421223=_0x18f372(0x313)+_0xb2c916+'\x20',logger[_0x18f372(0x2a3)](_0x421223);const _0x27169b={};_0x27169b[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x27169b[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x27169b),_0x421223=_0x18f372(0x310)+_0x4abbc6+'://'+_0xb2c916+_0x18f372(0x2b3),logger[_0x18f372(0x2a3)](_0x421223);const _0x32e4a9={};_0x32e4a9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x32e4a9[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x32e4a9);const _0x45063f={};_0x45063f[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x2c1)],_0x45063f[_0x18f372(0x287)]=_0x18f372(0x282)+_0xb2c916,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x45063f),await webSocketUtils[_0x18f372(0x26b)](0x7d0);}catch(_0x5a6bdb){if(_0x42e3c7[_0x18f372(0x2fe)](_0x4ff1a1,![]))try{logger[_0x18f372(0x2a3)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x42e3c7[_0x18f372(0x2db)](removeGridComponents,_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x2363e4),await _0x4d506c[_0x18f372(0x207)](_0x4fb17a,global_registry[_0x18f372(0x25b)]);}catch(_0x440248){throw _0x440248;}throw _0x5a6bdb;}}catch(_0x46eedb){const _0xedc80a='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x46eedb+'\x20\x0a'+JSON[_0x18f372(0x255)](_0x46eedb)+'\x20';if(_0x1ea753){const _0x2be104={};_0x2be104[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x2be104[_0x18f372(0x287)]=_0xedc80a,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x2be104,_0x42e3c7[_0x18f372(0x2f3)],!![]);}await webSocketUtils[_0x18f372(0x26b)](0x7d0);const _0x14981e={};_0x14981e['error']=_0xedc80a,await _0x42e3c7['pkhgk'](sendInstrumentationEvent,_0x37087d,_0x42e3c7[_0x18f372(0x305)],messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x2fd)],_0x14981e,_0x37087d),logger[_0x18f372(0x254)](_0xedc80a);}process['exit'](0x0);};
|
|
1
|
+
function a10_0xbbce(){const _0x45ae01=['../../config/constants','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','drOiN','vbCGr','isVPCPresent','UTxOw','lgnaK','command','gridProfile','YIpBj','split','Create\x20a\x20new\x20Automation\x20grid.','createdBy','Will\x20be\x20spawning\x20the\x20grid\x20','sTPmP','BIvtw','4541202bvLWkH','YWZig','kGfQF','exit','../../utils/gridComponents','eLDgC','turboscale-managed-identity-','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','KUXOH','Browserstack','readFileSync','YbRAg','xxQOd','xdOfk','Spawning\x20grid\x20on\x20to\x20the\x20cluster','private-grid','TqGuw','YxPvG','ceJXN','CLI\x20run\x20finished:\x20','zdsQC','UlnxE','stringify','createOtherResources','kQNMg','QRoGj','diSEH','IgMWf','CLI_RUN_STARTED','vpc','ILHXM','browserVersion','string','Namespace\x20Created','promisify','4321592qzRMtU','mcSti','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','YsRNS','Found\x20Subnets:\x20','kpMDR','GebBt','setupNewCluster','Deleting\x20the\x20CloudFormation\x20Stacks','bstackUsername','vFqnJ','route53','xEEfv','../../config/logger','get-grid-url-null-response','ERROR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Found\x20VPC:\x20','pre-spawned-subnets-not-selected','QalSM','parse','tXyOI','1|0|2|4|3','8|4|7|2|0|1|3|5|6','ZDswz','s3Bucket','../../utils/webSocketUtils','create-grid-called','UcPAA','Grid\x20spawned\x20on\x20the\x20cluster','tSXnf','description','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','tHXXv','clusterName','rXHzn','gOSNn','fXPqn','warn','existsSync','UUflZ','24796qmDnVj','jrOob','JUEji','2|3|0|8|4|7|1|6|5','iTGVo','Grid\x20profile\x20fetched\x20from\x20backend','NooEg','reconnecting-websocket','info','grid','XPcha','QwFDi','get-grid-url-non-200','XYimR','hnEBJ','cloud-provider','pXtIP','epilogue','grid-profile','statusCode','s3bucket','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','ygKGn','SFvES','usage','https','CLI\x20run\x20started','/wd/hub','Grid\x20can\x20be\x20accessed\x20at:\x20','ftWyb','setupAutoscaler','gridProfiles','fetchLocalCreds','clkfR','gridName','Vuwwr','KXNbw','jiOaU','UdrVz','sTzHx','LOG','iGhND','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','sendEventToBackend','https://','replace','deleteCluster','4174709RmRIZZ','debug','VtMHi','delay','690QCNDWb','ZDkTp','fMEHw','PRaOO','http','PLswP','VZyrH','password','ygGIG','RlIby','privateGrid','NRtRu','length','kefoS','dGIST','Cluster\x20','uzJuQ','updatePreSpawnedCluster','9lVjBcm','help','qfBmM','KmYzG','addListeners','sGPtl','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','WebSocket','zJIRf','INFO','fxAhL','1737777FaXHFR','vZXPk','IWEIC','nQkVr','non-aws-azure-cluster','options','FFsfq','true','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','137HOiuUe','type','nfRay','create-grid-checks-null-response','name','jPqwi','clusterRegion','includes','\x20in\x20existing\x20cluster\x20\x27','prespawned-cluster-args-not-passed','toLowerCase','PUssz','xVZgU','\x20using\x20\x27','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','://','../../utils/userInput','method','create-grid-checks-grid-already-exists','ingress-nginx-controller','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','LqiVG','username','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','yJoiu','qFkUt','/packages/cli/create-grid-checks','defaultGridProfile','kErhk','<UsernamePlaceholder>','obUul','body','sTGKV','../../utils/instrumentationUtils','EnHiz','aJckM','TOFyC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','hubVersion','uuid','Spawning\x20Grid\x20on\x20the\x20Cluster','2833230apEGXH','vQvRp','grid-name','rFbHF','MLiEP','zZAWn','subnets','isPrivateGrid','s3BucketName','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','auth','KjFpX','jLCim','UpmJr','Eosra','CclGJ','OBodI','create-grid-checks-non-200','NEAxo','metadata','user','bUEoC','error','QhUxS','lNhRM','SNuuR','Cluster\x20created\x20successfully','PsQwC','IeiqV','MkzAv','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','readNamespacedService','getResourceClientId','GET','BLnSk','PgHCC','qnnfB','RDJvo','TWGyp','yrbYd','LsqbU','Spawning\x20the\x20grid\x20','yKYFB','region','grid-spawning-failed','builder','ktLsj','OlOIZ','GsDnc','jCYux','Create\x20a\x20private/public\x20grid.','NIuih','13100cQZzHn','securityGroups','clNPk','33AIhppX','YtUOM','Subnets:\x20','get-grid-url-auth-failed','tffdC','skqeP','message','writeFileSync','WPjAU','createNamespace','create','wWbNp','managedBy','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','qimmH','ingress-nginx','qfkyR','\x27\x20grid\x20profile','kFtjE','wFrpx','handler','AOTsW','KKhyg','cloudProvider','FnmVL','private-ingress-nginx-controller','bstackAccesskey','../../cloudproviders/utils','vNrFG','isSubnetsValid','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster'];a10_0xbbce=function(){return _0x45ae01;};return a10_0xbbce();}const a10_0x59c16d=a10_0x52e3;(function(_0x2a28df,_0x5953e7){const _0x181b3c=a10_0x52e3,_0x1ffb63=_0x2a28df();while(!![]){try{const _0x2ebe90=parseInt(_0x181b3c(0x1bb))/0x1*(parseInt(_0x181b3c(0xe2))/0x2)+-parseInt(_0x181b3c(0x1b2))/0x3+parseInt(_0x181b3c(0x161))/0x4*(-parseInt(_0x181b3c(0x195))/0x5)+parseInt(_0x181b3c(0x114))/0x6+parseInt(_0x181b3c(0x191))/0x7+parseInt(_0x181b3c(0x138))/0x8*(parseInt(_0x181b3c(0x1a7))/0x9)+-parseInt(_0x181b3c(0x1e4))/0xa*(parseInt(_0x181b3c(0xe5))/0xb);if(_0x2ebe90===_0x5953e7)break;else _0x1ffb63['push'](_0x1ffb63['shift']());}catch(_0x10fe81){_0x1ffb63['push'](_0x1ffb63['shift']());}}}(a10_0xbbce,0x7b901));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require(a10_0x59c16d(0x168)),request=require('request'),{v4:uuidv4}=require(a10_0x59c16d(0x1e2)),webSocketUtils=require(a10_0x59c16d(0x152)),{logger}=require(a10_0x59c16d(0x145)),{inputCloudProviderKeys}=require(a10_0x59c16d(0x1cb)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x59c16d(0x100)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x59c16d(0x104)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x59c16d(0x118)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x59c16d(0x1dc)),promisifiedRequest=util[a10_0x59c16d(0x137)](request);function a10_0x52e3(_0x105bd2,_0x3578b5){const _0xbbce59=a10_0xbbce();return a10_0x52e3=function(_0x52e365,_0x3c2d04){_0x52e365=_0x52e365-0xc1;let _0x309b25=_0xbbce59[_0x52e365];return _0x309b25;},a10_0x52e3(_0x105bd2,_0x3578b5);}exports[a10_0x59c16d(0x10b)]=a10_0x59c16d(0x16a),exports['desc']=a10_0x59c16d(0x10f),exports[a10_0x59c16d(0xdb)]=function(_0x5d5c8d){const _0x1826d9=a10_0x59c16d,_0x44e78a={};_0x44e78a[_0x1826d9(0x165)]=_0x1826d9(0x105),_0x44e78a[_0x1826d9(0x188)]=_0x1826d9(0x135),_0x44e78a[_0x1826d9(0xd5)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x44e78a['XYimR']=_0x1826d9(0x18b),_0x44e78a[_0x1826d9(0x12e)]=_0x1826d9(0x1ba),_0x44e78a[_0x1826d9(0x121)]=_0x1826d9(0x1e0),_0x44e78a[_0x1826d9(0x182)]='Create\x20a\x20private/public\x20grid.',_0x44e78a['nQkVr']='help';const _0x4f0819=_0x44e78a,_0x36c393={};_0x36c393[_0x1826d9(0x157)]=_0x4f0819['iTGVo'],_0x36c393[_0x1826d9(0x1bc)]=_0x4f0819['sTzHx'];const _0x1c88c1={};_0x1c88c1[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0xd5)],_0x1c88c1[_0x1826d9(0x1bc)]=_0x4f0819[_0x1826d9(0x188)];const _0x1adb8d={};_0x1adb8d[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0x16e)],_0x1adb8d['type']=_0x4f0819[_0x1826d9(0x188)];const _0x498bb3={};_0x498bb3[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0x12e)],_0x498bb3[_0x1826d9(0x1bc)]=_0x4f0819[_0x1826d9(0x188)];const _0x165741={};_0x165741['description']=_0x4f0819[_0x1826d9(0x121)],_0x165741[_0x1826d9(0x1bc)]=_0x4f0819[_0x1826d9(0x188)];const _0x31ee29={};_0x31ee29[_0x1826d9(0x157)]=_0x4f0819[_0x1826d9(0x182)],_0x31ee29['type']=_0x4f0819['sTzHx'];const _0x14d908={};return _0x14d908[_0x1826d9(0x1e6)]=_0x36c393,_0x14d908['grid-profile']=_0x1c88c1,_0x14d908['cluster-name']=_0x1adb8d,_0x14d908[_0x1826d9(0x170)]=_0x498bb3,_0x14d908[_0x1826d9(0xd9)]=_0x165741,_0x14d908[_0x1826d9(0x124)]=_0x31ee29,_0x5d5c8d['usage'](HELP_HEADER_MESSAGE['create'])[_0x1826d9(0x172)](HELP_FOOTER_MESSAGE)[_0x1826d9(0x1b7)](_0x14d908)[_0x1826d9(0x1a8)](_0x4f0819[_0x1826d9(0x1b5)])['argv'];},exports[a10_0x59c16d(0xf9)]=async function(_0x312e6a){const _0xd2bec8=a10_0x59c16d,_0x160873={'lNhRM':_0xd2bec8(0x158),'vbCGr':_0xd2bec8(0x199),'KUXOH':_0xd2bec8(0x15e),'UcPAA':_0xd2bec8(0x105),'iGhND':_0xd2bec8(0x135),'YbRAg':_0xd2bec8(0x1ed),'VtMHi':_0xd2bec8(0x18b),'AOTsW':_0xd2bec8(0x1ba),'sGPtl':_0xd2bec8(0x1e0),'QhUxS':_0xd2bec8(0xe0),'Yacmy':_0xd2bec8(0x1a8),'skqeP':_0xd2bec8(0xc4),'kFtjE':_0xd2bec8(0x164),'KmYzG':_0xd2bec8(0x17a),'FFsfq':function(_0x2dc80f){return _0x2dc80f();},'SFvES':function(_0x2ac5bf){return _0x2ac5bf();},'uzJuQ':function(_0x30896f,_0x533ea0){return _0x30896f!==_0x533ea0;},'RlIby':_0xd2bec8(0x19d),'fXPqn':_0xd2bec8(0x11b),'MLiEP':function(_0x3610bc,_0x426111,_0x51aae0,_0x2d8b98,_0xe860e3,_0x2c030e,_0x1eae7d){return _0x3610bc(_0x426111,_0x51aae0,_0x2d8b98,_0xe860e3,_0x2c030e,_0x1eae7d);},'TOFyC':_0xd2bec8(0x153),'IeiqV':'init-not-called','xdOfk':function(_0x3613fa,_0x34f229,_0x358d1a,_0x3ad83c,_0x1602ed,_0x43d5f4,_0x433834){return _0x3613fa(_0x34f229,_0x358d1a,_0x3ad83c,_0x1602ed,_0x43d5f4,_0x433834);},'sTPmP':_0xd2bec8(0x1d8),'jrOob':'<PasswordPlaceholder>','zZAWn':'Adding\x20Websocket\x20listeners','drOiN':function(_0x224aa2,_0x493abe){return _0x224aa2===_0x493abe;},'UdrVz':_0xd2bec8(0x1a3),'NRtRu':function(_0x5881ee,_0x2bd8fa){return _0x5881ee!==_0x2bd8fa;},'XLKkH':_0xd2bec8(0x127),'DcTRv':'gjFGp','ygKGn':_0xd2bec8(0x103),'fxAhL':function(_0x112b69,_0x22cd98,_0x1de0b8,_0x40ae79,_0xea0c87,_0x4eb3f1,_0x58897a,_0x5ca290){return _0x112b69(_0x22cd98,_0x1de0b8,_0x40ae79,_0xea0c87,_0x4eb3f1,_0x58897a,_0x5ca290);},'kefoS':_0xd2bec8(0x1c4),'SFisv':'qXxdA','aJckM':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FnmVL':_0xd2bec8(0x1b6),'tffdC':function(_0x5758a0,_0x2dba69){return _0x5758a0===_0x2dba69;},'INyev':_0xd2bec8(0x1b9),'wWbNp':_0xd2bec8(0xd6),'EnHiz':_0xd2bec8(0x15b),'dWoIn':_0xd2bec8(0x186),'GsDnc':_0xd2bec8(0x10d),'WPjAU':_0xd2bec8(0xcf),'Ftbin':function(_0x3f0690,_0x4d0633){return _0x3f0690(_0x4d0633);},'clNPk':function(_0x143b0d,_0x2ac6e9){return _0x143b0d===_0x2ac6e9;},'pIwaG':function(_0x509f27,_0x5730d3){return _0x509f27!==_0x5730d3;},'kGfQF':_0xd2bec8(0x142),'mcSti':'VpGsw','UTxOw':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','PLswP':function(_0x5d424c,_0x2743ce,_0x2e6286,_0x572671,_0xea7336,_0x297853,_0xc0290f,_0x523595){return _0x5d424c(_0x2743ce,_0x2e6286,_0x572671,_0xea7336,_0x297853,_0xc0290f,_0x523595);},'wqfgq':_0xd2bec8(0x1be),'NooEg':'pivcb','YtUOM':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','PUssz':'create-grid-checks-auth-failed','CclGJ':function(_0x58dd8d,_0x20ce67){return _0x58dd8d!==_0x20ce67;},'yKYFB':_0xd2bec8(0x1f2),'SClgm':function(_0x2a4a43,_0x319193,_0x21d547,_0x4909c0,_0x241f47,_0x4132bc,_0x504f0d,_0x42e0f6){return _0x2a4a43(_0x319193,_0x21d547,_0x4909c0,_0x241f47,_0x4132bc,_0x504f0d,_0x42e0f6);},'SNuuR':_0xd2bec8(0x1f5),'UpmJr':_0xd2bec8(0x166),'ZDswz':'nKWjQ','hnEBJ':_0xd2bec8(0x14b),'lgnaK':_0xd2bec8(0x18c),'RTJyl':function(_0x2fcb91,_0x28bbce,_0x278021,_0x2d26db,_0x257bc3,_0x563f01,_0x19fa70,_0x2e1b76){return _0x2fcb91(_0x28bbce,_0x278021,_0x2d26db,_0x257bc3,_0x563f01,_0x19fa70,_0x2e1b76);},'ILHXM':_0xd2bec8(0x1cd),'qnnfB':function(_0x1b661f,_0xb087ab){return _0x1b661f!==_0xb087ab;},'VZyrH':_0xd2bec8(0x16b),'UUflZ':function(_0x31d479,_0x1a639d){return _0x31d479===_0x1a639d;},'NiWLH':'wwhEH','rdFpz':function(_0x3aed2d,_0x42549d){return _0x3aed2d===_0x42549d;},'eLDgC':function(_0x431e0c,_0x5d9238){return _0x431e0c!==_0x5d9238;},'QwFDi':_0xd2bec8(0x197),'jCYux':_0xd2bec8(0xc9),'WRKFg':_0xd2bec8(0x13a),'jPqwi':function(_0x336bc0,_0x292484,_0x121a90,_0x3be0ab,_0x4240ae,_0x8d484a,_0x5c7fea,_0x222439){return _0x336bc0(_0x292484,_0x121a90,_0x3be0ab,_0x4240ae,_0x8d484a,_0x5c7fea,_0x222439);},'ZsdrN':'create-grid-checks-invalid-profile','wFrpx':_0xd2bec8(0x126),'IWEIC':_0xd2bec8(0xd3),'TWGyp':function(_0x27fd6b,_0x41ad3e){return _0x27fd6b!==_0x41ad3e;},'UlnxE':_0xd2bec8(0x12f),'zJIRf':_0xd2bec8(0xd1),'LqiVG':function(_0x399954,_0x3a3be6,_0x9d8f0b,_0x169007,_0x2ccdee,_0x115b28,_0x6440f4,_0x2052dc,_0x3d82d5,_0x218e45,_0x16c94d,_0x53b1f1){return _0x399954(_0x3a3be6,_0x9d8f0b,_0x169007,_0x2ccdee,_0x115b28,_0x6440f4,_0x2052dc,_0x3d82d5,_0x218e45,_0x16c94d,_0x53b1f1);},'nfRay':_0xd2bec8(0x14f),'OlOIZ':function(_0x302521,_0x58bb52,_0x1d1546,_0x3073a2,_0x323ccd,_0x84c29c){return _0x302521(_0x58bb52,_0x1d1546,_0x3073a2,_0x323ccd,_0x84c29c);},'vNrFG':_0xd2bec8(0x1c9),'sTGKV':function(_0x570889,_0x30722c,_0x1dd41b,_0x57f9ac){return _0x570889(_0x30722c,_0x1dd41b,_0x57f9ac);},'ZDkTp':function(_0x1257f2){return _0x1257f2();},'BLnSk':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','obUul':_0xd2bec8(0x1d2),'PRaOO':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','KjFpX':function(_0x68c5b6,_0x442e8b){return _0x68c5b6!=_0x442e8b;},'xEEfv':function(_0x218d18,_0x4a4ff9){return _0x218d18!==_0x4a4ff9;},'kQNMg':function(_0xd6228e,_0xba1562){return _0xd6228e>_0xba1562;},'gOSNn':function(_0x18ff83,_0x5b0ac5){return _0x18ff83===_0x5b0ac5;},'tHXXv':_0xd2bec8(0x1cf),'vQvRp':function(_0x37c06c,_0x47be08,_0x51670d,_0xaf81ae,_0x30d4f7,_0x1e2f21,_0x378a62,_0x40830f){return _0x37c06c(_0x47be08,_0x51670d,_0xaf81ae,_0x30d4f7,_0x1e2f21,_0x378a62,_0x40830f);},'vZXPk':_0xd2bec8(0x14a),'tXyOI':function(_0x45ea6a,_0x1b1f89){return _0x45ea6a===_0x1b1f89;},'BCkTq':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Vuwwr':function(_0x275b8f,_0x172037,_0x35b0aa,_0x4f153e,_0x46129c,_0x2840e4,_0x4763a5,_0x371ee6){return _0x275b8f(_0x172037,_0x35b0aa,_0x4f153e,_0x46129c,_0x2840e4,_0x4763a5,_0x371ee6);},'qfBmM':'pre-spawned-invalid-vpc','MgwTG':function(_0x48cba6,_0x36352e){return _0x48cba6===_0x36352e;},'zdsQC':function(_0x12ea48,_0xed9b83,_0x4cd5ba,_0x5042eb,_0xbf4ac7,_0x3330a6,_0x1b713c,_0x36f1f8){return _0x12ea48(_0xed9b83,_0x4cd5ba,_0x5042eb,_0xbf4ac7,_0x3330a6,_0x1b713c,_0x36f1f8);},'tSXnf':'pre-spawned-invalid-subnets','qFkUt':_0xd2bec8(0x14e),'yJoiu':'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.','IgMWf':_0xd2bec8(0xc8),'KXNbw':function(_0x4d12ae,_0x2095c3){return _0x4d12ae(_0x2095c3);},'NEAxo':function(_0x32a493,_0x140853){return _0x32a493==_0x140853;},'bUEoC':function(_0x4a286d,_0x5bff78){return _0x4a286d(_0x5bff78);},'xVZgU':'Creating\x20namespace','NIuih':'default','YsRNS':'Browserstack','KKhyg':_0xd2bec8(0x136),'pXtIP':'Namespace\x20created','kErhk':_0xd2bec8(0x123),'MkzAv':_0xd2bec8(0x1e3),'jLCim':function(_0x348be0,_0x28bb63,_0x4c5833,_0x2c2653,_0x541b79,_0x4492e7,_0x424c19,_0x2e36ef,_0x5c2a55,_0x24327c,_0x57dfa5){return _0x348be0(_0x28bb63,_0x4c5833,_0x2c2653,_0x541b79,_0x4492e7,_0x424c19,_0x2e36ef,_0x5c2a55,_0x24327c,_0x57dfa5);},'qimmH':_0xd2bec8(0x155),'isNIQ':_0xd2bec8(0x1ad),'dIIRh':function(_0x6ff5b6,_0x293f35,_0x2c80d1){return _0x6ff5b6(_0x293f35,_0x2c80d1);},'ktLsj':_0xd2bec8(0xfe),'OBodI':_0xd2bec8(0x1ce),'qfkyR':_0xd2bec8(0xf4),'JUEji':function(_0x47a011,_0x5f3c40){return _0x47a011==_0x5f3c40;},'GebBt':_0xd2bec8(0x176),'IQWjU':_0xd2bec8(0x146),'YWZig':function(_0x24e262,_0x29317f){return _0x24e262===_0x29317f;},'kpMDR':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','rFbHF':_0xd2bec8(0xe8),'TqGuw':function(_0x582390,_0x171102,_0x13f959,_0x7745d2,_0x440073,_0x421c57,_0x3fc27f,_0x14cccc){return _0x582390(_0x171102,_0x13f959,_0x7745d2,_0x440073,_0x421c57,_0x3fc27f,_0x14cccc);},'BIvtw':_0xd2bec8(0x16d),'RYKtM':function(_0x23cdd3,_0x2af341,_0x12b320,_0x1c9aec,_0x5399c1,_0x325318){return _0x23cdd3(_0x2af341,_0x12b320,_0x1c9aec,_0x5399c1,_0x325318);},'ftWyb':_0xd2bec8(0xda)};let _0x10a055=![],_0x40ff6d,_0x628063,_0x50f49c,_0x575def,_0xed1f,_0x3fc2c1,_0x435d86,_0x3de1ad,_0x507ed3,_0x55b3d5,_0x77cbb7,_0x3b0815,_0x922d83=0x1,_0x362c7a=0xe;try{global_registry['requestId']=_0x160873[_0xd2bec8(0x1b8)](uuidv4),global_registry[_0xd2bec8(0x1eb)]=![];!fs[_0xd2bec8(0x15f)](_0x160873[_0xd2bec8(0x178)](getCredentialsPath))&&(_0x160873[_0xd2bec8(0x1a5)](_0x160873[_0xd2bec8(0x19e)],_0x160873['RlIby'])?_0x34b16e=_0x138b74[_0x4fffe0['gridProfile']]:(console[_0xd2bec8(0xc4)](_0x160873[_0xd2bec8(0x15d)]),await _0x160873[_0xd2bec8(0x1e8)](sendInstrumentationEvent,_0x312e6a,_0x160873[_0xd2bec8(0x1df)],messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0xca)],null,_0x312e6a),process[_0xd2bec8(0x117)](0x1)));await _0x160873[_0xd2bec8(0x122)](sendInstrumentationEvent,_0x312e6a,_0x160873[_0xd2bec8(0x1df)],messageTypes[_0xd2bec8(0x1b0)],null,null,_0x312e6a);const _0x432ba1=JSON[_0xd2bec8(0x14c)](fs[_0xd2bec8(0x11f)](_0x160873[_0xd2bec8(0x178)](getCredentialsPath)));global_registry[_0xd2bec8(0x141)]=_0x432ba1[_0xd2bec8(0x11e)]['username'],global_registry[_0xd2bec8(0xff)]=_0x432ba1[_0xd2bec8(0x11e)][_0xd2bec8(0x19c)];const _0x2b2110=WS_ENDPOINT[_0xd2bec8(0x18f)](_0x160873[_0xd2bec8(0x112)],_0x432ba1['Browserstack'][_0xd2bec8(0x1d1)])['replace'](_0x160873[_0xd2bec8(0x162)],_0x432ba1[_0xd2bec8(0x11e)]['password']),_0x1d3388={};_0x1d3388[_0xd2bec8(0x1ae)]=ws,_0x1d3388['connectionTimeout']=0x36ee80,_0x55b3d5=new ReconnectingWebSocket(_0x2b2110,[],_0x1d3388),logger[_0xd2bec8(0x192)](_0x160873[_0xd2bec8(0x1e9)]),webSocketUtils[_0xd2bec8(0x1ab)](_0x55b3d5,_0x312e6a[_0xd2bec8(0xc2)],_0x312e6a[_0xd2bec8(0x19c)]);let _0x104bf4=DEFAULT_GRID_NAME;(_0x312e6a[_0xd2bec8(0x15a)]||_0x312e6a['cloudProvider']||_0x312e6a[_0xd2bec8(0xd9)])&&(_0x160873[_0xd2bec8(0x106)](_0x160873[_0xd2bec8(0x187)],_0x160873[_0xd2bec8(0x187)])?(!(_0x312e6a[_0xd2bec8(0x15a)]&&_0x312e6a['cloudProvider']&&_0x312e6a['region'])&&(_0x160873[_0xd2bec8(0x1a0)](_0x160873['XLKkH'],_0x160873['DcTRv'])?(_0x40ff6d=_0x160873[_0xd2bec8(0x177)],await _0x160873[_0xd2bec8(0x1b1)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1a2)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):_0x5e4e0d['info'](_0xd2bec8(0x13c)+_0x42ae68[_0xd2bec8(0x12b)](_0x3a07b6)+'\x20')),![AWS,AZURE,GCP][_0xd2bec8(0x1c2)](_0x312e6a[_0xd2bec8(0xfc)][_0xd2bec8(0x1c5)]())&&(_0x160873[_0xd2bec8(0x1a5)](_0x160873['SFisv'],_0x160873['SFisv'])?_0x3c3609[_0xd2bec8(0xfc)]={}:(_0x40ff6d=_0x160873[_0xd2bec8(0x1de)],await _0x160873[_0xd2bec8(0x1b1)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0xfd)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1))),_0x312e6a['privateGrid']&&_0x160873[_0xd2bec8(0xe9)](_0x312e6a['privateGrid'][_0xd2bec8(0x1c5)](),_0x160873['INyev'])&&(_0x160873['tffdC'](_0x160873[_0xd2bec8(0xf0)],_0x160873[_0xd2bec8(0x1dd)])?(_0x54f630[_0xd2bec8(0xc4)](_0x160873[_0xd2bec8(0xc6)]),_0x586c2c[_0xd2bec8(0x117)](0x1)):global_registry[_0xd2bec8(0x1eb)]=!![]),_0x10a055=!![],_0x50f49c=_0x312e6a[_0xd2bec8(0x15a)],_0x628063=_0x312e6a[_0xd2bec8(0xfc)][_0xd2bec8(0x1c5)](),_0x575def=_0x312e6a[_0xd2bec8(0xd9)]):_0x3c541b=_0x160873[_0xd2bec8(0x107)]);_0x312e6a['gridName']&&(_0x160873[_0xd2bec8(0x1a0)](_0x160873['dWoIn'],_0x160873[_0xd2bec8(0xde)])?_0x104bf4=_0x312e6a[_0xd2bec8(0x183)]:_0x185478[_0xd2bec8(0x1eb)]=!![]);global_registry[_0xd2bec8(0x183)]=_0x104bf4;const _0x54a55a={};_0x54a55a[_0xd2bec8(0x1d1)]=_0x432ba1['Browserstack'][_0xd2bec8(0x1d1)],_0x54a55a[_0xd2bec8(0x19c)]=_0x432ba1[_0xd2bec8(0x11e)][_0xd2bec8(0x19c)];const _0x1b68a9={};_0x1b68a9[_0xd2bec8(0x1cc)]=_0x160873[_0xd2bec8(0xed)],_0x1b68a9[_0xd2bec8(0x1ee)]=_0x54a55a;const _0x1d6523=_0x1b68a9,_0x14204d='https://'+AG_API_URL+_0xd2bec8(0x1d5),_0x248920={};_0x248920[_0xd2bec8(0x183)]=_0x104bf4;const _0x434362={'url':_0x14204d,'qs':_0x248920,..._0x1d6523},_0x58a077=_0x434362,_0x16004a=await _0x160873['Ftbin'](promisifiedRequest,_0x58a077);(_0x160873[_0xd2bec8(0x106)](_0x16004a,null)||_0x160873[_0xd2bec8(0xe4)](_0x16004a,undefined))&&(_0x160873['pIwaG'](_0x160873[_0xd2bec8(0x116)],_0x160873[_0xd2bec8(0x139)])?(_0x40ff6d=_0x160873[_0xd2bec8(0x109)],await _0x160873[_0xd2bec8(0x19a)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873['wqfgq'],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):_0x42418c[_0xd2bec8(0x169)](_0xd2bec8(0x149)+_0x5179b5+'\x20'));if(_0x160873[_0xd2bec8(0xe4)](_0x16004a[_0xd2bec8(0x174)],0x191)){if(_0x160873[_0xd2bec8(0xe4)](_0x160873[_0xd2bec8(0x167)],_0x160873[_0xd2bec8(0x167)]))_0x40ff6d=_0x160873[_0xd2bec8(0xe6)],await _0x160873[_0xd2bec8(0x1b1)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1c6)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1);else{const _0xe511e5={};_0xe511e5[_0xd2bec8(0x1bc)]=_0x134d97[_0xd2bec8(0x189)],_0xe511e5[_0xd2bec8(0xeb)]=_0xd2bec8(0x1a4)+_0x5639f8+_0xd2bec8(0x11c),_0x37fc2a[_0xd2bec8(0x18d)](_0x425049,_0xe511e5,_0x160873[_0xd2bec8(0x11d)]),_0x6c151b[_0xd2bec8(0x169)](_0xd2bec8(0x1a4)+_0x512653+_0xd2bec8(0x11c)),_0x524775=!![];}}if(_0x160873[_0xd2bec8(0x1f3)](_0x16004a[_0xd2bec8(0x174)],0xc8)){if(_0x160873['tffdC'](_0x160873[_0xd2bec8(0xd8)],_0x160873[_0xd2bec8(0xd8)]))_0x40ff6d=_0xd2bec8(0x148)+JSON[_0xd2bec8(0x12b)](_0x16004a),await _0x160873['SClgm'](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0xc7)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process['exit'](0x1);else throw _0x511033;}const _0x2f237f=JSON[_0xd2bec8(0x14c)](_0x16004a[_0xd2bec8(0x1da)]),_0x53aabc={};_0x53aabc[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x131)],_0x53aabc[_0xd2bec8(0xeb)]=_0xd2bec8(0x17b),webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x53aabc);const _0x54a34c={};_0x54a34c['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x54a34c[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x1f1)],webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x54a34c);if(_0x2f237f['alreadyPresent']){if(_0x160873['clNPk'](_0x160873[_0xd2bec8(0x150)],_0x160873[_0xd2bec8(0x16f)])){const _0x20a7b6={};_0x20a7b6[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0x154)],_0x20a7b6[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x4bfebb={};_0x4bfebb['description']=_0x160873[_0xd2bec8(0x120)],_0x4bfebb[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x47c909={};_0x47c909[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0x193)],_0x47c909['type']=_0x160873[_0xd2bec8(0x18a)];const _0x240773={};_0x240773[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0xfa)],_0x240773[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x31f446={};_0x31f446[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0x1ac)],_0x31f446[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x2c1a27={};_0x2c1a27[_0xd2bec8(0x157)]=_0x160873[_0xd2bec8(0xc5)],_0x2c1a27[_0xd2bec8(0x1bc)]=_0x160873[_0xd2bec8(0x18a)];const _0x201a8b={};return _0x201a8b[_0xd2bec8(0x1e6)]=_0x20a7b6,_0x201a8b[_0xd2bec8(0x173)]=_0x4bfebb,_0x201a8b['cluster-name']=_0x47c909,_0x201a8b[_0xd2bec8(0x170)]=_0x240773,_0x201a8b[_0xd2bec8(0xd9)]=_0x31f446,_0x201a8b[_0xd2bec8(0x124)]=_0x2c1a27,_0x46ab85[_0xd2bec8(0x179)](_0x29efe5[_0xd2bec8(0xef)])[_0xd2bec8(0x172)](_0x762195)[_0xd2bec8(0x1b7)](_0x201a8b)['help'](_0x160873['Yacmy'])['argv'];}else _0x40ff6d=_0x160873[_0xd2bec8(0x10a)],await _0x160873['RTJyl'](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x133)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1);}const _0x185fd1=_0x2f237f[_0xd2bec8(0x180)];let _0x41c339=_0x185fd1[_0x2f237f[_0xd2bec8(0x1d6)]];_0x312e6a['gridProfile']&&(_0x160873[_0xd2bec8(0xd2)](_0x160873[_0xd2bec8(0x19b)],_0x160873[_0xd2bec8(0x19b)])?_0x530a97[_0xd2bec8(0x1eb)]=!![]:_0x41c339=_0x185fd1[_0x312e6a[_0xd2bec8(0x10c)]]);if(_0x160873[_0xd2bec8(0x160)](_0x10a055,![])){if(_0x160873[_0xd2bec8(0x1f3)](_0x160873['NiWLH'],_0x160873['NiWLH'])){const _0x463162={};_0x463162[_0xd2bec8(0x1bc)]=_0x3b8d1d['LOG'],_0x463162[_0xd2bec8(0xeb)]=_0x3d1809,_0x48466f[_0xd2bec8(0x18d)](_0x28f3aa,_0x463162,_0x160873[_0xd2bec8(0xea)],!![]);}else{if(_0x160873['rdFpz'](_0x41c339,undefined)){if(_0x160873[_0xd2bec8(0x119)](_0x160873[_0xd2bec8(0x16c)],_0x160873[_0xd2bec8(0xdf)]))_0x40ff6d=_0x160873['WRKFg'],await _0x160873[_0xd2bec8(0x1c0)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873['ZsdrN'],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1);else{const _0x502d24=_0x160873[_0xd2bec8(0xf7)][_0xd2bec8(0x10e)]('|');let _0x856ae7=0x0;while(!![]){switch(_0x502d24[_0x856ae7++]){case'0':_0x166824['info'](_0x1d03fe);continue;case'1':_0x33042c[_0xd2bec8(0x15a)]=_0x430a88;continue;case'2':const _0x17128d={};_0x17128d['type']=_0x44cc96['CLI_RUN_STARTED'],_0x17128d[_0xd2bec8(0xeb)]=_0xd2bec8(0x17b),_0x1d7084[_0xd2bec8(0x18d)](_0x34a400,_0x17128d);continue;case'3':_0x2f31ef=_0xd2bec8(0xd7)+_0x559c0e+_0xd2bec8(0x1c3)+_0x2732ff+'\x27';continue;case'4':_0x172723[_0xd2bec8(0xfc)]=_0x6f7ef7;continue;case'5':_0x48ea3d['browserVersion']=_0x42f717[_0xd2bec8(0x134)];continue;case'6':_0x1bee19[_0xd2bec8(0x1e1)]=_0x451205[_0xd2bec8(0x1e1)];continue;case'7':_0x52d602[_0xd2bec8(0x1c1)]=_0xc601ff;continue;case'8':const _0xc7c8f2={};_0xc7c8f2[_0xd2bec8(0x1bc)]=_0x467662[_0xd2bec8(0x189)],_0xc7c8f2['message']=_0x5c2be1,_0x26927a['sendEventToBackend'](_0x500328,_0xc7c8f2);continue;}break;}}}global_registry['gridProfileId']=_0x41c339['id'];(_0x160873['drOiN'](_0x628063,AZURE)||_0x160873[_0xd2bec8(0x160)](_0x41c339?.[_0xd2bec8(0xfc)],AZURE))&&(_0x160873[_0xd2bec8(0xe9)](_0x160873[_0xd2bec8(0xf8)],_0x160873[_0xd2bec8(0x1b4)])?_0x56f4eb=_0x3e05d1[_0xd2bec8(0x183)]:(console['error'](_0x160873[_0xd2bec8(0xc6)]),process['exit'](0x1)));_0x40ff6d=_0xd2bec8(0x111)+_0x104bf4+_0xd2bec8(0x1c8)+_0x41c339[_0xd2bec8(0x1bf)]+_0xd2bec8(0xf6),logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x3ef023={};_0x3ef023[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x3ef023[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x3ef023),_0x628063=_0x41c339[_0xd2bec8(0xfc)],_0x50f49c=_0x41c339['clusterName'],_0x575def=_0x41c339[_0xd2bec8(0xd9)],_0xed1f=_0x41c339['concurrency'],_0x3fc2c1=_0x41c339['instanceType'],_0x435d86=_0x41c339[_0xd2bec8(0x132)],securityGroups=_0x41c339[_0xd2bec8(0xe3)],subnets=_0x41c339[_0xd2bec8(0x1ea)],_0x3de1ad=_0x41c339[_0xd2bec8(0x175)],_0x922d83=_0x41c339['minNodes'],_0x362c7a=_0x41c339['maxNodes'],_0x77cbb7=_0x2f237f[_0xd2bec8(0x1e1)],_0x3b0815=_0x2f237f[_0xd2bec8(0x134)],_0x160873[_0xd2bec8(0xd4)](_0x41c339[_0xd2bec8(0x19f)],undefined)&&_0x41c339['privateGrid']&&(_0x160873['UUflZ'](_0x160873[_0xd2bec8(0x12a)],_0x160873[_0xd2bec8(0x1af)])?(_0x15445e=_0x2ec481[_0xd2bec8(0x143)],_0x1750ca=_0x160873[_0xd2bec8(0x1aa)]):global_registry['isPrivateGrid']=!![]),_0x160873[_0xd2bec8(0x1d0)](updateGlobalRegistryWithConfig,_0x628063,_0x50f49c,_0x575def,_0xed1f,_0x3fc2c1,_0x3de1ad,_0x41c339,_0x77cbb7,_0x3b0815,_0x922d83,_0x362c7a);}}else{const _0x1ebb8f=_0x160873[_0xd2bec8(0x1bd)][_0xd2bec8(0x10e)]('|');let _0x42f705=0x0;while(!![]){switch(_0x1ebb8f[_0x42f705++]){case'0':global_registry[_0xd2bec8(0xfc)]=_0x628063;continue;case'1':global_registry[_0xd2bec8(0x1c1)]=_0x575def;continue;case'2':const _0x3720b6={};_0x3720b6['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x3720b6[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x3720b6);continue;case'3':global_registry[_0xd2bec8(0x15a)]=_0x50f49c;continue;case'4':_0x40ff6d='Spawning\x20the\x20grid\x20'+_0x104bf4+_0xd2bec8(0x1c3)+_0x50f49c+'\x27';continue;case'5':global_registry[_0xd2bec8(0x1e1)]=_0x2f237f['hubVersion'];continue;case'6':global_registry[_0xd2bec8(0x134)]=_0x2f237f[_0xd2bec8(0x134)];continue;case'7':logger['info'](_0x40ff6d);continue;case'8':const _0x43d075={};_0x43d075[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x131)],_0x43d075[_0xd2bec8(0xeb)]=_0xd2bec8(0x17b),webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x43d075);continue;}break;}}const _0x21bf48=_0x160873[_0xd2bec8(0xdd)](getCloudProviderObject,_0x628063,_0x50f49c,_0x104bf4,_0x55b3d5,webSocketUtils),_0x5cd447=_0x432ba1[_0xd2bec8(0xfc)]||{};if(_0x160873['rdFpz'](_0x5cd447[_0x628063],undefined)){logger['info'](_0x160873[_0xd2bec8(0x101)]);_0x160873[_0xd2bec8(0x106)](_0x432ba1[_0xd2bec8(0xfc)],undefined)&&(_0x432ba1[_0xd2bec8(0xfc)]={});_0x432ba1[_0xd2bec8(0xfc)][_0x628063]={};const _0xddfa3e=await _0x160873[_0xd2bec8(0x1db)](inputCloudProviderKeys,_0x628063,_0x432ba1,_0x21bf48);fs[_0xd2bec8(0xec)](_0x160873[_0xd2bec8(0x196)](getCredentialsPath),JSON['stringify'](_0xddfa3e)),logger[_0xd2bec8(0x192)](_0x160873[_0xd2bec8(0xd0)]);}else{_0x40ff6d=_0x160873[_0xd2bec8(0x1d9)];const _0x3a7040={};_0x3a7040[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x3a7040['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x3a7040),logger[_0xd2bec8(0x169)](_0x40ff6d),await _0x21bf48[_0xd2bec8(0x181)](_0x5cd447);}_0x21bf48['configureIfNotConfigured']();let _0x301469;if(_0x160873['rdFpz'](_0x10a055,![])){_0x40ff6d='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x575def+').';const _0x30c786={};_0x30c786['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x30c786[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x30c786),logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x2b24a0=await _0x21bf48['isClusterPresent']();if(_0x2b24a0){const _0x30c158={};_0x30c158[_0xd2bec8(0x1bc)]=WS_EVENTS['LOG'],_0x30c158[_0xd2bec8(0xeb)]=_0xd2bec8(0x1a4)+_0x50f49c+_0xd2bec8(0x11c),webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x30c158,_0x160873[_0xd2bec8(0x11d)]),logger[_0xd2bec8(0x169)]('Cluster\x20'+_0x50f49c+_0xd2bec8(0x11c)),_0x10a055=!![];}else{const _0x4c7270={};_0x4c7270['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x4c7270[_0xd2bec8(0xeb)]=_0x160873['PRaOO'],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x4c7270),logger['info'](_0x160873[_0xd2bec8(0x198)]);const _0x5a63a4=_0x160873[_0xd2bec8(0x1ef)](_0x435d86,null)&&_0x160873[_0xd2bec8(0x144)](_0x435d86,undefined),_0x4a6ecc=_0x160873['KjFpX'](subnets,null)&&_0x160873[_0xd2bec8(0x1a5)](subnets,undefined)&&_0x160873[_0xd2bec8(0x12d)](subnets[_0xd2bec8(0x1a1)],0x0);if(_0x5a63a4){_0x160873[_0xd2bec8(0x15c)](_0x4a6ecc,![])&&(_0x40ff6d=_0x160873[_0xd2bec8(0x159)],await _0x160873[_0xd2bec8(0x1e5)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1b3)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));const _0x5b4e9e=await _0x21bf48[_0xd2bec8(0x108)](_0x435d86);_0x160873[_0xd2bec8(0x14d)](_0x5b4e9e,![])?(_0x40ff6d=_0x160873['BCkTq'],await _0x160873[_0xd2bec8(0x184)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1a9)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):logger[_0xd2bec8(0x169)](_0xd2bec8(0x149)+_0x435d86+'\x20');const _0x7ed838=await _0x21bf48[_0xd2bec8(0x102)](subnets,_0x435d86);_0x160873['MgwTG'](_0x7ed838[0x0],![])?(_0x40ff6d=_0xd2bec8(0xe7)+_0x7ed838[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x435d86+_0xd2bec8(0xf2),await _0x160873[_0xd2bec8(0x129)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x156)],_0x160873['skqeP']),logger['error'](_0x40ff6d),process[_0xd2bec8(0x117)](0x1)):logger[_0xd2bec8(0x169)]('Found\x20Subnets:\x20'+JSON[_0xd2bec8(0x12b)](subnets)+'\x20'),await _0x21bf48[_0xd2bec8(0x13f)](_0x435d86,subnets);}else{const _0x23c76a=_0x160873[_0xd2bec8(0x1d4)][_0xd2bec8(0x10e)]('|');let _0x431b83=0x0;while(!![]){switch(_0x23c76a[_0x431b83++]){case'0':logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0x1d3)]);continue;case'1':const _0x5e2cbc={};_0x5e2cbc['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x5e2cbc[_0xd2bec8(0xeb)]=_0x160873['yJoiu'],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x5e2cbc);continue;case'2':await _0x21bf48[_0xd2bec8(0x13f)]();continue;case'3':logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0x130)]);continue;case'4':const _0x13796f={};_0x13796f['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x13796f[_0xd2bec8(0xeb)]=_0xd2bec8(0xc8),webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x13796f);continue;}break;}}}}_0x10a055&&_0x160873['gOSNn'](_0x628063,AZURE)&&(global_registry[_0xd2bec8(0x151)]=_0x2f237f[_0xd2bec8(0x1ec)],await _0x21bf48[_0xd2bec8(0x1a6)](),await _0x21bf48[_0xd2bec8(0x12c)]());const [_0x3025ab,_0xc1165,_0x4d96ee,_0x5d3ce0,_0x15bdf2,_0x33e645]=await _0x160873[_0xd2bec8(0x185)](createK8sClient,_0x21bf48);_0x160873['rdFpz'](_0x10a055,![])&&_0x160873[_0xd2bec8(0x1f6)](_0x628063,AWS)&&(_0x301469=await _0x21bf48[_0xd2bec8(0x17f)](_0x3025ab,_0x312e6a));try{_0x507ed3=_0x160873[_0xd2bec8(0xc3)](kebabCase,_0x104bf4),logger[_0xd2bec8(0x169)](_0x160873['xVZgU']);const _0x5ad19f={};_0x5ad19f[_0xd2bec8(0x1bc)]=WS_EVENTS['LOG'],_0x5ad19f[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x1c7)],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x5ad19f);if(_0x160873['TWGyp'](_0x507ed3,_0x160873[_0xd2bec8(0xe1)])){const _0x935d8e={};_0x935d8e[_0xd2bec8(0x110)]=_0x160873[_0xd2bec8(0x13b)],_0x935d8e[_0xd2bec8(0xf1)]=_0x160873[_0xd2bec8(0x13b)];const _0x317fa2={};_0x317fa2[_0xd2bec8(0x1bf)]=_0x507ed3,_0x317fa2['annotations']=_0x935d8e;const _0x376a5b={};_0x376a5b[_0xd2bec8(0xc1)]=_0x317fa2;let _0x98304e=_0x376a5b;await _0x3025ab[_0xd2bec8(0xee)](_0x98304e),logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0xfb)]);}const _0x59ee76={};_0x59ee76[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x59ee76[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x171)],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x59ee76);const _0x4159f1={};_0x4159f1['type']=WS_EVENTS['LOG'],_0x4159f1[_0xd2bec8(0xeb)]=_0x160873[_0xd2bec8(0x1d7)],webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x4159f1),logger[_0xd2bec8(0x169)](_0x160873[_0xd2bec8(0xcb)]);let _0x22c2e1={};_0x160873[_0xd2bec8(0x15c)](_0x628063,AZURE)&&(_0x22c2e1={'clientId':await _0x21bf48[_0xd2bec8(0xce)](_0xd2bec8(0x11a)+_0x50f49c)});await _0x160873[_0xd2bec8(0x1f0)](addGridComponents,_0x3025ab,_0xc1165,_0x4d96ee,_0x5d3ce0,_0x507ed3,_0x50f49c,_0x301469,_0x15bdf2,_0x33e645,_0x22c2e1),_0x40ff6d=_0x160873[_0xd2bec8(0xf3)],logger['info'](_0x40ff6d);const _0x312eb2={};_0x312eb2[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x312eb2['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x312eb2),_0x40ff6d=_0x160873['isNIQ'],logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x3ee92f={};_0x3ee92f[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x3ee92f['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x3ee92f),await webSocketUtils[_0xd2bec8(0x194)](0xea60);const _0x132094=await _0x160873['dIIRh'](getNamespaceUID,_0x3025ab,_0x507ed3);let _0x1e77f7=global_registry['isPrivateGrid']?_0x160873[_0xd2bec8(0xdc)]:_0x160873[_0xd2bec8(0x1f4)],_0xc4a609=await _0x3025ab[_0xd2bec8(0xcd)](_0x1e77f7,_0x160873[_0xd2bec8(0xf5)]),_0x59aaa1=_0x21bf48['getGridHostname'](_0xc4a609)+'/'+_0x507ed3,_0x54c40f=_0x160873[_0xd2bec8(0x107)];try{const _0x3b98f9={'url':_0xd2bec8(0x18e)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x132094,..._0x1d6523},_0x1ffd70=_0x3b98f9,_0x12bb71=await _0x160873['KXNbw'](promisifiedRequest,_0x1ffd70);(_0x160873[_0xd2bec8(0x163)](_0x12bb71,null)||_0x160873[_0xd2bec8(0x163)](_0x12bb71,undefined))&&(_0x40ff6d=_0x160873[_0xd2bec8(0x13e)],await _0x160873[_0xd2bec8(0x184)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873['IQWjU'],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));_0x160873[_0xd2bec8(0x115)](_0x12bb71[_0xd2bec8(0x174)],0x191)&&(_0x40ff6d=_0x160873[_0xd2bec8(0x13d)],await _0x160873['jPqwi'](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes['ERROR'],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x1e7)],_0x160873[_0xd2bec8(0xea)]),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));_0x160873[_0xd2bec8(0x1a5)](_0x12bb71[_0xd2bec8(0x174)],0xc8)&&(_0x40ff6d='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0xd2bec8(0x12b)](_0x12bb71),await _0x160873[_0xd2bec8(0x125)](reportToGalactusAndSendToEDS,_0x312e6a,_0x55b3d5,_0x40ff6d,messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x1df)],_0x160873[_0xd2bec8(0x113)],_0x160873['skqeP']),logger[_0xd2bec8(0xc4)](_0x40ff6d),process[_0xd2bec8(0x117)](0x1));const _0x21a8de=JSON[_0xd2bec8(0x14c)](_0x12bb71[_0xd2bec8(0x1da)]);_0x21a8de[_0xd2bec8(0x143)]&&(_0x59aaa1=_0x21a8de[_0xd2bec8(0x143)],_0x54c40f=_0x160873[_0xd2bec8(0x1aa)]),global_registry[_0xd2bec8(0x1eb)]&&(_0x54c40f=_0x160873[_0xd2bec8(0x107)]);}catch(_0x39e9b0){}_0x40ff6d=_0xd2bec8(0x17d)+_0x59aaa1+'\x20',logger['info'](_0x40ff6d);const _0x4d21a1={};_0x4d21a1['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x4d21a1['message']=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x4d21a1),_0x40ff6d=_0xd2bec8(0xcc)+_0x54c40f+_0xd2bec8(0x1ca)+_0x59aaa1+_0xd2bec8(0x17c),logger[_0xd2bec8(0x169)](_0x40ff6d);const _0x2f5f78={};_0x2f5f78['type']=WS_EVENTS[_0xd2bec8(0x189)],_0x2f5f78[_0xd2bec8(0xeb)]=_0x40ff6d,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x2f5f78);const _0x243fb8={};_0x243fb8[_0xd2bec8(0x1bc)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x243fb8[_0xd2bec8(0xeb)]=_0xd2bec8(0x128)+_0x59aaa1,webSocketUtils[_0xd2bec8(0x18d)](_0x55b3d5,_0x243fb8),await webSocketUtils[_0xd2bec8(0x194)](0x7d0);}catch(_0x512fc1){if(_0x160873[_0xd2bec8(0x15c)](_0x10a055,![]))try{logger['info'](_0xd2bec8(0x140)),await _0x160873['RYKtM'](removeGridComponents,_0x3025ab,_0xc1165,_0x4d96ee,_0x5d3ce0,_0x507ed3),await _0x21bf48[_0xd2bec8(0x190)](_0x3025ab,global_registry[_0xd2bec8(0x1c1)]);}catch(_0x43defb){throw _0x43defb;}throw _0x512fc1;}}catch(_0x1fd119){const _0x599ebb='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1fd119+'\x20\x0a'+JSON['stringify'](_0x1fd119)+'\x20';if(_0x55b3d5){const _0x1cbdab={};_0x1cbdab[_0xd2bec8(0x1bc)]=WS_EVENTS[_0xd2bec8(0x189)],_0x1cbdab[_0xd2bec8(0xeb)]=_0x599ebb,webSocketUtils['sendEventToBackend'](_0x55b3d5,_0x1cbdab,_0x160873[_0xd2bec8(0xea)],!![]);}await webSocketUtils[_0xd2bec8(0x194)](0x7d0);const _0x4c9c47={};_0x4c9c47[_0xd2bec8(0xc4)]=_0x599ebb,await _0x160873[_0xd2bec8(0x1e8)](sendInstrumentationEvent,_0x312e6a,_0x160873[_0xd2bec8(0x1df)],messageTypes[_0xd2bec8(0x147)],_0x160873[_0xd2bec8(0x17e)],_0x4c9c47,_0x312e6a),logger[_0xd2bec8(0xc4)](_0x599ebb);}process[_0xd2bec8(0x117)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11_0x1a0b(_0x4dcf77,_0x326661){const _0x1729a7=a11_0x1729();return a11_0x1a0b=function(_0x1a0bde,_0x10cb18){_0x1a0bde=_0x1a0bde-0xde;let _0x5c0a5a=_0x1729a7[_0x1a0bde];return _0x5c0a5a;},a11_0x1a0b(_0x4dcf77,_0x326661);}function a11_0x1729(){const _0x70d228=['33716mxhWKb','8377011ZKaGhs','delete','builder','List\x20Grid\x20resources.','command','commandDir','recommendCommands','410jHIVna','desc','238602qxoTXC','../config/constants','MAdHO','2072712qeXGqe','150cOMWDc','vaBNB','4BPcguh','10172420EcXlCD','1678608wnKxUL','demandCommand','466462CyswdG','help'];a11_0x1729=function(){return _0x70d228;};return a11_0x1729();}const a11_0xd7d601=a11_0x1a0b;(function(_0x402cc3,_0x461aea){const _0x357978=a11_0x1a0b,_0x1c7b1a=_0x402cc3();while(!![]){try{const _0x19f5b4=parseInt(_0x357978(0xef))/0x1*(parseInt(_0x357978(0xf3))/0x2)+-parseInt(_0x357978(0xec))/0x3+-parseInt(_0x357978(0xdf))/0x4*(parseInt(_0x357978(0xe7))/0x5)+parseInt(_0x357978(0xed))/0x6*(parseInt(_0x357978(0xe9))/0x7)+parseInt(_0x357978(0xf1))/0x8+-parseInt(_0x357978(0xe0))/0x9+parseInt(_0x357978(0xf0))/0xa;if(_0x19f5b4===_0x461aea)break;else _0x1c7b1a['push'](_0x1c7b1a['shift']());}catch(_0x522866){_0x1c7b1a['push'](_0x1c7b1a['shift']());}}}(a11_0x1729,0xaab91));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0xd7d601(0xea));exports[a11_0xd7d601(0xe4)]=a11_0xd7d601(0xe1),exports[a11_0xd7d601(0xe8)]=a11_0xd7d601(0xe3),exports[a11_0xd7d601(0xe2)]=function(_0x27bf31){const _0x4f1fb6=a11_0xd7d601,_0xa4ae7d={};_0xa4ae7d[_0x4f1fb6(0xeb)]='delete_commands',_0xa4ae7d['vaBNB']=_0x4f1fb6(0xde);const _0x47c2d2=_0xa4ae7d;return _0x27bf31['usage'](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4f1fb6(0xe5)](_0x47c2d2[_0x4f1fb6(0xeb)])[_0x4f1fb6(0xf2)]()[_0x4f1fb6(0xe6)]()['strict']()[_0x4f1fb6(0xde)](_0x47c2d2[_0x4f1fb6(0xee)]);},exports['handler']=function(_0x14a6cd){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x104f(_0x40983d,_0x27e1fd){const _0xdfb807=a12_0xdfb8();return a12_0x104f=function(_0x104fde,_0x507289){_0x104fde=_0x104fde-0x1c4;let _0x20b5e0=_0xdfb807[_0x104fde];return _0x20b5e0;},a12_0x104f(_0x40983d,_0x27e1fd);}const a12_0x1ffe94=a12_0x104f;(function(_0x218c38,_0x583946){const _0x28afd5=a12_0x104f,_0x4f4ded=_0x218c38();while(!![]){try{const _0x1adbbd=-parseInt(_0x28afd5(0x24f))/0x1*(parseInt(_0x28afd5(0x21d))/0x2)+parseInt(_0x28afd5(0x1fe))/0x3+-parseInt(_0x28afd5(0x1da))/0x4+-parseInt(_0x28afd5(0x245))/0x5+parseInt(_0x28afd5(0x247))/0x6+-parseInt(_0x28afd5(0x1e1))/0x7+-parseInt(_0x28afd5(0x1e5))/0x8*(-parseInt(_0x28afd5(0x250))/0x9);if(_0x1adbbd===_0x583946)break;else _0x4f4ded['push'](_0x4f4ded['shift']());}catch(_0x442a0e){_0x4f4ded['push'](_0x4f4ded['shift']());}}}(a12_0xdfb8,0xa8121));const fs=require('fs'),util=require(a12_0x1ffe94(0x226)),request=require(a12_0x1ffe94(0x1ff)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x1ffe94(0x206)),{logger}=require(a12_0x1ffe94(0x21c)),{getCloudProviderObject}=require(a12_0x1ffe94(0x1d2)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x1ffe94(0x244)),{sendInstrumentationEvent}=require(a12_0x1ffe94(0x1f8)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x1ffe94(0x1f3)),{createK8sClient}=require(a12_0x1ffe94(0x1f0)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x1ffe94(0x23d)),promisifiedRequest=util[a12_0x1ffe94(0x1d8)](request);exports[a12_0x1ffe94(0x1f9)]=a12_0x1ffe94(0x241),exports['desc']=a12_0x1ffe94(0x1df),exports[a12_0x1ffe94(0x233)]=function(_0x5576b6){const _0x373ebe=a12_0x1ffe94,_0x3b402b={};_0x3b402b[_0x373ebe(0x207)]=_0x373ebe(0x202),_0x3b402b[_0x373ebe(0x1ed)]='string',_0x3b402b[_0x373ebe(0x24b)]=_0x373ebe(0x1e6);const _0x1aee7c=_0x3b402b,_0x4d5d76={};_0x4d5d76[_0x373ebe(0x1cc)]=_0x1aee7c[_0x373ebe(0x207)],_0x4d5d76[_0x373ebe(0x216)]=_0x1aee7c[_0x373ebe(0x1ed)];const _0x5764cf={};return _0x5764cf[_0x373ebe(0x23f)]=_0x4d5d76,_0x5576b6[_0x373ebe(0x1c7)](HELP_HEADER_MESSAGE[_0x373ebe(0x20b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x373ebe(0x1dc)](_0x5764cf)[_0x373ebe(0x1e6)](_0x1aee7c['igxLH'])[_0x373ebe(0x1e9)];},exports[a12_0x1ffe94(0x20f)]=async function(_0x39fee5){const _0x5ac9a3=a12_0x1ffe94,_0x5827e8={'HHRzf':_0x5ac9a3(0x202),'SmgVC':'string','VRswv':_0x5ac9a3(0x1e6),'myjul':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','hOBJH':function(_0x71b8a){return _0x71b8a();},'GHdYt':function(_0x457119,_0x128613){return _0x457119!==_0x128613;},'VdTuC':_0x5ac9a3(0x24c),'IvzLx':_0x5ac9a3(0x222),'uInUx':_0x5ac9a3(0x1e8),'nxKtX':function(_0x86ec77,_0x2db408,_0x5e6eac,_0x35445a,_0x19cd46,_0x7c25f2,_0x3c2be4){return _0x86ec77(_0x2db408,_0x5e6eac,_0x35445a,_0x19cd46,_0x7c25f2,_0x3c2be4);},'wqsbK':'delete-grid-called','fpsIp':'init-not-called','HRLIR':function(_0x3baa1a,_0x278049,_0x494f0b,_0x1a93eb,_0x34fe7e,_0x3ecd56,_0x1522cb){return _0x3baa1a(_0x278049,_0x494f0b,_0x1a93eb,_0x34fe7e,_0x3ecd56,_0x1522cb);},'cDein':function(_0x498b87,_0x1b6dfc){return _0x498b87===_0x1b6dfc;},'nTKJM':'cnkDp','RdLlJ':'fllFV','WKDsR':function(_0x3dedf3){return _0x3dedf3();},'FSgKZ':function(_0x29d69a,_0x5259a2,_0x3f17ef,_0x1181f7){return _0x29d69a(_0x5259a2,_0x3f17ef,_0x1181f7);},'pzlTF':'Browserstack','yCBdD':_0x5ac9a3(0x201),'zzZma':function(_0x11a1f2,_0xdbc8d2){return _0x11a1f2(_0xdbc8d2);},'QphRk':function(_0xa3af33,_0x13605d){return _0xa3af33===_0x13605d;},'qswNq':function(_0xc10e86,_0x2d121f){return _0xc10e86===_0x2d121f;},'VjtWu':function(_0xb8b8e8,_0x567937){return _0xb8b8e8===_0x567937;},'ynwRq':function(_0x10d2d6,_0x4bd6a8){return _0x10d2d6===_0x4bd6a8;},'QijuP':_0x5ac9a3(0x1f2),'YixYZ':_0x5ac9a3(0x230),'vDzyc':_0x5ac9a3(0x1e3),'Pmdop':function(_0x4068c0,_0x18bb6e,_0x272173,_0x58c320,_0x278da5,_0x3e77ac,_0x18c97c){return _0x4068c0(_0x18bb6e,_0x272173,_0x58c320,_0x278da5,_0x3e77ac,_0x18c97c);},'NOWkX':_0x5ac9a3(0x20c),'jjhtv':_0x5ac9a3(0x21b),'cUpVz':function(_0x40758c,_0x41ecb2){return _0x40758c!==_0x41ecb2;},'KPohX':_0x5ac9a3(0x220),'Herak':'pfQVb','qRjDv':_0x5ac9a3(0x210),'XOwhS':_0x5ac9a3(0x1fc),'cLjXn':_0x5ac9a3(0x1f5),'YRraz':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','QXxrX':_0x5ac9a3(0x24e),'ScSCe':function(_0x648240,_0x3aef4e){return _0x648240(_0x3aef4e);},'qdesi':function(_0x2e7f61,_0x198ee3,_0x325e3b,_0x3dc370,_0x422afd,_0x3eeb3d){return _0x2e7f61(_0x198ee3,_0x325e3b,_0x3dc370,_0x422afd,_0x3eeb3d);},'PcstK':_0x5ac9a3(0x242),'XpiCT':'server-error','BlzpY':function(_0x401b15,_0x12a221){return _0x401b15===_0x12a221;},'ALXHJ':function(_0x2afa0d,_0x46633a,_0x5d6196,_0x5f544f,_0x8ff9cd,_0x4beb77,_0x617e12){return _0x2afa0d(_0x46633a,_0x5d6196,_0x5f544f,_0x8ff9cd,_0x4beb77,_0x617e12);},'rnsFO':_0x5ac9a3(0x246),'kCgHR':function(_0x36c63e,_0x1851f2){return _0x36c63e===_0x1851f2;},'MtyKJ':function(_0x2ddf00,_0x3754ae,_0x3c8de7,_0x5eb121,_0x33ca6e,_0x42eaed,_0x2e2699){return _0x2ddf00(_0x3754ae,_0x3c8de7,_0x5eb121,_0x33ca6e,_0x42eaed,_0x2e2699);},'JxMfq':_0x5ac9a3(0x228),'jmIEl':function(_0x5d4a08,_0x4653be,_0x1784e8,_0x3caa7e,_0x4d3a03,_0x4155fd,_0xd41d66){return _0x5d4a08(_0x4653be,_0x1784e8,_0x3caa7e,_0x4d3a03,_0x4155fd,_0xd41d66);},'seoCQ':function(_0x165699,_0x4ccb39,_0x35591b,_0x207a6d,_0x36fa9f,_0x4f1aa4,_0x117e51){return _0x165699(_0x4ccb39,_0x35591b,_0x207a6d,_0x36fa9f,_0x4f1aa4,_0x117e51);},'ATdfT':'unknown-error'};try{global_registry[_0x5ac9a3(0x1e2)]=_0x5827e8[_0x5ac9a3(0x20d)](uuidv4);!fs[_0x5ac9a3(0x1d0)](_0x5827e8['hOBJH'](getCredentialsPath))&&(_0x5827e8[_0x5ac9a3(0x224)](_0x5827e8[_0x5ac9a3(0x1ec)],_0x5827e8['IvzLx'])?(console[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x24d)]),await _0x5827e8[_0x5ac9a3(0x21a)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x1f4)],null,_0x39fee5),process['exit'](0x1)):_0x568f2c=_0x5ac9a3(0x203)+_0x19d1cb['name']+'\x22\x20and\x20ID\x20'+_0x48f78d['id']+_0x5ac9a3(0x1c8)+_0xffa356[_0x5ac9a3(0x200)]+_0x5ac9a3(0x22b)+_0x579b41[_0x5ac9a3(0x1db)]+_0x5ac9a3(0x22c));_0x5827e8[_0x5ac9a3(0x1cb)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1d1)],null,null,_0x39fee5);if(!_0x39fee5[_0x5ac9a3(0x1f7)]){if(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x251)],_0x5827e8[_0x5ac9a3(0x232)])){const _0x33b05f={};_0x33b05f[_0x5ac9a3(0x1cc)]=_0x5827e8[_0x5ac9a3(0x22f)],_0x33b05f['type']=_0x5827e8[_0x5ac9a3(0x238)];const _0x554538={};return _0x554538[_0x5ac9a3(0x23f)]=_0x33b05f,_0x202727['usage'](_0x251f6d[_0x5ac9a3(0x20b)])[_0x5ac9a3(0x204)](_0x37a5b5)['options'](_0x554538)[_0x5ac9a3(0x1e6)](_0x5827e8[_0x5ac9a3(0x1eb)])[_0x5ac9a3(0x1e9)];}else console[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x209)]),process[_0x5ac9a3(0x214)](0x1);}const _0x412fdb=JSON[_0x5ac9a3(0x1f6)](fs[_0x5ac9a3(0x1ce)](_0x5827e8['WKDsR'](getCredentialsPath))),[_0x408363,_0x27722d]=await _0x5827e8[_0x5ac9a3(0x1ee)](getGridDetails,_0x412fdb[_0x5ac9a3(0x1d3)]['username'],_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1e0)],_0x39fee5[_0x5ac9a3(0x1f7)]);if(_0x27722d){const _0x30a118=_0x27722d[_0x5ac9a3(0x212)];let _0x493883=_0x5ac9a3(0x203)+_0x30a118[_0x5ac9a3(0x231)]+_0x5ac9a3(0x1c6)+_0x30a118['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x860cec;_0x27722d[_0x5ac9a3(0x1cf)]&&_0x5827e8[_0x5ac9a3(0x239)](_0x27722d['clusterSpawnedVia'],_0x5827e8[_0x5ac9a3(0x1fb)])&&(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x1d4)],_0x5827e8[_0x5ac9a3(0x1d4)])?_0x493883=_0x5ac9a3(0x203)+_0x30a118[_0x5ac9a3(0x231)]+_0x5ac9a3(0x1c6)+_0x30a118['id']+_0x5ac9a3(0x1c8)+_0x30a118['clusterName']+_0x5ac9a3(0x22b)+_0x30a118[_0x5ac9a3(0x1db)]+_0x5ac9a3(0x22c):_0x13621d[_0x5ac9a3(0x1fa)]={});_0x860cec=await _0x5827e8['zzZma'](inputConfirmation,_0x493883);(_0x5827e8[_0x5ac9a3(0x239)](_0x860cec,undefined)||_0x5827e8[_0x5ac9a3(0x225)](_0x860cec,null)||!(_0x5827e8[_0x5ac9a3(0x205)](_0x860cec[_0x5ac9a3(0x23c)](),'y')||_0x5827e8['VjtWu'](_0x860cec[_0x5ac9a3(0x23c)](),'n')))&&(_0x5827e8[_0x5ac9a3(0x211)](_0x5827e8[_0x5ac9a3(0x22e)],_0x5827e8['YixYZ'])?(_0x193bf8[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x209)]),_0x4b8fd2[_0x5ac9a3(0x214)](0x1)):(console[_0x5ac9a3(0x221)](_0x5827e8['vDzyc']),await _0x5827e8[_0x5ac9a3(0x1c5)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['NOWkX'],null,_0x39fee5),process[_0x5ac9a3(0x214)](0x1)));_0x5827e8[_0x5ac9a3(0x225)](_0x860cec[_0x5ac9a3(0x23c)](),'n')&&(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x23b)],_0x5827e8[_0x5ac9a3(0x23b)])?process[_0x5ac9a3(0x214)](0x0):_0x3cefe9[_0x5ac9a3(0x1c4)]('Cluster:\x20'+_0x29ac6b[_0x5ac9a3(0x200)]+_0x5ac9a3(0x20a)));global_registry[_0x5ac9a3(0x1c9)]=_0x30a118[_0x5ac9a3(0x1d5)];const _0x51dc44=_0x30a118['cloudProvider'],_0x3d9128=_0x5827e8['FSgKZ'](getCloudProviderObject,_0x51dc44,_0x30a118['clusterName'],_0x30a118[_0x5ac9a3(0x231)]),_0x3f7a6c=_0x412fdb[_0x5ac9a3(0x1fa)];if(_0x5827e8['QphRk'](_0x3f7a6c[_0x51dc44],undefined)){if(_0x5827e8[_0x5ac9a3(0x218)](_0x5827e8[_0x5ac9a3(0x213)],_0x5827e8[_0x5ac9a3(0x237)])){logger['info'](_0x5827e8[_0x5ac9a3(0x240)]);_0x5827e8[_0x5ac9a3(0x239)](_0x412fdb[_0x5ac9a3(0x1fa)],undefined)&&(_0x5827e8[_0x5ac9a3(0x224)](_0x5827e8[_0x5ac9a3(0x1d6)],_0x5827e8[_0x5ac9a3(0x1e7)])?_0x412fdb[_0x5ac9a3(0x1fa)]={}:_0x4446b6[_0x5ac9a3(0x214)](0x0));_0x412fdb[_0x5ac9a3(0x1fa)][_0x51dc44]={};const _0x4ceef0=await _0x5827e8[_0x5ac9a3(0x1ee)](inputCloudProviderKeys,_0x51dc44,_0x412fdb,_0x3d9128);fs[_0x5ac9a3(0x229)](_0x5827e8[_0x5ac9a3(0x23a)](getCredentialsPath),JSON[_0x5ac9a3(0x1dd)](_0x4ceef0)),logger['debug'](_0x5827e8[_0x5ac9a3(0x1cd)]);}else _0x48c46b[_0x5ac9a3(0x212)](_0x5ac9a3(0x21e)),_0x185b61[_0x5ac9a3(0x214)](0x0);}else logger[_0x5ac9a3(0x212)](_0x5827e8['QXxrX']),await _0x3d9128['fetchLocalCreds'](_0x3f7a6c);_0x3d9128[_0x5ac9a3(0x1d7)]();const _0x33ff5f=_0x5827e8[_0x5ac9a3(0x1d9)](kebabCase,_0x30a118[_0x5ac9a3(0x231)]),[_0x1a31ab,_0x46943b,_0x2b67e9,_0x77c032,_0xa09b94,_0x40dff9]=await _0x5827e8[_0x5ac9a3(0x248)](createK8sClient,_0x3d9128);await _0x5827e8['qdesi'](removeGridComponents,_0x1a31ab,_0x46943b,_0x2b67e9,_0x77c032,_0x33ff5f);if(_0x27722d[_0x5ac9a3(0x1cf)]){const _0x474ac0=await _0x3d9128[_0x5ac9a3(0x249)]();_0x474ac0?await _0x3d9128[_0x5ac9a3(0x20e)](_0x1a31ab,_0x30a118[_0x5ac9a3(0x1d5)]):logger[_0x5ac9a3(0x1c4)](_0x5ac9a3(0x1ef)+_0x30a118['clusterName']+_0x5ac9a3(0x20a));}const _0x3086ac=_0x5ac9a3(0x217)+AG_API_URL+_0x5ac9a3(0x24a)+_0x39fee5[_0x5ac9a3(0x1f7)],_0x5178f5={};_0x5178f5[_0x5ac9a3(0x1de)]=_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1de)],_0x5178f5[_0x5ac9a3(0x1e0)]=_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1e0)];const _0x35b45f={};_0x35b45f[_0x5ac9a3(0x22a)]=_0x3086ac,_0x35b45f[_0x5ac9a3(0x236)]=_0x5827e8['PcstK'],_0x35b45f[_0x5ac9a3(0x208)]=_0x5178f5;const _0x4503b1=_0x35b45f,_0x5e9417=await _0x5827e8[_0x5ac9a3(0x1d9)](promisifiedRequest,_0x4503b1);_0x5827e8[_0x5ac9a3(0x218)](_0x5e9417,null)&&_0x5827e8[_0x5ac9a3(0x224)](_0x5e9417,undefined)&&_0x5827e8[_0x5ac9a3(0x239)](_0x5e9417[_0x5ac9a3(0x21f)],0xc8)&&(logger[_0x5ac9a3(0x212)](_0x5ac9a3(0x21e)),process['exit'](0x0)),logger[_0x5ac9a3(0x221)](_0x5ac9a3(0x223)+JSON[_0x5ac9a3(0x1dd)](_0x5e9417)),await _0x5827e8[_0x5ac9a3(0x1cb)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x227)],_0x408363,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}_0x5827e8[_0x5ac9a3(0x1ea)](_0x408363[_0x5ac9a3(0x21f)],0x191)&&(logger[_0x5ac9a3(0x221)](_0x5ac9a3(0x234)),await _0x5827e8[_0x5ac9a3(0x219)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes['ERROR'],_0x5827e8[_0x5ac9a3(0x22d)],null,_0x39fee5),process['exit'](0x1)),_0x5827e8['kCgHR'](_0x408363[_0x5ac9a3(0x21f)],0x190)&&(logger['error'](JSON[_0x5ac9a3(0x1f6)](_0x408363[_0x5ac9a3(0x1ca)])['message']),await _0x5827e8[_0x5ac9a3(0x1fd)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x23e)],null,_0x39fee5),process[_0x5ac9a3(0x214)](0x1)),logger['error'](_0x5ac9a3(0x215)+JSON[_0x5ac9a3(0x1dd)](_0x408363)),await _0x5827e8[_0x5ac9a3(0x1f1)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['XpiCT'],_0x408363,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}catch(_0xc75ba1){logger[_0x5ac9a3(0x221)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0xc75ba1[_0x5ac9a3(0x235)]),await _0x5827e8['seoCQ'](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['ATdfT'],_0xc75ba1,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}};function a12_0xdfb8(){const _0x2dbedc=['options','stringify','username','Delete\x20an\x20Automation\x20grid.','password','8722756piHfBg','requestId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ERROR','765976upeIhM','help','cLjXn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','BlzpY','VRswv','VdTuC','jDIqI','FSgKZ','Cluster:\x20','../../utils/createk8sClient','jmIEl','CFVrj','../../utils/userInput','fpsIp','MFgFW','parse','gridId','../../utils/instrumentationUtils','command','cloudProvider','pzlTF','ucOBZ','MtyKJ','148317iuLymm','request','clusterName','RfrhM','Pass\x20the\x20ID\x20of\x20the\x20Grid','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','epilogue','qswNq','../../config/constants','lOmQb','auth','myjul','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','delete','invalid-input','hOBJH','deleteCluster','handler','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','ynwRq','info','KPohX','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','type','https://','cUpVz','ALXHJ','nxKtX','XqYhA','../../config/logger','5212KQojHA','Succesfully\x20deleted\x20the\x20grid','statusCode','PAcOk','error','KJaoY','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','GHdYt','QphRk','util','XpiCT','invalid-grid-id','writeFileSync','url','\x22\x20with\x20ID\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','rnsFO','QijuP','HHRzf','VsIgV','name','RdLlJ','builder','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','method','Herak','SmgVC','cDein','WKDsR','jjhtv','toLowerCase','../../utils/utilityMethods','JxMfq','grid-id','qRjDv','grid','DELETE','wqsbK','../../utils/gridComponents','166805cNREAd','unauthorised','3760326YDOIzf','ScSCe','isBrowserstackCluster','/packages/cli/grid/','igxLH','NZGuo','uInUx','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','186EeNqRj','171VVczgJ','nTKJM','warn','Pmdop','\x22\x20and\x20ID\x20','usage','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','clusterRegion','body','HRLIR','description','YRraz','readFileSync','onlyGridInCluster','existsSync','INFO','../../cloudproviders/utils','Browserstack','yCBdD','region','XOwhS','configureIfNotConfigured','promisify','zzZma','171004yiHIoO','clusterId'];a12_0xdfb8=function(){return _0x2dbedc;};return a12_0xdfb8();}
|
|
1
|
+
function a12_0x47f7(){const _0x328592=['stack','bMHGm','kZULv','dTJyu','FOslJ','epilogue','1474xxOHqq','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Cluster:\x20','GlcKc','SrKCe','JtbXM','server-error','737463IyHMuX','help','FEdbG','message','wShIG','685325FhnNWL','WsPdq','TeLDR','init-not-called','zNGtj','debug','2473566YDKkcZ','mXzMy','parse','FuEIE','../../config/constants','QIdiT','configureIfNotConfigured','Succesfully\x20deleted\x20the\x20grid','fSKpf','Browserstack','uuid','usage','FPSxm','XcIDl','existsSync','info','argv','pLBQq','9EfRlDv','TUaPy','method','8503550dJlrIW','gryTb','exit','../../config/logger','puxxi','desc','cyJCp','wBYNu','stringify','description','cloudProvider','\x22\x20with\x20ID\x20','205AvRXRb','https://','clusterName','YXOTi','password','Fohox','QoIjI','type','Failed\x20to\x20delete\x20resources!\x20Error:\x20','promisify','lBLNG','viVUB','pRqCt','Pass\x20the\x20ID\x20of\x20the\x20Grid','grid-id','delete-grid-called','INFO','UiCPa','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','uoigw','command','../../utils/gridComponents','YCFdc','lMrFL','../../utils/userInput','isBrowserstackCluster','eIZSg','isWLY','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','ERPZZ','name','wRISk','../../cloudproviders/utils','statusCode','UNUEm','warn','WrAmp','error','StDOu','region','vkMQr','request','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','fetchLocalCreds','LGJXE','handler','gridId','\x22\x20and\x20ID\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Eruvo','username','Delete\x20an\x20Automation\x20grid.','11bjQfmQ','delete','KMAUk','MDKpf','586432DzzmDF','ERROR','xoqDc','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','AHJBo','JTzcd','jiXDJ','unauthorised','deleteCluster','1680776dQFWCM','VgJkC','aahGT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','onlyGridInCluster','8BRKPgg','zRXIA','SGhFX','BOUeV','toLowerCase','DELETE','grid','/packages/cli/grid/','clusterId','flDyh'];a12_0x47f7=function(){return _0x328592;};return a12_0x47f7();}const a12_0x850af5=a12_0x5c43;function a12_0x5c43(_0x3cd9a6,_0x1740f1){const _0x47f77f=a12_0x47f7();return a12_0x5c43=function(_0x5c4324,_0x569777){_0x5c4324=_0x5c4324-0xdf;let _0xe25f41=_0x47f77f[_0x5c4324];return _0xe25f41;},a12_0x5c43(_0x3cd9a6,_0x1740f1);}(function(_0x7ce0ce,_0x134bbd){const _0x5deb03=a12_0x5c43,_0xe41a23=_0x7ce0ce();while(!![]){try{const _0x492f94=parseInt(_0x5deb03(0x140))/0x1*(parseInt(_0x5deb03(0x10d))/0x2)+-parseInt(_0x5deb03(0x114))/0x3*(parseInt(_0x5deb03(0xfd))/0x4)+-parseInt(_0x5deb03(0x119))/0x5+-parseInt(_0x5deb03(0x11f))/0x6+parseInt(_0x5deb03(0xef))/0x7+-parseInt(_0x5deb03(0xf8))/0x8*(-parseInt(_0x5deb03(0x131))/0x9)+-parseInt(_0x5deb03(0x134))/0xa*(-parseInt(_0x5deb03(0xeb))/0xb);if(_0x492f94===_0x134bbd)break;else _0xe41a23['push'](_0xe41a23['shift']());}catch(_0x688838){_0xe41a23['push'](_0xe41a23['shift']());}}}(a12_0x47f7,0x3e189));const fs=require('fs'),util=require('util'),request=require(a12_0x850af5(0xe0)),{v4:uuidv4}=require(a12_0x850af5(0x129)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x850af5(0x123)),{logger}=require(a12_0x850af5(0x137)),{getCloudProviderObject}=require(a12_0x850af5(0x161)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x850af5(0x155)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x850af5(0x158)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util[a12_0x850af5(0x149)](request);exports[a12_0x850af5(0x154)]=a12_0x850af5(0x103),exports[a12_0x850af5(0x139)]=a12_0x850af5(0xea),exports['builder']=function(_0x3496a6){const _0x36625e=a12_0x850af5,_0x5bfed2={};_0x5bfed2[_0x36625e(0x163)]=_0x36625e(0x14d),_0x5bfed2[_0x36625e(0xed)]='string',_0x5bfed2[_0x36625e(0x108)]=_0x36625e(0x115);const _0x229995=_0x5bfed2,_0x531f36={};_0x531f36[_0x36625e(0x13d)]=_0x229995[_0x36625e(0x163)],_0x531f36[_0x36625e(0x147)]=_0x229995[_0x36625e(0xed)];const _0x2590dc={};return _0x2590dc[_0x36625e(0x14e)]=_0x531f36,_0x3496a6[_0x36625e(0x12a)](HELP_HEADER_MESSAGE[_0x36625e(0xec)])[_0x36625e(0x10c)](HELP_FOOTER_MESSAGE)['options'](_0x2590dc)[_0x36625e(0x115)](_0x229995['bMHGm'])[_0x36625e(0x12f)];},exports[a12_0x850af5(0xe4)]=async function(_0x4d1107){const _0x2a787d=a12_0x850af5,_0xfd00b1={'xoqDc':_0x2a787d(0x14d),'WsPdq':'string','oBpmJ':_0x2a787d(0x115),'dhZPb':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Eruvo':function(_0x28020d){return _0x28020d();},'SrKCe':function(_0x2b9b18){return _0x2b9b18();},'aahGT':function(_0x5af638,_0x2b6784){return _0x5af638!==_0x2b6784;},'vkMQr':'GFEvI','YXOTi':_0x2a787d(0x132),'gryTb':_0x2a787d(0xe7),'FPSxm':function(_0xd3c5cb,_0x3b9d7a,_0x283801,_0x35e29f,_0x481c7d,_0x48bd0d,_0x21c93c){return _0xd3c5cb(_0x3b9d7a,_0x283801,_0x35e29f,_0x481c7d,_0x48bd0d,_0x21c93c);},'eIZSg':_0x2a787d(0x14f),'FOslJ':_0x2a787d(0x11c),'pRqCt':function(_0x46849f,_0x368b00,_0x364fc5,_0x287f23,_0x11f7fb,_0x54a2ec,_0x53245a){return _0x46849f(_0x368b00,_0x364fc5,_0x287f23,_0x11f7fb,_0x54a2ec,_0x53245a);},'babzS':_0x2a787d(0xfe),'uoigw':_0x2a787d(0x145),'BOUeV':function(_0x4a17f8,_0x66162f,_0x4ba415,_0x1a8dd9){return _0x4a17f8(_0x66162f,_0x4ba415,_0x1a8dd9);},'FEdbG':function(_0xea9f23,_0xa7a1b7){return _0xea9f23===_0xa7a1b7;},'zNGtj':_0x2a787d(0x128),'kZULv':'RxNZL','pLBQq':_0x2a787d(0x15e),'WrAmp':function(_0x40591c,_0x1a21be){return _0x40591c(_0x1a21be);},'FuEIE':function(_0x57aee6,_0x53ba8d){return _0x57aee6===_0x53ba8d;},'LGJXE':function(_0x443327,_0x4e2a98){return _0x443327!==_0x4e2a98;},'xyMke':_0x2a787d(0x120),'SrvXg':_0x2a787d(0xf4),'lMrFL':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','wShIG':'invalid-input','GlcKc':function(_0x3c1486,_0x20e307){return _0x3c1486===_0x20e307;},'XcIDl':_0x2a787d(0x13b),'MDKpf':_0x2a787d(0x160),'isWLY':function(_0x5aba68,_0x1a660f,_0x1853b6,_0x5ec62d){return _0x5aba68(_0x1a660f,_0x1853b6,_0x5ec62d);},'puxxi':function(_0x31f40c,_0x1dab9d){return _0x31f40c===_0x1dab9d;},'SGhFX':'DZwsY','flDyh':'FkNdk','cyJCp':_0x2a787d(0x15d),'AHJBo':'yMVOp','jiXDJ':'xVYNA','fSKpf':function(_0x3fb2da,_0x1b7c91,_0x3bb2bc,_0x201947){return _0x3fb2da(_0x1b7c91,_0x3bb2bc,_0x201947);},'viVUB':function(_0x46483a){return _0x46483a();},'QXklD':_0x2a787d(0x15c),'cANCm':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','dTJyu':function(_0x1eeb21,_0xdb59ed,_0x1a182d,_0x52bd99,_0x4958cd,_0x2f8ad0){return _0x1eeb21(_0xdb59ed,_0x1a182d,_0x52bd99,_0x4958cd,_0x2f8ad0);},'StDOu':_0x2a787d(0x102),'TeLDR':function(_0x68d30a,_0x496108){return _0x68d30a(_0x496108);},'UiCPa':function(_0x3e1566,_0x17e683){return _0x3e1566!==_0x17e683;},'QIdiT':function(_0x1f612d,_0xfdccd6,_0x3a63dd,_0x13812a,_0x4360d3,_0x562999,_0x591073){return _0x1f612d(_0xfdccd6,_0x3a63dd,_0x13812a,_0x4360d3,_0x562999,_0x591073);},'QoIjI':_0x2a787d(0x113),'JtbXM':function(_0xef921d,_0x430824,_0x1e6747,_0x510db5,_0x46fdca,_0x5030a9,_0x21de44){return _0xef921d(_0x430824,_0x1e6747,_0x510db5,_0x46fdca,_0x5030a9,_0x21de44);},'YCFdc':_0x2a787d(0xf6),'CTJPe':'invalid-grid-id','lBLNG':function(_0xc55582,_0x1aeb00,_0xf6aa36,_0x595fcf,_0x6fbca0,_0x5145f7,_0x4e1993){return _0xc55582(_0x1aeb00,_0xf6aa36,_0x595fcf,_0x6fbca0,_0x5145f7,_0x4e1993);},'NcjDI':function(_0x1ab381,_0xfc5ea1,_0x56bb07,_0xd30810,_0x51d973,_0x4087e9,_0x1a8a90){return _0x1ab381(_0xfc5ea1,_0x56bb07,_0xd30810,_0x51d973,_0x4087e9,_0x1a8a90);},'VgJkC':'unknown-error'};try{global_registry['requestId']=_0xfd00b1[_0x2a787d(0xe8)](uuidv4);!fs[_0x2a787d(0x12d)](_0xfd00b1[_0x2a787d(0x111)](getCredentialsPath))&&(_0xfd00b1[_0x2a787d(0xfa)](_0xfd00b1[_0x2a787d(0xdf)],_0xfd00b1[_0x2a787d(0x143)])?(console[_0x2a787d(0x166)](_0xfd00b1[_0x2a787d(0x135)]),await _0xfd00b1[_0x2a787d(0x12b)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1['eIZSg'],messageTypes['ERROR'],_0xfd00b1[_0x2a787d(0x10b)],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)):_0x2f1589[_0x2a787d(0x136)](0x0));_0xfd00b1[_0x2a787d(0x14c)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0x150)],null,null,_0x4d1107);!_0x4d1107[_0x2a787d(0xe5)]&&(_0xfd00b1['aahGT'](_0xfd00b1['babzS'],_0xfd00b1[_0x2a787d(0x153)])?(console['error'](_0xfd00b1['dhZPb']),process[_0x2a787d(0x136)](0x1)):_0xce270f[_0x2a787d(0x13e)]={});const _0x4ec1ca=JSON[_0x2a787d(0x121)](fs['readFileSync'](_0xfd00b1[_0x2a787d(0x111)](getCredentialsPath))),[_0x1cf593,_0x3f1e96]=await _0xfd00b1[_0x2a787d(0x100)](getGridDetails,_0x4ec1ca[_0x2a787d(0x128)][_0x2a787d(0xe9)],_0x4ec1ca[_0x2a787d(0x128)][_0x2a787d(0x144)],_0x4d1107[_0x2a787d(0xe5)]);if(_0x3f1e96){const _0xa6a83b=_0x3f1e96[_0x2a787d(0x12e)];let _0x4355be=_0x2a787d(0x10e)+_0xa6a83b[_0x2a787d(0x15f)]+_0x2a787d(0xe6)+_0xa6a83b['id']+_0x2a787d(0x152),_0x11d702;if(_0x3f1e96['onlyGridInCluster']&&_0xfd00b1['FEdbG'](_0x3f1e96['clusterSpawnedVia'],_0xfd00b1[_0x2a787d(0x11d)])){if(_0xfd00b1['FEdbG'](_0xfd00b1[_0x2a787d(0x109)],_0xfd00b1[_0x2a787d(0x130)])){const _0x16e01b={};_0x16e01b[_0x2a787d(0x13d)]=_0xfd00b1[_0x2a787d(0xf1)],_0x16e01b[_0x2a787d(0x147)]=_0xfd00b1[_0x2a787d(0x11a)];const _0x40d910={};return _0x40d910[_0x2a787d(0x14e)]=_0x16e01b,_0x3b1d67[_0x2a787d(0x12a)](_0x1979db[_0x2a787d(0xec)])[_0x2a787d(0x10c)](_0x5820d1)['options'](_0x40d910)['help'](_0xfd00b1['oBpmJ'])[_0x2a787d(0x12f)];}else _0x4355be=_0x2a787d(0x10e)+_0xa6a83b[_0x2a787d(0x15f)]+_0x2a787d(0xe6)+_0xa6a83b['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0xa6a83b[_0x2a787d(0x142)]+_0x2a787d(0x13f)+_0xa6a83b['clusterId']+_0x2a787d(0x152);}_0x11d702=await _0xfd00b1[_0x2a787d(0x165)](inputConfirmation,_0x4355be);(_0xfd00b1[_0x2a787d(0x116)](_0x11d702,undefined)||_0xfd00b1['FEdbG'](_0x11d702,null)||!(_0xfd00b1['FEdbG'](_0x11d702['toLowerCase'](),'y')||_0xfd00b1[_0x2a787d(0x122)](_0x11d702[_0x2a787d(0x101)](),'n')))&&(_0xfd00b1[_0x2a787d(0xe3)](_0xfd00b1['xyMke'],_0xfd00b1['SrvXg'])?(console[_0x2a787d(0x166)](_0xfd00b1[_0x2a787d(0x157)]),await _0xfd00b1[_0x2a787d(0x14c)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes['ERROR'],_0xfd00b1[_0x2a787d(0x118)],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)):(_0x427803[_0x2a787d(0x12e)](_0x2a787d(0x126)),_0x5be189[_0x2a787d(0x136)](0x0)));_0xfd00b1[_0x2a787d(0x116)](_0x11d702[_0x2a787d(0x101)](),'n')&&(_0xfd00b1[_0x2a787d(0x110)](_0xfd00b1[_0x2a787d(0x12c)],_0xfd00b1[_0x2a787d(0xee)])?_0x538705['warn'](_0x2a787d(0x10f)+_0x63acbd[_0x2a787d(0x142)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):process[_0x2a787d(0x136)](0x0));global_registry['clusterRegion']=_0xa6a83b[_0x2a787d(0x168)];const _0x27ae28=_0xa6a83b['cloudProvider'],_0xd6f483=_0xfd00b1[_0x2a787d(0x15b)](getCloudProviderObject,_0x27ae28,_0xa6a83b[_0x2a787d(0x142)],_0xa6a83b['name']),_0xba9c61=_0x4ec1ca['cloudProvider'];if(_0xfd00b1[_0x2a787d(0x138)](_0xba9c61[_0x27ae28],undefined)){if(_0xfd00b1[_0x2a787d(0x122)](_0xfd00b1[_0x2a787d(0xff)],_0xfd00b1[_0x2a787d(0x106)]))_0x4413ce=_0x2a787d(0x10e)+_0x43255e[_0x2a787d(0x15f)]+'\x22\x20and\x20ID\x20'+_0xa467db['id']+_0x2a787d(0xf2)+_0xfc2b86['clusterName']+_0x2a787d(0x13f)+_0x3a0149[_0x2a787d(0x105)]+_0x2a787d(0x152);else{logger[_0x2a787d(0x12e)](_0xfd00b1[_0x2a787d(0x13a)]);_0xfd00b1[_0x2a787d(0x122)](_0x4ec1ca[_0x2a787d(0x13e)],undefined)&&(_0xfd00b1['puxxi'](_0xfd00b1[_0x2a787d(0xf3)],_0xfd00b1[_0x2a787d(0xf5)])?(_0x5b17a3[_0x2a787d(0x166)](_0xfd00b1['dhZPb']),_0x35beb2[_0x2a787d(0x136)](0x1)):_0x4ec1ca[_0x2a787d(0x13e)]={});_0x4ec1ca[_0x2a787d(0x13e)][_0x27ae28]={};const _0x3ed94c=await _0xfd00b1[_0x2a787d(0x127)](inputCloudProviderKeys,_0x27ae28,_0x4ec1ca,_0xd6f483);fs['writeFileSync'](_0xfd00b1[_0x2a787d(0x14b)](getCredentialsPath),JSON[_0x2a787d(0x13c)](_0x3ed94c)),logger[_0x2a787d(0x11e)](_0xfd00b1['QXklD']);}}else logger['info'](_0xfd00b1['cANCm']),await _0xd6f483[_0x2a787d(0xe2)](_0xba9c61);_0xd6f483[_0x2a787d(0x125)]();const _0x272418=_0xfd00b1['WrAmp'](kebabCase,_0xa6a83b[_0x2a787d(0x15f)]),[_0x7d34e,_0x209d4d,_0x1ac5e4,_0x37ff61,_0x5a3d7a,_0x464b45]=await _0xfd00b1['WrAmp'](createK8sClient,_0xd6f483);await _0xfd00b1[_0x2a787d(0x10a)](removeGridComponents,_0x7d34e,_0x209d4d,_0x1ac5e4,_0x37ff61,_0x272418);if(_0x3f1e96[_0x2a787d(0xfc)]){const _0x509938=await _0xd6f483[_0x2a787d(0x159)]();_0x509938?await _0xd6f483[_0x2a787d(0xf7)](_0x7d34e,_0xa6a83b[_0x2a787d(0x168)]):logger[_0x2a787d(0x164)]('Cluster:\x20'+_0xa6a83b[_0x2a787d(0x142)]+_0x2a787d(0xe1));}const _0x459fd4=_0x2a787d(0x141)+AG_API_URL+_0x2a787d(0x104)+_0x4d1107[_0x2a787d(0xe5)],_0xbfe28b={};_0xbfe28b[_0x2a787d(0xe9)]=_0x4ec1ca['Browserstack'][_0x2a787d(0xe9)],_0xbfe28b[_0x2a787d(0x144)]=_0x4ec1ca[_0x2a787d(0x128)][_0x2a787d(0x144)];const _0x26652f={};_0x26652f['url']=_0x459fd4,_0x26652f[_0x2a787d(0x133)]=_0xfd00b1[_0x2a787d(0x167)],_0x26652f['auth']=_0xbfe28b;const _0x3d60bd=_0x26652f,_0x330496=await _0xfd00b1[_0x2a787d(0x11b)](promisifiedRequest,_0x3d60bd);_0xfd00b1[_0x2a787d(0xfa)](_0x330496,null)&&_0xfd00b1[_0x2a787d(0x151)](_0x330496,undefined)&&_0xfd00b1[_0x2a787d(0x138)](_0x330496[_0x2a787d(0x162)],0xc8)&&(logger[_0x2a787d(0x12e)](_0x2a787d(0x126)),process[_0x2a787d(0x136)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x2a787d(0x13c)](_0x330496)),await _0xfd00b1[_0x2a787d(0x124)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1['eIZSg'],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0x146)],_0x1cf593,_0x4d1107),process[_0x2a787d(0x136)](0x1);}_0xfd00b1[_0x2a787d(0x138)](_0x1cf593['statusCode'],0x191)&&(logger[_0x2a787d(0x166)](_0x2a787d(0xfb)),await _0xfd00b1[_0x2a787d(0x112)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0x156)],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)),_0xfd00b1[_0x2a787d(0x116)](_0x1cf593[_0x2a787d(0x162)],0x190)&&(logger['error'](JSON['parse'](_0x1cf593['body'])[_0x2a787d(0x117)]),await _0xfd00b1['QIdiT'](sendInstrumentationEvent,_0x4d1107,_0xfd00b1['eIZSg'],messageTypes[_0x2a787d(0xf0)],_0xfd00b1['CTJPe'],null,_0x4d1107),process[_0x2a787d(0x136)](0x1)),logger[_0x2a787d(0x166)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2a787d(0x13c)](_0x1cf593)),await _0xfd00b1[_0x2a787d(0x14a)](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0x146)],_0x1cf593,_0x4d1107),process[_0x2a787d(0x136)](0x1);}catch(_0x205a20){logger['error'](_0x2a787d(0x148)+_0x205a20[_0x2a787d(0x107)]),await _0xfd00b1['NcjDI'](sendInstrumentationEvent,_0x4d1107,_0xfd00b1[_0x2a787d(0x15a)],messageTypes[_0x2a787d(0xf0)],_0xfd00b1[_0x2a787d(0xf9)],_0x205a20,_0x4d1107),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13_0x46a5d8=a13_0x337b;(function(_0x4691b0,_0x220cb6){const _0x17c03d=a13_0x337b,_0x21a454=_0x4691b0();while(!![]){try{const _0xce1e29=parseInt(_0x17c03d(0x20e))/0x1+parseInt(_0x17c03d(0x1d9))/0x2+parseInt(_0x17c03d(0x208))/0x3+parseInt(_0x17c03d(0x204))/0x4*(-parseInt(_0x17c03d(0x20f))/0x5)+-parseInt(_0x17c03d(0x216))/0x6*(parseInt(_0x17c03d(0x218))/0x7)+parseInt(_0x17c03d(0x1b6))/0x8*(-parseInt(_0x17c03d(0x1da))/0x9)+-parseInt(_0x17c03d(0x1fa))/0xa*(-parseInt(_0x17c03d(0x1d2))/0xb);if(_0xce1e29===_0x220cb6)break;else _0x21a454['push'](_0x21a454['shift']());}catch(_0x513372){_0x21a454['push'](_0x21a454['shift']());}}}(a13_0x4a99,0x8e24e));function a13_0x337b(_0x32a7fd,_0xac42cb){const _0x4a9971=a13_0x4a99();return a13_0x337b=function(_0x337b86,_0x5229b2){_0x337b86=_0x337b86-0x1b2;let _0x3d2918=_0x4a9971[_0x337b86];return _0x3d2918;},a13_0x337b(_0x32a7fd,_0xac42cb);}function a13_0x4a99(){const _0x55bac7=['uuid','BROWSERSTACK_ACCESS_KEY','../utils/utilityMethods','statusCode','mfATT','xJrYl','parse','INFO','options','readFileSync','PWUlY','writeFileSync','https://','pfDjG','GQQgL','bstackUsername','zwSJm','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','KYWeW','../utils/instrumentationUtils','debug','BROWSERSTACK_USERNAME','AKLhQ','WtSeW','../config/logger','init','eZuYV','9064mHvvDF','../config/constants','env','AWegI','error','recommendCommands','qQwyi','552902cjGUES','19539caXkmF','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','Browserstack','kGlkM','oesWX','strict','zsYlL','igvOq','mkdirSync','iWaGv','epilogue','string','exit','command','GET','TFAUW','apOyD','nkaAy','handler','OHhum','builder','/automate/plan.json','hvUQH','type','ppGGU','wrong-creds','help','WFVBG','pGyYk','RUsKp','ERROR','15360eJuEZU','UoqIV','bstack-username','BJrOj','PcLvM','password','username','pWIMr','byzTU','promisify','100780AysVTQ','XHvAP','zGSHW','OTFXd','438804hytVHV','unknown-error','kIyLP','QzUiW','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WfAFH','763495evToPw','45ggrpBU','rmIYp','KCiEL','existsSync','utvJd','description','method','15522GkDIqX','WvYju','2548olOsYf','argv','ECzgj','bstackAccesskey','init-called','eRvek','IqkKT','usage','stringify','2584OewUFF'];a13_0x4a99=function(){return _0x55bac7;};return a13_0x4a99();}const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a13_0x46a5d8(0x1b7)),{logger}=require(a13_0x46a5d8(0x1cf)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x46a5d8(0x1d3)),{getDirForConfig,getCredentialsPath}=require(a13_0x46a5d8(0x1b9)),{sendInstrumentationEvent}=require(a13_0x46a5d8(0x1ca)),promisifiedRequest=util[a13_0x46a5d8(0x203)](request);exports[a13_0x46a5d8(0x1e8)]=a13_0x46a5d8(0x1d0),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a13_0x46a5d8(0x1ef)]=function(_0x4701f4){const _0x354162=a13_0x46a5d8,_0x46d529={};_0x46d529['zsYlL']=_0x354162(0x20c),_0x46d529['BJrOj']='string',_0x46d529['GMZBx']=_0x354162(0x1db),_0x46d529[_0x354162(0x1cd)]=_0x354162(0x1f5);const _0x57be0c=_0x46d529,_0x28b6e2={};_0x28b6e2[_0x354162(0x214)]=_0x57be0c[_0x354162(0x1e1)],_0x28b6e2['type']=_0x57be0c[_0x354162(0x1fd)];const _0x5d7e5e={};_0x5d7e5e['description']=_0x57be0c['GMZBx'],_0x5d7e5e[_0x354162(0x1f2)]=_0x57be0c[_0x354162(0x1fd)];const _0x5ebd13={};return _0x5ebd13[_0x354162(0x1fc)]=_0x28b6e2,_0x5ebd13[_0x354162(0x1dc)]=_0x5d7e5e,_0x4701f4[_0x354162(0x1b4)](HELP_HEADER_MESSAGE['init'])[_0x354162(0x1e5)](HELP_FOOTER_MESSAGE)[_0x354162(0x1bf)](_0x5ebd13)[_0x354162(0x1d7)]()[_0x354162(0x1e0)]()[_0x354162(0x1f5)](_0x57be0c[_0x354162(0x1cd)])[_0x354162(0x219)];},exports[a13_0x46a5d8(0x1ed)]=async function(_0xba4dca){const _0x25a429=a13_0x46a5d8,_0x240a86={'WFVBG':'utf-8','PWUlY':_0x25a429(0x20c),'pfDjG':_0x25a429(0x1e6),'ppGGU':_0x25a429(0x1db),'eRvek':_0x25a429(0x1f5),'PcLvM':function(_0x20e70d){return _0x20e70d();},'oesWX':function(_0x24f5c5,_0x420a17,_0x199c5c,_0x3a3f71,_0x55f2d7,_0x2557ac,_0x338008){return _0x24f5c5(_0x420a17,_0x199c5c,_0x3a3f71,_0x55f2d7,_0x2557ac,_0x338008);},'WtSeW':_0x25a429(0x21c),'UoqIV':function(_0x537f23){return _0x537f23();},'rmIYp':function(_0x238463,_0x14fa27){return _0x238463===_0x14fa27;},'RUsKp':_0x25a429(0x1d5),'byzTU':function(_0x1149cf,_0x7e5e1a){return _0x1149cf!==_0x7e5e1a;},'hpSpD':_0x25a429(0x1c5),'zGSHW':_0x25a429(0x20a),'pGyYk':'zOVVr','OHhum':_0x25a429(0x20b),'CXxSP':'iLuGl','xJrYl':_0x25a429(0x1eb),'kGlkM':function(_0x296f54,_0x9244c){return _0x296f54===_0x9244c;},'vrWCm':function(_0x4a02cb,_0x2e3e0a){return _0x4a02cb!==_0x2e3e0a;},'eZuYV':_0x25a429(0x1c9),'mfATT':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','IqkKT':_0x25a429(0x1e9),'WvYju':function(_0x2125d6,_0x33880d){return _0x2125d6(_0x33880d);},'KCiEL':function(_0x566af0,_0x597e4a){return _0x566af0!==_0x597e4a;},'VYbYN':function(_0x74b81b,_0x2b5cd0){return _0x74b81b!==_0x2b5cd0;},'cTFaY':function(_0x4e25a0,_0x552e0e){return _0x4e25a0===_0x552e0e;},'BgfCJ':function(_0x210360,_0x24285d){return _0x210360===_0x24285d;},'hvUQH':'qTqQp','WfAFH':'wTIUC','pSxBQ':function(_0xa5a356,_0xfff476){return _0xa5a356!==_0xfff476;},'ECzgj':_0x25a429(0x1e4),'XHvAP':function(_0x6f2b13){return _0x6f2b13();},'utvJd':_0x25a429(0x1ea),'nkaAy':_0x25a429(0x201),'OTFXd':_0x25a429(0x1c8),'zwSJm':_0x25a429(0x1f4),'qQwyi':function(_0x3a0781,_0x27b9d9,_0x126e8b,_0x19a372,_0x34572d,_0x5daa51,_0x29ba53){return _0x3a0781(_0x27b9d9,_0x126e8b,_0x19a372,_0x34572d,_0x5daa51,_0x29ba53);},'igvOq':_0x25a429(0x209)};try{global_registry['requestId']=_0x240a86[_0x25a429(0x1fe)](uuidv4),_0x240a86[_0x25a429(0x1df)](sendInstrumentationEvent,_0xba4dca,_0x240a86['WtSeW'],messageTypes[_0x25a429(0x1be)],null,null,_0xba4dca);const _0x597932=_0x240a86[_0x25a429(0x1fb)](getDirForConfig);!fs[_0x25a429(0x212)](_0x597932)&&(_0x240a86[_0x25a429(0x210)](_0x240a86[_0x25a429(0x1f8)],_0x240a86['RUsKp'])?fs[_0x25a429(0x1e3)](_0x597932):_0x319429=_0x1ae831[_0x25a429(0x1d4)][_0x25a429(0x1cc)]);let _0x5a06f3,_0x4cdf18;process[_0x25a429(0x1d4)][_0x25a429(0x1cc)]&&(_0x240a86[_0x25a429(0x202)](_0x240a86['hpSpD'],_0x240a86['hpSpD'])?_0x14035e=_0x501110[_0x25a429(0x1bd)](_0x53849f[_0x25a429(0x1c0)](_0x35fc07,_0x240a86[_0x25a429(0x1f6)])):_0x5a06f3=process[_0x25a429(0x1d4)][_0x25a429(0x1cc)]);process[_0x25a429(0x1d4)][_0x25a429(0x1b8)]&&(_0x240a86[_0x25a429(0x202)](_0x240a86[_0x25a429(0x206)],_0x240a86[_0x25a429(0x1f7)])?_0x4cdf18=process['env'][_0x25a429(0x1b8)]:_0x10661a=_0x2f9ca7[_0x25a429(0x1d4)][_0x25a429(0x1b8)]);_0xba4dca['bstackUsername']&&(_0x240a86[_0x25a429(0x202)](_0x240a86[_0x25a429(0x1ee)],_0x240a86['CXxSP'])?_0x5a06f3=_0xba4dca[_0x25a429(0x1c6)]:_0x57228c=_0x3d47b5[_0x25a429(0x1c6)]);if(_0xba4dca['bstackAccesskey']){if(_0x240a86[_0x25a429(0x210)](_0x240a86['xJrYl'],_0x240a86[_0x25a429(0x1bc)]))_0x4cdf18=_0xba4dca[_0x25a429(0x21b)];else{const _0x5d055c={};_0x5d055c['description']=_0x240a86[_0x25a429(0x1c1)],_0x5d055c[_0x25a429(0x1f2)]=_0x240a86[_0x25a429(0x1c4)];const _0x277da9={};_0x277da9[_0x25a429(0x214)]=_0x240a86[_0x25a429(0x1f3)],_0x277da9[_0x25a429(0x1f2)]=_0x240a86[_0x25a429(0x1c4)];const _0x12a3fc={};return _0x12a3fc['bstack-username']=_0x5d055c,_0x12a3fc['bstack-accesskey']=_0x277da9,_0x5c6b08[_0x25a429(0x1b4)](_0x267230[_0x25a429(0x1d0)])['epilogue'](_0x12f106)[_0x25a429(0x1bf)](_0x12a3fc)[_0x25a429(0x1d7)]()[_0x25a429(0x1e0)]()[_0x25a429(0x1f5)](_0x240a86[_0x25a429(0x1b2)])['argv'];}}if(_0x240a86[_0x25a429(0x1de)](_0x5a06f3,undefined)||_0x240a86['kGlkM'](_0x4cdf18,undefined)){if(_0x240a86['vrWCm'](_0x240a86['eZuYV'],_0x240a86[_0x25a429(0x1d1)]))_0x342ae8=!![];else{logger[_0x25a429(0x1cb)](_0x240a86[_0x25a429(0x1bb)]);const [_0x4b50a1,_0x2e56bd]=await _0x240a86[_0x25a429(0x1fb)](inputBstackKeys);_0x5a06f3=_0x4b50a1,_0x4cdf18=_0x2e56bd;}}let _0x1e9db3=![];const _0x42b89f={};_0x42b89f['url']=_0x25a429(0x1c3)+_0x5a06f3+':'+_0x4cdf18+'@'+BS_API_URL+_0x25a429(0x1f0),_0x42b89f[_0x25a429(0x215)]=_0x240a86[_0x25a429(0x1b3)];const _0x8f127b=_0x42b89f,_0x55180a=await _0x240a86[_0x25a429(0x217)](promisifiedRequest,_0x8f127b);if(_0x240a86[_0x25a429(0x211)](_0x55180a,null)&&_0x240a86['VYbYN'](_0x55180a,undefined)&&_0x240a86['cTFaY'](_0x55180a[_0x25a429(0x1ba)],0xc8)){if(_0x240a86['BgfCJ'](_0x240a86[_0x25a429(0x1f1)],_0x240a86[_0x25a429(0x20d)])){let _0x1d74b1={};const _0x422e3f=_0x240a86[_0x25a429(0x1fe)](_0xd6bc4c);_0xa5a3b9[_0x25a429(0x212)](_0x422e3f)&&(_0x1d74b1=_0x2df074[_0x25a429(0x1bd)](_0x4b86a2['readFileSync'](_0x422e3f,_0x240a86[_0x25a429(0x1f6)])));const _0x4e68fb={};_0x4e68fb[_0x25a429(0x200)]=_0x1faa35,_0x4e68fb['password']=_0x1177f3,_0x1d74b1['Browserstack']=_0x4e68fb,_0x8cd72e[_0x25a429(0x1c2)](_0x422e3f,_0xa16de3[_0x25a429(0x1b5)](_0x1d74b1)),_0x4afd6e[_0x25a429(0x1e7)](0x0);}else _0x1e9db3=!![];}if(_0x1e9db3){if(_0x240a86['pSxBQ'](_0x240a86[_0x25a429(0x21a)],_0x240a86[_0x25a429(0x21a)]))_0x44bd8a['mkdirSync'](_0x269cc2);else{let _0x10dce5={};const _0x165271=_0x240a86[_0x25a429(0x205)](getCredentialsPath);fs['existsSync'](_0x165271)&&(_0x240a86[_0x25a429(0x210)](_0x240a86[_0x25a429(0x213)],_0x240a86[_0x25a429(0x1ec)])?_0xb17de2=_0x14e61b['bstackAccesskey']:_0x10dce5=JSON[_0x25a429(0x1bd)](fs[_0x25a429(0x1c0)](_0x165271,_0x240a86[_0x25a429(0x1f6)])));const _0x19046c={};_0x19046c[_0x25a429(0x200)]=_0x5a06f3,_0x19046c[_0x25a429(0x1ff)]=_0x4cdf18,_0x10dce5[_0x25a429(0x1dd)]=_0x19046c,fs[_0x25a429(0x1c2)](_0x165271,JSON[_0x25a429(0x1b5)](_0x10dce5)),process[_0x25a429(0x1e7)](0x0);}}else logger[_0x25a429(0x1d6)](_0x240a86[_0x25a429(0x207)]),await _0x240a86[_0x25a429(0x1df)](sendInstrumentationEvent,_0xba4dca,_0x240a86[_0x25a429(0x1ce)],messageTypes[_0x25a429(0x1f9)],_0x240a86[_0x25a429(0x1c7)],null,_0xba4dca),process[_0x25a429(0x1e7)](0x1);}catch(_0x43e855){logger[_0x25a429(0x1d6)](_0x43e855['stack']),await _0x240a86[_0x25a429(0x1d8)](sendInstrumentationEvent,_0xba4dca,_0x240a86['WtSeW'],messageTypes['ERROR'],_0x240a86[_0x25a429(0x1e2)],_0x43e855,_0xba4dca),process[_0x25a429(0x1e7)](0x1);}};
|
|
1
|
+
function a13_0x5188(){const _0x5c98c7=['BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','../config/logger','ZBSmm','bstack-accesskey','985819Cvmijj','stringify','util','argv','mgsgX','INFO','existsSync','../utils/instrumentationUtils','description','dzsuP','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','16238100lFHWWM','promisify','error','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','1721792EXtyNu','https://','gFtFr','slCgT','exit','rKdvB','requestId','SGeYZ','method','NpraX','/automate/plan.json','GET','DEoQb','zXadI','ERROR','Fmvud','Jpkwj','MZdFQ','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','handler','tDtel','bstackAccesskey','string','22842KVjkWN','writeFileSync','recommendCommands','EHWfP','QhcTz','mrIMC','xtjXN','mkdirSync','wllWE','help','unknown-error','XHmxK','YLwZD','eOYfF','HuEuS','init-called','uuid','UIEFe','MOQlb','qWBdu','152469bLWbzx','type','bstack-username','4893119regiel','url','epilogue','BROWSERSTACK_USERNAME','Browserstack','Ewgov','5VwcNhC','qjUre','sulZS','kUSCh','JTafH','RZxKT','wrong-creds','options','WeETB','WEPiW','parse','cvqCN','username','qEKXv','4803534iZgBVD','command','QMwPd','yUSxq','request','rBNTP','strict','2bCGkat','YYCPy','BROWSERSTACK_ACCESS_KEY','944wenfFQ','eEflu','Eciqt','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','init','IEhOw','bstackUsername','PGRnO','env','PHZXx','usage','Qqdhd','readFileSync','builder'];a13_0x5188=function(){return _0x5c98c7;};return a13_0x5188();}function a13_0x8aac(_0x5341cf,_0x1ecbfb){const _0x518889=a13_0x5188();return a13_0x8aac=function(_0x8aac90,_0xb5442b){_0x8aac90=_0x8aac90-0x188;let _0x21f050=_0x518889[_0x8aac90];return _0x21f050;},a13_0x8aac(_0x5341cf,_0x1ecbfb);}const a13_0xa4edc9=a13_0x8aac;(function(_0x202ff7,_0x12b07c){const _0x5c4e80=a13_0x8aac,_0x503eb2=_0x202ff7();while(!![]){try{const _0x263c2f=-parseInt(_0x5c4e80(0x1ba))/0x1*(parseInt(_0x5c4e80(0x1a5))/0x2)+-parseInt(_0x5c4e80(0x1f4))/0x3+parseInt(_0x5c4e80(0x1c9))/0x4+-parseInt(_0x5c4e80(0x190))/0x5*(parseInt(_0x5c4e80(0x19e))/0x6)+parseInt(_0x5c4e80(0x18a))/0x7+parseInt(_0x5c4e80(0x1a8))/0x8*(-parseInt(_0x5c4e80(0x1e0))/0x9)+parseInt(_0x5c4e80(0x1c5))/0xa;if(_0x263c2f===_0x12b07c)break;else _0x503eb2['push'](_0x503eb2['shift']());}catch(_0x3feb36){_0x503eb2['push'](_0x503eb2['shift']());}}}(a13_0x5188,0x96870));const fs=require('fs'),util=require(a13_0xa4edc9(0x1bc)),request=require(a13_0xa4edc9(0x1a2)),{v4:uuidv4}=require(a13_0xa4edc9(0x1f0)),{logger}=require(a13_0xa4edc9(0x1b7)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a13_0xa4edc9(0x1c1)),promisifiedRequest=util[a13_0xa4edc9(0x1c6)](request);exports[a13_0xa4edc9(0x19f)]=a13_0xa4edc9(0x1ac),exports['desc']=a13_0xa4edc9(0x1c8),exports[a13_0xa4edc9(0x1b5)]=function(_0x59e955){const _0x19ccf9=a13_0xa4edc9,_0x4acacb={};_0x4acacb['Ibsoi']=_0x19ccf9(0x1c4),_0x4acacb['Fmvud']=_0x19ccf9(0x1df),_0x4acacb[_0x19ccf9(0x1f2)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x4acacb[_0x19ccf9(0x1e4)]=_0x19ccf9(0x1e9);const _0x273294=_0x4acacb,_0x5c3734={};_0x5c3734['description']=_0x273294['Ibsoi'],_0x5c3734[_0x19ccf9(0x188)]=_0x273294['Fmvud'];const _0x1551d6={};_0x1551d6[_0x19ccf9(0x1c2)]=_0x273294[_0x19ccf9(0x1f2)],_0x1551d6['type']=_0x273294[_0x19ccf9(0x1d8)];const _0xaf611d={};return _0xaf611d['bstack-username']=_0x5c3734,_0xaf611d[_0x19ccf9(0x1b9)]=_0x1551d6,_0x59e955[_0x19ccf9(0x1b2)](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x19ccf9(0x197)](_0xaf611d)[_0x19ccf9(0x1e2)]()[_0x19ccf9(0x1a4)]()[_0x19ccf9(0x1e9)](_0x273294[_0x19ccf9(0x1e4)])[_0x19ccf9(0x1bd)];},exports[a13_0xa4edc9(0x1dc)]=async function(_0xc6f188){const _0x10d4b=a13_0xa4edc9,_0x3d5262={'SGeYZ':'utf-8','cvqCN':_0x10d4b(0x1c4),'ZBSmm':_0x10d4b(0x1df),'tDtel':_0x10d4b(0x1db),'QMwPd':_0x10d4b(0x1e9),'Zrtkj':function(_0x17583f){return _0x17583f();},'Jpkwj':function(_0x43aa75){return _0x43aa75();},'Eciqt':function(_0x3ce696,_0x310204,_0x3faf6e,_0x4b5dee,_0x519c24,_0x79d91a,_0x2f932e){return _0x3ce696(_0x310204,_0x3faf6e,_0x4b5dee,_0x519c24,_0x79d91a,_0x2f932e);},'DEoQb':_0x10d4b(0x1ef),'kUSCh':function(_0x621e41){return _0x621e41();},'YLwZD':function(_0x28eb58,_0x4ab43a){return _0x28eb58!==_0x4ab43a;},'slCgT':'uyVXk','mrIMC':function(_0x4258bd,_0x5f4353){return _0x4258bd===_0x5f4353;},'HuEuS':_0x10d4b(0x1ce),'wllWE':_0x10d4b(0x19d),'ChvxI':_0x10d4b(0x191),'PGRnO':function(_0xbe7514,_0x25d12a){return _0xbe7514===_0x25d12a;},'eEflu':_0x10d4b(0x18f),'YYCPy':_0x10d4b(0x198),'Qqdhd':_0x10d4b(0x194),'zXadI':_0x10d4b(0x192),'gFtFr':_0x10d4b(0x1b6),'eOYfF':function(_0x344c6e){return _0x344c6e();},'WEPiW':_0x10d4b(0x1d4),'mgsgX':function(_0x3ade57,_0x34cb93){return _0x3ade57(_0x34cb93);},'qWBdu':function(_0x584f27,_0x50a60f){return _0x584f27!==_0x50a60f;},'guVtN':function(_0x5af424,_0x180a83){return _0x5af424===_0x180a83;},'MZdFQ':_0x10d4b(0x1e3),'PHZXx':_0x10d4b(0x1eb),'IEhOw':function(_0x3dd289,_0x2c3401){return _0x3dd289!==_0x2c3401;},'xtjXN':_0x10d4b(0x1d2),'RZxKT':'rRKXN','dzsuP':_0x10d4b(0x1ab),'UIEFe':_0x10d4b(0x196),'yUSxq':function(_0xfe576d,_0xec3c80,_0x5f4b67,_0x4406f6,_0x38c10f,_0x630296,_0x5f5b10){return _0xfe576d(_0xec3c80,_0x5f4b67,_0x4406f6,_0x38c10f,_0x630296,_0x5f5b10);},'rBNTP':_0x10d4b(0x1ea)};try{global_registry[_0x10d4b(0x1cf)]=_0x3d5262[_0x10d4b(0x1d9)](uuidv4),_0x3d5262['Eciqt'](sendInstrumentationEvent,_0xc6f188,_0x3d5262['DEoQb'],messageTypes[_0x10d4b(0x1bf)],null,null,_0xc6f188);const _0xb95a50=_0x3d5262[_0x10d4b(0x193)](getDirForConfig);!fs[_0x10d4b(0x1c0)](_0xb95a50)&&(_0x3d5262[_0x10d4b(0x1ec)](_0x3d5262['slCgT'],_0x3d5262[_0x10d4b(0x1cc)])?_0x3db423=_0x236eda['env'][_0x10d4b(0x18d)]:fs[_0x10d4b(0x1e7)](_0xb95a50));let _0x46a9e2,_0x3dbe23;process[_0x10d4b(0x1b0)][_0x10d4b(0x18d)]&&(_0x3d5262[_0x10d4b(0x1e5)](_0x3d5262['HuEuS'],_0x3d5262[_0x10d4b(0x1ee)])?_0x46a9e2=process[_0x10d4b(0x1b0)]['BROWSERSTACK_USERNAME']:_0x5c9bfd=_0x2ecf33[_0x10d4b(0x1b0)][_0x10d4b(0x1a7)]);process[_0x10d4b(0x1b0)][_0x10d4b(0x1a7)]&&(_0x3d5262[_0x10d4b(0x1e5)](_0x3d5262[_0x10d4b(0x1e8)],_0x3d5262['wllWE'])?_0x3dbe23=process[_0x10d4b(0x1b0)]['BROWSERSTACK_ACCESS_KEY']:_0x427f48=_0x3e1213[_0x10d4b(0x19a)](_0xa746da['readFileSync'](_0x211299,_0x3d5262[_0x10d4b(0x1d0)])));if(_0xc6f188[_0x10d4b(0x1ae)]){if(_0x3d5262[_0x10d4b(0x1ec)](_0x3d5262['ChvxI'],_0x3d5262['ChvxI'])){const _0x3d4405={};_0x3d4405[_0x10d4b(0x1c2)]=_0x3d5262[_0x10d4b(0x19b)],_0x3d4405[_0x10d4b(0x188)]=_0x3d5262[_0x10d4b(0x1b8)];const _0x2bad30={};_0x2bad30[_0x10d4b(0x1c2)]=_0x3d5262[_0x10d4b(0x1dd)],_0x2bad30['type']=_0x3d5262[_0x10d4b(0x1b8)];const _0x5f412d={};return _0x5f412d[_0x10d4b(0x189)]=_0x3d4405,_0x5f412d[_0x10d4b(0x1b9)]=_0x2bad30,_0x1a0940[_0x10d4b(0x1b2)](_0x598883['init'])[_0x10d4b(0x18c)](_0x4b2ccd)[_0x10d4b(0x197)](_0x5f412d)['recommendCommands']()[_0x10d4b(0x1a4)]()[_0x10d4b(0x1e9)](_0x3d5262[_0x10d4b(0x1a0)])[_0x10d4b(0x1bd)];}else _0x46a9e2=_0xc6f188['bstackUsername'];}_0xc6f188['bstackAccesskey']&&(_0x3d5262[_0x10d4b(0x1af)](_0x3d5262[_0x10d4b(0x1a9)],_0x3d5262[_0x10d4b(0x1a6)])?_0x338433=_0x89c3cf['bstackUsername']:_0x3dbe23=_0xc6f188[_0x10d4b(0x1de)]);if(_0x3d5262[_0x10d4b(0x1af)](_0x46a9e2,undefined)||_0x3d5262[_0x10d4b(0x1af)](_0x3dbe23,undefined)){if(_0x3d5262[_0x10d4b(0x1ec)](_0x3d5262[_0x10d4b(0x1b3)],_0x3d5262[_0x10d4b(0x1d6)])){logger['debug'](_0x3d5262[_0x10d4b(0x1cb)]);const [_0x4e094c,_0x296e9a]=await _0x3d5262[_0x10d4b(0x1ed)](inputBstackKeys);_0x46a9e2=_0x4e094c,_0x3dbe23=_0x296e9a;}else _0x21cc75=!![];}let _0x125586=![];const _0x569847={};_0x569847[_0x10d4b(0x18b)]=_0x10d4b(0x1ca)+_0x46a9e2+':'+_0x3dbe23+'@'+BS_API_URL+_0x10d4b(0x1d3),_0x569847[_0x10d4b(0x1d1)]=_0x3d5262[_0x10d4b(0x199)];const _0x36c58e=_0x569847,_0x3b3429=await _0x3d5262[_0x10d4b(0x1be)](promisifiedRequest,_0x36c58e);_0x3d5262[_0x10d4b(0x1ec)](_0x3b3429,null)&&_0x3d5262[_0x10d4b(0x1f3)](_0x3b3429,undefined)&&_0x3d5262[_0x10d4b(0x1af)](_0x3b3429['statusCode'],0xc8)&&(_0x3d5262['guVtN'](_0x3d5262[_0x10d4b(0x1da)],_0x3d5262[_0x10d4b(0x1b1)])?_0x4ac7b5[_0x10d4b(0x1e7)](_0x23721e):_0x125586=!![]);if(_0x125586){if(_0x3d5262[_0x10d4b(0x1ad)](_0x3d5262['xtjXN'],_0x3d5262[_0x10d4b(0x1e6)])){let _0x12aa3b={};const _0x5a0993=_0x3d5262['Zrtkj'](_0x18eaec);_0x2893da[_0x10d4b(0x1c0)](_0x5a0993)&&(_0x12aa3b=_0x2aaeec[_0x10d4b(0x19a)](_0x934a78[_0x10d4b(0x1b4)](_0x5a0993,_0x3d5262[_0x10d4b(0x1d0)])));const _0xb2562d={};_0xb2562d[_0x10d4b(0x19c)]=_0xc1ae4c,_0xb2562d['password']=_0x56a5b6,_0x12aa3b[_0x10d4b(0x18e)]=_0xb2562d,_0x188d44[_0x10d4b(0x1e1)](_0x5a0993,_0x129144[_0x10d4b(0x1bb)](_0x12aa3b)),_0x23ff6c[_0x10d4b(0x1cd)](0x0);}else{let _0xbb6405={};const _0x438819=_0x3d5262['Zrtkj'](getCredentialsPath);fs[_0x10d4b(0x1c0)](_0x438819)&&(_0x3d5262[_0x10d4b(0x1ad)](_0x3d5262[_0x10d4b(0x195)],_0x3d5262[_0x10d4b(0x195)])?_0x2df41c=_0x51d9fc[_0x10d4b(0x1de)]:_0xbb6405=JSON[_0x10d4b(0x19a)](fs[_0x10d4b(0x1b4)](_0x438819,_0x3d5262[_0x10d4b(0x1d0)])));const _0x5478de={};_0x5478de[_0x10d4b(0x19c)]=_0x46a9e2,_0x5478de['password']=_0x3dbe23,_0xbb6405[_0x10d4b(0x18e)]=_0x5478de,fs['writeFileSync'](_0x438819,JSON[_0x10d4b(0x1bb)](_0xbb6405)),process[_0x10d4b(0x1cd)](0x0);}}else logger[_0x10d4b(0x1c7)](_0x3d5262[_0x10d4b(0x1c3)]),await _0x3d5262[_0x10d4b(0x1aa)](sendInstrumentationEvent,_0xc6f188,_0x3d5262[_0x10d4b(0x1d5)],messageTypes[_0x10d4b(0x1d7)],_0x3d5262[_0x10d4b(0x1f1)],null,_0xc6f188),process['exit'](0x1);}catch(_0x587678){logger[_0x10d4b(0x1c7)](_0x587678['stack']),await _0x3d5262[_0x10d4b(0x1a1)](sendInstrumentationEvent,_0xc6f188,_0x3d5262[_0x10d4b(0x1d5)],messageTypes[_0x10d4b(0x1d7)],_0x3d5262[_0x10d4b(0x1a3)],_0x587678,_0xc6f188),process[_0x10d4b(0x1cd)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a14_0x354b(){const _0x144b8b=['TmNYL','5PMplHa','TrKjO','2fLFwdM','2044092OXyRwJ','144IqWNtO','builder','desc','1160PkzSnN','handler','1898964PcoFTP','2088627VcHsyg','epilogue','List\x20down\x20the\x20Grid\x20resources.','55DmQIXg','list','root','6162344pWNqfR','278404NOQBgS','usage','186627ZBJFmK','help','14589YOfCWt'];a14_0x354b=function(){return _0x144b8b;};return a14_0x354b();}const a14_0x394630=a14_0x1570;function a14_0x1570(_0x5ecf88,_0x1e6712){const _0x354b97=a14_0x354b();return a14_0x1570=function(_0x1570dc,_0x1927d9){_0x1570dc=_0x1570dc-0x6d;let _0x10f6aa=_0x354b97[_0x1570dc];return _0x10f6aa;},a14_0x1570(_0x5ecf88,_0x1e6712);}(function(_0x33ec8a,_0x4a9f9d){const _0x47fe83=a14_0x1570,_0x1a175e=_0x33ec8a();while(!![]){try{const _0x5368d3=parseInt(_0x47fe83(0x7c))/0x1*(parseInt(_0x47fe83(0x74))/0x2)+parseInt(_0x47fe83(0x6d))/0x3+-parseInt(_0x47fe83(0x83))/0x4*(-parseInt(_0x47fe83(0x7a))/0x5)+parseInt(_0x47fe83(0x7e))/0x6*(-parseInt(_0x47fe83(0x76))/0x7)+parseInt(_0x47fe83(0x73))/0x8+parseInt(_0x47fe83(0x78))/0x9*(-parseInt(_0x47fe83(0x81))/0xa)+parseInt(_0x47fe83(0x70))/0xb*(-parseInt(_0x47fe83(0x7d))/0xc);if(_0x5368d3===_0x4a9f9d)break;else _0x1a175e['push'](_0x1a175e['shift']());}catch(_0x2557a6){_0x1a175e['push'](_0x1a175e['shift']());}}}(a14_0x354b,0x83d8a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a14_0x394630(0x71),exports[a14_0x394630(0x80)]=a14_0x394630(0x6f),exports[a14_0x394630(0x7f)]=function(_0x393481){const _0x6036e3=a14_0x394630,_0x4422a3={};_0x4422a3[_0x6036e3(0x7b)]='list_commands',_0x4422a3[_0x6036e3(0x79)]=_0x6036e3(0x77);const _0x306402=_0x4422a3;return _0x393481['commandDir'](_0x306402['TrKjO'])['demandCommand']()[_0x6036e3(0x75)](HELP_HEADER_MESSAGE[_0x6036e3(0x71)][_0x6036e3(0x72)])[_0x6036e3(0x6e)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()['help'](_0x306402[_0x6036e3(0x79)]);},exports[a14_0x394630(0x82)]=function(_0x4af5ac){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x413c2e=a15_0x5737;function a15_0x5d86(){const _0x37ebb3=['server-error','gridProfile','url','Browserstack','GhSMj','grid-profile-name','4672932clqHCm','help','argv','password','66fTvWSG','list-grid-profiles-called','mCJze','bstackUsername','bstackAccesskey','UcVjQ','https://','push','DEgwh','table','Jzdhf','AqGGq','wipYa','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ofkQn','usage','parse','../../config/constants','26604qhbLaF','13626dZgWLS','handler','rMsVc','Ktlii','gZSWU','auth','VPWuI','ERROR','Ichou','/packages/cli/get-grid-profiles','10fOTtgC','username','pcgWQ','1760MOmpTv','list','uuid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','concurrency','28815bhBsmr','1062544IJvOJb','unknown-error','../../utils/instrumentationUtils','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','error','region','SwIwE','27672QwDOvi','exit','type','command','grid-profiles','readFileSync','existsSync','requestId','6JlOLAJ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','method','allGridProfiles','stringify','NjXyF','10880Lkdala','../../utils/utilityMethods','/packages/cli/get-all-grid-profiles','872VrqDTH','tgrJs','promisify','statusCode','cloudProvider','stack','init-not-called','INFO','boolean','request','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','body','name','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','ZFzqW','unauthorised'];a15_0x5d86=function(){return _0x37ebb3;};return a15_0x5d86();}(function(_0x3d8a8a,_0x1668a7){const _0x1c1609=a15_0x5737,_0x4502da=_0x3d8a8a();while(!![]){try{const _0x4a9a1d=parseInt(_0x1c1609(0x1de))/0x1*(parseInt(_0x1c1609(0x1ee))/0x2)+-parseInt(_0x1c1609(0x211))/0x3*(parseInt(_0x1c1609(0x1cb))/0x4)+-parseInt(_0x1c1609(0x1d6))/0x5*(-parseInt(_0x1c1609(0x1e6))/0x6)+parseInt(_0x1c1609(0x1df))/0x7+parseInt(_0x1c1609(0x1f7))/0x8*(-parseInt(_0x1c1609(0x1cc))/0x9)+-parseInt(_0x1c1609(0x1f4))/0xa*(parseInt(_0x1c1609(0x1d9))/0xb)+parseInt(_0x1c1609(0x20d))/0xc;if(_0x4a9a1d===_0x1668a7)break;else _0x4502da['push'](_0x4502da['shift']());}catch(_0x2cb31f){_0x4502da['push'](_0x4502da['shift']());}}}(a15_0x5d86,0x24f94));const fs=require('fs'),util=require('util'),request=require(a15_0x413c2e(0x200)),{table}=require(a15_0x413c2e(0x21a)),{v4:uuidv4}=require(a15_0x413c2e(0x1db)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x413c2e(0x1ca)),{getCredentialsPath}=require(a15_0x413c2e(0x1f5)),{sendInstrumentationEvent}=require(a15_0x413c2e(0x1e1)),promisifiedRequest=util[a15_0x413c2e(0x1f9)](request);function a15_0x5737(_0x577b9f,_0x5cd67f){const _0x5d8657=a15_0x5d86();return a15_0x5737=function(_0x5737d2,_0x237fe1){_0x5737d2=_0x5737d2-0x1c3;let _0x2b060f=_0x5d8657[_0x5737d2];return _0x2b060f;},a15_0x5737(_0x577b9f,_0x5cd67f);}exports[a15_0x413c2e(0x1e9)]=a15_0x413c2e(0x1ea),exports['desc']=a15_0x413c2e(0x1e2),exports['builder']=function(_0xd25abc){const _0x3427a4=a15_0x413c2e,_0x4a624b={};_0x4a624b[_0x3427a4(0x1c5)]=_0x3427a4(0x204),_0x4a624b[_0x3427a4(0x216)]=_0x3427a4(0x1ff),_0x4a624b[_0x3427a4(0x213)]=_0x3427a4(0x20e);const _0x5a4707=_0x4a624b,_0x204615={};_0x204615['description']=_0x5a4707[_0x3427a4(0x1c5)],_0x204615[_0x3427a4(0x1e8)]=_0x5a4707[_0x3427a4(0x216)];const _0x28d9c8={};return _0x28d9c8['all-grid-profiles']=_0x204615,_0xd25abc[_0x3427a4(0x1c8)](HELP_HEADER_MESSAGE[_0x3427a4(0x1da)][_0x3427a4(0x208)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x28d9c8)['help'](_0x5a4707[_0x3427a4(0x213)])[_0x3427a4(0x20f)];},exports[a15_0x413c2e(0x1cd)]=async function(_0x425932){const _0x2bf3e9=a15_0x413c2e,_0x4d34b5={'tgrJs':function(_0xd37bc5){return _0xd37bc5();},'GhSMj':function(_0x74d1a){return _0x74d1a();},'rMsVc':_0x2bf3e9(0x1dc),'gZSWU':function(_0x244fb1,_0x57878b,_0x4199a6,_0x4db9a1,_0x40f99b,_0x4adb29,_0x4369f0){return _0x244fb1(_0x57878b,_0x4199a6,_0x4db9a1,_0x40f99b,_0x4adb29,_0x4369f0);},'ofkQn':_0x2bf3e9(0x212),'NXjys':_0x2bf3e9(0x1fd),'Jzdhf':'GET','YGoih':function(_0x3dd3ef,_0x588439){return _0x3dd3ef(_0x588439);},'ZFzqW':function(_0x79536b,_0xc8877f){return _0x79536b!==_0xc8877f;},'qWMIC':function(_0xdb2be0,_0x3c63b3){return _0xdb2be0===_0x3c63b3;},'DEgwh':_0x2bf3e9(0x201),'VPWuI':_0x2bf3e9(0x20c),'pcgWQ':'cloud-provider','AqGGq':_0x2bf3e9(0x1e4),'uxdEN':_0x2bf3e9(0x1dd),'RNWIT':function(_0x100aa1,_0x4b4f2b){return _0x100aa1(_0x4b4f2b);},'NjXyF':function(_0x480f5e,_0x32cf51){return _0x480f5e===_0x32cf51;},'Ichou':_0x2bf3e9(0x206),'GbDrQ':_0x2bf3e9(0x207),'SwIwE':function(_0xc8b3b5,_0x4f1a5f,_0x143b1c,_0x296643,_0x4b46eb,_0x109b4b,_0x4270cf){return _0xc8b3b5(_0x4f1a5f,_0x143b1c,_0x296643,_0x4b46eb,_0x109b4b,_0x4270cf);},'Ktlii':_0x2bf3e9(0x1e0)};try{global_registry[_0x2bf3e9(0x1ed)]=_0x4d34b5[_0x2bf3e9(0x1f8)](uuidv4);let _0x3f180c='https://'+AG_API_URL+_0x2bf3e9(0x1d5);_0x425932[_0x2bf3e9(0x1f1)]&&(_0x3f180c=_0x2bf3e9(0x217)+AG_API_URL+_0x2bf3e9(0x1f6));!fs[_0x2bf3e9(0x1ec)](_0x4d34b5[_0x2bf3e9(0x20b)](getCredentialsPath))&&(console[_0x2bf3e9(0x1e3)](_0x4d34b5[_0x2bf3e9(0x1ce)]),await _0x4d34b5['gZSWU'](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes['ERROR'],_0x4d34b5['NXjys'],null,_0x425932),process[_0x2bf3e9(0x1e7)](0x1));_0x4d34b5[_0x2bf3e9(0x1d0)](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes[_0x2bf3e9(0x1fe)],null,null,_0x425932);const _0x4c033b=JSON[_0x2bf3e9(0x1c9)](fs[_0x2bf3e9(0x1eb)](_0x4d34b5[_0x2bf3e9(0x1f8)](getCredentialsPath))),_0x4fc28c={};_0x4fc28c[_0x2bf3e9(0x1d7)]=_0x4c033b['Browserstack'][_0x2bf3e9(0x1d7)],_0x4fc28c[_0x2bf3e9(0x210)]=_0x4c033b[_0x2bf3e9(0x20a)][_0x2bf3e9(0x210)];const _0x1887f7={};_0x1887f7[_0x2bf3e9(0x209)]=_0x3f180c,_0x1887f7[_0x2bf3e9(0x1f0)]=_0x4d34b5[_0x2bf3e9(0x1c3)],_0x1887f7[_0x2bf3e9(0x1d1)]=_0x4fc28c;const _0x8e8e20=_0x1887f7;global_registry[_0x2bf3e9(0x214)]=_0x4c033b[_0x2bf3e9(0x20a)][_0x2bf3e9(0x1d7)],global_registry[_0x2bf3e9(0x215)]=_0x4c033b[_0x2bf3e9(0x20a)][_0x2bf3e9(0x210)];const _0x262ffc=await _0x4d34b5['YGoih'](promisifiedRequest,_0x8e8e20);if(_0x4d34b5[_0x2bf3e9(0x205)](_0x262ffc,null)&&_0x4d34b5[_0x2bf3e9(0x205)](_0x262ffc,undefined)&&_0x4d34b5['qWMIC'](_0x262ffc[_0x2bf3e9(0x1fa)],0xc8)){const _0xa0002a=JSON['parse'](_0x262ffc[_0x2bf3e9(0x202)]);console['log'](_0x4d34b5[_0x2bf3e9(0x219)]);const _0x37b4ec=[];_0x37b4ec[_0x2bf3e9(0x218)]([_0x4d34b5[_0x2bf3e9(0x1d2)],_0x4d34b5[_0x2bf3e9(0x1d8)],_0x4d34b5[_0x2bf3e9(0x1c4)],_0x4d34b5['uxdEN']]),_0xa0002a['forEach'](_0x19b2ca=>{const _0x4dc509=_0x2bf3e9;_0x37b4ec[_0x4dc509(0x218)]([_0x19b2ca[_0x4dc509(0x203)],_0x19b2ca[_0x4dc509(0x1fb)],_0x19b2ca['region'],_0x19b2ca[_0x4dc509(0x1dd)]]);}),console['log'](_0x4d34b5['RNWIT'](table,_0x37b4ec)),process[_0x2bf3e9(0x1e7)](0x0);}_0x4d34b5[_0x2bf3e9(0x1f3)](_0x262ffc[_0x2bf3e9(0x1fa)],0x191)&&(console['error'](_0x2bf3e9(0x1ef)),await _0x4d34b5[_0x2bf3e9(0x1d0)](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes['ERROR'],_0x4d34b5[_0x2bf3e9(0x1d4)],null,_0x425932),process[_0x2bf3e9(0x1e7)](0x1)),console[_0x2bf3e9(0x1e3)](_0x2bf3e9(0x1c6)+JSON[_0x2bf3e9(0x1f2)](_0x262ffc)),await _0x4d34b5[_0x2bf3e9(0x1d0)](sendInstrumentationEvent,_0x425932,_0x4d34b5[_0x2bf3e9(0x1c7)],messageTypes[_0x2bf3e9(0x1d3)],_0x4d34b5['GbDrQ'],_0x262ffc,_0x425932),process[_0x2bf3e9(0x1e7)](0x1);}catch(_0x3b8303){console[_0x2bf3e9(0x1e3)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x3b8303[_0x2bf3e9(0x1fc)]),await _0x4d34b5[_0x2bf3e9(0x1e5)](sendInstrumentationEvent,_0x425932,_0x4d34b5['ofkQn'],messageTypes[_0x2bf3e9(0x1d3)],_0x4d34b5[_0x2bf3e9(0x1cf)],_0x3b8303,_0x425932),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a16_0x1ccbdd=a16_0x3cbb;function a16_0x3a53(){const _0x30da28=['neeMz','status','FGKqn','901278ZjrERr','psjoK','exit','qHmKu','ZWLpm','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GEQBQ','queued','21763iPgJjK','wgxDM','XwYon','usage','1951416UuROFW','clusterName','grid-id','8045rfzTSE','CzEwj','tuVpT','handler','cluster-name','allGrids','list','promisify','options','904uYPOsN','ciqDo','/packages/cli/get-all-grids','password','requestId','2748YzGMUk','PECmo','ZAOFb','XCJmg','INFO','argv','type','desc','description','statusCode','1669635NCAbvf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','existsSync','command','epilogue','ERROR','builder','method','dDZQy','grid-name','push','797051EIZgCx','username','forEach','579454GfDPYt','table','parse','https://','bstackUsername','boolean','gWQcS','stack','auth','NimUf','Rlkgr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WMqEa','tNkIo','kjkyf','../../utils/utilityMethods','Failed\x20to\x20list\x20resources!\x20Error:\x20','request','error','Browserstack','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','FilxG','uuid','readFileSync','url','stringify','util','../../config/constants','JcdAf','running','help','/packages/cli/get-grids','\x0aFound\x20the\x20following\x20grids:\x0a','all-grids','body'];a16_0x3a53=function(){return _0x30da28;};return a16_0x3a53();}(function(_0x4e4eef,_0x4a30b9){const _0x568a2c=a16_0x3cbb,_0x648cbd=_0x4e4eef();while(!![]){try{const _0x413639=-parseInt(_0x568a2c(0x214))/0x1+parseInt(_0x568a2c(0x1bb))/0x2+parseInt(_0x568a2c(0x1e2))/0x3+parseInt(_0x568a2c(0x1ee))/0x4+parseInt(_0x568a2c(0x1f1))/0x5*(parseInt(_0x568a2c(0x1ff))/0x6)+-parseInt(_0x568a2c(0x1ea))/0x7*(parseInt(_0x568a2c(0x1fa))/0x8)+-parseInt(_0x568a2c(0x209))/0x9;if(_0x413639===_0x4a30b9)break;else _0x648cbd['push'](_0x648cbd['shift']());}catch(_0x582c6e){_0x648cbd['push'](_0x648cbd['shift']());}}}(a16_0x3a53,0x75716));function a16_0x3cbb(_0x46c806,_0x493a8a){const _0x3a530c=a16_0x3a53();return a16_0x3cbb=function(_0x3cbbd3,_0x28dfcd){_0x3cbbd3=_0x3cbbd3-0x1ba;let _0x41d6b0=_0x3a530c[_0x3cbbd3];return _0x41d6b0;},a16_0x3cbb(_0x46c806,_0x493a8a);}const fs=require('fs'),util=require(a16_0x1ccbdd(0x1d6)),request=require(a16_0x1ccbdd(0x1cc)),{table}=require(a16_0x1ccbdd(0x1bc)),{v4:uuidv4}=require(a16_0x1ccbdd(0x1d2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x1ccbdd(0x1d7)),{getCredentialsPath}=require(a16_0x1ccbdd(0x1ca)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a16_0x1ccbdd(0x1f8)](request);exports[a16_0x1ccbdd(0x20c)]='grids',exports[a16_0x1ccbdd(0x206)]=a16_0x1ccbdd(0x1d0),exports[a16_0x1ccbdd(0x20f)]=function(_0x2a353b){const _0x4c1a18=a16_0x1ccbdd,_0x22ed6a={};_0x22ed6a[_0x4c1a18(0x211)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x22ed6a['EfHIr']=_0x4c1a18(0x1c0),_0x22ed6a['ZWLpm']='help';const _0x3a35ce=_0x22ed6a,_0x15df0b={};_0x15df0b[_0x4c1a18(0x207)]=_0x3a35ce[_0x4c1a18(0x211)],_0x15df0b[_0x4c1a18(0x205)]=_0x3a35ce['EfHIr'];const _0x4f2dde={};return _0x4f2dde[_0x4c1a18(0x1dd)]=_0x15df0b,_0x2a353b[_0x4c1a18(0x1ed)](HELP_HEADER_MESSAGE[_0x4c1a18(0x1f7)]['grid'])[_0x4c1a18(0x20d)](HELP_FOOTER_MESSAGE)[_0x4c1a18(0x1f9)](_0x4f2dde)[_0x4c1a18(0x1da)](_0x3a35ce[_0x4c1a18(0x1e6)])[_0x4c1a18(0x204)];},exports[a16_0x1ccbdd(0x1f4)]=async function(_0x3b2907){const _0x53b7b3=a16_0x1ccbdd,_0x3cd109={'CzEwj':function(_0x3766ad){return _0x3766ad();},'kjkyf':_0x53b7b3(0x20a),'ZAOFb':function(_0x439cb9,_0x195a39,_0x164c6e,_0x4dfaf8,_0xcb7ffd,_0x4b32d1,_0x2eb48c){return _0x439cb9(_0x195a39,_0x164c6e,_0x4dfaf8,_0xcb7ffd,_0x4b32d1,_0x2eb48c);},'FGKqn':'list-grids-called','tuVpT':_0x53b7b3(0x1cf),'gWQcS':function(_0x4907ac){return _0x4907ac();},'teIwh':'GET','PECmo':function(_0xf7a878,_0x13b6dd){return _0xf7a878(_0x13b6dd);},'XwYon':function(_0x53983a,_0x3bcb3b){return _0x53983a!==_0x3bcb3b;},'FilxG':function(_0x1b8103,_0x1bd399){return _0x1b8103!==_0x1bd399;},'WMqEa':function(_0xd41fa0,_0x1e24dd){return _0xd41fa0===_0x1e24dd;},'tNkIo':_0x53b7b3(0x1dc),'NimUf':_0x53b7b3(0x1f0),'wgxDM':_0x53b7b3(0x212),'qHmKu':_0x53b7b3(0x1e0),'ciqDo':_0x53b7b3(0x1d9),'Rlkgr':_0x53b7b3(0x1e9),'GEQBQ':_0x53b7b3(0x1f5),'XCJmg':'unauthorised','JcdAf':function(_0x193723,_0x58d0bd,_0x1c143e,_0x5760de,_0x1b4635,_0x1b721a,_0x6844c1){return _0x193723(_0x58d0bd,_0x1c143e,_0x5760de,_0x1b4635,_0x1b721a,_0x6844c1);},'psjoK':'server-error','neeMz':'unknown-error'};try{global_registry[_0x53b7b3(0x1fe)]=_0x3cd109[_0x53b7b3(0x1f2)](uuidv4);!fs[_0x53b7b3(0x20b)](_0x3cd109[_0x53b7b3(0x1f2)](getCredentialsPath))&&(console[_0x53b7b3(0x1cd)](_0x3cd109[_0x53b7b3(0x1c9)]),await _0x3cd109[_0x53b7b3(0x201)](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x1f3)],null,_0x3b2907),process['exit'](0x1));const _0x1dc15e=JSON[_0x53b7b3(0x1bd)](fs[_0x53b7b3(0x1d3)](_0x3cd109[_0x53b7b3(0x1c1)](getCredentialsPath)));let _0xbb5242=_0x53b7b3(0x1be)+AG_API_URL+_0x53b7b3(0x1db);_0x3b2907[_0x53b7b3(0x1f6)]&&(_0xbb5242=_0x53b7b3(0x1be)+AG_API_URL+_0x53b7b3(0x1fc));const _0x154eae={};_0x154eae['username']=_0x1dc15e['Browserstack'][_0x53b7b3(0x215)],_0x154eae['password']=_0x1dc15e[_0x53b7b3(0x1ce)]['password'];const _0x56b0a7={};_0x56b0a7[_0x53b7b3(0x1d4)]=_0xbb5242,_0x56b0a7[_0x53b7b3(0x210)]=_0x3cd109['teIwh'],_0x56b0a7[_0x53b7b3(0x1c3)]=_0x154eae;const _0xe32d1e=_0x56b0a7;global_registry[_0x53b7b3(0x1bf)]=_0x1dc15e['Browserstack'][_0x53b7b3(0x215)],global_registry['bstackAccesskey']=_0x1dc15e[_0x53b7b3(0x1ce)][_0x53b7b3(0x1fd)],_0x3cd109['ZAOFb'](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x203)],null,null,_0x3b2907);const _0x54e5c2=await _0x3cd109[_0x53b7b3(0x200)](promisifiedRequest,_0xe32d1e);if(_0x3cd109[_0x53b7b3(0x1ec)](_0x54e5c2,null)&&_0x3cd109[_0x53b7b3(0x1d1)](_0x54e5c2,undefined)&&_0x3cd109['WMqEa'](_0x54e5c2[_0x53b7b3(0x208)],0xc8)){const _0x33455d=JSON['parse'](_0x54e5c2[_0x53b7b3(0x1de)]);console['log'](_0x3cd109[_0x53b7b3(0x1c8)]);const _0x312b34=[];_0x312b34[_0x53b7b3(0x213)]([_0x3cd109[_0x53b7b3(0x1c4)],_0x3cd109[_0x53b7b3(0x1eb)],_0x3cd109[_0x53b7b3(0x1e5)],_0x3cd109[_0x53b7b3(0x1fb)],_0x3cd109[_0x53b7b3(0x1c5)],_0x3cd109[_0x53b7b3(0x1e8)]]),_0x33455d[_0x53b7b3(0x1ba)](_0xf54765=>{const _0x2f4db1=_0x53b7b3;_0x312b34[_0x2f4db1(0x213)]([_0xf54765['id'],_0xf54765['name'],_0xf54765[_0x2f4db1(0x1e0)],_0xf54765[_0x2f4db1(0x1d9)],_0xf54765[_0x2f4db1(0x1e9)],_0xf54765[_0x2f4db1(0x1ef)]]);}),console['log'](_0x3cd109[_0x53b7b3(0x200)](table,_0x312b34)),process[_0x53b7b3(0x1e4)](0x0);}_0x3cd109[_0x53b7b3(0x1c7)](_0x54e5c2['statusCode'],0x191)&&(console[_0x53b7b3(0x1cd)](_0x53b7b3(0x1c6)),await _0x3cd109[_0x53b7b3(0x201)](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x202)],null,_0x3b2907),process['exit'](0x1)),console['error'](_0x53b7b3(0x1e7)+JSON[_0x53b7b3(0x1d5)](_0x54e5c2)),await _0x3cd109[_0x53b7b3(0x1d8)](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x1e3)],_0x54e5c2,_0x3b2907),process[_0x53b7b3(0x1e4)](0x1);}catch(_0x23d1d0){console[_0x53b7b3(0x1cd)](_0x53b7b3(0x1cb)+_0x23d1d0[_0x53b7b3(0x1c2)]),await _0x3cd109['JcdAf'](sendInstrumentationEvent,_0x3b2907,_0x3cd109[_0x53b7b3(0x1e1)],messageTypes[_0x53b7b3(0x20e)],_0x3cd109[_0x53b7b3(0x1df)],_0x23d1d0,_0x3b2907),process[_0x53b7b3(0x1e4)](0x1);}};
|