browserstack-node-sdk 1.42.5 → 1.42.6

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 (176) 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/cucumber-sessionDetails.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/playwright-helper.js +1 -1
  154. package/src/helpers/processHelper.js +1 -1
  155. package/src/helpers/request-spy.js +1 -1
  156. package/src/helpers/setKeepAlive.js +1 -1
  157. package/src/helpers/test-observability/constants.js +1 -1
  158. package/src/helpers/test-observability/error-handler.js +1 -1
  159. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  160. package/src/helpers/test-observability/sessionHandler.js +1 -1
  161. package/src/helpers/test-observability/utils.js +1 -1
  162. package/src/helpers/test-orchestration/constants.js +1 -1
  163. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  164. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  165. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  166. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  167. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  168. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  169. package/src/helpers/testhub/constants.js +1 -1
  170. package/src/helpers/testhub/testhubHandler.js +1 -1
  171. package/src/helpers/testhub/utils.js +1 -1
  172. package/src/helpers/timeoutPromise.js +1 -1
  173. package/src/helpers/utilities.js +1 -1
  174. package/src/helpers/w3cMapping.js +1 -1
  175. package/src/hubAllocationMethods.js +1 -1
  176. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x5df693=a15_0x3a16;(function(_0x5850b0,_0x4878dc){const _0x207070=a15_0x3a16,_0x3b9fa2=_0x5850b0();while(!![]){try{const _0x359783=-parseInt(_0x207070(0x17e))/0x1*(-parseInt(_0x207070(0x191))/0x2)+parseInt(_0x207070(0x173))/0x3+parseInt(_0x207070(0x184))/0x4+-parseInt(_0x207070(0x196))/0x5+-parseInt(_0x207070(0x1c5))/0x6*(parseInt(_0x207070(0x1af))/0x7)+parseInt(_0x207070(0x17c))/0x8+parseInt(_0x207070(0x172))/0x9*(-parseInt(_0x207070(0x189))/0xa);if(_0x359783===_0x4878dc)break;else _0x3b9fa2['push'](_0x3b9fa2['shift']());}catch(_0x1299ff){_0x3b9fa2['push'](_0x3b9fa2['shift']());}}}(a15_0x1d76,0xe62da));const fs=require('fs'),got=require(a15_0x5df693(0x186)),{table}=require(a15_0x5df693(0x1ab)),{v4:uuidv4}=require(a15_0x5df693(0x179)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5df693(0x188)),{getCredentialsPath,getAuthHeader}=require(a15_0x5df693(0x19e)),{sendInstrumentationEvent}=require(a15_0x5df693(0x19b));function a15_0x3a16(_0x2dd2,_0x796ef2){const _0x1d760a=a15_0x1d76();return a15_0x3a16=function(_0x3a166d,_0x1d4758){_0x3a166d=_0x3a166d-0x171;let _0x28b6b7=_0x1d760a[_0x3a166d];return _0x28b6b7;},a15_0x3a16(_0x2dd2,_0x796ef2);}function a15_0x1d76(){const _0x1fa623=['qgLbc','../../utils/utilityMethods','existsSync','GzXmb','grid-name','username','gbbUJ','unauthorised','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','usage','vERzV','bstackUsername','table','/packages/cli/get-grids','ERROR','forEach','71687ijKJJr','clusterName','dkCwH','Browserstack','KXMAk','error','/packages/cli/get-all-grids','help','XLSvL','stringify','allGrids','MxQKL','list-grids-called','CfSIv','grid-id','type','cluster-name','KYmwM','unknown-error','init-not-called','readFileSync','running','150EDPaID','INFO','lZzDU','UsEES','bstackAccesskey','all-grids','282537lQNbPx','1266132hpYFyK','YRAPM','WElQt','uvkvq','IBKbt','server-error','uuid','boolean','builder','13880440WWWfMJ','grids','28DjECgd','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','SNeyY','parse','stack','log','5996240jEcxHY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','got','aORTQ','../../config/constants','620uSdutQ','epilogue','GiPQw','requestId','yAIuk','YpNQG','desc','push','83742UnMXHM','EfRIO','command','options','body','8416730SfKdzn','exit','queued','TwOTi','password','../../utils/instrumentationUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a15_0x1d76=function(){return _0x1fa623;};return a15_0x1d76();}exports[a15_0x5df693(0x193)]=a15_0x5df693(0x17d),exports[a15_0x5df693(0x18f)]=a15_0x5df693(0x17f),exports[a15_0x5df693(0x17b)]=function(_0x189ed0){const _0x2a682d=a15_0x5df693,_0xbf4c4={};_0xbf4c4[_0x2a682d(0x187)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0xbf4c4['yAIuk']=_0x2a682d(0x17a),_0xbf4c4[_0x2a682d(0x1ba)]=_0x2a682d(0x1b6);const _0x5f178e=_0xbf4c4,_0x100e62={};_0x100e62['description']=_0x5f178e[_0x2a682d(0x187)],_0x100e62[_0x2a682d(0x1be)]=_0x5f178e[_0x2a682d(0x18d)];const _0x2b3339={};return _0x2b3339[_0x2a682d(0x171)]=_0x100e62,_0x189ed0[_0x2a682d(0x1a8)](HELP_HEADER_MESSAGE['list']['grid'])[_0x2a682d(0x18a)](HELP_FOOTER_MESSAGE)[_0x2a682d(0x194)](_0x2b3339)[_0x2a682d(0x1b6)](_0x5f178e[_0x2a682d(0x1ba)])['argv'];},exports['handler']=async function(_0x7786b1){const _0x50794d=a15_0x5df693,_0x33960e={'ZZLrG':function(_0x2bcf52){return _0x2bcf52();},'XLSvL':function(_0x4f550a){return _0x4f550a();},'YRAPM':_0x50794d(0x19c),'KXMAk':function(_0x2e375e,_0x5512e7,_0x2793f9,_0x220219,_0x1a4e74,_0x5d352c,_0x55e1d1){return _0x2e375e(_0x5512e7,_0x2793f9,_0x220219,_0x1a4e74,_0x5d352c,_0x55e1d1);},'vERzV':_0x50794d(0x1bb),'IgDKt':_0x50794d(0x1c2),'dkCwH':function(_0x4a3a30){return _0x4a3a30();},'WElQt':'GET','SNeyY':function(_0x3e9c5a,_0x13cf1f,_0x218a1c){return _0x3e9c5a(_0x13cf1f,_0x218a1c);},'TwOTi':function(_0x489d6e,_0x2ede6a,_0x49b450,_0x505784,_0x55a8a6,_0x2873b0,_0x4509e1){return _0x489d6e(_0x2ede6a,_0x49b450,_0x505784,_0x55a8a6,_0x2873b0,_0x4509e1);},'GiPQw':function(_0x588d13,_0x4407bd,_0x526026){return _0x588d13(_0x4407bd,_0x526026);},'NJdqN':function(_0x1a55eb,_0x5f1715){return _0x1a55eb!==_0x5f1715;},'YpNQG':function(_0x113a54,_0x52e1d9){return _0x113a54===_0x52e1d9;},'GzXmb':'\x0aFound\x20the\x20following\x20grids:\x0a','IBKbt':_0x50794d(0x1bd),'uvkvq':_0x50794d(0x1a1),'gbbUJ':'status','qgLbc':_0x50794d(0x1c4),'UsEES':_0x50794d(0x198),'EfRIO':_0x50794d(0x1bf),'uxdzW':function(_0x31888a,_0x37cee5){return _0x31888a(_0x37cee5);},'kGXXZ':function(_0x5d54e8,_0x5d075c){return _0x5d54e8===_0x5d075c;},'CfSIv':_0x50794d(0x185),'KYmwM':_0x50794d(0x1a4),'lZzDU':_0x50794d(0x178),'VyZnV':_0x50794d(0x1c1)};try{global_registry[_0x50794d(0x18c)]=_0x33960e['ZZLrG'](uuidv4);!fs[_0x50794d(0x19f)](_0x33960e[_0x50794d(0x1b7)](getCredentialsPath))&&(console[_0x50794d(0x1b4)](_0x33960e[_0x50794d(0x174)]),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes['ERROR'],_0x33960e['IgDKt'],null,_0x7786b1),process[_0x50794d(0x197)](0x1));const _0xd55ffa=JSON[_0x50794d(0x181)](fs[_0x50794d(0x1c3)](_0x33960e[_0x50794d(0x1b1)](getCredentialsPath)));let _0x3af29b=_0x50794d(0x1a6)+AG_API_URL+_0x50794d(0x1ac);_0x7786b1[_0x50794d(0x1b9)]&&(_0x3af29b=_0x50794d(0x1a6)+AG_API_URL+_0x50794d(0x1b5));const _0x116eff={'method':_0x33960e[_0x50794d(0x175)],'headers':_0x33960e[_0x50794d(0x180)](getAuthHeader,_0xd55ffa['Browserstack'][_0x50794d(0x1a2)],_0xd55ffa[_0x50794d(0x1b2)][_0x50794d(0x19a)]),'throwHttpErrors':![]};global_registry[_0x50794d(0x1aa)]=_0xd55ffa['Browserstack'][_0x50794d(0x1a2)],global_registry[_0x50794d(0x1c9)]=_0xd55ffa[_0x50794d(0x1b2)][_0x50794d(0x19a)],_0x33960e[_0x50794d(0x199)](sendInstrumentationEvent,_0x7786b1,_0x33960e[_0x50794d(0x1a9)],messageTypes[_0x50794d(0x1c6)],null,null,_0x7786b1);const _0x42bf43=await _0x33960e[_0x50794d(0x18b)](got,_0x3af29b,_0x116eff);if(_0x33960e['NJdqN'](_0x42bf43,null)&&_0x33960e['NJdqN'](_0x42bf43,undefined)&&_0x33960e[_0x50794d(0x18e)](_0x42bf43['statusCode'],0xc8)){const _0xaff0aa=JSON['parse'](_0x42bf43[_0x50794d(0x195)]);console[_0x50794d(0x183)](_0x33960e[_0x50794d(0x1a0)]);const _0x4370e9=[];_0x4370e9[_0x50794d(0x190)]([_0x33960e[_0x50794d(0x177)],_0x33960e[_0x50794d(0x176)],_0x33960e[_0x50794d(0x1a3)],_0x33960e[_0x50794d(0x19d)],_0x33960e[_0x50794d(0x1c8)],_0x33960e[_0x50794d(0x192)]]),_0xaff0aa[_0x50794d(0x1ae)](_0xdb7433=>{const _0x314425=_0x50794d;_0x4370e9[_0x314425(0x190)]([_0xdb7433['id'],_0xdb7433['name'],_0xdb7433['status'],_0xdb7433[_0x314425(0x1c4)],_0xdb7433['queued'],_0xdb7433[_0x314425(0x1b0)]]);}),console[_0x50794d(0x183)](_0x33960e['uxdzW'](table,_0x4370e9)),process['exit'](0x0);}_0x33960e['kGXXZ'](_0x42bf43['statusCode'],0x191)&&(console[_0x50794d(0x1b4)](_0x33960e[_0x50794d(0x1bc)]),await _0x33960e['KXMAk'](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes['ERROR'],_0x33960e[_0x50794d(0x1c0)],null,_0x7786b1),process['exit'](0x1)),console[_0x50794d(0x1b4)](_0x50794d(0x1a7)+JSON[_0x50794d(0x1b8)](_0x42bf43)),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e[_0x50794d(0x1a9)],messageTypes[_0x50794d(0x1ad)],_0x33960e[_0x50794d(0x1c7)],_0x42bf43,_0x7786b1),process[_0x50794d(0x197)](0x1);}catch(_0x482cc4){console[_0x50794d(0x1b4)](_0x50794d(0x1a5)+_0x482cc4[_0x50794d(0x182)]),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes[_0x50794d(0x1ad)],_0x33960e['VyZnV'],_0x482cc4,_0x7786b1),process[_0x50794d(0x197)](0x1);}};
1
+ function a15_0x294a(){const _0xcc1cab=['../../utils/utilityMethods','error','bstackAccesskey','MWkRs','4781344KfWGbf','boolean','uxkvG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','yhiHl','forEach','readFileSync','lcELE','unknown-error','../../utils/instrumentationUtils','stack','bstackUsername','statusCode','JIetT','server-error','push','running','ERROR','list-grids-called','grid-name','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','CSoRb','queued','help','pKpCl','body','parse','log','grid','69932zLPhXp','options','table','Browserstack','/packages/cli/get-grids','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','../../config/constants','IpkyN','1411270rACwjN','2871470msueCK','command','allGrids','pNLOY','all-grids','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unauthorised','description','jJutx','ULbHw','grids','OnNmw','got','VFDCm','UMgDc','wASZe','handler','4lwCEdr','name','tYzIB','14gAZnZt','epilogue','Failed\x20to\x20list\x20resources!\x20Error:\x20','780438zEjSFV','existsSync','desc','username','1559679UpAqwE','SWkVx','GET','WSmIl','cluster-name','12466485Naacsu','DdSYE','type','QjrxC','usage','exit','argv','status'];a15_0x294a=function(){return _0xcc1cab;};return a15_0x294a();}const a15_0x282610=a15_0x2a65;(function(_0x3e0da6,_0x11d444){const _0x42ae1f=a15_0x2a65,_0x413543=_0x3e0da6();while(!![]){try{const _0x501df5=-parseInt(_0x42ae1f(0xad))/0x1*(parseInt(_0x42ae1f(0xcb))/0x2)+parseInt(_0x42ae1f(0xd2))/0x3*(-parseInt(_0x42ae1f(0xc8))/0x4)+-parseInt(_0x42ae1f(0xb6))/0x5+parseInt(_0x42ae1f(0xce))/0x6+-parseInt(_0x42ae1f(0xb5))/0x7+parseInt(_0x42ae1f(0x8f))/0x8+parseInt(_0x42ae1f(0x83))/0x9;if(_0x501df5===_0x11d444)break;else _0x413543['push'](_0x413543['shift']());}catch(_0x4aaf26){_0x413543['push'](_0x413543['shift']());}}}(a15_0x294a,0x4ffa1));function a15_0x2a65(_0xb3d3dd,_0x2de708){const _0x294a25=a15_0x294a();return a15_0x2a65=function(_0x2a659e,_0x5594d2){_0x2a659e=_0x2a659e-0x82;let _0x2ae16a=_0x294a25[_0x2a659e];return _0x2ae16a;},a15_0x2a65(_0xb3d3dd,_0x2de708);}const fs=require('fs'),got=require(a15_0x282610(0xc3)),{table}=require(a15_0x282610(0xaf)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x282610(0xb3)),{getCredentialsPath,getAuthHeader}=require(a15_0x282610(0x8b)),{sendInstrumentationEvent}=require(a15_0x282610(0x99));exports[a15_0x282610(0xb7)]=a15_0x282610(0xc1),exports[a15_0x282610(0xd0)]=a15_0x282610(0xa4),exports['builder']=function(_0x478b12){const _0x315464=a15_0x282610,_0x440a6e={};_0x440a6e[_0x315464(0xd3)]=_0x315464(0xb2),_0x440a6e[_0x315464(0xd5)]=_0x315464(0x90),_0x440a6e['ePNZz']=_0x315464(0xa7);const _0x23a713=_0x440a6e,_0x2de450={};_0x2de450[_0x315464(0xbe)]=_0x23a713['SWkVx'],_0x2de450[_0x315464(0x85)]=_0x23a713[_0x315464(0xd5)];const _0x10eead={};return _0x10eead[_0x315464(0xba)]=_0x2de450,_0x478b12[_0x315464(0x87)](HELP_HEADER_MESSAGE['list'][_0x315464(0xac)])[_0x315464(0xcc)](HELP_FOOTER_MESSAGE)[_0x315464(0xae)](_0x10eead)[_0x315464(0xa7)](_0x23a713['ePNZz'])[_0x315464(0x89)];},exports[a15_0x282610(0xc7)]=async function(_0x1afb08){const _0x3963fa=a15_0x282610,_0xb7278a={'pNLOY':function(_0x52c12c){return _0x52c12c();},'pKpCl':_0x3963fa(0x92),'wASZe':function(_0x51ade0,_0x2836ff,_0x59bb26,_0x5522cd,_0x2d86e4,_0x31ccf1,_0x4a50e6){return _0x51ade0(_0x2836ff,_0x59bb26,_0x5522cd,_0x2d86e4,_0x31ccf1,_0x4a50e6);},'UMgDc':_0x3963fa(0xa2),'ujmAY':'init-not-called','isIet':function(_0x4de319){return _0x4de319();},'Grpvf':_0x3963fa(0xd4),'IpkyN':function(_0x2781aa,_0x26e1a4,_0x177176){return _0x2781aa(_0x26e1a4,_0x177176);},'QjrxC':function(_0x5550a8,_0x518fef,_0x3f71bc,_0x3eaae9,_0x314939,_0x477806,_0x219dc3){return _0x5550a8(_0x518fef,_0x3f71bc,_0x3eaae9,_0x314939,_0x477806,_0x219dc3);},'TCFvo':function(_0x193feb,_0x42689f){return _0x193feb!==_0x42689f;},'uxkvG':function(_0x42662c,_0x51b813){return _0x42662c!==_0x51b813;},'yhiHl':function(_0x3c9d72,_0x1d8caf){return _0x3c9d72===_0x1d8caf;},'VFDCm':'\x0aFound\x20the\x20following\x20grids:\x0a','GfCLF':_0x3963fa(0x93),'MWkRs':_0x3963fa(0xa3),'tYzIB':_0x3963fa(0x8a),'zCZZP':_0x3963fa(0xa0),'jJutx':_0x3963fa(0xa6),'DdSYE':_0x3963fa(0x82),'qveRN':function(_0x575fde,_0x270485){return _0x575fde(_0x270485);},'ULbHw':_0x3963fa(0xbc),'zesRo':_0x3963fa(0xbd),'OnNmw':function(_0x47ca44,_0x62e66d,_0x1ae32a,_0x51697d,_0x440e06,_0x30d2ce,_0x368302){return _0x47ca44(_0x62e66d,_0x1ae32a,_0x51697d,_0x440e06,_0x30d2ce,_0x368302);},'JIetT':_0x3963fa(0x9e),'lcELE':function(_0x4685e5,_0x36818a,_0x376091,_0x55531d,_0x178862,_0x3ed192,_0x1f0283){return _0x4685e5(_0x36818a,_0x376091,_0x55531d,_0x178862,_0x3ed192,_0x1f0283);},'CSoRb':_0x3963fa(0x98)};try{global_registry['requestId']=_0xb7278a[_0x3963fa(0xb9)](uuidv4);!fs[_0x3963fa(0xcf)](_0xb7278a[_0x3963fa(0xb9)](getCredentialsPath))&&(console[_0x3963fa(0x8c)](_0xb7278a[_0x3963fa(0xa8)]),await _0xb7278a[_0x3963fa(0xc6)](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes[_0x3963fa(0xa1)],_0xb7278a['ujmAY'],null,_0x1afb08),process[_0x3963fa(0x88)](0x1));const _0x51938d=JSON[_0x3963fa(0xaa)](fs[_0x3963fa(0x96)](_0xb7278a['isIet'](getCredentialsPath)));let _0x200f41=_0x3963fa(0xbb)+AG_API_URL+_0x3963fa(0xb1);_0x1afb08[_0x3963fa(0xb8)]&&(_0x200f41='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x594618={'method':_0xb7278a['Grpvf'],'headers':_0xb7278a[_0x3963fa(0xb4)](getAuthHeader,_0x51938d[_0x3963fa(0xb0)][_0x3963fa(0xd1)],_0x51938d['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x3963fa(0x9b)]=_0x51938d[_0x3963fa(0xb0)][_0x3963fa(0xd1)],global_registry[_0x3963fa(0x8d)]=_0x51938d[_0x3963fa(0xb0)]['password'],_0xb7278a[_0x3963fa(0x86)](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes['INFO'],null,null,_0x1afb08);const _0x52924d=await _0xb7278a[_0x3963fa(0xb4)](got,_0x200f41,_0x594618);if(_0xb7278a['TCFvo'](_0x52924d,null)&&_0xb7278a[_0x3963fa(0x91)](_0x52924d,undefined)&&_0xb7278a[_0x3963fa(0x94)](_0x52924d[_0x3963fa(0x9c)],0xc8)){const _0x5a3628=JSON['parse'](_0x52924d[_0x3963fa(0xa9)]);console[_0x3963fa(0xab)](_0xb7278a[_0x3963fa(0xc4)]);const _0x2f8e25=[];_0x2f8e25[_0x3963fa(0x9f)]([_0xb7278a['GfCLF'],_0xb7278a[_0x3963fa(0x8e)],_0xb7278a[_0x3963fa(0xca)],_0xb7278a['zCZZP'],_0xb7278a[_0x3963fa(0xbf)],_0xb7278a[_0x3963fa(0x84)]]),_0x5a3628[_0x3963fa(0x95)](_0x16bacf=>{const _0x2b181f=_0x3963fa;_0x2f8e25['push']([_0x16bacf['id'],_0x16bacf[_0x2b181f(0xc9)],_0x16bacf['status'],_0x16bacf['running'],_0x16bacf['queued'],_0x16bacf['clusterName']]);}),console['log'](_0xb7278a['qveRN'](table,_0x2f8e25)),process[_0x3963fa(0x88)](0x0);}_0xb7278a['yhiHl'](_0x52924d[_0x3963fa(0x9c)],0x191)&&(console[_0x3963fa(0x8c)](_0xb7278a[_0x3963fa(0xc0)]),await _0xb7278a['QjrxC'](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes['ERROR'],_0xb7278a['zesRo'],null,_0x1afb08),process[_0x3963fa(0x88)](0x1)),console[_0x3963fa(0x8c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x52924d)),await _0xb7278a[_0x3963fa(0xc2)](sendInstrumentationEvent,_0x1afb08,_0xb7278a['UMgDc'],messageTypes[_0x3963fa(0xa1)],_0xb7278a[_0x3963fa(0x9d)],_0x52924d,_0x1afb08),process[_0x3963fa(0x88)](0x1);}catch(_0x17f66b){console[_0x3963fa(0x8c)](_0x3963fa(0xcd)+_0x17f66b[_0x3963fa(0x9a)]),await _0xb7278a[_0x3963fa(0x97)](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes[_0x3963fa(0xa1)],_0xb7278a[_0x3963fa(0xa5)],_0x17f66b,_0x1afb08),process[_0x3963fa(0x88)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x283606=a16_0x5424;(function(_0x2a1068,_0x54040a){const _0x46ac90=a16_0x5424,_0x4ee16a=_0x2a1068();while(!![]){try{const _0x59a51e=-parseInt(_0x46ac90(0x9d))/0x1+parseInt(_0x46ac90(0xac))/0x2*(parseInt(_0x46ac90(0xa3))/0x3)+parseInt(_0x46ac90(0xa0))/0x4+-parseInt(_0x46ac90(0x9b))/0x5+parseInt(_0x46ac90(0xa5))/0x6*(parseInt(_0x46ac90(0xad))/0x7)+-parseInt(_0x46ac90(0xab))/0x8*(-parseInt(_0x46ac90(0x9e))/0x9)+-parseInt(_0x46ac90(0xaf))/0xa;if(_0x59a51e===_0x54040a)break;else _0x4ee16a['push'](_0x4ee16a['shift']());}catch(_0x21b805){_0x4ee16a['push'](_0x4ee16a['shift']());}}}(a16_0x2310,0x998ad));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x283606(0x9a));exports[a16_0x283606(0xae)]=a16_0x283606(0xa2),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x283606(0xaa)]=function(_0x378ed6){const _0x18886a=a16_0x283606,_0x27eb3c={};_0x27eb3c['qnsZN']=_0x18886a(0xa8),_0x27eb3c[_0x18886a(0xa1)]=_0x18886a(0xa7);const _0x19c549=_0x27eb3c;return _0x378ed6[_0x18886a(0x9f)](HELP_HEADER_MESSAGE[_0x18886a(0xb0)])[_0x18886a(0xa4)](HELP_FOOTER_MESSAGE)[_0x18886a(0x9c)](_0x19c549[_0x18886a(0xa9)])['demandCommand']()['recommendCommands']()[_0x18886a(0xa6)]()[_0x18886a(0xa7)](_0x19c549[_0x18886a(0xa1)]);},exports['handler']=function(_0x173814){};function a16_0x5424(_0x276b34,_0x33459f){const _0x231013=a16_0x2310();return a16_0x5424=function(_0x54242e,_0x50a1f6){_0x54242e=_0x54242e-0x9a;let _0x2876ec=_0x231013[_0x54242e];return _0x2876ec;},a16_0x5424(_0x276b34,_0x33459f);}function a16_0x2310(){const _0x4e8ca9=['command','14036960gVVyZD','pre_check','../config/constants','2394685dvTZqA','commandDir','1097745FPuhLi','9yuxeHY','usage','3206904WeJwdl','hCSrR','pre-check','3cKLPxP','epilogue','12qoMshQ','strict','help','precheck_commands','qnsZN','builder','2825896qFRZCP','2402552mnxIwz','4385668ZWxyCi'];a16_0x2310=function(){return _0x4e8ca9;};return a16_0x2310();}
1
+ const a16_0x53a435=a16_0x3d8f;(function(_0x3cd726,_0x166845){const _0x141215=a16_0x3d8f,_0x1f1587=_0x3cd726();while(!![]){try{const _0x4be756=-parseInt(_0x141215(0x19d))/0x1*(-parseInt(_0x141215(0x1b4))/0x2)+parseInt(_0x141215(0x1a2))/0x3+parseInt(_0x141215(0x1a1))/0x4*(-parseInt(_0x141215(0x1a7))/0x5)+-parseInt(_0x141215(0x1b3))/0x6*(-parseInt(_0x141215(0x19e))/0x7)+-parseInt(_0x141215(0x1b1))/0x8*(-parseInt(_0x141215(0x1ae))/0x9)+parseInt(_0x141215(0x1a3))/0xa*(parseInt(_0x141215(0x1a4))/0xb)+parseInt(_0x141215(0x1b6))/0xc*(-parseInt(_0x141215(0x1ad))/0xd);if(_0x4be756===_0x166845)break;else _0x1f1587['push'](_0x1f1587['shift']());}catch(_0x18a1ef){_0x1f1587['push'](_0x1f1587['shift']());}}}(a16_0x4ae7,0x75b92));function a16_0x3d8f(_0x222653,_0x94dff8){const _0x4ae779=a16_0x4ae7();return a16_0x3d8f=function(_0x3d8f77,_0x485307){_0x3d8f77=_0x3d8f77-0x19c;let _0x24cc07=_0x4ae779[_0x3d8f77];return _0x24cc07;},a16_0x3d8f(_0x222653,_0x94dff8);}function a16_0x4ae7(){const _0x5092ce=['command','621390xzXKxJ','626270sKnhoO','usage','12aQhGYv','builder','1gzXYXR','35HvrhHi','help','desc','380892eEiaFv','698295JZAjXp','50mVLyzA','1498519OyAUYs','pre-check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','25QSQKIG','demandCommand','pre_check','handler','ZeUzB','../config/constants','21657181cPEQjz','4392eoSlJY','epilogue','oaMNK','14416EgPmtM'];a16_0x4ae7=function(){return _0x5092ce;};return a16_0x4ae7();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x53a435(0x1ac));exports[a16_0x53a435(0x1b2)]=a16_0x53a435(0x1a5),exports[a16_0x53a435(0x1a0)]=a16_0x53a435(0x1a6),exports[a16_0x53a435(0x19c)]=function(_0x18debe){const _0x48da2e=a16_0x53a435,_0x59a220={};_0x59a220[_0x48da2e(0x1ab)]='precheck_commands',_0x59a220['oaMNK']=_0x48da2e(0x19f);const _0x3328b9=_0x59a220;return _0x18debe[_0x48da2e(0x1b5)](HELP_HEADER_MESSAGE[_0x48da2e(0x1a9)])[_0x48da2e(0x1af)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3328b9[_0x48da2e(0x1ab)])[_0x48da2e(0x1a8)]()['recommendCommands']()['strict']()[_0x48da2e(0x19f)](_0x3328b9[_0x48da2e(0x1b0)]);},exports[a16_0x53a435(0x1aa)]=function(_0x319b54){};
@@ -1 +1 @@
1
- const a17_0x357d9e=a17_0x3d22;(function(_0x5e1597,_0x587e99){const _0x21a98a=a17_0x3d22,_0x18fbd2=_0x5e1597();while(!![]){try{const _0x417ba6=parseInt(_0x21a98a(0x2b5))/0x1+-parseInt(_0x21a98a(0x2ce))/0x2*(-parseInt(_0x21a98a(0x1e5))/0x3)+-parseInt(_0x21a98a(0x2c5))/0x4*(-parseInt(_0x21a98a(0x270))/0x5)+-parseInt(_0x21a98a(0x2a4))/0x6+parseInt(_0x21a98a(0x22f))/0x7*(-parseInt(_0x21a98a(0x206))/0x8)+parseInt(_0x21a98a(0x26a))/0x9+-parseInt(_0x21a98a(0x1f9))/0xa;if(_0x417ba6===_0x587e99)break;else _0x18fbd2['push'](_0x18fbd2['shift']());}catch(_0x3c4688){_0x18fbd2['push'](_0x18fbd2['shift']());}}}(a17_0x1736,0x6d14b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x357d9e(0x2cc)),{v4:uuidv4}=require(a17_0x357d9e(0x21c)),ReconnectingWebSocket=require(a17_0x357d9e(0x246)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x357d9e(0x268)),{logger}=require(a17_0x357d9e(0x21e)),{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_0x357d9e(0x28d)),{getCloudProviderObjectWithOutInit}=require(a17_0x357d9e(0x208)),webSocketUtils=require(a17_0x357d9e(0x293)),{sendInstrumentationEvent}=require(a17_0x357d9e(0x2a3));exports[a17_0x357d9e(0x27a)]=a17_0x357d9e(0x26b),exports['desc']=a17_0x357d9e(0x201),exports[a17_0x357d9e(0x2b0)]=function(_0x2354d4){const _0x3f7317=a17_0x357d9e,_0x1452ba={};_0x1452ba[_0x3f7317(0x224)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x1452ba[_0x3f7317(0x228)]=_0x3f7317(0x23b),_0x1452ba[_0x3f7317(0x21f)]=_0x3f7317(0x20d),_0x1452ba[_0x3f7317(0x2be)]=_0x3f7317(0x20e),_0x1452ba[_0x3f7317(0x25d)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1452ba['NQSwJ']=_0x3f7317(0x2d4);const _0x1de7b1=_0x1452ba,_0x119cea={};_0x119cea[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x224)],_0x119cea['type']=_0x1de7b1['Tsuxx'];const _0x4bcdb8={};_0x4bcdb8[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x21f)],_0x4bcdb8[_0x3f7317(0x265)]=_0x1de7b1[_0x3f7317(0x228)];const _0x5535a6={};_0x5535a6['description']=_0x1de7b1[_0x3f7317(0x2be)],_0x5535a6['type']=_0x1de7b1['Tsuxx'];const _0x425fb4={};_0x425fb4[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x25d)],_0x425fb4[_0x3f7317(0x265)]=_0x1de7b1[_0x3f7317(0x228)];const _0x135b2e={};return _0x135b2e[_0x3f7317(0x1e9)]=_0x119cea,_0x135b2e[_0x3f7317(0x2d0)]=_0x4bcdb8,_0x135b2e[_0x3f7317(0x28e)]=_0x5535a6,_0x135b2e[_0x3f7317(0x211)]=_0x425fb4,_0x2354d4[_0x3f7317(0x234)](HELP_HEADER_MESSAGE[_0x3f7317(0x254)])[_0x3f7317(0x269)](HELP_FOOTER_MESSAGE)['options'](_0x135b2e)[_0x3f7317(0x2d4)](_0x1de7b1[_0x3f7317(0x24f)])[_0x3f7317(0x2d1)];};function a17_0x3d22(_0x35a52f,_0x2c6a62){const _0x173681=a17_0x1736();return a17_0x3d22=function(_0x3d2236,_0x2e8395){_0x3d2236=_0x3d2236-0x1d9;let _0x32b863=_0x173681[_0x3d2236];return _0x32b863;},a17_0x3d22(_0x35a52f,_0x2c6a62);}async function inputValidation(_0x54a367,_0x2e032a){const _0x3a5e71=a17_0x357d9e,_0x427aff={'BDecB':_0x3a5e71(0x1dd),'qUtXI':_0x3a5e71(0x1d9),'PqwKJ':_0x3a5e71(0x284),'EGalS':_0x3a5e71(0x216),'dPMlX':_0x3a5e71(0x2d0),'UBcuH':_0x3a5e71(0x1e9),'KmLRq':_0x3a5e71(0x229),'sJUPP':_0x3a5e71(0x1f0),'PDavB':'region','VVxtz':_0x3a5e71(0x226),'XZEhE':_0x3a5e71(0x23b),'ybPzg':_0x3a5e71(0x20d),'SdOGc':_0x3a5e71(0x20e),'ixNgW':_0x3a5e71(0x214),'PURCP':_0x3a5e71(0x2d4),'dSgEv':function(_0x9d1999,_0x2b5b16){return _0x9d1999+_0x2b5b16;},'GcomJ':_0x3a5e71(0x2b4),'PXpCY':_0x3a5e71(0x29b),'KBdPu':function(_0x4e4588,_0x4421dd){return _0x4e4588||_0x4421dd;},'ffkfW':function(_0x2ffac7,_0x78fd9){return _0x2ffac7===_0x78fd9;},'yPnpa':'sBkZd','fecpZ':function(_0x19864f,_0x156ead){return _0x19864f!==_0x156ead;},'JVzMK':'WlCvn','xuBhu':function(_0x13177b,_0x22d7fb){return _0x13177b===_0x22d7fb;},'WCwFa':_0x3a5e71(0x288),'NFuiq':function(_0x4d7d63,_0x35dea0){return _0x4d7d63!==_0x35dea0;},'rhnVQ':_0x3a5e71(0x222),'tbtpQ':function(_0x37bf5f,_0x475225){return _0x37bf5f!==_0x475225;},'LdtXR':_0x3a5e71(0x207),'ZRFrV':_0x3a5e71(0x27c),'kbKvO':function(_0x232837,_0xe5aa85){return _0x232837>_0xe5aa85;},'ohdCj':function(_0x225248,_0x421b94){return _0x225248!==_0x421b94;},'YncaH':_0x3a5e71(0x257),'EyLuo':function(_0x1153fd,_0x133cca,_0x455690,_0x1bfd9e,_0x1a16a9,_0x5f27bd,_0x36d582,_0x3c7c92){return _0x1153fd(_0x133cca,_0x455690,_0x1bfd9e,_0x1a16a9,_0x5f27bd,_0x36d582,_0x3c7c92);},'AFlVb':'pre-check-grid-called','bOVMI':'pre-check-cluster-args-not-passed','MhonP':function(_0x4252bc,_0x15549a){return _0x4252bc===_0x15549a;},'brMgO':'AhuGR','YhzQo':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','oFGHo':_0x3a5e71(0x241),'qaAcc':'fLMdg','sTnZm':function(_0x40ac7c,_0x4903ce){return _0x40ac7c!==_0x4903ce;},'FCqrL':_0x3a5e71(0x23a),'XMANG':'GET','vZoYa':function(_0xb59cde,_0x10bcac,_0x20f28e){return _0xb59cde(_0x10bcac,_0x20f28e);},'kyBCM':function(_0x3c1448,_0x4dcace,_0x1a0f84,_0x13ad19,_0x3e966e,_0x1bef1d){return _0x3c1448(_0x4dcace,_0x1a0f84,_0x13ad19,_0x3e966e,_0x1bef1d);},'hcrhk':_0x3a5e71(0x2ca),'OLkvc':_0x3a5e71(0x211),'jDHFj':_0x3a5e71(0x1e7),'HYemY':_0x3a5e71(0x22c),'LyHnC':function(_0x292164,_0x387b3f){return _0x292164(_0x387b3f);},'roXXQ':function(_0x3df98d,_0x9b167){return _0x3df98d!==_0x9b167;},'wKwkn':_0x3a5e71(0x2a5),'tHFeZ':_0x3a5e71(0x2ab),'COiOP':function(_0x222d4a,_0x5ccad4,_0x2b394a,_0x426bc6,_0x2dfa45,_0x1ad42b,_0x57303d,_0x56eb3b){return _0x222d4a(_0x5ccad4,_0x2b394a,_0x426bc6,_0x2dfa45,_0x1ad42b,_0x57303d,_0x56eb3b);},'SqSAY':_0x3a5e71(0x1f4),'QYsci':function(_0x79ae48,_0x546c65){return _0x79ae48!==_0x546c65;},'cCpvR':_0x3a5e71(0x1ed),'sugTp':'GDfwK','nUPir':_0x3a5e71(0x21a),'ycnqY':'VaUOG','CWGEU':_0x3a5e71(0x2a9),'gnXFr':_0x3a5e71(0x2a8)};let _0x11973c;try{if(_0x427aff[_0x3a5e71(0x253)](_0x427aff['yPnpa'],_0x427aff[_0x3a5e71(0x2ac)])){if(_0x54a367[_0x3a5e71(0x218)]||_0x54a367[_0x3a5e71(0x28c)]||_0x54a367[_0x3a5e71(0x28e)]){if(_0x427aff[_0x3a5e71(0x250)](_0x427aff['JVzMK'],_0x427aff[_0x3a5e71(0x239)]))_0x49f957[_0x3a5e71(0x1d9)](_0x427aff[_0x3a5e71(0x21b)]),_0x86fb08[_0x3a5e71(0x2bc)](0x1);else{const _0x46a5fc=[];!_0x54a367[_0x3a5e71(0x218)]&&(_0x427aff[_0x3a5e71(0x205)](_0x427aff[_0x3a5e71(0x2c6)],_0x427aff[_0x3a5e71(0x2c6)])?_0x46a5fc[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x23e)]):_0x15f32f[_0x3a5e71(0x1d9)](_0x3a5e71(0x2d5)+_0x5b7d69[_0x3a5e71(0x1d9)][_0x3a5e71(0x23d)]));;!_0x54a367[_0x3a5e71(0x28c)]&&(_0x427aff[_0x3a5e71(0x200)](_0x427aff[_0x3a5e71(0x210)],_0x427aff['rhnVQ'])?(_0x5aa78a[_0x3a5e71(0x25e)]('['+_0x28ef50+_0x3a5e71(0x29e)+_0xbd3af5[_0x3a5e71(0x1e3)]+_0x3a5e71(0x1ee)+_0x1dcb1[_0x3a5e71(0x262)]+'\x20error\x20:\x20'+_0x502033[_0x3a5e71(0x1d9)]),_0x293efd[_0x3a5e71(0x1d9)]&&_0xa71f0e[_0x3a5e71(0x1d9)](_0x3a5e71(0x2d5)+_0x5902f1[_0x3a5e71(0x1d9)][_0x3a5e71(0x23d)])):_0x46a5fc[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x225)]));;if(!_0x54a367[_0x3a5e71(0x28e)]){if(_0x427aff[_0x3a5e71(0x233)](_0x427aff[_0x3a5e71(0x1e0)],_0x427aff[_0x3a5e71(0x28f)]))_0x46a5fc['push'](_0x427aff[_0x3a5e71(0x236)]);else{const _0x5b5a66={};_0x5b5a66[_0x3a5e71(0x265)]=_0x59a8d3[_0x3a5e71(0x27e)],_0x5b5a66[_0x3a5e71(0x223)]=_0xc3732d,_0x4ffcbc[_0x3a5e71(0x1ef)](_0x272d2d,_0x5b5a66,_0x427aff[_0x3a5e71(0x247)],!![]);}};_0x427aff[_0x3a5e71(0x291)](_0x46a5fc[_0x3a5e71(0x25b)],0x0)&&(_0x427aff[_0x3a5e71(0x2d3)](_0x427aff[_0x3a5e71(0x29f)],_0x427aff[_0x3a5e71(0x29f)])?(_0x5afe15['info'](_0x3a5e71(0x202)+_0x138dc7[_0x3a5e71(0x1db)]+'\x20'),_0xf9a881[_0x3a5e71(0x28c)]=_0x55ed58[_0x3a5e71(0x1db)]):(_0x11973c=_0x3a5e71(0x237)+_0x46a5fc[_0x3a5e71(0x2bd)](',\x20')+_0x3a5e71(0x2c9),await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes['ERROR'],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff[_0x3a5e71(0x240)],_0x427aff['qUtXI']),logger[_0x3a5e71(0x1d9)](_0x11973c),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a5e71(0x261)](_0x54a367[_0x3a5e71(0x28c)][_0x3a5e71(0x23c)]())&&(_0x427aff['MhonP'](_0x427aff['brMgO'],_0x427aff[_0x3a5e71(0x21d)])?(_0x11973c=_0x427aff[_0x3a5e71(0x20b)],await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes[_0x3a5e71(0x24c)],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff['oFGHo'],_0x427aff[_0x3a5e71(0x247)]),logger[_0x3a5e71(0x1d9)](_0x11973c),!_0x54a367[_0x3a5e71(0x28c)]&&(_0x427aff['ffkfW'](_0x427aff[_0x3a5e71(0x1dc)],_0x427aff[_0x3a5e71(0x1dc)])?(logger[_0x3a5e71(0x25e)](_0x3a5e71(0x202)+DEFAULT_CLUSTER_DETAILS[_0x3a5e71(0x1db)]+'\x20'),_0x54a367[_0x3a5e71(0x28c)]=DEFAULT_CLUSTER_DETAILS[_0x3a5e71(0x1db)]):_0x3cde22[_0x3a5e71(0x2bc)](0x1))):_0xc49328+='Cluster\x20'+_0xe9c04[_0x3a5e71(0x218)]+'\x20'+(_0xa16ddf?_0x427aff['PqwKJ']:_0x427aff['EGalS'])+'\x0a\x0a'),global_registry['clusterName']=_0x54a367[_0x3a5e71(0x218)],global_registry[_0x3a5e71(0x28c)]=_0x54a367[_0x3a5e71(0x28c)],global_registry['clusterRegion']=_0x54a367['region'];}}else{if(_0x54a367[_0x3a5e71(0x203)]){if(_0x427aff['sTnZm'](_0x427aff['FCqrL'],_0x427aff[_0x3a5e71(0x1fa)]))_0x7114bf[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x225)]);else{global_registry[_0x3a5e71(0x203)]=_0x54a367[_0x3a5e71(0x203)],logger['debug'](_0x3a5e71(0x20a)+_0x54a367[_0x3a5e71(0x203)]);const _0x1853a2=_0x3a5e71(0x2c4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x38904d={};_0x38904d[_0x3a5e71(0x26c)]=_0x427aff[_0x3a5e71(0x2a7)],_0x38904d[_0x3a5e71(0x1fe)]=global_registry['authHeader'],_0x38904d[_0x3a5e71(0x259)]=![];const _0x5e7d4f=_0x38904d,_0x47c866=await _0x427aff[_0x3a5e71(0x1fb)](got,_0x1853a2,_0x5e7d4f),_0x4d7506=await _0x427aff[_0x3a5e71(0x260)](responseValidation,_0x47c866,_0x427aff[_0x3a5e71(0x1e4)],_0x427aff[_0x3a5e71(0x297)],_0x54a367,_0x2e032a);let _0x49c5bb={};if(_0x427aff[_0x3a5e71(0x205)](_0x4d7506,0xc8)){if(_0x427aff['xuBhu'](_0x427aff[_0x3a5e71(0x1f5)],_0x427aff['HYemY']))_0x5ee2d4=_0x423d06;else{const _0x381097=JSON['parse'](_0x47c866['body']),_0x72ec24=_0x381097[_0x3a5e71(0x1f8)](_0x2158ed=>_0x2158ed['name']===_0x54a367['gridProfile'])||null;_0x427aff[_0x3a5e71(0x2b7)](isUndefined,_0x72ec24)?_0x427aff[_0x3a5e71(0x221)](_0x427aff[_0x3a5e71(0x1f6)],_0x427aff[_0x3a5e71(0x2c1)])?(_0x11973c=_0x3a5e71(0x295)+_0x54a367[_0x3a5e71(0x203)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x427aff['COiOP'](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes[_0x3a5e71(0x24c)],_0x427aff['AFlVb'],_0x427aff['SqSAY'],_0x427aff['qUtXI']),logger[_0x3a5e71(0x1d9)](_0x11973c),process['exit'](0x1)):_0x52a286['push'](_0x427aff[_0x3a5e71(0x23e)]):_0x427aff[_0x3a5e71(0x258)](_0x427aff[_0x3a5e71(0x23f)],_0x427aff[_0x3a5e71(0x23f)])?(_0x409d01+=_0x427aff[_0x3a5e71(0x26e)],_0x3d1514+=_0x3a5e71(0x2b6)+(_0x5c5464[_0x3a5e71(0x223)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x2bfff2+=_0x3a5e71(0x209)+(_0x2e3b27['code']||_0x427aff['sJUPP'])+'\x0a',_0x59bca2+=_0x3a5e71(0x296)+(_0x5d73c1[_0x3a5e71(0x23d)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a'):_0x49c5bb=_0x72ec24;}}else _0x427aff['xuBhu'](_0x427aff['sugTp'],_0x427aff[_0x3a5e71(0x285)])?process[_0x3a5e71(0x2bc)](0x1):_0x1f20d8[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x236)]);const _0x1d6186={};_0x1d6186[_0x3a5e71(0x265)]=WS_EVENTS[_0x3a5e71(0x27e)],_0x1d6186['message']=_0x427aff[_0x3a5e71(0x2cd)],webSocketUtils[_0x3a5e71(0x1ef)](_0x2e032a,_0x1d6186),global_registry[_0x3a5e71(0x28c)]=_0x49c5bb[_0x3a5e71(0x28c)],global_registry[_0x3a5e71(0x2bb)]=_0x49c5bb[_0x3a5e71(0x28e)],global_registry[_0x3a5e71(0x218)]=_0x49c5bb['clusterName'];}}else _0x427aff[_0x3a5e71(0x205)](_0x427aff[_0x3a5e71(0x252)],_0x427aff[_0x3a5e71(0x25f)])?_0x5b4545+=_0x3a5e71(0x24b)+_0x4029b1['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(logger[_0x3a5e71(0x1d9)](_0x427aff['BDecB']),process[_0x3a5e71(0x2bc)](0x1));}}else{const _0x361627={};_0x361627[_0x3a5e71(0x29d)]=_0x427aff['VVxtz'],_0x361627[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x1edf6d={};_0x1edf6d[_0x3a5e71(0x29d)]=_0x427aff['ybPzg'],_0x1edf6d[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x42adf7={};_0x42adf7[_0x3a5e71(0x29d)]=_0x427aff[_0x3a5e71(0x2cb)],_0x42adf7['type']=_0x427aff[_0x3a5e71(0x231)];const _0x423e12={};_0x423e12[_0x3a5e71(0x29d)]=_0x427aff[_0x3a5e71(0x1fc)],_0x423e12[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x34a312={};return _0x34a312[_0x3a5e71(0x1e9)]=_0x361627,_0x34a312['cloud-provider']=_0x1edf6d,_0x34a312[_0x3a5e71(0x28e)]=_0x42adf7,_0x34a312[_0x3a5e71(0x211)]=_0x423e12,_0x2d66e1[_0x3a5e71(0x234)](_0x443927[_0x3a5e71(0x254)])[_0x3a5e71(0x269)](_0x1542e1)[_0x3a5e71(0x1f3)](_0x34a312)[_0x3a5e71(0x2d4)](_0x427aff[_0x3a5e71(0x219)])['argv'];}}catch(_0x43e650){if(_0x427aff[_0x3a5e71(0x264)](_0x427aff[_0x3a5e71(0x2c8)],_0x427aff['gnXFr']))_0x11973c=_0x3a5e71(0x25c)+_0x43e650+':\x20'+_0x43e650[_0x3a5e71(0x23d)],logger[_0x3a5e71(0x1d9)](_0x11973c),await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes['ERROR'],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff['oFGHo'],_0x427aff[_0x3a5e71(0x247)]),process[_0x3a5e71(0x2bc)](0x1);else{const {header:_0xb5b1de,response:_0x27c888}=_0x25b3a3,{status:_0x1b8c46,data:_0x5e8dd4,error:_0x163545}=_0x27c888;_0x2c7ada+=_0xb5b1de+'\x20#'+_0x427aff['dSgEv'](_0x250fcf,0x1)+'\x0a',_0x127801+=_0x3a5e71(0x255)+(_0x1b8c46?_0x427aff[_0x3a5e71(0x29c)]:_0x427aff[_0x3a5e71(0x1fd)])+'\x0a',_0x326968+=_0x3a5e71(0x248)+_0x427aff[_0x3a5e71(0x29a)](_0x5e8dd4,_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x163545&&(_0x36f547+=_0x427aff['KmLRq'],_0x449132+=_0x3a5e71(0x2b6)+(_0x163545['message']||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0xddc596+=_0x3a5e71(0x209)+(_0x163545[_0x3a5e71(0x251)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x30ccab+=_0x3a5e71(0x296)+(_0x163545[_0x3a5e71(0x23d)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a'),_0x1e156f+='\x0a\x0a';}}}function printResponse(_0x4918b3,_0x581eb0){const _0x3ce247=a17_0x357d9e,_0x36475f={};_0x36475f[_0x3ce247(0x290)]=function(_0xc8f8b,_0x4d7c15){return _0xc8f8b===_0x4d7c15;},_0x36475f[_0x3ce247(0x2c2)]=_0x3ce247(0x278),_0x36475f[_0x3ce247(0x292)]=_0x3ce247(0x2b9);const _0x15dfc6=_0x36475f;logger[_0x3ce247(0x25e)]('['+_0x4918b3+_0x3ce247(0x29e)+_0x581eb0['status']+_0x3ce247(0x1ee)+_0x581eb0['data']+_0x3ce247(0x2a0)+_0x581eb0[_0x3ce247(0x1d9)]),_0x581eb0[_0x3ce247(0x1d9)]&&(_0x15dfc6['mpiBE'](_0x15dfc6['dUTco'],_0x15dfc6[_0x3ce247(0x292)])?_0xfc9153['info'](_0x3ce247(0x266)+_0xf2ae21[_0x3ce247(0x218)]+_0x3ce247(0x289)):logger[_0x3ce247(0x1d9)](_0x3ce247(0x2d5)+_0x581eb0[_0x3ce247(0x1d9)]['stack']));}async function generateReport(_0x5874e0,_0x3cd494){const _0x4bc054=a17_0x357d9e,_0x547486={'Pwqga':function(_0xe7645c,_0x47b365){return _0xe7645c+_0x47b365;},'twLtr':_0x4bc054(0x2b4),'jiYCJ':_0x4bc054(0x29b),'PcLCJ':function(_0x2adac4,_0x58266e){return _0x2adac4||_0x58266e;},'uxSCy':'N/A','VyZaQ':'Error\x20Details:\x0a','VmgAx':_0x4bc054(0x1f2),'hTUIZ':function(_0x4a061d,_0x641d17){return _0x4a061d!=_0x641d17;},'DvKij':'is\x20already\x20present','lBVWM':'will\x20be\x20created','rIopf':function(_0x5b58af){return _0x5b58af();}};let _0x4d4e90='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x4bc054(0x28c)]+_0x4bc054(0x1e6);return _0x5874e0[_0x4bc054(0x1e8)]((_0x37da4f,_0x3a0e68)=>{const _0x159185=_0x4bc054,{header:_0x39ce36,response:_0x394d91}=_0x37da4f,{status:_0x5cf4c6,data:_0x3a6423,error:_0x4d7876}=_0x394d91;_0x4d4e90+=_0x39ce36+'\x20#'+_0x547486['Pwqga'](_0x3a0e68,0x1)+'\x0a',_0x4d4e90+=_0x159185(0x255)+(_0x5cf4c6?_0x547486['twLtr']:_0x547486[_0x159185(0x272)])+'\x0a',_0x4d4e90+=_0x159185(0x248)+_0x547486[_0x159185(0x28a)](_0x3a6423,_0x547486[_0x159185(0x277)])+'\x0a',_0x4d7876&&(_0x4d4e90+=_0x547486[_0x159185(0x27b)],_0x4d4e90+='\x20\x20Message:\x20'+(_0x4d7876[_0x159185(0x223)]||_0x547486[_0x159185(0x277)])+'\x0a',_0x4d4e90+=_0x159185(0x209)+(_0x4d7876[_0x159185(0x251)]||_0x547486[_0x159185(0x277)])+'\x0a',_0x4d4e90+='\x20\x20Stack:\x20'+(_0x4d7876['stack']||_0x547486[_0x159185(0x277)])+'\x0a'),_0x4d4e90+='\x0a\x0a';}),_0x4d4e90+=_0x547486[_0x4bc054(0x282)],_0x547486['hTUIZ'](_0x3cd494,null)?_0x4d4e90+=_0x4bc054(0x24b)+global_registry['clusterName']+'\x20'+(_0x3cd494?_0x547486[_0x4bc054(0x2a2)]:_0x547486[_0x4bc054(0x232)])+'\x0a\x0a':_0x4d4e90+=_0x4bc054(0x24b)+global_registry[_0x4bc054(0x218)]+_0x4bc054(0x1df),_0x4d4e90+=_0x547486['rIopf'](getSystemMetaData),_0x4d4e90;};exports[a17_0x357d9e(0x2c7)]=async function(_0x1c59f8){const _0x47bb8d=a17_0x357d9e,_0x249ec8={'dENtq':function(_0x2716d4){return _0x2716d4();},'ffNVO':function(_0x5dc98e){return _0x5dc98e();},'JLBay':_0x47bb8d(0x1f7),'iVfLE':function(_0x5abc4c,_0x38721f,_0x1c6701,_0x12a8a6,_0x4e35a2,_0x1cfb02,_0x180d71,_0x3aa19e){return _0x5abc4c(_0x38721f,_0x1c6701,_0x12a8a6,_0x4e35a2,_0x1cfb02,_0x180d71,_0x3aa19e);},'kMJyr':_0x47bb8d(0x263),'ccKXr':_0x47bb8d(0x249),'VxMld':_0x47bb8d(0x1d9),'sDAdh':function(_0x126fb1,_0x4d2c2c,_0x1f9545,_0x5930a4,_0x4c2b1e,_0xa45b05,_0x32c446){return _0x126fb1(_0x4d2c2c,_0x1f9545,_0x5930a4,_0x4c2b1e,_0xa45b05,_0x32c446);},'wJfUe':function(_0x4b5fe6){return _0x4b5fe6();},'paxiK':_0x47bb8d(0x27f),'NbbJz':_0x47bb8d(0x2a6),'DcykP':function(_0x511261,_0x5bd5b6,_0x51dddc){return _0x511261(_0x5bd5b6,_0x51dddc);},'yQMGz':function(_0x350bec,_0x3b8529,_0x283d7d){return _0x350bec(_0x3b8529,_0x283d7d);},'NOvxw':_0x47bb8d(0x256),'QfRhm':_0x47bb8d(0x2ae),'VVToG':_0x47bb8d(0x275),'PNomD':function(_0x4e5db7,_0x5f09da,_0x5dbd9f){return _0x4e5db7(_0x5f09da,_0x5dbd9f);},'OfZwV':_0x47bb8d(0x1e2),'hQIIc':function(_0x3827f8,_0x2b0408,_0x1afd17){return _0x3827f8(_0x2b0408,_0x1afd17);},'ChWtm':'isTrialGridAccessible','AOtuf':function(_0x2e19f1,_0x1c1435){return _0x2e19f1(_0x1c1435);},'WGQRP':_0x47bb8d(0x24d),'JJznc':'isTls1_2_SUPPORTED','MlXKF':_0x47bb8d(0x281),'CmoIk':_0x47bb8d(0x2aa),'vKxcQ':_0x47bb8d(0x227),'FzfUg':_0x47bb8d(0x2d2),'COZmo':function(_0x26ecf1,_0x17150c){return _0x26ecf1+_0x17150c;},'GunTR':'utf-8','Apkky':function(_0x5adea9,_0x4a2f93,_0x3fe259,_0x4831d5,_0x1f1249,_0xc41cfd,_0x52fd8c){return _0x5adea9(_0x4a2f93,_0x3fe259,_0x4831d5,_0x1f1249,_0xc41cfd,_0x52fd8c);},'HqTzj':'pre-check-failed'};let _0x335ac7,_0x36e987;try{global_registry[_0x47bb8d(0x274)]=_0x249ec8[_0x47bb8d(0x1de)](uuidv4);!fs[_0x47bb8d(0x235)](_0x249ec8[_0x47bb8d(0x28b)](getCredentialsPath))&&(_0x36e987=_0x249ec8['JLBay'],logger[_0x47bb8d(0x1d9)](_0x36e987),await _0x249ec8['iVfLE'](reportToGalactusAndSendToEDS,_0x1c59f8,_0x335ac7,_0x36e987,messageTypes[_0x47bb8d(0x24c)],_0x249ec8['kMJyr'],_0x249ec8['ccKXr'],_0x249ec8[_0x47bb8d(0x2b8)]),process[_0x47bb8d(0x2bc)](0x1));_0x249ec8[_0x47bb8d(0x299)](sendInstrumentationEvent,_0x1c59f8,_0x249ec8[_0x47bb8d(0x26f)],messageTypes[_0x47bb8d(0x220)],null,null,_0x1c59f8);const _0x12eed1=JSON[_0x47bb8d(0x1e1)](fs[_0x47bb8d(0x230)](_0x249ec8['wJfUe'](getCredentialsPath)));global_registry[_0x47bb8d(0x20f)]=_0x12eed1[_0x47bb8d(0x217)][_0x47bb8d(0x2c0)],global_registry[_0x47bb8d(0x279)]=_0x12eed1['Browserstack']['password'];const _0x55d967=WS_ENDPOINT[_0x47bb8d(0x1ea)](_0x249ec8['paxiK'],_0x12eed1[_0x47bb8d(0x217)][_0x47bb8d(0x2c0)])['replace'](_0x249ec8[_0x47bb8d(0x286)],_0x12eed1[_0x47bb8d(0x217)]['password']),_0x4057fa={};_0x4057fa[_0x47bb8d(0x1ec)]=ws,_0x4057fa[_0x47bb8d(0x298)]=0x36ee80,_0x335ac7=new ReconnectingWebSocket(_0x55d967,[],_0x4057fa),global_registry[_0x47bb8d(0x1eb)]=_0x249ec8['DcykP'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x249ec8['yQMGz'](inputValidation,_0x1c59f8,_0x335ac7),logger[_0x47bb8d(0x25e)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x47bb8d(0x28c)]+_0x47bb8d(0x212)+global_registry[_0x47bb8d(0x2bb)]);let _0x399279=await _0x249ec8[_0x47bb8d(0x299)](getCloudProviderObjectWithOutInit,global_registry[_0x47bb8d(0x28c)],global_registry[_0x47bb8d(0x218)],_0x249ec8[_0x47bb8d(0x26d)],_0x335ac7,webSocketUtils,_0x1c59f8);const _0x3ebfab=await _0x399279[_0x47bb8d(0x243)]();_0x249ec8[_0x47bb8d(0x22a)](printResponse,_0x249ec8[_0x47bb8d(0x215)],_0x3ebfab),_0x399279=await _0x399279['init']();let _0x4d172f=![];try{_0x4d172f=await _0x399279[_0x47bb8d(0x20c)]();}catch(_0x1c6d01){const _0x4321d0=_0x249ec8[_0x47bb8d(0x22b)][_0x47bb8d(0x24e)]('|');let _0x3a818a=0x0;while(!![]){switch(_0x4321d0[_0x3a818a++]){case'0':_0x36e987=_0x47bb8d(0x276)+global_registry[_0x47bb8d(0x218)]+_0x47bb8d(0x238)+global_registry[_0x47bb8d(0x2bb)]+'`\x20,error\x20:\x20'+_0x1c6d01;continue;case'1':_0x4d172f=null;continue;case'2':logger['error'](_0x36e987);continue;case'3':_0x36e987+='\x0a'+JSON[_0x47bb8d(0x25a)](_0x1c6d01[_0x47bb8d(0x23d)]);continue;case'4':await _0x249ec8[_0x47bb8d(0x1ff)](reportToGalactusAndSendToEDS,_0x1c59f8,_0x335ac7,_0x36e987,messageTypes[_0x47bb8d(0x24c)],_0x249ec8[_0x47bb8d(0x26f)],_0x47bb8d(0x267)+global_registry[_0x47bb8d(0x28c)],_0x249ec8[_0x47bb8d(0x2b8)]);continue;}break;}}_0x4d172f&&logger[_0x47bb8d(0x25e)]('Cluster\x20`'+global_registry[_0x47bb8d(0x218)]+_0x47bb8d(0x289));const _0x2792f1=await _0x399279[_0x47bb8d(0x2b3)]();_0x249ec8[_0x47bb8d(0x273)](printResponse,_0x249ec8[_0x47bb8d(0x283)],_0x2792f1);const _0x471060=await _0x249ec8[_0x47bb8d(0x244)](curlRequest);_0x249ec8['hQIIc'](printResponse,_0x249ec8['ChWtm'],_0x471060);const _0x4c4766=await _0x249ec8['AOtuf'](isTlsSupported,_0x249ec8[_0x47bb8d(0x280)]);_0x249ec8[_0x47bb8d(0x2a1)](printResponse,_0x249ec8[_0x47bb8d(0x213)],_0x4c4766);const _0x1cc43f={};_0x1cc43f[_0x47bb8d(0x2bf)]=_0x249ec8[_0x47bb8d(0x22e)],_0x1cc43f['response']=_0x3ebfab;const _0x19657f={};_0x19657f[_0x47bb8d(0x2bf)]=_0x249ec8['CmoIk'],_0x19657f['response']=_0x2792f1;const _0x2ef143={};_0x2ef143['header']=_0x249ec8[_0x47bb8d(0x2cf)],_0x2ef143[_0x47bb8d(0x2b2)]=_0x471060;const _0x210782={};_0x210782[_0x47bb8d(0x2bf)]=_0x249ec8[_0x47bb8d(0x1f1)],_0x210782['response']=_0x4c4766;const _0x1e9cbb=[_0x1cc43f,_0x19657f,_0x2ef143,_0x210782],_0x3b0f18=await _0x249ec8[_0x47bb8d(0x2a1)](generateReport,_0x1e9cbb,_0x4d172f),_0x476c2a=new Date(),_0x5a1008=_0x476c2a[_0x47bb8d(0x24a)]()+'_'+_0x249ec8['COZmo'](_0x476c2a[_0x47bb8d(0x242)](),0x1)+'_'+_0x476c2a[_0x47bb8d(0x27d)]()+'_'+_0x476c2a['getUTCHours']()+'_'+_0x476c2a['getUTCMinutes'](),_0x2b56e9=_0x47bb8d(0x204)+_0x5a1008+'.txt';fs[_0x47bb8d(0x1da)](_0x2b56e9,_0x3b0f18,_0x249ec8[_0x47bb8d(0x22d)]),logger[_0x47bb8d(0x25e)](_0x47bb8d(0x2c3)+_0x2b56e9),process[_0x47bb8d(0x2bc)](0x0);}catch(_0x1ff381){let _0xc6bd1f=_0x47bb8d(0x287)+_0x1ff381+'\x20';logger[_0x47bb8d(0x1d9)](_0xc6bd1f),_0xc6bd1f+='\x0a'+JSON[_0x47bb8d(0x25a)](_0x1ff381[_0x47bb8d(0x23d)]),logger['debug'](_0x47bb8d(0x294)+_0x1ff381[_0x47bb8d(0x23d)]);if(_0x335ac7){const _0x25a1ab={};_0x25a1ab[_0x47bb8d(0x265)]=WS_EVENTS[_0x47bb8d(0x27e)],_0x25a1ab[_0x47bb8d(0x223)]=_0xc6bd1f,webSocketUtils['sendEventToBackend'](_0x335ac7,_0x25a1ab,_0x249ec8[_0x47bb8d(0x2b8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1f41a3={};_0x1f41a3['error']=_0xc6bd1f,await _0x249ec8[_0x47bb8d(0x2b1)](sendInstrumentationEvent,_0x1c59f8,_0x249ec8[_0x47bb8d(0x26f)],messageTypes[_0x47bb8d(0x24c)],_0x249ec8[_0x47bb8d(0x271)],_0x1f41a3,_0x1c59f8),process['exit'](0x1);}};function a17_0x1736(){const _0x156d34=['PDavB','Missing\x20required\x20arguments:\x20','`\x20is\x20present\x20in\x20region\x20`','JVzMK','EuhWO','string','toLowerCase','stack','UBcuH','cCpvR','bOVMI','cloud-provider-not-supported','getUTCMonth','isCliToolInstalled','wJfUe','sJUPP','reconnecting-websocket','qUtXI','Message:\x20','credential-not-found','getUTCFullYear','Cluster\x20','ERROR','TLSv1_2_client_method','split','NQSwJ','fecpZ','code','ycnqY','ffkfW','pre_check','Status:\x20','dummy-grid','XHuUX','QYsci','throwHttpErrors','stringify','length','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','NmvXi','info','CWGEU','kyBCM','includes','data','pre-check-grid-called','MhonP','type','Cluster\x20`','cluster-check-failed-','../../utils/utilityMethods','epilogue','877392shGyle','grid','method','NOvxw','KmLRq','kMJyr','15140CZbyyr','HqTzj','jiYCJ','PNomD','requestId','0|1|2|3|4','unable\x20to\x20verify\x20if\x20cluster\x20`','uxSCy','ueUnz','bstackAccesskey','command','VyZaQ','Cnsnb','getUTCDate','LOG','<UsernamePlaceholder>','WGQRP','Tool\x20Installed','VmgAx','OfZwV','is\x20already\x20present','sugTp','NbbJz','Failed\x20in\x20pre-check!\x20Error:\x20','JqTBo','`\x20already\x20exists','PcLCJ','ffNVO','cloudProvider','../../config/constants','region','ZRFrV','mpiBE','kbKvO','toVvV','../../utils/webSocketUtils','stack\x20trace\x20','Invalid\x20input.\x20grid\x20profiles:\x20','\x20\x20Stack:\x20','OLkvc','connectionTimeout','sDAdh','KBdPu','Failure','GcomJ','description',']\x20status\x20:\x20','YncaH','\x20error\x20:\x20','DcykP','DvKij','../../utils/instrumentationUtils','935478LpoaVG','qvaTr','<PasswordPlaceholder>','XMANG','NkCCO','oCekW','User\x20Access','LkbjT','yPnpa','push','toolInstalledResp','EyLuo','builder','Apkky','response','checkAccess','Success','255164cHZyDq','\x20\x20Message:\x20','LyHnC','VxMld','aPRKN','AFlVb','clusterRegion','exit','join','AqiYg','header','username','tHFeZ','dUTco','Report\x20saved\x20in\x20','https://','1112eaYSHD','WCwFa','handler','gnXFr','.\x20Please\x20provide\x20all\x20required\x20arguments.','pre-check','SdOGc','got','nUPir','11366tjzRhV','vKxcQ','cloud-provider','argv','SSL\x20Configured','ohdCj','help','error\x20stack\x20:\x20','error','writeFileSync','CLOUD_PROVIDER','qaAcc','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','dENtq','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','LdtXR','parse','accessResp','status','hcrhk','225rZWhno','\x20===\x0a\x0a','WXPqs','forEach','cluster-name','replace','authHeader','WebSocket','lZXnE','\x20data\x20:\x20','sendEventToBackend','N/A','FzfUg','Cluster\x20details\x0a-----------------------\x0a','options','pre-check-grid-profile-empty','jDHFj','wKwkn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','find','8904730qtyjgJ','FCqrL','vZoYa','ixNgW','PXpCY','headers','iVfLE','NFuiq','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Setting\x20cloud\x20provider\x20as\x20','gridProfile','log/report_','xuBhu','80oDMVQy','EYICw','../../cloudproviders/utils','\x20\x20Code:\x20','grid\x20profile\x20flow\x20','YhzQo','isClusterPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bstackUsername','rhnVQ','grid-profile','\x20region\x20-\x20','JJznc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QfRhm','will\x20be\x20created','Browserstack','clusterName','PURCP','Grid\x20profile\x20fetched\x20for\x20pre-check','BDecB','uuid','brMgO','../../config/logger','sHUpR','INFO','roXXQ','fmcWQ','message','yFVwl','dPMlX','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Whitelisted\x20browserstack','Tsuxx','Error\x20Details:\x0a','yQMGz','VVToG','aznSY','GunTR','MlXKF','89236QlXEaZ','readFileSync','XZEhE','lBVWM','tbtpQ','usage','existsSync'];a17_0x1736=function(){return _0x156d34;};return a17_0x1736();}
1
+ const a17_0x4fc318=a17_0x52f8;(function(_0x3bb263,_0x79fd5){const _0x112cb3=a17_0x52f8,_0x2204aa=_0x3bb263();while(!![]){try{const _0x383602=-parseInt(_0x112cb3(0x202))/0x1+-parseInt(_0x112cb3(0x16e))/0x2*(-parseInt(_0x112cb3(0x14c))/0x3)+parseInt(_0x112cb3(0x236))/0x4*(parseInt(_0x112cb3(0x21e))/0x5)+parseInt(_0x112cb3(0x162))/0x6+-parseInt(_0x112cb3(0x15c))/0x7*(parseInt(_0x112cb3(0x1d6))/0x8)+parseInt(_0x112cb3(0x188))/0x9*(-parseInt(_0x112cb3(0x15d))/0xa)+parseInt(_0x112cb3(0x1d4))/0xb;if(_0x383602===_0x79fd5)break;else _0x2204aa['push'](_0x2204aa['shift']());}catch(_0x2b5a7a){_0x2204aa['push'](_0x2204aa['shift']());}}}(a17_0x3887,0x74c77));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4fc318(0x224)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x4fc318(0x1f9)),{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_0x4fc318(0x1b4)),webSocketUtils=require(a17_0x4fc318(0x20c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x4fc318(0x1c0)]=a17_0x4fc318(0x157),exports[a17_0x4fc318(0x1a8)]=a17_0x4fc318(0x215),exports[a17_0x4fc318(0x1a2)]=function(_0x59b4aa){const _0x33e765=a17_0x4fc318,_0x3e7b9c={};_0x3e7b9c[_0x33e765(0x1d1)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3e7b9c[_0x33e765(0x1e7)]=_0x33e765(0x207),_0x3e7b9c[_0x33e765(0x1ef)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3e7b9c[_0x33e765(0x15f)]=_0x33e765(0x156),_0x3e7b9c[_0x33e765(0x16f)]=_0x33e765(0x158),_0x3e7b9c[_0x33e765(0x218)]=_0x33e765(0x193);const _0x56a051=_0x3e7b9c,_0x6f1e9c={};_0x6f1e9c[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x1d1)],_0x6f1e9c[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x3cad93={};_0x3cad93[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x1ef)],_0x3cad93[_0x33e765(0x1a4)]=_0x56a051['yZjth'];const _0x2d6c7f={};_0x2d6c7f[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x15f)],_0x2d6c7f[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x17a4fb={};_0x17a4fb[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x16f)],_0x17a4fb[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x682057={};return _0x682057[_0x33e765(0x16d)]=_0x6f1e9c,_0x682057[_0x33e765(0x1aa)]=_0x3cad93,_0x682057[_0x33e765(0x1ea)]=_0x2d6c7f,_0x682057[_0x33e765(0x1bd)]=_0x17a4fb,_0x59b4aa['usage'](HELP_HEADER_MESSAGE[_0x33e765(0x1df)])[_0x33e765(0x171)](HELP_FOOTER_MESSAGE)['options'](_0x682057)[_0x33e765(0x193)](_0x56a051[_0x33e765(0x218)])[_0x33e765(0x1a3)];};function a17_0x52f8(_0x26963f,_0x23351f){const _0x3887b1=a17_0x3887();return a17_0x52f8=function(_0x52f84f,_0x55aae2){_0x52f84f=_0x52f84f-0x13d;let _0x47b176=_0x3887b1[_0x52f84f];return _0x47b176;},a17_0x52f8(_0x26963f,_0x23351f);}async function inputValidation(_0x50e845,_0x31f755){const _0x36a896=a17_0x4fc318,_0x276964={'myXNR':_0x36a896(0x1ea),'QheFS':_0x36a896(0x1f4),'PerOA':'cluster-name','KrcTT':'is\x20already\x20present','BOwdV':_0x36a896(0x18c),'VMTiL':_0x36a896(0x1aa),'BaiEE':function(_0x3efecd,_0x3ed9fa){return _0x3efecd+_0x3ed9fa;},'bIKnA':_0x36a896(0x1b8),'yNHbK':_0x36a896(0x1f0),'eRVnv':function(_0x4ff491,_0x33cd6a){return _0x4ff491||_0x33cd6a;},'NbUgb':'N/A','zuMcQ':'Error\x20Details:\x0a','tsTbK':_0x36a896(0x185),'myGul':_0x36a896(0x1bb),'gEEsD':_0x36a896(0x207),'xiJMC':_0x36a896(0x1f2),'SKnIg':_0x36a896(0x156),'JHZOo':_0x36a896(0x158),'qhETv':'help','NQKcR':function(_0x5ca35a,_0x164fdb){return _0x5ca35a!==_0x164fdb;},'PtEnU':'GJxvc','yhvUY':_0x36a896(0x1f1),'TUAIp':function(_0x1976a5,_0x466eaf){return _0x1976a5===_0x466eaf;},'KORbC':_0x36a896(0x1ce),'TuYKc':function(_0x2ccfaa,_0x147ac6){return _0x2ccfaa!==_0x147ac6;},'aGTog':_0x36a896(0x210),'uaGaW':'bXspO','hNrrs':_0x36a896(0x189),'prNwi':_0x36a896(0x1de),'jfGgK':'RpPAE','yviMi':function(_0x1aabf4,_0x39c1d5){return _0x1aabf4>_0x39c1d5;},'jEqTF':_0x36a896(0x1b7),'OoNTD':function(_0xa2b332,_0x31e70b,_0x549e07,_0x3a5716,_0xa60829,_0x3cc44f,_0x54b11b,_0x106481){return _0xa2b332(_0x31e70b,_0x549e07,_0x3a5716,_0xa60829,_0x3cc44f,_0x54b11b,_0x106481);},'juGBm':_0x36a896(0x1f8),'tVQFo':_0x36a896(0x19a),'Hbsby':function(_0x4b134b,_0x1ed780){return _0x4b134b!==_0x1ed780;},'ELRzm':_0x36a896(0x234),'RQDUp':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FYiXu':_0x36a896(0x17f),'fdhZI':function(_0x129328,_0x41a711){return _0x129328!==_0x41a711;},'TaZOl':_0x36a896(0x1b9),'ytNst':function(_0xa72cfb,_0x18ca8e){return _0xa72cfb===_0x18ca8e;},'BjHjo':_0x36a896(0x1eb),'aApKE':_0x36a896(0x150),'phAsU':function(_0x38621f,_0x1f1501,_0x220bad){return _0x38621f(_0x1f1501,_0x220bad);},'SGDaF':function(_0x292047,_0x4856d8,_0x3d0d12,_0x3644ce,_0x3e5a62,_0x28f765){return _0x292047(_0x4856d8,_0x3d0d12,_0x3644ce,_0x3e5a62,_0x28f765);},'Wxqfa':_0x36a896(0x22d),'pjnwr':_0x36a896(0x1bd),'OfbqD':function(_0x52acb8,_0x312d93){return _0x52acb8!==_0x312d93;},'RvNww':_0x36a896(0x228),'PRrQH':_0x36a896(0x1c5),'hNFCZ':function(_0x57bd98,_0x5d167e){return _0x57bd98(_0x5d167e);},'bbVkq':function(_0x3b309c,_0x4b1259){return _0x3b309c===_0x4b1259;},'NpsQT':_0x36a896(0x233),'GFWEd':_0x36a896(0x1be),'lHtLV':function(_0x3ec8a0,_0x4a6256){return _0x3ec8a0!==_0x4a6256;},'APRWa':_0x36a896(0x23a),'jRdWq':'CLeai','kSNsn':_0x36a896(0x172),'tFwgB':_0x36a896(0x13d),'tGgEx':'XkFjG','lMtdW':_0x36a896(0x23b),'wkfED':'MpZVW'};let _0x4067ef;try{if(_0x276964[_0x36a896(0x1cb)](_0x276964[_0x36a896(0x1ee)],_0x276964['yhvUY'])){if(_0x50e845[_0x36a896(0x147)]||_0x50e845['cloudProvider']||_0x50e845[_0x36a896(0x1ea)]){if(_0x276964['TUAIp'](_0x276964['KORbC'],_0x276964[_0x36a896(0x13e)])){const _0x58140a=[];!_0x50e845[_0x36a896(0x147)]&&(_0x276964[_0x36a896(0x212)](_0x276964['aGTog'],_0x276964[_0x36a896(0x173)])?_0x58140a[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1a1)]):_0x487fed[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1d8)]));;if(!_0x50e845[_0x36a896(0x18a)]){if(_0x276964[_0x36a896(0x206)](_0x276964['hNrrs'],_0x276964[_0x36a896(0x151)])){const _0x39cb78={};_0x39cb78[_0x36a896(0x1a4)]=_0x2a774c[_0x36a896(0x169)],_0x39cb78['message']=_0x2501ac,_0x5cef23[_0x36a896(0x20b)](_0x545545,_0x39cb78,_0x276964[_0x36a896(0x153)],!![]);}else _0x58140a[_0x36a896(0x14d)](_0x276964['VMTiL']);};!_0x50e845[_0x36a896(0x1ea)]&&(_0x276964[_0x36a896(0x1cb)](_0x276964[_0x36a896(0x223)],_0x276964[_0x36a896(0x223)])?_0x3fbebb[_0x36a896(0x14d)](_0x276964['PerOA']):_0x58140a[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1d8)]));;_0x276964['yviMi'](_0x58140a[_0x36a896(0x15e)],0x0)&&(_0x276964[_0x36a896(0x212)](_0x276964[_0x36a896(0x191)],_0x276964[_0x36a896(0x191)])?_0x2bab18+='Cluster\x20'+_0x1d6ad5[_0x36a896(0x147)]+'\x20'+(_0x447701?_0x276964[_0x36a896(0x159)]:_0x276964[_0x36a896(0x20d)])+'\x0a\x0a':(_0x4067ef=_0x36a896(0x152)+_0x58140a[_0x36a896(0x14e)](',\x20')+_0x36a896(0x19b),await _0x276964['OoNTD'](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes['ERROR'],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x18b)],_0x276964['QheFS']),logger[_0x36a896(0x1f4)](_0x4067ef),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x36a896(0x230)](_0x50e845[_0x36a896(0x18a)][_0x36a896(0x235)]())&&(_0x276964[_0x36a896(0x163)](_0x276964[_0x36a896(0x221)],_0x276964[_0x36a896(0x221)])?_0x44e0cc[_0x36a896(0x14d)](_0x276964['VMTiL']):(_0x4067ef=_0x276964[_0x36a896(0x239)],await _0x276964['OoNTD'](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x21d)],_0x276964[_0x36a896(0x153)]),logger[_0x36a896(0x1f4)](_0x4067ef),!_0x50e845[_0x36a896(0x18a)]&&(_0x276964['fdhZI'](_0x276964[_0x36a896(0x178)],_0x276964[_0x36a896(0x178)])?_0x1883f1[_0x36a896(0x167)](_0x36a896(0x148)+_0x40fdc4[_0x36a896(0x147)]+_0x36a896(0x164)):(logger[_0x36a896(0x167)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x36a896(0x22a)]+'\x20'),_0x50e845[_0x36a896(0x18a)]=DEFAULT_CLUSTER_DETAILS[_0x36a896(0x22a)])))),global_registry[_0x36a896(0x147)]=_0x50e845[_0x36a896(0x147)],global_registry[_0x36a896(0x18a)]=_0x50e845['cloudProvider'],global_registry[_0x36a896(0x15a)]=_0x50e845[_0x36a896(0x1ea)];}else _0x8bf3ba+='Cluster\x20'+_0x3d6142['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else{if(_0x50e845[_0x36a896(0x23d)]){if(_0x276964['ytNst'](_0x276964['BjHjo'],_0x276964['BjHjo'])){global_registry[_0x36a896(0x23d)]=_0x50e845[_0x36a896(0x23d)],logger[_0x36a896(0x14f)]('grid\x20profile\x20flow\x20'+_0x50e845[_0x36a896(0x23d)]);const _0x539dcb='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x1398ae={};_0x1398ae[_0x36a896(0x1e3)]=_0x276964[_0x36a896(0x21c)],_0x1398ae[_0x36a896(0x1e8)]=global_registry[_0x36a896(0x18d)],_0x1398ae[_0x36a896(0x23e)]=![];const _0x4be680=_0x1398ae,_0x232784=await _0x276964[_0x36a896(0x165)](got,_0x539dcb,_0x4be680),_0x58f0ef=await _0x276964['SGDaF'](responseValidation,_0x232784,_0x276964[_0x36a896(0x1ed)],_0x276964[_0x36a896(0x200)],_0x50e845,_0x31f755);let _0x3b8b8b={};if(_0x276964[_0x36a896(0x206)](_0x58f0ef,0xc8)){if(_0x276964[_0x36a896(0x217)](_0x276964[_0x36a896(0x1c3)],_0x276964[_0x36a896(0x1e2)])){const _0x44c31b=JSON[_0x36a896(0x1e6)](_0x232784['body']),_0x161cac=_0x44c31b[_0x36a896(0x15b)](_0x3f82c5=>_0x3f82c5[_0x36a896(0x142)]===_0x50e845[_0x36a896(0x23d)])||null;if(_0x276964[_0x36a896(0x203)](isUndefined,_0x161cac))_0x276964[_0x36a896(0x198)](_0x276964['NpsQT'],_0x276964[_0x36a896(0x20a)])?(_0x4067ef=_0x36a896(0x160)+_0x50e845[_0x36a896(0x23d)]+_0x36a896(0x1a6),await _0x276964[_0x36a896(0x219)](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x1d0)],_0x276964[_0x36a896(0x153)]),logger[_0x36a896(0x1f4)](_0x4067ef),process['exit'](0x1)):_0xb2119b['error'](_0x36a896(0x179)+_0x19ee7c[_0x36a896(0x1f4)][_0x36a896(0x1e0)]);else{if(_0x276964[_0x36a896(0x20e)](_0x276964[_0x36a896(0x17a)],_0x276964[_0x36a896(0x1b5)]))_0x3b8b8b=_0x161cac;else{const {header:_0x1e6ce9,response:_0x1e7110}=_0x39da8a,{status:_0x589d9b,data:_0x975bbc,error:_0x366ea8}=_0x1e7110;_0x520b97+=_0x1e6ce9+'\x20#'+_0x276964[_0x36a896(0x166)](_0x2ec4c3,0x1)+'\x0a',_0x2d101d+='Status:\x20'+(_0x589d9b?_0x276964[_0x36a896(0x192)]:_0x276964[_0x36a896(0x154)])+'\x0a',_0x40467b+=_0x36a896(0x199)+_0x276964['eRVnv'](_0x975bbc,_0x276964['NbUgb'])+'\x0a',_0x366ea8&&(_0xe9b73+=_0x276964[_0x36a896(0x1b6)],_0x4322c7+=_0x36a896(0x1fa)+(_0x366ea8[_0x36a896(0x187)]||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x4bde2e+=_0x36a896(0x1ac)+(_0x366ea8[_0x36a896(0x18f)]||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x10cf8d+=_0x36a896(0x1c2)+(_0x366ea8[_0x36a896(0x1e0)]||_0x276964[_0x36a896(0x1fe)])+'\x0a'),_0x27d542+='\x0a\x0a';}}}else _0x3a6cbf[_0x36a896(0x140)](0x1);}else _0x276964[_0x36a896(0x198)](_0x276964[_0x36a896(0x168)],_0x276964[_0x36a896(0x168)])?process[_0x36a896(0x140)](0x1):(_0x261cee[_0x36a896(0x1f4)](_0x276964['tsTbK']),_0x3494ed[_0x36a896(0x140)](0x1));const _0x366965={};_0x366965['type']=WS_EVENTS[_0x36a896(0x169)],_0x366965['message']=_0x276964[_0x36a896(0x186)],webSocketUtils[_0x36a896(0x20b)](_0x31f755,_0x366965),global_registry['cloudProvider']=_0x3b8b8b['cloudProvider'],global_registry['clusterRegion']=_0x3b8b8b[_0x36a896(0x1ea)],global_registry[_0x36a896(0x147)]=_0x3b8b8b[_0x36a896(0x147)];}else{const _0x20437a={};_0x20437a[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x1c9)],_0x20437a[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x5e0f20={};_0x5e0f20[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x1cc)],_0x5e0f20[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x5ee055={};_0x5ee055[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x21f)],_0x5ee055[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x3c2eb1={};_0x3c2eb1[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x144)],_0x3c2eb1[_0x36a896(0x1a4)]=_0x276964['gEEsD'];const _0x1b0535={};return _0x1b0535[_0x36a896(0x16d)]=_0x20437a,_0x1b0535[_0x36a896(0x1aa)]=_0x5e0f20,_0x1b0535[_0x36a896(0x1ea)]=_0x5ee055,_0x1b0535[_0x36a896(0x1bd)]=_0x3c2eb1,_0x1cb03d['usage'](_0x258871['pre_check'])[_0x36a896(0x171)](_0x39b840)['options'](_0x1b0535)[_0x36a896(0x193)](_0x276964[_0x36a896(0x182)])[_0x36a896(0x1a3)];}}else _0x276964[_0x36a896(0x217)](_0x276964[_0x36a896(0x194)],_0x276964[_0x36a896(0x194)])?(_0xd31e5b[_0x36a896(0x167)]('['+_0x102e87+_0x36a896(0x17c)+_0x3c5478[_0x36a896(0x1dc)]+'\x20data\x20:\x20'+_0x13abeb['data']+_0x36a896(0x19e)+_0x555f61[_0x36a896(0x1f4)]),_0x21bb38['error']&&_0xe1a6f5[_0x36a896(0x1f4)](_0x36a896(0x179)+_0x4a8847[_0x36a896(0x1f4)][_0x36a896(0x1e0)])):(logger[_0x36a896(0x1f4)](_0x276964[_0x36a896(0x1a7)]),process[_0x36a896(0x140)](0x1));}}else _0x2676fc+=_0x276964[_0x36a896(0x1b6)],_0x399dbd+='\x20\x20Message:\x20'+(_0x359652['message']||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x4bbd87+=_0x36a896(0x1ac)+(_0x2ecfb6[_0x36a896(0x18f)]||_0x276964['NbUgb'])+'\x0a',_0x83fedc+='\x20\x20Stack:\x20'+(_0x172da8[_0x36a896(0x1e0)]||_0x276964[_0x36a896(0x1fe)])+'\x0a';}catch(_0x41f753){_0x276964[_0x36a896(0x17e)](_0x276964[_0x36a896(0x195)],_0x276964[_0x36a896(0x1ab)])?(_0x23e7b0['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x5568d9[_0x36a896(0x22a)]+'\x20'),_0x20a375[_0x36a896(0x18a)]=_0x3022eb[_0x36a896(0x22a)]):(_0x4067ef=_0x36a896(0x204)+_0x41f753+':\x20'+_0x41f753[_0x36a896(0x1e0)],logger['error'](_0x4067ef),await _0x276964[_0x36a896(0x219)](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x21d)],_0x276964[_0x36a896(0x153)]),process['exit'](0x1));}}function a17_0x3887(){const _0x369d43=['message','9XAtuuP','ssdor','cloudProvider','tVQFo','will\x20be\x20created','authHeader','forEach','code','MfaGM','jEqTF','bIKnA','help','tGgEx','lMtdW','zaOtB','aDtzY','bbVkq','Message:\x20','pre-check-cluster-args-not-passed','.\x20Please\x20provide\x20all\x20required\x20arguments.','PsfSy','isClusterPresent','\x20error\x20:\x20','epIbH','WVDkZ','PerOA','builder','argv','type','zQZyg','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','tsTbK','desc','response','cloud-provider','wkfED','\x20\x20Code:\x20','readFileSync','EKxfR','accessResp','isTrialGridAccessible','Pre-check\x20running\x20for\x20Cloud\x20-\x20','requestId','ZtAmo','../../cloudproviders/utils','jRdWq','zuMcQ','SFmQs','Success','jSoFC','Report\x20saved\x20in\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','WTxZD','grid-profile','pre-check-grid-profile-empty','isCliToolInstalled','command','Browserstack','\x20\x20Stack:\x20','RvNww','N/A','nYNRP','SSL\x20Configured','getUTCMonth','<UsernamePlaceholder>','myGul','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','NQKcR','xiJMC','description','LOsSK','mPMnc','GFWEd','BsVTG','stringify','username','2224992OeEYRb','Ujzwu','2582792mqbzFa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','myXNR','VRELE','NlPeh','\x20===\x0a\x0a','status','password','oJTBw','pre_check','stack','idpTD','PRrQH','method','handler','dDdYF','parse','yZjth','headers','BRBLG','region','pizuD','\x20region\x20-\x20','Wxqfa','PtEnU','MqCnT','Failure','HIJXS','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','vovtb','error','bstackAccesskey','delay','IIlQk','pre-check-grid-called','../../config/logger','\x20\x20Message:\x20','qIgIf','ldOmI','Zhpzn','NbUgb','Whitelisted\x20browserstack','pjnwr','getUTCMinutes','883537Nquqgn','hNFCZ','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','`\x20is\x20present\x20in\x20region\x20`','TUAIp','string','bstackUsername','ERROR','NpsQT','sendEventToBackend','../../utils/webSocketUtils','BOwdV','lHtLV','isTls1_2_SUPPORTED','WwUqP','jdeVV','TuYKc','checkAccess','QzBoJ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','data','OfbqD','TrJZY','OoNTD','QHiJJ','replace','aApKE','FYiXu','8335wBjLLY','SKnIg','juGBm','ELRzm','dummy-grid','jfGgK','reconnecting-websocket','utf-8','PtbUI','`\x20,error\x20:\x20','aZbHg','LFeeh','CLOUD_PROVIDER','===\x20Precheck\x20Report\x20-\x20','tFzXv','pre-check','\x20data\x20:\x20','getUTCFullYear','includes','INFO','GPMbf','YporY','IgHmo','toLowerCase','480FPRvGO','<PasswordPlaceholder>','pEOEi','RQDUp','DVKhw','OmDNJ','Error\x20Details:\x0a','gridProfile','throwHttpErrors','Grid\x20profile\x20fetched\x20for\x20pre-check','KORbC','yjbDU','exit','WebSocket','name','.txt','JHZOo','header','3|2|4|1|0','clusterName','Cluster\x20`','YvGXi','User\x20Access','GYAre','3YNJVnp','push','join','debug','GET','prNwi','Missing\x20required\x20arguments:\x20','QheFS','yNHbK','Cluster\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','grid','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','KrcTT','clusterRegion','find','7GlFCYQ','2174030cORmXo','length','vwuZu','Invalid\x20input.\x20grid\x20profiles:\x20','TLSv1_2_client_method','3783906lJpiyh','Hbsby','`\x20already\x20exists','phAsU','BaiEE','info','kSNsn','LOG','ENMZG','Tool\x20Installed','connectionTimeout','cluster-name','1738306JuJqKP','VVOTQ','stack\x20trace\x20','epilogue','iQGMN','uaGaW','aPioD','Ijpjr','cdTSF','Cluster\x20details\x0a-----------------------\x0a','TaZOl','error\x20stack\x20:\x20','APRWa','iVOqm',']\x20status\x20:\x20','YDEEp','ytNst','cloud-provider-not-supported','gEEsD','split','qhETv','writeFileSync','BrnDc','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','tFwgB'];a17_0x3887=function(){return _0x369d43;};return a17_0x3887();}function printResponse(_0xe2c939,_0xdcd35a){const _0x2aad10=a17_0x4fc318,_0x6e0af8={};_0x6e0af8[_0x2aad10(0x1d9)]=function(_0xc83bde,_0x16aaab){return _0xc83bde!==_0x16aaab;},_0x6e0af8[_0x2aad10(0x184)]=_0x2aad10(0x211),_0x6e0af8[_0x2aad10(0x214)]=_0x2aad10(0x1bc);const _0x186792=_0x6e0af8;logger['info']('['+_0xe2c939+_0x2aad10(0x17c)+_0xdcd35a[_0x2aad10(0x1dc)]+_0x2aad10(0x22e)+_0xdcd35a[_0x2aad10(0x216)]+_0x2aad10(0x19e)+_0xdcd35a[_0x2aad10(0x1f4)]),_0xdcd35a[_0x2aad10(0x1f4)]&&(_0x186792['VRELE'](_0x186792[_0x2aad10(0x184)],_0x186792['QzBoJ'])?logger[_0x2aad10(0x1f4)]('error\x20stack\x20:\x20'+_0xdcd35a[_0x2aad10(0x1f4)][_0x2aad10(0x1e0)]):_0x48c57b=_0x4e85d7);}async function generateReport(_0x5a8240,_0x2a9b0c){const _0x5140a4=a17_0x4fc318,_0x3ec35e={'CRDBs':function(_0x5f5c85,_0x11d6b2){return _0x5f5c85+_0x11d6b2;},'vovtb':_0x5140a4(0x1b8),'PtbUI':_0x5140a4(0x1f0),'cdTSF':function(_0x20dc7e,_0x3a5825){return _0x20dc7e||_0x3a5825;},'WVDkZ':_0x5140a4(0x1c4),'vZCEI':_0x5140a4(0x23c),'lPXEZ':_0x5140a4(0x177),'RdXmJ':function(_0x2f35a6,_0xda8e69){return _0x2f35a6!=_0xda8e69;},'qIgIf':'is\x20already\x20present','MruJG':_0x5140a4(0x18c),'QYAHY':function(_0x586721){return _0x586721();}};let _0xd4ac4c=_0x5140a4(0x22b)+global_registry[_0x5140a4(0x18a)]+_0x5140a4(0x1db);return _0x5a8240[_0x5140a4(0x18e)]((_0x1b6a1c,_0x4ccd13)=>{const _0x11fe6d=_0x5140a4,{header:_0x46d76e,response:_0x3f0249}=_0x1b6a1c,{status:_0x35d23d,data:_0x5ae603,error:_0x41cb2c}=_0x3f0249;_0xd4ac4c+=_0x46d76e+'\x20#'+_0x3ec35e['CRDBs'](_0x4ccd13,0x1)+'\x0a',_0xd4ac4c+='Status:\x20'+(_0x35d23d?_0x3ec35e[_0x11fe6d(0x1f3)]:_0x3ec35e[_0x11fe6d(0x226)])+'\x0a',_0xd4ac4c+=_0x11fe6d(0x199)+_0x3ec35e[_0x11fe6d(0x176)](_0x5ae603,_0x3ec35e['WVDkZ'])+'\x0a',_0x41cb2c&&(_0xd4ac4c+=_0x3ec35e['vZCEI'],_0xd4ac4c+='\x20\x20Message:\x20'+(_0x41cb2c[_0x11fe6d(0x187)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a',_0xd4ac4c+='\x20\x20Code:\x20'+(_0x41cb2c[_0x11fe6d(0x18f)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a',_0xd4ac4c+='\x20\x20Stack:\x20'+(_0x41cb2c[_0x11fe6d(0x1e0)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a'),_0xd4ac4c+='\x0a\x0a';}),_0xd4ac4c+=_0x3ec35e['lPXEZ'],_0x3ec35e['RdXmJ'](_0x2a9b0c,null)?_0xd4ac4c+=_0x5140a4(0x155)+global_registry[_0x5140a4(0x147)]+'\x20'+(_0x2a9b0c?_0x3ec35e[_0x5140a4(0x1fb)]:_0x3ec35e['MruJG'])+'\x0a\x0a':_0xd4ac4c+=_0x5140a4(0x155)+global_registry[_0x5140a4(0x147)]+_0x5140a4(0x1ca),_0xd4ac4c+=_0x3ec35e['QYAHY'](getSystemMetaData),_0xd4ac4c;};exports[a17_0x4fc318(0x1e4)]=async function(_0x337da0){const _0x5505bc=a17_0x4fc318,_0x44c842={'BRBLG':function(_0x65e62c){return _0x65e62c();},'dDdYF':function(_0x3306d9){return _0x3306d9();},'aPioD':_0x5505bc(0x1d7),'PsfSy':function(_0x37e971,_0xe33903,_0x34ebd6,_0xd15151,_0x536b63,_0x5045f2,_0x1447d9,_0x1bf5d9){return _0x37e971(_0xe33903,_0x34ebd6,_0xd15151,_0x536b63,_0x5045f2,_0x1447d9,_0x1bf5d9);},'iVOqm':'pre-check-grid-called','yjbDU':'credential-not-found','idpTD':_0x5505bc(0x1f4),'YDEEp':function(_0x633bd1,_0x33bab1,_0x5070a3,_0x2902b4,_0x379ace,_0x36310f,_0x43c28e){return _0x633bd1(_0x33bab1,_0x5070a3,_0x2902b4,_0x379ace,_0x36310f,_0x43c28e);},'aDtzY':_0x5505bc(0x1c8),'epIbH':_0x5505bc(0x237),'tFzXv':function(_0x1f4ae1,_0x20e00a,_0x5dae77){return _0x1f4ae1(_0x20e00a,_0x5dae77);},'ldOmI':_0x5505bc(0x222),'GYAre':function(_0x17352d,_0x134791,_0x354723){return _0x17352d(_0x134791,_0x354723);},'EKxfR':'toolInstalledResp','GPMbf':_0x5505bc(0x146),'zQZyg':function(_0x572928,_0x564c4c,_0xaa576b,_0xa126a4,_0x256359,_0x358321,_0x22869b,_0x5c8340){return _0x572928(_0x564c4c,_0xaa576b,_0xa126a4,_0x256359,_0x358321,_0x22869b,_0x5c8340);},'pEOEi':function(_0x5ac4ab,_0x51efe6,_0x1093a9){return _0x5ac4ab(_0x51efe6,_0x1093a9);},'Ijpjr':_0x5505bc(0x1af),'QHiJJ':function(_0x5cb59a){return _0x5cb59a();},'MfaGM':function(_0x3d299a,_0x5cb40a,_0x4c084f){return _0x3d299a(_0x5cb40a,_0x4c084f);},'ENMZG':_0x5505bc(0x1b0),'IIlQk':function(_0x449e41,_0x42972a){return _0x449e41(_0x42972a);},'mPMnc':_0x5505bc(0x161),'Zhpzn':function(_0x3de591,_0x2953fe,_0x2ea5b7){return _0x3de591(_0x2953fe,_0x2ea5b7);},'YFiDi':_0x5505bc(0x20f),'YvGXi':_0x5505bc(0x16b),'NlPeh':_0x5505bc(0x14a),'zaOtB':_0x5505bc(0x1ff),'Ujzwu':_0x5505bc(0x1c6),'hjjcT':function(_0x121e75,_0x5daf8f,_0x53dd4b){return _0x121e75(_0x5daf8f,_0x53dd4b);},'XGSKw':function(_0xa121b4,_0x3cddaa){return _0xa121b4+_0x3cddaa;},'AtvEq':_0x5505bc(0x225),'ZtAmo':function(_0x4251ab,_0x5b9123,_0x26a00d,_0x434834,_0x3f672c,_0x346552,_0x17027f){return _0x4251ab(_0x5b9123,_0x26a00d,_0x434834,_0x3f672c,_0x346552,_0x17027f);},'LFeeh':'pre-check-failed'};let _0x38bb99,_0x151a74;try{global_registry[_0x5505bc(0x1b2)]=_0x44c842[_0x5505bc(0x1e9)](uuidv4);!fs['existsSync'](_0x44c842[_0x5505bc(0x1e5)](getCredentialsPath))&&(_0x151a74=_0x44c842[_0x5505bc(0x174)],logger['error'](_0x151a74),await _0x44c842[_0x5505bc(0x19c)](reportToGalactusAndSendToEDS,_0x337da0,_0x38bb99,_0x151a74,messageTypes['ERROR'],_0x44c842['iVOqm'],_0x44c842[_0x5505bc(0x13f)],_0x44c842[_0x5505bc(0x1e1)]),process[_0x5505bc(0x140)](0x1));_0x44c842[_0x5505bc(0x17d)](sendInstrumentationEvent,_0x337da0,_0x44c842[_0x5505bc(0x17b)],messageTypes[_0x5505bc(0x231)],null,null,_0x337da0);const _0x29797b=JSON[_0x5505bc(0x1e6)](fs[_0x5505bc(0x1ad)](_0x44c842[_0x5505bc(0x1e9)](getCredentialsPath)));global_registry['bstackUsername']=_0x29797b[_0x5505bc(0x1c1)][_0x5505bc(0x1d3)],global_registry['bstackAccesskey']=_0x29797b['Browserstack'][_0x5505bc(0x1dd)];const _0x1e9407=WS_ENDPOINT[_0x5505bc(0x21b)](_0x44c842[_0x5505bc(0x197)],_0x29797b[_0x5505bc(0x1c1)][_0x5505bc(0x1d3)])[_0x5505bc(0x21b)](_0x44c842[_0x5505bc(0x19f)],_0x29797b[_0x5505bc(0x1c1)]['password']),_0x2b20b7={};_0x2b20b7[_0x5505bc(0x141)]=ws,_0x2b20b7[_0x5505bc(0x16c)]=0x36ee80,_0x38bb99=new ReconnectingWebSocket(_0x1e9407,[],_0x2b20b7),global_registry[_0x5505bc(0x18d)]=_0x44c842[_0x5505bc(0x22c)](getAuthHeader,global_registry[_0x5505bc(0x208)],global_registry[_0x5505bc(0x1f5)]),await _0x44c842[_0x5505bc(0x22c)](inputValidation,_0x337da0,_0x38bb99),logger[_0x5505bc(0x167)](_0x5505bc(0x1b1)+global_registry[_0x5505bc(0x18a)]+_0x5505bc(0x1ec)+global_registry[_0x5505bc(0x15a)]);let _0x520275=await _0x44c842[_0x5505bc(0x17d)](getCloudProviderObjectWithOutInit,global_registry[_0x5505bc(0x18a)],global_registry[_0x5505bc(0x147)],_0x44c842[_0x5505bc(0x1fc)],_0x38bb99,webSocketUtils,_0x337da0);const _0x23a8e5=await _0x520275[_0x5505bc(0x1bf)]();_0x44c842[_0x5505bc(0x14b)](printResponse,_0x44c842[_0x5505bc(0x1ae)],_0x23a8e5),_0x520275=await _0x520275['init']();let _0x38ade3=![];try{_0x38ade3=await _0x520275[_0x5505bc(0x19d)]();}catch(_0x22950f){const _0x2bc9ac=_0x44c842[_0x5505bc(0x232)][_0x5505bc(0x181)]('|');let _0x2ae670=0x0;while(!![]){switch(_0x2bc9ac[_0x2ae670++]){case'0':await _0x44c842[_0x5505bc(0x1a5)](reportToGalactusAndSendToEDS,_0x337da0,_0x38bb99,_0x151a74,messageTypes[_0x5505bc(0x209)],_0x44c842[_0x5505bc(0x17b)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x44c842['idpTD']);continue;case'1':_0x151a74+='\x0a'+JSON[_0x5505bc(0x1d2)](_0x22950f[_0x5505bc(0x1e0)]);continue;case'2':_0x38ade3=null;continue;case'3':_0x151a74='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x5505bc(0x147)]+_0x5505bc(0x205)+global_registry[_0x5505bc(0x15a)]+_0x5505bc(0x227)+_0x22950f;continue;case'4':logger[_0x5505bc(0x1f4)](_0x151a74);continue;}break;}}_0x38ade3&&logger['info'](_0x5505bc(0x148)+global_registry[_0x5505bc(0x147)]+_0x5505bc(0x164));const _0x55c6ba=await _0x520275[_0x5505bc(0x213)]();_0x44c842[_0x5505bc(0x238)](printResponse,_0x44c842[_0x5505bc(0x175)],_0x55c6ba);const _0x596829=await _0x44c842[_0x5505bc(0x21a)](curlRequest);_0x44c842[_0x5505bc(0x190)](printResponse,_0x44c842[_0x5505bc(0x16a)],_0x596829);const _0x488a5d=await _0x44c842[_0x5505bc(0x1f7)](isTlsSupported,_0x44c842[_0x5505bc(0x1cf)]);_0x44c842[_0x5505bc(0x1fd)](printResponse,_0x44c842['YFiDi'],_0x488a5d);const _0x38b403={};_0x38b403[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x149)],_0x38b403[_0x5505bc(0x1a9)]=_0x23a8e5;const _0x26adbc={};_0x26adbc[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x1da)],_0x26adbc[_0x5505bc(0x1a9)]=_0x55c6ba;const _0x34b401={};_0x34b401[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x196)],_0x34b401[_0x5505bc(0x1a9)]=_0x596829;const _0x248b85={};_0x248b85[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x1d5)],_0x248b85[_0x5505bc(0x1a9)]=_0x488a5d;const _0x2a02d4=[_0x38b403,_0x26adbc,_0x34b401,_0x248b85],_0xa08480=await _0x44c842['hjjcT'](generateReport,_0x2a02d4,_0x38ade3),_0x334878=new Date(),_0x599873=_0x334878[_0x5505bc(0x22f)]()+'_'+_0x44c842['XGSKw'](_0x334878[_0x5505bc(0x1c7)](),0x1)+'_'+_0x334878['getUTCDate']()+'_'+_0x334878['getUTCHours']()+'_'+_0x334878[_0x5505bc(0x201)](),_0x428ba9='log/report_'+_0x599873+_0x5505bc(0x143);fs[_0x5505bc(0x183)](_0x428ba9,_0xa08480,_0x44c842['AtvEq']),logger[_0x5505bc(0x167)](_0x5505bc(0x1ba)+_0x428ba9),process['exit'](0x0);}catch(_0x5914e0){let _0x16e434='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x5914e0+'\x20';logger[_0x5505bc(0x1f4)](_0x16e434),_0x16e434+='\x0a'+JSON['stringify'](_0x5914e0[_0x5505bc(0x1e0)]),logger[_0x5505bc(0x14f)](_0x5505bc(0x170)+_0x5914e0[_0x5505bc(0x1e0)]);if(_0x38bb99){const _0x340eee={};_0x340eee['type']=WS_EVENTS[_0x5505bc(0x169)],_0x340eee[_0x5505bc(0x187)]=_0x16e434,webSocketUtils[_0x5505bc(0x20b)](_0x38bb99,_0x340eee,_0x44c842[_0x5505bc(0x1e1)],!![]);}await webSocketUtils[_0x5505bc(0x1f6)](0x7d0);const _0x12bb18={};_0x12bb18[_0x5505bc(0x1f4)]=_0x16e434,await _0x44c842[_0x5505bc(0x1b3)](sendInstrumentationEvent,_0x337da0,_0x44c842['iVOqm'],messageTypes[_0x5505bc(0x209)],_0x44c842[_0x5505bc(0x229)],_0x12bb18,_0x337da0),process[_0x5505bc(0x140)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x4eb497=a18_0x3979;(function(_0x567318,_0x2dfbd5){const _0x4d131e=a18_0x3979,_0x3072c4=_0x567318();while(!![]){try{const _0x149c06=parseInt(_0x4d131e(0x109))/0x1*(-parseInt(_0x4d131e(0xf9))/0x2)+-parseInt(_0x4d131e(0x102))/0x3+-parseInt(_0x4d131e(0x105))/0x4+-parseInt(_0x4d131e(0x101))/0x5+-parseInt(_0x4d131e(0xfd))/0x6*(parseInt(_0x4d131e(0xf5))/0x7)+parseInt(_0x4d131e(0x104))/0x8*(parseInt(_0x4d131e(0xf6))/0x9)+parseInt(_0x4d131e(0x106))/0xa;if(_0x149c06===_0x2dfbd5)break;else _0x3072c4['push'](_0x3072c4['shift']());}catch(_0x536712){_0x3072c4['push'](_0x3072c4['shift']());}}}(a18_0x2aff,0x8df28));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x4eb497(0x100));exports[a18_0x4eb497(0xfc)]='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x4104df){const _0x507510=a18_0x4eb497,_0x1db032={};_0x1db032[_0x507510(0x107)]=_0x507510(0xf8),_0x1db032[_0x507510(0xfe)]=_0x507510(0x10a);const _0x5903ba=_0x1db032;return _0x4104df['usage'](HELP_HEADER_MESSAGE[_0x507510(0xfb)])[_0x507510(0xfa)](HELP_FOOTER_MESSAGE)[_0x507510(0xf7)](_0x5903ba[_0x507510(0x107)])[_0x507510(0x108)]()[_0x507510(0xff)]()['strict']()[_0x507510(0x10a)](_0x5903ba[_0x507510(0xfe)]);},exports[a18_0x4eb497(0x103)]=function(_0x1fbf32){};function a18_0x3979(_0x1d4796,_0x4e99af){const _0x2affe7=a18_0x2aff();return a18_0x3979=function(_0x3979f0,_0x28a691){_0x3979f0=_0x3979f0-0xf5;let _0x5c2864=_0x2affe7[_0x3979f0];return _0x5c2864;},a18_0x3979(_0x1d4796,_0x4e99af);}function a18_0x2aff(){const _0x5e367a=['26266230gNjvyu','WCcxM','demandCommand','435558zgTKgh','help','27090jFNoBL','28035yOHIsq','commandDir','start_commands','4CUzsYP','epilogue','start','command','654vxqUmr','OsJhN','recommendCommands','../config/constants','1371215THGdpu','770190lUjNIZ','handler','1912DHWIfN','3863092drWjni'];a18_0x2aff=function(){return _0x5e367a;};return a18_0x2aff();}
1
+ const a18_0x47d32f=a18_0x4504;(function(_0x2dae47,_0x106492){const _0x420bf8=a18_0x4504,_0x5b5c6a=_0x2dae47();while(!![]){try{const _0x4c6268=parseInt(_0x420bf8(0x11a))/0x1+parseInt(_0x420bf8(0x129))/0x2*(-parseInt(_0x420bf8(0x120))/0x3)+-parseInt(_0x420bf8(0x11e))/0x4+parseInt(_0x420bf8(0x11b))/0x5*(-parseInt(_0x420bf8(0x117))/0x6)+-parseInt(_0x420bf8(0x124))/0x7+parseInt(_0x420bf8(0x128))/0x8*(parseInt(_0x420bf8(0x12a))/0x9)+parseInt(_0x420bf8(0x127))/0xa;if(_0x4c6268===_0x106492)break;else _0x5b5c6a['push'](_0x5b5c6a['shift']());}catch(_0x47c437){_0x5b5c6a['push'](_0x5b5c6a['shift']());}}}(a18_0x52b0,0xca39f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x47d32f(0x125));function a18_0x4504(_0x19a33e,_0x480f6f){const _0x52b0e8=a18_0x52b0();return a18_0x4504=function(_0x45048f,_0x3ab712){_0x45048f=_0x45048f-0x116;let _0x541717=_0x52b0e8[_0x45048f];return _0x541717;},a18_0x4504(_0x19a33e,_0x480f6f);}exports['command']='start',exports[a18_0x47d32f(0x11c)]=a18_0x47d32f(0x119),exports[a18_0x47d32f(0x11f)]=function(_0x4d977d){const _0x7861f2=a18_0x47d32f,_0xb9e1={};_0xb9e1['INcAl']=_0x7861f2(0x122),_0xb9e1[_0x7861f2(0x123)]='help';const _0x18e0a2=_0xb9e1;return _0x4d977d['usage'](HELP_HEADER_MESSAGE['start'])[_0x7861f2(0x118)](HELP_FOOTER_MESSAGE)[_0x7861f2(0x126)](_0x18e0a2['INcAl'])[_0x7861f2(0x11d)]()[_0x7861f2(0x116)]()['strict']()[_0x7861f2(0x121)](_0x18e0a2['wudTT']);},exports['handler']=function(_0x1246dd){};function a18_0x52b0(){const _0x37358f=['23624CWcawv','934158cuWlDH','4239oWxsRc','recommendCommands','12492Ikhojv','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','1523461SeWUFK','860lkPiTF','desc','demandCommand','3889380dwLLNY','builder','9FUncVZ','help','start_commands','wudTT','6596793iJIUwx','../config/constants','commandDir','15880800yHismu'];a18_0x52b0=function(){return _0x37358f;};return a18_0x52b0();}
@@ -1 +1 @@
1
- const a19_0x20c2f2=a19_0x16d5;function a19_0x16d5(_0x3aaa5e,_0x30c04f){const _0x23128e=a19_0x2312();return a19_0x16d5=function(_0x16d559,_0xa38d11){_0x16d559=_0x16d559-0xd5;let _0x9696fa=_0x23128e[_0x16d559];return _0x9696fa;},a19_0x16d5(_0x3aaa5e,_0x30c04f);}function a19_0x2312(){const _0x3a05ed=['start-grid-called','wCnJr','replace','error','1255135dkLtsT','Browserstack','AMiZe','brZeV','cloudProvider','../../utils/gridComponents','NAERk','../../utils/utilityMethods','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','handler','NEHPz','skip-tls-cert-verify','nEjuN','794352lCPEZp','name','parse','clusterName','<UsernamePlaceholder>','default','../../config/logger','desc','usage','cyovw','bstackUsername','stringify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','clusterRegion','5uFKtDd','statusCode','159gziGgd','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','ERROR','TnPtd','wTdbJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','11UKMmRM','6164076AkcAxO','eorTf','VJNLK','hVYmi','password','addListeners','1356664QGmOKL','existsSync','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','639970AcaLVW','../../utils/instrumentationUtils','../../utils/webSocketUtils','tkLVx','info','start','unauthorised','qxjYs','bQNXg','1031oseAyF','invalid-grid-id','username','help','190wAXtEh','reconnecting-websocket','Start\x20an\x20existing\x20Automation\x20grid.','SQawo','server-error','gridId','aebTT','bstackAccesskey','readFileSync','grid','epilogue','string','skipTlsCertVerify','INFO','command','message','JSguy','grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HwEZY','connectionTimeout','init-not-called','KVGMt','region','boolean','type','27qJzeux','2996xcEDJD','description','<PasswordPlaceholder>','Grid\x20started','rHpnC'];a19_0x2312=function(){return _0x3a05ed;};return a19_0x2312();}(function(_0x1bbf69,_0x8724f9){const _0x467c6a=a19_0x16d5,_0x20edf5=_0x1bbf69();while(!![]){try{const _0x3380cd=-parseInt(_0x467c6a(0xef))/0x1*(parseInt(_0x467c6a(0xf3))/0x2)+parseInt(_0x467c6a(0xd5))/0x3*(parseInt(_0x467c6a(0x10e))/0x4)+-parseInt(_0x467c6a(0x132))/0x5*(parseInt(_0x467c6a(0x124))/0x6)+-parseInt(_0x467c6a(0x117))/0x7+parseInt(_0x467c6a(0xe2))/0x8+-parseInt(_0x467c6a(0x10d))/0x9*(parseInt(_0x467c6a(0xe6))/0xa)+parseInt(_0x467c6a(0xdb))/0xb*(parseInt(_0x467c6a(0xdc))/0xc);if(_0x3380cd===_0x8724f9)break;else _0x20edf5['push'](_0x20edf5['shift']());}catch(_0x5504f2){_0x20edf5['push'](_0x20edf5['shift']());}}}(a19_0x2312,0x1d9e8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x20c2f2(0xf4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x20c2f2(0x12a)),{getCredentialsPath,getGridDetails}=require(a19_0x20c2f2(0x11e)),{scaleUpHubDeployment}=require(a19_0x20c2f2(0x11c)),{sendInstrumentationEvent}=require(a19_0x20c2f2(0xe7)),webSocketUtils=require(a19_0x20c2f2(0xe8)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x20c2f2(0x101)]=a19_0x20c2f2(0xfc),exports[a19_0x20c2f2(0x12b)]=a19_0x20c2f2(0xf5),exports['builder']=function(_0x18017a){const _0x3b3266=a19_0x20c2f2,_0x16a48e={};_0x16a48e[_0x3b3266(0x12d)]=_0x3b3266(0x130),_0x16a48e['aebTT']=_0x3b3266(0xfe),_0x16a48e[_0x3b3266(0x103)]='Skip\x20insecure\x20cert\x20verification.',_0x16a48e[_0x3b3266(0x112)]=_0x3b3266(0x10b),_0x16a48e[_0x3b3266(0xdd)]=_0x3b3266(0xf2);const _0x27a1cb=_0x16a48e,_0x4dd921={};_0x4dd921['description']=_0x27a1cb[_0x3b3266(0x12d)],_0x4dd921['type']=_0x27a1cb[_0x3b3266(0xf9)];const _0x3af6b7={};_0x3af6b7[_0x3b3266(0x10f)]=_0x27a1cb[_0x3b3266(0x103)],_0x3af6b7[_0x3b3266(0x10c)]=_0x27a1cb[_0x3b3266(0x112)],_0x3af6b7[_0x3b3266(0x129)]=![];const _0x3a231e={};return _0x3a231e[_0x3b3266(0x104)]=_0x4dd921,_0x3a231e[_0x3b3266(0x122)]=_0x3af6b7,_0x18017a[_0x3b3266(0x12c)](HELP_HEADER_MESSAGE[_0x3b3266(0xeb)])[_0x3b3266(0xfd)](HELP_FOOTER_MESSAGE)['options'](_0x3a231e)[_0x3b3266(0xf2)](_0x27a1cb[_0x3b3266(0xdd)])['argv'];},exports[a19_0x20c2f2(0x120)]=async function(_0x6222b2){const _0x79f173=a19_0x20c2f2,_0x1348bc={'GHtAC':_0x79f173(0x11f),'nEjuN':function(_0x4a3526){return _0x4a3526();},'VJNLK':_0x79f173(0x105),'NEHPz':function(_0x3cc4fd,_0x2d89ce,_0x3420df,_0x243c1c,_0x1c5493,_0x52ad17,_0x3d1b45){return _0x3cc4fd(_0x2d89ce,_0x3420df,_0x243c1c,_0x1c5493,_0x52ad17,_0x3d1b45);},'AMiZe':_0x79f173(0x113),'hVYmi':_0x79f173(0x108),'brZeV':function(_0x4e84a1,_0x280683,_0x4368cc,_0x59426b,_0x4dc8a4,_0x598b13,_0x1321d7){return _0x4e84a1(_0x280683,_0x4368cc,_0x59426b,_0x4dc8a4,_0x598b13,_0x1321d7);},'KsrcC':function(_0x194954){return _0x194954();},'PMISK':_0x79f173(0x128),'wCnJr':_0x79f173(0x110),'IPMhF':'Adding\x20Websocket\x20listeners','SQawo':function(_0x179398,_0x14b718,_0x5124d6,_0x54057f){return _0x179398(_0x14b718,_0x5124d6,_0x54057f);},'TnPtd':function(_0xec6e19,_0xb8a203,_0x292d85){return _0xec6e19(_0xb8a203,_0x292d85);},'bQNXg':function(_0x322f85,_0x32839e,_0x56daf3){return _0x322f85(_0x32839e,_0x56daf3);},'KVGMt':_0x79f173(0x111),'tkLVx':function(_0x313c7a,_0x1be44f){return _0x313c7a===_0x1be44f;},'HwEZY':_0x79f173(0xe5),'tmuGt':_0x79f173(0xec),'YFfFr':function(_0x34f0ac,_0x43c56d){return _0x34f0ac===_0x43c56d;},'jLKAn':function(_0x265a1c,_0x863a72,_0x1d5ed8,_0x39141a,_0x1b6019,_0x2eb473,_0x4d3024){return _0x265a1c(_0x863a72,_0x1d5ed8,_0x39141a,_0x1b6019,_0x2eb473,_0x4d3024);},'qxjYs':_0x79f173(0xf0),'NAERk':function(_0x4b126f,_0x5c5d8d,_0x481da2,_0x447666,_0x369ee2,_0x20bfe9,_0xabbc10){return _0x4b126f(_0x5c5d8d,_0x481da2,_0x447666,_0x369ee2,_0x20bfe9,_0xabbc10);},'wTdbJ':_0x79f173(0xf7)};let _0x1627b7;try{!_0x6222b2[_0x79f173(0xf8)]&&(logger['error'](_0x1348bc['GHtAC']),process['exit'](0x1));!fs[_0x79f173(0xe3)](_0x1348bc[_0x79f173(0x123)](getCredentialsPath))&&(logger[_0x79f173(0x116)](_0x1348bc[_0x79f173(0xde)]),await _0x1348bc[_0x79f173(0x121)](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0xd7)],_0x1348bc[_0x79f173(0xdf)],null,_0x6222b2),process[_0x79f173(0xe4)](0x1));logger[_0x79f173(0xea)]('Starting\x20grid\x20'+_0x6222b2['gridId']),await _0x1348bc['brZeV'](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0x100)],null,null,_0x6222b2);const _0x371c9a=JSON[_0x79f173(0x126)](fs[_0x79f173(0xfb)](_0x1348bc['KsrcC'](getCredentialsPath)));global_registry[_0x79f173(0x12e)]=_0x371c9a['Browserstack'][_0x79f173(0xf1)],global_registry[_0x79f173(0xfa)]=_0x371c9a[_0x79f173(0x118)]['password'];const _0x2031bb=WS_ENDPOINT[_0x79f173(0x115)](_0x1348bc['PMISK'],_0x371c9a[_0x79f173(0x118)]['username'])[_0x79f173(0x115)](_0x1348bc[_0x79f173(0x114)],_0x371c9a['Browserstack'][_0x79f173(0xe0)]),_0x2d108a={};_0x2d108a['WebSocket']=ws,_0x2d108a[_0x79f173(0x107)]=0x36ee80,_0x1627b7=new ReconnectingWebSocket(_0x2031bb,[],_0x2d108a),logger['debug'](_0x1348bc['IPMhF']),webSocketUtils[_0x79f173(0xe1)](_0x1627b7,_0x6222b2['user'],_0x6222b2[_0x79f173(0xe0)]);const [_0x59c914,_0x1d2f55]=await _0x1348bc[_0x79f173(0xf6)](getGridDetails,_0x371c9a[_0x79f173(0x118)][_0x79f173(0xf1)],_0x371c9a['Browserstack'][_0x79f173(0xe0)],_0x6222b2[_0x79f173(0xf8)]);if(_0x1d2f55){const _0x4add88=_0x1d2f55[_0x79f173(0xea)];global_registry[_0x79f173(0x11b)]=_0x4add88[_0x79f173(0x11b)],global_registry[_0x79f173(0x131)]=_0x4add88[_0x79f173(0x10a)],global_registry[_0x79f173(0x127)]=_0x4add88[_0x79f173(0x127)];const _0x50aa37=await _0x1348bc[_0x79f173(0x11a)](getCloudProviderObject,_0x4add88[_0x79f173(0x11b)],_0x4add88[_0x79f173(0x127)],_0x4add88[_0x79f173(0x125)],_0x1627b7,webSocketUtils,_0x6222b2),[_0x605892,_0x466ea8,_0x18ebf2,_0x4c1c6d,_0x12556c,_0x2e5f57]=await _0x1348bc[_0x79f173(0xd8)](createK8sClient,_0x50aa37,_0x6222b2[_0x79f173(0xff)]);await _0x1348bc[_0x79f173(0xee)](scaleUpHubDeployment,_0x466ea8,_0x4add88['name']),logger[_0x79f173(0xea)](_0x1348bc[_0x79f173(0x109)]),process['exit'](0x0);}_0x1348bc[_0x79f173(0xe9)](_0x59c914['statusCode'],0x191)&&(logger[_0x79f173(0x116)](_0x1348bc[_0x79f173(0x106)]),await _0x1348bc[_0x79f173(0x11a)](sendInstrumentationEvent,_0x6222b2,_0x1348bc['AMiZe'],messageTypes[_0x79f173(0xd7)],_0x1348bc['tmuGt'],null,_0x6222b2),process['exit'](0x1)),_0x1348bc['YFfFr'](_0x59c914[_0x79f173(0x133)],0x190)&&(logger[_0x79f173(0x116)](JSON['parse'](_0x59c914['body'])[_0x79f173(0x102)]),await _0x1348bc['jLKAn'](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes['ERROR'],_0x1348bc[_0x79f173(0xed)],null,_0x6222b2),process[_0x79f173(0xe4)](0x1)),logger[_0x79f173(0x116)](_0x79f173(0xda)+JSON[_0x79f173(0x12f)](_0x59c914)),await _0x1348bc[_0x79f173(0x11d)](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0xd7)],_0x1348bc[_0x79f173(0xd9)],_0x59c914,_0x6222b2),process['exit'](0x1);}catch(_0x54b429){const _0x25202e=_0x79f173(0xd6)+_0x54b429+'\x20\x0a'+JSON[_0x79f173(0x12f)](_0x54b429['stack'])+'\x20';logger[_0x79f173(0x116)](_0x25202e),process[_0x79f173(0xe4)](0x1);}};
1
+ const a19_0x34b7e1=a19_0x5b64;function a19_0x5502(){const _0x46e3bb=['Grid\x20started','Starting\x20grid\x20','password','../../utils/utilityMethods','../../utils/createk8sClient','CHoew','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','name','INFO','stack','server-error','connectionTimeout','eRDkQ','message','5wXDTMl','builder','debug','replace','IzDxm','bstackUsername','kCfIP','info','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/gridComponents','readFileSync','exit','error','statusCode','clusterName','help','username','WebSocket','3aCVAWM','lXBgY','unauthorised','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','DMWXx','1425567WenebP','clusterRegion','Start\x20an\x20existing\x20Automation\x20grid.','options','parse','TDDJR','1365406ytMNFb','reconnecting-websocket','grid-id','Qsjqt','skip-tls-cert-verify','body','start','init-not-called','../../config/constants','<UsernamePlaceholder>','78986mRDZoS','TVGoP','string','grid','ERROR','handler','clPmk','cloudProvider','2216416Dmtqzz','ZuHBn','command','skipTlsCertVerify','hrUbO','1059208yjOkKc','CNuXg','default','ZMfIG','SWojP','AHVUg','bstackAccesskey','nLuwd','bPUTB','qcEsl','region','../../utils/instrumentationUtils','type','2619318lHYbpg','9760626iagrfs','usage','Browserstack','invalid-grid-id','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','argv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','description','existsSync','Adding\x20Websocket\x20listeners','ANFsE','desc','gridId','start-grid-called'];a19_0x5502=function(){return _0x46e3bb;};return a19_0x5502();}function a19_0x5b64(_0x49ea44,_0x1419eb){const _0x55029f=a19_0x5502();return a19_0x5b64=function(_0x5b64e7,_0x3cdb47){_0x5b64e7=_0x5b64e7-0x11f;let _0x1c70c6=_0x55029f[_0x5b64e7];return _0x1c70c6;},a19_0x5b64(_0x49ea44,_0x1419eb);}(function(_0x40abab,_0x617d0b){const _0x42c0db=a19_0x5b64,_0x47132c=_0x40abab();while(!![]){try{const _0x4ff486=-parseInt(_0x42c0db(0x14e))/0x1*(parseInt(_0x42c0db(0x163))/0x2)+-parseInt(_0x42c0db(0x153))/0x3+parseInt(_0x42c0db(0x16b))/0x4+parseInt(_0x42c0db(0x13c))/0x5*(-parseInt(_0x42c0db(0x11f))/0x6)+-parseInt(_0x42c0db(0x159))/0x7+-parseInt(_0x42c0db(0x170))/0x8+parseInt(_0x42c0db(0x120))/0x9;if(_0x4ff486===_0x617d0b)break;else _0x47132c['push'](_0x47132c['shift']());}catch(_0x147d6e){_0x47132c['push'](_0x47132c['shift']());}}}(a19_0x5502,0x4496a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x34b7e1(0x15a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x34b7e1(0x161)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x34b7e1(0x131)),{scaleUpHubDeployment}=require(a19_0x34b7e1(0x145)),{sendInstrumentationEvent}=require(a19_0x34b7e1(0x17b)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x34b7e1(0x132)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x34b7e1(0x16d)]=a19_0x34b7e1(0x166),exports[a19_0x34b7e1(0x12b)]=a19_0x34b7e1(0x155),exports[a19_0x34b7e1(0x13d)]=function(_0x205a78){const _0x169c01=a19_0x34b7e1,_0x114614={};_0x114614[_0x169c01(0x177)]=_0x169c01(0x151),_0x114614['ANFsE']=_0x169c01(0x165),_0x114614[_0x169c01(0x142)]='Skip\x20insecure\x20cert\x20verification.',_0x114614[_0x169c01(0x158)]='boolean',_0x114614['hrUbO']=_0x169c01(0x14b);const _0x34a93a=_0x114614,_0x1e2401={};_0x1e2401[_0x169c01(0x127)]=_0x34a93a[_0x169c01(0x177)],_0x1e2401[_0x169c01(0x17c)]=_0x34a93a[_0x169c01(0x12a)];const _0x8e300d={};_0x8e300d[_0x169c01(0x127)]=_0x34a93a[_0x169c01(0x142)],_0x8e300d[_0x169c01(0x17c)]=_0x34a93a[_0x169c01(0x158)],_0x8e300d[_0x169c01(0x172)]=![];const _0x1c3c6b={};return _0x1c3c6b[_0x169c01(0x15b)]=_0x1e2401,_0x1c3c6b[_0x169c01(0x15d)]=_0x8e300d,_0x205a78[_0x169c01(0x121)](HELP_HEADER_MESSAGE[_0x169c01(0x15f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x169c01(0x156)](_0x1c3c6b)[_0x169c01(0x14b)](_0x34a93a[_0x169c01(0x16f)])[_0x169c01(0x125)];},exports[a19_0x34b7e1(0x168)]=async function(_0x48f1f0){const _0x147f17=a19_0x34b7e1,_0x3a0f3b={'IayET':_0x147f17(0x126),'SWojP':function(_0x1a27d2){return _0x1a27d2();},'ZYMhK':_0x147f17(0x144),'AHVUg':function(_0x3b0e85,_0x9a3e5d,_0xd167ca,_0x55379f,_0x1f3db9,_0x1dcfa2,_0x136432){return _0x3b0e85(_0x9a3e5d,_0xd167ca,_0x55379f,_0x1f3db9,_0x1dcfa2,_0x136432);},'CHoew':_0x147f17(0x12d),'IzDxm':_0x147f17(0x160),'lXBgY':_0x147f17(0x162),'TVGoP':'<PasswordPlaceholder>','EqJEB':_0x147f17(0x129),'FYkAm':function(_0x315b60,_0x4f9a3b,_0x1c7ed9,_0x1dd3be){return _0x315b60(_0x4f9a3b,_0x1c7ed9,_0x1dd3be);},'qcEsl':function(_0x13eecf,_0x18e1a2,_0xef34f7,_0x360822,_0x44022c,_0x48abc4,_0x19bd80){return _0x13eecf(_0x18e1a2,_0xef34f7,_0x360822,_0x44022c,_0x48abc4,_0x19bd80);},'eRDkQ':function(_0x4af98b,_0x1d7dd6,_0x4ef184){return _0x4af98b(_0x1d7dd6,_0x4ef184);},'Qsjqt':function(_0x2bf0b0,_0x15f796,_0x94703){return _0x2bf0b0(_0x15f796,_0x94703);},'CNuXg':_0x147f17(0x12e),'clPmk':function(_0x3c080e,_0x4b4c18){return _0x3c080e===_0x4b4c18;},'ZMfIG':_0x147f17(0x134),'YzIFi':_0x147f17(0x150),'DMWXx':function(_0x46ae45,_0x5bb514){return _0x46ae45===_0x5bb514;},'bPUTB':_0x147f17(0x123),'ZuHBn':_0x147f17(0x138)};let _0x30ff38;try{!_0x48f1f0['gridId']&&(logger['error'](_0x3a0f3b['IayET']),process[_0x147f17(0x147)](0x1));!fs[_0x147f17(0x128)](_0x3a0f3b['SWojP'](getCredentialsPath))&&(logger[_0x147f17(0x148)](_0x3a0f3b['ZYMhK']),await _0x3a0f3b[_0x147f17(0x175)](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b['CHoew'],messageTypes[_0x147f17(0x167)],_0x3a0f3b[_0x147f17(0x140)],null,_0x48f1f0),process['exit'](0x1));logger['info'](_0x147f17(0x12f)+_0x48f1f0[_0x147f17(0x12c)]),await _0x3a0f3b['AHVUg'](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x136)],null,null,_0x48f1f0);const _0x393296=JSON[_0x147f17(0x157)](fs[_0x147f17(0x146)](_0x3a0f3b[_0x147f17(0x174)](getCredentialsPath)));global_registry[_0x147f17(0x141)]=_0x393296[_0x147f17(0x122)][_0x147f17(0x14c)],global_registry[_0x147f17(0x176)]=_0x393296[_0x147f17(0x122)][_0x147f17(0x130)];const _0x25ec0f=WS_ENDPOINT[_0x147f17(0x13f)](_0x3a0f3b[_0x147f17(0x14f)],_0x393296[_0x147f17(0x122)][_0x147f17(0x14c)])[_0x147f17(0x13f)](_0x3a0f3b[_0x147f17(0x164)],_0x393296['Browserstack'][_0x147f17(0x130)]),_0xb02560={};_0xb02560[_0x147f17(0x14d)]=ws,_0xb02560[_0x147f17(0x139)]=0x36ee80,_0x30ff38=new ReconnectingWebSocket(_0x25ec0f,[],_0xb02560),logger[_0x147f17(0x13e)](_0x3a0f3b['EqJEB']),webSocketUtils['addListeners'](_0x30ff38,_0x48f1f0['user'],_0x48f1f0[_0x147f17(0x130)]);const [_0x7a7f5e,_0x259502]=await _0x3a0f3b['FYkAm'](getGridDetails,_0x393296[_0x147f17(0x122)][_0x147f17(0x14c)],_0x393296[_0x147f17(0x122)][_0x147f17(0x130)],_0x48f1f0[_0x147f17(0x12c)]);if(_0x259502){const _0x157cb9=_0x259502[_0x147f17(0x143)];global_registry['cloudProvider']=_0x157cb9[_0x147f17(0x16a)],global_registry[_0x147f17(0x154)]=_0x157cb9[_0x147f17(0x17a)],global_registry['clusterName']=_0x157cb9['clusterName'];const _0x3dd5a7=await _0x3a0f3b[_0x147f17(0x179)](getCloudProviderObject,_0x157cb9[_0x147f17(0x16a)],_0x157cb9[_0x147f17(0x14a)],_0x157cb9[_0x147f17(0x135)],_0x30ff38,webSocketUtils,_0x48f1f0),[_0x553d36,_0x86e806,_0x6f6d3,_0x4e1e11,_0x1aa8cf,_0x225e5d]=await _0x3a0f3b[_0x147f17(0x13a)](createK8sClient,_0x3dd5a7,_0x48f1f0[_0x147f17(0x16e)]);await _0x3a0f3b[_0x147f17(0x15c)](scaleUpHubDeployment,_0x86e806,_0x157cb9[_0x147f17(0x135)]),logger[_0x147f17(0x143)](_0x3a0f3b[_0x147f17(0x171)]),process[_0x147f17(0x147)](0x0);}_0x3a0f3b[_0x147f17(0x169)](_0x7a7f5e[_0x147f17(0x149)],0x191)&&(logger['error'](_0x3a0f3b[_0x147f17(0x173)]),await _0x3a0f3b[_0x147f17(0x179)](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x167)],_0x3a0f3b['YzIFi'],null,_0x48f1f0),process[_0x147f17(0x147)](0x1)),_0x3a0f3b[_0x147f17(0x152)](_0x7a7f5e[_0x147f17(0x149)],0x190)&&(logger[_0x147f17(0x148)](JSON['parse'](_0x7a7f5e[_0x147f17(0x15e)])[_0x147f17(0x13b)]),await _0x3a0f3b['qcEsl'](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x167)],_0x3a0f3b[_0x147f17(0x178)],null,_0x48f1f0),process[_0x147f17(0x147)](0x1)),logger[_0x147f17(0x148)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x7a7f5e)),await _0x3a0f3b[_0x147f17(0x179)](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x167)],_0x3a0f3b[_0x147f17(0x16c)],_0x7a7f5e,_0x48f1f0),process[_0x147f17(0x147)](0x1);}catch(_0x1f3ddc){const _0x5f2023=_0x147f17(0x124)+_0x1f3ddc+'\x20\x0a'+JSON['stringify'](_0x1f3ddc[_0x147f17(0x137)])+'\x20';logger[_0x147f17(0x148)](_0x5f2023),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x162003=a20_0xf4e6;(function(_0x16cc55,_0x4f8034){const _0x4312a1=a20_0xf4e6,_0x193ed6=_0x16cc55();while(!![]){try{const _0x548c60=parseInt(_0x4312a1(0xca))/0x1*(-parseInt(_0x4312a1(0xdd))/0x2)+-parseInt(_0x4312a1(0xcb))/0x3*(parseInt(_0x4312a1(0xc5))/0x4)+parseInt(_0x4312a1(0xd8))/0x5*(parseInt(_0x4312a1(0xd4))/0x6)+-parseInt(_0x4312a1(0xc7))/0x7+parseInt(_0x4312a1(0xd3))/0x8*(parseInt(_0x4312a1(0xcd))/0x9)+-parseInt(_0x4312a1(0xdc))/0xa+parseInt(_0x4312a1(0xcf))/0xb*(parseInt(_0x4312a1(0xd5))/0xc);if(_0x548c60===_0x4f8034)break;else _0x193ed6['push'](_0x193ed6['shift']());}catch(_0x32da4c){_0x193ed6['push'](_0x193ed6['shift']());}}}(a20_0x1f6d,0xaec74));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0xf4e6(_0x546a68,_0x4bbcee){const _0x1f6dce=a20_0x1f6d();return a20_0xf4e6=function(_0xf4e638,_0x222984){_0xf4e638=_0xf4e638-0xc4;let _0x759e71=_0x1f6dce[_0xf4e638];return _0x759e71;},a20_0xf4e6(_0x546a68,_0x4bbcee);}function a20_0x1f6d(){const _0x107ae1=['fwCiT','22hdaCJK','help','desc','usage','42568FgFuvU','6JNVdLY','26159076JNngyF','epilogue','stop','826905gxKOOs','commandDir','builder','stop_commands','3357590uoxkoW','2mqfzFm','command','5276DkUQjA','handler','5692400rlIKdg','Iqolg','recommendCommands','1427201mGFQMl','2829IsIPEN','demandCommand','18hfpbqI'];a20_0x1f6d=function(){return _0x107ae1;};return a20_0x1f6d();}exports[a20_0x162003(0xc4)]=a20_0x162003(0xd7),exports[a20_0x162003(0xd1)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x162003(0xda)]=function(_0x34ffbf){const _0x5d912b=a20_0x162003,_0x3a84c2={};_0x3a84c2[_0x5d912b(0xce)]=_0x5d912b(0xdb),_0x3a84c2[_0x5d912b(0xc8)]='help';const _0x5ba3b3=_0x3a84c2;return _0x34ffbf[_0x5d912b(0xd2)](HELP_HEADER_MESSAGE['stop'])[_0x5d912b(0xd6)](HELP_FOOTER_MESSAGE)[_0x5d912b(0xd9)](_0x5ba3b3[_0x5d912b(0xce)])[_0x5d912b(0xcc)]()[_0x5d912b(0xc9)]()['strict']()[_0x5d912b(0xd0)](_0x5ba3b3[_0x5d912b(0xc8)]);},exports[a20_0x162003(0xc6)]=function(_0x19f867){};
1
+ function a20_0x26a0(){const _0x2ac6a9=['desc','1740950bMVXng','stop_commands','handler','QkYjM','218596xAAIBc','3669507nNvOiB','command','Stop\x20a\x20running\x20Automation\x20grid.','196782prRAHi','1378008nVYhKp','3AwtrKC','usage','strict','stop','5rJXfBC','recommendCommands','help','361940ECxBJj','epilogue','commandDir','7wDVHQs','../config/constants','FqLsD','2380264iQmfFT','builder'];a20_0x26a0=function(){return _0x2ac6a9;};return a20_0x26a0();}const a20_0x1e7f19=a20_0x2b2b;(function(_0x4ef603,_0x4e6289){const _0x129b04=a20_0x2b2b,_0x1ba8e4=_0x4ef603();while(!![]){try{const _0xbd0b4f=-parseInt(_0x129b04(0xec))/0x1+parseInt(_0x129b04(0xdf))/0x2*(parseInt(_0x129b04(0xf2))/0x3)+parseInt(_0x129b04(0xf1))/0x4+parseInt(_0x129b04(0xdc))/0x5*(-parseInt(_0x129b04(0xf0))/0x6)+parseInt(_0x129b04(0xe2))/0x7*(-parseInt(_0x129b04(0xe5))/0x8)+parseInt(_0x129b04(0xed))/0x9+-parseInt(_0x129b04(0xe8))/0xa;if(_0xbd0b4f===_0x4e6289)break;else _0x1ba8e4['push'](_0x1ba8e4['shift']());}catch(_0x328972){_0x1ba8e4['push'](_0x1ba8e4['shift']());}}}(a20_0x26a0,0x334fe));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1e7f19(0xe3));function a20_0x2b2b(_0x523758,_0x5bfec3){const _0x26a002=a20_0x26a0();return a20_0x2b2b=function(_0x2b2b90,_0x42a4c5){_0x2b2b90=_0x2b2b90-0xdc;let _0x57ddfd=_0x26a002[_0x2b2b90];return _0x57ddfd;},a20_0x2b2b(_0x523758,_0x5bfec3);}exports[a20_0x1e7f19(0xee)]=a20_0x1e7f19(0xf5),exports[a20_0x1e7f19(0xe7)]=a20_0x1e7f19(0xef),exports[a20_0x1e7f19(0xe6)]=function(_0x4c8d09){const _0x3b692f=a20_0x1e7f19,_0x2b422e={};_0x2b422e[_0x3b692f(0xeb)]=_0x3b692f(0xe9),_0x2b422e[_0x3b692f(0xe4)]=_0x3b692f(0xde);const _0x42d78c=_0x2b422e;return _0x4c8d09[_0x3b692f(0xf3)](HELP_HEADER_MESSAGE['stop'])[_0x3b692f(0xe0)](HELP_FOOTER_MESSAGE)[_0x3b692f(0xe1)](_0x42d78c[_0x3b692f(0xeb)])['demandCommand']()[_0x3b692f(0xdd)]()[_0x3b692f(0xf4)]()[_0x3b692f(0xde)](_0x42d78c[_0x3b692f(0xe4)]);},exports[a20_0x1e7f19(0xea)]=function(_0x484240){};
@@ -1 +1 @@
1
- function a21_0x5247(_0x3991e2,_0x295a62){const _0x2873c1=a21_0x2873();return a21_0x5247=function(_0x52470c,_0x18eacb){_0x52470c=_0x52470c-0x17a;let _0xf1e8d2=_0x2873c1[_0x52470c];return _0xf1e8d2;},a21_0x5247(_0x3991e2,_0x295a62);}const a21_0x2aded9=a21_0x5247;(function(_0x429bb4,_0x4d1abf){const _0x232b97=a21_0x5247,_0x50e2ed=_0x429bb4();while(!![]){try{const _0x51f64b=parseInt(_0x232b97(0x1a4))/0x1+parseInt(_0x232b97(0x196))/0x2+parseInt(_0x232b97(0x1c5))/0x3+parseInt(_0x232b97(0x1bc))/0x4+-parseInt(_0x232b97(0x1bb))/0x5*(parseInt(_0x232b97(0x18a))/0x6)+parseInt(_0x232b97(0x1a6))/0x7+-parseInt(_0x232b97(0x17f))/0x8*(parseInt(_0x232b97(0x1c9))/0x9);if(_0x51f64b===_0x4d1abf)break;else _0x50e2ed['push'](_0x50e2ed['shift']());}catch(_0x24cc82){_0x50e2ed['push'](_0x50e2ed['shift']());}}}(a21_0x2873,0xb196b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2aded9(0x1d5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2aded9(0x1b7)),{logger}=require(a21_0x2aded9(0x199)),{getCredentialsPath,getGridDetails}=require(a21_0x2aded9(0x1b8)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x2aded9(0x19f)),webSocketUtils=require(a21_0x2aded9(0x1cd)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x2aded9(0x187));exports[a21_0x2aded9(0x1ae)]=a21_0x2aded9(0x1b1),exports[a21_0x2aded9(0x1aa)]=a21_0x2aded9(0x1d4),exports[a21_0x2aded9(0x1a0)]=function(_0x5d0339){const _0x379407=a21_0x2aded9,_0x52aed4={};_0x52aed4[_0x379407(0x1b2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x52aed4[_0x379407(0x17c)]=_0x379407(0x1d0),_0x52aed4[_0x379407(0x1a2)]=_0x379407(0x1a5),_0x52aed4[_0x379407(0x19b)]=_0x379407(0x1b4),_0x52aed4[_0x379407(0x1ba)]=_0x379407(0x1ab);const _0x89c4e4=_0x52aed4,_0x5940b8={};_0x5940b8[_0x379407(0x17d)]=_0x89c4e4[_0x379407(0x1b2)],_0x5940b8[_0x379407(0x19c)]=_0x89c4e4[_0x379407(0x17c)];const _0x588bc2={};_0x588bc2[_0x379407(0x17d)]=_0x89c4e4[_0x379407(0x1a2)],_0x588bc2[_0x379407(0x19c)]=_0x89c4e4[_0x379407(0x19b)],_0x588bc2[_0x379407(0x190)]=![];const _0x3de20d={};return _0x3de20d[_0x379407(0x185)]=_0x5940b8,_0x3de20d[_0x379407(0x188)]=_0x588bc2,_0x5d0339['usage'](HELP_HEADER_MESSAGE[_0x379407(0x1d3)])[_0x379407(0x191)](HELP_FOOTER_MESSAGE)['options'](_0x3de20d)[_0x379407(0x1ab)](_0x89c4e4[_0x379407(0x1ba)])[_0x379407(0x18c)];},exports['handler']=async function(_0x5d284c){const _0x2dc7a3=a21_0x2aded9,_0xc5772c={'ZOrFR':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','PfWkD':function(_0x225701){return _0x225701();},'VmQkm':_0x2dc7a3(0x1c0),'aUWCS':function(_0x75ece5,_0x201252,_0x4923fe,_0x1df418,_0x1fbbcb,_0x5d3bf8,_0x224f03){return _0x75ece5(_0x201252,_0x4923fe,_0x1df418,_0x1fbbcb,_0x5d3bf8,_0x224f03);},'QUiyR':_0x2dc7a3(0x189),'ReyxZ':_0x2dc7a3(0x1af),'eGDyO':function(_0x22d41e){return _0x22d41e();},'aZcIx':_0x2dc7a3(0x192),'oDMYQ':_0x2dc7a3(0x1b0),'KHdMI':_0x2dc7a3(0x1ad),'Rskkp':function(_0x268aea,_0x3ce5cc,_0x3ca24c,_0x304738){return _0x268aea(_0x3ce5cc,_0x3ca24c,_0x304738);},'rsPWp':function(_0x309193,_0xadd410,_0x1b0095,_0x3ad870,_0x30457f,_0x3da2cb,_0x2169ca){return _0x309193(_0xadd410,_0x1b0095,_0x3ad870,_0x30457f,_0x3da2cb,_0x2169ca);},'IoLXH':function(_0x48afb3,_0x2e81db,_0x31f863){return _0x48afb3(_0x2e81db,_0x31f863);},'oBGqj':function(_0x1c1b83,_0x96a664,_0x19339e){return _0x1c1b83(_0x96a664,_0x19339e);},'BwLvq':_0x2dc7a3(0x1b6),'VjTxX':function(_0x4221a4,_0x15d068){return _0x4221a4===_0x15d068;},'MFvyQ':_0x2dc7a3(0x17e),'xEkab':'unauthorised','Tzalr':function(_0x25b9b9,_0x26c9e8,_0x35adf0,_0x3c736d,_0x556cf3,_0x48f2e0,_0xb12c38){return _0x25b9b9(_0x26c9e8,_0x35adf0,_0x3c736d,_0x556cf3,_0x48f2e0,_0xb12c38);},'dBvBP':_0x2dc7a3(0x198),'YOXOG':_0x2dc7a3(0x194)};let _0x3503bd;try{!_0x5d284c[_0x2dc7a3(0x1bd)]&&(logger['error'](_0xc5772c[_0x2dc7a3(0x1ca)]),process[_0x2dc7a3(0x181)](0x1));!fs[_0x2dc7a3(0x1d7)](_0xc5772c[_0x2dc7a3(0x180)](getCredentialsPath))&&(logger['error'](_0xc5772c[_0x2dc7a3(0x1ce)]),await _0xc5772c['aUWCS'](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x1cc)],null,_0x5d284c),process['exit'](0x1));logger[_0x2dc7a3(0x1cf)]('Stopping\x20grid\x20'+_0x5d284c[_0x2dc7a3(0x1bd)]),await _0xc5772c[_0x2dc7a3(0x1c1)](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x18f)],null,null,_0x5d284c);const _0x5a04cb=JSON[_0x2dc7a3(0x1c3)](fs[_0x2dc7a3(0x1d2)](_0xc5772c['eGDyO'](getCredentialsPath)));global_registry[_0x2dc7a3(0x186)]=_0x5a04cb[_0x2dc7a3(0x1d6)][_0x2dc7a3(0x1a1)],global_registry[_0x2dc7a3(0x19a)]=_0x5a04cb['Browserstack']['password'];const _0x2acb89=WS_ENDPOINT[_0x2dc7a3(0x1d1)](_0xc5772c[_0x2dc7a3(0x193)],_0x5a04cb[_0x2dc7a3(0x1d6)][_0x2dc7a3(0x1a1)])[_0x2dc7a3(0x1d1)](_0xc5772c['oDMYQ'],_0x5a04cb[_0x2dc7a3(0x1d6)]['password']),_0xc2c991={};_0xc2c991[_0x2dc7a3(0x1c4)]=ws,_0xc2c991[_0x2dc7a3(0x17a)]=0x36ee80,_0x3503bd=new ReconnectingWebSocket(_0x2acb89,[],_0xc2c991),logger[_0x2dc7a3(0x18d)](_0xc5772c[_0x2dc7a3(0x1a7)]),webSocketUtils[_0x2dc7a3(0x1b5)](_0x3503bd,_0x5d284c[_0x2dc7a3(0x1a8)],_0x5d284c[_0x2dc7a3(0x1a9)]);const [_0x2e7443,_0x2b8a50]=await _0xc5772c[_0x2dc7a3(0x1cb)](getGridDetails,_0x5a04cb['Browserstack'][_0x2dc7a3(0x1a1)],_0x5a04cb['Browserstack']['password'],_0x5d284c[_0x2dc7a3(0x1bd)]);if(_0x2b8a50){const _0x20aff9=_0x2b8a50[_0x2dc7a3(0x1cf)];global_registry[_0x2dc7a3(0x1c6)]=_0x20aff9[_0x2dc7a3(0x1c6)],global_registry[_0x2dc7a3(0x18b)]=_0x20aff9['region'],global_registry[_0x2dc7a3(0x1c7)]=_0x20aff9['clusterName'];const _0xa7e00=await _0xc5772c[_0x2dc7a3(0x1c8)](getCloudProviderObject,_0x20aff9[_0x2dc7a3(0x1c6)],_0x20aff9['clusterName'],_0x20aff9[_0x2dc7a3(0x1c2)],_0x3503bd,webSocketUtils,_0x5d284c),[_0x665c49,_0x18d0eb,_0x2bd43e,_0x145954,_0x3808b6,_0x408ab1]=await _0xc5772c[_0x2dc7a3(0x1a3)](createK8sClient,_0xa7e00,_0x5d284c[_0x2dc7a3(0x1ac)]);await _0xc5772c['oBGqj'](scaleDownHubDeployment,_0x18d0eb,_0x20aff9['name']),logger['info'](_0xc5772c[_0x2dc7a3(0x19d)]),process[_0x2dc7a3(0x181)](0x0);}_0xc5772c[_0x2dc7a3(0x1b9)](_0x2e7443[_0x2dc7a3(0x1b3)],0x191)&&(logger['error'](_0xc5772c[_0x2dc7a3(0x183)]),await _0xc5772c['rsPWp'](sendInstrumentationEvent,_0x5d284c,_0xc5772c['QUiyR'],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x17b)],null,_0x5d284c),process[_0x2dc7a3(0x181)](0x1)),_0xc5772c[_0x2dc7a3(0x1b9)](_0x2e7443['statusCode'],0x190)&&(logger[_0x2dc7a3(0x184)](JSON['parse'](_0x2e7443['body'])['message']),await _0xc5772c[_0x2dc7a3(0x19e)](sendInstrumentationEvent,_0x5d284c,_0xc5772c['QUiyR'],messageTypes['ERROR'],_0xc5772c['dBvBP'],null,_0x5d284c),process[_0x2dc7a3(0x181)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2dc7a3(0x197)](_0x2e7443)),await _0xc5772c[_0x2dc7a3(0x1c1)](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x18e)],_0x2e7443,_0x5d284c),process[_0x2dc7a3(0x181)](0x1);}catch(_0xb79e1a){const _0x21725b=_0x2dc7a3(0x195)+_0xb79e1a+'\x20\x0a'+JSON[_0x2dc7a3(0x197)](_0xb79e1a[_0x2dc7a3(0x1be)])+'\x20';logger[_0x2dc7a3(0x184)](_0x21725b),process[_0x2dc7a3(0x181)](0x1);}};function a21_0x2873(){const _0x2b9fab=['VmQkm','info','string','replace','readFileSync','stop','Stop\x20a\x20running\x20Automation\x20grid.','reconnecting-websocket','Browserstack','existsSync','connectionTimeout','xEkab','gXBgZ','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2264gtGwyL','PfWkD','exit','ERROR','MFvyQ','error','grid-id','bstackUsername','../../cloudproviders/utils','skip-tls-cert-verify','stop-grid-called','2490xucyPb','clusterRegion','argv','debug','YOXOG','INFO','default','epilogue','<UsernamePlaceholder>','aZcIx','server-error','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','2247072kgugRI','stringify','invalid-grid-id','../../config/logger','bstackAccesskey','qonGd','type','BwLvq','Tzalr','../../utils/instrumentationUtils','builder','username','fCRey','IoLXH','1038877ruBdHH','Skip\x20insecure\x20cert\x20verification.','8104313EsbSWW','KHdMI','user','password','desc','help','skipTlsCertVerify','Adding\x20Websocket\x20listeners','command','init-not-called','<PasswordPlaceholder>','grid','TxjTx','statusCode','boolean','addListeners','Grid\x20stoppped.','../../config/constants','../../utils/utilityMethods','VjTxX','uFpEt','12370voQBoF','5755096WwsKsJ','gridId','stack','QUiyR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','aUWCS','name','parse','WebSocket','1221894PpAmXx','cloudProvider','clusterName','rsPWp','108513bAvFAD','ZOrFR','Rskkp','ReyxZ','../../utils/webSocketUtils'];a21_0x2873=function(){return _0x2b9fab;};return a21_0x2873();}
1
+ const a21_0x31d697=a21_0x13fd;function a21_0x13fd(_0xa5b119,_0x14e6c8){const _0x1f528f=a21_0x1f52();return a21_0x13fd=function(_0x13fd55,_0x1257bd){_0x13fd55=_0x13fd55-0x19b;let _0x516fbc=_0x1f528f[_0x13fd55];return _0x516fbc;},a21_0x13fd(_0xa5b119,_0x14e6c8);}(function(_0x36e199,_0x253f2c){const _0x35f65d=a21_0x13fd,_0x1900dc=_0x36e199();while(!![]){try{const _0x454685=-parseInt(_0x35f65d(0x1a1))/0x1*(-parseInt(_0x35f65d(0x1a8))/0x2)+parseInt(_0x35f65d(0x1c7))/0x3+parseInt(_0x35f65d(0x1bc))/0x4+parseInt(_0x35f65d(0x1ca))/0x5+-parseInt(_0x35f65d(0x1d8))/0x6*(-parseInt(_0x35f65d(0x1a6))/0x7)+parseInt(_0x35f65d(0x1ee))/0x8+-parseInt(_0x35f65d(0x1a7))/0x9*(parseInt(_0x35f65d(0x1c0))/0xa);if(_0x454685===_0x253f2c)break;else _0x1900dc['push'](_0x1900dc['shift']());}catch(_0x591901){_0x1900dc['push'](_0x1900dc['shift']());}}}(a21_0x1f52,0x70232));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x31d697(0x1b8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x31d697(0x1b2)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x31d697(0x1b4)),{scaleDownHubDeployment}=require(a21_0x31d697(0x1a5)),{sendInstrumentationEvent}=require(a21_0x31d697(0x19b)),webSocketUtils=require(a21_0x31d697(0x1f3)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x31d697(0x1b1)]=a21_0x31d697(0x1df),exports[a21_0x31d697(0x1c4)]=a21_0x31d697(0x1d5),exports[a21_0x31d697(0x19d)]=function(_0x750f5d){const _0x479a03=a21_0x31d697,_0x168a88={};_0x168a88[_0x479a03(0x1da)]=_0x479a03(0x1e9),_0x168a88[_0x479a03(0x1d0)]=_0x479a03(0x1b9),_0x168a88[_0x479a03(0x1a3)]=_0x479a03(0x1d6),_0x168a88['ORyOn']='boolean',_0x168a88[_0x479a03(0x1ed)]=_0x479a03(0x1d1);const _0x37745e=_0x168a88,_0x44fc01={};_0x44fc01[_0x479a03(0x1be)]=_0x37745e[_0x479a03(0x1da)],_0x44fc01['type']=_0x37745e[_0x479a03(0x1d0)];const _0x1115c4={};_0x1115c4[_0x479a03(0x1be)]=_0x37745e[_0x479a03(0x1a3)],_0x1115c4[_0x479a03(0x1c6)]=_0x37745e[_0x479a03(0x1db)],_0x1115c4[_0x479a03(0x1f0)]=![];const _0x55329b={};return _0x55329b[_0x479a03(0x1c3)]=_0x44fc01,_0x55329b[_0x479a03(0x1c2)]=_0x1115c4,_0x750f5d[_0x479a03(0x1bb)](HELP_HEADER_MESSAGE[_0x479a03(0x1dd)])[_0x479a03(0x1d9)](HELP_FOOTER_MESSAGE)['options'](_0x55329b)['help'](_0x37745e[_0x479a03(0x1ed)])[_0x479a03(0x1c9)];},exports['handler']=async function(_0x572326){const _0x6527a4=a21_0x31d697,_0x40401d={'flJDR':_0x6527a4(0x1cd),'PtNHU':function(_0x378092){return _0x378092();},'dgsbz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','PFEjM':function(_0x24d3b1,_0x2c51b0,_0xf041c8,_0x33f998,_0x29a222,_0xc0b163,_0x55d279){return _0x24d3b1(_0x2c51b0,_0xf041c8,_0x33f998,_0x29a222,_0xc0b163,_0x55d279);},'czPpT':_0x6527a4(0x1ba),'hDruu':'init-not-called','nbFfn':function(_0x13f0ad,_0x2b6a92,_0x1203a,_0x479460,_0x5284e7,_0x52342f,_0x334e43){return _0x13f0ad(_0x2b6a92,_0x1203a,_0x479460,_0x5284e7,_0x52342f,_0x334e43);},'CxiCS':'<UsernamePlaceholder>','MPQGJ':'<PasswordPlaceholder>','nvwuk':_0x6527a4(0x1ab),'GGJdf':function(_0x2ef15d,_0x490db6,_0x5418c3,_0x16e001){return _0x2ef15d(_0x490db6,_0x5418c3,_0x16e001);},'jAEVH':function(_0x38e8a7,_0x4cf52a,_0x1ebd08,_0x16cec2,_0x54cbca,_0x1a0e1b,_0x4c6093){return _0x38e8a7(_0x4cf52a,_0x1ebd08,_0x16cec2,_0x54cbca,_0x1a0e1b,_0x4c6093);},'NJdYu':function(_0x10920f,_0x274221,_0x4de1d3){return _0x10920f(_0x274221,_0x4de1d3);},'CvwYK':function(_0x41f5c3,_0x3d18c5,_0x599c9c){return _0x41f5c3(_0x3d18c5,_0x599c9c);},'DnRke':_0x6527a4(0x1c1),'dDezF':function(_0x6bddc6,_0x1831b8){return _0x6bddc6===_0x1831b8;},'NKOuO':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XiwxD':function(_0x4a3ce3,_0x44ce12,_0x26149a,_0x5909b4,_0x18f733,_0x4efefc,_0x1c1446){return _0x4a3ce3(_0x44ce12,_0x26149a,_0x5909b4,_0x18f733,_0x4efefc,_0x1c1446);},'IyzEe':_0x6527a4(0x1bd),'cYFvj':function(_0x57b4a2,_0xb975a3){return _0x57b4a2===_0xb975a3;},'lEkNv':function(_0x19beff,_0x5b480a,_0x5648a9,_0x4db4aa,_0x294250,_0x4c55fd,_0x1a52cc){return _0x19beff(_0x5b480a,_0x5648a9,_0x4db4aa,_0x294250,_0x4c55fd,_0x1a52cc);},'MQlIF':_0x6527a4(0x1b7),'pJXmo':function(_0x2d0283,_0x2f2482,_0x4bae9e,_0x5eecdd,_0x490d6c,_0x2db42a,_0x475c9d){return _0x2d0283(_0x2f2482,_0x4bae9e,_0x5eecdd,_0x490d6c,_0x2db42a,_0x475c9d);},'ExaIA':'server-error'};let _0x8a56f6;try{!_0x572326[_0x6527a4(0x1e8)]&&(logger[_0x6527a4(0x1c5)](_0x40401d[_0x6527a4(0x1d2)]),process['exit'](0x1));!fs['existsSync'](_0x40401d[_0x6527a4(0x1d4)](getCredentialsPath))&&(logger[_0x6527a4(0x1c5)](_0x40401d['dgsbz']),await _0x40401d[_0x6527a4(0x1a4)](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes['ERROR'],_0x40401d[_0x6527a4(0x1d7)],null,_0x572326),process['exit'](0x1));logger[_0x6527a4(0x1bf)]('Stopping\x20grid\x20'+_0x572326[_0x6527a4(0x1e8)]),await _0x40401d['nbFfn'](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes[_0x6527a4(0x1ce)],null,null,_0x572326);const _0x698446=JSON[_0x6527a4(0x1ac)](fs['readFileSync'](_0x40401d[_0x6527a4(0x1d4)](getCredentialsPath)));global_registry[_0x6527a4(0x1cc)]=_0x698446[_0x6527a4(0x1e4)]['username'],global_registry['bstackAccesskey']=_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1e0)];const _0x2d677c=WS_ENDPOINT['replace'](_0x40401d[_0x6527a4(0x1a2)],_0x698446['Browserstack'][_0x6527a4(0x1a9)])['replace'](_0x40401d[_0x6527a4(0x1a0)],_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1e0)]),_0x5bbe6a={};_0x5bbe6a['WebSocket']=ws,_0x5bbe6a[_0x6527a4(0x1e1)]=0x36ee80,_0x8a56f6=new ReconnectingWebSocket(_0x2d677c,[],_0x5bbe6a),logger[_0x6527a4(0x1de)](_0x40401d[_0x6527a4(0x1e2)]),webSocketUtils[_0x6527a4(0x19f)](_0x8a56f6,_0x572326[_0x6527a4(0x1e6)],_0x572326[_0x6527a4(0x1e0)]);const [_0x5b0782,_0x2832f3]=await _0x40401d['GGJdf'](getGridDetails,_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1a9)],_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1e0)],_0x572326['gridId']);if(_0x2832f3){const _0x188bb0=_0x2832f3['info'];global_registry[_0x6527a4(0x1f2)]=_0x188bb0['cloudProvider'],global_registry[_0x6527a4(0x1aa)]=_0x188bb0[_0x6527a4(0x1af)],global_registry[_0x6527a4(0x1e3)]=_0x188bb0[_0x6527a4(0x1e3)];const _0x11a010=await _0x40401d['jAEVH'](getCloudProviderObject,_0x188bb0[_0x6527a4(0x1f2)],_0x188bb0[_0x6527a4(0x1e3)],_0x188bb0['name'],_0x8a56f6,webSocketUtils,_0x572326),[_0x40e76d,_0xc1daf7,_0x19a623,_0x439f1a,_0x1a096e,_0x5cf4ba]=await _0x40401d[_0x6527a4(0x1ea)](createK8sClient,_0x11a010,_0x572326[_0x6527a4(0x1e7)]);await _0x40401d['CvwYK'](scaleDownHubDeployment,_0xc1daf7,_0x188bb0['name']),logger['info'](_0x40401d[_0x6527a4(0x1b3)]),process[_0x6527a4(0x1b5)](0x0);}_0x40401d[_0x6527a4(0x1ec)](_0x5b0782[_0x6527a4(0x1ad)],0x191)&&(logger[_0x6527a4(0x1c5)](_0x40401d[_0x6527a4(0x1d3)]),await _0x40401d[_0x6527a4(0x1e5)](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes[_0x6527a4(0x1c8)],_0x40401d[_0x6527a4(0x19c)],null,_0x572326),process[_0x6527a4(0x1b5)](0x1)),_0x40401d[_0x6527a4(0x1cb)](_0x5b0782['statusCode'],0x190)&&(logger[_0x6527a4(0x1c5)](JSON[_0x6527a4(0x1ac)](_0x5b0782[_0x6527a4(0x1eb)])[_0x6527a4(0x1dc)]),await _0x40401d[_0x6527a4(0x1cf)](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes[_0x6527a4(0x1c8)],_0x40401d['MQlIF'],null,_0x572326),process['exit'](0x1)),logger[_0x6527a4(0x1c5)](_0x6527a4(0x1ef)+JSON['stringify'](_0x5b0782)),await _0x40401d['pJXmo'](sendInstrumentationEvent,_0x572326,_0x40401d['czPpT'],messageTypes[_0x6527a4(0x1c8)],_0x40401d[_0x6527a4(0x19e)],_0x5b0782,_0x572326),process[_0x6527a4(0x1b5)](0x1);}catch(_0x5d3c0c){const _0x2de645=_0x6527a4(0x1b0)+_0x5d3c0c+'\x20\x0a'+JSON[_0x6527a4(0x1b6)](_0x5d3c0c[_0x6527a4(0x1ae)])+'\x20';logger[_0x6527a4(0x1c5)](_0x2de645),process[_0x6527a4(0x1b5)](0x1);}};function a21_0x1f52(){const _0x30ba9f=['hDruu','2172EJGoTk','epilogue','frggd','ORyOn','message','stop','debug','grid','password','connectionTimeout','nvwuk','clusterName','Browserstack','XiwxD','user','skipTlsCertVerify','gridId','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','NJdYu','body','dDezF','IUYwQ','4336760EAMtuv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','default','czPpT','cloudProvider','../../utils/webSocketUtils','../../utils/instrumentationUtils','IyzEe','builder','ExaIA','addListeners','MPQGJ','664854wftxCr','CxiCS','AMIMG','PFEjM','../../utils/gridComponents','16737ZxqUMo','2668356vxkYBf','2wjhJXy','username','clusterRegion','Adding\x20Websocket\x20listeners','parse','statusCode','stack','region','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','command','../../config/constants','DnRke','../../utils/utilityMethods','exit','stringify','invalid-grid-id','reconnecting-websocket','string','stop-grid-called','usage','1289524KhdiKo','unauthorised','description','info','80zbxbYO','Grid\x20stoppped.','skip-tls-cert-verify','grid-id','desc','error','type','942879apYnmy','ERROR','argv','610105OEOYiH','cYFvj','bstackUsername','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','INFO','lEkNv','TyXwa','help','flJDR','NKOuO','PtNHU','Stop\x20a\x20running\x20Automation\x20grid.','Skip\x20insecure\x20cert\x20verification.'];a21_0x1f52=function(){return _0x30ba9f;};return a21_0x1f52();}
@@ -1 +1 @@
1
- const a22_0x4aeaef=a22_0x357a;(function(_0x991eba,_0x1f5e32){const _0x2a2beb=a22_0x357a,_0x5c5b28=_0x991eba();while(!![]){try{const _0x2575ff=-parseInt(_0x2a2beb(0xdc))/0x1*(-parseInt(_0x2a2beb(0xd4))/0x2)+parseInt(_0x2a2beb(0xb4))/0x3+parseInt(_0x2a2beb(0xb0))/0x4*(parseInt(_0x2a2beb(0x99))/0x5)+parseInt(_0x2a2beb(0xa0))/0x6*(parseInt(_0x2a2beb(0xe6))/0x7)+parseInt(_0x2a2beb(0x9e))/0x8*(parseInt(_0x2a2beb(0xc9))/0x9)+parseInt(_0x2a2beb(0xe8))/0xa*(parseInt(_0x2a2beb(0x94))/0xb)+-parseInt(_0x2a2beb(0xb7))/0xc;if(_0x2575ff===_0x1f5e32)break;else _0x5c5b28['push'](_0x5c5b28['shift']());}catch(_0x1d9682){_0x5c5b28['push'](_0x5c5b28['shift']());}}}(a22_0x38bc,0xe4a1c),require('dotenv')['config']());let gridURL=a22_0x4aeaef(0xa5),bsApiUrl=a22_0x4aeaef(0xaf),agApiUrl='grid-api.browserstack.com';const _env=(process['env'][a22_0x4aeaef(0x95)]||a22_0x4aeaef(0xd6))['toLowerCase']();if(_env==='staging'||_env===a22_0x4aeaef(0xdb))gridURL=a22_0x4aeaef(0xeb),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x4aeaef(0xe7),agApiUrl=a22_0x4aeaef(0xa9));exports[a22_0x4aeaef(0xf7)]=process['env'][a22_0x4aeaef(0xf7)]||gridURL,exports[a22_0x4aeaef(0x96)]=process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0x96)]||bsApiUrl,exports[a22_0x4aeaef(0xc4)]=process[a22_0x4aeaef(0xdd)]['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x4aeaef(0xac)+this[a22_0x4aeaef(0xc4)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x4aeaef(0xcb)]='credentials',exports[a22_0x4aeaef(0xf3)]='BrowserStackIAMUser',exports[a22_0x4aeaef(0x9b)]='high-scale-grid',exports[a22_0x4aeaef(0xda)]=a22_0x4aeaef(0xba),exports[a22_0x4aeaef(0xb6)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x4aeaef(0xdf)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x4aeaef(0xbc)]=a22_0x4aeaef(0xef),exports[a22_0x4aeaef(0xc3)]=a22_0x4aeaef(0xcd),exports[a22_0x4aeaef(0xd0)]=a22_0x4aeaef(0xa1),exports[a22_0x4aeaef(0xed)]=[this['AWS'],this[a22_0x4aeaef(0xc3)],this[a22_0x4aeaef(0xd0)]];const a22_0x4898c0={};a22_0x4898c0[a22_0x4aeaef(0xf6)]=a22_0x4aeaef(0xa3),a22_0x4898c0['Value']=a22_0x4aeaef(0xd8);const a22_0x5415d8={};a22_0x5415d8[a22_0x4aeaef(0xf6)]='browserstack:service',a22_0x5415d8[a22_0x4aeaef(0x97)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x4898c0,a22_0x5415d8];function a22_0x357a(_0x32740c,_0xcf17d){const _0x38bc3c=a22_0x38bc();return a22_0x357a=function(_0x357a2d,_0x5db95d){_0x357a2d=_0x357a2d-0x90;let _0x4ca6c9=_0x38bc3c[_0x357a2d];return _0x4ca6c9;},a22_0x357a(_0x32740c,_0xcf17d);}if(process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0xa2)]){const parsedTags=process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0xa2)][a22_0x4aeaef(0xab)](',');parsedTags[a22_0x4aeaef(0xe4)](_0x4ee387=>{const _0x49e7f5=a22_0x4aeaef,_0x3c27f0=_0x4ee387[_0x49e7f5(0xab)](':'),_0x385c85={};_0x385c85[_0x49e7f5(0xf6)]=_0x3c27f0[0x0],_0x385c85[_0x49e7f5(0x97)]=_0x3c27f0[0x1],common_hst_tags_list['push'](_0x385c85);});}exports[a22_0x4aeaef(0xe5)]=common_hst_tags_list;const a22_0x1efda2={};a22_0x1efda2[a22_0x4aeaef(0xa3)]=a22_0x4aeaef(0xd8),a22_0x1efda2['browserstack:service']='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x1efda2,exports[a22_0x4aeaef(0xd3)]=[this[a22_0x4aeaef(0xda)]];function a22_0x38bc(){const _0x578334=['DEFAULT_CLUSTER_DETAILS','messageTypes','GCP','global_registry','connect','SUPPORTED_CLOUD_PROVIDERS','2nInrwE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','prod','CLI_RUN_STARTED','BrowserStack','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','AWS','stag','182239VvGbhA','env','HELP_FOOTER_MESSAGE','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','gridProfile','LINK_MESSAGE','GRID_URL','forEach','COMMON_HST_TAGS','637hlaktC','api-preprod.bsstag.com','2349290hzMQln','grid','HELP_HEADER_MESSAGE','grid-devhst.bsstag.com','TRIAL_GRID_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','WARNING','browserstack-turboscale-grid','start','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','configure','IAM_USER_NAME','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','Key','DASHBOARD_ENDPOINT','SUCCESS','root','info','pre-check','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','resourceInfo','77LaJxmN','BROWSERSTACK_ENV','BS_API_URL','Value','INFO','10JiOzDd','gridUrl','DEFAULT_GRID_NAME','NULL','UNKNOWN','32Kkalbo','warning','45078zDjGUv','gcp','TURBOSCALE_CUSTOM_TAGS','browserstack:managedBy','cliRunStarted','grid.browserstack.com','WS_EVENTS','CLOUD_PROVIDER','success','grid-api-preprod.bsstag.com','grid-profile','split','wss://','us-east-1','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','api.browserstack.com','2933992lZSrOu','REGION','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','RESOURCES','4939515BCjsAd','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLUSTER_DEP_STACK_NAME','66912936jetpPn','create','pre_check','aws','MessageDescription','TURBOSCALE_DEPLOYMENT','log','list','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','REDACTED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AZURE','AG_API_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_ARGS_REGEX','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','stop','1999413jTcOOE','[REDACTED]','CP_CONFIG_FILE','unknown','azure'];a22_0x38bc=function(){return _0x578334;};return a22_0x38bc();}const a22_0x34e18e={};a22_0x34e18e['LOG']=a22_0x4aeaef(0xbd),a22_0x34e18e[a22_0x4aeaef(0xb3)]=a22_0x4aeaef(0x93),a22_0x34e18e[a22_0x4aeaef(0xe3)]=a22_0x4aeaef(0x9a),a22_0x34e18e[a22_0x4aeaef(0xd7)]=a22_0x4aeaef(0xa4),a22_0x34e18e['CLI_RUN_FINISHED']=a22_0x4aeaef(0xe0),exports[a22_0x4aeaef(0xa6)]=a22_0x34e18e,exports[a22_0x4aeaef(0xd1)]={},exports[a22_0x4aeaef(0xe2)]=a22_0x4aeaef(0xc5);const a22_0x2141a8={};a22_0x2141a8['root']=a22_0x4aeaef(0x92)+this['LINK_MESSAGE'],a22_0x2141a8['init']=a22_0x4aeaef(0xc0)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xf2)]=a22_0x4aeaef(0xb5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xb8)]=a22_0x4aeaef(0xd9)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)]={},a22_0x2141a8['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xd2)]=a22_0x4aeaef(0xf4)+this['LINK_MESSAGE'],a22_0x2141a8[a22_0x4aeaef(0xf0)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xc8)]=a22_0x4aeaef(0xae)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xb9)]=a22_0x4aeaef(0xf5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xf9)]=a22_0x4aeaef(0xf1)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xe9)]=a22_0x4aeaef(0xd5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xe1)]=a22_0x4aeaef(0xc2)+this['LINK_MESSAGE'],exports[a22_0x4aeaef(0xea)]=a22_0x2141a8,exports[a22_0x4aeaef(0xde)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x2821a7={};a22_0x2821a7[a22_0x4aeaef(0xf8)]=a22_0x4aeaef(0xa8),a22_0x2821a7['ERROR']='error',a22_0x2821a7[a22_0x4aeaef(0x98)]=a22_0x4aeaef(0x90),a22_0x2821a7[a22_0x4aeaef(0xee)]=a22_0x4aeaef(0x9f),a22_0x2821a7[a22_0x4aeaef(0x9d)]=a22_0x4aeaef(0xcc),a22_0x2821a7[a22_0x4aeaef(0x9c)]=null,exports[a22_0x4aeaef(0xcf)]=a22_0x2821a7,exports[a22_0x4aeaef(0xc6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4aeaef(0xbf)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4aeaef(0xc1)]=a22_0x4aeaef(0xca);const a22_0x34bde9={};a22_0x34bde9[a22_0x4aeaef(0xaa)]=a22_0x4aeaef(0xb2);const a22_0x5b32d3={};a22_0x5b32d3[a22_0x4aeaef(0x91)]=a22_0x34bde9,exports[a22_0x4aeaef(0xbb)]=a22_0x5b32d3,exports[a22_0x4aeaef(0xec)]=a22_0x4aeaef(0xc7);const a22_0x156ce4={};a22_0x156ce4['CLUSTER']='high-scale-grid-cluster',a22_0x156ce4[a22_0x4aeaef(0xa7)]=a22_0x4aeaef(0xba),a22_0x156ce4[a22_0x4aeaef(0xb1)]=a22_0x4aeaef(0xad),exports[a22_0x4aeaef(0xce)]=a22_0x156ce4;
1
+ const a22_0x200f91=a22_0x5ee3;(function(_0x4045a2,_0x373a63){const _0x4451f4=a22_0x5ee3,_0x3f85c9=_0x4045a2();while(!![]){try{const _0x190370=-parseInt(_0x4451f4(0xac))/0x1*(-parseInt(_0x4451f4(0xea))/0x2)+-parseInt(_0x4451f4(0xf8))/0x3*(parseInt(_0x4451f4(0xbf))/0x4)+parseInt(_0x4451f4(0xf5))/0x5+-parseInt(_0x4451f4(0xb0))/0x6+parseInt(_0x4451f4(0xab))/0x7+parseInt(_0x4451f4(0xfc))/0x8*(-parseInt(_0x4451f4(0xc7))/0x9)+parseInt(_0x4451f4(0xf4))/0xa*(parseInt(_0x4451f4(0xef))/0xb);if(_0x190370===_0x373a63)break;else _0x3f85c9['push'](_0x3f85c9['shift']());}catch(_0x4a445b){_0x3f85c9['push'](_0x3f85c9['shift']());}}}(a22_0x1dd0,0x18d22),require('dotenv')[a22_0x200f91(0xaf)]());let gridURL=a22_0x200f91(0xe7),bsApiUrl=a22_0x200f91(0xdf),agApiUrl=a22_0x200f91(0xdc);const _env=(process[a22_0x200f91(0xa7)][a22_0x200f91(0x10c)]||'prod')['toLowerCase']();if(_env===a22_0x200f91(0x102)||_env===a22_0x200f91(0xd1))gridURL=a22_0x200f91(0xa6),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x200f91(0xf9)||_env===a22_0x200f91(0xec))&&(gridURL=a22_0x200f91(0xfe),bsApiUrl=a22_0x200f91(0xc4),agApiUrl=a22_0x200f91(0xb8));exports[a22_0x200f91(0xc0)]=process[a22_0x200f91(0xa7)][a22_0x200f91(0xc0)]||gridURL,exports[a22_0x200f91(0xd4)]=process['env']['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x200f91(0xa7)][a22_0x200f91(0xd0)]||agApiUrl,exports[a22_0x200f91(0xee)]=a22_0x200f91(0xd8)+this[a22_0x200f91(0xd0)]+a22_0x200f91(0xa0),exports[a22_0x200f91(0xe0)]=a22_0x200f91(0xb4),exports[a22_0x200f91(0x9e)]=a22_0x200f91(0xeb),exports[a22_0x200f91(0xc5)]='high-scale-grid',exports[a22_0x200f91(0xe4)]=a22_0x200f91(0x10b),exports[a22_0x200f91(0xfd)]=a22_0x200f91(0x103),exports[a22_0x200f91(0xcb)]=a22_0x200f91(0x106),exports[a22_0x200f91(0xa3)]=a22_0x200f91(0xe5),exports[a22_0x200f91(0xbc)]='browserstack-turboscale-grid',exports[a22_0x200f91(0xcd)]=a22_0x200f91(0xfb),exports['GCP']=a22_0x200f91(0xa1),exports[a22_0x200f91(0xd3)]=[this[a22_0x200f91(0xe4)],this[a22_0x200f91(0xcd)],this[a22_0x200f91(0xba)]];const a22_0x39c999={};a22_0x39c999[a22_0x200f91(0xad)]=a22_0x200f91(0xd7),a22_0x39c999[a22_0x200f91(0xf2)]=a22_0x200f91(0xdd);const a22_0x139b91={};a22_0x139b91[a22_0x200f91(0xad)]=a22_0x200f91(0xd6),a22_0x139b91[a22_0x200f91(0xf2)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x39c999,a22_0x139b91];if(process['env'][a22_0x200f91(0xe8)]){const parsedTags=process[a22_0x200f91(0xa7)][a22_0x200f91(0xe8)][a22_0x200f91(0xa5)](',');parsedTags[a22_0x200f91(0xcf)](_0xb0eb61=>{const _0xc3d989=a22_0x200f91,_0x51451d=_0xb0eb61[_0xc3d989(0xa5)](':'),_0x1f7901={};_0x1f7901[_0xc3d989(0xad)]=_0x51451d[0x0],_0x1f7901['Value']=_0x51451d[0x1],common_hst_tags_list['push'](_0x1f7901);});}exports[a22_0x200f91(0x104)]=common_hst_tags_list;function a22_0x1dd0(){const _0x31f40c=['\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','CLI_RUN_FINISHED','aws','BROWSERSTACK_ENV','IAM_USER_NAME','configure','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','list','CLUSTER_HUB_HA_STACK_NAME','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','split','grid-devhst.bsstag.com','env','SUCCESS','DEFAULT_CLUSTER_DETAILS','high-scale-grid-cluster','996338CuJkOM','1qNwJcd','Key','gridUrl','config','889092cXantO','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','root','init','credentials','RAW_ARGS_REGEX','HST_CLUSTER_TAGS','pre_check','grid-api-preprod.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','GCP','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','TURBOSCALE_DEPLOYMENT','GRID_URL','success','28xCmwVH','DASHBOARD_ENDPOINT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','cliRunFinished','BrowserStack-Automate-TurboScale','api-preprod.bsstag.com','DEFAULT_GRID_NAME','SUPPORTED_CLOUD_PROVIDERS','1713654qaWjHR','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','LINK_MESSAGE','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLUSTER_AUTOSCALER_STACK_NAME','CLUSTER','AZURE','REDACTED','forEach','AG_API_URL','stag','gridProfile','ALL_SUPPORTED_CLOUD_PROVIDERS','BS_API_URL','LOG','browserstack:service','browserstack:managedBy','wss://','cliRunStarted','warning','INFO','grid-api.browserstack.com','BrowserStack','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','api.browserstack.com','CP_CONFIG_FILE','info','us-east-1','HELP_FOOTER_MESSAGE','AWS','BSTACK-ATS-CLUSTER-HUB-HA','CLI_ARGS_REGEX','grid.browserstack.com','TURBOSCALE_CUSTOM_TAGS','create','66962aQCLzj','BrowserStackIAMUser','pre-prod','WARNING','WS_ENDPOINT','4697rftLXv','grid','HELP_HEADER_MESSAGE','Value','RESOURCES','4990MbtXMB','348845DIBjfk','TRIAL_GRID_URL','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','7887BekIaT','preprod','delete','azure','8BcefME','CLUSTER_DEP_STACK_NAME','grid-preprod.bsstag.com','pre-check','grid-profile','CLI_RUN_STARTED','staging','BSTACK-ATS-CLUSTER','COMMON_HST_TAGS','ERROR','BSTACK-ATS-CLUSTER-AUTOSCALER','resourceInfo','NULL'];a22_0x1dd0=function(){return _0x31f40c;};return a22_0x1dd0();}const a22_0x3a899a={};a22_0x3a899a[a22_0x200f91(0xd7)]=a22_0x200f91(0xdd),a22_0x3a899a[a22_0x200f91(0xd6)]=a22_0x200f91(0xc3),exports[a22_0x200f91(0xb6)]=a22_0x3a899a,exports[a22_0x200f91(0xc6)]=[this[a22_0x200f91(0xe4)]];const a22_0x53e779={};a22_0x53e779[a22_0x200f91(0xd5)]='log',a22_0x53e779[a22_0x200f91(0xf3)]=a22_0x200f91(0x107),a22_0x53e779[a22_0x200f91(0xbd)]=a22_0x200f91(0xae),a22_0x53e779[a22_0x200f91(0x101)]=a22_0x200f91(0xd9),a22_0x53e779[a22_0x200f91(0x10a)]=a22_0x200f91(0xc2),exports['WS_EVENTS']=a22_0x53e779,exports['global_registry']={},exports[a22_0x200f91(0xc9)]=a22_0x200f91(0xbb);const a22_0x11d428={};a22_0x11d428[a22_0x200f91(0xb2)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xb3)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0x9f)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xe9)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xa2)]={},a22_0x11d428[a22_0x200f91(0xfa)]=a22_0x200f91(0x109)+this[a22_0x200f91(0xc9)],a22_0x11d428['connect']=a22_0x200f91(0xca)+this['LINK_MESSAGE'],a22_0x11d428['start']=a22_0x200f91(0xb1)+this['LINK_MESSAGE'],a22_0x11d428['stop']=a22_0x200f91(0xb9)+this['LINK_MESSAGE'],a22_0x11d428[a22_0x200f91(0xb7)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x11d428[a22_0x200f91(0xa2)][a22_0x200f91(0xb2)]=a22_0x200f91(0xde)+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xa2)][a22_0x200f91(0xf0)]=a22_0x200f91(0xc8)+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xa2)][a22_0x200f91(0xd2)]=a22_0x200f91(0xc1)+this[a22_0x200f91(0xc9)],exports[a22_0x200f91(0xf1)]=a22_0x11d428,exports[a22_0x200f91(0xe3)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4da59e={};a22_0x4da59e[a22_0x200f91(0xa8)]=a22_0x200f91(0xbe),a22_0x4da59e[a22_0x200f91(0x105)]='error',a22_0x4da59e[a22_0x200f91(0xdb)]=a22_0x200f91(0xe1),a22_0x4da59e[a22_0x200f91(0xed)]=a22_0x200f91(0xda),a22_0x4da59e['UNKNOWN']='unknown',a22_0x4da59e[a22_0x200f91(0x108)]=null,exports['messageTypes']=a22_0x4da59e,exports[a22_0x200f91(0xe6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x200f91(0xb5)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x200f91(0xce)]='[REDACTED]';const a22_0x2f99ab={};a22_0x2f99ab[a22_0x200f91(0x100)]=a22_0x200f91(0xf7);const a22_0x407be1={};function a22_0x5ee3(_0x4db57f,_0x4956c7){const _0x1dd05e=a22_0x1dd0();return a22_0x5ee3=function(_0x5ee39b,_0xc72785){_0x5ee39b=_0x5ee39b-0x9e;let _0x350528=_0x1dd05e[_0x5ee39b];return _0x350528;},a22_0x5ee3(_0x4db57f,_0x4956c7);}a22_0x407be1[a22_0x200f91(0xff)]=a22_0x2f99ab,exports['MessageDescription']=a22_0x407be1,exports[a22_0x200f91(0xf6)]=a22_0x200f91(0xa4);const a22_0x466838={};a22_0x466838[a22_0x200f91(0xcc)]=a22_0x200f91(0xaa),a22_0x466838['CLOUD_PROVIDER']='aws',a22_0x466838['REGION']=a22_0x200f91(0xe2),exports[a22_0x200f91(0xa9)]=a22_0x466838;
@@ -1 +1 @@
1
- function a23_0x2825(){const _0x2c0187=['path','8247411FVRUuj','2046610MCikgI','4194KAKYmo','level','\x20-\x20','log','Console','winston','colorize','combine','createLogger','logger','18613rcxhGP','YYYY-MM-DD\x20HH:mm:ss','name','4808526oKzszC','2745JzFXZJ','980133sUEfpW','2472SjfkON','debug','transports','2365824SpRYKr','events.log','printf','join','4cAxUxe','timestamp','usage.log','message','format','File'];a23_0x2825=function(){return _0x2c0187;};return a23_0x2825();}const a23_0x3b225d=a23_0x24a4;(function(_0x1447d2,_0x465bc4){const _0x15e364=a23_0x24a4,_0xcb8a76=_0x1447d2();while(!![]){try{const _0x49aa19=parseInt(_0x15e364(0xdd))/0x1+-parseInt(_0x15e364(0xe1))/0x2+parseInt(_0x15e364(0xdb))/0x3*(parseInt(_0x15e364(0xe5))/0x4)+parseInt(_0x15e364(0xdc))/0x5*(-parseInt(_0x15e364(0xee))/0x6)+-parseInt(_0x15e364(0xd8))/0x7*(parseInt(_0x15e364(0xde))/0x8)+parseInt(_0x15e364(0xec))/0x9+-parseInt(_0x15e364(0xed))/0xa;if(_0x49aa19===_0x465bc4)break;else _0xcb8a76['push'](_0xcb8a76['shift']());}catch(_0x13a343){_0xcb8a76['push'](_0xcb8a76['shift']());}}}(a23_0x2825,0xdd49f));const winston=require(a23_0x3b225d(0xd3)),fs=require('fs'),path=require(a23_0x3b225d(0xeb)),logDir=a23_0x3b225d(0xd1);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x1b294f={};a23_0x1b294f[a23_0x3b225d(0xe9)]=a23_0x3b225d(0xd9);const a23_0x3cd93c={};a23_0x3cd93c['level']=!![];function a23_0x24a4(_0x56e7dd,_0xacdb9c){const _0x2825a6=a23_0x2825();return a23_0x24a4=function(_0x24a416,_0xa0690b){_0x24a416=_0x24a416-0xcf;let _0x1f4aab=_0x2825a6[_0x24a416];return _0x1f4aab;},a23_0x24a4(_0x56e7dd,_0xacdb9c);}const a23_0x2db9ea={};a23_0x2db9ea[a23_0x3b225d(0xda)]='console.info',exports[a23_0x3b225d(0xd7)]=new winston[(a23_0x3b225d(0xd6))]({'format':winston['format'][a23_0x3b225d(0xd5)](winston[a23_0x3b225d(0xe9)][a23_0x3b225d(0xe6)](a23_0x1b294f),winston[a23_0x3b225d(0xe9)][a23_0x3b225d(0xd4)](a23_0x3cd93c),winston['format'][a23_0x3b225d(0xe3)](_0x833e90=>_0x833e90[a23_0x3b225d(0xe6)]+a23_0x3b225d(0xd0)+_0x833e90[a23_0x3b225d(0xcf)]+':\x20'+_0x833e90[a23_0x3b225d(0xe8)])),'transports':[new winston[(a23_0x3b225d(0xe0))][(a23_0x3b225d(0xd2))](a23_0x2db9ea),new winston[(a23_0x3b225d(0xe0))]['File']({'filename':path[a23_0x3b225d(0xe4)](logDir,a23_0x3b225d(0xe2)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3b225d(0xe0))][(a23_0x3b225d(0xea))]({'filename':path[a23_0x3b225d(0xe4)](logDir,a23_0x3b225d(0xe7)),'level':a23_0x3b225d(0xdf)})]};exports['fileLogger']=new winston[(a23_0x3b225d(0xd6))](winstonFileLoggerParams);
1
+ const a23_0x2e46c9=a23_0x301a;function a23_0x301a(_0xe67eb1,_0x1442fd){const _0x1396dc=a23_0x1396();return a23_0x301a=function(_0x301a2f,_0x235af7){_0x301a2f=_0x301a2f-0x94;let _0xdbbfe3=_0x1396dc[_0x301a2f];return _0xdbbfe3;},a23_0x301a(_0xe67eb1,_0x1442fd);}(function(_0x524246,_0x21e396){const _0x38ff4d=a23_0x301a,_0x19b802=_0x524246();while(!![]){try{const _0x1b6805=parseInt(_0x38ff4d(0xaa))/0x1+-parseInt(_0x38ff4d(0xa0))/0x2+-parseInt(_0x38ff4d(0xa1))/0x3*(-parseInt(_0x38ff4d(0x9b))/0x4)+parseInt(_0x38ff4d(0xad))/0x5+parseInt(_0x38ff4d(0xb1))/0x6+-parseInt(_0x38ff4d(0x9e))/0x7+-parseInt(_0x38ff4d(0x9c))/0x8;if(_0x1b6805===_0x21e396)break;else _0x19b802['push'](_0x19b802['shift']());}catch(_0x227ba3){_0x19b802['push'](_0x19b802['shift']());}}}(a23_0x1396,0xce307));const winston=require(a23_0x2e46c9(0xa8)),fs=require('fs'),path=require(a23_0x2e46c9(0x94)),logDir=a23_0x2e46c9(0xa6);!fs[a23_0x2e46c9(0x95)](logDir)&&fs[a23_0x2e46c9(0xae)](logDir);const a23_0x3282b7={};a23_0x3282b7[a23_0x2e46c9(0xb0)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0xbdb9fe={};a23_0xbdb9fe[a23_0x2e46c9(0xa4)]=!![];const a23_0x569949={};a23_0x569949[a23_0x2e46c9(0x9a)]=a23_0x2e46c9(0x9d),exports[a23_0x2e46c9(0xa9)]=new winston[(a23_0x2e46c9(0xa2))]({'format':winston[a23_0x2e46c9(0xb0)][a23_0x2e46c9(0x97)](winston[a23_0x2e46c9(0xb0)][a23_0x2e46c9(0xa7)](a23_0x3282b7),winston['format'][a23_0x2e46c9(0x98)](a23_0xbdb9fe),winston[a23_0x2e46c9(0xb0)]['printf'](_0x54cf78=>_0x54cf78[a23_0x2e46c9(0xa7)]+a23_0x2e46c9(0x99)+_0x54cf78[a23_0x2e46c9(0xa4)]+':\x20'+_0x54cf78[a23_0x2e46c9(0x9f)])),'transports':[new winston[(a23_0x2e46c9(0xa3))]['Console'](a23_0x569949),new winston[(a23_0x2e46c9(0xa3))][(a23_0x2e46c9(0x96))]({'filename':path[a23_0x2e46c9(0xaf)](logDir,a23_0x2e46c9(0xac)),'level':a23_0x2e46c9(0xa5)})]});function a23_0x1396(){const _0x35b719=['winston','logger','1623611RdSWVj','usage.log','events.log','4048045yMCHtU','mkdirSync','join','format','9152646FNuUIS','path','existsSync','File','combine','colorize','\x20-\x20','name','1256472zTflxz','15421168bduoCP','console.info','5696271kaEZJh','message','1373658rxVnbs','3qaTHtV','createLogger','transports','level','debug','log','timestamp'];a23_0x1396=function(){return _0x35b719;};return a23_0x1396();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x2e46c9(0xa3))][(a23_0x2e46c9(0x96))]({'filename':path[a23_0x2e46c9(0xaf)](logDir,a23_0x2e46c9(0xab)),'level':a23_0x2e46c9(0xa5)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x3b9ac6=a24_0x204d;function a24_0x204d(_0xb33e91,_0x202089){const _0x5c22f6=a24_0x5c22();return a24_0x204d=function(_0x204d8d,_0x33cfc4){_0x204d8d=_0x204d8d-0x1dc;let _0x49663f=_0x5c22f6[_0x204d8d];return _0x49663f;},a24_0x204d(_0xb33e91,_0x202089);}function a24_0x5c22(){const _0x206846=['2063944lVmKKL','2630136bfIqyy','exports','commandDir','ycWUf','3472308dbjPEl','ueHFs','31642164jdJXhX','1072JnTyiX','env','help','./config/constants','9515002YlRoas','demandCommand','root','24nslEHy','epilogue','2042SMHvtC','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1945970rQeoiN'];a24_0x5c22=function(){return _0x206846;};return a24_0x5c22();}(function(_0x552341,_0x3e8e00){const _0x47f800=a24_0x204d,_0x2d6c48=_0x552341();while(!![]){try{const _0x5623da=-parseInt(_0x47f800(0x1e0))/0x1*(-parseInt(_0x47f800(0x1eb))/0x2)+-parseInt(_0x47f800(0x1e8))/0x3+parseInt(_0x47f800(0x1e4))/0x4+-parseInt(_0x47f800(0x1e2))/0x5*(parseInt(_0x47f800(0x1de))/0x6)+-parseInt(_0x47f800(0x1ef))/0x7+-parseInt(_0x47f800(0x1e3))/0x8+parseInt(_0x47f800(0x1ea))/0x9;if(_0x5623da===_0x3e8e00)break;else _0x2d6c48['push'](_0x2d6c48['shift']());}catch(_0x3bb09a){_0x2d6c48['push'](_0x2d6c48['shift']());}}}(a24_0x5c22,0xe499f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3b9ac6(0x1ee));process[a24_0x3b9ac6(0x1ec)][a24_0x3b9ac6(0x1e1)]=0x1;function run(_0x35a46b){const _0x58f415=a24_0x3b9ac6,_0x53c57c={};_0x53c57c[_0x58f415(0x1e7)]='commands',_0x53c57c[_0x58f415(0x1e9)]='help';const _0xac3caf=_0x53c57c;_0x35a46b['usage'](HELP_HEADER_MESSAGE[_0x58f415(0x1dd)])[_0x58f415(0x1e6)](_0xac3caf[_0x58f415(0x1e7)])[_0x58f415(0x1dc)]()[_0x58f415(0x1ed)](_0xac3caf[_0x58f415(0x1e9)])[_0x58f415(0x1df)](HELP_FOOTER_MESSAGE);}module[a24_0x3b9ac6(0x1e5)]=run;
2
+ 'use strict';function a24_0x26df(_0x17b7af,_0x197eae){const _0x11fe07=a24_0x11fe();return a24_0x26df=function(_0x26dfa0,_0x4e0ac1){_0x26dfa0=_0x26dfa0-0xf8;let _0x15984b=_0x11fe07[_0x26dfa0];return _0x15984b;},a24_0x26df(_0x17b7af,_0x197eae);}const a24_0x507e29=a24_0x26df;function a24_0x11fe(){const _0x1a74e9=['2786rfLxJQ','139472RnQgZb','epilogue','895LnrNHi','pEnxF','10ueLKsV','86306srNguC','3338244iUvjMB','410PPifnB','5017248PSsTzG','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','env','demandCommand','DFPOz','root','usage','2386959ryygPc','commands','8934MOhcBu','exports','310YzvStT'];a24_0x11fe=function(){return _0x1a74e9;};return a24_0x11fe();}(function(_0x3b426f,_0x155de7){const _0x27837a=a24_0x26df,_0x29f0f7=_0x3b426f();while(!![]){try{const _0x1e90b7=parseInt(_0x27837a(0xfa))/0x1*(-parseInt(_0x27837a(0x10c))/0x2)+-parseInt(_0x27837a(0x108))/0x3+parseInt(_0x27837a(0xf8))/0x4*(parseInt(_0x27837a(0xfc))/0x5)+parseInt(_0x27837a(0x10a))/0x6*(parseInt(_0x27837a(0x10d))/0x7)+parseInt(_0x27837a(0x100))/0x8+parseInt(_0x27837a(0xfe))/0x9+parseInt(_0x27837a(0xff))/0xa*(-parseInt(_0x27837a(0xfd))/0xb);if(_0x1e90b7===_0x155de7)break;else _0x29f0f7['push'](_0x29f0f7['shift']());}catch(_0x2a2218){_0x29f0f7['push'](_0x29f0f7['shift']());}}}(a24_0x11fe,0x62b8e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x507e29(0x101));process[a24_0x507e29(0x103)][a24_0x507e29(0x102)]=0x1;function run(_0x153d1f){const _0xb4be40=a24_0x507e29,_0x1192a8={};_0x1192a8[_0xb4be40(0x105)]=_0xb4be40(0x109),_0x1192a8[_0xb4be40(0xfb)]='help';const _0x29b3e6=_0x1192a8;_0x153d1f[_0xb4be40(0x107)](HELP_HEADER_MESSAGE[_0xb4be40(0x106)])['commandDir'](_0x29b3e6['DFPOz'])[_0xb4be40(0x104)]()['help'](_0x29b3e6['pEnxF'])[_0xb4be40(0xf9)](HELP_FOOTER_MESSAGE);}module[a24_0x507e29(0x10b)]=run;