browserstack-node-sdk 1.35.8 → 1.35.9

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_0x113606=a15_0x474d;(function(_0x28051f,_0x52730a){const _0x155b0c=a15_0x474d,_0x40a0ad=_0x28051f();while(!![]){try{const _0x3d2672=-parseInt(_0x155b0c(0x1b5))/0x1+parseInt(_0x155b0c(0x176))/0x2*(-parseInt(_0x155b0c(0x19f))/0x3)+-parseInt(_0x155b0c(0x188))/0x4+-parseInt(_0x155b0c(0x1b2))/0x5*(-parseInt(_0x155b0c(0x18c))/0x6)+parseInt(_0x155b0c(0x190))/0x7+-parseInt(_0x155b0c(0x19e))/0x8*(-parseInt(_0x155b0c(0x1b3))/0x9)+-parseInt(_0x155b0c(0x16c))/0xa*(-parseInt(_0x155b0c(0x175))/0xb);if(_0x3d2672===_0x52730a)break;else _0x40a0ad['push'](_0x40a0ad['shift']());}catch(_0x471900){_0x40a0ad['push'](_0x40a0ad['shift']());}}}(a15_0x1c66,0x76c2e));function a15_0x1c66(){const _0x3f0814=['ApPoI','pSCza','epilogue','running','GET','\x0aFound\x20the\x20following\x20grids:\x0a','krOAk','vbsYY','2959608UDBuUN','bstackAccesskey','body','existsSync','1074lQnFwy','password','queued','trDGB','648606zHZDZd','Nppse','HlgQj','grid','stringify','grids','../../utils/instrumentationUtils','cluster-name','UyGZV','clusterName','grid-name','ERROR','handler','pWtTR','183400BSFWAK','127698wGYgoL','forEach','EVRxF','ftkAu','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','allGrids','readFileSync','Failed\x20to\x20list\x20resources!\x20Error:\x20','BhuyB','SVAHI','builder','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','KaTpa','help','list','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Browserstack','description','14660RLkncD','99CwOvJA','tQzAS','99178DtZMJy','table','INFO','argv','command','https://','exit','goSPN','/packages/cli/get-all-grids','all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','JMpOT','AduWl','cOwDP','usage','push','QkmYX','235770jaVZRB','SXPnH','statusCode','UhCwR','username','whNZL','unauthorised','boolean','log','451NCwOZB','24LaIwXB','status','bStwo','parse','jeWsj','NplZM','../../config/constants','server-error','list-grids-called','NRkPw'];a15_0x1c66=function(){return _0x3f0814;};return a15_0x1c66();}const fs=require('fs'),got=require('got'),{table}=require(a15_0x113606(0x1b6)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x113606(0x17c)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x113606(0x196));function a15_0x474d(_0x410e30,_0x787fd9){const _0x1c66cd=a15_0x1c66();return a15_0x474d=function(_0x474dbb,_0x5ac681){_0x474dbb=_0x474dbb-0x15c;let _0x1d42ac=_0x1c66cd[_0x474dbb];return _0x1d42ac;},a15_0x474d(_0x410e30,_0x787fd9);}exports[a15_0x113606(0x15e)]=a15_0x113606(0x195),exports['desc']=a15_0x113606(0x1af),exports[a15_0x113606(0x1a9)]=function(_0x1bf49b){const _0x17d373=a15_0x113606,_0x4c5aa1={};_0x4c5aa1[_0x17d373(0x180)]=_0x17d373(0x1ab),_0x4c5aa1[_0x17d373(0x1a7)]=_0x17d373(0x173),_0x4c5aa1[_0x17d373(0x191)]=_0x17d373(0x1ad);const _0xb612cc=_0x4c5aa1,_0xcedd52={};_0xcedd52[_0x17d373(0x1b1)]=_0xb612cc[_0x17d373(0x180)],_0xcedd52['type']=_0xb612cc[_0x17d373(0x1a7)];const _0x369800={};return _0x369800[_0x17d373(0x163)]=_0xcedd52,_0x1bf49b[_0x17d373(0x169)](HELP_HEADER_MESSAGE[_0x17d373(0x1ae)][_0x17d373(0x193)])[_0x17d373(0x182)](HELP_FOOTER_MESSAGE)['options'](_0x369800)[_0x17d373(0x1ad)](_0xb612cc[_0x17d373(0x191)])[_0x17d373(0x15d)];},exports[a15_0x113606(0x19c)]=async function(_0x3174d7){const _0x4f3c92=a15_0x113606,_0x264857={'HlgQj':function(_0x15d9e2){return _0x15d9e2();},'fuIcm':function(_0x3ffce6){return _0x3ffce6();},'UyGZV':_0x4f3c92(0x1aa),'NplZM':function(_0x234c80,_0x59fc8e,_0x3edf58,_0x1288b0,_0x37f442,_0x4f4220,_0x17434a){return _0x234c80(_0x59fc8e,_0x3edf58,_0x1288b0,_0x37f442,_0x4f4220,_0x17434a);},'JMpOT':_0x4f3c92(0x17e),'pSCza':'init-not-called','jeWsj':function(_0x1a753b){return _0x1a753b();},'tQzAS':_0x4f3c92(0x184),'SVAHI':function(_0x1bdaba,_0x3ce9eb,_0x4db1a3){return _0x1bdaba(_0x3ce9eb,_0x4db1a3);},'goSPN':function(_0x21481d,_0x181d1e,_0x7413f,_0x3af6a7,_0x506251,_0xb4c122,_0xa2d25){return _0x21481d(_0x181d1e,_0x7413f,_0x3af6a7,_0x506251,_0xb4c122,_0xa2d25);},'krOAk':function(_0x403552,_0x29d2f9,_0x1a1d81){return _0x403552(_0x29d2f9,_0x1a1d81);},'UhCwR':function(_0x29e9cb,_0x2b2099){return _0x29e9cb!==_0x2b2099;},'AduWl':function(_0x3a291b,_0xe5bffb){return _0x3a291b===_0xe5bffb;},'AAKXO':_0x4f3c92(0x185),'trDGB':'grid-id','pWtTR':_0x4f3c92(0x19a),'cOwDP':_0x4f3c92(0x177),'vbsYY':'running','bStwo':'queued','ftkAu':_0x4f3c92(0x197),'EVRxF':function(_0x555ef4,_0x572e23){return _0x555ef4(_0x572e23);},'KaTpa':_0x4f3c92(0x164),'QkmYX':function(_0x453e16,_0x3b89df,_0x60631,_0x30036c,_0x48c34a,_0x367755,_0x291917){return _0x453e16(_0x3b89df,_0x60631,_0x30036c,_0x48c34a,_0x367755,_0x291917);},'SXPnH':_0x4f3c92(0x172),'NRkPw':_0x4f3c92(0x17d),'whNZL':'unknown-error'};try{global_registry['requestId']=_0x264857[_0x4f3c92(0x192)](uuidv4);!fs[_0x4f3c92(0x18b)](_0x264857['fuIcm'](getCredentialsPath))&&(console[_0x4f3c92(0x165)](_0x264857[_0x4f3c92(0x198)]),await _0x264857[_0x4f3c92(0x17b)](sendInstrumentationEvent,_0x3174d7,_0x264857[_0x4f3c92(0x166)],messageTypes['ERROR'],_0x264857[_0x4f3c92(0x181)],null,_0x3174d7),process[_0x4f3c92(0x160)](0x1));const _0x45d5bf=JSON[_0x4f3c92(0x179)](fs[_0x4f3c92(0x1a5)](_0x264857[_0x4f3c92(0x17a)](getCredentialsPath)));let _0x15d26d=_0x4f3c92(0x15f)+AG_API_URL+'/packages/cli/get-grids';_0x3174d7[_0x4f3c92(0x1a4)]&&(_0x15d26d=_0x4f3c92(0x15f)+AG_API_URL+_0x4f3c92(0x162));const _0x5ca64d={'method':_0x264857[_0x4f3c92(0x1b4)],'headers':_0x264857[_0x4f3c92(0x1a8)](getAuthHeader,_0x45d5bf[_0x4f3c92(0x1b0)][_0x4f3c92(0x170)],_0x45d5bf['Browserstack'][_0x4f3c92(0x18d)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x45d5bf['Browserstack']['username'],global_registry[_0x4f3c92(0x189)]=_0x45d5bf[_0x4f3c92(0x1b0)]['password'],_0x264857['goSPN'](sendInstrumentationEvent,_0x3174d7,_0x264857[_0x4f3c92(0x166)],messageTypes[_0x4f3c92(0x15c)],null,null,_0x3174d7);const _0x778e51=await _0x264857[_0x4f3c92(0x186)](got,_0x15d26d,_0x5ca64d);if(_0x264857[_0x4f3c92(0x16f)](_0x778e51,null)&&_0x264857['UhCwR'](_0x778e51,undefined)&&_0x264857['AduWl'](_0x778e51[_0x4f3c92(0x16e)],0xc8)){const _0x57fcea=JSON[_0x4f3c92(0x179)](_0x778e51[_0x4f3c92(0x18a)]);console[_0x4f3c92(0x174)](_0x264857['AAKXO']);const _0x5e5890=[];_0x5e5890[_0x4f3c92(0x16a)]([_0x264857[_0x4f3c92(0x18f)],_0x264857[_0x4f3c92(0x19d)],_0x264857[_0x4f3c92(0x168)],_0x264857[_0x4f3c92(0x187)],_0x264857[_0x4f3c92(0x178)],_0x264857[_0x4f3c92(0x1a2)]]),_0x57fcea[_0x4f3c92(0x1a0)](_0x5d6aff=>{const _0x2ada4d=_0x4f3c92;_0x5e5890[_0x2ada4d(0x16a)]([_0x5d6aff['id'],_0x5d6aff['name'],_0x5d6aff['status'],_0x5d6aff[_0x2ada4d(0x183)],_0x5d6aff[_0x2ada4d(0x18e)],_0x5d6aff[_0x2ada4d(0x199)]]);}),console[_0x4f3c92(0x174)](_0x264857[_0x4f3c92(0x1a1)](table,_0x5e5890)),process[_0x4f3c92(0x160)](0x0);}_0x264857[_0x4f3c92(0x167)](_0x778e51[_0x4f3c92(0x16e)],0x191)&&(console[_0x4f3c92(0x165)](_0x264857[_0x4f3c92(0x1ac)]),await _0x264857['QkmYX'](sendInstrumentationEvent,_0x3174d7,_0x264857['JMpOT'],messageTypes[_0x4f3c92(0x19b)],_0x264857[_0x4f3c92(0x16d)],null,_0x3174d7),process[_0x4f3c92(0x160)](0x1)),console[_0x4f3c92(0x165)](_0x4f3c92(0x1a3)+JSON[_0x4f3c92(0x194)](_0x778e51)),await _0x264857[_0x4f3c92(0x161)](sendInstrumentationEvent,_0x3174d7,_0x264857[_0x4f3c92(0x166)],messageTypes[_0x4f3c92(0x19b)],_0x264857[_0x4f3c92(0x17f)],_0x778e51,_0x3174d7),process['exit'](0x1);}catch(_0x54595e){console[_0x4f3c92(0x165)](_0x4f3c92(0x1a6)+_0x54595e['stack']),await _0x264857[_0x4f3c92(0x16b)](sendInstrumentationEvent,_0x3174d7,_0x264857[_0x4f3c92(0x166)],messageTypes[_0x4f3c92(0x19b)],_0x264857[_0x4f3c92(0x171)],_0x54595e,_0x3174d7),process[_0x4f3c92(0x160)](0x1);}};
1
+ const a15_0x12d4c6=a15_0x3ce2;function a15_0x3ce2(_0x137389,_0x123dc7){const _0x460a55=a15_0x460a();return a15_0x3ce2=function(_0x3ce246,_0x4945e9){_0x3ce246=_0x3ce246-0x13f;let _0x5c7d73=_0x460a55[_0x3ce246];return _0x5c7d73;},a15_0x3ce2(_0x137389,_0x123dc7);}function a15_0x460a(){const _0x1eca69=['ssCDL','name','password','ELuNB','boolean','list-grids-called','kJSva','handler','cluster-name','server-error','options','IZImP','GET','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','builder','desc','status','statusCode','Lgtjj','pGnHh','username','354QHdVtQ','body','7045LkQcdN','rXHVh','running','parse','ERROR','grid','/packages/cli/get-grids','\x0aFound\x20the\x20following\x20grids:\x0a','all-grids','6858565Xxzfha','queued','ATzmp','3775740NwfsIP','388iGErli','requestId','log','9471693WyVDJi','../../config/constants','Browserstack','type','351344kYOxyt','UtEjC','tdkwo','wwloP','usage','argv','epilogue','AkFdt','Xasnz','grids','2MAWdoJ','table','INFO','exit','aYdYZ','push','command','51029AajnhS','tuiyV','stack','WSdld','error','help','yKfrz','uuid','init-not-called','18861EPNcOc','WbFqx','stringify','allGrids','https://','/packages/cli/get-all-grids','coJfs','BOPwb','existsSync','got','RyRNi','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid-name','BSyqE','Failed\x20to\x20list\x20resources!\x20Error:\x20','117RbVOLz','unknown-error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a15_0x460a=function(){return _0x1eca69;};return a15_0x460a();}(function(_0x565f44,_0x127981){const _0x10d42f=a15_0x3ce2,_0x44ef98=_0x565f44();while(!![]){try{const _0x193fbd=parseInt(_0x10d42f(0x170))/0x1*(-parseInt(_0x10d42f(0x169))/0x2)+parseInt(_0x10d42f(0x179))/0x3*(parseInt(_0x10d42f(0x158))/0x4)+parseInt(_0x10d42f(0x14b))/0x5*(-parseInt(_0x10d42f(0x149))/0x6)+-parseInt(_0x10d42f(0x154))/0x7+-parseInt(_0x10d42f(0x15f))/0x8*(-parseInt(_0x10d42f(0x189))/0x9)+-parseInt(_0x10d42f(0x157))/0xa+parseInt(_0x10d42f(0x15b))/0xb;if(_0x193fbd===_0x127981)break;else _0x44ef98['push'](_0x44ef98['shift']());}catch(_0x276cd9){_0x44ef98['push'](_0x44ef98['shift']());}}}(a15_0x460a,0x865a3));const fs=require('fs'),got=require(a15_0x12d4c6(0x182)),{table}=require(a15_0x12d4c6(0x16a)),{v4:uuidv4}=require(a15_0x12d4c6(0x177)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x12d4c6(0x15c)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x12d4c6(0x16f)]=a15_0x12d4c6(0x168),exports[a15_0x12d4c6(0x143)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x12d4c6(0x142)]=function(_0x1afff8){const _0x3793f1=a15_0x12d4c6,_0x541f68={};_0x541f68['BOPwb']=_0x3793f1(0x141),_0x541f68[_0x3793f1(0x18c)]=_0x3793f1(0x190),_0x541f68[_0x3793f1(0x192)]=_0x3793f1(0x175);const _0x2df260=_0x541f68,_0x1b4f91={};_0x1b4f91[_0x3793f1(0x184)]=_0x2df260[_0x3793f1(0x180)],_0x1b4f91[_0x3793f1(0x15e)]=_0x2df260[_0x3793f1(0x18c)];const _0x2056c1={};return _0x2056c1[_0x3793f1(0x153)]=_0x1b4f91,_0x1afff8[_0x3793f1(0x163)](HELP_HEADER_MESSAGE['list'][_0x3793f1(0x150)])[_0x3793f1(0x165)](HELP_FOOTER_MESSAGE)[_0x3793f1(0x196)](_0x2056c1)[_0x3793f1(0x175)](_0x2df260[_0x3793f1(0x192)])[_0x3793f1(0x164)];},exports[a15_0x12d4c6(0x193)]=async function(_0x43e1af){const _0x47f450=a15_0x12d4c6,_0x1c40f8={'RyRNi':function(_0x2e0c4b){return _0x2e0c4b();},'coJfs':_0x47f450(0x18b),'ELuNB':function(_0x4400b1,_0xe34492,_0x11c527,_0x57ae06,_0x19e579,_0x234719,_0xa76466){return _0x4400b1(_0xe34492,_0x11c527,_0x57ae06,_0x19e579,_0x234719,_0xa76466);},'rXHVh':_0x47f450(0x191),'tuiyV':_0x47f450(0x178),'WbFqx':function(_0x566df2){return _0x566df2();},'ATzmp':_0x47f450(0x13f),'UtEjC':function(_0x33b5b4,_0x1a03f7,_0x3eca9f){return _0x33b5b4(_0x1a03f7,_0x3eca9f);},'pGnHh':function(_0x38940a,_0x3a57f0){return _0x38940a!==_0x3a57f0;},'Lgtjj':function(_0x30787a,_0x36f50a){return _0x30787a===_0x36f50a;},'yKfrz':_0x47f450(0x152),'nHBpJ':'grid-id','WSdld':_0x47f450(0x186),'Xasnz':_0x47f450(0x144),'AkFdt':_0x47f450(0x14d),'BSyqE':'queued','wwloP':_0x47f450(0x194),'tdkwo':function(_0x599779,_0xf13163){return _0x599779(_0xf13163);},'IZImP':_0x47f450(0x185),'aYdYZ':function(_0x45ea35,_0x23755f,_0x30dbbc,_0xce23a,_0xa6287d,_0x3b8704,_0x2eea4d){return _0x45ea35(_0x23755f,_0x30dbbc,_0xce23a,_0xa6287d,_0x3b8704,_0x2eea4d);},'eJZhS':'unauthorised','doAQe':_0x47f450(0x195),'fOkXr':_0x47f450(0x18a)};try{global_registry[_0x47f450(0x159)]=_0x1c40f8[_0x47f450(0x183)](uuidv4);!fs[_0x47f450(0x181)](_0x1c40f8[_0x47f450(0x183)](getCredentialsPath))&&(console[_0x47f450(0x174)](_0x1c40f8[_0x47f450(0x17f)]),await _0x1c40f8[_0x47f450(0x18f)](sendInstrumentationEvent,_0x43e1af,_0x1c40f8[_0x47f450(0x14c)],messageTypes['ERROR'],_0x1c40f8[_0x47f450(0x171)],null,_0x43e1af),process[_0x47f450(0x16c)](0x1));const _0x3a75a5=JSON[_0x47f450(0x14e)](fs['readFileSync'](_0x1c40f8[_0x47f450(0x17a)](getCredentialsPath)));let _0x3f6622='https://'+AG_API_URL+_0x47f450(0x151);_0x43e1af[_0x47f450(0x17c)]&&(_0x3f6622=_0x47f450(0x17d)+AG_API_URL+_0x47f450(0x17e));const _0x24970d={'method':_0x1c40f8[_0x47f450(0x156)],'headers':_0x1c40f8[_0x47f450(0x160)](getAuthHeader,_0x3a75a5[_0x47f450(0x15d)][_0x47f450(0x148)],_0x3a75a5[_0x47f450(0x15d)][_0x47f450(0x18e)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x3a75a5[_0x47f450(0x15d)][_0x47f450(0x148)],global_registry['bstackAccesskey']=_0x3a75a5[_0x47f450(0x15d)][_0x47f450(0x18e)],_0x1c40f8[_0x47f450(0x18f)](sendInstrumentationEvent,_0x43e1af,_0x1c40f8[_0x47f450(0x14c)],messageTypes[_0x47f450(0x16b)],null,null,_0x43e1af);const _0x625655=await _0x1c40f8['UtEjC'](got,_0x3f6622,_0x24970d);if(_0x1c40f8['pGnHh'](_0x625655,null)&&_0x1c40f8[_0x47f450(0x147)](_0x625655,undefined)&&_0x1c40f8[_0x47f450(0x146)](_0x625655[_0x47f450(0x145)],0xc8)){const _0x4891de=JSON[_0x47f450(0x14e)](_0x625655[_0x47f450(0x14a)]);console[_0x47f450(0x15a)](_0x1c40f8[_0x47f450(0x176)]);const _0x2a0320=[];_0x2a0320[_0x47f450(0x16e)]([_0x1c40f8['nHBpJ'],_0x1c40f8[_0x47f450(0x173)],_0x1c40f8[_0x47f450(0x167)],_0x1c40f8[_0x47f450(0x166)],_0x1c40f8[_0x47f450(0x187)],_0x1c40f8[_0x47f450(0x162)]]),_0x4891de['forEach'](_0x2f6c19=>{const _0x445467=_0x47f450;_0x2a0320[_0x445467(0x16e)]([_0x2f6c19['id'],_0x2f6c19[_0x445467(0x18d)],_0x2f6c19[_0x445467(0x144)],_0x2f6c19[_0x445467(0x14d)],_0x2f6c19[_0x445467(0x155)],_0x2f6c19['clusterName']]);}),console[_0x47f450(0x15a)](_0x1c40f8[_0x47f450(0x161)](table,_0x2a0320)),process[_0x47f450(0x16c)](0x0);}_0x1c40f8[_0x47f450(0x146)](_0x625655[_0x47f450(0x145)],0x191)&&(console[_0x47f450(0x174)](_0x1c40f8[_0x47f450(0x197)]),await _0x1c40f8[_0x47f450(0x16d)](sendInstrumentationEvent,_0x43e1af,_0x1c40f8[_0x47f450(0x14c)],messageTypes[_0x47f450(0x14f)],_0x1c40f8['eJZhS'],null,_0x43e1af),process[_0x47f450(0x16c)](0x1)),console[_0x47f450(0x174)](_0x47f450(0x140)+JSON[_0x47f450(0x17b)](_0x625655)),await _0x1c40f8[_0x47f450(0x16d)](sendInstrumentationEvent,_0x43e1af,_0x1c40f8[_0x47f450(0x14c)],messageTypes[_0x47f450(0x14f)],_0x1c40f8['doAQe'],_0x625655,_0x43e1af),process[_0x47f450(0x16c)](0x1);}catch(_0x281c06){console[_0x47f450(0x174)](_0x47f450(0x188)+_0x281c06[_0x47f450(0x172)]),await _0x1c40f8[_0x47f450(0x18f)](sendInstrumentationEvent,_0x43e1af,_0x1c40f8['rXHVh'],messageTypes[_0x47f450(0x14f)],_0x1c40f8['fOkXr'],_0x281c06,_0x43e1af),process[_0x47f450(0x16c)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x5616(){const _0x518602=['strict','9144VVRvrv','3tODOhY','usage','pre_check','builder','1448hjgqGa','463578EPzHrw','2192304CkxBle','recommendCommands','help','1829800sqOxCw','epilogue','../config/constants','pre-check','959210QZChjT','412816FhghGn','IwMoN','desc','739588wkYhOu','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','demandCommand'];a16_0x5616=function(){return _0x518602;};return a16_0x5616();}const a16_0x2750d8=a16_0x21e6;(function(_0x26305f,_0x388144){const _0x192bc9=a16_0x21e6,_0x59ae79=_0x26305f();while(!![]){try{const _0x33dc9f=-parseInt(_0x192bc9(0x160))/0x1+-parseInt(_0x192bc9(0x16d))/0x2+-parseInt(_0x192bc9(0x168))/0x3*(-parseInt(_0x192bc9(0x163))/0x4)+parseInt(_0x192bc9(0x15b))/0x5+parseInt(_0x192bc9(0x16e))/0x6+parseInt(_0x192bc9(0x15f))/0x7+-parseInt(_0x192bc9(0x16c))/0x8*(parseInt(_0x192bc9(0x167))/0x9);if(_0x33dc9f===_0x388144)break;else _0x59ae79['push'](_0x59ae79['shift']());}catch(_0x26ef86){_0x59ae79['push'](_0x59ae79['shift']());}}}(a16_0x5616,0x36e02));function a16_0x21e6(_0x2b865c,_0x24adfb){const _0x5616ac=a16_0x5616();return a16_0x21e6=function(_0x21e691,_0x3d66a2){_0x21e691=_0x21e691-0x159;let _0x8dcde3=_0x5616ac[_0x21e691];return _0x8dcde3;},a16_0x21e6(_0x2b865c,_0x24adfb);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2750d8(0x15d));exports['command']=a16_0x2750d8(0x15e),exports[a16_0x2750d8(0x162)]=a16_0x2750d8(0x164),exports[a16_0x2750d8(0x16b)]=function(_0x31ee03){const _0x4a7b70=a16_0x2750d8,_0x3afe41={};_0x3afe41[_0x4a7b70(0x161)]='precheck_commands',_0x3afe41['GPuAi']=_0x4a7b70(0x15a);const _0x5cca5f=_0x3afe41;return _0x31ee03[_0x4a7b70(0x169)](HELP_HEADER_MESSAGE[_0x4a7b70(0x16a)])[_0x4a7b70(0x15c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5cca5f[_0x4a7b70(0x161)])[_0x4a7b70(0x165)]()[_0x4a7b70(0x159)]()[_0x4a7b70(0x166)]()['help'](_0x5cca5f['GPuAi']);},exports['handler']=function(_0x2022b8){};
1
+ const a16_0x4aa865=a16_0x7501;function a16_0x220a(){const _0x268111=['pre-check','fBiSI','precheck_commands','commandDir','21HuskmU','epilogue','524158uBTVhx','2218554ttJcba','usage','76011YGsqFk','2442064uQlVgY','10496070SccoGI','help','recommendCommands','handler','74MxrgBb','3415068DGTumC','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','pre_check','9QrtWJq','builder','aNRBo','6455095wNHrnV'];a16_0x220a=function(){return _0x268111;};return a16_0x220a();}(function(_0x231450,_0x42a4c1){const _0x5af188=a16_0x7501,_0x60da7d=_0x231450();while(!![]){try{const _0x28551e=parseInt(_0x5af188(0x1db))/0x1+parseInt(_0x5af188(0x1cd))/0x2*(parseInt(_0x5af188(0x1de))/0x3)+parseInt(_0x5af188(0x1ce))/0x4+-parseInt(_0x5af188(0x1d4))/0x5+-parseInt(_0x5af188(0x1dc))/0x6+parseInt(_0x5af188(0x1d9))/0x7*(-parseInt(_0x5af188(0x1df))/0x8)+-parseInt(_0x5af188(0x1d1))/0x9*(-parseInt(_0x5af188(0x1e0))/0xa);if(_0x28551e===_0x42a4c1)break;else _0x60da7d['push'](_0x60da7d['shift']());}catch(_0x4044b2){_0x60da7d['push'](_0x60da7d['shift']());}}}(a16_0x220a,0xc07e1));function a16_0x7501(_0x5975ba,_0x8c9638){const _0x220ade=a16_0x220a();return a16_0x7501=function(_0x7501cc,_0x57d583){_0x7501cc=_0x7501cc-0x1cb;let _0x52bd46=_0x220ade[_0x7501cc];return _0x52bd46;},a16_0x7501(_0x5975ba,_0x8c9638);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x4aa865(0x1d5),exports['desc']=a16_0x4aa865(0x1cf),exports[a16_0x4aa865(0x1d2)]=function(_0x27819c){const _0x2af391=a16_0x4aa865,_0x32d1f5={};_0x32d1f5[_0x2af391(0x1d3)]=_0x2af391(0x1d7),_0x32d1f5[_0x2af391(0x1d6)]=_0x2af391(0x1e1);const _0x446fb2=_0x32d1f5;return _0x27819c[_0x2af391(0x1dd)](HELP_HEADER_MESSAGE[_0x2af391(0x1d0)])[_0x2af391(0x1da)](HELP_FOOTER_MESSAGE)[_0x2af391(0x1d8)](_0x446fb2[_0x2af391(0x1d3)])['demandCommand']()[_0x2af391(0x1cb)]()['strict']()[_0x2af391(0x1e1)](_0x446fb2[_0x2af391(0x1d6)]);},exports[a16_0x4aa865(0x1cc)]=function(_0x3c76a3){};
@@ -1 +1 @@
1
- const a17_0x57656a=a17_0x4316;(function(_0x2fd2fd,_0x5101c9){const _0x4d4992=a17_0x4316,_0x16473d=_0x2fd2fd();while(!![]){try{const _0x2a5836=-parseInt(_0x4d4992(0x140))/0x1*(-parseInt(_0x4d4992(0x1a9))/0x2)+-parseInt(_0x4d4992(0x152))/0x3*(parseInt(_0x4d4992(0xda))/0x4)+-parseInt(_0x4d4992(0xd4))/0x5+-parseInt(_0x4d4992(0x119))/0x6*(parseInt(_0x4d4992(0x13b))/0x7)+-parseInt(_0x4d4992(0x173))/0x8+parseInt(_0x4d4992(0x1b4))/0x9+parseInt(_0x4d4992(0x138))/0xa;if(_0x2a5836===_0x5101c9)break;else _0x16473d['push'](_0x16473d['shift']());}catch(_0xd8905e){_0x16473d['push'](_0x16473d['shift']());}}}(a17_0x4307,0xc5f2d));const fs=require('fs'),ws=require('ws'),got=require(a17_0x57656a(0x15e)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x57656a(0x100)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x57656a(0x17a)),{logger}=require(a17_0x57656a(0x1ba)),{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('../../cloudproviders/utils'),webSocketUtils=require(a17_0x57656a(0x118)),{sendInstrumentationEvent}=require(a17_0x57656a(0xf5));function a17_0x4316(_0x425e4c,_0x5b6029){const _0x430722=a17_0x4307();return a17_0x4316=function(_0x4316c3,_0x5cd42f){_0x4316c3=_0x4316c3-0xd3;let _0xdeaee9=_0x430722[_0x4316c3];return _0xdeaee9;},a17_0x4316(_0x425e4c,_0x5b6029);}exports[a17_0x57656a(0x1b7)]=a17_0x57656a(0xff),exports[a17_0x57656a(0x13d)]=a17_0x57656a(0x1ac),exports[a17_0x57656a(0xe0)]=function(_0x6b8b2d){const _0x41f218=a17_0x57656a,_0x299829={};_0x299829[_0x41f218(0x1c7)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x299829[_0x41f218(0x10c)]=_0x41f218(0x16a),_0x299829[_0x41f218(0x16b)]=_0x41f218(0xed),_0x299829[_0x41f218(0x18b)]=_0x41f218(0x103),_0x299829[_0x41f218(0x1af)]=_0x41f218(0x176),_0x299829[_0x41f218(0x148)]=_0x41f218(0x16c);const _0x1fb1b9=_0x299829,_0x3f0495={};_0x3f0495[_0x41f218(0x18d)]=_0x1fb1b9[_0x41f218(0x1c7)],_0x3f0495[_0x41f218(0x1b0)]=_0x1fb1b9['ikZxi'];const _0x578935={};_0x578935[_0x41f218(0x18d)]=_0x1fb1b9[_0x41f218(0x16b)],_0x578935[_0x41f218(0x1b0)]=_0x1fb1b9['ikZxi'];const _0x492a30={};_0x492a30[_0x41f218(0x18d)]=_0x1fb1b9['LVhEf'],_0x492a30[_0x41f218(0x1b0)]=_0x1fb1b9[_0x41f218(0x10c)];const _0x589c77={};_0x589c77[_0x41f218(0x18d)]=_0x1fb1b9[_0x41f218(0x1af)],_0x589c77[_0x41f218(0x1b0)]=_0x1fb1b9['ikZxi'];const _0x5085fd={};return _0x5085fd[_0x41f218(0x18a)]=_0x3f0495,_0x5085fd[_0x41f218(0x19b)]=_0x578935,_0x5085fd[_0x41f218(0x151)]=_0x492a30,_0x5085fd['grid-profile']=_0x589c77,_0x6b8b2d[_0x41f218(0xf6)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5085fd)[_0x41f218(0x16c)](_0x1fb1b9[_0x41f218(0x148)])[_0x41f218(0x192)];};function a17_0x4307(){const _0x447591=['jVtWi','gridProfile','find','PGbKw','cluster-name','LVhEf','JlYwF','description','\x20\x20Code:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','sendEventToBackend','zZmiH','argv','bstackUsername','connectionTimeout','WxgAo','clusterRegion','\x20error\x20:\x20','===\x20Precheck\x20Report\x20-\x20','message','AZSRr','cloud-provider','gBeqa','parse','Liitl','CLOUD_PROVIDER','Kkwtv','error\x20stack\x20:\x20','`\x20,error\x20:\x20','password','WBVpm','toLowerCase','Didvk','Missing\x20required\x20arguments:\x20','zjXJD','2gzJrBd','apTYU','HCfPr','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','join','wvieV','jUMfI','type','WebSocket','getUTCDate','\x20\x20Message:\x20','523341DXOTCE','TLSv1_2_client_method','dXDnW','command','readFileSync','WUmRl','../../config/logger','SbCmg','BVWey','grid\x20profile\x20flow\x20','log/report_','GgtnB','grid-profile','stack\x20trace\x20','DggFk','stack','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','AcoOa','XrTrF','dDrWQ','sZmvP','data','EMGGc','utf-8','REjLY','3055355tFNGfE','vvyQm','delay','debug','toolInstalledResp','gLWUE','156hCiwXW','rTckv','QAapC','KCVKt','Failed\x20in\x20pre-check!\x20Error:\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','builder','name','tcmBi','existsSync','info','Error\x20Details:\x0a','lvivj','header','checkAccess','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','response','ayFXT','PQFZd','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getUTCMinutes','handler','PgvWT','XKVxf','gtSvH','isTls1_2_SUPPORTED','push','../../utils/instrumentationUtils','usage','cloudProvider','length','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','bnepq','SpBdS','XZfXW',']\x20status\x20:\x20','zxlKq','grid','reconnecting-websocket','credential-not-found','init','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Tool\x20Installed','OiblY','pre-check-grid-profile-empty','QgMdN','VjQEs','INFO','TDCYE','IPlfd','ikZxi','aDYZL','Cluster\x20','<PasswordPlaceholder>','Failure','unable\x20to\x20verify\x20if\x20cluster\x20`','Cluster\x20`','khJns','chTnv','`\x20is\x20present\x20in\x20region\x20`','ATSJb','QabqZ','../../utils/webSocketUtils','6EXCHRq','method','username','nVKkP','throwHttpErrors','ugTNG','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','body','Message:\x20','replace','dummy-grid','UKaxp','Vxtys','accessResp','Invalid\x20input.\x20grid\x20profiles:\x20','RuMEO','split','mXdET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','headers','.\x20Please\x20provide\x20all\x20required\x20arguments.','erCqm','options','error','Dotuc','duxNz','Ulczt','AXfgX','pre-check-failed','otyLK','QbVub','47367610WBRGZy','Status:\x20','mdFSm','4529105CCTNvt','.txt','desc','Browserstack','HwfTq','388396WeqhpG','code','Whitelisted\x20browserstack','`\x20already\x20exists','toHte','clusterName','zLjHa','will\x20be\x20created','OLxwm','forEach','qHMAm','Report\x20saved\x20in\x20','isCliToolInstalled','ySNVp','DfbkV','getUTCHours','SmJPs','region','118362NFisgF','qQzho','KtKxO','VWqNx','gayaq','ERROR','aaKpl','LOG','OFYDs','iCwAd','https://','SVSEi','got','Klepp','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','pre-check-grid-called','Setting\x20cloud\x20provider\x20as\x20','FNRZM','STHHd','bstackAccesskey','is\x20already\x20present','exit','stringify','string','yPRft','help','\x20\x20Stack:\x20','PhFsq','SjwtK','4|0|3|2|1','IUNMZ','status','12605736fsjsGq','Success','lLsBK','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','dhfuB','hGZrg','XoifU','../../utils/utilityMethods','ZkhHO','qUsSK','includes','PghwB','LAFsV','lnMiz','oeHxY','rGFoG','N/A','cloud-provider-not-supported','GET'];a17_0x4307=function(){return _0x447591;};return a17_0x4307();}async function inputValidation(_0xde968f,_0x5520b8){const _0x246bf7=a17_0x57656a,_0xddec1b={'ziIZh':_0x246bf7(0x167),'XrTrF':_0x246bf7(0x147),'khJns':_0x246bf7(0x18f),'vvyQm':_0x246bf7(0x16a),'jVtWi':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','dhfuB':_0x246bf7(0x103),'VPCHL':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','IPlfd':_0x246bf7(0x16c),'SvXOK':function(_0x44dcfb,_0x16251f){return _0x44dcfb+_0x16251f;},'gayaq':_0x246bf7(0x174),'mXGPU':_0x246bf7(0x110),'iBume':function(_0x33830c,_0x33bb7c){return _0x33830c||_0x33bb7c;},'toHte':'N/A','qHMAm':_0x246bf7(0xe5),'yxjyp':_0x246bf7(0x151),'ayFXT':_0x246bf7(0x18a),'REjLY':_0x246bf7(0x19b),'Liitl':_0x246bf7(0x1c4),'OiblY':_0x246bf7(0x130),'ySNVp':function(_0x649f89,_0x166233){return _0x649f89!==_0x166233;},'SpBdS':_0x246bf7(0x133),'AZSRr':_0x246bf7(0xf2),'XKVxf':_0x246bf7(0x16e),'dXDnW':function(_0x5b22db,_0x3d3d0b){return _0x5b22db===_0x3d3d0b;},'IUNMZ':_0x246bf7(0x1ae),'ATSJb':function(_0x30db87,_0x436402){return _0x30db87===_0x436402;},'KtKxO':_0x246bf7(0xfa),'Kkwtv':function(_0x244281,_0x421018){return _0x244281!==_0x421018;},'XoifU':_0x246bf7(0x1c5),'crgvP':function(_0x7d1e53,_0x4319c2){return _0x7d1e53>_0x4319c2;},'erCqm':_0x246bf7(0x10a),'JlYwF':_0x246bf7(0x175),'DfbkV':function(_0x3aa28a,_0x2680a5,_0x31b93c,_0x9c4e68,_0x3b44f5,_0x27b2c9,_0x536fed,_0x4a390b){return _0x3aa28a(_0x2680a5,_0x31b93c,_0x9c4e68,_0x3b44f5,_0x27b2c9,_0x536fed,_0x4a390b);},'chTnv':_0x246bf7(0x162),'QgMdN':'pre-check-cluster-args-not-passed','hQTcI':'fLBWC','hVGNQ':_0x246bf7(0x11e),'VWqNx':_0x246bf7(0xf9),'VjQEs':function(_0x184d2b,_0x414fd7,_0x4e9faf,_0x1b335f,_0x52ef13,_0x2b243d,_0x14cfdb,_0x32d78a){return _0x184d2b(_0x414fd7,_0x4e9faf,_0x1b335f,_0x52ef13,_0x2b243d,_0x14cfdb,_0x32d78a);},'zZmiH':_0x246bf7(0x184),'lvivj':_0x246bf7(0x181),'PgvWT':_0x246bf7(0x137),'PghwB':_0x246bf7(0x185),'PGbKw':function(_0x3ddd1c,_0x22cb56,_0xea34d1){return _0x3ddd1c(_0x22cb56,_0xea34d1);},'zxlKq':function(_0x52ca87,_0x59c69c,_0x1fdcbc,_0xe5347,_0x1aae01,_0x2d8b58){return _0x52ca87(_0x59c69c,_0x1fdcbc,_0xe5347,_0x1aae01,_0x2d8b58);},'QabqZ':'pre-check','Vxtys':_0x246bf7(0x1c0),'nVKkP':function(_0x4da287,_0x466a76){return _0x4da287===_0x466a76;},'gJJrP':_0x246bf7(0x1ca),'kOkWI':function(_0x4d3ebd,_0x2f7b21){return _0x4d3ebd(_0x2f7b21);},'WxgAo':_0x246bf7(0x1bb),'HCfPr':_0x246bf7(0x106),'VUqhI':function(_0x44207e,_0x82ea0a){return _0x44207e!==_0x82ea0a;},'iCwAd':_0x246bf7(0x128),'PQFZd':function(_0x3898c6,_0x2a7ed4){return _0x3898c6===_0x2a7ed4;},'SmJPs':_0x246bf7(0x134),'gLWUE':_0x246bf7(0xdf),'rGFoG':function(_0x11b652,_0x5e37cb){return _0x11b652===_0x5e37cb;},'lnMiz':_0x246bf7(0x1c8),'wvCew':_0x246bf7(0x15f),'aaKpl':'lWPHu','XZfXW':function(_0x32354c,_0x54ca51,_0xf24c9a,_0x3451b7,_0x1c6a44,_0x3f6a6c,_0x1f6479,_0xda7012){return _0x32354c(_0x54ca51,_0xf24c9a,_0x3451b7,_0x1c6a44,_0x3f6a6c,_0x1f6479,_0xda7012);}};let _0x3edac5;try{if(_0xddec1b[_0x246bf7(0x14d)](_0xddec1b[_0x246bf7(0xfb)],_0xddec1b[_0x246bf7(0x19a)])){if(_0xde968f['clusterName']||_0xde968f[_0x246bf7(0xf7)]||_0xde968f[_0x246bf7(0x151)]){if(_0xddec1b['ySNVp'](_0xddec1b[_0x246bf7(0xf1)],_0xddec1b[_0x246bf7(0xf1)]))_0x314172+=_0x246bf7(0x10e)+_0x437b4e[_0x246bf7(0x145)]+_0x246bf7(0x11f);else{const _0x5200ba=[];!_0xde968f[_0x246bf7(0x145)]&&(_0xddec1b[_0x246bf7(0x1b6)](_0xddec1b[_0x246bf7(0x171)],_0xddec1b[_0x246bf7(0x171)])?_0x5200ba[_0x246bf7(0xf4)](_0xddec1b[_0x246bf7(0xeb)]):_0x37df62+='Cluster\x20'+_0x13e77c[_0x246bf7(0x145)]+'\x20'+(_0x1d63eb?_0xddec1b['ziIZh']:_0xddec1b[_0x246bf7(0x1c6)])+'\x0a\x0a');;if(!_0xde968f[_0x246bf7(0xf7)]){if(_0xddec1b[_0x246bf7(0x116)](_0xddec1b[_0x246bf7(0x154)],_0xddec1b['KtKxO']))_0x5200ba[_0x246bf7(0xf4)](_0xddec1b[_0x246bf7(0xd3)]);else{const _0x4d0084={};_0x4d0084[_0x246bf7(0x18d)]=_0xddec1b[_0x246bf7(0x113)],_0x4d0084[_0x246bf7(0x1b0)]=_0xddec1b[_0x246bf7(0xd5)];const _0x4597ee={};_0x4597ee[_0x246bf7(0x18d)]=_0xddec1b[_0x246bf7(0x186)],_0x4597ee[_0x246bf7(0x1b0)]=_0xddec1b[_0x246bf7(0xd5)];const _0x229e52={};_0x229e52[_0x246bf7(0x18d)]=_0xddec1b[_0x246bf7(0x177)],_0x229e52[_0x246bf7(0x1b0)]=_0xddec1b[_0x246bf7(0xd5)];const _0x28f62e={};_0x28f62e['description']=_0xddec1b['VPCHL'],_0x28f62e['type']=_0xddec1b[_0x246bf7(0xd5)];const _0x331878={};return _0x331878[_0x246bf7(0x18a)]=_0x4d0084,_0x331878[_0x246bf7(0x19b)]=_0x4597ee,_0x331878[_0x246bf7(0x151)]=_0x229e52,_0x331878[_0x246bf7(0x1c0)]=_0x28f62e,_0x3cdd82[_0x246bf7(0xf6)](_0x19161d['pre_check'])['epilogue'](_0xc13207)[_0x246bf7(0x12f)](_0x331878)[_0x246bf7(0x16c)](_0xddec1b[_0x246bf7(0x10b)])[_0x246bf7(0x192)];}};if(!_0xde968f[_0x246bf7(0x151)]){if(_0xddec1b[_0x246bf7(0x1a0)](_0xddec1b[_0x246bf7(0x179)],_0xddec1b[_0x246bf7(0x179)])){const {header:_0x4ffcfd,response:_0x499ed2}=_0x5f4a29,{status:_0x52cd67,data:_0x4a0f08,error:_0x92c627}=_0x499ed2;_0x255891+=_0x4ffcfd+'\x20#'+_0xddec1b['SvXOK'](_0x5f4b8f,0x1)+'\x0a',_0x5ecf18+=_0x246bf7(0x139)+(_0x52cd67?_0xddec1b[_0x246bf7(0x156)]:_0xddec1b['mXGPU'])+'\x0a',_0x41ae1a+=_0x246bf7(0x121)+_0xddec1b['iBume'](_0x4a0f08,_0xddec1b[_0x246bf7(0x144)])+'\x0a',_0x92c627&&(_0x2a7aa1+=_0xddec1b[_0x246bf7(0x14a)],_0x5b0628+='\x20\x20Message:\x20'+(_0x92c627[_0x246bf7(0x199)]||_0xddec1b['toHte'])+'\x0a',_0x1dc4d+='\x20\x20Code:\x20'+(_0x92c627[_0x246bf7(0x141)]||_0xddec1b[_0x246bf7(0x144)])+'\x0a',_0x345265+=_0x246bf7(0x16d)+(_0x92c627[_0x246bf7(0x1c3)]||_0xddec1b[_0x246bf7(0x144)])+'\x0a'),_0x107519+='\x0a\x0a';}else _0x5200ba[_0x246bf7(0xf4)](_0xddec1b['yxjyp']);};_0xddec1b['crgvP'](_0x5200ba[_0x246bf7(0xf8)],0x0)&&(_0xddec1b[_0x246bf7(0x1b6)](_0xddec1b[_0x246bf7(0x12e)],_0xddec1b[_0x246bf7(0x18c)])?_0x3a3b0c=_0xdfda5b:(_0x3edac5=_0x246bf7(0x1a7)+_0x5200ba[_0x246bf7(0x1ad)](',\x20')+_0x246bf7(0x12d),await _0xddec1b['DfbkV'](reportToGalactusAndSendToEDS,_0xde968f,_0x5520b8,_0x3edac5,messageTypes[_0x246bf7(0x157)],_0xddec1b[_0x246bf7(0x114)],_0xddec1b[_0x246bf7(0x107)],_0xddec1b['OiblY']),logger[_0x246bf7(0x130)](_0x3edac5),process[_0x246bf7(0x168)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x246bf7(0x17d)](_0xde968f[_0x246bf7(0xf7)][_0x246bf7(0x1a5)]())&&(_0xddec1b['ySNVp'](_0xddec1b['hQTcI'],_0xddec1b['hVGNQ'])?(_0x3edac5=_0xddec1b[_0x246bf7(0x155)],await _0xddec1b[_0x246bf7(0x108)](reportToGalactusAndSendToEDS,_0xde968f,_0x5520b8,_0x3edac5,messageTypes[_0x246bf7(0x157)],_0xddec1b[_0x246bf7(0x114)],_0xddec1b[_0x246bf7(0x191)],_0xddec1b[_0x246bf7(0x105)]),logger[_0x246bf7(0x130)](_0x3edac5),!_0xde968f[_0x246bf7(0xf7)]&&(_0xddec1b[_0x246bf7(0x116)](_0xddec1b[_0x246bf7(0xe6)],_0xddec1b[_0x246bf7(0xe6)])?(logger[_0x246bf7(0xe4)](_0x246bf7(0x163)+DEFAULT_CLUSTER_DETAILS[_0x246bf7(0x19f)]+'\x20'),_0xde968f[_0x246bf7(0xf7)]=DEFAULT_CLUSTER_DETAILS[_0x246bf7(0x19f)]):_0x4164ee[_0x246bf7(0xf4)](_0xddec1b['yxjyp']))):_0x30e6cc[_0x246bf7(0xf4)](_0xddec1b[_0x246bf7(0xeb)])),global_registry[_0x246bf7(0x145)]=_0xde968f[_0x246bf7(0x145)],global_registry[_0x246bf7(0xf7)]=_0xde968f[_0x246bf7(0xf7)],global_registry['clusterRegion']=_0xde968f[_0x246bf7(0x151)];}}else{if(_0xde968f[_0x246bf7(0x187)]){if(_0xddec1b[_0x246bf7(0x14d)](_0xddec1b[_0x246bf7(0xf0)],_0xddec1b[_0x246bf7(0xf0)]))_0x51215a['push'](_0xddec1b[_0x246bf7(0xd3)]);else{global_registry[_0x246bf7(0x187)]=_0xde968f[_0x246bf7(0x187)],logger[_0x246bf7(0xd7)](_0x246bf7(0x1bd)+_0xde968f[_0x246bf7(0x187)]);const _0x59f686=_0x246bf7(0x15c)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x1a936b={};_0x1a936b[_0x246bf7(0x11a)]=_0xddec1b[_0x246bf7(0x17e)],_0x1a936b[_0x246bf7(0x12c)]=global_registry['authHeader'],_0x1a936b[_0x246bf7(0x11d)]=![];const _0x499766=_0x1a936b,_0x4226a8=await _0xddec1b[_0x246bf7(0x189)](got,_0x59f686,_0x499766),_0x2fa956=await _0xddec1b[_0x246bf7(0xfe)](responseValidation,_0x4226a8,_0xddec1b[_0x246bf7(0x117)],_0xddec1b[_0x246bf7(0x125)],_0xde968f,_0x5520b8);let _0x1ac60c={};if(_0xddec1b['nVKkP'](_0x2fa956,0xc8)){if(_0xddec1b[_0x246bf7(0x1b6)](_0xddec1b['gJJrP'],_0xddec1b['gJJrP'])){const _0x265050=JSON[_0x246bf7(0x19d)](_0x4226a8[_0x246bf7(0x120)]),_0x1fb3e0=_0x265050[_0x246bf7(0x188)](_0x26b85d=>_0x26b85d[_0x246bf7(0xe1)]===_0xde968f[_0x246bf7(0x187)])||null;_0xddec1b['kOkWI'](isUndefined,_0x1fb3e0)?_0xddec1b[_0x246bf7(0x1a0)](_0xddec1b[_0x246bf7(0x195)],_0xddec1b[_0x246bf7(0x195)])?(_0x28605f[_0x246bf7(0xe4)](_0x246bf7(0x163)+_0x5aed41[_0x246bf7(0x19f)]+'\x20'),_0x12a208[_0x246bf7(0xf7)]=_0x114a3d['CLOUD_PROVIDER']):(_0x3edac5=_0x246bf7(0x127)+_0xde968f['gridProfile']+_0x246bf7(0xe9),await _0xddec1b[_0x246bf7(0x14e)](reportToGalactusAndSendToEDS,_0xde968f,_0x5520b8,_0x3edac5,messageTypes['ERROR'],_0xddec1b[_0x246bf7(0x114)],_0xddec1b[_0x246bf7(0x1ab)],_0xddec1b[_0x246bf7(0x105)]),logger[_0x246bf7(0x130)](_0x3edac5),process[_0x246bf7(0x168)](0x1)):_0xddec1b['VUqhI'](_0xddec1b['iCwAd'],_0xddec1b[_0x246bf7(0x15b)])?_0x1e814f[_0x246bf7(0xe4)](_0x246bf7(0x112)+_0x41d40e[_0x246bf7(0x145)]+_0x246bf7(0x143)):_0x1ac60c=_0x1fb3e0;}else _0x439f4f[_0x246bf7(0x130)](_0xddec1b[_0x246bf7(0x19e)]),_0x3fcf11[_0x246bf7(0x168)](0x1);}else _0xddec1b[_0x246bf7(0xec)](_0xddec1b[_0x246bf7(0x150)],_0xddec1b['SmJPs'])?process[_0x246bf7(0x168)](0x1):(_0x595f59[_0x246bf7(0xe4)]('['+_0x31af48+_0x246bf7(0xfd)+_0x1cbc60[_0x246bf7(0x172)]+'\x20data\x20:\x20'+_0x2a786b['data']+_0x246bf7(0x197)+_0x97c2ee[_0x246bf7(0x130)]),_0x22829f['error']&&_0x15135a['error'](_0x246bf7(0x1a1)+_0x305960['error'][_0x246bf7(0x1c3)]));const _0x3c5c74={};_0x3c5c74['type']=WS_EVENTS[_0x246bf7(0x159)],_0x3c5c74[_0x246bf7(0x199)]=_0xddec1b[_0x246bf7(0xd9)],webSocketUtils['sendEventToBackend'](_0x5520b8,_0x3c5c74),global_registry['cloudProvider']=_0x1ac60c[_0x246bf7(0xf7)],global_registry['clusterRegion']=_0x1ac60c[_0x246bf7(0x151)],global_registry[_0x246bf7(0x145)]=_0x1ac60c[_0x246bf7(0x145)];}}else _0xddec1b[_0x246bf7(0x182)](_0xddec1b[_0x246bf7(0x180)],_0xddec1b['lnMiz'])?(logger[_0x246bf7(0x130)](_0xddec1b[_0x246bf7(0x19e)]),process[_0x246bf7(0x168)](0x1)):_0x9083cb[_0x246bf7(0x168)](0x1);}}else{const _0x3356fb={};_0x3356fb[_0x246bf7(0x1b0)]=_0x3a3b3a[_0x246bf7(0x159)],_0x3356fb[_0x246bf7(0x199)]=_0x592cfd,_0x35d325['sendEventToBackend'](_0xfe7562,_0x3356fb,_0xddec1b[_0x246bf7(0x105)],!![]);}}catch(_0x390471){_0xddec1b[_0x246bf7(0x11c)](_0xddec1b['wvCew'],_0xddec1b[_0x246bf7(0x158)])?(_0x578c3+=_0xddec1b[_0x246bf7(0x14a)],_0x2b9ab1+=_0x246bf7(0x1b3)+(_0x1cb897[_0x246bf7(0x199)]||_0xddec1b[_0x246bf7(0x144)])+'\x0a',_0x3dbd2f+=_0x246bf7(0x18e)+(_0x43cc63[_0x246bf7(0x141)]||_0xddec1b[_0x246bf7(0x144)])+'\x0a',_0x40c4fb+=_0x246bf7(0x16d)+(_0x5bc1dc[_0x246bf7(0x1c3)]||_0xddec1b['toHte'])+'\x0a'):(_0x3edac5=_0x246bf7(0x161)+_0x390471+':\x20'+_0x390471[_0x246bf7(0x1c3)],logger[_0x246bf7(0x130)](_0x3edac5),await _0xddec1b[_0x246bf7(0xfc)](reportToGalactusAndSendToEDS,_0xde968f,_0x5520b8,_0x3edac5,messageTypes[_0x246bf7(0x157)],_0xddec1b['chTnv'],_0xddec1b[_0x246bf7(0x191)],_0xddec1b[_0x246bf7(0x105)]),process[_0x246bf7(0x168)](0x1));}}function printResponse(_0x4662ce,_0x3f0ae8){const _0x5cd263=a17_0x57656a,_0x36f702={};_0x36f702[_0x5cd263(0x136)]=function(_0x255139,_0x56dc21){return _0x255139===_0x56dc21;},_0x36f702[_0x5cd263(0xe2)]='hKMXi',_0x36f702[_0x5cd263(0xdb)]=_0x5cd263(0x164);const _0x31bc35=_0x36f702;logger[_0x5cd263(0xe4)]('['+_0x4662ce+']\x20status\x20:\x20'+_0x3f0ae8[_0x5cd263(0x172)]+'\x20data\x20:\x20'+_0x3f0ae8[_0x5cd263(0x1c9)]+'\x20error\x20:\x20'+_0x3f0ae8[_0x5cd263(0x130)]),_0x3f0ae8[_0x5cd263(0x130)]&&(_0x31bc35['otyLK'](_0x31bc35[_0x5cd263(0xe2)],_0x31bc35['rTckv'])?_0x36532d['error'](_0x5cd263(0x1a1)+_0x1a348d[_0x5cd263(0x130)][_0x5cd263(0x1c3)]):logger[_0x5cd263(0x130)](_0x5cd263(0x1a1)+_0x3f0ae8[_0x5cd263(0x130)][_0x5cd263(0x1c3)]));}async function generateReport(_0x5246de,_0x145dac){const _0x52c7a4=a17_0x57656a,_0x199032={'LAFsV':function(_0x49589d,_0x5e2155){return _0x49589d+_0x5e2155;},'pItvC':_0x52c7a4(0x174),'vsaAi':_0x52c7a4(0x110),'GgmKi':function(_0x9ec8f1,_0x4446ce){return _0x9ec8f1||_0x4446ce;},'HwfTq':_0x52c7a4(0x183),'zLjHa':_0x52c7a4(0xe5),'HhdVY':'Cluster\x20details\x0a-----------------------\x0a','DggFk':function(_0xf53b1b,_0x5146db){return _0xf53b1b!=_0x5146db;},'Didvk':_0x52c7a4(0x167),'CwrdZ':'will\x20be\x20created','SjwtK':function(_0x47307d){return _0x47307d();}};let _0x7e8aa=_0x52c7a4(0x198)+global_registry[_0x52c7a4(0xf7)]+'\x20===\x0a\x0a';return _0x5246de[_0x52c7a4(0x149)]((_0x305dea,_0x523639)=>{const _0x39ae32=_0x52c7a4,{header:_0xd095b,response:_0x2b743f}=_0x305dea,{status:_0x5a5eab,data:_0x8c720e,error:_0x24f53c}=_0x2b743f;_0x7e8aa+=_0xd095b+'\x20#'+_0x199032[_0x39ae32(0x17f)](_0x523639,0x1)+'\x0a',_0x7e8aa+='Status:\x20'+(_0x5a5eab?_0x199032['pItvC']:_0x199032['vsaAi'])+'\x0a',_0x7e8aa+='Message:\x20'+_0x199032['GgmKi'](_0x8c720e,_0x199032[_0x39ae32(0x13f)])+'\x0a',_0x24f53c&&(_0x7e8aa+=_0x199032[_0x39ae32(0x146)],_0x7e8aa+=_0x39ae32(0x1b3)+(_0x24f53c[_0x39ae32(0x199)]||_0x199032[_0x39ae32(0x13f)])+'\x0a',_0x7e8aa+=_0x39ae32(0x18e)+(_0x24f53c[_0x39ae32(0x141)]||_0x199032[_0x39ae32(0x13f)])+'\x0a',_0x7e8aa+=_0x39ae32(0x16d)+(_0x24f53c[_0x39ae32(0x1c3)]||_0x199032[_0x39ae32(0x13f)])+'\x0a'),_0x7e8aa+='\x0a\x0a';}),_0x7e8aa+=_0x199032['HhdVY'],_0x199032[_0x52c7a4(0x1c2)](_0x145dac,null)?_0x7e8aa+=_0x52c7a4(0x10e)+global_registry[_0x52c7a4(0x145)]+'\x20'+(_0x145dac?_0x199032[_0x52c7a4(0x1a6)]:_0x199032['CwrdZ'])+'\x0a\x0a':_0x7e8aa+=_0x52c7a4(0x10e)+global_registry['clusterName']+_0x52c7a4(0x11f),_0x7e8aa+=_0x199032[_0x52c7a4(0x16f)](getSystemMetaData),_0x7e8aa;};exports[a17_0x57656a(0xef)]=async function(_0x510342){const _0x201c6f=a17_0x57656a,_0x310f7e={'URcjt':function(_0xdafe3e){return _0xdafe3e();},'QAapC':function(_0x3f3566){return _0x3f3566();},'tEOEX':_0x201c6f(0x12b),'gBeqa':function(_0x427634,_0x5ea166,_0x3dc9de,_0x3b9529,_0x57d062,_0x23f456,_0x3e763f,_0x1edd41){return _0x427634(_0x5ea166,_0x3dc9de,_0x3b9529,_0x57d062,_0x23f456,_0x3e763f,_0x1edd41);},'BVWey':_0x201c6f(0x162),'SVSEi':_0x201c6f(0x101),'aDYZL':'error','zjXJD':function(_0x4a1280,_0x20458b,_0xe45b46,_0x8faeb8,_0x5bab83,_0x228528,_0x21fc31){return _0x4a1280(_0x20458b,_0xe45b46,_0x8faeb8,_0x5bab83,_0x228528,_0x21fc31);},'hGZrg':'<UsernamePlaceholder>','UKaxp':_0x201c6f(0x10f),'Dotuc':function(_0x50bf21,_0x3f49c1,_0xd3b37a){return _0x50bf21(_0x3f49c1,_0xd3b37a);},'WBVpm':function(_0x3542cc,_0x4b96c6,_0x461d03){return _0x3542cc(_0x4b96c6,_0x461d03);},'duxNz':_0x201c6f(0x123),'apTYU':function(_0x516b71,_0x508cd4,_0x1e4092){return _0x516b71(_0x508cd4,_0x1e4092);},'imSuN':_0x201c6f(0xd8),'ivWhj':_0x201c6f(0x170),'KCVKt':function(_0x50aeeb,_0xc09041,_0x80023a,_0x1d792c,_0x4e461c,_0x5d1b6b,_0x5e20c6,_0x543b3a){return _0x50aeeb(_0xc09041,_0x80023a,_0x1d792c,_0x4e461c,_0x5d1b6b,_0x5e20c6,_0x543b3a);},'mXdET':_0x201c6f(0x126),'WUmRl':function(_0x3f361d){return _0x3f361d();},'ZkhHO':function(_0x24712a,_0x1fc8b2,_0x149da7){return _0x24712a(_0x1fc8b2,_0x149da7);},'mdFSm':'isTrialGridAccessible','QDdxB':function(_0xbb6d72,_0x334043){return _0xbb6d72(_0x334043);},'XslXP':_0x201c6f(0x1b5),'STHHd':_0x201c6f(0xf3),'qUsSK':_0x201c6f(0x104),'qQzho':'User\x20Access','OFYDs':_0x201c6f(0x142),'fdXRA':'SSL\x20Configured','EktzG':function(_0x1a2d99,_0x7af77e,_0x1b8c0a){return _0x1a2d99(_0x7af77e,_0x1b8c0a);},'GgtnB':function(_0x3d7d2c,_0x56f5ec){return _0x3d7d2c+_0x56f5ec;},'xhNOl':_0x201c6f(0x1cb),'jhZiQ':_0x201c6f(0x135)};let _0x9fd395,_0x22cc8f;try{global_registry['requestId']=_0x310f7e['URcjt'](uuidv4);!fs[_0x201c6f(0xe3)](_0x310f7e[_0x201c6f(0xdc)](getCredentialsPath))&&(_0x22cc8f=_0x310f7e['tEOEX'],logger['error'](_0x22cc8f),await _0x310f7e[_0x201c6f(0x19c)](reportToGalactusAndSendToEDS,_0x510342,_0x9fd395,_0x22cc8f,messageTypes[_0x201c6f(0x157)],_0x310f7e['BVWey'],_0x310f7e[_0x201c6f(0x15d)],_0x310f7e[_0x201c6f(0x10d)]),process[_0x201c6f(0x168)](0x1));_0x310f7e[_0x201c6f(0x1a8)](sendInstrumentationEvent,_0x510342,_0x310f7e['BVWey'],messageTypes[_0x201c6f(0x109)],null,null,_0x510342);const _0x3c9d84=JSON['parse'](fs[_0x201c6f(0x1b8)](_0x310f7e['URcjt'](getCredentialsPath)));global_registry['bstackUsername']=_0x3c9d84[_0x201c6f(0x13e)][_0x201c6f(0x11b)],global_registry[_0x201c6f(0x166)]=_0x3c9d84[_0x201c6f(0x13e)][_0x201c6f(0x1a3)];const _0x52b237=WS_ENDPOINT[_0x201c6f(0x122)](_0x310f7e[_0x201c6f(0x178)],_0x3c9d84[_0x201c6f(0x13e)][_0x201c6f(0x11b)])[_0x201c6f(0x122)](_0x310f7e[_0x201c6f(0x124)],_0x3c9d84[_0x201c6f(0x13e)][_0x201c6f(0x1a3)]),_0x7478b9={};_0x7478b9[_0x201c6f(0x1b1)]=ws,_0x7478b9[_0x201c6f(0x194)]=0x36ee80,_0x9fd395=new ReconnectingWebSocket(_0x52b237,[],_0x7478b9),global_registry['authHeader']=_0x310f7e['Dotuc'](getAuthHeader,global_registry[_0x201c6f(0x193)],global_registry['bstackAccesskey']),await _0x310f7e[_0x201c6f(0x1a4)](inputValidation,_0x510342,_0x9fd395),logger[_0x201c6f(0xe4)](_0x201c6f(0x160)+global_registry[_0x201c6f(0xf7)]+'\x20region\x20-\x20'+global_registry[_0x201c6f(0x196)]);let _0x5ef4f4=await _0x310f7e[_0x201c6f(0x1a8)](getCloudProviderObjectWithOutInit,global_registry[_0x201c6f(0xf7)],global_registry[_0x201c6f(0x145)],_0x310f7e[_0x201c6f(0x132)],_0x9fd395,webSocketUtils,_0x510342);const _0xfa6736=await _0x5ef4f4[_0x201c6f(0x14c)]();_0x310f7e[_0x201c6f(0x1aa)](printResponse,_0x310f7e['imSuN'],_0xfa6736),_0x5ef4f4=await _0x5ef4f4[_0x201c6f(0x102)]();let _0x1ff528=![];try{_0x1ff528=await _0x5ef4f4['isClusterPresent']();}catch(_0x4ee683){const _0x43b9cf=_0x310f7e['ivWhj'][_0x201c6f(0x129)]('|');let _0x2bf9f1=0x0;while(!![]){switch(_0x43b9cf[_0x2bf9f1++]){case'0':_0x1ff528=null;continue;case'1':await _0x310f7e[_0x201c6f(0xdd)](reportToGalactusAndSendToEDS,_0x510342,_0x9fd395,_0x22cc8f,messageTypes['ERROR'],_0x310f7e[_0x201c6f(0x1bc)],'cluster-check-failed-'+global_registry[_0x201c6f(0xf7)],_0x310f7e[_0x201c6f(0x10d)]);continue;case'2':_0x22cc8f+='\x0a'+JSON[_0x201c6f(0x169)](_0x4ee683[_0x201c6f(0x1c3)]);continue;case'3':logger[_0x201c6f(0x130)](_0x22cc8f);continue;case'4':_0x22cc8f=_0x201c6f(0x111)+global_registry['clusterName']+_0x201c6f(0x115)+global_registry[_0x201c6f(0x196)]+_0x201c6f(0x1a2)+_0x4ee683;continue;}break;}}_0x1ff528&&logger[_0x201c6f(0xe4)]('Cluster\x20`'+global_registry[_0x201c6f(0x145)]+_0x201c6f(0x143));const _0x4c513f=await _0x5ef4f4[_0x201c6f(0xe8)]();_0x310f7e[_0x201c6f(0x131)](printResponse,_0x310f7e[_0x201c6f(0x12a)],_0x4c513f);const _0xb1a96b=await _0x310f7e[_0x201c6f(0x1b9)](curlRequest);_0x310f7e[_0x201c6f(0x17b)](printResponse,_0x310f7e[_0x201c6f(0x13a)],_0xb1a96b);const _0x2754b1=await _0x310f7e['QDdxB'](isTlsSupported,_0x310f7e['XslXP']);_0x310f7e[_0x201c6f(0x1a4)](printResponse,_0x310f7e[_0x201c6f(0x165)],_0x2754b1);const _0x83637d={};_0x83637d['header']=_0x310f7e[_0x201c6f(0x17c)],_0x83637d[_0x201c6f(0xea)]=_0xfa6736;const _0x4def2d={};_0x4def2d['header']=_0x310f7e[_0x201c6f(0x153)],_0x4def2d[_0x201c6f(0xea)]=_0x4c513f;const _0x2eaad5={};_0x2eaad5[_0x201c6f(0xe7)]=_0x310f7e[_0x201c6f(0x15a)],_0x2eaad5['response']=_0xb1a96b;const _0x329540={};_0x329540[_0x201c6f(0xe7)]=_0x310f7e['fdXRA'],_0x329540[_0x201c6f(0xea)]=_0x2754b1;const _0x390d49=[_0x83637d,_0x4def2d,_0x2eaad5,_0x329540],_0x4718c3=await _0x310f7e['EktzG'](generateReport,_0x390d49,_0x1ff528),_0x3120a9=new Date(),_0x11f341=_0x3120a9['getUTCFullYear']()+'_'+_0x310f7e[_0x201c6f(0x1bf)](_0x3120a9['getUTCMonth'](),0x1)+'_'+_0x3120a9[_0x201c6f(0x1b2)]()+'_'+_0x3120a9[_0x201c6f(0x14f)]()+'_'+_0x3120a9[_0x201c6f(0xee)](),_0x13e5c0=_0x201c6f(0x1be)+_0x11f341+_0x201c6f(0x13c);fs['writeFileSync'](_0x13e5c0,_0x4718c3,_0x310f7e['xhNOl']),logger['info'](_0x201c6f(0x14b)+_0x13e5c0),process['exit'](0x0);}catch(_0x34cec1){let _0x16e304=_0x201c6f(0xde)+_0x34cec1+'\x20';logger[_0x201c6f(0x130)](_0x16e304),_0x16e304+='\x0a'+JSON[_0x201c6f(0x169)](_0x34cec1[_0x201c6f(0x1c3)]),logger[_0x201c6f(0xd7)](_0x201c6f(0x1c1)+_0x34cec1[_0x201c6f(0x1c3)]);if(_0x9fd395){const _0x17c6fd={};_0x17c6fd[_0x201c6f(0x1b0)]=WS_EVENTS[_0x201c6f(0x159)],_0x17c6fd[_0x201c6f(0x199)]=_0x16e304,webSocketUtils[_0x201c6f(0x190)](_0x9fd395,_0x17c6fd,_0x310f7e[_0x201c6f(0x10d)],!![]);}await webSocketUtils[_0x201c6f(0xd6)](0x7d0);const _0x5408f2={};_0x5408f2[_0x201c6f(0x130)]=_0x16e304,await _0x310f7e['zjXJD'](sendInstrumentationEvent,_0x510342,_0x310f7e[_0x201c6f(0x1bc)],messageTypes[_0x201c6f(0x157)],_0x310f7e['jhZiQ'],_0x5408f2,_0x510342),process[_0x201c6f(0x168)](0x1);}};
1
+ const a17_0x49dcda=a17_0x3673;(function(_0x469a05,_0x5221d8){const _0x5919b3=a17_0x3673,_0x55466e=_0x469a05();while(!![]){try{const _0x105588=parseInt(_0x5919b3(0x128))/0x1+-parseInt(_0x5919b3(0x14b))/0x2*(parseInt(_0x5919b3(0xe6))/0x3)+parseInt(_0x5919b3(0x154))/0x4+-parseInt(_0x5919b3(0xf7))/0x5*(-parseInt(_0x5919b3(0x118))/0x6)+parseInt(_0x5919b3(0x8d))/0x7*(-parseInt(_0x5919b3(0xb4))/0x8)+parseInt(_0x5919b3(0xaa))/0x9+-parseInt(_0x5919b3(0xa2))/0xa;if(_0x105588===_0x5221d8)break;else _0x55466e['push'](_0x55466e['shift']());}catch(_0x918cc6){_0x55466e['push'](_0x55466e['shift']());}}}(a17_0xa364,0x9bd63));function a17_0xa364(){const _0x45ecf1=['split','body','YEocK','LCUao','Invalid\x20input.\x20grid\x20profiles:\x20','Error\x20Details:\x0a','BlHSE','kvGqY','KTbNQ','1218FMGpZT','pre-check-grid-profile-empty','Cluster\x20','qQHur','tkCxY','HKreq','CXqWN','\x20error\x20:\x20','tiGiY','2578636bgotLy','error\x20stack\x20:\x20','bqcSY','stringify','uuid','code','bstackUsername','UqNKg','pIeUX','push','cluster-name','fOKwJ','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','toLowerCase','OsQxg','pre-check-grid-called','isCliToolInstalled','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Cluster\x20`','zvBeF',']\x20status\x20:\x20','find','\x20\x20Message:\x20','ZGZHH','uHsUf','pOBcy','parse','replace','Bouwf','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Pre-check\x20running\x20for\x20Cloud\x20-\x20','\x20\x20Stack:\x20','VOhaR','sendEventToBackend','Jzrxo','GET','type','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','data','jFTVP','DIBjP','lyVUY','../../utils/utilityMethods','is\x20already\x20present','JoUHa','SSL\x20Configured','header','pre-check-cluster-args-not-passed','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jMZjn','pre_check','help','OOINr','\x20===\x0a\x0a','edgEu','PCdgy','jZKCZ','\x20data\x20:\x20','kcajw','22330tiugKp','readFileSync','authHeader','cloud-provider','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','bkVxm','.\x20Please\x20provide\x20all\x20required\x20arguments.','otFRe','jeCws','HGBwd','RooXZ','WYJaE','argv','ZaTYc','options','icrKk','writeFileSync','Browserstack','<UsernamePlaceholder>','unable\x20to\x20verify\x20if\x20cluster\x20`','https://','29049810LMJRmH','Jjgrv','VHQjj','ucNIG','GwxbP','Missing\x20required\x20arguments:\x20','User\x20Access','info','9086490Zfceuq','status','QTNrl','clusterName','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','tKAQr','hobaq','checkAccess','isClusterPresent','../../utils/instrumentationUtils','376REohib','ESuSK','===\x20Precheck\x20Report\x20-\x20','join','Status:\x20','qCHqg','clusterRegion','vehWF','getUTCHours','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','nKKso','koOST','\x20\x20Code:\x20','Setting\x20cloud\x20provider\x20as\x20','exit','N/A','Kqvlp','CQCGD','bmbHP','UVsxx','response','will\x20be\x20created','`\x20is\x20present\x20in\x20region\x20`','qpfZw','got','accessResp','method','dummy-grid','uBdZh','FuYlt','yiPvg','HRUol','fbgzv','SItBM','HSFbt','pre-check-failed','IWdte','includes','chnIe','Muynt','region','kwYFr','name','rIuwK','bUvGR','mjsRp','rbyYU','Failed\x20in\x20pre-check!\x20Error:\x20','usage','xfeXt','507pDTOQM','NPGxH','getUTCMonth','error','description','FCWOv','delay','username','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','ERROR','xynqa','LGTNz','`\x20already\x20exists','DrHWg','epilogue','Message:\x20','HDngG','155RkRspY','message','yzpoN','isTrialGridAccessible','debug','LOG','../../config/constants','bstackAccesskey','requestId','hIJjK','tEWYY','cluster-check-failed-','DPvpS','pNQIL','reconnecting-websocket','SsPOo','Whitelisted\x20browserstack','grid\x20profile\x20flow\x20','opiaF','JGfjW','Failure','nBhci','kCwzH','command','oBKaK','CLOUD_PROVIDER','wckBT','IMRax','.txt','KgxsO','../../cloudproviders/utils','INFO','aUmRI','174060ATLsUd','grid','oubYE','\x20region\x20-\x20','SxRuH','EgaqL','string','gvrQE','headers','Success','stack','PUXmk','Fqvby','TLSv1_2_client_method','Ylbvi','/packages/cli/get-all-grid-profiles','1242560vKuXjs','yPhQK','init','bDPhI','zpeYK','XVaeH','password','kQkIy','connectionTimeout','KPUWC','NYsKU','vOPzG','DkrFr','<PasswordPlaceholder>','buheW','NjLal','kPEkE','forEach','Report\x20saved\x20in\x20','DqkTa','FnqXe','gridProfile','AUIwN','cloudProvider','credential-not-found','LfbRr'];a17_0xa364=function(){return _0x45ecf1;};return a17_0xa364();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x49dcda(0xcc)),{v4:uuidv4}=require(a17_0x49dcda(0x158)),ReconnectingWebSocket=require(a17_0x49dcda(0x105)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x49dcda(0x17e)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x49dcda(0xfd)),{getCloudProviderObjectWithOutInit}=require(a17_0x49dcda(0x115)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x49dcda(0xb3));exports[a17_0x49dcda(0x10e)]=a17_0x49dcda(0x119),exports['desc']=a17_0x49dcda(0x179),exports['builder']=function(_0x5d1962){const _0x5829d7=a17_0x49dcda,_0x55f1bf={};_0x55f1bf[_0x5829d7(0x12f)]=_0x5829d7(0xbd),_0x55f1bf[_0x5829d7(0x14a)]=_0x5829d7(0x11e),_0x55f1bf[_0x5829d7(0x138)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x55f1bf[_0x5829d7(0xd1)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x55f1bf[_0x5829d7(0x106)]=_0x5829d7(0x165),_0x55f1bf[_0x5829d7(0x156)]='help';const _0x5b61d2=_0x55f1bf,_0x389e97={};_0x389e97['description']=_0x5b61d2[_0x5829d7(0x12f)],_0x389e97[_0x5829d7(0x178)]=_0x5b61d2[_0x5829d7(0x14a)];const _0x5aa9ab={};_0x5aa9ab[_0x5829d7(0xea)]=_0x5b61d2[_0x5829d7(0x138)],_0x5aa9ab[_0x5829d7(0x178)]=_0x5b61d2[_0x5829d7(0x14a)];const _0x4a3dcf={};_0x4a3dcf[_0x5829d7(0xea)]=_0x5b61d2[_0x5829d7(0xd1)],_0x4a3dcf[_0x5829d7(0x178)]=_0x5b61d2[_0x5829d7(0x14a)];const _0x50a8b0={};_0x50a8b0[_0x5829d7(0xea)]=_0x5b61d2['SsPOo'],_0x50a8b0[_0x5829d7(0x178)]=_0x5b61d2['KTbNQ'];const _0x5cdb76={};return _0x5cdb76[_0x5829d7(0x15e)]=_0x389e97,_0x5cdb76[_0x5829d7(0x90)]=_0x5aa9ab,_0x5cdb76[_0x5829d7(0xdc)]=_0x4a3dcf,_0x5cdb76['grid-profile']=_0x50a8b0,_0x5d1962[_0x5829d7(0xe4)](HELP_HEADER_MESSAGE[_0x5829d7(0x187)])[_0x5829d7(0xf4)](HELP_FOOTER_MESSAGE)['options'](_0x5cdb76)[_0x5829d7(0x188)](_0x5b61d2[_0x5829d7(0x156)])[_0x5829d7(0x99)];};function a17_0x3673(_0x1ace3d,_0x2f90fe){const _0xa36440=a17_0xa364();return a17_0x3673=function(_0x367392,_0x56e1eb){_0x367392=_0x367392-0x87;let _0x36877e=_0xa36440[_0x367392];return _0x36877e;},a17_0x3673(_0x1ace3d,_0x2f90fe);}async function inputValidation(_0xa9bf7d,_0xc532aa){const _0x1b1ee6=a17_0x49dcda,_0x18406f={'yzpoN':'cloud-provider','lyVUY':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','oBKaK':'Error\x20Details:\x0a','GwxbP':'N/A','aUmRI':_0x1b1ee6(0x15e),'wLbYa':function(_0x214c2b,_0x5cb39d){return _0x214c2b+_0x5cb39d;},'DrHWg':_0x1b1ee6(0x121),'uHsUf':_0x1b1ee6(0x10b),'eyfzA':function(_0x241a1d,_0x39269d){return _0x241a1d||_0x39269d;},'IMRax':_0x1b1ee6(0xe9),'jeCws':_0x1b1ee6(0xbd),'UVsxx':_0x1b1ee6(0x11e),'rIuwK':_0x1b1ee6(0x160),'CMpXt':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','otFRe':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','NPGxH':_0x1b1ee6(0x188),'rbyYU':_0x1b1ee6(0x17f),'tkCxY':_0x1b1ee6(0xc9),'ucNIG':function(_0x2ec604,_0x49dc4e){return _0x2ec604!==_0x49dc4e;},'jMZjn':_0x1b1ee6(0x100),'DPvpS':function(_0x1750f5,_0x5135c9){return _0x1750f5===_0x5135c9;},'Bouwf':'tRLRY','tEWYY':'Rumzq','Jzrxo':_0x1b1ee6(0x92),'ECPDU':function(_0x1f5d78,_0x2787c7){return _0x1f5d78!==_0x2787c7;},'dgyZF':_0x1b1ee6(0x12b),'kwYFr':_0x1b1ee6(0x13e),'OOINr':function(_0x3a85ac,_0x44baaa){return _0x3a85ac!==_0x44baaa;},'DIBjP':'ElCnr','tiGiY':'efAEZ','uluHA':_0x1b1ee6(0xdc),'nKKso':function(_0x49530f,_0x126564){return _0x49530f>_0x126564;},'pOBcy':function(_0x469cfe,_0x144eab){return _0x469cfe===_0x144eab;},'mjsRp':_0x1b1ee6(0x10d),'jZKCZ':'dmtcw','jFTVP':function(_0x56daad,_0x5c3bc2,_0x4aa7ca,_0x2aca39,_0x39dff3,_0x3e067c,_0x4413c8,_0x2eebf9){return _0x56daad(_0x5c3bc2,_0x4aa7ca,_0x2aca39,_0x39dff3,_0x3e067c,_0x4413c8,_0x2eebf9);},'LGTNz':'pre-check-grid-called','IWdte':_0x1b1ee6(0x183),'VHQjj':function(_0x44397d,_0x5b415a){return _0x44397d!==_0x5b415a;},'Ykgid':_0x1b1ee6(0x141),'glPrF':_0x1b1ee6(0xd6),'vrOsi':_0x1b1ee6(0xae),'JGfjW':function(_0x1c3e12,_0x5a20b8,_0x442d55,_0x7c7c5c,_0x50c8b0,_0x33f1a0,_0x40a38c,_0x27a585){return _0x1c3e12(_0x5a20b8,_0x442d55,_0x7c7c5c,_0x50c8b0,_0x33f1a0,_0x40a38c,_0x27a585);},'RooXZ':'cloud-provider-not-supported','zvBeF':_0x1b1ee6(0x124),'ZEWOt':_0x1b1ee6(0x12d),'SxRuH':_0x1b1ee6(0x11f),'DqkTa':_0x1b1ee6(0x89),'fbgzv':_0x1b1ee6(0x177),'KPUWC':function(_0x415652,_0x130d17,_0x560a2d){return _0x415652(_0x130d17,_0x560a2d);},'ZGZHH':function(_0x4b6293,_0x560e6f,_0x2135ba,_0x1b3ab4,_0x2dce79,_0x2af969){return _0x4b6293(_0x560e6f,_0x2135ba,_0x1b3ab4,_0x2dce79,_0x2af969);},'edgEu':'pre-check','koOST':'grid-profile','Ylbvi':function(_0x48d59b,_0x40a1d2){return _0x48d59b===_0x40a1d2;},'ESuSK':'jJoGE','NYsKU':function(_0x5bd9a2,_0x9b38ec){return _0x5bd9a2(_0x9b38ec);},'JoUHa':_0x1b1ee6(0xbb),'HDngG':_0x1b1ee6(0x14c),'QyTnc':function(_0x1633c8,_0x1bc04c){return _0x1633c8!==_0x1bc04c;},'xynqa':'CEblb','buheW':_0x1b1ee6(0x162),'ZaTYc':_0x1b1ee6(0x13c),'qpfZw':'Grid\x20profile\x20fetched\x20for\x20pre-check','kvGqY':function(_0x3d643b,_0xb64e53){return _0x3d643b!==_0xb64e53;},'yPhQK':_0x1b1ee6(0xc5),'kcajw':function(_0x58dea1,_0x16c00c){return _0x58dea1!==_0x16c00c;},'zpeYK':_0x1b1ee6(0x15c),'izasR':_0x1b1ee6(0x144)};let _0x1b38c8;try{if(_0x18406f['ucNIG'](_0x18406f[_0x1b1ee6(0x186)],_0x18406f[_0x1b1ee6(0x186)]))_0xc505b8[_0x1b1ee6(0xa9)](_0x1b1ee6(0xc1)+_0x1e7d4c[_0x1b1ee6(0x110)]+'\x20'),_0x289b16[_0x1b1ee6(0x13f)]=_0x32ea56[_0x1b1ee6(0x110)];else{if(_0xa9bf7d[_0x1b1ee6(0xad)]||_0xa9bf7d[_0x1b1ee6(0x13f)]||_0xa9bf7d['region']){if(_0x18406f[_0x1b1ee6(0x103)](_0x18406f[_0x1b1ee6(0x170)],_0x18406f[_0x1b1ee6(0x101)]))_0x160214=_0x5afd5b;else{const _0x2f20a1=[];!_0xa9bf7d[_0x1b1ee6(0xad)]&&(_0x18406f[_0x1b1ee6(0xa5)](_0x18406f[_0x1b1ee6(0x176)],_0x18406f['Jzrxo'])?_0x38f811[_0x1b1ee6(0x15d)](_0x18406f[_0x1b1ee6(0xf9)]):_0x2f20a1[_0x1b1ee6(0x15d)](_0x18406f[_0x1b1ee6(0x117)]));;!_0xa9bf7d[_0x1b1ee6(0x13f)]&&(_0x18406f['ECPDU'](_0x18406f['dgyZF'],_0x18406f[_0x1b1ee6(0xdd)])?_0x2f20a1['push'](_0x18406f[_0x1b1ee6(0xf9)]):(_0x5a0b81[_0x1b1ee6(0xe9)](_0x18406f['lyVUY']),_0xf8c7f1['exit'](0x1)));;!_0xa9bf7d[_0x1b1ee6(0xdc)]&&(_0x18406f[_0x1b1ee6(0x189)](_0x18406f[_0x1b1ee6(0x17c)],_0x18406f[_0x1b1ee6(0x153)])?_0x2f20a1[_0x1b1ee6(0x15d)](_0x18406f['uluHA']):(_0x5854f5[_0x1b1ee6(0xa9)]('['+_0x2125fa+_0x1b1ee6(0x168)+_0x4ecfc4[_0x1b1ee6(0xab)]+_0x1b1ee6(0x8b)+_0x344b48['data']+_0x1b1ee6(0x152)+_0x34a521['error']),_0x56159b[_0x1b1ee6(0xe9)]&&_0x328157[_0x1b1ee6(0xe9)](_0x1b1ee6(0x155)+_0x13065c[_0x1b1ee6(0xe9)][_0x1b1ee6(0x122)])));;_0x18406f[_0x1b1ee6(0xbe)](_0x2f20a1['length'],0x0)&&(_0x18406f[_0x1b1ee6(0x16d)](_0x18406f[_0x1b1ee6(0xe1)],_0x18406f[_0x1b1ee6(0x8a)])?_0x54aee6+=_0x1b1ee6(0x14d)+_0x4d5495[_0x1b1ee6(0xad)]+_0x1b1ee6(0x91):(_0x1b38c8=_0x1b1ee6(0xa7)+_0x2f20a1[_0x1b1ee6(0xb7)](',\x20')+_0x1b1ee6(0x93),await _0x18406f['jFTVP'](reportToGalactusAndSendToEDS,_0xa9bf7d,_0xc532aa,_0x1b38c8,messageTypes[_0x1b1ee6(0xef)],_0x18406f[_0x1b1ee6(0xf1)],_0x18406f[_0x1b1ee6(0xd8)],_0x18406f[_0x1b1ee6(0x112)]),logger[_0x1b1ee6(0xe9)](_0x1b38c8),process[_0x1b1ee6(0xc2)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1b1ee6(0xd9)](_0xa9bf7d[_0x1b1ee6(0x13f)][_0x1b1ee6(0x161)]())&&(_0x18406f[_0x1b1ee6(0xa4)](_0x18406f['Ykgid'],_0x18406f['glPrF'])?(_0x1b38c8=_0x18406f['vrOsi'],await _0x18406f[_0x1b1ee6(0x10a)](reportToGalactusAndSendToEDS,_0xa9bf7d,_0xc532aa,_0x1b38c8,messageTypes[_0x1b1ee6(0xef)],_0x18406f[_0x1b1ee6(0xf1)],_0x18406f[_0x1b1ee6(0x97)],_0x18406f[_0x1b1ee6(0x112)]),logger[_0x1b1ee6(0xe9)](_0x1b38c8),!_0xa9bf7d[_0x1b1ee6(0x13f)]&&(_0x18406f['DPvpS'](_0x18406f[_0x1b1ee6(0x167)],_0x18406f['ZEWOt'])?(_0x108991+=_0x18406f[_0x1b1ee6(0x10f)],_0x22a66d+='\x20\x20Message:\x20'+(_0x8cb805[_0x1b1ee6(0xf8)]||_0x18406f['GwxbP'])+'\x0a',_0xe4cdb1+=_0x1b1ee6(0xc0)+(_0x5c242a[_0x1b1ee6(0x159)]||_0x18406f['GwxbP'])+'\x0a',_0x371a1b+=_0x1b1ee6(0x173)+(_0x489708[_0x1b1ee6(0x122)]||_0x18406f['GwxbP'])+'\x0a'):(logger[_0x1b1ee6(0xa9)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x1b1ee6(0x110)]+'\x20'),_0xa9bf7d[_0x1b1ee6(0x13f)]=DEFAULT_CLUSTER_DETAILS[_0x1b1ee6(0x110)]))):_0x13366f['info'](_0x1b1ee6(0x166)+_0x51c76f['clusterName']+_0x1b1ee6(0xf2))),global_registry[_0x1b1ee6(0xad)]=_0xa9bf7d['clusterName'],global_registry[_0x1b1ee6(0x13f)]=_0xa9bf7d[_0x1b1ee6(0x13f)],global_registry[_0x1b1ee6(0xba)]=_0xa9bf7d[_0x1b1ee6(0xdc)];}}else{if(_0xa9bf7d[_0x1b1ee6(0x13d)]){if(_0x18406f[_0x1b1ee6(0x16d)](_0x18406f[_0x1b1ee6(0x11c)],_0x18406f[_0x1b1ee6(0x13b)]))_0x39e17a[_0x1b1ee6(0x15d)](_0x18406f[_0x1b1ee6(0x117)]);else{global_registry[_0x1b1ee6(0x13d)]=_0xa9bf7d['gridProfile'],logger['debug'](_0x1b1ee6(0x108)+_0xa9bf7d[_0x1b1ee6(0x13d)]);const _0x29c6df=_0x1b1ee6(0xa1)+AG_API_URL+_0x1b1ee6(0x127),_0x161e80={};_0x161e80[_0x1b1ee6(0xce)]=_0x18406f[_0x1b1ee6(0xd4)],_0x161e80[_0x1b1ee6(0x120)]=global_registry[_0x1b1ee6(0x8f)],_0x161e80['throwHttpErrors']=![];const _0x487622=_0x161e80,_0x2bf3fd=await _0x18406f[_0x1b1ee6(0x131)](got,_0x29c6df,_0x487622),_0x18ab5c=await _0x18406f[_0x1b1ee6(0x16b)](responseValidation,_0x2bf3fd,_0x18406f[_0x1b1ee6(0x88)],_0x18406f[_0x1b1ee6(0xbf)],_0xa9bf7d,_0xc532aa);let _0x4c5e7f={};if(_0x18406f[_0x1b1ee6(0x16d)](_0x18ab5c,0xc8)){if(_0x18406f[_0x1b1ee6(0x126)](_0x18406f[_0x1b1ee6(0xb5)],_0x18406f[_0x1b1ee6(0xb5)])){const _0x53a9a2=JSON['parse'](_0x2bf3fd[_0x1b1ee6(0x143)]),_0x5b798e=_0x53a9a2[_0x1b1ee6(0x169)](_0x55c71a=>_0x55c71a[_0x1b1ee6(0xde)]===_0xa9bf7d[_0x1b1ee6(0x13d)])||null;if(_0x18406f[_0x1b1ee6(0x132)](isUndefined,_0x5b798e)){if(_0x18406f['DPvpS'](_0x18406f[_0x1b1ee6(0x180)],_0x18406f[_0x1b1ee6(0x180)]))_0x1b38c8=_0x1b1ee6(0x146)+_0xa9bf7d[_0x1b1ee6(0x13d)]+_0x1b1ee6(0x171),await _0x18406f[_0x1b1ee6(0x17b)](reportToGalactusAndSendToEDS,_0xa9bf7d,_0xc532aa,_0x1b38c8,messageTypes[_0x1b1ee6(0xef)],_0x18406f['LGTNz'],_0x18406f[_0x1b1ee6(0xf6)],_0x18406f[_0x1b1ee6(0x112)]),logger[_0x1b1ee6(0xe9)](_0x1b38c8),process[_0x1b1ee6(0xc2)](0x1);else{const {header:_0x594506,response:_0x2f9fe6}=_0x6942ec,{status:_0xcb8e62,data:_0xa2586f,error:_0x14487c}=_0x2f9fe6;_0x2b432e+=_0x594506+'\x20#'+_0x18406f['wLbYa'](_0x5ee8b9,0x1)+'\x0a',_0x57e98f+='Status:\x20'+(_0xcb8e62?_0x18406f[_0x1b1ee6(0xf3)]:_0x18406f[_0x1b1ee6(0x16c)])+'\x0a',_0x2d8a21+=_0x1b1ee6(0xf5)+_0x18406f['eyfzA'](_0xa2586f,_0x18406f[_0x1b1ee6(0xa6)])+'\x0a',_0x14487c&&(_0x546f38+=_0x18406f[_0x1b1ee6(0x10f)],_0xcbdce+=_0x1b1ee6(0x16a)+(_0x14487c['message']||_0x18406f[_0x1b1ee6(0xa6)])+'\x0a',_0x56f946+=_0x1b1ee6(0xc0)+(_0x14487c[_0x1b1ee6(0x159)]||_0x18406f[_0x1b1ee6(0xa6)])+'\x0a',_0x3549c9+=_0x1b1ee6(0x173)+(_0x14487c[_0x1b1ee6(0x122)]||_0x18406f[_0x1b1ee6(0xa6)])+'\x0a'),_0x32632d+='\x0a\x0a';}}else{if(_0x18406f['QyTnc'](_0x18406f[_0x1b1ee6(0xf0)],_0x18406f[_0x1b1ee6(0x136)]))_0x4c5e7f=_0x5b798e;else{const _0xc0a4c={};_0xc0a4c[_0x1b1ee6(0x178)]=_0x5832f1[_0x1b1ee6(0xfc)],_0xc0a4c[_0x1b1ee6(0xf8)]=_0x7888c0,_0x4e80a2[_0x1b1ee6(0x175)](_0x208fab,_0xc0a4c,_0x18406f[_0x1b1ee6(0x112)],!![]);}}}else _0xa8446b[_0x1b1ee6(0xe9)](_0x1b1ee6(0x155)+_0x579d95['error'][_0x1b1ee6(0x122)]);}else{if(_0x18406f[_0x1b1ee6(0x16d)](_0x18406f[_0x1b1ee6(0x9a)],_0x18406f[_0x1b1ee6(0x9a)]))process[_0x1b1ee6(0xc2)](0x1);else{const _0x573399={};_0x573399[_0x1b1ee6(0xea)]=_0x18406f[_0x1b1ee6(0x95)],_0x573399[_0x1b1ee6(0x178)]=_0x18406f['UVsxx'];const _0x273082={};_0x273082['description']=_0x18406f[_0x1b1ee6(0xdf)],_0x273082[_0x1b1ee6(0x178)]=_0x18406f['UVsxx'];const _0x4d054e={};_0x4d054e[_0x1b1ee6(0xea)]=_0x18406f['CMpXt'],_0x4d054e['type']=_0x18406f[_0x1b1ee6(0xc7)];const _0x535755={};_0x535755['description']=_0x18406f[_0x1b1ee6(0x94)],_0x535755[_0x1b1ee6(0x178)]=_0x18406f[_0x1b1ee6(0xc7)];const _0xee50c2={};return _0xee50c2[_0x1b1ee6(0x15e)]=_0x573399,_0xee50c2[_0x1b1ee6(0x90)]=_0x273082,_0xee50c2[_0x1b1ee6(0xdc)]=_0x4d054e,_0xee50c2['grid-profile']=_0x535755,_0x356970[_0x1b1ee6(0xe4)](_0x324308[_0x1b1ee6(0x187)])['epilogue'](_0x506a2d)[_0x1b1ee6(0x9b)](_0xee50c2)[_0x1b1ee6(0x188)](_0x18406f[_0x1b1ee6(0xe7)])[_0x1b1ee6(0x99)];}}const _0x4d503f={};_0x4d503f[_0x1b1ee6(0x178)]=WS_EVENTS[_0x1b1ee6(0xfc)],_0x4d503f[_0x1b1ee6(0xf8)]=_0x18406f[_0x1b1ee6(0xcb)],webSocketUtils[_0x1b1ee6(0x175)](_0xc532aa,_0x4d503f),global_registry[_0x1b1ee6(0x13f)]=_0x4c5e7f[_0x1b1ee6(0x13f)],global_registry['clusterRegion']=_0x4c5e7f[_0x1b1ee6(0xdc)],global_registry[_0x1b1ee6(0xad)]=_0x4c5e7f['clusterName'];}}else _0x18406f[_0x1b1ee6(0x149)](_0x18406f[_0x1b1ee6(0x129)],_0x18406f['yPhQK'])?_0x56d185+=_0x1b1ee6(0x14d)+_0x3d1d57[_0x1b1ee6(0xad)]+'\x20'+(_0x4bd32f?_0x18406f[_0x1b1ee6(0xe2)]:_0x18406f[_0x1b1ee6(0x14f)])+'\x0a\x0a':(logger[_0x1b1ee6(0xe9)](_0x18406f[_0x1b1ee6(0x17d)]),process[_0x1b1ee6(0xc2)](0x1));}}}catch(_0x16640b){_0x18406f[_0x1b1ee6(0x8c)](_0x18406f[_0x1b1ee6(0x12c)],_0x18406f['izasR'])?(_0x1b38c8=_0x1b1ee6(0xee)+_0x16640b+':\x20'+_0x16640b[_0x1b1ee6(0x122)],logger[_0x1b1ee6(0xe9)](_0x1b38c8),await _0x18406f[_0x1b1ee6(0x10a)](reportToGalactusAndSendToEDS,_0xa9bf7d,_0xc532aa,_0x1b38c8,messageTypes[_0x1b1ee6(0xef)],_0x18406f[_0x1b1ee6(0xf1)],_0x18406f[_0x1b1ee6(0x97)],_0x18406f['IMRax']),process[_0x1b1ee6(0xc2)](0x1)):_0x3e9840['exit'](0x1);}}function printResponse(_0x490f80,_0x126e4e){const _0x20868f=a17_0x49dcda,_0x737787={};_0x737787[_0x20868f(0x98)]='region',_0x737787[_0x20868f(0x134)]=function(_0x2326f4,_0x228854){return _0x2326f4!==_0x228854;},_0x737787[_0x20868f(0xb0)]=_0x20868f(0x10c),_0x737787['HGBwd']=_0x20868f(0xd5);const _0x3eed0a=_0x737787;logger[_0x20868f(0xa9)]('['+_0x490f80+']\x20status\x20:\x20'+_0x126e4e[_0x20868f(0xab)]+'\x20data\x20:\x20'+_0x126e4e[_0x20868f(0x17a)]+'\x20error\x20:\x20'+_0x126e4e['error']),_0x126e4e[_0x20868f(0xe9)]&&(_0x3eed0a[_0x20868f(0x134)](_0x3eed0a['hobaq'],_0x3eed0a[_0x20868f(0x96)])?logger[_0x20868f(0xe9)](_0x20868f(0x155)+_0x126e4e['error']['stack']):_0xc3310f[_0x20868f(0x15d)](_0x3eed0a[_0x20868f(0x98)]));}async function generateReport(_0x24bc77,_0x4796e4){const _0x442765=a17_0x49dcda,_0x4d286f={'NjLal':function(_0x2380d8,_0x1b9119){return _0x2380d8+_0x1b9119;},'Kqvlp':'Success','YoiNM':_0x442765(0x10b),'wckBT':function(_0x50d16c,_0x258cb7){return _0x50d16c||_0x258cb7;},'xfeXt':_0x442765(0xc3),'PUXmk':_0x442765(0x147),'bUvGR':'Cluster\x20details\x0a-----------------------\x0a','uBdZh':function(_0x26c063,_0x2bc4b1){return _0x26c063!=_0x2bc4b1;},'LXPwR':_0x442765(0x17f),'QTNrl':_0x442765(0xc9),'xwbhn':function(_0xd8ef19){return _0xd8ef19();}};let _0x40b277=_0x442765(0xb6)+global_registry['cloudProvider']+_0x442765(0x87);return _0x24bc77[_0x442765(0x139)]((_0x4fc97f,_0x16a8dc)=>{const _0x97529b=_0x442765,{header:_0x4a8374,response:_0x2f4d2b}=_0x4fc97f,{status:_0x57ca30,data:_0x297797,error:_0x4b1573}=_0x2f4d2b;_0x40b277+=_0x4a8374+'\x20#'+_0x4d286f[_0x97529b(0x137)](_0x16a8dc,0x1)+'\x0a',_0x40b277+=_0x97529b(0xb8)+(_0x57ca30?_0x4d286f[_0x97529b(0xc4)]:_0x4d286f['YoiNM'])+'\x0a',_0x40b277+=_0x97529b(0xf5)+_0x4d286f[_0x97529b(0x111)](_0x297797,_0x4d286f['xfeXt'])+'\x0a',_0x4b1573&&(_0x40b277+=_0x4d286f[_0x97529b(0x123)],_0x40b277+=_0x97529b(0x16a)+(_0x4b1573[_0x97529b(0xf8)]||_0x4d286f[_0x97529b(0xe5)])+'\x0a',_0x40b277+='\x20\x20Code:\x20'+(_0x4b1573[_0x97529b(0x159)]||_0x4d286f[_0x97529b(0xe5)])+'\x0a',_0x40b277+='\x20\x20Stack:\x20'+(_0x4b1573[_0x97529b(0x122)]||_0x4d286f[_0x97529b(0xe5)])+'\x0a'),_0x40b277+='\x0a\x0a';}),_0x40b277+=_0x4d286f[_0x442765(0xe0)],_0x4d286f[_0x442765(0xd0)](_0x4796e4,null)?_0x40b277+=_0x442765(0x14d)+global_registry['clusterName']+'\x20'+(_0x4796e4?_0x4d286f['LXPwR']:_0x4d286f[_0x442765(0xac)])+'\x0a\x0a':_0x40b277+=_0x442765(0x14d)+global_registry['clusterName']+_0x442765(0x91),_0x40b277+=_0x4d286f['xwbhn'](getSystemMetaData),_0x40b277;};exports[a17_0x49dcda(0x184)]=async function(_0x2e2fec){const _0x29ccb0=a17_0x49dcda,_0x57465f={'qCHqg':function(_0x477fbe){return _0x477fbe();},'Jjgrv':function(_0x1cc16f){return _0x1cc16f();},'KgxsO':_0x29ccb0(0x185),'yAwAg':function(_0x51a606,_0x52e9c4,_0x4c0ffc,_0x1e59c1,_0x1fc588,_0x5466d4,_0x4d55ad,_0x537d99){return _0x51a606(_0x52e9c4,_0x4c0ffc,_0x1e59c1,_0x1fc588,_0x5466d4,_0x4d55ad,_0x537d99);},'UqNKg':_0x29ccb0(0x163),'CXqWN':_0x29ccb0(0x140),'LCUao':_0x29ccb0(0xe9),'HKreq':function(_0x14ebf6,_0x3b38b8,_0x1605e0,_0x196a0f,_0x3bb305,_0x19d609,_0x5f5ae3){return _0x14ebf6(_0x3b38b8,_0x1605e0,_0x196a0f,_0x3bb305,_0x19d609,_0x5f5ae3);},'hwAxR':_0x29ccb0(0x9f),'aFjoZ':_0x29ccb0(0x135),'qQHur':function(_0x13bb38,_0x263ed3,_0x3d4e80){return _0x13bb38(_0x263ed3,_0x3d4e80);},'icrKk':function(_0x37bd6b,_0x3c8a33,_0x3050a7){return _0x37bd6b(_0x3c8a33,_0x3050a7);},'Muynt':function(_0xd186ac,_0x47a300,_0xb366fc,_0x469dd6,_0xd94903,_0x3408d2,_0x2e9ba1){return _0xd186ac(_0x47a300,_0xb366fc,_0x469dd6,_0xd94903,_0x3408d2,_0x2e9ba1);},'chnIe':_0x29ccb0(0xcf),'oubYE':function(_0x45620d,_0x2541ad,_0x1d2f5d){return _0x45620d(_0x2541ad,_0x1d2f5d);},'bmbHP':'toolInstalledResp','tKAQr':'4|0|2|3|1','yiPvg':function(_0x3da80c,_0x1c8d08,_0x7e5b28,_0x373f72,_0x210b0e,_0x204fcb,_0x430444,_0x587740){return _0x3da80c(_0x1c8d08,_0x7e5b28,_0x373f72,_0x210b0e,_0x204fcb,_0x430444,_0x587740);},'DoyIC':function(_0x5e07a1,_0x16cef5,_0x1a987c){return _0x5e07a1(_0x16cef5,_0x1a987c);},'VtFxR':_0x29ccb0(0xcd),'KHHIr':_0x29ccb0(0xfa),'FCWOv':function(_0x4f2b76,_0x5138bf){return _0x4f2b76(_0x5138bf);},'fOKwJ':_0x29ccb0(0x125),'iUYtn':function(_0x1f9b73,_0x413c43,_0x54040f){return _0x1f9b73(_0x413c43,_0x54040f);},'EgaqL':'isTls1_2_SUPPORTED','BlHSE':'Tool\x20Installed','VOhaR':_0x29ccb0(0xa8),'pNQIL':_0x29ccb0(0x107),'glLjZ':_0x29ccb0(0x181),'vOPzG':function(_0x4aa91a,_0x6b7821){return _0x4aa91a+_0x6b7821;},'opiaF':'utf-8','HRUol':_0x29ccb0(0xd7)};let _0x5d20ed,_0x102701;try{global_registry[_0x29ccb0(0xff)]=_0x57465f[_0x29ccb0(0xb9)](uuidv4);!fs['existsSync'](_0x57465f[_0x29ccb0(0xa3)](getCredentialsPath))&&(_0x102701=_0x57465f[_0x29ccb0(0x114)],logger['error'](_0x102701),await _0x57465f['yAwAg'](reportToGalactusAndSendToEDS,_0x2e2fec,_0x5d20ed,_0x102701,messageTypes[_0x29ccb0(0xef)],_0x57465f[_0x29ccb0(0x15b)],_0x57465f[_0x29ccb0(0x151)],_0x57465f[_0x29ccb0(0x145)]),process[_0x29ccb0(0xc2)](0x1));_0x57465f[_0x29ccb0(0x150)](sendInstrumentationEvent,_0x2e2fec,_0x57465f['UqNKg'],messageTypes[_0x29ccb0(0x116)],null,null,_0x2e2fec);const _0x150178=JSON[_0x29ccb0(0x16e)](fs[_0x29ccb0(0x8e)](_0x57465f['Jjgrv'](getCredentialsPath)));global_registry[_0x29ccb0(0x15a)]=_0x150178[_0x29ccb0(0x9e)][_0x29ccb0(0xed)],global_registry['bstackAccesskey']=_0x150178[_0x29ccb0(0x9e)][_0x29ccb0(0x12e)];const _0x16464f=WS_ENDPOINT[_0x29ccb0(0x16f)](_0x57465f['hwAxR'],_0x150178[_0x29ccb0(0x9e)][_0x29ccb0(0xed)])[_0x29ccb0(0x16f)](_0x57465f['aFjoZ'],_0x150178['Browserstack']['password']),_0x24f846={};_0x24f846['WebSocket']=ws,_0x24f846[_0x29ccb0(0x130)]=0x36ee80,_0x5d20ed=new ReconnectingWebSocket(_0x16464f,[],_0x24f846),global_registry[_0x29ccb0(0x8f)]=_0x57465f[_0x29ccb0(0x14e)](getAuthHeader,global_registry[_0x29ccb0(0x15a)],global_registry[_0x29ccb0(0xfe)]),await _0x57465f['icrKk'](inputValidation,_0x2e2fec,_0x5d20ed),logger[_0x29ccb0(0xa9)](_0x29ccb0(0x172)+global_registry[_0x29ccb0(0x13f)]+_0x29ccb0(0x11b)+global_registry[_0x29ccb0(0xba)]);let _0x5e7119=await _0x57465f[_0x29ccb0(0xdb)](getCloudProviderObjectWithOutInit,global_registry[_0x29ccb0(0x13f)],global_registry[_0x29ccb0(0xad)],_0x57465f[_0x29ccb0(0xda)],_0x5d20ed,webSocketUtils,_0x2e2fec);const _0x5664c8=await _0x5e7119[_0x29ccb0(0x164)]();_0x57465f[_0x29ccb0(0x11a)](printResponse,_0x57465f[_0x29ccb0(0xc6)],_0x5664c8),_0x5e7119=await _0x5e7119[_0x29ccb0(0x12a)]();let _0x54371c=![];try{_0x54371c=await _0x5e7119[_0x29ccb0(0xb2)]();}catch(_0x3d1ad0){const _0x56510e=_0x57465f[_0x29ccb0(0xaf)][_0x29ccb0(0x142)]('|');let _0x199489=0x0;while(!![]){switch(_0x56510e[_0x199489++]){case'0':_0x54371c=null;continue;case'1':await _0x57465f[_0x29ccb0(0xd2)](reportToGalactusAndSendToEDS,_0x2e2fec,_0x5d20ed,_0x102701,messageTypes['ERROR'],_0x57465f[_0x29ccb0(0x15b)],_0x29ccb0(0x102)+global_registry['cloudProvider'],_0x57465f[_0x29ccb0(0x145)]);continue;case'2':logger[_0x29ccb0(0xe9)](_0x102701);continue;case'3':_0x102701+='\x0a'+JSON['stringify'](_0x3d1ad0[_0x29ccb0(0x122)]);continue;case'4':_0x102701=_0x29ccb0(0xa0)+global_registry[_0x29ccb0(0xad)]+_0x29ccb0(0xca)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x3d1ad0;continue;}break;}}_0x54371c&&logger[_0x29ccb0(0xa9)]('Cluster\x20`'+global_registry['clusterName']+'`\x20already\x20exists');const _0x495f4e=await _0x5e7119[_0x29ccb0(0xb1)]();_0x57465f['DoyIC'](printResponse,_0x57465f['VtFxR'],_0x495f4e);const _0x3e26b0=await _0x57465f[_0x29ccb0(0xa3)](curlRequest);_0x57465f['qQHur'](printResponse,_0x57465f['KHHIr'],_0x3e26b0);const _0x5971b1=await _0x57465f[_0x29ccb0(0xeb)](isTlsSupported,_0x57465f[_0x29ccb0(0x15f)]);_0x57465f['iUYtn'](printResponse,_0x57465f[_0x29ccb0(0x11d)],_0x5971b1);const _0x223f29={};_0x223f29[_0x29ccb0(0x182)]=_0x57465f[_0x29ccb0(0x148)],_0x223f29[_0x29ccb0(0xc8)]=_0x5664c8;const _0x52955d={};_0x52955d[_0x29ccb0(0x182)]=_0x57465f[_0x29ccb0(0x174)],_0x52955d[_0x29ccb0(0xc8)]=_0x495f4e;const _0x19b06f={};_0x19b06f[_0x29ccb0(0x182)]=_0x57465f[_0x29ccb0(0x104)],_0x19b06f[_0x29ccb0(0xc8)]=_0x3e26b0;const _0x1f9cbd={};_0x1f9cbd['header']=_0x57465f['glLjZ'],_0x1f9cbd[_0x29ccb0(0xc8)]=_0x5971b1;const _0x2020e5=[_0x223f29,_0x52955d,_0x19b06f,_0x1f9cbd],_0x48b051=await _0x57465f[_0x29ccb0(0x9c)](generateReport,_0x2020e5,_0x54371c),_0xb51fa4=new Date(),_0x247c22=_0xb51fa4['getUTCFullYear']()+'_'+_0x57465f[_0x29ccb0(0x133)](_0xb51fa4[_0x29ccb0(0xe8)](),0x1)+'_'+_0xb51fa4['getUTCDate']()+'_'+_0xb51fa4[_0x29ccb0(0xbc)]()+'_'+_0xb51fa4['getUTCMinutes'](),_0x1685e6='log/report_'+_0x247c22+_0x29ccb0(0x113);fs[_0x29ccb0(0x9d)](_0x1685e6,_0x48b051,_0x57465f[_0x29ccb0(0x109)]),logger['info'](_0x29ccb0(0x13a)+_0x1685e6),process[_0x29ccb0(0xc2)](0x0);}catch(_0x3d2ca0){let _0x1f1031=_0x29ccb0(0xe3)+_0x3d2ca0+'\x20';logger['error'](_0x1f1031),_0x1f1031+='\x0a'+JSON[_0x29ccb0(0x157)](_0x3d2ca0[_0x29ccb0(0x122)]),logger[_0x29ccb0(0xfb)]('stack\x20trace\x20'+_0x3d2ca0[_0x29ccb0(0x122)]);if(_0x5d20ed){const _0x175780={};_0x175780['type']=WS_EVENTS[_0x29ccb0(0xfc)],_0x175780[_0x29ccb0(0xf8)]=_0x1f1031,webSocketUtils[_0x29ccb0(0x175)](_0x5d20ed,_0x175780,_0x57465f[_0x29ccb0(0x145)],!![]);}await webSocketUtils[_0x29ccb0(0xec)](0x7d0);const _0xe5ee75={};_0xe5ee75[_0x29ccb0(0xe9)]=_0x1f1031,await _0x57465f['Muynt'](sendInstrumentationEvent,_0x2e2fec,_0x57465f[_0x29ccb0(0x15b)],messageTypes['ERROR'],_0x57465f[_0x29ccb0(0xd3)],_0xe5ee75,_0x2e2fec),process[_0x29ccb0(0xc2)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x4eff(_0x375fdc,_0x1fbfe3){const _0x21efe3=a18_0x21ef();return a18_0x4eff=function(_0x4eff3a,_0x1d1e94){_0x4eff3a=_0x4eff3a-0xf8;let _0x587e6d=_0x21efe3[_0x4eff3a];return _0x587e6d;},a18_0x4eff(_0x375fdc,_0x1fbfe3);}const a18_0x1c0abe=a18_0x4eff;(function(_0x4fac45,_0x664046){const _0x35eac5=a18_0x4eff,_0x40ea9c=_0x4fac45();while(!![]){try{const _0x5414b8=-parseInt(_0x35eac5(0x105))/0x1+-parseInt(_0x35eac5(0x109))/0x2+parseInt(_0x35eac5(0x104))/0x3*(-parseInt(_0x35eac5(0x106))/0x4)+parseInt(_0x35eac5(0xf9))/0x5*(-parseInt(_0x35eac5(0xfd))/0x6)+parseInt(_0x35eac5(0x101))/0x7+parseInt(_0x35eac5(0x10a))/0x8+-parseInt(_0x35eac5(0x10e))/0x9*(-parseInt(_0x35eac5(0xff))/0xa);if(_0x5414b8===_0x664046)break;else _0x40ea9c['push'](_0x40ea9c['shift']());}catch(_0x55dbba){_0x40ea9c['push'](_0x40ea9c['shift']());}}}(a18_0x21ef,0x9c9de));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1c0abe(0x10d));exports[a18_0x1c0abe(0xf8)]=a18_0x1c0abe(0xfa),exports['desc']=a18_0x1c0abe(0x108),exports['builder']=function(_0x1633a6){const _0x4bde08=a18_0x1c0abe,_0x2d38e3={};_0x2d38e3[_0x4bde08(0x102)]=_0x4bde08(0xfe),_0x2d38e3[_0x4bde08(0x10c)]=_0x4bde08(0x103);const _0x2f7e3e=_0x2d38e3;return _0x1633a6[_0x4bde08(0xfc)](HELP_HEADER_MESSAGE[_0x4bde08(0xfa)])[_0x4bde08(0x10f)](HELP_FOOTER_MESSAGE)[_0x4bde08(0xfb)](_0x2f7e3e[_0x4bde08(0x102)])[_0x4bde08(0x110)]()[_0x4bde08(0x107)]()[_0x4bde08(0x10b)]()[_0x4bde08(0x103)](_0x2f7e3e[_0x4bde08(0x10c)]);},exports[a18_0x1c0abe(0x100)]=function(_0x300d1d){};function a18_0x21ef(){const _0x73874f=['recommendCommands','Start\x20an\x20existing\x20Automation\x20grid.','87156UdUYWp','2196584DRvHbe','strict','zfrTz','../config/constants','701514uxUgwC','epilogue','demandCommand','command','823220lrNeDW','start','commandDir','usage','12FqPHlI','start_commands','250KNRGqc','handler','3754548VXzlWF','EKcBH','help','7284GRfvYg','924555Fywlef','1352RJlePw'];a18_0x21ef=function(){return _0x73874f;};return a18_0x21ef();}
1
+ function a18_0x4f1d(_0x48bb5d,_0x1ad366){const _0x2dfcc4=a18_0x2dfc();return a18_0x4f1d=function(_0x4f1dde,_0x4b89c5){_0x4f1dde=_0x4f1dde-0x12d;let _0x5a2ac7=_0x2dfcc4[_0x4f1dde];return _0x5a2ac7;},a18_0x4f1d(_0x48bb5d,_0x1ad366);}const a18_0x42d327=a18_0x4f1d;(function(_0x2f191f,_0x1e87fa){const _0x41322b=a18_0x4f1d,_0xaf144f=_0x2f191f();while(!![]){try{const _0x117c6c=-parseInt(_0x41322b(0x12f))/0x1+parseInt(_0x41322b(0x133))/0x2*(-parseInt(_0x41322b(0x136))/0x3)+parseInt(_0x41322b(0x13d))/0x4+-parseInt(_0x41322b(0x132))/0x5*(parseInt(_0x41322b(0x138))/0x6)+parseInt(_0x41322b(0x13a))/0x7+parseInt(_0x41322b(0x139))/0x8+parseInt(_0x41322b(0x13b))/0x9*(parseInt(_0x41322b(0x13c))/0xa);if(_0x117c6c===_0x1e87fa)break;else _0xaf144f['push'](_0xaf144f['shift']());}catch(_0x55b20b){_0xaf144f['push'](_0xaf144f['shift']());}}}(a18_0x2dfc,0x79594));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x2dfc(){const _0x504a5e=['10JOTxGz','1188856QxmaKu','cJhXY','desc','help','Start\x20an\x20existing\x20Automation\x20grid.','commandDir','epilogue','strict','423960gKQkrl','handler','command','1949955NMcITo','66UYXYKZ','FrcyF','builder','18975bMGnwd','start','12RWqtwX','1398600vhWpBW','6431957vPifIi','4669389AqnYRF'];a18_0x2dfc=function(){return _0x504a5e;};return a18_0x2dfc();}exports[a18_0x42d327(0x131)]=a18_0x42d327(0x137),exports[a18_0x42d327(0x13f)]=a18_0x42d327(0x141),exports[a18_0x42d327(0x135)]=function(_0x1d3ab2){const _0x2435a9=a18_0x42d327,_0x13d9a4={};_0x13d9a4[_0x2435a9(0x134)]='start_commands',_0x13d9a4[_0x2435a9(0x13e)]=_0x2435a9(0x140);const _0x15e18b=_0x13d9a4;return _0x1d3ab2['usage'](HELP_HEADER_MESSAGE['start'])[_0x2435a9(0x12d)](HELP_FOOTER_MESSAGE)[_0x2435a9(0x142)](_0x15e18b['FrcyF'])['demandCommand']()['recommendCommands']()[_0x2435a9(0x12e)]()[_0x2435a9(0x140)](_0x15e18b[_0x2435a9(0x13e)]);},exports[a18_0x42d327(0x130)]=function(_0x12f8f5){};
@@ -1 +1 @@
1
- const a19_0x1a4b57=a19_0x238c;function a19_0x2065(){const _0x27ce78=['command','../../cloudproviders/utils','1065468ZhIouA','TzfpU','region','clusterName','existsSync','woSaA','Mvzoi','debug','../../utils/gridComponents','exit','7671840brtTIs','ANYzd','206705xoYtMp','replace','stringify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','password','type','skipTlsCertVerify','connectionTimeout','start-grid-called','hAsdc','GBnXk','10NncIUS','Xfbaa','help','info','gridId','Grid\x20started','description','ERROR','cloudProvider','builder','boolean','ZKZgq','2507183POwaEl','clusterRegion','aeljS','bWLXe','../../utils/createk8sClient','string','209902NDtKQS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','669332uwkTDb','readFileSync','../../config/logger','statusCode','uZbGP','acRnC','INFO','stack','message','../../config/constants','argv','OKHfK','wnedR','Skip\x20insecure\x20cert\x20verification.','KGNvw','grid','name','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','unauthorised','Start\x20an\x20existing\x20Automation\x20grid.','sUXpY','error','Browserstack','username','<PasswordPlaceholder>','addListeners','invalid-grid-id','SJUOU','266325CILZJp','parse','uFBRD','POVvM','WYqlg','WebSocket','init-not-called','DgzTg','JZOXc'];a19_0x2065=function(){return _0x27ce78;};return a19_0x2065();}(function(_0x5c090d,_0x40b487){const _0x20b252=a19_0x238c,_0x3082a8=_0x5c090d();while(!![]){try{const _0x2f88bc=parseInt(_0x20b252(0x9b))/0x1+-parseInt(_0x20b252(0xb8))/0x2+parseInt(_0x20b252(0x84))/0x3+-parseInt(_0x20b252(0xba))/0x4+parseInt(_0x20b252(0xa6))/0x5*(-parseInt(_0x20b252(0x8f))/0x6)+-parseInt(_0x20b252(0xb2))/0x7+parseInt(_0x20b252(0x99))/0x8;if(_0x2f88bc===_0x40b487)break;else _0x3082a8['push'](_0x3082a8['shift']());}catch(_0x4f55d9){_0x3082a8['push'](_0x3082a8['shift']());}}}(a19_0x2065,0x41a33));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1a4b57(0x71)),{logger}=require(a19_0x1a4b57(0xbc)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x1a4b57(0x97)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x1a4b57(0xb6)),{getCloudProviderObject}=require(a19_0x1a4b57(0x8e));function a19_0x238c(_0x4e465c,_0x12fe96){const _0x20653a=a19_0x2065();return a19_0x238c=function(_0x238caf,_0x5461b3){_0x238caf=_0x238caf-0x6b;let _0x294208=_0x20653a[_0x238caf];return _0x294208;},a19_0x238c(_0x4e465c,_0x12fe96);}exports[a19_0x1a4b57(0x8d)]=a19_0x1a4b57(0x77),exports['desc']=a19_0x1a4b57(0x7b),exports[a19_0x1a4b57(0xaf)]=function(_0x257970){const _0x1dec65=a19_0x1a4b57,_0x38f900={};_0x38f900['Mvzoi']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x38f900['KXqeJ']=_0x1dec65(0xb7),_0x38f900[_0x1dec65(0x76)]=_0x1dec65(0x75),_0x38f900[_0x1dec65(0xa4)]=_0x1dec65(0xb0),_0x38f900[_0x1dec65(0x90)]=_0x1dec65(0xa8);const _0x198931=_0x38f900,_0x4709c1={};_0x4709c1['description']=_0x198931[_0x1dec65(0x95)],_0x4709c1[_0x1dec65(0xa0)]=_0x198931['KXqeJ'];const _0x4f6e11={};_0x4f6e11[_0x1dec65(0xac)]=_0x198931[_0x1dec65(0x76)],_0x4f6e11[_0x1dec65(0xa0)]=_0x198931[_0x1dec65(0xa4)],_0x4f6e11['default']=![];const _0x36db91={};return _0x36db91['grid-id']=_0x4709c1,_0x36db91['skip-tls-cert-verify']=_0x4f6e11,_0x257970['usage'](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x36db91)[_0x1dec65(0xa8)](_0x198931[_0x1dec65(0x90)])[_0x1dec65(0x72)];},exports['handler']=async function(_0x1d78a9){const _0x3973d1=a19_0x1a4b57,_0x169fb6={'ANYzd':_0x3973d1(0x79),'WYqlg':function(_0x301c42){return _0x301c42();},'bWLXe':_0x3973d1(0x9e),'OKHfK':function(_0x4a3096,_0x1cbea6,_0x55a6a9,_0x17bd78,_0x34581e,_0x256c68,_0x155797){return _0x4a3096(_0x1cbea6,_0x55a6a9,_0x17bd78,_0x34581e,_0x256c68,_0x155797);},'uFBRD':_0x3973d1(0xa3),'amuzQ':_0x3973d1(0x8a),'GBnXk':function(_0x3f1a1c,_0x13d14a,_0x5bd026,_0x45f5f7,_0x19010b,_0x57f7d7,_0x18e3b7){return _0x3f1a1c(_0x13d14a,_0x5bd026,_0x45f5f7,_0x19010b,_0x57f7d7,_0x18e3b7);},'sUXpY':function(_0x4b3a08){return _0x4b3a08();},'acRnC':'<UsernamePlaceholder>','ZKZgq':_0x3973d1(0x80),'JZOXc':'Adding\x20Websocket\x20listeners','uZbGP':function(_0x4d8227,_0x2505f3,_0x163e12,_0x2ad462){return _0x4d8227(_0x2505f3,_0x163e12,_0x2ad462);},'SJUOU':function(_0x5b16a4,_0x3af71c,_0x3ca1fb){return _0x5b16a4(_0x3af71c,_0x3ca1fb);},'Xfbaa':_0x3973d1(0xab),'wnedR':function(_0x4ab7a8,_0x5a6e48){return _0x4ab7a8===_0x5a6e48;},'POVvM':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','woSaA':_0x3973d1(0x7a),'aeljS':function(_0x65baa3,_0xdc2b01,_0x372559,_0x5b8527,_0x1dc511,_0x400315,_0x3a5561){return _0x65baa3(_0xdc2b01,_0x372559,_0x5b8527,_0x1dc511,_0x400315,_0x3a5561);},'OcAtb':_0x3973d1(0x82),'DgzTg':'server-error'};let _0x13a98a;try{!_0x1d78a9[_0x3973d1(0xaa)]&&(logger['error'](_0x169fb6[_0x3973d1(0x9a)]),process[_0x3973d1(0x98)](0x1));!fs[_0x3973d1(0x93)](_0x169fb6[_0x3973d1(0x88)](getCredentialsPath))&&(logger[_0x3973d1(0x7d)](_0x169fb6[_0x3973d1(0xb5)]),await _0x169fb6['OKHfK'](sendInstrumentationEvent,_0x1d78a9,_0x169fb6['uFBRD'],messageTypes['ERROR'],_0x169fb6['amuzQ'],null,_0x1d78a9),process[_0x3973d1(0x98)](0x1));logger[_0x3973d1(0xa9)]('Starting\x20grid\x20'+_0x1d78a9[_0x3973d1(0xaa)]),await _0x169fb6[_0x3973d1(0xa5)](sendInstrumentationEvent,_0x1d78a9,_0x169fb6['uFBRD'],messageTypes[_0x3973d1(0x6e)],null,null,_0x1d78a9);const _0x50f823=JSON['parse'](fs[_0x3973d1(0xbb)](_0x169fb6[_0x3973d1(0x7c)](getCredentialsPath)));global_registry['bstackUsername']=_0x50f823[_0x3973d1(0x7e)]['username'],global_registry['bstackAccesskey']=_0x50f823['Browserstack'][_0x3973d1(0x9f)];const _0x2c57a0=WS_ENDPOINT[_0x3973d1(0x9c)](_0x169fb6[_0x3973d1(0x6d)],_0x50f823[_0x3973d1(0x7e)][_0x3973d1(0x7f)])[_0x3973d1(0x9c)](_0x169fb6[_0x3973d1(0xb1)],_0x50f823[_0x3973d1(0x7e)][_0x3973d1(0x9f)]),_0x3596b4={};_0x3596b4[_0x3973d1(0x89)]=ws,_0x3596b4[_0x3973d1(0xa2)]=0x36ee80,_0x13a98a=new ReconnectingWebSocket(_0x2c57a0,[],_0x3596b4),logger[_0x3973d1(0x96)](_0x169fb6[_0x3973d1(0x8c)]),webSocketUtils[_0x3973d1(0x81)](_0x13a98a,_0x1d78a9['user'],_0x1d78a9['password']);const [_0xff60bc,_0x431644]=await _0x169fb6[_0x3973d1(0x6c)](getGridDetails,_0x50f823[_0x3973d1(0x7e)][_0x3973d1(0x7f)],_0x50f823[_0x3973d1(0x7e)][_0x3973d1(0x9f)],_0x1d78a9['gridId']);if(_0x431644){const _0x22bf5d=_0x431644[_0x3973d1(0xa9)];global_registry[_0x3973d1(0xae)]=_0x22bf5d['cloudProvider'],global_registry[_0x3973d1(0xb3)]=_0x22bf5d[_0x3973d1(0x91)],global_registry['clusterName']=_0x22bf5d[_0x3973d1(0x92)];const _0x2e8a53=await _0x169fb6[_0x3973d1(0xa5)](getCloudProviderObject,_0x22bf5d[_0x3973d1(0xae)],_0x22bf5d[_0x3973d1(0x92)],_0x22bf5d[_0x3973d1(0x78)],_0x13a98a,webSocketUtils,_0x1d78a9),[_0x5579c7,_0x46791b,_0x5d8ba3,_0x39d93b,_0x282bf9,_0x1bc032]=await _0x169fb6[_0x3973d1(0x83)](createK8sClient,_0x2e8a53,_0x1d78a9[_0x3973d1(0xa1)]);await _0x169fb6[_0x3973d1(0x83)](scaleUpHubDeployment,_0x46791b,_0x22bf5d[_0x3973d1(0x78)]),logger['info'](_0x169fb6[_0x3973d1(0xa7)]),process[_0x3973d1(0x98)](0x0);}_0x169fb6[_0x3973d1(0x74)](_0xff60bc[_0x3973d1(0x6b)],0x191)&&(logger['error'](_0x169fb6[_0x3973d1(0x87)]),await _0x169fb6[_0x3973d1(0x73)](sendInstrumentationEvent,_0x1d78a9,_0x169fb6[_0x3973d1(0x86)],messageTypes[_0x3973d1(0xad)],_0x169fb6[_0x3973d1(0x94)],null,_0x1d78a9),process[_0x3973d1(0x98)](0x1)),_0x169fb6[_0x3973d1(0x74)](_0xff60bc[_0x3973d1(0x6b)],0x190)&&(logger['error'](JSON[_0x3973d1(0x85)](_0xff60bc['body'])[_0x3973d1(0x70)]),await _0x169fb6[_0x3973d1(0xb4)](sendInstrumentationEvent,_0x1d78a9,_0x169fb6[_0x3973d1(0x86)],messageTypes['ERROR'],_0x169fb6['OcAtb'],null,_0x1d78a9),process[_0x3973d1(0x98)](0x1)),logger[_0x3973d1(0x7d)](_0x3973d1(0xb9)+JSON[_0x3973d1(0x9d)](_0xff60bc)),await _0x169fb6[_0x3973d1(0xa5)](sendInstrumentationEvent,_0x1d78a9,_0x169fb6['uFBRD'],messageTypes['ERROR'],_0x169fb6[_0x3973d1(0x8b)],_0xff60bc,_0x1d78a9),process[_0x3973d1(0x98)](0x1);}catch(_0x1a8f96){const _0x317c7a='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x1a8f96+'\x20\x0a'+JSON[_0x3973d1(0x9d)](_0x1a8f96[_0x3973d1(0x6f)])+'\x20';logger[_0x3973d1(0x7d)](_0x317c7a),process[_0x3973d1(0x98)](0x1);}};
1
+ const a19_0x11cada=a19_0x5ba4;function a19_0x5ba4(_0x256251,_0x1bcd21){const _0x2d34cb=a19_0x2d34();return a19_0x5ba4=function(_0x5ba414,_0xc23103){_0x5ba414=_0x5ba414-0x1e1;let _0x4912dd=_0x2d34cb[_0x5ba414];return _0x4912dd;},a19_0x5ba4(_0x256251,_0x1bcd21);}(function(_0x5d5c0d,_0x5eddd2){const _0x1dab88=a19_0x5ba4,_0x460b19=_0x5d5c0d();while(!![]){try{const _0x356c3e=-parseInt(_0x1dab88(0x1fa))/0x1*(parseInt(_0x1dab88(0x1f6))/0x2)+parseInt(_0x1dab88(0x231))/0x3*(-parseInt(_0x1dab88(0x1e5))/0x4)+-parseInt(_0x1dab88(0x235))/0x5*(parseInt(_0x1dab88(0x1e1))/0x6)+parseInt(_0x1dab88(0x1ee))/0x7+parseInt(_0x1dab88(0x205))/0x8*(parseInt(_0x1dab88(0x213))/0x9)+parseInt(_0x1dab88(0x204))/0xa+-parseInt(_0x1dab88(0x209))/0xb*(-parseInt(_0x1dab88(0x21a))/0xc);if(_0x356c3e===_0x5eddd2)break;else _0x460b19['push'](_0x460b19['shift']());}catch(_0x13be9d){_0x460b19['push'](_0x460b19['shift']());}}}(a19_0x2d34,0xacb1d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x11cada(0x236)),{logger}=require(a19_0x11cada(0x226)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x11cada(0x1fd)),{sendInstrumentationEvent}=require(a19_0x11cada(0x21e)),webSocketUtils=require(a19_0x11cada(0x1e3)),{createK8sClient}=require(a19_0x11cada(0x227)),{getCloudProviderObject}=require(a19_0x11cada(0x1e4));function a19_0x2d34(){const _0x10b8d8=['lCbFE','Adding\x20Websocket\x20listeners','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','26KuKayY','unauthorised','JzwTk','clusterRegion','28411JiTGpU','argv','type','../../utils/gridComponents','server-error','builder','Browserstack','WebSocket','HOKaW','init-not-called','9905270ryaznm','1768WESfAa','clusterName','start','epilogue','11eOdYrp','Skip\x20insecure\x20cert\x20verification.','gridId','connectionTimeout','parse','string','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cloudProvider','aMLvq','18279vebJBo','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','INFO','OwCBv','replace','info','iIHmN','3529716uAsAOE','wPKRN','name','addListeners','../../utils/instrumentationUtils','password','DcwaL','IJbpL','options','invalid-grid-id','KDToF','usage','../../config/logger','../../utils/createk8sClient','VyIOY','statusCode','MWkgo','readFileSync','default','rYCWd','description','username','bstackAccesskey','3305157ZiVTBK','ERROR','HIQjS','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','15855DWwHIn','../../config/constants','handler','YTQvY','devRc','exit','1314VnCOJL','pMCBT','../../utils/webSocketUtils','../../cloudproviders/utils','4WUlvLm','error','desc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','stack','gGwKj','start-grid-called','stringify','existsSync','7975429WhsPtk','skipTlsCertVerify','grid','xDZCQ'];a19_0x2d34=function(){return _0x10b8d8;};return a19_0x2d34();}exports['command']=a19_0x11cada(0x1f0),exports[a19_0x11cada(0x1e7)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x11cada(0x1ff)]=function(_0x31bfb0){const _0x4d9501=a19_0x11cada,_0x4a3632={};_0x4a3632['AcJUd']=_0x4d9501(0x1e8),_0x4a3632[_0x4d9501(0x1ea)]=_0x4d9501(0x20e),_0x4a3632[_0x4d9501(0x233)]=_0x4d9501(0x20a),_0x4a3632[_0x4d9501(0x1f2)]='boolean',_0x4a3632[_0x4d9501(0x216)]=_0x4d9501(0x20f);const _0x18ab0c=_0x4a3632,_0xc52d21={};_0xc52d21[_0x4d9501(0x22e)]=_0x18ab0c['AcJUd'],_0xc52d21[_0x4d9501(0x1fc)]=_0x18ab0c[_0x4d9501(0x1ea)];const _0xa063c4={};_0xa063c4[_0x4d9501(0x22e)]=_0x18ab0c['HIQjS'],_0xa063c4[_0x4d9501(0x1fc)]=_0x18ab0c[_0x4d9501(0x1f2)],_0xa063c4[_0x4d9501(0x22c)]=![];const _0x14c30b={};return _0x14c30b['grid-id']=_0xc52d21,_0x14c30b[_0x4d9501(0x1f4)]=_0xa063c4,_0x31bfb0[_0x4d9501(0x225)](HELP_HEADER_MESSAGE[_0x4d9501(0x207)])[_0x4d9501(0x208)](HELP_FOOTER_MESSAGE)[_0x4d9501(0x222)](_0x14c30b)['help'](_0x18ab0c[_0x4d9501(0x216)])[_0x4d9501(0x1fb)];},exports[a19_0x11cada(0x237)]=async function(_0x39dda1){const _0x28b24a=a19_0x11cada,_0x3a7832={'PwgTn':_0x28b24a(0x234),'wPKRN':function(_0x5c18b9){return _0x5c18b9();},'BLUfd':_0x28b24a(0x210),'VyIOY':function(_0x57c8e6,_0x32914a,_0x242afe,_0x145d48,_0x373da8,_0x7f2015,_0x4b13ea){return _0x57c8e6(_0x32914a,_0x242afe,_0x145d48,_0x373da8,_0x7f2015,_0x4b13ea);},'MWkgo':_0x28b24a(0x1eb),'DcwaL':_0x28b24a(0x203),'xDZCQ':function(_0xceed25,_0x19ff7d,_0x1402af,_0x59d0e0,_0x50ede6,_0x25d839,_0x11188a){return _0xceed25(_0x19ff7d,_0x1402af,_0x59d0e0,_0x50ede6,_0x25d839,_0x11188a);},'rYCWd':function(_0x42e03f){return _0x42e03f();},'KDToF':'<UsernamePlaceholder>','IJbpL':'<PasswordPlaceholder>','JzwTk':_0x28b24a(0x1f3),'fuDGx':function(_0x5e0eb5,_0x40c09b,_0x6aee05,_0x2354ae){return _0x5e0eb5(_0x40c09b,_0x6aee05,_0x2354ae);},'devRc':function(_0x24e613,_0x58ac4b,_0x3e91d6){return _0x24e613(_0x58ac4b,_0x3e91d6);},'aMLvq':function(_0x3a4a1d,_0x4b55ce,_0x1d819e){return _0x3a4a1d(_0x4b55ce,_0x1d819e);},'gRRxX':'Grid\x20started','HOKaW':function(_0x4101c2,_0x45937d){return _0x4101c2===_0x45937d;},'iIHmN':_0x28b24a(0x1f5),'YTQvY':_0x28b24a(0x1f7),'WtiIo':function(_0x44968f,_0x31b2e2){return _0x44968f===_0x31b2e2;},'pMCBT':_0x28b24a(0x223),'YmolX':_0x28b24a(0x1fe)};let _0x5a05ce;try{!_0x39dda1[_0x28b24a(0x20b)]&&(logger[_0x28b24a(0x1e6)](_0x3a7832['PwgTn']),process['exit'](0x1));!fs[_0x28b24a(0x1ed)](_0x3a7832[_0x28b24a(0x21b)](getCredentialsPath))&&(logger[_0x28b24a(0x1e6)](_0x3a7832['BLUfd']),await _0x3a7832[_0x28b24a(0x228)](sendInstrumentationEvent,_0x39dda1,_0x3a7832[_0x28b24a(0x22a)],messageTypes[_0x28b24a(0x232)],_0x3a7832[_0x28b24a(0x220)],null,_0x39dda1),process[_0x28b24a(0x23a)](0x1));logger[_0x28b24a(0x218)]('Starting\x20grid\x20'+_0x39dda1[_0x28b24a(0x20b)]),await _0x3a7832[_0x28b24a(0x1f1)](sendInstrumentationEvent,_0x39dda1,_0x3a7832[_0x28b24a(0x22a)],messageTypes[_0x28b24a(0x215)],null,null,_0x39dda1);const _0x361993=JSON[_0x28b24a(0x20d)](fs[_0x28b24a(0x22b)](_0x3a7832[_0x28b24a(0x22d)](getCredentialsPath)));global_registry['bstackUsername']=_0x361993['Browserstack']['username'],global_registry[_0x28b24a(0x230)]=_0x361993['Browserstack'][_0x28b24a(0x21f)];const _0x6feedb=WS_ENDPOINT[_0x28b24a(0x217)](_0x3a7832[_0x28b24a(0x224)],_0x361993[_0x28b24a(0x200)][_0x28b24a(0x22f)])[_0x28b24a(0x217)](_0x3a7832[_0x28b24a(0x221)],_0x361993[_0x28b24a(0x200)][_0x28b24a(0x21f)]),_0x5e26c1={};_0x5e26c1[_0x28b24a(0x201)]=ws,_0x5e26c1[_0x28b24a(0x20c)]=0x36ee80,_0x5a05ce=new ReconnectingWebSocket(_0x6feedb,[],_0x5e26c1),logger['debug'](_0x3a7832[_0x28b24a(0x1f8)]),webSocketUtils[_0x28b24a(0x21d)](_0x5a05ce,_0x39dda1['user'],_0x39dda1[_0x28b24a(0x21f)]);const [_0x13307b,_0x2cd481]=await _0x3a7832['fuDGx'](getGridDetails,_0x361993[_0x28b24a(0x200)][_0x28b24a(0x22f)],_0x361993[_0x28b24a(0x200)][_0x28b24a(0x21f)],_0x39dda1[_0x28b24a(0x20b)]);if(_0x2cd481){const _0x23ff54=_0x2cd481[_0x28b24a(0x218)];global_registry[_0x28b24a(0x211)]=_0x23ff54['cloudProvider'],global_registry[_0x28b24a(0x1f9)]=_0x23ff54['region'],global_registry[_0x28b24a(0x206)]=_0x23ff54[_0x28b24a(0x206)];const _0x1db983=await _0x3a7832['xDZCQ'](getCloudProviderObject,_0x23ff54[_0x28b24a(0x211)],_0x23ff54[_0x28b24a(0x206)],_0x23ff54[_0x28b24a(0x21c)],_0x5a05ce,webSocketUtils,_0x39dda1),[_0x337f76,_0x4cd9f5,_0x5f09fe,_0x314f5e,_0x4286a3,_0x14c7ac]=await _0x3a7832[_0x28b24a(0x239)](createK8sClient,_0x1db983,_0x39dda1[_0x28b24a(0x1ef)]);await _0x3a7832[_0x28b24a(0x212)](scaleUpHubDeployment,_0x4cd9f5,_0x23ff54['name']),logger[_0x28b24a(0x218)](_0x3a7832['gRRxX']),process[_0x28b24a(0x23a)](0x0);}_0x3a7832[_0x28b24a(0x202)](_0x13307b[_0x28b24a(0x229)],0x191)&&(logger[_0x28b24a(0x1e6)](_0x3a7832[_0x28b24a(0x219)]),await _0x3a7832['VyIOY'](sendInstrumentationEvent,_0x39dda1,_0x3a7832['MWkgo'],messageTypes[_0x28b24a(0x232)],_0x3a7832[_0x28b24a(0x238)],null,_0x39dda1),process[_0x28b24a(0x23a)](0x1)),_0x3a7832['WtiIo'](_0x13307b[_0x28b24a(0x229)],0x190)&&(logger['error'](JSON['parse'](_0x13307b['body'])['message']),await _0x3a7832[_0x28b24a(0x228)](sendInstrumentationEvent,_0x39dda1,_0x3a7832[_0x28b24a(0x22a)],messageTypes[_0x28b24a(0x232)],_0x3a7832[_0x28b24a(0x1e2)],null,_0x39dda1),process[_0x28b24a(0x23a)](0x1)),logger[_0x28b24a(0x1e6)](_0x28b24a(0x214)+JSON[_0x28b24a(0x1ec)](_0x13307b)),await _0x3a7832[_0x28b24a(0x228)](sendInstrumentationEvent,_0x39dda1,_0x3a7832[_0x28b24a(0x22a)],messageTypes[_0x28b24a(0x232)],_0x3a7832['YmolX'],_0x13307b,_0x39dda1),process[_0x28b24a(0x23a)](0x1);}catch(_0x2076f0){const _0x1b7706='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x2076f0+'\x20\x0a'+JSON['stringify'](_0x2076f0[_0x28b24a(0x1e9)])+'\x20';logger[_0x28b24a(0x1e6)](_0x1b7706),process[_0x28b24a(0x23a)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x4908(_0x13b4ce,_0x48f518){const _0x2a7d38=a20_0x2a7d();return a20_0x4908=function(_0x490869,_0x5542ba){_0x490869=_0x490869-0x16c;let _0x598a07=_0x2a7d38[_0x490869];return _0x598a07;},a20_0x4908(_0x13b4ce,_0x48f518);}const a20_0x6e6c5=a20_0x4908;(function(_0x5cfd29,_0x28d2f6){const _0x18f06e=a20_0x4908,_0x3d6f65=_0x5cfd29();while(!![]){try{const _0x8d3ef2=-parseInt(_0x18f06e(0x17d))/0x1+-parseInt(_0x18f06e(0x16d))/0x2+-parseInt(_0x18f06e(0x16f))/0x3*(-parseInt(_0x18f06e(0x179))/0x4)+-parseInt(_0x18f06e(0x17e))/0x5*(-parseInt(_0x18f06e(0x16e))/0x6)+-parseInt(_0x18f06e(0x175))/0x7*(parseInt(_0x18f06e(0x171))/0x8)+-parseInt(_0x18f06e(0x170))/0x9+parseInt(_0x18f06e(0x180))/0xa;if(_0x8d3ef2===_0x28d2f6)break;else _0x3d6f65['push'](_0x3d6f65['shift']());}catch(_0x3d9d90){_0x3d6f65['push'](_0x3d6f65['shift']());}}}(a20_0x2a7d,0x2b73e));function a20_0x2a7d(){const _0x27d8c5=['recommendCommands','command','stop','122517izmCTQ','2475fKSqMR','stop_commands','5155150umMBlp','demandCommand','desc','TrVxj','strict','commandDir','392300ryzWiR','2994xtbzaI','6150lBfiOu','2210787fwHEew','336daHiEI','epilogue','vTGTI','../config/constants','52913qqXzTo','handler','help','Stop\x20a\x20running\x20Automation\x20grid.','580jTJRaZ'];a20_0x2a7d=function(){return _0x27d8c5;};return a20_0x2a7d();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x6e6c5(0x174));exports[a20_0x6e6c5(0x17b)]=a20_0x6e6c5(0x17c),exports[a20_0x6e6c5(0x182)]=a20_0x6e6c5(0x178),exports['builder']=function(_0x512220){const _0x14e648=a20_0x6e6c5,_0x58ef7a={};_0x58ef7a[_0x14e648(0x183)]=_0x14e648(0x17f),_0x58ef7a[_0x14e648(0x173)]=_0x14e648(0x177);const _0x2d74df=_0x58ef7a;return _0x512220['usage'](HELP_HEADER_MESSAGE[_0x14e648(0x17c)])[_0x14e648(0x172)](HELP_FOOTER_MESSAGE)[_0x14e648(0x16c)](_0x2d74df[_0x14e648(0x183)])[_0x14e648(0x181)]()[_0x14e648(0x17a)]()[_0x14e648(0x184)]()['help'](_0x2d74df[_0x14e648(0x173)]);},exports[a20_0x6e6c5(0x176)]=function(_0x5adc1b){};
1
+ const a20_0x1ec2e4=a20_0x42df;(function(_0x25490e,_0x42c7ec){const _0x1ae3af=a20_0x42df,_0xe28ef9=_0x25490e();while(!![]){try{const _0x578afd=-parseInt(_0x1ae3af(0x1c9))/0x1*(-parseInt(_0x1ae3af(0x1d5))/0x2)+parseInt(_0x1ae3af(0x1c3))/0x3+parseInt(_0x1ae3af(0x1cb))/0x4+-parseInt(_0x1ae3af(0x1d2))/0x5+-parseInt(_0x1ae3af(0x1c7))/0x6+parseInt(_0x1ae3af(0x1bf))/0x7+-parseInt(_0x1ae3af(0x1ce))/0x8;if(_0x578afd===_0x42c7ec)break;else _0xe28ef9['push'](_0xe28ef9['shift']());}catch(_0x28d388){_0xe28ef9['push'](_0xe28ef9['shift']());}}}(a20_0x189e,0x1cfb9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1ec2e4(0x1c4));exports[a20_0x1ec2e4(0x1be)]=a20_0x1ec2e4(0x1c1),exports[a20_0x1ec2e4(0x1bd)]=a20_0x1ec2e4(0x1cc),exports[a20_0x1ec2e4(0x1cf)]=function(_0x1c911d){const _0x324902=a20_0x1ec2e4,_0x303450={};_0x303450['yBTql']=_0x324902(0x1d4),_0x303450[_0x324902(0x1c0)]=_0x324902(0x1cd);const _0x359a4d=_0x303450;return _0x1c911d[_0x324902(0x1d1)](HELP_HEADER_MESSAGE[_0x324902(0x1c1)])[_0x324902(0x1c2)](HELP_FOOTER_MESSAGE)[_0x324902(0x1d0)](_0x359a4d[_0x324902(0x1c8)])[_0x324902(0x1d3)]()[_0x324902(0x1c6)]()[_0x324902(0x1c5)]()[_0x324902(0x1cd)](_0x359a4d['qMAKw']);},exports[a20_0x1ec2e4(0x1ca)]=function(_0x4eaaa7){};function a20_0x42df(_0x3a4d1c,_0x505859){const _0x189e1e=a20_0x189e();return a20_0x42df=function(_0x42df76,_0x58c3e2){_0x42df76=_0x42df76-0x1bd;let _0x256b37=_0x189e1e[_0x42df76];return _0x256b37;},a20_0x42df(_0x3a4d1c,_0x505859);}function a20_0x189e(){const _0x68e09e=['217105utlMsK','qMAKw','stop','epilogue','439575Oaqpna','../config/constants','strict','recommendCommands','230334XteooU','yBTql','113489JHIOrp','handler','644556XqqJjh','Stop\x20a\x20running\x20Automation\x20grid.','help','2758936fwdJNf','builder','commandDir','usage','318440DjkmHv','demandCommand','stop_commands','4xhBXBD','desc','command'];a20_0x189e=function(){return _0x68e09e;};return a20_0x189e();}
@@ -1 +1 @@
1
- const a21_0xdf6f2d=a21_0x471b;function a21_0x471b(_0x555126,_0x3d19b6){const _0x14a5ed=a21_0x14a5();return a21_0x471b=function(_0x471b56,_0x17e20a){_0x471b56=_0x471b56-0x17d;let _0x4d7257=_0x14a5ed[_0x471b56];return _0x4d7257;},a21_0x471b(_0x555126,_0x3d19b6);}(function(_0x358da1,_0x1e64b1){const _0x5e36a1=a21_0x471b,_0x41d674=_0x358da1();while(!![]){try{const _0x11419b=-parseInt(_0x5e36a1(0x1c9))/0x1+-parseInt(_0x5e36a1(0x1cc))/0x2+-parseInt(_0x5e36a1(0x1bf))/0x3+-parseInt(_0x5e36a1(0x18c))/0x4*(-parseInt(_0x5e36a1(0x1ac))/0x5)+parseInt(_0x5e36a1(0x1d9))/0x6*(-parseInt(_0x5e36a1(0x1ce))/0x7)+parseInt(_0x5e36a1(0x1d7))/0x8*(parseInt(_0x5e36a1(0x1af))/0x9)+parseInt(_0x5e36a1(0x190))/0xa;if(_0x11419b===_0x1e64b1)break;else _0x41d674['push'](_0x41d674['shift']());}catch(_0x4d2c5a){_0x41d674['push'](_0x41d674['shift']());}}}(a21_0x14a5,0xcbc2a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0xdf6f2d(0x19c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0xdf6f2d(0x1c1)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0xdf6f2d(0x184)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x14a5(){const _0x353496=['usage','stop-grid-called','<UsernamePlaceholder>','wzlCP','username','ERROR','yjSee','4938633WrukAA','kJFil','../../config/constants','HRJzb','epilogue','help','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','<PasswordPlaceholder>','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','101589Xwczks','handler','grid','1351920LRbXdJ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','72317LGBHmT','error','Browserstack','info','addListeners','init-not-called','grid-id','CFibH','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1480ehSmTw','existsSync','294WAjGXx','description','skip-tls-cert-verify','Adding\x20Websocket\x20listeners','desc','stringify','bstackAccesskey','clusterRegion','../../utils/gridComponents','body','exit','kluRF','parse','message','cloudProvider','yBftV','4SMloJk','stack','MsNux','nmxoA','24262750OfrkoH','replace','unauthorised','bstackUsername','clusterName','YlZYe','rgyvu','XXqNY','enqfC','connectionTimeout','user','Skip\x20insecure\x20cert\x20verification.','reconnecting-websocket','command','Hbtpl','AzrLH','server-error','Stop\x20a\x20running\x20Automation\x20grid.','Grid\x20stoppped.','name','readFileSync','boolean','string','ohhdQ','Eyeoj','GVqIy','type','BGuUG','1954605nhGnJO','skipTlsCertVerify','INFO','46089qCWEJq','IWqBL','statusCode','jwJGL','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','password','argv','LlbQH','gridId'];a21_0x14a5=function(){return _0x353496;};return a21_0x14a5();}exports[a21_0xdf6f2d(0x19d)]=a21_0xdf6f2d(0x1cb),exports[a21_0xdf6f2d(0x180)]=a21_0xdf6f2d(0x1a1),exports['builder']=function(_0x1a82dc){const _0x41e6e3=a21_0xdf6f2d,_0x56a296={};_0x56a296[_0x41e6e3(0x1ab)]=_0x41e6e3(0x1c5),_0x56a296[_0x41e6e3(0x1bb)]=_0x41e6e3(0x1a6),_0x56a296['yjSee']=_0x41e6e3(0x19b),_0x56a296[_0x41e6e3(0x1b6)]=_0x41e6e3(0x1a5),_0x56a296[_0x41e6e3(0x1a7)]='help';const _0x17b12b=_0x56a296,_0x20dbee={};_0x20dbee[_0x41e6e3(0x17d)]=_0x17b12b[_0x41e6e3(0x1ab)],_0x20dbee['type']=_0x17b12b[_0x41e6e3(0x1bb)];const _0x344125={};_0x344125[_0x41e6e3(0x17d)]=_0x17b12b[_0x41e6e3(0x1be)],_0x344125[_0x41e6e3(0x1aa)]=_0x17b12b[_0x41e6e3(0x1b6)],_0x344125['default']=![];const _0x2047a2={};return _0x2047a2[_0x41e6e3(0x1d4)]=_0x20dbee,_0x2047a2[_0x41e6e3(0x17e)]=_0x344125,_0x1a82dc[_0x41e6e3(0x1b8)](HELP_HEADER_MESSAGE['stop'])[_0x41e6e3(0x1c3)](HELP_FOOTER_MESSAGE)[_0x41e6e3(0x1c7)](_0x2047a2)[_0x41e6e3(0x1c4)](_0x17b12b['ohhdQ'])[_0x41e6e3(0x1b5)];},exports[a21_0xdf6f2d(0x1ca)]=async function(_0x13cf93){const _0x32fa74=a21_0xdf6f2d,_0x4ca3ae={'Eyeoj':_0x32fa74(0x1cd),'kluRF':function(_0x411415){return _0x411415();},'cyvSK':_0x32fa74(0x1c8),'nmxoA':function(_0x21147f,_0x8ee122,_0x3f45ef,_0x191142,_0x3fd3ed,_0x467331,_0x11ead1){return _0x21147f(_0x8ee122,_0x3f45ef,_0x191142,_0x3fd3ed,_0x467331,_0x11ead1);},'yBftV':_0x32fa74(0x1b9),'rgyvu':_0x32fa74(0x1d3),'Hbtpl':function(_0x17369d){return _0x17369d();},'GlHDz':_0x32fa74(0x1ba),'wITEB':_0x32fa74(0x1c6),'jwJGL':_0x32fa74(0x17f),'chQPA':function(_0x58847a,_0x3d78b7,_0x26ad12,_0xac97b8){return _0x58847a(_0x3d78b7,_0x26ad12,_0xac97b8);},'MsNux':function(_0x370d8a,_0x48876a,_0x175b8f,_0x3b2848,_0x24978a,_0x559c32,_0x468f33){return _0x370d8a(_0x48876a,_0x175b8f,_0x3b2848,_0x24978a,_0x559c32,_0x468f33);},'kJFil':function(_0x65bfec,_0x3f33b7,_0x4b0543){return _0x65bfec(_0x3f33b7,_0x4b0543);},'CFibH':function(_0x331af8,_0x4fe099,_0x5598e2){return _0x331af8(_0x4fe099,_0x5598e2);},'HRJzb':_0x32fa74(0x1a2),'enqfC':function(_0x3e3bc3,_0x468177){return _0x3e3bc3===_0x468177;},'IWqBL':_0x32fa74(0x1d6),'YlZYe':_0x32fa74(0x192),'XXqNY':function(_0x569922,_0xbfff5e,_0x5eb464,_0x3443e7,_0x1a5286,_0x5a4901,_0x388611){return _0x569922(_0xbfff5e,_0x5eb464,_0x3443e7,_0x1a5286,_0x5a4901,_0x388611);},'AzrLH':'invalid-grid-id','GVqIy':_0x32fa74(0x1a0)};let _0x4c649f;try{!_0x13cf93[_0x32fa74(0x1b7)]&&(logger[_0x32fa74(0x1cf)](_0x4ca3ae[_0x32fa74(0x1a8)]),process[_0x32fa74(0x186)](0x1));!fs[_0x32fa74(0x1d8)](_0x4ca3ae[_0x32fa74(0x187)](getCredentialsPath))&&(logger[_0x32fa74(0x1cf)](_0x4ca3ae['cyvSK']),await _0x4ca3ae[_0x32fa74(0x18f)](sendInstrumentationEvent,_0x13cf93,_0x4ca3ae[_0x32fa74(0x18b)],messageTypes['ERROR'],_0x4ca3ae[_0x32fa74(0x196)],null,_0x13cf93),process[_0x32fa74(0x186)](0x1));logger['info']('Stopping\x20grid\x20'+_0x13cf93[_0x32fa74(0x1b7)]),await _0x4ca3ae['nmxoA'](sendInstrumentationEvent,_0x13cf93,_0x4ca3ae['yBftV'],messageTypes[_0x32fa74(0x1ae)],null,null,_0x13cf93);const _0x1bf97f=JSON['parse'](fs[_0x32fa74(0x1a4)](_0x4ca3ae[_0x32fa74(0x19e)](getCredentialsPath)));global_registry[_0x32fa74(0x193)]=_0x1bf97f[_0x32fa74(0x1d0)][_0x32fa74(0x1bc)],global_registry[_0x32fa74(0x182)]=_0x1bf97f['Browserstack'][_0x32fa74(0x1b4)];const _0x334520=WS_ENDPOINT[_0x32fa74(0x191)](_0x4ca3ae['GlHDz'],_0x1bf97f[_0x32fa74(0x1d0)][_0x32fa74(0x1bc)])[_0x32fa74(0x191)](_0x4ca3ae['wITEB'],_0x1bf97f[_0x32fa74(0x1d0)]['password']),_0x1c46f9={};_0x1c46f9['WebSocket']=ws,_0x1c46f9[_0x32fa74(0x199)]=0x36ee80,_0x4c649f=new ReconnectingWebSocket(_0x334520,[],_0x1c46f9),logger['debug'](_0x4ca3ae[_0x32fa74(0x1b2)]),webSocketUtils[_0x32fa74(0x1d2)](_0x4c649f,_0x13cf93[_0x32fa74(0x19a)],_0x13cf93['password']);const [_0xde5ca2,_0x3f681b]=await _0x4ca3ae['chQPA'](getGridDetails,_0x1bf97f[_0x32fa74(0x1d0)][_0x32fa74(0x1bc)],_0x1bf97f['Browserstack'][_0x32fa74(0x1b4)],_0x13cf93['gridId']);if(_0x3f681b){const _0x339a4f=_0x3f681b[_0x32fa74(0x1d1)];global_registry['cloudProvider']=_0x339a4f[_0x32fa74(0x18a)],global_registry[_0x32fa74(0x183)]=_0x339a4f['region'],global_registry[_0x32fa74(0x194)]=_0x339a4f['clusterName'];const _0x1fbae0=await _0x4ca3ae['MsNux'](getCloudProviderObject,_0x339a4f[_0x32fa74(0x18a)],_0x339a4f[_0x32fa74(0x194)],_0x339a4f[_0x32fa74(0x1a3)],_0x4c649f,webSocketUtils,_0x13cf93),[_0x79ea67,_0x52aa28,_0x17f6a0,_0x35e4e6,_0x5374be,_0xd21e94]=await _0x4ca3ae[_0x32fa74(0x1c0)](createK8sClient,_0x1fbae0,_0x13cf93[_0x32fa74(0x1ad)]);await _0x4ca3ae[_0x32fa74(0x1d5)](scaleDownHubDeployment,_0x52aa28,_0x339a4f[_0x32fa74(0x1a3)]),logger[_0x32fa74(0x1d1)](_0x4ca3ae[_0x32fa74(0x1c2)]),process[_0x32fa74(0x186)](0x0);}_0x4ca3ae[_0x32fa74(0x198)](_0xde5ca2[_0x32fa74(0x1b1)],0x191)&&(logger[_0x32fa74(0x1cf)](_0x4ca3ae[_0x32fa74(0x1b0)]),await _0x4ca3ae[_0x32fa74(0x18e)](sendInstrumentationEvent,_0x13cf93,_0x4ca3ae[_0x32fa74(0x18b)],messageTypes[_0x32fa74(0x1bd)],_0x4ca3ae[_0x32fa74(0x195)],null,_0x13cf93),process[_0x32fa74(0x186)](0x1)),_0x4ca3ae[_0x32fa74(0x198)](_0xde5ca2[_0x32fa74(0x1b1)],0x190)&&(logger['error'](JSON[_0x32fa74(0x188)](_0xde5ca2[_0x32fa74(0x185)])[_0x32fa74(0x189)]),await _0x4ca3ae[_0x32fa74(0x197)](sendInstrumentationEvent,_0x13cf93,_0x4ca3ae[_0x32fa74(0x18b)],messageTypes['ERROR'],_0x4ca3ae[_0x32fa74(0x19f)],null,_0x13cf93),process[_0x32fa74(0x186)](0x1)),logger[_0x32fa74(0x1cf)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x32fa74(0x181)](_0xde5ca2)),await _0x4ca3ae[_0x32fa74(0x18f)](sendInstrumentationEvent,_0x13cf93,_0x4ca3ae['yBftV'],messageTypes['ERROR'],_0x4ca3ae[_0x32fa74(0x1a9)],_0xde5ca2,_0x13cf93),process[_0x32fa74(0x186)](0x1);}catch(_0x5f25d8){const _0xf665c0=_0x32fa74(0x1b3)+_0x5f25d8+'\x20\x0a'+JSON[_0x32fa74(0x181)](_0x5f25d8[_0x32fa74(0x18d)])+'\x20';logger['error'](_0xf665c0),process['exit'](0x1);}};
1
+ function a21_0x396a(){const _0x5e7aeb=['reconnecting-websocket','AWjVK','12234qULVei','../../utils/instrumentationUtils','info','Skip\x20insecure\x20cert\x20verification.','24gILHsU','371620OsFIGq','EhgmK','argv','../../cloudproviders/utils','Kgnvj','cloudProvider','username','xfXiW','stringify','replace','TZLmb','region','clusterName','Stop\x20a\x20running\x20Automation\x20grid.','command','EWoos','wEvgn','KuXwz','Stopping\x20grid\x20','name','../../utils/webSocketUtils','ERROR','gridId','server-error','skipTlsCertVerify','help','description','skip-tls-cert-verify','debug','../../config/logger','epilogue','LmNKl','UrVvn','../../utils/createk8sClient','1914108CsHADF','desc','addListeners','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','169748liSGJG','2963240wQSlGn','INFO','../../utils/utilityMethods','statusCode','unauthorised','readFileSync','ytBsV','stop','IBwJW','kECar','1594545GdgrKN','existsSync','WebSocket','type','default','Sabms','Grid\x20stoppped.','519477chcdhT','error','password','<PasswordPlaceholder>','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','UIowh','body','stop-grid-called','parse','XRPvM','../../config/constants','boolean','user','options','builder','exit','../../utils/gridComponents','init-not-called','vjEwH','Browserstack','<UsernamePlaceholder>','bstackUsername','bstackAccesskey','invalid-grid-id'];a21_0x396a=function(){return _0x5e7aeb;};return a21_0x396a();}const a21_0x2657c7=a21_0x4b51;(function(_0x4da59f,_0x1f8584){const _0x3ec70e=a21_0x4b51,_0x4d603c=_0x4da59f();while(!![]){try{const _0x42b892=-parseInt(_0x3ec70e(0x1ad))/0x1+parseInt(_0x3ec70e(0x186))/0x2*(parseInt(_0x3ec70e(0x182))/0x3)+parseInt(_0x3ec70e(0x187))/0x4+parseInt(_0x3ec70e(0x1b8))/0x5+parseInt(_0x3ec70e(0x1a9))/0x6+-parseInt(_0x3ec70e(0x168))/0x7+-parseInt(_0x3ec70e(0x1ae))/0x8;if(_0x42b892===_0x1f8584)break;else _0x4d603c['push'](_0x4d603c['shift']());}catch(_0x311e21){_0x4d603c['push'](_0x4d603c['shift']());}}}(a21_0x396a,0x2861c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2657c7(0x180)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2657c7(0x172)),{logger}=require(a21_0x2657c7(0x1a4)),{getCredentialsPath,getGridDetails}=require(a21_0x2657c7(0x1b0)),{scaleDownHubDeployment}=require(a21_0x2657c7(0x178)),{sendInstrumentationEvent}=require(a21_0x2657c7(0x183)),webSocketUtils=require(a21_0x2657c7(0x19b)),{createK8sClient}=require(a21_0x2657c7(0x1a8)),{getCloudProviderObject}=require(a21_0x2657c7(0x18a));function a21_0x4b51(_0x473169,_0x1d8904){const _0x396ade=a21_0x396a();return a21_0x4b51=function(_0x4b51c6,_0x5de882){_0x4b51c6=_0x4b51c6-0x165;let _0x26e2d0=_0x396ade[_0x4b51c6];return _0x26e2d0;},a21_0x4b51(_0x473169,_0x1d8904);}exports[a21_0x2657c7(0x195)]='grid',exports[a21_0x2657c7(0x1aa)]=a21_0x2657c7(0x194),exports[a21_0x2657c7(0x176)]=function(_0x178869){const _0x5b35df=a21_0x2657c7,_0xe21107={};_0xe21107[_0x5b35df(0x1b6)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0xe21107[_0x5b35df(0x171)]='string',_0xe21107['nrRaI']=_0x5b35df(0x185),_0xe21107[_0x5b35df(0x198)]=_0x5b35df(0x173),_0xe21107[_0x5b35df(0x17a)]=_0x5b35df(0x1a0);const _0x1c2fdc=_0xe21107,_0x44df38={};_0x44df38['description']=_0x1c2fdc[_0x5b35df(0x1b6)],_0x44df38[_0x5b35df(0x1bb)]=_0x1c2fdc[_0x5b35df(0x171)];const _0x46d1b2={};_0x46d1b2[_0x5b35df(0x1a1)]=_0x1c2fdc['nrRaI'],_0x46d1b2[_0x5b35df(0x1bb)]=_0x1c2fdc[_0x5b35df(0x198)],_0x46d1b2[_0x5b35df(0x165)]=![];const _0x5ca0b7={};return _0x5ca0b7['grid-id']=_0x44df38,_0x5ca0b7[_0x5b35df(0x1a2)]=_0x46d1b2,_0x178869['usage'](HELP_HEADER_MESSAGE[_0x5b35df(0x1b5)])[_0x5b35df(0x1a5)](HELP_FOOTER_MESSAGE)[_0x5b35df(0x175)](_0x5ca0b7)[_0x5b35df(0x1a0)](_0x1c2fdc[_0x5b35df(0x17a)])[_0x5b35df(0x189)];},exports['handler']=async function(_0xa716ef){const _0x849cf9=a21_0x2657c7,_0x34bbd1={'oCDXC':_0x849cf9(0x1ac),'UIowh':function(_0x2bb99c){return _0x2bb99c();},'xfXiW':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fWqTQ':function(_0x13706d,_0x230956,_0xa9661f,_0x7d6d3e,_0x5a2705,_0x2cb19f,_0x365005){return _0x13706d(_0x230956,_0xa9661f,_0x7d6d3e,_0x5a2705,_0x2cb19f,_0x365005);},'LmNKl':_0x849cf9(0x16f),'EhgmK':_0x849cf9(0x179),'KYlOs':function(_0x1c57f9,_0x150b5e,_0x2ca6c3,_0x58a7ea,_0x194857,_0x1a87ef,_0x2c486a){return _0x1c57f9(_0x150b5e,_0x2ca6c3,_0x58a7ea,_0x194857,_0x1a87ef,_0x2c486a);},'mCMme':_0x849cf9(0x17c),'Sabms':_0x849cf9(0x16b),'TZLmb':'Adding\x20Websocket\x20listeners','cYqAx':function(_0x509455,_0x2857c1,_0x37885b,_0x5900df){return _0x509455(_0x2857c1,_0x37885b,_0x5900df);},'ytBsV':function(_0x48a308,_0x3c27a5,_0x2c0d78){return _0x48a308(_0x3c27a5,_0x2c0d78);},'AWjVK':_0x849cf9(0x167),'kECar':function(_0x4e9d8c,_0x423806){return _0x4e9d8c===_0x423806;},'Kgnvj':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','UrVvn':function(_0x53ba58,_0x839c56,_0x49b2ca,_0x4aebb8,_0x3e0220,_0x2b5922,_0x45a0bd){return _0x53ba58(_0x839c56,_0x49b2ca,_0x4aebb8,_0x3e0220,_0x2b5922,_0x45a0bd);},'vrrEl':_0x849cf9(0x1b2),'wEvgn':function(_0x148f15,_0x5a564c,_0x1df639,_0x2d5cc4,_0x2f886e,_0x384d91,_0x3da6c1){return _0x148f15(_0x5a564c,_0x1df639,_0x2d5cc4,_0x2f886e,_0x384d91,_0x3da6c1);},'ydAEk':_0x849cf9(0x17f),'TYRJp':function(_0x4427ed,_0x1bcd1f,_0x57c5bb,_0x2675e4,_0x15f271,_0x5eb9a2,_0x1d1547){return _0x4427ed(_0x1bcd1f,_0x57c5bb,_0x2675e4,_0x15f271,_0x5eb9a2,_0x1d1547);},'EWoos':_0x849cf9(0x19e)};let _0x24a8cc;try{!_0xa716ef[_0x849cf9(0x19d)]&&(logger[_0x849cf9(0x169)](_0x34bbd1['oCDXC']),process['exit'](0x1));!fs[_0x849cf9(0x1b9)](_0x34bbd1[_0x849cf9(0x16d)](getCredentialsPath))&&(logger['error'](_0x34bbd1[_0x849cf9(0x18e)]),await _0x34bbd1['fWqTQ'](sendInstrumentationEvent,_0xa716ef,_0x34bbd1[_0x849cf9(0x1a6)],messageTypes[_0x849cf9(0x19c)],_0x34bbd1[_0x849cf9(0x188)],null,_0xa716ef),process['exit'](0x1));logger[_0x849cf9(0x184)](_0x849cf9(0x199)+_0xa716ef[_0x849cf9(0x19d)]),await _0x34bbd1['KYlOs'](sendInstrumentationEvent,_0xa716ef,_0x34bbd1[_0x849cf9(0x1a6)],messageTypes[_0x849cf9(0x1af)],null,null,_0xa716ef);const _0x45eab4=JSON[_0x849cf9(0x170)](fs[_0x849cf9(0x1b3)](_0x34bbd1[_0x849cf9(0x16d)](getCredentialsPath)));global_registry[_0x849cf9(0x17d)]=_0x45eab4[_0x849cf9(0x17b)][_0x849cf9(0x18d)],global_registry[_0x849cf9(0x17e)]=_0x45eab4[_0x849cf9(0x17b)][_0x849cf9(0x16a)];const _0x5f0909=WS_ENDPOINT[_0x849cf9(0x190)](_0x34bbd1['mCMme'],_0x45eab4['Browserstack'][_0x849cf9(0x18d)])[_0x849cf9(0x190)](_0x34bbd1[_0x849cf9(0x166)],_0x45eab4[_0x849cf9(0x17b)][_0x849cf9(0x16a)]),_0x2336af={};_0x2336af[_0x849cf9(0x1ba)]=ws,_0x2336af['connectionTimeout']=0x36ee80,_0x24a8cc=new ReconnectingWebSocket(_0x5f0909,[],_0x2336af),logger[_0x849cf9(0x1a3)](_0x34bbd1[_0x849cf9(0x191)]),webSocketUtils[_0x849cf9(0x1ab)](_0x24a8cc,_0xa716ef[_0x849cf9(0x174)],_0xa716ef['password']);const [_0x3aafbb,_0x3a4eec]=await _0x34bbd1['cYqAx'](getGridDetails,_0x45eab4['Browserstack'][_0x849cf9(0x18d)],_0x45eab4[_0x849cf9(0x17b)]['password'],_0xa716ef[_0x849cf9(0x19d)]);if(_0x3a4eec){const _0x4b33af=_0x3a4eec[_0x849cf9(0x184)];global_registry[_0x849cf9(0x18c)]=_0x4b33af[_0x849cf9(0x18c)],global_registry['clusterRegion']=_0x4b33af[_0x849cf9(0x192)],global_registry[_0x849cf9(0x193)]=_0x4b33af[_0x849cf9(0x193)];const _0x545636=await _0x34bbd1['KYlOs'](getCloudProviderObject,_0x4b33af[_0x849cf9(0x18c)],_0x4b33af[_0x849cf9(0x193)],_0x4b33af['name'],_0x24a8cc,webSocketUtils,_0xa716ef),[_0x3298b8,_0x5b76b2,_0x1e75ee,_0x347222,_0x2300a5,_0x3a908d]=await _0x34bbd1['ytBsV'](createK8sClient,_0x545636,_0xa716ef[_0x849cf9(0x19f)]);await _0x34bbd1[_0x849cf9(0x1b4)](scaleDownHubDeployment,_0x5b76b2,_0x4b33af[_0x849cf9(0x19a)]),logger['info'](_0x34bbd1[_0x849cf9(0x181)]),process[_0x849cf9(0x177)](0x0);}_0x34bbd1[_0x849cf9(0x1b7)](_0x3aafbb['statusCode'],0x191)&&(logger['error'](_0x34bbd1[_0x849cf9(0x18b)]),await _0x34bbd1[_0x849cf9(0x1a7)](sendInstrumentationEvent,_0xa716ef,_0x34bbd1[_0x849cf9(0x1a6)],messageTypes['ERROR'],_0x34bbd1['vrrEl'],null,_0xa716ef),process[_0x849cf9(0x177)](0x1)),_0x34bbd1[_0x849cf9(0x1b7)](_0x3aafbb[_0x849cf9(0x1b1)],0x190)&&(logger[_0x849cf9(0x169)](JSON['parse'](_0x3aafbb[_0x849cf9(0x16e)])['message']),await _0x34bbd1[_0x849cf9(0x197)](sendInstrumentationEvent,_0xa716ef,_0x34bbd1[_0x849cf9(0x1a6)],messageTypes['ERROR'],_0x34bbd1['ydAEk'],null,_0xa716ef),process['exit'](0x1)),logger[_0x849cf9(0x169)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x3aafbb)),await _0x34bbd1['TYRJp'](sendInstrumentationEvent,_0xa716ef,_0x34bbd1['LmNKl'],messageTypes[_0x849cf9(0x19c)],_0x34bbd1[_0x849cf9(0x196)],_0x3aafbb,_0xa716ef),process[_0x849cf9(0x177)](0x1);}catch(_0x13b14e){const _0x34aa19=_0x849cf9(0x16c)+_0x13b14e+'\x20\x0a'+JSON[_0x849cf9(0x18f)](_0x13b14e['stack'])+'\x20';logger[_0x849cf9(0x169)](_0x34aa19),process[_0x849cf9(0x177)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x36d686=a22_0xbbad;(function(_0x4b4ae2,_0x56849f){const _0xf70c82=a22_0xbbad,_0x54620a=_0x4b4ae2();while(!![]){try{const _0xf102d9=parseInt(_0xf70c82(0x1ab))/0x1+parseInt(_0xf70c82(0x1aa))/0x2*(-parseInt(_0xf70c82(0x19c))/0x3)+parseInt(_0xf70c82(0x199))/0x4*(-parseInt(_0xf70c82(0x19f))/0x5)+parseInt(_0xf70c82(0x186))/0x6+parseInt(_0xf70c82(0x1c2))/0x7+parseInt(_0xf70c82(0x19e))/0x8+parseInt(_0xf70c82(0x1a4))/0x9*(-parseInt(_0xf70c82(0x1cb))/0xa);if(_0xf102d9===_0x56849f)break;else _0x54620a['push'](_0x54620a['shift']());}catch(_0x2dfb2a){_0x54620a['push'](_0x54620a['shift']());}}}(a22_0x54f3,0xc870d),require('dotenv')[a22_0x36d686(0x1a8)](),exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x36d686(0x19a)]||'grid.browserstack.com',exports[a22_0x36d686(0x19d)]=process[a22_0x36d686(0x1a5)][a22_0x36d686(0x19d)]||a22_0x36d686(0x1a9),exports[a22_0x36d686(0x1c9)]=process[a22_0x36d686(0x1a5)][a22_0x36d686(0x1c9)]||a22_0x36d686(0x1da),exports[a22_0x36d686(0x18b)]=a22_0x36d686(0x1de)+this[a22_0x36d686(0x1c9)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x36d686(0x1ca)]=a22_0x36d686(0x18a),exports['IAM_USER_NAME']=a22_0x36d686(0x1c5),exports[a22_0x36d686(0x1c0)]=a22_0x36d686(0x1c6),exports[a22_0x36d686(0x1c3)]=a22_0x36d686(0x1b6),exports[a22_0x36d686(0x1b4)]=a22_0x36d686(0x1c1),exports[a22_0x36d686(0x1e2)]=a22_0x36d686(0x1d7),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x36d686(0x1af)]=a22_0x36d686(0x190),exports['AZURE']='azure',exports['GCP']=a22_0x36d686(0x19b),exports[a22_0x36d686(0x1c8)]=[this[a22_0x36d686(0x1c3)],this[a22_0x36d686(0x1b7)],this[a22_0x36d686(0x1db)]]);const a22_0xcd0a68={};a22_0xcd0a68[a22_0x36d686(0x185)]='browserstack:managedBy',a22_0xcd0a68[a22_0x36d686(0x1d9)]=a22_0x36d686(0x1bb);const a22_0x3d1cf2={};a22_0x3d1cf2[a22_0x36d686(0x185)]='browserstack:service',a22_0x3d1cf2[a22_0x36d686(0x1d9)]=a22_0x36d686(0x1d0);const common_hst_tags_list=[a22_0xcd0a68,a22_0x3d1cf2];if(process['env'][a22_0x36d686(0x1bd)]){const parsedTags=process[a22_0x36d686(0x1a5)][a22_0x36d686(0x1bd)]['split'](',');parsedTags[a22_0x36d686(0x1d2)](_0x3a50b5=>{const _0x1eeb32=a22_0x36d686,_0x29f05c=_0x3a50b5[_0x1eeb32(0x192)](':'),_0x5b36c5={};_0x5b36c5['Key']=_0x29f05c[0x0],_0x5b36c5[_0x1eeb32(0x1d9)]=_0x29f05c[0x1],common_hst_tags_list[_0x1eeb32(0x194)](_0x5b36c5);});}exports[a22_0x36d686(0x1dd)]=common_hst_tags_list;const a22_0x40ebaa={};a22_0x40ebaa[a22_0x36d686(0x1d6)]=a22_0x36d686(0x1bb),a22_0x40ebaa[a22_0x36d686(0x18d)]=a22_0x36d686(0x1d0),exports[a22_0x36d686(0x1d3)]=a22_0x40ebaa,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x4f7133={};a22_0x4f7133['LOG']=a22_0x36d686(0x1d4),a22_0x4f7133['RESOURCES']=a22_0x36d686(0x18c),a22_0x4f7133['GRID_URL']='gridUrl',a22_0x4f7133['CLI_RUN_STARTED']='cliRunStarted',a22_0x4f7133[a22_0x36d686(0x1b9)]=a22_0x36d686(0x1df),exports['WS_EVENTS']=a22_0x4f7133,exports[a22_0x36d686(0x197)]={},exports['LINK_MESSAGE']=a22_0x36d686(0x1b2);function a22_0xbbad(_0x1c40e0,_0x4b9b45){const _0x54f3c6=a22_0x54f3();return a22_0xbbad=function(_0xbbad6,_0x14de74){_0xbbad6=_0xbbad6-0x185;let _0x359cff=_0x54f3c6[_0xbbad6];return _0x359cff;},a22_0xbbad(_0x1c40e0,_0x4b9b45);}const a22_0x1ffc31={};a22_0x1ffc31[a22_0x36d686(0x1b3)]=a22_0x36d686(0x189)+this['LINK_MESSAGE'],a22_0x1ffc31['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x36d686(0x1cc)],a22_0x1ffc31[a22_0x36d686(0x1c4)]=a22_0x36d686(0x1d1)+this['LINK_MESSAGE'],a22_0x1ffc31['create']='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x1ffc31[a22_0x36d686(0x198)]={},a22_0x1ffc31[a22_0x36d686(0x1cd)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x1ffc31[a22_0x36d686(0x1cf)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0x1ffc31[a22_0x36d686(0x188)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x1ffc31[a22_0x36d686(0x1a7)]=a22_0x36d686(0x195)+this[a22_0x36d686(0x1cc)],a22_0x1ffc31[a22_0x36d686(0x1a1)]=a22_0x36d686(0x1a2)+this[a22_0x36d686(0x1cc)],a22_0x1ffc31[a22_0x36d686(0x198)]['root']=a22_0x36d686(0x1b0)+this['LINK_MESSAGE'],a22_0x1ffc31[a22_0x36d686(0x198)][a22_0x36d686(0x196)]=a22_0x36d686(0x1b8)+this[a22_0x36d686(0x1cc)],a22_0x1ffc31[a22_0x36d686(0x198)]['gridProfile']=a22_0x36d686(0x1be)+this['LINK_MESSAGE'],exports[a22_0x36d686(0x1e0)]=a22_0x1ffc31,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x1d46cf={};a22_0x1d46cf['SUCCESS']='success',a22_0x1d46cf[a22_0x36d686(0x1bc)]='error',a22_0x1d46cf[a22_0x36d686(0x1ae)]=a22_0x36d686(0x1e1),a22_0x1d46cf['WARNING']='warning',a22_0x1d46cf[a22_0x36d686(0x18e)]=a22_0x36d686(0x191),a22_0x1d46cf[a22_0x36d686(0x1ce)]=null,exports[a22_0x36d686(0x1d5)]=a22_0x1d46cf,exports[a22_0x36d686(0x1ad)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x36d686(0x1ba)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x36d686(0x1b1)]=a22_0x36d686(0x1a3);const a22_0x2ce21e={};a22_0x2ce21e[a22_0x36d686(0x1c7)]=a22_0x36d686(0x1a0);const a22_0x172d71={};a22_0x172d71[a22_0x36d686(0x1d8)]=a22_0x2ce21e,exports[a22_0x36d686(0x1a6)]=a22_0x172d71,exports[a22_0x36d686(0x18f)]=a22_0x36d686(0x1dc);function a22_0x54f3(){const _0x3d251d=['BrowserStackIAMUser','high-scale-grid','grid-profile','ALL_SUPPORTED_CLOUD_PROVIDERS','AG_API_URL','CP_CONFIG_FILE','2380bsvSBc','LINK_MESSAGE','delete','NULL','connect','BrowserStack-Automate-TurboScale','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','forEach','HST_CLUSTER_TAGS','log','messageTypes','browserstack:managedBy','BSTACK-ATS-CLUSTER-AUTOSCALER','pre-check','Value','grid-api.browserstack.com','GCP','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','COMMON_HST_TAGS','wss://','cliRunFinished','HELP_HEADER_MESSAGE','info','CLUSTER_AUTOSCALER_STACK_NAME','Key','5878326fQOFjh','CLUSTER','start','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','credentials','WS_ENDPOINT','resourceInfo','browserstack:service','UNKNOWN','TRIAL_GRID_URL','browserstack-turboscale-grid','unknown','split','high-scale-grid-cluster','push','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid','global_registry','list','16qENiVP','DASHBOARD_ENDPOINT','gcp','147696RZUSHl','BS_API_URL','12081768YvCEGY','645290Wzekih','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','pre_check','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','[REDACTED]','46071wZnVwv','env','MessageDescription','stop','config','api.browserstack.com','42sfzPZd','62129pUyhtB','DEFAULT_CLUSTER_DETAILS','CLI_ARGS_REGEX','INFO','TURBOSCALE_DEPLOYMENT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','REDACTED','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','root','CLUSTER_DEP_STACK_NAME','REGION','aws','AZURE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','CLI_RUN_FINISHED','RAW_ARGS_REGEX','BrowserStack','ERROR','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','CLOUD_PROVIDER','DEFAULT_GRID_NAME','BSTACK-ATS-CLUSTER','7261520PEsTXT','AWS','configure'];a22_0x54f3=function(){return _0x3d251d;};return a22_0x54f3();}const a22_0x133a2b={};a22_0x133a2b[a22_0x36d686(0x187)]=a22_0x36d686(0x193),a22_0x133a2b[a22_0x36d686(0x1bf)]=a22_0x36d686(0x1b6),a22_0x133a2b[a22_0x36d686(0x1b5)]='us-east-1',exports[a22_0x36d686(0x1ac)]=a22_0x133a2b;
1
+ const a22_0x412158=a22_0xe667;(function(_0x41294a,_0x4817c7){const _0x20c02e=a22_0xe667,_0x27d2dd=_0x41294a();while(!![]){try{const _0x4baed1=parseInt(_0x20c02e(0xd8))/0x1+parseInt(_0x20c02e(0xcb))/0x2*(parseInt(_0x20c02e(0xda))/0x3)+parseInt(_0x20c02e(0xfd))/0x4+-parseInt(_0x20c02e(0xe9))/0x5+-parseInt(_0x20c02e(0x10a))/0x6*(-parseInt(_0x20c02e(0xb6))/0x7)+-parseInt(_0x20c02e(0xdb))/0x8*(-parseInt(_0x20c02e(0xbf))/0x9)+-parseInt(_0x20c02e(0xd5))/0xa*(parseInt(_0x20c02e(0x10e))/0xb);if(_0x4baed1===_0x4817c7)break;else _0x27d2dd['push'](_0x27d2dd['shift']());}catch(_0x22849f){_0x27d2dd['push'](_0x27d2dd['shift']());}}}(a22_0x15df,0xdf517),require(a22_0x412158(0x118))['config'](),exports[a22_0x412158(0xf8)]=process[a22_0x412158(0xc5)][a22_0x412158(0xf8)]||'grid.browserstack.com',exports['BS_API_URL']=process['env'][a22_0x412158(0xfc)]||a22_0x412158(0xde),exports[a22_0x412158(0xec)]=process[a22_0x412158(0xc5)]['AG_API_URL']||a22_0x412158(0xdf),exports[a22_0x412158(0x100)]='wss://'+this['AG_API_URL']+a22_0x412158(0x101),exports[a22_0x412158(0xba)]=a22_0x412158(0xbc),exports[a22_0x412158(0x104)]=a22_0x412158(0x10c),exports['DEFAULT_GRID_NAME']=a22_0x412158(0xe4),exports[a22_0x412158(0x115)]='aws',exports[a22_0x412158(0xf6)]=a22_0x412158(0xca),exports[a22_0x412158(0x107)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x412158(0xc7)]=a22_0x412158(0xdd),exports[a22_0x412158(0xc9)]='browserstack-turboscale-grid',exports[a22_0x412158(0xb2)]=a22_0x412158(0x10f),exports[a22_0x412158(0xce)]=a22_0x412158(0xd9),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x412158(0x115)],this[a22_0x412158(0xb2)],this[a22_0x412158(0xce)]]);const a22_0x40f205={};a22_0x40f205['Key']='browserstack:managedBy',a22_0x40f205[a22_0x412158(0x106)]=a22_0x412158(0x113);const a22_0x5a8d8c={};a22_0x5a8d8c[a22_0x412158(0xed)]=a22_0x412158(0xf4),a22_0x5a8d8c[a22_0x412158(0x106)]=a22_0x412158(0xe6);const common_hst_tags_list=[a22_0x40f205,a22_0x5a8d8c];if(process[a22_0x412158(0xc5)][a22_0x412158(0xef)]){const parsedTags=process[a22_0x412158(0xc5)][a22_0x412158(0xef)]['split'](',');parsedTags[a22_0x412158(0x114)](_0x3de2dd=>{const _0x163ed6=a22_0x412158,_0x3000b9=_0x3de2dd[_0x163ed6(0xb4)](':'),_0x2415e7={};_0x2415e7['Key']=_0x3000b9[0x0],_0x2415e7[_0x163ed6(0x106)]=_0x3000b9[0x1],common_hst_tags_list[_0x163ed6(0xc0)](_0x2415e7);});}exports[a22_0x412158(0xe3)]=common_hst_tags_list;const a22_0x2401ae={};a22_0x2401ae['browserstack:managedBy']=a22_0x412158(0x113),a22_0x2401ae[a22_0x412158(0xf4)]=a22_0x412158(0xe6),exports[a22_0x412158(0xcd)]=a22_0x2401ae,exports[a22_0x412158(0xf3)]=[this[a22_0x412158(0x115)]];function a22_0xe667(_0x29022f,_0x4cdb00){const _0x15df6e=a22_0x15df();return a22_0xe667=function(_0xe667f5,_0x4a85df){_0xe667f5=_0xe667f5-0xb2;let _0x46dd9f=_0x15df6e[_0xe667f5];return _0x46dd9f;},a22_0xe667(_0x29022f,_0x4cdb00);}const a22_0x531093={};a22_0x531093[a22_0x412158(0xe5)]=a22_0x412158(0xf0),a22_0x531093[a22_0x412158(0xff)]=a22_0x412158(0x103),a22_0x531093[a22_0x412158(0x109)]='gridUrl',a22_0x531093[a22_0x412158(0xc4)]=a22_0x412158(0xf7),a22_0x531093[a22_0x412158(0xe7)]='cliRunFinished',exports[a22_0x412158(0xee)]=a22_0x531093,exports['global_registry']={},exports[a22_0x412158(0xf9)]=a22_0x412158(0xf5);const a22_0x1ab963={};a22_0x1ab963['root']=a22_0x412158(0xfa)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xd0)]=a22_0x412158(0xb8)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xd7)]=a22_0x412158(0xbd)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xbe)]=a22_0x412158(0xd6)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xcf)]={},a22_0x1ab963[a22_0x412158(0xd3)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xb3)]=a22_0x412158(0xf1)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xfb)]=a22_0x412158(0xeb)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xd4)]=a22_0x412158(0xcc)+this['LINK_MESSAGE'],a22_0x1ab963[a22_0x412158(0x108)]=a22_0x412158(0xc1)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xcf)]['root']=a22_0x412158(0xf2)+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xcf)][a22_0x412158(0xe1)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x412158(0xf9)],a22_0x1ab963[a22_0x412158(0xcf)][a22_0x412158(0xd2)]=a22_0x412158(0xc8)+this[a22_0x412158(0xf9)],exports[a22_0x412158(0x102)]=a22_0x1ab963,exports[a22_0x412158(0xb5)]=a22_0x412158(0xd1);const a22_0x3c1f05={};a22_0x3c1f05['SUCCESS']=a22_0x412158(0x10b),a22_0x3c1f05[a22_0x412158(0xbb)]=a22_0x412158(0x116),a22_0x3c1f05[a22_0x412158(0xb9)]=a22_0x412158(0xc3),a22_0x3c1f05['WARNING']=a22_0x412158(0x110),a22_0x3c1f05['UNKNOWN']='unknown',a22_0x3c1f05[a22_0x412158(0xe0)]=null,exports['messageTypes']=a22_0x3c1f05,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x412158(0x10d)]=a22_0x412158(0xea);function a22_0x15df(){const _0x5c3561=['pre_check','GRID_URL','18AqJIZS','success','BrowserStackIAMUser','REDACTED','274571RWvpJW','azure','warning','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','MessageDescription','BrowserStack','forEach','AWS','error','CLUSTER','dotenv','AZURE','connect','split','HELP_FOOTER_MESSAGE','1187172fdMOdh','us-east-1','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','INFO','CP_CONFIG_FILE','ERROR','credentials','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','create','89847CiFroF','push','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','grid-profile','info','CLI_RUN_STARTED','env','REGION','CLUSTER_HUB_HA_STACK_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_DEPLOYMENT','BSTACK-ATS-CLUSTER','386LribUM','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','HST_CLUSTER_TAGS','GCP','list','init','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','gridProfile','delete','stop','940PZpvlw','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','configure','315727ZKkqzk','gcp','7509WsnkeX','1400QVrHct','aws','BSTACK-ATS-CLUSTER-HUB-HA','api.browserstack.com','grid-api.browserstack.com','NULL','grid','CLOUD_PROVIDER','COMMON_HST_TAGS','high-scale-grid','LOG','BrowserStack-Automate-TurboScale','CLI_RUN_FINISHED','TRIAL_GRID_URL','6257215szphxB','[REDACTED]','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','AG_API_URL','Key','WS_EVENTS','TURBOSCALE_CUSTOM_TAGS','log','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','SUPPORTED_CLOUD_PROVIDERS','browserstack:service','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLUSTER_DEP_STACK_NAME','cliRunStarted','DASHBOARD_ENDPOINT','LINK_MESSAGE','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','start','BS_API_URL','5831476LgSIef','DEFAULT_CLUSTER_DETAILS','RESOURCES','WS_ENDPOINT','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','HELP_HEADER_MESSAGE','resourceInfo','IAM_USER_NAME','pre-check','Value','CLUSTER_AUTOSCALER_STACK_NAME'];a22_0x15df=function(){return _0x5c3561;};return a22_0x15df();}const a22_0x454906={};a22_0x454906[a22_0x412158(0xc2)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x56c7ee={};a22_0x56c7ee[a22_0x412158(0x105)]=a22_0x454906,exports[a22_0x412158(0x112)]=a22_0x56c7ee,exports[a22_0x412158(0xe8)]=a22_0x412158(0x111);const a22_0x5df6f9={};a22_0x5df6f9[a22_0x412158(0x117)]='high-scale-grid-cluster',a22_0x5df6f9[a22_0x412158(0xe2)]=a22_0x412158(0xdc),a22_0x5df6f9[a22_0x412158(0xc6)]=a22_0x412158(0xb7),exports[a22_0x412158(0xfe)]=a22_0x5df6f9;
@@ -1 +1 @@
1
- const a23_0x501365=a23_0x116e;(function(_0x520472,_0x3a4413){const _0x500a0e=a23_0x116e,_0x506b2a=_0x520472();while(!![]){try{const _0x1d6622=-parseInt(_0x500a0e(0x191))/0x1+parseInt(_0x500a0e(0x19f))/0x2+parseInt(_0x500a0e(0x194))/0x3*(parseInt(_0x500a0e(0x190))/0x4)+parseInt(_0x500a0e(0x1a0))/0x5+parseInt(_0x500a0e(0x18f))/0x6*(parseInt(_0x500a0e(0x182))/0x7)+-parseInt(_0x500a0e(0x18e))/0x8+parseInt(_0x500a0e(0x199))/0x9;if(_0x1d6622===_0x3a4413)break;else _0x506b2a['push'](_0x506b2a['shift']());}catch(_0x2e6dbe){_0x506b2a['push'](_0x506b2a['shift']());}}}(a23_0x3ba4,0xc9fdf));const winston=require(a23_0x501365(0x188)),fs=require('fs'),path=require(a23_0x501365(0x19d)),logDir=a23_0x501365(0x18c);function a23_0x116e(_0x1c47cd,_0x5b5c3e){const _0x3ba4bc=a23_0x3ba4();return a23_0x116e=function(_0x116e04,_0x214682){_0x116e04=_0x116e04-0x182;let _0x5d3724=_0x3ba4bc[_0x116e04];return _0x5d3724;},a23_0x116e(_0x1c47cd,_0x5b5c3e);}!fs[a23_0x501365(0x198)](logDir)&&fs[a23_0x501365(0x195)](logDir);const a23_0x1285d3={};a23_0x1285d3['format']=a23_0x501365(0x193);const a23_0x5c82f9={};a23_0x5c82f9[a23_0x501365(0x185)]=!![];const a23_0x4b9191={};a23_0x4b9191[a23_0x501365(0x19e)]='console.info',exports[a23_0x501365(0x184)]=new winston[(a23_0x501365(0x192))]({'format':winston[a23_0x501365(0x18b)][a23_0x501365(0x196)](winston[a23_0x501365(0x18b)]['timestamp'](a23_0x1285d3),winston['format'][a23_0x501365(0x186)](a23_0x5c82f9),winston[a23_0x501365(0x18b)]['printf'](_0x416349=>_0x416349[a23_0x501365(0x187)]+a23_0x501365(0x18d)+_0x416349['level']+':\x20'+_0x416349['message'])),'transports':[new winston[(a23_0x501365(0x197))][(a23_0x501365(0x19c))](a23_0x4b9191),new winston[(a23_0x501365(0x197))][(a23_0x501365(0x18a))]({'filename':path[a23_0x501365(0x183)](logDir,a23_0x501365(0x19b)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x501365(0x197))]['File']({'filename':path['join'](logDir,'usage.log'),'level':a23_0x501365(0x19a)})]};exports[a23_0x501365(0x189)]=new winston[(a23_0x501365(0x192))](winstonFileLoggerParams);function a23_0x3ba4(){const _0x9147c=['level','colorize','timestamp','winston','fileLogger','File','format','log','\x20-\x20','5063304UdeyOm','270VVlpXM','8ZlUaPM','692899yEPlQX','createLogger','YYYY-MM-DD\x20HH:mm:ss','1919091wbcgqq','mkdirSync','combine','transports','existsSync','644283HddKGy','debug','events.log','Console','path','name','1249814NrxYad','735440ydnIIG','4697SPuZsd','join','logger'];a23_0x3ba4=function(){return _0x9147c;};return a23_0x3ba4();}
1
+ function a23_0x4901(){const _0x438c4d=['level','60qWWZgw','830MwdRuu','winston','21843jlKbzl','257peFxiL','timestamp','YYYY-MM-DD\x20HH:mm:ss','50148iyHsNZ','name','1950080iXOCPa','2750727czgXBr','mkdirSync','File','console.info','createLogger','format','\x20-\x20','combine','753215wbkWcl','transports','events.log','14071255HhLmNa','6CYNKUW','usage.log','Console','printf','log','join','debug','message','830zvoGRT','logger'];a23_0x4901=function(){return _0x438c4d;};return a23_0x4901();}const a23_0x4c1cf6=a23_0x397d;(function(_0x557de9,_0x3f670b){const _0x31f6c7=a23_0x397d,_0x3a16e0=_0x557de9();while(!![]){try{const _0x1b81eb=parseInt(_0x31f6c7(0xb0))/0x1*(-parseInt(_0x31f6c7(0xad))/0x2)+parseInt(_0x31f6c7(0xac))/0x3*(-parseInt(_0x31f6c7(0xb3))/0x4)+-parseInt(_0x31f6c7(0xbe))/0x5*(-parseInt(_0x31f6c7(0xc2))/0x6)+-parseInt(_0x31f6c7(0xb6))/0x7+-parseInt(_0x31f6c7(0xb5))/0x8+-parseInt(_0x31f6c7(0xaf))/0x9*(parseInt(_0x31f6c7(0xca))/0xa)+parseInt(_0x31f6c7(0xc1))/0xb;if(_0x1b81eb===_0x3f670b)break;else _0x3a16e0['push'](_0x3a16e0['shift']());}catch(_0x1eebc3){_0x3a16e0['push'](_0x3a16e0['shift']());}}}(a23_0x4901,0x39333));const winston=require(a23_0x4c1cf6(0xae)),fs=require('fs'),path=require('path'),logDir=a23_0x4c1cf6(0xc6);!fs['existsSync'](logDir)&&fs[a23_0x4c1cf6(0xb7)](logDir);const a23_0xaf9b6a={};a23_0xaf9b6a[a23_0x4c1cf6(0xbb)]=a23_0x4c1cf6(0xb2);const a23_0x138d7e={};a23_0x138d7e[a23_0x4c1cf6(0xab)]=!![];const a23_0x41c50c={};a23_0x41c50c[a23_0x4c1cf6(0xb4)]=a23_0x4c1cf6(0xb9),exports[a23_0x4c1cf6(0xaa)]=new winston[(a23_0x4c1cf6(0xba))]({'format':winston[a23_0x4c1cf6(0xbb)][a23_0x4c1cf6(0xbd)](winston[a23_0x4c1cf6(0xbb)][a23_0x4c1cf6(0xb1)](a23_0xaf9b6a),winston['format']['colorize'](a23_0x138d7e),winston[a23_0x4c1cf6(0xbb)][a23_0x4c1cf6(0xc5)](_0x419994=>_0x419994[a23_0x4c1cf6(0xb1)]+a23_0x4c1cf6(0xbc)+_0x419994[a23_0x4c1cf6(0xab)]+':\x20'+_0x419994[a23_0x4c1cf6(0xc9)])),'transports':[new winston['transports'][(a23_0x4c1cf6(0xc4))](a23_0x41c50c),new winston[(a23_0x4c1cf6(0xbf))][(a23_0x4c1cf6(0xb8))]({'filename':path[a23_0x4c1cf6(0xc7)](logDir,a23_0x4c1cf6(0xc0)),'level':a23_0x4c1cf6(0xc8)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x4c1cf6(0xb8))]({'filename':path[a23_0x4c1cf6(0xc7)](logDir,a23_0x4c1cf6(0xc3)),'level':a23_0x4c1cf6(0xc8)})]};function a23_0x397d(_0xd34922,_0x2a80ca){const _0x490103=a23_0x4901();return a23_0x397d=function(_0x397d02,_0x378219){_0x397d02=_0x397d02-0xaa;let _0x6a53a0=_0x490103[_0x397d02];return _0x6a53a0;},a23_0x397d(_0xd34922,_0x2a80ca);}exports['fileLogger']=new winston[(a23_0x4c1cf6(0xba))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x2c282e=a24_0x3751;(function(_0x59b791,_0x34af88){const _0x32f388=a24_0x3751,_0x4707d5=_0x59b791();while(!![]){try{const _0x127834=-parseInt(_0x32f388(0x8a))/0x1*(parseInt(_0x32f388(0x92))/0x2)+-parseInt(_0x32f388(0x80))/0x3+parseInt(_0x32f388(0x8f))/0x4+-parseInt(_0x32f388(0x89))/0x5*(parseInt(_0x32f388(0x90))/0x6)+-parseInt(_0x32f388(0x84))/0x7+parseInt(_0x32f388(0x86))/0x8+parseInt(_0x32f388(0x8d))/0x9;if(_0x127834===_0x34af88)break;else _0x4707d5['push'](_0x4707d5['shift']());}catch(_0xb1681a){_0x4707d5['push'](_0x4707d5['shift']());}}}(a24_0x4715,0x20075));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2c282e(0x87));process[a24_0x2c282e(0x85)][a24_0x2c282e(0x8e)]=0x1;function a24_0x3751(_0x551c02,_0x2c0e0f){const _0x471520=a24_0x4715();return a24_0x3751=function(_0x375110,_0x591988){_0x375110=_0x375110-0x80;let _0x20fd7f=_0x471520[_0x375110];return _0x20fd7f;},a24_0x3751(_0x551c02,_0x2c0e0f);}function run(_0x2cd717){const _0x51a9c8=a24_0x2c282e,_0x741685={};_0x741685[_0x51a9c8(0x8b)]=_0x51a9c8(0x8c),_0x741685[_0x51a9c8(0x91)]='help';const _0x2bc2ca=_0x741685;_0x2cd717[_0x51a9c8(0x83)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x2bc2ca[_0x51a9c8(0x8b)])['demandCommand']()[_0x51a9c8(0x88)](_0x2bc2ca[_0x51a9c8(0x91)])[_0x51a9c8(0x81)](HELP_FOOTER_MESSAGE);}module[a24_0x2c282e(0x82)]=run;function a24_0x4715(){const _0x223bae=['XcwlW','commands','5333454eeCkGv','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','408808STawUU','846282bOHrlf','hpAwu','7376LcoFcE','274371EbUWIK','epilogue','exports','usage','1668436hOquwL','env','1352648VamoIt','./config/constants','help','5djntVH','71TSKebi'];a24_0x4715=function(){return _0x223bae;};return a24_0x4715();}
2
+ 'use strict';function a24_0x17d4(_0x17b1f0,_0xa0b4df){const _0x8360c=a24_0x8360();return a24_0x17d4=function(_0x17d41f,_0x569d05){_0x17d41f=_0x17d41f-0x6a;let _0x153d61=_0x8360c[_0x17d41f];return _0x153d61;},a24_0x17d4(_0x17b1f0,_0xa0b4df);}function a24_0x8360(){const _0x299868=['exports','1AdTcPj','4214172vDzYiO','commandDir','2379880mQitCd','1492ZzNcRG','9kSYzbW','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','./config/constants','16575MowVAQ','9436296FHaRHy','demandCommand','23567990zlNPWy','EPpUu','help','2970527hguGnl','2359917lkDqBx','iowKT'];a24_0x8360=function(){return _0x299868;};return a24_0x8360();}const a24_0x136a2c=a24_0x17d4;(function(_0x5c8917,_0x2af50d){const _0x195b35=a24_0x17d4,_0x1525c9=_0x5c8917();while(!![]){try{const _0x2d90c7=-parseInt(_0x195b35(0x7b))/0x1*(parseInt(_0x195b35(0x6c))/0x2)+parseInt(_0x195b35(0x78))/0x3+parseInt(_0x195b35(0x6d))/0x4*(-parseInt(_0x195b35(0x71))/0x5)+-parseInt(_0x195b35(0x6a))/0x6+-parseInt(_0x195b35(0x77))/0x7+parseInt(_0x195b35(0x72))/0x8*(parseInt(_0x195b35(0x6e))/0x9)+parseInt(_0x195b35(0x74))/0xa;if(_0x2d90c7===_0x2af50d)break;else _0x1525c9['push'](_0x1525c9['shift']());}catch(_0x4f8471){_0x1525c9['push'](_0x1525c9['shift']());}}}(a24_0x8360,0xbbf19));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x136a2c(0x70));process['env'][a24_0x136a2c(0x6f)]=0x1;function run(_0x1709fd){const _0x441921=a24_0x136a2c,_0x4a5f3e={};_0x4a5f3e[_0x441921(0x75)]='commands',_0x4a5f3e[_0x441921(0x79)]=_0x441921(0x76);const _0x2667ed=_0x4a5f3e;_0x1709fd['usage'](HELP_HEADER_MESSAGE['root'])[_0x441921(0x6b)](_0x2667ed[_0x441921(0x75)])[_0x441921(0x73)]()[_0x441921(0x76)](_0x2667ed['iowKT'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x136a2c(0x7a)]=run;