browserstack-node-sdk 1.50.0 → 1.50.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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_0x2781e5=a15_0x5e8c;function a15_0x5825(){const _0xbbd7f3=['statusCode','2926683DUmpsw','unknown-error','parse','5304648fTriEL','226MZJnwX','command','push','/packages/cli/get-all-grids','DmgMz','emlcV','../../utils/instrumentationUtils','usage','bstackAccesskey','error','unauthorised','azLsS','got','QyabG','Browserstack','https://','grid-id','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid','cluster-name','username','zWDvB','fULdZ','init-not-called','Failed\x20to\x20list\x20resources!\x20Error:\x20','/packages/cli/get-grids','868986fOfvwb','builder','1986388yKyPdL','list','queued','28BeYhIx','grids','lGFkR','../../utils/utilityMethods','desc','status','description','lPqlN','password','\x0aFound\x20the\x20following\x20grids:\x0a','TSeJt','45175rrpyCe','bIrKw','log','list-grids-called','help','cJMoz','1926dSiLUq','IfkQH','uDYlo','ERROR','QgYBV','type','YxOru','jSFVl','hHrEV','mhOHX','readFileSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','running','ahDRp','TYwpn','ZBziQ','FATsO','stringify','forEach','GET','INFO','boolean','uBISK','wiQyF','requestId','body','1185256iSzPjp'];a15_0x5825=function(){return _0xbbd7f3;};return a15_0x5825();}(function(_0x4d1b1b,_0x178dc0){const _0x844f3=a15_0x5e8c,_0x309851=_0x4d1b1b();while(!![]){try{const _0x4a3b9b=parseInt(_0x844f3(0xcf))/0x1*(-parseInt(_0x844f3(0x101))/0x2)+parseInt(_0x844f3(0xeb))/0x3+-parseInt(_0x844f3(0xed))/0x4+-parseInt(_0x844f3(0xfb))/0x5+parseInt(_0x844f3(0xce))/0x6+-parseInt(_0x844f3(0xf0))/0x7*(-parseInt(_0x844f3(0xc9))/0x8)+-parseInt(_0x844f3(0xcb))/0x9;if(_0x4a3b9b===_0x178dc0)break;else _0x309851['push'](_0x309851['shift']());}catch(_0x42d5a3){_0x309851['push'](_0x309851['shift']());}}}(a15_0x5825,0xaf475));const fs=require('fs'),got=require(a15_0x2781e5(0xdb)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2781e5(0xf3)),{sendInstrumentationEvent}=require(a15_0x2781e5(0xd5));function a15_0x5e8c(_0x4a303f,_0x25211f){const _0x58250e=a15_0x5825();return a15_0x5e8c=function(_0x5e8c5d,_0x219084){_0x5e8c5d=_0x5e8c5d-0xc3;let _0x15e0bd=_0x58250e[_0x5e8c5d];return _0x15e0bd;},a15_0x5e8c(_0x4a303f,_0x25211f);}exports[a15_0x2781e5(0xd0)]=a15_0x2781e5(0xf1),exports[a15_0x2781e5(0xf4)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x2781e5(0xec)]=function(_0x584731){const _0x1028aa=a15_0x2781e5,_0x5401cb={};_0x5401cb['azLsS']=_0x1028aa(0xe0),_0x5401cb[_0x1028aa(0xd4)]=_0x1028aa(0xc4),_0x5401cb[_0x1028aa(0x111)]=_0x1028aa(0xff);const _0x33eb8e=_0x5401cb,_0x3a461b={};_0x3a461b[_0x1028aa(0xf6)]=_0x33eb8e[_0x1028aa(0xda)],_0x3a461b[_0x1028aa(0x106)]=_0x33eb8e[_0x1028aa(0xd4)];const _0x16d894={};return _0x16d894['all-grids']=_0x3a461b,_0x584731[_0x1028aa(0xd6)](HELP_HEADER_MESSAGE[_0x1028aa(0xee)][_0x1028aa(0xe3)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x16d894)[_0x1028aa(0xff)](_0x33eb8e['ZBziQ'])['argv'];},exports['handler']=async function(_0x20fc4f){const _0x4f2cf3=a15_0x2781e5,_0x4bf77e={'lPqlN':function(_0x607507){return _0x607507();},'hHrEV':function(_0x546ea3){return _0x546ea3();},'wiQyF':_0x4f2cf3(0x10c),'QgYBV':function(_0x5e541f,_0x1947bd,_0x5dd7f5,_0x1ccca9,_0x401aa9,_0x43b76c,_0x486fbe){return _0x5e541f(_0x1947bd,_0x5dd7f5,_0x1ccca9,_0x401aa9,_0x43b76c,_0x486fbe);},'DmgMz':_0x4f2cf3(0xfe),'TYwpn':_0x4f2cf3(0xe8),'lGFkR':function(_0x21bbaa){return _0x21bbaa();},'uDYlo':_0x4f2cf3(0x115),'QyabG':function(_0x35ef0a,_0x38b16b,_0x3c29ad){return _0x35ef0a(_0x38b16b,_0x3c29ad);},'fULdZ':function(_0x20126a,_0x5aa70,_0x518b0f){return _0x20126a(_0x5aa70,_0x518b0f);},'mhOHX':function(_0x506207,_0x4fd00a){return _0x506207!==_0x4fd00a;},'bIrKw':function(_0x50a7ab,_0x440067){return _0x50a7ab!==_0x440067;},'cJMoz':function(_0x23418e,_0x1de156){return _0x23418e===_0x1de156;},'lUgNY':_0x4f2cf3(0xf9),'IfkQH':_0x4f2cf3(0xdf),'ahDRp':'grid-name','uBISK':_0x4f2cf3(0xf5),'TSeJt':'running','YxOru':_0x4f2cf3(0xef),'VDyPq':_0x4f2cf3(0xe4),'XoaPA':function(_0xac2418,_0x5c1c26){return _0xac2418(_0x5c1c26);},'zWDvB':_0x4f2cf3(0xe2),'FATsO':_0x4f2cf3(0xd9),'jSFVl':'server-error','ixENc':_0x4f2cf3(0xcc)};try{global_registry[_0x4f2cf3(0xc7)]=_0x4bf77e[_0x4f2cf3(0xf7)](uuidv4);!fs[_0x4f2cf3(0xe1)](_0x4bf77e[_0x4f2cf3(0x109)](getCredentialsPath))&&(console[_0x4f2cf3(0xd8)](_0x4bf77e[_0x4f2cf3(0xc6)]),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes['ERROR'],_0x4bf77e[_0x4f2cf3(0x110)],null,_0x20fc4f),process[_0x4f2cf3(0x10d)](0x1));const _0x551ee9=JSON[_0x4f2cf3(0xcd)](fs[_0x4f2cf3(0x10b)](_0x4bf77e[_0x4f2cf3(0xf2)](getCredentialsPath)));let _0x1cd045=_0x4f2cf3(0xde)+AG_API_URL+_0x4f2cf3(0xea);_0x20fc4f['allGrids']&&(_0x1cd045='https://'+AG_API_URL+_0x4f2cf3(0xd2));const _0x456dea={'method':_0x4bf77e[_0x4f2cf3(0x103)],'headers':_0x4bf77e[_0x4f2cf3(0xdc)](getAuthHeader,_0x551ee9[_0x4f2cf3(0xdd)][_0x4f2cf3(0xe5)],_0x551ee9[_0x4f2cf3(0xdd)][_0x4f2cf3(0xf8)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x551ee9['Browserstack'][_0x4f2cf3(0xe5)],global_registry[_0x4f2cf3(0xd7)]=_0x551ee9[_0x4f2cf3(0xdd)][_0x4f2cf3(0xf8)],_0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes[_0x4f2cf3(0xc3)],null,null,_0x20fc4f);const _0x58aae9=await _0x4bf77e[_0x4f2cf3(0xe7)](got,_0x1cd045,_0x456dea);if(_0x4bf77e[_0x4f2cf3(0x10a)](_0x58aae9,null)&&_0x4bf77e[_0x4f2cf3(0xfc)](_0x58aae9,undefined)&&_0x4bf77e[_0x4f2cf3(0x100)](_0x58aae9[_0x4f2cf3(0xca)],0xc8)){const _0x2d9d01=JSON[_0x4f2cf3(0xcd)](_0x58aae9[_0x4f2cf3(0xc8)]);console[_0x4f2cf3(0xfd)](_0x4bf77e['lUgNY']);const _0x5ce86f=[];_0x5ce86f['push']([_0x4bf77e[_0x4f2cf3(0x102)],_0x4bf77e[_0x4f2cf3(0x10f)],_0x4bf77e[_0x4f2cf3(0xc5)],_0x4bf77e[_0x4f2cf3(0xfa)],_0x4bf77e[_0x4f2cf3(0x107)],_0x4bf77e['VDyPq']]),_0x2d9d01[_0x4f2cf3(0x114)](_0x399142=>{const _0x2ccf6e=_0x4f2cf3;_0x5ce86f[_0x2ccf6e(0xd1)]([_0x399142['id'],_0x399142['name'],_0x399142[_0x2ccf6e(0xf5)],_0x399142[_0x2ccf6e(0x10e)],_0x399142['queued'],_0x399142['clusterName']]);}),console[_0x4f2cf3(0xfd)](_0x4bf77e['XoaPA'](table,_0x5ce86f)),process[_0x4f2cf3(0x10d)](0x0);}_0x4bf77e[_0x4f2cf3(0x100)](_0x58aae9[_0x4f2cf3(0xca)],0x191)&&(console[_0x4f2cf3(0xd8)](_0x4bf77e[_0x4f2cf3(0xe6)]),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes[_0x4f2cf3(0x104)],_0x4bf77e[_0x4f2cf3(0x112)],null,_0x20fc4f),process['exit'](0x1)),console[_0x4f2cf3(0xd8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4f2cf3(0x113)](_0x58aae9)),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes[_0x4f2cf3(0x104)],_0x4bf77e[_0x4f2cf3(0x108)],_0x58aae9,_0x20fc4f),process[_0x4f2cf3(0x10d)](0x1);}catch(_0x239e9c){console[_0x4f2cf3(0xd8)](_0x4f2cf3(0xe9)+_0x239e9c['stack']),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes['ERROR'],_0x4bf77e['ixENc'],_0x239e9c,_0x20fc4f),process[_0x4f2cf3(0x10d)](0x1);}};
@@ -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_0x5a3b6b=a16_0x3265;function a16_0x3265(_0x444986,_0x37bd1a){const _0x3973f3=a16_0x3973();return a16_0x3265=function(_0x3265c4,_0x529ca5){_0x3265c4=_0x3265c4-0x11d;let _0x27f8bc=_0x3973f3[_0x3265c4];return _0x27f8bc;},a16_0x3265(_0x444986,_0x37bd1a);}(function(_0x3d8d5b,_0x26730f){const _0xfa4173=a16_0x3265,_0x22f948=_0x3d8d5b();while(!![]){try{const _0x29b973=-parseInt(_0xfa4173(0x131))/0x1*(-parseInt(_0xfa4173(0x12c))/0x2)+-parseInt(_0xfa4173(0x11d))/0x3+-parseInt(_0xfa4173(0x124))/0x4+-parseInt(_0xfa4173(0x132))/0x5*(parseInt(_0xfa4173(0x135))/0x6)+parseInt(_0xfa4173(0x134))/0x7*(parseInt(_0xfa4173(0x123))/0x8)+parseInt(_0xfa4173(0x122))/0x9*(-parseInt(_0xfa4173(0x139))/0xa)+-parseInt(_0xfa4173(0x12f))/0xb*(-parseInt(_0xfa4173(0x121))/0xc);if(_0x29b973===_0x26730f)break;else _0x22f948['push'](_0x22f948['shift']());}catch(_0xa46846){_0x22f948['push'](_0x22f948['shift']());}}}(a16_0x3973,0xa8673));function a16_0x3973(){const _0x2f98c6=['precheck_commands','commandDir','9352cWgFet','../config/constants','GDwnp','11DMsayj','help','137ZKBNrA','700485YOxGgT','handler','1841aNwReT','12lgSGck','demandCommand','epilogue','desc','13740SoDAbG','464877nKydfj','builder','command','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','14181420PDMhog','3771gJgPdo','36528wmJYZg','5290468emxOTM','pre-check','recommendCommands','usage','strict','YgOQz'];a16_0x3973=function(){return _0x2f98c6;};return a16_0x3973();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5a3b6b(0x12d));exports[a16_0x5a3b6b(0x11f)]=a16_0x5a3b6b(0x125),exports[a16_0x5a3b6b(0x138)]=a16_0x5a3b6b(0x120),exports[a16_0x5a3b6b(0x11e)]=function(_0x35856e){const _0x52cb6b=a16_0x5a3b6b,_0x15dc3f={};_0x15dc3f[_0x52cb6b(0x129)]=_0x52cb6b(0x12a),_0x15dc3f[_0x52cb6b(0x12e)]=_0x52cb6b(0x130);const _0x164205=_0x15dc3f;return _0x35856e[_0x52cb6b(0x127)](HELP_HEADER_MESSAGE['pre_check'])[_0x52cb6b(0x137)](HELP_FOOTER_MESSAGE)[_0x52cb6b(0x12b)](_0x164205['YgOQz'])[_0x52cb6b(0x136)]()[_0x52cb6b(0x126)]()[_0x52cb6b(0x128)]()['help'](_0x164205[_0x52cb6b(0x12e)]);},exports[a16_0x5a3b6b(0x133)]=function(_0x8239c6){};
@@ -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_0x45e102=a17_0x45b1;(function(_0x5d2f58,_0x46af90){const _0x38629c=a17_0x45b1,_0x105ff3=_0x5d2f58();while(!![]){try{const _0x165eef=-parseInt(_0x38629c(0x1e8))/0x1*(-parseInt(_0x38629c(0x2d2))/0x2)+-parseInt(_0x38629c(0x225))/0x3+parseInt(_0x38629c(0x295))/0x4*(parseInt(_0x38629c(0x259))/0x5)+-parseInt(_0x38629c(0x216))/0x6+-parseInt(_0x38629c(0x2de))/0x7*(parseInt(_0x38629c(0x1fd))/0x8)+parseInt(_0x38629c(0x250))/0x9+parseInt(_0x38629c(0x26a))/0xa;if(_0x165eef===_0x46af90)break;else _0x105ff3['push'](_0x105ff3['shift']());}catch(_0x4284cd){_0x105ff3['push'](_0x105ff3['shift']());}}}(a17_0x37b8,0x7be6f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x45e102(0x298)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x45e102(0x2e1)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x45e102(0x219)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x45e102(0x203)),{getCloudProviderObjectWithOutInit}=require(a17_0x45e102(0x2af)),webSocketUtils=require(a17_0x45e102(0x2d8)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x45b1(_0x57c3c0,_0x49dc3a){const _0x37b845=a17_0x37b8();return a17_0x45b1=function(_0x45b1e1,_0x2e2b3b){_0x45b1e1=_0x45b1e1-0x1e6;let _0x195639=_0x37b845[_0x45b1e1];return _0x195639;},a17_0x45b1(_0x57c3c0,_0x49dc3a);}exports[a17_0x45e102(0x1f3)]=a17_0x45e102(0x21a),exports[a17_0x45e102(0x239)]=a17_0x45e102(0x286),exports[a17_0x45e102(0x2d0)]=function(_0x307e74){const _0xa89d84=a17_0x45e102,_0x1b2d61={};_0x1b2d61[_0xa89d84(0x276)]=_0xa89d84(0x237),_0x1b2d61[_0xa89d84(0x247)]=_0xa89d84(0x210),_0x1b2d61['xbVri']=_0xa89d84(0x208),_0x1b2d61[_0xa89d84(0x26e)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1b2d61[_0xa89d84(0x292)]=_0xa89d84(0x2b1),_0x1b2d61[_0xa89d84(0x243)]='help';const _0x120f79=_0x1b2d61,_0x19eeba={};_0x19eeba[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x276)],_0x19eeba[_0xa89d84(0x1fa)]=_0x120f79[_0xa89d84(0x247)];const _0x1204b0={};_0x1204b0[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x217)],_0x1204b0['type']=_0x120f79[_0xa89d84(0x247)];const _0x444eae={};_0x444eae[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x26e)],_0x444eae['type']=_0x120f79[_0xa89d84(0x247)];const _0x578a73={};_0x578a73[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x292)],_0x578a73['type']=_0x120f79[_0xa89d84(0x247)];const _0x5bddce={};return _0x5bddce[_0xa89d84(0x2a0)]=_0x19eeba,_0x5bddce['cloud-provider']=_0x1204b0,_0x5bddce[_0xa89d84(0x296)]=_0x444eae,_0x5bddce[_0xa89d84(0x291)]=_0x578a73,_0x307e74[_0xa89d84(0x22e)](HELP_HEADER_MESSAGE[_0xa89d84(0x224)])[_0xa89d84(0x27b)](HELP_FOOTER_MESSAGE)['options'](_0x5bddce)['help'](_0x120f79[_0xa89d84(0x243)])[_0xa89d84(0x2dc)];};async function inputValidation(_0x4eeded,_0x480aac){const _0x10e056=a17_0x45e102,_0x415e74={'EqHhN':_0x10e056(0x28c),'ZpxCM':_0x10e056(0x268),'GuUpJ':_0x10e056(0x2be),'gDeKI':_0x10e056(0x218),'QcYqA':_0x10e056(0x237),'RPkFZ':_0x10e056(0x210),'HBzKm':_0x10e056(0x208),'hNive':_0x10e056(0x2a1),'tHJQA':_0x10e056(0x2b1),'epmIR':_0x10e056(0x24d),'LmIUV':'cluster-name','GLTIK':_0x10e056(0x2d7),'RLJMK':_0x10e056(0x212),'UEUln':_0x10e056(0x211),'dLMNO':function(_0x3d7dd5,_0x8b0f13){return _0x3d7dd5+_0x8b0f13;},'TqEYn':_0x10e056(0x255),'dyStE':_0x10e056(0x248),'iwKxA':function(_0xb857ea,_0x266016){return _0xb857ea||_0x266016;},'sSLZH':function(_0x58433d,_0x4184a4){return _0x58433d===_0x4184a4;},'AAPPN':'VSAsC','gkbeE':_0x10e056(0x24a),'BPPeE':function(_0xcfc2f8,_0x2dcfd6){return _0xcfc2f8!==_0x2dcfd6;},'cYCvI':_0x10e056(0x1ed),'ctkmC':_0x10e056(0x21c),'XaFVv':_0x10e056(0x2ca),'MFvCo':_0x10e056(0x201),'KfBYf':_0x10e056(0x235),'hAciT':function(_0x27dc75,_0x51882e){return _0x27dc75===_0x51882e;},'mbMHo':_0x10e056(0x287),'aXVSq':_0x10e056(0x209),'StaBx':_0x10e056(0x296),'QieAp':function(_0x1e2705,_0x5e1ef7){return _0x1e2705>_0x5e1ef7;},'njHtB':'cYHVM','fMUTn':'Fafsv','tUJYh':function(_0x3e2267,_0x267f4c,_0x1704f9,_0x877c4,_0x37625c,_0x1d2693,_0x2f7fe9,_0x4aa208){return _0x3e2267(_0x267f4c,_0x1704f9,_0x877c4,_0x37625c,_0x1d2693,_0x2f7fe9,_0x4aa208);},'fSDyR':_0x10e056(0x1ee),'JwkaS':_0x10e056(0x28a),'KKtiO':function(_0x4f0ef6,_0x48f66c){return _0x4f0ef6!==_0x48f66c;},'OYlaw':_0x10e056(0x21e),'uMxte':_0x10e056(0x267),'JeEXQ':function(_0x3f7986,_0x32426b,_0x157605,_0xe98f5c,_0x50a11c,_0x50a76b,_0x2b2db6,_0x38e8b4){return _0x3f7986(_0x32426b,_0x157605,_0xe98f5c,_0x50a11c,_0x50a76b,_0x2b2db6,_0x38e8b4);},'VcVwt':_0x10e056(0x2d1),'QxTVv':function(_0x2376ed,_0x3162d5){return _0x2376ed===_0x3162d5;},'xLBfj':_0x10e056(0x228),'mDZvL':'DGQpH','QsrKc':_0x10e056(0x264),'wzkKG':'GET','fQysO':function(_0x5c663f,_0x283831,_0x34cb4f){return _0x5c663f(_0x283831,_0x34cb4f);},'WZNyk':function(_0x51114e,_0x531e22,_0x2bfb2e,_0x3b244c,_0xd61f28,_0x153d16){return _0x51114e(_0x531e22,_0x2bfb2e,_0x3b244c,_0xd61f28,_0x153d16);},'enmhN':'pre-check','EsLGR':_0x10e056(0x291),'JpAZc':function(_0x172f2d,_0x3bc640){return _0x172f2d===_0x3bc640;},'zVIxz':_0x10e056(0x1f6),'kMHsh':function(_0x15e005,_0x548d95){return _0x15e005(_0x548d95);},'JKnuz':'MiXct','ALqbE':'WQKNN','QWPXs':'pre-check-grid-profile-empty','gwClx':function(_0x5b247e,_0x916a0f){return _0x5b247e===_0x916a0f;},'EPnjI':_0x10e056(0x266),'JDXCL':_0x10e056(0x215),'filht':function(_0x3d6789,_0x37e100){return _0x3d6789!==_0x37e100;},'CTqtg':_0x10e056(0x2d3),'kuFHj':_0x10e056(0x226),'owCpH':_0x10e056(0x25f),'MlhMS':function(_0x27ca47,_0x48b6b0){return _0x27ca47===_0x48b6b0;},'DXVux':_0x10e056(0x223),'YAzyc':function(_0x39e3bd,_0x3bf6f9){return _0x39e3bd===_0x3bf6f9;},'oaqAU':'ZlHDb'};let _0x1f9b62;try{if(_0x415e74['sSLZH'](_0x415e74[_0x10e056(0x26b)],_0x415e74[_0x10e056(0x24f)]))_0x546986['error']('error\x20stack\x20:\x20'+_0x55b0eb[_0x10e056(0x268)][_0x10e056(0x1f5)]);else{if(_0x4eeded['clusterName']||_0x4eeded['cloudProvider']||_0x4eeded[_0x10e056(0x296)]){if(_0x415e74['BPPeE'](_0x415e74[_0x10e056(0x27d)],_0x415e74[_0x10e056(0x27d)]))_0x39fbd1['exit'](0x1);else{const _0x4be264=[];!_0x4eeded[_0x10e056(0x2ae)]&&(_0x415e74['BPPeE'](_0x415e74['ctkmC'],_0x415e74[_0x10e056(0x22a)])?_0x4be264[_0x10e056(0x252)](_0x415e74['LmIUV']):_0x466c01[_0x10e056(0x252)](_0x415e74[_0x10e056(0x1ff)]));;if(!_0x4eeded[_0x10e056(0x29d)]){if(_0x415e74[_0x10e056(0x20a)](_0x415e74[_0x10e056(0x1f8)],_0x415e74[_0x10e056(0x1fc)]))_0x4be264[_0x10e056(0x252)](_0x415e74[_0x10e056(0x1ff)]);else{const _0x5b3f76={};_0x5b3f76['type']=_0x453abd[_0x10e056(0x261)],_0x5b3f76[_0x10e056(0x244)]=_0x3b3fa1,_0x1f7568[_0x10e056(0x1f0)](_0x28f370,_0x5b3f76,_0x415e74[_0x10e056(0x240)],!![]);}};!_0x4eeded[_0x10e056(0x296)]&&(_0x415e74[_0x10e056(0x25a)](_0x415e74[_0x10e056(0x26c)],_0x415e74[_0x10e056(0x207)])?(_0x3d5abc[_0x10e056(0x22b)](_0x10e056(0x2ab)+_0x1eeabc[_0x10e056(0x265)]+'\x20'),_0xf228e7[_0x10e056(0x29d)]=_0x2425dc['CLOUD_PROVIDER']):_0x4be264[_0x10e056(0x252)](_0x415e74[_0x10e056(0x274)]));;_0x415e74[_0x10e056(0x2a2)](_0x4be264[_0x10e056(0x2ba)],0x0)&&(_0x415e74['BPPeE'](_0x415e74[_0x10e056(0x23d)],_0x415e74[_0x10e056(0x251)])?(_0x1f9b62=_0x10e056(0x238)+_0x4be264[_0x10e056(0x28e)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x415e74[_0x10e056(0x2b7)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes[_0x10e056(0x290)],_0x415e74['fSDyR'],_0x415e74[_0x10e056(0x273)],_0x415e74[_0x10e056(0x240)]),logger['error'](_0x1f9b62),process['exit'](0x1)):_0x48d86e+='Cluster\x20'+_0x3d92d4['clusterName']+'\x20'+(_0x5329d9?_0x415e74[_0x10e056(0x214)]:_0x415e74['gDeKI'])+'\x0a\x0a');if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x4eeded[_0x10e056(0x29d)][_0x10e056(0x22f)]())){if(_0x415e74['KKtiO'](_0x415e74[_0x10e056(0x2bc)],_0x415e74['OYlaw']))_0x97854c+=_0x10e056(0x2b4)+_0x334e6b[_0x10e056(0x2ae)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{_0x1f9b62=_0x415e74[_0x10e056(0x205)],await _0x415e74[_0x10e056(0x2a9)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes['ERROR'],_0x415e74['fSDyR'],_0x415e74[_0x10e056(0x289)],_0x415e74[_0x10e056(0x240)]),logger[_0x10e056(0x268)](_0x1f9b62);if(!_0x4eeded[_0x10e056(0x29d)]){if(_0x415e74[_0x10e056(0x2c3)](_0x415e74[_0x10e056(0x2a4)],_0x415e74[_0x10e056(0x2a4)]))logger[_0x10e056(0x22b)](_0x10e056(0x2ab)+DEFAULT_CLUSTER_DETAILS[_0x10e056(0x265)]+'\x20'),_0x4eeded[_0x10e056(0x29d)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];else{const _0x4db333={};_0x4db333[_0x10e056(0x227)]=_0x415e74[_0x10e056(0x288)],_0x4db333[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x546407={};_0x546407['description']=_0x415e74[_0x10e056(0x275)],_0x546407[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x17da35={};_0x17da35[_0x10e056(0x227)]=_0x415e74[_0x10e056(0x1e7)],_0x17da35[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x21ff52={};_0x21ff52['description']=_0x415e74[_0x10e056(0x1ec)],_0x21ff52[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x24cbee={};return _0x24cbee[_0x10e056(0x2a0)]=_0x4db333,_0x24cbee[_0x10e056(0x28c)]=_0x546407,_0x24cbee[_0x10e056(0x296)]=_0x17da35,_0x24cbee['grid-profile']=_0x21ff52,_0x567e04[_0x10e056(0x22e)](_0x469884[_0x10e056(0x224)])[_0x10e056(0x27b)](_0x1b3543)[_0x10e056(0x299)](_0x24cbee)[_0x10e056(0x24d)](_0x415e74['epmIR'])[_0x10e056(0x2dc)];}}}}global_registry[_0x10e056(0x2ae)]=_0x4eeded[_0x10e056(0x2ae)],global_registry[_0x10e056(0x29d)]=_0x4eeded['cloudProvider'],global_registry['clusterRegion']=_0x4eeded[_0x10e056(0x296)];}}else{if(_0x4eeded[_0x10e056(0x2a5)]){if(_0x415e74['sSLZH'](_0x415e74[_0x10e056(0x1f4)],_0x415e74['QsrKc']))_0x4994c1['push'](_0x415e74[_0x10e056(0x254)]);else{global_registry[_0x10e056(0x2a5)]=_0x4eeded[_0x10e056(0x2a5)],logger[_0x10e056(0x27f)](_0x10e056(0x277)+_0x4eeded['gridProfile']);const _0x2b018e='https://'+AG_API_URL+_0x10e056(0x29f),_0x551960={};_0x551960[_0x10e056(0x202)]=_0x415e74['wzkKG'],_0x551960[_0x10e056(0x1ea)]=global_registry[_0x10e056(0x23e)],_0x551960[_0x10e056(0x24e)]=![];const _0x119669=_0x551960,_0x5e0e63=await _0x415e74[_0x10e056(0x2e3)](got,_0x2b018e,_0x119669),_0x2c5dda=await _0x415e74[_0x10e056(0x2dd)](responseValidation,_0x5e0e63,_0x415e74[_0x10e056(0x204)],_0x415e74[_0x10e056(0x1fe)],_0x4eeded,_0x480aac);let _0x3c27db={};if(_0x415e74[_0x10e056(0x2df)](_0x2c5dda,0xc8)){if(_0x415e74[_0x10e056(0x20a)](_0x415e74[_0x10e056(0x2c6)],_0x415e74[_0x10e056(0x2c6)]))_0x577d9a['error'](_0x415e74[_0x10e056(0x221)]),_0x338520['exit'](0x1);else{const _0x1f6cf8=JSON[_0x10e056(0x21f)](_0x5e0e63[_0x10e056(0x22d)]),_0x390bf1=_0x1f6cf8['find'](_0x1a5d78=>_0x1a5d78[_0x10e056(0x281)]===_0x4eeded['gridProfile'])||null;if(_0x415e74[_0x10e056(0x2e4)](isUndefined,_0x390bf1))_0x415e74['KKtiO'](_0x415e74[_0x10e056(0x2cf)],_0x415e74[_0x10e056(0x249)])?(_0x1f9b62='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x4eeded[_0x10e056(0x2a5)]+_0x10e056(0x229),await _0x415e74[_0x10e056(0x2a9)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes[_0x10e056(0x290)],_0x415e74[_0x10e056(0x2ce)],_0x415e74[_0x10e056(0x2d4)],_0x415e74['ZpxCM']),logger[_0x10e056(0x268)](_0x1f9b62),process[_0x10e056(0x26f)](0x1)):(_0x5acc27+=_0x415e74['RLJMK'],_0x5b8380+=_0x10e056(0x279)+(_0x22d0ac[_0x10e056(0x244)]||_0x415e74[_0x10e056(0x200)])+'\x0a',_0x356b71+=_0x10e056(0x2da)+(_0xb1444b[_0x10e056(0x29e)]||_0x415e74[_0x10e056(0x200)])+'\x0a',_0x2d1b0f+=_0x10e056(0x2aa)+(_0x2effc3[_0x10e056(0x1f5)]||_0x415e74[_0x10e056(0x200)])+'\x0a');else{if(_0x415e74[_0x10e056(0x2e0)](_0x415e74[_0x10e056(0x2b0)],_0x415e74[_0x10e056(0x2c9)])){const {header:_0x5465e3,response:_0x197ad1}=_0x49dbf3,{status:_0x50a915,data:_0x3284de,error:_0xc8a20b}=_0x197ad1;_0x34c0e0+=_0x5465e3+'\x20#'+_0x415e74['dLMNO'](_0x47a1ea,0x1)+'\x0a',_0x354dbb+=_0x10e056(0x206)+(_0x50a915?_0x415e74['TqEYn']:_0x415e74[_0x10e056(0x213)])+'\x0a',_0x1c295a+=_0x10e056(0x2c5)+_0x415e74['iwKxA'](_0x3284de,_0x415e74[_0x10e056(0x200)])+'\x0a',_0xc8a20b&&(_0x11f410+=_0x415e74[_0x10e056(0x20f)],_0x573d57+=_0x10e056(0x279)+(_0xc8a20b[_0x10e056(0x244)]||_0x415e74[_0x10e056(0x200)])+'\x0a',_0xed5230+=_0x10e056(0x2da)+(_0xc8a20b['code']||_0x415e74[_0x10e056(0x200)])+'\x0a',_0x326e87+='\x20\x20Stack:\x20'+(_0xc8a20b['stack']||_0x415e74[_0x10e056(0x200)])+'\x0a'),_0x32a44d+='\x0a\x0a';}else _0x3c27db=_0x390bf1;}}}else _0x415e74[_0x10e056(0x2b8)](_0x415e74[_0x10e056(0x2b3)],_0x415e74[_0x10e056(0x2bb)])?process[_0x10e056(0x26f)](0x1):_0x37cc9c['info']('Cluster\x20`'+_0x1e4f62[_0x10e056(0x2ae)]+_0x10e056(0x2c1));const _0x11103e={};_0x11103e[_0x10e056(0x1fa)]=WS_EVENTS[_0x10e056(0x261)],_0x11103e[_0x10e056(0x244)]=_0x415e74[_0x10e056(0x20d)],webSocketUtils[_0x10e056(0x1f0)](_0x480aac,_0x11103e),global_registry[_0x10e056(0x29d)]=_0x3c27db[_0x10e056(0x29d)],global_registry[_0x10e056(0x262)]=_0x3c27db[_0x10e056(0x296)],global_registry['clusterName']=_0x3c27db['clusterName'];}}else _0x415e74[_0x10e056(0x294)](_0x415e74[_0x10e056(0x263)],_0x415e74[_0x10e056(0x263)])?(logger[_0x10e056(0x268)](_0x415e74[_0x10e056(0x221)]),process['exit'](0x1)):(_0x58033e[_0x10e056(0x22b)]('['+_0x60a25b+_0x10e056(0x285)+_0x2e1526[_0x10e056(0x27a)]+_0x10e056(0x2bd)+_0x5af628[_0x10e056(0x1fb)]+_0x10e056(0x2c4)+_0x5e2dad['error']),_0x4a92ee[_0x10e056(0x268)]&&_0x31606f[_0x10e056(0x268)](_0x10e056(0x2cb)+_0x4f1bec[_0x10e056(0x268)][_0x10e056(0x1f5)]));}}}catch(_0x1b06f5){_0x415e74[_0x10e056(0x270)](_0x415e74[_0x10e056(0x21d)],_0x415e74[_0x10e056(0x21d)])?(_0x1f9b62=_0x10e056(0x25b)+_0x1b06f5+':\x20'+_0x1b06f5[_0x10e056(0x1f5)],logger['error'](_0x1f9b62),await _0x415e74[_0x10e056(0x2a9)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes[_0x10e056(0x290)],_0x415e74[_0x10e056(0x2ce)],_0x415e74['VcVwt'],_0x415e74[_0x10e056(0x240)]),process[_0x10e056(0x26f)](0x1)):_0x21da86=_0x319599;}}function a17_0x37b8(){const _0x578c90=['Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wokBs','BPPeE','handler','grUxl','owCpH','FVSFq','RLJMK','string','N/A','Error\x20Details:\x0a','dyStE','GuUpJ','ATMMS','4123068CnzUmx','xbVri','will\x20be\x20created','../../utils/utilityMethods','grid','bstackUsername','WGDSz','oaqAU','ZtQru','parse','vXkzm','GLTIK','tJFpN','zDDNz','pre_check','2058258IQmpDZ','AAGeK','description','JBsHV','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','XaFVv','info','Failed\x20in\x20pre-check!\x20Error:\x20','body','usage','toLowerCase','mgwur','bstackAccesskey','TLSv1_2_client_method','isTrialGridAccessible','RPkFZ','oWHoB','LuGvC','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Missing\x20required\x20arguments:\x20','desc','<UsernamePlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Cluster\x20`','njHtB','authHeader','pPRcf','ZpxCM','FNpIE','\x20===\x0a\x0a','hSxSo','message','unable\x20to\x20verify\x20if\x20cluster\x20`','`\x20is\x20present\x20in\x20region\x20`','JKAxC','Failure','ALqbE','fKvhV','forEach','CXuJF','help','throwHttpErrors','gkbeE','2185173ndbCyI','fMUTn','push','delay','LmIUV','Success','SSL\x20Configured','isClusterPresent','iOxTJ','130GJQKih','hAciT','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','KaDYv','ZaPsS','log/report_','Grid\x20profile\x20fetched\x20for\x20pre-check','credential-not-found','LOG','clusterRegion','DXVux','uWJws','CLOUD_PROVIDER','oyMlb','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error','checkAccess','11865880XmLkjq','AAPPN','mbMHo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Ewwex','exit','YAzyc','stringify','readFileSync','JwkaS','StaBx','HBzKm','nfLVl','grid\x20profile\x20flow\x20','connectionTimeout','\x20\x20Message:\x20','status','epilogue','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','cYCvI','kHXMc','debug','DdlHv','name','aWsNt','kPbpb','toolInstalledResp',']\x20status\x20:\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','drlMt','QcYqA','VcVwt','pre-check-cluster-args-not-passed','WPZnS','cloud-provider','existsSync','join','Report\x20saved\x20in\x20','ERROR','grid-profile','bUMLK','vDgWK','MlhMS','29644PuOAQW','region','response','got','options','\x20region\x20-\x20','getUTCHours','pGrwa','cloudProvider','code','/packages/cli/get-all-grid-profiles','cluster-name','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QieAp','Browserstack','xLBfj','gridProfile','Ufstx','3|1|2|0|4','Cluster\x20details\x0a-----------------------\x0a','JeEXQ','\x20\x20Stack:\x20','Setting\x20cloud\x20provider\x20as\x20','nFxhf','mHvGG','clusterName','../../cloudproviders/utils','EPnjI','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vUfBX','CTqtg','Cluster\x20','gRvUL','utf-8','tUJYh','filht','isCliToolInstalled','length','kuFHj','OYlaw','\x20data\x20:\x20','is\x20already\x20present','getUTCMonth','pre-check-failed','`\x20already\x20exists','INFO','QxTVv','\x20error\x20:\x20','Message:\x20','zVIxz','init','writeFileSync','JDXCL','Vqztp','error\x20stack\x20:\x20','header','GBvRB','fSDyR','JKnuz','builder','cloud-provider-not-supported','2ywfNIP','ERfvb','QWPXs','dummy-grid','accessResp','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','../../utils/webSocketUtils','YmUPL','\x20\x20Code:\x20','replace','argv','WZNyk','1337fgViHF','JpAZc','gwClx','reconnecting-websocket','RUVZG','fQysO','kMHsh','LqYEI','hNive','561622VuMnAa','owXGQ','headers','cluster-check-failed-','tHJQA','YeCkD','pre-check-grid-called','User\x20Access','sendEventToBackend','dKntM','utTBD','command','mDZvL','stack','uQUlf','dvXpe','MFvCo','.txt','type','data','KfBYf','12688ZVtfup','EsLGR','EqHhN','UEUln','DCYns','method','../../config/constants','enmhN','uMxte','Status:\x20','aXVSq'];a17_0x37b8=function(){return _0x578c90;};return a17_0x37b8();}function printResponse(_0x2f3148,_0x8d288){const _0xe5a83a=a17_0x45e102,_0x4a261f={};_0x4a261f[_0xe5a83a(0x2d9)]=_0xe5a83a(0x296),_0x4a261f[_0xe5a83a(0x2b2)]=function(_0x46737b,_0xf03f5f){return _0x46737b===_0xf03f5f;},_0x4a261f['utTBD']=_0xe5a83a(0x220);const _0x3e6e36=_0x4a261f;logger[_0xe5a83a(0x22b)]('['+_0x2f3148+']\x20status\x20:\x20'+_0x8d288[_0xe5a83a(0x27a)]+_0xe5a83a(0x2bd)+_0x8d288[_0xe5a83a(0x1fb)]+'\x20error\x20:\x20'+_0x8d288[_0xe5a83a(0x268)]),_0x8d288[_0xe5a83a(0x268)]&&(_0x3e6e36[_0xe5a83a(0x2b2)](_0x3e6e36['utTBD'],_0x3e6e36[_0xe5a83a(0x1f2)])?logger[_0xe5a83a(0x268)](_0xe5a83a(0x2cb)+_0x8d288[_0xe5a83a(0x268)][_0xe5a83a(0x1f5)]):_0xcd05c5[_0xe5a83a(0x252)](_0x3e6e36[_0xe5a83a(0x2d9)]));}async function generateReport(_0x3a5309,_0xa71d02){const _0x9b3b09=a17_0x45e102,_0x22715d={'DdlHv':function(_0x598525,_0x338be4){return _0x598525+_0x338be4;},'FVSFq':'Success','dKntM':'Failure','Ufstx':function(_0x2425ef,_0xc9a8af){return _0x2425ef||_0xc9a8af;},'CXuJF':_0x9b3b09(0x211),'WPZnS':'Error\x20Details:\x0a','mHvGG':_0x9b3b09(0x2a8),'RqkqO':function(_0x3d0704,_0xfa78d0){return _0x3d0704!=_0xfa78d0;},'RJvQX':'is\x20already\x20present','oJWYm':'will\x20be\x20created','KaDYv':function(_0x30dbcd){return _0x30dbcd();}};let _0x54d337='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x9b3b09(0x242);return _0x3a5309[_0x9b3b09(0x24b)]((_0xa353ab,_0x4c62d2)=>{const _0x517214=_0x9b3b09,{header:_0x3e3292,response:_0x45e0e0}=_0xa353ab,{status:_0xacafc6,data:_0x215b79,error:_0x454aee}=_0x45e0e0;_0x54d337+=_0x3e3292+'\x20#'+_0x22715d[_0x517214(0x280)](_0x4c62d2,0x1)+'\x0a',_0x54d337+=_0x517214(0x206)+(_0xacafc6?_0x22715d[_0x517214(0x20e)]:_0x22715d[_0x517214(0x1f1)])+'\x0a',_0x54d337+=_0x517214(0x2c5)+_0x22715d[_0x517214(0x2a6)](_0x215b79,_0x22715d[_0x517214(0x24c)])+'\x0a',_0x454aee&&(_0x54d337+=_0x22715d[_0x517214(0x28b)],_0x54d337+=_0x517214(0x279)+(_0x454aee['message']||_0x22715d[_0x517214(0x24c)])+'\x0a',_0x54d337+=_0x517214(0x2da)+(_0x454aee[_0x517214(0x29e)]||_0x22715d[_0x517214(0x24c)])+'\x0a',_0x54d337+='\x20\x20Stack:\x20'+(_0x454aee[_0x517214(0x1f5)]||_0x22715d[_0x517214(0x24c)])+'\x0a'),_0x54d337+='\x0a\x0a';}),_0x54d337+=_0x22715d[_0x9b3b09(0x2ad)],_0x22715d['RqkqO'](_0xa71d02,null)?_0x54d337+=_0x9b3b09(0x2b4)+global_registry[_0x9b3b09(0x2ae)]+'\x20'+(_0xa71d02?_0x22715d['RJvQX']:_0x22715d['oJWYm'])+'\x0a\x0a':_0x54d337+=_0x9b3b09(0x2b4)+global_registry[_0x9b3b09(0x2ae)]+_0x9b3b09(0x27c),_0x54d337+=_0x22715d[_0x9b3b09(0x25c)](getSystemMetaData),_0x54d337;};exports[a17_0x45e102(0x20b)]=async function(_0x1fa241){const _0x5ebd7b=a17_0x45e102,_0x1bf533={'FNpIE':function(_0x1ff687){return _0x1ff687();},'aWsNt':_0x5ebd7b(0x23b),'owXGQ':function(_0x1b804d,_0x35d73b,_0x417a90,_0x56b690,_0x905397,_0x2baa3c,_0xe4e76,_0x3d4d70){return _0x1b804d(_0x35d73b,_0x417a90,_0x56b690,_0x905397,_0x2baa3c,_0xe4e76,_0x3d4d70);},'LuGvC':_0x5ebd7b(0x1ee),'ZaPsS':_0x5ebd7b(0x260),'nFxhf':_0x5ebd7b(0x268),'RUVZG':function(_0x288861,_0x2021c8,_0x42a01f,_0x2b7ec2,_0x462b57,_0x599cf7,_0x46d1bf){return _0x288861(_0x2021c8,_0x42a01f,_0x2b7ec2,_0x462b57,_0x599cf7,_0x46d1bf);},'RLVnZ':_0x5ebd7b(0x23a),'dvXpe':'<PasswordPlaceholder>','kHXMc':function(_0x30556c,_0x352af2,_0x491fac){return _0x30556c(_0x352af2,_0x491fac);},'kPbpb':function(_0x1a1425,_0x25bd04,_0xda39e8){return _0x1a1425(_0x25bd04,_0xda39e8);},'pGrwa':_0x5ebd7b(0x2d5),'iOxTJ':_0x5ebd7b(0x284),'grUxl':_0x5ebd7b(0x2a7),'pPRcf':_0x5ebd7b(0x2d6),'jSsdv':_0x5ebd7b(0x233),'RFJLa':function(_0x63715b,_0x23cca1){return _0x63715b(_0x23cca1);},'LqYEI':_0x5ebd7b(0x232),'AcIKa':function(_0x5dd14b,_0x2e96e0,_0x2798b1){return _0x5dd14b(_0x2e96e0,_0x2798b1);},'tJFpN':'isTls1_2_SUPPORTED','mgwur':'Tool\x20Installed','vDgWK':_0x5ebd7b(0x1ef),'gRvUL':'Whitelisted\x20browserstack','gdqmJ':_0x5ebd7b(0x256),'DPizN':function(_0x1952f4,_0x388e82){return _0x1952f4+_0x388e82;},'eMYDD':_0x5ebd7b(0x2b6),'IAtxi':function(_0x10f1fc,_0xd245a6,_0x524380,_0x623f69,_0x554050,_0x5e148a,_0x54a0c1){return _0x10f1fc(_0xd245a6,_0x524380,_0x623f69,_0x554050,_0x5e148a,_0x54a0c1);},'GBvRB':_0x5ebd7b(0x2c0)};let _0xc9a544,_0x2d6d8c;try{global_registry['requestId']=_0x1bf533[_0x5ebd7b(0x241)](uuidv4);!fs[_0x5ebd7b(0x28d)](_0x1bf533[_0x5ebd7b(0x241)](getCredentialsPath))&&(_0x2d6d8c=_0x1bf533[_0x5ebd7b(0x282)],logger['error'](_0x2d6d8c),await _0x1bf533[_0x5ebd7b(0x1e9)](reportToGalactusAndSendToEDS,_0x1fa241,_0xc9a544,_0x2d6d8c,messageTypes[_0x5ebd7b(0x290)],_0x1bf533[_0x5ebd7b(0x236)],_0x1bf533[_0x5ebd7b(0x25d)],_0x1bf533['nFxhf']),process[_0x5ebd7b(0x26f)](0x1));_0x1bf533[_0x5ebd7b(0x2e2)](sendInstrumentationEvent,_0x1fa241,_0x1bf533[_0x5ebd7b(0x236)],messageTypes[_0x5ebd7b(0x2c2)],null,null,_0x1fa241);const _0x14c8f5=JSON['parse'](fs[_0x5ebd7b(0x272)](_0x1bf533[_0x5ebd7b(0x241)](getCredentialsPath)));global_registry['bstackUsername']=_0x14c8f5[_0x5ebd7b(0x2a3)]['username'],global_registry[_0x5ebd7b(0x231)]=_0x14c8f5[_0x5ebd7b(0x2a3)]['password'];const _0x1999dd=WS_ENDPOINT[_0x5ebd7b(0x2db)](_0x1bf533['RLVnZ'],_0x14c8f5[_0x5ebd7b(0x2a3)]['username'])[_0x5ebd7b(0x2db)](_0x1bf533[_0x5ebd7b(0x1f7)],_0x14c8f5['Browserstack']['password']),_0x5ee3b6={};_0x5ee3b6['WebSocket']=ws,_0x5ee3b6[_0x5ebd7b(0x278)]=0x36ee80,_0xc9a544=new ReconnectingWebSocket(_0x1999dd,[],_0x5ee3b6),global_registry[_0x5ebd7b(0x23e)]=_0x1bf533[_0x5ebd7b(0x27e)](getAuthHeader,global_registry[_0x5ebd7b(0x21b)],global_registry[_0x5ebd7b(0x231)]),await _0x1bf533[_0x5ebd7b(0x283)](inputValidation,_0x1fa241,_0xc9a544),logger[_0x5ebd7b(0x22b)](_0x5ebd7b(0x26d)+global_registry['cloudProvider']+_0x5ebd7b(0x29a)+global_registry['clusterRegion']);let _0xd05152=await _0x1bf533[_0x5ebd7b(0x2e2)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x5ebd7b(0x2ae)],_0x1bf533[_0x5ebd7b(0x29c)],_0xc9a544,webSocketUtils,_0x1fa241);const _0x190d53=await _0xd05152[_0x5ebd7b(0x2b9)]();_0x1bf533[_0x5ebd7b(0x283)](printResponse,_0x1bf533[_0x5ebd7b(0x258)],_0x190d53),_0xd05152=await _0xd05152[_0x5ebd7b(0x2c7)]();let _0x2e0592=![];try{_0x2e0592=await _0xd05152[_0x5ebd7b(0x257)]();}catch(_0x466325){const _0x1a0365=_0x1bf533[_0x5ebd7b(0x20c)]['split']('|');let _0x354b77=0x0;while(!![]){switch(_0x1a0365[_0x354b77++]){case'0':_0x2d6d8c+='\x0a'+JSON[_0x5ebd7b(0x271)](_0x466325[_0x5ebd7b(0x1f5)]);continue;case'1':_0x2e0592=null;continue;case'2':logger[_0x5ebd7b(0x268)](_0x2d6d8c);continue;case'3':_0x2d6d8c=_0x5ebd7b(0x245)+global_registry['clusterName']+_0x5ebd7b(0x246)+global_registry[_0x5ebd7b(0x262)]+'`\x20,error\x20:\x20'+_0x466325;continue;case'4':await _0x1bf533['owXGQ'](reportToGalactusAndSendToEDS,_0x1fa241,_0xc9a544,_0x2d6d8c,messageTypes[_0x5ebd7b(0x290)],_0x1bf533[_0x5ebd7b(0x236)],_0x5ebd7b(0x1eb)+global_registry[_0x5ebd7b(0x29d)],_0x1bf533[_0x5ebd7b(0x2ac)]);continue;}break;}}_0x2e0592&&logger['info'](_0x5ebd7b(0x23c)+global_registry['clusterName']+_0x5ebd7b(0x2c1));const _0x320cfe=await _0xd05152[_0x5ebd7b(0x269)]();_0x1bf533['kPbpb'](printResponse,_0x1bf533[_0x5ebd7b(0x23f)],_0x320cfe);const _0x4e42d7=await _0x1bf533[_0x5ebd7b(0x241)](curlRequest);_0x1bf533[_0x5ebd7b(0x283)](printResponse,_0x1bf533['jSsdv'],_0x4e42d7);const _0x1b546f=await _0x1bf533['RFJLa'](isTlsSupported,_0x1bf533[_0x5ebd7b(0x1e6)]);_0x1bf533['AcIKa'](printResponse,_0x1bf533[_0x5ebd7b(0x222)],_0x1b546f);const _0x517be6={};_0x517be6['header']=_0x1bf533[_0x5ebd7b(0x230)],_0x517be6[_0x5ebd7b(0x297)]=_0x190d53;const _0x576e2d={};_0x576e2d[_0x5ebd7b(0x2cc)]=_0x1bf533[_0x5ebd7b(0x293)],_0x576e2d['response']=_0x320cfe;const _0x276850={};_0x276850[_0x5ebd7b(0x2cc)]=_0x1bf533[_0x5ebd7b(0x2b5)],_0x276850[_0x5ebd7b(0x297)]=_0x4e42d7;const _0x1d602d={};_0x1d602d[_0x5ebd7b(0x2cc)]=_0x1bf533['gdqmJ'],_0x1d602d['response']=_0x1b546f;const _0x5d92e8=[_0x517be6,_0x576e2d,_0x276850,_0x1d602d],_0x4970e1=await _0x1bf533[_0x5ebd7b(0x283)](generateReport,_0x5d92e8,_0x2e0592),_0x2517ee=new Date(),_0x114c1f=_0x2517ee['getUTCFullYear']()+'_'+_0x1bf533['DPizN'](_0x2517ee[_0x5ebd7b(0x2bf)](),0x1)+'_'+_0x2517ee['getUTCDate']()+'_'+_0x2517ee[_0x5ebd7b(0x29b)]()+'_'+_0x2517ee['getUTCMinutes'](),_0x4452a3=_0x5ebd7b(0x25e)+_0x114c1f+_0x5ebd7b(0x1f9);fs[_0x5ebd7b(0x2c8)](_0x4452a3,_0x4970e1,_0x1bf533['eMYDD']),logger[_0x5ebd7b(0x22b)](_0x5ebd7b(0x28f)+_0x4452a3),process[_0x5ebd7b(0x26f)](0x0);}catch(_0x20b1b5){let _0x2db7ea=_0x5ebd7b(0x22c)+_0x20b1b5+'\x20';logger[_0x5ebd7b(0x268)](_0x2db7ea),_0x2db7ea+='\x0a'+JSON['stringify'](_0x20b1b5[_0x5ebd7b(0x1f5)]),logger[_0x5ebd7b(0x27f)]('stack\x20trace\x20'+_0x20b1b5[_0x5ebd7b(0x1f5)]);if(_0xc9a544){const _0x2ca7ea={};_0x2ca7ea[_0x5ebd7b(0x1fa)]=WS_EVENTS[_0x5ebd7b(0x261)],_0x2ca7ea[_0x5ebd7b(0x244)]=_0x2db7ea,webSocketUtils['sendEventToBackend'](_0xc9a544,_0x2ca7ea,_0x1bf533[_0x5ebd7b(0x2ac)],!![]);}await webSocketUtils[_0x5ebd7b(0x253)](0x7d0);const _0x574776={};_0x574776[_0x5ebd7b(0x268)]=_0x2db7ea,await _0x1bf533['IAtxi'](sendInstrumentationEvent,_0x1fa241,_0x1bf533[_0x5ebd7b(0x236)],messageTypes[_0x5ebd7b(0x290)],_0x1bf533[_0x5ebd7b(0x2cd)],_0x574776,_0x1fa241),process[_0x5ebd7b(0x26f)](0x1);}};
@@ -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_0x757a40=a18_0x4c4e;function a18_0x3c15(){const _0x428aa4=['nTWGq','Start\x20an\x20existing\x20Automation\x20grid.','../config/constants','strict','6hRmxOY','11291gSaZnl','desc','5391220zAKFjO','recommendCommands','start_commands','command','1688cvrTuX','2778465mhzuey','12885257zsGYAZ','117oXUeYy','1982136ndvIhU','commandDir','help','handler','qTOcW','852981kXxghD','usage','1211pEIcek','start','24yFXdXe','9NxmHhq','2022hfqQgr'];a18_0x3c15=function(){return _0x428aa4;};return a18_0x3c15();}(function(_0xa7ec47,_0x261b68){const _0x2fb88e=a18_0x4c4e,_0x4a7842=_0xa7ec47();while(!![]){try{const _0x32a574=parseInt(_0x2fb88e(0xa5))/0x1*(-parseInt(_0x2fb88e(0xa9))/0x2)+parseInt(_0x2fb88e(0xa3))/0x3*(parseInt(_0x2fb88e(0xa7))/0x4)+-parseInt(_0x2fb88e(0x9b))/0x5*(-parseInt(_0x2fb88e(0xae))/0x6)+parseInt(_0x2fb88e(0x94))/0x7*(-parseInt(_0x2fb88e(0x9a))/0x8)+-parseInt(_0x2fb88e(0xa8))/0x9*(-parseInt(_0x2fb88e(0x96))/0xa)+parseInt(_0x2fb88e(0x9c))/0xb+parseInt(_0x2fb88e(0x9e))/0xc*(-parseInt(_0x2fb88e(0x9d))/0xd);if(_0x32a574===_0x261b68)break;else _0x4a7842['push'](_0x4a7842['shift']());}catch(_0x3cad17){_0x4a7842['push'](_0x4a7842['shift']());}}}(a18_0x3c15,0xe0d42));function a18_0x4c4e(_0x24e760,_0x341618){const _0x3c15b9=a18_0x3c15();return a18_0x4c4e=function(_0x4c4eb2,_0x1a1a53){_0x4c4eb2=_0x4c4eb2-0x94;let _0x29cc60=_0x3c15b9[_0x4c4eb2];return _0x29cc60;},a18_0x4c4e(_0x24e760,_0x341618);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x757a40(0xac));exports[a18_0x757a40(0x99)]=a18_0x757a40(0xa6),exports[a18_0x757a40(0x95)]=a18_0x757a40(0xab),exports['builder']=function(_0x4a79ad){const _0x4fe9eb=a18_0x757a40,_0x3f7e1b={};_0x3f7e1b[_0x4fe9eb(0xaa)]=_0x4fe9eb(0x98),_0x3f7e1b[_0x4fe9eb(0xa2)]='help';const _0x3d7b8b=_0x3f7e1b;return _0x4a79ad[_0x4fe9eb(0xa4)](HELP_HEADER_MESSAGE[_0x4fe9eb(0xa6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4fe9eb(0x9f)](_0x3d7b8b[_0x4fe9eb(0xaa)])['demandCommand']()[_0x4fe9eb(0x97)]()[_0x4fe9eb(0xad)]()[_0x4fe9eb(0xa0)](_0x3d7b8b[_0x4fe9eb(0xa2)]);},exports[a18_0x757a40(0xa1)]=function(_0x2b2f7e){};
@@ -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_0x47fdab=a19_0x1e1a;(function(_0x51a569,_0x27b1ca){const _0x218b58=a19_0x1e1a,_0x4a315d=_0x51a569();while(!![]){try{const _0x3be763=parseInt(_0x218b58(0x172))/0x1*(-parseInt(_0x218b58(0x14e))/0x2)+parseInt(_0x218b58(0x162))/0x3+-parseInt(_0x218b58(0x16b))/0x4*(-parseInt(_0x218b58(0x14f))/0x5)+parseInt(_0x218b58(0x163))/0x6*(parseInt(_0x218b58(0x177))/0x7)+parseInt(_0x218b58(0x16f))/0x8*(parseInt(_0x218b58(0x16d))/0x9)+-parseInt(_0x218b58(0x158))/0xa+-parseInt(_0x218b58(0x198))/0xb*(parseInt(_0x218b58(0x165))/0xc);if(_0x3be763===_0x27b1ca)break;else _0x4a315d['push'](_0x4a315d['shift']());}catch(_0x3ffc61){_0x4a315d['push'](_0x4a315d['shift']());}}}(a19_0x3faa,0x7dfc5));function a19_0x1e1a(_0x45c499,_0x203309){const _0x3faabb=a19_0x3faa();return a19_0x1e1a=function(_0x1e1a3e,_0x10e191){_0x1e1a3e=_0x1e1a3e-0x144;let _0x1c7375=_0x3faabb[_0x1e1a3e];return _0x1c7375;},a19_0x1e1a(_0x45c499,_0x203309);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x47fdab(0x19d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x47fdab(0x17e)),{logger}=require(a19_0x47fdab(0x181)),{getCredentialsPath,getGridDetails}=require(a19_0x47fdab(0x186)),{scaleUpHubDeployment}=require(a19_0x47fdab(0x14a)),{sendInstrumentationEvent}=require(a19_0x47fdab(0x196)),webSocketUtils=require(a19_0x47fdab(0x189)),{createK8sClient}=require(a19_0x47fdab(0x1a1)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x3faa(){const _0x32e06b=['user','gReSR','Start\x20an\x20existing\x20Automation\x20grid.','body','7SPnPpv','parse','DBrZn','Skip\x20insecure\x20cert\x20verification.','name','description','statusCode','../../config/constants','INFO','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../config/logger','grid-id','Browserstack','server-error','desc','../../utils/utilityMethods','exit','boolean','../../utils/webSocketUtils','clusterName','Adding\x20Websocket\x20listeners','KXSLW','Starting\x20grid\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','start','region','Xhcud','xIcJf','stack','../../utils/instrumentationUtils','lorXF','44kUQsYn','meyyY','mgtmI','<PasswordPlaceholder>','Grid\x20started','reconnecting-websocket','WebSocket','addListeners','bstackAccesskey','../../utils/createk8sClient','connectionTimeout','username','ERROR','help','OrZRw','skipTlsCertVerify','EPExE','../../utils/gridComponents','debug','readFileSync','error','19532QAAOri','5bwwQIq','vfnig','BxZIw','dPApN','init-not-called','argv','AZlzJ','leGMK','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','2096300RwetCp','stringify','cloudProvider','wZbag','HxnXA','password','rLReW','grid','YevDa','type','27579AFVHFE','3056286bywSSA','lAdzu','969756xIVQrQ','NLlbX','gridId','start-grid-called','GhXbI','clusterRegion','318460xCWfvc','mfqqL','1850256uTRLGa','string','24PHsVNk','bstackUsername','replace','17OPijko'];a19_0x3faa=function(){return _0x32e06b;};return a19_0x3faa();}exports['command']=a19_0x47fdab(0x15f),exports[a19_0x47fdab(0x185)]=a19_0x47fdab(0x175),exports['builder']=function(_0x53f251){const _0x61173e=a19_0x47fdab,_0x58fa85={};_0x58fa85[_0x61173e(0x179)]=_0x61173e(0x180),_0x58fa85[_0x61173e(0x193)]=_0x61173e(0x16e),_0x58fa85[_0x61173e(0x197)]=_0x61173e(0x17a),_0x58fa85['GhXbI']=_0x61173e(0x188),_0x58fa85[_0x61173e(0x149)]=_0x61173e(0x146);const _0xd1452d=_0x58fa85,_0x26da3f={};_0x26da3f[_0x61173e(0x17c)]=_0xd1452d[_0x61173e(0x179)],_0x26da3f[_0x61173e(0x161)]=_0xd1452d['Xhcud'];const _0x35d7bb={};_0x35d7bb['description']=_0xd1452d['lorXF'],_0x35d7bb[_0x61173e(0x161)]=_0xd1452d[_0x61173e(0x169)],_0x35d7bb['default']=![];const _0x4d6474={};return _0x4d6474[_0x61173e(0x182)]=_0x26da3f,_0x4d6474['skip-tls-cert-verify']=_0x35d7bb,_0x53f251['usage'](HELP_HEADER_MESSAGE[_0x61173e(0x191)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4d6474)['help'](_0xd1452d[_0x61173e(0x149)])[_0x61173e(0x154)];},exports['handler']=async function(_0x1b25ad){const _0x14639a=a19_0x47fdab,_0xd17f5={'OeqQz':_0x14639a(0x18e),'NLlbX':function(_0x19fe95){return _0x19fe95();},'BxZIw':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vfnig':function(_0x36e7c0,_0x2344d3,_0x3c1115,_0x4ef87d,_0x70de60,_0x400a49,_0x3c86d4){return _0x36e7c0(_0x2344d3,_0x3c1115,_0x4ef87d,_0x70de60,_0x400a49,_0x3c86d4);},'wZbag':_0x14639a(0x168),'gReSR':_0x14639a(0x153),'mgtmI':function(_0x32f640,_0x4ee9a8,_0x3dc979,_0x390305,_0x415977,_0x575d14,_0x164b8f){return _0x32f640(_0x4ee9a8,_0x3dc979,_0x390305,_0x415977,_0x575d14,_0x164b8f);},'mfqqL':'<UsernamePlaceholder>','leGMK':_0x14639a(0x19b),'AZlzJ':_0x14639a(0x18b),'dPApN':function(_0x168992,_0x4c1c0a,_0x3103ce,_0x451eaa){return _0x168992(_0x4c1c0a,_0x3103ce,_0x451eaa);},'KXSLW':function(_0x596d8a,_0x521abf,_0x57781c,_0x5416b1,_0x7b01cb,_0x361ea0,_0x47aa2c){return _0x596d8a(_0x521abf,_0x57781c,_0x5416b1,_0x7b01cb,_0x361ea0,_0x47aa2c);},'YevDa':function(_0x3a3661,_0x172af7,_0x4e7505){return _0x3a3661(_0x172af7,_0x4e7505);},'xIcJf':_0x14639a(0x19c),'OrZRw':function(_0x5383fa,_0x55ad05){return _0x5383fa===_0x55ad05;},'HxnXA':_0x14639a(0x18f),'meyyY':'unauthorised','sFZdx':function(_0x199da1,_0x5d61d9,_0x5a7ce8,_0x4921af,_0x2685f8,_0x12c153,_0x254e65){return _0x199da1(_0x5d61d9,_0x5a7ce8,_0x4921af,_0x2685f8,_0x12c153,_0x254e65);},'lAdzu':'invalid-grid-id','rLReW':_0x14639a(0x184)};let _0x28e925;try{!_0x1b25ad[_0x14639a(0x167)]&&(logger[_0x14639a(0x14d)](_0xd17f5['OeqQz']),process[_0x14639a(0x187)](0x1));!fs['existsSync'](_0xd17f5[_0x14639a(0x166)](getCredentialsPath))&&(logger[_0x14639a(0x14d)](_0xd17f5[_0x14639a(0x151)]),await _0xd17f5[_0x14639a(0x150)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x174)],null,_0x1b25ad),process['exit'](0x1));logger[_0x14639a(0x190)](_0x14639a(0x18d)+_0x1b25ad[_0x14639a(0x167)]),await _0xd17f5[_0x14639a(0x19a)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x17f)],null,null,_0x1b25ad);const _0x7d6c51=JSON[_0x14639a(0x178)](fs[_0x14639a(0x14c)](_0xd17f5[_0x14639a(0x166)](getCredentialsPath)));global_registry[_0x14639a(0x170)]=_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x144)],global_registry[_0x14639a(0x1a0)]=_0x7d6c51['Browserstack'][_0x14639a(0x15d)];const _0x33c647=WS_ENDPOINT['replace'](_0xd17f5[_0x14639a(0x16c)],_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x144)])[_0x14639a(0x171)](_0xd17f5[_0x14639a(0x156)],_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x15d)]),_0x1cba4a={};_0x1cba4a[_0x14639a(0x19e)]=ws,_0x1cba4a[_0x14639a(0x1a2)]=0x36ee80,_0x28e925=new ReconnectingWebSocket(_0x33c647,[],_0x1cba4a),logger[_0x14639a(0x14b)](_0xd17f5[_0x14639a(0x155)]),webSocketUtils[_0x14639a(0x19f)](_0x28e925,_0x1b25ad[_0x14639a(0x173)],_0x1b25ad[_0x14639a(0x15d)]);const [_0x4fb81d,_0x4b69b4]=await _0xd17f5[_0x14639a(0x152)](getGridDetails,_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x144)],_0x7d6c51[_0x14639a(0x183)]['password'],_0x1b25ad[_0x14639a(0x167)]);if(_0x4b69b4){const _0x20e14c=_0x4b69b4[_0x14639a(0x190)];global_registry['cloudProvider']=_0x20e14c[_0x14639a(0x15a)],global_registry[_0x14639a(0x16a)]=_0x20e14c[_0x14639a(0x192)],global_registry[_0x14639a(0x18a)]=_0x20e14c[_0x14639a(0x18a)];const _0x47d2e9=await _0xd17f5['KXSLW'](getCloudProviderObject,_0x20e14c['cloudProvider'],_0x20e14c['clusterName'],_0x20e14c[_0x14639a(0x17b)],_0x28e925,webSocketUtils,_0x1b25ad),[_0x58e215,_0x54a786,_0x20d12f,_0x19b759,_0x269052,_0x2621d4]=await _0xd17f5[_0x14639a(0x160)](createK8sClient,_0x47d2e9,_0x1b25ad[_0x14639a(0x148)]);await _0xd17f5['YevDa'](scaleUpHubDeployment,_0x54a786,_0x20e14c[_0x14639a(0x17b)]),logger['info'](_0xd17f5[_0x14639a(0x194)]),process[_0x14639a(0x187)](0x0);}_0xd17f5['OrZRw'](_0x4fb81d[_0x14639a(0x17d)],0x191)&&(logger[_0x14639a(0x14d)](_0xd17f5[_0x14639a(0x15c)]),await _0xd17f5[_0x14639a(0x18c)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5['wZbag'],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x199)],null,_0x1b25ad),process[_0x14639a(0x187)](0x1)),_0xd17f5[_0x14639a(0x147)](_0x4fb81d[_0x14639a(0x17d)],0x190)&&(logger[_0x14639a(0x14d)](JSON[_0x14639a(0x178)](_0x4fb81d[_0x14639a(0x176)])['message']),await _0xd17f5['sFZdx'](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x164)],null,_0x1b25ad),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x14639a(0x159)](_0x4fb81d)),await _0xd17f5[_0x14639a(0x18c)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x15e)],_0x4fb81d,_0x1b25ad),process[_0x14639a(0x187)](0x1);}catch(_0x389e14){const _0x2b899d=_0x14639a(0x157)+_0x389e14+'\x20\x0a'+JSON[_0x14639a(0x159)](_0x389e14[_0x14639a(0x195)])+'\x20';logger[_0x14639a(0x14d)](_0x2b899d),process[_0x14639a(0x187)](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
+ function a20_0xc750(){const _0x1e5c50=['desc','builder','stop','1574hhARpg','commandDir','1511565TjgYSD','547IsVpzS','7255567dISHxh','42sDHptw','115044YsgGBl','epilogue','help','demandCommand','Stop\x20a\x20running\x20Automation\x20grid.','10KVRNkS','TOfIo','3818790AkKbdr','handler','21973GkColM','362946sdNWAL','strict','usage','stop_commands','528huyjAu'];a20_0xc750=function(){return _0x1e5c50;};return a20_0xc750();}function a20_0xa880(_0x4844b3,_0x125d6d){const _0xc75076=a20_0xc750();return a20_0xa880=function(_0xa88015,_0x200fff){_0xa88015=_0xa88015-0x8e;let _0x23c975=_0xc75076[_0xa88015];return _0x23c975;},a20_0xa880(_0x4844b3,_0x125d6d);}const a20_0x531bfd=a20_0xa880;(function(_0x846b17,_0x17b837){const _0x8d8f71=a20_0xa880,_0x517b21=_0x846b17();while(!![]){try{const _0x3cd72d=parseInt(_0x8d8f71(0x97))/0x1*(parseInt(_0x8d8f71(0x94))/0x2)+-parseInt(_0x8d8f71(0x99))/0x3*(parseInt(_0x8d8f71(0x9a))/0x4)+parseInt(_0x8d8f71(0x96))/0x5+-parseInt(_0x8d8f71(0xa4))/0x6+-parseInt(_0x8d8f71(0xa3))/0x7*(-parseInt(_0x8d8f71(0x90))/0x8)+parseInt(_0x8d8f71(0xa1))/0x9+parseInt(_0x8d8f71(0x9f))/0xa*(-parseInt(_0x8d8f71(0x98))/0xb);if(_0x3cd72d===_0x17b837)break;else _0x517b21['push'](_0x517b21['shift']());}catch(_0x453983){_0x517b21['push'](_0x517b21['shift']());}}}(a20_0xc750,0x3af88));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a20_0x531bfd(0x93),exports[a20_0x531bfd(0x91)]=a20_0x531bfd(0x9e),exports[a20_0x531bfd(0x92)]=function(_0x36b669){const _0x35ecba=a20_0x531bfd,_0x28e53f={};_0x28e53f[_0x35ecba(0xa0)]=_0x35ecba(0x8f),_0x28e53f['xlqdM']=_0x35ecba(0x9c);const _0x314e2a=_0x28e53f;return _0x36b669[_0x35ecba(0x8e)](HELP_HEADER_MESSAGE[_0x35ecba(0x93)])[_0x35ecba(0x9b)](HELP_FOOTER_MESSAGE)[_0x35ecba(0x95)](_0x314e2a['TOfIo'])[_0x35ecba(0x9d)]()['recommendCommands']()[_0x35ecba(0xa5)]()[_0x35ecba(0x9c)](_0x314e2a['xlqdM']);},exports[a20_0x531bfd(0xa2)]=function(_0xb11a17){};
@@ -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_0x15c91d=a21_0x3ac6;function a21_0x3ac6(_0x32f3a1,_0x5ec6b8){const _0x3974cf=a21_0x3974();return a21_0x3ac6=function(_0x3ac614,_0x19d229){_0x3ac614=_0x3ac614-0xee;let _0x9f209c=_0x3974cf[_0x3ac614];return _0x9f209c;},a21_0x3ac6(_0x32f3a1,_0x5ec6b8);}(function(_0x188d45,_0x3a234b){const _0x2cc9d3=a21_0x3ac6,_0x5bf946=_0x188d45();while(!![]){try{const _0x844597=-parseInt(_0x2cc9d3(0x100))/0x1*(parseInt(_0x2cc9d3(0x118))/0x2)+parseInt(_0x2cc9d3(0x130))/0x3+parseInt(_0x2cc9d3(0x148))/0x4+parseInt(_0x2cc9d3(0x12a))/0x5*(-parseInt(_0x2cc9d3(0x112))/0x6)+parseInt(_0x2cc9d3(0xef))/0x7+parseInt(_0x2cc9d3(0x103))/0x8+parseInt(_0x2cc9d3(0x145))/0x9*(-parseInt(_0x2cc9d3(0x12f))/0xa);if(_0x844597===_0x3a234b)break;else _0x5bf946['push'](_0x5bf946['shift']());}catch(_0x99ee7d){_0x5bf946['push'](_0x5bf946['shift']());}}}(a21_0x3974,0xaa8c2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x15c91d(0x127)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x15c91d(0x129)),{logger}=require(a21_0x15c91d(0xf6)),{getCredentialsPath,getGridDetails}=require(a21_0x15c91d(0x13c)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x15c91d(0x13f)),webSocketUtils=require(a21_0x15c91d(0x106)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x15c91d(0x14b)]=a21_0x15c91d(0xf3),exports[a21_0x15c91d(0x11e)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x5b7109){const _0x3fab05=a21_0x15c91d,_0x38c425={};_0x38c425[_0x3fab05(0xf4)]=_0x3fab05(0xee),_0x38c425['pyNNX']=_0x3fab05(0x139),_0x38c425[_0x3fab05(0x141)]=_0x3fab05(0xff),_0x38c425[_0x3fab05(0x122)]=_0x3fab05(0xfc),_0x38c425['kTCYo']='help';const _0x113e8d=_0x38c425,_0x4a18bb={};_0x4a18bb[_0x3fab05(0x115)]=_0x113e8d[_0x3fab05(0xf4)],_0x4a18bb[_0x3fab05(0xf2)]=_0x113e8d[_0x3fab05(0x128)];const _0x274e20={};_0x274e20[_0x3fab05(0x115)]=_0x113e8d[_0x3fab05(0x141)],_0x274e20['type']=_0x113e8d[_0x3fab05(0x122)],_0x274e20['default']=![];const _0x11f1a2={};return _0x11f1a2['grid-id']=_0x4a18bb,_0x11f1a2['skip-tls-cert-verify']=_0x274e20,_0x5b7109[_0x3fab05(0x11a)](HELP_HEADER_MESSAGE[_0x3fab05(0x11b)])[_0x3fab05(0x108)](HELP_FOOTER_MESSAGE)[_0x3fab05(0x124)](_0x11f1a2)[_0x3fab05(0x11d)](_0x113e8d[_0x3fab05(0x147)])[_0x3fab05(0x134)];},exports[a21_0x15c91d(0x10f)]=async function(_0x2db2f5){const _0x3bf2ca=a21_0x15c91d,_0x2972cb={'oiMWh':_0x3bf2ca(0x135),'WcbEu':function(_0x3ff542){return _0x3ff542();},'xcVsD':_0x3bf2ca(0x110),'myblZ':function(_0x47bef4,_0x6a612e,_0xdf7be5,_0x58f8d3,_0x1b6f39,_0x442c70,_0x4d436c){return _0x47bef4(_0x6a612e,_0xdf7be5,_0x58f8d3,_0x1b6f39,_0x442c70,_0x4d436c);},'PYDhQ':_0x3bf2ca(0x125),'Sodlq':_0x3bf2ca(0x104),'UVtzy':function(_0x109cc5,_0x1eb223,_0x4aed80,_0x4cd555,_0x5412a0,_0x2e728f,_0x41b52d){return _0x109cc5(_0x1eb223,_0x4aed80,_0x4cd555,_0x5412a0,_0x2e728f,_0x41b52d);},'RiPpf':function(_0x3d2b7e){return _0x3d2b7e();},'tPYsm':_0x3bf2ca(0xf7),'vXGyk':_0x3bf2ca(0x149),'XXWhj':_0x3bf2ca(0xf0),'FikIW':function(_0xca94ea,_0xc5e85f,_0x6bce98,_0x1e2d5e){return _0xca94ea(_0xc5e85f,_0x6bce98,_0x1e2d5e);},'rfFeF':function(_0x79e20d,_0x42e420,_0x203864,_0x30dfa2,_0x336059,_0x46993b,_0x4f0888){return _0x79e20d(_0x42e420,_0x203864,_0x30dfa2,_0x336059,_0x46993b,_0x4f0888);},'uTSUL':function(_0x5c1ccd,_0x4d75e1,_0x3ac04d){return _0x5c1ccd(_0x4d75e1,_0x3ac04d);},'BNjzP':function(_0x4ca223,_0x37cd76,_0x2415df){return _0x4ca223(_0x37cd76,_0x2415df);},'tsftw':_0x3bf2ca(0x10d),'gHVfp':function(_0x184f36,_0x27db2a){return _0x184f36===_0x27db2a;},'wbdyl':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hhqMC':function(_0xbaa460,_0x4c2b75,_0x1e9fbc,_0x12471e,_0x404c60,_0xc2a74c,_0x1e1bbe){return _0xbaa460(_0x4c2b75,_0x1e9fbc,_0x12471e,_0x404c60,_0xc2a74c,_0x1e1bbe);},'yNVmp':_0x3bf2ca(0x114),'tLZBH':function(_0x25aa20,_0x2da18d){return _0x25aa20===_0x2da18d;},'VGKoh':function(_0x26df72,_0x460e91,_0x4b632f,_0x531c94,_0x4031fb,_0x2a813d,_0x1b93ac){return _0x26df72(_0x460e91,_0x4b632f,_0x531c94,_0x4031fb,_0x2a813d,_0x1b93ac);},'bNMve':'invalid-grid-id','OyIAl':_0x3bf2ca(0xfe)};let _0xdd5682;try{!_0x2db2f5[_0x3bf2ca(0x123)]&&(logger[_0x3bf2ca(0x144)](_0x2972cb[_0x3bf2ca(0x119)]),process[_0x3bf2ca(0xfb)](0x1));!fs[_0x3bf2ca(0x132)](_0x2972cb[_0x3bf2ca(0x113)](getCredentialsPath))&&(logger[_0x3bf2ca(0x144)](_0x2972cb[_0x3bf2ca(0x13e)]),await _0x2972cb[_0x3bf2ca(0x117)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb[_0x3bf2ca(0x136)],messageTypes[_0x3bf2ca(0x105)],_0x2972cb['Sodlq'],null,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1));logger[_0x3bf2ca(0x121)](_0x3bf2ca(0x138)+_0x2db2f5[_0x3bf2ca(0x123)]),await _0x2972cb[_0x3bf2ca(0xf5)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb['PYDhQ'],messageTypes[_0x3bf2ca(0x10b)],null,null,_0x2db2f5);const _0x545947=JSON[_0x3bf2ca(0x131)](fs[_0x3bf2ca(0x126)](_0x2972cb[_0x3bf2ca(0x14d)](getCredentialsPath)));global_registry[_0x3bf2ca(0x13d)]=_0x545947['Browserstack'][_0x3bf2ca(0xf8)],global_registry['bstackAccesskey']=_0x545947['Browserstack'][_0x3bf2ca(0x107)];const _0x921cd8=WS_ENDPOINT[_0x3bf2ca(0x140)](_0x2972cb['tPYsm'],_0x545947['Browserstack'][_0x3bf2ca(0xf8)])[_0x3bf2ca(0x140)](_0x2972cb[_0x3bf2ca(0x137)],_0x545947[_0x3bf2ca(0x146)]['password']),_0x4c5c91={};_0x4c5c91[_0x3bf2ca(0x109)]=ws,_0x4c5c91['connectionTimeout']=0x36ee80,_0xdd5682=new ReconnectingWebSocket(_0x921cd8,[],_0x4c5c91),logger['debug'](_0x2972cb[_0x3bf2ca(0x14c)]),webSocketUtils[_0x3bf2ca(0x12d)](_0xdd5682,_0x2db2f5[_0x3bf2ca(0x11c)],_0x2db2f5[_0x3bf2ca(0x107)]);const [_0x27ca54,_0x3f3f41]=await _0x2972cb[_0x3bf2ca(0x11f)](getGridDetails,_0x545947[_0x3bf2ca(0x146)]['username'],_0x545947[_0x3bf2ca(0x146)][_0x3bf2ca(0x107)],_0x2db2f5[_0x3bf2ca(0x123)]);if(_0x3f3f41){const _0x459a7b=_0x3f3f41[_0x3bf2ca(0x121)];global_registry[_0x3bf2ca(0x12c)]=_0x459a7b[_0x3bf2ca(0x12c)],global_registry[_0x3bf2ca(0x142)]=_0x459a7b[_0x3bf2ca(0xf9)],global_registry['clusterName']=_0x459a7b['clusterName'];const _0x1a136f=await _0x2972cb[_0x3bf2ca(0x133)](getCloudProviderObject,_0x459a7b[_0x3bf2ca(0x12c)],_0x459a7b['clusterName'],_0x459a7b[_0x3bf2ca(0x13a)],_0xdd5682,webSocketUtils,_0x2db2f5),[_0xa1df3a,_0x2c83fd,_0x1217ce,_0x122c48,_0xc4105d,_0x58dbc5]=await _0x2972cb['uTSUL'](createK8sClient,_0x1a136f,_0x2db2f5[_0x3bf2ca(0xfa)]);await _0x2972cb[_0x3bf2ca(0x14a)](scaleDownHubDeployment,_0x2c83fd,_0x459a7b['name']),logger['info'](_0x2972cb['tsftw']),process[_0x3bf2ca(0xfb)](0x0);}_0x2972cb[_0x3bf2ca(0x10c)](_0x27ca54[_0x3bf2ca(0x116)],0x191)&&(logger[_0x3bf2ca(0x144)](_0x2972cb[_0x3bf2ca(0x143)]),await _0x2972cb[_0x3bf2ca(0x12e)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb[_0x3bf2ca(0x136)],messageTypes[_0x3bf2ca(0x105)],_0x2972cb[_0x3bf2ca(0x10a)],null,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1)),_0x2972cb[_0x3bf2ca(0xf1)](_0x27ca54[_0x3bf2ca(0x116)],0x190)&&(logger[_0x3bf2ca(0x144)](JSON[_0x3bf2ca(0x131)](_0x27ca54[_0x3bf2ca(0x12b)])[_0x3bf2ca(0x111)]),await _0x2972cb[_0x3bf2ca(0x120)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb['PYDhQ'],messageTypes['ERROR'],_0x2972cb['bNMve'],null,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1)),logger[_0x3bf2ca(0x144)](_0x3bf2ca(0xfd)+JSON[_0x3bf2ca(0x13b)](_0x27ca54)),await _0x2972cb[_0x3bf2ca(0xf5)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb[_0x3bf2ca(0x136)],messageTypes[_0x3bf2ca(0x105)],_0x2972cb[_0x3bf2ca(0x102)],_0x27ca54,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1);}catch(_0x505004){const _0x20f10c=_0x3bf2ca(0x101)+_0x505004+'\x20\x0a'+JSON[_0x3bf2ca(0x13b)](_0x505004[_0x3bf2ca(0x10e)])+'\x20';logger['error'](_0x20f10c),process['exit'](0x1);}};function a21_0x3974(){const _0x21066b=['error','6633HSXDrD','Browserstack','kTCYo','3912668QXIxoP','<PasswordPlaceholder>','BNjzP','command','XXWhj','RiPpf','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','6309835grkSZs','Adding\x20Websocket\x20listeners','tLZBH','type','grid','jeyDf','UVtzy','../../config/logger','<UsernamePlaceholder>','username','region','skipTlsCertVerify','exit','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','server-error','Skip\x20insecure\x20cert\x20verification.','1yrlbpw','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','OyIAl','7566040vGbdWL','init-not-called','ERROR','../../utils/webSocketUtils','password','epilogue','WebSocket','yNVmp','INFO','gHVfp','Grid\x20stoppped.','stack','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','message','318ibnyAJ','WcbEu','unauthorised','description','statusCode','myblZ','80722UlnXQA','oiMWh','usage','stop','user','help','desc','FikIW','VGKoh','info','vfRoi','gridId','options','stop-grid-called','readFileSync','reconnecting-websocket','pyNNX','../../config/constants','28555IvkOOB','body','cloudProvider','addListeners','hhqMC','29530NLZziU','1177920XcfOjC','parse','existsSync','rfFeF','argv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','PYDhQ','vXGyk','Stopping\x20grid\x20','string','name','stringify','../../utils/utilityMethods','bstackUsername','xcVsD','../../utils/instrumentationUtils','replace','ewQaH','clusterRegion','wbdyl'];a21_0x3974=function(){return _0x21066b;};return a21_0x3974();}
@@ -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_0x59d4cd=a22_0x26ce;(function(_0x250a36,_0x5f3349){const _0x12c427=a22_0x26ce,_0x4ab18a=_0x250a36();while(!![]){try{const _0x59a5c0=-parseInt(_0x12c427(0x82))/0x1+parseInt(_0x12c427(0xa4))/0x2+parseInt(_0x12c427(0x76))/0x3*(-parseInt(_0x12c427(0x8d))/0x4)+parseInt(_0x12c427(0x80))/0x5*(-parseInt(_0x12c427(0x8e))/0x6)+parseInt(_0x12c427(0xa8))/0x7+parseInt(_0x12c427(0xae))/0x8+parseInt(_0x12c427(0x83))/0x9*(-parseInt(_0x12c427(0x91))/0xa);if(_0x59a5c0===_0x5f3349)break;else _0x4ab18a['push'](_0x4ab18a['shift']());}catch(_0x26fc49){_0x4ab18a['push'](_0x4ab18a['shift']());}}}(a22_0x2278,0x61b83),require('dotenv')[a22_0x59d4cd(0xc4)]());let gridURL=a22_0x59d4cd(0x74),bsApiUrl=a22_0x59d4cd(0x6f),agApiUrl=a22_0x59d4cd(0xbb);const _env=(process[a22_0x59d4cd(0x92)]['BROWSERSTACK_ENV']||'prod')[a22_0x59d4cd(0x7e)]();if(_env==='staging'||_env==='stag')gridURL=a22_0x59d4cd(0xa7),bsApiUrl=a22_0x59d4cd(0xc5),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x59d4cd(0x8f)]=process[a22_0x59d4cd(0x92)][a22_0x59d4cd(0x8f)]||gridURL,exports['BS_API_URL']=process[a22_0x59d4cd(0x92)][a22_0x59d4cd(0xa3)]||bsApiUrl,exports[a22_0x59d4cd(0xc9)]=process['env'][a22_0x59d4cd(0xc9)]||agApiUrl,exports[a22_0x59d4cd(0x95)]='wss://'+this['AG_API_URL']+a22_0x59d4cd(0x75),exports[a22_0x59d4cd(0x90)]='credentials',exports[a22_0x59d4cd(0xc6)]=a22_0x59d4cd(0xb1),exports['DEFAULT_GRID_NAME']=a22_0x59d4cd(0x89),exports[a22_0x59d4cd(0xc7)]=a22_0x59d4cd(0x7b),exports[a22_0x59d4cd(0x8b)]=a22_0x59d4cd(0xb9),exports[a22_0x59d4cd(0xb8)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x59d4cd(0xcb)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x59d4cd(0x86)]=a22_0x59d4cd(0xb4),exports[a22_0x59d4cd(0xcc)]=a22_0x59d4cd(0x78),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x59d4cd(0x86)],this['GCP']];const a22_0x169ba0={};a22_0x169ba0[a22_0x59d4cd(0x9d)]=a22_0x59d4cd(0x6e),a22_0x169ba0[a22_0x59d4cd(0x9e)]=a22_0x59d4cd(0x77);const a22_0x56c357={};a22_0x56c357[a22_0x59d4cd(0x9d)]='browserstack:service',a22_0x56c357[a22_0x59d4cd(0x9e)]='BrowserStack-Automate-TurboScale';function a22_0x2278(){const _0x247517=['\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BrowserStackIAMUser','gridUrl','configure','azure','unknown','success','HST_CLUSTER_TAGS','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER','CLI_RUN_STARTED','grid-api.browserstack.com','REDACTED','grid-profile','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','LOG','WS_EVENTS','CLOUD_PROVIDER','us-east-1','warning','config','api-devhst.bsstag.com','IAM_USER_NAME','AWS','HELP_HEADER_MESSAGE','AG_API_URL','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLUSTER_HUB_HA_STACK_NAME','GCP','CLI_ARGS_REGEX','ERROR','browserstack:managedBy','api.browserstack.com','LINK_MESSAGE','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','info','split','grid.browserstack.com','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','21pzLkqq','BrowserStack','gcp','TRIAL_GRID_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','aws','COMMON_HST_TAGS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','toLowerCase','grid','30cjQGBt','CLUSTER','149261yqUPFJ','3714327FNZJoO','root','DEFAULT_CLUSTER_DETAILS','AZURE','SUPPORTED_CLOUD_PROVIDERS','CLI_RUN_FINISHED','high-scale-grid','connect','CLUSTER_DEP_STACK_NAME','UNKNOWN','141988lfiraJ','157098yERDqe','DASHBOARD_ENDPOINT','CP_CONFIG_FILE','10mrakwH','env','start','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','WS_ENDPOINT','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridProfile','pre_check','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','INFO','Key','Value','push','WARNING','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','BS_API_URL','1064234CCTzHe','browserstack:service','delete','grid-devhst.bsstag.com','2462642msKbxY','NULL','RAW_ARGS_REGEX','list','TURBOSCALE_CUSTOM_TAGS','forEach','3871016mSOWYc','init'];a22_0x2278=function(){return _0x247517;};return a22_0x2278();}const common_hst_tags_list=[a22_0x169ba0,a22_0x56c357];if(process['env'][a22_0x59d4cd(0xac)]){const parsedTags=process[a22_0x59d4cd(0x92)][a22_0x59d4cd(0xac)][a22_0x59d4cd(0x73)](',');parsedTags[a22_0x59d4cd(0xad)](_0x5dc768=>{const _0x55963d=a22_0x59d4cd,_0x4057c6=_0x5dc768[_0x55963d(0x73)](':'),_0x281175={};_0x281175[_0x55963d(0x9d)]=_0x4057c6[0x0],_0x281175[_0x55963d(0x9e)]=_0x4057c6[0x1],common_hst_tags_list[_0x55963d(0x9f)](_0x281175);});}exports[a22_0x59d4cd(0x7c)]=common_hst_tags_list;const a22_0x19d5d2={};a22_0x19d5d2[a22_0x59d4cd(0x6e)]=a22_0x59d4cd(0x77),a22_0x19d5d2[a22_0x59d4cd(0xa5)]=a22_0x59d4cd(0xa1),exports[a22_0x59d4cd(0xb7)]=a22_0x19d5d2,exports[a22_0x59d4cd(0x87)]=[this['AWS']];const a22_0x4b5322={};a22_0x4b5322[a22_0x59d4cd(0xbf)]='log',a22_0x4b5322['RESOURCES']='resourceInfo',a22_0x4b5322['GRID_URL']=a22_0x59d4cd(0xb2),a22_0x4b5322[a22_0x59d4cd(0xba)]='cliRunStarted',a22_0x4b5322[a22_0x59d4cd(0x88)]='cliRunFinished',exports[a22_0x59d4cd(0xc0)]=a22_0x4b5322,exports['global_registry']={},exports[a22_0x59d4cd(0x70)]=a22_0x59d4cd(0x96);const a22_0x27fefe={};a22_0x27fefe[a22_0x59d4cd(0x84)]=a22_0x59d4cd(0xbe)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xaf)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xb3)]=a22_0x59d4cd(0x9b)+this[a22_0x59d4cd(0x70)],a22_0x27fefe['create']=a22_0x59d4cd(0x94)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xab)]={},a22_0x27fefe[a22_0x59d4cd(0xa6)]=a22_0x59d4cd(0x71)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0x8a)]=a22_0x59d4cd(0x97)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0x93)]=a22_0x59d4cd(0x7d)+this[a22_0x59d4cd(0x70)],a22_0x27fefe['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0x99)]=a22_0x59d4cd(0xa2)+this['LINK_MESSAGE'],a22_0x27fefe[a22_0x59d4cd(0xab)][a22_0x59d4cd(0x84)]=a22_0x59d4cd(0x7a)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xab)][a22_0x59d4cd(0x7f)]=a22_0x59d4cd(0xb0)+this['LINK_MESSAGE'],a22_0x27fefe[a22_0x59d4cd(0xab)][a22_0x59d4cd(0x98)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x59d4cd(0x70)],exports[a22_0x59d4cd(0xc8)]=a22_0x27fefe,exports['HELP_FOOTER_MESSAGE']=a22_0x59d4cd(0xca);const a22_0x268d55={};a22_0x268d55['SUCCESS']=a22_0x59d4cd(0xb6),a22_0x268d55[a22_0x59d4cd(0x6d)]='error',a22_0x268d55[a22_0x59d4cd(0x9c)]=a22_0x59d4cd(0x72),a22_0x268d55[a22_0x59d4cd(0xa0)]=a22_0x59d4cd(0xc3),a22_0x268d55[a22_0x59d4cd(0x8c)]=a22_0x59d4cd(0xb5),a22_0x268d55[a22_0x59d4cd(0xa9)]=null,exports['messageTypes']=a22_0x268d55,exports[a22_0x59d4cd(0x6c)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x59d4cd(0xaa)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x59d4cd(0xbc)]='[REDACTED]';const a22_0x2d7e21={};function a22_0x26ce(_0x456480,_0x3c5675){const _0x227894=a22_0x2278();return a22_0x26ce=function(_0x26ce1e,_0x2a0b91){_0x26ce1e=_0x26ce1e-0x6c;let _0x4b776f=_0x227894[_0x26ce1e];return _0x4b776f;},a22_0x26ce(_0x456480,_0x3c5675);}a22_0x2d7e21[a22_0x59d4cd(0xbd)]=a22_0x59d4cd(0x9a);const a22_0x165d7b={};a22_0x165d7b['pre-check']=a22_0x2d7e21,exports['MessageDescription']=a22_0x165d7b,exports[a22_0x59d4cd(0x79)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x52a9bb={};a22_0x52a9bb[a22_0x59d4cd(0x81)]='high-scale-grid-cluster',a22_0x52a9bb[a22_0x59d4cd(0xc1)]=a22_0x59d4cd(0x7b),a22_0x52a9bb['REGION']=a22_0x59d4cd(0xc2),exports[a22_0x59d4cd(0x85)]=a22_0x52a9bb;
@@ -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_0xed45d2=a23_0x3309;(function(_0x2d6244,_0xf80c88){const _0x26a433=a23_0x3309,_0x503016=_0x2d6244();while(!![]){try{const _0x449c06=parseInt(_0x26a433(0x184))/0x1*(parseInt(_0x26a433(0x186))/0x2)+parseInt(_0x26a433(0x183))/0x3*(parseInt(_0x26a433(0x1a1))/0x4)+-parseInt(_0x26a433(0x188))/0x5+-parseInt(_0x26a433(0x1a2))/0x6*(parseInt(_0x26a433(0x19c))/0x7)+parseInt(_0x26a433(0x197))/0x8*(parseInt(_0x26a433(0x19f))/0x9)+parseInt(_0x26a433(0x182))/0xa*(parseInt(_0x26a433(0x199))/0xb)+parseInt(_0x26a433(0x196))/0xc*(parseInt(_0x26a433(0x18f))/0xd);if(_0x449c06===_0xf80c88)break;else _0x503016['push'](_0x503016['shift']());}catch(_0x1cd810){_0x503016['push'](_0x503016['shift']());}}}(a23_0x14be,0x38838));const winston=require(a23_0xed45d2(0x19a)),fs=require('fs'),path=require(a23_0xed45d2(0x192)),logDir='log';function a23_0x3309(_0x428d05,_0x25144a){const _0x14bea8=a23_0x14be();return a23_0x3309=function(_0x33090c,_0x3510cf){_0x33090c=_0x33090c-0x182;let _0x4619ab=_0x14bea8[_0x33090c];return _0x4619ab;},a23_0x3309(_0x428d05,_0x25144a);}!fs[a23_0xed45d2(0x187)](logDir)&&fs[a23_0xed45d2(0x18c)](logDir);function a23_0x14be(){const _0x1f4e32=['existsSync','1504895vQAFvP','name','File','level','mkdirSync','debug','transports','70291stjCdU','fileLogger','timestamp','path','format','console.info','combine','588mYgQfx','3296vVSqCh','usage.log','33iYACPo','winston','createLogger','487172LsidSd','message','printf','1629zrQEnZ','\x20-\x20','4dSATat','12CrqRAQ','colorize','logger','join','14710yINOGC','951567venVNO','46sOgjlG','Console','458IjyIIm'];a23_0x14be=function(){return _0x1f4e32;};return a23_0x14be();}const a23_0x43f3f0={};a23_0x43f3f0[a23_0xed45d2(0x193)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x47d6c1={};a23_0x47d6c1[a23_0xed45d2(0x18b)]=!![];const a23_0x1dd581={};a23_0x1dd581[a23_0xed45d2(0x189)]=a23_0xed45d2(0x194),exports[a23_0xed45d2(0x1a4)]=new winston[(a23_0xed45d2(0x19b))]({'format':winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x195)](winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x191)](a23_0x43f3f0),winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x1a3)](a23_0x47d6c1),winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x19e)](_0x3df32e=>_0x3df32e[a23_0xed45d2(0x191)]+a23_0xed45d2(0x1a0)+_0x3df32e[a23_0xed45d2(0x18b)]+':\x20'+_0x3df32e[a23_0xed45d2(0x19d)])),'transports':[new winston[(a23_0xed45d2(0x18e))][(a23_0xed45d2(0x185))](a23_0x1dd581),new winston['transports']['File']({'filename':path[a23_0xed45d2(0x1a5)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xed45d2(0x18e))][(a23_0xed45d2(0x18a))]({'filename':path[a23_0xed45d2(0x1a5)](logDir,a23_0xed45d2(0x198)),'level':a23_0xed45d2(0x18d)})]};exports[a23_0xed45d2(0x190)]=new winston['createLogger'](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_0x4264(){const _0x4957f1=['env','commandDir','728768SQdnbR','12461688eSbRWo','9XbAeOM','XJfFe','EInjG','help','159759WykSMa','./config/constants','exports','788748bIgCAT','epilogue','617410jrEJvw','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','689940ylKKdE','usage','35qQdZgR','commands','1024392jehbpj'];a24_0x4264=function(){return _0x4957f1;};return a24_0x4264();}function a24_0x79ec(_0x276a6d,_0x5786c6){const _0x42642d=a24_0x4264();return a24_0x79ec=function(_0x79ece0,_0x3d0bad){_0x79ece0=_0x79ece0-0x9d;let _0x58d6a5=_0x42642d[_0x79ece0];return _0x58d6a5;},a24_0x79ec(_0x276a6d,_0x5786c6);}const a24_0x54c1bc=a24_0x79ec;(function(_0x486f8b,_0x4c0f05){const _0x9ad2ac=a24_0x79ec,_0x59a032=_0x486f8b();while(!![]){try{const _0x18e8c3=parseInt(_0x9ad2ac(0xa6))/0x1+parseInt(_0x9ad2ac(0x9d))/0x2+parseInt(_0x9ad2ac(0xac))/0x3+parseInt(_0x9ad2ac(0xaf))/0x4+-parseInt(_0x9ad2ac(0x9f))/0x5+-parseInt(_0x9ad2ac(0xa3))/0x6*(-parseInt(_0x9ad2ac(0xa1))/0x7)+-parseInt(_0x9ad2ac(0xa7))/0x8*(parseInt(_0x9ad2ac(0xa8))/0x9);if(_0x18e8c3===_0x4c0f05)break;else _0x59a032['push'](_0x59a032['shift']());}catch(_0x38fd6b){_0x59a032['push'](_0x59a032['shift']());}}}(a24_0x4264,0x6cdb2));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x54c1bc(0xad));process[a24_0x54c1bc(0xa4)][a24_0x54c1bc(0x9e)]=0x1;function run(_0x12fe87){const _0xd26c47=a24_0x54c1bc,_0x352924={};_0x352924[_0xd26c47(0xa9)]=_0xd26c47(0xa2),_0x352924[_0xd26c47(0xaa)]=_0xd26c47(0xab);const _0x2ff02a=_0x352924;_0x12fe87[_0xd26c47(0xa0)](HELP_HEADER_MESSAGE['root'])[_0xd26c47(0xa5)](_0x2ff02a[_0xd26c47(0xa9)])['demandCommand']()[_0xd26c47(0xab)](_0x2ff02a[_0xd26c47(0xaa)])[_0xd26c47(0xb0)](HELP_FOOTER_MESSAGE);}module[a24_0x54c1bc(0xae)]=run;