browserstack-node-sdk 1.36.2 → 1.36.4

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 (194) 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 -7
  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/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
  138. package/generated/sdk-messages-accessibility_grpc_pb.d.ts +0 -1
  139. package/generated/sdk-messages-accessibility_grpc_pb.js +0 -1
  140. package/generated/sdk-messages-accessibility_pb.d.ts +0 -279
  141. package/generated/sdk-messages-accessibility_pb.js +0 -2186
  142. package/generated/sdk-messages-ai_grpc_pb.d.ts +0 -1
  143. package/generated/sdk-messages-ai_grpc_pb.js +0 -1
  144. package/generated/sdk-messages-ai_pb.d.ts +0 -217
  145. package/generated/sdk-messages-ai_pb.js +0 -1650
  146. package/generated/sdk-messages-observability_grpc_pb.d.ts +0 -1
  147. package/generated/sdk-messages-observability_grpc_pb.js +0 -1
  148. package/generated/sdk-messages-observability_pb.d.ts +0 -178
  149. package/generated/sdk-messages-observability_pb.js +0 -1377
  150. package/generated/sdk-messages-percy_grpc_pb.d.ts +0 -1
  151. package/generated/sdk-messages-percy_grpc_pb.js +0 -1
  152. package/generated/sdk-messages-percy_pb.d.ts +0 -37
  153. package/generated/sdk-messages-percy_pb.js +0 -266
  154. package/generated/sdk-messages-testhub_grpc_pb.d.ts +0 -1
  155. package/generated/sdk-messages-testhub_grpc_pb.js +0 -1
  156. package/generated/sdk-messages-testhub_pb.d.ts +0 -39
  157. package/generated/sdk-messages-testhub_pb.js +0 -290
  158. package/generated/sdk-messages_grpc_pb.d.ts +0 -1
  159. package/generated/sdk-messages_grpc_pb.js +0 -1
  160. package/generated/sdk-messages_pb.d.ts +0 -1105
  161. package/generated/sdk-messages_pb.js +0 -8580
  162. package/generated/sdk_grpc_pb.d.ts +0 -113
  163. package/generated/sdk_grpc_pb.js +0 -609
  164. package/generated/sdk_pb.d.ts +0 -9
  165. package/generated/sdk_pb.js +0 -31
  166. package/src/bin/v2/TestInfo.js +0 -1
  167. package/src/bin/v2/browserstackCLI.js +0 -1
  168. package/src/bin/v2/cliUtils.js +0 -1
  169. package/src/bin/v2/customTagManager.js +0 -1
  170. package/src/bin/v2/eventDispatcher.js +0 -1
  171. package/src/bin/v2/framework/automationFramework.js +0 -1
  172. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +0 -1
  173. package/src/bin/v2/framework/constants/testFrameworkConstants.js +0 -1
  174. package/src/bin/v2/framework/playwrightAutomationFramework.js +0 -1
  175. package/src/bin/v2/framework/playwrightTestFramework.js +0 -1
  176. package/src/bin/v2/framework/testFramework.js +0 -1
  177. package/src/bin/v2/grpcClient.js +0 -1
  178. package/src/bin/v2/instances/automationFrameworkInstance.js +0 -1
  179. package/src/bin/v2/instances/testFrameworkInstance.js +0 -1
  180. package/src/bin/v2/instances/trackedContext.js +0 -1
  181. package/src/bin/v2/instances/trackedInstance.js +0 -1
  182. package/src/bin/v2/modules/accessibilityModule.js +0 -1
  183. package/src/bin/v2/modules/baseModule.js +0 -1
  184. package/src/bin/v2/modules/observabilityModule.js +0 -1
  185. package/src/bin/v2/modules/playwrightDriverModule.js +0 -1
  186. package/src/bin/v2/modules/testhubModule.js +0 -1
  187. package/src/bin/v2/state/automationFrameworkState.js +0 -1
  188. package/src/bin/v2/state/hookState.js +0 -1
  189. package/src/bin/v2/state/testFrameworkState.js +0 -1
  190. package/src/bin/v2/uploadAttachmentsManager.js +0 -1
  191. package/src/helpers/classLogger.js +0 -1
  192. package/src/helpers/test-orchestration/fail-fast/fileHelper.js +0 -1
  193. package/src/helpers/test-orchestration/fail-fast/jest.js +0 -1
  194. package/src/helpers/test-orchestration/fail-fast/requestUtils.js +0 -1
