browserstack-node-sdk 1.32.12 → 1.32.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.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/templates/gcpresources/gkecluster.json +0 -3
- 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/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.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/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -0
- 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/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.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/globals.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/performance-tester.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/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x40f637=a9_0x2add;(function(_0x331d5e,_0x5f2d5f){const _0x448bd6=a9_0x2add,_0x40c67b=_0x331d5e();while(!![]){try{const _0x4babec=-parseInt(_0x448bd6(0x27e))/0x1+parseInt(_0x448bd6(0x2bd))/0x2*(-parseInt(_0x448bd6(0x266))/0x3)+parseInt(_0x448bd6(0x27b))/0x4*(parseInt(_0x448bd6(0x246))/0x5)+-parseInt(_0x448bd6(0x29c))/0x6+-parseInt(_0x448bd6(0x20d))/0x7*(parseInt(_0x448bd6(0x1fb))/0x8)+-parseInt(_0x448bd6(0x2bf))/0x9+-parseInt(_0x448bd6(0x2f6))/0xa*(-parseInt(_0x448bd6(0x27c))/0xb);if(_0x4babec===_0x5f2d5f)break;else _0x40c67b['push'](_0x40c67b['shift']());}catch(_0x52139f){_0x40c67b['push'](_0x40c67b['shift']());}}}(a9_0x2943,0x209bd));function a9_0x2add(_0x18a5fc,_0x47b67d){const _0x294374=a9_0x2943();return a9_0x2add=function(_0x2add79,_0x62dc10){_0x2add79=_0x2add79-0x1c2;let _0x373c9a=_0x294374[_0x2add79];return _0x373c9a;},a9_0x2add(_0x18a5fc,_0x47b67d);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x40f637(0x2da)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x40f637(0x261)),{logger}=require(a9_0x40f637(0x268)),{inputCloudProviderKeys}=require(a9_0x40f637(0x210)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x40f637(0x2a5)),{getCloudProviderObject}=require(a9_0x40f637(0x231)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x40f637(0x263)),{createK8sClient}=require(a9_0x40f637(0x264)),{sendInstrumentationEvent}=require(a9_0x40f637(0x2ee));exports[a9_0x40f637(0x2e8)]=a9_0x40f637(0x213),exports['desc']=a9_0x40f637(0x212),exports[a9_0x40f637(0x1db)]=function(_0x59b275){const _0x38b327=a9_0x40f637,_0x2ce871={};_0x2ce871[_0x38b327(0x243)]=_0x38b327(0x1c5),_0x2ce871[_0x38b327(0x1c9)]=_0x38b327(0x299),_0x2ce871['YRORk']=_0x38b327(0x1d4),_0x2ce871['yCfGz']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2ce871[_0x38b327(0x21c)]=_0x38b327(0x238),_0x2ce871['KACty']=_0x38b327(0x287),_0x2ce871[_0x38b327(0x2d2)]=_0x38b327(0x2ab),_0x2ce871[_0x38b327(0x2ad)]='help';const _0x2a7dff=_0x2ce871,_0xd605f9={};_0xd605f9['description']=_0x2a7dff[_0x38b327(0x243)],_0xd605f9[_0x38b327(0x22e)]=_0x2a7dff['dqmhe'];const _0x3481d5={};_0x3481d5[_0x38b327(0x2f1)]=_0x2a7dff['YRORk'],_0x3481d5[_0x38b327(0x22e)]=_0x2a7dff[_0x38b327(0x1c9)];const _0x5b0f74={};_0x5b0f74[_0x38b327(0x2f1)]=_0x2a7dff[_0x38b327(0x1f6)],_0x5b0f74[_0x38b327(0x22e)]=_0x2a7dff['dqmhe'];const _0x3524a0={};_0x3524a0[_0x38b327(0x2f1)]=_0x2a7dff[_0x38b327(0x21c)],_0x3524a0[_0x38b327(0x22e)]=_0x2a7dff['dqmhe'];const _0x18e88d={};_0x18e88d[_0x38b327(0x2f1)]=_0x2a7dff['KACty'],_0x18e88d[_0x38b327(0x22e)]=_0x2a7dff[_0x38b327(0x1c9)];const _0x3265fa={};_0x3265fa[_0x38b327(0x2f1)]=_0x2a7dff[_0x38b327(0x2d2)],_0x3265fa[_0x38b327(0x22e)]=_0x2a7dff[_0x38b327(0x1c9)];const _0x342c62={};return _0x342c62['grid-name']=_0xd605f9,_0x342c62['grid-profile']=_0x3481d5,_0x342c62['cluster-name']=_0x5b0f74,_0x342c62[_0x38b327(0x211)]=_0x3524a0,_0x342c62['region']=_0x18e88d,_0x342c62[_0x38b327(0x1cf)]=_0x3265fa,_0x59b275['usage'](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x38b327(0x222)](_0x342c62)[_0x38b327(0x2e4)](_0x2a7dff[_0x38b327(0x2ad)])[_0x38b327(0x1eb)];},exports['handler']=async function(_0x2c5d5f){const _0x187d1f=a9_0x40f637,_0x25611c={'CQJze':_0x187d1f(0x2b5),'bAxKn':_0x187d1f(0x1fa),'pVDhG':_0x187d1f(0x1c5),'LReeH':_0x187d1f(0x299),'iYnZd':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','nUUZy':_0x187d1f(0x255),'AgOhd':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','xFleY':_0x187d1f(0x287),'owQcb':_0x187d1f(0x2ab),'KEhsZ':_0x187d1f(0x2e4),'woTVb':'4|2|0|8|6|3|1|7|5','vLqnQ':_0x187d1f(0x1df),'zlEVX':_0x187d1f(0x250),'sGWxV':function(_0x509cd2){return _0x509cd2();},'cNTLR':function(_0x179b77,_0xd613dc){return _0x179b77===_0xd613dc;},'nCYCb':_0x187d1f(0x2e2),'cvTKY':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sMyzB':function(_0x8f42fc,_0x5e3b61,_0x578b77,_0x18a071,_0x59006c,_0x412007,_0x45b723){return _0x8f42fc(_0x5e3b61,_0x578b77,_0x18a071,_0x59006c,_0x412007,_0x45b723);},'pxvpf':_0x187d1f(0x279),'UXuBZ':_0x187d1f(0x289),'NKEvF':'<UsernamePlaceholder>','BVWPK':_0x187d1f(0x1d7),'XgRLa':'Adding\x20Websocket\x20listeners','GJhZJ':function(_0x465357,_0x145f5a){return _0x465357===_0x145f5a;},'AIGaM':_0x187d1f(0x2d7),'qfsOq':_0x187d1f(0x2cf),'bYimr':function(_0x1ddee2,_0x3d0ed2){return _0x1ddee2!==_0x3d0ed2;},'KoLwc':_0x187d1f(0x277),'HcuzO':_0x187d1f(0x2c4),'wFccr':_0x187d1f(0x272),'VBWBz':function(_0x810246,_0x493e6b,_0x2e39fa,_0x166d39,_0x51b748,_0x256347,_0x2bf6d8,_0x34547e){return _0x810246(_0x493e6b,_0x2e39fa,_0x166d39,_0x51b748,_0x256347,_0x2bf6d8,_0x34547e);},'UPIRz':_0x187d1f(0x1ee),'wcvmc':_0x187d1f(0x230),'sIihm':_0x187d1f(0x258),'mqKgo':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FIfac':_0x187d1f(0x2a1),'gNkoL':_0x187d1f(0x25c),'TnYjk':function(_0xb4a254,_0x208c1d){return _0xb4a254!==_0x208c1d;},'OyKUD':_0x187d1f(0x2d5),'fRXvC':function(_0xcaa806,_0x2c5a61){return _0xcaa806!==_0x2c5a61;},'eZQgV':_0x187d1f(0x1d0),'mUGpK':'LaZXe','XXNxD':function(_0x2a8224,_0x398c9d){return _0x2a8224!==_0x398c9d;},'kuUrv':_0x187d1f(0x241),'aUrkR':_0x187d1f(0x2dc),'Mpbwx':_0x187d1f(0x1dc),'jJrBl':function(_0xd406dd,_0x191e86,_0x7c0ab2){return _0xd406dd(_0x191e86,_0x7c0ab2);},'IrxpI':function(_0x16fb4c,_0x3ce0a8){return _0x16fb4c===_0x3ce0a8;},'oawRm':_0x187d1f(0x2bb),'fpqEG':_0x187d1f(0x2f8),'vJyVf':_0x187d1f(0x23f),'DBJwt':function(_0x349e0a,_0x39e916){return _0x349e0a===_0x39e916;},'cNhbi':function(_0x30e73e,_0x153601){return _0x30e73e===_0x153601;},'jvYwX':_0x187d1f(0x2b6),'EFdGS':_0x187d1f(0x260),'QgtUe':_0x187d1f(0x2a6),'gVlTw':function(_0x2316e8,_0x3a6bb3,_0x110505,_0x4be252,_0x5b0f4d,_0x1fafbd,_0x25bdc7,_0x20408f){return _0x2316e8(_0x3a6bb3,_0x110505,_0x4be252,_0x5b0f4d,_0x1fafbd,_0x25bdc7,_0x20408f);},'QOcQr':_0x187d1f(0x21d),'hCJAF':function(_0x158729,_0x2324f2){return _0x158729===_0x2324f2;},'yqktO':_0x187d1f(0x24c),'fRmwD':_0x187d1f(0x23b),'oAJai':function(_0x2778df,_0x23ef1a,_0x3483c8,_0x2f565b,_0x261b51,_0x4097c2,_0x45272f,_0x1ddaa5){return _0x2778df(_0x23ef1a,_0x3483c8,_0x2f565b,_0x261b51,_0x4097c2,_0x45272f,_0x1ddaa5);},'WvRCL':_0x187d1f(0x2e7),'GoBvG':_0x187d1f(0x29e),'qCCaG':_0x187d1f(0x22f),'rLBgP':_0x187d1f(0x1c8),'IqAOv':_0x187d1f(0x2d1),'dLBCv':_0x187d1f(0x2fa),'tWmJl':_0x187d1f(0x229),'wcMae':function(_0x3750eb,_0x396902){return _0x3750eb===_0x396902;},'ZHkpb':'EaIwP','BSDUI':_0x187d1f(0x2de),'SxChD':function(_0x467944,_0x36a7ce){return _0x467944===_0x36a7ce;},'OIrwF':'eEhgu','SNJKN':_0x187d1f(0x1ef),'dbjvE':_0x187d1f(0x274),'pMjWY':'create-grid-checks-invalid-profile','OPnmo':'DWshH','euUuf':function(_0x3ccd00,_0x5df444,_0x3664ae,_0x85459c,_0x21da5b,_0x401e85,_0x416a21,_0x53d0b7,_0x593d7a,_0x26a0db,_0x2cad55,_0x136123){return _0x3ccd00(_0x5df444,_0x3664ae,_0x85459c,_0x21da5b,_0x401e85,_0x416a21,_0x53d0b7,_0x593d7a,_0x26a0db,_0x2cad55,_0x136123);},'Cicyi':_0x187d1f(0x2f0),'gQpSm':'0|2|8|6|7|3|4|5|1','MndFh':function(_0x446ba7,_0x5de2b5){return _0x446ba7===_0x5de2b5;},'HnOwG':_0x187d1f(0x29f),'pQeyx':function(_0x472124,_0x3832d3,_0x343d3d,_0x272c3e){return _0x472124(_0x3832d3,_0x343d3d,_0x272c3e);},'UxOVg':function(_0x5d2706){return _0x5d2706();},'AkIYD':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','sjaaL':_0x187d1f(0x218),'YpkfW':_0x187d1f(0x2d4),'OAfCw':function(_0xc7bb7c,_0x375eaa){return _0xc7bb7c!=_0x375eaa;},'XTTHw':function(_0x313b89,_0x32e5f6){return _0x313b89!==_0x32e5f6;},'EqhPn':function(_0x205af0,_0xaaad0d){return _0x205af0!=_0xaaad0d;},'KrKEQ':function(_0x22457a,_0x22c9e9){return _0x22457a!==_0x22c9e9;},'ATbyo':function(_0x45c427,_0x16a83c){return _0x45c427>_0x16a83c;},'oJvcW':function(_0x2b1f9b,_0x5e6ce0){return _0x2b1f9b===_0x5e6ce0;},'iciRz':_0x187d1f(0x26a),'pMtwE':_0x187d1f(0x2cb),'NluXx':function(_0x155f99,_0x38eb6b){return _0x155f99===_0x38eb6b;},'szMjn':_0x187d1f(0x20c),'JMxzW':function(_0x1b0fa1,_0x46cc9f,_0x1f0f69,_0x225815,_0x2d4dca,_0x464ab9,_0x11ba6d,_0x1a2b30){return _0x1b0fa1(_0x46cc9f,_0x1f0f69,_0x225815,_0x2d4dca,_0x464ab9,_0x11ba6d,_0x1a2b30);},'STSCn':_0x187d1f(0x2ef),'dlAkw':function(_0x41a958,_0x4947df){return _0x41a958===_0x4947df;},'hKrmQ':function(_0x294b9c,_0x30166,_0x5247d7,_0x32f9b2,_0x34d156,_0x188d51,_0x4b3d72,_0x1867cc){return _0x294b9c(_0x30166,_0x5247d7,_0x32f9b2,_0x34d156,_0x188d51,_0x4b3d72,_0x1867cc);},'vvrRC':_0x187d1f(0x224),'JfIob':'1|4|2|0|3','Sjkyr':_0x187d1f(0x24f),'BXEYE':'Cluster\x20created\x20successfully','aAjfW':function(_0x25ec88,_0x12f3e5){return _0x25ec88(_0x12f3e5);},'KJDOa':function(_0x8ad166,_0x1db9f3){return _0x8ad166===_0x1db9f3;},'SNAIs':function(_0x55048e,_0x3af589){return _0x55048e==_0x3af589;},'xCiUK':'Creating\x20namespace','zbIxM':function(_0x41842a,_0x4db899){return _0x41842a!==_0x4db899;},'pPvsG':_0x187d1f(0x1f3),'bULmU':_0x187d1f(0x26c),'cyywm':_0x187d1f(0x2ae),'tRluF':_0x187d1f(0x249),'FkpHr':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','SyDlR':'Spawning\x20Grid\x20on\x20the\x20Cluster','qsYZm':function(_0x2cc25a,_0xb26414){return _0x2cc25a===_0xb26414;},'zwadi':function(_0x5c15ab,_0x160418,_0x18430a,_0x2a0f4f,_0x2a49d7,_0x151eef,_0x301f7c,_0x1efa5b,_0x258db6,_0x419705,_0x389f9c){return _0x5c15ab(_0x160418,_0x18430a,_0x2a0f4f,_0x2a49d7,_0x151eef,_0x301f7c,_0x1efa5b,_0x258db6,_0x419705,_0x389f9c);},'KQdFO':_0x187d1f(0x270),'aeusq':_0x187d1f(0x204),'Upwwf':function(_0x69561c,_0x134577,_0x4bfe9c,_0xc61e8d,_0x3fd480){return _0x69561c(_0x134577,_0x4bfe9c,_0xc61e8d,_0x3fd480);},'qwcJI':'private-ingress-nginx-controller','JYFgf':_0x187d1f(0x21b),'mazVV':_0x187d1f(0x240),'viRSf':function(_0x598b07,_0x1e3b72,_0x3539dc){return _0x598b07(_0x1e3b72,_0x3539dc);},'PjQHj':function(_0x4bd583,_0x4f7a87){return _0x4bd583==_0x4f7a87;},'YAEEW':function(_0x57f795,_0x2c6078){return _0x57f795==_0x2c6078;},'xtKJG':_0x187d1f(0x2cd),'nmuiC':_0x187d1f(0x2a3),'OfJPb':function(_0x36c251,_0x3c2132){return _0x36c251===_0x3c2132;},'nLtbq':_0x187d1f(0x2b8),'JINjg':'get-grid-url-auth-failed','ElhIe':_0x187d1f(0x271),'nSklU':function(_0x5cdf05,_0xe22d48,_0x10eeec,_0x3b57d3,_0xcfefc2,_0x31a1b6){return _0x5cdf05(_0xe22d48,_0x10eeec,_0x3b57d3,_0xcfefc2,_0x31a1b6);},'purwP':_0x187d1f(0x1c3)};let _0x29823b=![],_0xa6fb63,_0x4767ca,_0x2a58c5,_0x20fa12,_0x4d5748,_0x28cdcb,_0x10aa12,_0x45d0dc,_0x3cb40b,_0x436839,_0x43e3da,_0xa4a1da,_0x263c89=0x1,_0x1885ff=0xe;try{global_registry[_0x187d1f(0x1f7)]=_0x25611c[_0x187d1f(0x1ca)](uuidv4),global_registry[_0x187d1f(0x1cb)]=![];!fs[_0x187d1f(0x227)](_0x25611c[_0x187d1f(0x1ca)](getCredentialsPath))&&(_0x25611c[_0x187d1f(0x291)](_0x25611c[_0x187d1f(0x28c)],_0x25611c[_0x187d1f(0x28c)])?(console['error'](_0x25611c['cvTKY']),await _0x25611c[_0x187d1f(0x2b1)](sendInstrumentationEvent,_0x2c5d5f,_0x25611c['pxvpf'],messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x209)],null,_0x2c5d5f),process[_0x187d1f(0x221)](0x1)):_0x51f905=_0x16ab63['gridName']);await _0x25611c['sMyzB'](sendInstrumentationEvent,_0x2c5d5f,_0x25611c[_0x187d1f(0x2f9)],messageTypes[_0x187d1f(0x1f5)],null,null,_0x2c5d5f);const _0x44a08a=JSON[_0x187d1f(0x1e9)](fs[_0x187d1f(0x2d0)](_0x25611c[_0x187d1f(0x1ca)](getCredentialsPath)));global_registry[_0x187d1f(0x2fc)]=_0x44a08a[_0x187d1f(0x26c)][_0x187d1f(0x23a)],global_registry[_0x187d1f(0x297)]=_0x44a08a[_0x187d1f(0x26c)][_0x187d1f(0x2f7)];const _0x3e94fc=WS_ENDPOINT[_0x187d1f(0x22b)](_0x25611c[_0x187d1f(0x26d)],_0x44a08a[_0x187d1f(0x26c)][_0x187d1f(0x23a)])['replace'](_0x25611c[_0x187d1f(0x28a)],_0x44a08a['Browserstack'][_0x187d1f(0x2f7)]),_0x47e674={};_0x47e674[_0x187d1f(0x239)]=ws,_0x47e674['connectionTimeout']=0x36ee80,_0x436839=new ReconnectingWebSocket(_0x3e94fc,[],_0x47e674),logger[_0x187d1f(0x24e)](_0x25611c[_0x187d1f(0x2c7)]),webSocketUtils[_0x187d1f(0x1dd)](_0x436839,_0x2c5d5f[_0x187d1f(0x256)],_0x2c5d5f[_0x187d1f(0x2f7)]);let _0x247a2a=DEFAULT_GRID_NAME;(_0x2c5d5f[_0x187d1f(0x1cd)]||_0x2c5d5f['cloudProvider']||_0x2c5d5f[_0x187d1f(0x254)])&&(_0x25611c[_0x187d1f(0x1e7)](_0x25611c[_0x187d1f(0x219)],_0x25611c['qfsOq'])?_0x51f58d=_0x25611c['CQJze']:(!(_0x2c5d5f['clusterName']&&_0x2c5d5f[_0x187d1f(0x1d6)]&&_0x2c5d5f[_0x187d1f(0x254)])&&(_0x25611c[_0x187d1f(0x29a)](_0x25611c[_0x187d1f(0x251)],_0x25611c['HcuzO'])?(_0xa6fb63=_0x25611c[_0x187d1f(0x2d9)],await _0x25611c[_0x187d1f(0x23e)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes['ERROR'],_0x25611c['pxvpf'],_0x25611c[_0x187d1f(0x2f3)],_0x25611c[_0x187d1f(0x2b7)]),logger['error'](_0xa6fb63),process[_0x187d1f(0x221)](0x1)):_0xcf0dcc['error'](_0x187d1f(0x2c3)+_0x4e768b+'\x20\x0a'+_0x467161[_0x187d1f(0x1de)](_0x23b315['stack']))),![AWS,AZURE,GCP]['includes'](_0x2c5d5f[_0x187d1f(0x1d6)][_0x187d1f(0x2e9)]())&&(_0x25611c[_0x187d1f(0x1e7)](_0x25611c[_0x187d1f(0x275)],_0x25611c[_0x187d1f(0x200)])?_0x4f832a=_0x2951a4[_0x1f8abb[_0x187d1f(0x25f)]]:(_0xa6fb63=_0x25611c['mqKgo'],await _0x25611c[_0x187d1f(0x23e)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c[_0x187d1f(0x259)],_0x25611c[_0x187d1f(0x2b7)]),logger['error'](_0xa6fb63),process[_0x187d1f(0x221)](0x1))),_0x2c5d5f[_0x187d1f(0x25b)]&&_0x25611c[_0x187d1f(0x291)](_0x2c5d5f[_0x187d1f(0x25b)]['toLowerCase'](),_0x25611c['gNkoL'])&&(_0x25611c[_0x187d1f(0x285)](_0x25611c[_0x187d1f(0x220)],_0x25611c[_0x187d1f(0x220)])?_0x334133['isPrivateGrid']=!![]:global_registry[_0x187d1f(0x1cb)]=!![]),_0x29823b=!![],_0x2a58c5=_0x2c5d5f['clusterName'],_0x4767ca=_0x2c5d5f[_0x187d1f(0x1d6)][_0x187d1f(0x2e9)](),_0x20fa12=_0x2c5d5f[_0x187d1f(0x254)]));_0x2c5d5f['gridName']&&(_0x25611c['fRXvC'](_0x25611c[_0x187d1f(0x203)],_0x25611c['mUGpK'])?_0x247a2a=_0x2c5d5f[_0x187d1f(0x253)]:_0x284715[_0x187d1f(0x26f)](_0x187d1f(0x283)+_0x466d36[_0x187d1f(0x1de)](_0x5026e7)+'\x20'));if(_0x2c5d5f[_0x187d1f(0x25f)]){if(_0x25611c[_0x187d1f(0x237)](_0x25611c[_0x187d1f(0x236)],_0x25611c[_0x187d1f(0x1e2)]))global_registry['gridProfile']=_0x2c5d5f[_0x187d1f(0x25f)];else{const _0x1ac3f1={};_0x1ac3f1[_0x187d1f(0x22e)]=_0x2dc86c[_0x187d1f(0x1e4)],_0x1ac3f1[_0x187d1f(0x206)]=_0x7b8a5b,_0x3b23eb[_0x187d1f(0x215)](_0x5610a4,_0x1ac3f1,_0x25611c['bAxKn'],!![]);}}global_registry[_0x187d1f(0x253)]=_0x247a2a;const _0x34f94c={'method':_0x25611c[_0x187d1f(0x225)],'headers':_0x25611c['jJrBl'](getAuthHeader,_0x44a08a['Browserstack'][_0x187d1f(0x23a)],_0x44a08a['Browserstack'][_0x187d1f(0x2f7)]),'throwHttpErrors':![]},_0x441560=_0x187d1f(0x1da)+AG_API_URL+_0x187d1f(0x2a9),_0x30ec9e={};_0x30ec9e['gridName']=_0x247a2a;const _0x224636={'searchParams':_0x30ec9e,'throwHttpErrors':![],..._0x34f94c},_0x329fea=_0x224636,_0x59cda4=await _0x25611c[_0x187d1f(0x1f8)](got,_0x441560,_0x329fea);(_0x25611c['IrxpI'](_0x59cda4,null)||_0x25611c[_0x187d1f(0x291)](_0x59cda4,undefined))&&(_0x25611c[_0x187d1f(0x1e8)](_0x25611c[_0x187d1f(0x298)],_0x25611c[_0x187d1f(0x298)])?_0x241838['cloudProvider']={}:(_0xa6fb63=_0x25611c[_0x187d1f(0x293)],await _0x25611c[_0x187d1f(0x23e)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c['pxvpf'],_0x25611c[_0x187d1f(0x2b4)],_0x25611c[_0x187d1f(0x2b7)]),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1)));_0x25611c[_0x187d1f(0x228)](_0x59cda4['statusCode'],0x191)&&(_0x25611c[_0x187d1f(0x2e0)](_0x25611c['jvYwX'],_0x25611c[_0x187d1f(0x1fc)])?_0x440ada['info'](_0x187d1f(0x1c6)+_0x48f097+'\x20'):(_0xa6fb63=_0x25611c[_0x187d1f(0x262)],await _0x25611c[_0x187d1f(0x2cc)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c[_0x187d1f(0x2c8)],_0x25611c[_0x187d1f(0x2b7)]),logger['error'](_0xa6fb63),process[_0x187d1f(0x221)](0x1)));if(_0x25611c[_0x187d1f(0x29a)](_0x59cda4['statusCode'],0xc8)){if(_0x25611c[_0x187d1f(0x2b0)](_0x25611c[_0x187d1f(0x1fd)],_0x25611c[_0x187d1f(0x1e3)])){const _0xb4fa3c={};_0xb4fa3c[_0x187d1f(0x2f1)]=_0x25611c[_0x187d1f(0x2db)],_0xb4fa3c[_0x187d1f(0x22e)]=_0x25611c[_0x187d1f(0x25a)];const _0x29d49f={};_0x29d49f[_0x187d1f(0x2f1)]=_0x25611c[_0x187d1f(0x1ff)],_0x29d49f[_0x187d1f(0x22e)]=_0x25611c[_0x187d1f(0x25a)];const _0x270c75={};_0x270c75[_0x187d1f(0x2f1)]=_0x25611c[_0x187d1f(0x1e5)],_0x270c75[_0x187d1f(0x22e)]=_0x25611c[_0x187d1f(0x25a)];const _0x1ba000={};_0x1ba000[_0x187d1f(0x2f1)]=_0x25611c['AgOhd'],_0x1ba000['type']=_0x25611c[_0x187d1f(0x25a)];const _0x1b7343={};_0x1b7343[_0x187d1f(0x2f1)]=_0x25611c['xFleY'],_0x1b7343['type']=_0x25611c[_0x187d1f(0x25a)];const _0x10f26b={};_0x10f26b['description']=_0x25611c[_0x187d1f(0x267)],_0x10f26b[_0x187d1f(0x22e)]=_0x25611c['LReeH'];const _0x3b9e02={};return _0x3b9e02[_0x187d1f(0x2d6)]=_0xb4fa3c,_0x3b9e02[_0x187d1f(0x2ed)]=_0x29d49f,_0x3b9e02[_0x187d1f(0x28e)]=_0x270c75,_0x3b9e02[_0x187d1f(0x211)]=_0x1ba000,_0x3b9e02['region']=_0x1b7343,_0x3b9e02[_0x187d1f(0x1cf)]=_0x10f26b,_0x29dcc6[_0x187d1f(0x2a8)](_0x7f2cee['create'])[_0x187d1f(0x235)](_0x388eba)[_0x187d1f(0x222)](_0x3b9e02)[_0x187d1f(0x2e4)](_0x25611c[_0x187d1f(0x21a)])['argv'];}else _0xa6fb63='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x187d1f(0x1de)](_0x59cda4),await _0x25611c['oAJai'](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes['ERROR'],_0x25611c[_0x187d1f(0x2f9)],_0x25611c['WvRCL'],_0x25611c[_0x187d1f(0x2b7)]),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1);}const _0x3c1a33=JSON[_0x187d1f(0x1e9)](_0x59cda4[_0x187d1f(0x226)]),_0x159978={};_0x159978[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x22a)],_0x159978[_0x187d1f(0x206)]='CLI\x20run\x20started',webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x159978);const _0x5bc353={};_0x5bc353[_0x187d1f(0x22e)]=WS_EVENTS['LOG'],_0x5bc353[_0x187d1f(0x206)]=_0x25611c['GoBvG'],webSocketUtils['sendEventToBackend'](_0x436839,_0x5bc353);if(_0x3c1a33[_0x187d1f(0x269)]){if(_0x25611c[_0x187d1f(0x1e8)](_0x25611c['qCCaG'],_0x25611c[_0x187d1f(0x2b3)])){const _0x29f391=_0x25611c[_0x187d1f(0x2e1)][_0x187d1f(0x1f2)]('|');let _0x50f1e1=0x0;while(!![]){switch(_0x29f391[_0x50f1e1++]){case'0':_0x5c2634[_0x187d1f(0x26f)](_0x1d70b3);continue;case'1':_0xaffb69[_0x187d1f(0x1cd)]=_0x47a65d;continue;case'2':_0x2dfe8f=_0x187d1f(0x25e)+_0x157bc3+_0x187d1f(0x276)+_0x572caa+'\x27';continue;case'3':_0x3a4d54[_0x187d1f(0x223)]=_0x5d3010;continue;case'4':const _0x46c4d1={};_0x46c4d1[_0x187d1f(0x22e)]=_0x22c9d7['CLI_RUN_STARTED'],_0x46c4d1[_0x187d1f(0x206)]=_0x187d1f(0x2d8),_0x1af3ac[_0x187d1f(0x215)](_0x4369f4,_0x46c4d1);continue;case'5':_0x10af65[_0x187d1f(0x1f1)]=_0x3b8eb2[_0x187d1f(0x1f1)];continue;case'6':_0x2d1b0f[_0x187d1f(0x1d6)]=_0x4b0780;continue;case'7':_0x382e1a[_0x187d1f(0x205)]=_0x5dc9a1[_0x187d1f(0x205)];continue;case'8':const _0x112e8d={};_0x112e8d[_0x187d1f(0x22e)]=_0x58d2eb[_0x187d1f(0x1e4)],_0x112e8d[_0x187d1f(0x206)]=_0x721d72,_0x1363fc['sendEventToBackend'](_0x4e998f,_0x112e8d);continue;}break;}}else _0xa6fb63=_0x25611c['rLBgP'],await _0x25611c[_0x187d1f(0x2f5)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c['IqAOv'],_0x25611c[_0x187d1f(0x2b7)]),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1);}const _0x19cfb5=_0x3c1a33[_0x187d1f(0x1cc)];let _0x55fb38=_0x19cfb5[_0x3c1a33[_0x187d1f(0x2c1)]];_0x2c5d5f[_0x187d1f(0x25f)]&&(_0x25611c['fRXvC'](_0x25611c[_0x187d1f(0x2c5)],_0x25611c[_0x187d1f(0x2e3)])?_0x55fb38=_0x19cfb5[_0x2c5d5f[_0x187d1f(0x25f)]]:_0x39518e[_0x187d1f(0x25f)]=_0x4264b5[_0x187d1f(0x25f)]);if(_0x25611c[_0x187d1f(0x24b)](_0x29823b,![])){if(_0x25611c[_0x187d1f(0x1e8)](_0x25611c[_0x187d1f(0x294)],_0x25611c['BSDUI'])){_0x25611c[_0x187d1f(0x2b0)](_0x55fb38,undefined)&&(_0x25611c['SxChD'](_0x25611c[_0x187d1f(0x208)],_0x25611c[_0x187d1f(0x23d)])?_0x580553[_0x187d1f(0x2e6)]():(_0xa6fb63=_0x25611c[_0x187d1f(0x2b2)],await _0x25611c[_0x187d1f(0x23e)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c[_0x187d1f(0x1fe)],_0x25611c[_0x187d1f(0x2b7)]),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1)));global_registry['gridProfileId']=_0x55fb38['id'],_0xa6fb63='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x247a2a+_0x187d1f(0x288)+_0x55fb38['name']+_0x187d1f(0x20b),logger['info'](_0xa6fb63);const _0xcbb1c8={};_0xcbb1c8[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0xcbb1c8[_0x187d1f(0x206)]=_0xa6fb63,webSocketUtils['sendEventToBackend'](_0x436839,_0xcbb1c8),_0x4767ca=_0x55fb38[_0x187d1f(0x1d6)],_0x2a58c5=_0x55fb38['clusterName'],_0x20fa12=_0x55fb38[_0x187d1f(0x254)],_0x4d5748=_0x55fb38[_0x187d1f(0x2ba)],_0x28cdcb=_0x55fb38[_0x187d1f(0x26e)],_0x10aa12=_0x55fb38[_0x187d1f(0x1d5)],securityGroups=_0x55fb38['securityGroups'],subnets=_0x55fb38[_0x187d1f(0x2af)],_0x45d0dc=_0x55fb38[_0x187d1f(0x2a0)],_0x263c89=_0x55fb38[_0x187d1f(0x2eb)],_0x1885ff=_0x55fb38['maxNodes'],_0x43e3da=_0x3c1a33[_0x187d1f(0x205)],_0xa4a1da=_0x3c1a33[_0x187d1f(0x1f1)],_0x25611c[_0x187d1f(0x1e8)](_0x55fb38[_0x187d1f(0x25b)],undefined)&&_0x55fb38[_0x187d1f(0x25b)]&&(_0x25611c['hCJAF'](_0x25611c[_0x187d1f(0x1d9)],_0x25611c[_0x187d1f(0x1d9)])?global_registry['isPrivateGrid']=!![]:(_0xf57790=_0x2cd615[_0x187d1f(0x29b)],_0x459e5d=_0x25611c[_0x187d1f(0x2c2)])),_0x25611c[_0x187d1f(0x1d8)](updateGlobalRegistryWithConfig,_0x4767ca,_0x2a58c5,_0x20fa12,_0x4d5748,_0x28cdcb,_0x45d0dc,_0x55fb38,_0x43e3da,_0xa4a1da,_0x263c89,_0x1885ff);}else _0x55434c['isPrivateGrid']=!![];}else{if(_0x25611c['TnYjk'](_0x25611c[_0x187d1f(0x202)],_0x25611c[_0x187d1f(0x202)])){const _0x5f4809={};_0x5f4809[_0x187d1f(0x22e)]=_0x275aa2[_0x187d1f(0x1e4)],_0x5f4809[_0x187d1f(0x206)]=_0x187d1f(0x2dd)+_0x3e89fa+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0xfb1f4c['sendEventToBackend'](_0x47dacf,_0x5f4809,_0x25611c[_0x187d1f(0x1ea)]),_0x5c5906[_0x187d1f(0x26f)]('Cluster\x20'+_0x526cba+_0x187d1f(0x217)),_0x5c9ae9=!![];}else{const _0x5520d4=_0x25611c['gQpSm'][_0x187d1f(0x1f2)]('|');let _0x21f0ce=0x0;while(!![]){switch(_0x5520d4[_0x21f0ce++]){case'0':const _0x2b7270={};_0x2b7270[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x22a)],_0x2b7270['message']='CLI\x20run\x20started',webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x2b7270);continue;case'1':global_registry[_0x187d1f(0x1f1)]=_0x3c1a33['browserVersion'];continue;case'2':_0xa6fb63=_0x187d1f(0x25e)+_0x247a2a+_0x187d1f(0x276)+_0x2a58c5+'\x27';continue;case'3':global_registry[_0x187d1f(0x223)]=_0x20fa12;continue;case'4':global_registry[_0x187d1f(0x1cd)]=_0x2a58c5;continue;case'5':global_registry[_0x187d1f(0x205)]=_0x3c1a33[_0x187d1f(0x205)];continue;case'6':const _0x121f78={};_0x121f78[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x121f78[_0x187d1f(0x206)]=_0xa6fb63,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x121f78);continue;case'7':global_registry[_0x187d1f(0x1d6)]=_0x4767ca;continue;case'8':logger['info'](_0xa6fb63);continue;}break;}}}const _0x3ef5fc=await _0x25611c[_0x187d1f(0x2b1)](getCloudProviderObject,_0x4767ca,_0x2a58c5,_0x247a2a,_0x436839,webSocketUtils,_0x2c5d5f),_0x4df8b6=_0x44a08a[_0x187d1f(0x1d6)]||{};if(_0x25611c['MndFh'](_0x4df8b6[_0x4767ca],undefined)){logger[_0x187d1f(0x26f)](_0x25611c[_0x187d1f(0x214)]);_0x25611c[_0x187d1f(0x2b0)](_0x44a08a[_0x187d1f(0x1d6)],undefined)&&(_0x44a08a['cloudProvider']={});_0x44a08a[_0x187d1f(0x1d6)][_0x4767ca]={};const _0x172733=await _0x25611c[_0x187d1f(0x2bc)](inputCloudProviderKeys,_0x4767ca,_0x44a08a,_0x3ef5fc);fs[_0x187d1f(0x2aa)](_0x25611c[_0x187d1f(0x2f2)](getCredentialsPath),JSON[_0x187d1f(0x1de)](_0x172733)),logger[_0x187d1f(0x24e)](_0x25611c[_0x187d1f(0x247)]);}else{_0xa6fb63=_0x25611c[_0x187d1f(0x2ac)];const _0x5dec4f={};_0x5dec4f[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x5dec4f[_0x187d1f(0x206)]=_0xa6fb63,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x5dec4f),logger[_0x187d1f(0x26f)](_0xa6fb63),await _0x3ef5fc[_0x187d1f(0x1f0)](_0x4df8b6);}_0x3ef5fc[_0x187d1f(0x2a2)]();_0x25611c['bYimr'](_0x4767ca,AZURE)&&_0x3ef5fc[_0x187d1f(0x2e6)]();let _0x31e6f6;if(_0x25611c['GJhZJ'](_0x29823b,![])){_0xa6fb63=_0x187d1f(0x244)+_0x20fa12+').';const _0x43259e={};_0x43259e[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x43259e[_0x187d1f(0x206)]=_0xa6fb63,webSocketUtils['sendEventToBackend'](_0x436839,_0x43259e),logger[_0x187d1f(0x26f)](_0xa6fb63);const _0x459104=await _0x3ef5fc[_0x187d1f(0x295)]();if(_0x459104){const _0x48989d={};_0x48989d['type']=WS_EVENTS[_0x187d1f(0x1e4)],_0x48989d[_0x187d1f(0x206)]=_0x187d1f(0x2dd)+_0x2a58c5+_0x187d1f(0x217),webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x48989d,_0x25611c[_0x187d1f(0x1ea)]),logger['info']('Cluster\x20'+_0x2a58c5+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x29823b=!![];}else{const _0x1c9100={};_0x1c9100[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x1c9100[_0x187d1f(0x206)]=_0x25611c[_0x187d1f(0x21e)],webSocketUtils['sendEventToBackend'](_0x436839,_0x1c9100),logger['info'](_0x25611c[_0x187d1f(0x21e)]);const _0x3c94fa=_0x25611c[_0x187d1f(0x1f4)](_0x10aa12,null)&&_0x25611c['XTTHw'](_0x10aa12,undefined),_0x48ae75=_0x25611c[_0x187d1f(0x2f4)](subnets,null)&&_0x25611c[_0x187d1f(0x26b)](subnets,undefined)&&_0x25611c[_0x187d1f(0x1c7)](subnets[_0x187d1f(0x284)],0x0);if(_0x3c94fa){_0x25611c[_0x187d1f(0x292)](_0x48ae75,![])&&(_0xa6fb63=_0x25611c[_0x187d1f(0x1f9)],await _0x25611c[_0x187d1f(0x2f5)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c[_0x187d1f(0x201)],_0x25611c[_0x187d1f(0x2b7)]),logger['error'](_0xa6fb63),process['exit'](0x1));const _0xcab5e2=await _0x3ef5fc[_0x187d1f(0x2ec)](_0x10aa12);_0x25611c[_0x187d1f(0x2b9)](_0xcab5e2,![])?(_0xa6fb63=_0x25611c[_0x187d1f(0x1e6)],await _0x25611c[_0x187d1f(0x1c4)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c[_0x187d1f(0x23c)],_0x25611c['bAxKn']),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x10aa12+'\x20');const _0x4af415=await _0x3ef5fc[_0x187d1f(0x1e1)](subnets,_0x10aa12);_0x25611c[_0x187d1f(0x2d3)](_0x4af415[0x0],![])?(_0xa6fb63=_0x187d1f(0x24d)+JSON['stringify'](_0x4af415[0x1])+_0x187d1f(0x281)+_0x10aa12+_0x187d1f(0x248),await _0x25611c[_0x187d1f(0x2a7)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c['vvrRC'],_0x25611c[_0x187d1f(0x2b7)]),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1)):logger[_0x187d1f(0x26f)]('Found\x20Subnets:\x20'+JSON[_0x187d1f(0x1de)](subnets)+'\x20'),await _0x3ef5fc['setupNewCluster'](_0x10aa12,subnets);}else{const _0x24c9a1=_0x25611c[_0x187d1f(0x252)][_0x187d1f(0x1f2)]('|');let _0x3ca9ae=0x0;while(!![]){switch(_0x24c9a1[_0x3ca9ae++]){case'0':const _0x24998a={};_0x24998a[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x24998a[_0x187d1f(0x206)]='Cluster\x20created\x20successfully',webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x24998a);continue;case'1':const _0x486be5={};_0x486be5[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x486be5[_0x187d1f(0x206)]=_0x25611c['Sjkyr'],webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x486be5);continue;case'2':await _0x3ef5fc[_0x187d1f(0x1d2)]();continue;case'3':logger[_0x187d1f(0x26f)](_0x25611c[_0x187d1f(0x1d1)]);continue;case'4':logger[_0x187d1f(0x26f)](_0x25611c[_0x187d1f(0x233)]);continue;}break;}}}}_0x29823b&&_0x25611c['oJvcW'](_0x4767ca,AZURE)&&(await _0x3ef5fc[_0x187d1f(0x2be)](),await _0x3ef5fc[_0x187d1f(0x242)]());const [_0x292033,_0x205d76,_0x351eeb,_0x39d1aa,_0x378bb3,_0x48eec7]=await _0x25611c[_0x187d1f(0x2e5)](createK8sClient,_0x3ef5fc);_0x25611c['KJDOa'](_0x29823b,![])&&_0x25611c[_0x187d1f(0x20e)](_0x4767ca,AWS)&&(global_registry[_0x187d1f(0x234)]=!![],_0x31e6f6=await _0x3ef5fc['setupAutoscaler'](_0x292033,_0x2c5d5f));try{_0x3cb40b=_0x25611c[_0x187d1f(0x2e5)](kebabCase,_0x247a2a),logger[_0x187d1f(0x26f)](_0x25611c[_0x187d1f(0x22c)]);const _0x3f2fd8={};_0x3f2fd8['type']=WS_EVENTS[_0x187d1f(0x1e4)],_0x3f2fd8['message']=_0x25611c['xCiUK'],webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x3f2fd8);if(_0x25611c[_0x187d1f(0x1ed)](_0x3cb40b,_0x25611c['pPvsG'])){const _0xa957c5={};_0xa957c5[_0x187d1f(0x27d)]=_0x25611c[_0x187d1f(0x2c6)],_0xa957c5[_0x187d1f(0x28f)]=_0x25611c[_0x187d1f(0x2c6)];const _0x2bf825={};_0x2bf825['name']=_0x3cb40b,_0x2bf825[_0x187d1f(0x232)]=_0xa957c5;const _0x420a5b={};_0x420a5b[_0x187d1f(0x28b)]=_0x2bf825;let _0x3a711e=_0x420a5b;const _0x367a84={};_0x367a84[_0x187d1f(0x226)]=_0x3a711e,await _0x292033[_0x187d1f(0x2fb)](_0x367a84),logger[_0x187d1f(0x26f)](_0x25611c[_0x187d1f(0x2a4)]);}const _0x4a914d={};_0x4a914d[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x4a914d['message']=_0x25611c[_0x187d1f(0x21f)],webSocketUtils['sendEventToBackend'](_0x436839,_0x4a914d);const _0x5d558c={};_0x5d558c[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x5d558c['message']=_0x25611c[_0x187d1f(0x27f)],webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x5d558c),logger['info'](_0x25611c[_0x187d1f(0x1c2)]);let _0x2f7831={};_0x25611c[_0x187d1f(0x2c9)](_0x4767ca,AZURE)&&(_0x2f7831={'clientId':await _0x3ef5fc[_0x187d1f(0x2ca)](_0x187d1f(0x207)+_0x2a58c5)});await _0x25611c['zwadi'](addGridComponents,_0x292033,_0x205d76,_0x351eeb,_0x39d1aa,_0x3cb40b,_0x2a58c5,_0x31e6f6,_0x378bb3,_0x48eec7,_0x2f7831),_0xa6fb63=_0x25611c['KQdFO'],logger[_0x187d1f(0x26f)](_0xa6fb63);const _0x270289={};_0x270289[_0x187d1f(0x22e)]=WS_EVENTS['LOG'],_0x270289['message']=_0xa6fb63,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x270289),_0xa6fb63=_0x25611c[_0x187d1f(0x296)],logger[_0x187d1f(0x26f)](_0xa6fb63);const _0x6be7a6={};_0x6be7a6['type']=WS_EVENTS[_0x187d1f(0x1e4)],_0x6be7a6[_0x187d1f(0x206)]=_0xa6fb63,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x6be7a6),await _0x25611c[_0x187d1f(0x27a)](waitForDeployment,_0x205d76,_0x3cb40b,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x341e7d=await _0x25611c[_0x187d1f(0x1f8)](getNamespaceUID,_0x292033,_0x3cb40b);let _0x42c67a=global_registry[_0x187d1f(0x1cb)]?_0x25611c[_0x187d1f(0x273)]:_0x25611c[_0x187d1f(0x2df)];const _0x5ae283={};_0x5ae283[_0x187d1f(0x2c0)]=_0x42c67a,_0x5ae283[_0x187d1f(0x29d)]=_0x25611c['mazVV'];let _0x442965=await _0x292033['readNamespacedService'](_0x5ae283),_0x50ba29=_0x3ef5fc[_0x187d1f(0x282)](_0x442965)+'/'+_0x3cb40b,_0x403bcc=_0x25611c[_0x187d1f(0x245)];try{const _0x545329='https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x341e7d,_0x438386=await _0x25611c[_0x187d1f(0x20f)](got,_0x545329,_0x34f94c);(_0x25611c[_0x187d1f(0x290)](_0x438386,null)||_0x25611c[_0x187d1f(0x280)](_0x438386,undefined))&&(_0xa6fb63=_0x25611c[_0x187d1f(0x2ce)],await _0x25611c['gVlTw'](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes['ERROR'],_0x25611c[_0x187d1f(0x2f9)],_0x25611c[_0x187d1f(0x1d3)],_0x25611c[_0x187d1f(0x2b7)]),logger[_0x187d1f(0x1fa)](_0xa6fb63),process['exit'](0x1));_0x25611c[_0x187d1f(0x20a)](_0x438386['statusCode'],0x191)&&(_0xa6fb63=_0x25611c[_0x187d1f(0x22d)],await _0x25611c['JMxzW'](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c['JINjg'],_0x25611c[_0x187d1f(0x2b7)]),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1));_0x25611c[_0x187d1f(0x285)](_0x438386['statusCode'],0xc8)&&(_0xa6fb63='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x187d1f(0x1de)](_0x438386),await _0x25611c[_0x187d1f(0x2f5)](reportToGalactusAndSendToEDS,_0x2c5d5f,_0x436839,_0xa6fb63,messageTypes[_0x187d1f(0x216)],_0x25611c[_0x187d1f(0x2f9)],_0x25611c[_0x187d1f(0x28d)],_0x25611c['bAxKn']),logger[_0x187d1f(0x1fa)](_0xa6fb63),process[_0x187d1f(0x221)](0x1));const _0x977282=JSON[_0x187d1f(0x1e9)](_0x438386['body']);_0x977282[_0x187d1f(0x29b)]&&(_0x50ba29=_0x977282['route53'],_0x403bcc=_0x25611c['vLqnQ']),global_registry['isPrivateGrid']&&(_0x403bcc=_0x25611c[_0x187d1f(0x245)]);}catch(_0x2639e8){}_0xa6fb63='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x50ba29+'\x20',logger[_0x187d1f(0x26f)](_0xa6fb63);const _0x477f54={};_0x477f54[_0x187d1f(0x22e)]=WS_EVENTS['LOG'],_0x477f54[_0x187d1f(0x206)]=_0xa6fb63,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x477f54),_0xa6fb63='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x403bcc+_0x187d1f(0x24a)+_0x50ba29+_0x187d1f(0x265),logger[_0x187d1f(0x26f)](_0xa6fb63);const _0x1acc18={};_0x1acc18[_0x187d1f(0x22e)]=WS_EVENTS[_0x187d1f(0x1e4)],_0x1acc18[_0x187d1f(0x206)]=_0xa6fb63,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x1acc18);const _0x38f558={};_0x38f558['type']=WS_EVENTS[_0x187d1f(0x278)],_0x38f558[_0x187d1f(0x206)]=_0x187d1f(0x1e0)+_0x50ba29,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x38f558),await webSocketUtils[_0x187d1f(0x2ea)](0x7d0);}catch(_0x3e632f){logger[_0x187d1f(0x1fa)](_0x187d1f(0x257)+_0x3e632f+'\x20\x0a'+JSON[_0x187d1f(0x1de)](_0x3e632f[_0x187d1f(0x25d)]));if(_0x25611c[_0x187d1f(0x24b)](_0x29823b,![]))try{logger['info']('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x25611c[_0x187d1f(0x1ec)](removeGridComponents,_0x292033,_0x205d76,_0x351eeb,_0x39d1aa,_0x3cb40b),await _0x3ef5fc[_0x187d1f(0x1ce)](_0x292033,global_registry['clusterRegion']);}catch(_0x5b1264){logger[_0x187d1f(0x1fa)](_0x187d1f(0x2c3)+_0x5b1264+'\x20\x0a'+JSON[_0x187d1f(0x1de)](_0x5b1264[_0x187d1f(0x25d)]));}throw _0x3e632f;}}catch(_0x3adc19){const _0x305323=_0x187d1f(0x286)+_0x3adc19+'\x20\x0a'+JSON[_0x187d1f(0x1de)](_0x3adc19[_0x187d1f(0x25d)]);if(_0x436839){const _0x26f644={};_0x26f644[_0x187d1f(0x22e)]=WS_EVENTS['LOG'],_0x26f644[_0x187d1f(0x206)]=_0x305323,webSocketUtils[_0x187d1f(0x215)](_0x436839,_0x26f644,_0x25611c[_0x187d1f(0x2b7)],!![]);}await webSocketUtils[_0x187d1f(0x2ea)](0x7d0);const _0x21c427={};_0x21c427[_0x187d1f(0x1fa)]=_0x305323,await _0x25611c[_0x187d1f(0x2b1)](sendInstrumentationEvent,_0x2c5d5f,_0x25611c[_0x187d1f(0x2f9)],messageTypes[_0x187d1f(0x216)],_0x25611c['purwP'],_0x21c427,_0x2c5d5f),logger['error'](_0x305323);}process[_0x187d1f(0x221)](0x0);};function a9_0x2943(){const _0x4ac8af=['Cicyi','eZQgV','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','hubVersion','message','turboscale-managed-identity-','OIrwF','UXuBZ','OfJPb','\x27\x20grid\x20profile','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','1946YArFxG','SNAIs','viRSf','../../utils/userInput','cloud-provider','Create\x20a\x20new\x20Automation\x20grid.','grid','HnOwG','sendEventToBackend','ERROR','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','AIGaM','KEhsZ','ingress-nginx-controller','KyXsN','create-grid-checks-auth-failed','YpkfW','tRluF','OyKUD','exit','options','clusterRegion','pre-spawned-invalid-subnets','Mpbwx','body','existsSync','DBJwt','EeDYi','CLI_RUN_STARTED','replace','xCiUK','nLtbq','type','ObSxl','MSDdh','../../cloudproviders/utils','annotations','Sjkyr','isNewAWSCluster','epilogue','kuUrv','XXNxD','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','WebSocket','username','FSVXC','STSCn','SNJKN','VBWBz','create-grid-checks-null-response','ingress-nginx','JBuLQ','createOtherResources','GogoX','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','CQJze','46675EkbNoK','AkIYD','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','Namespace\x20created','://','wcMae','lRHKT','Subnets:\x20','debug','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.','warn','KoLwc','JfIob','gridName','region','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','user','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','sqrfq','FIfac','LReeH','privateGrid','true','stack','Spawning\x20the\x20grid\x20','gridProfile','SAMch','../../utils/webSocketUtils','QgtUe','../../utils/gridComponents','../../utils/createk8sClient','/wd/hub','3BJxPWv','owQcb','../../config/logger','alreadyPresent','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','KrKEQ','Browserstack','NKEvF','instanceType','info','Grid\x20spawned\x20on\x20the\x20cluster','get-grid-url-non-200','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','qwcJI','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','wcvmc','\x20in\x20existing\x20cluster\x20\x27','xCWWV','CLI_RUN_FINISHED','create-grid-called','Upwwf','28jSBxIj','55jmWvRF','createdBy','117091EVqrzg','FkpHr','YAEEW','\x20are\x20not\x20present\x20in\x20VPC:\x20','getGridHostname','Found\x20Subnets:\x20','length','TnYjk','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20using\x20\x27','init-not-called','BVWPK','metadata','nCYCb','ElhIe','cluster-name','managedBy','PjQHj','cNTLR','oJvcW','fpqEG','ZHkpb','isClusterPresent','aeusq','bstackAccesskey','oawRm','string','bYimr','route53','299736xmqebP','namespace','Grid\x20profile\x20fetched\x20from\x20backend','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','s3bucket','non-aws-azure-cluster','configureIfNotConfigured','get-grid-url-null-response','cyywm','../../utils/utilityMethods','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','hKrmQ','usage','/packages/cli/create-grid-checks','writeFileSync','Create\x20a\x20private/public\x20grid.','sjaaL','SWgsG','Namespace\x20Created','subnets','hCJAF','sMyzB','dbjvE','qCCaG','vJyVf','http','UzQyf','bAxKn','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','NluXx','concurrency','Bgnii','pQeyx','404506cvowYJ','updatePreSpawnedCluster','1812411TKXfZb','name','defaultGridProfile','vLqnQ','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','SXCPm','dLBCv','bULmU','XgRLa','QOcQr','qsYZm','getResourceClientId','pre-spawned-subnets-not-selected','gVlTw','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','xtKJG','xaESr','readFileSync','create-grid-checks-grid-already-exists','wYtlm','dlAkw','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hPUzj','grid-name','zhFrk','CLI\x20run\x20started','wFccr','got','pVDhG','RfJHj','Cluster\x20','Rkdue','JYFgf','cNhbi','woTVb','Paiam','tWmJl','help','aAjfW','sendResourceDataToHST','create-grid-checks-non-200','command','toLowerCase','delay','minNodes','isVPCPresent','grid-profile','../../utils/instrumentationUtils','pre-spawned-invalid-vpc','XehrN','description','UxOVg','UPIRz','EqhPn','oAJai','1387330AuESJD','password','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','pxvpf','xKJbq','createNamespace','bstackUsername','SyDlR','grid-spawning-failed','JMxzW','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Found\x20VPC:\x20','ATbyo','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','dqmhe','sGWxV','isPrivateGrid','gridProfiles','clusterName','deleteCluster','private-grid','lXVTZ','BXEYE','setupNewCluster','nmuiC','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vpc','cloudProvider','<PasswordPlaceholder>','euUuf','OPnmo','https://','builder','GET','addListeners','stringify','https','CLI\x20run\x20finished:\x20','isSubnetsValid','aUrkR','fRmwD','LOG','nUUZy','szMjn','GJhZJ','fRXvC','parse','zlEVX','argv','nSklU','zbIxM','prespawned-cluster-args-not-passed','GYUhM','fetchLocalCreds','browserVersion','split','default','OAfCw','INFO','yCfGz','requestId','jJrBl','iciRz','error','1576AFOuaD','EFdGS','yqktO','pMjWY','iYnZd','sIihm','pMtwE'];a9_0x2943=function(){return _0x4ac8af;};return a9_0x2943();}
|
|
1
|
+
const a9_0x5128ce=a9_0x46f1;(function(_0x379261,_0x1d0220){const _0x130044=a9_0x46f1,_0x5eb2ba=_0x379261();while(!![]){try{const _0xdcd1c1=parseInt(_0x130044(0x1cd))/0x1*(parseInt(_0x130044(0x25d))/0x2)+-parseInt(_0x130044(0x282))/0x3+parseInt(_0x130044(0x1f5))/0x4*(parseInt(_0x130044(0x1e8))/0x5)+-parseInt(_0x130044(0x2d2))/0x6*(-parseInt(_0x130044(0x2a5))/0x7)+parseInt(_0x130044(0x230))/0x8*(parseInt(_0x130044(0x243))/0x9)+-parseInt(_0x130044(0x26f))/0xa*(-parseInt(_0x130044(0x285))/0xb)+-parseInt(_0x130044(0x222))/0xc;if(_0xdcd1c1===_0x1d0220)break;else _0x5eb2ba['push'](_0x5eb2ba['shift']());}catch(_0x4bc554){_0x5eb2ba['push'](_0x5eb2ba['shift']());}}}(a9_0x1775,0xe150e));function a9_0x1775(){const _0x141d12=['Czjyk','minNodes','/packages/cli/create-grid-checks','KaoxM','../../utils/userInput','zXPMv','Bqefn','1009506GfzzUy','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','mmMol','eYWUO','privateGrid','desc','XGRLO','isNewAWSCluster','builder','securityGroups','GXQPg','help','SqLDe','setupNewCluster','ApQvs','yDYBD','vxzUt','uesLP','MSVYo','gUuQu','argv','concurrency','updatePreSpawnedCluster','pnDkc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Browserstack','GbMBZ','fetchLocalCreds','mJbUS','clusterRegion','../../cloudproviders/utils','gridName','options','pre-spawned-invalid-subnets','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','SiJpO','https://','HFgpV','VCihn','MNVUI','CLI_RUN_FINISHED','uUfCy','kAwQu','Create\x20a\x20private/public\x20grid.','private-grid','ACoFP','CETnW','Spawning\x20grid\x20on\x20to\x20the\x20cluster','oUBMn','isClusterPresent','namespace','468794JkHqCm','create-grid-checks-auth-failed','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','reconnecting-websocket','grid-name','Ijgfb','uuid','CLI_RUN_STARTED','mgVye','DpItV','CLI\x20run\x20started','nQXeR','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','caUuo','prespawned-cluster-args-not-passed','get-grid-url-non-200','mEtEw','Will\x20be\x20spawning\x20the\x20grid\x20','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','clusterName','kdRzD','info','turboscale-managed-identity-','<UsernamePlaceholder>','../../config/constants','oiqac','1777705XRbDEx','statusCode','Spawning\x20the\x20grid\x20','tZXEC','gthke','HJBmw','toLowerCase','body','odgjw','fjOvZ','type','onIAe','create-grid-called','12xreojI','\x20using\x20\x27','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','biLhd','nBQAe','usage','oapOr','wTxel','SQswj','\x20are\x20not\x20present\x20in\x20VPC:\x20','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.','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','createNamespace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zyjeY','OvkeR','<PasswordPlaceholder>','hhNao','message','https','OSPRE','ingress-nginx-controller','metadata','../../utils/gridComponents','zXgHn','cRWBC','/packages/cli/get-grid-url?gridIdentifier=','yeynG','PKOqC','GVpmX','grid-profile','zbNnl','DKIUJ','ZkXIQ','buyCq','ingress-nginx','description','requestId','browserVersion','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','length','Deleting\x20the\x20CloudFormation\x20Stacks','rlppO','yUJkq','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','33744228zXpeks','hZszy','private-ingress-nginx-controller','parse','iiBOV','exit','http','cloud-provider','route53','alreadyPresent','eNjvv','get-grid-url-auth-failed','addListeners','stack','7089128UZhJsY','GULRV','FBefd','TYNin','eWJxR','Subnets:\x20','get-grid-url-null-response','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','IWokt','create-grid-checks-invalid-profile','bGewZ','ShnFI','defaultGridProfile','isPrivateGrid','jjoGE','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WSRBP','split','create-grid-checks-non-200','18AGSmOT','xIezQ','GaIpN','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','GET','RgBVT','Found\x20Subnets:\x20','subnets','zaUxG','stringify','FHXUn','got','rSujE','knKUB','Idhah','7|5|4|2|6|8|1|0|3','lWLjs','ERROR','Grid\x20can\x20be\x20accessed\x20at:\x20','KAUOK','epilogue','DzsbT','../../utils/createk8sClient','s3bucket','maxNodes','NkyEH','2YYpyLR','pnhXg','Unlso','error','yaeDM','true','cluster-name','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','cloudProvider','Found\x20VPC:\x20','vpc','includes','Adding\x20Websocket\x20listeners','gPPmv','gridProfiles','Grid\x20spawned\x20on\x20the\x20cluster','cJBbR','6|8|1|3|0|4|7|2|5','10gtumCX','connectionTimeout','readFileSync','ktiLz','BzSNL','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','fNokk','Rrset','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfileId','bstackUsername','YOuuk','isSubnetsValid','ONKnY','warn','debug','TphAL','createOtherResources','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','4522164HNAcmx','jkhUG','replace','15728339tSVHmf','WebSocket','../../utils/utilityMethods','ZZsyP','HDxgL','KtFUJ','Bcpsh','iTKyi','Namespace\x20Created','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','instanceType','yEKKf','uGEUI','handler','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','password','delay','configureIfNotConfigured','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','ytfXv','wgTWt','javUq','SsYIL','sendEventToBackend','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','init-not-called','Cluster\x20created\x20successfully','mgUjY','create-grid-checks-null-response','\x27\x20grid\x20profile','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','LOG','21gcELxY','bEOTP','SEjad','vnqGT','../../utils/instrumentationUtils','lcPPH','LwCVG','../../config/logger','hKYkC','\x20in\x20existing\x20cluster\x20\x27','command','hubVersion','iYHQt','default','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ruUae','create','QoOYQ','name','SYVPZ','string','RwYWi','gridProfile','mpIFO','managedBy','KFJiv','region','create-grid-checks-grid-already-exists','CLI\x20run\x20finished:\x20','SJbRP','Namespace\x20created','username','CaRvy','NiGHH','vNGoO','HRsna','pre-spawned-subnets-not-selected','MkZvX'];a9_0x1775=function(){return _0x141d12;};return a9_0x1775();}function a9_0x46f1(_0x57dba4,_0x5e4e2){const _0x17754e=a9_0x1775();return a9_0x46f1=function(_0x46f13,_0x5c230d){_0x46f13=_0x46f13-0x1ca;let _0x10f8a2=_0x17754e[_0x46f13];return _0x10f8a2;},a9_0x46f1(_0x57dba4,_0x5e4e2);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x5128ce(0x1d1)),got=require(a9_0x5128ce(0x24e)),{v4:uuidv4}=require(a9_0x5128ce(0x1d4)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x5128ce(0x2ac)),{inputCloudProviderKeys}=require(a9_0x5128ce(0x2cf)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5128ce(0x287)),{getCloudProviderObject}=require(a9_0x5128ce(0x2f0)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x5128ce(0x1e6)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x5128ce(0x20c)),{createK8sClient}=require(a9_0x5128ce(0x259)),{sendInstrumentationEvent}=require(a9_0x5128ce(0x2a9));exports[a9_0x5128ce(0x2af)]='grid',exports[a9_0x5128ce(0x2d7)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x5128ce(0x2da)]=function(_0x584155){const _0x2e90fc=a9_0x5128ce,_0x38a831={};_0x38a831[_0x2e90fc(0x231)]=_0x2e90fc(0x1cf),_0x38a831[_0x2e90fc(0x27f)]=_0x2e90fc(0x2b9),_0x38a831[_0x2e90fc(0x2f5)]=_0x2e90fc(0x1d0),_0x38a831['VCihn']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x38a831['jjoGE']=_0x2e90fc(0x29d),_0x38a831[_0x2e90fc(0x211)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x38a831['ONKnY']=_0x2e90fc(0x2fd),_0x38a831['DKIUJ']=_0x2e90fc(0x2dd);const _0x1bff07=_0x38a831,_0x292526={};_0x292526[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x231)],_0x292526[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x4bea73={};_0x4bea73[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x2f5)],_0x4bea73[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x1a4cd9={};_0x1a4cd9[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x2f8)],_0x1a4cd9['type']=_0x1bff07[_0x2e90fc(0x27f)];const _0x4b7c6d={};_0x4b7c6d[_0x2e90fc(0x219)]=_0x1bff07[_0x2e90fc(0x23e)],_0x4b7c6d['type']=_0x1bff07['TphAL'];const _0x3babfa={};_0x3babfa[_0x2e90fc(0x219)]=_0x1bff07['PKOqC'],_0x3babfa[_0x2e90fc(0x1f2)]=_0x1bff07[_0x2e90fc(0x27f)];const _0x11728b={};_0x11728b['description']=_0x1bff07[_0x2e90fc(0x27c)],_0x11728b['type']=_0x1bff07['TphAL'];const _0x46e6d6={};return _0x46e6d6[_0x2e90fc(0x1d2)]=_0x292526,_0x46e6d6[_0x2e90fc(0x213)]=_0x4bea73,_0x46e6d6[_0x2e90fc(0x263)]=_0x1a4cd9,_0x46e6d6[_0x2e90fc(0x229)]=_0x4b7c6d,_0x46e6d6[_0x2e90fc(0x2bf)]=_0x3babfa,_0x46e6d6[_0x2e90fc(0x2fe)]=_0x11728b,_0x584155['usage'](HELP_HEADER_MESSAGE[_0x2e90fc(0x2b5)])[_0x2e90fc(0x257)](HELP_FOOTER_MESSAGE)['options'](_0x46e6d6)[_0x2e90fc(0x2dd)](_0x1bff07[_0x2e90fc(0x215)])[_0x2e90fc(0x2e6)];},exports[a9_0x5128ce(0x292)]=async function(_0x24f922){const _0x42cf3c=a9_0x5128ce,_0x131c52={'knKUB':_0x42cf3c(0x228),'HRsna':_0x42cf3c(0x208),'kdRzD':_0x42cf3c(0x26e),'yeynG':_0x42cf3c(0x260),'yUJkq':_0x42cf3c(0x27d),'mpIFO':_0x42cf3c(0x1cf),'FBefd':_0x42cf3c(0x2b9),'vnqGT':_0x42cf3c(0x1d0),'hJnJg':_0x42cf3c(0x1da),'uesLP':_0x42cf3c(0x29d),'jutks':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','SqLDe':'Create\x20a\x20private/public\x20grid.','mgUjY':_0x42cf3c(0x2dd),'MSVYo':function(_0x9e5799){return _0x9e5799();},'tZXEC':function(_0x25fbfb){return _0x25fbfb();},'DpItV':function(_0x231be8,_0x38254d){return _0x231be8!==_0x38254d;},'yEKKf':'IbgiJ','pDnRv':_0x42cf3c(0x202),'DzsbT':function(_0x5830fa,_0x2619e8,_0x2c9499,_0x115fae,_0xd61709,_0x2d7c06,_0x59ffad){return _0x5830fa(_0x2619e8,_0x2c9499,_0x115fae,_0xd61709,_0x2d7c06,_0x59ffad);},'caUuo':_0x42cf3c(0x1f4),'hKYkC':_0x42cf3c(0x29e),'HHYZN':function(_0x4207f8,_0x1e6ccf,_0x4b4ca8,_0x3f2b4b,_0x1c7ace,_0x39168b,_0x2d02d9){return _0x4207f8(_0x1e6ccf,_0x4b4ca8,_0x3f2b4b,_0x1c7ace,_0x39168b,_0x2d02d9);},'iYHQt':_0x42cf3c(0x1e5),'gthke':_0x42cf3c(0x205),'KtFUJ':_0x42cf3c(0x269),'xIezQ':'qvQAM','fjOvZ':function(_0x13efde,_0x2dad3e){return _0x13efde===_0x2dad3e;},'eNjvv':_0x42cf3c(0x2c5),'YOuuk':_0x42cf3c(0x237),'GaIpN':function(_0x4f65b1,_0x4e0226,_0x4b5419,_0x5b0af4,_0x2384b2,_0x35f141,_0x33febb,_0x2b42d5){return _0x4f65b1(_0x4e0226,_0x4b5419,_0x5b0af4,_0x2384b2,_0x35f141,_0x33febb,_0x2b42d5);},'faSUY':_0x42cf3c(0x1dc),'onIAe':function(_0x8fd719,_0x2f9c28){return _0x8fd719!==_0x2f9c28;},'mEtEw':_0x42cf3c(0x2ff),'VmYTh':_0x42cf3c(0x21c),'WSRBP':function(_0x5f8eab,_0x1f1168,_0xa88655,_0x3d7601,_0x3eafa8,_0x216ed8,_0x192ba3,_0x4a145b){return _0x5f8eab(_0x1f1168,_0xa88655,_0x3d7601,_0x3eafa8,_0x216ed8,_0x192ba3,_0x4a145b);},'uNQYG':'non-aws-azure-cluster','cRWBC':function(_0x2fadd4,_0x3889bc){return _0x2fadd4===_0x3889bc;},'oapOr':_0x42cf3c(0x262),'ktiLz':'OpzrY','TYNin':_0x42cf3c(0x2fc),'KFJiv':function(_0x3b87c0,_0xad0bb3){return _0x3b87c0!==_0xad0bb3;},'MkZvX':_0x42cf3c(0x253),'zaUxG':_0x42cf3c(0x247),'TxseV':function(_0x8d8f8,_0x554089,_0x18beaf){return _0x8d8f8(_0x554089,_0x18beaf);},'eYWUO':function(_0x2d5bbf,_0x4209cd,_0x16318f){return _0x2d5bbf(_0x4209cd,_0x16318f);},'HJBmw':function(_0x58c1f9,_0x1b28b4){return _0x58c1f9===_0x1b28b4;},'zbNnl':_0x42cf3c(0x2c2),'ShnFI':'VJmEc','gPPmv':_0x42cf3c(0x264),'HDxgL':_0x42cf3c(0x2a1),'ytfXv':function(_0x59738d,_0x5e5905){return _0x59738d===_0x5e5905;},'KaoxM':_0x42cf3c(0x2dc),'fNokk':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ApQvs':function(_0x435c7c,_0x4865bc,_0x2e7e84,_0x3490c6,_0x126aad,_0x285b9b,_0x1f5957,_0x2ae7ff){return _0x435c7c(_0x4865bc,_0x2e7e84,_0x3490c6,_0x126aad,_0x285b9b,_0x1f5957,_0x2ae7ff);},'MNVUI':_0x42cf3c(0x1ce),'yDYBD':function(_0x539fb9,_0x3d129b){return _0x539fb9===_0x3d129b;},'nQXeR':_0x42cf3c(0x25f),'oUBMn':function(_0x55b718,_0x608336,_0x4211f3,_0x316f90,_0x566417,_0x9a4fc7,_0x45c8ce,_0x44f5f0){return _0x55b718(_0x608336,_0x4211f3,_0x316f90,_0x566417,_0x9a4fc7,_0x45c8ce,_0x44f5f0);},'wgTWt':_0x42cf3c(0x242),'mmMol':'Grid\x20profile\x20fetched\x20from\x20backend','bEOTP':_0x42cf3c(0x273),'ZkXIQ':_0x42cf3c(0x2a3),'iiBOV':_0x42cf3c(0x2c0),'eBowu':_0x42cf3c(0x212),'AAKIc':_0x42cf3c(0x1d6),'OSPRE':function(_0xdad0db,_0x2481a7){return _0xdad0db===_0x2481a7;},'eiSCK':_0x42cf3c(0x25e),'vxzUt':_0x42cf3c(0x2e9),'KAUOK':function(_0x4f666f,_0x2365fa){return _0x4f666f===_0x2365fa;},'Miaax':_0x42cf3c(0x217),'gUuQu':_0x42cf3c(0x200),'pIsWz':_0x42cf3c(0x239),'RwYWi':function(_0x15cfe4,_0x9c4eba){return _0x15cfe4!==_0x9c4eba;},'rSujE':_0x42cf3c(0x28c),'kMass':function(_0x1e7a87,_0x4e4174,_0x55d174,_0x5eea6c,_0x50cd26,_0x35bb1b,_0x17549a,_0x48c80b,_0x11c858,_0x2aba96,_0x253381,_0x592f56){return _0x1e7a87(_0x4e4174,_0x55d174,_0x5eea6c,_0x50cd26,_0x35bb1b,_0x17549a,_0x48c80b,_0x11c858,_0x2aba96,_0x253381,_0x592f56);},'dhQsk':_0x42cf3c(0x29b),'neOSN':_0x42cf3c(0x2fb),'UOJXS':_0x42cf3c(0x252),'GbMBZ':function(_0x302a0e,_0x3ccba1){return _0x302a0e===_0x3ccba1;},'VaZzo':_0x42cf3c(0x1f7),'Czjyk':function(_0x3203e7,_0x2767f1){return _0x3203e7===_0x2767f1;},'hhNao':function(_0x1043f1,_0x1d550a,_0x40a703,_0x360725){return _0x1043f1(_0x1d550a,_0x40a703,_0x360725);},'hZszy':_0x42cf3c(0x221),'Rrset':_0x42cf3c(0x23f),'FHXUn':function(_0x51502c,_0xdde61a){return _0x51502c!==_0xdde61a;},'Tfiom':_0x42cf3c(0x2ea),'IWokt':function(_0x51aeb9,_0x5e43bf){return _0x51aeb9!=_0x5e43bf;},'CETnW':function(_0x4e44fb,_0xae65b7){return _0x4e44fb!==_0xae65b7;},'LwCVG':function(_0x333560,_0x1f015d){return _0x333560>_0x1f015d;},'vNGoO':function(_0x1f959e,_0x351c40){return _0x1f959e===_0x351c40;},'WBpDh':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','zXgHn':_0x42cf3c(0x2c9),'QoOYQ':_0x42cf3c(0x2d3),'RgBVT':'pre-spawned-invalid-vpc','odgjw':function(_0x563af3,_0xf03205,_0x4ccaaa,_0xc5954a,_0x2bc19f,_0x4871f8,_0x2c73e9,_0x32e0ff){return _0x563af3(_0xf03205,_0x4ccaaa,_0xc5954a,_0x2bc19f,_0x4871f8,_0x2c73e9,_0x32e0ff);},'nBQAe':_0x42cf3c(0x2f3),'ECYwm':'1|0|3|4|2','wTxel':_0x42cf3c(0x1ff),'Ijgfb':_0x42cf3c(0x29f),'OvkeR':function(_0x33f99d,_0x27edd7){return _0x33f99d===_0x27edd7;},'Idhah':function(_0x2eff08,_0x11317a){return _0x2eff08(_0x11317a);},'zyjeY':function(_0xd504bb,_0x4c460e){return _0xd504bb===_0x4c460e;},'HFgpV':function(_0x3a2574,_0x5c5731){return _0x3a2574==_0x5c5731;},'oiqac':function(_0x4f0f12,_0x42d057){return _0x4f0f12(_0x42d057);},'bGewZ':'Creating\x20namespace','glRkc':function(_0x22ab24,_0x2e7449){return _0x22ab24!==_0x2e7449;},'yaeDM':_0x42cf3c(0x2b2),'ruUae':'Browserstack','rlppO':_0x42cf3c(0x28d),'XGRLO':_0x42cf3c(0x2c3),'uGEUI':_0x42cf3c(0x301),'eWJxR':'Spawning\x20Grid\x20on\x20the\x20Cluster','SQswj':function(_0x3eef54,_0x10bdfc,_0x4e5ab1,_0x55e7b3,_0x5197dd,_0x36cf90,_0x344b14,_0x4260c,_0x4d296b,_0x1b7459,_0x482acb){return _0x3eef54(_0x10bdfc,_0x4e5ab1,_0x55e7b3,_0x5197dd,_0x36cf90,_0x344b14,_0x4260c,_0x4d296b,_0x1b7459,_0x482acb);},'EatvJ':_0x42cf3c(0x26c),'ZZsyP':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Bcpsh':function(_0x58d8ea,_0x34ff61,_0x4881df,_0x3b6ab9,_0x4afc2d){return _0x58d8ea(_0x34ff61,_0x4881df,_0x3b6ab9,_0x4afc2d);},'cJBbR':function(_0x2a7af0,_0x388055,_0x363378){return _0x2a7af0(_0x388055,_0x363378);},'yOeEF':_0x42cf3c(0x224),'jkhUG':_0x42cf3c(0x20a),'biLhd':_0x42cf3c(0x218),'zXPMv':function(_0x2bcfe9,_0x3be431,_0x926cf9){return _0x2bcfe9(_0x3be431,_0x926cf9);},'lcPPH':_0x42cf3c(0x277),'SYVPZ':_0x42cf3c(0x236),'mJbUS':function(_0x478616,_0x514c5b){return _0x478616===_0x514c5b;},'SEjad':_0x42cf3c(0x293),'NkyEH':_0x42cf3c(0x22d),'wiwef':function(_0x403b8b,_0x43170c){return _0x403b8b!==_0x43170c;},'BiasN':_0x42cf3c(0x1dd),'Bqefn':function(_0x74d67f,_0x598947){return _0x74d67f===_0x598947;},'javUq':function(_0x575dd6,_0x43f242,_0x293f4d,_0x1e84f8,_0x3c26b0,_0x49d841){return _0x575dd6(_0x43f242,_0x293f4d,_0x1e84f8,_0x3c26b0,_0x49d841);},'NiGHH':'grid-spawning-failed'};let _0x190125=![],_0x2f0939,_0x2ae629,_0x5eca07,_0xc208a6,_0xb49e46,_0x192d85,_0x5837d4,_0xb2dc79,_0x4dd117,_0x140842,_0x386e50,_0x5c25e5,_0x86bf72=0x1,_0x18ba3f=0xe;try{global_registry[_0x42cf3c(0x21a)]=_0x131c52[_0x42cf3c(0x2e4)](uuidv4),global_registry[_0x42cf3c(0x23d)]=![];!fs['existsSync'](_0x131c52[_0x42cf3c(0x1eb)](getCredentialsPath))&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x290)],_0x131c52[_0x42cf3c(0x290)])?_0x3386a6[_0x42cf3c(0x260)](_0x42cf3c(0x281)+_0x40c7a8+'\x20\x0a'+_0x31f984['stringify'](_0x348515[_0x42cf3c(0x22f)])):(console[_0x42cf3c(0x260)](_0x131c52['pDnRv']),await _0x131c52[_0x42cf3c(0x258)](sendInstrumentationEvent,_0x24f922,_0x131c52['caUuo'],messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x2ad)],null,_0x24f922),process[_0x42cf3c(0x227)](0x1)));await _0x131c52['HHYZN'](sendInstrumentationEvent,_0x24f922,_0x131c52[_0x42cf3c(0x1db)],messageTypes['INFO'],null,null,_0x24f922);const _0x58019f=JSON[_0x42cf3c(0x225)](fs[_0x42cf3c(0x271)](_0x131c52['MSVYo'](getCredentialsPath)));global_registry[_0x42cf3c(0x279)]=_0x58019f['Browserstack']['username'],global_registry['bstackAccesskey']=_0x58019f[_0x42cf3c(0x2eb)][_0x42cf3c(0x294)];const _0xf50a76=WS_ENDPOINT[_0x42cf3c(0x284)](_0x131c52[_0x42cf3c(0x2b1)],_0x58019f[_0x42cf3c(0x2eb)][_0x42cf3c(0x2c4)])['replace'](_0x131c52[_0x42cf3c(0x1ec)],_0x58019f['Browserstack'][_0x42cf3c(0x294)]),_0x389779={};_0x389779[_0x42cf3c(0x286)]=ws,_0x389779[_0x42cf3c(0x270)]=0x36ee80,_0x140842=new ReconnectingWebSocket(_0xf50a76,[],_0x389779),logger[_0x42cf3c(0x27e)](_0x131c52[_0x42cf3c(0x28a)]),webSocketUtils[_0x42cf3c(0x22e)](_0x140842,_0x24f922['user'],_0x24f922['password']);let _0x437e13=DEFAULT_GRID_NAME;(_0x24f922[_0x42cf3c(0x1e1)]||_0x24f922['cloudProvider']||_0x24f922[_0x42cf3c(0x2bf)])&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x244)],_0x131c52[_0x42cf3c(0x244)])?_0x51092d=_0x131c52[_0x42cf3c(0x250)]:(!(_0x24f922[_0x42cf3c(0x1e1)]&&_0x24f922[_0x42cf3c(0x265)]&&_0x24f922[_0x42cf3c(0x2bf)])&&(_0x131c52[_0x42cf3c(0x1f1)](_0x131c52[_0x42cf3c(0x22c)],_0x131c52['eNjvv'])?(_0x2f0939=_0x131c52[_0x42cf3c(0x27a)],await _0x131c52[_0x42cf3c(0x245)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52['caUuo'],_0x131c52['faSUY'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):(_0x658978=_0x33ca51['route53'],_0x59b4ab=_0x131c52[_0x42cf3c(0x2c8)])),![AWS,AZURE,GCP][_0x42cf3c(0x268)](_0x24f922[_0x42cf3c(0x265)][_0x42cf3c(0x1ee)]())&&(_0x131c52[_0x42cf3c(0x1f3)](_0x131c52[_0x42cf3c(0x1de)],_0x131c52[_0x42cf3c(0x1de)])?_0x1fed51[_0x42cf3c(0x23d)]=!![]:(_0x2f0939=_0x131c52['VmYTh'],await _0x131c52[_0x42cf3c(0x240)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['uNQYG'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1))),_0x24f922[_0x42cf3c(0x2d6)]&&_0x131c52[_0x42cf3c(0x20e)](_0x24f922[_0x42cf3c(0x2d6)][_0x42cf3c(0x1ee)](),_0x131c52[_0x42cf3c(0x1fb)])&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x272)],_0x131c52[_0x42cf3c(0x272)])?_0x451e1f['info'](_0x42cf3c(0x266)+_0x4d2311+'\x20'):global_registry[_0x42cf3c(0x23d)]=!![]),_0x190125=!![],_0x5eca07=_0x24f922['clusterName'],_0x2ae629=_0x24f922[_0x42cf3c(0x265)][_0x42cf3c(0x1ee)](),_0xc208a6=_0x24f922[_0x42cf3c(0x2bf)]));_0x24f922[_0x42cf3c(0x2f1)]&&(_0x131c52[_0x42cf3c(0x1d7)](_0x131c52[_0x42cf3c(0x233)],_0x131c52[_0x42cf3c(0x233)])?_0x12c123[_0x42cf3c(0x1e3)]('Found\x20Subnets:\x20'+_0x1ad24c[_0x42cf3c(0x24c)](_0x4aa391)+'\x20'):_0x437e13=_0x24f922['gridName']);if(_0x24f922[_0x42cf3c(0x2bb)]){if(_0x131c52[_0x42cf3c(0x2be)](_0x131c52['MkZvX'],_0x131c52[_0x42cf3c(0x2ca)])){const _0x4d4ab5=_0x131c52[_0x42cf3c(0x1e2)]['split']('|');let _0x4721bf=0x0;while(!![]){switch(_0x4d4ab5[_0x4721bf++]){case'0':_0x484b7b['cloudProvider']=_0x574285;continue;case'1':_0x4fac9d[_0x42cf3c(0x1e3)](_0x4a3b4d);continue;case'2':_0x48bc2e[_0x42cf3c(0x2b0)]=_0x48229a[_0x42cf3c(0x2b0)];continue;case'3':const _0x4918c9={};_0x4918c9[_0x42cf3c(0x1f2)]=_0x168ffd[_0x42cf3c(0x2a4)],_0x4918c9['message']=_0xa192fb,_0x1ecbe7[_0x42cf3c(0x29c)](_0x5da753,_0x4918c9);continue;case'4':_0x8f9dd6[_0x42cf3c(0x2ef)]=_0x4a68b6;continue;case'5':_0x242c98[_0x42cf3c(0x21b)]=_0x39f1fb[_0x42cf3c(0x21b)];continue;case'6':const _0x2809a6={};_0x2809a6[_0x42cf3c(0x1f2)]=_0x21a5c2[_0x42cf3c(0x1d5)],_0x2809a6[_0x42cf3c(0x207)]=_0x42cf3c(0x1d8),_0x1455bb[_0x42cf3c(0x29c)](_0x14c1c8,_0x2809a6);continue;case'7':_0x4ef590['clusterName']=_0x2522b4;continue;case'8':_0x1a9716='Spawning\x20the\x20grid\x20'+_0x276361+'\x20in\x20existing\x20cluster\x20\x27'+_0x530cdb+'\x27';continue;}break;}}else global_registry[_0x42cf3c(0x2bb)]=_0x24f922['gridProfile'];}global_registry['gridName']=_0x437e13;const _0x5e7160={'method':_0x131c52[_0x42cf3c(0x24b)],'headers':_0x131c52['TxseV'](getAuthHeader,_0x58019f[_0x42cf3c(0x2eb)]['username'],_0x58019f['Browserstack'][_0x42cf3c(0x294)]),'throwHttpErrors':![]},_0x2fc350=_0x42cf3c(0x2f6)+AG_API_URL+_0x42cf3c(0x2cd),_0x7796f3={};_0x7796f3[_0x42cf3c(0x2f1)]=_0x437e13;const _0x4dd7f1={'searchParams':_0x7796f3,'throwHttpErrors':![],..._0x5e7160},_0x28f55f=_0x4dd7f1,_0x3c0cfa=await _0x131c52[_0x42cf3c(0x2d5)](got,_0x2fc350,_0x28f55f);if(_0x131c52[_0x42cf3c(0x20e)](_0x3c0cfa,null)||_0x131c52[_0x42cf3c(0x20e)](_0x3c0cfa,undefined)){if(_0x131c52[_0x42cf3c(0x1ed)](_0x131c52[_0x42cf3c(0x214)],_0x131c52[_0x42cf3c(0x23b)])){const _0x5c020b={};_0x5c020b[_0x42cf3c(0x1f2)]=_0x282857[_0x42cf3c(0x2a4)],_0x5c020b[_0x42cf3c(0x207)]=_0x5ee859,_0x4ada86[_0x42cf3c(0x29c)](_0x2f6721,_0x5c020b,_0x131c52[_0x42cf3c(0x210)],!![]);}else _0x2f0939=_0x131c52[_0x42cf3c(0x26a)],await _0x131c52['WSRBP'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x289)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1);}_0x131c52[_0x42cf3c(0x298)](_0x3c0cfa[_0x42cf3c(0x1e9)],0x191)&&(_0x131c52[_0x42cf3c(0x298)](_0x131c52['KaoxM'],_0x131c52[_0x42cf3c(0x2ce)])?(_0x2f0939=_0x131c52[_0x42cf3c(0x275)],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x2f9)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x1347a0=_0x1b215b[_0x42cf3c(0x2f1)]);_0x131c52[_0x42cf3c(0x2be)](_0x3c0cfa[_0x42cf3c(0x1e9)],0xc8)&&(_0x131c52['yDYBD'](_0x131c52[_0x42cf3c(0x1d9)],_0x131c52['nQXeR'])?(_0x2f0939=_0x42cf3c(0x28e)+JSON[_0x42cf3c(0x24c)](_0x3c0cfa),await _0x131c52[_0x42cf3c(0x1ca)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x299)],_0x131c52['yeynG']),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x59761e['isPrivateGrid']=!![]);const _0x15cb67=JSON[_0x42cf3c(0x225)](_0x3c0cfa[_0x42cf3c(0x1ef)]),_0x16bc82={};_0x16bc82[_0x42cf3c(0x1f2)]=WS_EVENTS['CLI_RUN_STARTED'],_0x16bc82[_0x42cf3c(0x207)]=_0x42cf3c(0x1d8),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x16bc82);const _0x3c940c={};_0x3c940c[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x3c940c[_0x42cf3c(0x207)]=_0x131c52[_0x42cf3c(0x2d4)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x3c940c);_0x15cb67[_0x42cf3c(0x22b)]&&(_0x131c52[_0x42cf3c(0x1f1)](_0x131c52[_0x42cf3c(0x2a6)],_0x131c52[_0x42cf3c(0x2a6)])?(_0x2f0939=_0x131c52[_0x42cf3c(0x216)],await _0x131c52['oUBMn'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52['caUuo'],_0x131c52[_0x42cf3c(0x226)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):_0x2443b6['sendResourceDataToHST']());const _0xf2fbe5=_0x15cb67[_0x42cf3c(0x26b)];let _0x523abb=_0xf2fbe5[_0x15cb67[_0x42cf3c(0x23c)]];if(_0x24f922[_0x42cf3c(0x2bb)]){if(_0x131c52['DpItV'](_0x131c52['eBowu'],_0x131c52['AAKIc']))_0x523abb=_0xf2fbe5[_0x24f922[_0x42cf3c(0x2bb)]];else{const _0x18a3bb={};_0x18a3bb['type']=_0x54b16b['LOG'],_0x18a3bb[_0x42cf3c(0x207)]='Cluster\x20'+_0x42e94c+_0x42cf3c(0x297),_0x45e23f['sendEventToBackend'](_0x20d00b,_0x18a3bb,_0x131c52[_0x42cf3c(0x220)]),_0x3d40ca[_0x42cf3c(0x1e3)]('Cluster\x20'+_0x7a05c1+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3e07df=!![];}}if(_0x131c52[_0x42cf3c(0x2e1)](_0x190125,![])){if(_0x131c52[_0x42cf3c(0x209)](_0x131c52['eiSCK'],_0x131c52[_0x42cf3c(0x2e2)]))_0x573ad5=_0xe3146a[_0x4136c3[_0x42cf3c(0x2bb)]];else{_0x131c52[_0x42cf3c(0x256)](_0x523abb,undefined)&&(_0x131c52[_0x42cf3c(0x2be)](_0x131c52['Miaax'],_0x131c52['Miaax'])?_0x5ca529[_0x42cf3c(0x265)]={}:(_0x2f0939=_0x131c52[_0x42cf3c(0x2e5)],await _0x131c52[_0x42cf3c(0x240)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['pIsWz'],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)));global_registry[_0x42cf3c(0x278)]=_0x523abb['id'],_0x2f0939=_0x42cf3c(0x1df)+_0x437e13+_0x42cf3c(0x1f6)+_0x523abb[_0x42cf3c(0x2b7)]+_0x42cf3c(0x2a2),logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x5b85fa={};_0x5b85fa['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5b85fa[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x5b85fa),_0x2ae629=_0x523abb[_0x42cf3c(0x265)],_0x5eca07=_0x523abb[_0x42cf3c(0x1e1)],_0xc208a6=_0x523abb[_0x42cf3c(0x2bf)],_0xb49e46=_0x523abb[_0x42cf3c(0x2e7)],_0x192d85=_0x523abb[_0x42cf3c(0x28f)],_0x5837d4=_0x523abb[_0x42cf3c(0x267)],securityGroups=_0x523abb[_0x42cf3c(0x2db)],subnets=_0x523abb[_0x42cf3c(0x24a)],_0xb2dc79=_0x523abb[_0x42cf3c(0x25a)],_0x86bf72=_0x523abb[_0x42cf3c(0x2cc)],_0x18ba3f=_0x523abb[_0x42cf3c(0x25b)],_0x386e50=_0x15cb67[_0x42cf3c(0x2b0)],_0x5c25e5=_0x15cb67[_0x42cf3c(0x21b)],_0x131c52[_0x42cf3c(0x1d7)](_0x523abb[_0x42cf3c(0x2d6)],undefined)&&_0x523abb['privateGrid']&&(_0x131c52[_0x42cf3c(0x2ba)](_0x131c52[_0x42cf3c(0x24f)],_0x131c52[_0x42cf3c(0x24f)])?_0x111b7d[_0x42cf3c(0x2bb)]=_0x3755ff[_0x42cf3c(0x2bb)]:global_registry[_0x42cf3c(0x23d)]=!![]),_0x131c52['kMass'](updateGlobalRegistryWithConfig,_0x2ae629,_0x5eca07,_0xc208a6,_0xb49e46,_0x192d85,_0xb2dc79,_0x523abb,_0x386e50,_0x5c25e5,_0x86bf72,_0x18ba3f);}}else{if(_0x131c52['fjOvZ'](_0x131c52['dhQsk'],_0x131c52['neOSN'])){const _0xa53c18={};_0xa53c18[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2bc)],_0xa53c18[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x3abf65={};_0x3abf65[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2a8)],_0x3abf65[_0x42cf3c(0x1f2)]=_0x131c52['FBefd'];const _0x64ce29={};_0x64ce29[_0x42cf3c(0x219)]=_0x131c52['hJnJg'],_0x64ce29['type']=_0x131c52[_0x42cf3c(0x232)];const _0x1d7722={};_0x1d7722[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2e3)],_0x1d7722[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x322cf2={};_0x322cf2[_0x42cf3c(0x219)]=_0x131c52['jutks'],_0x322cf2[_0x42cf3c(0x1f2)]=_0x131c52[_0x42cf3c(0x232)];const _0x54a1ae={};_0x54a1ae[_0x42cf3c(0x219)]=_0x131c52[_0x42cf3c(0x2de)],_0x54a1ae[_0x42cf3c(0x1f2)]=_0x131c52['FBefd'];const _0x3d1f2c={};return _0x3d1f2c['grid-name']=_0xa53c18,_0x3d1f2c['grid-profile']=_0x3abf65,_0x3d1f2c[_0x42cf3c(0x263)]=_0x64ce29,_0x3d1f2c[_0x42cf3c(0x229)]=_0x1d7722,_0x3d1f2c[_0x42cf3c(0x2bf)]=_0x322cf2,_0x3d1f2c['private-grid']=_0x54a1ae,_0x5c76e6[_0x42cf3c(0x1fa)](_0x5bbfdf[_0x42cf3c(0x2b5)])['epilogue'](_0x332c03)[_0x42cf3c(0x2f2)](_0x3d1f2c)['help'](_0x131c52[_0x42cf3c(0x2a0)])[_0x42cf3c(0x2e6)];}else{const _0x164cf7=_0x131c52['UOJXS'][_0x42cf3c(0x241)]('|');let _0x560b75=0x0;while(!![]){switch(_0x164cf7[_0x560b75++]){case'0':global_registry[_0x42cf3c(0x2b0)]=_0x15cb67[_0x42cf3c(0x2b0)];continue;case'1':global_registry['clusterName']=_0x5eca07;continue;case'2':const _0x42a802={};_0x42a802['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x42a802['message']=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x42a802);continue;case'3':global_registry[_0x42cf3c(0x21b)]=_0x15cb67[_0x42cf3c(0x21b)];continue;case'4':logger[_0x42cf3c(0x1e3)](_0x2f0939);continue;case'5':_0x2f0939=_0x42cf3c(0x1ea)+_0x437e13+_0x42cf3c(0x2ae)+_0x5eca07+'\x27';continue;case'6':global_registry[_0x42cf3c(0x265)]=_0x2ae629;continue;case'7':const _0x28f95c={};_0x28f95c[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x1d5)],_0x28f95c['message']=_0x42cf3c(0x1d8),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x28f95c);continue;case'8':global_registry[_0x42cf3c(0x2ef)]=_0xc208a6;continue;}break;}}}const _0x4d8417=await _0x131c52['HHYZN'](getCloudProviderObject,_0x2ae629,_0x5eca07,_0x437e13,_0x140842,webSocketUtils,_0x24f922),_0x422d1c=_0x58019f[_0x42cf3c(0x265)]||{};if(_0x131c52[_0x42cf3c(0x2ec)](_0x422d1c[_0x2ae629],undefined)){logger['info'](_0x131c52['VaZzo']);_0x131c52[_0x42cf3c(0x2cb)](_0x58019f[_0x42cf3c(0x265)],undefined)&&(_0x58019f[_0x42cf3c(0x265)]={});_0x58019f['cloudProvider'][_0x2ae629]={};const _0x491dde=await _0x131c52[_0x42cf3c(0x206)](inputCloudProviderKeys,_0x2ae629,_0x58019f,_0x4d8417);fs['writeFileSync'](_0x131c52['MSVYo'](getCredentialsPath),JSON[_0x42cf3c(0x24c)](_0x491dde)),logger[_0x42cf3c(0x27e)](_0x131c52[_0x42cf3c(0x223)]);}else{_0x2f0939=_0x131c52[_0x42cf3c(0x276)];const _0x3c0eda={};_0x3c0eda[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x3c0eda[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x3c0eda),logger[_0x42cf3c(0x1e3)](_0x2f0939),await _0x4d8417[_0x42cf3c(0x2ed)](_0x422d1c);}_0x4d8417[_0x42cf3c(0x296)]();_0x131c52[_0x42cf3c(0x24d)](_0x2ae629,AZURE)&&_0x4d8417['sendResourceDataToHST']();let _0x4d2347;if(_0x131c52[_0x42cf3c(0x2cb)](_0x190125,![])){_0x2f0939='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0xc208a6+').';const _0x4c1c18={};_0x4c1c18['type']=WS_EVENTS['LOG'],_0x4c1c18[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x4c1c18),logger['info'](_0x2f0939);const _0x35fd36=await _0x4d8417[_0x42cf3c(0x1cb)]();if(_0x35fd36){const _0x2ee3f8={};_0x2ee3f8['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2ee3f8[_0x42cf3c(0x207)]='Cluster\x20'+_0x5eca07+_0x42cf3c(0x297),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2ee3f8,_0x131c52[_0x42cf3c(0x220)]),logger[_0x42cf3c(0x1e3)]('Cluster\x20'+_0x5eca07+_0x42cf3c(0x297)),_0x190125=!![];}else{const _0x5ebc54={};_0x5ebc54['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5ebc54[_0x42cf3c(0x207)]=_0x131c52['Tfiom'],webSocketUtils['sendEventToBackend'](_0x140842,_0x5ebc54),logger[_0x42cf3c(0x1e3)](_0x131c52['Tfiom']);const _0x3c69b6=_0x131c52[_0x42cf3c(0x238)](_0x5837d4,null)&&_0x131c52[_0x42cf3c(0x300)](_0x5837d4,undefined),_0x5a110a=_0x131c52[_0x42cf3c(0x238)](subnets,null)&&_0x131c52[_0x42cf3c(0x2ba)](subnets,undefined)&&_0x131c52[_0x42cf3c(0x2ab)](subnets[_0x42cf3c(0x21d)],0x0);if(_0x3c69b6){_0x131c52[_0x42cf3c(0x2c7)](_0x5a110a,![])&&(_0x2f0939=_0x131c52['WBpDh'],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x20d)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process['exit'](0x1));const _0x4cb563=await _0x4d8417['isVPCPresent'](_0x5837d4);_0x131c52['KAUOK'](_0x4cb563,![])?(_0x2f0939=_0x131c52[_0x42cf3c(0x2b6)],await _0x131c52[_0x42cf3c(0x1ca)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x248)],_0x131c52['yeynG']),logger[_0x42cf3c(0x260)](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x5837d4+'\x20');const _0xcb1757=await _0x4d8417[_0x42cf3c(0x27b)](subnets,_0x5837d4);_0x131c52[_0x42cf3c(0x2e1)](_0xcb1757[0x0],![])?(_0x2f0939=_0x42cf3c(0x235)+JSON[_0x42cf3c(0x24c)](_0xcb1757[0x1])+_0x42cf3c(0x1fe)+_0x5837d4+_0x42cf3c(0x2b3),await _0x131c52[_0x42cf3c(0x1f0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x1f9)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1)):logger[_0x42cf3c(0x1e3)](_0x42cf3c(0x249)+JSON[_0x42cf3c(0x24c)](subnets)+'\x20'),await _0x4d8417[_0x42cf3c(0x2df)](_0x5837d4,subnets);}else{const _0x1fe3d2=_0x131c52['ECYwm']['split']('|');let _0x195598=0x0;while(!![]){switch(_0x1fe3d2[_0x195598++]){case'0':logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x1fc)]);continue;case'1':const _0x580ffd={};_0x580ffd[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x580ffd[_0x42cf3c(0x207)]=_0x131c52['wTxel'],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x580ffd);continue;case'2':logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x1d3)]);continue;case'3':await _0x4d8417['setupNewCluster']();continue;case'4':const _0x509e73={};_0x509e73[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x509e73[_0x42cf3c(0x207)]=_0x42cf3c(0x29f),webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x509e73);continue;}break;}}}}_0x190125&&_0x131c52[_0x42cf3c(0x204)](_0x2ae629,AZURE)&&(await _0x4d8417[_0x42cf3c(0x2e8)](),await _0x4d8417[_0x42cf3c(0x280)]());const [_0x229656,_0x5aea49,_0x445292,_0x586452,_0x241767,_0xaa190a]=await _0x131c52[_0x42cf3c(0x251)](createK8sClient,_0x4d8417);_0x131c52[_0x42cf3c(0x203)](_0x190125,![])&&_0x131c52[_0x42cf3c(0x2f7)](_0x2ae629,AWS)&&(global_registry[_0x42cf3c(0x2d9)]=!![],_0x4d2347=await _0x4d8417['setupAutoscaler'](_0x229656,_0x24f922));try{_0x4dd117=_0x131c52[_0x42cf3c(0x1e7)](kebabCase,_0x437e13),logger['info'](_0x131c52[_0x42cf3c(0x23a)]);const _0x511fe0={};_0x511fe0[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x511fe0[_0x42cf3c(0x207)]=_0x131c52['bGewZ'],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x511fe0);if(_0x131c52['glRkc'](_0x4dd117,_0x131c52[_0x42cf3c(0x261)])){const _0x8abcfa={};_0x8abcfa['createdBy']=_0x131c52[_0x42cf3c(0x2b4)],_0x8abcfa[_0x42cf3c(0x2bd)]=_0x131c52[_0x42cf3c(0x2b4)];const _0x128da0={};_0x128da0[_0x42cf3c(0x2b7)]=_0x4dd117,_0x128da0['annotations']=_0x8abcfa;const _0xbe4418={};_0xbe4418[_0x42cf3c(0x20b)]=_0x128da0;let _0x53cdae=_0xbe4418;const _0xe32750={};_0xe32750['body']=_0x53cdae,await _0x229656[_0x42cf3c(0x201)](_0xe32750),logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x21f)]);}const _0x102e67={};_0x102e67[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x102e67[_0x42cf3c(0x207)]=_0x131c52[_0x42cf3c(0x2d8)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x102e67);const _0x2e41ac={};_0x2e41ac['type']=WS_EVENTS['LOG'],_0x2e41ac['message']=_0x131c52[_0x42cf3c(0x291)],webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2e41ac),logger[_0x42cf3c(0x1e3)](_0x131c52[_0x42cf3c(0x234)]);let _0x1aa259={};_0x131c52['HJBmw'](_0x2ae629,AZURE)&&(_0x1aa259={'clientId':await _0x4d8417['getResourceClientId'](_0x42cf3c(0x1e4)+_0x5eca07)});await _0x131c52[_0x42cf3c(0x1fd)](addGridComponents,_0x229656,_0x5aea49,_0x445292,_0x586452,_0x4dd117,_0x5eca07,_0x4d2347,_0x241767,_0xaa190a,_0x1aa259),_0x2f0939=_0x131c52['EatvJ'],logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x2037b8={};_0x2037b8[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2037b8[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x2037b8),_0x2f0939=_0x131c52[_0x42cf3c(0x288)],logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x2dc052={};_0x2dc052[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x2dc052[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils['sendEventToBackend'](_0x140842,_0x2dc052),await _0x131c52[_0x42cf3c(0x28b)](waitForDeployment,_0x5aea49,_0x4dd117,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4fb741=await _0x131c52[_0x42cf3c(0x26d)](getNamespaceUID,_0x229656,_0x4dd117);let _0x4f1736=global_registry[_0x42cf3c(0x23d)]?_0x131c52['yOeEF']:_0x131c52[_0x42cf3c(0x283)];const _0x3c42eb={};_0x3c42eb[_0x42cf3c(0x2b7)]=_0x4f1736,_0x3c42eb[_0x42cf3c(0x1cc)]=_0x131c52[_0x42cf3c(0x1f8)];let _0x5d7562=await _0x229656['readNamespacedService'](_0x3c42eb),_0x57c83c=_0x4d8417['getGridHostname'](_0x5d7562)+'/'+_0x4dd117,_0x32c175=_0x131c52[_0x42cf3c(0x250)];try{const _0x510d22=_0x42cf3c(0x2f6)+AG_API_URL+_0x42cf3c(0x20f)+_0x4fb741,_0x5a84db=await _0x131c52[_0x42cf3c(0x2d0)](got,_0x510d22,_0x5e7160);(_0x131c52[_0x42cf3c(0x2f7)](_0x5a84db,null)||_0x131c52[_0x42cf3c(0x2f7)](_0x5a84db,undefined))&&(_0x2f0939=_0x131c52[_0x42cf3c(0x2aa)],await _0x131c52['WSRBP'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x1db)],_0x131c52[_0x42cf3c(0x2b8)],_0x131c52[_0x42cf3c(0x210)]),logger[_0x42cf3c(0x260)](_0x2f0939),process['exit'](0x1));_0x131c52[_0x42cf3c(0x2ee)](_0x5a84db[_0x42cf3c(0x1e9)],0x191)&&(_0x2f0939=_0x131c52[_0x42cf3c(0x2a7)],await _0x131c52[_0x42cf3c(0x2e0)](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes[_0x42cf3c(0x254)],_0x131c52['caUuo'],_0x131c52[_0x42cf3c(0x25c)],_0x131c52[_0x42cf3c(0x210)]),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1));_0x131c52['wiwef'](_0x5a84db[_0x42cf3c(0x1e9)],0xc8)&&(_0x2f0939=_0x42cf3c(0x1e0)+JSON[_0x42cf3c(0x24c)](_0x5a84db),await _0x131c52['GaIpN'](reportToGalactusAndSendToEDS,_0x24f922,_0x140842,_0x2f0939,messageTypes['ERROR'],_0x131c52[_0x42cf3c(0x1db)],_0x131c52['BiasN'],_0x131c52['yeynG']),logger['error'](_0x2f0939),process[_0x42cf3c(0x227)](0x1));const _0x4831d1=JSON[_0x42cf3c(0x225)](_0x5a84db[_0x42cf3c(0x1ef)]);_0x4831d1['route53']&&(_0x57c83c=_0x4831d1[_0x42cf3c(0x22a)],_0x32c175=_0x131c52[_0x42cf3c(0x2c8)]),global_registry[_0x42cf3c(0x23d)]&&(_0x32c175=_0x131c52[_0x42cf3c(0x250)]);}catch(_0x2c33b4){}_0x2f0939=_0x42cf3c(0x255)+_0x57c83c+'\x20',logger[_0x42cf3c(0x1e3)](_0x2f0939);const _0x4d0342={};_0x4d0342['type']=WS_EVENTS[_0x42cf3c(0x2a4)],_0x4d0342[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x4d0342),_0x2f0939=_0x42cf3c(0x246)+_0x32c175+'://'+_0x57c83c+'/wd/hub',logger['info'](_0x2f0939);const _0x5a4387={};_0x5a4387[_0x42cf3c(0x1f2)]=WS_EVENTS[_0x42cf3c(0x2a4)],_0x5a4387[_0x42cf3c(0x207)]=_0x2f0939,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x5a4387);const _0x1a5426={};_0x1a5426['type']=WS_EVENTS[_0x42cf3c(0x2fa)],_0x1a5426[_0x42cf3c(0x207)]=_0x42cf3c(0x2c1)+_0x57c83c,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x1a5426),await webSocketUtils['delay'](0x7d0);}catch(_0x2921f0){logger['error'](_0x42cf3c(0x274)+_0x2921f0+'\x20\x0a'+JSON['stringify'](_0x2921f0[_0x42cf3c(0x22f)]));if(_0x131c52[_0x42cf3c(0x2d1)](_0x190125,![]))try{logger[_0x42cf3c(0x1e3)](_0x42cf3c(0x21e)),await _0x131c52[_0x42cf3c(0x29a)](removeGridComponents,_0x229656,_0x5aea49,_0x445292,_0x586452,_0x4dd117),await _0x4d8417['deleteCluster'](_0x229656,global_registry[_0x42cf3c(0x2ef)]);}catch(_0x23c46e){logger[_0x42cf3c(0x260)](_0x42cf3c(0x281)+_0x23c46e+'\x20\x0a'+JSON[_0x42cf3c(0x24c)](_0x23c46e['stack']));}throw _0x2921f0;}}catch(_0x220df6){const _0x3c4785=_0x42cf3c(0x2f4)+_0x220df6+'\x20\x0a'+JSON[_0x42cf3c(0x24c)](_0x220df6[_0x42cf3c(0x22f)]);if(_0x140842){const _0x249119={};_0x249119[_0x42cf3c(0x1f2)]=WS_EVENTS['LOG'],_0x249119[_0x42cf3c(0x207)]=_0x3c4785,webSocketUtils[_0x42cf3c(0x29c)](_0x140842,_0x249119,_0x131c52[_0x42cf3c(0x210)],!![]);}await webSocketUtils[_0x42cf3c(0x295)](0x7d0);const _0x107167={};_0x107167[_0x42cf3c(0x260)]=_0x3c4785,await _0x131c52[_0x42cf3c(0x258)](sendInstrumentationEvent,_0x24f922,_0x131c52['caUuo'],messageTypes[_0x42cf3c(0x254)],_0x131c52[_0x42cf3c(0x2c6)],_0x107167,_0x24f922),logger[_0x42cf3c(0x260)](_0x3c4785);}process[_0x42cf3c(0x227)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x4d33f2=a10_0x5c1a;(function(_0x6c0600,_0x20282f){const _0x9e61f8=a10_0x5c1a,_0xf6c057=_0x6c0600();while(!![]){try{const _0x19c389=parseInt(_0x9e61f8(0x164))/0x1*(-parseInt(_0x9e61f8(0x173))/0x2)+parseInt(_0x9e61f8(0x15c))/0x3*(parseInt(_0x9e61f8(0x16b))/0x4)+-parseInt(_0x9e61f8(0x174))/0x5+-parseInt(_0x9e61f8(0x160))/0x6+parseInt(_0x9e61f8(0x163))/0x7*(-parseInt(_0x9e61f8(0x166))/0x8)+-parseInt(_0x9e61f8(0x168))/0x9+parseInt(_0x9e61f8(0x16c))/0xa*(parseInt(_0x9e61f8(0x161))/0xb);if(_0x19c389===_0x20282f)break;else _0xf6c057['push'](_0xf6c057['shift']());}catch(_0xb738d1){_0xf6c057['push'](_0xf6c057['shift']());}}}(a10_0xfb2d,0xe8d7c));function a10_0x5c1a(_0xca2f1b,_0x5f2426){const _0xfb2d3b=a10_0xfb2d();return a10_0x5c1a=function(_0x5c1a4f,_0x43a321){_0x5c1a4f=_0x5c1a4f-0x15c;let _0x5baa4c=_0xfb2d3b[_0x5c1a4f];return _0x5baa4c;},a10_0x5c1a(_0xca2f1b,_0x5f2426);}function a10_0xfb2d(){const _0x25ba39=['desc','4niPqth','20mVMuOi','List\x20Grid\x20resources.','recommendCommands','vWcyZ','../config/constants','delete_commands','handler','1025834LMsvSF','4739450SbwWXW','help','965421hUgeny','delete','epilogue','usage','10937178vReEub','33738892ifYJWx','uTDrq','12971bYIdFu','1OTRPgf','strict','6056QRAjdz','commandDir','7344324vtRtUH','builder'];a10_0xfb2d=function(){return _0x25ba39;};return a10_0xfb2d();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x4d33f2(0x170));exports['command']=a10_0x4d33f2(0x15d),exports[a10_0x4d33f2(0x16a)]=a10_0x4d33f2(0x16d),exports[a10_0x4d33f2(0x169)]=function(_0x336329){const _0x1be068=a10_0x4d33f2,_0x405d7a={};_0x405d7a[_0x1be068(0x162)]=_0x1be068(0x171),_0x405d7a[_0x1be068(0x16f)]=_0x1be068(0x175);const _0x8831b4=_0x405d7a;return _0x336329[_0x1be068(0x15f)](HELP_HEADER_MESSAGE[_0x1be068(0x15d)])[_0x1be068(0x15e)](HELP_FOOTER_MESSAGE)[_0x1be068(0x167)](_0x8831b4[_0x1be068(0x162)])['demandCommand']()[_0x1be068(0x16e)]()[_0x1be068(0x165)]()[_0x1be068(0x175)](_0x8831b4[_0x1be068(0x16f)]);},exports[a10_0x4d33f2(0x172)]=function(_0xdc97d0){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x55e933=a11_0x2707;function a11_0x2707(_0x452106,_0x17aa86){const _0x10d61f=a11_0x10d6();return a11_0x2707=function(_0x270710,_0xb45163){_0x270710=_0x270710-0x6f;let _0x159403=_0x10d61f[_0x270710];return _0x159403;},a11_0x2707(_0x452106,_0x17aa86);}function a11_0x10d6(){const _0x5d2a0c=['gridId','Delete\x20an\x20Automation\x20grid.','../../utils/instrumentationUtils','warn','onlyGridInCluster','aSoqd','\x22\x20with\x20ID\x20','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','message','/packages/cli/grid/','https://','NESwg','zhFil','sTrXd','catch','Orioe','desc','nqVuk','YMYeq','jiplp','898618QFIuJA','unauthorised','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','tTCck','IWjuZ','3887760puwaob','adwVm','Pass\x20the\x20ID\x20of\x20the\x20Grid','options','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','toLowerCase','name','../../config/constants','writeFileSync','grid-id','ltQxV','help','1205436iPuFsy','nJcJh','VjSqg','statusCode','WhiyY','IWQlr','iispQ','CTCVi','deleteCluster','LFdKx','readFileSync','hqpCe','SAYOd','tVtEG','username','cloudProvider','delete-grid-called','hLtMd','parse','NAOkK','body','../../utils/userInput','string','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','\x22\x20and\x20ID\x20','Namespace:\x20','grid','ULvqR','debug','Successfully\x20deleted\x20the\x20grid','YjkYM','AHAjz','../../utils/gridComponents','uuid','jJgTg','nqOLe','IDADo','password','Browserstack','unknown-error','XWJtc','INFO','requestId','stringify','tcTOF','6675FVIowk','mDyJa','lLUyz','usage','ZYJVY','../../utils/createk8sClient','ZDnjF','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','handler','kIOqx','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','4354791gTlDIo','clusterId','description','hfkSz','epilogue','../../config/logger','YvKLr','init-not-called','readNamespace','iRrIZ','kRSTQ','sPlMT','fetchLocalCreds','clusterName','8AimaBz','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','type','xeMlx','error','region','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','configureIfNotConfigured','onLaU','TInqO','argv','ltyJk','exit','existsSync','melTO','bUiOb','command','VFFdI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','muOpj','KbxCR','1305364SSHjwc','ipegY','lybiP','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','clusterRegion','mBgGc','AfTNG','info','kCMhd','1127394NTzlYA','5KfSfWH','delete','then','got','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lSXhN','Failed\x20to\x20delete\x20resources!\x20Error:\x20','jfTZW','wGdQJ'];a11_0x10d6=function(){return _0x5d2a0c;};return a11_0x10d6();}(function(_0x4a5cc0,_0x1aae34){const _0x22aaa2=a11_0x2707,_0x15893c=_0x4a5cc0();while(!![]){try{const _0xdbf55e=-parseInt(_0x22aaa2(0xc5))/0x1+parseInt(_0x22aaa2(0x87))/0x2+-parseInt(_0x22aaa2(0x98))/0x3+-parseInt(_0x22aaa2(0xf3))/0x4*(-parseInt(_0x22aaa2(0xfe))/0x5)+-parseInt(_0x22aaa2(0x8c))/0x6+parseInt(_0x22aaa2(0xd0))/0x7+-parseInt(_0x22aaa2(0xde))/0x8*(-parseInt(_0x22aaa2(0xfd))/0x9);if(_0xdbf55e===_0x1aae34)break;else _0x15893c['push'](_0x15893c['shift']());}catch(_0x3403db){_0x15893c['push'](_0x15893c['shift']());}}}(a11_0x10d6,0x71e96));const fs=require('fs'),got=require(a11_0x55e933(0x101)),{v4:uuidv4}=require(a11_0x55e933(0xb9)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x55e933(0x93)),{logger}=require(a11_0x55e933(0xd5)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x55e933(0xb8)),{sendInstrumentationEvent}=require(a11_0x55e933(0x75)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x55e933(0xad)),{createK8sClient}=require(a11_0x55e933(0xca)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods');exports[a11_0x55e933(0xee)]=a11_0x55e933(0xb2),exports[a11_0x55e933(0x83)]=a11_0x55e933(0x74),exports['builder']=function(_0x21b16e){const _0x32cc4e=a11_0x55e933,_0x15693c={};_0x15693c['YMYeq']=_0x32cc4e(0x8e),_0x15693c[_0x32cc4e(0x8a)]=_0x32cc4e(0xae),_0x15693c[_0x32cc4e(0x72)]=_0x32cc4e(0x97);const _0x455bee=_0x15693c,_0x1a7d01={};_0x1a7d01[_0x32cc4e(0xd2)]=_0x455bee[_0x32cc4e(0x85)],_0x1a7d01[_0x32cc4e(0xe0)]=_0x455bee[_0x32cc4e(0x8a)];const _0x30d871={};return _0x30d871['grid-id']=_0x1a7d01,_0x21b16e[_0x32cc4e(0xc8)](HELP_HEADER_MESSAGE['delete'])[_0x32cc4e(0xd4)](HELP_FOOTER_MESSAGE)[_0x32cc4e(0x8f)](_0x30d871)['help'](_0x455bee[_0x32cc4e(0x72)])[_0x32cc4e(0xe8)];},exports[a11_0x55e933(0xcd)]=async function(_0xbb60f4){const _0x55188d=a11_0x55e933,_0x2f5a2a={'jiplp':_0x55188d(0x8e),'jJgTg':_0x55188d(0xae),'bUiOb':_0x55188d(0x97),'IDADo':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','onLaU':function(_0x4eee85,_0x30eb01){return _0x4eee85!==_0x30eb01;},'hfkSz':_0x55188d(0xa3),'dDEij':_0x55188d(0xec),'wvGMQ':function(_0x4f97c0){return _0x4f97c0();},'ZDnjF':function(_0x31f099){return _0x31f099();},'WhiyY':function(_0x2519ed,_0xc04516){return _0x2519ed!==_0xc04516;},'kRSTQ':_0x55188d(0x82),'mBgGc':_0x55188d(0x103),'iRrIZ':function(_0x195779,_0x3cd6aa,_0x976f80,_0x3c6428,_0x35a613,_0x121a19,_0x3280ad){return _0x195779(_0x3cd6aa,_0x976f80,_0x3c6428,_0x35a613,_0x121a19,_0x3280ad);},'sPlMT':_0x55188d(0xa8),'mpJjC':_0x55188d(0xd7),'muOpj':function(_0x39fa3b,_0x43be66,_0x4b7f33,_0x5f4a2a,_0x1c362c,_0x139011,_0xa01ef3){return _0x39fa3b(_0x43be66,_0x4b7f33,_0x5f4a2a,_0x1c362c,_0x139011,_0xa01ef3);},'MLuof':function(_0x4d99be,_0x2ed74f){return _0x4d99be!==_0x2ed74f;},'NAOkK':_0x55188d(0x9a),'tVtEG':function(_0x575ca0,_0x1b8113,_0x3bd51f,_0x40c7d1){return _0x575ca0(_0x1b8113,_0x3bd51f,_0x40c7d1);},'AfTNG':function(_0x156b43,_0x4e2bda){return _0x156b43===_0x4e2bda;},'RgnyK':_0x55188d(0xbe),'gcUUn':_0x55188d(0x96),'iispQ':_0x55188d(0xf5),'ipegY':function(_0x49714b,_0x382499){return _0x49714b(_0x382499);},'tcTOF':function(_0x20aab4,_0x324cb3){return _0x20aab4===_0x324cb3;},'jfTZW':function(_0x242d85,_0x384af7){return _0x242d85!==_0x384af7;},'kIOqx':'NAtlf','VFFdI':_0x55188d(0x7e),'XWJtc':_0x55188d(0x90),'ULvqR':function(_0x1e0a6d,_0xcd8532,_0x4db6e0,_0x51e416,_0x2d373c,_0x5e7e0d,_0xbc7990){return _0x1e0a6d(_0xcd8532,_0x4db6e0,_0x51e416,_0x2d373c,_0x5e7e0d,_0xbc7990);},'qTwIN':'invalid-input','kCMhd':function(_0x338e73,_0x444083){return _0x338e73!==_0x444083;},'hLtMd':_0x55188d(0xd6),'xeMlx':_0x55188d(0x78),'HMsDw':function(_0x17bba0,_0x334dc9,_0x5dadad,_0x1d4961,_0x2486fd){return _0x17bba0(_0x334dc9,_0x5dadad,_0x1d4961,_0x2486fd);},'KbxCR':'DXhoI','ilPdc':_0x55188d(0x80),'ltyJk':_0x55188d(0xaf),'nJcJh':function(_0x63c45c,_0x51c264){return _0x63c45c===_0x51c264;},'AHAjz':_0x55188d(0xbb),'zhFil':'iJdve','vbudL':_0x55188d(0x7a),'mDyJa':'PtSfk','CTCVi':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','ZYJVY':function(_0x1c2f1a,_0x17eb5d){return _0x1c2f1a(_0x17eb5d);},'EzdOz':function(_0x3a94d5,_0x560403,_0x1e46ab,_0x17aabb,_0x276efa,_0x50c139){return _0x3a94d5(_0x560403,_0x1e46ab,_0x17aabb,_0x276efa,_0x50c139);},'IWjuZ':'DELETE','UnLFd':function(_0x58589f,_0x5eed33,_0x5c4a9b){return _0x58589f(_0x5eed33,_0x5c4a9b);},'lSXhN':function(_0x46bdc7,_0x42ccb1,_0x7d83cf){return _0x46bdc7(_0x42ccb1,_0x7d83cf);},'SAYOd':function(_0x57de48,_0x24e717){return _0x57de48!==_0x24e717;},'lLUyz':function(_0x2f6e09,_0x583869){return _0x2f6e09!==_0x583869;},'TInqO':function(_0x43e7f4,_0x314451){return _0x43e7f4===_0x314451;},'nqVuk':'server-error','adwVm':_0x55188d(0x88),'IWQlr':function(_0x185137,_0x12cd1d){return _0x185137===_0x12cd1d;},'YjkYM':'invalid-grid-id','LFdKx':function(_0x21be8d,_0x31b817,_0xc15057,_0x267818,_0x8bab96,_0x2ebd7f,_0x32e6a3){return _0x21be8d(_0x31b817,_0xc15057,_0x267818,_0x8bab96,_0x2ebd7f,_0x32e6a3);},'yLWIr':_0x55188d(0xbf)};try{global_registry[_0x55188d(0xc2)]=_0x2f5a2a['wvGMQ'](uuidv4);!fs[_0x55188d(0xeb)](_0x2f5a2a[_0x55188d(0xcb)](getCredentialsPath))&&(_0x2f5a2a[_0x55188d(0x9c)](_0x2f5a2a[_0x55188d(0xda)],_0x2f5a2a['kRSTQ'])?_0x54c672[_0x55188d(0x76)]('Cluster:\x20'+_0x85c4d2[_0x55188d(0xdd)]+_0x55188d(0xf6)):(console['error'](_0x2f5a2a[_0x55188d(0xf9)]),await _0x2f5a2a[_0x55188d(0xd9)](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a['sPlMT'],messageTypes['ERROR'],_0x2f5a2a['mpJjC'],null,_0xbb60f4),process[_0x55188d(0xea)](0x1)));_0x2f5a2a['muOpj'](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a['sPlMT'],messageTypes[_0x55188d(0xc1)],null,null,_0xbb60f4);!_0xbb60f4[_0x55188d(0x73)]&&(_0x2f5a2a['MLuof'](_0x2f5a2a[_0x55188d(0xab)],_0x2f5a2a[_0x55188d(0xab)])?_0x343d34[_0x55188d(0xea)](0x0):(console[_0x55188d(0xe2)](_0x2f5a2a[_0x55188d(0xbc)]),process['exit'](0x1)));const _0x5db046=JSON['parse'](fs[_0x55188d(0xa2)](_0x2f5a2a[_0x55188d(0xcb)](getCredentialsPath))),[_0x43e240,_0x51627b]=await _0x2f5a2a[_0x55188d(0xa5)](getGridDetails,_0x5db046[_0x55188d(0xbe)]['username'],_0x5db046[_0x55188d(0xbe)][_0x55188d(0xbd)],_0xbb60f4[_0x55188d(0x73)]);if(_0x51627b){const _0x37234c=_0x51627b['info'];let _0x5353e2=_0x55188d(0xf7)+_0x37234c[_0x55188d(0x92)]+_0x55188d(0xb0)+_0x37234c['id']+_0x55188d(0xcc),_0x18aa4e;_0x51627b[_0x55188d(0x77)]&&_0x2f5a2a[_0x55188d(0xfa)](_0x51627b['clusterSpawnedVia'],_0x2f5a2a['RgnyK'])&&(_0x2f5a2a[_0x55188d(0xe6)](_0x2f5a2a['gcUUn'],_0x2f5a2a[_0x55188d(0x9e)])?_0x5353e2=_0x55188d(0xf7)+_0x37234c[_0x55188d(0x92)]+_0x55188d(0xb0)+_0x37234c['id']+_0x55188d(0xe4)+_0x37234c[_0x55188d(0xdd)]+'\x22\x20with\x20ID\x20'+_0x37234c[_0x55188d(0xd1)]+_0x55188d(0xcc):(_0x517bb0['warn']('Namespace:\x20'+_0x26b075+_0x55188d(0xdf)),_0x1da5fe=![]));_0x18aa4e=await _0x2f5a2a[_0x55188d(0xf4)](inputConfirmation,_0x5353e2);(_0x2f5a2a[_0x55188d(0xfa)](_0x18aa4e,undefined)||_0x2f5a2a['AfTNG'](_0x18aa4e,null)||!(_0x2f5a2a[_0x55188d(0xfa)](_0x18aa4e['toLowerCase'](),'y')||_0x2f5a2a['tcTOF'](_0x18aa4e['toLowerCase'](),'n')))&&(_0x2f5a2a[_0x55188d(0x71)](_0x2f5a2a[_0x55188d(0xce)],_0x2f5a2a[_0x55188d(0xef)])?(console[_0x55188d(0xe2)](_0x2f5a2a[_0x55188d(0xc0)]),await _0x2f5a2a['ULvqR'](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a[_0x55188d(0xdb)],messageTypes[_0x55188d(0x102)],_0x2f5a2a['qTwIN'],null,_0xbb60f4),process[_0x55188d(0xea)](0x1)):(_0x151a1a[_0x55188d(0xfb)](_0x55188d(0xb5)),_0x13b40e['exit'](0x0)));if(_0x2f5a2a[_0x55188d(0xc4)](_0x18aa4e[_0x55188d(0x91)](),'n')){if(_0x2f5a2a[_0x55188d(0xfc)](_0x2f5a2a[_0x55188d(0xa9)],_0x2f5a2a[_0x55188d(0xe1)]))process[_0x55188d(0xea)](0x0);else{const _0x17fb74={};_0x17fb74[_0x55188d(0xd2)]=_0x2f5a2a[_0x55188d(0x86)],_0x17fb74[_0x55188d(0xe0)]=_0x2f5a2a[_0x55188d(0xba)];const _0x4926ae={};return _0x4926ae[_0x55188d(0x95)]=_0x17fb74,_0x517fd2[_0x55188d(0xc8)](_0x20b943[_0x55188d(0xff)])['epilogue'](_0x1c9310)[_0x55188d(0x8f)](_0x4926ae)[_0x55188d(0x97)](_0x2f5a2a[_0x55188d(0xed)])[_0x55188d(0xe8)];}}global_registry[_0x55188d(0xf8)]=_0x37234c[_0x55188d(0xe3)];const _0x419d07=_0x37234c[_0x55188d(0xa7)],_0x44965a=await _0x2f5a2a['HMsDw'](getCloudProviderObject,_0x419d07,_0x37234c[_0x55188d(0xdd)],_0x37234c[_0x55188d(0x92)],_0xbb60f4),_0x3490c4=_0x5db046['cloudProvider'];if(_0x2f5a2a[_0x55188d(0xfa)](_0x3490c4[_0x419d07],undefined)){if(_0x2f5a2a['onLaU'](_0x2f5a2a[_0x55188d(0xf2)],_0x2f5a2a['ilPdc'])){logger[_0x55188d(0xfb)](_0x2f5a2a[_0x55188d(0xe9)]);_0x2f5a2a[_0x55188d(0x99)](_0x5db046[_0x55188d(0xa7)],undefined)&&(_0x2f5a2a[_0x55188d(0x9c)](_0x2f5a2a[_0x55188d(0xb7)],_0x2f5a2a[_0x55188d(0x7f)])?_0x5db046['cloudProvider']={}:(_0x3c6c73[_0x55188d(0xe2)](_0x2f5a2a['IDADo']),_0x439943[_0x55188d(0xea)](0x1)));_0x5db046['cloudProvider'][_0x419d07]={};const _0x115f6c=await _0x2f5a2a['tVtEG'](inputCloudProviderKeys,_0x419d07,_0x5db046,_0x44965a);fs[_0x55188d(0x94)](_0x2f5a2a[_0x55188d(0xcb)](getCredentialsPath),JSON[_0x55188d(0xc3)](_0x115f6c)),logger[_0x55188d(0xb4)](_0x2f5a2a['vbudL']);}else _0x48768a['cloudProvider']={};}else _0x2f5a2a[_0x55188d(0x99)](_0x2f5a2a['mDyJa'],_0x2f5a2a[_0x55188d(0xc6)])?(logger[_0x55188d(0xfb)](_0x2f5a2a[_0x55188d(0x9f)]),await _0x44965a[_0x55188d(0xdc)](_0x3490c4)):_0x2b350c=_0x55188d(0xf7)+_0x3ee159[_0x55188d(0x92)]+_0x55188d(0xb0)+_0x42ca51['id']+_0x55188d(0xe4)+_0x36609f[_0x55188d(0xdd)]+_0x55188d(0x79)+_0x517d55['clusterId']+_0x55188d(0xcc);_0x44965a[_0x55188d(0xe5)]();const _0x32bb15=_0x2f5a2a['ipegY'](kebabCase,_0x37234c[_0x55188d(0x92)]),[_0x3d229a,_0x1b481c,_0x1d0470,_0x4d50c0,_0x49f575,_0x4321ce]=await _0x2f5a2a[_0x55188d(0xc9)](createK8sClient,_0x44965a);let _0x5af6c7=!![];const _0xcf5738={};_0xcf5738[_0x55188d(0x92)]=_0x32bb15,await _0x3d229a[_0x55188d(0xd8)](_0xcf5738)[_0x55188d(0x100)](_0x54343c=>{const _0x32cc39=_0x55188d;_0x2f5a2a['onLaU'](_0x2f5a2a[_0x32cc39(0xd3)],_0x2f5a2a['dDEij'])?logger[_0x32cc39(0xfb)](_0x32cc39(0xb1)+_0x32bb15+_0x32cc39(0x89)):_0x44fbaa[_0x32cc39(0xfb)](_0x32cc39(0xb1)+_0x230cfb+_0x32cc39(0x89));})[_0x55188d(0x81)](_0x259a79=>{const _0x52b8e9=_0x55188d;logger[_0x52b8e9(0x76)](_0x52b8e9(0xb1)+_0x32bb15+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x5af6c7=![];});if(_0x5af6c7){await _0x2f5a2a['EzdOz'](removeGridComponents,_0x3d229a,_0x1b481c,_0x1d0470,_0x4d50c0,_0x32bb15);if(_0x51627b['onlyGridInCluster']){const _0xfbab22=await _0x44965a['isBrowserstackCluster']();_0xfbab22?await _0x44965a[_0x55188d(0xa0)](_0x3d229a,_0x37234c['region']):logger[_0x55188d(0x76)]('Cluster:\x20'+_0x37234c['clusterName']+_0x55188d(0xf6));}}const _0x32c310=_0x55188d(0x7d)+AG_API_URL+_0x55188d(0x7c)+_0xbb60f4[_0x55188d(0x73)],_0x4420e1={'method':_0x2f5a2a[_0x55188d(0x8b)],'headers':_0x2f5a2a['UnLFd'](getAuthHeader,_0x5db046['Browserstack'][_0x55188d(0xa6)],_0x5db046[_0x55188d(0xbe)][_0x55188d(0xbd)]),'throwHttpErrors':![]},_0x575739=await _0x2f5a2a[_0x55188d(0x6f)](got,_0x32c310,_0x4420e1);_0x2f5a2a[_0x55188d(0xa4)](_0x575739,null)&&_0x2f5a2a[_0x55188d(0xc7)](_0x575739,undefined)&&_0x2f5a2a[_0x55188d(0xe7)](_0x575739[_0x55188d(0x9b)],0xc8)&&(logger[_0x55188d(0xfb)](_0x55188d(0xb5)),process[_0x55188d(0xea)](0x0)),logger[_0x55188d(0xe2)](_0x55188d(0xcf)+_0x575739['body']),await _0x2f5a2a[_0x55188d(0xb3)](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a['sPlMT'],messageTypes[_0x55188d(0x102)],_0x2f5a2a['nqVuk'],_0x43e240,_0xbb60f4),process[_0x55188d(0xea)](0x1);}_0x2f5a2a['AfTNG'](_0x43e240[_0x55188d(0x9b)],0x191)&&(logger[_0x55188d(0xe2)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x2f5a2a[_0x55188d(0xb3)](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a[_0x55188d(0xdb)],messageTypes[_0x55188d(0x102)],_0x2f5a2a[_0x55188d(0x8d)],null,_0xbb60f4),process[_0x55188d(0xea)](0x1)),_0x2f5a2a[_0x55188d(0x9d)](_0x43e240[_0x55188d(0x9b)],0x190)&&(logger[_0x55188d(0xe2)](JSON[_0x55188d(0xaa)](_0x43e240[_0x55188d(0xac)])[_0x55188d(0x7b)]),await _0x2f5a2a[_0x55188d(0xf1)](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a['sPlMT'],messageTypes[_0x55188d(0x102)],_0x2f5a2a[_0x55188d(0xb6)],null,_0xbb60f4),process[_0x55188d(0xea)](0x1)),logger['error'](_0x55188d(0xf0)+JSON[_0x55188d(0xc3)](_0x43e240)),await _0x2f5a2a[_0x55188d(0xb3)](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a[_0x55188d(0xdb)],messageTypes['ERROR'],_0x2f5a2a[_0x55188d(0x84)],_0x43e240,_0xbb60f4),process['exit'](0x1);}catch(_0x45feef){logger[_0x55188d(0xe2)](_0x55188d(0x70)+_0x45feef['stack']),await _0x2f5a2a[_0x55188d(0xa1)](sendInstrumentationEvent,_0xbb60f4,_0x2f5a2a[_0x55188d(0xdb)],messageTypes[_0x55188d(0x102)],_0x2f5a2a['yLWIr'],_0x45feef,_0xbb60f4),process['exit'](0x1);}};
|
|
1
|
+
function a11_0x5c1b(){const _0x5e0282=['AOSMA','/packages/cli/grid/','\x22\x20and\x20ID\x20','MActH','ncmBz','stringify','Failed\x20to\x20delete\x20resources!\x20Error:\x20','clusterRegion','HEXNm','yIshf','qGdrB','lDMdi','../../utils/createk8sClient','eAAPe','region','FwDJv','onlyGridInCluster','\x22\x20with\x20ID\x20','350955DnBwek','yGDQK','eDnup','writeFileSync','then','gBGvC','nzwWv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Cluster:\x20','string','statusCode','4LyAPbK','error','kIZYf','wUHsh','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','20ceIgRW','cFuZt','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','qArWw','fFWYS','readFileSync','DsLME','ikGBZ','tblBa','ViuWj','aiiGV','fJJwy','285ZLUBYl','TYyRo','invalid-grid-id','init-not-called','../../config/logger','readNamespace','dGMth','27294gNHuGf','TZUFg','../../utils/utilityMethods','unknown-error','tihFn','sFyWf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/userInput','sQHEY','xdhCI','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','gridId','110uMfXEK','server-error','description','clusterName','OEfdk','eDhFJ','haPTN','warn','9417woBhhB','toLowerCase','MBfDQ','invalid-input','../../config/constants','help','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','options','cloudProvider','desc','UUfga','../../cloudproviders/utils','EjItS','xIJFl','Namespace:\x20','kPpkZ','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','https://','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uKvBo','builder','clusterSpawnedVia','clusterId','VIKCL','skNEz','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','woVZA','DELETE','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','FxvYp','vaqSH','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','24QXyHPD','requestId','dsyEW','waIDr','qhWFs','JwAYk','754860MUQvuk','pZqqR','Pass\x20the\x20ID\x20of\x20the\x20Grid','HlMtj','141319UxPbkt','ynUiP','iivhe','AYPDo','UKtZS','unauthorised','Successfully\x20deleted\x20the\x20grid','name','1763200HoLNET','configureIfNotConfigured','ArRrE','delete-grid-called','OmAAu','exit','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','handler','RvaID','bDsKp','parse','../../utils/gridComponents','KJMiA','BjwQc','1300579LoUazM','Delete\x20an\x20Automation\x20grid.','usage','ERROR','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','vAkcT','epilogue','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','info','Browserstack','password','bCxBi'];a11_0x5c1b=function(){return _0x5e0282;};return a11_0x5c1b();}const a11_0x381c36=a11_0x3b12;(function(_0x259515,_0x2c6c11){const _0x1fc536=a11_0x3b12,_0x61e210=_0x259515();while(!![]){try{const _0x5c1dba=parseInt(_0x1fc536(0x267))/0x1*(-parseInt(_0x1fc536(0x210))/0x2)+-parseInt(_0x1fc536(0x23c))/0x3*(-parseInt(_0x1fc536(0x215))/0x4)+-parseInt(_0x1fc536(0x221))/0x5*(-parseInt(_0x1fc536(0x228))/0x6)+parseInt(_0x1fc536(0x27d))/0x7*(-parseInt(_0x1fc536(0x25d))/0x8)+parseInt(_0x1fc536(0x205))/0x9+parseInt(_0x1fc536(0x26f))/0xa+-parseInt(_0x1fc536(0x234))/0xb*(-parseInt(_0x1fc536(0x263))/0xc);if(_0x5c1dba===_0x2c6c11)break;else _0x61e210['push'](_0x61e210['shift']());}catch(_0x506cc9){_0x61e210['push'](_0x61e210['shift']());}}}(a11_0x5c1b,0x4431c));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x381c36(0x240)),{logger}=require(a11_0x381c36(0x225)),{getCloudProviderObject}=require(a11_0x381c36(0x247)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x381c36(0x27a)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x381c36(0x22f)),{createK8sClient}=require(a11_0x381c36(0x1ff)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x381c36(0x22a));function a11_0x3b12(_0x4f7e2e,_0x583bd3){const _0x5c1b3e=a11_0x5c1b();return a11_0x3b12=function(_0x3b1261,_0x527bc1){_0x3b1261=_0x3b1261-0x1f0;let _0x4792cc=_0x5c1b3e[_0x3b1261];return _0x4792cc;},a11_0x3b12(_0x4f7e2e,_0x583bd3);}exports['command']='grid',exports[a11_0x381c36(0x245)]=a11_0x381c36(0x27e),exports[a11_0x381c36(0x251)]=function(_0x1d3b5d){const _0x48c9a9=a11_0x381c36,_0x194b6d={};_0x194b6d[_0x48c9a9(0x254)]=_0x48c9a9(0x265),_0x194b6d[_0x48c9a9(0x1f7)]='string',_0x194b6d[_0x48c9a9(0x269)]=_0x48c9a9(0x241);const _0x188553=_0x194b6d,_0x4251db={};_0x4251db[_0x48c9a9(0x236)]=_0x188553[_0x48c9a9(0x254)],_0x4251db['type']=_0x188553[_0x48c9a9(0x1f7)];const _0x5e6587={};return _0x5e6587['grid-id']=_0x4251db,_0x1d3b5d[_0x48c9a9(0x27f)](HELP_HEADER_MESSAGE['delete'])[_0x48c9a9(0x283)](HELP_FOOTER_MESSAGE)[_0x48c9a9(0x243)](_0x5e6587)[_0x48c9a9(0x241)](_0x188553[_0x48c9a9(0x269)])['argv'];},exports[a11_0x381c36(0x276)]=async function(_0x3acada){const _0x3aaa3e=a11_0x381c36,_0xcac239={'qArWw':_0x3aaa3e(0x281),'TZUFg':_0x3aaa3e(0x265),'AYPDo':_0x3aaa3e(0x20e),'EjItS':_0x3aaa3e(0x241),'dGMth':function(_0x211143,_0x4990e9){return _0x211143!==_0x4990e9;},'UUfga':_0x3aaa3e(0x23e),'waFXo':_0x3aaa3e(0x20a),'dsyEW':function(_0x11615e){return _0x11615e();},'kPpkZ':function(_0x35f7c2){return _0x35f7c2();},'MActH':function(_0x110122,_0x93938a){return _0x110122!==_0x93938a;},'lDMdi':_0x3aaa3e(0x277),'ArRrE':_0x3aaa3e(0x22e),'TYyRo':function(_0x415792,_0x31e619,_0x1e3588,_0x4b8302,_0x1f849c,_0x28c821,_0x2cf6e4){return _0x415792(_0x31e619,_0x1e3588,_0x4b8302,_0x1f849c,_0x28c821,_0x2cf6e4);},'FwDJv':_0x3aaa3e(0x272),'BjwQc':_0x3aaa3e(0x224),'FxvYp':function(_0x54d341,_0x59993b){return _0x54d341===_0x59993b;},'yIshf':_0x3aaa3e(0x26b),'eDhFJ':function(_0x2fe0bc,_0x714ced,_0x3b51ba,_0x4bb1d2){return _0x2fe0bc(_0x714ced,_0x3b51ba,_0x4bb1d2);},'eDnup':_0x3aaa3e(0x1f0),'OmAAu':_0x3aaa3e(0x21c),'oQiaR':_0x3aaa3e(0x206),'sFyWf':function(_0x3fa1a1,_0x57951e){return _0x3fa1a1(_0x57951e);},'raojb':function(_0x2e40ce,_0xcc7e7a){return _0x2e40ce===_0xcc7e7a;},'woVZA':function(_0x606cbd,_0x343123){return _0x606cbd===_0x343123;},'waIDr':_0x3aaa3e(0x23a),'xIJFl':_0x3aaa3e(0x213),'cFuZt':_0x3aaa3e(0x214),'uKvBo':function(_0x3d4842,_0x11d2a5,_0x3eb797,_0x41db55,_0x5c7a3d,_0x5be976,_0x481d1f){return _0x3d4842(_0x11d2a5,_0x3eb797,_0x41db55,_0x5c7a3d,_0x5be976,_0x481d1f);},'Symsx':_0x3aaa3e(0x23f),'UtUpy':function(_0x3b1d44,_0x505448){return _0x3b1d44!==_0x505448;},'YrSPu':_0x3aaa3e(0x220),'LVrWD':_0x3aaa3e(0x22c),'nzwWv':function(_0x544d50,_0x2fd630,_0xd0581a,_0x258656,_0x50fd41){return _0x544d50(_0x2fd630,_0xd0581a,_0x258656,_0x50fd41);},'HlMtj':function(_0x3ff6cb,_0x32a121){return _0x3ff6cb!==_0x32a121;},'DsLME':'bJcHy','mJjcd':_0x3aaa3e(0x232),'AOSMA':function(_0x4830e9,_0x4bb44c){return _0x4830e9!==_0x4bb44c;},'vAkcT':_0x3aaa3e(0x238),'iBiyV':_0x3aaa3e(0x21f),'eAAPe':function(_0x38bd94,_0x2beb2a,_0x5c4123,_0x5cd587){return _0x38bd94(_0x2beb2a,_0x5c4123,_0x5cd587);},'tblBa':function(_0x55f8b3){return _0x55f8b3();},'jVqnJ':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','EqzKg':'VPFhV','NPdqQ':_0x3aaa3e(0x264),'HEXNm':_0x3aaa3e(0x275),'NEUQd':function(_0x39366d,_0x5b2b4c,_0x50c3ae,_0x4b20ac,_0x32edf6,_0x555f12){return _0x39366d(_0x5b2b4c,_0x50c3ae,_0x4b20ac,_0x32edf6,_0x555f12);},'JwAYk':_0x3aaa3e(0x258),'tzXtt':function(_0x13caea,_0xd4cfc1,_0xf2860){return _0x13caea(_0xd4cfc1,_0xf2860);},'bDsKp':function(_0xb0c1ef,_0x25ba18,_0xdda22d){return _0xb0c1ef(_0x25ba18,_0xdda22d);},'xdhCI':function(_0x584430,_0x471b93){return _0x584430!==_0x471b93;},'fFWYS':function(_0x197266,_0x47f549){return _0x197266===_0x47f549;},'bCxBi':function(_0x21910d,_0x561d77,_0x38f082,_0x5e9e0e,_0x3f3425,_0xb07973,_0x2db645){return _0x21910d(_0x561d77,_0x38f082,_0x5e9e0e,_0x3f3425,_0xb07973,_0x2db645);},'sQHEY':_0x3aaa3e(0x235),'skNEz':function(_0x292870,_0x1e5361,_0x5dc462,_0x562223,_0x235b8c,_0x100ca3,_0x4fd33c){return _0x292870(_0x1e5361,_0x5dc462,_0x562223,_0x235b8c,_0x100ca3,_0x4fd33c);},'kIZYf':_0x3aaa3e(0x26c),'qGdrB':function(_0x7416e9,_0x242884,_0x5845ec,_0x4b040e,_0x4d1e3b,_0xa40dc4,_0x58c577){return _0x7416e9(_0x242884,_0x5845ec,_0x4b040e,_0x4d1e3b,_0xa40dc4,_0x58c577);},'qhWFs':_0x3aaa3e(0x223),'vaqSH':_0x3aaa3e(0x22b)};try{global_registry[_0x3aaa3e(0x25e)]=_0xcac239[_0x3aaa3e(0x25f)](uuidv4);!fs[_0x3aaa3e(0x24e)](_0xcac239['kPpkZ'](getCredentialsPath))&&(_0xcac239[_0x3aaa3e(0x1f6)](_0xcac239[_0x3aaa3e(0x1fe)],_0xcac239[_0x3aaa3e(0x1fe)])?(_0x4a111e['warn']('Namespace:\x20'+_0x106ece+_0x3aaa3e(0x256)),_0x4b4060=![]):(console[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x271)]),await _0xcac239[_0x3aaa3e(0x222)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x27c)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)));_0xcac239['TYyRo'](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['INFO'],null,null,_0x3acada);!_0x3acada[_0x3aaa3e(0x233)]&&(_0xcac239['FxvYp'](_0xcac239[_0x3aaa3e(0x1fc)],_0xcac239[_0x3aaa3e(0x1fc)])?(console[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x218)]),process['exit'](0x1)):_0x55421d=_0x3aaa3e(0x217)+_0x28302c['name']+_0x3aaa3e(0x1f5)+_0x3b55d2['id']+_0x3aaa3e(0x284)+_0x20fefc['clusterName']+_0x3aaa3e(0x204)+_0x3997b5['clusterId']+_0x3aaa3e(0x25c));const _0x563ada=JSON[_0x3aaa3e(0x279)](fs[_0x3aaa3e(0x21a)](_0xcac239[_0x3aaa3e(0x24b)](getCredentialsPath))),[_0x44fc4c,_0x2af920]=await _0xcac239[_0x3aaa3e(0x239)](getGridDetails,_0x563ada['Browserstack']['username'],_0x563ada[_0x3aaa3e(0x1f0)][_0x3aaa3e(0x1f1)],_0x3acada[_0x3aaa3e(0x233)]);if(_0x2af920){const _0x3b2139=_0x2af920['info'];let _0x29526c=_0x3aaa3e(0x217)+_0x3b2139[_0x3aaa3e(0x26e)]+'\x22\x20and\x20ID\x20'+_0x3b2139['id']+_0x3aaa3e(0x25c),_0x237ce8;_0x2af920[_0x3aaa3e(0x203)]&&_0xcac239[_0x3aaa3e(0x25a)](_0x2af920[_0x3aaa3e(0x252)],_0xcac239[_0x3aaa3e(0x207)])&&(_0xcac239[_0x3aaa3e(0x227)](_0xcac239[_0x3aaa3e(0x273)],_0xcac239['oQiaR'])?_0x29526c=_0x3aaa3e(0x217)+_0x3b2139['name']+_0x3aaa3e(0x1f5)+_0x3b2139['id']+_0x3aaa3e(0x284)+_0x3b2139['clusterName']+_0x3aaa3e(0x204)+_0x3b2139[_0x3aaa3e(0x253)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x34c9d3['info'](_0x3aaa3e(0x26d)),_0x35aaf1['exit'](0x0)));_0x237ce8=await _0xcac239['sFyWf'](inputConfirmation,_0x29526c);(_0xcac239['FxvYp'](_0x237ce8,undefined)||_0xcac239['raojb'](_0x237ce8,null)||!(_0xcac239['FxvYp'](_0x237ce8[_0x3aaa3e(0x23d)](),'y')||_0xcac239[_0x3aaa3e(0x257)](_0x237ce8[_0x3aaa3e(0x23d)](),'n')))&&(_0xcac239[_0x3aaa3e(0x227)](_0xcac239[_0x3aaa3e(0x260)],_0xcac239[_0x3aaa3e(0x249)])?(console['error'](_0xcac239[_0x3aaa3e(0x216)]),await _0xcac239[_0x3aaa3e(0x250)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239['Symsx'],null,_0x3acada),process['exit'](0x1)):_0x2eea9f[_0x3aaa3e(0x285)](_0x3aaa3e(0x24a)+_0x556f19+_0x3aaa3e(0x24c)));_0xcac239[_0x3aaa3e(0x257)](_0x237ce8[_0x3aaa3e(0x23d)](),'n')&&(_0xcac239['UtUpy'](_0xcac239['YrSPu'],_0xcac239['LVrWD'])?process['exit'](0x0):_0x28736['warn'](_0x3aaa3e(0x20d)+_0x335154[_0x3aaa3e(0x237)]+_0x3aaa3e(0x259)));global_registry[_0x3aaa3e(0x1fa)]=_0x3b2139[_0x3aaa3e(0x201)];const _0x4b6dd2=_0x3b2139[_0x3aaa3e(0x244)],_0x48fe11=await _0xcac239[_0x3aaa3e(0x20b)](getCloudProviderObject,_0x4b6dd2,_0x3b2139[_0x3aaa3e(0x237)],_0x3b2139['name'],_0x3acada),_0x3f8da0=_0x563ada[_0x3aaa3e(0x244)];if(_0xcac239[_0x3aaa3e(0x257)](_0x3f8da0[_0x4b6dd2],undefined)){if(_0xcac239[_0x3aaa3e(0x266)](_0xcac239[_0x3aaa3e(0x21b)],_0xcac239[_0x3aaa3e(0x21b)]))_0x353e3c[_0x3aaa3e(0x274)](0x0);else{logger[_0x3aaa3e(0x285)](_0xcac239['mJjcd']);_0xcac239['FxvYp'](_0x563ada['cloudProvider'],undefined)&&(_0xcac239[_0x3aaa3e(0x1f3)](_0xcac239[_0x3aaa3e(0x282)],_0xcac239['iBiyV'])?_0x563ada[_0x3aaa3e(0x244)]={}:(_0x13b317[_0x3aaa3e(0x211)](_0xcac239[_0x3aaa3e(0x218)]),_0x1cd3ae['exit'](0x1)));_0x563ada[_0x3aaa3e(0x244)][_0x4b6dd2]={};const _0x249f01=await _0xcac239[_0x3aaa3e(0x200)](inputCloudProviderKeys,_0x4b6dd2,_0x563ada,_0x48fe11);fs[_0x3aaa3e(0x208)](_0xcac239[_0x3aaa3e(0x21d)](getCredentialsPath),JSON[_0x3aaa3e(0x1f8)](_0x249f01)),logger['debug'](_0xcac239['jVqnJ']);}}else _0xcac239['dGMth'](_0xcac239['EqzKg'],_0xcac239['NPdqQ'])?(logger[_0x3aaa3e(0x285)](_0xcac239[_0x3aaa3e(0x1fb)]),await _0x48fe11['fetchLocalCreds'](_0x3f8da0)):_0x2e69d1[_0x3aaa3e(0x244)]={};_0x48fe11[_0x3aaa3e(0x270)]();const _0x4957ce=_0xcac239[_0x3aaa3e(0x22d)](kebabCase,_0x3b2139['name']),[_0xae2b25,_0x190728,_0x5ef813,_0x3933dd,_0x293d11,_0x4887fa]=await _0xcac239['sFyWf'](createK8sClient,_0x48fe11);let _0x4d8cf8=!![];const _0x23feb4={};_0x23feb4[_0x3aaa3e(0x26e)]=_0x4957ce,await _0xae2b25[_0x3aaa3e(0x226)](_0x23feb4)[_0x3aaa3e(0x209)](_0x2b3716=>{const _0x5e710b=_0x3aaa3e,_0x14fe5a={};_0x14fe5a[_0x5e710b(0x268)]=_0xcac239[_0x5e710b(0x229)],_0x14fe5a[_0x5e710b(0x27b)]=_0xcac239[_0x5e710b(0x26a)],_0x14fe5a[_0x5e710b(0x21e)]=_0xcac239[_0x5e710b(0x248)];const _0x32f7bc=_0x14fe5a;if(_0xcac239[_0x5e710b(0x227)](_0xcac239[_0x5e710b(0x246)],_0xcac239['waFXo']))logger[_0x5e710b(0x285)](_0x5e710b(0x24a)+_0x4957ce+_0x5e710b(0x24c));else{const _0x428d60={};_0x428d60[_0x5e710b(0x236)]=_0x32f7bc[_0x5e710b(0x268)],_0x428d60['type']=_0x32f7bc[_0x5e710b(0x27b)];const _0xa27580={};return _0xa27580['grid-id']=_0x428d60,_0xd9745f[_0x5e710b(0x27f)](_0x5ef9d9['delete'])[_0x5e710b(0x283)](_0x1508fc)[_0x5e710b(0x243)](_0xa27580)[_0x5e710b(0x241)](_0x32f7bc[_0x5e710b(0x21e)])['argv'];}})['catch'](_0x2f091f=>{const _0x245110=_0x3aaa3e;logger[_0x245110(0x23b)]('Namespace:\x20'+_0x4957ce+_0x245110(0x256)),_0x4d8cf8=![];});if(_0x4d8cf8){await _0xcac239['NEUQd'](removeGridComponents,_0xae2b25,_0x190728,_0x5ef813,_0x3933dd,_0x4957ce);if(_0x2af920['onlyGridInCluster']){const _0x4ae782=await _0x48fe11['isBrowserstackCluster']();_0x4ae782?await _0x48fe11['deleteCluster'](_0xae2b25,_0x3b2139['region']):logger[_0x3aaa3e(0x23b)](_0x3aaa3e(0x20d)+_0x3b2139['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}const _0x340f81=_0x3aaa3e(0x24d)+AG_API_URL+_0x3aaa3e(0x1f4)+_0x3acada[_0x3aaa3e(0x233)],_0x459de1={'method':_0xcac239[_0x3aaa3e(0x262)],'headers':_0xcac239['tzXtt'](getAuthHeader,_0x563ada[_0x3aaa3e(0x1f0)]['username'],_0x563ada[_0x3aaa3e(0x1f0)]['password']),'throwHttpErrors':![]},_0x6fe5e8=await _0xcac239[_0x3aaa3e(0x278)](got,_0x340f81,_0x459de1);_0xcac239[_0x3aaa3e(0x1f3)](_0x6fe5e8,null)&&_0xcac239[_0x3aaa3e(0x231)](_0x6fe5e8,undefined)&&_0xcac239[_0x3aaa3e(0x219)](_0x6fe5e8['statusCode'],0xc8)&&(logger[_0x3aaa3e(0x285)](_0x3aaa3e(0x26d)),process[_0x3aaa3e(0x274)](0x0)),logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x242)+_0x6fe5e8['body']),await _0xcac239[_0x3aaa3e(0x1f2)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x230)],_0x44fc4c,_0x3acada),process[_0x3aaa3e(0x274)](0x1);}_0xcac239[_0x3aaa3e(0x219)](_0x44fc4c[_0x3aaa3e(0x20f)],0x191)&&(logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x24f)),await _0xcac239[_0x3aaa3e(0x255)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x212)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)),_0xcac239['FxvYp'](_0x44fc4c[_0x3aaa3e(0x20f)],0x190)&&(logger[_0x3aaa3e(0x211)](JSON[_0x3aaa3e(0x279)](_0x44fc4c['body'])['message']),await _0xcac239[_0x3aaa3e(0x1fd)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['ERROR'],_0xcac239[_0x3aaa3e(0x261)],null,_0x3acada),process[_0x3aaa3e(0x274)](0x1)),logger[_0x3aaa3e(0x211)](_0x3aaa3e(0x20c)+JSON[_0x3aaa3e(0x1f8)](_0x44fc4c)),await _0xcac239[_0x3aaa3e(0x1fd)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes['ERROR'],_0xcac239['sQHEY'],_0x44fc4c,_0x3acada),process[_0x3aaa3e(0x274)](0x1);}catch(_0x9cd0e4){logger['error'](_0x3aaa3e(0x1f9)+_0x9cd0e4['stack']),await _0xcac239[_0x3aaa3e(0x255)](sendInstrumentationEvent,_0x3acada,_0xcac239[_0x3aaa3e(0x202)],messageTypes[_0x3aaa3e(0x280)],_0xcac239[_0x3aaa3e(0x25b)],_0x9cd0e4,_0x3acada),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x4260f0=a12_0x5b00;(function(_0x5346a8,_0x371040){const _0x43127e=a12_0x5b00,_0x4f5f45=_0x5346a8();while(!![]){try{const _0x25c2aa=-parseInt(_0x43127e(0xd5))/0x1+-parseInt(_0x43127e(0x118))/0x2+parseInt(_0x43127e(0xd9))/0x3*(-parseInt(_0x43127e(0xeb))/0x4)+parseInt(_0x43127e(0x115))/0x5*(-parseInt(_0x43127e(0x11c))/0x6)+-parseInt(_0x43127e(0x122))/0x7*(parseInt(_0x43127e(0xde))/0x8)+parseInt(_0x43127e(0x105))/0x9*(-parseInt(_0x43127e(0x129))/0xa)+-parseInt(_0x43127e(0x108))/0xb*(-parseInt(_0x43127e(0xe4))/0xc);if(_0x25c2aa===_0x371040)break;else _0x4f5f45['push'](_0x4f5f45['shift']());}catch(_0x4a2917){_0x4f5f45['push'](_0x4f5f45['shift']());}}}(a12_0x368d,0x85fcc));function a12_0x5b00(_0x5e05c5,_0xf54d12){const _0x368d3e=a12_0x368d();return a12_0x5b00=function(_0x5b00a0,_0x434a9b){_0x5b00a0=_0x5b00a0-0xc7;let _0x289036=_0x368d3e[_0x5b00a0];return _0x289036;},a12_0x5b00(_0x5e05c5,_0xf54d12);}const fs=require('fs'),util=require(a12_0x4260f0(0xff)),got=require(a12_0x4260f0(0xf4)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x4260f0(0xd1)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x4260f0(0x132)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x4260f0(0x134)),{sendInstrumentationEvent}=require(a12_0x4260f0(0x133));function a12_0x368d(){const _0x5b1b3f=['stringify','7vtbnoo','existsSync','handler','gaoWH','INFO','MsfKl','HnwxQ','10sxglTh','jJkSJ','AuYtX','bDkZC','eOLKN','bstack-username','FPzrg','error','jtwJP','../config/constants','../utils/instrumentationUtils','../utils/utilityMethods','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','recommendCommands','KXTWh','saMvW','asUww','JsADA','smXQI','description','fHDtk','KHIuJ','usage','mkdirSync','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','qYSgk','writeFileSync','../config/logger','options','sNTmQ','GET','313533zlJBun','init-called','OvMQY','debug','3yycePd','bstack-accesskey','ETiJr','HCJTz','type','2788496vnVBVO','parse','/automate/plan.json','FWjtL','cbaIW','xDRaa','48030852AUJUdN','PphMn','gwABj','quUVp','https://','lcbXl','NfsZn','3864668fSACcO','unIst','Browserstack','username','JgmDb','btjYq','RcAXr','jNkTz','OAFwq','got','VpDqT','ROooo','bstackUsername','ERROR','msTuF','rYyhg','bbFuH','bstackAccesskey','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','BROWSERSTACK_ACCESS_KEY','util','XnBfv','argv','Yitit','BROWSERSTACK_USERNAME','help','6440544kzzIqM','SRYEq','CzEnm','11MSxeMw','qMEVG','env','jQtzJ','password','hlPhg','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','readFileSync','exit','KJRBA','string','desc','epilogue','2360lePzmZ','YWFtr','init','479026WqCGNf','dLuyk','builder','unknown-error','11064jWxBMk','stack','ILNQc','command','strict'];a12_0x368d=function(){return _0x5b1b3f;};return a12_0x368d();}exports[a12_0x4260f0(0x11f)]=a12_0x4260f0(0x117),exports[a12_0x4260f0(0x113)]=a12_0x4260f0(0x135),exports[a12_0x4260f0(0x11a)]=function(_0x4aa978){const _0xbc1f5f=a12_0x4260f0,_0x32f8fc={};_0x32f8fc['pTozL']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x32f8fc[_0xbc1f5f(0x128)]=_0xbc1f5f(0x112),_0x32f8fc[_0xbc1f5f(0xf5)]=_0xbc1f5f(0xce),_0x32f8fc[_0xbc1f5f(0x11e)]=_0xbc1f5f(0x104);const _0x57cfdc=_0x32f8fc,_0x4b613d={};_0x4b613d[_0xbc1f5f(0xc9)]=_0x57cfdc['pTozL'],_0x4b613d[_0xbc1f5f(0xdd)]=_0x57cfdc[_0xbc1f5f(0x128)];const _0x50cf50={};_0x50cf50[_0xbc1f5f(0xc9)]=_0x57cfdc['VpDqT'],_0x50cf50[_0xbc1f5f(0xdd)]=_0x57cfdc[_0xbc1f5f(0x128)];const _0xd1aa7c={};return _0xd1aa7c['bstack-username']=_0x4b613d,_0xd1aa7c['bstack-accesskey']=_0x50cf50,_0x4aa978[_0xbc1f5f(0xcc)](HELP_HEADER_MESSAGE[_0xbc1f5f(0x117)])[_0xbc1f5f(0x114)](HELP_FOOTER_MESSAGE)['options'](_0xd1aa7c)[_0xbc1f5f(0x136)]()['strict']()[_0xbc1f5f(0x104)](_0x57cfdc['ILNQc'])[_0xbc1f5f(0x101)];},exports[a12_0x4260f0(0x124)]=async function(_0x3313f8){const _0xf87dbb=a12_0x4260f0,_0xed000={'jtwJP':_0xf87dbb(0xfd),'bDkZC':_0xf87dbb(0x112),'xDRaa':_0xf87dbb(0xce),'JsADA':_0xf87dbb(0x104),'PphMn':'utf-8','rYyhg':function(_0x68df68){return _0x68df68();},'NfsZn':function(_0x4f10c6){return _0x4f10c6();},'qYSgk':function(_0x3d5076,_0x56bacc,_0x394e80,_0x1fe599,_0x1e37af,_0x7bdd00,_0x258e96){return _0x3d5076(_0x56bacc,_0x394e80,_0x1fe599,_0x1e37af,_0x7bdd00,_0x258e96);},'fHDtk':_0xf87dbb(0xd6),'HHLwS':function(_0x521b57){return _0x521b57();},'ETiJr':function(_0x80d11,_0x53a98d){return _0x80d11===_0x53a98d;},'OAFwq':_0xf87dbb(0xf1),'jNkTz':_0xf87dbb(0x10d),'tMyEr':function(_0x3f80a1,_0x39280f){return _0x3f80a1!==_0x39280f;},'Yitit':_0xf87dbb(0x127),'qMEVG':function(_0x464f6a,_0x561301){return _0x464f6a!==_0x561301;},'gaoWH':_0xf87dbb(0x138),'ENnpM':_0xf87dbb(0xe9),'kQBvc':function(_0x15e54b,_0x1c6ec){return _0x15e54b!==_0x1c6ec;},'OvMQY':'oGMww','gwABj':_0xf87dbb(0xf9),'ROooo':_0xf87dbb(0x139),'unIst':function(_0x105745,_0x367186){return _0x105745===_0x367186;},'smXQI':_0xf87dbb(0x10b),'JgmDb':'CRcoi','jJkSJ':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','CzEnm':function(_0xcedf48){return _0xcedf48();},'KHIuJ':_0xf87dbb(0xd4),'sNTmQ':function(_0x24b5cf,_0x456537,_0x44ce5b){return _0x24b5cf(_0x456537,_0x44ce5b);},'XnBfv':function(_0x5bdaa4,_0x46b748){return _0x5bdaa4!==_0x46b748;},'FWjtL':function(_0x5e3cce,_0xa8a7f8){return _0x5e3cce===_0xa8a7f8;},'HCJTz':function(_0x37e7a6,_0x4c2b0e){return _0x37e7a6!==_0x4c2b0e;},'YWFtr':_0xf87dbb(0xe7),'KJRBA':_0xf87dbb(0x106),'AuYtX':_0xf87dbb(0xe2),'uoOQi':function(_0x1d3598){return _0x1d3598();},'bbFuH':_0xf87dbb(0x137),'eOLKN':_0xf87dbb(0x12f),'FKQor':_0xf87dbb(0x10e),'rDCuq':'wrong-creds','btjYq':function(_0xcb2465,_0x21a07e,_0x1dad7c,_0x36a6a1,_0x16c1cc,_0x3d0864,_0x5cb0b1){return _0xcb2465(_0x21a07e,_0x1dad7c,_0x36a6a1,_0x16c1cc,_0x3d0864,_0x5cb0b1);},'dLuyk':_0xf87dbb(0x11b)};try{global_registry['requestId']=_0xed000[_0xf87dbb(0xea)](uuidv4),_0xed000['qYSgk'](sendInstrumentationEvent,_0x3313f8,_0xed000[_0xf87dbb(0xca)],messageTypes[_0xf87dbb(0x126)],null,null,_0x3313f8);const _0x2c15fb=_0xed000['HHLwS'](getDirForConfig);!fs[_0xf87dbb(0x123)](_0x2c15fb)&&(_0xed000[_0xf87dbb(0xdb)](_0xed000[_0xf87dbb(0xf3)],_0xed000[_0xf87dbb(0xf2)])?_0x325ae3=_0x326017[_0xf87dbb(0x10a)][_0xf87dbb(0x103)]:fs[_0xf87dbb(0xcd)](_0x2c15fb));let _0x5c7823,_0x220a71;process['env'][_0xf87dbb(0x103)]&&(_0xed000['tMyEr'](_0xed000['Yitit'],_0xed000[_0xf87dbb(0x102)])?_0x5eca39=!![]:_0x5c7823=process[_0xf87dbb(0x10a)][_0xf87dbb(0x103)]);process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0xed000[_0xf87dbb(0x109)](_0xed000[_0xf87dbb(0x125)],_0xed000['ENnpM'])?_0x220a71=process['env'][_0xf87dbb(0xfe)]:_0x162a81=_0x679a74[_0xf87dbb(0x10a)][_0xf87dbb(0xfe)]);if(_0x3313f8[_0xf87dbb(0xf7)]){if(_0xed000['kQBvc'](_0xed000[_0xf87dbb(0xd7)],_0xed000[_0xf87dbb(0xe6)]))_0x5c7823=_0x3313f8['bstackUsername'];else{const _0x45688b={};_0x45688b[_0xf87dbb(0xc9)]=_0xed000[_0xf87dbb(0x131)],_0x45688b[_0xf87dbb(0xdd)]=_0xed000[_0xf87dbb(0x12c)];const _0x50bb51={};_0x50bb51['description']=_0xed000[_0xf87dbb(0xe3)],_0x50bb51[_0xf87dbb(0xdd)]=_0xed000[_0xf87dbb(0x12c)];const _0x452c62={};return _0x452c62[_0xf87dbb(0x12e)]=_0x45688b,_0x452c62[_0xf87dbb(0xda)]=_0x50bb51,_0x16b345[_0xf87dbb(0xcc)](_0x4d3e44[_0xf87dbb(0x117)])[_0xf87dbb(0x114)](_0x1e0cbf)[_0xf87dbb(0xd2)](_0x452c62)[_0xf87dbb(0x136)]()[_0xf87dbb(0x120)]()['help'](_0xed000[_0xf87dbb(0xc7)])[_0xf87dbb(0x101)];}}_0x3313f8[_0xf87dbb(0xfc)]&&(_0xed000[_0xf87dbb(0xdb)](_0xed000[_0xf87dbb(0xf6)],_0xed000[_0xf87dbb(0xf6)])?_0x220a71=_0x3313f8[_0xf87dbb(0xfc)]:_0x2631b8=_0x22980c[_0xf87dbb(0xfc)]);if(_0xed000[_0xf87dbb(0xdb)](_0x5c7823,undefined)||_0xed000[_0xf87dbb(0xdb)](_0x220a71,undefined)){if(_0xed000[_0xf87dbb(0xec)](_0xed000[_0xf87dbb(0xc8)],_0xed000[_0xf87dbb(0xef)]))_0x5ac195[_0xf87dbb(0xcd)](_0x2c66d6);else{logger[_0xf87dbb(0xd8)](_0xed000[_0xf87dbb(0x12a)]);const [_0x289f68,_0x462421]=await _0xed000[_0xf87dbb(0x107)](inputBstackKeys);_0x5c7823=_0x289f68,_0x220a71=_0x462421;}}let _0x4b4cf4=![];const _0x3c9094=_0xf87dbb(0xe8)+_0x5c7823+':'+_0x220a71+'@'+BS_API_URL+_0xf87dbb(0xe0),_0x15980f={'method':_0xed000[_0xf87dbb(0xcb)],'headers':_0xed000[_0xf87dbb(0xd3)](getAuthHeader,_0x5c7823,_0x220a71),'throwHttpErrors':![]},_0x1fdede=await _0xed000[_0xf87dbb(0xd3)](got,_0x3c9094,_0x15980f);_0xed000[_0xf87dbb(0x100)](_0x1fdede,null)&&_0xed000[_0xf87dbb(0x100)](_0x1fdede,undefined)&&_0xed000[_0xf87dbb(0xe1)](_0x1fdede['statusCode'],0xc8)&&(_0xed000[_0xf87dbb(0xdc)](_0xed000['YWFtr'],_0xed000[_0xf87dbb(0x116)])?_0x29dd70=_0xe90ebe[_0xf87dbb(0xf7)]:_0x4b4cf4=!![]);if(_0x4b4cf4){if(_0xed000['ETiJr'](_0xed000[_0xf87dbb(0x111)],_0xed000[_0xf87dbb(0x12b)]))_0x19bfe5=_0x45ebea['parse'](_0x7a4ef7[_0xf87dbb(0x10f)](_0x3bf1c0,_0xed000[_0xf87dbb(0xe5)]));else{let _0x78ca78={};const _0x3662e1=_0xed000['uoOQi'](getCredentialsPath);if(fs[_0xf87dbb(0x123)](_0x3662e1)){if(_0xed000[_0xf87dbb(0xec)](_0xed000[_0xf87dbb(0xfb)],_0xed000[_0xf87dbb(0x12d)])){let _0x3d7249={};const _0x1a142d=_0xed000[_0xf87dbb(0xfa)](_0xbb0657);_0xd94e27[_0xf87dbb(0x123)](_0x1a142d)&&(_0x3d7249=_0x9c11a9[_0xf87dbb(0xdf)](_0x2ed6d3[_0xf87dbb(0x10f)](_0x1a142d,_0xed000[_0xf87dbb(0xe5)])));const _0x2fc441={};_0x2fc441['username']=_0x122d85,_0x2fc441['password']=_0x12e8ac,_0x3d7249[_0xf87dbb(0xed)]=_0x2fc441,_0x162749[_0xf87dbb(0xd0)](_0x1a142d,_0x5e25cc[_0xf87dbb(0x121)](_0x3d7249)),_0x47eef4[_0xf87dbb(0x110)](0x0);}else _0x78ca78=JSON['parse'](fs['readFileSync'](_0x3662e1,_0xed000[_0xf87dbb(0xe5)]));}const _0xc16ec7={};_0xc16ec7[_0xf87dbb(0xee)]=_0x5c7823,_0xc16ec7[_0xf87dbb(0x10c)]=_0x220a71,_0x78ca78[_0xf87dbb(0xed)]=_0xc16ec7,fs['writeFileSync'](_0x3662e1,JSON[_0xf87dbb(0x121)](_0x78ca78)),process['exit'](0x0);}}else logger[_0xf87dbb(0x130)](_0xed000['FKQor']),await _0xed000[_0xf87dbb(0xcf)](sendInstrumentationEvent,_0x3313f8,_0xed000[_0xf87dbb(0xca)],messageTypes[_0xf87dbb(0xf8)],_0xed000['rDCuq'],null,_0x3313f8),process[_0xf87dbb(0x110)](0x1);}catch(_0x376b41){logger[_0xf87dbb(0x130)](_0x376b41[_0xf87dbb(0x11d)]),await _0xed000[_0xf87dbb(0xf0)](sendInstrumentationEvent,_0x3313f8,_0xed000[_0xf87dbb(0xca)],messageTypes[_0xf87dbb(0xf8)],_0xed000[_0xf87dbb(0x119)],_0x376b41,_0x3313f8),process[_0xf87dbb(0x110)](0x1);}};
|
|
1
|
+
const a12_0x2f28f8=a12_0x167b;function a12_0x167b(_0x1693cd,_0x210a9e){const _0x5525af=a12_0x5525();return a12_0x167b=function(_0x167bb6,_0x37ab6f){_0x167bb6=_0x167bb6-0xb4;let _0x512092=_0x5525af[_0x167bb6];return _0x512092;},a12_0x167b(_0x1693cd,_0x210a9e);}function a12_0x5525(){const _0x488429=['GHQlD','UvjQi','command','BROWSERSTACK_ACCESS_KEY','klaIl','bstack-accesskey','23434QgPbcJ','Ajfxd','86ipilir','handler','CyFVi','402mokXTD','statusCode','wrong-creds','mpEXU','existsSync','bstackAccesskey','GET','exit','requestId','debug','/automate/plan.json','fhWfn','argv','env','WnVKC','stack','uPBlw','hAQle','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','help','HPOTI','ukNJD','ERROR','../utils/utilityMethods','pHrJh','2303331tNEubH','mkdirSync','Jaowg','usage','uZMIG','https://','aArYs','gClfp','stringify','NBiVP','epilogue','BerCk','dNcXP','bstackUsername','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','username','parse','../config/constants','xcBlI','string','YOiCd','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','keVbk','dqGoA','CVDaY','wzQnV','init','description','gAYzQ','readFileSync','Browserstack','unknown-error','83170ETtdHT','ySKfB','pabqJ','1939iGAXHQ','utf-8','nYiLR','desc','../utils/instrumentationUtils','wrGiN','type','uyPQc','PIpuN','password','HQFRk','recommendCommands','84gxBAse','cBYGS','eAeIN','BROWSERSTACK_USERNAME','init-called','INFO','MGOxi','flPYk','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','csanJ','38755xrGOiK','1529726MLnVbx','2343584kLLinW','Zbats','zhiYx','RoBGa','kzctx','error','927uMOVTW','util','MvGNp','nLAwq','got','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','17120xJycye','bvbxZ','writeFileSync'];a12_0x5525=function(){return _0x488429;};return a12_0x5525();}(function(_0x14799c,_0x54ef4b){const _0x12c814=a12_0x167b,_0x1ac629=_0x14799c();while(!![]){try{const _0x57256b=-parseInt(_0x12c814(0xf3))/0x1*(parseInt(_0x12c814(0xf1))/0x2)+-parseInt(_0x12c814(0x10f))/0x3+parseInt(_0x12c814(0xdc))/0x4+-parseInt(_0x12c814(0xda))/0x5*(-parseInt(_0x12c814(0xf6))/0x6)+parseInt(_0x12c814(0xc4))/0x7*(-parseInt(_0x12c814(0xe8))/0x8)+parseInt(_0x12c814(0xe2))/0x9*(parseInt(_0x12c814(0xc1))/0xa)+-parseInt(_0x12c814(0xdb))/0xb*(-parseInt(_0x12c814(0xd0))/0xc);if(_0x57256b===_0x54ef4b)break;else _0x1ac629['push'](_0x1ac629['shift']());}catch(_0x3677c6){_0x1ac629['push'](_0x1ac629['shift']());}}}(a12_0x5525,0x8a743));const fs=require('fs'),util=require(a12_0x2f28f8(0xe3)),got=require(a12_0x2f28f8(0xe6)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x2f28f8(0x120)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2f28f8(0x10d)),{sendInstrumentationEvent}=require(a12_0x2f28f8(0xc8));exports[a12_0x2f28f8(0xed)]=a12_0x2f28f8(0xbb),exports[a12_0x2f28f8(0xc7)]=a12_0x2f28f8(0x11d),exports['builder']=function(_0x2de296){const _0x16e99b=a12_0x2f28f8,_0x20958d={};_0x20958d[_0x16e99b(0xb5)]=_0x16e99b(0xe7),_0x20958d[_0x16e99b(0x104)]=_0x16e99b(0xb4),_0x20958d[_0x16e99b(0x101)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x20958d[_0x16e99b(0xcc)]=_0x16e99b(0x109);const _0x2aadae=_0x20958d,_0x196fd1={};_0x196fd1[_0x16e99b(0xbc)]=_0x2aadae['YOiCd'],_0x196fd1[_0x16e99b(0xca)]=_0x2aadae[_0x16e99b(0x104)];const _0x5d77c5={};_0x5d77c5['description']=_0x2aadae['fhWfn'],_0x5d77c5[_0x16e99b(0xca)]=_0x2aadae['WnVKC'];const _0x3da6d0={};return _0x3da6d0['bstack-username']=_0x196fd1,_0x3da6d0['bstack-accesskey']=_0x5d77c5,_0x2de296[_0x16e99b(0x112)](HELP_HEADER_MESSAGE[_0x16e99b(0xbb)])[_0x16e99b(0x119)](HELP_FOOTER_MESSAGE)['options'](_0x3da6d0)[_0x16e99b(0xcf)]()['strict']()[_0x16e99b(0x109)](_0x2aadae[_0x16e99b(0xcc)])[_0x16e99b(0x102)];},exports[a12_0x2f28f8(0xf4)]=async function(_0xab7fa){const _0x398030=a12_0x2f28f8,_0x4d8cfc={'dkACb':_0x398030(0xe7),'kzctx':_0x398030(0xb4),'WlBZE':_0x398030(0x108),'mpEXU':_0x398030(0x109),'Jaowg':_0x398030(0xc5),'dqGoA':function(_0x3162e3){return _0x3162e3();},'HQFRk':function(_0x21224f,_0x2d0ab9,_0x4c53c8,_0x2793cf,_0x37ad89,_0x15c0f1,_0x5b6f09){return _0x21224f(_0x2d0ab9,_0x4c53c8,_0x2793cf,_0x37ad89,_0x15c0f1,_0x5b6f09);},'ukNJD':_0x398030(0xd4),'uPBlw':function(_0x15032d,_0x31aeb2){return _0x15032d!==_0x31aeb2;},'gAYzQ':_0x398030(0xc2),'GHQlD':_0x398030(0x107),'uZMIG':_0x398030(0xb7),'nYiLR':_0x398030(0xcb),'eAeIN':_0x398030(0xde),'wrGiN':function(_0x4aadc6,_0x3d9b0d){return _0x4aadc6===_0x3d9b0d;},'pHrJh':_0x398030(0xef),'CVDaY':function(_0xebdb7e,_0x765e35){return _0xebdb7e!==_0x765e35;},'bvbxZ':_0x398030(0xf5),'MvGNp':_0x398030(0xd8),'cBYGS':function(_0x58367c){return _0x58367c();},'HPOTI':_0x398030(0xfc),'BerCk':function(_0xe204cf,_0x5906f1,_0x1ef21d){return _0xe204cf(_0x5906f1,_0x1ef21d);},'MGOxi':_0x398030(0x118),'UvjQi':function(_0x2ac1ab,_0x5c81f3){return _0x2ac1ab!==_0x5c81f3;},'wzQnV':_0x398030(0xdd),'gClfp':_0x398030(0xdf),'xcBlI':function(_0x3ac7f1){return _0x3ac7f1();},'nLAwq':function(_0x344c4d,_0x2febc9){return _0x344c4d===_0x2febc9;},'flPYk':_0x398030(0x11b),'Ajfxd':_0x398030(0xb6),'pabqJ':function(_0x20a0bb,_0x1939eb,_0x1b7619,_0x3734f7,_0x14cd63,_0x545bd2,_0x400a39){return _0x20a0bb(_0x1939eb,_0x1b7619,_0x3734f7,_0x14cd63,_0x545bd2,_0x400a39);},'znVfd':_0x398030(0xf8),'csanJ':function(_0x4cb54b,_0x440c2b,_0x4f33b,_0x2208a0,_0x4127e0,_0x30b14f,_0x47fde4){return _0x4cb54b(_0x440c2b,_0x4f33b,_0x2208a0,_0x4127e0,_0x30b14f,_0x47fde4);},'aArYs':_0x398030(0xc0)};try{global_registry[_0x398030(0xfe)]=_0x4d8cfc[_0x398030(0xb8)](uuidv4),_0x4d8cfc[_0x398030(0xce)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes[_0x398030(0xd5)],null,null,_0xab7fa);const _0xdc83f7=_0x4d8cfc['dqGoA'](getDirForConfig);if(!fs['existsSync'](_0xdc83f7)){if(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xbd)],_0x4d8cfc['gAYzQ'])){const _0x4c5fc8={};_0x4c5fc8[_0x398030(0xbc)]=_0x4d8cfc['dkACb'],_0x4c5fc8['type']=_0x4d8cfc['kzctx'];const _0x21edd8={};_0x21edd8[_0x398030(0xbc)]=_0x4d8cfc['WlBZE'],_0x21edd8[_0x398030(0xca)]=_0x4d8cfc[_0x398030(0xe0)];const _0x2b83a8={};return _0x2b83a8['bstack-username']=_0x4c5fc8,_0x2b83a8[_0x398030(0xf0)]=_0x21edd8,_0x39ec2d['usage'](_0x297e9d[_0x398030(0xbb)])[_0x398030(0x119)](_0x5084bf)['options'](_0x2b83a8)[_0x398030(0xcf)]()['strict']()[_0x398030(0x109)](_0x4d8cfc[_0x398030(0xf9)])['argv'];}else fs[_0x398030(0x110)](_0xdc83f7);}let _0x120ee4,_0x12e394;process[_0x398030(0x103)]['BROWSERSTACK_USERNAME']&&(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xeb)],_0x4d8cfc[_0x398030(0xeb)])?_0x314874=_0x181f6d['bstackAccesskey']:_0x120ee4=process[_0x398030(0x103)][_0x398030(0xd3)]);process[_0x398030(0x103)][_0x398030(0xee)]&&(_0x4d8cfc['uPBlw'](_0x4d8cfc[_0x398030(0x113)],_0x4d8cfc[_0x398030(0xc6)])?_0x12e394=process[_0x398030(0x103)][_0x398030(0xee)]:_0x227566=!![]);_0xab7fa[_0x398030(0x11c)]&&(_0x4d8cfc[_0x398030(0x106)](_0x4d8cfc[_0x398030(0xd2)],_0x4d8cfc['eAeIN'])?_0x4d9fb7=_0x6df7d2[_0x398030(0x103)][_0x398030(0xd3)]:_0x120ee4=_0xab7fa[_0x398030(0x11c)]);_0xab7fa[_0x398030(0xfb)]&&(_0x4d8cfc['wrGiN'](_0x4d8cfc[_0x398030(0x10e)],_0x4d8cfc['pHrJh'])?_0x12e394=_0xab7fa[_0x398030(0xfb)]:_0xa6f8c1[_0x398030(0x110)](_0x48cb8c));if(_0x4d8cfc[_0x398030(0xc9)](_0x120ee4,undefined)||_0x4d8cfc['wrGiN'](_0x12e394,undefined)){if(_0x4d8cfc['CVDaY'](_0x4d8cfc[_0x398030(0xe9)],_0x4d8cfc[_0x398030(0xe9)]))_0x45c583=_0x515a4c['parse'](_0x591100['readFileSync'](_0x2d02d8,_0x4d8cfc[_0x398030(0x111)]));else{logger[_0x398030(0xff)](_0x4d8cfc[_0x398030(0xe4)]);const [_0x367171,_0x436b25]=await _0x4d8cfc[_0x398030(0xd1)](inputBstackKeys);_0x120ee4=_0x367171,_0x12e394=_0x436b25;}}let _0x4be949=![];const _0xf5b051=_0x398030(0x114)+_0x120ee4+':'+_0x12e394+'@'+BS_API_URL+_0x398030(0x100),_0x92d5da={'method':_0x4d8cfc[_0x398030(0x10a)],'headers':_0x4d8cfc['BerCk'](getAuthHeader,_0x120ee4,_0x12e394),'throwHttpErrors':![]},_0x201ff=await _0x4d8cfc[_0x398030(0x11a)](got,_0xf5b051,_0x92d5da);_0x4d8cfc[_0x398030(0x106)](_0x201ff,null)&&_0x4d8cfc[_0x398030(0xb9)](_0x201ff,undefined)&&_0x4d8cfc['wrGiN'](_0x201ff[_0x398030(0xf7)],0xc8)&&(_0x4d8cfc[_0x398030(0xc9)](_0x4d8cfc[_0x398030(0xd6)],_0x4d8cfc[_0x398030(0xd6)])?_0x4be949=!![]:_0x5428ae=_0x349f9e[_0x398030(0x11c)]);if(_0x4be949){if(_0x4d8cfc[_0x398030(0xec)](_0x4d8cfc[_0x398030(0xba)],_0x4d8cfc[_0x398030(0x116)])){let _0x5e722={};const _0x4a2786=_0x4d8cfc[_0x398030(0x121)](getCredentialsPath);if(fs[_0x398030(0xfa)](_0x4a2786)){if(_0x4d8cfc[_0x398030(0xe5)](_0x4d8cfc[_0x398030(0xd7)],_0x4d8cfc[_0x398030(0xd7)]))_0x5e722=JSON['parse'](fs[_0x398030(0xbe)](_0x4a2786,_0x4d8cfc[_0x398030(0x111)]));else{let _0x4e7bdc={};const _0x19fe45=_0x4d8cfc['dqGoA'](_0x4f8bf0);_0x358bd3[_0x398030(0xfa)](_0x19fe45)&&(_0x4e7bdc=_0x2b7e7a[_0x398030(0x11f)](_0x3927a7[_0x398030(0xbe)](_0x19fe45,_0x4d8cfc[_0x398030(0x111)])));const _0x555b1c={};_0x555b1c['username']=_0xd12c65,_0x555b1c[_0x398030(0xcd)]=_0x157c89,_0x4e7bdc[_0x398030(0xbf)]=_0x555b1c,_0x97dc8e['writeFileSync'](_0x19fe45,_0x18626e[_0x398030(0x117)](_0x4e7bdc)),_0x566da0[_0x398030(0xfd)](0x0);}}const _0x110862={};_0x110862[_0x398030(0x11e)]=_0x120ee4,_0x110862[_0x398030(0xcd)]=_0x12e394,_0x5e722[_0x398030(0xbf)]=_0x110862,fs[_0x398030(0xea)](_0x4a2786,JSON[_0x398030(0x117)](_0x5e722)),process[_0x398030(0xfd)](0x0);}else _0x1722fe=_0x355960['env'][_0x398030(0xee)];}else logger[_0x398030(0xe1)](_0x4d8cfc[_0x398030(0xf2)]),await _0x4d8cfc[_0x398030(0xc3)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes['ERROR'],_0x4d8cfc['znVfd'],null,_0xab7fa),process[_0x398030(0xfd)](0x1);}catch(_0x58f730){logger[_0x398030(0xe1)](_0x58f730[_0x398030(0x105)]),await _0x4d8cfc[_0x398030(0xd9)](sendInstrumentationEvent,_0xab7fa,_0x4d8cfc[_0x398030(0x10b)],messageTypes[_0x398030(0x10c)],_0x4d8cfc[_0x398030(0x115)],_0x58f730,_0xab7fa),process['exit'](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a13_0x5e1ecb=a13_0x4c1f;(function(_0x40fc95,_0x5e4ec3){const _0xbfef2b=a13_0x4c1f,_0x3ff34e=_0x40fc95();while(!![]){try{const _0x25e127=-parseInt(_0xbfef2b(0x147))/0x1+-parseInt(_0xbfef2b(0x14c))/0x2+parseInt(_0xbfef2b(0x145))/0x3+-parseInt(_0xbfef2b(0x14b))/0x4*(-parseInt(_0xbfef2b(0x146))/0x5)+parseInt(_0xbfef2b(0x13b))/0x6+-parseInt(_0xbfef2b(0x13d))/0x7+-parseInt(_0xbfef2b(0x142))/0x8*(-parseInt(_0xbfef2b(0x14e))/0x9);if(_0x25e127===_0x5e4ec3)break;else _0x3ff34e['push'](_0x3ff34e['shift']());}catch(_0x2573d3){_0x3ff34e['push'](_0x3ff34e['shift']());}}}(a13_0x1fb3,0xbf057));function a13_0x1fb3(){const _0x79174a=['help','4VSzwNl','641316iwPKiH','demandCommand','612qmjWff','../config/constants','epilogue','root','recommendCommands','commandDir','3904080VHMnlE','strict','10928407YLNLtM','handler','list','List\x20down\x20the\x20Grid\x20resources.','command','100016QpliSX','builder','DyFKA','3645516EGeivK','3518995zRCSZu','755505Hwhzzg','list_commands','axavF'];a13_0x1fb3=function(){return _0x79174a;};return a13_0x1fb3();}function a13_0x4c1f(_0x3fc085,_0x3f7f02){const _0x1fb37e=a13_0x1fb3();return a13_0x4c1f=function(_0x4c1f3e,_0x5ec4e8){_0x4c1f3e=_0x4c1f3e-0x13a;let _0x1e16cc=_0x1fb37e[_0x4c1f3e];return _0x1e16cc;},a13_0x4c1f(_0x3fc085,_0x3f7f02);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x5e1ecb(0x14f));exports[a13_0x5e1ecb(0x141)]=a13_0x5e1ecb(0x13f),exports['desc']=a13_0x5e1ecb(0x140),exports[a13_0x5e1ecb(0x143)]=function(_0x312ea2){const _0x6d11e0=a13_0x5e1ecb,_0x5be7f5={};_0x5be7f5[_0x6d11e0(0x149)]=_0x6d11e0(0x148),_0x5be7f5['DyFKA']=_0x6d11e0(0x14a);const _0x2023f0=_0x5be7f5;return _0x312ea2[_0x6d11e0(0x13a)](_0x2023f0[_0x6d11e0(0x149)])[_0x6d11e0(0x14d)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x6d11e0(0x151)])[_0x6d11e0(0x150)](HELP_FOOTER_MESSAGE)[_0x6d11e0(0x152)]()[_0x6d11e0(0x13c)]()['help'](_0x2023f0[_0x6d11e0(0x144)]);},exports[a13_0x5e1ecb(0x13e)]=function(_0x5408fe){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a14_0x32f6(_0x149fc4,_0xc5f74){const _0x4edc95=a14_0x4edc();return a14_0x32f6=function(_0x32f632,_0x185286){_0x32f632=_0x32f632-0x1cd;let _0x24f48e=_0x4edc95[_0x32f632];return _0x24f48e;},a14_0x32f6(_0x149fc4,_0xc5f74);}const a14_0x8eb349=a14_0x32f6;(function(_0x17ddf4,_0x592f4c){const _0x305a77=a14_0x32f6,_0x351989=_0x17ddf4();while(!![]){try{const _0x5e6c3e=-parseInt(_0x305a77(0x1e4))/0x1+parseInt(_0x305a77(0x1f1))/0x2+parseInt(_0x305a77(0x1f8))/0x3+-parseInt(_0x305a77(0x211))/0x4*(parseInt(_0x305a77(0x1f7))/0x5)+parseInt(_0x305a77(0x1f2))/0x6+-parseInt(_0x305a77(0x1d3))/0x7+parseInt(_0x305a77(0x1fc))/0x8*(parseInt(_0x305a77(0x1ef))/0x9);if(_0x5e6c3e===_0x592f4c)break;else _0x351989['push'](_0x351989['shift']());}catch(_0x248db7){_0x351989['push'](_0x351989['shift']());}}}(a14_0x4edc,0x3691a));const fs=require('fs'),got=require(a14_0x8eb349(0x1ed)),{table}=require(a14_0x8eb349(0x1d1)),{v4:uuidv4}=require(a14_0x8eb349(0x1f0)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a14_0x4edc(){const _0x180e59=['DgBVi','builder','MAfdF','push','grid-profiles','handler','UueKc','table','XrOci','1714132NtroIY','stack','description','tgoWo','wbYON','desc','TzCVu','XVwKr','ERROR','concurrency','usage','cloudProvider','INFO','argv','statusCode','readFileSync','parse','236987rBIpmK','allGridProfiles','gridProfile','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kLEeV','password','AcqqP','https://','epilogue','got','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','5013fQwSzE','uuid','258978cuvMgP','1972134lxvvMd','WemAw','exit','Beavi','vThhW','250615ccHnQG','793356rzGloO','unknown-error','/packages/cli/get-grid-profiles','grid-profile-name','1192XQTFMe','existsSync','EoEQm','server-error','rxErk','cloud-provider','CIwBm','cRODz','command','region','NiDIx','body','name','/packages/cli/get-all-grid-profiles','username','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','GqHmW','type','list','wKdxR','list-grid-profiles-called','8rdXywc','help','MzOze','all-grid-profiles','SyvLD','MZSEg','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','bstackUsername','log','error','unauthorised','Browserstack'];a14_0x4edc=function(){return _0x180e59;};return a14_0x4edc();}exports[a14_0x8eb349(0x204)]=a14_0x8eb349(0x1ce),exports[a14_0x8eb349(0x1d8)]=a14_0x8eb349(0x217),exports[a14_0x8eb349(0x21e)]=function(_0x3ba893){const _0x69283a=a14_0x8eb349,_0xe80c7={};_0xe80c7['CIwBm']=_0x69283a(0x20b),_0xe80c7[_0x69283a(0x1d2)]='boolean',_0xe80c7[_0x69283a(0x1f5)]='help';const _0x3425fe=_0xe80c7,_0x38caab={};_0x38caab[_0x69283a(0x1d5)]=_0x3425fe[_0x69283a(0x202)],_0x38caab[_0x69283a(0x20d)]=_0x3425fe[_0x69283a(0x1d2)];const _0x2c41f8={};return _0x2c41f8[_0x69283a(0x214)]=_0x38caab,_0x3ba893[_0x69283a(0x1dd)](HELP_HEADER_MESSAGE[_0x69283a(0x20e)][_0x69283a(0x1e6)])[_0x69283a(0x1ec)](HELP_FOOTER_MESSAGE)['options'](_0x2c41f8)[_0x69283a(0x212)](_0x3425fe[_0x69283a(0x1f5)])[_0x69283a(0x1e0)];},exports[a14_0x8eb349(0x1cf)]=async function(_0x5c9882){const _0x39ea41=a14_0x8eb349,_0x1e73f8={'DgBVi':function(_0x470a9d){return _0x470a9d();},'EoEQm':_0x39ea41(0x1ee),'WemAw':function(_0x53935a,_0x2532e9,_0x376ef3,_0x8ec4e2,_0x340662,_0x178828,_0x542ff8){return _0x53935a(_0x2532e9,_0x376ef3,_0x8ec4e2,_0x340662,_0x178828,_0x542ff8);},'tgoWo':_0x39ea41(0x210),'MZSEg':'init-not-called','kBJwH':function(_0x135fb2){return _0x135fb2();},'kLEeV':'GET','wKdxR':function(_0x3f2c9c,_0x256497,_0x4a7a5f){return _0x3f2c9c(_0x256497,_0x4a7a5f);},'MzOze':function(_0x1c24cb,_0x58ad28,_0x493557,_0x4c0421,_0x48e756,_0x5ae332,_0x4d6495){return _0x1c24cb(_0x58ad28,_0x493557,_0x4c0421,_0x48e756,_0x5ae332,_0x4d6495);},'SyvLD':function(_0x1b0c3c,_0x16cc93,_0x2417c1){return _0x1b0c3c(_0x16cc93,_0x2417c1);},'GqHmW':function(_0x3b9ad7,_0x1013bd){return _0x3b9ad7!==_0x1013bd;},'cRODz':function(_0x3af95d,_0x26050b){return _0x3af95d===_0x26050b;},'NBNjb':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','NiDIx':_0x39ea41(0x1fb),'TzCVu':_0x39ea41(0x201),'JRvQz':_0x39ea41(0x205),'rxErk':'concurrency','PMzSn':function(_0x308b2c,_0x45969e){return _0x308b2c(_0x45969e);},'JhUDu':function(_0x52d3eb,_0x5c9f61){return _0x52d3eb===_0x5c9f61;},'wbYON':function(_0x56a477,_0x1f59b1,_0x8e82fb,_0x36e638,_0x589350,_0x1b62c8,_0x2902db){return _0x56a477(_0x1f59b1,_0x8e82fb,_0x36e638,_0x589350,_0x1b62c8,_0x2902db);},'vThhW':_0x39ea41(0x21b),'MAfdF':function(_0x2a3ce9,_0x4a616c,_0x160d7f,_0x101601,_0xf09d77,_0x4f7fe3,_0x466f25){return _0x2a3ce9(_0x4a616c,_0x160d7f,_0x101601,_0xf09d77,_0x4f7fe3,_0x466f25);},'AcqqP':_0x39ea41(0x1ff),'XVwKr':function(_0x3d5bac,_0x167a52,_0x51593a,_0x51a01f,_0x5178ef,_0x20a3aa,_0x14b69c){return _0x3d5bac(_0x167a52,_0x51593a,_0x51a01f,_0x5178ef,_0x20a3aa,_0x14b69c);},'UueKc':_0x39ea41(0x1f9)};try{global_registry['requestId']=_0x1e73f8[_0x39ea41(0x21d)](uuidv4);let _0x5710dc=_0x39ea41(0x1eb)+AG_API_URL+_0x39ea41(0x1fa);_0x5c9882[_0x39ea41(0x1e5)]&&(_0x5710dc=_0x39ea41(0x1eb)+AG_API_URL+_0x39ea41(0x209));!fs[_0x39ea41(0x1fd)](_0x1e73f8[_0x39ea41(0x21d)](getCredentialsPath))&&(console['error'](_0x1e73f8[_0x39ea41(0x1fe)]),await _0x1e73f8[_0x39ea41(0x1f3)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes[_0x39ea41(0x1db)],_0x1e73f8[_0x39ea41(0x216)],null,_0x5c9882),process[_0x39ea41(0x1f4)](0x1));const _0x3e9856=JSON[_0x39ea41(0x1e3)](fs[_0x39ea41(0x1e2)](_0x1e73f8['kBJwH'](getCredentialsPath))),_0x407680={'method':_0x1e73f8[_0x39ea41(0x1e8)],'headers':_0x1e73f8[_0x39ea41(0x20f)](getAuthHeader,_0x3e9856['Browserstack'][_0x39ea41(0x20a)],_0x3e9856[_0x39ea41(0x21c)][_0x39ea41(0x1e9)]),'throwHttpErrors':![]};global_registry[_0x39ea41(0x218)]=_0x3e9856[_0x39ea41(0x21c)][_0x39ea41(0x20a)],global_registry['bstackAccesskey']=_0x3e9856[_0x39ea41(0x21c)][_0x39ea41(0x1e9)],_0x1e73f8[_0x39ea41(0x213)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes[_0x39ea41(0x1df)],null,null,_0x5c9882);const _0x2aaaab=await _0x1e73f8[_0x39ea41(0x215)](got,_0x5710dc,_0x407680);if(_0x1e73f8[_0x39ea41(0x20c)](_0x2aaaab,null)&&_0x1e73f8['GqHmW'](_0x2aaaab,undefined)&&_0x1e73f8[_0x39ea41(0x203)](_0x2aaaab[_0x39ea41(0x1e1)],0xc8)){const _0x1365c2=JSON[_0x39ea41(0x1e3)](_0x2aaaab[_0x39ea41(0x207)]);console[_0x39ea41(0x219)](_0x1e73f8['NBNjb']);const _0x2c56cd=[];_0x2c56cd[_0x39ea41(0x1cd)]([_0x1e73f8[_0x39ea41(0x206)],_0x1e73f8[_0x39ea41(0x1d9)],_0x1e73f8['JRvQz'],_0x1e73f8[_0x39ea41(0x200)]]),_0x1365c2['forEach'](_0x18afad=>{const _0x29256a=_0x39ea41;_0x2c56cd['push']([_0x18afad[_0x29256a(0x208)],_0x18afad[_0x29256a(0x1de)],_0x18afad[_0x29256a(0x205)],_0x18afad[_0x29256a(0x1dc)]]);}),console[_0x39ea41(0x219)](_0x1e73f8['PMzSn'](table,_0x2c56cd)),process[_0x39ea41(0x1f4)](0x0);}_0x1e73f8['JhUDu'](_0x2aaaab[_0x39ea41(0x1e1)],0x191)&&(console[_0x39ea41(0x21a)](_0x39ea41(0x1e7)),await _0x1e73f8[_0x39ea41(0x1d7)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes[_0x39ea41(0x1db)],_0x1e73f8[_0x39ea41(0x1f6)],null,_0x5c9882),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2aaaab)),await _0x1e73f8[_0x39ea41(0x21f)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8['tgoWo'],messageTypes['ERROR'],_0x1e73f8[_0x39ea41(0x1ea)],_0x2aaaab,_0x5c9882),process[_0x39ea41(0x1f4)](0x1);}catch(_0x5658ff){console[_0x39ea41(0x21a)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5658ff[_0x39ea41(0x1d4)]),await _0x1e73f8[_0x39ea41(0x1da)](sendInstrumentationEvent,_0x5c9882,_0x1e73f8[_0x39ea41(0x1d6)],messageTypes['ERROR'],_0x1e73f8[_0x39ea41(0x1d0)],_0x5658ff,_0x5c9882),process[_0x39ea41(0x1f4)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15_0x4e0e40=a15_0xbc3f;(function(_0x513ed9,_0x21b875){const _0x526eec=a15_0xbc3f,_0x34c792=_0x513ed9();while(!![]){try{const _0x56170f=-parseInt(_0x526eec(0x118))/0x1*(parseInt(_0x526eec(0x149))/0x2)+parseInt(_0x526eec(0x120))/0x3*(parseInt(_0x526eec(0x108))/0x4)+parseInt(_0x526eec(0x123))/0x5+-parseInt(_0x526eec(0x132))/0x6+-parseInt(_0x526eec(0x130))/0x7+-parseInt(_0x526eec(0x14f))/0x8*(-parseInt(_0x526eec(0x114))/0x9)+-parseInt(_0x526eec(0x11c))/0xa*(parseInt(_0x526eec(0x13d))/0xb);if(_0x56170f===_0x21b875)break;else _0x34c792['push'](_0x34c792['shift']());}catch(_0x1ab09d){_0x34c792['push'](_0x34c792['shift']());}}}(a15_0x53e5,0x8f14e));function a15_0xbc3f(_0x53f14b,_0x24ad15){const _0x53e524=a15_0x53e5();return a15_0xbc3f=function(_0xbc3ff8,_0x557b28){_0xbc3ff8=_0xbc3ff8-0x106;let _0xd7f232=_0x53e524[_0xbc3ff8];return _0xd7f232;},a15_0xbc3f(_0x53f14b,_0x24ad15);}const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0x4e0e40(0x152)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4e0e40(0x112)),{getCredentialsPath,getAuthHeader}=require(a15_0x4e0e40(0x15e)),{sendInstrumentationEvent}=require(a15_0x4e0e40(0x119));function a15_0x53e5(){const _0x5eeb0b=['push','readFileSync','bstackAccesskey','HzUdQ','fuyIX','grids','server-error','https://','../../utils/utilityMethods','grid-id','tsLZJ','GoEKu','52sDxbFJ','exit','Tbesq','handler','stringify','bstackUsername','KmYVj','options','username','all-grids','../../config/constants','body','742167TFcKOB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','Browserstack','7IwwrzF','../../utils/instrumentationUtils','HzavY','type','187640vJrRKN','dnUiN','BoCop','error','211668oGOSHa','/packages/cli/get-all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','4374390hCTafV','list-grids-called','\x0aFound\x20the\x20following\x20grids:\x0a','JIHKZ','running','JGvmq','status','qrHoc','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','grid-name','PjjRf','description','help','6442121DmZvLb','allGrids','109410eSCziC','NxqYw','jSfGV','unauthorised','command','grid','stack','queued','RKQUH','statusCode','clusterName','341bJMGmP','cluster-name','requestId','qdTgJ','existsSync','forEach','unknown-error','password','log','pFIvv','OSlhy','parse','216526WqRbWH','init-not-called','ERROR','/packages/cli/get-grids','usage','DKwXH','104sWbETT','name','SJdjF','uuid','boolean','gKcgz','argv'];a15_0x53e5=function(){return _0x5eeb0b;};return a15_0x53e5();}exports[a15_0x4e0e40(0x136)]=a15_0x4e0e40(0x15b),exports[a15_0x4e0e40(0x116)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x929549){const _0x3618a4=a15_0x4e0e40,_0x3c50e6={};_0x3c50e6[_0x3618a4(0x15a)]=_0x3618a4(0x12b),_0x3c50e6['qdTgJ']=_0x3618a4(0x153),_0x3c50e6[_0x3618a4(0x146)]=_0x3618a4(0x12f);const _0x2d83e8=_0x3c50e6,_0x54b03a={};_0x54b03a[_0x3618a4(0x12e)]=_0x2d83e8[_0x3618a4(0x15a)],_0x54b03a[_0x3618a4(0x11b)]=_0x2d83e8[_0x3618a4(0x140)];const _0x535651={};return _0x535651[_0x3618a4(0x111)]=_0x54b03a,_0x929549[_0x3618a4(0x14d)](HELP_HEADER_MESSAGE['list'][_0x3618a4(0x137)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3618a4(0x10f)](_0x535651)[_0x3618a4(0x12f)](_0x2d83e8['pFIvv'])[_0x3618a4(0x155)];},exports[a15_0x4e0e40(0x10b)]=async function(_0x3c1ee4){const _0x1cb6ab=a15_0x4e0e40,_0x114f20={'HzUdQ':function(_0x42ccae){return _0x42ccae();},'DKwXH':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qrHoc':function(_0x58da45,_0x589e93,_0x446feb,_0x26b34e,_0xeb89a1,_0x4aa6ec,_0x12f672){return _0x58da45(_0x589e93,_0x446feb,_0x26b34e,_0xeb89a1,_0x4aa6ec,_0x12f672);},'HzavY':_0x1cb6ab(0x124),'BoCop':_0x1cb6ab(0x14a),'NxqYw':'GET','jSfGV':function(_0x3a3cde,_0x34810f,_0x17e9ab){return _0x3a3cde(_0x34810f,_0x17e9ab);},'tsLZJ':function(_0x5024bc,_0x169cfe,_0x1f6f92){return _0x5024bc(_0x169cfe,_0x1f6f92);},'PvzyX':function(_0x58bcd9,_0x192340){return _0x58bcd9!==_0x192340;},'GoEKu':function(_0x26d726,_0xd765dd){return _0x26d726===_0xd765dd;},'PjjRf':_0x1cb6ab(0x125),'OSlhy':_0x1cb6ab(0x15f),'KmYVj':_0x1cb6ab(0x12c),'SJdjF':'status','ZFvIz':_0x1cb6ab(0x127),'JIHKZ':_0x1cb6ab(0x139),'dnUiN':_0x1cb6ab(0x13e),'JGvmq':function(_0x5ebefd,_0x4653ac){return _0x5ebefd(_0x4653ac);},'RKQUH':_0x1cb6ab(0x135),'Tbesq':_0x1cb6ab(0x15c),'CcIdg':function(_0x2aad05,_0x2c42ac,_0x335edf,_0x371349,_0xf25ad4,_0x539d25,_0x313599){return _0x2aad05(_0x2c42ac,_0x335edf,_0x371349,_0xf25ad4,_0x539d25,_0x313599);},'gKcgz':_0x1cb6ab(0x143)};try{global_registry[_0x1cb6ab(0x13f)]=_0x114f20['HzUdQ'](uuidv4);!fs[_0x1cb6ab(0x141)](_0x114f20[_0x1cb6ab(0x159)](getCredentialsPath))&&(console[_0x1cb6ab(0x11f)](_0x114f20[_0x1cb6ab(0x14e)]),await _0x114f20[_0x1cb6ab(0x12a)](sendInstrumentationEvent,_0x3c1ee4,_0x114f20[_0x1cb6ab(0x11a)],messageTypes[_0x1cb6ab(0x14b)],_0x114f20[_0x1cb6ab(0x11e)],null,_0x3c1ee4),process['exit'](0x1));const _0x8518ea=JSON[_0x1cb6ab(0x148)](fs[_0x1cb6ab(0x157)](_0x114f20[_0x1cb6ab(0x159)](getCredentialsPath)));let _0x32fb2f=_0x1cb6ab(0x15d)+AG_API_URL+_0x1cb6ab(0x14c);_0x3c1ee4[_0x1cb6ab(0x131)]&&(_0x32fb2f='https://'+AG_API_URL+_0x1cb6ab(0x121));const _0x561d50={'method':_0x114f20[_0x1cb6ab(0x133)],'headers':_0x114f20[_0x1cb6ab(0x134)](getAuthHeader,_0x8518ea[_0x1cb6ab(0x117)][_0x1cb6ab(0x110)],_0x8518ea[_0x1cb6ab(0x117)][_0x1cb6ab(0x144)]),'throwHttpErrors':![]};global_registry[_0x1cb6ab(0x10d)]=_0x8518ea[_0x1cb6ab(0x117)]['username'],global_registry[_0x1cb6ab(0x158)]=_0x8518ea[_0x1cb6ab(0x117)][_0x1cb6ab(0x144)],_0x114f20['qrHoc'](sendInstrumentationEvent,_0x3c1ee4,_0x114f20[_0x1cb6ab(0x11a)],messageTypes['INFO'],null,null,_0x3c1ee4);const _0x34f648=await _0x114f20[_0x1cb6ab(0x106)](got,_0x32fb2f,_0x561d50);if(_0x114f20['PvzyX'](_0x34f648,null)&&_0x114f20['PvzyX'](_0x34f648,undefined)&&_0x114f20['GoEKu'](_0x34f648[_0x1cb6ab(0x13b)],0xc8)){const _0x2a9630=JSON[_0x1cb6ab(0x148)](_0x34f648[_0x1cb6ab(0x113)]);console[_0x1cb6ab(0x145)](_0x114f20[_0x1cb6ab(0x12d)]);const _0xe64758=[];_0xe64758['push']([_0x114f20[_0x1cb6ab(0x147)],_0x114f20[_0x1cb6ab(0x10e)],_0x114f20[_0x1cb6ab(0x151)],_0x114f20['ZFvIz'],_0x114f20[_0x1cb6ab(0x126)],_0x114f20[_0x1cb6ab(0x11d)]]),_0x2a9630[_0x1cb6ab(0x142)](_0x337c9e=>{const _0x148151=_0x1cb6ab;_0xe64758[_0x148151(0x156)]([_0x337c9e['id'],_0x337c9e[_0x148151(0x150)],_0x337c9e[_0x148151(0x129)],_0x337c9e[_0x148151(0x127)],_0x337c9e[_0x148151(0x139)],_0x337c9e[_0x148151(0x13c)]]);}),console[_0x1cb6ab(0x145)](_0x114f20[_0x1cb6ab(0x128)](table,_0xe64758)),process[_0x1cb6ab(0x109)](0x0);}_0x114f20[_0x1cb6ab(0x107)](_0x34f648[_0x1cb6ab(0x13b)],0x191)&&(console['error'](_0x1cb6ab(0x115)),await _0x114f20[_0x1cb6ab(0x12a)](sendInstrumentationEvent,_0x3c1ee4,_0x114f20[_0x1cb6ab(0x11a)],messageTypes[_0x1cb6ab(0x14b)],_0x114f20[_0x1cb6ab(0x13a)],null,_0x3c1ee4),process[_0x1cb6ab(0x109)](0x1)),console[_0x1cb6ab(0x11f)](_0x1cb6ab(0x122)+JSON[_0x1cb6ab(0x10c)](_0x34f648)),await _0x114f20[_0x1cb6ab(0x12a)](sendInstrumentationEvent,_0x3c1ee4,_0x114f20['HzavY'],messageTypes[_0x1cb6ab(0x14b)],_0x114f20[_0x1cb6ab(0x10a)],_0x34f648,_0x3c1ee4),process[_0x1cb6ab(0x109)](0x1);}catch(_0x4a22a7){console[_0x1cb6ab(0x11f)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x4a22a7[_0x1cb6ab(0x138)]),await _0x114f20['CcIdg'](sendInstrumentationEvent,_0x3c1ee4,_0x114f20['HzavY'],messageTypes['ERROR'],_0x114f20[_0x1cb6ab(0x154)],_0x4a22a7,_0x3c1ee4),process[_0x1cb6ab(0x109)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0xd8b42f=a16_0x3c23;(function(_0x46de44,_0x2d58ac){const _0x4d7cc8=a16_0x3c23,_0x1b8a69=_0x46de44();while(!![]){try{const _0x20db04=-parseInt(_0x4d7cc8(0xde))/0x1+parseInt(_0x4d7cc8(0xd5))/0x2+-parseInt(_0x4d7cc8(0xe4))/0x3+parseInt(_0x4d7cc8(0xe1))/0x4+-parseInt(_0x4d7cc8(0xd7))/0x5+parseInt(_0x4d7cc8(0xe7))/0x6+parseInt(_0x4d7cc8(0xe9))/0x7;if(_0x20db04===_0x2d58ac)break;else _0x1b8a69['push'](_0x1b8a69['shift']());}catch(_0x5ea42f){_0x1b8a69['push'](_0x1b8a69['shift']());}}}(a16_0x1c8b,0xb4306));function a16_0x3c23(_0x476b5a,_0x2eeb5c){const _0x1c8b50=a16_0x1c8b();return a16_0x3c23=function(_0x3c23f4,_0x5306c8){_0x3c23f4=_0x3c23f4-0xd5;let _0xfcd295=_0x1c8b50[_0x3c23f4];return _0xfcd295;},a16_0x3c23(_0x476b5a,_0x2eeb5c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xd8b42f(0xe5));exports['command']=a16_0xd8b42f(0xd9),exports[a16_0xd8b42f(0xe6)]=a16_0xd8b42f(0xdb),exports[a16_0xd8b42f(0xe3)]=function(_0x4bf6d6){const _0x525431=a16_0xd8b42f,_0x1af4a9={};_0x1af4a9[_0x525431(0xd8)]='start_commands',_0x1af4a9[_0x525431(0xdf)]='help';const _0x1157fe=_0x1af4a9;return _0x4bf6d6[_0x525431(0xe8)](HELP_HEADER_MESSAGE[_0x525431(0xd9)])[_0x525431(0xd6)](HELP_FOOTER_MESSAGE)[_0x525431(0xda)](_0x1157fe['GUnvp'])[_0x525431(0xdd)]()[_0x525431(0xe0)]()['strict']()[_0x525431(0xdc)](_0x1157fe[_0x525431(0xdf)]);},exports[a16_0xd8b42f(0xe2)]=function(_0x3cb10e){};function a16_0x1c8b(){const _0x44336c=['desc','4389078VDbPKY','usage','2228051rXstig','744904GNpGiE','epilogue','318010Fvmqhi','GUnvp','start','commandDir','Start\x20an\x20existing\x20Automation\x20grid.','help','demandCommand','708458CeiyeI','uPQhK','recommendCommands','2917884yqXmnL','handler','builder','1924845byCQHI','../config/constants'];a16_0x1c8b=function(){return _0x44336c;};return a16_0x1c8b();}
|