browserstack-node-sdk 1.40.7 → 1.41.0

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 (175) 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/browserstack.pw.yml.sample +3 -3
  41. package/browserstack.yml.sample +3 -3
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.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/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x1a4a(_0x127002,_0x32306e){const _0x4c234e=a15_0x4c23();return a15_0x1a4a=function(_0x1a4aff,_0x4808df){_0x1a4aff=_0x1a4aff-0x91;let _0x43f763=_0x4c234e[_0x1a4aff];return _0x43f763;},a15_0x1a4a(_0x127002,_0x32306e);}const a15_0x38820d=a15_0x1a4a;(function(_0x5c9f17,_0x5d69c6){const _0x4d04a3=a15_0x1a4a,_0x1a58f5=_0x5c9f17();while(!![]){try{const _0x27ce30=-parseInt(_0x4d04a3(0xe7))/0x1*(parseInt(_0x4d04a3(0x95))/0x2)+parseInt(_0x4d04a3(0xc8))/0x3*(parseInt(_0x4d04a3(0xd4))/0x4)+parseInt(_0x4d04a3(0xc3))/0x5+-parseInt(_0x4d04a3(0xad))/0x6*(-parseInt(_0x4d04a3(0xc5))/0x7)+-parseInt(_0x4d04a3(0xde))/0x8+-parseInt(_0x4d04a3(0xa3))/0x9*(-parseInt(_0x4d04a3(0xe4))/0xa)+parseInt(_0x4d04a3(0xe1))/0xb*(-parseInt(_0x4d04a3(0xdc))/0xc);if(_0x27ce30===_0x5d69c6)break;else _0x1a58f5['push'](_0x1a58f5['shift']());}catch(_0x4da5c0){_0x1a58f5['push'](_0x1a58f5['shift']());}}}(a15_0x4c23,0x86160));function a15_0x4c23(){const _0x2422a4=['log','Failed\x20to\x20list\x20resources!\x20Error:\x20','username','JaWwZ','unUsN','table','cluster-name','grid-name','ERROR','WSOwy','parse','unknown-error','error','INFO','1255975eOsUhA','help','17815pndTEb','password','exit','3bJMGno','CNiYB','/packages/cli/get-all-grids','requestId','list-grids-called','fxgHG','BbOIN','bstackAccesskey','bstackUsername','description','GuzAn','hStEZ','8516IyGZFZ','list','boolean','options','statusCode','kikKt','wLAej','stringify','492VAnNOU','stack','6144744Fttris','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GET','26829vWeeTZ','\x0aFound\x20the\x20following\x20grids:\x0a','dVxpx','2008780lSYdRt','WuJBn','builder','593QWtHLo','BngHs','grids','existsSync','usage','eDHZk','lilyZ','qQBis','../../utils/instrumentationUtils','unauthorised','54wCYXjH','desc','forEach','SkZla','BJdnY','HXdTE','type','https://','all-grids','FZlUJ','/packages/cli/get-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','JZjaQ','init-not-called','45wnfiKj','grid-id','push','command','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','argv','allGrids','gWlXd','epilogue','running','414vbYlEI','UFYPV','server-error','rkZoD','OBZNz','queued','status','Browserstack'];a15_0x4c23=function(){return _0x2422a4;};return a15_0x4c23();}const fs=require('fs'),got=require('got'),{table}=require(a15_0x38820d(0xba)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x38820d(0x93));exports[a15_0x38820d(0xa6)]=a15_0x38820d(0xe9),exports[a15_0x38820d(0x96)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x38820d(0xe6)]=function(_0x1e5943){const _0x2f3fa4=a15_0x38820d,_0x59655d={};_0x59655d[_0x2f3fa4(0x9a)]=_0x2f3fa4(0xa7),_0x59655d[_0x2f3fa4(0xbe)]=_0x2f3fa4(0xd6),_0x59655d[_0x2f3fa4(0xc9)]='help';const _0x43cb02=_0x59655d,_0x17e489={};_0x17e489[_0x2f3fa4(0xd1)]=_0x43cb02[_0x2f3fa4(0x9a)],_0x17e489[_0x2f3fa4(0x9b)]=_0x43cb02[_0x2f3fa4(0xbe)];const _0x403326={};return _0x403326[_0x2f3fa4(0x9d)]=_0x17e489,_0x1e5943[_0x2f3fa4(0xeb)](HELP_HEADER_MESSAGE[_0x2f3fa4(0xd5)]['grid'])[_0x2f3fa4(0xab)](HELP_FOOTER_MESSAGE)[_0x2f3fa4(0xd7)](_0x403326)[_0x2f3fa4(0xc4)](_0x43cb02[_0x2f3fa4(0xc9)])[_0x2f3fa4(0xa8)];},exports['handler']=async function(_0x5ec086){const _0x1b192a=a15_0x38820d,_0x5e17a1={'gWlXd':function(_0xa8fa77){return _0xa8fa77();},'OBZNz':function(_0x246b8f){return _0x246b8f();},'XSfOh':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','kikKt':function(_0x55895b,_0x5ba4af,_0x441841,_0x30d77c,_0x270578,_0x32944c,_0x574659){return _0x55895b(_0x5ba4af,_0x441841,_0x30d77c,_0x270578,_0x32944c,_0x574659);},'fxgHG':_0x1b192a(0xcc),'eDHZk':_0x1b192a(0xa2),'rkZoD':_0x1b192a(0xe0),'TsPpR':function(_0x5590f0,_0x4f529b,_0x3e1c86){return _0x5590f0(_0x4f529b,_0x3e1c86);},'hStEZ':function(_0x4ead90,_0x34001c,_0x4d7b57){return _0x4ead90(_0x34001c,_0x4d7b57);},'dVxpx':function(_0x168b33,_0x52c81d){return _0x168b33!==_0x52c81d;},'BngHs':function(_0x181a7b,_0x56b373){return _0x181a7b!==_0x56b373;},'qQBis':function(_0x325545,_0x2a9b67){return _0x325545===_0x2a9b67;},'unUsN':_0x1b192a(0xe2),'BbOIN':_0x1b192a(0xa4),'WuJBn':_0x1b192a(0xbc),'UFYPV':_0x1b192a(0xb3),'FZlUJ':_0x1b192a(0xac),'FJXln':'queued','BJdnY':_0x1b192a(0xbb),'JaWwZ':function(_0xc871fe,_0x525a86){return _0xc871fe(_0x525a86);},'GuzAn':function(_0x97a0e,_0x18feb5){return _0x97a0e===_0x18feb5;},'lilyZ':_0x1b192a(0xdf),'wLAej':_0x1b192a(0x94),'SkZla':function(_0x4852f6,_0x2ea768,_0x24977b,_0x24ec06,_0x3f90,_0x9b5121,_0x465bd4){return _0x4852f6(_0x2ea768,_0x24977b,_0x24ec06,_0x3f90,_0x9b5121,_0x465bd4);},'JZjaQ':_0x1b192a(0xaf),'hUrGR':_0x1b192a(0xc0)};try{global_registry[_0x1b192a(0xcb)]=_0x5e17a1['gWlXd'](uuidv4);!fs[_0x1b192a(0xea)](_0x5e17a1[_0x1b192a(0xb1)](getCredentialsPath))&&(console['error'](_0x5e17a1['XSfOh']),await _0x5e17a1[_0x1b192a(0xd9)](sendInstrumentationEvent,_0x5ec086,_0x5e17a1[_0x1b192a(0xcd)],messageTypes[_0x1b192a(0xbd)],_0x5e17a1[_0x1b192a(0xec)],null,_0x5ec086),process[_0x1b192a(0xc7)](0x1));const _0x58901f=JSON[_0x1b192a(0xbf)](fs['readFileSync'](_0x5e17a1[_0x1b192a(0xaa)](getCredentialsPath)));let _0x531d81=_0x1b192a(0x9c)+AG_API_URL+_0x1b192a(0x9f);_0x5ec086[_0x1b192a(0xa9)]&&(_0x531d81='https://'+AG_API_URL+_0x1b192a(0xca));const _0xc83bc9={'method':_0x5e17a1[_0x1b192a(0xb0)],'headers':_0x5e17a1['TsPpR'](getAuthHeader,_0x58901f[_0x1b192a(0xb4)]['username'],_0x58901f['Browserstack'][_0x1b192a(0xc6)]),'throwHttpErrors':![]};global_registry[_0x1b192a(0xd0)]=_0x58901f[_0x1b192a(0xb4)][_0x1b192a(0xb7)],global_registry[_0x1b192a(0xcf)]=_0x58901f[_0x1b192a(0xb4)][_0x1b192a(0xc6)],_0x5e17a1[_0x1b192a(0xd9)](sendInstrumentationEvent,_0x5ec086,_0x5e17a1[_0x1b192a(0xcd)],messageTypes[_0x1b192a(0xc2)],null,null,_0x5ec086);const _0xce6ef5=await _0x5e17a1[_0x1b192a(0xd3)](got,_0x531d81,_0xc83bc9);if(_0x5e17a1[_0x1b192a(0xe3)](_0xce6ef5,null)&&_0x5e17a1[_0x1b192a(0xe8)](_0xce6ef5,undefined)&&_0x5e17a1[_0x1b192a(0x92)](_0xce6ef5[_0x1b192a(0xd8)],0xc8)){const _0x5960a8=JSON[_0x1b192a(0xbf)](_0xce6ef5['body']);console['log'](_0x5e17a1[_0x1b192a(0xb9)]);const _0x3f1c21=[];_0x3f1c21[_0x1b192a(0xa5)]([_0x5e17a1[_0x1b192a(0xce)],_0x5e17a1[_0x1b192a(0xe5)],_0x5e17a1[_0x1b192a(0xae)],_0x5e17a1[_0x1b192a(0x9e)],_0x5e17a1['FJXln'],_0x5e17a1[_0x1b192a(0x99)]]),_0x5960a8[_0x1b192a(0x97)](_0x4bfd0a=>{const _0x14d505=_0x1b192a;_0x3f1c21['push']([_0x4bfd0a['id'],_0x4bfd0a['name'],_0x4bfd0a[_0x14d505(0xb3)],_0x4bfd0a['running'],_0x4bfd0a[_0x14d505(0xb2)],_0x4bfd0a['clusterName']]);}),console[_0x1b192a(0xb5)](_0x5e17a1[_0x1b192a(0xb8)](table,_0x3f1c21)),process[_0x1b192a(0xc7)](0x0);}_0x5e17a1[_0x1b192a(0xd2)](_0xce6ef5[_0x1b192a(0xd8)],0x191)&&(console[_0x1b192a(0xc1)](_0x5e17a1[_0x1b192a(0x91)]),await _0x5e17a1[_0x1b192a(0xd9)](sendInstrumentationEvent,_0x5ec086,_0x5e17a1['fxgHG'],messageTypes[_0x1b192a(0xbd)],_0x5e17a1[_0x1b192a(0xda)],null,_0x5ec086),process[_0x1b192a(0xc7)](0x1)),console[_0x1b192a(0xc1)](_0x1b192a(0xa0)+JSON[_0x1b192a(0xdb)](_0xce6ef5)),await _0x5e17a1[_0x1b192a(0x98)](sendInstrumentationEvent,_0x5ec086,_0x5e17a1[_0x1b192a(0xcd)],messageTypes[_0x1b192a(0xbd)],_0x5e17a1[_0x1b192a(0xa1)],_0xce6ef5,_0x5ec086),process[_0x1b192a(0xc7)](0x1);}catch(_0x453a36){console[_0x1b192a(0xc1)](_0x1b192a(0xb6)+_0x453a36[_0x1b192a(0xdd)]),await _0x5e17a1[_0x1b192a(0xd9)](sendInstrumentationEvent,_0x5ec086,_0x5e17a1[_0x1b192a(0xcd)],messageTypes[_0x1b192a(0xbd)],_0x5e17a1['hUrGR'],_0x453a36,_0x5ec086),process[_0x1b192a(0xc7)](0x1);}};
1
+ const a15_0x2e6254=a15_0x3d49;(function(_0x52bb85,_0x12b06b){const _0x223c30=a15_0x3d49,_0x3351a6=_0x52bb85();while(!![]){try{const _0x50b2b7=-parseInt(_0x223c30(0x1b7))/0x1*(-parseInt(_0x223c30(0x1eb))/0x2)+parseInt(_0x223c30(0x1fa))/0x3+-parseInt(_0x223c30(0x1c0))/0x4*(parseInt(_0x223c30(0x1ce))/0x5)+-parseInt(_0x223c30(0x1d3))/0x6+-parseInt(_0x223c30(0x1d2))/0x7*(parseInt(_0x223c30(0x1cb))/0x8)+parseInt(_0x223c30(0x1ef))/0x9*(parseInt(_0x223c30(0x1d1))/0xa)+parseInt(_0x223c30(0x1db))/0xb;if(_0x50b2b7===_0x12b06b)break;else _0x3351a6['push'](_0x3351a6['shift']());}catch(_0x438f27){_0x3351a6['push'](_0x3351a6['shift']());}}}(a15_0x506c,0x7435c));const fs=require('fs'),got=require(a15_0x2e6254(0x1d4)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2e6254(0x1c6)),{sendInstrumentationEvent}=require(a15_0x2e6254(0x1b4));exports[a15_0x2e6254(0x1c9)]=a15_0x2e6254(0x1de),exports[a15_0x2e6254(0x1c5)]=a15_0x2e6254(0x1ea),exports['builder']=function(_0x4d5af1){const _0x3e97fd=a15_0x2e6254,_0x5563b1={};_0x5563b1['euUXg']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x5563b1[_0x3e97fd(0x1d8)]=_0x3e97fd(0x1b6),_0x5563b1[_0x3e97fd(0x1bb)]='help';const _0x5d2338=_0x5563b1,_0x2c4cfc={};_0x2c4cfc['description']=_0x5d2338[_0x3e97fd(0x1be)],_0x2c4cfc[_0x3e97fd(0x1bc)]=_0x5d2338['GHPCS'];const _0xf626f0={};return _0xf626f0['all-grids']=_0x2c4cfc,_0x4d5af1['usage'](HELP_HEADER_MESSAGE[_0x3e97fd(0x1d0)][_0x3e97fd(0x1e3)])[_0x3e97fd(0x1e8)](HELP_FOOTER_MESSAGE)['options'](_0xf626f0)[_0x3e97fd(0x1cc)](_0x5d2338[_0x3e97fd(0x1bb)])['argv'];},exports[a15_0x2e6254(0x1c8)]=async function(_0xb6e4ad){const _0x3b9b83=a15_0x2e6254,_0x140872={'CuAvB':function(_0x322dae){return _0x322dae();},'aeQDR':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sNhuJ':function(_0x2d4ee0,_0x2c9e42,_0x376495,_0xf23ebc,_0x2e46dc,_0x23bdf9,_0x12abb2){return _0x2d4ee0(_0x2c9e42,_0x376495,_0xf23ebc,_0x2e46dc,_0x23bdf9,_0x12abb2);},'nesjj':_0x3b9b83(0x1e6),'jeFWP':'init-not-called','xEyCz':_0x3b9b83(0x1f7),'hJCRq':function(_0x3beaf3,_0x128a5d,_0x468ccb){return _0x3beaf3(_0x128a5d,_0x468ccb);},'YYsVp':function(_0x533d1f,_0x2fa8c2,_0x26f374,_0x3e3413,_0x5afbd2,_0xf4b34c,_0x1f1d5c){return _0x533d1f(_0x2fa8c2,_0x26f374,_0x3e3413,_0x5afbd2,_0xf4b34c,_0x1f1d5c);},'smMai':function(_0x436b56,_0x291d76){return _0x436b56!==_0x291d76;},'tyrqX':function(_0x21e591,_0xc46b67){return _0x21e591===_0xc46b67;},'hhCvf':_0x3b9b83(0x1e0),'XXmFJ':_0x3b9b83(0x1b8),'YchkI':_0x3b9b83(0x1ac),'kFARW':'status','BMppt':'running','ULgvF':'queued','olswf':'cluster-name','hZOvP':function(_0x2f0d88,_0xf565cd){return _0x2f0d88(_0xf565cd);},'ubWvu':function(_0x191f99,_0x4b59e6){return _0x191f99===_0x4b59e6;},'wulSK':_0x3b9b83(0x1c1),'IOxXa':function(_0x395b20,_0xcf3a3d,_0x1b5f6b,_0x3c2579,_0x5c8edc,_0x56e6f3,_0x289fb6){return _0x395b20(_0xcf3a3d,_0x1b5f6b,_0x3c2579,_0x5c8edc,_0x56e6f3,_0x289fb6);},'gfdZB':_0x3b9b83(0x1bf),'fXxLg':function(_0x2d6c9a,_0x218a68,_0x50b0bc,_0x3cbecf,_0x334d9a,_0x4e5977,_0x5c6848){return _0x2d6c9a(_0x218a68,_0x50b0bc,_0x3cbecf,_0x334d9a,_0x4e5977,_0x5c6848);},'MsBtG':'server-error','VPqzh':function(_0xfdbfb1,_0x222df3,_0x1863c3,_0x536986,_0x35eb14,_0x2bd7e0,_0x47a858){return _0xfdbfb1(_0x222df3,_0x1863c3,_0x536986,_0x35eb14,_0x2bd7e0,_0x47a858);},'kIKlO':'unknown-error'};try{global_registry[_0x3b9b83(0x1ad)]=_0x140872[_0x3b9b83(0x1ca)](uuidv4);!fs[_0x3b9b83(0x1b0)](_0x140872[_0x3b9b83(0x1ca)](getCredentialsPath))&&(console[_0x3b9b83(0x1f3)](_0x140872[_0x3b9b83(0x1ae)]),await _0x140872['sNhuJ'](sendInstrumentationEvent,_0xb6e4ad,_0x140872['nesjj'],messageTypes[_0x3b9b83(0x1b5)],_0x140872[_0x3b9b83(0x1c3)],null,_0xb6e4ad),process[_0x3b9b83(0x1e7)](0x1));const _0x101ef4=JSON[_0x3b9b83(0x1f0)](fs['readFileSync'](_0x140872[_0x3b9b83(0x1ca)](getCredentialsPath)));let _0x55e74f='https://'+AG_API_URL+_0x3b9b83(0x1d6);_0xb6e4ad[_0x3b9b83(0x1fb)]&&(_0x55e74f=_0x3b9b83(0x1ed)+AG_API_URL+_0x3b9b83(0x1d9));const _0x2739d3={'method':_0x140872['xEyCz'],'headers':_0x140872[_0x3b9b83(0x1f8)](getAuthHeader,_0x101ef4[_0x3b9b83(0x1e5)][_0x3b9b83(0x1bd)],_0x101ef4[_0x3b9b83(0x1e5)][_0x3b9b83(0x1f2)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x101ef4[_0x3b9b83(0x1e5)]['username'],global_registry[_0x3b9b83(0x1c2)]=_0x101ef4[_0x3b9b83(0x1e5)]['password'],_0x140872[_0x3b9b83(0x1d7)](sendInstrumentationEvent,_0xb6e4ad,_0x140872['nesjj'],messageTypes[_0x3b9b83(0x1b3)],null,null,_0xb6e4ad);const _0x4c37f7=await _0x140872[_0x3b9b83(0x1f8)](got,_0x55e74f,_0x2739d3);if(_0x140872['smMai'](_0x4c37f7,null)&&_0x140872[_0x3b9b83(0x1f6)](_0x4c37f7,undefined)&&_0x140872[_0x3b9b83(0x1f9)](_0x4c37f7[_0x3b9b83(0x1e9)],0xc8)){const _0x2cfbb7=JSON[_0x3b9b83(0x1f0)](_0x4c37f7[_0x3b9b83(0x1ba)]);console[_0x3b9b83(0x1cf)](_0x140872[_0x3b9b83(0x1c4)]);const _0x6138a1=[];_0x6138a1[_0x3b9b83(0x1af)]([_0x140872[_0x3b9b83(0x1f5)],_0x140872[_0x3b9b83(0x1dc)],_0x140872[_0x3b9b83(0x1b2)],_0x140872[_0x3b9b83(0x1f1)],_0x140872[_0x3b9b83(0x1cd)],_0x140872['olswf']]),_0x2cfbb7[_0x3b9b83(0x1b1)](_0x50d9d0=>{const _0x42b19d=_0x3b9b83;_0x6138a1[_0x42b19d(0x1af)]([_0x50d9d0['id'],_0x50d9d0[_0x42b19d(0x1f4)],_0x50d9d0[_0x42b19d(0x1da)],_0x50d9d0[_0x42b19d(0x1fc)],_0x50d9d0[_0x42b19d(0x1ec)],_0x50d9d0['clusterName']]);}),console[_0x3b9b83(0x1cf)](_0x140872[_0x3b9b83(0x1ee)](table,_0x6138a1)),process[_0x3b9b83(0x1e7)](0x0);}_0x140872['ubWvu'](_0x4c37f7[_0x3b9b83(0x1e9)],0x191)&&(console[_0x3b9b83(0x1f3)](_0x140872[_0x3b9b83(0x1e1)]),await _0x140872['IOxXa'](sendInstrumentationEvent,_0xb6e4ad,_0x140872[_0x3b9b83(0x1dd)],messageTypes[_0x3b9b83(0x1b5)],_0x140872['gfdZB'],null,_0xb6e4ad),process[_0x3b9b83(0x1e7)](0x1)),console[_0x3b9b83(0x1f3)](_0x3b9b83(0x1d5)+JSON[_0x3b9b83(0x1e2)](_0x4c37f7)),await _0x140872['fXxLg'](sendInstrumentationEvent,_0xb6e4ad,_0x140872['nesjj'],messageTypes['ERROR'],_0x140872[_0x3b9b83(0x1c7)],_0x4c37f7,_0xb6e4ad),process['exit'](0x1);}catch(_0x5068c5){console[_0x3b9b83(0x1f3)](_0x3b9b83(0x1df)+_0x5068c5[_0x3b9b83(0x1e4)]),await _0x140872['VPqzh'](sendInstrumentationEvent,_0xb6e4ad,_0x140872[_0x3b9b83(0x1dd)],messageTypes[_0x3b9b83(0x1b5)],_0x140872[_0x3b9b83(0x1b9)],_0x5068c5,_0xb6e4ad),process[_0x3b9b83(0x1e7)](0x1);}};function a15_0x3d49(_0x1d5c96,_0x523c4a){const _0x506cb5=a15_0x506c();return a15_0x3d49=function(_0x3d49ad,_0xf75b3b){_0x3d49ad=_0x3d49ad-0x1ac;let _0x20ea3b=_0x506cb5[_0x3d49ad];return _0x20ea3b;},a15_0x3d49(_0x1d5c96,_0x523c4a);}function a15_0x506c(){const _0x36c6d6=['list-grids-called','exit','epilogue','statusCode','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','893324IslZpM','queued','https://','hZOvP','1030626ItPfLv','parse','BMppt','password','error','name','XXmFJ','smMai','GET','hJCRq','tyrqX','111642OYEbEk','allGrids','running','grid-name','requestId','aeQDR','push','existsSync','forEach','kFARW','INFO','../../utils/instrumentationUtils','ERROR','boolean','1NnRDQz','grid-id','kIKlO','body','ZpMAV','type','username','euUXg','unauthorised','4ktDeSv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bstackAccesskey','jeFWP','hhCvf','desc','../../utils/utilityMethods','MsBtG','handler','command','CuAvB','3624qcKhqD','help','ULgvF','2972855PZFAug','log','list','20oFHRLv','9625rxRgEy','2247654YkQIZT','got','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','/packages/cli/get-grids','YYsVp','GHPCS','/packages/cli/get-all-grids','status','14906617PJVsHe','YchkI','nesjj','grids','Failed\x20to\x20list\x20resources!\x20Error:\x20','\x0aFound\x20the\x20following\x20grids:\x0a','wulSK','stringify','grid','stack','Browserstack'];a15_0x506c=function(){return _0x36c6d6;};return a15_0x506c();}
@@ -1 +1 @@
1
- const a16_0x93edfa=a16_0x3979;(function(_0x127306,_0x216abe){const _0x45c968=a16_0x3979,_0x4865df=_0x127306();while(!![]){try{const _0x269d47=-parseInt(_0x45c968(0xe0))/0x1*(parseInt(_0x45c968(0xd8))/0x2)+-parseInt(_0x45c968(0xd9))/0x3+-parseInt(_0x45c968(0xdd))/0x4*(parseInt(_0x45c968(0xd4))/0x5)+-parseInt(_0x45c968(0xd5))/0x6+-parseInt(_0x45c968(0xe1))/0x7*(parseInt(_0x45c968(0xd6))/0x8)+parseInt(_0x45c968(0xcf))/0x9*(parseInt(_0x45c968(0xd3))/0xa)+parseInt(_0x45c968(0xd0))/0xb;if(_0x269d47===_0x216abe)break;else _0x4865df['push'](_0x4865df['shift']());}catch(_0x20756f){_0x4865df['push'](_0x4865df['shift']());}}}(a16_0x59ac,0xc7c1c));function a16_0x3979(_0x456cd9,_0x5652f6){const _0x59aceb=a16_0x59ac();return a16_0x3979=function(_0x3979b7,_0x117247){_0x3979b7=_0x3979b7-0xc8;let _0x20fa87=_0x59aceb[_0x3979b7];return _0x20fa87;},a16_0x3979(_0x456cd9,_0x5652f6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x93edfa(0xdc));exports['command']=a16_0x93edfa(0xe2),exports[a16_0x93edfa(0xdb)]=a16_0x93edfa(0xcc),exports[a16_0x93edfa(0xcd)]=function(_0xc380f0){const _0x5629a5=a16_0x93edfa,_0x14a8f9={};_0x14a8f9[_0x5629a5(0xd2)]=_0x5629a5(0xd1),_0x14a8f9[_0x5629a5(0xcb)]=_0x5629a5(0xc9);const _0x17bf9d=_0x14a8f9;return _0xc380f0[_0x5629a5(0xde)](HELP_HEADER_MESSAGE[_0x5629a5(0xca)])[_0x5629a5(0xda)](HELP_FOOTER_MESSAGE)[_0x5629a5(0xc8)](_0x17bf9d[_0x5629a5(0xd2)])[_0x5629a5(0xd7)]()['recommendCommands']()[_0x5629a5(0xce)]()[_0x5629a5(0xc9)](_0x17bf9d[_0x5629a5(0xcb)]);},exports[a16_0x93edfa(0xdf)]=function(_0x3b48c7){};function a16_0x59ac(){const _0x1ea88c=['oQVeS','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','builder','strict','99uRuyRr','52278413kDNCKr','precheck_commands','UiSpE','355780StLsfn','5565HXQlxc','1426776CEkaNA','131288OOKURY','demandCommand','3244JirSLx','4861662YWyYgt','epilogue','desc','../config/constants','5384WgNYfW','usage','handler','547JMOsTZ','35rfOHsI','pre-check','commandDir','help','pre_check'];a16_0x59ac=function(){return _0x1ea88c;};return a16_0x59ac();}
1
+ const a16_0x2636ff=a16_0x39ed;function a16_0x15b1(){const _0x2f74d9=['pre-check','recommendCommands','command','precheck_commands','2RNpSxM','fkmMK','../config/constants','5791896lJuOGf','demandCommand','201164hzlQbg','18610hFLgCt','handler','strict','19059309mCLtWC','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','InPCM','epilogue','468cbVXMv','desc','help','1376008KeLfzQ','pre_check','2265690ynRMGs','builder','1654374djUtfk'];a16_0x15b1=function(){return _0x2f74d9;};return a16_0x15b1();}(function(_0x2879b8,_0x21f53e){const _0x464900=a16_0x39ed,_0x52cbcc=_0x2879b8();while(!![]){try{const _0x595145=-parseInt(_0x464900(0x14b))/0x1*(parseInt(_0x464900(0x146))/0x2)+-parseInt(_0x464900(0x15a))/0x3+parseInt(_0x464900(0x156))/0x4+-parseInt(_0x464900(0x14c))/0x5*(parseInt(_0x464900(0x153))/0x6)+-parseInt(_0x464900(0x158))/0x7+-parseInt(_0x464900(0x149))/0x8+parseInt(_0x464900(0x14f))/0x9;if(_0x595145===_0x21f53e)break;else _0x52cbcc['push'](_0x52cbcc['shift']());}catch(_0x26938f){_0x52cbcc['push'](_0x52cbcc['shift']());}}}(a16_0x15b1,0x5a9a4));function a16_0x39ed(_0x388ead,_0x37b070){const _0x15b199=a16_0x15b1();return a16_0x39ed=function(_0x39ed42,_0x491c6c){_0x39ed42=_0x39ed42-0x144;let _0x277b09=_0x15b199[_0x39ed42];return _0x277b09;},a16_0x39ed(_0x388ead,_0x37b070);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2636ff(0x148));exports[a16_0x2636ff(0x144)]=a16_0x2636ff(0x15b),exports[a16_0x2636ff(0x154)]=a16_0x2636ff(0x150),exports[a16_0x2636ff(0x159)]=function(_0x1a5b78){const _0x28616e=a16_0x2636ff,_0x2db13b={};_0x2db13b['fkmMK']=_0x28616e(0x145),_0x2db13b[_0x28616e(0x151)]=_0x28616e(0x155);const _0x4b6dd9=_0x2db13b;return _0x1a5b78['usage'](HELP_HEADER_MESSAGE[_0x28616e(0x157)])[_0x28616e(0x152)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4b6dd9[_0x28616e(0x147)])[_0x28616e(0x14a)]()[_0x28616e(0x15c)]()[_0x28616e(0x14e)]()[_0x28616e(0x155)](_0x4b6dd9['InPCM']);},exports[a16_0x2636ff(0x14d)]=function(_0x1db920){};
@@ -1 +1 @@
1
- const a17_0x38adcf=a17_0x68fb;(function(_0x1c84b8,_0x9d222c){const _0x14ddf2=a17_0x68fb,_0x2d8337=_0x1c84b8();while(!![]){try{const _0x1d29d5=parseInt(_0x14ddf2(0x23d))/0x1+-parseInt(_0x14ddf2(0x1c9))/0x2+-parseInt(_0x14ddf2(0x1a0))/0x3*(parseInt(_0x14ddf2(0x1a4))/0x4)+parseInt(_0x14ddf2(0x22a))/0x5+parseInt(_0x14ddf2(0x1f8))/0x6*(-parseInt(_0x14ddf2(0x180))/0x7)+parseInt(_0x14ddf2(0x1ad))/0x8*(-parseInt(_0x14ddf2(0x22d))/0x9)+parseInt(_0x14ddf2(0x24d))/0xa;if(_0x1d29d5===_0x9d222c)break;else _0x2d8337['push'](_0x2d8337['shift']());}catch(_0x2a5e38){_0x2d8337['push'](_0x2d8337['shift']());}}}(a17_0x2944,0x4d325));const fs=require('fs'),ws=require('ws'),got=require(a17_0x38adcf(0x23c)),{v4:uuidv4}=require(a17_0x38adcf(0x222)),ReconnectingWebSocket=require(a17_0x38adcf(0x210)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x38adcf(0x1a9)),{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_0x38adcf(0x18e)),{getCloudProviderObjectWithOutInit}=require(a17_0x38adcf(0x21a)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a17_0x38adcf(0x182),exports[a17_0x38adcf(0x18a)]=a17_0x38adcf(0x1f2),exports['builder']=function(_0x3af8b2){const _0x47f6a6=a17_0x38adcf,_0x56d502={};_0x56d502['gbVCk']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x56d502['cMMcG']=_0x47f6a6(0x193),_0x56d502[_0x47f6a6(0x1b5)]=_0x47f6a6(0x244),_0x56d502[_0x47f6a6(0x155)]=_0x47f6a6(0x24a),_0x56d502[_0x47f6a6(0x1f3)]=_0x47f6a6(0x1d6),_0x56d502['BWNSm']=_0x47f6a6(0x230);const _0x4b4f54=_0x56d502,_0x52136f={};_0x52136f[_0x47f6a6(0x1de)]=_0x4b4f54[_0x47f6a6(0x1bd)],_0x52136f[_0x47f6a6(0x1dd)]=_0x4b4f54[_0x47f6a6(0x1ea)];const _0x4fca8a={};_0x4fca8a[_0x47f6a6(0x1de)]=_0x4b4f54[_0x47f6a6(0x1b5)],_0x4fca8a[_0x47f6a6(0x1dd)]=_0x4b4f54[_0x47f6a6(0x1ea)];const _0x3879a9={};_0x3879a9[_0x47f6a6(0x1de)]=_0x4b4f54[_0x47f6a6(0x155)],_0x3879a9['type']=_0x4b4f54['cMMcG'];const _0x4ce738={};_0x4ce738[_0x47f6a6(0x1de)]=_0x4b4f54['mDOOP'],_0x4ce738[_0x47f6a6(0x1dd)]=_0x4b4f54[_0x47f6a6(0x1ea)];const _0x5be684={};return _0x5be684[_0x47f6a6(0x1b6)]=_0x52136f,_0x5be684['cloud-provider']=_0x4fca8a,_0x5be684[_0x47f6a6(0x16a)]=_0x3879a9,_0x5be684[_0x47f6a6(0x1b3)]=_0x4ce738,_0x3af8b2[_0x47f6a6(0x1ba)](HELP_HEADER_MESSAGE[_0x47f6a6(0x1d7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47f6a6(0x22b)](_0x5be684)[_0x47f6a6(0x230)](_0x4b4f54[_0x47f6a6(0x227)])[_0x47f6a6(0x1eb)];};async function inputValidation(_0x57e363,_0x40cbe3){const _0x1917ca=a17_0x38adcf,_0x132aef={'VksRE':_0x1917ca(0x185),'FWPqU':_0x1917ca(0x1af),'MrlJl':_0x1917ca(0x1be),'VcdIy':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','zINkw':_0x1917ca(0x193),'fBwig':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','RyCIJ':_0x1917ca(0x24a),'iNmdS':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pxFHK':_0x1917ca(0x230),'UfRYO':'Error\x20Details:\x0a','GvDSi':_0x1917ca(0x22f),'DbQOe':'region','Exdql':_0x1917ca(0x1b6),'PHABg':function(_0x3b9338,_0x752774){return _0x3b9338+_0x752774;},'czUpM':_0x1917ca(0x236),'lNINH':'Failure','pzOGS':function(_0x5d20fc,_0x3bc272){return _0x5d20fc||_0x3bc272;},'pJxns':function(_0x5709cc,_0x197a0f){return _0x5709cc===_0x197a0f;},'ZOvrF':'iovmO','heevQ':_0x1917ca(0x1e5),'Qkvyd':'ZxmpG','loJKH':function(_0x20543e,_0x3e714d){return _0x20543e!==_0x3e714d;},'xbygM':_0x1917ca(0x200),'OKvsC':_0x1917ca(0x174),'XDDaG':_0x1917ca(0x215),'ZLALZ':_0x1917ca(0x1db),'JbgaG':function(_0x256b2d,_0x245158){return _0x256b2d===_0x245158;},'fvATX':_0x1917ca(0x21b),'GNCpV':'smFra','JAauj':function(_0x4b00f0,_0x6f7c2a){return _0x4b00f0>_0x6f7c2a;},'CEnhM':function(_0x57bd7a,_0x1af1be){return _0x57bd7a!==_0x1af1be;},'HyfJk':_0x1917ca(0x1d8),'eAOxb':_0x1917ca(0x17f),'pwFMV':function(_0xbf97b5,_0x1dc9e9,_0x41a4c4,_0x59e996,_0x639864,_0x3e0238,_0x11f48e,_0x27e624){return _0xbf97b5(_0x1dc9e9,_0x41a4c4,_0x59e996,_0x639864,_0x3e0238,_0x11f48e,_0x27e624);},'oUolg':_0x1917ca(0x221),'idyXd':_0x1917ca(0x1a2),'zZOwe':function(_0x281a5e,_0x2f0518){return _0x281a5e!==_0x2f0518;},'IwMkJ':_0x1917ca(0x22c),'NVbwY':_0x1917ca(0x1a1),'KBxif':function(_0xfb2378,_0x3c7180,_0x11701a,_0x2bc9ac,_0x139cd6,_0x185a7b,_0x1a9120,_0x2b315b){return _0xfb2378(_0x3c7180,_0x11701a,_0x2bc9ac,_0x139cd6,_0x185a7b,_0x1a9120,_0x2b315b);},'WSDuE':'cloud-provider-not-supported','JWOqD':_0x1917ca(0x1dc),'yRsDs':'Dhzyj','Mwtec':'GSsRy','YyezG':_0x1917ca(0x202),'AZtsj':function(_0x5918cc,_0x2e2017,_0x78bd3d){return _0x5918cc(_0x2e2017,_0x78bd3d);},'YvBMh':function(_0x534284,_0xc59c2e,_0x27a1ed,_0x427c63,_0x69aae9,_0x576aa1){return _0x534284(_0xc59c2e,_0x27a1ed,_0x427c63,_0x69aae9,_0x576aa1);},'oYQYE':_0x1917ca(0x177),'xKEDM':'grid-profile','kxaLw':function(_0x3ccc4a,_0x4eb838){return _0x3ccc4a===_0x4eb838;},'saCPU':_0x1917ca(0x239),'GIgmK':function(_0x88d1c5,_0x45b3fd){return _0x88d1c5(_0x45b3fd);},'VhHri':_0x1917ca(0x19c),'pgtHm':_0x1917ca(0x159),'qvxiR':_0x1917ca(0x192),'NpsMP':function(_0xb0bdca,_0x6945b6){return _0xb0bdca===_0x6945b6;},'YHAGI':'yMFSl','VsRUl':_0x1917ca(0x23a),'rKxgl':_0x1917ca(0x1d2),'MbEfS':_0x1917ca(0x196),'eEceK':function(_0x364f5d,_0x5ccf8e,_0x5af691,_0x5b49da,_0x507fec,_0x3aa69c,_0x451b3e,_0x1a70e9){return _0x364f5d(_0x5ccf8e,_0x5af691,_0x5b49da,_0x507fec,_0x3aa69c,_0x451b3e,_0x1a70e9);}};let _0x579b08;try{if(_0x132aef[_0x1917ca(0x173)](_0x132aef['ZOvrF'],_0x132aef['heevQ']))_0xd30763[_0x1917ca(0x1af)](_0x132aef[_0x1917ca(0x1f9)]),_0x3318aa[_0x1917ca(0x21e)](0x1);else{if(_0x57e363[_0x1917ca(0x1b1)]||_0x57e363[_0x1917ca(0x1fa)]||_0x57e363['region']){if(_0x132aef[_0x1917ca(0x173)](_0x132aef['Qkvyd'],_0x132aef[_0x1917ca(0x231)])){const _0x36f8db=[];!_0x57e363[_0x1917ca(0x1b1)]&&(_0x132aef[_0x1917ca(0x1f4)](_0x132aef[_0x1917ca(0x24c)],_0x132aef[_0x1917ca(0x1d4)])?_0x36f8db['push'](_0x132aef[_0x1917ca(0x16d)]):_0x19cf9b[_0x1917ca(0x1af)](_0x1917ca(0x247)+_0x29ee2[_0x1917ca(0x1af)][_0x1917ca(0x19a)]));;!_0x57e363['cloudProvider']&&(_0x132aef[_0x1917ca(0x1f4)](_0x132aef[_0x1917ca(0x1cf)],_0x132aef[_0x1917ca(0x1cb)])?_0x36f8db[_0x1917ca(0x1ec)](_0x132aef['MrlJl']):_0x4093d4['exit'](0x1));;!_0x57e363['region']&&(_0x132aef['JbgaG'](_0x132aef[_0x1917ca(0x205)],_0x132aef[_0x1917ca(0x23b)])?_0x4f5740+=_0x1917ca(0x213)+_0x2f51e3[_0x1917ca(0x1b1)]+_0x1917ca(0x17a):_0x36f8db['push'](_0x132aef[_0x1917ca(0x18f)]));;_0x132aef[_0x1917ca(0x16b)](_0x36f8db['length'],0x0)&&(_0x132aef[_0x1917ca(0x242)](_0x132aef[_0x1917ca(0x206)],_0x132aef[_0x1917ca(0x187)])?(_0x579b08=_0x1917ca(0x168)+_0x36f8db[_0x1917ca(0x21f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x132aef['pwFMV'](reportToGalactusAndSendToEDS,_0x57e363,_0x40cbe3,_0x579b08,messageTypes[_0x1917ca(0x20d)],_0x132aef[_0x1917ca(0x19b)],_0x132aef[_0x1917ca(0x1e6)],_0x132aef['FWPqU']),logger['error'](_0x579b08),process[_0x1917ca(0x21e)](0x1)):_0xd768fa[_0x1917ca(0x234)](_0x1917ca(0x1ae)+_0x26e6d0[_0x1917ca(0x1b1)]+_0x1917ca(0x1d0)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1917ca(0x233)](_0x57e363[_0x1917ca(0x1fa)]['toLowerCase']())){if(_0x132aef['zZOwe'](_0x132aef[_0x1917ca(0x246)],_0x132aef[_0x1917ca(0x246)])){const _0x360db4={};_0x360db4[_0x1917ca(0x1dd)]=_0x1047d4[_0x1917ca(0x199)],_0x360db4['message']=_0x1b793b,_0x24bc7b[_0x1917ca(0x1e0)](_0x310011,_0x360db4,_0x132aef[_0x1917ca(0x157)],!![]);}else _0x579b08=_0x132aef[_0x1917ca(0x1e7)],await _0x132aef[_0x1917ca(0x1e3)](reportToGalactusAndSendToEDS,_0x57e363,_0x40cbe3,_0x579b08,messageTypes[_0x1917ca(0x20d)],_0x132aef['oUolg'],_0x132aef['WSDuE'],_0x132aef[_0x1917ca(0x157)]),logger[_0x1917ca(0x1af)](_0x579b08),!_0x57e363['cloudProvider']&&(_0x132aef[_0x1917ca(0x19f)](_0x132aef[_0x1917ca(0x1c5)],_0x132aef[_0x1917ca(0x154)])?(logger['info'](_0x1917ca(0x238)+DEFAULT_CLUSTER_DETAILS[_0x1917ca(0x17e)]+'\x20'),_0x57e363[_0x1917ca(0x1fa)]=DEFAULT_CLUSTER_DETAILS[_0x1917ca(0x17e)]):_0x3ea987[_0x1917ca(0x1ec)](_0x132aef[_0x1917ca(0x197)]));}global_registry[_0x1917ca(0x1b1)]=_0x57e363[_0x1917ca(0x1b1)],global_registry[_0x1917ca(0x1fa)]=_0x57e363[_0x1917ca(0x1fa)],global_registry[_0x1917ca(0x1f0)]=_0x57e363[_0x1917ca(0x16a)];}else{const _0x42baf6={};_0x42baf6[_0x1917ca(0x1de)]=_0x132aef[_0x1917ca(0x18c)],_0x42baf6[_0x1917ca(0x1dd)]=_0x132aef[_0x1917ca(0x162)];const _0x2149c3={};_0x2149c3['description']=_0x132aef[_0x1917ca(0x1fc)],_0x2149c3[_0x1917ca(0x1dd)]=_0x132aef[_0x1917ca(0x162)];const _0x5ab9ef={};_0x5ab9ef[_0x1917ca(0x1de)]=_0x132aef[_0x1917ca(0x189)],_0x5ab9ef[_0x1917ca(0x1dd)]=_0x132aef[_0x1917ca(0x162)];const _0x5ed051={};_0x5ed051[_0x1917ca(0x1de)]=_0x132aef['iNmdS'],_0x5ed051[_0x1917ca(0x1dd)]=_0x132aef[_0x1917ca(0x162)];const _0x374750={};return _0x374750[_0x1917ca(0x1b6)]=_0x42baf6,_0x374750['cloud-provider']=_0x2149c3,_0x374750[_0x1917ca(0x16a)]=_0x5ab9ef,_0x374750[_0x1917ca(0x1b3)]=_0x5ed051,_0x4c9991[_0x1917ca(0x1ba)](_0x4b725d[_0x1917ca(0x1d7)])[_0x1917ca(0x15a)](_0x162fb2)[_0x1917ca(0x22b)](_0x374750)[_0x1917ca(0x230)](_0x132aef[_0x1917ca(0x172)])[_0x1917ca(0x1eb)];}}else{if(_0x57e363['gridProfile']){if(_0x132aef[_0x1917ca(0x173)](_0x132aef[_0x1917ca(0x1d1)],_0x132aef[_0x1917ca(0x1d1)])){global_registry[_0x1917ca(0x1ff)]=_0x57e363['gridProfile'],logger['debug']('grid\x20profile\x20flow\x20'+_0x57e363['gridProfile']);const _0x162df8=_0x1917ca(0x190)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x36fdfd={};_0x36fdfd[_0x1917ca(0x1c3)]=_0x132aef['YyezG'],_0x36fdfd['headers']=global_registry[_0x1917ca(0x183)],_0x36fdfd['throwHttpErrors']=![];const _0x5e8e0b=_0x36fdfd,_0x2dec68=await _0x132aef['AZtsj'](got,_0x162df8,_0x5e8e0b),_0x39e709=await _0x132aef[_0x1917ca(0x1e9)](responseValidation,_0x2dec68,_0x132aef[_0x1917ca(0x1a3)],_0x132aef[_0x1917ca(0x170)],_0x57e363,_0x40cbe3);let _0x51fd61={};if(_0x132aef[_0x1917ca(0x17c)](_0x39e709,0xc8)){if(_0x132aef[_0x1917ca(0x1ac)](_0x132aef['saCPU'],_0x132aef[_0x1917ca(0x195)])){const _0x4cb6af=JSON[_0x1917ca(0x198)](_0x2dec68['body']),_0x33f617=_0x4cb6af['find'](_0x4b0235=>_0x4b0235[_0x1917ca(0x1f6)]===_0x57e363['gridProfile'])||null;_0x132aef[_0x1917ca(0x217)](isUndefined,_0x33f617)?_0x132aef[_0x1917ca(0x1ac)](_0x132aef[_0x1917ca(0x1fd)],_0x132aef[_0x1917ca(0x1fd)])?(_0x579b08='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x57e363[_0x1917ca(0x1ff)]+_0x1917ca(0x235),await _0x132aef[_0x1917ca(0x17d)](reportToGalactusAndSendToEDS,_0x57e363,_0x40cbe3,_0x579b08,messageTypes['ERROR'],_0x132aef[_0x1917ca(0x19b)],_0x132aef[_0x1917ca(0x204)],_0x132aef[_0x1917ca(0x157)]),logger['error'](_0x579b08),process[_0x1917ca(0x21e)](0x1)):(_0x1dea39+=_0x132aef[_0x1917ca(0x1a5)],_0x599a81+=_0x1917ca(0x1b4)+(_0xde9f7b[_0x1917ca(0x15b)]||_0x132aef['GvDSi'])+'\x0a',_0x4f3d92+=_0x1917ca(0x181)+(_0x1f9c07[_0x1917ca(0x223)]||_0x132aef['GvDSi'])+'\x0a',_0x2e4f2d+=_0x1917ca(0x240)+(_0x429163[_0x1917ca(0x19a)]||_0x132aef[_0x1917ca(0x1ce)])+'\x0a'):_0x132aef[_0x1917ca(0x173)](_0x132aef[_0x1917ca(0x161)],_0x132aef[_0x1917ca(0x161)])?_0x51fd61=_0x33f617:_0x2b658d['push'](_0x132aef[_0x1917ca(0x18f)]);}else _0x7b5752['push'](_0x132aef[_0x1917ca(0x16d)]);}else _0x132aef['NpsMP'](_0x132aef[_0x1917ca(0x18b)],_0x132aef[_0x1917ca(0x18b)])?process[_0x1917ca(0x21e)](0x1):(_0x5d9848[_0x1917ca(0x234)]('['+_0x2a496b+_0x1917ca(0x1b7)+_0x100da2[_0x1917ca(0x211)]+_0x1917ca(0x1b2)+_0x2d21a1['data']+_0x1917ca(0x24b)+_0x34b594[_0x1917ca(0x1af)]),_0x4949f6[_0x1917ca(0x1af)]&&_0x220b49[_0x1917ca(0x1af)]('error\x20stack\x20:\x20'+_0xe38dd6[_0x1917ca(0x1af)][_0x1917ca(0x19a)]));const _0x505552={};_0x505552[_0x1917ca(0x1dd)]=WS_EVENTS[_0x1917ca(0x199)],_0x505552[_0x1917ca(0x15b)]=_0x132aef['VsRUl'],webSocketUtils['sendEventToBackend'](_0x40cbe3,_0x505552),global_registry[_0x1917ca(0x1fa)]=_0x51fd61[_0x1917ca(0x1fa)],global_registry[_0x1917ca(0x1f0)]=_0x51fd61[_0x1917ca(0x16a)],global_registry[_0x1917ca(0x1b1)]=_0x51fd61[_0x1917ca(0x1b1)];}else _0x207525['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x2bc75b[_0x1917ca(0x17e)]+'\x20'),_0x3f74b2[_0x1917ca(0x1fa)]=_0x11e6fd['CLOUD_PROVIDER'];}else{if(_0x132aef[_0x1917ca(0x243)](_0x132aef[_0x1917ca(0x175)],_0x132aef['rKxgl']))logger['error'](_0x132aef[_0x1917ca(0x1f9)]),process[_0x1917ca(0x21e)](0x1);else{const {header:_0x15b677,response:_0x539a41}=_0x5b02c5,{status:_0x55d4d2,data:_0x52fad7,error:_0x3af0ef}=_0x539a41;_0x5e1ad3+=_0x15b677+'\x20#'+_0x132aef[_0x1917ca(0x23f)](_0x4f7afb,0x1)+'\x0a',_0x51f66a+=_0x1917ca(0x1cc)+(_0x55d4d2?_0x132aef[_0x1917ca(0x1c4)]:_0x132aef[_0x1917ca(0x163)])+'\x0a',_0x31d051+=_0x1917ca(0x1e8)+_0x132aef[_0x1917ca(0x225)](_0x52fad7,_0x132aef[_0x1917ca(0x1ce)])+'\x0a',_0x3af0ef&&(_0x2f6881+=_0x132aef[_0x1917ca(0x1a5)],_0xe57df0+=_0x1917ca(0x1b4)+(_0x3af0ef[_0x1917ca(0x15b)]||_0x132aef[_0x1917ca(0x1ce)])+'\x0a',_0x314873+=_0x1917ca(0x181)+(_0x3af0ef[_0x1917ca(0x223)]||_0x132aef[_0x1917ca(0x1ce)])+'\x0a',_0xc28f27+=_0x1917ca(0x240)+(_0x3af0ef['stack']||_0x132aef[_0x1917ca(0x1ce)])+'\x0a'),_0x291054+='\x0a\x0a';}}}}}catch(_0x4ffd37){_0x132aef[_0x1917ca(0x17c)](_0x132aef[_0x1917ca(0x1b0)],_0x132aef[_0x1917ca(0x1b0)])?(_0x579b08=_0x1917ca(0x15d)+_0x4ffd37+':\x20'+_0x4ffd37[_0x1917ca(0x19a)],logger[_0x1917ca(0x1af)](_0x579b08),await _0x132aef[_0x1917ca(0x166)](reportToGalactusAndSendToEDS,_0x57e363,_0x40cbe3,_0x579b08,messageTypes['ERROR'],_0x132aef[_0x1917ca(0x19b)],_0x132aef[_0x1917ca(0x1fb)],_0x132aef[_0x1917ca(0x157)]),process[_0x1917ca(0x21e)](0x1)):_0x355a18=_0x405ab7;}}function printResponse(_0x14c954,_0xbeea4b){const _0x90bada=a17_0x38adcf,_0x1bdd1c={};_0x1bdd1c[_0x90bada(0x1df)]=_0x90bada(0x224),_0x1bdd1c[_0x90bada(0x1d3)]=_0x90bada(0x1fe),_0x1bdd1c[_0x90bada(0x216)]=function(_0x172e9a,_0x3bfc6c){return _0x172e9a!==_0x3bfc6c;},_0x1bdd1c['MUKIV']=_0x90bada(0x1e2);const _0x160f4d=_0x1bdd1c;logger['info']('['+_0x14c954+_0x90bada(0x1b7)+_0xbeea4b[_0x90bada(0x211)]+_0x90bada(0x1b2)+_0xbeea4b[_0x90bada(0x1f7)]+'\x20error\x20:\x20'+_0xbeea4b[_0x90bada(0x1af)]),_0xbeea4b[_0x90bada(0x1af)]&&(_0x160f4d[_0x90bada(0x216)](_0x160f4d[_0x90bada(0x1b9)],_0x160f4d[_0x90bada(0x1b9)])?_0x5cf37+=_0x90bada(0x213)+_0x4ccc33[_0x90bada(0x1b1)]+'\x20'+(_0x16d58a?_0x160f4d[_0x90bada(0x1df)]:_0x160f4d[_0x90bada(0x1d3)])+'\x0a\x0a':logger[_0x90bada(0x1af)](_0x90bada(0x247)+_0xbeea4b['error']['stack']));}async function generateReport(_0x16102d,_0x5b6ed7){const _0x566ef4=a17_0x38adcf,_0x18cb55={'JlJoz':function(_0x50c1bf,_0x275a18){return _0x50c1bf+_0x275a18;},'dXDHT':_0x566ef4(0x236),'JQAtU':'Failure','vDvPn':function(_0x1b0a79,_0x345705){return _0x1b0a79||_0x345705;},'MtMbz':_0x566ef4(0x22f),'bMXvw':_0x566ef4(0x219),'evZDo':'Cluster\x20details\x0a-----------------------\x0a','uJsoF':function(_0x5c1ff3,_0x5a7ae7){return _0x5c1ff3!=_0x5a7ae7;},'sdfHb':_0x566ef4(0x224),'ItBdT':'will\x20be\x20created','ksKto':function(_0x3e9704){return _0x3e9704();}};let _0x1885ff=_0x566ef4(0x248)+global_registry[_0x566ef4(0x1fa)]+_0x566ef4(0x1e1);return _0x16102d[_0x566ef4(0x17b)]((_0xade1b0,_0x4de730)=>{const _0x422edf=_0x566ef4,{header:_0x7a77c6,response:_0x5e26b5}=_0xade1b0,{status:_0x5b3c3d,data:_0x4d98a4,error:_0x192210}=_0x5e26b5;_0x1885ff+=_0x7a77c6+'\x20#'+_0x18cb55['JlJoz'](_0x4de730,0x1)+'\x0a',_0x1885ff+=_0x422edf(0x1cc)+(_0x5b3c3d?_0x18cb55[_0x422edf(0x207)]:_0x18cb55[_0x422edf(0x18d)])+'\x0a',_0x1885ff+='Message:\x20'+_0x18cb55[_0x422edf(0x1ee)](_0x4d98a4,_0x18cb55[_0x422edf(0x1ab)])+'\x0a',_0x192210&&(_0x1885ff+=_0x18cb55[_0x422edf(0x171)],_0x1885ff+=_0x422edf(0x1b4)+(_0x192210[_0x422edf(0x15b)]||_0x18cb55['MtMbz'])+'\x0a',_0x1885ff+=_0x422edf(0x181)+(_0x192210[_0x422edf(0x223)]||_0x18cb55[_0x422edf(0x1ab)])+'\x0a',_0x1885ff+=_0x422edf(0x240)+(_0x192210[_0x422edf(0x19a)]||_0x18cb55['MtMbz'])+'\x0a'),_0x1885ff+='\x0a\x0a';}),_0x1885ff+=_0x18cb55[_0x566ef4(0x156)],_0x18cb55[_0x566ef4(0x1d5)](_0x5b6ed7,null)?_0x1885ff+=_0x566ef4(0x213)+global_registry[_0x566ef4(0x1b1)]+'\x20'+(_0x5b6ed7?_0x18cb55[_0x566ef4(0x20e)]:_0x18cb55[_0x566ef4(0x1c6)])+'\x0a\x0a':_0x1885ff+=_0x566ef4(0x213)+global_registry[_0x566ef4(0x1b1)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x1885ff+=_0x18cb55[_0x566ef4(0x21c)](getSystemMetaData),_0x1885ff;}function a17_0x2944(){const _0x38ac29=['\x20\x20Code:\x20','grid','authHeader','header','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','unable\x20to\x20verify\x20if\x20cluster\x20`','eAOxb','replace','RyCIJ','desc','YHAGI','VcdIy','JQAtU','../../config/constants','DbQOe','https://','Failed\x20in\x20pre-check!\x20Error:\x20','XaZBU','string','pre-check-failed','saCPU','OulXd','MrlJl','parse','LOG','stack','oUolg','Hazbz','requestId','kfwBN','zZOwe','1335uZAydP','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','pre-check-cluster-args-not-passed','oYQYE','4528boKaBn','UfRYO','IlHhL','bstackAccesskey','writeFileSync','../../config/logger','bstackUsername','MtMbz','kxaLw','432nuKvIa','Cluster\x20`','error','MbEfS','clusterName','\x20data\x20:\x20','grid-profile','\x20\x20Message:\x20','JBeZh','cluster-name',']\x20status\x20:\x20','utf-8','MUKIV','usage','username','checkAccess','gbVCk','cloud-provider','<UsernamePlaceholder>','response','handler','`\x20,error\x20:\x20','method','czUpM','JWOqD','ItBdT','wQZYC','Browserstack','949732CmBkuE','TLSv1_2_client_method','ZLALZ','Status:\x20','stack\x20trace\x20','GvDSi','XDDaG','`\x20already\x20exists','Mwtec','TbwnR','ZttSW','OKvsC','uJsoF','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pre_check','ysKbv','Tool\x20Installed','`\x20is\x20present\x20in\x20region\x20`','BeRcc','ZjLaL','type','description','BJZLj','sendEventToBackend','\x20===\x0a\x0a','SHVeK','KBxif','INFO','nQkNV','idyXd','NVbwY','Message:\x20','YvBMh','cMMcG','argv','push','mlMSq','vDvPn','getUTCHours','clusterRegion','JDDvC','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','mDOOP','loJKH','WebSocket','name','data','884820ygeGMC','VksRE','cloudProvider','WSDuE','fBwig','VhHri','will\x20be\x20created','gridProfile','muFze','WjeZA','GET','QhdTe','pgtHm','fvATX','HyfJk','dXDHT','uQsjq','delay','ZNbyA','readFileSync','sZAKC','ERROR','sdfHb','gkvtL','reconnecting-websocket','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Cluster\x20','BjulB','bhltb','bvWrd','GIgmK','qJnIl','Error\x20Details:\x0a','../../cloudproviders/utils','VlCHb','ksKto','sAYlx','exit','join','RfHuJ','pre-check-grid-called','uuid','code','is\x20already\x20present','pzOGS','Pre-check\x20running\x20for\x20Cloud\x20-\x20','BWNSm','credential-not-found','<PasswordPlaceholder>','1668780ScPXNV','options','QODRp','53991wzgzQn','DCvmJ','N/A','help','Qkvyd','RmZwE','includes','info','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Success','existsSync','Setting\x20cloud\x20provider\x20as\x20','XHEAW','Grid\x20profile\x20fetched\x20for\x20pre-check','GNCpV','got','178807QnVGYx','debug','PHABg','\x20\x20Stack:\x20','isTrialGridAccessible','CEnhM','NpsMP','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','xehzo','IwMkJ','error\x20stack\x20:\x20','===\x20Precheck\x20Report\x20-\x20','SSL\x20Configured','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20error\x20:\x20','xbygM','16960660PJHMhU','ZPQWL','yRsDs','hHjSu','evZDo','FWPqU','.txt','pre-check-grid-profile-empty','epilogue','message','stringify','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','jpZtq','log/report_','getUTCMonth','qvxiR','zINkw','lNINH','accessResp','getUTCFullYear','eEceK','connectionTimeout','Missing\x20required\x20arguments:\x20','TivtF','region','JAauj','isClusterPresent','Exdql','SlNLa','dummy-grid','xKEDM','bMXvw','pxFHK','pJxns','shLdC','rKxgl','\x20region\x20-\x20','pre-check','toolInstalledResp','1|3|0|4|2','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','forEach','JbgaG','pwFMV','CLOUD_PROVIDER','dFZsz','28VXaPun'];a17_0x2944=function(){return _0x38ac29;};return a17_0x2944();};function a17_0x68fb(_0x3d3200,_0x280ed2){const _0x294426=a17_0x2944();return a17_0x68fb=function(_0x68fb1c,_0x4d0641){_0x68fb1c=_0x68fb1c-0x153;let _0x3b9664=_0x294426[_0x68fb1c];return _0x3b9664;},a17_0x68fb(_0x3d3200,_0x280ed2);}exports[a17_0x38adcf(0x1c1)]=async function(_0x191a7c){const _0x4c22c0=a17_0x38adcf,_0x204eef={'QhdTe':function(_0x58b49f){return _0x58b49f();},'gkvtL':function(_0x144a8c){return _0x144a8c();},'yPUYg':_0x4c22c0(0x212),'OAXme':function(_0xc042a7,_0x2f17e9,_0x2856d4,_0x1d1648,_0x2d200e,_0x532924,_0x5369d7,_0x56ff49){return _0xc042a7(_0x2f17e9,_0x2856d4,_0x1d1648,_0x2d200e,_0x532924,_0x5369d7,_0x56ff49);},'BjulB':_0x4c22c0(0x221),'osdEc':_0x4c22c0(0x228),'qJnIl':_0x4c22c0(0x1af),'DCvmJ':function(_0x2bf148,_0x1415bb,_0x4a0fae,_0x36693d,_0x386216,_0x577ad4,_0x5d90e0){return _0x2bf148(_0x1415bb,_0x4a0fae,_0x36693d,_0x386216,_0x577ad4,_0x5d90e0);},'kfwBN':function(_0x1355c8){return _0x1355c8();},'ZZAlA':_0x4c22c0(0x1bf),'xehzo':_0x4c22c0(0x229),'TivtF':function(_0xed0122,_0x3ee41a,_0x2eed7f){return _0xed0122(_0x3ee41a,_0x2eed7f);},'JDDvC':function(_0x4b683f,_0x1f8e1e,_0x4c2692){return _0x4b683f(_0x1f8e1e,_0x4c2692);},'RmZwE':function(_0xb19ad8,_0x5a7037,_0x7c6bd2,_0x592fec,_0x33e580,_0x30e00d,_0x1ed4fd){return _0xb19ad8(_0x5a7037,_0x7c6bd2,_0x592fec,_0x33e580,_0x30e00d,_0x1ed4fd);},'sZAKC':_0x4c22c0(0x16f),'RfHuJ':_0x4c22c0(0x178),'jpZtq':_0x4c22c0(0x179),'Nucyt':function(_0x53f76a,_0x2475f3,_0x34caf5,_0x4321a6,_0x3e6ed8,_0x12f3fd,_0x1b01c8,_0x2bd57c){return _0x53f76a(_0x2475f3,_0x34caf5,_0x4321a6,_0x3e6ed8,_0x12f3fd,_0x1b01c8,_0x2bd57c);},'ZPQWL':_0x4c22c0(0x164),'SlNLa':function(_0x29cb61,_0x98fb4,_0x2a078e){return _0x29cb61(_0x98fb4,_0x2a078e);},'IlHhL':_0x4c22c0(0x241),'ZNbyA':function(_0x1f6d04,_0x34c16e){return _0x1f6d04(_0x34c16e);},'uQsjq':_0x4c22c0(0x1ca),'ghXRS':'isTls1_2_SUPPORTED','WAZCs':_0x4c22c0(0x1d9),'ExxnK':'User\x20Access','sAYlx':'Whitelisted\x20browserstack','WjeZA':_0x4c22c0(0x249),'JSjvu':function(_0x29dffa,_0x4327fe,_0x5cd59b){return _0x29dffa(_0x4327fe,_0x5cd59b);},'qbeNj':function(_0x402fd4,_0x277ce1){return _0x402fd4+_0x277ce1;},'wQZYC':_0x4c22c0(0x1b8),'mlMSq':_0x4c22c0(0x194)};let _0x58f608,_0x74d226;try{global_registry[_0x4c22c0(0x19d)]=_0x204eef[_0x4c22c0(0x203)](uuidv4);!fs[_0x4c22c0(0x237)](_0x204eef[_0x4c22c0(0x20f)](getCredentialsPath))&&(_0x74d226=_0x204eef['yPUYg'],logger[_0x4c22c0(0x1af)](_0x74d226),await _0x204eef['OAXme'](reportToGalactusAndSendToEDS,_0x191a7c,_0x58f608,_0x74d226,messageTypes[_0x4c22c0(0x20d)],_0x204eef[_0x4c22c0(0x214)],_0x204eef['osdEc'],_0x204eef['qJnIl']),process[_0x4c22c0(0x21e)](0x1));_0x204eef[_0x4c22c0(0x22e)](sendInstrumentationEvent,_0x191a7c,_0x204eef[_0x4c22c0(0x214)],messageTypes[_0x4c22c0(0x1e4)],null,null,_0x191a7c);const _0x5bbf07=JSON[_0x4c22c0(0x198)](fs[_0x4c22c0(0x20b)](_0x204eef['kfwBN'](getCredentialsPath)));global_registry[_0x4c22c0(0x1aa)]=_0x5bbf07[_0x4c22c0(0x1c8)][_0x4c22c0(0x1bb)],global_registry[_0x4c22c0(0x1a7)]=_0x5bbf07[_0x4c22c0(0x1c8)]['password'];const _0x4be1ef=WS_ENDPOINT[_0x4c22c0(0x188)](_0x204eef['ZZAlA'],_0x5bbf07[_0x4c22c0(0x1c8)][_0x4c22c0(0x1bb)])[_0x4c22c0(0x188)](_0x204eef[_0x4c22c0(0x245)],_0x5bbf07[_0x4c22c0(0x1c8)]['password']),_0xc07dee={};_0xc07dee[_0x4c22c0(0x1f5)]=ws,_0xc07dee[_0x4c22c0(0x167)]=0x36ee80,_0x58f608=new ReconnectingWebSocket(_0x4be1ef,[],_0xc07dee),global_registry[_0x4c22c0(0x183)]=_0x204eef[_0x4c22c0(0x169)](getAuthHeader,global_registry[_0x4c22c0(0x1aa)],global_registry[_0x4c22c0(0x1a7)]),await _0x204eef[_0x4c22c0(0x1f1)](inputValidation,_0x191a7c,_0x58f608),logger[_0x4c22c0(0x234)](_0x4c22c0(0x226)+global_registry[_0x4c22c0(0x1fa)]+_0x4c22c0(0x176)+global_registry['clusterRegion']);let _0x5607a8=await _0x204eef[_0x4c22c0(0x232)](getCloudProviderObjectWithOutInit,global_registry[_0x4c22c0(0x1fa)],global_registry['clusterName'],_0x204eef[_0x4c22c0(0x20c)],_0x58f608,webSocketUtils,_0x191a7c);const _0x4b1ee0=await _0x5607a8['isCliToolInstalled']();_0x204eef['JDDvC'](printResponse,_0x204eef[_0x4c22c0(0x220)],_0x4b1ee0),_0x5607a8=await _0x5607a8['init']();let _0x37a8ef=![];try{_0x37a8ef=await _0x5607a8[_0x4c22c0(0x16c)]();}catch(_0x5a53ae){const _0x30d798=_0x204eef[_0x4c22c0(0x15e)]['split']('|');let _0xb76042=0x0;while(!![]){switch(_0x30d798[_0xb76042++]){case'0':logger[_0x4c22c0(0x1af)](_0x74d226);continue;case'1':_0x74d226=_0x4c22c0(0x186)+global_registry['clusterName']+_0x4c22c0(0x1da)+global_registry[_0x4c22c0(0x1f0)]+_0x4c22c0(0x1c2)+_0x5a53ae;continue;case'2':await _0x204eef['Nucyt'](reportToGalactusAndSendToEDS,_0x191a7c,_0x58f608,_0x74d226,messageTypes[_0x4c22c0(0x20d)],_0x204eef[_0x4c22c0(0x214)],'cluster-check-failed-'+global_registry[_0x4c22c0(0x1fa)],_0x204eef[_0x4c22c0(0x218)]);continue;case'3':_0x37a8ef=null;continue;case'4':_0x74d226+='\x0a'+JSON['stringify'](_0x5a53ae[_0x4c22c0(0x19a)]);continue;}break;}}_0x37a8ef&&logger[_0x4c22c0(0x234)](_0x4c22c0(0x1ae)+global_registry[_0x4c22c0(0x1b1)]+_0x4c22c0(0x1d0));const _0x1fec39=await _0x5607a8[_0x4c22c0(0x1bc)]();_0x204eef[_0x4c22c0(0x169)](printResponse,_0x204eef[_0x4c22c0(0x153)],_0x1fec39);const _0x273eb3=await _0x204eef[_0x4c22c0(0x19e)](curlRequest);_0x204eef[_0x4c22c0(0x16e)](printResponse,_0x204eef[_0x4c22c0(0x1a6)],_0x273eb3);const _0x37275f=await _0x204eef[_0x4c22c0(0x20a)](isTlsSupported,_0x204eef[_0x4c22c0(0x208)]);_0x204eef[_0x4c22c0(0x169)](printResponse,_0x204eef['ghXRS'],_0x37275f);const _0x25b621={};_0x25b621[_0x4c22c0(0x184)]=_0x204eef['WAZCs'],_0x25b621['response']=_0x4b1ee0;const _0x47779f={};_0x47779f['header']=_0x204eef['ExxnK'],_0x47779f[_0x4c22c0(0x1c0)]=_0x1fec39;const _0x5d3b38={};_0x5d3b38[_0x4c22c0(0x184)]=_0x204eef[_0x4c22c0(0x21d)],_0x5d3b38['response']=_0x273eb3;const _0xab523c={};_0xab523c[_0x4c22c0(0x184)]=_0x204eef[_0x4c22c0(0x201)],_0xab523c[_0x4c22c0(0x1c0)]=_0x37275f;const _0x5e1676=[_0x25b621,_0x47779f,_0x5d3b38,_0xab523c],_0x1d8359=await _0x204eef['JSjvu'](generateReport,_0x5e1676,_0x37a8ef),_0xdd9b81=new Date(),_0x81285e=_0xdd9b81[_0x4c22c0(0x165)]()+'_'+_0x204eef['qbeNj'](_0xdd9b81[_0x4c22c0(0x160)](),0x1)+'_'+_0xdd9b81['getUTCDate']()+'_'+_0xdd9b81[_0x4c22c0(0x1ef)]()+'_'+_0xdd9b81['getUTCMinutes'](),_0x2f57d4=_0x4c22c0(0x15f)+_0x81285e+_0x4c22c0(0x158);fs[_0x4c22c0(0x1a8)](_0x2f57d4,_0x1d8359,_0x204eef[_0x4c22c0(0x1c7)]),logger['info']('Report\x20saved\x20in\x20'+_0x2f57d4),process[_0x4c22c0(0x21e)](0x0);}catch(_0xb476ff){let _0x2bd4c9=_0x4c22c0(0x191)+_0xb476ff+'\x20';logger[_0x4c22c0(0x1af)](_0x2bd4c9),_0x2bd4c9+='\x0a'+JSON[_0x4c22c0(0x15c)](_0xb476ff[_0x4c22c0(0x19a)]),logger[_0x4c22c0(0x23e)](_0x4c22c0(0x1cd)+_0xb476ff['stack']);if(_0x58f608){const _0x1082cc={};_0x1082cc['type']=WS_EVENTS[_0x4c22c0(0x199)],_0x1082cc[_0x4c22c0(0x15b)]=_0x2bd4c9,webSocketUtils[_0x4c22c0(0x1e0)](_0x58f608,_0x1082cc,_0x204eef[_0x4c22c0(0x218)],!![]);}await webSocketUtils[_0x4c22c0(0x209)](0x7d0);const _0x548323={};_0x548323[_0x4c22c0(0x1af)]=_0x2bd4c9,await _0x204eef[_0x4c22c0(0x22e)](sendInstrumentationEvent,_0x191a7c,_0x204eef[_0x4c22c0(0x214)],messageTypes['ERROR'],_0x204eef[_0x4c22c0(0x1ed)],_0x548323,_0x191a7c),process[_0x4c22c0(0x21e)](0x1);}};
1
+ function a17_0x3d0c(){const _0x179605=['`\x20is\x20present\x20in\x20region\x20`','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','debug','GET','response','WBABQ','pre_check','replace','error\x20stack\x20:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','description','SZGcK','cqOqe','abScT','grid\x20profile\x20flow\x20','XtMwT','DmWRO','glgWv','`\x20already\x20exists','ohNNb','GJoxH','gzTGM','edOhC','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','INFO','../../utils/utilityMethods','bdnMh','kfxBI','../../utils/instrumentationUtils','message','IaVpB','../../utils/webSocketUtils','isClusterPresent','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zKXTT','YEqQu','rsKPa','/packages/cli/get-all-grid-profiles','pre-check-failed','gridProfile','UvWcn','N/A','DTMTd','VxIZn','\x20\x20Stack:\x20','epilogue','Message:\x20','type','info','wKecu','Invalid\x20input.\x20grid\x20profiles:\x20','CeiwG','cluster-name','error','getUTCMinutes','vCvep','cloud-provider-not-supported','isCliToolInstalled','EPRGk','iiQKO','ZzESj','`\x20,error\x20:\x20','xyZHd','CuIus','getUTCMonth','RNWhI','wgmnh','argv','tULDT','mLvaT','Cluster\x20`','QkNiv','\x20error\x20:\x20','pre-check-grid-called','Failure','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ZtNfh','RsIoE','pvYvB','.\x20Please\x20provide\x20all\x20required\x20arguments.','xIKUr','GXRqq','Pre-check\x20running\x20for\x20Cloud\x20-\x20','builder','push','TVcQN','sweBM','includes','SSL\x20Configured','TLSv1_2_client_method','oQUjH','qBPUv','QBreZ','fpfTG','7476266ggglDK','EYffE','Report\x20saved\x20in\x20','exit','tSYXL','JDKPC','pre-check-cluster-args-not-passed','toolInstalledResp','Tool\x20Installed','1|0|2|4|3','PjUIT','74VafPvK','14296kjrelq','.txt','vpJrj','cloud-provider','hKCnL','kezrW','nVFTD','YXnZR','GemPd','password','12WAIcnD','37845GSMelj','command','mCmBM','authHeader','sendEventToBackend','Status:\x20','545920KkkuLc','stack\x20trace\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','\x20region\x20-\x20','existsSync','init','JJndt','handler','<PasswordPlaceholder>','utf-8','oxsjc','Browserstack','bstackAccesskey','code','Setting\x20cloud\x20provider\x20as\x20','ODgpS','vFsHP','vITQr','SiaXG','WKZMQ','\x20data\x20:\x20','auqor','HcHQW','username','body','status','pre-check-grid-profile-empty','LOG','will\x20be\x20created','User\x20Access','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','\x20\x20Code:\x20','4945296lRGDyf','lBofw',']\x20status\x20:\x20','region','BefbI','fnSxP','pqACE','YoPch','clusterRegion','uPHvM','Cluster\x20','forEach','10AiUHMR','stack','lsSMy','FgdwI','header','RazPm','requestId','pnDcw','Cqbqv','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','ERROR','ZxiKC','../../config/constants','Missing\x20required\x20arguments:\x20','UIIlV','headers','Mwctd','AnlDl','Error\x20Details:\x0a','join','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','isTls1_2_SUPPORTED','WebSocket','help','aPkPR','6402555FQpare','parse','KMcyo','stringify','CLOUD_PROVIDER','cloudProvider','grid-profile','checkAccess','../../config/logger','ktkJi','NblKe','find','bstackUsername','wPHUG','gbRoY','options','WnWMY','lwBZn','\x20===\x0a\x0a','clusterName','throwHttpErrors','432mBlrRL','https://','lJqfS','<UsernamePlaceholder>','cWFqU','Success','emoux','accessResp','ozlak','split','desc','usage','xFbNn','QDlBS','getUTCHours','uuid','ZUWGC','teuvK','IZNzk','method','ZrRjQ','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','data','FrvVs','woxar','bKwcS','JpaXG','uTmwG','BhKJL','InDCv','26537379sTYVVs','ArgqP'];a17_0x3d0c=function(){return _0x179605;};return a17_0x3d0c();}const a17_0x487161=a17_0x407e;function a17_0x407e(_0xeab264,_0x60581f){const _0x3d0c1b=a17_0x3d0c();return a17_0x407e=function(_0x407e33,_0x3f1aaa){_0x407e33=_0x407e33-0x1cb;let _0x223b7e=_0x3d0c1b[_0x407e33];return _0x223b7e;},a17_0x407e(_0xeab264,_0x60581f);}(function(_0x1e466b,_0xc99594){const _0x32a9cf=a17_0x407e,_0x5e15dc=_0x1e466b();while(!![]){try{const _0x3b14fb=-parseInt(_0x32a9cf(0x1ce))/0x1*(-parseInt(_0x32a9cf(0x1cf))/0x2)+-parseInt(_0x32a9cf(0x1d9))/0x3*(-parseInt(_0x32a9cf(0x1e0))/0x4)+-parseInt(_0x32a9cf(0x1da))/0x5*(parseInt(_0x32a9cf(0x23a))/0x6)+-parseInt(_0x32a9cf(0x2b8))/0x7+-parseInt(_0x32a9cf(0x200))/0x8+-parseInt(_0x32a9cf(0x225))/0x9+-parseInt(_0x32a9cf(0x20c))/0xa*(-parseInt(_0x32a9cf(0x258))/0xb);if(_0x3b14fb===_0xc99594)break;else _0x5e15dc['push'](_0x5e15dc['shift']());}catch(_0x505c0d){_0x5e15dc['push'](_0x5e15dc['shift']());}}}(a17_0x3d0c,0x8501e));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x487161(0x249)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x487161(0x273)),{logger}=require(a17_0x487161(0x22d)),{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_0x487161(0x218)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x487161(0x279)),{sendInstrumentationEvent}=require(a17_0x487161(0x276));exports[a17_0x487161(0x1db)]='grid',exports[a17_0x487161(0x244)]=a17_0x487161(0x220),exports[a17_0x487161(0x2ad)]=function(_0x4846f1){const _0x3f6603=a17_0x487161,_0x1c154c={};_0x1c154c[_0x3f6603(0x291)]=_0x3f6603(0x25b),_0x1c154c['uPHvM']='string',_0x1c154c[_0x3f6603(0x29f)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1c154c[_0x3f6603(0x22e)]=_0x3f6603(0x263),_0x1c154c['tSYXL']=_0x3f6603(0x1fe),_0x1c154c[_0x3f6603(0x255)]=_0x3f6603(0x223);const _0x5e6c20=_0x1c154c,_0x48c5dd={};_0x48c5dd[_0x3f6603(0x264)]=_0x5e6c20[_0x3f6603(0x291)],_0x48c5dd[_0x3f6603(0x289)]=_0x5e6c20[_0x3f6603(0x209)];const _0x3311b6={};_0x3311b6[_0x3f6603(0x264)]=_0x5e6c20[_0x3f6603(0x29f)],_0x3311b6[_0x3f6603(0x289)]=_0x5e6c20['uPHvM'];const _0x3695c7={};_0x3695c7[_0x3f6603(0x264)]=_0x5e6c20[_0x3f6603(0x22e)],_0x3695c7[_0x3f6603(0x289)]=_0x5e6c20[_0x3f6603(0x209)];const _0x383305={};_0x383305['description']=_0x5e6c20[_0x3f6603(0x2bc)],_0x383305[_0x3f6603(0x289)]=_0x5e6c20[_0x3f6603(0x209)];const _0x5c3535={};return _0x5c3535[_0x3f6603(0x28e)]=_0x48c5dd,_0x5c3535[_0x3f6603(0x1d2)]=_0x3311b6,_0x5c3535[_0x3f6603(0x203)]=_0x3695c7,_0x5c3535[_0x3f6603(0x22b)]=_0x383305,_0x4846f1['usage'](HELP_HEADER_MESSAGE[_0x3f6603(0x260)])[_0x3f6603(0x287)](HELP_FOOTER_MESSAGE)['options'](_0x5c3535)[_0x3f6603(0x223)](_0x5e6c20[_0x3f6603(0x255)])[_0x3f6603(0x29d)];};async function inputValidation(_0x58ea32,_0x180a8f){const _0x4de196=a17_0x487161,_0x4c2243={'GXRqq':_0x4de196(0x28f),'uesld':_0x4de196(0x21e),'vFsHP':'N/A','kJRtA':_0x4de196(0x215),'IZNzk':_0x4de196(0x1d2),'vITQr':_0x4de196(0x25b),'fnSxP':'string','bdnMh':_0x4de196(0x24f),'ohMcw':_0x4de196(0x263),'Cqbqv':_0x4de196(0x1fe),'gbRoY':_0x4de196(0x223),'gzTGM':_0x4de196(0x203),'CuIus':_0x4de196(0x28e),'XtMwT':'is\x20already\x20present','AnlDl':_0x4de196(0x1fc),'Rudgp':function(_0x4d185d,_0x1a27f0){return _0x4d185d!==_0x1a27f0;},'YXnZR':'KbZyk','QbdAq':function(_0x17bc12,_0x150e1c){return _0x17bc12===_0x150e1c;},'glgWv':'oVjla','bKwcS':_0x4de196(0x28b),'oxsjc':function(_0x446cc2,_0x35ae33){return _0x446cc2===_0x35ae33;},'JJndt':_0x4de196(0x27e),'EPRGk':function(_0x2438c0,_0x463618){return _0x2438c0!==_0x463618;},'woxar':'VqDPW','Mwctd':_0x4de196(0x24e),'SZGcK':function(_0x1d2693,_0x4503d8){return _0x1d2693>_0x4503d8;},'emoux':function(_0x508e08,_0x200996){return _0x508e08===_0x200996;},'oQUjH':_0x4de196(0x2bd),'kfxBI':_0x4de196(0x26e),'wPHUG':function(_0x38e2ac,_0x5a0c83,_0x43ad5d,_0x28245d,_0x273a16,_0x1c6dfa,_0x165b51,_0x362203){return _0x38e2ac(_0x5a0c83,_0x43ad5d,_0x28245d,_0x273a16,_0x1c6dfa,_0x165b51,_0x362203);},'InDCv':_0x4de196(0x2a3),'nmFZr':_0x4de196(0x2be),'lsSMy':_0x4de196(0x247),'tdSie':_0x4de196(0x25f),'abScT':_0x4de196(0x2a5),'wgmnh':_0x4de196(0x292),'idRPa':function(_0x1dd025,_0x53ecbf){return _0x1dd025!==_0x53ecbf;},'QBreZ':'VdehX','jdguN':function(_0x29644e,_0x440a0e){return _0x29644e===_0x440a0e;},'DmWRO':_0x4de196(0x284),'FzHyb':_0x4de196(0x25d),'KQWDq':function(_0x12a5b6,_0x2f06ee,_0x3cad69){return _0x12a5b6(_0x2f06ee,_0x3cad69);},'YjVZv':function(_0x180468,_0x327f2c,_0x31fcf2,_0x45b2a5,_0x4152ce,_0x424215){return _0x180468(_0x327f2c,_0x31fcf2,_0x45b2a5,_0x4152ce,_0x424215);},'KMcyo':'pre-check','shNoH':_0x4de196(0x22b),'ODgpS':function(_0x325199,_0x142e48){return _0x325199===_0x142e48;},'xFbNn':_0x4de196(0x22f),'npuGB':function(_0x268079,_0x53f625){return _0x268079(_0x53f625);},'ZxiKC':function(_0x4c76b1,_0x8c6b2b){return _0x4c76b1!==_0x8c6b2b;},'FgdwI':_0x4de196(0x242),'tAHfQ':function(_0x5adfd7,_0x2e965a,_0x3af60a,_0x54798d,_0x29af34,_0x322aed,_0x5468b2,_0x4a1fbb){return _0x5adfd7(_0x2e965a,_0x3af60a,_0x54798d,_0x29af34,_0x322aed,_0x5468b2,_0x4a1fbb);},'UIIlV':_0x4de196(0x1fa),'edOhC':_0x4de196(0x2a1),'EYffE':'DSqGM','gazol':'Grid\x20profile\x20fetched\x20for\x20pre-check','lJqfS':_0x4de196(0x2b0),'qBPUv':_0x4de196(0x296),'TpMTi':function(_0x18c05b,_0x1856fb,_0x4ea3d2,_0x13fe38,_0xb3290d,_0x1cbb90,_0x1158ad,_0x3eed83){return _0x18c05b(_0x1856fb,_0x4ea3d2,_0x13fe38,_0xb3290d,_0x1cbb90,_0x1158ad,_0x3eed83);}};let _0x1a88e2;try{if(_0x4c2243['Rudgp'](_0x4c2243[_0x4de196(0x1d6)],_0x4c2243[_0x4de196(0x1d6)])){const _0x381eda={};_0x381eda[_0x4de196(0x289)]=_0x7fbca4[_0x4de196(0x1fb)],_0x381eda[_0x4de196(0x277)]=_0x3a82aa,_0x3c6817[_0x4de196(0x1de)](_0x30414c,_0x381eda,_0x4c2243[_0x4de196(0x2ab)],!![]);}else{if(_0x58ea32[_0x4de196(0x238)]||_0x58ea32[_0x4de196(0x22a)]||_0x58ea32[_0x4de196(0x203)]){if(_0x4c2243['QbdAq'](_0x4c2243[_0x4de196(0x26b)],_0x4c2243[_0x4de196(0x253)]))_0x30378f[_0x4de196(0x28a)]('Cluster\x20`'+_0x27fad8[_0x4de196(0x238)]+_0x4de196(0x26c));else{const _0x274a80=[];!_0x58ea32['clusterName']&&(_0x4c2243[_0x4de196(0x1ea)](_0x4c2243[_0x4de196(0x1e6)],_0x4c2243[_0x4de196(0x1e6)])?_0x274a80[_0x4de196(0x2ae)](_0x4c2243['CuIus']):(_0xe1f472+=_0x4c2243['uesld'],_0x39906f+='\x20\x20Message:\x20'+(_0x1797ba[_0x4de196(0x277)]||_0x4c2243[_0x4de196(0x1f0)])+'\x0a',_0x18f1f9+=_0x4de196(0x1ff)+(_0x378c55[_0x4de196(0x1ed)]||_0x4c2243['vFsHP'])+'\x0a',_0x5ab9cb+=_0x4de196(0x286)+(_0x141af0[_0x4de196(0x20d)]||_0x4c2243['vFsHP'])+'\x0a'));;!_0x58ea32[_0x4de196(0x22a)]&&(_0x4c2243[_0x4de196(0x294)](_0x4c2243[_0x4de196(0x252)],_0x4c2243[_0x4de196(0x252)])?(_0x176f8b[_0x4de196(0x28f)](_0x4c2243['kJRtA']),_0x44b46d[_0x4de196(0x2bb)](0x1)):_0x274a80[_0x4de196(0x2ae)](_0x4c2243[_0x4de196(0x24c)]));;!_0x58ea32[_0x4de196(0x203)]&&(_0x4c2243[_0x4de196(0x294)](_0x4c2243[_0x4de196(0x21c)],_0x4c2243[_0x4de196(0x21c)])?_0x4af165[_0x4de196(0x2ae)](_0x4c2243[_0x4de196(0x24c)]):_0x274a80['push'](_0x4c2243[_0x4de196(0x26f)]));;_0x4c2243[_0x4de196(0x265)](_0x274a80['length'],0x0)&&(_0x4c2243[_0x4de196(0x240)](_0x4c2243[_0x4de196(0x2b4)],_0x4c2243[_0x4de196(0x275)])?_0x275ce1[_0x4de196(0x28f)]('error\x20stack\x20:\x20'+_0x91a3ad[_0x4de196(0x28f)]['stack']):(_0x1a88e2=_0x4de196(0x219)+_0x274a80[_0x4de196(0x21f)](',\x20')+_0x4de196(0x2a9),await _0x4c2243[_0x4de196(0x232)](reportToGalactusAndSendToEDS,_0x58ea32,_0x180a8f,_0x1a88e2,messageTypes[_0x4de196(0x216)],_0x4c2243['InDCv'],_0x4c2243['nmFZr'],_0x4c2243['GXRqq']),logger[_0x4de196(0x28f)](_0x1a88e2),process[_0x4de196(0x2bb)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x4de196(0x2b1)](_0x58ea32[_0x4de196(0x22a)]['toLowerCase']())){if(_0x4c2243[_0x4de196(0x240)](_0x4c2243[_0x4de196(0x20e)],_0x4c2243['tdSie'])){const _0x5b20d8={};_0x5b20d8[_0x4de196(0x264)]=_0x4c2243[_0x4de196(0x1f1)],_0x5b20d8[_0x4de196(0x289)]=_0x4c2243[_0x4de196(0x205)];const _0x3f4fbd={};_0x3f4fbd['description']=_0x4c2243[_0x4de196(0x274)],_0x3f4fbd[_0x4de196(0x289)]=_0x4c2243['fnSxP'];const _0x110c6d={};_0x110c6d[_0x4de196(0x264)]=_0x4c2243['ohMcw'],_0x110c6d[_0x4de196(0x289)]=_0x4c2243['fnSxP'];const _0x44edf0={};_0x44edf0['description']=_0x4c2243[_0x4de196(0x214)],_0x44edf0[_0x4de196(0x289)]=_0x4c2243[_0x4de196(0x205)];const _0x290cd4={};return _0x290cd4[_0x4de196(0x28e)]=_0x5b20d8,_0x290cd4[_0x4de196(0x1d2)]=_0x3f4fbd,_0x290cd4['region']=_0x110c6d,_0x290cd4['grid-profile']=_0x44edf0,_0x500d1[_0x4de196(0x245)](_0x1e29b3[_0x4de196(0x260)])[_0x4de196(0x287)](_0x8fe6af)[_0x4de196(0x234)](_0x290cd4)[_0x4de196(0x223)](_0x4c2243[_0x4de196(0x233)])['argv'];}else _0x1a88e2=_0x4c2243[_0x4de196(0x267)],await _0x4c2243[_0x4de196(0x232)](reportToGalactusAndSendToEDS,_0x58ea32,_0x180a8f,_0x1a88e2,messageTypes[_0x4de196(0x216)],_0x4c2243[_0x4de196(0x257)],_0x4c2243[_0x4de196(0x29c)],_0x4c2243[_0x4de196(0x2ab)]),logger[_0x4de196(0x28f)](_0x1a88e2),!_0x58ea32[_0x4de196(0x22a)]&&(_0x4c2243['idRPa'](_0x4c2243[_0x4de196(0x2b6)],_0x4c2243[_0x4de196(0x2b6)])?(_0xab710e[_0x4de196(0x28a)](_0x4de196(0x1ee)+_0x26b29c[_0x4de196(0x229)]+'\x20'),_0x222596[_0x4de196(0x22a)]=_0x5553ac[_0x4de196(0x229)]):(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x4de196(0x229)]+'\x20'),_0x58ea32[_0x4de196(0x22a)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0x4de196(0x238)]=_0x58ea32[_0x4de196(0x238)],global_registry[_0x4de196(0x22a)]=_0x58ea32[_0x4de196(0x22a)],global_registry[_0x4de196(0x208)]=_0x58ea32['region'];}}else{if(_0x58ea32[_0x4de196(0x281)]){if(_0x4c2243['jdguN'](_0x4c2243[_0x4de196(0x26a)],_0x4c2243[_0x4de196(0x26a)])){global_registry[_0x4de196(0x281)]=_0x58ea32[_0x4de196(0x281)],logger[_0x4de196(0x25c)](_0x4de196(0x268)+_0x58ea32[_0x4de196(0x281)]);const _0x38bfd1=_0x4de196(0x23b)+AG_API_URL+_0x4de196(0x27f),_0x8af5a2={};_0x8af5a2[_0x4de196(0x24d)]=_0x4c2243['FzHyb'],_0x8af5a2[_0x4de196(0x21b)]=global_registry[_0x4de196(0x1dd)],_0x8af5a2[_0x4de196(0x239)]=![];const _0x549416=_0x8af5a2,_0x101dcb=await _0x4c2243['KQWDq'](got,_0x38bfd1,_0x549416),_0x57acf6=await _0x4c2243['YjVZv'](responseValidation,_0x101dcb,_0x4c2243[_0x4de196(0x227)],_0x4c2243['shNoH'],_0x58ea32,_0x180a8f);let _0x4f1ae9={};if(_0x4c2243[_0x4de196(0x1ef)](_0x57acf6,0xc8)){if(_0x4c2243['EPRGk'](_0x4c2243[_0x4de196(0x246)],_0x4c2243[_0x4de196(0x246)]))_0x34b9a2[_0x4de196(0x2ae)](_0x4c2243[_0x4de196(0x26f)]);else{const _0x23f99e=JSON[_0x4de196(0x226)](_0x101dcb[_0x4de196(0x1f8)]),_0x505390=_0x23f99e[_0x4de196(0x230)](_0x91386b=>_0x91386b['name']===_0x58ea32[_0x4de196(0x281)])||null;_0x4c2243['npuGB'](isUndefined,_0x505390)?_0x4c2243[_0x4de196(0x217)](_0x4c2243['FgdwI'],_0x4c2243[_0x4de196(0x20f)])?_0x20e262+=_0x4de196(0x20a)+_0x18aae6[_0x4de196(0x238)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x1a88e2=_0x4de196(0x28c)+_0x58ea32['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x4c2243['tAHfQ'](reportToGalactusAndSendToEDS,_0x58ea32,_0x180a8f,_0x1a88e2,messageTypes[_0x4de196(0x216)],_0x4c2243[_0x4de196(0x257)],_0x4c2243[_0x4de196(0x21a)],_0x4c2243[_0x4de196(0x2ab)]),logger[_0x4de196(0x28f)](_0x1a88e2),process[_0x4de196(0x2bb)](0x1)):_0x4c2243['ZxiKC'](_0x4c2243[_0x4de196(0x270)],_0x4c2243['edOhC'])?(_0x483641[_0x4de196(0x28a)]('['+_0x26dbfd+']\x20status\x20:\x20'+_0x59cddd[_0x4de196(0x1f9)]+'\x20data\x20:\x20'+_0x23a3e9[_0x4de196(0x250)]+'\x20error\x20:\x20'+_0x3fe481['error']),_0x240a82[_0x4de196(0x28f)]&&_0x289d00[_0x4de196(0x28f)]('error\x20stack\x20:\x20'+_0x213d09[_0x4de196(0x28f)]['stack'])):_0x4f1ae9=_0x505390;}}else _0x4c2243[_0x4de196(0x1ea)](_0x4c2243[_0x4de196(0x2b9)],_0x4c2243[_0x4de196(0x2b9)])?process[_0x4de196(0x2bb)](0x1):_0x534a8b=_0x10af5b;const _0x2071a3={};_0x2071a3[_0x4de196(0x289)]=WS_EVENTS[_0x4de196(0x1fb)],_0x2071a3[_0x4de196(0x277)]=_0x4c2243['gazol'],webSocketUtils[_0x4de196(0x1de)](_0x180a8f,_0x2071a3),global_registry[_0x4de196(0x22a)]=_0x4f1ae9[_0x4de196(0x22a)],global_registry[_0x4de196(0x208)]=_0x4f1ae9['region'],global_registry[_0x4de196(0x238)]=_0x4f1ae9['clusterName'];}else _0x252b7b[_0x4de196(0x2ae)](_0x4c2243[_0x4de196(0x299)]);}else _0x4c2243['jdguN'](_0x4c2243[_0x4de196(0x23c)],_0x4c2243['lJqfS'])?(logger['error'](_0x4c2243['kJRtA']),process[_0x4de196(0x2bb)](0x1)):_0x2fc36c[_0x4de196(0x2bb)](0x1);}}}catch(_0x92cbe8){_0x4c2243[_0x4de196(0x1ea)](_0x4c2243[_0x4de196(0x2b5)],_0x4c2243['qBPUv'])?(_0x1a88e2='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x92cbe8+':\x20'+_0x92cbe8[_0x4de196(0x20d)],logger['error'](_0x1a88e2),await _0x4c2243['TpMTi'](reportToGalactusAndSendToEDS,_0x58ea32,_0x180a8f,_0x1a88e2,messageTypes[_0x4de196(0x216)],_0x4c2243[_0x4de196(0x257)],_0x4c2243['wgmnh'],_0x4c2243[_0x4de196(0x2ab)]),process[_0x4de196(0x2bb)](0x1)):_0x47ecd2+=_0x4de196(0x20a)+_0x2d8b43[_0x4de196(0x238)]+'\x20'+(_0x558354?_0x4c2243[_0x4de196(0x269)]:_0x4c2243[_0x4de196(0x21d)])+'\x0a\x0a';}}function printResponse(_0x3b0e80,_0x4808bb){const _0x5ab1a5=a17_0x487161,_0x4461f3={};_0x4461f3[_0x5ab1a5(0x24b)]=function(_0x2db4a2,_0x910b58){return _0x2db4a2+_0x910b58;},_0x4461f3[_0x5ab1a5(0x24a)]=_0x5ab1a5(0x23f),_0x4461f3[_0x5ab1a5(0x2a6)]=_0x5ab1a5(0x2a4),_0x4461f3[_0x5ab1a5(0x1d1)]=function(_0x363a04,_0x5c523c){return _0x363a04||_0x5c523c;},_0x4461f3['WnWMY']=_0x5ab1a5(0x283),_0x4461f3[_0x5ab1a5(0x207)]='Error\x20Details:\x0a',_0x4461f3[_0x5ab1a5(0x29e)]=function(_0x57a284,_0x17bbdd){return _0x57a284===_0x17bbdd;},_0x4461f3[_0x5ab1a5(0x2a8)]=_0x5ab1a5(0x26d);const _0x2ccf67=_0x4461f3;logger['info']('['+_0x3b0e80+_0x5ab1a5(0x202)+_0x4808bb[_0x5ab1a5(0x1f9)]+_0x5ab1a5(0x1f4)+_0x4808bb['data']+_0x5ab1a5(0x2a2)+_0x4808bb['error']);if(_0x4808bb[_0x5ab1a5(0x28f)]){if(_0x2ccf67[_0x5ab1a5(0x29e)](_0x2ccf67[_0x5ab1a5(0x2a8)],_0x2ccf67[_0x5ab1a5(0x2a8)]))logger[_0x5ab1a5(0x28f)](_0x5ab1a5(0x262)+_0x4808bb[_0x5ab1a5(0x28f)][_0x5ab1a5(0x20d)]);else{const {header:_0x5b1a73,response:_0x582118}=_0x230e41,{status:_0x49b7d7,data:_0x1b9251,error:_0xf6fb74}=_0x582118;_0x616ba6+=_0x5b1a73+'\x20#'+_0x2ccf67[_0x5ab1a5(0x24b)](_0x49ffa9,0x1)+'\x0a',_0x5a1fc4+=_0x5ab1a5(0x1df)+(_0x49b7d7?_0x2ccf67[_0x5ab1a5(0x24a)]:_0x2ccf67[_0x5ab1a5(0x2a6)])+'\x0a',_0x37b1cd+='Message:\x20'+_0x2ccf67[_0x5ab1a5(0x1d1)](_0x1b9251,_0x2ccf67[_0x5ab1a5(0x235)])+'\x0a',_0xf6fb74&&(_0x3da7df+=_0x2ccf67['YoPch'],_0x13d43d+='\x20\x20Message:\x20'+(_0xf6fb74['message']||_0x2ccf67[_0x5ab1a5(0x235)])+'\x0a',_0x3ae178+=_0x5ab1a5(0x1ff)+(_0xf6fb74[_0x5ab1a5(0x1ed)]||_0x2ccf67[_0x5ab1a5(0x235)])+'\x0a',_0x420cee+='\x20\x20Stack:\x20'+(_0xf6fb74[_0x5ab1a5(0x20d)]||_0x2ccf67[_0x5ab1a5(0x235)])+'\x0a'),_0x18dc5d+='\x0a\x0a';}}}async function generateReport(_0x430c99,_0x2ea125){const _0xa3e44d=a17_0x487161,_0x427159={'xIKUr':function(_0x22eb92,_0x1ac242){return _0x22eb92+_0x1ac242;},'BhKJL':_0xa3e44d(0x23f),'xyZHd':_0xa3e44d(0x2a4),'kezrW':function(_0x4af83c,_0x360553){return _0x4af83c||_0x360553;},'nVFTD':_0xa3e44d(0x283),'dNyjQ':_0xa3e44d(0x21e),'mCmBM':'Cluster\x20details\x0a-----------------------\x0a','auqor':function(_0x23d7fb,_0x4c4103){return _0x23d7fb!=_0x4c4103;},'RsIoE':'is\x20already\x20present','oJdzJ':_0xa3e44d(0x1fc),'pqACE':function(_0x2707da){return _0x2707da();}};let _0x235aa4='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0xa3e44d(0x237);return _0x430c99[_0xa3e44d(0x20b)]((_0x5a8b65,_0x20ba6c)=>{const _0x54b9ac=_0xa3e44d,{header:_0x22c000,response:_0x5c8b69}=_0x5a8b65,{status:_0x1b8ff9,data:_0x5ceb09,error:_0x261a12}=_0x5c8b69;_0x235aa4+=_0x22c000+'\x20#'+_0x427159[_0x54b9ac(0x2aa)](_0x20ba6c,0x1)+'\x0a',_0x235aa4+=_0x54b9ac(0x1df)+(_0x1b8ff9?_0x427159[_0x54b9ac(0x256)]:_0x427159[_0x54b9ac(0x298)])+'\x0a',_0x235aa4+=_0x54b9ac(0x288)+_0x427159[_0x54b9ac(0x1d4)](_0x5ceb09,_0x427159['nVFTD'])+'\x0a',_0x261a12&&(_0x235aa4+=_0x427159['dNyjQ'],_0x235aa4+='\x20\x20Message:\x20'+(_0x261a12[_0x54b9ac(0x277)]||_0x427159[_0x54b9ac(0x1d5)])+'\x0a',_0x235aa4+=_0x54b9ac(0x1ff)+(_0x261a12[_0x54b9ac(0x1ed)]||_0x427159[_0x54b9ac(0x1d5)])+'\x0a',_0x235aa4+=_0x54b9ac(0x286)+(_0x261a12[_0x54b9ac(0x20d)]||_0x427159[_0x54b9ac(0x1d5)])+'\x0a'),_0x235aa4+='\x0a\x0a';}),_0x235aa4+=_0x427159[_0xa3e44d(0x1dc)],_0x427159[_0xa3e44d(0x1f5)](_0x2ea125,null)?_0x235aa4+=_0xa3e44d(0x20a)+global_registry[_0xa3e44d(0x238)]+'\x20'+(_0x2ea125?_0x427159[_0xa3e44d(0x2a7)]:_0x427159['oJdzJ'])+'\x0a\x0a':_0x235aa4+=_0xa3e44d(0x20a)+global_registry[_0xa3e44d(0x238)]+_0xa3e44d(0x271),_0x235aa4+=_0x427159[_0xa3e44d(0x206)](getSystemMetaData),_0x235aa4;};exports[a17_0x487161(0x1e7)]=async function(_0x389422){const _0x1be183=a17_0x487161,_0x291959={'iiQKO':function(_0x2bb366){return _0x2bb366();},'FrvVs':_0x1be183(0x27b),'LytYx':function(_0x1c82f5,_0x5a0b59,_0x254bea,_0x336cf3,_0x3fa717,_0x7c2044,_0x2b6a8a,_0x31ad8e){return _0x1c82f5(_0x5a0b59,_0x254bea,_0x336cf3,_0x3fa717,_0x7c2044,_0x2b6a8a,_0x31ad8e);},'ArgqP':_0x1be183(0x2a3),'IaVpB':'credential-not-found','lwBZn':'error','pnDcw':function(_0x3f5ce6,_0x447fb8,_0x572cda,_0x26cd63,_0xdda703,_0x3fdd85,_0x1c2ce2){return _0x3f5ce6(_0x447fb8,_0x572cda,_0x26cd63,_0xdda703,_0x3fdd85,_0x1c2ce2);},'TVcQN':_0x1be183(0x23d),'HcHQW':_0x1be183(0x1e8),'PjUIT':function(_0x106b7d,_0x3f4c6b,_0x3d4ad7){return _0x106b7d(_0x3f4c6b,_0x3d4ad7);},'UvWcn':function(_0x29d7ba,_0x5c3854,_0x49b360){return _0x29d7ba(_0x5c3854,_0x49b360);},'VxIZn':'dummy-grid','RazPm':_0x1be183(0x2bf),'lBofw':_0x1be183(0x1cc),'GemPd':function(_0x17304e,_0xd4ba63,_0x67c48f,_0x2af4c9,_0x16dd79,_0xb07d65,_0x483926,_0x1d8b4b){return _0x17304e(_0xd4ba63,_0x67c48f,_0x2af4c9,_0x16dd79,_0xb07d65,_0x483926,_0x1d8b4b);},'BefbI':function(_0x557414,_0x12ef0c,_0x408df1){return _0x557414(_0x12ef0c,_0x408df1);},'JpaXG':_0x1be183(0x241),'ralnu':function(_0x1cc995){return _0x1cc995();},'IJfOp':'isTrialGridAccessible','YEqQu':function(_0x747c80,_0x4285b4){return _0x747c80(_0x4285b4);},'SiaXG':_0x1be183(0x2b3),'hKCnL':function(_0x18a7ef,_0x531f19,_0x216cbc){return _0x18a7ef(_0x531f19,_0x216cbc);},'zKXTT':_0x1be183(0x221),'WKZMQ':_0x1be183(0x1cb),'RNWhI':_0x1be183(0x1fd),'cWFqU':'Whitelisted\x20browserstack','cqOqe':_0x1be183(0x2b2),'fpfTG':function(_0x161269,_0x5cc2b3){return _0x161269+_0x5cc2b3;},'CeiwG':_0x1be183(0x1e9),'aPkPR':_0x1be183(0x280)};let _0x4bbc6d,_0x114505;try{global_registry[_0x1be183(0x212)]=_0x291959[_0x1be183(0x295)](uuidv4);!fs[_0x1be183(0x1e4)](_0x291959[_0x1be183(0x295)](getCredentialsPath))&&(_0x114505=_0x291959[_0x1be183(0x251)],logger['error'](_0x114505),await _0x291959['LytYx'](reportToGalactusAndSendToEDS,_0x389422,_0x4bbc6d,_0x114505,messageTypes[_0x1be183(0x216)],_0x291959[_0x1be183(0x259)],_0x291959[_0x1be183(0x278)],_0x291959[_0x1be183(0x236)]),process['exit'](0x1));_0x291959[_0x1be183(0x213)](sendInstrumentationEvent,_0x389422,_0x291959['ArgqP'],messageTypes[_0x1be183(0x272)],null,null,_0x389422);const _0x2f4c4d=JSON[_0x1be183(0x226)](fs['readFileSync'](_0x291959[_0x1be183(0x295)](getCredentialsPath)));global_registry[_0x1be183(0x231)]=_0x2f4c4d['Browserstack'][_0x1be183(0x1f7)],global_registry[_0x1be183(0x1ec)]=_0x2f4c4d['Browserstack']['password'];const _0x2764f0=WS_ENDPOINT[_0x1be183(0x261)](_0x291959[_0x1be183(0x2af)],_0x2f4c4d[_0x1be183(0x1eb)]['username'])[_0x1be183(0x261)](_0x291959[_0x1be183(0x1f6)],_0x2f4c4d[_0x1be183(0x1eb)][_0x1be183(0x1d8)]),_0xb83fb6={};_0xb83fb6[_0x1be183(0x222)]=ws,_0xb83fb6['connectionTimeout']=0x36ee80,_0x4bbc6d=new ReconnectingWebSocket(_0x2764f0,[],_0xb83fb6),global_registry[_0x1be183(0x1dd)]=_0x291959[_0x1be183(0x1cd)](getAuthHeader,global_registry[_0x1be183(0x231)],global_registry[_0x1be183(0x1ec)]),await _0x291959[_0x1be183(0x282)](inputValidation,_0x389422,_0x4bbc6d),logger[_0x1be183(0x28a)](_0x1be183(0x2ac)+global_registry[_0x1be183(0x22a)]+_0x1be183(0x1e3)+global_registry[_0x1be183(0x208)]);let _0x5791d9=await _0x291959['pnDcw'](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x1be183(0x238)],_0x291959[_0x1be183(0x285)],_0x4bbc6d,webSocketUtils,_0x389422);const _0x372506=await _0x5791d9[_0x1be183(0x293)]();_0x291959[_0x1be183(0x282)](printResponse,_0x291959[_0x1be183(0x211)],_0x372506),_0x5791d9=await _0x5791d9[_0x1be183(0x1e5)]();let _0x2b7832=![];try{_0x2b7832=await _0x5791d9[_0x1be183(0x27a)]();}catch(_0x703e77){const _0x15d77f=_0x291959[_0x1be183(0x201)][_0x1be183(0x243)]('|');let _0x1805a9=0x0;while(!![]){switch(_0x15d77f[_0x1805a9++]){case'0':_0x2b7832=null;continue;case'1':_0x114505=_0x1be183(0x1e2)+global_registry[_0x1be183(0x238)]+_0x1be183(0x25a)+global_registry['clusterRegion']+_0x1be183(0x297)+_0x703e77;continue;case'2':logger['error'](_0x114505);continue;case'3':await _0x291959[_0x1be183(0x1d7)](reportToGalactusAndSendToEDS,_0x389422,_0x4bbc6d,_0x114505,messageTypes[_0x1be183(0x216)],_0x291959['ArgqP'],'cluster-check-failed-'+global_registry[_0x1be183(0x22a)],_0x291959['lwBZn']);continue;case'4':_0x114505+='\x0a'+JSON['stringify'](_0x703e77['stack']);continue;}break;}}_0x2b7832&&logger[_0x1be183(0x28a)](_0x1be183(0x2a0)+global_registry[_0x1be183(0x238)]+_0x1be183(0x26c));const _0x269f6a=await _0x5791d9[_0x1be183(0x22c)]();_0x291959[_0x1be183(0x204)](printResponse,_0x291959[_0x1be183(0x254)],_0x269f6a);const _0x20d557=await _0x291959['ralnu'](curlRequest);_0x291959[_0x1be183(0x282)](printResponse,_0x291959['IJfOp'],_0x20d557);const _0x49a7ac=await _0x291959[_0x1be183(0x27d)](isTlsSupported,_0x291959[_0x1be183(0x1f2)]);_0x291959[_0x1be183(0x1d3)](printResponse,_0x291959[_0x1be183(0x27c)],_0x49a7ac);const _0x439c1e={};_0x439c1e['header']=_0x291959[_0x1be183(0x1f3)],_0x439c1e[_0x1be183(0x25e)]=_0x372506;const _0x23374b={};_0x23374b[_0x1be183(0x210)]=_0x291959[_0x1be183(0x29b)],_0x23374b[_0x1be183(0x25e)]=_0x269f6a;const _0xfba174={};_0xfba174[_0x1be183(0x210)]=_0x291959[_0x1be183(0x23e)],_0xfba174['response']=_0x20d557;const _0xa5add7={};_0xa5add7[_0x1be183(0x210)]=_0x291959[_0x1be183(0x266)],_0xa5add7[_0x1be183(0x25e)]=_0x49a7ac;const _0x4dd8a4=[_0x439c1e,_0x23374b,_0xfba174,_0xa5add7],_0x55d50e=await _0x291959[_0x1be183(0x1d3)](generateReport,_0x4dd8a4,_0x2b7832),_0x39c208=new Date(),_0x1de0fb=_0x39c208['getUTCFullYear']()+'_'+_0x291959[_0x1be183(0x2b7)](_0x39c208[_0x1be183(0x29a)](),0x1)+'_'+_0x39c208['getUTCDate']()+'_'+_0x39c208[_0x1be183(0x248)]()+'_'+_0x39c208[_0x1be183(0x290)](),_0x1ef061='log/report_'+_0x1de0fb+_0x1be183(0x1d0);fs['writeFileSync'](_0x1ef061,_0x55d50e,_0x291959[_0x1be183(0x28d)]),logger['info'](_0x1be183(0x2ba)+_0x1ef061),process['exit'](0x0);}catch(_0x44a854){let _0x34b78b='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x44a854+'\x20';logger[_0x1be183(0x28f)](_0x34b78b),_0x34b78b+='\x0a'+JSON[_0x1be183(0x228)](_0x44a854[_0x1be183(0x20d)]),logger['debug'](_0x1be183(0x1e1)+_0x44a854['stack']);if(_0x4bbc6d){const _0x90e5d4={};_0x90e5d4[_0x1be183(0x289)]=WS_EVENTS['LOG'],_0x90e5d4['message']=_0x34b78b,webSocketUtils[_0x1be183(0x1de)](_0x4bbc6d,_0x90e5d4,_0x291959[_0x1be183(0x236)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x2481d5={};_0x2481d5[_0x1be183(0x28f)]=_0x34b78b,await _0x291959['pnDcw'](sendInstrumentationEvent,_0x389422,_0x291959[_0x1be183(0x259)],messageTypes['ERROR'],_0x291959[_0x1be183(0x224)],_0x2481d5,_0x389422),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x39ba2a=a18_0x76ab;function a18_0x76ab(_0xac090d,_0x1f728c){const _0x1412b9=a18_0x1412();return a18_0x76ab=function(_0x76aba5,_0x5bdf41){_0x76aba5=_0x76aba5-0x18a;let _0x2f51e8=_0x1412b9[_0x76aba5];return _0x2f51e8;},a18_0x76ab(_0xac090d,_0x1f728c);}function a18_0x1412(){const _0x595a5a=['6qfdQyf','4hvQYZz','7441020pRdLeO','builder','1669278hPlIsc','strict','handler','1785201qWFXXD','command','1CijlnP','5872090CUCSoZ','225577DlSXrR','epilogue','desc','help','130FcDXlW','../config/constants','commandDir','lvQqk','start','recommendCommands','gPZsg','3978125beduQd','6735488FQpUnX','usage','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0x1412=function(){return _0x595a5a;};return a18_0x1412();}(function(_0x3f0a6e,_0x1bb1e3){const _0x56d205=a18_0x76ab,_0x3c52fe=_0x3f0a6e();while(!![]){try{const _0x446bac=parseInt(_0x56d205(0x18a))/0x1*(parseInt(_0x56d205(0x19f))/0x2)+parseInt(_0x56d205(0x1a2))/0x3*(-parseInt(_0x56d205(0x19c))/0x4)+parseInt(_0x56d205(0x197))/0x5*(parseInt(_0x56d205(0x19b))/0x6)+-parseInt(_0x56d205(0x18b))/0x7+-parseInt(_0x56d205(0x198))/0x8+parseInt(_0x56d205(0x19d))/0x9+-parseInt(_0x56d205(0x190))/0xa*(-parseInt(_0x56d205(0x18c))/0xb);if(_0x446bac===_0x1bb1e3)break;else _0x3c52fe['push'](_0x3c52fe['shift']());}catch(_0x13fc4d){_0x3c52fe['push'](_0x3c52fe['shift']());}}}(a18_0x1412,0x6d512));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x39ba2a(0x191));exports[a18_0x39ba2a(0x1a3)]=a18_0x39ba2a(0x194),exports[a18_0x39ba2a(0x18e)]=a18_0x39ba2a(0x19a),exports[a18_0x39ba2a(0x19e)]=function(_0x3325bb){const _0x429481=a18_0x39ba2a,_0x1fcbaa={};_0x1fcbaa[_0x429481(0x196)]='start_commands',_0x1fcbaa['lvQqk']=_0x429481(0x18f);const _0xcbbe43=_0x1fcbaa;return _0x3325bb[_0x429481(0x199)](HELP_HEADER_MESSAGE[_0x429481(0x194)])[_0x429481(0x18d)](HELP_FOOTER_MESSAGE)[_0x429481(0x192)](_0xcbbe43[_0x429481(0x196)])['demandCommand']()[_0x429481(0x195)]()[_0x429481(0x1a0)]()[_0x429481(0x18f)](_0xcbbe43[_0x429481(0x193)]);},exports[a18_0x39ba2a(0x1a1)]=function(_0x56e62f){};
1
+ const a18_0x50c920=a18_0x23d0;(function(_0x1604af,_0x5e466b){const _0x239358=a18_0x23d0,_0xe29903=_0x1604af();while(!![]){try{const _0xf9c4e5=-parseInt(_0x239358(0x147))/0x1+parseInt(_0x239358(0x150))/0x2+parseInt(_0x239358(0x156))/0x3*(-parseInt(_0x239358(0x151))/0x4)+-parseInt(_0x239358(0x149))/0x5*(-parseInt(_0x239358(0x14f))/0x6)+-parseInt(_0x239358(0x14a))/0x7*(parseInt(_0x239358(0x145))/0x8)+parseInt(_0x239358(0x143))/0x9+-parseInt(_0x239358(0x144))/0xa;if(_0xf9c4e5===_0x5e466b)break;else _0xe29903['push'](_0xe29903['shift']());}catch(_0x1e52ee){_0xe29903['push'](_0xe29903['shift']());}}}(a18_0xa201,0x66fca));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x23d0(_0x56216d,_0x258731){const _0xa20112=a18_0xa201();return a18_0x23d0=function(_0x23d095,_0x18e1de){_0x23d095=_0x23d095-0x142;let _0x308bb3=_0xa20112[_0x23d095];return _0x308bb3;},a18_0x23d0(_0x56216d,_0x258731);}function a18_0xa201(){const _0x45a9de=['7vnhVaZ','Start\x20an\x20existing\x20Automation\x20grid.','builder','gWXGl','start','152472ckbviv','777342sdeLob','60JxMQdc','desc','demandCommand','commandDir','strict','74739yuvphZ','help','command','RIJHg','5612481fltOxE','4292750TbhHuC','1286056xqMMvM','epilogue','58723kHzioS','handler','85nELbKL'];a18_0xa201=function(){return _0x45a9de;};return a18_0xa201();}exports[a18_0x50c920(0x158)]='start',exports[a18_0x50c920(0x152)]=a18_0x50c920(0x14b),exports[a18_0x50c920(0x14c)]=function(_0x1ebb1b){const _0x3d974b=a18_0x50c920,_0x59a9d7={};_0x59a9d7[_0x3d974b(0x14d)]='start_commands',_0x59a9d7[_0x3d974b(0x142)]=_0x3d974b(0x157);const _0x923276=_0x59a9d7;return _0x1ebb1b['usage'](HELP_HEADER_MESSAGE[_0x3d974b(0x14e)])[_0x3d974b(0x146)](HELP_FOOTER_MESSAGE)[_0x3d974b(0x154)](_0x923276['gWXGl'])[_0x3d974b(0x153)]()['recommendCommands']()[_0x3d974b(0x155)]()[_0x3d974b(0x157)](_0x923276[_0x3d974b(0x142)]);},exports[a18_0x50c920(0x148)]=function(_0x4f4774){};
@@ -1 +1 @@
1
- function a19_0x1b0d(_0x3b3554,_0x2333fc){const _0x15991d=a19_0x1599();return a19_0x1b0d=function(_0x1b0d73,_0x48fc3c){_0x1b0d73=_0x1b0d73-0x1a9;let _0x5935c4=_0x15991d[_0x1b0d73];return _0x5935c4;},a19_0x1b0d(_0x3b3554,_0x2333fc);}const a19_0x5d1674=a19_0x1b0d;(function(_0x2a97b1,_0x1beb40){const _0x5ecd85=a19_0x1b0d,_0x1f2804=_0x2a97b1();while(!![]){try{const _0x65f54=-parseInt(_0x5ecd85(0x1ee))/0x1*(parseInt(_0x5ecd85(0x1f5))/0x2)+parseInt(_0x5ecd85(0x1af))/0x3*(-parseInt(_0x5ecd85(0x1cb))/0x4)+-parseInt(_0x5ecd85(0x1e1))/0x5*(parseInt(_0x5ecd85(0x1b9))/0x6)+-parseInt(_0x5ecd85(0x1e7))/0x7*(-parseInt(_0x5ecd85(0x1fd))/0x8)+-parseInt(_0x5ecd85(0x1bc))/0x9*(-parseInt(_0x5ecd85(0x1ff))/0xa)+parseInt(_0x5ecd85(0x1bb))/0xb+-parseInt(_0x5ecd85(0x1ea))/0xc;if(_0x65f54===_0x1beb40)break;else _0x1f2804['push'](_0x1f2804['shift']());}catch(_0x5b2288){_0x1f2804['push'](_0x1f2804['shift']());}}}(a19_0x1599,0x1ddbe));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5d1674(0x1f9)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x5d1674(0x1f1)),{scaleUpHubDeployment}=require(a19_0x5d1674(0x1d8)),{sendInstrumentationEvent}=require(a19_0x5d1674(0x1f8)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x5d1674(0x1e6)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x1599(){const _0x1a0ecf=['boolean','xuVBS','username','description','hctmW','251847Funado','command','desc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','init-not-called','mfiZG','oYiwa','pXAtB','skipTlsCertVerify','bstackUsername','6sCAdJA','argv','371283MoEoRR','7515dUZYYc','string','rmAur','stack','clusterName','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','options','NChcT','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hhXSQ','replace','eKUuc','exit','Grid\x20started','Browserstack','4Ahpaju','KbBKe','region','invalid-grid-id','grid','statusCode','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','default','existsSync','builder','password','INFO','../../utils/gridComponents','connectionTimeout','ceGON','debug','message','unauthorised','ERROR','readFileSync','xFDNm','392575nDAgMd','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Starting\x20grid\x20','skip-tls-cert-verify','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../utils/createk8sClient','7CvmEIW','error','LDUhS','738888DLinoY','INCOU','MvMna','gridId','1hvhzqP','apsJZ','info','../../utils/utilityMethods','Azjah','FTnmi','start','45558objPvQ','help','cloudProvider','../../utils/instrumentationUtils','../../config/constants','parse','Adding\x20Websocket\x20listeners','NRlOg','1761088TWnyrL','KugHJ','1380VXUeEm','DdhQG','clusterRegion','uiXVB','name','epilogue','addListeners','jWLpx','type','handler'];a19_0x1599=function(){return _0x1a0ecf;};return a19_0x1599();}exports[a19_0x5d1674(0x1b0)]=a19_0x5d1674(0x1cf),exports[a19_0x5d1674(0x1b1)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x5d1674(0x1d5)]=function(_0x696c39){const _0x47a134=a19_0x5d1674,_0x59a6f6={};_0x59a6f6['hhXSQ']=_0x47a134(0x1b2),_0x59a6f6[_0x47a134(0x1fc)]=_0x47a134(0x1bd),_0x59a6f6[_0x47a134(0x1ec)]='Skip\x20insecure\x20cert\x20verification.',_0x59a6f6[_0x47a134(0x1cc)]=_0x47a134(0x1aa),_0x59a6f6[_0x47a134(0x1b4)]=_0x47a134(0x1f6);const _0x2764e5=_0x59a6f6,_0x3e3004={};_0x3e3004[_0x47a134(0x1ad)]=_0x2764e5[_0x47a134(0x1c5)],_0x3e3004[_0x47a134(0x207)]=_0x2764e5[_0x47a134(0x1fc)];const _0x355815={};_0x355815[_0x47a134(0x1ad)]=_0x2764e5[_0x47a134(0x1ec)],_0x355815[_0x47a134(0x207)]=_0x2764e5[_0x47a134(0x1cc)],_0x355815[_0x47a134(0x1d3)]=![];const _0x4d2a9f={};return _0x4d2a9f['grid-id']=_0x3e3004,_0x4d2a9f[_0x47a134(0x1e4)]=_0x355815,_0x696c39['usage'](HELP_HEADER_MESSAGE[_0x47a134(0x1f4)])[_0x47a134(0x204)](HELP_FOOTER_MESSAGE)[_0x47a134(0x1c2)](_0x4d2a9f)[_0x47a134(0x1f6)](_0x2764e5[_0x47a134(0x1b4)])[_0x47a134(0x1ba)];},exports[a19_0x5d1674(0x1a9)]=async function(_0x5bf527){const _0x3a31c2=a19_0x5d1674,_0x459055={'xFDNm':_0x3a31c2(0x1e2),'FTnmi':function(_0x5a9c2f){return _0x5a9c2f();},'DdhQG':_0x3a31c2(0x1c4),'uiXVB':function(_0x23f0aa,_0x529758,_0x308955,_0x1d40cb,_0x5141dd,_0x2e82b2,_0x24d192){return _0x23f0aa(_0x529758,_0x308955,_0x1d40cb,_0x5141dd,_0x2e82b2,_0x24d192);},'KugHJ':'start-grid-called','bdgeH':_0x3a31c2(0x1b3),'Azjah':function(_0x50535b){return _0x50535b();},'NChcT':'<UsernamePlaceholder>','pXAtB':'<PasswordPlaceholder>','jWLpx':_0x3a31c2(0x1fb),'eKUuc':function(_0x122a7c,_0x93842e,_0x15f5e7,_0x38e69b){return _0x122a7c(_0x93842e,_0x15f5e7,_0x38e69b);},'apsJZ':function(_0x4dbc79,_0x4b7eb9,_0x411b60){return _0x4dbc79(_0x4b7eb9,_0x411b60);},'LDUhS':_0x3a31c2(0x1c9),'rmAur':function(_0x54bb53,_0x520b3a){return _0x54bb53===_0x520b3a;},'xuVBS':_0x3a31c2(0x1d1),'hctmW':_0x3a31c2(0x1dd),'INCOU':_0x3a31c2(0x1ce),'oYiwa':function(_0x274884,_0x56c3a5,_0x364fbc,_0xa3651f,_0x4f3e22,_0xb08b0f,_0x2f1660){return _0x274884(_0x56c3a5,_0x364fbc,_0xa3651f,_0x4f3e22,_0xb08b0f,_0x2f1660);},'ceGON':'server-error'};let _0x5cfe42;try{!_0x5bf527[_0x3a31c2(0x1ed)]&&(logger[_0x3a31c2(0x1e8)](_0x459055[_0x3a31c2(0x1e0)]),process[_0x3a31c2(0x1c8)](0x1));!fs[_0x3a31c2(0x1d4)](_0x459055[_0x3a31c2(0x1f3)](getCredentialsPath))&&(logger['error'](_0x459055[_0x3a31c2(0x200)]),await _0x459055[_0x3a31c2(0x202)](sendInstrumentationEvent,_0x5bf527,_0x459055[_0x3a31c2(0x1fe)],messageTypes[_0x3a31c2(0x1de)],_0x459055['bdgeH'],null,_0x5bf527),process['exit'](0x1));logger['info'](_0x3a31c2(0x1e3)+_0x5bf527[_0x3a31c2(0x1ed)]),await _0x459055[_0x3a31c2(0x202)](sendInstrumentationEvent,_0x5bf527,_0x459055[_0x3a31c2(0x1fe)],messageTypes[_0x3a31c2(0x1d7)],null,null,_0x5bf527);const _0x241e44=JSON[_0x3a31c2(0x1fa)](fs[_0x3a31c2(0x1df)](_0x459055[_0x3a31c2(0x1f2)](getCredentialsPath)));global_registry[_0x3a31c2(0x1b8)]=_0x241e44[_0x3a31c2(0x1ca)][_0x3a31c2(0x1ac)],global_registry['bstackAccesskey']=_0x241e44[_0x3a31c2(0x1ca)][_0x3a31c2(0x1d6)];const _0xba44d5=WS_ENDPOINT[_0x3a31c2(0x1c6)](_0x459055[_0x3a31c2(0x1c3)],_0x241e44['Browserstack'][_0x3a31c2(0x1ac)])[_0x3a31c2(0x1c6)](_0x459055[_0x3a31c2(0x1b6)],_0x241e44['Browserstack'][_0x3a31c2(0x1d6)]),_0x3df00a={};_0x3df00a['WebSocket']=ws,_0x3df00a[_0x3a31c2(0x1d9)]=0x36ee80,_0x5cfe42=new ReconnectingWebSocket(_0xba44d5,[],_0x3df00a),logger[_0x3a31c2(0x1db)](_0x459055[_0x3a31c2(0x206)]),webSocketUtils[_0x3a31c2(0x205)](_0x5cfe42,_0x5bf527['user'],_0x5bf527['password']);const [_0xbd85e8,_0xab895a]=await _0x459055[_0x3a31c2(0x1c7)](getGridDetails,_0x241e44[_0x3a31c2(0x1ca)][_0x3a31c2(0x1ac)],_0x241e44[_0x3a31c2(0x1ca)][_0x3a31c2(0x1d6)],_0x5bf527[_0x3a31c2(0x1ed)]);if(_0xab895a){const _0x34b6ff=_0xab895a['info'];global_registry[_0x3a31c2(0x1f7)]=_0x34b6ff['cloudProvider'],global_registry[_0x3a31c2(0x201)]=_0x34b6ff[_0x3a31c2(0x1cd)],global_registry[_0x3a31c2(0x1c0)]=_0x34b6ff[_0x3a31c2(0x1c0)];const _0x21e53e=await _0x459055['uiXVB'](getCloudProviderObject,_0x34b6ff['cloudProvider'],_0x34b6ff[_0x3a31c2(0x1c0)],_0x34b6ff[_0x3a31c2(0x203)],_0x5cfe42,webSocketUtils,_0x5bf527),[_0x421383,_0x3bb686,_0xc8f737,_0x5ee3df,_0x146464,_0x17fa89]=await _0x459055['apsJZ'](createK8sClient,_0x21e53e,_0x5bf527[_0x3a31c2(0x1b7)]);await _0x459055[_0x3a31c2(0x1ef)](scaleUpHubDeployment,_0x3bb686,_0x34b6ff[_0x3a31c2(0x203)]),logger[_0x3a31c2(0x1f0)](_0x459055[_0x3a31c2(0x1e9)]),process[_0x3a31c2(0x1c8)](0x0);}_0x459055[_0x3a31c2(0x1be)](_0xbd85e8[_0x3a31c2(0x1d0)],0x191)&&(logger[_0x3a31c2(0x1e8)](_0x459055[_0x3a31c2(0x1ab)]),await _0x459055[_0x3a31c2(0x202)](sendInstrumentationEvent,_0x5bf527,_0x459055['KugHJ'],messageTypes[_0x3a31c2(0x1de)],_0x459055[_0x3a31c2(0x1ae)],null,_0x5bf527),process[_0x3a31c2(0x1c8)](0x1)),_0x459055[_0x3a31c2(0x1be)](_0xbd85e8['statusCode'],0x190)&&(logger[_0x3a31c2(0x1e8)](JSON['parse'](_0xbd85e8['body'])[_0x3a31c2(0x1dc)]),await _0x459055['uiXVB'](sendInstrumentationEvent,_0x5bf527,_0x459055['KugHJ'],messageTypes[_0x3a31c2(0x1de)],_0x459055[_0x3a31c2(0x1eb)],null,_0x5bf527),process[_0x3a31c2(0x1c8)](0x1)),logger[_0x3a31c2(0x1e8)](_0x3a31c2(0x1c1)+JSON['stringify'](_0xbd85e8)),await _0x459055[_0x3a31c2(0x1b5)](sendInstrumentationEvent,_0x5bf527,_0x459055[_0x3a31c2(0x1fe)],messageTypes['ERROR'],_0x459055[_0x3a31c2(0x1da)],_0xbd85e8,_0x5bf527),process['exit'](0x1);}catch(_0x463c08){const _0x248e3c=_0x3a31c2(0x1e5)+_0x463c08+'\x20\x0a'+JSON[_0x3a31c2(0x1d2)](_0x463c08[_0x3a31c2(0x1bf)])+'\x20';logger['error'](_0x248e3c),process[_0x3a31c2(0x1c8)](0x1);}};
1
+ const a19_0x3f5b81=a19_0x41d8;(function(_0x4e6c6a,_0x3e103d){const _0x380d02=a19_0x41d8,_0xe15293=_0x4e6c6a();while(!![]){try{const _0x338196=-parseInt(_0x380d02(0xe1))/0x1+parseInt(_0x380d02(0xbd))/0x2*(parseInt(_0x380d02(0xdc))/0x3)+-parseInt(_0x380d02(0xe4))/0x4*(-parseInt(_0x380d02(0xd0))/0x5)+-parseInt(_0x380d02(0xc7))/0x6+-parseInt(_0x380d02(0xcd))/0x7+-parseInt(_0x380d02(0x103))/0x8*(parseInt(_0x380d02(0xcf))/0x9)+parseInt(_0x380d02(0xdf))/0xa;if(_0x338196===_0x3e103d)break;else _0xe15293['push'](_0xe15293['shift']());}catch(_0x409278){_0xe15293['push'](_0xe15293['shift']());}}}(a19_0x1a34,0x447d5));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3f5b81(0xc2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3f5b81(0xc1)),{logger}=require(a19_0x3f5b81(0xeb)),{getCredentialsPath,getGridDetails}=require(a19_0x3f5b81(0x10b)),{scaleUpHubDeployment}=require(a19_0x3f5b81(0xbb)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x3f5b81(0xce)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x3f5b81(0xb8));function a19_0x41d8(_0x52919f,_0x15a79f){const _0x1a34df=a19_0x1a34();return a19_0x41d8=function(_0x41d8c6,_0x187a82){_0x41d8c6=_0x41d8c6-0xb7;let _0x2fa025=_0x1a34df[_0x41d8c6];return _0x2fa025;},a19_0x41d8(_0x52919f,_0x15a79f);}function a19_0x1a34(){const _0x23b0fb=['3945860xemGXp','description','266849UAAIfK','WebSocket','doTGC','76OpshYs','gridId','name','jawYh','eIbZw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','help','../../config/logger','Skip\x20insecure\x20cert\x20verification.','password','invalid-grid-id','amASE','Starting\x20grid\x20','Adding\x20Websocket\x20listeners','Browserstack','info','skipTlsCertVerify','body','UVZFQ','ERROR','clusterRegion','debug','TqiVt','vwawf','clusterName','username','stack','stringify','type','command','region','382456TNCfGm','vOeBv','replace','CngNC','start-grid-called','grid','bstackAccesskey','<PasswordPlaceholder>','../../utils/utilityMethods','default','parse','LjXPE','khhDW','../../cloudproviders/utils','string','itULW','../../utils/gridComponents','olevS','950074woRHku','start','KhGPn','jxbUh','../../config/constants','reconnecting-websocket','epilogue','znmsL','cloudProvider','aWgxM','916950nNoopr','unauthorised','argv','server-error','Grid\x20started','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3629458XOaXbK','../../utils/webSocketUtils','27lRSlPk','129605qnAyZv','mgqXt','cFNhV','grid-id','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','desc','statusCode','error','options','MVBwM','yquYn','handler','3yQddDH','exit','message'];a19_0x1a34=function(){return _0x23b0fb;};return a19_0x1a34();}exports[a19_0x3f5b81(0x101)]=a19_0x3f5b81(0x108),exports[a19_0x3f5b81(0xd5)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x3d794f){const _0x3eba7c=a19_0x3f5b81,_0x6cf2b3={};_0x6cf2b3['nSKOF']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x6cf2b3[_0x3eba7c(0xc6)]=_0x3eba7c(0xb9),_0x6cf2b3[_0x3eba7c(0xfa)]=_0x3eba7c(0xec),_0x6cf2b3[_0x3eba7c(0x106)]='boolean',_0x6cf2b3[_0x3eba7c(0xd1)]=_0x3eba7c(0xea);const _0x20196d=_0x6cf2b3,_0x410b21={};_0x410b21[_0x3eba7c(0xe0)]=_0x20196d['nSKOF'],_0x410b21[_0x3eba7c(0x100)]=_0x20196d[_0x3eba7c(0xc6)];const _0x4efb1b={};_0x4efb1b['description']=_0x20196d['TqiVt'],_0x4efb1b['type']=_0x20196d[_0x3eba7c(0x106)],_0x4efb1b[_0x3eba7c(0x10c)]=![];const _0x1cc7df={};return _0x1cc7df[_0x3eba7c(0xd3)]=_0x410b21,_0x1cc7df['skip-tls-cert-verify']=_0x4efb1b,_0x3d794f['usage'](HELP_HEADER_MESSAGE[_0x3eba7c(0xbe)])[_0x3eba7c(0xc3)](HELP_FOOTER_MESSAGE)[_0x3eba7c(0xd8)](_0x1cc7df)['help'](_0x20196d[_0x3eba7c(0xd1)])[_0x3eba7c(0xc9)];},exports[a19_0x3f5b81(0xdb)]=async function(_0x5232a5){const _0x192cf5=a19_0x3f5b81,_0x42c7f1={'oxMiy':_0x192cf5(0xd4),'yquYn':function(_0x2d5193){return _0x2d5193();},'olevS':_0x192cf5(0xcc),'cFNhV':function(_0x3269b1,_0x36771c,_0x4c6872,_0xfed4e8,_0x3a3d20,_0x11653d,_0x5cbad6){return _0x3269b1(_0x36771c,_0x4c6872,_0xfed4e8,_0x3a3d20,_0x11653d,_0x5cbad6);},'itULW':_0x192cf5(0x107),'eIbZw':'init-not-called','MVBwM':function(_0x2924db,_0x151def,_0x309ed7,_0x1a9b7e,_0xc62831,_0x4a13f4,_0x478fcc){return _0x2924db(_0x151def,_0x309ed7,_0x1a9b7e,_0xc62831,_0x4a13f4,_0x478fcc);},'LjXPE':function(_0x1eda5f){return _0x1eda5f();},'ZMljC':'<UsernamePlaceholder>','vwawf':_0x192cf5(0x10a),'amASE':_0x192cf5(0xf1),'jCLjM':function(_0x1bf80b,_0x49ef86,_0xced9f6,_0xd824fd){return _0x1bf80b(_0x49ef86,_0xced9f6,_0xd824fd);},'jxbUh':function(_0x5e494e,_0x391833,_0x1e7074){return _0x5e494e(_0x391833,_0x1e7074);},'vOeBv':function(_0x2e5115,_0x68330c,_0x1ac6db){return _0x2e5115(_0x68330c,_0x1ac6db);},'klAQf':_0x192cf5(0xcb),'doTGC':function(_0x30cbb7,_0x1ac232){return _0x30cbb7===_0x1ac232;},'RRjhl':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','znmsL':function(_0x5633f5,_0x8cf6f2,_0x54389c,_0xc5229c,_0xa222f0,_0x3649cf,_0xf07e2e){return _0x5633f5(_0x8cf6f2,_0x54389c,_0xc5229c,_0xa222f0,_0x3649cf,_0xf07e2e);},'KhGPn':_0x192cf5(0xc8),'jawYh':function(_0x3bfd6c,_0x2da761){return _0x3bfd6c===_0x2da761;},'UVZFQ':_0x192cf5(0xee),'khhDW':function(_0x4ba7c2,_0x569ab6,_0x408b84,_0x3400b3,_0x3afd4c,_0xdfb060,_0x17d0fc){return _0x4ba7c2(_0x569ab6,_0x408b84,_0x3400b3,_0x3afd4c,_0xdfb060,_0x17d0fc);},'ehgNn':_0x192cf5(0xca)};let _0x3eaed3;try{!_0x5232a5[_0x192cf5(0xe5)]&&(logger[_0x192cf5(0xd7)](_0x42c7f1['oxMiy']),process[_0x192cf5(0xdd)](0x1));!fs['existsSync'](_0x42c7f1[_0x192cf5(0xda)](getCredentialsPath))&&(logger['error'](_0x42c7f1[_0x192cf5(0xbc)]),await _0x42c7f1[_0x192cf5(0xd2)](sendInstrumentationEvent,_0x5232a5,_0x42c7f1['itULW'],messageTypes[_0x192cf5(0xf7)],_0x42c7f1[_0x192cf5(0xe8)],null,_0x5232a5),process['exit'](0x1));logger[_0x192cf5(0xf3)](_0x192cf5(0xf0)+_0x5232a5['gridId']),await _0x42c7f1['MVBwM'](sendInstrumentationEvent,_0x5232a5,_0x42c7f1[_0x192cf5(0xba)],messageTypes['INFO'],null,null,_0x5232a5);const _0x21fbea=JSON[_0x192cf5(0x10d)](fs['readFileSync'](_0x42c7f1[_0x192cf5(0x10e)](getCredentialsPath)));global_registry['bstackUsername']=_0x21fbea[_0x192cf5(0xf2)][_0x192cf5(0xfd)],global_registry[_0x192cf5(0x109)]=_0x21fbea[_0x192cf5(0xf2)]['password'];const _0x4df26f=WS_ENDPOINT['replace'](_0x42c7f1['ZMljC'],_0x21fbea[_0x192cf5(0xf2)]['username'])[_0x192cf5(0x105)](_0x42c7f1[_0x192cf5(0xfb)],_0x21fbea['Browserstack']['password']),_0x13c125={};_0x13c125[_0x192cf5(0xe2)]=ws,_0x13c125['connectionTimeout']=0x36ee80,_0x3eaed3=new ReconnectingWebSocket(_0x4df26f,[],_0x13c125),logger[_0x192cf5(0xf9)](_0x42c7f1[_0x192cf5(0xef)]),webSocketUtils['addListeners'](_0x3eaed3,_0x5232a5['user'],_0x5232a5[_0x192cf5(0xed)]);const [_0x1656b9,_0x5dc256]=await _0x42c7f1['jCLjM'](getGridDetails,_0x21fbea[_0x192cf5(0xf2)][_0x192cf5(0xfd)],_0x21fbea[_0x192cf5(0xf2)][_0x192cf5(0xed)],_0x5232a5[_0x192cf5(0xe5)]);if(_0x5dc256){const _0x277423=_0x5dc256['info'];global_registry[_0x192cf5(0xc5)]=_0x277423[_0x192cf5(0xc5)],global_registry[_0x192cf5(0xf8)]=_0x277423[_0x192cf5(0x102)],global_registry[_0x192cf5(0xfc)]=_0x277423['clusterName'];const _0x1af19a=await _0x42c7f1[_0x192cf5(0xd9)](getCloudProviderObject,_0x277423[_0x192cf5(0xc5)],_0x277423['clusterName'],_0x277423[_0x192cf5(0xe6)],_0x3eaed3,webSocketUtils,_0x5232a5),[_0x3d17c8,_0x2d7493,_0x457dc7,_0x3fb42c,_0x1a7194,_0xb3b9c6]=await _0x42c7f1[_0x192cf5(0xc0)](createK8sClient,_0x1af19a,_0x5232a5[_0x192cf5(0xf4)]);await _0x42c7f1[_0x192cf5(0x104)](scaleUpHubDeployment,_0x2d7493,_0x277423[_0x192cf5(0xe6)]),logger[_0x192cf5(0xf3)](_0x42c7f1['klAQf']),process[_0x192cf5(0xdd)](0x0);}_0x42c7f1[_0x192cf5(0xe3)](_0x1656b9[_0x192cf5(0xd6)],0x191)&&(logger[_0x192cf5(0xd7)](_0x42c7f1['RRjhl']),await _0x42c7f1[_0x192cf5(0xc4)](sendInstrumentationEvent,_0x5232a5,_0x42c7f1[_0x192cf5(0xba)],messageTypes[_0x192cf5(0xf7)],_0x42c7f1[_0x192cf5(0xbf)],null,_0x5232a5),process[_0x192cf5(0xdd)](0x1)),_0x42c7f1[_0x192cf5(0xe7)](_0x1656b9[_0x192cf5(0xd6)],0x190)&&(logger['error'](JSON[_0x192cf5(0x10d)](_0x1656b9[_0x192cf5(0xf5)])[_0x192cf5(0xde)]),await _0x42c7f1[_0x192cf5(0xc4)](sendInstrumentationEvent,_0x5232a5,_0x42c7f1[_0x192cf5(0xba)],messageTypes['ERROR'],_0x42c7f1[_0x192cf5(0xf6)],null,_0x5232a5),process[_0x192cf5(0xdd)](0x1)),logger[_0x192cf5(0xd7)](_0x192cf5(0xe9)+JSON[_0x192cf5(0xff)](_0x1656b9)),await _0x42c7f1[_0x192cf5(0xb7)](sendInstrumentationEvent,_0x5232a5,_0x42c7f1['itULW'],messageTypes[_0x192cf5(0xf7)],_0x42c7f1['ehgNn'],_0x1656b9,_0x5232a5),process['exit'](0x1);}catch(_0x3ff0c6){const _0x8353a4='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x3ff0c6+'\x20\x0a'+JSON[_0x192cf5(0xff)](_0x3ff0c6[_0x192cf5(0xfe)])+'\x20';logger[_0x192cf5(0xd7)](_0x8353a4),process[_0x192cf5(0xdd)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x36c1(){const _0x5ba178=['help','319151fjTfeg','20WKuxRJ','78PVNugB','lYEHa','46246NvfImj','4914395wuBhDd','132684GuOcEF','../config/constants','command','9EJrelB','builder','4503334tXVLHt','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','usage','CWHPc','646634MPdbfK','stop','6DjgTpk','commandDir','8832184dHhWTd','epilogue'];a20_0x36c1=function(){return _0x5ba178;};return a20_0x36c1();}const a20_0x10bd99=a20_0x1e8f;(function(_0x426b78,_0xefaad5){const _0x98b21f=a20_0x1e8f,_0x434c7c=_0x426b78();while(!![]){try{const _0xb94ec6=-parseInt(_0x98b21f(0x1ae))/0x1+parseInt(_0x98b21f(0x1ba))/0x2+parseInt(_0x98b21f(0x1bc))/0x3*(-parseInt(_0x98b21f(0x1b0))/0x4)+-parseInt(_0x98b21f(0x1af))/0x5+parseInt(_0x98b21f(0x1ac))/0x6*(-parseInt(_0x98b21f(0x1aa))/0x7)+parseInt(_0x98b21f(0x1be))/0x8*(parseInt(_0x98b21f(0x1b3))/0x9)+parseInt(_0x98b21f(0x1ab))/0xa*(parseInt(_0x98b21f(0x1b5))/0xb);if(_0xb94ec6===_0xefaad5)break;else _0x434c7c['push'](_0x434c7c['shift']());}catch(_0x13fa8){_0x434c7c['push'](_0x434c7c['shift']());}}}(a20_0x36c1,0x88380));function a20_0x1e8f(_0x10fc36,_0x206d5b){const _0x36c151=a20_0x36c1();return a20_0x1e8f=function(_0x1e8f4c,_0x32600d){_0x1e8f4c=_0x1e8f4c-0x1a8;let _0x42da83=_0x36c151[_0x1e8f4c];return _0x42da83;},a20_0x1e8f(_0x10fc36,_0x206d5b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x10bd99(0x1b1));exports[a20_0x10bd99(0x1b2)]=a20_0x10bd99(0x1bb),exports['desc']=a20_0x10bd99(0x1b6),exports[a20_0x10bd99(0x1b4)]=function(_0x3a61fd){const _0x5d8b3d=a20_0x10bd99,_0x2dcdd2={};_0x2dcdd2['lYEHa']='stop_commands',_0x2dcdd2[_0x5d8b3d(0x1b9)]=_0x5d8b3d(0x1a9);const _0x205040=_0x2dcdd2;return _0x3a61fd[_0x5d8b3d(0x1b8)](HELP_HEADER_MESSAGE[_0x5d8b3d(0x1bb)])[_0x5d8b3d(0x1a8)](HELP_FOOTER_MESSAGE)[_0x5d8b3d(0x1bd)](_0x205040[_0x5d8b3d(0x1ad)])[_0x5d8b3d(0x1b7)]()['recommendCommands']()['strict']()[_0x5d8b3d(0x1a9)](_0x205040['CWHPc']);},exports['handler']=function(_0x3b63a6){};
1
+ function a20_0x10fb(){const _0x213a07=['307794SQDdzk','1476132CLMscQ','stop','strict','234087JGgHto','1180975lvdcte','demandCommand','desc','commandDir','epilogue','../config/constants','Stop\x20a\x20running\x20Automation\x20grid.','pwEkF','8HLJtjm','712616OMvemX','help','665620FvtVZb','builder','usage','55559XuTZdk','XRvXx','handler'];a20_0x10fb=function(){return _0x213a07;};return a20_0x10fb();}const a20_0x8fe05f=a20_0x2728;function a20_0x2728(_0x7afa25,_0x270925){const _0x10fb7f=a20_0x10fb();return a20_0x2728=function(_0x272805,_0x423994){_0x272805=_0x272805-0xd6;let _0x1f3991=_0x10fb7f[_0x272805];return _0x1f3991;},a20_0x2728(_0x7afa25,_0x270925);}(function(_0x4af1da,_0x249ac1){const _0x50bd24=a20_0x2728,_0xb61251=_0x4af1da();while(!![]){try{const _0x33bcde=parseInt(_0x50bd24(0xe8))/0x1+-parseInt(_0x50bd24(0xe0))/0x2+parseInt(_0x50bd24(0xd6))/0x3+parseInt(_0x50bd24(0xe2))/0x4+parseInt(_0x50bd24(0xd7))/0x5+-parseInt(_0x50bd24(0xe9))/0x6+-parseInt(_0x50bd24(0xe5))/0x7*(-parseInt(_0x50bd24(0xdf))/0x8);if(_0x33bcde===_0x249ac1)break;else _0xb61251['push'](_0xb61251['shift']());}catch(_0x291527){_0xb61251['push'](_0xb61251['shift']());}}}(a20_0x10fb,0x2f5ee));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x8fe05f(0xdc));exports['command']=a20_0x8fe05f(0xea),exports[a20_0x8fe05f(0xd9)]=a20_0x8fe05f(0xdd),exports[a20_0x8fe05f(0xe3)]=function(_0x4cdc6a){const _0x5ebf8c=a20_0x8fe05f,_0x597d37={};_0x597d37['XRvXx']='stop_commands',_0x597d37[_0x5ebf8c(0xde)]=_0x5ebf8c(0xe1);const _0x1974c1=_0x597d37;return _0x4cdc6a[_0x5ebf8c(0xe4)](HELP_HEADER_MESSAGE[_0x5ebf8c(0xea)])[_0x5ebf8c(0xdb)](HELP_FOOTER_MESSAGE)[_0x5ebf8c(0xda)](_0x1974c1[_0x5ebf8c(0xe6)])[_0x5ebf8c(0xd8)]()['recommendCommands']()[_0x5ebf8c(0xeb)]()[_0x5ebf8c(0xe1)](_0x1974c1[_0x5ebf8c(0xde)]);},exports[a20_0x8fe05f(0xe7)]=function(_0x405769){};
@@ -1 +1 @@
1
- const a21_0x18767f=a21_0x2c09;(function(_0x152846,_0x19ab51){const _0x3b669f=a21_0x2c09,_0x11a826=_0x152846();while(!![]){try{const _0x357799=-parseInt(_0x3b669f(0xfa))/0x1*(parseInt(_0x3b669f(0xdd))/0x2)+-parseInt(_0x3b669f(0xbc))/0x3*(-parseInt(_0x3b669f(0xf6))/0x4)+parseInt(_0x3b669f(0x10d))/0x5*(parseInt(_0x3b669f(0xc6))/0x6)+-parseInt(_0x3b669f(0x109))/0x7+-parseInt(_0x3b669f(0x106))/0x8+-parseInt(_0x3b669f(0xf7))/0x9*(-parseInt(_0x3b669f(0xd5))/0xa)+parseInt(_0x3b669f(0xb9))/0xb;if(_0x357799===_0x19ab51)break;else _0x11a826['push'](_0x11a826['shift']());}catch(_0x564002){_0x11a826['push'](_0x11a826['shift']());}}}(a21_0x338d,0x816bf));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x18767f(0xec)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x18767f(0x104)),{logger}=require(a21_0x18767f(0xf9)),{getCredentialsPath,getGridDetails}=require(a21_0x18767f(0xd0)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x18767f(0xf8)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x338d(){const _0x376c27=['rZXMR','body','88hVAIHh','18gmpVeF','../../utils/webSocketUtils','../../config/logger','446wgGzso','pUsMI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','replace','Oacnd','invalid-grid-id','readFileSync','region','stack','parse','../../config/constants','uRZhd','3232888eCukpl','grid','bQGfT','7228879JUBkDS','string','addListeners','stop','5JcJzFp','cloudProvider','Chtpo','type','boolean','message','grid-id','iRmuV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','statusCode','16459476MbijBE','bpneg','default','100554VxemkI','<UsernamePlaceholder>','skip-tls-cert-verify','oSPix','WebSocket','skipTlsCertVerify','help','<PasswordPlaceholder>','clusterName','debug','1370886nBZEyQ','bwAbb','clusterRegion','hTnZu','Browserstack','bstackAccesskey','password','exit','bkruH','gridId','../../utils/utilityMethods','ZKodL','ERROR','command','INFO','1185290jLohDY','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Stop\x20a\x20running\x20Automation\x20grid.','connectionTimeout','zLDQa','unauthorised','info','tkhgY','3284OKFjRa','LmEiM','usage','init-not-called','existsSync','xugtY','fekzW','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','Dvxle','Adding\x20Websocket\x20listeners','dFPsy','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','reconnecting-websocket','TZCiT','stringify','OUvhX','Skip\x20insecure\x20cert\x20verification.','WpWpd','description','xypRx'];a21_0x338d=function(){return _0x376c27;};return a21_0x338d();}function a21_0x2c09(_0x5c3644,_0x3cc285){const _0x338ddf=a21_0x338d();return a21_0x2c09=function(_0x2c09ae,_0x57274c){_0x2c09ae=_0x2c09ae-0xb3;let _0x28ba23=_0x338ddf[_0x2c09ae];return _0x28ba23;},a21_0x2c09(_0x5c3644,_0x3cc285);}exports[a21_0x18767f(0xd3)]=a21_0x18767f(0x107),exports['desc']=a21_0x18767f(0xd7),exports['builder']=function(_0x16da36){const _0x5c4aa2=a21_0x18767f,_0x44b628={};_0x44b628[_0x5c4aa2(0xc9)]=_0x5c4aa2(0xeb),_0x44b628[_0x5c4aa2(0x10f)]=_0x5c4aa2(0x10a),_0x44b628[_0x5c4aa2(0xe2)]=_0x5c4aa2(0xf0),_0x44b628[_0x5c4aa2(0xd9)]=_0x5c4aa2(0x111),_0x44b628[_0x5c4aa2(0xed)]='help';const _0x739b75=_0x44b628,_0x315dbd={};_0x315dbd['description']=_0x739b75[_0x5c4aa2(0xc9)],_0x315dbd['type']=_0x739b75[_0x5c4aa2(0x10f)];const _0x103886={};_0x103886[_0x5c4aa2(0xf2)]=_0x739b75[_0x5c4aa2(0xe2)],_0x103886[_0x5c4aa2(0x110)]=_0x739b75[_0x5c4aa2(0xd9)],_0x103886[_0x5c4aa2(0xbb)]=![];const _0x47a5f7={};return _0x47a5f7[_0x5c4aa2(0xb4)]=_0x315dbd,_0x47a5f7[_0x5c4aa2(0xbe)]=_0x103886,_0x16da36[_0x5c4aa2(0xdf)](HELP_HEADER_MESSAGE[_0x5c4aa2(0x10c)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x47a5f7)[_0x5c4aa2(0xc2)](_0x739b75[_0x5c4aa2(0xed)])['argv'];},exports['handler']=async function(_0x34feab){const _0x4d5844=a21_0x18767f,_0x49d32b={'oSPix':_0x4d5844(0xd6),'iRmuV':function(_0x5aebcd){return _0x5aebcd();},'LmEiM':_0x4d5844(0xb6),'fekzW':function(_0x1f3f7a,_0x18e984,_0x128081,_0x5c4bf0,_0x46cc91,_0x51ddf1,_0x2b8435){return _0x1f3f7a(_0x18e984,_0x128081,_0x5c4bf0,_0x46cc91,_0x51ddf1,_0x2b8435);},'OUvhX':'stop-grid-called','bwAbb':_0x4d5844(0xe0),'Oacnd':function(_0x1e2e95){return _0x1e2e95();},'bkruH':_0x4d5844(0xbd),'dFPsy':_0x4d5844(0xc3),'IIbsk':_0x4d5844(0xe8),'rZXMR':function(_0x1d7379,_0x2a6fec,_0x1f7ed2,_0x186981){return _0x1d7379(_0x2a6fec,_0x1f7ed2,_0x186981);},'uRZhd':function(_0x52582f,_0x477947,_0x7674fc){return _0x52582f(_0x477947,_0x7674fc);},'igcsA':function(_0x504ff2,_0x552f5c,_0x2c6a90){return _0x504ff2(_0x552f5c,_0x2c6a90);},'bpneg':'Grid\x20stoppped.','WpWpd':function(_0x50905b,_0x3a696e){return _0x50905b===_0x3a696e;},'tkhgY':_0x4d5844(0xe5),'pUsMI':function(_0x44d5f0,_0x3fbadb,_0x2c46a9,_0x1d162a,_0x508e48,_0x5b6902,_0x14d08a){return _0x44d5f0(_0x3fbadb,_0x2c46a9,_0x1d162a,_0x508e48,_0x5b6902,_0x14d08a);},'bQGfT':_0x4d5844(0xda),'qeYfP':function(_0x44b763,_0xd4be22){return _0x44b763===_0xd4be22;},'xypRx':_0x4d5844(0xff),'Dvxle':function(_0x225163,_0xcf690,_0x299733,_0x4892fa,_0xbe1dcd,_0x326fed,_0x17fdcd){return _0x225163(_0xcf690,_0x299733,_0x4892fa,_0xbe1dcd,_0x326fed,_0x17fdcd);},'ZKodL':'server-error'};let _0x2582d8;try{!_0x34feab['gridId']&&(logger[_0x4d5844(0xe6)](_0x49d32b[_0x4d5844(0xbf)]),process['exit'](0x1));!fs[_0x4d5844(0xe1)](_0x49d32b[_0x4d5844(0xb5)](getCredentialsPath))&&(logger['error'](_0x49d32b[_0x4d5844(0xde)]),await _0x49d32b[_0x4d5844(0xe3)](sendInstrumentationEvent,_0x34feab,_0x49d32b[_0x4d5844(0xef)],messageTypes[_0x4d5844(0xd2)],_0x49d32b[_0x4d5844(0xc7)],null,_0x34feab),process['exit'](0x1));logger['info']('Stopping\x20grid\x20'+_0x34feab[_0x4d5844(0xcf)]),await _0x49d32b['fekzW'](sendInstrumentationEvent,_0x34feab,_0x49d32b[_0x4d5844(0xef)],messageTypes[_0x4d5844(0xd4)],null,null,_0x34feab);const _0x93df7a=JSON[_0x4d5844(0x103)](fs[_0x4d5844(0x100)](_0x49d32b[_0x4d5844(0xfe)](getCredentialsPath)));global_registry['bstackUsername']=_0x93df7a[_0x4d5844(0xca)]['username'],global_registry[_0x4d5844(0xcb)]=_0x93df7a[_0x4d5844(0xca)][_0x4d5844(0xcc)];const _0x2b964f=WS_ENDPOINT[_0x4d5844(0xfd)](_0x49d32b[_0x4d5844(0xce)],_0x93df7a[_0x4d5844(0xca)][_0x4d5844(0xb7)])['replace'](_0x49d32b[_0x4d5844(0xe9)],_0x93df7a['Browserstack'][_0x4d5844(0xcc)]),_0x3dfa68={};_0x3dfa68[_0x4d5844(0xc0)]=ws,_0x3dfa68[_0x4d5844(0xd8)]=0x36ee80,_0x2582d8=new ReconnectingWebSocket(_0x2b964f,[],_0x3dfa68),logger[_0x4d5844(0xc5)](_0x49d32b['IIbsk']),webSocketUtils[_0x4d5844(0x10b)](_0x2582d8,_0x34feab['user'],_0x34feab[_0x4d5844(0xcc)]);const [_0x5800c0,_0x5737e3]=await _0x49d32b[_0x4d5844(0xf4)](getGridDetails,_0x93df7a[_0x4d5844(0xca)][_0x4d5844(0xb7)],_0x93df7a['Browserstack'][_0x4d5844(0xcc)],_0x34feab[_0x4d5844(0xcf)]);if(_0x5737e3){const _0x5485fd=_0x5737e3[_0x4d5844(0xdb)];global_registry[_0x4d5844(0x10e)]=_0x5485fd[_0x4d5844(0x10e)],global_registry[_0x4d5844(0xc8)]=_0x5485fd[_0x4d5844(0x101)],global_registry[_0x4d5844(0xc4)]=_0x5485fd[_0x4d5844(0xc4)];const _0xc4d8f2=await _0x49d32b[_0x4d5844(0xe3)](getCloudProviderObject,_0x5485fd['cloudProvider'],_0x5485fd[_0x4d5844(0xc4)],_0x5485fd['name'],_0x2582d8,webSocketUtils,_0x34feab),[_0x4f63ab,_0x5d7d72,_0x59f63a,_0x9dd6c3,_0x2a3f32,_0x29c09f]=await _0x49d32b[_0x4d5844(0x105)](createK8sClient,_0xc4d8f2,_0x34feab[_0x4d5844(0xc1)]);await _0x49d32b['igcsA'](scaleDownHubDeployment,_0x5d7d72,_0x5485fd[_0x4d5844(0xe4)]),logger[_0x4d5844(0xdb)](_0x49d32b[_0x4d5844(0xba)]),process['exit'](0x0);}_0x49d32b[_0x4d5844(0xf1)](_0x5800c0[_0x4d5844(0xb8)],0x191)&&(logger[_0x4d5844(0xe6)](_0x49d32b[_0x4d5844(0xdc)]),await _0x49d32b[_0x4d5844(0xfb)](sendInstrumentationEvent,_0x34feab,_0x49d32b[_0x4d5844(0xef)],messageTypes[_0x4d5844(0xd2)],_0x49d32b[_0x4d5844(0x108)],null,_0x34feab),process[_0x4d5844(0xcd)](0x1)),_0x49d32b['qeYfP'](_0x5800c0[_0x4d5844(0xb8)],0x190)&&(logger['error'](JSON[_0x4d5844(0x103)](_0x5800c0[_0x4d5844(0xf5)])[_0x4d5844(0xb3)]),await _0x49d32b[_0x4d5844(0xe3)](sendInstrumentationEvent,_0x34feab,_0x49d32b['OUvhX'],messageTypes[_0x4d5844(0xd2)],_0x49d32b[_0x4d5844(0xf3)],null,_0x34feab),process[_0x4d5844(0xcd)](0x1)),logger['error'](_0x4d5844(0xfc)+JSON[_0x4d5844(0xee)](_0x5800c0)),await _0x49d32b[_0x4d5844(0xe7)](sendInstrumentationEvent,_0x34feab,_0x49d32b[_0x4d5844(0xef)],messageTypes[_0x4d5844(0xd2)],_0x49d32b[_0x4d5844(0xd1)],_0x5800c0,_0x34feab),process[_0x4d5844(0xcd)](0x1);}catch(_0x4d868e){const _0x1cf1e0=_0x4d5844(0xea)+_0x4d868e+'\x20\x0a'+JSON[_0x4d5844(0xee)](_0x4d868e[_0x4d5844(0x102)])+'\x20';logger[_0x4d5844(0xe6)](_0x1cf1e0),process['exit'](0x1);}};
1
+ const a21_0x27f1b1=a21_0x2cc6;(function(_0x45424c,_0x2ed8bc){const _0x11794d=a21_0x2cc6,_0x3b637d=_0x45424c();while(!![]){try{const _0x31952c=-parseInt(_0x11794d(0x13e))/0x1+-parseInt(_0x11794d(0x13c))/0x2*(parseInt(_0x11794d(0x15f))/0x3)+-parseInt(_0x11794d(0x132))/0x4*(-parseInt(_0x11794d(0x192))/0x5)+parseInt(_0x11794d(0x188))/0x6*(-parseInt(_0x11794d(0x151))/0x7)+parseInt(_0x11794d(0x154))/0x8*(parseInt(_0x11794d(0x167))/0x9)+-parseInt(_0x11794d(0x190))/0xa+-parseInt(_0x11794d(0x133))/0xb*(-parseInt(_0x11794d(0x134))/0xc);if(_0x31952c===_0x2ed8bc)break;else _0x3b637d['push'](_0x3b637d['shift']());}catch(_0x34b1c8){_0x3b637d['push'](_0x3b637d['shift']());}}}(a21_0x473d,0x7e8be));function a21_0x473d(){const _0x408758=['name','IHmdp','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','clusterName','region','../../config/logger','skip-tls-cert-verify','unauthorised','elRMU','grid-id','JYmWi','message','argv','boolean','Skip\x20insecure\x20cert\x20verification.','body','24JoVpcV','wJeQN','FunkH','Grid\x20stoppped.','desc','readFileSync','../../config/constants','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','7765070mIKAAL','ERROR','30050PIcxnS','invalid-grid-id','username','dqzej','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','command','108gbXMtK','253wIIbfi','918024JfCZjb','ibKSE','INFO','password','kNkBY','info','ONTQD','epilogue','2TJCmTf','Stop\x20a\x20running\x20Automation\x20grid.','134191qlnPAG','addListeners','default','ZUymg','Browserstack','../../utils/instrumentationUtils','haQol','description','ivVBw','KEovz','jeAUZ','bstackAccesskey','nCpPR','server-error','connectionTimeout','jjcFU','usage','skGEZ','WebSocket','1652357MLpRRL','options','frgeE','1214264xcMHoO','../../cloudproviders/utils','init-not-called','../../utils/gridComponents','error','Stopping\x20grid\x20','cwrzD','type','SwSvS','../../utils/createk8sClient','grid','11787kJoTpG','skipTlsCertVerify','user','parse','AHcNd','exit','replace','cloudProvider','27cRBlnu','<PasswordPlaceholder>','KmZfs','stringify','../../utils/utilityMethods','bstackUsername','handler','stop-grid-called','gridId','hVuXN','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','mpMgn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DgNDc','reconnecting-websocket','help','statusCode'];a21_0x473d=function(){return _0x408758;};return a21_0x473d();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x27f1b1(0x175)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x27f1b1(0x18e)),{logger}=require(a21_0x27f1b1(0x17d)),{getCredentialsPath,getGridDetails}=require(a21_0x27f1b1(0x16b)),{scaleDownHubDeployment}=require(a21_0x27f1b1(0x157)),{sendInstrumentationEvent}=require(a21_0x27f1b1(0x143)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x27f1b1(0x15d)),{getCloudProviderObject}=require(a21_0x27f1b1(0x155));function a21_0x2cc6(_0x575f2e,_0x16b9a1){const _0x473d96=a21_0x473d();return a21_0x2cc6=function(_0x2cc6d9,_0x5934ac){_0x2cc6d9=_0x2cc6d9-0x132;let _0x5ed11b=_0x473d96[_0x2cc6d9];return _0x5ed11b;},a21_0x2cc6(_0x575f2e,_0x16b9a1);}exports[a21_0x27f1b1(0x197)]=a21_0x27f1b1(0x15e),exports[a21_0x27f1b1(0x18c)]=a21_0x27f1b1(0x13d),exports['builder']=function(_0x5b44a5){const _0x4ffe61=a21_0x27f1b1,_0x724f24={};_0x724f24[_0x4ffe61(0x146)]=_0x4ffe61(0x171),_0x724f24[_0x4ffe61(0x195)]='string',_0x724f24['haQol']=_0x4ffe61(0x186),_0x724f24[_0x4ffe61(0x189)]=_0x4ffe61(0x185),_0x724f24[_0x4ffe61(0x14f)]=_0x4ffe61(0x176);const _0x1d144e=_0x724f24,_0x52201c={};_0x52201c['description']=_0x1d144e['ivVBw'],_0x52201c[_0x4ffe61(0x15b)]=_0x1d144e['dqzej'];const _0x12b638={};_0x12b638[_0x4ffe61(0x145)]=_0x1d144e[_0x4ffe61(0x144)],_0x12b638[_0x4ffe61(0x15b)]=_0x1d144e[_0x4ffe61(0x189)],_0x12b638[_0x4ffe61(0x140)]=![];const _0x17ec7c={};return _0x17ec7c[_0x4ffe61(0x181)]=_0x52201c,_0x17ec7c[_0x4ffe61(0x17e)]=_0x12b638,_0x5b44a5[_0x4ffe61(0x14e)](HELP_HEADER_MESSAGE['stop'])[_0x4ffe61(0x13b)](HELP_FOOTER_MESSAGE)[_0x4ffe61(0x152)](_0x17ec7c)[_0x4ffe61(0x176)](_0x1d144e[_0x4ffe61(0x14f)])[_0x4ffe61(0x184)];},exports[a21_0x27f1b1(0x16d)]=async function(_0x2f1841){const _0x5b0bcb=a21_0x27f1b1,_0x46d28e={'JYmWi':_0x5b0bcb(0x17a),'elRMU':function(_0x36b46d){return _0x36b46d();},'nCpPR':_0x5b0bcb(0x173),'jeAUZ':function(_0xe963f3,_0x4d6b70,_0x31ab35,_0x1adcf7,_0x43459d,_0x565260,_0x4501eb){return _0xe963f3(_0x4d6b70,_0x31ab35,_0x1adcf7,_0x43459d,_0x565260,_0x4501eb);},'SwSvS':_0x5b0bcb(0x16e),'mpMgn':_0x5b0bcb(0x156),'kNkBY':function(_0x2fbbea){return _0x2fbbea();},'DgNDc':'<UsernamePlaceholder>','jjcFU':_0x5b0bcb(0x168),'KmZfs':'Adding\x20Websocket\x20listeners','cwrzD':function(_0x247b24,_0x33d6e7,_0x1fab89,_0xfe2837){return _0x247b24(_0x33d6e7,_0x1fab89,_0xfe2837);},'FunkH':function(_0x189223,_0x544e96,_0x4bee47){return _0x189223(_0x544e96,_0x4bee47);},'IHmdp':function(_0xb5b3bb,_0x18eca9,_0x16c40e){return _0xb5b3bb(_0x18eca9,_0x16c40e);},'ZUymg':_0x5b0bcb(0x18b),'hVuXN':function(_0xf065ce,_0x5d3872){return _0xf065ce===_0x5d3872;},'ibKSE':_0x5b0bcb(0x196),'KEovz':function(_0x52976e,_0x2a2307,_0x44b321,_0x1a2be9,_0xa75a9b,_0x40fe05,_0x1937e1){return _0x52976e(_0x2a2307,_0x44b321,_0x1a2be9,_0xa75a9b,_0x40fe05,_0x1937e1);},'ONTQD':_0x5b0bcb(0x17f),'AHcNd':function(_0x20e17f,_0x490830){return _0x20e17f===_0x490830;},'WtUoy':_0x5b0bcb(0x193),'frgeE':_0x5b0bcb(0x14b)};let _0x23d51e;try{!_0x2f1841[_0x5b0bcb(0x16f)]&&(logger['error'](_0x46d28e[_0x5b0bcb(0x182)]),process[_0x5b0bcb(0x164)](0x1));!fs['existsSync'](_0x46d28e[_0x5b0bcb(0x180)](getCredentialsPath))&&(logger[_0x5b0bcb(0x158)](_0x46d28e[_0x5b0bcb(0x14a)]),await _0x46d28e[_0x5b0bcb(0x148)](sendInstrumentationEvent,_0x2f1841,_0x46d28e[_0x5b0bcb(0x15c)],messageTypes[_0x5b0bcb(0x191)],_0x46d28e[_0x5b0bcb(0x172)],null,_0x2f1841),process['exit'](0x1));logger[_0x5b0bcb(0x139)](_0x5b0bcb(0x159)+_0x2f1841['gridId']),await _0x46d28e[_0x5b0bcb(0x148)](sendInstrumentationEvent,_0x2f1841,_0x46d28e[_0x5b0bcb(0x15c)],messageTypes[_0x5b0bcb(0x136)],null,null,_0x2f1841);const _0x198cab=JSON[_0x5b0bcb(0x162)](fs[_0x5b0bcb(0x18d)](_0x46d28e[_0x5b0bcb(0x138)](getCredentialsPath)));global_registry[_0x5b0bcb(0x16c)]=_0x198cab[_0x5b0bcb(0x142)]['username'],global_registry[_0x5b0bcb(0x149)]=_0x198cab['Browserstack'][_0x5b0bcb(0x137)];const _0x2e099e=WS_ENDPOINT[_0x5b0bcb(0x165)](_0x46d28e[_0x5b0bcb(0x174)],_0x198cab[_0x5b0bcb(0x142)][_0x5b0bcb(0x194)])[_0x5b0bcb(0x165)](_0x46d28e[_0x5b0bcb(0x14d)],_0x198cab[_0x5b0bcb(0x142)][_0x5b0bcb(0x137)]),_0x5bbf85={};_0x5bbf85[_0x5b0bcb(0x150)]=ws,_0x5bbf85[_0x5b0bcb(0x14c)]=0x36ee80,_0x23d51e=new ReconnectingWebSocket(_0x2e099e,[],_0x5bbf85),logger['debug'](_0x46d28e[_0x5b0bcb(0x169)]),webSocketUtils[_0x5b0bcb(0x13f)](_0x23d51e,_0x2f1841[_0x5b0bcb(0x161)],_0x2f1841['password']);const [_0x1e7179,_0x687584]=await _0x46d28e[_0x5b0bcb(0x15a)](getGridDetails,_0x198cab[_0x5b0bcb(0x142)]['username'],_0x198cab[_0x5b0bcb(0x142)][_0x5b0bcb(0x137)],_0x2f1841[_0x5b0bcb(0x16f)]);if(_0x687584){const _0x1cef3c=_0x687584[_0x5b0bcb(0x139)];global_registry[_0x5b0bcb(0x166)]=_0x1cef3c[_0x5b0bcb(0x166)],global_registry['clusterRegion']=_0x1cef3c[_0x5b0bcb(0x17c)],global_registry['clusterName']=_0x1cef3c['clusterName'];const _0x2a5ab3=await _0x46d28e[_0x5b0bcb(0x148)](getCloudProviderObject,_0x1cef3c['cloudProvider'],_0x1cef3c[_0x5b0bcb(0x17b)],_0x1cef3c[_0x5b0bcb(0x178)],_0x23d51e,webSocketUtils,_0x2f1841),[_0x445ae0,_0x406ce5,_0x396fdd,_0x2bbe85,_0x1892d1,_0x7c2906]=await _0x46d28e[_0x5b0bcb(0x18a)](createK8sClient,_0x2a5ab3,_0x2f1841[_0x5b0bcb(0x160)]);await _0x46d28e[_0x5b0bcb(0x179)](scaleDownHubDeployment,_0x406ce5,_0x1cef3c[_0x5b0bcb(0x178)]),logger[_0x5b0bcb(0x139)](_0x46d28e[_0x5b0bcb(0x141)]),process[_0x5b0bcb(0x164)](0x0);}_0x46d28e[_0x5b0bcb(0x170)](_0x1e7179[_0x5b0bcb(0x177)],0x191)&&(logger[_0x5b0bcb(0x158)](_0x46d28e[_0x5b0bcb(0x135)]),await _0x46d28e[_0x5b0bcb(0x147)](sendInstrumentationEvent,_0x2f1841,_0x46d28e[_0x5b0bcb(0x15c)],messageTypes['ERROR'],_0x46d28e[_0x5b0bcb(0x13a)],null,_0x2f1841),process['exit'](0x1)),_0x46d28e[_0x5b0bcb(0x163)](_0x1e7179[_0x5b0bcb(0x177)],0x190)&&(logger[_0x5b0bcb(0x158)](JSON[_0x5b0bcb(0x162)](_0x1e7179[_0x5b0bcb(0x187)])[_0x5b0bcb(0x183)]),await _0x46d28e['jeAUZ'](sendInstrumentationEvent,_0x2f1841,_0x46d28e[_0x5b0bcb(0x15c)],messageTypes[_0x5b0bcb(0x191)],_0x46d28e['WtUoy'],null,_0x2f1841),process[_0x5b0bcb(0x164)](0x1)),logger[_0x5b0bcb(0x158)](_0x5b0bcb(0x18f)+JSON['stringify'](_0x1e7179)),await _0x46d28e[_0x5b0bcb(0x147)](sendInstrumentationEvent,_0x2f1841,_0x46d28e[_0x5b0bcb(0x15c)],messageTypes[_0x5b0bcb(0x191)],_0x46d28e[_0x5b0bcb(0x153)],_0x1e7179,_0x2f1841),process[_0x5b0bcb(0x164)](0x1);}catch(_0x3c30b4){const _0x2c0cb5='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x3c30b4+'\x20\x0a'+JSON[_0x5b0bcb(0x16a)](_0x3c30b4['stack'])+'\x20';logger[_0x5b0bcb(0x158)](_0x2c0cb5),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x513997=a22_0x261f;(function(_0x53aa60,_0x5abfda){const _0x3d8dad=a22_0x261f,_0x147a21=_0x53aa60();while(!![]){try{const _0x3ed3b4=-parseInt(_0x3d8dad(0x12d))/0x1+-parseInt(_0x3d8dad(0x158))/0x2+-parseInt(_0x3d8dad(0x112))/0x3+parseInt(_0x3d8dad(0x113))/0x4*(-parseInt(_0x3d8dad(0x127))/0x5)+-parseInt(_0x3d8dad(0x14f))/0x6+-parseInt(_0x3d8dad(0x156))/0x7*(-parseInt(_0x3d8dad(0x10d))/0x8)+-parseInt(_0x3d8dad(0x137))/0x9*(-parseInt(_0x3d8dad(0x153))/0xa);if(_0x3ed3b4===_0x5abfda)break;else _0x147a21['push'](_0x147a21['shift']());}catch(_0x176698){_0x147a21['push'](_0x147a21['shift']());}}}(a22_0x2737,0x3a6c9),require(a22_0x513997(0x110))[a22_0x513997(0x150)]());let gridURL=a22_0x513997(0x138),bsApiUrl=a22_0x513997(0x12b),agApiUrl=a22_0x513997(0xfe);const _env=(process[a22_0x513997(0x13e)]['BROWSERSTACK_ENV']||a22_0x513997(0x107))[a22_0x513997(0x148)]();if(_env==='staging'||_env==='stag')gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x513997(0x14a);else(_env===a22_0x513997(0x15b)||_env===a22_0x513997(0x157))&&(gridURL=a22_0x513997(0x13d),bsApiUrl=a22_0x513997(0x14e),agApiUrl=a22_0x513997(0x162));exports['DASHBOARD_ENDPOINT']=process[a22_0x513997(0x13e)][a22_0x513997(0x134)]||gridURL,exports[a22_0x513997(0x164)]=process[a22_0x513997(0x13e)]['BS_API_URL']||bsApiUrl,exports[a22_0x513997(0x144)]=process[a22_0x513997(0x13e)][a22_0x513997(0x144)]||agApiUrl,exports[a22_0x513997(0x14d)]=a22_0x513997(0x111)+this[a22_0x513997(0x144)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x513997(0x12f)]=a22_0x513997(0x11c),exports['IAM_USER_NAME']=a22_0x513997(0x12c),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports['AWS']=a22_0x513997(0x105),exports[a22_0x513997(0x117)]=a22_0x513997(0x14b),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x513997(0x116)]=a22_0x513997(0x143),exports[a22_0x513997(0x119)]='browserstack-turboscale-grid',exports[a22_0x513997(0x15a)]=a22_0x513997(0x103),exports[a22_0x513997(0x161)]=a22_0x513997(0x165),exports[a22_0x513997(0x130)]=[this[a22_0x513997(0x139)],this[a22_0x513997(0x15a)],this[a22_0x513997(0x161)]];const a22_0x562372={};function a22_0x2737(){const _0x2d3684=['dotenv','wss://','1132419jTyKrG','513356qrFgtv','TURBOSCALE_CUSTOM_TAGS','DEFAULT_CLUSTER_DETAILS','CLUSTER_HUB_HA_STACK_NAME','CLUSTER_DEP_STACK_NAME','browserstack:managedBy','TURBOSCALE_DEPLOYMENT','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','push','credentials','RAW_ARGS_REGEX','messageTypes','grid','pre-check','REDACTED','LINK_MESSAGE','root','Key','cliRunStarted','list','5tFDimE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','api.browserstack.com','BrowserStackIAMUser','92342GVZAuA','CLOUD_PROVIDER','CP_CONFIG_FILE','ALL_SUPPORTED_CLOUD_PROVIDERS','CLI_RUN_STARTED','INFO','start','DASHBOARD_ENDPOINT','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','connect','162YVKcJm','grid.browserstack.com','AWS','HELP_FOOTER_MESSAGE','[REDACTED]','CLUSTER','grid-preprod.bsstag.com','env','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid-profile','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','WARNING','BSTACK-ATS-CLUSTER-HUB-HA','AG_API_URL','CLI_RUN_FINISHED','COMMON_HST_TAGS','TRIAL_GRID_URL','toLowerCase','BrowserStack','grid-api-devhst.bsstag.com','BSTACK-ATS-CLUSTER','HST_CLUSTER_TAGS','WS_ENDPOINT','api-preprod.bsstag.com','2208732pvIwXK','config','gridProfile','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','649130hIkXUz','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:service','678461NVowLh','pre-prod','119552kfczLY','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AZURE','preprod','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','warning','init','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','GCP','grid-api-preprod.bsstag.com','HELP_HEADER_MESSAGE','BS_API_URL','gcp','Value','pre_check','grid-api.browserstack.com','BrowserStack-Automate-TurboScale','unknown','SUCCESS','us-east-1','azure','MessageDescription','aws','gridUrl','prod','forEach','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','split','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','stop','8ttGWmV','log','resourceInfo'];a22_0x2737=function(){return _0x2d3684;};return a22_0x2737();}a22_0x562372['Key']=a22_0x513997(0x118),a22_0x562372[a22_0x513997(0x166)]=a22_0x513997(0x149);const a22_0x9085ee={};a22_0x9085ee[a22_0x513997(0x124)]=a22_0x513997(0x155),a22_0x9085ee[a22_0x513997(0x166)]=a22_0x513997(0xff);const common_hst_tags_list=[a22_0x562372,a22_0x9085ee];if(process[a22_0x513997(0x13e)][a22_0x513997(0x114)]){const parsedTags=process[a22_0x513997(0x13e)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x513997(0x10a)](',');parsedTags[a22_0x513997(0x108)](_0x14b2dc=>{const _0x12af97=a22_0x513997,_0x5c6263=_0x14b2dc['split'](':'),_0x47798b={};_0x47798b[_0x12af97(0x124)]=_0x5c6263[0x0],_0x47798b[_0x12af97(0x166)]=_0x5c6263[0x1],common_hst_tags_list[_0x12af97(0x11b)](_0x47798b);});}exports[a22_0x513997(0x146)]=common_hst_tags_list;const a22_0x47c462={};a22_0x47c462[a22_0x513997(0x118)]=a22_0x513997(0x149),a22_0x47c462[a22_0x513997(0x155)]='BrowserStack-Automate-TurboScale',exports[a22_0x513997(0x14c)]=a22_0x47c462,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x513997(0x139)]];const a22_0x129575={};function a22_0x261f(_0x28e111,_0x4eee1f){const _0x2737fc=a22_0x2737();return a22_0x261f=function(_0x261fca,_0x25010b){_0x261fca=_0x261fca-0xfe;let _0x57dd9c=_0x2737fc[_0x261fca];return _0x57dd9c;},a22_0x261f(_0x28e111,_0x4eee1f);}a22_0x129575['LOG']=a22_0x513997(0x10e),a22_0x129575['RESOURCES']=a22_0x513997(0x10f),a22_0x129575['GRID_URL']=a22_0x513997(0x106),a22_0x129575[a22_0x513997(0x131)]=a22_0x513997(0x125),a22_0x129575[a22_0x513997(0x145)]='cliRunFinished',exports['WS_EVENTS']=a22_0x129575,exports['global_registry']={},exports[a22_0x513997(0x122)]=a22_0x513997(0x11a);const a22_0x50fadb={};a22_0x50fadb[a22_0x513997(0x123)]=a22_0x513997(0x160)+this[a22_0x513997(0x122)],a22_0x50fadb[a22_0x513997(0x15f)]=a22_0x513997(0x10b)+this[a22_0x513997(0x122)],a22_0x50fadb['configure']=a22_0x513997(0x12a)+this['LINK_MESSAGE'],a22_0x50fadb['create']=a22_0x513997(0x15d)+this['LINK_MESSAGE'],a22_0x50fadb[a22_0x513997(0x126)]={},a22_0x50fadb['delete']=a22_0x513997(0x109)+this[a22_0x513997(0x122)],a22_0x50fadb[a22_0x513997(0x136)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x513997(0x122)],a22_0x50fadb[a22_0x513997(0x133)]=a22_0x513997(0x141)+this[a22_0x513997(0x122)],a22_0x50fadb[a22_0x513997(0x10c)]=a22_0x513997(0x128)+this[a22_0x513997(0x122)],a22_0x50fadb[a22_0x513997(0x167)]=a22_0x513997(0x15c)+this[a22_0x513997(0x122)],a22_0x50fadb[a22_0x513997(0x126)][a22_0x513997(0x123)]=a22_0x513997(0x154)+this[a22_0x513997(0x122)],a22_0x50fadb[a22_0x513997(0x126)][a22_0x513997(0x11f)]=a22_0x513997(0x13f)+this['LINK_MESSAGE'],a22_0x50fadb[a22_0x513997(0x126)][a22_0x513997(0x151)]=a22_0x513997(0x159)+this[a22_0x513997(0x122)],exports[a22_0x513997(0x163)]=a22_0x50fadb,exports[a22_0x513997(0x13a)]=a22_0x513997(0x135);const a22_0x259a78={};a22_0x259a78[a22_0x513997(0x101)]='success',a22_0x259a78['ERROR']='error',a22_0x259a78[a22_0x513997(0x132)]='info',a22_0x259a78[a22_0x513997(0x142)]=a22_0x513997(0x15e),a22_0x259a78['UNKNOWN']=a22_0x513997(0x100),a22_0x259a78['NULL']=null,exports[a22_0x513997(0x11e)]=a22_0x259a78,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x513997(0x11d)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x513997(0x121)]=a22_0x513997(0x13b);const a22_0x5ced52={};a22_0x5ced52[a22_0x513997(0x140)]=a22_0x513997(0x129);const a22_0x3fd95f={};a22_0x3fd95f[a22_0x513997(0x120)]=a22_0x5ced52,exports[a22_0x513997(0x104)]=a22_0x3fd95f,exports[a22_0x513997(0x147)]=a22_0x513997(0x152);const a22_0x1b1642={};a22_0x1b1642[a22_0x513997(0x13c)]='high-scale-grid-cluster',a22_0x1b1642[a22_0x513997(0x12e)]=a22_0x513997(0x105),a22_0x1b1642['REGION']=a22_0x513997(0x102),exports[a22_0x513997(0x115)]=a22_0x1b1642;
1
+ function a22_0x42be(_0x68193d,_0x5145bd){const _0x14f56e=a22_0x14f5();return a22_0x42be=function(_0x42be64,_0x25f1d1){_0x42be64=_0x42be64-0x1ae;let _0x27a379=_0x14f56e[_0x42be64];return _0x27a379;},a22_0x42be(_0x68193d,_0x5145bd);}const a22_0x4743a8=a22_0x42be;(function(_0x3a33ef,_0xf2a1f4){const _0x5add55=a22_0x42be,_0x46f7ed=_0x3a33ef();while(!![]){try{const _0x22075b=parseInt(_0x5add55(0x1cf))/0x1+parseInt(_0x5add55(0x1c9))/0x2*(-parseInt(_0x5add55(0x1b4))/0x3)+parseInt(_0x5add55(0x1df))/0x4*(-parseInt(_0x5add55(0x1c5))/0x5)+parseInt(_0x5add55(0x1bb))/0x6+-parseInt(_0x5add55(0x213))/0x7+parseInt(_0x5add55(0x1c7))/0x8+parseInt(_0x5add55(0x1c4))/0x9;if(_0x22075b===_0xf2a1f4)break;else _0x46f7ed['push'](_0x46f7ed['shift']());}catch(_0x1686e0){_0x46f7ed['push'](_0x46f7ed['shift']());}}}(a22_0x14f5,0xb9557),require(a22_0x4743a8(0x1e5))['config']());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x4743a8(0x1d1),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x4743a8(0x1b0)]['BROWSERSTACK_ENV']||a22_0x4743a8(0x1ea))[a22_0x4743a8(0x1bf)]();if(_env==='staging'||_env===a22_0x4743a8(0x1ca))gridURL=a22_0x4743a8(0x214),bsApiUrl=a22_0x4743a8(0x1b2),agApiUrl=a22_0x4743a8(0x1d4);else(_env==='preprod'||_env==='pre-prod')&&(gridURL=a22_0x4743a8(0x1cd),bsApiUrl=a22_0x4743a8(0x1fc),agApiUrl=a22_0x4743a8(0x1ee));exports[a22_0x4743a8(0x1d9)]=process[a22_0x4743a8(0x1b0)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x4743a8(0x1fd)]=process[a22_0x4743a8(0x1b0)][a22_0x4743a8(0x1fd)]||bsApiUrl,exports[a22_0x4743a8(0x1ae)]=process[a22_0x4743a8(0x1b0)][a22_0x4743a8(0x1ae)]||agApiUrl,exports[a22_0x4743a8(0x1ba)]=a22_0x4743a8(0x211)+this[a22_0x4743a8(0x1ae)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x4743a8(0x1ec)]=a22_0x4743a8(0x1b1),exports[a22_0x4743a8(0x216)]=a22_0x4743a8(0x20d),exports['DEFAULT_GRID_NAME']=a22_0x4743a8(0x1e3),exports[a22_0x4743a8(0x1f8)]='aws',exports[a22_0x4743a8(0x1c0)]=a22_0x4743a8(0x1b7),exports[a22_0x4743a8(0x1c6)]=a22_0x4743a8(0x210),exports[a22_0x4743a8(0x1b5)]=a22_0x4743a8(0x1c1),exports['TURBOSCALE_DEPLOYMENT']=a22_0x4743a8(0x1e4),exports[a22_0x4743a8(0x1f6)]='azure',exports[a22_0x4743a8(0x1d8)]='gcp',exports[a22_0x4743a8(0x1bc)]=[this['AWS'],this[a22_0x4743a8(0x1f6)],this[a22_0x4743a8(0x1d8)]];const a22_0x35305c={};a22_0x35305c[a22_0x4743a8(0x1b9)]=a22_0x4743a8(0x1f1),a22_0x35305c[a22_0x4743a8(0x1f5)]='BrowserStack';const a22_0x58573c={};a22_0x58573c[a22_0x4743a8(0x1b9)]=a22_0x4743a8(0x1d2),a22_0x58573c[a22_0x4743a8(0x1f5)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x35305c,a22_0x58573c];if(process[a22_0x4743a8(0x1b0)][a22_0x4743a8(0x1e0)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS']['split'](',');parsedTags[a22_0x4743a8(0x1d3)](_0x10ebf5=>{const _0x54ab9a=a22_0x4743a8,_0x3a70e6=_0x10ebf5[_0x54ab9a(0x1b3)](':'),_0x40abc5={};_0x40abc5[_0x54ab9a(0x1b9)]=_0x3a70e6[0x0],_0x40abc5[_0x54ab9a(0x1f5)]=_0x3a70e6[0x1],common_hst_tags_list[_0x54ab9a(0x1b8)](_0x40abc5);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x4fccf2={};a22_0x4fccf2['browserstack:managedBy']=a22_0x4743a8(0x1f2),a22_0x4fccf2[a22_0x4743a8(0x1d2)]='BrowserStack-Automate-TurboScale',exports[a22_0x4743a8(0x1de)]=a22_0x4fccf2,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0xa7c49a={};a22_0xa7c49a[a22_0x4743a8(0x212)]=a22_0x4743a8(0x1c2),a22_0xa7c49a[a22_0x4743a8(0x1e1)]=a22_0x4743a8(0x1e6),a22_0xa7c49a[a22_0x4743a8(0x1b6)]=a22_0x4743a8(0x20c),a22_0xa7c49a['CLI_RUN_STARTED']=a22_0x4743a8(0x205),a22_0xa7c49a[a22_0x4743a8(0x1e7)]='cliRunFinished',exports[a22_0x4743a8(0x1f9)]=a22_0xa7c49a,exports[a22_0x4743a8(0x1f4)]={},exports[a22_0x4743a8(0x1e8)]=a22_0x4743a8(0x1db);const a22_0x128247={};a22_0x128247['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x128247[a22_0x4743a8(0x1fe)]=a22_0x4743a8(0x20f)+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x1ff)]=a22_0x4743a8(0x209)+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x217)]=a22_0x4743a8(0x200)+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x1bd)]={},a22_0x128247['delete']=a22_0x4743a8(0x206)+this['LINK_MESSAGE'],a22_0x128247[a22_0x4743a8(0x1cc)]=a22_0x4743a8(0x1e2)+this['LINK_MESSAGE'],a22_0x128247[a22_0x4743a8(0x201)]=a22_0x4743a8(0x1fa)+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x203)]=a22_0x4743a8(0x1eb)+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x202)]=a22_0x4743a8(0x1f7)+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x1bd)][a22_0x4743a8(0x1d0)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x1bd)][a22_0x4743a8(0x1f3)]=a22_0x4743a8(0x1d5)+this[a22_0x4743a8(0x1e8)],a22_0x128247[a22_0x4743a8(0x1bd)][a22_0x4743a8(0x204)]=a22_0x4743a8(0x1ce)+this[a22_0x4743a8(0x1e8)],exports[a22_0x4743a8(0x207)]=a22_0x128247,exports[a22_0x4743a8(0x1af)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x3e78b9={};a22_0x3e78b9[a22_0x4743a8(0x1d6)]='success',a22_0x3e78b9['ERROR']='error',a22_0x3e78b9[a22_0x4743a8(0x1f0)]='info',a22_0x3e78b9[a22_0x4743a8(0x208)]='warning',a22_0x3e78b9[a22_0x4743a8(0x1c8)]='unknown',a22_0x3e78b9[a22_0x4743a8(0x20e)]=null,exports[a22_0x4743a8(0x1c3)]=a22_0x3e78b9,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4743a8(0x215)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4743a8(0x1ed)]='[REDACTED]';const a22_0x26d1aa={};a22_0x26d1aa[a22_0x4743a8(0x1cb)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x1edff5={};function a22_0x14f5(){const _0x3d68de=['cliRunStarted','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','HELP_HEADER_MESSAGE','WARNING','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLUSTER','MessageDescription','gridUrl','BrowserStackIAMUser','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-AUTOSCALER','wss://','LOG','959021NlonMj','grid-devhst.bsstag.com','RAW_ARGS_REGEX','IAM_USER_NAME','create','AG_API_URL','HELP_FOOTER_MESSAGE','env','credentials','api-devhst.bsstag.com','split','1863AHxFTq','CLUSTER_HUB_HA_STACK_NAME','GRID_URL','BSTACK-ATS-CLUSTER','push','Key','WS_ENDPOINT','2122302WeZNMo','ALL_SUPPORTED_CLOUD_PROVIDERS','list','REGION','toLowerCase','CLUSTER_DEP_STACK_NAME','BSTACK-ATS-CLUSTER-HUB-HA','log','messageTypes','1129482kJXVPv','10GSdUiw','CLUSTER_AUTOSCALER_STACK_NAME','5047432AwCNIG','UNKNOWN','2184ABHfvO','stag','grid-profile','connect','grid-preprod.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','1475296zCMfro','root','api.browserstack.com','browserstack:service','forEach','grid-api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','SUCCESS','high-scale-grid-cluster','GCP','DASHBOARD_ENDPOINT','DEFAULT_CLUSTER_DETAILS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','TRIAL_GRID_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','HST_CLUSTER_TAGS','2022356ubVdyz','TURBOSCALE_CUSTOM_TAGS','RESOURCES','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','high-scale-grid','browserstack-turboscale-grid','dotenv','resourceInfo','CLI_RUN_FINISHED','LINK_MESSAGE','CLOUD_PROVIDER','prod','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CP_CONFIG_FILE','REDACTED','grid-api-preprod.bsstag.com','pre-check','INFO','browserstack:managedBy','BrowserStack','grid','global_registry','Value','AZURE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AWS','WS_EVENTS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','us-east-1','api-preprod.bsstag.com','BS_API_URL','init','configure','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','start','pre_check','stop','gridProfile'];a22_0x14f5=function(){return _0x3d68de;};return a22_0x14f5();}a22_0x1edff5[a22_0x4743a8(0x1ef)]=a22_0x26d1aa,exports[a22_0x4743a8(0x20b)]=a22_0x1edff5,exports[a22_0x4743a8(0x1dc)]=a22_0x4743a8(0x1dd);const a22_0x28a60c={};a22_0x28a60c[a22_0x4743a8(0x20a)]=a22_0x4743a8(0x1d7),a22_0x28a60c[a22_0x4743a8(0x1e9)]='aws',a22_0x28a60c[a22_0x4743a8(0x1be)]=a22_0x4743a8(0x1fb),exports[a22_0x4743a8(0x1da)]=a22_0x28a60c;
@@ -1 +1 @@
1
- const a23_0x41b45d=a23_0xe441;function a23_0xe441(_0x17ad9d,_0x1f170a){const _0x1f29ad=a23_0x1f29();return a23_0xe441=function(_0xe441fb,_0x1a00d1){_0xe441fb=_0xe441fb-0x14a;let _0x4b8dda=_0x1f29ad[_0xe441fb];return _0x4b8dda;},a23_0xe441(_0x17ad9d,_0x1f170a);}(function(_0x59183a,_0x5aeb26){const _0x4096a3=a23_0xe441,_0x3bccbc=_0x59183a();while(!![]){try{const _0x36a916=parseInt(_0x4096a3(0x15a))/0x1*(-parseInt(_0x4096a3(0x159))/0x2)+parseInt(_0x4096a3(0x14b))/0x3*(-parseInt(_0x4096a3(0x155))/0x4)+parseInt(_0x4096a3(0x15c))/0x5+-parseInt(_0x4096a3(0x152))/0x6*(parseInt(_0x4096a3(0x14a))/0x7)+-parseInt(_0x4096a3(0x150))/0x8*(parseInt(_0x4096a3(0x161))/0x9)+parseInt(_0x4096a3(0x153))/0xa+parseInt(_0x4096a3(0x162))/0xb;if(_0x36a916===_0x5aeb26)break;else _0x3bccbc['push'](_0x3bccbc['shift']());}catch(_0x42659d){_0x3bccbc['push'](_0x3bccbc['shift']());}}}(a23_0x1f29,0x93074));const winston=require(a23_0x41b45d(0x151)),fs=require('fs'),path=require(a23_0x41b45d(0x15d)),logDir=a23_0x41b45d(0x168);function a23_0x1f29(){const _0xdefa4b=['colorize','log','11053lzoywO','6LsGdVp','fileLogger','YYYY-MM-DD\x20HH:mm:ss','console.info','events.log','16vZibes','winston','2676UAJDmM','3852880keETSE','name','1816764JsmSEi','logger','timestamp','existsSync','2IsuthS','268321HKRTWg','level','4894825YEJuLw','path','format','debug','transports','773757TCahzn','14199438wMxfhQ','combine','createLogger','message','join'];a23_0x1f29=function(){return _0xdefa4b;};return a23_0x1f29();}!fs[a23_0x41b45d(0x158)](logDir)&&fs['mkdirSync'](logDir);const a23_0x3b6afa={};a23_0x3b6afa[a23_0x41b45d(0x15e)]=a23_0x41b45d(0x14d);const a23_0x4080a9={};a23_0x4080a9[a23_0x41b45d(0x15b)]=!![];const a23_0x326850={};a23_0x326850[a23_0x41b45d(0x154)]=a23_0x41b45d(0x14e),exports[a23_0x41b45d(0x156)]=new winston[(a23_0x41b45d(0x164))]({'format':winston[a23_0x41b45d(0x15e)][a23_0x41b45d(0x163)](winston['format'][a23_0x41b45d(0x157)](a23_0x3b6afa),winston[a23_0x41b45d(0x15e)][a23_0x41b45d(0x167)](a23_0x4080a9),winston['format']['printf'](_0x5c5ce7=>_0x5c5ce7[a23_0x41b45d(0x157)]+'\x20-\x20'+_0x5c5ce7['level']+':\x20'+_0x5c5ce7[a23_0x41b45d(0x165)])),'transports':[new winston[(a23_0x41b45d(0x160))]['Console'](a23_0x326850),new winston[(a23_0x41b45d(0x160))]['File']({'filename':path['join'](logDir,a23_0x41b45d(0x14f)),'level':a23_0x41b45d(0x15f)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x41b45d(0x160))]['File']({'filename':path[a23_0x41b45d(0x166)](logDir,'usage.log'),'level':a23_0x41b45d(0x15f)})]};exports[a23_0x41b45d(0x14c)]=new winston[(a23_0x41b45d(0x164))](winstonFileLoggerParams);
1
+ function a23_0x2845(_0x230861,_0x4d8a2c){const _0x2b228b=a23_0x2b22();return a23_0x2845=function(_0x28454e,_0x3a9967){_0x28454e=_0x28454e-0x17c;let _0x33fb74=_0x2b228b[_0x28454e];return _0x33fb74;},a23_0x2845(_0x230861,_0x4d8a2c);}const a23_0x22a73e=a23_0x2845;(function(_0x54107f,_0x57d12f){const _0x37c203=a23_0x2845,_0x4d9d6c=_0x54107f();while(!![]){try{const _0x173625=parseInt(_0x37c203(0x190))/0x1*(-parseInt(_0x37c203(0x198))/0x2)+-parseInt(_0x37c203(0x191))/0x3+parseInt(_0x37c203(0x18a))/0x4*(-parseInt(_0x37c203(0x17f))/0x5)+parseInt(_0x37c203(0x18c))/0x6+parseInt(_0x37c203(0x194))/0x7*(parseInt(_0x37c203(0x197))/0x8)+-parseInt(_0x37c203(0x17c))/0x9+parseInt(_0x37c203(0x186))/0xa*(parseInt(_0x37c203(0x182))/0xb);if(_0x173625===_0x57d12f)break;else _0x4d9d6c['push'](_0x4d9d6c['shift']());}catch(_0x1af4ef){_0x4d9d6c['push'](_0x4d9d6c['shift']());}}}(a23_0x2b22,0x209f3));const winston=require(a23_0x22a73e(0x18d)),fs=require('fs'),path=require('path'),logDir='log';!fs[a23_0x22a73e(0x199)](logDir)&&fs[a23_0x22a73e(0x192)](logDir);const a23_0x4335ce={};a23_0x4335ce[a23_0x22a73e(0x180)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x56a4c3={};a23_0x56a4c3['level']=!![];const a23_0x38031d={};function a23_0x2b22(){const _0x50870e=['801792xxQTCf','winston','usage.log','message','1zwJKzr','133023AFnfUB','mkdirSync','transports','44947PwUnwk','level','printf','8EjUBGe','374576aJRuey','existsSync','name','2103633iZnUaz','logger','debug','5AELLLd','format','Console','2109976IbZFqz','join','timestamp','console.info','30cjjeMD','createLogger','combine','colorize','466064RULzNv','File'];a23_0x2b22=function(){return _0x50870e;};return a23_0x2b22();}a23_0x38031d[a23_0x22a73e(0x19a)]=a23_0x22a73e(0x185),exports[a23_0x22a73e(0x17d)]=new winston[(a23_0x22a73e(0x187))]({'format':winston[a23_0x22a73e(0x180)][a23_0x22a73e(0x188)](winston[a23_0x22a73e(0x180)][a23_0x22a73e(0x184)](a23_0x4335ce),winston[a23_0x22a73e(0x180)][a23_0x22a73e(0x189)](a23_0x56a4c3),winston[a23_0x22a73e(0x180)][a23_0x22a73e(0x196)](_0xf4db3=>_0xf4db3['timestamp']+'\x20-\x20'+_0xf4db3[a23_0x22a73e(0x195)]+':\x20'+_0xf4db3[a23_0x22a73e(0x18f)])),'transports':[new winston['transports'][(a23_0x22a73e(0x181))](a23_0x38031d),new winston[(a23_0x22a73e(0x193))][(a23_0x22a73e(0x18b))]({'filename':path['join'](logDir,'events.log'),'level':a23_0x22a73e(0x17e)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x22a73e(0x193))]['File']({'filename':path[a23_0x22a73e(0x183)](logDir,a23_0x22a73e(0x18e)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x22a73e(0x187))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x2ae6(){const _0x1db81e=['pJsIT','usage','183CDKtIz','help','commands','27zvcVQt','env','4297104MbgRhK','32469000VCRtpO','5rUSGJW','14468LIybfz','demandCommand','59948uLriZV','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','epilogue','5880282WCcGEo','11349504dUmStN','exports','tDpSu','1069691kGdFqb','./config/constants'];a24_0x2ae6=function(){return _0x1db81e;};return a24_0x2ae6();}const a24_0x19ecb2=a24_0x1443;(function(_0x2046ca,_0x5237c5){const _0x441871=a24_0x1443,_0x3a38d8=_0x2046ca();while(!![]){try{const _0x419bfb=-parseInt(_0x441871(0xfd))/0x1*(-parseInt(_0x441871(0x104))/0x2)+-parseInt(_0x441871(0xfa))/0x3*(parseInt(_0x441871(0x102))/0x4)+-parseInt(_0x441871(0x101))/0x5*(parseInt(_0x441871(0x107))/0x6)+-parseInt(_0x441871(0x10b))/0x7+-parseInt(_0x441871(0x108))/0x8+-parseInt(_0x441871(0xff))/0x9+parseInt(_0x441871(0x100))/0xa;if(_0x419bfb===_0x5237c5)break;else _0x3a38d8['push'](_0x3a38d8['shift']());}catch(_0xb527b6){_0x3a38d8['push'](_0x3a38d8['shift']());}}}(a24_0x2ae6,0xc4e9d));function a24_0x1443(_0x4788cf,_0x3fbd9){const _0x2ae6d3=a24_0x2ae6();return a24_0x1443=function(_0x14435a,_0x13cb49){_0x14435a=_0x14435a-0xf7;let _0x493f26=_0x2ae6d3[_0x14435a];return _0x493f26;},a24_0x1443(_0x4788cf,_0x3fbd9);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x19ecb2(0xf7));process[a24_0x19ecb2(0xfe)][a24_0x19ecb2(0x105)]=0x1;function run(_0x4296dc){const _0x3413fd=a24_0x19ecb2,_0x2069cc={};_0x2069cc[_0x3413fd(0xf8)]=_0x3413fd(0xfc),_0x2069cc[_0x3413fd(0x10a)]='help';const _0x108def=_0x2069cc;_0x4296dc[_0x3413fd(0xf9)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x108def[_0x3413fd(0xf8)])[_0x3413fd(0x103)]()[_0x3413fd(0xfb)](_0x108def[_0x3413fd(0x10a)])[_0x3413fd(0x106)](HELP_FOOTER_MESSAGE);}module[a24_0x19ecb2(0x109)]=run;
2
+ 'use strict';const a24_0x2ee104=a24_0xa343;(function(_0x35bc58,_0x18abe7){const _0x3ae6cb=a24_0xa343,_0x10e14d=_0x35bc58();while(!![]){try{const _0x2a50ef=-parseInt(_0x3ae6cb(0xde))/0x1+-parseInt(_0x3ae6cb(0xd5))/0x2*(-parseInt(_0x3ae6cb(0xd7))/0x3)+-parseInt(_0x3ae6cb(0xdf))/0x4*(-parseInt(_0x3ae6cb(0xce))/0x5)+parseInt(_0x3ae6cb(0xd4))/0x6*(parseInt(_0x3ae6cb(0xd6))/0x7)+-parseInt(_0x3ae6cb(0xdc))/0x8*(parseInt(_0x3ae6cb(0xe0))/0x9)+-parseInt(_0x3ae6cb(0xcb))/0xa+-parseInt(_0x3ae6cb(0xd0))/0xb*(-parseInt(_0x3ae6cb(0xcc))/0xc);if(_0x2a50ef===_0x18abe7)break;else _0x10e14d['push'](_0x10e14d['shift']());}catch(_0x28a3d1){_0x10e14d['push'](_0x10e14d['shift']());}}}(a24_0x1b3b,0x71423));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2ee104(0xd8));function a24_0xa343(_0x45af63,_0x2a50e8){const _0x1b3b3f=a24_0x1b3b();return a24_0xa343=function(_0xa34343,_0xf19b14){_0xa34343=_0xa34343-0xca;let _0x425296=_0x1b3b3f[_0xa34343];return _0x425296;},a24_0xa343(_0x45af63,_0x2a50e8);}process[a24_0x2ee104(0xdb)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0xb8e953){const _0x1385ee=a24_0x2ee104,_0xd024d7={};_0xd024d7['rULEZ']=_0x1385ee(0xca),_0xd024d7['RlOLo']=_0x1385ee(0xd3);const _0x456ace=_0xd024d7;_0xb8e953[_0x1385ee(0xdd)](HELP_HEADER_MESSAGE[_0x1385ee(0xcd)])[_0x1385ee(0xd9)](_0x456ace[_0x1385ee(0xd2)])[_0x1385ee(0xcf)]()[_0x1385ee(0xd3)](_0x456ace['RlOLo'])[_0x1385ee(0xda)](HELP_FOOTER_MESSAGE);}function a24_0x1b3b(){const _0x423bcd=['620MfBTju','9YzlTcH','commands','8092050aDSFup','48inJFNu','root','5370tKLrlF','demandCommand','990682LeBzVP','exports','rULEZ','help','6BfOYQb','716nyVatg','4175738jECLbw','4443Ttxskj','./config/constants','commandDir','epilogue','env','2984392GSjsQz','usage','7289hqcgvR'];a24_0x1b3b=function(){return _0x423bcd;};return a24_0x1b3b();}module[a24_0x2ee104(0xd1)]=run;