browserstack-node-sdk 1.31.0 → 1.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/gcs.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/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/browserstackSDKMethods.js +1 -0
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/performance-tester.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a9_0x30a9(_0x2f7110,_0x2a6162){const _0x4b016f=a9_0x4b01();return a9_0x30a9=function(_0x30a9b1,_0x1168de){_0x30a9b1=_0x30a9b1-0x1a9;let _0x129d59=_0x4b016f[_0x30a9b1];return _0x129d59;},a9_0x30a9(_0x2f7110,_0x2a6162);}const a9_0x39488d=a9_0x30a9;(function(_0x2c0d72,_0x249511){const _0x4f0e98=a9_0x30a9,_0x10295b=_0x2c0d72();while(!![]){try{const _0x3343d0=-parseInt(_0x4f0e98(0x1b4))/0x1+-parseInt(_0x4f0e98(0x1b9))/0x2*(parseInt(_0x4f0e98(0x1ac))/0x3)+parseInt(_0x4f0e98(0x1b2))/0x4*(parseInt(_0x4f0e98(0x1ae))/0x5)+-parseInt(_0x4f0e98(0x1bd))/0x6+parseInt(_0x4f0e98(0x1a9))/0x7+parseInt(_0x4f0e98(0x1be))/0x8+-parseInt(_0x4f0e98(0x1b8))/0x9;if(_0x3343d0===_0x249511)break;else _0x10295b['push'](_0x10295b['shift']());}catch(_0x515dad){_0x10295b['push'](_0x10295b['shift']());}}}(a9_0x4b01,0x5cfbb));function a9_0x4b01(){const _0x46c7f3=['commandDir','../config/constants','command','949500JUtvwH','238598ITZXHv','builder','epilogue','pfuvN','3117660yQmWol','4328992LDYsAN','1352197IyDgtC','UnYvs','strict','9CigQcw','usage','5azEVnT','demandCommand','desc','create_commands','2792276HUtsHr','help','68498tCRIHn'];a9_0x4b01=function(){return _0x46c7f3;};return a9_0x4b01();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x39488d(0x1b6));exports[a9_0x39488d(0x1b7)]='create',exports[a9_0x39488d(0x1b0)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x39488d(0x1ba)]=function(_0x2d29dd){const _0x413a44=a9_0x39488d,_0x3d2a39={};_0x3d2a39[_0x413a44(0x1bc)]=_0x413a44(0x1b1),_0x3d2a39[_0x413a44(0x1aa)]=_0x413a44(0x1b3);const _0x203ff8=_0x3d2a39;return _0x2d29dd[_0x413a44(0x1ad)](HELP_HEADER_MESSAGE['create'])[_0x413a44(0x1bb)](HELP_FOOTER_MESSAGE)[_0x413a44(0x1b5)](_0x203ff8[_0x413a44(0x1bc)])[_0x413a44(0x1af)]()['recommendCommands']()[_0x413a44(0x1ab)]()[_0x413a44(0x1b3)](_0x203ff8[_0x413a44(0x1aa)]);},exports['handler']=function(_0xc23805){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10_0x3001d3=a10_0x32cb;(function(_0x372e7a,_0x49d01f){const _0x54b7ec=a10_0x32cb,_0x3b0ae9=_0x372e7a();while(!![]){try{const _0xbf1b7e=parseInt(_0x54b7ec(0x1f6))/0x1*(parseInt(_0x54b7ec(0x191))/0x2)+parseInt(_0x54b7ec(0x264))/0x3+-parseInt(_0x54b7ec(0x23d))/0x4+-parseInt(_0x54b7ec(0x1e5))/0x5+parseInt(_0x54b7ec(0x15a))/0x6*(parseInt(_0x54b7ec(0x138))/0x7)+-parseInt(_0x54b7ec(0x26f))/0x8*(-parseInt(_0x54b7ec(0x1f4))/0x9)+-parseInt(_0x54b7ec(0x258))/0xa;if(_0xbf1b7e===_0x49d01f)break;else _0x3b0ae9['push'](_0x3b0ae9['shift']());}catch(_0x4c3a73){_0x3b0ae9['push'](_0x3b0ae9['shift']());}}}(a10_0x34fe,0xb30da));function a10_0x32cb(_0x59eb59,_0x5decd4){const _0x34fe99=a10_0x34fe();return a10_0x32cb=function(_0x32cb5b,_0x3b30e6){_0x32cb5b=_0x32cb5b-0x134;let _0x5ca99b=_0x34fe99[_0x32cb5b];return _0x5ca99b;},a10_0x32cb(_0x59eb59,_0x5decd4);}const fs=require('fs'),ws=require('ws'),util=require(a10_0x3001d3(0x266)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a10_0x3001d3(0x1f0)),{v4:uuidv4}=require(a10_0x3001d3(0x1d9)),webSocketUtils=require(a10_0x3001d3(0x192)),{logger}=require(a10_0x3001d3(0x20c)),{inputCloudProviderKeys}=require(a10_0x3001d3(0x13c)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0x3001d3(0x181)),{getCloudProviderObject}=require(a10_0x3001d3(0x15d)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x3001d3(0x173)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x3001d3(0x1d2)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x3001d3(0x158)),promisifiedRequest=util[a10_0x3001d3(0x1ae)](request);function a10_0x34fe(){const _0x451405=['description','username','TjCCO','TsgSY','https://','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','kBoeH','FlBBU','hRiXu','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','../../utils/instrumentationUtils','fCzMo','18iRbJWE','rfjoP','gridProfileId','../../cloudproviders/utils','GdLWK','SJUAI','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cfYbO','WapMB','XArVw','browserVersion','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','getGridHostname','xPIrG','cloudProvider','umhOf','updatePreSpawnedCluster','options','NIetd','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','create','existsSync','HxDjY','isPrivateGrid','LsbAW','../../config/constants','PeuQw','IKCUm','smrBw','pre-spawned-subnets-not-selected','grid','YzdLc','WjFuA','Found\x20Subnets:\x20','MnGyD','exit','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','cSbHv','HRJhi','../../utils/utilityMethods','clusterName','gridProfiles','CLI\x20run\x20finished:\x20','UmUiY','help','annotations','vtEQn','zxaCt','Found\x20VPC:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','dlEaU','AMXQB','private-ingress-nginx-controller','create-grid-checks-auth-failed','lTclK','90730unzYGw','../../utils/webSocketUtils','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','LOG','jMRtU','UeuEf','Create\x20a\x20new\x20Automation\x20grid.','Create\x20a\x20private/public\x20grid.','MaoNT','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','eACIw','create-grid-checks-invalid-profile','3|2|0|7|5|8|6|1|4','evluk','includes','ohFko','jwQFk','Aiopy','swUbT','gOegF','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','RIxOJ','htUHz','minNodes','yhtCn','s3BucketName','defaultGridProfile','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','password','promisify','\x20are\x20not\x20present\x20in\x20VPC:\x20','isClusterPresent','true','keNPy','isVPCPresent','Spawning\x20the\x20grid\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','toLowerCase','create-grid-called','securityGroups','bJTnj','deleteCluster','Adding\x20Websocket\x20listeners','://','configureIfNotConfigured','fetchLocalCreds','mEHNv','AkvSN','JUdtg','\x27\x20grid\x20profile','JeMLX','Cluster\x20','CXPXM','metadata','qkrKr','LhSII','CLI_RUN_STARTED','INFO','JrnOc','AweVX','stringify','getResourceClientId','createOtherResources','EDtxq','handler','../../utils/gridComponents','name','statusCode','YrENF','split','get-grid-url-auth-failed','McqWM','uuid','JgTTS','pBGiI','OLssf','nIYNf','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','\x20using\x20\x27','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','message','createdBy','AVWwP','<UsernamePlaceholder>','4388020zNUyRP','private-grid','dYyGl','Deleting\x20the\x20CloudFormation\x20Stacks','gridName','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Uefom','CLI\x20run\x20started','replace','bstackAccesskey','PBXmf','request','TcNEK','VYVNT','wPkgb','9bWxUeF','Fysrp','29FyyInT','ingress-nginx','create-grid-checks-grid-already-exists','grid-profile','auth','Cluster\x20created\x20successfully','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','ibyyo','Kuwrr','YYVRI','bIBzh','bGHcj','lupwU','ACPjc','zIatK','managedBy','setupNewCluster','BcGYc','AvITE','ingress-nginx-controller','Grid\x20can\x20be\x20accessed\x20at:\x20','grid-spawning-failed','../../config/logger','oZFZj','gridProfile','wAFJS','IphAH','VFKUj','create-grid-checks-non-200','yWgGq','debug','sJlMF','epilogue','s3Bucket','PgOgD','uIZyB','ydsdr','oMTDw','hfokr','\x20in\x20existing\x20cluster\x20\x27','alreadyPresent','maxNodes','GAPgN','aEnqp','cluster-name','user','fkIzu','type','RohNS','iQXZi','sendEventToBackend','Jmbzd','pioSd','hubVersion','nCFwW','ijTxB','ERROR','body','bstackUsername','subnets','clusterRegion','GsiNk','WMdjk','Namespace\x20Created','https','HlXBy','concurrency','wuVGO','info','init-not-called','connectionTimeout','429328RIzIVJ','dDnCM','prespawned-cluster-args-not-passed','kmfjQ','warn','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','GXnwJ','VYTRE','Subnets:\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','delay','get-grid-url-null-response','eZOVi','PCUoj','Oltdj','fBVbu','grid-name','Grid\x20profile\x20fetched\x20from\x20backend','eswaR','BZzGe','route53','vrFVR','vOwKc','Hwagy','Namespace\x20created','/packages/cli/get-grid-url?gridIdentifier=','ikujd','18234340QiUDcS','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','IkmxJ','waFmG','lZnHl','s3bucket','2|4|3|0|1','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hSLjC','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','argv','command','788598SLSvqt','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','util','mycaW','parse','GOMkY','GET','OSytz','bkKPD','error','fDrET','6900200otEYsi','xKmSj','PzNBe','tbboi','readNamespacedService','XEBCQ','2568524ajEcOO','pGVeY','Grid\x20spawned\x20on\x20the\x20cluster','setupAutoscaler','../../utils/userInput','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','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.','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','writeFileSync','create-grid-checks-null-response','WebSocket','cNDqi','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ggbyg','cloud-provider','QLsBU','region','hEpTk','privateGrid','IxsFW'];a10_0x34fe=function(){return _0x451405;};return a10_0x34fe();}exports[a10_0x3001d3(0x263)]=a10_0x3001d3(0x178),exports['desc']=a10_0x3001d3(0x197),exports['builder']=function(_0x119d39){const _0xec252e=a10_0x3001d3,_0x1f0ac6={};_0x1f0ac6[_0xec252e(0x207)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x1f0ac6['cfYbO']='string',_0x1f0ac6[_0xec252e(0x200)]=_0xec252e(0x1b5),_0x1f0ac6[_0xec252e(0x190)]=_0xec252e(0x141),_0x1f0ac6['ACPjc']=_0xec252e(0x160),_0x1f0ac6['zIatK']=_0xec252e(0x16d),_0x1f0ac6[_0xec252e(0x170)]=_0xec252e(0x198),_0x1f0ac6['wPkgb']=_0xec252e(0x186);const _0x304598=_0x1f0ac6,_0x34a2ab={};_0x34a2ab[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x207)],_0x34a2ab[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x47218f={};_0x47218f['description']=_0x304598[_0xec252e(0x200)],_0x47218f[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x4dba77={};_0x4dba77[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x190)],_0x4dba77[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x51b7b5={};_0x51b7b5[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x203)],_0x51b7b5[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x3d730e={};_0x3d730e[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x204)],_0x3d730e[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x32a7d9={};_0x32a7d9[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x170)],_0x32a7d9[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x56ec54={};return _0x56ec54[_0xec252e(0x24d)]=_0x34a2ab,_0x56ec54['grid-profile']=_0x47218f,_0x56ec54[_0xec252e(0x222)]=_0x4dba77,_0x56ec54['cloud-provider']=_0x51b7b5,_0x56ec54[_0xec252e(0x14a)]=_0x3d730e,_0x56ec54[_0xec252e(0x1e6)]=_0x32a7d9,_0x119d39['usage'](HELP_HEADER_MESSAGE[_0xec252e(0x16e)])[_0xec252e(0x216)](HELP_FOOTER_MESSAGE)[_0xec252e(0x16b)](_0x56ec54)[_0xec252e(0x186)](_0x304598[_0xec252e(0x1f3)])[_0xec252e(0x262)];},exports[a10_0x3001d3(0x1d1)]=async function(_0x1dd5d9){const _0x5c2704=a10_0x3001d3,_0x26a945={'dYyGl':_0x5c2704(0x26d),'fBVbu':_0x5c2704(0x241),'AweVX':_0x5c2704(0x236),'vrFVR':'http','tQlKY':_0x5c2704(0x261),'YzdLc':_0x5c2704(0x242),'PCUoj':'string','jMRtU':_0x5c2704(0x1b5),'cSbHv':_0x5c2704(0x141),'keNPy':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SJUAI':_0x5c2704(0x16d),'lJVPQ':'Create\x20a\x20private/public\x20grid.','bJTnj':_0x5c2704(0x186),'IxsFW':_0x5c2704(0x19d),'YYVRI':function(_0x467c04){return _0x467c04();},'TsgSY':function(_0x5acc1c,_0x4b22c0){return _0x5acc1c===_0x4b22c0;},'iQXZi':_0x5c2704(0x233),'fkIzu':_0x5c2704(0x210),'PzNBe':_0x5c2704(0x25f),'UeuEf':function(_0x25486f,_0x205ad0,_0x43f6fd,_0x53d0d3,_0x1c535d,_0x1879c7,_0x7b7b6d){return _0x25486f(_0x205ad0,_0x43f6fd,_0x53d0d3,_0x1c535d,_0x1879c7,_0x7b7b6d);},'Kuwrr':_0x5c2704(0x1b7),'OSytz':_0x5c2704(0x23b),'dlEaU':function(_0xac728a){return _0xac728a();},'mycaW':_0x5c2704(0x1e4),'eZOVi':'<PasswordPlaceholder>','MaoNT':_0x5c2704(0x1bb),'smrBw':function(_0x2b79b9,_0x1ece7d){return _0x2b79b9===_0x1ece7d;},'Oltdj':_0x5c2704(0x174),'ZLCoP':function(_0x564c80,_0x29b1e7){return _0x564c80!==_0x29b1e7;},'CXPXM':'WUllu','WMdjk':_0x5c2704(0x1f1),'xPIrG':_0x5c2704(0x1e0),'sJlMF':function(_0x4b465b,_0x2607eb,_0x5d1cdf,_0x1b8eec,_0x254ba2,_0x35b3f1,_0x24a6c0,_0x299d0a){return _0x4b465b(_0x2607eb,_0x5d1cdf,_0x1b8eec,_0x254ba2,_0x35b3f1,_0x24a6c0,_0x299d0a);},'cbiGM':_0x5c2704(0x23f),'nCFwW':_0x5c2704(0x24f),'nPcfk':_0x5c2704(0x246),'yhtCn':function(_0x405440,_0x466cb2,_0x8de645,_0x1ea837,_0x100cb6,_0x328fce,_0xf9ade3,_0x3b95d1){return _0x405440(_0x466cb2,_0x8de645,_0x1ea837,_0x100cb6,_0x328fce,_0xf9ade3,_0x3b95d1);},'KQnBA':'non-aws-azure-cluster','pBGiI':function(_0x17cd64,_0x1500bb){return _0x17cd64===_0x1500bb;},'VBNIy':_0x5c2704(0x1b1),'RIxOJ':_0x5c2704(0x1d0),'IKCUm':_0x5c2704(0x221),'YWHYl':'ikNtF','AVWwP':_0x5c2704(0x26a),'Hwagy':function(_0x4f966a,_0x9bdb29){return _0x4f966a(_0x9bdb29);},'GdLWK':function(_0x3808fe,_0x45984c){return _0x3808fe===_0x45984c;},'GAPgN':function(_0x235568,_0x378056){return _0x235568===_0x378056;},'dDnCM':function(_0x24909e,_0x1663b8){return _0x24909e!==_0x1663b8;},'ydsdr':_0x5c2704(0x1c8),'umhOf':_0x5c2704(0x219),'kmfjQ':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','hfokr':_0x5c2704(0x143),'jwQFk':function(_0x35c84d,_0x26b61e){return _0x35c84d===_0x26b61e;},'gOegF':function(_0xaf9921,_0x4e334f){return _0xaf9921!==_0x4e334f;},'vOwKc':_0x5c2704(0x155),'hRiXu':_0x5c2704(0x139),'YrENF':_0x5c2704(0x165),'IijOR':_0x5c2704(0x18f),'VFKUj':function(_0x9be88f,_0x4b3c00){return _0x9be88f!==_0x4b3c00;},'agrws':'TiaSk','oMTDw':_0x5c2704(0x154),'pioSd':_0x5c2704(0x212),'Aiopy':_0x5c2704(0x24e),'PgOgD':function(_0x1b57f7,_0x4f65d3){return _0x1b57f7!==_0x4f65d3;},'VXFtH':_0x5c2704(0x1c7),'cNDqi':_0x5c2704(0x157),'PBXmf':_0x5c2704(0x1f8),'WjFuA':function(_0xb09f0,_0x2bc4f3){return _0xb09f0!==_0x2bc4f3;},'WapMB':_0x5c2704(0x147),'HlXBy':function(_0xdbd23a,_0x3414f5){return _0xdbd23a===_0x3414f5;},'BZzGe':function(_0x577c56,_0x58745f){return _0x577c56!==_0x58745f;},'wuVGO':_0x5c2704(0x16c),'rfjoP':_0x5c2704(0x25b),'tbboi':_0x5c2704(0x1de),'QLsBU':function(_0x411372,_0x2edde7,_0x7518f9,_0x94a6c,_0x111a6b,_0x4e1266,_0x577bd3,_0x4ea26f){return _0x411372(_0x2edde7,_0x7518f9,_0x94a6c,_0x111a6b,_0x4e1266,_0x577bd3,_0x4ea26f);},'AMXQB':_0x5c2704(0x19c),'fCzMo':function(_0x34691f,_0x42d9a3){return _0x34691f===_0x42d9a3;},'JrnOc':function(_0x1f50db,_0x425d2f){return _0x1f50db!==_0x425d2f;},'xKmSj':_0x5c2704(0x19b),'hEpTk':_0x5c2704(0x1da),'WvgWH':_0x5c2704(0x25c),'MnGyD':function(_0xa8bddd,_0x1ef569,_0x46cb28,_0x4d8d02,_0x57c1bf,_0x5e9604,_0x442e9f,_0x1332f1,_0x2339e1,_0x3976e5,_0x12b709,_0x42607f){return _0xa8bddd(_0x1ef569,_0x46cb28,_0x4d8d02,_0x57c1bf,_0x5e9604,_0x442e9f,_0x1332f1,_0x2339e1,_0x3976e5,_0x12b709,_0x42607f);},'McqWM':'2|3|6|0|4|1|8|5|7','LsbAW':function(_0x36fd2e,_0x37ef87,_0x473354,_0x350463,_0x5c8ed0,_0x1e3147){return _0x36fd2e(_0x37ef87,_0x473354,_0x350463,_0x5c8ed0,_0x1e3147);},'htUHz':function(_0x1b1fea,_0xdf405d){return _0x1b1fea===_0xdf405d;},'LcqEq':_0x5c2704(0x1ea),'fDrET':function(_0x223771,_0x20d846){return _0x223771===_0x20d846;},'RohNS':function(_0x123714,_0x445509,_0x574f8d,_0x5c4ef2){return _0x123714(_0x445509,_0x574f8d,_0x5c4ef2);},'bkKPD':_0x5c2704(0x146),'ijTxB':_0x5c2704(0x140),'AkvSN':_0x5c2704(0x1fc),'JeMLX':function(_0x28be06,_0x494947){return _0x28be06!=_0x494947;},'EfbgJ':function(_0x1174bb,_0x1f52c0){return _0x1174bb!==_0x1f52c0;},'jLBXe':function(_0x40046d,_0x5de5bc){return _0x40046d>_0x5de5bc;},'TjCCO':function(_0x19c7f5,_0x1efcfa){return _0x19c7f5===_0x1efcfa;},'VYTRE':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','wAFJS':_0x5c2704(0x177),'XArVw':_0x5c2704(0x193),'bGHcj':'pre-spawned-invalid-vpc','cemMG':'pre-spawned-invalid-subnets','lupwU':_0x5c2704(0x25e),'Jmbzd':_0x5c2704(0x1fb),'ibyyo':_0x5c2704(0x13f),'Fysrp':function(_0xa4e6ab,_0x75d3df){return _0xa4e6ab===_0x75d3df;},'yWgGq':function(_0x34cbe4,_0x56a087){return _0x34cbe4(_0x56a087);},'fQXJG':function(_0x5adfbc,_0x4d6daa){return _0x5adfbc===_0x4d6daa;},'QDMbH':function(_0x3502a2,_0x378025){return _0x3502a2==_0x378025;},'Uefom':'Creating\x20namespace','HRJhi':function(_0x2a09e8,_0x4a964c){return _0x2a09e8!==_0x4a964c;},'RbDOW':'default','UmUiY':'Browserstack','mEHNv':_0x5c2704(0x235),'hSLjC':_0x5c2704(0x255),'JUdtg':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','OLssf':'Spawning\x20Grid\x20on\x20the\x20Cluster','wqqUq':function(_0xb4279e,_0x281de2){return _0xb4279e===_0x281de2;},'swUbT':function(_0x21e27b,_0x2e2db3,_0x14ec03,_0x387eaf,_0x5bf792,_0x36894d,_0x159507,_0x39d5a8,_0x44c59c,_0x4bef8d,_0x31778f){return _0x21e27b(_0x2e2db3,_0x14ec03,_0x387eaf,_0x5bf792,_0x36894d,_0x159507,_0x39d5a8,_0x44c59c,_0x4bef8d,_0x31778f);},'evluk':_0x5c2704(0x13a),'zxaCt':_0x5c2704(0x19a),'MwsZK':function(_0x5233eb,_0x314f76,_0x579f02){return _0x5233eb(_0x314f76,_0x579f02);},'vtEQn':_0x5c2704(0x18e),'GXnwJ':_0x5c2704(0x209),'oZFZj':_0x5c2704(0x1f7),'GOMkY':function(_0x70583c,_0x3b6e69){return _0x70583c(_0x3b6e69);},'AvITE':function(_0x248f1d,_0x508d3f){return _0x248f1d==_0x508d3f;},'IIcyb':function(_0x1cdc00,_0x17b556){return _0x1cdc00==_0x17b556;},'VYVNT':_0x5c2704(0x1a5),'XEBCQ':function(_0x1cb5aa,_0x5e7433,_0xc2a1f4,_0x1178c9,_0x13c86d,_0x4e0dab,_0x3ec4ce,_0x291dca){return _0x1cb5aa(_0x5e7433,_0xc2a1f4,_0x1178c9,_0x13c86d,_0x4e0dab,_0x3ec4ce,_0x291dca);},'bjMDi':_0x5c2704(0x248),'IkmxJ':function(_0x19611b,_0x13ce3c){return _0x19611b===_0x13ce3c;},'pXJPX':_0x5c2704(0x13d),'ikujd':_0x5c2704(0x1d7),'nIYNf':'get-grid-url-non-200','ohFko':function(_0x212250,_0x215370,_0x294380,_0x2f1644,_0x36e637,_0x5b0eae,_0x5c85f7){return _0x212250(_0x215370,_0x294380,_0x2f1644,_0x36e637,_0x5b0eae,_0x5c85f7);},'tMWdt':_0x5c2704(0x20b)};let _0x54a859=![],_0x24885d,_0x5f249d,_0x5674ae,_0x186a99,_0x490b6e,_0x209796,_0x590919,_0x528161,_0x1564a7,_0x3e0648,_0x1ad787,_0x97e97c,_0x4716d0=0x1,_0x4c3bb1=0xe;try{global_registry['requestId']=_0x26a945['YYVRI'](uuidv4),global_registry[_0x5c2704(0x171)]=![];if(!fs[_0x5c2704(0x16f)](_0x26a945[_0x5c2704(0x1ff)](getCredentialsPath))){if(_0x26a945[_0x5c2704(0x151)](_0x26a945[_0x5c2704(0x227)],_0x26a945[_0x5c2704(0x224)])){const _0x1ab096={};_0x1ab096['type']=_0x50bebb[_0x5c2704(0x194)],_0x1ab096['message']=_0x126ee0,_0x3a0afd[_0x5c2704(0x228)](_0x42c636,_0x1ab096,_0x26a945[_0x5c2704(0x1e7)],!![]);}else console[_0x5c2704(0x26d)](_0x26a945[_0x5c2704(0x134)]),await _0x26a945[_0x5c2704(0x196)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945['Kuwrr'],messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x26b)],null,_0x1dd5d9),process[_0x5c2704(0x17d)](0x1);}await _0x26a945[_0x5c2704(0x196)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945[_0x5c2704(0x1fe)],messageTypes[_0x5c2704(0x1ca)],null,null,_0x1dd5d9);const _0x4ed58a=JSON[_0x5c2704(0x268)](fs['readFileSync'](_0x26a945[_0x5c2704(0x18c)](getCredentialsPath)));global_registry[_0x5c2704(0x230)]=_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x14f)],global_registry[_0x5c2704(0x1ee)]=_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x1ad)];const _0x52be78=WS_ENDPOINT[_0x5c2704(0x1ed)](_0x26a945[_0x5c2704(0x267)],_0x4ed58a['Browserstack'][_0x5c2704(0x14f)])[_0x5c2704(0x1ed)](_0x26a945[_0x5c2704(0x249)],_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x1ad)]),_0xb802c9={};_0xb802c9[_0x5c2704(0x144)]=ws,_0xb802c9[_0x5c2704(0x23c)]=0x36ee80,_0x3e0648=new ReconnectingWebSocket(_0x52be78,[],_0xb802c9),logger['debug'](_0x26a945[_0x5c2704(0x199)]),webSocketUtils['addListeners'](_0x3e0648,_0x1dd5d9[_0x5c2704(0x223)],_0x1dd5d9[_0x5c2704(0x1ad)]);let _0x5774a1=DEFAULT_GRID_NAME;if(_0x1dd5d9['clusterName']||_0x1dd5d9[_0x5c2704(0x168)]||_0x1dd5d9[_0x5c2704(0x14a)]){if(_0x26a945[_0x5c2704(0x176)](_0x26a945[_0x5c2704(0x24b)],_0x26a945[_0x5c2704(0x24b)])){!(_0x1dd5d9[_0x5c2704(0x182)]&&_0x1dd5d9[_0x5c2704(0x168)]&&_0x1dd5d9[_0x5c2704(0x14a)])&&(_0x26a945['ZLCoP'](_0x26a945[_0x5c2704(0x1c5)],_0x26a945[_0x5c2704(0x234)])?(_0x24885d=_0x26a945[_0x5c2704(0x167)],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['cbiGM'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x1c4c58[_0x5c2704(0x168)]={});if(![AWS,AZURE,GCP][_0x5c2704(0x19f)](_0x1dd5d9[_0x5c2704(0x168)][_0x5c2704(0x1b6)]())){if(_0x26a945[_0x5c2704(0x151)](_0x26a945['nCFwW'],_0x26a945[_0x5c2704(0x22c)]))_0x24885d=_0x26a945['nPcfk'],await _0x26a945[_0x5c2704(0x1a9)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['KQnBA'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1);else{const _0x4c7226={};_0x4c7226[_0x5c2704(0x225)]=_0x189e40[_0x5c2704(0x194)],_0x4c7226[_0x5c2704(0x1e1)]=_0x5c2704(0x1c4)+_0x358396+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x4973c7[_0x5c2704(0x228)](_0xc98cea,_0x4c7226,_0x26a945[_0x5c2704(0x24c)]),_0x27be86['info'](_0x5c2704(0x1c4)+_0x504888+_0x5c2704(0x18b)),_0x306a5d=!![];}}_0x1dd5d9[_0x5c2704(0x14c)]&&_0x26a945['pBGiI'](_0x1dd5d9[_0x5c2704(0x14c)][_0x5c2704(0x1b6)](),_0x26a945['VBNIy'])&&(_0x26a945[_0x5c2704(0x176)](_0x26a945[_0x5c2704(0x1a6)],_0x26a945['RIxOJ'])?global_registry[_0x5c2704(0x171)]=!![]:_0x347327[_0x5c2704(0x171)]=!![]),_0x54a859=!![],_0x5674ae=_0x1dd5d9['clusterName'],_0x5f249d=_0x1dd5d9[_0x5c2704(0x168)][_0x5c2704(0x1b6)](),_0x186a99=_0x1dd5d9[_0x5c2704(0x14a)];}else _0x299dc8=_0x2ffdf8[_0x5c2704(0x251)],_0x14462c=_0x26a945['AweVX'];}_0x1dd5d9[_0x5c2704(0x1e9)]&&(_0x26a945[_0x5c2704(0x1db)](_0x26a945[_0x5c2704(0x175)],_0x26a945['YWHYl'])?_0x49ecbc=_0x18a193[_0x500d30[_0x5c2704(0x20e)]]:_0x5774a1=_0x1dd5d9[_0x5c2704(0x1e9)]);global_registry[_0x5c2704(0x1e9)]=_0x5774a1;const _0x6f2f40={};_0x6f2f40[_0x5c2704(0x14f)]=_0x4ed58a['Browserstack'][_0x5c2704(0x14f)],_0x6f2f40['password']=_0x4ed58a['Browserstack']['password'];const _0x5cbcbc={};_0x5cbcbc['method']=_0x26a945[_0x5c2704(0x1e3)],_0x5cbcbc[_0x5c2704(0x1fa)]=_0x6f2f40;const _0x416183=_0x5cbcbc,_0x10b5c1='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x1f4cdc={};_0x1f4cdc[_0x5c2704(0x1e9)]=_0x5774a1;const _0x19f658={'url':_0x10b5c1,'qs':_0x1f4cdc,..._0x416183},_0x2c052d=_0x19f658,_0x5ad05a=await _0x26a945[_0x5c2704(0x254)](promisifiedRequest,_0x2c052d);(_0x26a945[_0x5c2704(0x15e)](_0x5ad05a,null)||_0x26a945[_0x5c2704(0x220)](_0x5ad05a,undefined))&&(_0x26a945[_0x5c2704(0x23e)](_0x26a945[_0x5c2704(0x21a)],_0x26a945[_0x5c2704(0x169)])?(_0x24885d=_0x26a945[_0x5c2704(0x240)],await _0x26a945[_0x5c2704(0x1a9)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x21c)],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0xeaa9ec=_0x26a945[_0x5c2704(0x252)]);_0x26a945[_0x5c2704(0x1a1)](_0x5ad05a[_0x5c2704(0x1d4)],0x191)&&(_0x26a945[_0x5c2704(0x1a4)](_0x26a945[_0x5c2704(0x253)],_0x26a945[_0x5c2704(0x156)])?(_0x24885d=_0x26a945[_0x5c2704(0x1d5)],await _0x26a945['yhtCn'](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['IijOR'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):(_0x52ca4a[_0x5c2704(0x26d)](_0x26a945['tQlKY']),_0x118947[_0x5c2704(0x17d)](0x1)));_0x26a945[_0x5c2704(0x1a4)](_0x5ad05a[_0x5c2704(0x1d4)],0xc8)&&(_0x26a945[_0x5c2704(0x211)](_0x26a945['agrws'],_0x26a945[_0x5c2704(0x21b)])?(_0x24885d=_0x5c2704(0x17e)+JSON[_0x5c2704(0x1cd)](_0x5ad05a),await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x22a)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x249fc6[_0x5c2704(0x23a)]('Found\x20Subnets:\x20'+_0x56af87['stringify'](_0x353312)+'\x20'));const _0x18ad03=JSON[_0x5c2704(0x268)](_0x5ad05a['body']),_0x2bfb2a={};_0x2bfb2a[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x1c9)],_0x2bfb2a[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x2bfb2a);const _0xcc2b2e={};_0xcc2b2e[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0xcc2b2e['message']=_0x26a945[_0x5c2704(0x1a2)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0xcc2b2e);if(_0x18ad03[_0x5c2704(0x21e)]){if(_0x26a945[_0x5c2704(0x218)](_0x26a945['VXFtH'],_0x26a945['VXFtH'])){const _0x30fd68={};_0x30fd68[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x179)],_0x30fd68[_0x5c2704(0x225)]=_0x26a945['PCUoj'];const _0x4d8885={};_0x4d8885[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x195)],_0x4d8885[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x240447={};_0x240447[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x17f)],_0x240447[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x42372d={};_0x42372d[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x1b2)],_0x42372d[_0x5c2704(0x225)]=_0x26a945['PCUoj'];const _0x4a1094={};_0x4a1094[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x15f)],_0x4a1094[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x2ae999={};_0x2ae999['description']=_0x26a945['lJVPQ'],_0x2ae999[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x2563e7={};return _0x2563e7['grid-name']=_0x30fd68,_0x2563e7[_0x5c2704(0x1f9)]=_0x4d8885,_0x2563e7[_0x5c2704(0x222)]=_0x240447,_0x2563e7[_0x5c2704(0x148)]=_0x42372d,_0x2563e7['region']=_0x4a1094,_0x2563e7[_0x5c2704(0x1e6)]=_0x2ae999,_0x2bc470['usage'](_0x37a67d[_0x5c2704(0x16e)])[_0x5c2704(0x216)](_0x245b13)[_0x5c2704(0x16b)](_0x2563e7)[_0x5c2704(0x186)](_0x26a945[_0x5c2704(0x1b9)])[_0x5c2704(0x262)];}else _0x24885d=_0x26a945[_0x5c2704(0x145)],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x1ef)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1);}const _0x1a47c9=_0x18ad03[_0x5c2704(0x183)];let _0x2c1880=_0x1a47c9[_0x18ad03[_0x5c2704(0x1ab)]];if(_0x1dd5d9['gridProfile']){if(_0x26a945[_0x5c2704(0x17a)](_0x26a945[_0x5c2704(0x162)],_0x26a945[_0x5c2704(0x162)]))throw _0x5d53b1;else _0x2c1880=_0x1a47c9[_0x1dd5d9[_0x5c2704(0x20e)]];}if(_0x26a945[_0x5c2704(0x237)](_0x54a859,![])){if(_0x26a945['BZzGe'](_0x26a945[_0x5c2704(0x239)],_0x26a945[_0x5c2704(0x239)]))_0x342b63['info'](_0x5c2704(0x18a)+_0x4c163e+'\x20');else{_0x26a945['HlXBy'](_0x2c1880,undefined)&&(_0x26a945['smrBw'](_0x26a945[_0x5c2704(0x15b)],_0x26a945[_0x5c2704(0x15b)])?(_0x24885d=_0x26a945[_0x5c2704(0x135)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x18d)],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x14ddb7[_0x5c2704(0x171)]=!![]);global_registry[_0x5c2704(0x15c)]=_0x2c1880['id'];if(_0x26a945[_0x5c2704(0x159)](_0x5f249d,AZURE)||_0x26a945[_0x5c2704(0x159)](_0x2c1880?.[_0x5c2704(0x168)],AZURE)){if(_0x26a945[_0x5c2704(0x1cb)](_0x26a945[_0x5c2704(0x270)],_0x26a945[_0x5c2704(0x14b)]))console[_0x5c2704(0x26d)](_0x26a945['tQlKY']),process['exit'](0x1);else{const _0x55e3d8=_0x26a945[_0x5c2704(0x14d)][_0x5c2704(0x1d6)]('|');let _0x5072b7=0x0;while(!![]){switch(_0x55e3d8[_0x5072b7++]){case'0':_0x4de7b4[_0x5c2704(0x23a)](_0x41f9e1);continue;case'1':_0x242d70[_0x5c2704(0x22b)]=_0x487c4a[_0x5c2704(0x22b)];continue;case'2':_0x37fe87=_0x5c2704(0x1b4)+_0x43ca79+_0x5c2704(0x21d)+_0x4de971+'\x27';continue;case'3':const _0x5018a1={};_0x5018a1[_0x5c2704(0x225)]=_0x3604f6[_0x5c2704(0x1c9)],_0x5018a1[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),_0x5c228a[_0x5c2704(0x228)](_0x4f1c8d,_0x5018a1);continue;case'4':_0x46b5e0[_0x5c2704(0x164)]=_0x409a23[_0x5c2704(0x164)];continue;case'5':_0x3d7160['cloudProvider']=_0x2b8ddd;continue;case'6':_0x469dce['clusterName']=_0x247320;continue;case'7':const _0x4c1110={};_0x4c1110['type']=_0x3142ed[_0x5c2704(0x194)],_0x4c1110[_0x5c2704(0x1e1)]=_0x452978,_0x36c344['sendEventToBackend'](_0x338160,_0x4c1110);continue;case'8':_0x14b05a[_0x5c2704(0x232)]=_0x43cd2f;continue;}break;}}}_0x24885d='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x5774a1+_0x5c2704(0x1df)+_0x2c1880[_0x5c2704(0x1d3)]+_0x5c2704(0x1c2),logger[_0x5c2704(0x23a)](_0x24885d);const _0x1c151f={};_0x1c151f[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x1c151f[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1c151f),_0x5f249d=_0x2c1880[_0x5c2704(0x168)],_0x5674ae=_0x2c1880[_0x5c2704(0x182)],_0x186a99=_0x2c1880[_0x5c2704(0x14a)],_0x490b6e=_0x2c1880[_0x5c2704(0x238)],_0x209796=_0x2c1880['instanceType'],_0x590919=_0x2c1880['vpc'],securityGroups=_0x2c1880[_0x5c2704(0x1b8)],subnets=_0x2c1880[_0x5c2704(0x231)],_0x528161=_0x2c1880[_0x5c2704(0x25d)],_0x4716d0=_0x2c1880[_0x5c2704(0x1a8)],_0x4c3bb1=_0x2c1880[_0x5c2704(0x21f)],_0x1ad787=_0x18ad03['hubVersion'],_0x97e97c=_0x18ad03[_0x5c2704(0x164)],_0x26a945[_0x5c2704(0x250)](_0x2c1880[_0x5c2704(0x14c)],undefined)&&_0x2c1880['privateGrid']&&(_0x26a945[_0x5c2704(0x176)](_0x26a945['WvgWH'],_0x26a945['WvgWH'])?global_registry[_0x5c2704(0x171)]=!![]:_0x223928=_0x13dd03[_0x5c2704(0x1e9)]),_0x26a945[_0x5c2704(0x17c)](updateGlobalRegistryWithConfig,_0x5f249d,_0x5674ae,_0x186a99,_0x490b6e,_0x209796,_0x528161,_0x2c1880,_0x1ad787,_0x97e97c,_0x4716d0,_0x4c3bb1);}}else{const _0x5b324d=_0x26a945[_0x5c2704(0x1d8)][_0x5c2704(0x1d6)]('|');let _0x1204ca=0x0;while(!![]){switch(_0x5b324d[_0x1204ca++]){case'0':const _0x48a8de={};_0x48a8de[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x48a8de[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x48a8de);continue;case'1':global_registry[_0x5c2704(0x232)]=_0x186a99;continue;case'2':const _0x37d27b={};_0x37d27b['type']=WS_EVENTS[_0x5c2704(0x1c9)],_0x37d27b[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x37d27b);continue;case'3':_0x24885d=_0x5c2704(0x1b4)+_0x5774a1+_0x5c2704(0x21d)+_0x5674ae+'\x27';continue;case'4':global_registry['cloudProvider']=_0x5f249d;continue;case'5':global_registry[_0x5c2704(0x22b)]=_0x18ad03[_0x5c2704(0x22b)];continue;case'6':logger['info'](_0x24885d);continue;case'7':global_registry['browserVersion']=_0x18ad03[_0x5c2704(0x164)];continue;case'8':global_registry['clusterName']=_0x5674ae;continue;}break;}}const _0x284664=_0x26a945[_0x5c2704(0x172)](getCloudProviderObject,_0x5f249d,_0x5674ae,_0x5774a1,_0x3e0648,webSocketUtils),_0x3c58c5=_0x4ed58a['cloudProvider']||{};if(_0x26a945[_0x5c2704(0x1a7)](_0x3c58c5[_0x5f249d],undefined)){logger[_0x5c2704(0x23a)](_0x26a945['LcqEq']);_0x26a945[_0x5c2704(0x26e)](_0x4ed58a[_0x5c2704(0x168)],undefined)&&(_0x4ed58a[_0x5c2704(0x168)]={});_0x4ed58a[_0x5c2704(0x168)][_0x5f249d]={};const _0x3884f7=await _0x26a945[_0x5c2704(0x226)](inputCloudProviderKeys,_0x5f249d,_0x4ed58a,_0x284664);fs[_0x5c2704(0x142)](_0x26a945[_0x5c2704(0x1ff)](getCredentialsPath),JSON[_0x5c2704(0x1cd)](_0x3884f7)),logger[_0x5c2704(0x214)](_0x26a945[_0x5c2704(0x26c)]);}else{_0x24885d=_0x26a945[_0x5c2704(0x22d)];const _0x57d6d3={};_0x57d6d3['type']=WS_EVENTS['LOG'],_0x57d6d3[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x57d6d3),logger[_0x5c2704(0x23a)](_0x24885d),await _0x284664[_0x5c2704(0x1be)](_0x3c58c5);}_0x284664[_0x5c2704(0x1bd)]();let _0x20b5e6;if(_0x26a945['pBGiI'](_0x54a859,![])){_0x24885d=_0x5c2704(0x1ac)+_0x186a99+').';const _0x229c12={};_0x229c12[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x229c12[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x229c12),logger[_0x5c2704(0x23a)](_0x24885d);const _0x2df98d=await _0x284664[_0x5c2704(0x1b0)]();if(_0x2df98d){const _0x1f0977={};_0x1f0977[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x1f0977['message']=_0x5c2704(0x1c4)+_0x5674ae+_0x5c2704(0x18b),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1f0977,_0x26a945[_0x5c2704(0x24c)]),logger[_0x5c2704(0x23a)](_0x5c2704(0x1c4)+_0x5674ae+_0x5c2704(0x18b)),_0x54a859=!![];}else{const _0x3fefeb={};_0x3fefeb[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x3fefeb['message']=_0x26a945[_0x5c2704(0x1c0)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x3fefeb),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1c0)]);const _0x1893f5=_0x26a945['JeMLX'](_0x590919,null)&&_0x26a945[_0x5c2704(0x1cb)](_0x590919,undefined),_0x5afc76=_0x26a945[_0x5c2704(0x1c3)](subnets,null)&&_0x26a945['EfbgJ'](subnets,undefined)&&_0x26a945['jLBXe'](subnets['length'],0x0);if(_0x1893f5){_0x26a945[_0x5c2704(0x150)](_0x5afc76,![])&&(_0x24885d=_0x26a945[_0x5c2704(0x244)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945['Kuwrr'],_0x26a945[_0x5c2704(0x20f)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));const _0x241a6c=await _0x284664[_0x5c2704(0x1b3)](_0x590919);_0x26a945['TjCCO'](_0x241a6c,![])?(_0x24885d=_0x26a945[_0x5c2704(0x163)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x201)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):logger[_0x5c2704(0x23a)](_0x5c2704(0x18a)+_0x590919+'\x20');const _0x20d1f6=await _0x284664['isSubnetsValid'](subnets,_0x590919);_0x26a945[_0x5c2704(0x1a7)](_0x20d1f6[0x0],![])?(_0x24885d=_0x5c2704(0x245)+_0x20d1f6[0x1]+_0x5c2704(0x1af)+_0x590919+_0x5c2704(0x259),await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['cemMG'],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):logger[_0x5c2704(0x23a)](_0x5c2704(0x17b)+JSON[_0x5c2704(0x1cd)](subnets)+'\x20'),await _0x284664['setupNewCluster'](_0x590919,subnets);}else{const _0x214d9e=_0x26a945[_0x5c2704(0x202)]['split']('|');let _0x3b9994=0x0;while(!![]){switch(_0x214d9e[_0x3b9994++]){case'0':const _0x16e177={};_0x16e177[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x16e177[_0x5c2704(0x1e1)]='Cluster\x20created\x20successfully',webSocketUtils['sendEventToBackend'](_0x3e0648,_0x16e177);continue;case'1':logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x229)]);continue;case'2':const _0x51a776={};_0x51a776[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x51a776[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x1fd)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x51a776);continue;case'3':await _0x284664[_0x5c2704(0x206)]();continue;case'4':logger['info'](_0x26a945[_0x5c2704(0x1fd)]);continue;}break;}}}}_0x54a859&&_0x26a945[_0x5c2704(0x1f5)](_0x5f249d,AZURE)&&(global_registry[_0x5c2704(0x217)]=_0x18ad03[_0x5c2704(0x1aa)],await _0x284664[_0x5c2704(0x16a)](),await _0x284664[_0x5c2704(0x1cf)]());const [_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x2726b4,_0x2c3642]=await _0x26a945[_0x5c2704(0x213)](createK8sClient,_0x284664);_0x26a945['fQXJG'](_0x54a859,![])&&_0x26a945['QDMbH'](_0x5f249d,AWS)&&(_0x20b5e6=await _0x284664[_0x5c2704(0x13b)](_0x376c93,_0x1dd5d9));try{_0x1564a7=_0x26a945[_0x5c2704(0x254)](kebabCase,_0x5774a1),logger['info'](_0x26a945[_0x5c2704(0x1eb)]);const _0x190172={};_0x190172[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x190172[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x1eb)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x190172);if(_0x26a945[_0x5c2704(0x180)](_0x1564a7,_0x26a945['RbDOW'])){const _0x213a53={};_0x213a53[_0x5c2704(0x1e2)]=_0x26a945[_0x5c2704(0x185)],_0x213a53[_0x5c2704(0x205)]=_0x26a945[_0x5c2704(0x185)];const _0xaee292={};_0xaee292[_0x5c2704(0x1d3)]=_0x1564a7,_0xaee292[_0x5c2704(0x187)]=_0x213a53;const _0x5e105b={};_0x5e105b[_0x5c2704(0x1c6)]=_0xaee292;let _0x25af81=_0x5e105b;await _0x376c93['createNamespace'](_0x25af81),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1bf)]);}const _0xe75015={};_0xe75015['type']=WS_EVENTS[_0x5c2704(0x194)],_0xe75015[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x260)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0xe75015);const _0x118cac={};_0x118cac[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x118cac['message']=_0x26a945[_0x5c2704(0x1c1)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x118cac),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1dc)]);let _0x384073={};_0x26a945['wqqUq'](_0x5f249d,AZURE)&&(_0x384073={'clientId':await _0x284664[_0x5c2704(0x1ce)]('turboscale-managed-identity-'+_0x5674ae)});await _0x26a945[_0x5c2704(0x1a3)](addGridComponents,_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x1564a7,_0x5674ae,_0x20b5e6,_0x2726b4,_0x2c3642,_0x384073),_0x24885d=_0x26a945[_0x5c2704(0x19e)],logger[_0x5c2704(0x23a)](_0x24885d);const _0x3895a3={};_0x3895a3['type']=WS_EVENTS[_0x5c2704(0x194)],_0x3895a3[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x3895a3),_0x24885d=_0x26a945[_0x5c2704(0x189)],logger[_0x5c2704(0x23a)](_0x24885d);const _0x1b1fa1={};_0x1b1fa1[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x1b1fa1[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1b1fa1),await webSocketUtils[_0x5c2704(0x247)](0xea60);const _0x557b48=await _0x26a945['MwsZK'](getNamespaceUID,_0x376c93,_0x1564a7);let _0x3b7526=global_registry[_0x5c2704(0x171)]?_0x26a945[_0x5c2704(0x188)]:_0x26a945[_0x5c2704(0x243)],_0x40afcb=await _0x376c93[_0x5c2704(0x136)](_0x3b7526,_0x26a945[_0x5c2704(0x20d)]),_0x3f29f3=_0x284664[_0x5c2704(0x166)](_0x40afcb)+'/'+_0x1564a7,_0x40ca5f=_0x26a945[_0x5c2704(0x252)];try{const _0x5972d7={'url':_0x5c2704(0x152)+AG_API_URL+_0x5c2704(0x256)+_0x557b48,..._0x416183},_0x46f466=_0x5972d7,_0x5d8e8d=await _0x26a945[_0x5c2704(0x269)](promisifiedRequest,_0x46f466);(_0x26a945[_0x5c2704(0x208)](_0x5d8e8d,null)||_0x26a945['IIcyb'](_0x5d8e8d,undefined))&&(_0x24885d=_0x26a945[_0x5c2704(0x1f2)],await _0x26a945[_0x5c2704(0x137)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945['Kuwrr'],_0x26a945['bjMDi'],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));_0x26a945['IkmxJ'](_0x5d8e8d[_0x5c2704(0x1d4)],0x191)&&(_0x24885d=_0x26a945['pXJPX'],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x257)],_0x26a945['dYyGl']),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));_0x26a945['dDnCM'](_0x5d8e8d[_0x5c2704(0x1d4)],0xc8)&&(_0x24885d=_0x5c2704(0x153)+JSON[_0x5c2704(0x1cd)](_0x5d8e8d),await _0x26a945['sJlMF'](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x1dd)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1));const _0xc4b156=JSON[_0x5c2704(0x268)](_0x5d8e8d[_0x5c2704(0x22f)]);_0xc4b156[_0x5c2704(0x251)]&&(_0x3f29f3=_0xc4b156['route53'],_0x40ca5f=_0x26a945[_0x5c2704(0x1cc)]),global_registry[_0x5c2704(0x171)]&&(_0x40ca5f=_0x26a945[_0x5c2704(0x252)]);}catch(_0x26e3c7){}_0x24885d=_0x5c2704(0x20a)+_0x3f29f3+'\x20',logger[_0x5c2704(0x23a)](_0x24885d);const _0x45f598={};_0x45f598[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x45f598['message']=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x45f598),_0x24885d='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x40ca5f+_0x5c2704(0x1bc)+_0x3f29f3+'/wd/hub',logger['info'](_0x24885d);const _0x48f036={};_0x48f036[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x48f036[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x48f036);const _0x5138e7={};_0x5138e7[_0x5c2704(0x225)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x5138e7[_0x5c2704(0x1e1)]=_0x5c2704(0x184)+_0x3f29f3,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x5138e7),await webSocketUtils[_0x5c2704(0x247)](0x7d0);}catch(_0x1e8078){if(_0x26a945[_0x5c2704(0x25a)](_0x54a859,![]))try{logger[_0x5c2704(0x23a)](_0x5c2704(0x1e8)),await _0x26a945[_0x5c2704(0x172)](removeGridComponents,_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x1564a7),await _0x284664[_0x5c2704(0x1ba)](_0x376c93,global_registry[_0x5c2704(0x232)]);}catch(_0x41e351){throw _0x41e351;}throw _0x1e8078;}}catch(_0x43b49d){const _0x16bf6a=_0x5c2704(0x265)+_0x43b49d+'\x20\x0a'+JSON[_0x5c2704(0x1cd)](_0x43b49d)+'\x20';if(_0x3e0648){const _0x290406={};_0x290406['type']=WS_EVENTS[_0x5c2704(0x194)],_0x290406['message']=_0x16bf6a,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x290406,_0x26a945[_0x5c2704(0x1e7)],!![]);}await webSocketUtils[_0x5c2704(0x247)](0x7d0);const _0x284361={};_0x284361[_0x5c2704(0x26d)]=_0x16bf6a,await _0x26a945[_0x5c2704(0x1a0)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945[_0x5c2704(0x1fe)],messageTypes[_0x5c2704(0x22e)],_0x26a945['tMWdt'],_0x284361,_0x1dd5d9),logger['error'](_0x16bf6a);}process['exit'](0x0);};
|
|
1
|
+
function a10_0x3d71(){const _0x40aaa7=['weuAQ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','Namespace\x20Created','TXSgp','Will\x20be\x20spawning\x20the\x20grid\x20','argv','TMUGz','mULDZ','auth','string','Namespace\x20created','addListeners','user','eXkCf','split','minNodes','KiAWQ','exit','BtlWD','FmsQA','XagTZ','kjEBg','grid-name','promisify','hMWwM','Grid\x20spawned\x20on\x20the\x20cluster','isSubnetsValid','tqzTA','WebSocket','http','iPSRs','non-aws-azure-cluster','requestId','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','dRLLr','olunx','253XEXYWz','sendEventToBackend','usage','pre-spawned-subnets-not-selected','1185148jbNAZN','zyBwY','390yWOOMe','pre-spawned-invalid-subnets','region','PYzck','bzFVk','../../config/constants','CLI\x20run\x20started','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','yvUGM','fsjxa','iaDAx','managedBy','DFcjT','Smitd','sVMOk','iCZpR','ingress-nginx','esGhy','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','epilogue','hubVersion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','bnSus','body','Cluster\x20created\x20successfully','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','replace','BfXaa','util','defaultGridProfile','ERROR','MWvzu','IfcWM','Spawning\x20the\x20grid\x20','XZcAR','GET','5UPbOfh','nxYMt','abylF','ZOyay','gclbO','Spawning\x20Grid\x20on\x20the\x20Cluster','XLQcn','djydc','../../utils/webSocketUtils','obpuF','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','izdCi','stringify','CdUvO','cloudProvider','s3BucketName','reIsv','<PasswordPlaceholder>','LOG','viyRM','aTYNL','gNLyv','https://','Cluster\x20','BVznI','delay','uwzcY','statusCode','name','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','zgLaY','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cHSUJ','createNamespace','BOBIr','help','subnets','ingress-nginx-controller','xHoNK','JZXut','route53','MliuB','UEBar','bstackAccesskey','configureIfNotConfigured','Creating\x20namespace','QJofz','alreadyPresent','ImdAD','Fvidv','AMhNi','request','ULcNz','UmXiC','setupNewCluster','getResourceClientId','default','debug','message','toLowerCase','yczae','DpWbE','10jINtSD','tENvE','YdRpg','1819092OXvjaX','s3Bucket','vQvRF','SAglE','IKfJL','LxgsG','TaFNR','/wd/hub','../../cloudproviders/utils','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','JnOqs','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AMRwU','aBcif','updatePreSpawnedCluster','gridProfileId','getGridHostname','gEceu','7419OKuSiv','password','TVYUh','get-grid-url-null-response','BHtie','\x20in\x20existing\x20cluster\x20\x27','create-grid-checks-invalid-profile','ksQBD','nKeXg','bstackUsername','EPlAG','parse','OQcuF','wSSgf','UBUfe','writeFileSync','init-not-called','RnmXa','existsSync','wueAN','error','mBUHH','oJPvh','507285KmEhKr','lCzDp','gridProfile','isClusterPresent','Browserstack','INFO','msznN','length','/packages/cli/get-grid-url?gridIdentifier=','Create\x20a\x20private/public\x20grid.','cluster-name','private-grid','clusterName','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','PErEX','XwKTU','ymoAo','3|4|2|1|0','includes','bvXAU','dgpoY','../../utils/utilityMethods','115404mcluSE','BKRGQ','DCBCL','method','SkfKL','zTFHv','info','FdmgC','command','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','3773984xfvUDT','hnLgX','Grid\x20profile\x20fetched\x20from\x20backend','wIdqP','ovyFo','6|4|2|1|3|5|7|0|8','uHwSo','isPrivateGrid','LKYYO','BOphp','reconnecting-websocket','gridName','Create\x20a\x20new\x20Automation\x20grid.','handler','create','tCmFv','s3bucket','xmUKP','HjsdN','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','CLI\x20run\x20finished:\x20','wohtN','bmZjC','MIDje','RiKdr','https','gridProfiles','readFileSync','51076cvtSyP','ACLTW','true','<UsernamePlaceholder>','JaODs','privateGrid','cloud-provider','uuid','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','\x20are\x20not\x20present\x20in\x20VPC:\x20','RvdYB','desc','type','qaxcc','whfHX','clusterRegion','vZdho','create-grid-checks-auth-failed','maxNodes','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','EliXe','pawSq','BgVQS','readNamespacedService','isVPCPresent','mxUWK','7ggzmNh','fetchLocalCreds','../../utils/userInput','OIZNN','VyuzE','turboscale-managed-identity-','connectionTimeout','TXCPT','lPtIx','CcnCS','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','description','createdBy','AulQI','QnbRM','../../utils/createk8sClient','Xpoge','metadata','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.','createOtherResources','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','../../utils/gridComponents','builder','hsKSL','://','PWsgN','nnQHh','grid-profile','username','get-grid-url-auth-failed','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','eBugY','NSFAs','create-grid-checks-grid-already-exists','Found\x20Subnets:\x20','grid-spawning-failed','browserVersion','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','cfMpF','CLI_RUN_STARTED','YwyGc','dakqp','CLI_RUN_FINISHED'];a10_0x3d71=function(){return _0x40aaa7;};return a10_0x3d71();}const a10_0xfd270d=a10_0x339d;(function(_0x502d2e,_0x250cd9){const _0x197225=a10_0x339d,_0x264336=_0x502d2e();while(!![]){try{const _0x3b2d2d=-parseInt(_0x197225(0x196))/0x1+-parseInt(_0x197225(0x206))/0x2*(-parseInt(_0x197225(0x27d))/0x3)+parseInt(_0x197225(0x204))/0x4*(-parseInt(_0x197225(0x22a))/0x5)+parseInt(_0x197225(0x26b))/0x6*(parseInt(_0x197225(0x1b0))/0x7)+-parseInt(_0x197225(0x17a))/0x8+parseInt(_0x197225(0x15a))/0x9*(parseInt(_0x197225(0x268))/0xa)+-parseInt(_0x197225(0x200))/0xb*(-parseInt(_0x197225(0x170))/0xc);if(_0x3b2d2d===_0x250cd9)break;else _0x264336['push'](_0x264336['shift']());}catch(_0x5ba8e3){_0x264336['push'](_0x264336['shift']());}}}(a10_0x3d71,0x3b896));const fs=require('fs'),ws=require('ws'),util=require(a10_0xfd270d(0x222)),ReconnectingWebSocket=require(a10_0xfd270d(0x184)),request=require(a10_0xfd270d(0x25d)),{v4:uuidv4}=require(a10_0xfd270d(0x19d)),webSocketUtils=require(a10_0xfd270d(0x232)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a10_0xfd270d(0x1b2)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0xfd270d(0x16f)),{getCloudProviderObject}=require(a10_0xfd270d(0x273)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0xfd270d(0x20b)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0xfd270d(0x1c5)),{createK8sClient}=require(a10_0xfd270d(0x1bf)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a10_0xfd270d(0x1f3)](request);function a10_0x339d(_0x24c65b,_0xe65302){const _0x3d71d7=a10_0x3d71();return a10_0x339d=function(_0x339db5,_0x2ad2c4){_0x339db5=_0x339db5-0x158;let _0x98c4c=_0x3d71d7[_0x339db5];return _0x98c4c;},a10_0x339d(_0x24c65b,_0xe65302);}exports[a10_0xfd270d(0x178)]='grid',exports[a10_0xfd270d(0x1a1)]=a10_0xfd270d(0x186),exports[a10_0xfd270d(0x1c6)]=function(_0x4f4d7a){const _0x1d2035=a10_0xfd270d,_0x335f1b={};_0x335f1b[_0x1d2035(0x258)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x335f1b[_0x1d2035(0x230)]=_0x1d2035(0x1e5),_0x335f1b['vZdho']=_0x1d2035(0x21b),_0x335f1b[_0x1d2035(0x237)]=_0x1d2035(0x276),_0x335f1b[_0x1d2035(0x1fe)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x335f1b['fsjxa']=_0x1d2035(0x247),_0x335f1b[_0x1d2035(0x1f4)]=_0x1d2035(0x163),_0x335f1b[_0x1d2035(0x251)]=_0x1d2035(0x24d);const _0x517ee0=_0x335f1b,_0x4bd298={};_0x4bd298[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x258)],_0x4bd298[_0x1d2035(0x1a2)]=_0x517ee0[_0x1d2035(0x230)];const _0x25a0e6={};_0x25a0e6[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x1a6)],_0x25a0e6[_0x1d2035(0x1a2)]=_0x517ee0[_0x1d2035(0x230)];const _0x38441d={};_0x38441d[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x237)],_0x38441d['type']=_0x517ee0[_0x1d2035(0x230)];const _0xf2695a={};_0xf2695a[_0x1d2035(0x1bb)]=_0x517ee0[_0x1d2035(0x1fe)],_0xf2695a['type']=_0x517ee0['XLQcn'];const _0x14cacb={};_0x14cacb['description']=_0x517ee0[_0x1d2035(0x20f)],_0x14cacb['type']=_0x517ee0['XLQcn'];const _0x54685e={};_0x54685e[_0x1d2035(0x1bb)]=_0x517ee0['hMWwM'],_0x54685e[_0x1d2035(0x1a2)]=_0x517ee0['XLQcn'];const _0x5f0900={};return _0x5f0900[_0x1d2035(0x1f2)]=_0x4bd298,_0x5f0900[_0x1d2035(0x1cb)]=_0x25a0e6,_0x5f0900[_0x1d2035(0x164)]=_0x38441d,_0x5f0900[_0x1d2035(0x19c)]=_0xf2695a,_0x5f0900['region']=_0x14cacb,_0x5f0900[_0x1d2035(0x165)]=_0x54685e,_0x4f4d7a['usage'](HELP_HEADER_MESSAGE[_0x1d2035(0x188)])[_0x1d2035(0x219)](HELP_FOOTER_MESSAGE)['options'](_0x5f0900)['help'](_0x517ee0[_0x1d2035(0x251)])['argv'];},exports[a10_0xfd270d(0x187)]=async function(_0x3e45d0){const _0x270c2f=a10_0xfd270d,_0x1a64f3={'FmsQA':_0x270c2f(0x193),'ACLTW':_0x270c2f(0x1ce),'FdmgC':'1|5|7|3|4|0|8|6|2','EPlAG':'warn','CcnCS':_0x270c2f(0x1ba),'kjEBg':_0x270c2f(0x1e5),'sVMOk':_0x270c2f(0x21b),'IKfJL':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','uHwSo':_0x270c2f(0x167),'ymoAo':_0x270c2f(0x247),'zhbAF':'Create\x20a\x20private/public\x20grid.','DCBCL':_0x270c2f(0x24d),'obpuF':_0x270c2f(0x291),'SkfKL':_0x270c2f(0x1f9),'dgpoY':function(_0x324216){return _0x324216();},'JnOqs':function(_0x36a7a0,_0x30c3c7){return _0x36a7a0!==_0x30c3c7;},'TMUGz':_0x270c2f(0x210),'zTFHv':_0x270c2f(0x249),'JBLkF':function(_0x2b63e4,_0x5c663d,_0x1d9cae,_0x5dcc35,_0x3fbea7,_0x524162,_0x20d9b7){return _0x2b63e4(_0x5c663d,_0x1d9cae,_0x5dcc35,_0x3fbea7,_0x524162,_0x20d9b7);},'Smitd':'create-grid-called','lCzDp':_0x270c2f(0x28d),'BOBIr':function(_0x525c45,_0x46d3b,_0x4ca000,_0x4019ad,_0x534001,_0x14f70a,_0x5eeb1f){return _0x525c45(_0x46d3b,_0x4ca000,_0x4019ad,_0x534001,_0x14f70a,_0x5eeb1f);},'evEfY':function(_0x3908b6){return _0x3908b6();},'EliXe':_0x270c2f(0x199),'cHSUJ':_0x270c2f(0x23b),'ovyFo':'Adding\x20Websocket\x20listeners','bvXAU':_0x270c2f(0x1e3),'AMhNi':_0x270c2f(0x1af),'JaODs':function(_0x1d6fc2,_0x4ec22d){return _0x1d6fc2!==_0x4ec22d;},'whfHX':_0x270c2f(0x248),'gclbO':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','BfXaa':function(_0x1fcecb,_0xb476cd,_0x5c2406,_0x2cd71b,_0x500066,_0x5eb93d,_0x4768cb,_0x26dd2a){return _0x1fcecb(_0xb476cd,_0x5c2406,_0x2cd71b,_0x500066,_0x5eb93d,_0x4768cb,_0x26dd2a);},'viyRM':'prespawned-cluster-args-not-passed','vQvRF':'fvJBu','PrjbC':_0x270c2f(0x20d),'mBUHH':function(_0x3b3960,_0x5d1838,_0x30dca6,_0x136bc0,_0x243f63,_0x10af4d,_0x3cb4a9,_0xc52bcc){return _0x3b3960(_0x5d1838,_0x30dca6,_0x136bc0,_0x243f63,_0x10af4d,_0x3cb4a9,_0xc52bcc);},'HjsdN':_0x270c2f(0x1fb),'msznN':function(_0x42f239,_0x3f9e2d){return _0x42f239===_0x3f9e2d;},'uxpPw':_0x270c2f(0x198),'PErEX':_0x270c2f(0x242),'AulQI':'idCKz','eBugY':function(_0x243260,_0x1df264){return _0x243260!==_0x1df264;},'tCmFv':'vEXBC','OCyoR':_0x270c2f(0x229),'TXCPT':function(_0x465147,_0x5355a8){return _0x465147(_0x5355a8);},'gEceu':function(_0x3971bc,_0x157e01){return _0x3971bc===_0x157e01;},'xHoNK':function(_0x34da4a,_0x36b86c){return _0x34da4a===_0x36b86c;},'gQvrA':_0x270c2f(0x1b4),'uwzcY':_0x270c2f(0x1ca),'AMRwU':_0x270c2f(0x21f),'MyJQX':'create-grid-checks-null-response','BgVQS':function(_0x348cb0,_0x3a1792){return _0x348cb0===_0x3a1792;},'tENvE':'wgHWv','XagTZ':_0x270c2f(0x23f),'RiSoe':_0x270c2f(0x1dc),'iCZpR':_0x270c2f(0x1a7),'ImdAD':function(_0x363e95,_0x51d4be){return _0x363e95!==_0x51d4be;},'OQcuF':function(_0x1c3beb,_0x5789d4){return _0x1c3beb===_0x5789d4;},'IfcWM':'BMEZP','ZSKxV':_0x270c2f(0x205),'BKRGQ':function(_0x2b3495,_0x248f61,_0x31bd1f,_0x99c44e,_0xf05fe1,_0x4d015e,_0x17212a,_0x204bec){return _0x2b3495(_0x248f61,_0x31bd1f,_0x99c44e,_0xf05fe1,_0x4d015e,_0x17212a,_0x204bec);},'xmUKP':'create-grid-checks-non-200','wIdqP':_0x270c2f(0x17c),'hnLgX':'uxHnl','TKlju':_0x270c2f(0x270),'fgkXi':_0x270c2f(0x1d5),'RvdYB':function(_0x3d5d8b,_0x465471,_0xaec198,_0x451004,_0x485f00,_0x572257,_0x272065,_0x93c71e){return _0x3d5d8b(_0x465471,_0xaec198,_0x451004,_0x485f00,_0x572257,_0x272065,_0x93c71e);},'olunx':_0x270c2f(0x1d1),'Fvidv':_0x270c2f(0x212),'nxYMt':function(_0x4dee1e,_0x17a671){return _0x4dee1e===_0x17a671;},'BOphp':_0x270c2f(0x1c7),'TVYUh':function(_0xda20c4,_0x2b4abf){return _0xda20c4!==_0x2b4abf;},'bmZjC':_0x270c2f(0x23e),'ORtnm':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','lPtIx':function(_0x122e9d,_0x54347e,_0x3c104a,_0x57a90c,_0x3c2477,_0x1ab955,_0x1cf337,_0x464d2a){return _0x122e9d(_0x54347e,_0x3c104a,_0x57a90c,_0x3c2477,_0x1ab955,_0x1cf337,_0x464d2a);},'QnbRM':_0x270c2f(0x283),'jqoqy':function(_0x30b0a0,_0x837a9a){return _0x30b0a0===_0x837a9a;},'eXkCf':function(_0x2d8480,_0x503b42){return _0x2d8480!==_0x503b42;},'reIsv':'vKigN','MliuB':_0x270c2f(0x266),'UEBar':function(_0x540c78,_0x35dddd,_0xece7a3,_0x3f8136,_0x4b6238,_0x5e8df5,_0x142c2c,_0x690a56,_0x192351,_0x4afae7,_0x4d78cc,_0x1ee36d){return _0x540c78(_0x35dddd,_0xece7a3,_0x3f8136,_0x4b6238,_0x5e8df5,_0x142c2c,_0x690a56,_0x192351,_0x4afae7,_0x4d78cc,_0x1ee36d);},'yvUGM':_0x270c2f(0x17f),'oJPvh':function(_0x4b04bb,_0x415eb3,_0x16d8ec,_0x3d2988,_0x5a43ca,_0x4c7a7e){return _0x4b04bb(_0x415eb3,_0x16d8ec,_0x3d2988,_0x5a43ca,_0x4c7a7e);},'wohtN':function(_0x1d4fdb,_0xbcb177){return _0x1d4fdb===_0xbcb177;},'BHtie':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','wueAN':function(_0xbd02b7,_0x4ed940){return _0xbd02b7===_0x4ed940;},'jEGcR':function(_0x452275,_0x1f785e,_0x3bcfd7,_0xd0f81){return _0x452275(_0x1f785e,_0x3bcfd7,_0xd0f81);},'szOwm':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','UmXiC':_0x270c2f(0x218),'MWvzu':function(_0x126ae0,_0x44cd34){return _0x126ae0===_0x44cd34;},'BtlWD':_0x270c2f(0x1c4),'YwyGc':function(_0x282e96,_0x533120){return _0x282e96!=_0x533120;},'XwKTU':function(_0x2b6437,_0x2a9485){return _0x2b6437!==_0x2a9485;},'nKeXg':function(_0x33fa1f,_0x7d4708){return _0x33fa1f>_0x7d4708;},'DpWbE':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','LbPSp':function(_0x532bff,_0x6e2dba,_0x2b7005,_0x4f8410,_0x10a5a1,_0x1ed80b,_0x3abb9a,_0x3a1ded){return _0x532bff(_0x6e2dba,_0x2b7005,_0x4f8410,_0x10a5a1,_0x1ed80b,_0x3abb9a,_0x3a1ded);},'ckLBo':_0x270c2f(0x203),'KiAWQ':function(_0x5571c9,_0x4859ed){return _0x5571c9===_0x4859ed;},'ULcNz':_0x270c2f(0x1a9),'YdRpg':'pre-spawned-invalid-vpc','SRqcP':function(_0x5d5054,_0x3bc28a,_0x291bd6,_0x19be1a,_0x5bd90d,_0x12f7b0,_0x41e6a3,_0x235d39){return _0x5d5054(_0x3bc28a,_0x291bd6,_0x19be1a,_0x5bd90d,_0x12f7b0,_0x41e6a3,_0x235d39);},'weuAQ':_0x270c2f(0x207),'ksQBD':_0x270c2f(0x16b),'XZcAR':_0x270c2f(0x21e),'abylF':_0x270c2f(0x1c2),'qaxcc':function(_0x46b89a,_0x4c5e37){return _0x46b89a===_0x4c5e37;},'djydc':function(_0x51bac3,_0x313e7b){return _0x51bac3===_0x313e7b;},'dakqp':function(_0x55dae4,_0x1c3584){return _0x55dae4==_0x1c3584;},'SAglE':function(_0x3cef96,_0x12424a){return _0x3cef96(_0x12424a);},'izdCi':_0x270c2f(0x257),'COZyl':function(_0x4c684b,_0x502166){return _0x4c684b!==_0x502166;},'wSSgf':_0x270c2f(0x262),'Xpoge':_0x270c2f(0x15e),'ZOyay':_0x270c2f(0x1de),'pawSq':_0x270c2f(0x1e6),'RiKdr':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','PYzck':_0x270c2f(0x22f),'NSFAs':function(_0x3b9bb6,_0x2cb617,_0x51d314,_0x23e212,_0x5a76df,_0x564755,_0xa59cd9,_0x1a6aa9,_0x14dc38,_0xde5b55,_0x198e32){return _0x3b9bb6(_0x2cb617,_0x51d314,_0x23e212,_0x5a76df,_0x564755,_0xa59cd9,_0x1a6aa9,_0x14dc38,_0xde5b55,_0x198e32);},'LKYYO':_0x270c2f(0x1f5),'bzFVk':_0x270c2f(0x18d),'TaFNR':function(_0x539e72,_0x1ceb24,_0x1e19f8){return _0x539e72(_0x1ceb24,_0x1e19f8);},'MIDje':'private-ingress-nginx-controller','zDHCl':_0x270c2f(0x24f),'iPSRs':_0x270c2f(0x216),'RnmXa':function(_0x1f43ea,_0x3976b7){return _0x1f43ea(_0x3976b7);},'WgrPE':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','tqzTA':_0x270c2f(0x280),'TXSgp':function(_0x7b53f0,_0x33f544){return _0x7b53f0===_0x33f544;},'bnSus':_0x270c2f(0x274),'aBcif':function(_0x4549fd,_0x1037f0,_0x297e97,_0x5860bf,_0x550066,_0x1a0ce4,_0x2ce636,_0xf68c3c){return _0x4549fd(_0x1037f0,_0x297e97,_0x5860bf,_0x550066,_0x1a0ce4,_0x2ce636,_0xf68c3c);},'esGhy':_0x270c2f(0x1cd),'cfMpF':function(_0x41d765,_0x5cec9c){return _0x41d765!==_0x5cec9c;},'PWsgN':'get-grid-url-non-200','UBUfe':function(_0x3a8cc1,_0x54ea9f){return _0x3a8cc1===_0x54ea9f;},'OIZNN':_0x270c2f(0x1d3)};let _0x377eee=![],_0x178d2c,_0x43d911,_0x4b2d26,_0x119ddd,_0x1619ca,_0x12f63a,_0x5c7d44,_0x3ad716,_0x356927,_0x2a11cc,_0x4dc2de,_0x194e74,_0x1da658=0x1,_0x161175=0xe;try{global_registry[_0x270c2f(0x1fc)]=_0x1a64f3[_0x270c2f(0x16e)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x270c2f(0x28f)](_0x1a64f3[_0x270c2f(0x16e)](getCredentialsPath))&&(_0x1a64f3['JnOqs'](_0x1a64f3[_0x270c2f(0x1e2)],_0x1a64f3['TMUGz'])?(_0x529372=_0x4ddc9a['route53'],_0x30c601=_0x1a64f3['FmsQA']):(console[_0x270c2f(0x291)](_0x1a64f3[_0x270c2f(0x175)]),await _0x1a64f3['JBLkF'](sendInstrumentationEvent,_0x3e45d0,_0x1a64f3['Smitd'],messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x15b)],null,_0x3e45d0),process[_0x270c2f(0x1ed)](0x1)));await _0x1a64f3[_0x270c2f(0x24c)](sendInstrumentationEvent,_0x3e45d0,_0x1a64f3[_0x270c2f(0x213)],messageTypes[_0x270c2f(0x15f)],null,null,_0x3e45d0);const _0x429571=JSON['parse'](fs[_0x270c2f(0x195)](_0x1a64f3['evEfY'](getCredentialsPath)));global_registry[_0x270c2f(0x286)]=_0x429571[_0x270c2f(0x15e)]['username'],global_registry[_0x270c2f(0x255)]=_0x429571['Browserstack'][_0x270c2f(0x27e)];const _0x5cdbe6=WS_ENDPOINT['replace'](_0x1a64f3[_0x270c2f(0x1aa)],_0x429571['Browserstack'][_0x270c2f(0x1cc)])[_0x270c2f(0x220)](_0x1a64f3[_0x270c2f(0x24a)],_0x429571[_0x270c2f(0x15e)][_0x270c2f(0x27e)]),_0x4c00a6={};_0x4c00a6[_0x270c2f(0x1f8)]=ws,_0x4c00a6[_0x270c2f(0x1b6)]=0x36ee80,_0x2a11cc=new ReconnectingWebSocket(_0x5cdbe6,[],_0x4c00a6),logger[_0x270c2f(0x263)](_0x1a64f3[_0x270c2f(0x17e)]),webSocketUtils[_0x270c2f(0x1e7)](_0x2a11cc,_0x3e45d0[_0x270c2f(0x1e8)],_0x3e45d0[_0x270c2f(0x27e)]);let _0xcc245e=DEFAULT_GRID_NAME;if(_0x3e45d0[_0x270c2f(0x166)]||_0x3e45d0['cloudProvider']||_0x3e45d0[_0x270c2f(0x208)]){if(_0x1a64f3[_0x270c2f(0x275)](_0x1a64f3[_0x270c2f(0x16d)],_0x1a64f3[_0x270c2f(0x25c)])){!(_0x3e45d0['clusterName']&&_0x3e45d0[_0x270c2f(0x238)]&&_0x3e45d0[_0x270c2f(0x208)])&&(_0x1a64f3['JaODs'](_0x1a64f3[_0x270c2f(0x1a4)],_0x1a64f3[_0x270c2f(0x1a4)])?_0x279c00['isPrivateGrid']=!![]:(_0x178d2c=_0x1a64f3[_0x270c2f(0x22e)],await _0x1a64f3['BfXaa'](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x23d)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));![AWS,AZURE,GCP][_0x270c2f(0x16c)](_0x3e45d0[_0x270c2f(0x238)][_0x270c2f(0x265)]())&&(_0x1a64f3['JaODs'](_0x1a64f3[_0x270c2f(0x26d)],_0x1a64f3[_0x270c2f(0x26d)])?(_0x2fc897[_0x270c2f(0x291)](_0x1a64f3[_0x270c2f(0x197)]),_0x1bdaf5[_0x270c2f(0x1ed)](0x1)):(_0x178d2c=_0x1a64f3['PrjbC'],await _0x1a64f3[_0x270c2f(0x158)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x18c)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));if(_0x3e45d0[_0x270c2f(0x19b)]&&_0x1a64f3[_0x270c2f(0x160)](_0x3e45d0[_0x270c2f(0x19b)]['toLowerCase'](),_0x1a64f3['uxpPw'])){if(_0x1a64f3[_0x270c2f(0x275)](_0x1a64f3[_0x270c2f(0x168)],_0x1a64f3[_0x270c2f(0x1bd)]))global_registry[_0x270c2f(0x181)]=!![];else{const _0x4a1a66=_0x1a64f3[_0x270c2f(0x177)][_0x270c2f(0x1ea)]('|');let _0x431d63=0x0;while(!![]){switch(_0x4a1a66[_0x431d63++]){case'0':_0x230458[_0x270c2f(0x1a5)]=_0x2035c2;continue;case'1':const _0x4b0444={};_0x4b0444[_0x270c2f(0x1a2)]=_0xda3420[_0x270c2f(0x1d7)],_0x4b0444['message']=_0x270c2f(0x20c),_0x4fc742['sendEventToBackend'](_0x75172f,_0x4b0444);continue;case'2':_0x4b3b4f['browserVersion']=_0x132aa3[_0x270c2f(0x1d4)];continue;case'3':const _0x5e2398={};_0x5e2398[_0x270c2f(0x1a2)]=_0x209c09[_0x270c2f(0x23c)],_0x5e2398[_0x270c2f(0x264)]=_0x57a7b1,_0x1f9cd6[_0x270c2f(0x201)](_0x3a0c51,_0x5e2398);continue;case'4':_0x2e8991['cloudProvider']=_0x529edf;continue;case'5':_0x125cc1=_0x270c2f(0x227)+_0xab2aa8+'\x20in\x20existing\x20cluster\x20\x27'+_0x245e41+'\x27';continue;case'6':_0x5481c3[_0x270c2f(0x21a)]=_0x1abecb[_0x270c2f(0x21a)];continue;case'7':_0x952a4e['info'](_0x40b0b1);continue;case'8':_0x992e8e[_0x270c2f(0x166)]=_0x485ada;continue;}break;}}}_0x377eee=!![],_0x4b2d26=_0x3e45d0[_0x270c2f(0x166)],_0x43d911=_0x3e45d0[_0x270c2f(0x238)][_0x270c2f(0x265)](),_0x119ddd=_0x3e45d0[_0x270c2f(0x208)];}else _0x8eccfe[_0x270c2f(0x181)]=!![];}_0x3e45d0[_0x270c2f(0x185)]&&(_0x1a64f3['eBugY'](_0x1a64f3[_0x270c2f(0x189)],_0x1a64f3[_0x270c2f(0x189)])?_0x1726ef=_0x23056f[_0x6ead75[_0x270c2f(0x15c)]]:_0xcc245e=_0x3e45d0[_0x270c2f(0x185)]);global_registry[_0x270c2f(0x185)]=_0xcc245e;const _0x4b13d8={};_0x4b13d8['username']=_0x429571[_0x270c2f(0x15e)]['username'],_0x4b13d8[_0x270c2f(0x27e)]=_0x429571[_0x270c2f(0x15e)][_0x270c2f(0x27e)];const _0x379303={};_0x379303[_0x270c2f(0x173)]=_0x1a64f3['OCyoR'],_0x379303[_0x270c2f(0x1e4)]=_0x4b13d8;const _0x421882=_0x379303,_0x561c6f=_0x270c2f(0x240)+AG_API_URL+'/packages/cli/create-grid-checks',_0x38ecfb={};_0x38ecfb[_0x270c2f(0x185)]=_0xcc245e;const _0x4acabd={'url':_0x561c6f,'qs':_0x38ecfb,..._0x421882},_0x3decdc=_0x4acabd,_0x3092bc=await _0x1a64f3[_0x270c2f(0x1b7)](promisifiedRequest,_0x3decdc);(_0x1a64f3[_0x270c2f(0x27c)](_0x3092bc,null)||_0x1a64f3['gEceu'](_0x3092bc,undefined))&&(_0x1a64f3[_0x270c2f(0x250)](_0x1a64f3['gQvrA'],_0x1a64f3[_0x270c2f(0x244)])?_0xed80b[_0x270c2f(0x176)]('Found\x20VPC:\x20'+_0x5704ab+'\x20'):(_0x178d2c=_0x1a64f3[_0x270c2f(0x277)],await _0x1a64f3[_0x270c2f(0x221)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3['MyJQX'],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process['exit'](0x1)));_0x1a64f3[_0x270c2f(0x1ac)](_0x3092bc['statusCode'],0x191)&&(_0x1a64f3[_0x270c2f(0x1ac)](_0x1a64f3[_0x270c2f(0x269)],_0x1a64f3[_0x270c2f(0x1f0)])?_0x5acd66['cloudProvider']={}:(_0x178d2c=_0x1a64f3['RiSoe'],await _0x1a64f3[_0x270c2f(0x221)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x215)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));if(_0x1a64f3[_0x270c2f(0x25a)](_0x3092bc[_0x270c2f(0x245)],0xc8)){if(_0x1a64f3[_0x270c2f(0x289)](_0x1a64f3[_0x270c2f(0x226)],_0x1a64f3['ZSKxV'])){const _0x2d1c0f={};_0x2d1c0f[_0x270c2f(0x1a2)]=_0x3df4ff[_0x270c2f(0x23c)],_0x2d1c0f[_0x270c2f(0x264)]=_0x270c2f(0x241)+_0x34727c+_0x270c2f(0x234),_0x1f6e04['sendEventToBackend'](_0x80cee,_0x2d1c0f,_0x1a64f3[_0x270c2f(0x287)]),_0xf9c759[_0x270c2f(0x176)](_0x270c2f(0x241)+_0x47d025+_0x270c2f(0x234)),_0x31da64=!![];}else _0x178d2c=_0x270c2f(0x1fd)+JSON[_0x270c2f(0x236)](_0x3092bc),await _0x1a64f3[_0x270c2f(0x171)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x18b)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1);}const _0xe11901=JSON['parse'](_0x3092bc[_0x270c2f(0x21d)]),_0x4d4455={};_0x4d4455['type']=WS_EVENTS[_0x270c2f(0x1d7)],_0x4d4455[_0x270c2f(0x264)]=_0x270c2f(0x20c),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x4d4455);const _0x516ef9={};_0x516ef9['type']=WS_EVENTS[_0x270c2f(0x23c)],_0x516ef9['message']=_0x1a64f3[_0x270c2f(0x17d)],webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x516ef9);if(_0xe11901[_0x270c2f(0x259)]){if(_0x1a64f3[_0x270c2f(0x19a)](_0x1a64f3[_0x270c2f(0x17b)],_0x1a64f3['TKlju']))_0x178d2c=_0x1a64f3['fgkXi'],await _0x1a64f3[_0x270c2f(0x1a0)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x1ff)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1);else{const _0x1ab44b={};_0x1ab44b['description']=_0x1a64f3[_0x270c2f(0x1b9)],_0x1ab44b[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x198f45={};_0x198f45[_0x270c2f(0x1bb)]=_0x1a64f3[_0x270c2f(0x214)],_0x198f45[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x1f0520={};_0x1f0520['description']=_0x1a64f3[_0x270c2f(0x26f)],_0x1f0520['type']=_0x1a64f3[_0x270c2f(0x1f1)];const _0x1f7309={};_0x1f7309[_0x270c2f(0x1bb)]=_0x1a64f3[_0x270c2f(0x180)],_0x1f7309[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x40fc1d={};_0x40fc1d[_0x270c2f(0x1bb)]=_0x1a64f3[_0x270c2f(0x16a)],_0x40fc1d[_0x270c2f(0x1a2)]=_0x1a64f3[_0x270c2f(0x1f1)];const _0x116622={};_0x116622[_0x270c2f(0x1bb)]=_0x1a64f3['zhbAF'],_0x116622[_0x270c2f(0x1a2)]=_0x1a64f3['kjEBg'];const _0x8af17d={};return _0x8af17d[_0x270c2f(0x1f2)]=_0x1ab44b,_0x8af17d[_0x270c2f(0x1cb)]=_0x198f45,_0x8af17d[_0x270c2f(0x164)]=_0x1f0520,_0x8af17d[_0x270c2f(0x19c)]=_0x1f7309,_0x8af17d[_0x270c2f(0x208)]=_0x40fc1d,_0x8af17d[_0x270c2f(0x165)]=_0x116622,_0x371be7[_0x270c2f(0x202)](_0x2abd48[_0x270c2f(0x188)])[_0x270c2f(0x219)](_0x2ddb31)[_0x270c2f(0x1dd)](_0x8af17d)[_0x270c2f(0x24d)](_0x1a64f3[_0x270c2f(0x172)])[_0x270c2f(0x1e1)];}}const _0x34e23f=_0xe11901[_0x270c2f(0x194)];let _0x584035=_0x34e23f[_0xe11901[_0x270c2f(0x223)]];if(_0x3e45d0[_0x270c2f(0x15c)]){if(_0x1a64f3[_0x270c2f(0x1cf)](_0x1a64f3[_0x270c2f(0x25b)],_0x1a64f3['Fvidv']))throw _0x186b1e;else _0x584035=_0x34e23f[_0x3e45d0[_0x270c2f(0x15c)]];}if(_0x1a64f3[_0x270c2f(0x22b)](_0x377eee,![])){if(_0x1a64f3[_0x270c2f(0x289)](_0x1a64f3[_0x270c2f(0x183)],_0x1a64f3[_0x270c2f(0x183)])){_0x1a64f3['gEceu'](_0x584035,undefined)&&(_0x1a64f3[_0x270c2f(0x27f)](_0x1a64f3[_0x270c2f(0x190)],_0x1a64f3[_0x270c2f(0x190)])?_0x5c2492['info'](_0x270c2f(0x1d2)+_0x368db2[_0x270c2f(0x236)](_0x470670)+'\x20'):(_0x178d2c=_0x1a64f3['ORtnm'],await _0x1a64f3[_0x270c2f(0x1b8)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x1be)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)));global_registry[_0x270c2f(0x27a)]=_0x584035['id'];if(_0x1a64f3[_0x270c2f(0x22b)](_0x43d911,AZURE)||_0x1a64f3['jqoqy'](_0x584035?.[_0x270c2f(0x238)],AZURE)){if(_0x1a64f3[_0x270c2f(0x1e9)](_0x1a64f3[_0x270c2f(0x23a)],_0x1a64f3[_0x270c2f(0x23a)])){const _0x2f36f6={};_0x2f36f6[_0x270c2f(0x1a2)]=_0x123f6e[_0x270c2f(0x23c)],_0x2f36f6[_0x270c2f(0x264)]=_0x57ee3a,_0x48213a[_0x270c2f(0x201)](_0x272da6,_0x2f36f6,_0x1a64f3[_0x270c2f(0x233)],!![]);}else console[_0x270c2f(0x291)](_0x1a64f3[_0x270c2f(0x197)]),process[_0x270c2f(0x1ed)](0x1);}_0x178d2c=_0x270c2f(0x1e0)+_0xcc245e+'\x20using\x20\x27'+_0x584035[_0x270c2f(0x246)]+'\x27\x20grid\x20profile',logger[_0x270c2f(0x176)](_0x178d2c);const _0xfd56c9={};_0xfd56c9['type']=WS_EVENTS[_0x270c2f(0x23c)],_0xfd56c9[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0xfd56c9),_0x43d911=_0x584035['cloudProvider'],_0x4b2d26=_0x584035['clusterName'],_0x119ddd=_0x584035[_0x270c2f(0x208)],_0x1619ca=_0x584035['concurrency'],_0x12f63a=_0x584035['instanceType'],_0x5c7d44=_0x584035['vpc'],securityGroups=_0x584035['securityGroups'],subnets=_0x584035[_0x270c2f(0x24e)],_0x3ad716=_0x584035[_0x270c2f(0x18a)],_0x1da658=_0x584035[_0x270c2f(0x1eb)],_0x161175=_0x584035[_0x270c2f(0x1a8)],_0x4dc2de=_0xe11901[_0x270c2f(0x21a)],_0x194e74=_0xe11901['browserVersion'],_0x1a64f3['eBugY'](_0x584035[_0x270c2f(0x19b)],undefined)&&_0x584035[_0x270c2f(0x19b)]&&(_0x1a64f3[_0x270c2f(0x1ac)](_0x1a64f3[_0x270c2f(0x253)],_0x1a64f3[_0x270c2f(0x253)])?global_registry[_0x270c2f(0x181)]=!![]:_0x3c9250=_0x1a64f3['SkfKL']),_0x1a64f3[_0x270c2f(0x254)](updateGlobalRegistryWithConfig,_0x43d911,_0x4b2d26,_0x119ddd,_0x1619ca,_0x12f63a,_0x3ad716,_0x584035,_0x4dc2de,_0x194e74,_0x1da658,_0x161175);}else _0x30a820=_0x5e9e78[_0x270c2f(0x185)];}else{const _0x3965e8=_0x1a64f3[_0x270c2f(0x20e)][_0x270c2f(0x1ea)]('|');let _0x15436f=0x0;while(!![]){switch(_0x3965e8[_0x15436f++]){case'0':global_registry[_0x270c2f(0x21a)]=_0xe11901[_0x270c2f(0x21a)];continue;case'1':const _0xac5c42={};_0xac5c42['type']=WS_EVENTS['LOG'],_0xac5c42[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0xac5c42);continue;case'2':logger[_0x270c2f(0x176)](_0x178d2c);continue;case'3':global_registry['cloudProvider']=_0x43d911;continue;case'4':_0x178d2c=_0x270c2f(0x227)+_0xcc245e+_0x270c2f(0x282)+_0x4b2d26+'\x27';continue;case'5':global_registry[_0x270c2f(0x1a5)]=_0x119ddd;continue;case'6':const _0x595aef={};_0x595aef['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x595aef['message']=_0x270c2f(0x20c),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x595aef);continue;case'7':global_registry[_0x270c2f(0x166)]=_0x4b2d26;continue;case'8':global_registry[_0x270c2f(0x1d4)]=_0xe11901[_0x270c2f(0x1d4)];continue;}break;}}const _0x5ecdd5=_0x1a64f3[_0x270c2f(0x159)](getCloudProviderObject,_0x43d911,_0x4b2d26,_0xcc245e,_0x2a11cc,webSocketUtils),_0x32628c=_0x429571[_0x270c2f(0x238)]||{};if(_0x1a64f3[_0x270c2f(0x18f)](_0x32628c[_0x43d911],undefined)){logger['info'](_0x1a64f3[_0x270c2f(0x281)]);_0x1a64f3[_0x270c2f(0x290)](_0x429571['cloudProvider'],undefined)&&(_0x429571[_0x270c2f(0x238)]={});_0x429571['cloudProvider'][_0x43d911]={};const _0x292d2b=await _0x1a64f3['jEGcR'](inputCloudProviderKeys,_0x43d911,_0x429571,_0x5ecdd5);fs[_0x270c2f(0x28c)](_0x1a64f3[_0x270c2f(0x16e)](getCredentialsPath),JSON['stringify'](_0x292d2b)),logger['debug'](_0x1a64f3['szOwm']);}else{_0x178d2c=_0x1a64f3[_0x270c2f(0x25f)];const _0x2a6866={};_0x2a6866[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x2a6866[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x2a6866),logger[_0x270c2f(0x176)](_0x178d2c),await _0x5ecdd5[_0x270c2f(0x1b1)](_0x32628c);}_0x5ecdd5[_0x270c2f(0x256)]();let _0x56eac8;if(_0x1a64f3[_0x270c2f(0x225)](_0x377eee,![])){_0x178d2c=_0x270c2f(0x179)+_0x119ddd+').';const _0x2ac42c={};_0x2ac42c[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x2ac42c[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x2ac42c),logger['info'](_0x178d2c);const _0x2fc3f4=await _0x5ecdd5[_0x270c2f(0x15d)]();if(_0x2fc3f4){const _0x1d62a3={};_0x1d62a3[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x1d62a3[_0x270c2f(0x264)]=_0x270c2f(0x241)+_0x4b2d26+_0x270c2f(0x234),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x1d62a3,_0x1a64f3[_0x270c2f(0x287)]),logger['info']('Cluster\x20'+_0x4b2d26+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x377eee=!![];}else{const _0x414319={};_0x414319[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x414319['message']=_0x1a64f3[_0x270c2f(0x1ee)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x414319),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x1ee)]);const _0xc66033=_0x1a64f3[_0x270c2f(0x1d8)](_0x5c7d44,null)&&_0x1a64f3[_0x270c2f(0x169)](_0x5c7d44,undefined),_0x1060e7=_0x1a64f3[_0x270c2f(0x1d8)](subnets,null)&&_0x1a64f3[_0x270c2f(0x1e9)](subnets,undefined)&&_0x1a64f3[_0x270c2f(0x285)](subnets[_0x270c2f(0x161)],0x0);if(_0xc66033){_0x1a64f3[_0x270c2f(0x225)](_0x1060e7,![])&&(_0x178d2c=_0x1a64f3[_0x270c2f(0x267)],await _0x1a64f3['LbPSp'](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3['ckLBo'],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));const _0x574530=await _0x5ecdd5[_0x270c2f(0x1ae)](_0x5c7d44);_0x1a64f3[_0x270c2f(0x1ec)](_0x574530,![])?(_0x178d2c=_0x1a64f3[_0x270c2f(0x25e)],await _0x1a64f3[_0x270c2f(0x1a0)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x26a)],_0x1a64f3['obpuF']),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)):logger[_0x270c2f(0x176)]('Found\x20VPC:\x20'+_0x5c7d44+'\x20');const _0x2bce58=await _0x5ecdd5[_0x270c2f(0x1f6)](subnets,_0x5c7d44);_0x1a64f3[_0x270c2f(0x160)](_0x2bce58[0x0],![])?(_0x178d2c='Subnets:\x20'+_0x2bce58[0x1]+_0x270c2f(0x19f)+_0x5c7d44+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x1a64f3['SRqcP'](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x1db)],_0x1a64f3['obpuF']),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1)):logger[_0x270c2f(0x176)]('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x5ecdd5[_0x270c2f(0x260)](_0x5c7d44,subnets);}else{const _0x23aef9=_0x1a64f3[_0x270c2f(0x284)][_0x270c2f(0x1ea)]('|');let _0x1c5af5=0x0;while(!![]){switch(_0x23aef9[_0x1c5af5++]){case'0':logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x228)]);continue;case'1':const _0x2c55f0={};_0x2c55f0[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x2c55f0[_0x270c2f(0x264)]=_0x270c2f(0x21e),webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x2c55f0);continue;case'2':await _0x5ecdd5[_0x270c2f(0x260)]();continue;case'3':const _0x1d500d={};_0x1d500d[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x1d500d[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x22c)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x1d500d);continue;case'4':logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x22c)]);continue;}break;}}}}_0x377eee&&_0x1a64f3[_0x270c2f(0x1a3)](_0x43d911,AZURE)&&(global_registry[_0x270c2f(0x26c)]=_0xe11901[_0x270c2f(0x239)],await _0x5ecdd5[_0x270c2f(0x279)](),await _0x5ecdd5[_0x270c2f(0x1c3)]());const [_0x535cfd,_0x2a6a96,_0x352ef1,_0x15f3b3,_0x12d0b7,_0x4b4da1]=await _0x1a64f3['TXCPT'](createK8sClient,_0x5ecdd5);_0x1a64f3[_0x270c2f(0x231)](_0x377eee,![])&&_0x1a64f3['dakqp'](_0x43d911,AWS)&&(_0x56eac8=await _0x5ecdd5['setupAutoscaler'](_0x535cfd,_0x3e45d0));try{_0x356927=_0x1a64f3[_0x270c2f(0x26e)](kebabCase,_0xcc245e),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x235)]);const _0x4c3a22={};_0x4c3a22['type']=WS_EVENTS[_0x270c2f(0x23c)],_0x4c3a22[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x235)],webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x4c3a22);if(_0x1a64f3['COZyl'](_0x356927,_0x1a64f3[_0x270c2f(0x28a)])){const _0x16ebee={};_0x16ebee[_0x270c2f(0x1bc)]=_0x1a64f3[_0x270c2f(0x1c0)],_0x16ebee[_0x270c2f(0x211)]=_0x1a64f3[_0x270c2f(0x1c0)];const _0x152a25={};_0x152a25[_0x270c2f(0x246)]=_0x356927,_0x152a25['annotations']=_0x16ebee;const _0x58b619={};_0x58b619[_0x270c2f(0x1c1)]=_0x152a25;let _0x30bfdc=_0x58b619;await _0x535cfd[_0x270c2f(0x24b)](_0x30bfdc),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x22d)]);}const _0x55899d={};_0x55899d[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x55899d[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x1ab)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x55899d);const _0x51ea5e={};_0x51ea5e[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x51ea5e[_0x270c2f(0x264)]=_0x1a64f3[_0x270c2f(0x192)],webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x51ea5e),logger[_0x270c2f(0x176)](_0x1a64f3[_0x270c2f(0x209)]);let _0x1326a1={};_0x1a64f3['jqoqy'](_0x43d911,AZURE)&&(_0x1326a1={'clientId':await _0x5ecdd5[_0x270c2f(0x261)](_0x270c2f(0x1b5)+_0x4b2d26)});await _0x1a64f3[_0x270c2f(0x1d0)](addGridComponents,_0x535cfd,_0x2a6a96,_0x352ef1,_0x15f3b3,_0x356927,_0x4b2d26,_0x56eac8,_0x12d0b7,_0x4b4da1,_0x1326a1),_0x178d2c=_0x1a64f3[_0x270c2f(0x182)],logger['info'](_0x178d2c);const _0x5e97be={};_0x5e97be['type']=WS_EVENTS[_0x270c2f(0x23c)],_0x5e97be[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x5e97be),_0x178d2c=_0x1a64f3[_0x270c2f(0x20a)],logger[_0x270c2f(0x176)](_0x178d2c);const _0x4d8ab2={};_0x4d8ab2['type']=WS_EVENTS['LOG'],_0x4d8ab2[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x4d8ab2),await webSocketUtils[_0x270c2f(0x243)](0xea60);const _0x7d94b6=await _0x1a64f3[_0x270c2f(0x271)](getNamespaceUID,_0x535cfd,_0x356927);let _0xee56ae=global_registry[_0x270c2f(0x181)]?_0x1a64f3[_0x270c2f(0x191)]:_0x1a64f3['zDHCl'],_0x550ba3=await _0x535cfd[_0x270c2f(0x1ad)](_0xee56ae,_0x1a64f3[_0x270c2f(0x1fa)]),_0x4c6d6b=_0x5ecdd5[_0x270c2f(0x27b)](_0x550ba3)+'/'+_0x356927,_0x55f488=_0x1a64f3['SkfKL'];try{const _0x19268c={'url':_0x270c2f(0x240)+AG_API_URL+_0x270c2f(0x162)+_0x7d94b6,..._0x421882},_0x230c3a=_0x19268c,_0x2caa52=await _0x1a64f3[_0x270c2f(0x28e)](promisifiedRequest,_0x230c3a);(_0x1a64f3[_0x270c2f(0x1d9)](_0x2caa52,null)||_0x1a64f3[_0x270c2f(0x1d9)](_0x2caa52,undefined))&&(_0x178d2c=_0x1a64f3['WgrPE'],await _0x1a64f3[_0x270c2f(0x158)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x1f7)],_0x1a64f3['obpuF']),logger['error'](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));_0x1a64f3[_0x270c2f(0x1df)](_0x2caa52[_0x270c2f(0x245)],0x191)&&(_0x178d2c=_0x1a64f3[_0x270c2f(0x21c)],await _0x1a64f3[_0x270c2f(0x278)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3[_0x270c2f(0x213)],_0x1a64f3[_0x270c2f(0x217)],_0x1a64f3[_0x270c2f(0x233)]),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));_0x1a64f3[_0x270c2f(0x1d6)](_0x2caa52[_0x270c2f(0x245)],0xc8)&&(_0x178d2c='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x270c2f(0x236)](_0x2caa52),await _0x1a64f3[_0x270c2f(0x171)](reportToGalactusAndSendToEDS,_0x3e45d0,_0x2a11cc,_0x178d2c,messageTypes['ERROR'],_0x1a64f3['Smitd'],_0x1a64f3[_0x270c2f(0x1c9)],_0x1a64f3['obpuF']),logger[_0x270c2f(0x291)](_0x178d2c),process[_0x270c2f(0x1ed)](0x1));const _0x10bd9a=JSON[_0x270c2f(0x288)](_0x2caa52['body']);_0x10bd9a[_0x270c2f(0x252)]&&(_0x4c6d6b=_0x10bd9a[_0x270c2f(0x252)],_0x55f488=_0x1a64f3[_0x270c2f(0x1ef)]),global_registry['isPrivateGrid']&&(_0x55f488=_0x1a64f3[_0x270c2f(0x174)]);}catch(_0x317404){}_0x178d2c='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x4c6d6b+'\x20',logger[_0x270c2f(0x176)](_0x178d2c);const _0x2e7a03={};_0x2e7a03[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x2e7a03[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x2e7a03),_0x178d2c=_0x270c2f(0x19e)+_0x55f488+_0x270c2f(0x1c8)+_0x4c6d6b+_0x270c2f(0x272),logger[_0x270c2f(0x176)](_0x178d2c);const _0x5df283={};_0x5df283[_0x270c2f(0x1a2)]=WS_EVENTS['LOG'],_0x5df283[_0x270c2f(0x264)]=_0x178d2c,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x5df283);const _0x4e10df={};_0x4e10df[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x1da)],_0x4e10df[_0x270c2f(0x264)]=_0x270c2f(0x18e)+_0x4c6d6b,webSocketUtils['sendEventToBackend'](_0x2a11cc,_0x4e10df),await webSocketUtils['delay'](0x7d0);}catch(_0x38336b){if(_0x1a64f3[_0x270c2f(0x28b)](_0x377eee,![]))try{logger[_0x270c2f(0x176)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x1a64f3[_0x270c2f(0x159)](removeGridComponents,_0x535cfd,_0x2a6a96,_0x352ef1,_0x15f3b3,_0x356927),await _0x5ecdd5['deleteCluster'](_0x535cfd,global_registry[_0x270c2f(0x1a5)]);}catch(_0x5efe74){throw _0x5efe74;}throw _0x38336b;}}catch(_0x4f3d2a){const _0x11c9c8='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x4f3d2a+'\x20\x0a'+JSON[_0x270c2f(0x236)](_0x4f3d2a)+'\x20';if(_0x2a11cc){const _0x208abb={};_0x208abb[_0x270c2f(0x1a2)]=WS_EVENTS[_0x270c2f(0x23c)],_0x208abb['message']=_0x11c9c8,webSocketUtils[_0x270c2f(0x201)](_0x2a11cc,_0x208abb,_0x1a64f3[_0x270c2f(0x233)],!![]);}await webSocketUtils[_0x270c2f(0x243)](0x7d0);const _0x5dd66={};_0x5dd66[_0x270c2f(0x291)]=_0x11c9c8,await _0x1a64f3['JBLkF'](sendInstrumentationEvent,_0x3e45d0,_0x1a64f3[_0x270c2f(0x213)],messageTypes[_0x270c2f(0x224)],_0x1a64f3[_0x270c2f(0x1b3)],_0x5dd66,_0x3e45d0),logger['error'](_0x11c9c8);}process['exit'](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a11_0x457a56=a11_0x3b1e;function a11_0x3b1e(_0x2e595c,_0x22ae87){const _0x317a75=a11_0x317a();return a11_0x3b1e=function(_0x3b1ef1,_0x56f493){_0x3b1ef1=_0x3b1ef1-0x112;let _0x2537aa=_0x317a75[_0x3b1ef1];return _0x2537aa;},a11_0x3b1e(_0x2e595c,_0x22ae87);}(function(_0x115418,_0x58b7b5){const _0x38e18e=a11_0x3b1e,_0x2a3cc4=_0x115418();while(!![]){try{const _0x2cefa1=-parseInt(_0x38e18e(0x11e))/0x1+-parseInt(_0x38e18e(0x116))/0x2*(parseInt(_0x38e18e(0x128))/0x3)+parseInt(_0x38e18e(0x11c))/0x4*(-parseInt(_0x38e18e(0x118))/0x5)+parseInt(_0x38e18e(0x122))/0x6*(-parseInt(_0x38e18e(0x11b))/0x7)+-parseInt(_0x38e18e(0x115))/0x8*(parseInt(_0x38e18e(0x123))/0x9)+-parseInt(_0x38e18e(0x127))/0xa*(parseInt(_0x38e18e(0x113))/0xb)+parseInt(_0x38e18e(0x129))/0xc;if(_0x2cefa1===_0x58b7b5)break;else _0x2a3cc4['push'](_0x2a3cc4['shift']());}catch(_0x34f71b){_0x2a3cc4['push'](_0x2a3cc4['shift']());}}}(a11_0x317a,0xb22a9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x457a56(0x114));exports[a11_0x457a56(0x112)]=a11_0x457a56(0x117),exports['desc']=a11_0x457a56(0x121),exports['builder']=function(_0x3604b3){const _0x597ddb=a11_0x457a56,_0xe83219={};_0xe83219[_0x597ddb(0x124)]='delete_commands',_0xe83219[_0x597ddb(0x11f)]=_0x597ddb(0x12b);const _0xdcc298=_0xe83219;return _0x3604b3[_0x597ddb(0x11d)](HELP_HEADER_MESSAGE[_0x597ddb(0x117)])[_0x597ddb(0x120)](HELP_FOOTER_MESSAGE)[_0x597ddb(0x119)](_0xdcc298[_0x597ddb(0x124)])[_0x597ddb(0x12a)]()[_0x597ddb(0x125)]()[_0x597ddb(0x11a)]()['help'](_0xdcc298[_0x597ddb(0x11f)]);},exports[a11_0x457a56(0x126)]=function(_0xccc605){};function a11_0x317a(){const _0x1d9611=['handler','4436440EFbjXD','2325639rITBTz','70405272vqYfHe','demandCommand','help','command','11yrPsJD','../config/constants','11597464DoaxPj','2pTvxma','delete','2653655OsLuGV','commandDir','strict','7ATNbGv','4qsraTs','usage','1033308DNQIQx','VWmIU','epilogue','List\x20Grid\x20resources.','5428548kvetRX','9PPmkkO','qCDqg','recommendCommands'];a11_0x317a=function(){return _0x1d9611;};return a11_0x317a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x58aa(_0x481350,_0x383976){const _0x5d5967=a12_0x5d59();return a12_0x58aa=function(_0x58aa07,_0x41f742){_0x58aa07=_0x58aa07-0x172;let _0x6a0c36=_0x5d5967[_0x58aa07];return _0x6a0c36;},a12_0x58aa(_0x481350,_0x383976);}const a12_0x592975=a12_0x58aa;(function(_0x14c474,_0x486abf){const _0x40738d=a12_0x58aa,_0x5c80c1=_0x14c474();while(!![]){try{const _0x5958ff=-parseInt(_0x40738d(0x1e4))/0x1+parseInt(_0x40738d(0x1a4))/0x2+-parseInt(_0x40738d(0x187))/0x3+parseInt(_0x40738d(0x197))/0x4+-parseInt(_0x40738d(0x1f7))/0x5+parseInt(_0x40738d(0x1db))/0x6*(parseInt(_0x40738d(0x1a2))/0x7)+parseInt(_0x40738d(0x1c1))/0x8;if(_0x5958ff===_0x486abf)break;else _0x5c80c1['push'](_0x5c80c1['shift']());}catch(_0x44c2a4){_0x5c80c1['push'](_0x5c80c1['shift']());}}}(a12_0x5d59,0x629d8));function a12_0x5d59(){const _0x279541=['QxvLu','taFwK','UgYut','hpwVZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','Niqpp','deleteCluster','ySfbI','RgBzX','2777384ZyIhro','WTpPB','bchad','statusCode','hgoNH','../../config/logger','IdidF','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','aKqOJ','hKZMK','configureIfNotConfigured','CbbBA','JDlEu','IWiow','pyGix','invalid-input','unknown-error','Pass\x20the\x20ID\x20of\x20the\x20Grid','\x22\x20with\x20ID\x20','yvIEn','sMPRQ','INFO','toLowerCase','message','Cluster:\x20','name','1698NMuexw','ozSOP','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','drxvB','DzKOK','string','method','zFBSW','532652IlmKxp','delete-grid-called','BoxlA','LAhoD','eSPHO','kxTPe','grid','cloudProvider','qJVZn','error','ykyQW','requestId','Succesfully\x20deleted\x20the\x20grid','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','HmmHV','AzLGk','parse','argv','/packages/cli/grid/','327995xcSRmY','eobrL','\x22\x20and\x20ID\x20','epilogue','server-error','grid-id','imBcC','CeQGo','warn','SMbSA','exit','BoULK','QdKRz','Browserstack','tsUWO','stringify','delete','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/userInput','command','spZoB','gridId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','desc','Delete\x20an\x20Automation\x20grid.','password','debug','Failed\x20to\x20delete\x20resources!\x20Error:\x20','init-not-called','bqxwY','kzCUC','existsSync','TrrZN','../../utils/gridComponents','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','info','fvYjW','wDuVa','2382147cUxtHD','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','isBrowserstackCluster','uuid','writeFileSync','unauthorised','RPmDC','type','DELETE','onlyGridInCluster','fetchLocalCreds','rNnLE','csGIa','../../utils/instrumentationUtils','nqRVu','3118332xzeuHt','voYer','auth','help','../../cloudproviders/utils','HAZRK','util','kvixw','egPBG','stack','kXxXT','10661ZXUkQw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','476926eqNExF','usage','yAaBw','wHAdV','nSQhs','yciyf','qgBKP','lqwMJ','zdIeG','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','../../utils/createk8sClient','body','xPufZ','qAZjl','ZdfqD','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','clusterName','clusterId','username'];a12_0x5d59=function(){return _0x279541;};return a12_0x5d59();}const fs=require('fs'),util=require(a12_0x592975(0x19d)),request=require('request'),{v4:uuidv4}=require(a12_0x592975(0x18b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x592975(0x1c6)),{getCloudProviderObject}=require(a12_0x592975(0x19b)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x592975(0x182)),{sendInstrumentationEvent}=require(a12_0x592975(0x195)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x592975(0x173)),{createK8sClient}=require(a12_0x592975(0x1ae)),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util['promisify'](request);exports[a12_0x592975(0x174)]=a12_0x592975(0x1ea),exports[a12_0x592975(0x178)]=a12_0x592975(0x179),exports['builder']=function(_0x455b47){const _0x2d4acf=a12_0x592975,_0x24a70b={};_0x24a70b['QxvLu']=_0x2d4acf(0x1d2),_0x24a70b[_0x2d4acf(0x1d5)]=_0x2d4acf(0x1e1),_0x24a70b['eSPHO']=_0x2d4acf(0x19a);const _0x4bdb6f=_0x24a70b,_0xabcdaa={};_0xabcdaa[_0x2d4acf(0x1dd)]=_0x4bdb6f[_0x2d4acf(0x1b7)],_0xabcdaa[_0x2d4acf(0x18f)]=_0x4bdb6f[_0x2d4acf(0x1d5)];const _0x5ee538={};return _0x5ee538['grid-id']=_0xabcdaa,_0x455b47['usage'](HELP_HEADER_MESSAGE[_0x2d4acf(0x207)])[_0x2d4acf(0x1fa)](HELP_FOOTER_MESSAGE)['options'](_0x5ee538)[_0x2d4acf(0x19a)](_0x4bdb6f[_0x2d4acf(0x1e8)])['argv'];},exports['handler']=async function(_0x21feb1){const _0xcfa034=a12_0x592975,_0x2bda73={'RPmDC':'Pass\x20the\x20ID\x20of\x20the\x20Grid','rNnLE':_0xcfa034(0x1e1),'TrrZN':_0xcfa034(0x19a),'wDuVa':_0xcfa034(0x1b3),'CCiui':function(_0x36dced){return _0x36dced();},'fvYjW':function(_0x15ca1b){return _0x15ca1b();},'hpwVZ':function(_0x420010,_0x6b22cb){return _0x420010!==_0x6b22cb;},'ySfbI':_0xcfa034(0x1cd),'yciyf':'lMXPs','qgBKP':_0xcfa034(0x1bb),'SMbSA':function(_0x3c5370,_0x9a8028,_0x128937,_0x248e3d,_0x2a42d0,_0x422782,_0x23ae91){return _0x3c5370(_0x9a8028,_0x128937,_0x248e3d,_0x2a42d0,_0x422782,_0x23ae91);},'kzCUC':_0xcfa034(0x1e5),'IdidF':_0xcfa034(0x17d),'IWiow':function(_0xf1f9a1,_0x39e1c5,_0x8e4d6f,_0x5eb57c,_0x25de66,_0x1bedaa,_0x116c9f){return _0xf1f9a1(_0x39e1c5,_0x8e4d6f,_0x5eb57c,_0x25de66,_0x1bedaa,_0x116c9f);},'nSQhs':_0xcfa034(0x1b1),'qJVZn':_0xcfa034(0x1b2),'ozSOP':function(_0x416b1d,_0x36e6e3,_0x5d0103,_0x4c92db){return _0x416b1d(_0x36e6e3,_0x5d0103,_0x4c92db);},'CbbBA':function(_0x3c3b37,_0x17eeee){return _0x3c3b37===_0x17eeee;},'HAZRK':_0xcfa034(0x204),'zFBSW':_0xcfa034(0x1b9),'BoxlA':function(_0x63ad5b,_0x11efb0){return _0x63ad5b(_0x11efb0);},'AzLGk':function(_0x366711,_0x2f0720){return _0x366711===_0x2f0720;},'spZoB':function(_0x3db54f,_0x52824b){return _0x3db54f===_0x52824b;},'hKZMK':_0xcfa034(0x1fe),'csGIa':_0xcfa034(0x177),'EKJaI':function(_0x25dc5c,_0x3b962a,_0x2e5621,_0x26bff4,_0x36fd79,_0x14b25b,_0x326ab8){return _0x25dc5c(_0x3b962a,_0x2e5621,_0x26bff4,_0x36fd79,_0x14b25b,_0x326ab8);},'yAaBw':_0xcfa034(0x1d0),'ykyQW':function(_0x2fdf60,_0x1a5c83){return _0x2fdf60===_0x1a5c83;},'voYer':function(_0x4b5d57,_0x14dc94){return _0x4b5d57!==_0x14dc94;},'lqwMJ':_0xcfa034(0x1b0),'tsUWO':_0xcfa034(0x1c0),'hgoNH':function(_0xaba775,_0x238d9b,_0x2c5847,_0xf9c1fd){return _0xaba775(_0x238d9b,_0x2c5847,_0xf9c1fd);},'LAhoD':function(_0x327742,_0x190de4){return _0x327742!==_0x190de4;},'drxvB':_0xcfa034(0x1c3),'nqRVu':_0xcfa034(0x1b8),'imBcC':_0xcfa034(0x1ad),'eobrL':function(_0xdb00fd,_0x48c293){return _0xdb00fd===_0x48c293;},'kxTPe':_0xcfa034(0x1f2),'DzKOK':_0xcfa034(0x17e),'KqUym':function(_0x3a325f){return _0x3a325f();},'QdKRz':_0xcfa034(0x1c8),'DfNZk':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','KotQG':function(_0xd29b3a,_0x348333){return _0xd29b3a(_0x348333);},'pyGix':function(_0x419575,_0xac2e2a,_0x803601,_0xb11c2b,_0x5164e3,_0x35acb1){return _0x419575(_0xac2e2a,_0x803601,_0xb11c2b,_0x5164e3,_0x35acb1);},'yvIEn':_0xcfa034(0x190),'zdIeG':function(_0x5e4909,_0x168c2a){return _0x5e4909(_0x168c2a);},'aKqOJ':function(_0x8a1632,_0x4fbf70){return _0x8a1632!==_0x4fbf70;},'WTpPB':_0xcfa034(0x1fb),'egPBG':function(_0x23cfeb,_0x57aa48,_0x565c1f,_0x500a8c,_0x2acbb2,_0x56992c,_0x1ad281){return _0x23cfeb(_0x57aa48,_0x565c1f,_0x500a8c,_0x2acbb2,_0x56992c,_0x1ad281);},'wHAdV':_0xcfa034(0x18d),'kvixw':'invalid-grid-id','kXxXT':function(_0xa57869,_0x57912e,_0x4e2bbe,_0x3b6a62,_0x46274e,_0x1ab07e,_0x4489c6){return _0xa57869(_0x57912e,_0x4e2bbe,_0x3b6a62,_0x46274e,_0x1ab07e,_0x4489c6);},'Niqpp':function(_0x597a9c,_0x526bd3,_0xfc4a91,_0x9a9e7f,_0x148b64,_0x59165b,_0x23f406){return _0x597a9c(_0x526bd3,_0xfc4a91,_0x9a9e7f,_0x148b64,_0x59165b,_0x23f406);},'BoULK':_0xcfa034(0x1d1)};try{global_registry[_0xcfa034(0x1ef)]=_0x2bda73['CCiui'](uuidv4);!fs[_0xcfa034(0x180)](_0x2bda73[_0xcfa034(0x185)](getCredentialsPath))&&(_0x2bda73['hpwVZ'](_0x2bda73[_0xcfa034(0x1bf)],_0x2bda73[_0xcfa034(0x1a9)])?(console[_0xcfa034(0x1ed)](_0x2bda73[_0xcfa034(0x1aa)]),await _0x2bda73[_0xcfa034(0x200)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x1c7)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1)):_0x24d35b[_0xcfa034(0x1ff)](_0xcfa034(0x1d9)+_0x293933[_0xcfa034(0x1b4)]+_0xcfa034(0x188)));_0x2bda73[_0xcfa034(0x1ce)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1d6)],null,null,_0x21feb1);!_0x21feb1[_0xcfa034(0x176)]&&(_0x2bda73[_0xcfa034(0x1ba)](_0x2bda73[_0xcfa034(0x1a8)],_0x2bda73[_0xcfa034(0x1ec)])?(console[_0xcfa034(0x1ed)](_0x2bda73[_0xcfa034(0x186)]),process[_0xcfa034(0x201)](0x1)):_0x204dcd[_0xcfa034(0x1eb)]={});const _0x4dcd10=JSON['parse'](fs['readFileSync'](_0x2bda73[_0xcfa034(0x185)](getCredentialsPath))),[_0xde9e3b,_0x5076f3]=await _0x2bda73[_0xcfa034(0x1dc)](getGridDetails,_0x4dcd10['Browserstack'][_0xcfa034(0x1b6)],_0x4dcd10[_0xcfa034(0x204)][_0xcfa034(0x17a)],_0x21feb1['gridId']);if(_0x5076f3){const _0xc56907=_0x5076f3[_0xcfa034(0x184)];let _0x410f11=_0xcfa034(0x172)+_0xc56907['name']+_0xcfa034(0x1f9)+_0xc56907['id']+_0xcfa034(0x183),_0x1ccd79;_0x5076f3['onlyGridInCluster']&&_0x2bda73['CbbBA'](_0x5076f3['clusterSpawnedVia'],_0x2bda73[_0xcfa034(0x19c)])&&(_0x2bda73[_0xcfa034(0x1cc)](_0x2bda73['zFBSW'],_0x2bda73[_0xcfa034(0x1e3)])?_0x410f11=_0xcfa034(0x172)+_0xc56907[_0xcfa034(0x1da)]+'\x22\x20and\x20ID\x20'+_0xc56907['id']+_0xcfa034(0x1f1)+_0xc56907[_0xcfa034(0x1b4)]+'\x22\x20with\x20ID\x20'+_0xc56907[_0xcfa034(0x1b5)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':_0x309c23='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x359544[_0xcfa034(0x1da)]+_0xcfa034(0x1f9)+_0x4ad9c4['id']+_0xcfa034(0x1f1)+_0x5958a3['clusterName']+_0xcfa034(0x1d3)+_0x43c35a[_0xcfa034(0x1b5)]+_0xcfa034(0x183));_0x1ccd79=await _0x2bda73[_0xcfa034(0x1e6)](inputConfirmation,_0x410f11);if(_0x2bda73[_0xcfa034(0x1cc)](_0x1ccd79,undefined)||_0x2bda73[_0xcfa034(0x1f3)](_0x1ccd79,null)||!(_0x2bda73[_0xcfa034(0x175)](_0x1ccd79[_0xcfa034(0x1d7)](),'y')||_0x2bda73[_0xcfa034(0x1f3)](_0x1ccd79['toLowerCase'](),'n'))){if(_0x2bda73['AzLGk'](_0x2bda73[_0xcfa034(0x1ca)],_0x2bda73[_0xcfa034(0x1ca)]))console['error'](_0x2bda73[_0xcfa034(0x194)]),await _0x2bda73['EKJaI'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1a6)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1);else{const _0x553b6f={};_0x553b6f['description']=_0x2bda73[_0xcfa034(0x18e)],_0x553b6f[_0xcfa034(0x18f)]=_0x2bda73[_0xcfa034(0x193)];const _0x5cbdb4={};return _0x5cbdb4[_0xcfa034(0x1fc)]=_0x553b6f,_0x3348e2[_0xcfa034(0x1a5)](_0x2b3c6f[_0xcfa034(0x207)])[_0xcfa034(0x1fa)](_0xa02121)['options'](_0x5cbdb4)[_0xcfa034(0x19a)](_0x2bda73[_0xcfa034(0x181)])[_0xcfa034(0x1f5)];}}_0x2bda73[_0xcfa034(0x1ee)](_0x1ccd79['toLowerCase'](),'n')&&(_0x2bda73[_0xcfa034(0x198)](_0x2bda73[_0xcfa034(0x1ab)],_0x2bda73[_0xcfa034(0x205)])?process[_0xcfa034(0x201)](0x0):_0x2534fa[_0xcfa034(0x201)](0x0));global_registry['clusterRegion']=_0xc56907['region'];const _0x1e1524=_0xc56907[_0xcfa034(0x1eb)],_0x26471e=_0x2bda73[_0xcfa034(0x1c5)](getCloudProviderObject,_0x1e1524,_0xc56907[_0xcfa034(0x1b4)],_0xc56907[_0xcfa034(0x1da)]),_0xfd75c8=_0x4dcd10[_0xcfa034(0x1eb)];if(_0x2bda73[_0xcfa034(0x1ee)](_0xfd75c8[_0x1e1524],undefined)){if(_0x2bda73[_0xcfa034(0x1e7)](_0x2bda73[_0xcfa034(0x1df)],_0x2bda73[_0xcfa034(0x196)])){logger[_0xcfa034(0x184)](_0x2bda73[_0xcfa034(0x1fd)]);_0x2bda73[_0xcfa034(0x1ee)](_0x4dcd10['cloudProvider'],undefined)&&(_0x2bda73[_0xcfa034(0x1f8)](_0x2bda73[_0xcfa034(0x1e9)],_0x2bda73[_0xcfa034(0x1e0)])?(_0x13e9f0['info'](_0xcfa034(0x1f0)),_0x553c3a[_0xcfa034(0x201)](0x0)):_0x4dcd10[_0xcfa034(0x1eb)]={});_0x4dcd10[_0xcfa034(0x1eb)][_0x1e1524]={};const _0x4a3ca5=await _0x2bda73['ozSOP'](inputCloudProviderKeys,_0x1e1524,_0x4dcd10,_0x26471e);fs[_0xcfa034(0x18c)](_0x2bda73['KqUym'](getCredentialsPath),JSON[_0xcfa034(0x206)](_0x4a3ca5)),logger[_0xcfa034(0x17b)](_0x2bda73[_0xcfa034(0x203)]);}else _0x1c5e49[_0xcfa034(0x1ed)](_0x2bda73['wDuVa']),_0x63dd57[_0xcfa034(0x201)](0x1);}else logger[_0xcfa034(0x184)](_0x2bda73['DfNZk']),await _0x26471e[_0xcfa034(0x192)](_0xfd75c8);_0x26471e[_0xcfa034(0x1cb)]();const _0x42c833=_0x2bda73['KotQG'](kebabCase,_0xc56907[_0xcfa034(0x1da)]),[_0x2cbeee,_0x4ffb07,_0x51bb87,_0x2829d3,_0x32cda6,_0x556455]=await _0x2bda73[_0xcfa034(0x1e6)](createK8sClient,_0x26471e);await _0x2bda73[_0xcfa034(0x1cf)](removeGridComponents,_0x2cbeee,_0x4ffb07,_0x51bb87,_0x2829d3,_0x42c833);if(_0x5076f3[_0xcfa034(0x191)]){const _0x1da583=await _0x26471e[_0xcfa034(0x18a)]();_0x1da583?await _0x26471e[_0xcfa034(0x1be)](_0x2cbeee,_0xc56907['region']):logger[_0xcfa034(0x1ff)](_0xcfa034(0x1d9)+_0xc56907[_0xcfa034(0x1b4)]+_0xcfa034(0x188));}const _0x207e79='https://'+AG_API_URL+_0xcfa034(0x1f6)+_0x21feb1[_0xcfa034(0x176)],_0x51b55d={};_0x51b55d['username']=_0x4dcd10[_0xcfa034(0x204)][_0xcfa034(0x1b6)],_0x51b55d['password']=_0x4dcd10['Browserstack'][_0xcfa034(0x17a)];const _0x26e675={};_0x26e675['url']=_0x207e79,_0x26e675[_0xcfa034(0x1e2)]=_0x2bda73[_0xcfa034(0x1d4)],_0x26e675[_0xcfa034(0x199)]=_0x51b55d;const _0x46313a=_0x26e675,_0x2c4e04=await _0x2bda73[_0xcfa034(0x1ac)](promisifiedRequest,_0x46313a);_0x2bda73[_0xcfa034(0x1c9)](_0x2c4e04,null)&&_0x2bda73[_0xcfa034(0x198)](_0x2c4e04,undefined)&&_0x2bda73[_0xcfa034(0x175)](_0x2c4e04[_0xcfa034(0x1c4)],0xc8)&&(logger['info'](_0xcfa034(0x1f0)),process[_0xcfa034(0x201)](0x0)),logger[_0xcfa034(0x1ed)](_0xcfa034(0x189)+JSON[_0xcfa034(0x206)](_0x2c4e04)),await _0x2bda73['SMbSA'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73['WTpPB'],_0xde9e3b,_0x21feb1),process[_0xcfa034(0x201)](0x1);}_0x2bda73[_0xcfa034(0x175)](_0xde9e3b['statusCode'],0x191)&&(logger[_0xcfa034(0x1ed)](_0xcfa034(0x1a3)),await _0x2bda73['egPBG'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1a7)],null,_0x21feb1),process['exit'](0x1)),_0x2bda73['CbbBA'](_0xde9e3b[_0xcfa034(0x1c4)],0x190)&&(logger[_0xcfa034(0x1ed)](JSON[_0xcfa034(0x1f4)](_0xde9e3b[_0xcfa034(0x1af)])[_0xcfa034(0x1d8)]),await _0x2bda73[_0xcfa034(0x19f)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x19e)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1)),logger[_0xcfa034(0x1ed)](_0xcfa034(0x1de)+JSON[_0xcfa034(0x206)](_0xde9e3b)),await _0x2bda73[_0xcfa034(0x1a1)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1c2)],_0xde9e3b,_0x21feb1),process[_0xcfa034(0x201)](0x1);}catch(_0x1b12f6){logger[_0xcfa034(0x1ed)](_0xcfa034(0x17c)+_0x1b12f6[_0xcfa034(0x1a0)]),await _0x2bda73[_0xcfa034(0x1bd)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x202)],_0x1b12f6,_0x21feb1),process[_0xcfa034(0x201)](0x1);}};
|
|
1
|
+
function a12_0x1911(_0x5a2c27,_0x3309c8){const _0x1792e3=a12_0x1792();return a12_0x1911=function(_0x191127,_0x224e75){_0x191127=_0x191127-0x193;let _0x2ed413=_0x1792e3[_0x191127];return _0x2ed413;},a12_0x1911(_0x5a2c27,_0x3309c8);}const a12_0x4e08dc=a12_0x1911;(function(_0x305570,_0xee1874){const _0x46a950=a12_0x1911,_0x2c7277=_0x305570();while(!![]){try{const _0x2ce7ea=parseInt(_0x46a950(0x1fd))/0x1*(-parseInt(_0x46a950(0x193))/0x2)+parseInt(_0x46a950(0x1a9))/0x3*(-parseInt(_0x46a950(0x202))/0x4)+parseInt(_0x46a950(0x1cf))/0x5+-parseInt(_0x46a950(0x209))/0x6*(-parseInt(_0x46a950(0x195))/0x7)+parseInt(_0x46a950(0x1ba))/0x8+parseInt(_0x46a950(0x1c7))/0x9*(parseInt(_0x46a950(0x1f9))/0xa)+parseInt(_0x46a950(0x1d8))/0xb*(-parseInt(_0x46a950(0x1df))/0xc);if(_0x2ce7ea===_0xee1874)break;else _0x2c7277['push'](_0x2c7277['shift']());}catch(_0x1f626f){_0x2c7277['push'](_0x2c7277['shift']());}}}(a12_0x1792,0x2edb1));const fs=require('fs'),util=require(a12_0x4e08dc(0x1b5)),request=require(a12_0x4e08dc(0x1ae)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x4e08dc(0x199)),{getCloudProviderObject}=require(a12_0x4e08dc(0x1a8)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x4e08dc(0x197)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x4e08dc(0x216)),promisifiedRequest=util[a12_0x4e08dc(0x205)](request);function a12_0x1792(){const _0x5a11aa=['Dxzbi','sWDMd','YEHlV','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','util','password','requestId','invalid-grid-id','yQcAz','2992760iTqEaf','stringify','clusterName','gXMOg','qopsk','tSsLM','CoKLc','onlyGridInCluster','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','argv','method','existsSync','body','23058uzvOfA','mgDfh','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','cKfhH','Delete\x20an\x20Automation\x20grid.','type','xWTyD','grid-id','1381825vSVSDV','suvYN','YGvzV','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','BSyJj','string','invalid-input','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','DTHoa','110lIuCGJ','GSDOM','username','Pass\x20the\x20ID\x20of\x20the\x20Grid','gridId','writeFileSync','TMyeD','727476FbAEqQ','https://','usage','uLVDM','clusterRegion','handler','cloudProvider','TXrxj','url','NzzSF','PtLWf','help','uqkPA','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','options','info','Browserstack','\x22\x20with\x20ID\x20','VlYQV','INFO','tIlLu','deleteCluster','CdcWz','desc','stack','610MvDuip','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Succesfully\x20deleted\x20the\x20grid','builder','1FMkYVT','uqUpG','clusterId','UlvFr','gvMNR','966392xfVlun','init-not-called','/packages/cli/grid/','promisify','CSULr','ICtbZ','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','928644EbgLrd','QySXY','bLTyS','XbpUK','ERROR','qxNfR','\x22\x20and\x20ID\x20','delete-grid-called','error','yPbAw','xigrZ','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','rlCDR','../../utils/utilityMethods','statusCode','command','QslVZ','DELETE','wBBSr','ZDIsD','BIMON','name','ncsOv','YVcOP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','153082RhWXLs','warn','14RBHfMy','zoiCh','../../utils/userInput','debug','../../config/logger','xFIlS','NrXhm','server-error','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','toLowerCase','XGAWx','Failed\x20to\x20delete\x20resources!\x20Error:\x20','WGwiH','mKjJn','message','parse','epilogue','TsxLA','RLQSe','../../cloudproviders/utils','3ibWiZZ','GfWdv','description','grid','exit','request','delete','auth'];a12_0x1792=function(){return _0x5a11aa;};return a12_0x1792();}exports[a12_0x4e08dc(0x218)]=a12_0x4e08dc(0x1ac),exports[a12_0x4e08dc(0x1f7)]=a12_0x4e08dc(0x1cb),exports[a12_0x4e08dc(0x1fc)]=function(_0x3afe07){const _0xedb740=a12_0x4e08dc,_0x42706e={};_0x42706e[_0xedb740(0x1d3)]=_0xedb740(0x1db),_0x42706e[_0xedb740(0x200)]=_0xedb740(0x1d4),_0x42706e[_0xedb740(0x1f6)]=_0xedb740(0x1ea);const _0x1b2242=_0x42706e,_0x7f20d9={};_0x7f20d9['description']=_0x1b2242['BSyJj'],_0x7f20d9[_0xedb740(0x1cc)]=_0x1b2242[_0xedb740(0x200)];const _0x49363a={};return _0x49363a[_0xedb740(0x1ce)]=_0x7f20d9,_0x3afe07['usage'](HELP_HEADER_MESSAGE[_0xedb740(0x1af)])[_0xedb740(0x1a5)](HELP_FOOTER_MESSAGE)['options'](_0x49363a)[_0xedb740(0x1ea)](_0x1b2242['CdcWz'])[_0xedb740(0x1c3)];},exports[a12_0x4e08dc(0x1e4)]=async function(_0x2920ae){const _0x4dac75=a12_0x4e08dc,_0x235eb1={'bLTyS':_0x4dac75(0x1db),'oIqdh':_0x4dac75(0x1d4),'ZDIsD':_0x4dac75(0x1ea),'xWTyD':_0x4dac75(0x1d2),'TsxLA':function(_0x163d7f){return _0x163d7f();},'xFIlS':function(_0x257f12){return _0x257f12();},'yPbAw':function(_0x3d57dc,_0x3bda85){return _0x3d57dc!==_0x3bda85;},'CSULr':'cJLyH','TMyeD':'IXBlR','NrXhm':_0x4dac75(0x1ec),'tSsLM':function(_0x33b1d8,_0x23640f,_0x27db47,_0x41481c,_0xa53321,_0x5265db,_0x2616f7){return _0x33b1d8(_0x23640f,_0x27db47,_0x41481c,_0xa53321,_0x5265db,_0x2616f7);},'uqUpG':_0x4dac75(0x210),'GCOGo':_0x4dac75(0x203),'Dxzbi':function(_0x2f886b,_0x4433c1){return _0x2f886b===_0x4433c1;},'PtLWf':'BXENF','DTHoa':function(_0x349389){return _0x349389();},'tIlLu':function(_0x5aef4a,_0x4e8bb0,_0x15bc02,_0x21af6a){return _0x5aef4a(_0x4e8bb0,_0x15bc02,_0x21af6a);},'TXrxj':_0x4dac75(0x1f0),'jZtdv':function(_0x56285a,_0x1374c2){return _0x56285a!==_0x1374c2;},'uqkPA':_0x4dac75(0x201),'YdfjS':function(_0x594c65,_0x3bdecf){return _0x594c65(_0x3bdecf);},'qxNfR':function(_0x446401,_0x10740c){return _0x446401===_0x10740c;},'GfWdv':function(_0xf591be,_0x401ac5){return _0xf591be===_0x401ac5;},'eoHyt':function(_0x237338,_0x16406a){return _0x237338===_0x16406a;},'gXMOg':function(_0xc569b,_0x25a146){return _0xc569b===_0x25a146;},'mKjJn':'UQiRq','YEHlV':_0x4dac75(0x1fa),'wBBSr':function(_0x1e80a5,_0x49be48,_0x5513aa,_0x124d33,_0x4c44be,_0xb696e7,_0x424d31){return _0x1e80a5(_0x49be48,_0x5513aa,_0x124d33,_0x4c44be,_0xb696e7,_0x424d31);},'yvEcv':_0x4dac75(0x1d5),'sWDMd':function(_0x56a241,_0x24ceeb){return _0x56a241===_0x24ceeb;},'WGwiH':function(_0x47047f,_0x4559ab){return _0x47047f!==_0x4559ab;},'XGAWx':_0x4dac75(0x1c0),'jfgmq':_0x4dac75(0x1e2),'QslVZ':function(_0x1828ad,_0x37caff,_0x1b4a7a,_0x5bb341){return _0x1828ad(_0x37caff,_0x1b4a7a,_0x5bb341);},'YGvzV':_0x4dac75(0x21d),'VlYQV':_0x4dac75(0x214),'vsLcp':function(_0x58e970,_0x5e8e17){return _0x58e970!==_0x5e8e17;},'YVcOP':_0x4dac75(0x1a7),'ICtbZ':_0x4dac75(0x213),'mgDfh':function(_0x4cf969){return _0x4cf969();},'CpBeX':_0x4dac75(0x208),'QySXY':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','ncsOv':function(_0x24140c,_0x46d7c3){return _0x24140c(_0x46d7c3);},'cKfhH':function(_0x19036f,_0x1a8749){return _0x19036f(_0x1a8749);},'suvYN':function(_0x5712c6,_0x1cac4e,_0x4742eb,_0x37cbe1,_0x599c36,_0x5e8fc6){return _0x5712c6(_0x1cac4e,_0x4742eb,_0x37cbe1,_0x599c36,_0x5e8fc6);},'zoiCh':_0x4dac75(0x21a),'yQcAz':function(_0x49eee2,_0x2f8e6c){return _0x49eee2!==_0x2f8e6c;},'rlCDR':_0x4dac75(0x19c),'GSDOM':function(_0x5dec30,_0x2b46f7,_0x4b78ad,_0x2565da,_0x2188cf,_0xbf2c6c,_0x1b54a7){return _0x5dec30(_0x2b46f7,_0x4b78ad,_0x2565da,_0x2188cf,_0xbf2c6c,_0x1b54a7);},'ZypIE':'unauthorised','NzzSF':function(_0x166d1b,_0x2796c7,_0x43b8a8,_0x5879a6,_0x3c178c,_0x36973e,_0x256663){return _0x166d1b(_0x2796c7,_0x43b8a8,_0x5879a6,_0x3c178c,_0x36973e,_0x256663);},'yGmAP':_0x4dac75(0x1b8),'qopsk':function(_0x5d5869,_0x26e9a0,_0x376b2a,_0x44a2d0,_0x717859,_0x58c3ca,_0x51127b){return _0x5d5869(_0x26e9a0,_0x376b2a,_0x44a2d0,_0x717859,_0x58c3ca,_0x51127b);},'XbpUK':'unknown-error'};try{global_registry[_0x4dac75(0x1b7)]=_0x235eb1[_0x4dac75(0x1a6)](uuidv4);!fs[_0x4dac75(0x1c5)](_0x235eb1[_0x4dac75(0x19a)](getCredentialsPath))&&(_0x235eb1[_0x4dac75(0x212)](_0x235eb1[_0x4dac75(0x206)],_0x235eb1[_0x4dac75(0x1de)])?(console[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x19b)]),await _0x235eb1[_0x4dac75(0x1bf)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1['GCOGo'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)):_0x4ed0ad=_0x4dac75(0x1d6)+_0x456f0f[_0x4dac75(0x21e)]+'\x22\x20and\x20ID\x20'+_0x22e6b3['id']+_0x4dac75(0x1c2)+_0x305764[_0x4dac75(0x1bc)]+_0x4dac75(0x1f1)+_0x1d8fc4[_0x4dac75(0x1ff)]+_0x4dac75(0x1b4));_0x235eb1[_0x4dac75(0x1bf)](sendInstrumentationEvent,_0x2920ae,_0x235eb1['uqUpG'],messageTypes[_0x4dac75(0x1f3)],null,null,_0x2920ae);if(!_0x2920ae[_0x4dac75(0x1dc)]){if(_0x235eb1['Dxzbi'](_0x235eb1[_0x4dac75(0x1e9)],_0x235eb1[_0x4dac75(0x1e9)]))console[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x1cd)]),process[_0x4dac75(0x1ad)](0x1);else{const _0x1341ca={};_0x1341ca[_0x4dac75(0x1ab)]=_0x235eb1[_0x4dac75(0x20b)],_0x1341ca[_0x4dac75(0x1cc)]=_0x235eb1['oIqdh'];const _0x729181={};return _0x729181[_0x4dac75(0x1ce)]=_0x1341ca,_0x13cb71[_0x4dac75(0x1e1)](_0x33a131[_0x4dac75(0x1af)])[_0x4dac75(0x1a5)](_0x26d41e)[_0x4dac75(0x1ee)](_0x729181)[_0x4dac75(0x1ea)](_0x235eb1[_0x4dac75(0x21c)])['argv'];}}const _0x20f841=JSON[_0x4dac75(0x1a4)](fs['readFileSync'](_0x235eb1[_0x4dac75(0x1d7)](getCredentialsPath))),[_0x3ad0cd,_0x2328dd]=await _0x235eb1[_0x4dac75(0x1f4)](getGridDetails,_0x20f841[_0x4dac75(0x1f0)][_0x4dac75(0x1da)],_0x20f841[_0x4dac75(0x1f0)][_0x4dac75(0x1b6)],_0x2920ae[_0x4dac75(0x1dc)]);if(_0x2328dd){const _0xfc867d=_0x2328dd['info'];let _0x348d8a=_0x4dac75(0x1d6)+_0xfc867d[_0x4dac75(0x21e)]+_0x4dac75(0x20f)+_0xfc867d['id']+_0x4dac75(0x1b4),_0x53f649;_0x2328dd[_0x4dac75(0x1c1)]&&_0x235eb1['Dxzbi'](_0x2328dd['clusterSpawnedVia'],_0x235eb1[_0x4dac75(0x1e6)])&&(_0x235eb1['jZtdv'](_0x235eb1[_0x4dac75(0x1eb)],_0x235eb1['uqkPA'])?_0x1ae128[_0x4dac75(0x194)]('Cluster:\x20'+_0x278062[_0x4dac75(0x1bc)]+_0x4dac75(0x19d)):_0x348d8a=_0x4dac75(0x1d6)+_0xfc867d[_0x4dac75(0x21e)]+_0x4dac75(0x20f)+_0xfc867d['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0xfc867d[_0x4dac75(0x1bc)]+'\x22\x20with\x20ID\x20'+_0xfc867d[_0x4dac75(0x1ff)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x53f649=await _0x235eb1['YdfjS'](inputConfirmation,_0x348d8a);(_0x235eb1[_0x4dac75(0x20e)](_0x53f649,undefined)||_0x235eb1[_0x4dac75(0x1aa)](_0x53f649,null)||!(_0x235eb1['eoHyt'](_0x53f649[_0x4dac75(0x19e)](),'y')||_0x235eb1[_0x4dac75(0x1bd)](_0x53f649[_0x4dac75(0x19e)](),'n')))&&(_0x235eb1[_0x4dac75(0x212)](_0x235eb1[_0x4dac75(0x1a2)],_0x235eb1[_0x4dac75(0x1a2)])?_0xa1a252[_0x4dac75(0x1ad)](0x0):(console[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x1b3)]),await _0x235eb1[_0x4dac75(0x21b)](sendInstrumentationEvent,_0x2920ae,_0x235eb1['uqUpG'],messageTypes[_0x4dac75(0x20d)],_0x235eb1['yvEcv'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)));_0x235eb1[_0x4dac75(0x1b2)](_0x53f649['toLowerCase'](),'n')&&(_0x235eb1[_0x4dac75(0x1a1)](_0x235eb1[_0x4dac75(0x19f)],_0x235eb1['jfgmq'])?process[_0x4dac75(0x1ad)](0x0):(_0x474866[_0x4dac75(0x211)](_0x235eb1[_0x4dac75(0x1cd)]),_0x9e72f2['exit'](0x1)));global_registry[_0x4dac75(0x1e3)]=_0xfc867d[_0x4dac75(0x1ed)];const _0x3c4bdc=_0xfc867d[_0x4dac75(0x1e5)],_0x57e7bd=_0x235eb1[_0x4dac75(0x219)](getCloudProviderObject,_0x3c4bdc,_0xfc867d[_0x4dac75(0x1bc)],_0xfc867d[_0x4dac75(0x21e)]),_0x182089=_0x20f841['cloudProvider'];if(_0x235eb1[_0x4dac75(0x1aa)](_0x182089[_0x3c4bdc],undefined)){if(_0x235eb1[_0x4dac75(0x1bd)](_0x235eb1[_0x4dac75(0x1d1)],_0x235eb1['YGvzV'])){logger[_0x4dac75(0x1ef)](_0x235eb1[_0x4dac75(0x1f2)]);_0x235eb1['eoHyt'](_0x20f841[_0x4dac75(0x1e5)],undefined)&&(_0x235eb1['vsLcp'](_0x235eb1[_0x4dac75(0x220)],_0x235eb1[_0x4dac75(0x207)])?_0x20f841[_0x4dac75(0x1e5)]={}:(_0x83ba1f[_0x4dac75(0x1ef)]('Succesfully\x20deleted\x20the\x20grid'),_0x632914[_0x4dac75(0x1ad)](0x0)));_0x20f841[_0x4dac75(0x1e5)][_0x3c4bdc]={};const _0x373db8=await _0x235eb1[_0x4dac75(0x1f4)](inputCloudProviderKeys,_0x3c4bdc,_0x20f841,_0x57e7bd);fs[_0x4dac75(0x1dd)](_0x235eb1[_0x4dac75(0x1c8)](getCredentialsPath),JSON[_0x4dac75(0x1bb)](_0x373db8)),logger[_0x4dac75(0x198)](_0x235eb1['CpBeX']);}else _0x23679b[_0x4dac75(0x1e5)]={};}else logger[_0x4dac75(0x1ef)](_0x235eb1[_0x4dac75(0x20a)]),await _0x57e7bd['fetchLocalCreds'](_0x182089);_0x57e7bd['configureIfNotConfigured']();const _0x4a8f8b=_0x235eb1[_0x4dac75(0x21f)](kebabCase,_0xfc867d[_0x4dac75(0x21e)]),[_0x15e6d0,_0xd2e00f,_0x4484f8,_0x4beeaf,_0x2b265a,_0xa514d6]=await _0x235eb1[_0x4dac75(0x1ca)](createK8sClient,_0x57e7bd);await _0x235eb1[_0x4dac75(0x1d0)](removeGridComponents,_0x15e6d0,_0xd2e00f,_0x4484f8,_0x4beeaf,_0x4a8f8b);if(_0x2328dd[_0x4dac75(0x1c1)]){const _0x27a1c7=await _0x57e7bd['isBrowserstackCluster']();_0x27a1c7?await _0x57e7bd[_0x4dac75(0x1f5)](_0x15e6d0,_0xfc867d['region']):logger['warn']('Cluster:\x20'+_0xfc867d[_0x4dac75(0x1bc)]+_0x4dac75(0x19d));}const _0x4ed06b=_0x4dac75(0x1e0)+AG_API_URL+_0x4dac75(0x204)+_0x2920ae[_0x4dac75(0x1dc)],_0x36259b={};_0x36259b[_0x4dac75(0x1da)]=_0x20f841[_0x4dac75(0x1f0)][_0x4dac75(0x1da)],_0x36259b[_0x4dac75(0x1b6)]=_0x20f841['Browserstack'][_0x4dac75(0x1b6)];const _0x24dbc7={};_0x24dbc7[_0x4dac75(0x1e7)]=_0x4ed06b,_0x24dbc7[_0x4dac75(0x1c4)]=_0x235eb1[_0x4dac75(0x196)],_0x24dbc7[_0x4dac75(0x1b0)]=_0x36259b;const _0x426d15=_0x24dbc7,_0x2e694d=await _0x235eb1['ncsOv'](promisifiedRequest,_0x426d15);_0x235eb1[_0x4dac75(0x1b9)](_0x2e694d,null)&&_0x235eb1[_0x4dac75(0x1b9)](_0x2e694d,undefined)&&_0x235eb1[_0x4dac75(0x1b1)](_0x2e694d[_0x4dac75(0x217)],0xc8)&&(logger['info'](_0x4dac75(0x1fb)),process[_0x4dac75(0x1ad)](0x0)),logger[_0x4dac75(0x211)](_0x4dac75(0x1c9)+JSON[_0x4dac75(0x1bb)](_0x2e694d)),await _0x235eb1['wBBSr'](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1[_0x4dac75(0x215)],_0x3ad0cd,_0x2920ae),process[_0x4dac75(0x1ad)](0x1);}_0x235eb1[_0x4dac75(0x20e)](_0x3ad0cd[_0x4dac75(0x217)],0x191)&&(logger[_0x4dac75(0x211)](_0x4dac75(0x221)),await _0x235eb1[_0x4dac75(0x1d9)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1['ZypIE'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)),_0x235eb1['Dxzbi'](_0x3ad0cd['statusCode'],0x190)&&(logger[_0x4dac75(0x211)](JSON[_0x4dac75(0x1a4)](_0x3ad0cd[_0x4dac75(0x1c6)])[_0x4dac75(0x1a3)]),await _0x235eb1[_0x4dac75(0x1e8)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1['yGmAP'],null,_0x2920ae),process[_0x4dac75(0x1ad)](0x1)),logger[_0x4dac75(0x211)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4dac75(0x1bb)](_0x3ad0cd)),await _0x235eb1[_0x4dac75(0x1be)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1[_0x4dac75(0x215)],_0x3ad0cd,_0x2920ae),process[_0x4dac75(0x1ad)](0x1);}catch(_0x5a02dd){logger[_0x4dac75(0x211)](_0x4dac75(0x1a0)+_0x5a02dd[_0x4dac75(0x1f8)]),await _0x235eb1[_0x4dac75(0x1be)](sendInstrumentationEvent,_0x2920ae,_0x235eb1[_0x4dac75(0x1fe)],messageTypes[_0x4dac75(0x20d)],_0x235eb1[_0x4dac75(0x20c)],_0x5a02dd,_0x2920ae),process[_0x4dac75(0x1ad)](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13_0x44c8cb=a13_0x4ffa;(function(_0x5ba7ec,_0x12306e){const _0x4707b5=a13_0x4ffa,_0x54df55=_0x5ba7ec();while(!![]){try{const _0x3d2600=parseInt(_0x4707b5(0x1a5))/0x1+parseInt(_0x4707b5(0x192))/0x2+-parseInt(_0x4707b5(0x17a))/0x3*(parseInt(_0x4707b5(0x17e))/0x4)+-parseInt(_0x4707b5(0x177))/0x5*(-parseInt(_0x4707b5(0x1c1))/0x6)+parseInt(_0x4707b5(0x1ae))/0x7+parseInt(_0x4707b5(0x189))/0x8+parseInt(_0x4707b5(0x18a))/0x9*(-parseInt(_0x4707b5(0x1c2))/0xa);if(_0x3d2600===_0x12306e)break;else _0x54df55['push'](_0x54df55['shift']());}catch(_0x4f2ffc){_0x54df55['push'](_0x54df55['shift']());}}}(a13_0x28a5,0xc91e2));function a13_0x4ffa(_0x4ab3ca,_0x441711){const _0x28a5b8=a13_0x28a5();return a13_0x4ffa=function(_0x4ffa3a,_0x5007f4){_0x4ffa3a=_0x4ffa3a-0x16d;let _0x13d95d=_0x28a5b8[_0x4ffa3a];return _0x13d95d;},a13_0x4ffa(_0x4ab3ca,_0x441711);}const fs=require('fs'),util=require(a13_0x44c8cb(0x1cd)),request=require(a13_0x44c8cb(0x1d0)),{v4:uuidv4}=require(a13_0x44c8cb(0x1ad)),{logger}=require(a13_0x44c8cb(0x19d)),{inputBstackKeys}=require(a13_0x44c8cb(0x18c)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x44c8cb(0x1b7)),{getDirForConfig,getCredentialsPath}=require(a13_0x44c8cb(0x187)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);function a13_0x28a5(){const _0x3b129f=['uuid','6190779VUQBuf','lLRRL','bGohq','GaQxo','dnwen','EFqVv','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','QjjTM','INFO','../config/constants','pGmMq','https://','usage','epilogue','tdpuD','description','argv','stringify','existsSync','6ToEVKW','225630htYqYG','bstackUsername','chVRN','ERROR','builder','recommendCommands','fgCgc','desc','type','readFileSync','JSuXr','util','FUXmN','bstack-username','request','XSfgR','rQdlP','unknown-error','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lFqlJ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','utf-8','BROWSERSTACK_ACCESS_KEY','qlUDg','vUIKI','3714915PLVFME','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','JcAQM','36753iKWAKE','string','handler','FCAVU','36IluVNo','YXdpZ','CZvuU','FdhqO','AJtxk','options','parse','env','RJvCY','../utils/utilityMethods','SOJBB','4382424dlmQGD','846QsMcCK','strict','../utils/userInput','statusCode','username','siKKq','RfPXw','KYuSe','1619370RUmImx','NbMpk','init','yAcYE','error','stack','debug','mkdirSync','apYHa','PnmhY','vtYXx','../config/logger','Browserstack','MpWdJ','rIiyt','LRcku','writeFileSync','help','MTvzg','70091cLzXAi','bstackAccesskey','hInGn','password','BROWSERSTACK_USERNAME','bstack-accesskey','FeQAP','exit'];a13_0x28a5=function(){return _0x3b129f;};return a13_0x28a5();}exports['command']=a13_0x44c8cb(0x194),exports[a13_0x44c8cb(0x1c9)]=a13_0x44c8cb(0x178),exports[a13_0x44c8cb(0x1c6)]=function(_0x43827c){const _0x44b0de=a13_0x44c8cb,_0x5b5eb7={};_0x5b5eb7[_0x44b0de(0x182)]=_0x44b0de(0x172),_0x5b5eb7[_0x44b0de(0x186)]='string',_0x5b5eb7[_0x44b0de(0x17f)]=_0x44b0de(0x170),_0x5b5eb7[_0x44b0de(0x1a7)]=_0x44b0de(0x1a3);const _0x2b38ce=_0x5b5eb7,_0x1d9907={};_0x1d9907['description']=_0x2b38ce[_0x44b0de(0x182)],_0x1d9907[_0x44b0de(0x1ca)]=_0x2b38ce[_0x44b0de(0x186)];const _0x2bf4bb={};_0x2bf4bb[_0x44b0de(0x1bd)]=_0x2b38ce[_0x44b0de(0x17f)],_0x2bf4bb[_0x44b0de(0x1ca)]=_0x2b38ce[_0x44b0de(0x186)];const _0x2d4a17={};return _0x2d4a17[_0x44b0de(0x1cf)]=_0x1d9907,_0x2d4a17[_0x44b0de(0x1aa)]=_0x2bf4bb,_0x43827c[_0x44b0de(0x1ba)](HELP_HEADER_MESSAGE[_0x44b0de(0x194)])[_0x44b0de(0x1bb)](HELP_FOOTER_MESSAGE)['options'](_0x2d4a17)[_0x44b0de(0x1c7)]()['strict']()[_0x44b0de(0x1a3)](_0x2b38ce[_0x44b0de(0x1a7)])[_0x44b0de(0x1be)];},exports[a13_0x44c8cb(0x17c)]=async function(_0x588c08){const _0x5746f5=a13_0x44c8cb,_0x4e0a26={'dnwen':function(_0x4aaba0){return _0x4aaba0();},'vtYXx':_0x5746f5(0x173),'FUXmN':_0x5746f5(0x172),'CZvuU':_0x5746f5(0x17b),'lrOga':_0x5746f5(0x170),'JSuXr':'help','FeQAP':function(_0x34b687,_0x104f5a,_0x39ca3f,_0x374bb5,_0xa8cc51,_0x24c337,_0x27bf2e){return _0x34b687(_0x104f5a,_0x39ca3f,_0x374bb5,_0xa8cc51,_0x24c337,_0x27bf2e);},'SOJBB':'init-called','MTvzg':function(_0x290899,_0x22b324){return _0x290899===_0x22b324;},'qlUDg':'wJSRZ','lFqlJ':function(_0x27e5c4,_0x3dc45b){return _0x27e5c4!==_0x3dc45b;},'EFqVv':_0x5746f5(0x193),'JcAQM':_0x5746f5(0x1b1),'aDfxw':_0x5746f5(0x19b),'vUIKI':_0x5746f5(0x1b5),'UnLxq':_0x5746f5(0x195),'yfBjO':_0x5746f5(0x181),'pGmMq':'epLHz','LRcku':function(_0x407096,_0x2cc3df){return _0x407096===_0x2cc3df;},'MpWdJ':function(_0x6d08ac,_0x5168c5){return _0x6d08ac===_0x5168c5;},'icuCD':_0x5746f5(0x191),'RfPXw':_0x5746f5(0x1a0),'SeTZs':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','DgtYj':function(_0x3609a5){return _0x3609a5();},'lLRRL':'GET','XSfgR':function(_0xaed5e3,_0x560559){return _0xaed5e3(_0x560559);},'chVRN':function(_0x15602f,_0x5db50b){return _0x15602f!==_0x5db50b;},'tdpuD':'UGiMd','lAcIm':_0x5746f5(0x17d),'apYHa':_0x5746f5(0x16e),'fgCgc':function(_0x330cce){return _0x330cce();},'bGohq':'VOJrm','EBdzW':_0x5746f5(0x1b4),'siKKq':'wrong-creds','sQSan':_0x5746f5(0x16f)};try{global_registry['requestId']=_0x4e0a26[_0x5746f5(0x1b2)](uuidv4),_0x4e0a26['FeQAP'](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes[_0x5746f5(0x1b6)],null,null,_0x588c08);const _0x572b54=_0x4e0a26[_0x5746f5(0x1b2)](getDirForConfig);if(!fs[_0x5746f5(0x1c0)](_0x572b54)){if(_0x4e0a26['MTvzg'](_0x4e0a26[_0x5746f5(0x175)],_0x4e0a26['qlUDg']))fs[_0x5746f5(0x199)](_0x572b54);else{let _0x586ee8={};const _0x3a81f9=_0x4e0a26[_0x5746f5(0x1b2)](_0x4bc0bc);_0x4cd040['existsSync'](_0x3a81f9)&&(_0x586ee8=_0x173e73[_0x5746f5(0x184)](_0x1d8f37[_0x5746f5(0x1cb)](_0x3a81f9,_0x4e0a26[_0x5746f5(0x19c)])));const _0x22ff86={};_0x22ff86[_0x5746f5(0x18e)]=_0x2da674,_0x22ff86[_0x5746f5(0x1a8)]=_0x3fe2f1,_0x586ee8[_0x5746f5(0x19e)]=_0x22ff86,_0x568b41['writeFileSync'](_0x3a81f9,_0x49200c[_0x5746f5(0x1bf)](_0x586ee8)),_0x495298['exit'](0x0);}}let _0xbb5970,_0x4d026a;process[_0x5746f5(0x185)]['BROWSERSTACK_USERNAME']&&(_0x4e0a26[_0x5746f5(0x171)](_0x4e0a26[_0x5746f5(0x1b3)],_0x4e0a26[_0x5746f5(0x179)])?_0xbb5970=process[_0x5746f5(0x185)][_0x5746f5(0x1a9)]:_0x38b54=_0x460060[_0x5746f5(0x185)][_0x5746f5(0x174)]);process[_0x5746f5(0x185)]['BROWSERSTACK_ACCESS_KEY']&&(_0x4e0a26[_0x5746f5(0x1a4)](_0x4e0a26['aDfxw'],_0x4e0a26[_0x5746f5(0x176)])?_0x226db1=_0x1ea767[_0x5746f5(0x185)][_0x5746f5(0x1a9)]:_0x4d026a=process[_0x5746f5(0x185)][_0x5746f5(0x174)]);_0x588c08[_0x5746f5(0x1c3)]&&(_0x4e0a26[_0x5746f5(0x171)](_0x4e0a26['UnLxq'],_0x4e0a26['yfBjO'])?_0xbb5970=_0x588c08[_0x5746f5(0x1c3)]:_0x61b4cc=_0x3d919b['parse'](_0x36ba15[_0x5746f5(0x1cb)](_0x52e9ee,_0x4e0a26[_0x5746f5(0x19c)])));_0x588c08['bstackAccesskey']&&(_0x4e0a26['lFqlJ'](_0x4e0a26[_0x5746f5(0x1b8)],_0x4e0a26['pGmMq'])?_0x1dea13=_0x59d975[_0x5746f5(0x1a6)]:_0x4d026a=_0x588c08[_0x5746f5(0x1a6)]);if(_0x4e0a26[_0x5746f5(0x1a1)](_0xbb5970,undefined)||_0x4e0a26[_0x5746f5(0x1a1)](_0x4d026a,undefined)){if(_0x4e0a26[_0x5746f5(0x19f)](_0x4e0a26['icuCD'],_0x4e0a26[_0x5746f5(0x190)]))_0x1ebe8d=_0x2d27e4[_0x5746f5(0x1c3)];else{logger[_0x5746f5(0x198)](_0x4e0a26['SeTZs']);const [_0x2d6f54,_0x1637e1]=await _0x4e0a26['DgtYj'](inputBstackKeys);_0xbb5970=_0x2d6f54,_0x4d026a=_0x1637e1;}}let _0x3aff76=![];const _0x3b6fb4={};_0x3b6fb4['url']=_0x5746f5(0x1b9)+_0xbb5970+':'+_0x4d026a+'@'+BS_API_URL+'/automate/plan.json',_0x3b6fb4['method']=_0x4e0a26[_0x5746f5(0x1af)];const _0x10c341=_0x3b6fb4,_0x1f148d=await _0x4e0a26[_0x5746f5(0x16d)](promisifiedRequest,_0x10c341);_0x4e0a26['lFqlJ'](_0x1f148d,null)&&_0x4e0a26[_0x5746f5(0x171)](_0x1f148d,undefined)&&_0x4e0a26[_0x5746f5(0x1a4)](_0x1f148d[_0x5746f5(0x18d)],0xc8)&&(_0x4e0a26[_0x5746f5(0x1c4)](_0x4e0a26[_0x5746f5(0x1bc)],_0x4e0a26['lAcIm'])?_0x3aff76=!![]:_0x40bdfe[_0x5746f5(0x199)](_0x2b5b2c));if(_0x3aff76){if(_0x4e0a26['chVRN'](_0x4e0a26['apYHa'],_0x4e0a26[_0x5746f5(0x19a)])){const _0xc3ddc={};_0xc3ddc[_0x5746f5(0x1bd)]=_0x4e0a26[_0x5746f5(0x1ce)],_0xc3ddc[_0x5746f5(0x1ca)]=_0x4e0a26[_0x5746f5(0x180)];const _0x5cfbeb={};_0x5cfbeb[_0x5746f5(0x1bd)]=_0x4e0a26['lrOga'],_0x5cfbeb[_0x5746f5(0x1ca)]=_0x4e0a26[_0x5746f5(0x180)];const _0x244bf6={};return _0x244bf6[_0x5746f5(0x1cf)]=_0xc3ddc,_0x244bf6[_0x5746f5(0x1aa)]=_0x5cfbeb,_0x12004b['usage'](_0x299b59[_0x5746f5(0x194)])[_0x5746f5(0x1bb)](_0x34f343)[_0x5746f5(0x183)](_0x244bf6)[_0x5746f5(0x1c7)]()[_0x5746f5(0x18b)]()[_0x5746f5(0x1a3)](_0x4e0a26[_0x5746f5(0x1cc)])[_0x5746f5(0x1be)];}else{let _0x1d0c4d={};const _0x1f7ad9=_0x4e0a26[_0x5746f5(0x1c8)](getCredentialsPath);fs[_0x5746f5(0x1c0)](_0x1f7ad9)&&(_0x4e0a26[_0x5746f5(0x1a4)](_0x4e0a26[_0x5746f5(0x1b0)],_0x4e0a26[_0x5746f5(0x1b0)])?_0x1d0c4d=JSON[_0x5746f5(0x184)](fs['readFileSync'](_0x1f7ad9,_0x4e0a26[_0x5746f5(0x19c)])):_0x44c1a5=!![]);const _0x6f3aef={};_0x6f3aef[_0x5746f5(0x18e)]=_0xbb5970,_0x6f3aef[_0x5746f5(0x1a8)]=_0x4d026a,_0x1d0c4d['Browserstack']=_0x6f3aef,fs[_0x5746f5(0x1a2)](_0x1f7ad9,JSON[_0x5746f5(0x1bf)](_0x1d0c4d)),process[_0x5746f5(0x1ac)](0x0);}}else logger[_0x5746f5(0x196)](_0x4e0a26['EBdzW']),await _0x4e0a26['FeQAP'](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes['ERROR'],_0x4e0a26[_0x5746f5(0x18f)],null,_0x588c08),process[_0x5746f5(0x1ac)](0x1);}catch(_0x534bd1){logger['error'](_0x534bd1[_0x5746f5(0x197)]),await _0x4e0a26[_0x5746f5(0x1ab)](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes[_0x5746f5(0x1c5)],_0x4e0a26['sQSan'],_0x534bd1,_0x588c08),process[_0x5746f5(0x1ac)](0x1);}};
|
|
1
|
+
const a13_0x13e5a7=a13_0x2f78;(function(_0x576f77,_0x160246){const _0x5d9ccd=a13_0x2f78,_0xae88d2=_0x576f77();while(!![]){try{const _0x290a34=parseInt(_0x5d9ccd(0x1c4))/0x1*(parseInt(_0x5d9ccd(0x180))/0x2)+parseInt(_0x5d9ccd(0x1ad))/0x3*(-parseInt(_0x5d9ccd(0x179))/0x4)+parseInt(_0x5d9ccd(0x182))/0x5+-parseInt(_0x5d9ccd(0x1a8))/0x6*(parseInt(_0x5d9ccd(0x1c7))/0x7)+parseInt(_0x5d9ccd(0x19b))/0x8*(parseInt(_0x5d9ccd(0x1be))/0x9)+-parseInt(_0x5d9ccd(0x1cb))/0xa*(-parseInt(_0x5d9ccd(0x16e))/0xb)+parseInt(_0x5d9ccd(0x1d7))/0xc*(-parseInt(_0x5d9ccd(0x16f))/0xd);if(_0x290a34===_0x160246)break;else _0xae88d2['push'](_0xae88d2['shift']());}catch(_0x57dcd8){_0xae88d2['push'](_0xae88d2['shift']());}}}(a13_0x1629,0xbe060));function a13_0x2f78(_0x282ff6,_0x511366){const _0x16298d=a13_0x1629();return a13_0x2f78=function(_0x2f7899,_0x227159){_0x2f7899=_0x2f7899-0x16a;let _0x49e7a8=_0x16298d[_0x2f7899];return _0x49e7a8;},a13_0x2f78(_0x282ff6,_0x511366);}const fs=require('fs'),util=require('util'),request=require(a13_0x13e5a7(0x196)),{v4:uuidv4}=require('uuid'),{logger}=require(a13_0x13e5a7(0x1b9)),{inputBstackKeys}=require(a13_0x13e5a7(0x190)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x13e5a7(0x1ab)),{getDirForConfig,getCredentialsPath}=require(a13_0x13e5a7(0x1d3)),{sendInstrumentationEvent}=require(a13_0x13e5a7(0x194)),promisifiedRequest=util[a13_0x13e5a7(0x1ba)](request);exports['command']=a13_0x13e5a7(0x19a),exports[a13_0x13e5a7(0x1ae)]=a13_0x13e5a7(0x1d9),exports['builder']=function(_0x5f2388){const _0x100b61=a13_0x13e5a7,_0x2fc300={};_0x2fc300['TcnCO']=_0x100b61(0x1da),_0x2fc300[_0x100b61(0x1bd)]='string',_0x2fc300[_0x100b61(0x173)]=_0x100b61(0x185),_0x2fc300[_0x100b61(0x188)]=_0x100b61(0x1a3);const _0x391b4d=_0x2fc300,_0x43a8ee={};_0x43a8ee[_0x100b61(0x1bc)]=_0x391b4d['TcnCO'],_0x43a8ee[_0x100b61(0x17a)]=_0x391b4d[_0x100b61(0x1bd)];const _0x55dc5d={};_0x55dc5d[_0x100b61(0x1bc)]=_0x391b4d[_0x100b61(0x173)],_0x55dc5d['type']=_0x391b4d[_0x100b61(0x1bd)];const _0x218bb6={};return _0x218bb6[_0x100b61(0x18e)]=_0x43a8ee,_0x218bb6[_0x100b61(0x1b4)]=_0x55dc5d,_0x5f2388['usage'](HELP_HEADER_MESSAGE[_0x100b61(0x19a)])[_0x100b61(0x1a4)](HELP_FOOTER_MESSAGE)[_0x100b61(0x183)](_0x218bb6)[_0x100b61(0x1c1)]()[_0x100b61(0x19e)]()[_0x100b61(0x1a3)](_0x391b4d['qSPwH'])['argv'];},exports[a13_0x13e5a7(0x199)]=async function(_0xb9112e){const _0x33f593=a13_0x13e5a7,_0x360d26={'ABMaE':'utf-8','MRCQH':function(_0x5ad544){return _0x5ad544();},'KeSJZ':_0x33f593(0x1da),'vBjNO':_0x33f593(0x1cf),'UMysk':_0x33f593(0x185),'VJQJC':_0x33f593(0x1a3),'AapGw':function(_0x472b8d){return _0x472b8d();},'FKVWC':function(_0x247f54,_0x13d17f,_0x32ec39,_0x41c596,_0x3f17e3,_0x2e03d7,_0x101355){return _0x247f54(_0x13d17f,_0x32ec39,_0x41c596,_0x3f17e3,_0x2e03d7,_0x101355);},'fVfEP':_0x33f593(0x1b0),'QwiwV':function(_0x46ef0e){return _0x46ef0e();},'pPTxp':function(_0x4d4496,_0x135220){return _0x4d4496===_0x135220;},'cdtjZ':_0x33f593(0x1c9),'HmZKa':function(_0x90ea26,_0x3406cb){return _0x90ea26!==_0x3406cb;},'OAMXM':'heNnO','VTcSG':_0x33f593(0x1c3),'OMozt':_0x33f593(0x198),'ldvsI':_0x33f593(0x1ce),'NVeul':function(_0x1596a3,_0x531f03){return _0x1596a3===_0x531f03;},'EoSlu':_0x33f593(0x16c),'fRFJZ':'ZYuYf','tMrLo':_0x33f593(0x19c),'pvVLZ':_0x33f593(0x1c2),'ioLfl':function(_0x445260,_0x4fdcce){return _0x445260===_0x4fdcce;},'KFGks':'jrZcQ','TZLpK':_0x33f593(0x1a0),'UrcxE':function(_0x207962){return _0x207962();},'JeKYo':_0x33f593(0x17f),'Jhhut':function(_0x1e7ea5,_0x463496){return _0x1e7ea5(_0x463496);},'zxmbI':function(_0x4b263a,_0x31e9a8){return _0x4b263a!==_0x31e9a8;},'LaZEi':_0x33f593(0x16d),'UITPU':function(_0x551b71,_0x38067c){return _0x551b71!==_0x38067c;},'vfOOK':_0x33f593(0x181),'SUhpJ':function(_0x5a2c27){return _0x5a2c27();},'kRkrZ':_0x33f593(0x17e),'GmDEb':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','XxeGO':function(_0x546ca0,_0x42de51,_0x34dd5e,_0x4433a5,_0x511fb5,_0x13d878,_0x55ef58){return _0x546ca0(_0x42de51,_0x34dd5e,_0x4433a5,_0x511fb5,_0x13d878,_0x55ef58);},'xaais':_0x33f593(0x172),'ZAcwN':'unknown-error'};try{global_registry[_0x33f593(0x1c0)]=_0x360d26[_0x33f593(0x1af)](uuidv4),_0x360d26[_0x33f593(0x16b)](sendInstrumentationEvent,_0xb9112e,_0x360d26[_0x33f593(0x17d)],messageTypes[_0x33f593(0x195)],null,null,_0xb9112e);const _0x9448e6=_0x360d26[_0x33f593(0x1aa)](getDirForConfig);!fs[_0x33f593(0x1d6)](_0x9448e6)&&(_0x360d26[_0x33f593(0x19f)](_0x360d26[_0x33f593(0x1cc)],_0x360d26[_0x33f593(0x1cc)])?fs[_0x33f593(0x1c5)](_0x9448e6):_0x3bdc42['mkdirSync'](_0x1308fb));let _0x5dc9f2,_0x3f1104;process[_0x33f593(0x1d5)][_0x33f593(0x1bb)]&&(_0x360d26[_0x33f593(0x197)](_0x360d26[_0x33f593(0x171)],_0x360d26[_0x33f593(0x18a)])?_0x5dc9f2=process['env'][_0x33f593(0x1bb)]:_0x42bac3=_0x2a0ff5[_0x33f593(0x1d4)]);process[_0x33f593(0x1d5)][_0x33f593(0x17c)]&&(_0x360d26[_0x33f593(0x19f)](_0x360d26[_0x33f593(0x17b)],_0x360d26['ldvsI'])?_0x132144=_0x73c6ab[_0x33f593(0x193)](_0x58e9d9['readFileSync'](_0x2d4b6d,_0x360d26[_0x33f593(0x1ac)])):_0x3f1104=process['env'][_0x33f593(0x17c)]);if(_0xb9112e['bstackUsername']){if(_0x360d26[_0x33f593(0x186)](_0x360d26[_0x33f593(0x1c6)],_0x360d26[_0x33f593(0x1a6)])){let _0x43cbfb={};const _0x2dc4a0=_0x360d26[_0x33f593(0x1d2)](_0x110b1c);_0x48b612[_0x33f593(0x1d6)](_0x2dc4a0)&&(_0x43cbfb=_0x22ccfb[_0x33f593(0x193)](_0x1d1460[_0x33f593(0x1b2)](_0x2dc4a0,_0x360d26['ABMaE'])));const _0x51e816={};_0x51e816[_0x33f593(0x1d0)]=_0x3ebefd,_0x51e816[_0x33f593(0x1a1)]=_0x4a5d2b,_0x43cbfb[_0x33f593(0x177)]=_0x51e816,_0x3e952c[_0x33f593(0x178)](_0x2dc4a0,_0x3dd08a[_0x33f593(0x176)](_0x43cbfb)),_0x377d8d['exit'](0x0);}else _0x5dc9f2=_0xb9112e[_0x33f593(0x1d4)];}_0xb9112e[_0x33f593(0x1b8)]&&(_0x360d26['pPTxp'](_0x360d26[_0x33f593(0x1c8)],_0x360d26[_0x33f593(0x189)])?_0x353162=_0x3de3b6[_0x33f593(0x1d5)][_0x33f593(0x17c)]:_0x3f1104=_0xb9112e[_0x33f593(0x1b8)]);if(_0x360d26[_0x33f593(0x186)](_0x5dc9f2,undefined)||_0x360d26['pPTxp'](_0x3f1104,undefined)){if(_0x360d26[_0x33f593(0x1a5)](_0x360d26[_0x33f593(0x1a7)],_0x360d26[_0x33f593(0x1a7)])){logger[_0x33f593(0x1b7)](_0x360d26[_0x33f593(0x18d)]);const [_0x3e904c,_0x420cc5]=await _0x360d26['UrcxE'](inputBstackKeys);_0x5dc9f2=_0x3e904c,_0x3f1104=_0x420cc5;}else _0x45515b=!![];}let _0x5c175f=![];const _0x11285e={};_0x11285e[_0x33f593(0x1d8)]=_0x33f593(0x18b)+_0x5dc9f2+':'+_0x3f1104+'@'+BS_API_URL+'/automate/plan.json',_0x11285e[_0x33f593(0x1b6)]=_0x360d26['JeKYo'];const _0x1382bf=_0x11285e,_0x2bc8e5=await _0x360d26[_0x33f593(0x174)](promisifiedRequest,_0x1382bf);_0x360d26['HmZKa'](_0x2bc8e5,null)&&_0x360d26[_0x33f593(0x192)](_0x2bc8e5,undefined)&&_0x360d26[_0x33f593(0x1a5)](_0x2bc8e5[_0x33f593(0x184)],0xc8)&&(_0x360d26[_0x33f593(0x192)](_0x360d26[_0x33f593(0x175)],_0x360d26[_0x33f593(0x175)])?_0x2d5568=_0x7624cc[_0x33f593(0x1d5)]['BROWSERSTACK_USERNAME']:_0x5c175f=!![]);if(_0x5c175f){if(_0x360d26[_0x33f593(0x1a9)](_0x360d26['vfOOK'],_0x360d26['vfOOK'])){const _0x24a71c={};_0x24a71c[_0x33f593(0x1bc)]=_0x360d26[_0x33f593(0x187)],_0x24a71c[_0x33f593(0x17a)]=_0x360d26['vBjNO'];const _0xc7196b={};_0xc7196b['description']=_0x360d26['UMysk'],_0xc7196b[_0x33f593(0x17a)]=_0x360d26[_0x33f593(0x1ca)];const _0x2142d6={};return _0x2142d6[_0x33f593(0x18e)]=_0x24a71c,_0x2142d6[_0x33f593(0x1b4)]=_0xc7196b,_0x20bd49[_0x33f593(0x1d1)](_0x3b0c7a[_0x33f593(0x19a)])[_0x33f593(0x1a4)](_0x2cc08a)[_0x33f593(0x183)](_0x2142d6)[_0x33f593(0x1c1)]()[_0x33f593(0x19e)]()[_0x33f593(0x1a3)](_0x360d26[_0x33f593(0x18c)])[_0x33f593(0x1bf)];}else{let _0x333d36={};const _0xb14875=_0x360d26[_0x33f593(0x191)](getCredentialsPath);fs['existsSync'](_0xb14875)&&(_0x360d26[_0x33f593(0x1a9)](_0x360d26[_0x33f593(0x1a2)],_0x360d26[_0x33f593(0x1a2)])?_0x1b39ba=_0x12b7d6[_0x33f593(0x1b8)]:_0x333d36=JSON[_0x33f593(0x193)](fs['readFileSync'](_0xb14875,_0x360d26[_0x33f593(0x1ac)])));const _0x5926ad={};_0x5926ad[_0x33f593(0x1d0)]=_0x5dc9f2,_0x5926ad[_0x33f593(0x1a1)]=_0x3f1104,_0x333d36[_0x33f593(0x177)]=_0x5926ad,fs[_0x33f593(0x178)](_0xb14875,JSON[_0x33f593(0x176)](_0x333d36)),process[_0x33f593(0x1cd)](0x0);}}else logger['error'](_0x360d26[_0x33f593(0x18f)]),await _0x360d26[_0x33f593(0x16a)](sendInstrumentationEvent,_0xb9112e,_0x360d26[_0x33f593(0x17d)],messageTypes[_0x33f593(0x170)],_0x360d26[_0x33f593(0x1b5)],null,_0xb9112e),process['exit'](0x1);}catch(_0x41a559){logger[_0x33f593(0x1b3)](_0x41a559[_0x33f593(0x19d)]),await _0x360d26[_0x33f593(0x16b)](sendInstrumentationEvent,_0xb9112e,_0x360d26[_0x33f593(0x17d)],messageTypes[_0x33f593(0x170)],_0x360d26[_0x33f593(0x1b1)],_0x41a559,_0xb9112e),process[_0x33f593(0x1cd)](0x1);}};function a13_0x1629(){const _0x22b1b3=['OAMXM','wrong-creds','IerAu','Jhhut','LaZEi','stringify','Browserstack','writeFileSync','33596jWcEDi','type','OMozt','BROWSERSTACK_ACCESS_KEY','fVfEP','qgzJy','GET','6wxFqNv','LeYyR','1686605ZmdUhO','options','statusCode','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','NVeul','KeSJZ','qSPwH','pvVLZ','VTcSG','https://','VJQJC','TZLpK','bstack-username','GmDEb','../utils/userInput','SUhpJ','zxmbI','parse','../utils/instrumentationUtils','INFO','request','HmZKa','QpfqO','handler','init','5428040CDIJdB','kFisE','stack','strict','pPTxp','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','password','kRkrZ','help','epilogue','ioLfl','fRFJZ','KFGks','230718diLFoU','UITPU','QwiwV','../config/constants','ABMaE','429svOvgo','desc','AapGw','init-called','ZAcwN','readFileSync','error','bstack-accesskey','xaais','method','debug','bstackAccesskey','../config/logger','promisify','BROWSERSTACK_USERNAME','description','EcbHt','9EPVFpD','argv','requestId','recommendCommands','dAZKD','mHFnx','232395WfxFgd','mkdirSync','EoSlu','133eQdyFX','tMrLo','fshdr','vBjNO','13871650qjrfNh','cdtjZ','exit','vltAx','string','username','usage','MRCQH','../utils/utilityMethods','bstackUsername','env','existsSync','146316OMdEXV','url','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','XxeGO','FKVWC','claWG','UQjfA','11rdzrii','416SozYxm','ERROR'];a13_0x1629=function(){return _0x22b1b3;};return a13_0x1629();}
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a14_0x47aec6=a14_0x4507;function a14_0x4507(_0x1925ff,_0x4d6ae3){const _0x6e2557=a14_0x6e25();return a14_0x4507=function(_0x4507d1,_0x1eac97){_0x4507d1=_0x4507d1-0x9f;let _0x250d32=_0x6e2557[_0x4507d1];return _0x250d32;},a14_0x4507(_0x1925ff,_0x4d6ae3);}function a14_0x6e25(){const _0x2c6654=['strict','handler','2528973wcCcIM','13337091sPkcZr','3380388xdWuVn','desc','20NogxTH','command','List\x20down\x20the\x20Grid\x20resources.','13974gbGNDy','commandDir','qdHKV','help','eanzy','demandCommand','8GDWJpx','root','list_commands','../config/constants','list','12902pmNmvN','4PohbpQ','1245SwpnsV','builder','1103879vGaumg','30618552qzDkgH','137kgFtEg','usage'];a14_0x6e25=function(){return _0x2c6654;};return a14_0x6e25();}(function(_0x408c73,_0x5e1159){const _0x1ef7de=a14_0x4507,_0x28f646=_0x408c73();while(!![]){try{const _0x3cb675=parseInt(_0x1ef7de(0xa7))/0x1*(parseInt(_0x1ef7de(0xa1))/0x2)+-parseInt(_0x1ef7de(0xab))/0x3*(-parseInt(_0x1ef7de(0xa2))/0x4)+parseInt(_0x1ef7de(0xa3))/0x5*(parseInt(_0x1ef7de(0xb2))/0x6)+-parseInt(_0x1ef7de(0xa5))/0x7*(-parseInt(_0x1ef7de(0xb8))/0x8)+parseInt(_0x1ef7de(0xac))/0x9+-parseInt(_0x1ef7de(0xaf))/0xa*(parseInt(_0x1ef7de(0xad))/0xb)+-parseInt(_0x1ef7de(0xa6))/0xc;if(_0x3cb675===_0x5e1159)break;else _0x28f646['push'](_0x28f646['shift']());}catch(_0xcac3c0){_0x28f646['push'](_0x28f646['shift']());}}}(a14_0x6e25,0xbe765));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x47aec6(0x9f));exports[a14_0x47aec6(0xb0)]='list',exports[a14_0x47aec6(0xae)]=a14_0x47aec6(0xb1),exports[a14_0x47aec6(0xa4)]=function(_0x4f3b23){const _0x27c972=a14_0x47aec6,_0x46ac15={};_0x46ac15[_0x27c972(0xb4)]=_0x27c972(0xba),_0x46ac15['eanzy']=_0x27c972(0xb5);const _0x500459=_0x46ac15;return _0x4f3b23[_0x27c972(0xb3)](_0x500459[_0x27c972(0xb4)])[_0x27c972(0xb7)]()[_0x27c972(0xa8)](HELP_HEADER_MESSAGE[_0x27c972(0xa0)][_0x27c972(0xb9)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x27c972(0xa9)]()['help'](_0x500459[_0x27c972(0xb6)]);},exports[a14_0x47aec6(0xaa)]=function(_0x4ee736){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15_0x3820(){const _0x4b5397=['exit','server-error','/packages/cli/get-grid-profiles','9ZhQjfh','error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list','12LSFkhh','argv','lqkov','command','HNZuq','method','Browserstack','GET','usage','7799beptZH','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','region','push','5185256YLjKYv','wLuHU','3686816cUcTQn','hNxve','EJJKH','description','password','INFO','url','BubZo','username','type','bstackAccesskey','../../utils/instrumentationUtils','ERROR','concurrency','unauthorised','allGridProfiles','../../config/constants','log','gridProfile','2890810uxxscC','util','statusCode','builder','339361NRAkLB','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','existsSync','3869356gjxwtR','yZvnm','cloud-provider','grid-profile-name','requestId','sVeMj','bstackUsername','dEKzv','3UDdDBR','request','grid-profiles','body','table','fSiGA','636PmRhFn','boolean','gBtFm','386poBDPY','parse','name','init-not-called','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','auth','pLIge','readFileSync','stringify','qozVW','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','200blPXrg','all-grid-profiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','help','cloudProvider','/packages/cli/get-all-grid-profiles','72306tsbMRS','RnZTE','epilogue'];a15_0x3820=function(){return _0x4b5397;};return a15_0x3820();}const a15_0x21ebea=a15_0x466e;(function(_0x2ed6c0,_0x59a7b1){const _0x6b5592=a15_0x466e,_0x29356b=_0x2ed6c0();while(!![]){try{const _0x38b8bd=-parseInt(_0x6b5592(0x92))/0x1*(parseInt(_0x6b5592(0x6d))/0x2)+-parseInt(_0x6b5592(0xbb))/0x3*(-parseInt(_0x6b5592(0xb3))/0x4)+parseInt(_0x6b5592(0xab))/0x5*(parseInt(_0x6b5592(0x89))/0x6)+parseInt(_0x6b5592(0x98))/0x7+parseInt(_0x6b5592(0x96))/0x8*(parseInt(_0x6b5592(0x85))/0x9)+-parseInt(_0x6b5592(0x78))/0xa*(parseInt(_0x6b5592(0xaf))/0xb)+-parseInt(_0x6b5592(0x6a))/0xc*(parseInt(_0x6b5592(0x7f))/0xd);if(_0x38b8bd===_0x59a7b1)break;else _0x29356b['push'](_0x29356b['shift']());}catch(_0x3d0e62){_0x29356b['push'](_0x29356b['shift']());}}}(a15_0x3820,0xd7357));const fs=require('fs'),util=require(a15_0x21ebea(0xac)),request=require(a15_0x21ebea(0xbc)),{table}=require(a15_0x21ebea(0x68)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x21ebea(0xa8)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x21ebea(0xa3)),promisifiedRequest=util['promisify'](request);function a15_0x466e(_0xa02704,_0x51178c){const _0x382055=a15_0x3820();return a15_0x466e=function(_0x466e01,_0x3f6e7c){_0x466e01=_0x466e01-0x66;let _0x7c58e9=_0x382055[_0x466e01];return _0x7c58e9;},a15_0x466e(_0xa02704,_0x51178c);}exports[a15_0x21ebea(0x8c)]=a15_0x21ebea(0x66),exports['desc']=a15_0x21ebea(0x77),exports[a15_0x21ebea(0xae)]=function(_0x362b06){const _0x479be6=a15_0x21ebea,_0x51926c={};_0x51926c[_0x479be6(0xba)]=_0x479be6(0x93),_0x51926c[_0x479be6(0x73)]=_0x479be6(0x6b),_0x51926c['hNxve']=_0x479be6(0x7c);const _0x95a950=_0x51926c,_0x4eae8f={};_0x4eae8f[_0x479be6(0x9b)]=_0x95a950[_0x479be6(0xba)],_0x4eae8f[_0x479be6(0xa1)]=_0x95a950[_0x479be6(0x73)];const _0x2b4472={};return _0x2b4472[_0x479be6(0x79)]=_0x4eae8f,_0x362b06[_0x479be6(0x91)](HELP_HEADER_MESSAGE[_0x479be6(0x88)][_0x479be6(0xaa)])[_0x479be6(0x81)](HELP_FOOTER_MESSAGE)['options'](_0x2b4472)[_0x479be6(0x7c)](_0x95a950[_0x479be6(0x99)])[_0x479be6(0x8a)];},exports['handler']=async function(_0x25b459){const _0x1dbf64=a15_0x21ebea,_0x260437={'HNZuq':function(_0x4d8ea9){return _0x4d8ea9();},'qozVW':function(_0x4cfb70){return _0x4cfb70();},'rPcYc':_0x1dbf64(0x87),'bOYtr':function(_0x8da363,_0x9508ea,_0x3ad076,_0x1b7900,_0x36d7c4,_0x502e9f,_0x160672){return _0x8da363(_0x9508ea,_0x3ad076,_0x1b7900,_0x36d7c4,_0x502e9f,_0x160672);},'gBtFm':'list-grid-profiles-called','djCki':_0x1dbf64(0x70),'EJJKH':function(_0x444435,_0x165dd7,_0x2a190e,_0xfa2089,_0x1aad5d,_0x345846,_0x2df6c9){return _0x444435(_0x165dd7,_0x2a190e,_0xfa2089,_0x1aad5d,_0x345846,_0x2df6c9);},'WJZzX':_0x1dbf64(0x90),'LnXFZ':function(_0x322c77,_0xe6eeb4){return _0x322c77(_0xe6eeb4);},'wLuHU':function(_0x2aa45a,_0x1bbca4){return _0x2aa45a!==_0x1bbca4;},'BubZo':function(_0x33206a,_0x3b87bc){return _0x33206a===_0x3b87bc;},'yZvnm':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','SaztM':_0x1dbf64(0xb6),'fSiGA':_0x1dbf64(0xb5),'hQbRd':_0x1dbf64(0x94),'mSuXE':_0x1dbf64(0xa5),'sICae':function(_0x4a48a1,_0x29cfcd,_0x4c9ea9,_0x6d73b0,_0x169853,_0x815b28,_0x9a1269){return _0x4a48a1(_0x29cfcd,_0x4c9ea9,_0x6d73b0,_0x169853,_0x815b28,_0x9a1269);},'jJWTz':_0x1dbf64(0xa6),'RnZTE':function(_0x3739a3,_0xf00014,_0xe364d3,_0x51cd84,_0x406ce5,_0x2d57b3,_0x38ebf4){return _0x3739a3(_0xf00014,_0xe364d3,_0x51cd84,_0x406ce5,_0x2d57b3,_0x38ebf4);},'lqkov':_0x1dbf64(0x83),'sVeMj':function(_0x3a6eda,_0x1ec61b,_0x2e1287,_0xf0f5a1,_0x13381e,_0x5b5ff1,_0x109c53){return _0x3a6eda(_0x1ec61b,_0x2e1287,_0xf0f5a1,_0x13381e,_0x5b5ff1,_0x109c53);},'MCePD':'unknown-error'};try{global_registry[_0x1dbf64(0xb7)]=_0x260437[_0x1dbf64(0x8d)](uuidv4);let _0x4cebda=_0x1dbf64(0xb1)+AG_API_URL+_0x1dbf64(0x84);_0x25b459[_0x1dbf64(0xa7)]&&(_0x4cebda=_0x1dbf64(0xb1)+AG_API_URL+_0x1dbf64(0x7e));!fs[_0x1dbf64(0xb2)](_0x260437[_0x1dbf64(0x76)](getCredentialsPath))&&(console[_0x1dbf64(0x86)](_0x260437['rPcYc']),await _0x260437['bOYtr'](sendInstrumentationEvent,_0x25b459,_0x260437['gBtFm'],messageTypes[_0x1dbf64(0xa4)],_0x260437['djCki'],null,_0x25b459),process[_0x1dbf64(0x82)](0x1));_0x260437[_0x1dbf64(0x9a)](sendInstrumentationEvent,_0x25b459,_0x260437[_0x1dbf64(0x6c)],messageTypes[_0x1dbf64(0x9d)],null,null,_0x25b459);const _0x7e75e0=JSON[_0x1dbf64(0x6e)](fs[_0x1dbf64(0x74)](_0x260437[_0x1dbf64(0x8d)](getCredentialsPath))),_0x301242={};_0x301242[_0x1dbf64(0xa0)]=_0x7e75e0[_0x1dbf64(0x8f)]['username'],_0x301242['password']=_0x7e75e0[_0x1dbf64(0x8f)][_0x1dbf64(0x9c)];const _0x3cacf2={};_0x3cacf2[_0x1dbf64(0x9e)]=_0x4cebda,_0x3cacf2[_0x1dbf64(0x8e)]=_0x260437['WJZzX'],_0x3cacf2[_0x1dbf64(0x72)]=_0x301242;const _0x179d27=_0x3cacf2;global_registry[_0x1dbf64(0xb9)]=_0x7e75e0[_0x1dbf64(0x8f)][_0x1dbf64(0xa0)],global_registry[_0x1dbf64(0xa2)]=_0x7e75e0[_0x1dbf64(0x8f)]['password'];const _0x3752cf=await _0x260437['LnXFZ'](promisifiedRequest,_0x179d27);if(_0x260437[_0x1dbf64(0x97)](_0x3752cf,null)&&_0x260437[_0x1dbf64(0x97)](_0x3752cf,undefined)&&_0x260437['BubZo'](_0x3752cf[_0x1dbf64(0xad)],0xc8)){const _0x5ad028=JSON['parse'](_0x3752cf[_0x1dbf64(0x67)]);console['log'](_0x260437[_0x1dbf64(0xb4)]);const _0x22fa41=[];_0x22fa41[_0x1dbf64(0x95)]([_0x260437['SaztM'],_0x260437[_0x1dbf64(0x69)],_0x260437['hQbRd'],_0x260437['mSuXE']]),_0x5ad028['forEach'](_0x3a1817=>{const _0x2aeb15=_0x1dbf64;_0x22fa41[_0x2aeb15(0x95)]([_0x3a1817[_0x2aeb15(0x6f)],_0x3a1817[_0x2aeb15(0x7d)],_0x3a1817[_0x2aeb15(0x94)],_0x3a1817[_0x2aeb15(0xa5)]]);}),console[_0x1dbf64(0xa9)](_0x260437['LnXFZ'](table,_0x22fa41)),process[_0x1dbf64(0x82)](0x0);}_0x260437[_0x1dbf64(0x9f)](_0x3752cf[_0x1dbf64(0xad)],0x191)&&(console['error'](_0x1dbf64(0x71)),await _0x260437['sICae'](sendInstrumentationEvent,_0x25b459,_0x260437['gBtFm'],messageTypes[_0x1dbf64(0xa4)],_0x260437['jJWTz'],null,_0x25b459),process[_0x1dbf64(0x82)](0x1)),console[_0x1dbf64(0x86)](_0x1dbf64(0x7a)+JSON[_0x1dbf64(0x75)](_0x3752cf)),await _0x260437[_0x1dbf64(0x80)](sendInstrumentationEvent,_0x25b459,_0x260437[_0x1dbf64(0x6c)],messageTypes[_0x1dbf64(0xa4)],_0x260437[_0x1dbf64(0x8b)],_0x3752cf,_0x25b459),process['exit'](0x1);}catch(_0x38c8dc){console[_0x1dbf64(0x86)](_0x1dbf64(0xb0)+_0x38c8dc[_0x1dbf64(0x7b)]),await _0x260437[_0x1dbf64(0xb8)](sendInstrumentationEvent,_0x25b459,_0x260437[_0x1dbf64(0x6c)],messageTypes[_0x1dbf64(0xa4)],_0x260437['MCePD'],_0x38c8dc,_0x25b459),process[_0x1dbf64(0x82)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x506fa1=a16_0x44ee;(function(_0x28762c,_0x433e9a){const _0x2d273f=a16_0x44ee,_0x18a46a=_0x28762c();while(!![]){try{const _0x19230d=-parseInt(_0x2d273f(0x222))/0x1+parseInt(_0x2d273f(0x213))/0x2+parseInt(_0x2d273f(0x22d))/0x3+parseInt(_0x2d273f(0x1f1))/0x4+parseInt(_0x2d273f(0x1f2))/0x5*(-parseInt(_0x2d273f(0x200))/0x6)+-parseInt(_0x2d273f(0x212))/0x7*(-parseInt(_0x2d273f(0x1f7))/0x8)+-parseInt(_0x2d273f(0x230))/0x9*(-parseInt(_0x2d273f(0x1fa))/0xa);if(_0x19230d===_0x433e9a)break;else _0x18a46a['push'](_0x18a46a['shift']());}catch(_0x44a685){_0x18a46a['push'](_0x18a46a['shift']());}}}(a16_0xb3d7,0x5cc96));function a16_0x44ee(_0x46d42d,_0x522dd5){const _0xb3d7b2=a16_0xb3d7();return a16_0x44ee=function(_0x44ee6c,_0x3ed00c){_0x44ee6c=_0x44ee6c-0x1e9;let _0x281c32=_0xb3d7b2[_0x44ee6c];return _0x281c32;},a16_0x44ee(_0x46d42d,_0x522dd5);}const fs=require('fs'),util=require(a16_0x506fa1(0x1f6)),request=require(a16_0x506fa1(0x238)),{table}=require(a16_0x506fa1(0x20a)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x506fa1(0x1e9)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a16_0x506fa1(0x215)](request);exports[a16_0x506fa1(0x1ff)]='grids',exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x2c09a6){const _0x5f0c2a=a16_0x506fa1,_0x45d8f4={};_0x45d8f4[_0x5f0c2a(0x236)]=_0x5f0c2a(0x1f5),_0x45d8f4[_0x5f0c2a(0x229)]=_0x5f0c2a(0x211),_0x45d8f4['ngQYO']=_0x5f0c2a(0x1ec);const _0x427bc1=_0x45d8f4,_0x1d1909={};_0x1d1909[_0x5f0c2a(0x1f9)]=_0x427bc1['qTlKz'],_0x1d1909[_0x5f0c2a(0x21a)]=_0x427bc1[_0x5f0c2a(0x229)];const _0xfddcb8={};return _0xfddcb8[_0x5f0c2a(0x232)]=_0x1d1909,_0x2c09a6[_0x5f0c2a(0x1ea)](HELP_HEADER_MESSAGE[_0x5f0c2a(0x20c)][_0x5f0c2a(0x228)])[_0x5f0c2a(0x1ed)](HELP_FOOTER_MESSAGE)['options'](_0xfddcb8)[_0x5f0c2a(0x1ec)](_0x427bc1['ngQYO'])[_0x5f0c2a(0x1f8)];},exports[a16_0x506fa1(0x20f)]=async function(_0x42975c){const _0x302286=a16_0x506fa1,_0x551635={'qbjUB':function(_0x508f13){return _0x508f13();},'BqBzR':function(_0x43a5e9){return _0x43a5e9();},'fhyjk':_0x302286(0x20d),'UBFuK':function(_0x1a0fd2,_0x279f7e,_0x482df5,_0x5ca13d,_0x5c5616,_0xb06843,_0x43d7b2){return _0x1a0fd2(_0x279f7e,_0x482df5,_0x5ca13d,_0x5c5616,_0xb06843,_0x43d7b2);},'FfAlL':_0x302286(0x224),'wCNdD':'init-not-called','npMrE':function(_0x1bb8b8){return _0x1bb8b8();},'GBJoU':_0x302286(0x226),'AcQIi':function(_0x48b4f5,_0x3a5fa0,_0x25bbac,_0x4ef260,_0x36b499,_0x2c2b67,_0x544de6){return _0x48b4f5(_0x3a5fa0,_0x25bbac,_0x4ef260,_0x36b499,_0x2c2b67,_0x544de6);},'jRcOm':function(_0x14aca2,_0x1b0db8){return _0x14aca2(_0x1b0db8);},'phUux':function(_0x1fae6b,_0x11d9dd){return _0x1fae6b!==_0x11d9dd;},'jklfQ':function(_0x396021,_0x5c73cc){return _0x396021===_0x5c73cc;},'nFRsk':_0x302286(0x233),'IuaKq':_0x302286(0x201),'gKcab':'grid-name','rwNyb':_0x302286(0x1fd),'Knbga':'running','dBwwb':_0x302286(0x23c),'MmvRK':'cluster-name','zNzvD':function(_0x74f7a,_0x5299fd){return _0x74f7a(_0x5299fd);},'NcfDh':function(_0x3dd8d1,_0x120bfd){return _0x3dd8d1===_0x120bfd;},'JcTVY':'unauthorised','NnCXV':'server-error','ZAgfA':_0x302286(0x214)};try{global_registry[_0x302286(0x210)]=_0x551635[_0x302286(0x221)](uuidv4);!fs[_0x302286(0x22c)](_0x551635[_0x302286(0x1f0)](getCredentialsPath))&&(console[_0x302286(0x208)](_0x551635[_0x302286(0x227)]),await _0x551635['UBFuK'](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes['ERROR'],_0x551635[_0x302286(0x21d)],null,_0x42975c),process[_0x302286(0x20e)](0x1));const _0x3cfac3=JSON[_0x302286(0x237)](fs[_0x302286(0x209)](_0x551635['npMrE'](getCredentialsPath)));let _0x3dafc7=_0x302286(0x216)+AG_API_URL+_0x302286(0x22f);_0x42975c[_0x302286(0x1fc)]&&(_0x3dafc7=_0x302286(0x216)+AG_API_URL+'/packages/cli/get-all-grids');const _0x53ea39={};_0x53ea39['username']=_0x3cfac3[_0x302286(0x203)][_0x302286(0x220)],_0x53ea39['password']=_0x3cfac3[_0x302286(0x203)][_0x302286(0x22a)];const _0x59db5e={};_0x59db5e[_0x302286(0x22b)]=_0x3dafc7,_0x59db5e[_0x302286(0x1ef)]=_0x551635[_0x302286(0x21f)],_0x59db5e['auth']=_0x53ea39;const _0x460a0d=_0x59db5e;global_registry['bstackUsername']=_0x3cfac3[_0x302286(0x203)]['username'],global_registry[_0x302286(0x23a)]=_0x3cfac3[_0x302286(0x203)][_0x302286(0x22a)],_0x551635[_0x302286(0x239)](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes['INFO'],null,null,_0x42975c);const _0xc13367=await _0x551635[_0x302286(0x218)](promisifiedRequest,_0x460a0d);if(_0x551635[_0x302286(0x231)](_0xc13367,null)&&_0x551635[_0x302286(0x231)](_0xc13367,undefined)&&_0x551635[_0x302286(0x223)](_0xc13367[_0x302286(0x20b)],0xc8)){const _0x1672ba=JSON[_0x302286(0x237)](_0xc13367[_0x302286(0x205)]);console[_0x302286(0x1ee)](_0x551635[_0x302286(0x235)]);const _0x3c7a5e=[];_0x3c7a5e[_0x302286(0x204)]([_0x551635[_0x302286(0x202)],_0x551635[_0x302286(0x207)],_0x551635[_0x302286(0x219)],_0x551635['Knbga'],_0x551635[_0x302286(0x1fb)],_0x551635['MmvRK']]),_0x1672ba['forEach'](_0x2a61a3=>{const _0x1e8a01=_0x302286;_0x3c7a5e[_0x1e8a01(0x204)]([_0x2a61a3['id'],_0x2a61a3[_0x1e8a01(0x1fe)],_0x2a61a3[_0x1e8a01(0x1fd)],_0x2a61a3[_0x1e8a01(0x206)],_0x2a61a3[_0x1e8a01(0x23c)],_0x2a61a3['clusterName']]);}),console[_0x302286(0x1ee)](_0x551635[_0x302286(0x21c)](table,_0x3c7a5e)),process[_0x302286(0x20e)](0x0);}_0x551635['NcfDh'](_0xc13367[_0x302286(0x20b)],0x191)&&(console[_0x302286(0x208)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x551635[_0x302286(0x1eb)](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes[_0x302286(0x225)],_0x551635[_0x302286(0x1f4)],null,_0x42975c),process[_0x302286(0x20e)](0x1)),console[_0x302286(0x208)](_0x302286(0x23b)+JSON[_0x302286(0x217)](_0xc13367)),await _0x551635[_0x302286(0x1eb)](sendInstrumentationEvent,_0x42975c,_0x551635['FfAlL'],messageTypes[_0x302286(0x225)],_0x551635[_0x302286(0x234)],_0xc13367,_0x42975c),process[_0x302286(0x20e)](0x1);}catch(_0xf22c00){console['error'](_0x302286(0x22e)+_0xf22c00[_0x302286(0x21b)]),await _0x551635['AcQIi'](sendInstrumentationEvent,_0x42975c,_0x551635[_0x302286(0x1f3)],messageTypes['ERROR'],_0x551635[_0x302286(0x21e)],_0xf22c00,_0x42975c),process[_0x302286(0x20e)](0x1);}};function a16_0xb3d7(){const _0x4b59b2=['qbjUB','553919qOjGGC','jklfQ','list-grids-called','ERROR','GET','fhyjk','grid','FDMxw','password','url','existsSync','2122245qWpSoF','Failed\x20to\x20list\x20resources!\x20Error:\x20','/packages/cli/get-grids','464661wiGhIh','phUux','all-grids','\x0aFound\x20the\x20following\x20grids:\x0a','NnCXV','nFRsk','qTlKz','parse','request','AcQIi','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','queued','../../config/constants','usage','UBFuK','help','epilogue','log','method','BqBzR','1121540ZHksbE','4805PUpBcF','FfAlL','JcTVY','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','util','38400FEOeBm','argv','description','20InaPIY','dBwwb','allGrids','status','name','command','1302uZNXSa','grid-id','IuaKq','Browserstack','push','body','running','gKcab','error','readFileSync','table','statusCode','list','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','handler','requestId','boolean','42wJsaEv','45304gfLoEk','unknown-error','promisify','https://','stringify','jRcOm','rwNyb','type','stack','zNzvD','wCNdD','ZAgfA','GBJoU','username'];a16_0xb3d7=function(){return _0x4b59b2;};return a16_0xb3d7();}
|