browserstack-node-sdk 1.42.0 → 1.42.1
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.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/ai-sdk-node/bundle.js +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/cucumber-sessionDetails.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/playwright-patcher.js +1 -1
- package/src/bin/cucumber-js/test-observability.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/customSequencer.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/load/index.js +1 -1
- package/src/bin/load/loadUtils.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 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/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/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.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/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.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/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.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/metadata.js +1 -1
- package/src/helpers/patchHelper.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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0xc2a7(){const _0xab9be6=['164948jQczfb','BAdqN','grid','init-not-called','list','4106832rAvSGJ','GQoAN','https://','server-error','IiAVu','/packages/cli/get-all-grids','uotbB','fGWUW','6120UwntPH','readFileSync','name','grid-id','fVOpx','Failed\x20to\x20list\x20resources!\x20Error:\x20','ERROR','list-grids-called','usage','172441okGuOF','Browserstack','VKPTg','../../utils/utilityMethods','forEach','uuid','SkfYM','stringify','queued','running','mwjRL','GKAVI','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','command','DizBu','HACWo','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','25970JXgdHL','\x0aFound\x20the\x20following\x20grids:\x0a','qWrFw','table','argv','HvLIA','handler','password','status','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','636IMDovq','error','pbfnI','options','/packages/cli/get-grids','push','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4jmdaBd','gOSuP','desc','cjvQS','exit','parse','log','help','680691BwwBdL','GET','NztdS','zhLYi','bstackAccesskey','description','grids','HKtmP','miUWu','LlCQP','epilogue','body','kUFgf','1456856XFkyAl','RPJot','unauthorised','statusCode','vTUdj','../../utils/instrumentationUtils','username','../../config/constants','clusterName','13710KnlPtA','egxax'];a15_0xc2a7=function(){return _0xab9be6;};return a15_0xc2a7();}const a15_0x39a787=a15_0x14cd;(function(_0x554ce1,_0x1479e1){const _0x2c216=a15_0x14cd,_0x5e29ee=_0x554ce1();while(!![]){try{const _0x37bdcb=parseInt(_0x2c216(0x1fc))/0x1*(parseInt(_0x2c216(0x1c6))/0x2)+-parseInt(_0x2c216(0x1ce))/0x3+parseInt(_0x2c216(0x1db))/0x4+-parseInt(_0x2c216(0x1b5))/0x5*(parseInt(_0x2c216(0x1bf))/0x6)+-parseInt(_0x2c216(0x1e6))/0x7+-parseInt(_0x2c216(0x1eb))/0x8+parseInt(_0x2c216(0x1f3))/0x9*(parseInt(_0x2c216(0x1e4))/0xa);if(_0x37bdcb===_0x1479e1)break;else _0x5e29ee['push'](_0x5e29ee['shift']());}catch(_0x3c1956){_0x5e29ee['push'](_0x5e29ee['shift']());}}}(a15_0xc2a7,0x4fd55));const fs=require('fs'),got=require('got'),{table}=require(a15_0x39a787(0x1b8)),{v4:uuidv4}=require(a15_0x39a787(0x201)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x39a787(0x1e2)),{getCredentialsPath,getAuthHeader}=require(a15_0x39a787(0x1ff)),{sendInstrumentationEvent}=require(a15_0x39a787(0x1e0));function a15_0x14cd(_0x52db14,_0x3bc076){const _0xc2a76c=a15_0xc2a7();return a15_0x14cd=function(_0x14cd6c,_0x22c95a){_0x14cd6c=_0x14cd6c-0x1b1;let _0x367c6a=_0xc2a76c[_0x14cd6c];return _0x367c6a;},a15_0x14cd(_0x52db14,_0x3bc076);}exports[a15_0x39a787(0x209)]=a15_0x39a787(0x1d4),exports[a15_0x39a787(0x1c8)]=a15_0x39a787(0x1be),exports['builder']=function(_0x57d0c3){const _0x3d026c=a15_0x39a787,_0x31ff4c={};_0x31ff4c['GKAVI']=_0x3d026c(0x208),_0x31ff4c[_0x3d026c(0x1d7)]='boolean',_0x31ff4c[_0x3d026c(0x1d6)]=_0x3d026c(0x1cd);const _0x32420c=_0x31ff4c,_0x2e59ff={};_0x2e59ff[_0x3d026c(0x1d3)]=_0x32420c[_0x3d026c(0x207)],_0x2e59ff[_0x3d026c(0x1b3)]=_0x32420c[_0x3d026c(0x1d7)];const _0x2a2101={};return _0x2a2101['all-grids']=_0x2e59ff,_0x57d0c3[_0x3d026c(0x1fb)](HELP_HEADER_MESSAGE[_0x3d026c(0x1ea)][_0x3d026c(0x1e8)])[_0x3d026c(0x1d8)](HELP_FOOTER_MESSAGE)[_0x3d026c(0x1c2)](_0x2a2101)['help'](_0x32420c[_0x3d026c(0x1d6)])[_0x3d026c(0x1b9)];},exports[a15_0x39a787(0x1bb)]=async function(_0x2b6d8b){const _0x154f4c=a15_0x39a787,_0x3a24fe={'HACWo':function(_0x51bfe3){return _0x51bfe3();},'BAdqN':_0x154f4c(0x1c5),'rMKSA':function(_0x222339,_0x117793,_0x443301,_0x5ee57c,_0x35bd74,_0x197296,_0x3e69e9){return _0x222339(_0x117793,_0x443301,_0x5ee57c,_0x35bd74,_0x197296,_0x3e69e9);},'SkfYM':_0x154f4c(0x1fa),'egxax':_0x154f4c(0x1e9),'DizBu':_0x154f4c(0x1cf),'YoYga':function(_0x588297,_0x4c8ec9,_0x5b9ba0){return _0x588297(_0x4c8ec9,_0x5b9ba0);},'IiAVu':function(_0x1cba37,_0xe3a80c,_0x2f9f88,_0x5e3564,_0x11d35c,_0x556d55,_0x184210){return _0x1cba37(_0xe3a80c,_0x2f9f88,_0x5e3564,_0x11d35c,_0x556d55,_0x184210);},'fVOpx':function(_0x11e4ba,_0x26de22,_0x2218a0){return _0x11e4ba(_0x26de22,_0x2218a0);},'RPJot':function(_0x84f4a6,_0x4fb8d9){return _0x84f4a6!==_0x4fb8d9;},'VKPTg':function(_0x5bcf3,_0x21d7df){return _0x5bcf3===_0x21d7df;},'gOSuP':_0x154f4c(0x1b6),'uotbB':_0x154f4c(0x1f6),'GQoAN':'grid-name','HKtmP':_0x154f4c(0x1bd),'kUFgf':_0x154f4c(0x205),'vTUdj':_0x154f4c(0x204),'NztdS':'cluster-name','mwjRL':function(_0x20f106,_0x12a44f){return _0x20f106(_0x12a44f);},'zhLYi':function(_0x28b226,_0x21fc18){return _0x28b226===_0x21fc18;},'qWrFw':_0x154f4c(0x1b4),'HvLIA':function(_0x3831a7,_0xa265da,_0x564040,_0x226346,_0x23c335,_0x2ad0a4,_0x2bd912){return _0x3831a7(_0xa265da,_0x564040,_0x226346,_0x23c335,_0x2ad0a4,_0x2bd912);},'OSidB':_0x154f4c(0x1dd),'cjvQS':function(_0x5a3448,_0x2ede08,_0x270fb8,_0x2734ea,_0x1e2bc4,_0x603ffc,_0x5df204){return _0x5a3448(_0x2ede08,_0x270fb8,_0x2734ea,_0x1e2bc4,_0x603ffc,_0x5df204);},'fGWUW':_0x154f4c(0x1ee),'pbfnI':'unknown-error'};try{global_registry['requestId']=_0x3a24fe[_0x154f4c(0x1b2)](uuidv4);!fs['existsSync'](_0x3a24fe['HACWo'](getCredentialsPath))&&(console[_0x154f4c(0x1c0)](_0x3a24fe[_0x154f4c(0x1e7)]),await _0x3a24fe['rMKSA'](sendInstrumentationEvent,_0x2b6d8b,_0x3a24fe[_0x154f4c(0x202)],messageTypes[_0x154f4c(0x1f9)],_0x3a24fe[_0x154f4c(0x1e5)],null,_0x2b6d8b),process[_0x154f4c(0x1ca)](0x1));const _0x473ac4=JSON[_0x154f4c(0x1cb)](fs[_0x154f4c(0x1f4)](_0x3a24fe[_0x154f4c(0x1b2)](getCredentialsPath)));let _0x3af581=_0x154f4c(0x1ed)+AG_API_URL+_0x154f4c(0x1c3);_0x2b6d8b['allGrids']&&(_0x3af581=_0x154f4c(0x1ed)+AG_API_URL+_0x154f4c(0x1f0));const _0x18c678={'method':_0x3a24fe[_0x154f4c(0x1b1)],'headers':_0x3a24fe['YoYga'](getAuthHeader,_0x473ac4['Browserstack']['username'],_0x473ac4[_0x154f4c(0x1fd)][_0x154f4c(0x1bc)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x473ac4['Browserstack'][_0x154f4c(0x1e1)],global_registry[_0x154f4c(0x1d2)]=_0x473ac4[_0x154f4c(0x1fd)]['password'],_0x3a24fe[_0x154f4c(0x1ef)](sendInstrumentationEvent,_0x2b6d8b,_0x3a24fe['SkfYM'],messageTypes['INFO'],null,null,_0x2b6d8b);const _0x1d45d4=await _0x3a24fe[_0x154f4c(0x1f7)](got,_0x3af581,_0x18c678);if(_0x3a24fe['RPJot'](_0x1d45d4,null)&&_0x3a24fe[_0x154f4c(0x1dc)](_0x1d45d4,undefined)&&_0x3a24fe[_0x154f4c(0x1fe)](_0x1d45d4[_0x154f4c(0x1de)],0xc8)){const _0x1e83f3=JSON['parse'](_0x1d45d4[_0x154f4c(0x1d9)]);console[_0x154f4c(0x1cc)](_0x3a24fe[_0x154f4c(0x1c7)]);const _0x597f58=[];_0x597f58[_0x154f4c(0x1c4)]([_0x3a24fe[_0x154f4c(0x1f1)],_0x3a24fe[_0x154f4c(0x1ec)],_0x3a24fe[_0x154f4c(0x1d5)],_0x3a24fe[_0x154f4c(0x1da)],_0x3a24fe[_0x154f4c(0x1df)],_0x3a24fe[_0x154f4c(0x1d0)]]),_0x1e83f3[_0x154f4c(0x200)](_0x414b34=>{const _0x444710=_0x154f4c;_0x597f58[_0x444710(0x1c4)]([_0x414b34['id'],_0x414b34[_0x444710(0x1f5)],_0x414b34['status'],_0x414b34[_0x444710(0x205)],_0x414b34[_0x444710(0x204)],_0x414b34[_0x444710(0x1e3)]]);}),console[_0x154f4c(0x1cc)](_0x3a24fe[_0x154f4c(0x206)](table,_0x597f58)),process[_0x154f4c(0x1ca)](0x0);}_0x3a24fe[_0x154f4c(0x1d1)](_0x1d45d4['statusCode'],0x191)&&(console[_0x154f4c(0x1c0)](_0x3a24fe[_0x154f4c(0x1b7)]),await _0x3a24fe[_0x154f4c(0x1ba)](sendInstrumentationEvent,_0x2b6d8b,_0x3a24fe[_0x154f4c(0x202)],messageTypes[_0x154f4c(0x1f9)],_0x3a24fe['OSidB'],null,_0x2b6d8b),process[_0x154f4c(0x1ca)](0x1)),console[_0x154f4c(0x1c0)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x154f4c(0x203)](_0x1d45d4)),await _0x3a24fe[_0x154f4c(0x1c9)](sendInstrumentationEvent,_0x2b6d8b,_0x3a24fe['SkfYM'],messageTypes[_0x154f4c(0x1f9)],_0x3a24fe[_0x154f4c(0x1f2)],_0x1d45d4,_0x2b6d8b),process[_0x154f4c(0x1ca)](0x1);}catch(_0x52c950){console[_0x154f4c(0x1c0)](_0x154f4c(0x1f8)+_0x52c950['stack']),await _0x3a24fe['cjvQS'](sendInstrumentationEvent,_0x2b6d8b,_0x3a24fe[_0x154f4c(0x202)],messageTypes[_0x154f4c(0x1f9)],_0x3a24fe[_0x154f4c(0x1c1)],_0x52c950,_0x2b6d8b),process[_0x154f4c(0x1ca)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a16_0x2bbec1=a16_0x21a3;function a16_0x21a3(_0x386332,_0x3bb576){const _0x269997=a16_0x2699();return a16_0x21a3=function(_0x21a3f8,_0x31e239){_0x21a3f8=_0x21a3f8-0x185;let _0x43f2aa=_0x269997[_0x21a3f8];return _0x43f2aa;},a16_0x21a3(_0x386332,_0x3bb576);}(function(_0x52de70,_0x53e0c5){const _0x5f51e5=a16_0x21a3,_0x4b12b3=_0x52de70();while(!![]){try{const _0x50870b=parseInt(_0x5f51e5(0x193))/0x1+-parseInt(_0x5f51e5(0x18b))/0x2*(-parseInt(_0x5f51e5(0x185))/0x3)+-parseInt(_0x5f51e5(0x18c))/0x4+parseInt(_0x5f51e5(0x194))/0x5*(-parseInt(_0x5f51e5(0x187))/0x6)+-parseInt(_0x5f51e5(0x18e))/0x7+parseInt(_0x5f51e5(0x18a))/0x8+parseInt(_0x5f51e5(0x18d))/0x9;if(_0x50870b===_0x53e0c5)break;else _0x4b12b3['push'](_0x4b12b3['shift']());}catch(_0x134f11){_0x4b12b3['push'](_0x4b12b3['shift']());}}}(a16_0x2699,0xb738c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2bbec1(0x191));exports['command']=a16_0x2bbec1(0x197),exports[a16_0x2bbec1(0x195)]=a16_0x2bbec1(0x199),exports['builder']=function(_0x339733){const _0x78ed=a16_0x2bbec1,_0x4a758d={};_0x4a758d[_0x78ed(0x189)]='precheck_commands',_0x4a758d[_0x78ed(0x19b)]=_0x78ed(0x198);const _0x59aa76=_0x4a758d;return _0x339733[_0x78ed(0x19a)](HELP_HEADER_MESSAGE[_0x78ed(0x188)])[_0x78ed(0x196)](HELP_FOOTER_MESSAGE)[_0x78ed(0x186)](_0x59aa76[_0x78ed(0x189)])[_0x78ed(0x192)]()['recommendCommands']()[_0x78ed(0x190)]()['help'](_0x59aa76[_0x78ed(0x19b)]);},exports[a16_0x2bbec1(0x18f)]=function(_0x2d9846){};function a16_0x2699(){const _0x587faf=['pre-check','help','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','usage','UVxUj','78JytUKT','commandDir','6kgsjHp','pre_check','EQCxT','6751344rPhkac','1388VNaMyF','4462144jiGEOh','18588078UjXhwQ','6711586lIXfTT','handler','strict','../config/constants','demandCommand','988227QRUrQc','5453605CDjkRX','desc','epilogue'];a16_0x2699=function(){return _0x587faf;};return a16_0x2699();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17_0x4aa6f7=a17_0xa5c9;(function(_0x55fa14,_0x220c3e){const _0x30258e=a17_0xa5c9,_0x389def=_0x55fa14();while(!![]){try{const _0xb3372=parseInt(_0x30258e(0x196))/0x1+-parseInt(_0x30258e(0x258))/0x2+parseInt(_0x30258e(0x190))/0x3+-parseInt(_0x30258e(0x200))/0x4*(-parseInt(_0x30258e(0x22d))/0x5)+-parseInt(_0x30258e(0x250))/0x6+parseInt(_0x30258e(0x216))/0x7+parseInt(_0x30258e(0x25e))/0x8;if(_0xb3372===_0x220c3e)break;else _0x389def['push'](_0x389def['shift']());}catch(_0x510a05){_0x389def['push'](_0x389def['shift']());}}}(a17_0x9dd9,0x690ed));function a17_0x9dd9(){const _0x276b04=['authHeader','2|0|3|1|4','Cluster\x20details\x0a-----------------------\x0a','CfHZa','connectionTimeout','jVWKK','dummy-grid','region','`\x20already\x20exists','oPJUf','ZgWOd','data','798602mZxrHw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','length','uLilb','dGMJW','\x20region\x20-\x20','response','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','tlzCW','\x20===\x0a\x0a','isTls1_2_SUPPORTED','Whenr','Kablg','stringify','rKuoi','vOxDw','GET','IbRqZ','alZbX','message','cloud-provider-not-supported','Pre-check\x20running\x20for\x20Cloud\x20-\x20','yWUql','20AOTfAA','\x20error\x20:\x20','Message:\x20','gridProfile','zJQti','existsSync','\x20\x20Message:\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','uBGUZ','`\x20is\x20present\x20in\x20region\x20`','jrtVn','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','FaRBt','error\x20stack\x20:\x20','method','LLfQD','ayBBO','cloudProvider','../../utils/webSocketUtils','Ndyfg','RiBBc','laHYZ','type','QtBvo','reconnecting-websocket','cluster-name','fkwWB','kYMUz','CXlIO','BxvGj','INFO','cloud-provider','../../utils/utilityMethods','TLSv1_2_client_method','xBcWu','4939542KjilpH','AZKDk','WuOnc','HJPxk','usage','delay','\x20\x20Stack:\x20','NRuju','1397730OLkAYT','zJEod','uROrb','header','sQdLl','uuid','8031592rvINBV','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','tRrXk','checkAccess','vKHzo','zufEF','hhMui','freOL','epilogue','Grid\x20profile\x20fetched\x20for\x20pre-check','name','<UsernamePlaceholder>','uSUVo','CLOUD_PROVIDER',']\x20status\x20:\x20','description','argv','Status:\x20','clusterRegion','init','XukCo','IxsUD','waMZV','bJSho','find','FBENh','stack','../../utils/instrumentationUtils','QDIdX','stack\x20trace\x20','exit','BHdHS','Invalid\x20input.\x20grid\x20profiles:\x20','getUTCHours','yHptT','pre-check','getUTCMonth','cbWfI','pre-check-grid-called','cjZfo','THaIf','eClPR','TYJzM','cbLbO','Browserstack','toolInstalledResp','pre-check-cluster-args-not-passed','vJPVg','oCzFl','323823jNTSII','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','fIZjQ','dgKrN','xmbZK','530107huxtLu','builder','readFileSync','grid\x20profile\x20flow\x20','Setting\x20cloud\x20provider\x20as\x20','vhwdG','sxHHK','headers','jWAFG','SUGCJ','SSL\x20Configured','pGLYj','sendEventToBackend','debug','grid-profile','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','../../cloudproviders/utils','oOtlK','qcDXU','<PasswordPlaceholder>','desc','YutsL','hkuJn','LVSzF','zWwPR','yGFDS','ojNPP','CgMBx','pQjMF','push','handler','gJscF','info','\x20data\x20:\x20','IzOJf','clusterName','getUTCDate','grid','CCCKt','isTrialGridAccessible','bstackUsername','options','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','tioQX','cluster-check-failed-','skJZT','hPRzG','toLowerCase','JJNux','forEach','nwwvM','bstackAccesskey','Pnfxy','rZpdC','replace','parse','csXGY','dpfVp','code','Error\x20Details:\x0a','NXjax','cqGlG','FfkmV','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','YoIDW','HrgCI','KmMlQ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','OjpjO','vtDFT','status','Cluster\x20','.txt','../../config/constants','utf-8','EXNyo','N/A','unable\x20to\x20verify\x20if\x20cluster\x20`','iVCKo','username','HQvWO','password','===\x20Precheck\x20Report\x20-\x20','Failure','help','GGQdq','requestId','isClusterPresent','includes','Cluster\x20`','ALHhT','throwHttpErrors','gaJLr','cgeHW','WebSocket','wKAUE','aAVZS','JjoXE','vVuOs','rMJkz','join','is\x20already\x20present','owZQb','sbvLL','ERROR','TuVLb','196356PZxKFQ','will\x20be\x20created','nJaix','rROwz','pre_check','pre-check-failed','LrBsI','`\x20,error\x20:\x20','\x20\x20Code:\x20','error'];a17_0x9dd9=function(){return _0x276b04;};return a17_0x9dd9();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x4aa6f7(0x25d)),ReconnectingWebSocket=require(a17_0x4aa6f7(0x245)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4aa6f7(0x24d)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x4aa6f7(0x1df)),{getCloudProviderObjectWithOutInit}=require(a17_0x4aa6f7(0x1a6)),webSocketUtils=require(a17_0x4aa6f7(0x23f)),{sendInstrumentationEvent}=require(a17_0x4aa6f7(0x17a));exports['command']=a17_0x4aa6f7(0x1bb),exports[a17_0x4aa6f7(0x1aa)]=a17_0x4aa6f7(0x1d9),exports[a17_0x4aa6f7(0x197)]=function(_0xdf8bac){const _0x56ca6d=a17_0x4aa6f7,_0x229778={};_0x229778[_0x56ca6d(0x1f9)]=_0x56ca6d(0x191),_0x229778['uSUVo']='string',_0x229778[_0x56ca6d(0x1c3)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x229778['IbRqZ']=_0x56ca6d(0x1a5),_0x229778[_0x56ca6d(0x1d4)]=_0x56ca6d(0x238),_0x229778['pQjMF']=_0x56ca6d(0x1ea);const _0x5a284b=_0x229778,_0x5d57fb={};_0x5d57fb[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x1f9)],_0x5d57fb[_0x56ca6d(0x243)]=_0x5a284b[_0x56ca6d(0x26a)];const _0x5d0a0d={};_0x5d0a0d[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x1c3)],_0x5d0a0d['type']=_0x5a284b[_0x56ca6d(0x26a)];const _0x320f84={};_0x320f84[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x227)],_0x320f84[_0x56ca6d(0x243)]=_0x5a284b['uSUVo'];const _0x298fa5={};_0x298fa5[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x1d4)],_0x298fa5[_0x56ca6d(0x243)]=_0x5a284b[_0x56ca6d(0x26a)];const _0x38f501={};return _0x38f501['cluster-name']=_0x5d57fb,_0x38f501[_0x56ca6d(0x24c)]=_0x5d0a0d,_0x38f501[_0x56ca6d(0x211)]=_0x320f84,_0x38f501[_0x56ca6d(0x1a4)]=_0x298fa5,_0xdf8bac[_0x56ca6d(0x254)](HELP_HEADER_MESSAGE[_0x56ca6d(0x204)])[_0x56ca6d(0x266)](HELP_FOOTER_MESSAGE)[_0x56ca6d(0x1bf)](_0x38f501)['help'](_0x5a284b[_0x56ca6d(0x1b2)])[_0x56ca6d(0x16f)];};async function inputValidation(_0x29fcaa,_0x23681b){const _0x526c67=a17_0x4aa6f7,_0x83b81f={'TuVLb':function(_0x2644ab,_0x235caf){return _0x2644ab+_0x235caf;},'jWAFG':'Success','jVWKK':'Failure','wKAUE':function(_0x117df8,_0x7657f7){return _0x117df8||_0x7657f7;},'RiBBc':_0x526c67(0x1e2),'FBENh':_0x526c67(0x1d1),'csXGY':_0x526c67(0x25f),'nJaix':'error','zufEF':_0x526c67(0x191),'freOL':'string','XukCo':_0x526c67(0x1d5),'rqAeq':_0x526c67(0x1a5),'tlzCW':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','cbLbO':'help','fkwWB':_0x526c67(0x24c),'vKHzo':_0x526c67(0x246),'NRuju':_0x526c67(0x211),'fIZjQ':_0x526c67(0x1fb),'OEDKt':_0x526c67(0x201),'Kablg':function(_0xcc60fa,_0x2c34f5){return _0xcc60fa===_0x2c34f5;},'IzOJf':'CKbZa','rROwz':function(_0x84d582,_0x5efaef){return _0x84d582!==_0x5efaef;},'hkuJn':_0x526c67(0x253),'KmMlQ':'AjlRo','HrgCI':'cqnCg','gaJLr':function(_0xedc723,_0xa3e4cb){return _0xedc723!==_0xa3e4cb;},'laHYZ':_0x526c67(0x228),'yHptT':function(_0x128d9c,_0x5556d7){return _0x128d9c===_0x5556d7;},'Whenr':_0x526c67(0x1ab),'PzMHM':'zPAgp','GGQdq':function(_0x2187c0,_0x48a8c5){return _0x2187c0>_0x48a8c5;},'kYMUz':function(_0x73725a,_0x236651){return _0x73725a===_0x236651;},'zWwPR':_0x526c67(0x1cf),'ayBBO':function(_0x3141ff,_0x27ea86,_0x21b1db,_0xc0af3,_0x27159c,_0x24dfc8,_0xfdbb4d,_0x474130){return _0x3141ff(_0x27ea86,_0x21b1db,_0xc0af3,_0x27159c,_0x24dfc8,_0xfdbb4d,_0x474130);},'uROrb':_0x526c67(0x185),'sbvLL':_0x526c67(0x18d),'dgKrN':function(_0xf85c2a,_0x70cc56){return _0xf85c2a===_0x70cc56;},'NXjax':_0x526c67(0x237),'CCCKt':_0x526c67(0x195),'qcDXU':_0x526c67(0x1c0),'WuOnc':_0x526c67(0x22a),'IxsUD':'nNuQn','oPJUf':function(_0x37494b,_0x1870a3){return _0x37494b!==_0x1870a3;},'vJPVg':_0x526c67(0x259),'HQvWO':_0x526c67(0x184),'waMZV':_0x526c67(0x226),'Ndyfg':function(_0x409e28,_0x493fee,_0x1500ee){return _0x409e28(_0x493fee,_0x1500ee);},'YoIDW':function(_0x352c78,_0x55bb5f,_0x221c79,_0x388c30,_0x11057b,_0x34eac5){return _0x352c78(_0x55bb5f,_0x221c79,_0x388c30,_0x11057b,_0x34eac5);},'EXNyo':_0x526c67(0x182),'pGLYj':'grid-profile','dKLBa':_0x526c67(0x188),'bJSho':_0x526c67(0x231),'xBcWu':function(_0x4c4a9a,_0x2d2838){return _0x4c4a9a(_0x2d2838);},'Pnfxy':_0x526c67(0x1f8),'mQQYq':'pre-check-grid-profile-empty','tRrXk':function(_0x1e38ef,_0x36609f){return _0x1e38ef===_0x36609f;},'EByre':_0x526c67(0x189),'HxjYG':_0x526c67(0x20d),'CgMBx':_0x526c67(0x17e),'grckm':_0x526c67(0x267),'syfQG':function(_0x39c86c,_0x162922){return _0x39c86c!==_0x162922;},'hPRzG':'nmElo','ieyFo':_0x526c67(0x1ad),'KNwSV':function(_0xd109c1,_0x12ad7d){return _0xd109c1===_0x12ad7d;},'nwwvM':_0x526c67(0x1b0),'cqGlG':_0x526c67(0x206),'vOVku':function(_0x43ba2d,_0x385bb4,_0x5f4132,_0x95f1d8,_0x8fd0b7,_0x5a6668,_0x15d7d2,_0xc89ec5){return _0x43ba2d(_0x385bb4,_0x5f4132,_0x95f1d8,_0x8fd0b7,_0x5a6668,_0x15d7d2,_0xc89ec5);}};let _0x18ad0e;try{if(_0x83b81f[_0x526c67(0x222)](_0x83b81f[_0x526c67(0x1b8)],_0x83b81f[_0x526c67(0x1b8)])){if(_0x29fcaa[_0x526c67(0x1b9)]||_0x29fcaa[_0x526c67(0x23e)]||_0x29fcaa[_0x526c67(0x211)]){if(_0x83b81f['rROwz'](_0x83b81f[_0x526c67(0x1ac)],_0x83b81f[_0x526c67(0x1d8)])){const _0x19d1d8=[];if(!_0x29fcaa[_0x526c67(0x1b9)]){if(_0x83b81f[_0x526c67(0x203)](_0x83b81f['HrgCI'],_0x83b81f[_0x526c67(0x1d7)])){const {header:_0x2acb55,response:_0x2dbe9b}=_0x442151,{status:_0x1a5526,data:_0x15ef2f,error:_0x1cfc89}=_0x2dbe9b;_0x1f1a6c+=_0x2acb55+'\x20#'+_0x83b81f[_0x526c67(0x1ff)](_0x2d639f,0x1)+'\x0a',_0x4ac997+=_0x526c67(0x170)+(_0x1a5526?_0x83b81f[_0x526c67(0x19e)]:_0x83b81f[_0x526c67(0x20f)])+'\x0a',_0x4d406a+=_0x526c67(0x22f)+_0x83b81f[_0x526c67(0x1f5)](_0x15ef2f,_0x83b81f[_0x526c67(0x241)])+'\x0a',_0x1cfc89&&(_0x5e2bf9+=_0x83b81f['FBENh'],_0x58de8b+=_0x526c67(0x233)+(_0x1cfc89['message']||_0x83b81f[_0x526c67(0x241)])+'\x0a',_0x19161f+=_0x526c67(0x208)+(_0x1cfc89['code']||_0x83b81f['RiBBc'])+'\x0a',_0x33a00b+=_0x526c67(0x256)+(_0x1cfc89[_0x526c67(0x179)]||_0x83b81f[_0x526c67(0x241)])+'\x0a'),_0x16b213+='\x0a\x0a';}else _0x19d1d8[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x262)]);};!_0x29fcaa[_0x526c67(0x23e)]&&(_0x83b81f[_0x526c67(0x1f2)](_0x83b81f[_0x526c67(0x242)],_0x83b81f[_0x526c67(0x242)])?(_0x12c1f6[_0x526c67(0x209)](_0x83b81f[_0x526c67(0x1ce)]),_0x227069[_0x526c67(0x17d)](0x1)):_0x19d1d8['push'](_0x83b81f[_0x526c67(0x247)]));;if(!_0x29fcaa['region']){if(_0x83b81f[_0x526c67(0x181)](_0x83b81f[_0x526c67(0x221)],_0x83b81f['PzMHM'])){const _0x220c56={};_0x220c56['type']=_0x175f67['LOG'],_0x220c56[_0x526c67(0x229)]=_0x111aaa,_0x55a1ab[_0x526c67(0x1a2)](_0x41ae9a,_0x220c56,_0x83b81f[_0x526c67(0x202)],!![]);}else _0x19d1d8[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x257)]);};_0x83b81f[_0x526c67(0x1eb)](_0x19d1d8[_0x526c67(0x218)],0x0)&&(_0x83b81f[_0x526c67(0x248)](_0x83b81f[_0x526c67(0x1ae)],_0x83b81f[_0x526c67(0x1ae)])?(_0x18ad0e='Missing\x20required\x20arguments:\x20'+_0x19d1d8[_0x526c67(0x1fa)](',\x20')+_0x526c67(0x234),await _0x83b81f[_0x526c67(0x23d)](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes['ERROR'],_0x83b81f[_0x526c67(0x25a)],_0x83b81f[_0x526c67(0x1fd)],_0x83b81f[_0x526c67(0x202)]),logger[_0x526c67(0x209)](_0x18ad0e),process[_0x526c67(0x17d)](0x1)):_0x5f5ac9=_0x3c6fe7),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x526c67(0x1ee)](_0x29fcaa[_0x526c67(0x23e)][_0x526c67(0x1c5)]())&&(_0x83b81f[_0x526c67(0x194)](_0x83b81f[_0x526c67(0x1d2)],_0x83b81f[_0x526c67(0x1bc)])?_0x252ba+='Cluster\x20'+_0x133580['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x18ad0e=_0x83b81f[_0x526c67(0x1a8)],await _0x83b81f['ayBBO'](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes['ERROR'],_0x83b81f['uROrb'],_0x83b81f[_0x526c67(0x252)],_0x83b81f[_0x526c67(0x202)]),logger[_0x526c67(0x209)](_0x18ad0e),!_0x29fcaa[_0x526c67(0x23e)]&&(_0x83b81f[_0x526c67(0x1f2)](_0x83b81f['IxsUD'],_0x83b81f[_0x526c67(0x174)])?_0xcab336[_0x526c67(0x17d)](0x1):(logger[_0x526c67(0x1b6)](_0x526c67(0x19a)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x29fcaa['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x526c67(0x26b)])))),global_registry['clusterName']=_0x29fcaa[_0x526c67(0x1b9)],global_registry[_0x526c67(0x23e)]=_0x29fcaa[_0x526c67(0x23e)],global_registry[_0x526c67(0x171)]=_0x29fcaa[_0x526c67(0x211)];}else{const _0x3bbd0e={};_0x3bbd0e[_0x526c67(0x26d)]=_0x83b81f[_0x526c67(0x263)],_0x3bbd0e[_0x526c67(0x243)]=_0x83b81f[_0x526c67(0x265)];const _0x4e96d7={};_0x4e96d7[_0x526c67(0x26d)]=_0x83b81f[_0x526c67(0x173)],_0x4e96d7[_0x526c67(0x243)]=_0x83b81f[_0x526c67(0x265)];const _0x5db7d3={};_0x5db7d3[_0x526c67(0x26d)]=_0x83b81f['rqAeq'],_0x5db7d3[_0x526c67(0x243)]=_0x83b81f[_0x526c67(0x265)];const _0xaf36d1={};_0xaf36d1[_0x526c67(0x26d)]=_0x83b81f[_0x526c67(0x21e)],_0xaf36d1['type']=_0x83b81f[_0x526c67(0x265)];const _0x1980fb={};return _0x1980fb[_0x526c67(0x246)]=_0x3bbd0e,_0x1980fb[_0x526c67(0x24c)]=_0x4e96d7,_0x1980fb[_0x526c67(0x211)]=_0x5db7d3,_0x1980fb[_0x526c67(0x1a4)]=_0xaf36d1,_0x1e31bf['usage'](_0x32d660['pre_check'])[_0x526c67(0x266)](_0x1e965b)[_0x526c67(0x1bf)](_0x1980fb)[_0x526c67(0x1ea)](_0x83b81f[_0x526c67(0x18a)])[_0x526c67(0x16f)];}}else{if(_0x29fcaa['gridProfile']){if(_0x83b81f[_0x526c67(0x213)](_0x83b81f[_0x526c67(0x18e)],_0x83b81f[_0x526c67(0x1e6)])){global_registry['gridProfile']=_0x29fcaa[_0x526c67(0x230)],logger[_0x526c67(0x1a3)](_0x526c67(0x199)+_0x29fcaa[_0x526c67(0x230)]);const _0xa57553='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x2ee8b={};_0x2ee8b[_0x526c67(0x23b)]=_0x83b81f[_0x526c67(0x175)],_0x2ee8b[_0x526c67(0x19d)]=global_registry[_0x526c67(0x20a)],_0x2ee8b[_0x526c67(0x1f1)]=![];const _0x336539=_0x2ee8b,_0x2102c4=await _0x83b81f[_0x526c67(0x240)](got,_0xa57553,_0x336539),_0x408b18=await _0x83b81f[_0x526c67(0x1d6)](responseValidation,_0x2102c4,_0x83b81f[_0x526c67(0x1e1)],_0x83b81f[_0x526c67(0x1a1)],_0x29fcaa,_0x23681b);let _0x475ec1={};if(_0x83b81f[_0x526c67(0x248)](_0x408b18,0xc8)){if(_0x83b81f['oPJUf'](_0x83b81f['dKLBa'],_0x83b81f[_0x526c67(0x176)])){const _0x5c3016=JSON['parse'](_0x2102c4['body']),_0x1d84b8=_0x5c3016[_0x526c67(0x177)](_0x4f1909=>_0x4f1909[_0x526c67(0x268)]===_0x29fcaa['gridProfile'])||null;_0x83b81f[_0x526c67(0x24f)](isUndefined,_0x1d84b8)?_0x83b81f[_0x526c67(0x213)](_0x83b81f[_0x526c67(0x1ca)],_0x83b81f[_0x526c67(0x1ca)])?(_0x1cbad6[_0x526c67(0x1b6)]('['+_0x278cdf+_0x526c67(0x26c)+_0x5889dc['status']+_0x526c67(0x1b7)+_0x1a351e[_0x526c67(0x215)]+_0x526c67(0x22e)+_0x3c1a78[_0x526c67(0x209)]),_0x2cf52b['error']&&_0x342792[_0x526c67(0x209)](_0x526c67(0x23a)+_0xe65456[_0x526c67(0x209)][_0x526c67(0x179)])):(_0x18ad0e=_0x526c67(0x17f)+_0x29fcaa[_0x526c67(0x230)]+_0x526c67(0x192),await _0x83b81f[_0x526c67(0x23d)](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes[_0x526c67(0x1fe)],_0x83b81f[_0x526c67(0x25a)],_0x83b81f['mQQYq'],_0x83b81f['nJaix']),logger[_0x526c67(0x209)](_0x18ad0e),process[_0x526c67(0x17d)](0x1)):_0x83b81f[_0x526c67(0x260)](_0x83b81f['EByre'],_0x83b81f['HxjYG'])?_0x51c705[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x247)]):_0x475ec1=_0x1d84b8;}else _0x233304+=_0x83b81f[_0x526c67(0x178)],_0x56a455+=_0x526c67(0x233)+(_0x2d07eb[_0x526c67(0x229)]||_0x83b81f[_0x526c67(0x241)])+'\x0a',_0x24da15+=_0x526c67(0x208)+(_0x2576bc[_0x526c67(0x1d0)]||_0x83b81f['RiBBc'])+'\x0a',_0x57faeb+='\x20\x20Stack:\x20'+(_0x4a95c2[_0x526c67(0x179)]||_0x83b81f[_0x526c67(0x241)])+'\x0a';}else _0x83b81f[_0x526c67(0x181)](_0x83b81f[_0x526c67(0x1b1)],_0x83b81f[_0x526c67(0x1b1)])?process['exit'](0x1):_0x5bb65c['push'](_0x83b81f[_0x526c67(0x262)]);const _0x4325e4={};_0x4325e4[_0x526c67(0x243)]=WS_EVENTS['LOG'],_0x4325e4[_0x526c67(0x229)]=_0x83b81f['grckm'],webSocketUtils[_0x526c67(0x1a2)](_0x23681b,_0x4325e4),global_registry[_0x526c67(0x23e)]=_0x475ec1['cloudProvider'],global_registry[_0x526c67(0x171)]=_0x475ec1['region'],global_registry[_0x526c67(0x1b9)]=_0x475ec1[_0x526c67(0x1b9)];}else _0x33b7dc[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x257)]);}else _0x83b81f['syfQG'](_0x83b81f[_0x526c67(0x1c4)],_0x83b81f['ieyFo'])?(logger[_0x526c67(0x209)](_0x83b81f[_0x526c67(0x1ce)]),process[_0x526c67(0x17d)](0x1)):_0x3d18a4+=_0x526c67(0x1dd)+_0x41df63[_0x526c67(0x1b9)]+'\x20'+(_0x3a70b6?_0x83b81f[_0x526c67(0x193)]:_0x83b81f['OEDKt'])+'\x0a\x0a';}}else _0xabf986['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x5cafeb[_0x526c67(0x26b)]+'\x20'),_0x4f6e39[_0x526c67(0x23e)]=_0x5dbb98['CLOUD_PROVIDER'];}catch(_0x5b2eab){_0x83b81f['KNwSV'](_0x83b81f[_0x526c67(0x1c8)],_0x83b81f[_0x526c67(0x1d3)])?_0x19ca3f[_0x526c67(0x209)](_0x526c67(0x23a)+_0x5a85b6[_0x526c67(0x209)][_0x526c67(0x179)]):(_0x18ad0e='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x5b2eab+':\x20'+_0x5b2eab[_0x526c67(0x179)],logger[_0x526c67(0x209)](_0x18ad0e),await _0x83b81f['vOVku'](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes[_0x526c67(0x1fe)],_0x83b81f[_0x526c67(0x25a)],_0x83b81f[_0x526c67(0x252)],_0x83b81f[_0x526c67(0x202)]),process[_0x526c67(0x17d)](0x1));}}function printResponse(_0x690c1a,_0x3cf67b){const _0x50e990=a17_0x4aa6f7,_0x17daa3={};_0x17daa3[_0x50e990(0x235)]=function(_0xcbeb5,_0x17aa3f){return _0xcbeb5!==_0x17aa3f;},_0x17daa3['sxHHK']=_0x50e990(0x23c),_0x17daa3[_0x50e990(0x18f)]=_0x50e990(0x214);const _0x54588a=_0x17daa3;logger[_0x50e990(0x1b6)]('['+_0x690c1a+']\x20status\x20:\x20'+_0x3cf67b[_0x50e990(0x1dc)]+_0x50e990(0x1b7)+_0x3cf67b[_0x50e990(0x215)]+_0x50e990(0x22e)+_0x3cf67b[_0x50e990(0x209)]),_0x3cf67b['error']&&(_0x54588a[_0x50e990(0x235)](_0x54588a[_0x50e990(0x19c)],_0x54588a[_0x50e990(0x18f)])?logger[_0x50e990(0x209)](_0x50e990(0x23a)+_0x3cf67b[_0x50e990(0x209)][_0x50e990(0x179)]):_0x59b64d['info']('Cluster\x20`'+_0x2b3e13[_0x50e990(0x1b9)]+_0x50e990(0x212)));}async function generateReport(_0x22d44f,_0x5df976){const _0x21c783=a17_0x4aa6f7,_0x1180d7={'vtDFT':function(_0x4bc1b0,_0x4983f3){return _0x4bc1b0+_0x4983f3;},'cgeHW':'Success','pYqCr':_0x21c783(0x1e9),'CXlIO':function(_0x6ce7e2,_0x3521ec){return _0x6ce7e2||_0x3521ec;},'yWUql':_0x21c783(0x1e2),'nRNOH':_0x21c783(0x1d1),'QtBvo':_0x21c783(0x20c),'rfFIQ':function(_0x5a8174,_0x4328a0){return _0x5a8174!=_0x4328a0;},'gJscF':_0x21c783(0x1fb),'BxvGj':'will\x20be\x20created','JjoXE':function(_0x106453){return _0x106453();}};let _0x204686=_0x21c783(0x1e8)+global_registry[_0x21c783(0x23e)]+_0x21c783(0x21f);return _0x22d44f[_0x21c783(0x1c7)]((_0xaa24a6,_0x3161b2)=>{const _0x538c98=_0x21c783,{header:_0x589981,response:_0x3f6ba9}=_0xaa24a6,{status:_0x12cd69,data:_0x679d62,error:_0x3fcf60}=_0x3f6ba9;_0x204686+=_0x589981+'\x20#'+_0x1180d7[_0x538c98(0x1db)](_0x3161b2,0x1)+'\x0a',_0x204686+=_0x538c98(0x170)+(_0x12cd69?_0x1180d7[_0x538c98(0x1f3)]:_0x1180d7['pYqCr'])+'\x0a',_0x204686+=_0x538c98(0x22f)+_0x1180d7[_0x538c98(0x249)](_0x679d62,_0x1180d7[_0x538c98(0x22c)])+'\x0a',_0x3fcf60&&(_0x204686+=_0x1180d7['nRNOH'],_0x204686+='\x20\x20Message:\x20'+(_0x3fcf60[_0x538c98(0x229)]||_0x1180d7['yWUql'])+'\x0a',_0x204686+=_0x538c98(0x208)+(_0x3fcf60['code']||_0x1180d7['yWUql'])+'\x0a',_0x204686+=_0x538c98(0x256)+(_0x3fcf60[_0x538c98(0x179)]||_0x1180d7[_0x538c98(0x22c)])+'\x0a'),_0x204686+='\x0a\x0a';}),_0x204686+=_0x1180d7[_0x21c783(0x244)],_0x1180d7['rfFIQ'](_0x5df976,null)?_0x204686+=_0x21c783(0x1dd)+global_registry[_0x21c783(0x1b9)]+'\x20'+(_0x5df976?_0x1180d7[_0x21c783(0x1b5)]:_0x1180d7[_0x21c783(0x24a)])+'\x0a\x0a':_0x204686+=_0x21c783(0x1dd)+global_registry[_0x21c783(0x1b9)]+_0x21c783(0x21d),_0x204686+=_0x1180d7[_0x21c783(0x1f7)](getSystemMetaData),_0x204686;}function a17_0xa5c9(_0x4fe84f,_0x500a05){const _0x9dd9c3=a17_0x9dd9();return a17_0xa5c9=function(_0xa5c972,_0x4cba56){_0xa5c972=_0xa5c972-0x16f;let _0x8bc239=_0x9dd9c3[_0xa5c972];return _0x8bc239;},a17_0xa5c9(_0x4fe84f,_0x500a05);};exports[a17_0x4aa6f7(0x1b4)]=async function(_0x4dfa80){const _0x2dfc4d=a17_0x4aa6f7,_0x3e6f70={'xdztk':function(_0x173c17){return _0x173c17();},'hlsWH':function(_0x4f3dd8){return _0x4f3dd8();},'bVrOX':_0x2dfc4d(0x217),'yGFDS':function(_0x26d42c,_0x3fb475,_0x523a5b,_0x1831bc,_0x134fc6,_0x560f3e,_0x444589,_0x47ba3f){return _0x26d42c(_0x3fb475,_0x523a5b,_0x1831bc,_0x134fc6,_0x560f3e,_0x444589,_0x47ba3f);},'SUGCJ':_0x2dfc4d(0x185),'ALHhT':'credential-not-found','FaRBt':_0x2dfc4d(0x209),'iVCKo':function(_0x2fd4f9,_0x4eeea2,_0x5245a9,_0x17b099,_0x3aaec8,_0x15c44f,_0x41ce08){return _0x2fd4f9(_0x4eeea2,_0x5245a9,_0x17b099,_0x3aaec8,_0x15c44f,_0x41ce08);},'JJNux':_0x2dfc4d(0x269),'aAVZS':_0x2dfc4d(0x1a9),'qoEzW':function(_0x2bf223,_0x193be9,_0x1fcc1e){return _0x2bf223(_0x193be9,_0x1fcc1e);},'dGMJW':function(_0x182420,_0x59d8a1,_0x38c5c4){return _0x182420(_0x59d8a1,_0x38c5c4);},'CPfug':_0x2dfc4d(0x210),'tioQX':function(_0xfac29,_0x23c6a3,_0x1e58ab){return _0xfac29(_0x23c6a3,_0x1e58ab);},'JEXVJ':_0x2dfc4d(0x18c),'OjpjO':_0x2dfc4d(0x20b),'cjZfo':function(_0x57fd26,_0x52b24a,_0x4cb5b1,_0x264cf8,_0x3fb2d3,_0x2dde46,_0x211bda,_0x35c838){return _0x57fd26(_0x52b24a,_0x4cb5b1,_0x264cf8,_0x3fb2d3,_0x2dde46,_0x211bda,_0x35c838);},'uLilb':'accessResp','oOtlK':function(_0x1002f3){return _0x1002f3();},'hhMui':_0x2dfc4d(0x1bd),'YJSXz':function(_0x57d02e,_0x5b086c){return _0x57d02e(_0x5b086c);},'AZKDk':_0x2dfc4d(0x24e),'THaIf':_0x2dfc4d(0x220),'rZpdC':'Tool\x20Installed','QDIdX':'User\x20Access','vhwdG':'Whitelisted\x20browserstack','owZQb':_0x2dfc4d(0x1a0),'rKuoi':function(_0x3f2926,_0x145e19,_0x8e998c){return _0x3f2926(_0x145e19,_0x8e998c);},'sQdLl':function(_0x138b42,_0x50b2be){return _0x138b42+_0x50b2be;},'BdInl':_0x2dfc4d(0x1e0),'vOxDw':function(_0x277036,_0x214f1d,_0x1c3deb,_0x24daca,_0x3ffb08,_0x271152,_0x4b86b8){return _0x277036(_0x214f1d,_0x1c3deb,_0x24daca,_0x3ffb08,_0x271152,_0x4b86b8);},'umnVk':_0x2dfc4d(0x205)};let _0x40bcad,_0x3424b7;try{global_registry[_0x2dfc4d(0x1ec)]=_0x3e6f70['xdztk'](uuidv4);!fs[_0x2dfc4d(0x232)](_0x3e6f70['hlsWH'](getCredentialsPath))&&(_0x3424b7=_0x3e6f70['bVrOX'],logger[_0x2dfc4d(0x209)](_0x3424b7),await _0x3e6f70[_0x2dfc4d(0x1af)](reportToGalactusAndSendToEDS,_0x4dfa80,_0x40bcad,_0x3424b7,messageTypes[_0x2dfc4d(0x1fe)],_0x3e6f70[_0x2dfc4d(0x19f)],_0x3e6f70[_0x2dfc4d(0x1f0)],_0x3e6f70[_0x2dfc4d(0x239)]),process['exit'](0x1));_0x3e6f70[_0x2dfc4d(0x1e4)](sendInstrumentationEvent,_0x4dfa80,_0x3e6f70['SUGCJ'],messageTypes[_0x2dfc4d(0x24b)],null,null,_0x4dfa80);const _0x178e8f=JSON[_0x2dfc4d(0x1cd)](fs[_0x2dfc4d(0x198)](_0x3e6f70['hlsWH'](getCredentialsPath)));global_registry['bstackUsername']=_0x178e8f[_0x2dfc4d(0x18b)][_0x2dfc4d(0x1e5)],global_registry['bstackAccesskey']=_0x178e8f['Browserstack'][_0x2dfc4d(0x1e7)];const _0x4a2414=WS_ENDPOINT[_0x2dfc4d(0x1cc)](_0x3e6f70[_0x2dfc4d(0x1c6)],_0x178e8f[_0x2dfc4d(0x18b)]['username'])[_0x2dfc4d(0x1cc)](_0x3e6f70[_0x2dfc4d(0x1f6)],_0x178e8f[_0x2dfc4d(0x18b)][_0x2dfc4d(0x1e7)]),_0x1a05b3={};_0x1a05b3[_0x2dfc4d(0x1f4)]=ws,_0x1a05b3[_0x2dfc4d(0x20e)]=0x36ee80,_0x40bcad=new ReconnectingWebSocket(_0x4a2414,[],_0x1a05b3),global_registry[_0x2dfc4d(0x20a)]=_0x3e6f70['qoEzW'](getAuthHeader,global_registry[_0x2dfc4d(0x1be)],global_registry[_0x2dfc4d(0x1c9)]),await _0x3e6f70[_0x2dfc4d(0x21a)](inputValidation,_0x4dfa80,_0x40bcad),logger[_0x2dfc4d(0x1b6)](_0x2dfc4d(0x22b)+global_registry[_0x2dfc4d(0x23e)]+_0x2dfc4d(0x21b)+global_registry[_0x2dfc4d(0x171)]);let _0x4cb9ce=await _0x3e6f70[_0x2dfc4d(0x1e4)](getCloudProviderObjectWithOutInit,global_registry[_0x2dfc4d(0x23e)],global_registry['clusterName'],_0x3e6f70['CPfug'],_0x40bcad,webSocketUtils,_0x4dfa80);const _0x16ae1d=await _0x4cb9ce['isCliToolInstalled']();_0x3e6f70['tioQX'](printResponse,_0x3e6f70['JEXVJ'],_0x16ae1d),_0x4cb9ce=await _0x4cb9ce[_0x2dfc4d(0x172)]();let _0x2eaaa9=![];try{_0x2eaaa9=await _0x4cb9ce[_0x2dfc4d(0x1ed)]();}catch(_0x15d26f){const _0x3c6628=_0x3e6f70[_0x2dfc4d(0x1da)]['split']('|');let _0x24c790=0x0;while(!![]){switch(_0x3c6628[_0x24c790++]){case'0':_0x2eaaa9=null;continue;case'1':_0x3424b7+='\x0a'+JSON[_0x2dfc4d(0x223)](_0x15d26f[_0x2dfc4d(0x179)]);continue;case'2':_0x3424b7=_0x2dfc4d(0x1e3)+global_registry['clusterName']+_0x2dfc4d(0x236)+global_registry[_0x2dfc4d(0x171)]+_0x2dfc4d(0x207)+_0x15d26f;continue;case'3':logger[_0x2dfc4d(0x209)](_0x3424b7);continue;case'4':await _0x3e6f70[_0x2dfc4d(0x186)](reportToGalactusAndSendToEDS,_0x4dfa80,_0x40bcad,_0x3424b7,messageTypes[_0x2dfc4d(0x1fe)],_0x3e6f70[_0x2dfc4d(0x19f)],_0x2dfc4d(0x1c2)+global_registry[_0x2dfc4d(0x23e)],_0x3e6f70[_0x2dfc4d(0x239)]);continue;}break;}}_0x2eaaa9&&logger['info'](_0x2dfc4d(0x1ef)+global_registry[_0x2dfc4d(0x1b9)]+_0x2dfc4d(0x212));const _0x257b18=await _0x4cb9ce[_0x2dfc4d(0x261)]();_0x3e6f70['tioQX'](printResponse,_0x3e6f70[_0x2dfc4d(0x219)],_0x257b18);const _0x19bacd=await _0x3e6f70[_0x2dfc4d(0x1a7)](curlRequest);_0x3e6f70['tioQX'](printResponse,_0x3e6f70[_0x2dfc4d(0x264)],_0x19bacd);const _0x3c1ba4=await _0x3e6f70['YJSXz'](isTlsSupported,_0x3e6f70[_0x2dfc4d(0x251)]);_0x3e6f70[_0x2dfc4d(0x1c1)](printResponse,_0x3e6f70[_0x2dfc4d(0x187)],_0x3c1ba4);const _0x377fb4={};_0x377fb4[_0x2dfc4d(0x25b)]=_0x3e6f70[_0x2dfc4d(0x1cb)],_0x377fb4[_0x2dfc4d(0x21c)]=_0x16ae1d;const _0x4b7a54={};_0x4b7a54['header']=_0x3e6f70[_0x2dfc4d(0x17b)],_0x4b7a54[_0x2dfc4d(0x21c)]=_0x257b18;const _0x1d1097={};_0x1d1097[_0x2dfc4d(0x25b)]=_0x3e6f70[_0x2dfc4d(0x19b)],_0x1d1097[_0x2dfc4d(0x21c)]=_0x19bacd;const _0x37a694={};_0x37a694[_0x2dfc4d(0x25b)]=_0x3e6f70[_0x2dfc4d(0x1fc)],_0x37a694[_0x2dfc4d(0x21c)]=_0x3c1ba4;const _0x1dea49=[_0x377fb4,_0x4b7a54,_0x1d1097,_0x37a694],_0x5a3176=await _0x3e6f70[_0x2dfc4d(0x224)](generateReport,_0x1dea49,_0x2eaaa9),_0x2c9833=new Date(),_0x3afff8=_0x2c9833['getUTCFullYear']()+'_'+_0x3e6f70[_0x2dfc4d(0x25c)](_0x2c9833[_0x2dfc4d(0x183)](),0x1)+'_'+_0x2c9833[_0x2dfc4d(0x1ba)]()+'_'+_0x2c9833[_0x2dfc4d(0x180)]()+'_'+_0x2c9833['getUTCMinutes'](),_0x478386='log/report_'+_0x3afff8+_0x2dfc4d(0x1de);fs['writeFileSync'](_0x478386,_0x5a3176,_0x3e6f70['BdInl']),logger['info']('Report\x20saved\x20in\x20'+_0x478386),process[_0x2dfc4d(0x17d)](0x0);}catch(_0x54beed){let _0x132217='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x54beed+'\x20';logger[_0x2dfc4d(0x209)](_0x132217),_0x132217+='\x0a'+JSON['stringify'](_0x54beed[_0x2dfc4d(0x179)]),logger[_0x2dfc4d(0x1a3)](_0x2dfc4d(0x17c)+_0x54beed[_0x2dfc4d(0x179)]);if(_0x40bcad){const _0x57cb6e={};_0x57cb6e[_0x2dfc4d(0x243)]=WS_EVENTS['LOG'],_0x57cb6e[_0x2dfc4d(0x229)]=_0x132217,webSocketUtils[_0x2dfc4d(0x1a2)](_0x40bcad,_0x57cb6e,_0x3e6f70[_0x2dfc4d(0x239)],!![]);}await webSocketUtils[_0x2dfc4d(0x255)](0x7d0);const _0x10ef40={};_0x10ef40[_0x2dfc4d(0x209)]=_0x132217,await _0x3e6f70[_0x2dfc4d(0x225)](sendInstrumentationEvent,_0x4dfa80,_0x3e6f70['SUGCJ'],messageTypes[_0x2dfc4d(0x1fe)],_0x3e6f70['umnVk'],_0x10ef40,_0x4dfa80),process[_0x2dfc4d(0x17d)](0x1);}};
|
|
1
|
+
const a17_0x171414=a17_0x25b2;(function(_0x1510ed,_0x101135){const _0x570c5f=a17_0x25b2,_0x5e3a09=_0x1510ed();while(!![]){try{const _0x11c8ee=-parseInt(_0x570c5f(0x17e))/0x1*(-parseInt(_0x570c5f(0x193))/0x2)+parseInt(_0x570c5f(0x204))/0x3*(-parseInt(_0x570c5f(0x161))/0x4)+-parseInt(_0x570c5f(0x123))/0x5*(-parseInt(_0x570c5f(0x194))/0x6)+parseInt(_0x570c5f(0x15d))/0x7+-parseInt(_0x570c5f(0x147))/0x8+-parseInt(_0x570c5f(0x1be))/0x9*(-parseInt(_0x570c5f(0x121))/0xa)+-parseInt(_0x570c5f(0x1ed))/0xb*(parseInt(_0x570c5f(0x16a))/0xc);if(_0x11c8ee===_0x101135)break;else _0x5e3a09['push'](_0x5e3a09['shift']());}catch(_0x5d6a12){_0x5e3a09['push'](_0x5e3a09['shift']());}}}(a17_0x514c,0xe644f));function a17_0x514c(){const _0x26534a=['handler','cbXzE','grid-profile','8wNDsvR','1825890aHJVwy','gridProfile','\x20error\x20:\x20','uuid','Fbces','Status:\x20','\x20\x20Message:\x20','INFO','Cluster\x20details\x0a-----------------------\x0a','split','pre-check-grid-called','.\x20Please\x20provide\x20all\x20required\x20arguments.','https://','.txt','RUmCj','grid\x20profile\x20flow\x20','yLoYX','Nfpqq','checkAccess','Setting\x20cloud\x20provider\x20as\x20','writeFileSync','connectionTimeout','pre-check-grid-profile-empty','cloud-provider-not-supported','PpPYf','ognvQ','Tool\x20Installed','nDzEB','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','replace','VZfPi','credential-not-found','zVGcY','gtFZH','BfDFu','response','axCHL','User\x20Access','nbUmR','KYgkj','bBRQv','Wiriq','117wZWIWQ','hxJKA','JqPRe','WbAtC','HEeKx','vLIAH','log/report_','ERROR','Browserstack','reconnecting-websocket','nVYch','headers','yBeSQ','argv','region','cloud-provider','\x20data\x20:\x20','qOecm','OXucZ','../../config/logger','HEdzK','WebSocket','pre-check-cluster-args-not-passed','error\x20stack\x20:\x20','OhBLZ','ZcVNC','Failed\x20in\x20pre-check!\x20Error:\x20','BXzkx','KQYyO','\x20region\x20-\x20','info','message','ybpSo','usage','error','szDVO','N/A','debug','includes','KzOeh','bstackUsername','Cluster\x20`','desc','pDnNa','gNTBD','SFDAG','throwHttpErrors','89672WfuzAb','pICDs','epilogue','string','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','getUTCMinutes','jblgI','hYIwk','zWqSG','DEzYK','Invalid\x20input.\x20grid\x20profiles:\x20','CjTsV','sQUiN','getUTCDate','isTls1_2_SUPPORTED','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','isTrialGridAccessible','2|4|3|0|1','abikg','../../utils/instrumentationUtils','CjeLH','exit','3pNFWMt','vWkaB','\x20===\x0a\x0a','`\x20already\x20exists','TLSv1_2_client_method','help','hyCMM','../../cloudproviders/utils','SmcCg','<PasswordPlaceholder>','EmLID','UKAfF','isClusterPresent','CLOUD_PROVIDER','CgQDZ','sKUio','AErXy','vSzCm','lmbQG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QySGO','fVFEp','\x20\x20Stack:\x20','clusterRegion','cloudProvider','reqWu','pNcGd','username','dxJVs','ljmkP','accessResp','pre_check','Scqgj','NEgts','===\x20Precheck\x20Report\x20-\x20','dKGgA','FVdVg','778120TXqUhW','Report\x20saved\x20in\x20','30DgYUgd','MRHZA','FzkQI','Error\x20Details:\x0a','header','parse','zzMHA','eAaYR','stack','../../utils/webSocketUtils','OuxVM','OKuJE','clusterName','kMplR','stringify','/packages/cli/get-all-grid-profiles','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','command','push','GiRSN','nMSTE','dWXrV','ZsNJj','iIjyk','hSpRc','KZcyV','aVSOE','oCVYn','<UsernamePlaceholder>','description','ZIHHw','bstackAccesskey','tcDzv','type','tYOkU','data','3966744SqtMoE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','forEach','RyDoE','zZHoh','length','pre-check-failed','GMNdf','Message:\x20','znsvR','status','will\x20be\x20created','LOG','Whitelisted\x20browserstack','is\x20already\x20present','vDQzu','uKTGc','options','dfopR','xxwgb','YOYlA','lWrSn','11926551LenxDI','geqOz','isCliToolInstalled','password','1616612nnBoVY','toLowerCase','FfmZj','lQESD','sendEventToBackend','Cluster\x20','cqGaU','existsSync','../../config/constants','6348edxeJg','pre-check','dummy-grid','xAMXK','Success','init','`\x20is\x20present\x20in\x20region\x20`','StuUj','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','name','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','builder','KWYwP','cluster-check-failed-','readFileSync','iGcgK','join','zULex','delay','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','403587lanzDf','jlOIa','Grid\x20profile\x20fetched\x20for\x20pre-check','MSZgc','Zmsuh','utf-8','toolInstalledResp','body','../../utils/utilityMethods','HXiuL','gCKqG','pYAke','\x20\x20Code:\x20','LuVAu','Failure','code','caHXt','`\x20,error\x20:\x20'];a17_0x514c=function(){return _0x26534a;};return a17_0x514c();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x171414(0x197)),ReconnectingWebSocket=require(a17_0x171414(0x1c7)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x171414(0x186)),{logger}=require(a17_0x171414(0x1d1)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x171414(0x169)),{getCloudProviderObjectWithOutInit}=require(a17_0x171414(0x103)),webSocketUtils=require(a17_0x171414(0x12c)),{sendInstrumentationEvent}=require(a17_0x171414(0x201));exports[a17_0x171414(0x134)]='grid',exports[a17_0x171414(0x1e8)]=a17_0x171414(0x133),exports[a17_0x171414(0x175)]=function(_0x27f015){const _0x4e8d36=a17_0x171414,_0x10f5b4={};_0x10f5b4[_0x4e8d36(0x176)]=_0x4e8d36(0x1fc),_0x10f5b4[_0x4e8d36(0x157)]=_0x4e8d36(0x1f0),_0x10f5b4[_0x4e8d36(0x12d)]=_0x4e8d36(0x148),_0x10f5b4[_0x4e8d36(0x17b)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x10f5b4['dKGgA']=_0x4e8d36(0x1f1),_0x10f5b4[_0x4e8d36(0x1f5)]='help';const _0x23c844=_0x10f5b4,_0x42f446={};_0x42f446['description']=_0x23c844['KWYwP'],_0x42f446[_0x4e8d36(0x144)]=_0x23c844[_0x4e8d36(0x157)];const _0x11e077={};_0x11e077[_0x4e8d36(0x140)]=_0x23c844['OuxVM'],_0x11e077[_0x4e8d36(0x144)]=_0x23c844[_0x4e8d36(0x157)];const _0x5d8313={};_0x5d8313[_0x4e8d36(0x140)]=_0x23c844['zULex'],_0x5d8313[_0x4e8d36(0x144)]=_0x23c844['uKTGc'];const _0x47cf26={};_0x47cf26[_0x4e8d36(0x140)]=_0x23c844[_0x4e8d36(0x11f)],_0x47cf26[_0x4e8d36(0x144)]=_0x23c844[_0x4e8d36(0x157)];const _0x462257={};return _0x462257['cluster-name']=_0x42f446,_0x462257[_0x4e8d36(0x1cd)]=_0x11e077,_0x462257[_0x4e8d36(0x1cc)]=_0x5d8313,_0x462257[_0x4e8d36(0x192)]=_0x47cf26,_0x27f015[_0x4e8d36(0x1df)](HELP_HEADER_MESSAGE[_0x4e8d36(0x11b)])[_0x4e8d36(0x1ef)](HELP_FOOTER_MESSAGE)[_0x4e8d36(0x158)](_0x462257)[_0x4e8d36(0x209)](_0x23c844[_0x4e8d36(0x1f5)])['argv'];};async function inputValidation(_0x50ef16,_0x317b06){const _0x430951=a17_0x171414,_0x31bffa={'xePDg':'is\x20already\x20present','PpPYf':_0x430951(0x152),'lQESD':'cluster-name','nbUmR':_0x430951(0x1fc),'Scqgj':_0x430951(0x1f0),'Nfpqq':_0x430951(0x148),'vWkaB':_0x430951(0x1b0),'SjPqI':_0x430951(0x1f1),'hkwqz':'help','kMplR':'Error\x20Details:\x0a','OhBLZ':_0x430951(0x1e2),'reqWu':_0x430951(0x172),'WipTe':_0x430951(0x1cc),'FzkQI':function(_0x374833,_0x1745da){return _0x374833+_0x1745da;},'zYvsL':_0x430951(0x16e),'Zmsuh':_0x430951(0x18c),'vSzCm':function(_0x29158b,_0x5a0477){return _0x29158b||_0x5a0477;},'YOYlA':_0x430951(0x1e0),'ZsNJj':_0x430951(0x1cd),'lWrSn':function(_0xe0f26c,_0x556f68){return _0xe0f26c===_0x556f68;},'qOecm':_0x430951(0x1d0),'HEeKx':_0x430951(0x1b6),'CjeLH':'vnBqa','pNcGd':function(_0x4353c2,_0x74df95){return _0x4353c2!==_0x74df95;},'KQYyO':'TkJBP','dxJVs':_0x430951(0x1c8),'SFDAG':function(_0x589c61,_0x4627c6){return _0x589c61>_0x4627c6;},'tcDzv':'SIiSJ','nMSTE':_0x430951(0x1b8),'yLoYX':function(_0x36056a,_0xd00476,_0x451a94,_0x29a0e7,_0xa885f6,_0x256031,_0x558c39,_0x48a195){return _0x36056a(_0xd00476,_0x451a94,_0x29a0e7,_0xa885f6,_0x256031,_0x558c39,_0x48a195);},'aVSOE':_0x430951(0x19e),'zZHoh':_0x430951(0x1d4),'EmLID':'diBhj','rfXeY':_0x430951(0x17d),'bBRQv':function(_0x11ae49,_0x2a4ab7,_0x332f54,_0x1a7fcd,_0x57803b,_0x44081e,_0x5e8f61,_0x5013f7){return _0x11ae49(_0x2a4ab7,_0x332f54,_0x1a7fcd,_0x57803b,_0x44081e,_0x5e8f61,_0x5013f7);},'BXzkx':_0x430951(0x1ab),'sytQh':function(_0x10ce86,_0x1e8691){return _0x10ce86===_0x1e8691;},'MRHZA':_0x430951(0x188),'gNTBD':_0x430951(0x1b4),'HXiuL':function(_0x52f02b,_0x411c81){return _0x52f02b!==_0x411c81;},'zzMHA':_0x430951(0x1af),'KZcyV':_0x430951(0x1f8),'geqOz':'GET','pDnNa':function(_0x5aabef,_0x594be5,_0x1e9705){return _0x5aabef(_0x594be5,_0x1e9705);},'COpfG':function(_0x34704e,_0x19105b,_0x1ddbf0,_0x4be7f6,_0x53cd95,_0x5bfc75){return _0x34704e(_0x19105b,_0x1ddbf0,_0x4be7f6,_0x53cd95,_0x5bfc75);},'tMVPz':_0x430951(0x16b),'QySGO':_0x430951(0x192),'DEzYK':function(_0x43bad5,_0x36aa66){return _0x43bad5!==_0x36aa66;},'yBeSQ':'Hqxod','sKUio':function(_0x1fc8c6,_0x206ca7){return _0x1fc8c6(_0x206ca7);},'jblgI':function(_0x1aa6eb,_0x398eef){return _0x1aa6eb===_0x398eef;},'KEEVW':_0x430951(0x111),'BzbfE':_0x430951(0x1de),'iIjyk':_0x430951(0x1aa),'znsvR':_0x430951(0x1b2),'cbXzE':_0x430951(0x20a),'Fbces':_0x430951(0x1a2),'pYAke':_0x430951(0x18e),'tYOkU':_0x430951(0x180),'vLIAH':_0x430951(0x163),'WbAtC':_0x430951(0x200),'kfGGS':_0x430951(0x138),'KYgkj':_0x430951(0x1ee),'OnszD':function(_0x5258a6,_0x2e8732,_0x1ff6f0,_0x1915e2,_0x4b4077,_0x330e3f,_0x2b586e,_0x5271df){return _0x5258a6(_0x2e8732,_0x1ff6f0,_0x1915e2,_0x4b4077,_0x330e3f,_0x2b586e,_0x5271df);}};let _0x5c9991;try{if(_0x31bffa[_0x430951(0x15c)](_0x31bffa[_0x430951(0x1cf)],_0x31bffa['qOecm'])){if(_0x50ef16[_0x430951(0x12f)]||_0x50ef16[_0x430951(0x114)]||_0x50ef16[_0x430951(0x1cc)]){if(_0x31bffa[_0x430951(0x15c)](_0x31bffa[_0x430951(0x1c2)],_0x31bffa[_0x430951(0x1c2)])){const _0x11c7b7=[];!_0x50ef16[_0x430951(0x12f)]&&(_0x31bffa['lWrSn'](_0x31bffa['CjeLH'],_0x31bffa[_0x430951(0x202)])?_0x11c7b7['push'](_0x31bffa[_0x430951(0x164)]):_0x37cbdf+='Cluster\x20'+_0x51fe85[_0x430951(0x12f)]+'\x20'+(_0x173148?_0x31bffa['xePDg']:_0x31bffa[_0x430951(0x1ac)])+'\x0a\x0a');;!_0x50ef16[_0x430951(0x114)]&&(_0x31bffa['pNcGd'](_0x31bffa[_0x430951(0x1da)],_0x31bffa['KQYyO'])?_0x524f74['push'](_0x31bffa[_0x430951(0x164)]):_0x11c7b7[_0x430951(0x135)](_0x31bffa[_0x430951(0x139)]));;if(!_0x50ef16[_0x430951(0x1cc)]){if(_0x31bffa[_0x430951(0x15c)](_0x31bffa[_0x430951(0x118)],_0x31bffa[_0x430951(0x118)]))_0x11c7b7[_0x430951(0x135)](_0x31bffa['WipTe']);else{const _0x4b39b4={};_0x4b39b4[_0x430951(0x140)]=_0x31bffa[_0x430951(0x1ba)],_0x4b39b4[_0x430951(0x144)]=_0x31bffa[_0x430951(0x11c)];const _0x45a4cb={};_0x45a4cb[_0x430951(0x140)]=_0x31bffa[_0x430951(0x1a5)],_0x45a4cb['type']=_0x31bffa[_0x430951(0x11c)];const _0x5bc1f5={};_0x5bc1f5[_0x430951(0x140)]=_0x31bffa[_0x430951(0x205)],_0x5bc1f5[_0x430951(0x144)]=_0x31bffa[_0x430951(0x11c)];const _0x269d0c={};_0x269d0c['description']=_0x31bffa['SjPqI'],_0x269d0c[_0x430951(0x144)]=_0x31bffa[_0x430951(0x11c)];const _0x4592e2={};return _0x4592e2['cluster-name']=_0x4b39b4,_0x4592e2['cloud-provider']=_0x45a4cb,_0x4592e2['region']=_0x5bc1f5,_0x4592e2[_0x430951(0x192)]=_0x269d0c,_0x1aa71d['usage'](_0x318e10[_0x430951(0x11b)])['epilogue'](_0xc6da07)[_0x430951(0x158)](_0x4592e2)[_0x430951(0x209)](_0x31bffa['hkwqz'])[_0x430951(0x1cb)];}};_0x31bffa[_0x430951(0x1eb)](_0x11c7b7[_0x430951(0x14c)],0x0)&&(_0x31bffa[_0x430951(0x116)](_0x31bffa[_0x430951(0x143)],_0x31bffa[_0x430951(0x137)])?(_0x5c9991='Missing\x20required\x20arguments:\x20'+_0x11c7b7[_0x430951(0x17a)](',\x20')+_0x430951(0x19f),await _0x31bffa[_0x430951(0x1a4)](reportToGalactusAndSendToEDS,_0x50ef16,_0x317b06,_0x5c9991,messageTypes[_0x430951(0x1c5)],_0x31bffa[_0x430951(0x13d)],_0x31bffa[_0x430951(0x14b)],_0x31bffa[_0x430951(0x15b)]),logger[_0x430951(0x1e0)](_0x5c9991),process[_0x430951(0x203)](0x1)):_0x1c3958=_0x5b75f9),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x430951(0x1e4)](_0x50ef16[_0x430951(0x114)][_0x430951(0x162)]())&&(_0x31bffa['lWrSn'](_0x31bffa[_0x430951(0x106)],_0x31bffa[_0x430951(0x106)])?(_0x5c9991=_0x31bffa['rfXeY'],await _0x31bffa[_0x430951(0x1bc)](reportToGalactusAndSendToEDS,_0x50ef16,_0x317b06,_0x5c9991,messageTypes[_0x430951(0x1c5)],_0x31bffa[_0x430951(0x13d)],_0x31bffa['BXzkx'],_0x31bffa['YOYlA']),logger['error'](_0x5c9991),!_0x50ef16[_0x430951(0x114)]&&(_0x31bffa['sytQh'](_0x31bffa[_0x430951(0x124)],_0x31bffa[_0x430951(0x1ea)])?(_0x544a5f+=_0x31bffa[_0x430951(0x130)],_0x4c5edf+='\x20\x20Message:\x20'+(_0xaf16e6[_0x430951(0x1dd)]||_0x31bffa[_0x430951(0x1d6)])+'\x0a',_0x139409+=_0x430951(0x18a)+(_0x594cf9[_0x430951(0x18d)]||_0x31bffa[_0x430951(0x1d6)])+'\x0a',_0x2a737b+=_0x430951(0x112)+(_0x4793de[_0x430951(0x12b)]||_0x31bffa['OhBLZ'])+'\x0a'):(logger['info'](_0x430951(0x1a7)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x50ef16[_0x430951(0x114)]=DEFAULT_CLUSTER_DETAILS[_0x430951(0x109)]))):_0x1efab3[_0x430951(0x1dc)]('Cluster\x20`'+_0x5ee26e[_0x430951(0x12f)]+_0x430951(0x207))),global_registry[_0x430951(0x12f)]=_0x50ef16[_0x430951(0x12f)],global_registry[_0x430951(0x114)]=_0x50ef16[_0x430951(0x114)],global_registry[_0x430951(0x113)]=_0x50ef16['region'];}else _0x224e59[_0x430951(0x1e0)](_0x31bffa[_0x430951(0x115)]),_0x1faead['exit'](0x1);}else{if(_0x50ef16[_0x430951(0x195)]){if(_0x31bffa[_0x430951(0x187)](_0x31bffa[_0x430951(0x129)],_0x31bffa[_0x430951(0x13c)])){global_registry[_0x430951(0x195)]=_0x50ef16['gridProfile'],logger[_0x430951(0x1e3)](_0x430951(0x1a3)+_0x50ef16[_0x430951(0x195)]);const _0x21855c=_0x430951(0x1a0)+AG_API_URL+_0x430951(0x132),_0x5924e3={};_0x5924e3['method']=_0x31bffa[_0x430951(0x15e)],_0x5924e3[_0x430951(0x1c9)]=global_registry['authHeader'],_0x5924e3[_0x430951(0x1ec)]=![];const _0x458083=_0x5924e3,_0x4dc6ad=await _0x31bffa[_0x430951(0x1e9)](got,_0x21855c,_0x458083),_0x389e5e=await _0x31bffa['COpfG'](responseValidation,_0x4dc6ad,_0x31bffa['tMVPz'],_0x31bffa[_0x430951(0x110)],_0x50ef16,_0x317b06);let _0x24de44={};if(_0x31bffa[_0x430951(0x15c)](_0x389e5e,0xc8)){if(_0x31bffa[_0x430951(0x1f6)](_0x31bffa[_0x430951(0x1ca)],_0x31bffa['yBeSQ']))_0xcfe18c['push'](_0x31bffa['WipTe']);else{const _0x4f9c53=JSON[_0x430951(0x128)](_0x4dc6ad[_0x430951(0x185)]),_0x21f2f4=_0x4f9c53['find'](_0x12374b=>_0x12374b[_0x430951(0x173)]===_0x50ef16['gridProfile'])||null;if(_0x31bffa[_0x430951(0x10b)](isUndefined,_0x21f2f4)){if(_0x31bffa[_0x430951(0x1f3)](_0x31bffa['KEEVW'],_0x31bffa['BzbfE'])){const {header:_0xbd558c,response:_0x293117}=_0x108721,{status:_0x27296c,data:_0x3b0482,error:_0x425d9e}=_0x293117;_0x3674c6+=_0xbd558c+'\x20#'+_0x31bffa[_0x430951(0x125)](_0x20513c,0x1)+'\x0a',_0x2ab8e6+=_0x430951(0x199)+(_0x27296c?_0x31bffa['zYvsL']:_0x31bffa[_0x430951(0x182)])+'\x0a',_0x35d8f8+=_0x430951(0x14f)+_0x31bffa[_0x430951(0x10d)](_0x3b0482,_0x31bffa[_0x430951(0x1d6)])+'\x0a',_0x425d9e&&(_0x2a5df0+=_0x31bffa['kMplR'],_0x25b93f+=_0x430951(0x19a)+(_0x425d9e['message']||_0x31bffa[_0x430951(0x1d6)])+'\x0a',_0x39906e+=_0x430951(0x18a)+(_0x425d9e['code']||_0x31bffa['OhBLZ'])+'\x0a',_0x35e25e+='\x20\x20Stack:\x20'+(_0x425d9e[_0x430951(0x12b)]||_0x31bffa[_0x430951(0x1d6)])+'\x0a'),_0x1eedfd+='\x0a\x0a';}else _0x5c9991=_0x430951(0x1f7)+_0x50ef16[_0x430951(0x195)]+_0x430951(0x174),await _0x31bffa[_0x430951(0x1bc)](reportToGalactusAndSendToEDS,_0x50ef16,_0x317b06,_0x5c9991,messageTypes[_0x430951(0x1c5)],_0x31bffa['aVSOE'],_0x31bffa[_0x430951(0x13a)],_0x31bffa[_0x430951(0x15b)]),logger[_0x430951(0x1e0)](_0x5c9991),process['exit'](0x1);}else _0x31bffa[_0x430951(0x1f3)](_0x31bffa[_0x430951(0x150)],_0x31bffa[_0x430951(0x191)])?(_0x4bd27f[_0x430951(0x1dc)]('['+_0x528688+']\x20status\x20:\x20'+_0x19924e['status']+_0x430951(0x1ce)+_0x8de05c['data']+_0x430951(0x196)+_0x40ed6f[_0x430951(0x1e0)]),_0x18cbdc[_0x430951(0x1e0)]&&_0x1f0e57['error'](_0x430951(0x1d5)+_0x3f0087[_0x430951(0x1e0)]['stack'])):_0x24de44=_0x21f2f4;}}else _0x31bffa[_0x430951(0x1f3)](_0x31bffa[_0x430951(0x198)],_0x31bffa[_0x430951(0x189)])?_0x39ee35[_0x430951(0x203)](0x1):process[_0x430951(0x203)](0x1);const _0x4298d3={};_0x4298d3[_0x430951(0x144)]=WS_EVENTS[_0x430951(0x153)],_0x4298d3[_0x430951(0x1dd)]=_0x31bffa[_0x430951(0x145)],webSocketUtils[_0x430951(0x165)](_0x317b06,_0x4298d3),global_registry[_0x430951(0x114)]=_0x24de44[_0x430951(0x114)],global_registry['clusterRegion']=_0x24de44['region'],global_registry[_0x430951(0x12f)]=_0x24de44[_0x430951(0x12f)];}else{const _0x5e737a={};_0x5e737a['type']=_0x11054d[_0x430951(0x153)],_0x5e737a['message']=_0x1fa5ed,_0xa3c9fa[_0x430951(0x165)](_0x4eca3d,_0x5e737a,_0x31bffa['YOYlA'],!![]);}}else _0x31bffa[_0x430951(0x1f3)](_0x31bffa[_0x430951(0x1c3)],_0x31bffa[_0x430951(0x1c1)])?_0x34d6fd[_0x430951(0x135)](_0x31bffa[_0x430951(0x139)]):(logger[_0x430951(0x1e0)](_0x31bffa[_0x430951(0x115)]),process[_0x430951(0x203)](0x1));}}else _0x4644fa['error'](_0x430951(0x1d5)+_0x5098cd[_0x430951(0x1e0)][_0x430951(0x12b)]);}catch(_0x33f5ad){_0x31bffa[_0x430951(0x1f3)](_0x31bffa['kfGGS'],_0x31bffa[_0x430951(0x1bb)])?(_0x1899f0[_0x430951(0x1dc)]('Setting\x20cloud\x20provider\x20as\x20'+_0x2aa3b4['CLOUD_PROVIDER']+'\x20'),_0x42fc01[_0x430951(0x114)]=_0x9a79f9[_0x430951(0x109)]):(_0x5c9991='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x33f5ad+':\x20'+_0x33f5ad['stack'],logger['error'](_0x5c9991),await _0x31bffa['OnszD'](reportToGalactusAndSendToEDS,_0x50ef16,_0x317b06,_0x5c9991,messageTypes[_0x430951(0x1c5)],_0x31bffa[_0x430951(0x13d)],_0x31bffa[_0x430951(0x1d9)],_0x31bffa['YOYlA']),process['exit'](0x1));}}function printResponse(_0x4c1eab,_0x3b5833){const _0x26031=a17_0x171414,_0x521c55={};_0x521c55[_0x26031(0x18b)]=function(_0x45a613,_0xde260b){return _0x45a613!==_0xde260b;},_0x521c55['hxJKA']=_0x26031(0x141),_0x521c55[_0x26031(0x179)]=_0x26031(0x16d);const _0x1f4d47=_0x521c55;logger[_0x26031(0x1dc)]('['+_0x4c1eab+']\x20status\x20:\x20'+_0x3b5833[_0x26031(0x151)]+_0x26031(0x1ce)+_0x3b5833[_0x26031(0x146)]+_0x26031(0x196)+_0x3b5833['error']),_0x3b5833[_0x26031(0x1e0)]&&(_0x1f4d47[_0x26031(0x18b)](_0x1f4d47[_0x26031(0x1bf)],_0x1f4d47[_0x26031(0x179)])?logger['error'](_0x26031(0x1d5)+_0x3b5833[_0x26031(0x1e0)]['stack']):_0x6d960a+=_0x26031(0x166)+_0x4b7a1e[_0x26031(0x12f)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a');}async function generateReport(_0xf1891b,_0x3f5ef2){const _0x324232=a17_0x171414,_0xef1ae2={'AErXy':function(_0x4b1b3f,_0x3997bb){return _0x4b1b3f+_0x3997bb;},'dfopR':'Success','GiRSN':_0x324232(0x18c),'uyeFL':function(_0x4e3e43,_0x339fb9){return _0x4e3e43||_0x339fb9;},'lmbQG':_0x324232(0x1e2),'ljmkP':_0x324232(0x126),'MSZgc':_0x324232(0x19c),'szDVO':function(_0xf31b24,_0x1b0a7f){return _0xf31b24!=_0x1b0a7f;},'SmcCg':_0x324232(0x155),'FVdVg':_0x324232(0x152),'eAaYR':function(_0x1cb32f){return _0x1cb32f();}};let _0x3e07b5=_0x324232(0x11e)+global_registry[_0x324232(0x114)]+_0x324232(0x206);return _0xf1891b[_0x324232(0x149)]((_0x36ae2b,_0x18654c)=>{const _0x1f4855=_0x324232,{header:_0x573771,response:_0x924284}=_0x36ae2b,{status:_0x98f2c,data:_0x23cafd,error:_0x2a8872}=_0x924284;_0x3e07b5+=_0x573771+'\x20#'+_0xef1ae2[_0x1f4855(0x10c)](_0x18654c,0x1)+'\x0a',_0x3e07b5+=_0x1f4855(0x199)+(_0x98f2c?_0xef1ae2[_0x1f4855(0x159)]:_0xef1ae2[_0x1f4855(0x136)])+'\x0a',_0x3e07b5+='Message:\x20'+_0xef1ae2['uyeFL'](_0x23cafd,_0xef1ae2[_0x1f4855(0x10e)])+'\x0a',_0x2a8872&&(_0x3e07b5+=_0xef1ae2[_0x1f4855(0x119)],_0x3e07b5+=_0x1f4855(0x19a)+(_0x2a8872[_0x1f4855(0x1dd)]||_0xef1ae2[_0x1f4855(0x10e)])+'\x0a',_0x3e07b5+='\x20\x20Code:\x20'+(_0x2a8872[_0x1f4855(0x18d)]||_0xef1ae2[_0x1f4855(0x10e)])+'\x0a',_0x3e07b5+=_0x1f4855(0x112)+(_0x2a8872[_0x1f4855(0x12b)]||_0xef1ae2[_0x1f4855(0x10e)])+'\x0a'),_0x3e07b5+='\x0a\x0a';}),_0x3e07b5+=_0xef1ae2[_0x324232(0x181)],_0xef1ae2[_0x324232(0x1e1)](_0x3f5ef2,null)?_0x3e07b5+=_0x324232(0x166)+global_registry[_0x324232(0x12f)]+'\x20'+(_0x3f5ef2?_0xef1ae2[_0x324232(0x104)]:_0xef1ae2[_0x324232(0x120)])+'\x0a\x0a':_0x3e07b5+=_0x324232(0x166)+global_registry[_0x324232(0x12f)]+_0x324232(0x1fd),_0x3e07b5+=_0xef1ae2[_0x324232(0x12a)](getSystemMetaData),_0x3e07b5;}function a17_0x25b2(_0x5402f1,_0x446c5a){const _0x514c55=a17_0x514c();return a17_0x25b2=function(_0x25b260,_0x38970c){_0x25b260=_0x25b260-0x103;let _0x551560=_0x514c55[_0x25b260];return _0x551560;},a17_0x25b2(_0x5402f1,_0x446c5a);};exports[a17_0x171414(0x190)]=async function(_0x12d8d3){const _0xe44560=a17_0x171414,_0x44ccdf={'OKuJE':function(_0x2a709b){return _0x2a709b();},'oCVYn':function(_0x58085c){return _0x58085c();},'jlOIa':_0xe44560(0x10f),'NEgts':function(_0x523ee8,_0x164cc4,_0x23e187,_0x580cae,_0x40cd1f,_0x404fdf,_0xf2c5a3,_0x3031be){return _0x523ee8(_0x164cc4,_0x23e187,_0x580cae,_0x40cd1f,_0x404fdf,_0xf2c5a3,_0x3031be);},'cqGaU':_0xe44560(0x19e),'ljtmk':_0xe44560(0x1b3),'UKAfF':_0xe44560(0x1e0),'BSSRm':function(_0x5b3cec,_0x44662b,_0x60a56f,_0x214cfe,_0x2ff9ad,_0x40f3ba,_0x287501){return _0x5b3cec(_0x44662b,_0x60a56f,_0x214cfe,_0x2ff9ad,_0x40f3ba,_0x287501);},'gtFZH':_0xe44560(0x13f),'Wiriq':_0xe44560(0x105),'xxwgb':function(_0x2f546a,_0x3657af,_0x489153){return _0x2f546a(_0x3657af,_0x489153);},'HbNMh':_0xe44560(0x16c),'hSpRc':_0xe44560(0x184),'HEdzK':_0xe44560(0x1ff),'ognvQ':function(_0x50248b,_0xee71c3,_0x154a82,_0x5ab83c,_0x17c174,_0x1d38c8,_0x4330d7,_0x100ed2){return _0x50248b(_0xee71c3,_0x154a82,_0x5ab83c,_0x17c174,_0x1d38c8,_0x4330d7,_0x100ed2);},'eHsZX':_0xe44560(0x11a),'sQUiN':_0xe44560(0x1fe),'vDQzu':function(_0x49038f,_0x51b683){return _0x49038f(_0x51b683);},'OgEbm':_0xe44560(0x208),'StuUj':function(_0x56caa0,_0x43d342,_0x27ac25){return _0x56caa0(_0x43d342,_0x27ac25);},'IBZUe':_0xe44560(0x1fb),'hYIwk':_0xe44560(0x1ae),'GMNdf':_0xe44560(0x1b9),'RyDoE':_0xe44560(0x154),'JqPRe':'SSL\x20Configured','KzOeh':function(_0x37e920,_0x22570d){return _0x37e920+_0x22570d;},'ZcVNC':_0xe44560(0x183),'CgQDZ':_0xe44560(0x14d)};let _0x14cab3,_0x4bf4ba;try{global_registry['requestId']=_0x44ccdf['OKuJE'](uuidv4);!fs[_0xe44560(0x168)](_0x44ccdf[_0xe44560(0x13e)](getCredentialsPath))&&(_0x4bf4ba=_0x44ccdf[_0xe44560(0x17f)],logger[_0xe44560(0x1e0)](_0x4bf4ba),await _0x44ccdf[_0xe44560(0x11d)](reportToGalactusAndSendToEDS,_0x12d8d3,_0x14cab3,_0x4bf4ba,messageTypes['ERROR'],_0x44ccdf[_0xe44560(0x167)],_0x44ccdf['ljtmk'],_0x44ccdf[_0xe44560(0x107)]),process[_0xe44560(0x203)](0x1));_0x44ccdf['BSSRm'](sendInstrumentationEvent,_0x12d8d3,_0x44ccdf[_0xe44560(0x167)],messageTypes[_0xe44560(0x19b)],null,null,_0x12d8d3);const _0x47b04d=JSON[_0xe44560(0x128)](fs[_0xe44560(0x178)](_0x44ccdf[_0xe44560(0x12e)](getCredentialsPath)));global_registry[_0xe44560(0x1e6)]=_0x47b04d[_0xe44560(0x1c6)][_0xe44560(0x117)],global_registry[_0xe44560(0x142)]=_0x47b04d['Browserstack'][_0xe44560(0x160)];const _0x3933de=WS_ENDPOINT['replace'](_0x44ccdf[_0xe44560(0x1b5)],_0x47b04d[_0xe44560(0x1c6)]['username'])[_0xe44560(0x1b1)](_0x44ccdf[_0xe44560(0x1bd)],_0x47b04d[_0xe44560(0x1c6)]['password']),_0x4b7543={};_0x4b7543[_0xe44560(0x1d3)]=ws,_0x4b7543[_0xe44560(0x1a9)]=0x36ee80,_0x14cab3=new ReconnectingWebSocket(_0x3933de,[],_0x4b7543),global_registry['authHeader']=_0x44ccdf['xxwgb'](getAuthHeader,global_registry[_0xe44560(0x1e6)],global_registry[_0xe44560(0x142)]),await _0x44ccdf[_0xe44560(0x15a)](inputValidation,_0x12d8d3,_0x14cab3),logger[_0xe44560(0x1dc)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0xe44560(0x114)]+_0xe44560(0x1db)+global_registry[_0xe44560(0x113)]);let _0x56c768=await _0x44ccdf['BSSRm'](getCloudProviderObjectWithOutInit,global_registry[_0xe44560(0x114)],global_registry['clusterName'],_0x44ccdf['HbNMh'],_0x14cab3,webSocketUtils,_0x12d8d3);const _0x1783b2=await _0x56c768[_0xe44560(0x15f)]();_0x44ccdf[_0xe44560(0x15a)](printResponse,_0x44ccdf[_0xe44560(0x13b)],_0x1783b2),_0x56c768=await _0x56c768[_0xe44560(0x16f)]();let _0x7cecbe=![];try{_0x7cecbe=await _0x56c768[_0xe44560(0x108)]();}catch(_0x5f2ed8){const _0x35f0ae=_0x44ccdf[_0xe44560(0x1d2)][_0xe44560(0x19d)]('|');let _0x57a6c8=0x0;while(!![]){switch(_0x35f0ae[_0x57a6c8++]){case'0':_0x4bf4ba+='\x0a'+JSON[_0xe44560(0x131)](_0x5f2ed8['stack']);continue;case'1':await _0x44ccdf[_0xe44560(0x1ad)](reportToGalactusAndSendToEDS,_0x12d8d3,_0x14cab3,_0x4bf4ba,messageTypes[_0xe44560(0x1c5)],_0x44ccdf[_0xe44560(0x167)],_0xe44560(0x177)+global_registry['cloudProvider'],_0x44ccdf[_0xe44560(0x107)]);continue;case'2':_0x4bf4ba='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0xe44560(0x12f)]+_0xe44560(0x170)+global_registry[_0xe44560(0x113)]+_0xe44560(0x18f)+_0x5f2ed8;continue;case'3':logger[_0xe44560(0x1e0)](_0x4bf4ba);continue;case'4':_0x7cecbe=null;continue;}break;}}_0x7cecbe&&logger['info'](_0xe44560(0x1e7)+global_registry[_0xe44560(0x12f)]+_0xe44560(0x207));const _0x2cbd8=await _0x56c768[_0xe44560(0x1a6)]();_0x44ccdf['xxwgb'](printResponse,_0x44ccdf['eHsZX'],_0x2cbd8);const _0x538880=await _0x44ccdf[_0xe44560(0x12e)](curlRequest);_0x44ccdf[_0xe44560(0x15a)](printResponse,_0x44ccdf[_0xe44560(0x1f9)],_0x538880);const _0x53b3f3=await _0x44ccdf[_0xe44560(0x156)](isTlsSupported,_0x44ccdf['OgEbm']);_0x44ccdf[_0xe44560(0x171)](printResponse,_0x44ccdf['IBZUe'],_0x53b3f3);const _0x1d5c07={};_0x1d5c07[_0xe44560(0x127)]=_0x44ccdf[_0xe44560(0x1f4)],_0x1d5c07['response']=_0x1783b2;const _0x2529e1={};_0x2529e1[_0xe44560(0x127)]=_0x44ccdf[_0xe44560(0x14e)],_0x2529e1[_0xe44560(0x1b7)]=_0x2cbd8;const _0xa7277e={};_0xa7277e[_0xe44560(0x127)]=_0x44ccdf[_0xe44560(0x14a)],_0xa7277e[_0xe44560(0x1b7)]=_0x538880;const _0x1d8dab={};_0x1d8dab[_0xe44560(0x127)]=_0x44ccdf[_0xe44560(0x1c0)],_0x1d8dab[_0xe44560(0x1b7)]=_0x53b3f3;const _0xb4f172=[_0x1d5c07,_0x2529e1,_0xa7277e,_0x1d8dab],_0x47ac60=await _0x44ccdf[_0xe44560(0x15a)](generateReport,_0xb4f172,_0x7cecbe),_0x58cfb4=new Date(),_0x117815=_0x58cfb4['getUTCFullYear']()+'_'+_0x44ccdf[_0xe44560(0x1e5)](_0x58cfb4['getUTCMonth'](),0x1)+'_'+_0x58cfb4[_0xe44560(0x1fa)]()+'_'+_0x58cfb4['getUTCHours']()+'_'+_0x58cfb4[_0xe44560(0x1f2)](),_0x298ae7=_0xe44560(0x1c4)+_0x117815+_0xe44560(0x1a1);fs[_0xe44560(0x1a8)](_0x298ae7,_0x47ac60,_0x44ccdf[_0xe44560(0x1d7)]),logger[_0xe44560(0x1dc)](_0xe44560(0x122)+_0x298ae7),process['exit'](0x0);}catch(_0x1c66e7){let _0x524cc8=_0xe44560(0x1d8)+_0x1c66e7+'\x20';logger[_0xe44560(0x1e0)](_0x524cc8),_0x524cc8+='\x0a'+JSON[_0xe44560(0x131)](_0x1c66e7[_0xe44560(0x12b)]),logger[_0xe44560(0x1e3)]('stack\x20trace\x20'+_0x1c66e7[_0xe44560(0x12b)]);if(_0x14cab3){const _0x3ad4d6={};_0x3ad4d6[_0xe44560(0x144)]=WS_EVENTS['LOG'],_0x3ad4d6[_0xe44560(0x1dd)]=_0x524cc8,webSocketUtils[_0xe44560(0x165)](_0x14cab3,_0x3ad4d6,_0x44ccdf['UKAfF'],!![]);}await webSocketUtils[_0xe44560(0x17c)](0x7d0);const _0x148f19={};_0x148f19[_0xe44560(0x1e0)]=_0x524cc8,await _0x44ccdf['BSSRm'](sendInstrumentationEvent,_0x12d8d3,_0x44ccdf[_0xe44560(0x167)],messageTypes[_0xe44560(0x1c5)],_0x44ccdf[_0xe44560(0x10a)],_0x148f19,_0x12d8d3),process[_0xe44560(0x203)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a18_0x366c(_0x2f7c2f,_0x56b01d){const _0x14a697=a18_0x14a6();return a18_0x366c=function(_0x366ceb,_0x37affc){_0x366ceb=_0x366ceb-0x103;let _0x36a952=_0x14a697[_0x366ceb];return _0x36a952;},a18_0x366c(_0x2f7c2f,_0x56b01d);}const a18_0x2fc156=a18_0x366c;(function(_0x56ba88,_0x3efe84){const _0x1c9d24=a18_0x366c,_0x52d1d4=_0x56ba88();while(!![]){try{const _0x5cdb95=-parseInt(_0x1c9d24(0x11b))/0x1*(parseInt(_0x1c9d24(0x10e))/0x2)+-parseInt(_0x1c9d24(0x112))/0x3*(parseInt(_0x1c9d24(0x11d))/0x4)+-parseInt(_0x1c9d24(0x111))/0x5*(-parseInt(_0x1c9d24(0x119))/0x6)+parseInt(_0x1c9d24(0x113))/0x7*(-parseInt(_0x1c9d24(0x10a))/0x8)+parseInt(_0x1c9d24(0x110))/0x9*(-parseInt(_0x1c9d24(0x109))/0xa)+-parseInt(_0x1c9d24(0x117))/0xb*(parseInt(_0x1c9d24(0x120))/0xc)+parseInt(_0x1c9d24(0x11e))/0xd;if(_0x5cdb95===_0x3efe84)break;else _0x52d1d4['push'](_0x52d1d4['shift']());}catch(_0x2d352b){_0x52d1d4['push'](_0x52d1d4['shift']());}}}(a18_0x14a6,0x7600c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2fc156(0x11a));function a18_0x14a6(){const _0x9d895c=['strict','11kUMGHm','epilogue','42yWzPMd','../config/constants','22nZtUdZ','Smwxy','576UGicyH','15176616KcHCSZ','command','5269956sPsaQk','Start\x20an\x20existing\x20Automation\x20grid.','usage','desc','handler','start_commands','builder','50NosGVL','8mCtNYJ','start','help','demandCommand','23658vtYUdI','recommendCommands','109386WKPCBf','526345jDeHRr','7461mnNScR','2118732qmsnNa','commandDir','TCOaS'];a18_0x14a6=function(){return _0x9d895c;};return a18_0x14a6();}exports[a18_0x2fc156(0x11f)]=a18_0x2fc156(0x10b),exports[a18_0x2fc156(0x105)]=a18_0x2fc156(0x103),exports[a18_0x2fc156(0x108)]=function(_0x4d1f83){const _0x5c9a13=a18_0x2fc156,_0x3ff3dd={};_0x3ff3dd[_0x5c9a13(0x115)]=_0x5c9a13(0x107),_0x3ff3dd[_0x5c9a13(0x11c)]=_0x5c9a13(0x10c);const _0xfa4165=_0x3ff3dd;return _0x4d1f83[_0x5c9a13(0x104)](HELP_HEADER_MESSAGE[_0x5c9a13(0x10b)])[_0x5c9a13(0x118)](HELP_FOOTER_MESSAGE)[_0x5c9a13(0x114)](_0xfa4165['TCOaS'])[_0x5c9a13(0x10d)]()[_0x5c9a13(0x10f)]()[_0x5c9a13(0x116)]()['help'](_0xfa4165[_0x5c9a13(0x11c)]);},exports[a18_0x2fc156(0x106)]=function(_0x79b6db){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x32d509=a19_0x3d29;function a19_0x20e5(){const _0x37ee3a=['Grid\x20started','Browserstack','ERROR','bstackUsername','Start\x20an\x20existing\x20Automation\x20grid.','14xYSrap','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','debug','../../utils/webSocketUtils','usage','<PasswordPlaceholder>','udScV','../../config/logger','handler','statusCode','fXdwh','15DFzbNo','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','epilogue','6ImtTuc','stack','KIWSg','676023vQyxFC','help','password','exit','../../utils/createk8sClient','default','command','NkBzG','jMokJ','gridId','readFileSync','13544eWipOJ','2589183SSJzUM','string','name','connectionTimeout','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','WImuD','Adding\x20Websocket\x20listeners','vRbrY','clusterName','../../config/constants','cloudProvider','error','invalid-grid-id','oSOXu','unauthorised','foxQL','skip-tls-cert-verify','info','addListeners','../../utils/utilityMethods','Starting\x20grid\x20','355428ekUIbx','jkLyA','lrmrY','skipTlsCertVerify','argv','iqUqe','message','desc','<UsernamePlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','start','yppMG','GdTgq','TIqgT','../../utils/gridComponents','start-grid-called','mSQWV','grid','6830890TaRKjG','EUDXP','../../utils/instrumentationUtils','1374120GLMeXR','init-not-called','server-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','111599VGVhWi','WebSocket','Skip\x20insecure\x20cert\x20verification.','uiRjI','description','username','replace','eBglj','wBLQU','options','type','../../cloudproviders/utils'];a19_0x20e5=function(){return _0x37ee3a;};return a19_0x20e5();}function a19_0x3d29(_0x3c04ce,_0x20eef7){const _0x20e568=a19_0x20e5();return a19_0x3d29=function(_0x3d2940,_0x4a7550){_0x3d2940=_0x3d2940-0x7b;let _0xcbe173=_0x20e568[_0x3d2940];return _0xcbe173;},a19_0x3d29(_0x3c04ce,_0x20eef7);}(function(_0x2c0589,_0x2b1558){const _0xbf8c04=a19_0x3d29,_0x43d08f=_0x2c0589();while(!![]){try{const _0x91b853=parseInt(_0xbf8c04(0xae))/0x1*(parseInt(_0xbf8c04(0xce))/0x2)+parseInt(_0xbf8c04(0xd1))/0x3+parseInt(_0xbf8c04(0x95))/0x4*(parseInt(_0xbf8c04(0xca))/0x5)+-parseInt(_0xbf8c04(0xaa))/0x6+-parseInt(_0xbf8c04(0xbf))/0x7*(parseInt(_0xbf8c04(0x7f))/0x8)+parseInt(_0xbf8c04(0x80))/0x9+-parseInt(_0xbf8c04(0xa7))/0xa;if(_0x91b853===_0x2b1558)break;else _0x43d08f['push'](_0x43d08f['shift']());}catch(_0xa0ac84){_0x43d08f['push'](_0x43d08f['shift']());}}}(a19_0x20e5,0x308f5));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x32d509(0x89)),{logger}=require(a19_0x32d509(0xc6)),{getCredentialsPath,getGridDetails}=require(a19_0x32d509(0x93)),{scaleUpHubDeployment}=require(a19_0x32d509(0xa3)),{sendInstrumentationEvent}=require(a19_0x32d509(0xa9)),webSocketUtils=require(a19_0x32d509(0xc2)),{createK8sClient}=require(a19_0x32d509(0xd5)),{getCloudProviderObject}=require(a19_0x32d509(0xb9));exports[a19_0x32d509(0xd7)]=a19_0x32d509(0xa6),exports[a19_0x32d509(0x9c)]=a19_0x32d509(0xbe),exports['builder']=function(_0x2fd03e){const _0xa792a8=a19_0x32d509,_0x33b0a1={};_0x33b0a1[_0xa792a8(0xc9)]=_0xa792a8(0xc0),_0x33b0a1['Khpcq']=_0xa792a8(0x81),_0x33b0a1[_0xa792a8(0xb5)]=_0xa792a8(0xb0),_0x33b0a1[_0xa792a8(0x87)]=_0xa792a8(0xcb),_0x33b0a1[_0xa792a8(0x9a)]=_0xa792a8(0xd2);const _0x300841=_0x33b0a1,_0x43cf31={};_0x43cf31[_0xa792a8(0xb2)]=_0x300841[_0xa792a8(0xc9)],_0x43cf31[_0xa792a8(0xb8)]=_0x300841['Khpcq'];const _0x5a92e9={};_0x5a92e9['description']=_0x300841[_0xa792a8(0xb5)],_0x5a92e9['type']=_0x300841[_0xa792a8(0x87)],_0x5a92e9[_0xa792a8(0xd6)]=![];const _0xf0eeec={};return _0xf0eeec['grid-id']=_0x43cf31,_0xf0eeec[_0xa792a8(0x90)]=_0x5a92e9,_0x2fd03e[_0xa792a8(0xc3)](HELP_HEADER_MESSAGE[_0xa792a8(0x9f)])[_0xa792a8(0xcd)](HELP_FOOTER_MESSAGE)[_0xa792a8(0xb7)](_0xf0eeec)[_0xa792a8(0xd2)](_0x300841[_0xa792a8(0x9a)])[_0xa792a8(0x99)];},exports[a19_0x32d509(0xc7)]=async function(_0x3f2c5e){const _0x47d519=a19_0x32d509,_0x260283={'KIWSg':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','GdTgq':function(_0x1074f1){return _0x1074f1();},'foxQL':_0x47d519(0x9e),'lrmrY':function(_0x26577f,_0x5c44d7,_0x5c98b9,_0x4b4c43,_0x51fa8f,_0x2ff0f8,_0xad75b8){return _0x26577f(_0x5c44d7,_0x5c98b9,_0x4b4c43,_0x51fa8f,_0x2ff0f8,_0xad75b8);},'yppMG':_0x47d519(0xa4),'oSOXu':_0x47d519(0xab),'TIqgT':function(_0x470709,_0x254cfa,_0x5bbf5,_0x3d1ffb,_0x50c611,_0x1658dd,_0x55feeb){return _0x470709(_0x254cfa,_0x5bbf5,_0x3d1ffb,_0x50c611,_0x1658dd,_0x55feeb);},'WImuD':_0x47d519(0x9d),'NkBzG':_0x47d519(0xc4),'mSQWV':_0x47d519(0x86),'EUDXP':function(_0x358395,_0x414ad6,_0x41834b,_0x213ef2){return _0x358395(_0x414ad6,_0x41834b,_0x213ef2);},'CdaMY':function(_0x432f39,_0x2a836e,_0x5ce216,_0x23f841,_0x18a4f3,_0x12c73f,_0x259eb8){return _0x432f39(_0x2a836e,_0x5ce216,_0x23f841,_0x18a4f3,_0x12c73f,_0x259eb8);},'uiRjI':function(_0x370938,_0x3b5e36,_0x19b74a){return _0x370938(_0x3b5e36,_0x19b74a);},'tgpLX':function(_0x314cc8,_0x96b046,_0x51a18d){return _0x314cc8(_0x96b046,_0x51a18d);},'KCddT':_0x47d519(0xba),'Drrdh':function(_0x252893,_0x4cd05d){return _0x252893===_0x4cd05d;},'jMokJ':_0x47d519(0xad),'wBLQU':function(_0x392320,_0x91dc60,_0x12222c,_0x4df21e,_0x341221,_0x1994dd,_0x57ba56){return _0x392320(_0x91dc60,_0x12222c,_0x4df21e,_0x341221,_0x1994dd,_0x57ba56);},'udScV':_0x47d519(0x8e),'jkLyA':_0x47d519(0x8c),'eobnQ':_0x47d519(0xac)};let _0x51d5de;try{!_0x3f2c5e['gridId']&&(logger[_0x47d519(0x8b)](_0x260283[_0x47d519(0xd0)]),process[_0x47d519(0xd4)](0x1));!fs['existsSync'](_0x260283[_0x47d519(0xa1)](getCredentialsPath))&&(logger[_0x47d519(0x8b)](_0x260283[_0x47d519(0x8f)]),await _0x260283[_0x47d519(0x97)](sendInstrumentationEvent,_0x3f2c5e,_0x260283['yppMG'],messageTypes[_0x47d519(0xbc)],_0x260283[_0x47d519(0x8d)],null,_0x3f2c5e),process[_0x47d519(0xd4)](0x1));logger[_0x47d519(0x91)](_0x47d519(0x94)+_0x3f2c5e[_0x47d519(0x7d)]),await _0x260283[_0x47d519(0xa2)](sendInstrumentationEvent,_0x3f2c5e,_0x260283[_0x47d519(0xa0)],messageTypes['INFO'],null,null,_0x3f2c5e);const _0x58e120=JSON['parse'](fs[_0x47d519(0x7e)](_0x260283[_0x47d519(0xa1)](getCredentialsPath)));global_registry[_0x47d519(0xbd)]=_0x58e120[_0x47d519(0xbb)]['username'],global_registry['bstackAccesskey']=_0x58e120[_0x47d519(0xbb)]['password'];const _0x2bd75f=WS_ENDPOINT['replace'](_0x260283[_0x47d519(0x85)],_0x58e120['Browserstack'][_0x47d519(0xb3)])[_0x47d519(0xb4)](_0x260283[_0x47d519(0x7b)],_0x58e120[_0x47d519(0xbb)][_0x47d519(0xd3)]),_0x430c90={};_0x430c90[_0x47d519(0xaf)]=ws,_0x430c90[_0x47d519(0x83)]=0x36ee80,_0x51d5de=new ReconnectingWebSocket(_0x2bd75f,[],_0x430c90),logger[_0x47d519(0xc1)](_0x260283[_0x47d519(0xa5)]),webSocketUtils[_0x47d519(0x92)](_0x51d5de,_0x3f2c5e['user'],_0x3f2c5e[_0x47d519(0xd3)]);const [_0x407d3a,_0x436cc2]=await _0x260283[_0x47d519(0xa8)](getGridDetails,_0x58e120['Browserstack'][_0x47d519(0xb3)],_0x58e120[_0x47d519(0xbb)]['password'],_0x3f2c5e[_0x47d519(0x7d)]);if(_0x436cc2){const _0x16269c=_0x436cc2['info'];global_registry[_0x47d519(0x8a)]=_0x16269c['cloudProvider'],global_registry['clusterRegion']=_0x16269c['region'],global_registry[_0x47d519(0x88)]=_0x16269c[_0x47d519(0x88)];const _0xfa44e4=await _0x260283['CdaMY'](getCloudProviderObject,_0x16269c[_0x47d519(0x8a)],_0x16269c[_0x47d519(0x88)],_0x16269c[_0x47d519(0x82)],_0x51d5de,webSocketUtils,_0x3f2c5e),[_0x43eee5,_0x370e62,_0x47c129,_0x4714bd,_0x3678a5,_0x5b6443]=await _0x260283[_0x47d519(0xb1)](createK8sClient,_0xfa44e4,_0x3f2c5e[_0x47d519(0x98)]);await _0x260283['tgpLX'](scaleUpHubDeployment,_0x370e62,_0x16269c['name']),logger[_0x47d519(0x91)](_0x260283['KCddT']),process[_0x47d519(0xd4)](0x0);}_0x260283['Drrdh'](_0x407d3a['statusCode'],0x191)&&(logger['error'](_0x260283[_0x47d519(0x7c)]),await _0x260283[_0x47d519(0xb6)](sendInstrumentationEvent,_0x3f2c5e,_0x260283[_0x47d519(0xa0)],messageTypes[_0x47d519(0xbc)],_0x260283[_0x47d519(0xc5)],null,_0x3f2c5e),process[_0x47d519(0xd4)](0x1)),_0x260283['Drrdh'](_0x407d3a[_0x47d519(0xc8)],0x190)&&(logger[_0x47d519(0x8b)](JSON['parse'](_0x407d3a['body'])[_0x47d519(0x9b)]),await _0x260283['lrmrY'](sendInstrumentationEvent,_0x3f2c5e,_0x260283[_0x47d519(0xa0)],messageTypes['ERROR'],_0x260283[_0x47d519(0x96)],null,_0x3f2c5e),process['exit'](0x1)),logger['error'](_0x47d519(0xcc)+JSON['stringify'](_0x407d3a)),await _0x260283[_0x47d519(0xa2)](sendInstrumentationEvent,_0x3f2c5e,_0x260283[_0x47d519(0xa0)],messageTypes['ERROR'],_0x260283['eobnQ'],_0x407d3a,_0x3f2c5e),process[_0x47d519(0xd4)](0x1);}catch(_0xbf9e5){const _0x5bdf44=_0x47d519(0x84)+_0xbf9e5+'\x20\x0a'+JSON['stringify'](_0xbf9e5[_0x47d519(0xcf)])+'\x20';logger[_0x47d519(0x8b)](_0x5bdf44),process[_0x47d519(0xd4)](0x1);}};
|
package/ats/src/commands/stop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x28e391=a20_0x48b0;function a20_0x48b0(_0x22fa74,_0x1236cc){const _0x3fa752=a20_0x3fa7();return a20_0x48b0=function(_0x48b0e8,_0x2d57ed){_0x48b0e8=_0x48b0e8-0x12e;let _0x23be4d=_0x3fa752[_0x48b0e8];return _0x23be4d;},a20_0x48b0(_0x22fa74,_0x1236cc);}(function(_0x3ea557,_0x21d6c7){const _0x2bfd60=a20_0x48b0,_0x533139=_0x3ea557();while(!![]){try{const _0x475f75=-parseInt(_0x2bfd60(0x12f))/0x1*(-parseInt(_0x2bfd60(0x139))/0x2)+parseInt(_0x2bfd60(0x136))/0x3*(-parseInt(_0x2bfd60(0x13d))/0x4)+parseInt(_0x2bfd60(0x133))/0x5+parseInt(_0x2bfd60(0x13c))/0x6*(-parseInt(_0x2bfd60(0x143))/0x7)+-parseInt(_0x2bfd60(0x140))/0x8+-parseInt(_0x2bfd60(0x134))/0x9+parseInt(_0x2bfd60(0x137))/0xa;if(_0x475f75===_0x21d6c7)break;else _0x533139['push'](_0x533139['shift']());}catch(_0x3ba8d5){_0x533139['push'](_0x533139['shift']());}}}(a20_0x3fa7,0x6eb2c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x28e391(0x12e));exports['command']=a20_0x28e391(0x132),exports['desc']=a20_0x28e391(0x144),exports[a20_0x28e391(0x13f)]=function(_0x2129c6){const _0x46dbff=a20_0x28e391,_0x313bfa={};_0x313bfa[_0x46dbff(0x135)]=_0x46dbff(0x13b),_0x313bfa[_0x46dbff(0x141)]=_0x46dbff(0x138);const _0x5e7616=_0x313bfa;return _0x2129c6[_0x46dbff(0x131)](HELP_HEADER_MESSAGE[_0x46dbff(0x132)])[_0x46dbff(0x130)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5e7616['oiaCD'])[_0x46dbff(0x142)]()['recommendCommands']()[_0x46dbff(0x13a)]()[_0x46dbff(0x138)](_0x5e7616[_0x46dbff(0x141)]);},exports[a20_0x28e391(0x13e)]=function(_0xb04557){};function a20_0x3fa7(){const _0x2e0324=['4823775fgFhho','oiaCD','399039bqpWpP','16200380Nluxbq','help','26vUBCcE','strict','stop_commands','84uoOick','20yUBTDS','handler','builder','2046584aMSKuQ','DmKWc','demandCommand','159943sckXSI','Stop\x20a\x20running\x20Automation\x20grid.','../config/constants','16115PKorlc','epilogue','usage','stop','2003180SpqYhb'];a20_0x3fa7=function(){return _0x2e0324;};return a20_0x3fa7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x47eb13=a21_0x11b8;function a21_0x11b8(_0x2b6eff,_0xea8ee8){const _0xdcf7db=a21_0xdcf7();return a21_0x11b8=function(_0x11b8f1,_0x2d2d0c){_0x11b8f1=_0x11b8f1-0x116;let _0x4b7ace=_0xdcf7db[_0x11b8f1];return _0x4b7ace;},a21_0x11b8(_0x2b6eff,_0xea8ee8);}(function(_0x2023ee,_0x1ee512){const _0x38f57f=a21_0x11b8,_0x3741f3=_0x2023ee();while(!![]){try{const _0x214bc6=-parseInt(_0x38f57f(0x14c))/0x1+-parseInt(_0x38f57f(0x166))/0x2+parseInt(_0x38f57f(0x13c))/0x3*(-parseInt(_0x38f57f(0x121))/0x4)+-parseInt(_0x38f57f(0x120))/0x5*(-parseInt(_0x38f57f(0x136))/0x6)+-parseInt(_0x38f57f(0x16a))/0x7*(-parseInt(_0x38f57f(0x134))/0x8)+parseInt(_0x38f57f(0x176))/0x9*(-parseInt(_0x38f57f(0x12d))/0xa)+-parseInt(_0x38f57f(0x156))/0xb*(-parseInt(_0x38f57f(0x15e))/0xc);if(_0x214bc6===_0x1ee512)break;else _0x3741f3['push'](_0x3741f3['shift']());}catch(_0x49c99c){_0x3741f3['push'](_0x3741f3['shift']());}}}(a21_0xdcf7,0xa4b8c));function a21_0xdcf7(){const _0x3d1011=['aAiWX','grid','hoVqt','rMHIa','HEfVi','statusCode','Grid\x20stoppped.','existsSync','exit','1248785SfeOZY','username','ZfVsA','DtVEt','options','string','Stopping\x20grid\x20','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','command','22733931EkHbFG','../../config/constants','info','vbKYr','Stop\x20a\x20running\x20Automation\x20grid.','BmrvI','password','../../utils/webSocketUtils','24rWIdLp','parse','TxlAR','IgnpZ','../../utils/createk8sClient','epilogue','xtfDC','coHGg','2500928bctRuk','SnPuK','../../cloudproviders/utils','GZdQW','1680791DSnlUn','reconnecting-websocket','desc','stop','description','QxnBl','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','region','hRaSa','stop-grid-called','clusterName','852921KRTUDS','Txoqr','handler','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','init-not-called','type','gridId','Browserstack','boolean','WebSocket','fQhGj','10FsBnvR','2901324kglveg','../../utils/instrumentationUtils','bstackUsername','help','body','../../utils/gridComponents','EteUH','debug','skip-tls-cert-verify','vDyVP','bstackAccesskey','HDTcM','130TYbIZn','invalid-grid-id','builder','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','cloudProvider','addListeners','8IwvwUH','connectionTimeout','2273166snVjlS','zCLsB','usage','tdyqt','../../utils/utilityMethods','Skip\x20insecure\x20cert\x20verification.','3rnpsFW','BhAbm','message','stringify','replace','stack','name'];a21_0xdcf7=function(){return _0x3d1011;};return a21_0xdcf7();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x47eb13(0x16b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x47eb13(0x157)),{logger}=require(a21_0x47eb13(0x153)),{getCredentialsPath,getGridDetails}=require(a21_0x47eb13(0x13a)),{scaleDownHubDeployment}=require(a21_0x47eb13(0x126)),{sendInstrumentationEvent}=require(a21_0x47eb13(0x122)),webSocketUtils=require(a21_0x47eb13(0x15d)),{createK8sClient}=require(a21_0x47eb13(0x162)),{getCloudProviderObject}=require(a21_0x47eb13(0x168));exports[a21_0x47eb13(0x155)]=a21_0x47eb13(0x144),exports[a21_0x47eb13(0x16c)]=a21_0x47eb13(0x15a),exports[a21_0x47eb13(0x12f)]=function(_0x5c292b){const _0x2c9bcf=a21_0x47eb13,_0x1e6fec={};_0x1e6fec[_0x2c9bcf(0x116)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x1e6fec[_0x2c9bcf(0x139)]=_0x2c9bcf(0x151),_0x1e6fec[_0x2c9bcf(0x15b)]=_0x2c9bcf(0x13b),_0x1e6fec[_0x2c9bcf(0x173)]=_0x2c9bcf(0x11d),_0x1e6fec[_0x2c9bcf(0x11f)]=_0x2c9bcf(0x124);const _0x341ef0=_0x1e6fec,_0x500ad0={};_0x500ad0[_0x2c9bcf(0x16e)]=_0x341ef0['Txoqr'],_0x500ad0[_0x2c9bcf(0x11a)]=_0x341ef0[_0x2c9bcf(0x139)];const _0x11d34d={};_0x11d34d[_0x2c9bcf(0x16e)]=_0x341ef0[_0x2c9bcf(0x15b)],_0x11d34d[_0x2c9bcf(0x11a)]=_0x341ef0[_0x2c9bcf(0x173)],_0x11d34d['default']=![];const _0x5499a6={};return _0x5499a6['grid-id']=_0x500ad0,_0x5499a6[_0x2c9bcf(0x129)]=_0x11d34d,_0x5c292b[_0x2c9bcf(0x138)](HELP_HEADER_MESSAGE[_0x2c9bcf(0x16d)])[_0x2c9bcf(0x163)](HELP_FOOTER_MESSAGE)[_0x2c9bcf(0x150)](_0x5499a6)['help'](_0x341ef0[_0x2c9bcf(0x11f)])['argv'];},exports[a21_0x47eb13(0x117)]=async function(_0x450ab7){const _0x1e5574=a21_0x47eb13,_0x30c920={'HDTcM':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','rMHIa':function(_0x211a98){return _0x211a98();},'ZfVsA':_0x1e5574(0x130),'aAiWX':function(_0x578a47,_0x1082b0,_0x3cf6cb,_0x1d2b44,_0x410f16,_0x5c67dc,_0x3f3bde){return _0x578a47(_0x1082b0,_0x3cf6cb,_0x1d2b44,_0x410f16,_0x5c67dc,_0x3f3bde);},'TxlAR':_0x1e5574(0x174),'vbKYr':_0x1e5574(0x119),'hoVqt':'<UsernamePlaceholder>','zCLsB':'<PasswordPlaceholder>','xtfDC':'Adding\x20Websocket\x20listeners','coHGg':function(_0x1c591a,_0x47a6aa,_0x4302ab,_0x12ba2f){return _0x1c591a(_0x47a6aa,_0x4302ab,_0x12ba2f);},'IgnpZ':function(_0x1af2fd,_0x19e8f9,_0xfa0cc5,_0x3b10f9,_0x23b89f,_0x8f28e1,_0x13e0d9){return _0x1af2fd(_0x19e8f9,_0xfa0cc5,_0x3b10f9,_0x23b89f,_0x8f28e1,_0x13e0d9);},'DtVEt':function(_0xe4b67c,_0x258c39,_0x22a259){return _0xe4b67c(_0x258c39,_0x22a259);},'QxnBl':function(_0x137704,_0x446d68,_0x2eed4d){return _0x137704(_0x446d68,_0x2eed4d);},'GZdQW':_0x1e5574(0x149),'vDyVP':function(_0x5ba399,_0x4ec00b){return _0x5ba399===_0x4ec00b;},'EteUH':_0x1e5574(0x170),'SnPuK':'unauthorised','HEfVi':_0x1e5574(0x12e),'BhAbm':'server-error'};let _0x5ae22d;try{!_0x450ab7[_0x1e5574(0x11b)]&&(logger[_0x1e5574(0x171)](_0x30c920[_0x1e5574(0x12c)]),process[_0x1e5574(0x14b)](0x1));!fs[_0x1e5574(0x14a)](_0x30c920[_0x1e5574(0x146)](getCredentialsPath))&&(logger['error'](_0x30c920[_0x1e5574(0x14e)]),await _0x30c920['aAiWX'](sendInstrumentationEvent,_0x450ab7,_0x30c920[_0x1e5574(0x160)],messageTypes[_0x1e5574(0x131)],_0x30c920[_0x1e5574(0x159)],null,_0x450ab7),process[_0x1e5574(0x14b)](0x1));logger[_0x1e5574(0x158)](_0x1e5574(0x152)+_0x450ab7[_0x1e5574(0x11b)]),await _0x30c920[_0x1e5574(0x143)](sendInstrumentationEvent,_0x450ab7,_0x30c920[_0x1e5574(0x160)],messageTypes['INFO'],null,null,_0x450ab7);const _0x2474b9=JSON[_0x1e5574(0x15f)](fs['readFileSync'](_0x30c920['rMHIa'](getCredentialsPath)));global_registry[_0x1e5574(0x123)]=_0x2474b9[_0x1e5574(0x11c)]['username'],global_registry[_0x1e5574(0x12b)]=_0x2474b9[_0x1e5574(0x11c)][_0x1e5574(0x15c)];const _0x54662d=WS_ENDPOINT[_0x1e5574(0x140)](_0x30c920[_0x1e5574(0x145)],_0x2474b9['Browserstack']['username'])[_0x1e5574(0x140)](_0x30c920[_0x1e5574(0x137)],_0x2474b9[_0x1e5574(0x11c)][_0x1e5574(0x15c)]),_0x311112={};_0x311112[_0x1e5574(0x11e)]=ws,_0x311112[_0x1e5574(0x135)]=0x36ee80,_0x5ae22d=new ReconnectingWebSocket(_0x54662d,[],_0x311112),logger[_0x1e5574(0x128)](_0x30c920[_0x1e5574(0x164)]),webSocketUtils[_0x1e5574(0x133)](_0x5ae22d,_0x450ab7['user'],_0x450ab7[_0x1e5574(0x15c)]);const [_0x2295fa,_0x5f469c]=await _0x30c920[_0x1e5574(0x165)](getGridDetails,_0x2474b9[_0x1e5574(0x11c)][_0x1e5574(0x14d)],_0x2474b9[_0x1e5574(0x11c)]['password'],_0x450ab7[_0x1e5574(0x11b)]);if(_0x5f469c){const _0x44d05f=_0x5f469c['info'];global_registry[_0x1e5574(0x132)]=_0x44d05f[_0x1e5574(0x132)],global_registry['clusterRegion']=_0x44d05f[_0x1e5574(0x172)],global_registry['clusterName']=_0x44d05f[_0x1e5574(0x175)];const _0x490377=await _0x30c920[_0x1e5574(0x161)](getCloudProviderObject,_0x44d05f[_0x1e5574(0x132)],_0x44d05f['clusterName'],_0x44d05f[_0x1e5574(0x142)],_0x5ae22d,webSocketUtils,_0x450ab7),[_0x19ca20,_0x20d1d8,_0x12aab8,_0x2d7a3d,_0x1d7915,_0x506688]=await _0x30c920[_0x1e5574(0x14f)](createK8sClient,_0x490377,_0x450ab7['skipTlsCertVerify']);await _0x30c920[_0x1e5574(0x16f)](scaleDownHubDeployment,_0x20d1d8,_0x44d05f[_0x1e5574(0x142)]),logger[_0x1e5574(0x158)](_0x30c920[_0x1e5574(0x169)]),process['exit'](0x0);}_0x30c920[_0x1e5574(0x12a)](_0x2295fa['statusCode'],0x191)&&(logger[_0x1e5574(0x171)](_0x30c920[_0x1e5574(0x127)]),await _0x30c920[_0x1e5574(0x161)](sendInstrumentationEvent,_0x450ab7,_0x30c920[_0x1e5574(0x160)],messageTypes[_0x1e5574(0x131)],_0x30c920[_0x1e5574(0x167)],null,_0x450ab7),process[_0x1e5574(0x14b)](0x1)),_0x30c920['vDyVP'](_0x2295fa[_0x1e5574(0x148)],0x190)&&(logger[_0x1e5574(0x171)](JSON[_0x1e5574(0x15f)](_0x2295fa[_0x1e5574(0x125)])[_0x1e5574(0x13e)]),await _0x30c920[_0x1e5574(0x143)](sendInstrumentationEvent,_0x450ab7,_0x30c920['TxlAR'],messageTypes['ERROR'],_0x30c920[_0x1e5574(0x147)],null,_0x450ab7),process[_0x1e5574(0x14b)](0x1)),logger[_0x1e5574(0x171)](_0x1e5574(0x154)+JSON[_0x1e5574(0x13f)](_0x2295fa)),await _0x30c920['IgnpZ'](sendInstrumentationEvent,_0x450ab7,_0x30c920['TxlAR'],messageTypes['ERROR'],_0x30c920[_0x1e5574(0x13d)],_0x2295fa,_0x450ab7),process['exit'](0x1);}catch(_0x458b32){const _0xc85907=_0x1e5574(0x118)+_0x458b32+'\x20\x0a'+JSON['stringify'](_0x458b32[_0x1e5574(0x141)])+'\x20';logger[_0x1e5574(0x171)](_0xc85907),process[_0x1e5574(0x14b)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x576c0c=a22_0x51ca;(function(_0x461784,_0x15b39d){const _0x8b7b57=a22_0x51ca,_0x11f167=_0x461784();while(!![]){try{const _0x21db28=-parseInt(_0x8b7b57(0xe7))/0x1*(parseInt(_0x8b7b57(0xd4))/0x2)+-parseInt(_0x8b7b57(0x11c))/0x3*(-parseInt(_0x8b7b57(0xea))/0x4)+parseInt(_0x8b7b57(0xeb))/0x5+-parseInt(_0x8b7b57(0xc0))/0x6*(parseInt(_0x8b7b57(0x10c))/0x7)+-parseInt(_0x8b7b57(0xf3))/0x8*(-parseInt(_0x8b7b57(0x11b))/0x9)+parseInt(_0x8b7b57(0x125))/0xa+-parseInt(_0x8b7b57(0x110))/0xb;if(_0x21db28===_0x15b39d)break;else _0x11f167['push'](_0x11f167['shift']());}catch(_0x2ad3f5){_0x11f167['push'](_0x11f167['shift']());}}}(a22_0xb20c,0xeea45),require(a22_0x576c0c(0xd5))[a22_0x576c0c(0xf7)]());let gridURL=a22_0x576c0c(0x116),bsApiUrl=a22_0x576c0c(0xc5),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x576c0c(0xcb)][a22_0x576c0c(0xef)]||a22_0x576c0c(0xda))['toLowerCase']();if(_env===a22_0x576c0c(0x102)||_env===a22_0x576c0c(0xd7))gridURL=a22_0x576c0c(0xb7),bsApiUrl=a22_0x576c0c(0xcf),agApiUrl=a22_0x576c0c(0xec);else(_env==='preprod'||_env===a22_0x576c0c(0x10d))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x576c0c(0xf6)]=process['env']['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x576c0c(0xe8)]=process[a22_0x576c0c(0xcb)][a22_0x576c0c(0xe8)]||bsApiUrl,exports[a22_0x576c0c(0xf1)]=process[a22_0x576c0c(0xcb)][a22_0x576c0c(0xf1)]||agApiUrl,exports[a22_0x576c0c(0x120)]='wss://'+this['AG_API_URL']+a22_0x576c0c(0x111),exports[a22_0x576c0c(0x109)]='credentials',exports[a22_0x576c0c(0x128)]=a22_0x576c0c(0xbb),exports[a22_0x576c0c(0xb8)]=a22_0x576c0c(0xf8),exports[a22_0x576c0c(0xdb)]=a22_0x576c0c(0xb6),exports['CLUSTER_DEP_STACK_NAME']=a22_0x576c0c(0x122),exports[a22_0x576c0c(0xcd)]=a22_0x576c0c(0xf9),exports[a22_0x576c0c(0xc4)]=a22_0x576c0c(0xb5),exports['TURBOSCALE_DEPLOYMENT']=a22_0x576c0c(0xf5),exports['AZURE']=a22_0x576c0c(0xd8),exports[a22_0x576c0c(0x11d)]=a22_0x576c0c(0xd0),exports[a22_0x576c0c(0xe4)]=[this[a22_0x576c0c(0xdb)],this[a22_0x576c0c(0x123)],this[a22_0x576c0c(0x11d)]];const a22_0x34540b={};a22_0x34540b[a22_0x576c0c(0xbc)]=a22_0x576c0c(0x107),a22_0x34540b[a22_0x576c0c(0xbf)]=a22_0x576c0c(0xe9);const a22_0x5b2079={};a22_0x5b2079[a22_0x576c0c(0xbc)]='browserstack:service',a22_0x5b2079['Value']=a22_0x576c0c(0xc7);const common_hst_tags_list=[a22_0x34540b,a22_0x5b2079];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x576c0c(0xcb)][a22_0x576c0c(0xe1)]['split'](',');parsedTags[a22_0x576c0c(0xdf)](_0x522cdc=>{const _0x27158a=a22_0x576c0c,_0x2fe547=_0x522cdc['split'](':'),_0x1a7b88={};_0x1a7b88[_0x27158a(0xbc)]=_0x2fe547[0x0],_0x1a7b88[_0x27158a(0xbf)]=_0x2fe547[0x1],common_hst_tags_list[_0x27158a(0xff)](_0x1a7b88);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x4d2cb0={};a22_0x4d2cb0[a22_0x576c0c(0x107)]=a22_0x576c0c(0xe9),a22_0x4d2cb0[a22_0x576c0c(0x108)]=a22_0x576c0c(0xc7),exports[a22_0x576c0c(0xe5)]=a22_0x4d2cb0,exports[a22_0x576c0c(0x11a)]=[this[a22_0x576c0c(0xdb)]];const a22_0x4b5ff4={};function a22_0xb20c(){const _0x34ed1a=['\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','forEach','CLI_RUN_STARTED','TURBOSCALE_CUSTOM_TAGS','resourceInfo','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','ALL_SUPPORTED_CLOUD_PROVIDERS','HST_CLUSTER_TAGS','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','808777fkttRP','BS_API_URL','BrowserStack','16kojRoZ','9057125lnneOq','grid-api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','warning','BROWSERSTACK_ENV','init','AG_API_URL','error','136IgjzYb','CLOUD_PROVIDER','browserstack-turboscale-grid','DASHBOARD_ENDPOINT','config','high-scale-grid','BSTACK-ATS-CLUSTER-AUTOSCALER','info','INFO','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','gridUrl','LINK_MESSAGE','push','LOG','list','staging','REGION','WS_EVENTS','HELP_FOOTER_MESSAGE','us-east-1','browserstack:managedBy','browserstack:service','CP_CONFIG_FILE','log','GRID_URL','2303GnNsiU','pre-prod','CLI_RUN_FINISHED','messageTypes','33406362EvjCLn','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','[REDACTED]','create','grid.browserstack.com','RAW_ARGS_REGEX','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','stop','SUPPORTED_CLOUD_PROVIDERS','642591RgOkKX','746145KfXaYa','GCP','global_registry','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','WS_ENDPOINT','RESOURCES','BSTACK-ATS-CLUSTER','AZURE','WARNING','17810110cmbvQB','configure','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','IAM_USER_NAME','REDACTED','BSTACK-ATS-CLUSTER-HUB-HA','aws','grid-devhst.bsstag.com','DEFAULT_GRID_NAME','connect','HELP_HEADER_MESSAGE','BrowserStackIAMUser','Key','CLI_ARGS_REGEX','gridProfile','Value','3084eaCfvh','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLUSTER','grid-profile','CLUSTER_HUB_HA_STACK_NAME','api.browserstack.com','SUCCESS','BrowserStack-Automate-TurboScale','pre_check','unknown','high-scale-grid-cluster','env','DEFAULT_CLUSTER_DETAILS','CLUSTER_AUTOSCALER_STACK_NAME','cliRunFinished','api-devhst.bsstag.com','gcp','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','pre-check','UNKNOWN','4qAzBLC','dotenv','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','stag','azure','root','prod','AWS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','success'];a22_0xb20c=function(){return _0x34ed1a;};return a22_0xb20c();}a22_0x4b5ff4[a22_0x576c0c(0x100)]=a22_0x576c0c(0x10a),a22_0x4b5ff4[a22_0x576c0c(0x121)]=a22_0x576c0c(0xe2),a22_0x4b5ff4[a22_0x576c0c(0x10b)]=a22_0x576c0c(0xfd),a22_0x4b5ff4[a22_0x576c0c(0xe0)]='cliRunStarted',a22_0x4b5ff4[a22_0x576c0c(0x10e)]=a22_0x576c0c(0xce),exports[a22_0x576c0c(0x104)]=a22_0x4b5ff4,exports[a22_0x576c0c(0x11e)]={},exports[a22_0x576c0c(0xfe)]=a22_0x576c0c(0x11f);const a22_0x2bb7b0={};a22_0x2bb7b0[a22_0x576c0c(0xd9)]=a22_0x576c0c(0xd6)+this['LINK_MESSAGE'],a22_0x2bb7b0[a22_0x576c0c(0xf0)]=a22_0x576c0c(0xfc)+this['LINK_MESSAGE'],a22_0x2bb7b0[a22_0x576c0c(0x126)]=a22_0x576c0c(0xc1)+this[a22_0x576c0c(0xfe)],a22_0x2bb7b0[a22_0x576c0c(0x115)]=a22_0x576c0c(0x127)+this['LINK_MESSAGE'],a22_0x2bb7b0[a22_0x576c0c(0x101)]={},a22_0x2bb7b0['delete']=a22_0x576c0c(0xde)+this[a22_0x576c0c(0xfe)],a22_0x2bb7b0[a22_0x576c0c(0xb9)]=a22_0x576c0c(0xe3)+this['LINK_MESSAGE'],a22_0x2bb7b0['start']=a22_0x576c0c(0xdc)+this[a22_0x576c0c(0xfe)],a22_0x2bb7b0[a22_0x576c0c(0x119)]=a22_0x576c0c(0x113)+this['LINK_MESSAGE'],a22_0x2bb7b0[a22_0x576c0c(0xc8)]=a22_0x576c0c(0xd1)+this['LINK_MESSAGE'],a22_0x2bb7b0[a22_0x576c0c(0x101)]['root']=a22_0x576c0c(0xed)+this[a22_0x576c0c(0xfe)],a22_0x2bb7b0[a22_0x576c0c(0x101)][a22_0x576c0c(0x112)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x576c0c(0xfe)],a22_0x2bb7b0[a22_0x576c0c(0x101)][a22_0x576c0c(0xbe)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x576c0c(0xfe)],exports[a22_0x576c0c(0xba)]=a22_0x2bb7b0,exports[a22_0x576c0c(0x105)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4cb592={};a22_0x4cb592[a22_0x576c0c(0xc6)]=a22_0x576c0c(0xdd),a22_0x4cb592['ERROR']=a22_0x576c0c(0xf2),a22_0x4cb592[a22_0x576c0c(0xfb)]=a22_0x576c0c(0xfa),a22_0x4cb592[a22_0x576c0c(0x124)]=a22_0x576c0c(0xee),a22_0x4cb592[a22_0x576c0c(0xd3)]=a22_0x576c0c(0xc9),a22_0x4cb592['NULL']=null,exports[a22_0x576c0c(0x10f)]=a22_0x4cb592,exports[a22_0x576c0c(0xbd)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x576c0c(0x117)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x576c0c(0xb4)]=a22_0x576c0c(0x114);const a22_0x6a57a8={};a22_0x6a57a8[a22_0x576c0c(0xc3)]=a22_0x576c0c(0xe6);const a22_0xc98d14={};a22_0xc98d14[a22_0x576c0c(0xd2)]=a22_0x6a57a8,exports['MessageDescription']=a22_0xc98d14,exports['TRIAL_GRID_URL']=a22_0x576c0c(0x118);const a22_0x513ddd={};function a22_0x51ca(_0x4eb86b,_0x1bff80){const _0xb20cc1=a22_0xb20c();return a22_0x51ca=function(_0x51ca18,_0x4b03ab){_0x51ca18=_0x51ca18-0xb4;let _0x22290f=_0xb20cc1[_0x51ca18];return _0x22290f;},a22_0x51ca(_0x4eb86b,_0x1bff80);}a22_0x513ddd[a22_0x576c0c(0xc2)]=a22_0x576c0c(0xca),a22_0x513ddd[a22_0x576c0c(0xf4)]=a22_0x576c0c(0xb6),a22_0x513ddd[a22_0x576c0c(0x103)]=a22_0x576c0c(0x106),exports[a22_0x576c0c(0xcc)]=a22_0x513ddd;
|
package/ats/src/config/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a23_0x426c(){const _0x4ff0b2=['timestamp','printf','2312790SwHMul','YYYY-MM-DD\x20HH:mm:ss','console.info','2lPVIcC','Console','existsSync','createLogger','debug','9rWzhmO','path','events.log','name','512663xpWjHK','colorize','File','winston','1081292gwBChF','level','\x20-\x20','log','5826597wikYhO','15DJwXQK','format','5932664fhMggr','2453475FWqFKx','mkdirSync','combine','transports','13861180HenOeZ','join'];a23_0x426c=function(){return _0x4ff0b2;};return a23_0x426c();}const a23_0x212748=a23_0x537f;(function(_0x3113c8,_0x1c1864){const _0x1d010c=a23_0x537f,_0x3c9f43=_0x3113c8();while(!![]){try{const _0x2adba3=parseInt(_0x1d010c(0x84))/0x1*(parseInt(_0x1d010c(0x7b))/0x2)+parseInt(_0x1d010c(0x90))/0x3+-parseInt(_0x1d010c(0x88))/0x4*(-parseInt(_0x1d010c(0x8d))/0x5)+-parseInt(_0x1d010c(0x98))/0x6+parseInt(_0x1d010c(0x8c))/0x7+parseInt(_0x1d010c(0x8f))/0x8*(-parseInt(_0x1d010c(0x80))/0x9)+-parseInt(_0x1d010c(0x94))/0xa;if(_0x2adba3===_0x1c1864)break;else _0x3c9f43['push'](_0x3c9f43['shift']());}catch(_0x49f92b){_0x3c9f43['push'](_0x3c9f43['shift']());}}}(a23_0x426c,0x70776));const winston=require(a23_0x212748(0x87)),fs=require('fs'),path=require(a23_0x212748(0x81)),logDir=a23_0x212748(0x8b);!fs[a23_0x212748(0x7d)](logDir)&&fs[a23_0x212748(0x91)](logDir);function a23_0x537f(_0x75f2b6,_0x151b1d){const _0x426c7b=a23_0x426c();return a23_0x537f=function(_0x537fd8,_0x1f8174){_0x537fd8=_0x537fd8-0x79;let _0x437513=_0x426c7b[_0x537fd8];return _0x437513;},a23_0x537f(_0x75f2b6,_0x151b1d);}const a23_0x3f74c8={};a23_0x3f74c8[a23_0x212748(0x8e)]=a23_0x212748(0x79);const a23_0x29fb84={};a23_0x29fb84['level']=!![];const a23_0x1f2366={};a23_0x1f2366[a23_0x212748(0x83)]=a23_0x212748(0x7a),exports['logger']=new winston[(a23_0x212748(0x7e))]({'format':winston['format'][a23_0x212748(0x92)](winston[a23_0x212748(0x8e)][a23_0x212748(0x96)](a23_0x3f74c8),winston['format'][a23_0x212748(0x85)](a23_0x29fb84),winston[a23_0x212748(0x8e)][a23_0x212748(0x97)](_0x41b0ec=>_0x41b0ec[a23_0x212748(0x96)]+a23_0x212748(0x8a)+_0x41b0ec[a23_0x212748(0x89)]+':\x20'+_0x41b0ec['message'])),'transports':[new winston[(a23_0x212748(0x93))][(a23_0x212748(0x7c))](a23_0x1f2366),new winston[(a23_0x212748(0x93))][(a23_0x212748(0x86))]({'filename':path[a23_0x212748(0x95)](logDir,a23_0x212748(0x82)),'level':a23_0x212748(0x7f)})]});const winstonFileLoggerParams={'transports':[new winston['transports']['File']({'filename':path[a23_0x212748(0x95)](logDir,'usage.log'),'level':a23_0x212748(0x7f)})]};exports['fileLogger']=new winston[(a23_0x212748(0x7e))](winstonFileLoggerParams);
|
package/ats/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a24_0x36c197=a24_0x36ae;(function(_0x517d00,_0xc15b8d){const _0x161550=a24_0x36ae,_0x576151=_0x517d00();while(!![]){try{const _0x3d13cb=parseInt(_0x161550(0x114))/0x1*(parseInt(_0x161550(0x10b))/0x2)+parseInt(_0x161550(0x10a))/0x3+-parseInt(_0x161550(0x109))/0x4+parseInt(_0x161550(0x10d))/0x5+-parseInt(_0x161550(0x112))/0x6+-parseInt(_0x161550(0x10e))/0x7+parseInt(_0x161550(0x106))/0x8;if(_0x3d13cb===_0xc15b8d)break;else _0x576151['push'](_0x576151['shift']());}catch(_0x39b11b){_0x576151['push'](_0x576151['shift']());}}}(a24_0x6d58,0x2a659));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x36c197(0x116));process[a24_0x36c197(0x115)][a24_0x36c197(0x105)]=0x1;function run(_0x1a8225){const _0x468ba9=a24_0x36c197,_0x4f7912={};_0x4f7912[_0x468ba9(0x110)]=_0x468ba9(0x117),_0x4f7912[_0x468ba9(0x10f)]=_0x468ba9(0x113);const _0x2943e2=_0x4f7912;_0x1a8225[_0x468ba9(0x10c)](HELP_HEADER_MESSAGE[_0x468ba9(0x108)])['commandDir'](_0x2943e2[_0x468ba9(0x110)])[_0x468ba9(0x111)]()['help'](_0x2943e2[_0x468ba9(0x10f)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0x6d58(){const _0x19b5b5=['167822jsMxrK','env','./config/constants','commands','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1446536TGiGAo','exports','root','940332QdVIMz','296568sNNSCI','4yszoVN','usage','1052405jKsJFh','1717611erGEjb','snOUg','YVQlG','demandCommand','1030110ZEKknJ','help'];a24_0x6d58=function(){return _0x19b5b5;};return a24_0x6d58();}function a24_0x36ae(_0x1da495,_0x508ed1){const _0x6d58dd=a24_0x6d58();return a24_0x36ae=function(_0x36ae90,_0x3814b6){_0x36ae90=_0x36ae90-0x105;let _0xdafee3=_0x6d58dd[_0x36ae90];return _0xdafee3;},a24_0x36ae(_0x1da495,_0x508ed1);}module[a24_0x36c197(0x107)]=run;
|