browserstack-node-sdk 1.42.5 → 1.42.7

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_0x3544(){const _0x486e73=['PRxxV','ncgQM','statusCode','allGrids','INFO','dpJri','okuki','oGEWy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','8PPakPa','SjJiB','NmsgM','log','51310WfsLpp','IlITY','bstackAccesskey','grid-id','Failed\x20to\x20list\x20resources!\x20Error:\x20','stack','push','boolean','error','17143698GkxXyK','body','FumCX','67znuhql','clusterName','/packages/cli/get-all-grids','EGeLU','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','username','list-grids-called','argv','uuid','ikAbV','usage','builder','369GyaZJA','3814144wDLKsj','description','unauthorised','https://','15326rAxLIi','table','Odjii','ERROR','bstackUsername','xgflU','grid','oZXVL','Browserstack','grids','Vzirw','../../utils/utilityMethods','type','exit','11851WCMFSf','eoHnx','status','all-grids','CledB','hmtvN','eqKSf','running','1219175XQCdzP','unknown-error','epilogue','options','requestId','readFileSync','1328766xUWLay','password','../../config/constants','queued','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OYUXm','cracd','OElbK','parse','VkNLE','help','GET','1068izlHOu'];a15_0x3544=function(){return _0x486e73;};return a15_0x3544();}function a15_0x2ac6(_0x394067,_0x47e858){const _0x3544fb=a15_0x3544();return a15_0x2ac6=function(_0x2ac6bf,_0x405ea9){_0x2ac6bf=_0x2ac6bf-0x9b;let _0x1a91f6=_0x3544fb[_0x2ac6bf];return _0x1a91f6;},a15_0x2ac6(_0x394067,_0x47e858);}const a15_0x56bc50=a15_0x2ac6;(function(_0x117ce8,_0x1664da){const _0x4a15e2=a15_0x2ac6,_0x45a82b=_0x117ce8();while(!![]){try{const _0x274d7a=-parseInt(_0x4a15e2(0xe3))/0x1*(-parseInt(_0x4a15e2(0xa1))/0x2)+parseInt(_0x4a15e2(0xbd))/0x3+parseInt(_0x4a15e2(0xd3))/0x4*(parseInt(_0x4a15e2(0xb7))/0x5)+parseInt(_0x4a15e2(0xc9))/0x6*(-parseInt(_0x4a15e2(0xaf))/0x7)+parseInt(_0x4a15e2(0x9d))/0x8+parseInt(_0x4a15e2(0x9c))/0x9*(parseInt(_0x4a15e2(0xd7))/0xa)+-parseInt(_0x4a15e2(0xe0))/0xb;if(_0x274d7a===_0x1664da)break;else _0x45a82b['push'](_0x45a82b['shift']());}catch(_0x12a14d){_0x45a82b['push'](_0x45a82b['shift']());}}}(a15_0x3544,0x423b0));const fs=require('fs'),got=require('got'),{table}=require(a15_0x56bc50(0xa2)),{v4:uuidv4}=require(a15_0x56bc50(0xeb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x56bc50(0xbf)),{getCredentialsPath,getAuthHeader}=require(a15_0x56bc50(0xac)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a15_0x56bc50(0xaa),exports['desc']=a15_0x56bc50(0xd2),exports[a15_0x56bc50(0x9b)]=function(_0xceb49a){const _0x3329a1=a15_0x56bc50,_0x494882={};_0x494882['HWZDw']=_0x3329a1(0xe7),_0x494882[_0x3329a1(0xb0)]=_0x3329a1(0xde),_0x494882[_0x3329a1(0xd1)]=_0x3329a1(0xc7);const _0x561d8e=_0x494882,_0x4e3dc3={};_0x4e3dc3[_0x3329a1(0x9e)]=_0x561d8e['HWZDw'],_0x4e3dc3[_0x3329a1(0xad)]=_0x561d8e['eoHnx'];const _0x437b3a={};return _0x437b3a[_0x3329a1(0xb2)]=_0x4e3dc3,_0xceb49a[_0x3329a1(0xed)](HELP_HEADER_MESSAGE['list'][_0x3329a1(0xa7)])[_0x3329a1(0xb9)](HELP_FOOTER_MESSAGE)[_0x3329a1(0xba)](_0x437b3a)[_0x3329a1(0xc7)](_0x561d8e['oGEWy'])[_0x3329a1(0xea)];},exports['handler']=async function(_0x52cc47){const _0x596417=a15_0x56bc50,_0x131f35={'NmsgM':function(_0x506272){return _0x506272();},'OYUXm':_0x596417(0xc1),'EGeLU':function(_0x144a99,_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432){return _0x144a99(_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432);},'Odjii':_0x596417(0xe9),'cracd':'init-not-called','hmtvN':function(_0x2db5b6){return _0x2db5b6();},'SjJiB':_0x596417(0xc8),'okuki':function(_0x4228ed,_0x599466,_0x2eaf4e){return _0x4228ed(_0x599466,_0x2eaf4e);},'CledB':function(_0x4dbb69,_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80){return _0x4dbb69(_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80);},'Vzirw':function(_0x27f73f,_0x50fed8,_0x35e341){return _0x27f73f(_0x50fed8,_0x35e341);},'GOoQQ':function(_0x1462cf,_0xa9111c){return _0x1462cf!==_0xa9111c;},'OElbK':function(_0x561a97,_0x15bb30){return _0x561a97!==_0x15bb30;},'VkNLE':function(_0x433ea2,_0x5d3335){return _0x433ea2===_0x5d3335;},'PRxxV':'\x0aFound\x20the\x20following\x20grids:\x0a','sDjNb':_0x596417(0xda),'ikAbV':'grid-name','dpJri':'status','wdqvW':_0x596417(0xb6),'ncgQM':'queued','oZXVL':'cluster-name','IZGFk':function(_0x3ab47c,_0x520cb0){return _0x3ab47c(_0x520cb0);},'xgflU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FumCX':function(_0x1bceb7,_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a){return _0x1bceb7(_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a);},'eqKSf':_0x596417(0x9f),'ikabD':'server-error','IlITY':_0x596417(0xb8)};try{global_registry[_0x596417(0xbb)]=_0x131f35[_0x596417(0xd5)](uuidv4);!fs['existsSync'](_0x131f35['NmsgM'](getCredentialsPath))&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xc2)]),await _0x131f35['EGeLU'](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xc3)],null,_0x52cc47),process['exit'](0x1));const _0x4c272e=JSON[_0x596417(0xc5)](fs[_0x596417(0xbc)](_0x131f35[_0x596417(0xb4)](getCredentialsPath)));let _0x4e2468=_0x596417(0xa0)+AG_API_URL+'/packages/cli/get-grids';_0x52cc47[_0x596417(0xcd)]&&(_0x4e2468=_0x596417(0xa0)+AG_API_URL+_0x596417(0xe5));const _0x18c468={'method':_0x131f35[_0x596417(0xd4)],'headers':_0x131f35[_0x596417(0xd0)](getAuthHeader,_0x4c272e[_0x596417(0xa9)][_0x596417(0xe8)],_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)]),'throwHttpErrors':![]};global_registry[_0x596417(0xa5)]=_0x4c272e[_0x596417(0xa9)]['username'],global_registry[_0x596417(0xd9)]=_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)],_0x131f35['CledB'](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xce)],null,null,_0x52cc47);const _0x1ebffb=await _0x131f35[_0x596417(0xab)](got,_0x4e2468,_0x18c468);if(_0x131f35['GOoQQ'](_0x1ebffb,null)&&_0x131f35[_0x596417(0xc4)](_0x1ebffb,undefined)&&_0x131f35[_0x596417(0xc6)](_0x1ebffb[_0x596417(0xcc)],0xc8)){const _0x156876=JSON[_0x596417(0xc5)](_0x1ebffb[_0x596417(0xe1)]);console[_0x596417(0xd6)](_0x131f35[_0x596417(0xca)]);const _0x4e36ac=[];_0x4e36ac['push']([_0x131f35['sDjNb'],_0x131f35[_0x596417(0xec)],_0x131f35[_0x596417(0xcf)],_0x131f35['wdqvW'],_0x131f35[_0x596417(0xcb)],_0x131f35[_0x596417(0xa8)]]),_0x156876['forEach'](_0x576ad5=>{const _0x13467f=_0x596417;_0x4e36ac[_0x13467f(0xdd)]([_0x576ad5['id'],_0x576ad5['name'],_0x576ad5[_0x13467f(0xb1)],_0x576ad5[_0x13467f(0xb6)],_0x576ad5[_0x13467f(0xc0)],_0x576ad5[_0x13467f(0xe4)]]);}),console[_0x596417(0xd6)](_0x131f35['IZGFk'](table,_0x4e36ac)),process[_0x596417(0xae)](0x0);}_0x131f35['VkNLE'](_0x1ebffb[_0x596417(0xcc)],0x191)&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xa6)]),await _0x131f35[_0x596417(0xe2)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xb5)],null,_0x52cc47),process[_0x596417(0xae)](0x1)),console[_0x596417(0xdf)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1ebffb)),await _0x131f35[_0x596417(0xe6)](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xa4)],_0x131f35['ikabD'],_0x1ebffb,_0x52cc47),process[_0x596417(0xae)](0x1);}catch(_0x5b52dd){console[_0x596417(0xdf)](_0x596417(0xdb)+_0x5b52dd[_0x596417(0xdc)]),await _0x131f35[_0x596417(0xb3)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xd8)],_0x5b52dd,_0x52cc47),process[_0x596417(0xae)](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_0x4c1995=a16_0x20be;(function(_0x1542ea,_0x4a5076){const _0x7c2d1b=a16_0x20be,_0x4bba5b=_0x1542ea();while(!![]){try{const _0x2ec6ea=parseInt(_0x7c2d1b(0x84))/0x1+-parseInt(_0x7c2d1b(0x7c))/0x2+-parseInt(_0x7c2d1b(0x92))/0x3+-parseInt(_0x7c2d1b(0x81))/0x4*(-parseInt(_0x7c2d1b(0x89))/0x5)+parseInt(_0x7c2d1b(0x8f))/0x6*(parseInt(_0x7c2d1b(0x86))/0x7)+parseInt(_0x7c2d1b(0x7e))/0x8+parseInt(_0x7c2d1b(0x80))/0x9;if(_0x2ec6ea===_0x4a5076)break;else _0x4bba5b['push'](_0x4bba5b['shift']());}catch(_0xf3081f){_0x4bba5b['push'](_0x4bba5b['shift']());}}}(a16_0x3415,0x44778));function a16_0x20be(_0x33d84e,_0x464fde){const _0x3415c0=a16_0x3415();return a16_0x20be=function(_0x20be47,_0x1f34bc){_0x20be47=_0x20be47-0x7c;let _0x2943fb=_0x3415c0[_0x20be47];return _0x2943fb;},a16_0x20be(_0x33d84e,_0x464fde);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x3415(){const _0x23ea43=['demandCommand','epilogue','commandDir','handler','pre-check','1362okjFHQ','FsSRW','ybDtL','1204986jASvgY','strict','recommendCommands','1083650zPxNju','command','2373032HGaUOb','precheck_commands','1112103bURNJj','4hBTobQ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','402843OXpsnm','usage','5194utxDKJ','builder','pre_check','1162270HogOVh'];a16_0x3415=function(){return _0x23ea43;};return a16_0x3415();}exports[a16_0x4c1995(0x7d)]=a16_0x4c1995(0x8e),exports['desc']=a16_0x4c1995(0x82),exports[a16_0x4c1995(0x87)]=function(_0x594e34){const _0x5db112=a16_0x4c1995,_0x23f521={};_0x23f521[_0x5db112(0x91)]=_0x5db112(0x7f),_0x23f521[_0x5db112(0x90)]=_0x5db112(0x83);const _0x4110a9=_0x23f521;return _0x594e34[_0x5db112(0x85)](HELP_HEADER_MESSAGE[_0x5db112(0x88)])[_0x5db112(0x8b)](HELP_FOOTER_MESSAGE)[_0x5db112(0x8c)](_0x4110a9[_0x5db112(0x91)])[_0x5db112(0x8a)]()[_0x5db112(0x94)]()[_0x5db112(0x93)]()[_0x5db112(0x83)](_0x4110a9[_0x5db112(0x90)]);},exports[a16_0x4c1995(0x8d)]=function(_0x1c3d2b){};
@@ -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_0x3b23b4=a17_0x4f2e;(function(_0x5cc7a4,_0x4d1503){const _0x1c72ba=a17_0x4f2e,_0x1413d4=_0x5cc7a4();while(!![]){try{const _0x2dd175=parseInt(_0x1c72ba(0x237))/0x1+-parseInt(_0x1c72ba(0x207))/0x2+-parseInt(_0x1c72ba(0x2aa))/0x3*(parseInt(_0x1c72ba(0x1cc))/0x4)+parseInt(_0x1c72ba(0x1dc))/0x5*(parseInt(_0x1c72ba(0x247))/0x6)+parseInt(_0x1c72ba(0x1ce))/0x7*(-parseInt(_0x1c72ba(0x1f6))/0x8)+-parseInt(_0x1c72ba(0x26b))/0x9*(-parseInt(_0x1c72ba(0x20a))/0xa)+parseInt(_0x1c72ba(0x22a))/0xb;if(_0x2dd175===_0x4d1503)break;else _0x1413d4['push'](_0x1413d4['shift']());}catch(_0x1998ed){_0x1413d4['push'](_0x1413d4['shift']());}}}(a17_0x5a37,0x246c0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3b23b4(0x2ac)),{v4:uuidv4}=require(a17_0x3b23b4(0x262)),ReconnectingWebSocket=require(a17_0x3b23b4(0x212)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3b23b4(0x1c8)),{logger}=require(a17_0x3b23b4(0x1b5)),{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_0x3b23b4(0x1f9)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x3b23b4(0x238)),{sendInstrumentationEvent}=require(a17_0x3b23b4(0x1b2));function a17_0x5a37(){const _0x245faf=['Yqqhy','UqqBU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FaxkM','N/A','YypAh','cedbw','/packages/cli/get-all-grid-profiles','\x20region\x20-\x20','DoUSf','PCcLr','MEsdo','1644bAIKLU','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IDULv','message','dozFS','OXSEe','WebSocket','===\x20Precheck\x20Report\x20-\x20','oEaLW','npHta','FGyrY','readFileSync','ELoVu','raQGU','ZLLlc','Whitelisted\x20browserstack','<UsernamePlaceholder>','User\x20Access','ditbQ','Missing\x20required\x20arguments:\x20','Failure','iEEBC','jquqf','grid','forEach','ETTjo','lzMNE','uuid','status','getUTCMinutes','help','epilogue','`\x20,error\x20:\x20','aRFsr','wjBhA','ROsGz','31446YCfULg','stringify','odXMq','pSTXw','LOG','stack\x20trace\x20','cloudProvider','authHeader','zxJfJ','description','VWQWe','grid\x20profile\x20flow\x20','FHwTG','buZya','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','oPDNK','KorlP','\x20\x20Message:\x20','JSKhF','tOUyW','join','accessResp','MxsFN','VMpwJ','gkGEn','wmEws','dNYDs','exit','WXcIA','push','DrKNg','.txt','tztQl','AQeMt','getUTCHours','code','Browserstack','getUTCFullYear','command','nrbaf','AHkQn','qLHZz','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',']\x20status\x20:\x20','BCKEZ','connectionTimeout','UdEih','xCQor','header','qxzZP','XeNKN','hBxlo','IcSKc','\x20data\x20:\x20','WOZLs','bstackUsername','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','options','Message:\x20','oXTBX','bTUao','Opfrh','headers','6iUDoXH','jovYx','got','SQGlS','\x20===\x0a\x0a','CXjMw','debug','gylTh','pSWLG','KYytK','tDAzA','includes','../../utils/instrumentationUtils','clusterRegion','Report\x20saved\x20in\x20','../../config/logger','response','`\x20already\x20exists','body','bstackAccesskey','ivzdH','grid-profile','IaeYC','credential-not-found','unable\x20to\x20verify\x20if\x20cluster\x20`','usage','jVxfZ','init','GET','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','length','ERROR','ZQsHV','../../utils/utilityMethods','YFaLs','IowOS','msZEz','506392wYFztf','vlnPk','1112237KnwjKb','TLSv1_2_client_method','delay','cloud-provider','QDBdu','\x20\x20Stack:\x20','LXdpJ','Invalid\x20input.\x20grid\x20profiles:\x20','Status:\x20','gLFKd','cluster-name','ukNaj','bQscv','pre-check-failed','2050QoFmGm','is\x20already\x20present','string','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','tpmel','toLowerCase','oJxjX','pre_check','type','ozNBA','cloud-provider-not-supported','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Success','gridProfile','eEvNb','rQpnj','replace','split','mlsza','hGDDq','FCRPN','IdJYj','JrMDz','wJQrl','handler','error\x20stack\x20:\x20','8tQATkI','thycr','isCliToolInstalled','../../config/constants','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20\x20Code:\x20','ySQOW','Grid\x20profile\x20fetched\x20for\x20pre-check','dXwky','getUTCDate','ZIvxH','getUTCMonth','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WIjPj','SSL\x20Configured','iJqen','468652VeahEY','password','JMynb','340DjCJDF','utf-8','VEVXT','Cluster\x20`','parse','region','XTfSt','yXzPS','reconnecting-websocket','KwqWM','stack','Error\x20Details:\x0a','ZWWER','BaNOs','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','2|4|3|1|0','method','Cluster\x20','CLOUD_PROVIDER','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tLkPP','clusterName','name','YqVNl','vARYS','twzBv','toolInstalledResp','vYPSk','data','checkAccess','Failed\x20in\x20pre-check!\x20Error:\x20','sendEventToBackend','4142281ofVPOd','pre-check','isvIy','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','isClusterPresent','nylzK','rTxav','fymVV','error','LivPY','info','YeOSd','will\x20be\x20created','187890ZGoRrV','../../utils/webSocketUtils','log/report_','isTls1_2_SUPPORTED'];a17_0x5a37=function(){return _0x245faf;};return a17_0x5a37();}exports[a17_0x3b23b4(0x291)]=a17_0x3b23b4(0x25e),exports[a17_0x3b23b4(0x1fa)]=a17_0x3b23b4(0x279),exports['builder']=function(_0x46bfbb){const _0x31be11=a17_0x3b23b4,_0x942fc={};_0x942fc['dozFS']=_0x31be11(0x23d),_0x942fc['wJQrl']=_0x31be11(0x1de),_0x942fc[_0x31be11(0x26d)]=_0x31be11(0x2a3),_0x942fc[_0x31be11(0x28c)]=_0x31be11(0x248),_0x942fc[_0x31be11(0x2af)]=_0x31be11(0x203),_0x942fc[_0x31be11(0x246)]=_0x31be11(0x265);const _0x282ea2=_0x942fc,_0x1d3849={};_0x1d3849[_0x31be11(0x274)]=_0x282ea2[_0x31be11(0x24b)],_0x1d3849[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x5b6bb9={};_0x5b6bb9['description']=_0x282ea2[_0x31be11(0x26d)],_0x5b6bb9[_0x31be11(0x1e4)]=_0x282ea2['wJQrl'];const _0x3e0f4a={};_0x3e0f4a[_0x31be11(0x274)]=_0x282ea2['AQeMt'],_0x3e0f4a[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x1091f7={};_0x1091f7[_0x31be11(0x274)]=_0x282ea2['CXjMw'],_0x1091f7['type']=_0x282ea2[_0x31be11(0x1f3)];const _0x36eb4f={};return _0x36eb4f[_0x31be11(0x1d8)]=_0x1d3849,_0x36eb4f[_0x31be11(0x1d1)]=_0x5b6bb9,_0x36eb4f[_0x31be11(0x20f)]=_0x3e0f4a,_0x36eb4f[_0x31be11(0x1bb)]=_0x1091f7,_0x46bfbb[_0x31be11(0x1bf)](HELP_HEADER_MESSAGE[_0x31be11(0x1e3)])[_0x31be11(0x266)](HELP_FOOTER_MESSAGE)[_0x31be11(0x2a4)](_0x36eb4f)[_0x31be11(0x265)](_0x282ea2[_0x31be11(0x246)])['argv'];};async function inputValidation(_0x5c791e,_0x5aebcf){const _0x1556ce=a17_0x3b23b4,_0x4c8df1={'ROsGz':_0x1556ce(0x232),'Ugqrz':_0x1556ce(0x23d),'zxJfJ':'string','oPDNK':_0x1556ce(0x2a3),'UqqBU':_0x1556ce(0x248),'DoUSf':_0x1556ce(0x203),'NBDCq':_0x1556ce(0x265),'IaeYC':_0x1556ce(0x1d8),'VMpwJ':_0x1556ce(0x295),'YqVNl':function(_0x2a0e8d,_0x4b21b6){return _0x2a0e8d+_0x4b21b6;},'twzBv':_0x1556ce(0x1e8),'aQKVB':_0x1556ce(0x25b),'msZEz':function(_0x465296,_0x2ce77d){return _0x465296||_0x2ce77d;},'bQscv':'N/A','IcSKc':_0x1556ce(0x215),'itnRN':_0x1556ce(0x1dd),'dNYDs':_0x1556ce(0x236),'jquqf':_0x1556ce(0x1d1),'aRFsr':function(_0x34ee35,_0x58126e){return _0x34ee35!==_0x58126e;},'JikjW':_0x1556ce(0x1f7),'UvXQb':_0x1556ce(0x209),'dXwky':function(_0x56479b,_0x52a6c8){return _0x56479b===_0x52a6c8;},'vARYS':'Uemab','KYytK':function(_0x389fbb,_0x24e735){return _0x389fbb!==_0x24e735;},'tpmel':_0x1556ce(0x261),'wjBhA':_0x1556ce(0x22f),'wmEws':_0x1556ce(0x29c),'YeOSd':_0x1556ce(0x297),'ksGVY':_0x1556ce(0x23b),'riDmp':_0x1556ce(0x253),'ZWWER':_0x1556ce(0x20f),'ukNaj':function(_0x5b4955,_0x208f12){return _0x5b4955>_0x208f12;},'ditbQ':_0x1556ce(0x275),'WXcIA':_0x1556ce(0x245),'WOZLs':function(_0x12f49e,_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020){return _0x12f49e(_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020);},'FHwTG':'pre-check-grid-called','FCRPN':'pre-check-cluster-args-not-passed','xzGOJ':function(_0x5ed734,_0x6a2f2f){return _0x5ed734!==_0x6a2f2f;},'KorlP':_0x1556ce(0x2b4),'ZIvxH':_0x1556ce(0x22d),'pNDLo':_0x1556ce(0x1e6),'ivzdH':function(_0x573bbd,_0x168946){return _0x573bbd!==_0x168946;},'UdEih':'nfXXy','eEvNb':function(_0x17308f,_0x2eeae0){return _0x17308f===_0x2eeae0;},'lkKYF':_0x1556ce(0x23e),'iEEBC':_0x1556ce(0x24f),'oXTBX':_0x1556ce(0x1c2),'AHkQn':function(_0x37f311,_0x27ecfc,_0x3c7ebe){return _0x37f311(_0x27ecfc,_0x3c7ebe);},'OXSEe':function(_0x9ff1f1,_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb){return _0x9ff1f1(_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb);},'jovYx':_0x1556ce(0x22b),'KpYLp':_0x1556ce(0x1bb),'elfmu':_0x1556ce(0x254),'ZQWJc':function(_0x949141,_0x5bb083){return _0x949141(_0x5bb083);},'hGDDq':function(_0x4fd96e,_0xa45690){return _0x4fd96e!==_0xa45690;},'vYPSk':_0x1556ce(0x231),'JSKhF':'pre-check-grid-profile-empty','WIjPj':'Jvajr','ZLLlc':'QVnGK','qLHZz':_0x1556ce(0x28b),'bTUao':_0x1556ce(0x1fe),'KwqWM':_0x1556ce(0x1eb),'YFaLs':_0x1556ce(0x21e),'ETTjo':function(_0x777856,_0x2ba190){return _0x777856===_0x2ba190;},'isvIy':_0x1556ce(0x210)};let _0x11e858;try{if(_0x4c8df1[_0x1556ce(0x268)](_0x4c8df1['JikjW'],_0x4c8df1['UvXQb'])){if(_0x5c791e['clusterName']||_0x5c791e[_0x1556ce(0x271)]||_0x5c791e[_0x1556ce(0x20f)]){if(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1[_0x1556ce(0x222)],_0x4c8df1[_0x1556ce(0x222)])){const _0xaa35b8=[];!_0x5c791e[_0x1556ce(0x21f)]&&(_0x4c8df1['KYytK'](_0x4c8df1[_0x1556ce(0x1e0)],_0x4c8df1[_0x1556ce(0x269)])?_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):_0x4d64f3['info'](_0x1556ce(0x20d)+_0x573a20[_0x1556ce(0x21f)]+_0x1556ce(0x1b7)));;if(!_0x5c791e['cloudProvider']){if(_0x4c8df1['dXwky'](_0x4c8df1[_0x1556ce(0x284)],_0x4c8df1[_0x1556ce(0x235)])){const _0x18ca36={};_0x18ca36[_0x1556ce(0x1e4)]=_0x51cf20[_0x1556ce(0x26f)],_0x18ca36[_0x1556ce(0x24a)]=_0x3bc148,_0x25f7a9[_0x1556ce(0x229)](_0x414166,_0x18ca36,_0x4c8df1[_0x1556ce(0x26a)],!![]);}else _0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x25d)]);};!_0x5c791e[_0x1556ce(0x20f)]&&(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1['ksGVY'],_0x4c8df1['riDmp'])?(_0x2aff6e[_0x1556ce(0x234)](_0x1556ce(0x1c3)+_0x343376['CLOUD_PROVIDER']+'\x20'),_0x507fe5['cloudProvider']=_0x582c2b[_0x1556ce(0x21c)]):_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x216)]));;if(_0x4c8df1[_0x1556ce(0x1d9)](_0xaa35b8[_0x1556ce(0x1c5)],0x0)){if(_0x4c8df1[_0x1556ce(0x2b3)](_0x4c8df1[_0x1556ce(0x259)],_0x4c8df1[_0x1556ce(0x287)]))_0x11e858=_0x1556ce(0x25a)+_0xaa35b8[_0x1556ce(0x27f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x1f0)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1);else{const _0x8b7acb={};_0x8b7acb[_0x1556ce(0x274)]=_0x4c8df1['Ugqrz'],_0x8b7acb[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x5d21f5={};_0x5d21f5[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x27a)],_0x5d21f5[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x3517ed={};_0x3517ed[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x23c)],_0x3517ed[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0x19c15d={};_0x19c15d[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x244)],_0x19c15d[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0xf5b738={};return _0xf5b738[_0x1556ce(0x1d8)]=_0x8b7acb,_0xf5b738[_0x1556ce(0x1d1)]=_0x5d21f5,_0xf5b738[_0x1556ce(0x20f)]=_0x3517ed,_0xf5b738[_0x1556ce(0x1bb)]=_0x19c15d,_0x3c246e[_0x1556ce(0x1bf)](_0x11e770['pre_check'])[_0x1556ce(0x266)](_0x1163df)[_0x1556ce(0x2a4)](_0xf5b738)['help'](_0x4c8df1['NBDCq'])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1556ce(0x1b1)](_0x5c791e[_0x1556ce(0x271)][_0x1556ce(0x1e1)]())&&(_0x4c8df1['xzGOJ'](_0x4c8df1[_0x1556ce(0x27b)],_0x4c8df1[_0x1556ce(0x27b)])?_0x202fb5[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):(_0x11e858=_0x4c8df1[_0x1556ce(0x201)],await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),!_0x5c791e[_0x1556ce(0x271)]&&(_0x4c8df1['ivzdH'](_0x4c8df1[_0x1556ce(0x299)],_0x4c8df1[_0x1556ce(0x299)])?_0x1472e9[_0x1556ce(0x232)](_0x1556ce(0x1f5)+_0x45e7bd[_0x1556ce(0x232)]['stack']):(logger[_0x1556ce(0x234)](_0x1556ce(0x1c3)+DEFAULT_CLUSTER_DETAILS[_0x1556ce(0x21c)]+'\x20'),_0x5c791e[_0x1556ce(0x271)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x1556ce(0x21f)]=_0x5c791e['clusterName'],global_registry[_0x1556ce(0x271)]=_0x5c791e[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x5c791e['region'];}else _0x1ebae2['info']('['+_0x9eba50+']\x20status\x20:\x20'+_0x2e1b62[_0x1556ce(0x263)]+_0x1556ce(0x2a0)+_0x89e54d[_0x1556ce(0x226)]+'\x20error\x20:\x20'+_0x5adc42['error']),_0x54ce21[_0x1556ce(0x232)]&&_0x1858c9[_0x1556ce(0x232)]('error\x20stack\x20:\x20'+_0x57294d[_0x1556ce(0x232)][_0x1556ce(0x214)]);}else{if(_0x5c791e['gridProfile']){if(_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1['lkKYF'],_0x4c8df1[_0x1556ce(0x25c)]))_0x4b7aab[_0x1556ce(0x232)](_0x4c8df1[_0x1556ce(0x282)]),_0x3502a5[_0x1556ce(0x286)](0x1);else{global_registry[_0x1556ce(0x1e9)]=_0x5c791e[_0x1556ce(0x1e9)],logger[_0x1556ce(0x2b0)](_0x1556ce(0x276)+_0x5c791e[_0x1556ce(0x1e9)]);const _0x2112d7='https://'+AG_API_URL+_0x1556ce(0x242),_0x35ea78={};_0x35ea78[_0x1556ce(0x21a)]=_0x4c8df1[_0x1556ce(0x2a6)],_0x35ea78[_0x1556ce(0x2a9)]=global_registry['authHeader'],_0x35ea78['throwHttpErrors']=![];const _0x1f6b0e=_0x35ea78,_0x2d1def=await _0x4c8df1[_0x1556ce(0x293)](got,_0x2112d7,_0x1f6b0e),_0x61d6cf=await _0x4c8df1[_0x1556ce(0x24c)](responseValidation,_0x2d1def,_0x4c8df1[_0x1556ce(0x2ab)],_0x4c8df1['KpYLp'],_0x5c791e,_0x5aebcf);let _0x46b3ea={};if(_0x4c8df1[_0x1556ce(0x1ea)](_0x61d6cf,0xc8)){if(_0x4c8df1[_0x1556ce(0x1ba)](_0x4c8df1['elfmu'],_0x4c8df1['elfmu'])){const {header:_0x40111c,response:_0x5087db}=_0x1b5130,{status:_0x357d5f,data:_0x53a1ed,error:_0x2e407c}=_0x5087db;_0xf00a70+=_0x40111c+'\x20#'+_0x4c8df1[_0x1556ce(0x221)](_0x737f63,0x1)+'\x0a',_0x38c65d+=_0x1556ce(0x1d6)+(_0x357d5f?_0x4c8df1[_0x1556ce(0x223)]:_0x4c8df1['aQKVB'])+'\x0a',_0x52eeb5+=_0x1556ce(0x2a5)+_0x4c8df1[_0x1556ce(0x1cb)](_0x53a1ed,_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x2e407c&&(_0x426533+=_0x4c8df1[_0x1556ce(0x29f)],_0x18e08b+=_0x1556ce(0x27c)+(_0x2e407c[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0xfe6d6d+=_0x1556ce(0x1fc)+(_0x2e407c[_0x1556ce(0x28e)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x10a204+=_0x1556ce(0x1d3)+(_0x2e407c['stack']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a'),_0xfe2560+='\x0a\x0a';}else{const _0x46bfc8=JSON[_0x1556ce(0x20e)](_0x2d1def[_0x1556ce(0x1b8)]),_0x5d3e61=_0x46bfc8['find'](_0x59bb50=>_0x59bb50[_0x1556ce(0x220)]===_0x5c791e[_0x1556ce(0x1e9)])||null;_0x4c8df1['ZQWJc'](isUndefined,_0x5d3e61)?_0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1['vYPSk'],_0x4c8df1[_0x1556ce(0x225)])?_0x361e43+=_0x1556ce(0x21b)+_0x52d505[_0x1556ce(0x21f)]+'\x20'+(_0x5796b9?_0x4c8df1['itnRN']:_0x4c8df1[_0x1556ce(0x285)])+'\x0a\x0a':(_0x11e858=_0x1556ce(0x1d5)+_0x5c791e[_0x1556ce(0x1e9)]+_0x1556ce(0x1e7),await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x27d)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1)):_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1[_0x1556ce(0x204)],_0x4c8df1[_0x1556ce(0x255)])?_0x29dfdb+=_0x1556ce(0x21b)+_0x2262c2[_0x1556ce(0x21f)]+_0x1556ce(0x1df):_0x46b3ea=_0x5d3e61;}}else _0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1[_0x1556ce(0x294)],_0x4c8df1[_0x1556ce(0x294)])?(_0x26f256+=_0x4c8df1[_0x1556ce(0x29f)],_0x2fb7d7+=_0x1556ce(0x27c)+(_0x42786b[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x5b6d52+=_0x1556ce(0x1fc)+(_0x24e16b['code']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x17f2d8+=_0x1556ce(0x1d3)+(_0x5378cd[_0x1556ce(0x214)]||_0x4c8df1['bQscv'])+'\x0a'):process[_0x1556ce(0x286)](0x1);const _0x1da674={};_0x1da674[_0x1556ce(0x1e4)]=WS_EVENTS[_0x1556ce(0x26f)],_0x1da674[_0x1556ce(0x24a)]=_0x4c8df1[_0x1556ce(0x2a7)],webSocketUtils[_0x1556ce(0x229)](_0x5aebcf,_0x1da674),global_registry[_0x1556ce(0x271)]=_0x46b3ea[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x46b3ea[_0x1556ce(0x20f)],global_registry[_0x1556ce(0x21f)]=_0x46b3ea[_0x1556ce(0x21f)];}}else _0x4c8df1['hGDDq'](_0x4c8df1[_0x1556ce(0x213)],_0x4c8df1[_0x1556ce(0x1c9)])?(logger[_0x1556ce(0x232)](_0x4c8df1['VMpwJ']),process['exit'](0x1)):_0x10ad27=_0x1c4d6b;}}else _0x4b3146[_0x1556ce(0x286)](0x1);}catch(_0x3f4633){_0x4c8df1[_0x1556ce(0x260)](_0x4c8df1[_0x1556ce(0x22c)],_0x4c8df1[_0x1556ce(0x22c)])?(_0x11e858=_0x1556ce(0x218)+_0x3f4633+':\x20'+_0x3f4633[_0x1556ce(0x214)],logger[_0x1556ce(0x232)](_0x11e858),await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),process[_0x1556ce(0x286)](0x1)):_0x354fe0[_0x1556ce(0x288)](_0x4c8df1['jquqf']);}}function printResponse(_0x5db037,_0x3cd99f){const _0xa51358=a17_0x3b23b4,_0x5bcf14={};_0x5bcf14[_0xa51358(0x1e2)]=_0xa51358(0x20f),_0x5bcf14[_0xa51358(0x1c7)]=function(_0x32d8e3,_0x5f1334){return _0x32d8e3===_0x5f1334;},_0x5bcf14[_0xa51358(0x27e)]='tRiuG',_0x5bcf14[_0xa51358(0x1e5)]=_0xa51358(0x26e);const _0x32ca75=_0x5bcf14;logger[_0xa51358(0x234)]('['+_0x5db037+_0xa51358(0x296)+_0x3cd99f[_0xa51358(0x263)]+_0xa51358(0x2a0)+_0x3cd99f[_0xa51358(0x226)]+_0xa51358(0x1c4)+_0x3cd99f['error']),_0x3cd99f[_0xa51358(0x232)]&&(_0x32ca75['ZQsHV'](_0x32ca75[_0xa51358(0x27e)],_0x32ca75['ozNBA'])?_0x34d312['push'](_0x32ca75[_0xa51358(0x1e2)]):logger[_0xa51358(0x232)]('error\x20stack\x20:\x20'+_0x3cd99f[_0xa51358(0x232)][_0xa51358(0x214)]));}function a17_0x4f2e(_0x240957,_0x26979c){const _0x5a37a9=a17_0x5a37();return a17_0x4f2e=function(_0x4f2e09,_0x4cb122){_0x4f2e09=_0x4f2e09-0x1b1;let _0x357962=_0x5a37a9[_0x4f2e09];return _0x357962;},a17_0x4f2e(_0x240957,_0x26979c);}async function generateReport(_0x4ed127,_0x17c68d){const _0x2b7e67=a17_0x3b23b4,_0x28aa2a={'PfLYK':function(_0x41c4bf,_0x2ed62e){return _0x41c4bf+_0x2ed62e;},'iydNY':'Success','mlsza':_0x2b7e67(0x25b),'buZya':function(_0x167aae,_0x45c867){return _0x167aae||_0x45c867;},'YypAh':_0x2b7e67(0x23f),'gylTh':_0x2b7e67(0x215),'iJqen':'Cluster\x20details\x0a-----------------------\x0a','FGyrY':function(_0x412d87,_0x46f33e){return _0x412d87!=_0x46f33e;},'IDULv':_0x2b7e67(0x1dd),'yXzPS':_0x2b7e67(0x236),'pygnY':function(_0x5a74e4){return _0x5a74e4();}};let _0x1ce5a3=_0x2b7e67(0x24e)+global_registry['cloudProvider']+_0x2b7e67(0x2ae);return _0x4ed127[_0x2b7e67(0x25f)]((_0x1401e7,_0xa7ed1)=>{const _0x5a4093=_0x2b7e67,{header:_0x33903d,response:_0xe0fb3c}=_0x1401e7,{status:_0x3c8449,data:_0x1b8642,error:_0x2dfe89}=_0xe0fb3c;_0x1ce5a3+=_0x33903d+'\x20#'+_0x28aa2a['PfLYK'](_0xa7ed1,0x1)+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d6)+(_0x3c8449?_0x28aa2a['iydNY']:_0x28aa2a[_0x5a4093(0x1ee)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x2a5)+_0x28aa2a[_0x5a4093(0x278)](_0x1b8642,_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x2dfe89&&(_0x1ce5a3+=_0x28aa2a[_0x5a4093(0x2b1)],_0x1ce5a3+=_0x5a4093(0x27c)+(_0x2dfe89[_0x5a4093(0x24a)]||_0x28aa2a['YypAh'])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1fc)+(_0x2dfe89[_0x5a4093(0x28e)]||_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d3)+(_0x2dfe89[_0x5a4093(0x214)]||_0x28aa2a['YypAh'])+'\x0a'),_0x1ce5a3+='\x0a\x0a';}),_0x1ce5a3+=_0x28aa2a[_0x2b7e67(0x206)],_0x28aa2a[_0x2b7e67(0x251)](_0x17c68d,null)?_0x1ce5a3+='Cluster\x20'+global_registry[_0x2b7e67(0x21f)]+'\x20'+(_0x17c68d?_0x28aa2a[_0x2b7e67(0x249)]:_0x28aa2a[_0x2b7e67(0x211)])+'\x0a\x0a':_0x1ce5a3+=_0x2b7e67(0x21b)+global_registry[_0x2b7e67(0x21f)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x1ce5a3+=_0x28aa2a['pygnY'](getSystemMetaData),_0x1ce5a3;};exports[a17_0x3b23b4(0x1f4)]=async function(_0x50bbec){const _0x38e0d8=a17_0x3b23b4,_0x405bcc={'LXdpJ':function(_0x3e8de4){return _0x3e8de4();},'pzDof':function(_0x2c999c){return _0x2c999c();},'VEVXT':_0x38e0d8(0x1fb),'nrbaf':function(_0x16c0ce,_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270){return _0x16c0ce(_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270);},'gLFKd':'pre-check-grid-called','jVxfZ':_0x38e0d8(0x1bd),'rTxav':_0x38e0d8(0x232),'npHta':function(_0x5024d9,_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85){return _0x5024d9(_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85);},'gkGEn':_0x38e0d8(0x257),'ySQOW':'<PasswordPlaceholder>','MxsFN':function(_0x3ec305,_0xdc097f,_0x19401c){return _0x3ec305(_0xdc097f,_0x19401c);},'vESCO':function(_0x18845a,_0x2d904b,_0x3ea541){return _0x18845a(_0x2d904b,_0x3ea541);},'hBxlo':function(_0x4e40c2,_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b){return _0x4e40c2(_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b);},'cedbw':'dummy-grid','wwSvv':function(_0x3586c5,_0x4cebdf,_0x20661b){return _0x3586c5(_0x4cebdf,_0x20661b);},'BaNOs':_0x38e0d8(0x224),'LivPY':_0x38e0d8(0x219),'xCQor':function(_0x20c007,_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818){return _0x20c007(_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818);},'Opfrh':_0x38e0d8(0x280),'pSWLG':function(_0x557d00){return _0x557d00();},'SQGlS':function(_0x314b21,_0xdd5775,_0x14b665){return _0x314b21(_0xdd5775,_0x14b665);},'ikvdt':'isTrialGridAccessible','ETySx':function(_0x2ce930,_0x4a2bce){return _0x2ce930(_0x4a2bce);},'QDBdu':_0x38e0d8(0x1cf),'IowOS':function(_0x3a0f28,_0x455a10,_0x5f31cd){return _0x3a0f28(_0x455a10,_0x5f31cd);},'zMUOb':_0x38e0d8(0x23a),'JrMDz':'Tool\x20Installed','DrKNg':_0x38e0d8(0x258),'yLXBm':_0x38e0d8(0x256),'vlnPk':_0x38e0d8(0x205),'XeNKN':function(_0x3eb2ea,_0x244372,_0x3287df){return _0x3eb2ea(_0x244372,_0x3287df);},'AefdU':function(_0x171867,_0x485ab4){return _0x171867+_0x485ab4;},'MgAGI':_0x38e0d8(0x20b),'IdJYj':function(_0x2f905f,_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12){return _0x2f905f(_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12);},'gXJaK':_0x38e0d8(0x1db)};let _0x118434,_0x396019;try{global_registry['requestId']=_0x405bcc[_0x38e0d8(0x1d4)](uuidv4);!fs['existsSync'](_0x405bcc['pzDof'](getCredentialsPath))&&(_0x396019=_0x405bcc[_0x38e0d8(0x20c)],logger[_0x38e0d8(0x232)](_0x396019),await _0x405bcc[_0x38e0d8(0x292)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],_0x405bcc[_0x38e0d8(0x1c0)],_0x405bcc['rTxav']),process[_0x38e0d8(0x286)](0x1));_0x405bcc[_0x38e0d8(0x250)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes['INFO'],null,null,_0x50bbec);const _0x104fa6=JSON[_0x38e0d8(0x20e)](fs[_0x38e0d8(0x252)](_0x405bcc['LXdpJ'](getCredentialsPath)));global_registry[_0x38e0d8(0x2a2)]=_0x104fa6['Browserstack']['username'],global_registry['bstackAccesskey']=_0x104fa6[_0x38e0d8(0x28f)]['password'];const _0x560874=WS_ENDPOINT['replace'](_0x405bcc[_0x38e0d8(0x283)],_0x104fa6[_0x38e0d8(0x28f)]['username'])[_0x38e0d8(0x1ec)](_0x405bcc[_0x38e0d8(0x1fd)],_0x104fa6[_0x38e0d8(0x28f)][_0x38e0d8(0x208)]),_0x4cafc9={};_0x4cafc9[_0x38e0d8(0x24d)]=ws,_0x4cafc9[_0x38e0d8(0x298)]=0x36ee80,_0x118434=new ReconnectingWebSocket(_0x560874,[],_0x4cafc9),global_registry[_0x38e0d8(0x272)]=_0x405bcc[_0x38e0d8(0x281)](getAuthHeader,global_registry[_0x38e0d8(0x2a2)],global_registry[_0x38e0d8(0x1b9)]),await _0x405bcc['vESCO'](inputValidation,_0x50bbec,_0x118434),logger[_0x38e0d8(0x234)](_0x38e0d8(0x21d)+global_registry[_0x38e0d8(0x271)]+_0x38e0d8(0x243)+global_registry[_0x38e0d8(0x1b3)]);let _0x583331=await _0x405bcc[_0x38e0d8(0x29e)](getCloudProviderObjectWithOutInit,global_registry[_0x38e0d8(0x271)],global_registry[_0x38e0d8(0x21f)],_0x405bcc[_0x38e0d8(0x241)],_0x118434,webSocketUtils,_0x50bbec);const _0x3b5349=await _0x583331[_0x38e0d8(0x1f8)]();_0x405bcc['wwSvv'](printResponse,_0x405bcc[_0x38e0d8(0x217)],_0x3b5349),_0x583331=await _0x583331[_0x38e0d8(0x1c1)]();let _0x70b294=![];try{_0x70b294=await _0x583331[_0x38e0d8(0x22e)]();}catch(_0x36116c){const _0x855fe7=_0x405bcc[_0x38e0d8(0x233)][_0x38e0d8(0x1ed)]('|');let _0x506d09=0x0;while(!![]){switch(_0x855fe7[_0x506d09++]){case'0':await _0x405bcc[_0x38e0d8(0x29a)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],'cluster-check-failed-'+global_registry[_0x38e0d8(0x271)],_0x405bcc['rTxav']);continue;case'1':_0x396019+='\x0a'+JSON[_0x38e0d8(0x26c)](_0x36116c[_0x38e0d8(0x214)]);continue;case'2':_0x396019=_0x38e0d8(0x1be)+global_registry[_0x38e0d8(0x21f)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x38e0d8(0x1b3)]+_0x38e0d8(0x267)+_0x36116c;continue;case'3':logger[_0x38e0d8(0x232)](_0x396019);continue;case'4':_0x70b294=null;continue;}break;}}_0x70b294&&logger['info'](_0x38e0d8(0x20d)+global_registry['clusterName']+_0x38e0d8(0x1b7));const _0x117912=await _0x583331[_0x38e0d8(0x227)]();_0x405bcc['MxsFN'](printResponse,_0x405bcc[_0x38e0d8(0x2a8)],_0x117912);const _0x3d824d=await _0x405bcc[_0x38e0d8(0x2b2)](curlRequest);_0x405bcc[_0x38e0d8(0x2ad)](printResponse,_0x405bcc['ikvdt'],_0x3d824d);const _0x24ad1c=await _0x405bcc['ETySx'](isTlsSupported,_0x405bcc[_0x38e0d8(0x1d2)]);_0x405bcc[_0x38e0d8(0x1ca)](printResponse,_0x405bcc['zMUOb'],_0x24ad1c);const _0x5e179a={};_0x5e179a[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x1f2)],_0x5e179a[_0x38e0d8(0x1b6)]=_0x3b5349;const _0x23dc9d={};_0x23dc9d[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x289)],_0x23dc9d[_0x38e0d8(0x1b6)]=_0x117912;const _0xd71ec4={};_0xd71ec4[_0x38e0d8(0x29b)]=_0x405bcc['yLXBm'],_0xd71ec4['response']=_0x3d824d;const _0x1b9cc3={};_0x1b9cc3['header']=_0x405bcc[_0x38e0d8(0x1cd)],_0x1b9cc3['response']=_0x24ad1c;const _0x23d763=[_0x5e179a,_0x23dc9d,_0xd71ec4,_0x1b9cc3],_0x12d6db=await _0x405bcc[_0x38e0d8(0x29d)](generateReport,_0x23d763,_0x70b294),_0x119caa=new Date(),_0x1b9c9a=_0x119caa[_0x38e0d8(0x290)]()+'_'+_0x405bcc['AefdU'](_0x119caa[_0x38e0d8(0x202)](),0x1)+'_'+_0x119caa[_0x38e0d8(0x200)]()+'_'+_0x119caa[_0x38e0d8(0x28d)]()+'_'+_0x119caa[_0x38e0d8(0x264)](),_0x1244bd=_0x38e0d8(0x239)+_0x1b9c9a+_0x38e0d8(0x28a);fs['writeFileSync'](_0x1244bd,_0x12d6db,_0x405bcc['MgAGI']),logger[_0x38e0d8(0x234)](_0x38e0d8(0x1b4)+_0x1244bd),process['exit'](0x0);}catch(_0x3c6ae8){let _0x374078=_0x38e0d8(0x228)+_0x3c6ae8+'\x20';logger[_0x38e0d8(0x232)](_0x374078),_0x374078+='\x0a'+JSON['stringify'](_0x3c6ae8[_0x38e0d8(0x214)]),logger[_0x38e0d8(0x2b0)](_0x38e0d8(0x270)+_0x3c6ae8[_0x38e0d8(0x214)]);if(_0x118434){const _0xa60cf1={};_0xa60cf1['type']=WS_EVENTS[_0x38e0d8(0x26f)],_0xa60cf1[_0x38e0d8(0x24a)]=_0x374078,webSocketUtils[_0x38e0d8(0x229)](_0x118434,_0xa60cf1,_0x405bcc[_0x38e0d8(0x230)],!![]);}await webSocketUtils[_0x38e0d8(0x1d0)](0x7d0);const _0x3224c7={};_0x3224c7[_0x38e0d8(0x232)]=_0x374078,await _0x405bcc[_0x38e0d8(0x1f1)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes[_0x38e0d8(0x1c6)],_0x405bcc['gXJaK'],_0x3224c7,_0x50bbec),process[_0x38e0d8(0x286)](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_0x1b96f7=a18_0x1ff9;(function(_0x3b7fe3,_0x20732a){const _0x21b239=a18_0x1ff9,_0x2ad848=_0x3b7fe3();while(!![]){try{const _0x387a64=parseInt(_0x21b239(0x13a))/0x1+parseInt(_0x21b239(0x139))/0x2*(-parseInt(_0x21b239(0x13e))/0x3)+parseInt(_0x21b239(0x130))/0x4*(-parseInt(_0x21b239(0x13d))/0x5)+-parseInt(_0x21b239(0x12b))/0x6*(-parseInt(_0x21b239(0x12e))/0x7)+parseInt(_0x21b239(0x13c))/0x8+parseInt(_0x21b239(0x128))/0x9+-parseInt(_0x21b239(0x137))/0xa;if(_0x387a64===_0x20732a)break;else _0x2ad848['push'](_0x2ad848['shift']());}catch(_0x3ff225){_0x2ad848['push'](_0x2ad848['shift']());}}}(a18_0x5754,0xa6826));function a18_0x5754(){const _0x33e628=['desc','start','strict','commandDir','builder','21878720VTSczY','handler','289042maErMQ','1155287lAdVjD','Uewjp','4450144qStgwI','294990cXqeaI','9eOkfmR','usage','bFUEG','recommendCommands','4083534TYcwPj','demandCommand','../config/constants','292260PhjPHp','start_commands','command','189HtwzOF','Start\x20an\x20existing\x20Automation\x20grid.','12CtPJqc','help'];a18_0x5754=function(){return _0x33e628;};return a18_0x5754();}function a18_0x1ff9(_0x5d722d,_0x208459){const _0x575481=a18_0x5754();return a18_0x1ff9=function(_0x1ff92c,_0x4ea4fe){_0x1ff92c=_0x1ff92c-0x126;let _0x55811f=_0x575481[_0x1ff92c];return _0x55811f;},a18_0x1ff9(_0x5d722d,_0x208459);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1b96f7(0x12a));exports[a18_0x1b96f7(0x12d)]=a18_0x1b96f7(0x133),exports[a18_0x1b96f7(0x132)]=a18_0x1b96f7(0x12f),exports[a18_0x1b96f7(0x136)]=function(_0x2c39ea){const _0x43ea0f=a18_0x1b96f7,_0x430db5={};_0x430db5[_0x43ea0f(0x126)]=_0x43ea0f(0x12c),_0x430db5['Uewjp']=_0x43ea0f(0x131);const _0x2211d7=_0x430db5;return _0x2c39ea[_0x43ea0f(0x13f)](HELP_HEADER_MESSAGE[_0x43ea0f(0x133)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x43ea0f(0x135)](_0x2211d7['bFUEG'])[_0x43ea0f(0x129)]()[_0x43ea0f(0x127)]()[_0x43ea0f(0x134)]()['help'](_0x2211d7[_0x43ea0f(0x13b)]);},exports[a18_0x1b96f7(0x138)]=function(_0x35f552){};
@@ -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_0x3c67a7=a19_0x4dcb;(function(_0xe12203,_0x1d03cb){const _0x13eb35=a19_0x4dcb,_0x545e37=_0xe12203();while(!![]){try{const _0x281fbf=-parseInt(_0x13eb35(0xb7))/0x1*(-parseInt(_0x13eb35(0xd7))/0x2)+-parseInt(_0x13eb35(0xbb))/0x3+parseInt(_0x13eb35(0xe6))/0x4+-parseInt(_0x13eb35(0xa6))/0x5+-parseInt(_0x13eb35(0xb1))/0x6*(-parseInt(_0x13eb35(0xd4))/0x7)+-parseInt(_0x13eb35(0xcb))/0x8+-parseInt(_0x13eb35(0xcf))/0x9*(-parseInt(_0x13eb35(0xc6))/0xa);if(_0x281fbf===_0x1d03cb)break;else _0x545e37['push'](_0x545e37['shift']());}catch(_0x57fa27){_0x545e37['push'](_0x545e37['shift']());}}}(a19_0x46ee,0xc6d5a));function a19_0x46ee(){const _0xc2cef6=['49TdGAZR','info','bstackUsername','2vEfVrJ','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','replace','hjJel','ERROR','options','statusCode','connectionTimeout','gridId','addListeners','command','JqHHI','bstackAccesskey','unauthorised','3505876gbITrK','<PasswordPlaceholder>','grid-id','body','OxbcR','parse','type','name','menyG','uuMlP','user','password','../../utils/gridComponents','MAliK','argv','YQmTW','UaNow','Gutut','Start\x20an\x20existing\x20Automation\x20grid.','boolean','tdXCS','../../cloudproviders/utils','error','7111910oiHqra','description','../../utils/utilityMethods','clusterName','builder','INFO','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','RpgXp','OMOmv','server-error','462846lBtZEJ','reconnecting-websocket','../../utils/webSocketUtils','RDLqS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','280794xQrlJa','zflWd','desc','region','2080134bQJHWC','debug','jhQSL','readFileSync','usage','clusterRegion','Grid\x20started','Starting\x20grid\x20','ZuZSd','Skip\x20insecure\x20cert\x20verification.','Browserstack','2990VEgoHk','start-grid-called','<UsernamePlaceholder>','stringify','IWakk','9313176ZIojzS','cloudProvider','EMTiy','exit','72153yyjgPy','username','start','../../utils/instrumentationUtils','TOSyT'];a19_0x46ee=function(){return _0xc2cef6;};return a19_0x46ee();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3c67a7(0xb2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x3c67a7(0xa8)),{scaleUpHubDeployment}=require(a19_0x3c67a7(0xf2)),{sendInstrumentationEvent}=require(a19_0x3c67a7(0xd2)),webSocketUtils=require(a19_0x3c67a7(0xb3)),{createK8sClient}=require(a19_0x3c67a7(0xd9)),{getCloudProviderObject}=require(a19_0x3c67a7(0xa4));function a19_0x4dcb(_0x44cf5f,_0x341ff7){const _0x46eeee=a19_0x46ee();return a19_0x4dcb=function(_0x4dcb57,_0x321c42){_0x4dcb57=_0x4dcb57-0x9f;let _0x5f0735=_0x46eeee[_0x4dcb57];return _0x5f0735;},a19_0x4dcb(_0x44cf5f,_0x341ff7);}exports[a19_0x3c67a7(0xe2)]='grid',exports[a19_0x3c67a7(0xb9)]=a19_0x3c67a7(0xa1),exports[a19_0x3c67a7(0xaa)]=function(_0xb34c27){const _0x5f27c1=a19_0x3c67a7,_0x565324={};_0x565324[_0x5f27c1(0xe3)]=_0x5f27c1(0xad),_0x565324[_0x5f27c1(0xae)]='string',_0x565324[_0x5f27c1(0xb8)]=_0x5f27c1(0xc4),_0x565324[_0x5f27c1(0xd3)]=_0x5f27c1(0xa2),_0x565324[_0x5f27c1(0xf5)]='help';const _0x57e5fd=_0x565324,_0x6abb3b={};_0x6abb3b[_0x5f27c1(0xa7)]=_0x57e5fd['JqHHI'],_0x6abb3b[_0x5f27c1(0xec)]=_0x57e5fd[_0x5f27c1(0xae)];const _0xa8859b={};_0xa8859b[_0x5f27c1(0xa7)]=_0x57e5fd[_0x5f27c1(0xb8)],_0xa8859b[_0x5f27c1(0xec)]=_0x57e5fd['TOSyT'],_0xa8859b['default']=![];const _0x4e80e1={};return _0x4e80e1[_0x5f27c1(0xe8)]=_0x6abb3b,_0x4e80e1['skip-tls-cert-verify']=_0xa8859b,_0xb34c27[_0x5f27c1(0xbf)](HELP_HEADER_MESSAGE[_0x5f27c1(0xd1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f27c1(0xdd)](_0x4e80e1)['help'](_0x57e5fd[_0x5f27c1(0xf5)])[_0x5f27c1(0xf4)];},exports['handler']=async function(_0x46a9dc){const _0x16ee09=a19_0x3c67a7,_0x2dc354={'IllXl':_0x16ee09(0xb6),'wtFyF':function(_0x26aa03){return _0x26aa03();},'igMvz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UaNow':function(_0x468a02,_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74){return _0x468a02(_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74);},'OxbcR':_0x16ee09(0xc7),'Gutut':'init-not-called','ilxNp':function(_0x168fae){return _0x168fae();},'RDLqS':_0x16ee09(0xc8),'MAliK':_0x16ee09(0xe7),'menyG':_0x16ee09(0xd8),'IWakk':function(_0x540f23,_0x2d36a7,_0x4bd64e,_0x1d536d){return _0x540f23(_0x2d36a7,_0x4bd64e,_0x1d536d);},'EMTiy':function(_0x4492c1,_0xf71466,_0x1721cc){return _0x4492c1(_0xf71466,_0x1721cc);},'tdXCS':function(_0x980aac,_0x3c94c5,_0x1cfc63){return _0x980aac(_0x3c94c5,_0x1cfc63);},'uuMlP':_0x16ee09(0xc1),'OMOmv':function(_0x4a318a,_0x31353e){return _0x4a318a===_0x31353e;},'ZrEtt':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TPBzs':function(_0xfe79a,_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5){return _0xfe79a(_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5);},'hjJel':_0x16ee09(0xe5),'ZuZSd':function(_0x2afa86,_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be){return _0x2afa86(_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be);},'RzlUR':'invalid-grid-id','jhQSL':_0x16ee09(0xb0)};let _0x3475c6;try{!_0x46a9dc['gridId']&&(logger[_0x16ee09(0xa5)](_0x2dc354['IllXl']),process['exit'](0x1));!fs['existsSync'](_0x2dc354['wtFyF'](getCredentialsPath))&&(logger[_0x16ee09(0xa5)](_0x2dc354['igMvz']),await _0x2dc354[_0x16ee09(0x9f)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xa0)],null,_0x46a9dc),process['exit'](0x1));logger[_0x16ee09(0xd5)](_0x16ee09(0xc2)+_0x46a9dc[_0x16ee09(0xe0)]),await _0x2dc354['UaNow'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354['OxbcR'],messageTypes[_0x16ee09(0xab)],null,null,_0x46a9dc);const _0x3284db=JSON[_0x16ee09(0xeb)](fs[_0x16ee09(0xbe)](_0x2dc354['ilxNp'](getCredentialsPath)));global_registry[_0x16ee09(0xd6)]=_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],global_registry[_0x16ee09(0xe4)]=_0x3284db[_0x16ee09(0xc5)]['password'];const _0xbc260e=WS_ENDPOINT[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xb4)],_0x3284db['Browserstack'][_0x16ee09(0xd0)])[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xf3)],_0x3284db[_0x16ee09(0xc5)]['password']),_0x20c44c={};_0x20c44c['WebSocket']=ws,_0x20c44c[_0x16ee09(0xdf)]=0x36ee80,_0x3475c6=new ReconnectingWebSocket(_0xbc260e,[],_0x20c44c),logger[_0x16ee09(0xbc)](_0x2dc354[_0x16ee09(0xee)]),webSocketUtils[_0x16ee09(0xe1)](_0x3475c6,_0x46a9dc[_0x16ee09(0xf0)],_0x46a9dc[_0x16ee09(0xf1)]);const [_0x605c03,_0x2a1649]=await _0x2dc354[_0x16ee09(0xca)](getGridDetails,_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xf1)],_0x46a9dc[_0x16ee09(0xe0)]);if(_0x2a1649){const _0x390710=_0x2a1649[_0x16ee09(0xd5)];global_registry[_0x16ee09(0xcc)]=_0x390710[_0x16ee09(0xcc)],global_registry[_0x16ee09(0xc0)]=_0x390710[_0x16ee09(0xba)],global_registry['clusterName']=_0x390710[_0x16ee09(0xa9)];const _0x46c041=await _0x2dc354[_0x16ee09(0x9f)](getCloudProviderObject,_0x390710[_0x16ee09(0xcc)],_0x390710['clusterName'],_0x390710[_0x16ee09(0xed)],_0x3475c6,webSocketUtils,_0x46a9dc),[_0x2f7bf7,_0x14ab66,_0x5f1769,_0x6988e6,_0x44d091,_0x5729d6]=await _0x2dc354[_0x16ee09(0xcd)](createK8sClient,_0x46c041,_0x46a9dc[_0x16ee09(0xac)]);await _0x2dc354[_0x16ee09(0xa3)](scaleUpHubDeployment,_0x14ab66,_0x390710[_0x16ee09(0xed)]),logger[_0x16ee09(0xd5)](_0x2dc354[_0x16ee09(0xef)]),process[_0x16ee09(0xce)](0x0);}_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x191)&&(logger['error'](_0x2dc354['ZrEtt']),await _0x2dc354['TPBzs'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xdb)],null,_0x46a9dc),process['exit'](0x1)),_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x190)&&(logger[_0x16ee09(0xa5)](JSON['parse'](_0x605c03[_0x16ee09(0xe9)])['message']),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes['ERROR'],_0x2dc354['RzlUR'],null,_0x46a9dc),process[_0x16ee09(0xce)](0x1)),logger[_0x16ee09(0xa5)](_0x16ee09(0xb5)+JSON[_0x16ee09(0xc9)](_0x605c03)),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xbd)],_0x605c03,_0x46a9dc),process['exit'](0x1);}catch(_0x425391){const _0x1b7b6b='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x425391+'\x20\x0a'+JSON[_0x16ee09(0xc9)](_0x425391['stack'])+'\x20';logger['error'](_0x1b7b6b),process[_0x16ee09(0xce)](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
+ const a20_0x507def=a20_0x4a4e;function a20_0x4a4e(_0x11cf95,_0x5a3591){const _0x191050=a20_0x1910();return a20_0x4a4e=function(_0x4a4ea0,_0x39a6ad){_0x4a4ea0=_0x4a4ea0-0x7e;let _0x5966e4=_0x191050[_0x4a4ea0];return _0x5966e4;},a20_0x4a4e(_0x11cf95,_0x5a3591);}function a20_0x1910(){const _0x4ba88b=['handler','XZqqF','usage','fTVXc','help','228102LwVZdV','91435yCSuNX','builder','12511490TpDoRb','command','787874oCMuYc','66dRCoqS','commandDir','138987ESascC','1328810rKteio','1pBesLF','stop','stop_commands','recommendCommands','../config/constants','desc','Stop\x20a\x20running\x20Automation\x20grid.','192ikMukX','1052096GgNeik'];a20_0x1910=function(){return _0x4ba88b;};return a20_0x1910();}(function(_0x5e12d8,_0x50c767){const _0x29fd3c=a20_0x4a4e,_0x44c63e=_0x5e12d8();while(!![]){try{const _0x1cf60e=parseInt(_0x29fd3c(0x8f))/0x1*(-parseInt(_0x29fd3c(0x8a))/0x2)+-parseInt(_0x29fd3c(0x85))/0x3+parseInt(_0x29fd3c(0x7f))/0x4+-parseInt(_0x29fd3c(0x86))/0x5*(parseInt(_0x29fd3c(0x8b))/0x6)+-parseInt(_0x29fd3c(0x8e))/0x7+parseInt(_0x29fd3c(0x7e))/0x8*(-parseInt(_0x29fd3c(0x8d))/0x9)+parseInt(_0x29fd3c(0x88))/0xa;if(_0x1cf60e===_0x50c767)break;else _0x44c63e['push'](_0x44c63e['shift']());}catch(_0x4ac5ae){_0x44c63e['push'](_0x44c63e['shift']());}}}(a20_0x1910,0x44fd7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x507def(0x93));exports[a20_0x507def(0x89)]='stop',exports[a20_0x507def(0x94)]=a20_0x507def(0x95),exports[a20_0x507def(0x87)]=function(_0x27ca59){const _0x39257a=a20_0x507def,_0x6e4e7d={};_0x6e4e7d['XZqqF']=_0x39257a(0x91),_0x6e4e7d[_0x39257a(0x83)]=_0x39257a(0x84);const _0x2c36a8=_0x6e4e7d;return _0x27ca59[_0x39257a(0x82)](HELP_HEADER_MESSAGE[_0x39257a(0x90)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x39257a(0x8c)](_0x2c36a8[_0x39257a(0x81)])['demandCommand']()[_0x39257a(0x92)]()['strict']()[_0x39257a(0x84)](_0x2c36a8[_0x39257a(0x83)]);},exports[a20_0x507def(0x80)]=function(_0x40ce8d){};
@@ -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_0x40d87d=a21_0x1007;function a21_0x398e(){const _0x596252=['<PasswordPlaceholder>','ERROR','../../config/logger','3647124bxbblA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','epilogue','invalid-grid-id','nXQLv','../../utils/gridComponents','grid-id','686885xbbRXG','skipTlsCertVerify','../../utils/instrumentationUtils','LwHOp','YyLDh','connectionTimeout','WebSocket','stack','command','ncGIW','../../config/constants','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','init-not-called','Adding\x20Websocket\x20listeners','string','AvxnF','JxhiN','type','36213OzIDXU','help','clusterName','gridId','region','1103893nKpIIm','unauthorised','password','argv','QkeJv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RSFFo','cloudProvider','name','user','error','JSkcV','scNtO','XpOwE','existsSync','info','12lbBhYj','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','reconnecting-websocket','1287304gBkYsH','<UsernamePlaceholder>','description','readFileSync','MEfaD','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','skip-tls-cert-verify','stop','username','body','txEhl','../../utils/createk8sClient','AMoOI','hwbLH','bstackUsername','21337376oVzXhU','usage','kgeBS','desc','../../utils/webSocketUtils','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','myUlG','exit','default','Browserstack','3620199MYxJWy','handler','DvdPQ','message','bstackAccesskey','MWcCU'];a21_0x398e=function(){return _0x596252;};return a21_0x398e();}(function(_0x2c738a,_0x2903df){const _0x59dff5=a21_0x1007,_0x401509=_0x2c738a();while(!![]){try{const _0x379683=-parseInt(_0x59dff5(0x90))/0x1+parseInt(_0x59dff5(0xa9))/0x2+-parseInt(_0x59dff5(0xc3))/0x3+-parseInt(_0x59dff5(0x76))/0x4+parseInt(_0x59dff5(0x7d))/0x5+parseInt(_0x59dff5(0xa5))/0x6*(-parseInt(_0x59dff5(0x95))/0x7)+parseInt(_0x59dff5(0xb8))/0x8;if(_0x379683===_0x2903df)break;else _0x401509['push'](_0x401509['shift']());}catch(_0x305195){_0x401509['push'](_0x401509['shift']());}}}(a21_0x398e,0xeec9c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x40d87d(0xa8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x40d87d(0x87)),{logger}=require(a21_0x40d87d(0x75)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x40d87d(0x7b)),{sendInstrumentationEvent}=require(a21_0x40d87d(0x7f)),webSocketUtils=require(a21_0x40d87d(0xbc)),{createK8sClient}=require(a21_0x40d87d(0xb4)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x1007(_0x10a980,_0x2a6aa0){const _0x398e19=a21_0x398e();return a21_0x1007=function(_0x100775,_0x5eb099){_0x100775=_0x100775-0x75;let _0x403444=_0x398e19[_0x100775];return _0x403444;},a21_0x1007(_0x10a980,_0x2a6aa0);}exports[a21_0x40d87d(0x85)]='grid',exports[a21_0x40d87d(0xbb)]=a21_0x40d87d(0xa6),exports['builder']=function(_0x1523f8){const _0x404826=a21_0x40d87d,_0x1b98ba={};_0x1b98ba[_0x404826(0x8e)]=_0x404826(0xae),_0x1b98ba[_0x404826(0xa2)]=_0x404826(0x8c),_0x1b98ba[_0x404826(0x9b)]='Skip\x20insecure\x20cert\x20verification.',_0x1b98ba[_0x404826(0xb5)]=_0x404826(0x88),_0x1b98ba['tudoa']=_0x404826(0x91);const _0x3220d0=_0x1b98ba,_0x4cddaa={};_0x4cddaa[_0x404826(0xab)]=_0x3220d0['JxhiN'],_0x4cddaa[_0x404826(0x8f)]=_0x3220d0['XpOwE'];const _0x3aa181={};_0x3aa181['description']=_0x3220d0[_0x404826(0x9b)],_0x3aa181[_0x404826(0x8f)]=_0x3220d0[_0x404826(0xb5)],_0x3aa181[_0x404826(0xc1)]=![];const _0x535797={};return _0x535797[_0x404826(0x7c)]=_0x4cddaa,_0x535797[_0x404826(0xaf)]=_0x3aa181,_0x1523f8[_0x404826(0xb9)](HELP_HEADER_MESSAGE[_0x404826(0xb0)])[_0x404826(0x78)](HELP_FOOTER_MESSAGE)[_0x404826(0xbd)](_0x535797)['help'](_0x3220d0['tudoa'])[_0x404826(0x98)];},exports[a21_0x40d87d(0xc4)]=async function(_0x4bcdab){const _0x1398ff=a21_0x40d87d,_0x1eb35d={'YyLDh':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','kDheu':function(_0xf01e23){return _0xf01e23();},'TAwPk':_0x1398ff(0xbe),'kgeBS':function(_0x2b623b,_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989){return _0x2b623b(_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989);},'nXQLv':'stop-grid-called','JSkcV':_0x1398ff(0x8a),'hwbLH':function(_0x5e5a0b,_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4){return _0x5e5a0b(_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4);},'cVXGp':function(_0x26ceb9){return _0x26ceb9();},'uwmke':_0x1398ff(0xaa),'scNtO':_0x1398ff(0xc9),'DvdPQ':_0x1398ff(0x8b),'hZEcA':function(_0x3d9dff,_0x39e829,_0x5c6729,_0x288fe1){return _0x3d9dff(_0x39e829,_0x5c6729,_0x288fe1);},'AvxnF':function(_0x17bca8,_0x3fb7d1,_0x2e244f){return _0x17bca8(_0x3fb7d1,_0x2e244f);},'myUlG':function(_0xf17430,_0x371be0,_0x13d67b){return _0xf17430(_0x371be0,_0x13d67b);},'MWcCU':'Grid\x20stoppped.','LwHOp':function(_0x1e90ca,_0x536248){return _0x1e90ca===_0x536248;},'MEfaD':_0x1398ff(0x89),'txEhl':_0x1398ff(0x96),'liuPb':function(_0x2586e8,_0x22bda9){return _0x2586e8===_0x22bda9;},'QkeJv':_0x1398ff(0x79),'ncGIW':'server-error'};let _0x5a0570;try{!_0x4bcdab[_0x1398ff(0x93)]&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0x81)]),process[_0x1398ff(0xc0)](0x1));!fs[_0x1398ff(0xa3)](_0x1eb35d['kDheu'](getCredentialsPath))&&(logger[_0x1398ff(0x9f)](_0x1eb35d['TAwPk']),await _0x1eb35d['kgeBS'](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xa0)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1));logger[_0x1398ff(0xa4)]('Stopping\x20grid\x20'+_0x4bcdab[_0x1398ff(0x93)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes['INFO'],null,null,_0x4bcdab);const _0x39cdc7=JSON['parse'](fs[_0x1398ff(0xac)](_0x1eb35d['cVXGp'](getCredentialsPath)));global_registry[_0x1398ff(0xb7)]=_0x39cdc7[_0x1398ff(0xc2)]['username'],global_registry[_0x1398ff(0xc7)]=_0x39cdc7['Browserstack'][_0x1398ff(0x97)];const _0xec67e4=WS_ENDPOINT['replace'](_0x1eb35d['uwmke'],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0xb1)])['replace'](_0x1eb35d[_0x1398ff(0xa1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)]),_0x1ca27e={};_0x1ca27e[_0x1398ff(0x83)]=ws,_0x1ca27e[_0x1398ff(0x82)]=0x36ee80,_0x5a0570=new ReconnectingWebSocket(_0xec67e4,[],_0x1ca27e),logger['debug'](_0x1eb35d[_0x1398ff(0xc5)]),webSocketUtils['addListeners'](_0x5a0570,_0x4bcdab[_0x1398ff(0x9e)],_0x4bcdab['password']);const [_0x1a0fec,_0x406906]=await _0x1eb35d['hZEcA'](getGridDetails,_0x39cdc7['Browserstack'][_0x1398ff(0xb1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)],_0x4bcdab[_0x1398ff(0x93)]);if(_0x406906){const _0xdb9db=_0x406906['info'];global_registry[_0x1398ff(0x9c)]=_0xdb9db[_0x1398ff(0x9c)],global_registry['clusterRegion']=_0xdb9db[_0x1398ff(0x94)],global_registry[_0x1398ff(0x92)]=_0xdb9db[_0x1398ff(0x92)];const _0x5eb537=await _0x1eb35d['kgeBS'](getCloudProviderObject,_0xdb9db['cloudProvider'],_0xdb9db['clusterName'],_0xdb9db[_0x1398ff(0x9d)],_0x5a0570,webSocketUtils,_0x4bcdab),[_0x2c4c11,_0x2a3c07,_0x2a07ed,_0xaa2aa7,_0x1eb8c6,_0x16f405]=await _0x1eb35d[_0x1398ff(0x8d)](createK8sClient,_0x5eb537,_0x4bcdab[_0x1398ff(0x7e)]);await _0x1eb35d[_0x1398ff(0xbf)](scaleDownHubDeployment,_0x2a3c07,_0xdb9db[_0x1398ff(0x9d)]),logger['info'](_0x1eb35d[_0x1398ff(0xc8)]),process[_0x1398ff(0xc0)](0x0);}_0x1eb35d[_0x1398ff(0x80)](_0x1a0fec[_0x1398ff(0xa7)],0x191)&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0xad)]),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xb3)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),_0x1eb35d['liuPb'](_0x1a0fec[_0x1398ff(0xa7)],0x190)&&(logger[_0x1398ff(0x9f)](JSON['parse'](_0x1a0fec[_0x1398ff(0xb2)])[_0x1398ff(0xc6)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x99)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),logger['error'](_0x1398ff(0x9a)+JSON['stringify'](_0x1a0fec)),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x86)],_0x1a0fec,_0x4bcdab),process[_0x1398ff(0xc0)](0x1);}catch(_0x1f9023){const _0x5c33a5=_0x1398ff(0x77)+_0x1f9023+'\x20\x0a'+JSON['stringify'](_0x1f9023[_0x1398ff(0x84)])+'\x20';logger[_0x1398ff(0x9f)](_0x5c33a5),process[_0x1398ff(0xc0)](0x1);}};
@@ -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_0x50086a=a22_0x3b8f;(function(_0x4d819b,_0x490808){const _0x37e1ec=a22_0x3b8f,_0x1f8ed2=_0x4d819b();while(!![]){try{const _0x4edf8f=parseInt(_0x37e1ec(0xd3))/0x1*(parseInt(_0x37e1ec(0xb1))/0x2)+parseInt(_0x37e1ec(0xe0))/0x3*(parseInt(_0x37e1ec(0xdb))/0x4)+-parseInt(_0x37e1ec(0xd5))/0x5+parseInt(_0x37e1ec(0xcf))/0x6*(parseInt(_0x37e1ec(0xe1))/0x7)+parseInt(_0x37e1ec(0xb0))/0x8+parseInt(_0x37e1ec(0xb2))/0x9*(-parseInt(_0x37e1ec(0x9d))/0xa)+-parseInt(_0x37e1ec(0xf8))/0xb;if(_0x4edf8f===_0x490808)break;else _0x1f8ed2['push'](_0x1f8ed2['shift']());}catch(_0x4b753e){_0x1f8ed2['push'](_0x1f8ed2['shift']());}}}(a22_0x3266,0x7025d),require(a22_0x50086a(0xbe))[a22_0x50086a(0xe4)]());let gridURL=a22_0x50086a(0xca),bsApiUrl=a22_0x50086a(0xf5),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x50086a(0xa0)][a22_0x50086a(0xc0)]||a22_0x50086a(0xb6))[a22_0x50086a(0x98)]();if(_env===a22_0x50086a(0x9b)||_env==='stag')gridURL=a22_0x50086a(0xaa),bsApiUrl=a22_0x50086a(0x95),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x50086a(0xe8))&&(gridURL=a22_0x50086a(0x9e),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x50086a(0x92));exports[a22_0x50086a(0xf6)]=process[a22_0x50086a(0xa0)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x50086a(0xc7)]=process[a22_0x50086a(0xa0)][a22_0x50086a(0xc7)]||bsApiUrl,exports[a22_0x50086a(0xa3)]=process[a22_0x50086a(0xa0)]['AG_API_URL']||agApiUrl,exports[a22_0x50086a(0xea)]=a22_0x50086a(0xeb)+this['AG_API_URL']+a22_0x50086a(0xa1),exports[a22_0x50086a(0x8f)]=a22_0x50086a(0xf0),exports[a22_0x50086a(0x8a)]=a22_0x50086a(0xd4),exports[a22_0x50086a(0xdd)]=a22_0x50086a(0xe6),exports[a22_0x50086a(0xc3)]=a22_0x50086a(0x89),exports[a22_0x50086a(0xba)]=a22_0x50086a(0xa4),exports[a22_0x50086a(0xed)]=a22_0x50086a(0xb4),exports[a22_0x50086a(0xfb)]=a22_0x50086a(0xee),exports[a22_0x50086a(0xec)]=a22_0x50086a(0xd9),exports['AZURE']=a22_0x50086a(0xcd),exports[a22_0x50086a(0xae)]=a22_0x50086a(0xc8),exports[a22_0x50086a(0xda)]=[this['AWS'],this[a22_0x50086a(0xbb)],this[a22_0x50086a(0xae)]];function a22_0x3266(){const _0x301655=['configure','1659QbMXby','14idqhvp','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','config','root','high-scale-grid','REGION','pre-prod','Value','WS_ENDPOINT','wss://','TURBOSCALE_DEPLOYMENT','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER-HUB-HA','CLOUD_PROVIDER','credentials','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','list','SUPPORTED_CLOUD_PROVIDERS','RESOURCES','api.browserstack.com','DASHBOARD_ENDPOINT','unknown','8208574gMaxbi','browserstack:service','TURBOSCALE_CUSTOM_TAGS','CLUSTER_HUB_HA_STACK_NAME','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','aws','IAM_USER_NAME','warning','LOG','gridUrl','UNKNOWN','CP_CONFIG_FILE','cliRunStarted','grid-profile','grid-api-preprod.bsstag.com','stop','split','api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','toLowerCase','CLI_ARGS_REGEX','gridProfile','staging','info','3860arUEjy','grid-preprod.bsstag.com','resourceInfo','env','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','AG_API_URL','BSTACK-ATS-CLUSTER','DEFAULT_CLUSTER_DETAILS','INFO','us-east-1','TRIAL_GRID_URL','global_registry','grid-devhst.bsstag.com','BrowserStack','log','CLI_RUN_FINISHED','GCP','Key','5194672aRTVOD','2SLqSEX','5121zbyFSR','CLUSTER','BSTACK-ATS-CLUSTER-AUTOSCALER','HELP_FOOTER_MESSAGE','prod','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','create','CLUSTER_DEP_STACK_NAME','AZURE','SUCCESS','high-scale-grid-cluster','dotenv','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BROWSERSTACK_ENV','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AWS','CLI_RUN_STARTED','cliRunFinished','[REDACTED]','BS_API_URL','gcp','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid.browserstack.com','start','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','842034fPoGko','ERROR','WS_EVENTS','LINK_MESSAGE','619008DfmPCZ','BrowserStackIAMUser','3641120MtPRsz','messageTypes','WARNING','grid','browserstack-turboscale-grid','ALL_SUPPORTED_CLOUD_PROVIDERS','4372KcBpix','GRID_URL','DEFAULT_GRID_NAME','browserstack:managedBy'];a22_0x3266=function(){return _0x301655;};return a22_0x3266();}const a22_0x3da3e4={};a22_0x3da3e4[a22_0x50086a(0xaf)]=a22_0x50086a(0xde),a22_0x3da3e4[a22_0x50086a(0xe9)]=a22_0x50086a(0xab);const a22_0xc82ce8={};a22_0xc82ce8['Key']=a22_0x50086a(0xf9),a22_0xc82ce8[a22_0x50086a(0xe9)]=a22_0x50086a(0xe2);const common_hst_tags_list=[a22_0x3da3e4,a22_0xc82ce8];if(process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]){const parsedTags=process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]['split'](',');parsedTags['forEach'](_0x3b7f1c=>{const _0x4ae65b=a22_0x50086a,_0x1c149f=_0x3b7f1c[_0x4ae65b(0x94)](':'),_0x50de5a={};_0x50de5a[_0x4ae65b(0xaf)]=_0x1c149f[0x0],_0x50de5a[_0x4ae65b(0xe9)]=_0x1c149f[0x1],common_hst_tags_list['push'](_0x50de5a);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2393fd={};a22_0x2393fd['browserstack:managedBy']=a22_0x50086a(0xab),a22_0x2393fd[a22_0x50086a(0xf9)]=a22_0x50086a(0xe2),exports['HST_CLUSTER_TAGS']=a22_0x2393fd,exports[a22_0x50086a(0xf3)]=[this[a22_0x50086a(0xc3)]];const a22_0x26d524={};a22_0x26d524[a22_0x50086a(0x8c)]=a22_0x50086a(0xac),a22_0x26d524[a22_0x50086a(0xf4)]=a22_0x50086a(0x9f),a22_0x26d524[a22_0x50086a(0xdc)]=a22_0x50086a(0x8d),a22_0x26d524[a22_0x50086a(0xc4)]=a22_0x50086a(0x90),a22_0x26d524[a22_0x50086a(0xad)]=a22_0x50086a(0xc5),exports[a22_0x50086a(0xd1)]=a22_0x26d524,exports[a22_0x50086a(0xa9)]={},exports[a22_0x50086a(0xd2)]=a22_0x50086a(0xb8);const a22_0x36a236={};a22_0x36a236['root']=a22_0x50086a(0xb7)+this[a22_0x50086a(0xd2)],a22_0x36a236['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xdf)]=a22_0x50086a(0x88)+this['LINK_MESSAGE'],a22_0x36a236[a22_0x50086a(0xb9)]=a22_0x50086a(0xbf)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)]={},a22_0x36a236[a22_0x50086a(0xc1)]=a22_0x50086a(0xc9)+this[a22_0x50086a(0xd2)],a22_0x36a236['connect']=a22_0x50086a(0xe3)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xcb)]=a22_0x50086a(0xcc)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0x93)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x50086a(0xd2)],a22_0x36a236['pre_check']=a22_0x50086a(0xf1)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xe5)]=a22_0x50086a(0x96)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xd8)]=a22_0x50086a(0xa2)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0x9a)]=a22_0x50086a(0xc2)+this[a22_0x50086a(0xd2)],exports['HELP_HEADER_MESSAGE']=a22_0x36a236,exports[a22_0x50086a(0xb5)]=a22_0x50086a(0xce);const a22_0x577d26={};function a22_0x3b8f(_0x1aaaa6,_0x79a752){const _0x3266a8=a22_0x3266();return a22_0x3b8f=function(_0x3b8f5a,_0x38c978){_0x3b8f5a=_0x3b8f5a-0x88;let _0x549345=_0x3266a8[_0x3b8f5a];return _0x549345;},a22_0x3b8f(_0x1aaaa6,_0x79a752);}a22_0x577d26[a22_0x50086a(0xbc)]='success',a22_0x577d26[a22_0x50086a(0xd0)]='error',a22_0x577d26[a22_0x50086a(0xa6)]=a22_0x50086a(0x9c),a22_0x577d26[a22_0x50086a(0xd7)]=a22_0x50086a(0x8b),a22_0x577d26[a22_0x50086a(0x8e)]=a22_0x50086a(0xf7),a22_0x577d26[a22_0x50086a(0xfc)]=null,exports[a22_0x50086a(0xd6)]=a22_0x577d26,exports[a22_0x50086a(0x99)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x50086a(0xc6);const a22_0x29e9f7={};a22_0x29e9f7[a22_0x50086a(0x91)]=a22_0x50086a(0x97);const a22_0x23b957={};a22_0x23b957['pre-check']=a22_0x29e9f7,exports['MessageDescription']=a22_0x23b957,exports[a22_0x50086a(0xa8)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x3dda79={};a22_0x3dda79[a22_0x50086a(0xb3)]=a22_0x50086a(0xbd),a22_0x3dda79[a22_0x50086a(0xef)]=a22_0x50086a(0x89),a22_0x3dda79[a22_0x50086a(0xe7)]=a22_0x50086a(0xa7),exports[a22_0x50086a(0xa5)]=a22_0x3dda79;
@@ -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_0x211a41=a23_0x5873;function a23_0x5873(_0x18f089,_0x28c624){const _0x20e7e5=a23_0x20e7();return a23_0x5873=function(_0x58731f,_0x1f7a5d){_0x58731f=_0x58731f-0xb1;let _0x3622bf=_0x20e7e5[_0x58731f];return _0x3622bf;},a23_0x5873(_0x18f089,_0x28c624);}(function(_0x2710aa,_0x400b42){const _0x53fed1=a23_0x5873,_0x17af7=_0x2710aa();while(!![]){try{const _0x5018ea=parseInt(_0x53fed1(0xc7))/0x1+-parseInt(_0x53fed1(0xb3))/0x2+parseInt(_0x53fed1(0xc0))/0x3+-parseInt(_0x53fed1(0xcb))/0x4*(parseInt(_0x53fed1(0xbb))/0x5)+parseInt(_0x53fed1(0xb5))/0x6+parseInt(_0x53fed1(0xbf))/0x7*(parseInt(_0x53fed1(0xcc))/0x8)+parseInt(_0x53fed1(0xd0))/0x9*(-parseInt(_0x53fed1(0xb7))/0xa);if(_0x5018ea===_0x400b42)break;else _0x17af7['push'](_0x17af7['shift']());}catch(_0x468e03){_0x17af7['push'](_0x17af7['shift']());}}}(a23_0x20e7,0x7dd13));const winston=require(a23_0x211a41(0xc5)),fs=require('fs'),path=require('path'),logDir=a23_0x211a41(0xc8);!fs[a23_0x211a41(0xce)](logDir)&&fs[a23_0x211a41(0xbd)](logDir);const a23_0x151388={};a23_0x151388[a23_0x211a41(0xc1)]=a23_0x211a41(0xc6);function a23_0x20e7(){const _0x3478c8=['695984NNcJQA','logger','existsSync','level','9PIGlLs','debug','console.info','772188eIIBEv','combine','6064974ykLPWO','transports','12209990TRTKAE','printf','Console','join','14855LLHySa','usage.log','mkdirSync','name','7erOYec','2950974BxXDWd','format','File','fileLogger','message','winston','YYYY-MM-DD\x20HH:mm:ss','724285MITRfY','log','timestamp','createLogger','920IvLeSa'];a23_0x20e7=function(){return _0x3478c8;};return a23_0x20e7();}const a23_0x1011f6={};a23_0x1011f6[a23_0x211a41(0xcf)]=!![];const a23_0x301aa8={};a23_0x301aa8[a23_0x211a41(0xbe)]=a23_0x211a41(0xb2),exports[a23_0x211a41(0xcd)]=new winston[(a23_0x211a41(0xca))]({'format':winston[a23_0x211a41(0xc1)][a23_0x211a41(0xb4)](winston[a23_0x211a41(0xc1)][a23_0x211a41(0xc9)](a23_0x151388),winston['format']['colorize'](a23_0x1011f6),winston['format'][a23_0x211a41(0xb8)](_0x2d2b35=>_0x2d2b35[a23_0x211a41(0xc9)]+'\x20-\x20'+_0x2d2b35[a23_0x211a41(0xcf)]+':\x20'+_0x2d2b35[a23_0x211a41(0xc4)])),'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xb9))](a23_0x301aa8),new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,'events.log'),'level':a23_0x211a41(0xb1)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,a23_0x211a41(0xbc)),'level':a23_0x211a41(0xb1)})]};exports[a23_0x211a41(0xc3)]=new winston[(a23_0x211a41(0xca))](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';const a24_0x495989=a24_0x484b;(function(_0x3e547a,_0x343764){const _0x5c0bf3=a24_0x484b,_0x5339bf=_0x3e547a();while(!![]){try{const _0x6b3eea=parseInt(_0x5c0bf3(0x11e))/0x1+-parseInt(_0x5c0bf3(0x113))/0x2*(-parseInt(_0x5c0bf3(0x112))/0x3)+parseInt(_0x5c0bf3(0x121))/0x4*(-parseInt(_0x5c0bf3(0x118))/0x5)+-parseInt(_0x5c0bf3(0x11a))/0x6*(parseInt(_0x5c0bf3(0x116))/0x7)+parseInt(_0x5c0bf3(0x123))/0x8+parseInt(_0x5c0bf3(0x126))/0x9*(-parseInt(_0x5c0bf3(0x119))/0xa)+-parseInt(_0x5c0bf3(0x117))/0xb*(parseInt(_0x5c0bf3(0x11f))/0xc);if(_0x6b3eea===_0x343764)break;else _0x5339bf['push'](_0x5339bf['shift']());}catch(_0x519ef1){_0x5339bf['push'](_0x5339bf['shift']());}}}(a24_0x20ab,0xdfba4));function a24_0x20ab(){const _0x4d1758=['demandCommand','root','1976823gzQleV','commandDir','281832gLnQSI','26NUyXoN','NwnJd','help','217TBWGRR','10833141oxRhvZ','3113735aZfGjH','10HxjeXL','134850XMHJID','epilogue','jvgBr','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1373751QblbSu','12HWupox','commands','4iuiaov','./config/constants','6762520NraXKc'];a24_0x20ab=function(){return _0x4d1758;};return a24_0x20ab();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x495989(0x122));process['env'][a24_0x495989(0x11d)]=0x1;function a24_0x484b(_0x40c130,_0x252b4){const _0x20ab91=a24_0x20ab();return a24_0x484b=function(_0x484b8c,_0x418816){_0x484b8c=_0x484b8c-0x111;let _0x390645=_0x20ab91[_0x484b8c];return _0x390645;},a24_0x484b(_0x40c130,_0x252b4);}function run(_0x518006){const _0x2290bc=a24_0x495989,_0xf0fa3e={};_0xf0fa3e[_0x2290bc(0x114)]=_0x2290bc(0x120),_0xf0fa3e[_0x2290bc(0x11c)]=_0x2290bc(0x115);const _0x5f9452=_0xf0fa3e;_0x518006['usage'](HELP_HEADER_MESSAGE[_0x2290bc(0x125)])[_0x2290bc(0x111)](_0x5f9452[_0x2290bc(0x114)])[_0x2290bc(0x124)]()[_0x2290bc(0x115)](_0x5f9452[_0x2290bc(0x11c)])[_0x2290bc(0x11b)](HELP_FOOTER_MESSAGE);}module['exports']=run;