browserstack-node-sdk 1.50.0 → 1.50.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.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x3d7807=a15_0x1be1;(function(_0xad755e,_0x1354ae){const _0x37eb5b=a15_0x1be1,_0x9519c1=_0xad755e();while(!![]){try{const _0x56f687=parseInt(_0x37eb5b(0xeb))/0x1*(-parseInt(_0x37eb5b(0xf8))/0x2)+-parseInt(_0x37eb5b(0xec))/0x3*(-parseInt(_0x37eb5b(0xd6))/0x4)+-parseInt(_0x37eb5b(0xd7))/0x5+parseInt(_0x37eb5b(0xfe))/0x6+parseInt(_0x37eb5b(0xd8))/0x7+-parseInt(_0x37eb5b(0xf3))/0x8+parseInt(_0x37eb5b(0xca))/0x9;if(_0x56f687===_0x1354ae)break;else _0x9519c1['push'](_0x9519c1['shift']());}catch(_0x70c05d){_0x9519c1['push'](_0x9519c1['shift']());}}}(a15_0x89ae,0x772b1));const fs=require('fs'),got=require(a15_0x3d7807(0xed)),{table}=require(a15_0x3d7807(0xf2)),{v4:uuidv4}=require(a15_0x3d7807(0xf0)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3d7807(0x113)),{getCredentialsPath,getAuthHeader}=require(a15_0x3d7807(0x117)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x3d7807(0xea)]=a15_0x3d7807(0x11b),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x3d7807(0xc7)]=function(_0x4301bb){const _0x29bb91=a15_0x3d7807,_0x36eb05={};_0x36eb05[_0x29bb91(0x104)]=_0x29bb91(0xce),_0x36eb05['cOSId']=_0x29bb91(0xef),_0x36eb05['SngJI']=_0x29bb91(0xc8);const _0x1ce9e7=_0x36eb05,_0x5bad79={};_0x5bad79[_0x29bb91(0xdd)]=_0x1ce9e7[_0x29bb91(0x104)],_0x5bad79[_0x29bb91(0xf9)]=_0x1ce9e7[_0x29bb91(0xe4)];const _0x312001={};return _0x312001['all-grids']=_0x5bad79,_0x4301bb['usage'](HELP_HEADER_MESSAGE[_0x29bb91(0xcd)][_0x29bb91(0xee)])[_0x29bb91(0xcc)](HELP_FOOTER_MESSAGE)['options'](_0x312001)[_0x29bb91(0xc8)](_0x1ce9e7['SngJI'])[_0x29bb91(0x106)];},exports[a15_0x3d7807(0x11c)]=async function(_0x4d929){const _0x3d94f9=a15_0x3d7807,_0x5e585a={'oExJR':function(_0xf4b5d1){return _0xf4b5d1();},'iwQSv':_0x3d94f9(0x10f),'EzAWq':function(_0x5f242e,_0x4a8d7a,_0x59d8d4,_0x313311,_0x5946a1,_0x5e7b6a,_0x3d2d77){return _0x5f242e(_0x4a8d7a,_0x59d8d4,_0x313311,_0x5946a1,_0x5e7b6a,_0x3d2d77);},'JOlSu':_0x3d94f9(0x10d),'WUXAf':_0x3d94f9(0x10b),'VuUbC':_0x3d94f9(0xd3),'qVgmM':function(_0x52295e,_0x558b7f,_0x18a0b5){return _0x52295e(_0x558b7f,_0x18a0b5);},'YVneD':function(_0x3b2bd9,_0x54f282,_0x4d82b6,_0xe1247b,_0x4b37b8,_0x5ab51c,_0x5b0b1a){return _0x3b2bd9(_0x54f282,_0x4d82b6,_0xe1247b,_0x4b37b8,_0x5ab51c,_0x5b0b1a);},'wtYxr':function(_0x196b3d,_0x1e1715,_0x69c3ef){return _0x196b3d(_0x1e1715,_0x69c3ef);},'pWghi':function(_0x19c5a0,_0x3252f0){return _0x19c5a0!==_0x3252f0;},'xHOsm':function(_0x539008,_0x28a002){return _0x539008!==_0x28a002;},'GtpBw':function(_0x57c095,_0x140651){return _0x57c095===_0x140651;},'zKkLX':_0x3d94f9(0xfd),'yrtyb':_0x3d94f9(0x108),'piBbt':'grid-name','cTqwn':_0x3d94f9(0xe2),'XnHzQ':_0x3d94f9(0x105),'BQYdS':_0x3d94f9(0xfc),'ftYnE':_0x3d94f9(0xd0),'fdOcc':function(_0x1c15da,_0x32727e){return _0x1c15da(_0x32727e);},'GFRnz':_0x3d94f9(0xe1),'Phqhv':_0x3d94f9(0xe3),'MWxGR':function(_0x1ecda3,_0x131f84,_0x1eca67,_0x30f17e,_0x2abca9,_0x386fc5,_0x1d617a){return _0x1ecda3(_0x131f84,_0x1eca67,_0x30f17e,_0x2abca9,_0x386fc5,_0x1d617a);},'NbBtG':_0x3d94f9(0x110),'RXNpi':function(_0x1c0380,_0x4673a3,_0x3281f2,_0x217afa,_0x2a8717,_0x25d70e,_0x2b4e42){return _0x1c0380(_0x4673a3,_0x3281f2,_0x217afa,_0x2a8717,_0x25d70e,_0x2b4e42);},'LyrcP':_0x3d94f9(0x116)};try{global_registry[_0x3d94f9(0x103)]=_0x5e585a['oExJR'](uuidv4);!fs[_0x3d94f9(0xd5)](_0x5e585a[_0x3d94f9(0xde)](getCredentialsPath))&&(console[_0x3d94f9(0xfb)](_0x5e585a[_0x3d94f9(0x115)]),await _0x5e585a[_0x3d94f9(0xe7)](sendInstrumentationEvent,_0x4d929,_0x5e585a['JOlSu'],messageTypes[_0x3d94f9(0xe5)],_0x5e585a[_0x3d94f9(0xf6)],null,_0x4d929),process[_0x3d94f9(0x102)](0x1));const _0x4da8ac=JSON[_0x3d94f9(0x11e)](fs[_0x3d94f9(0x118)](_0x5e585a[_0x3d94f9(0xde)](getCredentialsPath)));let _0x1b69bf='https://'+AG_API_URL+_0x3d94f9(0x10c);_0x4d929['allGrids']&&(_0x1b69bf=_0x3d94f9(0xdc)+AG_API_URL+'/packages/cli/get-all-grids');const _0x1ff4b6={'method':_0x5e585a[_0x3d94f9(0xf4)],'headers':_0x5e585a[_0x3d94f9(0xdf)](getAuthHeader,_0x4da8ac[_0x3d94f9(0xf5)]['username'],_0x4da8ac[_0x3d94f9(0xf5)][_0x3d94f9(0xe9)]),'throwHttpErrors':![]};global_registry[_0x3d94f9(0xd4)]=_0x4da8ac[_0x3d94f9(0xf5)][_0x3d94f9(0xf7)],global_registry[_0x3d94f9(0xf1)]=_0x4da8ac[_0x3d94f9(0xf5)]['password'],_0x5e585a[_0x3d94f9(0xff)](sendInstrumentationEvent,_0x4d929,_0x5e585a[_0x3d94f9(0x11d)],messageTypes[_0x3d94f9(0xd1)],null,null,_0x4d929);const _0xd9683f=await _0x5e585a[_0x3d94f9(0xe8)](got,_0x1b69bf,_0x1ff4b6);if(_0x5e585a[_0x3d94f9(0x119)](_0xd9683f,null)&&_0x5e585a[_0x3d94f9(0x100)](_0xd9683f,undefined)&&_0x5e585a[_0x3d94f9(0x11a)](_0xd9683f[_0x3d94f9(0xd2)],0xc8)){const _0x50d448=JSON[_0x3d94f9(0x11e)](_0xd9683f[_0x3d94f9(0x111)]);console[_0x3d94f9(0x107)](_0x5e585a[_0x3d94f9(0xe0)]);const _0x53626f=[];_0x53626f[_0x3d94f9(0xc9)]([_0x5e585a[_0x3d94f9(0xfa)],_0x5e585a['piBbt'],_0x5e585a[_0x3d94f9(0xdb)],_0x5e585a['XnHzQ'],_0x5e585a['BQYdS'],_0x5e585a[_0x3d94f9(0x114)]]),_0x50d448[_0x3d94f9(0xda)](_0x29307d=>{const _0x5bbcb=_0x3d94f9;_0x53626f['push']([_0x29307d['id'],_0x29307d[_0x5bbcb(0xd9)],_0x29307d[_0x5bbcb(0xe2)],_0x29307d[_0x5bbcb(0x105)],_0x29307d[_0x5bbcb(0xfc)],_0x29307d[_0x5bbcb(0xcf)]]);}),console[_0x3d94f9(0x107)](_0x5e585a[_0x3d94f9(0x109)](table,_0x53626f)),process[_0x3d94f9(0x102)](0x0);}_0x5e585a[_0x3d94f9(0x11a)](_0xd9683f['statusCode'],0x191)&&(console[_0x3d94f9(0xfb)](_0x5e585a['GFRnz']),await _0x5e585a[_0x3d94f9(0xe7)](sendInstrumentationEvent,_0x4d929,_0x5e585a[_0x3d94f9(0x11d)],messageTypes['ERROR'],_0x5e585a[_0x3d94f9(0x10e)],null,_0x4d929),process['exit'](0x1)),console[_0x3d94f9(0xfb)](_0x3d94f9(0x10a)+JSON[_0x3d94f9(0xe6)](_0xd9683f)),await _0x5e585a['MWxGR'](sendInstrumentationEvent,_0x4d929,_0x5e585a['JOlSu'],messageTypes['ERROR'],_0x5e585a[_0x3d94f9(0x11f)],_0xd9683f,_0x4d929),process[_0x3d94f9(0x102)](0x1);}catch(_0x38bc99){console['error'](_0x3d94f9(0x112)+_0x38bc99[_0x3d94f9(0xcb)]),await _0x5e585a[_0x3d94f9(0x101)](sendInstrumentationEvent,_0x4d929,_0x5e585a[_0x3d94f9(0x11d)],messageTypes[_0x3d94f9(0xe5)],_0x5e585a['LyrcP'],_0x38bc99,_0x4d929),process[_0x3d94f9(0x102)](0x1);}};function a15_0x1be1(_0x19cfd9,_0x3cc56b){const _0x89ae67=a15_0x89ae();return a15_0x1be1=function(_0x1be1df,_0x31780b){_0x1be1df=_0x1be1df-0xc7;let _0x4a2bf9=_0x89ae67[_0x1be1df];return _0x4a2bf9;},a15_0x1be1(_0x19cfd9,_0x3cc56b);}function a15_0x89ae(){const _0x5797d8=['GtpBw','grids','handler','JOlSu','parse','NbBtG','builder','help','push','4721652xhBhCT','stack','epilogue','list','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','clusterName','cluster-name','INFO','statusCode','GET','bstackUsername','existsSync','12LOJIxJ','2493690NuOylW','2139536FUhcmU','name','forEach','cTqwn','https://','description','oExJR','qVgmM','zKkLX','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','status','unauthorised','cOSId','ERROR','stringify','EzAWq','wtYxr','password','command','164qObAqD','104610UrLpJk','got','grid','boolean','uuid','bstackAccesskey','table','2022592anePjF','VuUbC','Browserstack','WUXAf','username','1730jUomWP','type','yrtyb','error','queued','\x0aFound\x20the\x20following\x20grids:\x0a','2679894SfXbth','YVneD','xHOsm','RXNpi','exit','requestId','QBWha','running','argv','log','grid-id','fdOcc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','/packages/cli/get-grids','list-grids-called','Phqhv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','body','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../config/constants','ftYnE','iwQSv','unknown-error','../../utils/utilityMethods','readFileSync','pWghi'];a15_0x89ae=function(){return _0x5797d8;};return a15_0x89ae();}
1
+ const a15_0x11b26c=a15_0x10cd;(function(_0x58a8cc,_0x572d31){const _0x282e81=a15_0x10cd,_0x226beb=_0x58a8cc();while(!![]){try{const _0x1dee82=-parseInt(_0x282e81(0x1c4))/0x1+parseInt(_0x282e81(0x216))/0x2*(-parseInt(_0x282e81(0x1f2))/0x3)+parseInt(_0x282e81(0x219))/0x4+parseInt(_0x282e81(0x205))/0x5+-parseInt(_0x282e81(0x1c7))/0x6+parseInt(_0x282e81(0x1ed))/0x7+parseInt(_0x282e81(0x21b))/0x8;if(_0x1dee82===_0x572d31)break;else _0x226beb['push'](_0x226beb['shift']());}catch(_0x1aff9c){_0x226beb['push'](_0x226beb['shift']());}}}(a15_0x3122,0xd973e));function a15_0x10cd(_0x187b67,_0x5c182c){const _0x31228f=a15_0x3122();return a15_0x10cd=function(_0x10cd7b,_0x596ca6){_0x10cd7b=_0x10cd7b-0x1c4;let _0x558685=_0x31228f[_0x10cd7b];return _0x558685;},a15_0x10cd(_0x187b67,_0x5c182c);}const fs=require('fs'),got=require(a15_0x11b26c(0x204)),{table}=require(a15_0x11b26c(0x206)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x11b26c(0x209)),{sendInstrumentationEvent}=require(a15_0x11b26c(0x1f1));exports[a15_0x11b26c(0x201)]=a15_0x11b26c(0x1d6),exports[a15_0x11b26c(0x1d4)]=a15_0x11b26c(0x215),exports['builder']=function(_0x4f96e2){const _0x338e18=a15_0x11b26c,_0x493766={};_0x493766['OisoC']=_0x338e18(0x1c9),_0x493766['sNXxU']=_0x338e18(0x1df),_0x493766[_0x338e18(0x1d2)]=_0x338e18(0x1f3);const _0xcd4f27=_0x493766,_0x33f250={};_0x33f250[_0x338e18(0x1e4)]=_0xcd4f27[_0x338e18(0x1e6)],_0x33f250[_0x338e18(0x1f5)]=_0xcd4f27[_0x338e18(0x1e8)];const _0x55d3be={};return _0x55d3be[_0x338e18(0x1ce)]=_0x33f250,_0x4f96e2['usage'](HELP_HEADER_MESSAGE[_0x338e18(0x1f0)][_0x338e18(0x1e9)])[_0x338e18(0x1eb)](HELP_FOOTER_MESSAGE)['options'](_0x55d3be)['help'](_0xcd4f27[_0x338e18(0x1d2)])[_0x338e18(0x20f)];},exports[a15_0x11b26c(0x1cc)]=async function(_0x3e3acc){const _0x5c8658=a15_0x11b26c,_0x3724d0={'KKFAb':function(_0x28acc7){return _0x28acc7();},'lqHHs':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wUWMw':function(_0x3f4922,_0x14808f,_0x5c2113,_0x24c3ac,_0x1e6cf7,_0x10cab0,_0x2a4308){return _0x3f4922(_0x14808f,_0x5c2113,_0x24c3ac,_0x1e6cf7,_0x10cab0,_0x2a4308);},'Ixmty':_0x5c8658(0x1f7),'HIXrP':_0x5c8658(0x1e2),'lQIgZ':_0x5c8658(0x20c),'JCXld':function(_0x52a0e8,_0x2d1f84,_0x4e05fa){return _0x52a0e8(_0x2d1f84,_0x4e05fa);},'xiUNu':function(_0x317837,_0x3e6069,_0x135dbf,_0x3bd205,_0x52227c,_0xfc3226,_0x1e1dcb){return _0x317837(_0x3e6069,_0x135dbf,_0x3bd205,_0x52227c,_0xfc3226,_0x1e1dcb);},'jhGmP':function(_0x3d18ba,_0x470c8,_0x32980d){return _0x3d18ba(_0x470c8,_0x32980d);},'MsARI':function(_0x3dc002,_0x5b47df){return _0x3dc002!==_0x5b47df;},'YsDfB':function(_0x51c10f,_0x39572e){return _0x51c10f!==_0x39572e;},'MDezt':function(_0x512679,_0x20cbd0){return _0x512679===_0x20cbd0;},'jVFLM':_0x5c8658(0x1fc),'xVSro':_0x5c8658(0x208),'VPsHz':_0x5c8658(0x1dc),'HxbPH':_0x5c8658(0x213),'eJNrD':'running','grbmH':'queued','VyhHY':_0x5c8658(0x1d9),'cAxwU':function(_0x68f531,_0x20f08d){return _0x68f531(_0x20f08d);},'TXJGp':function(_0x61c9d4,_0x263c4a){return _0x61c9d4===_0x263c4a;},'nfLdP':_0x5c8658(0x1e0),'HiPZw':_0x5c8658(0x20d),'yuPdt':_0x5c8658(0x1cf),'WKyIh':'unknown-error'};try{global_registry[_0x5c8658(0x1dd)]=_0x3724d0[_0x5c8658(0x1d8)](uuidv4);!fs[_0x5c8658(0x1d7)](_0x3724d0[_0x5c8658(0x1d8)](getCredentialsPath))&&(console[_0x5c8658(0x1c5)](_0x3724d0[_0x5c8658(0x1fd)]),await _0x3724d0[_0x5c8658(0x1ec)](sendInstrumentationEvent,_0x3e3acc,_0x3724d0[_0x5c8658(0x1c8)],messageTypes[_0x5c8658(0x1ff)],_0x3724d0['HIXrP'],null,_0x3e3acc),process[_0x5c8658(0x1e7)](0x1));const _0x3273d1=JSON['parse'](fs['readFileSync'](_0x3724d0[_0x5c8658(0x1d8)](getCredentialsPath)));let _0x1529b5=_0x5c8658(0x211)+AG_API_URL+_0x5c8658(0x1fe);_0x3e3acc[_0x5c8658(0x1c6)]&&(_0x1529b5='https://'+AG_API_URL+_0x5c8658(0x1cd));const _0x2a439b={'method':_0x3724d0[_0x5c8658(0x1d0)],'headers':_0x3724d0[_0x5c8658(0x217)](getAuthHeader,_0x3273d1[_0x5c8658(0x1f6)]['username'],_0x3273d1['Browserstack'][_0x5c8658(0x20b)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x3273d1['Browserstack'][_0x5c8658(0x1d5)],global_registry[_0x5c8658(0x21c)]=_0x3273d1['Browserstack'][_0x5c8658(0x20b)],_0x3724d0[_0x5c8658(0x207)](sendInstrumentationEvent,_0x3e3acc,_0x3724d0[_0x5c8658(0x1c8)],messageTypes['INFO'],null,null,_0x3e3acc);const _0x45edc3=await _0x3724d0[_0x5c8658(0x20a)](got,_0x1529b5,_0x2a439b);if(_0x3724d0[_0x5c8658(0x218)](_0x45edc3,null)&&_0x3724d0[_0x5c8658(0x1f4)](_0x45edc3,undefined)&&_0x3724d0[_0x5c8658(0x1f8)](_0x45edc3[_0x5c8658(0x20e)],0xc8)){const _0x41b4ee=JSON[_0x5c8658(0x1fb)](_0x45edc3[_0x5c8658(0x1e1)]);console[_0x5c8658(0x1e5)](_0x3724d0[_0x5c8658(0x1de)]);const _0x43387f=[];_0x43387f[_0x5c8658(0x1d3)]([_0x3724d0[_0x5c8658(0x1ca)],_0x3724d0[_0x5c8658(0x1da)],_0x3724d0[_0x5c8658(0x1e3)],_0x3724d0['eJNrD'],_0x3724d0[_0x5c8658(0x1cb)],_0x3724d0[_0x5c8658(0x1ee)]]),_0x41b4ee[_0x5c8658(0x1ea)](_0xe98622=>{const _0x5da333=_0x5c8658;_0x43387f[_0x5da333(0x1d3)]([_0xe98622['id'],_0xe98622['name'],_0xe98622[_0x5da333(0x213)],_0xe98622[_0x5da333(0x1d1)],_0xe98622[_0x5da333(0x202)],_0xe98622[_0x5da333(0x1db)]]);}),console[_0x5c8658(0x1e5)](_0x3724d0[_0x5c8658(0x200)](table,_0x43387f)),process[_0x5c8658(0x1e7)](0x0);}_0x3724d0[_0x5c8658(0x214)](_0x45edc3['statusCode'],0x191)&&(console[_0x5c8658(0x1c5)](_0x3724d0[_0x5c8658(0x21a)]),await _0x3724d0[_0x5c8658(0x1ec)](sendInstrumentationEvent,_0x3e3acc,_0x3724d0[_0x5c8658(0x1c8)],messageTypes[_0x5c8658(0x1ff)],_0x3724d0[_0x5c8658(0x212)],null,_0x3e3acc),process['exit'](0x1)),console['error'](_0x5c8658(0x1fa)+JSON[_0x5c8658(0x210)](_0x45edc3)),await _0x3724d0[_0x5c8658(0x1ec)](sendInstrumentationEvent,_0x3e3acc,_0x3724d0['Ixmty'],messageTypes[_0x5c8658(0x1ff)],_0x3724d0[_0x5c8658(0x203)],_0x45edc3,_0x3e3acc),process['exit'](0x1);}catch(_0x37fa4a){console[_0x5c8658(0x1c5)](_0x5c8658(0x1f9)+_0x37fa4a['stack']),await _0x3724d0['wUWMw'](sendInstrumentationEvent,_0x3e3acc,_0x3724d0[_0x5c8658(0x1c8)],messageTypes[_0x5c8658(0x1ff)],_0x3724d0[_0x5c8658(0x1ef)],_0x37fa4a,_0x3e3acc),process[_0x5c8658(0x1e7)](0x1);}};function a15_0x3122(){const _0x1f8575=['Failed\x20to\x20list\x20resources!\x20Error:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','parse','\x0aFound\x20the\x20following\x20grids:\x0a','lqHHs','/packages/cli/get-grids','ERROR','cAxwU','command','queued','yuPdt','got','4071900hErLMe','table','xiUNu','grid-id','../../utils/utilityMethods','jhGmP','password','GET','unauthorised','statusCode','argv','stringify','https://','HiPZw','status','TXJGp','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','377854iBeQwn','JCXld','MsARI','6887756rGzTIX','nfLdP','10457320lutRZY','bstackAccesskey','1469779jcXqfC','error','allGrids','3809490xfkeoW','Ixmty','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','xVSro','grbmH','handler','/packages/cli/get-all-grids','all-grids','server-error','lQIgZ','running','EyVTP','push','desc','username','grids','existsSync','KKFAb','cluster-name','VPsHz','clusterName','grid-name','requestId','jVFLM','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','body','init-not-called','HxbPH','description','log','OisoC','exit','sNXxU','grid','forEach','epilogue','wUWMw','5965673bULjjL','VyhHY','WKyIh','list','../../utils/instrumentationUtils','27yxIOkr','help','YsDfB','type','Browserstack','list-grids-called','MDezt'];a15_0x3122=function(){return _0x1f8575;};return a15_0x3122();}
@@ -1 +1 @@
1
- const a16_0x42c144=a16_0x2048;(function(_0x41aa96,_0x496e0f){const _0x2fe02b=a16_0x2048,_0x472fd9=_0x41aa96();while(!![]){try{const _0x2a3e1e=-parseInt(_0x2fe02b(0x117))/0x1*(-parseInt(_0x2fe02b(0x123))/0x2)+parseInt(_0x2fe02b(0x115))/0x3*(-parseInt(_0x2fe02b(0x11a))/0x4)+-parseInt(_0x2fe02b(0x118))/0x5+parseInt(_0x2fe02b(0x11f))/0x6+-parseInt(_0x2fe02b(0x11b))/0x7+parseInt(_0x2fe02b(0x125))/0x8+parseInt(_0x2fe02b(0x126))/0x9;if(_0x2a3e1e===_0x496e0f)break;else _0x472fd9['push'](_0x472fd9['shift']());}catch(_0x445029){_0x472fd9['push'](_0x472fd9['shift']());}}}(a16_0x58f3,0xdcd67));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x2048(_0x24444f,_0x49b1d1){const _0x58f321=a16_0x58f3();return a16_0x2048=function(_0x204856,_0x3f98e8){_0x204856=_0x204856-0x111;let _0x1e6c83=_0x58f321[_0x204856];return _0x1e6c83;},a16_0x2048(_0x24444f,_0x49b1d1);}exports[a16_0x42c144(0x111)]=a16_0x42c144(0x112),exports[a16_0x42c144(0x119)]=a16_0x42c144(0x114),exports[a16_0x42c144(0x116)]=function(_0x4d4b59){const _0x2480d0=a16_0x42c144,_0x596606={};_0x596606[_0x2480d0(0x124)]=_0x2480d0(0x122),_0x596606[_0x2480d0(0x11e)]='help';const _0x1c57e9=_0x596606;return _0x4d4b59[_0x2480d0(0x11c)](HELP_HEADER_MESSAGE[_0x2480d0(0x11d)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2480d0(0x113)](_0x1c57e9['tyAuZ'])[_0x2480d0(0x121)]()['recommendCommands']()['strict']()[_0x2480d0(0x120)](_0x1c57e9[_0x2480d0(0x11e)]);},exports['handler']=function(_0x1bc545){};function a16_0x58f3(){const _0x11f000=['usage','pre_check','NnSQW','2991942PyDuKq','help','demandCommand','precheck_commands','2pSiohY','tyAuZ','8793616CpQCSV','2551266MtXwYb','command','pre-check','commandDir','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3ugqpvI','builder','223697QCjyAj','2081190zJCglm','desc','1665968sIgqWR','2574243gkmaMF'];a16_0x58f3=function(){return _0x11f000;};return a16_0x58f3();}
1
+ const a16_0x483440=a16_0x3acb;function a16_0x2989(){const _0x33f3a6=['8911110YIipqq','QtPhI','1315251uNYYxI','precheck_commands','6411RWWrhi','usage','desc','help','14FybnUm','825368UZMQww','990cSPJCh','demandCommand','4403943XHhMsz','strict','137764uUaMnq','4615740BIbXzt','handler','command','jaAYu','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','5yjRktp','epilogue','builder','298YcjMRo'];a16_0x2989=function(){return _0x33f3a6;};return a16_0x2989();}(function(_0x169695,_0x28d873){const _0x1619ba=a16_0x3acb,_0x32bf11=_0x169695();while(!![]){try{const _0x2a8e7c=-parseInt(_0x1619ba(0x1f4))/0x1*(-parseInt(_0x1619ba(0x207))/0x2)+parseInt(_0x1619ba(0x1fc))/0x3+-parseInt(_0x1619ba(0x1ff))/0x4*(parseInt(_0x1619ba(0x204))/0x5)+-parseInt(_0x1619ba(0x208))/0x6+parseInt(_0x1619ba(0x1f8))/0x7*(-parseInt(_0x1619ba(0x1f9))/0x8)+parseInt(_0x1619ba(0x1f2))/0x9+-parseInt(_0x1619ba(0x1fa))/0xa*(-parseInt(_0x1619ba(0x1fe))/0xb);if(_0x2a8e7c===_0x28d873)break;else _0x32bf11['push'](_0x32bf11['shift']());}catch(_0x3f4fc7){_0x32bf11['push'](_0x32bf11['shift']());}}}(a16_0x2989,0xeb4bd));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x3acb(_0x15039b,_0x45019f){const _0x2989bb=a16_0x2989();return a16_0x3acb=function(_0x3acb3a,_0x299aec){_0x3acb3a=_0x3acb3a-0x1f1;let _0x53f4d2=_0x2989bb[_0x3acb3a];return _0x53f4d2;},a16_0x3acb(_0x15039b,_0x45019f);}exports[a16_0x483440(0x201)]='pre-check',exports[a16_0x483440(0x1f6)]=a16_0x483440(0x203),exports[a16_0x483440(0x206)]=function(_0x36a0eb){const _0x24c422=a16_0x483440,_0x5bd489={};_0x5bd489['jaAYu']=_0x24c422(0x1f3),_0x5bd489[_0x24c422(0x1f1)]=_0x24c422(0x1f7);const _0x3734fe=_0x5bd489;return _0x36a0eb[_0x24c422(0x1f5)](HELP_HEADER_MESSAGE['pre_check'])[_0x24c422(0x205)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3734fe[_0x24c422(0x202)])[_0x24c422(0x1fb)]()['recommendCommands']()[_0x24c422(0x1fd)]()[_0x24c422(0x1f7)](_0x3734fe[_0x24c422(0x1f1)]);},exports[a16_0x483440(0x200)]=function(_0x21f1e8){};
@@ -1 +1 @@
1
- const a17_0x95eb67=a17_0x2230;(function(_0x2467e7,_0x19419e){const _0x65717=a17_0x2230,_0x2f6843=_0x2467e7();while(!![]){try{const _0x1ca4ec=-parseInt(_0x65717(0x16b))/0x1*(-parseInt(_0x65717(0xbe))/0x2)+parseInt(_0x65717(0xf3))/0x3+-parseInt(_0x65717(0xc5))/0x4*(-parseInt(_0x65717(0x13b))/0x5)+parseInt(_0x65717(0x142))/0x6+parseInt(_0x65717(0x168))/0x7+-parseInt(_0x65717(0xc6))/0x8*(-parseInt(_0x65717(0xda))/0x9)+parseInt(_0x65717(0x90))/0xa*(-parseInt(_0x65717(0x89))/0xb);if(_0x1ca4ec===_0x19419e)break;else _0x2f6843['push'](_0x2f6843['shift']());}catch(_0x316d7f){_0x2f6843['push'](_0x2f6843['shift']());}}}(a17_0xada1,0x9aad4));function a17_0x2230(_0x5c62e1,_0x54a0b2){const _0xada13a=a17_0xada1();return a17_0x2230=function(_0x2230a1,_0x2a1851){_0x2230a1=_0x2230a1-0x87;let _0x497a7e=_0xada13a[_0x2230a1];return _0x497a7e;},a17_0x2230(_0x5c62e1,_0x54a0b2);}function a17_0xada1(){const _0x135e43=['Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','OWkOv','Pre-check\x20running\x20for\x20Cloud\x20-\x20','grid\x20profile\x20flow\x20','<PasswordPlaceholder>','forEach','isTrialGridAccessible','getUTCMinutes','description','FemZF','GXDrK','requestId','tsBwA','QQZGK','kwBXa','fWdJa','SHReC','gridProfile','zNZOc','5TXXdZE','User\x20Access','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','IWsuJ','rYfcR','Error\x20Details:\x0a','throwHttpErrors','5150064oJWXhl','string','type','exit','SSL\x20Configured','WebSocket','UBAQF','TidDR','isCliToolInstalled','command','mWKMs','3|0|1|4|2','stack','UadRm','bstackAccesskey','delay','password','pre-check','IhcFs','name','cNcRM','utf-8','Status:\x20','cloud-provider','getUTCMonth','RRuTW','LTddN','error','../../cloudproviders/utils','clusterRegion','argv','NYfyQ','OUOfC','ZuZaY','DoYYl','uqqrG','sendEventToBackend','Whitelisted\x20browserstack','7467341YTseyb','zlEzJ','Report\x20saved\x20in\x20','183tmLpOq','KRLAs','Failed\x20in\x20pre-check!\x20Error:\x20','INFO','\x20\x20Message:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','response','LOG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','YtnKh','`\x20already\x20exists','LfSFr','IvHcv','sKQuk','vgBoZ','UjCle','.\x20Please\x20provide\x20all\x20required\x20arguments.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','huweR','options','cGHPG','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','653301XtkYAf','kHWsS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','iyIHK','IBzBS','zZcsb','wxwKc','660NjQyEm','N/A','lgyrf','hXezs','fHqwV','HvBEf','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','username','boeCJ','TLSv1_2_client_method','rRVUN','init','\x20===\x0a\x0a','bstackUsername','eMESS','\x20error\x20:\x20','szoiI','CeFvB','Nxchf','qeHEh','DQnHT','Grid\x20profile\x20fetched\x20for\x20pre-check','Cluster\x20','ALCRg','../../utils/instrumentationUtils','connectionTimeout','UASBD','nyJyx','unable\x20to\x20verify\x20if\x20cluster\x20`','QUYmQ','status','writeFileSync','is\x20already\x20present','zRjoF','info','lwkvt','https://','grid','region','DzKrc','qXtxX','Tool\x20Installed','pre-check-grid-profile-empty','GlMPp','clusterName','parse','7918RXFVyr','ERROR','getUTCHours','cloud-provider-not-supported','bedGm','header','error\x20stack\x20:\x20','3003772rqcVwO','8xyluGZ','yFXAv','Message:\x20','jmnBn','\x20\x20Stack:\x20','HNKDo','===\x20Precheck\x20Report\x20-\x20','cloudProvider','ILPGM','message','usage','data','IiJoq','grid-profile','nhOhp','Browserstack','Success','KGova','GtZjJ','sBNbz','1190223gUZrQp','<UsernamePlaceholder>','Failure','Cluster\x20`','accessResp','Lbeqs','pre-check-failed','HvfIL','lGrlV','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','join','stack\x20trace\x20','getUTCDate','XoXUk','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','got','LHkBS','\x20data\x20:\x20','pre_check','/packages/cli/get-all-grid-profiles','`\x20,error\x20:\x20','yfwVP','AcgwR','EMVIA','pre-check-cluster-args-not-passed','3061704iQlTVs','ojZev','find','isTls1_2_SUPPORTED','Setting\x20cloud\x20provider\x20as\x20','ULqnn','xwTLZ','ctcLr','cluster-check-failed-','CCOpY','uKgpV','replace','reconnecting-websocket','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','GHMFw','dWXjR','BuAOP','WcMSU','qpfAC','uhQub','yvVDo','isClusterPresent','epilogue','oSxTR','Ufpog','GET','QVLhk','debug','cluster-name','CLOUD_PROVIDER','../../config/logger','desc','Dewul','push','\x20\x20Code:\x20','pre-check-grid-called','Missing\x20required\x20arguments:\x20','xAEep','length','GlsNa','YKRIx','checkAccess','help','toolInstalledResp',']\x20status\x20:\x20','handler','authHeader','Invalid\x20input.\x20grid\x20profiles:\x20','TQrtS','code','will\x20be\x20created','log/report_','QMVZf'];a17_0xada1=function(){return _0x135e43;};return a17_0xada1();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x95eb67(0xe9)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x95eb67(0xff)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x95eb67(0x111)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x95eb67(0x15e)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x95eb67(0xa8));exports[a17_0x95eb67(0x14b)]=a17_0x95eb67(0xb5),exports[a17_0x95eb67(0x112)]=a17_0x95eb67(0x173),exports['builder']=function(_0x566609){const _0x20872c=a17_0x95eb67,_0x2a45d7={};_0x2a45d7[_0x20872c(0xe7)]=_0x20872c(0x8b),_0x2a45d7['ILPGM']=_0x20872c(0x143),_0x2a45d7['MUiXg']=_0x20872c(0x13d),_0x2a45d7[_0x20872c(0x131)]=_0x20872c(0x96),_0x2a45d7['fWdJa']=_0x20872c(0x17c),_0x2a45d7[_0x20872c(0xea)]=_0x20872c(0x11d);const _0x543dc6=_0x2a45d7,_0x4e4887={};_0x4e4887['description']=_0x543dc6[_0x20872c(0xe7)],_0x4e4887['type']=_0x543dc6[_0x20872c(0xce)];const _0x2c45e7={};_0x2c45e7[_0x20872c(0x130)]=_0x543dc6['MUiXg'],_0x2c45e7['type']=_0x543dc6['ILPGM'];const _0x40f969={};_0x40f969['description']=_0x543dc6[_0x20872c(0x131)],_0x40f969[_0x20872c(0x144)]=_0x543dc6[_0x20872c(0xce)];const _0x577956={};_0x577956[_0x20872c(0x130)]=_0x543dc6[_0x20872c(0x137)],_0x577956['type']=_0x543dc6[_0x20872c(0xce)];const _0xebe981={};return _0xebe981[_0x20872c(0x10f)]=_0x4e4887,_0xebe981[_0x20872c(0x159)]=_0x2c45e7,_0xebe981[_0x20872c(0xb6)]=_0x40f969,_0xebe981[_0x20872c(0xd3)]=_0x577956,_0x566609[_0x20872c(0xd0)](HELP_HEADER_MESSAGE[_0x20872c(0xec)])[_0x20872c(0x109)](HELP_FOOTER_MESSAGE)[_0x20872c(0x17e)](_0xebe981)[_0x20872c(0x11d)](_0x543dc6['LHkBS'])[_0x20872c(0x160)];};async function inputValidation(_0x33300a,_0x418209){const _0x4500e8=a17_0x95eb67,_0x5d69ce={'UjCle':_0x4500e8(0x10f),'reyFA':_0x4500e8(0x8b),'uhQub':_0x4500e8(0x143),'fWMyH':_0x4500e8(0x13d),'IDAZc':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','rRVUN':_0x4500e8(0x17c),'CCOpY':_0x4500e8(0x11d),'QUYmQ':_0x4500e8(0x15d),'qeHEh':_0x4500e8(0x159),'UASBD':_0x4500e8(0x140),'uqqrG':_0x4500e8(0x91),'YKRIx':function(_0x57545d,_0x46e2a6){return _0x57545d+_0x46e2a6;},'vgBoZ':_0x4500e8(0xd6),'UBAQF':_0x4500e8(0xdc),'QVLhk':function(_0x2d4a6d,_0x2bc1b7){return _0x2d4a6d||_0x2bc1b7;},'ojZev':_0x4500e8(0xb0),'MAzUB':_0x4500e8(0x125),'zemog':_0x4500e8(0x128),'ALCRg':function(_0x15c9e5,_0x5a2648){return _0x15c9e5===_0x5a2648;},'fHqwV':_0x4500e8(0x8a),'iyIHK':function(_0x1c61fa,_0x5ddd9e){return _0x1c61fa!==_0x5ddd9e;},'nhOhp':_0x4500e8(0xa4),'pKPBq':function(_0x3b6ccd,_0x400eb7){return _0x3b6ccd===_0x400eb7;},'zNZOc':_0x4500e8(0x101),'kwBXa':function(_0x4f4daf,_0x6a0304){return _0x4f4daf!==_0x6a0304;},'xwTLZ':'qXzNy','ctcLr':_0x4500e8(0x13f),'HvBEf':_0x4500e8(0x10b),'lGrlV':'region','LGMVY':function(_0x4efa8a,_0x41252b){return _0x4efa8a>_0x41252b;},'QQZGK':function(_0x119d12,_0x25951c){return _0x119d12===_0x25951c;},'tsBwA':_0x4500e8(0xe1),'LfSFr':_0x4500e8(0x15c),'nyJyx':function(_0x254d42,_0x307e32,_0x3f9156,_0x42a15b,_0xd706b8,_0x4d2564,_0x2bbeb9,_0x50c1a5){return _0x254d42(_0x307e32,_0x3f9156,_0x42a15b,_0xd706b8,_0x4d2564,_0x2bbeb9,_0x50c1a5);},'zRjoF':'pre-check-grid-called','wPPnV':_0x4500e8(0xf2),'IvHcv':function(_0x5a1077,_0x1dcb2a){return _0x5a1077!==_0x1dcb2a;},'ErYkl':_0x4500e8(0x174),'XZPwJ':'wzhBr','zuEij':_0x4500e8(0x88),'dWXjR':_0x4500e8(0xc1),'vaHVj':function(_0x5e743e,_0x49f875){return _0x5e743e===_0x49f875;},'cGHPG':_0x4500e8(0xd7),'GtZjJ':_0x4500e8(0x107),'Wtmyh':_0x4500e8(0x10c),'jxQkN':function(_0x242629,_0x501c37,_0x3ffe5e){return _0x242629(_0x501c37,_0x3ffe5e);},'zWXaw':function(_0x10aeef,_0x16b8b8,_0x3817f5,_0x292c84,_0x598679,_0x1df665){return _0x10aeef(_0x16b8b8,_0x3817f5,_0x292c84,_0x598679,_0x1df665);},'wxwKc':_0x4500e8(0x153),'bedGm':_0x4500e8(0xd3),'cHfGe':function(_0x9cb991,_0x26ac5c){return _0x9cb991===_0x26ac5c;},'hXezs':_0x4500e8(0x169),'szoiI':function(_0x3d0f84,_0x2bb4be){return _0x3d0f84(_0x2bb4be);},'huweR':'ayfJP','lgyrf':function(_0x251276,_0x58a692,_0x5c5a52,_0x3c2b66,_0x1d3ca3,_0x38b118,_0x300720,_0x3eadce){return _0x251276(_0x58a692,_0x5c5a52,_0x3c2b66,_0x1d3ca3,_0x38b118,_0x300720,_0x3eadce);},'qXtxX':_0x4500e8(0xba),'jTVWC':function(_0x58dd8c,_0x3eb241){return _0x58dd8c!==_0x3eb241;},'sBNbz':'EtmHe','boeCJ':'sVNoa','BuAOP':function(_0x1897cf,_0x101550){return _0x1897cf!==_0x101550;},'DzKrc':'ejwzQ','IWsuJ':_0x4500e8(0xa5),'EMVIA':function(_0x2f6276,_0x17ebdb){return _0x2f6276!==_0x17ebdb;},'mWKMs':_0x4500e8(0xc9),'KSHpy':_0x4500e8(0x14f),'INrOl':function(_0x34e55d,_0x259bae,_0x749082,_0x389547,_0x3e1bd3,_0x475f27,_0xb31ade,_0x24c568){return _0x34e55d(_0x259bae,_0x749082,_0x389547,_0x3e1bd3,_0x475f27,_0xb31ade,_0x24c568);}};let _0x238aa4;try{if(_0x5d69ce['ALCRg'](_0x5d69ce[_0x4500e8(0x94)],_0x5d69ce['fHqwV'])){if(_0x33300a[_0x4500e8(0xbc)]||_0x33300a[_0x4500e8(0xcd)]||_0x33300a['region']){if(_0x5d69ce[_0x4500e8(0x8c)](_0x5d69ce[_0x4500e8(0xd4)],_0x5d69ce['nhOhp']))_0x44964b[_0x4500e8(0x114)](_0x5d69ce[_0x4500e8(0x17a)]);else{const _0x2b69d4=[];!_0x33300a[_0x4500e8(0xbc)]&&(_0x5d69ce['pKPBq'](_0x5d69ce[_0x4500e8(0x13a)],_0x5d69ce[_0x4500e8(0x13a)])?_0x2b69d4['push'](_0x5d69ce[_0x4500e8(0x17a)]):(_0x1387b0[_0x4500e8(0xb2)]('['+_0x5456bb+_0x4500e8(0x11f)+_0x226554[_0x4500e8(0xae)]+_0x4500e8(0xeb)+_0x35b30f['data']+_0x4500e8(0x9f)+_0x41702f[_0x4500e8(0x15d)]),_0x189907[_0x4500e8(0x15d)]&&_0x1da9fe[_0x4500e8(0x15d)](_0x4500e8(0xc4)+_0x5e5f04[_0x4500e8(0x15d)][_0x4500e8(0x14e)])));;!_0x33300a[_0x4500e8(0xcd)]&&(_0x5d69ce[_0x4500e8(0x136)](_0x5d69ce[_0x4500e8(0xf9)],_0x5d69ce['xwTLZ'])?(_0x19c6f3[_0x4500e8(0xb2)](_0x4500e8(0xf7)+_0x1717c0[_0x4500e8(0x110)]+'\x20'),_0x44e351[_0x4500e8(0xcd)]=_0x670544[_0x4500e8(0x110)]):_0x2b69d4[_0x4500e8(0x114)](_0x5d69ce[_0x4500e8(0xa3)]));;if(!_0x33300a[_0x4500e8(0xb6)]){if(_0x5d69ce['pKPBq'](_0x5d69ce[_0x4500e8(0xfa)],_0x5d69ce[_0x4500e8(0x95)])){const _0x1611b5={};_0x1611b5['description']=_0x5d69ce['reyFA'],_0x1611b5[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0x4a585a={};_0x4a585a['description']=_0x5d69ce['fWMyH'],_0x4a585a[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0x5500a7={};_0x5500a7[_0x4500e8(0x130)]=_0x5d69ce['IDAZc'],_0x5500a7[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0xa46f0={};_0xa46f0[_0x4500e8(0x130)]=_0x5d69ce[_0x4500e8(0x9a)],_0xa46f0[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0x7a8d76={};return _0x7a8d76['cluster-name']=_0x1611b5,_0x7a8d76[_0x4500e8(0x159)]=_0x4a585a,_0x7a8d76[_0x4500e8(0xb6)]=_0x5500a7,_0x7a8d76[_0x4500e8(0xd3)]=_0xa46f0,_0x2671b4[_0x4500e8(0xd0)](_0x1176ff[_0x4500e8(0xec)])['epilogue'](_0x41c3e6)[_0x4500e8(0x17e)](_0x7a8d76)[_0x4500e8(0x11d)](_0x5d69ce[_0x4500e8(0xfc)])[_0x4500e8(0x160)];}else _0x2b69d4[_0x4500e8(0x114)](_0x5d69ce[_0x4500e8(0xe2)]);};_0x5d69ce['LGMVY'](_0x2b69d4[_0x4500e8(0x119)],0x0)&&(_0x5d69ce['QQZGK'](_0x5d69ce[_0x4500e8(0x134)],_0x5d69ce[_0x4500e8(0x176)])?_0x28f450[_0x4500e8(0x15d)](_0x4500e8(0xc4)+_0xd32a9b[_0x4500e8(0x15d)][_0x4500e8(0x14e)]):(_0x238aa4=_0x4500e8(0x117)+_0x2b69d4[_0x4500e8(0xe4)](',\x20')+_0x4500e8(0x17b),await _0x5d69ce[_0x4500e8(0xab)](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes[_0x4500e8(0xbf)],_0x5d69ce['zRjoF'],_0x5d69ce['wPPnV'],_0x5d69ce[_0x4500e8(0xad)]),logger[_0x4500e8(0x15d)](_0x238aa4),process[_0x4500e8(0x145)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x33300a[_0x4500e8(0xcd)]['toLowerCase']())){if(_0x5d69ce[_0x4500e8(0x177)](_0x5d69ce['ErYkl'],_0x5d69ce['XZPwJ']))_0x238aa4=_0x5d69ce['zuEij'],await _0x5d69ce['nyJyx'](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes['ERROR'],_0x5d69ce[_0x4500e8(0xb1)],_0x5d69ce[_0x4500e8(0x102)],_0x5d69ce['QUYmQ']),logger[_0x4500e8(0x15d)](_0x238aa4),!_0x33300a['cloudProvider']&&(_0x5d69ce['vaHVj'](_0x5d69ce[_0x4500e8(0x87)],_0x5d69ce[_0x4500e8(0x87)])?(logger[_0x4500e8(0xb2)](_0x4500e8(0xf7)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x33300a['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x4500e8(0x110)]):_0x568009[_0x4500e8(0xb2)](_0x4500e8(0xdd)+_0x20420d[_0x4500e8(0xbc)]+_0x4500e8(0x175)));else{const _0x2f5593={};_0x2f5593['type']=_0x10ecf9[_0x4500e8(0x172)],_0x2f5593[_0x4500e8(0xcf)]=_0x17f95f,_0x137c71[_0x4500e8(0x166)](_0x54ad1e,_0x2f5593,_0x5d69ce[_0x4500e8(0xad)],!![]);}}global_registry[_0x4500e8(0xbc)]=_0x33300a[_0x4500e8(0xbc)],global_registry[_0x4500e8(0xcd)]=_0x33300a[_0x4500e8(0xcd)],global_registry[_0x4500e8(0x15f)]=_0x33300a[_0x4500e8(0xb6)];}}else{if(_0x33300a['gridProfile']){if(_0x5d69ce[_0x4500e8(0x177)](_0x5d69ce[_0x4500e8(0xd8)],_0x5d69ce[_0x4500e8(0xd8)]))_0x3e5da9[_0x4500e8(0x114)](_0x5d69ce['qeHEh']);else{global_registry[_0x4500e8(0x139)]=_0x33300a['gridProfile'],logger[_0x4500e8(0x10e)](_0x4500e8(0x12b)+_0x33300a['gridProfile']);const _0x31519a=_0x4500e8(0xb4)+AG_API_URL+_0x4500e8(0xed),_0x585320={};_0x585320['method']=_0x5d69ce['Wtmyh'],_0x585320['headers']=global_registry[_0x4500e8(0x121)],_0x585320[_0x4500e8(0x141)]=![];const _0x5da679=_0x585320,_0x46d07e=await _0x5d69ce['jxQkN'](got,_0x31519a,_0x5da679),_0x127d58=await _0x5d69ce['zWXaw'](responseValidation,_0x46d07e,_0x5d69ce[_0x4500e8(0x8f)],_0x5d69ce[_0x4500e8(0xc2)],_0x33300a,_0x418209);let _0x5109f5={};if(_0x5d69ce[_0x4500e8(0x135)](_0x127d58,0xc8)){if(_0x5d69ce['cHfGe'](_0x5d69ce[_0x4500e8(0x93)],_0x5d69ce[_0x4500e8(0x93)])){const _0x4af890=JSON[_0x4500e8(0xbd)](_0x46d07e['body']),_0x170144=_0x4af890[_0x4500e8(0xf5)](_0x4233ba=>_0x4233ba[_0x4500e8(0x155)]===_0x33300a[_0x4500e8(0x139)])||null;_0x5d69ce[_0x4500e8(0xa0)](isUndefined,_0x170144)?_0x5d69ce['ALCRg'](_0x5d69ce[_0x4500e8(0x17d)],_0x5d69ce[_0x4500e8(0x17d)])?(_0x238aa4=_0x4500e8(0x122)+_0x33300a[_0x4500e8(0x139)]+_0x4500e8(0xe3),await _0x5d69ce[_0x4500e8(0x92)](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes[_0x4500e8(0xbf)],_0x5d69ce[_0x4500e8(0xb1)],_0x5d69ce[_0x4500e8(0xb8)],_0x5d69ce[_0x4500e8(0xad)]),logger['error'](_0x238aa4),process[_0x4500e8(0x145)](0x1)):_0xda7e8a+='Cluster\x20'+_0x325a53[_0x4500e8(0xbc)]+_0x4500e8(0x100):_0x5d69ce['jTVWC'](_0x5d69ce[_0x4500e8(0xd9)],_0x5d69ce[_0x4500e8(0x98)])?_0x5109f5=_0x170144:(_0xb1b537+=_0x5d69ce[_0x4500e8(0xaa)],_0x1c8c74+=_0x4500e8(0x16f)+(_0x32d69[_0x4500e8(0xcf)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x46abe5+=_0x4500e8(0x115)+(_0x14461f[_0x4500e8(0x124)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x1d03b3+=_0x4500e8(0xca)+(_0x44d038[_0x4500e8(0x14e)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a');}else{const {header:_0x2048cb,response:_0x23888d}=_0x31d4a7,{status:_0x14444c,data:_0x268b4b,error:_0x3882ec}=_0x23888d;_0x5a5e94+=_0x2048cb+'\x20#'+_0x5d69ce[_0x4500e8(0x11b)](_0x4df941,0x1)+'\x0a',_0x27c995+=_0x4500e8(0x158)+(_0x14444c?_0x5d69ce[_0x4500e8(0x179)]:_0x5d69ce[_0x4500e8(0x148)])+'\x0a',_0x3d0893+=_0x4500e8(0xc8)+_0x5d69ce[_0x4500e8(0x10d)](_0x268b4b,_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x3882ec&&(_0x489e43+=_0x5d69ce[_0x4500e8(0xaa)],_0x4fcf95+=_0x4500e8(0x16f)+(_0x3882ec[_0x4500e8(0xcf)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x2e30bb+='\x20\x20Code:\x20'+(_0x3882ec[_0x4500e8(0x124)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x3609f8+='\x20\x20Stack:\x20'+(_0x3882ec['stack']||_0x5d69ce['uqqrG'])+'\x0a'),_0x40f543+='\x0a\x0a';}}else _0x5d69ce[_0x4500e8(0x103)](_0x5d69ce[_0x4500e8(0xb7)],_0x5d69ce['DzKrc'])?_0x48a19a+=_0x4500e8(0xa6)+_0x7f8be3['clusterName']+'\x20'+(_0x2ebc3f?_0x5d69ce[_0x4500e8(0xf4)]:_0x5d69ce['MAzUB'])+'\x0a\x0a':process[_0x4500e8(0x145)](0x1);const _0x59cf34={};_0x59cf34['type']=WS_EVENTS[_0x4500e8(0x172)],_0x59cf34['message']=_0x5d69ce[_0x4500e8(0x13e)],webSocketUtils[_0x4500e8(0x166)](_0x418209,_0x59cf34),global_registry[_0x4500e8(0xcd)]=_0x5109f5[_0x4500e8(0xcd)],global_registry['clusterRegion']=_0x5109f5[_0x4500e8(0xb6)],global_registry[_0x4500e8(0xbc)]=_0x5109f5[_0x4500e8(0xbc)];}}else _0x5d69ce[_0x4500e8(0xf1)](_0x5d69ce[_0x4500e8(0x14c)],_0x5d69ce[_0x4500e8(0x14c)])?_0x216efa[_0x4500e8(0x145)](0x1):(logger[_0x4500e8(0x15d)](_0x5d69ce['zemog']),process[_0x4500e8(0x145)](0x1));}}else _0x4e3ebc[_0x4500e8(0x15d)](_0x5d69ce['zemog']),_0xeff2a2['exit'](0x1);}catch(_0x11e2d6){_0x5d69ce[_0x4500e8(0xa7)](_0x5d69ce['KSHpy'],_0x5d69ce['KSHpy'])?(_0x238aa4=_0x4500e8(0xe8)+_0x11e2d6+':\x20'+_0x11e2d6[_0x4500e8(0x14e)],logger[_0x4500e8(0x15d)](_0x238aa4),await _0x5d69ce['INrOl'](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes['ERROR'],_0x5d69ce[_0x4500e8(0xb1)],_0x5d69ce[_0x4500e8(0x102)],_0x5d69ce['QUYmQ']),process['exit'](0x1)):_0x2123c1=_0x1c6c03;}}function printResponse(_0xd52916,_0x22df5d){const _0xa15c5d=a17_0x95eb67,_0x322cbf={};_0x322cbf[_0xa15c5d(0xbb)]=_0xa15c5d(0xb6),_0x322cbf[_0xa15c5d(0x10a)]=function(_0x3959e7,_0x134c6f){return _0x3959e7!==_0x134c6f;},_0x322cbf[_0xa15c5d(0x138)]=_0xa15c5d(0xb3),_0x322cbf['IiJoq']=_0xa15c5d(0xfd);const _0x126128=_0x322cbf;logger[_0xa15c5d(0xb2)]('['+_0xd52916+_0xa15c5d(0x11f)+_0x22df5d[_0xa15c5d(0xae)]+_0xa15c5d(0xeb)+_0x22df5d[_0xa15c5d(0xd1)]+'\x20error\x20:\x20'+_0x22df5d[_0xa15c5d(0x15d)]),_0x22df5d[_0xa15c5d(0x15d)]&&(_0x126128[_0xa15c5d(0x10a)](_0x126128[_0xa15c5d(0x138)],_0x126128[_0xa15c5d(0xd2)])?logger[_0xa15c5d(0x15d)](_0xa15c5d(0xc4)+_0x22df5d[_0xa15c5d(0x15d)][_0xa15c5d(0x14e)]):_0x5631dc['push'](_0x126128['GlMPp']));}async function generateReport(_0x5eab74,_0x1b5f7c){const _0x3e5143=a17_0x95eb67,_0x4c95b5={'RRuTW':function(_0x1debeb,_0x4add5e){return _0x1debeb+_0x4add5e;},'IBzBS':'Success','kRwyE':_0x3e5143(0xdc),'yFXAv':function(_0x2fcb9c,_0x49d606){return _0x2fcb9c||_0x49d606;},'QMVZf':_0x3e5143(0x91),'KRLAs':_0x3e5143(0x140),'Lbeqs':'Cluster\x20details\x0a-----------------------\x0a','zZcsb':function(_0x218879,_0x5aae2d){return _0x218879!=_0x5aae2d;},'Nxchf':_0x3e5143(0xb0),'AcgwR':'will\x20be\x20created','OUOfC':function(_0x3c4087){return _0x3c4087();}};let _0x2fe016=_0x3e5143(0xcc)+global_registry[_0x3e5143(0xcd)]+_0x3e5143(0x9c);return _0x5eab74[_0x3e5143(0x12d)]((_0x596a61,_0x1dc72e)=>{const _0x13ab42=_0x3e5143,{header:_0x1b8cbc,response:_0x119ccc}=_0x596a61,{status:_0x587762,data:_0xffad78,error:_0x45f2ea}=_0x119ccc;_0x2fe016+=_0x1b8cbc+'\x20#'+_0x4c95b5[_0x13ab42(0x15b)](_0x1dc72e,0x1)+'\x0a',_0x2fe016+=_0x13ab42(0x158)+(_0x587762?_0x4c95b5[_0x13ab42(0x8d)]:_0x4c95b5['kRwyE'])+'\x0a',_0x2fe016+='Message:\x20'+_0x4c95b5[_0x13ab42(0xc7)](_0xffad78,_0x4c95b5[_0x13ab42(0x127)])+'\x0a',_0x45f2ea&&(_0x2fe016+=_0x4c95b5[_0x13ab42(0x16c)],_0x2fe016+='\x20\x20Message:\x20'+(_0x45f2ea[_0x13ab42(0xcf)]||_0x4c95b5[_0x13ab42(0x127)])+'\x0a',_0x2fe016+=_0x13ab42(0x115)+(_0x45f2ea['code']||_0x4c95b5[_0x13ab42(0x127)])+'\x0a',_0x2fe016+='\x20\x20Stack:\x20'+(_0x45f2ea[_0x13ab42(0x14e)]||_0x4c95b5[_0x13ab42(0x127)])+'\x0a'),_0x2fe016+='\x0a\x0a';}),_0x2fe016+=_0x4c95b5[_0x3e5143(0xdf)],_0x4c95b5[_0x3e5143(0x8e)](_0x1b5f7c,null)?_0x2fe016+=_0x3e5143(0xa6)+global_registry[_0x3e5143(0xbc)]+'\x20'+(_0x1b5f7c?_0x4c95b5[_0x3e5143(0xa2)]:_0x4c95b5[_0x3e5143(0xf0)])+'\x0a\x0a':_0x2fe016+=_0x3e5143(0xa6)+global_registry[_0x3e5143(0xbc)]+_0x3e5143(0x100),_0x2fe016+=_0x4c95b5[_0x3e5143(0x162)](getSystemMetaData),_0x2fe016;};exports[a17_0x95eb67(0x120)]=async function(_0x243287){const _0x517319=a17_0x95eb67,_0x629583={'DoYYl':function(_0x4c3453){return _0x4c3453();},'HNKDo':_0x517319(0x170),'LRkGW':function(_0x5c7a65,_0x4c4fd5,_0x3edbe9,_0x27922e,_0x4561b6,_0x46c70d,_0x3ffb2c,_0x2e9ae2){return _0x5c7a65(_0x4c4fd5,_0x3edbe9,_0x27922e,_0x4561b6,_0x46c70d,_0x3ffb2c,_0x2e9ae2);},'qpfAC':_0x517319(0x116),'OWkOv':'credential-not-found','NYfyQ':'error','ypTHT':function(_0x3b6674,_0x254002,_0x3649e0,_0x2e6eab,_0x210367,_0x370b00,_0x28d0a0){return _0x3b6674(_0x254002,_0x3649e0,_0x2e6eab,_0x210367,_0x370b00,_0x28d0a0);},'TQrtS':function(_0x16ed90){return _0x16ed90();},'QwFJn':_0x517319(0xdb),'yfwVP':_0x517319(0x12c),'cNcRM':function(_0x17962a,_0x4741c0,_0x21ff43){return _0x17962a(_0x4741c0,_0x21ff43);},'WcMSU':'dummy-grid','HaACH':_0x517319(0x11e),'aqgnZ':_0x517319(0x14d),'ZuZaY':function(_0x3ac073,_0x557286,_0x4b1604,_0x2349de,_0xe5d4e6,_0x2a5687,_0xc2504d,_0x2f1ec8){return _0x3ac073(_0x557286,_0x4b1604,_0x2349de,_0xe5d4e6,_0x2a5687,_0xc2504d,_0x2f1ec8);},'Dewul':function(_0x4bb4b8,_0x26c722,_0x42da45){return _0x4bb4b8(_0x26c722,_0x42da45);},'TidDR':_0x517319(0xde),'KxwFI':_0x517319(0x12e),'CeFvB':function(_0x4bb293,_0x5ec10c){return _0x4bb293(_0x5ec10c);},'eMESS':_0x517319(0x99),'mZZcG':_0x517319(0xf6),'GXDrK':_0x517319(0xb9),'IhcFs':_0x517319(0x13c),'GlsNa':_0x517319(0x167),'xAEep':_0x517319(0x146),'QtwcI':function(_0x3ffcf9,_0x1370ee,_0x28d4a9){return _0x3ffcf9(_0x1370ee,_0x28d4a9);},'YBshc':function(_0x5f404e,_0x200752){return _0x5f404e+_0x200752;},'EnPFE':_0x517319(0x157),'sKQuk':function(_0x3b14c0,_0x3e9697,_0x1b761f,_0x15e9e0,_0x4e23d3,_0x57cbf2,_0xb00d1a){return _0x3b14c0(_0x3e9697,_0x1b761f,_0x15e9e0,_0x4e23d3,_0x57cbf2,_0xb00d1a);},'ULqnn':_0x517319(0xe0)};let _0x2fe3b9,_0x1ca70f;try{global_registry[_0x517319(0x133)]=_0x629583[_0x517319(0x164)](uuidv4);!fs['existsSync'](_0x629583[_0x517319(0x164)](getCredentialsPath))&&(_0x1ca70f=_0x629583[_0x517319(0xcb)],logger[_0x517319(0x15d)](_0x1ca70f),await _0x629583['LRkGW'](reportToGalactusAndSendToEDS,_0x243287,_0x2fe3b9,_0x1ca70f,messageTypes['ERROR'],_0x629583[_0x517319(0x105)],_0x629583[_0x517319(0x129)],_0x629583[_0x517319(0x161)]),process[_0x517319(0x145)](0x1));_0x629583['ypTHT'](sendInstrumentationEvent,_0x243287,_0x629583[_0x517319(0x105)],messageTypes[_0x517319(0x16e)],null,null,_0x243287);const _0x5e9596=JSON[_0x517319(0xbd)](fs['readFileSync'](_0x629583[_0x517319(0x123)](getCredentialsPath)));global_registry[_0x517319(0x9d)]=_0x5e9596['Browserstack']['username'],global_registry[_0x517319(0x150)]=_0x5e9596[_0x517319(0xd5)][_0x517319(0x152)];const _0x14e50d=WS_ENDPOINT[_0x517319(0xfe)](_0x629583['QwFJn'],_0x5e9596[_0x517319(0xd5)][_0x517319(0x97)])[_0x517319(0xfe)](_0x629583[_0x517319(0xef)],_0x5e9596[_0x517319(0xd5)]['password']),_0xaf634f={};_0xaf634f[_0x517319(0x147)]=ws,_0xaf634f[_0x517319(0xa9)]=0x36ee80,_0x2fe3b9=new ReconnectingWebSocket(_0x14e50d,[],_0xaf634f),global_registry[_0x517319(0x121)]=_0x629583[_0x517319(0x156)](getAuthHeader,global_registry[_0x517319(0x9d)],global_registry[_0x517319(0x150)]),await _0x629583[_0x517319(0x156)](inputValidation,_0x243287,_0x2fe3b9),logger['info'](_0x517319(0x12a)+global_registry[_0x517319(0xcd)]+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x2c10d1=await _0x629583['ypTHT'](getCloudProviderObjectWithOutInit,global_registry[_0x517319(0xcd)],global_registry[_0x517319(0xbc)],_0x629583[_0x517319(0x104)],_0x2fe3b9,webSocketUtils,_0x243287);const _0x1e1879=await _0x2c10d1[_0x517319(0x14a)]();_0x629583[_0x517319(0x156)](printResponse,_0x629583['HaACH'],_0x1e1879),_0x2c10d1=await _0x2c10d1[_0x517319(0x9b)]();let _0x3564af=![];try{_0x3564af=await _0x2c10d1[_0x517319(0x108)]();}catch(_0x3ca51a){const _0x4271a8=_0x629583['aqgnZ']['split']('|');let _0x42f599=0x0;while(!![]){switch(_0x4271a8[_0x42f599++]){case'0':_0x3564af=null;continue;case'1':logger['error'](_0x1ca70f);continue;case'2':await _0x629583[_0x517319(0x163)](reportToGalactusAndSendToEDS,_0x243287,_0x2fe3b9,_0x1ca70f,messageTypes[_0x517319(0xbf)],_0x629583[_0x517319(0x105)],_0x517319(0xfb)+global_registry[_0x517319(0xcd)],_0x629583['NYfyQ']);continue;case'3':_0x1ca70f=_0x517319(0xac)+global_registry[_0x517319(0xbc)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x517319(0x15f)]+_0x517319(0xee)+_0x3ca51a;continue;case'4':_0x1ca70f+='\x0a'+JSON['stringify'](_0x3ca51a[_0x517319(0x14e)]);continue;}break;}}_0x3564af&&logger[_0x517319(0xb2)](_0x517319(0xdd)+global_registry[_0x517319(0xbc)]+_0x517319(0x175));const _0x26680f=await _0x2c10d1[_0x517319(0x11c)]();_0x629583[_0x517319(0x113)](printResponse,_0x629583[_0x517319(0x149)],_0x26680f);const _0x1c368a=await _0x629583[_0x517319(0x123)](curlRequest);_0x629583[_0x517319(0x113)](printResponse,_0x629583['KxwFI'],_0x1c368a);const _0x13428c=await _0x629583[_0x517319(0xa1)](isTlsSupported,_0x629583[_0x517319(0x9e)]);_0x629583[_0x517319(0x156)](printResponse,_0x629583['mZZcG'],_0x13428c);const _0x42bef8={};_0x42bef8['header']=_0x629583[_0x517319(0x132)],_0x42bef8[_0x517319(0x171)]=_0x1e1879;const _0x5232ad={};_0x5232ad[_0x517319(0xc3)]=_0x629583[_0x517319(0x154)],_0x5232ad[_0x517319(0x171)]=_0x26680f;const _0x54e274={};_0x54e274[_0x517319(0xc3)]=_0x629583[_0x517319(0x11a)],_0x54e274[_0x517319(0x171)]=_0x1c368a;const _0x164840={};_0x164840[_0x517319(0xc3)]=_0x629583[_0x517319(0x118)],_0x164840['response']=_0x13428c;const _0xf59829=[_0x42bef8,_0x5232ad,_0x54e274,_0x164840],_0x2b723f=await _0x629583['QtwcI'](generateReport,_0xf59829,_0x3564af),_0x34f0a7=new Date(),_0x5163bf=_0x34f0a7['getUTCFullYear']()+'_'+_0x629583['YBshc'](_0x34f0a7[_0x517319(0x15a)](),0x1)+'_'+_0x34f0a7[_0x517319(0xe6)]()+'_'+_0x34f0a7[_0x517319(0xc0)]()+'_'+_0x34f0a7[_0x517319(0x12f)](),_0x28b728=_0x517319(0x126)+_0x5163bf+'.txt';fs[_0x517319(0xaf)](_0x28b728,_0x2b723f,_0x629583['EnPFE']),logger[_0x517319(0xb2)](_0x517319(0x16a)+_0x28b728),process[_0x517319(0x145)](0x0);}catch(_0x1c4f5c){let _0x3abc56=_0x517319(0x16d)+_0x1c4f5c+'\x20';logger[_0x517319(0x15d)](_0x3abc56),_0x3abc56+='\x0a'+JSON['stringify'](_0x1c4f5c[_0x517319(0x14e)]),logger[_0x517319(0x10e)](_0x517319(0xe5)+_0x1c4f5c['stack']);if(_0x2fe3b9){const _0xa1e1bd={};_0xa1e1bd[_0x517319(0x144)]=WS_EVENTS[_0x517319(0x172)],_0xa1e1bd[_0x517319(0xcf)]=_0x3abc56,webSocketUtils['sendEventToBackend'](_0x2fe3b9,_0xa1e1bd,_0x629583['NYfyQ'],!![]);}await webSocketUtils[_0x517319(0x151)](0x7d0);const _0x4f8e7a={};_0x4f8e7a[_0x517319(0x15d)]=_0x3abc56,await _0x629583[_0x517319(0x178)](sendInstrumentationEvent,_0x243287,_0x629583[_0x517319(0x105)],messageTypes[_0x517319(0xbf)],_0x629583[_0x517319(0xf8)],_0x4f8e7a,_0x243287),process['exit'](0x1);}};
1
+ const a17_0x5d2377=a17_0x39d5;(function(_0x17c351,_0x43c321){const _0x5606a0=a17_0x39d5,_0x1a30f3=_0x17c351();while(!![]){try{const _0x10bc31=-parseInt(_0x5606a0(0x104))/0x1+-parseInt(_0x5606a0(0xf2))/0x2*(parseInt(_0x5606a0(0x133))/0x3)+-parseInt(_0x5606a0(0x132))/0x4+parseInt(_0x5606a0(0x9c))/0x5+-parseInt(_0x5606a0(0xe5))/0x6*(parseInt(_0x5606a0(0x118))/0x7)+-parseInt(_0x5606a0(0xa2))/0x8+parseInt(_0x5606a0(0x8a))/0x9;if(_0x10bc31===_0x43c321)break;else _0x1a30f3['push'](_0x1a30f3['shift']());}catch(_0x284da8){_0x1a30f3['push'](_0x1a30f3['shift']());}}}(a17_0x298a,0x712b8));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5d2377(0x13b)),{v4:uuidv4}=require(a17_0x5d2377(0xf6)),ReconnectingWebSocket=require(a17_0x5d2377(0x15b)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5d2377(0x13e)),{logger}=require(a17_0x5d2377(0x144)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x5d2377(0xdd)),webSocketUtils=require(a17_0x5d2377(0x14d)),{sendInstrumentationEvent}=require(a17_0x5d2377(0xca));exports[a17_0x5d2377(0xd9)]=a17_0x5d2377(0x10a),exports[a17_0x5d2377(0x124)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x5d2377(0x12c)]=function(_0x22c6bb){const _0x4f2779=a17_0x5d2377,_0x5d60e1={};_0x5d60e1[_0x4f2779(0xed)]=_0x4f2779(0x134),_0x5d60e1['xQFii']='string',_0x5d60e1[_0x4f2779(0x88)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5d60e1[_0x4f2779(0x155)]=_0x4f2779(0x106),_0x5d60e1['zZmOi']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5d60e1['DSiwl']=_0x4f2779(0x108);const _0x5f20d6=_0x5d60e1,_0x3e43bd={};_0x3e43bd[_0x4f2779(0x102)]=_0x5f20d6['rjcNh'],_0x3e43bd[_0x4f2779(0xc7)]=_0x5f20d6[_0x4f2779(0x11b)];const _0x437923={};_0x437923['description']=_0x5f20d6[_0x4f2779(0x88)],_0x437923['type']=_0x5f20d6[_0x4f2779(0x11b)];const _0x7b6ef5={};_0x7b6ef5[_0x4f2779(0x102)]=_0x5f20d6[_0x4f2779(0x155)],_0x7b6ef5[_0x4f2779(0xc7)]=_0x5f20d6[_0x4f2779(0x11b)];const _0x4aa687={};_0x4aa687[_0x4f2779(0x102)]=_0x5f20d6['zZmOi'],_0x4aa687[_0x4f2779(0xc7)]=_0x5f20d6[_0x4f2779(0x11b)];const _0x4947f5={};return _0x4947f5[_0x4f2779(0xd1)]=_0x3e43bd,_0x4947f5[_0x4f2779(0x11e)]=_0x437923,_0x4947f5[_0x4f2779(0xd6)]=_0x7b6ef5,_0x4947f5[_0x4f2779(0xc3)]=_0x4aa687,_0x22c6bb[_0x4f2779(0x76)](HELP_HEADER_MESSAGE[_0x4f2779(0x100)])[_0x4f2779(0xbe)](HELP_FOOTER_MESSAGE)['options'](_0x4947f5)['help'](_0x5f20d6[_0x4f2779(0x164)])[_0x4f2779(0x116)];};async function inputValidation(_0x4aa690,_0x4459e1){const _0x5317a3=a17_0x5d2377,_0x2fd6b5={'gKTKL':_0x5317a3(0x8f),'bHUGb':'N/A','EsYGZ':'error','FCbFq':'region','nedCw':_0x5317a3(0xd1),'bBJqO':'is\x20already\x20present','XmKin':'will\x20be\x20created','Qpxsa':function(_0x53bc9d,_0x795bcd){return _0x53bc9d+_0x795bcd;},'tQVgi':'Success','nWTin':'Failure','dkZfU':function(_0x5c26b6,_0x11cf88){return _0x5c26b6||_0x11cf88;},'TVwQW':_0x5317a3(0x11e),'MYqyn':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','UCSiw':function(_0x2d48af,_0x23bdcb){return _0x2d48af===_0x23bdcb;},'aZCKX':_0x5317a3(0xb4),'DKhNN':function(_0x48d589,_0x3bddd8){return _0x48d589!==_0x3bddd8;},'OpXZR':_0x5317a3(0x14f),'oDJfb':_0x5317a3(0xa0),'viUgH':'bTOIY','wxfnp':'hcUKO','eOaQy':'Gtnhr','GVDyv':function(_0x56df2a,_0x4aa729){return _0x56df2a>_0x4aa729;},'OpTDX':function(_0x4b5322,_0x257e47){return _0x4b5322===_0x257e47;},'SnJbS':'jnjlZ','gUkkQ':_0x5317a3(0x10d),'SidHF':function(_0x656516,_0x1af5fb,_0x7126b0,_0xb0465b,_0x2f5cd8,_0x17a501,_0x186b4b,_0x4d6bc9){return _0x656516(_0x1af5fb,_0x7126b0,_0xb0465b,_0x2f5cd8,_0x17a501,_0x186b4b,_0x4d6bc9);},'Tiryh':'pre-check-grid-called','vvSPp':'pre-check-cluster-args-not-passed','uiIri':_0x5317a3(0xf3),'nkoot':_0x5317a3(0x10e),'UEaOC':function(_0x2553dc,_0x1ba4da,_0x3e9a15,_0x1720d6,_0x34bd12,_0x3ee33e,_0x5d6c8a,_0x2dd2f4){return _0x2553dc(_0x1ba4da,_0x3e9a15,_0x1720d6,_0x34bd12,_0x3ee33e,_0x5d6c8a,_0x2dd2f4);},'WDsbo':_0x5317a3(0x90),'uKXnn':function(_0x3a580a,_0x56df08){return _0x3a580a===_0x56df08;},'DMoAg':_0x5317a3(0x172),'jEJeb':_0x5317a3(0xe1),'FBWrb':function(_0x28951e,_0x1bc76a){return _0x28951e!==_0x1bc76a;},'nLHmg':_0x5317a3(0xce),'hEtwG':_0x5317a3(0xab),'VywdZ':_0x5317a3(0x142),'gbmqN':function(_0x4b8ae1,_0x1707c6,_0xf7305d){return _0x4b8ae1(_0x1707c6,_0xf7305d);},'tMUGk':function(_0x280e84,_0x5bead8,_0xb83394,_0x1422f8,_0x44ea6d,_0x46ba1d){return _0x280e84(_0x5bead8,_0xb83394,_0x1422f8,_0x44ea6d,_0x46ba1d);},'eisMC':_0x5317a3(0x7b),'nuvZC':_0x5317a3(0xc3),'wSbtx':function(_0x1d925b,_0x4a33aa){return _0x1d925b===_0x4a33aa;},'DdsSc':_0x5317a3(0x9b),'AQjRK':function(_0x28005f,_0x5b8126){return _0x28005f(_0x5b8126);},'DQbDT':_0x5317a3(0xd5),'waBzs':function(_0x1185ea,_0x2858e3,_0x1ea281,_0x592f23,_0x3bb7c7,_0x543089,_0x23c3b2,_0x311730){return _0x1185ea(_0x2858e3,_0x1ea281,_0x592f23,_0x3bb7c7,_0x543089,_0x23c3b2,_0x311730);},'hhKXA':'pre-check-grid-profile-empty','WKBNf':_0x5317a3(0xe2),'wKRYF':function(_0x3774b8,_0x533c25){return _0x3774b8===_0x533c25;},'MsSwx':_0x5317a3(0x14e),'UgUTA':_0x5317a3(0xba),'kvLlL':function(_0x1d0bab,_0x2c6826){return _0x1d0bab===_0x2c6826;},'DMgNT':_0x5317a3(0xcf),'bIUMp':_0x5317a3(0xda),'GIQQA':function(_0x495982,_0x101590){return _0x495982!==_0x101590;},'fJqFp':_0x5317a3(0x127),'wemUR':function(_0x169c8d,_0x20cbf2,_0x20da21,_0xf49179,_0x1a1b10,_0x535b69,_0x38c084,_0x45202f){return _0x169c8d(_0x20cbf2,_0x20da21,_0xf49179,_0x1a1b10,_0x535b69,_0x38c084,_0x45202f);}};let _0x56b812;try{if(_0x2fd6b5[_0x5317a3(0xb1)](_0x2fd6b5[_0x5317a3(0x16b)],_0x2fd6b5['aZCKX'])){if(_0x4aa690[_0x5317a3(0x156)]||_0x4aa690['cloudProvider']||_0x4aa690['region']){if(_0x2fd6b5['DKhNN'](_0x2fd6b5[_0x5317a3(0x10c)],_0x2fd6b5[_0x5317a3(0x152)])){const _0x229633=[];!_0x4aa690[_0x5317a3(0x156)]&&(_0x2fd6b5['DKhNN'](_0x2fd6b5['viUgH'],_0x2fd6b5[_0x5317a3(0x8b)])?_0x3f2f53[_0x5317a3(0xc1)](_0x5317a3(0x7a)+_0x4cb2a6[_0x5317a3(0xc1)][_0x5317a3(0x94)]):_0x229633[_0x5317a3(0x103)](_0x2fd6b5[_0x5317a3(0xb5)]));;!_0x4aa690[_0x5317a3(0xf8)]&&(_0x2fd6b5[_0x5317a3(0xb1)](_0x2fd6b5[_0x5317a3(0x149)],_0x2fd6b5[_0x5317a3(0x149)])?_0x229633[_0x5317a3(0x103)](_0x2fd6b5[_0x5317a3(0x163)]):_0x164d97[_0x5317a3(0x98)](_0x5317a3(0x7d)+_0x24cb62[_0x5317a3(0x156)]+'`\x20already\x20exists'));;!_0x4aa690[_0x5317a3(0xd6)]&&(_0x2fd6b5[_0x5317a3(0xb1)](_0x2fd6b5[_0x5317a3(0x91)],_0x2fd6b5[_0x5317a3(0x91)])?_0x229633['push'](_0x2fd6b5['FCbFq']):_0x3c1777=_0x5c97e5);;_0x2fd6b5['GVDyv'](_0x229633['length'],0x0)&&(_0x2fd6b5['OpTDX'](_0x2fd6b5['SnJbS'],_0x2fd6b5[_0x5317a3(0x8c)])?_0x39836c+=_0x5317a3(0xe3)+_0x228211['clusterName']+_0x5317a3(0x14c):(_0x56b812='Missing\x20required\x20arguments:\x20'+_0x229633[_0x5317a3(0xb9)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x2fd6b5[_0x5317a3(0x85)](reportToGalactusAndSendToEDS,_0x4aa690,_0x4459e1,_0x56b812,messageTypes['ERROR'],_0x2fd6b5[_0x5317a3(0x8d)],_0x2fd6b5['vvSPp'],_0x2fd6b5[_0x5317a3(0xa4)]),logger[_0x5317a3(0xc1)](_0x56b812),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x4aa690[_0x5317a3(0xf8)][_0x5317a3(0x143)]())&&(_0x2fd6b5[_0x5317a3(0x12f)](_0x2fd6b5['uiIri'],_0x2fd6b5[_0x5317a3(0xbd)])?(_0x2e59ff+=_0x2fd6b5[_0x5317a3(0xe8)],_0x7e5530+='\x20\x20Message:\x20'+(_0x56a977[_0x5317a3(0xc6)]||_0x2fd6b5[_0x5317a3(0xc9)])+'\x0a',_0x3ab37e+=_0x5317a3(0x97)+(_0x47473d[_0x5317a3(0xf9)]||_0x2fd6b5['bHUGb'])+'\x0a',_0x3a3549+=_0x5317a3(0x16f)+(_0x2f2699[_0x5317a3(0x94)]||_0x2fd6b5[_0x5317a3(0xc9)])+'\x0a'):(_0x56b812=_0x2fd6b5['nkoot'],await _0x2fd6b5['UEaOC'](reportToGalactusAndSendToEDS,_0x4aa690,_0x4459e1,_0x56b812,messageTypes[_0x5317a3(0x161)],_0x2fd6b5[_0x5317a3(0x8d)],_0x2fd6b5[_0x5317a3(0xfb)],_0x2fd6b5[_0x5317a3(0xa4)]),logger['error'](_0x56b812),!_0x4aa690[_0x5317a3(0xf8)]&&(_0x2fd6b5[_0x5317a3(0x13d)](_0x2fd6b5[_0x5317a3(0x112)],_0x2fd6b5[_0x5317a3(0x150)])?(_0x52f756[_0x5317a3(0x98)](_0x5317a3(0x170)+_0x496774[_0x5317a3(0x141)]+'\x20'),_0x481fec['cloudProvider']=_0xfe94b4['CLOUD_PROVIDER']):(logger[_0x5317a3(0x98)](_0x5317a3(0x170)+DEFAULT_CLUSTER_DETAILS[_0x5317a3(0x141)]+'\x20'),_0x4aa690[_0x5317a3(0xf8)]=DEFAULT_CLUSTER_DETAILS[_0x5317a3(0x141)])))),global_registry[_0x5317a3(0x156)]=_0x4aa690['clusterName'],global_registry[_0x5317a3(0xf8)]=_0x4aa690[_0x5317a3(0xf8)],global_registry['clusterRegion']=_0x4aa690[_0x5317a3(0xd6)];}else{const _0x3d5639={};_0x3d5639[_0x5317a3(0xc7)]=_0xf75d94['LOG'],_0x3d5639[_0x5317a3(0xc6)]=_0x56936a,_0x14fad8[_0x5317a3(0xc4)](_0x131e88,_0x3d5639,_0x2fd6b5[_0x5317a3(0xa4)],!![]);}}else{if(_0x4aa690['gridProfile']){if(_0x2fd6b5[_0x5317a3(0x166)](_0x2fd6b5['nLHmg'],_0x2fd6b5[_0x5317a3(0xdc)])){global_registry[_0x5317a3(0xac)]=_0x4aa690[_0x5317a3(0xac)],logger['debug']('grid\x20profile\x20flow\x20'+_0x4aa690['gridProfile']);const _0x28f26f=_0x5317a3(0x113)+AG_API_URL+_0x5317a3(0x160),_0x11e30c={};_0x11e30c['method']=_0x2fd6b5[_0x5317a3(0x15d)],_0x11e30c[_0x5317a3(0xd7)]=global_registry[_0x5317a3(0x92)],_0x11e30c[_0x5317a3(0xbc)]=![];const _0x187847=_0x11e30c,_0x31fdc2=await _0x2fd6b5[_0x5317a3(0x95)](got,_0x28f26f,_0x187847),_0x37f503=await _0x2fd6b5[_0x5317a3(0xfa)](responseValidation,_0x31fdc2,_0x2fd6b5[_0x5317a3(0x107)],_0x2fd6b5[_0x5317a3(0x12a)],_0x4aa690,_0x4459e1);let _0x336043={};if(_0x2fd6b5[_0x5317a3(0x169)](_0x37f503,0xc8)){if(_0x2fd6b5[_0x5317a3(0x166)](_0x2fd6b5[_0x5317a3(0x109)],_0x2fd6b5[_0x5317a3(0x109)]))_0x5a241b[_0x5317a3(0x103)](_0x2fd6b5['FCbFq']);else{const _0x5c2971=JSON[_0x5317a3(0x10b)](_0x31fdc2['body']),_0x3c730e=_0x5c2971[_0x5317a3(0x128)](_0x4e50e2=>_0x4e50e2[_0x5317a3(0xd4)]===_0x4aa690[_0x5317a3(0xac)])||null;_0x2fd6b5[_0x5317a3(0x131)](isUndefined,_0x3c730e)?_0x2fd6b5[_0x5317a3(0x13d)](_0x2fd6b5[_0x5317a3(0x11a)],_0x2fd6b5[_0x5317a3(0x11a)])?(_0x56b812=_0x5317a3(0x105)+_0x4aa690[_0x5317a3(0xac)]+_0x5317a3(0x9f),await _0x2fd6b5['waBzs'](reportToGalactusAndSendToEDS,_0x4aa690,_0x4459e1,_0x56b812,messageTypes[_0x5317a3(0x161)],_0x2fd6b5['Tiryh'],_0x2fd6b5['hhKXA'],_0x2fd6b5[_0x5317a3(0xa4)]),logger['error'](_0x56b812),process[_0x5317a3(0x135)](0x1)):_0x20517b['push'](_0x2fd6b5[_0x5317a3(0xb5)]):_0x2fd6b5[_0x5317a3(0xa8)](_0x2fd6b5[_0x5317a3(0x147)],_0x2fd6b5[_0x5317a3(0x147)])?_0x336043=_0x3c730e:_0x966f5e+=_0x5317a3(0xe3)+_0x3b7683[_0x5317a3(0x156)]+'\x20'+(_0x37a306?_0x2fd6b5[_0x5317a3(0xd2)]:_0x2fd6b5[_0x5317a3(0xfd)])+'\x0a\x0a';}}else{if(_0x2fd6b5[_0x5317a3(0x121)](_0x2fd6b5[_0x5317a3(0x165)],_0x2fd6b5[_0x5317a3(0x165)]))process['exit'](0x1);else{const {header:_0xe0a855,response:_0x1dea1b}=_0x51efaa,{status:_0x4fcdcb,data:_0x25270e,error:_0x41605f}=_0x1dea1b;_0x2b6a5e+=_0xe0a855+'\x20#'+_0x2fd6b5[_0x5317a3(0x75)](_0x425289,0x1)+'\x0a',_0x473587+=_0x5317a3(0x82)+(_0x4fcdcb?_0x2fd6b5[_0x5317a3(0x151)]:_0x2fd6b5[_0x5317a3(0x111)])+'\x0a',_0x262794+=_0x5317a3(0xcb)+_0x2fd6b5[_0x5317a3(0x15a)](_0x25270e,_0x2fd6b5[_0x5317a3(0xc9)])+'\x0a',_0x41605f&&(_0x448679+=_0x2fd6b5['gKTKL'],_0x126931+=_0x5317a3(0x15f)+(_0x41605f[_0x5317a3(0xc6)]||_0x2fd6b5[_0x5317a3(0xc9)])+'\x0a',_0xa116b2+=_0x5317a3(0x97)+(_0x41605f[_0x5317a3(0xf9)]||_0x2fd6b5[_0x5317a3(0xc9)])+'\x0a',_0x49406a+=_0x5317a3(0x16f)+(_0x41605f[_0x5317a3(0x94)]||_0x2fd6b5[_0x5317a3(0xc9)])+'\x0a'),_0x14b7d1+='\x0a\x0a';}}const _0x3557ec={};_0x3557ec[_0x5317a3(0xc7)]=WS_EVENTS['LOG'],_0x3557ec[_0x5317a3(0xc6)]=_0x2fd6b5['UgUTA'],webSocketUtils['sendEventToBackend'](_0x4459e1,_0x3557ec),global_registry['cloudProvider']=_0x336043['cloudProvider'],global_registry['clusterRegion']=_0x336043['region'],global_registry[_0x5317a3(0x156)]=_0x336043[_0x5317a3(0x156)];}else _0x24834d[_0x5317a3(0x103)](_0x2fd6b5[_0x5317a3(0x163)]);}else _0x2fd6b5[_0x5317a3(0x140)](_0x2fd6b5[_0x5317a3(0x162)],_0x2fd6b5[_0x5317a3(0x114)])?(_0x25a999[_0x5317a3(0xc1)](_0x2fd6b5[_0x5317a3(0x148)]),_0x2207db[_0x5317a3(0x135)](0x1)):(logger[_0x5317a3(0xc1)](_0x2fd6b5[_0x5317a3(0x148)]),process[_0x5317a3(0x135)](0x1));}}else _0x52c789[_0x5317a3(0x98)]('['+_0x351ae8+_0x5317a3(0xe7)+_0x1625f5['status']+_0x5317a3(0x15e)+_0x49915[_0x5317a3(0xea)]+_0x5317a3(0x93)+_0x924e67[_0x5317a3(0xc1)]),_0x18d76d[_0x5317a3(0xc1)]&&_0x5c09f0[_0x5317a3(0xc1)](_0x5317a3(0x7a)+_0x127040[_0x5317a3(0xc1)][_0x5317a3(0x94)]);}catch(_0x3094c6){_0x2fd6b5[_0x5317a3(0xd3)](_0x2fd6b5['fJqFp'],_0x2fd6b5[_0x5317a3(0xe9)])?_0x99153b[_0x5317a3(0x135)](0x1):(_0x56b812=_0x5317a3(0xa1)+_0x3094c6+':\x20'+_0x3094c6[_0x5317a3(0x94)],logger[_0x5317a3(0xc1)](_0x56b812),await _0x2fd6b5['wemUR'](reportToGalactusAndSendToEDS,_0x4aa690,_0x4459e1,_0x56b812,messageTypes[_0x5317a3(0x161)],_0x2fd6b5[_0x5317a3(0x8d)],_0x2fd6b5[_0x5317a3(0xfb)],_0x2fd6b5[_0x5317a3(0xa4)]),process[_0x5317a3(0x135)](0x1));}}function printResponse(_0x1c566e,_0x46a492){const _0x22d652=a17_0x5d2377,_0xc1bd3b={};_0xc1bd3b[_0x22d652(0x9e)]=_0x22d652(0x134),_0xc1bd3b[_0x22d652(0x96)]=_0x22d652(0xd0),_0xc1bd3b['wtDGi']=_0x22d652(0x9d),_0xc1bd3b['YZrWF']=_0x22d652(0x106),_0xc1bd3b[_0x22d652(0x120)]=_0x22d652(0x171),_0xc1bd3b[_0x22d652(0x129)]=_0x22d652(0x108),_0xc1bd3b[_0x22d652(0xe0)]=function(_0xc12ee2,_0x37f1a){return _0xc12ee2===_0x37f1a;},_0xc1bd3b[_0x22d652(0xa6)]=_0x22d652(0x145);const _0x5cca7a=_0xc1bd3b;logger[_0x22d652(0x98)]('['+_0x1c566e+_0x22d652(0xe7)+_0x46a492['status']+_0x22d652(0x15e)+_0x46a492[_0x22d652(0xea)]+_0x22d652(0x93)+_0x46a492[_0x22d652(0xc1)]);if(_0x46a492[_0x22d652(0xc1)]){if(_0x5cca7a[_0x22d652(0xe0)](_0x5cca7a[_0x22d652(0xa6)],_0x5cca7a['iadVc']))logger[_0x22d652(0xc1)](_0x22d652(0x7a)+_0x46a492[_0x22d652(0xc1)]['stack']);else{const _0x50bd8e={};_0x50bd8e[_0x22d652(0x102)]=_0x5cca7a[_0x22d652(0x9e)],_0x50bd8e[_0x22d652(0xc7)]=_0x5cca7a[_0x22d652(0x96)];const _0x137446={};_0x137446[_0x22d652(0x102)]=_0x5cca7a[_0x22d652(0x119)],_0x137446[_0x22d652(0xc7)]=_0x5cca7a[_0x22d652(0x96)];const _0x217523={};_0x217523[_0x22d652(0x102)]=_0x5cca7a[_0x22d652(0x11c)],_0x217523[_0x22d652(0xc7)]=_0x5cca7a[_0x22d652(0x96)];const _0x142d8a={};_0x142d8a[_0x22d652(0x102)]=_0x5cca7a['GIgQf'],_0x142d8a[_0x22d652(0xc7)]=_0x5cca7a[_0x22d652(0x96)];const _0x67bf6={};return _0x67bf6['cluster-name']=_0x50bd8e,_0x67bf6[_0x22d652(0x11e)]=_0x137446,_0x67bf6[_0x22d652(0xd6)]=_0x217523,_0x67bf6[_0x22d652(0xc3)]=_0x142d8a,_0x52186d[_0x22d652(0x76)](_0xffcd1e[_0x22d652(0x100)])[_0x22d652(0xbe)](_0x402f51)[_0x22d652(0xde)](_0x67bf6)[_0x22d652(0x108)](_0x5cca7a[_0x22d652(0x129)])[_0x22d652(0x116)];}}}function a17_0x39d5(_0xa4c6f0,_0x2fafc8){const _0x298a8a=a17_0x298a();return a17_0x39d5=function(_0x39d5bc,_0x5c41a6){_0x39d5bc=_0x39d5bc-0x75;let _0x2a2ec0=_0x298a8a[_0x39d5bc];return _0x2a2ec0;},a17_0x39d5(_0xa4c6f0,_0x2fafc8);}async function generateReport(_0x4356db,_0x1804d5){const _0x3aad98=a17_0x5d2377,_0x5267f7={'QAWLV':function(_0x24673a,_0x3444eb){return _0x24673a+_0x3444eb;},'RUqoe':'Success','YDdue':_0x3aad98(0x168),'eTzfU':function(_0x2dc685,_0x234bfb){return _0x2dc685||_0x234bfb;},'zgeaz':_0x3aad98(0x159),'htwYY':_0x3aad98(0x8f),'DhIsI':_0x3aad98(0x9a),'JtgPc':function(_0x2b8f9c,_0x4dd74d){return _0x2b8f9c!=_0x4dd74d;},'zUwAx':_0x3aad98(0xb8),'tvHVX':_0x3aad98(0x80),'ijmXQ':function(_0x530814){return _0x530814();}};let _0x2d3574='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x3aad98(0xf8)]+_0x3aad98(0xaa);return _0x4356db[_0x3aad98(0xa3)]((_0x32aa15,_0x8c6e2f)=>{const _0x3ea5d9=_0x3aad98,{header:_0x268a33,response:_0x15ed84}=_0x32aa15,{status:_0x536f36,data:_0x3ec175,error:_0x3b29aa}=_0x15ed84;_0x2d3574+=_0x268a33+'\x20#'+_0x5267f7[_0x3ea5d9(0xeb)](_0x8c6e2f,0x1)+'\x0a',_0x2d3574+=_0x3ea5d9(0x82)+(_0x536f36?_0x5267f7[_0x3ea5d9(0xa5)]:_0x5267f7['YDdue'])+'\x0a',_0x2d3574+=_0x3ea5d9(0xcb)+_0x5267f7[_0x3ea5d9(0x10f)](_0x3ec175,_0x5267f7[_0x3ea5d9(0xb0)])+'\x0a',_0x3b29aa&&(_0x2d3574+=_0x5267f7['htwYY'],_0x2d3574+=_0x3ea5d9(0x15f)+(_0x3b29aa[_0x3ea5d9(0xc6)]||_0x5267f7[_0x3ea5d9(0xb0)])+'\x0a',_0x2d3574+=_0x3ea5d9(0x97)+(_0x3b29aa[_0x3ea5d9(0xf9)]||_0x5267f7[_0x3ea5d9(0xb0)])+'\x0a',_0x2d3574+=_0x3ea5d9(0x16f)+(_0x3b29aa[_0x3ea5d9(0x94)]||_0x5267f7[_0x3ea5d9(0xb0)])+'\x0a'),_0x2d3574+='\x0a\x0a';}),_0x2d3574+=_0x5267f7[_0x3aad98(0xae)],_0x5267f7[_0x3aad98(0x7e)](_0x1804d5,null)?_0x2d3574+=_0x3aad98(0xe3)+global_registry[_0x3aad98(0x156)]+'\x20'+(_0x1804d5?_0x5267f7[_0x3aad98(0x126)]:_0x5267f7[_0x3aad98(0xdf)])+'\x0a\x0a':_0x2d3574+=_0x3aad98(0xe3)+global_registry[_0x3aad98(0x156)]+_0x3aad98(0x14c),_0x2d3574+=_0x5267f7[_0x3aad98(0x89)](getSystemMetaData),_0x2d3574;};exports['handler']=async function(_0x3ceb61){const _0x1de437=a17_0x5d2377,_0x4c348b={'TgNCN':function(_0x246dcd){return _0x246dcd();},'aIKqq':_0x1de437(0xe6),'nQXnV':function(_0x5b18e6,_0xe671ce,_0x51aac1,_0x481af6,_0x476822,_0x1f78de,_0x542bce,_0xa913ca){return _0x5b18e6(_0xe671ce,_0x51aac1,_0x481af6,_0x476822,_0x1f78de,_0x542bce,_0xa913ca);},'IwpeY':_0x1de437(0xfc),'Dhavq':_0x1de437(0x146),'WeDWu':_0x1de437(0xc1),'zNcvk':function(_0x4fc215,_0x22b47a,_0x1aa7a5,_0x4cd254,_0x5b2e1e,_0x39c7e0,_0x34b58e){return _0x4fc215(_0x22b47a,_0x1aa7a5,_0x4cd254,_0x5b2e1e,_0x39c7e0,_0x34b58e);},'JuCCh':_0x1de437(0xf5),'BhCOU':_0x1de437(0xff),'XJcmv':function(_0x48c7be,_0xb787ae,_0x5b9ac1){return _0x48c7be(_0xb787ae,_0x5b9ac1);},'cLvYG':function(_0x5ec596,_0x1191ad,_0x1a642d){return _0x5ec596(_0x1191ad,_0x1a642d);},'xzHJr':_0x1de437(0x7c),'PIKMG':_0x1de437(0x157),'JiUcg':_0x1de437(0x110),'jNolx':function(_0x6b0c25,_0x2dd8fd,_0x1a1048,_0xb93f62,_0x568f91,_0x2a0c5f,_0x3a3d4c,_0x5ef175){return _0x6b0c25(_0x2dd8fd,_0x1a1048,_0xb93f62,_0x568f91,_0x2a0c5f,_0x3a3d4c,_0x5ef175);},'AZptW':'accessResp','xdoJB':function(_0x33fd42){return _0x33fd42();},'JQySU':function(_0xd25704,_0x522483,_0x317350){return _0xd25704(_0x522483,_0x317350);},'VcmSl':_0x1de437(0x99),'wJcbi':function(_0xeccc6a,_0x1aa078){return _0xeccc6a(_0x1aa078);},'FknaG':_0x1de437(0xf4),'GUJuj':_0x1de437(0x8e),'BxqqU':_0x1de437(0x86),'ZyOMM':_0x1de437(0x77),'XKCSJ':_0x1de437(0xe4),'acOlr':_0x1de437(0xcd),'sdPtT':function(_0x2398ec,_0x16dfe6){return _0x2398ec+_0x16dfe6;},'dezRs':_0x1de437(0x12e),'idqyh':function(_0x3a822b,_0xea61ca,_0x5b1fb0,_0x2b6e14,_0x308b9c,_0xdb722e,_0x561536){return _0x3a822b(_0xea61ca,_0x5b1fb0,_0x2b6e14,_0x308b9c,_0xdb722e,_0x561536);},'XpUsd':_0x1de437(0xfe)};let _0x491d1e,_0x2344ad;try{global_registry[_0x1de437(0x130)]=_0x4c348b[_0x1de437(0xc8)](uuidv4);!fs[_0x1de437(0x13c)](_0x4c348b[_0x1de437(0xc8)](getCredentialsPath))&&(_0x2344ad=_0x4c348b[_0x1de437(0xbf)],logger['error'](_0x2344ad),await _0x4c348b['nQXnV'](reportToGalactusAndSendToEDS,_0x3ceb61,_0x491d1e,_0x2344ad,messageTypes[_0x1de437(0x161)],_0x4c348b[_0x1de437(0xad)],_0x4c348b[_0x1de437(0x7f)],_0x4c348b['WeDWu']),process[_0x1de437(0x135)](0x1));_0x4c348b[_0x1de437(0xb6)](sendInstrumentationEvent,_0x3ceb61,_0x4c348b[_0x1de437(0xad)],messageTypes[_0x1de437(0xc2)],null,null,_0x3ceb61);const _0x4a943e=JSON[_0x1de437(0x10b)](fs[_0x1de437(0x87)](_0x4c348b[_0x1de437(0xc8)](getCredentialsPath)));global_registry[_0x1de437(0x78)]=_0x4a943e[_0x1de437(0x153)][_0x1de437(0x16a)],global_registry['bstackAccesskey']=_0x4a943e[_0x1de437(0x153)][_0x1de437(0x138)];const _0xdaf45d=WS_ENDPOINT[_0x1de437(0x11d)](_0x4c348b[_0x1de437(0x12b)],_0x4a943e[_0x1de437(0x153)][_0x1de437(0x16a)])[_0x1de437(0x11d)](_0x4c348b[_0x1de437(0x117)],_0x4a943e[_0x1de437(0x153)][_0x1de437(0x138)]),_0x3e1fea={};_0x3e1fea[_0x1de437(0xcc)]=ws,_0x3e1fea[_0x1de437(0xd8)]=0x36ee80,_0x491d1e=new ReconnectingWebSocket(_0xdaf45d,[],_0x3e1fea),global_registry[_0x1de437(0x92)]=_0x4c348b[_0x1de437(0x12d)](getAuthHeader,global_registry[_0x1de437(0x78)],global_registry[_0x1de437(0x125)]),await _0x4c348b[_0x1de437(0x13a)](inputValidation,_0x3ceb61,_0x491d1e),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x1de437(0xf8)]+_0x1de437(0x16c)+global_registry['clusterRegion']);let _0x565287=await _0x4c348b['zNcvk'](getCloudProviderObjectWithOutInit,global_registry[_0x1de437(0xf8)],global_registry['clusterName'],_0x4c348b['xzHJr'],_0x491d1e,webSocketUtils,_0x3ceb61);const _0xdc8b3c=await _0x565287['isCliToolInstalled']();_0x4c348b[_0x1de437(0x12d)](printResponse,_0x4c348b[_0x1de437(0x11f)],_0xdc8b3c),_0x565287=await _0x565287[_0x1de437(0x101)]();let _0x185dcd=![];try{_0x185dcd=await _0x565287[_0x1de437(0xb3)]();}catch(_0x4a7c5a){const _0xc5889e=_0x4c348b[_0x1de437(0x14b)]['split']('|');let _0x3ce97e=0x0;while(!![]){switch(_0xc5889e[_0x3ce97e++]){case'0':await _0x4c348b[_0x1de437(0x167)](reportToGalactusAndSendToEDS,_0x3ceb61,_0x491d1e,_0x2344ad,messageTypes['ERROR'],_0x4c348b[_0x1de437(0xad)],'cluster-check-failed-'+global_registry[_0x1de437(0xf8)],_0x4c348b[_0x1de437(0x14a)]);continue;case'1':_0x2344ad+='\x0a'+JSON[_0x1de437(0xdb)](_0x4a7c5a[_0x1de437(0x94)]);continue;case'2':_0x185dcd=null;continue;case'3':_0x2344ad=_0x1de437(0x115)+global_registry[_0x1de437(0x156)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x4a7c5a;continue;case'4':logger['error'](_0x2344ad);continue;}break;}}_0x185dcd&&logger[_0x1de437(0x98)](_0x1de437(0x7d)+global_registry['clusterName']+_0x1de437(0x84));const _0x4f9720=await _0x565287[_0x1de437(0x137)]();_0x4c348b[_0x1de437(0x12d)](printResponse,_0x4c348b[_0x1de437(0x123)],_0x4f9720);const _0x42f307=await _0x4c348b['xdoJB'](curlRequest);_0x4c348b['JQySU'](printResponse,_0x4c348b[_0x1de437(0x13f)],_0x42f307);const _0x5318f4=await _0x4c348b[_0x1de437(0x81)](isTlsSupported,_0x4c348b[_0x1de437(0x15c)]);_0x4c348b[_0x1de437(0x13a)](printResponse,_0x4c348b[_0x1de437(0x16d)],_0x5318f4);const _0x2c3499={};_0x2c3499['header']=_0x4c348b[_0x1de437(0x83)],_0x2c3499['response']=_0xdc8b3c;const _0x34ed25={};_0x34ed25[_0x1de437(0xf0)]=_0x4c348b[_0x1de437(0xbb)],_0x34ed25[_0x1de437(0xee)]=_0x4f9720;const _0x45f9e0={};_0x45f9e0[_0x1de437(0xf0)]=_0x4c348b[_0x1de437(0x16e)],_0x45f9e0['response']=_0x42f307;const _0x173174={};_0x173174[_0x1de437(0xf0)]=_0x4c348b[_0x1de437(0xec)],_0x173174[_0x1de437(0xee)]=_0x5318f4;const _0x1e15b9=[_0x2c3499,_0x34ed25,_0x45f9e0,_0x173174],_0x2425f5=await _0x4c348b[_0x1de437(0x12d)](generateReport,_0x1e15b9,_0x185dcd),_0x3690e5=new Date(),_0x23f3b1=_0x3690e5[_0x1de437(0xef)]()+'_'+_0x4c348b[_0x1de437(0x139)](_0x3690e5[_0x1de437(0xa9)](),0x1)+'_'+_0x3690e5[_0x1de437(0x79)]()+'_'+_0x3690e5[_0x1de437(0x136)]()+'_'+_0x3690e5['getUTCMinutes'](),_0x281352=_0x1de437(0x154)+_0x23f3b1+_0x1de437(0xc0);fs[_0x1de437(0xaf)](_0x281352,_0x2425f5,_0x4c348b[_0x1de437(0xf7)]),logger[_0x1de437(0x98)](_0x1de437(0xf1)+_0x281352),process['exit'](0x0);}catch(_0x10773e){let _0x23bbb6=_0x1de437(0x158)+_0x10773e+'\x20';logger['error'](_0x23bbb6),_0x23bbb6+='\x0a'+JSON[_0x1de437(0xdb)](_0x10773e[_0x1de437(0x94)]),logger[_0x1de437(0xc5)](_0x1de437(0xb2)+_0x10773e['stack']);if(_0x491d1e){const _0x2f96eb={};_0x2f96eb[_0x1de437(0xc7)]=WS_EVENTS[_0x1de437(0xa7)],_0x2f96eb['message']=_0x23bbb6,webSocketUtils['sendEventToBackend'](_0x491d1e,_0x2f96eb,_0x4c348b['WeDWu'],!![]);}await webSocketUtils[_0x1de437(0x122)](0x7d0);const _0x336ed2={};_0x336ed2[_0x1de437(0xc1)]=_0x23bbb6,await _0x4c348b['idqyh'](sendInstrumentationEvent,_0x3ceb61,_0x4c348b[_0x1de437(0xad)],messageTypes[_0x1de437(0x161)],_0x4c348b[_0x1de437(0xb7)],_0x336ed2,_0x3ceb61),process['exit'](0x1);}};function a17_0x298a(){const _0x2ed04a=['nedCw','zNcvk','XpUsd','is\x20already\x20present','join','Grid\x20profile\x20fetched\x20for\x20pre-check','ZyOMM','throwHttpErrors','uiIri','epilogue','aIKqq','.txt','error','INFO','grid-profile','sendEventToBackend','debug','message','type','TgNCN','bHUGb','../../utils/instrumentationUtils','Message:\x20','WebSocket','SSL\x20Configured','wZgBJ','jNlsw','string','cluster-name','bBJqO','GIQQA','name','mCGHV','region','headers','connectionTimeout','command','Prkqe','stringify','hEtwG','../../cloudproviders/utils','options','tvHVX','PxARh','OjuzI','ZmPcG','Cluster\x20','Whitelisted\x20browserstack','6RksUny','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.',']\x20status\x20:\x20','gKTKL','fJqFp','data','QAWLV','acOlr','rjcNh','response','getUTCFullYear','header','Report\x20saved\x20in\x20','1726jHwiVG','zTsQE','TLSv1_2_client_method','<UsernamePlaceholder>','uuid','dezRs','cloudProvider','code','tMUGk','WDsbo','pre-check-grid-called','XmKin','pre-check-failed','<PasswordPlaceholder>','pre_check','init','description','push','459379UqTBMs','Invalid\x20input.\x20grid\x20profiles:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','eisMC','help','DdsSc','grid','parse','OpXZR','rpUTQ','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','eTzfU','3|2|4|1|0','nWTin','DMoAg','https://','bIUMp','unable\x20to\x20verify\x20if\x20cluster\x20`','argv','BhCOU','520989fQbNTC','wtDGi','DQbDT','xQFii','YZrWF','replace','cloud-provider','PIKMG','GIgQf','wKRYF','delay','AZptW','desc','bstackAccesskey','zUwAx','wsaeV','find','slGrG','nuvZC','JuCCh','builder','XJcmv','utf-8','DKhNN','requestId','AQjRK','2264832KmwSPI','3DDZWAF','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','exit','getUTCHours','checkAccess','password','sdPtT','cLvYG','got','existsSync','uKXnn','../../utils/utilityMethods','VcmSl','kvLlL','CLOUD_PROVIDER','GET','toLowerCase','../../config/logger','gkhzi','credential-not-found','WKBNf','MYqyn','wxfnp','WeDWu','JiUcg','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','../../utils/webSocketUtils','yOkUx','wyTvt','jEJeb','tQVgi','oDJfb','Browserstack','log/report_','bFkak','clusterName','toolInstalledResp','Failed\x20in\x20pre-check!\x20Error:\x20','N/A','dkZfU','reconnecting-websocket','FknaG','VywdZ','\x20data\x20:\x20','\x20\x20Message:\x20','/packages/cli/get-all-grid-profiles','ERROR','DMgNT','TVwQW','DSiwl','MsSwx','FBWrb','jNolx','Failure','wSbtx','username','aZCKX','\x20region\x20-\x20','GUJuj','XKCSJ','\x20\x20Stack:\x20','Setting\x20cloud\x20provider\x20as\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YDfnu','Qpxsa','usage','User\x20Access','bstackUsername','getUTCDate','error\x20stack\x20:\x20','pre-check','dummy-grid','Cluster\x20`','JtgPc','Dhavq','will\x20be\x20created','wJcbi','Status:\x20','BxqqU','`\x20already\x20exists','SidHF','Tool\x20Installed','readFileSync','FqOCT','ijmXQ','18099963UjmKjF','viUgH','gUkkQ','Tiryh','isTls1_2_SUPPORTED','Error\x20Details:\x0a','cloud-provider-not-supported','eOaQy','authHeader','\x20error\x20:\x20','stack','gbmqN','Ujntb','\x20\x20Code:\x20','info','isTrialGridAccessible','Cluster\x20details\x0a-----------------------\x0a','YiLiA','627355tGiAkY','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','gGjMk','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','jfkJX','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','4577256HgtKSr','forEach','EsYGZ','RUqoe','iadVc','LOG','OpTDX','getUTCMonth','\x20===\x0a\x0a','UCokk','gridProfile','IwpeY','DhIsI','writeFileSync','zgeaz','UCSiw','stack\x20trace\x20','isClusterPresent','BNNLd'];a17_0x298a=function(){return _0x2ed04a;};return a17_0x298a();}
@@ -1 +1 @@
1
- const a18_0x33fe8c=a18_0x30fe;(function(_0x123815,_0xb5a47a){const _0x5a58a9=a18_0x30fe,_0x156790=_0x123815();while(!![]){try{const _0x12cd50=-parseInt(_0x5a58a9(0x1a2))/0x1+-parseInt(_0x5a58a9(0x19d))/0x2*(-parseInt(_0x5a58a9(0x19b))/0x3)+-parseInt(_0x5a58a9(0x195))/0x4+-parseInt(_0x5a58a9(0x197))/0x5+parseInt(_0x5a58a9(0x19e))/0x6+parseInt(_0x5a58a9(0x19f))/0x7+parseInt(_0x5a58a9(0x198))/0x8;if(_0x12cd50===_0xb5a47a)break;else _0x156790['push'](_0x156790['shift']());}catch(_0x51fdc9){_0x156790['push'](_0x156790['shift']());}}}(a18_0x5a36,0x8fd12));function a18_0x5a36(){const _0x37a080=['KqlaD','builder','42fiHcHW','demandCommand','56828jSkUwr','2372694rkcKGA','6353557RVROUX','recommendCommands','usage','83882YsJSab','SWHuD','epilogue','command','help','commandDir','4303232nPRvRk','start','3153965fmlXbn','5429288HyXPEi'];a18_0x5a36=function(){return _0x37a080;};return a18_0x5a36();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x30fe(_0x43c713,_0x1ce03e){const _0x5a360a=a18_0x5a36();return a18_0x30fe=function(_0x30fe77,_0x296407){_0x30fe77=_0x30fe77-0x194;let _0x2f6bec=_0x5a360a[_0x30fe77];return _0x2f6bec;},a18_0x30fe(_0x43c713,_0x1ce03e);}exports[a18_0x33fe8c(0x1a5)]=a18_0x33fe8c(0x196),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x33fe8c(0x19a)]=function(_0x4bb038){const _0x2280b0=a18_0x33fe8c,_0x46389a={};_0x46389a[_0x2280b0(0x1a3)]='start_commands',_0x46389a[_0x2280b0(0x199)]=_0x2280b0(0x1a6);const _0x2c4fab=_0x46389a;return _0x4bb038[_0x2280b0(0x1a1)](HELP_HEADER_MESSAGE[_0x2280b0(0x196)])[_0x2280b0(0x1a4)](HELP_FOOTER_MESSAGE)[_0x2280b0(0x194)](_0x2c4fab[_0x2280b0(0x1a3)])[_0x2280b0(0x19c)]()[_0x2280b0(0x1a0)]()['strict']()[_0x2280b0(0x1a6)](_0x2c4fab[_0x2280b0(0x199)]);},exports['handler']=function(_0x2cf56d){};
1
+ const a18_0x2812d4=a18_0x5603;function a18_0x5bc6(){const _0x229938=['demandCommand','Start\x20an\x20existing\x20Automation\x20grid.','command','329775BtdqAp','commandDir','5002803hWCdzj','363429kGuSBH','18865nMDTNO','8210800PwTUPE','start','4pQUgmp','lrdUL','builder','610772zgUqYa','help','oJoUY','strict','epilogue','736siikrg','usage','1566096SdvJic','recommendCommands','2AUKXUu','start_commands'];a18_0x5bc6=function(){return _0x229938;};return a18_0x5bc6();}function a18_0x5603(_0x1e3ad5,_0x3433cd){const _0x5bc61b=a18_0x5bc6();return a18_0x5603=function(_0x560391,_0x20d8f1){_0x560391=_0x560391-0x171;let _0x56098f=_0x5bc61b[_0x560391];return _0x56098f;},a18_0x5603(_0x1e3ad5,_0x3433cd);}(function(_0x5ca925,_0x4a64f1){const _0x329395=a18_0x5603,_0x123226=_0x5ca925();while(!![]){try{const _0x22069a=parseInt(_0x329395(0x175))/0x1+parseInt(_0x329395(0x17e))/0x2*(parseInt(_0x329395(0x186))/0x3)+-parseInt(_0x329395(0x172))/0x4*(parseInt(_0x329395(0x183))/0x5)+-parseInt(_0x329395(0x17c))/0x6+parseInt(_0x329395(0x187))/0x7*(-parseInt(_0x329395(0x17a))/0x8)+-parseInt(_0x329395(0x185))/0x9+parseInt(_0x329395(0x188))/0xa;if(_0x22069a===_0x4a64f1)break;else _0x123226['push'](_0x123226['shift']());}catch(_0x332dc8){_0x123226['push'](_0x123226['shift']());}}}(a18_0x5bc6,0x67149));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x2812d4(0x182)]=a18_0x2812d4(0x171),exports['desc']=a18_0x2812d4(0x181),exports[a18_0x2812d4(0x174)]=function(_0x35b66d){const _0x513ccf=a18_0x2812d4,_0xa59cb4={};_0xa59cb4[_0x513ccf(0x177)]=_0x513ccf(0x17f),_0xa59cb4['lrdUL']='help';const _0x66bdb4=_0xa59cb4;return _0x35b66d[_0x513ccf(0x17b)](HELP_HEADER_MESSAGE[_0x513ccf(0x171)])[_0x513ccf(0x179)](HELP_FOOTER_MESSAGE)[_0x513ccf(0x184)](_0x66bdb4[_0x513ccf(0x177)])[_0x513ccf(0x180)]()[_0x513ccf(0x17d)]()[_0x513ccf(0x178)]()[_0x513ccf(0x176)](_0x66bdb4[_0x513ccf(0x173)]);},exports['handler']=function(_0x22c564){};
@@ -1 +1 @@
1
- const a19_0x2170e2=a19_0xce40;function a19_0xce40(_0x56a1e4,_0x4c8325){const _0x3d0781=a19_0x3d07();return a19_0xce40=function(_0xce406,_0xe70eb5){_0xce406=_0xce406-0x1bb;let _0x326293=_0x3d0781[_0xce406];return _0x326293;},a19_0xce40(_0x56a1e4,_0x4c8325);}function a19_0x3d07(){const _0x39ea6f=['ERROR','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','rekdY','Browserstack','password','existsSync','reconnecting-websocket','../../utils/instrumentationUtils','343612iLTSHp','WebSocket','clusterRegion','exit','PvEws','command','Adding\x20Websocket\x20listeners','jBdls','QIewv','Skip\x20insecure\x20cert\x20verification.','cloudProvider','handler','stack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','438714giKZur','readFileSync','Starting\x20grid\x20','21uKKrpn','151336FIYtVI','type','dbCWd','default','server-error','aWYxU','info','parse','../../utils/webSocketUtils','../../utils/utilityMethods','usYms','qRjZH','error','grid','<UsernamePlaceholder>','argv','gridId','../../config/constants','oHoPV','options','unauthorised','replace','usage','message','statusCode','user','7136928hBGjPr','grid-id','QyxfY','username','LvMbD','init-not-called','bstackUsername','addListeners','zPHDm','ZEjhc','description','lEuDi','name','start-grid-called','bstackAccesskey','clusterName','207295lKOpxq','epilogue','1563060lFyzmt','MWgeE','INFO','LeUUs','help','tupRR','bOGwv','374232FCTqjW','10EvTtOb','../../config/logger','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fEqmz','KjRMK','skip-tls-cert-verify','<PasswordPlaceholder>','start'];a19_0x3d07=function(){return _0x39ea6f;};return a19_0x3d07();}(function(_0x15a59f,_0x24e60d){const _0x46266c=a19_0xce40,_0x4e3e0f=_0x15a59f();while(!![]){try{const _0x52e541=-parseInt(_0x46266c(0x20f))/0x1+parseInt(_0x46266c(0x1c2))/0x2+-parseInt(_0x46266c(0x1e1))/0x3+-parseInt(_0x46266c(0x1d3))/0x4*(parseInt(_0x46266c(0x1c3))/0x5)+-parseInt(_0x46266c(0x1bb))/0x6+parseInt(_0x46266c(0x1e4))/0x7*(-parseInt(_0x46266c(0x1e5))/0x8)+parseInt(_0x46266c(0x1ff))/0x9;if(_0x52e541===_0x24e60d)break;else _0x4e3e0f['push'](_0x4e3e0f['shift']());}catch(_0x61012d){_0x4e3e0f['push'](_0x4e3e0f['shift']());}}}(a19_0x3d07,0x21924));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2170e2(0x1d1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2170e2(0x1f6)),{logger}=require(a19_0x2170e2(0x1c4)),{getCredentialsPath,getGridDetails}=require(a19_0x2170e2(0x1ee)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x2170e2(0x1d2)),webSocketUtils=require(a19_0x2170e2(0x1ed)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x2170e2(0x1d8)]=a19_0x2170e2(0x1f2),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x5a36e5){const _0x192e80=a19_0x2170e2,_0x195787={};_0x195787['LeUUs']=_0x192e80(0x1cc),_0x195787[_0x192e80(0x1ea)]='string',_0x195787[_0x192e80(0x20a)]=_0x192e80(0x1dc),_0x195787['oHoPV']='boolean',_0x195787[_0x192e80(0x1c1)]=_0x192e80(0x1bf);const _0x4490c5=_0x195787,_0x3764a6={};_0x3764a6[_0x192e80(0x209)]=_0x4490c5[_0x192e80(0x1be)],_0x3764a6[_0x192e80(0x1e6)]=_0x4490c5[_0x192e80(0x1ea)];const _0x3b3ac5={};_0x3b3ac5['description']=_0x4490c5[_0x192e80(0x20a)],_0x3b3ac5['type']=_0x4490c5[_0x192e80(0x1f7)],_0x3b3ac5[_0x192e80(0x1e8)]=![];const _0x53a8b7={};return _0x53a8b7[_0x192e80(0x200)]=_0x3764a6,_0x53a8b7[_0x192e80(0x1c8)]=_0x3b3ac5,_0x5a36e5[_0x192e80(0x1fb)](HELP_HEADER_MESSAGE[_0x192e80(0x1ca)])[_0x192e80(0x210)](HELP_FOOTER_MESSAGE)[_0x192e80(0x1f8)](_0x53a8b7)[_0x192e80(0x1bf)](_0x4490c5[_0x192e80(0x1c1)])[_0x192e80(0x1f4)];},exports[a19_0x2170e2(0x1de)]=async function(_0x4323b3){const _0x5bcb79=a19_0x2170e2,_0x3ffb84={'qRjZH':_0x5bcb79(0x1e0),'MWgeE':function(_0xc1efdd){return _0xc1efdd();},'QyxfY':_0x5bcb79(0x1c5),'fEqmz':function(_0x598bdf,_0x369484,_0x62975b,_0x557998,_0x47f566,_0x47a4af,_0x4dcd80){return _0x598bdf(_0x369484,_0x62975b,_0x557998,_0x47f566,_0x47a4af,_0x4dcd80);},'zPHDm':_0x5bcb79(0x20c),'KjRMK':_0x5bcb79(0x204),'jBdls':_0x5bcb79(0x1f3),'ZEjhc':_0x5bcb79(0x1c9),'usYms':_0x5bcb79(0x1d9),'rekdY':function(_0x4b6627,_0x327256,_0x191ae4,_0x95c4e9){return _0x4b6627(_0x327256,_0x191ae4,_0x95c4e9);},'LvMbD':function(_0x26411c,_0x50e45e,_0x44bedc){return _0x26411c(_0x50e45e,_0x44bedc);},'bgaDD':'Grid\x20started','QIewv':function(_0x4345b9,_0x38b98b){return _0x4345b9===_0x38b98b;},'dbCWd':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','tupRR':_0x5bcb79(0x1f9),'GWAHc':'invalid-grid-id','PvEws':_0x5bcb79(0x1e9)};let _0x6544e8;try{!_0x4323b3['gridId']&&(logger['error'](_0x3ffb84[_0x5bcb79(0x1f0)]),process[_0x5bcb79(0x1d6)](0x1));!fs[_0x5bcb79(0x1d0)](_0x3ffb84[_0x5bcb79(0x1bc)](getCredentialsPath))&&(logger[_0x5bcb79(0x1f1)](_0x3ffb84[_0x5bcb79(0x201)]),await _0x3ffb84[_0x5bcb79(0x1c6)](sendInstrumentationEvent,_0x4323b3,_0x3ffb84['zPHDm'],messageTypes[_0x5bcb79(0x1cb)],_0x3ffb84[_0x5bcb79(0x1c7)],null,_0x4323b3),process[_0x5bcb79(0x1d6)](0x1));logger[_0x5bcb79(0x1eb)](_0x5bcb79(0x1e3)+_0x4323b3[_0x5bcb79(0x1f5)]),await _0x3ffb84[_0x5bcb79(0x1c6)](sendInstrumentationEvent,_0x4323b3,_0x3ffb84['zPHDm'],messageTypes[_0x5bcb79(0x1bd)],null,null,_0x4323b3);const _0x44e45d=JSON[_0x5bcb79(0x1ec)](fs[_0x5bcb79(0x1e2)](_0x3ffb84[_0x5bcb79(0x1bc)](getCredentialsPath)));global_registry[_0x5bcb79(0x205)]=_0x44e45d[_0x5bcb79(0x1ce)][_0x5bcb79(0x202)],global_registry[_0x5bcb79(0x20d)]=_0x44e45d[_0x5bcb79(0x1ce)]['password'];const _0x2ef70b=WS_ENDPOINT[_0x5bcb79(0x1fa)](_0x3ffb84[_0x5bcb79(0x1da)],_0x44e45d[_0x5bcb79(0x1ce)]['username'])[_0x5bcb79(0x1fa)](_0x3ffb84[_0x5bcb79(0x208)],_0x44e45d['Browserstack']['password']),_0x218f79={};_0x218f79[_0x5bcb79(0x1d4)]=ws,_0x218f79['connectionTimeout']=0x36ee80,_0x6544e8=new ReconnectingWebSocket(_0x2ef70b,[],_0x218f79),logger['debug'](_0x3ffb84[_0x5bcb79(0x1ef)]),webSocketUtils[_0x5bcb79(0x206)](_0x6544e8,_0x4323b3[_0x5bcb79(0x1fe)],_0x4323b3[_0x5bcb79(0x1cf)]);const [_0x1db1ea,_0x305578]=await _0x3ffb84[_0x5bcb79(0x1cd)](getGridDetails,_0x44e45d[_0x5bcb79(0x1ce)][_0x5bcb79(0x202)],_0x44e45d[_0x5bcb79(0x1ce)][_0x5bcb79(0x1cf)],_0x4323b3[_0x5bcb79(0x1f5)]);if(_0x305578){const _0x2e16cc=_0x305578['info'];global_registry[_0x5bcb79(0x1dd)]=_0x2e16cc[_0x5bcb79(0x1dd)],global_registry[_0x5bcb79(0x1d5)]=_0x2e16cc['region'],global_registry[_0x5bcb79(0x20e)]=_0x2e16cc['clusterName'];const _0xdc057e=await _0x3ffb84[_0x5bcb79(0x1c6)](getCloudProviderObject,_0x2e16cc[_0x5bcb79(0x1dd)],_0x2e16cc[_0x5bcb79(0x20e)],_0x2e16cc[_0x5bcb79(0x20b)],_0x6544e8,webSocketUtils,_0x4323b3),[_0xb14ddf,_0x5546f0,_0x33e0f1,_0x692aa8,_0x391ed9,_0x5b4795]=await _0x3ffb84[_0x5bcb79(0x203)](createK8sClient,_0xdc057e,_0x4323b3['skipTlsCertVerify']);await _0x3ffb84[_0x5bcb79(0x203)](scaleUpHubDeployment,_0x5546f0,_0x2e16cc['name']),logger['info'](_0x3ffb84['bgaDD']),process[_0x5bcb79(0x1d6)](0x0);}_0x3ffb84['QIewv'](_0x1db1ea[_0x5bcb79(0x1fd)],0x191)&&(logger[_0x5bcb79(0x1f1)](_0x3ffb84[_0x5bcb79(0x1e7)]),await _0x3ffb84[_0x5bcb79(0x1c6)](sendInstrumentationEvent,_0x4323b3,_0x3ffb84['zPHDm'],messageTypes[_0x5bcb79(0x1cb)],_0x3ffb84[_0x5bcb79(0x1c0)],null,_0x4323b3),process['exit'](0x1)),_0x3ffb84[_0x5bcb79(0x1db)](_0x1db1ea[_0x5bcb79(0x1fd)],0x190)&&(logger['error'](JSON['parse'](_0x1db1ea['body'])[_0x5bcb79(0x1fc)]),await _0x3ffb84['fEqmz'](sendInstrumentationEvent,_0x4323b3,_0x3ffb84[_0x5bcb79(0x207)],messageTypes[_0x5bcb79(0x1cb)],_0x3ffb84['GWAHc'],null,_0x4323b3),process[_0x5bcb79(0x1d6)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1db1ea)),await _0x3ffb84['fEqmz'](sendInstrumentationEvent,_0x4323b3,_0x3ffb84[_0x5bcb79(0x207)],messageTypes['ERROR'],_0x3ffb84[_0x5bcb79(0x1d7)],_0x1db1ea,_0x4323b3),process[_0x5bcb79(0x1d6)](0x1);}catch(_0x2aca95){const _0x2fb4c9='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x2aca95+'\x20\x0a'+JSON['stringify'](_0x2aca95[_0x5bcb79(0x1df)])+'\x20';logger[_0x5bcb79(0x1f1)](_0x2fb4c9),process['exit'](0x1);}};
1
+ const a19_0x5cef81=a19_0xa19f;(function(_0x28c28c,_0x51f6c4){const _0x34d5c2=a19_0xa19f,_0x3ad7e0=_0x28c28c();while(!![]){try{const _0x118eb9=-parseInt(_0x34d5c2(0xbf))/0x1+parseInt(_0x34d5c2(0x100))/0x2+parseInt(_0x34d5c2(0x109))/0x3+-parseInt(_0x34d5c2(0xc3))/0x4+parseInt(_0x34d5c2(0xca))/0x5*(parseInt(_0x34d5c2(0xe6))/0x6)+parseInt(_0x34d5c2(0xe8))/0x7+-parseInt(_0x34d5c2(0xe2))/0x8;if(_0x118eb9===_0x51f6c4)break;else _0x3ad7e0['push'](_0x3ad7e0['shift']());}catch(_0x5379d3){_0x3ad7e0['push'](_0x3ad7e0['shift']());}}}(a19_0x45e0,0xe2cd9));function a19_0xa19f(_0x1992cd,_0x29370a){const _0x45e04d=a19_0x45e0();return a19_0xa19f=function(_0xa19f36,_0x4536f4){_0xa19f36=_0xa19f36-0xbc;let _0x54ee6b=_0x45e04d[_0xa19f36];return _0x54ee6b;},a19_0xa19f(_0x1992cd,_0x29370a);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x5cef81(0xc0)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x5cef81(0xec)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x5cef81(0x102)),{getCloudProviderObject}=require(a19_0x5cef81(0xf3));function a19_0x45e0(){const _0x21da92=['UtOSO','waXJl','XUMaF','epilogue','tpoNB','Starting\x20grid\x20','init-not-called','info','ebLIy','invalid-grid-id','boolean','server-error','start-grid-called','builder','4869232icULJP','argv','help','Adding\x20Websocket\x20listeners','6774toAhhm','description','10316054vvmNMe','clusterName','connectionTimeout','ZGckm','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','options','haETU','usage','body','region','../../cloudproviders/utils','stack','DKZPu','addListeners','user','replace','iTSBY','UmFFy','statusCode','name','<UsernamePlaceholder>','gridId','password','2373970DReEDb','hPJNt','../../utils/createk8sClient','tkDfm','VxTwu','VXifm','unauthorised','bstackAccesskey','existsSync','498603ZAjBBX','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','start','WebSocket','command','handler','XJJwb','591763hihXpt','../../config/logger','UduWE','cloudProvider','6127348sLHvkN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','Skip\x20insecure\x20cert\x20verification.','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Ysghd','3695CSRikF','THMIM','readFileSync','ERROR','string','default','bstackUsername','username','oatkK','SEJtl'];a19_0x45e0=function(){return _0x21da92;};return a19_0x45e0();}exports[a19_0x5cef81(0xbc)]=a19_0x5cef81(0x10a),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x5cef81(0xe1)]=function(_0x4ccfa8){const _0xaa4e6d=a19_0x5cef81,_0x2eb05d={};_0x2eb05d[_0xaa4e6d(0xf5)]=_0xaa4e6d(0xed),_0x2eb05d[_0xaa4e6d(0xd2)]=_0xaa4e6d(0xce),_0x2eb05d['HFpxM']=_0xaa4e6d(0xc6),_0x2eb05d[_0xaa4e6d(0xd6)]=_0xaa4e6d(0xde),_0x2eb05d[_0xaa4e6d(0xef)]=_0xaa4e6d(0xe4);const _0x5cbf39=_0x2eb05d,_0x3b852e={};_0x3b852e[_0xaa4e6d(0xe7)]=_0x5cbf39[_0xaa4e6d(0xf5)],_0x3b852e['type']=_0x5cbf39[_0xaa4e6d(0xd2)];const _0x21a822={};_0x21a822['description']=_0x5cbf39['HFpxM'],_0x21a822['type']=_0x5cbf39['XUMaF'],_0x21a822[_0xaa4e6d(0xcf)]=![];const _0x88f2e2={};return _0x88f2e2['grid-id']=_0x3b852e,_0x88f2e2['skip-tls-cert-verify']=_0x21a822,_0x4ccfa8[_0xaa4e6d(0xf0)](HELP_HEADER_MESSAGE[_0xaa4e6d(0x10d)])[_0xaa4e6d(0xd7)](HELP_FOOTER_MESSAGE)[_0xaa4e6d(0xee)](_0x88f2e2)[_0xaa4e6d(0xe4)](_0x5cbf39[_0xaa4e6d(0xef)])[_0xaa4e6d(0xe3)];},exports[a19_0x5cef81(0xbd)]=async function(_0x4645e9){const _0xb489dd=a19_0x5cef81,_0x523999={'sbtrE':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','waXJl':function(_0x5a4578){return _0x5a4578();},'UtOSO':_0xb489dd(0xc4),'uyotv':function(_0x5f5cdd,_0x2fc037,_0x4b7ef0,_0x2f0671,_0x4231bf,_0x450da5,_0x58654b){return _0x5f5cdd(_0x2fc037,_0x4b7ef0,_0x2f0671,_0x4231bf,_0x450da5,_0x58654b);},'THMIM':_0xb489dd(0xe0),'iTSBY':_0xb489dd(0xda),'ZGckm':function(_0x29ed16,_0x15d528,_0x365b70,_0x4a5e14,_0xca4842,_0x4f0145,_0x1ec63b){return _0x29ed16(_0x15d528,_0x365b70,_0x4a5e14,_0xca4842,_0x4f0145,_0x1ec63b);},'Slscd':function(_0x9a21b8){return _0x9a21b8();},'tpoNB':_0xb489dd(0xfd),'UduWE':'<PasswordPlaceholder>','SEJtl':_0xb489dd(0xe5),'jiXnv':function(_0x40466e,_0x52754e,_0x3f2e10,_0x2f1f57){return _0x40466e(_0x52754e,_0x3f2e10,_0x2f1f57);},'VXifm':function(_0x279d74,_0x4a2150,_0x1bf12d,_0x22cee9,_0x4bac32,_0x1692bd,_0xffac5d){return _0x279d74(_0x4a2150,_0x1bf12d,_0x22cee9,_0x4bac32,_0x1692bd,_0xffac5d);},'tkDfm':function(_0x1d2f9b,_0x3fe29f,_0x423c6d){return _0x1d2f9b(_0x3fe29f,_0x423c6d);},'UmFFy':'Grid\x20started','Ysghd':function(_0x531749,_0x220422){return _0x531749===_0x220422;},'XJJwb':_0xb489dd(0x10b),'hPJNt':_0xb489dd(0x106),'VxTwu':function(_0x217209,_0x3bec3c){return _0x217209===_0x3bec3c;},'ebLIy':_0xb489dd(0xdd),'jnTVx':function(_0x4b16ba,_0x541cce,_0x56b521,_0x97780b,_0x2f3175,_0x438ffa,_0x4c87f3){return _0x4b16ba(_0x541cce,_0x56b521,_0x97780b,_0x2f3175,_0x438ffa,_0x4c87f3);},'ZIVnG':_0xb489dd(0xdf)};let _0x340b2f;try{!_0x4645e9['gridId']&&(logger[_0xb489dd(0x10c)](_0x523999['sbtrE']),process[_0xb489dd(0xc5)](0x1));!fs[_0xb489dd(0x108)](_0x523999[_0xb489dd(0xd5)](getCredentialsPath))&&(logger[_0xb489dd(0x10c)](_0x523999[_0xb489dd(0xd4)]),await _0x523999['uyotv'](sendInstrumentationEvent,_0x4645e9,_0x523999['THMIM'],messageTypes['ERROR'],_0x523999[_0xb489dd(0xf9)],null,_0x4645e9),process[_0xb489dd(0xc5)](0x1));logger['info'](_0xb489dd(0xd9)+_0x4645e9[_0xb489dd(0xfe)]),await _0x523999['ZGckm'](sendInstrumentationEvent,_0x4645e9,_0x523999['THMIM'],messageTypes['INFO'],null,null,_0x4645e9);const _0x5431b7=JSON['parse'](fs[_0xb489dd(0xcc)](_0x523999['Slscd'](getCredentialsPath)));global_registry[_0xb489dd(0xd0)]=_0x5431b7[_0xb489dd(0xc7)][_0xb489dd(0xd1)],global_registry[_0xb489dd(0x107)]=_0x5431b7[_0xb489dd(0xc7)][_0xb489dd(0xff)];const _0x4c3a27=WS_ENDPOINT[_0xb489dd(0xf8)](_0x523999[_0xb489dd(0xd8)],_0x5431b7[_0xb489dd(0xc7)]['username'])[_0xb489dd(0xf8)](_0x523999[_0xb489dd(0xc1)],_0x5431b7[_0xb489dd(0xc7)]['password']),_0x21ce92={};_0x21ce92[_0xb489dd(0x10e)]=ws,_0x21ce92[_0xb489dd(0xea)]=0x36ee80,_0x340b2f=new ReconnectingWebSocket(_0x4c3a27,[],_0x21ce92),logger['debug'](_0x523999[_0xb489dd(0xd3)]),webSocketUtils[_0xb489dd(0xf6)](_0x340b2f,_0x4645e9[_0xb489dd(0xf7)],_0x4645e9[_0xb489dd(0xff)]);const [_0x43da53,_0x3eb208]=await _0x523999['jiXnv'](getGridDetails,_0x5431b7[_0xb489dd(0xc7)][_0xb489dd(0xd1)],_0x5431b7[_0xb489dd(0xc7)][_0xb489dd(0xff)],_0x4645e9[_0xb489dd(0xfe)]);if(_0x3eb208){const _0x3d24a0=_0x3eb208['info'];global_registry['cloudProvider']=_0x3d24a0[_0xb489dd(0xc2)],global_registry['clusterRegion']=_0x3d24a0[_0xb489dd(0xf2)],global_registry[_0xb489dd(0xe9)]=_0x3d24a0[_0xb489dd(0xe9)];const _0x419344=await _0x523999[_0xb489dd(0x105)](getCloudProviderObject,_0x3d24a0[_0xb489dd(0xc2)],_0x3d24a0[_0xb489dd(0xe9)],_0x3d24a0[_0xb489dd(0xfc)],_0x340b2f,webSocketUtils,_0x4645e9),[_0x51d287,_0x2a4fb2,_0x36debd,_0xbc83c8,_0x570481,_0x2efee5]=await _0x523999[_0xb489dd(0x103)](createK8sClient,_0x419344,_0x4645e9['skipTlsCertVerify']);await _0x523999[_0xb489dd(0x103)](scaleUpHubDeployment,_0x2a4fb2,_0x3d24a0[_0xb489dd(0xfc)]),logger[_0xb489dd(0xdb)](_0x523999[_0xb489dd(0xfa)]),process[_0xb489dd(0xc5)](0x0);}_0x523999[_0xb489dd(0xc9)](_0x43da53[_0xb489dd(0xfb)],0x191)&&(logger[_0xb489dd(0x10c)](_0x523999[_0xb489dd(0xbe)]),await _0x523999['VXifm'](sendInstrumentationEvent,_0x4645e9,_0x523999['THMIM'],messageTypes['ERROR'],_0x523999[_0xb489dd(0x101)],null,_0x4645e9),process[_0xb489dd(0xc5)](0x1)),_0x523999[_0xb489dd(0x104)](_0x43da53[_0xb489dd(0xfb)],0x190)&&(logger['error'](JSON['parse'](_0x43da53[_0xb489dd(0xf1)])['message']),await _0x523999[_0xb489dd(0xeb)](sendInstrumentationEvent,_0x4645e9,_0x523999[_0xb489dd(0xcb)],messageTypes[_0xb489dd(0xcd)],_0x523999[_0xb489dd(0xdc)],null,_0x4645e9),process['exit'](0x1)),logger[_0xb489dd(0x10c)](_0xb489dd(0xc8)+JSON['stringify'](_0x43da53)),await _0x523999['jnTVx'](sendInstrumentationEvent,_0x4645e9,_0x523999[_0xb489dd(0xcb)],messageTypes[_0xb489dd(0xcd)],_0x523999['ZIVnG'],_0x43da53,_0x4645e9),process[_0xb489dd(0xc5)](0x1);}catch(_0x435319){const _0x19d21c='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x435319+'\x20\x0a'+JSON['stringify'](_0x435319[_0xb489dd(0xf4)])+'\x20';logger[_0xb489dd(0x10c)](_0x19d21c),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a20_0xedad(){const _0x1b5d38=['strict','epilogue','40fbKjKW','254375kWMjFa','327482ojKVMh','commandDir','11280QogwrS','desc','2374825vCvxAZ','Stop\x20a\x20running\x20Automation\x20grid.','usage','recommendCommands','15691aLNLQq','demandCommand','973OvHGJl','3rYqoPl','ORPYX','1441542zaMnSl','../config/constants','builder','help','tihgP','1848lbsUfN','18378PdYKjd','stop_commands','2043ElYJIR','stop','4vPpIYU','handler'];a20_0xedad=function(){return _0x1b5d38;};return a20_0xedad();}const a20_0x5e57e3=a20_0x28a8;function a20_0x28a8(_0x12b81b,_0x253073){const _0xedad2b=a20_0xedad();return a20_0x28a8=function(_0x28a8a1,_0x2a294d){_0x28a8a1=_0x28a8a1-0x138;let _0x46faff=_0xedad2b[_0x28a8a1];return _0x46faff;},a20_0x28a8(_0x12b81b,_0x253073);}(function(_0x1bcb04,_0x3f94ac){const _0x5229c4=a20_0x28a8,_0x2d0283=_0x1bcb04();while(!![]){try{const _0x320c1d=parseInt(_0x5229c4(0x13e))/0x1+-parseInt(_0x5229c4(0x14b))/0x2*(-parseInt(_0x5229c4(0x149))/0x3)+-parseInt(_0x5229c4(0x138))/0x4*(-parseInt(_0x5229c4(0x142))/0x5)+parseInt(_0x5229c4(0x151))/0x6*(-parseInt(_0x5229c4(0x148))/0x7)+-parseInt(_0x5229c4(0x140))/0x8*(parseInt(_0x5229c4(0x153))/0x9)+parseInt(_0x5229c4(0x13c))/0xa*(-parseInt(_0x5229c4(0x13d))/0xb)+-parseInt(_0x5229c4(0x150))/0xc*(parseInt(_0x5229c4(0x146))/0xd);if(_0x320c1d===_0x3f94ac)break;else _0x2d0283['push'](_0x2d0283['shift']());}catch(_0x35b772){_0x2d0283['push'](_0x2d0283['shift']());}}}(a20_0xedad,0x79d45));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5e57e3(0x14c));exports['command']='stop',exports[a20_0x5e57e3(0x141)]=a20_0x5e57e3(0x143),exports[a20_0x5e57e3(0x14d)]=function(_0x55b0c7){const _0x22dbdc=a20_0x5e57e3,_0x1b25fd={};_0x1b25fd[_0x22dbdc(0x14f)]=_0x22dbdc(0x152),_0x1b25fd[_0x22dbdc(0x14a)]=_0x22dbdc(0x14e);const _0xd3382=_0x1b25fd;return _0x55b0c7[_0x22dbdc(0x144)](HELP_HEADER_MESSAGE[_0x22dbdc(0x154)])[_0x22dbdc(0x13b)](HELP_FOOTER_MESSAGE)[_0x22dbdc(0x13f)](_0xd3382[_0x22dbdc(0x14f)])[_0x22dbdc(0x147)]()[_0x22dbdc(0x145)]()[_0x22dbdc(0x13a)]()['help'](_0xd3382['ORPYX']);},exports[a20_0x5e57e3(0x139)]=function(_0x59cf7f){};
1
+ const a20_0x478619=a20_0x2f53;(function(_0x1fc322,_0x512beb){const _0x34a36f=a20_0x2f53,_0x530a67=_0x1fc322();while(!![]){try{const _0x56f640=parseInt(_0x34a36f(0x78))/0x1+parseInt(_0x34a36f(0x7b))/0x2*(parseInt(_0x34a36f(0x7a))/0x3)+parseInt(_0x34a36f(0x70))/0x4*(-parseInt(_0x34a36f(0x80))/0x5)+parseInt(_0x34a36f(0x84))/0x6*(parseInt(_0x34a36f(0x7f))/0x7)+parseInt(_0x34a36f(0x79))/0x8*(parseInt(_0x34a36f(0x74))/0x9)+parseInt(_0x34a36f(0x82))/0xa+-parseInt(_0x34a36f(0x77))/0xb*(parseInt(_0x34a36f(0x86))/0xc);if(_0x56f640===_0x512beb)break;else _0x530a67['push'](_0x530a67['shift']());}catch(_0x424e46){_0x530a67['push'](_0x530a67['shift']());}}}(a20_0x46b5,0xabf9a));function a20_0x46b5(){const _0x9d7201=['123514YPJRvw','2512admybd','266265LzyKgb','10woxIMm','strict','help','gdfRZ','1083341qDyJJo','20OhXJjO','epilogue','8157090IhVVuZ','Stop\x20a\x20running\x20Automation\x20grid.','24jQOXUq','stop_commands','12SzGmVB','command','1135168VQIzKM','HXreW','handler','stop','36585eiGsdD','builder','../config/constants','15827702SkvwFO'];a20_0x46b5=function(){return _0x9d7201;};return a20_0x46b5();}function a20_0x2f53(_0x3328f4,_0x3ea3ad){const _0x46b556=a20_0x46b5();return a20_0x2f53=function(_0x2f5319,_0xf2c772){_0x2f5319=_0x2f5319-0x6f;let _0x35bd5b=_0x46b556[_0x2f5319];return _0x35bd5b;},a20_0x2f53(_0x3328f4,_0x3ea3ad);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x478619(0x76));exports[a20_0x478619(0x6f)]=a20_0x478619(0x73),exports['desc']=a20_0x478619(0x83),exports[a20_0x478619(0x75)]=function(_0x1489b9){const _0x5a0115=a20_0x478619,_0x3edef5={};_0x3edef5[_0x5a0115(0x7e)]=_0x5a0115(0x85),_0x3edef5[_0x5a0115(0x71)]='help';const _0xc8cd16=_0x3edef5;return _0x1489b9['usage'](HELP_HEADER_MESSAGE[_0x5a0115(0x73)])[_0x5a0115(0x81)](HELP_FOOTER_MESSAGE)['commandDir'](_0xc8cd16[_0x5a0115(0x7e)])['demandCommand']()['recommendCommands']()[_0x5a0115(0x7c)]()[_0x5a0115(0x7d)](_0xc8cd16[_0x5a0115(0x71)]);},exports[a20_0x478619(0x72)]=function(_0x11a59e){};
@@ -1 +1 @@
1
- const a21_0x5ade58=a21_0xf271;(function(_0x2e9875,_0x3b48f5){const _0x5bf5f9=a21_0xf271,_0x2b7d08=_0x2e9875();while(!![]){try{const _0x586992=-parseInt(_0x5bf5f9(0x1b7))/0x1*(-parseInt(_0x5bf5f9(0x1a7))/0x2)+parseInt(_0x5bf5f9(0x1ce))/0x3*(parseInt(_0x5bf5f9(0x1ec))/0x4)+parseInt(_0x5bf5f9(0x1d8))/0x5*(-parseInt(_0x5bf5f9(0x1d3))/0x6)+parseInt(_0x5bf5f9(0x1c6))/0x7*(parseInt(_0x5bf5f9(0x1b9))/0x8)+parseInt(_0x5bf5f9(0x1ea))/0x9*(parseInt(_0x5bf5f9(0x19e))/0xa)+parseInt(_0x5bf5f9(0x1c7))/0xb*(-parseInt(_0x5bf5f9(0x1af))/0xc)+-parseInt(_0x5bf5f9(0x1ab))/0xd;if(_0x586992===_0x3b48f5)break;else _0x2b7d08['push'](_0x2b7d08['shift']());}catch(_0x5d8414){_0x2b7d08['push'](_0x2b7d08['shift']());}}}(a21_0x93f4,0xe6e4f));function a21_0x93f4(){const _0x1e9437=['958440YCzRrZ','RtNWf','Ulnqt','../../utils/createk8sClient','SYFxN','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','../../utils/utilityMethods','addListeners','readFileSync','sVsgP','Stop\x20a\x20running\x20Automation\x20grid.','fVwEF','stack','skipTlsCertVerify','info','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','<UsernamePlaceholder>','3080680fqRFgc','stop-grid-called','MwtAA','handler','BeHEd','rPbZU','gridId','username','../../config/logger','11882ycituV','password','XNFxE','DupBh','58166771yUqguB','tDgpS','fEwri','kXOWY','36RBYVgs','statusCode','reconnecting-websocket','VlgsJ','usage','pxfWi','unauthorised','bstackUsername','215IWJRli','Stopping\x20grid\x20','8UWYGPN','Browserstack','string','bstackAccesskey','skip-tls-cert-verify','options','default','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','YWEGt','GrOaK','clusterName','../../utils/gridComponents','7437878JeWKZU','1356553ZsQMCF','connectionTimeout','argv','grid-id','Adding\x20Websocket\x20listeners','existsSync','parse','21XKDzFZ','help','message','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','server-error','7944FQlhFM','stringify','clusterRegion','type','cloudProvider','285rPlYhB','init-not-called','Grid\x20stoppped.','exit','invalid-grid-id','ERROR','OeDXp','stop','region','GOzBG','description','debug','../../utils/webSocketUtils','WebSocket','oIuVU','name','replace','Skip\x20insecure\x20cert\x20verification.','54shszAE','Txzni'];a21_0x93f4=function(){return _0x1e9437;};return a21_0x93f4();}function a21_0xf271(_0x219140,_0x40d012){const _0x93f469=a21_0x93f4();return a21_0xf271=function(_0xf27185,_0x50a5ed){_0xf27185=_0xf27185-0x198;let _0x524ba0=_0x93f469[_0xf27185];return _0x524ba0;},a21_0xf271(_0x219140,_0x40d012);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5ade58(0x1b1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5ade58(0x1a6)),{getCredentialsPath,getGridDetails}=require(a21_0x5ade58(0x1f2)),{scaleDownHubDeployment}=require(a21_0x5ade58(0x1c5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x5ade58(0x1e4)),{createK8sClient}=require(a21_0x5ade58(0x1ef)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports['desc']=a21_0x5ade58(0x1f6),exports['builder']=function(_0x3bebab){const _0x33d289=a21_0x5ade58,_0x257536={};_0x257536[_0x33d289(0x1c3)]=_0x33d289(0x19c),_0x257536['sVsgP']=_0x33d289(0x1bb),_0x257536['pxfWi']=_0x33d289(0x1e9),_0x257536['rPbZU']='boolean',_0x257536[_0x33d289(0x1b2)]=_0x33d289(0x1cf);const _0x23e0c7=_0x257536,_0x3f9590={};_0x3f9590[_0x33d289(0x1e2)]=_0x23e0c7[_0x33d289(0x1c3)],_0x3f9590[_0x33d289(0x1d6)]=_0x23e0c7[_0x33d289(0x1f5)];const _0xc6a59d={};_0xc6a59d['description']=_0x23e0c7[_0x33d289(0x1b4)],_0xc6a59d['type']=_0x23e0c7[_0x33d289(0x1a3)],_0xc6a59d[_0x33d289(0x1bf)]=![];const _0x4c0018={};return _0x4c0018[_0x33d289(0x1ca)]=_0x3f9590,_0x4c0018[_0x33d289(0x1bd)]=_0xc6a59d,_0x3bebab[_0x33d289(0x1b3)](HELP_HEADER_MESSAGE[_0x33d289(0x1df)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x33d289(0x1be)](_0x4c0018)[_0x33d289(0x1cf)](_0x23e0c7[_0x33d289(0x1b2)])[_0x33d289(0x1c9)];},exports[a21_0x5ade58(0x1a1)]=async function(_0x23c270){const _0x273238=a21_0x5ade58,_0x4d5320={'GOzBG':_0x273238(0x1f1),'zqYBX':function(_0x48b20a){return _0x48b20a();},'kXOWY':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DupBh':function(_0x9df66f,_0x156cda,_0x206d11,_0x33daea,_0x396b9c,_0x2821b8,_0x1c51a){return _0x9df66f(_0x156cda,_0x206d11,_0x33daea,_0x396b9c,_0x2821b8,_0x1c51a);},'tDgpS':_0x273238(0x19f),'Ulnqt':_0x273238(0x1d9),'fEwri':function(_0x827d85){return _0x827d85();},'orxfk':_0x273238(0x19d),'MwtAA':'<PasswordPlaceholder>','lAsBO':_0x273238(0x1cb),'YWEGt':function(_0x21057e,_0x591971,_0xe5f352,_0x389f05){return _0x21057e(_0x591971,_0xe5f352,_0x389f05);},'fVwEF':function(_0x1547af,_0x50ecdf,_0x134798){return _0x1547af(_0x50ecdf,_0x134798);},'XsOsC':_0x273238(0x1da),'XNFxE':function(_0x5662a3,_0x3fd299){return _0x5662a3===_0x3fd299;},'SYFxN':_0x273238(0x1c0),'RtNWf':_0x273238(0x1b5),'OeDXp':function(_0x353d33,_0x79dfb9){return _0x353d33===_0x79dfb9;},'BeHEd':_0x273238(0x1dc),'oIuVU':function(_0x308e01,_0x3a0ffd,_0x1ba502,_0x6d128b,_0x8df333,_0x19731b,_0x390b41){return _0x308e01(_0x3a0ffd,_0x1ba502,_0x6d128b,_0x8df333,_0x19731b,_0x390b41);},'Txzni':_0x273238(0x1d2)};let _0x4c235d;try{!_0x23c270[_0x273238(0x1a4)]&&(logger['error'](_0x4d5320[_0x273238(0x1e1)]),process['exit'](0x1));!fs[_0x273238(0x1cc)](_0x4d5320['zqYBX'](getCredentialsPath))&&(logger[_0x273238(0x1c1)](_0x4d5320[_0x273238(0x1ae)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320['tDgpS'],messageTypes[_0x273238(0x1dd)],_0x4d5320[_0x273238(0x1ee)],null,_0x23c270),process[_0x273238(0x1db)](0x1));logger['info'](_0x273238(0x1b8)+_0x23c270[_0x273238(0x1a4)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320['tDgpS'],messageTypes['INFO'],null,null,_0x23c270);const _0x276fff=JSON[_0x273238(0x1cd)](fs[_0x273238(0x1f4)](_0x4d5320[_0x273238(0x1ad)](getCredentialsPath)));global_registry[_0x273238(0x1b6)]=_0x276fff[_0x273238(0x1ba)]['username'],global_registry[_0x273238(0x1bc)]=_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a8)];const _0x1df23a=WS_ENDPOINT['replace'](_0x4d5320['orxfk'],_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a5)])[_0x273238(0x1e8)](_0x4d5320[_0x273238(0x1a0)],_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a8)]),_0x57e5e4={};_0x57e5e4[_0x273238(0x1e5)]=ws,_0x57e5e4[_0x273238(0x1c8)]=0x36ee80,_0x4c235d=new ReconnectingWebSocket(_0x1df23a,[],_0x57e5e4),logger[_0x273238(0x1e3)](_0x4d5320['lAsBO']),webSocketUtils[_0x273238(0x1f3)](_0x4c235d,_0x23c270['user'],_0x23c270[_0x273238(0x1a8)]);const [_0x132fe7,_0x3b9d48]=await _0x4d5320[_0x273238(0x1c2)](getGridDetails,_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a5)],_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a8)],_0x23c270[_0x273238(0x1a4)]);if(_0x3b9d48){const _0x531573=_0x3b9d48[_0x273238(0x19b)];global_registry[_0x273238(0x1d7)]=_0x531573['cloudProvider'],global_registry[_0x273238(0x1d5)]=_0x531573[_0x273238(0x1e0)],global_registry['clusterName']=_0x531573[_0x273238(0x1c4)];const _0x458fda=await _0x4d5320['DupBh'](getCloudProviderObject,_0x531573[_0x273238(0x1d7)],_0x531573[_0x273238(0x1c4)],_0x531573[_0x273238(0x1e7)],_0x4c235d,webSocketUtils,_0x23c270),[_0x1c5719,_0x319b2a,_0x24a2be,_0x442601,_0x91fb73,_0x3aaa7e]=await _0x4d5320[_0x273238(0x198)](createK8sClient,_0x458fda,_0x23c270[_0x273238(0x19a)]);await _0x4d5320['fVwEF'](scaleDownHubDeployment,_0x319b2a,_0x531573[_0x273238(0x1e7)]),logger[_0x273238(0x19b)](_0x4d5320['XsOsC']),process[_0x273238(0x1db)](0x0);}_0x4d5320[_0x273238(0x1a9)](_0x132fe7[_0x273238(0x1b0)],0x191)&&(logger[_0x273238(0x1c1)](_0x4d5320[_0x273238(0x1f0)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320['tDgpS'],messageTypes['ERROR'],_0x4d5320[_0x273238(0x1ed)],null,_0x23c270),process[_0x273238(0x1db)](0x1)),_0x4d5320[_0x273238(0x1de)](_0x132fe7[_0x273238(0x1b0)],0x190)&&(logger['error'](JSON[_0x273238(0x1cd)](_0x132fe7['body'])[_0x273238(0x1d0)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320[_0x273238(0x1ac)],messageTypes['ERROR'],_0x4d5320[_0x273238(0x1a2)],null,_0x23c270),process[_0x273238(0x1db)](0x1)),logger[_0x273238(0x1c1)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x273238(0x1d4)](_0x132fe7)),await _0x4d5320[_0x273238(0x1e6)](sendInstrumentationEvent,_0x23c270,_0x4d5320[_0x273238(0x1ac)],messageTypes['ERROR'],_0x4d5320[_0x273238(0x1eb)],_0x132fe7,_0x23c270),process[_0x273238(0x1db)](0x1);}catch(_0x2206a0){const _0x9b8c98=_0x273238(0x1d1)+_0x2206a0+'\x20\x0a'+JSON[_0x273238(0x1d4)](_0x2206a0[_0x273238(0x199)])+'\x20';logger['error'](_0x9b8c98),process[_0x273238(0x1db)](0x1);}};
1
+ const a21_0x58eee4=a21_0x4643;function a21_0x4643(_0x38f879,_0xf94017){const _0x5148ec=a21_0x5148();return a21_0x4643=function(_0x4643ba,_0x2b8c0d){_0x4643ba=_0x4643ba-0x184;let _0x4e98c2=_0x5148ec[_0x4643ba];return _0x4e98c2;},a21_0x4643(_0x38f879,_0xf94017);}(function(_0x345661,_0x2a8688){const _0x4db639=a21_0x4643,_0x443177=_0x345661();while(!![]){try{const _0x45ca83=-parseInt(_0x4db639(0x1b4))/0x1+parseInt(_0x4db639(0x1d2))/0x2+parseInt(_0x4db639(0x1b0))/0x3*(-parseInt(_0x4db639(0x1a7))/0x4)+-parseInt(_0x4db639(0x1ba))/0x5+-parseInt(_0x4db639(0x1a8))/0x6*(parseInt(_0x4db639(0x195))/0x7)+parseInt(_0x4db639(0x196))/0x8+parseInt(_0x4db639(0x18e))/0x9*(parseInt(_0x4db639(0x1ad))/0xa);if(_0x45ca83===_0x2a8688)break;else _0x443177['push'](_0x443177['shift']());}catch(_0x23b015){_0x443177['push'](_0x443177['shift']());}}}(a21_0x5148,0x2580b));function a21_0x5148(){const _0x1cc8af=['zqLTw','126485ZsAmVh','info','cVDQi','Adding\x20Websocket\x20listeners','ElwQL','clusterRegion','291115QkIWwr','clusterName','../../utils/instrumentationUtils','Ndnia','Stop\x20a\x20running\x20Automation\x20grid.','error','yVLBL','invalid-grid-id','../../utils/webSocketUtils','body','tffie','grid','../../utils/gridComponents','bstackAccesskey','skip-tls-cert-verify','stop-grid-called','ovHnL','username','desc','addListeners','skipTlsCertVerify','stop','eglEJ','eSbRL','29420ENWfMz','<PasswordPlaceholder>','builder','parse','nGXjf','message','<UsernamePlaceholder>','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Stopping\x20grid\x20','../../config/constants','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bsUrw','../../utils/utilityMethods','RYygb','CDqUJ','gridId','type','54PyqlGH','cloudProvider','GnCIP','string','stringify','Skip\x20insecure\x20cert\x20verification.','awbWO','2191tbzhFU','1846144ycKcyL','nmcBJ','argv','ERROR','unauthorised','INFO','help','grid-id','password','description','default','cfgUy','exit','FQuzG','replace','server-error','WebSocket','8iOANrF','4806NbdJdW','name','init-not-called','uRhlZ','statusCode','593680EoaRuw','stack','Grid\x20stoppped.','18981klWneG','Browserstack','user'];a21_0x5148=function(){return _0x1cc8af;};return a21_0x5148();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x58eee4(0x185)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x58eee4(0x189)),{scaleDownHubDeployment}=require(a21_0x58eee4(0x1c6)),{sendInstrumentationEvent}=require(a21_0x58eee4(0x1bc)),webSocketUtils=require(a21_0x58eee4(0x1c2)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a21_0x58eee4(0x1c5),exports[a21_0x58eee4(0x1cc)]=a21_0x58eee4(0x1be),exports[a21_0x58eee4(0x1d4)]=function(_0xf206df){const _0x13ea4c=a21_0x58eee4,_0x41a415={};_0x41a415[_0x13ea4c(0x18b)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x41a415[_0x13ea4c(0x1d6)]=_0x13ea4c(0x191),_0x41a415[_0x13ea4c(0x1bd)]=_0x13ea4c(0x193),_0x41a415['uRhlZ']='boolean',_0x41a415[_0x13ea4c(0x188)]=_0x13ea4c(0x19c);const _0x3a3a33=_0x41a415,_0x28efdd={};_0x28efdd[_0x13ea4c(0x19f)]=_0x3a3a33['CDqUJ'],_0x28efdd['type']=_0x3a3a33['nGXjf'];const _0x2b801b={};_0x2b801b[_0x13ea4c(0x19f)]=_0x3a3a33[_0x13ea4c(0x1bd)],_0x2b801b[_0x13ea4c(0x18d)]=_0x3a3a33[_0x13ea4c(0x1ab)],_0x2b801b[_0x13ea4c(0x1a0)]=![];const _0x3702bc={};return _0x3702bc[_0x13ea4c(0x19d)]=_0x28efdd,_0x3702bc[_0x13ea4c(0x1c8)]=_0x2b801b,_0xf206df['usage'](HELP_HEADER_MESSAGE[_0x13ea4c(0x1cf)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x3702bc)[_0x13ea4c(0x19c)](_0x3a3a33[_0x13ea4c(0x188)])[_0x13ea4c(0x198)];},exports['handler']=async function(_0x458986){const _0x1f54eb=a21_0x58eee4,_0x14f955={'ElwQL':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','eSbRL':function(_0x4ff97e){return _0x4ff97e();},'cfgUy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zqLTw':function(_0x3ddbc2,_0x32a758,_0x5da15c,_0xc1a3ff,_0x210ebb,_0x15baa1,_0x4f2084){return _0x3ddbc2(_0x32a758,_0x5da15c,_0xc1a3ff,_0x210ebb,_0x15baa1,_0x4f2084);},'FQuzG':_0x1f54eb(0x1c9),'ofhjT':_0x1f54eb(0x1aa),'awbWO':_0x1f54eb(0x1d8),'tffie':_0x1f54eb(0x1d3),'nmcBJ':_0x1f54eb(0x1b7),'yVLBL':function(_0x164e3d,_0xe00361,_0x2e3bd0,_0x35a3ed){return _0x164e3d(_0xe00361,_0x2e3bd0,_0x35a3ed);},'cVDQi':function(_0x4035c7,_0x4152f4,_0x3b1fd7){return _0x4035c7(_0x4152f4,_0x3b1fd7);},'GnCIP':_0x1f54eb(0x1af),'UWPlt':function(_0x21b0ea,_0x1a4fb1){return _0x21b0ea===_0x1a4fb1;},'PxnAS':_0x1f54eb(0x187),'LoJzA':_0x1f54eb(0x19a),'ovHnL':function(_0x92f652,_0xbc71a7){return _0x92f652===_0xbc71a7;},'eglEJ':function(_0x36df1e,_0x3db371,_0x355a0e,_0x3e2692,_0x32fecf,_0x3accef,_0x421782){return _0x36df1e(_0x3db371,_0x355a0e,_0x3e2692,_0x32fecf,_0x3accef,_0x421782);},'RYygb':_0x1f54eb(0x1c1),'SHLJY':_0x1f54eb(0x1a5)};let _0x73cc1a;try{!_0x458986[_0x1f54eb(0x18c)]&&(logger[_0x1f54eb(0x1bf)](_0x14f955[_0x1f54eb(0x1b8)]),process[_0x1f54eb(0x1a2)](0x1));!fs['existsSync'](_0x14f955[_0x1f54eb(0x1d1)](getCredentialsPath))&&(logger[_0x1f54eb(0x1bf)](_0x14f955[_0x1f54eb(0x1a1)]),await _0x14f955[_0x1f54eb(0x1b3)](sendInstrumentationEvent,_0x458986,_0x14f955['FQuzG'],messageTypes[_0x1f54eb(0x199)],_0x14f955['ofhjT'],null,_0x458986),process[_0x1f54eb(0x1a2)](0x1));logger[_0x1f54eb(0x1b5)](_0x1f54eb(0x184)+_0x458986['gridId']),await _0x14f955[_0x1f54eb(0x1b3)](sendInstrumentationEvent,_0x458986,_0x14f955['FQuzG'],messageTypes[_0x1f54eb(0x19b)],null,null,_0x458986);const _0x5453e1=JSON[_0x1f54eb(0x1d5)](fs['readFileSync'](_0x14f955[_0x1f54eb(0x1d1)](getCredentialsPath)));global_registry['bstackUsername']=_0x5453e1[_0x1f54eb(0x1b1)][_0x1f54eb(0x1cb)],global_registry[_0x1f54eb(0x1c7)]=_0x5453e1[_0x1f54eb(0x1b1)]['password'];const _0x10f4e0=WS_ENDPOINT[_0x1f54eb(0x1a4)](_0x14f955[_0x1f54eb(0x194)],_0x5453e1[_0x1f54eb(0x1b1)]['username'])[_0x1f54eb(0x1a4)](_0x14f955[_0x1f54eb(0x1c4)],_0x5453e1[_0x1f54eb(0x1b1)][_0x1f54eb(0x19e)]),_0x257f62={};_0x257f62[_0x1f54eb(0x1a6)]=ws,_0x257f62['connectionTimeout']=0x36ee80,_0x73cc1a=new ReconnectingWebSocket(_0x10f4e0,[],_0x257f62),logger['debug'](_0x14f955[_0x1f54eb(0x197)]),webSocketUtils[_0x1f54eb(0x1cd)](_0x73cc1a,_0x458986[_0x1f54eb(0x1b2)],_0x458986['password']);const [_0x11dadf,_0x3d8992]=await _0x14f955[_0x1f54eb(0x1c0)](getGridDetails,_0x5453e1[_0x1f54eb(0x1b1)][_0x1f54eb(0x1cb)],_0x5453e1['Browserstack'][_0x1f54eb(0x19e)],_0x458986[_0x1f54eb(0x18c)]);if(_0x3d8992){const _0x57df6d=_0x3d8992[_0x1f54eb(0x1b5)];global_registry['cloudProvider']=_0x57df6d[_0x1f54eb(0x18f)],global_registry[_0x1f54eb(0x1b9)]=_0x57df6d[_0x1f54eb(0x186)],global_registry['clusterName']=_0x57df6d[_0x1f54eb(0x1bb)];const _0x4d1147=await _0x14f955[_0x1f54eb(0x1b3)](getCloudProviderObject,_0x57df6d[_0x1f54eb(0x18f)],_0x57df6d['clusterName'],_0x57df6d[_0x1f54eb(0x1a9)],_0x73cc1a,webSocketUtils,_0x458986),[_0x4b7c30,_0x59286b,_0x41f7b9,_0x2741ec,_0x32fc94,_0x3dd7fa]=await _0x14f955[_0x1f54eb(0x1b6)](createK8sClient,_0x4d1147,_0x458986[_0x1f54eb(0x1ce)]);await _0x14f955['cVDQi'](scaleDownHubDeployment,_0x59286b,_0x57df6d[_0x1f54eb(0x1a9)]),logger[_0x1f54eb(0x1b5)](_0x14f955[_0x1f54eb(0x190)]),process[_0x1f54eb(0x1a2)](0x0);}_0x14f955['UWPlt'](_0x11dadf[_0x1f54eb(0x1ac)],0x191)&&(logger[_0x1f54eb(0x1bf)](_0x14f955['PxnAS']),await _0x14f955[_0x1f54eb(0x1b3)](sendInstrumentationEvent,_0x458986,_0x14f955['FQuzG'],messageTypes[_0x1f54eb(0x199)],_0x14f955['LoJzA'],null,_0x458986),process[_0x1f54eb(0x1a2)](0x1)),_0x14f955[_0x1f54eb(0x1ca)](_0x11dadf['statusCode'],0x190)&&(logger['error'](JSON[_0x1f54eb(0x1d5)](_0x11dadf[_0x1f54eb(0x1c3)])[_0x1f54eb(0x1d7)]),await _0x14f955[_0x1f54eb(0x1d0)](sendInstrumentationEvent,_0x458986,_0x14f955[_0x1f54eb(0x1a3)],messageTypes[_0x1f54eb(0x199)],_0x14f955[_0x1f54eb(0x18a)],null,_0x458986),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1f54eb(0x192)](_0x11dadf)),await _0x14f955[_0x1f54eb(0x1d0)](sendInstrumentationEvent,_0x458986,_0x14f955[_0x1f54eb(0x1a3)],messageTypes[_0x1f54eb(0x199)],_0x14f955['SHLJY'],_0x11dadf,_0x458986),process[_0x1f54eb(0x1a2)](0x1);}catch(_0x2aaf11){const _0x41eeca=_0x1f54eb(0x1d9)+_0x2aaf11+'\x20\x0a'+JSON[_0x1f54eb(0x192)](_0x2aaf11[_0x1f54eb(0x1ae)])+'\x20';logger[_0x1f54eb(0x1bf)](_0x41eeca),process[_0x1f54eb(0x1a2)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x5211db=a22_0x2c3e;(function(_0x3d5804,_0x125d89){const _0x1eccb1=a22_0x2c3e,_0x2eee73=_0x3d5804();while(!![]){try{const _0x33f5dc=parseInt(_0x1eccb1(0xfc))/0x1*(parseInt(_0x1eccb1(0xe9))/0x2)+-parseInt(_0x1eccb1(0x127))/0x3*(parseInt(_0x1eccb1(0x11a))/0x4)+parseInt(_0x1eccb1(0xbb))/0x5+parseInt(_0x1eccb1(0x111))/0x6*(parseInt(_0x1eccb1(0xd0))/0x7)+-parseInt(_0x1eccb1(0xf9))/0x8*(parseInt(_0x1eccb1(0xef))/0x9)+parseInt(_0x1eccb1(0x10c))/0xa+parseInt(_0x1eccb1(0xdb))/0xb*(parseInt(_0x1eccb1(0x121))/0xc);if(_0x33f5dc===_0x125d89)break;else _0x2eee73['push'](_0x2eee73['shift']());}catch(_0x32e4dc){_0x2eee73['push'](_0x2eee73['shift']());}}}(a22_0x5550,0x4cfe9),require(a22_0x5211db(0xe5))[a22_0x5211db(0xfb)]());let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl='grid-api.browserstack.com';const _env=(process['env'][a22_0x5211db(0xe6)]||a22_0x5211db(0x10a))['toLowerCase']();if(_env===a22_0x5211db(0xcb)||_env===a22_0x5211db(0x123))gridURL=a22_0x5211db(0xcd),bsApiUrl=a22_0x5211db(0xeb),agApiUrl=a22_0x5211db(0x117);else(_env===a22_0x5211db(0xea)||_env===a22_0x5211db(0xdd))&&(gridURL=a22_0x5211db(0xc4),bsApiUrl=a22_0x5211db(0xc1),agApiUrl=a22_0x5211db(0xc5));exports[a22_0x5211db(0xbf)]=process[a22_0x5211db(0x102)][a22_0x5211db(0xbf)]||gridURL,exports[a22_0x5211db(0xd3)]=process[a22_0x5211db(0x102)][a22_0x5211db(0xd3)]||bsApiUrl,exports[a22_0x5211db(0xbe)]=process[a22_0x5211db(0x102)]['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x5211db(0x106)+this['AG_API_URL']+a22_0x5211db(0x10d),exports[a22_0x5211db(0x116)]=a22_0x5211db(0xd7),exports[a22_0x5211db(0x108)]=a22_0x5211db(0x114),exports[a22_0x5211db(0xcc)]=a22_0x5211db(0x118),exports[a22_0x5211db(0xbc)]='aws',exports[a22_0x5211db(0x107)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x5211db(0xc3),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x5211db(0xc8),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x5211db(0xf1)]=a22_0x5211db(0x126),exports['GCP']=a22_0x5211db(0xdf),exports[a22_0x5211db(0xe4)]=[this[a22_0x5211db(0xbc)],this[a22_0x5211db(0xf1)],this[a22_0x5211db(0xf3)]];const a22_0x573e4d={};a22_0x573e4d[a22_0x5211db(0xfa)]='browserstack:managedBy',a22_0x573e4d[a22_0x5211db(0xe3)]=a22_0x5211db(0xce);const a22_0x30cf60={};a22_0x30cf60[a22_0x5211db(0xfa)]=a22_0x5211db(0xb7),a22_0x30cf60[a22_0x5211db(0xe3)]=a22_0x5211db(0x119);const common_hst_tags_list=[a22_0x573e4d,a22_0x30cf60];function a22_0x2c3e(_0x4cb890,_0x26e76b){const _0x5550a1=a22_0x5550();return a22_0x2c3e=function(_0x2c3e9b,_0x2b8fd1){_0x2c3e9b=_0x2c3e9b-0xb7;let _0x102dcf=_0x5550a1[_0x2c3e9b];return _0x102dcf;},a22_0x2c3e(_0x4cb890,_0x26e76b);}if(process[a22_0x5211db(0x102)][a22_0x5211db(0xc2)]){const parsedTags=process[a22_0x5211db(0x102)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x5211db(0xdc)](',');parsedTags[a22_0x5211db(0x10f)](_0x1744eb=>{const _0x31e17e=a22_0x5211db,_0x4c02ea=_0x1744eb[_0x31e17e(0xdc)](':'),_0x49d437={};_0x49d437['Key']=_0x4c02ea[0x0],_0x49d437[_0x31e17e(0xe3)]=_0x4c02ea[0x1],common_hst_tags_list[_0x31e17e(0xfe)](_0x49d437);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x21c833={};a22_0x21c833[a22_0x5211db(0xf4)]=a22_0x5211db(0xce),a22_0x21c833[a22_0x5211db(0xb7)]=a22_0x5211db(0x119),exports[a22_0x5211db(0xca)]=a22_0x21c833,exports[a22_0x5211db(0xe1)]=[this[a22_0x5211db(0xbc)]];const a22_0x1418c3={};a22_0x1418c3[a22_0x5211db(0x105)]=a22_0x5211db(0x122),a22_0x1418c3[a22_0x5211db(0x120)]='resourceInfo',a22_0x1418c3[a22_0x5211db(0x125)]='gridUrl',a22_0x1418c3['CLI_RUN_STARTED']=a22_0x5211db(0xda),a22_0x1418c3[a22_0x5211db(0x11f)]=a22_0x5211db(0xc6),exports[a22_0x5211db(0xe8)]=a22_0x1418c3,exports[a22_0x5211db(0xb8)]={},exports['LINK_MESSAGE']=a22_0x5211db(0xd6);const a22_0x482b3d={};a22_0x482b3d['root']=a22_0x5211db(0x101)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0xd4)]=a22_0x5211db(0xc9)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0xd2)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x110)]=a22_0x5211db(0x109)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)]={},a22_0x482b3d[a22_0x5211db(0xb9)]=a22_0x5211db(0xff)+this['LINK_MESSAGE'],a22_0x482b3d[a22_0x5211db(0x104)]=a22_0x5211db(0xc0)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11b)]=a22_0x5211db(0xcf)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0xf6)]=a22_0x5211db(0xd5)+this[a22_0x5211db(0x112)],a22_0x482b3d['pre_check']=a22_0x5211db(0xe0)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)][a22_0x5211db(0x10e)]=a22_0x5211db(0xde)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)][a22_0x5211db(0x100)]=a22_0x5211db(0xf2)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)][a22_0x5211db(0xf8)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x5211db(0x112)],exports['HELP_HEADER_MESSAGE']=a22_0x482b3d,exports[a22_0x5211db(0x115)]=a22_0x5211db(0x113);const a22_0x1a49d1={};a22_0x1a49d1['SUCCESS']=a22_0x5211db(0x11e),a22_0x1a49d1[a22_0x5211db(0xd9)]=a22_0x5211db(0xe7),a22_0x1a49d1[a22_0x5211db(0xd8)]=a22_0x5211db(0xc7),a22_0x1a49d1[a22_0x5211db(0xfd)]='warning',a22_0x1a49d1['UNKNOWN']='unknown',a22_0x1a49d1[a22_0x5211db(0x10b)]=null,exports[a22_0x5211db(0x11c)]=a22_0x1a49d1,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5211db(0xf0)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x5211db(0xe2);function a22_0x5550(){const _0x54481a=['GRID_URL','azure','14571QvNKkY','browserstack:service','global_registry','delete','DEFAULT_CLUSTER_DETAILS','1259335xZDpZA','AWS','us-east-1','AG_API_URL','DASHBOARD_ENDPOINT','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','api-preprod.bsstag.com','TURBOSCALE_CUSTOM_TAGS','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-preprod.bsstag.com','grid-api-preprod.bsstag.com','cliRunFinished','info','BSTACK-ATS-CLUSTER-HUB-HA','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HST_CLUSTER_TAGS','staging','DEFAULT_GRID_NAME','grid-devhst.bsstag.com','BrowserStack','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','749161oiAVjK','CLOUD_PROVIDER','configure','BS_API_URL','init','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','credentials','INFO','ERROR','cliRunStarted','11qjEeaQ','split','pre-prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','gcp','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','SUPPORTED_CLOUD_PROVIDERS','[REDACTED]','Value','ALL_SUPPORTED_CLOUD_PROVIDERS','dotenv','BROWSERSTACK_ENV','error','WS_EVENTS','489142eDJxIZ','preprod','api-devhst.bsstag.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','TRIAL_GRID_URL','CLUSTER','1096668WvUOoP','RAW_ARGS_REGEX','AZURE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','GCP','browserstack:managedBy','pre-check','stop','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','gridProfile','40nhyTdA','Key','config','1avjoUx','WARNING','push','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','grid-profile','connect','LOG','wss://','CLUSTER_DEP_STACK_NAME','IAM_USER_NAME','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','prod','NULL','5862800OfPdLr','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','root','forEach','create','6syzRPw','LINK_MESSAGE','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','BrowserStackIAMUser','HELP_FOOTER_MESSAGE','CP_CONFIG_FILE','grid-api-devhst.bsstag.com','high-scale-grid','BrowserStack-Automate-TurboScale','436kwuEjY','start','messageTypes','list','success','CLI_RUN_FINISHED','RESOURCES','3171612DaGiJP','log','stag','MessageDescription'];a22_0x5550=function(){return _0x54481a;};return a22_0x5550();}const a22_0x5042b2={};a22_0x5042b2[a22_0x5211db(0x103)]=a22_0x5211db(0xec);const a22_0x4c9f9b={};a22_0x4c9f9b[a22_0x5211db(0xf5)]=a22_0x5042b2,exports[a22_0x5211db(0x124)]=a22_0x4c9f9b,exports[a22_0x5211db(0xed)]=a22_0x5211db(0xf7);const a22_0x5acf24={};a22_0x5acf24[a22_0x5211db(0xee)]='high-scale-grid-cluster',a22_0x5acf24[a22_0x5211db(0xd1)]='aws',a22_0x5acf24['REGION']=a22_0x5211db(0xbd),exports[a22_0x5211db(0xba)]=a22_0x5acf24;
1
+ const a22_0x4eedea=a22_0x1b27;(function(_0x4a08bd,_0x54877a){const _0x527aae=a22_0x1b27,_0x4f20c2=_0x4a08bd();while(!![]){try{const _0x149b4c=-parseInt(_0x527aae(0x10d))/0x1+-parseInt(_0x527aae(0x13e))/0x2*(-parseInt(_0x527aae(0x123))/0x3)+parseInt(_0x527aae(0x159))/0x4*(-parseInt(_0x527aae(0x10f))/0x5)+parseInt(_0x527aae(0x126))/0x6*(-parseInt(_0x527aae(0x11a))/0x7)+-parseInt(_0x527aae(0x154))/0x8+parseInt(_0x527aae(0x110))/0x9*(parseInt(_0x527aae(0x178))/0xa)+-parseInt(_0x527aae(0x135))/0xb*(-parseInt(_0x527aae(0x129))/0xc);if(_0x149b4c===_0x54877a)break;else _0x4f20c2['push'](_0x4f20c2['shift']());}catch(_0x2d03b0){_0x4f20c2['push'](_0x4f20c2['shift']());}}}(a22_0x459b,0xa302d),require(a22_0x4eedea(0x133))['config']());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x4eedea(0x12b),agApiUrl=a22_0x4eedea(0x11c);const _env=(process[a22_0x4eedea(0x165)][a22_0x4eedea(0x134)]||a22_0x4eedea(0x16b))[a22_0x4eedea(0x12a)]();if(_env===a22_0x4eedea(0x115)||_env===a22_0x4eedea(0x112))gridURL=a22_0x4eedea(0x169),bsApiUrl=a22_0x4eedea(0x13a),agApiUrl=a22_0x4eedea(0x136);else(_env===a22_0x4eedea(0x122)||_env===a22_0x4eedea(0x15d))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x4eedea(0x124),agApiUrl=a22_0x4eedea(0x171));function a22_0x1b27(_0x40a00b,_0x3c3754){const _0x459b85=a22_0x459b();return a22_0x1b27=function(_0x1b27b9,_0x8232dd){_0x1b27b9=_0x1b27b9-0x10a;let _0x2b7432=_0x459b85[_0x1b27b9];return _0x2b7432;},a22_0x1b27(_0x40a00b,_0x3c3754);}exports[a22_0x4eedea(0x160)]=process[a22_0x4eedea(0x165)][a22_0x4eedea(0x160)]||gridURL,exports[a22_0x4eedea(0x161)]=process[a22_0x4eedea(0x165)][a22_0x4eedea(0x161)]||bsApiUrl,exports[a22_0x4eedea(0x10b)]=process[a22_0x4eedea(0x165)][a22_0x4eedea(0x10b)]||agApiUrl,exports[a22_0x4eedea(0x15e)]=a22_0x4eedea(0x16e)+this[a22_0x4eedea(0x10b)]+a22_0x4eedea(0x146),exports['CP_CONFIG_FILE']=a22_0x4eedea(0x11f),exports[a22_0x4eedea(0x120)]=a22_0x4eedea(0x138),exports[a22_0x4eedea(0x156)]=a22_0x4eedea(0x15c),exports[a22_0x4eedea(0x155)]=a22_0x4eedea(0x144),exports['CLUSTER_DEP_STACK_NAME']=a22_0x4eedea(0x130),exports[a22_0x4eedea(0x177)]=a22_0x4eedea(0x11d),exports[a22_0x4eedea(0x128)]=a22_0x4eedea(0x114),exports[a22_0x4eedea(0x15f)]='browserstack-turboscale-grid',exports[a22_0x4eedea(0x149)]=a22_0x4eedea(0x168),exports['GCP']=a22_0x4eedea(0x10c),exports[a22_0x4eedea(0x179)]=[this[a22_0x4eedea(0x155)],this[a22_0x4eedea(0x149)],this[a22_0x4eedea(0x164)]];function a22_0x459b(){const _0x4c0020=['dotenv','BROWSERSTACK_ENV','1507bSIfIZ','grid-api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','BrowserStackIAMUser','us-east-1','api-devhst.bsstag.com','[REDACTED]','LINK_MESSAGE','Value','113318XJGWZy','high-scale-grid-cluster','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','MessageDescription','WARNING','SUCCESS','aws','configure','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid-profile','TRIAL_GRID_URL','AZURE','LOG','INFO','global_registry','init','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLI_RUN_FINISHED','REGION','Key','pre_check','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','9145448jrxzIG','AWS','DEFAULT_GRID_NAME','ERROR','NULL','4MhDWWK','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','high-scale-grid','pre-prod','WS_ENDPOINT','TURBOSCALE_DEPLOYMENT','DASHBOARD_ENDPOINT','BS_API_URL','HST_CLUSTER_TAGS','CLI_ARGS_REGEX','GCP','env','CLUSTER','start','azure','grid-devhst.bsstag.com','TURBOSCALE_CUSTOM_TAGS','prod','stop','CLI_RUN_STARTED','wss://','connect','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid-api-preprod.bsstag.com','create','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','browserstack:managedBy','push','forEach','CLUSTER_AUTOSCALER_STACK_NAME','2330lcERcY','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','AG_API_URL','gcp','216243FXWxag','delete','1173610KwIcXX','39771jloYYV','cliRunFinished','stag','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-HUB-HA','staging','COMMON_HST_TAGS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','DEFAULT_CLUSTER_DETAILS','9947HddVsH','RAW_ARGS_REGEX','grid-api.browserstack.com','BSTACK-ATS-CLUSTER-AUTOSCALER','info','credentials','IAM_USER_NAME','HELP_FOOTER_MESSAGE','preprod','39SdHoiU','api-preprod.bsstag.com','list','1308iYYXjE','cliRunStarted','CLUSTER_HUB_HA_STACK_NAME','70548UHnzAN','toLowerCase','api.browserstack.com','CLOUD_PROVIDER','success','root','browserstack:service','BSTACK-ATS-CLUSTER','BrowserStack-Automate-TurboScale','split'];a22_0x459b=function(){return _0x4c0020;};return a22_0x459b();}const a22_0x31919a={};a22_0x31919a[a22_0x4eedea(0x151)]=a22_0x4eedea(0x174),a22_0x31919a[a22_0x4eedea(0x13d)]='BrowserStack';const a22_0x1872bc={};a22_0x1872bc[a22_0x4eedea(0x151)]=a22_0x4eedea(0x12f),a22_0x1872bc['Value']=a22_0x4eedea(0x131);const common_hst_tags_list=[a22_0x31919a,a22_0x1872bc];if(process['env'][a22_0x4eedea(0x16a)]){const parsedTags=process['env'][a22_0x4eedea(0x16a)][a22_0x4eedea(0x132)](',');parsedTags[a22_0x4eedea(0x176)](_0x98e143=>{const _0xb61c86=a22_0x4eedea,_0x1a9f1c=_0x98e143[_0xb61c86(0x132)](':'),_0x2b5726={};_0x2b5726[_0xb61c86(0x151)]=_0x1a9f1c[0x0],_0x2b5726[_0xb61c86(0x13d)]=_0x1a9f1c[0x1],common_hst_tags_list[_0xb61c86(0x175)](_0x2b5726);});}exports[a22_0x4eedea(0x116)]=common_hst_tags_list;const a22_0x61b528={};a22_0x61b528['browserstack:managedBy']='BrowserStack',a22_0x61b528[a22_0x4eedea(0x12f)]=a22_0x4eedea(0x131),exports[a22_0x4eedea(0x162)]=a22_0x61b528,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x13dfb0={};a22_0x13dfb0[a22_0x4eedea(0x14a)]='log',a22_0x13dfb0['RESOURCES']='resourceInfo',a22_0x13dfb0['GRID_URL']='gridUrl',a22_0x13dfb0[a22_0x4eedea(0x16d)]=a22_0x4eedea(0x127),a22_0x13dfb0[a22_0x4eedea(0x14f)]=a22_0x4eedea(0x111),exports['WS_EVENTS']=a22_0x13dfb0,exports[a22_0x4eedea(0x14c)]={},exports[a22_0x4eedea(0x13c)]=a22_0x4eedea(0x17a);const a22_0xbc6d7b={};a22_0xbc6d7b[a22_0x4eedea(0x12e)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x14d)]=a22_0x4eedea(0x113)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x145)]=a22_0x4eedea(0x14e)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x172)]=a22_0x4eedea(0x15b)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x125)]={},a22_0xbc6d7b[a22_0x4eedea(0x10e)]=a22_0x4eedea(0x170)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x16f)]=a22_0x4eedea(0x118)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x167)]=a22_0x4eedea(0x173)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x16c)]=a22_0x4eedea(0x15a)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x152)]=a22_0x4eedea(0x117)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x125)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x125)]['grid']=a22_0x4eedea(0x153)+this[a22_0x4eedea(0x13c)],a22_0xbc6d7b[a22_0x4eedea(0x125)]['gridProfile']=a22_0x4eedea(0x137)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a22_0xbc6d7b,exports[a22_0x4eedea(0x121)]=a22_0x4eedea(0x140);const a22_0x44ad8f={};a22_0x44ad8f[a22_0x4eedea(0x143)]=a22_0x4eedea(0x12d),a22_0x44ad8f[a22_0x4eedea(0x157)]='error',a22_0x44ad8f[a22_0x4eedea(0x14b)]=a22_0x4eedea(0x11e),a22_0x44ad8f[a22_0x4eedea(0x142)]='warning',a22_0x44ad8f['UNKNOWN']='unknown',a22_0x44ad8f[a22_0x4eedea(0x158)]=null,exports['messageTypes']=a22_0x44ad8f,exports[a22_0x4eedea(0x163)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4eedea(0x11b)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x4eedea(0x13b);const a22_0x3d06b4={};a22_0x3d06b4[a22_0x4eedea(0x147)]=a22_0x4eedea(0x10a);const a22_0x176f5b={};a22_0x176f5b['pre-check']=a22_0x3d06b4,exports[a22_0x4eedea(0x141)]=a22_0x176f5b,exports[a22_0x4eedea(0x148)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x1078b2={};a22_0x1078b2[a22_0x4eedea(0x166)]=a22_0x4eedea(0x13f),a22_0x1078b2[a22_0x4eedea(0x12c)]=a22_0x4eedea(0x144),a22_0x1078b2[a22_0x4eedea(0x150)]=a22_0x4eedea(0x139),exports[a22_0x4eedea(0x119)]=a22_0x1078b2;
@@ -1 +1 @@
1
- const a23_0x50a9e7=a23_0x114f;(function(_0x117b26,_0x2a971a){const _0x5bf640=a23_0x114f,_0x4a028b=_0x117b26();while(!![]){try{const _0x5f3d1c=parseInt(_0x5bf640(0x118))/0x1+-parseInt(_0x5bf640(0x133))/0x2*(-parseInt(_0x5bf640(0x12d))/0x3)+parseInt(_0x5bf640(0x121))/0x4*(-parseInt(_0x5bf640(0x11a))/0x5)+-parseInt(_0x5bf640(0x127))/0x6*(-parseInt(_0x5bf640(0x122))/0x7)+parseInt(_0x5bf640(0x129))/0x8+-parseInt(_0x5bf640(0x11f))/0x9+parseInt(_0x5bf640(0x134))/0xa;if(_0x5f3d1c===_0x2a971a)break;else _0x4a028b['push'](_0x4a028b['shift']());}catch(_0x1fa01b){_0x4a028b['push'](_0x4a028b['shift']());}}}(a23_0x5096,0x98f30));const winston=require(a23_0x50a9e7(0x12a)),fs=require('fs'),path=require(a23_0x50a9e7(0x12e)),logDir=a23_0x50a9e7(0x131);!fs[a23_0x50a9e7(0x117)](logDir)&&fs[a23_0x50a9e7(0x130)](logDir);const a23_0x3d03ee={};a23_0x3d03ee[a23_0x50a9e7(0x128)]=a23_0x50a9e7(0x119);const a23_0x5002a8={};function a23_0x5096(){const _0x49d88f=['\x20-\x20','6029082HVENZt','console.info','152fDrSYD','384363QouaHE','logger','message','timestamp','events.log','108KXFHBY','format','3389152lVtkNC','winston','combine','debug','67995zPmYyd','path','transports','mkdirSync','log','level','4DLwLgo','2804440NTLsdd','fileLogger','printf','existsSync','738650FYuVYF','YYYY-MM-DD\x20HH:mm:ss','155270rCPtIs','Console','join','File'];a23_0x5096=function(){return _0x49d88f;};return a23_0x5096();}a23_0x5002a8['level']=!![];const a23_0x6f9460={};function a23_0x114f(_0x2ee342,_0x40f0ea){const _0x509610=a23_0x5096();return a23_0x114f=function(_0x114fe0,_0x49e607){_0x114fe0=_0x114fe0-0x115;let _0x652772=_0x509610[_0x114fe0];return _0x652772;},a23_0x114f(_0x2ee342,_0x40f0ea);}a23_0x6f9460['name']=a23_0x50a9e7(0x120),exports[a23_0x50a9e7(0x123)]=new winston['createLogger']({'format':winston[a23_0x50a9e7(0x128)][a23_0x50a9e7(0x12b)](winston['format'][a23_0x50a9e7(0x125)](a23_0x3d03ee),winston[a23_0x50a9e7(0x128)]['colorize'](a23_0x5002a8),winston['format'][a23_0x50a9e7(0x116)](_0x274102=>_0x274102['timestamp']+a23_0x50a9e7(0x11e)+_0x274102[a23_0x50a9e7(0x132)]+':\x20'+_0x274102[a23_0x50a9e7(0x124)])),'transports':[new winston[(a23_0x50a9e7(0x12f))][(a23_0x50a9e7(0x11b))](a23_0x6f9460),new winston['transports'][(a23_0x50a9e7(0x11d))]({'filename':path[a23_0x50a9e7(0x11c)](logDir,a23_0x50a9e7(0x126)),'level':a23_0x50a9e7(0x12c)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x50a9e7(0x12f))]['File']({'filename':path[a23_0x50a9e7(0x11c)](logDir,'usage.log'),'level':a23_0x50a9e7(0x12c)})]};exports[a23_0x50a9e7(0x115)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x383547=a23_0x5daf;(function(_0x22ce46,_0x2bd57c){const _0xeab141=a23_0x5daf,_0x494abc=_0x22ce46();while(!![]){try{const _0x4927b1=parseInt(_0xeab141(0x1c2))/0x1+-parseInt(_0xeab141(0x1cb))/0x2*(-parseInt(_0xeab141(0x1b3))/0x3)+parseInt(_0xeab141(0x1cc))/0x4*(parseInt(_0xeab141(0x1c1))/0x5)+parseInt(_0xeab141(0x1c4))/0x6+-parseInt(_0xeab141(0x1b9))/0x7*(-parseInt(_0xeab141(0x1ca))/0x8)+-parseInt(_0xeab141(0x1cf))/0x9*(parseInt(_0xeab141(0x1c3))/0xa)+-parseInt(_0xeab141(0x1c0))/0xb;if(_0x4927b1===_0x2bd57c)break;else _0x494abc['push'](_0x494abc['shift']());}catch(_0x64ae0d){_0x494abc['push'](_0x494abc['shift']());}}}(a23_0x3bb2,0xaa96d));const winston=require('winston'),fs=require('fs'),path=require(a23_0x383547(0x1bf)),logDir=a23_0x383547(0x1b4);!fs[a23_0x383547(0x1cd)](logDir)&&fs[a23_0x383547(0x1c7)](logDir);function a23_0x3bb2(){const _0x339870=['join','debug','901019lcwqfa','Console','format','printf','colorize','YYYY-MM-DD\x20HH:mm:ss','path','4922643UawnxJ','5AaCWlW','813923oEcjUn','10pjgVyY','1414338EkKYIV','console.info','\x20-\x20','mkdirSync','combine','timestamp','8ZtISZV','78tGZmvP','431508Wcdbvl','existsSync','File','3152889CzbzQd','message','transports','createLogger','16179GDnzeB','log','level','events.log'];a23_0x3bb2=function(){return _0x339870;};return a23_0x3bb2();}const a23_0x39f284={};a23_0x39f284['format']=a23_0x383547(0x1be);function a23_0x5daf(_0x1b04bc,_0x21636f){const _0x3bb244=a23_0x3bb2();return a23_0x5daf=function(_0x5daf3f,_0x575eef){_0x5daf3f=_0x5daf3f-0x1b1;let _0x98489f=_0x3bb244[_0x5daf3f];return _0x98489f;},a23_0x5daf(_0x1b04bc,_0x21636f);}const a23_0x598276={};a23_0x598276[a23_0x383547(0x1b5)]=!![];const a23_0x1adaf9={};a23_0x1adaf9['name']=a23_0x383547(0x1c5),exports['logger']=new winston[(a23_0x383547(0x1b2))]({'format':winston[a23_0x383547(0x1bb)][a23_0x383547(0x1c8)](winston[a23_0x383547(0x1bb)][a23_0x383547(0x1c9)](a23_0x39f284),winston[a23_0x383547(0x1bb)][a23_0x383547(0x1bd)](a23_0x598276),winston[a23_0x383547(0x1bb)][a23_0x383547(0x1bc)](_0x35da8f=>_0x35da8f[a23_0x383547(0x1c9)]+a23_0x383547(0x1c6)+_0x35da8f[a23_0x383547(0x1b5)]+':\x20'+_0x35da8f[a23_0x383547(0x1d0)])),'transports':[new winston[(a23_0x383547(0x1b1))][(a23_0x383547(0x1ba))](a23_0x1adaf9),new winston[(a23_0x383547(0x1b1))][(a23_0x383547(0x1ce))]({'filename':path[a23_0x383547(0x1b7)](logDir,a23_0x383547(0x1b6)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x383547(0x1b1))][(a23_0x383547(0x1ce))]({'filename':path['join'](logDir,'usage.log'),'level':a23_0x383547(0x1b8)})]};exports['fileLogger']=new winston[(a23_0x383547(0x1b2))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x2bbe(_0x3e3419,_0x32744c){const _0x5c205e=a24_0x5c20();return a24_0x2bbe=function(_0x2bbe4b,_0x70dcb0){_0x2bbe4b=_0x2bbe4b-0x148;let _0x396dd6=_0x5c205e[_0x2bbe4b];return _0x396dd6;},a24_0x2bbe(_0x3e3419,_0x32744c);}const a24_0x45cb3c=a24_0x2bbe;(function(_0x2aabd1,_0x5a3776){const _0x206338=a24_0x2bbe,_0x16ba0c=_0x2aabd1();while(!![]){try{const _0x73298f=-parseInt(_0x206338(0x150))/0x1*(parseInt(_0x206338(0x14c))/0x2)+parseInt(_0x206338(0x155))/0x3+parseInt(_0x206338(0x14f))/0x4*(parseInt(_0x206338(0x14b))/0x5)+-parseInt(_0x206338(0x159))/0x6*(-parseInt(_0x206338(0x149))/0x7)+-parseInt(_0x206338(0x14d))/0x8*(-parseInt(_0x206338(0x156))/0x9)+-parseInt(_0x206338(0x14e))/0xa+parseInt(_0x206338(0x15d))/0xb*(parseInt(_0x206338(0x15f))/0xc);if(_0x73298f===_0x5a3776)break;else _0x16ba0c['push'](_0x16ba0c['shift']());}catch(_0x199311){_0x16ba0c['push'](_0x16ba0c['shift']());}}}(a24_0x5c20,0x89948));function a24_0x5c20(){const _0x9a1e1=['epilogue','commandDir','env','help','126948KNbTZP','9matoxv','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','6nrfvRZ','PEOgM','exports','root','721391UlSOpD','commands','60FzKJpn','VPyfN','3277862QPCooX','./config/constants','426680vavEcq','6602qwtiVH','985664WHfVdy','7086930lfjubn','52gIavCG','242nDHaNb'];a24_0x5c20=function(){return _0x9a1e1;};return a24_0x5c20();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x45cb3c(0x14a));process[a24_0x45cb3c(0x153)][a24_0x45cb3c(0x157)]=0x1;function run(_0x2904f7){const _0x214ab8=a24_0x45cb3c,_0x52c855={};_0x52c855['VPyfN']=_0x214ab8(0x15e),_0x52c855[_0x214ab8(0x15a)]=_0x214ab8(0x154);const _0x10f1af=_0x52c855;_0x2904f7['usage'](HELP_HEADER_MESSAGE[_0x214ab8(0x15c)])[_0x214ab8(0x152)](_0x10f1af[_0x214ab8(0x148)])[_0x214ab8(0x158)]()[_0x214ab8(0x154)](_0x10f1af[_0x214ab8(0x15a)])[_0x214ab8(0x151)](HELP_FOOTER_MESSAGE);}module[a24_0x45cb3c(0x15b)]=run;
2
+ 'use strict';function a24_0x4326(_0x59c1ee,_0x3bb963){const _0x18bee0=a24_0x18be();return a24_0x4326=function(_0x432679,_0x16b8da){_0x432679=_0x432679-0x1b4;let _0x47fe2f=_0x18bee0[_0x432679];return _0x47fe2f;},a24_0x4326(_0x59c1ee,_0x3bb963);}const a24_0x591a2d=a24_0x4326;function a24_0x18be(){const _0x31596c=['32540LrttaI','root','./config/constants','212815IhKgjr','RsrWC','1212198DJlQuE','GdYwx','env','25064ziLUuq','1224608GbqPwm','usage','577983PzoFiF','commandDir','45CPeAGn','44241iIgCOK','help','exports','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'];a24_0x18be=function(){return _0x31596c;};return a24_0x18be();}(function(_0x3a929b,_0x24adbb){const _0x272d87=a24_0x4326,_0x5cc707=_0x3a929b();while(!![]){try{const _0x3aee5e=parseInt(_0x272d87(0x1c5))/0x1+-parseInt(_0x272d87(0x1b7))/0x2+-parseInt(_0x272d87(0x1c4))/0x3*(parseInt(_0x272d87(0x1bf))/0x4)+parseInt(_0x272d87(0x1ba))/0x5+parseInt(_0x272d87(0x1bc))/0x6+parseInt(_0x272d87(0x1c2))/0x7+-parseInt(_0x272d87(0x1c0))/0x8;if(_0x3aee5e===_0x24adbb)break;else _0x5cc707['push'](_0x5cc707['shift']());}catch(_0x3f15dd){_0x5cc707['push'](_0x5cc707['shift']());}}}(a24_0x18be,0x1a626));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x591a2d(0x1b9));process[a24_0x591a2d(0x1be)][a24_0x591a2d(0x1b6)]=0x1;function run(_0x2a4f8c){const _0x9ffe7=a24_0x591a2d,_0x58439e={};_0x58439e[_0x9ffe7(0x1bd)]='commands',_0x58439e[_0x9ffe7(0x1bb)]=_0x9ffe7(0x1b4);const _0x1fccd7=_0x58439e;_0x2a4f8c[_0x9ffe7(0x1c1)](HELP_HEADER_MESSAGE[_0x9ffe7(0x1b8)])[_0x9ffe7(0x1c3)](_0x1fccd7[_0x9ffe7(0x1bd)])['demandCommand']()[_0x9ffe7(0x1b4)](_0x1fccd7[_0x9ffe7(0x1bb)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x591a2d(0x1b5)]=run;