browserstack-node-sdk 1.35.1 → 1.35.2

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 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/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_0x1e5c5f=a15_0x1349;function a15_0x1349(_0x8517c2,_0x427b2a){const _0xfe3c05=a15_0xfe3c();return a15_0x1349=function(_0x1349b0,_0x4a706d){_0x1349b0=_0x1349b0-0x1bd;let _0xf69326=_0xfe3c05[_0x1349b0];return _0xf69326;},a15_0x1349(_0x8517c2,_0x427b2a);}function a15_0xfe3c(){const _0x288945=['options','grid-name','\x0aFound\x20the\x20following\x20grids:\x0a','mcVgk','hoSDX','help','../../config/constants','1434285WQnYtV','40puEYuc','ebTxQ','OAYAc','statusCode','5607642LlEXWX','jWLoa','VBJwf','Browserstack','status','grids','rYvEJ','handler','INFO','got','83006CHdnKH','usage','EnsWx','19720899BmgkPM','body','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','password','NkDOU','ffrIZ','3165620klPyEQ','stack','unknown-error','log','forEach','builder','server-error','init-not-called','YHTJJ','bstackUsername','description','bstackAccesskey','damxJ','../../utils/utilityMethods','boolean','rmbMf','stringify','oTHIu','running','push','grid','sZzNh','type','jpbHw','parse','epilogue','ERROR','name','exit','error','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','queued','/packages/cli/get-grids','Xdhvn','table','/packages/cli/get-all-grids','EiKlC','sAVSM','iSeDW','grid-id','uWhSx','allGrids','314EwyjvN','username','fhivq','../../utils/instrumentationUtils','2718UHPMDV','unauthorised','mRGpj','2919303GopBtH','requestId','desc'];a15_0xfe3c=function(){return _0x288945;};return a15_0xfe3c();}(function(_0x451cce,_0x479a3d){const _0x1fb1a8=a15_0x1349,_0xc59eb7=_0x451cce();while(!![]){try{const _0x263ab2=-parseInt(_0x1fb1a8(0x1ee))/0x1*(-parseInt(_0x1fb1a8(0x1f2))/0x2)+parseInt(_0x1fb1a8(0x1f5))/0x3+parseInt(_0x1fb1a8(0x1c3))/0x4+-parseInt(_0x1fb1a8(0x1ff))/0x5+parseInt(_0x1fb1a8(0x204))/0x6+parseInt(_0x1fb1a8(0x20e))/0x7*(-parseInt(_0x1fb1a8(0x200))/0x8)+-parseInt(_0x1fb1a8(0x1bd))/0x9;if(_0x263ab2===_0x479a3d)break;else _0xc59eb7['push'](_0xc59eb7['shift']());}catch(_0x139765){_0xc59eb7['push'](_0xc59eb7['shift']());}}}(a15_0xfe3c,0x8fac1));const fs=require('fs'),got=require(a15_0x1e5c5f(0x20d)),{table}=require(a15_0x1e5c5f(0x1e6)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1e5c5f(0x1fe)),{getCredentialsPath,getAuthHeader}=require(a15_0x1e5c5f(0x1d0)),{sendInstrumentationEvent}=require(a15_0x1e5c5f(0x1f1));exports['command']=a15_0x1e5c5f(0x209),exports[a15_0x1e5c5f(0x1f7)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x1e5c5f(0x1c8)]=function(_0x17c7ce){const _0x332488=a15_0x1e5c5f,_0x3ff672={};_0x3ff672[_0x332488(0x1fc)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x3ff672[_0x332488(0x1d8)]=_0x332488(0x1d1),_0x3ff672[_0x332488(0x202)]=_0x332488(0x1fd);const _0x2c4c7b=_0x3ff672,_0x43b4a3={};_0x43b4a3[_0x332488(0x1cd)]=_0x2c4c7b[_0x332488(0x1fc)],_0x43b4a3[_0x332488(0x1d9)]=_0x2c4c7b['sZzNh'];const _0x4d56f2={};return _0x4d56f2['all-grids']=_0x43b4a3,_0x17c7ce[_0x332488(0x20f)](HELP_HEADER_MESSAGE['list'][_0x332488(0x1d7)])[_0x332488(0x1dc)](HELP_FOOTER_MESSAGE)[_0x332488(0x1f8)](_0x4d56f2)[_0x332488(0x1fd)](_0x2c4c7b[_0x332488(0x202)])['argv'];},exports[a15_0x1e5c5f(0x20b)]=async function(_0x3800e5){const _0x43f233=a15_0x1e5c5f,_0x428bbb={'rYvEJ':function(_0x4ba8c2){return _0x4ba8c2();},'jWLoa':function(_0x2936c0){return _0x2936c0();},'oTHIu':_0x43f233(0x1e2),'NkDOU':function(_0x1eb175,_0x462390,_0xedd7f5,_0x1a5a0f,_0x5d8726,_0x309542,_0x5e5193){return _0x1eb175(_0x462390,_0xedd7f5,_0x1a5a0f,_0x5d8726,_0x309542,_0x5e5193);},'iSeDW':'list-grids-called','sAVSM':_0x43f233(0x1ca),'zwuQy':'GET','ebTxQ':function(_0x26cc4b,_0x3b53d6,_0x453aa2){return _0x26cc4b(_0x3b53d6,_0x453aa2);},'ffrIZ':function(_0x3c6a53,_0x34e376){return _0x3c6a53!==_0x34e376;},'fhivq':function(_0x4ac51e,_0x34805b){return _0x4ac51e!==_0x34805b;},'rmbMf':function(_0x34c605,_0x4b4db5){return _0x34c605===_0x4b4db5;},'rDbrg':_0x43f233(0x1fa),'jIuFI':_0x43f233(0x1eb),'mcVgk':_0x43f233(0x1f9),'EnsWx':'status','VBJwf':'running','Xdhvn':_0x43f233(0x1e3),'mRGpj':'cluster-name','EiKlC':function(_0x9cab17,_0x496507){return _0x9cab17(_0x496507);},'jpbHw':_0x43f233(0x1bf),'UmZQo':_0x43f233(0x1f3),'YHTJJ':function(_0x27ffc8,_0x15715e,_0xf8fa5b,_0xb221fa,_0x4b8210,_0x231434,_0x3684e2){return _0x27ffc8(_0x15715e,_0xf8fa5b,_0xb221fa,_0x4b8210,_0x231434,_0x3684e2);},'uWhSx':_0x43f233(0x1c9),'damxJ':_0x43f233(0x1c5)};try{global_registry[_0x43f233(0x1f6)]=_0x428bbb[_0x43f233(0x20a)](uuidv4);!fs['existsSync'](_0x428bbb[_0x43f233(0x205)](getCredentialsPath))&&(console[_0x43f233(0x1e0)](_0x428bbb[_0x43f233(0x1d4)]),await _0x428bbb[_0x43f233(0x1c1)](sendInstrumentationEvent,_0x3800e5,_0x428bbb[_0x43f233(0x1ea)],messageTypes['ERROR'],_0x428bbb[_0x43f233(0x1e9)],null,_0x3800e5),process[_0x43f233(0x1df)](0x1));const _0x4473a7=JSON[_0x43f233(0x1db)](fs['readFileSync'](_0x428bbb[_0x43f233(0x20a)](getCredentialsPath)));let _0x56dbea=_0x43f233(0x1e1)+AG_API_URL+_0x43f233(0x1e4);_0x3800e5[_0x43f233(0x1ed)]&&(_0x56dbea='https://'+AG_API_URL+_0x43f233(0x1e7));const _0x1eae5c={'method':_0x428bbb['zwuQy'],'headers':_0x428bbb['ebTxQ'](getAuthHeader,_0x4473a7[_0x43f233(0x207)][_0x43f233(0x1ef)],_0x4473a7[_0x43f233(0x207)][_0x43f233(0x1c0)]),'throwHttpErrors':![]};global_registry[_0x43f233(0x1cc)]=_0x4473a7[_0x43f233(0x207)]['username'],global_registry[_0x43f233(0x1ce)]=_0x4473a7[_0x43f233(0x207)][_0x43f233(0x1c0)],_0x428bbb[_0x43f233(0x1c1)](sendInstrumentationEvent,_0x3800e5,_0x428bbb[_0x43f233(0x1ea)],messageTypes[_0x43f233(0x20c)],null,null,_0x3800e5);const _0x330310=await _0x428bbb[_0x43f233(0x201)](got,_0x56dbea,_0x1eae5c);if(_0x428bbb[_0x43f233(0x1c2)](_0x330310,null)&&_0x428bbb[_0x43f233(0x1f0)](_0x330310,undefined)&&_0x428bbb['rmbMf'](_0x330310[_0x43f233(0x203)],0xc8)){const _0x429532=JSON[_0x43f233(0x1db)](_0x330310[_0x43f233(0x1be)]);console['log'](_0x428bbb['rDbrg']);const _0x3fe3de=[];_0x3fe3de[_0x43f233(0x1d6)]([_0x428bbb['jIuFI'],_0x428bbb[_0x43f233(0x1fb)],_0x428bbb[_0x43f233(0x210)],_0x428bbb[_0x43f233(0x206)],_0x428bbb[_0x43f233(0x1e5)],_0x428bbb[_0x43f233(0x1f4)]]),_0x429532[_0x43f233(0x1c7)](_0x2c7344=>{const _0x25c395=_0x43f233;_0x3fe3de[_0x25c395(0x1d6)]([_0x2c7344['id'],_0x2c7344[_0x25c395(0x1de)],_0x2c7344[_0x25c395(0x208)],_0x2c7344[_0x25c395(0x1d5)],_0x2c7344['queued'],_0x2c7344['clusterName']]);}),console[_0x43f233(0x1c6)](_0x428bbb[_0x43f233(0x1e8)](table,_0x3fe3de)),process['exit'](0x0);}_0x428bbb[_0x43f233(0x1d2)](_0x330310['statusCode'],0x191)&&(console[_0x43f233(0x1e0)](_0x428bbb[_0x43f233(0x1da)]),await _0x428bbb[_0x43f233(0x1c1)](sendInstrumentationEvent,_0x3800e5,_0x428bbb[_0x43f233(0x1ea)],messageTypes[_0x43f233(0x1dd)],_0x428bbb['UmZQo'],null,_0x3800e5),process[_0x43f233(0x1df)](0x1)),console[_0x43f233(0x1e0)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x43f233(0x1d3)](_0x330310)),await _0x428bbb[_0x43f233(0x1cb)](sendInstrumentationEvent,_0x3800e5,_0x428bbb[_0x43f233(0x1ea)],messageTypes[_0x43f233(0x1dd)],_0x428bbb[_0x43f233(0x1ec)],_0x330310,_0x3800e5),process[_0x43f233(0x1df)](0x1);}catch(_0x301f8e){console[_0x43f233(0x1e0)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x301f8e[_0x43f233(0x1c4)]),await _0x428bbb[_0x43f233(0x1c1)](sendInstrumentationEvent,_0x3800e5,_0x428bbb[_0x43f233(0x1ea)],messageTypes['ERROR'],_0x428bbb[_0x43f233(0x1cf)],_0x301f8e,_0x3800e5),process['exit'](0x1);}};
1
+ const a15_0x37f9f1=a15_0x4301;function a15_0x27e7(){const _0x42a2d7=['error','12oxJmaK','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GET','INFO','mgYIp','server-error','allGrids','status','options','grid-id','boolean','log','LqpSE','oRpyz','ICZVz','LmXWF','parse','description','OcTBB','statusCode','epilogue','queued','handler','6416631OQIdte','tTqBV','FSEgL','659289fWpwkf','password','hfaXh','VLKHw','unknown-error','push','XQhiL','2494032jybZbh','cluster-name','grid-name','exit','bstackUsername','iTCPG','name','144213yZbESo','table','all-grids','dTZKS','stack','Ppdtc','YWHNM','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','got','159560OZFANH','body','argv','stringify','username','https://','Slvkx','1799931ZxPRQg','usage','Failed\x20to\x20list\x20resources!\x20Error:\x20','running','CUZfx','requestId','help','YPzVG','clusterName','AOeMH','/packages/cli/get-all-grids','init-not-called','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','type','../../utils/instrumentationUtils','ERROR','INmwz','spCdy','uuid','1203132kxjMgt','/packages/cli/get-grids','Browserstack','builder','existsSync','8PmmVwX','list-grids-called','uOrBZ'];a15_0x27e7=function(){return _0x42a2d7;};return a15_0x27e7();}(function(_0x1733f8,_0x4582a2){const _0x55f2c1=a15_0x4301,_0x2a9045=_0x1733f8();while(!![]){try{const _0xaf70de=parseInt(_0x55f2c1(0x1d6))/0x1+-parseInt(_0x55f2c1(0x1b2))/0x2+parseInt(_0x55f2c1(0x18d))/0x3*(parseInt(_0x55f2c1(0x1b7))/0x4)+parseInt(_0x55f2c1(0x196))/0x5+-parseInt(_0x55f2c1(0x1bb))/0x6*(parseInt(_0x55f2c1(0x19d))/0x7)+parseInt(_0x55f2c1(0x1dd))/0x8+parseInt(_0x55f2c1(0x1d3))/0x9;if(_0xaf70de===_0x4582a2)break;else _0x2a9045['push'](_0x2a9045['shift']());}catch(_0x491b8b){_0x2a9045['push'](_0x2a9045['shift']());}}}(a15_0x27e7,0xa9fa0));const fs=require('fs'),got=require(a15_0x37f9f1(0x195)),{table}=require(a15_0x37f9f1(0x18e)),{v4:uuidv4}=require(a15_0x37f9f1(0x1b1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x37f9f1(0x1ab)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x37f9f1(0x1ad));function a15_0x4301(_0x46321,_0x161457){const _0x27e79a=a15_0x27e7();return a15_0x4301=function(_0x4301bc,_0x444fdd){_0x4301bc=_0x4301bc-0x188;let _0x4628f2=_0x27e79a[_0x4301bc];return _0x4628f2;},a15_0x4301(_0x46321,_0x161457);}exports['command']='grids',exports['desc']=a15_0x37f9f1(0x194),exports[a15_0x37f9f1(0x1b5)]=function(_0xf7c94c){const _0xe775f3=a15_0x37f9f1,_0x1f2884={};_0x1f2884[_0xe775f3(0x1ca)]=_0xe775f3(0x1a9),_0x1f2884[_0xe775f3(0x19c)]=_0xe775f3(0x1c6),_0x1f2884[_0xe775f3(0x193)]=_0xe775f3(0x1a3);const _0x40e20a=_0x1f2884,_0x562ab6={};_0x562ab6[_0xe775f3(0x1cd)]=_0x40e20a[_0xe775f3(0x1ca)],_0x562ab6[_0xe775f3(0x1ac)]=_0x40e20a[_0xe775f3(0x19c)];const _0x176225={};return _0x176225[_0xe775f3(0x18f)]=_0x562ab6,_0xf7c94c[_0xe775f3(0x19e)](HELP_HEADER_MESSAGE['list'][_0xe775f3(0x1bc)])[_0xe775f3(0x1d0)](HELP_FOOTER_MESSAGE)[_0xe775f3(0x1c4)](_0x176225)[_0xe775f3(0x1a3)](_0x40e20a['YWHNM'])[_0xe775f3(0x198)];},exports[a15_0x37f9f1(0x1d2)]=async function(_0x43d2c8){const _0x2517be=a15_0x37f9f1,_0x23e818={'OcTBB':function(_0x3f1be7){return _0x3f1be7();},'hfaXh':_0x2517be(0x1aa),'INmwz':function(_0x111f50,_0x170804,_0x230bf5,_0x4393b4,_0x4e75e0,_0x50576b,_0x23173a){return _0x111f50(_0x170804,_0x230bf5,_0x4393b4,_0x4e75e0,_0x50576b,_0x23173a);},'VLKHw':_0x2517be(0x1b8),'oRpyz':_0x2517be(0x1a8),'AOeMH':_0x2517be(0x1be),'YPzVG':function(_0xca465e,_0x2bbcc2,_0x4f5034){return _0xca465e(_0x2bbcc2,_0x4f5034);},'XQhiL':function(_0x146751,_0x2a3b91,_0x82f333){return _0x146751(_0x2a3b91,_0x82f333);},'fTmHT':function(_0x50dee5,_0x14709e){return _0x50dee5!==_0x14709e;},'FSEgL':function(_0x200723,_0x272fa8){return _0x200723!==_0x272fa8;},'dTZKS':function(_0x439060,_0x531a13){return _0x439060===_0x531a13;},'mgYIp':'\x0aFound\x20the\x20following\x20grids:\x0a','mlCOv':_0x2517be(0x1c5),'ioWhD':_0x2517be(0x188),'iTCPG':_0x2517be(0x1c3),'CUZfx':_0x2517be(0x1a0),'tTqBV':_0x2517be(0x1d1),'LmXWF':_0x2517be(0x1de),'sAIaQ':function(_0x1ee0ae,_0x52f677){return _0x1ee0ae(_0x52f677);},'jnMWJ':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uOrBZ':'unauthorised','pFqQJ':function(_0x10e3e4,_0x35147a,_0x1e82b4,_0x4145d5,_0x1d8b17,_0x21eeff,_0x15af2e){return _0x10e3e4(_0x35147a,_0x1e82b4,_0x4145d5,_0x1d8b17,_0x21eeff,_0x15af2e);},'spCdy':_0x2517be(0x1c1),'LqpSE':function(_0x5618c2,_0x2bf0e1,_0x57fc21,_0x3422a8,_0x5ced66,_0x592938,_0x1e5158){return _0x5618c2(_0x2bf0e1,_0x57fc21,_0x3422a8,_0x5ced66,_0x592938,_0x1e5158);},'Ppdtc':_0x2517be(0x1da)};try{global_registry[_0x2517be(0x1a2)]=_0x23e818[_0x2517be(0x1ce)](uuidv4);!fs[_0x2517be(0x1b6)](_0x23e818[_0x2517be(0x1ce)](getCredentialsPath))&&(console['error'](_0x23e818[_0x2517be(0x1d8)]),await _0x23e818[_0x2517be(0x1af)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x1c9)],null,_0x43d2c8),process[_0x2517be(0x189)](0x1));const _0xb26f7e=JSON[_0x2517be(0x1cc)](fs['readFileSync'](_0x23e818[_0x2517be(0x1ce)](getCredentialsPath)));let _0x4990c5=_0x2517be(0x19b)+AG_API_URL+_0x2517be(0x1b3);_0x43d2c8[_0x2517be(0x1c2)]&&(_0x4990c5=_0x2517be(0x19b)+AG_API_URL+_0x2517be(0x1a7));const _0x3c4935={'method':_0x23e818[_0x2517be(0x1a6)],'headers':_0x23e818[_0x2517be(0x1a4)](getAuthHeader,_0xb26f7e['Browserstack'][_0x2517be(0x19a)],_0xb26f7e['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x2517be(0x18a)]=_0xb26f7e[_0x2517be(0x1b4)][_0x2517be(0x19a)],global_registry['bstackAccesskey']=_0xb26f7e[_0x2517be(0x1b4)][_0x2517be(0x1d7)],_0x23e818[_0x2517be(0x1af)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1bf)],null,null,_0x43d2c8);const _0x1ad29c=await _0x23e818[_0x2517be(0x1dc)](got,_0x4990c5,_0x3c4935);if(_0x23e818['fTmHT'](_0x1ad29c,null)&&_0x23e818[_0x2517be(0x1d5)](_0x1ad29c,undefined)&&_0x23e818['dTZKS'](_0x1ad29c[_0x2517be(0x1cf)],0xc8)){const _0x4dd4c5=JSON['parse'](_0x1ad29c[_0x2517be(0x197)]);console[_0x2517be(0x1c7)](_0x23e818[_0x2517be(0x1c0)]);const _0x8b8422=[];_0x8b8422[_0x2517be(0x1db)]([_0x23e818['mlCOv'],_0x23e818['ioWhD'],_0x23e818[_0x2517be(0x18b)],_0x23e818[_0x2517be(0x1a1)],_0x23e818[_0x2517be(0x1d4)],_0x23e818[_0x2517be(0x1cb)]]),_0x4dd4c5['forEach'](_0x28ea25=>{const _0x45ecfa=_0x2517be;_0x8b8422[_0x45ecfa(0x1db)]([_0x28ea25['id'],_0x28ea25[_0x45ecfa(0x18c)],_0x28ea25[_0x45ecfa(0x1c3)],_0x28ea25['running'],_0x28ea25[_0x45ecfa(0x1d1)],_0x28ea25[_0x45ecfa(0x1a5)]]);}),console['log'](_0x23e818['sAIaQ'](table,_0x8b8422)),process[_0x2517be(0x189)](0x0);}_0x23e818[_0x2517be(0x190)](_0x1ad29c[_0x2517be(0x1cf)],0x191)&&(console[_0x2517be(0x1ba)](_0x23e818['jnMWJ']),await _0x23e818[_0x2517be(0x1af)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x1b9)],null,_0x43d2c8),process[_0x2517be(0x189)](0x1)),console[_0x2517be(0x1ba)](_0x2517be(0x1bd)+JSON[_0x2517be(0x199)](_0x1ad29c)),await _0x23e818['pFqQJ'](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x1b0)],_0x1ad29c,_0x43d2c8),process[_0x2517be(0x189)](0x1);}catch(_0x482217){console[_0x2517be(0x1ba)](_0x2517be(0x19f)+_0x482217[_0x2517be(0x191)]),await _0x23e818[_0x2517be(0x1c8)](sendInstrumentationEvent,_0x43d2c8,_0x23e818[_0x2517be(0x1d9)],messageTypes[_0x2517be(0x1ae)],_0x23e818[_0x2517be(0x192)],_0x482217,_0x43d2c8),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a16_0x1b10(_0x1092fc,_0x4e57ae){const _0x3b4a44=a16_0x3b4a();return a16_0x1b10=function(_0x1b10ee,_0x49701a){_0x1b10ee=_0x1b10ee-0x130;let _0x77a3f2=_0x3b4a44[_0x1b10ee];return _0x77a3f2;},a16_0x1b10(_0x1092fc,_0x4e57ae);}const a16_0x2bae4d=a16_0x1b10;function a16_0x3b4a(){const _0x2f7637=['1356FVWloK','builder','856386DZxHQk','PiYSQ','265678zxIbUB','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1729CjUtQn','handler','111yAqhEe','pre-check','recommendCommands','1017904CMEmNj','1705130mzIciJ','5288NpeRSn','18Hnyayk','epilogue','usage','strict','command','desc','JEfNT','precheck_commands','pre_check','296530LjrDxT','demandCommand','commandDir'];a16_0x3b4a=function(){return _0x2f7637;};return a16_0x3b4a();}(function(_0x6aab50,_0x1abe65){const _0x2d3291=a16_0x1b10,_0x3bc163=_0x6aab50();while(!![]){try{const _0x2c3bdc=parseInt(_0x2d3291(0x147))/0x1+-parseInt(_0x2d3291(0x145))/0x2+parseInt(_0x2d3291(0x131))/0x3*(parseInt(_0x2d3291(0x136))/0x4)+parseInt(_0x2d3291(0x140))/0x5+parseInt(_0x2d3291(0x143))/0x6*(parseInt(_0x2d3291(0x149))/0x7)+-parseInt(_0x2d3291(0x134))/0x8+parseInt(_0x2d3291(0x137))/0x9*(parseInt(_0x2d3291(0x135))/0xa);if(_0x2c3bdc===_0x1abe65)break;else _0x3bc163['push'](_0x3bc163['shift']());}catch(_0xc13b0c){_0x3bc163['push'](_0x3bc163['shift']());}}}(a16_0x3b4a,0x34913));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x2bae4d(0x13b)]=a16_0x2bae4d(0x132),exports[a16_0x2bae4d(0x13c)]=a16_0x2bae4d(0x148),exports[a16_0x2bae4d(0x144)]=function(_0x10b0cf){const _0x48d711=a16_0x2bae4d,_0x55be81={};_0x55be81[_0x48d711(0x13d)]=_0x48d711(0x13e),_0x55be81['PiYSQ']='help';const _0x562966=_0x55be81;return _0x10b0cf[_0x48d711(0x139)](HELP_HEADER_MESSAGE[_0x48d711(0x13f)])[_0x48d711(0x138)](HELP_FOOTER_MESSAGE)[_0x48d711(0x142)](_0x562966[_0x48d711(0x13d)])[_0x48d711(0x141)]()[_0x48d711(0x133)]()[_0x48d711(0x13a)]()['help'](_0x562966[_0x48d711(0x146)]);},exports[a16_0x2bae4d(0x130)]=function(_0x557956){};
1
+ const a16_0xa20d25=a16_0x339f;(function(_0x2dd71d,_0x3c581f){const _0x9b22db=a16_0x339f,_0x496c2e=_0x2dd71d();while(!![]){try{const _0xadb8e2=parseInt(_0x9b22db(0xc6))/0x1+parseInt(_0x9b22db(0xd9))/0x2+parseInt(_0x9b22db(0xc4))/0x3+-parseInt(_0x9b22db(0xd2))/0x4+-parseInt(_0x9b22db(0xd5))/0x5*(-parseInt(_0x9b22db(0xcf))/0x6)+parseInt(_0x9b22db(0xc7))/0x7+-parseInt(_0x9b22db(0xd8))/0x8;if(_0xadb8e2===_0x3c581f)break;else _0x496c2e['push'](_0x496c2e['shift']());}catch(_0x409cc6){_0x496c2e['push'](_0x496c2e['shift']());}}}(a16_0x3040,0xaa8d0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xa20d25(0xda));exports[a16_0xa20d25(0xd6)]='pre-check',exports[a16_0xa20d25(0xca)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x2cc70b){const _0x4cdf9a=a16_0xa20d25,_0x278e90={};_0x278e90[_0x4cdf9a(0xc5)]=_0x4cdf9a(0xce),_0x278e90[_0x4cdf9a(0xd3)]='help';const _0x8c04b3=_0x278e90;return _0x2cc70b[_0x4cdf9a(0xd0)](HELP_HEADER_MESSAGE[_0x4cdf9a(0xd4)])[_0x4cdf9a(0xc9)](HELP_FOOTER_MESSAGE)[_0x4cdf9a(0xc8)](_0x8c04b3[_0x4cdf9a(0xc5)])[_0x4cdf9a(0xd1)]()[_0x4cdf9a(0xd7)]()[_0x4cdf9a(0xcd)]()[_0x4cdf9a(0xcb)](_0x8c04b3[_0x4cdf9a(0xd3)]);},exports[a16_0xa20d25(0xcc)]=function(_0x211b79){};function a16_0x339f(_0x484b12,_0x536d3a){const _0x304002=a16_0x3040();return a16_0x339f=function(_0x339ffa,_0x32ca28){_0x339ffa=_0x339ffa-0xc4;let _0xa7f412=_0x304002[_0x339ffa];return _0xa7f412;},a16_0x339f(_0x484b12,_0x536d3a);}function a16_0x3040(){const _0x4eb95b=['3486740gNijTJ','TZjdB','pre_check','5130955CSMbGf','command','recommendCommands','28887368HhbSsV','2640104otavCx','../config/constants','2516973oQYlCH','yZCCg','856246rtyhMK','7977914FZziyT','commandDir','epilogue','desc','help','handler','strict','precheck_commands','6tztgjy','usage','demandCommand'];a16_0x3040=function(){return _0x4eb95b;};return a16_0x3040();}
@@ -1 +1 @@
1
- const a17_0x537a3f=a17_0x567e;(function(_0x5e85fb,_0x599951){const _0x599be2=a17_0x567e,_0xd50579=_0x5e85fb();while(!![]){try{const _0x50824e=parseInt(_0x599be2(0x255))/0x1+parseInt(_0x599be2(0x1cd))/0x2+parseInt(_0x599be2(0x1aa))/0x3*(-parseInt(_0x599be2(0x202))/0x4)+-parseInt(_0x599be2(0x212))/0x5*(-parseInt(_0x599be2(0x1c7))/0x6)+parseInt(_0x599be2(0x217))/0x7*(parseInt(_0x599be2(0x214))/0x8)+parseInt(_0x599be2(0x262))/0x9*(-parseInt(_0x599be2(0x254))/0xa)+parseInt(_0x599be2(0x1f9))/0xb*(parseInt(_0x599be2(0x1c3))/0xc);if(_0x50824e===_0x599951)break;else _0xd50579['push'](_0xd50579['shift']());}catch(_0x50d345){_0xd50579['push'](_0xd50579['shift']());}}}(a17_0x4bda,0xd8744));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x537a3f(0x273)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x537a3f(0x1e9)),{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_0x537a3f(0x241)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x537a3f(0x281)]=a17_0x537a3f(0x1b6),exports['desc']=a17_0x537a3f(0x28a),exports[a17_0x537a3f(0x25b)]=function(_0xfea461){const _0x9b1027=a17_0x537a3f,_0x2e4786={};_0x2e4786[_0x9b1027(0x1dd)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2e4786[_0x9b1027(0x21b)]=_0x9b1027(0x271),_0x2e4786[_0x9b1027(0x256)]=_0x9b1027(0x26d),_0x2e4786['mzDPS']=_0x9b1027(0x1d6),_0x2e4786[_0x9b1027(0x1d0)]=_0x9b1027(0x298),_0x2e4786['vLOTs']=_0x9b1027(0x1b8);const _0x36e998=_0x2e4786,_0x25eb52={};_0x25eb52[_0x9b1027(0x280)]=_0x36e998[_0x9b1027(0x1dd)],_0x25eb52[_0x9b1027(0x257)]=_0x36e998['pHBuz'];const _0x6305f3={};_0x6305f3[_0x9b1027(0x280)]=_0x36e998[_0x9b1027(0x256)],_0x6305f3['type']=_0x36e998[_0x9b1027(0x21b)];const _0x4db234={};_0x4db234['description']=_0x36e998['mzDPS'],_0x4db234[_0x9b1027(0x257)]=_0x36e998['pHBuz'];const _0x4b9f10={};_0x4b9f10[_0x9b1027(0x280)]=_0x36e998[_0x9b1027(0x1d0)],_0x4b9f10[_0x9b1027(0x257)]=_0x36e998['pHBuz'];const _0x4909cb={};return _0x4909cb[_0x9b1027(0x213)]=_0x25eb52,_0x4909cb['cloud-provider']=_0x6305f3,_0x4909cb['region']=_0x4db234,_0x4909cb[_0x9b1027(0x1f0)]=_0x4b9f10,_0xfea461['usage'](HELP_HEADER_MESSAGE[_0x9b1027(0x20e)])[_0x9b1027(0x28d)](HELP_FOOTER_MESSAGE)[_0x9b1027(0x231)](_0x4909cb)[_0x9b1027(0x1b8)](_0x36e998[_0x9b1027(0x26f)])[_0x9b1027(0x204)];};function a17_0x567e(_0x192211,_0xd2c017){const _0x4bda3f=a17_0x4bda();return a17_0x567e=function(_0x567ef1,_0x23fbf9){_0x567ef1=_0x567ef1-0x1a1;let _0x2b050a=_0x4bda3f[_0x567ef1];return _0x2b050a;},a17_0x567e(_0x192211,_0xd2c017);}async function inputValidation(_0x43f5ef,_0x433631){const _0xbd92c7=a17_0x537a3f,_0x5ed859={'YYmeE':_0xbd92c7(0x223),'VJryA':'string','vdpvm':_0xbd92c7(0x26d),'NTTUo':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','RUILd':_0xbd92c7(0x298),'kzTXq':_0xbd92c7(0x1b8),'ojPEk':_0xbd92c7(0x246),'WxHGD':'N/A','knMmZ':_0xbd92c7(0x1f7),'eNMch':_0xbd92c7(0x26e),'IzBMa':_0xbd92c7(0x213),'AzdGc':function(_0x67e028,_0x5003ed){return _0x67e028+_0x5003ed;},'iEJLX':_0xbd92c7(0x263),'vJYqu':'Failure','CZZAB':function(_0x3f9617,_0xf202a6){return _0x3f9617||_0xf202a6;},'QuCtn':_0xbd92c7(0x1d4),'WUpPj':_0xbd92c7(0x1c0),'aunyZ':_0xbd92c7(0x1ea),'pnlIl':'region','rsLRD':function(_0x4594f4,_0x1388d2){return _0x4594f4===_0x1388d2;},'RthbA':'soLFh','FnzJX':function(_0x4ca77f,_0x58418c){return _0x4ca77f!==_0x58418c;},'IllMK':_0xbd92c7(0x22a),'KjCoo':function(_0x68caa0,_0x3783e5){return _0x68caa0!==_0x3783e5;},'MVGJI':'qUgFX','piuvn':_0xbd92c7(0x1ab),'pborz':function(_0x16a7af,_0x34d54a){return _0x16a7af!==_0x34d54a;},'wUQDK':'qTfSG','CUJxl':'RzJyA','hsVXu':function(_0x496d4c,_0x15937c){return _0x496d4c>_0x15937c;},'HLMwq':function(_0x44ed87,_0x42f39e){return _0x44ed87===_0x42f39e;},'YJcjQ':_0xbd92c7(0x22c),'Sppdd':_0xbd92c7(0x216),'KFKBv':function(_0x102cbc,_0x471d47,_0x248493,_0x1f6636,_0x34d1eb,_0x1e0ce2,_0x147404,_0x2ec55f){return _0x102cbc(_0x471d47,_0x248493,_0x1f6636,_0x34d1eb,_0x1e0ce2,_0x147404,_0x2ec55f);},'wwvlG':_0xbd92c7(0x291),'rpBSz':'pre-check-cluster-args-not-passed','ZrzTc':function(_0x390139,_0x433472){return _0x390139!==_0x433472;},'zyNvG':_0xbd92c7(0x234),'ldFpO':'LMBGT','jdkbz':_0xbd92c7(0x20a),'xhool':function(_0x334fc7,_0x53c081,_0x5f1a13,_0x8d184,_0x309083,_0x59d7fe,_0x5c2f19,_0x4d7405){return _0x334fc7(_0x53c081,_0x5f1a13,_0x8d184,_0x309083,_0x59d7fe,_0x5c2f19,_0x4d7405);},'TRHvG':_0xbd92c7(0x209),'kDdPv':_0xbd92c7(0x290),'nGagK':function(_0x6081c4,_0x12e4f1){return _0x6081c4!==_0x12e4f1;},'bSIhC':_0xbd92c7(0x240),'eODsq':_0xbd92c7(0x1c5),'rwxOz':function(_0x50a0fe,_0x22728b,_0x2fc6c2){return _0x50a0fe(_0x22728b,_0x2fc6c2);},'IqLyn':function(_0x2b1cd6,_0x1a29cb,_0x1f2d1b,_0x3b2eb9,_0xc94f47,_0x2dbbc2){return _0x2b1cd6(_0x1a29cb,_0x1f2d1b,_0x3b2eb9,_0xc94f47,_0x2dbbc2);},'IajtU':_0xbd92c7(0x25e),'dYATM':_0xbd92c7(0x1f0),'ZIHMM':function(_0x3603fc,_0x1a6fd1){return _0x3603fc!==_0x1a6fd1;},'CTzkX':_0xbd92c7(0x1f5),'NRoKf':function(_0x1bd54b,_0x435191){return _0x1bd54b(_0x435191);},'axULT':function(_0x380d41,_0x1f6eb2){return _0x380d41!==_0x1f6eb2;},'QxfXv':_0xbd92c7(0x274),'TGTAh':'pre-check-grid-profile-empty','tmwYK':_0xbd92c7(0x1d5),'jUoaB':_0xbd92c7(0x1a3),'cIqjM':function(_0x17bd29,_0x44e8d5){return _0x17bd29===_0x44e8d5;},'YzwyI':_0xbd92c7(0x1a2),'SqwgQ':_0xbd92c7(0x296),'AmRum':_0xbd92c7(0x289),'vRXpd':_0xbd92c7(0x1cb),'qljUf':'jJmYI','NpYpK':function(_0x2a097d,_0x1f294b,_0x22c03a,_0x595884,_0x2e1ba5,_0x4d8bda,_0x82d3fc,_0x49317f){return _0x2a097d(_0x1f294b,_0x22c03a,_0x595884,_0x2e1ba5,_0x4d8bda,_0x82d3fc,_0x49317f);}};let _0x5ce7f2;try{if(_0x5ed859[_0xbd92c7(0x27e)](_0x5ed859[_0xbd92c7(0x20c)],_0x5ed859['RthbA'])){if(_0x43f5ef[_0xbd92c7(0x248)]||_0x43f5ef[_0xbd92c7(0x29a)]||_0x43f5ef[_0xbd92c7(0x215)]){if(_0x5ed859[_0xbd92c7(0x265)](_0x5ed859[_0xbd92c7(0x1d3)],_0x5ed859[_0xbd92c7(0x1d3)])){const _0x4497e5={};_0x4497e5[_0xbd92c7(0x280)]=_0x5ed859[_0xbd92c7(0x1ec)],_0x4497e5[_0xbd92c7(0x257)]=_0x5ed859['VJryA'];const _0x134c04={};_0x134c04['description']=_0x5ed859[_0xbd92c7(0x27f)],_0x134c04['type']=_0x5ed859['VJryA'];const _0x441c21={};_0x441c21['description']=_0x5ed859['NTTUo'],_0x441c21['type']=_0x5ed859[_0xbd92c7(0x1ed)];const _0x292bb2={};_0x292bb2[_0xbd92c7(0x280)]=_0x5ed859['RUILd'],_0x292bb2[_0xbd92c7(0x257)]=_0x5ed859[_0xbd92c7(0x1ed)];const _0x215f28={};return _0x215f28[_0xbd92c7(0x213)]=_0x4497e5,_0x215f28['cloud-provider']=_0x134c04,_0x215f28[_0xbd92c7(0x215)]=_0x441c21,_0x215f28[_0xbd92c7(0x1f0)]=_0x292bb2,_0x4d946b[_0xbd92c7(0x233)](_0x159313['pre_check'])[_0xbd92c7(0x28d)](_0x3f0da8)[_0xbd92c7(0x231)](_0x215f28)['help'](_0x5ed859[_0xbd92c7(0x28e)])[_0xbd92c7(0x204)];}else{const _0x86ac7c=[];!_0x43f5ef[_0xbd92c7(0x248)]&&(_0x5ed859[_0xbd92c7(0x252)](_0x5ed859[_0xbd92c7(0x218)],_0x5ed859['MVGJI'])?_0x749afb=_0x9fbba9:_0x86ac7c[_0xbd92c7(0x1af)](_0x5ed859[_0xbd92c7(0x1fc)]));;!_0x43f5ef['cloudProvider']&&(_0x5ed859[_0xbd92c7(0x27e)](_0x5ed859['piuvn'],_0x5ed859[_0xbd92c7(0x24d)])?_0x86ac7c[_0xbd92c7(0x1af)](_0x5ed859[_0xbd92c7(0x261)]):(_0x1e7bc1+=_0x5ed859[_0xbd92c7(0x299)],_0x313af2+='\x20\x20Message:\x20'+(_0x393aa3[_0xbd92c7(0x203)]||_0x5ed859[_0xbd92c7(0x230)])+'\x0a',_0x1a3dc8+=_0xbd92c7(0x1d2)+(_0x2afcf2['code']||_0x5ed859[_0xbd92c7(0x230)])+'\x0a',_0x42a2e0+=_0xbd92c7(0x26a)+(_0x29efde[_0xbd92c7(0x20b)]||_0x5ed859[_0xbd92c7(0x230)])+'\x0a'));;!_0x43f5ef['region']&&(_0x5ed859[_0xbd92c7(0x1bb)](_0x5ed859['wUQDK'],_0x5ed859[_0xbd92c7(0x1e8)])?_0x86ac7c[_0xbd92c7(0x1af)](_0x5ed859[_0xbd92c7(0x22f)]):_0x1d0735[_0xbd92c7(0x26e)](_0xbd92c7(0x219)+_0x4e5cff[_0xbd92c7(0x26e)][_0xbd92c7(0x20b)]));;_0x5ed859[_0xbd92c7(0x1ff)](_0x86ac7c[_0xbd92c7(0x1f2)],0x0)&&(_0x5ed859[_0xbd92c7(0x1be)](_0x5ed859[_0xbd92c7(0x20d)],_0x5ed859[_0xbd92c7(0x27c)])?(_0x51eceb[_0xbd92c7(0x26e)](_0x5ed859[_0xbd92c7(0x267)]),_0x56fcca[_0xbd92c7(0x21c)](0x1)):(_0x5ce7f2=_0xbd92c7(0x1f3)+_0x86ac7c[_0xbd92c7(0x21a)](',\x20')+_0xbd92c7(0x287),await _0x5ed859[_0xbd92c7(0x20f)](reportToGalactusAndSendToEDS,_0x43f5ef,_0x433631,_0x5ce7f2,messageTypes[_0xbd92c7(0x292)],_0x5ed859[_0xbd92c7(0x24a)],_0x5ed859[_0xbd92c7(0x243)],_0x5ed859[_0xbd92c7(0x23e)]),logger['error'](_0x5ce7f2),process[_0xbd92c7(0x21c)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x43f5ef['cloudProvider'][_0xbd92c7(0x25d)]())){if(_0x5ed859[_0xbd92c7(0x294)](_0x5ed859[_0xbd92c7(0x28b)],_0x5ed859[_0xbd92c7(0x24f)])){_0x5ce7f2=_0x5ed859[_0xbd92c7(0x284)],await _0x5ed859[_0xbd92c7(0x227)](reportToGalactusAndSendToEDS,_0x43f5ef,_0x433631,_0x5ce7f2,messageTypes[_0xbd92c7(0x292)],_0x5ed859[_0xbd92c7(0x24a)],_0x5ed859[_0xbd92c7(0x1b2)],_0x5ed859[_0xbd92c7(0x23e)]),logger[_0xbd92c7(0x26e)](_0x5ce7f2);if(!_0x43f5ef[_0xbd92c7(0x29a)]){if(_0x5ed859[_0xbd92c7(0x1be)](_0x5ed859['kDdPv'],_0x5ed859[_0xbd92c7(0x29b)]))logger[_0xbd92c7(0x226)](_0xbd92c7(0x1e4)+DEFAULT_CLUSTER_DETAILS[_0xbd92c7(0x1fa)]+'\x20'),_0x43f5ef[_0xbd92c7(0x29a)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];else{const _0x156048={};_0x156048[_0xbd92c7(0x257)]=_0x1cb449[_0xbd92c7(0x236)],_0x156048[_0xbd92c7(0x203)]=_0xdb083e,_0xf204eb['sendEventToBackend'](_0x14a9fd,_0x156048,_0x5ed859['eNMch'],!![]);}}}else _0x50507c['push'](_0x5ed859[_0xbd92c7(0x1fc)]);}global_registry[_0xbd92c7(0x248)]=_0x43f5ef[_0xbd92c7(0x248)],global_registry[_0xbd92c7(0x29a)]=_0x43f5ef['cloudProvider'],global_registry[_0xbd92c7(0x1bd)]=_0x43f5ef[_0xbd92c7(0x215)];}}else{if(_0x43f5ef[_0xbd92c7(0x282)]){if(_0x5ed859[_0xbd92c7(0x297)](_0x5ed859['bSIhC'],_0x5ed859['bSIhC'])){const {header:_0x39ab03,response:_0x277c15}=_0x53eb43,{status:_0x269dda,data:_0xd6293a,error:_0x120eab}=_0x277c15;_0x3931eb+=_0x39ab03+'\x20#'+_0x5ed859[_0xbd92c7(0x28c)](_0x20609b,0x1)+'\x0a',_0x684104+=_0xbd92c7(0x23a)+(_0x269dda?_0x5ed859[_0xbd92c7(0x259)]:_0x5ed859[_0xbd92c7(0x270)])+'\x0a',_0x51b77c+=_0xbd92c7(0x1c8)+_0x5ed859[_0xbd92c7(0x1fd)](_0xd6293a,_0x5ed859[_0xbd92c7(0x230)])+'\x0a',_0x120eab&&(_0x104b44+=_0x5ed859[_0xbd92c7(0x299)],_0x424a73+='\x20\x20Message:\x20'+(_0x120eab[_0xbd92c7(0x203)]||_0x5ed859[_0xbd92c7(0x230)])+'\x0a',_0x5c52c6+=_0xbd92c7(0x1d2)+(_0x120eab[_0xbd92c7(0x1c9)]||_0x5ed859['WxHGD'])+'\x0a',_0x1f06a7+=_0xbd92c7(0x26a)+(_0x120eab[_0xbd92c7(0x20b)]||_0x5ed859[_0xbd92c7(0x230)])+'\x0a'),_0x5306d7+='\x0a\x0a';}else{global_registry['gridProfile']=_0x43f5ef['gridProfile'],logger['debug'](_0xbd92c7(0x21f)+_0x43f5ef[_0xbd92c7(0x282)]);const _0x592a4f=_0xbd92c7(0x1e7)+AG_API_URL+_0xbd92c7(0x22b),_0x38511c={};_0x38511c[_0xbd92c7(0x1b5)]=_0x5ed859[_0xbd92c7(0x25f)],_0x38511c[_0xbd92c7(0x285)]=global_registry['authHeader'],_0x38511c[_0xbd92c7(0x21d)]=![];const _0x19da81=_0x38511c,_0x97cefa=await _0x5ed859[_0xbd92c7(0x1d8)](got,_0x592a4f,_0x19da81),_0x430056=await _0x5ed859[_0xbd92c7(0x28f)](responseValidation,_0x97cefa,_0x5ed859['IajtU'],_0x5ed859[_0xbd92c7(0x1da)],_0x43f5ef,_0x433631);let _0xc51c35={};if(_0x5ed859[_0xbd92c7(0x1be)](_0x430056,0xc8)){if(_0x5ed859['ZIHMM'](_0x5ed859[_0xbd92c7(0x27b)],_0x5ed859['CTzkX']))_0x2b2829[_0xbd92c7(0x21c)](0x1);else{const _0x219101=JSON[_0xbd92c7(0x1e3)](_0x97cefa[_0xbd92c7(0x283)]),_0x559068=_0x219101[_0xbd92c7(0x200)](_0x30b5be=>_0x30b5be[_0xbd92c7(0x1ca)]===_0x43f5ef[_0xbd92c7(0x282)])||null;_0x5ed859[_0xbd92c7(0x211)](isUndefined,_0x559068)?_0x5ed859[_0xbd92c7(0x244)](_0x5ed859[_0xbd92c7(0x24c)],_0x5ed859[_0xbd92c7(0x24c)])?(_0x3091ad[_0xbd92c7(0x226)](_0xbd92c7(0x1e4)+_0x44c330[_0xbd92c7(0x1fa)]+'\x20'),_0x2d4155['cloudProvider']=_0x366288[_0xbd92c7(0x1fa)]):(_0x5ce7f2=_0xbd92c7(0x232)+_0x43f5ef['gridProfile']+_0xbd92c7(0x25c),await _0x5ed859[_0xbd92c7(0x227)](reportToGalactusAndSendToEDS,_0x43f5ef,_0x433631,_0x5ce7f2,messageTypes['ERROR'],_0x5ed859['wwvlG'],_0x5ed859[_0xbd92c7(0x1a5)],_0x5ed859['eNMch']),logger[_0xbd92c7(0x26e)](_0x5ce7f2),process[_0xbd92c7(0x21c)](0x1)):_0x5ed859['KjCoo'](_0x5ed859['tmwYK'],_0x5ed859[_0xbd92c7(0x237)])?_0xc51c35=_0x559068:_0x40621e+=_0xbd92c7(0x235)+_0x4c54ea[_0xbd92c7(0x248)]+'\x20'+(_0x4b15f2?_0x5ed859[_0xbd92c7(0x22d)]:_0x5ed859[_0xbd92c7(0x224)])+'\x0a\x0a';}}else _0x5ed859[_0xbd92c7(0x1fe)](_0x5ed859['YzwyI'],_0x5ed859[_0xbd92c7(0x1c1)])?process[_0xbd92c7(0x21c)](0x1):_0x21cf97[_0xbd92c7(0x226)](_0xbd92c7(0x1de)+_0x357933[_0xbd92c7(0x248)]+_0xbd92c7(0x1fb));const _0x5553de={};_0x5553de[_0xbd92c7(0x257)]=WS_EVENTS[_0xbd92c7(0x236)],_0x5553de[_0xbd92c7(0x203)]=_0x5ed859[_0xbd92c7(0x1db)],webSocketUtils[_0xbd92c7(0x264)](_0x433631,_0x5553de),global_registry['cloudProvider']=_0xc51c35[_0xbd92c7(0x29a)],global_registry[_0xbd92c7(0x1bd)]=_0xc51c35[_0xbd92c7(0x215)],global_registry[_0xbd92c7(0x248)]=_0xc51c35[_0xbd92c7(0x248)];}}else _0x5ed859['ZIHMM'](_0x5ed859[_0xbd92c7(0x220)],_0x5ed859[_0xbd92c7(0x220)])?_0x344953[_0xbd92c7(0x1af)](_0x5ed859[_0xbd92c7(0x261)]):(logger[_0xbd92c7(0x26e)](_0x5ed859[_0xbd92c7(0x267)]),process[_0xbd92c7(0x21c)](0x1));}}else _0xa5e208[_0xbd92c7(0x1af)](_0x5ed859[_0xbd92c7(0x22f)]);}catch(_0x1650c3){_0x5ed859[_0xbd92c7(0x294)](_0x5ed859['vRXpd'],_0x5ed859[_0xbd92c7(0x1df)])?(_0x5ce7f2='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x1650c3+':\x20'+_0x1650c3[_0xbd92c7(0x20b)],logger[_0xbd92c7(0x26e)](_0x5ce7f2),await _0x5ed859[_0xbd92c7(0x23d)](reportToGalactusAndSendToEDS,_0x43f5ef,_0x433631,_0x5ce7f2,messageTypes[_0xbd92c7(0x292)],_0x5ed859[_0xbd92c7(0x24a)],_0x5ed859[_0xbd92c7(0x1b2)],_0x5ed859[_0xbd92c7(0x23e)]),process[_0xbd92c7(0x21c)](0x1)):(_0x5866b7[_0xbd92c7(0x226)]('['+_0x5294f5+']\x20status\x20:\x20'+_0x1ddf76[_0xbd92c7(0x295)]+_0xbd92c7(0x1d9)+_0x4eab05[_0xbd92c7(0x1e1)]+_0xbd92c7(0x229)+_0x2355c0[_0xbd92c7(0x26e)]),_0x586eff['error']&&_0x3a1030[_0xbd92c7(0x26e)](_0xbd92c7(0x219)+_0x23bb56[_0xbd92c7(0x26e)][_0xbd92c7(0x20b)]));}}function printResponse(_0xb96798,_0x44b719){const _0x51eed3=a17_0x537a3f,_0x2f559f={};_0x2f559f['tMBkA']=function(_0x371c07,_0x2768e5){return _0x371c07===_0x2768e5;},_0x2f559f['xiMpc']=_0x51eed3(0x1a4);const _0x43d865=_0x2f559f;logger[_0x51eed3(0x226)]('['+_0xb96798+_0x51eed3(0x23b)+_0x44b719[_0x51eed3(0x295)]+_0x51eed3(0x1d9)+_0x44b719[_0x51eed3(0x1e1)]+_0x51eed3(0x229)+_0x44b719[_0x51eed3(0x26e)]),_0x44b719[_0x51eed3(0x26e)]&&(_0x43d865[_0x51eed3(0x1ad)](_0x43d865[_0x51eed3(0x288)],_0x43d865[_0x51eed3(0x288)])?logger[_0x51eed3(0x26e)](_0x51eed3(0x219)+_0x44b719[_0x51eed3(0x26e)][_0x51eed3(0x20b)]):_0x3986f9+=_0x51eed3(0x235)+_0x27319c[_0x51eed3(0x248)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a');}function a17_0x4bda(){const _0x1852e0=['usoJE','\x20\x20Code:\x20','IllMK','is\x20already\x20present','jmGmN','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','cluster-check-failed-','rwxOz','\x20data\x20:\x20','dYATM','SqwgQ','split','NfWoL','Cluster\x20`','qljUf','Whitelisted\x20browserstack','data','LCElP','parse','Setting\x20cloud\x20provider\x20as\x20','oZFjG','iTqiK','https://','CUJxl','../../utils/utilityMethods','cloud-provider','sGIGb','YYmeE','VJryA','connectionTimeout','IqOru','grid-profile','Cluster\x20details\x0a-----------------------\x0a','length','Missing\x20required\x20arguments:\x20','wvgZt','vzjdK','password','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','isTls1_2_SUPPORTED','430771XlULbP','CLOUD_PROVIDER','`\x20already\x20exists','IzBMa','CZZAB','cIqjM','hsVXu','find','lfuQk','2746484pEKEdi','message','argv','getUTCDate','response','Failure','wexsh','cloud-provider-not-supported','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','stack','RthbA','YJcjQ','pre_check','KFKBv','RwgnA','NRoKf','5ACWHJU','cluster-name','409208JiFaMc','region','iQeYp','140LBpuQj','MVGJI','error\x20stack\x20:\x20','join','pHBuz','exit','throwHttpErrors','FRnOh','grid\x20profile\x20flow\x20','AmRum','Pre-check\x20running\x20for\x20Cloud\x20-\x20','stringify','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','WUpPj','pre-check-failed','info','xhool','header','\x20error\x20:\x20','vGCgK','/packages/cli/get-all-grid-profiles','MAuwx','QuCtn','===\x20Precheck\x20Report\x20-\x20','pnlIl','WxHGD','options','Invalid\x20input.\x20grid\x20profiles:\x20','usage','JuBIh','Cluster\x20','LOG','jUoaB','jcwKY','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Status:\x20',']\x20status\x20:\x20','<UsernamePlaceholder>','NpYpK','eNMch','DUkns','Ltvgt','../../config/constants','WebSocket','rpBSz','axULT','zcGfx','Error\x20Details:\x0a','handler','clusterName','forEach','wwvlG','utf-8','QxfXv','piuvn','isCliToolInstalled','ldFpO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BQoLP','KjCoo','bstackUsername','5040nTcBzt','120808EPeaOW','equGU','type','zFUya','iEJLX','getUTCFullYear','builder','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','toLowerCase','pre-check','eODsq','N/A','aunyZ','15498hFgEVG','Success','sendEventToBackend','FnzJX','getUTCMonth','knMmZ','credential-not-found','uucfB','\x20\x20Stack:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','stack\x20trace\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','error','vLOTs','vJYqu','string','1|0|4|2|3','reconnecting-websocket','NueLq','init','toolInstalledResp','writeFileSync','replace','zYUpz','TLSv1_2_client_method','CTzkX','Sppdd','checkAccess','rsLRD','vdpvm','description','command','gridProfile','body','jdkbz','headers','`\x20is\x20present\x20in\x20region\x20`','.\x20Please\x20provide\x20all\x20required\x20arguments.','xiMpc','ZcCgw','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','zyNvG','AzdGc','epilogue','kzTXq','IqLyn','sIkYy','pre-check-grid-called','ERROR','zynIm','ZrzTc','status','Grid\x20profile\x20fetched\x20for\x20pre-check','nGagK','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ojPEk','cloudProvider','kDdPv','altQA','pLpwU','AiIkP','wgwfQ','TGTAh','SjWSi','User\x20Access','\x20\x20Message:\x20','nWsra','3TgmGtx','LgnTF','cPNYN','tMBkA','BcsmR','push','DQKML','cRySU','TRHvG','bstackAccesskey','Report\x20saved\x20in\x20','method','grid','existsSync','help','dummy-grid','Browserstack','pborz','delay','clusterRegion','HLMwq','SSL\x20Configured','will\x20be\x20created','YzwyI','MwJdM','216cMZGHY','getUTCMinutes','GET','eQNkZ','2366790UYvoKK','Message:\x20','code','name','yqnND','Zerna','395828WIMjDS','username','readFileSync','ZJQLX'];a17_0x4bda=function(){return _0x1852e0;};return a17_0x4bda();}async function generateReport(_0x136735,_0x428674){const _0x1ec692=a17_0x537a3f,_0x316c7a={'FlYOu':function(_0x1b4d17,_0xd81df7){return _0x1b4d17+_0xd81df7;},'LCElP':'Success','ubJOh':_0x1ec692(0x207),'HnuLG':function(_0x30dffa,_0x97f916){return _0x30dffa||_0x97f916;},'wexsh':_0x1ec692(0x260),'aiMEn':'Error\x20Details:\x0a','MwJdM':_0x1ec692(0x1f1),'nYRkj':function(_0x46d7ae,_0x25c0b5){return _0x46d7ae!=_0x25c0b5;},'vBwtG':_0x1ec692(0x1d4),'DQKML':_0x1ec692(0x1c0),'EeSyS':function(_0x16679f){return _0x16679f();}};let _0x20336c=_0x1ec692(0x22e)+global_registry[_0x1ec692(0x29a)]+'\x20===\x0a\x0a';return _0x136735[_0x1ec692(0x249)]((_0x1503a8,_0x544b3a)=>{const _0x4cc734=_0x1ec692,{header:_0x383ea1,response:_0x42ca07}=_0x1503a8,{status:_0x49669b,data:_0x1bc065,error:_0x162ebb}=_0x42ca07;_0x20336c+=_0x383ea1+'\x20#'+_0x316c7a['FlYOu'](_0x544b3a,0x1)+'\x0a',_0x20336c+=_0x4cc734(0x23a)+(_0x49669b?_0x316c7a[_0x4cc734(0x1e2)]:_0x316c7a['ubJOh'])+'\x0a',_0x20336c+=_0x4cc734(0x1c8)+_0x316c7a['HnuLG'](_0x1bc065,_0x316c7a[_0x4cc734(0x208)])+'\x0a',_0x162ebb&&(_0x20336c+=_0x316c7a['aiMEn'],_0x20336c+=_0x4cc734(0x1a8)+(_0x162ebb['message']||_0x316c7a[_0x4cc734(0x208)])+'\x0a',_0x20336c+='\x20\x20Code:\x20'+(_0x162ebb[_0x4cc734(0x1c9)]||_0x316c7a[_0x4cc734(0x208)])+'\x0a',_0x20336c+='\x20\x20Stack:\x20'+(_0x162ebb[_0x4cc734(0x20b)]||_0x316c7a['wexsh'])+'\x0a'),_0x20336c+='\x0a\x0a';}),_0x20336c+=_0x316c7a[_0x1ec692(0x1c2)],_0x316c7a['nYRkj'](_0x428674,null)?_0x20336c+=_0x1ec692(0x235)+global_registry[_0x1ec692(0x248)]+'\x20'+(_0x428674?_0x316c7a['vBwtG']:_0x316c7a[_0x1ec692(0x1b0)])+'\x0a\x0a':_0x20336c+=_0x1ec692(0x235)+global_registry[_0x1ec692(0x248)]+_0x1ec692(0x239),_0x20336c+=_0x316c7a['EeSyS'](getSystemMetaData),_0x20336c;};exports[a17_0x537a3f(0x247)]=async function(_0x45bcd0){const _0x803a57=a17_0x537a3f,_0x27c043={'altQA':function(_0xa633da){return _0xa633da();},'zYUpz':function(_0xfe121b){return _0xfe121b();},'uucfB':_0x803a57(0x250),'UMKey':function(_0x233d85,_0x58baba,_0x24caca,_0x58221c,_0x16d45f,_0x1bb29c,_0x3ffa97,_0x7b1ef9){return _0x233d85(_0x58baba,_0x24caca,_0x58221c,_0x16d45f,_0x1bb29c,_0x3ffa97,_0x7b1ef9);},'cRySU':_0x803a57(0x291),'eQNkZ':_0x803a57(0x268),'zFUya':'error','oZFjG':function(_0x434bab,_0x1b44db,_0x5e13a7,_0x3d4577,_0x4d716a,_0x24c426,_0x320e06){return _0x434bab(_0x1b44db,_0x5e13a7,_0x3d4577,_0x4d716a,_0x24c426,_0x320e06);},'BcsmR':function(_0x27bfc9){return _0x27bfc9();},'MoEbV':_0x803a57(0x23c),'nWsra':'<PasswordPlaceholder>','jcwKY':function(_0x5824f3,_0x5969e0,_0x353a31){return _0x5824f3(_0x5969e0,_0x353a31);},'DUkns':function(_0x296021,_0x4005f7,_0x4901ea){return _0x296021(_0x4005f7,_0x4901ea);},'zynIm':_0x803a57(0x1b9),'zcGfx':_0x803a57(0x276),'JfdAb':_0x803a57(0x272),'RwgnA':function(_0x43242f,_0x505772,_0x354f06,_0x42f3c1,_0x5e63cc,_0x3bc3aa,_0x37ade8,_0x1347b0){return _0x43242f(_0x505772,_0x354f06,_0x42f3c1,_0x5e63cc,_0x3bc3aa,_0x37ade8,_0x1347b0);},'IqOru':'accessResp','Zerna':'isTrialGridAccessible','wvgZt':function(_0x5895d9,_0x4a8047){return _0x5895d9(_0x4a8047);},'UxssL':_0x803a57(0x27a),'lfuQk':_0x803a57(0x1f8),'iTqiK':'Tool\x20Installed','maNcE':_0x803a57(0x1a7),'sGIGb':_0x803a57(0x1e0),'BQoLP':_0x803a57(0x1bf),'FRnOh':function(_0x4339aa,_0x43d991,_0x3de6ae){return _0x4339aa(_0x43d991,_0x3de6ae);},'SjWSi':function(_0x4e375f,_0x4feaea){return _0x4e375f+_0x4feaea;},'usoJE':_0x803a57(0x24b),'cPNYN':_0x803a57(0x225)};let _0x2abcf6,_0x362c86;try{global_registry['requestId']=_0x27c043[_0x803a57(0x1a1)](uuidv4);!fs[_0x803a57(0x1b7)](_0x27c043[_0x803a57(0x279)](getCredentialsPath))&&(_0x362c86=_0x27c043[_0x803a57(0x269)],logger[_0x803a57(0x26e)](_0x362c86),await _0x27c043['UMKey'](reportToGalactusAndSendToEDS,_0x45bcd0,_0x2abcf6,_0x362c86,messageTypes[_0x803a57(0x292)],_0x27c043[_0x803a57(0x1b1)],_0x27c043[_0x803a57(0x1c6)],_0x27c043[_0x803a57(0x258)]),process[_0x803a57(0x21c)](0x1));_0x27c043[_0x803a57(0x1e5)](sendInstrumentationEvent,_0x45bcd0,_0x27c043[_0x803a57(0x1b1)],messageTypes['INFO'],null,null,_0x45bcd0);const _0x37a885=JSON[_0x803a57(0x1e3)](fs[_0x803a57(0x1cf)](_0x27c043[_0x803a57(0x1ae)](getCredentialsPath)));global_registry[_0x803a57(0x253)]=_0x37a885[_0x803a57(0x1ba)][_0x803a57(0x1ce)],global_registry[_0x803a57(0x1b3)]=_0x37a885['Browserstack'][_0x803a57(0x1f6)];const _0x2d7a92=WS_ENDPOINT[_0x803a57(0x278)](_0x27c043['MoEbV'],_0x37a885[_0x803a57(0x1ba)][_0x803a57(0x1ce)])[_0x803a57(0x278)](_0x27c043[_0x803a57(0x1a9)],_0x37a885[_0x803a57(0x1ba)][_0x803a57(0x1f6)]),_0xde71c6={};_0xde71c6[_0x803a57(0x242)]=ws,_0xde71c6[_0x803a57(0x1ee)]=0x36ee80,_0x2abcf6=new ReconnectingWebSocket(_0x2d7a92,[],_0xde71c6),global_registry['authHeader']=_0x27c043[_0x803a57(0x238)](getAuthHeader,global_registry[_0x803a57(0x253)],global_registry[_0x803a57(0x1b3)]),await _0x27c043['DUkns'](inputValidation,_0x45bcd0,_0x2abcf6),logger[_0x803a57(0x226)](_0x803a57(0x221)+global_registry[_0x803a57(0x29a)]+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x188ebf=await _0x27c043[_0x803a57(0x1e5)](getCloudProviderObjectWithOutInit,global_registry[_0x803a57(0x29a)],global_registry['clusterName'],_0x27c043[_0x803a57(0x293)],_0x2abcf6,webSocketUtils,_0x45bcd0);const _0x284a9b=await _0x188ebf[_0x803a57(0x24e)]();_0x27c043[_0x803a57(0x23f)](printResponse,_0x27c043[_0x803a57(0x245)],_0x284a9b),_0x188ebf=await _0x188ebf[_0x803a57(0x275)]();let _0x332191=![];try{_0x332191=await _0x188ebf['isClusterPresent']();}catch(_0x2e735e){const _0x2a8f3a=_0x27c043['JfdAb'][_0x803a57(0x1dc)]('|');let _0x49783d=0x0;while(!![]){switch(_0x2a8f3a[_0x49783d++]){case'0':_0x332191=null;continue;case'1':_0x362c86=_0x803a57(0x26b)+global_registry['clusterName']+_0x803a57(0x286)+global_registry[_0x803a57(0x1bd)]+'`\x20,error\x20:\x20'+_0x2e735e;continue;case'2':_0x362c86+='\x0a'+JSON[_0x803a57(0x222)](_0x2e735e[_0x803a57(0x20b)]);continue;case'3':await _0x27c043[_0x803a57(0x210)](reportToGalactusAndSendToEDS,_0x45bcd0,_0x2abcf6,_0x362c86,messageTypes[_0x803a57(0x292)],_0x27c043[_0x803a57(0x1b1)],_0x803a57(0x1d7)+global_registry[_0x803a57(0x29a)],_0x27c043[_0x803a57(0x258)]);continue;case'4':logger[_0x803a57(0x26e)](_0x362c86);continue;}break;}}_0x332191&&logger[_0x803a57(0x226)](_0x803a57(0x1de)+global_registry[_0x803a57(0x248)]+_0x803a57(0x1fb));const _0x1c3f68=await _0x188ebf[_0x803a57(0x27d)]();_0x27c043[_0x803a57(0x23f)](printResponse,_0x27c043[_0x803a57(0x1ef)],_0x1c3f68);const _0x472819=await _0x27c043[_0x803a57(0x1a1)](curlRequest);_0x27c043[_0x803a57(0x238)](printResponse,_0x27c043[_0x803a57(0x1cc)],_0x472819);const _0x13e43f=await _0x27c043[_0x803a57(0x1f4)](isTlsSupported,_0x27c043['UxssL']);_0x27c043[_0x803a57(0x238)](printResponse,_0x27c043[_0x803a57(0x201)],_0x13e43f);const _0x184641={};_0x184641[_0x803a57(0x228)]=_0x27c043[_0x803a57(0x1e6)],_0x184641['response']=_0x284a9b;const _0x493f2f={};_0x493f2f[_0x803a57(0x228)]=_0x27c043['maNcE'],_0x493f2f[_0x803a57(0x206)]=_0x1c3f68;const _0x5c90fc={};_0x5c90fc[_0x803a57(0x228)]=_0x27c043[_0x803a57(0x1eb)],_0x5c90fc['response']=_0x472819;const _0x154776={};_0x154776['header']=_0x27c043[_0x803a57(0x251)],_0x154776[_0x803a57(0x206)]=_0x13e43f;const _0x24204c=[_0x184641,_0x493f2f,_0x5c90fc,_0x154776],_0x58ca73=await _0x27c043[_0x803a57(0x21e)](generateReport,_0x24204c,_0x332191),_0x4b616e=new Date(),_0xc236f0=_0x4b616e[_0x803a57(0x25a)]()+'_'+_0x27c043[_0x803a57(0x1a6)](_0x4b616e[_0x803a57(0x266)](),0x1)+'_'+_0x4b616e[_0x803a57(0x205)]()+'_'+_0x4b616e['getUTCHours']()+'_'+_0x4b616e[_0x803a57(0x1c4)](),_0xd4f2e4='log/report_'+_0xc236f0+'.txt';fs[_0x803a57(0x277)](_0xd4f2e4,_0x58ca73,_0x27c043[_0x803a57(0x1d1)]),logger[_0x803a57(0x226)](_0x803a57(0x1b4)+_0xd4f2e4),process[_0x803a57(0x21c)](0x0);}catch(_0xd8f210){let _0x18babf='Failed\x20in\x20pre-check!\x20Error:\x20'+_0xd8f210+'\x20';logger[_0x803a57(0x26e)](_0x18babf),_0x18babf+='\x0a'+JSON[_0x803a57(0x222)](_0xd8f210['stack']),logger['debug'](_0x803a57(0x26c)+_0xd8f210[_0x803a57(0x20b)]);if(_0x2abcf6){const _0x5b79bc={};_0x5b79bc[_0x803a57(0x257)]=WS_EVENTS[_0x803a57(0x236)],_0x5b79bc[_0x803a57(0x203)]=_0x18babf,webSocketUtils[_0x803a57(0x264)](_0x2abcf6,_0x5b79bc,_0x27c043[_0x803a57(0x258)],!![]);}await webSocketUtils[_0x803a57(0x1bc)](0x7d0);const _0x37a7a2={};_0x37a7a2[_0x803a57(0x26e)]=_0x18babf,await _0x27c043['oZFjG'](sendInstrumentationEvent,_0x45bcd0,_0x27c043[_0x803a57(0x1b1)],messageTypes[_0x803a57(0x292)],_0x27c043[_0x803a57(0x1ac)],_0x37a7a2,_0x45bcd0),process[_0x803a57(0x21c)](0x1);}};
1
+ const a17_0x4a0502=a17_0x1bc2;function a17_0x1bc2(_0x2cb671,_0xf759ca){const _0x5a3021=a17_0x5a30();return a17_0x1bc2=function(_0x1bc2c7,_0x2e3a68){_0x1bc2c7=_0x1bc2c7-0x127;let _0x26decf=_0x5a3021[_0x1bc2c7];return _0x26decf;},a17_0x1bc2(_0x2cb671,_0xf759ca);}(function(_0xc39921,_0x441bcd){const _0x2721c9=a17_0x1bc2,_0x1eb480=_0xc39921();while(!![]){try{const _0x3e7069=-parseInt(_0x2721c9(0x218))/0x1+-parseInt(_0x2721c9(0x214))/0x2+parseInt(_0x2721c9(0x159))/0x3+parseInt(_0x2721c9(0x1c0))/0x4+parseInt(_0x2721c9(0x1c2))/0x5+parseInt(_0x2721c9(0x1a8))/0x6*(-parseInt(_0x2721c9(0x168))/0x7)+parseInt(_0x2721c9(0x182))/0x8;if(_0x3e7069===_0x441bcd)break;else _0x1eb480['push'](_0x1eb480['shift']());}catch(_0x296321){_0x1eb480['push'](_0x1eb480['shift']());}}}(a17_0x5a30,0x6508b));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x4a0502(0x15c)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4a0502(0x1fa)),{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_0x4a0502(0x15e)),{getCloudProviderObjectWithOutInit}=require(a17_0x4a0502(0x13a)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x4a0502(0x1a1));exports[a17_0x4a0502(0x197)]=a17_0x4a0502(0x1d3),exports[a17_0x4a0502(0x156)]=a17_0x4a0502(0x1ad),exports[a17_0x4a0502(0x1e9)]=function(_0x5513a0){const _0x30c54e=a17_0x4a0502,_0x17b043={};_0x17b043[_0x30c54e(0x139)]=_0x30c54e(0x1ce),_0x17b043[_0x30c54e(0x1c9)]=_0x30c54e(0x1e6),_0x17b043[_0x30c54e(0x150)]=_0x30c54e(0x202),_0x17b043[_0x30c54e(0x176)]=_0x30c54e(0x1da),_0x17b043['xyuzH']=_0x30c54e(0x20a),_0x17b043[_0x30c54e(0x14d)]=_0x30c54e(0x1c1);const _0x3238e6=_0x17b043,_0x5605ac={};_0x5605ac[_0x30c54e(0x1d9)]=_0x3238e6['FkNiS'],_0x5605ac[_0x30c54e(0x209)]=_0x3238e6[_0x30c54e(0x1c9)];const _0x510ae6={};_0x510ae6['description']=_0x3238e6[_0x30c54e(0x150)],_0x510ae6[_0x30c54e(0x209)]=_0x3238e6['gMCwL'];const _0x27cc9b={};_0x27cc9b['description']=_0x3238e6[_0x30c54e(0x176)],_0x27cc9b[_0x30c54e(0x209)]=_0x3238e6['gMCwL'];const _0x3f8c93={};_0x3f8c93['description']=_0x3238e6[_0x30c54e(0x20c)],_0x3f8c93[_0x30c54e(0x209)]=_0x3238e6[_0x30c54e(0x1c9)];const _0x5f52ab={};return _0x5f52ab[_0x30c54e(0x181)]=_0x5605ac,_0x5f52ab[_0x30c54e(0x134)]=_0x510ae6,_0x5f52ab[_0x30c54e(0x219)]=_0x27cc9b,_0x5f52ab[_0x30c54e(0x1f4)]=_0x3f8c93,_0x5513a0['usage'](HELP_HEADER_MESSAGE[_0x30c54e(0x1c7)])[_0x30c54e(0x15a)](HELP_FOOTER_MESSAGE)['options'](_0x5f52ab)[_0x30c54e(0x1c1)](_0x3238e6[_0x30c54e(0x14d)])['argv'];};async function inputValidation(_0x3230a5,_0x57d7f5){const _0x588a23=a17_0x4a0502,_0x25176f={'LkBra':function(_0x5f4a0d,_0x57496c){return _0x5f4a0d+_0x57496c;},'fKmxU':'Success','yhEWg':_0x588a23(0x164),'oNnYR':function(_0xcf721,_0x372d83){return _0xcf721||_0x372d83;},'xFVLo':_0x588a23(0x1cc),'FJhPo':_0x588a23(0x16f),'gngGy':'error','zlmNY':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','HWZdY':_0x588a23(0x17d),'XgyRc':'will\x20be\x20created','jtrRm':'cloud-provider','bhtKX':_0x588a23(0x219),'bJMRJ':_0x588a23(0x181),'houLZ':function(_0x251eb3,_0x4a919f){return _0x251eb3===_0x4a919f;},'ahoeF':_0x588a23(0x220),'ISjlc':_0x588a23(0x1f7),'FxMJA':function(_0x2ceecc,_0x140a4d){return _0x2ceecc!==_0x140a4d;},'PkyuC':'OWRRK','enVJV':'fPJII','AGhqp':_0x588a23(0x198),'VriON':_0x588a23(0x154),'Udrfh':_0x588a23(0x17c),'VkTSw':function(_0x12dbfe,_0x42527d){return _0x12dbfe!==_0x42527d;},'qaMaL':_0x588a23(0x194),'zgPcr':function(_0x9925c8,_0x44bb4e){return _0x9925c8>_0x44bb4e;},'VIsNh':function(_0x3f6985,_0x137edc){return _0x3f6985===_0x137edc;},'Ybjza':_0x588a23(0x1cd),'xdjly':_0x588a23(0x1b3),'gsZrL':function(_0x133526,_0x54affa,_0x2b19fe,_0x340f4d,_0x562c81,_0x15c7cc,_0x37eef4,_0x1d940b){return _0x133526(_0x54affa,_0x2b19fe,_0x340f4d,_0x562c81,_0x15c7cc,_0x37eef4,_0x1d940b);},'WIEGM':_0x588a23(0x1ed),'JMJjs':_0x588a23(0x1bc),'fnCnq':function(_0x2c2913,_0x523a67){return _0x2c2913===_0x523a67;},'VDzjP':_0x588a23(0x213),'nRWvc':_0x588a23(0x1ff),'bkcbt':_0x588a23(0x215),'vepaE':'lUIbd','SGSJN':_0x588a23(0x162),'YwbTJ':_0x588a23(0x172),'kiMHE':'jriGK','anJhC':_0x588a23(0x18f),'zFrVi':function(_0x2a0101,_0xc7a25e,_0x27f441){return _0x2a0101(_0xc7a25e,_0x27f441);},'qIxsN':function(_0x26ef23,_0x2a98ec,_0x29036c,_0x4d16e4,_0x4b57f8,_0x2733a3){return _0x26ef23(_0x2a98ec,_0x29036c,_0x4d16e4,_0x4b57f8,_0x2733a3);},'swXcx':'pre-check','KKGDO':_0x588a23(0x1f4),'nkWrY':_0x588a23(0x1a7),'IsssB':_0x588a23(0x1a2),'txnvf':function(_0x35cbd7,_0x131e93){return _0x35cbd7(_0x131e93);},'JbhBJ':function(_0x5acc9c,_0x9d8481){return _0x5acc9c!==_0x9d8481;},'UXWHy':'jefNR','LBSOe':function(_0x9251ad,_0x47f32b,_0x58ada2,_0x38a4d3,_0x10cd72,_0x1e9dfe,_0xe51b2a,_0x85e224){return _0x9251ad(_0x47f32b,_0x58ada2,_0x38a4d3,_0x10cd72,_0x1e9dfe,_0xe51b2a,_0x85e224);},'TFtrB':_0x588a23(0x17e),'OYBZP':function(_0x19dbff,_0x246ad7){return _0x19dbff!==_0x246ad7;},'EOOJY':'rXzql','ATTgo':function(_0x45feca,_0x54369c){return _0x45feca===_0x54369c;},'rprdR':_0x588a23(0x1f1),'rNHPD':_0x588a23(0x171),'wNBTP':function(_0x310cb6,_0x299fe1){return _0x310cb6!==_0x299fe1;},'mAqtd':_0x588a23(0x1b4),'wQcJL':_0x588a23(0x138),'sqoHn':function(_0x1a9e4f,_0x29e814,_0x2ee9db,_0x150571,_0x16d05c,_0x867da7,_0x1581b5,_0x2c3507){return _0x1a9e4f(_0x29e814,_0x2ee9db,_0x150571,_0x16d05c,_0x867da7,_0x1581b5,_0x2c3507);}};let _0x113472;try{if(_0x25176f[_0x588a23(0x18b)](_0x25176f[_0x588a23(0x161)],_0x25176f[_0x588a23(0x208)]))_0x3ff460[_0x588a23(0x1db)](_0x588a23(0x1f3)+_0x32267f[_0x588a23(0x187)]+'\x20'),_0x6fbd24[_0x588a23(0x1fe)]=_0x1b856c['CLOUD_PROVIDER'];else{if(_0x3230a5['clusterName']||_0x3230a5[_0x588a23(0x1fe)]||_0x3230a5[_0x588a23(0x219)]){if(_0x25176f[_0x588a23(0x16e)](_0x25176f[_0x588a23(0x12d)],_0x25176f['enVJV'])){const _0x19c37f=[];!_0x3230a5[_0x588a23(0x1e1)]&&(_0x25176f['FxMJA'](_0x25176f[_0x588a23(0x136)],_0x25176f[_0x588a23(0x136)])?_0xd171f3['error'](_0x588a23(0x205)+_0x2d47db['error'][_0x588a23(0x13f)]):_0x19c37f[_0x588a23(0x132)](_0x25176f[_0x588a23(0x178)]));;if(!_0x3230a5[_0x588a23(0x1fe)]){if(_0x25176f[_0x588a23(0x16e)](_0x25176f['VriON'],_0x25176f['Udrfh']))_0x19c37f[_0x588a23(0x132)](_0x25176f[_0x588a23(0x1e2)]);else{const {header:_0x1c3259,response:_0x1b0c09}=_0x38580b,{status:_0x2f5e95,data:_0x31f542,error:_0x31f812}=_0x1b0c09;_0x39bf34+=_0x1c3259+'\x20#'+_0x25176f[_0x588a23(0x193)](_0x490dda,0x1)+'\x0a',_0x5daf30+='Status:\x20'+(_0x2f5e95?_0x25176f[_0x588a23(0x1e0)]:_0x25176f[_0x588a23(0x1fc)])+'\x0a',_0x52b4fa+=_0x588a23(0x1dd)+_0x25176f[_0x588a23(0x1e4)](_0x31f542,_0x25176f[_0x588a23(0x173)])+'\x0a',_0x31f812&&(_0x4afb96+=_0x25176f['FJhPo'],_0x5c5141+=_0x588a23(0x127)+(_0x31f812[_0x588a23(0x13e)]||_0x25176f['xFVLo'])+'\x0a',_0x46c48b+='\x20\x20Code:\x20'+(_0x31f812[_0x588a23(0x1bf)]||_0x25176f[_0x588a23(0x173)])+'\x0a',_0x1ade80+=_0x588a23(0x21b)+(_0x31f812[_0x588a23(0x13f)]||_0x25176f['xFVLo'])+'\x0a'),_0x55c585+='\x0a\x0a';}};if(!_0x3230a5[_0x588a23(0x219)]){if(_0x25176f['VkTSw'](_0x25176f[_0x588a23(0x1be)],_0x25176f[_0x588a23(0x1be)])){const _0x2f91ac={};_0x2f91ac[_0x588a23(0x209)]=_0x41b6ec[_0x588a23(0x151)],_0x2f91ac[_0x588a23(0x13e)]=_0x3e15e7,_0xada77b['sendEventToBackend'](_0x5432c4,_0x2f91ac,_0x25176f[_0x588a23(0x14b)],!![]);}else _0x19c37f[_0x588a23(0x132)](_0x25176f[_0x588a23(0x1de)]);};_0x25176f[_0x588a23(0x1b5)](_0x19c37f['length'],0x0)&&(_0x25176f[_0x588a23(0x170)](_0x25176f['Ybjza'],_0x25176f[_0x588a23(0x15d)])?(_0x296e17[_0x588a23(0x1cf)](_0x25176f[_0x588a23(0x18e)]),_0x1e482e[_0x588a23(0x14c)](0x1)):(_0x113472='Missing\x20required\x20arguments:\x20'+_0x19c37f[_0x588a23(0x16b)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x25176f['gsZrL'](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f[_0x588a23(0x217)],_0x25176f[_0x588a23(0x1a9)],_0x25176f[_0x588a23(0x14b)]),logger[_0x588a23(0x1cf)](_0x113472),process[_0x588a23(0x14c)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x588a23(0x1b1)](_0x3230a5['cloudProvider']['toLowerCase']())&&(_0x25176f['fnCnq'](_0x25176f[_0x588a23(0x1fd)],_0x25176f[_0x588a23(0x1fd)])?(_0x113472=_0x25176f[_0x588a23(0x1f6)],await _0x25176f[_0x588a23(0x212)](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f[_0x588a23(0x217)],_0x25176f['bkcbt'],_0x25176f[_0x588a23(0x14b)]),logger[_0x588a23(0x1cf)](_0x113472),!_0x3230a5['cloudProvider']&&(_0x25176f['VkTSw'](_0x25176f[_0x588a23(0x14a)],_0x25176f[_0x588a23(0x20f)])?(logger[_0x588a23(0x1db)](_0x588a23(0x1f3)+DEFAULT_CLUSTER_DETAILS[_0x588a23(0x187)]+'\x20'),_0x3230a5['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x588a23(0x187)]):_0x4a39f0[_0x588a23(0x14c)](0x1))):_0xeba83c+=_0x588a23(0x195)+_0x1fccc4[_0x588a23(0x1e1)]+'\x20'+(_0x48305e?_0x25176f[_0x588a23(0x17a)]:_0x25176f[_0x588a23(0x137)])+'\x0a\x0a'),global_registry[_0x588a23(0x1e1)]=_0x3230a5[_0x588a23(0x1e1)],global_registry['cloudProvider']=_0x3230a5[_0x588a23(0x1fe)],global_registry[_0x588a23(0x21e)]=_0x3230a5[_0x588a23(0x219)];}else _0x5d8f13[_0x588a23(0x132)](_0x25176f[_0x588a23(0x1e2)]);}else{if(_0x3230a5[_0x588a23(0x201)]){if(_0x25176f[_0x588a23(0x18b)](_0x25176f[_0x588a23(0x184)],_0x25176f[_0x588a23(0x1b0)]))_0x2a9a68[_0x588a23(0x132)](_0x25176f['bhtKX']);else{global_registry['gridProfile']=_0x3230a5['gridProfile'],logger[_0x588a23(0x1c8)](_0x588a23(0x1e5)+_0x3230a5[_0x588a23(0x201)]);const _0x5dd609=_0x588a23(0x200)+AG_API_URL+_0x588a23(0x1d8),_0x4f0b6d={};_0x4f0b6d['method']=_0x25176f[_0x588a23(0x1cb)],_0x4f0b6d['headers']=global_registry[_0x588a23(0x19b)],_0x4f0b6d[_0x588a23(0x16a)]=![];const _0x12afdc=_0x4f0b6d,_0x302690=await _0x25176f[_0x588a23(0x142)](got,_0x5dd609,_0x12afdc),_0x412956=await _0x25176f[_0x588a23(0x163)](responseValidation,_0x302690,_0x25176f[_0x588a23(0x1e3)],_0x25176f[_0x588a23(0x204)],_0x3230a5,_0x57d7f5);let _0x4eba0e={};if(_0x25176f[_0x588a23(0x167)](_0x412956,0xc8)){if(_0x25176f[_0x588a23(0x16e)](_0x25176f['nkWrY'],_0x25176f['IsssB'])){const _0x4c119d=JSON['parse'](_0x302690['body']),_0x40d994=_0x4c119d[_0x588a23(0x141)](_0x1fdf9e=>_0x1fdf9e['name']===_0x3230a5[_0x588a23(0x201)])||null;_0x25176f[_0x588a23(0x185)](isUndefined,_0x40d994)?_0x25176f['JbhBJ'](_0x25176f[_0x588a23(0x189)],_0x25176f[_0x588a23(0x189)])?_0x20be69+=_0x588a23(0x195)+_0x18a4c7[_0x588a23(0x1e1)]+_0x588a23(0x13c):(_0x113472=_0x588a23(0x177)+_0x3230a5[_0x588a23(0x201)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x25176f[_0x588a23(0x131)](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f['WIEGM'],_0x25176f[_0x588a23(0x221)],_0x25176f['gngGy']),logger[_0x588a23(0x1cf)](_0x113472),process[_0x588a23(0x14c)](0x1)):_0x25176f[_0x588a23(0x12f)](_0x25176f[_0x588a23(0x1fb)],_0x25176f[_0x588a23(0x1fb)])?_0x4facce[_0x588a23(0x132)](_0x25176f[_0x588a23(0x178)]):_0x4eba0e=_0x40d994;}else _0x155938=_0x8f2e1f;}else _0x25176f['ATTgo'](_0x25176f[_0x588a23(0x1df)],_0x25176f[_0x588a23(0x1df)])?process[_0x588a23(0x14c)](0x1):_0x12f861[_0x588a23(0x1db)](_0x588a23(0x160)+_0x43f2a5[_0x588a23(0x1e1)]+_0x588a23(0x145));const _0x41fe81={};_0x41fe81[_0x588a23(0x209)]=WS_EVENTS[_0x588a23(0x151)],_0x41fe81[_0x588a23(0x13e)]=_0x25176f[_0x588a23(0x1f2)],webSocketUtils[_0x588a23(0x129)](_0x57d7f5,_0x41fe81),global_registry['cloudProvider']=_0x4eba0e[_0x588a23(0x1fe)],global_registry[_0x588a23(0x21e)]=_0x4eba0e['region'],global_registry[_0x588a23(0x1e1)]=_0x4eba0e[_0x588a23(0x1e1)];}}else _0x25176f[_0x588a23(0x16d)](_0x25176f[_0x588a23(0x1c6)],_0x25176f['mAqtd'])?(_0x327fb9[_0x588a23(0x1db)]('['+_0x4c3b57+_0x588a23(0x133)+_0x2140eb[_0x588a23(0x12c)]+'\x20data\x20:\x20'+_0xe76745['data']+'\x20error\x20:\x20'+_0x1b0026['error']),_0x24c73d[_0x588a23(0x1cf)]&&_0x15949c[_0x588a23(0x1cf)](_0x588a23(0x205)+_0x5d8545[_0x588a23(0x1cf)][_0x588a23(0x13f)])):(logger[_0x588a23(0x1cf)](_0x25176f[_0x588a23(0x18e)]),process[_0x588a23(0x14c)](0x1));}}}catch(_0x3350ef){_0x25176f[_0x588a23(0x16d)](_0x25176f[_0x588a23(0x18a)],_0x25176f[_0x588a23(0x18a)])?(_0x53c68a+=_0x25176f[_0x588a23(0x157)],_0xa180bb+=_0x588a23(0x127)+(_0x2ae7b9[_0x588a23(0x13e)]||_0x25176f[_0x588a23(0x173)])+'\x0a',_0x51058d+=_0x588a23(0x19c)+(_0x5ce593[_0x588a23(0x1bf)]||_0x25176f[_0x588a23(0x173)])+'\x0a',_0x5a7056+='\x20\x20Stack:\x20'+(_0x46343[_0x588a23(0x13f)]||_0x25176f[_0x588a23(0x173)])+'\x0a'):(_0x113472=_0x588a23(0x1ef)+_0x3350ef+':\x20'+_0x3350ef[_0x588a23(0x13f)],logger['error'](_0x113472),await _0x25176f[_0x588a23(0x1a4)](reportToGalactusAndSendToEDS,_0x3230a5,_0x57d7f5,_0x113472,messageTypes[_0x588a23(0x21c)],_0x25176f[_0x588a23(0x217)],_0x25176f['bkcbt'],_0x25176f[_0x588a23(0x14b)]),process['exit'](0x1));}}function printResponse(_0x2febc3,_0x4c7004){const _0x139250=a17_0x4a0502,_0x4799d5={};_0x4799d5['SxKrR']=_0x139250(0x1ce),_0x4799d5['MNEvL']=_0x139250(0x1e6),_0x4799d5[_0x139250(0x148)]=_0x139250(0x202),_0x4799d5[_0x139250(0x20b)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4799d5[_0x139250(0x1d0)]=_0x139250(0x20a),_0x4799d5[_0x139250(0x1a6)]=_0x139250(0x1c1),_0x4799d5[_0x139250(0x1b8)]=function(_0x176f3a,_0x2f724a){return _0x176f3a!==_0x2f724a;},_0x4799d5['TjeGP']=_0x139250(0x1ea),_0x4799d5[_0x139250(0x1c4)]=_0x139250(0x12a);const _0x3376c5=_0x4799d5;logger[_0x139250(0x1db)]('['+_0x2febc3+_0x139250(0x133)+_0x4c7004['status']+_0x139250(0x1bd)+_0x4c7004[_0x139250(0x18c)]+_0x139250(0x211)+_0x4c7004[_0x139250(0x1cf)]);if(_0x4c7004[_0x139250(0x1cf)]){if(_0x3376c5[_0x139250(0x1b8)](_0x3376c5[_0x139250(0x17f)],_0x3376c5[_0x139250(0x1c4)]))logger[_0x139250(0x1cf)](_0x139250(0x205)+_0x4c7004[_0x139250(0x1cf)][_0x139250(0x13f)]);else{const _0x2d075e={};_0x2d075e[_0x139250(0x1d9)]=_0x3376c5[_0x139250(0x1e7)],_0x2d075e['type']=_0x3376c5[_0x139250(0x135)];const _0x1a2122={};_0x1a2122['description']=_0x3376c5[_0x139250(0x148)],_0x1a2122[_0x139250(0x209)]=_0x3376c5[_0x139250(0x135)];const _0x5572f2={};_0x5572f2['description']=_0x3376c5[_0x139250(0x20b)],_0x5572f2[_0x139250(0x209)]=_0x3376c5[_0x139250(0x135)];const _0x5f4c81={};_0x5f4c81[_0x139250(0x1d9)]=_0x3376c5[_0x139250(0x1d0)],_0x5f4c81[_0x139250(0x209)]=_0x3376c5[_0x139250(0x135)];const _0x373c5a={};return _0x373c5a[_0x139250(0x181)]=_0x2d075e,_0x373c5a['cloud-provider']=_0x1a2122,_0x373c5a[_0x139250(0x219)]=_0x5572f2,_0x373c5a[_0x139250(0x1f4)]=_0x5f4c81,_0x1708dd['usage'](_0x302455[_0x139250(0x1c7)])[_0x139250(0x15a)](_0x43057a)['options'](_0x373c5a)[_0x139250(0x1c1)](_0x3376c5['AEtri'])[_0x139250(0x1d4)];}}}async function generateReport(_0x57bdc6,_0x485bf3){const _0x5830f4=a17_0x4a0502,_0x3b7cfb={'QjpNd':function(_0x4226dd,_0x258050){return _0x4226dd+_0x258050;},'yGYZs':'Success','jKUam':_0x5830f4(0x164),'tlMbl':function(_0x598074,_0x3e57ab){return _0x598074||_0x3e57ab;},'sFXQM':'N/A','sTXmH':'Error\x20Details:\x0a','lTIXA':_0x5830f4(0x20e),'UwXPj':function(_0x4ff1ab,_0x35bdde){return _0x4ff1ab!=_0x35bdde;},'dcpLs':_0x5830f4(0x17d),'wifRS':'will\x20be\x20created','IdfFw':function(_0x28ed01){return _0x28ed01();}};let _0x37a6d3=_0x5830f4(0x149)+global_registry['cloudProvider']+_0x5830f4(0x1f8);return _0x57bdc6[_0x5830f4(0x1d2)]((_0x583703,_0x17906b)=>{const _0x17bfb2=_0x5830f4,{header:_0x240605,response:_0xf975b7}=_0x583703,{status:_0x4bc4a3,data:_0x4015f5,error:_0x276184}=_0xf975b7;_0x37a6d3+=_0x240605+'\x20#'+_0x3b7cfb[_0x17bfb2(0x1e8)](_0x17906b,0x1)+'\x0a',_0x37a6d3+=_0x17bfb2(0x1aa)+(_0x4bc4a3?_0x3b7cfb[_0x17bfb2(0x13b)]:_0x3b7cfb[_0x17bfb2(0x166)])+'\x0a',_0x37a6d3+=_0x17bfb2(0x1dd)+_0x3b7cfb[_0x17bfb2(0x207)](_0x4015f5,_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a',_0x276184&&(_0x37a6d3+=_0x3b7cfb[_0x17bfb2(0x1ae)],_0x37a6d3+=_0x17bfb2(0x127)+(_0x276184['message']||_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a',_0x37a6d3+=_0x17bfb2(0x19c)+(_0x276184[_0x17bfb2(0x1bf)]||_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a',_0x37a6d3+=_0x17bfb2(0x21b)+(_0x276184[_0x17bfb2(0x13f)]||_0x3b7cfb[_0x17bfb2(0x1d7)])+'\x0a'),_0x37a6d3+='\x0a\x0a';}),_0x37a6d3+=_0x3b7cfb[_0x5830f4(0x144)],_0x3b7cfb[_0x5830f4(0x15f)](_0x485bf3,null)?_0x37a6d3+=_0x5830f4(0x195)+global_registry['clusterName']+'\x20'+(_0x485bf3?_0x3b7cfb[_0x5830f4(0x1c5)]:_0x3b7cfb[_0x5830f4(0x1ba)])+'\x0a\x0a':_0x37a6d3+=_0x5830f4(0x195)+global_registry[_0x5830f4(0x1e1)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x37a6d3+=_0x3b7cfb[_0x5830f4(0x1ab)](getSystemMetaData),_0x37a6d3;};function a17_0x5a30(){const _0xa7e6b5=['2881852oZYhGc','help','64390YPHLjE','YUXRc','jYWds','dcpLs','mAqtd','pre_check','debug','gMCwL','HUTYN','anJhC','N/A','dnLxR','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','error','AbICk','credential-not-found','forEach','grid','argv','init','qkUOL','sFXQM','/packages/cli/get-all-grid-profiles','description','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','info','replace','Message:\x20','bhtKX','rprdR','fKmxU','clusterName','jtrRm','swXcx','oNnYR','grid\x20profile\x20flow\x20','string','SxKrR','QjpNd','builder','FbQrI','eeEGt','EHdrB','pre-check-grid-called','VbORJ','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','TLSv1_2_client_method','iqypm','rNHPD','Setting\x20cloud\x20provider\x20as\x20','grid-profile','split','nRWvc','TWddK','\x20===\x0a\x0a','`\x20,error\x20:\x20','../../utils/utilityMethods','EOOJY','yhEWg','VDzjP','cloudProvider','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','https://','gridProfile','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','writeFileSync','KKGDO','error\x20stack\x20:\x20','getUTCMonth','tlMbl','ISjlc','type','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','wrqwA','xyuzH','lmrJB','Cluster\x20details\x0a-----------------------\x0a','SGSJN','unable\x20to\x20verify\x20if\x20cluster\x20`','\x20error\x20:\x20','gsZrL','HCZlU','1524010BtUTRh','cloud-provider-not-supported','`\x20is\x20present\x20in\x20region\x20`','WIEGM','805269MVPxGU','region','isTrialGridAccessible','\x20\x20Stack:\x20','ERROR','isClusterPresent','clusterRegion','stringify','ufhcM','TFtrB','\x20\x20Message:\x20','connectionTimeout','sendEventToBackend','jOuZV','Tool\x20Installed','status','PkyuC','zsHKg','OYBZP','BaCkb','LBSOe','push',']\x20status\x20:\x20','cloud-provider','MNEvL','AGhqp','XgyRc','PsMrn','FkNiS','../../cloudproviders/utils','yGYZs','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Whitelisted\x20browserstack','message','stack','delay','find','zFrVi','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lTIXA','`\x20already\x20exists','INFO','grxkk','zgmjR','===\x20Precheck\x20Report\x20-\x20','vepaE','gngGy','exit','aySkk','header','\x20region\x20-\x20','ZkcXn','LOG','SSL\x20Configured','hsFAV','mqkPh','1|0|2|4|3','desc','FJhPo','GRMeS','2110620YwgwCi','epilogue','fxFAf','uuid','xdjly','../../config/constants','UwXPj','Cluster\x20`','ahoeF','bzQra','qIxsN','Failure','UqwUg','jKUam','fnCnq','77938lXPmsH','EQjsL','throwHttpErrors','join','checkAccess','wNBTP','FxMJA','Error\x20Details:\x0a','VIsNh','Grid\x20profile\x20fetched\x20for\x20pre-check','MCDFd','xFVLo','getUTCFullYear','password','iVJqK','Invalid\x20input.\x20grid\x20profiles:\x20','bJMRJ','kyPSY','HWZdY','RyEVk','KYgbA','is\x20already\x20present','pre-check-grid-profile-empty','TjeGP','rKwUp','cluster-name','4442896bGvwVf','bstackUsername','YwbTJ','txnvf','NpxzG','CLOUD_PROVIDER','CYypC','UXWHy','wQcJL','houLZ','data','.txt','zlmNY','GET','HcdgJ','HmqTc','WUpVc','LkBra','UvKJe','Cluster\x20','bstackAccesskey','command','mHTlR','response','stack\x20trace\x20','authHeader','\x20\x20Code:\x20','utf-8','parse','getUTCDate','Browserstack','../../utils/instrumentationUtils','xvEBm','toolInstalledResp','sqoHn','isTls1_2_SUPPORTED','AEtri','uxHMu','6CYREUk','JMJjs','Status:\x20','IdfFw','dummy-grid','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','sTXmH','Report\x20saved\x20in\x20','kiMHE','includes','pre-check-failed','IQbaZ','ARaPk','zgPcr','eXhBY','existsSync','UwHgy','isCliToolInstalled','wifRS','readFileSync','pre-check-cluster-args-not-passed','\x20data\x20:\x20','qaMaL','code'];a17_0x5a30=function(){return _0xa7e6b5;};return a17_0x5a30();}exports['handler']=async function(_0x4c4387){const _0x2a839c=a17_0x4a0502,_0x4c7903={'YUXRc':function(_0x1f18ba){return _0x1f18ba();},'HmqTc':_0x2a839c(0x143),'WUUlz':function(_0x1ff7ba,_0x363978,_0x25b3d8,_0x226576,_0x5a669f,_0x1be9da,_0xa70d20,_0x20aa94){return _0x1ff7ba(_0x363978,_0x25b3d8,_0x226576,_0x5a669f,_0x1be9da,_0xa70d20,_0x20aa94);},'CYypC':_0x2a839c(0x1ed),'kyPSY':_0x2a839c(0x1d1),'eXhBY':_0x2a839c(0x1cf),'UqwUg':function(_0xa4a44c,_0x26f91a,_0x1a7779,_0x5a98cf,_0x5e6469,_0x4d2916,_0x418808){return _0xa4a44c(_0x26f91a,_0x1a7779,_0x5a98cf,_0x5e6469,_0x4d2916,_0x418808);},'GRMeS':'<UsernamePlaceholder>','WUpVc':'<PasswordPlaceholder>','HcdgJ':function(_0x3b6ef4,_0x375c17,_0xae3e4c){return _0x3b6ef4(_0x375c17,_0xae3e4c);},'HUTYN':function(_0x4f9857,_0x184ab0,_0x20ebb9,_0x364ea1,_0x363b09,_0x1e556a,_0xee26fd){return _0x4f9857(_0x184ab0,_0x20ebb9,_0x364ea1,_0x363b09,_0x1e556a,_0xee26fd);},'KYach':_0x2a839c(0x1ac),'rlNbP':_0x2a839c(0x1a3),'grxkk':_0x2a839c(0x155),'zsHKg':function(_0x2b1feb,_0x16d50e,_0x24ba84,_0x1d56e6,_0x121a75,_0x20306f,_0x19a872,_0x498a25){return _0x2b1feb(_0x16d50e,_0x24ba84,_0x1d56e6,_0x121a75,_0x20306f,_0x19a872,_0x498a25);},'eeEGt':function(_0x517052,_0x509b60,_0x2fe75a){return _0x517052(_0x509b60,_0x2fe75a);},'NpxzG':'accessResp','UHhui':_0x2a839c(0x21a),'zWvpx':function(_0x5df03a,_0x5d15ce){return _0x5df03a(_0x5d15ce);},'hsFAV':_0x2a839c(0x1f0),'EHdrB':function(_0x5c572f,_0x45dd85,_0x38075f){return _0x5c572f(_0x45dd85,_0x38075f);},'EQjsL':_0x2a839c(0x1a5),'CvNMN':_0x2a839c(0x12b),'VbORJ':'User\x20Access','fxFAf':_0x2a839c(0x13d),'rKwUp':_0x2a839c(0x152),'lmrJB':function(_0x5f120a,_0x2ab61f){return _0x5f120a+_0x2ab61f;},'RyEVk':_0x2a839c(0x19d),'qkUOL':function(_0x4a7893,_0x4016ad,_0x1e702b,_0x3d76d8,_0x4423d7,_0x2740f4,_0x780b41){return _0x4a7893(_0x4016ad,_0x1e702b,_0x3d76d8,_0x4423d7,_0x2740f4,_0x780b41);},'BaCkb':_0x2a839c(0x1b2)};let _0x52750b,_0x37e887;try{global_registry['requestId']=_0x4c7903['YUXRc'](uuidv4);!fs[_0x2a839c(0x1b7)](_0x4c7903[_0x2a839c(0x1c3)](getCredentialsPath))&&(_0x37e887=_0x4c7903[_0x2a839c(0x191)],logger[_0x2a839c(0x1cf)](_0x37e887),await _0x4c7903['WUUlz'](reportToGalactusAndSendToEDS,_0x4c4387,_0x52750b,_0x37e887,messageTypes['ERROR'],_0x4c7903['CYypC'],_0x4c7903[_0x2a839c(0x179)],_0x4c7903[_0x2a839c(0x1b6)]),process[_0x2a839c(0x14c)](0x1));_0x4c7903[_0x2a839c(0x165)](sendInstrumentationEvent,_0x4c4387,_0x4c7903['CYypC'],messageTypes[_0x2a839c(0x146)],null,null,_0x4c4387);const _0x4dd8f8=JSON[_0x2a839c(0x19e)](fs[_0x2a839c(0x1bb)](_0x4c7903[_0x2a839c(0x1c3)](getCredentialsPath)));global_registry[_0x2a839c(0x183)]=_0x4dd8f8[_0x2a839c(0x1a0)]['username'],global_registry[_0x2a839c(0x196)]=_0x4dd8f8[_0x2a839c(0x1a0)][_0x2a839c(0x175)];const _0x497cb4=WS_ENDPOINT[_0x2a839c(0x1dc)](_0x4c7903[_0x2a839c(0x158)],_0x4dd8f8[_0x2a839c(0x1a0)]['username'])[_0x2a839c(0x1dc)](_0x4c7903[_0x2a839c(0x192)],_0x4dd8f8[_0x2a839c(0x1a0)][_0x2a839c(0x175)]),_0x4bc3a7={};_0x4bc3a7['WebSocket']=ws,_0x4bc3a7[_0x2a839c(0x128)]=0x36ee80,_0x52750b=new ReconnectingWebSocket(_0x497cb4,[],_0x4bc3a7),global_registry[_0x2a839c(0x19b)]=_0x4c7903[_0x2a839c(0x190)](getAuthHeader,global_registry[_0x2a839c(0x183)],global_registry[_0x2a839c(0x196)]),await _0x4c7903['HcdgJ'](inputValidation,_0x4c4387,_0x52750b),logger[_0x2a839c(0x1db)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x2a839c(0x1fe)]+_0x2a839c(0x14f)+global_registry[_0x2a839c(0x21e)]);let _0x3bdc4d=await _0x4c7903[_0x2a839c(0x1ca)](getCloudProviderObjectWithOutInit,global_registry[_0x2a839c(0x1fe)],global_registry[_0x2a839c(0x1e1)],_0x4c7903['KYach'],_0x52750b,webSocketUtils,_0x4c4387);const _0x535164=await _0x3bdc4d[_0x2a839c(0x1b9)]();_0x4c7903[_0x2a839c(0x190)](printResponse,_0x4c7903['rlNbP'],_0x535164),_0x3bdc4d=await _0x3bdc4d[_0x2a839c(0x1d5)]();let _0x4e5fce=![];try{_0x4e5fce=await _0x3bdc4d[_0x2a839c(0x21d)]();}catch(_0x21ba51){const _0x3322e3=_0x4c7903[_0x2a839c(0x147)][_0x2a839c(0x1f5)]('|');let _0x5cd0b1=0x0;while(!![]){switch(_0x3322e3[_0x5cd0b1++]){case'0':_0x4e5fce=null;continue;case'1':_0x37e887=_0x2a839c(0x210)+global_registry[_0x2a839c(0x1e1)]+_0x2a839c(0x216)+global_registry[_0x2a839c(0x21e)]+_0x2a839c(0x1f9)+_0x21ba51;continue;case'2':logger[_0x2a839c(0x1cf)](_0x37e887);continue;case'3':await _0x4c7903[_0x2a839c(0x12e)](reportToGalactusAndSendToEDS,_0x4c4387,_0x52750b,_0x37e887,messageTypes[_0x2a839c(0x21c)],_0x4c7903[_0x2a839c(0x188)],'cluster-check-failed-'+global_registry[_0x2a839c(0x1fe)],_0x4c7903[_0x2a839c(0x1b6)]);continue;case'4':_0x37e887+='\x0a'+JSON[_0x2a839c(0x21f)](_0x21ba51[_0x2a839c(0x13f)]);continue;}break;}}_0x4e5fce&&logger['info'](_0x2a839c(0x160)+global_registry[_0x2a839c(0x1e1)]+'`\x20already\x20exists');const _0x59e908=await _0x3bdc4d[_0x2a839c(0x16c)]();_0x4c7903[_0x2a839c(0x1eb)](printResponse,_0x4c7903[_0x2a839c(0x186)],_0x59e908);const _0x1bbb72=await _0x4c7903[_0x2a839c(0x1c3)](curlRequest);_0x4c7903[_0x2a839c(0x1eb)](printResponse,_0x4c7903['UHhui'],_0x1bbb72);const _0x3ce6dc=await _0x4c7903['zWvpx'](isTlsSupported,_0x4c7903[_0x2a839c(0x153)]);_0x4c7903[_0x2a839c(0x1ec)](printResponse,_0x4c7903[_0x2a839c(0x169)],_0x3ce6dc);const _0x5f4b75={};_0x5f4b75['header']=_0x4c7903['CvNMN'],_0x5f4b75[_0x2a839c(0x199)]=_0x535164;const _0xd628d9={};_0xd628d9[_0x2a839c(0x14e)]=_0x4c7903[_0x2a839c(0x1ee)],_0xd628d9[_0x2a839c(0x199)]=_0x59e908;const _0x321665={};_0x321665[_0x2a839c(0x14e)]=_0x4c7903[_0x2a839c(0x15b)],_0x321665[_0x2a839c(0x199)]=_0x1bbb72;const _0x285a57={};_0x285a57[_0x2a839c(0x14e)]=_0x4c7903[_0x2a839c(0x180)],_0x285a57[_0x2a839c(0x199)]=_0x3ce6dc;const _0x47ea08=[_0x5f4b75,_0xd628d9,_0x321665,_0x285a57],_0x54f831=await _0x4c7903[_0x2a839c(0x1eb)](generateReport,_0x47ea08,_0x4e5fce),_0x6dc375=new Date(),_0x5880f=_0x6dc375[_0x2a839c(0x174)]()+'_'+_0x4c7903[_0x2a839c(0x20d)](_0x6dc375[_0x2a839c(0x206)](),0x1)+'_'+_0x6dc375[_0x2a839c(0x19f)]()+'_'+_0x6dc375['getUTCHours']()+'_'+_0x6dc375['getUTCMinutes'](),_0x4fee7c='log/report_'+_0x5880f+_0x2a839c(0x18d);fs[_0x2a839c(0x203)](_0x4fee7c,_0x54f831,_0x4c7903[_0x2a839c(0x17b)]),logger[_0x2a839c(0x1db)](_0x2a839c(0x1af)+_0x4fee7c),process[_0x2a839c(0x14c)](0x0);}catch(_0x17ed31){let _0x2ea738='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x17ed31+'\x20';logger[_0x2a839c(0x1cf)](_0x2ea738),_0x2ea738+='\x0a'+JSON['stringify'](_0x17ed31[_0x2a839c(0x13f)]),logger['debug'](_0x2a839c(0x19a)+_0x17ed31[_0x2a839c(0x13f)]);if(_0x52750b){const _0x7cad={};_0x7cad[_0x2a839c(0x209)]=WS_EVENTS[_0x2a839c(0x151)],_0x7cad[_0x2a839c(0x13e)]=_0x2ea738,webSocketUtils['sendEventToBackend'](_0x52750b,_0x7cad,_0x4c7903[_0x2a839c(0x1b6)],!![]);}await webSocketUtils[_0x2a839c(0x140)](0x7d0);const _0x52181e={};_0x52181e[_0x2a839c(0x1cf)]=_0x2ea738,await _0x4c7903[_0x2a839c(0x1d6)](sendInstrumentationEvent,_0x4c4387,_0x4c7903[_0x2a839c(0x188)],messageTypes[_0x2a839c(0x21c)],_0x4c7903[_0x2a839c(0x130)],_0x52181e,_0x4c4387),process[_0x2a839c(0x14c)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x108455=a18_0x1a90;function a18_0x1a90(_0x501ece,_0x2838ed){const _0x2f78fe=a18_0x2f78();return a18_0x1a90=function(_0x1a9090,_0x221edf){_0x1a9090=_0x1a9090-0x1b0;let _0x413fb5=_0x2f78fe[_0x1a9090];return _0x413fb5;},a18_0x1a90(_0x501ece,_0x2838ed);}(function(_0x4f0aab,_0x4fed99){const _0x331765=a18_0x1a90,_0x5b2edc=_0x4f0aab();while(!![]){try{const _0x3a41dc=-parseInt(_0x331765(0x1c7))/0x1*(-parseInt(_0x331765(0x1bf))/0x2)+parseInt(_0x331765(0x1be))/0x3+-parseInt(_0x331765(0x1b8))/0x4+parseInt(_0x331765(0x1b1))/0x5+parseInt(_0x331765(0x1c1))/0x6+-parseInt(_0x331765(0x1c5))/0x7+-parseInt(_0x331765(0x1b0))/0x8*(parseInt(_0x331765(0x1c2))/0x9);if(_0x3a41dc===_0x4fed99)break;else _0x5b2edc['push'](_0x5b2edc['shift']());}catch(_0x4f8bef){_0x5b2edc['push'](_0x5b2edc['shift']());}}}(a18_0x2f78,0xe6f95));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x108455(0x1bc));function a18_0x2f78(){const _0x591e66=['epilogue','../config/constants','desc','4239216DGWPxY','3098204KWVhSk','start','7065510meMQXo','27gHuNqs','builder','help','7949361cYLrZm','command','1SIsAWI','8568856OZzUJi','6009655RGajhA','BSUah','start_commands','demandCommand','strict','usage','ODLOZ','186708fdEHAw','commandDir','handler'];a18_0x2f78=function(){return _0x591e66;};return a18_0x2f78();}exports[a18_0x108455(0x1c6)]=a18_0x108455(0x1c0),exports[a18_0x108455(0x1bd)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x108455(0x1c3)]=function(_0x3c7eaa){const _0x5a6162=a18_0x108455,_0x3133a4={};_0x3133a4[_0x5a6162(0x1b2)]=_0x5a6162(0x1b3),_0x3133a4[_0x5a6162(0x1b7)]=_0x5a6162(0x1c4);const _0x5124ac=_0x3133a4;return _0x3c7eaa[_0x5a6162(0x1b6)](HELP_HEADER_MESSAGE[_0x5a6162(0x1c0)])[_0x5a6162(0x1bb)](HELP_FOOTER_MESSAGE)[_0x5a6162(0x1b9)](_0x5124ac[_0x5a6162(0x1b2)])[_0x5a6162(0x1b4)]()['recommendCommands']()[_0x5a6162(0x1b5)]()[_0x5a6162(0x1c4)](_0x5124ac['ODLOZ']);},exports[a18_0x108455(0x1ba)]=function(_0x3d9d1a){};
1
+ function a18_0x437e(_0xccea93,_0x1c6ec9){const _0x5ca1f5=a18_0x5ca1();return a18_0x437e=function(_0x437ebe,_0x403d42){_0x437ebe=_0x437ebe-0x118;let _0x1f54b8=_0x5ca1f5[_0x437ebe];return _0x1f54b8;},a18_0x437e(_0xccea93,_0x1c6ec9);}const a18_0x170c23=a18_0x437e;(function(_0x171090,_0x342e84){const _0x161c5b=a18_0x437e,_0x4ed3af=_0x171090();while(!![]){try{const _0x331efb=parseInt(_0x161c5b(0x124))/0x1*(-parseInt(_0x161c5b(0x11f))/0x2)+-parseInt(_0x161c5b(0x11d))/0x3+parseInt(_0x161c5b(0x11b))/0x4*(-parseInt(_0x161c5b(0x121))/0x5)+-parseInt(_0x161c5b(0x118))/0x6*(parseInt(_0x161c5b(0x119))/0x7)+-parseInt(_0x161c5b(0x125))/0x8*(parseInt(_0x161c5b(0x127))/0x9)+parseInt(_0x161c5b(0x12d))/0xa+parseInt(_0x161c5b(0x11e))/0xb;if(_0x331efb===_0x342e84)break;else _0x4ed3af['push'](_0x4ed3af['shift']());}catch(_0x5229e9){_0x4ed3af['push'](_0x4ed3af['shift']());}}}(a18_0x5ca1,0xbe5aa));function a18_0x5ca1(){const _0x2a1e3f=['3710871aSFZwF','40349661PndRNg','2858thqsbz','builder','36115Ihssak','demandCommand','start','76TrsLMK','230696TzuURp','command','270fwNSgm','recommendCommands','help','mglbs','Start\x20an\x20existing\x20Automation\x20grid.','desc','5672430JWbHKC','epilogue','commandDir','78kbcrjz','627620OfwEzR','QREOq','44vXnEkb','usage'];a18_0x5ca1=function(){return _0x2a1e3f;};return a18_0x5ca1();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x170c23(0x126)]=a18_0x170c23(0x123),exports[a18_0x170c23(0x12c)]=a18_0x170c23(0x12b),exports[a18_0x170c23(0x120)]=function(_0x721e32){const _0x1bc0ca=a18_0x170c23,_0x34056e={};_0x34056e['mglbs']='start_commands',_0x34056e['QREOq']=_0x1bc0ca(0x129);const _0xfe2401=_0x34056e;return _0x721e32[_0x1bc0ca(0x11c)](HELP_HEADER_MESSAGE[_0x1bc0ca(0x123)])[_0x1bc0ca(0x12e)](HELP_FOOTER_MESSAGE)[_0x1bc0ca(0x12f)](_0xfe2401[_0x1bc0ca(0x12a)])[_0x1bc0ca(0x122)]()[_0x1bc0ca(0x128)]()['strict']()['help'](_0xfe2401[_0x1bc0ca(0x11a)]);},exports['handler']=function(_0x294f8a){};
@@ -1 +1 @@
1
- const a19_0x2dcd7a=a19_0x561b;function a19_0x3783(){const _0x4c0575=['KjSek','INFO','PyIgs','skip-tls-cert-verify','start-grid-called','../../utils/webSocketUtils','byNFk','clusterName','Adding\x20Websocket\x20listeners','Start\x20an\x20existing\x20Automation\x20grid.','<PasswordPlaceholder>','TebXQ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid','6xocGsa','../../utils/instrumentationUtils','lZCaJ','uQtwx','builder','avxuu','cloudProvider','93519QoCEVT','statusCode','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','message','grid-id','bstackUsername','jEZKS','name','9690NtRABy','options','PzfkE','../../utils/gridComponents','unOCZ','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','1971410kbXMuM','sfgxX','user','parse','ERROR','region','Starting\x20grid\x20','QnZby','206332AzYxWN','Browserstack','error','<UsernamePlaceholder>','usage','WjxCk','type','argv','stringify','gyHNs','body','bstackAccesskey','1852660pCbFIs','559505jxEGfj','existsSync','qWuQB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','exit','WebSocket','../../utils/utilityMethods','Grid\x20started','unauthorised','command','help','ghhqO','765220yuZbGp','clusterRegion','Yuqsh','../../config/logger','44OMPgEU','start','MFedr','replace','debug','440BrYuTX','gridId','info','password','../../utils/createk8sClient','../../cloudproviders/utils','Iybmb','username','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','184tlzwMZ','string','../../config/constants','Skip\x20insecure\x20cert\x20verification.'];a19_0x3783=function(){return _0x4c0575;};return a19_0x3783();}function a19_0x561b(_0x29fba6,_0x1a7157){const _0x378316=a19_0x3783();return a19_0x561b=function(_0x561bd9,_0x4296bf){_0x561bd9=_0x561bd9-0x182;let _0x4140fc=_0x378316[_0x561bd9];return _0x4140fc;},a19_0x561b(_0x29fba6,_0x1a7157);}(function(_0x205f5b,_0x34bc80){const _0x400556=a19_0x561b,_0x476c3a=_0x205f5b();while(!![]){try{const _0x32b96f=-parseInt(_0x400556(0x1a5))/0x1+parseInt(_0x400556(0x1be))/0x2+-parseInt(_0x400556(0x197))/0x3*(-parseInt(_0x400556(0x1c7))/0x4)+parseInt(_0x400556(0x1b2))/0x5*(-parseInt(_0x400556(0x188))/0x6)+parseInt(_0x400556(0x19d))/0x7+-parseInt(_0x400556(0x1d0))/0x8*(-parseInt(_0x400556(0x18f))/0x9)+parseInt(_0x400556(0x1b1))/0xa*(-parseInt(_0x400556(0x1c2))/0xb);if(_0x32b96f===_0x34bc80)break;else _0x476c3a['push'](_0x476c3a['shift']());}catch(_0x2cc6ad){_0x476c3a['push'](_0x476c3a['shift']());}}}(a19_0x3783,0x30a44));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2dcd7a(0x1d2)),{logger}=require(a19_0x2dcd7a(0x1c1)),{getCredentialsPath,getGridDetails}=require(a19_0x2dcd7a(0x1b8)),{scaleUpHubDeployment}=require(a19_0x2dcd7a(0x19a)),{sendInstrumentationEvent}=require(a19_0x2dcd7a(0x189)),webSocketUtils=require(a19_0x2dcd7a(0x1d9)),{createK8sClient}=require(a19_0x2dcd7a(0x1cb)),{getCloudProviderObject}=require(a19_0x2dcd7a(0x1cc));exports[a19_0x2dcd7a(0x1bb)]=a19_0x2dcd7a(0x187),exports['desc']=a19_0x2dcd7a(0x183),exports[a19_0x2dcd7a(0x18c)]=function(_0x5d595f){const _0x5be782=a19_0x2dcd7a,_0x30ee67={};_0x30ee67['vYSBu']=_0x5be782(0x19c),_0x30ee67['sfgxX']=_0x5be782(0x1d1),_0x30ee67[_0x5be782(0x1da)]=_0x5be782(0x1d3),_0x30ee67[_0x5be782(0x199)]='boolean',_0x30ee67[_0x5be782(0x1c4)]=_0x5be782(0x1bc);const _0x1a92ca=_0x30ee67,_0x93e035={};_0x93e035['description']=_0x1a92ca['vYSBu'],_0x93e035[_0x5be782(0x1ab)]=_0x1a92ca[_0x5be782(0x19e)];const _0xb4a170={};_0xb4a170['description']=_0x1a92ca[_0x5be782(0x1da)],_0xb4a170[_0x5be782(0x1ab)]=_0x1a92ca[_0x5be782(0x199)],_0xb4a170['default']=![];const _0x2ec17d={};return _0x2ec17d[_0x5be782(0x193)]=_0x93e035,_0x2ec17d[_0x5be782(0x1d7)]=_0xb4a170,_0x5d595f[_0x5be782(0x1a9)](HELP_HEADER_MESSAGE[_0x5be782(0x1c3)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5be782(0x198)](_0x2ec17d)['help'](_0x1a92ca[_0x5be782(0x1c4)])[_0x5be782(0x1ac)];},exports['handler']=async function(_0x420756){const _0x536676=a19_0x2dcd7a,_0x1f591e={'uQtwx':_0x536676(0x1cf),'TebXQ':function(_0x5f287e){return _0x5f287e();},'WjxCk':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Yuqsh':function(_0xeb8e91,_0x2d402d,_0x28a175,_0x4f828d,_0x3cb9a4,_0x693bf8,_0x31447d){return _0xeb8e91(_0x2d402d,_0x28a175,_0x4f828d,_0x3cb9a4,_0x693bf8,_0x31447d);},'avxuu':_0x536676(0x1d8),'lZCaJ':'init-not-called','VhwLx':function(_0x377908){return _0x377908();},'jEZKS':_0x536676(0x1a8),'lLyms':_0x536676(0x184),'ghhqO':_0x536676(0x182),'zuMKV':function(_0x5719da,_0x55aadd,_0x59f3dd,_0x341c2a){return _0x5719da(_0x55aadd,_0x59f3dd,_0x341c2a);},'gyHNs':function(_0x447da9,_0x2f9eb2,_0x3e834a){return _0x447da9(_0x2f9eb2,_0x3e834a);},'KjSek':_0x536676(0x1b9),'PyIgs':function(_0x3265f0,_0xe4b07f){return _0x3265f0===_0xe4b07f;},'QnZby':_0x536676(0x186),'unOCZ':_0x536676(0x1ba),'Iybmb':'invalid-grid-id','qWuQB':'server-error'};let _0x637487;try{!_0x420756[_0x536676(0x1c8)]&&(logger[_0x536676(0x1a7)](_0x1f591e[_0x536676(0x18b)]),process['exit'](0x1));!fs[_0x536676(0x1b3)](_0x1f591e[_0x536676(0x185)](getCredentialsPath))&&(logger['error'](_0x1f591e[_0x536676(0x1aa)]),await _0x1f591e['Yuqsh'](sendInstrumentationEvent,_0x420756,_0x1f591e[_0x536676(0x18d)],messageTypes['ERROR'],_0x1f591e[_0x536676(0x18a)],null,_0x420756),process['exit'](0x1));logger[_0x536676(0x1c9)](_0x536676(0x1a3)+_0x420756['gridId']),await _0x1f591e[_0x536676(0x1c0)](sendInstrumentationEvent,_0x420756,_0x1f591e[_0x536676(0x18d)],messageTypes[_0x536676(0x1d5)],null,null,_0x420756);const _0xe52f51=JSON[_0x536676(0x1a0)](fs['readFileSync'](_0x1f591e['VhwLx'](getCredentialsPath)));global_registry[_0x536676(0x194)]=_0xe52f51[_0x536676(0x1a6)][_0x536676(0x1ce)],global_registry[_0x536676(0x1b0)]=_0xe52f51['Browserstack'][_0x536676(0x1ca)];const _0x4a4c2b=WS_ENDPOINT[_0x536676(0x1c5)](_0x1f591e[_0x536676(0x195)],_0xe52f51[_0x536676(0x1a6)][_0x536676(0x1ce)])[_0x536676(0x1c5)](_0x1f591e['lLyms'],_0xe52f51['Browserstack'][_0x536676(0x1ca)]),_0x53afbb={};_0x53afbb[_0x536676(0x1b7)]=ws,_0x53afbb['connectionTimeout']=0x36ee80,_0x637487=new ReconnectingWebSocket(_0x4a4c2b,[],_0x53afbb),logger[_0x536676(0x1c6)](_0x1f591e[_0x536676(0x1bd)]),webSocketUtils['addListeners'](_0x637487,_0x420756[_0x536676(0x19f)],_0x420756[_0x536676(0x1ca)]);const [_0x444d85,_0x327b98]=await _0x1f591e['zuMKV'](getGridDetails,_0xe52f51[_0x536676(0x1a6)]['username'],_0xe52f51[_0x536676(0x1a6)]['password'],_0x420756[_0x536676(0x1c8)]);if(_0x327b98){const _0x4dee19=_0x327b98[_0x536676(0x1c9)];global_registry[_0x536676(0x18e)]=_0x4dee19['cloudProvider'],global_registry[_0x536676(0x1bf)]=_0x4dee19[_0x536676(0x1a2)],global_registry[_0x536676(0x1db)]=_0x4dee19[_0x536676(0x1db)];const _0x33018f=await _0x1f591e['Yuqsh'](getCloudProviderObject,_0x4dee19[_0x536676(0x18e)],_0x4dee19[_0x536676(0x1db)],_0x4dee19[_0x536676(0x196)],_0x637487,webSocketUtils,_0x420756),[_0x4ff9b0,_0x5d3017,_0x2b344b,_0x206dc4,_0x45cd33,_0x2009d5]=await _0x1f591e[_0x536676(0x1ae)](createK8sClient,_0x33018f,_0x420756['skipTlsCertVerify']);await _0x1f591e[_0x536676(0x1ae)](scaleUpHubDeployment,_0x5d3017,_0x4dee19[_0x536676(0x196)]),logger[_0x536676(0x1c9)](_0x1f591e[_0x536676(0x1d4)]),process[_0x536676(0x1b6)](0x0);}_0x1f591e[_0x536676(0x1d6)](_0x444d85['statusCode'],0x191)&&(logger['error'](_0x1f591e[_0x536676(0x1a4)]),await _0x1f591e[_0x536676(0x1c0)](sendInstrumentationEvent,_0x420756,_0x1f591e[_0x536676(0x18d)],messageTypes['ERROR'],_0x1f591e[_0x536676(0x19b)],null,_0x420756),process[_0x536676(0x1b6)](0x1)),_0x1f591e[_0x536676(0x1d6)](_0x444d85[_0x536676(0x190)],0x190)&&(logger[_0x536676(0x1a7)](JSON[_0x536676(0x1a0)](_0x444d85[_0x536676(0x1af)])[_0x536676(0x192)]),await _0x1f591e[_0x536676(0x1c0)](sendInstrumentationEvent,_0x420756,_0x1f591e[_0x536676(0x18d)],messageTypes[_0x536676(0x1a1)],_0x1f591e[_0x536676(0x1cd)],null,_0x420756),process[_0x536676(0x1b6)](0x1)),logger[_0x536676(0x1a7)](_0x536676(0x1b5)+JSON[_0x536676(0x1ad)](_0x444d85)),await _0x1f591e['Yuqsh'](sendInstrumentationEvent,_0x420756,_0x1f591e[_0x536676(0x18d)],messageTypes['ERROR'],_0x1f591e[_0x536676(0x1b4)],_0x444d85,_0x420756),process[_0x536676(0x1b6)](0x1);}catch(_0x14bac9){const _0x46ee37=_0x536676(0x191)+_0x14bac9+'\x20\x0a'+JSON[_0x536676(0x1ad)](_0x14bac9['stack'])+'\x20';logger['error'](_0x46ee37),process[_0x536676(0x1b6)](0x1);}};
1
+ const a19_0x23c734=a19_0x1860;(function(_0x1bd179,_0x128eb4){const _0x30110d=a19_0x1860,_0x2e50a5=_0x1bd179();while(!![]){try{const _0x2d1a85=parseInt(_0x30110d(0x199))/0x1+-parseInt(_0x30110d(0x18e))/0x2*(parseInt(_0x30110d(0x1ce))/0x3)+-parseInt(_0x30110d(0x1be))/0x4+-parseInt(_0x30110d(0x19c))/0x5*(parseInt(_0x30110d(0x1ab))/0x6)+-parseInt(_0x30110d(0x18c))/0x7*(-parseInt(_0x30110d(0x1b3))/0x8)+parseInt(_0x30110d(0x1b7))/0x9*(-parseInt(_0x30110d(0x1de))/0xa)+parseInt(_0x30110d(0x19f))/0xb;if(_0x2d1a85===_0x128eb4)break;else _0x2e50a5['push'](_0x2e50a5['shift']());}catch(_0x28ad52){_0x2e50a5['push'](_0x2e50a5['shift']());}}}(a19_0x530a,0x2349e));function a19_0x530a(){const _0x336756=['HDLdJ','builder','FSzus','skipTlsCertVerify','usage','grid-id','ERROR','bstackUsername','<PasswordPlaceholder>','type','stringify','start','existsSync','../../utils/createk8sClient','JKOfc','390770XOYpbD','desc','cloudProvider','user','replace','help','oRNmd','region','INFO','jksps','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../config/constants','729673wByVEb','addListeners','33342rllfWS','cTIxR','epilogue','vKfyh','Grid\x20started','gridId','exit','skip-tls-cert-verify','description','clusterName','efxJX','273687oPGHFK','clusterRegion','options','110GgcCNa','debug','../../cloudproviders/utils','2376528VtiSjO','yYdWv','readFileSync','bOUHl','unauthorised','init-not-called','../../utils/gridComponents','string','username','Pwpxl','IDWgo','TQILD','68682aVfZej','parse','start-grid-called','dqAuV','<UsernamePlaceholder>','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','statusCode','8IMyCwZ','error','HtWKS','Browserstack','18zaqHRb','name','info','../../utils/utilityMethods','body','argv','Starting\x20grid\x20','77672CxYBuC','AgvjV','../../config/logger','server-error','message','iWJwW','boolean','ErDNm','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','reconnecting-websocket','password','../../utils/instrumentationUtils','NouWg','stack','GwRUf','18lbCOUp'];a19_0x530a=function(){return _0x336756;};return a19_0x530a();}function a19_0x1860(_0x1cd714,_0x4a201f){const _0x530ade=a19_0x530a();return a19_0x1860=function(_0x18605d,_0xda3a57){_0x18605d=_0x18605d-0x186;let _0x3d99d5=_0x530ade[_0x18605d];return _0x3d99d5;},a19_0x1860(_0x1cd714,_0x4a201f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x23c734(0x1c8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x23c734(0x18b)),{logger}=require(a19_0x23c734(0x1c0)),{getCredentialsPath,getGridDetails}=require(a19_0x23c734(0x1ba)),{scaleUpHubDeployment}=require(a19_0x23c734(0x1a5)),{sendInstrumentationEvent}=require(a19_0x23c734(0x1ca)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x23c734(0x1dc)),{getCloudProviderObject}=require(a19_0x23c734(0x19e));exports['command']=a19_0x23c734(0x1b0),exports[a19_0x23c734(0x1df)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x23c734(0x1d0)]=function(_0x1a6bbd){const _0x315a3a=a19_0x23c734,_0xad4f42={};_0xad4f42[_0x315a3a(0x1cf)]=_0x315a3a(0x1c6),_0xad4f42['cTIxR']=_0x315a3a(0x1a6),_0xad4f42[_0x315a3a(0x1b5)]='Skip\x20insecure\x20cert\x20verification.',_0xad4f42[_0x315a3a(0x1cd)]=_0x315a3a(0x1c4),_0xad4f42[_0x315a3a(0x1c5)]=_0x315a3a(0x1e3);const _0x14b143=_0xad4f42,_0x515197={};_0x515197[_0x315a3a(0x196)]=_0x14b143[_0x315a3a(0x1cf)],_0x515197[_0x315a3a(0x1d8)]=_0x14b143[_0x315a3a(0x18f)];const _0x4edafa={};_0x4edafa[_0x315a3a(0x196)]=_0x14b143[_0x315a3a(0x1b5)],_0x4edafa[_0x315a3a(0x1d8)]=_0x14b143[_0x315a3a(0x1cd)],_0x4edafa['default']=![];const _0x10583e={};return _0x10583e[_0x315a3a(0x1d4)]=_0x515197,_0x10583e[_0x315a3a(0x195)]=_0x4edafa,_0x1a6bbd[_0x315a3a(0x1d3)](HELP_HEADER_MESSAGE[_0x315a3a(0x1da)])[_0x315a3a(0x190)](HELP_FOOTER_MESSAGE)[_0x315a3a(0x19b)](_0x10583e)[_0x315a3a(0x1e3)](_0x14b143[_0x315a3a(0x1c5)])[_0x315a3a(0x1bc)];},exports['handler']=async function(_0x58e652){const _0x3f1b8f=a19_0x23c734,_0x368c5f={'bOUHl':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','efxJX':function(_0xe49eb5){return _0xe49eb5();},'dqAuV':_0x3f1b8f(0x1c7),'JKOfc':function(_0x2efa69,_0x102fc2,_0x5d5afa,_0x662e87,_0x276488,_0x37714b,_0x3f5691){return _0x2efa69(_0x102fc2,_0x5d5afa,_0x662e87,_0x276488,_0x37714b,_0x3f5691);},'IDWgo':_0x3f1b8f(0x1ad),'jksps':_0x3f1b8f(0x1a4),'TQILD':_0x3f1b8f(0x1af),'ANmuS':_0x3f1b8f(0x1d7),'Pwpxl':'Adding\x20Websocket\x20listeners','zjIsd':function(_0x138722,_0x226d4b,_0x2a05bb,_0x55fd8d){return _0x138722(_0x226d4b,_0x2a05bb,_0x55fd8d);},'NouWg':function(_0x34f41a,_0x3e61b1,_0x271d57){return _0x34f41a(_0x3e61b1,_0x271d57);},'oRNmd':_0x3f1b8f(0x192),'FSzus':function(_0x3f9dbc,_0x1aee5d){return _0x3f9dbc===_0x1aee5d;},'lMhVW':_0x3f1b8f(0x18a),'yYdWv':_0x3f1b8f(0x1a3),'vKfyh':function(_0x4d4408,_0x5e1214,_0x4691a0,_0x2d1eeb,_0x18c908,_0x24577e,_0x3f1094){return _0x4d4408(_0x5e1214,_0x4691a0,_0x2d1eeb,_0x18c908,_0x24577e,_0x3f1094);},'AgvjV':'invalid-grid-id','iWJwW':_0x3f1b8f(0x1c1)};let _0x1190d5;try{!_0x58e652[_0x3f1b8f(0x193)]&&(logger[_0x3f1b8f(0x1b4)](_0x368c5f[_0x3f1b8f(0x1a2)]),process[_0x3f1b8f(0x194)](0x1));!fs[_0x3f1b8f(0x1db)](_0x368c5f[_0x3f1b8f(0x198)](getCredentialsPath))&&(logger[_0x3f1b8f(0x1b4)](_0x368c5f[_0x3f1b8f(0x1ae)]),await _0x368c5f[_0x3f1b8f(0x1dd)](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes['ERROR'],_0x368c5f[_0x3f1b8f(0x189)],null,_0x58e652),process[_0x3f1b8f(0x194)](0x1));logger[_0x3f1b8f(0x1b9)](_0x3f1b8f(0x1bd)+_0x58e652[_0x3f1b8f(0x193)]),await _0x368c5f[_0x3f1b8f(0x1dd)](sendInstrumentationEvent,_0x58e652,_0x368c5f['IDWgo'],messageTypes[_0x3f1b8f(0x188)],null,null,_0x58e652);const _0x2bc2bc=JSON[_0x3f1b8f(0x1ac)](fs[_0x3f1b8f(0x1a1)](_0x368c5f[_0x3f1b8f(0x198)](getCredentialsPath)));global_registry[_0x3f1b8f(0x1d6)]=_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1a7)],global_registry['bstackAccesskey']=_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1c9)];const _0x586702=WS_ENDPOINT[_0x3f1b8f(0x1e2)](_0x368c5f[_0x3f1b8f(0x1aa)],_0x2bc2bc['Browserstack'][_0x3f1b8f(0x1a7)])['replace'](_0x368c5f['ANmuS'],_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1c9)]),_0x59c53e={};_0x59c53e['WebSocket']=ws,_0x59c53e['connectionTimeout']=0x36ee80,_0x1190d5=new ReconnectingWebSocket(_0x586702,[],_0x59c53e),logger[_0x3f1b8f(0x19d)](_0x368c5f[_0x3f1b8f(0x1a8)]),webSocketUtils[_0x3f1b8f(0x18d)](_0x1190d5,_0x58e652[_0x3f1b8f(0x1e1)],_0x58e652[_0x3f1b8f(0x1c9)]);const [_0x5a85ec,_0x42e77b]=await _0x368c5f['zjIsd'](getGridDetails,_0x2bc2bc[_0x3f1b8f(0x1b6)]['username'],_0x2bc2bc[_0x3f1b8f(0x1b6)][_0x3f1b8f(0x1c9)],_0x58e652[_0x3f1b8f(0x193)]);if(_0x42e77b){const _0x5ca01e=_0x42e77b[_0x3f1b8f(0x1b9)];global_registry[_0x3f1b8f(0x1e0)]=_0x5ca01e[_0x3f1b8f(0x1e0)],global_registry[_0x3f1b8f(0x19a)]=_0x5ca01e[_0x3f1b8f(0x187)],global_registry[_0x3f1b8f(0x197)]=_0x5ca01e[_0x3f1b8f(0x197)];const _0x14b66c=await _0x368c5f[_0x3f1b8f(0x1dd)](getCloudProviderObject,_0x5ca01e[_0x3f1b8f(0x1e0)],_0x5ca01e[_0x3f1b8f(0x197)],_0x5ca01e[_0x3f1b8f(0x1b8)],_0x1190d5,webSocketUtils,_0x58e652),[_0x52728e,_0x1f67ae,_0x197403,_0x333b50,_0xfb2624,_0x442f16]=await _0x368c5f['NouWg'](createK8sClient,_0x14b66c,_0x58e652[_0x3f1b8f(0x1d2)]);await _0x368c5f[_0x3f1b8f(0x1cb)](scaleUpHubDeployment,_0x1f67ae,_0x5ca01e[_0x3f1b8f(0x1b8)]),logger['info'](_0x368c5f[_0x3f1b8f(0x186)]),process['exit'](0x0);}_0x368c5f[_0x3f1b8f(0x1d1)](_0x5a85ec[_0x3f1b8f(0x1b2)],0x191)&&(logger[_0x3f1b8f(0x1b4)](_0x368c5f['lMhVW']),await _0x368c5f['JKOfc'](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes[_0x3f1b8f(0x1d5)],_0x368c5f[_0x3f1b8f(0x1a0)],null,_0x58e652),process[_0x3f1b8f(0x194)](0x1)),_0x368c5f[_0x3f1b8f(0x1d1)](_0x5a85ec[_0x3f1b8f(0x1b2)],0x190)&&(logger[_0x3f1b8f(0x1b4)](JSON['parse'](_0x5a85ec[_0x3f1b8f(0x1bb)])[_0x3f1b8f(0x1c2)]),await _0x368c5f[_0x3f1b8f(0x191)](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes[_0x3f1b8f(0x1d5)],_0x368c5f[_0x3f1b8f(0x1bf)],null,_0x58e652),process['exit'](0x1)),logger['error'](_0x3f1b8f(0x1b1)+JSON[_0x3f1b8f(0x1d9)](_0x5a85ec)),await _0x368c5f[_0x3f1b8f(0x191)](sendInstrumentationEvent,_0x58e652,_0x368c5f[_0x3f1b8f(0x1a9)],messageTypes[_0x3f1b8f(0x1d5)],_0x368c5f[_0x3f1b8f(0x1c3)],_0x5a85ec,_0x58e652),process['exit'](0x1);}catch(_0x4840ce){const _0x16c830='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x4840ce+'\x20\x0a'+JSON[_0x3f1b8f(0x1d9)](_0x4840ce[_0x3f1b8f(0x1cc)])+'\x20';logger[_0x3f1b8f(0x1b4)](_0x16c830),process[_0x3f1b8f(0x194)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x40936f=a20_0x5d87;(function(_0x3fe70a,_0x515a6a){const _0x1159de=a20_0x5d87,_0x509ec2=_0x3fe70a();while(!![]){try{const _0x5b2c81=parseInt(_0x1159de(0x96))/0x1*(-parseInt(_0x1159de(0x98))/0x2)+-parseInt(_0x1159de(0x93))/0x3+parseInt(_0x1159de(0x99))/0x4*(parseInt(_0x1159de(0xa2))/0x5)+-parseInt(_0x1159de(0xa3))/0x6+parseInt(_0x1159de(0x9c))/0x7*(parseInt(_0x1159de(0x9e))/0x8)+-parseInt(_0x1159de(0xab))/0x9*(-parseInt(_0x1159de(0xa9))/0xa)+parseInt(_0x1159de(0xa8))/0xb;if(_0x5b2c81===_0x515a6a)break;else _0x509ec2['push'](_0x509ec2['shift']());}catch(_0x274abc){_0x509ec2['push'](_0x509ec2['shift']());}}}(a20_0x3bb8,0x6bc8c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x40936f(0x94));exports[a20_0x40936f(0x95)]=a20_0x40936f(0xac),exports[a20_0x40936f(0x97)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x40936f(0x9f)]=function(_0xd33b62){const _0x47c1d9=a20_0x40936f,_0x147807={};_0x147807['RTcbA']=_0x47c1d9(0x9a),_0x147807[_0x47c1d9(0xa6)]=_0x47c1d9(0x9b);const _0x524025=_0x147807;return _0xd33b62[_0x47c1d9(0x9d)](HELP_HEADER_MESSAGE['stop'])[_0x47c1d9(0xa7)](HELP_FOOTER_MESSAGE)[_0x47c1d9(0xa1)](_0x524025['RTcbA'])[_0x47c1d9(0xa4)]()[_0x47c1d9(0xaa)]()[_0x47c1d9(0xa5)]()[_0x47c1d9(0x9b)](_0x524025[_0x47c1d9(0xa6)]);},exports[a20_0x40936f(0xa0)]=function(_0x35b947){};function a20_0x5d87(_0x1f64ba,_0xc88a4b){const _0x3bb8fd=a20_0x3bb8();return a20_0x5d87=function(_0x5d8721,_0x15236c){_0x5d8721=_0x5d8721-0x93;let _0x25e6f1=_0x3bb8fd[_0x5d8721];return _0x25e6f1;},a20_0x5d87(_0x1f64ba,_0xc88a4b);}function a20_0x3bb8(){const _0x4fc4fe=['stop_commands','help','42jsDSVg','usage','1175192gsRTsq','builder','handler','commandDir','4035415DLATdT','3925248OuvzHO','demandCommand','strict','XjdtW','epilogue','355322TaZHaS','10JBDGgY','recommendCommands','5643189weAzsH','stop','2423097sHUfJG','../config/constants','command','1aZbIgD','desc','888818xgSKwn','4AUSFwy'];a20_0x3bb8=function(){return _0x4fc4fe;};return a20_0x3bb8();}
1
+ const a20_0x160760=a20_0x3f9d;(function(_0x2d91c9,_0x4af633){const _0x186bf4=a20_0x3f9d,_0xd8278b=_0x2d91c9();while(!![]){try{const _0x321e6b=parseInt(_0x186bf4(0x122))/0x1+-parseInt(_0x186bf4(0x121))/0x2*(parseInt(_0x186bf4(0x120))/0x3)+-parseInt(_0x186bf4(0x11b))/0x4+parseInt(_0x186bf4(0x119))/0x5*(-parseInt(_0x186bf4(0x116))/0x6)+parseInt(_0x186bf4(0x124))/0x7+-parseInt(_0x186bf4(0x11f))/0x8+parseInt(_0x186bf4(0x113))/0x9;if(_0x321e6b===_0x4af633)break;else _0xd8278b['push'](_0xd8278b['shift']());}catch(_0x3547a9){_0xd8278b['push'](_0xd8278b['shift']());}}}(a20_0x1709,0x53631));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x160760(0x117));exports[a20_0x160760(0x11d)]=a20_0x160760(0x115),exports[a20_0x160760(0x112)]=a20_0x160760(0x126),exports[a20_0x160760(0x11c)]=function(_0x2e3567){const _0x79f310=a20_0x160760,_0x45bf9f={};_0x45bf9f[_0x79f310(0x125)]=_0x79f310(0x118),_0x45bf9f['yAGaE']=_0x79f310(0x11a);const _0x4ecf8d=_0x45bf9f;return _0x2e3567[_0x79f310(0x123)](HELP_HEADER_MESSAGE['stop'])[_0x79f310(0x114)](HELP_FOOTER_MESSAGE)[_0x79f310(0x11e)](_0x4ecf8d['rjVoY'])[_0x79f310(0x127)]()[_0x79f310(0x128)]()['strict']()['help'](_0x4ecf8d['yAGaE']);},exports['handler']=function(_0x4daa9b){};function a20_0x3f9d(_0x4fea72,_0x49780e){const _0x1709ea=a20_0x1709();return a20_0x3f9d=function(_0x3f9d23,_0x1f7abb){_0x3f9d23=_0x3f9d23-0x112;let _0x12cc8e=_0x1709ea[_0x3f9d23];return _0x12cc8e;},a20_0x3f9d(_0x4fea72,_0x49780e);}function a20_0x1709(){const _0x1e332c=['stop','1002wKbFFn','../config/constants','stop_commands','18260SdyVlH','help','2470464lKmAMN','builder','command','commandDir','4970024odFnBl','114339WlHZsz','22ukXKwv','382329jfILSU','usage','3744328KbnCPz','rjVoY','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','recommendCommands','desc','15230844SXaLyq','epilogue'];a20_0x1709=function(){return _0x1e332c;};return a20_0x1709();}
@@ -1 +1 @@
1
- const a21_0x3b3c33=a21_0x1737;function a21_0x1737(_0x4b731a,_0x59f132){const _0x5b0b26=a21_0x5b0b();return a21_0x1737=function(_0x1737a9,_0x1988ff){_0x1737a9=_0x1737a9-0x17b;let _0x23a511=_0x5b0b26[_0x1737a9];return _0x23a511;},a21_0x1737(_0x4b731a,_0x59f132);}function a21_0x5b0b(){const _0x1a2b9d=['wiWJa','15CuYXxg','user','74569cEshGw','desc','replace','grid','reconnecting-websocket','eZKIm','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','options','DjqgN','1490dwphJk','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','BFSFn','ILjlU','2254664ArKPpj','WmBNF','WebSocket','DUFWg','grid-id','4513293cZEqCw','../../utils/instrumentationUtils','OHJjN','../../utils/createk8sClient','gridId','392520NrYRcS','stop','body','Grid\x20stoppped.','existsSync','3576054DbHhVe','addListeners','jjJry','statusCode','command','type','unauthorised','398rpPAqN','../../config/logger','init-not-called','FiGqa','../../utils/webSocketUtils','clusterName','stringify','server-error','help','TKJtg','debug','oSiVe','npVHA','username','Skip\x20insecure\x20cert\x20verification.','Browserstack','569QSVlby','stop-grid-called','ERROR','Stopping\x20grid\x20','Stop\x20a\x20running\x20Automation\x20grid.','error','EEJSs','skip-tls-cert-verify','default','bstackUsername','SxPxQ','../../config/constants','usage','string','14bTTkes','info','name','Kolib','connectionTimeout','builder','120892vzRKMv','bstackAccesskey','cloudProvider','nchGL','xLFsw','WcgPG','INFO','GfDir','description','region','../../utils/gridComponents','boolean','epilogue','message','<UsernamePlaceholder>','clusterRegion','exit','cbsfy'];a21_0x5b0b=function(){return _0x1a2b9d;};return a21_0x5b0b();}(function(_0x8dcca7,_0x4cfceb){const _0x59b2af=a21_0x1737,_0x142baf=_0x8dcca7();while(!![]){try{const _0x5da974=-parseInt(_0x59b2af(0x1d5))/0x1*(-parseInt(_0x59b2af(0x1c5))/0x2)+-parseInt(_0x59b2af(0x19f))/0x3*(parseInt(_0x59b2af(0x18c))/0x4)+-parseInt(_0x59b2af(0x1b9))/0x5+-parseInt(_0x59b2af(0x1be))/0x6+parseInt(_0x59b2af(0x186))/0x7*(parseInt(_0x59b2af(0x1af))/0x8)+-parseInt(_0x59b2af(0x1b4))/0x9+parseInt(_0x59b2af(0x1ab))/0xa*(parseInt(_0x59b2af(0x1a1))/0xb);if(_0x5da974===_0x4cfceb)break;else _0x142baf['push'](_0x142baf['shift']());}catch(_0x14d61f){_0x142baf['push'](_0x142baf['shift']());}}}(a21_0x5b0b,0x57db7));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3b3c33(0x1a5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3b3c33(0x183)),{logger}=require(a21_0x3b3c33(0x1c6)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x3b3c33(0x196)),{sendInstrumentationEvent}=require(a21_0x3b3c33(0x1b5)),webSocketUtils=require(a21_0x3b3c33(0x1c9)),{createK8sClient}=require(a21_0x3b3c33(0x1b7)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x3b3c33(0x1c2)]=a21_0x3b3c33(0x1a4),exports[a21_0x3b3c33(0x1a2)]=a21_0x3b3c33(0x17c),exports[a21_0x3b3c33(0x18b)]=function(_0x236de5){const _0x560c2a=a21_0x3b3c33,_0xab0dbd={};_0xab0dbd['npVHA']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0xab0dbd[_0x560c2a(0x193)]=_0x560c2a(0x185),_0xab0dbd[_0x560c2a(0x189)]=_0x560c2a(0x1d3),_0xab0dbd[_0x560c2a(0x1ce)]=_0x560c2a(0x197),_0xab0dbd[_0x560c2a(0x19e)]=_0x560c2a(0x1cd);const _0x742dfa=_0xab0dbd,_0x3b50e6={};_0x3b50e6[_0x560c2a(0x194)]=_0x742dfa[_0x560c2a(0x1d1)],_0x3b50e6[_0x560c2a(0x1c3)]=_0x742dfa[_0x560c2a(0x193)];const _0x42455e={};_0x42455e[_0x560c2a(0x194)]=_0x742dfa[_0x560c2a(0x189)],_0x42455e['type']=_0x742dfa[_0x560c2a(0x1ce)],_0x42455e[_0x560c2a(0x180)]=![];const _0x4b57d9={};return _0x4b57d9[_0x560c2a(0x1b3)]=_0x3b50e6,_0x4b57d9[_0x560c2a(0x17f)]=_0x42455e,_0x236de5[_0x560c2a(0x184)](HELP_HEADER_MESSAGE[_0x560c2a(0x1ba)])[_0x560c2a(0x198)](HELP_FOOTER_MESSAGE)[_0x560c2a(0x1a9)](_0x4b57d9)[_0x560c2a(0x1cd)](_0x742dfa['wiWJa'])['argv'];},exports['handler']=async function(_0x555b3a){const _0x562f38=a21_0x3b3c33,_0x10abfb={'ILjlU':_0x562f38(0x1ac),'xLFsw':function(_0x25a584){return _0x25a584();},'nchGL':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eZKIm':function(_0x367197,_0x40677c,_0x58c716,_0x3db7ba,_0x505f63,_0x2f647e,_0x4ce39a){return _0x367197(_0x40677c,_0x58c716,_0x3db7ba,_0x505f63,_0x2f647e,_0x4ce39a);},'FiGqa':_0x562f38(0x1d6),'xogvU':_0x562f38(0x1c7),'DUFWg':_0x562f38(0x19a),'jWBBb':'<PasswordPlaceholder>','jjJry':'Adding\x20Websocket\x20listeners','udPud':function(_0x5d43e0,_0x5ecb79,_0x164339,_0x3f2da3){return _0x5d43e0(_0x5ecb79,_0x164339,_0x3f2da3);},'DjqgN':function(_0x376ee1,_0x443560,_0x27d205){return _0x376ee1(_0x443560,_0x27d205);},'SxPxQ':function(_0xd0732a,_0x5a67ec,_0x1ceca7){return _0xd0732a(_0x5a67ec,_0x1ceca7);},'WcgPG':_0x562f38(0x1bc),'cbsfy':function(_0x400e77,_0x3a6854){return _0x400e77===_0x3a6854;},'oSiVe':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','AgCVl':function(_0x24a263,_0x3bee3f,_0x565935,_0xe38077,_0x2e3c33,_0x2f81df,_0x63f09f){return _0x24a263(_0x3bee3f,_0x565935,_0xe38077,_0x2e3c33,_0x2f81df,_0x63f09f);},'EEJSs':_0x562f38(0x1c4),'OHJjN':'invalid-grid-id','BFSFn':function(_0x2df6fa,_0x6b2df0,_0x39a9e9,_0xd66ebc,_0x1142ca,_0x42577b,_0x4c1cb2){return _0x2df6fa(_0x6b2df0,_0x39a9e9,_0xd66ebc,_0x1142ca,_0x42577b,_0x4c1cb2);},'WmBNF':_0x562f38(0x1cc)};let _0x51c19b;try{!_0x555b3a[_0x562f38(0x1b8)]&&(logger[_0x562f38(0x17d)](_0x10abfb[_0x562f38(0x1ae)]),process['exit'](0x1));!fs[_0x562f38(0x1bd)](_0x10abfb[_0x562f38(0x190)](getCredentialsPath))&&(logger[_0x562f38(0x17d)](_0x10abfb[_0x562f38(0x18f)]),await _0x10abfb[_0x562f38(0x1a6)](sendInstrumentationEvent,_0x555b3a,_0x10abfb['FiGqa'],messageTypes[_0x562f38(0x1d7)],_0x10abfb['xogvU'],null,_0x555b3a),process[_0x562f38(0x19c)](0x1));logger['info'](_0x562f38(0x17b)+_0x555b3a[_0x562f38(0x1b8)]),await _0x10abfb[_0x562f38(0x1a6)](sendInstrumentationEvent,_0x555b3a,_0x10abfb['FiGqa'],messageTypes[_0x562f38(0x192)],null,null,_0x555b3a);const _0x5b0af7=JSON['parse'](fs['readFileSync'](_0x10abfb[_0x562f38(0x190)](getCredentialsPath)));global_registry[_0x562f38(0x181)]=_0x5b0af7['Browserstack'][_0x562f38(0x1d2)],global_registry[_0x562f38(0x18d)]=_0x5b0af7['Browserstack'][_0x562f38(0x1a7)];const _0x5c6ee3=WS_ENDPOINT[_0x562f38(0x1a3)](_0x10abfb[_0x562f38(0x1b2)],_0x5b0af7[_0x562f38(0x1d4)][_0x562f38(0x1d2)])[_0x562f38(0x1a3)](_0x10abfb['jWBBb'],_0x5b0af7['Browserstack'][_0x562f38(0x1a7)]),_0x3fe38f={};_0x3fe38f[_0x562f38(0x1b1)]=ws,_0x3fe38f[_0x562f38(0x18a)]=0x36ee80,_0x51c19b=new ReconnectingWebSocket(_0x5c6ee3,[],_0x3fe38f),logger[_0x562f38(0x1cf)](_0x10abfb[_0x562f38(0x1c0)]),webSocketUtils[_0x562f38(0x1bf)](_0x51c19b,_0x555b3a[_0x562f38(0x1a0)],_0x555b3a[_0x562f38(0x1a7)]);const [_0x407972,_0xbb45b0]=await _0x10abfb['udPud'](getGridDetails,_0x5b0af7[_0x562f38(0x1d4)]['username'],_0x5b0af7[_0x562f38(0x1d4)][_0x562f38(0x1a7)],_0x555b3a['gridId']);if(_0xbb45b0){const _0x2df5f8=_0xbb45b0[_0x562f38(0x187)];global_registry[_0x562f38(0x18e)]=_0x2df5f8['cloudProvider'],global_registry[_0x562f38(0x19b)]=_0x2df5f8[_0x562f38(0x195)],global_registry[_0x562f38(0x1ca)]=_0x2df5f8['clusterName'];const _0x1de09b=await _0x10abfb[_0x562f38(0x1a6)](getCloudProviderObject,_0x2df5f8[_0x562f38(0x18e)],_0x2df5f8[_0x562f38(0x1ca)],_0x2df5f8[_0x562f38(0x188)],_0x51c19b,webSocketUtils,_0x555b3a),[_0x45ea27,_0x432a5a,_0x1c9934,_0x3033e3,_0x4d50d9,_0x551511]=await _0x10abfb[_0x562f38(0x1aa)](createK8sClient,_0x1de09b,_0x555b3a['skipTlsCertVerify']);await _0x10abfb[_0x562f38(0x182)](scaleDownHubDeployment,_0x432a5a,_0x2df5f8[_0x562f38(0x188)]),logger[_0x562f38(0x187)](_0x10abfb[_0x562f38(0x191)]),process[_0x562f38(0x19c)](0x0);}_0x10abfb[_0x562f38(0x19d)](_0x407972[_0x562f38(0x1c1)],0x191)&&(logger[_0x562f38(0x17d)](_0x10abfb[_0x562f38(0x1d0)]),await _0x10abfb['AgCVl'](sendInstrumentationEvent,_0x555b3a,_0x10abfb[_0x562f38(0x1c8)],messageTypes[_0x562f38(0x1d7)],_0x10abfb[_0x562f38(0x17e)],null,_0x555b3a),process[_0x562f38(0x19c)](0x1)),_0x10abfb[_0x562f38(0x19d)](_0x407972[_0x562f38(0x1c1)],0x190)&&(logger[_0x562f38(0x17d)](JSON['parse'](_0x407972[_0x562f38(0x1bb)])[_0x562f38(0x199)]),await _0x10abfb[_0x562f38(0x1a6)](sendInstrumentationEvent,_0x555b3a,_0x10abfb[_0x562f38(0x1c8)],messageTypes[_0x562f38(0x1d7)],_0x10abfb[_0x562f38(0x1b6)],null,_0x555b3a),process[_0x562f38(0x19c)](0x1)),logger[_0x562f38(0x17d)](_0x562f38(0x1a8)+JSON['stringify'](_0x407972)),await _0x10abfb[_0x562f38(0x1ad)](sendInstrumentationEvent,_0x555b3a,_0x10abfb[_0x562f38(0x1c8)],messageTypes[_0x562f38(0x1d7)],_0x10abfb[_0x562f38(0x1b0)],_0x407972,_0x555b3a),process[_0x562f38(0x19c)](0x1);}catch(_0x26103f){const _0x1496ea='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x26103f+'\x20\x0a'+JSON[_0x562f38(0x1cb)](_0x26103f['stack'])+'\x20';logger['error'](_0x1496ea),process[_0x562f38(0x19c)](0x1);}};
1
+ function a21_0x47bc(){const _0x9fc486=['message','Qlrwo','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../config/logger','3891600LhAjlJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','UzXtR','gridId','KdHGZ','debug','2339300ucFQrG','2808029eCjGlk','XfJJz','11212LaVVXq','builder','zqkyf','ozJMd','Browserstack','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','region','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','error','bstackUsername','Skip\x20insecure\x20cert\x20verification.','name','cloudProvider','23608287nTylbI','epilogue','Stopping\x20grid\x20','29UFPpHB','stack','kPwro','existsSync','statusCode','6923672lBIwDY','4WPMpuu','info','VFoJz','../../config/constants','exit','jJwzj','lBcKo','../../utils/utilityMethods','dQZrH','unauthorised','body','parse','stop-grid-called','ERROR','ZOwtC','mFHTU','rxxha','password','init-not-called','description','replace','INFO','type','<PasswordPlaceholder>','IPWaL','roWLW','grid','clusterName','ABFoj','../../utils/instrumentationUtils','skip-tls-cert-verify','Stop\x20a\x20running\x20Automation\x20grid.','user','<UsernamePlaceholder>','usage','365043RHAXlM','reconnecting-websocket','handler','../../cloudproviders/utils','argv','username','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','grid-id','skipTlsCertVerify','Grid\x20stoppped.','EdsAb','../../utils/webSocketUtils','AgmcQ','bstackAccesskey','string','invalid-grid-id','stop','VwqDp','stringify','clusterRegion','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.'];a21_0x47bc=function(){return _0x9fc486;};return a21_0x47bc();}const a21_0x4a2830=a21_0x458e;(function(_0x5427ec,_0x38b21b){const _0x563bbd=a21_0x458e,_0x25d581=_0x5427ec();while(!![]){try{const _0xdf8d87=parseInt(_0x563bbd(0x159))/0x1*(-parseInt(_0x563bbd(0x148))/0x2)+-parseInt(_0x563bbd(0x182))/0x3*(parseInt(_0x563bbd(0x15f))/0x4)+-parseInt(_0x563bbd(0x145))/0x5+-parseInt(_0x563bbd(0x13f))/0x6+parseInt(_0x563bbd(0x146))/0x7+-parseInt(_0x563bbd(0x15e))/0x8+parseInt(_0x563bbd(0x156))/0x9;if(_0xdf8d87===_0x38b21b)break;else _0x25d581['push'](_0x25d581['shift']());}catch(_0x476001){_0x25d581['push'](_0x25d581['shift']());}}}(a21_0x47bc,0xb9164));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4a2830(0x183)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4a2830(0x162)),{logger}=require(a21_0x4a2830(0x13e)),{getCredentialsPath,getGridDetails}=require(a21_0x4a2830(0x166)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x4a2830(0x17c)),webSocketUtils=require(a21_0x4a2830(0x131)),{createK8sClient}=require(a21_0x4a2830(0x12c)),{getCloudProviderObject}=require(a21_0x4a2830(0x185));function a21_0x458e(_0x52a5da,_0x472cf7){const _0x47bc1e=a21_0x47bc();return a21_0x458e=function(_0x458e13,_0x3e7e7d){_0x458e13=_0x458e13-0x129;let _0x506eaa=_0x47bc1e[_0x458e13];return _0x506eaa;},a21_0x458e(_0x52a5da,_0x472cf7);}exports['command']=a21_0x4a2830(0x179),exports[a21_0x4a2830(0x14d)]=a21_0x4a2830(0x17e),exports[a21_0x4a2830(0x149)]=function(_0x54bc73){const _0x5b7ee2=a21_0x4a2830,_0x5a8ac2={};_0x5a8ac2[_0x5b7ee2(0x132)]=_0x5b7ee2(0x13a),_0x5a8ac2[_0x5b7ee2(0x130)]=_0x5b7ee2(0x134),_0x5a8ac2[_0x5b7ee2(0x141)]=_0x5b7ee2(0x153),_0x5a8ac2[_0x5b7ee2(0x17b)]='boolean',_0x5a8ac2[_0x5b7ee2(0x177)]='help';const _0x138236=_0x5a8ac2,_0x43d3e6={};_0x43d3e6[_0x5b7ee2(0x172)]=_0x138236['AgmcQ'],_0x43d3e6[_0x5b7ee2(0x175)]=_0x138236['EdsAb'];const _0x21d4fe={};_0x21d4fe[_0x5b7ee2(0x172)]=_0x138236[_0x5b7ee2(0x141)],_0x21d4fe[_0x5b7ee2(0x175)]=_0x138236[_0x5b7ee2(0x17b)],_0x21d4fe['default']=![];const _0x5adcd4={};return _0x5adcd4[_0x5b7ee2(0x12d)]=_0x43d3e6,_0x5adcd4[_0x5b7ee2(0x17d)]=_0x21d4fe,_0x54bc73[_0x5b7ee2(0x181)](HELP_HEADER_MESSAGE[_0x5b7ee2(0x136)])[_0x5b7ee2(0x157)](HELP_FOOTER_MESSAGE)['options'](_0x5adcd4)['help'](_0x138236[_0x5b7ee2(0x177)])[_0x5b7ee2(0x129)];},exports[a21_0x4a2830(0x184)]=async function(_0x18d71f){const _0x408cb6=a21_0x4a2830,_0x3925fd={'VwqDp':_0x408cb6(0x150),'ujfWJ':function(_0x1f8c8a){return _0x1f8c8a();},'mFHTU':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dQZrH':function(_0x3b157e,_0x57968c,_0x2bed7f,_0x59834b,_0x21de48,_0x5c2d76,_0x441eed){return _0x3b157e(_0x57968c,_0x2bed7f,_0x59834b,_0x21de48,_0x5c2d76,_0x441eed);},'kPwro':_0x408cb6(0x16b),'YTBEp':_0x408cb6(0x171),'ZOwtC':_0x408cb6(0x180),'zqkyf':_0x408cb6(0x176),'KdHGZ':_0x408cb6(0x12b),'jJwzj':function(_0x5e65e6,_0x11f4e9,_0x457c1d,_0x552fd6){return _0x5e65e6(_0x11f4e9,_0x457c1d,_0x552fd6);},'roWLW':function(_0x194f7c,_0x3b25cc,_0x31be81,_0x5da1b6,_0x13b045,_0xe0b1a9,_0x5125fb){return _0x194f7c(_0x3b25cc,_0x31be81,_0x5da1b6,_0x13b045,_0xe0b1a9,_0x5125fb);},'rxxha':function(_0x184bbf,_0x6e97d1,_0xe7c1a9){return _0x184bbf(_0x6e97d1,_0xe7c1a9);},'ozJMd':_0x408cb6(0x12f),'BnCkY':function(_0x482e48,_0xf0ee42){return _0x482e48===_0xf0ee42;},'lBcKo':_0x408cb6(0x140),'EKDsW':function(_0x491047,_0x21e9b6,_0x485210,_0x17b1e4,_0x210188,_0x20f9e6,_0x4732b5){return _0x491047(_0x21e9b6,_0x485210,_0x17b1e4,_0x210188,_0x20f9e6,_0x4732b5);},'XfJJz':_0x408cb6(0x168),'eVUMc':function(_0xd27b7c,_0x646174){return _0xd27b7c===_0x646174;},'VFoJz':_0x408cb6(0x135),'Qlrwo':function(_0x414f6a,_0x7e1a50,_0x279941,_0x29da9f,_0x512e88,_0x4c4fd0,_0x442e0d){return _0x414f6a(_0x7e1a50,_0x279941,_0x29da9f,_0x512e88,_0x4c4fd0,_0x442e0d);},'yvyMu':'server-error'};let _0x13d53f;try{!_0x18d71f[_0x408cb6(0x142)]&&(logger[_0x408cb6(0x151)](_0x3925fd[_0x408cb6(0x137)]),process[_0x408cb6(0x163)](0x1));!fs[_0x408cb6(0x15c)](_0x3925fd['ujfWJ'](getCredentialsPath))&&(logger['error'](_0x3925fd[_0x408cb6(0x16e)]),await _0x3925fd[_0x408cb6(0x167)](sendInstrumentationEvent,_0x18d71f,_0x3925fd[_0x408cb6(0x15b)],messageTypes[_0x408cb6(0x16c)],_0x3925fd['YTBEp'],null,_0x18d71f),process['exit'](0x1));logger[_0x408cb6(0x160)](_0x408cb6(0x158)+_0x18d71f[_0x408cb6(0x142)]),await _0x3925fd[_0x408cb6(0x167)](sendInstrumentationEvent,_0x18d71f,_0x3925fd[_0x408cb6(0x15b)],messageTypes[_0x408cb6(0x174)],null,null,_0x18d71f);const _0x4b57c2=JSON[_0x408cb6(0x16a)](fs['readFileSync'](_0x3925fd['ujfWJ'](getCredentialsPath)));global_registry[_0x408cb6(0x152)]=_0x4b57c2['Browserstack'][_0x408cb6(0x12a)],global_registry[_0x408cb6(0x133)]=_0x4b57c2[_0x408cb6(0x14c)]['password'];const _0x2b3f29=WS_ENDPOINT[_0x408cb6(0x173)](_0x3925fd[_0x408cb6(0x16d)],_0x4b57c2[_0x408cb6(0x14c)][_0x408cb6(0x12a)])[_0x408cb6(0x173)](_0x3925fd[_0x408cb6(0x14a)],_0x4b57c2[_0x408cb6(0x14c)]['password']),_0x8000eb={};_0x8000eb['WebSocket']=ws,_0x8000eb['connectionTimeout']=0x36ee80,_0x13d53f=new ReconnectingWebSocket(_0x2b3f29,[],_0x8000eb),logger[_0x408cb6(0x144)](_0x3925fd[_0x408cb6(0x143)]),webSocketUtils['addListeners'](_0x13d53f,_0x18d71f[_0x408cb6(0x17f)],_0x18d71f[_0x408cb6(0x170)]);const [_0x285b4d,_0x470e6b]=await _0x3925fd[_0x408cb6(0x164)](getGridDetails,_0x4b57c2['Browserstack'][_0x408cb6(0x12a)],_0x4b57c2[_0x408cb6(0x14c)]['password'],_0x18d71f[_0x408cb6(0x142)]);if(_0x470e6b){const _0x3280f5=_0x470e6b[_0x408cb6(0x160)];global_registry[_0x408cb6(0x155)]=_0x3280f5['cloudProvider'],global_registry[_0x408cb6(0x139)]=_0x3280f5[_0x408cb6(0x14f)],global_registry[_0x408cb6(0x17a)]=_0x3280f5[_0x408cb6(0x17a)];const _0x41601b=await _0x3925fd[_0x408cb6(0x178)](getCloudProviderObject,_0x3280f5[_0x408cb6(0x155)],_0x3280f5[_0x408cb6(0x17a)],_0x3280f5[_0x408cb6(0x154)],_0x13d53f,webSocketUtils,_0x18d71f),[_0x284639,_0x294c2b,_0x536196,_0x181a65,_0x171f79,_0x141dd6]=await _0x3925fd[_0x408cb6(0x16f)](createK8sClient,_0x41601b,_0x18d71f[_0x408cb6(0x12e)]);await _0x3925fd[_0x408cb6(0x16f)](scaleDownHubDeployment,_0x294c2b,_0x3280f5[_0x408cb6(0x154)]),logger[_0x408cb6(0x160)](_0x3925fd[_0x408cb6(0x14b)]),process[_0x408cb6(0x163)](0x0);}_0x3925fd['BnCkY'](_0x285b4d['statusCode'],0x191)&&(logger[_0x408cb6(0x151)](_0x3925fd[_0x408cb6(0x165)]),await _0x3925fd['EKDsW'](sendInstrumentationEvent,_0x18d71f,_0x3925fd['kPwro'],messageTypes['ERROR'],_0x3925fd[_0x408cb6(0x147)],null,_0x18d71f),process[_0x408cb6(0x163)](0x1)),_0x3925fd['eVUMc'](_0x285b4d[_0x408cb6(0x15d)],0x190)&&(logger[_0x408cb6(0x151)](JSON['parse'](_0x285b4d[_0x408cb6(0x169)])[_0x408cb6(0x13b)]),await _0x3925fd[_0x408cb6(0x167)](sendInstrumentationEvent,_0x18d71f,_0x3925fd['kPwro'],messageTypes[_0x408cb6(0x16c)],_0x3925fd[_0x408cb6(0x161)],null,_0x18d71f),process['exit'](0x1)),logger[_0x408cb6(0x151)](_0x408cb6(0x14e)+JSON['stringify'](_0x285b4d)),await _0x3925fd[_0x408cb6(0x13c)](sendInstrumentationEvent,_0x18d71f,_0x3925fd['kPwro'],messageTypes['ERROR'],_0x3925fd['yvyMu'],_0x285b4d,_0x18d71f),process['exit'](0x1);}catch(_0x55b386){const _0x48104a=_0x408cb6(0x13d)+_0x55b386+'\x20\x0a'+JSON[_0x408cb6(0x138)](_0x55b386[_0x408cb6(0x15a)])+'\x20';logger[_0x408cb6(0x151)](_0x48104a),process[_0x408cb6(0x163)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x3abef3=a22_0x5f2a;(function(_0x49ea6f,_0x4226c6){const _0x31388c=a22_0x5f2a,_0x122e09=_0x49ea6f();while(!![]){try{const _0x39b5aa=parseInt(_0x31388c(0x219))/0x1+parseInt(_0x31388c(0x1f8))/0x2+parseInt(_0x31388c(0x24d))/0x3+parseInt(_0x31388c(0x216))/0x4+parseInt(_0x31388c(0x235))/0x5*(-parseInt(_0x31388c(0x245))/0x6)+-parseInt(_0x31388c(0x225))/0x7*(-parseInt(_0x31388c(0x21f))/0x8)+-parseInt(_0x31388c(0x207))/0x9;if(_0x39b5aa===_0x4226c6)break;else _0x122e09['push'](_0x122e09['shift']());}catch(_0x42c5ff){_0x122e09['push'](_0x122e09['shift']());}}}(a22_0x5943,0x92d75),require('dotenv')[a22_0x3abef3(0x215)](),exports[a22_0x3abef3(0x203)]=process[a22_0x3abef3(0x227)][a22_0x3abef3(0x203)]||a22_0x3abef3(0x247),exports[a22_0x3abef3(0x234)]=process[a22_0x3abef3(0x227)]['BS_API_URL']||'api.browserstack.com',exports[a22_0x3abef3(0x237)]=process[a22_0x3abef3(0x227)][a22_0x3abef3(0x237)]||a22_0x3abef3(0x24a),exports[a22_0x3abef3(0x240)]='wss://'+this[a22_0x3abef3(0x237)]+a22_0x3abef3(0x206),exports[a22_0x3abef3(0x218)]=a22_0x3abef3(0x1f1),exports[a22_0x3abef3(0x1f9)]=a22_0x3abef3(0x22c),exports[a22_0x3abef3(0x1fb)]=a22_0x3abef3(0x221),exports[a22_0x3abef3(0x21d)]=a22_0x3abef3(0x1fd),exports['CLUSTER_DEP_STACK_NAME']=a22_0x3abef3(0x1f4),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x3abef3(0x236),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x3abef3(0x210),exports[a22_0x3abef3(0x21c)]=a22_0x3abef3(0x22b),exports[a22_0x3abef3(0x239)]=a22_0x3abef3(0x21e),exports[a22_0x3abef3(0x20a)]=a22_0x3abef3(0x214),exports[a22_0x3abef3(0x224)]=[this[a22_0x3abef3(0x21d)],this[a22_0x3abef3(0x239)],this['GCP']]);const a22_0x22fb7e={};a22_0x22fb7e[a22_0x3abef3(0x242)]=a22_0x3abef3(0x1fc),a22_0x22fb7e['Value']=a22_0x3abef3(0x24c);const a22_0x12fe28={};function a22_0x5943(){const _0x2926b3=['grid.browserstack.com','LOG','Value','grid-api.browserstack.com','SUPPORTED_CLOUD_PROVIDERS','BrowserStack','102603WSlQaa','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','credentials','gridUrl','messageTypes','BSTACK-ATS-CLUSTER','success','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','warning','1147434YgqdoH','IAM_USER_NAME','CLI_RUN_FINISHED','DEFAULT_GRID_NAME','browserstack:managedBy','aws','HST_CLUSTER_TAGS','CLI_ARGS_REGEX','WS_EVENTS','global_registry','unknown','DASHBOARD_ENDPOINT','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','root','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','6823926mZZsQa','MessageDescription','REDACTED','GCP','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','init','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','forEach','BSTACK-ATS-CLUSTER-HUB-HA','WARNING','grid','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','gcp','config','956736ehGOFT','log','CP_CONFIG_FILE','136910qVxVeK','CLUSTER','resourceInfo','TURBOSCALE_DEPLOYMENT','AWS','azure','40HphUKz','COMMON_HST_TAGS','high-scale-grid','cliRunFinished','NULL','ALL_SUPPORTED_CLOUD_PROVIDERS','937111dqlTnS','stop','env','RAW_ARGS_REGEX','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','REGION','browserstack-turboscale-grid','BrowserStackIAMUser','split','SUCCESS','list','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BrowserStack-Automate-TurboScale','connect','BS_API_URL','295rgdfzp','BSTACK-ATS-CLUSTER-AUTOSCALER','AG_API_URL','HELP_HEADER_MESSAGE','AZURE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','browserstack:service','high-scale-grid-cluster','CLI_RUN_STARTED','delete','grid-profile','WS_ENDPOINT','create','Key','pre-check','TURBOSCALE_CUSTOM_TAGS','29868DswrNz','LINK_MESSAGE'];a22_0x5943=function(){return _0x2926b3;};return a22_0x5943();}function a22_0x5f2a(_0x20995d,_0x35eea2){const _0x594318=a22_0x5943();return a22_0x5f2a=function(_0x5f2a1a,_0x5eb980){_0x5f2a1a=_0x5f2a1a-0x1f1;let _0x4854e7=_0x594318[_0x5f2a1a];return _0x4854e7;},a22_0x5f2a(_0x20995d,_0x35eea2);}a22_0x12fe28[a22_0x3abef3(0x242)]='browserstack:service',a22_0x12fe28[a22_0x3abef3(0x249)]=a22_0x3abef3(0x232);const common_hst_tags_list=[a22_0x22fb7e,a22_0x12fe28];if(process[a22_0x3abef3(0x227)][a22_0x3abef3(0x244)]){const parsedTags=process[a22_0x3abef3(0x227)][a22_0x3abef3(0x244)][a22_0x3abef3(0x22d)](',');parsedTags[a22_0x3abef3(0x20f)](_0x56ca0b=>{const _0x489a91=a22_0x3abef3,_0x35852a=_0x56ca0b[_0x489a91(0x22d)](':'),_0xfeca02={};_0xfeca02[_0x489a91(0x242)]=_0x35852a[0x0],_0xfeca02[_0x489a91(0x249)]=_0x35852a[0x1],common_hst_tags_list['push'](_0xfeca02);});}exports[a22_0x3abef3(0x220)]=common_hst_tags_list;const a22_0x31adb2={};a22_0x31adb2[a22_0x3abef3(0x1fc)]=a22_0x3abef3(0x24c),a22_0x31adb2[a22_0x3abef3(0x23b)]=a22_0x3abef3(0x232),exports[a22_0x3abef3(0x1fe)]=a22_0x31adb2,exports[a22_0x3abef3(0x24b)]=[this[a22_0x3abef3(0x21d)]];const a22_0x1e8918={};a22_0x1e8918[a22_0x3abef3(0x248)]=a22_0x3abef3(0x217),a22_0x1e8918['RESOURCES']=a22_0x3abef3(0x21b),a22_0x1e8918['GRID_URL']=a22_0x3abef3(0x1f2),a22_0x1e8918[a22_0x3abef3(0x23d)]='cliRunStarted',a22_0x1e8918[a22_0x3abef3(0x1fa)]=a22_0x3abef3(0x222),exports[a22_0x3abef3(0x200)]=a22_0x1e8918,exports[a22_0x3abef3(0x201)]={},exports[a22_0x3abef3(0x246)]=a22_0x3abef3(0x20c);const a22_0x17320d={};a22_0x17320d[a22_0x3abef3(0x205)]=a22_0x3abef3(0x20e)+this[a22_0x3abef3(0x246)],a22_0x17320d[a22_0x3abef3(0x20d)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x3abef3(0x246)],a22_0x17320d['configure']=a22_0x3abef3(0x23a)+this[a22_0x3abef3(0x246)],a22_0x17320d[a22_0x3abef3(0x241)]=a22_0x3abef3(0x1f6)+this[a22_0x3abef3(0x246)],a22_0x17320d[a22_0x3abef3(0x22f)]={},a22_0x17320d[a22_0x3abef3(0x23e)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x3abef3(0x246)],a22_0x17320d[a22_0x3abef3(0x233)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x3abef3(0x246)],a22_0x17320d['start']=a22_0x3abef3(0x20b)+this['LINK_MESSAGE'],a22_0x17320d[a22_0x3abef3(0x226)]=a22_0x3abef3(0x213)+this['LINK_MESSAGE'],a22_0x17320d['pre_check']=a22_0x3abef3(0x24e)+this[a22_0x3abef3(0x246)],a22_0x17320d[a22_0x3abef3(0x22f)][a22_0x3abef3(0x205)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x3abef3(0x246)],a22_0x17320d[a22_0x3abef3(0x22f)][a22_0x3abef3(0x212)]=a22_0x3abef3(0x231)+this[a22_0x3abef3(0x246)],a22_0x17320d[a22_0x3abef3(0x22f)]['gridProfile']=a22_0x3abef3(0x230)+this['LINK_MESSAGE'],exports[a22_0x3abef3(0x238)]=a22_0x17320d,exports['HELP_FOOTER_MESSAGE']=a22_0x3abef3(0x204);const a22_0x428892={};a22_0x428892[a22_0x3abef3(0x22e)]=a22_0x3abef3(0x1f5),a22_0x428892['ERROR']='error',a22_0x428892['INFO']='info',a22_0x428892[a22_0x3abef3(0x211)]=a22_0x3abef3(0x1f7),a22_0x428892['UNKNOWN']=a22_0x3abef3(0x202),a22_0x428892[a22_0x3abef3(0x223)]=null,exports[a22_0x3abef3(0x1f3)]=a22_0x428892,exports[a22_0x3abef3(0x1ff)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x3abef3(0x228)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x3abef3(0x209)]='[REDACTED]';const a22_0x2b2e1c={};a22_0x2b2e1c[a22_0x3abef3(0x23f)]=a22_0x3abef3(0x229);const a22_0x3e782d={};a22_0x3e782d[a22_0x3abef3(0x243)]=a22_0x2b2e1c,exports[a22_0x3abef3(0x208)]=a22_0x3e782d,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x5b8bc6={};a22_0x5b8bc6[a22_0x3abef3(0x21a)]=a22_0x3abef3(0x23c),a22_0x5b8bc6['CLOUD_PROVIDER']='aws',a22_0x5b8bc6[a22_0x3abef3(0x22a)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x5b8bc6;
1
+ const a22_0x29c620=a22_0x3b43;(function(_0x459380,_0x4c56fd){const _0x79e25d=a22_0x3b43,_0x479f47=_0x459380();while(!![]){try{const _0x292c15=parseInt(_0x79e25d(0xf6))/0x1+-parseInt(_0x79e25d(0xde))/0x2*(parseInt(_0x79e25d(0xe1))/0x3)+parseInt(_0x79e25d(0xe7))/0x4+parseInt(_0x79e25d(0xda))/0x5+parseInt(_0x79e25d(0xe5))/0x6+-parseInt(_0x79e25d(0x101))/0x7+-parseInt(_0x79e25d(0x131))/0x8;if(_0x292c15===_0x4c56fd)break;else _0x479f47['push'](_0x479f47['shift']());}catch(_0x2cef5a){_0x479f47['push'](_0x479f47['shift']());}}}(a22_0x1608,0x852fa),require(a22_0x29c620(0x13e))[a22_0x29c620(0xe9)](),exports[a22_0x29c620(0x11c)]=process[a22_0x29c620(0x121)][a22_0x29c620(0x11c)]||'grid.browserstack.com',exports[a22_0x29c620(0x134)]=process[a22_0x29c620(0x121)][a22_0x29c620(0x134)]||'api.browserstack.com',exports[a22_0x29c620(0xef)]=process['env'][a22_0x29c620(0xef)]||a22_0x29c620(0xf5),exports[a22_0x29c620(0x10b)]=a22_0x29c620(0xf4)+this[a22_0x29c620(0xef)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x29c620(0x13c)]=a22_0x29c620(0xf2),exports[a22_0x29c620(0x116)]=a22_0x29c620(0x119),exports[a22_0x29c620(0x12a)]=a22_0x29c620(0x129),exports[a22_0x29c620(0xfa)]=a22_0x29c620(0x13d),exports[a22_0x29c620(0x117)]='BSTACK-ATS-CLUSTER',exports[a22_0x29c620(0xfb)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x29c620(0x127)]=a22_0x29c620(0x118),exports[a22_0x29c620(0x100)]=a22_0x29c620(0x10c),exports[a22_0x29c620(0x11f)]='azure',exports[a22_0x29c620(0x135)]=a22_0x29c620(0xec),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x29c620(0xfa)],this['AZURE'],this['GCP']]);const a22_0x36a52d={};a22_0x36a52d[a22_0x29c620(0x103)]='browserstack:managedBy',a22_0x36a52d[a22_0x29c620(0x125)]=a22_0x29c620(0x106);const a22_0x1eb3f4={};a22_0x1eb3f4['Key']='browserstack:service',a22_0x1eb3f4[a22_0x29c620(0x125)]=a22_0x29c620(0x132);const common_hst_tags_list=[a22_0x36a52d,a22_0x1eb3f4];if(process[a22_0x29c620(0x121)][a22_0x29c620(0x136)]){const parsedTags=process[a22_0x29c620(0x121)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x29c620(0x13f)](',');parsedTags[a22_0x29c620(0xff)](_0x303606=>{const _0x1f66f1=a22_0x29c620,_0x2f6201=_0x303606['split'](':'),_0x52ca15={};_0x52ca15[_0x1f66f1(0x103)]=_0x2f6201[0x0],_0x52ca15[_0x1f66f1(0x125)]=_0x2f6201[0x1],common_hst_tags_list[_0x1f66f1(0xed)](_0x52ca15);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2eb88a={};a22_0x2eb88a[a22_0x29c620(0x105)]='BrowserStack',a22_0x2eb88a['browserstack:service']=a22_0x29c620(0x132),exports[a22_0x29c620(0xea)]=a22_0x2eb88a,exports[a22_0x29c620(0x13b)]=[this[a22_0x29c620(0xfa)]];const a22_0x3a71fa={};a22_0x3a71fa[a22_0x29c620(0x108)]=a22_0x29c620(0xdc),a22_0x3a71fa['RESOURCES']=a22_0x29c620(0xdf),a22_0x3a71fa[a22_0x29c620(0x133)]=a22_0x29c620(0x139),a22_0x3a71fa[a22_0x29c620(0x137)]=a22_0x29c620(0x113),a22_0x3a71fa[a22_0x29c620(0x122)]=a22_0x29c620(0x10a),exports[a22_0x29c620(0x12f)]=a22_0x3a71fa,exports[a22_0x29c620(0xeb)]={},exports[a22_0x29c620(0x109)]=a22_0x29c620(0xfc);function a22_0x3b43(_0x44935d,_0x525c14){const _0x1608ac=a22_0x1608();return a22_0x3b43=function(_0x3b4319,_0x2675e1){_0x3b4319=_0x3b4319-0xd9;let _0xb27174=_0x1608ac[_0x3b4319];return _0xb27174;},a22_0x3b43(_0x44935d,_0x525c14);}const a22_0x12bc08={};a22_0x12bc08[a22_0x29c620(0xdb)]=a22_0x29c620(0x120)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0x12d)]=a22_0x29c620(0x114)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0x10e)]=a22_0x29c620(0xe4)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xf8)]=a22_0x29c620(0x124)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xee)]={},a22_0x12bc08['delete']=a22_0x29c620(0xfe)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xe0)]=a22_0x29c620(0xf9)+this[a22_0x29c620(0x109)],a22_0x12bc08['start']=a22_0x29c620(0x12b)+this[a22_0x29c620(0x109)],a22_0x12bc08['stop']=a22_0x29c620(0xd9)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xf1)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xee)][a22_0x29c620(0xdb)]=a22_0x29c620(0x110)+this[a22_0x29c620(0x109)],a22_0x12bc08[a22_0x29c620(0xee)][a22_0x29c620(0x126)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x12bc08[a22_0x29c620(0xee)][a22_0x29c620(0xe6)]=a22_0x29c620(0xe2)+this[a22_0x29c620(0x109)],exports[a22_0x29c620(0x10d)]=a22_0x12bc08,exports[a22_0x29c620(0x10f)]=a22_0x29c620(0x11e);function a22_0x1608(){const _0x423a62=['grid-api.browserstack.com','793775CCWGcp','DEFAULT_CLUSTER_DETAILS','create','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','AWS','CLUSTER_AUTOSCALER_STACK_NAME','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','RAW_ARGS_REGEX','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','forEach','TURBOSCALE_DEPLOYMENT','3507700BZUMVa','grid-profile','Key','error','browserstack:managedBy','BrowserStack','SUCCESS','LOG','LINK_MESSAGE','cliRunFinished','WS_ENDPOINT','browserstack-turboscale-grid','HELP_HEADER_MESSAGE','configure','HELP_FOOTER_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','MessageDescription','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','cliRunStarted','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','WARNING','IAM_USER_NAME','CLUSTER_DEP_STACK_NAME','BSTACK-ATS-CLUSTER-HUB-HA','BrowserStackIAMUser','success','UNKNOWN','DASHBOARD_ENDPOINT','us-east-1','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','AZURE','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','CLI_RUN_FINISHED','info','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','Value','grid','CLUSTER_HUB_HA_STACK_NAME','[REDACTED]','high-scale-grid','DEFAULT_GRID_NAME','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','init','messageTypes','WS_EVENTS','warning','5391704xPxJJX','BrowserStack-Automate-TurboScale','GRID_URL','BS_API_URL','GCP','TURBOSCALE_CUSTOM_TAGS','CLI_RUN_STARTED','REDACTED','gridUrl','high-scale-grid-cluster','SUPPORTED_CLOUD_PROVIDERS','CP_CONFIG_FILE','aws','dotenv','split','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','3064065LbONtB','root','log','TRIAL_GRID_URL','2CyQPSG','resourceInfo','connect','3114777eSuQyc','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','2127480PrLqcw','gridProfile','3990736VhYtMZ','CLUSTER','config','HST_CLUSTER_TAGS','global_registry','gcp','push','list','AG_API_URL','CLOUD_PROVIDER','pre_check','credentials','ERROR','wss://'];a22_0x1608=function(){return _0x423a62;};return a22_0x1608();}const a22_0x390ed6={};a22_0x390ed6[a22_0x29c620(0x107)]=a22_0x29c620(0x11a),a22_0x390ed6[a22_0x29c620(0xf3)]=a22_0x29c620(0x104),a22_0x390ed6['INFO']=a22_0x29c620(0x123),a22_0x390ed6[a22_0x29c620(0x115)]=a22_0x29c620(0x130),a22_0x390ed6[a22_0x29c620(0x11b)]='unknown',a22_0x390ed6[a22_0x29c620(0xe3)]=null,exports[a22_0x29c620(0x12e)]=a22_0x390ed6,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x29c620(0xfd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x29c620(0x138)]=a22_0x29c620(0x128);const a22_0x355218={};a22_0x355218[a22_0x29c620(0x102)]=a22_0x29c620(0x112);const a22_0x5e81e7={};a22_0x5e81e7['pre-check']=a22_0x355218,exports[a22_0x29c620(0x111)]=a22_0x5e81e7,exports[a22_0x29c620(0xdd)]=a22_0x29c620(0x12c);const a22_0x421ca5={};a22_0x421ca5[a22_0x29c620(0xe8)]=a22_0x29c620(0x13a),a22_0x421ca5[a22_0x29c620(0xf0)]=a22_0x29c620(0x13d),a22_0x421ca5['REGION']=a22_0x29c620(0x11d),exports[a22_0x29c620(0xf7)]=a22_0x421ca5;
@@ -1 +1 @@
1
- const a23_0x4573bb=a23_0x40f5;(function(_0x2b6e5f,_0x2b0628){const _0x533fab=a23_0x40f5,_0x29c60d=_0x2b6e5f();while(!![]){try{const _0x141e78=-parseInt(_0x533fab(0xe1))/0x1*(-parseInt(_0x533fab(0xf2))/0x2)+-parseInt(_0x533fab(0xe6))/0x3*(-parseInt(_0x533fab(0xf0))/0x4)+-parseInt(_0x533fab(0xee))/0x5+parseInt(_0x533fab(0xf7))/0x6*(parseInt(_0x533fab(0xe0))/0x7)+-parseInt(_0x533fab(0xe4))/0x8*(parseInt(_0x533fab(0xe8))/0x9)+parseInt(_0x533fab(0xff))/0xa*(-parseInt(_0x533fab(0xf3))/0xb)+parseInt(_0x533fab(0xf5))/0xc;if(_0x141e78===_0x2b0628)break;else _0x29c60d['push'](_0x29c60d['shift']());}catch(_0x2355b3){_0x29c60d['push'](_0x29c60d['shift']());}}}(a23_0x56b9,0xd79e1));function a23_0x56b9(){const _0x5540ab=['existsSync','9381136XRwGTI','File','1788RUXIfr','message','9uWcgFo','mkdirSync','transports','debug','events.log','join','3750555GbMZUF','usage.log','1236wnFUjx','fileLogger','2MQhSrx','4246XpXYPI','winston','33973848MOhDdW','printf','839796WKNnTX','Console','combine','colorize','logger','\x20-\x20','timestamp','format','35500snOVDw','name','console.info','7twcgls','1020938eoTQnr','level'];a23_0x56b9=function(){return _0x5540ab;};return a23_0x56b9();}const winston=require(a23_0x4573bb(0xf4)),fs=require('fs'),path=require('path'),logDir='log';!fs[a23_0x4573bb(0xe3)](logDir)&&fs[a23_0x4573bb(0xe9)](logDir);const a23_0xc3433={};function a23_0x40f5(_0x36e90a,_0x19d85d){const _0x56b907=a23_0x56b9();return a23_0x40f5=function(_0x40f5e1,_0x55a304){_0x40f5e1=_0x40f5e1-0xdf;let _0x50fced=_0x56b907[_0x40f5e1];return _0x50fced;},a23_0x40f5(_0x36e90a,_0x19d85d);}a23_0xc3433[a23_0x4573bb(0xfe)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x4ef103={};a23_0x4ef103['level']=!![];const a23_0x27852c={};a23_0x27852c[a23_0x4573bb(0x100)]=a23_0x4573bb(0xdf),exports[a23_0x4573bb(0xfb)]=new winston['createLogger']({'format':winston[a23_0x4573bb(0xfe)][a23_0x4573bb(0xf9)](winston[a23_0x4573bb(0xfe)][a23_0x4573bb(0xfd)](a23_0xc3433),winston['format'][a23_0x4573bb(0xfa)](a23_0x4ef103),winston['format'][a23_0x4573bb(0xf6)](_0x5c94f2=>_0x5c94f2[a23_0x4573bb(0xfd)]+a23_0x4573bb(0xfc)+_0x5c94f2[a23_0x4573bb(0xe2)]+':\x20'+_0x5c94f2[a23_0x4573bb(0xe7)])),'transports':[new winston['transports'][(a23_0x4573bb(0xf8))](a23_0x27852c),new winston[(a23_0x4573bb(0xea))][(a23_0x4573bb(0xe5))]({'filename':path[a23_0x4573bb(0xed)](logDir,a23_0x4573bb(0xec)),'level':a23_0x4573bb(0xeb)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x4573bb(0xea))][(a23_0x4573bb(0xe5))]({'filename':path[a23_0x4573bb(0xed)](logDir,a23_0x4573bb(0xef)),'level':a23_0x4573bb(0xeb)})]};exports[a23_0x4573bb(0xf1)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x546cfd=a23_0x2ae5;(function(_0x4de164,_0x4cb699){const _0x17fcab=a23_0x2ae5,_0x599f60=_0x4de164();while(!![]){try{const _0xaa522c=parseInt(_0x17fcab(0x1e8))/0x1+-parseInt(_0x17fcab(0x1e4))/0x2+-parseInt(_0x17fcab(0x1f2))/0x3*(-parseInt(_0x17fcab(0x1df))/0x4)+-parseInt(_0x17fcab(0x1ef))/0x5+-parseInt(_0x17fcab(0x1f9))/0x6*(parseInt(_0x17fcab(0x1fd))/0x7)+parseInt(_0x17fcab(0x1f3))/0x8+-parseInt(_0x17fcab(0x1f5))/0x9;if(_0xaa522c===_0x4cb699)break;else _0x599f60['push'](_0x599f60['shift']());}catch(_0x4080c7){_0x599f60['push'](_0x599f60['shift']());}}}(a23_0x1531,0x51af0));const winston=require(a23_0x546cfd(0x1fa)),fs=require('fs'),path=require(a23_0x546cfd(0x1f8)),logDir=a23_0x546cfd(0x1e9);!fs[a23_0x546cfd(0x1e2)](logDir)&&fs['mkdirSync'](logDir);const a23_0x1294d0={};function a23_0x1531(){const _0x1f737a=['186wtcZEx','4684792lMUysP','colorize','4433184bFmJUS','\x20-\x20','logger','path','6GDIohS','winston','File','Console','3809589doyzyM','22860qxOaQb','level','timestamp','existsSync','join','464434EoqkpV','message','createLogger','YYYY-MM-DD\x20HH:mm:ss','668525MVfstP','log','console.info','transports','name','fileLogger','debug','24290uaePPP','usage.log','format'];a23_0x1531=function(){return _0x1f737a;};return a23_0x1531();}a23_0x1294d0['format']=a23_0x546cfd(0x1e7);const a23_0x2de5a0={};a23_0x2de5a0[a23_0x546cfd(0x1e0)]=!![];const a23_0x57f996={};function a23_0x2ae5(_0x579a65,_0x508fdf){const _0x15310d=a23_0x1531();return a23_0x2ae5=function(_0x2ae589,_0x5883de){_0x2ae589=_0x2ae589-0x1df;let _0x1d367f=_0x15310d[_0x2ae589];return _0x1d367f;},a23_0x2ae5(_0x579a65,_0x508fdf);}a23_0x57f996[a23_0x546cfd(0x1ec)]=a23_0x546cfd(0x1ea),exports[a23_0x546cfd(0x1f7)]=new winston[(a23_0x546cfd(0x1e6))]({'format':winston[a23_0x546cfd(0x1f1)]['combine'](winston[a23_0x546cfd(0x1f1)][a23_0x546cfd(0x1e1)](a23_0x1294d0),winston[a23_0x546cfd(0x1f1)][a23_0x546cfd(0x1f4)](a23_0x2de5a0),winston[a23_0x546cfd(0x1f1)]['printf'](_0x556fd0=>_0x556fd0[a23_0x546cfd(0x1e1)]+a23_0x546cfd(0x1f6)+_0x556fd0[a23_0x546cfd(0x1e0)]+':\x20'+_0x556fd0[a23_0x546cfd(0x1e5)])),'transports':[new winston[(a23_0x546cfd(0x1eb))][(a23_0x546cfd(0x1fc))](a23_0x57f996),new winston[(a23_0x546cfd(0x1eb))][(a23_0x546cfd(0x1fb))]({'filename':path[a23_0x546cfd(0x1e3)](logDir,'events.log'),'level':a23_0x546cfd(0x1ee)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x546cfd(0x1fb))]({'filename':path['join'](logDir,a23_0x546cfd(0x1f0)),'level':'debug'})]};exports[a23_0x546cfd(0x1ed)]=new winston[(a23_0x546cfd(0x1e6))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x1c60(_0x1ad9a5,_0x191551){const _0x30c7e3=a24_0x30c7();return a24_0x1c60=function(_0x1c607e,_0x1fb603){_0x1c607e=_0x1c607e-0xf1;let _0x4b290e=_0x30c7e3[_0x1c607e];return _0x4b290e;},a24_0x1c60(_0x1ad9a5,_0x191551);}const a24_0x173d92=a24_0x1c60;(function(_0x535f15,_0x2aa73a){const _0x2a9ccb=a24_0x1c60,_0x5ddc14=_0x535f15();while(!![]){try{const _0x1b91d1=parseInt(_0x2a9ccb(0xf5))/0x1*(parseInt(_0x2a9ccb(0xf1))/0x2)+parseInt(_0x2a9ccb(0xf2))/0x3+parseInt(_0x2a9ccb(0x102))/0x4*(-parseInt(_0x2a9ccb(0xf4))/0x5)+parseInt(_0x2a9ccb(0x100))/0x6+parseInt(_0x2a9ccb(0xf9))/0x7*(-parseInt(_0x2a9ccb(0xfc))/0x8)+parseInt(_0x2a9ccb(0xfb))/0x9*(parseInt(_0x2a9ccb(0xf7))/0xa)+-parseInt(_0x2a9ccb(0x101))/0xb;if(_0x1b91d1===_0x2aa73a)break;else _0x5ddc14['push'](_0x5ddc14['shift']());}catch(_0x3bdfda){_0x5ddc14['push'](_0x5ddc14['shift']());}}}(a24_0x30c7,0x5b0dd));function a24_0x30c7(){const _0x56e19e=['5hfAXdW','370385JkqdRa','exports','10dsBFxI','./config/constants','511ZQfpGv','help','884097zWwppm','11416WCoZPT','HPHgE','commandDir','usage','551790dIdFWH','4023899JhtpSx','2135436JBHYFj','algAC','4rCaSiI','1337484DJqaCW','commands'];a24_0x30c7=function(){return _0x56e19e;};return a24_0x30c7();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x173d92(0xf8));process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x29e6f7){const _0x1f8b5b=a24_0x173d92,_0x51e42c={};_0x51e42c[_0x1f8b5b(0xfd)]=_0x1f8b5b(0xf3),_0x51e42c[_0x1f8b5b(0x103)]=_0x1f8b5b(0xfa);const _0x4373d4=_0x51e42c;_0x29e6f7[_0x1f8b5b(0xff)](HELP_HEADER_MESSAGE['root'])[_0x1f8b5b(0xfe)](_0x4373d4[_0x1f8b5b(0xfd)])['demandCommand']()['help'](_0x4373d4['algAC'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x173d92(0xf6)]=run;
2
+ 'use strict';const a24_0x36ed44=a24_0x8bbc;(function(_0x5463a0,_0xc92a5e){const _0x41754a=a24_0x8bbc,_0x215432=_0x5463a0();while(!![]){try{const _0x81fc6a=parseInt(_0x41754a(0xde))/0x1*(-parseInt(_0x41754a(0xdc))/0x2)+-parseInt(_0x41754a(0xe1))/0x3+-parseInt(_0x41754a(0xe4))/0x4+-parseInt(_0x41754a(0xd2))/0x5*(parseInt(_0x41754a(0xda))/0x6)+parseInt(_0x41754a(0xd3))/0x7*(-parseInt(_0x41754a(0xe5))/0x8)+-parseInt(_0x41754a(0xe6))/0x9*(-parseInt(_0x41754a(0xd8))/0xa)+parseInt(_0x41754a(0xdf))/0xb;if(_0x81fc6a===_0xc92a5e)break;else _0x215432['push'](_0x215432['shift']());}catch(_0x4b23be){_0x215432['push'](_0x215432['shift']());}}}(a24_0x22b7,0x88e55));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x36ed44(0xd5));function a24_0x8bbc(_0x57f4d2,_0x1d2c09){const _0x22b7ec=a24_0x22b7();return a24_0x8bbc=function(_0x8bbcbe,_0x590756){_0x8bbcbe=_0x8bbcbe-0xd2;let _0x2ac093=_0x22b7ec[_0x8bbcbe];return _0x2ac093;},a24_0x8bbc(_0x57f4d2,_0x1d2c09);}process['env'][a24_0x36ed44(0xdb)]=0x1;function run(_0x2833f8){const _0x4c2125=a24_0x36ed44,_0x578456={};_0x578456[_0x4c2125(0xd4)]=_0x4c2125(0xd7),_0x578456[_0x4c2125(0xe7)]=_0x4c2125(0xe0);const _0x352cd4=_0x578456;_0x2833f8['usage'](HELP_HEADER_MESSAGE[_0x4c2125(0xe2)])[_0x4c2125(0xd9)](_0x352cd4[_0x4c2125(0xd4)])[_0x4c2125(0xdd)]()['help'](_0x352cd4['RYXFt'])[_0x4c2125(0xd6)](HELP_FOOTER_MESSAGE);}module[a24_0x36ed44(0xe3)]=run;function a24_0x22b7(){const _0x584630=['epilogue','commands','77640iFgWdP','commandDir','404964BNBEtI','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','112442vGkXqr','demandCommand','7zBPJmn','34879845lHtFUa','help','491028fSvutU','root','exports','3946428NmvXsI','2152ZAmzbb','18aCOzCG','RYXFt','10KOjPXb','24640ICpbdz','treVX','./config/constants'];a24_0x22b7=function(){return _0x584630;};return a24_0x22b7();}