browserstack-node-sdk 1.50.9 → 1.50.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x4de038=a15_0x45ce;(function(_0x39a2be,_0x475d0c){const _0x13ddc3=a15_0x45ce,_0x330300=_0x39a2be();while(!![]){try{const _0x4d255c=-parseInt(_0x13ddc3(0x170))/0x1*(-parseInt(_0x13ddc3(0x144))/0x2)+-parseInt(_0x13ddc3(0x162))/0x3*(parseInt(_0x13ddc3(0x184))/0x4)+parseInt(_0x13ddc3(0x179))/0x5*(-parseInt(_0x13ddc3(0x155))/0x6)+parseInt(_0x13ddc3(0x15e))/0x7+parseInt(_0x13ddc3(0x13f))/0x8+parseInt(_0x13ddc3(0x15b))/0x9*(-parseInt(_0x13ddc3(0x152))/0xa)+parseInt(_0x13ddc3(0x150))/0xb;if(_0x4d255c===_0x475d0c)break;else _0x330300['push'](_0x330300['shift']());}catch(_0x20438f){_0x330300['push'](_0x330300['shift']());}}}(a15_0x112e,0x530d7));function a15_0x45ce(_0x556bee,_0x423083){const _0x112efc=a15_0x112e();return a15_0x45ce=function(_0x45ce0f,_0x2c8abe){_0x45ce0f=_0x45ce0f-0x134;let _0x4a0b9e=_0x112efc[_0x45ce0f];return _0x4a0b9e;},a15_0x45ce(_0x556bee,_0x423083);}function a15_0x112e(){const _0x2bd43b=['ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','allGrids','status','description','body','vYHNa','31940axXtaU','builder','mGoKQ','mFiWH','error','push','uuid','abbnc','vRUuA','../../utils/utilityMethods','statusCode','../../config/constants','cluster-name','23792igrTtX','username','list','argv','fwoTA','1438ALTFvj','bstackAccesskey','/packages/cli/get-grids','NfDeF','zJsSX','\x0aFound\x20the\x20following\x20grids:\x0a','parse','help','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','jWqeu','XhBSu','12309627tVnZmv','https://','122920GTRufD','stringify','log','809502qcRqsR','/packages/cli/get-all-grids','clusterName','Ggvox','BhPyB','type','405iujGzj','XCMyr','uizQx','809725JqXKLw','usage','exit','INFO','78ovjmOq','ghQMb','MZVYT','VUGxt','grids','running','requestId','boolean','init-not-called','HqiFs','password','stack','Browserstack','server-error','748RqNYhY','NUEmF','xzese','MCsvH','desc','options','queued','ezZCG','command','25RHbJNb','IBCjS','name'];a15_0x112e=function(){return _0x2bd43b;};return a15_0x112e();}const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0x4de038(0x138)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4de038(0x13d)),{getCredentialsPath,getAuthHeader}=require(a15_0x4de038(0x13b)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x4de038(0x178)]=a15_0x4de038(0x166),exports[a15_0x4de038(0x174)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x4de038(0x185)]=function(_0x454a61){const _0x22ec91=a15_0x4de038,_0x4ba7c5={};_0x4ba7c5[_0x22ec91(0x165)]=_0x22ec91(0x17e),_0x4ba7c5[_0x22ec91(0x164)]=_0x22ec91(0x169),_0x4ba7c5[_0x22ec91(0x15c)]='help';const _0x3b7d22=_0x4ba7c5,_0x406d75={};_0x406d75[_0x22ec91(0x181)]=_0x3b7d22[_0x22ec91(0x165)],_0x406d75[_0x22ec91(0x15a)]=_0x3b7d22['MZVYT'];const _0x4c05fa={};return _0x4c05fa['all-grids']=_0x406d75,_0x454a61[_0x22ec91(0x15f)](HELP_HEADER_MESSAGE[_0x22ec91(0x141)][_0x22ec91(0x14c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x22ec91(0x175)](_0x4c05fa)[_0x22ec91(0x14b)](_0x3b7d22['XCMyr'])[_0x22ec91(0x142)];},exports['handler']=async function(_0x1c2ab8){const _0x11958e=a15_0x4de038,_0x5fc64f={'ezZCG':function(_0x4b6dfa){return _0x4b6dfa();},'HqiFs':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Ggvox':function(_0x1f0ebb,_0x32fc9d,_0x4ad8ed,_0x325f22,_0x112ddd,_0x4d028e,_0x11a044){return _0x1f0ebb(_0x32fc9d,_0x4ad8ed,_0x325f22,_0x112ddd,_0x4d028e,_0x11a044);},'XhBSu':'list-grids-called','fwoTA':_0x11958e(0x16a),'zJsSX':function(_0xd0bda8){return _0xd0bda8();},'tTeII':'GET','vRUuA':function(_0x386bc4,_0x1a8ee1,_0x198c7c){return _0x386bc4(_0x1a8ee1,_0x198c7c);},'BhPyB':function(_0x11a8b7,_0x1e00da){return _0x11a8b7!==_0x1e00da;},'mFiWH':function(_0xa3cc94,_0x416fff){return _0xa3cc94===_0x416fff;},'vYHNa':_0x11958e(0x149),'ghQMb':'grid-id','abbnc':'grid-name','ABmle':'status','xzese':_0x11958e(0x167),'jWqeu':_0x11958e(0x176),'uTrxF':_0x11958e(0x13e),'EosuO':function(_0x5b1206,_0x1d9623){return _0x5b1206(_0x1d9623);},'NUEmF':function(_0x158621,_0x3428d0){return _0x158621===_0x3428d0;},'uizQx':_0x11958e(0x17d),'NfDeF':function(_0x1f2f0e,_0x3c8add,_0x29c5fc,_0x57b65f,_0x39f740,_0x1dd6b6,_0x37ac0b){return _0x1f2f0e(_0x3c8add,_0x29c5fc,_0x57b65f,_0x39f740,_0x1dd6b6,_0x37ac0b);},'mGoKQ':'unauthorised','MCsvH':_0x11958e(0x16f),'IBCjS':'unknown-error'};try{global_registry[_0x11958e(0x168)]=_0x5fc64f[_0x11958e(0x177)](uuidv4);!fs['existsSync'](_0x5fc64f[_0x11958e(0x177)](getCredentialsPath))&&(console[_0x11958e(0x136)](_0x5fc64f[_0x11958e(0x16b)]),await _0x5fc64f[_0x11958e(0x158)](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes[_0x11958e(0x17c)],_0x5fc64f[_0x11958e(0x143)],null,_0x1c2ab8),process[_0x11958e(0x160)](0x1));const _0x379118=JSON[_0x11958e(0x14a)](fs['readFileSync'](_0x5fc64f[_0x11958e(0x148)](getCredentialsPath)));let _0x4c10bf=_0x11958e(0x151)+AG_API_URL+_0x11958e(0x146);_0x1c2ab8[_0x11958e(0x17f)]&&(_0x4c10bf='https://'+AG_API_URL+_0x11958e(0x156));const _0x189dd3={'method':_0x5fc64f['tTeII'],'headers':_0x5fc64f['vRUuA'](getAuthHeader,_0x379118[_0x11958e(0x16e)]['username'],_0x379118[_0x11958e(0x16e)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x379118['Browserstack'][_0x11958e(0x140)],global_registry[_0x11958e(0x145)]=_0x379118[_0x11958e(0x16e)][_0x11958e(0x16c)],_0x5fc64f['Ggvox'](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes[_0x11958e(0x161)],null,null,_0x1c2ab8);const _0x5b6385=await _0x5fc64f[_0x11958e(0x13a)](got,_0x4c10bf,_0x189dd3);if(_0x5fc64f[_0x11958e(0x159)](_0x5b6385,null)&&_0x5fc64f[_0x11958e(0x159)](_0x5b6385,undefined)&&_0x5fc64f[_0x11958e(0x135)](_0x5b6385[_0x11958e(0x13c)],0xc8)){const _0x708303=JSON[_0x11958e(0x14a)](_0x5b6385[_0x11958e(0x182)]);console['log'](_0x5fc64f[_0x11958e(0x183)]);const _0xbe863d=[];_0xbe863d[_0x11958e(0x137)]([_0x5fc64f[_0x11958e(0x163)],_0x5fc64f[_0x11958e(0x139)],_0x5fc64f['ABmle'],_0x5fc64f[_0x11958e(0x172)],_0x5fc64f[_0x11958e(0x14e)],_0x5fc64f['uTrxF']]),_0x708303['forEach'](_0x478611=>{const _0x328ef0=_0x11958e;_0xbe863d['push']([_0x478611['id'],_0x478611[_0x328ef0(0x17b)],_0x478611[_0x328ef0(0x180)],_0x478611[_0x328ef0(0x167)],_0x478611[_0x328ef0(0x176)],_0x478611[_0x328ef0(0x157)]]);}),console[_0x11958e(0x154)](_0x5fc64f['EosuO'](table,_0xbe863d)),process['exit'](0x0);}_0x5fc64f[_0x11958e(0x171)](_0x5b6385['statusCode'],0x191)&&(console['error'](_0x5fc64f[_0x11958e(0x15d)]),await _0x5fc64f[_0x11958e(0x147)](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes[_0x11958e(0x17c)],_0x5fc64f[_0x11958e(0x134)],null,_0x1c2ab8),process['exit'](0x1)),console[_0x11958e(0x136)](_0x11958e(0x14d)+JSON[_0x11958e(0x153)](_0x5b6385)),await _0x5fc64f['Ggvox'](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f['XhBSu'],messageTypes[_0x11958e(0x17c)],_0x5fc64f[_0x11958e(0x173)],_0x5b6385,_0x1c2ab8),process['exit'](0x1);}catch(_0x9e163){console[_0x11958e(0x136)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x9e163[_0x11958e(0x16d)]),await _0x5fc64f['Ggvox'](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes['ERROR'],_0x5fc64f[_0x11958e(0x17a)],_0x9e163,_0x1c2ab8),process[_0x11958e(0x160)](0x1);}};
1
+ const a15_0xf7b45f=a15_0x386a;(function(_0x2ec1e0,_0x82e3c0){const _0x14476c=a15_0x386a,_0x2a4c8b=_0x2ec1e0();while(!![]){try{const _0x9e2320=parseInt(_0x14476c(0xc2))/0x1*(parseInt(_0x14476c(0xb7))/0x2)+-parseInt(_0x14476c(0xca))/0x3+-parseInt(_0x14476c(0x10a))/0x4+parseInt(_0x14476c(0xd5))/0x5+-parseInt(_0x14476c(0xd6))/0x6+-parseInt(_0x14476c(0xfb))/0x7*(-parseInt(_0x14476c(0xe1))/0x8)+parseInt(_0x14476c(0xbc))/0x9;if(_0x9e2320===_0x82e3c0)break;else _0x2a4c8b['push'](_0x2a4c8b['shift']());}catch(_0x43c801){_0x2a4c8b['push'](_0x2a4c8b['shift']());}}}(a15_0xc940,0x19708));function a15_0xc940(){const _0x4bfdbd=['WpDjy','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','SdRts','error','GET','64yGjlYo','argv','dTuGv','jLbEA','ytKEg','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grid','command','NzeET','uZqyj','https://','type','ZWNnQ','tcffm','queued','/packages/cli/get-all-grids','WHLWh','fgTSE','../../utils/instrumentationUtils','../../config/constants','builder','readFileSync','list-grids-called','forEach','clusterName','VKVCe','101647oTtwgU','Browserstack','grid-id','server-error','username','VjtVv','INFO','Zswys','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','list','handler','numDc','xvkJR','stringify','bstackUsername','91004DxgOkz','password','description','2pEHQUA','gKWgz','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','NEjBB','push','5751VfupKa','grids','\x0aFound\x20the\x20following\x20grids:\x0a','status','parse','nAEes','170873uncjHm','wDLDK','uuid','ERROR','rSeUs','name','lGrIc','all-grids','116379sLTtsS','qRANl','allGrids','statusCode','boolean','log','usage','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','desc','178610wjdADK','945948VATNdp','running','requestId','lqiAC','QERur'];a15_0xc940=function(){return _0x4bfdbd;};return a15_0xc940();}function a15_0x386a(_0x3fd9f2,_0x101101){const _0xc940b2=a15_0xc940();return a15_0x386a=function(_0x386a76,_0x1ee4da){_0x386a76=_0x386a76-0xb7;let _0x4cf0fd=_0xc940b2[_0x386a76];return _0x4cf0fd;},a15_0x386a(_0x3fd9f2,_0x101101);}const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0xf7b45f(0xc4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xf7b45f(0xf4)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0xf7b45f(0xf3));exports[a15_0xf7b45f(0xe8)]=a15_0xf7b45f(0xbd),exports[a15_0xf7b45f(0xd4)]=a15_0xf7b45f(0xe6),exports[a15_0xf7b45f(0xf5)]=function(_0x4745f6){const _0x29e2a2=a15_0xf7b45f,_0x4162d5={};_0x4162d5[_0x29e2a2(0xe4)]=_0x29e2a2(0x103),_0x4162d5[_0x29e2a2(0xba)]=_0x29e2a2(0xce),_0x4162d5[_0x29e2a2(0xfa)]='help';const _0x28a6dd=_0x4162d5,_0x4b4b7e={};_0x4b4b7e[_0x29e2a2(0x10c)]=_0x28a6dd[_0x29e2a2(0xe4)],_0x4b4b7e[_0x29e2a2(0xec)]=_0x28a6dd[_0x29e2a2(0xba)];const _0x460f22={};return _0x460f22[_0x29e2a2(0xc9)]=_0x4b4b7e,_0x4745f6[_0x29e2a2(0xd0)](HELP_HEADER_MESSAGE[_0x29e2a2(0x104)][_0x29e2a2(0xe7)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x460f22)['help'](_0x28a6dd[_0x29e2a2(0xfa)])[_0x29e2a2(0xe2)];},exports[a15_0xf7b45f(0x105)]=async function(_0xa74e86){const _0x5a121c=a15_0xf7b45f,_0x1db195={'lGrIc':function(_0x68c587){return _0x68c587();},'ytKEg':_0x5a121c(0xdc),'WHLWh':function(_0x4fd84b,_0xa1f446,_0x2affa8,_0x4cbe69,_0x4461c0,_0x513c13,_0x232052){return _0x4fd84b(_0xa1f446,_0x2affa8,_0x4cbe69,_0x4461c0,_0x513c13,_0x232052);},'rSeUs':_0x5a121c(0xf7),'qRANl':'init-not-called','nAEes':function(_0x7766e3){return _0x7766e3();},'Zswys':_0x5a121c(0xe0),'SdRts':function(_0x4048b5,_0x1e201c,_0x3645c5){return _0x4048b5(_0x1e201c,_0x3645c5);},'soFVU':function(_0x60d2f5,_0x17d3ff,_0x3ae75a,_0x2ae5a1,_0x509408,_0x436339,_0x388fbe){return _0x60d2f5(_0x17d3ff,_0x3ae75a,_0x2ae5a1,_0x509408,_0x436339,_0x388fbe);},'VjtVv':function(_0x2e22ee,_0x21a174){return _0x2e22ee!==_0x21a174;},'NzeET':function(_0x3d63de,_0x5b4fa2){return _0x3d63de===_0x5b4fa2;},'PiQZT':_0x5a121c(0xbe),'ZWNnQ':_0x5a121c(0xfd),'WpDjy':'grid-name','VgDDO':_0x5a121c(0xbf),'uZqyj':_0x5a121c(0xd7),'fgTSE':'queued','numDc':'cluster-name','dTuGv':function(_0x520d87,_0x15f125){return _0x520d87(_0x15f125);},'gKWgz':_0x5a121c(0xd2),'tcffm':function(_0x47fd3c,_0x22dc63,_0x1e49fd,_0x2e67ea,_0x4974c9,_0x4f9be5,_0x577ced){return _0x47fd3c(_0x22dc63,_0x1e49fd,_0x2e67ea,_0x4974c9,_0x4f9be5,_0x577ced);},'wDLDK':'unauthorised','lqiAC':function(_0x151534,_0x49c313,_0x436991,_0x2169ff,_0x53934d,_0x66f20c,_0x5c556d){return _0x151534(_0x49c313,_0x436991,_0x2169ff,_0x53934d,_0x66f20c,_0x5c556d);},'lqBIO':_0x5a121c(0xfe),'QERur':function(_0xe3a35b,_0x1a8831,_0x585906,_0x5d66bd,_0x20aba4,_0x44ef65,_0x3b71a2){return _0xe3a35b(_0x1a8831,_0x585906,_0x5d66bd,_0x20aba4,_0x44ef65,_0x3b71a2);},'xvkJR':'unknown-error'};try{global_registry[_0x5a121c(0xd8)]=_0x1db195[_0x5a121c(0xc8)](uuidv4);!fs['existsSync'](_0x1db195[_0x5a121c(0xc8)](getCredentialsPath))&&(console[_0x5a121c(0xdf)](_0x1db195[_0x5a121c(0xe5)]),await _0x1db195[_0x5a121c(0xf1)](sendInstrumentationEvent,_0xa74e86,_0x1db195[_0x5a121c(0xc6)],messageTypes[_0x5a121c(0xc5)],_0x1db195[_0x5a121c(0xcb)],null,_0xa74e86),process['exit'](0x1));const _0x139a43=JSON[_0x5a121c(0xc0)](fs[_0x5a121c(0xf6)](_0x1db195[_0x5a121c(0xc1)](getCredentialsPath)));let _0x44cf65=_0x5a121c(0xeb)+AG_API_URL+'/packages/cli/get-grids';_0xa74e86[_0x5a121c(0xcc)]&&(_0x44cf65=_0x5a121c(0xeb)+AG_API_URL+_0x5a121c(0xf0));const _0x5deb43={'method':_0x1db195[_0x5a121c(0x102)],'headers':_0x1db195[_0x5a121c(0xde)](getAuthHeader,_0x139a43[_0x5a121c(0xfc)][_0x5a121c(0xff)],_0x139a43[_0x5a121c(0xfc)][_0x5a121c(0x10b)]),'throwHttpErrors':![]};global_registry[_0x5a121c(0x109)]=_0x139a43['Browserstack'][_0x5a121c(0xff)],global_registry[_0x5a121c(0xd1)]=_0x139a43['Browserstack']['password'],_0x1db195['soFVU'](sendInstrumentationEvent,_0xa74e86,_0x1db195[_0x5a121c(0xc6)],messageTypes[_0x5a121c(0x101)],null,null,_0xa74e86);const _0x1ee1df=await _0x1db195[_0x5a121c(0xde)](got,_0x44cf65,_0x5deb43);if(_0x1db195[_0x5a121c(0x100)](_0x1ee1df,null)&&_0x1db195[_0x5a121c(0x100)](_0x1ee1df,undefined)&&_0x1db195['NzeET'](_0x1ee1df[_0x5a121c(0xcd)],0xc8)){const _0x42d93b=JSON[_0x5a121c(0xc0)](_0x1ee1df[_0x5a121c(0xdd)]);console['log'](_0x1db195['PiQZT']);const _0x258f0a=[];_0x258f0a[_0x5a121c(0xbb)]([_0x1db195[_0x5a121c(0xed)],_0x1db195[_0x5a121c(0xdb)],_0x1db195['VgDDO'],_0x1db195[_0x5a121c(0xea)],_0x1db195[_0x5a121c(0xf2)],_0x1db195[_0x5a121c(0x106)]]),_0x42d93b[_0x5a121c(0xf8)](_0x481fbf=>{const _0x523fb3=_0x5a121c;_0x258f0a[_0x523fb3(0xbb)]([_0x481fbf['id'],_0x481fbf[_0x523fb3(0xc7)],_0x481fbf[_0x523fb3(0xbf)],_0x481fbf['running'],_0x481fbf[_0x523fb3(0xef)],_0x481fbf[_0x523fb3(0xf9)]]);}),console[_0x5a121c(0xcf)](_0x1db195[_0x5a121c(0xe3)](table,_0x258f0a)),process[_0x5a121c(0xd3)](0x0);}_0x1db195[_0x5a121c(0xe9)](_0x1ee1df[_0x5a121c(0xcd)],0x191)&&(console[_0x5a121c(0xdf)](_0x1db195[_0x5a121c(0xb8)]),await _0x1db195[_0x5a121c(0xee)](sendInstrumentationEvent,_0xa74e86,_0x1db195[_0x5a121c(0xc6)],messageTypes[_0x5a121c(0xc5)],_0x1db195[_0x5a121c(0xc3)],null,_0xa74e86),process[_0x5a121c(0xd3)](0x1)),console[_0x5a121c(0xdf)](_0x5a121c(0xb9)+JSON[_0x5a121c(0x108)](_0x1ee1df)),await _0x1db195[_0x5a121c(0xd9)](sendInstrumentationEvent,_0xa74e86,_0x1db195['rSeUs'],messageTypes[_0x5a121c(0xc5)],_0x1db195['lqBIO'],_0x1ee1df,_0xa74e86),process[_0x5a121c(0xd3)](0x1);}catch(_0x28cfea){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x28cfea['stack']),await _0x1db195[_0x5a121c(0xda)](sendInstrumentationEvent,_0xa74e86,_0x1db195[_0x5a121c(0xc6)],messageTypes[_0x5a121c(0xc5)],_0x1db195[_0x5a121c(0x107)],_0x28cfea,_0xa74e86),process[_0x5a121c(0xd3)](0x1);}};
@@ -1 +1 @@
1
- const a16_0xc7b2ef=a16_0x2256;function a16_0x2256(_0x471c0b,_0xc52175){const _0x860307=a16_0x8603();return a16_0x2256=function(_0x225651,_0x193741){_0x225651=_0x225651-0x78;let _0x12f1ef=_0x860307[_0x225651];return _0x12f1ef;},a16_0x2256(_0x471c0b,_0xc52175);}(function(_0x1e6cd5,_0x5939b3){const _0x5a8bbd=a16_0x2256,_0x3ca99c=_0x1e6cd5();while(!![]){try{const _0x2a2fe0=-parseInt(_0x5a8bbd(0x81))/0x1*(parseInt(_0x5a8bbd(0x7b))/0x2)+parseInt(_0x5a8bbd(0x79))/0x3*(parseInt(_0x5a8bbd(0x7d))/0x4)+parseInt(_0x5a8bbd(0x8c))/0x5+parseInt(_0x5a8bbd(0x89))/0x6+parseInt(_0x5a8bbd(0x8a))/0x7*(parseInt(_0x5a8bbd(0x8b))/0x8)+-parseInt(_0x5a8bbd(0x8d))/0x9+-parseInt(_0x5a8bbd(0x86))/0xa;if(_0x2a2fe0===_0x5939b3)break;else _0x3ca99c['push'](_0x3ca99c['shift']());}catch(_0x50274b){_0x3ca99c['push'](_0x3ca99c['shift']());}}}(a16_0x8603,0x57df7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xc7b2ef(0x7f));function a16_0x8603(){const _0x48fc63=['demandCommand','654215eYcawD','recommendCommands','handler','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','859220TntZnL','pre_check','EMjBB','1812564WlNwne','1225WzkfWb','27320pYDrKe','824465fNqobi','842472xgmByt','precheck_commands','epilogue','UxVab','desc','commandDir','180XbuXUW','pre-check','2IYxUdP','strict','8604YGELNc','command','../config/constants'];a16_0x8603=function(){return _0x48fc63;};return a16_0x8603();}exports[a16_0xc7b2ef(0x7e)]=a16_0xc7b2ef(0x7a),exports[a16_0xc7b2ef(0x91)]=a16_0xc7b2ef(0x84),exports['builder']=function(_0x627445){const _0x1d4eb1=a16_0xc7b2ef,_0x266b70={};_0x266b70[_0x1d4eb1(0x88)]=_0x1d4eb1(0x8e),_0x266b70['UxVab']=_0x1d4eb1(0x85);const _0x201976=_0x266b70;return _0x627445['usage'](HELP_HEADER_MESSAGE[_0x1d4eb1(0x87)])[_0x1d4eb1(0x8f)](HELP_FOOTER_MESSAGE)[_0x1d4eb1(0x78)](_0x201976['EMjBB'])[_0x1d4eb1(0x80)]()[_0x1d4eb1(0x82)]()[_0x1d4eb1(0x7c)]()['help'](_0x201976[_0x1d4eb1(0x90)]);},exports[a16_0xc7b2ef(0x83)]=function(_0x50c9eb){};
1
+ const a16_0x41c6f4=a16_0x2fdb;function a16_0x3a5d(){const _0x139d18=['epilogue','pre_check','2562880GxOFGf','sQRoU','precheck_commands','36fBuwVu','help','builder','2101565qJiTpF','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','desc','4aiPtFK','24jsHfKW','9039093fTHcXC','handler','pre-check','strict','YLhNf','962283TkuGVj','commandDir','1779168fGwnTq','32861860fqmMnZ','demandCommand','427801VqgEIU'];a16_0x3a5d=function(){return _0x139d18;};return a16_0x3a5d();}(function(_0x15f3d1,_0x1e8aeb){const _0x12463d=a16_0x2fdb,_0x29e362=_0x15f3d1();while(!![]){try{const _0x471bcd=-parseInt(_0x12463d(0x17b))/0x1*(parseInt(_0x12463d(0x187))/0x2)+-parseInt(_0x12463d(0x176))/0x3+parseInt(_0x12463d(0x178))/0x4+-parseInt(_0x12463d(0x184))/0x5*(parseInt(_0x12463d(0x188))/0x6)+-parseInt(_0x12463d(0x189))/0x7+parseInt(_0x12463d(0x17e))/0x8*(parseInt(_0x12463d(0x181))/0x9)+parseInt(_0x12463d(0x179))/0xa;if(_0x471bcd===_0x1e8aeb)break;else _0x29e362['push'](_0x29e362['shift']());}catch(_0x3db9e3){_0x29e362['push'](_0x29e362['shift']());}}}(a16_0x3a5d,0xd2d10));function a16_0x2fdb(_0x1e2885,_0x35ba9c){const _0x3a5d97=a16_0x3a5d();return a16_0x2fdb=function(_0x2fdbc8,_0x19f33e){_0x2fdbc8=_0x2fdbc8-0x172;let _0x1ae9b2=_0x3a5d97[_0x2fdbc8];return _0x1ae9b2;},a16_0x2fdb(_0x1e2885,_0x35ba9c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x41c6f4(0x173),exports[a16_0x41c6f4(0x186)]=a16_0x41c6f4(0x185),exports[a16_0x41c6f4(0x183)]=function(_0x21ec0e){const _0x36026b=a16_0x41c6f4,_0x3961de={};_0x3961de[_0x36026b(0x17f)]=_0x36026b(0x180),_0x3961de[_0x36026b(0x175)]=_0x36026b(0x182);const _0xb835c3=_0x3961de;return _0x21ec0e['usage'](HELP_HEADER_MESSAGE[_0x36026b(0x17d)])[_0x36026b(0x17c)](HELP_FOOTER_MESSAGE)[_0x36026b(0x177)](_0xb835c3[_0x36026b(0x17f)])[_0x36026b(0x17a)]()['recommendCommands']()[_0x36026b(0x174)]()[_0x36026b(0x182)](_0xb835c3['YLhNf']);},exports[a16_0x41c6f4(0x172)]=function(_0x3f15cb){};
@@ -1 +1 @@
1
- const a17_0x588aba=a17_0x7cbb;(function(_0xe438d9,_0x48b9a7){const _0x2b927b=a17_0x7cbb,_0xd0915a=_0xe438d9();while(!![]){try{const _0x379827=parseInt(_0x2b927b(0x149))/0x1+-parseInt(_0x2b927b(0x89))/0x2+-parseInt(_0x2b927b(0xd8))/0x3*(parseInt(_0x2b927b(0x154))/0x4)+-parseInt(_0x2b927b(0x124))/0x5+parseInt(_0x2b927b(0x16d))/0x6*(parseInt(_0x2b927b(0x113))/0x7)+-parseInt(_0x2b927b(0x118))/0x8+-parseInt(_0x2b927b(0x146))/0x9*(-parseInt(_0x2b927b(0x8f))/0xa);if(_0x379827===_0x48b9a7)break;else _0xd0915a['push'](_0xd0915a['shift']());}catch(_0x3c2fc4){_0xd0915a['push'](_0xd0915a['shift']());}}}(a17_0x21aa,0x613b5));const fs=require('fs'),ws=require('ws'),got=require(a17_0x588aba(0xc2)),{v4:uuidv4}=require(a17_0x588aba(0x173)),ReconnectingWebSocket=require(a17_0x588aba(0xf2)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x588aba(0xfb)),{logger}=require(a17_0x588aba(0x179)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x588aba(0xf4)),webSocketUtils=require(a17_0x588aba(0xc1)),{sendInstrumentationEvent}=require(a17_0x588aba(0xf5));exports['command']=a17_0x588aba(0x12c),exports[a17_0x588aba(0xc7)]=a17_0x588aba(0x9a),exports[a17_0x588aba(0x12e)]=function(_0x5997f8){const _0x27ca50=a17_0x588aba,_0x2cf09e={};_0x2cf09e[_0x27ca50(0x12b)]=_0x27ca50(0x84),_0x2cf09e[_0x27ca50(0x135)]=_0x27ca50(0xcd),_0x2cf09e[_0x27ca50(0x8c)]=_0x27ca50(0x148),_0x2cf09e['Flbrg']=_0x27ca50(0xb3),_0x2cf09e[_0x27ca50(0x166)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2cf09e['CAVoS']=_0x27ca50(0x110);const _0x99b08f=_0x2cf09e,_0x2a803e={};_0x2a803e[_0x27ca50(0x133)]=_0x99b08f['Ukyin'],_0x2a803e['type']=_0x99b08f[_0x27ca50(0x135)];const _0x5c5554={};_0x5c5554[_0x27ca50(0x133)]=_0x99b08f[_0x27ca50(0x8c)],_0x5c5554[_0x27ca50(0x103)]=_0x99b08f['eqCGe'];const _0x439ea7={};_0x439ea7[_0x27ca50(0x133)]=_0x99b08f[_0x27ca50(0x152)],_0x439ea7[_0x27ca50(0x103)]=_0x99b08f['eqCGe'];const _0x53a200={};_0x53a200['description']=_0x99b08f[_0x27ca50(0x166)],_0x53a200[_0x27ca50(0x103)]=_0x99b08f[_0x27ca50(0x135)];const _0x1bb27c={};return _0x1bb27c['cluster-name']=_0x2a803e,_0x1bb27c['cloud-provider']=_0x5c5554,_0x1bb27c[_0x27ca50(0x138)]=_0x439ea7,_0x1bb27c[_0x27ca50(0xba)]=_0x53a200,_0x5997f8[_0x27ca50(0x104)](HELP_HEADER_MESSAGE[_0x27ca50(0xe2)])[_0x27ca50(0x163)](HELP_FOOTER_MESSAGE)[_0x27ca50(0x141)](_0x1bb27c)[_0x27ca50(0x110)](_0x99b08f[_0x27ca50(0xc6)])[_0x27ca50(0xb9)];};function a17_0x21aa(){const _0x5a7e06=['AxYfo','stringify','QbDdj','stack\x20trace\x20','yrALt','pre-check','buxLF','Error\x20Details:\x0a','XkYcW','tfqTi','parse','isTrialGridAccessible','DLlHl','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments:\x20','KaZQf','utf-8','xmCmf','FHptX','argv','grid-profile','ZayoU','`\x20already\x20exists','TFCWJ','DpktC','clusterRegion','pre-check-failed','../../utils/webSocketUtils','got','mLhRo','iLOcO','ewuwu','CAVoS','desc','LtPZe','XNISK','MOzYP','hnDpi','oxRNz','string','ZeYzQ','pre-check-grid-called','error\x20stack\x20:\x20','zpbCG','\x20error\x20:\x20','tjSyu','password','\x20===\x0a\x0a','SZakU','<PasswordPlaceholder>','21zMsnZk','Pre-check\x20running\x20for\x20Cloud\x20-\x20','https://','<UsernamePlaceholder>','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','AHZwr','TmmOF','HqhmW','bjuXp','PQLIC','pre_check','getUTCFullYear','cloudProvider','HWWyH','yfLhE','mimEV','VYkqA','pmWES',']\x20status\x20:\x20','CLOUD_PROVIDER','ikWVh','replace','hpLqc','smSun','WLjAm','error','reconnecting-websocket','ERROR','../../cloudproviders/utils','../../utils/instrumentationUtils','===\x20Precheck\x20Report\x20-\x20','length','readFileSync','BzWGQ','USUvc','../../utils/utilityMethods','.txt','Cluster\x20','cloud-provider','YrAUL','name','pYhAT','\x20\x20Message:\x20','type','usage','ocHnP','PalvA','ILEvi','LkSbl','\x20\x20Stack:\x20','dummy-grid','UKkcI','vfBYo','cloud-provider-not-supported','XRtBc','Status:\x20','help','ihJUL','tfPuF','3868501RFnycm','handler','RwBrB','TqMwX','code','505000peLmKc','log/report_','PHZOC','unable\x20to\x20verify\x20if\x20cluster\x20`','push','Success','qYfxa','lDbEa','`\x20is\x20present\x20in\x20region\x20`','Message:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','split','2571675qrlvyt','Failure','pJSQy','JYtka','biWtd','stack','existsSync','Ukyin','grid','ZwYAv','builder','NvgLe','HhRhO','message','Kmwif','description','forEach','eqCGe','xmjPe','CRzrh','region','sendEventToBackend','YGniw','username','hsXTl','connectionTimeout','kwdLJ','1|2|4|3|0','fcNgf','options','EYneI','LOG','is\x20already\x20present','isbhD','501219TwOgDO','XpxIv','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','599732nVoyWT','init','feMbj','.\x20Please\x20provide\x20all\x20required\x20arguments.','exit','header','rwCKr','Cluster\x20`','join','Flbrg','data','67748IErWid','KKumW','bstackUsername','WebSocket','INFO','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BCYFy','Report\x20saved\x20in\x20','body','yUEnV','GET','toolInstalledResp','IVYSX','authHeader','epilogue','isTls1_2_SUPPORTED','\x20region\x20-\x20','uslbc','cvLLz','User\x20Access','KYVBX','will\x20be\x20created','PVYny','RQzmn','6oBNpMp','uDPUe','uPwXy','bKvuA','iPaAS','XTuhO','uuid','tSnqV','dUkuY','gzVDW','Tool\x20Installed','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','../../config/logger','ajxPa','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','clusterName','toLowerCase','fMFDn','TLSv1_2_client_method','axMSc','Browserstack','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20data\x20:\x20','\x20\x20Code:\x20','requestId','cluster-name','561718bcDAHB','N/A','bWRyf','ldLDy','info','DhCbb','40kIMxyT','isCliToolInstalled','dcMhO','BVzOP','Invalid\x20input.\x20grid\x20profiles:\x20','Whitelisted\x20browserstack','bstackAccesskey','gridProfile','pre-check-grid-profile-empty','response','OBELK','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','kgNkr','nDMHH','enJCV','method','Failed\x20in\x20pre-check!\x20Error:\x20','QkPvw','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','GBsyo','tSEKw','TnbOS','debug'];a17_0x21aa=function(){return _0x5a7e06;};return a17_0x21aa();}async function inputValidation(_0x2d52b4,_0xcb5f08){const _0x34ec2e=a17_0x588aba,_0x363088={'ocHnP':_0x34ec2e(0x144),'zpbCG':_0x34ec2e(0x16a),'iPaAS':'error','FHptX':'region','UKkcI':_0x34ec2e(0xa1),'USUvc':_0x34ec2e(0xad),'XNISK':_0x34ec2e(0x8a),'biWtd':_0x34ec2e(0x84),'KYVBX':'string','GBaSv':_0x34ec2e(0x148),'tSEKw':_0x34ec2e(0xb3),'hFqJd':_0x34ec2e(0x122),'NVERt':_0x34ec2e(0x110),'LkSbl':_0x34ec2e(0xfe),'QkPvw':function(_0x307a39,_0x17234a){return _0x307a39+_0x17234a;},'isbhD':_0x34ec2e(0x11d),'pYhAT':_0x34ec2e(0x125),'NvgLe':function(_0x3afe51,_0x2be132){return _0x3afe51||_0x2be132;},'fcNgf':'cluster-name','JYtka':function(_0x5e3667,_0x48fb16){return _0x5e3667!==_0x48fb16;},'kgNkr':_0x34ec2e(0x82),'mimEV':function(_0x388159,_0x20bcef){return _0x388159===_0x20bcef;},'ikWVh':_0x34ec2e(0xcb),'uGOtN':_0x34ec2e(0x115),'dcMhO':_0x34ec2e(0x16c),'pBjml':'CYqxI','PQLIC':function(_0x521252,_0x1238a8){return _0x521252===_0x1238a8;},'bhWOb':_0x34ec2e(0xe9),'HWWyH':_0x34ec2e(0xac),'ewuwu':function(_0x9223cd,_0x4ace4b){return _0x9223cd!==_0x4ace4b;},'AxYfo':'tZqtS','XTuhO':function(_0x1e82c9,_0x3d6355){return _0x1e82c9>_0x3d6355;},'Cbuom':_0x34ec2e(0x17e),'IVYSX':_0x34ec2e(0xb7),'JOoKi':function(_0x2f9256,_0x4a8b11,_0x54adb1,_0x48edbe,_0x1d2716,_0x1db7d3,_0x294166,_0x51bfd1){return _0x2f9256(_0x4a8b11,_0x54adb1,_0x48edbe,_0x1d2716,_0x1db7d3,_0x294166,_0x51bfd1);},'XpxIv':'pre-check-grid-called','XRtBc':'pre-check-cluster-args-not-passed','smSun':_0x34ec2e(0xce),'uPwXy':_0x34ec2e(0x17b),'kwdLJ':function(_0x55ae1e,_0xb81766,_0x1b8e1c,_0x36ae78,_0x18d342,_0x1b32cf,_0x34350c,_0x2c461b){return _0x55ae1e(_0xb81766,_0x1b8e1c,_0x36ae78,_0x18d342,_0x1b32cf,_0x34350c,_0x2c461b);},'afGXj':_0x34ec2e(0x10d),'OBELK':_0x34ec2e(0xe0),'tfqTi':function(_0x4cf97d,_0x26137b){return _0x4cf97d===_0x26137b;},'pJSQy':_0x34ec2e(0x9c),'HSiAA':_0x34ec2e(0xe6),'tjSyu':_0x34ec2e(0x15f),'YGniw':function(_0x17bf46,_0x2d9348,_0x5e357c){return _0x17bf46(_0x2d9348,_0x5e357c);},'HeWvh':function(_0x3de7f2,_0xb89b75,_0x4a3e58,_0x5b0321,_0x489172,_0x5dbc5d){return _0x3de7f2(_0xb89b75,_0x4a3e58,_0x5b0321,_0x489172,_0x5dbc5d);},'SZakU':_0x34ec2e(0xab),'mLhRo':'grid-profile','hsXTl':function(_0x29ccb0,_0x1397a5){return _0x29ccb0===_0x1397a5;},'yrALt':_0x34ec2e(0x130),'CRzrh':function(_0x5791cb,_0x3075e5){return _0x5791cb(_0x3075e5);},'DhCbb':'nldtJ','feMbj':_0x34ec2e(0x11f),'qixRS':function(_0x49ffb2,_0xaffaf9,_0x17eab7,_0x53c3a3,_0x2f7964,_0x11be6b,_0x589970,_0x3d6194){return _0x49ffb2(_0xaffaf9,_0x17eab7,_0x53c3a3,_0x2f7964,_0x11be6b,_0x589970,_0x3d6194);},'VYkqA':_0x34ec2e(0x97),'vfBYo':_0x34ec2e(0xc8),'PVYny':_0x34ec2e(0xb5),'MEPJq':_0x34ec2e(0x92),'DpktC':'Grid\x20profile\x20fetched\x20for\x20pre-check','hpLqc':'gyPid','AHZwr':function(_0x5be0ad,_0x38e12c){return _0x5be0ad===_0x38e12c;},'ILEvi':'yoWOk','bWRyf':_0x34ec2e(0x174),'ajxPa':function(_0x36cae1,_0x57d811,_0x167fd9,_0x1e651d,_0x274426,_0x40831b,_0x516a91,_0x2c844a){return _0x36cae1(_0x57d811,_0x167fd9,_0x1e651d,_0x274426,_0x40831b,_0x516a91,_0x2c844a);}};let _0x3f0627;try{if(_0x363088[_0x34ec2e(0x127)](_0x363088[_0x34ec2e(0x9b)],_0x363088[_0x34ec2e(0x9b)]))_0x5c11a4+=_0x34ec2e(0xfd)+_0x72aef2[_0x34ec2e(0x17c)]+'\x20'+(_0x560365?_0x363088[_0x34ec2e(0x105)]:_0x363088[_0x34ec2e(0xd1)])+'\x0a\x0a';else{if(_0x2d52b4['clusterName']||_0x2d52b4[_0x34ec2e(0xe4)]||_0x2d52b4['region']){if(_0x363088[_0x34ec2e(0xe7)](_0x363088[_0x34ec2e(0xec)],_0x363088['uGOtN'])){const _0x15b5e4={};_0x15b5e4['type']=_0x39fea2['LOG'],_0x15b5e4[_0x34ec2e(0x131)]=_0xb93aa7,_0x301b30[_0x34ec2e(0x139)](_0x52b7fd,_0x15b5e4,_0x363088[_0x34ec2e(0x171)],!![]);}else{const _0x444b9e=[];!_0x2d52b4[_0x34ec2e(0x17c)]&&(_0x363088['JYtka'](_0x363088[_0x34ec2e(0x91)],_0x363088['pBjml'])?_0x444b9e['push'](_0x363088[_0x34ec2e(0x140)]):_0x3158a4[_0x34ec2e(0xf1)](_0x34ec2e(0xd0)+_0x4414af[_0x34ec2e(0xf1)][_0x34ec2e(0x129)]));;!_0x2d52b4[_0x34ec2e(0xe4)]&&(_0x363088[_0x34ec2e(0xe1)](_0x363088['bhWOb'],_0x363088[_0x34ec2e(0xe5)])?_0x21f361+=_0x34ec2e(0xfd)+_0x3b9b17[_0x34ec2e(0x17c)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':_0x444b9e[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0x108)]));;!_0x2d52b4[_0x34ec2e(0x138)]&&(_0x363088[_0x34ec2e(0xc5)](_0x363088[_0x34ec2e(0xa6)],_0x363088[_0x34ec2e(0xa6)])?_0x542f3b['push'](_0x363088[_0x34ec2e(0xb8)]):_0x444b9e[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0xb8)]));;_0x363088[_0x34ec2e(0x172)](_0x444b9e[_0x34ec2e(0xf7)],0x0)&&(_0x363088[_0x34ec2e(0xe1)](_0x363088['Cbuom'],_0x363088[_0x34ec2e(0x161)])?(_0x5bdf81['info']('['+_0xc08e81+_0x34ec2e(0xea)+_0x504e6d[_0x34ec2e(0x159)]+_0x34ec2e(0x85)+_0x2c587b[_0x34ec2e(0x153)]+_0x34ec2e(0xd2)+_0x39e712[_0x34ec2e(0xf1)]),_0x87c0fa[_0x34ec2e(0xf1)]&&_0x116f36['error'](_0x34ec2e(0xd0)+_0x111596[_0x34ec2e(0xf1)]['stack'])):(_0x3f0627=_0x34ec2e(0xb4)+_0x444b9e[_0x34ec2e(0x151)](',\x20')+_0x34ec2e(0x14c),await _0x363088['JOoKi'](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088[_0x34ec2e(0x147)],_0x363088[_0x34ec2e(0x10e)],_0x363088['iPaAS']),logger[_0x34ec2e(0xf1)](_0x3f0627),process[_0x34ec2e(0x14d)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x2d52b4[_0x34ec2e(0xe4)][_0x34ec2e(0x17d)]())&&(_0x363088[_0x34ec2e(0xe1)](_0x363088['smSun'],_0x363088[_0x34ec2e(0xef)])?(_0x3f0627=_0x363088[_0x34ec2e(0x16f)],await _0x363088[_0x34ec2e(0x13e)](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088[_0x34ec2e(0x147)],_0x363088['afGXj'],_0x363088['iPaAS']),logger['error'](_0x3f0627),!_0x2d52b4[_0x34ec2e(0xe4)]&&(_0x363088[_0x34ec2e(0x127)](_0x363088['OBELK'],_0x363088[_0x34ec2e(0x99)])?_0x21269a[_0x34ec2e(0x8d)](_0x34ec2e(0x150)+_0x302c27[_0x34ec2e(0x17c)]+_0x34ec2e(0xbc)):(logger[_0x34ec2e(0x8d)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x34ec2e(0xeb)]+'\x20'),_0x2d52b4[_0x34ec2e(0xe4)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x2b6120[_0x34ec2e(0xf1)](_0x363088['UKkcI']),_0x363bbe[_0x34ec2e(0x14d)](0x1))),global_registry['clusterName']=_0x2d52b4['clusterName'],global_registry[_0x34ec2e(0xe4)]=_0x2d52b4[_0x34ec2e(0xe4)],global_registry[_0x34ec2e(0xbf)]=_0x2d52b4[_0x34ec2e(0x138)];}}else{if(_0x2d52b4[_0x34ec2e(0x96)]){if(_0x363088['tfqTi'](_0x363088[_0x34ec2e(0x126)],_0x363088['HSiAA']))_0x5538ba+=_0x363088[_0x34ec2e(0xfa)],_0x1a2b67+=_0x34ec2e(0x102)+(_0x41076a[_0x34ec2e(0x131)]||_0x363088['XNISK'])+'\x0a',_0x4ce935+=_0x34ec2e(0x86)+(_0x31487b['code']||_0x363088[_0x34ec2e(0xc9)])+'\x0a',_0x1244aa+=_0x34ec2e(0x109)+(_0x4cd2a4[_0x34ec2e(0x129)]||_0x363088[_0x34ec2e(0xc9)])+'\x0a';else{global_registry[_0x34ec2e(0x96)]=_0x2d52b4['gridProfile'],logger[_0x34ec2e(0xa5)]('grid\x20profile\x20flow\x20'+_0x2d52b4[_0x34ec2e(0x96)]);const _0x886c47=_0x34ec2e(0xda)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0xb8bd0={};_0xb8bd0[_0x34ec2e(0x9e)]=_0x363088[_0x34ec2e(0xd3)],_0xb8bd0['headers']=global_registry['authHeader'],_0xb8bd0['throwHttpErrors']=![];const _0x378b9e=_0xb8bd0,_0x269c6b=await _0x363088[_0x34ec2e(0x13a)](got,_0x886c47,_0x378b9e),_0x3a3ab0=await _0x363088['HeWvh'](responseValidation,_0x269c6b,_0x363088[_0x34ec2e(0xd6)],_0x363088[_0x34ec2e(0xc3)],_0x2d52b4,_0xcb5f08);let _0x35b3a0={};if(_0x363088[_0x34ec2e(0x13c)](_0x3a3ab0,0xc8)){if(_0x363088[_0x34ec2e(0x127)](_0x363088['yrALt'],_0x363088[_0x34ec2e(0xaa)])){const _0xe4fc7c={};_0xe4fc7c[_0x34ec2e(0x133)]=_0x363088[_0x34ec2e(0x128)],_0xe4fc7c['type']=_0x363088[_0x34ec2e(0x169)];const _0x403ce6={};_0x403ce6[_0x34ec2e(0x133)]=_0x363088['GBaSv'],_0x403ce6[_0x34ec2e(0x103)]=_0x363088[_0x34ec2e(0x169)];const _0x19a8b0={};_0x19a8b0[_0x34ec2e(0x133)]=_0x363088[_0x34ec2e(0xa3)],_0x19a8b0['type']=_0x363088['KYVBX'];const _0x4e724f={};_0x4e724f['description']=_0x363088['hFqJd'],_0x4e724f[_0x34ec2e(0x103)]=_0x363088[_0x34ec2e(0x169)];const _0x19b4cd={};return _0x19b4cd[_0x34ec2e(0x88)]=_0xe4fc7c,_0x19b4cd[_0x34ec2e(0xfe)]=_0x403ce6,_0x19b4cd[_0x34ec2e(0x138)]=_0x19a8b0,_0x19b4cd[_0x34ec2e(0xba)]=_0x4e724f,_0x14434f[_0x34ec2e(0x104)](_0x3737a5[_0x34ec2e(0xe2)])[_0x34ec2e(0x163)](_0x3c5272)[_0x34ec2e(0x141)](_0x19b4cd)['help'](_0x363088['NVERt'])[_0x34ec2e(0xb9)];}else{const _0x5d6be7=JSON[_0x34ec2e(0xb0)](_0x269c6b[_0x34ec2e(0x15d)]),_0x10baf3=_0x5d6be7['find'](_0x4dca72=>_0x4dca72[_0x34ec2e(0x100)]===_0x2d52b4[_0x34ec2e(0x96)])||null;_0x363088[_0x34ec2e(0x137)](isUndefined,_0x10baf3)?_0x363088[_0x34ec2e(0xaf)](_0x363088[_0x34ec2e(0x8e)],_0x363088[_0x34ec2e(0x14b)])?_0x5d657b[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0x108)]):(_0x3f0627=_0x34ec2e(0x93)+_0x2d52b4[_0x34ec2e(0x96)]+_0x34ec2e(0xdc),await _0x363088['qixRS'](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088['XpxIv'],_0x363088[_0x34ec2e(0xe8)],_0x363088[_0x34ec2e(0x171)]),logger['error'](_0x3f0627),process[_0x34ec2e(0x14d)](0x1)):_0x363088[_0x34ec2e(0xc5)](_0x363088[_0x34ec2e(0x10c)],_0x363088[_0x34ec2e(0x10c)])?(_0x5a21f5[_0x34ec2e(0x8d)]('Setting\x20cloud\x20provider\x20as\x20'+_0x3231d5[_0x34ec2e(0xeb)]+'\x20'),_0x16dee3[_0x34ec2e(0xe4)]=_0x28b986['CLOUD_PROVIDER']):_0x35b3a0=_0x10baf3;}}else{if(_0x363088['hsXTl'](_0x363088[_0x34ec2e(0x16b)],_0x363088['MEPJq'])){const {header:_0x2af6e0,response:_0x15231f}=_0x3b91ee,{status:_0x2fa136,data:_0x2f5cff,error:_0x3c7728}=_0x15231f;_0x16c365+=_0x2af6e0+'\x20#'+_0x363088[_0x34ec2e(0xa0)](_0x24c5b4,0x1)+'\x0a',_0xde9349+='Status:\x20'+(_0x2fa136?_0x363088[_0x34ec2e(0x145)]:_0x363088[_0x34ec2e(0x101)])+'\x0a',_0x5572fe+=_0x34ec2e(0x121)+_0x363088[_0x34ec2e(0x12f)](_0x2f5cff,_0x363088[_0x34ec2e(0xc9)])+'\x0a',_0x3c7728&&(_0x17e745+=_0x363088['USUvc'],_0x13e235+='\x20\x20Message:\x20'+(_0x3c7728[_0x34ec2e(0x131)]||_0x363088['XNISK'])+'\x0a',_0x55155c+=_0x34ec2e(0x86)+(_0x3c7728[_0x34ec2e(0x117)]||_0x363088[_0x34ec2e(0xc9)])+'\x0a',_0x171407+=_0x34ec2e(0x109)+(_0x3c7728['stack']||_0x363088[_0x34ec2e(0xc9)])+'\x0a'),_0x3845f2+='\x0a\x0a';}else process['exit'](0x1);}const _0x5ea373={};_0x5ea373[_0x34ec2e(0x103)]=WS_EVENTS[_0x34ec2e(0x143)],_0x5ea373[_0x34ec2e(0x131)]=_0x363088[_0x34ec2e(0xbe)],webSocketUtils[_0x34ec2e(0x139)](_0xcb5f08,_0x5ea373),global_registry[_0x34ec2e(0xe4)]=_0x35b3a0[_0x34ec2e(0xe4)],global_registry[_0x34ec2e(0xbf)]=_0x35b3a0[_0x34ec2e(0x138)],global_registry[_0x34ec2e(0x17c)]=_0x35b3a0[_0x34ec2e(0x17c)];}}else _0x363088[_0x34ec2e(0xc5)](_0x363088[_0x34ec2e(0xee)],_0x363088[_0x34ec2e(0xee)])?_0x249cf3[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0x140)]):(logger[_0x34ec2e(0xf1)](_0x363088[_0x34ec2e(0x10b)]),process[_0x34ec2e(0x14d)](0x1));}}}catch(_0xd3298d){_0x363088[_0x34ec2e(0xdd)](_0x363088[_0x34ec2e(0x107)],_0x363088[_0x34ec2e(0x8b)])?_0x1bee54[_0x34ec2e(0x14d)](0x1):(_0x3f0627=_0x34ec2e(0x178)+_0xd3298d+':\x20'+_0xd3298d[_0x34ec2e(0x129)],logger[_0x34ec2e(0xf1)](_0x3f0627),await _0x363088[_0x34ec2e(0x17a)](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088[_0x34ec2e(0x147)],_0x363088['afGXj'],_0x363088[_0x34ec2e(0x171)]),process['exit'](0x1));}}function printResponse(_0x46e599,_0x3b596c){const _0x22a13a=a17_0x588aba,_0x31d0d3={};_0x31d0d3[_0x22a13a(0x155)]=function(_0x1d7dc7,_0x5d2204){return _0x1d7dc7!==_0x5d2204;},_0x31d0d3[_0x22a13a(0x15b)]='LehzQ',_0x31d0d3[_0x22a13a(0x11e)]=_0x22a13a(0xc4);const _0x96c0f3=_0x31d0d3;logger[_0x22a13a(0x8d)]('['+_0x46e599+']\x20status\x20:\x20'+_0x3b596c[_0x22a13a(0x159)]+_0x22a13a(0x85)+_0x3b596c[_0x22a13a(0x153)]+'\x20error\x20:\x20'+_0x3b596c['error']),_0x3b596c[_0x22a13a(0xf1)]&&(_0x96c0f3[_0x22a13a(0x155)](_0x96c0f3[_0x22a13a(0x15b)],_0x96c0f3[_0x22a13a(0x11e)])?logger[_0x22a13a(0xf1)](_0x22a13a(0xd0)+_0x3b596c[_0x22a13a(0xf1)]['stack']):_0xf46e78=_0x2e667b);}function a17_0x7cbb(_0x14e4a5,_0x445aa1){const _0x21aa4a=a17_0x21aa();return a17_0x7cbb=function(_0x7cbb2d,_0x1f5d34){_0x7cbb2d=_0x7cbb2d-0x81;let _0x18bc09=_0x21aa4a[_0x7cbb2d];return _0x18bc09;},a17_0x7cbb(_0x14e4a5,_0x445aa1);}async function generateReport(_0x46ac98,_0x907dba){const _0xd9bfa=a17_0x588aba,_0x305fea={'tfPuF':function(_0x8f54f8,_0x161fcb){return _0x8f54f8+_0x161fcb;},'bKvuA':_0xd9bfa(0x11d),'xmjPe':_0xd9bfa(0x125),'ZwYAv':function(_0x30aa6d,_0x3bbbd9){return _0x30aa6d||_0x3bbbd9;},'BzWGQ':_0xd9bfa(0x8a),'ZayoU':_0xd9bfa(0xad),'yUEnV':'Cluster\x20details\x0a-----------------------\x0a','ONvKH':function(_0x294d3e,_0x38827e){return _0x294d3e!=_0x38827e;},'gzVDW':_0xd9bfa(0x144),'VlcIq':_0xd9bfa(0x16a),'oxRNz':function(_0x22a7ea){return _0x22a7ea();}};let _0xc24124=_0xd9bfa(0xf6)+global_registry[_0xd9bfa(0xe4)]+_0xd9bfa(0xd5);return _0x46ac98[_0xd9bfa(0x134)]((_0x4629f4,_0x8a53ae)=>{const _0x57797a=_0xd9bfa,{header:_0x4948f5,response:_0x112b44}=_0x4629f4,{status:_0x16b369,data:_0x299134,error:_0x13d00f}=_0x112b44;_0xc24124+=_0x4948f5+'\x20#'+_0x305fea[_0x57797a(0x112)](_0x8a53ae,0x1)+'\x0a',_0xc24124+=_0x57797a(0x10f)+(_0x16b369?_0x305fea[_0x57797a(0x170)]:_0x305fea[_0x57797a(0x136)])+'\x0a',_0xc24124+='Message:\x20'+_0x305fea[_0x57797a(0x12d)](_0x299134,_0x305fea[_0x57797a(0xf9)])+'\x0a',_0x13d00f&&(_0xc24124+=_0x305fea[_0x57797a(0xbb)],_0xc24124+=_0x57797a(0x102)+(_0x13d00f['message']||_0x305fea[_0x57797a(0xf9)])+'\x0a',_0xc24124+=_0x57797a(0x86)+(_0x13d00f[_0x57797a(0x117)]||_0x305fea[_0x57797a(0xf9)])+'\x0a',_0xc24124+=_0x57797a(0x109)+(_0x13d00f[_0x57797a(0x129)]||_0x305fea[_0x57797a(0xf9)])+'\x0a'),_0xc24124+='\x0a\x0a';}),_0xc24124+=_0x305fea[_0xd9bfa(0x15e)],_0x305fea['ONvKH'](_0x907dba,null)?_0xc24124+='Cluster\x20'+global_registry[_0xd9bfa(0x17c)]+'\x20'+(_0x907dba?_0x305fea[_0xd9bfa(0x176)]:_0x305fea['VlcIq'])+'\x0a\x0a':_0xc24124+=_0xd9bfa(0xfd)+global_registry[_0xd9bfa(0x17c)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0xc24124+=_0x305fea[_0xd9bfa(0xcc)](getSystemMetaData),_0xc24124;};exports[a17_0x588aba(0x114)]=async function(_0x15d503){const _0x467837=a17_0x588aba,_0x4391fc={'TnbOS':function(_0x1091d7){return _0x1091d7();},'TqMwX':function(_0x5d97d8){return _0x5d97d8();},'ARDTv':_0x467837(0x15a),'YrAUL':function(_0x5362b1,_0x197900,_0x4d9c57,_0x4cdb06,_0x18b169,_0x145047,_0x2cb4f7,_0x109406){return _0x5362b1(_0x197900,_0x4d9c57,_0x4cdb06,_0x18b169,_0x145047,_0x2cb4f7,_0x109406);},'TmmOF':_0x467837(0xcf),'uDPUe':'credential-not-found','ihJUL':_0x467837(0xf1),'enJCV':function(_0xe0f622,_0x5378f2,_0x46d9bb,_0x3d98ac,_0x144219,_0x51b0bf,_0x27681c){return _0xe0f622(_0x5378f2,_0x46d9bb,_0x3d98ac,_0x144219,_0x51b0bf,_0x27681c);},'fFWgm':function(_0x78fa2c){return _0x78fa2c();},'huoRk':_0x467837(0xdb),'GBsyo':_0x467837(0xd7),'HqhmW':function(_0x2da87b,_0x56dd21,_0xf49aad){return _0x2da87b(_0x56dd21,_0xf49aad);},'WFJMt':_0x467837(0x10a),'PHZOC':_0x467837(0x160),'rwCKr':_0x467837(0x13f),'BMsHb':function(_0x287b96,_0x55d37f,_0x5f57dc){return _0x287b96(_0x55d37f,_0x5f57dc);},'PalvA':'accessResp','QbDdj':function(_0xdbec3a,_0x23d5fe,_0x2005fd){return _0xdbec3a(_0x23d5fe,_0x2005fd);},'DLlHl':_0x467837(0xb1),'MOzYP':function(_0x73274a,_0x2a875e){return _0x73274a(_0x2a875e);},'EYneI':_0x467837(0x81),'RGFXe':function(_0x3b46d3,_0x23ef83,_0x4908dd){return _0x3b46d3(_0x23ef83,_0x4908dd);},'dSVDE':_0x467837(0x164),'PGfPg':_0x467837(0x177),'cvLLz':_0x467837(0x168),'dUkuY':_0x467837(0x94),'ONkom':'SSL\x20Configured','XkYcW':function(_0x4eca0d,_0x463336,_0xd93f38){return _0x4eca0d(_0x463336,_0xd93f38);},'Kmwif':function(_0x30cc84,_0xc6bb8d){return _0x30cc84+_0xc6bb8d;},'TFCWJ':_0x467837(0xb6),'WLjAm':_0x467837(0xc0)};let _0x4028b4,_0x16e745;try{global_registry[_0x467837(0x87)]=_0x4391fc['TnbOS'](uuidv4);!fs[_0x467837(0x12a)](_0x4391fc[_0x467837(0x116)](getCredentialsPath))&&(_0x16e745=_0x4391fc['ARDTv'],logger[_0x467837(0xf1)](_0x16e745),await _0x4391fc[_0x467837(0xff)](reportToGalactusAndSendToEDS,_0x15d503,_0x4028b4,_0x16e745,messageTypes[_0x467837(0xf3)],_0x4391fc['TmmOF'],_0x4391fc[_0x467837(0x16e)],_0x4391fc[_0x467837(0x111)]),process['exit'](0x1));_0x4391fc['enJCV'](sendInstrumentationEvent,_0x15d503,_0x4391fc[_0x467837(0xde)],messageTypes[_0x467837(0x158)],null,null,_0x15d503);const _0x203503=JSON[_0x467837(0xb0)](fs[_0x467837(0xf8)](_0x4391fc['fFWgm'](getCredentialsPath)));global_registry[_0x467837(0x156)]=_0x203503[_0x467837(0x83)][_0x467837(0x13b)],global_registry['bstackAccesskey']=_0x203503[_0x467837(0x83)][_0x467837(0xd4)];const _0x5f0d28=WS_ENDPOINT[_0x467837(0xed)](_0x4391fc['huoRk'],_0x203503[_0x467837(0x83)][_0x467837(0x13b)])['replace'](_0x4391fc[_0x467837(0xa2)],_0x203503[_0x467837(0x83)]['password']),_0x8c07e5={};_0x8c07e5[_0x467837(0x157)]=ws,_0x8c07e5[_0x467837(0x13d)]=0x36ee80,_0x4028b4=new ReconnectingWebSocket(_0x5f0d28,[],_0x8c07e5),global_registry[_0x467837(0x162)]=_0x4391fc[_0x467837(0xdf)](getAuthHeader,global_registry[_0x467837(0x156)],global_registry[_0x467837(0x95)]),await _0x4391fc[_0x467837(0xdf)](inputValidation,_0x15d503,_0x4028b4),logger['info'](_0x467837(0xd9)+global_registry[_0x467837(0xe4)]+_0x467837(0x165)+global_registry[_0x467837(0xbf)]);let _0x99ca57=await _0x4391fc[_0x467837(0x9d)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x467837(0x17c)],_0x4391fc['WFJMt'],_0x4028b4,webSocketUtils,_0x15d503);const _0x494682=await _0x99ca57[_0x467837(0x90)]();_0x4391fc[_0x467837(0xdf)](printResponse,_0x4391fc[_0x467837(0x11a)],_0x494682),_0x99ca57=await _0x99ca57[_0x467837(0x14a)]();let _0x3997a2=![];try{_0x3997a2=await _0x99ca57['isClusterPresent']();}catch(_0x2d90f5){const _0x1128ef=_0x4391fc[_0x467837(0x14f)][_0x467837(0x123)]('|');let _0x37ade8=0x0;while(!![]){switch(_0x1128ef[_0x37ade8++]){case'0':await _0x4391fc[_0x467837(0xff)](reportToGalactusAndSendToEDS,_0x15d503,_0x4028b4,_0x16e745,messageTypes['ERROR'],_0x4391fc[_0x467837(0xde)],'cluster-check-failed-'+global_registry[_0x467837(0xe4)],_0x4391fc[_0x467837(0x111)]);continue;case'1':_0x16e745=_0x467837(0x11b)+global_registry[_0x467837(0x17c)]+_0x467837(0x120)+global_registry[_0x467837(0xbf)]+'`\x20,error\x20:\x20'+_0x2d90f5;continue;case'2':_0x3997a2=null;continue;case'3':_0x16e745+='\x0a'+JSON[_0x467837(0xa7)](_0x2d90f5[_0x467837(0x129)]);continue;case'4':logger[_0x467837(0xf1)](_0x16e745);continue;}break;}}_0x3997a2&&logger[_0x467837(0x8d)](_0x467837(0x150)+global_registry[_0x467837(0x17c)]+_0x467837(0xbc));const _0x37d3fb=await _0x99ca57['checkAccess']();_0x4391fc['BMsHb'](printResponse,_0x4391fc[_0x467837(0x106)],_0x37d3fb);const _0x346d02=await _0x4391fc[_0x467837(0xa4)](curlRequest);_0x4391fc[_0x467837(0xa8)](printResponse,_0x4391fc[_0x467837(0xb2)],_0x346d02);const _0x3784d6=await _0x4391fc[_0x467837(0xca)](isTlsSupported,_0x4391fc[_0x467837(0x142)]);_0x4391fc['RGFXe'](printResponse,_0x4391fc['dSVDE'],_0x3784d6);const _0xc35bc1={};_0xc35bc1[_0x467837(0x14e)]=_0x4391fc['PGfPg'],_0xc35bc1[_0x467837(0x98)]=_0x494682;const _0xd3f558={};_0xd3f558[_0x467837(0x14e)]=_0x4391fc[_0x467837(0x167)],_0xd3f558[_0x467837(0x98)]=_0x37d3fb;const _0x2c953a={};_0x2c953a[_0x467837(0x14e)]=_0x4391fc[_0x467837(0x175)],_0x2c953a[_0x467837(0x98)]=_0x346d02;const _0xe2db3c={};_0xe2db3c[_0x467837(0x14e)]=_0x4391fc['ONkom'],_0xe2db3c[_0x467837(0x98)]=_0x3784d6;const _0x4b7fbf=[_0xc35bc1,_0xd3f558,_0x2c953a,_0xe2db3c],_0x5f54a2=await _0x4391fc[_0x467837(0xae)](generateReport,_0x4b7fbf,_0x3997a2),_0x40783d=new Date(),_0x3a77e6=_0x40783d[_0x467837(0xe3)]()+'_'+_0x4391fc[_0x467837(0x132)](_0x40783d['getUTCMonth'](),0x1)+'_'+_0x40783d['getUTCDate']()+'_'+_0x40783d['getUTCHours']()+'_'+_0x40783d['getUTCMinutes'](),_0x3dd3dd=_0x467837(0x119)+_0x3a77e6+_0x467837(0xfc);fs['writeFileSync'](_0x3dd3dd,_0x5f54a2,_0x4391fc[_0x467837(0xbd)]),logger['info'](_0x467837(0x15c)+_0x3dd3dd),process[_0x467837(0x14d)](0x0);}catch(_0x5d9e16){let _0x6b0628=_0x467837(0x9f)+_0x5d9e16+'\x20';logger[_0x467837(0xf1)](_0x6b0628),_0x6b0628+='\x0a'+JSON[_0x467837(0xa7)](_0x5d9e16[_0x467837(0x129)]),logger[_0x467837(0xa5)](_0x467837(0xa9)+_0x5d9e16[_0x467837(0x129)]);if(_0x4028b4){const _0x436980={};_0x436980[_0x467837(0x103)]=WS_EVENTS[_0x467837(0x143)],_0x436980[_0x467837(0x131)]=_0x6b0628,webSocketUtils[_0x467837(0x139)](_0x4028b4,_0x436980,_0x4391fc[_0x467837(0x111)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x40a48e={};_0x40a48e[_0x467837(0xf1)]=_0x6b0628,await _0x4391fc[_0x467837(0x9d)](sendInstrumentationEvent,_0x15d503,_0x4391fc['TmmOF'],messageTypes[_0x467837(0xf3)],_0x4391fc[_0x467837(0xf0)],_0x40a48e,_0x15d503),process[_0x467837(0x14d)](0x1);}};
1
+ const a17_0x141952=a17_0x1ca7;(function(_0x20d738,_0x23575d){const _0x16e80e=a17_0x1ca7,_0x7e5036=_0x20d738();while(!![]){try{const _0x5be1d3=-parseInt(_0x16e80e(0x12b))/0x1*(-parseInt(_0x16e80e(0x135))/0x2)+-parseInt(_0x16e80e(0x13c))/0x3+-parseInt(_0x16e80e(0x1d1))/0x4*(parseInt(_0x16e80e(0x215))/0x5)+parseInt(_0x16e80e(0x1ad))/0x6*(parseInt(_0x16e80e(0x15a))/0x7)+parseInt(_0x16e80e(0x186))/0x8+-parseInt(_0x16e80e(0x167))/0x9+-parseInt(_0x16e80e(0x13b))/0xa;if(_0x5be1d3===_0x23575d)break;else _0x7e5036['push'](_0x7e5036['shift']());}catch(_0x38db2f){_0x7e5036['push'](_0x7e5036['shift']());}}}(a17_0x2a99,0x44424));function a17_0x2a99(){const _0x55bf2c=['clusterRegion','54fdaXYN','parse','frKPs','response','N/A','\x20data\x20:\x20','QcJwu','cluster-check-failed-','../../cloudproviders/utils','YDPrC','Status:\x20','.txt','QREKV','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','code','HRrlz','usage','huqkv','WebSocket','stack','clusterName','iQMDR','grid-profile','../../config/constants','TRYUy','arNSi','grid\x20profile\x20flow\x20','bsEzs','includes','cXmMr','\x20\x20Stack:\x20','error','EYagl','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','getUTCMonth','stringify','396sWnEpf','FVawy','debug','stack\x20trace\x20','replace','UWaao','isCliToolInstalled','IayCL','Report\x20saved\x20in\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bstackAccesskey','ZaMmG','PPkdp','toolInstalledResp','Setting\x20cloud\x20provider\x20as\x20','eioDK','Invalid\x20input.\x20grid\x20profiles:\x20','Success','headers','cloud-provider','yeXfQ','jUnSp','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','region','UbzNp','ONeZl','QLaWH','ERROR','gBiAy','authHeader','SXxws','Failure','Cluster\x20`','IRMNE','\x20\x20Code:\x20','VIQqC','handler','NdYQy','mikhN','gridProfile','Failed\x20in\x20pre-check!\x20Error:\x20','IcyeI','quzbg','bstackUsername','description','cloud-provider-not-supported','TLSv1_2_client_method','RrjuA','GzfeS','User\x20Access','status','iAbwB','nlNVD','MBCRT','reconnecting-websocket','xKqvM','WbuIa','hFLvZ','HHILK','method','existsSync','klswe','ORWKF','username','message','checkAccess','tIUPC','pre_check','21855wJdtKT','pre-check-failed','VUtKD','getUTCMinutes','lnCLc','string','mvFID','pmSSN','will\x20be\x20created','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','BJsoK','OpAJF','cloudProvider','password','CLOUD_PROVIDER','LOG','251094dvTLAS','epilogue','builder','OswQx','exit','../../utils/utilityMethods','isClusterPresent','OgpEt','error\x20stack\x20:\x20','XNtBp','4RYroKx','GJyNL','DedCD','log/report_','oGvJc','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','3341130RpLkzR','160218gkDjCM','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','JqaWW','uxpxP','cluster-name','`\x20is\x20present\x20in\x20region\x20`','pEEZU','hLqXT','OqUwa','pre-check-cluster-args-not-passed','`\x20,error\x20:\x20','pre-check-grid-called','mrUGb','hjuNq','options','yAyZZ','forEach','find','grid','oZzYQ','is\x20already\x20present','klkTi','PApzf','qIelj','split','\x20error\x20:\x20','XFkpS','argv','GET','dqqHX','214046NybxbM','GAZBx','isepE','dawOj','readFileSync','mEMNF','Message:\x20','/packages/cli/get-all-grid-profiles','qbgyi','VxhKG','MNLGZ','Browserstack','fdlCT','1248282KozEWr','Rhxvj','rMXdX','Error\x20Details:\x0a','RSYUv','OrxfK','mBrYW','header','unable\x20to\x20verify\x20if\x20cluster\x20`','bwPiR','yzGJJ','getUTCHours','INFO','`\x20already\x20exists','../../config/logger','Tool\x20Installed','pre-check-grid-profile-empty','body','pre-check','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','https://','UTbBv','info','ylXBh','kgpCY','Grid\x20profile\x20fetched\x20for\x20pre-check','sendEventToBackend','data','length',']\x20status\x20:\x20','Cluster\x20','3689152ogAUdK','init','type','opppK','name','help','utf-8','writeFileSync','HKkoJ','UxnKv','delay','lvZsz','<PasswordPlaceholder>','\x20\x20Message:\x20','HUeiN','push','YPkWq','UqXJC','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','lphji','wsCEh','lXtnj','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','rvNrD','KHlJn','cxuRB','uuid','Missing\x20required\x20arguments:\x20','===\x20Precheck\x20Report\x20-\x20','dIRke','DCuze','bRxtC','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','NtZpC','MWPMa','kxTuJ','DMwnO','2|3|1|4|0'];a17_0x2a99=function(){return _0x55bf2c;};return a17_0x2a99();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x141952(0x1a0)),ReconnectingWebSocket=require(a17_0x141952(0x207)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x141952(0x130)),{logger}=require(a17_0x141952(0x175)),{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_0x141952(0x1c4)),{getCloudProviderObjectWithOutInit}=require(a17_0x141952(0x1b5)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a17_0x141952(0x14e),exports['desc']=a17_0x141952(0x1ce),exports[a17_0x141952(0x12d)]=function(_0x9bddc5){const _0xe234e8=a17_0x141952,_0x244e8b={};_0x244e8b[_0xe234e8(0x18f)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x244e8b[_0xe234e8(0x19d)]='string',_0x244e8b[_0xe234e8(0x149)]=_0xe234e8(0x1e7),_0x244e8b[_0xe234e8(0x1ef)]=_0xe234e8(0x19c),_0x244e8b[_0xe234e8(0x213)]=_0xe234e8(0x1ba),_0x244e8b[_0xe234e8(0x206)]=_0xe234e8(0x18b);const _0x4c447c=_0x244e8b,_0x57e542={};_0x57e542['description']=_0x4c447c[_0xe234e8(0x18f)],_0x57e542['type']=_0x4c447c[_0xe234e8(0x19d)];const _0x109119={};_0x109119[_0xe234e8(0x1fd)]=_0x4c447c[_0xe234e8(0x149)],_0x109119[_0xe234e8(0x188)]=_0x4c447c[_0xe234e8(0x19d)];const _0x1367fb={};_0x1367fb[_0xe234e8(0x1fd)]=_0x4c447c[_0xe234e8(0x1ef)],_0x1367fb[_0xe234e8(0x188)]=_0x4c447c[_0xe234e8(0x19d)];const _0x185e9c={};_0x185e9c[_0xe234e8(0x1fd)]=_0x4c447c[_0xe234e8(0x213)],_0x185e9c[_0xe234e8(0x188)]=_0x4c447c[_0xe234e8(0x19d)];const _0x451215={};return _0x451215[_0xe234e8(0x140)]=_0x57e542,_0x451215['cloud-provider']=_0x109119,_0x451215[_0xe234e8(0x1e8)]=_0x1367fb,_0x451215[_0xe234e8(0x1c3)]=_0x185e9c,_0x9bddc5[_0xe234e8(0x1bd)](HELP_HEADER_MESSAGE[_0xe234e8(0x214)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xe234e8(0x14a)](_0x451215)[_0xe234e8(0x18b)](_0x4c447c[_0xe234e8(0x206)])[_0xe234e8(0x157)];};function a17_0x1ca7(_0x5b8a8b,_0x47f7ed){const _0x2a998e=a17_0x2a99();return a17_0x1ca7=function(_0x1ca716,_0x40d517){_0x1ca716=_0x1ca716-0x12b;let _0x1249d3=_0x2a998e[_0x1ca716];return _0x1249d3;},a17_0x1ca7(_0x5b8a8b,_0x47f7ed);}async function inputValidation(_0x55cad6,_0x30db26){const _0x12a78d=a17_0x141952,_0x5a7a66={'NdYQy':_0x12a78d(0x150),'DMwnO':_0x12a78d(0x21d),'jUnSp':_0x12a78d(0x140),'kgpCY':_0x12a78d(0x1cc),'OpAJF':function(_0x148e08,_0x344e0e){return _0x148e08+_0x344e0e;},'pmSSN':'Success','ONeZl':_0x12a78d(0x1f0),'HUeiN':function(_0x2a14ac,_0x1265cb){return _0x2a14ac||_0x1265cb;},'nlNVD':_0x12a78d(0x1b1),'iQMDR':_0x12a78d(0x16a),'QLaWH':_0x12a78d(0x1e4),'UTbBv':_0x12a78d(0x1e8),'klswe':_0x12a78d(0x198),'VxhKG':_0x12a78d(0x1a6),'Rhxvj':_0x12a78d(0x21a),'WbuIa':_0x12a78d(0x1e7),'mEMNF':_0x12a78d(0x19c),'quzbg':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pEEZU':'help','yAyZZ':function(_0x31426d,_0x5a5af6){return _0x31426d!==_0x5a5af6;},'fdlCT':_0x12a78d(0x200),'YDPrC':function(_0x14ec8f,_0x1324c4){return _0x14ec8f===_0x1324c4;},'oVQqe':_0x12a78d(0x201),'bRxtC':_0x12a78d(0x17e),'dIRke':function(_0x4a89c0,_0x2e1b7e){return _0x4a89c0===_0x2e1b7e;},'lphji':_0x12a78d(0x1cd),'YPkWq':_0x12a78d(0x15d),'rtVyd':'fpxAR','rMXdX':function(_0x43888,_0x7c0f8a){return _0x43888===_0x7c0f8a;},'uxpxP':_0x12a78d(0x1c6),'cXmMr':function(_0x4433d9,_0x21b213){return _0x4433d9>_0x21b213;},'FVawy':_0x12a78d(0x1be),'lXtnj':function(_0x2d16fe,_0x2f4296,_0xa08414,_0xa38a3b,_0x435887,_0x40dbb5,_0x1335ab,_0x5f010c){return _0x2d16fe(_0x2f4296,_0xa08414,_0xa38a3b,_0x435887,_0x40dbb5,_0x1335ab,_0x5f010c);},'oGvJc':_0x12a78d(0x147),'HKkoJ':_0x12a78d(0x145),'opppK':_0x12a78d(0x19f),'DedCD':_0x12a78d(0x17a),'ORWKF':function(_0x24a59a,_0x2a745e,_0x1a7404,_0x57f22b,_0x517e01,_0x5c72c2,_0x3731e9,_0x216d8a){return _0x24a59a(_0x2a745e,_0x1a7404,_0x57f22b,_0x517e01,_0x5c72c2,_0x3731e9,_0x216d8a);},'GAZBx':_0x12a78d(0x1fe),'JEKBH':function(_0x1e8d5,_0x25703f){return _0x1e8d5!==_0x25703f;},'ZaMmG':_0x12a78d(0x21f),'qbgyi':'YdXAI','OswQx':_0x12a78d(0x158),'gazLX':function(_0x2ad1f1,_0x1b7eb9,_0x3a120e){return _0x2ad1f1(_0x1b7eb9,_0x3a120e);},'GJyNL':function(_0x33bf28,_0x5459f6,_0x185f32,_0x6455d3,_0xd61c28,_0x5205be){return _0x33bf28(_0x5459f6,_0x185f32,_0x6455d3,_0xd61c28,_0x5205be);},'yeXfQ':_0x12a78d(0x179),'QREKV':_0x12a78d(0x1c3),'klkTi':function(_0x46c2d3,_0x4aa009){return _0x46c2d3!==_0x4aa009;},'UbzNp':'HhNJf','VSDba':function(_0x3fda69,_0x57f4f1){return _0x3fda69(_0x57f4f1);},'QZPbv':function(_0x2b0f29,_0x106a57){return _0x2b0f29===_0x106a57;},'dqqHX':_0x12a78d(0x1c8),'mikhN':'KmiaQ','VIQqC':_0x12a78d(0x177),'fkeAz':function(_0x2d206a,_0x1cfb1a){return _0x2d206a===_0x1cfb1a;},'IcyeI':'kfAMI','qIelj':function(_0x5aaefe,_0x35d1d8){return _0x5aaefe!==_0x35d1d8;},'KHlJn':_0x12a78d(0x13e),'NtZpC':_0x12a78d(0x1e0),'lvZsz':_0x12a78d(0x180),'rSucX':_0x12a78d(0x16b),'lnCLc':'VmUaw','UqXUn':function(_0x51fbab,_0x4b9ce8){return _0x51fbab===_0x4b9ce8;},'MWPMa':_0x12a78d(0x1af),'MNLGZ':_0x12a78d(0x143)};let _0x48f077;try{if(_0x5a7a66[_0x12a78d(0x14b)](_0x5a7a66[_0x12a78d(0x166)],_0x5a7a66['fdlCT']))_0x33a301+=_0x12a78d(0x185)+_0x33c715['clusterName']+'\x20'+(_0x1ada89?_0x5a7a66[_0x12a78d(0x1f6)]:_0x5a7a66[_0x12a78d(0x1aa)])+'\x0a\x0a';else{if(_0x55cad6[_0x12a78d(0x1c1)]||_0x55cad6[_0x12a78d(0x221)]||_0x55cad6[_0x12a78d(0x1e8)]){if(_0x5a7a66[_0x12a78d(0x1b6)](_0x5a7a66['oVQqe'],_0x5a7a66[_0x12a78d(0x1a5)]))_0x327197['push'](_0x5a7a66['jUnSp']);else{const _0x135c83=[];if(!_0x55cad6[_0x12a78d(0x1c1)]){if(_0x5a7a66[_0x12a78d(0x1a3)](_0x5a7a66[_0x12a78d(0x199)],_0x5a7a66[_0x12a78d(0x196)])){const _0x4ffd36={};_0x4ffd36[_0x12a78d(0x188)]=_0x53ef48['LOG'],_0x4ffd36['message']=_0xba51cb,_0x13f4ff[_0x12a78d(0x181)](_0x28870c,_0x4ffd36,_0x5a7a66['kgpCY'],!![]);}else _0x135c83[_0x12a78d(0x195)](_0x5a7a66[_0x12a78d(0x1e6)]);};!_0x55cad6[_0x12a78d(0x221)]&&(_0x5a7a66[_0x12a78d(0x14b)](_0x5a7a66['rtVyd'],_0x5a7a66['rtVyd'])?_0x475734+=_0x12a78d(0x185)+_0x447d66[_0x12a78d(0x1c1)]+_0x12a78d(0x21e):_0x135c83['push'](_0x5a7a66[_0x12a78d(0x1eb)]));;if(!_0x55cad6[_0x12a78d(0x1e8)]){if(_0x5a7a66['rMXdX'](_0x5a7a66['uxpxP'],_0x5a7a66[_0x12a78d(0x13f)]))_0x135c83[_0x12a78d(0x195)](_0x5a7a66['UTbBv']);else{const {header:_0x53c197,response:_0xdd5faa}=_0x2386aa,{status:_0x59131a,data:_0x4f06cf,error:_0x4a8dc0}=_0xdd5faa;_0x49a6ac+=_0x53c197+'\x20#'+_0x5a7a66[_0x12a78d(0x220)](_0xdd4424,0x1)+'\x0a',_0x45e06e+=_0x12a78d(0x1b7)+(_0x59131a?_0x5a7a66[_0x12a78d(0x21c)]:_0x5a7a66[_0x12a78d(0x1ea)])+'\x0a',_0x5efb0b+=_0x12a78d(0x160)+_0x5a7a66[_0x12a78d(0x194)](_0x4f06cf,_0x5a7a66[_0x12a78d(0x205)])+'\x0a',_0x4a8dc0&&(_0x3a3d9a+=_0x5a7a66['iQMDR'],_0x363906+=_0x12a78d(0x193)+(_0x4a8dc0['message']||_0x5a7a66[_0x12a78d(0x205)])+'\x0a',_0x55240a+=_0x12a78d(0x1f3)+(_0x4a8dc0[_0x12a78d(0x1bb)]||_0x5a7a66[_0x12a78d(0x205)])+'\x0a',_0x2e0f4f+='\x20\x20Stack:\x20'+(_0x4a8dc0[_0x12a78d(0x1c0)]||_0x5a7a66[_0x12a78d(0x205)])+'\x0a'),_0x171b74+='\x0a\x0a';}};_0x5a7a66[_0x12a78d(0x1ca)](_0x135c83[_0x12a78d(0x183)],0x0)&&(_0x5a7a66[_0x12a78d(0x14b)](_0x5a7a66[_0x12a78d(0x1d2)],_0x5a7a66[_0x12a78d(0x1d2)])?_0x43b034[_0x12a78d(0x195)](_0x5a7a66[_0x12a78d(0x1eb)]):(_0x48f077=_0x12a78d(0x1a1)+_0x135c83['join'](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x5a7a66['lXtnj'](reportToGalactusAndSendToEDS,_0x55cad6,_0x30db26,_0x48f077,messageTypes['ERROR'],_0x5a7a66[_0x12a78d(0x139)],_0x5a7a66[_0x12a78d(0x18e)],_0x5a7a66[_0x12a78d(0x17f)]),logger[_0x12a78d(0x1cc)](_0x48f077),process[_0x12a78d(0x12f)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x12a78d(0x1c9)](_0x55cad6[_0x12a78d(0x221)]['toLowerCase']())&&(_0x5a7a66['yAyZZ'](_0x5a7a66[_0x12a78d(0x189)],_0x5a7a66[_0x12a78d(0x189)])?_0x58917f=_0x1c6525:(_0x48f077=_0x5a7a66[_0x12a78d(0x137)],await _0x5a7a66[_0x12a78d(0x20f)](reportToGalactusAndSendToEDS,_0x55cad6,_0x30db26,_0x48f077,messageTypes[_0x12a78d(0x1ec)],_0x5a7a66[_0x12a78d(0x139)],_0x5a7a66[_0x12a78d(0x15b)],_0x5a7a66['kgpCY']),logger['error'](_0x48f077),!_0x55cad6[_0x12a78d(0x221)]&&(_0x5a7a66['JEKBH'](_0x5a7a66[_0x12a78d(0x1dc)],_0x5a7a66['ZaMmG'])?_0x260765['info'](_0x12a78d(0x1f1)+_0x3de673['clusterName']+_0x12a78d(0x174)):(logger['info'](_0x12a78d(0x1df)+DEFAULT_CLUSTER_DETAILS[_0x12a78d(0x223)]+'\x20'),_0x55cad6['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x12a78d(0x223)])))),global_registry[_0x12a78d(0x1c1)]=_0x55cad6[_0x12a78d(0x1c1)],global_registry[_0x12a78d(0x221)]=_0x55cad6[_0x12a78d(0x221)],global_registry[_0x12a78d(0x1ac)]=_0x55cad6[_0x12a78d(0x1e8)];}}else{if(_0x55cad6[_0x12a78d(0x1f8)]){if(_0x5a7a66[_0x12a78d(0x14b)](_0x5a7a66[_0x12a78d(0x162)],_0x5a7a66[_0x12a78d(0x162)]))_0x1c4c65[_0x12a78d(0x195)](_0x5a7a66[_0x12a78d(0x17c)]);else{global_registry[_0x12a78d(0x1f8)]=_0x55cad6[_0x12a78d(0x1f8)],logger[_0x12a78d(0x1d3)](_0x12a78d(0x1c7)+_0x55cad6['gridProfile']);const _0x4ebf64=_0x12a78d(0x17b)+AG_API_URL+_0x12a78d(0x161),_0x5b333a={};_0x5b333a[_0x12a78d(0x20c)]=_0x5a7a66[_0x12a78d(0x12e)],_0x5b333a[_0x12a78d(0x1e3)]=global_registry[_0x12a78d(0x1ee)],_0x5b333a['throwHttpErrors']=![];const _0x3ee5ad=_0x5b333a,_0x1ccfa2=await _0x5a7a66['gazLX'](got,_0x4ebf64,_0x3ee5ad),_0x9651f9=await _0x5a7a66[_0x12a78d(0x136)](responseValidation,_0x1ccfa2,_0x5a7a66[_0x12a78d(0x1e5)],_0x5a7a66[_0x12a78d(0x1b9)],_0x55cad6,_0x30db26);let _0x179e5a={};if(_0x5a7a66[_0x12a78d(0x169)](_0x9651f9,0xc8)){if(_0x5a7a66[_0x12a78d(0x151)](_0x5a7a66[_0x12a78d(0x1e9)],_0x5a7a66[_0x12a78d(0x1e9)]))_0x294094+=_0x5a7a66[_0x12a78d(0x1c2)],_0x537de6+='\x20\x20Message:\x20'+(_0x5eef62[_0x12a78d(0x211)]||_0x5a7a66[_0x12a78d(0x205)])+'\x0a',_0x3a20db+='\x20\x20Code:\x20'+(_0x3cf41d['code']||_0x5a7a66[_0x12a78d(0x205)])+'\x0a',_0x488a2f+=_0x12a78d(0x1cb)+(_0x33ece5[_0x12a78d(0x1c0)]||_0x5a7a66[_0x12a78d(0x205)])+'\x0a';else{const _0x47775c=JSON['parse'](_0x1ccfa2[_0x12a78d(0x178)]),_0x5393ee=_0x47775c[_0x12a78d(0x14d)](_0x3a5f0b=>_0x3a5f0b[_0x12a78d(0x18a)]===_0x55cad6[_0x12a78d(0x1f8)])||null;if(_0x5a7a66['VSDba'](isUndefined,_0x5393ee))_0x5a7a66['QZPbv'](_0x5a7a66[_0x12a78d(0x159)],_0x5a7a66[_0x12a78d(0x1f7)])?(_0x39a47b[_0x12a78d(0x1cc)](_0x5a7a66[_0x12a78d(0x20e)]),_0x3471a3[_0x12a78d(0x12f)](0x1)):(_0x48f077=_0x12a78d(0x1e1)+_0x55cad6[_0x12a78d(0x1f8)]+_0x12a78d(0x13a),await _0x5a7a66[_0x12a78d(0x19b)](reportToGalactusAndSendToEDS,_0x55cad6,_0x30db26,_0x48f077,messageTypes[_0x12a78d(0x1ec)],_0x5a7a66['oGvJc'],_0x5a7a66[_0x12a78d(0x1f4)],_0x5a7a66[_0x12a78d(0x17f)]),logger[_0x12a78d(0x1cc)](_0x48f077),process[_0x12a78d(0x12f)](0x1));else{if(_0x5a7a66['fkeAz'](_0x5a7a66[_0x12a78d(0x1fa)],_0x5a7a66[_0x12a78d(0x1fa)]))_0x179e5a=_0x5393ee;else{const _0x19b274={};_0x19b274[_0x12a78d(0x1fd)]=_0x5a7a66[_0x12a78d(0x163)],_0x19b274[_0x12a78d(0x188)]=_0x5a7a66['Rhxvj'];const _0x359ae7={};_0x359ae7[_0x12a78d(0x1fd)]=_0x5a7a66[_0x12a78d(0x209)],_0x359ae7[_0x12a78d(0x188)]=_0x5a7a66[_0x12a78d(0x168)];const _0x348a14={};_0x348a14[_0x12a78d(0x1fd)]=_0x5a7a66[_0x12a78d(0x15f)],_0x348a14[_0x12a78d(0x188)]=_0x5a7a66['Rhxvj'];const _0x1f47ab={};_0x1f47ab['description']=_0x5a7a66[_0x12a78d(0x1fb)],_0x1f47ab[_0x12a78d(0x188)]=_0x5a7a66[_0x12a78d(0x168)];const _0x302a8c={};return _0x302a8c['cluster-name']=_0x19b274,_0x302a8c['cloud-provider']=_0x359ae7,_0x302a8c[_0x12a78d(0x1e8)]=_0x348a14,_0x302a8c[_0x12a78d(0x1c3)]=_0x1f47ab,_0x1bdd05['usage'](_0x2daf88[_0x12a78d(0x214)])[_0x12a78d(0x12c)](_0xbc4225)[_0x12a78d(0x14a)](_0x302a8c)['help'](_0x5a7a66[_0x12a78d(0x142)])['argv'];}}}}else _0x5a7a66[_0x12a78d(0x153)](_0x5a7a66[_0x12a78d(0x19e)],_0x5a7a66[_0x12a78d(0x1a7)])?process[_0x12a78d(0x12f)](0x1):_0x41b93a[_0x12a78d(0x1cc)](_0x12a78d(0x133)+_0x1915bb[_0x12a78d(0x1cc)][_0x12a78d(0x1c0)]);const _0x204f63={};_0x204f63[_0x12a78d(0x188)]=WS_EVENTS[_0x12a78d(0x224)],_0x204f63[_0x12a78d(0x211)]=_0x5a7a66[_0x12a78d(0x191)],webSocketUtils[_0x12a78d(0x181)](_0x30db26,_0x204f63),global_registry[_0x12a78d(0x221)]=_0x179e5a[_0x12a78d(0x221)],global_registry['clusterRegion']=_0x179e5a[_0x12a78d(0x1e8)],global_registry[_0x12a78d(0x1c1)]=_0x179e5a[_0x12a78d(0x1c1)];}}else _0x5a7a66['qIelj'](_0x5a7a66['rSucX'],_0x5a7a66[_0x12a78d(0x219)])?(logger[_0x12a78d(0x1cc)](_0x5a7a66[_0x12a78d(0x20e)]),process['exit'](0x1)):_0x422ebe['exit'](0x1);}}}catch(_0x30b38d){_0x5a7a66['UqXUn'](_0x5a7a66[_0x12a78d(0x1a8)],_0x5a7a66[_0x12a78d(0x164)])?(_0x200b3c[_0x12a78d(0x17d)](_0x12a78d(0x1df)+_0xa3d1d4[_0x12a78d(0x223)]+'\x20'),_0x3d19c1[_0x12a78d(0x221)]=_0x3b83cc[_0x12a78d(0x223)]):(_0x48f077=_0x12a78d(0x13d)+_0x30b38d+':\x20'+_0x30b38d['stack'],logger[_0x12a78d(0x1cc)](_0x48f077),await _0x5a7a66[_0x12a78d(0x19b)](reportToGalactusAndSendToEDS,_0x55cad6,_0x30db26,_0x48f077,messageTypes[_0x12a78d(0x1ec)],_0x5a7a66['oGvJc'],_0x5a7a66[_0x12a78d(0x15b)],_0x5a7a66['kgpCY']),process[_0x12a78d(0x12f)](0x1));}}function printResponse(_0x379ea5,_0x214ff3){const _0xaa621=a17_0x141952,_0x1dcea2={};_0x1dcea2[_0xaa621(0x20a)]=function(_0xd5f9b2,_0x2f19e4){return _0xd5f9b2!==_0x2f19e4;},_0x1dcea2[_0xaa621(0x152)]='eyVdY';const _0x5ed5c5=_0x1dcea2;logger[_0xaa621(0x17d)]('['+_0x379ea5+_0xaa621(0x184)+_0x214ff3[_0xaa621(0x203)]+'\x20data\x20:\x20'+_0x214ff3[_0xaa621(0x182)]+'\x20error\x20:\x20'+_0x214ff3['error']),_0x214ff3[_0xaa621(0x1cc)]&&(_0x5ed5c5[_0xaa621(0x20a)](_0x5ed5c5[_0xaa621(0x152)],_0x5ed5c5[_0xaa621(0x152)])?(_0x42ea21[_0xaa621(0x17d)]('['+_0x34ab8d+']\x20status\x20:\x20'+_0x2fdf5f['status']+_0xaa621(0x1b2)+_0x135675[_0xaa621(0x182)]+_0xaa621(0x155)+_0x50505a[_0xaa621(0x1cc)]),_0x355376['error']&&_0x2468a2[_0xaa621(0x1cc)](_0xaa621(0x133)+_0x1860b0['error'][_0xaa621(0x1c0)])):logger['error'](_0xaa621(0x133)+_0x214ff3['error'][_0xaa621(0x1c0)]));}async function generateReport(_0xf29445,_0x55be01){const _0x334c3f=a17_0x141952,_0x104e0a={'ppljk':function(_0x2c61ea,_0x2a465b){return _0x2c61ea+_0x2a465b;},'UqXJC':_0x334c3f(0x1e2),'iAbwB':_0x334c3f(0x1f0),'mBrYW':function(_0x6653ce,_0x1d6c1a){return _0x6653ce||_0x1d6c1a;},'oZzYQ':_0x334c3f(0x1b1),'pRhMJ':_0x334c3f(0x16a),'yzGJJ':'Cluster\x20details\x0a-----------------------\x0a','VUtKD':function(_0x463a6f,_0x59f890){return _0x463a6f!=_0x59f890;},'mrUGb':_0x334c3f(0x150),'Rtvny':'will\x20be\x20created','TRYUy':function(_0x26b80a){return _0x26b80a();}};let _0x46af09=_0x334c3f(0x1a2)+global_registry[_0x334c3f(0x221)]+'\x20===\x0a\x0a';return _0xf29445[_0x334c3f(0x14c)]((_0x57f26c,_0x52d46f)=>{const _0x3373d2=_0x334c3f,{header:_0x518419,response:_0x3a4474}=_0x57f26c,{status:_0x5b4438,data:_0x21f888,error:_0x4664a7}=_0x3a4474;_0x46af09+=_0x518419+'\x20#'+_0x104e0a['ppljk'](_0x52d46f,0x1)+'\x0a',_0x46af09+=_0x3373d2(0x1b7)+(_0x5b4438?_0x104e0a[_0x3373d2(0x197)]:_0x104e0a[_0x3373d2(0x204)])+'\x0a',_0x46af09+=_0x3373d2(0x160)+_0x104e0a[_0x3373d2(0x16d)](_0x21f888,_0x104e0a[_0x3373d2(0x14f)])+'\x0a',_0x4664a7&&(_0x46af09+=_0x104e0a['pRhMJ'],_0x46af09+=_0x3373d2(0x193)+(_0x4664a7[_0x3373d2(0x211)]||_0x104e0a['oZzYQ'])+'\x0a',_0x46af09+=_0x3373d2(0x1f3)+(_0x4664a7['code']||_0x104e0a['oZzYQ'])+'\x0a',_0x46af09+=_0x3373d2(0x1cb)+(_0x4664a7[_0x3373d2(0x1c0)]||_0x104e0a[_0x3373d2(0x14f)])+'\x0a'),_0x46af09+='\x0a\x0a';}),_0x46af09+=_0x104e0a[_0x334c3f(0x171)],_0x104e0a[_0x334c3f(0x217)](_0x55be01,null)?_0x46af09+=_0x334c3f(0x185)+global_registry[_0x334c3f(0x1c1)]+'\x20'+(_0x55be01?_0x104e0a[_0x334c3f(0x148)]:_0x104e0a['Rtvny'])+'\x0a\x0a':_0x46af09+=_0x334c3f(0x185)+global_registry[_0x334c3f(0x1c1)]+_0x334c3f(0x21e),_0x46af09+=_0x104e0a[_0x334c3f(0x1c5)](getSystemMetaData),_0x46af09;};exports[a17_0x141952(0x1f5)]=async function(_0x1ab442){const _0x1e0f19=a17_0x141952,_0x72c15={'wsCEh':function(_0x1a916c){return _0x1a916c();},'VhqVq':function(_0x4a89f7){return _0x4a89f7();},'PPkdp':_0x1e0f19(0x1da),'IRMNE':function(_0x2db97a,_0x1d7148,_0x33d6fe,_0x93d100,_0x524d1e,_0x59e576,_0x167602,_0x178251){return _0x2db97a(_0x1d7148,_0x33d6fe,_0x93d100,_0x524d1e,_0x59e576,_0x167602,_0x178251);},'OrxfK':'pre-check-grid-called','GVAkK':'credential-not-found','kxTuJ':_0x1e0f19(0x1cc),'isepE':function(_0x59af8f,_0xc7a7af,_0x1191cd,_0x548376,_0x546731,_0x5ab1ba,_0x576643){return _0x59af8f(_0xc7a7af,_0x1191cd,_0x548376,_0x546731,_0x5ab1ba,_0x576643);},'mvFID':'<UsernamePlaceholder>','xKqvM':_0x1e0f19(0x192),'OqUwa':function(_0xe5bfb3,_0x306030,_0x4bc8e1){return _0xe5bfb3(_0x306030,_0x4bc8e1);},'DCuze':function(_0x527d90,_0x5a71de,_0x3a6d08,_0x1c1c37,_0x16c206,_0x1f2949,_0x34b7ca){return _0x527d90(_0x5a71de,_0x3a6d08,_0x1c1c37,_0x16c206,_0x1f2949,_0x34b7ca);},'qjfmB':'dummy-grid','XNtBp':_0x1e0f19(0x1de),'IayCL':_0x1e0f19(0x1ab),'qXADz':'accessResp','byBIK':function(_0x45d083){return _0x45d083();},'bwPiR':'isTrialGridAccessible','yaBWg':function(_0x171d0d,_0x5aa6cf){return _0x171d0d(_0x5aa6cf);},'gBiAy':_0x1e0f19(0x1ff),'WarVj':'isTls1_2_SUPPORTED','OgpEt':_0x1e0f19(0x176),'UWaao':_0x1e0f19(0x202),'XFkpS':'Whitelisted\x20browserstack','QcJwu':'SSL\x20Configured','HRrlz':function(_0x4d4a22,_0x31d0a5){return _0x4d4a22+_0x31d0a5;},'IkElr':_0x1e0f19(0x18c),'pcGyg':function(_0x22ad01,_0x45f41a,_0x32f0da,_0x264e5d,_0x163efa,_0x5381af,_0x310987){return _0x22ad01(_0x45f41a,_0x32f0da,_0x264e5d,_0x163efa,_0x5381af,_0x310987);},'HHILK':_0x1e0f19(0x216)};let _0x27ee9d,_0x50d90c;try{global_registry['requestId']=_0x72c15[_0x1e0f19(0x19a)](uuidv4);!fs[_0x1e0f19(0x20d)](_0x72c15['VhqVq'](getCredentialsPath))&&(_0x50d90c=_0x72c15[_0x1e0f19(0x1dd)],logger[_0x1e0f19(0x1cc)](_0x50d90c),await _0x72c15[_0x1e0f19(0x1f2)](reportToGalactusAndSendToEDS,_0x1ab442,_0x27ee9d,_0x50d90c,messageTypes['ERROR'],_0x72c15[_0x1e0f19(0x16c)],_0x72c15['GVAkK'],_0x72c15[_0x1e0f19(0x1a9)]),process[_0x1e0f19(0x12f)](0x1));_0x72c15[_0x1e0f19(0x15c)](sendInstrumentationEvent,_0x1ab442,_0x72c15['OrxfK'],messageTypes[_0x1e0f19(0x173)],null,null,_0x1ab442);const _0x199524=JSON[_0x1e0f19(0x1ae)](fs[_0x1e0f19(0x15e)](_0x72c15[_0x1e0f19(0x19a)](getCredentialsPath)));global_registry[_0x1e0f19(0x1fc)]=_0x199524[_0x1e0f19(0x165)][_0x1e0f19(0x210)],global_registry[_0x1e0f19(0x1db)]=_0x199524['Browserstack'][_0x1e0f19(0x222)];const _0x4403e5=WS_ENDPOINT[_0x1e0f19(0x1d5)](_0x72c15[_0x1e0f19(0x21b)],_0x199524[_0x1e0f19(0x165)]['username'])[_0x1e0f19(0x1d5)](_0x72c15[_0x1e0f19(0x208)],_0x199524[_0x1e0f19(0x165)]['password']),_0x4611ee={};_0x4611ee[_0x1e0f19(0x1bf)]=ws,_0x4611ee['connectionTimeout']=0x36ee80,_0x27ee9d=new ReconnectingWebSocket(_0x4403e5,[],_0x4611ee),global_registry[_0x1e0f19(0x1ee)]=_0x72c15[_0x1e0f19(0x144)](getAuthHeader,global_registry[_0x1e0f19(0x1fc)],global_registry[_0x1e0f19(0x1db)]),await _0x72c15['OqUwa'](inputValidation,_0x1ab442,_0x27ee9d),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x1e0f19(0x221)]+'\x20region\x20-\x20'+global_registry[_0x1e0f19(0x1ac)]);let _0x5c3de3=await _0x72c15[_0x1e0f19(0x1a4)](getCloudProviderObjectWithOutInit,global_registry[_0x1e0f19(0x221)],global_registry[_0x1e0f19(0x1c1)],_0x72c15['qjfmB'],_0x27ee9d,webSocketUtils,_0x1ab442);const _0x45ea84=await _0x5c3de3[_0x1e0f19(0x1d7)]();_0x72c15['OqUwa'](printResponse,_0x72c15[_0x1e0f19(0x134)],_0x45ea84),_0x5c3de3=await _0x5c3de3[_0x1e0f19(0x187)]();let _0x3e1a83=![];try{_0x3e1a83=await _0x5c3de3[_0x1e0f19(0x131)]();}catch(_0x43b6a6){const _0x4040de=_0x72c15[_0x1e0f19(0x1d8)][_0x1e0f19(0x154)]('|');let _0xf8c6b9=0x0;while(!![]){switch(_0x4040de[_0xf8c6b9++]){case'0':await _0x72c15[_0x1e0f19(0x1f2)](reportToGalactusAndSendToEDS,_0x1ab442,_0x27ee9d,_0x50d90c,messageTypes[_0x1e0f19(0x1ec)],_0x72c15[_0x1e0f19(0x16c)],_0x1e0f19(0x1b4)+global_registry[_0x1e0f19(0x221)],_0x72c15[_0x1e0f19(0x1a9)]);continue;case'1':logger['error'](_0x50d90c);continue;case'2':_0x50d90c=_0x1e0f19(0x16f)+global_registry[_0x1e0f19(0x1c1)]+_0x1e0f19(0x141)+global_registry['clusterRegion']+_0x1e0f19(0x146)+_0x43b6a6;continue;case'3':_0x3e1a83=null;continue;case'4':_0x50d90c+='\x0a'+JSON[_0x1e0f19(0x1d0)](_0x43b6a6[_0x1e0f19(0x1c0)]);continue;}break;}}_0x3e1a83&&logger['info']('Cluster\x20`'+global_registry[_0x1e0f19(0x1c1)]+_0x1e0f19(0x174));const _0x251a4f=await _0x5c3de3[_0x1e0f19(0x212)]();_0x72c15[_0x1e0f19(0x144)](printResponse,_0x72c15['qXADz'],_0x251a4f);const _0x2c9e99=await _0x72c15['byBIK'](curlRequest);_0x72c15[_0x1e0f19(0x144)](printResponse,_0x72c15[_0x1e0f19(0x170)],_0x2c9e99);const _0x1b861d=await _0x72c15['yaBWg'](isTlsSupported,_0x72c15[_0x1e0f19(0x1ed)]);_0x72c15[_0x1e0f19(0x144)](printResponse,_0x72c15['WarVj'],_0x1b861d);const _0x406fe5={};_0x406fe5[_0x1e0f19(0x16e)]=_0x72c15[_0x1e0f19(0x132)],_0x406fe5['response']=_0x45ea84;const _0x2d11c3={};_0x2d11c3[_0x1e0f19(0x16e)]=_0x72c15[_0x1e0f19(0x1d6)],_0x2d11c3[_0x1e0f19(0x1b0)]=_0x251a4f;const _0x455057={};_0x455057[_0x1e0f19(0x16e)]=_0x72c15[_0x1e0f19(0x156)],_0x455057[_0x1e0f19(0x1b0)]=_0x2c9e99;const _0x23798f={};_0x23798f[_0x1e0f19(0x16e)]=_0x72c15[_0x1e0f19(0x1b3)],_0x23798f[_0x1e0f19(0x1b0)]=_0x1b861d;const _0x4c6afa=[_0x406fe5,_0x2d11c3,_0x455057,_0x23798f],_0x248934=await _0x72c15[_0x1e0f19(0x144)](generateReport,_0x4c6afa,_0x3e1a83),_0x154003=new Date(),_0x5c4eb3=_0x154003['getUTCFullYear']()+'_'+_0x72c15[_0x1e0f19(0x1bc)](_0x154003[_0x1e0f19(0x1cf)](),0x1)+'_'+_0x154003['getUTCDate']()+'_'+_0x154003[_0x1e0f19(0x172)]()+'_'+_0x154003[_0x1e0f19(0x218)](),_0x205f0e=_0x1e0f19(0x138)+_0x5c4eb3+_0x1e0f19(0x1b8);fs[_0x1e0f19(0x18d)](_0x205f0e,_0x248934,_0x72c15['IkElr']),logger[_0x1e0f19(0x17d)](_0x1e0f19(0x1d9)+_0x205f0e),process[_0x1e0f19(0x12f)](0x0);}catch(_0x17fe9d){let _0x109152=_0x1e0f19(0x1f9)+_0x17fe9d+'\x20';logger[_0x1e0f19(0x1cc)](_0x109152),_0x109152+='\x0a'+JSON[_0x1e0f19(0x1d0)](_0x17fe9d['stack']),logger[_0x1e0f19(0x1d3)](_0x1e0f19(0x1d4)+_0x17fe9d[_0x1e0f19(0x1c0)]);if(_0x27ee9d){const _0x25613f={};_0x25613f['type']=WS_EVENTS[_0x1e0f19(0x224)],_0x25613f[_0x1e0f19(0x211)]=_0x109152,webSocketUtils[_0x1e0f19(0x181)](_0x27ee9d,_0x25613f,_0x72c15[_0x1e0f19(0x1a9)],!![]);}await webSocketUtils[_0x1e0f19(0x190)](0x7d0);const _0x50eb4f={};_0x50eb4f[_0x1e0f19(0x1cc)]=_0x109152,await _0x72c15['pcGyg'](sendInstrumentationEvent,_0x1ab442,_0x72c15[_0x1e0f19(0x16c)],messageTypes[_0x1e0f19(0x1ec)],_0x72c15[_0x1e0f19(0x20b)],_0x50eb4f,_0x1ab442),process[_0x1e0f19(0x12f)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x50a5f4=a18_0x48b4;function a18_0x48b4(_0x1e36c3,_0x5e74d7){const _0x4d575e=a18_0x4d57();return a18_0x48b4=function(_0x48b419,_0x3631dd){_0x48b419=_0x48b419-0x108;let _0x3a24cb=_0x4d575e[_0x48b419];return _0x3a24cb;},a18_0x48b4(_0x1e36c3,_0x5e74d7);}(function(_0x4880e9,_0x97d754){const _0x1e120e=a18_0x48b4,_0x2324c4=_0x4880e9();while(!![]){try{const _0x3cc1ef=-parseInt(_0x1e120e(0x10d))/0x1+-parseInt(_0x1e120e(0x10b))/0x2+parseInt(_0x1e120e(0x118))/0x3*(-parseInt(_0x1e120e(0x112))/0x4)+parseInt(_0x1e120e(0x110))/0x5*(-parseInt(_0x1e120e(0x108))/0x6)+parseInt(_0x1e120e(0x117))/0x7+parseInt(_0x1e120e(0x115))/0x8*(parseInt(_0x1e120e(0x119))/0x9)+parseInt(_0x1e120e(0x11a))/0xa*(parseInt(_0x1e120e(0x10a))/0xb);if(_0x3cc1ef===_0x97d754)break;else _0x2324c4['push'](_0x2324c4['shift']());}catch(_0x163369){_0x2324c4['push'](_0x2324c4['shift']());}}}(a18_0x4d57,0xa8042));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x50a5f4(0x114));exports[a18_0x50a5f4(0x10f)]='start',exports[a18_0x50a5f4(0x111)]=a18_0x50a5f4(0x11b),exports['builder']=function(_0x2c640a){const _0x2e8cfc=a18_0x50a5f4,_0x410e8e={};_0x410e8e[_0x2e8cfc(0x109)]=_0x2e8cfc(0x11c),_0x410e8e['NGgDP']='help';const _0x381d50=_0x410e8e;return _0x2c640a[_0x2e8cfc(0x113)](HELP_HEADER_MESSAGE['start'])[_0x2e8cfc(0x10e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x381d50[_0x2e8cfc(0x109)])[_0x2e8cfc(0x11e)]()['recommendCommands']()[_0x2e8cfc(0x10c)]()['help'](_0x381d50[_0x2e8cfc(0x11d)]);},exports[a18_0x50a5f4(0x116)]=function(_0x8bf47d){};function a18_0x4d57(){const _0x415939=['5CwpdvI','desc','4EmrODl','usage','../config/constants','112DoNqBM','handler','714938syUSJz','4012863yHvdWY','744687UwkTaI','110YtuRiX','Start\x20an\x20existing\x20Automation\x20grid.','start_commands','NGgDP','demandCommand','7534836mIteRs','bVujP','4174269NIvKDh','2458830nAPhie','strict','923769dNQvUg','epilogue','command'];a18_0x4d57=function(){return _0x415939;};return a18_0x4d57();}
1
+ function a18_0x44e3(_0x2e4380,_0x17ab5b){const _0x51d4d1=a18_0x51d4();return a18_0x44e3=function(_0x44e397,_0xe13d8a){_0x44e397=_0x44e397-0x176;let _0x3d2c74=_0x51d4d1[_0x44e397];return _0x3d2c74;},a18_0x44e3(_0x2e4380,_0x17ab5b);}function a18_0x51d4(){const _0x2b8cd7=['VZglo','command','10ACxjrY','usage','1950849kcHekX','kkGLz','229031EHDprb','164328BGhxro','199822RCMdXn','handler','187912DOqVIS','epilogue','recommendCommands','start','commandDir','252ffEosV','21jEkqNg','366PHwNvv','5037msAJqr','12585HpFLxP','builder','strict','help','Start\x20an\x20existing\x20Automation\x20grid.','77PNRtol'];a18_0x51d4=function(){return _0x2b8cd7;};return a18_0x51d4();}const a18_0x3879df=a18_0x44e3;(function(_0x40ff05,_0x3b280f){const _0x1f4dbf=a18_0x44e3,_0x29069c=_0x40ff05();while(!![]){try{const _0x1c54d0=parseInt(_0x1f4dbf(0x188))/0x1+parseInt(_0x1f4dbf(0x17e))/0x2+-parseInt(_0x1f4dbf(0x186))/0x3*(-parseInt(_0x1f4dbf(0x17d))/0x4)+-parseInt(_0x1f4dbf(0x189))/0x5*(-parseInt(_0x1f4dbf(0x187))/0x6)+parseInt(_0x1f4dbf(0x18e))/0x7*(parseInt(_0x1f4dbf(0x180))/0x8)+parseInt(_0x1f4dbf(0x17a))/0x9*(-parseInt(_0x1f4dbf(0x178))/0xa)+-parseInt(_0x1f4dbf(0x17c))/0xb*(parseInt(_0x1f4dbf(0x185))/0xc);if(_0x1c54d0===_0x3b280f)break;else _0x29069c['push'](_0x29069c['shift']());}catch(_0x454e17){_0x29069c['push'](_0x29069c['shift']());}}}(a18_0x51d4,0x24ba4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x3879df(0x177)]=a18_0x3879df(0x183),exports['desc']=a18_0x3879df(0x18d),exports[a18_0x3879df(0x18a)]=function(_0x4226e6){const _0x4b1ef8=a18_0x3879df,_0x58a2df={};_0x58a2df[_0x4b1ef8(0x176)]='start_commands',_0x58a2df[_0x4b1ef8(0x17b)]=_0x4b1ef8(0x18c);const _0x39cfb3=_0x58a2df;return _0x4226e6[_0x4b1ef8(0x179)](HELP_HEADER_MESSAGE['start'])[_0x4b1ef8(0x181)](HELP_FOOTER_MESSAGE)[_0x4b1ef8(0x184)](_0x39cfb3['VZglo'])['demandCommand']()[_0x4b1ef8(0x182)]()[_0x4b1ef8(0x18b)]()[_0x4b1ef8(0x18c)](_0x39cfb3[_0x4b1ef8(0x17b)]);},exports[a18_0x3879df(0x17f)]=function(_0xb63c13){};
@@ -1 +1 @@
1
- const a19_0x2d4045=a19_0x73ca;function a19_0x15d5(){const _0x196804=['error','gridId','name','desc','KVCNA','password','../../config/constants','UPvBv','addListeners','start','1199635IVLYjZ','existsSync','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../utils/webSocketUtils','7678mwStwg','727692oVEVrL','yJzoI','options','skipTlsCertVerify','clusterRegion','../../utils/utilityMethods','replace','6dbLhfS','3868725iNfqTa','RfNzL','start-grid-called','4dpKIlM','epilogue','connectionTimeout','unauthorised','handler','boolean','<PasswordPlaceholder>','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','PibIS','uvcfR','skip-tls-cert-verify','statusCode','Skip\x20insecure\x20cert\x20verification.','suwXZ','builder','mWRiK','JyFWh','Grid\x20started','command','ERROR','9090DuGAmW','Ylmdq','server-error','username','bstackAccesskey','INFO','default','Vaqgt','argv','../../config/logger','7144lcdBxB','stack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','invalid-grid-id','EHgpA','parse','FPhpe','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','info','LeRRS','readFileSync','zvxgE','btJpL','clusterName','reconnecting-websocket','VjrQI','460329ZOHnio','aAQvK','GQjoN','grid','stringify','cloudProvider','bCkIo','grid-id','uWthm','WebSocket','10176tuVbSS','exit','user','Starting\x20grid\x20','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','type','yuXGd','Browserstack','Start\x20an\x20existing\x20Automation\x20grid.','HyYzB','530300gxzcMR','../../utils/gridComponents','xNrrK','<UsernamePlaceholder>','uImny','6UOfrMw'];a19_0x15d5=function(){return _0x196804;};return a19_0x15d5();}(function(_0xf5b797,_0x326d2d){const _0x46a36e=a19_0x73ca,_0x55a693=_0xf5b797();while(!![]){try{const _0x3d67c2=parseInt(_0x46a36e(0x16c))/0x1+-parseInt(_0x46a36e(0x15c))/0x2*(-parseInt(_0x46a36e(0x142))/0x3)+-parseInt(_0x46a36e(0x177))/0x4*(-parseInt(_0x46a36e(0x167))/0x5)+-parseInt(_0x46a36e(0x173))/0x6*(-parseInt(_0x46a36e(0x174))/0x7)+parseInt(_0x46a36e(0x132))/0x8*(-parseInt(_0x46a36e(0x18c))/0x9)+parseInt(_0x46a36e(0x157))/0xa+-parseInt(_0x46a36e(0x16b))/0xb*(parseInt(_0x46a36e(0x14c))/0xc);if(_0x3d67c2===_0x326d2d)break;else _0x55a693['push'](_0x55a693['shift']());}catch(_0x511fc0){_0x55a693['push'](_0x55a693['shift']());}}}(a19_0x15d5,0x83cab));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2d4045(0x140)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2d4045(0x163)),{logger}=require(a19_0x2d4045(0x131)),{getCredentialsPath,getGridDetails}=require(a19_0x2d4045(0x171)),{scaleUpHubDeployment}=require(a19_0x2d4045(0x158)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x2d4045(0x16a)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x73ca(_0x87c1e6,_0x340b15){const _0x15d5b6=a19_0x15d5();return a19_0x73ca=function(_0x73caa0,_0x10fc99){_0x73caa0=_0x73caa0-0x12a;let _0x2699d1=_0x15d5b6[_0x73caa0];return _0x2699d1;},a19_0x73ca(_0x87c1e6,_0x340b15);}exports[a19_0x2d4045(0x18a)]=a19_0x2d4045(0x145),exports[a19_0x2d4045(0x160)]=a19_0x2d4045(0x155),exports[a19_0x2d4045(0x186)]=function(_0x3f4ac0){const _0x567117=a19_0x2d4045,_0x28f68c={};_0x28f68c[_0x567117(0x181)]=_0x567117(0x169),_0x28f68c['GQjoN']='string',_0x28f68c['uWthm']=_0x567117(0x184),_0x28f68c[_0x567117(0x188)]=_0x567117(0x17c),_0x28f68c[_0x567117(0x15b)]=_0x567117(0x150);const _0x54faf9=_0x28f68c,_0x5b6a39={};_0x5b6a39['description']=_0x54faf9['uvcfR'],_0x5b6a39['type']=_0x54faf9[_0x567117(0x144)];const _0x1e1418={};_0x1e1418['description']=_0x54faf9[_0x567117(0x14a)],_0x1e1418[_0x567117(0x152)]=_0x54faf9[_0x567117(0x188)],_0x1e1418[_0x567117(0x12e)]=![];const _0x292c6a={};return _0x292c6a[_0x567117(0x149)]=_0x5b6a39,_0x292c6a[_0x567117(0x182)]=_0x1e1418,_0x3f4ac0['usage'](HELP_HEADER_MESSAGE[_0x567117(0x166)])[_0x567117(0x178)](HELP_FOOTER_MESSAGE)[_0x567117(0x16e)](_0x292c6a)[_0x567117(0x150)](_0x54faf9[_0x567117(0x15b)])[_0x567117(0x130)];},exports[a19_0x2d4045(0x17b)]=async function(_0x4b51e9){const _0x83c500=a19_0x2d4045,_0x277236={'EHgpA':_0x83c500(0x134),'RfNzL':function(_0x4c4a9a){return _0x4c4a9a();},'FPhpe':_0x83c500(0x17f),'UPvBv':function(_0x1f5e59,_0x8a231,_0x15ffc6,_0x18512c,_0x5c9591,_0x49006d,_0x121f71){return _0x1f5e59(_0x8a231,_0x15ffc6,_0x18512c,_0x5c9591,_0x49006d,_0x121f71);},'yuXGd':_0x83c500(0x176),'Ylmdq':'init-not-called','LeRRS':function(_0x235dd9,_0x4c88e7,_0x5c565b,_0x4dec43,_0x465469,_0x21c8ab,_0x12c1fd){return _0x235dd9(_0x4c88e7,_0x5c565b,_0x4dec43,_0x465469,_0x21c8ab,_0x12c1fd);},'mWRiK':function(_0x1a554e){return _0x1a554e();},'KVCNA':_0x83c500(0x15a),'vwBiY':_0x83c500(0x17d),'UmDva':'Adding\x20Websocket\x20listeners','xNrrK':function(_0x4befeb,_0xb512f4,_0x2cb98d,_0x5775b0){return _0x4befeb(_0xb512f4,_0x2cb98d,_0x5775b0);},'suwXZ':function(_0x57e69d,_0x512d54,_0x3810f3,_0x146614,_0x407000,_0x4b24f5,_0x5f1ada){return _0x57e69d(_0x512d54,_0x3810f3,_0x146614,_0x407000,_0x4b24f5,_0x5f1ada);},'yJzoI':function(_0x48915d,_0x3a8ebc,_0x5ae044){return _0x48915d(_0x3a8ebc,_0x5ae044);},'bCkIo':function(_0x5e1ca3,_0x443c60,_0x4d41b8){return _0x5e1ca3(_0x443c60,_0x4d41b8);},'Vaqgt':_0x83c500(0x189),'HyYzB':function(_0x3d9c78,_0x360a40){return _0x3d9c78===_0x360a40;},'VjrQI':_0x83c500(0x151),'btJpL':_0x83c500(0x17a),'PibIS':_0x83c500(0x135),'zvxgE':function(_0x2030d1,_0x3ccebf,_0x549f86,_0x34db9c,_0xc5f4a8,_0x282067,_0x3e2469){return _0x2030d1(_0x3ccebf,_0x549f86,_0x34db9c,_0xc5f4a8,_0x282067,_0x3e2469);},'aAQvK':_0x83c500(0x12a)};let _0x47797c;try{!_0x4b51e9[_0x83c500(0x15e)]&&(logger[_0x83c500(0x15d)](_0x277236[_0x83c500(0x136)]),process['exit'](0x1));!fs[_0x83c500(0x168)](_0x277236[_0x83c500(0x175)](getCredentialsPath))&&(logger[_0x83c500(0x15d)](_0x277236[_0x83c500(0x138)]),await _0x277236[_0x83c500(0x164)](sendInstrumentationEvent,_0x4b51e9,_0x277236[_0x83c500(0x153)],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x18d)],null,_0x4b51e9),process['exit'](0x1));logger[_0x83c500(0x13a)](_0x83c500(0x14f)+_0x4b51e9[_0x83c500(0x15e)]),await _0x277236[_0x83c500(0x13b)](sendInstrumentationEvent,_0x4b51e9,_0x277236[_0x83c500(0x153)],messageTypes[_0x83c500(0x12d)],null,null,_0x4b51e9);const _0x55e5b6=JSON[_0x83c500(0x137)](fs[_0x83c500(0x13c)](_0x277236[_0x83c500(0x187)](getCredentialsPath)));global_registry[_0x83c500(0x17e)]=_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x12b)],global_registry[_0x83c500(0x12c)]=_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x162)];const _0x5a1e7f=WS_ENDPOINT[_0x83c500(0x172)](_0x277236[_0x83c500(0x161)],_0x55e5b6[_0x83c500(0x154)]['username'])['replace'](_0x277236['vwBiY'],_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x162)]),_0x1bdc80={};_0x1bdc80[_0x83c500(0x14b)]=ws,_0x1bdc80[_0x83c500(0x179)]=0x36ee80,_0x47797c=new ReconnectingWebSocket(_0x5a1e7f,[],_0x1bdc80),logger['debug'](_0x277236['UmDva']),webSocketUtils[_0x83c500(0x165)](_0x47797c,_0x4b51e9[_0x83c500(0x14e)],_0x4b51e9[_0x83c500(0x162)]);const [_0x21243e,_0x4fdb12]=await _0x277236[_0x83c500(0x159)](getGridDetails,_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x12b)],_0x55e5b6['Browserstack']['password'],_0x4b51e9['gridId']);if(_0x4fdb12){const _0x104a16=_0x4fdb12[_0x83c500(0x13a)];global_registry['cloudProvider']=_0x104a16[_0x83c500(0x147)],global_registry[_0x83c500(0x170)]=_0x104a16['region'],global_registry['clusterName']=_0x104a16[_0x83c500(0x13f)];const _0x302e0f=await _0x277236[_0x83c500(0x185)](getCloudProviderObject,_0x104a16[_0x83c500(0x147)],_0x104a16['clusterName'],_0x104a16[_0x83c500(0x15f)],_0x47797c,webSocketUtils,_0x4b51e9),[_0x13baca,_0xeea59f,_0x83baee,_0x15fb3b,_0x5b7bcc,_0x497ec1]=await _0x277236[_0x83c500(0x16d)](createK8sClient,_0x302e0f,_0x4b51e9[_0x83c500(0x16f)]);await _0x277236[_0x83c500(0x148)](scaleUpHubDeployment,_0xeea59f,_0x104a16[_0x83c500(0x15f)]),logger[_0x83c500(0x13a)](_0x277236[_0x83c500(0x12f)]),process[_0x83c500(0x14d)](0x0);}_0x277236[_0x83c500(0x156)](_0x21243e[_0x83c500(0x183)],0x191)&&(logger['error'](_0x277236[_0x83c500(0x141)]),await _0x277236[_0x83c500(0x13b)](sendInstrumentationEvent,_0x4b51e9,_0x277236['yuXGd'],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x13e)],null,_0x4b51e9),process[_0x83c500(0x14d)](0x1)),_0x277236[_0x83c500(0x156)](_0x21243e['statusCode'],0x190)&&(logger[_0x83c500(0x15d)](JSON[_0x83c500(0x137)](_0x21243e['body'])['message']),await _0x277236[_0x83c500(0x164)](sendInstrumentationEvent,_0x4b51e9,_0x277236['yuXGd'],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x180)],null,_0x4b51e9),process[_0x83c500(0x14d)](0x1)),logger[_0x83c500(0x15d)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x21243e)),await _0x277236[_0x83c500(0x13d)](sendInstrumentationEvent,_0x4b51e9,_0x277236[_0x83c500(0x153)],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x143)],_0x21243e,_0x4b51e9),process[_0x83c500(0x14d)](0x1);}catch(_0x314df7){const _0x4ef75f=_0x83c500(0x139)+_0x314df7+'\x20\x0a'+JSON[_0x83c500(0x146)](_0x314df7[_0x83c500(0x133)])+'\x20';logger[_0x83c500(0x15d)](_0x4ef75f),process[_0x83c500(0x14d)](0x1);}};
1
+ function a19_0x5d40(_0x42a05a,_0x27a35d){const _0x4977f6=a19_0x4977();return a19_0x5d40=function(_0x5d4022,_0x2f5ce6){_0x5d4022=_0x5d4022-0xd5;let _0x4f9447=_0x4977f6[_0x5d4022];return _0x4f9447;},a19_0x5d40(_0x42a05a,_0x27a35d);}function a19_0x4977(){const _0x106629=['command','description','../../utils/createk8sClient','builder','options','stack','Adding\x20Websocket\x20listeners','connectionTimeout','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','zTWjY','axFdd','../../utils/webSocketUtils','start-grid-called','<UsernamePlaceholder>','../../utils/utilityMethods','replace','24465384kXucni','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qPWtH','unauthorised','1189260YgebKn','invalid-grid-id','clusterName','eMBwZ','skip-tls-cert-verify','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Starting\x20grid\x20','Skip\x20insecure\x20cert\x20verification.','epilogue','../../config/constants','stringify','Obbgs','gridId','Grid\x20started','JUWvV','reconnecting-websocket','154333KoPXjb','Start\x20an\x20existing\x20Automation\x20grid.','statusCode','rKmYW','NOMlz','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../config/logger','LTdLf','boolean','exit','Browserstack','region','debug','3345144SqqOed','cloudProvider','1538915TnShrN','dsedm','error','default','parse','existsSync','clusterRegion','7477510zQYsDK','kkGJP','../../utils/gridComponents','KJYfX','247946KunwRJ','bstackUsername','grid','PHWIH','WebSocket','name','help','init-not-called','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','skipTlsCertVerify','body','argv','../../cloudproviders/utils','EYJsm','grid-id','server-error','aqzoa','jwjvh','username','sLVLr','hERfI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','readFileSync','desc','usage','user','ERROR','type','handler','QgRjL','password','9PFjBIT'];a19_0x4977=function(){return _0x106629;};return a19_0x4977();}const a19_0x120229=a19_0x5d40;(function(_0x4a8704,_0x2133cc){const _0x43760e=a19_0x5d40,_0x11e46b=_0x4a8704();while(!![]){try{const _0x4a7984=parseInt(_0x43760e(0x100))/0x1+-parseInt(_0x43760e(0x11a))/0x2*(-parseInt(_0x43760e(0xdb))/0x3)+-parseInt(_0x43760e(0x10d))/0x4+-parseInt(_0x43760e(0x116))/0x5+-parseInt(_0x43760e(0xf0))/0x6+-parseInt(_0x43760e(0x10f))/0x7+parseInt(_0x43760e(0xec))/0x8;if(_0x4a7984===_0x2133cc)break;else _0x11e46b['push'](_0x11e46b['shift']());}catch(_0x561374){_0x11e46b['push'](_0x11e46b['shift']());}}}(a19_0x4977,0xcbc16));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x120229(0xff)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x120229(0xf9)),{logger}=require(a19_0x120229(0x106)),{getCredentialsPath,getGridDetails}=require(a19_0x120229(0xea)),{scaleUpHubDeployment}=require(a19_0x120229(0x118)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x120229(0xe7)),{createK8sClient}=require(a19_0x120229(0xde)),{getCloudProviderObject}=require(a19_0x120229(0x126));exports[a19_0x120229(0xdc)]=a19_0x120229(0x11c),exports[a19_0x120229(0x132)]=a19_0x120229(0x101),exports[a19_0x120229(0xdf)]=function(_0x2d21e1){const _0x1f1a4a=a19_0x120229,_0x47ad24={};_0x47ad24[_0x1f1a4a(0x12a)]=_0x1f1a4a(0xe4),_0x47ad24[_0x1f1a4a(0x107)]='string',_0x47ad24['Obbgs']=_0x1f1a4a(0xf7),_0x47ad24[_0x1f1a4a(0xfe)]=_0x1f1a4a(0x108),_0x47ad24[_0x1f1a4a(0xf3)]=_0x1f1a4a(0x120);const _0x385514=_0x47ad24,_0x30a0e3={};_0x30a0e3[_0x1f1a4a(0xdd)]=_0x385514['aqzoa'],_0x30a0e3['type']=_0x385514['LTdLf'];const _0x2f2a2a={};_0x2f2a2a[_0x1f1a4a(0xdd)]=_0x385514[_0x1f1a4a(0xfb)],_0x2f2a2a[_0x1f1a4a(0xd7)]=_0x385514[_0x1f1a4a(0xfe)],_0x2f2a2a[_0x1f1a4a(0x112)]=![];const _0x15b46b={};return _0x15b46b[_0x1f1a4a(0x128)]=_0x30a0e3,_0x15b46b[_0x1f1a4a(0xf4)]=_0x2f2a2a,_0x2d21e1[_0x1f1a4a(0x133)](HELP_HEADER_MESSAGE['start'])[_0x1f1a4a(0xf8)](HELP_FOOTER_MESSAGE)[_0x1f1a4a(0xe0)](_0x15b46b)[_0x1f1a4a(0x120)](_0x385514[_0x1f1a4a(0xf3)])[_0x1f1a4a(0x125)];},exports[a19_0x120229(0xd8)]=async function(_0x581e10){const _0x368682=a19_0x120229,_0x50fe6d={'dsedm':_0x368682(0xf5),'KJYfX':function(_0x28b353){return _0x28b353();},'QgRjL':_0x368682(0xed),'rKmYW':function(_0x1aba26,_0x46aa04,_0x4b9fd3,_0x2addf1,_0x5d73ca,_0x4f5550,_0x1df0db){return _0x1aba26(_0x46aa04,_0x4b9fd3,_0x2addf1,_0x5d73ca,_0x4f5550,_0x1df0db);},'axFdd':_0x368682(0xe8),'kkGJP':_0x368682(0x121),'jwjvh':_0x368682(0xe9),'qPWtH':'<PasswordPlaceholder>','mnMgo':_0x368682(0xe2),'UiViu':function(_0x1a86f9,_0x4e9c4a,_0x4f1df8,_0x39d707){return _0x1a86f9(_0x4e9c4a,_0x4f1df8,_0x39d707);},'PHWIH':function(_0x4b2b69,_0x2c6875,_0x561244){return _0x4b2b69(_0x2c6875,_0x561244);},'CZPrd':function(_0x48f6f4,_0x12e5f8,_0x193625){return _0x48f6f4(_0x12e5f8,_0x193625);},'EYJsm':_0x368682(0xfd),'sLVLr':function(_0x5cfb98,_0x1f1764){return _0x5cfb98===_0x1f1764;},'expcO':_0x368682(0x12f),'NOMlz':_0x368682(0xef),'qljxH':function(_0xaffff8,_0x6c0ea9){return _0xaffff8===_0x6c0ea9;},'hERfI':function(_0x18c5c0,_0x46110a,_0x4d3365,_0x10471d,_0x61a838,_0x4a7692,_0x20afc0){return _0x18c5c0(_0x46110a,_0x4d3365,_0x10471d,_0x61a838,_0x4a7692,_0x20afc0);},'vHIBZ':_0x368682(0xf1),'zTWjY':_0x368682(0x129)};let _0x14c1f2;try{!_0x581e10[_0x368682(0xfc)]&&(logger[_0x368682(0x111)](_0x50fe6d[_0x368682(0x110)]),process[_0x368682(0x109)](0x1));!fs[_0x368682(0x114)](_0x50fe6d[_0x368682(0x119)](getCredentialsPath))&&(logger['error'](_0x50fe6d[_0x368682(0xd9)]),await _0x50fe6d[_0x368682(0x103)](sendInstrumentationEvent,_0x581e10,_0x50fe6d[_0x368682(0xe6)],messageTypes['ERROR'],_0x50fe6d[_0x368682(0x117)],null,_0x581e10),process[_0x368682(0x109)](0x1));logger[_0x368682(0x130)](_0x368682(0xf6)+_0x581e10[_0x368682(0xfc)]),await _0x50fe6d['rKmYW'](sendInstrumentationEvent,_0x581e10,_0x50fe6d[_0x368682(0xe6)],messageTypes['INFO'],null,null,_0x581e10);const _0x178762=JSON['parse'](fs[_0x368682(0x131)](_0x50fe6d[_0x368682(0x119)](getCredentialsPath)));global_registry[_0x368682(0x11b)]=_0x178762[_0x368682(0x10a)][_0x368682(0x12c)],global_registry['bstackAccesskey']=_0x178762[_0x368682(0x10a)][_0x368682(0xda)];const _0x13a794=WS_ENDPOINT['replace'](_0x50fe6d[_0x368682(0x12b)],_0x178762[_0x368682(0x10a)][_0x368682(0x12c)])[_0x368682(0xeb)](_0x50fe6d[_0x368682(0xee)],_0x178762[_0x368682(0x10a)][_0x368682(0xda)]),_0x43f8a7={};_0x43f8a7[_0x368682(0x11e)]=ws,_0x43f8a7[_0x368682(0xe3)]=0x36ee80,_0x14c1f2=new ReconnectingWebSocket(_0x13a794,[],_0x43f8a7),logger[_0x368682(0x10c)](_0x50fe6d['mnMgo']),webSocketUtils['addListeners'](_0x14c1f2,_0x581e10[_0x368682(0xd5)],_0x581e10[_0x368682(0xda)]);const [_0x4394cd,_0x144b54]=await _0x50fe6d['UiViu'](getGridDetails,_0x178762[_0x368682(0x10a)][_0x368682(0x12c)],_0x178762[_0x368682(0x10a)][_0x368682(0xda)],_0x581e10[_0x368682(0xfc)]);if(_0x144b54){const _0xf796dd=_0x144b54[_0x368682(0x130)];global_registry[_0x368682(0x10e)]=_0xf796dd['cloudProvider'],global_registry[_0x368682(0x115)]=_0xf796dd[_0x368682(0x10b)],global_registry[_0x368682(0xf2)]=_0xf796dd['clusterName'];const _0x5854d6=await _0x50fe6d[_0x368682(0x103)](getCloudProviderObject,_0xf796dd['cloudProvider'],_0xf796dd['clusterName'],_0xf796dd[_0x368682(0x11f)],_0x14c1f2,webSocketUtils,_0x581e10),[_0x1ee872,_0x270a1a,_0x3cc075,_0x2d2d2e,_0x5c05d6,_0x3ce7d3]=await _0x50fe6d[_0x368682(0x11d)](createK8sClient,_0x5854d6,_0x581e10[_0x368682(0x123)]);await _0x50fe6d['CZPrd'](scaleUpHubDeployment,_0x270a1a,_0xf796dd[_0x368682(0x11f)]),logger['info'](_0x50fe6d[_0x368682(0x127)]),process[_0x368682(0x109)](0x0);}_0x50fe6d[_0x368682(0x12d)](_0x4394cd[_0x368682(0x102)],0x191)&&(logger[_0x368682(0x111)](_0x50fe6d['expcO']),await _0x50fe6d[_0x368682(0x103)](sendInstrumentationEvent,_0x581e10,_0x50fe6d[_0x368682(0xe6)],messageTypes['ERROR'],_0x50fe6d[_0x368682(0x104)],null,_0x581e10),process['exit'](0x1)),_0x50fe6d['qljxH'](_0x4394cd[_0x368682(0x102)],0x190)&&(logger['error'](JSON[_0x368682(0x113)](_0x4394cd[_0x368682(0x124)])['message']),await _0x50fe6d[_0x368682(0x12e)](sendInstrumentationEvent,_0x581e10,_0x50fe6d[_0x368682(0xe6)],messageTypes['ERROR'],_0x50fe6d['vHIBZ'],null,_0x581e10),process[_0x368682(0x109)](0x1)),logger['error'](_0x368682(0x105)+JSON['stringify'](_0x4394cd)),await _0x50fe6d['rKmYW'](sendInstrumentationEvent,_0x581e10,_0x50fe6d[_0x368682(0xe6)],messageTypes[_0x368682(0xd6)],_0x50fe6d[_0x368682(0xe5)],_0x4394cd,_0x581e10),process[_0x368682(0x109)](0x1);}catch(_0x33f686){const _0x58293a=_0x368682(0x122)+_0x33f686+'\x20\x0a'+JSON[_0x368682(0xfa)](_0x33f686[_0x368682(0xe1)])+'\x20';logger[_0x368682(0x111)](_0x58293a),process[_0x368682(0x109)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x14c506=a20_0x226a;function a20_0x4e3c(){const _0x41be37=['handler','245RPnXLF','abGls','1674810WvQkkA','391167Ptvide','usage','desc','8011792gqGPpf','487359GEnsrf','70024eVibKD','stop','builder','Stop\x20a\x20running\x20Automation\x20grid.','1128768repBPp','recommendCommands','strict','demandCommand','5670756BoPogq','JINBH','help','../config/constants'];a20_0x4e3c=function(){return _0x41be37;};return a20_0x4e3c();}function a20_0x226a(_0x315633,_0x1ae08b){const _0x4e3c50=a20_0x4e3c();return a20_0x226a=function(_0x226a39,_0xd83cd0){_0x226a39=_0x226a39-0xa8;let _0x2842b3=_0x4e3c50[_0x226a39];return _0x2842b3;},a20_0x226a(_0x315633,_0x1ae08b);}(function(_0xd0693a,_0x1085f9){const _0x321bac=a20_0x226a,_0x582b65=_0xd0693a();while(!![]){try{const _0xd354e3=parseInt(_0x321bac(0xbc))/0x1+parseInt(_0x321bac(0xb0))/0x2+parseInt(_0x321bac(0xab))/0x3+parseInt(_0x321bac(0xac))/0x4*(parseInt(_0x321bac(0xb9))/0x5)+parseInt(_0x321bac(0xbb))/0x6+-parseInt(_0x321bac(0xb4))/0x7+-parseInt(_0x321bac(0xaa))/0x8;if(_0xd354e3===_0x1085f9)break;else _0x582b65['push'](_0x582b65['shift']());}catch(_0x18e9c5){_0x582b65['push'](_0x582b65['shift']());}}}(a20_0x4e3c,0x6c3d7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x14c506(0xb7));exports['command']='stop',exports[a20_0x14c506(0xa9)]=a20_0x14c506(0xaf),exports[a20_0x14c506(0xae)]=function(_0x117a6c){const _0x3919a0=a20_0x14c506,_0x57c0f5={};_0x57c0f5['abGls']='stop_commands',_0x57c0f5[_0x3919a0(0xb5)]=_0x3919a0(0xb6);const _0xb8956e=_0x57c0f5;return _0x117a6c[_0x3919a0(0xa8)](HELP_HEADER_MESSAGE[_0x3919a0(0xad)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0xb8956e[_0x3919a0(0xba)])[_0x3919a0(0xb3)]()[_0x3919a0(0xb1)]()[_0x3919a0(0xb2)]()[_0x3919a0(0xb6)](_0xb8956e[_0x3919a0(0xb5)]);},exports[a20_0x14c506(0xb8)]=function(_0x58f7f5){};
1
+ function a20_0x1332(_0x19c1e6,_0x4149d3){const _0x4f68e2=a20_0x4f68();return a20_0x1332=function(_0x1332ae,_0x193ab1){_0x1332ae=_0x1332ae-0x6b;let _0x356086=_0x4f68e2[_0x1332ae];return _0x356086;},a20_0x1332(_0x19c1e6,_0x4149d3);}const a20_0x1903d0=a20_0x1332;(function(_0x25cf8e,_0x5eb3cf){const _0x5b42b7=a20_0x1332,_0x3450c2=_0x25cf8e();while(!![]){try{const _0x2705d7=parseInt(_0x5b42b7(0x72))/0x1+parseInt(_0x5b42b7(0x6c))/0x2*(-parseInt(_0x5b42b7(0x78))/0x3)+-parseInt(_0x5b42b7(0x7b))/0x4+parseInt(_0x5b42b7(0x80))/0x5*(parseInt(_0x5b42b7(0x7e))/0x6)+parseInt(_0x5b42b7(0x7a))/0x7+parseInt(_0x5b42b7(0x75))/0x8*(parseInt(_0x5b42b7(0x73))/0x9)+-parseInt(_0x5b42b7(0x71))/0xa;if(_0x2705d7===_0x5eb3cf)break;else _0x3450c2['push'](_0x3450c2['shift']());}catch(_0x3d8303){_0x3450c2['push'](_0x3450c2['shift']());}}}(a20_0x4f68,0x9503c));function a20_0x4f68(){const _0x3add80=['16316590LTHeUU','649544bfOAfi','5087790zNAyMV','recommendCommands','8JEHpqT','help','command','3QSvKcC','stop_commands','5979827FiNUUU','624208dMhSGt','demandCommand','UIcwT','57174McciME','desc','295GbWzFd','../config/constants','466502FUfabO','stop','handler','EKfKx','builder'];a20_0x4f68=function(){return _0x3add80;};return a20_0x4f68();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1903d0(0x6b));exports[a20_0x1903d0(0x77)]=a20_0x1903d0(0x6d),exports[a20_0x1903d0(0x7f)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x1903d0(0x70)]=function(_0x4d7e36){const _0x1cf535=a20_0x1903d0,_0x3d495a={};_0x3d495a[_0x1cf535(0x7d)]=_0x1cf535(0x79),_0x3d495a['EKfKx']='help';const _0x247668=_0x3d495a;return _0x4d7e36['usage'](HELP_HEADER_MESSAGE[_0x1cf535(0x6d)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x247668[_0x1cf535(0x7d)])[_0x1cf535(0x7c)]()[_0x1cf535(0x74)]()['strict']()[_0x1cf535(0x76)](_0x247668[_0x1cf535(0x6f)]);},exports[a20_0x1903d0(0x6e)]=function(_0xf43648){};
@@ -1 +1 @@
1
- const a21_0x449c20=a21_0x3b82;function a21_0x3e17(){const _0xf522f9=['wzqgu','exit','Grid\x20stoppped.','string','bstackUsername','Browserstack','existsSync','100407Myvogd','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Adding\x20Websocket\x20listeners','14qHFkwE','debug','119WxledM','pyTdV','yJwSK','init-not-called','stringify','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','WebSocket','replace','3260496JXlMCw','nyXKk','hZisd','password','skipTlsCertVerify','server-error','bstackAccesskey','174599QIoxsx','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','<UsernamePlaceholder>','stop-grid-called','statusCode','Bectg','UAYmt','name','cloudProvider','boolean','uCrBT','error','4kKOYPM','message','NaHuu','BlgBL','950830pYEiIq','stack','aawCl','reconnecting-websocket','clusterName','help','jNLiV','default','desc','aHqGY','clusterRegion','rUmbH','TCuDZ','840530riPARa','INFO','../../config/logger','AsQjW','gridId','connectionTimeout','GYYKp','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid','grid-id','ixylG','usage','oznfe','DYVFu','parse','options','skip-tls-cert-verify','../../utils/utilityMethods','NIFhs','../../utils/instrumentationUtils','Stopping\x20grid\x20','description','body','../../utils/gridComponents','scbvc','../../cloudproviders/utils','93714duyaXv','ERROR','region','692847AFAhpy','builder','type','info'];a21_0x3e17=function(){return _0xf522f9;};return a21_0x3e17();}function a21_0x3b82(_0x2f7173,_0x378d13){const _0x3e176b=a21_0x3e17();return a21_0x3b82=function(_0x3b82d7,_0x2a69cc){_0x3b82d7=_0x3b82d7-0x1ca;let _0x1ba22d=_0x3e176b[_0x3b82d7];return _0x1ba22d;},a21_0x3b82(_0x2f7173,_0x378d13);}(function(_0x1c70da,_0x817a69){const _0x51f88b=a21_0x3b82,_0x36479a=_0x1c70da();while(!![]){try{const _0x150a29=parseInt(_0x51f88b(0x1ef))/0x1+parseInt(_0x51f88b(0x1de))/0x2*(parseInt(_0x51f88b(0x1db))/0x3)+-parseInt(_0x51f88b(0x1fd))/0x4*(parseInt(_0x51f88b(0x20e))/0x5)+parseInt(_0x51f88b(0x1cd))/0x6*(-parseInt(_0x51f88b(0x1e0))/0x7)+parseInt(_0x51f88b(0x1e8))/0x8+-parseInt(_0x51f88b(0x1d0))/0x9+-parseInt(_0x51f88b(0x201))/0xa;if(_0x150a29===_0x817a69)break;else _0x36479a['push'](_0x36479a['shift']());}catch(_0x104ccd){_0x36479a['push'](_0x36479a['shift']());}}}(a21_0x3e17,0x3373d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x449c20(0x204)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x449c20(0x210)),{getCredentialsPath,getGridDetails}=require(a21_0x449c20(0x220)),{scaleDownHubDeployment}=require(a21_0x449c20(0x1ca)),{sendInstrumentationEvent}=require(a21_0x449c20(0x222)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x449c20(0x1cc));exports['command']=a21_0x449c20(0x217),exports[a21_0x449c20(0x209)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x449c20(0x1d1)]=function(_0x488e0c){const _0xa95f8e=a21_0x449c20,_0x4cd8a8={};_0x4cd8a8[_0xa95f8e(0x219)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4cd8a8[_0xa95f8e(0x21c)]=_0xa95f8e(0x1d7),_0x4cd8a8['GYYKp']='Skip\x20insecure\x20cert\x20verification.',_0x4cd8a8['UAYmt']=_0xa95f8e(0x1fa),_0x4cd8a8['nyXKk']=_0xa95f8e(0x206);const _0x5c92b3=_0x4cd8a8,_0x52f08f={};_0x52f08f[_0xa95f8e(0x224)]=_0x5c92b3['ixylG'],_0x52f08f[_0xa95f8e(0x1d2)]=_0x5c92b3[_0xa95f8e(0x21c)];const _0x44e1d4={};_0x44e1d4['description']=_0x5c92b3[_0xa95f8e(0x214)],_0x44e1d4[_0xa95f8e(0x1d2)]=_0x5c92b3[_0xa95f8e(0x1f7)],_0x44e1d4[_0xa95f8e(0x208)]=![];const _0x54fb5f={};return _0x54fb5f[_0xa95f8e(0x218)]=_0x52f08f,_0x54fb5f[_0xa95f8e(0x21f)]=_0x44e1d4,_0x488e0c[_0xa95f8e(0x21a)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xa95f8e(0x21e)](_0x54fb5f)[_0xa95f8e(0x206)](_0x5c92b3[_0xa95f8e(0x1e9)])['argv'];},exports['handler']=async function(_0xb2755d){const _0x2bdf9c=a21_0x449c20,_0x2e482d={'oznfe':_0x2bdf9c(0x1f2),'wzqgu':function(_0x4b8a84){return _0x4b8a84();},'PXwoi':_0x2bdf9c(0x1f0),'NIFhs':function(_0x481b17,_0x487195,_0x2141b9,_0x1f9cd6,_0x1cdd8b,_0x4c56ff,_0x244e38){return _0x481b17(_0x487195,_0x2141b9,_0x1f9cd6,_0x1cdd8b,_0x4c56ff,_0x244e38);},'AsQjW':_0x2bdf9c(0x1f4),'jNLiV':_0x2bdf9c(0x1e3),'TCuDZ':_0x2bdf9c(0x1f3),'vRhKN':'<PasswordPlaceholder>','dDoVX':_0x2bdf9c(0x1dd),'hZisd':function(_0x916d48,_0x1f2405,_0x4e46fa,_0x4b9b56){return _0x916d48(_0x1f2405,_0x4e46fa,_0x4b9b56);},'scbvc':function(_0x12ec67,_0x2337d9,_0x2923f3){return _0x12ec67(_0x2337d9,_0x2923f3);},'aawCl':function(_0x253f2a,_0x3c6b15,_0x21d118){return _0x253f2a(_0x3c6b15,_0x21d118);},'rUmbH':_0x2bdf9c(0x1d6),'yJwSK':function(_0x27d8c3,_0x42b4bb){return _0x27d8c3===_0x42b4bb;},'aHqGY':_0x2bdf9c(0x216),'pyTdV':function(_0x538cc5,_0x385171,_0x3df8ce,_0x232519,_0x1e1607,_0x558589,_0xdbde48){return _0x538cc5(_0x385171,_0x3df8ce,_0x232519,_0x1e1607,_0x558589,_0xdbde48);},'NaHuu':'unauthorised','uCrBT':'invalid-grid-id','Bectg':function(_0x4caad8,_0xe432d2,_0x42e2be,_0x210e2f,_0x1a9e94,_0x4ee3f0,_0x2a5a14){return _0x4caad8(_0xe432d2,_0x42e2be,_0x210e2f,_0x1a9e94,_0x4ee3f0,_0x2a5a14);},'BlgBL':_0x2bdf9c(0x1ed)};let _0x3c93cf;try{!_0xb2755d[_0x2bdf9c(0x212)]&&(logger[_0x2bdf9c(0x1fc)](_0x2e482d[_0x2bdf9c(0x21b)]),process[_0x2bdf9c(0x1d5)](0x1));!fs[_0x2bdf9c(0x1da)](_0x2e482d['wzqgu'](getCredentialsPath))&&(logger[_0x2bdf9c(0x1fc)](_0x2e482d['PXwoi']),await _0x2e482d[_0x2bdf9c(0x221)](sendInstrumentationEvent,_0xb2755d,_0x2e482d['AsQjW'],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x207)],null,_0xb2755d),process['exit'](0x1));logger[_0x2bdf9c(0x1d3)](_0x2bdf9c(0x223)+_0xb2755d[_0x2bdf9c(0x212)]),await _0x2e482d[_0x2bdf9c(0x221)](sendInstrumentationEvent,_0xb2755d,_0x2e482d[_0x2bdf9c(0x211)],messageTypes[_0x2bdf9c(0x20f)],null,null,_0xb2755d);const _0x4f5ce6=JSON['parse'](fs[_0x2bdf9c(0x215)](_0x2e482d[_0x2bdf9c(0x1d4)](getCredentialsPath)));global_registry[_0x2bdf9c(0x1d8)]=_0x4f5ce6[_0x2bdf9c(0x1d9)][_0x2bdf9c(0x1f1)],global_registry[_0x2bdf9c(0x1ee)]=_0x4f5ce6['Browserstack'][_0x2bdf9c(0x1eb)];const _0x417717=WS_ENDPOINT[_0x2bdf9c(0x1e7)](_0x2e482d[_0x2bdf9c(0x20d)],_0x4f5ce6[_0x2bdf9c(0x1d9)][_0x2bdf9c(0x1f1)])[_0x2bdf9c(0x1e7)](_0x2e482d['vRhKN'],_0x4f5ce6['Browserstack'][_0x2bdf9c(0x1eb)]),_0x4ffbe2={};_0x4ffbe2[_0x2bdf9c(0x1e6)]=ws,_0x4ffbe2[_0x2bdf9c(0x213)]=0x36ee80,_0x3c93cf=new ReconnectingWebSocket(_0x417717,[],_0x4ffbe2),logger[_0x2bdf9c(0x1df)](_0x2e482d['dDoVX']),webSocketUtils['addListeners'](_0x3c93cf,_0xb2755d['user'],_0xb2755d[_0x2bdf9c(0x1eb)]);const [_0x239a35,_0x16718b]=await _0x2e482d[_0x2bdf9c(0x1ea)](getGridDetails,_0x4f5ce6['Browserstack'][_0x2bdf9c(0x1f1)],_0x4f5ce6[_0x2bdf9c(0x1d9)][_0x2bdf9c(0x1eb)],_0xb2755d['gridId']);if(_0x16718b){const _0x3729a2=_0x16718b[_0x2bdf9c(0x1d3)];global_registry[_0x2bdf9c(0x1f9)]=_0x3729a2[_0x2bdf9c(0x1f9)],global_registry[_0x2bdf9c(0x20b)]=_0x3729a2[_0x2bdf9c(0x1cf)],global_registry[_0x2bdf9c(0x205)]=_0x3729a2[_0x2bdf9c(0x205)];const _0x598061=await _0x2e482d[_0x2bdf9c(0x221)](getCloudProviderObject,_0x3729a2['cloudProvider'],_0x3729a2['clusterName'],_0x3729a2[_0x2bdf9c(0x1f8)],_0x3c93cf,webSocketUtils,_0xb2755d),[_0x5574b0,_0x5ed05e,_0x2998ec,_0xbd5f43,_0x1baf0a,_0x32ef89]=await _0x2e482d[_0x2bdf9c(0x1cb)](createK8sClient,_0x598061,_0xb2755d[_0x2bdf9c(0x1ec)]);await _0x2e482d[_0x2bdf9c(0x203)](scaleDownHubDeployment,_0x5ed05e,_0x3729a2[_0x2bdf9c(0x1f8)]),logger['info'](_0x2e482d[_0x2bdf9c(0x20c)]),process[_0x2bdf9c(0x1d5)](0x0);}_0x2e482d[_0x2bdf9c(0x1e2)](_0x239a35[_0x2bdf9c(0x1f5)],0x191)&&(logger[_0x2bdf9c(0x1fc)](_0x2e482d[_0x2bdf9c(0x20a)]),await _0x2e482d[_0x2bdf9c(0x1e1)](sendInstrumentationEvent,_0xb2755d,_0x2e482d['AsQjW'],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x1ff)],null,_0xb2755d),process[_0x2bdf9c(0x1d5)](0x1)),_0x2e482d[_0x2bdf9c(0x1e2)](_0x239a35[_0x2bdf9c(0x1f5)],0x190)&&(logger[_0x2bdf9c(0x1fc)](JSON[_0x2bdf9c(0x21d)](_0x239a35[_0x2bdf9c(0x225)])[_0x2bdf9c(0x1fe)]),await _0x2e482d['pyTdV'](sendInstrumentationEvent,_0xb2755d,_0x2e482d[_0x2bdf9c(0x211)],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x1fb)],null,_0xb2755d),process[_0x2bdf9c(0x1d5)](0x1)),logger[_0x2bdf9c(0x1fc)](_0x2bdf9c(0x1dc)+JSON['stringify'](_0x239a35)),await _0x2e482d[_0x2bdf9c(0x1f6)](sendInstrumentationEvent,_0xb2755d,_0x2e482d[_0x2bdf9c(0x211)],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x200)],_0x239a35,_0xb2755d),process[_0x2bdf9c(0x1d5)](0x1);}catch(_0x23fc63){const _0x2bb6a7=_0x2bdf9c(0x1e5)+_0x23fc63+'\x20\x0a'+JSON[_0x2bdf9c(0x1e4)](_0x23fc63[_0x2bdf9c(0x202)])+'\x20';logger[_0x2bdf9c(0x1fc)](_0x2bb6a7),process[_0x2bdf9c(0x1d5)](0x1);}};
1
+ const a21_0x4e7791=a21_0x2d24;(function(_0x3f6702,_0x4a2879){const _0x309295=a21_0x2d24,_0x35d72a=_0x3f6702();while(!![]){try{const _0x824b9e=parseInt(_0x309295(0x164))/0x1+parseInt(_0x309295(0x181))/0x2*(-parseInt(_0x309295(0x154))/0x3)+-parseInt(_0x309295(0x141))/0x4*(parseInt(_0x309295(0x12e))/0x5)+-parseInt(_0x309295(0x173))/0x6+parseInt(_0x309295(0x13b))/0x7+parseInt(_0x309295(0x16b))/0x8+parseInt(_0x309295(0x177))/0x9;if(_0x824b9e===_0x4a2879)break;else _0x35d72a['push'](_0x35d72a['shift']());}catch(_0x5eff99){_0x35d72a['push'](_0x35d72a['shift']());}}}(a21_0x5e77,0x5dcd6));function a21_0x2d24(_0x37adc6,_0x18b72f){const _0x5e7771=a21_0x5e77();return a21_0x2d24=function(_0x2d2441,_0x2609d4){_0x2d2441=_0x2d2441-0x12e;let _0xbe009b=_0x5e7771[_0x2d2441];return _0xbe009b;},a21_0x2d24(_0x37adc6,_0x18b72f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4e7791(0x14c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4e7791(0x130)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x4e7791(0x134)),{scaleDownHubDeployment}=require(a21_0x4e7791(0x161)),{sendInstrumentationEvent}=require(a21_0x4e7791(0x165)),webSocketUtils=require(a21_0x4e7791(0x17f)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x4e7791(0x133));exports['command']='grid',exports[a21_0x4e7791(0x15c)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x4e7791(0x150)]=function(_0x223d6f){const _0x572ea4=a21_0x4e7791,_0x1a81ff={};_0x1a81ff['vnaud']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x1a81ff[_0x572ea4(0x166)]=_0x572ea4(0x169),_0x1a81ff[_0x572ea4(0x180)]='Skip\x20insecure\x20cert\x20verification.',_0x1a81ff[_0x572ea4(0x14b)]=_0x572ea4(0x148),_0x1a81ff[_0x572ea4(0x14e)]=_0x572ea4(0x16e);const _0x28118c=_0x1a81ff,_0x24c625={};_0x24c625[_0x572ea4(0x15b)]=_0x28118c[_0x572ea4(0x17b)],_0x24c625[_0x572ea4(0x13a)]=_0x28118c[_0x572ea4(0x166)];const _0x28521b={};_0x28521b['description']=_0x28118c[_0x572ea4(0x180)],_0x28521b[_0x572ea4(0x13a)]=_0x28118c[_0x572ea4(0x14b)],_0x28521b[_0x572ea4(0x144)]=![];const _0x5ca3e4={};return _0x5ca3e4[_0x572ea4(0x13e)]=_0x24c625,_0x5ca3e4[_0x572ea4(0x14f)]=_0x28521b,_0x223d6f[_0x572ea4(0x172)](HELP_HEADER_MESSAGE[_0x572ea4(0x16d)])[_0x572ea4(0x176)](HELP_FOOTER_MESSAGE)[_0x572ea4(0x131)](_0x5ca3e4)[_0x572ea4(0x16e)](_0x28118c[_0x572ea4(0x14e)])['argv'];},exports[a21_0x4e7791(0x143)]=async function(_0x643ea8){const _0x445f5a=a21_0x4e7791,_0x2b7c54={'cEnQe':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','UbHqu':function(_0x2a4a81){return _0x2a4a81();},'OSYto':_0x445f5a(0x160),'roSJg':function(_0x1ad246,_0x428faa,_0x35d01b,_0x1ca486,_0x2b3873,_0x32dac8,_0x40e683){return _0x1ad246(_0x428faa,_0x35d01b,_0x1ca486,_0x2b3873,_0x32dac8,_0x40e683);},'petZk':_0x445f5a(0x175),'Ejrsu':_0x445f5a(0x13f),'VMFxD':function(_0x5b14ca,_0xa61c0d,_0xeabbc0,_0x2cfc54,_0xc78ca4,_0x598e62,_0x2b1900){return _0x5b14ca(_0xa61c0d,_0xeabbc0,_0x2cfc54,_0xc78ca4,_0x598e62,_0x2b1900);},'bTaaX':function(_0x2155aa){return _0x2155aa();},'xOMew':_0x445f5a(0x142),'GVKpx':_0x445f5a(0x16a),'uTnPc':_0x445f5a(0x158),'jnmUU':function(_0x5e845d,_0x158963,_0x2fcf3d,_0x4a33c1){return _0x5e845d(_0x158963,_0x2fcf3d,_0x4a33c1);},'SziSm':function(_0x21cfbe,_0x532460,_0xc971f6){return _0x21cfbe(_0x532460,_0xc971f6);},'uTiXb':_0x445f5a(0x178),'jueyK':function(_0x1bd479,_0x546db6){return _0x1bd479===_0x546db6;},'VFmcK':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ehiwb':function(_0x406f79,_0x2cd397,_0x14b1bb,_0x4acf00,_0x3f2730,_0x514107,_0x48721a){return _0x406f79(_0x2cd397,_0x14b1bb,_0x4acf00,_0x3f2730,_0x514107,_0x48721a);},'ATwEv':_0x445f5a(0x183),'OevvD':function(_0x142bbd,_0x3a46ba,_0x2fdb7c,_0x161bf9,_0x212342,_0x1aa00a,_0x43bff8){return _0x142bbd(_0x3a46ba,_0x2fdb7c,_0x161bf9,_0x212342,_0x1aa00a,_0x43bff8);},'DnhUu':_0x445f5a(0x139),'kMoxU':function(_0x457d6a,_0xf19a24,_0x5c3760,_0x17215a,_0x1cba52,_0x3c6bc3,_0x529c6d){return _0x457d6a(_0xf19a24,_0x5c3760,_0x17215a,_0x1cba52,_0x3c6bc3,_0x529c6d);},'gEnpR':'server-error'};let _0x1802f1;try{!_0x643ea8['gridId']&&(logger[_0x445f5a(0x151)](_0x2b7c54[_0x445f5a(0x13d)]),process[_0x445f5a(0x162)](0x1));!fs['existsSync'](_0x2b7c54['UbHqu'](getCredentialsPath))&&(logger[_0x445f5a(0x151)](_0x2b7c54['OSYto']),await _0x2b7c54[_0x445f5a(0x135)](sendInstrumentationEvent,_0x643ea8,_0x2b7c54[_0x445f5a(0x171)],messageTypes['ERROR'],_0x2b7c54[_0x445f5a(0x168)],null,_0x643ea8),process['exit'](0x1));logger[_0x445f5a(0x149)](_0x445f5a(0x137)+_0x643ea8[_0x445f5a(0x17e)]),await _0x2b7c54['VMFxD'](sendInstrumentationEvent,_0x643ea8,_0x2b7c54['petZk'],messageTypes[_0x445f5a(0x157)],null,null,_0x643ea8);const _0x5e498e=JSON['parse'](fs[_0x445f5a(0x147)](_0x2b7c54['bTaaX'](getCredentialsPath)));global_registry['bstackUsername']=_0x5e498e[_0x445f5a(0x13c)]['username'],global_registry['bstackAccesskey']=_0x5e498e[_0x445f5a(0x13c)][_0x445f5a(0x15f)];const _0x46816e=WS_ENDPOINT[_0x445f5a(0x167)](_0x2b7c54[_0x445f5a(0x182)],_0x5e498e[_0x445f5a(0x13c)][_0x445f5a(0x184)])[_0x445f5a(0x167)](_0x2b7c54['GVKpx'],_0x5e498e[_0x445f5a(0x13c)][_0x445f5a(0x15f)]),_0x4e7041={};_0x4e7041[_0x445f5a(0x15d)]=ws,_0x4e7041[_0x445f5a(0x174)]=0x36ee80,_0x1802f1=new ReconnectingWebSocket(_0x46816e,[],_0x4e7041),logger[_0x445f5a(0x153)](_0x2b7c54[_0x445f5a(0x14a)]),webSocketUtils['addListeners'](_0x1802f1,_0x643ea8[_0x445f5a(0x145)],_0x643ea8[_0x445f5a(0x15f)]);const [_0xb05663,_0x5ec3f9]=await _0x2b7c54[_0x445f5a(0x17d)](getGridDetails,_0x5e498e[_0x445f5a(0x13c)][_0x445f5a(0x184)],_0x5e498e[_0x445f5a(0x13c)][_0x445f5a(0x15f)],_0x643ea8[_0x445f5a(0x17e)]);if(_0x5ec3f9){const _0x335749=_0x5ec3f9[_0x445f5a(0x149)];global_registry[_0x445f5a(0x16c)]=_0x335749[_0x445f5a(0x16c)],global_registry[_0x445f5a(0x16f)]=_0x335749[_0x445f5a(0x163)],global_registry[_0x445f5a(0x14d)]=_0x335749['clusterName'];const _0x5383bd=await _0x2b7c54[_0x445f5a(0x156)](getCloudProviderObject,_0x335749[_0x445f5a(0x16c)],_0x335749[_0x445f5a(0x14d)],_0x335749['name'],_0x1802f1,webSocketUtils,_0x643ea8),[_0x5beadd,_0x5a62b1,_0x3fffb8,_0x42cfa0,_0x1e40fc,_0x426555]=await _0x2b7c54['SziSm'](createK8sClient,_0x5383bd,_0x643ea8[_0x445f5a(0x146)]);await _0x2b7c54[_0x445f5a(0x17a)](scaleDownHubDeployment,_0x5a62b1,_0x335749[_0x445f5a(0x140)]),logger['info'](_0x2b7c54[_0x445f5a(0x138)]),process['exit'](0x0);}_0x2b7c54[_0x445f5a(0x170)](_0xb05663['statusCode'],0x191)&&(logger[_0x445f5a(0x151)](_0x2b7c54[_0x445f5a(0x159)]),await _0x2b7c54['ehiwb'](sendInstrumentationEvent,_0x643ea8,_0x2b7c54['petZk'],messageTypes['ERROR'],_0x2b7c54[_0x445f5a(0x12f)],null,_0x643ea8),process['exit'](0x1)),_0x2b7c54[_0x445f5a(0x170)](_0xb05663[_0x445f5a(0x179)],0x190)&&(logger[_0x445f5a(0x151)](JSON[_0x445f5a(0x152)](_0xb05663[_0x445f5a(0x155)])[_0x445f5a(0x136)]),await _0x2b7c54['OevvD'](sendInstrumentationEvent,_0x643ea8,_0x2b7c54[_0x445f5a(0x171)],messageTypes[_0x445f5a(0x132)],_0x2b7c54[_0x445f5a(0x17c)],null,_0x643ea8),process['exit'](0x1)),logger[_0x445f5a(0x151)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x445f5a(0x15e)](_0xb05663)),await _0x2b7c54['kMoxU'](sendInstrumentationEvent,_0x643ea8,_0x2b7c54[_0x445f5a(0x171)],messageTypes[_0x445f5a(0x132)],_0x2b7c54[_0x445f5a(0x15a)],_0xb05663,_0x643ea8),process[_0x445f5a(0x162)](0x1);}catch(_0x5ba77c){const _0x147801='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x5ba77c+'\x20\x0a'+JSON[_0x445f5a(0x15e)](_0x5ba77c['stack'])+'\x20';logger[_0x445f5a(0x151)](_0x147801),process[_0x445f5a(0x162)](0x1);}};function a21_0x5e77(){const _0x56a0c8=['../../config/constants','options','ERROR','../../cloudproviders/utils','../../utils/utilityMethods','roSJg','message','Stopping\x20grid\x20','uTiXb','invalid-grid-id','type','2851520uWJaeS','Browserstack','cEnQe','grid-id','init-not-called','name','3164DIFUYF','<UsernamePlaceholder>','handler','default','user','skipTlsCertVerify','readFileSync','boolean','info','uTnPc','aXcgt','reconnecting-websocket','clusterName','zFCBo','skip-tls-cert-verify','builder','error','parse','debug','572529BnuvQv','body','VMFxD','INFO','Adding\x20Websocket\x20listeners','VFmcK','gEnpR','description','desc','WebSocket','stringify','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/gridComponents','exit','region','273359RcQneN','../../utils/instrumentationUtils','gcEDz','replace','Ejrsu','string','<PasswordPlaceholder>','5446120nmsfan','cloudProvider','stop','help','clusterRegion','jueyK','petZk','usage','3091974nNtNGJ','connectionTimeout','stop-grid-called','epilogue','3490245UFtdqG','Grid\x20stoppped.','statusCode','SziSm','vnaud','DnhUu','jnmUU','gridId','../../utils/webSocketUtils','tcPiZ','2lDoDCv','xOMew','unauthorised','username','4165jWwsMh','ATwEv'];a21_0x5e77=function(){return _0x56a0c8;};return a21_0x5e77();}
@@ -1 +1 @@
1
- const a22_0x3ae494=a22_0x5400;(function(_0x52ecc8,_0x351ab0){const _0x45ccc1=a22_0x5400,_0x46e676=_0x52ecc8();while(!![]){try{const _0x22a777=parseInt(_0x45ccc1(0x150))/0x1+parseInt(_0x45ccc1(0x134))/0x2*(parseInt(_0x45ccc1(0x120))/0x3)+-parseInt(_0x45ccc1(0xf8))/0x4+-parseInt(_0x45ccc1(0x14b))/0x5+-parseInt(_0x45ccc1(0x117))/0x6*(-parseInt(_0x45ccc1(0x13b))/0x7)+-parseInt(_0x45ccc1(0x146))/0x8*(parseInt(_0x45ccc1(0x12c))/0x9)+-parseInt(_0x45ccc1(0x11a))/0xa;if(_0x22a777===_0x351ab0)break;else _0x46e676['push'](_0x46e676['shift']());}catch(_0xf0556f){_0x46e676['push'](_0x46e676['shift']());}}}(a22_0x10c2,0x94379),require('dotenv')['config']());let gridURL=a22_0x3ae494(0x152),bsApiUrl=a22_0x3ae494(0x101),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x13e)]||'prod')[a22_0x3ae494(0x106)]();if(_env===a22_0x3ae494(0x155)||_env==='stag')gridURL=a22_0x3ae494(0x107),bsApiUrl=a22_0x3ae494(0xfa),agApiUrl=a22_0x3ae494(0x12d);else(_env==='preprod'||_env===a22_0x3ae494(0xfd))&&(gridURL=a22_0x3ae494(0x138),bsApiUrl=a22_0x3ae494(0x113),agApiUrl=a22_0x3ae494(0x160));function a22_0x5400(_0x45d9a2,_0x3a2d46){const _0x10c23c=a22_0x10c2();return a22_0x5400=function(_0x5400f9,_0x2817f8){_0x5400f9=_0x5400f9-0xf6;let _0x3c6ce8=_0x10c23c[_0x5400f9];return _0x3c6ce8;},a22_0x5400(_0x45d9a2,_0x3a2d46);}exports['DASHBOARD_ENDPOINT']=process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x149)]||gridURL,exports[a22_0x3ae494(0x10e)]=process[a22_0x3ae494(0x12f)]['BS_API_URL']||bsApiUrl,exports[a22_0x3ae494(0x11e)]=process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x11e)]||agApiUrl,exports[a22_0x3ae494(0x156)]=a22_0x3ae494(0x13a)+this[a22_0x3ae494(0x11e)]+a22_0x3ae494(0x15b),exports[a22_0x3ae494(0x127)]=a22_0x3ae494(0x10d),exports[a22_0x3ae494(0x14f)]=a22_0x3ae494(0x10c),exports[a22_0x3ae494(0x109)]=a22_0x3ae494(0x165),exports[a22_0x3ae494(0x132)]=a22_0x3ae494(0xf9),exports[a22_0x3ae494(0x10a)]=a22_0x3ae494(0x147),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x3ae494(0x126)]=a22_0x3ae494(0xf6),exports[a22_0x3ae494(0x13d)]=a22_0x3ae494(0x13f),exports[a22_0x3ae494(0x129)]='azure',exports[a22_0x3ae494(0x102)]=a22_0x3ae494(0x141),exports[a22_0x3ae494(0x112)]=[this['AWS'],this[a22_0x3ae494(0x129)],this[a22_0x3ae494(0x102)]];function a22_0x10c2(){const _0x550ac5=['resourceInfo','IAM_USER_NAME','322687nzNeqc','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','grid.browserstack.com','REDACTED','WARNING','staging','WS_ENDPOINT','BrowserStack-Automate-TurboScale','init','MessageDescription','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gridUrl','root','pre-check','split','grid-api-preprod.bsstag.com','REGION','us-east-1','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','UNKNOWN','high-scale-grid','cliRunStarted','BSTACK-ATS-CLUSTER-HUB-HA','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','710640crlKcC','aws','api-devhst.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','Key','pre-prod','SUPPORTED_CLOUD_PROVIDERS','CLI_RUN_STARTED','CLI_RUN_FINISHED','api.browserstack.com','GCP','browserstack:managedBy','unknown','[REDACTED]','toLowerCase','grid-devhst.bsstag.com','GRID_URL','DEFAULT_GRID_NAME','CLUSTER_DEP_STACK_NAME','connect','BrowserStackIAMUser','credentials','BS_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','delete','pre_check','ALL_SUPPORTED_CLOUD_PROVIDERS','api-preprod.bsstag.com','push','cliRunFinished','high-scale-grid-cluster','3450JCmPsh','list','Value','1201470xgLiRw','global_registry','INFO','HELP_HEADER_MESSAGE','AG_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','8013UyDfSg','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid','NULL','success','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER_HUB_HA_STACK_NAME','CP_CONFIG_FILE','start','AZURE','RESOURCES','LINK_MESSAGE','216CbrVrL','grid-api-devhst.bsstag.com','TURBOSCALE_CUSTOM_TAGS','env','COMMON_HST_TAGS','grid-profile','AWS','forEach','458LroBXS','info','CLUSTER','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid-preprod.bsstag.com','create','wss://','7196JpBIhF','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_DEPLOYMENT','BROWSERSTACK_ENV','browserstack-turboscale-grid','RAW_ARGS_REGEX','gcp','TRIAL_GRID_URL','error','browserstack:service','configure','80960YVZtdv','BSTACK-ATS-CLUSTER','HELP_FOOTER_MESSAGE','DASHBOARD_ENDPOINT','CLI_ARGS_REGEX','1888310dRNeiM','gridProfile','SUCCESS'];a22_0x10c2=function(){return _0x550ac5;};return a22_0x10c2();}const a22_0x10f2f1={};a22_0x10f2f1[a22_0x3ae494(0xfc)]=a22_0x3ae494(0x103),a22_0x10f2f1['Value']='BrowserStack';const a22_0x1f419f={};a22_0x1f419f['Key']='browserstack:service',a22_0x1f419f[a22_0x3ae494(0x119)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x10f2f1,a22_0x1f419f];if(process[a22_0x3ae494(0x12f)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x12e)][a22_0x3ae494(0x15f)](',');parsedTags[a22_0x3ae494(0x133)](_0x5042a2=>{const _0x2f5146=a22_0x3ae494,_0x5ea92e=_0x5042a2['split'](':'),_0x588d97={};_0x588d97[_0x2f5146(0xfc)]=_0x5ea92e[0x0],_0x588d97[_0x2f5146(0x119)]=_0x5ea92e[0x1],common_hst_tags_list[_0x2f5146(0x114)](_0x588d97);});}exports[a22_0x3ae494(0x130)]=common_hst_tags_list;const a22_0x4b0f01={};a22_0x4b0f01['browserstack:managedBy']='BrowserStack',a22_0x4b0f01[a22_0x3ae494(0x144)]=a22_0x3ae494(0x157),exports['HST_CLUSTER_TAGS']=a22_0x4b0f01,exports[a22_0x3ae494(0xfe)]=[this['AWS']];const a22_0x3895b3={};a22_0x3895b3['LOG']='log',a22_0x3895b3[a22_0x3ae494(0x12a)]=a22_0x3ae494(0x14e),a22_0x3895b3[a22_0x3ae494(0x108)]=a22_0x3ae494(0x15c),a22_0x3895b3[a22_0x3ae494(0xff)]=a22_0x3ae494(0x166),a22_0x3895b3[a22_0x3ae494(0x100)]=a22_0x3ae494(0x115),exports['WS_EVENTS']=a22_0x3895b3,exports[a22_0x3ae494(0x11b)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x281eb9={};a22_0x281eb9[a22_0x3ae494(0x15d)]=a22_0x3ae494(0x137)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x158)]=a22_0x3ae494(0x11f)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x145)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x139)]=a22_0x3ae494(0x151)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)]={},a22_0x281eb9[a22_0x3ae494(0x110)]=a22_0x3ae494(0x121)+this['LINK_MESSAGE'],a22_0x281eb9[a22_0x3ae494(0x10b)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x128)]=a22_0x3ae494(0x15a)+this[a22_0x3ae494(0x12b)],a22_0x281eb9['stop']=a22_0x3ae494(0xfb)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x111)]=a22_0x3ae494(0x163)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)][a22_0x3ae494(0x15d)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)][a22_0x3ae494(0x122)]=a22_0x3ae494(0x10f)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)][a22_0x3ae494(0x14c)]=a22_0x3ae494(0x13c)+this['LINK_MESSAGE'],exports[a22_0x3ae494(0x11d)]=a22_0x281eb9,exports[a22_0x3ae494(0x148)]=a22_0x3ae494(0xf7);const a22_0x4fa9d7={};a22_0x4fa9d7[a22_0x3ae494(0x14d)]=a22_0x3ae494(0x124),a22_0x4fa9d7['ERROR']=a22_0x3ae494(0x143),a22_0x4fa9d7[a22_0x3ae494(0x11c)]=a22_0x3ae494(0x135),a22_0x4fa9d7[a22_0x3ae494(0x154)]='warning',a22_0x4fa9d7[a22_0x3ae494(0x164)]=a22_0x3ae494(0x104),a22_0x4fa9d7[a22_0x3ae494(0x123)]=null,exports['messageTypes']=a22_0x4fa9d7,exports[a22_0x3ae494(0x14a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x3ae494(0x140)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x3ae494(0x153)]=a22_0x3ae494(0x105);const a22_0x20ad48={};a22_0x20ad48[a22_0x3ae494(0x131)]=a22_0x3ae494(0x125);const a22_0x4201cc={};a22_0x4201cc[a22_0x3ae494(0x15e)]=a22_0x20ad48,exports[a22_0x3ae494(0x159)]=a22_0x4201cc,exports[a22_0x3ae494(0x142)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x233799={};a22_0x233799[a22_0x3ae494(0x136)]=a22_0x3ae494(0x116),a22_0x233799['CLOUD_PROVIDER']=a22_0x3ae494(0xf9),a22_0x233799[a22_0x3ae494(0x161)]=a22_0x3ae494(0x162),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x233799;
1
+ const a22_0x2022a1=a22_0x19be;(function(_0x1961d9,_0x1f6a23){const _0x98b54e=a22_0x19be,_0x5b798d=_0x1961d9();while(!![]){try{const _0x3bc29b=-parseInt(_0x98b54e(0x1be))/0x1+parseInt(_0x98b54e(0x1bf))/0x2+parseInt(_0x98b54e(0x1a0))/0x3*(parseInt(_0x98b54e(0x1c8))/0x4)+parseInt(_0x98b54e(0x191))/0x5*(-parseInt(_0x98b54e(0x1de))/0x6)+parseInt(_0x98b54e(0x1ad))/0x7+parseInt(_0x98b54e(0x1ca))/0x8*(parseInt(_0x98b54e(0x1a8))/0x9)+parseInt(_0x98b54e(0x1b9))/0xa*(-parseInt(_0x98b54e(0x1a7))/0xb);if(_0x3bc29b===_0x1f6a23)break;else _0x5b798d['push'](_0x5b798d['shift']());}catch(_0x2d4a10){_0x5b798d['push'](_0x5b798d['shift']());}}}(a22_0xb937,0xac756),require(a22_0x2022a1(0x183))[a22_0x2022a1(0x1bd)]());function a22_0xb937(){const _0x296e22=['2875510MNdiDz','gridProfile','browserstack:managedBy','WARNING','config','769260FAEsnm','1671420EZTnRm','success','TURBOSCALE_CUSTOM_TAGS','env','Key','info','CLOUD_PROVIDER','cliRunFinished','AZURE','2309464aQnQsA','api-devhst.bsstag.com','24emAnEV','global_registry','BSTACK-ATS-CLUSTER','BrowserStack','grid-preprod.bsstag.com','CLUSTER','LINK_MESSAGE','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','CLI_ARGS_REGEX','gcp','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_ENDPOINT','browserstack:service','BrowserStackIAMUser','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','root','pre-prod','BrowserStack-Automate-TurboScale','preprod','12ZTUEpw','us-east-1','MessageDescription','wss://','messageTypes','GRID_URL','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','GCP','create','list','TURBOSCALE_DEPLOYMENT','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','SUPPORTED_CLOUD_PROVIDERS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','configure','CP_CONFIG_FILE','DASHBOARD_ENDPOINT','DEFAULT_GRID_NAME','browserstack-turboscale-grid','IAM_USER_NAME','dotenv','stag','RESOURCES','SUCCESS','grid-api-devhst.bsstag.com','AG_API_URL','WS_EVENTS','start','credentials','INFO','DEFAULT_CLUSTER_DETAILS','split','ALL_SUPPORTED_CLOUD_PROVIDERS','api.browserstack.com','802535oWvtHQ','warning','CLUSTER_DEP_STACK_NAME','push','REGION','stop','prod','grid-profile','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','COMMON_HST_TAGS','[REDACTED]','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','forEach','error','grid.browserstack.com','3mmYESY','toLowerCase','grid-devhst.bsstag.com','AWS','grid-api-preprod.bsstag.com','BS_API_URL','grid-api.browserstack.com','66rxnKdx','2862927IgyIgp','grid','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','azure','TRIAL_GRID_URL','8082095BLimAc','CLI_RUN_STARTED','HELP_FOOTER_MESSAGE','pre_check','aws','NULL','BSTACK-ATS-CLUSTER-HUB-HA','BROWSERSTACK_ENV','delete','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gridUrl','Value'];a22_0xb937=function(){return _0x296e22;};return a22_0xb937();}let gridURL=a22_0x2022a1(0x19f),bsApiUrl=a22_0x2022a1(0x190),agApiUrl=a22_0x2022a1(0x1a6);const _env=(process[a22_0x2022a1(0x1c2)][a22_0x2022a1(0x1b4)]||a22_0x2022a1(0x197))[a22_0x2022a1(0x1a1)]();if(_env==='staging'||_env===a22_0x2022a1(0x184))gridURL=a22_0x2022a1(0x1a2),bsApiUrl=a22_0x2022a1(0x1c9),agApiUrl=a22_0x2022a1(0x187);else(_env===a22_0x2022a1(0x1dd)||_env===a22_0x2022a1(0x1db))&&(gridURL=a22_0x2022a1(0x1ce),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x2022a1(0x1a4));exports[a22_0x2022a1(0x17f)]=process[a22_0x2022a1(0x1c2)][a22_0x2022a1(0x17f)]||gridURL,exports[a22_0x2022a1(0x1a5)]=process[a22_0x2022a1(0x1c2)]['BS_API_URL']||bsApiUrl,exports[a22_0x2022a1(0x188)]=process[a22_0x2022a1(0x1c2)][a22_0x2022a1(0x188)]||agApiUrl,exports[a22_0x2022a1(0x1d5)]=a22_0x2022a1(0x1e1)+this[a22_0x2022a1(0x188)]+a22_0x2022a1(0x1b6),exports[a22_0x2022a1(0x17e)]=a22_0x2022a1(0x18b),exports[a22_0x2022a1(0x182)]=a22_0x2022a1(0x1d7),exports[a22_0x2022a1(0x180)]='high-scale-grid',exports['AWS']=a22_0x2022a1(0x1b1),exports[a22_0x2022a1(0x193)]=a22_0x2022a1(0x1cc),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x2022a1(0x1b3),exports[a22_0x2022a1(0x179)]=a22_0x2022a1(0x181),exports[a22_0x2022a1(0x1c7)]=a22_0x2022a1(0x1ab),exports[a22_0x2022a1(0x176)]=a22_0x2022a1(0x1d3),exports[a22_0x2022a1(0x18f)]=[this[a22_0x2022a1(0x1a3)],this['AZURE'],this[a22_0x2022a1(0x176)]];const a22_0x1d2852={};a22_0x1d2852[a22_0x2022a1(0x1c3)]=a22_0x2022a1(0x1bb),a22_0x1d2852[a22_0x2022a1(0x1b8)]=a22_0x2022a1(0x1cd);const a22_0x49119c={};a22_0x49119c['Key']=a22_0x2022a1(0x1d6),a22_0x49119c[a22_0x2022a1(0x1b8)]=a22_0x2022a1(0x1dc);const common_hst_tags_list=[a22_0x1d2852,a22_0x49119c];if(process[a22_0x2022a1(0x1c2)][a22_0x2022a1(0x1c1)]){const parsedTags=process[a22_0x2022a1(0x1c2)][a22_0x2022a1(0x1c1)][a22_0x2022a1(0x18e)](',');parsedTags[a22_0x2022a1(0x19d)](_0x4d8632=>{const _0x3f7582=a22_0x2022a1,_0xbe886=_0x4d8632[_0x3f7582(0x18e)](':'),_0x23bb96={};_0x23bb96[_0x3f7582(0x1c3)]=_0xbe886[0x0],_0x23bb96[_0x3f7582(0x1b8)]=_0xbe886[0x1],common_hst_tags_list[_0x3f7582(0x194)](_0x23bb96);});}exports[a22_0x2022a1(0x19a)]=common_hst_tags_list;const a22_0x3ee919={};a22_0x3ee919[a22_0x2022a1(0x1bb)]=a22_0x2022a1(0x1cd),a22_0x3ee919[a22_0x2022a1(0x1d6)]=a22_0x2022a1(0x1dc),exports['HST_CLUSTER_TAGS']=a22_0x3ee919,exports[a22_0x2022a1(0x17b)]=[this[a22_0x2022a1(0x1a3)]];const a22_0x59184e={};a22_0x59184e['LOG']='log',a22_0x59184e[a22_0x2022a1(0x185)]='resourceInfo',a22_0x59184e[a22_0x2022a1(0x174)]=a22_0x2022a1(0x1b7),a22_0x59184e[a22_0x2022a1(0x1ae)]='cliRunStarted',a22_0x59184e['CLI_RUN_FINISHED']=a22_0x2022a1(0x1c6),exports[a22_0x2022a1(0x189)]=a22_0x59184e,exports[a22_0x2022a1(0x1cb)]={},exports[a22_0x2022a1(0x1d0)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x15790e={};a22_0x15790e[a22_0x2022a1(0x1da)]=a22_0x2022a1(0x1d1)+this[a22_0x2022a1(0x1d0)],a22_0x15790e['init']=a22_0x2022a1(0x17a)+this[a22_0x2022a1(0x1d0)],a22_0x15790e[a22_0x2022a1(0x17d)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2022a1(0x1d0)],a22_0x15790e[a22_0x2022a1(0x177)]=a22_0x2022a1(0x1aa)+this[a22_0x2022a1(0x1d0)],a22_0x15790e[a22_0x2022a1(0x178)]={},a22_0x15790e[a22_0x2022a1(0x1b5)]=a22_0x2022a1(0x1d4)+this[a22_0x2022a1(0x1d0)],a22_0x15790e['connect']=a22_0x2022a1(0x175)+this['LINK_MESSAGE'],a22_0x15790e[a22_0x2022a1(0x18a)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x15790e[a22_0x2022a1(0x196)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x15790e[a22_0x2022a1(0x1b0)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x15790e[a22_0x2022a1(0x178)][a22_0x2022a1(0x1da)]=a22_0x2022a1(0x1d9)+this['LINK_MESSAGE'],a22_0x15790e[a22_0x2022a1(0x178)][a22_0x2022a1(0x1a9)]=a22_0x2022a1(0x19c)+this[a22_0x2022a1(0x1d0)],a22_0x15790e[a22_0x2022a1(0x178)][a22_0x2022a1(0x1ba)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x2022a1(0x1d0)],exports['HELP_HEADER_MESSAGE']=a22_0x15790e,exports[a22_0x2022a1(0x1af)]=a22_0x2022a1(0x17c);const a22_0x2668ff={};a22_0x2668ff[a22_0x2022a1(0x186)]=a22_0x2022a1(0x1c0),a22_0x2668ff['ERROR']=a22_0x2022a1(0x19e),a22_0x2668ff[a22_0x2022a1(0x18c)]=a22_0x2022a1(0x1c4),a22_0x2668ff[a22_0x2022a1(0x1bc)]=a22_0x2022a1(0x192),a22_0x2668ff['UNKNOWN']='unknown',a22_0x2668ff[a22_0x2022a1(0x1b2)]=null,exports[a22_0x2022a1(0x173)]=a22_0x2668ff,exports[a22_0x2022a1(0x1d2)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2022a1(0x1d8)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x2022a1(0x19b);function a22_0x19be(_0xe154cd,_0x449dbf){const _0xb9375a=a22_0xb937();return a22_0x19be=function(_0x19be59,_0x33fbac){_0x19be59=_0x19be59-0x173;let _0x27a821=_0xb9375a[_0x19be59];return _0x27a821;},a22_0x19be(_0xe154cd,_0x449dbf);}const a22_0xd9403e={};a22_0xd9403e[a22_0x2022a1(0x198)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x584661={};a22_0x584661['pre-check']=a22_0xd9403e,exports[a22_0x2022a1(0x1e0)]=a22_0x584661,exports[a22_0x2022a1(0x1ac)]=a22_0x2022a1(0x199);const a22_0x228be0={};a22_0x228be0[a22_0x2022a1(0x1cf)]='high-scale-grid-cluster',a22_0x228be0[a22_0x2022a1(0x1c5)]=a22_0x2022a1(0x1b1),a22_0x228be0[a22_0x2022a1(0x195)]=a22_0x2022a1(0x1df),exports[a22_0x2022a1(0x18d)]=a22_0x228be0;
@@ -1 +1 @@
1
- const a23_0x432fa0=a23_0x5ace;(function(_0x23726e,_0x28cdd0){const _0x11f5b3=a23_0x5ace,_0x2575fb=_0x23726e();while(!![]){try{const _0x49e7ea=parseInt(_0x11f5b3(0xb3))/0x1*(-parseInt(_0x11f5b3(0xaf))/0x2)+-parseInt(_0x11f5b3(0xb1))/0x3+parseInt(_0x11f5b3(0xb4))/0x4+parseInt(_0x11f5b3(0xa9))/0x5+-parseInt(_0x11f5b3(0xbf))/0x6*(-parseInt(_0x11f5b3(0xba))/0x7)+parseInt(_0x11f5b3(0xa4))/0x8*(parseInt(_0x11f5b3(0xbc))/0x9)+-parseInt(_0x11f5b3(0xac))/0xa;if(_0x49e7ea===_0x28cdd0)break;else _0x2575fb['push'](_0x2575fb['shift']());}catch(_0x3ffc08){_0x2575fb['push'](_0x2575fb['shift']());}}}(a23_0x3a6c,0xbe881));function a23_0x3a6c(){const _0x555349=['File','Console','format','existsSync','993995NNMguF','debug','level','9758140YfmRdl','timestamp','YYYY-MM-DD\x20HH:mm:ss','1840508xCRGeG','logger','2350659zoKVWN','transports','1dSRvWs','2198204UoHXxN','path','fileLogger','createLogger','events.log','join','21ARmobz','winston','9801GmpGor','\x20-\x20','console.info','2546238juACWs','10568bewpek'];a23_0x3a6c=function(){return _0x555349;};return a23_0x3a6c();}const winston=require(a23_0x432fa0(0xbb)),fs=require('fs'),path=require(a23_0x432fa0(0xb5)),logDir='log';!fs[a23_0x432fa0(0xa8)](logDir)&&fs['mkdirSync'](logDir);const a23_0x17ef76={};a23_0x17ef76[a23_0x432fa0(0xa7)]=a23_0x432fa0(0xae);const a23_0x5c6302={};a23_0x5c6302[a23_0x432fa0(0xab)]=!![];function a23_0x5ace(_0x1ffbf9,_0x13a459){const _0x3a6c1c=a23_0x3a6c();return a23_0x5ace=function(_0x5aceff,_0x9659a1){_0x5aceff=_0x5aceff-0xa4;let _0xb67ffc=_0x3a6c1c[_0x5aceff];return _0xb67ffc;},a23_0x5ace(_0x1ffbf9,_0x13a459);}const a23_0xaa8dff={};a23_0xaa8dff['name']=a23_0x432fa0(0xbe),exports[a23_0x432fa0(0xb0)]=new winston[(a23_0x432fa0(0xb7))]({'format':winston['format']['combine'](winston['format']['timestamp'](a23_0x17ef76),winston[a23_0x432fa0(0xa7)]['colorize'](a23_0x5c6302),winston[a23_0x432fa0(0xa7)]['printf'](_0x2cabfe=>_0x2cabfe[a23_0x432fa0(0xad)]+a23_0x432fa0(0xbd)+_0x2cabfe['level']+':\x20'+_0x2cabfe['message'])),'transports':[new winston[(a23_0x432fa0(0xb2))][(a23_0x432fa0(0xa6))](a23_0xaa8dff),new winston[(a23_0x432fa0(0xb2))]['File']({'filename':path[a23_0x432fa0(0xb9)](logDir,a23_0x432fa0(0xb8)),'level':a23_0x432fa0(0xaa)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x432fa0(0xb2))][(a23_0x432fa0(0xa5))]({'filename':path[a23_0x432fa0(0xb9)](logDir,'usage.log'),'level':a23_0x432fa0(0xaa)})]};exports[a23_0x432fa0(0xb6)]=new winston[(a23_0x432fa0(0xb7))](winstonFileLoggerParams);
1
+ const a23_0xb4e997=a23_0x3837;function a23_0x3837(_0x43a144,_0x3023b4){const _0x4e8de5=a23_0x4e8d();return a23_0x3837=function(_0x3837c6,_0x1e9fc2){_0x3837c6=_0x3837c6-0xb6;let _0x399e4a=_0x4e8de5[_0x3837c6];return _0x399e4a;},a23_0x3837(_0x43a144,_0x3023b4);}(function(_0x9fcfc2,_0x2ac8f5){const _0x3ca121=a23_0x3837,_0x3f2bdb=_0x9fcfc2();while(!![]){try{const _0x4299f1=-parseInt(_0x3ca121(0xbc))/0x1*(-parseInt(_0x3ca121(0xd2))/0x2)+parseInt(_0x3ca121(0xb7))/0x3+-parseInt(_0x3ca121(0xc3))/0x4*(-parseInt(_0x3ca121(0xc8))/0x5)+parseInt(_0x3ca121(0xd1))/0x6+-parseInt(_0x3ca121(0xbe))/0x7+-parseInt(_0x3ca121(0xc2))/0x8*(-parseInt(_0x3ca121(0xb9))/0x9)+-parseInt(_0x3ca121(0xb6))/0xa;if(_0x4299f1===_0x2ac8f5)break;else _0x3f2bdb['push'](_0x3f2bdb['shift']());}catch(_0x553eba){_0x3f2bdb['push'](_0x3f2bdb['shift']());}}}(a23_0x4e8d,0x499ab));const winston=require(a23_0xb4e997(0xbb)),fs=require('fs'),path=require(a23_0xb4e997(0xc7)),logDir='log';!fs[a23_0xb4e997(0xc6)](logDir)&&fs['mkdirSync'](logDir);const a23_0x20466e={};function a23_0x4e8d(){const _0x151f37=['existsSync','path','63200gBKxqc','printf','YYYY-MM-DD\x20HH:mm:ss','createLogger','format','fileLogger','Console','name','message','180822sgiADi','574060lSSNCS','transports','3060310oMngoZ','843444CrHNVQ','timestamp','2493jVBRLC','debug','winston','1HaJYAR','File','2212098CdQLVb','combine','level','\x20-\x20','6472QNNqEG','32FRZfMc','console.info','logger'];a23_0x4e8d=function(){return _0x151f37;};return a23_0x4e8d();}a23_0x20466e[a23_0xb4e997(0xcc)]=a23_0xb4e997(0xca);const a23_0x1252b3={};a23_0x1252b3[a23_0xb4e997(0xc0)]=!![];const a23_0x41669e={};a23_0x41669e[a23_0xb4e997(0xcf)]=a23_0xb4e997(0xc4),exports[a23_0xb4e997(0xc5)]=new winston['createLogger']({'format':winston[a23_0xb4e997(0xcc)][a23_0xb4e997(0xbf)](winston[a23_0xb4e997(0xcc)][a23_0xb4e997(0xb8)](a23_0x20466e),winston[a23_0xb4e997(0xcc)]['colorize'](a23_0x1252b3),winston['format'][a23_0xb4e997(0xc9)](_0x424958=>_0x424958['timestamp']+a23_0xb4e997(0xc1)+_0x424958[a23_0xb4e997(0xc0)]+':\x20'+_0x424958[a23_0xb4e997(0xd0)])),'transports':[new winston[(a23_0xb4e997(0xd3))][(a23_0xb4e997(0xce))](a23_0x41669e),new winston['transports'][(a23_0xb4e997(0xbd))]({'filename':path['join'](logDir,'events.log'),'level':a23_0xb4e997(0xba)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xb4e997(0xd3))][(a23_0xb4e997(0xbd))]({'filename':path['join'](logDir,'usage.log'),'level':'debug'})]};exports[a23_0xb4e997(0xcd)]=new winston[(a23_0xb4e997(0xcb))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x29f4e9=a24_0x54c9;(function(_0x3cdf17,_0x520f5a){const _0x36245b=a24_0x54c9,_0xedf0d=_0x3cdf17();while(!![]){try{const _0x22b2be=parseInt(_0x36245b(0x120))/0x1+parseInt(_0x36245b(0x121))/0x2+parseInt(_0x36245b(0x129))/0x3*(-parseInt(_0x36245b(0x124))/0x4)+-parseInt(_0x36245b(0x11a))/0x5*(parseInt(_0x36245b(0x12a))/0x6)+-parseInt(_0x36245b(0x11b))/0x7+parseInt(_0x36245b(0x11e))/0x8+parseInt(_0x36245b(0x12b))/0x9*(parseInt(_0x36245b(0x11f))/0xa);if(_0x22b2be===_0x520f5a)break;else _0xedf0d['push'](_0xedf0d['shift']());}catch(_0x58c84b){_0xedf0d['push'](_0xedf0d['shift']());}}}(a24_0x33bf,0x35d8e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x29f4e9(0x118));process[a24_0x29f4e9(0x122)][a24_0x29f4e9(0x12c)]=0x1;function a24_0x33bf(){const _0x53218b=['13846JyQIFL','466772ZxJSKH','env','PMniW','45044BApHOQ','PkBWk','root','demandCommand','commands','75AgTWQl','135414NzyIpr','18fQukwd','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','./config/constants','usage','95gMTsMG','67109wzxwPn','help','commandDir','1984184cHAMuf','2226130pQBciu'];a24_0x33bf=function(){return _0x53218b;};return a24_0x33bf();}function a24_0x54c9(_0x34640e,_0xa7c7f7){const _0x33bfca=a24_0x33bf();return a24_0x54c9=function(_0x54c967,_0x103148){_0x54c967=_0x54c967-0x117;let _0x3df1a3=_0x33bfca[_0x54c967];return _0x3df1a3;},a24_0x54c9(_0x34640e,_0xa7c7f7);}function run(_0x85b176){const _0x143552=a24_0x29f4e9,_0x517ac0={};_0x517ac0[_0x143552(0x123)]=_0x143552(0x128),_0x517ac0['PkBWk']=_0x143552(0x11c);const _0x4c1c92=_0x517ac0;_0x85b176[_0x143552(0x119)](HELP_HEADER_MESSAGE[_0x143552(0x126)])[_0x143552(0x11d)](_0x4c1c92[_0x143552(0x123)])[_0x143552(0x127)]()[_0x143552(0x11c)](_0x4c1c92[_0x143552(0x125)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x29f4e9(0x117)]=run;
2
+ 'use strict';const a24_0x1a0d0b=a24_0x5897;function a24_0x5897(_0x2959a2,_0x2f1f8e){const _0x2c3c5b=a24_0x2c3c();return a24_0x5897=function(_0x58973f,_0x4a46c8){_0x58973f=_0x58973f-0x78;let _0x158a01=_0x2c3c5b[_0x58973f];return _0x158a01;},a24_0x5897(_0x2959a2,_0x2f1f8e);}(function(_0x530b51,_0x1637e6){const _0xbc7a3c=a24_0x5897,_0x1f6bed=_0x530b51();while(!![]){try{const _0x42aa99=-parseInt(_0xbc7a3c(0x8d))/0x1*(-parseInt(_0xbc7a3c(0x82))/0x2)+parseInt(_0xbc7a3c(0x83))/0x3*(-parseInt(_0xbc7a3c(0x80))/0x4)+-parseInt(_0xbc7a3c(0x8e))/0x5+parseInt(_0xbc7a3c(0x7c))/0x6+parseInt(_0xbc7a3c(0x7a))/0x7*(-parseInt(_0xbc7a3c(0x79))/0x8)+-parseInt(_0xbc7a3c(0x7b))/0x9*(-parseInt(_0xbc7a3c(0x7f))/0xa)+parseInt(_0xbc7a3c(0x88))/0xb*(-parseInt(_0xbc7a3c(0x86))/0xc);if(_0x42aa99===_0x1637e6)break;else _0x1f6bed['push'](_0x1f6bed['shift']());}catch(_0x2d8ec8){_0x1f6bed['push'](_0x1f6bed['shift']());}}}(a24_0x2c3c,0x3b1e8));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1a0d0b(0x8a));function a24_0x2c3c(){const _0x3a43ad=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','23008MWTMCG','658KCKHKX','207lYcOKT','2043084ImVjQY','exports','root','135890fHTysb','812ynAvIC','commandDir','393782avqLnZ','2091HWLAPn','epilogue','eBauX','357048FamGXS','commands','44GXiPHh','FNTWz','./config/constants','usage','help','1jhImRo','384745aPaOIv'];a24_0x2c3c=function(){return _0x3a43ad;};return a24_0x2c3c();}process['env'][a24_0x1a0d0b(0x78)]=0x1;function run(_0x244749){const _0x46b3b2=a24_0x1a0d0b,_0x21437e={};_0x21437e[_0x46b3b2(0x89)]=_0x46b3b2(0x87),_0x21437e[_0x46b3b2(0x85)]=_0x46b3b2(0x8c);const _0x3b8319=_0x21437e;_0x244749[_0x46b3b2(0x8b)](HELP_HEADER_MESSAGE[_0x46b3b2(0x7e)])[_0x46b3b2(0x81)](_0x3b8319[_0x46b3b2(0x89)])['demandCommand']()['help'](_0x3b8319[_0x46b3b2(0x85)])[_0x46b3b2(0x84)](HELP_FOOTER_MESSAGE);}module[a24_0x1a0d0b(0x7d)]=run;