browserstack-node-sdk 1.52.3 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x3fc985=a15_0x26e8;(function(_0x5f4c13,_0x3733fc){const _0x394a25=a15_0x26e8,_0x21b685=_0x5f4c13();while(!![]){try{const _0x283f83=parseInt(_0x394a25(0x105))/0x1*(-parseInt(_0x394a25(0x145))/0x2)+-parseInt(_0x394a25(0x10c))/0x3*(-parseInt(_0x394a25(0x13f))/0x4)+parseInt(_0x394a25(0x112))/0x5+-parseInt(_0x394a25(0x12b))/0x6*(-parseInt(_0x394a25(0x126))/0x7)+parseInt(_0x394a25(0x12e))/0x8*(parseInt(_0x394a25(0x10b))/0x9)+-parseInt(_0x394a25(0x127))/0xa+parseInt(_0x394a25(0xf8))/0xb*(-parseInt(_0x394a25(0x11d))/0xc);if(_0x283f83===_0x3733fc)break;else _0x21b685['push'](_0x21b685['shift']());}catch(_0x55473b){_0x21b685['push'](_0x21b685['shift']());}}}(a15_0x12cf,0x634e4));const fs=require('fs'),got=require(a15_0x3fc985(0x102)),{table}=require(a15_0x3fc985(0x146)),{v4:uuidv4}=require(a15_0x3fc985(0x110)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3fc985(0x133)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x3fc985(0x100));function a15_0x12cf(){const _0xcb8b8d=['lkrnE','body','uFvzu','uuid','JLEJI','4029970zusOHP','ULqfL','XSeWS','list-grids-called','jGhlc','ERROR','URNNF','unknown-error','EUFAw','server-error','grid-id','672piteun','eXyyf','/packages/cli/get-grids','push','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Browserstack','cluster-name','status','7emmUyj','2862260CAuHxC','forEach','description','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','2376354iqwsqt','oLIfg','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','8696WwUtlS','name','all-grids','queued','existsSync','../../config/constants','password','clusterName','lgJHC','https://','bAltb','handler','mpZzg','EIxwc','requestId','help','usage','2696inzOxs','stack','grid-name','exit','bstackAccesskey','SWwde','4FSeYFO','table','aTxlI','ftltA','running','boolean','UIzXu','command','readFileSync','239514PavHtO','bstackUsername','mVXVd','parse','srZdK','RtMmP','error','type','../../utils/instrumentationUtils','hxtYC','got','jhQby','statusCode','102754KhmuQX','stringify','unauthorised','qBqEi','TyhMo','list','3051BemgLJ','2436WrZUKb'];a15_0x12cf=function(){return _0xcb8b8d;};return a15_0x12cf();}function a15_0x26e8(_0x352fcc,_0x35a88d){const _0x12cfbb=a15_0x12cf();return a15_0x26e8=function(_0x26e8e5,_0x1f09f3){_0x26e8e5=_0x26e8e5-0xf3;let _0x269de6=_0x12cfbb[_0x26e8e5];return _0x269de6;},a15_0x26e8(_0x352fcc,_0x35a88d);}exports[a15_0x3fc985(0xf6)]='grids',exports['desc']=a15_0x3fc985(0x12d),exports['builder']=function(_0x4a8809){const _0x3e032a=a15_0x3fc985,_0x5ad174={};_0x5ad174['jhQby']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x5ad174[_0x3e032a(0x116)]=_0x3e032a(0xf4),_0x5ad174['eXyyf']=_0x3e032a(0x13d);const _0x46c2aa=_0x5ad174,_0x5470e5={};_0x5470e5[_0x3e032a(0x129)]=_0x46c2aa[_0x3e032a(0x103)],_0x5470e5[_0x3e032a(0xff)]=_0x46c2aa[_0x3e032a(0x116)];const _0xca6df3={};return _0xca6df3[_0x3e032a(0x130)]=_0x5470e5,_0x4a8809[_0x3e032a(0x13e)](HELP_HEADER_MESSAGE[_0x3e032a(0x10a)][_0x3e032a(0x121)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0xca6df3)[_0x3e032a(0x13d)](_0x46c2aa[_0x3e032a(0x11e)])['argv'];},exports[a15_0x3fc985(0x139)]=async function(_0x218d2c){const _0x2b40f0=a15_0x3fc985,_0x206583={'DhNFw':function(_0x411d66){return _0x411d66();},'oLIfg':function(_0x96954b){return _0x96954b();},'srZdK':_0x2b40f0(0x12a),'EIxwc':function(_0x571d2c,_0x46433b,_0x3f5349,_0x37a9f2,_0x1015dc,_0x309b3,_0x288796){return _0x571d2c(_0x46433b,_0x3f5349,_0x37a9f2,_0x1015dc,_0x309b3,_0x288796);},'lkrnE':_0x2b40f0(0x115),'FykNp':'init-not-called','pniom':function(_0x2e7fbd){return _0x2e7fbd();},'SWwde':'GET','mVXVd':function(_0x500da8,_0x3c6e61,_0x587902){return _0x500da8(_0x3c6e61,_0x587902);},'TyhMo':function(_0x576f38,_0x94f4d9,_0x34f8b9){return _0x576f38(_0x94f4d9,_0x34f8b9);},'EUFAw':function(_0x137a00,_0x22edb1){return _0x137a00!==_0x22edb1;},'hxtYC':function(_0x14af3d,_0x255249){return _0x14af3d===_0x255249;},'uFvzu':'\x0aFound\x20the\x20following\x20grids:\x0a','XSeWS':_0x2b40f0(0x11c),'RtMmP':_0x2b40f0(0x141),'ftltA':_0x2b40f0(0x125),'URNNF':'running','bAltb':'queued','mpZzg':_0x2b40f0(0x124),'JLEJI':function(_0x2f65a3,_0x523d38){return _0x2f65a3(_0x523d38);},'UIzXu':function(_0x3eef12,_0x597b53){return _0x3eef12===_0x597b53;},'qBqEi':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','lgJHC':function(_0x7e1210,_0x22f360,_0x576997,_0x149b86,_0x3c0189,_0x2c6ec5,_0x2b444c){return _0x7e1210(_0x22f360,_0x576997,_0x149b86,_0x3c0189,_0x2c6ec5,_0x2b444c);},'ULqfL':_0x2b40f0(0x107),'aUNpV':_0x2b40f0(0x11b),'aTxlI':_0x2b40f0(0x119)};try{global_registry[_0x2b40f0(0x13c)]=_0x206583['DhNFw'](uuidv4);!fs[_0x2b40f0(0x132)](_0x206583[_0x2b40f0(0x12c)](getCredentialsPath))&&(console[_0x2b40f0(0xfe)](_0x206583[_0x2b40f0(0xfc)]),await _0x206583[_0x2b40f0(0x13b)](sendInstrumentationEvent,_0x218d2c,_0x206583[_0x2b40f0(0x10d)],messageTypes[_0x2b40f0(0x117)],_0x206583['FykNp'],null,_0x218d2c),process[_0x2b40f0(0x142)](0x1));const _0x23e5ce=JSON[_0x2b40f0(0xfb)](fs[_0x2b40f0(0xf7)](_0x206583['pniom'](getCredentialsPath)));let _0xf930a6=_0x2b40f0(0x137)+AG_API_URL+_0x2b40f0(0x11f);_0x218d2c['allGrids']&&(_0xf930a6=_0x2b40f0(0x137)+AG_API_URL+'/packages/cli/get-all-grids');const _0x2e15a3={'method':_0x206583[_0x2b40f0(0x144)],'headers':_0x206583[_0x2b40f0(0xfa)](getAuthHeader,_0x23e5ce[_0x2b40f0(0x123)]['username'],_0x23e5ce['Browserstack'][_0x2b40f0(0x134)]),'throwHttpErrors':![]};global_registry[_0x2b40f0(0xf9)]=_0x23e5ce[_0x2b40f0(0x123)]['username'],global_registry[_0x2b40f0(0x143)]=_0x23e5ce[_0x2b40f0(0x123)][_0x2b40f0(0x134)],_0x206583[_0x2b40f0(0x13b)](sendInstrumentationEvent,_0x218d2c,_0x206583[_0x2b40f0(0x10d)],messageTypes['INFO'],null,null,_0x218d2c);const _0x103ea7=await _0x206583[_0x2b40f0(0x109)](got,_0xf930a6,_0x2e15a3);if(_0x206583['EUFAw'](_0x103ea7,null)&&_0x206583[_0x2b40f0(0x11a)](_0x103ea7,undefined)&&_0x206583[_0x2b40f0(0x101)](_0x103ea7[_0x2b40f0(0x104)],0xc8)){const _0x1295fb=JSON[_0x2b40f0(0xfb)](_0x103ea7[_0x2b40f0(0x10e)]);console['log'](_0x206583[_0x2b40f0(0x10f)]);const _0x11cc83=[];_0x11cc83[_0x2b40f0(0x120)]([_0x206583[_0x2b40f0(0x114)],_0x206583[_0x2b40f0(0xfd)],_0x206583[_0x2b40f0(0x148)],_0x206583[_0x2b40f0(0x118)],_0x206583[_0x2b40f0(0x138)],_0x206583[_0x2b40f0(0x13a)]]),_0x1295fb[_0x2b40f0(0x128)](_0x282f06=>{const _0x6fe35a=_0x2b40f0;_0x11cc83[_0x6fe35a(0x120)]([_0x282f06['id'],_0x282f06[_0x6fe35a(0x12f)],_0x282f06['status'],_0x282f06[_0x6fe35a(0xf3)],_0x282f06[_0x6fe35a(0x131)],_0x282f06[_0x6fe35a(0x135)]]);}),console['log'](_0x206583[_0x2b40f0(0x111)](table,_0x11cc83)),process[_0x2b40f0(0x142)](0x0);}_0x206583[_0x2b40f0(0xf5)](_0x103ea7[_0x2b40f0(0x104)],0x191)&&(console['error'](_0x206583[_0x2b40f0(0x108)]),await _0x206583[_0x2b40f0(0x136)](sendInstrumentationEvent,_0x218d2c,_0x206583['lkrnE'],messageTypes['ERROR'],_0x206583[_0x2b40f0(0x113)],null,_0x218d2c),process[_0x2b40f0(0x142)](0x1)),console[_0x2b40f0(0xfe)](_0x2b40f0(0x122)+JSON[_0x2b40f0(0x106)](_0x103ea7)),await _0x206583[_0x2b40f0(0x136)](sendInstrumentationEvent,_0x218d2c,_0x206583[_0x2b40f0(0x10d)],messageTypes[_0x2b40f0(0x117)],_0x206583['aUNpV'],_0x103ea7,_0x218d2c),process[_0x2b40f0(0x142)](0x1);}catch(_0x378934){console[_0x2b40f0(0xfe)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x378934[_0x2b40f0(0x140)]),await _0x206583[_0x2b40f0(0x13b)](sendInstrumentationEvent,_0x218d2c,_0x206583[_0x2b40f0(0x10d)],messageTypes[_0x2b40f0(0x117)],_0x206583[_0x2b40f0(0x147)],_0x378934,_0x218d2c),process[_0x2b40f0(0x142)](0x1);}};
1
+ const a15_0x31d068=a15_0x3442;(function(_0x383d6c,_0x1ec5e3){const _0x54cb15=a15_0x3442,_0xdd5782=_0x383d6c();while(!![]){try{const _0x517274=parseInt(_0x54cb15(0xf5))/0x1+parseInt(_0x54cb15(0xf6))/0x2+parseInt(_0x54cb15(0x125))/0x3+-parseInt(_0x54cb15(0x114))/0x4+-parseInt(_0x54cb15(0x100))/0x5+parseInt(_0x54cb15(0xe6))/0x6*(parseInt(_0x54cb15(0xd6))/0x7)+-parseInt(_0x54cb15(0xdc))/0x8;if(_0x517274===_0x1ec5e3)break;else _0xdd5782['push'](_0xdd5782['shift']());}catch(_0x151310){_0xdd5782['push'](_0xdd5782['shift']());}}}(a15_0x4a08,0xdb092));const fs=require('fs'),got=require(a15_0x31d068(0xe2)),{table}=require(a15_0x31d068(0x107)),{v4:uuidv4}=require(a15_0x31d068(0xe8)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x31d068(0xfc)),{getCredentialsPath,getAuthHeader}=require(a15_0x31d068(0x122)),{sendInstrumentationEvent}=require(a15_0x31d068(0x11c));function a15_0x3442(_0x41eba6,_0x417a64){const _0x4a087b=a15_0x4a08();return a15_0x3442=function(_0x3442a8,_0x449961){_0x3442a8=_0x3442a8-0xd1;let _0x512bd1=_0x4a087b[_0x3442a8];return _0x512bd1;},a15_0x3442(_0x41eba6,_0x417a64);}exports[a15_0x31d068(0x117)]=a15_0x31d068(0xe9),exports[a15_0x31d068(0x10f)]=a15_0x31d068(0xf3),exports[a15_0x31d068(0xef)]=function(_0x153b0a){const _0x47b23f=a15_0x31d068,_0xac5b65={};_0xac5b65['xsPsr']=_0x47b23f(0x11a),_0xac5b65[_0x47b23f(0x112)]=_0x47b23f(0xee),_0xac5b65[_0x47b23f(0x10d)]=_0x47b23f(0xe7);const _0x5cab26=_0xac5b65,_0x1eef93={};_0x1eef93[_0x47b23f(0xeb)]=_0x5cab26[_0x47b23f(0x118)],_0x1eef93['type']=_0x5cab26[_0x47b23f(0x112)];const _0x45f610={};return _0x45f610[_0x47b23f(0x109)]=_0x1eef93,_0x153b0a['usage'](HELP_HEADER_MESSAGE[_0x47b23f(0xdb)][_0x47b23f(0x11e)])[_0x47b23f(0xde)](HELP_FOOTER_MESSAGE)[_0x47b23f(0x11d)](_0x45f610)[_0x47b23f(0xe7)](_0x5cab26[_0x47b23f(0x10d)])[_0x47b23f(0xe4)];},exports['handler']=async function(_0x1b0480){const _0x3c0d93=a15_0x31d068,_0x22c763={'HSuEh':function(_0x330708){return _0x330708();},'ibLCB':_0x3c0d93(0xe5),'XvWcx':function(_0x4db66a,_0x52f568,_0x132396,_0x54ab9d,_0x40e594,_0x32efe0,_0x14421a){return _0x4db66a(_0x52f568,_0x132396,_0x54ab9d,_0x40e594,_0x32efe0,_0x14421a);},'XKPGH':_0x3c0d93(0xd8),'uTyfh':_0x3c0d93(0x119),'NEuvs':function(_0x10243d){return _0x10243d();},'MsUTU':_0x3c0d93(0x128),'oyeEb':function(_0x326a75,_0x1df910,_0x59e87a){return _0x326a75(_0x1df910,_0x59e87a);},'kynfD':function(_0x33b781,_0x4e7e5c,_0xcf510e,_0x3afa46,_0x41530c,_0x251434,_0x330354){return _0x33b781(_0x4e7e5c,_0xcf510e,_0x3afa46,_0x41530c,_0x251434,_0x330354);},'gExOO':function(_0x1a79ed,_0x2568e2){return _0x1a79ed!==_0x2568e2;},'qbYaF':function(_0x51ec3f,_0x514094){return _0x51ec3f===_0x514094;},'hjSuJ':'\x0aFound\x20the\x20following\x20grids:\x0a','VTzao':'grid-id','bzbjl':_0x3c0d93(0xf4),'YxAaG':'status','TXeft':'running','uIKLf':_0x3c0d93(0x127),'zqkWb':_0x3c0d93(0x10b),'NsWLH':function(_0x4bbd33,_0x9b803d){return _0x4bbd33(_0x9b803d);},'wOuiB':_0x3c0d93(0xd2),'Odnvw':_0x3c0d93(0xf8),'zshrH':function(_0x11722e,_0x351c8c,_0x4081d5,_0x45637f,_0x4558e4,_0x80fb53,_0x31cb0c){return _0x11722e(_0x351c8c,_0x4081d5,_0x45637f,_0x4558e4,_0x80fb53,_0x31cb0c);},'picpc':_0x3c0d93(0x10c),'sSPHw':_0x3c0d93(0xe3)};try{global_registry[_0x3c0d93(0xd4)]=_0x22c763[_0x3c0d93(0x11f)](uuidv4);!fs['existsSync'](_0x22c763[_0x3c0d93(0x11f)](getCredentialsPath))&&(console['error'](_0x22c763[_0x3c0d93(0x10e)]),await _0x22c763[_0x3c0d93(0xf9)](sendInstrumentationEvent,_0x1b0480,_0x22c763['XKPGH'],messageTypes[_0x3c0d93(0x108)],_0x22c763[_0x3c0d93(0xf7)],null,_0x1b0480),process['exit'](0x1));const _0x38695e=JSON[_0x3c0d93(0x105)](fs['readFileSync'](_0x22c763[_0x3c0d93(0xf1)](getCredentialsPath)));let _0x4c8640='https://'+AG_API_URL+'/packages/cli/get-grids';_0x1b0480[_0x3c0d93(0xd7)]&&(_0x4c8640=_0x3c0d93(0xfe)+AG_API_URL+_0x3c0d93(0xd1));const _0x3ced02={'method':_0x22c763['MsUTU'],'headers':_0x22c763[_0x3c0d93(0x121)](getAuthHeader,_0x38695e[_0x3c0d93(0x106)]['username'],_0x38695e[_0x3c0d93(0x106)][_0x3c0d93(0xff)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x38695e[_0x3c0d93(0x106)]['username'],global_registry[_0x3c0d93(0x11b)]=_0x38695e[_0x3c0d93(0x106)][_0x3c0d93(0xff)],_0x22c763[_0x3c0d93(0xe1)](sendInstrumentationEvent,_0x1b0480,_0x22c763[_0x3c0d93(0x102)],messageTypes['INFO'],null,null,_0x1b0480);const _0x31082c=await _0x22c763[_0x3c0d93(0x121)](got,_0x4c8640,_0x3ced02);if(_0x22c763[_0x3c0d93(0xf0)](_0x31082c,null)&&_0x22c763[_0x3c0d93(0xf0)](_0x31082c,undefined)&&_0x22c763[_0x3c0d93(0xd3)](_0x31082c[_0x3c0d93(0x124)],0xc8)){const _0x131f0a=JSON[_0x3c0d93(0x105)](_0x31082c[_0x3c0d93(0x104)]);console[_0x3c0d93(0x120)](_0x22c763['hjSuJ']);const _0x23b128=[];_0x23b128[_0x3c0d93(0x103)]([_0x22c763[_0x3c0d93(0xec)],_0x22c763[_0x3c0d93(0xe0)],_0x22c763[_0x3c0d93(0x123)],_0x22c763[_0x3c0d93(0x101)],_0x22c763[_0x3c0d93(0xdf)],_0x22c763['zqkWb']]),_0x131f0a[_0x3c0d93(0xdd)](_0x29cd2d=>{const _0x44d308=_0x3c0d93;_0x23b128[_0x44d308(0x103)]([_0x29cd2d['id'],_0x29cd2d[_0x44d308(0xea)],_0x29cd2d[_0x44d308(0x110)],_0x29cd2d[_0x44d308(0xd9)],_0x29cd2d[_0x44d308(0x127)],_0x29cd2d[_0x44d308(0x116)]]);}),console[_0x3c0d93(0x120)](_0x22c763[_0x3c0d93(0x113)](table,_0x23b128)),process['exit'](0x0);}_0x22c763[_0x3c0d93(0xd3)](_0x31082c[_0x3c0d93(0x124)],0x191)&&(console[_0x3c0d93(0xda)](_0x22c763[_0x3c0d93(0xd5)]),await _0x22c763[_0x3c0d93(0xf9)](sendInstrumentationEvent,_0x1b0480,_0x22c763[_0x3c0d93(0x102)],messageTypes['ERROR'],_0x22c763[_0x3c0d93(0x115)],null,_0x1b0480),process[_0x3c0d93(0x126)](0x1)),console[_0x3c0d93(0xda)](_0x3c0d93(0x10a)+JSON[_0x3c0d93(0xfa)](_0x31082c)),await _0x22c763[_0x3c0d93(0x111)](sendInstrumentationEvent,_0x1b0480,_0x22c763[_0x3c0d93(0x102)],messageTypes['ERROR'],_0x22c763[_0x3c0d93(0xed)],_0x31082c,_0x1b0480),process['exit'](0x1);}catch(_0x21fca1){console[_0x3c0d93(0xda)](_0x3c0d93(0xfb)+_0x21fca1[_0x3c0d93(0xfd)]),await _0x22c763[_0x3c0d93(0x111)](sendInstrumentationEvent,_0x1b0480,_0x22c763[_0x3c0d93(0x102)],messageTypes['ERROR'],_0x22c763[_0x3c0d93(0xf2)],_0x21fca1,_0x1b0480),process[_0x3c0d93(0x126)](0x1);}};function a15_0x4a08(){const _0x1e3d82=['TXeft','XKPGH','push','body','parse','Browserstack','table','ERROR','all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','cluster-name','server-error','qBice','ibLCB','desc','status','zshrH','YaUgM','NsWLH','2470996uDSezP','Odnvw','clusterName','command','xsPsr','init-not-called','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','bstackAccesskey','../../utils/instrumentationUtils','options','grid','HSuEh','log','oyeEb','../../utils/utilityMethods','YxAaG','statusCode','5237334fPFCcQ','exit','queued','GET','/packages/cli/get-all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qbYaF','requestId','wOuiB','6132PptyKv','allGrids','list-grids-called','running','error','list','9363096AEdbQa','forEach','epilogue','uIKLf','bzbjl','kynfD','got','unknown-error','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','11298ffrYIX','help','uuid','grids','name','description','VTzao','picpc','boolean','builder','gExOO','NEuvs','sSPHw','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grid-name','297788fDOSLn','718278danrpO','uTyfh','unauthorised','XvWcx','stringify','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../config/constants','stack','https://','password','6834535ZpTfkG'];a15_0x4a08=function(){return _0x1e3d82;};return a15_0x4a08();}
@@ -1 +1 @@
1
- const a16_0x275cac=a16_0x1868;function a16_0x1868(_0x46fb61,_0x58d1a6){const _0x59b6d9=a16_0x59b6();return a16_0x1868=function(_0x18682b,_0x521399){_0x18682b=_0x18682b-0x1e3;let _0x153da1=_0x59b6d9[_0x18682b];return _0x153da1;},a16_0x1868(_0x46fb61,_0x58d1a6);}(function(_0x5ad386,_0x256dc9){const _0x26304b=a16_0x1868,_0x51b99d=_0x5ad386();while(!![]){try{const _0x286381=-parseInt(_0x26304b(0x1ef))/0x1+-parseInt(_0x26304b(0x1e6))/0x2+-parseInt(_0x26304b(0x1e4))/0x3+-parseInt(_0x26304b(0x1fa))/0x4*(parseInt(_0x26304b(0x1f5))/0x5)+-parseInt(_0x26304b(0x1f8))/0x6*(parseInt(_0x26304b(0x1f0))/0x7)+-parseInt(_0x26304b(0x1f3))/0x8+parseInt(_0x26304b(0x1ee))/0x9*(parseInt(_0x26304b(0x1e3))/0xa);if(_0x286381===_0x256dc9)break;else _0x51b99d['push'](_0x51b99d['shift']());}catch(_0xa5ded3){_0x51b99d['push'](_0x51b99d['shift']());}}}(a16_0x59b6,0x5ef85));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x275cac(0x1f2));exports[a16_0x275cac(0x1eb)]=a16_0x275cac(0x1f6),exports['desc']=a16_0x275cac(0x1e9),exports[a16_0x275cac(0x1f4)]=function(_0x3384af){const _0x13b87c=a16_0x275cac,_0x5eca97={};_0x5eca97[_0x13b87c(0x1ed)]=_0x13b87c(0x1ea),_0x5eca97['PGTTA']=_0x13b87c(0x1ec);const _0x41bdc9=_0x5eca97;return _0x3384af[_0x13b87c(0x1fb)](HELP_HEADER_MESSAGE[_0x13b87c(0x1f1)])[_0x13b87c(0x1e8)](HELP_FOOTER_MESSAGE)[_0x13b87c(0x1f7)](_0x41bdc9[_0x13b87c(0x1ed)])['demandCommand']()[_0x13b87c(0x1f9)]()[_0x13b87c(0x1e5)]()['help'](_0x41bdc9[_0x13b87c(0x1fc)]);},exports[a16_0x275cac(0x1e7)]=function(_0x189d21){};function a16_0x59b6(){const _0x6459c5=['pre-check','commandDir','66VqaHrz','recommendCommands','3740MOCVgk','usage','PGTTA','30xGxRrj','1599423XWfzOk','strict','1302XHdrJn','handler','epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','precheck_commands','command','help','NGYHO','10253151AmcXRK','565375daVwRm','344239UysHOP','pre_check','../config/constants','5102408XcCUyc','builder','4015Wrmxya'];a16_0x59b6=function(){return _0x6459c5;};return a16_0x59b6();}
1
+ const a16_0x47aaa4=a16_0x24b3;(function(_0x4634e4,_0x285977){const _0x16e8ab=a16_0x24b3,_0x52c809=_0x4634e4();while(!![]){try{const _0x5a1cd2=-parseInt(_0x16e8ab(0x1b8))/0x1+-parseInt(_0x16e8ab(0x1c4))/0x2*(-parseInt(_0x16e8ab(0x1bb))/0x3)+-parseInt(_0x16e8ab(0x1b7))/0x4+-parseInt(_0x16e8ab(0x1b9))/0x5+parseInt(_0x16e8ab(0x1c5))/0x6+parseInt(_0x16e8ab(0x1b6))/0x7*(-parseInt(_0x16e8ab(0x1c3))/0x8)+parseInt(_0x16e8ab(0x1bf))/0x9*(parseInt(_0x16e8ab(0x1bd))/0xa);if(_0x5a1cd2===_0x285977)break;else _0x52c809['push'](_0x52c809['shift']());}catch(_0x25ff5d){_0x52c809['push'](_0x52c809['shift']());}}}(a16_0x283b,0xb28f9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x283b(){const _0x1afee8=['epilogue','recommendCommands','7EyAQIZ','669936QjLdoI','1236729maxinn','4269105KoeWMs','pre-check','471poTSbL','pre_check','310IbYOAu','builder','480834UcnXTO','command','usage','desc','5452864zsLMZx','14594FZhCll','5215152KWnTHE','OrmNl','sclOz','demandCommand','help'];a16_0x283b=function(){return _0x1afee8;};return a16_0x283b();}function a16_0x24b3(_0x5d80e5,_0x143c37){const _0x283b84=a16_0x283b();return a16_0x24b3=function(_0x24b33e,_0xf66135){_0x24b33e=_0x24b33e-0x1b6;let _0x582e04=_0x283b84[_0x24b33e];return _0x582e04;},a16_0x24b3(_0x5d80e5,_0x143c37);}exports[a16_0x47aaa4(0x1c0)]=a16_0x47aaa4(0x1ba),exports[a16_0x47aaa4(0x1c2)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x47aaa4(0x1be)]=function(_0x251461){const _0xc4e8f3=a16_0x47aaa4,_0x37d4d9={};_0x37d4d9[_0xc4e8f3(0x1c7)]='precheck_commands',_0x37d4d9[_0xc4e8f3(0x1c6)]=_0xc4e8f3(0x1c9);const _0x30124d=_0x37d4d9;return _0x251461[_0xc4e8f3(0x1c1)](HELP_HEADER_MESSAGE[_0xc4e8f3(0x1bc)])[_0xc4e8f3(0x1ca)](HELP_FOOTER_MESSAGE)['commandDir'](_0x30124d['sclOz'])[_0xc4e8f3(0x1c8)]()[_0xc4e8f3(0x1cb)]()['strict']()[_0xc4e8f3(0x1c9)](_0x30124d[_0xc4e8f3(0x1c6)]);},exports['handler']=function(_0x2a476f){};
@@ -1 +1 @@
1
- const a17_0x2692cd=a17_0x4242;(function(_0x4622ae,_0x4ae091){const _0x4a1e49=a17_0x4242,_0x48cbd=_0x4622ae();while(!![]){try{const _0x270442=-parseInt(_0x4a1e49(0x10f))/0x1+parseInt(_0x4a1e49(0x8c))/0x2+parseInt(_0x4a1e49(0xd0))/0x3*(parseInt(_0x4a1e49(0x106))/0x4)+-parseInt(_0x4a1e49(0x135))/0x5+parseInt(_0x4a1e49(0x163))/0x6+-parseInt(_0x4a1e49(0x158))/0x7+parseInt(_0x4a1e49(0xac))/0x8*(-parseInt(_0x4a1e49(0x159))/0x9);if(_0x270442===_0x4ae091)break;else _0x48cbd['push'](_0x48cbd['shift']());}catch(_0xf4d3fd){_0x48cbd['push'](_0x48cbd['shift']());}}}(a17_0x13ba,0x6a87d));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x2692cd(0xd2)),ReconnectingWebSocket=require(a17_0x2692cd(0x122)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x2692cd(0x84)),{logger}=require(a17_0x2692cd(0x10e)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x2692cd(0xe8)),{getCloudProviderObjectWithOutInit}=require(a17_0x2692cd(0x108)),webSocketUtils=require(a17_0x2692cd(0x16b)),{sendInstrumentationEvent}=require(a17_0x2692cd(0x138));exports[a17_0x2692cd(0x15b)]=a17_0x2692cd(0x17d),exports[a17_0x2692cd(0x13c)]=a17_0x2692cd(0xc5),exports[a17_0x2692cd(0xe0)]=function(_0x47e898){const _0x2296e4=a17_0x2692cd,_0x1a5c35={};_0x1a5c35[_0x2296e4(0x9f)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x1a5c35['VEIvV']='string',_0x1a5c35['txWGX']=_0x2296e4(0xad),_0x1a5c35['YLvNp']=_0x2296e4(0x127),_0x1a5c35[_0x2296e4(0x14c)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1a5c35[_0x2296e4(0x8a)]=_0x2296e4(0x90);const _0x11b8be=_0x1a5c35,_0x3fb9a6={};_0x3fb9a6[_0x2296e4(0xc9)]=_0x11b8be[_0x2296e4(0x9f)],_0x3fb9a6['type']=_0x11b8be[_0x2296e4(0x15e)];const _0x15552a={};_0x15552a[_0x2296e4(0xc9)]=_0x11b8be[_0x2296e4(0xe1)],_0x15552a['type']=_0x11b8be[_0x2296e4(0x15e)];const _0x4461dd={};_0x4461dd['description']=_0x11b8be[_0x2296e4(0xd4)],_0x4461dd['type']=_0x11b8be[_0x2296e4(0x15e)];const _0x46f93a={};_0x46f93a[_0x2296e4(0xc9)]=_0x11b8be['IDdbM'],_0x46f93a[_0x2296e4(0x17b)]=_0x11b8be['VEIvV'];const _0x4937bb={};return _0x4937bb[_0x2296e4(0x11d)]=_0x3fb9a6,_0x4937bb[_0x2296e4(0x11e)]=_0x15552a,_0x4937bb['region']=_0x4461dd,_0x4937bb['grid-profile']=_0x46f93a,_0x47e898['usage'](HELP_HEADER_MESSAGE[_0x2296e4(0xa5)])[_0x2296e4(0x8d)](HELP_FOOTER_MESSAGE)[_0x2296e4(0x10a)](_0x4937bb)['help'](_0x11b8be[_0x2296e4(0x8a)])[_0x2296e4(0x155)];};function a17_0x13ba(){const _0x377725=[']\x20status\x20:\x20','GdgQq','EKriL','VJhnW','jAWMA','debug','isTrialGridAccessible','error\x20stack\x20:\x20','grid-profile','builder','txWGX','lRlNX','find','includes','Gipxj','clusterName','cloudProvider','../../config/constants','HNOIv','Error\x20Details:\x0a','checkAccess','`\x20already\x20exists','exit','YiRhU','<UsernamePlaceholder>','throwHttpErrors','fGQcx','handler','JwXwt','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','info','credential-not-found','GbfsD','header','cbIVO','TLSv1_2_client_method','Message:\x20','stack','method','wCMAW','Cluster\x20`','\x20error\x20:\x20','Browserstack','replace','pTVBm','ysYmV','JjCOn','891972laFqOx','parse','../../cloudproviders/utils','jnfWF','options','connectionTimeout','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','qzYNH','../../config/logger','453053xDWKQf','iSodq','WtXmX','length','oWofJ','accessResp','log/report_','Report\x20saved\x20in\x20','authHeader','yWbQB','getUTCFullYear','xfJyz','ixDjl','WIWJT','cluster-name','cloud-provider','init','IKYfV','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','reconnecting-websocket','ugCut','ioeGA','SCdfH','\x20\x20Stack:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','.txt','yVfUX','QHfBm','GET','sBXRX','password','QBylg','ZiciL','grid\x20profile\x20flow\x20','MhvlD','pre-check-grid-profile-empty','<PasswordPlaceholder>','erOvk','336535IZBPXR','mnQKU','\x20\x20Message:\x20','../../utils/instrumentationUtils','isTls1_2_SUPPORTED','INFO','dmqtI','desc','mpiZq','ERROR','gridProfile','\x20\x20Code:\x20','string','yzcSS','region','LKNAL','OMEyW','getUTCMonth','split','push','body','EfcqD','xKZRH','IDdbM','message','https://','WzFVO','.\x20Please\x20provide\x20all\x20required\x20arguments.','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','CLOUD_PROVIDER','usage','tRdbg','argv','PTmya','WcGGZ','1369151ZqoTxA','5949glKFyU','requestId','command','JzWfK','bstackAccesskey','VEIvV','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','LflOu','ePAMb','Cluster\x20','3875286UDliHb','will\x20be\x20created','PhDpT','DQKej','fdzzY','MWhdu','stack\x20trace\x20','readFileSync','../../utils/webSocketUtils','MOQlB','code','Grid\x20profile\x20fetched\x20for\x20pre-check','SJAQr','Whitelisted\x20browserstack','pre-check-cluster-args-not-passed','dRFsn','hWySe','gUTdp','bstackUsername','name','Ctqsu','/packages/cli/get-all-grid-profiles','tFLmF','UfSUw','type','bOKYk','grid','\x20data\x20:\x20','Status:\x20','FVetH','JpEFu','kpMnQ','jEKBg','BrleF','../../utils/utilityMethods','SSL\x20Configured','ktDil','cluster-check-failed-','clusterRegion','error','weKCE','toLowerCase','1275448rkoFMy','epilogue','RFJCa','isCliToolInstalled','help','username','ZdFhl','jHwxq','`\x20,error\x20:\x20','JSXko','Cluster\x20details\x0a-----------------------\x0a','XSqYh','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','zTwVm','getUTCMinutes','toolInstalledResp','Setting\x20cloud\x20provider\x20as\x20','hsHJK','oDTnX','ADiQA','getUTCHours','OymWb','response','WebSocket','WjPuJ','pre_check','rNGGe','Success','pre-check','HbMnw','`\x20is\x20present\x20in\x20region\x20`','data','4288THDaYW','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','LOG','bDPUA','AQFAQ','Syioi','HdsDe','fiOMQ','pre-check-failed','wYHfg','isClusterPresent','===\x20Precheck\x20Report\x20-\x20','Vixah','qfPmR','IFsyc','PApEY','JVMfh','tTdDd','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LPjTc','AJKod','sendEventToBackend','getUTCDate','\x20region\x20-\x20','pre-check-grid-called','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','qEynS','N/A','lnQyC','description','BjMCe','yrWhy','Missing\x20required\x20arguments:\x20','vAidp','zLNrV','utf-8','3lWNwnr','unable\x20to\x20verify\x20if\x20cluster\x20`','uuid','dummy-grid','YLvNp','existsSync','status'];a17_0x13ba=function(){return _0x377725;};return a17_0x13ba();}function a17_0x4242(_0x2e6bb0,_0x36f0a3){const _0x13ba6f=a17_0x13ba();return a17_0x4242=function(_0x424295,_0x51db2b){_0x424295=_0x424295-0x80;let _0x294b82=_0x13ba6f[_0x424295];return _0x294b82;},a17_0x4242(_0x2e6bb0,_0x36f0a3);}async function inputValidation(_0x1dc7ee,_0x8a78e6){const _0x4e9aac=a17_0x2692cd,_0x159ea4={'lRlNX':_0x4e9aac(0x143),'kpMnQ':_0x4e9aac(0x11e),'DQKej':_0x4e9aac(0xea),'MOQlB':_0x4e9aac(0xc7),'EKriL':function(_0x210885,_0x160a82){return _0x210885+_0x160a82;},'Vixah':_0x4e9aac(0xa7),'WjPuJ':'Failure','hWySe':function(_0xaf8f7f,_0x145675){return _0xaf8f7f||_0x145675;},'IFsyc':_0x4e9aac(0x89),'RPrAC':_0x4e9aac(0x15f),'iSodq':_0x4e9aac(0x141),'FfMeB':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ePAMb':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','xKZRH':_0x4e9aac(0xbe),'qzYNH':_0x4e9aac(0x90),'jEKBg':'cluster-name','hscRA':'is\x20already\x20present','gUTdp':_0x4e9aac(0x164),'erOvk':_0x4e9aac(0x98),'jAWMA':function(_0x2fbe16,_0x178aa8){return _0x2fbe16!==_0x178aa8;},'PApEY':'dfExm','hsHJK':function(_0x1aaf2d,_0x38de2b){return _0x1aaf2d===_0x38de2b;},'qfPmR':_0x4e9aac(0xa1),'BrleF':_0x4e9aac(0x103),'LPjTc':'lcjTL','bDPUA':'nJonJ','aIhNK':_0x4e9aac(0x11c),'YiRhU':_0x4e9aac(0x111),'vVAJj':function(_0x86de83,_0x55fd5d){return _0x86de83>_0x55fd5d;},'dRFsn':function(_0xcf9e09,_0x474a31){return _0xcf9e09===_0x474a31;},'mpiZq':_0x4e9aac(0x13b),'JwXwt':function(_0x2f9ec1,_0x372846,_0xa6a953,_0x252164,_0x23b163,_0x59432e,_0x5ca16f,_0x536c41){return _0x2f9ec1(_0x372846,_0xa6a953,_0x252164,_0x23b163,_0x59432e,_0x5ca16f,_0x536c41);},'VJhnW':_0x4e9aac(0xc4),'ONpAk':_0x4e9aac(0x171),'EbBlD':_0x4e9aac(0xc0),'Ctqsu':'pWaGW','fGQcx':_0x4e9aac(0x151),'WcGGZ':'cloud-provider-not-supported','JSXko':_0x4e9aac(0xc6),'fdzzY':_0x4e9aac(0x8e),'GdgQq':_0x4e9aac(0x12b),'FVetH':function(_0x5f3d7a,_0x184a26,_0x638af1){return _0x5f3d7a(_0x184a26,_0x638af1);},'oGuii':function(_0x354b49,_0x1d09df,_0x2eb8d5,_0x378f0e,_0x5a438a,_0xaf75ed){return _0x354b49(_0x1d09df,_0x2eb8d5,_0x378f0e,_0x5a438a,_0xaf75ed);},'ixDjl':_0x4e9aac(0xa8),'LflOu':_0x4e9aac(0xdf),'Gipxj':_0x4e9aac(0x12c),'MWhdu':_0x4e9aac(0x154),'yWbQB':function(_0x3a95f1,_0x4ebf0d){return _0x3a95f1(_0x4ebf0d);},'QHfBm':'kogUE','EfcqD':_0x4e9aac(0x132),'BjMCe':_0x4e9aac(0x12f),'erjNF':_0x4e9aac(0xcb),'PTmya':'BkIqX','MhvlD':'cZSKX','mnQKU':_0x4e9aac(0x16e),'HbMnw':_0x4e9aac(0x11a),'jnfWF':_0x4e9aac(0x125),'JzWfK':function(_0x269caa,_0xf7755c){return _0x269caa!==_0xf7755c;},'UfSUw':_0x4e9aac(0x16f),'oWofJ':_0x4e9aac(0xb1)};let _0x586458;try{if(_0x159ea4[_0x4e9aac(0xdb)](_0x159ea4[_0x4e9aac(0xbb)],_0x159ea4[_0x4e9aac(0xbb)]))_0x752e8a[_0x4e9aac(0x148)](_0x159ea4[_0x4e9aac(0xe2)]);else{if(_0x1dc7ee[_0x4e9aac(0xe6)]||_0x1dc7ee['cloudProvider']||_0x1dc7ee[_0x4e9aac(0x143)]){if(_0x159ea4[_0x4e9aac(0x9d)](_0x159ea4['qfPmR'],_0x159ea4[_0x4e9aac(0xb9)])){const _0x57f42b=[];!_0x1dc7ee[_0x4e9aac(0xe6)]&&(_0x159ea4[_0x4e9aac(0x9d)](_0x159ea4[_0x4e9aac(0x83)],_0x159ea4[_0x4e9aac(0x83)])?_0x57f42b[_0x4e9aac(0x148)](_0x159ea4['jEKBg']):(_0x416fdf['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x904624[_0x4e9aac(0x152)]+'\x20'),_0x253bbb[_0x4e9aac(0xe7)]=_0x431a3e[_0x4e9aac(0x152)]));;!_0x1dc7ee[_0x4e9aac(0xe7)]&&(_0x159ea4[_0x4e9aac(0x9d)](_0x159ea4[_0x4e9aac(0xbf)],_0x159ea4[_0x4e9aac(0xaf)])?_0x248b1f[_0x4e9aac(0xed)](0x1):_0x57f42b['push'](_0x159ea4['kpMnQ']));;!_0x1dc7ee[_0x4e9aac(0x143)]&&(_0x159ea4[_0x4e9aac(0x9d)](_0x159ea4['aIhNK'],_0x159ea4[_0x4e9aac(0xee)])?_0x52825a[_0x4e9aac(0xf5)](_0x4e9aac(0xff)+_0x40d057[_0x4e9aac(0xe6)]+'`\x20already\x20exists'):_0x57f42b[_0x4e9aac(0x148)](_0x159ea4['lRlNX']));;_0x159ea4['vVAJj'](_0x57f42b[_0x4e9aac(0x112)],0x0)&&(_0x159ea4[_0x4e9aac(0x172)](_0x159ea4['mpiZq'],_0x159ea4[_0x4e9aac(0x13d)])?(_0x586458=_0x4e9aac(0xcc)+_0x57f42b['join'](',\x20')+_0x4e9aac(0x150),await _0x159ea4['JwXwt'](reportToGalactusAndSendToEDS,_0x1dc7ee,_0x8a78e6,_0x586458,messageTypes[_0x4e9aac(0x13e)],_0x159ea4[_0x4e9aac(0xda)],_0x159ea4['ONpAk'],_0x159ea4[_0x4e9aac(0xba)]),logger[_0x4e9aac(0x89)](_0x586458),process[_0x4e9aac(0xed)](0x1)):_0x5a5646[_0x4e9aac(0x89)](_0x4e9aac(0xde)+_0x59c7d2[_0x4e9aac(0x89)]['stack'])),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x4e9aac(0xe4)](_0x1dc7ee[_0x4e9aac(0xe7)][_0x4e9aac(0x8b)]())&&(_0x159ea4[_0x4e9aac(0x9d)](_0x159ea4['EbBlD'],_0x159ea4[_0x4e9aac(0x177)])?(_0x3b017c[_0x4e9aac(0xf5)]('['+_0x296e93+']\x20status\x20:\x20'+_0x4f3726[_0x4e9aac(0xd6)]+'\x20data\x20:\x20'+_0x3efcac['data']+'\x20error\x20:\x20'+_0x5cbdcb['error']),_0x5c0343['error']&&_0x5c7fa1[_0x4e9aac(0x89)]('error\x20stack\x20:\x20'+_0x1819e4[_0x4e9aac(0x89)]['stack'])):(_0x586458=_0x159ea4[_0x4e9aac(0xf1)],await _0x159ea4[_0x4e9aac(0xf3)](reportToGalactusAndSendToEDS,_0x1dc7ee,_0x8a78e6,_0x586458,messageTypes[_0x4e9aac(0x13e)],_0x159ea4['VJhnW'],_0x159ea4[_0x4e9aac(0x157)],_0x159ea4[_0x4e9aac(0xba)]),logger['error'](_0x586458),!_0x1dc7ee[_0x4e9aac(0xe7)]&&(_0x159ea4['jAWMA'](_0x159ea4[_0x4e9aac(0x95)],_0x159ea4['JSXko'])?_0x173cc5[_0x4e9aac(0x148)](_0x159ea4[_0x4e9aac(0x81)]):(logger[_0x4e9aac(0xf5)](_0x4e9aac(0x9c)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x1dc7ee['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x4e9aac(0xe6)]=_0x1dc7ee[_0x4e9aac(0xe6)],global_registry[_0x4e9aac(0xe7)]=_0x1dc7ee[_0x4e9aac(0xe7)],global_registry[_0x4e9aac(0x88)]=_0x1dc7ee[_0x4e9aac(0x143)];}else _0x36a626+=_0x159ea4[_0x4e9aac(0x166)],_0x8c243d+='\x20\x20Message:\x20'+(_0x5721d6['message']||_0x159ea4[_0x4e9aac(0x16c)])+'\x0a',_0x23efd4+=_0x4e9aac(0x140)+(_0x5e629e[_0x4e9aac(0x16d)]||_0x159ea4[_0x4e9aac(0x16c)])+'\x0a',_0x5a6587+=_0x4e9aac(0x126)+(_0x5e588d['stack']||_0x159ea4['MOQlB'])+'\x0a';}else{if(_0x1dc7ee[_0x4e9aac(0x13f)]){if(_0x159ea4[_0x4e9aac(0x9d)](_0x159ea4['fdzzY'],_0x159ea4[_0x4e9aac(0x167)])){global_registry[_0x4e9aac(0x13f)]=_0x1dc7ee[_0x4e9aac(0x13f)],logger[_0x4e9aac(0xdc)](_0x4e9aac(0x130)+_0x1dc7ee[_0x4e9aac(0x13f)]);const _0xad714a=_0x4e9aac(0x14e)+AG_API_URL+_0x4e9aac(0x178),_0x4e5651={};_0x4e5651[_0x4e9aac(0xfd)]=_0x159ea4[_0x4e9aac(0xd8)],_0x4e5651['headers']=global_registry[_0x4e9aac(0x117)],_0x4e5651[_0x4e9aac(0xf0)]=![];const _0x5b31ed=_0x4e5651,_0x524f3d=await _0x159ea4[_0x4e9aac(0x180)](got,_0xad714a,_0x5b31ed),_0x24b549=await _0x159ea4['oGuii'](responseValidation,_0x524f3d,_0x159ea4[_0x4e9aac(0x11b)],_0x159ea4[_0x4e9aac(0x160)],_0x1dc7ee,_0x8a78e6);let _0x51d166={};if(_0x159ea4[_0x4e9aac(0x172)](_0x24b549,0xc8)){if(_0x159ea4['jAWMA'](_0x159ea4[_0x4e9aac(0xe5)],_0x159ea4[_0x4e9aac(0x168)])){const _0x46a5ec=JSON[_0x4e9aac(0x107)](_0x524f3d[_0x4e9aac(0x149)]),_0xa7972=_0x46a5ec[_0x4e9aac(0xe3)](_0x3c9e79=>_0x3c9e79[_0x4e9aac(0x176)]===_0x1dc7ee[_0x4e9aac(0x13f)])||null;if(_0x159ea4[_0x4e9aac(0x118)](isUndefined,_0xa7972)){if(_0x159ea4[_0x4e9aac(0xdb)](_0x159ea4[_0x4e9aac(0x12a)],_0x159ea4['QHfBm'])){const {header:_0x3683c1,response:_0x10ccc7}=_0x15270f,{status:_0xbd2f2f,data:_0x1c7d7e,error:_0x3fa2c3}=_0x10ccc7;_0x36f4da+=_0x3683c1+'\x20#'+_0x159ea4[_0x4e9aac(0xd9)](_0x33c85e,0x1)+'\x0a',_0x1801fd+=_0x4e9aac(0x17f)+(_0xbd2f2f?_0x159ea4[_0x4e9aac(0xb8)]:_0x159ea4[_0x4e9aac(0xa4)])+'\x0a',_0xd3b0ca+=_0x4e9aac(0xfb)+_0x159ea4[_0x4e9aac(0x173)](_0x1c7d7e,_0x159ea4[_0x4e9aac(0x16c)])+'\x0a',_0x3fa2c3&&(_0x55244e+=_0x159ea4[_0x4e9aac(0x166)],_0x183e33+=_0x4e9aac(0x137)+(_0x3fa2c3[_0x4e9aac(0x14d)]||_0x159ea4['MOQlB'])+'\x0a',_0x2d6dc5+=_0x4e9aac(0x140)+(_0x3fa2c3[_0x4e9aac(0x16d)]||_0x159ea4[_0x4e9aac(0x16c)])+'\x0a',_0x1513c5+=_0x4e9aac(0x126)+(_0x3fa2c3[_0x4e9aac(0xfc)]||_0x159ea4[_0x4e9aac(0x16c)])+'\x0a'),_0x42eb7c+='\x0a\x0a';}else _0x586458='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x1dc7ee[_0x4e9aac(0x13f)]+_0x4e9aac(0x121),await _0x159ea4[_0x4e9aac(0xf3)](reportToGalactusAndSendToEDS,_0x1dc7ee,_0x8a78e6,_0x586458,messageTypes[_0x4e9aac(0x13e)],_0x159ea4[_0x4e9aac(0xda)],_0x159ea4[_0x4e9aac(0x14a)],_0x159ea4[_0x4e9aac(0xba)]),logger['error'](_0x586458),process[_0x4e9aac(0xed)](0x1);}else{if(_0x159ea4['jAWMA'](_0x159ea4[_0x4e9aac(0xca)],_0x159ea4['erjNF']))_0x51d166=_0xa7972;else{const _0x39fa96={};_0x39fa96[_0x4e9aac(0x17b)]=_0x11124c['LOG'],_0x39fa96['message']=_0x1c91a6,_0x1cdb5b[_0x4e9aac(0xc1)](_0x3fe7de,_0x39fa96,_0x159ea4['IFsyc'],!![]);}}}else{const _0x4609c8={};_0x4609c8[_0x4e9aac(0xc9)]=_0x159ea4['RPrAC'],_0x4609c8['type']=_0x159ea4['iSodq'];const _0x5114c9={};_0x5114c9[_0x4e9aac(0xc9)]=_0x159ea4['FfMeB'],_0x5114c9[_0x4e9aac(0x17b)]=_0x159ea4['iSodq'];const _0x5ab194={};_0x5ab194[_0x4e9aac(0xc9)]=_0x159ea4[_0x4e9aac(0x161)],_0x5ab194[_0x4e9aac(0x17b)]=_0x159ea4[_0x4e9aac(0x110)];const _0x51bddb={};_0x51bddb[_0x4e9aac(0xc9)]=_0x159ea4[_0x4e9aac(0x14b)],_0x51bddb[_0x4e9aac(0x17b)]=_0x159ea4[_0x4e9aac(0x110)];const _0x5bb6ae={};return _0x5bb6ae[_0x4e9aac(0x11d)]=_0x4609c8,_0x5bb6ae[_0x4e9aac(0x11e)]=_0x5114c9,_0x5bb6ae[_0x4e9aac(0x143)]=_0x5ab194,_0x5bb6ae[_0x4e9aac(0xdf)]=_0x51bddb,_0x15cda3[_0x4e9aac(0x153)](_0x32d2e0[_0x4e9aac(0xa5)])[_0x4e9aac(0x8d)](_0x1fdca0)['options'](_0x5bb6ae)['help'](_0x159ea4[_0x4e9aac(0x10d)])['argv'];}}else _0x159ea4['hsHJK'](_0x159ea4[_0x4e9aac(0x156)],_0x159ea4[_0x4e9aac(0x131)])?_0x4c613c[_0x4e9aac(0x148)](_0x159ea4[_0x4e9aac(0x82)]):process[_0x4e9aac(0xed)](0x1);const _0x28b1d8={};_0x28b1d8[_0x4e9aac(0x17b)]=WS_EVENTS[_0x4e9aac(0xae)],_0x28b1d8[_0x4e9aac(0x14d)]=_0x159ea4[_0x4e9aac(0x136)],webSocketUtils[_0x4e9aac(0xc1)](_0x8a78e6,_0x28b1d8),global_registry[_0x4e9aac(0xe7)]=_0x51d166[_0x4e9aac(0xe7)],global_registry[_0x4e9aac(0x88)]=_0x51d166[_0x4e9aac(0x143)],global_registry[_0x4e9aac(0xe6)]=_0x51d166[_0x4e9aac(0xe6)];}else _0xea8c87+=_0x4e9aac(0x162)+_0x44c3bd[_0x4e9aac(0xe6)]+_0x4e9aac(0x10c);}else _0x159ea4['dRFsn'](_0x159ea4[_0x4e9aac(0xa9)],_0x159ea4[_0x4e9aac(0x109)])?_0x16d8d9+='Cluster\x20'+_0x3cda33['clusterName']+'\x20'+(_0x228103?_0x159ea4['hscRA']:_0x159ea4[_0x4e9aac(0x174)])+'\x0a\x0a':(logger[_0x4e9aac(0x89)](_0x159ea4[_0x4e9aac(0x134)]),process[_0x4e9aac(0xed)](0x1));}}}catch(_0x1d692e){_0x159ea4[_0x4e9aac(0x15c)](_0x159ea4[_0x4e9aac(0x17a)],_0x159ea4[_0x4e9aac(0x113)])?(_0x586458=_0x4e9aac(0xf4)+_0x1d692e+':\x20'+_0x1d692e[_0x4e9aac(0xfc)],logger[_0x4e9aac(0x89)](_0x586458),await _0x159ea4['JwXwt'](reportToGalactusAndSendToEDS,_0x1dc7ee,_0x8a78e6,_0x586458,messageTypes[_0x4e9aac(0x13e)],_0x159ea4['VJhnW'],_0x159ea4[_0x4e9aac(0x157)],_0x159ea4[_0x4e9aac(0xba)]),process[_0x4e9aac(0xed)](0x1)):(_0x5b0c53[_0x4e9aac(0x89)](_0x159ea4[_0x4e9aac(0x134)]),_0x4235e3[_0x4e9aac(0xed)](0x1));}}function printResponse(_0x5beb92,_0x11c9dc){const _0x27f131=a17_0x2692cd,_0x202305={};_0x202305[_0x27f131(0x124)]=function(_0x461ac8,_0x5c3393){return _0x461ac8!==_0x5c3393;},_0x202305[_0x27f131(0x120)]=_0x27f131(0x14f),_0x202305[_0x27f131(0x165)]=_0x27f131(0x123);const _0x3b9665=_0x202305;logger['info']('['+_0x5beb92+_0x27f131(0xd7)+_0x11c9dc[_0x27f131(0xd6)]+_0x27f131(0x17e)+_0x11c9dc[_0x27f131(0xab)]+_0x27f131(0x100)+_0x11c9dc[_0x27f131(0x89)]),_0x11c9dc[_0x27f131(0x89)]&&(_0x3b9665[_0x27f131(0x124)](_0x3b9665['IKYfV'],_0x3b9665[_0x27f131(0x165)])?logger[_0x27f131(0x89)](_0x27f131(0xde)+_0x11c9dc['error'][_0x27f131(0xfc)]):_0x5b42e6=_0x1defc5);}async function generateReport(_0x4f9aa0,_0x330060){const _0x150c2b=a17_0x2692cd,_0x208bff={'IGvvl':function(_0x2bccca,_0x216e13){return _0x2bccca+_0x216e13;},'HdsDe':'Success','HNOIv':'Failure','JjCOn':function(_0x247448,_0x749442){return _0x247448||_0x749442;},'vAidp':_0x150c2b(0xc7),'JpEFu':_0x150c2b(0xea),'OMEyW':_0x150c2b(0x96),'XSqYh':function(_0x2acead,_0x57bed2){return _0x2acead!=_0x57bed2;},'ZdFhl':'is\x20already\x20present','zLNrV':_0x150c2b(0x164),'cuqEd':function(_0x3aaa82){return _0x3aaa82();}};let _0x270209=_0x150c2b(0xb7)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x4f9aa0['forEach']((_0x5bef82,_0x295212)=>{const _0x47eb1a=_0x150c2b,{header:_0x46980b,response:_0x5c2880}=_0x5bef82,{status:_0x4af9f,data:_0xb4260d,error:_0xa5064c}=_0x5c2880;_0x270209+=_0x46980b+'\x20#'+_0x208bff['IGvvl'](_0x295212,0x1)+'\x0a',_0x270209+=_0x47eb1a(0x17f)+(_0x4af9f?_0x208bff[_0x47eb1a(0xb2)]:_0x208bff[_0x47eb1a(0xe9)])+'\x0a',_0x270209+=_0x47eb1a(0xfb)+_0x208bff[_0x47eb1a(0x105)](_0xb4260d,_0x208bff['vAidp'])+'\x0a',_0xa5064c&&(_0x270209+=_0x208bff[_0x47eb1a(0x80)],_0x270209+=_0x47eb1a(0x137)+(_0xa5064c[_0x47eb1a(0x14d)]||_0x208bff['vAidp'])+'\x0a',_0x270209+='\x20\x20Code:\x20'+(_0xa5064c['code']||_0x208bff[_0x47eb1a(0xcd)])+'\x0a',_0x270209+=_0x47eb1a(0x126)+(_0xa5064c[_0x47eb1a(0xfc)]||_0x208bff[_0x47eb1a(0xcd)])+'\x0a'),_0x270209+='\x0a\x0a';}),_0x270209+=_0x208bff[_0x150c2b(0x145)],_0x208bff[_0x150c2b(0x97)](_0x330060,null)?_0x270209+=_0x150c2b(0x162)+global_registry[_0x150c2b(0xe6)]+'\x20'+(_0x330060?_0x208bff[_0x150c2b(0x92)]:_0x208bff[_0x150c2b(0xce)])+'\x0a\x0a':_0x270209+='Cluster\x20'+global_registry[_0x150c2b(0xe6)]+_0x150c2b(0x10c),_0x270209+=_0x208bff['cuqEd'](getSystemMetaData),_0x270209;};exports[a17_0x2692cd(0xf2)]=async function(_0x1990f4){const _0xdd4b18=a17_0x2692cd,_0x56576f={'ysYmV':function(_0xeac3cf){return _0xeac3cf();},'KuERJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jHwxq':function(_0x1b6371,_0x5b2e95,_0x51a87f,_0x2dca4c,_0x223022,_0x3d2bcf,_0x5ecc34,_0x4a2e11){return _0x1b6371(_0x5b2e95,_0x51a87f,_0x2dca4c,_0x223022,_0x3d2bcf,_0x5ecc34,_0x4a2e11);},'oDTnX':_0xdd4b18(0xc4),'vrbdm':_0xdd4b18(0xf6),'JVMfh':_0xdd4b18(0x89),'nsCBm':function(_0x5994cb,_0x2d0a09,_0xcdc53e,_0x26f3b4,_0x4a6686,_0x166a16,_0x4636c2){return _0x5994cb(_0x2d0a09,_0xcdc53e,_0x26f3b4,_0x4a6686,_0x166a16,_0x4636c2);},'rNGGe':_0xdd4b18(0xef),'eNieD':_0xdd4b18(0x133),'yzcSS':function(_0x58e566,_0x417fd4,_0x1c0408){return _0x58e566(_0x417fd4,_0x1c0408);},'lnQyC':function(_0x278ca2,_0x3ab670,_0x3e6bd2){return _0x278ca2(_0x3ab670,_0x3e6bd2);},'GbfsD':function(_0x2f29e4,_0x356c3c,_0x3d438d,_0x38d5ce,_0x4d23ba,_0xa2d15d,_0x3f9861){return _0x2f29e4(_0x356c3c,_0x3d438d,_0x38d5ce,_0x4d23ba,_0xa2d15d,_0x3f9861);},'fiOMQ':_0xdd4b18(0xd3),'BlOSe':_0xdd4b18(0x9b),'TLgdh':'4|1|0|2|3','ktDil':_0xdd4b18(0x114),'LKNAL':_0xdd4b18(0xdd),'wYHfg':function(_0x2a4e10,_0x4238f0){return _0x2a4e10(_0x4238f0);},'yVfUX':_0xdd4b18(0xfa),'wCMAW':_0xdd4b18(0x139),'cbIVO':'Tool\x20Installed','tTdDd':'User\x20Access','tFLmF':_0xdd4b18(0x170),'bOKYk':_0xdd4b18(0x85),'AQFAQ':function(_0x2dc97c,_0x2caa40){return _0x2dc97c+_0x2caa40;},'QBylg':_0xdd4b18(0xcf),'PBEvP':function(_0x3f6a67,_0x2eeff1,_0x3c9a58,_0x1610dd,_0x4bc987,_0x772352,_0x5da202){return _0x3f6a67(_0x2eeff1,_0x3c9a58,_0x1610dd,_0x4bc987,_0x772352,_0x5da202);},'zTwVm':_0xdd4b18(0xb4)};let _0x4f586f,_0x473f5d;try{global_registry[_0xdd4b18(0x15a)]=_0x56576f[_0xdd4b18(0x104)](uuidv4);!fs[_0xdd4b18(0xd5)](_0x56576f[_0xdd4b18(0x104)](getCredentialsPath))&&(_0x473f5d=_0x56576f['KuERJ'],logger['error'](_0x473f5d),await _0x56576f[_0xdd4b18(0x93)](reportToGalactusAndSendToEDS,_0x1990f4,_0x4f586f,_0x473f5d,messageTypes['ERROR'],_0x56576f[_0xdd4b18(0x9e)],_0x56576f['vrbdm'],_0x56576f[_0xdd4b18(0xbc)]),process['exit'](0x1));_0x56576f['nsCBm'](sendInstrumentationEvent,_0x1990f4,_0x56576f['oDTnX'],messageTypes[_0xdd4b18(0x13a)],null,null,_0x1990f4);const _0x40ad21=JSON[_0xdd4b18(0x107)](fs[_0xdd4b18(0x16a)](_0x56576f[_0xdd4b18(0x104)](getCredentialsPath)));global_registry[_0xdd4b18(0x175)]=_0x40ad21[_0xdd4b18(0x101)][_0xdd4b18(0x91)],global_registry[_0xdd4b18(0x15d)]=_0x40ad21[_0xdd4b18(0x101)][_0xdd4b18(0x12d)];const _0x2a13df=WS_ENDPOINT['replace'](_0x56576f[_0xdd4b18(0xa6)],_0x40ad21[_0xdd4b18(0x101)][_0xdd4b18(0x91)])[_0xdd4b18(0x102)](_0x56576f['eNieD'],_0x40ad21[_0xdd4b18(0x101)][_0xdd4b18(0x12d)]),_0x4db4a1={};_0x4db4a1[_0xdd4b18(0xa3)]=ws,_0x4db4a1[_0xdd4b18(0x10b)]=0x36ee80,_0x4f586f=new ReconnectingWebSocket(_0x2a13df,[],_0x4db4a1),global_registry[_0xdd4b18(0x117)]=_0x56576f[_0xdd4b18(0x142)](getAuthHeader,global_registry[_0xdd4b18(0x175)],global_registry[_0xdd4b18(0x15d)]),await _0x56576f[_0xdd4b18(0xc8)](inputValidation,_0x1990f4,_0x4f586f),logger[_0xdd4b18(0xf5)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0xdd4b18(0xc3)+global_registry[_0xdd4b18(0x88)]);let _0x440103=await _0x56576f[_0xdd4b18(0xf7)](getCloudProviderObjectWithOutInit,global_registry[_0xdd4b18(0xe7)],global_registry[_0xdd4b18(0xe6)],_0x56576f[_0xdd4b18(0xb3)],_0x4f586f,webSocketUtils,_0x1990f4);const _0xc1c8e=await _0x440103[_0xdd4b18(0x8f)]();_0x56576f[_0xdd4b18(0xc8)](printResponse,_0x56576f['BlOSe'],_0xc1c8e),_0x440103=await _0x440103[_0xdd4b18(0x11f)]();let _0x48f504=![];try{_0x48f504=await _0x440103[_0xdd4b18(0xb6)]();}catch(_0x346d7d){const _0x141962=_0x56576f['TLgdh'][_0xdd4b18(0x147)]('|');let _0x3815f7=0x0;while(!![]){switch(_0x141962[_0x3815f7++]){case'0':logger[_0xdd4b18(0x89)](_0x473f5d);continue;case'1':_0x48f504=null;continue;case'2':_0x473f5d+='\x0a'+JSON['stringify'](_0x346d7d[_0xdd4b18(0xfc)]);continue;case'3':await _0x56576f[_0xdd4b18(0x93)](reportToGalactusAndSendToEDS,_0x1990f4,_0x4f586f,_0x473f5d,messageTypes[_0xdd4b18(0x13e)],_0x56576f[_0xdd4b18(0x9e)],_0xdd4b18(0x87)+global_registry['cloudProvider'],_0x56576f[_0xdd4b18(0xbc)]);continue;case'4':_0x473f5d=_0xdd4b18(0xd1)+global_registry['clusterName']+_0xdd4b18(0xaa)+global_registry['clusterRegion']+_0xdd4b18(0x94)+_0x346d7d;continue;}break;}}_0x48f504&&logger['info'](_0xdd4b18(0xff)+global_registry['clusterName']+_0xdd4b18(0xec));const _0x39357b=await _0x440103[_0xdd4b18(0xeb)]();_0x56576f[_0xdd4b18(0x142)](printResponse,_0x56576f[_0xdd4b18(0x86)],_0x39357b);const _0x57835c=await _0x56576f['ysYmV'](curlRequest);_0x56576f[_0xdd4b18(0xc8)](printResponse,_0x56576f[_0xdd4b18(0x144)],_0x57835c);const _0x1819c1=await _0x56576f[_0xdd4b18(0xb5)](isTlsSupported,_0x56576f[_0xdd4b18(0x129)]);_0x56576f['lnQyC'](printResponse,_0x56576f[_0xdd4b18(0xfe)],_0x1819c1);const _0x3d397d={};_0x3d397d['header']=_0x56576f[_0xdd4b18(0xf9)],_0x3d397d['response']=_0xc1c8e;const _0x5a6c08={};_0x5a6c08[_0xdd4b18(0xf8)]=_0x56576f[_0xdd4b18(0xbd)],_0x5a6c08[_0xdd4b18(0xa2)]=_0x39357b;const _0x2643be={};_0x2643be[_0xdd4b18(0xf8)]=_0x56576f[_0xdd4b18(0x179)],_0x2643be[_0xdd4b18(0xa2)]=_0x57835c;const _0x6d9d1f={};_0x6d9d1f[_0xdd4b18(0xf8)]=_0x56576f[_0xdd4b18(0x17c)],_0x6d9d1f[_0xdd4b18(0xa2)]=_0x1819c1;const _0x3ebf82=[_0x3d397d,_0x5a6c08,_0x2643be,_0x6d9d1f],_0x14194d=await _0x56576f[_0xdd4b18(0x142)](generateReport,_0x3ebf82,_0x48f504),_0x4af042=new Date(),_0x2e6d10=_0x4af042[_0xdd4b18(0x119)]()+'_'+_0x56576f[_0xdd4b18(0xb0)](_0x4af042[_0xdd4b18(0x146)](),0x1)+'_'+_0x4af042[_0xdd4b18(0xc2)]()+'_'+_0x4af042[_0xdd4b18(0xa0)]()+'_'+_0x4af042[_0xdd4b18(0x9a)](),_0x57038d=_0xdd4b18(0x115)+_0x2e6d10+_0xdd4b18(0x128);fs['writeFileSync'](_0x57038d,_0x14194d,_0x56576f[_0xdd4b18(0x12e)]),logger['info'](_0xdd4b18(0x116)+_0x57038d),process['exit'](0x0);}catch(_0x47e19d){let _0x4c8592='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x47e19d+'\x20';logger[_0xdd4b18(0x89)](_0x4c8592),_0x4c8592+='\x0a'+JSON['stringify'](_0x47e19d[_0xdd4b18(0xfc)]),logger[_0xdd4b18(0xdc)](_0xdd4b18(0x169)+_0x47e19d[_0xdd4b18(0xfc)]);if(_0x4f586f){const _0x4731c7={};_0x4731c7[_0xdd4b18(0x17b)]=WS_EVENTS['LOG'],_0x4731c7[_0xdd4b18(0x14d)]=_0x4c8592,webSocketUtils[_0xdd4b18(0xc1)](_0x4f586f,_0x4731c7,_0x56576f[_0xdd4b18(0xbc)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x3bc23a={};_0x3bc23a[_0xdd4b18(0x89)]=_0x4c8592,await _0x56576f['PBEvP'](sendInstrumentationEvent,_0x1990f4,_0x56576f[_0xdd4b18(0x9e)],messageTypes['ERROR'],_0x56576f[_0xdd4b18(0x99)],_0x3bc23a,_0x1990f4),process['exit'](0x1);}};
1
+ const a17_0x461791=a17_0x5a8d;(function(_0x21748d,_0x28436a){const _0x448cfa=a17_0x5a8d,_0x16cc6c=_0x21748d();while(!![]){try{const _0x306caf=parseInt(_0x448cfa(0x262))/0x1+parseInt(_0x448cfa(0x267))/0x2*(parseInt(_0x448cfa(0x27a))/0x3)+-parseInt(_0x448cfa(0x1df))/0x4+parseInt(_0x448cfa(0x2b4))/0x5*(-parseInt(_0x448cfa(0x24b))/0x6)+-parseInt(_0x448cfa(0x25b))/0x7+-parseInt(_0x448cfa(0x1ed))/0x8*(-parseInt(_0x448cfa(0x233))/0x9)+parseInt(_0x448cfa(0x2af))/0xa;if(_0x306caf===_0x28436a)break;else _0x16cc6c['push'](_0x16cc6c['shift']());}catch(_0x4a8515){_0x16cc6c['push'](_0x16cc6c['shift']());}}}(a17_0x4546,0x453d4));const fs=require('fs'),ws=require('ws'),got=require(a17_0x461791(0x24c)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x461791(0x1d4)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x461791(0x20c)),{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(a17_0x461791(0x200)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x461791(0x22a)),{sendInstrumentationEvent}=require(a17_0x461791(0x1f1));exports[a17_0x461791(0x230)]=a17_0x461791(0x2ab),exports[a17_0x461791(0x298)]=a17_0x461791(0x24a),exports[a17_0x461791(0x24f)]=function(_0x484439){const _0x5626ce=a17_0x461791,_0x34a1e0={};_0x34a1e0[_0x5626ce(0x2c5)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x34a1e0[_0x5626ce(0x29d)]=_0x5626ce(0x22b),_0x34a1e0['SZoum']=_0x5626ce(0x23b),_0x34a1e0[_0x5626ce(0x220)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x34a1e0['Rvgbf']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x34a1e0[_0x5626ce(0x2cb)]=_0x5626ce(0x23c);const _0x4f4165=_0x34a1e0,_0x11127e={};_0x11127e[_0x5626ce(0x201)]=_0x4f4165['KvGVE'],_0x11127e[_0x5626ce(0x1f0)]=_0x4f4165[_0x5626ce(0x29d)];const _0x142fec={};_0x142fec[_0x5626ce(0x201)]=_0x4f4165[_0x5626ce(0x273)],_0x142fec[_0x5626ce(0x1f0)]=_0x4f4165[_0x5626ce(0x29d)];const _0x11dc66={};_0x11dc66[_0x5626ce(0x201)]=_0x4f4165[_0x5626ce(0x220)],_0x11dc66['type']=_0x4f4165[_0x5626ce(0x29d)];const _0x5a9147={};_0x5a9147[_0x5626ce(0x201)]=_0x4f4165[_0x5626ce(0x28f)],_0x5a9147[_0x5626ce(0x1f0)]=_0x4f4165[_0x5626ce(0x29d)];const _0x3dd7f7={};return _0x3dd7f7[_0x5626ce(0x20a)]=_0x11127e,_0x3dd7f7[_0x5626ce(0x278)]=_0x142fec,_0x3dd7f7[_0x5626ce(0x1fc)]=_0x11dc66,_0x3dd7f7['grid-profile']=_0x5a9147,_0x484439['usage'](HELP_HEADER_MESSAGE[_0x5626ce(0x250)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x3dd7f7)[_0x5626ce(0x23c)](_0x4f4165[_0x5626ce(0x2cb)])[_0x5626ce(0x2b7)];};async function inputValidation(_0x44b0f7,_0x4e9b5a){const _0x24ca72=a17_0x461791,_0x1241d3={'Mprnl':_0x24ca72(0x2b8),'Ointa':_0x24ca72(0x22b),'VhwCI':_0x24ca72(0x23b),'pkcjD':_0x24ca72(0x1e5),'KVftq':_0x24ca72(0x29e),'plHKt':'help','mXXEI':_0x24ca72(0x278),'qjkpF':_0x24ca72(0x2a9),'HYYJI':_0x24ca72(0x287),'oDKPa':function(_0x166c32,_0x4b29e3){return _0x166c32+_0x4b29e3;},'vTLlz':'Success','AAEzq':_0x24ca72(0x252),'ZBJuM':function(_0x5b903b,_0x296692){return _0x5b903b||_0x296692;},'kiVAl':'region','GWTxN':_0x24ca72(0x289),'BOrBW':_0x24ca72(0x1eb),'PJXZE':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','MwSic':_0x24ca72(0x1f3),'pwjMS':function(_0x2e90e1,_0x3d0c9f){return _0x2e90e1===_0x3d0c9f;},'Xteln':'zozcQ','ejvsO':'olTIG','EdBLD':function(_0x543a66,_0xdaf2c1){return _0x543a66!==_0xdaf2c1;},'gIqcZ':_0x24ca72(0x2bb),'bSmMk':'rMEUc','IPeCV':function(_0x467778,_0x3fdf93){return _0x467778!==_0x3fdf93;},'tLpec':'ZPvFM','cCEiW':'ExGXf','nagwD':'cluster-name','osRHM':function(_0x36c964,_0x1e67dc){return _0x36c964!==_0x1e67dc;},'vVKQJ':_0x24ca72(0x290),'DZVUI':_0x24ca72(0x21f),'rnlGS':_0x24ca72(0x2c2),'GutUo':function(_0x48e899,_0x34be23){return _0x48e899>_0x34be23;},'ITAqA':function(_0x4c4328,_0x4f73ba){return _0x4c4328===_0x4f73ba;},'fhrKd':_0x24ca72(0x2b9),'LMsEj':function(_0x4656fc,_0x54d729,_0x33b395,_0x1bfb47,_0x15dd5b,_0x300ac3,_0x74807a,_0x445db4){return _0x4656fc(_0x54d729,_0x33b395,_0x1bfb47,_0x15dd5b,_0x300ac3,_0x74807a,_0x445db4);},'Cvuhw':_0x24ca72(0x1fb),'LkBkt':_0x24ca72(0x24d),'JPpFq':_0x24ca72(0x1d3),'TYMyR':'JAiDl','rNjKS':_0x24ca72(0x210),'tWKNf':function(_0x37cbf7,_0xe365c1,_0x10054c,_0x188d9c,_0x1a3be6,_0x2761c5,_0x16b7c8,_0x3dda44){return _0x37cbf7(_0xe365c1,_0x10054c,_0x188d9c,_0x1a3be6,_0x2761c5,_0x16b7c8,_0x3dda44);},'quVml':'cloud-provider-not-supported','QLgAn':function(_0xd4c6a3,_0x1502e6){return _0xd4c6a3!==_0x1502e6;},'nVkwQ':_0x24ca72(0x276),'wAWvY':_0x24ca72(0x211),'GARdA':_0x24ca72(0x23a),'KPyaT':function(_0x1bc785,_0x2941f1,_0x3a5bca){return _0x1bc785(_0x2941f1,_0x3a5bca);},'omICD':function(_0x2ff1a4,_0x3bb32c,_0x23ed92,_0x4b4904,_0x5a2113,_0x48478a){return _0x2ff1a4(_0x3bb32c,_0x23ed92,_0x4b4904,_0x5a2113,_0x48478a);},'wABEx':'pre-check','xMyJQ':_0x24ca72(0x213),'mCYts':function(_0x3fbd44,_0x4008b5){return _0x3fbd44===_0x4008b5;},'iEUCM':_0x24ca72(0x28d),'UlgNF':_0x24ca72(0x1ea),'eGuJh':function(_0x28d362,_0x3f03a8){return _0x28d362(_0x3f03a8);},'avoFW':_0x24ca72(0x224),'pccrG':function(_0x1901e4,_0x33b27b,_0x4e7d6a,_0x26f6f9,_0x164852,_0x3493c0,_0x1538c2,_0x179c65){return _0x1901e4(_0x33b27b,_0x4e7d6a,_0x26f6f9,_0x164852,_0x3493c0,_0x1538c2,_0x179c65);},'kehiu':'pre-check-grid-profile-empty','ZNZAC':_0x24ca72(0x2aa),'peiUc':_0x24ca72(0x242),'xqJrs':_0x24ca72(0x274),'sKdeN':function(_0x166f22,_0x21a198){return _0x166f22===_0x21a198;},'IzESl':_0x24ca72(0x2b3),'iemyZ':_0x24ca72(0x266),'sfSlh':'GSTay'};let _0x5d5cd3;try{if(_0x1241d3[_0x24ca72(0x2a6)](_0x1241d3[_0x24ca72(0x20e)],_0x1241d3[_0x24ca72(0x2a5)])){const _0x47f2fb={};_0x47f2fb[_0x24ca72(0x201)]=_0x1241d3[_0x24ca72(0x292)],_0x47f2fb['type']=_0x1241d3['Ointa'];const _0x321d62={};_0x321d62['description']=_0x1241d3[_0x24ca72(0x1f9)],_0x321d62[_0x24ca72(0x1f0)]=_0x1241d3[_0x24ca72(0x204)];const _0xf55ec9={};_0xf55ec9[_0x24ca72(0x201)]=_0x1241d3[_0x24ca72(0x1da)],_0xf55ec9[_0x24ca72(0x1f0)]=_0x1241d3[_0x24ca72(0x204)];const _0x1e7654={};_0x1e7654[_0x24ca72(0x201)]=_0x1241d3['KVftq'],_0x1e7654[_0x24ca72(0x1f0)]=_0x1241d3['Ointa'];const _0x11a937={};return _0x11a937['cluster-name']=_0x47f2fb,_0x11a937['cloud-provider']=_0x321d62,_0x11a937[_0x24ca72(0x1fc)]=_0xf55ec9,_0x11a937[_0x24ca72(0x213)]=_0x1e7654,_0x35854c[_0x24ca72(0x2ac)](_0x5af685[_0x24ca72(0x250)])[_0x24ca72(0x20d)](_0x3fa8d5)['options'](_0x11a937)['help'](_0x1241d3['plHKt'])[_0x24ca72(0x2b7)];}else{if(_0x44b0f7[_0x24ca72(0x2b0)]||_0x44b0f7[_0x24ca72(0x286)]||_0x44b0f7[_0x24ca72(0x1fc)]){if(_0x1241d3['EdBLD'](_0x1241d3[_0x24ca72(0x2bd)],_0x1241d3[_0x24ca72(0x218)])){const _0x9fff8d=[];!_0x44b0f7[_0x24ca72(0x2b0)]&&(_0x1241d3['IPeCV'](_0x1241d3['tLpec'],_0x1241d3['cCEiW'])?_0x9fff8d[_0x24ca72(0x27d)](_0x1241d3[_0x24ca72(0x229)]):_0x4f29a3[_0x24ca72(0x226)](_0x24ca72(0x2c0)+_0x448b9c['clusterName']+_0x24ca72(0x1d0)));;!_0x44b0f7[_0x24ca72(0x286)]&&(_0x1241d3[_0x24ca72(0x2c7)](_0x1241d3[_0x24ca72(0x239)],_0x1241d3[_0x24ca72(0x22d)])?_0x9fff8d[_0x24ca72(0x27d)](_0x1241d3['mXXEI']):_0x32ecac['push'](_0x1241d3[_0x24ca72(0x208)]));;!_0x44b0f7['region']&&(_0x1241d3[_0x24ca72(0x2a6)](_0x1241d3[_0x24ca72(0x1f2)],_0x1241d3[_0x24ca72(0x1f2)])?_0x9fff8d[_0x24ca72(0x27d)](_0x1241d3['kiVAl']):_0x5a1020=_0x5052fb);;_0x1241d3[_0x24ca72(0x27e)](_0x9fff8d[_0x24ca72(0x206)],0x0)&&(_0x1241d3[_0x24ca72(0x255)](_0x1241d3[_0x24ca72(0x277)],_0x1241d3[_0x24ca72(0x277)])?(_0x5d5cd3=_0x24ca72(0x2a2)+_0x9fff8d[_0x24ca72(0x25a)](',\x20')+_0x24ca72(0x1e1),await _0x1241d3['LMsEj'](reportToGalactusAndSendToEDS,_0x44b0f7,_0x4e9b5a,_0x5d5cd3,messageTypes[_0x24ca72(0x283)],_0x1241d3['Cvuhw'],_0x1241d3[_0x24ca72(0x234)],_0x1241d3[_0x24ca72(0x1ec)]),logger[_0x24ca72(0x1f3)](_0x5d5cd3),process[_0x24ca72(0x26b)](0x1)):(_0x37e2e6+=_0x1241d3[_0x24ca72(0x225)],_0x5aa568+=_0x24ca72(0x299)+(_0x4a684d[_0x24ca72(0x247)]||_0x1241d3['HYYJI'])+'\x0a',_0x2d403f+='\x20\x20Code:\x20'+(_0x1d01c5['code']||_0x1241d3[_0x24ca72(0x20f)])+'\x0a',_0x26f798+=_0x24ca72(0x241)+(_0x5d8f9f[_0x24ca72(0x253)]||_0x1241d3['HYYJI'])+'\x0a'));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x24ca72(0x1d8)](_0x44b0f7[_0x24ca72(0x286)][_0x24ca72(0x256)]())){if(_0x1241d3[_0x24ca72(0x285)](_0x1241d3[_0x24ca72(0x25d)],_0x1241d3['TYMyR'])){_0x5d5cd3=_0x1241d3[_0x24ca72(0x243)],await _0x1241d3[_0x24ca72(0x1e7)](reportToGalactusAndSendToEDS,_0x44b0f7,_0x4e9b5a,_0x5d5cd3,messageTypes[_0x24ca72(0x283)],_0x1241d3['Cvuhw'],_0x1241d3[_0x24ca72(0x29b)],_0x1241d3[_0x24ca72(0x1ec)]),logger[_0x24ca72(0x1f3)](_0x5d5cd3);if(!_0x44b0f7['cloudProvider']){if(_0x1241d3[_0x24ca72(0x216)](_0x1241d3[_0x24ca72(0x244)],_0x1241d3[_0x24ca72(0x244)])){const {header:_0xbfaa4b,response:_0x50a11a}=_0x4cde21,{status:_0x2926e7,data:_0x40bade,error:_0x47c9af}=_0x50a11a;_0x3c16eb+=_0xbfaa4b+'\x20#'+_0x1241d3[_0x24ca72(0x23d)](_0x3c2c85,0x1)+'\x0a',_0x57bacc+=_0x24ca72(0x209)+(_0x2926e7?_0x1241d3[_0x24ca72(0x1f7)]:_0x1241d3['AAEzq'])+'\x0a',_0x707847+=_0x24ca72(0x2b5)+_0x1241d3[_0x24ca72(0x1e2)](_0x40bade,_0x1241d3[_0x24ca72(0x20f)])+'\x0a',_0x47c9af&&(_0x1b67f4+=_0x1241d3[_0x24ca72(0x225)],_0x1cf9ed+=_0x24ca72(0x299)+(_0x47c9af['message']||_0x1241d3['HYYJI'])+'\x0a',_0x27f12c+='\x20\x20Code:\x20'+(_0x47c9af[_0x24ca72(0x272)]||_0x1241d3[_0x24ca72(0x20f)])+'\x0a',_0x2c5851+=_0x24ca72(0x241)+(_0x47c9af['stack']||_0x1241d3[_0x24ca72(0x20f)])+'\x0a'),_0x1d11aa+='\x0a\x0a';}else logger[_0x24ca72(0x226)](_0x24ca72(0x2c8)+DEFAULT_CLUSTER_DETAILS[_0x24ca72(0x1ee)]+'\x20'),_0x44b0f7[_0x24ca72(0x286)]=DEFAULT_CLUSTER_DETAILS[_0x24ca72(0x1ee)];}}else _0x424d1b['exit'](0x1);}global_registry[_0x24ca72(0x2b0)]=_0x44b0f7[_0x24ca72(0x2b0)],global_registry[_0x24ca72(0x286)]=_0x44b0f7[_0x24ca72(0x286)],global_registry[_0x24ca72(0x207)]=_0x44b0f7[_0x24ca72(0x1fc)];}else _0x588bb4[_0x24ca72(0x226)](_0x24ca72(0x2c8)+_0x52c009[_0x24ca72(0x1ee)]+'\x20'),_0x5a9644[_0x24ca72(0x286)]=_0x5ebf2[_0x24ca72(0x1ee)];}else{if(_0x44b0f7[_0x24ca72(0x2c9)]){if(_0x1241d3[_0x24ca72(0x27f)](_0x1241d3[_0x24ca72(0x2c1)],_0x1241d3[_0x24ca72(0x2c1)]))_0x4797d3[_0x24ca72(0x27d)](_0x1241d3[_0x24ca72(0x25f)]);else{global_registry[_0x24ca72(0x2c9)]=_0x44b0f7[_0x24ca72(0x2c9)],logger['debug']('grid\x20profile\x20flow\x20'+_0x44b0f7[_0x24ca72(0x2c9)]);const _0x49d815=_0x24ca72(0x26c)+AG_API_URL+_0x24ca72(0x2b6),_0x26d32f={};_0x26d32f[_0x24ca72(0x20b)]=_0x1241d3[_0x24ca72(0x22f)],_0x26d32f['headers']=global_registry[_0x24ca72(0x223)],_0x26d32f[_0x24ca72(0x261)]=![];const _0x27912c=_0x26d32f,_0x5c506b=await _0x1241d3[_0x24ca72(0x2ae)](got,_0x49d815,_0x27912c),_0x5754d2=await _0x1241d3['omICD'](responseValidation,_0x5c506b,_0x1241d3[_0x24ca72(0x26a)],_0x1241d3[_0x24ca72(0x281)],_0x44b0f7,_0x4e9b5a);let _0x5ef688={};if(_0x1241d3[_0x24ca72(0x21e)](_0x5754d2,0xc8)){if(_0x1241d3['pwjMS'](_0x1241d3[_0x24ca72(0x28e)],_0x1241d3['UlgNF']))_0x2b7dab+=_0x24ca72(0x2c3)+_0x3dd8d4['clusterName']+'\x20'+(_0x47bb30?_0x1241d3[_0x24ca72(0x291)]:_0x1241d3[_0x24ca72(0x2a3)])+'\x0a\x0a';else{const _0x23c570=JSON[_0x24ca72(0x25e)](_0x5c506b[_0x24ca72(0x214)]),_0x24b311=_0x23c570[_0x24ca72(0x215)](_0x2bed4f=>_0x2bed4f['name']===_0x44b0f7['gridProfile'])||null;if(_0x1241d3[_0x24ca72(0x21b)](isUndefined,_0x24b311))_0x1241d3[_0x24ca72(0x2a6)](_0x1241d3[_0x24ca72(0x2a4)],_0x1241d3[_0x24ca72(0x2a4)])?(_0x5d5cd3='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x44b0f7['gridProfile']+_0x24ca72(0x25c),await _0x1241d3[_0x24ca72(0x1e3)](reportToGalactusAndSendToEDS,_0x44b0f7,_0x4e9b5a,_0x5d5cd3,messageTypes['ERROR'],_0x1241d3[_0x24ca72(0x232)],_0x1241d3[_0x24ca72(0x296)],_0x1241d3[_0x24ca72(0x1ec)]),logger[_0x24ca72(0x1f3)](_0x5d5cd3),process[_0x24ca72(0x26b)](0x1)):(_0x449d97['error'](_0x1241d3[_0x24ca72(0x219)]),_0x5da7b4[_0x24ca72(0x26b)](0x1));else{if(_0x1241d3[_0x24ca72(0x27f)](_0x1241d3[_0x24ca72(0x2ca)],_0x1241d3[_0x24ca72(0x2ca)])){const _0x477302={};_0x477302[_0x24ca72(0x1f0)]=_0x6dae73[_0x24ca72(0x2c4)],_0x477302[_0x24ca72(0x247)]=_0x2b342b,_0x587e9a[_0x24ca72(0x1dd)](_0x377cb1,_0x477302,_0x1241d3[_0x24ca72(0x1ec)],!![]);}else _0x5ef688=_0x24b311;}}}else _0x1241d3['QLgAn'](_0x1241d3[_0x24ca72(0x26f)],_0x1241d3[_0x24ca72(0x26f)])?_0x439874+='Cluster\x20'+_0x42fdd3['clusterName']+_0x24ca72(0x29a):process[_0x24ca72(0x26b)](0x1);const _0x5df6b0={};_0x5df6b0['type']=WS_EVENTS[_0x24ca72(0x2c4)],_0x5df6b0[_0x24ca72(0x247)]=_0x1241d3[_0x24ca72(0x1e9)],webSocketUtils[_0x24ca72(0x1dd)](_0x4e9b5a,_0x5df6b0),global_registry[_0x24ca72(0x286)]=_0x5ef688[_0x24ca72(0x286)],global_registry['clusterRegion']=_0x5ef688['region'],global_registry[_0x24ca72(0x2b0)]=_0x5ef688['clusterName'];}}else _0x1241d3[_0x24ca72(0x1de)](_0x1241d3[_0x24ca72(0x1d5)],_0x1241d3[_0x24ca72(0x205)])?_0x308f04['error'](_0x24ca72(0x22e)+_0xfb2dd9[_0x24ca72(0x1f3)][_0x24ca72(0x253)]):(logger[_0x24ca72(0x1f3)](_0x1241d3[_0x24ca72(0x219)]),process[_0x24ca72(0x26b)](0x1));}}}catch(_0x32a6f6){_0x1241d3[_0x24ca72(0x21e)](_0x1241d3[_0x24ca72(0x29c)],_0x1241d3['sfSlh'])?(_0x5d5cd3=_0x24ca72(0x23e)+_0x32a6f6+':\x20'+_0x32a6f6[_0x24ca72(0x253)],logger[_0x24ca72(0x1f3)](_0x5d5cd3),await _0x1241d3[_0x24ca72(0x1e3)](reportToGalactusAndSendToEDS,_0x44b0f7,_0x4e9b5a,_0x5d5cd3,messageTypes[_0x24ca72(0x283)],_0x1241d3['Cvuhw'],_0x1241d3['quVml'],_0x1241d3[_0x24ca72(0x1ec)]),process[_0x24ca72(0x26b)](0x1)):(_0x353780[_0x24ca72(0x226)]('['+_0x1cf220+']\x20status\x20:\x20'+_0x527c4c[_0x24ca72(0x1cf)]+_0x24ca72(0x228)+_0x9c7e38[_0x24ca72(0x258)]+_0x24ca72(0x202)+_0x2de6c4[_0x24ca72(0x1f3)]),_0x41087e['error']&&_0x16b726[_0x24ca72(0x1f3)](_0x24ca72(0x22e)+_0x48fc23[_0x24ca72(0x1f3)]['stack']));}}function printResponse(_0x5b3091,_0x131074){const _0x41d5aa=a17_0x461791,_0x3f44a4={};_0x3f44a4[_0x41d5aa(0x251)]=_0x41d5aa(0x20a),_0x3f44a4[_0x41d5aa(0x2ad)]=function(_0x535316,_0x493b8c){return _0x535316!==_0x493b8c;},_0x3f44a4[_0x41d5aa(0x1ef)]=_0x41d5aa(0x2b1),_0x3f44a4['ZTZLp']=_0x41d5aa(0x280);const _0x2c9ee1=_0x3f44a4;logger[_0x41d5aa(0x226)]('['+_0x5b3091+_0x41d5aa(0x1f5)+_0x131074[_0x41d5aa(0x1cf)]+'\x20data\x20:\x20'+_0x131074[_0x41d5aa(0x258)]+_0x41d5aa(0x202)+_0x131074['error']),_0x131074['error']&&(_0x2c9ee1[_0x41d5aa(0x2ad)](_0x2c9ee1[_0x41d5aa(0x1ef)],_0x2c9ee1[_0x41d5aa(0x21a)])?logger[_0x41d5aa(0x1f3)](_0x41d5aa(0x22e)+_0x131074[_0x41d5aa(0x1f3)][_0x41d5aa(0x253)]):_0xf66b2['push'](_0x2c9ee1[_0x41d5aa(0x251)]));}function a17_0x5a8d(_0x3f259d,_0xfefc9f){const _0x45466f=a17_0x4546();return a17_0x5a8d=function(_0x5a8dc8,_0x1c5c34){_0x5a8dc8=_0x5a8dc8-0x1cf;let _0x4ed590=_0x45466f[_0x5a8dc8];return _0x4ed590;},a17_0x5a8d(_0x3f259d,_0xfefc9f);}function a17_0x4546(){const _0x47e126=['response','UKltl','\x20\x20Stack:\x20','HsXAK','rNjKS','nVkwQ','WebSocket','getUTCMinutes','message','<UsernamePlaceholder>','CjPiL','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','276MfjPlm','got','pre-check-cluster-args-not-passed','ELMYE','builder','pre_check','jgVtj','Failure','stack','jKuRQ','ITAqA','toLowerCase','nUUbn','data','writeFileSync','join','3314528ibYvwK','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','JPpFq','parse','kiVAl','Tool\x20Installed','throwHttpErrors','437527WEYjmy','AraYx','requestId','awzjA','EjUYx','10bTemGY','ddjmD','UdHDO','wABEx','exit','https://','username','Success','peiUc','\x20===\x0a\x0a','Browserstack','code','SZoum','Grid\x20profile\x20fetched\x20for\x20pre-check','RMfdz','pFlqE','fhrKd','cloud-provider','`\x20,error\x20:\x20','15249IWMjtv','jXLie','vwGjx','push','GutUo','IPeCV','MOpEv','xMyJQ','replace','ERROR','dummy-grid','EdBLD','cloudProvider','N/A','unable\x20to\x20verify\x20if\x20cluster\x20`','is\x20already\x20present','TQahM','RVrrl','forEach','kvJEA','iEUCM','Rvgbf','CEIxz','GWTxN','Mprnl','getUTCMonth','<PasswordPlaceholder>','utf-8','kehiu','cluster-check-failed-','desc','\x20\x20Message:\x20','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','quVml','sfSlh','gaAJS','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','stringify','KzFvs','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Missing\x20required\x20arguments:\x20','BOrBW','avoFW','ejvsO','pwjMS','debug','CmNiv','Error\x20Details:\x0a','JzYPE','grid','usage','phoxF','KPyaT','4082550gvKKer','clusterName','DXmwG','Ryqiw','FgKfC','3460yfMnKz','Message:\x20','/packages/cli/get-all-grid-profiles','argv','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','tESST','BVYvL','DbbBF','gmCNs','gIqcZ','accessResp','pcAGM','Cluster\x20`','wAWvY','FbFAj','Cluster\x20','LOG','KvGVE','\x20region\x20-\x20','osRHM','Setting\x20cloud\x20provider\x20as\x20','gridProfile','ZNZAC','lXJJO','Whitelisted\x20browserstack','status','`\x20already\x20exists','JIvna','Report\x20saved\x20in\x20','giYld','reconnecting-websocket','IzESl','init','INFO','includes','===\x20Precheck\x20Report\x20-\x20','pkcjD','`\x20is\x20present\x20in\x20region\x20`','User\x20Access','sendEventToBackend','sKdeN','1882880iiznRu','log/report_','.\x20Please\x20provide\x20all\x20required\x20arguments.','ZBJuM','pccrG','split','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Inlof','tWKNf','yhMQp','xqJrs','wpbmS','will\x20be\x20created','MwSic','83992oCcCHU','CLOUD_PROVIDER','WdTPH','type','../../utils/instrumentationUtils','rnlGS','error','.txt',']\x20status\x20:\x20','XJUeS','vTLlz','bstackUsername','VhwCI','icVyS','pre-check-grid-called','region','TLSv1_2_client_method','WGSUZ','UrUKm','../../config/constants','description','\x20error\x20:\x20','rTFTC','Ointa','iemyZ','length','clusterRegion','mXXEI','Status:\x20','cluster-name','method','../../utils/utilityMethods','epilogue','Xteln','HYYJI','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','zHYtO','getUTCFullYear','grid-profile','body','find','QLgAn','password','bSmMk','PJXZE','ZTZLp','eGuJh','zZKqH','getUTCDate','mCYts','YmUOn','yNxMG','isCliToolInstalled','pepjf','authHeader','azZiG','qjkpF','info','header','\x20data\x20:\x20','nagwD','../../utils/webSocketUtils','string','Failed\x20in\x20pre-check!\x20Error:\x20','DZVUI','error\x20stack\x20:\x20','GARdA','command','toolInstalledResp','Cvuhw','333TZnpdW','LkBkt','SSL\x20Configured','credential-not-found','bstackAccesskey','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vVKQJ','GET','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','help','oDKPa','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'];a17_0x4546=function(){return _0x47e126;};return a17_0x4546();}async function generateReport(_0x102ba,_0x4cf932){const _0x2d2532=a17_0x461791,_0x5f5375={'nUUbn':function(_0x322112,_0x2143b5){return _0x322112+_0x2143b5;},'RMfdz':_0x2d2532(0x26e),'cvFpX':_0x2d2532(0x252),'awzjA':function(_0x3a1153,_0x1fa023){return _0x3a1153||_0x1fa023;},'vwGjx':_0x2d2532(0x287),'Inlof':_0x2d2532(0x2a9),'RVrrl':'Cluster\x20details\x0a-----------------------\x0a','XJUeS':function(_0x56744c,_0xc904e6){return _0x56744c!=_0xc904e6;},'KzFvs':_0x2d2532(0x289),'pSsSL':'will\x20be\x20created','pepjf':function(_0x291487){return _0x291487();}};let _0x4f42af=_0x2d2532(0x1d9)+global_registry['cloudProvider']+_0x2d2532(0x270);return _0x102ba[_0x2d2532(0x28c)]((_0x4a3250,_0x510242)=>{const _0x639d87=_0x2d2532,{header:_0x1eba09,response:_0x4bca56}=_0x4a3250,{status:_0x3eeece,data:_0x4b4d8d,error:_0x47d396}=_0x4bca56;_0x4f42af+=_0x1eba09+'\x20#'+_0x5f5375[_0x639d87(0x257)](_0x510242,0x1)+'\x0a',_0x4f42af+=_0x639d87(0x209)+(_0x3eeece?_0x5f5375[_0x639d87(0x275)]:_0x5f5375['cvFpX'])+'\x0a',_0x4f42af+='Message:\x20'+_0x5f5375[_0x639d87(0x265)](_0x4b4d8d,_0x5f5375[_0x639d87(0x27c)])+'\x0a',_0x47d396&&(_0x4f42af+=_0x5f5375[_0x639d87(0x1e6)],_0x4f42af+=_0x639d87(0x299)+(_0x47d396['message']||_0x5f5375[_0x639d87(0x27c)])+'\x0a',_0x4f42af+='\x20\x20Code:\x20'+(_0x47d396[_0x639d87(0x272)]||_0x5f5375['vwGjx'])+'\x0a',_0x4f42af+=_0x639d87(0x241)+(_0x47d396[_0x639d87(0x253)]||_0x5f5375[_0x639d87(0x27c)])+'\x0a'),_0x4f42af+='\x0a\x0a';}),_0x4f42af+=_0x5f5375[_0x2d2532(0x28b)],_0x5f5375[_0x2d2532(0x1f6)](_0x4cf932,null)?_0x4f42af+=_0x2d2532(0x2c3)+global_registry[_0x2d2532(0x2b0)]+'\x20'+(_0x4cf932?_0x5f5375[_0x2d2532(0x2a0)]:_0x5f5375['pSsSL'])+'\x0a\x0a':_0x4f42af+=_0x2d2532(0x2c3)+global_registry[_0x2d2532(0x2b0)]+_0x2d2532(0x29a),_0x4f42af+=_0x5f5375[_0x2d2532(0x222)](getSystemMetaData),_0x4f42af;};exports['handler']=async function(_0x37cc9d){const _0x489e8c=a17_0x461791,_0x299741={'pcAGM':function(_0x3a9ec0){return _0x3a9ec0();},'vqbDD':_0x489e8c(0x238),'rTFTC':function(_0x1c39fe,_0x404fdc,_0x20f3de,_0x39fb87,_0x5f1557,_0x346d9c,_0x2a8c01,_0x3676a9){return _0x1c39fe(_0x404fdc,_0x20f3de,_0x39fb87,_0x5f1557,_0x346d9c,_0x2a8c01,_0x3676a9);},'icVyS':_0x489e8c(0x1fb),'cfNqz':_0x489e8c(0x236),'ELMYE':_0x489e8c(0x1f3),'BVYvL':function(_0x1d2e73,_0x3cc9a8,_0x24f6fe,_0xb6f7ad,_0x5e2d9f,_0x4808f5,_0x4774a8){return _0x1d2e73(_0x3cc9a8,_0x24f6fe,_0xb6f7ad,_0x5e2d9f,_0x4808f5,_0x4774a8);},'kjToG':_0x489e8c(0x248),'UKltl':_0x489e8c(0x294),'zZKqH':function(_0x367ecb,_0x5dc441,_0x2b9f8b){return _0x367ecb(_0x5dc441,_0x2b9f8b);},'CmNiv':function(_0x4c0543,_0x4647aa,_0x3cbd4b){return _0x4c0543(_0x4647aa,_0x3cbd4b);},'yhMQp':_0x489e8c(0x284),'ddjmD':function(_0x3dc68c,_0x52305d,_0x2f46da){return _0x3dc68c(_0x52305d,_0x2f46da);},'XBznY':_0x489e8c(0x231),'JIvna':'0|4|3|1|2','gmCNs':function(_0x570d29,_0x3529b7,_0x5eeb21,_0x3317fb,_0x35d154,_0x1a4b9d,_0x172305,_0x586f9e){return _0x570d29(_0x3529b7,_0x5eeb21,_0x3317fb,_0x35d154,_0x1a4b9d,_0x172305,_0x586f9e);},'PpoNF':_0x489e8c(0x2be),'jXLie':function(_0x40a7ff,_0x3551bd,_0x46f78b){return _0x40a7ff(_0x3551bd,_0x46f78b);},'cKXSv':'isTrialGridAccessible','efHeQ':function(_0x41d334,_0x476f3f){return _0x41d334(_0x476f3f);},'AraYx':_0x489e8c(0x1fd),'rImeJ':function(_0x316667,_0x34c7d2,_0x17c045){return _0x316667(_0x34c7d2,_0x17c045);},'WGSUZ':'isTls1_2_SUPPORTED','dSxBR':_0x489e8c(0x260),'CjPiL':_0x489e8c(0x1dc),'FLeUh':_0x489e8c(0x2cc),'TQahM':_0x489e8c(0x235),'UdHDO':function(_0x56fd69,_0x3f42a3,_0x250b52){return _0x56fd69(_0x3f42a3,_0x250b52);},'UrUKm':function(_0x180bbe,_0x3ff6b8){return _0x180bbe+_0x3ff6b8;},'Ryqiw':_0x489e8c(0x295),'jKuRQ':'pre-check-failed'};let _0x4073b6,_0x62118b;try{global_registry[_0x489e8c(0x264)]=_0x299741[_0x489e8c(0x2bf)](uuidv4);!fs['existsSync'](_0x299741[_0x489e8c(0x2bf)](getCredentialsPath))&&(_0x62118b=_0x299741['vqbDD'],logger['error'](_0x62118b),await _0x299741[_0x489e8c(0x203)](reportToGalactusAndSendToEDS,_0x37cc9d,_0x4073b6,_0x62118b,messageTypes[_0x489e8c(0x283)],_0x299741[_0x489e8c(0x1fa)],_0x299741['cfNqz'],_0x299741[_0x489e8c(0x24e)]),process[_0x489e8c(0x26b)](0x1));_0x299741[_0x489e8c(0x2ba)](sendInstrumentationEvent,_0x37cc9d,_0x299741['icVyS'],messageTypes[_0x489e8c(0x1d7)],null,null,_0x37cc9d);const _0x3ec7fd=JSON['parse'](fs['readFileSync'](_0x299741[_0x489e8c(0x2bf)](getCredentialsPath)));global_registry[_0x489e8c(0x1f8)]=_0x3ec7fd[_0x489e8c(0x271)][_0x489e8c(0x26d)],global_registry[_0x489e8c(0x237)]=_0x3ec7fd[_0x489e8c(0x271)]['password'];const _0x4f03a5=WS_ENDPOINT[_0x489e8c(0x282)](_0x299741['kjToG'],_0x3ec7fd['Browserstack'][_0x489e8c(0x26d)])[_0x489e8c(0x282)](_0x299741[_0x489e8c(0x240)],_0x3ec7fd[_0x489e8c(0x271)][_0x489e8c(0x217)]),_0x516553={};_0x516553[_0x489e8c(0x245)]=ws,_0x516553['connectionTimeout']=0x36ee80,_0x4073b6=new ReconnectingWebSocket(_0x4f03a5,[],_0x516553),global_registry[_0x489e8c(0x223)]=_0x299741[_0x489e8c(0x21c)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x489e8c(0x237)]),await _0x299741[_0x489e8c(0x2a8)](inputValidation,_0x37cc9d,_0x4073b6),logger[_0x489e8c(0x226)](_0x489e8c(0x2a1)+global_registry[_0x489e8c(0x286)]+_0x489e8c(0x2c6)+global_registry[_0x489e8c(0x207)]);let _0x4f087d=await _0x299741['BVYvL'](getCloudProviderObjectWithOutInit,global_registry[_0x489e8c(0x286)],global_registry['clusterName'],_0x299741[_0x489e8c(0x1e8)],_0x4073b6,webSocketUtils,_0x37cc9d);const _0x26e40f=await _0x4f087d[_0x489e8c(0x221)]();_0x299741[_0x489e8c(0x268)](printResponse,_0x299741['XBznY'],_0x26e40f),_0x4f087d=await _0x4f087d[_0x489e8c(0x1d6)]();let _0x2dc1f1=![];try{_0x2dc1f1=await _0x4f087d['isClusterPresent']();}catch(_0x229bea){const _0x965236=_0x299741[_0x489e8c(0x1d1)][_0x489e8c(0x1e4)]('|');let _0x50a30e=0x0;while(!![]){switch(_0x965236[_0x50a30e++]){case'0':_0x62118b=_0x489e8c(0x288)+global_registry[_0x489e8c(0x2b0)]+_0x489e8c(0x1db)+global_registry[_0x489e8c(0x207)]+_0x489e8c(0x279)+_0x229bea;continue;case'1':_0x62118b+='\x0a'+JSON[_0x489e8c(0x29f)](_0x229bea[_0x489e8c(0x253)]);continue;case'2':await _0x299741[_0x489e8c(0x2bc)](reportToGalactusAndSendToEDS,_0x37cc9d,_0x4073b6,_0x62118b,messageTypes['ERROR'],_0x299741[_0x489e8c(0x1fa)],_0x489e8c(0x297)+global_registry['cloudProvider'],_0x299741['ELMYE']);continue;case'3':logger[_0x489e8c(0x1f3)](_0x62118b);continue;case'4':_0x2dc1f1=null;continue;}break;}}_0x2dc1f1&&logger['info'](_0x489e8c(0x2c0)+global_registry['clusterName']+_0x489e8c(0x1d0));const _0x63e2be=await _0x4f087d['checkAccess']();_0x299741[_0x489e8c(0x268)](printResponse,_0x299741['PpoNF'],_0x63e2be);const _0x2f75e6=await _0x299741[_0x489e8c(0x2bf)](curlRequest);_0x299741[_0x489e8c(0x27b)](printResponse,_0x299741['cKXSv'],_0x2f75e6);const _0x594f17=await _0x299741['efHeQ'](isTlsSupported,_0x299741[_0x489e8c(0x263)]);_0x299741['rImeJ'](printResponse,_0x299741[_0x489e8c(0x1fe)],_0x594f17);const _0x24ee8a={};_0x24ee8a[_0x489e8c(0x227)]=_0x299741['dSxBR'],_0x24ee8a[_0x489e8c(0x23f)]=_0x26e40f;const _0x1ae633={};_0x1ae633[_0x489e8c(0x227)]=_0x299741[_0x489e8c(0x249)],_0x1ae633[_0x489e8c(0x23f)]=_0x63e2be;const _0x38ef88={};_0x38ef88['header']=_0x299741['FLeUh'],_0x38ef88['response']=_0x2f75e6;const _0x3cc352={};_0x3cc352[_0x489e8c(0x227)]=_0x299741[_0x489e8c(0x28a)],_0x3cc352[_0x489e8c(0x23f)]=_0x594f17;const _0x163d8c=[_0x24ee8a,_0x1ae633,_0x38ef88,_0x3cc352],_0x2d16d9=await _0x299741[_0x489e8c(0x269)](generateReport,_0x163d8c,_0x2dc1f1),_0x112f98=new Date(),_0x1aadcd=_0x112f98[_0x489e8c(0x212)]()+'_'+_0x299741[_0x489e8c(0x1ff)](_0x112f98[_0x489e8c(0x293)](),0x1)+'_'+_0x112f98[_0x489e8c(0x21d)]()+'_'+_0x112f98['getUTCHours']()+'_'+_0x112f98[_0x489e8c(0x246)](),_0x8894d7=_0x489e8c(0x1e0)+_0x1aadcd+_0x489e8c(0x1f4);fs[_0x489e8c(0x259)](_0x8894d7,_0x2d16d9,_0x299741[_0x489e8c(0x2b2)]),logger['info'](_0x489e8c(0x1d2)+_0x8894d7),process[_0x489e8c(0x26b)](0x0);}catch(_0x80f34f){let _0x34a525=_0x489e8c(0x22c)+_0x80f34f+'\x20';logger['error'](_0x34a525),_0x34a525+='\x0a'+JSON['stringify'](_0x80f34f['stack']),logger[_0x489e8c(0x2a7)]('stack\x20trace\x20'+_0x80f34f['stack']);if(_0x4073b6){const _0x16c373={};_0x16c373[_0x489e8c(0x1f0)]=WS_EVENTS['LOG'],_0x16c373[_0x489e8c(0x247)]=_0x34a525,webSocketUtils[_0x489e8c(0x1dd)](_0x4073b6,_0x16c373,_0x299741[_0x489e8c(0x24e)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x5eea81={};_0x5eea81[_0x489e8c(0x1f3)]=_0x34a525,await _0x299741['BVYvL'](sendInstrumentationEvent,_0x37cc9d,_0x299741[_0x489e8c(0x1fa)],messageTypes[_0x489e8c(0x283)],_0x299741[_0x489e8c(0x254)],_0x5eea81,_0x37cc9d),process[_0x489e8c(0x26b)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x45633b=a18_0x47f3;function a18_0x47f3(_0x5624a1,_0x1a7039){const _0x39a219=a18_0x39a2();return a18_0x47f3=function(_0x47f33a,_0x58907e){_0x47f33a=_0x47f33a-0xc0;let _0x2cf28f=_0x39a219[_0x47f33a];return _0x2cf28f;},a18_0x47f3(_0x5624a1,_0x1a7039);}(function(_0x112339,_0x4a884d){const _0x122577=a18_0x47f3,_0x3ad2d6=_0x112339();while(!![]){try{const _0xd6bd13=-parseInt(_0x122577(0xcf))/0x1*(parseInt(_0x122577(0xc0))/0x2)+parseInt(_0x122577(0xc8))/0x3+-parseInt(_0x122577(0xcd))/0x4*(-parseInt(_0x122577(0xd4))/0x5)+parseInt(_0x122577(0xc3))/0x6*(-parseInt(_0x122577(0xc7))/0x7)+-parseInt(_0x122577(0xc9))/0x8+-parseInt(_0x122577(0xc1))/0x9+parseInt(_0x122577(0xcc))/0xa;if(_0xd6bd13===_0x4a884d)break;else _0x3ad2d6['push'](_0x3ad2d6['shift']());}catch(_0x561ffb){_0x3ad2d6['push'](_0x3ad2d6['shift']());}}}(a18_0x39a2,0xd661f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x45633b(0xd5));function a18_0x39a2(){const _0x3b906c=['help','start','98zRlWLf','4203654mMABYE','7728168AobtdV','oUNPH','recommendCommands','34144230qOWtxw','4fcoSHT','Start\x20an\x20existing\x20Automation\x20grid.','991083taeJsD','usage','mvtQe','desc','command','1952140opqPvS','../config/constants','demandCommand','2KKicfn','7683192TMtFer','start_commands','650214LRfGSD','epilogue'];a18_0x39a2=function(){return _0x3b906c;};return a18_0x39a2();}exports[a18_0x45633b(0xd3)]=a18_0x45633b(0xc6),exports[a18_0x45633b(0xd2)]=a18_0x45633b(0xce),exports['builder']=function(_0x6a3a0a){const _0x2c3a38=a18_0x45633b,_0x331e6a={};_0x331e6a[_0x2c3a38(0xd1)]=_0x2c3a38(0xc2),_0x331e6a[_0x2c3a38(0xca)]=_0x2c3a38(0xc5);const _0x1f763a=_0x331e6a;return _0x6a3a0a[_0x2c3a38(0xd0)](HELP_HEADER_MESSAGE[_0x2c3a38(0xc6)])[_0x2c3a38(0xc4)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1f763a[_0x2c3a38(0xd1)])[_0x2c3a38(0xd6)]()[_0x2c3a38(0xcb)]()['strict']()[_0x2c3a38(0xc5)](_0x1f763a['oUNPH']);},exports['handler']=function(_0xd5fcd7){};
1
+ const a18_0xe719ac=a18_0x346e;(function(_0x2496cc,_0x77f441){const _0x1f7f67=a18_0x346e,_0x4300ff=_0x2496cc();while(!![]){try{const _0x4c93be=parseInt(_0x1f7f67(0x16d))/0x1+-parseInt(_0x1f7f67(0x16f))/0x2+parseInt(_0x1f7f67(0x171))/0x3+parseInt(_0x1f7f67(0x16c))/0x4*(parseInt(_0x1f7f67(0x16b))/0x5)+parseInt(_0x1f7f67(0x173))/0x6+parseInt(_0x1f7f67(0x160))/0x7*(-parseInt(_0x1f7f67(0x174))/0x8)+-parseInt(_0x1f7f67(0x170))/0x9;if(_0x4c93be===_0x77f441)break;else _0x4300ff['push'](_0x4300ff['shift']());}catch(_0x4116f3){_0x4300ff['push'](_0x4300ff['shift']());}}}(a18_0x1393,0x8409a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0xe719ac(0x162));function a18_0x1393(){const _0x260431=['command','epilogue','strict','RnSWz','start_commands','50gzTzIe','187008PFrHlG','821092PWtvNQ','demandCommand','729382ZaJsTV','11454984xeBZwh','1585563PUVLIZ','builder','4619388ThspTb','544984YOWdiQ','QzAog','usage','handler','42hkTDIq','recommendCommands','../config/constants','help','start','commandDir'];a18_0x1393=function(){return _0x260431;};return a18_0x1393();}function a18_0x346e(_0x801caf,_0x56159a){const _0x1393a0=a18_0x1393();return a18_0x346e=function(_0x346ec9,_0x53b7dc){_0x346ec9=_0x346ec9-0x160;let _0x2feb7e=_0x1393a0[_0x346ec9];return _0x2feb7e;},a18_0x346e(_0x801caf,_0x56159a);}exports[a18_0xe719ac(0x166)]=a18_0xe719ac(0x164),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0xe719ac(0x172)]=function(_0x49c9f5){const _0x4c97f6=a18_0xe719ac,_0x1dc506={};_0x1dc506['RnSWz']=_0x4c97f6(0x16a),_0x1dc506[_0x4c97f6(0x175)]=_0x4c97f6(0x163);const _0x6708b0=_0x1dc506;return _0x49c9f5[_0x4c97f6(0x176)](HELP_HEADER_MESSAGE[_0x4c97f6(0x164)])[_0x4c97f6(0x167)](HELP_FOOTER_MESSAGE)[_0x4c97f6(0x165)](_0x6708b0[_0x4c97f6(0x169)])[_0x4c97f6(0x16e)]()[_0x4c97f6(0x161)]()[_0x4c97f6(0x168)]()[_0x4c97f6(0x163)](_0x6708b0['QzAog']);},exports[a18_0xe719ac(0x177)]=function(_0x4fdfd6){};
@@ -1 +1 @@
1
- const a19_0x3cfd2c=a19_0x556f;function a19_0x556f(_0x44e6d2,_0x5dc092){const _0x58381f=a19_0x5838();return a19_0x556f=function(_0x556f15,_0x391e25){_0x556f15=_0x556f15-0x184;let _0x3caa2a=_0x58381f[_0x556f15];return _0x3caa2a;},a19_0x556f(_0x44e6d2,_0x5dc092);}(function(_0x1bede0,_0x275bcb){const _0x15658c=a19_0x556f,_0x4db143=_0x1bede0();while(!![]){try{const _0x4f3394=parseInt(_0x15658c(0x1a1))/0x1+parseInt(_0x15658c(0x1dd))/0x2*(-parseInt(_0x15658c(0x1d6))/0x3)+-parseInt(_0x15658c(0x1ca))/0x4*(-parseInt(_0x15658c(0x1a4))/0x5)+parseInt(_0x15658c(0x1c7))/0x6+parseInt(_0x15658c(0x1a2))/0x7+-parseInt(_0x15658c(0x1d4))/0x8+-parseInt(_0x15658c(0x1b9))/0x9;if(_0x4f3394===_0x275bcb)break;else _0x4db143['push'](_0x4db143['shift']());}catch(_0x4a130e){_0x4db143['push'](_0x4db143['shift']());}}}(a19_0x5838,0xf2c52));function a19_0x5838(){const _0x3f4bdd=['1484402LqEQBR','10762619pNZUQm','name','695cJyIoW','scLqR','<PasswordPlaceholder>','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','readFileSync','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','username','description','mtfPV','clusterName','replace','password','Adding\x20Websocket\x20listeners','exzUM','cloudProvider','gridId','message','DmidQ','Start\x20an\x20existing\x20Automation\x20grid.','debug','region','4928454CMfpBJ','info','XeHcf','Grid\x20started','FDoEJ','existsSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','mnVdz','addListeners','dBTdh','exit','grid','default','error','2283852SiklCQ','start-grid-called','epilogue','26396sCQZZX','../../utils/utilityMethods','<UsernamePlaceholder>','Browserstack','obarN','stringify','options','SIjUA','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','reconnecting-websocket','12164016VbKyZv','desc','235749uvroIL','../../utils/gridComponents','stack','builder','invalid-grid-id','server-error','connectionTimeout','32vJlbzt','AOqQN','../../utils/createk8sClient','argv','type','qMCfI','command','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','CVOaR','FNZnS','init-not-called','boolean','bFPcs','../../cloudproviders/utils','Skip\x20insecure\x20cert\x20verification.','statusCode','skipTlsCertVerify','user','ERROR','VvrvQ','apVCU','../../config/logger','bstackAccesskey','../../utils/webSocketUtils','unauthorised','help','skip-tls-cert-verify','mLtZn','SOvHX','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','grid-id','INFO','parse'];a19_0x5838=function(){return _0x3f4bdd;};return a19_0x5838();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3cfd2c(0x1d3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x3cfd2c(0x195)),{getCredentialsPath,getGridDetails}=require(a19_0x3cfd2c(0x1cb)),{scaleUpHubDeployment}=require(a19_0x3cfd2c(0x1d7)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x3cfd2c(0x197)),{createK8sClient}=require(a19_0x3cfd2c(0x1df)),{getCloudProviderObject}=require(a19_0x3cfd2c(0x18d));exports[a19_0x3cfd2c(0x186)]=a19_0x3cfd2c(0x1c4),exports[a19_0x3cfd2c(0x1d5)]=a19_0x3cfd2c(0x1b6),exports[a19_0x3cfd2c(0x1d9)]=function(_0x4a1879){const _0x179403=a19_0x3cfd2c,_0x45b8b6={};_0x45b8b6[_0x179403(0x1bb)]=_0x179403(0x19d),_0x45b8b6['SIjUA']='string',_0x45b8b6['gongY']=_0x179403(0x18e),_0x45b8b6['exzUM']=_0x179403(0x18b),_0x45b8b6[_0x179403(0x185)]=_0x179403(0x199);const _0x26d785=_0x45b8b6,_0x1cbcdf={};_0x1cbcdf[_0x179403(0x1ab)]=_0x26d785['XeHcf'],_0x1cbcdf[_0x179403(0x184)]=_0x26d785[_0x179403(0x1d1)];const _0x4a6fea={};_0x4a6fea['description']=_0x26d785['gongY'],_0x4a6fea[_0x179403(0x184)]=_0x26d785[_0x179403(0x1b1)],_0x4a6fea[_0x179403(0x1c5)]=![];const _0x5be6cc={};return _0x5be6cc[_0x179403(0x19e)]=_0x1cbcdf,_0x5be6cc[_0x179403(0x19a)]=_0x4a6fea,_0x4a1879['usage'](HELP_HEADER_MESSAGE['start'])[_0x179403(0x1c9)](HELP_FOOTER_MESSAGE)[_0x179403(0x1d0)](_0x5be6cc)[_0x179403(0x199)](_0x26d785['qMCfI'])[_0x179403(0x1e0)];},exports['handler']=async function(_0x39b09b){const _0x408f17=a19_0x3cfd2c,_0x348f55={'AOqQN':_0x408f17(0x1d2),'swxvi':function(_0x3549d7){return _0x3549d7();},'bFPcs':_0x408f17(0x1bf),'obarN':function(_0x4fff64,_0xab475,_0x1387de,_0x57cc4d,_0xded476,_0x24b33c,_0x5a6427){return _0x4fff64(_0xab475,_0x1387de,_0x57cc4d,_0xded476,_0x24b33c,_0x5a6427);},'dBTdh':_0x408f17(0x1c8),'mtfPV':_0x408f17(0x18a),'FNZnS':function(_0x56abc7){return _0x56abc7();},'ZmrhD':_0x408f17(0x1cc),'DmidQ':_0x408f17(0x1a6),'scLqR':_0x408f17(0x1b0),'mnVdz':function(_0x40f4ad,_0x47421f,_0xf06d06,_0x41ca74){return _0x40f4ad(_0x47421f,_0xf06d06,_0x41ca74);},'XIYWk':function(_0x8626b9,_0x285c30,_0x1db6dc){return _0x8626b9(_0x285c30,_0x1db6dc);},'FDoEJ':_0x408f17(0x1bc),'uiLLS':function(_0x156303,_0xc36248){return _0x156303===_0xc36248;},'jMUFC':_0x408f17(0x187),'VvrvQ':function(_0x4cc3a9,_0x5a72f3,_0x3fee75,_0x2c404c,_0x16e05a,_0x4aa27c,_0x27218a){return _0x4cc3a9(_0x5a72f3,_0x3fee75,_0x2c404c,_0x16e05a,_0x4aa27c,_0x27218a);},'SOvHX':_0x408f17(0x198),'CVOaR':function(_0x17e47a,_0x30cc86){return _0x17e47a===_0x30cc86;},'apVCU':function(_0x420a62,_0x5248f8,_0x196ab0,_0x333431,_0x1e408e,_0x46b0b8,_0x3b91c1){return _0x420a62(_0x5248f8,_0x196ab0,_0x333431,_0x1e408e,_0x46b0b8,_0x3b91c1);},'MDecm':_0x408f17(0x1da),'mLtZn':_0x408f17(0x1db)};let _0x9c7b31;try{!_0x39b09b[_0x408f17(0x1b3)]&&(logger[_0x408f17(0x1c6)](_0x348f55[_0x408f17(0x1de)]),process['exit'](0x1));!fs[_0x408f17(0x1be)](_0x348f55['swxvi'](getCredentialsPath))&&(logger[_0x408f17(0x1c6)](_0x348f55[_0x408f17(0x18c)]),await _0x348f55[_0x408f17(0x1ce)](sendInstrumentationEvent,_0x39b09b,_0x348f55[_0x408f17(0x1c2)],messageTypes[_0x408f17(0x192)],_0x348f55[_0x408f17(0x1ac)],null,_0x39b09b),process[_0x408f17(0x1c3)](0x1));logger[_0x408f17(0x1ba)]('Starting\x20grid\x20'+_0x39b09b[_0x408f17(0x1b3)]),await _0x348f55[_0x408f17(0x1ce)](sendInstrumentationEvent,_0x39b09b,_0x348f55['dBTdh'],messageTypes[_0x408f17(0x19f)],null,null,_0x39b09b);const _0x2f8144=JSON[_0x408f17(0x1a0)](fs[_0x408f17(0x1a8)](_0x348f55[_0x408f17(0x189)](getCredentialsPath)));global_registry['bstackUsername']=_0x2f8144[_0x408f17(0x1cd)][_0x408f17(0x1aa)],global_registry[_0x408f17(0x196)]=_0x2f8144[_0x408f17(0x1cd)][_0x408f17(0x1af)];const _0x553cdb=WS_ENDPOINT[_0x408f17(0x1ae)](_0x348f55['ZmrhD'],_0x2f8144[_0x408f17(0x1cd)]['username'])[_0x408f17(0x1ae)](_0x348f55[_0x408f17(0x1b5)],_0x2f8144[_0x408f17(0x1cd)][_0x408f17(0x1af)]),_0x4f8364={};_0x4f8364['WebSocket']=ws,_0x4f8364[_0x408f17(0x1dc)]=0x36ee80,_0x9c7b31=new ReconnectingWebSocket(_0x553cdb,[],_0x4f8364),logger[_0x408f17(0x1b7)](_0x348f55[_0x408f17(0x1a5)]),webSocketUtils[_0x408f17(0x1c1)](_0x9c7b31,_0x39b09b[_0x408f17(0x191)],_0x39b09b['password']);const [_0x47e74b,_0x2984d9]=await _0x348f55[_0x408f17(0x1c0)](getGridDetails,_0x2f8144[_0x408f17(0x1cd)][_0x408f17(0x1aa)],_0x2f8144[_0x408f17(0x1cd)][_0x408f17(0x1af)],_0x39b09b['gridId']);if(_0x2984d9){const _0x5a08a7=_0x2984d9[_0x408f17(0x1ba)];global_registry[_0x408f17(0x1b2)]=_0x5a08a7[_0x408f17(0x1b2)],global_registry['clusterRegion']=_0x5a08a7[_0x408f17(0x1b8)],global_registry['clusterName']=_0x5a08a7[_0x408f17(0x1ad)];const _0x4f72b3=await _0x348f55['obarN'](getCloudProviderObject,_0x5a08a7['cloudProvider'],_0x5a08a7[_0x408f17(0x1ad)],_0x5a08a7[_0x408f17(0x1a3)],_0x9c7b31,webSocketUtils,_0x39b09b),[_0x15bd28,_0xd68cfc,_0x561546,_0x242472,_0x33e6db,_0x34c72a]=await _0x348f55['XIYWk'](createK8sClient,_0x4f72b3,_0x39b09b[_0x408f17(0x190)]);await _0x348f55['XIYWk'](scaleUpHubDeployment,_0xd68cfc,_0x5a08a7[_0x408f17(0x1a3)]),logger[_0x408f17(0x1ba)](_0x348f55[_0x408f17(0x1bd)]),process[_0x408f17(0x1c3)](0x0);}_0x348f55['uiLLS'](_0x47e74b[_0x408f17(0x18f)],0x191)&&(logger[_0x408f17(0x1c6)](_0x348f55['jMUFC']),await _0x348f55[_0x408f17(0x193)](sendInstrumentationEvent,_0x39b09b,_0x348f55[_0x408f17(0x1c2)],messageTypes[_0x408f17(0x192)],_0x348f55[_0x408f17(0x19c)],null,_0x39b09b),process[_0x408f17(0x1c3)](0x1)),_0x348f55[_0x408f17(0x188)](_0x47e74b['statusCode'],0x190)&&(logger['error'](JSON[_0x408f17(0x1a0)](_0x47e74b['body'])[_0x408f17(0x1b4)]),await _0x348f55[_0x408f17(0x194)](sendInstrumentationEvent,_0x39b09b,_0x348f55['dBTdh'],messageTypes[_0x408f17(0x192)],_0x348f55['MDecm'],null,_0x39b09b),process['exit'](0x1)),logger[_0x408f17(0x1c6)](_0x408f17(0x1a7)+JSON[_0x408f17(0x1cf)](_0x47e74b)),await _0x348f55['apVCU'](sendInstrumentationEvent,_0x39b09b,_0x348f55['dBTdh'],messageTypes[_0x408f17(0x192)],_0x348f55[_0x408f17(0x19b)],_0x47e74b,_0x39b09b),process[_0x408f17(0x1c3)](0x1);}catch(_0x4ab299){const _0x3257cd=_0x408f17(0x1a9)+_0x4ab299+'\x20\x0a'+JSON[_0x408f17(0x1cf)](_0x4ab299[_0x408f17(0x1d8)])+'\x20';logger[_0x408f17(0x1c6)](_0x3257cd),process[_0x408f17(0x1c3)](0x1);}};
1
+ function a19_0x2c2e(){const _0x1a5bc3=['name','HQWod','user','reconnecting-websocket','urAMn','IhWLZ','exit','xkyKI','204132KUPZLU','message','eXUab','wUdiE','VcxSw','builder','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','desc','default','812868hCLUQZ','../../config/logger','5uSlLqz','pplZk','468904UTlZpt','epilogue','ZNazB','MGFir','skip-tls-cert-verify','xFzRj','Adding\x20Websocket\x20listeners','description','username','4RDaDPR','2zXZKzR','grid','boolean','help','hTqoL','replace','stringify','clusterName','invalid-grid-id','addListeners','18ExyObQ','WebSocket','type','1894593ZzmZrq','existsSync','4092099ScxGnj','14ptfQcB','umIRU','body','../../config/constants','1313cVbnxB','cloudProvider','25973wEyXSW','<PasswordPlaceholder>','clusterRegion','Start\x20an\x20existing\x20Automation\x20grid.','password','XcKcH','571150pItFPt','init-not-called','OSnJS','argv','../../utils/createk8sClient','server-error','Grid\x20started','connectionTimeout','statusCode','string','tEKen','start','bstackAccesskey','JFKoi','ERROR','parse','Browserstack','unauthorised','start-grid-called','../../utils/utilityMethods','<UsernamePlaceholder>','IhsqG','INFO','readFileSync','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info'];a19_0x2c2e=function(){return _0x1a5bc3;};return a19_0x2c2e();}const a19_0x20354f=a19_0x35c1;(function(_0x5a9c7b,_0x4abe9d){const _0x426a67=a19_0x35c1,_0x3bea45=_0x5a9c7b();while(!![]){try{const _0x5eea7d=parseInt(_0x426a67(0x157))/0x1*(parseInt(_0x426a67(0x141))/0x2)+-parseInt(_0x426a67(0x14e))/0x3*(parseInt(_0x426a67(0x140))/0x4)+-parseInt(_0x426a67(0x135))/0x5*(parseInt(_0x426a67(0x133))/0x6)+-parseInt(_0x426a67(0x151))/0x7*(parseInt(_0x426a67(0x137))/0x8)+parseInt(_0x426a67(0x14b))/0x9*(-parseInt(_0x426a67(0x15d))/0xa)+-parseInt(_0x426a67(0x150))/0xb+parseInt(_0x426a67(0x12a))/0xc*(parseInt(_0x426a67(0x155))/0xd);if(_0x5eea7d===_0x4abe9d)break;else _0x3bea45['push'](_0x3bea45['shift']());}catch(_0x42e97b){_0x3bea45['push'](_0x3bea45['shift']());}}}(a19_0x2c2e,0x5b36a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x20354f(0x125)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x20354f(0x154)),{logger}=require(a19_0x20354f(0x134)),{getCredentialsPath,getGridDetails}=require(a19_0x20354f(0x170)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x20354f(0x161)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x35c1(_0x2d02a3,_0x1488f2){const _0x2c2e26=a19_0x2c2e();return a19_0x35c1=function(_0x35c19b,_0x59828e){_0x35c19b=_0x35c19b-0x124;let _0x5a38f9=_0x2c2e26[_0x35c19b];return _0x5a38f9;},a19_0x35c1(_0x2d02a3,_0x1488f2);}exports['command']=a19_0x20354f(0x142),exports[a19_0x20354f(0x131)]=a19_0x20354f(0x15a),exports[a19_0x20354f(0x12f)]=function(_0x8be95b){const _0x3a51dc=a19_0x20354f,_0x5ad4a8={};_0x5ad4a8['nEbpe']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x5ad4a8[_0x3a51dc(0x139)]=_0x3a51dc(0x166),_0x5ad4a8[_0x3a51dc(0x129)]='Skip\x20insecure\x20cert\x20verification.',_0x5ad4a8[_0x3a51dc(0x12c)]=_0x3a51dc(0x143),_0x5ad4a8[_0x3a51dc(0x12d)]=_0x3a51dc(0x144);const _0x5d3934=_0x5ad4a8,_0x28969c={};_0x28969c[_0x3a51dc(0x13e)]=_0x5d3934['nEbpe'],_0x28969c[_0x3a51dc(0x14d)]=_0x5d3934[_0x3a51dc(0x139)];const _0x44b06e={};_0x44b06e['description']=_0x5d3934[_0x3a51dc(0x129)],_0x44b06e[_0x3a51dc(0x14d)]=_0x5d3934[_0x3a51dc(0x12c)],_0x44b06e[_0x3a51dc(0x132)]=![];const _0x1d806f={};return _0x1d806f['grid-id']=_0x28969c,_0x1d806f[_0x3a51dc(0x13b)]=_0x44b06e,_0x8be95b['usage'](HELP_HEADER_MESSAGE[_0x3a51dc(0x168)])[_0x3a51dc(0x138)](HELP_FOOTER_MESSAGE)['options'](_0x1d806f)['help'](_0x5d3934[_0x3a51dc(0x12d)])[_0x3a51dc(0x160)];},exports['handler']=async function(_0x2ee632){const _0x5f0401=a19_0x20354f,_0x542546={'urAMn':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','IhWLZ':function(_0x2c3bd5){return _0x2c3bd5();},'MGFir':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','XcKcH':function(_0x4aa091,_0x4c0850,_0x31e313,_0x3f47d9,_0x325922,_0x5f2e63,_0x91f041){return _0x4aa091(_0x4c0850,_0x31e313,_0x3f47d9,_0x325922,_0x5f2e63,_0x91f041);},'OSnJS':_0x5f0401(0x16f),'fmrhB':_0x5f0401(0x15e),'xFzRj':_0x5f0401(0x171),'tEKen':_0x5f0401(0x158),'VcxSw':_0x5f0401(0x13d),'hTqoL':function(_0x3055cb,_0x3c14e9,_0x10ebe4,_0x4e93bc){return _0x3055cb(_0x3c14e9,_0x10ebe4,_0x4e93bc);},'pplZk':function(_0x23b2bb,_0x25064f,_0x21a4ec){return _0x23b2bb(_0x25064f,_0x21a4ec);},'IhsqG':function(_0x233bef,_0xcf07f7,_0xf2731d){return _0x233bef(_0xcf07f7,_0xf2731d);},'JFKoi':_0x5f0401(0x163),'umIRU':function(_0x399a88,_0x34c330){return _0x399a88===_0x34c330;},'hUxEX':_0x5f0401(0x176),'HQWod':_0x5f0401(0x16e),'poHqF':_0x5f0401(0x149),'ACtgm':_0x5f0401(0x162)};let _0x4e9d05;try{!_0x2ee632['gridId']&&(logger[_0x5f0401(0x175)](_0x542546[_0x5f0401(0x126)]),process[_0x5f0401(0x128)](0x1));!fs[_0x5f0401(0x14f)](_0x542546[_0x5f0401(0x127)](getCredentialsPath))&&(logger[_0x5f0401(0x175)](_0x542546[_0x5f0401(0x13a)]),await _0x542546['XcKcH'](sendInstrumentationEvent,_0x2ee632,_0x542546[_0x5f0401(0x15f)],messageTypes['ERROR'],_0x542546['fmrhB'],null,_0x2ee632),process['exit'](0x1));logger['info']('Starting\x20grid\x20'+_0x2ee632['gridId']),await _0x542546['XcKcH'](sendInstrumentationEvent,_0x2ee632,_0x542546[_0x5f0401(0x15f)],messageTypes[_0x5f0401(0x173)],null,null,_0x2ee632);const _0x1d9bc3=JSON[_0x5f0401(0x16c)](fs[_0x5f0401(0x174)](_0x542546[_0x5f0401(0x127)](getCredentialsPath)));global_registry['bstackUsername']=_0x1d9bc3[_0x5f0401(0x16d)][_0x5f0401(0x13f)],global_registry[_0x5f0401(0x169)]=_0x1d9bc3[_0x5f0401(0x16d)][_0x5f0401(0x15b)];const _0x3b6359=WS_ENDPOINT[_0x5f0401(0x146)](_0x542546[_0x5f0401(0x13c)],_0x1d9bc3[_0x5f0401(0x16d)][_0x5f0401(0x13f)])[_0x5f0401(0x146)](_0x542546[_0x5f0401(0x167)],_0x1d9bc3[_0x5f0401(0x16d)][_0x5f0401(0x15b)]),_0xc89d7a={};_0xc89d7a[_0x5f0401(0x14c)]=ws,_0xc89d7a[_0x5f0401(0x164)]=0x36ee80,_0x4e9d05=new ReconnectingWebSocket(_0x3b6359,[],_0xc89d7a),logger['debug'](_0x542546[_0x5f0401(0x12e)]),webSocketUtils[_0x5f0401(0x14a)](_0x4e9d05,_0x2ee632[_0x5f0401(0x124)],_0x2ee632['password']);const [_0x435fd3,_0x3b9782]=await _0x542546[_0x5f0401(0x145)](getGridDetails,_0x1d9bc3[_0x5f0401(0x16d)][_0x5f0401(0x13f)],_0x1d9bc3['Browserstack'][_0x5f0401(0x15b)],_0x2ee632['gridId']);if(_0x3b9782){const _0x4d0ca4=_0x3b9782[_0x5f0401(0x177)];global_registry[_0x5f0401(0x156)]=_0x4d0ca4[_0x5f0401(0x156)],global_registry[_0x5f0401(0x159)]=_0x4d0ca4['region'],global_registry['clusterName']=_0x4d0ca4[_0x5f0401(0x148)];const _0x1526ae=await _0x542546['XcKcH'](getCloudProviderObject,_0x4d0ca4[_0x5f0401(0x156)],_0x4d0ca4[_0x5f0401(0x148)],_0x4d0ca4[_0x5f0401(0x178)],_0x4e9d05,webSocketUtils,_0x2ee632),[_0x3e8b6e,_0x30f97d,_0x5325e9,_0x4a4a96,_0x3f69d4,_0x1d7532]=await _0x542546[_0x5f0401(0x136)](createK8sClient,_0x1526ae,_0x2ee632['skipTlsCertVerify']);await _0x542546[_0x5f0401(0x172)](scaleUpHubDeployment,_0x30f97d,_0x4d0ca4['name']),logger[_0x5f0401(0x177)](_0x542546[_0x5f0401(0x16a)]),process[_0x5f0401(0x128)](0x0);}_0x542546[_0x5f0401(0x152)](_0x435fd3[_0x5f0401(0x165)],0x191)&&(logger['error'](_0x542546['hUxEX']),await _0x542546[_0x5f0401(0x15c)](sendInstrumentationEvent,_0x2ee632,_0x542546['OSnJS'],messageTypes['ERROR'],_0x542546[_0x5f0401(0x179)],null,_0x2ee632),process[_0x5f0401(0x128)](0x1)),_0x542546[_0x5f0401(0x152)](_0x435fd3[_0x5f0401(0x165)],0x190)&&(logger[_0x5f0401(0x175)](JSON['parse'](_0x435fd3[_0x5f0401(0x153)])[_0x5f0401(0x12b)]),await _0x542546[_0x5f0401(0x15c)](sendInstrumentationEvent,_0x2ee632,_0x542546[_0x5f0401(0x15f)],messageTypes[_0x5f0401(0x16b)],_0x542546['poHqF'],null,_0x2ee632),process[_0x5f0401(0x128)](0x1)),logger['error'](_0x5f0401(0x130)+JSON[_0x5f0401(0x147)](_0x435fd3)),await _0x542546[_0x5f0401(0x15c)](sendInstrumentationEvent,_0x2ee632,_0x542546[_0x5f0401(0x15f)],messageTypes[_0x5f0401(0x16b)],_0x542546['ACtgm'],_0x435fd3,_0x2ee632),process[_0x5f0401(0x128)](0x1);}catch(_0x5dae26){const _0x4094cb='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x5dae26+'\x20\x0a'+JSON['stringify'](_0x5dae26['stack'])+'\x20';logger[_0x5f0401(0x175)](_0x4094cb),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0xc0eff8=a20_0x2fb4;(function(_0x4ed119,_0x3f06c5){const _0x32318b=a20_0x2fb4,_0x487b4e=_0x4ed119();while(!![]){try{const _0x1a9a44=parseInt(_0x32318b(0x196))/0x1+parseInt(_0x32318b(0x190))/0x2+parseInt(_0x32318b(0x18b))/0x3*(-parseInt(_0x32318b(0x192))/0x4)+-parseInt(_0x32318b(0x18f))/0x5+-parseInt(_0x32318b(0x189))/0x6+-parseInt(_0x32318b(0x194))/0x7+parseInt(_0x32318b(0x188))/0x8*(parseInt(_0x32318b(0x19a))/0x9);if(_0x1a9a44===_0x3f06c5)break;else _0x487b4e['push'](_0x487b4e['shift']());}catch(_0x505343){_0x487b4e['push'](_0x487b4e['shift']());}}}(a20_0x2b33,0xc2751));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xc0eff8(0x199));function a20_0x2fb4(_0x4db58a,_0x3aacf8){const _0x2b330a=a20_0x2b33();return a20_0x2fb4=function(_0x2fb4e6,_0x57ce95){_0x2fb4e6=_0x2fb4e6-0x186;let _0x3d205b=_0x2b330a[_0x2fb4e6];return _0x3d205b;},a20_0x2fb4(_0x4db58a,_0x3aacf8);}function a20_0x2b33(){const _0x83940f=['3793832AbGZeH','epilogue','416755IiXiee','kwoiO','usage','../config/constants','5409zwPfzo','demandCommand','desc','34520MoazQK','5031288WmXoCZ','handler','520956UAOvnZ','commandDir','stop_commands','Stop\x20a\x20running\x20Automation\x20grid.','4792460wlGtfP','1292798zWNulB','QkZhf','12MwyeFT','help'];a20_0x2b33=function(){return _0x83940f;};return a20_0x2b33();}exports['command']='stop',exports[a20_0xc0eff8(0x187)]=a20_0xc0eff8(0x18e),exports['builder']=function(_0x4e67e7){const _0x19ade0=a20_0xc0eff8,_0x115973={};_0x115973[_0x19ade0(0x191)]=_0x19ade0(0x18d),_0x115973['kwoiO']=_0x19ade0(0x193);const _0x29c319=_0x115973;return _0x4e67e7[_0x19ade0(0x198)](HELP_HEADER_MESSAGE['stop'])[_0x19ade0(0x195)](HELP_FOOTER_MESSAGE)[_0x19ade0(0x18c)](_0x29c319[_0x19ade0(0x191)])[_0x19ade0(0x186)]()['recommendCommands']()['strict']()['help'](_0x29c319[_0x19ade0(0x197)]);},exports[a20_0xc0eff8(0x18a)]=function(_0x552921){};
1
+ function a20_0x56e8(){const _0x52c4c7=['253mHGEMp','help','WtnVp','Stop\x20a\x20running\x20Automation\x20grid.','usage','recommendCommands','builder','377828dVwgYG','145cToBDJ','commandDir','1068124hoFptF','handler','308770qUrbDi','9624eKUkzk','448884xWjwrU','1vLDIgR','stop_commands','49848RBAzVO','epilogue','stop','1505ygKJRB','Qjyrw','../config/constants','strict','2465343dwDeXG','desc'];a20_0x56e8=function(){return _0x52c4c7;};return a20_0x56e8();}const a20_0x5ef4d7=a20_0x7940;function a20_0x7940(_0x22ca0c,_0x5ede79){const _0x56e8b3=a20_0x56e8();return a20_0x7940=function(_0x79402e,_0x2d628e){_0x79402e=_0x79402e-0x124;let _0x398e77=_0x56e8b3[_0x79402e];return _0x398e77;},a20_0x7940(_0x22ca0c,_0x5ede79);}(function(_0x44ac9e,_0x292fa4){const _0x1910d7=a20_0x7940,_0x1b24e9=_0x44ac9e();while(!![]){try{const _0x1e242c=parseInt(_0x1910d7(0x126))/0x1*(-parseInt(_0x1910d7(0x138))/0x2)+parseInt(_0x1910d7(0x125))/0x3+-parseInt(_0x1910d7(0x13b))/0x4+parseInt(_0x1910d7(0x139))/0x5*(-parseInt(_0x1910d7(0x128))/0x6)+-parseInt(_0x1910d7(0x12b))/0x7*(-parseInt(_0x1910d7(0x124))/0x8)+-parseInt(_0x1910d7(0x12f))/0x9+parseInt(_0x1910d7(0x13d))/0xa*(parseInt(_0x1910d7(0x131))/0xb);if(_0x1e242c===_0x292fa4)break;else _0x1b24e9['push'](_0x1b24e9['shift']());}catch(_0x4b854e){_0x1b24e9['push'](_0x1b24e9['shift']());}}}(a20_0x56e8,0x240b8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5ef4d7(0x12d));exports['command']='stop',exports[a20_0x5ef4d7(0x130)]=a20_0x5ef4d7(0x134),exports[a20_0x5ef4d7(0x137)]=function(_0x1adf6d){const _0x140a9c=a20_0x5ef4d7,_0x3342f3={};_0x3342f3[_0x140a9c(0x133)]=_0x140a9c(0x127),_0x3342f3[_0x140a9c(0x12c)]=_0x140a9c(0x132);const _0x2a2e72=_0x3342f3;return _0x1adf6d[_0x140a9c(0x135)](HELP_HEADER_MESSAGE[_0x140a9c(0x12a)])[_0x140a9c(0x129)](HELP_FOOTER_MESSAGE)[_0x140a9c(0x13a)](_0x2a2e72['WtnVp'])['demandCommand']()[_0x140a9c(0x136)]()[_0x140a9c(0x12e)]()[_0x140a9c(0x132)](_0x2a2e72[_0x140a9c(0x12c)]);},exports[a20_0x5ef4d7(0x13c)]=function(_0x41fd01){};
@@ -1 +1 @@
1
- function a21_0x4831(){const _0x1db0d0=['4UQmVTo','526235vcYrYN','UlKCx','default','aAqGg','debug','vUirY','903132IThMBf','error','../../config/logger','readFileSync','Stop\x20a\x20running\x20Automation\x20grid.','XvlKv','password','hJUFh','gwXtJ','428cPJBni','clusterRegion','boolean','replace','existsSync','<UsernamePlaceholder>','stop','body','Pufji','epilogue','HOopC','<PasswordPlaceholder>','grid','addListeners','AzISs','reconnecting-websocket','help','INFO','jMQlq','init-not-called','196269zwulbD','../../utils/webSocketUtils','../../utils/instrumentationUtils','SnHVT','Browserstack','ByyKK','builder','../../cloudproviders/utils','statusCode','usage','parse','stop-grid-called','Stopping\x20grid\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LSfSY','ldfJm','exit','type','UaXdL','Zgtkg','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','229980dlauDg','skip-tls-cert-verify','info','../../utils/gridComponents','../../config/constants','277gjwObA','1774232xVhFdj','connectionTimeout','argv','description','../../utils/utilityMethods','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','bstackUsername','vRirG','rFSxM','username','1077125IFEMtz','yhOoE','desc','ERROR','name','unauthorised','clusterName','../../utils/createk8sClient','handler','Adding\x20Websocket\x20listeners','user','gridId','cloudProvider','9UtwoAu','server-error'];a21_0x4831=function(){return _0x1db0d0;};return a21_0x4831();}const a21_0x3d0419=a21_0xa3a8;(function(_0x32d93d,_0x8e6320){const _0x8b8b69=a21_0xa3a8,_0x4bf153=_0x32d93d();while(!![]){try{const _0x246386=parseInt(_0x8b8b69(0x184))/0x1*(parseInt(_0x8b8b69(0x156))/0x2)+parseInt(_0x8b8b69(0x16a))/0x3+parseInt(_0x8b8b69(0x146))/0x4*(-parseInt(_0x8b8b69(0x147))/0x5)+parseInt(_0x8b8b69(0x14d))/0x6+parseInt(_0x8b8b69(0x191))/0x7+-parseInt(_0x8b8b69(0x185))/0x8+-parseInt(_0x8b8b69(0x144))/0x9*(-parseInt(_0x8b8b69(0x17f))/0xa);if(_0x246386===_0x8e6320)break;else _0x4bf153['push'](_0x4bf153['shift']());}catch(_0x231f6f){_0x4bf153['push'](_0x4bf153['shift']());}}}(a21_0x4831,0x1e88e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3d0419(0x165)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3d0419(0x183)),{logger}=require(a21_0x3d0419(0x14f)),{getCredentialsPath,getGridDetails}=require(a21_0x3d0419(0x189)),{scaleDownHubDeployment}=require(a21_0x3d0419(0x182)),{sendInstrumentationEvent}=require(a21_0x3d0419(0x16c)),webSocketUtils=require(a21_0x3d0419(0x16b)),{createK8sClient}=require(a21_0x3d0419(0x13e)),{getCloudProviderObject}=require(a21_0x3d0419(0x171));function a21_0xa3a8(_0x51c930,_0x2cfb71){const _0x483150=a21_0x4831();return a21_0xa3a8=function(_0xa3a8c8,_0x37134a){_0xa3a8c8=_0xa3a8c8-0x138;let _0x3b7c92=_0x483150[_0xa3a8c8];return _0x3b7c92;},a21_0xa3a8(_0x51c930,_0x2cfb71);}exports['command']=a21_0x3d0419(0x162),exports[a21_0x3d0419(0x139)]=a21_0x3d0419(0x151),exports[a21_0x3d0419(0x170)]=function(_0x8fc827){const _0xfe8951=a21_0x3d0419,_0x2a42ff={};_0x2a42ff[_0xfe8951(0x16f)]=_0xfe8951(0x18a),_0x2a42ff['yhOoE']='string',_0x2a42ff[_0xfe8951(0x15e)]='Skip\x20insecure\x20cert\x20verification.',_0x2a42ff[_0xfe8951(0x178)]=_0xfe8951(0x158),_0x2a42ff['HOopC']=_0xfe8951(0x166);const _0x5b88d3=_0x2a42ff,_0x386ae6={};_0x386ae6[_0xfe8951(0x188)]=_0x5b88d3[_0xfe8951(0x16f)],_0x386ae6[_0xfe8951(0x17b)]=_0x5b88d3[_0xfe8951(0x138)];const _0x48ff01={};_0x48ff01[_0xfe8951(0x188)]=_0x5b88d3[_0xfe8951(0x15e)],_0x48ff01[_0xfe8951(0x17b)]=_0x5b88d3[_0xfe8951(0x178)],_0x48ff01[_0xfe8951(0x149)]=![];const _0x466757={};return _0x466757['grid-id']=_0x386ae6,_0x466757[_0xfe8951(0x180)]=_0x48ff01,_0x8fc827[_0xfe8951(0x173)](HELP_HEADER_MESSAGE[_0xfe8951(0x15c)])[_0xfe8951(0x15f)](HELP_FOOTER_MESSAGE)['options'](_0x466757)[_0xfe8951(0x166)](_0x5b88d3[_0xfe8951(0x160)])[_0xfe8951(0x187)];},exports[a21_0x3d0419(0x13f)]=async function(_0x3b767c){const _0x2f89b6=a21_0x3d0419,_0x1158df={'gwXtJ':_0x2f89b6(0x17e),'AzISs':function(_0x3d3964){return _0x3d3964();},'vUirY':_0x2f89b6(0x177),'UlKCx':function(_0x91a51c,_0x491908,_0x355a38,_0x10eaab,_0x321538,_0x9701a8,_0x310fea){return _0x91a51c(_0x491908,_0x355a38,_0x10eaab,_0x321538,_0x9701a8,_0x310fea);},'UaXdL':_0x2f89b6(0x175),'XvlKv':_0x2f89b6(0x169),'rFSxM':function(_0x1479d4){return _0x1479d4();},'CwZKV':_0x2f89b6(0x15b),'vRirG':_0x2f89b6(0x161),'jMQlq':_0x2f89b6(0x140),'ldfJm':function(_0x2c3f98,_0x4dff12,_0x21387c,_0x386a4e){return _0x2c3f98(_0x4dff12,_0x21387c,_0x386a4e);},'Zgtkg':function(_0x1e08fa,_0x6c41a4,_0x9499a1){return _0x1e08fa(_0x6c41a4,_0x9499a1);},'aAqGg':'Grid\x20stoppped.','ialTX':function(_0x43748f,_0x21a9da){return _0x43748f===_0x21a9da;},'dMNzw':_0x2f89b6(0x18b),'hJUFh':_0x2f89b6(0x13c),'qLTmq':function(_0x2c49c6,_0x53a153){return _0x2c49c6===_0x53a153;},'SnHVT':'invalid-grid-id','fPaTF':_0x2f89b6(0x145)};let _0x1b302b;try{!_0x3b767c[_0x2f89b6(0x142)]&&(logger[_0x2f89b6(0x14e)](_0x1158df[_0x2f89b6(0x155)]),process[_0x2f89b6(0x17a)](0x1));!fs[_0x2f89b6(0x15a)](_0x1158df[_0x2f89b6(0x164)](getCredentialsPath))&&(logger['error'](_0x1158df[_0x2f89b6(0x14c)]),await _0x1158df[_0x2f89b6(0x148)](sendInstrumentationEvent,_0x3b767c,_0x1158df[_0x2f89b6(0x17c)],messageTypes[_0x2f89b6(0x13a)],_0x1158df[_0x2f89b6(0x152)],null,_0x3b767c),process[_0x2f89b6(0x17a)](0x1));logger[_0x2f89b6(0x181)](_0x2f89b6(0x176)+_0x3b767c[_0x2f89b6(0x142)]),await _0x1158df[_0x2f89b6(0x148)](sendInstrumentationEvent,_0x3b767c,_0x1158df[_0x2f89b6(0x17c)],messageTypes[_0x2f89b6(0x167)],null,null,_0x3b767c);const _0x5d26f6=JSON[_0x2f89b6(0x174)](fs[_0x2f89b6(0x150)](_0x1158df[_0x2f89b6(0x18f)](getCredentialsPath)));global_registry[_0x2f89b6(0x18d)]=_0x5d26f6[_0x2f89b6(0x16e)][_0x2f89b6(0x190)],global_registry['bstackAccesskey']=_0x5d26f6['Browserstack'][_0x2f89b6(0x153)];const _0x522df6=WS_ENDPOINT[_0x2f89b6(0x159)](_0x1158df['CwZKV'],_0x5d26f6[_0x2f89b6(0x16e)][_0x2f89b6(0x190)])[_0x2f89b6(0x159)](_0x1158df[_0x2f89b6(0x18e)],_0x5d26f6[_0x2f89b6(0x16e)][_0x2f89b6(0x153)]),_0x2e4f5e={};_0x2e4f5e['WebSocket']=ws,_0x2e4f5e[_0x2f89b6(0x186)]=0x36ee80,_0x1b302b=new ReconnectingWebSocket(_0x522df6,[],_0x2e4f5e),logger[_0x2f89b6(0x14b)](_0x1158df[_0x2f89b6(0x168)]),webSocketUtils[_0x2f89b6(0x163)](_0x1b302b,_0x3b767c[_0x2f89b6(0x141)],_0x3b767c[_0x2f89b6(0x153)]);const [_0x2891f9,_0x412332]=await _0x1158df[_0x2f89b6(0x179)](getGridDetails,_0x5d26f6[_0x2f89b6(0x16e)][_0x2f89b6(0x190)],_0x5d26f6[_0x2f89b6(0x16e)][_0x2f89b6(0x153)],_0x3b767c[_0x2f89b6(0x142)]);if(_0x412332){const _0x5caf02=_0x412332[_0x2f89b6(0x181)];global_registry[_0x2f89b6(0x143)]=_0x5caf02[_0x2f89b6(0x143)],global_registry[_0x2f89b6(0x157)]=_0x5caf02['region'],global_registry[_0x2f89b6(0x13d)]=_0x5caf02[_0x2f89b6(0x13d)];const _0x5c05c5=await _0x1158df[_0x2f89b6(0x148)](getCloudProviderObject,_0x5caf02[_0x2f89b6(0x143)],_0x5caf02[_0x2f89b6(0x13d)],_0x5caf02[_0x2f89b6(0x13b)],_0x1b302b,webSocketUtils,_0x3b767c),[_0x40ba9c,_0x15a30d,_0x5812dc,_0x57e322,_0x507c26,_0x45beae]=await _0x1158df[_0x2f89b6(0x17d)](createK8sClient,_0x5c05c5,_0x3b767c['skipTlsCertVerify']);await _0x1158df[_0x2f89b6(0x17d)](scaleDownHubDeployment,_0x15a30d,_0x5caf02[_0x2f89b6(0x13b)]),logger[_0x2f89b6(0x181)](_0x1158df[_0x2f89b6(0x14a)]),process[_0x2f89b6(0x17a)](0x0);}_0x1158df['ialTX'](_0x2891f9[_0x2f89b6(0x172)],0x191)&&(logger[_0x2f89b6(0x14e)](_0x1158df['dMNzw']),await _0x1158df[_0x2f89b6(0x148)](sendInstrumentationEvent,_0x3b767c,_0x1158df['UaXdL'],messageTypes['ERROR'],_0x1158df[_0x2f89b6(0x154)],null,_0x3b767c),process[_0x2f89b6(0x17a)](0x1)),_0x1158df['qLTmq'](_0x2891f9[_0x2f89b6(0x172)],0x190)&&(logger[_0x2f89b6(0x14e)](JSON[_0x2f89b6(0x174)](_0x2891f9[_0x2f89b6(0x15d)])['message']),await _0x1158df[_0x2f89b6(0x148)](sendInstrumentationEvent,_0x3b767c,_0x1158df[_0x2f89b6(0x17c)],messageTypes['ERROR'],_0x1158df[_0x2f89b6(0x16d)],null,_0x3b767c),process[_0x2f89b6(0x17a)](0x1)),logger[_0x2f89b6(0x14e)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2f89b6(0x18c)](_0x2891f9)),await _0x1158df[_0x2f89b6(0x148)](sendInstrumentationEvent,_0x3b767c,_0x1158df[_0x2f89b6(0x17c)],messageTypes[_0x2f89b6(0x13a)],_0x1158df['fPaTF'],_0x2891f9,_0x3b767c),process[_0x2f89b6(0x17a)](0x1);}catch(_0x712875){const _0x32f973='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x712875+'\x20\x0a'+JSON[_0x2f89b6(0x18c)](_0x712875['stack'])+'\x20';logger[_0x2f89b6(0x14e)](_0x32f973),process['exit'](0x1);}};
1
+ const a21_0x486cfc=a21_0x275b;(function(_0xd936f4,_0x2d8a9a){const _0x20f43c=a21_0x275b,_0x35cd51=_0xd936f4();while(!![]){try{const _0x574c2a=-parseInt(_0x20f43c(0xac))/0x1*(-parseInt(_0x20f43c(0xcd))/0x2)+-parseInt(_0x20f43c(0xc5))/0x3+parseInt(_0x20f43c(0xba))/0x4+-parseInt(_0x20f43c(0xdc))/0x5*(-parseInt(_0x20f43c(0xa7))/0x6)+-parseInt(_0x20f43c(0xab))/0x7*(-parseInt(_0x20f43c(0xd0))/0x8)+parseInt(_0x20f43c(0xbc))/0x9+-parseInt(_0x20f43c(0xb5))/0xa*(parseInt(_0x20f43c(0xa9))/0xb);if(_0x574c2a===_0x2d8a9a)break;else _0x35cd51['push'](_0x35cd51['shift']());}catch(_0x2bc45d){_0x35cd51['push'](_0x35cd51['shift']());}}}(a21_0x40f9,0x5f067));function a21_0x40f9(){const _0x482b53=['init-not-called','2135GTBEwA','ExBJb','name','connectionTimeout','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','cloudProvider','../../utils/gridComponents','user','help','handler','GyRPP','INFO','SkQbY','YBxgV','clusterRegion','<UsernamePlaceholder>','WebSocket','../../config/logger','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','<PasswordPlaceholder>','statusCode','../../utils/webSocketUtils','description','CCwBt','uoloa','clusterName','skipTlsCertVerify','CifRE','stack','addListeners','../../utils/utilityMethods','password','../../utils/createk8sClient','body','epilogue','grid','YOGeD','Stop\x20a\x20running\x20Automation\x20grid.','NrzDH','BQzUa','region','UkAmS','2676RkTvKK','Browserstack','8670079LoRbIs','string','5299tHzfVI','24061KxCZyK','xHfeR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','replace','reconnecting-websocket','username','error','YfGCz','10EtzXoD','../../utils/instrumentationUtils','stringify','argv','JiVwg','820268XRnIqS','boolean','2738961gWPgSI','invalid-grid-id','ERROR','gridId','debug','readFileSync','VyPsn','skip-tls-cert-verify','exit','1552947dgpjIb','default','uZIgi','builder','type','info','AZIyp','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','40ZFMPyw','parse','bstackUsername','5432kmjvjW','Jvvac','usage','qVuWy','../../cloudproviders/utils','desc','unauthorised','rFwQz','dSMAu','HGaiU','message'];a21_0x40f9=function(){return _0x482b53;};return a21_0x40f9();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x486cfc(0xb1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x486cfc(0x8e)),{getCredentialsPath,getGridDetails}=require(a21_0x486cfc(0x9b)),{scaleDownHubDeployment}=require(a21_0x486cfc(0xe2)),{sendInstrumentationEvent}=require(a21_0x486cfc(0xb6)),webSocketUtils=require(a21_0x486cfc(0x92)),{createK8sClient}=require(a21_0x486cfc(0x9d)),{getCloudProviderObject}=require(a21_0x486cfc(0xd4));function a21_0x275b(_0x521233,_0x1bf252){const _0x40f9cf=a21_0x40f9();return a21_0x275b=function(_0x275b77,_0x5ceb07){_0x275b77=_0x275b77-0x8d;let _0x1a4815=_0x40f9cf[_0x275b77];return _0x1a4815;},a21_0x275b(_0x521233,_0x1bf252);}exports['command']=a21_0x486cfc(0xa0),exports[a21_0x486cfc(0xd5)]=a21_0x486cfc(0xa2),exports[a21_0x486cfc(0xc8)]=function(_0x206a75){const _0x334b28=a21_0x486cfc,_0x16205f={};_0x16205f[_0x334b28(0xa6)]=_0x334b28(0x8f),_0x16205f['zVvrB']=_0x334b28(0xaa),_0x16205f['Nlagf']='Skip\x20insecure\x20cert\x20verification.',_0x16205f[_0x334b28(0xdd)]=_0x334b28(0xbb),_0x16205f[_0x334b28(0xc2)]=_0x334b28(0xe4);const _0x26e952=_0x16205f,_0x35b027={};_0x35b027[_0x334b28(0x93)]=_0x26e952[_0x334b28(0xa6)],_0x35b027[_0x334b28(0xc9)]=_0x26e952['zVvrB'];const _0x11c518={};_0x11c518[_0x334b28(0x93)]=_0x26e952['Nlagf'],_0x11c518[_0x334b28(0xc9)]=_0x26e952[_0x334b28(0xdd)],_0x11c518[_0x334b28(0xc6)]=![];const _0x4b8805={};return _0x4b8805['grid-id']=_0x35b027,_0x4b8805[_0x334b28(0xc3)]=_0x11c518,_0x206a75[_0x334b28(0xd2)](HELP_HEADER_MESSAGE['stop'])[_0x334b28(0x9f)](HELP_FOOTER_MESSAGE)['options'](_0x4b8805)['help'](_0x26e952['VyPsn'])[_0x334b28(0xb8)];},exports[a21_0x486cfc(0xe5)]=async function(_0x28ab90){const _0x24041=a21_0x486cfc,_0x5cf306={'xHfeR':_0x24041(0xcc),'SkQbY':function(_0x21f21f){return _0x21f21f();},'YOGeD':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BQzUa':function(_0x58e977,_0x5aa912,_0x27c677,_0x5c7d66,_0x450199,_0x97e96d,_0x23eaf9){return _0x58e977(_0x5aa912,_0x27c677,_0x5c7d66,_0x450199,_0x97e96d,_0x23eaf9);},'NrzDH':'stop-grid-called','wfchk':_0x24041(0xdb),'YBxgV':function(_0x115df7,_0x3c0944,_0x442700,_0x1dd70b,_0x7abbd9,_0x3dd66c,_0x480672){return _0x115df7(_0x3c0944,_0x442700,_0x1dd70b,_0x7abbd9,_0x3dd66c,_0x480672);},'uZIgi':function(_0x229193){return _0x229193();},'qVuWy':_0x24041(0xeb),'JiVwg':_0x24041(0x90),'GyRPP':'Adding\x20Websocket\x20listeners','QqExq':function(_0x510d53,_0xea5ff8,_0x3de971,_0x5230da){return _0x510d53(_0xea5ff8,_0x3de971,_0x5230da);},'Jvvac':function(_0x1535fb,_0x5009bc,_0x17794f){return _0x1535fb(_0x5009bc,_0x17794f);},'HGaiU':function(_0x43aa2a,_0x226cee,_0xdaceb0){return _0x43aa2a(_0x226cee,_0xdaceb0);},'gOybM':'Grid\x20stoppped.','dSMAu':function(_0x3e4347,_0x55bc38){return _0x3e4347===_0x55bc38;},'uoloa':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','rFwQz':function(_0xb89bc9,_0xa94b8f,_0x2140ac,_0x326038,_0x50c206,_0x1c2d6a,_0x58ef04){return _0xb89bc9(_0xa94b8f,_0x2140ac,_0x326038,_0x50c206,_0x1c2d6a,_0x58ef04);},'YfGCz':_0x24041(0xd6),'CCwBt':function(_0x4ab6cd,_0x186a31){return _0x4ab6cd===_0x186a31;},'CifRE':_0x24041(0xbd),'COkpc':function(_0xf47216,_0x55195a,_0x5466e3,_0x3c3a42,_0x56efd4,_0x11b6cd,_0x35798d){return _0xf47216(_0x55195a,_0x5466e3,_0x3c3a42,_0x56efd4,_0x11b6cd,_0x35798d);},'AZIyp':'server-error'};let _0x2e3da5;try{!_0x28ab90['gridId']&&(logger['error'](_0x5cf306[_0x24041(0xad)]),process[_0x24041(0xc4)](0x1));!fs['existsSync'](_0x5cf306[_0x24041(0xe8)](getCredentialsPath))&&(logger['error'](_0x5cf306[_0x24041(0xa1)]),await _0x5cf306[_0x24041(0xa4)](sendInstrumentationEvent,_0x28ab90,_0x5cf306['NrzDH'],messageTypes[_0x24041(0xbe)],_0x5cf306['wfchk'],null,_0x28ab90),process['exit'](0x1));logger[_0x24041(0xca)]('Stopping\x20grid\x20'+_0x28ab90[_0x24041(0xbf)]),await _0x5cf306[_0x24041(0xe9)](sendInstrumentationEvent,_0x28ab90,_0x5cf306[_0x24041(0xa3)],messageTypes[_0x24041(0xe7)],null,null,_0x28ab90);const _0x1eed7a=JSON[_0x24041(0xce)](fs[_0x24041(0xc1)](_0x5cf306[_0x24041(0xc7)](getCredentialsPath)));global_registry[_0x24041(0xcf)]=_0x1eed7a[_0x24041(0xa8)][_0x24041(0xb2)],global_registry[_0x24041(0xaf)]=_0x1eed7a[_0x24041(0xa8)]['password'];const _0x1cf6bb=WS_ENDPOINT[_0x24041(0xb0)](_0x5cf306[_0x24041(0xd3)],_0x1eed7a[_0x24041(0xa8)][_0x24041(0xb2)])[_0x24041(0xb0)](_0x5cf306[_0x24041(0xb9)],_0x1eed7a[_0x24041(0xa8)][_0x24041(0x9c)]),_0xd405e0={};_0xd405e0[_0x24041(0x8d)]=ws,_0xd405e0[_0x24041(0xdf)]=0x36ee80,_0x2e3da5=new ReconnectingWebSocket(_0x1cf6bb,[],_0xd405e0),logger[_0x24041(0xc0)](_0x5cf306[_0x24041(0xe6)]),webSocketUtils[_0x24041(0x9a)](_0x2e3da5,_0x28ab90[_0x24041(0xe3)],_0x28ab90['password']);const [_0x2d069b,_0x133747]=await _0x5cf306['QqExq'](getGridDetails,_0x1eed7a[_0x24041(0xa8)][_0x24041(0xb2)],_0x1eed7a[_0x24041(0xa8)][_0x24041(0x9c)],_0x28ab90[_0x24041(0xbf)]);if(_0x133747){const _0x42fbbb=_0x133747[_0x24041(0xca)];global_registry[_0x24041(0xe1)]=_0x42fbbb[_0x24041(0xe1)],global_registry[_0x24041(0xea)]=_0x42fbbb[_0x24041(0xa5)],global_registry['clusterName']=_0x42fbbb[_0x24041(0x96)];const _0x34e6ab=await _0x5cf306[_0x24041(0xe9)](getCloudProviderObject,_0x42fbbb[_0x24041(0xe1)],_0x42fbbb[_0x24041(0x96)],_0x42fbbb[_0x24041(0xde)],_0x2e3da5,webSocketUtils,_0x28ab90),[_0x7d913c,_0x274bf0,_0x1329d1,_0x25f84b,_0x1c508f,_0x39c04e]=await _0x5cf306[_0x24041(0xd1)](createK8sClient,_0x34e6ab,_0x28ab90[_0x24041(0x97)]);await _0x5cf306[_0x24041(0xd9)](scaleDownHubDeployment,_0x274bf0,_0x42fbbb[_0x24041(0xde)]),logger[_0x24041(0xca)](_0x5cf306['gOybM']),process[_0x24041(0xc4)](0x0);}_0x5cf306[_0x24041(0xd8)](_0x2d069b['statusCode'],0x191)&&(logger[_0x24041(0xb3)](_0x5cf306[_0x24041(0x95)]),await _0x5cf306[_0x24041(0xd7)](sendInstrumentationEvent,_0x28ab90,_0x5cf306[_0x24041(0xa3)],messageTypes['ERROR'],_0x5cf306[_0x24041(0xb4)],null,_0x28ab90),process[_0x24041(0xc4)](0x1)),_0x5cf306[_0x24041(0x94)](_0x2d069b[_0x24041(0x91)],0x190)&&(logger['error'](JSON[_0x24041(0xce)](_0x2d069b[_0x24041(0x9e)])[_0x24041(0xda)]),await _0x5cf306[_0x24041(0xa4)](sendInstrumentationEvent,_0x28ab90,_0x5cf306['NrzDH'],messageTypes[_0x24041(0xbe)],_0x5cf306[_0x24041(0x98)],null,_0x28ab90),process['exit'](0x1)),logger[_0x24041(0xb3)](_0x24041(0xae)+JSON[_0x24041(0xb7)](_0x2d069b)),await _0x5cf306['COkpc'](sendInstrumentationEvent,_0x28ab90,_0x5cf306[_0x24041(0xa3)],messageTypes[_0x24041(0xbe)],_0x5cf306[_0x24041(0xcb)],_0x2d069b,_0x28ab90),process['exit'](0x1);}catch(_0xa703e7){const _0x4f1066=_0x24041(0xe0)+_0xa703e7+'\x20\x0a'+JSON['stringify'](_0xa703e7[_0x24041(0x99)])+'\x20';logger[_0x24041(0xb3)](_0x4f1066),process[_0x24041(0xc4)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x32428f=a22_0x35f2;(function(_0x374770,_0x483c21){const _0x276c46=a22_0x35f2,_0x27d183=_0x374770();while(!![]){try{const _0x2211d7=parseInt(_0x276c46(0x1ec))/0x1+-parseInt(_0x276c46(0x209))/0x2*(parseInt(_0x276c46(0x1e8))/0x3)+-parseInt(_0x276c46(0x242))/0x4*(-parseInt(_0x276c46(0x1ef))/0x5)+parseInt(_0x276c46(0x229))/0x6*(-parseInt(_0x276c46(0x237))/0x7)+parseInt(_0x276c46(0x200))/0x8+-parseInt(_0x276c46(0x1f9))/0x9*(-parseInt(_0x276c46(0x20a))/0xa)+parseInt(_0x276c46(0x1f3))/0xb*(-parseInt(_0x276c46(0x1fb))/0xc);if(_0x2211d7===_0x483c21)break;else _0x27d183['push'](_0x27d183['shift']());}catch(_0x160f8e){_0x27d183['push'](_0x27d183['shift']());}}}(a22_0x45bc,0x4f804),require(a22_0x32428f(0x235))['config']());let gridURL=a22_0x32428f(0x1fe),bsApiUrl=a22_0x32428f(0x201),agApiUrl=a22_0x32428f(0x1de);const _env=(process['env'][a22_0x32428f(0x20e)]||a22_0x32428f(0x206))['toLowerCase']();if(_env==='staging'||_env===a22_0x32428f(0x1e3))gridURL=a22_0x32428f(0x224),bsApiUrl=a22_0x32428f(0x225),agApiUrl=a22_0x32428f(0x1e9);else(_env===a22_0x32428f(0x249)||_env===a22_0x32428f(0x1e1))&&(gridURL=a22_0x32428f(0x20c),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x32428f(0x217));exports[a22_0x32428f(0x1e6)]=process[a22_0x32428f(0x231)]['DASHBOARD_ENDPOINT']||gridURL,exports['BS_API_URL']=process['env'][a22_0x32428f(0x22e)]||bsApiUrl,exports[a22_0x32428f(0x20b)]=process['env']['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x32428f(0x21a)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x32428f(0x1e7)]=a22_0x32428f(0x1f1),exports['IAM_USER_NAME']=a22_0x32428f(0x1fa),exports[a22_0x32428f(0x212)]=a22_0x32428f(0x22b),exports[a22_0x32428f(0x205)]=a22_0x32428f(0x247),exports[a22_0x32428f(0x226)]=a22_0x32428f(0x227),exports[a22_0x32428f(0x1e4)]=a22_0x32428f(0x1db),exports[a22_0x32428f(0x246)]=a22_0x32428f(0x1f5),exports[a22_0x32428f(0x1ff)]=a22_0x32428f(0x216),exports[a22_0x32428f(0x1eb)]=a22_0x32428f(0x1e5),exports[a22_0x32428f(0x23b)]=a22_0x32428f(0x21e),exports[a22_0x32428f(0x1fc)]=[this[a22_0x32428f(0x205)],this[a22_0x32428f(0x1eb)],this[a22_0x32428f(0x23b)]];const a22_0x520630={};a22_0x520630[a22_0x32428f(0x23e)]=a22_0x32428f(0x236),a22_0x520630['Value']=a22_0x32428f(0x234);const a22_0x405f0e={};a22_0x405f0e[a22_0x32428f(0x23e)]='browserstack:service',a22_0x405f0e[a22_0x32428f(0x211)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x520630,a22_0x405f0e];if(process[a22_0x32428f(0x231)][a22_0x32428f(0x213)]){const parsedTags=process[a22_0x32428f(0x231)][a22_0x32428f(0x213)][a22_0x32428f(0x1fd)](',');parsedTags[a22_0x32428f(0x219)](_0x5531e9=>{const _0x6bc8a7=a22_0x32428f,_0x2383ca=_0x5531e9[_0x6bc8a7(0x1fd)](':'),_0x3592b0={};_0x3592b0[_0x6bc8a7(0x23e)]=_0x2383ca[0x0],_0x3592b0['Value']=_0x2383ca[0x1],common_hst_tags_list[_0x6bc8a7(0x230)](_0x3592b0);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;function a22_0x35f2(_0x54ff4f,_0x4b3933){const _0x45bc54=a22_0x45bc();return a22_0x35f2=function(_0x35f2cb,_0x345bc6){_0x35f2cb=_0x35f2cb-0x1d9;let _0x56390b=_0x45bc54[_0x35f2cb];return _0x56390b;},a22_0x35f2(_0x54ff4f,_0x4b3933);}const a22_0x376ca5={};function a22_0x45bc(){const _0x3ac89d=['global_registry','AZURE','524402HUljiX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','delete','35oiNaWy','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','credentials','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','10714hBxjGJ','TRIAL_GRID_URL','BSTACK-ATS-CLUSTER-HUB-HA','HELP_HEADER_MESSAGE','HELP_FOOTER_MESSAGE','connect','2466jANGDv','BrowserStackIAMUser','16236XzDUVL','ALL_SUPPORTED_CLOUD_PROVIDERS','split','grid.browserstack.com','TURBOSCALE_DEPLOYMENT','5208816MbUtcF','api.browserstack.com','high-scale-grid-cluster','REDACTED','log','AWS','prod','LINK_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','2708ZZdJEw','21430xfGyoM','AG_API_URL','grid-preprod.bsstag.com','success','BROWSERSTACK_ENV','RAW_ARGS_REGEX','create','Value','DEFAULT_GRID_NAME','TURBOSCALE_CUSTOM_TAGS','cliRunFinished','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','browserstack-turboscale-grid','grid-api-preprod.bsstag.com','MessageDescription','forEach','wss://','pre-check','info','error','gcp','REGION','INFO','LOG','UNKNOWN','messageTypes','grid-devhst.bsstag.com','api-devhst.bsstag.com','CLUSTER_DEP_STACK_NAME','BSTACK-ATS-CLUSTER','CLI_ARGS_REGEX','272346JnSLzG','browserstack:service','high-scale-grid','NULL','GRID_URL','BS_API_URL','stop','push','env','WS_EVENTS','grid-profile','BrowserStack','dotenv','browserstack:managedBy','7xCyBXL','cliRunStarted','us-east-1','root','GCP','list','HST_CLUSTER_TAGS','Key','configure','CLOUD_PROVIDER','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','124156rHzKuP','pre_check','unknown','gridProfile','CLUSTER_HUB_HA_STACK_NAME','aws','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','preprod','DEFAULT_CLUSTER_DETAILS','start','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid-api.browserstack.com','ERROR','warning','pre-prod','RESOURCES','stag','CLUSTER_AUTOSCALER_STACK_NAME','azure','DASHBOARD_ENDPOINT','CP_CONFIG_FILE','645PBHeQL','grid-api-devhst.bsstag.com'];a22_0x45bc=function(){return _0x3ac89d;};return a22_0x45bc();}a22_0x376ca5[a22_0x32428f(0x236)]=a22_0x32428f(0x234),a22_0x376ca5[a22_0x32428f(0x22a)]='BrowserStack-Automate-TurboScale',exports[a22_0x32428f(0x23d)]=a22_0x376ca5,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x32428f(0x205)]];const a22_0x2ef269={};a22_0x2ef269[a22_0x32428f(0x221)]=a22_0x32428f(0x204),a22_0x2ef269[a22_0x32428f(0x1e2)]='resourceInfo',a22_0x2ef269[a22_0x32428f(0x22d)]='gridUrl',a22_0x2ef269['CLI_RUN_STARTED']=a22_0x32428f(0x238),a22_0x2ef269['CLI_RUN_FINISHED']=a22_0x32428f(0x214),exports[a22_0x32428f(0x232)]=a22_0x2ef269,exports[a22_0x32428f(0x1ea)]={},exports[a22_0x32428f(0x207)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x470840={};a22_0x470840[a22_0x32428f(0x23a)]=a22_0x32428f(0x215)+this['LINK_MESSAGE'],a22_0x470840['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x23f)]=a22_0x32428f(0x1f2)+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x210)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x23c)]={},a22_0x470840[a22_0x32428f(0x1ee)]=a22_0x32428f(0x1dd)+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x1f8)]=a22_0x32428f(0x1dc)+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x1da)]=a22_0x32428f(0x248)+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x22f)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x243)]=a22_0x32428f(0x241)+this[a22_0x32428f(0x207)],a22_0x470840[a22_0x32428f(0x23c)][a22_0x32428f(0x23a)]=a22_0x32428f(0x208)+this['LINK_MESSAGE'],a22_0x470840[a22_0x32428f(0x23c)]['grid']=a22_0x32428f(0x1ed)+this['LINK_MESSAGE'],a22_0x470840[a22_0x32428f(0x23c)][a22_0x32428f(0x245)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a22_0x32428f(0x1f6)]=a22_0x470840,exports[a22_0x32428f(0x1f7)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4a2740={};a22_0x4a2740['SUCCESS']=a22_0x32428f(0x20d),a22_0x4a2740[a22_0x32428f(0x1df)]=a22_0x32428f(0x21d),a22_0x4a2740[a22_0x32428f(0x220)]=a22_0x32428f(0x21c),a22_0x4a2740['WARNING']=a22_0x32428f(0x1e0),a22_0x4a2740[a22_0x32428f(0x222)]=a22_0x32428f(0x244),a22_0x4a2740[a22_0x32428f(0x22c)]=null,exports[a22_0x32428f(0x223)]=a22_0x4a2740,exports[a22_0x32428f(0x228)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x32428f(0x20f)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x32428f(0x203)]='[REDACTED]';const a22_0x13c2e8={};a22_0x13c2e8[a22_0x32428f(0x233)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0xe0b335={};a22_0xe0b335[a22_0x32428f(0x21b)]=a22_0x13c2e8,exports[a22_0x32428f(0x218)]=a22_0xe0b335,exports[a22_0x32428f(0x1f4)]=a22_0x32428f(0x1f0);const a22_0x2a1273={};a22_0x2a1273['CLUSTER']=a22_0x32428f(0x202),a22_0x2a1273[a22_0x32428f(0x240)]=a22_0x32428f(0x247),a22_0x2a1273[a22_0x32428f(0x21f)]=a22_0x32428f(0x239),exports[a22_0x32428f(0x1d9)]=a22_0x2a1273;
1
+ const a22_0x4673f0=a22_0x6e4f;function a22_0x2c37(){const _0x3fbe5c=['\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','high-scale-grid-cluster','CLUSTER_HUB_HA_STACK_NAME','grid-devhst.bsstag.com','start','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','WS_EVENTS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','azure','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','create','delete','16fLbDzx','dotenv','CLUSTER_AUTOSCALER_STACK_NAME','COMMON_HST_TAGS','connect','browserstack:service','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','grid-api.browserstack.com','HELP_HEADER_MESSAGE','CLI_RUN_STARTED','ERROR','HST_CLUSTER_TAGS','init','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','aws','CLUSTER','stag','success','grid-profile','HELP_FOOTER_MESSAGE','log','CLI_RUN_FINISHED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','env','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','[REDACTED]','pre_check','TURBOSCALE_CUSTOM_TAGS','config','credentials','DEFAULT_GRID_NAME','toLowerCase','BSTACK-ATS-CLUSTER','browserstack:managedBy','gridProfile','api-preprod.bsstag.com','preprod','BSTACK-ATS-CLUSTER-HUB-HA','1871838OoKxNe','BrowserStack','SUCCESS','MessageDescription','AG_API_URL','AZURE','api.browserstack.com','GCP','split','prod','LINK_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','BROWSERSTACK_ENV','LOG','grid','2070397ZMmnfI','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','wss://','grid-preprod.bsstag.com','root','configure','IAM_USER_NAME','grid.browserstack.com','RESOURCES','3176488KshyEh','REDACTED','935590uknHMB','TURBOSCALE_DEPLOYMENT','BS_API_URL','unknown','stop','Value','gridUrl','CLUSTER_DEP_STACK_NAME','NULL','4085052TxABwc','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid-api-preprod.bsstag.com','browserstack-turboscale-grid','WS_ENDPOINT','AWS','2447262axqREV','WARNING','REGION','DEFAULT_CLUSTER_DETAILS','gcp','Key','CLI_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','384920NHCWkm','DASHBOARD_ENDPOINT','cliRunFinished','list','5JhdBvN','resourceInfo','warning','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','TRIAL_GRID_URL','messageTypes','pre-check','ALL_SUPPORTED_CLOUD_PROVIDERS'];a22_0x2c37=function(){return _0x3fbe5c;};return a22_0x2c37();}(function(_0x206903,_0x5530a9){const _0x5a055b=a22_0x6e4f,_0x3efe76=_0x206903();while(!![]){try{const _0x514831=-parseInt(_0x5a055b(0x1a9))/0x1+parseInt(_0x5a055b(0x1a7))/0x2+parseInt(_0x5a055b(0x1b2))/0x3+parseInt(_0x5a055b(0x1c1))/0x4*(-parseInt(_0x5a055b(0x1c5))/0x5)+-parseInt(_0x5a055b(0x1b9))/0x6+-parseInt(_0x5a055b(0x19e))/0x7+-parseInt(_0x5a055b(0x168))/0x8*(parseInt(_0x5a055b(0x18f))/0x9);if(_0x514831===_0x5530a9)break;else _0x3efe76['push'](_0x3efe76['shift']());}catch(_0x422bce){_0x3efe76['push'](_0x3efe76['shift']());}}}(a22_0x2c37,0xc2f20),require(a22_0x4673f0(0x169))[a22_0x4673f0(0x185)]());let gridURL=a22_0x4673f0(0x1a5),bsApiUrl=a22_0x4673f0(0x195),agApiUrl=a22_0x4673f0(0x16f);const _env=(process['env'][a22_0x4673f0(0x19b)]||a22_0x4673f0(0x198))[a22_0x4673f0(0x188)]();if(_env==='staging'||_env===a22_0x4673f0(0x179))gridURL=a22_0x4673f0(0x15f),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x4673f0(0x18d)||_env==='pre-prod')&&(gridURL=a22_0x4673f0(0x1a1),bsApiUrl=a22_0x4673f0(0x18c),agApiUrl=a22_0x4673f0(0x1b5));exports[a22_0x4673f0(0x1c2)]=process[a22_0x4673f0(0x180)]['DASHBOARD_ENDPOINT']||gridURL,exports['BS_API_URL']=process[a22_0x4673f0(0x180)][a22_0x4673f0(0x1ab)]||bsApiUrl,exports[a22_0x4673f0(0x193)]=process['env'][a22_0x4673f0(0x193)]||agApiUrl,exports[a22_0x4673f0(0x1b7)]=a22_0x4673f0(0x1a0)+this[a22_0x4673f0(0x193)]+a22_0x4673f0(0x175),exports['CP_CONFIG_FILE']=a22_0x4673f0(0x186),exports[a22_0x4673f0(0x1a4)]='BrowserStackIAMUser',exports[a22_0x4673f0(0x187)]='high-scale-grid',exports[a22_0x4673f0(0x1b8)]=a22_0x4673f0(0x177),exports[a22_0x4673f0(0x1b0)]=a22_0x4673f0(0x189),exports[a22_0x4673f0(0x16a)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x4673f0(0x15e)]=a22_0x4673f0(0x18e),exports[a22_0x4673f0(0x1aa)]=a22_0x4673f0(0x1b6),exports['AZURE']=a22_0x4673f0(0x164),exports[a22_0x4673f0(0x196)]=a22_0x4673f0(0x1bd),exports[a22_0x4673f0(0x15b)]=[this[a22_0x4673f0(0x1b8)],this[a22_0x4673f0(0x194)],this[a22_0x4673f0(0x196)]];const a22_0x1c835c={};a22_0x1c835c['Key']=a22_0x4673f0(0x18a),a22_0x1c835c[a22_0x4673f0(0x1ae)]=a22_0x4673f0(0x190);const a22_0x53b175={};a22_0x53b175[a22_0x4673f0(0x1be)]=a22_0x4673f0(0x16d),a22_0x53b175[a22_0x4673f0(0x1ae)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x1c835c,a22_0x53b175];if(process[a22_0x4673f0(0x180)][a22_0x4673f0(0x184)]){const parsedTags=process['env'][a22_0x4673f0(0x184)][a22_0x4673f0(0x197)](',');parsedTags['forEach'](_0x25126a=>{const _0x1f3f23=a22_0x4673f0,_0x12b2a6=_0x25126a[_0x1f3f23(0x197)](':'),_0x30f3b4={};_0x30f3b4[_0x1f3f23(0x1be)]=_0x12b2a6[0x0],_0x30f3b4[_0x1f3f23(0x1ae)]=_0x12b2a6[0x1],common_hst_tags_list['push'](_0x30f3b4);});}exports[a22_0x4673f0(0x16b)]=common_hst_tags_list;const a22_0x168868={};a22_0x168868['browserstack:managedBy']=a22_0x4673f0(0x190),a22_0x168868['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a22_0x4673f0(0x173)]=a22_0x168868,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x1b7202={};function a22_0x6e4f(_0x338547,_0x4f3777){const _0x2c379c=a22_0x2c37();return a22_0x6e4f=function(_0x6e4f6e,_0x9f3c2a){_0x6e4f6e=_0x6e4f6e-0x157;let _0x6a13e4=_0x2c379c[_0x6e4f6e];return _0x6a13e4;},a22_0x6e4f(_0x338547,_0x4f3777);}a22_0x1b7202[a22_0x4673f0(0x19c)]=a22_0x4673f0(0x17d),a22_0x1b7202[a22_0x4673f0(0x1a6)]=a22_0x4673f0(0x1c6),a22_0x1b7202['GRID_URL']=a22_0x4673f0(0x1af),a22_0x1b7202[a22_0x4673f0(0x171)]='cliRunStarted',a22_0x1b7202[a22_0x4673f0(0x17e)]=a22_0x4673f0(0x1c3),exports[a22_0x4673f0(0x162)]=a22_0x1b7202,exports['global_registry']={},exports['LINK_MESSAGE']=a22_0x4673f0(0x181);const a22_0x41d68f={};a22_0x41d68f[a22_0x4673f0(0x1a2)]=a22_0x4673f0(0x1b4)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x174)]=a22_0x4673f0(0x1c0)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x1a3)]=a22_0x4673f0(0x161)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x166)]=a22_0x4673f0(0x16e)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x1c4)]={},a22_0x41d68f[a22_0x4673f0(0x167)]=a22_0x4673f0(0x19f)+this['LINK_MESSAGE'],a22_0x41d68f[a22_0x4673f0(0x16c)]=a22_0x4673f0(0x1b3)+this['LINK_MESSAGE'],a22_0x41d68f[a22_0x4673f0(0x160)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x1ad)]=a22_0x4673f0(0x165)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x183)]=a22_0x4673f0(0x15c)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x1c4)]['root']=a22_0x4673f0(0x17f)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x1c4)][a22_0x4673f0(0x19d)]=a22_0x4673f0(0x157)+this[a22_0x4673f0(0x199)],a22_0x41d68f[a22_0x4673f0(0x1c4)][a22_0x4673f0(0x18b)]=a22_0x4673f0(0x19a)+this[a22_0x4673f0(0x199)],exports[a22_0x4673f0(0x170)]=a22_0x41d68f,exports[a22_0x4673f0(0x17c)]=a22_0x4673f0(0x163);const a22_0x19d8fa={};a22_0x19d8fa[a22_0x4673f0(0x191)]=a22_0x4673f0(0x17a),a22_0x19d8fa[a22_0x4673f0(0x172)]='error',a22_0x19d8fa['INFO']='info',a22_0x19d8fa[a22_0x4673f0(0x1ba)]=a22_0x4673f0(0x1c7),a22_0x19d8fa['UNKNOWN']=a22_0x4673f0(0x1ac),a22_0x19d8fa[a22_0x4673f0(0x1b1)]=null,exports[a22_0x4673f0(0x159)]=a22_0x19d8fa,exports[a22_0x4673f0(0x1bf)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4673f0(0x1a8)]=a22_0x4673f0(0x182);const a22_0xf840ac={};a22_0xf840ac[a22_0x4673f0(0x17b)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x42c88f={};a22_0x42c88f[a22_0x4673f0(0x15a)]=a22_0xf840ac,exports[a22_0x4673f0(0x192)]=a22_0x42c88f,exports[a22_0x4673f0(0x158)]=a22_0x4673f0(0x176);const a22_0x41000c={};a22_0x41000c[a22_0x4673f0(0x178)]=a22_0x4673f0(0x15d),a22_0x41000c['CLOUD_PROVIDER']=a22_0x4673f0(0x177),a22_0x41000c[a22_0x4673f0(0x1bb)]='us-east-1',exports[a22_0x4673f0(0x1bc)]=a22_0x41000c;
@@ -1 +1 @@
1
- const a23_0x568a2c=a23_0x1f4b;function a23_0x1f4b(_0x1bac90,_0x4c1d6d){const _0x4709bf=a23_0x4709();return a23_0x1f4b=function(_0x1f4b11,_0x20b336){_0x1f4b11=_0x1f4b11-0x1a3;let _0x179911=_0x4709bf[_0x1f4b11];return _0x179911;},a23_0x1f4b(_0x1bac90,_0x4c1d6d);}(function(_0x32da13,_0x471cf5){const _0x16c95a=a23_0x1f4b,_0x1a786c=_0x32da13();while(!![]){try{const _0x16d23f=parseInt(_0x16c95a(0x1b8))/0x1+parseInt(_0x16c95a(0x1a5))/0x2+-parseInt(_0x16c95a(0x1a4))/0x3+parseInt(_0x16c95a(0x1ad))/0x4+-parseInt(_0x16c95a(0x1b2))/0x5+-parseInt(_0x16c95a(0x1b3))/0x6*(parseInt(_0x16c95a(0x1a8))/0x7)+-parseInt(_0x16c95a(0x1b6))/0x8*(-parseInt(_0x16c95a(0x1a6))/0x9);if(_0x16d23f===_0x471cf5)break;else _0x1a786c['push'](_0x1a786c['shift']());}catch(_0xc69e2e){_0x1a786c['push'](_0x1a786c['shift']());}}}(a23_0x4709,0x2d3d5));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir='log';!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x123fa9={};function a23_0x4709(){const _0x3e6f82=['73220WSrVNY','558aEgaeP','colorize','329hdBSwZ','combine','format','transports','message','1121092bllgRP','name','File','usage.log','timestamp','4485qZwtqv','27582jHUYzl','console.info','fileLogger','37832LHLGaZ','createLogger','76193VnKnWv','join','Console','level','852051StWXuD'];a23_0x4709=function(){return _0x3e6f82;};return a23_0x4709();}a23_0x123fa9[a23_0x568a2c(0x1aa)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x5d295a={};a23_0x5d295a[a23_0x568a2c(0x1a3)]=!![];const a23_0x558604={};a23_0x558604[a23_0x568a2c(0x1ae)]=a23_0x568a2c(0x1b4),exports['logger']=new winston['createLogger']({'format':winston[a23_0x568a2c(0x1aa)][a23_0x568a2c(0x1a9)](winston[a23_0x568a2c(0x1aa)][a23_0x568a2c(0x1b1)](a23_0x123fa9),winston[a23_0x568a2c(0x1aa)][a23_0x568a2c(0x1a7)](a23_0x5d295a),winston['format']['printf'](_0x1df9b0=>_0x1df9b0['timestamp']+'\x20-\x20'+_0x1df9b0[a23_0x568a2c(0x1a3)]+':\x20'+_0x1df9b0[a23_0x568a2c(0x1ac)])),'transports':[new winston['transports'][(a23_0x568a2c(0x1ba))](a23_0x558604),new winston['transports'][(a23_0x568a2c(0x1af))]({'filename':path['join'](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x568a2c(0x1ab))][(a23_0x568a2c(0x1af))]({'filename':path[a23_0x568a2c(0x1b9)](logDir,a23_0x568a2c(0x1b0)),'level':'debug'})]};exports[a23_0x568a2c(0x1b5)]=new winston[(a23_0x568a2c(0x1b7))](winstonFileLoggerParams);
1
+ const a23_0x418ea9=a23_0x2eb8;function a23_0x72aa(){const _0x16fc38=['861795UjsJBX','572420HAhEFS','format','4798179LTtZpe','log','97139JmCdNy','365893MsmoFL','colorize','createLogger','console.info','Console','winston','fileLogger','printf','name','debug','timestamp','path','File','383450nhktAh','usage.log','\x20-\x20','logger','level','mkdirSync','184ZOsgIc','24lfxWIX','YYYY-MM-DD\x20HH:mm:ss','message','1101504ZlyKIt','transports'];a23_0x72aa=function(){return _0x16fc38;};return a23_0x72aa();}function a23_0x2eb8(_0x67376b,_0x212037){const _0x72aac8=a23_0x72aa();return a23_0x2eb8=function(_0x2eb8b1,_0xdfa21){_0x2eb8b1=_0x2eb8b1-0xdf;let _0xea5604=_0x72aac8[_0x2eb8b1];return _0xea5604;},a23_0x2eb8(_0x67376b,_0x212037);}(function(_0xdcea07,_0x484296){const _0x19fae5=a23_0x2eb8,_0x9085d=_0xdcea07();while(!![]){try{const _0x372410=parseInt(_0x19fae5(0xe3))/0x1+-parseInt(_0x19fae5(0xfd))/0x2+parseInt(_0x19fae5(0xfc))/0x3+-parseInt(_0x19fae5(0xfa))/0x4+parseInt(_0x19fae5(0xf0))/0x5*(parseInt(_0x19fae5(0xf7))/0x6)+parseInt(_0x19fae5(0xe2))/0x7*(parseInt(_0x19fae5(0xf6))/0x8)+-parseInt(_0x19fae5(0xe0))/0x9;if(_0x372410===_0x484296)break;else _0x9085d['push'](_0x9085d['shift']());}catch(_0x162a74){_0x9085d['push'](_0x9085d['shift']());}}}(a23_0x72aa,0x2d034));const winston=require(a23_0x418ea9(0xe8)),fs=require('fs'),path=require(a23_0x418ea9(0xee)),logDir=a23_0x418ea9(0xe1);!fs['existsSync'](logDir)&&fs[a23_0x418ea9(0xf5)](logDir);const a23_0x1f9e9e={};a23_0x1f9e9e[a23_0x418ea9(0xdf)]=a23_0x418ea9(0xf8);const a23_0x3201a5={};a23_0x3201a5[a23_0x418ea9(0xf4)]=!![];const a23_0x158967={};a23_0x158967[a23_0x418ea9(0xeb)]=a23_0x418ea9(0xe6),exports[a23_0x418ea9(0xf3)]=new winston[(a23_0x418ea9(0xe5))]({'format':winston['format']['combine'](winston[a23_0x418ea9(0xdf)][a23_0x418ea9(0xed)](a23_0x1f9e9e),winston[a23_0x418ea9(0xdf)][a23_0x418ea9(0xe4)](a23_0x3201a5),winston[a23_0x418ea9(0xdf)][a23_0x418ea9(0xea)](_0x7d1309=>_0x7d1309[a23_0x418ea9(0xed)]+a23_0x418ea9(0xf2)+_0x7d1309['level']+':\x20'+_0x7d1309[a23_0x418ea9(0xf9)])),'transports':[new winston[(a23_0x418ea9(0xfb))][(a23_0x418ea9(0xe7))](a23_0x158967),new winston['transports'][(a23_0x418ea9(0xef))]({'filename':path['join'](logDir,'events.log'),'level':a23_0x418ea9(0xec)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x418ea9(0xfb))][(a23_0x418ea9(0xef))]({'filename':path['join'](logDir,a23_0x418ea9(0xf1)),'level':a23_0x418ea9(0xec)})]};exports[a23_0x418ea9(0xe9)]=new winston[(a23_0x418ea9(0xe5))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x3d5c98=a24_0x35e9;function a24_0x35e9(_0x21fcf5,_0x10a6b2){const _0x24faef=a24_0x24fa();return a24_0x35e9=function(_0x35e94a,_0x41eaf6){_0x35e94a=_0x35e94a-0xd8;let _0x3a46ca=_0x24faef[_0x35e94a];return _0x3a46ca;},a24_0x35e9(_0x21fcf5,_0x10a6b2);}function a24_0x24fa(){const _0x19695d=['439278zWHQte','97428AUiAqJ','commands','345606FxbOeX','commandDir','env','epilogue','usage','35IebMWs','16bvigZD','3233390mjhawW','1172690dStEMa','./config/constants','28rcQNIf','root','308sOGZSt','help','QIKPW','808531dppsSo','1011213zrbcyO'];a24_0x24fa=function(){return _0x19695d;};return a24_0x24fa();}(function(_0x592dae,_0x13b0bc){const _0xe3a926=a24_0x35e9,_0x2f329f=_0x592dae();while(!![]){try{const _0x56b27a=-parseInt(_0xe3a926(0xe4))/0x1+-parseInt(_0xe3a926(0xe6))/0x2+-parseInt(_0xe3a926(0xe9))/0x3*(parseInt(_0xe3a926(0xdf))/0x4)+-parseInt(_0xe3a926(0xdc))/0x5+parseInt(_0xe3a926(0xe7))/0x6*(-parseInt(_0xe3a926(0xda))/0x7)+parseInt(_0xe3a926(0xdb))/0x8*(-parseInt(_0xe3a926(0xe5))/0x9)+-parseInt(_0xe3a926(0xdd))/0xa*(-parseInt(_0xe3a926(0xe1))/0xb);if(_0x56b27a===_0x13b0bc)break;else _0x2f329f['push'](_0x2f329f['shift']());}catch(_0x4f564a){_0x2f329f['push'](_0x2f329f['shift']());}}}(a24_0x24fa,0x792ee));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3d5c98(0xde));process[a24_0x3d5c98(0xeb)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x2545e1){const _0x2e1a92=a24_0x3d5c98,_0x236f42={};_0x236f42['UBtGB']=_0x2e1a92(0xe8),_0x236f42['QIKPW']=_0x2e1a92(0xe2);const _0x3155b7=_0x236f42;_0x2545e1[_0x2e1a92(0xd9)](HELP_HEADER_MESSAGE[_0x2e1a92(0xe0)])[_0x2e1a92(0xea)](_0x3155b7['UBtGB'])['demandCommand']()['help'](_0x3155b7[_0x2e1a92(0xe3)])[_0x2e1a92(0xd8)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0xe8d54a=a24_0x26ee;(function(_0x4d5b3a,_0x32bafc){const _0x18b140=a24_0x26ee,_0x34504c=_0x4d5b3a();while(!![]){try{const _0x4b76f3=parseInt(_0x18b140(0xa4))/0x1*(parseInt(_0x18b140(0x9b))/0x2)+parseInt(_0x18b140(0x9f))/0x3*(-parseInt(_0x18b140(0xaa))/0x4)+-parseInt(_0x18b140(0xa2))/0x5+-parseInt(_0x18b140(0x9a))/0x6+parseInt(_0x18b140(0xa0))/0x7+parseInt(_0x18b140(0x98))/0x8*(-parseInt(_0x18b140(0xab))/0x9)+parseInt(_0x18b140(0x96))/0xa*(parseInt(_0x18b140(0x97))/0xb);if(_0x4b76f3===_0x32bafc)break;else _0x34504c['push'](_0x34504c['shift']());}catch(_0x561059){_0x34504c['push'](_0x34504c['shift']());}}}(a24_0x46b0,0xc3375));function a24_0x26ee(_0x2f5305,_0x35802a){const _0x46b0ed=a24_0x46b0();return a24_0x26ee=function(_0x26eefc,_0xb44c65){_0x26eefc=_0x26eefc-0x96;let _0xfe053c=_0x46b0ed[_0x26eefc];return _0xfe053c;},a24_0x26ee(_0x2f5305,_0x35802a);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0xe8d54a(0xa1)][a24_0xe8d54a(0x99)]=0x1;function run(_0x1b4568){const _0x7bb2e3=a24_0xe8d54a,_0x55bc9b={};_0x55bc9b[_0x7bb2e3(0xa8)]=_0x7bb2e3(0xa5),_0x55bc9b[_0x7bb2e3(0xa3)]=_0x7bb2e3(0xa6);const _0x1d6056=_0x55bc9b;_0x1b4568[_0x7bb2e3(0x9d)](HELP_HEADER_MESSAGE[_0x7bb2e3(0x9e)])[_0x7bb2e3(0x9c)](_0x1d6056['meBnv'])[_0x7bb2e3(0xa7)]()['help'](_0x1d6056[_0x7bb2e3(0xa3)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0x46b0(){const _0xf987bd=['18lvuuGo','417430InbUHO','143kmenEM','2895352NLcQSE','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','33600CrBcKW','1948hiNbpB','commandDir','usage','root','452916TyFety','5642784IdUnRB','env','642420NoXcwn','soYUS','472WaTuyK','commands','help','demandCommand','meBnv','exports','4pWMoaA'];a24_0x46b0=function(){return _0xf987bd;};return a24_0x46b0();}module[a24_0xe8d54a(0xa9)]=run;