browserstack-node-sdk 1.40.7 → 1.40.8

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 (173) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. 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_0x3a490a=a15_0x29ae;(function(_0x2382d1,_0x33e52f){const _0x5f0093=a15_0x29ae,_0x2bebe8=_0x2382d1();while(!![]){try{const _0xb3bb9f=-parseInt(_0x5f0093(0x158))/0x1+-parseInt(_0x5f0093(0x145))/0x2+parseInt(_0x5f0093(0x16c))/0x3+-parseInt(_0x5f0093(0x193))/0x4+-parseInt(_0x5f0093(0x189))/0x5*(parseInt(_0x5f0093(0x176))/0x6)+parseInt(_0x5f0093(0x195))/0x7*(parseInt(_0x5f0093(0x180))/0x8)+-parseInt(_0x5f0093(0x156))/0x9*(-parseInt(_0x5f0093(0x14c))/0xa);if(_0xb3bb9f===_0x33e52f)break;else _0x2bebe8['push'](_0x2bebe8['shift']());}catch(_0x361b0a){_0x2bebe8['push'](_0x2bebe8['shift']());}}}(a15_0x225f,0x2f907));const fs=require('fs'),got=require(a15_0x3a490a(0x160)),{table}=require(a15_0x3a490a(0x169)),{v4:uuidv4}=require(a15_0x3a490a(0x16e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3a490a(0x179)),{getCredentialsPath,getAuthHeader}=require(a15_0x3a490a(0x148)),{sendInstrumentationEvent}=require(a15_0x3a490a(0x17e));function a15_0x29ae(_0x18d0bc,_0x1f385c){const _0x225fea=a15_0x225f();return a15_0x29ae=function(_0x29ae89,_0x121b1){_0x29ae89=_0x29ae89-0x13c;let _0x5306fe=_0x225fea[_0x29ae89];return _0x5306fe;},a15_0x29ae(_0x18d0bc,_0x1f385c);}exports[a15_0x3a490a(0x18d)]='grids',exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x3a490a(0x164)]=function(_0x4db567){const _0x459749=a15_0x3a490a,_0x4ba77f={};_0x4ba77f[_0x459749(0x18f)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4ba77f['BoluA']=_0x459749(0x17c),_0x4ba77f[_0x459749(0x174)]=_0x459749(0x15d);const _0x1ad1fa=_0x4ba77f,_0x3560e0={};_0x3560e0['description']=_0x1ad1fa[_0x459749(0x18f)],_0x3560e0[_0x459749(0x157)]=_0x1ad1fa['BoluA'];const _0xdd706c={};return _0xdd706c[_0x459749(0x143)]=_0x3560e0,_0x4db567['usage'](HELP_HEADER_MESSAGE[_0x459749(0x162)][_0x459749(0x13e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x459749(0x17d)](_0xdd706c)[_0x459749(0x15d)](_0x1ad1fa['TyZbF'])[_0x459749(0x15f)];},exports[a15_0x3a490a(0x187)]=async function(_0x3b7319){const _0x4b2cf0=a15_0x3a490a,_0x61f0b4={'vgwOu':function(_0x367ed6){return _0x367ed6();},'vCLkq':function(_0x23b0a5){return _0x23b0a5();},'NnXDi':_0x4b2cf0(0x177),'rRwCE':function(_0x3d3396,_0x5c5a58,_0x53598c,_0x4eccf4,_0x5f20c1,_0x4a8bb0,_0x264243){return _0x3d3396(_0x5c5a58,_0x53598c,_0x4eccf4,_0x5f20c1,_0x4a8bb0,_0x264243);},'AeGRJ':'list-grids-called','txqwv':_0x4b2cf0(0x194),'tbUjv':function(_0x31001d){return _0x31001d();},'cpWrA':_0x4b2cf0(0x13d),'tVRPZ':function(_0x518b78,_0x44051c,_0x40b1b1){return _0x518b78(_0x44051c,_0x40b1b1);},'rzmrx':function(_0xe83f0d,_0xd997de,_0x4cf939,_0x549f96,_0x5d210c,_0x591d6e,_0x11b172){return _0xe83f0d(_0xd997de,_0x4cf939,_0x549f96,_0x5d210c,_0x591d6e,_0x11b172);},'rWUiW':function(_0x31df21,_0x4beb61){return _0x31df21!==_0x4beb61;},'FEdel':function(_0x32d9e6,_0x4c45b0){return _0x32d9e6!==_0x4c45b0;},'eSZhQ':function(_0x399c19,_0x535c3d){return _0x399c19===_0x535c3d;},'ngwkg':'\x0aFound\x20the\x20following\x20grids:\x0a','XndDJ':_0x4b2cf0(0x182),'middA':_0x4b2cf0(0x15e),'nZPxQ':_0x4b2cf0(0x159),'RqzSt':_0x4b2cf0(0x170),'xokzN':'queued','uMuuf':_0x4b2cf0(0x172),'bWtIJ':function(_0x473270,_0x2683ea){return _0x473270(_0x2683ea);},'IvBkv':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FWCNu':_0x4b2cf0(0x15c),'TnEqZ':function(_0x1edcbf,_0xabe6fc,_0x5d2493,_0x27c275,_0xe75b6b,_0x290d73,_0x3d55ce){return _0x1edcbf(_0xabe6fc,_0x5d2493,_0x27c275,_0xe75b6b,_0x290d73,_0x3d55ce);},'mKbsA':_0x4b2cf0(0x142),'xGHqV':function(_0x3edb4f,_0x2a2065,_0x1462fb,_0x29869e,_0x55972b,_0x2a074c,_0x57d899){return _0x3edb4f(_0x2a2065,_0x1462fb,_0x29869e,_0x55972b,_0x2a074c,_0x57d899);},'BdZrX':_0x4b2cf0(0x146)};try{global_registry[_0x4b2cf0(0x173)]=_0x61f0b4[_0x4b2cf0(0x141)](uuidv4);!fs[_0x4b2cf0(0x192)](_0x61f0b4[_0x4b2cf0(0x15a)](getCredentialsPath))&&(console[_0x4b2cf0(0x18a)](_0x61f0b4[_0x4b2cf0(0x18b)]),await _0x61f0b4[_0x4b2cf0(0x190)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes['ERROR'],_0x61f0b4[_0x4b2cf0(0x150)],null,_0x3b7319),process['exit'](0x1));const _0x3446f8=JSON[_0x4b2cf0(0x165)](fs[_0x4b2cf0(0x154)](_0x61f0b4[_0x4b2cf0(0x153)](getCredentialsPath)));let _0xb4a64c=_0x4b2cf0(0x186)+AG_API_URL+'/packages/cli/get-grids';_0x3b7319['allGrids']&&(_0xb4a64c=_0x4b2cf0(0x186)+AG_API_URL+_0x4b2cf0(0x163));const _0x5d61dd={'method':_0x61f0b4[_0x4b2cf0(0x14d)],'headers':_0x61f0b4[_0x4b2cf0(0x147)](getAuthHeader,_0x3446f8[_0x4b2cf0(0x13f)][_0x4b2cf0(0x17a)],_0x3446f8[_0x4b2cf0(0x13f)]['password']),'throwHttpErrors':![]};global_registry[_0x4b2cf0(0x166)]=_0x3446f8[_0x4b2cf0(0x13f)][_0x4b2cf0(0x17a)],global_registry[_0x4b2cf0(0x149)]=_0x3446f8['Browserstack']['password'],_0x61f0b4[_0x4b2cf0(0x14b)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes[_0x4b2cf0(0x16a)],null,null,_0x3b7319);const _0x582133=await _0x61f0b4[_0x4b2cf0(0x147)](got,_0xb4a64c,_0x5d61dd);if(_0x61f0b4[_0x4b2cf0(0x16f)](_0x582133,null)&&_0x61f0b4['FEdel'](_0x582133,undefined)&&_0x61f0b4[_0x4b2cf0(0x17f)](_0x582133[_0x4b2cf0(0x168)],0xc8)){const _0x3ee0a3=JSON[_0x4b2cf0(0x165)](_0x582133[_0x4b2cf0(0x151)]);console['log'](_0x61f0b4[_0x4b2cf0(0x17b)]);const _0x1f1d3e=[];_0x1f1d3e[_0x4b2cf0(0x161)]([_0x61f0b4[_0x4b2cf0(0x185)],_0x61f0b4[_0x4b2cf0(0x155)],_0x61f0b4[_0x4b2cf0(0x171)],_0x61f0b4[_0x4b2cf0(0x144)],_0x61f0b4[_0x4b2cf0(0x167)],_0x61f0b4[_0x4b2cf0(0x18e)]]),_0x3ee0a3[_0x4b2cf0(0x188)](_0x177bdc=>{const _0x446b6e=_0x4b2cf0;_0x1f1d3e['push']([_0x177bdc['id'],_0x177bdc['name'],_0x177bdc[_0x446b6e(0x159)],_0x177bdc['running'],_0x177bdc[_0x446b6e(0x18c)],_0x177bdc[_0x446b6e(0x178)]]);}),console[_0x4b2cf0(0x140)](_0x61f0b4[_0x4b2cf0(0x181)](table,_0x1f1d3e)),process[_0x4b2cf0(0x175)](0x0);}_0x61f0b4[_0x4b2cf0(0x17f)](_0x582133['statusCode'],0x191)&&(console['error'](_0x61f0b4['IvBkv']),await _0x61f0b4['rzmrx'](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x14a)],null,_0x3b7319),process['exit'](0x1)),console['error'](_0x4b2cf0(0x184)+JSON[_0x4b2cf0(0x15b)](_0x582133)),await _0x61f0b4[_0x4b2cf0(0x14e)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4['AeGRJ'],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x13c)],_0x582133,_0x3b7319),process[_0x4b2cf0(0x175)](0x1);}catch(_0x56ce25){console['error'](_0x4b2cf0(0x16b)+_0x56ce25[_0x4b2cf0(0x183)]),await _0x61f0b4[_0x4b2cf0(0x191)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4['AeGRJ'],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x14f)],_0x56ce25,_0x3b7319),process['exit'](0x1);}};function a15_0x225f(){const _0x283d1c=['parse','bstackUsername','xokzN','statusCode','table','INFO','Failed\x20to\x20list\x20resources!\x20Error:\x20','134250iECirX','ERROR','uuid','rWUiW','running','nZPxQ','cluster-name','requestId','TyZbF','exit','48798JHPKYj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clusterName','../../config/constants','username','ngwkg','boolean','options','../../utils/instrumentationUtils','eSZhQ','391248vQXfJf','bWtIJ','grid-id','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XndDJ','https://','handler','forEach','135CONWkd','error','NnXDi','queued','command','uMuuf','uqEan','rRwCE','xGHqV','existsSync','1553416EaKsKS','init-not-called','35FXceLa','mKbsA','GET','grid','Browserstack','log','vgwOu','server-error','all-grids','RqzSt','233654ofGRqG','unknown-error','tVRPZ','../../utils/utilityMethods','bstackAccesskey','FWCNu','rzmrx','510mEoKDt','cpWrA','TnEqZ','BdZrX','txqwv','body','AeGRJ','tbUjv','readFileSync','middA','161307xaGImA','type','283758SaRbGA','status','vCLkq','stringify','unauthorised','help','grid-name','argv','got','push','list','/packages/cli/get-all-grids','builder'];a15_0x225f=function(){return _0x283d1c;};return a15_0x225f();}
@@ -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_0x34873e=a16_0x5550;(function(_0x429e54,_0x3d5fc6){const _0xad9144=a16_0x5550,_0x22e33f=_0x429e54();while(!![]){try{const _0x43984b=parseInt(_0xad9144(0x1ef))/0x1+-parseInt(_0xad9144(0x1f3))/0x2*(parseInt(_0xad9144(0x1ec))/0x3)+-parseInt(_0xad9144(0x1f1))/0x4*(parseInt(_0xad9144(0x1fd))/0x5)+-parseInt(_0xad9144(0x1ee))/0x6*(parseInt(_0xad9144(0x1f0))/0x7)+parseInt(_0xad9144(0x1ed))/0x8*(parseInt(_0xad9144(0x1f6))/0x9)+parseInt(_0xad9144(0x1fa))/0xa+parseInt(_0xad9144(0x200))/0xb;if(_0x43984b===_0x3d5fc6)break;else _0x22e33f['push'](_0x22e33f['shift']());}catch(_0x44ce14){_0x22e33f['push'](_0x22e33f['shift']());}}}(a16_0x145c,0xd4007));function a16_0x5550(_0x5e80e9,_0x2ec80b){const _0x145ce1=a16_0x145c();return a16_0x5550=function(_0x5550bc,_0x2928c3){_0x5550bc=_0x5550bc-0x1ec;let _0x32f305=_0x145ce1[_0x5550bc];return _0x32f305;},a16_0x5550(_0x5e80e9,_0x2ec80b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x34873e(0x1f4));function a16_0x145c(){const _0x5dbbfd=['8yDhPjT','198rZBBDD','994233rVEJiC','287077xAJFMm','16UcAffq','mAQhE','778OcIYMP','../config/constants','usage','9264438wCSSZx','pre_check','precheck_commands','command','1652010rNbvhc','yKXPv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1749875qJazUD','recommendCommands','handler','19239693rmDOAB','2439yuUAjg'];a16_0x145c=function(){return _0x5dbbfd;};return a16_0x145c();}exports[a16_0x34873e(0x1f9)]='pre-check',exports['desc']=a16_0x34873e(0x1fc),exports['builder']=function(_0x58a915){const _0x4e08f9=a16_0x34873e,_0x147f25={};_0x147f25[_0x4e08f9(0x1f2)]=_0x4e08f9(0x1f8),_0x147f25[_0x4e08f9(0x1fb)]='help';const _0x14edeb=_0x147f25;return _0x58a915[_0x4e08f9(0x1f5)](HELP_HEADER_MESSAGE[_0x4e08f9(0x1f7)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x14edeb[_0x4e08f9(0x1f2)])['demandCommand']()[_0x4e08f9(0x1fe)]()['strict']()['help'](_0x14edeb[_0x4e08f9(0x1fb)]);},exports[a16_0x34873e(0x1ff)]=function(_0x42b201){};
@@ -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_0x3597(_0x5c5b6a,_0x47ae12){const _0x27aac5=a17_0x27aa();return a17_0x3597=function(_0x35970e,_0x55ee7e){_0x35970e=_0x35970e-0x1c9;let _0x396c33=_0x27aac5[_0x35970e];return _0x396c33;},a17_0x3597(_0x5c5b6a,_0x47ae12);}const a17_0x5db0cb=a17_0x3597;(function(_0x42c882,_0x22b29c){const _0x3cf6e7=a17_0x3597,_0x57e4d4=_0x42c882();while(!![]){try{const _0x54e98e=-parseInt(_0x3cf6e7(0x232))/0x1*(-parseInt(_0x3cf6e7(0x271))/0x2)+parseInt(_0x3cf6e7(0x2c2))/0x3*(-parseInt(_0x3cf6e7(0x231))/0x4)+parseInt(_0x3cf6e7(0x23b))/0x5+parseInt(_0x3cf6e7(0x212))/0x6+-parseInt(_0x3cf6e7(0x281))/0x7+-parseInt(_0x3cf6e7(0x27d))/0x8*(parseInt(_0x3cf6e7(0x2a9))/0x9)+parseInt(_0x3cf6e7(0x24b))/0xa;if(_0x54e98e===_0x22b29c)break;else _0x57e4d4['push'](_0x57e4d4['shift']());}catch(_0x19422f){_0x57e4d4['push'](_0x57e4d4['shift']());}}}(a17_0x27aa,0x6d332));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5db0cb(0x1de)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x5db0cb(0x27e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x5db0cb(0x224)),{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_0x5db0cb(0x25b)),{getCloudProviderObjectWithOutInit}=require(a17_0x5db0cb(0x250)),webSocketUtils=require(a17_0x5db0cb(0x1d3)),{sendInstrumentationEvent}=require(a17_0x5db0cb(0x263));exports[a17_0x5db0cb(0x288)]=a17_0x5db0cb(0x25d),exports[a17_0x5db0cb(0x22a)]=a17_0x5db0cb(0x275),exports[a17_0x5db0cb(0x206)]=function(_0x34997a){const _0x5ec796=a17_0x5db0cb,_0x17e605={};_0x17e605['XRKZx']=_0x5ec796(0x24d),_0x17e605['ulzGs']=_0x5ec796(0x1d7),_0x17e605[_0x5ec796(0x296)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x17e605['FAEMC']=_0x5ec796(0x26f),_0x17e605[_0x5ec796(0x1f9)]=_0x5ec796(0x2a1),_0x17e605[_0x5ec796(0x1cd)]=_0x5ec796(0x256);const _0x1f10c1=_0x17e605,_0x1a4e77={};_0x1a4e77[_0x5ec796(0x2b1)]=_0x1f10c1['XRKZx'],_0x1a4e77[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x2924b3={};_0x2924b3[_0x5ec796(0x2b1)]=_0x1f10c1[_0x5ec796(0x296)],_0x2924b3[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x24ec72={};_0x24ec72['description']=_0x1f10c1[_0x5ec796(0x216)],_0x24ec72['type']=_0x1f10c1[_0x5ec796(0x205)];const _0x2d8c19={};_0x2d8c19[_0x5ec796(0x2b1)]=_0x1f10c1['crTAU'],_0x2d8c19[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x276ec6={};return _0x276ec6[_0x5ec796(0x211)]=_0x1a4e77,_0x276ec6[_0x5ec796(0x262)]=_0x2924b3,_0x276ec6[_0x5ec796(0x1dd)]=_0x24ec72,_0x276ec6['grid-profile']=_0x2d8c19,_0x34997a[_0x5ec796(0x274)](HELP_HEADER_MESSAGE[_0x5ec796(0x1e4)])[_0x5ec796(0x2c1)](HELP_FOOTER_MESSAGE)['options'](_0x276ec6)[_0x5ec796(0x256)](_0x1f10c1[_0x5ec796(0x1cd)])['argv'];};async function inputValidation(_0x1ff63a,_0x1ba643){const _0xbac165=a17_0x5db0cb,_0x193bc9={'oreWg':_0xbac165(0x1dd),'MboWU':function(_0x33663f,_0x5de73e){return _0x33663f+_0x5de73e;},'onDVF':_0xbac165(0x258),'WSHlB':'Failure','IaCtS':function(_0x1a10f2,_0x195c1c){return _0x1a10f2||_0x195c1c;},'qIiKI':_0xbac165(0x1ee),'sqjid':_0xbac165(0x2ae),'YQWGd':_0xbac165(0x236),'SlZMt':_0xbac165(0x286),'mryHG':'cloud-provider','PxBoB':_0xbac165(0x24d),'PrPbK':_0xbac165(0x1d7),'hErAs':_0xbac165(0x22d),'BsAlW':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','tdrug':_0xbac165(0x2a1),'VKHXK':_0xbac165(0x256),'KPMdh':_0xbac165(0x211),'zPVBh':_0xbac165(0x22e),'GJYDA':function(_0x28d8cf,_0x11c2e6){return _0x28d8cf===_0x11c2e6;},'gAYey':_0xbac165(0x251),'btWzO':function(_0x40c70f,_0x447c89){return _0x40c70f!==_0x447c89;},'OuMsD':_0xbac165(0x1e8),'mQJqf':'oxHlp','sBDTo':_0xbac165(0x203),'JRctL':function(_0x34f2a7,_0x512336){return _0x34f2a7!==_0x512336;},'swuit':_0xbac165(0x28a),'hXBel':_0xbac165(0x242),'vTseg':function(_0x281a57,_0x4bd1be){return _0x281a57!==_0x4bd1be;},'bhMJA':_0xbac165(0x299),'yrFRE':'Rouit','rfjhF':function(_0x4f6903,_0x566c8b){return _0x4f6903>_0x566c8b;},'usMnZ':_0xbac165(0x21f),'qTTRf':function(_0x5c2ad7,_0x559149,_0x206c63,_0x499c0b,_0x1a85fc,_0x451163,_0x22e9a6,_0x2973dd){return _0x5c2ad7(_0x559149,_0x206c63,_0x499c0b,_0x1a85fc,_0x451163,_0x22e9a6,_0x2973dd);},'sUQYu':_0xbac165(0x241),'dwmFP':_0xbac165(0x200),'ndTJb':_0xbac165(0x2c0),'dKkrq':_0xbac165(0x26c),'WBPHW':'KSGIe','rQBir':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vydbH':_0xbac165(0x2c3),'Fdjnf':_0xbac165(0x290),'axEDy':_0xbac165(0x1e6),'Rutdm':function(_0x4d5b0f,_0x2d515b){return _0x4d5b0f!==_0x2d515b;},'EucVt':'KSuUG','tdoUB':_0xbac165(0x2bc),'Nhznx':_0xbac165(0x29d),'DgvNw':function(_0xa2cc7c,_0x4709fc,_0x2cbf07){return _0xa2cc7c(_0x4709fc,_0x2cbf07);},'yyEpt':function(_0x4a3046,_0x127fac,_0x387bbc,_0x30bb25,_0x3aea71,_0x1284af){return _0x4a3046(_0x127fac,_0x387bbc,_0x30bb25,_0x3aea71,_0x1284af);},'wHBpV':_0xbac165(0x26a),'oCeNV':'grid-profile','RocYC':function(_0x4b0a69,_0x3c01a7){return _0x4b0a69!==_0x3c01a7;},'FsMvp':_0xbac165(0x213),'QWKuv':function(_0x2825c4,_0x256945){return _0x2825c4(_0x256945);},'hHNAf':function(_0x335712,_0x466de8){return _0x335712!==_0x466de8;},'UGxjB':_0xbac165(0x2b5),'ZNRaZ':'AyZAo','qjogi':function(_0x1e7871,_0x387f0a,_0x5a79f6,_0x3e8b4c,_0x54c1f5,_0x59a349,_0x528e41,_0x47bfa1){return _0x1e7871(_0x387f0a,_0x5a79f6,_0x3e8b4c,_0x54c1f5,_0x59a349,_0x528e41,_0x47bfa1);},'hUZVm':'pre-check-grid-profile-empty','WYUxn':function(_0x222274,_0xebf448){return _0x222274!==_0xebf448;},'FGEqO':_0xbac165(0x1f1),'UlKsX':_0xbac165(0x201),'ijWaC':_0xbac165(0x1d4),'YylRS':_0xbac165(0x22f),'nDzho':function(_0x4e619d,_0x550ae5){return _0x4e619d===_0x550ae5;},'cSmGp':_0xbac165(0x1ef),'FyjjO':'OVuYn','LRnCr':'yRKCQ','iRRLy':_0xbac165(0x240)};let _0xcbb2fe;try{if(_0x193bc9[_0xbac165(0x24a)](_0x193bc9['gAYey'],_0x193bc9[_0xbac165(0x289)])){if(_0x1ff63a['clusterName']||_0x1ff63a[_0xbac165(0x23a)]||_0x1ff63a[_0xbac165(0x1dd)]){if(_0x193bc9['btWzO'](_0x193bc9[_0xbac165(0x265)],_0x193bc9[_0xbac165(0x265)]))_0x31b694[_0xbac165(0x233)](0x1);else{const _0x2ee1e3=[];!_0x1ff63a[_0xbac165(0x21b)]&&(_0x193bc9['btWzO'](_0x193bc9['mQJqf'],_0x193bc9['sBDTo'])?_0x2ee1e3['push'](_0x193bc9['KPMdh']):_0x239d0b[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x29a)]));;if(!_0x1ff63a['cloudProvider']){if(_0x193bc9[_0xbac165(0x2ba)](_0x193bc9['swuit'],_0x193bc9[_0xbac165(0x21d)]))_0x2ee1e3[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x217)]);else{const {header:_0x4e333e,response:_0x3287b3}=_0x5e93b1,{status:_0x5456e4,data:_0x155466,error:_0x11ae2a}=_0x3287b3;_0x383e48+=_0x4e333e+'\x20#'+_0x193bc9['MboWU'](_0x5dbf66,0x1)+'\x0a',_0x18cf37+='Status:\x20'+(_0x5456e4?_0x193bc9[_0xbac165(0x1f4)]:_0x193bc9[_0xbac165(0x1d2)])+'\x0a',_0x34664a+=_0xbac165(0x202)+_0x193bc9[_0xbac165(0x2b8)](_0x155466,_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x11ae2a&&(_0x541cae+=_0x193bc9[_0xbac165(0x279)],_0x930b5f+=_0xbac165(0x1f5)+(_0x11ae2a[_0xbac165(0x1fd)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x5097e6+=_0xbac165(0x284)+(_0x11ae2a[_0xbac165(0x1db)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x49e2b7+=_0xbac165(0x222)+(_0x11ae2a[_0xbac165(0x20d)]||_0x193bc9[_0xbac165(0x227)])+'\x0a'),_0x3915e4+='\x0a\x0a';}};!_0x1ff63a[_0xbac165(0x1dd)]&&(_0x193bc9[_0xbac165(0x2af)](_0x193bc9['bhMJA'],_0x193bc9[_0xbac165(0x1e5)])?_0x2ee1e3[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x29a)]):(_0x28e677+=_0x193bc9['sqjid'],_0x4c4d2a+=_0xbac165(0x1f5)+(_0x198c9a[_0xbac165(0x1fd)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x56e775+=_0xbac165(0x284)+(_0x3b5ff8[_0xbac165(0x1db)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x1b4109+=_0xbac165(0x222)+(_0x40a2fd[_0xbac165(0x20d)]||_0x193bc9[_0xbac165(0x227)])+'\x0a'));;_0x193bc9[_0xbac165(0x20b)](_0x2ee1e3[_0xbac165(0x20c)],0x0)&&(_0x193bc9[_0xbac165(0x2af)](_0x193bc9[_0xbac165(0x2b7)],_0x193bc9[_0xbac165(0x2b7)])?_0x3d2cad[_0xbac165(0x2c0)]('error\x20stack\x20:\x20'+_0x121881[_0xbac165(0x2c0)][_0xbac165(0x20d)]):(_0xcbb2fe=_0xbac165(0x294)+_0x2ee1e3['join'](',\x20')+_0xbac165(0x1dc),await _0x193bc9[_0xbac165(0x238)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9['sUQYu'],_0x193bc9[_0xbac165(0x1f2)],_0x193bc9[_0xbac165(0x207)]),logger[_0xbac165(0x2c0)](_0xcbb2fe),process[_0xbac165(0x233)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xbac165(0x23d)](_0x1ff63a[_0xbac165(0x23a)]['toLowerCase']())&&(_0x193bc9[_0xbac165(0x2ba)](_0x193bc9[_0xbac165(0x215)],_0x193bc9['WBPHW'])?(_0xcbb2fe=_0x193bc9[_0xbac165(0x22b)],await _0x193bc9['qTTRf'](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes['ERROR'],_0x193bc9['sUQYu'],_0x193bc9['vydbH'],_0x193bc9[_0xbac165(0x207)]),logger['error'](_0xcbb2fe),!_0x1ff63a[_0xbac165(0x23a)]&&(_0x193bc9[_0xbac165(0x24a)](_0x193bc9[_0xbac165(0x1df)],_0x193bc9[_0xbac165(0x20e)])?_0x24091f=_0x13a680:(logger[_0xbac165(0x1fb)](_0xbac165(0x246)+DEFAULT_CLUSTER_DETAILS[_0xbac165(0x1d5)]+'\x20'),_0x1ff63a[_0xbac165(0x23a)]=DEFAULT_CLUSTER_DETAILS[_0xbac165(0x1d5)]))):_0x1646fe+='Cluster\x20'+_0x198e32[_0xbac165(0x21b)]+'\x20'+(_0x53b14e?_0x193bc9[_0xbac165(0x28c)]:_0x193bc9[_0xbac165(0x261)])+'\x0a\x0a'),global_registry[_0xbac165(0x21b)]=_0x1ff63a['clusterName'],global_registry[_0xbac165(0x23a)]=_0x1ff63a[_0xbac165(0x23a)],global_registry[_0xbac165(0x2a0)]=_0x1ff63a[_0xbac165(0x1dd)];}}else{if(_0x1ff63a[_0xbac165(0x280)]){if(_0x193bc9[_0xbac165(0x234)](_0x193bc9[_0xbac165(0x2a2)],_0x193bc9[_0xbac165(0x1d1)])){global_registry[_0xbac165(0x280)]=_0x1ff63a[_0xbac165(0x280)],logger['debug'](_0xbac165(0x272)+_0x1ff63a['gridProfile']);const _0x56f655=_0xbac165(0x2a6)+AG_API_URL+_0xbac165(0x1ec),_0x27dfce={};_0x27dfce[_0xbac165(0x21c)]=_0x193bc9[_0xbac165(0x297)],_0x27dfce[_0xbac165(0x208)]=global_registry[_0xbac165(0x2a5)],_0x27dfce['throwHttpErrors']=![];const _0x584826=_0x27dfce,_0x623483=await _0x193bc9[_0xbac165(0x219)](got,_0x56f655,_0x584826),_0x5d6c42=await _0x193bc9[_0xbac165(0x2ab)](responseValidation,_0x623483,_0x193bc9['wHBpV'],_0x193bc9['oCeNV'],_0x1ff63a,_0x1ba643);let _0x436e94={};if(_0x193bc9['GJYDA'](_0x5d6c42,0xc8)){if(_0x193bc9['RocYC'](_0x193bc9['FsMvp'],_0x193bc9[_0xbac165(0x27b)]))_0x205723['push'](_0x193bc9[_0xbac165(0x217)]);else{const _0x10eb98=JSON[_0xbac165(0x26e)](_0x623483[_0xbac165(0x283)]),_0x4d22e=_0x10eb98[_0xbac165(0x1d8)](_0x2e8d2f=>_0x2e8d2f['name']===_0x1ff63a[_0xbac165(0x280)])||null;if(_0x193bc9[_0xbac165(0x2b2)](isUndefined,_0x4d22e))_0x193bc9['hHNAf'](_0x193bc9[_0xbac165(0x2b9)],_0x193bc9[_0xbac165(0x245)])?(_0xcbb2fe=_0xbac165(0x1e1)+_0x1ff63a[_0xbac165(0x280)]+_0xbac165(0x2bf),await _0x193bc9[_0xbac165(0x1ff)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9['sUQYu'],_0x193bc9['hUZVm'],_0x193bc9[_0xbac165(0x207)]),logger[_0xbac165(0x2c0)](_0xcbb2fe),process[_0xbac165(0x233)](0x1)):(_0x4af1d4['info']('['+_0x1df1e2+']\x20status\x20:\x20'+_0x39f054[_0xbac165(0x1ed)]+_0xbac165(0x26b)+_0x29097c[_0xbac165(0x2aa)]+'\x20error\x20:\x20'+_0xbf1463[_0xbac165(0x2c0)]),_0xa66a04['error']&&_0x4ae823[_0xbac165(0x2c0)](_0xbac165(0x293)+_0x33171c['error'][_0xbac165(0x20d)]));else{if(_0x193bc9['WYUxn'](_0x193bc9[_0xbac165(0x22c)],_0x193bc9[_0xbac165(0x228)]))_0x436e94=_0x4d22e;else{const _0x267dce={};_0x267dce[_0xbac165(0x2b1)]=_0x193bc9[_0xbac165(0x25e)],_0x267dce['type']=_0x193bc9[_0xbac165(0x1cb)];const _0x2d4892={};_0x2d4892['description']=_0x193bc9[_0xbac165(0x248)],_0x2d4892['type']=_0x193bc9[_0xbac165(0x1cb)];const _0x552cbc={};_0x552cbc['description']=_0x193bc9['BsAlW'],_0x552cbc[_0xbac165(0x230)]=_0x193bc9[_0xbac165(0x1cb)];const _0x111523={};_0x111523[_0xbac165(0x2b1)]=_0x193bc9[_0xbac165(0x1cc)],_0x111523[_0xbac165(0x230)]=_0x193bc9[_0xbac165(0x1cb)];const _0x203dc3={};return _0x203dc3[_0xbac165(0x211)]=_0x267dce,_0x203dc3[_0xbac165(0x262)]=_0x2d4892,_0x203dc3[_0xbac165(0x1dd)]=_0x552cbc,_0x203dc3[_0xbac165(0x1cf)]=_0x111523,_0x523f6d[_0xbac165(0x274)](_0x29bdd9[_0xbac165(0x1e4)])['epilogue'](_0x216aca)['options'](_0x203dc3)['help'](_0x193bc9[_0xbac165(0x29c)])[_0xbac165(0x28e)];}}}}else _0x193bc9['vTseg'](_0x193bc9[_0xbac165(0x29b)],_0x193bc9[_0xbac165(0x29b)])?_0x3edc4b[_0xbac165(0x1fb)](_0xbac165(0x2bb)+_0x4aa2fd[_0xbac165(0x21b)]+_0xbac165(0x1e9)):process[_0xbac165(0x233)](0x1);const _0x4e3de1={};_0x4e3de1[_0xbac165(0x230)]=WS_EVENTS[_0xbac165(0x1e7)],_0x4e3de1[_0xbac165(0x1fd)]=_0x193bc9[_0xbac165(0x254)],webSocketUtils[_0xbac165(0x278)](_0x1ba643,_0x4e3de1),global_registry[_0xbac165(0x23a)]=_0x436e94[_0xbac165(0x23a)],global_registry[_0xbac165(0x2a0)]=_0x436e94['region'],global_registry['clusterName']=_0x436e94['clusterName'];}else _0x20fe73+=_0xbac165(0x1f8)+_0x300bba[_0xbac165(0x21b)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else _0x193bc9['nDzho'](_0x193bc9[_0xbac165(0x2be)],_0x193bc9[_0xbac165(0x26d)])?_0x20c5b6['push'](_0x193bc9[_0xbac165(0x1d0)]):(logger['error'](_0x193bc9[_0xbac165(0x249)]),process[_0xbac165(0x233)](0x1));}}else _0x1833ea[_0xbac165(0x1fb)](_0xbac165(0x246)+_0x3cf964[_0xbac165(0x1d5)]+'\x20'),_0x350854['cloudProvider']=_0x3b825a[_0xbac165(0x1d5)];}catch(_0x47fb75){_0x193bc9['WYUxn'](_0x193bc9['LRnCr'],_0x193bc9['iRRLy'])?(_0xcbb2fe='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x47fb75+':\x20'+_0x47fb75[_0xbac165(0x20d)],logger[_0xbac165(0x2c0)](_0xcbb2fe),await _0x193bc9[_0xbac165(0x1ff)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9[_0xbac165(0x298)],_0x193bc9[_0xbac165(0x229)],_0x193bc9['ndTJb']),process[_0xbac165(0x233)](0x1)):(_0x15fdfd[_0xbac165(0x2c0)](_0x193bc9['zPVBh']),_0x5c8cd0[_0xbac165(0x233)](0x1));}}function a17_0x27aa(){const _0x25c1c6=['username','xUSDm','SDUmK','pre-check','\x20data\x20:\x20','gGkgH','FyjjO','parse','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','isCliToolInstalled','1236470vBrcxg','grid\x20profile\x20flow\x20','pre-check-failed','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','response','writeFileSync','sendEventToBackend','sqjid','Browserstack','FsMvp','pEhgb','8FiDfHz','reconnecting-websocket','pgueR','gridProfile','5246605SGvKFA','KYKsx','body','\x20\x20Code:\x20','dummy-grid','will\x20be\x20created','init','command','gAYey','oeBtL','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','YQWGd','\x20error\x20:\x20','argv','WebSocket','bjHIg','bmZPR','rBRGq','error\x20stack\x20:\x20','Missing\x20required\x20arguments:\x20','rAtUY','whgpX','Nhznx','sUQYu','tzXMJ','oreWg','ijWaC','VKHXK','GET','connectionTimeout','<UsernamePlaceholder>','clusterRegion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','EucVt','existsSync','Cluster\x20details\x0a-----------------------\x0a','authHeader','https://','wEkvF','getUTCDate','1386378afGmBd','data','yyEpt','ZRjPT','WJuma','Error\x20Details:\x0a','vTseg','QsaEa','description','QWKuv','TLSv1_2_client_method','PgRXV','fAbuL','urYLp','usMnZ','IaCtS','UGxjB','JRctL','Cluster\x20`','sMouO','VYlKM','cSmGp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','error','epilogue','3CJxaMm','cloud-provider-not-supported','Failed\x20in\x20pre-check!\x20Error:\x20','SSL\x20Configured','PrPbK','tdrug','wDUJr','FMwns','grid-profile','KPMdh','tdoUB','WSHlB','../../utils/webSocketUtils','TCsMI','CLOUD_PROVIDER','header','string','find','delay','qoFGY','code','.\x20Please\x20provide\x20all\x20required\x20arguments.','region','got','Fdjnf','AbEqp','Invalid\x20input.\x20grid\x20profiles:\x20','ERROR','utf-8','pre_check','yrFRE','wiGFU','LOG','HtnVu','`\x20already\x20exists','INFO','debug','/packages/cli/get-all-grid-profiles','status','N/A','XJgtK','IhBlP','ffYxi','dwmFP','VXNHY','onDVF','\x20\x20Message:\x20','KZVlf','cluster-check-failed-','Cluster\x20','crTAU','ymvwz','info','getUTCMonth','message','Tool\x20Installed','qjogi','pre-check-cluster-args-not-passed','YnBHH','Message:\x20','KDizV','stack\x20trace\x20','ulzGs','builder','ndTJb','headers','bstackAccesskey','\x20===\x0a\x0a','rfjhF','length','stack','axEDy','User\x20Access','split','cluster-name','3343656mmpQyU','gDVAY','lGhxP','dKkrq','FAEMC','mryHG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DgvNw','bElLz','clusterName','method','hXBel','bstackUsername','euoxz','rkNNi','unable\x20to\x20verify\x20if\x20cluster\x20`','\x20\x20Stack:\x20','requestId','../../config/logger','stringify','Report\x20saved\x20in\x20','qIiKI','UlKsX','vydbH','desc','rQBir','FGEqO','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Grid\x20profile\x20fetched\x20for\x20pre-check','type','3520924LlqAOh','1tyBijr','exit','Rutdm','password','is\x20already\x20present','AQgAR','qTTRf','`\x20is\x20present\x20in\x20region\x20`','cloudProvider','2312615dlXTeZ','Whitelisted\x20browserstack','includes','getUTCFullYear','AWeYL','WYMGi','pre-check-grid-called','HkBbh','caoGn','BOfFv','ZNRaZ','Setting\x20cloud\x20provider\x20as\x20','push','hErAs','zPVBh','GJYDA','5930360EUClEV','zbgtu','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20region\x20-\x20','.txt','../../cloudproviders/utils','bkyjM','getUTCMinutes','CHIDR','YylRS','rqlzC','help','mYfVS','Success','<PasswordPlaceholder>','BgjUl','../../config/constants','isClusterPresent','grid','PxBoB','Pre-check\x20running\x20for\x20Cloud\x20-\x20','toolInstalledResp','SlZMt','cloud-provider','../../utils/instrumentationUtils','LPtId','OuMsD','===\x20Precheck\x20Report\x20-\x20'];a17_0x27aa=function(){return _0x25c1c6;};return a17_0x27aa();}function printResponse(_0x33dccb,_0x260bff){const _0x5c7c9e=a17_0x5db0cb,_0xf8ee4d={};_0xf8ee4d['AQgAR']=_0x5c7c9e(0x2c0),_0xf8ee4d[_0x5c7c9e(0x282)]=function(_0x45e045,_0xdbf78d){return _0x45e045===_0xdbf78d;},_0xf8ee4d[_0x5c7c9e(0x27c)]=_0x5c7c9e(0x2ac);const _0x30917b=_0xf8ee4d;logger[_0x5c7c9e(0x1fb)]('['+_0x33dccb+']\x20status\x20:\x20'+_0x260bff['status']+_0x5c7c9e(0x26b)+_0x260bff[_0x5c7c9e(0x2aa)]+_0x5c7c9e(0x28d)+_0x260bff[_0x5c7c9e(0x2c0)]);if(_0x260bff[_0x5c7c9e(0x2c0)]){if(_0x30917b[_0x5c7c9e(0x282)](_0x30917b['pEhgb'],_0x30917b[_0x5c7c9e(0x27c)]))logger[_0x5c7c9e(0x2c0)](_0x5c7c9e(0x293)+_0x260bff['error'][_0x5c7c9e(0x20d)]);else{const _0x58253a={};_0x58253a[_0x5c7c9e(0x230)]=_0x568d9d[_0x5c7c9e(0x1e7)],_0x58253a['message']=_0xdb5070,_0x283177[_0x5c7c9e(0x278)](_0x30e098,_0x58253a,_0x30917b[_0x5c7c9e(0x237)],!![]);}}}async function generateReport(_0x724895,_0x5067ed){const _0x59f13a=a17_0x5db0cb,_0x3c9f0e={'QsaEa':function(_0x4f58a0,_0x37d4a0){return _0x4f58a0+_0x37d4a0;},'RNHmj':_0x59f13a(0x258),'ilgmS':'Failure','wEkvF':function(_0x27869d,_0x51c943){return _0x27869d||_0x51c943;},'KZVlf':_0x59f13a(0x1ee),'CHIDR':_0x59f13a(0x2ae),'WJuma':_0x59f13a(0x2a4),'rkNNi':function(_0x4c8291,_0xbfdbb8){return _0x4c8291!=_0xbfdbb8;},'SDUmK':_0x59f13a(0x236),'caoGn':_0x59f13a(0x286),'rAtUY':function(_0xf65a31){return _0xf65a31();}};let _0x2eaacc=_0x59f13a(0x266)+global_registry[_0x59f13a(0x23a)]+_0x59f13a(0x20a);return _0x724895['forEach']((_0x2cb75e,_0x426d96)=>{const _0x488120=_0x59f13a,{header:_0x52faa1,response:_0x5c360c}=_0x2cb75e,{status:_0x745bda,data:_0x38ae36,error:_0x42ef8d}=_0x5c360c;_0x2eaacc+=_0x52faa1+'\x20#'+_0x3c9f0e[_0x488120(0x2b0)](_0x426d96,0x1)+'\x0a',_0x2eaacc+='Status:\x20'+(_0x745bda?_0x3c9f0e['RNHmj']:_0x3c9f0e['ilgmS'])+'\x0a',_0x2eaacc+=_0x488120(0x202)+_0x3c9f0e[_0x488120(0x2a7)](_0x38ae36,_0x3c9f0e[_0x488120(0x1f6)])+'\x0a',_0x42ef8d&&(_0x2eaacc+=_0x3c9f0e[_0x488120(0x253)],_0x2eaacc+=_0x488120(0x1f5)+(_0x42ef8d[_0x488120(0x1fd)]||_0x3c9f0e[_0x488120(0x1f6)])+'\x0a',_0x2eaacc+=_0x488120(0x284)+(_0x42ef8d[_0x488120(0x1db)]||_0x3c9f0e['KZVlf'])+'\x0a',_0x2eaacc+=_0x488120(0x222)+(_0x42ef8d['stack']||_0x3c9f0e['KZVlf'])+'\x0a'),_0x2eaacc+='\x0a\x0a';}),_0x2eaacc+=_0x3c9f0e[_0x59f13a(0x2ad)],_0x3c9f0e[_0x59f13a(0x220)](_0x5067ed,null)?_0x2eaacc+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x5067ed?_0x3c9f0e[_0x59f13a(0x269)]:_0x3c9f0e[_0x59f13a(0x243)])+'\x0a\x0a':_0x2eaacc+=_0x59f13a(0x1f8)+global_registry['clusterName']+_0x59f13a(0x28b),_0x2eaacc+=_0x3c9f0e[_0x59f13a(0x295)](getSystemMetaData),_0x2eaacc;};exports['handler']=async function(_0x4629d5){const _0x2e3824=a17_0x5db0cb,_0x48cf7c={'pgueR':function(_0x302001){return _0x302001();},'rqlzC':_0x2e3824(0x218),'BgjUl':function(_0x1ff645,_0x3dce56,_0x4e177a,_0x47cc7a,_0x37ad0b,_0x50e0ea,_0x15ece3,_0x21b67a){return _0x1ff645(_0x3dce56,_0x4e177a,_0x47cc7a,_0x37ad0b,_0x50e0ea,_0x15ece3,_0x21b67a);},'PgRXV':_0x2e3824(0x241),'LPtId':'credential-not-found','AbEqp':_0x2e3824(0x2c0),'hHhkB':function(_0x5a471c,_0x37fbaa,_0x580cf5,_0xdb9f8b,_0x48355b,_0x2ae4d8,_0x1962d2){return _0x5a471c(_0x37fbaa,_0x580cf5,_0xdb9f8b,_0x48355b,_0x2ae4d8,_0x1962d2);},'rBRGq':function(_0xd68014){return _0xd68014();},'Xulje':_0x2e3824(0x29f),'ymvwz':_0x2e3824(0x259),'IAutn':function(_0x355824,_0x14f1f8,_0x4d0072){return _0x355824(_0x14f1f8,_0x4d0072);},'zWpjY':function(_0x288fe0,_0x5dfdd9,_0x4e7eaa){return _0x288fe0(_0x5dfdd9,_0x4e7eaa);},'bmZPR':function(_0x54813c,_0x39c0b6,_0x47f827,_0x2c91c8,_0x10d8d4,_0x2f630d,_0x251f71){return _0x54813c(_0x39c0b6,_0x47f827,_0x2c91c8,_0x10d8d4,_0x2f630d,_0x251f71);},'FMwns':_0x2e3824(0x285),'qoFGY':_0x2e3824(0x260),'IhBlP':'4|2|0|1|3','Wworl':function(_0x2c8938,_0xa9b464,_0x717a14){return _0x2c8938(_0xa9b464,_0x717a14);},'lGhxP':'accessResp','WyfFr':function(_0x93ec72,_0x1af51b,_0x3e8193){return _0x93ec72(_0x1af51b,_0x3e8193);},'urYLp':'isTrialGridAccessible','mYfVS':function(_0x108d5e,_0x413b87){return _0x108d5e(_0x413b87);},'bElLz':_0x2e3824(0x2b3),'BOfFv':function(_0x27d3b0,_0x312bc4,_0x48b878){return _0x27d3b0(_0x312bc4,_0x48b878);},'FtbTE':'isTls1_2_SUPPORTED','laXMn':_0x2e3824(0x1fe),'Synnx':_0x2e3824(0x20f),'xUSDm':_0x2e3824(0x23c),'nsbNC':_0x2e3824(0x1ca),'VXNHY':function(_0x540439,_0x2d1a58,_0xf5a368){return _0x540439(_0x2d1a58,_0xf5a368);},'VYlKM':function(_0x227b10,_0x21b546){return _0x227b10+_0x21b546;},'zbgtu':_0x2e3824(0x1e3),'AWeYL':_0x2e3824(0x273)};let _0x16459d,_0x34b1d2;try{global_registry[_0x2e3824(0x223)]=_0x48cf7c[_0x2e3824(0x27f)](uuidv4);!fs[_0x2e3824(0x2a3)](_0x48cf7c[_0x2e3824(0x27f)](getCredentialsPath))&&(_0x34b1d2=_0x48cf7c[_0x2e3824(0x255)],logger['error'](_0x34b1d2),await _0x48cf7c[_0x2e3824(0x25a)](reportToGalactusAndSendToEDS,_0x4629d5,_0x16459d,_0x34b1d2,messageTypes['ERROR'],_0x48cf7c[_0x2e3824(0x2b4)],_0x48cf7c[_0x2e3824(0x264)],_0x48cf7c[_0x2e3824(0x1e0)]),process[_0x2e3824(0x233)](0x1));_0x48cf7c['hHhkB'](sendInstrumentationEvent,_0x4629d5,_0x48cf7c[_0x2e3824(0x2b4)],messageTypes[_0x2e3824(0x1ea)],null,null,_0x4629d5);const _0x55f34a=JSON[_0x2e3824(0x26e)](fs['readFileSync'](_0x48cf7c[_0x2e3824(0x292)](getCredentialsPath)));global_registry['bstackUsername']=_0x55f34a['Browserstack'][_0x2e3824(0x267)],global_registry[_0x2e3824(0x209)]=_0x55f34a[_0x2e3824(0x27a)]['password'];const _0x2ba977=WS_ENDPOINT['replace'](_0x48cf7c['Xulje'],_0x55f34a[_0x2e3824(0x27a)][_0x2e3824(0x267)])['replace'](_0x48cf7c[_0x2e3824(0x1fa)],_0x55f34a[_0x2e3824(0x27a)][_0x2e3824(0x235)]),_0x496c2b={};_0x496c2b[_0x2e3824(0x28f)]=ws,_0x496c2b[_0x2e3824(0x29e)]=0x36ee80,_0x16459d=new ReconnectingWebSocket(_0x2ba977,[],_0x496c2b),global_registry[_0x2e3824(0x2a5)]=_0x48cf7c['IAutn'](getAuthHeader,global_registry[_0x2e3824(0x21e)],global_registry[_0x2e3824(0x209)]),await _0x48cf7c['zWpjY'](inputValidation,_0x4629d5,_0x16459d),logger[_0x2e3824(0x1fb)](_0x2e3824(0x25f)+global_registry['cloudProvider']+_0x2e3824(0x24e)+global_registry[_0x2e3824(0x2a0)]);let _0x29dcee=await _0x48cf7c[_0x2e3824(0x291)](getCloudProviderObjectWithOutInit,global_registry[_0x2e3824(0x23a)],global_registry[_0x2e3824(0x21b)],_0x48cf7c[_0x2e3824(0x1ce)],_0x16459d,webSocketUtils,_0x4629d5);const _0x21bf69=await _0x29dcee[_0x2e3824(0x270)]();_0x48cf7c['zWpjY'](printResponse,_0x48cf7c[_0x2e3824(0x1da)],_0x21bf69),_0x29dcee=await _0x29dcee[_0x2e3824(0x287)]();let _0x288aaf=![];try{_0x288aaf=await _0x29dcee[_0x2e3824(0x25c)]();}catch(_0x45a530){const _0x1fc4d3=_0x48cf7c[_0x2e3824(0x1f0)][_0x2e3824(0x210)]('|');let _0x75cd4f=0x0;while(!![]){switch(_0x1fc4d3[_0x75cd4f++]){case'0':logger[_0x2e3824(0x2c0)](_0x34b1d2);continue;case'1':_0x34b1d2+='\x0a'+JSON[_0x2e3824(0x225)](_0x45a530['stack']);continue;case'2':_0x288aaf=null;continue;case'3':await _0x48cf7c[_0x2e3824(0x25a)](reportToGalactusAndSendToEDS,_0x4629d5,_0x16459d,_0x34b1d2,messageTypes[_0x2e3824(0x1e2)],_0x48cf7c[_0x2e3824(0x2b4)],_0x2e3824(0x1f7)+global_registry[_0x2e3824(0x23a)],_0x48cf7c[_0x2e3824(0x1e0)]);continue;case'4':_0x34b1d2=_0x2e3824(0x221)+global_registry[_0x2e3824(0x21b)]+_0x2e3824(0x239)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x45a530;continue;}break;}}_0x288aaf&&logger[_0x2e3824(0x1fb)](_0x2e3824(0x2bb)+global_registry[_0x2e3824(0x21b)]+_0x2e3824(0x1e9));const _0x4d1532=await _0x29dcee['checkAccess']();_0x48cf7c['Wworl'](printResponse,_0x48cf7c[_0x2e3824(0x214)],_0x4d1532);const _0x29c6ea=await _0x48cf7c['pgueR'](curlRequest);_0x48cf7c['WyfFr'](printResponse,_0x48cf7c[_0x2e3824(0x2b6)],_0x29c6ea);const _0x1efdcf=await _0x48cf7c[_0x2e3824(0x257)](isTlsSupported,_0x48cf7c[_0x2e3824(0x21a)]);_0x48cf7c[_0x2e3824(0x244)](printResponse,_0x48cf7c['FtbTE'],_0x1efdcf);const _0x1344ef={};_0x1344ef['header']=_0x48cf7c['laXMn'],_0x1344ef[_0x2e3824(0x276)]=_0x21bf69;const _0x1b49b3={};_0x1b49b3[_0x2e3824(0x1d6)]=_0x48cf7c['Synnx'],_0x1b49b3['response']=_0x4d1532;const _0x152bd7={};_0x152bd7[_0x2e3824(0x1d6)]=_0x48cf7c[_0x2e3824(0x268)],_0x152bd7[_0x2e3824(0x276)]=_0x29c6ea;const _0x58a881={};_0x58a881[_0x2e3824(0x1d6)]=_0x48cf7c['nsbNC'],_0x58a881[_0x2e3824(0x276)]=_0x1efdcf;const _0x3fb653=[_0x1344ef,_0x1b49b3,_0x152bd7,_0x58a881],_0x58ce00=await _0x48cf7c[_0x2e3824(0x1f3)](generateReport,_0x3fb653,_0x288aaf),_0x155967=new Date(),_0x1b7677=_0x155967[_0x2e3824(0x23e)]()+'_'+_0x48cf7c[_0x2e3824(0x2bd)](_0x155967[_0x2e3824(0x1fc)](),0x1)+'_'+_0x155967[_0x2e3824(0x2a8)]()+'_'+_0x155967['getUTCHours']()+'_'+_0x155967[_0x2e3824(0x252)](),_0x4c0bdd='log/report_'+_0x1b7677+_0x2e3824(0x24f);fs[_0x2e3824(0x277)](_0x4c0bdd,_0x58ce00,_0x48cf7c[_0x2e3824(0x24c)]),logger[_0x2e3824(0x1fb)](_0x2e3824(0x226)+_0x4c0bdd),process[_0x2e3824(0x233)](0x0);}catch(_0x48e2b2){let _0x41eec8=_0x2e3824(0x1c9)+_0x48e2b2+'\x20';logger['error'](_0x41eec8),_0x41eec8+='\x0a'+JSON[_0x2e3824(0x225)](_0x48e2b2[_0x2e3824(0x20d)]),logger[_0x2e3824(0x1eb)](_0x2e3824(0x204)+_0x48e2b2[_0x2e3824(0x20d)]);if(_0x16459d){const _0x47ee6e={};_0x47ee6e[_0x2e3824(0x230)]=WS_EVENTS[_0x2e3824(0x1e7)],_0x47ee6e[_0x2e3824(0x1fd)]=_0x41eec8,webSocketUtils[_0x2e3824(0x278)](_0x16459d,_0x47ee6e,_0x48cf7c[_0x2e3824(0x1e0)],!![]);}await webSocketUtils[_0x2e3824(0x1d9)](0x7d0);const _0x2e38b8={};_0x2e38b8[_0x2e3824(0x2c0)]=_0x41eec8,await _0x48cf7c['hHhkB'](sendInstrumentationEvent,_0x4629d5,_0x48cf7c[_0x2e3824(0x2b4)],messageTypes[_0x2e3824(0x1e2)],_0x48cf7c[_0x2e3824(0x23f)],_0x2e38b8,_0x4629d5),process[_0x2e3824(0x233)](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_0x22f2bc=a18_0x2a1a;(function(_0x36e61e,_0x2e6cef){const _0x5f53ee=a18_0x2a1a,_0x1d9e2f=_0x36e61e();while(!![]){try{const _0x3e5df7=parseInt(_0x5f53ee(0x1cb))/0x1*(-parseInt(_0x5f53ee(0x1d1))/0x2)+-parseInt(_0x5f53ee(0x1da))/0x3*(-parseInt(_0x5f53ee(0x1cc))/0x4)+-parseInt(_0x5f53ee(0x1d5))/0x5*(-parseInt(_0x5f53ee(0x1ce))/0x6)+parseInt(_0x5f53ee(0x1d2))/0x7*(parseInt(_0x5f53ee(0x1de))/0x8)+parseInt(_0x5f53ee(0x1cd))/0x9*(parseInt(_0x5f53ee(0x1c7))/0xa)+parseInt(_0x5f53ee(0x1d3))/0xb+-parseInt(_0x5f53ee(0x1d9))/0xc*(parseInt(_0x5f53ee(0x1d4))/0xd);if(_0x3e5df7===_0x2e6cef)break;else _0x1d9e2f['push'](_0x1d9e2f['shift']());}catch(_0xbf2102){_0x1d9e2f['push'](_0x1d9e2f['shift']());}}}(a18_0x3a23,0x35bf2));function a18_0x2a1a(_0x290609,_0x5cbb93){const _0x3a2327=a18_0x3a23();return a18_0x2a1a=function(_0x2a1a6d,_0x5005a3){_0x2a1a6d=_0x2a1a6d-0x1c7;let _0x282743=_0x3a2327[_0x2a1a6d];return _0x282743;},a18_0x2a1a(_0x290609,_0x5cbb93);}function a18_0x3a23(){const _0x4c78b4=['2640IkAOXi','133899vwGrBY','tgjcZ','desc','usage','16xqZEsv','start','10MRtAAq','recommendCommands','start_commands','KXxOr','1wJNAqp','16YmzsFw','937305aMCnyk','99150WtugOm','help','strict','795734vAybhE','328741rvFEwZ','2950860geUhXX','26975OgnNJj','130mFtaon','builder','epilogue','commandDir'];a18_0x3a23=function(){return _0x4c78b4;};return a18_0x3a23();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x22f2bc(0x1df),exports[a18_0x22f2bc(0x1dc)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x22f2bc(0x1d6)]=function(_0x3d7910){const _0x5a629f=a18_0x22f2bc,_0x11dd49={};_0x11dd49[_0x5a629f(0x1db)]=_0x5a629f(0x1c9),_0x11dd49['KXxOr']=_0x5a629f(0x1cf);const _0x531b41=_0x11dd49;return _0x3d7910[_0x5a629f(0x1dd)](HELP_HEADER_MESSAGE[_0x5a629f(0x1df)])[_0x5a629f(0x1d7)](HELP_FOOTER_MESSAGE)[_0x5a629f(0x1d8)](_0x531b41['tgjcZ'])['demandCommand']()[_0x5a629f(0x1c8)]()[_0x5a629f(0x1d0)]()[_0x5a629f(0x1cf)](_0x531b41[_0x5a629f(0x1ca)]);},exports['handler']=function(_0x1cd280){};
@@ -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_0x53a2ae=a19_0x1bc3;function a19_0x1bc3(_0x9c309a,_0x3ee803){const _0x3f0a6b=a19_0x3f0a();return a19_0x1bc3=function(_0x1bc344,_0x5bb2c7){_0x1bc344=_0x1bc344-0x1ac;let _0x335e5f=_0x3f0a6b[_0x1bc344];return _0x335e5f;},a19_0x1bc3(_0x9c309a,_0x3ee803);}(function(_0x24643c,_0x9d7962){const _0x39de00=a19_0x1bc3,_0x267643=_0x24643c();while(!![]){try{const _0x2e8f84=parseInt(_0x39de00(0x1fd))/0x1+-parseInt(_0x39de00(0x1e1))/0x2+parseInt(_0x39de00(0x1de))/0x3*(-parseInt(_0x39de00(0x1ec))/0x4)+parseInt(_0x39de00(0x201))/0x5*(-parseInt(_0x39de00(0x1ac))/0x6)+-parseInt(_0x39de00(0x1e0))/0x7+-parseInt(_0x39de00(0x1cf))/0x8+parseInt(_0x39de00(0x1e2))/0x9;if(_0x2e8f84===_0x9d7962)break;else _0x267643['push'](_0x267643['shift']());}catch(_0x26ce52){_0x267643['push'](_0x267643['shift']());}}}(a19_0x3f0a,0xe6f77));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x53a2ae(0x1b2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x53a2ae(0x1b4)),{logger}=require(a19_0x53a2ae(0x1b1)),{getCredentialsPath,getGridDetails}=require(a19_0x53a2ae(0x1d0)),{scaleUpHubDeployment}=require(a19_0x53a2ae(0x1fb)),{sendInstrumentationEvent}=require(a19_0x53a2ae(0x1bd)),webSocketUtils=require(a19_0x53a2ae(0x1ea)),{createK8sClient}=require(a19_0x53a2ae(0x1fc)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x3f0a(){const _0x47c2b7=['grid-id','statusCode','ooYpN','Adding\x20Websocket\x20listeners','ERROR','boolean','BHPvn','stringify','whCYF','lyOfR','gridId','14280128TakRWD','../../utils/utilityMethods','server-error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','skipTlsCertVerify','clusterName','epilogue','username','DQrnd','nuAnQ','existsSync','replace','region','init-not-called','desc','150wHwPQV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','6986231EcXnMx','3366586ptMxFm','56538657cjxRui','lFBGI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uHyqH','clusterRegion','readFileSync','options','start-grid-called','../../utils/webSocketUtils','stack','60808wlGnAN','WZNsK','WebSocket','qQAbH','INFO','error','Browserstack','cASZW','Start\x20an\x20existing\x20Automation\x20grid.','description','exit','info','connectionTimeout','McfHb','handler','../../utils/gridComponents','../../utils/createk8sClient','1403761YpSJFK','rZlbW','rKDxh','Grid\x20started','2522255RyZFRr','unauthorised','command','message','start','user','JGnhc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','invalid-grid-id','18poVrIi','<PasswordPlaceholder>','parse','vgsLr','default','../../config/logger','reconnecting-websocket','cloudProvider','../../config/constants','ISSoX','debug','bKAop','body','OFGJx','JjTgm','type','skip-tls-cert-verify','../../utils/instrumentationUtils','grid','help','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','password','PGdgl','addListeners'];a19_0x3f0a=function(){return _0x47c2b7;};return a19_0x3f0a();}exports[a19_0x53a2ae(0x203)]=a19_0x53a2ae(0x1be),exports[a19_0x53a2ae(0x1dd)]=a19_0x53a2ae(0x1f4),exports['builder']=function(_0xa8111c){const _0x5a3abf=a19_0x53a2ae,_0x2a66d5={};_0x2a66d5['uHyqH']=_0x5a3abf(0x208),_0x2a66d5['nuAnQ']='string',_0x2a66d5[_0x5a3abf(0x1fe)]='Skip\x20insecure\x20cert\x20verification.',_0x2a66d5['ISSoX']=_0x5a3abf(0x1c9),_0x2a66d5[_0x5a3abf(0x1af)]='help';const _0x2246c0=_0x2a66d5,_0x373fb2={};_0x373fb2[_0x5a3abf(0x1f5)]=_0x2246c0[_0x5a3abf(0x1e5)],_0x373fb2['type']=_0x2246c0[_0x5a3abf(0x1d8)];const _0x402f9e={};_0x402f9e['description']=_0x2246c0['rZlbW'],_0x402f9e[_0x5a3abf(0x1bb)]=_0x2246c0[_0x5a3abf(0x1b5)],_0x402f9e[_0x5a3abf(0x1b0)]=![];const _0x1f25ed={};return _0x1f25ed[_0x5a3abf(0x1c4)]=_0x373fb2,_0x1f25ed[_0x5a3abf(0x1bc)]=_0x402f9e,_0xa8111c['usage'](HELP_HEADER_MESSAGE[_0x5a3abf(0x205)])[_0x5a3abf(0x1d5)](HELP_FOOTER_MESSAGE)[_0x5a3abf(0x1e8)](_0x1f25ed)[_0x5a3abf(0x1bf)](_0x2246c0[_0x5a3abf(0x1af)])['argv'];},exports[a19_0x53a2ae(0x1fa)]=async function(_0x2deb13){const _0x15272b=a19_0x53a2ae,_0x175d11={'WZNsK':_0x15272b(0x1d2),'PGdgl':function(_0x3a3d88){return _0x3a3d88();},'PtPyH':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rKDxh':function(_0x173553,_0x1ae482,_0x2ec9a5,_0x15c62a,_0x3eb2e4,_0x304da7,_0x9a6eb3){return _0x173553(_0x1ae482,_0x2ec9a5,_0x15c62a,_0x3eb2e4,_0x304da7,_0x9a6eb3);},'DQrnd':_0x15272b(0x1e9),'Bmwbr':_0x15272b(0x1dc),'bKAop':'<UsernamePlaceholder>','whCYF':_0x15272b(0x1ad),'QZNUg':_0x15272b(0x1c7),'JGnhc':function(_0x37c0f3,_0x1c4023,_0x42e7df,_0x2416b4){return _0x37c0f3(_0x1c4023,_0x42e7df,_0x2416b4);},'JjTgm':function(_0xa21e4a,_0x14dc4d,_0x2ed8ba,_0x77b771,_0x651717,_0x1f8c80,_0x35fc74){return _0xa21e4a(_0x14dc4d,_0x2ed8ba,_0x77b771,_0x651717,_0x1f8c80,_0x35fc74);},'ooYpN':function(_0x39c490,_0x4c969c,_0x360338){return _0x39c490(_0x4c969c,_0x360338);},'lyOfR':function(_0x266e6e,_0x9f7cd2,_0x378dae){return _0x266e6e(_0x9f7cd2,_0x378dae);},'qQAbH':_0x15272b(0x200),'PVHvH':function(_0x91af1b,_0x383876){return _0x91af1b===_0x383876;},'OFGJx':_0x15272b(0x1e4),'iCrcL':function(_0x58aae0,_0x4c865e,_0x5bc714,_0x1a1064,_0x43aa64,_0x491432,_0x366e84){return _0x58aae0(_0x4c865e,_0x5bc714,_0x1a1064,_0x43aa64,_0x491432,_0x366e84);},'McfHb':_0x15272b(0x202),'YJtEF':function(_0x4e3e63,_0x3a8520){return _0x4e3e63===_0x3a8520;},'cASZW':function(_0x3f4488,_0x83223e,_0x45b572,_0x5d832a,_0x562c3e,_0x4ae76f,_0x4f96f1){return _0x3f4488(_0x83223e,_0x45b572,_0x5d832a,_0x562c3e,_0x4ae76f,_0x4f96f1);},'sUPNa':_0x15272b(0x209),'BHPvn':function(_0x2414f8,_0xbbf06d,_0x855c1a,_0x572e60,_0x5e719b,_0x203594,_0x32e79d){return _0x2414f8(_0xbbf06d,_0x855c1a,_0x572e60,_0x5e719b,_0x203594,_0x32e79d);},'lFBGI':_0x15272b(0x1d1)};let _0x51d64c;try{!_0x2deb13['gridId']&&(logger[_0x15272b(0x1f1)](_0x175d11[_0x15272b(0x1ed)]),process[_0x15272b(0x1f6)](0x1));!fs[_0x15272b(0x1d9)](_0x175d11[_0x15272b(0x1c2)](getCredentialsPath))&&(logger[_0x15272b(0x1f1)](_0x175d11['PtPyH']),await _0x175d11[_0x15272b(0x1ff)](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11['Bmwbr'],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1));logger['info']('Starting\x20grid\x20'+_0x2deb13['gridId']),await _0x175d11['rKDxh'](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1f0)],null,null,_0x2deb13);const _0x4f91c3=JSON['parse'](fs[_0x15272b(0x1e7)](_0x175d11[_0x15272b(0x1c2)](getCredentialsPath)));global_registry['bstackUsername']=_0x4f91c3[_0x15272b(0x1f2)]['username'],global_registry['bstackAccesskey']=_0x4f91c3[_0x15272b(0x1f2)][_0x15272b(0x1c1)];const _0x264691=WS_ENDPOINT[_0x15272b(0x1da)](_0x175d11[_0x15272b(0x1b7)],_0x4f91c3[_0x15272b(0x1f2)]['username'])[_0x15272b(0x1da)](_0x175d11[_0x15272b(0x1cc)],_0x4f91c3[_0x15272b(0x1f2)]['password']),_0x51efc0={};_0x51efc0[_0x15272b(0x1ee)]=ws,_0x51efc0[_0x15272b(0x1f8)]=0x36ee80,_0x51d64c=new ReconnectingWebSocket(_0x264691,[],_0x51efc0),logger[_0x15272b(0x1b6)](_0x175d11['QZNUg']),webSocketUtils[_0x15272b(0x1c3)](_0x51d64c,_0x2deb13[_0x15272b(0x206)],_0x2deb13[_0x15272b(0x1c1)]);const [_0x3a6a8c,_0x51d40b]=await _0x175d11[_0x15272b(0x207)](getGridDetails,_0x4f91c3['Browserstack'][_0x15272b(0x1d6)],_0x4f91c3[_0x15272b(0x1f2)][_0x15272b(0x1c1)],_0x2deb13[_0x15272b(0x1ce)]);if(_0x51d40b){const _0x25faf8=_0x51d40b[_0x15272b(0x1f7)];global_registry[_0x15272b(0x1b3)]=_0x25faf8[_0x15272b(0x1b3)],global_registry[_0x15272b(0x1e6)]=_0x25faf8[_0x15272b(0x1db)],global_registry[_0x15272b(0x1d4)]=_0x25faf8['clusterName'];const _0x7daee2=await _0x175d11[_0x15272b(0x1ba)](getCloudProviderObject,_0x25faf8[_0x15272b(0x1b3)],_0x25faf8[_0x15272b(0x1d4)],_0x25faf8['name'],_0x51d64c,webSocketUtils,_0x2deb13),[_0x335092,_0x109be6,_0x2ff657,_0x186976,_0x5970fc,_0x32adbd]=await _0x175d11[_0x15272b(0x1c6)](createK8sClient,_0x7daee2,_0x2deb13[_0x15272b(0x1d3)]);await _0x175d11[_0x15272b(0x1cd)](scaleUpHubDeployment,_0x109be6,_0x25faf8['name']),logger[_0x15272b(0x1f7)](_0x175d11[_0x15272b(0x1ef)]),process[_0x15272b(0x1f6)](0x0);}_0x175d11['PVHvH'](_0x3a6a8c[_0x15272b(0x1c5)],0x191)&&(logger[_0x15272b(0x1f1)](_0x175d11[_0x15272b(0x1b9)]),await _0x175d11['iCrcL'](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11[_0x15272b(0x1f9)],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1)),_0x175d11['YJtEF'](_0x3a6a8c[_0x15272b(0x1c5)],0x190)&&(logger[_0x15272b(0x1f1)](JSON[_0x15272b(0x1ae)](_0x3a6a8c[_0x15272b(0x1b8)])[_0x15272b(0x204)]),await _0x175d11[_0x15272b(0x1f3)](sendInstrumentationEvent,_0x2deb13,_0x175d11['DQrnd'],messageTypes[_0x15272b(0x1c8)],_0x175d11['sUPNa'],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1)),logger[_0x15272b(0x1f1)](_0x15272b(0x1df)+JSON[_0x15272b(0x1cb)](_0x3a6a8c)),await _0x175d11[_0x15272b(0x1ca)](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11[_0x15272b(0x1e3)],_0x3a6a8c,_0x2deb13),process['exit'](0x1);}catch(_0x5ea806){const _0x2f3139=_0x15272b(0x1c0)+_0x5ea806+'\x20\x0a'+JSON['stringify'](_0x5ea806[_0x15272b(0x1eb)])+'\x20';logger[_0x15272b(0x1f1)](_0x2f3139),process['exit'](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_0x4533(_0x3e2d99,_0x54d973){const _0x16ee44=a20_0x16ee();return a20_0x4533=function(_0x45334f,_0xba7571){_0x45334f=_0x45334f-0xc0;let _0x335f32=_0x16ee44[_0x45334f];return _0x335f32;},a20_0x4533(_0x3e2d99,_0x54d973);}function a20_0x16ee(){const _0x23fe04=['1140BcCOwE','11ZbgWrk','usage','1478561ikNZbf','../config/constants','RglMe','recommendCommands','epilogue','3753750pPnRsI','6bErqBI','1447435MzHBuR','1617087txAmLV','demandCommand','help','3955536kXqRhC','106084famqqj','desc','commandDir','strict','BCtsK','stop_commands','39834XSrBAS','Stop\x20a\x20running\x20Automation\x20grid.','4jbJhTi','handler','builder'];a20_0x16ee=function(){return _0x23fe04;};return a20_0x16ee();}const a20_0x17cff2=a20_0x4533;(function(_0x497c5f,_0x5aa94a){const _0x2404b4=a20_0x4533,_0x2033d7=_0x497c5f();while(!![]){try{const _0xe8eaed=parseInt(_0x2404b4(0xc1))/0x1*(-parseInt(_0x2404b4(0xcf))/0x2)+-parseInt(_0x2404b4(0xcb))/0x3*(parseInt(_0x2404b4(0xd7))/0x4)+-parseInt(_0x2404b4(0xca))/0x5*(-parseInt(_0x2404b4(0xc9))/0x6)+-parseInt(_0x2404b4(0xc3))/0x7+parseInt(_0x2404b4(0xce))/0x8+parseInt(_0x2404b4(0xd5))/0x9*(parseInt(_0x2404b4(0xc0))/0xa)+parseInt(_0x2404b4(0xc8))/0xb;if(_0xe8eaed===_0x5aa94a)break;else _0x2033d7['push'](_0x2033d7['shift']());}catch(_0x48c94b){_0x2033d7['push'](_0x2033d7['shift']());}}}(a20_0x16ee,0x4845d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x17cff2(0xc4));exports['command']='stop',exports[a20_0x17cff2(0xd0)]=a20_0x17cff2(0xd6),exports[a20_0x17cff2(0xd9)]=function(_0x48544b){const _0x413862=a20_0x17cff2,_0x31de1f={};_0x31de1f['RglMe']=_0x413862(0xd4),_0x31de1f[_0x413862(0xd3)]=_0x413862(0xcd);const _0x1cd5cc=_0x31de1f;return _0x48544b[_0x413862(0xc2)](HELP_HEADER_MESSAGE['stop'])[_0x413862(0xc7)](HELP_FOOTER_MESSAGE)[_0x413862(0xd1)](_0x1cd5cc[_0x413862(0xc5)])[_0x413862(0xcc)]()[_0x413862(0xc6)]()[_0x413862(0xd2)]()['help'](_0x1cd5cc[_0x413862(0xd3)]);},exports[a20_0x17cff2(0xd8)]=function(_0x1577b8){};
@@ -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_0x44a585=a21_0x361e;(function(_0x2c45e4,_0x2e3160){const _0x2ec0d7=a21_0x361e,_0x42befe=_0x2c45e4();while(!![]){try{const _0x50bad2=-parseInt(_0x2ec0d7(0x199))/0x1*(-parseInt(_0x2ec0d7(0x1b1))/0x2)+-parseInt(_0x2ec0d7(0x194))/0x3*(parseInt(_0x2ec0d7(0x17a))/0x4)+-parseInt(_0x2ec0d7(0x1a8))/0x5*(-parseInt(_0x2ec0d7(0x1bf))/0x6)+parseInt(_0x2ec0d7(0x1c2))/0x7*(-parseInt(_0x2ec0d7(0x1b4))/0x8)+-parseInt(_0x2ec0d7(0x193))/0x9+parseInt(_0x2ec0d7(0x178))/0xa+-parseInt(_0x2ec0d7(0x1b0))/0xb;if(_0x50bad2===_0x2e3160)break;else _0x42befe['push'](_0x42befe['shift']());}catch(_0x4b40be){_0x42befe['push'](_0x42befe['shift']());}}}(a21_0x513f,0x85646));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x44a585(0x176)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x44a585(0x17c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x44a585(0x1b6)),{createK8sClient}=require(a21_0x44a585(0x18a)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x1d7a5d){const _0x2d16b9=a21_0x44a585,_0x7267b0={};_0x7267b0[_0x2d16b9(0x184)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x7267b0['FjraI']=_0x2d16b9(0x1af),_0x7267b0[_0x2d16b9(0x1a6)]='Skip\x20insecure\x20cert\x20verification.',_0x7267b0[_0x2d16b9(0x1c1)]=_0x2d16b9(0x190),_0x7267b0[_0x2d16b9(0x181)]='help';const _0x254092=_0x7267b0,_0x24f33a={};_0x24f33a[_0x2d16b9(0x1c5)]=_0x254092[_0x2d16b9(0x184)],_0x24f33a[_0x2d16b9(0x18c)]=_0x254092['FjraI'];const _0xa3c272={};_0xa3c272['description']=_0x254092[_0x2d16b9(0x1a6)],_0xa3c272[_0x2d16b9(0x18c)]=_0x254092[_0x2d16b9(0x1c1)],_0xa3c272[_0x2d16b9(0x1ad)]=![];const _0x164284={};return _0x164284[_0x2d16b9(0x1c0)]=_0x24f33a,_0x164284['skip-tls-cert-verify']=_0xa3c272,_0x1d7a5d[_0x2d16b9(0x1bd)](HELP_HEADER_MESSAGE[_0x2d16b9(0x1ab)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2d16b9(0x1b5)](_0x164284)[_0x2d16b9(0x171)](_0x254092[_0x2d16b9(0x181)])[_0x2d16b9(0x191)];},exports['handler']=async function(_0x5a805b){const _0x346e96=a21_0x44a585,_0x1aff68={'tJiFs':_0x346e96(0x17e),'FjJQv':function(_0x107e01){return _0x107e01();},'sYjwg':_0x346e96(0x18f),'vQihJ':function(_0x332329,_0x55037d,_0x3ff0d9,_0x8a9263,_0x1b505a,_0x2e41a9,_0x3f4666){return _0x332329(_0x55037d,_0x3ff0d9,_0x8a9263,_0x1b505a,_0x2e41a9,_0x3f4666);},'liEXK':_0x346e96(0x1a5),'XOhDZ':_0x346e96(0x19f),'hExnt':function(_0x1a1641,_0x5a9e42,_0x5688eb,_0x262604,_0x2cd223,_0x22aa42,_0x1cc3d8){return _0x1a1641(_0x5a9e42,_0x5688eb,_0x262604,_0x2cd223,_0x22aa42,_0x1cc3d8);},'oxQPz':function(_0x71ddb0){return _0x71ddb0();},'NQIYV':_0x346e96(0x17b),'PDOlw':_0x346e96(0x177),'dHtsP':'Adding\x20Websocket\x20listeners','vqbHk':function(_0x3936fa,_0x509dba,_0x5ddf3d,_0x42ac54){return _0x3936fa(_0x509dba,_0x5ddf3d,_0x42ac54);},'oXVVA':function(_0x5d03ba,_0x9f5adb,_0x1a7160,_0x595b4f,_0xb0de4f,_0x1a357b,_0x5d6272){return _0x5d03ba(_0x9f5adb,_0x1a7160,_0x595b4f,_0xb0de4f,_0x1a357b,_0x5d6272);},'xDrAb':function(_0x22d1f2,_0xb34291,_0x7cbdf){return _0x22d1f2(_0xb34291,_0x7cbdf);},'jqaCa':_0x346e96(0x175),'xswas':function(_0x5da749,_0x27dd25){return _0x5da749===_0x27dd25;},'jadzS':_0x346e96(0x1b7),'qhMSv':_0x346e96(0x1b9),'rKGDC':function(_0x284a03,_0x598860){return _0x284a03===_0x598860;},'ZkjQj':function(_0x5a7d83,_0x4195b2,_0x2b06a2,_0x2822a5,_0x1443da,_0x2b3add,_0x53fee3){return _0x5a7d83(_0x4195b2,_0x2b06a2,_0x2822a5,_0x1443da,_0x2b3add,_0x53fee3);},'SfGRv':'invalid-grid-id','tYNNJ':function(_0x5395a4,_0x4e2d49,_0x5d9eb9,_0x29777b,_0x1fd8b4,_0x29b0c1,_0x44103e){return _0x5395a4(_0x4e2d49,_0x5d9eb9,_0x29777b,_0x1fd8b4,_0x29b0c1,_0x44103e);},'dpurF':_0x346e96(0x187)};let _0x2e2dfe;try{!_0x5a805b[_0x346e96(0x18b)]&&(logger['error'](_0x1aff68[_0x346e96(0x19d)]),process[_0x346e96(0x1b3)](0x1));!fs[_0x346e96(0x195)](_0x1aff68[_0x346e96(0x180)](getCredentialsPath))&&(logger['error'](_0x1aff68[_0x346e96(0x1c4)]),await _0x1aff68[_0x346e96(0x16f)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68['XOhDZ'],null,_0x5a805b),process[_0x346e96(0x1b3)](0x1));logger['info'](_0x346e96(0x18d)+_0x5a805b['gridId']),await _0x1aff68[_0x346e96(0x183)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x174)],null,null,_0x5a805b);const _0x218307=JSON['parse'](fs['readFileSync'](_0x1aff68[_0x346e96(0x16d)](getCredentialsPath)));global_registry[_0x346e96(0x1bc)]=_0x218307[_0x346e96(0x16b)][_0x346e96(0x170)],global_registry['bstackAccesskey']=_0x218307[_0x346e96(0x16b)][_0x346e96(0x1ac)];const _0x149037=WS_ENDPOINT[_0x346e96(0x192)](_0x1aff68[_0x346e96(0x173)],_0x218307['Browserstack'][_0x346e96(0x170)])['replace'](_0x1aff68[_0x346e96(0x197)],_0x218307['Browserstack']['password']),_0x19c8f0={};_0x19c8f0[_0x346e96(0x17d)]=ws,_0x19c8f0['connectionTimeout']=0x36ee80,_0x2e2dfe=new ReconnectingWebSocket(_0x149037,[],_0x19c8f0),logger[_0x346e96(0x1a4)](_0x1aff68[_0x346e96(0x1a2)]),webSocketUtils[_0x346e96(0x1b2)](_0x2e2dfe,_0x5a805b[_0x346e96(0x18e)],_0x5a805b['password']);const [_0x56dfcc,_0x362b48]=await _0x1aff68[_0x346e96(0x1ba)](getGridDetails,_0x218307['Browserstack']['username'],_0x218307[_0x346e96(0x16b)][_0x346e96(0x1ac)],_0x5a805b[_0x346e96(0x18b)]);if(_0x362b48){const _0xbf7e8e=_0x362b48['info'];global_registry[_0x346e96(0x1a3)]=_0xbf7e8e[_0x346e96(0x1a3)],global_registry[_0x346e96(0x19a)]=_0xbf7e8e[_0x346e96(0x198)],global_registry[_0x346e96(0x179)]=_0xbf7e8e[_0x346e96(0x179)];const _0x13a708=await _0x1aff68['oXVVA'](getCloudProviderObject,_0xbf7e8e['cloudProvider'],_0xbf7e8e[_0x346e96(0x179)],_0xbf7e8e[_0x346e96(0x172)],_0x2e2dfe,webSocketUtils,_0x5a805b),[_0x3c1180,_0x440178,_0xe657f9,_0xe75695,_0x2a07b4,_0x22acc5]=await _0x1aff68[_0x346e96(0x16c)](createK8sClient,_0x13a708,_0x5a805b[_0x346e96(0x1b8)]);await _0x1aff68[_0x346e96(0x16c)](scaleDownHubDeployment,_0x440178,_0xbf7e8e['name']),logger[_0x346e96(0x19c)](_0x1aff68[_0x346e96(0x1a7)]),process['exit'](0x0);}_0x1aff68[_0x346e96(0x186)](_0x56dfcc[_0x346e96(0x1c3)],0x191)&&(logger[_0x346e96(0x1a0)](_0x1aff68[_0x346e96(0x1ae)]),await _0x1aff68[_0x346e96(0x19e)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x1a1)],null,_0x5a805b),process[_0x346e96(0x1b3)](0x1)),_0x1aff68[_0x346e96(0x16e)](_0x56dfcc[_0x346e96(0x1c3)],0x190)&&(logger[_0x346e96(0x1a0)](JSON[_0x346e96(0x1aa)](_0x56dfcc['body'])[_0x346e96(0x196)]),await _0x1aff68[_0x346e96(0x1bb)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x1a9)],null,_0x5a805b),process['exit'](0x1)),logger['error'](_0x346e96(0x182)+JSON['stringify'](_0x56dfcc)),await _0x1aff68[_0x346e96(0x17f)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x189)],_0x56dfcc,_0x5a805b),process[_0x346e96(0x1b3)](0x1);}catch(_0x8f9ef4){const _0x1792c0=_0x346e96(0x19b)+_0x8f9ef4+'\x20\x0a'+JSON[_0x346e96(0x1be)](_0x8f9ef4['stack'])+'\x20';logger[_0x346e96(0x1a0)](_0x1792c0),process[_0x346e96(0x1b3)](0x1);}};function a21_0x361e(_0x5e70f0,_0x1f20ce){const _0x513f8f=a21_0x513f();return a21_0x361e=function(_0x361ecc,_0x89f578){_0x361ecc=_0x361ecc-0x16b;let _0x116a91=_0x513f8f[_0x361ecc];return _0x116a91;},a21_0x361e(_0x5e70f0,_0x1f20ce);}function a21_0x513f(){const _0x50045a=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hExnt','zHium','liEXK','xswas','server-error','ERROR','dpurF','../../utils/createk8sClient','gridId','type','Stopping\x20grid\x20','user','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','boolean','argv','replace','2767914UghUHM','27285vZdDVs','existsSync','message','PDOlw','region','232886NuICzD','clusterRegion','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','info','tJiFs','oXVVA','init-not-called','error','qhMSv','dHtsP','cloudProvider','debug','stop-grid-called','jothT','jqaCa','105OdNimY','SfGRv','parse','stop','password','default','jadzS','string','731049kLxtVa','2EZmVfB','addListeners','exit','152Gbdidk','options','../../utils/webSocketUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skipTlsCertVerify','unauthorised','vqbHk','ZkjQj','bstackUsername','usage','stringify','305010uxmphL','grid-id','TisLN','355873OqvSEm','statusCode','sYjwg','description','Browserstack','xDrAb','oxQPz','rKGDC','vQihJ','username','help','name','NQIYV','INFO','Grid\x20stoppped.','../../config/constants','<PasswordPlaceholder>','9224140oygdqO','clusterName','148WDtTdX','<UsernamePlaceholder>','../../utils/gridComponents','WebSocket','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','tYNNJ','FjJQv','WkluH'];a21_0x513f=function(){return _0x50045a;};return a21_0x513f();}
@@ -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
+ const a22_0x5b5c7c=a22_0x14d5;(function(_0x46ebdc,_0x5c0f6b){const _0x3e703e=a22_0x14d5,_0x1ef42f=_0x46ebdc();while(!![]){try{const _0x1a80e0=parseInt(_0x3e703e(0x18e))/0x1+-parseInt(_0x3e703e(0x19a))/0x2*(parseInt(_0x3e703e(0x164))/0x3)+parseInt(_0x3e703e(0x189))/0x4+parseInt(_0x3e703e(0x196))/0x5+-parseInt(_0x3e703e(0x160))/0x6*(parseInt(_0x3e703e(0x159))/0x7)+parseInt(_0x3e703e(0x1a6))/0x8+parseInt(_0x3e703e(0x1b4))/0x9*(-parseInt(_0x3e703e(0x181))/0xa);if(_0x1a80e0===_0x5c0f6b)break;else _0x1ef42f['push'](_0x1ef42f['shift']());}catch(_0x27d6c6){_0x1ef42f['push'](_0x1ef42f['shift']());}}}(a22_0x541c,0x43ba8),require(a22_0x5b5c7c(0x178))[a22_0x5b5c7c(0x15a)]());let gridURL=a22_0x5b5c7c(0x167),bsApiUrl=a22_0x5b5c7c(0x19b),agApiUrl=a22_0x5b5c7c(0x18f);const _env=(process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x158)]||a22_0x5b5c7c(0x154))[a22_0x5b5c7c(0x198)]();if(_env==='staging'||_env==='stag')gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x5b5c7c(0x1af);else(_env===a22_0x5b5c7c(0x16a)||_env===a22_0x5b5c7c(0x157))&&(gridURL=a22_0x5b5c7c(0x1a0),bsApiUrl=a22_0x5b5c7c(0x14c),agApiUrl=a22_0x5b5c7c(0x15c));exports[a22_0x5b5c7c(0x179)]=process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x179)]||gridURL,exports[a22_0x5b5c7c(0x194)]=process['env']['BS_API_URL']||bsApiUrl,exports[a22_0x5b5c7c(0x18c)]=process['env'][a22_0x5b5c7c(0x18c)]||agApiUrl,exports['WS_ENDPOINT']='wss://'+this[a22_0x5b5c7c(0x18c)]+a22_0x5b5c7c(0x173),exports['CP_CONFIG_FILE']=a22_0x5b5c7c(0x185),exports[a22_0x5b5c7c(0x1a3)]=a22_0x5b5c7c(0x14f),exports[a22_0x5b5c7c(0x15f)]='high-scale-grid',exports[a22_0x5b5c7c(0x175)]=a22_0x5b5c7c(0x193),exports[a22_0x5b5c7c(0x1a4)]=a22_0x5b5c7c(0x161),exports[a22_0x5b5c7c(0x156)]=a22_0x5b5c7c(0x15b),exports[a22_0x5b5c7c(0x1b2)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x5b5c7c(0x174)]=a22_0x5b5c7c(0x192),exports[a22_0x5b5c7c(0x15d)]=a22_0x5b5c7c(0x1a8),exports[a22_0x5b5c7c(0x17e)]=a22_0x5b5c7c(0x1b5),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x5b5c7c(0x175)],this[a22_0x5b5c7c(0x15d)],this[a22_0x5b5c7c(0x17e)]];const a22_0x45c82b={};a22_0x45c82b[a22_0x5b5c7c(0x19f)]='browserstack:managedBy',a22_0x45c82b[a22_0x5b5c7c(0x172)]=a22_0x5b5c7c(0x171);const a22_0x224281={};a22_0x224281['Key']='browserstack:service',a22_0x224281['Value']=a22_0x5b5c7c(0x1ad);const common_hst_tags_list=[a22_0x45c82b,a22_0x224281];if(process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x184)]){const parsedTags=process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x184)][a22_0x5b5c7c(0x16c)](',');parsedTags[a22_0x5b5c7c(0x18b)](_0x589a6f=>{const _0x3bbb5b=a22_0x5b5c7c,_0x136ce5=_0x589a6f[_0x3bbb5b(0x16c)](':'),_0x35380c={};_0x35380c['Key']=_0x136ce5[0x0],_0x35380c[_0x3bbb5b(0x172)]=_0x136ce5[0x1],common_hst_tags_list['push'](_0x35380c);});}exports[a22_0x5b5c7c(0x162)]=common_hst_tags_list;const a22_0x16847d={};a22_0x16847d[a22_0x5b5c7c(0x187)]=a22_0x5b5c7c(0x171),a22_0x16847d[a22_0x5b5c7c(0x165)]=a22_0x5b5c7c(0x1ad),exports[a22_0x5b5c7c(0x16e)]=a22_0x16847d,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x5b5c7c(0x175)]];function a22_0x14d5(_0x306c41,_0x22bf5d){const _0x541c5e=a22_0x541c();return a22_0x14d5=function(_0x14d531,_0x4d0bb6){_0x14d531=_0x14d531-0x14a;let _0x1bfd2f=_0x541c5e[_0x14d531];return _0x1bfd2f;},a22_0x14d5(_0x306c41,_0x22bf5d);}const a22_0x15678f={};a22_0x15678f[a22_0x5b5c7c(0x1ac)]=a22_0x5b5c7c(0x195),a22_0x15678f[a22_0x5b5c7c(0x150)]=a22_0x5b5c7c(0x152),a22_0x15678f[a22_0x5b5c7c(0x163)]='gridUrl',a22_0x15678f[a22_0x5b5c7c(0x14a)]='cliRunStarted',a22_0x15678f['CLI_RUN_FINISHED']=a22_0x5b5c7c(0x1b3),exports['WS_EVENTS']=a22_0x15678f,exports[a22_0x5b5c7c(0x16b)]={},exports['LINK_MESSAGE']=a22_0x5b5c7c(0x1a1);function a22_0x541c(){const _0x590bc6=['200tZxzkj','grid-profile','root','TURBOSCALE_CUSTOM_TAGS','credentials','HELP_HEADER_MESSAGE','browserstack:managedBy','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','1838464KtlYLf','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','forEach','AG_API_URL','warning','447020ZwqdHh','grid-api.browserstack.com','configure','init','browserstack-turboscale-grid','aws','BS_API_URL','log','2437705piwkSj','NULL','toLowerCase','grid','312334oXeySx','api.browserstack.com','DEFAULT_CLUSTER_DETAILS','SUCCESS','LINK_MESSAGE','Key','grid-preprod.bsstag.com','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','error','IAM_USER_NAME','CLUSTER_DEP_STACK_NAME','connect','1041712Tmrjde','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','gridProfile','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','delete','LOG','BrowserStack-Automate-TurboScale','INFO','grid-api-devhst.bsstag.com','env','success','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','338193mtGGZy','gcp','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','api-preprod.bsstag.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLI_ARGS_REGEX','BrowserStackIAMUser','RESOURCES','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','resourceInfo','high-scale-grid-cluster','prod','ERROR','CLUSTER_AUTOSCALER_STACK_NAME','pre-prod','BROWSERSTACK_ENV','31423oADHcB','config','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-api-preprod.bsstag.com','AZURE','HELP_FOOTER_MESSAGE','DEFAULT_GRID_NAME','36KUafUw','BSTACK-ATS-CLUSTER','COMMON_HST_TAGS','GRID_URL','9lGWJmx','browserstack:service','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid.browserstack.com','CLUSTER','list','preprod','global_registry','split','create','HST_CLUSTER_TAGS','info','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BrowserStack','Value','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','TURBOSCALE_DEPLOYMENT','AWS','unknown','REDACTED','dotenv','DASHBOARD_ENDPOINT','UNKNOWN','WARNING','start','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','GCP','[REDACTED]','pre-check'];a22_0x541c=function(){return _0x590bc6;};return a22_0x541c();}const a22_0x3469a2={};a22_0x3469a2[a22_0x5b5c7c(0x183)]=a22_0x5b5c7c(0x166)+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x191)]=a22_0x5b5c7c(0x14b)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x190)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x16d)]=a22_0x5b5c7c(0x170)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x169)]={},a22_0x3469a2[a22_0x5b5c7c(0x1ab)]=a22_0x5b5c7c(0x18a)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x1a5)]=a22_0x5b5c7c(0x14d)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x17c)]=a22_0x5b5c7c(0x1a7)+this['LINK_MESSAGE'],a22_0x3469a2['stop']=a22_0x5b5c7c(0x151)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x169)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x169)][a22_0x5b5c7c(0x199)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x169)][a22_0x5b5c7c(0x1a9)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a22_0x5b5c7c(0x186)]=a22_0x3469a2,exports[a22_0x5b5c7c(0x15e)]=a22_0x5b5c7c(0x188);const a22_0x1826fb={};a22_0x1826fb[a22_0x5b5c7c(0x19d)]=a22_0x5b5c7c(0x1b1),a22_0x1826fb[a22_0x5b5c7c(0x155)]=a22_0x5b5c7c(0x1a2),a22_0x1826fb[a22_0x5b5c7c(0x1ae)]=a22_0x5b5c7c(0x16f),a22_0x1826fb[a22_0x5b5c7c(0x17b)]=a22_0x5b5c7c(0x18d),a22_0x1826fb[a22_0x5b5c7c(0x17a)]=a22_0x5b5c7c(0x176),a22_0x1826fb[a22_0x5b5c7c(0x197)]=null,exports['messageTypes']=a22_0x1826fb,exports[a22_0x5b5c7c(0x14e)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b5c7c(0x177)]=a22_0x5b5c7c(0x17f);const a22_0x116e95={};a22_0x116e95[a22_0x5b5c7c(0x182)]=a22_0x5b5c7c(0x1aa);const a22_0x9a9861={};a22_0x9a9861[a22_0x5b5c7c(0x180)]=a22_0x116e95,exports['MessageDescription']=a22_0x9a9861,exports['TRIAL_GRID_URL']=a22_0x5b5c7c(0x17d);const a22_0x48428e={};a22_0x48428e[a22_0x5b5c7c(0x168)]=a22_0x5b5c7c(0x153),a22_0x48428e['CLOUD_PROVIDER']=a22_0x5b5c7c(0x193),a22_0x48428e['REGION']='us-east-1',exports[a22_0x5b5c7c(0x19c)]=a22_0x48428e;
@@ -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_0x26bf(){const _0x47af73=['837912hSmpUg','winston','Console','events.log','File','console.info','level','path','colorize','9KWchhQ','format','createLogger','mkdirSync','debug','12265270cQJGNx','transports','846785JjbiVr','fileLogger','2472918rmknHz','log','combine','message','955813XGBxQZ','66nMJZXP','printf','109749euKiKo','48naZxci','timestamp','1521092BPNtxb','join'];a23_0x26bf=function(){return _0x47af73;};return a23_0x26bf();}const a23_0x188d91=a23_0x4904;(function(_0x1a6fdc,_0x558aac){const _0x1fbe3e=a23_0x4904,_0x34f829=_0x1a6fdc();while(!![]){try{const _0x26c553=-parseInt(_0x1fbe3e(0x14a))/0x1+-parseInt(_0x1fbe3e(0x14b))/0x2*(-parseInt(_0x1fbe3e(0x14d))/0x3)+parseInt(_0x1fbe3e(0x150))/0x4+parseInt(_0x1fbe3e(0x144))/0x5*(-parseInt(_0x1fbe3e(0x14e))/0x6)+parseInt(_0x1fbe3e(0x146))/0x7+-parseInt(_0x1fbe3e(0x152))/0x8*(parseInt(_0x1fbe3e(0x13d))/0x9)+parseInt(_0x1fbe3e(0x142))/0xa;if(_0x26c553===_0x558aac)break;else _0x34f829['push'](_0x34f829['shift']());}catch(_0x4b13cd){_0x34f829['push'](_0x34f829['shift']());}}}(a23_0x26bf,0xb7921));const winston=require(a23_0x188d91(0x153)),fs=require('fs'),path=require(a23_0x188d91(0x159)),logDir=a23_0x188d91(0x147);function a23_0x4904(_0x46b482,_0x9b2f35){const _0x26bf44=a23_0x26bf();return a23_0x4904=function(_0x490450,_0x4efd6a){_0x490450=_0x490450-0x13c;let _0x37564f=_0x26bf44[_0x490450];return _0x37564f;},a23_0x4904(_0x46b482,_0x9b2f35);}!fs['existsSync'](logDir)&&fs[a23_0x188d91(0x140)](logDir);const a23_0x2ad3d8={};a23_0x2ad3d8[a23_0x188d91(0x13e)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x9a2aeb={};a23_0x9a2aeb[a23_0x188d91(0x158)]=!![];const a23_0x297d79={};a23_0x297d79['name']=a23_0x188d91(0x157),exports['logger']=new winston['createLogger']({'format':winston[a23_0x188d91(0x13e)][a23_0x188d91(0x148)](winston[a23_0x188d91(0x13e)][a23_0x188d91(0x14f)](a23_0x2ad3d8),winston['format'][a23_0x188d91(0x13c)](a23_0x9a2aeb),winston[a23_0x188d91(0x13e)][a23_0x188d91(0x14c)](_0x97ad04=>_0x97ad04[a23_0x188d91(0x14f)]+'\x20-\x20'+_0x97ad04['level']+':\x20'+_0x97ad04[a23_0x188d91(0x149)])),'transports':[new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x154))](a23_0x297d79),new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x156))]({'filename':path[a23_0x188d91(0x151)](logDir,a23_0x188d91(0x155)),'level':a23_0x188d91(0x141)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x156))]({'filename':path[a23_0x188d91(0x151)](logDir,'usage.log'),'level':a23_0x188d91(0x141)})]};exports[a23_0x188d91(0x145)]=new winston[(a23_0x188d91(0x13f))](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';function a24_0x888c(_0x4022e3,_0x376afe){const _0x1f0565=a24_0x1f05();return a24_0x888c=function(_0x888cac,_0x2e50dd){_0x888cac=_0x888cac-0x186;let _0x4eb5fc=_0x1f0565[_0x888cac];return _0x4eb5fc;},a24_0x888c(_0x4022e3,_0x376afe);}const a24_0x5001f5=a24_0x888c;(function(_0xdcae82,_0x3957e2){const _0x2d76b9=a24_0x888c,_0x550d72=_0xdcae82();while(!![]){try{const _0x545876=-parseInt(_0x2d76b9(0x18b))/0x1+parseInt(_0x2d76b9(0x18c))/0x2*(parseInt(_0x2d76b9(0x188))/0x3)+parseInt(_0x2d76b9(0x19a))/0x4*(parseInt(_0x2d76b9(0x196))/0x5)+parseInt(_0x2d76b9(0x187))/0x6+parseInt(_0x2d76b9(0x18d))/0x7*(-parseInt(_0x2d76b9(0x193))/0x8)+-parseInt(_0x2d76b9(0x197))/0x9*(parseInt(_0x2d76b9(0x18f))/0xa)+parseInt(_0x2d76b9(0x190))/0xb*(parseInt(_0x2d76b9(0x195))/0xc);if(_0x545876===_0x3957e2)break;else _0x550d72['push'](_0x550d72['shift']());}catch(_0x6337b1){_0x550d72['push'](_0x550d72['shift']());}}}(a24_0x1f05,0xe53f4));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x5001f5(0x199));process[a24_0x5001f5(0x18e)][a24_0x5001f5(0x191)]=0x1;function a24_0x1f05(){const _0x4f9870=['6331295dsAaBm','3114TaBmkO','usage','./config/constants','4hYbRKP','EpWwO','679596wASERh','3oyyeAS','commandDir','KTuYV','1415345TKfJXy','245910QsVsdt','3942085YkpDDR','env','45950xaPaie','374sWsIAa','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','8ISnArS','help','1060548YtrMWx'];a24_0x1f05=function(){return _0x4f9870;};return a24_0x1f05();}function run(_0x5205cf){const _0x16db37=a24_0x5001f5,_0x446744={};_0x446744[_0x16db37(0x18a)]='commands',_0x446744[_0x16db37(0x186)]=_0x16db37(0x194);const _0x5e6777=_0x446744;_0x5205cf[_0x16db37(0x198)](HELP_HEADER_MESSAGE['root'])[_0x16db37(0x189)](_0x5e6777[_0x16db37(0x18a)])['demandCommand']()[_0x16db37(0x194)](_0x5e6777['EpWwO'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x5001f5(0x192)]=run;