browserstack-node-sdk 1.35.3 → 1.35.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) 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 -60
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x1d34b8=a15_0x20ad;(function(_0x3e667a,_0x26ba87){const _0x5ac51d=a15_0x20ad,_0xd9e244=_0x3e667a();while(!![]){try{const _0x421434=-parseInt(_0x5ac51d(0x108))/0x1+-parseInt(_0x5ac51d(0x13f))/0x2*(-parseInt(_0x5ac51d(0x101))/0x3)+parseInt(_0x5ac51d(0x134))/0x4*(parseInt(_0x5ac51d(0x12e))/0x5)+parseInt(_0x5ac51d(0x115))/0x6+parseInt(_0x5ac51d(0x109))/0x7*(parseInt(_0x5ac51d(0x116))/0x8)+-parseInt(_0x5ac51d(0x11e))/0x9*(parseInt(_0x5ac51d(0x13e))/0xa)+-parseInt(_0x5ac51d(0xfc))/0xb*(parseInt(_0x5ac51d(0x13a))/0xc);if(_0x421434===_0x26ba87)break;else _0xd9e244['push'](_0xd9e244['shift']());}catch(_0x3e7880){_0xd9e244['push'](_0xd9e244['shift']());}}}(a15_0x78d5,0xbfa59));function a15_0x78d5(){const _0x228520=['log','207tFiCOb','../../utils/instrumentationUtils','../../config/constants','status','allGrids','queued','/packages/cli/get-grids','cluster-name','BNdNE','body','GET','password','WFkwy','MFeAD','epilogue','vKhCl','10uEDcrM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/utilityMethods','Unmfa','vkWQh','pUNKM','2469688djFnvK','aVsMz','existsSync','builder','aDcSW','desc','12nfufYT','grid-id','bstackAccesskey','statusCode','316450DPZbYK','2VdjQVZ','ERROR','command','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','grid-name','argv','options','unknown-error','handler','error','Failed\x20to\x20list\x20resources!\x20Error:\x20','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','/packages/cli/get-all-grids','boolean','uuid','all-grids','12022483aakjjD','https://','stringify','running','WZueS','2936343ZoRNRv','got','requestId','description','xJKAI','readFileSync','grids','1354837RVaOSq','56fKjMDI','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','HhQgZ','HmhEX','usage','Browserstack','parse','help','Zcaxn','push','stack','HrcCE','3291414KOMEwG','1198416ujsnSK','bstackUsername','username','xnsji','pHaYj','exit','grid'];a15_0x78d5=function(){return _0x228520;};return a15_0x78d5();}const fs=require('fs'),got=require(a15_0x1d34b8(0x102)),{table}=require('table'),{v4:uuidv4}=require(a15_0x1d34b8(0xfa)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1d34b8(0x120)),{getCredentialsPath,getAuthHeader}=require(a15_0x1d34b8(0x130)),{sendInstrumentationEvent}=require(a15_0x1d34b8(0x11f));function a15_0x20ad(_0x180e55,_0x51a537){const _0x78d5e6=a15_0x78d5();return a15_0x20ad=function(_0x20ad4f,_0x463709){_0x20ad4f=_0x20ad4f-0xf3;let _0x63aca=_0x78d5e6[_0x20ad4f];return _0x63aca;},a15_0x20ad(_0x180e55,_0x51a537);}exports[a15_0x1d34b8(0x141)]=a15_0x1d34b8(0x107),exports[a15_0x1d34b8(0x139)]=a15_0x1d34b8(0x10a),exports[a15_0x1d34b8(0x137)]=function(_0x54f81c){const _0xbab3fa=a15_0x1d34b8,_0x299b30={};_0x299b30[_0xbab3fa(0x105)]=_0xbab3fa(0x142),_0x299b30['pHaYj']=_0xbab3fa(0xf9),_0x299b30[_0xbab3fa(0x135)]='help';const _0x251d29=_0x299b30,_0x41749f={};_0x41749f[_0xbab3fa(0x104)]=_0x251d29['xJKAI'],_0x41749f['type']=_0x251d29[_0xbab3fa(0x11a)];const _0x286f02={};return _0x286f02[_0xbab3fa(0xfb)]=_0x41749f,_0x54f81c[_0xbab3fa(0x10d)](HELP_HEADER_MESSAGE['list'][_0xbab3fa(0x11c)])[_0xbab3fa(0x12c)](HELP_FOOTER_MESSAGE)[_0xbab3fa(0x145)](_0x286f02)[_0xbab3fa(0x110)](_0x251d29[_0xbab3fa(0x135)])[_0xbab3fa(0x144)];},exports[a15_0x1d34b8(0xf3)]=async function(_0x4a0d02){const _0x5b9c39=a15_0x1d34b8,_0x515351={'HhQgZ':function(_0x3dd338){return _0x3dd338();},'TlsWc':function(_0x562cdf){return _0x562cdf();},'aDcSW':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vKhCl':function(_0x26e038,_0x2c48e1,_0x34140b,_0x262d86,_0x3b39ba,_0x29ab3b,_0x12300e){return _0x26e038(_0x2c48e1,_0x34140b,_0x262d86,_0x3b39ba,_0x29ab3b,_0x12300e);},'WFkwy':'list-grids-called','xnsji':'init-not-called','ScmwW':function(_0x56faaf){return _0x56faaf();},'wjSVm':_0x5b9c39(0x128),'vkWQh':function(_0x3d06dc,_0x251d2c,_0x43c845){return _0x3d06dc(_0x251d2c,_0x43c845);},'Unmfa':function(_0x423dd3,_0x17015c){return _0x423dd3!==_0x17015c;},'MFeAD':function(_0x983704,_0x4ecd0a){return _0x983704===_0x4ecd0a;},'PCogO':'\x0aFound\x20the\x20following\x20grids:\x0a','WZueS':_0x5b9c39(0x13b),'oljxS':_0x5b9c39(0x143),'shtXN':_0x5b9c39(0x121),'IKtGg':_0x5b9c39(0xff),'AkUjO':_0x5b9c39(0x123),'HrcCE':_0x5b9c39(0x125),'LdaKw':function(_0x2ac5ff,_0x437d5c){return _0x2ac5ff(_0x437d5c);},'BNdNE':_0x5b9c39(0x12f),'rVqhw':_0x5b9c39(0xf6),'Zcaxn':function(_0x4405fe,_0x16723d,_0x270767,_0x518d97,_0x5c4239,_0x4cb49a,_0x85e86){return _0x4405fe(_0x16723d,_0x270767,_0x518d97,_0x5c4239,_0x4cb49a,_0x85e86);},'HmhEX':'server-error','pUNKM':_0x5b9c39(0x146)};try{global_registry[_0x5b9c39(0x103)]=_0x515351[_0x5b9c39(0x10b)](uuidv4);!fs[_0x5b9c39(0x136)](_0x515351['TlsWc'](getCredentialsPath))&&(console[_0x5b9c39(0xf4)](_0x515351[_0x5b9c39(0x138)]),await _0x515351[_0x5b9c39(0x12d)](sendInstrumentationEvent,_0x4a0d02,_0x515351[_0x5b9c39(0x12a)],messageTypes[_0x5b9c39(0x140)],_0x515351[_0x5b9c39(0x119)],null,_0x4a0d02),process[_0x5b9c39(0x11b)](0x1));const _0x3b5c0d=JSON[_0x5b9c39(0x10f)](fs[_0x5b9c39(0x106)](_0x515351['ScmwW'](getCredentialsPath)));let _0x4e5546=_0x5b9c39(0xfd)+AG_API_URL+_0x5b9c39(0x124);_0x4a0d02[_0x5b9c39(0x122)]&&(_0x4e5546=_0x5b9c39(0xfd)+AG_API_URL+_0x5b9c39(0xf8));const _0x33635b={'method':_0x515351['wjSVm'],'headers':_0x515351[_0x5b9c39(0x132)](getAuthHeader,_0x3b5c0d[_0x5b9c39(0x10e)]['username'],_0x3b5c0d[_0x5b9c39(0x10e)][_0x5b9c39(0x129)]),'throwHttpErrors':![]};global_registry[_0x5b9c39(0x117)]=_0x3b5c0d['Browserstack'][_0x5b9c39(0x118)],global_registry[_0x5b9c39(0x13c)]=_0x3b5c0d[_0x5b9c39(0x10e)][_0x5b9c39(0x129)],_0x515351['vKhCl'](sendInstrumentationEvent,_0x4a0d02,_0x515351[_0x5b9c39(0x12a)],messageTypes['INFO'],null,null,_0x4a0d02);const _0xb0247d=await _0x515351[_0x5b9c39(0x132)](got,_0x4e5546,_0x33635b);if(_0x515351[_0x5b9c39(0x131)](_0xb0247d,null)&&_0x515351[_0x5b9c39(0x131)](_0xb0247d,undefined)&&_0x515351['MFeAD'](_0xb0247d['statusCode'],0xc8)){const _0x236876=JSON[_0x5b9c39(0x10f)](_0xb0247d[_0x5b9c39(0x127)]);console[_0x5b9c39(0x11d)](_0x515351['PCogO']);const _0x51f529=[];_0x51f529[_0x5b9c39(0x112)]([_0x515351[_0x5b9c39(0x100)],_0x515351['oljxS'],_0x515351['shtXN'],_0x515351['IKtGg'],_0x515351['AkUjO'],_0x515351[_0x5b9c39(0x114)]]),_0x236876['forEach'](_0xfc570e=>{const _0x507b10=_0x5b9c39;_0x51f529[_0x507b10(0x112)]([_0xfc570e['id'],_0xfc570e['name'],_0xfc570e['status'],_0xfc570e['running'],_0xfc570e[_0x507b10(0x123)],_0xfc570e['clusterName']]);}),console[_0x5b9c39(0x11d)](_0x515351['LdaKw'](table,_0x51f529)),process[_0x5b9c39(0x11b)](0x0);}_0x515351[_0x5b9c39(0x12b)](_0xb0247d[_0x5b9c39(0x13d)],0x191)&&(console[_0x5b9c39(0xf4)](_0x515351[_0x5b9c39(0x126)]),await _0x515351[_0x5b9c39(0x12d)](sendInstrumentationEvent,_0x4a0d02,_0x515351[_0x5b9c39(0x12a)],messageTypes[_0x5b9c39(0x140)],_0x515351['rVqhw'],null,_0x4a0d02),process['exit'](0x1)),console[_0x5b9c39(0xf4)](_0x5b9c39(0xf7)+JSON[_0x5b9c39(0xfe)](_0xb0247d)),await _0x515351[_0x5b9c39(0x111)](sendInstrumentationEvent,_0x4a0d02,_0x515351['WFkwy'],messageTypes[_0x5b9c39(0x140)],_0x515351[_0x5b9c39(0x10c)],_0xb0247d,_0x4a0d02),process[_0x5b9c39(0x11b)](0x1);}catch(_0x48442c){console[_0x5b9c39(0xf4)](_0x5b9c39(0xf5)+_0x48442c[_0x5b9c39(0x113)]),await _0x515351[_0x5b9c39(0x12d)](sendInstrumentationEvent,_0x4a0d02,_0x515351[_0x5b9c39(0x12a)],messageTypes[_0x5b9c39(0x140)],_0x515351[_0x5b9c39(0x133)],_0x48442c,_0x4a0d02),process[_0x5b9c39(0x11b)](0x1);}};
1
+ function a15_0x2b3f(){const _0x12372b=['bstackAccesskey','log','parse','ZqEFq','forEach','exit','queued','GVPZO','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','argv','jJbpx','push','got','TbDwb','usage','10zupiJm','error','unknown-error','desc','grid-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GET','grid','858560NriZpd','RgIFD','password','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','IjDlv','all-grids','list-grids-called','lPCII','930298BjOOek','QQCqx','status','stack','../../utils/utilityMethods','server-error','utuzy','grids','8MKiqZP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','help','grid-id','16416hDYvMP','type','cluster-name','1900906ZDPCbN','5092417lfwyzg','https://','stringify','/packages/cli/get-all-grids','requestId','YtLOk','ZqgGj','zpMMh','1879656jCMuJH','Browserstack','table','../../config/constants','LiPWF','IuhCH','ugMbi','body','list','\x0aFound\x20the\x20following\x20grids:\x0a','MGWuO','1324359ggcgBV','1115fmQqqE','Failed\x20to\x20list\x20resources!\x20Error:\x20','hquMW','running','1XAhzqD','QWBun','description','username','unauthorised','ERROR','ZnRRP','init-not-called','statusCode','uuid','yItlb','GjBGB','command','oLpBa','tZvPv','HHleE'];a15_0x2b3f=function(){return _0x12372b;};return a15_0x2b3f();}const a15_0x409b4e=a15_0x25ee;(function(_0x38092d,_0x35cdd6){const _0x45bedc=a15_0x25ee,_0x311f95=_0x38092d();while(!![]){try{const _0xc06155=parseInt(_0x45bedc(0x103))/0x1*(-parseInt(_0x45bedc(0xda))/0x2)+parseInt(_0x45bedc(0xf3))/0x3+parseInt(_0x45bedc(0xd1))/0x4+parseInt(_0x45bedc(0xff))/0x5*(-parseInt(_0x45bedc(0xe7))/0x6)+parseInt(_0x45bedc(0xea))/0x7+parseInt(_0x45bedc(0xe2))/0x8*(-parseInt(_0x45bedc(0xfe))/0x9)+-parseInt(_0x45bedc(0xc9))/0xa*(-parseInt(_0x45bedc(0xeb))/0xb);if(_0xc06155===_0x35cdd6)break;else _0x311f95['push'](_0x311f95['shift']());}catch(_0x33675b){_0x311f95['push'](_0x311f95['shift']());}}}(a15_0x2b3f,0x563f5));const fs=require('fs'),got=require(a15_0x409b4e(0xc6)),{table}=require(a15_0x409b4e(0xf5)),{v4:uuidv4}=require(a15_0x409b4e(0x10c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x409b4e(0xf6)),{getCredentialsPath,getAuthHeader}=require(a15_0x409b4e(0xde)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x25ee(_0x56e21b,_0x16424f){const _0x2b3f08=a15_0x2b3f();return a15_0x25ee=function(_0x25ee7c,_0x4deeab){_0x25ee7c=_0x25ee7c-0xb7;let _0x2fb663=_0x2b3f08[_0x25ee7c];return _0x2fb663;},a15_0x25ee(_0x56e21b,_0x16424f);}exports[a15_0x409b4e(0x10f)]=a15_0x409b4e(0xe1),exports[a15_0x409b4e(0xcc)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0xd8c34f){const _0xda45b7=a15_0x409b4e,_0x4ff212={};_0x4ff212[_0xda45b7(0xdb)]=_0xda45b7(0xc2),_0x4ff212[_0xda45b7(0xf2)]='boolean',_0x4ff212[_0xda45b7(0x109)]=_0xda45b7(0xe5);const _0x16a233=_0x4ff212,_0x19d105={};_0x19d105[_0xda45b7(0x105)]=_0x16a233[_0xda45b7(0xdb)],_0x19d105[_0xda45b7(0xe8)]=_0x16a233[_0xda45b7(0xf2)];const _0x21a0c2={};return _0x21a0c2[_0xda45b7(0xd7)]=_0x19d105,_0xd8c34f[_0xda45b7(0xc8)](HELP_HEADER_MESSAGE[_0xda45b7(0xfb)][_0xda45b7(0xd0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xda45b7(0xe4)](_0x21a0c2)[_0xda45b7(0xe5)](_0x16a233[_0xda45b7(0x109)])[_0xda45b7(0xc3)];},exports['handler']=async function(_0x4f0973){const _0xf98720=a15_0x409b4e,_0x63d3d5={'TbDwb':function(_0x2faea2){return _0x2faea2();},'tZvPv':function(_0x4e1ce3){return _0x4e1ce3();},'QWBun':_0xf98720(0xce),'nvVaf':function(_0x5d2e95,_0x1e1af8,_0x306b7a,_0x4ce19a,_0x1853db,_0x309fba,_0x45a749){return _0x5d2e95(_0x1e1af8,_0x306b7a,_0x4ce19a,_0x1853db,_0x309fba,_0x45a749);},'LiPWF':_0xf98720(0xd8),'vqutq':_0xf98720(0x10a),'hquMW':_0xf98720(0xcf),'utuzy':function(_0x25976f,_0x575e16,_0x2a12d9){return _0x25976f(_0x575e16,_0x2a12d9);},'HHleE':function(_0x503d8e,_0xf97508,_0x110712,_0x488da5,_0x614a43,_0x45f777,_0x3f494a){return _0x503d8e(_0xf97508,_0x110712,_0x488da5,_0x614a43,_0x45f777,_0x3f494a);},'GVPZO':function(_0xc61b7e,_0x54cf38,_0x241e41){return _0xc61b7e(_0x54cf38,_0x241e41);},'ugMbi':function(_0x16d486,_0x235567){return _0x16d486!==_0x235567;},'GjBGB':function(_0x5ad329,_0x33006f){return _0x5ad329!==_0x33006f;},'dMEVQ':function(_0x5042cf,_0x10d97e){return _0x5042cf===_0x10d97e;},'IjDlv':_0xf98720(0xfc),'jJbpx':_0xf98720(0xe6),'ZqEFq':_0xf98720(0xcd),'IuhCH':_0xf98720(0xdc),'MGWuO':_0xf98720(0x102),'YtLOk':_0xf98720(0xc0),'lPCII':_0xf98720(0xe9),'oLpBa':function(_0x11f486,_0x232cd9){return _0x11f486(_0x232cd9);},'ZqgGj':_0xf98720(0xe3),'jLMGD':_0xf98720(0x107),'RgIFD':_0xf98720(0xdf),'bhHVN':function(_0x1a9bcd,_0x36661f,_0x181615,_0x143f89,_0x529630,_0x2a1a95,_0x4e77db){return _0x1a9bcd(_0x36661f,_0x181615,_0x143f89,_0x529630,_0x2a1a95,_0x4e77db);},'yItlb':_0xf98720(0xcb)};try{global_registry[_0xf98720(0xef)]=_0x63d3d5[_0xf98720(0xc7)](uuidv4);!fs['existsSync'](_0x63d3d5[_0xf98720(0xb8)](getCredentialsPath))&&(console[_0xf98720(0xca)](_0x63d3d5[_0xf98720(0x104)]),await _0x63d3d5['nvVaf'](sendInstrumentationEvent,_0x4f0973,_0x63d3d5['LiPWF'],messageTypes[_0xf98720(0x108)],_0x63d3d5['vqutq'],null,_0x4f0973),process[_0xf98720(0xbf)](0x1));const _0x113682=JSON[_0xf98720(0xbc)](fs['readFileSync'](_0x63d3d5[_0xf98720(0xb8)](getCredentialsPath)));let _0x3eeb35=_0xf98720(0xec)+AG_API_URL+'/packages/cli/get-grids';_0x4f0973['allGrids']&&(_0x3eeb35=_0xf98720(0xec)+AG_API_URL+_0xf98720(0xee));const _0x44d95d={'method':_0x63d3d5[_0xf98720(0x101)],'headers':_0x63d3d5[_0xf98720(0xe0)](getAuthHeader,_0x113682['Browserstack'][_0xf98720(0x106)],_0x113682[_0xf98720(0xf4)][_0xf98720(0xd3)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x113682['Browserstack']['username'],global_registry[_0xf98720(0xba)]=_0x113682[_0xf98720(0xf4)]['password'],_0x63d3d5[_0xf98720(0xb9)](sendInstrumentationEvent,_0x4f0973,_0x63d3d5[_0xf98720(0xf7)],messageTypes['INFO'],null,null,_0x4f0973);const _0xb14b4b=await _0x63d3d5[_0xf98720(0xc1)](got,_0x3eeb35,_0x44d95d);if(_0x63d3d5[_0xf98720(0xf9)](_0xb14b4b,null)&&_0x63d3d5[_0xf98720(0x10e)](_0xb14b4b,undefined)&&_0x63d3d5['dMEVQ'](_0xb14b4b['statusCode'],0xc8)){const _0x2cb2c3=JSON[_0xf98720(0xbc)](_0xb14b4b[_0xf98720(0xfa)]);console[_0xf98720(0xbb)](_0x63d3d5[_0xf98720(0xd6)]);const _0x3b44cb=[];_0x3b44cb[_0xf98720(0xc5)]([_0x63d3d5[_0xf98720(0xc4)],_0x63d3d5[_0xf98720(0xbd)],_0x63d3d5[_0xf98720(0xf8)],_0x63d3d5[_0xf98720(0xfd)],_0x63d3d5[_0xf98720(0xf0)],_0x63d3d5[_0xf98720(0xd9)]]),_0x2cb2c3[_0xf98720(0xbe)](_0x12ae44=>{const _0x25aa2a=_0xf98720;_0x3b44cb[_0x25aa2a(0xc5)]([_0x12ae44['id'],_0x12ae44[_0x25aa2a(0xd4)],_0x12ae44[_0x25aa2a(0xdc)],_0x12ae44['running'],_0x12ae44[_0x25aa2a(0xc0)],_0x12ae44['clusterName']]);}),console[_0xf98720(0xbb)](_0x63d3d5[_0xf98720(0xb7)](table,_0x3b44cb)),process[_0xf98720(0xbf)](0x0);}_0x63d3d5['dMEVQ'](_0xb14b4b[_0xf98720(0x10b)],0x191)&&(console[_0xf98720(0xca)](_0x63d3d5[_0xf98720(0xf1)]),await _0x63d3d5[_0xf98720(0xb9)](sendInstrumentationEvent,_0x4f0973,_0x63d3d5[_0xf98720(0xf7)],messageTypes[_0xf98720(0x108)],_0x63d3d5['jLMGD'],null,_0x4f0973),process['exit'](0x1)),console[_0xf98720(0xca)](_0xf98720(0xd5)+JSON[_0xf98720(0xed)](_0xb14b4b)),await _0x63d3d5['HHleE'](sendInstrumentationEvent,_0x4f0973,_0x63d3d5[_0xf98720(0xf7)],messageTypes['ERROR'],_0x63d3d5[_0xf98720(0xd2)],_0xb14b4b,_0x4f0973),process[_0xf98720(0xbf)](0x1);}catch(_0x2f4db9){console[_0xf98720(0xca)](_0xf98720(0x100)+_0x2f4db9[_0xf98720(0xdd)]),await _0x63d3d5['bhHVN'](sendInstrumentationEvent,_0x4f0973,_0x63d3d5[_0xf98720(0xf7)],messageTypes[_0xf98720(0x108)],_0x63d3d5[_0xf98720(0x10d)],_0x2f4db9,_0x4f0973),process[_0xf98720(0xbf)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x1786(){const _0x322c18=['demandCommand','commandDir','802021EcfcdS','8085080CqDkWS','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','475302rNidVw','desc','XIwNu','usage','28CjJQLT','27yAQHVJ','4xUvAIh','602155fMBXdf','eabwA','builder','283327AmMgfr','../config/constants','108uUcxRN','55486syyxev','precheck_commands','pre_check','1079136DipMme','handler','help','84jKpoJW'];a16_0x1786=function(){return _0x322c18;};return a16_0x1786();}function a16_0x567c(_0x22bd8b,_0x42e6dd){const _0x1786b9=a16_0x1786();return a16_0x567c=function(_0x567c3a,_0x2b5ff0){_0x567c3a=_0x567c3a-0x1d3;let _0x369c2b=_0x1786b9[_0x567c3a];return _0x369c2b;},a16_0x567c(_0x22bd8b,_0x42e6dd);}const a16_0x1f548b=a16_0x567c;(function(_0x406f4f,_0x10b081){const _0x51ab48=a16_0x567c,_0x5d5522=_0x406f4f();while(!![]){try{const _0xf8e17b=-parseInt(_0x51ab48(0x1e1))/0x1+-parseInt(_0x51ab48(0x1d8))/0x2*(-parseInt(_0x51ab48(0x1de))/0x3)+parseInt(_0x51ab48(0x1ea))/0x4*(parseInt(_0x51ab48(0x1eb))/0x5)+parseInt(_0x51ab48(0x1e4))/0x6*(-parseInt(_0x51ab48(0x1e8))/0x7)+-parseInt(_0x51ab48(0x1db))/0x8*(parseInt(_0x51ab48(0x1e9))/0x9)+parseInt(_0x51ab48(0x1e2))/0xa+parseInt(_0x51ab48(0x1d5))/0xb*(parseInt(_0x51ab48(0x1d7))/0xc);if(_0xf8e17b===_0x10b081)break;else _0x5d5522['push'](_0x5d5522['shift']());}catch(_0x4743a2){_0x5d5522['push'](_0x5d5522['shift']());}}}(a16_0x1786,0x65127));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1f548b(0x1d6));exports['command']='pre-check',exports[a16_0x1f548b(0x1e5)]=a16_0x1f548b(0x1e3),exports[a16_0x1f548b(0x1d4)]=function(_0x3980ff){const _0x3157e2=a16_0x1f548b,_0x34f202={};_0x34f202[_0x3157e2(0x1e6)]=_0x3157e2(0x1d9),_0x34f202[_0x3157e2(0x1d3)]=_0x3157e2(0x1dd);const _0x19bd5c=_0x34f202;return _0x3980ff[_0x3157e2(0x1e7)](HELP_HEADER_MESSAGE[_0x3157e2(0x1da)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3157e2(0x1e0)](_0x19bd5c[_0x3157e2(0x1e6)])[_0x3157e2(0x1df)]()['recommendCommands']()['strict']()[_0x3157e2(0x1dd)](_0x19bd5c['eabwA']);},exports[a16_0x1f548b(0x1dc)]=function(_0x155872){};
1
+ function a16_0x44bf(_0x2ed33d,_0x1c0023){const _0xe4eec=a16_0xe4ee();return a16_0x44bf=function(_0x44bfd8,_0x360805){_0x44bfd8=_0x44bfd8-0x158;let _0x1049d1=_0xe4eec[_0x44bfd8];return _0x1049d1;},a16_0x44bf(_0x2ed33d,_0x1c0023);}const a16_0x4753db=a16_0x44bf;(function(_0x3f4143,_0xe88c5a){const _0x531f43=a16_0x44bf,_0x260e14=_0x3f4143();while(!![]){try{const _0x85d5e=-parseInt(_0x531f43(0x16b))/0x1*(-parseInt(_0x531f43(0x168))/0x2)+parseInt(_0x531f43(0x159))/0x3+-parseInt(_0x531f43(0x167))/0x4+-parseInt(_0x531f43(0x16e))/0x5+-parseInt(_0x531f43(0x16c))/0x6*(-parseInt(_0x531f43(0x16a))/0x7)+parseInt(_0x531f43(0x15d))/0x8+-parseInt(_0x531f43(0x164))/0x9;if(_0x85d5e===_0xe88c5a)break;else _0x260e14['push'](_0x260e14['shift']());}catch(_0x47a82e){_0x260e14['push'](_0x260e14['shift']());}}}(a16_0xe4ee,0x944c3));function a16_0xe4ee(){const _0x4d3c61=['recommendCommands','viwaE','3004800sJCkGZ','155070oJFxyv','command','4431nGwydm','10gxHpbl','7710fimdfC','help','1159250yCEzqT','handler','1563180VxFzhq','pre-check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','pre_check','4558824ZSWVNQ','wpwFB','epilogue','../config/constants','builder','commandDir','precheck_commands','9802719BwpIkB'];a16_0xe4ee=function(){return _0x4d3c61;};return a16_0xe4ee();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4753db(0x160));exports[a16_0x4753db(0x169)]=a16_0x4753db(0x15a),exports['desc']=a16_0x4753db(0x15b),exports[a16_0x4753db(0x161)]=function(_0x27da4b){const _0x451d70=a16_0x4753db,_0xfb2d37={};_0xfb2d37['wpwFB']=_0x451d70(0x163),_0xfb2d37[_0x451d70(0x166)]=_0x451d70(0x16d);const _0x5a596c=_0xfb2d37;return _0x27da4b['usage'](HELP_HEADER_MESSAGE[_0x451d70(0x15c)])[_0x451d70(0x15f)](HELP_FOOTER_MESSAGE)[_0x451d70(0x162)](_0x5a596c[_0x451d70(0x15e)])['demandCommand']()[_0x451d70(0x165)]()['strict']()['help'](_0x5a596c[_0x451d70(0x166)]);},exports[a16_0x4753db(0x158)]=function(_0x31a38f){};
@@ -1 +1 @@
1
- const a17_0x172b4a=a17_0x5ad8;(function(_0x4bdc65,_0xffb03a){const _0x3a97ae=a17_0x5ad8,_0x40e336=_0x4bdc65();while(!![]){try{const _0x363eab=-parseInt(_0x3a97ae(0x213))/0x1+-parseInt(_0x3a97ae(0x204))/0x2*(-parseInt(_0x3a97ae(0x177))/0x3)+parseInt(_0x3a97ae(0x169))/0x4*(parseInt(_0x3a97ae(0x1a7))/0x5)+-parseInt(_0x3a97ae(0x1e0))/0x6*(-parseInt(_0x3a97ae(0x14e))/0x7)+parseInt(_0x3a97ae(0x15a))/0x8*(-parseInt(_0x3a97ae(0x1a2))/0x9)+-parseInt(_0x3a97ae(0x212))/0xa*(parseInt(_0x3a97ae(0x19b))/0xb)+parseInt(_0x3a97ae(0x139))/0xc;if(_0x363eab===_0xffb03a)break;else _0x40e336['push'](_0x40e336['shift']());}catch(_0x145483){_0x40e336['push'](_0x40e336['shift']());}}}(a17_0x5305,0xdbf89));function a17_0x5ad8(_0x3b692e,_0x234350){const _0x530508=a17_0x5305();return a17_0x5ad8=function(_0x5ad8bc,_0x2cef0d){_0x5ad8bc=_0x5ad8bc-0x11a;let _0x5ca5e8=_0x530508[_0x5ad8bc];return _0x5ca5e8;},a17_0x5ad8(_0x3b692e,_0x234350);}function a17_0x5305(){const _0x1ecaab=['Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','stack','GET','Pre-check\x20running\x20for\x20Cloud\x20-\x20','.txt','pre-check','parse','LOG','getUTCHours','UCCpo','Missing\x20required\x20arguments:\x20','aWOHB','help','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','TEXyn','PGVYf','builder','TSYKY','getUTCFullYear','SlVWl','ybeah','headers','length','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Invalid\x20input.\x20grid\x20profiles:\x20','TLSv1_2_client_method','uwRHV','umoCI','fwVxP','ehnIW','NgYlU','xrKto','AZmfU','pAhRu','3|1|0|2|4','16210692EFTisL','KheyY','ikquf','hEGaK','pre-check-grid-called','JmLTQ','handler','Status:\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','hjxEG','status','existsSync','idDYX','\x20\x20Code:\x20','KFHWE','unable\x20to\x20verify\x20if\x20cluster\x20`','gridProfile','jPByJ','command','ceNNI','YyGQZ','89341DugGwS','lpCSL','pAyaH','isTls1_2_SUPPORTED','../../utils/utilityMethods','iUQMw','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','code','VGupQ','CLOUD_PROVIDER','pre-check-grid-profile-empty','Failure','13389304wdfLvC','Report\x20saved\x20in\x20','FRFYy','message','Message:\x20','wKdzB','Failed\x20in\x20pre-check!\x20Error:\x20','WebSocket','oBSSJ','`\x20,error\x20:\x20','toLowerCase','\x20error\x20:\x20','toolInstalledResp','ctiQG','grid-profile','4AnUzsK','ktgDp','Cluster\x20details\x0a-----------------------\x0a','password','requestId','grid\x20profile\x20flow\x20','CLjEU','N/A','rprzv','reconnecting-websocket','authHeader','QnaRe','got','forEach','201RqvFOs','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','tMUSy','PjVHY','tlgtF','<UsernamePlaceholder>','JVyuC','wrpVJ','info','accessResp','usYOK','lZulv','pAnVT','https://','hDuEY','xMuGR','isCliToolInstalled','zBIUC','body','Browserstack','PJzyH','ERROR','error\x20stack\x20:\x20','rLKsu','replace','find','tbmQy','\x20\x20Stack:\x20','sendEventToBackend','error','kIJfQ','header','ILbrD','cluster-name','type','/packages/cli/get-all-grid-profiles','1916453GMqxyP','method','throwHttpErrors','connectionTimeout','pre-check-cluster-args-not-passed','JphAz','KIcek','9zAZQKt','log/report_','kHZbQ','region','xVJRD','2382730zSjZQw','exit','KZaWh','is\x20already\x20present','CTUaG','getUTCMinutes','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','push','XPstE','\x20\x20Message:\x20','../../config/constants','will\x20be\x20created','kQYrv','cloudProvider','IrZne','`\x20is\x20present\x20in\x20region\x20`','cloud-provider-not-supported','rcxdB','clusterRegion','argv','string','ecArx','Ymrht','OEpTx','pre_check','FmLRy','Tool\x20Installed','cluster-check-failed-','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','stringify','\x20data\x20:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','wRpuI','SPxaG','../../config/logger','MOfOl','JEMLh','AtlXk','cloud-provider','YNAuP','grid','jPJMq','PxsRm','name','options','SHbas','getUTCDate','UYkUM','CaeDZ','UqmnF','Cluster\x20',']\x20status\x20:\x20','epilogue','../../utils/instrumentationUtils','readFileSync','dummy-grid','Success','354NlnHTm','checkAccess','UypQR','isTrialGridAccessible','init','description','clusterName','HQAoN','Chqks','vKfTJ','username','eFHml','usage','Error\x20Details:\x0a','response','User\x20Access','===\x20Precheck\x20Report\x20-\x20','Jtpua','ASqaC','bstackUsername','KxTRF','KGPzi','Cluster\x20`','gnRYd','cqCKl','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','EXyaz','ehUqe','data','NbuPM','jVGdw','`\x20already\x20exists','CcKfG','bytSn','UlfRa','stack\x20trace\x20','45814LPcwXz','gpDRC','XboIO','IMKiI','debug','../../cloudproviders/utils','YYJBJ','EEIFU','INFO','desc','sDtLO','MhsYE','yRuWt','iQvRF','10fDrVaC','1366336BCLtOg','jqpmk','UlmPk','kkaof','RYRtg','OCOgW','wICZW','wIowp','bstackAccesskey'];a17_0x5305=function(){return _0x1ecaab;};return a17_0x5305();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x172b4a(0x175)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x172b4a(0x172)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x172b4a(0x152)),{logger}=require(a17_0x172b4a(0x1c9)),{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_0x172b4a(0x1b1)),{getCloudProviderObjectWithOutInit}=require(a17_0x172b4a(0x209)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x172b4a(0x1dc));exports[a17_0x172b4a(0x14b)]=a17_0x172b4a(0x1cf),exports[a17_0x172b4a(0x20d)]=a17_0x172b4a(0x21c),exports[a17_0x172b4a(0x126)]=function(_0x263935){const _0x5c8e1c=a17_0x172b4a,_0x5c07a5={};_0x5c07a5[_0x5c8e1c(0x135)]=_0x5c8e1c(0x1c6),_0x5c07a5[_0x5c8e1c(0x211)]='string',_0x5c07a5['tbmQy']=_0x5c8e1c(0x1f9),_0x5c07a5['KxTRF']=_0x5c8e1c(0x123),_0x5c07a5[_0x5c8e1c(0x214)]=_0x5c8e1c(0x1c3),_0x5c07a5['GpyUP']=_0x5c8e1c(0x122);const _0x59219c=_0x5c07a5,_0x548967={};_0x548967[_0x5c8e1c(0x1e5)]=_0x59219c[_0x5c8e1c(0x135)],_0x548967[_0x5c8e1c(0x199)]=_0x59219c['iQvRF'];const _0x4b497a={};_0x4b497a[_0x5c8e1c(0x1e5)]=_0x59219c[_0x5c8e1c(0x191)],_0x4b497a[_0x5c8e1c(0x199)]=_0x59219c[_0x5c8e1c(0x211)];const _0x1c229c={};_0x1c229c[_0x5c8e1c(0x1e5)]=_0x59219c[_0x5c8e1c(0x1f4)],_0x1c229c[_0x5c8e1c(0x199)]=_0x59219c[_0x5c8e1c(0x211)];const _0x1cab81={};_0x1cab81['description']=_0x59219c[_0x5c8e1c(0x214)],_0x1cab81[_0x5c8e1c(0x199)]=_0x59219c[_0x5c8e1c(0x211)];const _0x561881={};return _0x561881[_0x5c8e1c(0x198)]=_0x548967,_0x561881[_0x5c8e1c(0x1cd)]=_0x4b497a,_0x561881['region']=_0x1c229c,_0x561881['grid-profile']=_0x1cab81,_0x263935[_0x5c8e1c(0x1ec)](HELP_HEADER_MESSAGE['pre_check'])[_0x5c8e1c(0x1db)](HELP_FOOTER_MESSAGE)[_0x5c8e1c(0x1d3)](_0x561881)[_0x5c8e1c(0x122)](_0x59219c['GpyUP'])[_0x5c8e1c(0x1ba)];};async function inputValidation(_0xd2ab09,_0x1c5051){const _0x2eb270=a17_0x172b4a,_0x3dd487={'KheyY':function(_0x4d0047,_0x327645){return _0x4d0047+_0x327645;},'tlgtF':_0x2eb270(0x1df),'TEXyn':_0x2eb270(0x159),'pAnVT':function(_0x47b3b3,_0x5790e3){return _0x47b3b3||_0x5790e3;},'UlmPk':_0x2eb270(0x170),'bytSn':_0x2eb270(0x1ed),'pzeOG':_0x2eb270(0x1c6),'ktgDp':_0x2eb270(0x1bb),'UlfRa':_0x2eb270(0x1f9),'vKfTJ':_0x2eb270(0x123),'ctiQG':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','jAAfB':_0x2eb270(0x122),'EXyaz':_0x2eb270(0x1cd),'eFHml':_0x2eb270(0x198),'SHbas':_0x2eb270(0x1a5),'rLKsu':'error','wRpuI':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','FRFYy':'is\x20already\x20present','TVSnS':_0x2eb270(0x1b2),'usYOK':function(_0x439d07,_0x35d990){return _0x439d07!==_0x35d990;},'SlVWl':_0x2eb270(0x20b),'rprzv':function(_0x963af2,_0x4bd9fd){return _0x963af2===_0x4bd9fd;},'rcxdB':_0x2eb270(0x14f),'jPByJ':function(_0x3d64b8,_0x5f5d30){return _0x3d64b8===_0x5f5d30;},'JEMLh':'YFSsU','fwVxP':'IxWGT','FmLRy':function(_0x1bb226,_0x333421){return _0x1bb226!==_0x333421;},'IrZne':_0x2eb270(0x1f7),'xVJRD':_0x2eb270(0x200),'kHZbQ':function(_0x16588b,_0x1cfb8d){return _0x16588b===_0x1cfb8d;},'KIcek':_0x2eb270(0x1ab),'ecArx':function(_0x1bc316,_0x271260){return _0x1bc316>_0x271260;},'umoCI':function(_0x3f6d30,_0x180549){return _0x3f6d30!==_0x180549;},'ikquf':_0x2eb270(0x20a),'LkLjV':_0x2eb270(0x20f),'hDuEY':function(_0x3330bc,_0x73559f,_0x30945c,_0x4734bd,_0x5b4bdf,_0x587187,_0x3ad73b,_0x4e0188){return _0x3330bc(_0x73559f,_0x30945c,_0x4734bd,_0x5b4bdf,_0x587187,_0x3ad73b,_0x4e0188);},'OEpTx':'pre-check-grid-called','kQYrv':_0x2eb270(0x19f),'vCLsq':_0x2eb270(0x17a),'ceNNI':_0x2eb270(0x13c),'wICZW':_0x2eb270(0x154),'sDtLO':_0x2eb270(0x1b7),'gpDRC':'wJdOT','KFHWE':_0x2eb270(0x1d6),'TSYKY':'JgbtN','ehUqe':_0x2eb270(0x21e),'xMuGR':function(_0xf15798,_0x2996ba,_0x5c8f70){return _0xf15798(_0x2996ba,_0x5c8f70);},'SPxaG':function(_0x243c54,_0x3a9aa5,_0x5e2742,_0x540c85,_0x583ba0,_0x56c01c){return _0x243c54(_0x3a9aa5,_0x5e2742,_0x540c85,_0x583ba0,_0x56c01c);},'NgYlU':_0x2eb270(0x11b),'NbuPM':_0x2eb270(0x168),'pAyaH':function(_0x625e4b,_0x3efb30){return _0x625e4b===_0x3efb30;},'JmLTQ':_0x2eb270(0x179),'ILbrD':function(_0x576040,_0x2e9195){return _0x576040(_0x2e9195);},'KGPzi':function(_0x5965c3,_0x17d676){return _0x5965c3!==_0x17d676;},'cqCKl':_0x2eb270(0x217),'wrpVJ':_0x2eb270(0x158),'kkaof':'bENQn','jVGdw':'phCdT','PGVYf':_0x2eb270(0x14d),'PJzyH':_0x2eb270(0x141),'kIJfQ':_0x2eb270(0x11f),'JphAz':function(_0x267a5b,_0x5633d0){return _0x267a5b===_0x5633d0;},'XPstE':_0x2eb270(0x1d0),'qTAgf':function(_0x31c735,_0x324ea0,_0x3ddd2b,_0x18a3c9,_0x234ffb,_0x49bb82,_0x127433,_0x5636b2){return _0x31c735(_0x324ea0,_0x3ddd2b,_0x18a3c9,_0x234ffb,_0x49bb82,_0x127433,_0x5636b2);}};let _0x350443;try{if(_0x3dd487[_0x2eb270(0x181)](_0x3dd487[_0x2eb270(0x129)],_0x3dd487[_0x2eb270(0x129)]))_0x65e07c=_0x1c7cc3;else{if(_0xd2ab09[_0x2eb270(0x1e6)]||_0xd2ab09[_0x2eb270(0x1b4)]||_0xd2ab09[_0x2eb270(0x1a5)]){if(_0x3dd487[_0x2eb270(0x171)](_0x3dd487['rcxdB'],_0x3dd487[_0x2eb270(0x1b8)])){const _0xaadd5e=[];if(!_0xd2ab09[_0x2eb270(0x1e6)]){if(_0x3dd487[_0x2eb270(0x14a)](_0x3dd487[_0x2eb270(0x1cb)],_0x3dd487[_0x2eb270(0x132)])){const {header:_0x25539f,response:_0x4d45ee}=_0x15323b,{status:_0x466b71,data:_0x224f6f,error:_0x5580b3}=_0x4d45ee;_0x3736ab+=_0x25539f+'\x20#'+_0x3dd487[_0x2eb270(0x13a)](_0x3f1b01,0x1)+'\x0a',_0x41feb8+=_0x2eb270(0x140)+(_0x466b71?_0x3dd487[_0x2eb270(0x17b)]:_0x3dd487[_0x2eb270(0x124)])+'\x0a',_0x439d24+=_0x2eb270(0x15e)+_0x3dd487[_0x2eb270(0x183)](_0x224f6f,_0x3dd487[_0x2eb270(0x215)])+'\x0a',_0x5580b3&&(_0x3a5277+=_0x3dd487['bytSn'],_0x43963f+=_0x2eb270(0x1b0)+(_0x5580b3[_0x2eb270(0x15d)]||_0x3dd487[_0x2eb270(0x215)])+'\x0a',_0x1de2c2+=_0x2eb270(0x146)+(_0x5580b3[_0x2eb270(0x155)]||_0x3dd487[_0x2eb270(0x215)])+'\x0a',_0x5f2499+=_0x2eb270(0x192)+(_0x5580b3[_0x2eb270(0x21d)]||_0x3dd487[_0x2eb270(0x215)])+'\x0a'),_0x4ec47a+='\x0a\x0a';}else _0xaadd5e[_0x2eb270(0x1ae)](_0x3dd487['eFHml']);};!_0xd2ab09[_0x2eb270(0x1b4)]&&(_0x3dd487[_0x2eb270(0x1c0)](_0x3dd487[_0x2eb270(0x1b5)],_0x3dd487[_0x2eb270(0x1a6)])?_0xaadd5e[_0x2eb270(0x1ae)](_0x3dd487[_0x2eb270(0x1fa)]):_0x5864f9[_0x2eb270(0x194)](_0x2eb270(0x18d)+_0x1bdae7[_0x2eb270(0x194)]['stack']));;if(!_0xd2ab09[_0x2eb270(0x1a5)]){if(_0x3dd487[_0x2eb270(0x1a4)](_0x3dd487[_0x2eb270(0x1a1)],_0x3dd487[_0x2eb270(0x1a1)]))_0xaadd5e[_0x2eb270(0x1ae)](_0x3dd487[_0x2eb270(0x1d4)]);else{const _0x132e56={};_0x132e56[_0x2eb270(0x1e5)]=_0x3dd487['pzeOG'],_0x132e56[_0x2eb270(0x199)]=_0x3dd487['ktgDp'];const _0x3d9075={};_0x3d9075[_0x2eb270(0x1e5)]=_0x3dd487[_0x2eb270(0x202)],_0x3d9075[_0x2eb270(0x199)]=_0x3dd487['ktgDp'];const _0x20ffe8={};_0x20ffe8[_0x2eb270(0x1e5)]=_0x3dd487[_0x2eb270(0x1e9)],_0x20ffe8[_0x2eb270(0x199)]=_0x3dd487[_0x2eb270(0x16a)];const _0x47872d={};_0x47872d['description']=_0x3dd487[_0x2eb270(0x167)],_0x47872d[_0x2eb270(0x199)]=_0x3dd487[_0x2eb270(0x16a)];const _0x19fd01={};return _0x19fd01['cluster-name']=_0x132e56,_0x19fd01[_0x2eb270(0x1cd)]=_0x3d9075,_0x19fd01[_0x2eb270(0x1a5)]=_0x20ffe8,_0x19fd01['grid-profile']=_0x47872d,_0x5ddd04[_0x2eb270(0x1ec)](_0x5161d2[_0x2eb270(0x1bf)])[_0x2eb270(0x1db)](_0x498a33)['options'](_0x19fd01)['help'](_0x3dd487['jAAfB'])[_0x2eb270(0x1ba)];}};_0x3dd487[_0x2eb270(0x1bc)](_0xaadd5e[_0x2eb270(0x12c)],0x0)&&(_0x3dd487[_0x2eb270(0x131)](_0x3dd487[_0x2eb270(0x13b)],_0x3dd487['LkLjV'])?(_0x350443=_0x2eb270(0x120)+_0xaadd5e['join'](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x3dd487[_0x2eb270(0x185)](reportToGalactusAndSendToEDS,_0xd2ab09,_0x1c5051,_0x350443,messageTypes[_0x2eb270(0x18c)],_0x3dd487[_0x2eb270(0x1be)],_0x3dd487[_0x2eb270(0x1b3)],_0x3dd487[_0x2eb270(0x18e)]),logger['error'](_0x350443),process[_0x2eb270(0x1a8)](0x1)):_0x404bac['push'](_0x3dd487[_0x2eb270(0x1fa)])),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xd2ab09['cloudProvider'][_0x2eb270(0x164)]())&&(_0x3dd487[_0x2eb270(0x14a)](_0x3dd487['vCLsq'],_0x3dd487[_0x2eb270(0x14c)])?_0x548201[_0x2eb270(0x1ae)](_0x3dd487[_0x2eb270(0x1eb)]):(_0x350443=_0x3dd487[_0x2eb270(0x219)],await _0x3dd487[_0x2eb270(0x185)](reportToGalactusAndSendToEDS,_0xd2ab09,_0x1c5051,_0x350443,messageTypes[_0x2eb270(0x18c)],_0x3dd487[_0x2eb270(0x1be)],_0x3dd487[_0x2eb270(0x20e)],_0x3dd487['rLKsu']),logger[_0x2eb270(0x194)](_0x350443),!_0xd2ab09[_0x2eb270(0x1b4)]&&(_0x3dd487['umoCI'](_0x3dd487[_0x2eb270(0x205)],_0x3dd487[_0x2eb270(0x147)])?(logger[_0x2eb270(0x17f)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x2eb270(0x157)]+'\x20'),_0xd2ab09[_0x2eb270(0x1b4)]=DEFAULT_CLUSTER_DETAILS[_0x2eb270(0x157)]):_0x10128a+=_0x2eb270(0x1d9)+_0x3911f5['clusterName']+_0x2eb270(0x1ad)))),global_registry[_0x2eb270(0x1e6)]=_0xd2ab09[_0x2eb270(0x1e6)],global_registry[_0x2eb270(0x1b4)]=_0xd2ab09['cloudProvider'],global_registry[_0x2eb270(0x1b9)]=_0xd2ab09['region'];}else _0xc526c2[_0x2eb270(0x1ae)](_0x3dd487[_0x2eb270(0x1d4)]);}else{if(_0xd2ab09[_0x2eb270(0x149)]){if(_0x3dd487[_0x2eb270(0x1c0)](_0x3dd487[_0x2eb270(0x127)],_0x3dd487[_0x2eb270(0x127)])){const _0xccaa44={};_0xccaa44[_0x2eb270(0x199)]=_0x2daf6a[_0x2eb270(0x11d)],_0xccaa44[_0x2eb270(0x15d)]=_0x4a0240,_0x5a0619['sendEventToBackend'](_0x2394f7,_0xccaa44,_0x3dd487[_0x2eb270(0x18e)],!![]);}else{global_registry['gridProfile']=_0xd2ab09[_0x2eb270(0x149)],logger[_0x2eb270(0x208)](_0x2eb270(0x16e)+_0xd2ab09[_0x2eb270(0x149)]);const _0x2e581b=_0x2eb270(0x184)+AG_API_URL+_0x2eb270(0x19a),_0x3ed9b4={};_0x3ed9b4[_0x2eb270(0x19c)]=_0x3dd487[_0x2eb270(0x1fb)],_0x3ed9b4[_0x2eb270(0x12b)]=global_registry[_0x2eb270(0x173)],_0x3ed9b4[_0x2eb270(0x19d)]=![];const _0x52609e=_0x3ed9b4,_0x1fb414=await _0x3dd487[_0x2eb270(0x186)](got,_0x2e581b,_0x52609e),_0x26036c=await _0x3dd487[_0x2eb270(0x1c8)](responseValidation,_0x1fb414,_0x3dd487[_0x2eb270(0x134)],_0x3dd487[_0x2eb270(0x1fd)],_0xd2ab09,_0x1c5051);let _0x48c082={};if(_0x3dd487[_0x2eb270(0x14a)](_0x26036c,0xc8)){if(_0x3dd487[_0x2eb270(0x150)](_0x3dd487['JmLTQ'],_0x3dd487[_0x2eb270(0x13e)])){const _0x88f543=JSON['parse'](_0x1fb414[_0x2eb270(0x189)]),_0x3f3ca1=_0x88f543[_0x2eb270(0x190)](_0x2da34a=>_0x2da34a[_0x2eb270(0x1d2)]===_0xd2ab09['gridProfile'])||null;_0x3dd487[_0x2eb270(0x197)](isUndefined,_0x3f3ca1)?_0x3dd487[_0x2eb270(0x1f5)](_0x3dd487[_0x2eb270(0x1f8)],_0x3dd487['cqCKl'])?(_0x5ed647[_0x2eb270(0x194)](_0x3dd487[_0x2eb270(0x1c7)]),_0x33630d[_0x2eb270(0x1a8)](0x1)):(_0x350443=_0x2eb270(0x12e)+_0xd2ab09['gridProfile']+_0x2eb270(0x178),await _0x3dd487['hDuEY'](reportToGalactusAndSendToEDS,_0xd2ab09,_0x1c5051,_0x350443,messageTypes['ERROR'],_0x3dd487[_0x2eb270(0x1be)],_0x3dd487[_0x2eb270(0x17e)],_0x3dd487[_0x2eb270(0x18e)]),logger[_0x2eb270(0x194)](_0x350443),process[_0x2eb270(0x1a8)](0x1)):_0x3dd487[_0x2eb270(0x1f5)](_0x3dd487[_0x2eb270(0x216)],_0x3dd487['kkaof'])?(_0x2b8152+=_0x3dd487[_0x2eb270(0x201)],_0x47f056+='\x20\x20Message:\x20'+(_0x3082ed[_0x2eb270(0x15d)]||_0x3dd487[_0x2eb270(0x215)])+'\x0a',_0x27faae+=_0x2eb270(0x146)+(_0x24f7c3[_0x2eb270(0x155)]||_0x3dd487[_0x2eb270(0x215)])+'\x0a',_0x2b021e+=_0x2eb270(0x192)+(_0x52d418['stack']||_0x3dd487[_0x2eb270(0x215)])+'\x0a'):_0x48c082=_0x3f3ca1;}else _0x24f742[_0x2eb270(0x1a8)](0x1);}else _0x3dd487[_0x2eb270(0x150)](_0x3dd487[_0x2eb270(0x1fe)],_0x3dd487[_0x2eb270(0x125)])?(_0xe2bc12[_0x2eb270(0x17f)]('Setting\x20cloud\x20provider\x20as\x20'+_0x495919[_0x2eb270(0x157)]+'\x20'),_0x3cce38[_0x2eb270(0x1b4)]=_0x4e2774[_0x2eb270(0x157)]):process[_0x2eb270(0x1a8)](0x1);const _0x59d95e={};_0x59d95e['type']=WS_EVENTS[_0x2eb270(0x11d)],_0x59d95e[_0x2eb270(0x15d)]=_0x3dd487[_0x2eb270(0x18b)],webSocketUtils[_0x2eb270(0x193)](_0x1c5051,_0x59d95e),global_registry['cloudProvider']=_0x48c082[_0x2eb270(0x1b4)],global_registry['clusterRegion']=_0x48c082[_0x2eb270(0x1a5)],global_registry[_0x2eb270(0x1e6)]=_0x48c082[_0x2eb270(0x1e6)];}}else _0x3dd487['FmLRy'](_0x3dd487['kIJfQ'],_0x3dd487[_0x2eb270(0x195)])?_0x16c7a1[_0x2eb270(0x17f)](_0x2eb270(0x1f6)+_0x1dfa44['clusterName']+_0x2eb270(0x1ff)):(logger[_0x2eb270(0x194)](_0x3dd487[_0x2eb270(0x1c7)]),process[_0x2eb270(0x1a8)](0x1));}}}catch(_0xd9ad40){_0x3dd487[_0x2eb270(0x1a0)](_0x3dd487[_0x2eb270(0x1af)],_0x3dd487['XPstE'])?(_0x350443=_0x2eb270(0x12d)+_0xd9ad40+':\x20'+_0xd9ad40[_0x2eb270(0x21d)],logger[_0x2eb270(0x194)](_0x350443),await _0x3dd487['qTAgf'](reportToGalactusAndSendToEDS,_0xd2ab09,_0x1c5051,_0x350443,messageTypes[_0x2eb270(0x18c)],_0x3dd487[_0x2eb270(0x1be)],_0x3dd487['sDtLO'],_0x3dd487['rLKsu']),process[_0x2eb270(0x1a8)](0x1)):_0x142365+=_0x2eb270(0x1d9)+_0x3eea41[_0x2eb270(0x1e6)]+'\x20'+(_0x47c124?_0x3dd487[_0x2eb270(0x15c)]:_0x3dd487['TVSnS'])+'\x0a\x0a';}}function printResponse(_0x9cc99e,_0x4db26c){const _0x2df949=a17_0x172b4a,_0x57b996={};_0x57b996[_0x2df949(0x1cc)]=function(_0x37c148,_0x54627f){return _0x37c148===_0x54627f;},_0x57b996[_0x2df949(0x17d)]=_0x2df949(0x142);const _0x23d786=_0x57b996;logger[_0x2df949(0x17f)]('['+_0x9cc99e+_0x2df949(0x1da)+_0x4db26c['status']+'\x20data\x20:\x20'+_0x4db26c[_0x2df949(0x1fc)]+_0x2df949(0x165)+_0x4db26c['error']),_0x4db26c[_0x2df949(0x194)]&&(_0x23d786['AtlXk'](_0x23d786[_0x2df949(0x17d)],_0x23d786[_0x2df949(0x17d)])?logger[_0x2df949(0x194)]('error\x20stack\x20:\x20'+_0x4db26c[_0x2df949(0x194)][_0x2df949(0x21d)]):(_0x582cae[_0x2df949(0x17f)]('['+_0x3171cc+_0x2df949(0x1da)+_0x1a73a5[_0x2df949(0x143)]+_0x2df949(0x1c5)+_0x3892a7['data']+_0x2df949(0x165)+_0x79797[_0x2df949(0x194)]),_0x30d0a1['error']&&_0x1dc083[_0x2df949(0x194)](_0x2df949(0x18d)+_0x4867f5[_0x2df949(0x194)][_0x2df949(0x21d)])));}async function generateReport(_0x569c7e,_0x31581a){const _0x354567=a17_0x172b4a,_0x4169ac={'YNAuP':function(_0x14b99a,_0x5d16f0){return _0x14b99a+_0x5d16f0;},'ybeah':'Success','rccJt':'Failure','slDOk':function(_0x493300,_0x85b87c){return _0x493300||_0x85b87c;},'ehnIW':_0x354567(0x170),'fIbui':_0x354567(0x1ed),'MOfOl':_0x354567(0x16b),'yRuWt':function(_0x35ea00,_0x485a77){return _0x35ea00!=_0x485a77;},'oBSSJ':_0x354567(0x1aa),'KZaWh':_0x354567(0x1b2),'UqmnF':function(_0x31232f){return _0x31232f();}};let _0x1fc401=_0x354567(0x1f0)+global_registry[_0x354567(0x1b4)]+'\x20===\x0a\x0a';return _0x569c7e[_0x354567(0x176)]((_0x35eefb,_0xbe89c5)=>{const _0x125788=_0x354567,{header:_0x558eb7,response:_0x356e7b}=_0x35eefb,{status:_0x280c3f,data:_0x32cd98,error:_0x4886c9}=_0x356e7b;_0x1fc401+=_0x558eb7+'\x20#'+_0x4169ac[_0x125788(0x1ce)](_0xbe89c5,0x1)+'\x0a',_0x1fc401+=_0x125788(0x140)+(_0x280c3f?_0x4169ac[_0x125788(0x12a)]:_0x4169ac['rccJt'])+'\x0a',_0x1fc401+=_0x125788(0x15e)+_0x4169ac['slDOk'](_0x32cd98,_0x4169ac[_0x125788(0x133)])+'\x0a',_0x4886c9&&(_0x1fc401+=_0x4169ac['fIbui'],_0x1fc401+=_0x125788(0x1b0)+(_0x4886c9[_0x125788(0x15d)]||_0x4169ac[_0x125788(0x133)])+'\x0a',_0x1fc401+='\x20\x20Code:\x20'+(_0x4886c9[_0x125788(0x155)]||_0x4169ac[_0x125788(0x133)])+'\x0a',_0x1fc401+='\x20\x20Stack:\x20'+(_0x4886c9['stack']||_0x4169ac['ehnIW'])+'\x0a'),_0x1fc401+='\x0a\x0a';}),_0x1fc401+=_0x4169ac[_0x354567(0x1ca)],_0x4169ac[_0x354567(0x210)](_0x31581a,null)?_0x1fc401+=_0x354567(0x1d9)+global_registry[_0x354567(0x1e6)]+'\x20'+(_0x31581a?_0x4169ac[_0x354567(0x162)]:_0x4169ac[_0x354567(0x1a9)])+'\x0a\x0a':_0x1fc401+='Cluster\x20'+global_registry[_0x354567(0x1e6)]+_0x354567(0x1ad),_0x1fc401+=_0x4169ac[_0x354567(0x1d8)](getSystemMetaData),_0x1fc401;};exports[a17_0x172b4a(0x13f)]=async function(_0x50671b){const _0x5b7b44=a17_0x172b4a,_0x2e9a33={'zBIUC':function(_0x2cb366){return _0x2cb366();},'ltxjL':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','idDYX':function(_0x4e800,_0x70dfde,_0x2cbb45,_0x238a23,_0x272357,_0x41a7a8,_0x3c688e,_0x4ca0ac){return _0x4e800(_0x70dfde,_0x2cbb45,_0x238a23,_0x272357,_0x41a7a8,_0x3c688e,_0x4ca0ac);},'lZulv':_0x5b7b44(0x13d),'AZmfU':'credential-not-found','CLjEU':_0x5b7b44(0x194),'UypQR':function(_0x117582,_0x15aa47,_0x1ff35a,_0x3e7dd8,_0x103d3c,_0x29bfad,_0x5404a0){return _0x117582(_0x15aa47,_0x1ff35a,_0x3e7dd8,_0x103d3c,_0x29bfad,_0x5404a0);},'Ymrht':function(_0x4d565c){return _0x4d565c();},'szBud':_0x5b7b44(0x17c),'OCOgW':'<PasswordPlaceholder>','XboIO':function(_0x1a48ef,_0x12e2e0,_0x114f99){return _0x1a48ef(_0x12e2e0,_0x114f99);},'CaeDZ':_0x5b7b44(0x1de),'HQAoN':function(_0x4fb280,_0x33ef4f,_0x6e1c8c){return _0x4fb280(_0x33ef4f,_0x6e1c8c);},'Jtpua':_0x5b7b44(0x166),'wIowp':_0x5b7b44(0x138),'uwRHV':function(_0x116ce4,_0x3fd064,_0x327b3c,_0x2d3a21,_0xe78036,_0x662c1b,_0x3a24bd,_0xe3518){return _0x116ce4(_0x3fd064,_0x327b3c,_0x2d3a21,_0xe78036,_0x662c1b,_0x3a24bd,_0xe3518);},'PdhcU':_0x5b7b44(0x180),'QnaRe':function(_0x4dea5d){return _0x4dea5d();},'LWHkw':_0x5b7b44(0x1e3),'PCKqX':function(_0xcdca81,_0x519265){return _0xcdca81(_0x519265);},'iUQMw':_0x5b7b44(0x12f),'ASqaC':function(_0x52e5e4,_0x14910f,_0x906855){return _0x52e5e4(_0x14910f,_0x906855);},'tAlvG':_0x5b7b44(0x151),'wKdzB':_0x5b7b44(0x1c1),'VGupQ':_0x5b7b44(0x1ef),'IMKiI':'Whitelisted\x20browserstack','kRivc':'SSL\x20Configured','Chqks':function(_0x27d1fb,_0x55fac0,_0x5db822){return _0x27d1fb(_0x55fac0,_0x5db822);},'PxsRm':function(_0x11340e,_0x5c259e){return _0x11340e+_0x5c259e;},'pAhRu':'utf-8','aWOHB':'pre-check-failed'};let _0x333c55,_0xce186f;try{global_registry[_0x5b7b44(0x16d)]=_0x2e9a33[_0x5b7b44(0x188)](uuidv4);!fs[_0x5b7b44(0x144)](_0x2e9a33[_0x5b7b44(0x188)](getCredentialsPath))&&(_0xce186f=_0x2e9a33['ltxjL'],logger[_0x5b7b44(0x194)](_0xce186f),await _0x2e9a33[_0x5b7b44(0x145)](reportToGalactusAndSendToEDS,_0x50671b,_0x333c55,_0xce186f,messageTypes[_0x5b7b44(0x18c)],_0x2e9a33[_0x5b7b44(0x182)],_0x2e9a33[_0x5b7b44(0x136)],_0x2e9a33['CLjEU']),process[_0x5b7b44(0x1a8)](0x1));_0x2e9a33[_0x5b7b44(0x1e2)](sendInstrumentationEvent,_0x50671b,_0x2e9a33['lZulv'],messageTypes[_0x5b7b44(0x20c)],null,null,_0x50671b);const _0xf87de4=JSON[_0x5b7b44(0x11c)](fs[_0x5b7b44(0x1dd)](_0x2e9a33[_0x5b7b44(0x1bd)](getCredentialsPath)));global_registry[_0x5b7b44(0x1f3)]=_0xf87de4[_0x5b7b44(0x18a)][_0x5b7b44(0x1ea)],global_registry[_0x5b7b44(0x21b)]=_0xf87de4[_0x5b7b44(0x18a)][_0x5b7b44(0x16c)];const _0x2952f6=WS_ENDPOINT[_0x5b7b44(0x18f)](_0x2e9a33['szBud'],_0xf87de4['Browserstack'][_0x5b7b44(0x1ea)])[_0x5b7b44(0x18f)](_0x2e9a33[_0x5b7b44(0x218)],_0xf87de4[_0x5b7b44(0x18a)][_0x5b7b44(0x16c)]),_0x27b6f0={};_0x27b6f0[_0x5b7b44(0x161)]=ws,_0x27b6f0[_0x5b7b44(0x19e)]=0x36ee80,_0x333c55=new ReconnectingWebSocket(_0x2952f6,[],_0x27b6f0),global_registry[_0x5b7b44(0x173)]=_0x2e9a33[_0x5b7b44(0x206)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x5b7b44(0x21b)]),await _0x2e9a33['XboIO'](inputValidation,_0x50671b,_0x333c55),logger[_0x5b7b44(0x17f)](_0x5b7b44(0x21f)+global_registry[_0x5b7b44(0x1b4)]+'\x20region\x20-\x20'+global_registry[_0x5b7b44(0x1b9)]);let _0x2e29e5=await _0x2e9a33[_0x5b7b44(0x1e2)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x5b7b44(0x1e6)],_0x2e9a33[_0x5b7b44(0x1d7)],_0x333c55,webSocketUtils,_0x50671b);const _0x2c1a69=await _0x2e29e5[_0x5b7b44(0x187)]();_0x2e9a33[_0x5b7b44(0x1e7)](printResponse,_0x2e9a33[_0x5b7b44(0x1f1)],_0x2c1a69),_0x2e29e5=await _0x2e29e5[_0x5b7b44(0x1e4)]();let _0x2b601c=![];try{_0x2b601c=await _0x2e29e5['isClusterPresent']();}catch(_0x2d107d){const _0x42473a=_0x2e9a33[_0x5b7b44(0x21a)]['split']('|');let _0x1ca5bf=0x0;while(!![]){switch(_0x42473a[_0x1ca5bf++]){case'0':logger[_0x5b7b44(0x194)](_0xce186f);continue;case'1':_0x2b601c=null;continue;case'2':_0xce186f+='\x0a'+JSON[_0x5b7b44(0x1c4)](_0x2d107d[_0x5b7b44(0x21d)]);continue;case'3':_0xce186f=_0x5b7b44(0x148)+global_registry[_0x5b7b44(0x1e6)]+_0x5b7b44(0x1b6)+global_registry[_0x5b7b44(0x1b9)]+_0x5b7b44(0x163)+_0x2d107d;continue;case'4':await _0x2e9a33[_0x5b7b44(0x130)](reportToGalactusAndSendToEDS,_0x50671b,_0x333c55,_0xce186f,messageTypes[_0x5b7b44(0x18c)],_0x2e9a33[_0x5b7b44(0x182)],_0x5b7b44(0x1c2)+global_registry['cloudProvider'],_0x2e9a33[_0x5b7b44(0x16f)]);continue;}break;}}_0x2b601c&&logger[_0x5b7b44(0x17f)](_0x5b7b44(0x1f6)+global_registry[_0x5b7b44(0x1e6)]+_0x5b7b44(0x1ff));const _0x44c378=await _0x2e29e5[_0x5b7b44(0x1e1)]();_0x2e9a33[_0x5b7b44(0x1e7)](printResponse,_0x2e9a33['PdhcU'],_0x44c378);const _0x2840da=await _0x2e9a33[_0x5b7b44(0x174)](curlRequest);_0x2e9a33[_0x5b7b44(0x1e7)](printResponse,_0x2e9a33['LWHkw'],_0x2840da);const _0x313be3=await _0x2e9a33['PCKqX'](isTlsSupported,_0x2e9a33[_0x5b7b44(0x153)]);_0x2e9a33[_0x5b7b44(0x1f2)](printResponse,_0x2e9a33['tAlvG'],_0x313be3);const _0x382cdb={};_0x382cdb[_0x5b7b44(0x196)]=_0x2e9a33[_0x5b7b44(0x15f)],_0x382cdb[_0x5b7b44(0x1ee)]=_0x2c1a69;const _0x3599ac={};_0x3599ac[_0x5b7b44(0x196)]=_0x2e9a33[_0x5b7b44(0x156)],_0x3599ac[_0x5b7b44(0x1ee)]=_0x44c378;const _0x4c9630={};_0x4c9630['header']=_0x2e9a33[_0x5b7b44(0x207)],_0x4c9630[_0x5b7b44(0x1ee)]=_0x2840da;const _0x1e570c={};_0x1e570c[_0x5b7b44(0x196)]=_0x2e9a33['kRivc'],_0x1e570c[_0x5b7b44(0x1ee)]=_0x313be3;const _0x3907db=[_0x382cdb,_0x3599ac,_0x4c9630,_0x1e570c],_0x17823a=await _0x2e9a33[_0x5b7b44(0x1e8)](generateReport,_0x3907db,_0x2b601c),_0x40b7e2=new Date(),_0x2536bf=_0x40b7e2[_0x5b7b44(0x128)]()+'_'+_0x2e9a33[_0x5b7b44(0x1d1)](_0x40b7e2['getUTCMonth'](),0x1)+'_'+_0x40b7e2[_0x5b7b44(0x1d5)]()+'_'+_0x40b7e2[_0x5b7b44(0x11e)]()+'_'+_0x40b7e2[_0x5b7b44(0x1ac)](),_0x6b8372=_0x5b7b44(0x1a3)+_0x2536bf+_0x5b7b44(0x11a);fs['writeFileSync'](_0x6b8372,_0x17823a,_0x2e9a33[_0x5b7b44(0x137)]),logger['info'](_0x5b7b44(0x15b)+_0x6b8372),process[_0x5b7b44(0x1a8)](0x0);}catch(_0x639427){let _0x76173c=_0x5b7b44(0x160)+_0x639427+'\x20';logger['error'](_0x76173c),_0x76173c+='\x0a'+JSON[_0x5b7b44(0x1c4)](_0x639427[_0x5b7b44(0x21d)]),logger[_0x5b7b44(0x208)](_0x5b7b44(0x203)+_0x639427[_0x5b7b44(0x21d)]);if(_0x333c55){const _0x1875a3={};_0x1875a3[_0x5b7b44(0x199)]=WS_EVENTS[_0x5b7b44(0x11d)],_0x1875a3['message']=_0x76173c,webSocketUtils[_0x5b7b44(0x193)](_0x333c55,_0x1875a3,_0x2e9a33[_0x5b7b44(0x16f)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x129759={};_0x129759[_0x5b7b44(0x194)]=_0x76173c,await _0x2e9a33[_0x5b7b44(0x1e2)](sendInstrumentationEvent,_0x50671b,_0x2e9a33[_0x5b7b44(0x182)],messageTypes['ERROR'],_0x2e9a33[_0x5b7b44(0x121)],_0x129759,_0x50671b),process[_0x5b7b44(0x1a8)](0x1);}};
1
+ const a17_0x369331=a17_0x2aa8;(function(_0x4ed792,_0x11db61){const _0x424f7a=a17_0x2aa8,_0x19f625=_0x4ed792();while(!![]){try{const _0x3e6ce7=-parseInt(_0x424f7a(0x1aa))/0x1+-parseInt(_0x424f7a(0x134))/0x2*(parseInt(_0x424f7a(0xd7))/0x3)+-parseInt(_0x424f7a(0x16c))/0x4+parseInt(_0x424f7a(0xf8))/0x5+-parseInt(_0x424f7a(0x13b))/0x6*(-parseInt(_0x424f7a(0x1ce))/0x7)+parseInt(_0x424f7a(0x177))/0x8+-parseInt(_0x424f7a(0x189))/0x9*(parseInt(_0x424f7a(0x121))/0xa);if(_0x3e6ce7===_0x11db61)break;else _0x19f625['push'](_0x19f625['shift']());}catch(_0x1256ed){_0x19f625['push'](_0x19f625['shift']());}}}(a17_0x437a,0xcc4bc));const fs=require('fs'),ws=require('ws'),got=require(a17_0x369331(0xee)),{v4:uuidv4}=require(a17_0x369331(0x187)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x369331(0xf0)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x369331(0x18c)),webSocketUtils=require(a17_0x369331(0xf9)),{sendInstrumentationEvent}=require(a17_0x369331(0x184));exports[a17_0x369331(0x191)]='grid',exports[a17_0x369331(0xda)]=a17_0x369331(0x11b),exports[a17_0x369331(0x14d)]=function(_0x17118e){const _0x1fbf96=a17_0x369331,_0x4fe24f={};_0x4fe24f[_0x1fbf96(0x115)]=_0x1fbf96(0xf1),_0x4fe24f['HmZHO']=_0x1fbf96(0xe0),_0x4fe24f[_0x1fbf96(0x1cf)]=_0x1fbf96(0xe4),_0x4fe24f['SssXJ']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4fe24f[_0x1fbf96(0xf3)]=_0x1fbf96(0x141),_0x4fe24f[_0x1fbf96(0x175)]='help';const _0x2e7fc2=_0x4fe24f,_0x37e3e5={};_0x37e3e5['description']=_0x2e7fc2[_0x1fbf96(0x115)],_0x37e3e5['type']=_0x2e7fc2['HmZHO'];const _0x4e01f5={};_0x4e01f5[_0x1fbf96(0x13a)]=_0x2e7fc2[_0x1fbf96(0x1cf)],_0x4e01f5[_0x1fbf96(0xe5)]=_0x2e7fc2['HmZHO'];const _0x577120={};_0x577120[_0x1fbf96(0x13a)]=_0x2e7fc2[_0x1fbf96(0x133)],_0x577120['type']=_0x2e7fc2[_0x1fbf96(0x1b8)];const _0x5e7a0a={};_0x5e7a0a[_0x1fbf96(0x13a)]=_0x2e7fc2[_0x1fbf96(0xf3)],_0x5e7a0a[_0x1fbf96(0xe5)]=_0x2e7fc2[_0x1fbf96(0x1b8)];const _0x110c85={};return _0x110c85[_0x1fbf96(0x159)]=_0x37e3e5,_0x110c85[_0x1fbf96(0x1c7)]=_0x4e01f5,_0x110c85['region']=_0x577120,_0x110c85[_0x1fbf96(0x167)]=_0x5e7a0a,_0x17118e['usage'](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1fbf96(0x1c8)](_0x110c85)['help'](_0x2e7fc2[_0x1fbf96(0x175)])[_0x1fbf96(0x199)];};async function inputValidation(_0x749c5b,_0x30ea22){const _0x19fbf4=a17_0x369331,_0x415140={'eUtvU':_0x19fbf4(0xf1),'mdUiN':_0x19fbf4(0xe0),'cnMfj':_0x19fbf4(0xe4),'JUvrL':_0x19fbf4(0x10f),'kKulY':_0x19fbf4(0x141),'eaMGF':_0x19fbf4(0x1af),'sXqLa':_0x19fbf4(0x1c7),'GcDcQ':_0x19fbf4(0x146),'Crmyo':'N/A','ikVrT':_0x19fbf4(0x17b),'AlOKm':_0x19fbf4(0x159),'vOCDY':_0x19fbf4(0x1b3),'CrKSS':_0x19fbf4(0xea),'XDXWe':function(_0x3ca53a,_0x6ffb83){return _0x3ca53a+_0x6ffb83;},'IyFoM':_0x19fbf4(0x1c6),'bpMcd':_0x19fbf4(0x10d),'hUpoo':function(_0x2e85ea,_0x4441ff){return _0x2e85ea||_0x4441ff;},'yjbjR':function(_0x23bdae,_0xd26dc1){return _0x23bdae!==_0xd26dc1;},'fvspi':_0x19fbf4(0x158),'FDrci':function(_0x1d7f22,_0x47764e){return _0x1d7f22!==_0x47764e;},'KrQQt':'hSngc','vsbdq':_0x19fbf4(0xeb),'QdVgs':'ZGJOv','SIuGF':function(_0x2e2cfc,_0x5cf2dd){return _0x2e2cfc===_0x5cf2dd;},'WDwnb':_0x19fbf4(0x148),'lcndT':_0x19fbf4(0x12a),'wlhgF':function(_0x13db46,_0x3a9e94){return _0x13db46!==_0x3a9e94;},'dUWCL':_0x19fbf4(0x1a4),'LFtls':function(_0x427489,_0x106147){return _0x427489>_0x106147;},'nmpMl':_0x19fbf4(0x111),'xPkAw':function(_0x4e4f9b,_0x33cac7,_0x3dbe6c,_0x84d77e,_0x510f8e,_0x233b01,_0x2e6bdc,_0x255807){return _0x4e4f9b(_0x33cac7,_0x3dbe6c,_0x84d77e,_0x510f8e,_0x233b01,_0x2e6bdc,_0x255807);},'frAUm':_0x19fbf4(0xde),'wAPXC':_0x19fbf4(0x157),'HjtJI':'keMhG','nLArL':_0x19fbf4(0xe9),'fkSPe':function(_0x41bfd6,_0x254e4b,_0x1f5b06,_0x52efd4,_0x3cb003,_0x20646b,_0x42c3a2,_0x5ac103){return _0x41bfd6(_0x254e4b,_0x1f5b06,_0x52efd4,_0x3cb003,_0x20646b,_0x42c3a2,_0x5ac103);},'mdtNy':_0x19fbf4(0xfb),'JoPad':function(_0x4d6f6d,_0x56bbc2){return _0x4d6f6d===_0x56bbc2;},'zyLJu':_0x19fbf4(0x185),'yDYym':_0x19fbf4(0x195),'qtsRP':_0x19fbf4(0x12b),'jlXAH':function(_0x370c6f,_0x50a136,_0x269249){return _0x370c6f(_0x50a136,_0x269249);},'ScbnR':function(_0x248461,_0x1ae715,_0x147c63,_0x1db962,_0x57c546,_0xeddc57){return _0x248461(_0x1ae715,_0x147c63,_0x1db962,_0x57c546,_0xeddc57);},'VUzvn':'pre-check','vNRyS':'grid-profile','UUFWy':_0x19fbf4(0xfc),'kPQSg':function(_0x297549,_0x168eda){return _0x297549(_0x168eda);},'hFKIG':function(_0x36fce6,_0x2cf298){return _0x36fce6!==_0x2cf298;},'Zzvre':_0x19fbf4(0x156),'sHpJq':_0x19fbf4(0xe3),'Ibgtm':_0x19fbf4(0x100),'eWFBS':_0x19fbf4(0x1cc),'GJNVz':_0x19fbf4(0x129),'uPRGQ':_0x19fbf4(0xec),'AmuPk':_0x19fbf4(0x106),'dXfGS':_0x19fbf4(0x1a1),'rWCSw':function(_0x155e3c,_0x80e68c){return _0x155e3c!==_0x80e68c;},'rTRvq':'vOwHf','UCeBq':'QHshU','PkwaV':function(_0x2d7110,_0x543c77,_0x3544f3,_0x54fea9,_0x505621,_0x54e427,_0x11c284,_0x497d08){return _0x2d7110(_0x543c77,_0x3544f3,_0x54fea9,_0x505621,_0x54e427,_0x11c284,_0x497d08);}};let _0x4f9222;try{if(_0x415140[_0x19fbf4(0x151)](_0x415140['fvspi'],_0x415140[_0x19fbf4(0x1ae)]))_0x15984a+='Cluster\x20'+_0x73fd80[_0x19fbf4(0x169)]+_0x19fbf4(0xdd);else{if(_0x749c5b[_0x19fbf4(0x169)]||_0x749c5b[_0x19fbf4(0x126)]||_0x749c5b['region']){if(_0x415140[_0x19fbf4(0x15f)](_0x415140[_0x19fbf4(0x1a5)],_0x415140['KrQQt']))_0x518fbe=_0x1d5c33;else{const _0x49870a=[];if(!_0x749c5b[_0x19fbf4(0x169)]){if(_0x415140[_0x19fbf4(0x151)](_0x415140[_0x19fbf4(0xd5)],_0x415140[_0x19fbf4(0x107)]))_0x49870a[_0x19fbf4(0x188)](_0x415140[_0x19fbf4(0x1bb)]);else{const _0x14c5f7={};_0x14c5f7[_0x19fbf4(0x13a)]=_0x415140[_0x19fbf4(0x10c)],_0x14c5f7[_0x19fbf4(0xe5)]=_0x415140['mdUiN'];const _0x323e4c={};_0x323e4c['description']=_0x415140[_0x19fbf4(0x101)],_0x323e4c[_0x19fbf4(0xe5)]=_0x415140['mdUiN'];const _0x52b567={};_0x52b567[_0x19fbf4(0x13a)]=_0x415140[_0x19fbf4(0x14a)],_0x52b567[_0x19fbf4(0xe5)]=_0x415140[_0x19fbf4(0x1b7)];const _0x46985f={};_0x46985f[_0x19fbf4(0x13a)]=_0x415140['kKulY'],_0x46985f[_0x19fbf4(0xe5)]=_0x415140[_0x19fbf4(0x1b7)];const _0x41ca7f={};return _0x41ca7f['cluster-name']=_0x14c5f7,_0x41ca7f['cloud-provider']=_0x323e4c,_0x41ca7f[_0x19fbf4(0x1b3)]=_0x52b567,_0x41ca7f[_0x19fbf4(0x167)]=_0x46985f,_0x1f3adb[_0x19fbf4(0x154)](_0x53c8bb[_0x19fbf4(0x1b5)])[_0x19fbf4(0x1d0)](_0x210de1)[_0x19fbf4(0x1c8)](_0x41ca7f)[_0x19fbf4(0x1af)](_0x415140['eaMGF'])['argv'];}};!_0x749c5b[_0x19fbf4(0x126)]&&(_0x415140[_0x19fbf4(0x14c)](_0x415140['WDwnb'],_0x415140['lcndT'])?_0x35ab87['info'](_0x19fbf4(0x136)+_0x12324c[_0x19fbf4(0x169)]+_0x19fbf4(0x18d)):_0x49870a['push'](_0x415140[_0x19fbf4(0x15a)]));;!_0x749c5b['region']&&(_0x415140[_0x19fbf4(0x160)](_0x415140['dUWCL'],_0x415140[_0x19fbf4(0x19c)])?_0x424b8[_0x19fbf4(0x1c9)](0x1):_0x49870a[_0x19fbf4(0x188)](_0x415140[_0x19fbf4(0x178)]));;_0x415140[_0x19fbf4(0xe8)](_0x49870a[_0x19fbf4(0x17f)],0x0)&&(_0x415140[_0x19fbf4(0x15f)](_0x415140[_0x19fbf4(0x15d)],_0x415140[_0x19fbf4(0x15d)])?(_0x4e2be9['info'](_0x19fbf4(0xdf)+_0x28503e[_0x19fbf4(0x127)]+'\x20'),_0xdb94c['cloudProvider']=_0x5347b8[_0x19fbf4(0x127)]):(_0x4f9222=_0x19fbf4(0x116)+_0x49870a[_0x19fbf4(0xd8)](',\x20')+_0x19fbf4(0x12f),await _0x415140[_0x19fbf4(0xed)](reportToGalactusAndSendToEDS,_0x749c5b,_0x30ea22,_0x4f9222,messageTypes['ERROR'],_0x415140[_0x19fbf4(0x13d)],_0x415140[_0x19fbf4(0xff)],_0x415140[_0x19fbf4(0x174)]),logger[_0x19fbf4(0xea)](_0x4f9222),process[_0x19fbf4(0x1c9)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x19fbf4(0x150)](_0x749c5b[_0x19fbf4(0x126)][_0x19fbf4(0x176)]())&&(_0x415140[_0x19fbf4(0x151)](_0x415140['HjtJI'],_0x415140[_0x19fbf4(0xf6)])?_0x56beb4['error'](_0x19fbf4(0x144)+_0x12b64d['error'][_0x19fbf4(0x137)]):(_0x4f9222=_0x415140[_0x19fbf4(0x10b)],await _0x415140[_0x19fbf4(0x170)](reportToGalactusAndSendToEDS,_0x749c5b,_0x30ea22,_0x4f9222,messageTypes[_0x19fbf4(0x17c)],_0x415140[_0x19fbf4(0x13d)],_0x415140[_0x19fbf4(0x1ba)],_0x415140[_0x19fbf4(0x174)]),logger['error'](_0x4f9222),!_0x749c5b[_0x19fbf4(0x126)]&&(_0x415140[_0x19fbf4(0x179)](_0x415140[_0x19fbf4(0x1ad)],_0x415140['zyLJu'])?(logger[_0x19fbf4(0x1c2)](_0x19fbf4(0xdf)+DEFAULT_CLUSTER_DETAILS[_0x19fbf4(0x127)]+'\x20'),_0x749c5b['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x19fbf4(0x127)]):_0x25eb98[_0x19fbf4(0x188)](_0x415140['sXqLa'])))),global_registry['clusterName']=_0x749c5b['clusterName'],global_registry[_0x19fbf4(0x126)]=_0x749c5b[_0x19fbf4(0x126)],global_registry['clusterRegion']=_0x749c5b[_0x19fbf4(0x1b3)];}}else{if(_0x749c5b[_0x19fbf4(0x16d)]){if(_0x415140['FDrci'](_0x415140[_0x19fbf4(0x198)],_0x415140[_0x19fbf4(0x198)]))_0x30b641+=_0x415140['GcDcQ'],_0x4daaf2+='\x20\x20Message:\x20'+(_0x19b0f3[_0x19fbf4(0x19e)]||_0x415140[_0x19fbf4(0x180)])+'\x0a',_0x44affd+='\x20\x20Code:\x20'+(_0x24e892['code']||_0x415140[_0x19fbf4(0x180)])+'\x0a',_0x560c8a+=_0x19fbf4(0x17a)+(_0x1632ba['stack']||_0x415140[_0x19fbf4(0x180)])+'\x0a';else{global_registry[_0x19fbf4(0x16d)]=_0x749c5b['gridProfile'],logger[_0x19fbf4(0x1a2)](_0x19fbf4(0x14b)+_0x749c5b[_0x19fbf4(0x16d)]);const _0x5276cb='https://'+AG_API_URL+_0x19fbf4(0x1ca),_0x2d98e9={};_0x2d98e9[_0x19fbf4(0x17d)]=_0x415140['qtsRP'],_0x2d98e9[_0x19fbf4(0x16b)]=global_registry['authHeader'],_0x2d98e9[_0x19fbf4(0x1a0)]=![];const _0x80fcc3=_0x2d98e9,_0x346792=await _0x415140['jlXAH'](got,_0x5276cb,_0x80fcc3),_0x5c7a2b=await _0x415140[_0x19fbf4(0x1ab)](responseValidation,_0x346792,_0x415140[_0x19fbf4(0x1b2)],_0x415140[_0x19fbf4(0x172)],_0x749c5b,_0x30ea22);let _0x50206a={};if(_0x415140[_0x19fbf4(0x179)](_0x5c7a2b,0xc8)){if(_0x415140['FDrci'](_0x415140[_0x19fbf4(0x192)],_0x415140[_0x19fbf4(0x192)]))_0x239a1b['error'](_0x415140[_0x19fbf4(0x113)]),_0x59f6cb['exit'](0x1);else{const _0x32c1a5=JSON[_0x19fbf4(0xe1)](_0x346792[_0x19fbf4(0x14f)]),_0x11e7d2=_0x32c1a5[_0x19fbf4(0x16f)](_0x373097=>_0x373097[_0x19fbf4(0x138)]===_0x749c5b[_0x19fbf4(0x16d)])||null;_0x415140[_0x19fbf4(0xf2)](isUndefined,_0x11e7d2)?_0x415140[_0x19fbf4(0x163)](_0x415140['Zzvre'],_0x415140['sHpJq'])?(_0x4f9222=_0x19fbf4(0x12c)+_0x749c5b[_0x19fbf4(0x16d)]+_0x19fbf4(0x147),await _0x415140[_0x19fbf4(0xed)](reportToGalactusAndSendToEDS,_0x749c5b,_0x30ea22,_0x4f9222,messageTypes['ERROR'],_0x415140['frAUm'],_0x415140['Ibgtm'],_0x415140['CrKSS']),logger['error'](_0x4f9222),process['exit'](0x1)):_0x31e3c8[_0x19fbf4(0x188)](_0x415140['AlOKm']):_0x415140[_0x19fbf4(0x15f)](_0x415140['eWFBS'],_0x415140[_0x19fbf4(0x123)])?_0x50206a=_0x11e7d2:_0x458039[_0x19fbf4(0x188)](_0x415140[_0x19fbf4(0x178)]);}}else _0x415140['yjbjR'](_0x415140[_0x19fbf4(0xe2)],_0x415140[_0x19fbf4(0x173)])?process['exit'](0x1):(_0x3227f8[_0x19fbf4(0x1c2)]('['+_0x281174+_0x19fbf4(0xf5)+_0x48d1f0[_0x19fbf4(0x10e)]+_0x19fbf4(0x164)+_0x110cb2['data']+'\x20error\x20:\x20'+_0x5516e0[_0x19fbf4(0xea)]),_0x283fa2['error']&&_0x54df68['error'](_0x19fbf4(0x144)+_0x3a8f43[_0x19fbf4(0xea)][_0x19fbf4(0x137)]));const _0x539397={};_0x539397[_0x19fbf4(0xe5)]=WS_EVENTS[_0x19fbf4(0x1cd)],_0x539397[_0x19fbf4(0x19e)]=_0x415140[_0x19fbf4(0x1ac)],webSocketUtils[_0x19fbf4(0x15c)](_0x30ea22,_0x539397),global_registry[_0x19fbf4(0x126)]=_0x50206a[_0x19fbf4(0x126)],global_registry['clusterRegion']=_0x50206a[_0x19fbf4(0x1b3)],global_registry[_0x19fbf4(0x169)]=_0x50206a[_0x19fbf4(0x169)];}}else{if(_0x415140[_0x19fbf4(0x15e)](_0x415140[_0x19fbf4(0x149)],_0x415140['rTRvq'])){const _0x423269={};_0x423269[_0x19fbf4(0xe5)]=_0xc0ca15[_0x19fbf4(0x1cd)],_0x423269[_0x19fbf4(0x19e)]=_0x4b9f9e,_0x59f37f[_0x19fbf4(0x15c)](_0x5884d1,_0x423269,_0x415140[_0x19fbf4(0x174)],!![]);}else logger['error'](_0x415140[_0x19fbf4(0x113)]),process[_0x19fbf4(0x1c9)](0x1);}}}}catch(_0x4a7975){if(_0x415140[_0x19fbf4(0x151)](_0x415140[_0x19fbf4(0x18f)],_0x415140[_0x19fbf4(0x18f)])){const {header:_0x5d759d,response:_0x517c64}=_0x616c92,{status:_0x13b397,data:_0x158cc8,error:_0x1723b2}=_0x517c64;_0x356a4c+=_0x5d759d+'\x20#'+_0x415140[_0x19fbf4(0x1c5)](_0xf3afd4,0x1)+'\x0a',_0x90dd07+=_0x19fbf4(0x11c)+(_0x13b397?_0x415140['IyFoM']:_0x415140['bpMcd'])+'\x0a',_0x2e5e9f+=_0x19fbf4(0x114)+_0x415140[_0x19fbf4(0x165)](_0x158cc8,_0x415140['Crmyo'])+'\x0a',_0x1723b2&&(_0x228c1e+=_0x415140[_0x19fbf4(0xd9)],_0x2867f6+=_0x19fbf4(0x152)+(_0x1723b2[_0x19fbf4(0x19e)]||_0x415140[_0x19fbf4(0x180)])+'\x0a',_0x24d1b2+=_0x19fbf4(0x145)+(_0x1723b2['code']||_0x415140['Crmyo'])+'\x0a',_0x3c63b4+='\x20\x20Stack:\x20'+(_0x1723b2[_0x19fbf4(0x137)]||_0x415140[_0x19fbf4(0x180)])+'\x0a'),_0x2146d6+='\x0a\x0a';}else _0x4f9222='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x4a7975+':\x20'+_0x4a7975[_0x19fbf4(0x137)],logger[_0x19fbf4(0xea)](_0x4f9222),await _0x415140[_0x19fbf4(0x19b)](reportToGalactusAndSendToEDS,_0x749c5b,_0x30ea22,_0x4f9222,messageTypes['ERROR'],_0x415140[_0x19fbf4(0x13d)],_0x415140[_0x19fbf4(0x1ba)],_0x415140[_0x19fbf4(0x174)]),process[_0x19fbf4(0x1c9)](0x1);}}function a17_0x2aa8(_0x19a49c,_0x4129fe){const _0x437a39=a17_0x437a();return a17_0x2aa8=function(_0x2aa82a,_0x44ee91){_0x2aa82a=_0x2aa82a-0xd5;let _0x4c91bb=_0x437a39[_0x2aa82a];return _0x4c91bb;},a17_0x2aa8(_0x19a49c,_0x4129fe);}function printResponse(_0x5b29e0,_0x3919fa){const _0x2ca0c2=a17_0x369331,_0xdf3131={};_0xdf3131[_0x2ca0c2(0x16a)]='is\x20already\x20present',_0xdf3131['qsHJC']=_0x2ca0c2(0x1a6),_0xdf3131['lBesy']=function(_0x3479b5,_0x57a5cb){return _0x3479b5===_0x57a5cb;},_0xdf3131[_0x2ca0c2(0x132)]=_0x2ca0c2(0x19d),_0xdf3131[_0x2ca0c2(0x1c4)]=_0x2ca0c2(0x1bd);const _0x217cae=_0xdf3131;logger['info']('['+_0x5b29e0+_0x2ca0c2(0xf5)+_0x3919fa['status']+_0x2ca0c2(0x164)+_0x3919fa[_0x2ca0c2(0x13f)]+_0x2ca0c2(0x1be)+_0x3919fa[_0x2ca0c2(0xea)]),_0x3919fa['error']&&(_0x217cae[_0x2ca0c2(0x108)](_0x217cae[_0x2ca0c2(0x132)],_0x217cae['wWCSD'])?_0x1b4071+='Cluster\x20'+_0x3f66fe['clusterName']+'\x20'+(_0x111ea2?_0x217cae[_0x2ca0c2(0x16a)]:_0x217cae['qsHJC'])+'\x0a\x0a':logger[_0x2ca0c2(0xea)]('error\x20stack\x20:\x20'+_0x3919fa[_0x2ca0c2(0xea)][_0x2ca0c2(0x137)]));}async function generateReport(_0x556360,_0x44cc15){const _0x3a264f=a17_0x369331,_0xfb8ac0={'YBWuy':function(_0x300f76,_0x4ad93c){return _0x300f76+_0x4ad93c;},'BGhTv':_0x3a264f(0x1c6),'YYlTI':_0x3a264f(0x10d),'beKir':function(_0x26d732,_0x5b7239){return _0x26d732||_0x5b7239;},'dNmRj':'N/A','ezpwu':_0x3a264f(0x146),'ZMXFF':_0x3a264f(0x12d),'Thvod':function(_0x46413a,_0x53b410){return _0x46413a!=_0x53b410;},'USzhp':_0x3a264f(0xdc),'XtFyP':_0x3a264f(0x1a6),'zqfIE':function(_0x3605a3){return _0x3605a3();}};let _0x3c47f1='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x3a264f(0x126)]+'\x20===\x0a\x0a';return _0x556360[_0x3a264f(0xe6)]((_0x251232,_0x2f6bc8)=>{const _0x265a51=_0x3a264f,{header:_0x387185,response:_0x3eaeab}=_0x251232,{status:_0x462c77,data:_0x2fffc2,error:_0x1a0be6}=_0x3eaeab;_0x3c47f1+=_0x387185+'\x20#'+_0xfb8ac0[_0x265a51(0x110)](_0x2f6bc8,0x1)+'\x0a',_0x3c47f1+='Status:\x20'+(_0x462c77?_0xfb8ac0[_0x265a51(0xef)]:_0xfb8ac0[_0x265a51(0x183)])+'\x0a',_0x3c47f1+=_0x265a51(0x114)+_0xfb8ac0[_0x265a51(0x13e)](_0x2fffc2,_0xfb8ac0[_0x265a51(0x118)])+'\x0a',_0x1a0be6&&(_0x3c47f1+=_0xfb8ac0[_0x265a51(0x104)],_0x3c47f1+=_0x265a51(0x152)+(_0x1a0be6[_0x265a51(0x19e)]||_0xfb8ac0[_0x265a51(0x118)])+'\x0a',_0x3c47f1+=_0x265a51(0x145)+(_0x1a0be6[_0x265a51(0x112)]||_0xfb8ac0[_0x265a51(0x118)])+'\x0a',_0x3c47f1+=_0x265a51(0x17a)+(_0x1a0be6[_0x265a51(0x137)]||_0xfb8ac0[_0x265a51(0x118)])+'\x0a'),_0x3c47f1+='\x0a\x0a';}),_0x3c47f1+=_0xfb8ac0[_0x3a264f(0x102)],_0xfb8ac0[_0x3a264f(0x171)](_0x44cc15,null)?_0x3c47f1+=_0x3a264f(0x119)+global_registry['clusterName']+'\x20'+(_0x44cc15?_0xfb8ac0[_0x3a264f(0xfe)]:_0xfb8ac0[_0x3a264f(0x197)])+'\x0a\x0a':_0x3c47f1+=_0x3a264f(0x119)+global_registry[_0x3a264f(0x169)]+_0x3a264f(0xdd),_0x3c47f1+=_0xfb8ac0[_0x3a264f(0x194)](getSystemMetaData),_0x3c47f1;}function a17_0x437a(){const _0x1ed872=['sendEventToBackend','nmpMl','rWCSw','FDrci','wlhgF','GNmfS','igdUh','hFKIG','\x20data\x20:\x20','hUpoo','stringify','grid-profile','InJMo','clusterName','jpnKJ','headers','2097352gcLoaY','gridProfile','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','find','fkSPe','Thvod','vNRyS','AmuPk','CrKSS','mXRpc','toLowerCase','13003952cqehLg','vOCDY','JoPad','\x20\x20Stack:\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','ERROR','method','dummy-grid','length','Crmyo','getUTCFullYear','Whitelisted\x20browserstack','YYlTI','../../utils/instrumentationUtils','cmiqN','WebSocket','uuid','push','1323441hxWOHR','requestId','connectionTimeout','../../cloudproviders/utils','`\x20already\x20exists','init','UCeBq','response','command','UUFWy','SSL\x20Configured','zqfIE','YtdyV','BscKO','XtFyP','yDYym','argv','getUTCMinutes','PkwaV','dUWCL','yLCRx','message','handler','throwHttpErrors','Grid\x20profile\x20fetched\x20for\x20pre-check','debug','ZRSXe','BZAFn','KrQQt','will\x20be\x20created','cIviT','PWeTM','Pre-check\x20running\x20for\x20Cloud\x20-\x20','85214HhsRDj','ScbnR','dXfGS','zyLJu','fvspi','help','bstackUsername','utf-8','VUzvn','region','Report\x20saved\x20in\x20','pre_check','existsSync','mdUiN','HmZHO','PSlbm','mdtNy','AlOKm','isClusterPresent','NhLLi','\x20error\x20:\x20','EdFlx','CZlSn','2|3|4|0|1','info','eBqUo','wWCSD','XDXWe','Success','cloud-provider','options','exit','/packages/cli/get-all-grid-profiles','replace','KLtHG','LOG','413rwJnXY','eQuOI','epilogue','vsbdq','readFileSync','2405331MVvkgB','join','GcDcQ','desc','`\x20,error\x20:\x20','is\x20already\x20present','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','pre-check-grid-called','Setting\x20cloud\x20provider\x20as\x20','string','parse','uPRGQ','FvgeW','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','type','forEach','accessResp','LFtls','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error','SxmKv','TxVvn','xPkAw','got','BGhTv','../../config/logger','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','kPQSg','FXqHT','ZUHOX',']\x20status\x20:\x20','HjtJI','MSUlc','4912315aOPBHy','../../utils/webSocketUtils','\x20region\x20-\x20','cloud-provider-not-supported','NJKPZ','User\x20Access','USzhp','wAPXC','pre-check-grid-profile-empty','cnMfj','ZMXFF','getUTCHours','ezpwu','stack\x20trace\x20','PQMiB','QdVgs','lBesy','authHeader','<UsernamePlaceholder>','nLArL','eUtvU','Failure','status','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','YBWuy','LkKGT','code','ikVrT','Message:\x20','IocxJ','Missing\x20required\x20arguments:\x20','bstackAccesskey','dNmRj','Cluster\x20','Browserstack','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Status:\x20','JrDwh','clusterRegion','rpjNM','getUTCDate','80SWAHgF','dRwtA','GJNVz','<PasswordPlaceholder>','password','cloudProvider','CLOUD_PROVIDER','header','uDLwY','BfIIv','GET','Invalid\x20input.\x20grid\x20profiles:\x20','Cluster\x20details\x0a-----------------------\x0a','GZhkx','.\x20Please\x20provide\x20all\x20required\x20arguments.','HXGbA','unable\x20to\x20verify\x20if\x20cluster\x20`','RAdfg','SssXJ','2OILIjI','credential-not-found','Cluster\x20`','stack','name','KkWaS','description','83040tILEOO','isTrialGridAccessible','frAUm','beKir','data','`\x20is\x20present\x20in\x20region\x20`','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','igplG','TLSv1_2_client_method','error\x20stack\x20:\x20','\x20\x20Code:\x20','Error\x20Details:\x0a','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','BqaFH','rTRvq','JUvrL','grid\x20profile\x20flow\x20','SIuGF','builder','.txt','body','includes','yjbjR','\x20\x20Message:\x20','split','usage','delay','Xpzaw','pre-check-cluster-args-not-passed','hjwOg','cluster-name','sXqLa','Tool\x20Installed'];a17_0x437a=function(){return _0x1ed872;};return a17_0x437a();};exports[a17_0x369331(0x19f)]=async function(_0x120a2b){const _0x32a33c=a17_0x369331,_0x6ca629={'HXGbA':function(_0x540a8d){return _0x540a8d();},'GZhkx':_0x32a33c(0x16e),'HwemP':function(_0x58b507,_0x4e0346,_0x51b154,_0x36282b,_0x3d10ee,_0x141fa8,_0xbc5ae9,_0x42860a){return _0x58b507(_0x4e0346,_0x51b154,_0x36282b,_0x3d10ee,_0x141fa8,_0xbc5ae9,_0x42860a);},'igplG':'pre-check-grid-called','yrjPU':_0x32a33c(0x135),'ZRSXe':_0x32a33c(0xea),'KkWaS':function(_0xb58382,_0x557c24,_0x1f800f,_0x1fdb81,_0x11ee35,_0x1481be,_0x48d04b){return _0xb58382(_0x557c24,_0x1f800f,_0x1fdb81,_0x11ee35,_0x1481be,_0x48d04b);},'igdUh':_0x32a33c(0x10a),'kLVsi':_0x32a33c(0x124),'JrDwh':function(_0xed41b3,_0x1cdfb2,_0x105875){return _0xed41b3(_0x1cdfb2,_0x105875);},'PSlbm':function(_0x3f2a85,_0xa833d8,_0x5be9ca){return _0x3f2a85(_0xa833d8,_0x5be9ca);},'BscKO':_0x32a33c(0x17e),'pVKhD':function(_0x399c35,_0x3a6463,_0x5a9b04){return _0x399c35(_0x3a6463,_0x5a9b04);},'rDMfT':'toolInstalledResp','CZlSn':_0x32a33c(0x1c1),'ZRkTm':_0x32a33c(0xe7),'eBqUo':_0x32a33c(0x13c),'PWeTM':function(_0x1e988d,_0x941a59){return _0x1e988d(_0x941a59);},'GNmfS':_0x32a33c(0x143),'ZUHOX':function(_0x569d63,_0x29c399,_0x4a3c74){return _0x569d63(_0x29c399,_0x4a3c74);},'MDwpy':'isTls1_2_SUPPORTED','SCdXD':_0x32a33c(0x15b),'MSUlc':_0x32a33c(0xfd),'dRwtA':_0x32a33c(0x182),'rpjNM':_0x32a33c(0x193),'InJMo':function(_0x20022d,_0x4d549){return _0x20022d+_0x4d549;},'EdFlx':_0x32a33c(0x1b1),'EQhbg':function(_0x4ac255,_0x4d1b8a,_0x13b690,_0x54362e,_0x3267e2,_0x3b68af,_0x768696){return _0x4ac255(_0x4d1b8a,_0x13b690,_0x54362e,_0x3267e2,_0x3b68af,_0x768696);},'cIviT':'pre-check-failed'};let _0x283734,_0x4a7847;try{global_registry[_0x32a33c(0x18a)]=_0x6ca629['HXGbA'](uuidv4);!fs[_0x32a33c(0x1b6)](_0x6ca629['HXGbA'](getCredentialsPath))&&(_0x4a7847=_0x6ca629[_0x32a33c(0x12e)],logger[_0x32a33c(0xea)](_0x4a7847),await _0x6ca629['HwemP'](reportToGalactusAndSendToEDS,_0x120a2b,_0x283734,_0x4a7847,messageTypes[_0x32a33c(0x17c)],_0x6ca629['igplG'],_0x6ca629['yrjPU'],_0x6ca629['ZRSXe']),process['exit'](0x1));_0x6ca629[_0x32a33c(0x139)](sendInstrumentationEvent,_0x120a2b,_0x6ca629[_0x32a33c(0x142)],messageTypes['INFO'],null,null,_0x120a2b);const _0x3f949d=JSON[_0x32a33c(0xe1)](fs[_0x32a33c(0xd6)](_0x6ca629['HXGbA'](getCredentialsPath)));global_registry[_0x32a33c(0x1b0)]=_0x3f949d[_0x32a33c(0x11a)]['username'],global_registry[_0x32a33c(0x117)]=_0x3f949d[_0x32a33c(0x11a)][_0x32a33c(0x125)];const _0x4b5432=WS_ENDPOINT[_0x32a33c(0x1cb)](_0x6ca629[_0x32a33c(0x162)],_0x3f949d[_0x32a33c(0x11a)]['username'])[_0x32a33c(0x1cb)](_0x6ca629['kLVsi'],_0x3f949d[_0x32a33c(0x11a)][_0x32a33c(0x125)]),_0x354f49={};_0x354f49[_0x32a33c(0x186)]=ws,_0x354f49[_0x32a33c(0x18b)]=0x36ee80,_0x283734=new ReconnectingWebSocket(_0x4b5432,[],_0x354f49),global_registry[_0x32a33c(0x109)]=_0x6ca629[_0x32a33c(0x11d)](getAuthHeader,global_registry[_0x32a33c(0x1b0)],global_registry[_0x32a33c(0x117)]),await _0x6ca629[_0x32a33c(0x1b9)](inputValidation,_0x120a2b,_0x283734),logger['info'](_0x32a33c(0x1a9)+global_registry[_0x32a33c(0x126)]+_0x32a33c(0xfa)+global_registry['clusterRegion']);let _0x3c8793=await _0x6ca629['KkWaS'](getCloudProviderObjectWithOutInit,global_registry[_0x32a33c(0x126)],global_registry['clusterName'],_0x6ca629[_0x32a33c(0x196)],_0x283734,webSocketUtils,_0x120a2b);const _0x5b89a=await _0x3c8793['isCliToolInstalled']();_0x6ca629['pVKhD'](printResponse,_0x6ca629['rDMfT'],_0x5b89a),_0x3c8793=await _0x3c8793[_0x32a33c(0x18e)]();let _0x4dae12=![];try{_0x4dae12=await _0x3c8793[_0x32a33c(0x1bc)]();}catch(_0x521071){const _0x93935d=_0x6ca629[_0x32a33c(0x1c0)][_0x32a33c(0x153)]('|');let _0x19cf0e=0x0;while(!![]){switch(_0x93935d[_0x19cf0e++]){case'0':_0x4a7847+='\x0a'+JSON[_0x32a33c(0x166)](_0x521071[_0x32a33c(0x137)]);continue;case'1':await _0x6ca629['HwemP'](reportToGalactusAndSendToEDS,_0x120a2b,_0x283734,_0x4a7847,messageTypes[_0x32a33c(0x17c)],_0x6ca629['igplG'],'cluster-check-failed-'+global_registry[_0x32a33c(0x126)],_0x6ca629['ZRSXe']);continue;case'2':_0x4a7847=_0x32a33c(0x131)+global_registry[_0x32a33c(0x169)]+_0x32a33c(0x140)+global_registry[_0x32a33c(0x11e)]+_0x32a33c(0xdb)+_0x521071;continue;case'3':_0x4dae12=null;continue;case'4':logger[_0x32a33c(0xea)](_0x4a7847);continue;}break;}}_0x4dae12&&logger[_0x32a33c(0x1c2)]('Cluster\x20`'+global_registry[_0x32a33c(0x169)]+_0x32a33c(0x18d));const _0x557fb3=await _0x3c8793['checkAccess']();_0x6ca629[_0x32a33c(0x11d)](printResponse,_0x6ca629['ZRkTm'],_0x557fb3);const _0x9be928=await _0x6ca629[_0x32a33c(0x130)](curlRequest);_0x6ca629[_0x32a33c(0x1b9)](printResponse,_0x6ca629[_0x32a33c(0x1c3)],_0x9be928);const _0x52630a=await _0x6ca629[_0x32a33c(0x1a8)](isTlsSupported,_0x6ca629[_0x32a33c(0x161)]);_0x6ca629[_0x32a33c(0xf4)](printResponse,_0x6ca629['MDwpy'],_0x52630a);const _0xb82b6={};_0xb82b6[_0x32a33c(0x128)]=_0x6ca629['SCdXD'],_0xb82b6[_0x32a33c(0x190)]=_0x5b89a;const _0xeccfc={};_0xeccfc['header']=_0x6ca629[_0x32a33c(0xf7)],_0xeccfc[_0x32a33c(0x190)]=_0x557fb3;const _0x31889b={};_0x31889b['header']=_0x6ca629[_0x32a33c(0x122)],_0x31889b[_0x32a33c(0x190)]=_0x9be928;const _0x447eb1={};_0x447eb1[_0x32a33c(0x128)]=_0x6ca629[_0x32a33c(0x11f)],_0x447eb1[_0x32a33c(0x190)]=_0x52630a;const _0x5998a7=[_0xb82b6,_0xeccfc,_0x31889b,_0x447eb1],_0x5a4564=await _0x6ca629['PSlbm'](generateReport,_0x5998a7,_0x4dae12),_0x36c43a=new Date(),_0x14f54b=_0x36c43a[_0x32a33c(0x181)]()+'_'+_0x6ca629[_0x32a33c(0x168)](_0x36c43a['getUTCMonth'](),0x1)+'_'+_0x36c43a[_0x32a33c(0x120)]()+'_'+_0x36c43a[_0x32a33c(0x103)]()+'_'+_0x36c43a[_0x32a33c(0x19a)](),_0x11d528='log/report_'+_0x14f54b+_0x32a33c(0x14e);fs['writeFileSync'](_0x11d528,_0x5a4564,_0x6ca629[_0x32a33c(0x1bf)]),logger[_0x32a33c(0x1c2)](_0x32a33c(0x1b4)+_0x11d528),process[_0x32a33c(0x1c9)](0x0);}catch(_0x5e94a1){let _0xf59662='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x5e94a1+'\x20';logger[_0x32a33c(0xea)](_0xf59662),_0xf59662+='\x0a'+JSON[_0x32a33c(0x166)](_0x5e94a1['stack']),logger[_0x32a33c(0x1a2)](_0x32a33c(0x105)+_0x5e94a1[_0x32a33c(0x137)]);if(_0x283734){const _0x4262e0={};_0x4262e0[_0x32a33c(0xe5)]=WS_EVENTS[_0x32a33c(0x1cd)],_0x4262e0['message']=_0xf59662,webSocketUtils['sendEventToBackend'](_0x283734,_0x4262e0,_0x6ca629[_0x32a33c(0x1a3)],!![]);}await webSocketUtils[_0x32a33c(0x155)](0x7d0);const _0x3f20d5={};_0x3f20d5['error']=_0xf59662,await _0x6ca629['EQhbg'](sendInstrumentationEvent,_0x120a2b,_0x6ca629[_0x32a33c(0x142)],messageTypes['ERROR'],_0x6ca629[_0x32a33c(0x1a7)],_0x3f20d5,_0x120a2b),process[_0x32a33c(0x1c9)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x3e2abc=a18_0x11c3;(function(_0x104d7f,_0x3e9186){const _0x2bee4e=a18_0x11c3,_0x4dc0ac=_0x104d7f();while(!![]){try{const _0x54a0df=parseInt(_0x2bee4e(0x9c))/0x1*(parseInt(_0x2bee4e(0x8f))/0x2)+-parseInt(_0x2bee4e(0x86))/0x3+parseInt(_0x2bee4e(0x98))/0x4*(-parseInt(_0x2bee4e(0x8d))/0x5)+parseInt(_0x2bee4e(0x9d))/0x6*(parseInt(_0x2bee4e(0x9b))/0x7)+parseInt(_0x2bee4e(0x92))/0x8*(-parseInt(_0x2bee4e(0x90))/0x9)+-parseInt(_0x2bee4e(0x8c))/0xa*(parseInt(_0x2bee4e(0x99))/0xb)+parseInt(_0x2bee4e(0x8b))/0xc;if(_0x54a0df===_0x3e9186)break;else _0x4dc0ac['push'](_0x4dc0ac['shift']());}catch(_0x34234a){_0x4dc0ac['push'](_0x4dc0ac['shift']());}}}(a18_0x3250,0x7f6b9));function a18_0x11c3(_0x3094a7,_0x550520){const _0x3250b9=a18_0x3250();return a18_0x11c3=function(_0x11c37a,_0x14939a){_0x11c37a=_0x11c37a-0x85;let _0x5aa543=_0x3250b9[_0x11c37a];return _0x5aa543;},a18_0x11c3(_0x3094a7,_0x550520);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3e2abc(0x94));exports[a18_0x3e2abc(0x96)]=a18_0x3e2abc(0x93),exports[a18_0x3e2abc(0x89)]=a18_0x3e2abc(0x87),exports[a18_0x3e2abc(0x85)]=function(_0x57d7e2){const _0x30fce0=a18_0x3e2abc,_0x100cca={};_0x100cca[_0x30fce0(0x9a)]='start_commands',_0x100cca[_0x30fce0(0x97)]=_0x30fce0(0x88);const _0xc079bd=_0x100cca;return _0x57d7e2['usage'](HELP_HEADER_MESSAGE['start'])[_0x30fce0(0x8a)](HELP_FOOTER_MESSAGE)[_0x30fce0(0x8e)](_0xc079bd[_0x30fce0(0x9a)])[_0x30fce0(0x9e)]()['recommendCommands']()[_0x30fce0(0x91)]()[_0x30fce0(0x88)](_0xc079bd['tHtvg']);},exports[a18_0x3e2abc(0x95)]=function(_0x5df36f){};function a18_0x3250(){const _0x22cec9=['start','../config/constants','handler','command','tHtvg','1637816WsgmbR','131197aGkiNq','lzyRT','5820164hjaQdU','11283veGtDb','6BpwhHu','demandCommand','builder','595797fvmNlO','Start\x20an\x20existing\x20Automation\x20grid.','help','desc','epilogue','17567508mOWYwU','20qlBgmo','10uBSULc','commandDir','40LQnIvs','8620173xKSFlI','strict','8QhuYRb'];a18_0x3250=function(){return _0x22cec9;};return a18_0x3250();}
1
+ const a18_0x13d4c6=a18_0x3a73;(function(_0x206c32,_0x1d4cfb){const _0x240bc7=a18_0x3a73,_0x222294=_0x206c32();while(!![]){try{const _0x12b55c=-parseInt(_0x240bc7(0x1ac))/0x1*(-parseInt(_0x240bc7(0x1b4))/0x2)+parseInt(_0x240bc7(0x1b6))/0x3*(parseInt(_0x240bc7(0x1b8))/0x4)+parseInt(_0x240bc7(0x1a8))/0x5*(parseInt(_0x240bc7(0x1a2))/0x6)+parseInt(_0x240bc7(0x1b2))/0x7+-parseInt(_0x240bc7(0x1b9))/0x8+-parseInt(_0x240bc7(0x1a4))/0x9*(-parseInt(_0x240bc7(0x1bb))/0xa)+-parseInt(_0x240bc7(0x1ba))/0xb;if(_0x12b55c===_0x1d4cfb)break;else _0x222294['push'](_0x222294['shift']());}catch(_0x472045){_0x222294['push'](_0x222294['shift']());}}}(a18_0x4c3f,0x95f49));function a18_0x3a73(_0x25275d,_0x448829){const _0x4c3f80=a18_0x4c3f();return a18_0x3a73=function(_0x3a739a,_0x2e0e18){_0x3a739a=_0x3a739a-0x1a1;let _0x3255a4=_0x4c3f80[_0x3a739a];return _0x3255a4;},a18_0x3a73(_0x25275d,_0x448829);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x13d4c6(0x1ad));exports[a18_0x13d4c6(0x1b7)]=a18_0x13d4c6(0x1a3),exports[a18_0x13d4c6(0x1af)]=a18_0x13d4c6(0x1a5),exports[a18_0x13d4c6(0x1ae)]=function(_0x246ba4){const _0x2bf6ca=a18_0x13d4c6,_0x20868e={};_0x20868e['ziehZ']=_0x2bf6ca(0x1ab),_0x20868e['FzYAD']=_0x2bf6ca(0x1a9);const _0x205632=_0x20868e;return _0x246ba4[_0x2bf6ca(0x1a1)](HELP_HEADER_MESSAGE['start'])[_0x2bf6ca(0x1b1)](HELP_FOOTER_MESSAGE)[_0x2bf6ca(0x1b3)](_0x205632[_0x2bf6ca(0x1aa)])[_0x2bf6ca(0x1b5)]()[_0x2bf6ca(0x1a6)]()[_0x2bf6ca(0x1a7)]()[_0x2bf6ca(0x1a9)](_0x205632['FzYAD']);},exports[a18_0x13d4c6(0x1b0)]=function(_0x4febf9){};function a18_0x4c3f(){const _0x13f668=['help','ziehZ','start_commands','3CnOldo','../config/constants','builder','desc','handler','epilogue','5175296lxMFrG','commandDir','417388CdkVmn','demandCommand','25395zsCYvj','command','388owAReh','1310928EsdRtn','28698296nbyjmO','2765780YvnhtS','usage','370770msjOQX','start','27wWWrbz','Start\x20an\x20existing\x20Automation\x20grid.','recommendCommands','strict','30SoQbGl'];a18_0x4c3f=function(){return _0x13f668;};return a18_0x4c3f();}
@@ -1 +1 @@
1
- const a19_0x485f13=a19_0x27d5;function a19_0x5d7f(){const _0x447c30=['hOGXS','stringify','bstackAccesskey','username','type','description','info','ZHfcr','22424gZuCbF','connectionTimeout','Browserstack','error','8DKUJZN','grid','invalid-grid-id','Start\x20an\x20existing\x20Automation\x20grid.','bstackUsername','JaZnS','epilogue','18Zinqnu','command','addListeners','INFO','Skip\x20insecure\x20cert\x20verification.','Starting\x20grid\x20','995ieqZdM','TGoiX','parse','builder','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','grid-id','yEUPj','fHpko','stack','gridId','PpGSW','4474272wDAmJM','PaTHx','clusterName','1904454FIKrqY','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','7706270SvXZRA','../../utils/webSocketUtils','desc','../../utils/createk8sClient','RkzJu','../../cloudproviders/utils','CSkLi','../../config/logger','yBHoM','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../utils/instrumentationUtils','start','cWoss','exit','existsSync','usage','vzFdP','14fAXYFK','unauthorised','../../utils/utilityMethods','boolean','WebSocket','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','UvxZR','argv','server-error','password','8265271SoBkVz','handler','default','statusCode','<UsernamePlaceholder>','yiFlk','mXKWH','start-grid-called','ERROR','jFxtf','LGpFQ','replace','JwgcP','ixlmr','38724202WNStCl','OXCTh','options','Grid\x20started','reconnecting-websocket','region','cloudProvider','message','6752KkWrTh','debug','help'];a19_0x5d7f=function(){return _0x447c30;};return a19_0x5d7f();}(function(_0xfd7631,_0x56502d){const _0x40e69a=a19_0x27d5,_0x27e556=_0xfd7631();while(!![]){try{const _0x5c6d3c=parseInt(_0x40e69a(0x16d))/0x1*(-parseInt(_0x40e69a(0x18d))/0x2)+-parseInt(_0x40e69a(0x1b4))/0x3+-parseInt(_0x40e69a(0x198))/0x4*(parseInt(_0x40e69a(0x1a9))/0x5)+parseInt(_0x40e69a(0x159))/0x6+parseInt(_0x40e69a(0x177))/0x7*(parseInt(_0x40e69a(0x19c))/0x8)+parseInt(_0x40e69a(0x1a3))/0x9*(-parseInt(_0x40e69a(0x15b))/0xa)+parseInt(_0x40e69a(0x185))/0xb;if(_0x5c6d3c===_0x56502d)break;else _0x27e556['push'](_0x27e556['shift']());}catch(_0x484bce){_0x27e556['push'](_0x27e556['shift']());}}}(a19_0x5d7f,0xc8ee0));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x485f13(0x189)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x485f13(0x162)),{getCredentialsPath,getGridDetails}=require(a19_0x485f13(0x16f)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x485f13(0x166)),webSocketUtils=require(a19_0x485f13(0x15c)),{createK8sClient}=require(a19_0x485f13(0x15e)),{getCloudProviderObject}=require(a19_0x485f13(0x160));function a19_0x27d5(_0x8ae4ed,_0x48094a){const _0x5d7f9c=a19_0x5d7f();return a19_0x27d5=function(_0x27d59f,_0x5dcf77){_0x27d59f=_0x27d59f-0x159;let _0x1b1fa=_0x5d7f9c[_0x27d59f];return _0x1b1fa;},a19_0x27d5(_0x8ae4ed,_0x48094a);}exports[a19_0x485f13(0x1a4)]=a19_0x485f13(0x19d),exports[a19_0x485f13(0x15d)]=a19_0x485f13(0x19f),exports[a19_0x485f13(0x1ac)]=function(_0x2970f6){const _0x3f401c=a19_0x485f13,_0x1b2942={};_0x1b2942[_0x3f401c(0x168)]=_0x3f401c(0x165),_0x1b2942['hOGXS']='string',_0x1b2942['yEUPj']=_0x3f401c(0x1a7),_0x1b2942[_0x3f401c(0x184)]=_0x3f401c(0x170),_0x1b2942[_0x3f401c(0x17c)]=_0x3f401c(0x18f);const _0x13f47e=_0x1b2942,_0xd0b1f1={};_0xd0b1f1[_0x3f401c(0x195)]=_0x13f47e['cWoss'],_0xd0b1f1[_0x3f401c(0x194)]=_0x13f47e[_0x3f401c(0x190)];const _0x49a919={};_0x49a919[_0x3f401c(0x195)]=_0x13f47e[_0x3f401c(0x1af)],_0x49a919['type']=_0x13f47e[_0x3f401c(0x184)],_0x49a919[_0x3f401c(0x179)]=![];const _0x594376={};return _0x594376[_0x3f401c(0x1ae)]=_0xd0b1f1,_0x594376['skip-tls-cert-verify']=_0x49a919,_0x2970f6[_0x3f401c(0x16b)](HELP_HEADER_MESSAGE[_0x3f401c(0x167)])[_0x3f401c(0x1a2)](HELP_FOOTER_MESSAGE)[_0x3f401c(0x187)](_0x594376)[_0x3f401c(0x18f)](_0x13f47e[_0x3f401c(0x17c)])[_0x3f401c(0x174)];},exports[a19_0x485f13(0x178)]=async function(_0x1b4637){const _0x256b73=a19_0x485f13,_0xa26dea={'mXKWH':_0x256b73(0x15a),'JwgcP':function(_0x216233){return _0x216233();},'OXCTh':_0x256b73(0x164),'PpGSW':function(_0x34a38b,_0x3ff05a,_0x2c703d,_0x2b0b59,_0x5199ed,_0x3f86bf,_0x3d6d49){return _0x34a38b(_0x3ff05a,_0x2c703d,_0x2b0b59,_0x5199ed,_0x3f86bf,_0x3d6d49);},'ZHfcr':_0x256b73(0x17e),'LGpFQ':'init-not-called','jFxtf':function(_0x4c4222){return _0x4c4222();},'JaZnS':_0x256b73(0x17b),'CSkLi':'<PasswordPlaceholder>','sqUnp':'Adding\x20Websocket\x20listeners','EyWHw':function(_0x352808,_0x5b7f09,_0x5c4e52,_0x41c24a){return _0x352808(_0x5b7f09,_0x5c4e52,_0x41c24a);},'TGoiX':function(_0x1e9d95,_0x48cb24,_0x562761,_0x58f75c,_0x2f4f43,_0x311cfe,_0x18d387){return _0x1e9d95(_0x48cb24,_0x562761,_0x58f75c,_0x2f4f43,_0x311cfe,_0x18d387);},'RkzJu':function(_0x922e45,_0x48d526,_0x10ed97){return _0x922e45(_0x48d526,_0x10ed97);},'fHpko':function(_0x4db827,_0x104b4d,_0x5a232f){return _0x4db827(_0x104b4d,_0x5a232f);},'PaTHx':_0x256b73(0x188),'UvxZR':function(_0x376a55,_0x20dad8){return _0x376a55===_0x20dad8;},'nzpmg':_0x256b73(0x172),'vzFdP':_0x256b73(0x16e),'yBHoM':_0x256b73(0x19e),'DDwLQ':function(_0x1b2948,_0x2c6818,_0x28575d,_0x9a8607,_0x349574,_0x23c994,_0x25b7f0){return _0x1b2948(_0x2c6818,_0x28575d,_0x9a8607,_0x349574,_0x23c994,_0x25b7f0);},'MZbSd':_0x256b73(0x175)};let _0x278fc4;try{!_0x1b4637[_0x256b73(0x1b2)]&&(logger[_0x256b73(0x19b)](_0xa26dea[_0x256b73(0x17d)]),process['exit'](0x1));!fs[_0x256b73(0x16a)](_0xa26dea[_0x256b73(0x183)](getCredentialsPath))&&(logger[_0x256b73(0x19b)](_0xa26dea[_0x256b73(0x186)]),await _0xa26dea['PpGSW'](sendInstrumentationEvent,_0x1b4637,_0xa26dea[_0x256b73(0x197)],messageTypes[_0x256b73(0x17f)],_0xa26dea[_0x256b73(0x181)],null,_0x1b4637),process[_0x256b73(0x169)](0x1));logger[_0x256b73(0x196)](_0x256b73(0x1a8)+_0x1b4637[_0x256b73(0x1b2)]),await _0xa26dea[_0x256b73(0x1b3)](sendInstrumentationEvent,_0x1b4637,_0xa26dea[_0x256b73(0x197)],messageTypes[_0x256b73(0x1a6)],null,null,_0x1b4637);const _0x3deb91=JSON[_0x256b73(0x1ab)](fs['readFileSync'](_0xa26dea[_0x256b73(0x180)](getCredentialsPath)));global_registry[_0x256b73(0x1a0)]=_0x3deb91[_0x256b73(0x19a)][_0x256b73(0x193)],global_registry[_0x256b73(0x192)]=_0x3deb91[_0x256b73(0x19a)][_0x256b73(0x176)];const _0x210234=WS_ENDPOINT['replace'](_0xa26dea[_0x256b73(0x1a1)],_0x3deb91[_0x256b73(0x19a)][_0x256b73(0x193)])[_0x256b73(0x182)](_0xa26dea[_0x256b73(0x161)],_0x3deb91[_0x256b73(0x19a)][_0x256b73(0x176)]),_0x576924={};_0x576924[_0x256b73(0x171)]=ws,_0x576924[_0x256b73(0x199)]=0x36ee80,_0x278fc4=new ReconnectingWebSocket(_0x210234,[],_0x576924),logger[_0x256b73(0x18e)](_0xa26dea['sqUnp']),webSocketUtils[_0x256b73(0x1a5)](_0x278fc4,_0x1b4637['user'],_0x1b4637[_0x256b73(0x176)]);const [_0x536481,_0x5ebfe4]=await _0xa26dea['EyWHw'](getGridDetails,_0x3deb91[_0x256b73(0x19a)][_0x256b73(0x193)],_0x3deb91[_0x256b73(0x19a)][_0x256b73(0x176)],_0x1b4637['gridId']);if(_0x5ebfe4){const _0x42ec67=_0x5ebfe4[_0x256b73(0x196)];global_registry[_0x256b73(0x18b)]=_0x42ec67['cloudProvider'],global_registry['clusterRegion']=_0x42ec67[_0x256b73(0x18a)],global_registry[_0x256b73(0x1b6)]=_0x42ec67[_0x256b73(0x1b6)];const _0x28a033=await _0xa26dea[_0x256b73(0x1aa)](getCloudProviderObject,_0x42ec67[_0x256b73(0x18b)],_0x42ec67[_0x256b73(0x1b6)],_0x42ec67['name'],_0x278fc4,webSocketUtils,_0x1b4637),[_0x122cb5,_0x486629,_0x9ad157,_0x1e780f,_0x878789,_0x38475d]=await _0xa26dea[_0x256b73(0x15f)](createK8sClient,_0x28a033,_0x1b4637['skipTlsCertVerify']);await _0xa26dea[_0x256b73(0x1b0)](scaleUpHubDeployment,_0x486629,_0x42ec67['name']),logger['info'](_0xa26dea[_0x256b73(0x1b5)]),process[_0x256b73(0x169)](0x0);}_0xa26dea['UvxZR'](_0x536481[_0x256b73(0x17a)],0x191)&&(logger[_0x256b73(0x19b)](_0xa26dea['nzpmg']),await _0xa26dea[_0x256b73(0x1aa)](sendInstrumentationEvent,_0x1b4637,_0xa26dea[_0x256b73(0x197)],messageTypes['ERROR'],_0xa26dea[_0x256b73(0x16c)],null,_0x1b4637),process['exit'](0x1)),_0xa26dea[_0x256b73(0x173)](_0x536481['statusCode'],0x190)&&(logger[_0x256b73(0x19b)](JSON[_0x256b73(0x1ab)](_0x536481['body'])[_0x256b73(0x18c)]),await _0xa26dea[_0x256b73(0x1aa)](sendInstrumentationEvent,_0x1b4637,_0xa26dea['ZHfcr'],messageTypes[_0x256b73(0x17f)],_0xa26dea[_0x256b73(0x163)],null,_0x1b4637),process['exit'](0x1)),logger[_0x256b73(0x19b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x536481)),await _0xa26dea['DDwLQ'](sendInstrumentationEvent,_0x1b4637,_0xa26dea[_0x256b73(0x197)],messageTypes['ERROR'],_0xa26dea['MZbSd'],_0x536481,_0x1b4637),process[_0x256b73(0x169)](0x1);}catch(_0xac6bb3){const _0x3030b2=_0x256b73(0x1ad)+_0xac6bb3+'\x20\x0a'+JSON[_0x256b73(0x191)](_0xac6bb3[_0x256b73(0x1b1)])+'\x20';logger[_0x256b73(0x19b)](_0x3030b2),process[_0x256b73(0x169)](0x1);}};
1
+ function a19_0x33d3(_0x833890,_0x2bbbef){const _0x461acb=a19_0x461a();return a19_0x33d3=function(_0x33d3b5,_0x1258bb){_0x33d3b5=_0x33d3b5-0x6c;let _0x2f8dac=_0x461acb[_0x33d3b5];return _0x2f8dac;},a19_0x33d3(_0x833890,_0x2bbbef);}const a19_0x10dbac=a19_0x33d3;(function(_0x3ca744,_0x4d4e3f){const _0x114a4a=a19_0x33d3,_0x393984=_0x3ca744();while(!![]){try{const _0x3fdfe8=parseInt(_0x114a4a(0xa7))/0x1+parseInt(_0x114a4a(0xc9))/0x2*(parseInt(_0x114a4a(0x94))/0x3)+-parseInt(_0x114a4a(0xc2))/0x4+parseInt(_0x114a4a(0xc1))/0x5*(parseInt(_0x114a4a(0xbf))/0x6)+-parseInt(_0x114a4a(0xcb))/0x7*(parseInt(_0x114a4a(0x8d))/0x8)+-parseInt(_0x114a4a(0xb2))/0x9*(-parseInt(_0x114a4a(0xa3))/0xa)+-parseInt(_0x114a4a(0x77))/0xb;if(_0x3fdfe8===_0x4d4e3f)break;else _0x393984['push'](_0x393984['shift']());}catch(_0x4d54e5){_0x393984['push'](_0x393984['shift']());}}}(a19_0x461a,0x965ff));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x10dbac(0x86)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x10dbac(0x72)),{logger}=require(a19_0x10dbac(0x79)),{getCredentialsPath,getGridDetails}=require(a19_0x10dbac(0x6d)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x10dbac(0x95)),webSocketUtils=require(a19_0x10dbac(0x6f)),{createK8sClient}=require(a19_0x10dbac(0x87)),{getCloudProviderObject}=require(a19_0x10dbac(0x9c));function a19_0x461a(){const _0x53b0b9=['CXQnT','dvyrc','replace','cloudProvider','message','9XzofaY','zgUgz','WkCzB','ZzmvX','info','<UsernamePlaceholder>','handler','bKpaI','stack','readFileSync','start-grid-called','VmqUx','UmRGQ','6170682REcRGX','server-error','5GNTEIT','562548WhdrTA','type','username','builder','WDbGl','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','clusterName','2yPDKVs','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','7ktzutf','Adding\x20Websocket\x20listeners','../../utils/utilityMethods','ycsbG','../../utils/webSocketUtils','string','PTMuV','../../config/constants','WebSocket','argv','Grid\x20started','user','5962088vVLRax','name','../../config/logger','clusterRegion','boolean','UhpWF','password','lKRpt','grid-id','grid','usage','connectionTimeout','existsSync','ufHao','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','reconnecting-websocket','../../utils/createk8sClient','invalid-grid-id','statusCode','parse','exit','start','3777648yAXIBZ','bstackAccesskey','<PasswordPlaceholder>','bSDao','Starting\x20grid\x20','FDVtQ','error','366897gbkCyr','../../utils/instrumentationUtils','debug','Browserstack','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','help','../../cloudproviders/utils','addListeners','nTiTA','cbvRn','saLcX','default','gDHdD','939170GjzoDn','viGUf','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','lWmmC','526123gPYdms','XGSrk','nNjmP','Skip\x20insecure\x20cert\x20verification.','stringify','gridId'];a19_0x461a=function(){return _0x53b0b9;};return a19_0x461a();}exports['command']=a19_0x10dbac(0x80),exports[a19_0x10dbac(0x98)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x10dbac(0xc5)]=function(_0x35012f){const _0x14a7b0=a19_0x10dbac,_0x186377={};_0x186377[_0x14a7b0(0xae)]=_0x14a7b0(0x85),_0x186377[_0x14a7b0(0x7e)]=_0x14a7b0(0x70),_0x186377['FDVtQ']=_0x14a7b0(0xaa),_0x186377[_0x14a7b0(0xa8)]=_0x14a7b0(0x7b),_0x186377[_0x14a7b0(0xc6)]=_0x14a7b0(0x9b);const _0x21d83d=_0x186377,_0x3a5ed6={};_0x3a5ed6['description']=_0x21d83d[_0x14a7b0(0xae)],_0x3a5ed6[_0x14a7b0(0xc3)]=_0x21d83d[_0x14a7b0(0x7e)];const _0xb4d7d7={};_0xb4d7d7['description']=_0x21d83d[_0x14a7b0(0x92)],_0xb4d7d7[_0x14a7b0(0xc3)]=_0x21d83d[_0x14a7b0(0xa8)],_0xb4d7d7[_0x14a7b0(0xa1)]=![];const _0x547dca={};return _0x547dca[_0x14a7b0(0x7f)]=_0x3a5ed6,_0x547dca['skip-tls-cert-verify']=_0xb4d7d7,_0x35012f[_0x14a7b0(0x81)](HELP_HEADER_MESSAGE[_0x14a7b0(0x8c)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x547dca)[_0x14a7b0(0x9b)](_0x21d83d[_0x14a7b0(0xc6)])[_0x14a7b0(0x74)];},exports[a19_0x10dbac(0xb8)]=async function(_0x3248c9){const _0x368918=a19_0x10dbac,_0x3e5304={'bSDao':_0x368918(0xca),'PTMuV':function(_0x1486a3){return _0x1486a3();},'viGUf':_0x368918(0x99),'nTiTA':function(_0x5a288d,_0x29bac1,_0x457d95,_0x2f8f5f,_0x47a032,_0x4cb1f9,_0x1898b7){return _0x5a288d(_0x29bac1,_0x457d95,_0x2f8f5f,_0x47a032,_0x4cb1f9,_0x1898b7);},'CXQnT':_0x368918(0xbc),'nNjmP':'init-not-called','bKpaI':function(_0x456cb2){return _0x456cb2();},'ycsbG':_0x368918(0xb7),'bwiwh':_0x368918(0x8f),'UmRGQ':_0x368918(0x6c),'gDHdD':function(_0x155779,_0x5dd141,_0x3493b5,_0x19edf3){return _0x155779(_0x5dd141,_0x3493b5,_0x19edf3);},'saLcX':function(_0x368aac,_0x51c30f,_0x44ec55){return _0x368aac(_0x51c30f,_0x44ec55);},'WkCzB':_0x368918(0x75),'UhpWF':function(_0x41d0c7,_0x553198){return _0x41d0c7===_0x553198;},'zgUgz':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cbvRn':'unauthorised','ufHao':function(_0x270cc8,_0x47e71a,_0x32a4cd,_0xcc9148,_0x24b207,_0x29b510,_0x54b354){return _0x270cc8(_0x47e71a,_0x32a4cd,_0xcc9148,_0x24b207,_0x29b510,_0x54b354);},'VmqUx':_0x368918(0x88),'ZzmvX':function(_0x480b5d,_0x1e02d6,_0x2c2226,_0x208ba9,_0x4c33cc,_0x5075ae,_0x1ab2b2){return _0x480b5d(_0x1e02d6,_0x2c2226,_0x208ba9,_0x4c33cc,_0x5075ae,_0x1ab2b2);},'lWmmC':_0x368918(0xc0)};let _0xa687eb;try{!_0x3248c9[_0x368918(0xac)]&&(logger[_0x368918(0x93)](_0x3e5304[_0x368918(0x90)]),process[_0x368918(0x8b)](0x1));!fs[_0x368918(0x83)](_0x3e5304[_0x368918(0x71)](getCredentialsPath))&&(logger['error'](_0x3e5304[_0x368918(0xa4)]),await _0x3e5304[_0x368918(0x9e)](sendInstrumentationEvent,_0x3248c9,_0x3e5304[_0x368918(0xad)],messageTypes[_0x368918(0x9a)],_0x3e5304[_0x368918(0xa9)],null,_0x3248c9),process[_0x368918(0x8b)](0x1));logger['info'](_0x368918(0x91)+_0x3248c9[_0x368918(0xac)]),await _0x3e5304['nTiTA'](sendInstrumentationEvent,_0x3248c9,_0x3e5304[_0x368918(0xad)],messageTypes['INFO'],null,null,_0x3248c9);const _0x45fab0=JSON['parse'](fs[_0x368918(0xbb)](_0x3e5304[_0x368918(0xb9)](getCredentialsPath)));global_registry['bstackUsername']=_0x45fab0[_0x368918(0x97)][_0x368918(0xc4)],global_registry[_0x368918(0x8e)]=_0x45fab0['Browserstack'][_0x368918(0x7d)];const _0x48560e=WS_ENDPOINT[_0x368918(0xaf)](_0x3e5304[_0x368918(0x6e)],_0x45fab0[_0x368918(0x97)]['username'])[_0x368918(0xaf)](_0x3e5304['bwiwh'],_0x45fab0['Browserstack']['password']),_0x4a468b={};_0x4a468b[_0x368918(0x73)]=ws,_0x4a468b[_0x368918(0x82)]=0x36ee80,_0xa687eb=new ReconnectingWebSocket(_0x48560e,[],_0x4a468b),logger[_0x368918(0x96)](_0x3e5304[_0x368918(0xbe)]),webSocketUtils[_0x368918(0x9d)](_0xa687eb,_0x3248c9[_0x368918(0x76)],_0x3248c9['password']);const [_0x26536f,_0x554075]=await _0x3e5304[_0x368918(0xa2)](getGridDetails,_0x45fab0[_0x368918(0x97)]['username'],_0x45fab0['Browserstack'][_0x368918(0x7d)],_0x3248c9[_0x368918(0xac)]);if(_0x554075){const _0x51cd1e=_0x554075[_0x368918(0xb6)];global_registry[_0x368918(0xb0)]=_0x51cd1e['cloudProvider'],global_registry[_0x368918(0x7a)]=_0x51cd1e['region'],global_registry[_0x368918(0xc8)]=_0x51cd1e[_0x368918(0xc8)];const _0x3a51de=await _0x3e5304[_0x368918(0x9e)](getCloudProviderObject,_0x51cd1e[_0x368918(0xb0)],_0x51cd1e[_0x368918(0xc8)],_0x51cd1e[_0x368918(0x78)],_0xa687eb,webSocketUtils,_0x3248c9),[_0x342515,_0x6eb8a8,_0x207fe8,_0x1b306e,_0x13b50e,_0xa1e69c]=await _0x3e5304[_0x368918(0xa0)](createK8sClient,_0x3a51de,_0x3248c9['skipTlsCertVerify']);await _0x3e5304['saLcX'](scaleUpHubDeployment,_0x6eb8a8,_0x51cd1e[_0x368918(0x78)]),logger[_0x368918(0xb6)](_0x3e5304[_0x368918(0xb4)]),process[_0x368918(0x8b)](0x0);}_0x3e5304['UhpWF'](_0x26536f[_0x368918(0x89)],0x191)&&(logger['error'](_0x3e5304[_0x368918(0xb3)]),await _0x3e5304[_0x368918(0x9e)](sendInstrumentationEvent,_0x3248c9,_0x3e5304['CXQnT'],messageTypes[_0x368918(0x9a)],_0x3e5304[_0x368918(0x9f)],null,_0x3248c9),process[_0x368918(0x8b)](0x1)),_0x3e5304[_0x368918(0x7c)](_0x26536f[_0x368918(0x89)],0x190)&&(logger['error'](JSON[_0x368918(0x8a)](_0x26536f['body'])[_0x368918(0xb1)]),await _0x3e5304[_0x368918(0x84)](sendInstrumentationEvent,_0x3248c9,_0x3e5304[_0x368918(0xad)],messageTypes[_0x368918(0x9a)],_0x3e5304[_0x368918(0xbd)],null,_0x3248c9),process[_0x368918(0x8b)](0x1)),logger[_0x368918(0x93)](_0x368918(0xc7)+JSON[_0x368918(0xab)](_0x26536f)),await _0x3e5304[_0x368918(0xb5)](sendInstrumentationEvent,_0x3248c9,_0x3e5304['CXQnT'],messageTypes['ERROR'],_0x3e5304[_0x368918(0xa6)],_0x26536f,_0x3248c9),process[_0x368918(0x8b)](0x1);}catch(_0x4abc49){const _0x2c9108=_0x368918(0xa5)+_0x4abc49+'\x20\x0a'+JSON['stringify'](_0x4abc49[_0x368918(0xba)])+'\x20';logger[_0x368918(0x93)](_0x2c9108),process[_0x368918(0x8b)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x22b2da=a20_0x4145;function a20_0x3755(){const _0xaf24f6=['2827772Vscsbw','84600dHcTWs','help','TTOku','21560wojfMa','816yRRQop','desc','588864CphbTF','usage','1313984vUzOfz','demandCommand','4713576tekivP','Stop\x20a\x20running\x20Automation\x20grid.','stop','3665676EjgBze','xCmGL','../config/constants','command','epilogue','18BNGNme'];a20_0x3755=function(){return _0xaf24f6;};return a20_0x3755();}function a20_0x4145(_0x4bb9d3,_0x2dc379){const _0x3755e6=a20_0x3755();return a20_0x4145=function(_0x4145bf,_0x5a7933){_0x4145bf=_0x4145bf-0xe9;let _0x72dca4=_0x3755e6[_0x4145bf];return _0x72dca4;},a20_0x4145(_0x4bb9d3,_0x2dc379);}(function(_0x20352a,_0x27ccee){const _0xfc4094=a20_0x4145,_0x4719f0=_0x20352a();while(!![]){try{const _0x2a1f65=parseInt(_0xfc4094(0xee))/0x1+-parseInt(_0xfc4094(0xfc))/0x2+parseInt(_0xfc4094(0xf5))/0x3+-parseInt(_0xfc4094(0xfb))/0x4+-parseInt(_0xfc4094(0xeb))/0x5*(-parseInt(_0xfc4094(0xec))/0x6)+parseInt(_0xfc4094(0xf0))/0x7+-parseInt(_0xfc4094(0xf2))/0x8*(parseInt(_0xfc4094(0xfa))/0x9);if(_0x2a1f65===_0x27ccee)break;else _0x4719f0['push'](_0x4719f0['shift']());}catch(_0x365f87){_0x4719f0['push'](_0x4719f0['shift']());}}}(a20_0x3755,0xa076f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x22b2da(0xf7));exports[a20_0x22b2da(0xf8)]=a20_0x22b2da(0xf4),exports[a20_0x22b2da(0xed)]=a20_0x22b2da(0xf3),exports['builder']=function(_0x5e4a03){const _0x15546c=a20_0x22b2da,_0x29d103={};_0x29d103[_0x15546c(0xea)]='stop_commands',_0x29d103[_0x15546c(0xf6)]=_0x15546c(0xe9);const _0x2e36ee=_0x29d103;return _0x5e4a03[_0x15546c(0xef)](HELP_HEADER_MESSAGE[_0x15546c(0xf4)])[_0x15546c(0xf9)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2e36ee[_0x15546c(0xea)])[_0x15546c(0xf1)]()['recommendCommands']()['strict']()[_0x15546c(0xe9)](_0x2e36ee[_0x15546c(0xf6)]);},exports['handler']=function(_0x3eaea6){};
1
+ const a20_0x4bc874=a20_0x5654;function a20_0x5654(_0x38988c,_0x1dd2a8){const _0x1b31d3=a20_0x1b31();return a20_0x5654=function(_0x56541d,_0x3b43b9){_0x56541d=_0x56541d-0x18d;let _0x1753d9=_0x1b31d3[_0x56541d];return _0x1753d9;},a20_0x5654(_0x38988c,_0x1dd2a8);}(function(_0x5cb2fc,_0x17e9d9){const _0x162a70=a20_0x5654,_0x390017=_0x5cb2fc();while(!![]){try{const _0x3820f3=parseInt(_0x162a70(0x18e))/0x1+-parseInt(_0x162a70(0x196))/0x2*(parseInt(_0x162a70(0x197))/0x3)+-parseInt(_0x162a70(0x1a0))/0x4*(-parseInt(_0x162a70(0x1a1))/0x5)+parseInt(_0x162a70(0x18d))/0x6+parseInt(_0x162a70(0x19f))/0x7+-parseInt(_0x162a70(0x193))/0x8*(parseInt(_0x162a70(0x194))/0x9)+parseInt(_0x162a70(0x19e))/0xa;if(_0x3820f3===_0x17e9d9)break;else _0x390017['push'](_0x390017['shift']());}catch(_0x3d7318){_0x390017['push'](_0x390017['shift']());}}}(a20_0x1b31,0xca2e2));function a20_0x1b31(){const _0x33b969=['4772058WKvCjf','builder','jsuLQ','cFluA','commandDir','demandCommand','stop','13482080vAXNLg','6538756xEpSGl','1303688fiCTDt','10HuQqBe','command','strict','417378Jmvazt','881015itbfhU','../config/constants','desc','handler','recommendCommands','3368tnETbK','31338UkxENq','epilogue','2pOqesw'];a20_0x1b31=function(){return _0x33b969;};return a20_0x1b31();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4bc874(0x18f));exports[a20_0x4bc874(0x1a2)]=a20_0x4bc874(0x19d),exports[a20_0x4bc874(0x190)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x4bc874(0x198)]=function(_0x149fd4){const _0x31dcfe=a20_0x4bc874,_0x4270dc={};_0x4270dc[_0x31dcfe(0x199)]='stop_commands',_0x4270dc['cFluA']='help';const _0x502cc1=_0x4270dc;return _0x149fd4['usage'](HELP_HEADER_MESSAGE[_0x31dcfe(0x19d)])[_0x31dcfe(0x195)](HELP_FOOTER_MESSAGE)[_0x31dcfe(0x19b)](_0x502cc1[_0x31dcfe(0x199)])[_0x31dcfe(0x19c)]()[_0x31dcfe(0x192)]()[_0x31dcfe(0x1a3)]()['help'](_0x502cc1[_0x31dcfe(0x19a)]);},exports[a20_0x4bc874(0x191)]=function(_0x56473b){};
@@ -1 +1 @@
1
- const a21_0x3acc76=a21_0x14be;(function(_0x4f5a2a,_0x4851d8){const _0x4444c1=a21_0x14be,_0x4af784=_0x4f5a2a();while(!![]){try{const _0x1af491=-parseInt(_0x4444c1(0x1d6))/0x1+parseInt(_0x4444c1(0x1c3))/0x2+-parseInt(_0x4444c1(0x1f0))/0x3+parseInt(_0x4444c1(0x1f9))/0x4+parseInt(_0x4444c1(0x1d5))/0x5*(-parseInt(_0x4444c1(0x1bb))/0x6)+-parseInt(_0x4444c1(0x1cf))/0x7+parseInt(_0x4444c1(0x1d1))/0x8;if(_0x1af491===_0x4851d8)break;else _0x4af784['push'](_0x4af784['shift']());}catch(_0x5e0ed1){_0x4af784['push'](_0x4af784['shift']());}}}(a21_0x5ebe,0x52651));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3acc76(0x1cd)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3acc76(0x1e3)),{logger}=require(a21_0x3acc76(0x1f3)),{getCredentialsPath,getGridDetails}=require(a21_0x3acc76(0x1d9)),{scaleDownHubDeployment}=require(a21_0x3acc76(0x1b1)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x3acc76(0x1e2)),{createK8sClient}=require(a21_0x3acc76(0x1bc)),{getCloudProviderObject}=require(a21_0x3acc76(0x1ad));function a21_0x5ebe(){const _0x277b4a=['Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','debug','skip-tls-cert-verify','reconnecting-websocket','BECLL','4417462weCNwO','MGklQ','10727424DqSrun','clusterRegion','info','password','204635phrWlo','397342sSbvXM','statusCode','readFileSync','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','server-error','<PasswordPlaceholder>','options','user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','venTb','Browserstack','../../utils/webSocketUtils','../../config/constants','unauthorised','pcCkU','replace','EuQoT','string','exit','FJjck','Stop\x20a\x20running\x20Automation\x20grid.','help','EGlIJ','skrhg','cloudProvider','1394652uYqwev','mOnYR','JNVTh','../../config/logger','stop-grid-called','argv','XLaJF','error','command','624956oFwmUo','body','../../cloudproviders/utils','connectionTimeout','<UsernamePlaceholder>','region','../../utils/gridComponents','clusterName','name','skipTlsCertVerify','QUPEk','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Adding\x20Websocket\x20listeners','ERROR','existsSync','bstackUsername','18YWQaUh','../../utils/createk8sClient','addListeners','NRASg','stringify','Wlbrq','description','wlLTl','912790irdGBd','grid-id','AlvmM','parse','builder','type','kbsvE'];a21_0x5ebe=function(){return _0x277b4a;};return a21_0x5ebe();}function a21_0x14be(_0x2a729a,_0x5412ec){const _0x5ebe96=a21_0x5ebe();return a21_0x14be=function(_0x14beed,_0x1488a3){_0x14beed=_0x14beed-0x1ad;let _0x36b4ce=_0x5ebe96[_0x14beed];return _0x36b4ce;},a21_0x14be(_0x2a729a,_0x5412ec);}exports[a21_0x3acc76(0x1f8)]='grid',exports['desc']=a21_0x3acc76(0x1eb),exports[a21_0x3acc76(0x1c7)]=function(_0x394719){const _0x57ffb0=a21_0x3acc76,_0x4c94e4={};_0x4c94e4[_0x57ffb0(0x1c0)]=_0x57ffb0(0x1b6),_0x4c94e4['ZOkdz']=_0x57ffb0(0x1e8),_0x4c94e4[_0x57ffb0(0x1b5)]='Skip\x20insecure\x20cert\x20verification.',_0x4c94e4[_0x57ffb0(0x1ea)]='boolean',_0x4c94e4[_0x57ffb0(0x1f1)]=_0x57ffb0(0x1ec);const _0xe51ab=_0x4c94e4,_0x27d0f7={};_0x27d0f7[_0x57ffb0(0x1c1)]=_0xe51ab[_0x57ffb0(0x1c0)],_0x27d0f7[_0x57ffb0(0x1c8)]=_0xe51ab['ZOkdz'];const _0x5a8ed0={};_0x5a8ed0['description']=_0xe51ab[_0x57ffb0(0x1b5)],_0x5a8ed0['type']=_0xe51ab[_0x57ffb0(0x1ea)],_0x5a8ed0['default']=![];const _0x3d885d={};return _0x3d885d[_0x57ffb0(0x1c4)]=_0x27d0f7,_0x3d885d[_0x57ffb0(0x1cc)]=_0x5a8ed0,_0x394719['usage'](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x57ffb0(0x1dd)](_0x3d885d)['help'](_0xe51ab[_0x57ffb0(0x1f1)])[_0x57ffb0(0x1f5)];},exports['handler']=async function(_0x5b034d){const _0x2c2405=a21_0x3acc76,_0x10eab7={'skrhg':_0x2c2405(0x1ca),'wlLTl':function(_0x3bca1d){return _0x3bca1d();},'JNVTh':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MGklQ':function(_0x238eb7,_0x42b8d5,_0x27d3e3,_0x46f7ca,_0x50900a,_0xa5f62a,_0x5caf1d){return _0x238eb7(_0x42b8d5,_0x27d3e3,_0x46f7ca,_0x50900a,_0xa5f62a,_0x5caf1d);},'EuQoT':_0x2c2405(0x1f4),'OZUGu':'init-not-called','qBggV':_0x2c2405(0x1af),'lxxDt':_0x2c2405(0x1dc),'NRASg':_0x2c2405(0x1b7),'BECLL':function(_0x1f0839,_0x459b22,_0x8baa16,_0x4f9a4d){return _0x1f0839(_0x459b22,_0x8baa16,_0x4f9a4d);},'XLaJF':function(_0x17f1e7,_0x412043,_0x419f0a){return _0x17f1e7(_0x412043,_0x419f0a);},'pcCkU':function(_0x2df7ff,_0x5157ef,_0x3073ef){return _0x2df7ff(_0x5157ef,_0x3073ef);},'lKIbG':'Grid\x20stoppped.','EGlIJ':function(_0x28831e,_0x10948f){return _0x28831e===_0x10948f;},'kbsvE':_0x2c2405(0x1df),'AlvmM':_0x2c2405(0x1e4),'venTb':'invalid-grid-id','DKNAO':_0x2c2405(0x1db)};let _0x3b1c91;try{!_0x5b034d['gridId']&&(logger['error'](_0x10eab7[_0x2c2405(0x1ee)]),process[_0x2c2405(0x1e9)](0x1));!fs[_0x2c2405(0x1b9)](_0x10eab7[_0x2c2405(0x1c2)](getCredentialsPath))&&(logger['error'](_0x10eab7[_0x2c2405(0x1f2)]),await _0x10eab7['MGklQ'](sendInstrumentationEvent,_0x5b034d,_0x10eab7[_0x2c2405(0x1e7)],messageTypes[_0x2c2405(0x1b8)],_0x10eab7['OZUGu'],null,_0x5b034d),process['exit'](0x1));logger[_0x2c2405(0x1d3)]('Stopping\x20grid\x20'+_0x5b034d['gridId']),await _0x10eab7[_0x2c2405(0x1d0)](sendInstrumentationEvent,_0x5b034d,_0x10eab7['EuQoT'],messageTypes['INFO'],null,null,_0x5b034d);const _0x2778f7=JSON[_0x2c2405(0x1c6)](fs[_0x2c2405(0x1d8)](_0x10eab7['wlLTl'](getCredentialsPath)));global_registry[_0x2c2405(0x1ba)]=_0x2778f7[_0x2c2405(0x1e1)]['username'],global_registry['bstackAccesskey']=_0x2778f7[_0x2c2405(0x1e1)][_0x2c2405(0x1d4)];const _0x226ced=WS_ENDPOINT[_0x2c2405(0x1e6)](_0x10eab7['qBggV'],_0x2778f7[_0x2c2405(0x1e1)]['username'])['replace'](_0x10eab7['lxxDt'],_0x2778f7[_0x2c2405(0x1e1)][_0x2c2405(0x1d4)]),_0x56ce6b={};_0x56ce6b['WebSocket']=ws,_0x56ce6b[_0x2c2405(0x1ae)]=0x36ee80,_0x3b1c91=new ReconnectingWebSocket(_0x226ced,[],_0x56ce6b),logger[_0x2c2405(0x1cb)](_0x10eab7[_0x2c2405(0x1be)]),webSocketUtils[_0x2c2405(0x1bd)](_0x3b1c91,_0x5b034d[_0x2c2405(0x1de)],_0x5b034d[_0x2c2405(0x1d4)]);const [_0x211ec9,_0x5d1de0]=await _0x10eab7[_0x2c2405(0x1ce)](getGridDetails,_0x2778f7[_0x2c2405(0x1e1)]['username'],_0x2778f7[_0x2c2405(0x1e1)][_0x2c2405(0x1d4)],_0x5b034d['gridId']);if(_0x5d1de0){const _0x130e89=_0x5d1de0['info'];global_registry['cloudProvider']=_0x130e89[_0x2c2405(0x1ef)],global_registry[_0x2c2405(0x1d2)]=_0x130e89[_0x2c2405(0x1b0)],global_registry[_0x2c2405(0x1b2)]=_0x130e89[_0x2c2405(0x1b2)];const _0x3951d4=await _0x10eab7[_0x2c2405(0x1d0)](getCloudProviderObject,_0x130e89[_0x2c2405(0x1ef)],_0x130e89[_0x2c2405(0x1b2)],_0x130e89[_0x2c2405(0x1b3)],_0x3b1c91,webSocketUtils,_0x5b034d),[_0x40f08a,_0x5dfb98,_0x397efb,_0x2d8a82,_0x562575,_0x2d9936]=await _0x10eab7[_0x2c2405(0x1f6)](createK8sClient,_0x3951d4,_0x5b034d[_0x2c2405(0x1b4)]);await _0x10eab7[_0x2c2405(0x1e5)](scaleDownHubDeployment,_0x5dfb98,_0x130e89[_0x2c2405(0x1b3)]),logger['info'](_0x10eab7['lKIbG']),process[_0x2c2405(0x1e9)](0x0);}_0x10eab7[_0x2c2405(0x1ed)](_0x211ec9[_0x2c2405(0x1d7)],0x191)&&(logger[_0x2c2405(0x1f7)](_0x10eab7[_0x2c2405(0x1c9)]),await _0x10eab7[_0x2c2405(0x1d0)](sendInstrumentationEvent,_0x5b034d,_0x10eab7[_0x2c2405(0x1e7)],messageTypes[_0x2c2405(0x1b8)],_0x10eab7[_0x2c2405(0x1c5)],null,_0x5b034d),process['exit'](0x1)),_0x10eab7[_0x2c2405(0x1ed)](_0x211ec9['statusCode'],0x190)&&(logger[_0x2c2405(0x1f7)](JSON[_0x2c2405(0x1c6)](_0x211ec9[_0x2c2405(0x1fa)])['message']),await _0x10eab7[_0x2c2405(0x1d0)](sendInstrumentationEvent,_0x5b034d,_0x10eab7[_0x2c2405(0x1e7)],messageTypes[_0x2c2405(0x1b8)],_0x10eab7[_0x2c2405(0x1e0)],null,_0x5b034d),process['exit'](0x1)),logger['error'](_0x2c2405(0x1da)+JSON[_0x2c2405(0x1bf)](_0x211ec9)),await _0x10eab7[_0x2c2405(0x1d0)](sendInstrumentationEvent,_0x5b034d,_0x10eab7[_0x2c2405(0x1e7)],messageTypes[_0x2c2405(0x1b8)],_0x10eab7['DKNAO'],_0x211ec9,_0x5b034d),process[_0x2c2405(0x1e9)](0x1);}catch(_0x6176b8){const _0x1aa957='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x6176b8+'\x20\x0a'+JSON['stringify'](_0x6176b8['stack'])+'\x20';logger[_0x2c2405(0x1f7)](_0x1aa957),process[_0x2c2405(0x1e9)](0x1);}};
1
+ const a21_0x567b11=a21_0xe546;(function(_0x658961,_0x3020b5){const _0x2fa11b=a21_0xe546,_0x13774e=_0x658961();while(!![]){try{const _0x397d1c=parseInt(_0x2fa11b(0x11c))/0x1+-parseInt(_0x2fa11b(0xf8))/0x2*(-parseInt(_0x2fa11b(0x132))/0x3)+-parseInt(_0x2fa11b(0x133))/0x4+-parseInt(_0x2fa11b(0x121))/0x5+-parseInt(_0x2fa11b(0x141))/0x6*(-parseInt(_0x2fa11b(0xf7))/0x7)+parseInt(_0x2fa11b(0x13c))/0x8+-parseInt(_0x2fa11b(0x149))/0x9*(-parseInt(_0x2fa11b(0x102))/0xa);if(_0x397d1c===_0x3020b5)break;else _0x13774e['push'](_0x13774e['shift']());}catch(_0x44b813){_0x13774e['push'](_0x13774e['shift']());}}}(a21_0x31cc,0x60877));function a21_0x31cc(){const _0x51ded4=['argv','../../config/logger','desc','3775080MZkduX','Browserstack','ERROR','HqEsS','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','username','parse','readFileSync','help','fJgHi','grid-id','user','boolean','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rZrEr','405doHaSe','666160nHxowm','../../utils/webSocketUtils','vPszQ','AUBJv','Adding\x20Websocket\x20listeners','../../utils/instrumentationUtils','invalid-grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','SMxgz','669416KWDBuC','../../utils/gridComponents','Stop\x20a\x20running\x20Automation\x20grid.','<PasswordPlaceholder>','../../cloudproviders/utils','210rEursR','name','server-error','gridId','body','cVDGY','KedvX','skipTlsCertVerify','17379xLWtHM','hNRiy','INFO','stringify','jBGkQ','options','rpedd','info','140819FViYtx','1106kISLaf','unauthorised','debug','upNEj','error','VFgYN','cloudProvider','statusCode','stop','Stopping\x20grid\x20','590kMsRyc','bstackUsername','ZQfFv','TXErf','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','existsSync','exit','region','../../utils/createk8sClient','stop-grid-called','bstackAccesskey','BNxkK','<UsernamePlaceholder>','stack','Grid\x20stoppped.','description','clusterRegion','qpVEC','clusterName','message','../../config/constants','init-not-called','ufSqF','builder','../../utils/utilityMethods','340583UgvprP','fsJnq'];a21_0x31cc=function(){return _0x51ded4;};return a21_0x31cc();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x567b11(0x117)),{logger}=require(a21_0x567b11(0x11f)),{getCredentialsPath,getGridDetails}=require(a21_0x567b11(0x11b)),{scaleDownHubDeployment}=require(a21_0x567b11(0x13d)),{sendInstrumentationEvent}=require(a21_0x567b11(0x138)),webSocketUtils=require(a21_0x567b11(0x134)),{createK8sClient}=require(a21_0x567b11(0x10b)),{getCloudProviderObject}=require(a21_0x567b11(0x140));function a21_0xe546(_0x34fe6c,_0x2993e3){const _0x31cc79=a21_0x31cc();return a21_0xe546=function(_0xe54640,_0x185b31){_0xe54640=_0xe54640-0xf6;let _0x559e13=_0x31cc79[_0xe54640];return _0x559e13;},a21_0xe546(_0x34fe6c,_0x2993e3);}exports['command']='grid',exports[a21_0x567b11(0x120)]=a21_0x567b11(0x13e),exports[a21_0x567b11(0x11a)]=function(_0x2a8bd1){const _0x5f19ef=a21_0x567b11,_0x57d676={};_0x57d676['TDvzk']=_0x5f19ef(0x106),_0x57d676[_0x5f19ef(0x13b)]='string',_0x57d676[_0x5f19ef(0x131)]='Skip\x20insecure\x20cert\x20verification.',_0x57d676[_0x5f19ef(0x14a)]=_0x5f19ef(0x12e),_0x57d676['cVDGY']=_0x5f19ef(0x12a);const _0x45f9a5=_0x57d676,_0x1c3fa1={};_0x1c3fa1[_0x5f19ef(0x112)]=_0x45f9a5['TDvzk'],_0x1c3fa1[_0x5f19ef(0x12f)]=_0x45f9a5[_0x5f19ef(0x13b)];const _0x2d1948={};_0x2d1948[_0x5f19ef(0x112)]=_0x45f9a5['rZrEr'],_0x2d1948[_0x5f19ef(0x12f)]=_0x45f9a5['hNRiy'],_0x2d1948['default']=![];const _0x565d88={};return _0x565d88[_0x5f19ef(0x12c)]=_0x1c3fa1,_0x565d88['skip-tls-cert-verify']=_0x2d1948,_0x2a8bd1['usage'](HELP_HEADER_MESSAGE[_0x5f19ef(0x100)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f19ef(0x14e)](_0x565d88)[_0x5f19ef(0x12a)](_0x45f9a5[_0x5f19ef(0x146)])[_0x5f19ef(0x11e)];},exports['handler']=async function(_0x2f2445){const _0x81dce=a21_0x567b11,_0x129dd5={'dZfTt':_0x81dce(0x126),'ufSqF':function(_0x126e04){return _0x126e04();},'fsJnq':_0x81dce(0x13a),'vPszQ':function(_0x981095,_0x214e41,_0x2a0a16,_0x556a51,_0x4e56d9,_0x49a824,_0x327a4a){return _0x981095(_0x214e41,_0x2a0a16,_0x556a51,_0x4e56d9,_0x49a824,_0x327a4a);},'BNxkK':_0x81dce(0x10c),'AUBJv':_0x81dce(0x118),'gaCkX':function(_0x1d6cc7,_0x3daf12,_0x173307,_0x18e967,_0x7f3935,_0x2fda6f,_0x3221a9){return _0x1d6cc7(_0x3daf12,_0x173307,_0x18e967,_0x7f3935,_0x2fda6f,_0x3221a9);},'jBGkQ':_0x81dce(0x10f),'KedvX':_0x81dce(0x13f),'MSROn':_0x81dce(0x137),'yJKjW':function(_0x617ab8,_0x133ff7,_0x2a3851,_0x402972){return _0x617ab8(_0x133ff7,_0x2a3851,_0x402972);},'fJgHi':function(_0x2a5e38,_0x4c934f,_0x1e61cf){return _0x2a5e38(_0x4c934f,_0x1e61cf);},'kOwuQ':_0x81dce(0x111),'VFgYN':function(_0x541fc8,_0x413f54){return _0x541fc8===_0x413f54;},'TXErf':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HqEsS':_0x81dce(0xf9),'ZQfFv':function(_0x2f0697,_0x4f969d,_0x1496a3,_0x442d75,_0x491792,_0x5c8e74,_0x2d32a6){return _0x2f0697(_0x4f969d,_0x1496a3,_0x442d75,_0x491792,_0x5c8e74,_0x2d32a6);},'qpVEC':_0x81dce(0x139),'upNEj':function(_0x46e46e,_0x1acc30,_0x2fe981,_0x13ea7e,_0x4e2992,_0x520c09,_0xddff5a){return _0x46e46e(_0x1acc30,_0x2fe981,_0x13ea7e,_0x4e2992,_0x520c09,_0xddff5a);},'rpedd':_0x81dce(0x143)};let _0x223c5a;try{!_0x2f2445[_0x81dce(0x144)]&&(logger[_0x81dce(0xfc)](_0x129dd5['dZfTt']),process['exit'](0x1));!fs[_0x81dce(0x108)](_0x129dd5['ufSqF'](getCredentialsPath))&&(logger[_0x81dce(0xfc)](_0x129dd5[_0x81dce(0x11d)]),await _0x129dd5[_0x81dce(0x135)](sendInstrumentationEvent,_0x2f2445,_0x129dd5[_0x81dce(0x10e)],messageTypes['ERROR'],_0x129dd5[_0x81dce(0x136)],null,_0x2f2445),process[_0x81dce(0x109)](0x1));logger[_0x81dce(0xf6)](_0x81dce(0x101)+_0x2f2445[_0x81dce(0x144)]),await _0x129dd5['gaCkX'](sendInstrumentationEvent,_0x2f2445,_0x129dd5[_0x81dce(0x10e)],messageTypes[_0x81dce(0x14b)],null,null,_0x2f2445);const _0x551c4d=JSON[_0x81dce(0x128)](fs[_0x81dce(0x129)](_0x129dd5[_0x81dce(0x119)](getCredentialsPath)));global_registry[_0x81dce(0x103)]=_0x551c4d[_0x81dce(0x122)][_0x81dce(0x127)],global_registry[_0x81dce(0x10d)]=_0x551c4d['Browserstack'][_0x81dce(0x125)];const _0x36498e=WS_ENDPOINT['replace'](_0x129dd5[_0x81dce(0x14d)],_0x551c4d['Browserstack'][_0x81dce(0x127)])['replace'](_0x129dd5[_0x81dce(0x147)],_0x551c4d[_0x81dce(0x122)][_0x81dce(0x125)]),_0x4e11be={};_0x4e11be['WebSocket']=ws,_0x4e11be['connectionTimeout']=0x36ee80,_0x223c5a=new ReconnectingWebSocket(_0x36498e,[],_0x4e11be),logger[_0x81dce(0xfa)](_0x129dd5['MSROn']),webSocketUtils['addListeners'](_0x223c5a,_0x2f2445[_0x81dce(0x12d)],_0x2f2445[_0x81dce(0x125)]);const [_0x197d1e,_0x2a8e52]=await _0x129dd5['yJKjW'](getGridDetails,_0x551c4d['Browserstack'][_0x81dce(0x127)],_0x551c4d[_0x81dce(0x122)][_0x81dce(0x125)],_0x2f2445[_0x81dce(0x144)]);if(_0x2a8e52){const _0x143838=_0x2a8e52[_0x81dce(0xf6)];global_registry[_0x81dce(0xfe)]=_0x143838[_0x81dce(0xfe)],global_registry[_0x81dce(0x113)]=_0x143838[_0x81dce(0x10a)],global_registry['clusterName']=_0x143838['clusterName'];const _0x2dffc0=await _0x129dd5[_0x81dce(0x135)](getCloudProviderObject,_0x143838[_0x81dce(0xfe)],_0x143838[_0x81dce(0x115)],_0x143838[_0x81dce(0x142)],_0x223c5a,webSocketUtils,_0x2f2445),[_0x53230e,_0x568ae9,_0x267976,_0x14c442,_0x140708,_0x1fe750]=await _0x129dd5[_0x81dce(0x12b)](createK8sClient,_0x2dffc0,_0x2f2445[_0x81dce(0x148)]);await _0x129dd5[_0x81dce(0x12b)](scaleDownHubDeployment,_0x568ae9,_0x143838[_0x81dce(0x142)]),logger[_0x81dce(0xf6)](_0x129dd5['kOwuQ']),process[_0x81dce(0x109)](0x0);}_0x129dd5[_0x81dce(0xfd)](_0x197d1e['statusCode'],0x191)&&(logger['error'](_0x129dd5[_0x81dce(0x105)]),await _0x129dd5[_0x81dce(0x135)](sendInstrumentationEvent,_0x2f2445,_0x129dd5['BNxkK'],messageTypes[_0x81dce(0x123)],_0x129dd5[_0x81dce(0x124)],null,_0x2f2445),process[_0x81dce(0x109)](0x1)),_0x129dd5[_0x81dce(0xfd)](_0x197d1e[_0x81dce(0xff)],0x190)&&(logger[_0x81dce(0xfc)](JSON['parse'](_0x197d1e[_0x81dce(0x145)])[_0x81dce(0x116)]),await _0x129dd5[_0x81dce(0x104)](sendInstrumentationEvent,_0x2f2445,_0x129dd5[_0x81dce(0x10e)],messageTypes[_0x81dce(0x123)],_0x129dd5[_0x81dce(0x114)],null,_0x2f2445),process[_0x81dce(0x109)](0x1)),logger[_0x81dce(0xfc)](_0x81dce(0x130)+JSON['stringify'](_0x197d1e)),await _0x129dd5[_0x81dce(0xfb)](sendInstrumentationEvent,_0x2f2445,_0x129dd5['BNxkK'],messageTypes[_0x81dce(0x123)],_0x129dd5[_0x81dce(0x14f)],_0x197d1e,_0x2f2445),process['exit'](0x1);}catch(_0x2dc5bc){const _0xd8e337=_0x81dce(0x107)+_0x2dc5bc+'\x20\x0a'+JSON[_0x81dce(0x14c)](_0x2dc5bc[_0x81dce(0x110)])+'\x20';logger[_0x81dce(0xfc)](_0xd8e337),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x109876=a22_0x22b1;(function(_0x218155,_0x319cae){const _0x3d72b=a22_0x22b1,_0x5293e4=_0x218155();while(!![]){try{const _0x191d99=-parseInt(_0x3d72b(0x198))/0x1*(-parseInt(_0x3d72b(0x186))/0x2)+parseInt(_0x3d72b(0x1a3))/0x3+parseInt(_0x3d72b(0x1a8))/0x4*(parseInt(_0x3d72b(0x15f))/0x5)+parseInt(_0x3d72b(0x160))/0x6*(-parseInt(_0x3d72b(0x1a1))/0x7)+-parseInt(_0x3d72b(0x176))/0x8+parseInt(_0x3d72b(0x18d))/0x9+-parseInt(_0x3d72b(0x18e))/0xa;if(_0x191d99===_0x319cae)break;else _0x5293e4['push'](_0x5293e4['shift']());}catch(_0x2a720e){_0x5293e4['push'](_0x5293e4['shift']());}}}(a22_0x3a29,0x63e30),require('dotenv')['config'](),exports[a22_0x109876(0x194)]=process[a22_0x109876(0x1a6)][a22_0x109876(0x194)]||a22_0x109876(0x1a9),exports[a22_0x109876(0x19c)]=process[a22_0x109876(0x1a6)][a22_0x109876(0x19c)]||a22_0x109876(0x193),exports[a22_0x109876(0x17f)]=process[a22_0x109876(0x1a6)]['AG_API_URL']||a22_0x109876(0x157),exports['WS_ENDPOINT']='wss://'+this[a22_0x109876(0x17f)]+a22_0x109876(0x189),exports[a22_0x109876(0x18c)]=a22_0x109876(0x153),exports[a22_0x109876(0x184)]=a22_0x109876(0x177),exports[a22_0x109876(0x17a)]=a22_0x109876(0x155),exports[a22_0x109876(0x18f)]=a22_0x109876(0x178),exports[a22_0x109876(0x1a0)]=a22_0x109876(0x166),exports[a22_0x109876(0x167)]=a22_0x109876(0x168),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x109876(0x14f),exports[a22_0x109876(0x15b)]='browserstack-turboscale-grid',exports[a22_0x109876(0x150)]=a22_0x109876(0x191),exports[a22_0x109876(0x179)]=a22_0x109876(0x16d),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x109876(0x18f)],this[a22_0x109876(0x150)],this[a22_0x109876(0x179)]]);const a22_0x1cd782={};a22_0x1cd782[a22_0x109876(0x199)]='browserstack:managedBy',a22_0x1cd782[a22_0x109876(0x174)]=a22_0x109876(0x195);const a22_0x95c627={};a22_0x95c627[a22_0x109876(0x199)]=a22_0x109876(0x180),a22_0x95c627[a22_0x109876(0x174)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x1cd782,a22_0x95c627];if(process[a22_0x109876(0x1a6)][a22_0x109876(0x173)]){const parsedTags=process[a22_0x109876(0x1a6)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x109876(0x192)](',');parsedTags['forEach'](_0x12e245=>{const _0x507035=a22_0x109876,_0x5c880d=_0x12e245[_0x507035(0x192)](':'),_0x4f9288={};_0x4f9288['Key']=_0x5c880d[0x0],_0x4f9288[_0x507035(0x174)]=_0x5c880d[0x1],common_hst_tags_list[_0x507035(0x161)](_0x4f9288);});}exports[a22_0x109876(0x19f)]=common_hst_tags_list;function a22_0x22b1(_0xc13c64,_0x382df5){const _0x3a29d1=a22_0x3a29();return a22_0x22b1=function(_0x22b1e2,_0x4284bd){_0x22b1e2=_0x22b1e2-0x14c;let _0x455956=_0x3a29d1[_0x22b1e2];return _0x455956;},a22_0x22b1(_0xc13c64,_0x382df5);}const a22_0x5638b8={};a22_0x5638b8[a22_0x109876(0x17e)]=a22_0x109876(0x195),a22_0x5638b8[a22_0x109876(0x180)]=a22_0x109876(0x15a),exports[a22_0x109876(0x170)]=a22_0x5638b8,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x109876(0x18f)]];const a22_0x59a820={};a22_0x59a820[a22_0x109876(0x151)]='log',a22_0x59a820['RESOURCES']=a22_0x109876(0x182),a22_0x59a820[a22_0x109876(0x165)]='gridUrl',a22_0x59a820[a22_0x109876(0x15c)]=a22_0x109876(0x15d),a22_0x59a820[a22_0x109876(0x197)]='cliRunFinished',exports[a22_0x109876(0x17b)]=a22_0x59a820,exports[a22_0x109876(0x162)]={},exports[a22_0x109876(0x187)]=a22_0x109876(0x190);const a22_0x3e7a1d={};a22_0x3e7a1d['root']=a22_0x109876(0x19e)+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x181)]=a22_0x109876(0x183)+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x152)]=a22_0x109876(0x14d)+this['LINK_MESSAGE'],a22_0x3e7a1d[a22_0x109876(0x18a)]=a22_0x109876(0x163)+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x156)]={},a22_0x3e7a1d[a22_0x109876(0x19b)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x159)]=a22_0x109876(0x158)+this[a22_0x109876(0x187)],a22_0x3e7a1d['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x109876(0x187)],a22_0x3e7a1d['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x196)]=a22_0x109876(0x16b)+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x156)][a22_0x109876(0x175)]=a22_0x109876(0x172)+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x156)][a22_0x109876(0x17c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x109876(0x187)],a22_0x3e7a1d[a22_0x109876(0x156)][a22_0x109876(0x1aa)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x109876(0x187)],exports[a22_0x109876(0x188)]=a22_0x3e7a1d,exports['HELP_FOOTER_MESSAGE']=a22_0x109876(0x171);const a22_0xd166fc={};a22_0xd166fc[a22_0x109876(0x169)]=a22_0x109876(0x15e),a22_0xd166fc[a22_0x109876(0x16a)]=a22_0x109876(0x185),a22_0xd166fc[a22_0x109876(0x18b)]=a22_0x109876(0x19a),a22_0xd166fc['WARNING']=a22_0x109876(0x16f),a22_0xd166fc[a22_0x109876(0x17d)]=a22_0x109876(0x164),a22_0xd166fc['NULL']=null,exports['messageTypes']=a22_0xd166fc,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x109876(0x19d)]=a22_0x109876(0x16e);const a22_0x4f2bff={};a22_0x4f2bff[a22_0x109876(0x14e)]=a22_0x109876(0x1a4);const a22_0x5f5766={};a22_0x5f5766['pre-check']=a22_0x4f2bff,exports[a22_0x109876(0x1a5)]=a22_0x5f5766,exports['TRIAL_GRID_URL']=a22_0x109876(0x16c);function a22_0x3a29(){const _0x5b5a83=['grid.browserstack.com','gridProfile','us-east-1','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','grid-profile','BSTACK-ATS-CLUSTER-HUB-HA','AZURE','LOG','configure','credentials','CLUSTER','high-scale-grid','list','grid-api.browserstack.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','connect','BrowserStack-Automate-TurboScale','TURBOSCALE_DEPLOYMENT','CLI_RUN_STARTED','cliRunStarted','success','265ajmGpP','2574042eAQwjF','push','global_registry','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','unknown','GRID_URL','BSTACK-ATS-CLUSTER','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER-AUTOSCALER','SUCCESS','ERROR','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','gcp','[REDACTED]','warning','HST_CLUSTER_TAGS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','TURBOSCALE_CUSTOM_TAGS','Value','root','1048152DtfyxS','BrowserStackIAMUser','aws','GCP','DEFAULT_GRID_NAME','WS_EVENTS','grid','UNKNOWN','browserstack:managedBy','AG_API_URL','browserstack:service','init','resourceInfo','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','IAM_USER_NAME','error','238424IMyROt','LINK_MESSAGE','HELP_HEADER_MESSAGE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','create','INFO','CP_CONFIG_FILE','459585WRupXf','6229060FwXgRV','AWS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','azure','split','api.browserstack.com','DASHBOARD_ENDPOINT','BrowserStack','pre_check','CLI_RUN_FINISHED','5iMwsbO','Key','info','delete','BS_API_URL','REDACTED','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','COMMON_HST_TAGS','CLUSTER_DEP_STACK_NAME','7dkGIMp','DEFAULT_CLUSTER_DETAILS','2257500AxLfvC','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','MessageDescription','env','high-scale-grid-cluster','14524payeyd'];a22_0x3a29=function(){return _0x5b5a83;};return a22_0x3a29();}const a22_0x5c65ed={};a22_0x5c65ed[a22_0x109876(0x154)]=a22_0x109876(0x1a7),a22_0x5c65ed['CLOUD_PROVIDER']=a22_0x109876(0x178),a22_0x5c65ed['REGION']=a22_0x109876(0x14c),exports[a22_0x109876(0x1a2)]=a22_0x5c65ed;
1
+ const a22_0x587f67=a22_0x54d5;(function(_0x24d4de,_0x137baa){const _0x57d02d=a22_0x54d5,_0x5d6d6c=_0x24d4de();while(!![]){try{const _0x352bcf=parseInt(_0x57d02d(0xd2))/0x1+parseInt(_0x57d02d(0xcc))/0x2*(-parseInt(_0x57d02d(0x9c))/0x3)+parseInt(_0x57d02d(0x79))/0x4+-parseInt(_0x57d02d(0x9b))/0x5+-parseInt(_0x57d02d(0x99))/0x6+-parseInt(_0x57d02d(0x8a))/0x7*(parseInt(_0x57d02d(0xaf))/0x8)+-parseInt(_0x57d02d(0x7a))/0x9*(-parseInt(_0x57d02d(0xb4))/0xa);if(_0x352bcf===_0x137baa)break;else _0x5d6d6c['push'](_0x5d6d6c['shift']());}catch(_0x2d821e){_0x5d6d6c['push'](_0x5d6d6c['shift']());}}}(a22_0x1c16,0x6d0eb),require('dotenv')[a22_0x587f67(0x77)](),exports[a22_0x587f67(0xc8)]=process[a22_0x587f67(0xb5)][a22_0x587f67(0xc8)]||'grid.browserstack.com',exports[a22_0x587f67(0x7f)]=process['env'][a22_0x587f67(0x7f)]||a22_0x587f67(0xb0),exports[a22_0x587f67(0xbf)]=process[a22_0x587f67(0xb5)][a22_0x587f67(0xbf)]||a22_0x587f67(0x6b),exports['WS_ENDPOINT']=a22_0x587f67(0x92)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']=a22_0x587f67(0xc5),exports[a22_0x587f67(0xac)]=a22_0x587f67(0x8d),exports[a22_0x587f67(0x94)]=a22_0x587f67(0x98),exports[a22_0x587f67(0x8e)]=a22_0x587f67(0xd1),exports[a22_0x587f67(0xb3)]=a22_0x587f67(0x6d),exports[a22_0x587f67(0xba)]=a22_0x587f67(0xa7),exports[a22_0x587f67(0x7d)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x587f67(0xc7)]=a22_0x587f67(0xce),exports[a22_0x587f67(0x8c)]=a22_0x587f67(0xb8),exports[a22_0x587f67(0xb9)]=a22_0x587f67(0x6e),exports[a22_0x587f67(0xbe)]=[this[a22_0x587f67(0x8e)],this[a22_0x587f67(0x8c)],this[a22_0x587f67(0xb9)]]);function a22_0x1c16(){const _0x47819a=['root','grid','pre_check','REGION','DEFAULT_CLUSTER_DETAILS','854DOqrzN','cliRunStarted','AZURE','BrowserStackIAMUser','AWS','resourceInfo','messageTypes','Key','wss://','forEach','DEFAULT_GRID_NAME','SUPPORTED_CLOUD_PROVIDERS','TURBOSCALE_CUSTOM_TAGS','success','high-scale-grid','1290000acujvH','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','3814240Dsjtxm','12kBHsCu','Value','connect','ERROR','SUCCESS','GRID_URL','MessageDescription','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-AUTOSCALER','RAW_ARGS_REGEX','CLUSTER','split','CLI_ARGS_REGEX','IAM_USER_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','36496iUExED','api.browserstack.com','browserstack:service','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','CLUSTER_DEP_STACK_NAME','10124650Nbedtk','env','create','configure','azure','GCP','CLUSTER_AUTOSCALER_STACK_NAME','NULL','REDACTED','RESOURCES','ALL_SUPPORTED_CLOUD_PROVIDERS','AG_API_URL','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','info','high-scale-grid-cluster','list','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','credentials','LINK_MESSAGE','TURBOSCALE_DEPLOYMENT','DASHBOARD_ENDPOINT','HELP_FOOTER_MESSAGE','WS_EVENTS','WARNING','240576tEjOux','LOG','browserstack-turboscale-grid','unknown','stop','aws','856825qjxVrL','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-api.browserstack.com','global_registry','BSTACK-ATS-CLUSTER','gcp','push','cliRunFinished','warning','error','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','us-east-1','log','config','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','2371892zGfgHR','9RmKmvU','INFO','BrowserStack','CLUSTER_HUB_HA_STACK_NAME','CLOUD_PROVIDER','BS_API_URL','HST_CLUSTER_TAGS','UNKNOWN','pre-check','browserstack:managedBy','grid-profile'];a22_0x1c16=function(){return _0x47819a;};return a22_0x1c16();}const a22_0x2ec993={};function a22_0x54d5(_0x2a6425,_0x2f823b){const _0x1c1647=a22_0x1c16();return a22_0x54d5=function(_0x54d58a,_0x51e970){_0x54d58a=_0x54d58a-0x6a;let _0x18a760=_0x1c1647[_0x54d58a];return _0x18a760;},a22_0x54d5(_0x2a6425,_0x2f823b);}a22_0x2ec993[a22_0x587f67(0x91)]=a22_0x587f67(0x83),a22_0x2ec993[a22_0x587f67(0x9d)]=a22_0x587f67(0x7c);const a22_0x3e9583={};a22_0x3e9583[a22_0x587f67(0x91)]=a22_0x587f67(0xb1),a22_0x3e9583[a22_0x587f67(0x9d)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x2ec993,a22_0x3e9583];if(process[a22_0x587f67(0xb5)][a22_0x587f67(0x96)]){const parsedTags=process[a22_0x587f67(0xb5)][a22_0x587f67(0x96)][a22_0x587f67(0xaa)](',');parsedTags[a22_0x587f67(0x93)](_0x511ae4=>{const _0x1ddeae=a22_0x587f67,_0x5e4a0f=_0x511ae4['split'](':'),_0x96f8c9={};_0x96f8c9[_0x1ddeae(0x91)]=_0x5e4a0f[0x0],_0x96f8c9[_0x1ddeae(0x9d)]=_0x5e4a0f[0x1],common_hst_tags_list[_0x1ddeae(0x6f)](_0x96f8c9);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x188faf={};a22_0x188faf[a22_0x587f67(0x83)]=a22_0x587f67(0x7c),a22_0x188faf[a22_0x587f67(0xb1)]='BrowserStack-Automate-TurboScale',exports[a22_0x587f67(0x80)]=a22_0x188faf,exports[a22_0x587f67(0x95)]=[this['AWS']];const a22_0x34a448={};a22_0x34a448[a22_0x587f67(0xcd)]=a22_0x587f67(0x76),a22_0x34a448[a22_0x587f67(0xbd)]=a22_0x587f67(0x8f),a22_0x34a448[a22_0x587f67(0xa1)]='gridUrl',a22_0x34a448['CLI_RUN_STARTED']=a22_0x587f67(0x8b),a22_0x34a448['CLI_RUN_FINISHED']=a22_0x587f67(0x70),exports[a22_0x587f67(0xca)]=a22_0x34a448,exports[a22_0x587f67(0x6c)]={},exports[a22_0x587f67(0xc6)]=a22_0x587f67(0x73);const a22_0x2b5ae7={};a22_0x2b5ae7[a22_0x587f67(0x85)]=a22_0x587f67(0xc4)+this[a22_0x587f67(0xc6)],a22_0x2b5ae7['init']=a22_0x587f67(0xa4)+this[a22_0x587f67(0xc6)],a22_0x2b5ae7[a22_0x587f67(0xb7)]=a22_0x587f67(0xa6)+this[a22_0x587f67(0xc6)],a22_0x2b5ae7[a22_0x587f67(0xb6)]=a22_0x587f67(0xc0)+this[a22_0x587f67(0xc6)],a22_0x2b5ae7[a22_0x587f67(0xc3)]={},a22_0x2b5ae7['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x587f67(0xc6)],a22_0x2b5ae7[a22_0x587f67(0x9e)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x587f67(0xc6)],a22_0x2b5ae7['start']=a22_0x587f67(0xae)+this[a22_0x587f67(0xc6)],a22_0x2b5ae7[a22_0x587f67(0xd0)]=a22_0x587f67(0x6a)+this[a22_0x587f67(0xc6)],a22_0x2b5ae7[a22_0x587f67(0x87)]=a22_0x587f67(0xb2)+this['LINK_MESSAGE'],a22_0x2b5ae7[a22_0x587f67(0xc3)][a22_0x587f67(0x85)]=a22_0x587f67(0xad)+this[a22_0x587f67(0xc6)],a22_0x2b5ae7[a22_0x587f67(0xc3)][a22_0x587f67(0x86)]=a22_0x587f67(0x74)+this['LINK_MESSAGE'],a22_0x2b5ae7[a22_0x587f67(0xc3)]['gridProfile']=a22_0x587f67(0xa3)+this[a22_0x587f67(0xc6)],exports['HELP_HEADER_MESSAGE']=a22_0x2b5ae7,exports[a22_0x587f67(0xc9)]=a22_0x587f67(0x78);const a22_0x3f5a6b={};a22_0x3f5a6b[a22_0x587f67(0xa0)]=a22_0x587f67(0x97),a22_0x3f5a6b[a22_0x587f67(0x9f)]=a22_0x587f67(0x72),a22_0x3f5a6b[a22_0x587f67(0x7b)]=a22_0x587f67(0xc1),a22_0x3f5a6b[a22_0x587f67(0xcb)]=a22_0x587f67(0x71),a22_0x3f5a6b[a22_0x587f67(0x81)]=a22_0x587f67(0xcf),a22_0x3f5a6b[a22_0x587f67(0xbb)]=null,exports[a22_0x587f67(0x90)]=a22_0x3f5a6b,exports[a22_0x587f67(0xab)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x587f67(0xa8)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x587f67(0xbc)]='[REDACTED]';const a22_0x55be80={};a22_0x55be80[a22_0x587f67(0x84)]=a22_0x587f67(0x9a);const a22_0x14a83c={};a22_0x14a83c[a22_0x587f67(0x82)]=a22_0x55be80,exports[a22_0x587f67(0xa2)]=a22_0x14a83c,exports['TRIAL_GRID_URL']=a22_0x587f67(0xa5);const a22_0xb95da1={};a22_0xb95da1[a22_0x587f67(0xa9)]=a22_0x587f67(0xc2),a22_0xb95da1[a22_0x587f67(0x7e)]=a22_0x587f67(0xd1),a22_0xb95da1[a22_0x587f67(0x88)]=a22_0x587f67(0x75),exports[a22_0x587f67(0x89)]=a22_0xb95da1;
@@ -1 +1 @@
1
- const a23_0x508665=a23_0x222b;(function(_0x304d3d,_0x5bac67){const _0x1a6ceb=a23_0x222b,_0x636799=_0x304d3d();while(!![]){try{const _0x43790d=parseInt(_0x1a6ceb(0x89))/0x1+-parseInt(_0x1a6ceb(0x92))/0x2+parseInt(_0x1a6ceb(0x85))/0x3*(parseInt(_0x1a6ceb(0x93))/0x4)+parseInt(_0x1a6ceb(0x7e))/0x5*(parseInt(_0x1a6ceb(0x7a))/0x6)+-parseInt(_0x1a6ceb(0x95))/0x7+parseInt(_0x1a6ceb(0x7d))/0x8*(parseInt(_0x1a6ceb(0x80))/0x9)+-parseInt(_0x1a6ceb(0x98))/0xa;if(_0x43790d===_0x5bac67)break;else _0x636799['push'](_0x636799['shift']());}catch(_0x5570e3){_0x636799['push'](_0x636799['shift']());}}}(a23_0x4aab,0xe477e));const winston=require(a23_0x508665(0x90)),fs=require('fs'),path=require(a23_0x508665(0x84)),logDir=a23_0x508665(0x8c);!fs[a23_0x508665(0x86)](logDir)&&fs[a23_0x508665(0x87)](logDir);function a23_0x4aab(){const _0x776a2=['join','winston','transports','2231262DDuDfQ','8fiDWWd','logger','10547075bbiRqU','format','printf','18324140YnuoHK','level','168dJNlqI','console.info','debug','4193944rvYKHJ','115295XetZfU','fileLogger','27XkokWJ','File','createLogger','colorize','path','2455368xSPoja','existsSync','mkdirSync','\x20-\x20','1535283fxIFsU','YYYY-MM-DD\x20HH:mm:ss','events.log','log','name','usage.log'];a23_0x4aab=function(){return _0x776a2;};return a23_0x4aab();}const a23_0x25a317={};a23_0x25a317[a23_0x508665(0x96)]=a23_0x508665(0x8a);const a23_0x1f34eb={};a23_0x1f34eb[a23_0x508665(0x79)]=!![];const a23_0x2d1c18={};a23_0x2d1c18[a23_0x508665(0x8d)]=a23_0x508665(0x7b),exports[a23_0x508665(0x94)]=new winston[(a23_0x508665(0x82))]({'format':winston[a23_0x508665(0x96)]['combine'](winston[a23_0x508665(0x96)]['timestamp'](a23_0x25a317),winston[a23_0x508665(0x96)][a23_0x508665(0x83)](a23_0x1f34eb),winston[a23_0x508665(0x96)][a23_0x508665(0x97)](_0x405fa6=>_0x405fa6['timestamp']+a23_0x508665(0x88)+_0x405fa6['level']+':\x20'+_0x405fa6['message'])),'transports':[new winston[(a23_0x508665(0x91))]['Console'](a23_0x2d1c18),new winston[(a23_0x508665(0x91))][(a23_0x508665(0x81))]({'filename':path[a23_0x508665(0x8f)](logDir,a23_0x508665(0x8b)),'level':a23_0x508665(0x7c)})]});function a23_0x222b(_0x394364,_0x2aec1f){const _0x4aab45=a23_0x4aab();return a23_0x222b=function(_0x222baa,_0x2add6a){_0x222baa=_0x222baa-0x79;let _0x5c063d=_0x4aab45[_0x222baa];return _0x5c063d;},a23_0x222b(_0x394364,_0x2aec1f);}const winstonFileLoggerParams={'transports':[new winston[(a23_0x508665(0x91))][(a23_0x508665(0x81))]({'filename':path['join'](logDir,a23_0x508665(0x8e)),'level':a23_0x508665(0x7c)})]};exports[a23_0x508665(0x7f)]=new winston[(a23_0x508665(0x82))](winstonFileLoggerParams);
1
+ const a23_0x36cdc0=a23_0x356a;(function(_0x4949cd,_0x3e314b){const _0x22ba32=a23_0x356a,_0x59d59e=_0x4949cd();while(!![]){try{const _0x24be9c=parseInt(_0x22ba32(0xac))/0x1+-parseInt(_0x22ba32(0x95))/0x2+parseInt(_0x22ba32(0xaf))/0x3*(-parseInt(_0x22ba32(0xa2))/0x4)+-parseInt(_0x22ba32(0xa1))/0x5+parseInt(_0x22ba32(0x8f))/0x6+parseInt(_0x22ba32(0xa5))/0x7+parseInt(_0x22ba32(0xae))/0x8*(parseInt(_0x22ba32(0x97))/0x9);if(_0x24be9c===_0x3e314b)break;else _0x59d59e['push'](_0x59d59e['shift']());}catch(_0x45ed5f){_0x59d59e['push'](_0x59d59e['shift']());}}}(a23_0x2947,0x358f9));const winston=require(a23_0x36cdc0(0xa9)),fs=require('fs'),path=require('path'),logDir='log';!fs[a23_0x36cdc0(0xab)](logDir)&&fs[a23_0x36cdc0(0xa4)](logDir);const a23_0x5639b3={};a23_0x5639b3['format']=a23_0x36cdc0(0x9d);function a23_0x356a(_0xefe600,_0x5962ad){const _0x294741=a23_0x2947();return a23_0x356a=function(_0x356a42,_0x32896a){_0x356a42=_0x356a42-0x8f;let _0x69ff9a=_0x294741[_0x356a42];return _0x69ff9a;},a23_0x356a(_0xefe600,_0x5962ad);}const a23_0x35d79b={};a23_0x35d79b['level']=!![];const a23_0x63a0dd={};a23_0x63a0dd[a23_0x36cdc0(0x98)]=a23_0x36cdc0(0xaa),exports[a23_0x36cdc0(0xa8)]=new winston[(a23_0x36cdc0(0x91))]({'format':winston[a23_0x36cdc0(0x92)][a23_0x36cdc0(0xad)](winston[a23_0x36cdc0(0x92)][a23_0x36cdc0(0x99)](a23_0x5639b3),winston[a23_0x36cdc0(0x92)][a23_0x36cdc0(0xa7)](a23_0x35d79b),winston[a23_0x36cdc0(0x92)][a23_0x36cdc0(0xa3)](_0x242bdf=>_0x242bdf['timestamp']+a23_0x36cdc0(0x9e)+_0x242bdf[a23_0x36cdc0(0xa6)]+':\x20'+_0x242bdf[a23_0x36cdc0(0x9a)])),'transports':[new winston[(a23_0x36cdc0(0x9f))][(a23_0x36cdc0(0x93))](a23_0x63a0dd),new winston['transports'][(a23_0x36cdc0(0x9c))]({'filename':path['join'](logDir,a23_0x36cdc0(0x90)),'level':a23_0x36cdc0(0x96)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x36cdc0(0x9f))]['File']({'filename':path[a23_0x36cdc0(0x9b)](logDir,a23_0x36cdc0(0xa0)),'level':a23_0x36cdc0(0x96)})]};function a23_0x2947(){const _0x2d9a47=['Console','fileLogger','395274CxbnCN','debug','81ToVPVi','name','timestamp','message','join','File','YYYY-MM-DD\x20HH:mm:ss','\x20-\x20','transports','usage.log','1060585yFwslv','71360RfHhle','printf','mkdirSync','1933869LJkkeo','level','colorize','logger','winston','console.info','existsSync','358800pDPrDE','combine','26952cnqAVW','21MdJmXE','531786PAaZew','events.log','createLogger','format'];a23_0x2947=function(){return _0x2d9a47;};return a23_0x2947();}exports[a23_0x36cdc0(0x94)]=new winston[(a23_0x36cdc0(0x91))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x242b26=a24_0x1393;(function(_0x158f34,_0x1d8e0b){const _0x185b94=a24_0x1393,_0x315402=_0x158f34();while(!![]){try{const _0x75efad=parseInt(_0x185b94(0x11d))/0x1+parseInt(_0x185b94(0x11c))/0x2*(parseInt(_0x185b94(0x122))/0x3)+parseInt(_0x185b94(0x128))/0x4+parseInt(_0x185b94(0x11e))/0x5+-parseInt(_0x185b94(0x119))/0x6*(-parseInt(_0x185b94(0x124))/0x7)+parseInt(_0x185b94(0x118))/0x8*(parseInt(_0x185b94(0x11f))/0x9)+-parseInt(_0x185b94(0x11b))/0xa*(parseInt(_0x185b94(0x126))/0xb);if(_0x75efad===_0x1d8e0b)break;else _0x315402['push'](_0x315402['shift']());}catch(_0x1bac93){_0x315402['push'](_0x315402['shift']());}}}(a24_0x1db6,0x76891));function a24_0x1393(_0xe400fc,_0xddc11d){const _0x1db6c7=a24_0x1db6();return a24_0x1393=function(_0x13932a,_0x1ad2bf){_0x13932a=_0x13932a-0x116;let _0x5af840=_0x1db6c7[_0x13932a];return _0x5af840;},a24_0x1393(_0xe400fc,_0xddc11d);}function a24_0x1db6(){const _0x55a7db=['22632810msmTId','7972JMAVzL','702266bYWtxU','3645665Xvnqqa','9dtJrEP','root','help','729SIIxhW','epilogue','7NazRGk','spNkP','11PAnhxg','commands','1088924TcNPHe','env','usage','./config/constants','exports','aefWK','demandCommand','449496tBnLNZ','122322vRrwYt','commandDir'];a24_0x1db6=function(){return _0x55a7db;};return a24_0x1db6();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x242b26(0x12b));process[a24_0x242b26(0x129)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x4e8fb3){const _0x539027=a24_0x242b26,_0x2ec20a={};_0x2ec20a[_0x539027(0x116)]=_0x539027(0x127),_0x2ec20a[_0x539027(0x125)]=_0x539027(0x121);const _0x5bd299=_0x2ec20a;_0x4e8fb3[_0x539027(0x12a)](HELP_HEADER_MESSAGE[_0x539027(0x120)])[_0x539027(0x11a)](_0x5bd299[_0x539027(0x116)])[_0x539027(0x117)]()[_0x539027(0x121)](_0x5bd299[_0x539027(0x125)])[_0x539027(0x123)](HELP_FOOTER_MESSAGE);}module[a24_0x242b26(0x12c)]=run;
2
+ 'use strict';const a24_0x347183=a24_0x3170;(function(_0x45e160,_0x47756f){const _0x189706=a24_0x3170,_0x439621=_0x45e160();while(!![]){try{const _0x2ca96f=-parseInt(_0x189706(0xe8))/0x1*(parseInt(_0x189706(0xe4))/0x2)+-parseInt(_0x189706(0xe0))/0x3*(-parseInt(_0x189706(0xdb))/0x4)+parseInt(_0x189706(0xed))/0x5+-parseInt(_0x189706(0xd9))/0x6*(parseInt(_0x189706(0xdc))/0x7)+-parseInt(_0x189706(0xe1))/0x8*(parseInt(_0x189706(0xd6))/0x9)+-parseInt(_0x189706(0xe7))/0xa*(-parseInt(_0x189706(0xde))/0xb)+-parseInt(_0x189706(0xe3))/0xc;if(_0x2ca96f===_0x47756f)break;else _0x439621['push'](_0x439621['shift']());}catch(_0x2c5670){_0x439621['push'](_0x439621['shift']());}}}(a24_0xb660,0x43ab4));function a24_0x3170(_0x4e0290,_0x3f1644){const _0xb66083=a24_0xb660();return a24_0x3170=function(_0x3170c7,_0x5d4b3a){_0x3170c7=_0x3170c7-0xd5;let _0x3acd14=_0xb66083[_0x3170c7];return _0x3acd14;},a24_0x3170(_0x4e0290,_0x3f1644);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x347183(0xe2));process[a24_0x347183(0xd8)][a24_0x347183(0xea)]=0x1;function run(_0x4ae4c8){const _0x4bc00e=a24_0x347183,_0x98b6b8={};_0x98b6b8[_0x4bc00e(0xd7)]=_0x4bc00e(0xd5),_0x98b6b8['zTfki']=_0x4bc00e(0xec);const _0xd0d3fa=_0x98b6b8;_0x4ae4c8[_0x4bc00e(0xda)](HELP_HEADER_MESSAGE[_0x4bc00e(0xeb)])[_0x4bc00e(0xdd)](_0xd0d3fa[_0x4bc00e(0xd7)])[_0x4bc00e(0xdf)]()['help'](_0xd0d3fa[_0x4bc00e(0xe6)])[_0x4bc00e(0xe9)](HELP_FOOTER_MESSAGE);}module[a24_0x347183(0xe5)]=run;function a24_0xb660(){const _0x25bed6=['3222sHQqwA','usage','4Axnmeq','2982hZJCry','commandDir','16016sTcTzR','demandCommand','1344723JvbQRR','248mnvTee','./config/constants','1575000kqFVwb','90gqLfEF','exports','zTfki','1340AxWEDe','2605FVOKbv','epilogue','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','root','help','674515JvzEQg','commands','6921jlmwUK','VUVZc','env'];a24_0xb660=function(){return _0x25bed6;};return a24_0xb660();}