@@ -1 +1 @@
1
- const a15_0x36685d=a15_0x5a03;function a15_0x3c3e(){const _0xba20d6=['vfFgq','WaUAh','grids','status','VYAvv','readFileSync','body','2otfovM','mmimQ','../../utils/instrumentationUtils','DfCjE','12152763paqaHA','error','INFO','21838770FmwfdF','password','table','running','bstackUsername','got','../../config/constants','SpbHo','https://','existsSync','25UtiyVl','forEach','Fwyjm','RWTIw','SqsjJ','exit','rOuXu','\x0aFound\x20the\x20following\x20grids:\x0a','list','1520315TLIaTi','vwdSj','Browserstack','5624408zMrWrE','grid-name','push','handler','NObRr','desc','usage','bstackAccesskey','QFtQZ','statusCode','7632txecVZ','help','unauthorised','unknown-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','JVtUo','753164ZVreqr','queued','clusterName','cluster-name','GwVsT','uuid','XiwGS','requestId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/utilityMethods','ERROR','parse','username','options','DnOij','331968clZizP','JgtOf','stringify','log','3409EwzBxN','epilogue','bzYac','grid','/packages/cli/get-all-grids','description','builder','jfdeL','xvNVC','OUcWr','rijGw','command','boolean','AvYUP'];a15_0x3c3e=function(){return _0xba20d6;};return a15_0x3c3e();}(function(_0x59b691,_0x19ea12){const _0x10039e=a15_0x5a03,_0x3038e5=_0x59b691();while(!![]){try{const _0x3e8e84=parseInt(_0x10039e(0xfd))/0x1*(parseInt(_0x10039e(0xe3))/0x2)+-parseInt(_0x10039e(0x11f))/0x3+parseInt(_0x10039e(0x110))/0x4*(-parseInt(_0x10039e(0xf4))/0x5)+-parseInt(_0x10039e(0x10a))/0x6*(-parseInt(_0x10039e(0xce))/0x7)+parseInt(_0x10039e(0x100))/0x8+parseInt(_0x10039e(0xe7))/0x9+-parseInt(_0x10039e(0xea))/0xa;if(_0x3e8e84===_0x19ea12)break;else _0x3038e5['push'](_0x3038e5['shift']());}catch(_0x4ba9a0){_0x3038e5['push'](_0x3038e5['shift']());}}}(a15_0x3c3e,0xe9add));function a15_0x5a03(_0x3324cf,_0x1f06bd){const _0x3c3e07=a15_0x3c3e();return a15_0x5a03=function(_0x5a03fc,_0x365487){_0x5a03fc=_0x5a03fc-0xcd;let _0x211834=_0x3c3e07[_0x5a03fc];return _0x211834;},a15_0x5a03(_0x3324cf,_0x1f06bd);}const fs=require('fs'),got=require(a15_0x36685d(0xef)),{table}=require(a15_0x36685d(0xec)),{v4:uuidv4}=require(a15_0x36685d(0x115)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x36685d(0xf0)),{getCredentialsPath,getAuthHeader}=require(a15_0x36685d(0x119)),{sendInstrumentationEvent}=require(a15_0x36685d(0xe5));exports[a15_0x36685d(0xd9)]=a15_0x36685d(0xde),exports[a15_0x36685d(0x105)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x36685d(0xd4)]=function(_0x37566a){const _0x5268db=a15_0x36685d,_0x29af45={};_0x29af45[_0x5268db(0x10f)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x29af45[_0x5268db(0xd8)]=_0x5268db(0xda),_0x29af45[_0x5268db(0x114)]='help';const _0x15caa2=_0x29af45,_0x5c1831={};_0x5c1831[_0x5268db(0xd3)]=_0x15caa2[_0x5268db(0x10f)],_0x5c1831['type']=_0x15caa2[_0x5268db(0xd8)];const _0x1d313b={};return _0x1d313b['all-grids']=_0x5c1831,_0x37566a[_0x5268db(0x106)](HELP_HEADER_MESSAGE[_0x5268db(0xfc)][_0x5268db(0xd1)])[_0x5268db(0xcf)](HELP_FOOTER_MESSAGE)[_0x5268db(0x11d)](_0x1d313b)[_0x5268db(0x10b)](_0x15caa2[_0x5268db(0x114)])['argv'];},exports[a15_0x36685d(0x103)]=async function(_0x38c0b4){const _0x63dfac=a15_0x36685d,_0x56231c={'xvNVC':function(_0x7ca4){return _0x7ca4();},'rwcZk':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bzYac':function(_0x13721a,_0x3f8745,_0x14e5fc,_0x4bbb55,_0x3101b2,_0x5f073f,_0x142db2){return _0x13721a(_0x3f8745,_0x14e5fc,_0x4bbb55,_0x3101b2,_0x5f073f,_0x142db2);},'WaUAh':'list-grids-called','Lnnhq':'init-not-called','RWTIw':function(_0x26ae6){return _0x26ae6();},'DnOij':'GET','SqsjJ':function(_0x4c94a3,_0x545499,_0x12c1d2){return _0x4c94a3(_0x545499,_0x12c1d2);},'DfCjE':function(_0x2f32b3,_0x5536a0){return _0x2f32b3!==_0x5536a0;},'OUcWr':function(_0x9a82b,_0x2dc039){return _0x9a82b!==_0x2dc039;},'Fwyjm':function(_0x2f0aad,_0xe5c5c9){return _0x2f0aad===_0xe5c5c9;},'vwdSj':_0x63dfac(0xfb),'AvYUP':'grid-id','mmimQ':_0x63dfac(0x101),'jfdeL':_0x63dfac(0xdf),'NObRr':_0x63dfac(0xed),'QFtQZ':_0x63dfac(0x111),'rOuXu':_0x63dfac(0x113),'Evull':function(_0x340baf,_0x318f35){return _0x340baf(_0x318f35);},'XiwGS':_0x63dfac(0x10e),'VYAvv':_0x63dfac(0x10c),'JgtOf':function(_0x26a1b8,_0xbcddc9,_0x53c373,_0x4322c0,_0x449eb9,_0x1679f5,_0x175013){return _0x26a1b8(_0xbcddc9,_0x53c373,_0x4322c0,_0x449eb9,_0x1679f5,_0x175013);},'gKniL':'server-error','SpbHo':function(_0x57f34b,_0x5564f4,_0x45cd58,_0x4d3112,_0xefe4bf,_0x246324,_0x3c091b){return _0x57f34b(_0x5564f4,_0x45cd58,_0x4d3112,_0xefe4bf,_0x246324,_0x3c091b);},'vfFgq':_0x63dfac(0x10d)};try{global_registry[_0x63dfac(0x117)]=_0x56231c[_0x63dfac(0xd6)](uuidv4);!fs[_0x63dfac(0xf3)](_0x56231c['xvNVC'](getCredentialsPath))&&(console[_0x63dfac(0xe8)](_0x56231c['rwcZk']),await _0x56231c[_0x63dfac(0xd0)](sendInstrumentationEvent,_0x38c0b4,_0x56231c['WaUAh'],messageTypes['ERROR'],_0x56231c['Lnnhq'],null,_0x38c0b4),process[_0x63dfac(0xf9)](0x1));const _0x1159ab=JSON[_0x63dfac(0x11b)](fs[_0x63dfac(0xe1)](_0x56231c[_0x63dfac(0xf7)](getCredentialsPath)));let _0x412df4=_0x63dfac(0xf2)+AG_API_URL+'/packages/cli/get-grids';_0x38c0b4['allGrids']&&(_0x412df4='https://'+AG_API_URL+_0x63dfac(0xd2));const _0x4a31db={'method':_0x56231c[_0x63dfac(0x11e)],'headers':_0x56231c['SqsjJ'](getAuthHeader,_0x1159ab['Browserstack'][_0x63dfac(0x11c)],_0x1159ab[_0x63dfac(0xff)]['password']),'throwHttpErrors':![]};global_registry[_0x63dfac(0xee)]=_0x1159ab[_0x63dfac(0xff)][_0x63dfac(0x11c)],global_registry[_0x63dfac(0x107)]=_0x1159ab[_0x63dfac(0xff)][_0x63dfac(0xeb)],_0x56231c[_0x63dfac(0xd0)](sendInstrumentationEvent,_0x38c0b4,_0x56231c[_0x63dfac(0xdd)],messageTypes[_0x63dfac(0xe9)],null,null,_0x38c0b4);const _0x4a2fce=await _0x56231c[_0x63dfac(0xf8)](got,_0x412df4,_0x4a31db);if(_0x56231c[_0x63dfac(0xe6)](_0x4a2fce,null)&&_0x56231c[_0x63dfac(0xd7)](_0x4a2fce,undefined)&&_0x56231c[_0x63dfac(0xf6)](_0x4a2fce[_0x63dfac(0x109)],0xc8)){const _0x422611=JSON[_0x63dfac(0x11b)](_0x4a2fce[_0x63dfac(0xe2)]);console[_0x63dfac(0xcd)](_0x56231c[_0x63dfac(0xfe)]);const _0x36e962=[];_0x36e962['push']([_0x56231c[_0x63dfac(0xdb)],_0x56231c[_0x63dfac(0xe4)],_0x56231c[_0x63dfac(0xd5)],_0x56231c[_0x63dfac(0x104)],_0x56231c[_0x63dfac(0x108)],_0x56231c[_0x63dfac(0xfa)]]),_0x422611[_0x63dfac(0xf5)](_0x24e814=>{const _0x1c2e67=_0x63dfac;_0x36e962[_0x1c2e67(0x102)]([_0x24e814['id'],_0x24e814['name'],_0x24e814[_0x1c2e67(0xdf)],_0x24e814[_0x1c2e67(0xed)],_0x24e814[_0x1c2e67(0x111)],_0x24e814[_0x1c2e67(0x112)]]);}),console[_0x63dfac(0xcd)](_0x56231c['Evull'](table,_0x36e962)),process[_0x63dfac(0xf9)](0x0);}_0x56231c['Fwyjm'](_0x4a2fce[_0x63dfac(0x109)],0x191)&&(console['error'](_0x56231c[_0x63dfac(0x116)]),await _0x56231c[_0x63dfac(0xd0)](sendInstrumentationEvent,_0x38c0b4,_0x56231c[_0x63dfac(0xdd)],messageTypes['ERROR'],_0x56231c[_0x63dfac(0xe0)],null,_0x38c0b4),process[_0x63dfac(0xf9)](0x1)),console[_0x63dfac(0xe8)](_0x63dfac(0x118)+JSON[_0x63dfac(0x121)](_0x4a2fce)),await _0x56231c[_0x63dfac(0x120)](sendInstrumentationEvent,_0x38c0b4,_0x56231c['WaUAh'],messageTypes[_0x63dfac(0x11a)],_0x56231c['gKniL'],_0x4a2fce,_0x38c0b4),process['exit'](0x1);}catch(_0x50980c){console[_0x63dfac(0xe8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x50980c['stack']),await _0x56231c[_0x63dfac(0xf1)](sendInstrumentationEvent,_0x38c0b4,_0x56231c[_0x63dfac(0xdd)],messageTypes[_0x63dfac(0x11a)],_0x56231c[_0x63dfac(0xdc)],_0x50980c,_0x38c0b4),process[_0x63dfac(0xf9)](0x1);}};
1
+ const a15_0x3cbe9d=a15_0x4f50;(function(_0x2711f9,_0x500dc1){const _0xc664aa=a15_0x4f50,_0x490d13=_0x2711f9();while(!![]){try{const _0x167105=parseInt(_0xc664aa(0x1e4))/0x1*(parseInt(_0xc664aa(0x1b7))/0x2)+-parseInt(_0xc664aa(0x1ba))/0x3+-parseInt(_0xc664aa(0x1eb))/0x4+-parseInt(_0xc664aa(0x1de))/0x5+-parseInt(_0xc664aa(0x1ae))/0x6+-parseInt(_0xc664aa(0x1bf))/0x7*(parseInt(_0xc664aa(0x1d1))/0x8)+parseInt(_0xc664aa(0x1ab))/0x9;if(_0x167105===_0x500dc1)break;else _0x490d13['push'](_0x490d13['shift']());}catch(_0x56e85b){_0x490d13['push'](_0x490d13['shift']());}}}(a15_0x136b,0xe59d5));function a15_0x4f50(_0x2b09c3,_0x85e853){const _0x136b39=a15_0x136b();return a15_0x4f50=function(_0x4f5099,_0x750f77){_0x4f5099=_0x4f5099-0x1a9;let _0x4e0321=_0x136b39[_0x4f5099];return _0x4e0321;},a15_0x4f50(_0x2b09c3,_0x85e853);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x3cbe9d(0x1e9)),{v4:uuidv4}=require(a15_0x3cbe9d(0x1e2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3cbe9d(0x1ea)),{getCredentialsPath,getAuthHeader}=require(a15_0x3cbe9d(0x1e5)),{sendInstrumentationEvent}=require(a15_0x3cbe9d(0x1df));exports['command']=a15_0x3cbe9d(0x1b5),exports[a15_0x3cbe9d(0x1d9)]=a15_0x3cbe9d(0x1b2),exports['builder']=function(_0x549b3c){const _0x4bb646=a15_0x3cbe9d,_0x537929={};_0x537929['oSfwG']=_0x4bb646(0x1af),_0x537929[_0x4bb646(0x1f8)]=_0x4bb646(0x1c2),_0x537929[_0x4bb646(0x1f9)]=_0x4bb646(0x1fd);const _0x32feec=_0x537929,_0x5a974e={};_0x5a974e[_0x4bb646(0x1e3)]=_0x32feec[_0x4bb646(0x1fa)],_0x5a974e['type']=_0x32feec[_0x4bb646(0x1f8)];const _0x3fbf6b={};return _0x3fbf6b[_0x4bb646(0x1d8)]=_0x5a974e,_0x549b3c[_0x4bb646(0x1be)](HELP_HEADER_MESSAGE[_0x4bb646(0x1cc)][_0x4bb646(0x1cf)])[_0x4bb646(0x1f4)](HELP_FOOTER_MESSAGE)[_0x4bb646(0x1f1)](_0x3fbf6b)[_0x4bb646(0x1fd)](_0x32feec['mPSdc'])[_0x4bb646(0x1b9)];},exports['handler']=async function(_0xeadc43){const _0x68cb77=a15_0x3cbe9d,_0x48f5bb={'QTDkV':function(_0x6a4d8c){return _0x6a4d8c();},'HHwmO':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yXiMZ':function(_0x1aa017,_0x36bca9,_0x4e313b,_0x28a1e4,_0x515bdf,_0x5d9558,_0x14bdec){return _0x1aa017(_0x36bca9,_0x4e313b,_0x28a1e4,_0x515bdf,_0x5d9558,_0x14bdec);},'KgZDD':'list-grids-called','xRKwr':_0x68cb77(0x1b8),'nWIIl':_0x68cb77(0x1f0),'yrpvK':function(_0x288bdf,_0x2a16a7,_0x5c1761){return _0x288bdf(_0x2a16a7,_0x5c1761);},'qMqTy':function(_0x132a07,_0x1c41a7,_0x347fdc,_0x11eea2,_0x4f1f33,_0x20a2d1,_0x18479c){return _0x132a07(_0x1c41a7,_0x347fdc,_0x11eea2,_0x4f1f33,_0x20a2d1,_0x18479c);},'HXZjH':function(_0x2cdb1d,_0x121133){return _0x2cdb1d!==_0x121133;},'VAQgZ':function(_0x2b87ad,_0x569d23){return _0x2b87ad===_0x569d23;},'TlcrN':_0x68cb77(0x1cb),'fNwtW':_0x68cb77(0x1dd),'DlZWP':_0x68cb77(0x1b4),'oNHhe':_0x68cb77(0x1ce),'MBszI':_0x68cb77(0x1aa),'pSfky':_0x68cb77(0x1bd),'ROZgQ':'cluster-name','VInjU':function(_0x10db89,_0x4e4e5e){return _0x10db89(_0x4e4e5e);},'JODfg':_0x68cb77(0x1fc),'nppFA':_0x68cb77(0x1e6),'vQcCN':function(_0x4b0986,_0x4e7f7f,_0x3ada25,_0x2a588b,_0x2f7c20,_0x362c5e,_0x38ec54){return _0x4b0986(_0x4e7f7f,_0x3ada25,_0x2a588b,_0x2f7c20,_0x362c5e,_0x38ec54);},'ZckHO':_0x68cb77(0x1b3),'olQEx':_0x68cb77(0x1c4)};try{global_registry[_0x68cb77(0x1e8)]=_0x48f5bb[_0x68cb77(0x1f5)](uuidv4);!fs[_0x68cb77(0x1f6)](_0x48f5bb[_0x68cb77(0x1f5)](getCredentialsPath))&&(console[_0x68cb77(0x1bb)](_0x48f5bb['HHwmO']),await _0x48f5bb[_0x68cb77(0x1c3)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes['ERROR'],_0x48f5bb['xRKwr'],null,_0xeadc43),process[_0x68cb77(0x1b6)](0x1));const _0x6b1e91=JSON[_0x68cb77(0x1d0)](fs[_0x68cb77(0x1c0)](_0x48f5bb['QTDkV'](getCredentialsPath)));let _0x511d21=_0x68cb77(0x1f2)+AG_API_URL+_0x68cb77(0x1db);_0xeadc43[_0x68cb77(0x1e1)]&&(_0x511d21=_0x68cb77(0x1f2)+AG_API_URL+'/packages/cli/get-all-grids');const _0x57cb64={'method':_0x48f5bb[_0x68cb77(0x1ca)],'headers':_0x48f5bb['yrpvK'](getAuthHeader,_0x6b1e91[_0x68cb77(0x1da)][_0x68cb77(0x1bc)],_0x6b1e91[_0x68cb77(0x1da)][_0x68cb77(0x1ef)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x6b1e91['Browserstack'][_0x68cb77(0x1bc)],global_registry[_0x68cb77(0x1d3)]=_0x6b1e91['Browserstack'][_0x68cb77(0x1ef)],_0x48f5bb[_0x68cb77(0x1b1)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1ec)],null,null,_0xeadc43);const _0x125073=await _0x48f5bb[_0x68cb77(0x1c7)](got,_0x511d21,_0x57cb64);if(_0x48f5bb[_0x68cb77(0x1c6)](_0x125073,null)&&_0x48f5bb[_0x68cb77(0x1c6)](_0x125073,undefined)&&_0x48f5bb[_0x68cb77(0x1d5)](_0x125073[_0x68cb77(0x1e0)],0xc8)){const _0x2d5a9c=JSON['parse'](_0x125073[_0x68cb77(0x1d4)]);console[_0x68cb77(0x1ed)](_0x48f5bb['TlcrN']);const _0x44d674=[];_0x44d674[_0x68cb77(0x1f3)]([_0x48f5bb[_0x68cb77(0x1ad)],_0x48f5bb[_0x68cb77(0x1ac)],_0x48f5bb['oNHhe'],_0x48f5bb[_0x68cb77(0x1d2)],_0x48f5bb[_0x68cb77(0x1d6)],_0x48f5bb[_0x68cb77(0x1c5)]]),_0x2d5a9c[_0x68cb77(0x1f7)](_0x290857=>{const _0x37b7ff=_0x68cb77;_0x44d674['push']([_0x290857['id'],_0x290857['name'],_0x290857['status'],_0x290857[_0x37b7ff(0x1aa)],_0x290857[_0x37b7ff(0x1bd)],_0x290857[_0x37b7ff(0x1c1)]]);}),console['log'](_0x48f5bb[_0x68cb77(0x1cd)](table,_0x44d674)),process[_0x68cb77(0x1b6)](0x0);}_0x48f5bb['VAQgZ'](_0x125073['statusCode'],0x191)&&(console[_0x68cb77(0x1bb)](_0x48f5bb[_0x68cb77(0x1b0)]),await _0x48f5bb['qMqTy'](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1e7)],_0x48f5bb[_0x68cb77(0x1dc)],null,_0xeadc43),process[_0x68cb77(0x1b6)](0x1)),console[_0x68cb77(0x1bb)](_0x68cb77(0x1fb)+JSON['stringify'](_0x125073)),await _0x48f5bb[_0x68cb77(0x1d7)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1e7)],_0x48f5bb[_0x68cb77(0x1a9)],_0x125073,_0xeadc43),process['exit'](0x1);}catch(_0x2f3cd2){console['error'](_0x68cb77(0x1ee)+_0x2f3cd2[_0x68cb77(0x1c9)]),await _0x48f5bb[_0x68cb77(0x1b1)](sendInstrumentationEvent,_0xeadc43,_0x48f5bb[_0x68cb77(0x1c8)],messageTypes[_0x68cb77(0x1e7)],_0x48f5bb['olQEx'],_0x2f3cd2,_0xeadc43),process['exit'](0x1);}};function a15_0x136b(){const _0x4c2117=['MBszI','bstackAccesskey','body','VAQgZ','pSfky','vQcCN','all-grids','desc','Browserstack','/packages/cli/get-grids','nppFA','grid-id','4260765SVOrxJ','../../utils/instrumentationUtils','statusCode','allGrids','uuid','description','42073HjESmH','../../utils/utilityMethods','unauthorised','ERROR','requestId','table','../../config/constants','2441884frESBB','INFO','log','Failed\x20to\x20list\x20resources!\x20Error:\x20','password','GET','options','https://','push','epilogue','QTDkV','existsSync','forEach','uYHpy','mPSdc','oSfwG','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','help','ZckHO','running','33740676ikAJGn','DlZWP','fNwtW','2859438FGOWOJ','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','JODfg','qMqTy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','server-error','grid-name','grids','exit','64MEgbxd','init-not-called','argv','1442634CHyNPF','error','username','queued','usage','7ffYNat','readFileSync','clusterName','boolean','yXiMZ','unknown-error','ROZgQ','HXZjH','yrpvK','KgZDD','stack','nWIIl','\x0aFound\x20the\x20following\x20grids:\x0a','list','VInjU','status','grid','parse','13877792BLFBvI'];a15_0x136b=function(){return _0x4c2117;};return a15_0x136b();}
@@ -1 +1 @@
1
- const a16_0x182c8b=a16_0x5492;function a16_0x5492(_0x470165,_0x1550cd){const _0x1246a3=a16_0x1246();return a16_0x5492=function(_0x549296,_0x1a411a){_0x549296=_0x549296-0x1cd;let _0x86029d=_0x1246a3[_0x549296];return _0x86029d;},a16_0x5492(_0x470165,_0x1550cd);}(function(_0x2c5bd0,_0x64fbab){const _0x3aa159=a16_0x5492,_0x2b4a80=_0x2c5bd0();while(!![]){try{const _0x1e1e3a=parseInt(_0x3aa159(0x1e2))/0x1+parseInt(_0x3aa159(0x1dd))/0x2*(-parseInt(_0x3aa159(0x1df))/0x3)+-parseInt(_0x3aa159(0x1da))/0x4+parseInt(_0x3aa159(0x1d6))/0x5*(-parseInt(_0x3aa159(0x1d7))/0x6)+parseInt(_0x3aa159(0x1d9))/0x7*(-parseInt(_0x3aa159(0x1dc))/0x8)+-parseInt(_0x3aa159(0x1d4))/0x9+parseInt(_0x3aa159(0x1d8))/0xa*(parseInt(_0x3aa159(0x1ce))/0xb);if(_0x1e1e3a===_0x64fbab)break;else _0x2b4a80['push'](_0x2b4a80['shift']());}catch(_0x1c03e1){_0x2b4a80['push'](_0x2b4a80['shift']());}}}(a16_0x1246,0xac2e7));function a16_0x1246(){const _0x22a72a=['help','8nPHSCv','33682YWsHBV','pre-check','93GlMZlM','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','commandDir','421942mrLIuc','strict','pre_check','11RAaAZN','Dscna','BLDQo','recommendCommands','../config/constants','epilogue','2050083eqGgHT','precheck_commands','140485GXhscA','48GWbHAu','29291230Uhgrck','5132687TtPXpl','3751740QXZybs'];a16_0x1246=function(){return _0x22a72a;};return a16_0x1246();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x182c8b(0x1d2));exports['command']=a16_0x182c8b(0x1de),exports['desc']=a16_0x182c8b(0x1e0),exports['builder']=function(_0x12f1b2){const _0xb5282b=a16_0x182c8b,_0x3c0022={};_0x3c0022[_0xb5282b(0x1cf)]=_0xb5282b(0x1d5),_0x3c0022[_0xb5282b(0x1d0)]=_0xb5282b(0x1db);const _0x43777d=_0x3c0022;return _0x12f1b2['usage'](HELP_HEADER_MESSAGE[_0xb5282b(0x1cd)])[_0xb5282b(0x1d3)](HELP_FOOTER_MESSAGE)[_0xb5282b(0x1e1)](_0x43777d[_0xb5282b(0x1cf)])['demandCommand']()[_0xb5282b(0x1d1)]()[_0xb5282b(0x1e3)]()['help'](_0x43777d['BLDQo']);},exports['handler']=function(_0x5ddfac){};
1
+ function a16_0x5244(_0x3d73c9,_0x3d0733){const _0x46006a=a16_0x4600();return a16_0x5244=function(_0x5244f4,_0x5f561f){_0x5244f4=_0x5244f4-0x15e;let _0x57f143=_0x46006a[_0x5244f4];return _0x57f143;},a16_0x5244(_0x3d73c9,_0x3d0733);}const a16_0x512fca=a16_0x5244;(function(_0x1f2e02,_0x5332ee){const _0x34feea=a16_0x5244,_0x4d0a54=_0x1f2e02();while(!![]){try{const _0x40a372=parseInt(_0x34feea(0x176))/0x1*(-parseInt(_0x34feea(0x172))/0x2)+-parseInt(_0x34feea(0x16f))/0x3+parseInt(_0x34feea(0x175))/0x4+-parseInt(_0x34feea(0x170))/0x5*(-parseInt(_0x34feea(0x15f))/0x6)+-parseInt(_0x34feea(0x178))/0x7*(-parseInt(_0x34feea(0x16b))/0x8)+parseInt(_0x34feea(0x174))/0x9*(-parseInt(_0x34feea(0x171))/0xa)+-parseInt(_0x34feea(0x15e))/0xb*(-parseInt(_0x34feea(0x16a))/0xc);if(_0x40a372===_0x5332ee)break;else _0x4d0a54['push'](_0x4d0a54['shift']());}catch(_0x11ed19){_0x4d0a54['push'](_0x4d0a54['shift']());}}}(a16_0x4600,0x92853));function a16_0x4600(){const _0x28fe7b=['104YRKlLr','LdzQd','NQqgD','pre-check','97695aFvsyi','5xHDqgs','28110fUuTfy','532QtZFIc','demandCommand','3537UWlopp','483492xIhCfR','2515RrTzai','builder','167538TahXyL','4107631aVmVoU','5124882haUrEt','../config/constants','precheck_commands','help','commandDir','epilogue','pre_check','strict','command','desc','recommendCommands','36nntIpx'];a16_0x4600=function(){return _0x28fe7b;};return a16_0x4600();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x512fca(0x160));exports[a16_0x512fca(0x167)]=a16_0x512fca(0x16e),exports[a16_0x512fca(0x168)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x512fca(0x177)]=function(_0x5c9a99){const _0x52cab3=a16_0x512fca,_0x4fb96f={};_0x4fb96f[_0x52cab3(0x16d)]=_0x52cab3(0x161),_0x4fb96f[_0x52cab3(0x16c)]=_0x52cab3(0x162);const _0x2a66a8=_0x4fb96f;return _0x5c9a99['usage'](HELP_HEADER_MESSAGE[_0x52cab3(0x165)])[_0x52cab3(0x164)](HELP_FOOTER_MESSAGE)[_0x52cab3(0x163)](_0x2a66a8[_0x52cab3(0x16d)])[_0x52cab3(0x173)]()[_0x52cab3(0x169)]()[_0x52cab3(0x166)]()[_0x52cab3(0x162)](_0x2a66a8[_0x52cab3(0x16c)]);},exports['handler']=function(_0x35042b){};
@@ -1 +1 @@
1
- const a17_0x395b81=a17_0x5510;function a17_0x5510(_0x5c9e04,_0x52133a){const _0x5b6184=a17_0x5b61();return a17_0x5510=function(_0x551064,_0x15fac0){_0x551064=_0x551064-0x94;let _0x734fc1=_0x5b6184[_0x551064];return _0x734fc1;},a17_0x5510(_0x5c9e04,_0x52133a);}(function(_0x29f226,_0x2f234d){const _0x197624=a17_0x5510,_0x312283=_0x29f226();while(!![]){try{const _0x431e63=-parseInt(_0x197624(0x121))/0x1*(-parseInt(_0x197624(0x133))/0x2)+parseInt(_0x197624(0x106))/0x3+-parseInt(_0x197624(0xd8))/0x4+parseInt(_0x197624(0xd7))/0x5*(parseInt(_0x197624(0xa9))/0x6)+-parseInt(_0x197624(0x9b))/0x7*(-parseInt(_0x197624(0x10c))/0x8)+-parseInt(_0x197624(0xab))/0x9+-parseInt(_0x197624(0x94))/0xa;if(_0x431e63===_0x2f234d)break;else _0x312283['push'](_0x312283['shift']());}catch(_0x2fcce9){_0x312283['push'](_0x312283['shift']());}}}(a17_0x5b61,0x72ac2));const fs=require('fs'),ws=require('ws'),got=require(a17_0x395b81(0xc2)),{v4:uuidv4}=require(a17_0x395b81(0x180)),ReconnectingWebSocket=require(a17_0x395b81(0x123)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x395b81(0xd5)),{logger}=require('../../config/logger'),{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_0x395b81(0xfd)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x5b61(){const _0x8880f4=['parse','YYGgZ','description','vFipV','wgGjH','Message:\x20','init','ozPuO','WehwN','RaRhc','name',']\x20status\x20:\x20','XHkmm','utf-8','Pre-check\x20running\x20for\x20Cloud\x20-\x20','eBjIf','wXGZc','koKHa','CWfri','bstackUsername','LJXyl','stack','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','checkAccess','vbprx','username','pre-check','WLuhU','ZJrUp','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UmVyU','push','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','is\x20already\x20present','Success','stack\x20trace\x20','readFileSync','OgfYg','wksmC','LOG','HBXIW','CDmca','dummy-grid','===\x20Precheck\x20Report\x20-\x20','authHeader','hLKDN','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','jfwfr','toLowerCase','grid','.txt','epilogue','tEDbf','Cluster\x20`','EMrHm','uuid','5898670wRsETh','rcTWm','\x20error\x20:\x20','error\x20stack\x20:\x20','wAKFr','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','xCUgj','434OAnKPU','clusterRegion','status','nJyiW','KrIMm','QFfmQ','length','dCtxS','cNgnv','prDdW','oYxqY','help','User\x20Access','xcfhE','1068ZzzEVR','YrknK','2983995VDynJm','IgTXR','goIlI','Report\x20saved\x20in\x20','cluster-name','pre-check-failed','\x20\x20Code:\x20','Browserstack','cluster-check-failed-','mhUkw','existsSync','IpWhz','grid-profile','HDxYb','XHMcj','yVEmv','CLOUD_PROVIDER','cloudProvider','LolHQ','CKyLn','MWLhI','`\x20already\x20exists','Missing\x20required\x20arguments:\x20','got','bNirT','DlHEC','kWFfY','VHAxx','WECAm','credential-not-found','ievOb','HCgNz','Status:\x20','jhcMg','DXdfR','MBLII','code','string','gOhMV','includes','uyUgB','info','../../utils/utilityMethods','pvCyu','16860KOTKlB','2448720APdQxG','NxsFn','wxZYJ','DqZcA','sWlbh','usage','FICwS','\x20\x20Message:\x20','delay','isCliToolInstalled','writeFileSync','bstackAccesskey','LksjF','Error\x20Details:\x0a','WebSocket','oOSJF','requestId','epaaK','MseQS','hyHrf','SANPJ','vGqxV','dIfno','clusterName','LrNDu','cloud-provider-not-supported','header','debug','Failed\x20in\x20pre-check!\x20Error:\x20','stringify','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','rIIDd','xnTux','error','join','isClusterPresent','fmNZl','../../cloudproviders/utils','will\x20be\x20created','JyHSv','zeAeF','SpnxX','fcKwE','ERROR','EVere','GSAXf','2669112hEUKpF','pofZT','pre-check-grid-called','EfczE','pre_check','NglGV','64744JefdFM','Setting\x20cloud\x20provider\x20as\x20','JIpbo','VJxAS','getUTCMonth','FnJcr','riyei','https://','sendEventToBackend','N/A','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','STStZ','CFmzY','body','password','ysDtG','TONbw','unable\x20to\x20verify\x20if\x20cluster\x20`','OPFiF','data','VkiDg','1iSGCUw','/packages/cli/get-all-grid-profiles','reconnecting-websocket','Nbfca','\x20\x20Stack:\x20','exit','Cluster\x20','gridProfile','type','forEach','Tool\x20Installed','abEgg','gFVzq','sUjKd','getUTCMinutes','TWTWu','`\x20is\x20present\x20in\x20region\x20`','response','23228lVevRN','eZEHd','message','lUgMx','raYYJ','DGArf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','options','getUTCFullYear','cloud-provider','pre-check-cluster-args-not-passed','region','fyjGp','hdJJq','AJDwK','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','\x20data\x20:\x20','zKkAI','hrXAS','log/report_','epVLe'];a17_0x5b61=function(){return _0x8880f4;};return a17_0x5b61();}exports['command']=a17_0x395b81(0x17a),exports['desc']=a17_0x395b81(0x177),exports['builder']=function(_0x12c805){const _0x5642f6=a17_0x395b81,_0x56b6a3={};_0x56b6a3[_0x5642f6(0x95)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x56b6a3[_0x5642f6(0xc9)]=_0x5642f6(0xd0),_0x56b6a3[_0x5642f6(0x101)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x56b6a3[_0x5642f6(0x147)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x56b6a3[_0x5642f6(0x111)]=_0x5642f6(0x116),_0x56b6a3[_0x5642f6(0xac)]='help';const _0x434356=_0x56b6a3,_0xd59640={};_0xd59640[_0x5642f6(0x14a)]=_0x434356[_0x5642f6(0x95)],_0xd59640[_0x5642f6(0x129)]=_0x434356['ievOb'];const _0x50263a={};_0x50263a[_0x5642f6(0x14a)]=_0x434356[_0x5642f6(0x101)],_0x50263a['type']=_0x434356[_0x5642f6(0xc9)];const _0x539fe7={};_0x539fe7[_0x5642f6(0x14a)]=_0x434356[_0x5642f6(0x147)],_0x539fe7[_0x5642f6(0x129)]=_0x434356[_0x5642f6(0xc9)];const _0x3eb398={};_0x3eb398[_0x5642f6(0x14a)]=_0x434356[_0x5642f6(0x111)],_0x3eb398[_0x5642f6(0x129)]=_0x434356[_0x5642f6(0xc9)];const _0x2bccc4={};return _0x2bccc4[_0x5642f6(0xaf)]=_0xd59640,_0x2bccc4[_0x5642f6(0x13c)]=_0x50263a,_0x2bccc4['region']=_0x539fe7,_0x2bccc4[_0x5642f6(0xb7)]=_0x3eb398,_0x12c805[_0x5642f6(0xdd)](HELP_HEADER_MESSAGE[_0x5642f6(0x10a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5642f6(0x13a)](_0x2bccc4)[_0x5642f6(0xa6)](_0x434356['IgTXR'])['argv'];};async function inputValidation(_0x2fee71,_0x35b6a7){const _0x1a86bc=a17_0x395b81,_0x235643={'HDxYb':_0x1a86bc(0x15e),'ozPuO':_0x1a86bc(0x165),'pofZT':_0x1a86bc(0xd0),'weIHu':_0x1a86bc(0xf6),'zKkAI':_0x1a86bc(0x166),'JyHSv':_0x1a86bc(0x116),'CDmca':_0x1a86bc(0xa6),'mvPug':function(_0x283cc2,_0x17427e){return _0x283cc2+_0x17427e;},'OgfYg':_0x1a86bc(0x16b),'BhWsd':'Failure','JIpbo':function(_0x3ff997,_0x177bbf){return _0x3ff997||_0x177bbf;},'prDdW':_0x1a86bc(0x115),'MBLII':'Error\x20Details:\x0a','oOSJF':'cluster-name','Nbfca':_0x1a86bc(0x13e),'yVEmv':'error','DGArf':_0x1a86bc(0x16a),'MseQS':_0x1a86bc(0xfe),'jhcMg':_0x1a86bc(0x13c),'jjrXP':function(_0x167d20,_0x5c3c7c){return _0x167d20!==_0x5c3c7c;},'WLuhU':'FyfYF','OUVHd':_0x1a86bc(0xf8),'QFfmQ':function(_0xc36b8e,_0x50166c){return _0xc36b8e!==_0x50166c;},'raYYJ':_0x1a86bc(0x102),'CKyLn':'ZlZNK','uyUgB':function(_0x2380e4,_0x3fb162){return _0x2380e4===_0x3fb162;},'DlHEC':_0x1a86bc(0x15c),'vbprx':function(_0x588fef,_0x452252){return _0x588fef!==_0x452252;},'EfczE':_0x1a86bc(0x140),'zeAeF':'kwnLp','qTAxc':function(_0x12d42c,_0xa64a88){return _0x12d42c>_0xa64a88;},'nJyiW':function(_0xae03fc,_0x4359ab){return _0xae03fc===_0x4359ab;},'abEgg':'yCGTy','LksjF':'OIuZm','oYxqY':function(_0x477757,_0x19a632,_0x2b5d1b,_0x387e27,_0x25b254,_0x49944f,_0x1e1d83,_0x129bda){return _0x477757(_0x19a632,_0x2b5d1b,_0x387e27,_0x25b254,_0x49944f,_0x1e1d83,_0x129bda);},'ZJrUp':'pre-check-grid-called','ysDtG':_0x1a86bc(0x13d),'eBjIf':_0x1a86bc(0xdb),'cNgnv':_0x1a86bc(0x99),'fyjGp':_0x1a86bc(0xf1),'VJxAS':_0x1a86bc(0x167),'jfwfr':_0x1a86bc(0xf7),'EMrHm':'GET','YfxIi':function(_0x503a3b,_0x4cd609,_0x1a3e7a){return _0x503a3b(_0x4cd609,_0x1a3e7a);},'aBGzi':function(_0x2399c9,_0x419762,_0x3cacd1,_0x3117ef,_0x38e383,_0x3b09ac){return _0x2399c9(_0x419762,_0x3cacd1,_0x3117ef,_0x38e383,_0x3b09ac);},'WECAm':_0x1a86bc(0x162),'koKHa':'grid-profile','CFmzY':function(_0x2cfd21,_0x1b9706){return _0x2cfd21===_0x1b9706;},'TNDPB':_0x1a86bc(0x14c),'AJDwK':_0x1a86bc(0x14b),'CWfri':function(_0x57da6d,_0x5ac910){return _0x57da6d(_0x5ac910);},'LolHQ':_0x1a86bc(0x10b),'UugOM':_0x1a86bc(0x145),'dIfno':'pre-check-grid-profile-empty','YrknK':function(_0x12cd49,_0x5d1ae9){return _0x12cd49===_0x5d1ae9;},'WehwN':'nJfPp','IpWhz':_0x1a86bc(0xa8),'oEVkZ':function(_0x385e33,_0x11a617){return _0x385e33!==_0x11a617;},'epaaK':_0x1a86bc(0xb9),'bNirT':'bBgmS','abwJX':'Grid\x20profile\x20fetched\x20for\x20pre-check','JWATp':function(_0x188576,_0x231107){return _0x188576===_0x231107;},'gOhMV':_0x1a86bc(0xad),'ARKfE':function(_0x385dca,_0x31e73f){return _0x385dca===_0x31e73f;},'FICwS':_0x1a86bc(0x149),'hLKDN':_0x1a86bc(0xdc)};let _0x12cd53;try{if(_0x235643['jjrXP'](_0x235643[_0x1a86bc(0x163)],_0x235643['OUVHd'])){if(_0x2fee71[_0x1a86bc(0xef)]||_0x2fee71[_0x1a86bc(0xbc)]||_0x2fee71['region']){if(_0x235643[_0x1a86bc(0xa0)](_0x235643[_0x1a86bc(0x137)],_0x235643[_0x1a86bc(0xbe)])){const _0x482ab4=[];!_0x2fee71[_0x1a86bc(0xef)]&&(_0x235643[_0x1a86bc(0xd3)](_0x235643[_0x1a86bc(0xc4)],_0x235643['DlHEC'])?_0x482ab4[_0x1a86bc(0x168)](_0x235643[_0x1a86bc(0xe7)]):(_0x21b03a[_0x1a86bc(0xf9)](_0x235643[_0x1a86bc(0xb8)]),_0x2ef8d3[_0x1a86bc(0x126)](0x1)));;if(!_0x2fee71['cloudProvider']){if(_0x235643[_0x1a86bc(0x160)](_0x235643[_0x1a86bc(0x109)],_0x235643['EfczE'])){const _0x35c7ba={};_0x35c7ba[_0x1a86bc(0x14a)]=_0x235643[_0x1a86bc(0x14f)],_0x35c7ba[_0x1a86bc(0x129)]=_0x235643[_0x1a86bc(0x107)];const _0x411b53={};_0x411b53['description']=_0x235643['weIHu'],_0x411b53[_0x1a86bc(0x129)]=_0x235643[_0x1a86bc(0x107)];const _0x1e1515={};_0x1e1515[_0x1a86bc(0x14a)]=_0x235643[_0x1a86bc(0x144)],_0x1e1515['type']=_0x235643[_0x1a86bc(0x107)];const _0xcdcfc9={};_0xcdcfc9[_0x1a86bc(0x14a)]=_0x235643[_0x1a86bc(0xff)],_0xcdcfc9[_0x1a86bc(0x129)]=_0x235643[_0x1a86bc(0x107)];const _0x59dec5={};return _0x59dec5[_0x1a86bc(0xaf)]=_0x35c7ba,_0x59dec5[_0x1a86bc(0x13c)]=_0x411b53,_0x59dec5[_0x1a86bc(0x13e)]=_0x1e1515,_0x59dec5[_0x1a86bc(0xb7)]=_0xcdcfc9,_0x37cf1b['usage'](_0x3cccca[_0x1a86bc(0x10a)])[_0x1a86bc(0x17c)](_0x35f494)[_0x1a86bc(0x13a)](_0x59dec5)[_0x1a86bc(0xa6)](_0x235643[_0x1a86bc(0x172)])['argv'];}else _0x482ab4['push'](_0x235643[_0x1a86bc(0xcc)]);};if(!_0x2fee71['region']){if(_0x235643[_0x1a86bc(0xd3)](_0x235643[_0x1a86bc(0x100)],_0x235643[_0x1a86bc(0x100)]))_0x482ab4['push'](_0x235643[_0x1a86bc(0x124)]);else{const {header:_0x170c91,response:_0x3a66b0}=_0x1613ce,{status:_0x577a4c,data:_0x343408,error:_0x59fefd}=_0x3a66b0;_0x47280e+=_0x170c91+'\x20#'+_0x235643['mvPug'](_0x2a754d,0x1)+'\x0a',_0x102679+='Status:\x20'+(_0x577a4c?_0x235643[_0x1a86bc(0x16e)]:_0x235643['BhWsd'])+'\x0a',_0x3a3fa7+='Message:\x20'+_0x235643[_0x1a86bc(0x10e)](_0x343408,_0x235643[_0x1a86bc(0xa4)])+'\x0a',_0x59fefd&&(_0x3ef863+=_0x235643['MBLII'],_0x16c275+=_0x1a86bc(0xdf)+(_0x59fefd[_0x1a86bc(0x135)]||_0x235643[_0x1a86bc(0xa4)])+'\x0a',_0x1bf108+=_0x1a86bc(0xb1)+(_0x59fefd[_0x1a86bc(0xcf)]||_0x235643['prDdW'])+'\x0a',_0x71cb20+=_0x1a86bc(0x125)+(_0x59fefd[_0x1a86bc(0x15d)]||_0x235643[_0x1a86bc(0xa4)])+'\x0a'),_0x3b81a5+='\x0a\x0a';}};_0x235643['qTAxc'](_0x482ab4[_0x1a86bc(0xa1)],0x0)&&(_0x235643[_0x1a86bc(0x9e)](_0x235643[_0x1a86bc(0x12c)],_0x235643[_0x1a86bc(0xe4)])?_0xdc4c03['push'](_0x235643[_0x1a86bc(0xe7)]):(_0x12cd53=_0x1a86bc(0xc1)+_0x482ab4[_0x1a86bc(0xfa)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x235643[_0x1a86bc(0xa5)](reportToGalactusAndSendToEDS,_0x2fee71,_0x35b6a7,_0x12cd53,messageTypes['ERROR'],_0x235643[_0x1a86bc(0x164)],_0x235643[_0x1a86bc(0x11b)],_0x235643[_0x1a86bc(0xba)]),logger[_0x1a86bc(0xf9)](_0x12cd53),process[_0x1a86bc(0x126)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1a86bc(0xd2)](_0x2fee71[_0x1a86bc(0xbc)][_0x1a86bc(0x179)]())&&(_0x235643[_0x1a86bc(0xd3)](_0x235643[_0x1a86bc(0x157)],_0x235643['eBjIf'])?(_0x12cd53=_0x235643[_0x1a86bc(0xa3)],await _0x235643[_0x1a86bc(0xa5)](reportToGalactusAndSendToEDS,_0x2fee71,_0x35b6a7,_0x12cd53,messageTypes[_0x1a86bc(0x103)],_0x235643[_0x1a86bc(0x164)],_0x235643['fyjGp'],_0x235643[_0x1a86bc(0xba)]),logger['error'](_0x12cd53),!_0x2fee71[_0x1a86bc(0xbc)]&&(_0x235643[_0x1a86bc(0x160)](_0x235643['VJxAS'],_0x235643[_0x1a86bc(0x10f)])?(_0x21c291[_0x1a86bc(0xd4)]('['+_0x51da01+_0x1a86bc(0x153)+_0x372dd5[_0x1a86bc(0x9d)]+_0x1a86bc(0x143)+_0x81e40f[_0x1a86bc(0x11f)]+'\x20error\x20:\x20'+_0xbfbefe[_0x1a86bc(0xf9)]),_0xc0f13c[_0x1a86bc(0xf9)]&&_0xdae73a['error'](_0x1a86bc(0x97)+_0x9c95fa[_0x1a86bc(0xf9)]['stack'])):(logger[_0x1a86bc(0xd4)](_0x1a86bc(0x10d)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x2fee71[_0x1a86bc(0xbc)]=DEFAULT_CLUSTER_DETAILS[_0x1a86bc(0xbb)]))):_0x2e9f44+=_0x1a86bc(0x127)+_0x40207f[_0x1a86bc(0xef)]+_0x1a86bc(0x169)),global_registry[_0x1a86bc(0xef)]=_0x2fee71[_0x1a86bc(0xef)],global_registry[_0x1a86bc(0xbc)]=_0x2fee71[_0x1a86bc(0xbc)],global_registry[_0x1a86bc(0x9c)]=_0x2fee71[_0x1a86bc(0x13e)];}else _0xfd83a3['exit'](0x1);}else{if(_0x2fee71[_0x1a86bc(0x128)]){if(_0x235643[_0x1a86bc(0x160)](_0x235643[_0x1a86bc(0x178)],_0x235643[_0x1a86bc(0x178)]))_0x1adad0[_0x1a86bc(0x168)](_0x235643['Nbfca']);else{global_registry['gridProfile']=_0x2fee71[_0x1a86bc(0x128)],logger[_0x1a86bc(0xf3)]('grid\x20profile\x20flow\x20'+_0x2fee71[_0x1a86bc(0x128)]);const _0x19b538=_0x1a86bc(0x113)+AG_API_URL+_0x1a86bc(0x122),_0xc79f21={};_0xc79f21['method']=_0x235643[_0x1a86bc(0x17f)],_0xc79f21['headers']=global_registry[_0x1a86bc(0x175)],_0xc79f21['throwHttpErrors']=![];const _0x34990c=_0xc79f21,_0x417fab=await _0x235643['YfxIi'](got,_0x19b538,_0x34990c),_0x1fb58b=await _0x235643['aBGzi'](responseValidation,_0x417fab,_0x235643[_0x1a86bc(0xc7)],_0x235643[_0x1a86bc(0x159)],_0x2fee71,_0x35b6a7);let _0x39585a={};if(_0x235643['CFmzY'](_0x1fb58b,0xc8)){if(_0x235643[_0x1a86bc(0x118)](_0x235643['TNDPB'],_0x235643[_0x1a86bc(0x141)]))_0x171680+=_0x235643[_0x1a86bc(0xce)],_0x300eab+=_0x1a86bc(0xdf)+(_0x15d540[_0x1a86bc(0x135)]||_0x235643[_0x1a86bc(0xa4)])+'\x0a',_0x45a594+=_0x1a86bc(0xb1)+(_0x38b9f4[_0x1a86bc(0xcf)]||_0x235643['prDdW'])+'\x0a',_0x3c53e5+=_0x1a86bc(0x125)+(_0x1eab0a[_0x1a86bc(0x15d)]||_0x235643['prDdW'])+'\x0a';else{const _0x4a0aec=JSON[_0x1a86bc(0x148)](_0x417fab[_0x1a86bc(0x119)]),_0x3270b4=_0x4a0aec['find'](_0x3e1125=>_0x3e1125[_0x1a86bc(0x152)]===_0x2fee71[_0x1a86bc(0x128)])||null;if(_0x235643[_0x1a86bc(0x15a)](isUndefined,_0x3270b4)){if(_0x235643[_0x1a86bc(0xa0)](_0x235643[_0x1a86bc(0xbd)],_0x235643['UugOM']))_0x12cd53='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x2fee71[_0x1a86bc(0x128)]+_0x1a86bc(0x142),await _0x235643[_0x1a86bc(0xa5)](reportToGalactusAndSendToEDS,_0x2fee71,_0x35b6a7,_0x12cd53,messageTypes[_0x1a86bc(0x103)],_0x235643['ZJrUp'],_0x235643[_0x1a86bc(0xee)],_0x235643[_0x1a86bc(0xba)]),logger['error'](_0x12cd53),process[_0x1a86bc(0x126)](0x1);else{const _0x3d131c={};_0x3d131c[_0x1a86bc(0x129)]=_0x441473[_0x1a86bc(0x170)],_0x3d131c[_0x1a86bc(0x135)]=_0x5c02cd,_0x28d1ab[_0x1a86bc(0x114)](_0x185e73,_0x3d131c,_0x235643[_0x1a86bc(0xba)],!![]);}}else _0x235643[_0x1a86bc(0xaa)](_0x235643[_0x1a86bc(0x150)],_0x235643[_0x1a86bc(0xb6)])?_0x139622['info'](_0x1a86bc(0x17e)+_0x533989['clusterName']+_0x1a86bc(0xc0)):_0x39585a=_0x3270b4;}}else _0x235643['oEVkZ'](_0x235643[_0x1a86bc(0xe9)],_0x235643[_0x1a86bc(0xc3)])?process['exit'](0x1):(_0x189eed[_0x1a86bc(0xd4)]('Setting\x20cloud\x20provider\x20as\x20'+_0x1d365d[_0x1a86bc(0xbb)]+'\x20'),_0x948376[_0x1a86bc(0xbc)]=_0x32f211[_0x1a86bc(0xbb)]);const _0x2da125={};_0x2da125[_0x1a86bc(0x129)]=WS_EVENTS[_0x1a86bc(0x170)],_0x2da125[_0x1a86bc(0x135)]=_0x235643['abwJX'],webSocketUtils[_0x1a86bc(0x114)](_0x35b6a7,_0x2da125),global_registry[_0x1a86bc(0xbc)]=_0x39585a[_0x1a86bc(0xbc)],global_registry['clusterRegion']=_0x39585a[_0x1a86bc(0x13e)],global_registry[_0x1a86bc(0xef)]=_0x39585a[_0x1a86bc(0xef)];}}else _0x235643['JWATp'](_0x235643[_0x1a86bc(0xd1)],_0x235643[_0x1a86bc(0xd1)])?(logger[_0x1a86bc(0xf9)](_0x235643[_0x1a86bc(0xb8)]),process[_0x1a86bc(0x126)](0x1)):_0x29360a=_0x30e13d;}}else _0x5d99cf+=_0x1a86bc(0x127)+_0x3b693f[_0x1a86bc(0xef)]+'\x20'+(_0x563103?_0x235643[_0x1a86bc(0x138)]:_0x235643[_0x1a86bc(0xea)])+'\x0a\x0a';}catch(_0x47baf8){_0x235643['ARKfE'](_0x235643[_0x1a86bc(0xde)],_0x235643[_0x1a86bc(0x176)])?_0x4f2487[_0x1a86bc(0x168)](_0x235643[_0x1a86bc(0xcc)]):(_0x12cd53='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x47baf8+':\x20'+_0x47baf8['stack'],logger[_0x1a86bc(0xf9)](_0x12cd53),await _0x235643[_0x1a86bc(0xa5)](reportToGalactusAndSendToEDS,_0x2fee71,_0x35b6a7,_0x12cd53,messageTypes[_0x1a86bc(0x103)],_0x235643[_0x1a86bc(0x164)],_0x235643[_0x1a86bc(0x13f)],_0x235643[_0x1a86bc(0xba)]),process[_0x1a86bc(0x126)](0x1));}}function printResponse(_0x80865,_0x416954){const _0x2f1303=a17_0x395b81,_0x672751={};_0x672751['xCUgj']=function(_0x101b59,_0x239d1c){return _0x101b59===_0x239d1c;},_0x672751[_0x2f1303(0x158)]='gfCwG',_0x672751['tEDbf']=_0x2f1303(0xbf);const _0x36ba5e=_0x672751;logger['info']('['+_0x80865+_0x2f1303(0x153)+_0x416954[_0x2f1303(0x9d)]+'\x20data\x20:\x20'+_0x416954['data']+_0x2f1303(0x96)+_0x416954[_0x2f1303(0xf9)]),_0x416954[_0x2f1303(0xf9)]&&(_0x36ba5e[_0x2f1303(0x9a)](_0x36ba5e['wXGZc'],_0x36ba5e[_0x2f1303(0x17d)])?_0x251b62[_0x2f1303(0xf9)](_0x2f1303(0x97)+_0x262e6d[_0x2f1303(0xf9)][_0x2f1303(0x15d)]):logger[_0x2f1303(0xf9)](_0x2f1303(0x97)+_0x416954[_0x2f1303(0xf9)][_0x2f1303(0x15d)]));}async function generateReport(_0x47c3d1,_0x58c25a){const _0x5d6735=a17_0x395b81,_0x183b94={'kWFfY':function(_0x21a7f2,_0x16d8b6){return _0x21a7f2+_0x16d8b6;},'DoElv':_0x5d6735(0x16b),'vGqxV':'Failure','sSwTZ':function(_0x1b69b8,_0x24643f){return _0x1b69b8||_0x24643f;},'NxsFn':_0x5d6735(0x115),'kjHDX':_0x5d6735(0xe5),'eZEHd':'Cluster\x20details\x0a-----------------------\x0a','DXdfR':function(_0xeb071f,_0x10d8f8){return _0xeb071f!=_0x10d8f8;},'vFGZw':_0x5d6735(0x16a),'lUgMx':_0x5d6735(0xfe),'OPFiF':function(_0x7d308e){return _0x7d308e();}};let _0x47cbf=_0x5d6735(0x174)+global_registry[_0x5d6735(0xbc)]+'\x20===\x0a\x0a';return _0x47c3d1[_0x5d6735(0x12a)]((_0x2ce9c1,_0x32b0cb)=>{const _0x1d1cb5=_0x5d6735,{header:_0x3e5d2d,response:_0x2e8935}=_0x2ce9c1,{status:_0x1ae5db,data:_0x1699ab,error:_0x4dda6a}=_0x2e8935;_0x47cbf+=_0x3e5d2d+'\x20#'+_0x183b94[_0x1d1cb5(0xc5)](_0x32b0cb,0x1)+'\x0a',_0x47cbf+=_0x1d1cb5(0xcb)+(_0x1ae5db?_0x183b94['DoElv']:_0x183b94[_0x1d1cb5(0xed)])+'\x0a',_0x47cbf+=_0x1d1cb5(0x14d)+_0x183b94['sSwTZ'](_0x1699ab,_0x183b94[_0x1d1cb5(0xd9)])+'\x0a',_0x4dda6a&&(_0x47cbf+=_0x183b94['kjHDX'],_0x47cbf+=_0x1d1cb5(0xdf)+(_0x4dda6a['message']||_0x183b94[_0x1d1cb5(0xd9)])+'\x0a',_0x47cbf+=_0x1d1cb5(0xb1)+(_0x4dda6a[_0x1d1cb5(0xcf)]||_0x183b94[_0x1d1cb5(0xd9)])+'\x0a',_0x47cbf+='\x20\x20Stack:\x20'+(_0x4dda6a[_0x1d1cb5(0x15d)]||_0x183b94[_0x1d1cb5(0xd9)])+'\x0a'),_0x47cbf+='\x0a\x0a';}),_0x47cbf+=_0x183b94[_0x5d6735(0x134)],_0x183b94[_0x5d6735(0xcd)](_0x58c25a,null)?_0x47cbf+=_0x5d6735(0x127)+global_registry['clusterName']+'\x20'+(_0x58c25a?_0x183b94['vFGZw']:_0x183b94[_0x5d6735(0x136)])+'\x0a\x0a':_0x47cbf+=_0x5d6735(0x127)+global_registry[_0x5d6735(0xef)]+_0x5d6735(0x169),_0x47cbf+=_0x183b94[_0x5d6735(0x11e)](getSystemMetaData),_0x47cbf;};exports['handler']=async function(_0x2a5ebc){const _0x2bb550=a17_0x395b81,_0x204810={'gFVzq':function(_0x593f77){return _0x593f77();},'wAKFr':_0x2bb550(0x139),'GSAXf':function(_0x162bb1,_0x35c165,_0xe7abfd,_0x5268bb,_0x2e0385,_0x11baff,_0x13744e,_0x7fcc67){return _0x162bb1(_0x35c165,_0xe7abfd,_0x5268bb,_0x2e0385,_0x11baff,_0x13744e,_0x7fcc67);},'sUjKd':_0x2bb550(0x108),'KrIMm':_0x2bb550(0xc8),'hyHrf':_0x2bb550(0xf9),'HBXIW':function(_0x4d2717,_0x41bd0d,_0x55010c,_0x20d277,_0x52c225,_0x5c5dcb,_0x234311){return _0x4d2717(_0x41bd0d,_0x55010c,_0x20d277,_0x52c225,_0x5c5dcb,_0x234311);},'wksmC':'<UsernamePlaceholder>','TONbw':'<PasswordPlaceholder>','EVere':function(_0x50a72f,_0x4429df,_0xf2ea2d){return _0x50a72f(_0x4429df,_0xf2ea2d);},'TWTWu':function(_0x58fa10,_0x242b48,_0x5ebee2){return _0x58fa10(_0x242b48,_0x5ebee2);},'mhUkw':function(_0x5782c3,_0x3e6122,_0x4da872,_0xd64150,_0x626783,_0x407f91,_0x3b33a2){return _0x5782c3(_0x3e6122,_0x4da872,_0xd64150,_0x626783,_0x407f91,_0x3b33a2);},'fmNZl':_0x2bb550(0x173),'ghMJT':function(_0x1467a8,_0x268c44,_0x1928d0){return _0x1467a8(_0x268c44,_0x1928d0);},'SANPJ':'toolInstalledResp','XHkmm':'4|3|1|0|2','RaRhc':function(_0x51903c,_0x2528a6,_0x1a54ce,_0x186058,_0x4082ed,_0x43a594,_0x35f8f7,_0x84b60f){return _0x51903c(_0x2528a6,_0x1a54ce,_0x186058,_0x4082ed,_0x43a594,_0x35f8f7,_0x84b60f);},'riyei':function(_0xfaa074,_0x2057b8,_0x57e130){return _0xfaa074(_0x2057b8,_0x57e130);},'aKrXG':'accessResp','dfjXN':function(_0x4069af,_0x227237,_0x26a2f8){return _0x4069af(_0x227237,_0x26a2f8);},'MxjQa':'isTrialGridAccessible','VHAxx':function(_0x27aa97,_0xec3054){return _0x27aa97(_0xec3054);},'ELTZk':'TLSv1_2_client_method','aaBaO':function(_0x36f269,_0x3b16f7,_0x26be98){return _0x36f269(_0x3b16f7,_0x26be98);},'LrNDu':'isTls1_2_SUPPORTED','wxZYJ':_0x2bb550(0x12b),'STStZ':_0x2bb550(0xa7),'HCgNz':'Whitelisted\x20browserstack','dCtxS':'SSL\x20Configured','VkiDg':function(_0x52e496,_0x2d0e81){return _0x52e496+_0x2d0e81;},'pvCyu':_0x2bb550(0x155),'FSvjG':_0x2bb550(0xb0)};let _0x258fcc,_0x12f920;try{global_registry[_0x2bb550(0xe8)]=_0x204810[_0x2bb550(0x12d)](uuidv4);!fs[_0x2bb550(0xb5)](_0x204810[_0x2bb550(0x12d)](getCredentialsPath))&&(_0x12f920=_0x204810[_0x2bb550(0x98)],logger[_0x2bb550(0xf9)](_0x12f920),await _0x204810[_0x2bb550(0x105)](reportToGalactusAndSendToEDS,_0x2a5ebc,_0x258fcc,_0x12f920,messageTypes[_0x2bb550(0x103)],_0x204810['sUjKd'],_0x204810[_0x2bb550(0x9f)],_0x204810[_0x2bb550(0xeb)]),process[_0x2bb550(0x126)](0x1));_0x204810[_0x2bb550(0x171)](sendInstrumentationEvent,_0x2a5ebc,_0x204810[_0x2bb550(0x12e)],messageTypes['INFO'],null,null,_0x2a5ebc);const _0x128a08=JSON[_0x2bb550(0x148)](fs[_0x2bb550(0x16d)](_0x204810['gFVzq'](getCredentialsPath)));global_registry[_0x2bb550(0x15b)]=_0x128a08[_0x2bb550(0xb2)][_0x2bb550(0x161)],global_registry[_0x2bb550(0xe3)]=_0x128a08[_0x2bb550(0xb2)][_0x2bb550(0x11a)];const _0x363f30=WS_ENDPOINT['replace'](_0x204810[_0x2bb550(0x16f)],_0x128a08[_0x2bb550(0xb2)][_0x2bb550(0x161)])['replace'](_0x204810[_0x2bb550(0x11c)],_0x128a08[_0x2bb550(0xb2)][_0x2bb550(0x11a)]),_0x5c9fe3={};_0x5c9fe3[_0x2bb550(0xe6)]=ws,_0x5c9fe3['connectionTimeout']=0x36ee80,_0x258fcc=new ReconnectingWebSocket(_0x363f30,[],_0x5c9fe3),global_registry[_0x2bb550(0x175)]=_0x204810[_0x2bb550(0x104)](getAuthHeader,global_registry[_0x2bb550(0x15b)],global_registry[_0x2bb550(0xe3)]),await _0x204810[_0x2bb550(0x130)](inputValidation,_0x2a5ebc,_0x258fcc),logger['info'](_0x2bb550(0x156)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x2bb550(0x9c)]);let _0x51cf45=await _0x204810[_0x2bb550(0xb4)](getCloudProviderObjectWithOutInit,global_registry[_0x2bb550(0xbc)],global_registry[_0x2bb550(0xef)],_0x204810[_0x2bb550(0xfc)],_0x258fcc,webSocketUtils,_0x2a5ebc);const _0x48a0e5=await _0x51cf45[_0x2bb550(0xe1)]();_0x204810['ghMJT'](printResponse,_0x204810[_0x2bb550(0xec)],_0x48a0e5),_0x51cf45=await _0x51cf45[_0x2bb550(0x14e)]();let _0x759627=![];try{_0x759627=await _0x51cf45[_0x2bb550(0xfb)]();}catch(_0xbda2db){const _0x4b42d5=_0x204810[_0x2bb550(0x154)]['split']('|');let _0x589d17=0x0;while(!![]){switch(_0x4b42d5[_0x589d17++]){case'0':_0x12f920+='\x0a'+JSON[_0x2bb550(0xf5)](_0xbda2db[_0x2bb550(0x15d)]);continue;case'1':logger['error'](_0x12f920);continue;case'2':await _0x204810[_0x2bb550(0x151)](reportToGalactusAndSendToEDS,_0x2a5ebc,_0x258fcc,_0x12f920,messageTypes[_0x2bb550(0x103)],_0x204810[_0x2bb550(0x12e)],_0x2bb550(0xb3)+global_registry[_0x2bb550(0xbc)],_0x204810[_0x2bb550(0xeb)]);continue;case'3':_0x759627=null;continue;case'4':_0x12f920=_0x2bb550(0x11d)+global_registry[_0x2bb550(0xef)]+_0x2bb550(0x131)+global_registry[_0x2bb550(0x9c)]+'`\x20,error\x20:\x20'+_0xbda2db;continue;}break;}}_0x759627&&logger[_0x2bb550(0xd4)](_0x2bb550(0x17e)+global_registry['clusterName']+'`\x20already\x20exists');const _0x575a12=await _0x51cf45[_0x2bb550(0x15f)]();_0x204810[_0x2bb550(0x112)](printResponse,_0x204810['aKrXG'],_0x575a12);const _0xb438bc=await _0x204810[_0x2bb550(0x12d)](curlRequest);_0x204810['dfjXN'](printResponse,_0x204810['MxjQa'],_0xb438bc);const _0x20ae77=await _0x204810[_0x2bb550(0xc6)](isTlsSupported,_0x204810['ELTZk']);_0x204810['aaBaO'](printResponse,_0x204810[_0x2bb550(0xf0)],_0x20ae77);const _0x1f0470={};_0x1f0470[_0x2bb550(0xf2)]=_0x204810[_0x2bb550(0xda)],_0x1f0470['response']=_0x48a0e5;const _0xdcafe0={};_0xdcafe0[_0x2bb550(0xf2)]=_0x204810[_0x2bb550(0x117)],_0xdcafe0['response']=_0x575a12;const _0x3a7dcd={};_0x3a7dcd[_0x2bb550(0xf2)]=_0x204810[_0x2bb550(0xca)],_0x3a7dcd[_0x2bb550(0x132)]=_0xb438bc;const _0x516c2f={};_0x516c2f['header']=_0x204810[_0x2bb550(0xa2)],_0x516c2f[_0x2bb550(0x132)]=_0x20ae77;const _0x3c3250=[_0x1f0470,_0xdcafe0,_0x3a7dcd,_0x516c2f],_0x27ac1f=await _0x204810['EVere'](generateReport,_0x3c3250,_0x759627),_0x49b44b=new Date(),_0x14ad6d=_0x49b44b[_0x2bb550(0x13b)]()+'_'+_0x204810[_0x2bb550(0x120)](_0x49b44b[_0x2bb550(0x110)](),0x1)+'_'+_0x49b44b['getUTCDate']()+'_'+_0x49b44b['getUTCHours']()+'_'+_0x49b44b[_0x2bb550(0x12f)](),_0x261c60=_0x2bb550(0x146)+_0x14ad6d+_0x2bb550(0x17b);fs[_0x2bb550(0xe2)](_0x261c60,_0x27ac1f,_0x204810[_0x2bb550(0xd6)]),logger[_0x2bb550(0xd4)](_0x2bb550(0xae)+_0x261c60),process['exit'](0x0);}catch(_0x5beff0){let _0x32a36b=_0x2bb550(0xf4)+_0x5beff0+'\x20';logger[_0x2bb550(0xf9)](_0x32a36b),_0x32a36b+='\x0a'+JSON[_0x2bb550(0xf5)](_0x5beff0[_0x2bb550(0x15d)]),logger[_0x2bb550(0xf3)](_0x2bb550(0x16c)+_0x5beff0[_0x2bb550(0x15d)]);if(_0x258fcc){const _0x3aeb98={};_0x3aeb98[_0x2bb550(0x129)]=WS_EVENTS[_0x2bb550(0x170)],_0x3aeb98[_0x2bb550(0x135)]=_0x32a36b,webSocketUtils['sendEventToBackend'](_0x258fcc,_0x3aeb98,_0x204810[_0x2bb550(0xeb)],!![]);}await webSocketUtils[_0x2bb550(0xe0)](0x7d0);const _0x3f5502={};_0x3f5502[_0x2bb550(0xf9)]=_0x32a36b,await _0x204810[_0x2bb550(0x171)](sendInstrumentationEvent,_0x2a5ebc,_0x204810[_0x2bb550(0x12e)],messageTypes[_0x2bb550(0x103)],_0x204810['FSvjG'],_0x3f5502,_0x2a5ebc),process[_0x2bb550(0x126)](0x1);}};
1
+ const a17_0x7329e3=a17_0x58c7;(function(_0xc14e35,_0x2cad4e){const _0x503257=a17_0x58c7,_0x2bf0c5=_0xc14e35();while(!![]){try{const _0x598f52=parseInt(_0x503257(0x188))/0x1*(parseInt(_0x503257(0x16b))/0x2)+parseInt(_0x503257(0x19b))/0x3*(parseInt(_0x503257(0x128))/0x4)+-parseInt(_0x503257(0x16f))/0x5+parseInt(_0x503257(0x158))/0x6+parseInt(_0x503257(0x186))/0x7+parseInt(_0x503257(0x1d1))/0x8*(-parseInt(_0x503257(0x1fe))/0x9)+-parseInt(_0x503257(0x1fa))/0xa;if(_0x598f52===_0x2cad4e)break;else _0x2bf0c5['push'](_0x2bf0c5['shift']());}catch(_0x27c242){_0x2bf0c5['push'](_0x2bf0c5['shift']());}}}(a17_0x1545,0x81d0a));const fs=require('fs'),ws=require('ws'),got=require(a17_0x7329e3(0x210)),{v4:uuidv4}=require(a17_0x7329e3(0x167)),ReconnectingWebSocket=require(a17_0x7329e3(0x181)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x7329e3(0x1a4)),{logger}=require('../../config/logger'),{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_0x7329e3(0x196)),webSocketUtils=require(a17_0x7329e3(0x222)),{sendInstrumentationEvent}=require(a17_0x7329e3(0x1dc));exports[a17_0x7329e3(0x1e4)]=a17_0x7329e3(0x143),exports[a17_0x7329e3(0x1b2)]=a17_0x7329e3(0x1f1),exports[a17_0x7329e3(0x173)]=function(_0x2f76a9){const _0x46b286=a17_0x7329e3,_0x1b4cfe={};_0x1b4cfe[_0x46b286(0x224)]=_0x46b286(0x183),_0x1b4cfe[_0x46b286(0x155)]=_0x46b286(0x178),_0x1b4cfe[_0x46b286(0x1c4)]=_0x46b286(0x192),_0x1b4cfe[_0x46b286(0x1eb)]=_0x46b286(0x197),_0x1b4cfe[_0x46b286(0x13f)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1b4cfe[_0x46b286(0x132)]=_0x46b286(0x161);const _0x3e732d=_0x1b4cfe,_0x302653={};_0x302653[_0x46b286(0x13e)]=_0x3e732d['MgVkY'],_0x302653[_0x46b286(0x1c8)]=_0x3e732d['hAawb'];const _0x29cefc={};_0x29cefc['description']=_0x3e732d[_0x46b286(0x1c4)],_0x29cefc[_0x46b286(0x1c8)]=_0x3e732d[_0x46b286(0x155)];const _0x4a4270={};_0x4a4270['description']=_0x3e732d[_0x46b286(0x1eb)],_0x4a4270['type']=_0x3e732d[_0x46b286(0x155)];const _0x199ace={};_0x199ace[_0x46b286(0x13e)]=_0x3e732d[_0x46b286(0x13f)],_0x199ace[_0x46b286(0x1c8)]=_0x3e732d['hAawb'];const _0x29c5b9={};return _0x29c5b9['cluster-name']=_0x302653,_0x29c5b9[_0x46b286(0x1b5)]=_0x29cefc,_0x29c5b9[_0x46b286(0x21b)]=_0x4a4270,_0x29c5b9[_0x46b286(0x205)]=_0x199ace,_0x2f76a9[_0x46b286(0x166)](HELP_HEADER_MESSAGE[_0x46b286(0x1d6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x46b286(0x15d)](_0x29c5b9)[_0x46b286(0x161)](_0x3e732d[_0x46b286(0x132)])[_0x46b286(0x17e)];};function a17_0x58c7(_0x2df0dc,_0x592f5a){const _0x154584=a17_0x1545();return a17_0x58c7=function(_0x58c704,_0x14b4b0){_0x58c704=_0x58c704-0x127;let _0x25ad17=_0x154584[_0x58c704];return _0x25ad17;},a17_0x58c7(_0x2df0dc,_0x592f5a);}async function inputValidation(_0x1f6fd3,_0x1d60d2){const _0x9ff242=a17_0x7329e3,_0x3e641a={'fObsz':_0x9ff242(0x1cd),'FVlrP':'cluster-name','KyegZ':_0x9ff242(0x1b5),'IfMFV':_0x9ff242(0x183),'JRgco':_0x9ff242(0x178),'VoTsG':_0x9ff242(0x192),'HUVIV':_0x9ff242(0x197),'nhKGT':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ZUHHs':_0x9ff242(0x161),'iSmVr':_0x9ff242(0x1f5),'qRUps':_0x9ff242(0x156),'ayXyX':'error','lusax':_0x9ff242(0x1d0),'EsQjF':_0x9ff242(0x1db),'AtMAQ':'region','rEUKQ':function(_0x101a64,_0x51e6e5){return _0x101a64+_0x51e6e5;},'cVCRJ':_0x9ff242(0x1ee),'AXwjR':_0x9ff242(0x17d),'fgslF':function(_0x2f6c0b,_0x162b72){return _0x2f6c0b||_0x162b72;},'drSTN':function(_0x59ef12,_0xa12954){return _0x59ef12!==_0xa12954;},'qCLTw':_0x9ff242(0x1f4),'EJzQB':_0x9ff242(0x211),'hcMRj':_0x9ff242(0x17b),'NktUH':function(_0x28a1ce,_0x92141){return _0x28a1ce!==_0x92141;},'oRDdP':_0x9ff242(0x225),'pMjha':_0x9ff242(0x20d),'BbbJk':function(_0x340ae5,_0x2be785){return _0x340ae5!==_0x2be785;},'voUno':_0x9ff242(0x15e),'JOsUP':function(_0x6333b8,_0x51e66d){return _0x6333b8===_0x51e66d;},'wAQau':'aPEqr','TfJad':'esEMK','YLYZC':function(_0x3c79bc,_0x544a30){return _0x3c79bc>_0x544a30;},'thiSf':function(_0x15d903,_0xbf9470){return _0x15d903!==_0xbf9470;},'SJTNK':_0x9ff242(0x170),'lLFdZ':_0x9ff242(0x144),'sbXbD':function(_0x3cf1e1,_0x2ab2af,_0x2c7059,_0x41990a,_0x406316,_0x5579ce,_0x4b9ebb,_0x5ac267){return _0x3cf1e1(_0x2ab2af,_0x2c7059,_0x41990a,_0x406316,_0x5579ce,_0x4b9ebb,_0x5ac267);},'hSBhb':_0x9ff242(0x1a5),'qCAFd':_0x9ff242(0x12a),'oyneF':_0x9ff242(0x223),'NKuDg':'DbwEw','fBlrm':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MZRDx':_0x9ff242(0x16e),'IDIcr':_0x9ff242(0x1ad),'xrjBo':function(_0x588d70,_0x294c20){return _0x588d70===_0x294c20;},'XQVOn':'dWoCw','IMNbV':_0x9ff242(0x1e5),'rRAOL':_0x9ff242(0x14e),'YRYIn':function(_0x12ee0a,_0x5722cb,_0x2a69a2){return _0x12ee0a(_0x5722cb,_0x2a69a2);},'CoXKU':function(_0x19f240,_0x287609,_0x508801,_0x1ed333,_0x8be365,_0x5638fa){return _0x19f240(_0x287609,_0x508801,_0x1ed333,_0x8be365,_0x5638fa);},'RtYJO':_0x9ff242(0x12b),'xFuAR':'grid-profile','uDJBM':function(_0x478db6,_0x51fdde){return _0x478db6===_0x51fdde;},'sHXyf':function(_0xaa332f,_0x5bb110){return _0xaa332f!==_0x5bb110;},'ETHjV':'wDaFU','UapqK':function(_0x28e2ff,_0x2977a2){return _0x28e2ff(_0x2977a2);},'AKcah':function(_0x26a014,_0x40d298){return _0x26a014!==_0x40d298;},'hvamb':'CmVdF','FFCGZ':function(_0x5ba1f1,_0xeb0564,_0x155c5d,_0x187b0c,_0x3d66a6,_0x26d0ff,_0x43db50,_0x509be8){return _0x5ba1f1(_0xeb0564,_0x155c5d,_0x187b0c,_0x3d66a6,_0x26d0ff,_0x43db50,_0x509be8);},'oYcsw':_0x9ff242(0x1fc),'VSsBA':_0x9ff242(0x163),'kIRDZ':_0x9ff242(0x145),'AwXvN':function(_0xf93089,_0x94aa7f){return _0xf93089===_0x94aa7f;},'cxiHW':'suWMi','tmIjn':_0x9ff242(0x151),'yCHDg':_0x9ff242(0x1bd),'IzfXe':'DejBn','dFMXF':function(_0x2b26e8,_0x39b2ad){return _0x2b26e8!==_0x39b2ad;},'WqTrE':_0x9ff242(0x162),'FdlYj':_0x9ff242(0x1d8)};let _0x29c0d6;try{if(_0x3e641a[_0x9ff242(0x20a)](_0x3e641a[_0x9ff242(0x19a)],_0x3e641a['qCLTw']))_0xbdd599[_0x9ff242(0x199)](_0x3e641a[_0x9ff242(0x1fb)]),_0x5791d6[_0x9ff242(0x160)](0x1);else{if(_0x1f6fd3[_0x9ff242(0x1b6)]||_0x1f6fd3[_0x9ff242(0x1d2)]||_0x1f6fd3[_0x9ff242(0x21b)]){if(_0x3e641a[_0x9ff242(0x20a)](_0x3e641a[_0x9ff242(0x209)],_0x3e641a[_0x9ff242(0x18f)])){const _0x55ed86=[];!_0x1f6fd3['clusterName']&&(_0x3e641a[_0x9ff242(0x21d)](_0x3e641a['oRDdP'],_0x3e641a[_0x9ff242(0x1ec)])?_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x203)]):_0xbd040c=_0x25e570);;!_0x1f6fd3['cloudProvider']&&(_0x3e641a[_0x9ff242(0x165)](_0x3e641a['voUno'],_0x3e641a[_0x9ff242(0x16d)])?_0x3b6a08['error'](_0x9ff242(0x198)+_0x23bf38[_0x9ff242(0x199)][_0x9ff242(0x1f0)]):_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a['KyegZ']));;!_0x1f6fd3['region']&&(_0x3e641a['JOsUP'](_0x3e641a[_0x9ff242(0x20e)],_0x3e641a['TfJad'])?_0x1efabd[_0x9ff242(0x1d3)](_0x3e641a['FVlrP']):_0x55ed86[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x1bf)]));;_0x3e641a[_0x9ff242(0x184)](_0x55ed86[_0x9ff242(0x20b)],0x0)&&(_0x3e641a['thiSf'](_0x3e641a[_0x9ff242(0x212)],_0x3e641a[_0x9ff242(0x19c)])?(_0x29c0d6=_0x9ff242(0x146)+_0x55ed86[_0x9ff242(0x1f6)](',\x20')+_0x9ff242(0x168),await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x12d)],_0x3e641a[_0x9ff242(0x1a0)]),logger[_0x9ff242(0x199)](_0x29c0d6),process[_0x9ff242(0x160)](0x1)):_0xd9f093[_0x9ff242(0x1b4)](_0x9ff242(0x1c0)+_0x34e02f[_0x9ff242(0x1b6)]+_0x9ff242(0x180))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x9ff242(0x149)](_0x1f6fd3[_0x9ff242(0x1d2)][_0x9ff242(0x1e6)]())&&(_0x3e641a[_0x9ff242(0x1b8)](_0x3e641a[_0x9ff242(0x18e)],_0x3e641a[_0x9ff242(0x1f7)])?(_0x29c0d6=_0x3e641a[_0x9ff242(0x1d9)],await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes['ERROR'],_0x3e641a[_0x9ff242(0x14a)],_0x3e641a['MZRDx'],_0x3e641a['ayXyX']),logger[_0x9ff242(0x199)](_0x29c0d6),!_0x1f6fd3[_0x9ff242(0x1d2)]&&(_0x3e641a[_0x9ff242(0x21d)](_0x3e641a[_0x9ff242(0x148)],_0x3e641a[_0x9ff242(0x148)])?_0x3a1946[_0x9ff242(0x1d3)](_0x3e641a[_0x9ff242(0x133)]):(logger[_0x9ff242(0x1b4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x9ff242(0x17a)]+'\x20'),_0x1f6fd3[_0x9ff242(0x1d2)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x4b5427[_0x9ff242(0x1b4)]('['+_0x383733+_0x9ff242(0x13b)+_0xc70ccb['status']+_0x9ff242(0x15a)+_0x5874b6[_0x9ff242(0x14f)]+_0x9ff242(0x1bc)+_0x596eda[_0x9ff242(0x199)]),_0x26d4b2[_0x9ff242(0x199)]&&_0x724f1b['error'](_0x9ff242(0x198)+_0x10599b[_0x9ff242(0x199)]['stack']))),global_registry[_0x9ff242(0x1b6)]=_0x1f6fd3[_0x9ff242(0x1b6)],global_registry[_0x9ff242(0x1d2)]=_0x1f6fd3[_0x9ff242(0x1d2)],global_registry[_0x9ff242(0x1e0)]=_0x1f6fd3[_0x9ff242(0x21b)];}else{const _0xaa7290={};_0xaa7290[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x177)],_0xaa7290[_0x9ff242(0x1c8)]=_0x3e641a['JRgco'];const _0x4b25a8={};_0x4b25a8['description']=_0x3e641a['VoTsG'],_0x4b25a8[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0x30e5be={};_0x30e5be[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x157)],_0x30e5be[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0xf5eb81={};_0xf5eb81[_0x9ff242(0x13e)]=_0x3e641a[_0x9ff242(0x1ed)],_0xf5eb81[_0x9ff242(0x1c8)]=_0x3e641a[_0x9ff242(0x159)];const _0x2a14eb={};return _0x2a14eb[_0x9ff242(0x1b9)]=_0xaa7290,_0x2a14eb[_0x9ff242(0x1b5)]=_0x4b25a8,_0x2a14eb[_0x9ff242(0x21b)]=_0x30e5be,_0x2a14eb[_0x9ff242(0x205)]=_0xf5eb81,_0x231cb7['usage'](_0x49b490['pre_check'])[_0x9ff242(0x1b7)](_0xa498c2)['options'](_0x2a14eb)[_0x9ff242(0x161)](_0x3e641a['ZUHHs'])[_0x9ff242(0x17e)];}}else{if(_0x1f6fd3[_0x9ff242(0x176)]){if(_0x3e641a[_0x9ff242(0x1a6)](_0x3e641a[_0x9ff242(0x136)],_0x3e641a[_0x9ff242(0x17c)]))_0x43d6d7+=_0x9ff242(0x175)+_0x576658[_0x9ff242(0x1b6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{global_registry[_0x9ff242(0x176)]=_0x1f6fd3['gridProfile'],logger['debug'](_0x9ff242(0x1c7)+_0x1f6fd3[_0x9ff242(0x176)]);const _0x38ae55=_0x9ff242(0x174)+AG_API_URL+_0x9ff242(0x1fd),_0x5b1831={};_0x5b1831[_0x9ff242(0x1be)]=_0x3e641a[_0x9ff242(0x1d4)],_0x5b1831[_0x9ff242(0x1ae)]=global_registry[_0x9ff242(0x194)],_0x5b1831[_0x9ff242(0x228)]=![];const _0x718815=_0x5b1831,_0x20941a=await _0x3e641a['YRYIn'](got,_0x38ae55,_0x718815),_0xfd5d50=await _0x3e641a['CoXKU'](responseValidation,_0x20941a,_0x3e641a[_0x9ff242(0x21a)],_0x3e641a[_0x9ff242(0x191)],_0x1f6fd3,_0x1d60d2);let _0x330eae={};if(_0x3e641a['uDJBM'](_0xfd5d50,0xc8)){if(_0x3e641a[_0x9ff242(0x21f)](_0x3e641a[_0x9ff242(0x1e8)],_0x3e641a[_0x9ff242(0x1e8)]))_0x3c6872+=_0x3e641a[_0x9ff242(0x1c3)],_0x1cb076+=_0x9ff242(0x131)+(_0x44c1df[_0x9ff242(0x1dd)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x40f54c+='\x20\x20Code:\x20'+(_0x2e8667[_0x9ff242(0x19f)]||_0x3e641a['qRUps'])+'\x0a',_0x2f8d76+=_0x9ff242(0x1aa)+(_0x1e9088[_0x9ff242(0x1f0)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a';else{const _0x43b0ef=JSON[_0x9ff242(0x18d)](_0x20941a[_0x9ff242(0x1ff)]),_0x24d98d=_0x43b0ef[_0x9ff242(0x1c2)](_0x4ad4ea=>_0x4ad4ea['name']===_0x1f6fd3[_0x9ff242(0x176)])||null;if(_0x3e641a[_0x9ff242(0x1b0)](isUndefined,_0x24d98d)){if(_0x3e641a['AKcah'](_0x3e641a[_0x9ff242(0x1ab)],_0x3e641a[_0x9ff242(0x1ab)])){const _0x440de1={};_0x440de1[_0x9ff242(0x1c8)]=_0x57b382[_0x9ff242(0x1f3)],_0x440de1[_0x9ff242(0x1dd)]=_0x3fb2d6,_0x5c79fb['sendEventToBackend'](_0x442b7d,_0x440de1,_0x3e641a['ayXyX'],!![]);}else _0x29c0d6=_0x9ff242(0x226)+_0x1f6fd3['gridProfile']+_0x9ff242(0x141),await _0x3e641a[_0x9ff242(0x172)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x213)],_0x3e641a[_0x9ff242(0x1a0)]),logger[_0x9ff242(0x199)](_0x29c0d6),process[_0x9ff242(0x160)](0x1);}else _0x3e641a['drSTN'](_0x3e641a[_0x9ff242(0x15f)],_0x3e641a[_0x9ff242(0x127)])?_0x330eae=_0x24d98d:_0x2e87bb+=_0x9ff242(0x175)+_0x9be643[_0x9ff242(0x1b6)]+'\x20'+(_0x5db94d?_0x3e641a[_0x9ff242(0x139)]:_0x3e641a[_0x9ff242(0x208)])+'\x0a\x0a';}}else _0x3e641a[_0x9ff242(0x207)](_0x3e641a[_0x9ff242(0x1d5)],_0x3e641a[_0x9ff242(0x1d5)])?process[_0x9ff242(0x160)](0x1):_0x369721['push'](_0x3e641a[_0x9ff242(0x1bf)]);const _0xdbba4e={};_0xdbba4e[_0x9ff242(0x1c8)]=WS_EVENTS[_0x9ff242(0x1f3)],_0xdbba4e['message']=_0x3e641a[_0x9ff242(0x12e)],webSocketUtils[_0x9ff242(0x164)](_0x1d60d2,_0xdbba4e),global_registry[_0x9ff242(0x1d2)]=_0x330eae[_0x9ff242(0x1d2)],global_registry[_0x9ff242(0x1e0)]=_0x330eae[_0x9ff242(0x21b)],global_registry[_0x9ff242(0x1b6)]=_0x330eae[_0x9ff242(0x1b6)];}}else _0x3e641a['AwXvN'](_0x3e641a[_0x9ff242(0x219)],_0x3e641a[_0x9ff242(0x187)])?_0xc7f568[_0x9ff242(0x160)](0x1):(logger['error'](_0x3e641a[_0x9ff242(0x1fb)]),process[_0x9ff242(0x160)](0x1));}}}catch(_0x4134bb){if(_0x3e641a['dFMXF'](_0x3e641a[_0x9ff242(0x1ce)],_0x3e641a[_0x9ff242(0x1d7)]))_0x29c0d6='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x4134bb+':\x20'+_0x4134bb['stack'],logger[_0x9ff242(0x199)](_0x29c0d6),await _0x3e641a[_0x9ff242(0x20f)](reportToGalactusAndSendToEDS,_0x1f6fd3,_0x1d60d2,_0x29c0d6,messageTypes[_0x9ff242(0x14c)],_0x3e641a['hSBhb'],_0x3e641a[_0x9ff242(0x16c)],_0x3e641a['ayXyX']),process[_0x9ff242(0x160)](0x1);else{const {header:_0x5c7b68,response:_0xd35e8f}=_0x52c00d,{status:_0x3e5668,data:_0x2c6af5,error:_0x57427f}=_0xd35e8f;_0x52d7e5+=_0x5c7b68+'\x20#'+_0x3e641a['rEUKQ'](_0x2cd163,0x1)+'\x0a',_0x11800c+=_0x9ff242(0x140)+(_0x3e5668?_0x3e641a['cVCRJ']:_0x3e641a[_0x9ff242(0x1cb)])+'\x0a',_0x4050f1+=_0x9ff242(0x18a)+_0x3e641a[_0x9ff242(0x134)](_0x2c6af5,_0x3e641a['qRUps'])+'\x0a',_0x57427f&&(_0x221657+=_0x3e641a[_0x9ff242(0x1c3)],_0xfd501f+='\x20\x20Message:\x20'+(_0x57427f[_0x9ff242(0x1dd)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x121196+=_0x9ff242(0x1a1)+(_0x57427f[_0x9ff242(0x19f)]||_0x3e641a[_0x9ff242(0x17f)])+'\x0a',_0x57410e+=_0x9ff242(0x1aa)+(_0x57427f['stack']||_0x3e641a[_0x9ff242(0x17f)])+'\x0a'),_0x5a4759+='\x0a\x0a';}}}function printResponse(_0x1e9748,_0x18474b){const _0x50007a=a17_0x7329e3,_0x2448b6={};_0x2448b6[_0x50007a(0x1c5)]=function(_0x217ea2,_0x131a88){return _0x217ea2!==_0x131a88;},_0x2448b6[_0x50007a(0x1bb)]='TXwgk',_0x2448b6[_0x50007a(0x12c)]='nFdqa';const _0x5801d8=_0x2448b6;logger['info']('['+_0x1e9748+_0x50007a(0x13b)+_0x18474b[_0x50007a(0x142)]+_0x50007a(0x15a)+_0x18474b[_0x50007a(0x14f)]+_0x50007a(0x1bc)+_0x18474b[_0x50007a(0x199)]),_0x18474b[_0x50007a(0x199)]&&(_0x5801d8[_0x50007a(0x1c5)](_0x5801d8[_0x50007a(0x1bb)],_0x5801d8['iRZlu'])?logger['error'](_0x50007a(0x198)+_0x18474b['error'][_0x50007a(0x1f0)]):(_0x1ac11c[_0x50007a(0x1b4)](_0x50007a(0x14d)+_0x7eaa9a[_0x50007a(0x17a)]+'\x20'),_0x12f5c3[_0x50007a(0x1d2)]=_0x208c40[_0x50007a(0x17a)]));}async function generateReport(_0x6deb65,_0x360d91){const _0x4d2e27=a17_0x7329e3,_0x100a05={'fdNLH':function(_0x1e467a,_0x460e4c){return _0x1e467a+_0x460e4c;},'rLtJk':_0x4d2e27(0x1ee),'dmwJs':_0x4d2e27(0x17d),'EMPIw':function(_0x382aea,_0x484a71){return _0x382aea||_0x484a71;},'Yyamw':'N/A','tPVlW':_0x4d2e27(0x1f5),'mlrmN':_0x4d2e27(0x217),'xISkJ':function(_0xa26a5b,_0x3004f2){return _0xa26a5b!=_0x3004f2;},'YIuip':_0x4d2e27(0x1d0),'ONVKY':_0x4d2e27(0x1db),'MsGwk':function(_0x57c726){return _0x57c726();}};let _0x28182f='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x4d2e27(0x1d2)]+'\x20===\x0a\x0a';return _0x6deb65['forEach']((_0x594f9a,_0x5ed7db)=>{const _0x12a3f2=_0x4d2e27,{header:_0x445e2b,response:_0x1fcecb}=_0x594f9a,{status:_0x26a8ea,data:_0xdd9c9f,error:_0x5265eb}=_0x1fcecb;_0x28182f+=_0x445e2b+'\x20#'+_0x100a05[_0x12a3f2(0x1cf)](_0x5ed7db,0x1)+'\x0a',_0x28182f+=_0x12a3f2(0x140)+(_0x26a8ea?_0x100a05[_0x12a3f2(0x20c)]:_0x100a05[_0x12a3f2(0x206)])+'\x0a',_0x28182f+='Message:\x20'+_0x100a05['EMPIw'](_0xdd9c9f,_0x100a05[_0x12a3f2(0x19e)])+'\x0a',_0x5265eb&&(_0x28182f+=_0x100a05[_0x12a3f2(0x1b3)],_0x28182f+='\x20\x20Message:\x20'+(_0x5265eb[_0x12a3f2(0x1dd)]||_0x100a05[_0x12a3f2(0x19e)])+'\x0a',_0x28182f+='\x20\x20Code:\x20'+(_0x5265eb[_0x12a3f2(0x19f)]||_0x100a05['Yyamw'])+'\x0a',_0x28182f+='\x20\x20Stack:\x20'+(_0x5265eb['stack']||_0x100a05[_0x12a3f2(0x19e)])+'\x0a'),_0x28182f+='\x0a\x0a';}),_0x28182f+=_0x100a05['mlrmN'],_0x100a05['xISkJ'](_0x360d91,null)?_0x28182f+=_0x4d2e27(0x175)+global_registry[_0x4d2e27(0x1b6)]+'\x20'+(_0x360d91?_0x100a05[_0x4d2e27(0x171)]:_0x100a05[_0x4d2e27(0x130)])+'\x0a\x0a':_0x28182f+='Cluster\x20'+global_registry[_0x4d2e27(0x1b6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x28182f+=_0x100a05['MsGwk'](getSystemMetaData),_0x28182f;};function a17_0x1545(){const _0x4917e3=['toLowerCase','SSL\x20Configured','ETHjV','qTssy','2|3|0|1|4','MCqOM','pMjha','nhKGT','Success','isTls1_2_SUPPORTED','stack','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WebSocket','LOG','cymke','Error\x20Details:\x0a','join','NKuDg','password','isCliToolInstalled','19914180ylvAHW','fObsz','pre-check-grid-profile-empty','/packages/cli/get-all-grid-profiles','936kYVNAX','body','cjrlh','mmkWm','Browserstack','FVlrP','getUTCHours','grid-profile','dmwJs','AwXvN','EsQjF','EJzQB','drSTN','length','rLtJk','Hklkr','wAQau','sbXbD','got','XXBGi','SJTNK','oYcsw','toolInstalledResp','lPBfR','.txt','Cluster\x20details\x0a-----------------------\x0a','pre-check-failed','yCHDg','RtYJO','region','`\x20is\x20present\x20in\x20region\x20`','NktUH','credential-not-found','sHXyf','debug','aQDjr','../../utils/webSocketUtils','ZWZIZ','MgVkY','SQNdt','Invalid\x20input.\x20grid\x20profiles:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','throwHttpErrors','kIRDZ','3989912QougTv','ENcSs','pre-check-cluster-args-not-passed','pre-check','iRZlu','qCAFd','tmIjn','requestId','ONVKY','\x20\x20Message:\x20','eLLvk','KyegZ','fgslF','xAcPf','XQVOn','`\x20,error\x20:\x20','BPVvz','lusax','bOhzt',']\x20status\x20:\x20','oOXWs','wiCxn','description','NKVEZ','Status:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','status','grid','KabuD','UDNro','Missing\x20required\x20arguments:\x20','connectionTimeout','IDIcr','includes','hSBhb','replace','ERROR','Setting\x20cloud\x20provider\x20as\x20','GET','data','username','Grid\x20profile\x20fetched\x20for\x20pre-check','XrTmk','Report\x20saved\x20in\x20','UMilG','hAawb','N/A','HUVIV','4392888mGQpRf','JRgco','\x20data\x20:\x20','split','bstackAccesskey','options','aVGIh','VSsBA','exit','help','puGwu','oSmmH','sendEventToBackend','BbbJk','usage','uuid','.\x20Please\x20provide\x20all\x20required\x20arguments.','dummy-grid','PXAbA','822480uFYqdF','MZRDx','voUno','cloud-provider-not-supported','984065AgZrhL','dKVJb','YIuip','FFCGZ','builder','https://','Cluster\x20','gridProfile','IfMFV','string','ijrAS','CLOUD_PROVIDER','jFEHF','IMNbV','Failure','argv','qRUps','`\x20already\x20exists','reconnecting-websocket','nZlGK','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YLYZC','getUTCMinutes','2073281eSKKGu','IzfXe','2DCSiko','<PasswordPlaceholder>','Message:\x20','isClusterPresent','stack\x20trace\x20','parse','oyneF','hcMRj','SXiWE','xFuAR','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Whitelisted\x20browserstack','authHeader','bstackUsername','../../cloudproviders/utils','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','error\x20stack\x20:\x20','error','qCLTw','3BNwgFs','lLFdZ','response','Yyamw','code','ayXyX','\x20\x20Code:\x20','init','<UsernamePlaceholder>','../../utils/utilityMethods','pre-check-grid-called','xrjBo','getUTCDate','cPipk','stringify','\x20\x20Stack:\x20','hvamb','getUTCFullYear','iCPix','headers','WWVCO','UapqK','KVkoY','desc','tPVlW','info','cloud-provider','clusterName','epilogue','thiSf','cluster-name','vIwfT','zRnBt','\x20error\x20:\x20','xhqHu','method','AtMAQ','Cluster\x20`','INFO','find','iSmVr','ifXtw','GHrPk','zNvtK','grid\x20profile\x20flow\x20','type','handler','aVEdD','AXwjR','unable\x20to\x20verify\x20if\x20cluster\x20`','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','WqTrE','fdNLH','is\x20already\x20present','9872vgxrTr','cloudProvider','push','rRAOL','cxiHW','pre_check','FdlYj','QKEPJ','fBlrm','User\x20Access','will\x20be\x20created','../../utils/instrumentationUtils','message','Failed\x20in\x20pre-check!\x20Error:\x20','header','clusterRegion','delay','cnAun','utf-8','command','YemlK'];a17_0x1545=function(){return _0x4917e3;};return a17_0x1545();}exports[a17_0x7329e3(0x1c9)]=async function(_0x1e463e){const _0x276b38=a17_0x7329e3,_0x3d7f44={'vIwfT':function(_0x2d70bf){return _0x2d70bf();},'XrTmk':_0x276b38(0x227),'oOXWs':function(_0x4d1bd7,_0x3c4be3,_0x278232,_0x1c84ef,_0x37d3a1,_0x2dcca1,_0x23fbb2,_0x5c4ab9){return _0x4d1bd7(_0x3c4be3,_0x278232,_0x1c84ef,_0x37d3a1,_0x2dcca1,_0x23fbb2,_0x5c4ab9);},'xAcPf':_0x276b38(0x1a5),'BPVvz':_0x276b38(0x21e),'PXAbA':_0x276b38(0x199),'KVkoY':function(_0x597798,_0xf9d476,_0x51a68a,_0x59ddb5,_0x31205f,_0x549659,_0x39ed47){return _0x597798(_0xf9d476,_0x51a68a,_0x59ddb5,_0x31205f,_0x549659,_0x39ed47);},'MsLWo':_0x276b38(0x1a3),'bOhzt':_0x276b38(0x189),'cnAun':function(_0x42428d,_0x583d75,_0x67cb3b){return _0x42428d(_0x583d75,_0x67cb3b);},'SXiWE':_0x276b38(0x169),'aVEdD':_0x276b38(0x214),'zlOZa':_0x276b38(0x1ea),'qTssy':'accessResp','cPipk':function(_0x25936f,_0x2bd26a,_0x3498ef){return _0x25936f(_0x2bd26a,_0x3498ef);},'neKZL':'isTrialGridAccessible','lPBfR':function(_0x17722a,_0x1d4cd0){return _0x17722a(_0x1d4cd0);},'UMilG':'TLSv1_2_client_method','mmkWm':function(_0xfe14a3,_0x102b3c,_0x516f39){return _0xfe14a3(_0x102b3c,_0x516f39);},'PRyXz':_0x276b38(0x1ef),'YpmyH':'Tool\x20Installed','zNvtK':_0x276b38(0x1da),'wiCxn':_0x276b38(0x193),'aQDjr':_0x276b38(0x1e7),'nZlGK':function(_0x2d710b,_0x5bc6b9,_0xd1dfbd){return _0x2d710b(_0x5bc6b9,_0xd1dfbd);},'WWVCO':function(_0x5e0f00,_0x552cda){return _0x5e0f00+_0x552cda;},'ijrAS':_0x276b38(0x1e3),'ENcSs':function(_0x207e83,_0x3042d2,_0x4beb24,_0x145ba8,_0x32e322,_0x37ba8e,_0x29be54){return _0x207e83(_0x3042d2,_0x4beb24,_0x145ba8,_0x32e322,_0x37ba8e,_0x29be54);},'cjrlh':_0x276b38(0x218)};let _0x51d464,_0x766148;try{global_registry[_0x276b38(0x12f)]=_0x3d7f44['vIwfT'](uuidv4);!fs['existsSync'](_0x3d7f44[_0x276b38(0x1ba)](getCredentialsPath))&&(_0x766148=_0x3d7f44[_0x276b38(0x152)],logger[_0x276b38(0x199)](_0x766148),await _0x3d7f44[_0x276b38(0x13c)](reportToGalactusAndSendToEDS,_0x1e463e,_0x51d464,_0x766148,messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x135)],_0x3d7f44[_0x276b38(0x138)],_0x3d7f44[_0x276b38(0x16a)]),process['exit'](0x1));_0x3d7f44[_0x276b38(0x1b1)](sendInstrumentationEvent,_0x1e463e,_0x3d7f44[_0x276b38(0x135)],messageTypes[_0x276b38(0x1c1)],null,null,_0x1e463e);const _0x1fb24a=JSON[_0x276b38(0x18d)](fs['readFileSync'](_0x3d7f44['vIwfT'](getCredentialsPath)));global_registry[_0x276b38(0x195)]=_0x1fb24a[_0x276b38(0x202)][_0x276b38(0x150)],global_registry['bstackAccesskey']=_0x1fb24a['Browserstack'][_0x276b38(0x1f8)];const _0x118e0b=WS_ENDPOINT[_0x276b38(0x14b)](_0x3d7f44['MsLWo'],_0x1fb24a[_0x276b38(0x202)]['username'])[_0x276b38(0x14b)](_0x3d7f44[_0x276b38(0x13a)],_0x1fb24a[_0x276b38(0x202)]['password']),_0x45e87e={};_0x45e87e[_0x276b38(0x1f2)]=ws,_0x45e87e[_0x276b38(0x147)]=0x36ee80,_0x51d464=new ReconnectingWebSocket(_0x118e0b,[],_0x45e87e),global_registry[_0x276b38(0x194)]=_0x3d7f44[_0x276b38(0x1e2)](getAuthHeader,global_registry[_0x276b38(0x195)],global_registry[_0x276b38(0x15c)]),await _0x3d7f44[_0x276b38(0x1e2)](inputValidation,_0x1e463e,_0x51d464),logger[_0x276b38(0x1b4)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x276b38(0x1d2)]+'\x20region\x20-\x20'+global_registry[_0x276b38(0x1e0)]);let _0x31909c=await _0x3d7f44[_0x276b38(0x1b1)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x276b38(0x1b6)],_0x3d7f44[_0x276b38(0x190)],_0x51d464,webSocketUtils,_0x1e463e);const _0x4f7128=await _0x31909c[_0x276b38(0x1f9)]();_0x3d7f44['cnAun'](printResponse,_0x3d7f44[_0x276b38(0x1ca)],_0x4f7128),_0x31909c=await _0x31909c[_0x276b38(0x1a2)]();let _0x31e653=![];try{_0x31e653=await _0x31909c[_0x276b38(0x18b)]();}catch(_0x5cdb90){const _0x2d432c=_0x3d7f44['zlOZa'][_0x276b38(0x15b)]('|');let _0x44d71a=0x0;while(!![]){switch(_0x2d432c[_0x44d71a++]){case'0':logger[_0x276b38(0x199)](_0x766148);continue;case'1':_0x766148+='\x0a'+JSON['stringify'](_0x5cdb90['stack']);continue;case'2':_0x766148=_0x276b38(0x1cc)+global_registry[_0x276b38(0x1b6)]+_0x276b38(0x21c)+global_registry['clusterRegion']+_0x276b38(0x137)+_0x5cdb90;continue;case'3':_0x31e653=null;continue;case'4':await _0x3d7f44[_0x276b38(0x13c)](reportToGalactusAndSendToEDS,_0x1e463e,_0x51d464,_0x766148,messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x135)],'cluster-check-failed-'+global_registry[_0x276b38(0x1d2)],_0x3d7f44['PXAbA']);continue;}break;}}_0x31e653&&logger[_0x276b38(0x1b4)]('Cluster\x20`'+global_registry[_0x276b38(0x1b6)]+'`\x20already\x20exists');const _0x156295=await _0x31909c['checkAccess']();_0x3d7f44[_0x276b38(0x1e2)](printResponse,_0x3d7f44[_0x276b38(0x1e9)],_0x156295);const _0x5895e7=await _0x3d7f44[_0x276b38(0x1ba)](curlRequest);_0x3d7f44[_0x276b38(0x1a8)](printResponse,_0x3d7f44['neKZL'],_0x5895e7);const _0x5784c1=await _0x3d7f44[_0x276b38(0x215)](isTlsSupported,_0x3d7f44[_0x276b38(0x154)]);_0x3d7f44[_0x276b38(0x201)](printResponse,_0x3d7f44['PRyXz'],_0x5784c1);const _0x577db1={};_0x577db1[_0x276b38(0x1df)]=_0x3d7f44['YpmyH'],_0x577db1[_0x276b38(0x19d)]=_0x4f7128;const _0x32bb25={};_0x32bb25[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x1c6)],_0x32bb25[_0x276b38(0x19d)]=_0x156295;const _0x24eeae={};_0x24eeae[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x13d)],_0x24eeae[_0x276b38(0x19d)]=_0x5895e7;const _0x336b00={};_0x336b00[_0x276b38(0x1df)]=_0x3d7f44[_0x276b38(0x221)],_0x336b00[_0x276b38(0x19d)]=_0x5784c1;const _0x74d147=[_0x577db1,_0x32bb25,_0x24eeae,_0x336b00],_0x2ef780=await _0x3d7f44[_0x276b38(0x182)](generateReport,_0x74d147,_0x31e653),_0x267408=new Date(),_0x3f1cdd=_0x267408[_0x276b38(0x1ac)]()+'_'+_0x3d7f44[_0x276b38(0x1af)](_0x267408['getUTCMonth'](),0x1)+'_'+_0x267408[_0x276b38(0x1a7)]()+'_'+_0x267408[_0x276b38(0x204)]()+'_'+_0x267408[_0x276b38(0x185)](),_0xcf4f9a='log/report_'+_0x3f1cdd+_0x276b38(0x216);fs['writeFileSync'](_0xcf4f9a,_0x2ef780,_0x3d7f44[_0x276b38(0x179)]),logger['info'](_0x276b38(0x153)+_0xcf4f9a),process[_0x276b38(0x160)](0x0);}catch(_0x5eeaee){let _0x57b2c3=_0x276b38(0x1de)+_0x5eeaee+'\x20';logger[_0x276b38(0x199)](_0x57b2c3),_0x57b2c3+='\x0a'+JSON[_0x276b38(0x1a9)](_0x5eeaee[_0x276b38(0x1f0)]),logger[_0x276b38(0x220)](_0x276b38(0x18c)+_0x5eeaee[_0x276b38(0x1f0)]);if(_0x51d464){const _0x4eb11c={};_0x4eb11c[_0x276b38(0x1c8)]=WS_EVENTS[_0x276b38(0x1f3)],_0x4eb11c[_0x276b38(0x1dd)]=_0x57b2c3,webSocketUtils[_0x276b38(0x164)](_0x51d464,_0x4eb11c,_0x3d7f44[_0x276b38(0x16a)],!![]);}await webSocketUtils[_0x276b38(0x1e1)](0x7d0);const _0x506569={};_0x506569['error']=_0x57b2c3,await _0x3d7f44[_0x276b38(0x129)](sendInstrumentationEvent,_0x1e463e,_0x3d7f44[_0x276b38(0x135)],messageTypes[_0x276b38(0x14c)],_0x3d7f44[_0x276b38(0x200)],_0x506569,_0x1e463e),process[_0x276b38(0x160)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x2d757c=a18_0x235c;(function(_0x54b524,_0x159b2c){const _0x598484=a18_0x235c,_0x3150f3=_0x54b524();while(!![]){try{const _0x558ded=-parseInt(_0x598484(0x1b1))/0x1*(parseInt(_0x598484(0x1a5))/0x2)+parseInt(_0x598484(0x1ac))/0x3*(parseInt(_0x598484(0x1ad))/0x4)+-parseInt(_0x598484(0x1ae))/0x5*(-parseInt(_0x598484(0x19d))/0x6)+-parseInt(_0x598484(0x19c))/0x7*(-parseInt(_0x598484(0x1a2))/0x8)+-parseInt(_0x598484(0x19f))/0x9+-parseInt(_0x598484(0x1a0))/0xa+parseInt(_0x598484(0x1a3))/0xb*(parseInt(_0x598484(0x1a8))/0xc);if(_0x558ded===_0x159b2c)break;else _0x3150f3['push'](_0x3150f3['shift']());}catch(_0x1dad1b){_0x3150f3['push'](_0x3150f3['shift']());}}}(a18_0x5190,0x7e63e));function a18_0x5190(){const _0x84dce7=['recommendCommands','113742ENAHiw','4328430fOHNuZ','desc','5144NgbTmx','5688177pqrdxx','start_commands','66iNRXUm','demandCommand','command','12iABOtl','usage','start','strict','315318VKbljx','16LiFEvl','20ckzhhM','help','handler','25013gsaamu','Start\x20an\x20existing\x20Automation\x20grid.','tCOJe','commandDir','qGvcf','301dylzjL','1235136KwIqqP'];a18_0x5190=function(){return _0x84dce7;};return a18_0x5190();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x235c(_0x26119d,_0x3aa229){const _0x519034=a18_0x5190();return a18_0x235c=function(_0x235ce6,_0x2eba66){_0x235ce6=_0x235ce6-0x19c;let _0xc9e4bd=_0x519034[_0x235ce6];return _0xc9e4bd;},a18_0x235c(_0x26119d,_0x3aa229);}exports[a18_0x2d757c(0x1a7)]='start',exports[a18_0x2d757c(0x1a1)]=a18_0x2d757c(0x1b2),exports['builder']=function(_0x493003){const _0x56100b=a18_0x2d757c,_0x4638cc={};_0x4638cc[_0x56100b(0x1b3)]=_0x56100b(0x1a4),_0x4638cc['qGvcf']=_0x56100b(0x1af);const _0x1eebb1=_0x4638cc;return _0x493003[_0x56100b(0x1a9)](HELP_HEADER_MESSAGE[_0x56100b(0x1aa)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x56100b(0x1b4)](_0x1eebb1[_0x56100b(0x1b3)])[_0x56100b(0x1a6)]()[_0x56100b(0x19e)]()[_0x56100b(0x1ab)]()[_0x56100b(0x1af)](_0x1eebb1[_0x56100b(0x1b5)]);},exports[a18_0x2d757c(0x1b0)]=function(_0x4c6675){};
1
+ const a18_0x4f23a2=a18_0x537b;function a18_0x1426(){const _0xdf6611=['commandDir','handler','epilogue','1496076McKyWj','2402cTJsXj','4990400xgHHWE','recommendCommands','command','help','18TcEtwV','1419410thRdgt','10OapUPy','suvrX','Start\x20an\x20existing\x20Automation\x20grid.','desc','start','63aAAWKI','1400575gSqJSx','usage','strict','60UnonVS','ztnli','10514226vHoZHj','1789736Jlghrs','7rQpcST'];a18_0x1426=function(){return _0xdf6611;};return a18_0x1426();}(function(_0x599e29,_0x3dd51b){const _0x33e0d5=a18_0x537b,_0x69d7a5=_0x599e29();while(!![]){try{const _0x4e493f=parseInt(_0x33e0d5(0x179))/0x1+parseInt(_0x33e0d5(0x17a))/0x2*(-parseInt(_0x33e0d5(0x17f))/0x3)+-parseInt(_0x33e0d5(0x18d))/0x4*(-parseInt(_0x33e0d5(0x181))/0x5)+-parseInt(_0x33e0d5(0x18c))/0x6*(parseInt(_0x33e0d5(0x18e))/0x7)+parseInt(_0x33e0d5(0x17b))/0x8+-parseInt(_0x33e0d5(0x186))/0x9*(parseInt(_0x33e0d5(0x180))/0xa)+parseInt(_0x33e0d5(0x187))/0xb*(parseInt(_0x33e0d5(0x18a))/0xc);if(_0x4e493f===_0x3dd51b)break;else _0x69d7a5['push'](_0x69d7a5['shift']());}catch(_0x2eab97){_0x69d7a5['push'](_0x69d7a5['shift']());}}}(a18_0x1426,0xdb49d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x537b(_0x1d89b9,_0x4f42fa){const _0x14266a=a18_0x1426();return a18_0x537b=function(_0x537b18,_0x44147c){_0x537b18=_0x537b18-0x178;let _0x52577e=_0x14266a[_0x537b18];return _0x52577e;},a18_0x537b(_0x1d89b9,_0x4f42fa);}exports[a18_0x4f23a2(0x17d)]=a18_0x4f23a2(0x185),exports[a18_0x4f23a2(0x184)]=a18_0x4f23a2(0x183),exports['builder']=function(_0x2c9153){const _0x370ef1=a18_0x4f23a2,_0x32a952={};_0x32a952['suvrX']='start_commands',_0x32a952['ztnli']=_0x370ef1(0x17e);const _0x39facb=_0x32a952;return _0x2c9153[_0x370ef1(0x188)](HELP_HEADER_MESSAGE[_0x370ef1(0x185)])[_0x370ef1(0x178)](HELP_FOOTER_MESSAGE)[_0x370ef1(0x18f)](_0x39facb[_0x370ef1(0x182)])['demandCommand']()[_0x370ef1(0x17c)]()[_0x370ef1(0x189)]()[_0x370ef1(0x17e)](_0x39facb[_0x370ef1(0x18b)]);},exports[a18_0x4f23a2(0x190)]=function(_0x3e80f7){};
@@ -1 +1 @@
1
- const a19_0x3195ca=a19_0xca4e;(function(_0xfa1857,_0x1d2e83){const _0x63d43f=a19_0xca4e,_0x19d22e=_0xfa1857();while(!![]){try{const _0x2bf659=parseInt(_0x63d43f(0xb6))/0x1*(-parseInt(_0x63d43f(0x10a))/0x2)+parseInt(_0x63d43f(0xce))/0x3*(-parseInt(_0x63d43f(0x10b))/0x4)+-parseInt(_0x63d43f(0xb9))/0x5*(-parseInt(_0x63d43f(0xc6))/0x6)+parseInt(_0x63d43f(0xdb))/0x7*(-parseInt(_0x63d43f(0xf2))/0x8)+-parseInt(_0x63d43f(0xbf))/0x9+-parseInt(_0x63d43f(0x100))/0xa+parseInt(_0x63d43f(0xf8))/0xb*(parseInt(_0x63d43f(0x10d))/0xc);if(_0x2bf659===_0x1d2e83)break;else _0x19d22e['push'](_0x19d22e['shift']());}catch(_0x2795b0){_0x19d22e['push'](_0x19d22e['shift']());}}}(a19_0x4316,0x1b82f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3195ca(0xfb)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3195ca(0xe7)),{logger}=require(a19_0x3195ca(0xd1)),{getCredentialsPath,getGridDetails}=require(a19_0x3195ca(0xf6)),{scaleUpHubDeployment}=require(a19_0x3195ca(0xe3)),{sendInstrumentationEvent}=require(a19_0x3195ca(0xf5)),webSocketUtils=require(a19_0x3195ca(0x10f)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x4316(){const _0x59d531=['handler','GVNoi','erFja','WebSocket','existsSync','RpeHH','PhfEi','Start\x20an\x20existing\x20Automation\x20grid.','8QzyRsF','<UsernamePlaceholder>','Skip\x20insecure\x20cert\x20verification.','../../utils/instrumentationUtils','../../utils/utilityMethods','Browserstack','253cNYwxs','invalid-grid-id','dBpFX','reconnecting-websocket','exit','epilogue','start','gridId','896880wbXIko','type','PVWhb','message','desc','builder','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','stack','ERROR','2yigAlg','261316Rfnujd','user','409176VZPepB','body','../../utils/webSocketUtils','heyCx','name','start-grid-called','kxZUE','151673ffhLHT','parse','info','55ZPiMgQ','<PasswordPlaceholder>','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','NLcAR','readFileSync','clusterName','1992627MKEzmx','EELMq','grid','replace','Starting\x20grid\x20','XRPJh','stringify','43278uxDsQi','mQlHg','vNZHF','username','ZsIJH','CetEn','skip-tls-cert-verify','boolean','3yrqRde','ZzBaY','LpRxI','../../config/logger','default','init-not-called','INFO','error','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','argv','cloudProvider','1559719LmBzcv','region','LWUrw','wAnBZ','help','statusCode','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/gridComponents','command','clusterRegion','sGasg','../../config/constants','debug','LBnXH'];a19_0x4316=function(){return _0x59d531;};return a19_0x4316();}function a19_0xca4e(_0x2d7046,_0x283905){const _0x431656=a19_0x4316();return a19_0xca4e=function(_0xca4e82,_0x3605da){_0xca4e82=_0xca4e82-0xb5;let _0x30663b=_0x431656[_0xca4e82];return _0x30663b;},a19_0xca4e(_0x2d7046,_0x283905);}exports[a19_0x3195ca(0xe4)]=a19_0x3195ca(0xc1),exports[a19_0x3195ca(0x104)]=a19_0x3195ca(0xf1),exports[a19_0x3195ca(0x105)]=function(_0x36e370){const _0x5e0357=a19_0x3195ca,_0x10d8cb={};_0x10d8cb[_0x5e0357(0xec)]=_0x5e0357(0xbb),_0x10d8cb[_0x5e0357(0xcb)]='string',_0x10d8cb[_0x5e0357(0xf0)]=_0x5e0357(0xf4),_0x10d8cb['EELMq']=_0x5e0357(0xcd),_0x10d8cb[_0x5e0357(0xfa)]=_0x5e0357(0xdf);const _0x31305e=_0x10d8cb,_0x1979f9={};_0x1979f9['description']=_0x31305e[_0x5e0357(0xec)],_0x1979f9['type']=_0x31305e[_0x5e0357(0xcb)];const _0x49d167={};_0x49d167['description']=_0x31305e[_0x5e0357(0xf0)],_0x49d167[_0x5e0357(0x101)]=_0x31305e[_0x5e0357(0xc0)],_0x49d167[_0x5e0357(0xd2)]=![];const _0x4b5226={};return _0x4b5226['grid-id']=_0x1979f9,_0x4b5226[_0x5e0357(0xcc)]=_0x49d167,_0x36e370['usage'](HELP_HEADER_MESSAGE[_0x5e0357(0xfe)])[_0x5e0357(0xfd)](HELP_FOOTER_MESSAGE)[_0x5e0357(0xe1)](_0x4b5226)[_0x5e0357(0xdf)](_0x31305e[_0x5e0357(0xfa)])[_0x5e0357(0xd9)];},exports[a19_0x3195ca(0xea)]=async function(_0x4d1324){const _0xbaae9a=a19_0x3195ca,_0x1f40f0={'dJHST':_0xbaae9a(0x107),'PVWhb':function(_0x175fbb){return _0x175fbb();},'XRPJh':_0xbaae9a(0xe2),'sGasg':function(_0xdc56c4,_0x397f29,_0x521fe3,_0x556ffb,_0x5042cf,_0x39fc14,_0xfded0d){return _0xdc56c4(_0x397f29,_0x521fe3,_0x556ffb,_0x5042cf,_0x39fc14,_0xfded0d);},'ZzBaY':_0xbaae9a(0x112),'dlaWh':_0xbaae9a(0xd3),'LWUrw':_0xbaae9a(0xf3),'heyCx':_0xbaae9a(0xba),'kxZUE':'Adding\x20Websocket\x20listeners','RpeHH':function(_0x21e351,_0x43e912,_0x4d8d39,_0x48da26){return _0x21e351(_0x43e912,_0x4d8d39,_0x48da26);},'KnJbQ':function(_0x51ad86,_0x205d6b,_0x11a4a8,_0x83d6c8,_0x25dcce,_0x8f9d3d,_0x16aea4){return _0x51ad86(_0x205d6b,_0x11a4a8,_0x83d6c8,_0x25dcce,_0x8f9d3d,_0x16aea4);},'GVNoi':function(_0x5b6a14,_0x5c7067,_0x2ef569){return _0x5b6a14(_0x5c7067,_0x2ef569);},'ZsIJH':'Grid\x20started','NLcAR':function(_0x368f7f,_0x59c0a5){return _0x368f7f===_0x59c0a5;},'LBnXH':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','mQlHg':'unauthorised','wAnBZ':_0xbaae9a(0xf9),'LpRxI':function(_0x14851b,_0x525b74,_0x42e9ee,_0x46a163,_0x215ed7,_0x1b53bc,_0x21ef77){return _0x14851b(_0x525b74,_0x42e9ee,_0x46a163,_0x215ed7,_0x1b53bc,_0x21ef77);},'vNZHF':'server-error'};let _0x4cbc5c;try{!_0x4d1324['gridId']&&(logger['error'](_0x1f40f0['dJHST']),process[_0xbaae9a(0xfc)](0x1));!fs[_0xbaae9a(0xee)](_0x1f40f0[_0xbaae9a(0x102)](getCredentialsPath))&&(logger[_0xbaae9a(0xd5)](_0x1f40f0[_0xbaae9a(0xc4)]),await _0x1f40f0[_0xbaae9a(0xe6)](sendInstrumentationEvent,_0x4d1324,_0x1f40f0[_0xbaae9a(0xcf)],messageTypes[_0xbaae9a(0x109)],_0x1f40f0['dlaWh'],null,_0x4d1324),process['exit'](0x1));logger[_0xbaae9a(0xb8)](_0xbaae9a(0xc3)+_0x4d1324[_0xbaae9a(0xff)]),await _0x1f40f0[_0xbaae9a(0xe6)](sendInstrumentationEvent,_0x4d1324,_0x1f40f0[_0xbaae9a(0xcf)],messageTypes[_0xbaae9a(0xd4)],null,null,_0x4d1324);const _0x54796e=JSON[_0xbaae9a(0xb7)](fs[_0xbaae9a(0xbd)](_0x1f40f0['PVWhb'](getCredentialsPath)));global_registry['bstackUsername']=_0x54796e[_0xbaae9a(0xf7)][_0xbaae9a(0xc9)],global_registry[_0xbaae9a(0xd6)]=_0x54796e[_0xbaae9a(0xf7)]['password'];const _0x32761a=WS_ENDPOINT[_0xbaae9a(0xc2)](_0x1f40f0[_0xbaae9a(0xdd)],_0x54796e[_0xbaae9a(0xf7)]['username'])[_0xbaae9a(0xc2)](_0x1f40f0[_0xbaae9a(0x110)],_0x54796e[_0xbaae9a(0xf7)]['password']),_0x35d707={};_0x35d707[_0xbaae9a(0xed)]=ws,_0x35d707[_0xbaae9a(0x106)]=0x36ee80,_0x4cbc5c=new ReconnectingWebSocket(_0x32761a,[],_0x35d707),logger[_0xbaae9a(0xe8)](_0x1f40f0[_0xbaae9a(0xb5)]),webSocketUtils['addListeners'](_0x4cbc5c,_0x4d1324[_0xbaae9a(0x10c)],_0x4d1324['password']);const [_0x11e3b4,_0x249c52]=await _0x1f40f0[_0xbaae9a(0xef)](getGridDetails,_0x54796e[_0xbaae9a(0xf7)][_0xbaae9a(0xc9)],_0x54796e[_0xbaae9a(0xf7)][_0xbaae9a(0xd8)],_0x4d1324[_0xbaae9a(0xff)]);if(_0x249c52){const _0x11800d=_0x249c52[_0xbaae9a(0xb8)];global_registry[_0xbaae9a(0xda)]=_0x11800d[_0xbaae9a(0xda)],global_registry[_0xbaae9a(0xe5)]=_0x11800d[_0xbaae9a(0xdc)],global_registry[_0xbaae9a(0xbe)]=_0x11800d[_0xbaae9a(0xbe)];const _0x55de3f=await _0x1f40f0['KnJbQ'](getCloudProviderObject,_0x11800d['cloudProvider'],_0x11800d[_0xbaae9a(0xbe)],_0x11800d[_0xbaae9a(0x111)],_0x4cbc5c,webSocketUtils,_0x4d1324),[_0x2b6aa0,_0x981b8c,_0x2747f9,_0x45fe8e,_0x5536e9,_0x3971bf]=await _0x1f40f0[_0xbaae9a(0xeb)](createK8sClient,_0x55de3f,_0x4d1324['skipTlsCertVerify']);await _0x1f40f0[_0xbaae9a(0xeb)](scaleUpHubDeployment,_0x981b8c,_0x11800d[_0xbaae9a(0x111)]),logger['info'](_0x1f40f0[_0xbaae9a(0xca)]),process[_0xbaae9a(0xfc)](0x0);}_0x1f40f0[_0xbaae9a(0xbc)](_0x11e3b4[_0xbaae9a(0xe0)],0x191)&&(logger[_0xbaae9a(0xd5)](_0x1f40f0[_0xbaae9a(0xe9)]),await _0x1f40f0[_0xbaae9a(0xe6)](sendInstrumentationEvent,_0x4d1324,_0x1f40f0['ZzBaY'],messageTypes[_0xbaae9a(0x109)],_0x1f40f0[_0xbaae9a(0xc7)],null,_0x4d1324),process[_0xbaae9a(0xfc)](0x1)),_0x1f40f0['NLcAR'](_0x11e3b4[_0xbaae9a(0xe0)],0x190)&&(logger[_0xbaae9a(0xd5)](JSON['parse'](_0x11e3b4[_0xbaae9a(0x10e)])[_0xbaae9a(0x103)]),await _0x1f40f0[_0xbaae9a(0xe6)](sendInstrumentationEvent,_0x4d1324,_0x1f40f0[_0xbaae9a(0xcf)],messageTypes[_0xbaae9a(0x109)],_0x1f40f0[_0xbaae9a(0xde)],null,_0x4d1324),process[_0xbaae9a(0xfc)](0x1)),logger[_0xbaae9a(0xd5)](_0xbaae9a(0xd7)+JSON[_0xbaae9a(0xc5)](_0x11e3b4)),await _0x1f40f0[_0xbaae9a(0xd0)](sendInstrumentationEvent,_0x4d1324,_0x1f40f0['ZzBaY'],messageTypes[_0xbaae9a(0x109)],_0x1f40f0[_0xbaae9a(0xc8)],_0x11e3b4,_0x4d1324),process[_0xbaae9a(0xfc)](0x1);}catch(_0x5336dc){const _0x5bc15d='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x5336dc+'\x20\x0a'+JSON['stringify'](_0x5336dc[_0xbaae9a(0x108)])+'\x20';logger['error'](_0x5bc15d),process[_0xbaae9a(0xfc)](0x1);}};
1
+ const a19_0x5cb12d=a19_0x432a;(function(_0x3037ab,_0x20143c){const _0x263513=a19_0x432a,_0x4dbef1=_0x3037ab();while(!![]){try{const _0x4ac778=parseInt(_0x263513(0x188))/0x1*(parseInt(_0x263513(0x18f))/0x2)+-parseInt(_0x263513(0x16e))/0x3*(parseInt(_0x263513(0x16b))/0x4)+parseInt(_0x263513(0x18a))/0x5+-parseInt(_0x263513(0x15b))/0x6*(parseInt(_0x263513(0x19e))/0x7)+parseInt(_0x263513(0x152))/0x8+-parseInt(_0x263513(0x19c))/0x9*(parseInt(_0x263513(0x1a5))/0xa)+parseInt(_0x263513(0x198))/0xb*(parseInt(_0x263513(0x17a))/0xc);if(_0x4ac778===_0x20143c)break;else _0x4dbef1['push'](_0x4dbef1['shift']());}catch(_0x57c1fb){_0x4dbef1['push'](_0x4dbef1['shift']());}}}(a19_0x3ec3,0x5550b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5cb12d(0x17d)),{logger}=require(a19_0x5cb12d(0x180)),{getCredentialsPath,getGridDetails}=require(a19_0x5cb12d(0x15c)),{scaleUpHubDeployment}=require(a19_0x5cb12d(0x1a6)),{sendInstrumentationEvent}=require(a19_0x5cb12d(0x1a9)),webSocketUtils=require(a19_0x5cb12d(0x16a)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x5cb12d(0x164));function a19_0x432a(_0x5a0ede,_0x411cba){const _0x3ec335=a19_0x3ec3();return a19_0x432a=function(_0x432a43,_0x25ce01){_0x432a43=_0x432a43-0x150;let _0x2baedc=_0x3ec335[_0x432a43];return _0x2baedc;},a19_0x432a(_0x5a0ede,_0x411cba);}exports[a19_0x5cb12d(0x160)]=a19_0x5cb12d(0x1a2),exports['desc']=a19_0x5cb12d(0x178),exports[a19_0x5cb12d(0x19a)]=function(_0x5debd5){const _0x54de1a=a19_0x5cb12d,_0x9e84bb={};_0x9e84bb[_0x54de1a(0x19b)]=_0x54de1a(0x163),_0x9e84bb['rWBMQ']=_0x54de1a(0x17f),_0x9e84bb['wWEUI']=_0x54de1a(0x177),_0x9e84bb[_0x54de1a(0x150)]=_0x54de1a(0x174),_0x9e84bb['PjWDz']=_0x54de1a(0x154);const _0x1de095=_0x9e84bb,_0xcfe49a={};_0xcfe49a['description']=_0x1de095[_0x54de1a(0x19b)],_0xcfe49a[_0x54de1a(0x19f)]=_0x1de095[_0x54de1a(0x184)];const _0x3d7cfd={};_0x3d7cfd[_0x54de1a(0x194)]=_0x1de095['wWEUI'],_0x3d7cfd['type']=_0x1de095[_0x54de1a(0x150)],_0x3d7cfd['default']=![];const _0x3d00c4={};return _0x3d00c4[_0x54de1a(0x166)]=_0xcfe49a,_0x3d00c4[_0x54de1a(0x15d)]=_0x3d7cfd,_0x5debd5[_0x54de1a(0x181)](HELP_HEADER_MESSAGE[_0x54de1a(0x193)])[_0x54de1a(0x15e)](HELP_FOOTER_MESSAGE)['options'](_0x3d00c4)['help'](_0x1de095['PjWDz'])[_0x54de1a(0x1a7)];},exports[a19_0x5cb12d(0x1a3)]=async function(_0x40eb8e){const _0x5541ea=a19_0x5cb12d,_0x55634d={'GoKAp':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','GtwaI':function(_0x5eb95){return _0x5eb95();},'mCgAf':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QhdyU':function(_0x3f1e2b,_0x165f89,_0x319bdb,_0x34b013,_0x533e60,_0x3dcebf,_0xb54c2){return _0x3f1e2b(_0x165f89,_0x319bdb,_0x34b013,_0x533e60,_0x3dcebf,_0xb54c2);},'evqxW':_0x5541ea(0x168),'AottP':'init-not-called','jnziN':function(_0xe706f3,_0x471b3a,_0x3a7dc8,_0x228808,_0x35abab,_0x5cefec,_0x226a1d){return _0xe706f3(_0x471b3a,_0x3a7dc8,_0x228808,_0x35abab,_0x5cefec,_0x226a1d);},'MgvgT':function(_0x59df1c){return _0x59df1c();},'xZZlw':_0x5541ea(0x16f),'EahKC':_0x5541ea(0x159),'bDsVs':_0x5541ea(0x183),'IKOJb':function(_0x5b5bf5,_0x487216,_0x2bca64,_0x39fa82){return _0x5b5bf5(_0x487216,_0x2bca64,_0x39fa82);},'VIMxY':function(_0x2009f7,_0xe5fd87,_0x507ea7){return _0x2009f7(_0xe5fd87,_0x507ea7);},'kkhps':function(_0x114619,_0x1377f3,_0x5b87f6){return _0x114619(_0x1377f3,_0x5b87f6);},'AqTFI':'Grid\x20started','XMCeC':function(_0x5f1543,_0x54d7ab){return _0x5f1543===_0x54d7ab;},'FdBgp':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','dVtLI':_0x5541ea(0x196),'Uahsg':function(_0x3efda7,_0x213654,_0x2f6de8,_0x403044,_0x527c8f,_0x56998d,_0x372c3f){return _0x3efda7(_0x213654,_0x2f6de8,_0x403044,_0x527c8f,_0x56998d,_0x372c3f);},'VRfvV':_0x5541ea(0x1a8),'cQAhO':'server-error'};let _0x10713c;try{!_0x40eb8e['gridId']&&(logger[_0x5541ea(0x151)](_0x55634d['GoKAp']),process[_0x5541ea(0x16c)](0x1));!fs[_0x5541ea(0x170)](_0x55634d[_0x5541ea(0x16d)](getCredentialsPath))&&(logger[_0x5541ea(0x151)](_0x55634d['mCgAf']),await _0x55634d['QhdyU'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x17b)],_0x55634d[_0x5541ea(0x179)],null,_0x40eb8e),process[_0x5541ea(0x16c)](0x1));logger[_0x5541ea(0x1a4)]('Starting\x20grid\x20'+_0x40eb8e[_0x5541ea(0x1a0)]),await _0x55634d['jnziN'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x192)],null,null,_0x40eb8e);const _0x12e22d=JSON[_0x5541ea(0x185)](fs[_0x5541ea(0x17c)](_0x55634d[_0x5541ea(0x191)](getCredentialsPath)));global_registry[_0x5541ea(0x1a1)]=_0x12e22d[_0x5541ea(0x176)][_0x5541ea(0x165)],global_registry[_0x5541ea(0x162)]=_0x12e22d[_0x5541ea(0x176)]['password'];const _0x3c21e2=WS_ENDPOINT[_0x5541ea(0x156)](_0x55634d[_0x5541ea(0x195)],_0x12e22d[_0x5541ea(0x176)]['username'])[_0x5541ea(0x156)](_0x55634d[_0x5541ea(0x173)],_0x12e22d['Browserstack']['password']),_0xb770da={};_0xb770da[_0x5541ea(0x167)]=ws,_0xb770da['connectionTimeout']=0x36ee80,_0x10713c=new ReconnectingWebSocket(_0x3c21e2,[],_0xb770da),logger[_0x5541ea(0x199)](_0x55634d[_0x5541ea(0x19d)]),webSocketUtils['addListeners'](_0x10713c,_0x40eb8e['user'],_0x40eb8e[_0x5541ea(0x18c)]);const [_0x221095,_0x54cb57]=await _0x55634d[_0x5541ea(0x186)](getGridDetails,_0x12e22d[_0x5541ea(0x176)][_0x5541ea(0x165)],_0x12e22d['Browserstack'][_0x5541ea(0x18c)],_0x40eb8e['gridId']);if(_0x54cb57){const _0x48a7f4=_0x54cb57[_0x5541ea(0x1a4)];global_registry[_0x5541ea(0x169)]=_0x48a7f4[_0x5541ea(0x169)],global_registry[_0x5541ea(0x189)]=_0x48a7f4[_0x5541ea(0x197)],global_registry[_0x5541ea(0x171)]=_0x48a7f4['clusterName'];const _0x26e09d=await _0x55634d[_0x5541ea(0x153)](getCloudProviderObject,_0x48a7f4['cloudProvider'],_0x48a7f4[_0x5541ea(0x171)],_0x48a7f4['name'],_0x10713c,webSocketUtils,_0x40eb8e),[_0x5757c2,_0x45004f,_0x45e17c,_0x3a249d,_0x3535e8,_0x3fda3b]=await _0x55634d[_0x5541ea(0x18e)](createK8sClient,_0x26e09d,_0x40eb8e[_0x5541ea(0x157)]);await _0x55634d['kkhps'](scaleUpHubDeployment,_0x45004f,_0x48a7f4[_0x5541ea(0x155)]),logger[_0x5541ea(0x1a4)](_0x55634d[_0x5541ea(0x172)]),process['exit'](0x0);}_0x55634d[_0x5541ea(0x190)](_0x221095[_0x5541ea(0x158)],0x191)&&(logger['error'](_0x55634d[_0x5541ea(0x161)]),await _0x55634d['QhdyU'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x17b)],_0x55634d[_0x5541ea(0x18b)],null,_0x40eb8e),process[_0x5541ea(0x16c)](0x1)),_0x55634d[_0x5541ea(0x190)](_0x221095['statusCode'],0x190)&&(logger[_0x5541ea(0x151)](JSON['parse'](_0x221095[_0x5541ea(0x15a)])[_0x5541ea(0x175)]),await _0x55634d['Uahsg'](sendInstrumentationEvent,_0x40eb8e,_0x55634d[_0x5541ea(0x18d)],messageTypes[_0x5541ea(0x17b)],_0x55634d['VRfvV'],null,_0x40eb8e),process[_0x5541ea(0x16c)](0x1)),logger[_0x5541ea(0x151)](_0x5541ea(0x182)+JSON[_0x5541ea(0x187)](_0x221095)),await _0x55634d[_0x5541ea(0x17e)](sendInstrumentationEvent,_0x40eb8e,_0x55634d['evqxW'],messageTypes[_0x5541ea(0x17b)],_0x55634d[_0x5541ea(0x15f)],_0x221095,_0x40eb8e),process[_0x5541ea(0x16c)](0x1);}catch(_0x12884f){const _0x627fb7='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x12884f+'\x20\x0a'+JSON[_0x5541ea(0x187)](_0x12884f['stack'])+'\x20';logger['error'](_0x627fb7),process[_0x5541ea(0x16c)](0x1);}};function a19_0x3ec3(){const _0x1e3c82=['VIMxY','473540txiibv','XMCeC','MgvgT','INFO','start','description','xZZlw','unauthorised','region','1177TWknjK','debug','builder','yFuor','27dHvZho','bDsVs','7mcKcmt','type','gridId','bstackUsername','grid','handler','info','388570slqyVl','../../utils/gridComponents','argv','invalid-grid-id','../../utils/instrumentationUtils','rLxqt','error','3483328WbmIKL','QhdyU','help','name','replace','skipTlsCertVerify','statusCode','<PasswordPlaceholder>','body','3019362YEflKY','../../utils/utilityMethods','skip-tls-cert-verify','epilogue','cQAhO','command','FdBgp','bstackAccesskey','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../cloudproviders/utils','username','grid-id','WebSocket','start-grid-called','cloudProvider','../../utils/webSocketUtils','500EUuuFF','exit','GtwaI','15819NbkexC','<UsernamePlaceholder>','existsSync','clusterName','AqTFI','EahKC','boolean','message','Browserstack','Skip\x20insecure\x20cert\x20verification.','Start\x20an\x20existing\x20Automation\x20grid.','AottP','80016QbGgHi','ERROR','readFileSync','../../config/constants','Uahsg','string','../../config/logger','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Adding\x20Websocket\x20listeners','rWBMQ','parse','IKOJb','stringify','1OzDaXx','clusterRegion','1213560eDKKvg','dVtLI','password','evqxW'];a19_0x3ec3=function(){return _0x1e3c82;};return a19_0x3ec3();}
@@ -1 +1 @@
1
- const a20_0x24eb26=a20_0x5a35;function a20_0x5a35(_0x51167c,_0x1c7e16){const _0x34c3f3=a20_0x34c3();return a20_0x5a35=function(_0x5a3574,_0x28bc18){_0x5a3574=_0x5a3574-0x1d6;let _0x4d5570=_0x34c3f3[_0x5a3574];return _0x4d5570;},a20_0x5a35(_0x51167c,_0x1c7e16);}(function(_0x8190ab,_0x1f7b3e){const _0x2ce54a=a20_0x5a35,_0x5d854d=_0x8190ab();while(!![]){try{const _0x1c3dbd=parseInt(_0x2ce54a(0x1e7))/0x1*(parseInt(_0x2ce54a(0x1e8))/0x2)+-parseInt(_0x2ce54a(0x1d7))/0x3+-parseInt(_0x2ce54a(0x1e9))/0x4*(parseInt(_0x2ce54a(0x1dd))/0x5)+-parseInt(_0x2ce54a(0x1df))/0x6+-parseInt(_0x2ce54a(0x1e2))/0x7+parseInt(_0x2ce54a(0x1d6))/0x8*(-parseInt(_0x2ce54a(0x1dc))/0x9)+parseInt(_0x2ce54a(0x1d9))/0xa;if(_0x1c3dbd===_0x1f7b3e)break;else _0x5d854d['push'](_0x5d854d['shift']());}catch(_0x591a43){_0x5d854d['push'](_0x5d854d['shift']());}}}(a20_0x34c3,0x96eb0));function a20_0x34c3(){const _0x1c3a77=['2385576OqYPhk','usage','command','1924482TxhAZK','demandCommand','zkOPh','help','../config/constants','6uNDmWg','177794eWiVSb','8mAVJte','stop','desc','8photJP','3501240tEbeSO','stop_commands','28528750NQrPYM','handler','GxMiw','3359907epJvel','1387930xrxpQQ','strict'];a20_0x34c3=function(){return _0x1c3a77;};return a20_0x34c3();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x24eb26(0x1e6));exports[a20_0x24eb26(0x1e1)]='stop',exports[a20_0x24eb26(0x1eb)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x121fcb){const _0x5aec8c=a20_0x24eb26,_0x3984f1={};_0x3984f1[_0x5aec8c(0x1db)]=_0x5aec8c(0x1d8),_0x3984f1[_0x5aec8c(0x1e4)]=_0x5aec8c(0x1e5);const _0x1b29d1=_0x3984f1;return _0x121fcb[_0x5aec8c(0x1e0)](HELP_HEADER_MESSAGE[_0x5aec8c(0x1ea)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x1b29d1[_0x5aec8c(0x1db)])[_0x5aec8c(0x1e3)]()['recommendCommands']()[_0x5aec8c(0x1de)]()[_0x5aec8c(0x1e5)](_0x1b29d1[_0x5aec8c(0x1e4)]);},exports[a20_0x24eb26(0x1da)]=function(_0x373ee8){};
1
+ const a20_0x176cee=a20_0x28c2;function a20_0x28c2(_0x26dda0,_0x55fb77){const _0x5d3a27=a20_0x5d3a();return a20_0x28c2=function(_0x28c2bf,_0x5dd878){_0x28c2bf=_0x28c2bf-0xe1;let _0x4d01d4=_0x5d3a27[_0x28c2bf];return _0x4d01d4;},a20_0x28c2(_0x26dda0,_0x55fb77);}(function(_0x1c4d2d,_0x4c7cdc){const _0x20ecb6=a20_0x28c2,_0x2230e0=_0x1c4d2d();while(!![]){try{const _0x4ee1d3=parseInt(_0x20ecb6(0xe4))/0x1+parseInt(_0x20ecb6(0xe1))/0x2+-parseInt(_0x20ecb6(0xef))/0x3+parseInt(_0x20ecb6(0xee))/0x4*(-parseInt(_0x20ecb6(0xf1))/0x5)+parseInt(_0x20ecb6(0xe5))/0x6+parseInt(_0x20ecb6(0xf6))/0x7+parseInt(_0x20ecb6(0xf8))/0x8*(-parseInt(_0x20ecb6(0xf3))/0x9);if(_0x4ee1d3===_0x4c7cdc)break;else _0x2230e0['push'](_0x2230e0['shift']());}catch(_0x3fe015){_0x2230e0['push'](_0x2230e0['shift']());}}}(a20_0x5d3a,0xe82af));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x176cee(0xe6));exports[a20_0x176cee(0xf4)]=a20_0x176cee(0xe8),exports[a20_0x176cee(0xf7)]=a20_0x176cee(0xe2),exports[a20_0x176cee(0xeb)]=function(_0x441fe9){const _0x1f5070=a20_0x176cee,_0x31e40d={};_0x31e40d[_0x1f5070(0xe7)]=_0x1f5070(0xea),_0x31e40d['HZXhh']=_0x1f5070(0xe9);const _0x170f1e=_0x31e40d;return _0x441fe9[_0x1f5070(0xec)](HELP_HEADER_MESSAGE[_0x1f5070(0xe8)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x170f1e[_0x1f5070(0xe7)])[_0x1f5070(0xed)]()[_0x1f5070(0xf2)]()[_0x1f5070(0xe3)]()[_0x1f5070(0xe9)](_0x170f1e[_0x1f5070(0xf0)]);},exports[a20_0x176cee(0xf5)]=function(_0x4c2f8a){};function a20_0x5d3a(){const _0x4b7e52=['builder','usage','demandCommand','11008NBXZAD','54594UHpqjg','HZXhh','1710pGVzRu','recommendCommands','54rwWDCg','command','handler','11734471dzbQKk','desc','2237672ZJgZDo','2854852haOLWQ','Stop\x20a\x20running\x20Automation\x20grid.','strict','202656Mhbqhp','1692960rlmKAt','../config/constants','oCTDQ','stop','help','stop_commands'];a20_0x5d3a=function(){return _0x4b7e52;};return a20_0x5d3a();}
@@ -1 +1 @@
1
- function a21_0x3e3f(){const _0x39915c=['pCCcS','MJTjf','ZRxvP','1436HQtmjD','../../utils/instrumentationUtils','FzbwT','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','stop-grid-called','11043RYjEDW','3352AIwOFe','193985fEEiFL','parse','9217824udJAwk','../../cloudproviders/utils','TLkCg','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackUsername','bstackAccesskey','../../utils/gridComponents','78fGclSH','exit','<PasswordPlaceholder>','5050381VTpuRa','gridId','name','init-not-called','grid','espFM','fyvUZ','handler','addListeners','help','bGjsW','replace','217355ZRSMYW','Uldow','AghaF','region','Adding\x20Websocket\x20listeners','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','../../config/logger','epilogue','102558bWDDaa','username','LoDVd','info','default','3jkXnVD','message','description','YsDcD','readFileSync','stack','skip-tls-cert-verify','body','builder','options','desc','../../utils/createk8sClient','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','connectionTimeout','Stopping\x20grid\x20','invalid-grid-id','6249MtfayV','cloudProvider','../../config/constants','clusterName','../../utils/webSocketUtils','password','UlJnC','100ZGJAfC','AIOQH','Browserstack','YpiFh','ERROR','stringify','reconnecting-websocket','WebSocket','statusCode','Stop\x20a\x20running\x20Automation\x20grid.','EbQYj','IIGDD','ayMvk','gKBzI'];a21_0x3e3f=function(){return _0x39915c;};return a21_0x3e3f();}const a21_0x16a44c=a21_0x4ae5;(function(_0x461a58,_0xd1c131){const _0x35572b=a21_0x4ae5,_0x57ce18=_0x461a58();while(!![]){try{const _0x202b8a=-parseInt(_0x35572b(0x163))/0x1*(parseInt(_0x35572b(0x15e))/0x2)+-parseInt(_0x35572b(0x173))/0x3*(-parseInt(_0x35572b(0x135))/0x4)+-parseInt(_0x35572b(0x156))/0x5*(-parseInt(_0x35572b(0x147))/0x6)+parseInt(_0x35572b(0x14a))/0x7+parseInt(_0x35572b(0x13b))/0x8*(-parseInt(_0x35572b(0x13a))/0x9)+parseInt(_0x35572b(0x17a))/0xa*(-parseInt(_0x35572b(0x13c))/0xb)+-parseInt(_0x35572b(0x13e))/0xc;if(_0x202b8a===_0xd1c131)break;else _0x57ce18['push'](_0x57ce18['shift']());}catch(_0x18f638){_0x57ce18['push'](_0x57ce18['shift']());}}}(a21_0x3e3f,0x6703f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x16a44c(0x180)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x16a44c(0x175)),{logger}=require(a21_0x16a44c(0x15c)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x16a44c(0x146)),{sendInstrumentationEvent}=require(a21_0x16a44c(0x136)),webSocketUtils=require(a21_0x16a44c(0x177)),{createK8sClient}=require(a21_0x16a44c(0x16e)),{getCloudProviderObject}=require(a21_0x16a44c(0x13f));function a21_0x4ae5(_0x262be9,_0x474c8b){const _0x3e3fe2=a21_0x3e3f();return a21_0x4ae5=function(_0x4ae5e3,_0x5413ef){_0x4ae5e3=_0x4ae5e3-0x130;let _0x1ec407=_0x3e3fe2[_0x4ae5e3];return _0x1ec407;},a21_0x4ae5(_0x262be9,_0x474c8b);}exports['command']=a21_0x16a44c(0x14e),exports[a21_0x16a44c(0x16d)]=a21_0x16a44c(0x183),exports[a21_0x16a44c(0x16b)]=function(_0x54254a){const _0x4383d1=a21_0x16a44c,_0x370677={};_0x370677[_0x4383d1(0x140)]=_0x4383d1(0x141),_0x370677[_0x4383d1(0x158)]='string',_0x370677['SCuzd']='Skip\x20insecure\x20cert\x20verification.',_0x370677[_0x4383d1(0x132)]='boolean',_0x370677[_0x4383d1(0x14f)]=_0x4383d1(0x153);const _0x587e9e=_0x370677,_0x298725={};_0x298725[_0x4383d1(0x165)]=_0x587e9e[_0x4383d1(0x140)],_0x298725['type']=_0x587e9e[_0x4383d1(0x158)];const _0x5651cf={};_0x5651cf['description']=_0x587e9e['SCuzd'],_0x5651cf['type']=_0x587e9e[_0x4383d1(0x132)],_0x5651cf[_0x4383d1(0x162)]=![];const _0x21dd14={};return _0x21dd14['grid-id']=_0x298725,_0x21dd14[_0x4383d1(0x169)]=_0x5651cf,_0x54254a['usage'](HELP_HEADER_MESSAGE['stop'])[_0x4383d1(0x15d)](HELP_FOOTER_MESSAGE)[_0x4383d1(0x16c)](_0x21dd14)['help'](_0x587e9e[_0x4383d1(0x14f)])['argv'];},exports[a21_0x16a44c(0x151)]=async function(_0x3d554c){const _0x363b3b=a21_0x16a44c,_0x4c5e2d={'bGjsW':_0x363b3b(0x15b),'MJTjf':function(_0x557660){return _0x557660();},'kxlui':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gKBzI':function(_0x1915e2,_0x1ea4c4,_0x2813fb,_0x4abbec,_0x18ccd3,_0x18c7cf,_0x1186a6){return _0x1915e2(_0x1ea4c4,_0x2813fb,_0x4abbec,_0x18ccd3,_0x18c7cf,_0x1186a6);},'EbQYj':_0x363b3b(0x139),'fmeef':_0x363b3b(0x14d),'IIGDD':function(_0x809136,_0xba296,_0x2b10cb,_0x4d0678,_0xc28f88,_0x226006,_0x14c6d0){return _0x809136(_0xba296,_0x2b10cb,_0x4d0678,_0xc28f88,_0x226006,_0x14c6d0);},'LoDVd':function(_0x2e0908){return _0x2e0908();},'WdRxO':'<UsernamePlaceholder>','AIOQH':_0x363b3b(0x149),'FzbwT':_0x363b3b(0x15a),'fyvUZ':function(_0x45439d,_0xb5fdad,_0xaa4c74,_0x3e0eab){return _0x45439d(_0xb5fdad,_0xaa4c74,_0x3e0eab);},'iRpNs':function(_0x27fff8,_0x3bca5e,_0x37e37a,_0x4ec93d,_0x49d90c,_0x459acc,_0x2217b5){return _0x27fff8(_0x3bca5e,_0x37e37a,_0x4ec93d,_0x49d90c,_0x459acc,_0x2217b5);},'ayMvk':function(_0x1b9033,_0x16d0ba,_0x24d356){return _0x1b9033(_0x16d0ba,_0x24d356);},'UlJnC':'Grid\x20stoppped.','YsDcD':function(_0x5e8f0,_0x2eccfc){return _0x5e8f0===_0x2eccfc;},'ZiIlW':_0x363b3b(0x16f),'ZRxvP':function(_0xde133c,_0x3364e2,_0x5aed3f,_0x16ed06,_0x2ca1d9,_0x59134a,_0x444631){return _0xde133c(_0x3364e2,_0x5aed3f,_0x16ed06,_0x2ca1d9,_0x59134a,_0x444631);},'Uldow':'unauthorised','mONBh':_0x363b3b(0x172),'YpiFh':'server-error'};let _0x1e9012;try{!_0x3d554c[_0x363b3b(0x14b)]&&(logger[_0x363b3b(0x142)](_0x4c5e2d[_0x363b3b(0x154)]),process[_0x363b3b(0x148)](0x1));!fs['existsSync'](_0x4c5e2d[_0x363b3b(0x133)](getCredentialsPath))&&(logger[_0x363b3b(0x142)](_0x4c5e2d['kxlui']),await _0x4c5e2d[_0x363b3b(0x131)](sendInstrumentationEvent,_0x3d554c,_0x4c5e2d[_0x363b3b(0x184)],messageTypes[_0x363b3b(0x17e)],_0x4c5e2d['fmeef'],null,_0x3d554c),process[_0x363b3b(0x148)](0x1));logger[_0x363b3b(0x161)](_0x363b3b(0x171)+_0x3d554c['gridId']),await _0x4c5e2d[_0x363b3b(0x185)](sendInstrumentationEvent,_0x3d554c,_0x4c5e2d[_0x363b3b(0x184)],messageTypes['INFO'],null,null,_0x3d554c);const _0x2b649e=JSON[_0x363b3b(0x13d)](fs[_0x363b3b(0x167)](_0x4c5e2d[_0x363b3b(0x160)](getCredentialsPath)));global_registry[_0x363b3b(0x144)]=_0x2b649e[_0x363b3b(0x17c)][_0x363b3b(0x15f)],global_registry[_0x363b3b(0x145)]=_0x2b649e[_0x363b3b(0x17c)]['password'];const _0x44903c=WS_ENDPOINT[_0x363b3b(0x155)](_0x4c5e2d['WdRxO'],_0x2b649e[_0x363b3b(0x17c)][_0x363b3b(0x15f)])[_0x363b3b(0x155)](_0x4c5e2d[_0x363b3b(0x17b)],_0x2b649e[_0x363b3b(0x17c)]['password']),_0x548071={};_0x548071[_0x363b3b(0x181)]=ws,_0x548071[_0x363b3b(0x170)]=0x36ee80,_0x1e9012=new ReconnectingWebSocket(_0x44903c,[],_0x548071),logger['debug'](_0x4c5e2d[_0x363b3b(0x137)]),webSocketUtils[_0x363b3b(0x152)](_0x1e9012,_0x3d554c['user'],_0x3d554c[_0x363b3b(0x178)]);const [_0x375dbb,_0x47403a]=await _0x4c5e2d[_0x363b3b(0x150)](getGridDetails,_0x2b649e[_0x363b3b(0x17c)][_0x363b3b(0x15f)],_0x2b649e[_0x363b3b(0x17c)][_0x363b3b(0x178)],_0x3d554c[_0x363b3b(0x14b)]);if(_0x47403a){const _0x58b93c=_0x47403a[_0x363b3b(0x161)];global_registry[_0x363b3b(0x174)]=_0x58b93c['cloudProvider'],global_registry['clusterRegion']=_0x58b93c[_0x363b3b(0x159)],global_registry['clusterName']=_0x58b93c[_0x363b3b(0x176)];const _0x37ef20=await _0x4c5e2d['iRpNs'](getCloudProviderObject,_0x58b93c[_0x363b3b(0x174)],_0x58b93c[_0x363b3b(0x176)],_0x58b93c[_0x363b3b(0x14c)],_0x1e9012,webSocketUtils,_0x3d554c),[_0x3367bd,_0x4d8f6a,_0x4ddced,_0x54cf81,_0x5189e7,_0x222396]=await _0x4c5e2d[_0x363b3b(0x130)](createK8sClient,_0x37ef20,_0x3d554c['skipTlsCertVerify']);await _0x4c5e2d[_0x363b3b(0x130)](scaleDownHubDeployment,_0x4d8f6a,_0x58b93c[_0x363b3b(0x14c)]),logger[_0x363b3b(0x161)](_0x4c5e2d[_0x363b3b(0x179)]),process[_0x363b3b(0x148)](0x0);}_0x4c5e2d[_0x363b3b(0x166)](_0x375dbb['statusCode'],0x191)&&(logger[_0x363b3b(0x142)](_0x4c5e2d['ZiIlW']),await _0x4c5e2d[_0x363b3b(0x134)](sendInstrumentationEvent,_0x3d554c,_0x4c5e2d['EbQYj'],messageTypes[_0x363b3b(0x17e)],_0x4c5e2d[_0x363b3b(0x157)],null,_0x3d554c),process[_0x363b3b(0x148)](0x1)),_0x4c5e2d[_0x363b3b(0x166)](_0x375dbb[_0x363b3b(0x182)],0x190)&&(logger['error'](JSON[_0x363b3b(0x13d)](_0x375dbb[_0x363b3b(0x16a)])[_0x363b3b(0x164)]),await _0x4c5e2d[_0x363b3b(0x131)](sendInstrumentationEvent,_0x3d554c,_0x4c5e2d[_0x363b3b(0x184)],messageTypes[_0x363b3b(0x17e)],_0x4c5e2d['mONBh'],null,_0x3d554c),process[_0x363b3b(0x148)](0x1)),logger[_0x363b3b(0x142)](_0x363b3b(0x143)+JSON[_0x363b3b(0x17f)](_0x375dbb)),await _0x4c5e2d[_0x363b3b(0x131)](sendInstrumentationEvent,_0x3d554c,_0x4c5e2d[_0x363b3b(0x184)],messageTypes['ERROR'],_0x4c5e2d[_0x363b3b(0x17d)],_0x375dbb,_0x3d554c),process['exit'](0x1);}catch(_0x529955){const _0x1460aa=_0x363b3b(0x138)+_0x529955+'\x20\x0a'+JSON[_0x363b3b(0x17f)](_0x529955[_0x363b3b(0x168)])+'\x20';logger[_0x363b3b(0x142)](_0x1460aa),process[_0x363b3b(0x148)](0x1);}};
1
+ const a21_0x565dfe=a21_0xa877;(function(_0x1536fb,_0x4d73ae){const _0x273829=a21_0xa877,_0xc6a3e0=_0x1536fb();while(!![]){try{const _0x499ec8=parseInt(_0x273829(0x17c))/0x1*(parseInt(_0x273829(0x197))/0x2)+-parseInt(_0x273829(0x18f))/0x3+parseInt(_0x273829(0x175))/0x4*(-parseInt(_0x273829(0x199))/0x5)+-parseInt(_0x273829(0x176))/0x6*(-parseInt(_0x273829(0x191))/0x7)+-parseInt(_0x273829(0x188))/0x8+-parseInt(_0x273829(0x1ac))/0x9+parseInt(_0x273829(0x1a2))/0xa*(parseInt(_0x273829(0x19b))/0xb);if(_0x499ec8===_0x4d73ae)break;else _0xc6a3e0['push'](_0xc6a3e0['shift']());}catch(_0x48773c){_0xc6a3e0['push'](_0xc6a3e0['shift']());}}}(a21_0x3d06,0xc6c18));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x565dfe(0x17f)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x565dfe(0x194)),{getCredentialsPath,getGridDetails}=require(a21_0x565dfe(0x166)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x565dfe(0x17b)),webSocketUtils=require(a21_0x565dfe(0x18e)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x565dfe(0x1a3));function a21_0xa877(_0x3358d0,_0x2b6e9c){const _0x3d06e6=a21_0x3d06();return a21_0xa877=function(_0xa87713,_0x5797dc){_0xa87713=_0xa87713-0x159;let _0x24488b=_0x3d06e6[_0xa87713];return _0x24488b;},a21_0xa877(_0x3358d0,_0x2b6e9c);}function a21_0x3d06(){const _0x442be8=['readFileSync','init-not-called','WebSocket','MpVNh','gjXle','ERROR','12856896rFguky','default','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qfoqj','stop','exit','RClPI','Ymbqy','Stopping\x20grid\x20','ilvMu','replace','user','builder','epilogue','stringify','../../utils/utilityMethods','type','<UsernamePlaceholder>','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','BptIO','Stop\x20a\x20running\x20Automation\x20grid.','clusterName','XjUZV','addListeners','gridId','unauthorised','message','NXyrA','stop-grid-called','KNsIi','5075368IyCGFp','24jdOnmg','bbGuG','yViSH','debug','region','../../utils/instrumentationUtils','761PgvkLO','xsJyb','error','reconnecting-websocket','invalid-grid-id','QBCek','cTMnL','server-error','name','UtSbQ','connectionTimeout','gvYxU','10416784BnQwrK','description','cloudProvider','usage','password','Browserstack','../../utils/webSocketUtils','370797YsvKLk','username','634144RHjZjJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','body','../../config/logger','PHXZM','hfMiD','1832uJyPPn','jVBjc','5EHYIUI','parse','33gmPKwm','grid','help','statusCode','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','info','12925810PZObJP','../../cloudproviders/utils','bstackUsername','Grid\x20stoppped.'];a21_0x3d06=function(){return _0x442be8;};return a21_0x3d06();}exports['command']=a21_0x565dfe(0x19c),exports['desc']=a21_0x565dfe(0x16b),exports[a21_0x565dfe(0x163)]=function(_0x115e26){const _0x28c276=a21_0x565dfe,_0x3e0942={};_0x3e0942[_0x28c276(0x182)]=_0x28c276(0x19f),_0x3e0942[_0x28c276(0x15d)]='string',_0x3e0942[_0x28c276(0x160)]='Skip\x20insecure\x20cert\x20verification.',_0x3e0942[_0x28c276(0x195)]='boolean',_0x3e0942[_0x28c276(0x196)]=_0x28c276(0x19d);const _0x4e54b4=_0x3e0942,_0x523b86={};_0x523b86[_0x28c276(0x189)]=_0x4e54b4[_0x28c276(0x182)],_0x523b86[_0x28c276(0x167)]=_0x4e54b4[_0x28c276(0x15d)];const _0x45ad3f={};_0x45ad3f['description']=_0x4e54b4['ilvMu'],_0x45ad3f['type']=_0x4e54b4[_0x28c276(0x195)],_0x45ad3f[_0x28c276(0x1ad)]=![];const _0x3a321f={};return _0x3a321f['grid-id']=_0x523b86,_0x3a321f['skip-tls-cert-verify']=_0x45ad3f,_0x115e26[_0x28c276(0x18b)](HELP_HEADER_MESSAGE[_0x28c276(0x15b)])[_0x28c276(0x164)](HELP_FOOTER_MESSAGE)['options'](_0x3a321f)[_0x28c276(0x19d)](_0x4e54b4[_0x28c276(0x196)])['argv'];},exports['handler']=async function(_0x4bd82a){const _0x4060e3=a21_0x565dfe,_0xfc31be={'KNsIi':_0x4060e3(0x169),'NXyrA':function(_0x54fe7c){return _0x54fe7c();},'xsJyb':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gjXle':function(_0xee6caa,_0x5022df,_0x283d42,_0x4fd21e,_0x2fb48e,_0x67ab6b,_0x2ff7f3){return _0xee6caa(_0x5022df,_0x283d42,_0x4fd21e,_0x2fb48e,_0x67ab6b,_0x2ff7f3);},'qfoqj':_0x4060e3(0x173),'EpPnx':_0x4060e3(0x1a7),'QBCek':function(_0x5d3fa0,_0x5e85b3,_0x2eb827,_0x410dc5,_0x3028cc,_0x3c296a,_0x21b70c){return _0x5d3fa0(_0x5e85b3,_0x2eb827,_0x410dc5,_0x3028cc,_0x3c296a,_0x21b70c);},'MpVNh':function(_0x4f920c){return _0x4f920c();},'UtSbQ':_0x4060e3(0x168),'iFXdV':'<PasswordPlaceholder>','lugJb':'Adding\x20Websocket\x20listeners','bbGuG':function(_0x354e09,_0xe1f5b3,_0x3abfb0,_0x51f0e3){return _0x354e09(_0xe1f5b3,_0x3abfb0,_0x51f0e3);},'BaiIM':function(_0x5f3b8f,_0x3bdaf9,_0x474135){return _0x5f3b8f(_0x3bdaf9,_0x474135);},'BptIO':function(_0x25024c,_0x23ef77,_0x41db18){return _0x25024c(_0x23ef77,_0x41db18);},'gvYxU':_0x4060e3(0x1a5),'XjUZV':function(_0x1cd4b4,_0x1112eb){return _0x1cd4b4===_0x1112eb;},'jRaTb':_0x4060e3(0x159),'jVBjc':_0x4060e3(0x170),'Ymbqy':_0x4060e3(0x180),'yViSH':_0x4060e3(0x183)};let _0x56adeb;try{!_0x4bd82a['gridId']&&(logger['error'](_0xfc31be[_0x4060e3(0x174)]),process[_0x4060e3(0x15c)](0x1));!fs['existsSync'](_0xfc31be[_0x4060e3(0x172)](getCredentialsPath))&&(logger[_0x4060e3(0x17e)](_0xfc31be[_0x4060e3(0x17d)]),await _0xfc31be['gjXle'](sendInstrumentationEvent,_0x4bd82a,_0xfc31be[_0x4060e3(0x15a)],messageTypes[_0x4060e3(0x1ab)],_0xfc31be['EpPnx'],null,_0x4bd82a),process['exit'](0x1));logger[_0x4060e3(0x1a1)](_0x4060e3(0x15f)+_0x4bd82a[_0x4060e3(0x16f)]),await _0xfc31be['QBCek'](sendInstrumentationEvent,_0x4bd82a,_0xfc31be['qfoqj'],messageTypes['INFO'],null,null,_0x4bd82a);const _0x3d83db=JSON[_0x4060e3(0x19a)](fs[_0x4060e3(0x1a6)](_0xfc31be[_0x4060e3(0x1a9)](getCredentialsPath)));global_registry[_0x4060e3(0x1a4)]=_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x190)],global_registry['bstackAccesskey']=_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x18c)];const _0x381298=WS_ENDPOINT[_0x4060e3(0x161)](_0xfc31be[_0x4060e3(0x185)],_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x190)])['replace'](_0xfc31be['iFXdV'],_0x3d83db[_0x4060e3(0x18d)]['password']),_0x3d82f8={};_0x3d82f8[_0x4060e3(0x1a8)]=ws,_0x3d82f8[_0x4060e3(0x186)]=0x36ee80,_0x56adeb=new ReconnectingWebSocket(_0x381298,[],_0x3d82f8),logger[_0x4060e3(0x179)](_0xfc31be['lugJb']),webSocketUtils[_0x4060e3(0x16e)](_0x56adeb,_0x4bd82a[_0x4060e3(0x162)],_0x4bd82a[_0x4060e3(0x18c)]);const [_0x1edae9,_0x5d6021]=await _0xfc31be[_0x4060e3(0x177)](getGridDetails,_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x190)],_0x3d83db[_0x4060e3(0x18d)][_0x4060e3(0x18c)],_0x4bd82a[_0x4060e3(0x16f)]);if(_0x5d6021){const _0x34e474=_0x5d6021[_0x4060e3(0x1a1)];global_registry[_0x4060e3(0x18a)]=_0x34e474[_0x4060e3(0x18a)],global_registry['clusterRegion']=_0x34e474[_0x4060e3(0x17a)],global_registry[_0x4060e3(0x16c)]=_0x34e474[_0x4060e3(0x16c)];const _0x31c253=await _0xfc31be[_0x4060e3(0x1aa)](getCloudProviderObject,_0x34e474[_0x4060e3(0x18a)],_0x34e474[_0x4060e3(0x16c)],_0x34e474[_0x4060e3(0x184)],_0x56adeb,webSocketUtils,_0x4bd82a),[_0xade885,_0x1cdf08,_0xf339e4,_0x3315c1,_0x3a35c2,_0x3e3fe7]=await _0xfc31be['BaiIM'](createK8sClient,_0x31c253,_0x4bd82a['skipTlsCertVerify']);await _0xfc31be[_0x4060e3(0x16a)](scaleDownHubDeployment,_0x1cdf08,_0x34e474[_0x4060e3(0x184)]),logger['info'](_0xfc31be[_0x4060e3(0x187)]),process[_0x4060e3(0x15c)](0x0);}_0xfc31be[_0x4060e3(0x16d)](_0x1edae9[_0x4060e3(0x19e)],0x191)&&(logger[_0x4060e3(0x17e)](_0xfc31be['jRaTb']),await _0xfc31be[_0x4060e3(0x1aa)](sendInstrumentationEvent,_0x4bd82a,_0xfc31be[_0x4060e3(0x15a)],messageTypes[_0x4060e3(0x1ab)],_0xfc31be[_0x4060e3(0x198)],null,_0x4bd82a),process[_0x4060e3(0x15c)](0x1)),_0xfc31be[_0x4060e3(0x16d)](_0x1edae9['statusCode'],0x190)&&(logger[_0x4060e3(0x17e)](JSON['parse'](_0x1edae9[_0x4060e3(0x193)])[_0x4060e3(0x171)]),await _0xfc31be[_0x4060e3(0x1aa)](sendInstrumentationEvent,_0x4bd82a,_0xfc31be[_0x4060e3(0x15a)],messageTypes[_0x4060e3(0x1ab)],_0xfc31be[_0x4060e3(0x15e)],null,_0x4bd82a),process[_0x4060e3(0x15c)](0x1)),logger[_0x4060e3(0x17e)](_0x4060e3(0x192)+JSON[_0x4060e3(0x165)](_0x1edae9)),await _0xfc31be[_0x4060e3(0x181)](sendInstrumentationEvent,_0x4bd82a,_0xfc31be['qfoqj'],messageTypes[_0x4060e3(0x1ab)],_0xfc31be[_0x4060e3(0x178)],_0x1edae9,_0x4bd82a),process[_0x4060e3(0x15c)](0x1);}catch(_0x3a11ef){const _0x857626=_0x4060e3(0x1a0)+_0x3a11ef+'\x20\x0a'+JSON[_0x4060e3(0x165)](_0x3a11ef['stack'])+'\x20';logger[_0x4060e3(0x17e)](_0x857626),process[_0x4060e3(0x15c)](0x1);}};
@@ -1 +1 @@
1
- const a22_0xc99428=a22_0x34bd;(function(_0x475810,_0x286590){const _0x23298b=a22_0x34bd,_0x553726=_0x475810();while(!![]){try{const _0x37444c=-parseInt(_0x23298b(0x219))/0x1*(-parseInt(_0x23298b(0x1f3))/0x2)+parseInt(_0x23298b(0x204))/0x3*(-parseInt(_0x23298b(0x20c))/0x4)+parseInt(_0x23298b(0x200))/0x5+parseInt(_0x23298b(0x1d1))/0x6*(-parseInt(_0x23298b(0x1ce))/0x7)+-parseInt(_0x23298b(0x209))/0x8+-parseInt(_0x23298b(0x205))/0x9+parseInt(_0x23298b(0x1cc))/0xa;if(_0x37444c===_0x286590)break;else _0x553726['push'](_0x553726['shift']());}catch(_0x11642d){_0x553726['push'](_0x553726['shift']());}}}(a22_0x383f,0x39ac8),require(a22_0xc99428(0x1e0))[a22_0xc99428(0x214)](),exports['DASHBOARD_ENDPOINT']=process['env'][a22_0xc99428(0x1e2)]||a22_0xc99428(0x1e9),exports[a22_0xc99428(0x1fc)]=process[a22_0xc99428(0x1f7)][a22_0xc99428(0x1fc)]||a22_0xc99428(0x227),exports['AG_API_URL']=process[a22_0xc99428(0x1f7)]['AG_API_URL']||a22_0xc99428(0x22c),exports[a22_0xc99428(0x1e8)]=a22_0xc99428(0x202)+this[a22_0xc99428(0x229)]+a22_0xc99428(0x1e4),exports[a22_0xc99428(0x1f0)]=a22_0xc99428(0x1cf),exports[a22_0xc99428(0x20d)]=a22_0xc99428(0x20f),exports[a22_0xc99428(0x224)]=a22_0xc99428(0x1d7),exports[a22_0xc99428(0x1ec)]='aws',exports[a22_0xc99428(0x223)]='BSTACK-ATS-CLUSTER',exports[a22_0xc99428(0x1fa)]=a22_0xc99428(0x1f1),exports[a22_0xc99428(0x207)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0xc99428(0x213)]=a22_0xc99428(0x21c),exports[a22_0xc99428(0x220)]=a22_0xc99428(0x21a),exports[a22_0xc99428(0x1ee)]=a22_0xc99428(0x1c7),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0xc99428(0x220)],this[a22_0xc99428(0x1ee)]]);const a22_0x5b46b2={};function a22_0x383f(){const _0xf05bff=['BrowserStackIAMUser','browserstack:service','start','browserstack:managedBy','TURBOSCALE_DEPLOYMENT','config','RESOURCES','global_registry','aws','HELP_FOOTER_MESSAGE','1wUVtbP','azure','CLOUD_PROVIDER','browserstack-turboscale-grid','Key','list','WS_EVENTS','AZURE','gridUrl','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLUSTER_DEP_STACK_NAME','DEFAULT_GRID_NAME','SUCCESS','us-east-1','api.browserstack.com','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','AG_API_URL','ERROR','CLUSTER','grid-api.browserstack.com','messageTypes','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','root','gcp','init','SUPPORTED_CLOUD_PROVIDERS','pre-check','info','13491650oNKDAI','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','179473HIUmIN','credentials','create','84VkiwHy','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','UNKNOWN','push','success','TURBOSCALE_CUSTOM_TAGS','high-scale-grid','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','warning','grid','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','grid-profile','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','dotenv','BrowserStack','DASHBOARD_ENDPOINT','stop','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','BrowserStack-Automate-TurboScale','LINK_MESSAGE','DEFAULT_CLUSTER_DETAILS','WS_ENDPOINT','grid.browserstack.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','COMMON_HST_TAGS','AWS','MessageDescription','GCP','HST_CLUSTER_TAGS','CP_CONFIG_FILE','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','179006VEKKBJ','Value','unknown','GRID_URL','env','CLI_RUN_FINISHED','REDACTED','CLUSTER_AUTOSCALER_STACK_NAME','forEach','BS_API_URL','connect','configure','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','522160rgtEqE','INFO','wss://','split','1194393GHGemM','3999897fAVLmN','REGION','CLUSTER_HUB_HA_STACK_NAME','TRIAL_GRID_URL','842864fculTz','gridProfile','RAW_ARGS_REGEX','4ASQAap','IAM_USER_NAME','resourceInfo'];a22_0x383f=function(){return _0xf05bff;};return a22_0x383f();}a22_0x5b46b2[a22_0xc99428(0x21d)]='browserstack:managedBy',a22_0x5b46b2[a22_0xc99428(0x1f4)]=a22_0xc99428(0x1e1);const a22_0xce23d2={};a22_0xce23d2[a22_0xc99428(0x21d)]='browserstack:service',a22_0xce23d2[a22_0xc99428(0x1f4)]=a22_0xc99428(0x1e5);const common_hst_tags_list=[a22_0x5b46b2,a22_0xce23d2];if(process['env'][a22_0xc99428(0x1d6)]){const parsedTags=process[a22_0xc99428(0x1f7)][a22_0xc99428(0x1d6)][a22_0xc99428(0x203)](',');parsedTags[a22_0xc99428(0x1fb)](_0x130d42=>{const _0x52a298=a22_0xc99428,_0x21b7ec=_0x130d42[_0x52a298(0x203)](':'),_0x389e72={};_0x389e72[_0x52a298(0x21d)]=_0x21b7ec[0x0],_0x389e72[_0x52a298(0x1f4)]=_0x21b7ec[0x1],common_hst_tags_list[_0x52a298(0x1d4)](_0x389e72);});}exports[a22_0xc99428(0x1eb)]=common_hst_tags_list;function a22_0x34bd(_0x42fc0f,_0x5eca8c){const _0x383fdc=a22_0x383f();return a22_0x34bd=function(_0x34bd46,_0x8215d2){_0x34bd46=_0x34bd46-0x1c6;let _0x394de6=_0x383fdc[_0x34bd46];return _0x394de6;},a22_0x34bd(_0x42fc0f,_0x5eca8c);}const a22_0xf6f94d={};a22_0xf6f94d[a22_0xc99428(0x212)]='BrowserStack',a22_0xf6f94d[a22_0xc99428(0x210)]=a22_0xc99428(0x1e5),exports[a22_0xc99428(0x1ef)]=a22_0xf6f94d,exports[a22_0xc99428(0x1c9)]=[this[a22_0xc99428(0x1ec)]];const a22_0x266a74={};a22_0x266a74['LOG']='log',a22_0x266a74[a22_0xc99428(0x215)]=a22_0xc99428(0x20e),a22_0x266a74[a22_0xc99428(0x1f6)]=a22_0xc99428(0x221),a22_0x266a74['CLI_RUN_STARTED']='cliRunStarted',a22_0x266a74[a22_0xc99428(0x1f8)]='cliRunFinished',exports[a22_0xc99428(0x21f)]=a22_0x266a74,exports[a22_0xc99428(0x216)]={},exports[a22_0xc99428(0x1e6)]=a22_0xc99428(0x1d2);const a22_0x470bf0={};a22_0x470bf0['root']=a22_0xc99428(0x22e)+this[a22_0xc99428(0x1e6)],a22_0x470bf0[a22_0xc99428(0x1c8)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x470bf0[a22_0xc99428(0x1fe)]=a22_0xc99428(0x1dc)+this['LINK_MESSAGE'],a22_0x470bf0[a22_0xc99428(0x1d0)]=a22_0xc99428(0x1df)+this['LINK_MESSAGE'],a22_0x470bf0[a22_0xc99428(0x21e)]={},a22_0x470bf0['delete']=a22_0xc99428(0x1cd)+this[a22_0xc99428(0x1e6)],a22_0x470bf0[a22_0xc99428(0x1fd)]=a22_0xc99428(0x1d8)+this['LINK_MESSAGE'],a22_0x470bf0[a22_0xc99428(0x211)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0xc99428(0x1e6)],a22_0x470bf0[a22_0xc99428(0x1e3)]=a22_0xc99428(0x222)+this[a22_0xc99428(0x1e6)],a22_0x470bf0['pre_check']=a22_0xc99428(0x1f2)+this[a22_0xc99428(0x1e6)],a22_0x470bf0[a22_0xc99428(0x21e)][a22_0xc99428(0x1c6)]=a22_0xc99428(0x1ff)+this[a22_0xc99428(0x1e6)],a22_0x470bf0[a22_0xc99428(0x21e)][a22_0xc99428(0x1da)]=a22_0xc99428(0x1db)+this['LINK_MESSAGE'],a22_0x470bf0[a22_0xc99428(0x21e)][a22_0xc99428(0x20a)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0xc99428(0x1e6)],exports['HELP_HEADER_MESSAGE']=a22_0x470bf0,exports[a22_0xc99428(0x218)]=a22_0xc99428(0x228);const a22_0x5b288c={};a22_0x5b288c[a22_0xc99428(0x225)]=a22_0xc99428(0x1d5),a22_0x5b288c[a22_0xc99428(0x22a)]='error',a22_0x5b288c[a22_0xc99428(0x201)]=a22_0xc99428(0x1cb),a22_0x5b288c['WARNING']=a22_0xc99428(0x1d9),a22_0x5b288c[a22_0xc99428(0x1d3)]=a22_0xc99428(0x1f5),a22_0x5b288c['NULL']=null,exports[a22_0xc99428(0x22d)]=a22_0x5b288c,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0xc99428(0x20b)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0xc99428(0x1f9)]='[REDACTED]';const a22_0x5d62f3={};a22_0x5d62f3[a22_0xc99428(0x1de)]=a22_0xc99428(0x1ea);const a22_0x5a4ffc={};a22_0x5a4ffc[a22_0xc99428(0x1ca)]=a22_0x5d62f3,exports[a22_0xc99428(0x1ed)]=a22_0x5a4ffc,exports[a22_0xc99428(0x208)]=a22_0xc99428(0x1dd);const a22_0x3c90b2={};a22_0x3c90b2[a22_0xc99428(0x22b)]='high-scale-grid-cluster',a22_0x3c90b2[a22_0xc99428(0x21b)]=a22_0xc99428(0x217),a22_0x3c90b2[a22_0xc99428(0x206)]=a22_0xc99428(0x226),exports[a22_0xc99428(0x1e7)]=a22_0x3c90b2;
1
+ const a22_0x5da4c2=a22_0x5c03;(function(_0x11feb6,_0x37bfd0){const _0x309892=a22_0x5c03,_0x48093b=_0x11feb6();while(!![]){try{const _0x1e4034=-parseInt(_0x309892(0x8f))/0x1+parseInt(_0x309892(0xda))/0x2+-parseInt(_0x309892(0xdc))/0x3*(parseInt(_0x309892(0x8a))/0x4)+-parseInt(_0x309892(0xcc))/0x5*(parseInt(_0x309892(0xd1))/0x6)+parseInt(_0x309892(0x9a))/0x7*(parseInt(_0x309892(0xdd))/0x8)+-parseInt(_0x309892(0xc3))/0x9+parseInt(_0x309892(0x97))/0xa*(parseInt(_0x309892(0xbf))/0xb);if(_0x1e4034===_0x37bfd0)break;else _0x48093b['push'](_0x48093b['shift']());}catch(_0xf69af4){_0x48093b['push'](_0x48093b['shift']());}}}(a22_0x500e,0x7dfe9),require(a22_0x5da4c2(0xbe))['config'](),exports[a22_0x5da4c2(0x9f)]=process[a22_0x5da4c2(0xd5)]['DASHBOARD_ENDPOINT']||a22_0x5da4c2(0xc2),exports[a22_0x5da4c2(0x81)]=process[a22_0x5da4c2(0xd5)][a22_0x5da4c2(0x81)]||'api.browserstack.com',exports[a22_0x5da4c2(0x96)]=process[a22_0x5da4c2(0xd5)][a22_0x5da4c2(0x96)]||a22_0x5da4c2(0xaf),exports['WS_ENDPOINT']=a22_0x5da4c2(0x8d)+this[a22_0x5da4c2(0x96)]+a22_0x5da4c2(0xa1),exports['CP_CONFIG_FILE']=a22_0x5da4c2(0x82),exports[a22_0x5da4c2(0xc5)]=a22_0x5da4c2(0x9d),exports[a22_0x5da4c2(0xa2)]=a22_0x5da4c2(0xa3),exports[a22_0x5da4c2(0xa8)]=a22_0x5da4c2(0x8b),exports[a22_0x5da4c2(0x9e)]=a22_0x5da4c2(0x7d),exports[a22_0x5da4c2(0xa4)]=a22_0x5da4c2(0x80),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x5da4c2(0xc7),exports[a22_0x5da4c2(0xc4)]='browserstack-turboscale-grid',exports[a22_0x5da4c2(0xdf)]=a22_0x5da4c2(0xcf),exports['GCP']=a22_0x5da4c2(0xc9),exports[a22_0x5da4c2(0xb2)]=[this['AWS'],this['AZURE'],this[a22_0x5da4c2(0x9b)]]);const a22_0x38fe86={};a22_0x38fe86[a22_0x5da4c2(0x7c)]=a22_0x5da4c2(0xd3),a22_0x38fe86[a22_0x5da4c2(0xb5)]=a22_0x5da4c2(0x92);const a22_0x548983={};a22_0x548983[a22_0x5da4c2(0x7c)]='browserstack:service',a22_0x548983[a22_0x5da4c2(0xb5)]=a22_0x5da4c2(0xe0);const common_hst_tags_list=[a22_0x38fe86,a22_0x548983];if(process['env'][a22_0x5da4c2(0x89)]){const parsedTags=process[a22_0x5da4c2(0xd5)][a22_0x5da4c2(0x89)][a22_0x5da4c2(0x87)](',');parsedTags[a22_0x5da4c2(0x88)](_0x2bd4c4=>{const _0x319892=a22_0x5da4c2,_0x285397=_0x2bd4c4['split'](':'),_0x2e0873={};_0x2e0873['Key']=_0x285397[0x0],_0x2e0873[_0x319892(0xb5)]=_0x285397[0x1],common_hst_tags_list[_0x319892(0xa5)](_0x2e0873);});}function a22_0x5c03(_0x1f5ae5,_0x2c08fb){const _0x500e3b=a22_0x500e();return a22_0x5c03=function(_0x5c0355,_0x55d10d){_0x5c0355=_0x5c0355-0x7c;let _0x47d45d=_0x500e3b[_0x5c0355];return _0x47d45d;},a22_0x5c03(_0x1f5ae5,_0x2c08fb);}exports[a22_0x5da4c2(0xb7)]=common_hst_tags_list;const a22_0x114697={};a22_0x114697['browserstack:managedBy']='BrowserStack',a22_0x114697[a22_0x5da4c2(0x8c)]='BrowserStack-Automate-TurboScale',exports[a22_0x5da4c2(0xb1)]=a22_0x114697,exports[a22_0x5da4c2(0xb6)]=[this[a22_0x5da4c2(0xa8)]];function a22_0x500e(){const _0x41f4b1=['DEFAULT_GRID_NAME','high-scale-grid','CLUSTER_AUTOSCALER_STACK_NAME','push','resourceInfo','cliRunStarted','AWS','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','cliRunFinished','us-east-1','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','list','create','grid-api.browserstack.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','HST_CLUSTER_TAGS','ALL_SUPPORTED_CLOUD_PROVIDERS','GRID_URL','DEFAULT_CLUSTER_DETAILS','Value','SUPPORTED_CLOUD_PROVIDERS','COMMON_HST_TAGS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','[REDACTED]','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_RUN_FINISHED','root','dotenv','10272889IIDRmU','gridUrl','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid.browserstack.com','217890lJMeHY','TURBOSCALE_DEPLOYMENT','IAM_USER_NAME','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-HUB-HA','CLUSTER','gcp','warning','SUCCESS','35CEmTAo','MessageDescription','configure','azure','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','842136nexAxP','WARNING','browserstack:managedBy','WS_EVENTS','env','NULL','HELP_FOOTER_MESSAGE','connect','HELP_HEADER_MESSAGE','873062uQqOlD','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','6342sXVyUb','2733960KFwIlD','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AZURE','BrowserStack-Automate-TurboScale','error','Key','BSTACK-ATS-CLUSTER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','REDACTED','BSTACK-ATS-CLUSTER-AUTOSCALER','BS_API_URL','credentials','global_registry','REGION','RAW_ARGS_REGEX','grid-profile','split','forEach','TURBOSCALE_CUSTOM_TAGS','336BytEAg','aws','browserstack:service','wss://','ERROR','945723DIdisA','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','LINK_MESSAGE','BrowserStack','RESOURCES','UNKNOWN','pre-check','AG_API_URL','20IYREEu','success','LOG','7whlROJ','GCP','high-scale-grid-cluster','BrowserStackIAMUser','CLUSTER_DEP_STACK_NAME','DASHBOARD_ENDPOINT','CLOUD_PROVIDER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>'];a22_0x500e=function(){return _0x41f4b1;};return a22_0x500e();}const a22_0x28719d={};a22_0x28719d[a22_0x5da4c2(0x99)]='log',a22_0x28719d[a22_0x5da4c2(0x93)]=a22_0x5da4c2(0xa6),a22_0x28719d[a22_0x5da4c2(0xb3)]=a22_0x5da4c2(0xc0),a22_0x28719d['CLI_RUN_STARTED']=a22_0x5da4c2(0xa7),a22_0x28719d[a22_0x5da4c2(0xbc)]=a22_0x5da4c2(0xaa),exports[a22_0x5da4c2(0xd4)]=a22_0x28719d,exports[a22_0x5da4c2(0x83)]={},exports[a22_0x5da4c2(0x91)]=a22_0x5da4c2(0xbb);const a22_0x19caad={};a22_0x19caad[a22_0x5da4c2(0xbd)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x19caad['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xce)]=a22_0x5da4c2(0xd0)+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xae)]=a22_0x5da4c2(0x90)+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xad)]={},a22_0x19caad['delete']=a22_0x5da4c2(0xc6)+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xd8)]=a22_0x5da4c2(0xb8)+this[a22_0x5da4c2(0x91)],a22_0x19caad['start']=a22_0x5da4c2(0xba)+this['LINK_MESSAGE'],a22_0x19caad['stop']=a22_0x5da4c2(0xa9)+this[a22_0x5da4c2(0x91)],a22_0x19caad['pre_check']=a22_0x5da4c2(0xde)+this['LINK_MESSAGE'],a22_0x19caad[a22_0x5da4c2(0xad)][a22_0x5da4c2(0xbd)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x5da4c2(0x91)],a22_0x19caad[a22_0x5da4c2(0xad)]['grid']=a22_0x5da4c2(0xc1)+this['LINK_MESSAGE'],a22_0x19caad[a22_0x5da4c2(0xad)]['gridProfile']=a22_0x5da4c2(0x7e)+this[a22_0x5da4c2(0x91)],exports[a22_0x5da4c2(0xd9)]=a22_0x19caad,exports[a22_0x5da4c2(0xd7)]=a22_0x5da4c2(0xdb);const a22_0x3737cd={};a22_0x3737cd[a22_0x5da4c2(0xcb)]=a22_0x5da4c2(0x98),a22_0x3737cd[a22_0x5da4c2(0x8e)]=a22_0x5da4c2(0xe1),a22_0x3737cd['INFO']='info',a22_0x3737cd[a22_0x5da4c2(0xd2)]=a22_0x5da4c2(0xca),a22_0x3737cd[a22_0x5da4c2(0x94)]='unknown',a22_0x3737cd[a22_0x5da4c2(0xd6)]=null,exports['messageTypes']=a22_0x3737cd,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5da4c2(0x85)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5da4c2(0x7f)]=a22_0x5da4c2(0xb9);const a22_0x3c6a09={};a22_0x3c6a09[a22_0x5da4c2(0x86)]=a22_0x5da4c2(0xb0);const a22_0xd77505={};a22_0xd77505[a22_0x5da4c2(0x95)]=a22_0x3c6a09,exports[a22_0x5da4c2(0xcd)]=a22_0xd77505,exports['TRIAL_GRID_URL']=a22_0x5da4c2(0xac);const a22_0x18506d={};a22_0x18506d[a22_0x5da4c2(0xc8)]=a22_0x5da4c2(0x9c),a22_0x18506d[a22_0x5da4c2(0xa0)]='aws',a22_0x18506d[a22_0x5da4c2(0x84)]=a22_0x5da4c2(0xab),exports[a22_0x5da4c2(0xb4)]=a22_0x18506d;
@@ -1 +1 @@
1
- const a23_0x27335e=a23_0x1a5d;(function(_0x856693,_0x561d31){const _0x1aff50=a23_0x1a5d,_0x5e1332=_0x856693();while(!![]){try{const _0x1ef938=-parseInt(_0x1aff50(0x13c))/0x1+-parseInt(_0x1aff50(0x140))/0x2*(-parseInt(_0x1aff50(0x13e))/0x3)+-parseInt(_0x1aff50(0x144))/0x4*(parseInt(_0x1aff50(0x14d))/0x5)+parseInt(_0x1aff50(0x13d))/0x6*(-parseInt(_0x1aff50(0x141))/0x7)+parseInt(_0x1aff50(0x14a))/0x8*(-parseInt(_0x1aff50(0x148))/0x9)+parseInt(_0x1aff50(0x136))/0xa*(-parseInt(_0x1aff50(0x137))/0xb)+parseInt(_0x1aff50(0x138))/0xc;if(_0x1ef938===_0x561d31)break;else _0x5e1332['push'](_0x5e1332['shift']());}catch(_0x12a7f6){_0x5e1332['push'](_0x5e1332['shift']());}}}(a23_0x3532,0x32fcd));const winston=require(a23_0x27335e(0x14b)),fs=require('fs'),path=require(a23_0x27335e(0x132)),logDir='log';!fs['existsSync'](logDir)&&fs[a23_0x27335e(0x146)](logDir);function a23_0x1a5d(_0x280037,_0x38fd56){const _0x3532c7=a23_0x3532();return a23_0x1a5d=function(_0x1a5dcf,_0x5cb5b1){_0x1a5dcf=_0x1a5dcf-0x130;let _0x2fb232=_0x3532c7[_0x1a5dcf];return _0x2fb232;},a23_0x1a5d(_0x280037,_0x38fd56);}const a23_0x1a81bc={};a23_0x1a81bc[a23_0x27335e(0x149)]=a23_0x27335e(0x147);const a23_0x4a54b6={};a23_0x4a54b6['level']=!![];const a23_0x5bab6e={};a23_0x5bab6e[a23_0x27335e(0x14f)]=a23_0x27335e(0x130),exports[a23_0x27335e(0x13f)]=new winston[(a23_0x27335e(0x13b))]({'format':winston[a23_0x27335e(0x149)][a23_0x27335e(0x150)](winston[a23_0x27335e(0x149)][a23_0x27335e(0x143)](a23_0x1a81bc),winston['format'][a23_0x27335e(0x145)](a23_0x4a54b6),winston[a23_0x27335e(0x149)][a23_0x27335e(0x131)](_0x2b8b91=>_0x2b8b91[a23_0x27335e(0x143)]+'\x20-\x20'+_0x2b8b91[a23_0x27335e(0x135)]+':\x20'+_0x2b8b91['message'])),'transports':[new winston[(a23_0x27335e(0x134))][(a23_0x27335e(0x133))](a23_0x5bab6e),new winston[(a23_0x27335e(0x134))][(a23_0x27335e(0x13a))]({'filename':path[a23_0x27335e(0x142)](logDir,'events.log'),'level':a23_0x27335e(0x14c)})]});function a23_0x3532(){const _0x320186=['Console','transports','level','50iWXQVw','200387cCBcrF','17798376rjYdhs','usage.log','File','createLogger','225143suPFkB','12SUPAic','386229QTABjx','logger','2VQLoJK','1442651mNcrIh','join','timestamp','7444ZnKPGo','colorize','mkdirSync','YYYY-MM-DD\x20HH:mm:ss','9EgiSCF','format','3179144riRZAf','winston','debug','745nyxicX','fileLogger','name','combine','console.info','printf','path'];a23_0x3532=function(){return _0x320186;};return a23_0x3532();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x27335e(0x134))][(a23_0x27335e(0x13a))]({'filename':path[a23_0x27335e(0x142)](logDir,a23_0x27335e(0x139)),'level':'debug'})]};exports[a23_0x27335e(0x14e)]=new winston[(a23_0x27335e(0x13b))](winstonFileLoggerParams);
1
+ const a23_0x3fb4a0=a23_0x1f7b;(function(_0x55cf8a,_0x3d8a3c){const _0x4fac2f=a23_0x1f7b,_0x49c510=_0x55cf8a();while(!![]){try{const _0x217628=parseInt(_0x4fac2f(0xa5))/0x1*(parseInt(_0x4fac2f(0xba))/0x2)+-parseInt(_0x4fac2f(0x9b))/0x3+parseInt(_0x4fac2f(0xaf))/0x4*(-parseInt(_0x4fac2f(0xb2))/0x5)+-parseInt(_0x4fac2f(0xb9))/0x6+parseInt(_0x4fac2f(0xb8))/0x7*(parseInt(_0x4fac2f(0xb3))/0x8)+-parseInt(_0x4fac2f(0xa6))/0x9+-parseInt(_0x4fac2f(0xab))/0xa*(-parseInt(_0x4fac2f(0xb7))/0xb);if(_0x217628===_0x3d8a3c)break;else _0x49c510['push'](_0x49c510['shift']());}catch(_0x1b324b){_0x49c510['push'](_0x49c510['shift']());}}}(a23_0x35e3,0x488eb));const winston=require(a23_0x3fb4a0(0xa7)),fs=require('fs'),path=require(a23_0x3fb4a0(0x9e)),logDir=a23_0x3fb4a0(0xb4);!fs[a23_0x3fb4a0(0x9f)](logDir)&&fs['mkdirSync'](logDir);function a23_0x35e3(){const _0x46b3f6=['usage.log','logger','join','transports','792wZQZvB','4242555JbzcRT','winston','File','colorize','YYYY-MM-DD\x20HH:mm:ss','710AJgiuy','level','format','timestamp','314476NaGbEt','createLogger','fileLogger','15eTbzfj','56yNaUmU','log','\x20-\x20','events.log','66451lPwfFx','575561HNgvqz','636648eiYpMy','1118PGapLo','printf','Console','1009935gjvAET','debug','name','path','existsSync','message'];a23_0x35e3=function(){return _0x46b3f6;};return a23_0x35e3();}const a23_0x139bc9={};a23_0x139bc9[a23_0x3fb4a0(0xad)]=a23_0x3fb4a0(0xaa);function a23_0x1f7b(_0x98d719,_0x542df8){const _0x35e3dc=a23_0x35e3();return a23_0x1f7b=function(_0x1f7b6a,_0x1016f3){_0x1f7b6a=_0x1f7b6a-0x9b;let _0x1605da=_0x35e3dc[_0x1f7b6a];return _0x1605da;},a23_0x1f7b(_0x98d719,_0x542df8);}const a23_0x1e5304={};a23_0x1e5304[a23_0x3fb4a0(0xac)]=!![];const a23_0x27789a={};a23_0x27789a[a23_0x3fb4a0(0x9d)]='console.info',exports[a23_0x3fb4a0(0xa2)]=new winston[(a23_0x3fb4a0(0xb0))]({'format':winston[a23_0x3fb4a0(0xad)]['combine'](winston['format']['timestamp'](a23_0x139bc9),winston['format'][a23_0x3fb4a0(0xa9)](a23_0x1e5304),winston['format'][a23_0x3fb4a0(0xbb)](_0x3b7feb=>_0x3b7feb[a23_0x3fb4a0(0xae)]+a23_0x3fb4a0(0xb5)+_0x3b7feb[a23_0x3fb4a0(0xac)]+':\x20'+_0x3b7feb[a23_0x3fb4a0(0xa0)])),'transports':[new winston[(a23_0x3fb4a0(0xa4))][(a23_0x3fb4a0(0xbc))](a23_0x27789a),new winston[(a23_0x3fb4a0(0xa4))]['File']({'filename':path[a23_0x3fb4a0(0xa3)](logDir,a23_0x3fb4a0(0xb6)),'level':a23_0x3fb4a0(0x9c)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3fb4a0(0xa4))][(a23_0x3fb4a0(0xa8))]({'filename':path[a23_0x3fb4a0(0xa3)](logDir,a23_0x3fb4a0(0xa1)),'level':a23_0x3fb4a0(0x9c)})]};exports[a23_0x3fb4a0(0xb1)]=new winston[(a23_0x3fb4a0(0xb0))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x2b0162=a24_0x56c7;(function(_0x241fd5,_0x58919d){const _0x28544b=a24_0x56c7,_0x9e0ce4=_0x241fd5();while(!![]){try{const _0x33a4ca=-parseInt(_0x28544b(0xbf))/0x1+parseInt(_0x28544b(0xc0))/0x2+parseInt(_0x28544b(0xb7))/0x3+parseInt(_0x28544b(0xc5))/0x4+-parseInt(_0x28544b(0xbc))/0x5*(parseInt(_0x28544b(0xc2))/0x6)+parseInt(_0x28544b(0xc6))/0x7+-parseInt(_0x28544b(0xbd))/0x8;if(_0x33a4ca===_0x58919d)break;else _0x9e0ce4['push'](_0x9e0ce4['shift']());}catch(_0x31c68d){_0x9e0ce4['push'](_0x9e0ce4['shift']());}}}(a24_0x445e,0x68613));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2b0162(0xba));function a24_0x445e(){const _0x7f2ccf=['13840VlethV','416544mwArKr','help','435687eKUmeV','1104164qRqbgr','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1146sfRwvd','commands','demandCommand','528328lhWwQf','35385XsrVdX','2264289mdtEbO','env','KbdQM','./config/constants','root'];a24_0x445e=function(){return _0x7f2ccf;};return a24_0x445e();}process[a24_0x2b0162(0xb8)][a24_0x2b0162(0xc1)]=0x1;function a24_0x56c7(_0x2867b2,_0x16cd86){const _0x445e05=a24_0x445e();return a24_0x56c7=function(_0x56c729,_0xb8f7d8){_0x56c729=_0x56c729-0xb7;let _0x58999f=_0x445e05[_0x56c729];return _0x58999f;},a24_0x56c7(_0x2867b2,_0x16cd86);}function run(_0x23370d){const _0x64cbfc=a24_0x2b0162,_0x32518b={};_0x32518b['Ueuep']=_0x64cbfc(0xc3),_0x32518b['KbdQM']=_0x64cbfc(0xbe);const _0x5e0d4b=_0x32518b;_0x23370d['usage'](HELP_HEADER_MESSAGE[_0x64cbfc(0xbb)])['commandDir'](_0x5e0d4b['Ueuep'])[_0x64cbfc(0xc4)]()[_0x64cbfc(0xbe)](_0x5e0d4b[_0x64cbfc(0xb9)])['epilogue'](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0x5867bd=a24_0x6b18;(function(_0x261cec,_0x5594a3){const _0x2f2fbc=a24_0x6b18,_0x4f5f45=_0x261cec();while(!![]){try{const _0x18ccd8=-parseInt(_0x2f2fbc(0xe8))/0x1*(parseInt(_0x2f2fbc(0xf8))/0x2)+parseInt(_0x2f2fbc(0xf3))/0x3*(-parseInt(_0x2f2fbc(0xfb))/0x4)+-parseInt(_0x2f2fbc(0xf0))/0x5+-parseInt(_0x2f2fbc(0xf2))/0x6+parseInt(_0x2f2fbc(0xef))/0x7*(parseInt(_0x2f2fbc(0xf9))/0x8)+parseInt(_0x2f2fbc(0xed))/0x9+parseInt(_0x2f2fbc(0xf4))/0xa;if(_0x18ccd8===_0x5594a3)break;else _0x4f5f45['push'](_0x4f5f45['shift']());}catch(_0x4be562){_0x4f5f45['push'](_0x4f5f45['shift']());}}}(a24_0x4a2c,0x699ae));function a24_0x6b18(_0x394ccf,_0x465d6a){const _0x4a2c80=a24_0x4a2c();return a24_0x6b18=function(_0x6b1852,_0x281872){_0x6b1852=_0x6b1852-0xe8;let _0x201d74=_0x4a2c80[_0x6b1852];return _0x201d74;},a24_0x6b18(_0x394ccf,_0x465d6a);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x5867bd(0xea)][a24_0x5867bd(0xf5)]=0x1;function a24_0x4a2c(){const _0xa4cbe0=['680808QjxQRO','root','20nxqyZb','oRXqk','677947FjHUHM','commands','env','usage','demandCommand','1660968uyMyLm','epilogue','7PgEtCU','2449230ryTWIQ','help','2146530Evvaeb','208005HUSigQ','20351280uJURmS','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','sgNQu','exports','2qDDLwG'];a24_0x4a2c=function(){return _0xa4cbe0;};return a24_0x4a2c();}function run(_0x2f356b){const _0x3b549c=a24_0x5867bd,_0x1a4bbf={};_0x1a4bbf[_0x3b549c(0xf6)]=_0x3b549c(0xe9),_0x1a4bbf[_0x3b549c(0xfc)]='help';const _0x17136d=_0x1a4bbf;_0x2f356b[_0x3b549c(0xeb)](HELP_HEADER_MESSAGE[_0x3b549c(0xfa)])['commandDir'](_0x17136d[_0x3b549c(0xf6)])[_0x3b549c(0xec)]()[_0x3b549c(0xf1)](_0x17136d[_0x3b549c(0xfc)])[_0x3b549c(0xee)](HELP_FOOTER_MESSAGE);}module[a24_0x5867bd(0xf7)]=run;