browserstack-node-sdk 1.34.49 → 1.34.51

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 +3 -3
  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 -0
  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_0x8b7c7f=a15_0x3e5f;(function(_0x18e51f,_0x5704f2){const _0xb2d624=a15_0x3e5f,_0x147937=_0x18e51f();while(!![]){try{const _0x10b03e=-parseInt(_0xb2d624(0x164))/0x1*(parseInt(_0xb2d624(0x154))/0x2)+parseInt(_0xb2d624(0x163))/0x3+-parseInt(_0xb2d624(0x188))/0x4*(-parseInt(_0xb2d624(0x17e))/0x5)+parseInt(_0xb2d624(0x199))/0x6*(parseInt(_0xb2d624(0x192))/0x7)+parseInt(_0xb2d624(0x176))/0x8+-parseInt(_0xb2d624(0x194))/0x9*(parseInt(_0xb2d624(0x153))/0xa)+-parseInt(_0xb2d624(0x167))/0xb;if(_0x10b03e===_0x5704f2)break;else _0x147937['push'](_0x147937['shift']());}catch(_0x2b4993){_0x147937['push'](_0x147937['shift']());}}}(a15_0x5a5b,0x2bad9));const fs=require('fs'),got=require('got'),{table}=require(a15_0x8b7c7f(0x171)),{v4:uuidv4}=require(a15_0x8b7c7f(0x14d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x8b7c7f(0x14f)),{sendInstrumentationEvent}=require(a15_0x8b7c7f(0x157));function a15_0x3e5f(_0x23b4df,_0x2d47b9){const _0x5a5b80=a15_0x5a5b();return a15_0x3e5f=function(_0x3e5f76,_0x4a9c18){_0x3e5f76=_0x3e5f76-0x147;let _0x567ef2=_0x5a5b80[_0x3e5f76];return _0x567ef2;},a15_0x3e5f(_0x23b4df,_0x2d47b9);}function a15_0x5a5b(){const _0x295dd3=['xCJMn','../../utils/instrumentationUtils','iOVuz','usage','zTpEn','grids','status','options','parse','JKzux','statusCode','yDWFj','username','1020810NLlIzx','7hXXnNE','unauthorised','handler','4863111vyxSqK','queued','szBuK','help','password','server-error','aWXnF','ESJvV','grid-name','bstackAccesskey','table','GET','error','INFO','name','2437880vLIinr','qyOXu','push','existsSync','lbIpU','xEiMo','Browserstack','log','250PcrXXM','oakgV','desc','body','iMfSR','grid','ERROR','yQuOE','grid-id','allGrids','8068RcuKKk','GtgPy','IIVJj','epilogue','command','init-not-called','RRLEv','argv','forEach','running','7JlbFmN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','624501QVfnBv','clusterName','cluster-name','/packages/cli/get-grids','yWdxv','1670418FbOYxe','https://','RFqRl','bstackUsername','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','readFileSync','exit','/packages/cli/get-all-grids','SSeJv','all-grids','yXgkX','uuid','XhKDt','../../utils/utilityMethods','list-grids-called','list','builder','20FhwncD','75564FgRWJz','dJMVT'];a15_0x5a5b=function(){return _0x295dd3;};return a15_0x5a5b();}exports[a15_0x8b7c7f(0x18c)]=a15_0x8b7c7f(0x15b),exports[a15_0x8b7c7f(0x180)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x8b7c7f(0x152)]=function(_0x3745cb){const _0x23b8ec=a15_0x8b7c7f,_0x33a8c1={};_0x33a8c1[_0x23b8ec(0x19b)]=_0x23b8ec(0x19d),_0x33a8c1[_0x23b8ec(0x16d)]='boolean',_0x33a8c1[_0x23b8ec(0x14c)]=_0x23b8ec(0x16a);const _0x4341af=_0x33a8c1,_0x56aef4={};_0x56aef4['description']=_0x4341af['RFqRl'],_0x56aef4['type']=_0x4341af[_0x23b8ec(0x16d)];const _0x3976e7={};return _0x3976e7[_0x23b8ec(0x14b)]=_0x56aef4,_0x3745cb[_0x23b8ec(0x159)](HELP_HEADER_MESSAGE[_0x23b8ec(0x151)][_0x23b8ec(0x183)])[_0x23b8ec(0x18b)](HELP_FOOTER_MESSAGE)[_0x23b8ec(0x15d)](_0x3976e7)[_0x23b8ec(0x16a)](_0x4341af[_0x23b8ec(0x14c)])[_0x23b8ec(0x18f)];},exports[a15_0x8b7c7f(0x166)]=async function(_0x4a1807){const _0x452e22=a15_0x8b7c7f,_0x18579a={'yDWFj':function(_0x79a52f){return _0x79a52f();},'zTpEn':function(_0x3bb4ac){return _0x3bb4ac();},'RRLEv':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qyOXu':function(_0x597568,_0x40e5d1,_0x7addc2,_0x4404b5,_0x312eb2,_0x4c0eb3,_0x1c7803){return _0x597568(_0x40e5d1,_0x7addc2,_0x4404b5,_0x312eb2,_0x4c0eb3,_0x1c7803);},'ESJvV':_0x452e22(0x150),'xEiMo':_0x452e22(0x18d),'lbIpU':function(_0x1264fc){return _0x1264fc();},'yWdxv':_0x452e22(0x172),'iMfSR':function(_0x5196f4,_0x97d0b7,_0x1bc220){return _0x5196f4(_0x97d0b7,_0x1bc220);},'moJYN':function(_0xe7cf21,_0x3dbd77){return _0xe7cf21!==_0x3dbd77;},'SSeJv':function(_0x41843f,_0x4b8122){return _0x41843f===_0x4b8122;},'GtgPy':'\x0aFound\x20the\x20following\x20grids:\x0a','dJMVT':_0x452e22(0x186),'aJStY':_0x452e22(0x16f),'yrkZC':_0x452e22(0x15c),'XhKDt':_0x452e22(0x191),'tUDhy':'queued','xCJMn':_0x452e22(0x196),'nHReD':function(_0x59d193,_0x5c1efe){return _0x59d193(_0x5c1efe);},'JKzux':function(_0x3af7e8,_0xe3ddb8){return _0x3af7e8===_0xe3ddb8;},'Lddch':_0x452e22(0x193),'oakgV':function(_0x55519e,_0x40e452,_0x261df9,_0x3ad381,_0x1a5a6a,_0x4a6e04,_0x5b581f){return _0x55519e(_0x40e452,_0x261df9,_0x3ad381,_0x1a5a6a,_0x4a6e04,_0x5b581f);},'iOVuz':_0x452e22(0x165),'szBuK':_0x452e22(0x16c),'IIVJj':function(_0x5636a2,_0x52696f,_0x11655a,_0x496193,_0x54cc88,_0x309d2a,_0x212694){return _0x5636a2(_0x52696f,_0x11655a,_0x496193,_0x54cc88,_0x309d2a,_0x212694);},'yQuOE':'unknown-error'};try{global_registry['requestId']=_0x18579a[_0x452e22(0x161)](uuidv4);!fs[_0x452e22(0x179)](_0x18579a[_0x452e22(0x15a)](getCredentialsPath))&&(console[_0x452e22(0x173)](_0x18579a[_0x452e22(0x18e)]),await _0x18579a['qyOXu'](sendInstrumentationEvent,_0x4a1807,_0x18579a[_0x452e22(0x16e)],messageTypes[_0x452e22(0x184)],_0x18579a[_0x452e22(0x17b)],null,_0x4a1807),process[_0x452e22(0x148)](0x1));const _0x16cfb1=JSON[_0x452e22(0x15e)](fs[_0x452e22(0x147)](_0x18579a[_0x452e22(0x17a)](getCredentialsPath)));let _0x387e99=_0x452e22(0x19a)+AG_API_URL+_0x452e22(0x197);_0x4a1807[_0x452e22(0x187)]&&(_0x387e99='https://'+AG_API_URL+_0x452e22(0x149));const _0x4ce7ab={'method':_0x18579a[_0x452e22(0x198)],'headers':_0x18579a[_0x452e22(0x182)](getAuthHeader,_0x16cfb1['Browserstack'][_0x452e22(0x162)],_0x16cfb1[_0x452e22(0x17c)][_0x452e22(0x16b)]),'throwHttpErrors':![]};global_registry[_0x452e22(0x19c)]=_0x16cfb1[_0x452e22(0x17c)]['username'],global_registry[_0x452e22(0x170)]=_0x16cfb1[_0x452e22(0x17c)][_0x452e22(0x16b)],_0x18579a[_0x452e22(0x177)](sendInstrumentationEvent,_0x4a1807,_0x18579a['ESJvV'],messageTypes[_0x452e22(0x174)],null,null,_0x4a1807);const _0x47271f=await _0x18579a[_0x452e22(0x182)](got,_0x387e99,_0x4ce7ab);if(_0x18579a['moJYN'](_0x47271f,null)&&_0x18579a['moJYN'](_0x47271f,undefined)&&_0x18579a[_0x452e22(0x14a)](_0x47271f[_0x452e22(0x160)],0xc8)){const _0x208b15=JSON[_0x452e22(0x15e)](_0x47271f[_0x452e22(0x181)]);console[_0x452e22(0x17d)](_0x18579a[_0x452e22(0x189)]);const _0x4d43ba=[];_0x4d43ba[_0x452e22(0x178)]([_0x18579a[_0x452e22(0x155)],_0x18579a['aJStY'],_0x18579a['yrkZC'],_0x18579a[_0x452e22(0x14e)],_0x18579a['tUDhy'],_0x18579a[_0x452e22(0x156)]]),_0x208b15[_0x452e22(0x190)](_0x3a656d=>{const _0x46e0c3=_0x452e22;_0x4d43ba[_0x46e0c3(0x178)]([_0x3a656d['id'],_0x3a656d[_0x46e0c3(0x175)],_0x3a656d[_0x46e0c3(0x15c)],_0x3a656d[_0x46e0c3(0x191)],_0x3a656d[_0x46e0c3(0x168)],_0x3a656d[_0x46e0c3(0x195)]]);}),console[_0x452e22(0x17d)](_0x18579a['nHReD'](table,_0x4d43ba)),process[_0x452e22(0x148)](0x0);}_0x18579a[_0x452e22(0x15f)](_0x47271f[_0x452e22(0x160)],0x191)&&(console['error'](_0x18579a['Lddch']),await _0x18579a[_0x452e22(0x17f)](sendInstrumentationEvent,_0x4a1807,_0x18579a[_0x452e22(0x16e)],messageTypes[_0x452e22(0x184)],_0x18579a[_0x452e22(0x158)],null,_0x4a1807),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x47271f)),await _0x18579a['qyOXu'](sendInstrumentationEvent,_0x4a1807,_0x18579a[_0x452e22(0x16e)],messageTypes[_0x452e22(0x184)],_0x18579a[_0x452e22(0x169)],_0x47271f,_0x4a1807),process[_0x452e22(0x148)](0x1);}catch(_0x208755){console[_0x452e22(0x173)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x208755['stack']),await _0x18579a[_0x452e22(0x18a)](sendInstrumentationEvent,_0x4a1807,_0x18579a[_0x452e22(0x16e)],messageTypes[_0x452e22(0x184)],_0x18579a[_0x452e22(0x185)],_0x208755,_0x4a1807),process[_0x452e22(0x148)](0x1);}};
1
+ const a15_0x40272c=a15_0x343a;(function(_0x50703e,_0x48076a){const _0x2c0772=a15_0x343a,_0xe59747=_0x50703e();while(!![]){try{const _0x512e6b=-parseInt(_0x2c0772(0x13f))/0x1*(-parseInt(_0x2c0772(0x160))/0x2)+-parseInt(_0x2c0772(0x143))/0x3*(parseInt(_0x2c0772(0x15c))/0x4)+parseInt(_0x2c0772(0x150))/0x5+-parseInt(_0x2c0772(0x15d))/0x6+-parseInt(_0x2c0772(0x162))/0x7+parseInt(_0x2c0772(0x136))/0x8+parseInt(_0x2c0772(0x161))/0x9;if(_0x512e6b===_0x48076a)break;else _0xe59747['push'](_0xe59747['shift']());}catch(_0x5e53c3){_0xe59747['push'](_0xe59747['shift']());}}}(a15_0x3d7c,0xa546d));const fs=require('fs'),got=require('got'),{table}=require(a15_0x40272c(0x123)),{v4:uuidv4}=require(a15_0x40272c(0x14e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x40272c(0x135)),{getCredentialsPath,getAuthHeader}=require(a15_0x40272c(0x139)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x3d7c(){const _0x20d9cc=['builder','uuid','maHze','2502440UnzqhB','handler','UrWRB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','unauthorised','list','grids','boolean','username','running','yrSGD','status','1539356mrqYmU','6828492LdCuUC','FmlXN','grid-id','134XFWeZg','26587818yylcZJ','5576893kAWgzk','server-error','unknown-error','lyhvC','Failed\x20to\x20list\x20resources!\x20Error:\x20','eCqIW','DRjCj','fXaYe','Browserstack','bstackAccesskey','https://','ERROR','WqBTk','error','VMwtY','VkiDf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','push','EEuST','CRqLO','table','DVJoS','zQhey','zLMGR','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','exit','UCfdU','ecWAO','clusterName','password','parse','hodCo','forEach','bstackUsername','epilogue','init-not-called','stack','requestId','../../config/constants','2051520SgmPay','options','cluster-name','../../utils/utilityMethods','list-grids-called','help','/packages/cli/get-all-grids','eJzaF','command','823ZyumcO','ZOiDS','jBKpu','aiGyE','9RjYTjG','allGrids','log','rMlzk','/packages/cli/get-grids','all-grids','queued','PFlqn','KcpbO','body'];a15_0x3d7c=function(){return _0x20d9cc;};return a15_0x3d7c();}function a15_0x343a(_0x4f12f9,_0x217253){const _0x3d7c03=a15_0x3d7c();return a15_0x343a=function(_0x343a08,_0x1be597){_0x343a08=_0x343a08-0x122;let _0x2dc1d7=_0x3d7c03[_0x343a08];return _0x2dc1d7;},a15_0x343a(_0x4f12f9,_0x217253);}exports[a15_0x40272c(0x13e)]=a15_0x40272c(0x156),exports['desc']=a15_0x40272c(0x127),exports[a15_0x40272c(0x14d)]=function(_0x576bac){const _0x96b61c=a15_0x40272c,_0x2a1714={};_0x2a1714[_0x96b61c(0x14f)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x2a1714[_0x96b61c(0x14a)]=_0x96b61c(0x157),_0x2a1714[_0x96b61c(0x140)]=_0x96b61c(0x13b);const _0x78f335=_0x2a1714,_0x28eea8={};_0x28eea8['description']=_0x78f335[_0x96b61c(0x14f)],_0x28eea8['type']=_0x78f335[_0x96b61c(0x14a)];const _0x4fb78c={};return _0x4fb78c[_0x96b61c(0x148)]=_0x28eea8,_0x576bac['usage'](HELP_HEADER_MESSAGE[_0x96b61c(0x155)]['grid'])[_0x96b61c(0x131)](HELP_FOOTER_MESSAGE)[_0x96b61c(0x137)](_0x4fb78c)[_0x96b61c(0x13b)](_0x78f335['ZOiDS'])['argv'];},exports[a15_0x40272c(0x151)]=async function(_0x2ad418){const _0x3d94b4=a15_0x40272c,_0x4d65d3={'EEuST':function(_0x1a92db){return _0x1a92db();},'yrSGD':_0x3d94b4(0x172),'zLMGR':function(_0x31c533,_0x38c38a,_0x256c4f,_0xbfa34e,_0x67f86b,_0x176337,_0x511b2d){return _0x31c533(_0x38c38a,_0x256c4f,_0xbfa34e,_0x67f86b,_0x176337,_0x511b2d);},'zQhey':_0x3d94b4(0x13a),'FmlXN':_0x3d94b4(0x132),'hodCo':'GET','DRjCj':function(_0x97f1ae,_0x51fe78,_0xb1ab3e){return _0x97f1ae(_0x51fe78,_0xb1ab3e);},'VMwtY':function(_0x19cd05,_0x40477a,_0x2687af){return _0x19cd05(_0x40477a,_0x2687af);},'WqBTk':function(_0x45f3ab,_0x44286b){return _0x45f3ab!==_0x44286b;},'bqwKE':function(_0x39fe16,_0x197441){return _0x39fe16!==_0x197441;},'CRqLO':function(_0x269d6c,_0x4c188c){return _0x269d6c===_0x4c188c;},'lyhvC':'\x0aFound\x20the\x20following\x20grids:\x0a','ecWAO':_0x3d94b4(0x15f),'KcpbO':'grid-name','wNaAZ':_0x3d94b4(0x15b),'tJUbn':_0x3d94b4(0x159),'eCqIW':_0x3d94b4(0x149),'UrWRB':_0x3d94b4(0x138),'jBKpu':function(_0x4ed4cf,_0x3780c9){return _0x4ed4cf(_0x3780c9);},'aiGyE':function(_0x3cb2ce,_0x107532){return _0x3cb2ce===_0x107532;},'eJzaF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','fXaYe':function(_0x4a5aa6,_0x34ef61,_0x115734,_0x5ea065,_0x3f508f,_0x3d6044,_0x302f53){return _0x4a5aa6(_0x34ef61,_0x115734,_0x5ea065,_0x3f508f,_0x3d6044,_0x302f53);},'VkiDf':_0x3d94b4(0x154),'UCfdU':function(_0x543528,_0x565532,_0xf8afdb,_0x1abdd2,_0xffbea4,_0x141901,_0x31c57f){return _0x543528(_0x565532,_0xf8afdb,_0x1abdd2,_0xffbea4,_0x141901,_0x31c57f);},'rMlzk':_0x3d94b4(0x163),'DVJoS':_0x3d94b4(0x164)};try{global_registry[_0x3d94b4(0x134)]=_0x4d65d3[_0x3d94b4(0x174)](uuidv4);!fs['existsSync'](_0x4d65d3['EEuST'](getCredentialsPath))&&(console[_0x3d94b4(0x16f)](_0x4d65d3[_0x3d94b4(0x15a)]),await _0x4d65d3[_0x3d94b4(0x126)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3['zQhey'],messageTypes[_0x3d94b4(0x16d)],_0x4d65d3[_0x3d94b4(0x15e)],null,_0x2ad418),process[_0x3d94b4(0x128)](0x1));const _0x37aed0=JSON[_0x3d94b4(0x12d)](fs['readFileSync'](_0x4d65d3[_0x3d94b4(0x174)](getCredentialsPath)));let _0x32b662=_0x3d94b4(0x16c)+AG_API_URL+_0x3d94b4(0x147);_0x2ad418[_0x3d94b4(0x144)]&&(_0x32b662=_0x3d94b4(0x16c)+AG_API_URL+_0x3d94b4(0x13c));const _0x534fa7={'method':_0x4d65d3[_0x3d94b4(0x12e)],'headers':_0x4d65d3[_0x3d94b4(0x168)](getAuthHeader,_0x37aed0[_0x3d94b4(0x16a)]['username'],_0x37aed0[_0x3d94b4(0x16a)][_0x3d94b4(0x12c)]),'throwHttpErrors':![]};global_registry[_0x3d94b4(0x130)]=_0x37aed0['Browserstack'][_0x3d94b4(0x158)],global_registry[_0x3d94b4(0x16b)]=_0x37aed0[_0x3d94b4(0x16a)]['password'],_0x4d65d3[_0x3d94b4(0x126)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3[_0x3d94b4(0x125)],messageTypes['INFO'],null,null,_0x2ad418);const _0x3a3ad6=await _0x4d65d3[_0x3d94b4(0x170)](got,_0x32b662,_0x534fa7);if(_0x4d65d3[_0x3d94b4(0x16e)](_0x3a3ad6,null)&&_0x4d65d3['bqwKE'](_0x3a3ad6,undefined)&&_0x4d65d3[_0x3d94b4(0x122)](_0x3a3ad6['statusCode'],0xc8)){const _0x3e51c5=JSON[_0x3d94b4(0x12d)](_0x3a3ad6[_0x3d94b4(0x14c)]);console[_0x3d94b4(0x145)](_0x4d65d3[_0x3d94b4(0x165)]);const _0x58e8cd=[];_0x58e8cd['push']([_0x4d65d3[_0x3d94b4(0x12a)],_0x4d65d3[_0x3d94b4(0x14b)],_0x4d65d3['wNaAZ'],_0x4d65d3['tJUbn'],_0x4d65d3[_0x3d94b4(0x167)],_0x4d65d3[_0x3d94b4(0x152)]]),_0x3e51c5[_0x3d94b4(0x12f)](_0x532984=>{const _0x460a18=_0x3d94b4;_0x58e8cd[_0x460a18(0x173)]([_0x532984['id'],_0x532984['name'],_0x532984['status'],_0x532984[_0x460a18(0x159)],_0x532984[_0x460a18(0x149)],_0x532984[_0x460a18(0x12b)]]);}),console[_0x3d94b4(0x145)](_0x4d65d3[_0x3d94b4(0x141)](table,_0x58e8cd)),process[_0x3d94b4(0x128)](0x0);}_0x4d65d3[_0x3d94b4(0x142)](_0x3a3ad6['statusCode'],0x191)&&(console[_0x3d94b4(0x16f)](_0x4d65d3[_0x3d94b4(0x13d)]),await _0x4d65d3[_0x3d94b4(0x169)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3[_0x3d94b4(0x125)],messageTypes[_0x3d94b4(0x16d)],_0x4d65d3[_0x3d94b4(0x171)],null,_0x2ad418),process['exit'](0x1)),console[_0x3d94b4(0x16f)](_0x3d94b4(0x153)+JSON['stringify'](_0x3a3ad6)),await _0x4d65d3[_0x3d94b4(0x129)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3[_0x3d94b4(0x125)],messageTypes[_0x3d94b4(0x16d)],_0x4d65d3[_0x3d94b4(0x146)],_0x3a3ad6,_0x2ad418),process[_0x3d94b4(0x128)](0x1);}catch(_0x36fc96){console[_0x3d94b4(0x16f)](_0x3d94b4(0x166)+_0x36fc96[_0x3d94b4(0x133)]),await _0x4d65d3[_0x3d94b4(0x129)](sendInstrumentationEvent,_0x2ad418,_0x4d65d3['zQhey'],messageTypes['ERROR'],_0x4d65d3[_0x3d94b4(0x124)],_0x36fc96,_0x2ad418),process[_0x3d94b4(0x128)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x53ec(_0xda9a9,_0x47bc45){const _0xfd267c=a16_0xfd26();return a16_0x53ec=function(_0x53ecc6,_0x403b61){_0x53ecc6=_0x53ecc6-0x119;let _0x1c1f83=_0xfd267c[_0x53ecc6];return _0x1c1f83;},a16_0x53ec(_0xda9a9,_0x47bc45);}const a16_0x417f5c=a16_0x53ec;(function(_0x51a67a,_0x15bd36){const _0x16d1d5=a16_0x53ec,_0x3d615e=_0x51a67a();while(!![]){try{const _0x27b728=-parseInt(_0x16d1d5(0x12b))/0x1+-parseInt(_0x16d1d5(0x124))/0x2+parseInt(_0x16d1d5(0x127))/0x3+-parseInt(_0x16d1d5(0x126))/0x4*(-parseInt(_0x16d1d5(0x122))/0x5)+parseInt(_0x16d1d5(0x11f))/0x6*(-parseInt(_0x16d1d5(0x130))/0x7)+-parseInt(_0x16d1d5(0x123))/0x8+parseInt(_0x16d1d5(0x12e))/0x9;if(_0x27b728===_0x15bd36)break;else _0x3d615e['push'](_0x3d615e['shift']());}catch(_0x50e1dc){_0x3d615e['push'](_0x3d615e['shift']());}}}(a16_0xfd26,0x72360));function a16_0xfd26(){const _0x35eed1=['zQdCe','pre-check','14984316dJUkGY','command','735hYcNyv','demandCommand','handler','pre_check','help','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','desc','20628MqmspN','YurfD','recommendCommands','100qAvoRk','1522856oamIQv','853946lcewjn','usage','25628TAkMDH','902418bpkTln','precheck_commands','strict','commandDir','647742tsSTxK'];a16_0xfd26=function(){return _0x35eed1;};return a16_0xfd26();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x417f5c(0x12f)]=a16_0x417f5c(0x12d),exports[a16_0x417f5c(0x11e)]=a16_0x417f5c(0x11d),exports['builder']=function(_0x68e8b1){const _0x29c85b=a16_0x417f5c,_0x30ddbb={};_0x30ddbb['YurfD']=_0x29c85b(0x128),_0x30ddbb[_0x29c85b(0x12c)]=_0x29c85b(0x11c);const _0x425242=_0x30ddbb;return _0x68e8b1[_0x29c85b(0x125)](HELP_HEADER_MESSAGE[_0x29c85b(0x11b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x29c85b(0x12a)](_0x425242[_0x29c85b(0x120)])[_0x29c85b(0x119)]()[_0x29c85b(0x121)]()[_0x29c85b(0x129)]()['help'](_0x425242[_0x29c85b(0x12c)]);},exports[a16_0x417f5c(0x11a)]=function(_0x55093c){};
1
+ function a16_0x5670(_0x2ff304,_0x3ffaeb){const _0xffe3ee=a16_0xffe3();return a16_0x5670=function(_0x56702b,_0x230d5e){_0x56702b=_0x56702b-0x1b0;let _0x2947ed=_0xffe3ee[_0x56702b];return _0x2947ed;},a16_0x5670(_0x2ff304,_0x3ffaeb);}const a16_0xc7a414=a16_0x5670;(function(_0x354eed,_0x163e69){const _0x3d28ff=a16_0x5670,_0x5f1c14=_0x354eed();while(!![]){try{const _0x29fc27=parseInt(_0x3d28ff(0x1bf))/0x1+parseInt(_0x3d28ff(0x1b1))/0x2+parseInt(_0x3d28ff(0x1b9))/0x3+-parseInt(_0x3d28ff(0x1ba))/0x4*(parseInt(_0x3d28ff(0x1c6))/0x5)+parseInt(_0x3d28ff(0x1c7))/0x6*(-parseInt(_0x3d28ff(0x1bc))/0x7)+-parseInt(_0x3d28ff(0x1b6))/0x8*(-parseInt(_0x3d28ff(0x1b2))/0x9)+-parseInt(_0x3d28ff(0x1c3))/0xa;if(_0x29fc27===_0x163e69)break;else _0x5f1c14['push'](_0x5f1c14['shift']());}catch(_0x8ab04b){_0x5f1c14['push'](_0x5f1c14['shift']());}}}(a16_0xffe3,0x9faae));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0xffe3(){const _0x391538=['usage','1878741FqHCAX','15816tyxuZn','strict','56TIhweY','handler','epilogue','1056947kOvnAY','pOanH','demandCommand','precheck_commands','4375930mIEcMr','builder','CHiLz','865BFEppp','742974STpRIA','command','commandDir','1500766sUtwqN','124758yIvTnQ','pre_check','help','recommendCommands','192FayyIH','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup'];a16_0xffe3=function(){return _0x391538;};return a16_0xffe3();}exports[a16_0xc7a414(0x1c8)]='pre-check',exports['desc']=a16_0xc7a414(0x1b7),exports[a16_0xc7a414(0x1c4)]=function(_0x19a594){const _0x4928e6=a16_0xc7a414,_0x1cff1b={};_0x1cff1b[_0x4928e6(0x1c0)]=_0x4928e6(0x1c2),_0x1cff1b[_0x4928e6(0x1c5)]='help';const _0x22b64f=_0x1cff1b;return _0x19a594[_0x4928e6(0x1b8)](HELP_HEADER_MESSAGE[_0x4928e6(0x1b3)])[_0x4928e6(0x1be)](HELP_FOOTER_MESSAGE)[_0x4928e6(0x1b0)](_0x22b64f[_0x4928e6(0x1c0)])[_0x4928e6(0x1c1)]()[_0x4928e6(0x1b5)]()[_0x4928e6(0x1bb)]()[_0x4928e6(0x1b4)](_0x22b64f[_0x4928e6(0x1c5)]);},exports[a16_0xc7a414(0x1bd)]=function(_0x15923c){};
@@ -1 +1 @@
1
- const a17_0x5c75fc=a17_0x4d29;(function(_0x100847,_0x1dadf2){const _0x39041e=a17_0x4d29,_0x2c6a46=_0x100847();while(!![]){try{const _0xe11847=parseInt(_0x39041e(0x147))/0x1*(-parseInt(_0x39041e(0x1d9))/0x2)+parseInt(_0x39041e(0x1b1))/0x3*(-parseInt(_0x39041e(0x14b))/0x4)+parseInt(_0x39041e(0xf0))/0x5+-parseInt(_0x39041e(0x154))/0x6*(-parseInt(_0x39041e(0x17b))/0x7)+-parseInt(_0x39041e(0x1d5))/0x8+parseInt(_0x39041e(0x134))/0x9*(parseInt(_0x39041e(0x183))/0xa)+parseInt(_0x39041e(0x1b6))/0xb;if(_0xe11847===_0x1dadf2)break;else _0x2c6a46['push'](_0x2c6a46['shift']());}catch(_0x32108f){_0x2c6a46['push'](_0x2c6a46['shift']());}}}(a17_0x1a36,0x43ec8));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5c75fc(0x1be)),{v4:uuidv4}=require(a17_0x5c75fc(0x1cf)),ReconnectingWebSocket=require(a17_0x5c75fc(0x131)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5c75fc(0x117)),{logger}=require(a17_0x5c75fc(0x1c8)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x5c75fc(0x142)),{sendInstrumentationEvent}=require(a17_0x5c75fc(0x18e));exports['command']='grid',exports[a17_0x5c75fc(0x135)]=a17_0x5c75fc(0x102),exports[a17_0x5c75fc(0x185)]=function(_0x148f17){const _0x3c9e81=a17_0x5c75fc,_0x1338da={};_0x1338da[_0x3c9e81(0x133)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x1338da[_0x3c9e81(0x10b)]=_0x3c9e81(0x1dc),_0x1338da[_0x3c9e81(0x170)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1338da['FFDXW']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1338da['eyJoW']=_0x3c9e81(0x119),_0x1338da['icGUs']=_0x3c9e81(0x1c1);const _0x599daf=_0x1338da,_0x4e041c={};_0x4e041c[_0x3c9e81(0x12e)]=_0x599daf[_0x3c9e81(0x133)],_0x4e041c[_0x3c9e81(0xf5)]=_0x599daf[_0x3c9e81(0x10b)];const _0x5e1689={};_0x5e1689[_0x3c9e81(0x12e)]=_0x599daf['fJSVh'],_0x5e1689[_0x3c9e81(0xf5)]=_0x599daf[_0x3c9e81(0x10b)];const _0x118e41={};_0x118e41[_0x3c9e81(0x12e)]=_0x599daf[_0x3c9e81(0x189)],_0x118e41[_0x3c9e81(0xf5)]=_0x599daf[_0x3c9e81(0x10b)];const _0x56c759={};_0x56c759[_0x3c9e81(0x12e)]=_0x599daf[_0x3c9e81(0x136)],_0x56c759['type']=_0x599daf['ImFsy'];const _0x3bd583={};return _0x3bd583[_0x3c9e81(0x19a)]=_0x4e041c,_0x3bd583[_0x3c9e81(0x139)]=_0x5e1689,_0x3bd583[_0x3c9e81(0x1a3)]=_0x118e41,_0x3bd583[_0x3c9e81(0x1ed)]=_0x56c759,_0x148f17[_0x3c9e81(0x191)](HELP_HEADER_MESSAGE[_0x3c9e81(0x1e4)])[_0x3c9e81(0x13f)](HELP_FOOTER_MESSAGE)['options'](_0x3bd583)[_0x3c9e81(0x1c1)](_0x599daf[_0x3c9e81(0x15b)])[_0x3c9e81(0x110)];};async function inputValidation(_0x1dcecb,_0xd40369){const _0xa26bac=a17_0x5c75fc,_0x3e66d6={'KoIoU':_0xa26bac(0x19a),'KzyPy':_0xa26bac(0x1b5),'Flssp':_0xa26bac(0x139),'kskBp':_0xa26bac(0x169),'aBihe':_0xa26bac(0x188),'FWmYD':_0xa26bac(0x1ba),'pMUKq':'string','GPwwJ':_0xa26bac(0x12d),'vZeEI':_0xa26bac(0x104),'epuAd':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WjHoS':_0xa26bac(0x1c1),'geouc':'region','WIHfg':_0xa26bac(0x105),'BkxKX':function(_0x15f3ff,_0x5c0f6a){return _0x15f3ff+_0x5c0f6a;},'lKbPC':_0xa26bac(0x19f),'efMNK':'Failure','vHxRm':function(_0x15161b,_0x2846e2){return _0x15161b||_0x2846e2;},'YbrNk':'N/A','qYnIP':_0xa26bac(0x1cd),'qFFig':function(_0x1f9959,_0x184ce2){return _0x1f9959===_0x184ce2;},'sgjRi':_0xa26bac(0x1cb),'ApRKk':function(_0x490f3c,_0x2d2ef5){return _0x490f3c!==_0x2d2ef5;},'DMfmJ':_0xa26bac(0x1da),'gXdFZ':'ExqYF','FQHEj':_0xa26bac(0x1a9),'FGGso':'BvYVK','pEgVl':function(_0x590866,_0x4808d6){return _0x590866!==_0x4808d6;},'VgQDF':_0xa26bac(0x148),'iEhlA':_0xa26bac(0x180),'LUbjd':function(_0x21af00,_0x5109e1){return _0x21af00>_0x5109e1;},'aDQTH':'Snpnm','mpogn':_0xa26bac(0x11d),'LumUQ':function(_0x41ee30,_0x1c40a9,_0x5754de,_0x497123,_0x5c5c17,_0x155488,_0x5a221b,_0x409085){return _0x41ee30(_0x1c40a9,_0x5754de,_0x497123,_0x5c5c17,_0x155488,_0x5a221b,_0x409085);},'eCEZV':_0xa26bac(0x184),'oFRQW':_0xa26bac(0x196),'AQbwj':_0xa26bac(0x155),'XaxUb':_0xa26bac(0x126),'xYARM':function(_0x2df08e,_0x374c1c,_0x10147e,_0xc7b06e,_0x554257,_0x30a6b5,_0x5c8645,_0x4deb59){return _0x2df08e(_0x374c1c,_0x10147e,_0xc7b06e,_0x554257,_0x30a6b5,_0x5c8645,_0x4deb59);},'fiYbl':'cloud-provider-not-supported','LVqmC':function(_0x5d055a,_0x2453c2){return _0x5d055a!==_0x2453c2;},'iFTrr':_0xa26bac(0x11c),'CsgvM':'kfrvu','gJXyd':_0xa26bac(0x10a),'fhwzr':_0xa26bac(0x18d),'EQFjG':function(_0x5ef58c,_0x3d0a92,_0x3be67c){return _0x5ef58c(_0x3d0a92,_0x3be67c);},'qttxs':function(_0x5b883c,_0x3519c2,_0x16b612,_0xa0795a,_0x2cfb34,_0x263990){return _0x5b883c(_0x3519c2,_0x16b612,_0xa0795a,_0x2cfb34,_0x263990);},'IBKwp':_0xa26bac(0x165),'aNvtv':_0xa26bac(0x1ed),'UGosw':function(_0x5c4a83,_0xd12201){return _0x5c4a83===_0xd12201;},'HphWc':function(_0x402816,_0x54e388){return _0x402816===_0x54e388;},'LnLsW':'OanyS','soRUP':function(_0x69ebbe,_0x4b374c){return _0x69ebbe(_0x4b374c);},'OgfSD':function(_0x2c9c37,_0x5ca163){return _0x2c9c37===_0x5ca163;},'nUSxZ':_0xa26bac(0x178),'LRdsL':_0xa26bac(0x193),'xqJrq':_0xa26bac(0x172),'GfNpK':_0xa26bac(0x195),'zaUhz':_0xa26bac(0x1e9),'kdfRb':_0xa26bac(0x15d),'zSlWw':_0xa26bac(0x12c),'Gopal':_0xa26bac(0x1de),'xkpGX':'iUuAJ','Afxqd':_0xa26bac(0x1b9),'hGejq':'irHil','Cqjqh':_0xa26bac(0x1e5)};let _0x209c3d;try{if(_0x3e66d6[_0xa26bac(0xf9)](_0x3e66d6[_0xa26bac(0x176)],_0x3e66d6[_0xa26bac(0x176)])){if(_0x1dcecb['clusterName']||_0x1dcecb[_0xa26bac(0x157)]||_0x1dcecb[_0xa26bac(0x1a3)]){if(_0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6['DMfmJ'],_0x3e66d6[_0xa26bac(0x10c)]))_0xb8c3e2[_0xa26bac(0x137)]('['+_0x365bb6+_0xa26bac(0xf4)+_0x6f3dbd[_0xa26bac(0x140)]+_0xa26bac(0x151)+_0x1c14b5[_0xa26bac(0x1a1)]+_0xa26bac(0x16d)+_0x4c4cea['error']),_0x268e92[_0xa26bac(0x1b5)]&&_0x2e116c[_0xa26bac(0x1b5)](_0xa26bac(0x100)+_0x252207['error'][_0xa26bac(0x11b)]);else{const _0x482572=[];!_0x1dcecb[_0xa26bac(0x194)]&&(_0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6[_0xa26bac(0x177)],_0x3e66d6[_0xa26bac(0x11a)])?_0x482572[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x1df)]):_0xd2b62f[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x1df)]));;if(!_0x1dcecb['cloudProvider']){if(_0x3e66d6['qFFig'](_0x3e66d6[_0xa26bac(0x15e)],_0x3e66d6[_0xa26bac(0x15e)]))_0x482572[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x16f)]);else{const _0x30e226={};_0x30e226[_0xa26bac(0xf5)]=_0x45f714[_0xa26bac(0x1ac)],_0x30e226[_0xa26bac(0x15a)]=_0xc09940,_0xd07350[_0xa26bac(0x146)](_0x4efe18,_0x30e226,_0x3e66d6['KzyPy'],!![]);}};!_0x1dcecb[_0xa26bac(0x1a3)]&&(_0x3e66d6[_0xa26bac(0x106)](_0x3e66d6['VgQDF'],_0x3e66d6[_0xa26bac(0x162)])?_0x482572[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x11f)]):(_0x3880e4[_0xa26bac(0x137)](_0xa26bac(0x179)+_0x280f6f['CLOUD_PROVIDER']+'\x20'),_0xe859f8[_0xa26bac(0x157)]=_0x9547fb[_0xa26bac(0x1e2)]));;_0x3e66d6[_0xa26bac(0x174)](_0x482572[_0xa26bac(0x14d)],0x0)&&(_0x3e66d6['qFFig'](_0x3e66d6[_0xa26bac(0x1c2)],_0x3e66d6[_0xa26bac(0x19b)])?_0x4808a8[_0xa26bac(0x163)](0x1):(_0x209c3d='Missing\x20required\x20arguments:\x20'+_0x482572['join'](',\x20')+_0xa26bac(0x114),await _0x3e66d6[_0xa26bac(0x13b)](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6[_0xa26bac(0x190)],_0x3e66d6[_0xa26bac(0x1e7)],_0x3e66d6[_0xa26bac(0x199)]),logger[_0xa26bac(0x1b5)](_0x209c3d),process[_0xa26bac(0x163)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xa26bac(0x1bd)](_0x1dcecb['cloudProvider'][_0xa26bac(0x111)]())&&(_0x3e66d6[_0xa26bac(0x106)](_0x3e66d6[_0xa26bac(0x1bb)],_0x3e66d6[_0xa26bac(0x1bb)])?_0x8919fb[_0xa26bac(0x1b5)](_0xa26bac(0x100)+_0x4586aa[_0xa26bac(0x1b5)][_0xa26bac(0x11b)]):(_0x209c3d=_0x3e66d6[_0xa26bac(0x115)],await _0x3e66d6[_0xa26bac(0x10d)](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6['eCEZV'],_0x3e66d6[_0xa26bac(0x1ad)],_0x3e66d6[_0xa26bac(0x199)]),logger[_0xa26bac(0x1b5)](_0x209c3d),!_0x1dcecb['cloudProvider']&&(_0x3e66d6[_0xa26bac(0x15c)](_0x3e66d6[_0xa26bac(0x1b8)],_0x3e66d6[_0xa26bac(0x1b8)])?_0x175bf9['info'](_0xa26bac(0x108)+_0x3c98b7[_0xa26bac(0x194)]+_0xa26bac(0x101)):(logger[_0xa26bac(0x137)](_0xa26bac(0x179)+DEFAULT_CLUSTER_DETAILS[_0xa26bac(0x1e2)]+'\x20'),_0x1dcecb[_0xa26bac(0x157)]=DEFAULT_CLUSTER_DETAILS[_0xa26bac(0x1e2)])))),global_registry[_0xa26bac(0x194)]=_0x1dcecb['clusterName'],global_registry[_0xa26bac(0x157)]=_0x1dcecb[_0xa26bac(0x157)],global_registry[_0xa26bac(0x1c9)]=_0x1dcecb[_0xa26bac(0x1a3)];}}else{if(_0x1dcecb[_0xa26bac(0xfc)]){if(_0x3e66d6['qFFig'](_0x3e66d6[_0xa26bac(0x127)],_0x3e66d6['gJXyd']))_0x464023['push'](_0x3e66d6[_0xa26bac(0x16f)]);else{global_registry[_0xa26bac(0xfc)]=_0x1dcecb[_0xa26bac(0xfc)],logger[_0xa26bac(0x182)](_0xa26bac(0x14e)+_0x1dcecb[_0xa26bac(0xfc)]);const _0x37d86b=_0xa26bac(0xfe)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0xd69ba6={};_0xd69ba6['method']=_0x3e66d6[_0xa26bac(0x1ef)],_0xd69ba6['headers']=global_registry[_0xa26bac(0x123)],_0xd69ba6['throwHttpErrors']=![];const _0x5d64b8=_0xd69ba6,_0x57cc76=await _0x3e66d6[_0xa26bac(0x1d3)](got,_0x37d86b,_0x5d64b8),_0x1168a9=await _0x3e66d6[_0xa26bac(0x1e3)](responseValidation,_0x57cc76,_0x3e66d6[_0xa26bac(0x159)],_0x3e66d6['aNvtv'],_0x1dcecb,_0xd40369);let _0x32c9b8={};if(_0x3e66d6['UGosw'](_0x1168a9,0xc8)){if(_0x3e66d6['HphWc'](_0x3e66d6[_0xa26bac(0x1db)],_0x3e66d6['LnLsW'])){const _0x90e7cc=JSON[_0xa26bac(0x17d)](_0x57cc76['body']),_0x3eb3b3=_0x90e7cc[_0xa26bac(0x152)](_0x56322c=>_0x56322c[_0xa26bac(0x124)]===_0x1dcecb[_0xa26bac(0xfc)])||null;_0x3e66d6[_0xa26bac(0x181)](isUndefined,_0x3eb3b3)?_0x3e66d6['OgfSD'](_0x3e66d6[_0xa26bac(0x118)],_0x3e66d6[_0xa26bac(0x149)])?_0x329010+=_0xa26bac(0x1a7)+_0x38e722[_0xa26bac(0x194)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x209c3d=_0xa26bac(0x1a0)+_0x1dcecb['gridProfile']+_0xa26bac(0x1b7),await _0x3e66d6['xYARM'](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6[_0xa26bac(0x190)],_0x3e66d6[_0xa26bac(0x167)],_0x3e66d6[_0xa26bac(0x199)]),logger[_0xa26bac(0x1b5)](_0x209c3d),process['exit'](0x1)):_0x3e66d6['HphWc'](_0x3e66d6['GfNpK'],_0x3e66d6[_0xa26bac(0x173)])?_0x5a4a49+=_0xa26bac(0x1a7)+_0x349a96['clusterName']+'\x20'+(_0x245da1?_0x3e66d6[_0xa26bac(0x17c)]:_0x3e66d6['aBihe'])+'\x0a\x0a':_0x32c9b8=_0x3eb3b3;}else{const _0x409f0f={};_0x409f0f[_0xa26bac(0x12e)]=_0x3e66d6[_0xa26bac(0x1a4)],_0x409f0f[_0xa26bac(0xf5)]=_0x3e66d6[_0xa26bac(0x128)];const _0x57a3a8={};_0x57a3a8[_0xa26bac(0x12e)]=_0x3e66d6[_0xa26bac(0x1e1)],_0x57a3a8[_0xa26bac(0xf5)]=_0x3e66d6['pMUKq'];const _0x3c2816={};_0x3c2816[_0xa26bac(0x12e)]=_0x3e66d6['vZeEI'],_0x3c2816[_0xa26bac(0xf5)]=_0x3e66d6[_0xa26bac(0x128)];const _0x34ecf9={};_0x34ecf9[_0xa26bac(0x12e)]=_0x3e66d6[_0xa26bac(0x18b)],_0x34ecf9[_0xa26bac(0xf5)]=_0x3e66d6[_0xa26bac(0x128)];const _0x24274c={};return _0x24274c[_0xa26bac(0x19a)]=_0x409f0f,_0x24274c[_0xa26bac(0x139)]=_0x57a3a8,_0x24274c['region']=_0x3c2816,_0x24274c['grid-profile']=_0x34ecf9,_0x4ab5df['usage'](_0x283299[_0xa26bac(0x1e4)])['epilogue'](_0x388b20)[_0xa26bac(0x1c6)](_0x24274c)[_0xa26bac(0x1c1)](_0x3e66d6['WjHoS'])[_0xa26bac(0x110)];}}else _0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6[_0xa26bac(0x1ae)],_0x3e66d6['zSlWw'])?process['exit'](0x1):_0x585f7e=_0x424765;const _0x478dd5={};_0x478dd5['type']=WS_EVENTS[_0xa26bac(0x1ac)],_0x478dd5[_0xa26bac(0x15a)]=_0x3e66d6[_0xa26bac(0x1b4)],webSocketUtils['sendEventToBackend'](_0xd40369,_0x478dd5),global_registry['cloudProvider']=_0x32c9b8[_0xa26bac(0x157)],global_registry[_0xa26bac(0x1c9)]=_0x32c9b8[_0xa26bac(0x1a3)],global_registry[_0xa26bac(0x194)]=_0x32c9b8[_0xa26bac(0x194)];}}else _0x3e66d6[_0xa26bac(0x1dd)](_0x3e66d6[_0xa26bac(0x143)],_0x3e66d6['Afxqd'])?(logger['error'](_0x3e66d6[_0xa26bac(0x1c0)]),process['exit'](0x1)):_0x2106fd[_0xa26bac(0x1c7)](_0x3e66d6[_0xa26bac(0x11f)]);}}else _0x4a5097[_0xa26bac(0x1b5)](_0x3e66d6['WIHfg']),_0x5c90eb[_0xa26bac(0x163)](0x1);}catch(_0x424b56){if(_0x3e66d6[_0xa26bac(0x164)](_0x3e66d6['hGejq'],_0x3e66d6['Cqjqh'])){const {header:_0x4b11e2,response:_0x409a56}=_0x58b0c9,{status:_0x4363f3,data:_0x4d09ff,error:_0x20abaf}=_0x409a56;_0x41a554+=_0x4b11e2+'\x20#'+_0x3e66d6[_0xa26bac(0x197)](_0x126dd6,0x1)+'\x0a',_0x4b4b29+=_0xa26bac(0x138)+(_0x4363f3?_0x3e66d6[_0xa26bac(0x14a)]:_0x3e66d6[_0xa26bac(0xff)])+'\x0a',_0x4be88d+=_0xa26bac(0x1ea)+_0x3e66d6[_0xa26bac(0x121)](_0x4d09ff,_0x3e66d6[_0xa26bac(0x1bf)])+'\x0a',_0x20abaf&&(_0x463140+=_0x3e66d6[_0xa26bac(0x14c)],_0x904d75+=_0xa26bac(0xf3)+(_0x20abaf[_0xa26bac(0x15a)]||_0x3e66d6[_0xa26bac(0x1bf)])+'\x0a',_0x3f9a40+=_0xa26bac(0x12a)+(_0x20abaf['code']||_0x3e66d6[_0xa26bac(0x1bf)])+'\x0a',_0x444ee5+=_0xa26bac(0x1e6)+(_0x20abaf[_0xa26bac(0x11b)]||_0x3e66d6['YbrNk'])+'\x0a'),_0x54a052+='\x0a\x0a';}else _0x209c3d=_0xa26bac(0x107)+_0x424b56+':\x20'+_0x424b56[_0xa26bac(0x11b)],logger[_0xa26bac(0x1b5)](_0x209c3d),await _0x3e66d6[_0xa26bac(0x10d)](reportToGalactusAndSendToEDS,_0x1dcecb,_0xd40369,_0x209c3d,messageTypes[_0xa26bac(0x1b2)],_0x3e66d6[_0xa26bac(0x190)],_0x3e66d6['fiYbl'],_0x3e66d6[_0xa26bac(0x199)]),process[_0xa26bac(0x163)](0x1);}}function a17_0x1a36(){const _0x4294d5=['name','1|4|0|2|3','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','CsgvM','pMUKq','stack\x20trace\x20','\x20\x20Code:\x20','LRGCR','pRxuF','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','description','code','getUTCMinutes','reconnecting-websocket','hQPYJ','YWXUN','97164rpiPom','desc','eyJoW','info','Status:\x20','cloud-provider','<UsernamePlaceholder>','LumUQ','Failure','Report\x20saved\x20in\x20','taWTE','epilogue','status','GSZnB','../../utils/webSocketUtils','xkpGX','haUwS','isCliToolInstalled','sendEventToBackend','8592ResRVv','zWvSp','LRdsL','lKbPC','44mHXYtW','qYnIP','length','grid\x20profile\x20flow\x20','jcIni','Icdxc','\x20data\x20:\x20','find','cJNUD','3048aZFpYC','hEgfd','getUTCMonth','cloudProvider','SSL\x20Configured','IBKwp','message','icGUs','LVqmC','YdwlU','FGGso','GUZZm','checkAccess','aCUzR','iEhlA','exit','HphWc','pre-check','init','xqJrq','delay','is\x20already\x20present','WPHSO','existsSync','\x20===\x0a\x0a','\x20error\x20:\x20','split','Flssp','fJSVh','Kfirc','pre-check-grid-profile-empty','zaUhz','LUbjd','jUDOh','sgjRi','gXdFZ','bzSDY','Setting\x20cloud\x20provider\x20as\x20','getUTCDate','3031CWWSIj','kskBp','parse','pre-check-failed','OtnXC','rUFOg','soRUP','debug','450BbhJaz','pre-check-grid-called','builder','requestId','\x20region\x20-\x20','will\x20be\x20created','FFDXW','Vidja','epuAd','fnMyL','GET','../../utils/instrumentationUtils','stringify','eCEZV','usage','header','RpTqv','clusterName','OwpIU','pre-check-cluster-args-not-passed','BkxKX','qICOf','KzyPy','cluster-name','mpogn','utf-8','vBtTt','User\x20Access','Success','Invalid\x20input.\x20grid\x20profiles:\x20','data','obdTy','region','FWmYD','isTrialGridAccessible','toolInstalledResp','Cluster\x20','isTls1_2_SUPPORTED','QLktm','connectionTimeout','ssrQP','LOG','fiYbl','kdfRb','N/A','vXOMB','135834sbOHHU','ERROR','username','Gopal','error','5532978UAsKpm','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','iFTrr','YqLxF','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AQbwj','Whitelisted\x20browserstack','includes','got','YbrNk','WIHfg','help','aDQTH','log/report_','.txt','writeFileSync','options','push','../../config/logger','clusterRegion','xMnAI','JMCEZ','IAmge','Error\x20Details:\x0a','REdaC','uuid','DvxTp','EJIcx','wdFFI','EQFjG','Cluster\x20details\x0a-----------------------\x0a','3163536JmNlNV','isClusterPresent','Gzebv','bstackAccesskey','42wukWRW','EelSI','LnLsW','string','ApRKk','Grid\x20profile\x20fetched\x20for\x20pre-check','KoIoU','xnvMT','GPwwJ','CLOUD_PROVIDER','qttxs','pre_check','ztMEj','\x20\x20Stack:\x20','oFRQW','Browserstack','MmFeJ','Message:\x20','replace','password','grid-profile','response','fhwzr','716830LfmEUb','NLTGS','forEach','\x20\x20Message:\x20',']\x20status\x20:\x20','type','GCdsJ','jAfOe','Tool\x20Installed','qFFig','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','RdCoE','gridProfile','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','https://','efMNK','error\x20stack\x20:\x20','`\x20already\x20exists','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','unable\x20to\x20verify\x20if\x20cluster\x20`','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','pEgVl','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Cluster\x20`','`\x20is\x20present\x20in\x20region\x20`','IEsVS','ImFsy','DMfmJ','xYARM','DwmqR','cOkEJ','argv','toLowerCase','BazpT','readFileSync','.\x20Please\x20provide\x20all\x20required\x20arguments.','XaxUb','`\x20,error\x20:\x20','../../utils/utilityMethods','nUSxZ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','FQHEj','stack','ueqvQ','rKHbE','LXagB','geouc','RYWqp','vHxRm','WebSocket','authHeader'];a17_0x1a36=function(){return _0x4294d5;};return a17_0x1a36();}function printResponse(_0x5cf5c2,_0x146619){const _0x5da91d=a17_0x5c75fc,_0x20f2ca={};_0x20f2ca['OwmcI']=_0x5da91d(0x1cd),_0x20f2ca[_0x5da91d(0x15f)]=_0x5da91d(0x1af),_0x20f2ca['jcIni']=function(_0x36cc5e,_0x5af92d){return _0x36cc5e===_0x5af92d;},_0x20f2ca[_0x5da91d(0x1b0)]=_0x5da91d(0x1ca);const _0x9b033a=_0x20f2ca;logger[_0x5da91d(0x137)]('['+_0x5cf5c2+_0x5da91d(0xf4)+_0x146619[_0x5da91d(0x140)]+'\x20data\x20:\x20'+_0x146619['data']+_0x5da91d(0x16d)+_0x146619[_0x5da91d(0x1b5)]),_0x146619[_0x5da91d(0x1b5)]&&(_0x9b033a[_0x5da91d(0x14f)](_0x9b033a[_0x5da91d(0x1b0)],_0x9b033a[_0x5da91d(0x1b0)])?logger['error'](_0x5da91d(0x100)+_0x146619[_0x5da91d(0x1b5)][_0x5da91d(0x11b)]):(_0x16ea1d+=_0x9b033a['OwmcI'],_0x332d43+=_0x5da91d(0xf3)+(_0x973aad[_0x5da91d(0x15a)]||_0x9b033a['GUZZm'])+'\x0a',_0x27ccf7+=_0x5da91d(0x12a)+(_0x25759c[_0x5da91d(0x12f)]||_0x9b033a[_0x5da91d(0x15f)])+'\x0a',_0x5016d0+=_0x5da91d(0x1e6)+(_0x232abe[_0x5da91d(0x11b)]||_0x9b033a[_0x5da91d(0x15f)])+'\x0a'));}async function generateReport(_0x203646,_0xf6e35a){const _0x177b0e=a17_0x5c75fc,_0x317027={'OtnXC':function(_0xe71d13,_0x7b9ddf){return _0xe71d13+_0x7b9ddf;},'xnvMT':'Success','cOkEJ':_0x177b0e(0x13c),'REdaC':function(_0x19a648,_0x24fff1){return _0x19a648||_0x24fff1;},'EJIcx':_0x177b0e(0x1af),'Icdxc':_0x177b0e(0x1cd),'jAfOe':_0x177b0e(0x1d4),'hQPYJ':function(_0x2d49f8,_0x51ad74){return _0x2d49f8!=_0x51ad74;},'svDeP':_0x177b0e(0x169),'Vidja':'will\x20be\x20created','GSZnB':function(_0xe066f2){return _0xe066f2();}};let _0x2fede1='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x177b0e(0x16c);return _0x203646[_0x177b0e(0xf2)]((_0x2ebf9d,_0x35dfad)=>{const _0x47f933=_0x177b0e,{header:_0x1cad5c,response:_0x30c4cd}=_0x2ebf9d,{status:_0x2fb0bf,data:_0x5168f0,error:_0x10f79f}=_0x30c4cd;_0x2fede1+=_0x1cad5c+'\x20#'+_0x317027[_0x47f933(0x17f)](_0x35dfad,0x1)+'\x0a',_0x2fede1+='Status:\x20'+(_0x2fb0bf?_0x317027[_0x47f933(0x1e0)]:_0x317027[_0x47f933(0x10f)])+'\x0a',_0x2fede1+=_0x47f933(0x1ea)+_0x317027[_0x47f933(0x1ce)](_0x5168f0,_0x317027['EJIcx'])+'\x0a',_0x10f79f&&(_0x2fede1+=_0x317027[_0x47f933(0x150)],_0x2fede1+=_0x47f933(0xf3)+(_0x10f79f[_0x47f933(0x15a)]||_0x317027[_0x47f933(0x1d1)])+'\x0a',_0x2fede1+=_0x47f933(0x12a)+(_0x10f79f[_0x47f933(0x12f)]||_0x317027[_0x47f933(0x1d1)])+'\x0a',_0x2fede1+=_0x47f933(0x1e6)+(_0x10f79f[_0x47f933(0x11b)]||_0x317027[_0x47f933(0x1d1)])+'\x0a'),_0x2fede1+='\x0a\x0a';}),_0x2fede1+=_0x317027[_0x177b0e(0xf7)],_0x317027[_0x177b0e(0x132)](_0xf6e35a,null)?_0x2fede1+='Cluster\x20'+global_registry[_0x177b0e(0x194)]+'\x20'+(_0xf6e35a?_0x317027['svDeP']:_0x317027[_0x177b0e(0x18a)])+'\x0a\x0a':_0x2fede1+=_0x177b0e(0x1a7)+global_registry[_0x177b0e(0x194)]+_0x177b0e(0xfa),_0x2fede1+=_0x317027[_0x177b0e(0x141)](getSystemMetaData),_0x2fede1;}function a17_0x4d29(_0x588fb1,_0x13f421){const _0x1a36bc=a17_0x1a36();return a17_0x4d29=function(_0x4d2934,_0x86dc99){_0x4d2934=_0x4d2934-0xf0;let _0x543aa5=_0x1a36bc[_0x4d2934];return _0x543aa5;},a17_0x4d29(_0x588fb1,_0x13f421);};exports['handler']=async function(_0x31f8ff){const _0x2632aa=a17_0x5c75fc,_0x375d17={'IAmge':function(_0x5a42a9){return _0x5a42a9();},'Kfirc':_0x2632aa(0xfd),'NLTGS':function(_0x2ad247,_0x5907d7,_0x130612,_0x3d097b,_0x3b3f4a,_0x5a6593,_0x2f0dd3,_0x282b71){return _0x2ad247(_0x5907d7,_0x130612,_0x3d097b,_0x3b3f4a,_0x5a6593,_0x2f0dd3,_0x282b71);},'RYWqp':_0x2632aa(0x184),'IwILl':'credential-not-found','jUDOh':_0x2632aa(0x1b5),'GCdsJ':function(_0x376222,_0x85a33c,_0x2fbbd8,_0x542cd6,_0x5049d4,_0x5d1632,_0x461c52){return _0x376222(_0x85a33c,_0x2fbbd8,_0x542cd6,_0x5049d4,_0x5d1632,_0x461c52);},'cJNUD':function(_0x23cfa5){return _0x23cfa5();},'qICOf':_0x2632aa(0x13a),'taWTE':'<PasswordPlaceholder>','wdFFI':function(_0x41e199,_0x50a5ad,_0xf1fc6e){return _0x41e199(_0x50a5ad,_0xf1fc6e);},'vBtTt':function(_0x1ff8fb,_0x734443,_0x3f5143){return _0x1ff8fb(_0x734443,_0x3f5143);},'LRGCR':'dummy-grid','WPHSO':function(_0x4c34ae,_0x2c7480,_0x3bb7de){return _0x4c34ae(_0x2c7480,_0x3bb7de);},'BazpT':_0x2632aa(0x1a6),'RAcxC':_0x2632aa(0x125),'aCUzR':function(_0x5e3123,_0xe62f7f,_0x5b4837){return _0x5e3123(_0xe62f7f,_0x5b4837);},'LXagB':'accessResp','DvxTp':function(_0x49721d){return _0x49721d();},'obdTy':function(_0x388d9d,_0x36d23f,_0x40a8e7){return _0x388d9d(_0x36d23f,_0x40a8e7);},'sefKI':_0x2632aa(0x1a5),'OhGFZ':function(_0x4cb414,_0x422178){return _0x4cb414(_0x422178);},'daLdy':'TLSv1_2_client_method','haUwS':_0x2632aa(0x1a8),'RdCoE':_0x2632aa(0xf8),'fDqdK':_0x2632aa(0x19e),'fnMyL':_0x2632aa(0x1bc),'DwmqR':_0x2632aa(0x158),'Gzebv':function(_0x52c86b,_0x331821){return _0x52c86b+_0x331821;},'ssrQP':_0x2632aa(0x19c),'WPWZz':_0x2632aa(0x17e)};let _0xf15cad,_0x3e2380;try{global_registry[_0x2632aa(0x186)]=_0x375d17[_0x2632aa(0x1cc)](uuidv4);!fs[_0x2632aa(0x16b)](_0x375d17[_0x2632aa(0x1cc)](getCredentialsPath))&&(_0x3e2380=_0x375d17[_0x2632aa(0x171)],logger[_0x2632aa(0x1b5)](_0x3e2380),await _0x375d17[_0x2632aa(0xf1)](reportToGalactusAndSendToEDS,_0x31f8ff,_0xf15cad,_0x3e2380,messageTypes['ERROR'],_0x375d17[_0x2632aa(0x120)],_0x375d17['IwILl'],_0x375d17[_0x2632aa(0x175)]),process[_0x2632aa(0x163)](0x1));_0x375d17[_0x2632aa(0xf6)](sendInstrumentationEvent,_0x31f8ff,_0x375d17[_0x2632aa(0x120)],messageTypes['INFO'],null,null,_0x31f8ff);const _0x1a96ad=JSON['parse'](fs[_0x2632aa(0x113)](_0x375d17[_0x2632aa(0x153)](getCredentialsPath)));global_registry['bstackUsername']=_0x1a96ad[_0x2632aa(0x1e8)][_0x2632aa(0x1b3)],global_registry[_0x2632aa(0x1d8)]=_0x1a96ad['Browserstack'][_0x2632aa(0x1ec)];const _0x1ec266=WS_ENDPOINT[_0x2632aa(0x1eb)](_0x375d17[_0x2632aa(0x198)],_0x1a96ad[_0x2632aa(0x1e8)][_0x2632aa(0x1b3)])[_0x2632aa(0x1eb)](_0x375d17[_0x2632aa(0x13e)],_0x1a96ad[_0x2632aa(0x1e8)]['password']),_0x4cc09a={};_0x4cc09a[_0x2632aa(0x122)]=ws,_0x4cc09a[_0x2632aa(0x1aa)]=0x36ee80,_0xf15cad=new ReconnectingWebSocket(_0x1ec266,[],_0x4cc09a),global_registry[_0x2632aa(0x123)]=_0x375d17[_0x2632aa(0x1d2)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x375d17[_0x2632aa(0x19d)](inputValidation,_0x31f8ff,_0xf15cad),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x2632aa(0x187)+global_registry[_0x2632aa(0x1c9)]);let _0x46d73a=await _0x375d17[_0x2632aa(0xf6)](getCloudProviderObjectWithOutInit,global_registry[_0x2632aa(0x157)],global_registry[_0x2632aa(0x194)],_0x375d17[_0x2632aa(0x12b)],_0xf15cad,webSocketUtils,_0x31f8ff);const _0x922d06=await _0x46d73a[_0x2632aa(0x145)]();_0x375d17['WPHSO'](printResponse,_0x375d17[_0x2632aa(0x112)],_0x922d06),_0x46d73a=await _0x46d73a[_0x2632aa(0x166)]();let _0x4a0005=![];try{_0x4a0005=await _0x46d73a[_0x2632aa(0x1d6)]();}catch(_0x430cbb){const _0x4303e0=_0x375d17['RAcxC'][_0x2632aa(0x16e)]('|');let _0x9763e0=0x0;while(!![]){switch(_0x4303e0[_0x9763e0++]){case'0':logger[_0x2632aa(0x1b5)](_0x3e2380);continue;case'1':_0x3e2380=_0x2632aa(0x103)+global_registry[_0x2632aa(0x194)]+_0x2632aa(0x109)+global_registry['clusterRegion']+_0x2632aa(0x116)+_0x430cbb;continue;case'2':_0x3e2380+='\x0a'+JSON[_0x2632aa(0x18f)](_0x430cbb[_0x2632aa(0x11b)]);continue;case'3':await _0x375d17['NLTGS'](reportToGalactusAndSendToEDS,_0x31f8ff,_0xf15cad,_0x3e2380,messageTypes[_0x2632aa(0x1b2)],_0x375d17[_0x2632aa(0x120)],'cluster-check-failed-'+global_registry[_0x2632aa(0x157)],_0x375d17[_0x2632aa(0x175)]);continue;case'4':_0x4a0005=null;continue;}break;}}_0x4a0005&&logger[_0x2632aa(0x137)](_0x2632aa(0x108)+global_registry[_0x2632aa(0x194)]+_0x2632aa(0x101));const _0x2b3b6e=await _0x46d73a[_0x2632aa(0x160)]();_0x375d17[_0x2632aa(0x161)](printResponse,_0x375d17[_0x2632aa(0x11e)],_0x2b3b6e);const _0x18ad96=await _0x375d17[_0x2632aa(0x1d0)](curlRequest);_0x375d17[_0x2632aa(0x1a2)](printResponse,_0x375d17['sefKI'],_0x18ad96);const _0x5dd4ae=await _0x375d17['OhGFZ'](isTlsSupported,_0x375d17['daLdy']);_0x375d17['wdFFI'](printResponse,_0x375d17[_0x2632aa(0x144)],_0x5dd4ae);const _0x566bf4={};_0x566bf4[_0x2632aa(0x192)]=_0x375d17[_0x2632aa(0xfb)],_0x566bf4[_0x2632aa(0x1ee)]=_0x922d06;const _0x4be47e={};_0x4be47e[_0x2632aa(0x192)]=_0x375d17['fDqdK'],_0x4be47e[_0x2632aa(0x1ee)]=_0x2b3b6e;const _0x3dabf6={};_0x3dabf6[_0x2632aa(0x192)]=_0x375d17[_0x2632aa(0x18c)],_0x3dabf6['response']=_0x18ad96;const _0x286306={};_0x286306[_0x2632aa(0x192)]=_0x375d17[_0x2632aa(0x10e)],_0x286306[_0x2632aa(0x1ee)]=_0x5dd4ae;const _0x1ce037=[_0x566bf4,_0x4be47e,_0x3dabf6,_0x286306],_0x3fb7cd=await _0x375d17[_0x2632aa(0x16a)](generateReport,_0x1ce037,_0x4a0005),_0x137788=new Date(),_0x32ffcf=_0x137788['getUTCFullYear']()+'_'+_0x375d17[_0x2632aa(0x1d7)](_0x137788[_0x2632aa(0x156)](),0x1)+'_'+_0x137788[_0x2632aa(0x17a)]()+'_'+_0x137788['getUTCHours']()+'_'+_0x137788[_0x2632aa(0x130)](),_0x5a0700=_0x2632aa(0x1c3)+_0x32ffcf+_0x2632aa(0x1c4);fs[_0x2632aa(0x1c5)](_0x5a0700,_0x3fb7cd,_0x375d17[_0x2632aa(0x1ab)]),logger[_0x2632aa(0x137)](_0x2632aa(0x13d)+_0x5a0700),process[_0x2632aa(0x163)](0x0);}catch(_0x549009){let _0x410a6c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x549009+'\x20';logger[_0x2632aa(0x1b5)](_0x410a6c),_0x410a6c+='\x0a'+JSON[_0x2632aa(0x18f)](_0x549009[_0x2632aa(0x11b)]),logger['debug'](_0x2632aa(0x129)+_0x549009[_0x2632aa(0x11b)]);if(_0xf15cad){const _0x6257b7={};_0x6257b7[_0x2632aa(0xf5)]=WS_EVENTS['LOG'],_0x6257b7[_0x2632aa(0x15a)]=_0x410a6c,webSocketUtils[_0x2632aa(0x146)](_0xf15cad,_0x6257b7,_0x375d17[_0x2632aa(0x175)],!![]);}await webSocketUtils[_0x2632aa(0x168)](0x7d0);const _0x3d2e59={};_0x3d2e59['error']=_0x410a6c,await _0x375d17[_0x2632aa(0xf6)](sendInstrumentationEvent,_0x31f8ff,_0x375d17[_0x2632aa(0x120)],messageTypes['ERROR'],_0x375d17['WPWZz'],_0x3d2e59,_0x31f8ff),process['exit'](0x1);}};
1
+ function a17_0x575b(_0x5e6823,_0x43437c){const _0x5729ee=a17_0x5729();return a17_0x575b=function(_0x575bb8,_0x36721c){_0x575bb8=_0x575bb8-0x12e;let _0x3e81b6=_0x5729ee[_0x575bb8];return _0x3e81b6;},a17_0x575b(_0x5e6823,_0x43437c);}const a17_0xc3a04a=a17_0x575b;(function(_0x59f2fc,_0x21c697){const _0x5c0a85=a17_0x575b,_0x552ddf=_0x59f2fc();while(!![]){try{const _0x7e019e=parseInt(_0x5c0a85(0x17b))/0x1*(parseInt(_0x5c0a85(0x183))/0x2)+parseInt(_0x5c0a85(0x145))/0x3+parseInt(_0x5c0a85(0x18b))/0x4+parseInt(_0x5c0a85(0x215))/0x5*(-parseInt(_0x5c0a85(0x170))/0x6)+parseInt(_0x5c0a85(0x223))/0x7*(-parseInt(_0x5c0a85(0x158))/0x8)+-parseInt(_0x5c0a85(0x1ba))/0x9+parseInt(_0x5c0a85(0x1ac))/0xa*(-parseInt(_0x5c0a85(0x192))/0xb);if(_0x7e019e===_0x21c697)break;else _0x552ddf['push'](_0x552ddf['shift']());}catch(_0x1f503f){_0x552ddf['push'](_0x552ddf['shift']());}}}(a17_0x5729,0xf0f83));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0xc3a04a(0x1b2)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xc3a04a(0x19f)),{logger}=require(a17_0xc3a04a(0x1d9)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0xc3a04a(0x1e3)),webSocketUtils=require(a17_0xc3a04a(0x176)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0xc3a04a(0x1d2)]='grid',exports[a17_0xc3a04a(0x1ee)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0xc3a04a(0x203)]=function(_0x1127b4){const _0x1558b5=a17_0xc3a04a,_0x22aee7={};_0x22aee7[_0x1558b5(0x12e)]=_0x1558b5(0x169),_0x22aee7[_0x1558b5(0x130)]='string',_0x22aee7['sHwmK']=_0x1558b5(0x204),_0x22aee7[_0x1558b5(0x15b)]=_0x1558b5(0x13b),_0x22aee7[_0x1558b5(0x18c)]=_0x1558b5(0x182),_0x22aee7['tQUjS']=_0x1558b5(0x15a);const _0x47b6b9=_0x22aee7,_0x3f522e={};_0x3f522e[_0x1558b5(0x148)]=_0x47b6b9[_0x1558b5(0x12e)],_0x3f522e['type']=_0x47b6b9['ZFnvc'];const _0x3dbcbc={};_0x3dbcbc[_0x1558b5(0x148)]=_0x47b6b9['sHwmK'],_0x3dbcbc[_0x1558b5(0x178)]=_0x47b6b9[_0x1558b5(0x130)];const _0x140c25={};_0x140c25[_0x1558b5(0x148)]=_0x47b6b9[_0x1558b5(0x15b)],_0x140c25[_0x1558b5(0x178)]=_0x47b6b9[_0x1558b5(0x130)];const _0x2b1f57={};_0x2b1f57[_0x1558b5(0x148)]=_0x47b6b9[_0x1558b5(0x18c)],_0x2b1f57[_0x1558b5(0x178)]=_0x47b6b9['ZFnvc'];const _0x3a6ad5={};return _0x3a6ad5[_0x1558b5(0x1a3)]=_0x3f522e,_0x3a6ad5[_0x1558b5(0x1e4)]=_0x3dbcbc,_0x3a6ad5[_0x1558b5(0x21e)]=_0x140c25,_0x3a6ad5[_0x1558b5(0x136)]=_0x2b1f57,_0x1127b4['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x1558b5(0x155)](HELP_FOOTER_MESSAGE)[_0x1558b5(0x221)](_0x3a6ad5)[_0x1558b5(0x15a)](_0x47b6b9[_0x1558b5(0x19d)])[_0x1558b5(0x188)];};async function inputValidation(_0x556abc,_0x1147af){const _0x1c579f=a17_0xc3a04a,_0x4b869c={'VuHVV':_0x1c579f(0x200),'XDeJJ':_0x1c579f(0x169),'gmFTS':_0x1c579f(0x1c0),'eLxbD':_0x1c579f(0x204),'YeMDG':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','xfCmn':_0x1c579f(0x182),'KbZXV':_0x1c579f(0x15a),'GlrSi':'cloud-provider','ybWSH':_0x1c579f(0x1a3),'NxywT':_0x1c579f(0x1a5),'tpxTZ':'will\x20be\x20created','FBeKE':_0x1c579f(0x1b0),'bOkwo':function(_0x4f5d78,_0x2a67a9){return _0x4f5d78+_0x2a67a9;},'MujbY':'Success','StLnY':_0x1c579f(0x139),'hPXcu':function(_0x3adb30,_0x21ac46){return _0x3adb30||_0x21ac46;},'fFJiR':_0x1c579f(0x1b3),'LBLAU':_0x1c579f(0x15d),'jtpdo':_0x1c579f(0x21e),'kcAwX':function(_0x4110cc,_0x21fc99){return _0x4110cc!==_0x21fc99;},'EiVXl':_0x1c579f(0x1fa),'CFKSP':function(_0x3ab741,_0x2e8086){return _0x3ab741===_0x2e8086;},'SNqli':_0x1c579f(0x140),'aXQqy':'RuFVW','bOTVT':function(_0x1cd351,_0x44170f){return _0x1cd351!==_0x44170f;},'wfNBK':_0x1c579f(0x1dc),'YkoPQ':function(_0x2e7d32,_0x3ca289){return _0x2e7d32===_0x3ca289;},'AnASV':_0x1c579f(0x19e),'DsrIz':_0x1c579f(0x143),'bocpi':_0x1c579f(0x1da),'GreQq':function(_0x2fc12f,_0x12b4f8){return _0x2fc12f>_0x12b4f8;},'saApV':function(_0x3ff798,_0x2c9015){return _0x3ff798===_0x2c9015;},'XvesV':_0x1c579f(0x1f8),'sRxlU':_0x1c579f(0x1b4),'gNhuU':function(_0x1c81ac,_0xadbee8,_0xa5afb0,_0xb5698d,_0x4ad801,_0x10ab8,_0x1b0abd,_0x27af40){return _0x1c81ac(_0xadbee8,_0xa5afb0,_0xb5698d,_0x4ad801,_0x10ab8,_0x1b0abd,_0x27af40);},'VdarW':_0x1c579f(0x1c7),'vnGJQ':'pre-check-cluster-args-not-passed','MTBwW':'kqMcA','shjCC':_0x1c579f(0x1db),'NkJiR':function(_0xf59d7e,_0x9c7e82,_0x417467,_0x1ce9ad,_0x3e7b17,_0x71bc4d,_0x191738,_0x463a28){return _0xf59d7e(_0x9c7e82,_0x417467,_0x1ce9ad,_0x3e7b17,_0x71bc4d,_0x191738,_0x463a28);},'TIWkU':'cloud-provider-not-supported','QRlUM':function(_0x4d622f,_0x3095a0){return _0x4d622f!==_0x3095a0;},'XACbs':_0x1c579f(0x1e8),'VnKVz':_0x1c579f(0x16c),'zRwty':_0x1c579f(0x1b7),'FsMvN':'GET','wfcBR':function(_0x179482,_0x1246c8,_0x4d182f){return _0x179482(_0x1246c8,_0x4d182f);},'ZceZk':function(_0x507db1,_0x3650c9,_0x41231f,_0x57372f,_0x1366cb,_0x4a46b1){return _0x507db1(_0x3650c9,_0x41231f,_0x57372f,_0x1366cb,_0x4a46b1);},'xgxrF':_0x1c579f(0x147),'UXsnG':_0x1c579f(0x136),'XKnOm':function(_0x14c5b0,_0x591437){return _0x14c5b0===_0x591437;},'YAZDd':function(_0x248452,_0x10d2e5){return _0x248452===_0x10d2e5;},'Dkwfh':_0x1c579f(0x225),'CqiFv':'wgjOT','BYBVP':function(_0x4267f7,_0x1915bf){return _0x4267f7(_0x1915bf);},'AxNBO':function(_0x1b739f,_0x2a25f7){return _0x1b739f!==_0x2a25f7;},'pWkIx':_0x1c579f(0x193),'HhuOd':_0x1c579f(0x198),'HmhvR':function(_0x3a57da,_0x2d6205){return _0x3a57da!==_0x2d6205;},'wjgCV':_0x1c579f(0x16a),'NBRse':_0x1c579f(0x1bb),'FLLUR':_0x1c579f(0x13d),'nYCRp':_0x1c579f(0x18f),'ETHiU':_0x1c579f(0x1bd),'DiiAW':_0x1c579f(0x21d)};let _0x3b5803;try{if(_0x4b869c[_0x1c579f(0x1bc)](_0x4b869c[_0x1c579f(0x180)],_0x4b869c[_0x1c579f(0x180)]))_0x16ad37['error'](_0x4b869c[_0x1c579f(0x1e2)]),_0x2ce6f6[_0x1c579f(0x1ca)](0x1);else{if(_0x556abc[_0x1c579f(0x17c)]||_0x556abc[_0x1c579f(0x1a8)]||_0x556abc[_0x1c579f(0x21e)]){if(_0x4b869c[_0x1c579f(0x17e)](_0x4b869c[_0x1c579f(0x1ef)],_0x4b869c[_0x1c579f(0x1ff)])){const _0x30d0c3={};_0x30d0c3['description']=_0x4b869c[_0x1c579f(0x1e7)],_0x30d0c3['type']=_0x4b869c[_0x1c579f(0x16b)];const _0x2158fd={};_0x2158fd[_0x1c579f(0x148)]=_0x4b869c['eLxbD'],_0x2158fd['type']=_0x4b869c[_0x1c579f(0x16b)];const _0x4a99f6={};_0x4a99f6['description']=_0x4b869c[_0x1c579f(0x1fe)],_0x4a99f6[_0x1c579f(0x178)]=_0x4b869c[_0x1c579f(0x16b)];const _0x2ba73c={};_0x2ba73c[_0x1c579f(0x148)]=_0x4b869c[_0x1c579f(0x1c5)],_0x2ba73c['type']=_0x4b869c[_0x1c579f(0x16b)];const _0x32167e={};return _0x32167e[_0x1c579f(0x1a3)]=_0x30d0c3,_0x32167e[_0x1c579f(0x1e4)]=_0x2158fd,_0x32167e[_0x1c579f(0x21e)]=_0x4a99f6,_0x32167e[_0x1c579f(0x136)]=_0x2ba73c,_0x3af6e1['usage'](_0x18b998[_0x1c579f(0x14b)])['epilogue'](_0x5d97f4)[_0x1c579f(0x221)](_0x32167e)[_0x1c579f(0x15a)](_0x4b869c[_0x1c579f(0x179)])[_0x1c579f(0x188)];}else{const _0x3601ff=[];!_0x556abc[_0x1c579f(0x17c)]&&(_0x4b869c['bOTVT'](_0x4b869c[_0x1c579f(0x160)],_0x4b869c[_0x1c579f(0x160)])?_0x5d72c5[_0x1c579f(0x15e)](_0x4b869c[_0x1c579f(0x218)]):_0x3601ff['push'](_0x4b869c[_0x1c579f(0x14c)]));;!_0x556abc[_0x1c579f(0x1a8)]&&(_0x4b869c['YkoPQ'](_0x4b869c[_0x1c579f(0x1eb)],_0x4b869c['AnASV'])?_0x3601ff[_0x1c579f(0x15e)](_0x4b869c[_0x1c579f(0x218)]):_0x5b49ec[_0x1c579f(0x15e)](_0x4b869c['ybWSH']));;!_0x556abc[_0x1c579f(0x21e)]&&(_0x4b869c[_0x1c579f(0x1a7)](_0x4b869c[_0x1c579f(0x1c3)],_0x4b869c[_0x1c579f(0x21c)])?_0x523224['info'](_0x1c579f(0x161)+_0x16ea46['clusterName']+'`\x20already\x20exists'):_0x3601ff[_0x1c579f(0x15e)](_0x4b869c['jtpdo']));;_0x4b869c[_0x1c579f(0x1fc)](_0x3601ff['length'],0x0)&&(_0x4b869c[_0x1c579f(0x138)](_0x4b869c[_0x1c579f(0x14d)],_0x4b869c[_0x1c579f(0x165)])?_0x42ff2c+=_0x1c579f(0x1dd)+_0x2affad[_0x1c579f(0x17c)]+'\x20'+(_0x2fafe1?_0x4b869c['NxywT']:_0x4b869c['tpxTZ'])+'\x0a\x0a':(_0x3b5803=_0x1c579f(0x17f)+_0x3601ff[_0x1c579f(0x15f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4b869c[_0x1c579f(0x1b5)](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c['VdarW'],_0x4b869c[_0x1c579f(0x1de)],_0x4b869c[_0x1c579f(0x185)]),logger[_0x1c579f(0x1b0)](_0x3b5803),process[_0x1c579f(0x1ca)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1c579f(0x177)](_0x556abc[_0x1c579f(0x1a8)][_0x1c579f(0x1cf)]())&&(_0x4b869c[_0x1c579f(0x138)](_0x4b869c[_0x1c579f(0x13c)],_0x4b869c[_0x1c579f(0x13c)])?(_0x3b5803=_0x4b869c[_0x1c579f(0x214)],await _0x4b869c[_0x1c579f(0x134)](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c[_0x1c579f(0x202)],_0x4b869c['TIWkU'],_0x4b869c['FBeKE']),logger['error'](_0x3b5803),!_0x556abc[_0x1c579f(0x1a8)]&&(_0x4b869c['QRlUM'](_0x4b869c['XACbs'],_0x4b869c['VnKVz'])?(logger[_0x1c579f(0x1af)](_0x1c579f(0x1f9)+DEFAULT_CLUSTER_DETAILS[_0x1c579f(0x133)]+'\x20'),_0x556abc[_0x1c579f(0x1a8)]=DEFAULT_CLUSTER_DETAILS[_0x1c579f(0x133)]):_0x3f7d43+=_0x1c579f(0x1dd)+_0x3b9183[_0x1c579f(0x17c)]+_0x1c579f(0x21a))):(_0x276276[_0x1c579f(0x1af)]('['+_0x459ae5+_0x1c579f(0x15c)+_0x1ab5db[_0x1c579f(0x142)]+_0x1c579f(0x1c1)+_0x1b6bf8['data']+_0x1c579f(0x186)+_0x3edae9['error']),_0x335ffd['error']&&_0x39f841[_0x1c579f(0x1b0)](_0x1c579f(0x1c2)+_0x40ea86[_0x1c579f(0x1b0)][_0x1c579f(0x1bf)]))),global_registry[_0x1c579f(0x17c)]=_0x556abc[_0x1c579f(0x17c)],global_registry[_0x1c579f(0x1a8)]=_0x556abc[_0x1c579f(0x1a8)],global_registry['clusterRegion']=_0x556abc[_0x1c579f(0x21e)];}}else{if(_0x556abc['gridProfile']){if(_0x4b869c[_0x1c579f(0x17e)](_0x4b869c[_0x1c579f(0x1b9)],_0x4b869c[_0x1c579f(0x1b9)])){global_registry[_0x1c579f(0x184)]=_0x556abc[_0x1c579f(0x184)],logger['debug']('grid\x20profile\x20flow\x20'+_0x556abc[_0x1c579f(0x184)]);const _0x410b41='https://'+AG_API_URL+_0x1c579f(0x189),_0x66aa5a={};_0x66aa5a[_0x1c579f(0x141)]=_0x4b869c[_0x1c579f(0x172)],_0x66aa5a['headers']=global_registry['authHeader'],_0x66aa5a['throwHttpErrors']=![];const _0x5c45e6=_0x66aa5a,_0x32402a=await _0x4b869c['wfcBR'](got,_0x410b41,_0x5c45e6),_0x32e1c7=await _0x4b869c['ZceZk'](responseValidation,_0x32402a,_0x4b869c[_0x1c579f(0x1a2)],_0x4b869c[_0x1c579f(0x174)],_0x556abc,_0x1147af);let _0x1045a6={};if(_0x4b869c[_0x1c579f(0x1c8)](_0x32e1c7,0xc8)){if(_0x4b869c[_0x1c579f(0x18e)](_0x4b869c['Dkwfh'],_0x4b869c[_0x1c579f(0x1f4)])){const _0x301695={};_0x301695['type']=_0x5374ca[_0x1c579f(0x1d1)],_0x301695['message']=_0x499f44,_0x13cdc4[_0x1c579f(0x13a)](_0x31b38d,_0x301695,_0x4b869c[_0x1c579f(0x185)],!![]);}else{const _0x4b6aed=JSON['parse'](_0x32402a[_0x1c579f(0x144)]),_0x1f7b7a=_0x4b6aed[_0x1c579f(0x20c)](_0x72de97=>_0x72de97[_0x1c579f(0x212)]===_0x556abc[_0x1c579f(0x184)])||null;if(_0x4b869c['BYBVP'](isUndefined,_0x1f7b7a))_0x4b869c[_0x1c579f(0x1c4)](_0x4b869c[_0x1c579f(0x1f3)],_0x4b869c[_0x1c579f(0x1f3)])?_0x52d4f1=_0xfeea88:(_0x3b5803=_0x1c579f(0x194)+_0x556abc[_0x1c579f(0x184)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x4b869c[_0x1c579f(0x1b5)](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c[_0x1c579f(0x202)],_0x4b869c[_0x1c579f(0x1d8)],_0x4b869c[_0x1c579f(0x185)]),logger['error'](_0x3b5803),process[_0x1c579f(0x1ca)](0x1));else{if(_0x4b869c[_0x1c579f(0x149)](_0x4b869c[_0x1c579f(0x19a)],_0x4b869c[_0x1c579f(0x21b)]))_0x1045a6=_0x1f7b7a;else{const {header:_0x1368c1,response:_0x4e673c}=_0xa73339,{status:_0x481397,data:_0x3b0fa6,error:_0x19b6a4}=_0x4e673c;_0x57e3cb+=_0x1368c1+'\x20#'+_0x4b869c[_0x1c579f(0x1d6)](_0x5d759b,0x1)+'\x0a',_0x47d611+='Status:\x20'+(_0x481397?_0x4b869c[_0x1c579f(0x1a4)]:_0x4b869c[_0x1c579f(0x14f)])+'\x0a',_0x28b165+=_0x1c579f(0x197)+_0x4b869c['hPXcu'](_0x3b0fa6,_0x4b869c[_0x1c579f(0x191)])+'\x0a',_0x19b6a4&&(_0x1ef089+=_0x4b869c[_0x1c579f(0x1e0)],_0xe12189+=_0x1c579f(0x220)+(_0x19b6a4[_0x1c579f(0x135)]||_0x4b869c[_0x1c579f(0x191)])+'\x0a',_0x4da97c+='\x20\x20Code:\x20'+(_0x19b6a4[_0x1c579f(0x168)]||_0x4b869c['fFJiR'])+'\x0a',_0x495d8d+=_0x1c579f(0x171)+(_0x19b6a4['stack']||_0x4b869c[_0x1c579f(0x191)])+'\x0a'),_0x525440+='\x0a\x0a';}}}}else _0x4b869c[_0x1c579f(0x17e)](_0x4b869c[_0x1c579f(0x217)],_0x4b869c['FLLUR'])?process[_0x1c579f(0x1ca)](0x1):_0x3d6cb7[_0x1c579f(0x1b0)](_0x1c579f(0x1c2)+_0x5ede14['error'][_0x1c579f(0x1bf)]);const _0x5aaf26={};_0x5aaf26[_0x1c579f(0x178)]=WS_EVENTS[_0x1c579f(0x1d1)],_0x5aaf26[_0x1c579f(0x135)]=_0x4b869c['nYCRp'],webSocketUtils[_0x1c579f(0x13a)](_0x1147af,_0x5aaf26),global_registry[_0x1c579f(0x1a8)]=_0x1045a6['cloudProvider'],global_registry[_0x1c579f(0x1d7)]=_0x1045a6['region'],global_registry[_0x1c579f(0x17c)]=_0x1045a6[_0x1c579f(0x17c)];}else _0x1b607a[_0x1c579f(0x1ca)](0x1);}else _0x4b869c[_0x1c579f(0x149)](_0x4b869c[_0x1c579f(0x181)],_0x4b869c[_0x1c579f(0x181)])?_0x5a79c9[_0x1c579f(0x15e)](_0x4b869c[_0x1c579f(0x20f)]):(logger[_0x1c579f(0x1b0)](_0x4b869c[_0x1c579f(0x1e2)]),process[_0x1c579f(0x1ca)](0x1));}}}catch(_0x384585){_0x4b869c[_0x1c579f(0x18e)](_0x4b869c['DiiAW'],_0x4b869c['DiiAW'])?(_0x3b5803=_0x1c579f(0x175)+_0x384585+':\x20'+_0x384585[_0x1c579f(0x1bf)],logger['error'](_0x3b5803),await _0x4b869c['gNhuU'](reportToGalactusAndSendToEDS,_0x556abc,_0x1147af,_0x3b5803,messageTypes[_0x1c579f(0x1fd)],_0x4b869c[_0x1c579f(0x202)],_0x4b869c[_0x1c579f(0x1fb)],_0x4b869c[_0x1c579f(0x185)]),process['exit'](0x1)):(_0x58c5c8+=_0x4b869c[_0x1c579f(0x1e0)],_0x5cb68c+='\x20\x20Message:\x20'+(_0x5034f5[_0x1c579f(0x135)]||_0x4b869c['fFJiR'])+'\x0a',_0x4c1369+=_0x1c579f(0x18a)+(_0x50d008[_0x1c579f(0x168)]||_0x4b869c['fFJiR'])+'\x0a',_0x302019+=_0x1c579f(0x171)+(_0xf57211[_0x1c579f(0x1bf)]||_0x4b869c['fFJiR'])+'\x0a');}}function printResponse(_0x43e20b,_0x1a9f73){const _0x4f621a=a17_0xc3a04a,_0x4f5115={};_0x4f5115[_0x4f621a(0x20d)]=function(_0x46d109,_0x429fb5){return _0x46d109===_0x429fb5;},_0x4f5115[_0x4f621a(0x1df)]=_0x4f621a(0x166),_0x4f5115[_0x4f621a(0x222)]=_0x4f621a(0x16e);const _0x1bc1cf=_0x4f5115;logger[_0x4f621a(0x1af)]('['+_0x43e20b+']\x20status\x20:\x20'+_0x1a9f73[_0x4f621a(0x142)]+'\x20data\x20:\x20'+_0x1a9f73[_0x4f621a(0x14a)]+_0x4f621a(0x186)+_0x1a9f73[_0x4f621a(0x1b0)]),_0x1a9f73[_0x4f621a(0x1b0)]&&(_0x1bc1cf[_0x4f621a(0x20d)](_0x1bc1cf['gpoYQ'],_0x1bc1cf['AWHFf'])?(_0x25ff35[_0x4f621a(0x1af)]('Setting\x20cloud\x20provider\x20as\x20'+_0x3fd951[_0x4f621a(0x133)]+'\x20'),_0x4ceb54[_0x4f621a(0x1a8)]=_0x49f6eb[_0x4f621a(0x133)]):logger['error'](_0x4f621a(0x1c2)+_0x1a9f73[_0x4f621a(0x1b0)][_0x4f621a(0x1bf)]));}async function generateReport(_0x4faff6,_0x43bb83){const _0x42faca=a17_0xc3a04a,_0x4f4dde={'VqPDM':function(_0x35b4bf,_0x427aa5){return _0x35b4bf+_0x427aa5;},'mGboC':'Success','NerYc':_0x42faca(0x139),'pbpqV':function(_0x7853ac,_0x216448){return _0x7853ac||_0x216448;},'IWYVZ':_0x42faca(0x1b3),'ZhvLg':_0x42faca(0x15d),'TAWuK':_0x42faca(0x1b8),'GrYJo':function(_0x4bf882,_0x546ffa){return _0x4bf882!=_0x546ffa;},'glmzg':'is\x20already\x20present','oqsew':'will\x20be\x20created','gXgNi':function(_0x42dd16){return _0x42dd16();}};let _0x5aedc3=_0x42faca(0x1ad)+global_registry[_0x42faca(0x1a8)]+_0x42faca(0x1e6);return _0x4faff6['forEach']((_0x2161df,_0x493992)=>{const _0x57f69c=_0x42faca,{header:_0x3634b3,response:_0x405064}=_0x2161df,{status:_0x1b5b54,data:_0xad2f4e,error:_0x42a17f}=_0x405064;_0x5aedc3+=_0x3634b3+'\x20#'+_0x4f4dde[_0x57f69c(0x1e5)](_0x493992,0x1)+'\x0a',_0x5aedc3+=_0x57f69c(0x14e)+(_0x1b5b54?_0x4f4dde[_0x57f69c(0x1a6)]:_0x4f4dde[_0x57f69c(0x196)])+'\x0a',_0x5aedc3+=_0x57f69c(0x197)+_0x4f4dde[_0x57f69c(0x1e9)](_0xad2f4e,_0x4f4dde[_0x57f69c(0x1be)])+'\x0a',_0x42a17f&&(_0x5aedc3+=_0x4f4dde[_0x57f69c(0x201)],_0x5aedc3+=_0x57f69c(0x220)+(_0x42a17f[_0x57f69c(0x135)]||_0x4f4dde[_0x57f69c(0x1be)])+'\x0a',_0x5aedc3+=_0x57f69c(0x18a)+(_0x42a17f[_0x57f69c(0x168)]||_0x4f4dde[_0x57f69c(0x1be)])+'\x0a',_0x5aedc3+='\x20\x20Stack:\x20'+(_0x42a17f[_0x57f69c(0x1bf)]||_0x4f4dde['IWYVZ'])+'\x0a'),_0x5aedc3+='\x0a\x0a';}),_0x5aedc3+=_0x4f4dde['TAWuK'],_0x4f4dde[_0x42faca(0x219)](_0x43bb83,null)?_0x5aedc3+='Cluster\x20'+global_registry[_0x42faca(0x17c)]+'\x20'+(_0x43bb83?_0x4f4dde[_0x42faca(0x1b6)]:_0x4f4dde[_0x42faca(0x159)])+'\x0a\x0a':_0x5aedc3+=_0x42faca(0x1dd)+global_registry[_0x42faca(0x17c)]+_0x42faca(0x21a),_0x5aedc3+=_0x4f4dde[_0x42faca(0x1ce)](getSystemMetaData),_0x5aedc3;}function a17_0x5729(){const _0x732187=['Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','ZhvLg','VdarW','builder','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','<UsernamePlaceholder>','replace','kIeAY','boVFn','Whitelisted\x20browserstack','Browserstack','toolInstalledResp','find','BjEzy','0|1|3|2|4','jtpdo','existsSync','credential-not-found','name','authHeader','shjCC','2815WBwJFz','dummy-grid','FLLUR','GlrSi','GrYJo','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','NBRse','bocpi','glSMv','region','EiCcL','\x20\x20Message:\x20','options','AWHFf','736141qbmJdN','mKpVV','mtDLA','pre-check-failed','WebSocket','WPagk','cluster-check-failed-','ZFnvc','delay','connectionTimeout','CLOUD_PROVIDER','NkJiR','message','grid-profile','gRKQv','saApV','Failure','sendEventToBackend','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','MTBwW','JGkJM','bstackAccesskey','\x20region\x20-\x20','rhDBM','method','status','UgeKk','body','5068725tCSKYM','eeeRQ','pre-check','description','HmhvR','data','pre_check','ybWSH','XvesV','Status:\x20','StLnY','ObkAw','MWbjy','stringify','getUTCHours','fTWWw','epilogue','Pre-check\x20running\x20for\x20Cloud\x20-\x20','`\x20,error\x20:\x20','104tKhDtP','oqsew','help','JkoPE',']\x20status\x20:\x20','Error\x20Details:\x0a','push','join','wfNBK','Cluster\x20`','split','KSAtL','isClusterPresent','sRxlU','txZAI','Failed\x20in\x20pre-check!\x20Error:\x20','code','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','BkKsB','gmFTS','jDRNN','response','LAeMD','Vlrvu','18498uTGCMJ','\x20\x20Stack:\x20','FsMvN','header','UXsnG','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','../../utils/webSocketUtils','includes','type','KbZXV','getUTCDate','17846cIxMyt','clusterName','XYQfE','CFKSP','Missing\x20required\x20arguments:\x20','EiVXl','ETHiU','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','214IWQqXC','gridProfile','FBeKE','\x20error\x20:\x20','abAAw','argv','/packages/cli/get-all-grid-profiles','\x20\x20Code:\x20','6633052kSSwQt','MVmtm','ZfkLD','YAZDd','Grid\x20profile\x20fetched\x20for\x20pre-check','ZGcRr','fFJiR','11ljGWYZ','UXiEn','Invalid\x20input.\x20grid\x20profiles:\x20','getUTCFullYear','NerYc','Message:\x20','pre-check-grid-profile-empty','debug','wjgCV','utf-8','isTls1_2_SUPPORTED','tQUjS','cPsri','../../utils/utilityMethods','<PasswordPlaceholder>','JEJQn','xgxrF','cluster-name','MujbY','is\x20already\x20present','mGboC','YkoPQ','cloudProvider','parse','username','isTrialGridAccessible','6415670KZNAWn','===\x20Precheck\x20Report\x20-\x20','atOfc','info','error','accessResp','reconnecting-websocket','N/A','WmFYk','gNhuU','glmzg','lvEcA','Cluster\x20details\x0a-----------------------\x0a','zRwty','4733406WTAfcM','VCmOz','kcAwX','sqOrv','IWYVZ','stack','string','\x20data\x20:\x20','error\x20stack\x20:\x20','DsrIz','AxNBO','xfCmn','AKjEl','pre-check-grid-called','XKnOm','Report\x20saved\x20in\x20','exit','handler','pyLoZ','bstackUsername','gXgNi','toLowerCase','Tool\x20Installed','LOG','command','unable\x20to\x20verify\x20if\x20cluster\x20`','User\x20Access','TLSv1_2_client_method','bOkwo','clusterRegion','HhuOd','../../config/logger','XPfHt','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','jnoVG','Cluster\x20','vnGJQ','gpoYQ','LBLAU','bGwnq','VuHVV','../../cloudproviders/utils','cloud-provider','VqPDM','\x20===\x0a\x0a','XDeJJ','SCgCg','pbpqV','password','AnASV','isCliToolInstalled','drgmm','desc','SNqli','readFileSync','TWDcV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pWkIx','CqiFv','ULzFz','HlCXZ','EaZhw','KcZaf','Setting\x20cloud\x20provider\x20as\x20','QvkfX','TIWkU','GreQq','ERROR','YeMDG','aXQqy'];a17_0x5729=function(){return _0x732187;};return a17_0x5729();};exports[a17_0xc3a04a(0x1cb)]=async function(_0x29775b){const _0x1b8aaf=a17_0xc3a04a,_0x41570c={'Vlrvu':function(_0x56b39e){return _0x56b39e();},'wZzov':_0x1b8aaf(0x1f2),'HlCXZ':function(_0x5e1e9e,_0x342a2d,_0x5ee178,_0x35c277,_0x54177b,_0x2d1e8d,_0x4ac652,_0x1e2a2f){return _0x5e1e9e(_0x342a2d,_0x5ee178,_0x35c277,_0x54177b,_0x2d1e8d,_0x4ac652,_0x1e2a2f);},'fTWWw':_0x1b8aaf(0x1c7),'EaZhw':_0x1b8aaf(0x211),'atOfc':'error','AKjEl':function(_0x332f8c,_0x46c195,_0x41ef69,_0x208260,_0x393a31,_0x35680c,_0x44e8e4){return _0x332f8c(_0x46c195,_0x41ef69,_0x208260,_0x393a31,_0x35680c,_0x44e8e4);},'abAAw':function(_0x2895d4){return _0x2895d4();},'MWbjy':_0x1b8aaf(0x205),'TWDcV':_0x1b8aaf(0x1a0),'mKpVV':function(_0x11530a,_0x479940,_0x46e81c){return _0x11530a(_0x479940,_0x46e81c);},'WIrcB':function(_0x2639e6,_0x25b716,_0x30f1cc,_0x4d5140,_0x5fc3f2,_0x4a9552,_0x521bd0){return _0x2639e6(_0x25b716,_0x30f1cc,_0x4d5140,_0x5fc3f2,_0x4a9552,_0x521bd0);},'ObkAw':_0x1b8aaf(0x216),'bGwnq':function(_0x230693,_0x28745c,_0x53b6ef){return _0x230693(_0x28745c,_0x53b6ef);},'ZfkLD':_0x1b8aaf(0x20b),'kIeAY':_0x1b8aaf(0x20e),'EiCcL':function(_0x4bb4fc,_0x405200,_0x389748,_0x5d20c7,_0x17b45a,_0x3f4c28,_0x428beb,_0x446df2){return _0x4bb4fc(_0x405200,_0x389748,_0x5d20c7,_0x17b45a,_0x3f4c28,_0x428beb,_0x446df2);},'eeeRQ':_0x1b8aaf(0x1b1),'YhLfe':function(_0x135ddb,_0x33597f,_0x32c8cf){return _0x135ddb(_0x33597f,_0x32c8cf);},'drgmm':_0x1b8aaf(0x1ab),'gRKQv':function(_0x4c9be4,_0x32c406){return _0x4c9be4(_0x32c406);},'XYQfE':_0x1b8aaf(0x1d5),'pyLoZ':_0x1b8aaf(0x19c),'KSAtL':_0x1b8aaf(0x1d0),'ZGcRr':_0x1b8aaf(0x1d4),'AZXjU':_0x1b8aaf(0x209),'ULzFz':'SSL\x20Configured','QowAt':function(_0x37a8f0,_0x15f5a3){return _0x37a8f0+_0x15f5a3;},'JEJQn':_0x1b8aaf(0x19b),'boVFn':_0x1b8aaf(0x226)};let _0x4ec4c1,_0x46d46a;try{global_registry['requestId']=_0x41570c[_0x1b8aaf(0x16f)](uuidv4);!fs[_0x1b8aaf(0x210)](_0x41570c['Vlrvu'](getCredentialsPath))&&(_0x46d46a=_0x41570c['wZzov'],logger[_0x1b8aaf(0x1b0)](_0x46d46a),await _0x41570c[_0x1b8aaf(0x1f6)](reportToGalactusAndSendToEDS,_0x29775b,_0x4ec4c1,_0x46d46a,messageTypes[_0x1b8aaf(0x1fd)],_0x41570c[_0x1b8aaf(0x154)],_0x41570c[_0x1b8aaf(0x1f7)],_0x41570c[_0x1b8aaf(0x1ae)]),process[_0x1b8aaf(0x1ca)](0x1));_0x41570c['AKjEl'](sendInstrumentationEvent,_0x29775b,_0x41570c['fTWWw'],messageTypes['INFO'],null,null,_0x29775b);const _0x59cc67=JSON[_0x1b8aaf(0x1a9)](fs[_0x1b8aaf(0x1f0)](_0x41570c[_0x1b8aaf(0x187)](getCredentialsPath)));global_registry[_0x1b8aaf(0x1cd)]=_0x59cc67[_0x1b8aaf(0x20a)][_0x1b8aaf(0x1aa)],global_registry[_0x1b8aaf(0x13e)]=_0x59cc67[_0x1b8aaf(0x20a)][_0x1b8aaf(0x1ea)];const _0x174eb1=WS_ENDPOINT[_0x1b8aaf(0x206)](_0x41570c[_0x1b8aaf(0x151)],_0x59cc67[_0x1b8aaf(0x20a)]['username'])[_0x1b8aaf(0x206)](_0x41570c[_0x1b8aaf(0x1f1)],_0x59cc67[_0x1b8aaf(0x20a)]['password']),_0x1a6d51={};_0x1a6d51[_0x1b8aaf(0x227)]=ws,_0x1a6d51[_0x1b8aaf(0x132)]=0x36ee80,_0x4ec4c1=new ReconnectingWebSocket(_0x174eb1,[],_0x1a6d51),global_registry[_0x1b8aaf(0x213)]=_0x41570c[_0x1b8aaf(0x224)](getAuthHeader,global_registry[_0x1b8aaf(0x1cd)],global_registry['bstackAccesskey']),await _0x41570c['mKpVV'](inputValidation,_0x29775b,_0x4ec4c1),logger[_0x1b8aaf(0x1af)](_0x1b8aaf(0x156)+global_registry[_0x1b8aaf(0x1a8)]+_0x1b8aaf(0x13f)+global_registry[_0x1b8aaf(0x1d7)]);let _0x5b7479=await _0x41570c['WIrcB'](getCloudProviderObjectWithOutInit,global_registry[_0x1b8aaf(0x1a8)],global_registry['clusterName'],_0x41570c[_0x1b8aaf(0x150)],_0x4ec4c1,webSocketUtils,_0x29775b);const _0x339eba=await _0x5b7479[_0x1b8aaf(0x1ec)]();_0x41570c[_0x1b8aaf(0x1e1)](printResponse,_0x41570c[_0x1b8aaf(0x18d)],_0x339eba),_0x5b7479=await _0x5b7479['init']();let _0x2aeff5=![];try{_0x2aeff5=await _0x5b7479[_0x1b8aaf(0x164)]();}catch(_0x2a7cd9){const _0x3e17dc=_0x41570c[_0x1b8aaf(0x207)][_0x1b8aaf(0x162)]('|');let _0x18d2f6=0x0;while(!![]){switch(_0x3e17dc[_0x18d2f6++]){case'0':_0x46d46a=_0x1b8aaf(0x1d3)+global_registry[_0x1b8aaf(0x17c)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x1b8aaf(0x1d7)]+_0x1b8aaf(0x157)+_0x2a7cd9;continue;case'1':_0x2aeff5=null;continue;case'2':_0x46d46a+='\x0a'+JSON[_0x1b8aaf(0x152)](_0x2a7cd9[_0x1b8aaf(0x1bf)]);continue;case'3':logger[_0x1b8aaf(0x1b0)](_0x46d46a);continue;case'4':await _0x41570c[_0x1b8aaf(0x21f)](reportToGalactusAndSendToEDS,_0x29775b,_0x4ec4c1,_0x46d46a,messageTypes[_0x1b8aaf(0x1fd)],_0x41570c['fTWWw'],_0x1b8aaf(0x12f)+global_registry['cloudProvider'],_0x41570c[_0x1b8aaf(0x1ae)]);continue;}break;}}_0x2aeff5&&logger[_0x1b8aaf(0x1af)](_0x1b8aaf(0x161)+global_registry[_0x1b8aaf(0x17c)]+'`\x20already\x20exists');const _0x5159a2=await _0x5b7479['checkAccess']();_0x41570c[_0x1b8aaf(0x224)](printResponse,_0x41570c[_0x1b8aaf(0x146)],_0x5159a2);const _0x59498b=await _0x41570c['abAAw'](curlRequest);_0x41570c['YhLfe'](printResponse,_0x41570c[_0x1b8aaf(0x1ed)],_0x59498b);const _0x119732=await _0x41570c[_0x1b8aaf(0x137)](isTlsSupported,_0x41570c[_0x1b8aaf(0x17d)]);_0x41570c[_0x1b8aaf(0x1e1)](printResponse,_0x41570c[_0x1b8aaf(0x1cc)],_0x119732);const _0x459ee6={};_0x459ee6['header']=_0x41570c[_0x1b8aaf(0x163)],_0x459ee6[_0x1b8aaf(0x16d)]=_0x339eba;const _0xdec933={};_0xdec933['header']=_0x41570c[_0x1b8aaf(0x190)],_0xdec933[_0x1b8aaf(0x16d)]=_0x5159a2;const _0x58c9b8={};_0x58c9b8[_0x1b8aaf(0x173)]=_0x41570c['AZXjU'],_0x58c9b8[_0x1b8aaf(0x16d)]=_0x59498b;const _0xdb415b={};_0xdb415b['header']=_0x41570c[_0x1b8aaf(0x1f5)],_0xdb415b[_0x1b8aaf(0x16d)]=_0x119732;const _0x2f0778=[_0x459ee6,_0xdec933,_0x58c9b8,_0xdb415b],_0x14be4d=await _0x41570c[_0x1b8aaf(0x1e1)](generateReport,_0x2f0778,_0x2aeff5),_0x113db6=new Date(),_0x4df0a9=_0x113db6[_0x1b8aaf(0x195)]()+'_'+_0x41570c['QowAt'](_0x113db6['getUTCMonth'](),0x1)+'_'+_0x113db6[_0x1b8aaf(0x17a)]()+'_'+_0x113db6[_0x1b8aaf(0x153)]()+'_'+_0x113db6['getUTCMinutes'](),_0x12dbe7='log/report_'+_0x4df0a9+'.txt';fs['writeFileSync'](_0x12dbe7,_0x14be4d,_0x41570c[_0x1b8aaf(0x1a1)]),logger['info'](_0x1b8aaf(0x1c9)+_0x12dbe7),process['exit'](0x0);}catch(_0x3e5aff){let _0x1624f2=_0x1b8aaf(0x167)+_0x3e5aff+'\x20';logger[_0x1b8aaf(0x1b0)](_0x1624f2),_0x1624f2+='\x0a'+JSON[_0x1b8aaf(0x152)](_0x3e5aff[_0x1b8aaf(0x1bf)]),logger[_0x1b8aaf(0x199)]('stack\x20trace\x20'+_0x3e5aff[_0x1b8aaf(0x1bf)]);if(_0x4ec4c1){const _0x4d537c={};_0x4d537c[_0x1b8aaf(0x178)]=WS_EVENTS[_0x1b8aaf(0x1d1)],_0x4d537c[_0x1b8aaf(0x135)]=_0x1624f2,webSocketUtils[_0x1b8aaf(0x13a)](_0x4ec4c1,_0x4d537c,_0x41570c['atOfc'],!![]);}await webSocketUtils[_0x1b8aaf(0x131)](0x7d0);const _0x1d5fcd={};_0x1d5fcd[_0x1b8aaf(0x1b0)]=_0x1624f2,await _0x41570c[_0x1b8aaf(0x1c6)](sendInstrumentationEvent,_0x29775b,_0x41570c[_0x1b8aaf(0x154)],messageTypes['ERROR'],_0x41570c[_0x1b8aaf(0x208)],_0x1d5fcd,_0x29775b),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x267f(){const _0x1ffbf8=['9YjKZmQ','Start\x20an\x20existing\x20Automation\x20grid.','221680FnZAIz','639220SHeDeg','MZueh','commandDir','desc','1450130shhBBb','recommendCommands','8NBcKaJ','nHcCX','444731qTPEXJ','command','6CiPdHt','../config/constants','epilogue','demandCommand','start','builder','880252eZplyU','usage','31773YOwzUf','help','1789368OISOWq'];a18_0x267f=function(){return _0x1ffbf8;};return a18_0x267f();}const a18_0x57ef31=a18_0x389d;function a18_0x389d(_0x11aa56,_0x14a3e3){const _0x267fc1=a18_0x267f();return a18_0x389d=function(_0x389d15,_0x7e6680){_0x389d15=_0x389d15-0x1c0;let _0x58c69f=_0x267fc1[_0x389d15];return _0x58c69f;},a18_0x389d(_0x11aa56,_0x14a3e3);}(function(_0x3a243c,_0x30ea8){const _0x208570=a18_0x389d,_0x3af759=_0x3a243c();while(!![]){try{const _0x16ef4f=-parseInt(_0x208570(0x1d0))/0x1+-parseInt(_0x208570(0x1d7))/0x2*(-parseInt(_0x208570(0x1cb))/0x3)+-parseInt(_0x208570(0x1c9))/0x4+parseInt(_0x208570(0x1d1))/0x5+parseInt(_0x208570(0x1c3))/0x6*(parseInt(_0x208570(0x1c1))/0x7)+parseInt(_0x208570(0x1cd))/0x8+-parseInt(_0x208570(0x1ce))/0x9*(-parseInt(_0x208570(0x1d5))/0xa);if(_0x16ef4f===_0x30ea8)break;else _0x3af759['push'](_0x3af759['shift']());}catch(_0x9136c7){_0x3af759['push'](_0x3af759['shift']());}}}(a18_0x267f,0x273aa));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x57ef31(0x1c4));exports[a18_0x57ef31(0x1c2)]=a18_0x57ef31(0x1c7),exports[a18_0x57ef31(0x1d4)]=a18_0x57ef31(0x1cf),exports[a18_0x57ef31(0x1c8)]=function(_0x64d9f9){const _0x5828e5=a18_0x57ef31,_0x3871ba={};_0x3871ba[_0x5828e5(0x1c0)]='start_commands',_0x3871ba[_0x5828e5(0x1d2)]='help';const _0x5e2938=_0x3871ba;return _0x64d9f9[_0x5828e5(0x1ca)](HELP_HEADER_MESSAGE[_0x5828e5(0x1c7)])[_0x5828e5(0x1c5)](HELP_FOOTER_MESSAGE)[_0x5828e5(0x1d3)](_0x5e2938[_0x5828e5(0x1c0)])[_0x5828e5(0x1c6)]()[_0x5828e5(0x1d6)]()['strict']()[_0x5828e5(0x1cc)](_0x5e2938[_0x5828e5(0x1d2)]);},exports['handler']=function(_0x170484){};
1
+ function a18_0x4180(){const _0x9ef35c=['709194qdDGcB','../config/constants','yfldJ','start_commands','epilogue','command','tdvdT','builder','commandDir','32596ZwEzCi','start','help','desc','handler','341095HJLBuE','346260EqznNK','195160hkGCJb','2023EJarhY','5568723DWoqvs','3032YyYghE','57XecsaS','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0x4180=function(){return _0x9ef35c;};return a18_0x4180();}const a18_0x163930=a18_0x5a78;(function(_0x540bd0,_0x43e2c0){const _0x383b5c=a18_0x5a78,_0x16a1b9=_0x540bd0();while(!![]){try{const _0x1e9394=-parseInt(_0x383b5c(0x12d))/0x1+-parseInt(_0x383b5c(0x142))/0x2+-parseInt(_0x383b5c(0x131))/0x3*(-parseInt(_0x383b5c(0x13c))/0x4)+-parseInt(_0x383b5c(0x141))/0x5+-parseInt(_0x383b5c(0x133))/0x6+-parseInt(_0x383b5c(0x12e))/0x7*(parseInt(_0x383b5c(0x130))/0x8)+parseInt(_0x383b5c(0x12f))/0x9;if(_0x1e9394===_0x43e2c0)break;else _0x16a1b9['push'](_0x16a1b9['shift']());}catch(_0x24b2d3){_0x16a1b9['push'](_0x16a1b9['shift']());}}}(a18_0x4180,0x1ab1b));function a18_0x5a78(_0x211612,_0x1b3b06){const _0x4180ba=a18_0x4180();return a18_0x5a78=function(_0x5a782d,_0x230bcb){_0x5a782d=_0x5a782d-0x12d;let _0x4bd0e3=_0x4180ba[_0x5a782d];return _0x4bd0e3;},a18_0x5a78(_0x211612,_0x1b3b06);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x163930(0x134));exports[a18_0x163930(0x138)]=a18_0x163930(0x13d),exports[a18_0x163930(0x13f)]=a18_0x163930(0x132),exports[a18_0x163930(0x13a)]=function(_0x597f0b){const _0x17c31e=a18_0x163930,_0x41111a={};_0x41111a['yfldJ']=_0x17c31e(0x136),_0x41111a[_0x17c31e(0x139)]='help';const _0x12ca4e=_0x41111a;return _0x597f0b['usage'](HELP_HEADER_MESSAGE['start'])[_0x17c31e(0x137)](HELP_FOOTER_MESSAGE)[_0x17c31e(0x13b)](_0x12ca4e[_0x17c31e(0x135)])['demandCommand']()['recommendCommands']()['strict']()[_0x17c31e(0x13e)](_0x12ca4e[_0x17c31e(0x139)]);},exports[a18_0x163930(0x140)]=function(_0x4efc05){};
@@ -1 +1 @@
1
- function a19_0x301b(_0x3387c3,_0x2ad647){const _0x168098=a19_0x1680();return a19_0x301b=function(_0x301bfe,_0xdf09f2){_0x301bfe=_0x301bfe-0x7a;let _0x119ca8=_0x168098[_0x301bfe];return _0x119ca8;},a19_0x301b(_0x3387c3,_0x2ad647);}const a19_0x18ba6c=a19_0x301b;(function(_0x18dc8f,_0x3c8c6c){const _0x218fcc=a19_0x301b,_0x556e6f=_0x18dc8f();while(!![]){try{const _0x189388=-parseInt(_0x218fcc(0xcd))/0x1+parseInt(_0x218fcc(0xbc))/0x2+-parseInt(_0x218fcc(0x9f))/0x3+parseInt(_0x218fcc(0xc1))/0x4+-parseInt(_0x218fcc(0xb7))/0x5+parseInt(_0x218fcc(0xae))/0x6*(-parseInt(_0x218fcc(0xa2))/0x7)+parseInt(_0x218fcc(0xa1))/0x8;if(_0x189388===_0x3c8c6c)break;else _0x556e6f['push'](_0x556e6f['shift']());}catch(_0x14b53b){_0x556e6f['push'](_0x556e6f['shift']());}}}(a19_0x1680,0x58294));function a19_0x1680(){const _0xcf8bf6=['ERROR','invalid-grid-id','clusterRegion','clusterName','WebSocket','type','gridId','error','usage','../../utils/gridComponents','460866ENXMeN','skip-tls-cert-verify','../../utils/createk8sClient','Zqipt','knfJQ','addListeners','GGJPa','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1789800ODYjnB','../../utils/utilityMethods','body','password','erXAx','64462mpTYjm','reconnecting-websocket','Starting\x20grid\x20','JrUqq','zAJxh','2414264cRElxm','start','../../config/constants','handler','start-grid-called','help','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','CXbnY','stack','gwRPm','bstackUsername','options','4027XsdiFB','../../cloudproviders/utils','MAKnJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','PUSxf','readFileSync','../../utils/webSocketUtils','region','vvgFA','user','desc','statusCode','argv','xPEvf','shCEL','Skip\x20insecure\x20cert\x20verification.','gQSfO','INFO','tkEff','stringify','existsSync','default','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','description','replace','name','exit','lsPuE','rtiuH','boolean','grid','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','<UsernamePlaceholder>','skipTlsCertVerify','cloudProvider','<PasswordPlaceholder>','username','Browserstack','connectionTimeout','BCXEN','info','Start\x20an\x20existing\x20Automation\x20grid.','parse','2063499GGJUrF','epilogue','11731440lnKXdf','63mdSjsz','UuHbo'];a19_0x1680=function(){return _0xcf8bf6;};return a19_0x1680();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x18ba6c(0xbd)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x18ba6c(0xc3)),{logger}=require(a19_0x18ba6c(0xb5)),{getCredentialsPath,getGridDetails}=require(a19_0x18ba6c(0xb8)),{scaleUpHubDeployment}=require(a19_0x18ba6c(0xad)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x18ba6c(0x7a)),{createK8sClient}=require(a19_0x18ba6c(0xb0)),{getCloudProviderObject}=require(a19_0x18ba6c(0xce));exports['command']=a19_0x18ba6c(0x92),exports[a19_0x18ba6c(0x7e)]=a19_0x18ba6c(0x9d),exports['builder']=function(_0x1e8afc){const _0x2ea106=a19_0x18ba6c,_0x30f732={};_0x30f732[_0x2ea106(0x82)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x30f732['iwPWI']='string',_0x30f732[_0x2ea106(0xbf)]=_0x2ea106(0x83),_0x30f732[_0x2ea106(0xc0)]=_0x2ea106(0x91),_0x30f732[_0x2ea106(0x84)]=_0x2ea106(0xc6);const _0x400d30=_0x30f732,_0x194740={};_0x194740[_0x2ea106(0x8b)]=_0x400d30[_0x2ea106(0x82)],_0x194740[_0x2ea106(0xa9)]=_0x400d30['iwPWI'];const _0xbe9a73={};_0xbe9a73['description']=_0x400d30[_0x2ea106(0xbf)],_0xbe9a73[_0x2ea106(0xa9)]=_0x400d30['zAJxh'],_0xbe9a73[_0x2ea106(0x89)]=![];const _0x2e676d={};return _0x2e676d['grid-id']=_0x194740,_0x2e676d[_0x2ea106(0xaf)]=_0xbe9a73,_0x1e8afc[_0x2ea106(0xac)](HELP_HEADER_MESSAGE[_0x2ea106(0xc2)])[_0x2ea106(0xa0)](HELP_FOOTER_MESSAGE)[_0x2ea106(0xcc)](_0x2e676d)['help'](_0x400d30['gQSfO'])[_0x2ea106(0x80)];},exports[a19_0x18ba6c(0xc4)]=async function(_0x6c04ec){const _0x5a1cf0=a19_0x18ba6c,_0x1f3367={'rtiuH':_0x5a1cf0(0x93),'MAKnJ':function(_0x40c6d2){return _0x40c6d2();},'vvgFA':_0x5a1cf0(0x8a),'xPEvf':function(_0x3ffe36,_0x3e6dcf,_0x4e32a5,_0x48dcbc,_0x3280a9,_0x30f6a0,_0x4e46a1){return _0x3ffe36(_0x3e6dcf,_0x4e32a5,_0x48dcbc,_0x3280a9,_0x30f6a0,_0x4e46a1);},'knfJQ':_0x5a1cf0(0xc5),'tkEff':'init-not-called','nTxQd':_0x5a1cf0(0x94),'erXAx':_0x5a1cf0(0x97),'CXbnY':'Adding\x20Websocket\x20listeners','BCXEN':function(_0x3c0621,_0x4eb1a0,_0x4cd3dd,_0x29481f){return _0x3c0621(_0x4eb1a0,_0x4cd3dd,_0x29481f);},'Zqipt':function(_0x5ad6a5,_0x2e497c,_0x372b77){return _0x5ad6a5(_0x2e497c,_0x372b77);},'DjCiy':function(_0x33dc98,_0x17cd81,_0x5c1aba){return _0x33dc98(_0x17cd81,_0x5c1aba);},'lvEjh':'Grid\x20started','PUSxf':function(_0x30b117,_0x227922){return _0x30b117===_0x227922;},'BARai':_0x5a1cf0(0xd0),'lsPuE':function(_0x546a24,_0x4ac12f,_0x14c87a,_0x562ff4,_0x57620a,_0x39b1f6,_0x47b508){return _0x546a24(_0x4ac12f,_0x14c87a,_0x562ff4,_0x57620a,_0x39b1f6,_0x47b508);},'UuHbo':'unauthorised','wZuLE':function(_0xddcba5,_0x2f2b70){return _0xddcba5===_0x2f2b70;},'gwRPm':function(_0x48099b,_0xceeac4,_0x526c6c,_0x323ebd,_0x364327,_0x3fec63,_0x2cbc3c){return _0x48099b(_0xceeac4,_0x526c6c,_0x323ebd,_0x364327,_0x3fec63,_0x2cbc3c);},'GGJPa':_0x5a1cf0(0xa5),'PWpBu':'server-error'};let _0x5dc31f;try{!_0x6c04ec[_0x5a1cf0(0xaa)]&&(logger[_0x5a1cf0(0xab)](_0x1f3367[_0x5a1cf0(0x90)]),process['exit'](0x1));!fs[_0x5a1cf0(0x88)](_0x1f3367[_0x5a1cf0(0xcf)](getCredentialsPath))&&(logger[_0x5a1cf0(0xab)](_0x1f3367[_0x5a1cf0(0x7c)]),await _0x1f3367[_0x5a1cf0(0x81)](sendInstrumentationEvent,_0x6c04ec,_0x1f3367[_0x5a1cf0(0xb2)],messageTypes['ERROR'],_0x1f3367[_0x5a1cf0(0x86)],null,_0x6c04ec),process[_0x5a1cf0(0x8e)](0x1));logger[_0x5a1cf0(0x9c)](_0x5a1cf0(0xbe)+_0x6c04ec['gridId']),await _0x1f3367[_0x5a1cf0(0x81)](sendInstrumentationEvent,_0x6c04ec,_0x1f3367[_0x5a1cf0(0xb2)],messageTypes[_0x5a1cf0(0x85)],null,null,_0x6c04ec);const _0x396e8a=JSON[_0x5a1cf0(0x9e)](fs[_0x5a1cf0(0xd2)](_0x1f3367['MAKnJ'](getCredentialsPath)));global_registry[_0x5a1cf0(0xcb)]=_0x396e8a[_0x5a1cf0(0x99)][_0x5a1cf0(0x98)],global_registry['bstackAccesskey']=_0x396e8a[_0x5a1cf0(0x99)]['password'];const _0xdbc088=WS_ENDPOINT[_0x5a1cf0(0x8c)](_0x1f3367['nTxQd'],_0x396e8a[_0x5a1cf0(0x99)][_0x5a1cf0(0x98)])['replace'](_0x1f3367[_0x5a1cf0(0xbb)],_0x396e8a[_0x5a1cf0(0x99)][_0x5a1cf0(0xba)]),_0x3a7ad5={};_0x3a7ad5[_0x5a1cf0(0xa8)]=ws,_0x3a7ad5[_0x5a1cf0(0x9a)]=0x36ee80,_0x5dc31f=new ReconnectingWebSocket(_0xdbc088,[],_0x3a7ad5),logger['debug'](_0x1f3367[_0x5a1cf0(0xc8)]),webSocketUtils[_0x5a1cf0(0xb3)](_0x5dc31f,_0x6c04ec[_0x5a1cf0(0x7d)],_0x6c04ec['password']);const [_0x2f74df,_0x3f4ba7]=await _0x1f3367[_0x5a1cf0(0x9b)](getGridDetails,_0x396e8a['Browserstack']['username'],_0x396e8a[_0x5a1cf0(0x99)][_0x5a1cf0(0xba)],_0x6c04ec[_0x5a1cf0(0xaa)]);if(_0x3f4ba7){const _0x1c90b6=_0x3f4ba7['info'];global_registry['cloudProvider']=_0x1c90b6[_0x5a1cf0(0x96)],global_registry[_0x5a1cf0(0xa6)]=_0x1c90b6[_0x5a1cf0(0x7b)],global_registry[_0x5a1cf0(0xa7)]=_0x1c90b6[_0x5a1cf0(0xa7)];const _0x790d72=await _0x1f3367[_0x5a1cf0(0x81)](getCloudProviderObject,_0x1c90b6[_0x5a1cf0(0x96)],_0x1c90b6[_0x5a1cf0(0xa7)],_0x1c90b6[_0x5a1cf0(0x8d)],_0x5dc31f,webSocketUtils,_0x6c04ec),[_0x212377,_0x2c5dc4,_0x110166,_0x40c081,_0x19bd5c,_0x2999e7]=await _0x1f3367[_0x5a1cf0(0xb1)](createK8sClient,_0x790d72,_0x6c04ec[_0x5a1cf0(0x95)]);await _0x1f3367['DjCiy'](scaleUpHubDeployment,_0x2c5dc4,_0x1c90b6[_0x5a1cf0(0x8d)]),logger['info'](_0x1f3367['lvEjh']),process[_0x5a1cf0(0x8e)](0x0);}_0x1f3367[_0x5a1cf0(0xd1)](_0x2f74df[_0x5a1cf0(0x7f)],0x191)&&(logger[_0x5a1cf0(0xab)](_0x1f3367['BARai']),await _0x1f3367[_0x5a1cf0(0x8f)](sendInstrumentationEvent,_0x6c04ec,_0x1f3367[_0x5a1cf0(0xb2)],messageTypes['ERROR'],_0x1f3367[_0x5a1cf0(0xa3)],null,_0x6c04ec),process[_0x5a1cf0(0x8e)](0x1)),_0x1f3367['wZuLE'](_0x2f74df[_0x5a1cf0(0x7f)],0x190)&&(logger[_0x5a1cf0(0xab)](JSON[_0x5a1cf0(0x9e)](_0x2f74df[_0x5a1cf0(0xb9)])['message']),await _0x1f3367[_0x5a1cf0(0xca)](sendInstrumentationEvent,_0x6c04ec,_0x1f3367[_0x5a1cf0(0xb2)],messageTypes[_0x5a1cf0(0xa4)],_0x1f3367[_0x5a1cf0(0xb4)],null,_0x6c04ec),process[_0x5a1cf0(0x8e)](0x1)),logger[_0x5a1cf0(0xab)](_0x5a1cf0(0xb6)+JSON['stringify'](_0x2f74df)),await _0x1f3367[_0x5a1cf0(0x8f)](sendInstrumentationEvent,_0x6c04ec,_0x1f3367[_0x5a1cf0(0xb2)],messageTypes['ERROR'],_0x1f3367['PWpBu'],_0x2f74df,_0x6c04ec),process[_0x5a1cf0(0x8e)](0x1);}catch(_0x157fa0){const _0x3d415d=_0x5a1cf0(0xc7)+_0x157fa0+'\x20\x0a'+JSON[_0x5a1cf0(0x87)](_0x157fa0[_0x5a1cf0(0xc9)])+'\x20';logger[_0x5a1cf0(0xab)](_0x3d415d),process[_0x5a1cf0(0x8e)](0x1);}};
1
+ const a19_0x2d6e71=a19_0x2895;(function(_0x14efbc,_0x2a2cef){const _0x4d5ffa=a19_0x2895,_0x295757=_0x14efbc();while(!![]){try{const _0x58ad82=parseInt(_0x4d5ffa(0x18a))/0x1+parseInt(_0x4d5ffa(0x1ba))/0x2+parseInt(_0x4d5ffa(0x1c7))/0x3*(parseInt(_0x4d5ffa(0x1ad))/0x4)+-parseInt(_0x4d5ffa(0x1a0))/0x5*(parseInt(_0x4d5ffa(0x1d5))/0x6)+parseInt(_0x4d5ffa(0x1d3))/0x7*(-parseInt(_0x4d5ffa(0x19f))/0x8)+-parseInt(_0x4d5ffa(0x194))/0x9+parseInt(_0x4d5ffa(0x196))/0xa*(parseInt(_0x4d5ffa(0x1a4))/0xb);if(_0x58ad82===_0x2a2cef)break;else _0x295757['push'](_0x295757['shift']());}catch(_0x49e08a){_0x295757['push'](_0x295757['shift']());}}}(a19_0x3763,0x5d8fd));function a19_0x2895(_0x2b6f16,_0x280e5e){const _0x37634b=a19_0x3763();return a19_0x2895=function(_0x28952c,_0x109392){_0x28952c=_0x28952c-0x17f;let _0x1f0bdf=_0x37634b[_0x28952c];return _0x1f0bdf;},a19_0x2895(_0x2b6f16,_0x280e5e);}function a19_0x3763(){const _0x4ba80c=['user','type','grid','init-not-called','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','16HLPTHL','NvMZv','../../utils/utilityMethods','KjVAZ','KXuPo','ynuQE','string','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','CCsnI','MNUsY','message','qDjnc','1151206gVhovF','body','DrouV','desc','description','TLIoe','region','naULD','reconnecting-websocket','unauthorised','rrhun','skipTlsCertVerify','<PasswordPlaceholder>','188214UkZupe','ZainD','../../utils/gridComponents','HJIVA','bstackUsername','DjvXa','help','clusterRegion','connectionTimeout','DoGDe','Browserstack','info','14UOStuC','gridId','6bzqGew','hPNSV','WebSocket','invalid-grid-id','grid-id','debug','OCdNW','TARWn','INFO','existsSync','xzaLX','cloudProvider','cKduy','default','gQozI','builder','replace','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ERROR','stack','usage','463045uZnJSo','<UsernamePlaceholder>','Adding\x20Websocket\x20listeners','exit','boolean','error','../../config/constants','statusCode','iehWi','Start\x20an\x20existing\x20Automation\x20grid.','4424139FHmlor','clusterName','10ZOaVpZ','PVObd','start','Grid\x20started','username','addListeners','password','argv','KjTLj','450488sqXhzZ','3420845bkexaR','server-error','parse','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','4201901ojYbwR','bstackAccesskey','command','readFileSync'];a19_0x3763=function(){return _0x4ba80c;};return a19_0x3763();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2d6e71(0x1c2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2d6e71(0x190)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x2d6e71(0x1af)),{scaleUpHubDeployment}=require(a19_0x2d6e71(0x1c9)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x2d6e71(0x1a6)]=a19_0x2d6e71(0x1aa),exports[a19_0x2d6e71(0x1bd)]=a19_0x2d6e71(0x193),exports[a19_0x2d6e71(0x184)]=function(_0x6b9fb0){const _0x5094a6=a19_0x2d6e71,_0x535ee7={};_0x535ee7[_0x5094a6(0x1ae)]=_0x5094a6(0x186),_0x535ee7['TLIoe']=_0x5094a6(0x1b3),_0x535ee7[_0x5094a6(0x1d0)]='Skip\x20insecure\x20cert\x20verification.',_0x535ee7[_0x5094a6(0x197)]=_0x5094a6(0x18e),_0x535ee7[_0x5094a6(0x1b0)]=_0x5094a6(0x1cd);const _0x1629d9=_0x535ee7,_0x4d9721={};_0x4d9721[_0x5094a6(0x1be)]=_0x1629d9[_0x5094a6(0x1ae)],_0x4d9721[_0x5094a6(0x1a9)]=_0x1629d9[_0x5094a6(0x1bf)];const _0x108785={};_0x108785[_0x5094a6(0x1be)]=_0x1629d9[_0x5094a6(0x1d0)],_0x108785[_0x5094a6(0x1a9)]=_0x1629d9['PVObd'],_0x108785[_0x5094a6(0x182)]=![];const _0x5aa3c5={};return _0x5aa3c5[_0x5094a6(0x1d9)]=_0x4d9721,_0x5aa3c5[_0x5094a6(0x1b4)]=_0x108785,_0x6b9fb0[_0x5094a6(0x189)](HELP_HEADER_MESSAGE[_0x5094a6(0x198)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5aa3c5)[_0x5094a6(0x1cd)](_0x1629d9[_0x5094a6(0x1b0)])[_0x5094a6(0x19d)];},exports['handler']=async function(_0x205744){const _0x59f157=a19_0x2d6e71,_0x469727={'DjvXa':_0x59f157(0x1a3),'cKduy':function(_0x4c5d77){return _0x4c5d77();},'naULD':_0x59f157(0x1ac),'KjTLj':function(_0x2554bc,_0x3414f3,_0x59fd14,_0x319adb,_0x3a0dc2,_0x17b302,_0x40162a){return _0x2554bc(_0x3414f3,_0x59fd14,_0x319adb,_0x3a0dc2,_0x17b302,_0x40162a);},'MNUsY':'start-grid-called','ZainD':_0x59f157(0x1ab),'KXuPo':function(_0xb3bb2a,_0x5c9dcf,_0x67131d,_0x104de6,_0xb4ed33,_0xa26e92,_0x84d768){return _0xb3bb2a(_0x5c9dcf,_0x67131d,_0x104de6,_0xb4ed33,_0xa26e92,_0x84d768);},'OCdNW':function(_0x442ab0){return _0x442ab0();},'teGZl':_0x59f157(0x18b),'TARWn':_0x59f157(0x1c6),'qDjnc':_0x59f157(0x18c),'chORw':function(_0x4ddb71,_0x55c4da,_0x527354,_0x2e2daf){return _0x4ddb71(_0x55c4da,_0x527354,_0x2e2daf);},'gQozI':function(_0x5a4cca,_0x3f7cd5,_0x185f3e,_0x5db994,_0x13cb4e,_0x3294df,_0x1e0449){return _0x5a4cca(_0x3f7cd5,_0x185f3e,_0x5db994,_0x13cb4e,_0x3294df,_0x1e0449);},'ynuQE':function(_0x1e6ed7,_0x5c7f14,_0x54786b){return _0x1e6ed7(_0x5c7f14,_0x54786b);},'HJIVA':_0x59f157(0x199),'rrhun':function(_0x612406,_0x24b956){return _0x612406===_0x24b956;},'xzaLX':_0x59f157(0x1b5),'vjspm':function(_0x5e4e31,_0x55f6e1,_0x264245,_0x5d097d,_0x40c64a,_0x592474,_0x499bea){return _0x5e4e31(_0x55f6e1,_0x264245,_0x5d097d,_0x40c64a,_0x592474,_0x499bea);},'CCsnI':_0x59f157(0x1c3),'qeGaq':function(_0x48d775,_0xde958c){return _0x48d775===_0xde958c;},'DrouV':function(_0x353410,_0x142848,_0x1816a9,_0x5d5d57,_0x125cfe,_0x25a187,_0x58b75c){return _0x353410(_0x142848,_0x1816a9,_0x5d5d57,_0x125cfe,_0x25a187,_0x58b75c);},'CvJSc':_0x59f157(0x1d8),'hPNSV':function(_0xef0df5,_0x57428f,_0x3309fd,_0xe3bd62,_0xc289d9,_0x24efcb,_0x3f468b){return _0xef0df5(_0x57428f,_0x3309fd,_0xe3bd62,_0xc289d9,_0x24efcb,_0x3f468b);},'iehWi':_0x59f157(0x1a1)};let _0x21a8d0;try{!_0x205744[_0x59f157(0x1d4)]&&(logger[_0x59f157(0x18f)](_0x469727[_0x59f157(0x1cc)]),process[_0x59f157(0x18d)](0x1));!fs[_0x59f157(0x1de)](_0x469727[_0x59f157(0x181)](getCredentialsPath))&&(logger['error'](_0x469727[_0x59f157(0x1c1)]),await _0x469727[_0x59f157(0x19e)](sendInstrumentationEvent,_0x205744,_0x469727[_0x59f157(0x1b7)],messageTypes['ERROR'],_0x469727[_0x59f157(0x1c8)],null,_0x205744),process[_0x59f157(0x18d)](0x1));logger[_0x59f157(0x1d2)]('Starting\x20grid\x20'+_0x205744['gridId']),await _0x469727[_0x59f157(0x1b1)](sendInstrumentationEvent,_0x205744,_0x469727['MNUsY'],messageTypes[_0x59f157(0x1dd)],null,null,_0x205744);const _0x36fab7=JSON[_0x59f157(0x1a2)](fs[_0x59f157(0x1a7)](_0x469727[_0x59f157(0x1db)](getCredentialsPath)));global_registry[_0x59f157(0x1cb)]=_0x36fab7['Browserstack'][_0x59f157(0x19a)],global_registry[_0x59f157(0x1a5)]=_0x36fab7[_0x59f157(0x1d1)]['password'];const _0x3a7709=WS_ENDPOINT[_0x59f157(0x185)](_0x469727['teGZl'],_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19a)])[_0x59f157(0x185)](_0x469727[_0x59f157(0x1dc)],_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19c)]),_0x157c1a={};_0x157c1a[_0x59f157(0x1d7)]=ws,_0x157c1a[_0x59f157(0x1cf)]=0x36ee80,_0x21a8d0=new ReconnectingWebSocket(_0x3a7709,[],_0x157c1a),logger[_0x59f157(0x1da)](_0x469727[_0x59f157(0x1b9)]),webSocketUtils[_0x59f157(0x19b)](_0x21a8d0,_0x205744[_0x59f157(0x1a8)],_0x205744['password']);const [_0x2641de,_0x13c96e]=await _0x469727['chORw'](getGridDetails,_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19a)],_0x36fab7[_0x59f157(0x1d1)][_0x59f157(0x19c)],_0x205744[_0x59f157(0x1d4)]);if(_0x13c96e){const _0x392245=_0x13c96e[_0x59f157(0x1d2)];global_registry[_0x59f157(0x180)]=_0x392245[_0x59f157(0x180)],global_registry[_0x59f157(0x1ce)]=_0x392245[_0x59f157(0x1c0)],global_registry[_0x59f157(0x195)]=_0x392245['clusterName'];const _0x317527=await _0x469727[_0x59f157(0x183)](getCloudProviderObject,_0x392245[_0x59f157(0x180)],_0x392245['clusterName'],_0x392245['name'],_0x21a8d0,webSocketUtils,_0x205744),[_0x16ce55,_0x15f7c9,_0x821512,_0x57f7fe,_0x4ae0b7,_0x270c10]=await _0x469727[_0x59f157(0x1b2)](createK8sClient,_0x317527,_0x205744[_0x59f157(0x1c5)]);await _0x469727[_0x59f157(0x1b2)](scaleUpHubDeployment,_0x15f7c9,_0x392245['name']),logger[_0x59f157(0x1d2)](_0x469727[_0x59f157(0x1ca)]),process[_0x59f157(0x18d)](0x0);}_0x469727[_0x59f157(0x1c4)](_0x2641de[_0x59f157(0x191)],0x191)&&(logger[_0x59f157(0x18f)](_0x469727[_0x59f157(0x17f)]),await _0x469727['vjspm'](sendInstrumentationEvent,_0x205744,_0x469727['MNUsY'],messageTypes[_0x59f157(0x187)],_0x469727[_0x59f157(0x1b6)],null,_0x205744),process['exit'](0x1)),_0x469727['qeGaq'](_0x2641de[_0x59f157(0x191)],0x190)&&(logger[_0x59f157(0x18f)](JSON[_0x59f157(0x1a2)](_0x2641de[_0x59f157(0x1bb)])[_0x59f157(0x1b8)]),await _0x469727[_0x59f157(0x1bc)](sendInstrumentationEvent,_0x205744,_0x469727[_0x59f157(0x1b7)],messageTypes[_0x59f157(0x187)],_0x469727['CvJSc'],null,_0x205744),process[_0x59f157(0x18d)](0x1)),logger[_0x59f157(0x18f)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2641de)),await _0x469727[_0x59f157(0x1d6)](sendInstrumentationEvent,_0x205744,_0x469727[_0x59f157(0x1b7)],messageTypes['ERROR'],_0x469727[_0x59f157(0x192)],_0x2641de,_0x205744),process[_0x59f157(0x18d)](0x1);}catch(_0x495ef5){const _0x49ce9e='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x495ef5+'\x20\x0a'+JSON['stringify'](_0x495ef5[_0x59f157(0x188)])+'\x20';logger['error'](_0x49ce9e),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x15663d=a20_0x4788;(function(_0x23d53d,_0x52fd6c){const _0x5aee21=a20_0x4788,_0x59398d=_0x23d53d();while(!![]){try{const _0x45d695=parseInt(_0x5aee21(0xe7))/0x1+parseInt(_0x5aee21(0xdd))/0x2+parseInt(_0x5aee21(0xe6))/0x3*(parseInt(_0x5aee21(0xea))/0x4)+parseInt(_0x5aee21(0xe4))/0x5*(-parseInt(_0x5aee21(0xe3))/0x6)+parseInt(_0x5aee21(0xe9))/0x7*(-parseInt(_0x5aee21(0xd5))/0x8)+-parseInt(_0x5aee21(0xe8))/0x9+-parseInt(_0x5aee21(0xda))/0xa*(-parseInt(_0x5aee21(0xe0))/0xb);if(_0x45d695===_0x52fd6c)break;else _0x59398d['push'](_0x59398d['shift']());}catch(_0x462f1f){_0x59398d['push'](_0x59398d['shift']());}}}(a20_0x3196,0x41ced));function a20_0x3196(){const _0x51d94e=['348312yJECqw','126148HwllpL','756513DXVeUw','7LQkqAj','4UbhTSL','stop_commands','HgSFw','stop','729552FjkoPd','help','Stop\x20a\x20running\x20Automation\x20grid.','recommendCommands','command','770twaACx','demandCommand','yybPF','146278IAxbmN','handler','strict','90002bThXJt','commandDir','../config/constants','42JKSmLV','357575MxqEZl','builder'];a20_0x3196=function(){return _0x51d94e;};return a20_0x3196();}function a20_0x4788(_0x25102d,_0x5730d3){const _0x3196ea=a20_0x3196();return a20_0x4788=function(_0x4788d2,_0x26bef8){_0x4788d2=_0x4788d2-0xd2;let _0xa6e0c3=_0x3196ea[_0x4788d2];return _0xa6e0c3;},a20_0x4788(_0x25102d,_0x5730d3);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x15663d(0xe2));exports[a20_0x15663d(0xd9)]=a20_0x15663d(0xd4),exports['desc']=a20_0x15663d(0xd7),exports[a20_0x15663d(0xe5)]=function(_0x4db16d){const _0xe51460=a20_0x15663d,_0x51beb6={};_0x51beb6[_0xe51460(0xd3)]=_0xe51460(0xd2),_0x51beb6[_0xe51460(0xdc)]=_0xe51460(0xd6);const _0x2b6ad5=_0x51beb6;return _0x4db16d['usage'](HELP_HEADER_MESSAGE[_0xe51460(0xd4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xe51460(0xe1)](_0x2b6ad5['HgSFw'])[_0xe51460(0xdb)]()[_0xe51460(0xd8)]()[_0xe51460(0xdf)]()[_0xe51460(0xd6)](_0x2b6ad5[_0xe51460(0xdc)]);},exports[a20_0x15663d(0xde)]=function(_0x9f7e1){};
1
+ function a20_0x594f(){const _0x511650=['builder','usage','20EGIyHx','329PsXNqU','4SwTDAE','desc','stop','Stop\x20a\x20running\x20Automation\x20grid.','handler','RwYqh','help','3556935AYjsuM','demandCommand','../config/constants','epilogue','527487ndrjcg','718sJShgY','commandDir','6431650MFAkHa','strict','12712458DjkDzs','7648ycrkzp','960702LwalVw','stop_commands','333kaUmQu'];a20_0x594f=function(){return _0x511650;};return a20_0x594f();}const a20_0x34b3a4=a20_0x2245;(function(_0x2f019e,_0x39c8f0){const _0x596bf2=a20_0x2245,_0x4c2483=_0x2f019e();while(!![]){try{const _0x6aaa05=parseInt(_0x596bf2(0xe0))/0x1*(-parseInt(_0x596bf2(0xf1))/0x2)+-parseInt(_0x596bf2(0xf0))/0x3*(parseInt(_0x596bf2(0xe5))/0x4)+parseInt(_0x596bf2(0xe3))/0x5*(parseInt(_0x596bf2(0xde))/0x6)+parseInt(_0x596bf2(0xe4))/0x7*(parseInt(_0x596bf2(0xdd))/0x8)+-parseInt(_0x596bf2(0xec))/0x9+-parseInt(_0x596bf2(0xda))/0xa+parseInt(_0x596bf2(0xdc))/0xb;if(_0x6aaa05===_0x39c8f0)break;else _0x4c2483['push'](_0x4c2483['shift']());}catch(_0x384066){_0x4c2483['push'](_0x4c2483['shift']());}}}(a20_0x594f,0x7bdba));function a20_0x2245(_0x40f4f6,_0x2534c6){const _0x594f27=a20_0x594f();return a20_0x2245=function(_0x224579,_0x4cf4d6){_0x224579=_0x224579-0xda;let _0x596d00=_0x594f27[_0x224579];return _0x596d00;},a20_0x2245(_0x40f4f6,_0x2534c6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x34b3a4(0xee));exports['command']='stop',exports[a20_0x34b3a4(0xe6)]=a20_0x34b3a4(0xe8),exports[a20_0x34b3a4(0xe1)]=function(_0x45fed9){const _0x2ad939=a20_0x34b3a4,_0x4f9ce3={};_0x4f9ce3['WworY']=_0x2ad939(0xdf),_0x4f9ce3[_0x2ad939(0xea)]=_0x2ad939(0xeb);const _0x4ee793=_0x4f9ce3;return _0x45fed9[_0x2ad939(0xe2)](HELP_HEADER_MESSAGE[_0x2ad939(0xe7)])[_0x2ad939(0xef)](HELP_FOOTER_MESSAGE)[_0x2ad939(0xf2)](_0x4ee793['WworY'])[_0x2ad939(0xed)]()['recommendCommands']()[_0x2ad939(0xdb)]()[_0x2ad939(0xeb)](_0x4ee793[_0x2ad939(0xea)]);},exports[a20_0x34b3a4(0xe9)]=function(_0x15efa6){};
@@ -1 +1 @@
1
- const a21_0x18db47=a21_0x414b;function a21_0x414b(_0x5bae41,_0x39a06e){const _0x4e6dab=a21_0x4e6d();return a21_0x414b=function(_0x414b93,_0x4818c6){_0x414b93=_0x414b93-0x141;let _0x189d7b=_0x4e6dab[_0x414b93];return _0x189d7b;},a21_0x414b(_0x5bae41,_0x39a06e);}function a21_0x4e6d(){const _0x16234f=['Browserstack','305yGjQQH','21444jrAfJY','../../utils/gridComponents','boolean','../../config/logger','replace','MaIqq','18MBdxmQ','reconnecting-websocket','description','body','TJhEl','invalid-grid-id','grid-id','OKmXc','type','Stopping\x20grid\x20','exit','statusCode','TJhWJ','hwgDW','../../config/constants','gridId','pdLPh','help','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','VOEHt','TYTtV','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YTkKi','name','options','info','ERROR','../../utils/instrumentationUtils','Grid\x20stoppped.','clusterName','rMcpK','cEeFh','Stop\x20a\x20running\x20Automation\x20grid.','existsSync','2506312hOcyRy','INFO','grid','stop','Xuqid','connectionTimeout','aUPwA','string','AtUQl','zuLog','addListeners','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','password','builder','init-not-called','MLjRc','6TcaSun','154484qWEWLE','WebSocket','980932iCUXGY','server-error','zFuRG','../../utils/webSocketUtils','2HwMlGb','bDWmT','region','skipTlsCertVerify','rqjFj','QJYxm','gbdzm','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','cloudProvider','<PasswordPlaceholder>','oSZoN','oAMiE','clusterRegion','2725422xgtYYV','unauthorised','603506hPQhhO','2804990bujdav','bstackUsername','username','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'];a21_0x4e6d=function(){return _0x16234f;};return a21_0x4e6d();}(function(_0x46da2a,_0x58be7b){const _0x1319d3=a21_0x414b,_0x3be9fe=_0x46da2a();while(!![]){try{const _0x572ab8=-parseInt(_0x1319d3(0x174))/0x1*(parseInt(_0x1319d3(0x163))/0x2)+-parseInt(_0x1319d3(0x15c))/0x3*(parseInt(_0x1319d3(0x15f))/0x4)+-parseInt(_0x1319d3(0x17a))/0x5*(-parseInt(_0x1319d3(0x17b))/0x6)+parseInt(_0x1319d3(0x172))/0x7+parseInt(_0x1319d3(0x14b))/0x8+parseInt(_0x1319d3(0x181))/0x9*(parseInt(_0x1319d3(0x175))/0xa)+-parseInt(_0x1319d3(0x15d))/0xb;if(_0x572ab8===_0x58be7b)break;else _0x3be9fe['push'](_0x3be9fe['shift']());}catch(_0x17314b){_0x3be9fe['push'](_0x3be9fe['shift']());}}}(a21_0x4e6d,0x5b37f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x18db47(0x182)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x18db47(0x18f)),{logger}=require(a21_0x18db47(0x17e)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x18db47(0x17c)),{sendInstrumentationEvent}=require(a21_0x18db47(0x144)),webSocketUtils=require(a21_0x18db47(0x162)),{createK8sClient}=require(a21_0x18db47(0x194)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a21_0x18db47(0x14d),exports['desc']=a21_0x18db47(0x149),exports[a21_0x18db47(0x159)]=function(_0x260879){const _0x234f3a=a21_0x18db47,_0x5456d6={};_0x5456d6[_0x234f3a(0x169)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x5456d6[_0x234f3a(0x14f)]=_0x234f3a(0x152),_0x5456d6[_0x234f3a(0x154)]='Skip\x20insecure\x20cert\x20verification.',_0x5456d6[_0x234f3a(0x164)]=_0x234f3a(0x17d),_0x5456d6[_0x234f3a(0x195)]=_0x234f3a(0x192);const _0x237c97=_0x5456d6,_0x20d831={};_0x20d831[_0x234f3a(0x183)]=_0x237c97['gbdzm'],_0x20d831[_0x234f3a(0x189)]=_0x237c97[_0x234f3a(0x14f)];const _0x1e7cec={};_0x1e7cec['description']=_0x237c97[_0x234f3a(0x154)],_0x1e7cec[_0x234f3a(0x189)]=_0x237c97[_0x234f3a(0x164)],_0x1e7cec['default']=![];const _0x442d5e={};return _0x442d5e[_0x234f3a(0x187)]=_0x20d831,_0x442d5e['skip-tls-cert-verify']=_0x1e7cec,_0x260879['usage'](HELP_HEADER_MESSAGE[_0x234f3a(0x14e)])[_0x234f3a(0x197)](HELP_FOOTER_MESSAGE)[_0x234f3a(0x141)](_0x442d5e)[_0x234f3a(0x192)](_0x237c97[_0x234f3a(0x195)])['argv'];},exports['handler']=async function(_0x3a948a){const _0x57047d=a21_0x18db47,_0x26d62f={'QJYxm':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','MaIqq':function(_0x2eef50){return _0x2eef50();},'oSZoN':_0x57047d(0x156),'OKmXc':function(_0x2b46e5,_0x36c8f9,_0xbebd6,_0x2706f6,_0x58b696,_0x4fc556,_0x479312){return _0x2b46e5(_0x36c8f9,_0xbebd6,_0x2706f6,_0x58b696,_0x4fc556,_0x479312);},'zFuRG':'stop-grid-called','hwgDW':_0x57047d(0x15a),'AtUQl':function(_0x48c521){return _0x48c521();},'pdLPh':'<UsernamePlaceholder>','TYTtV':_0x57047d(0x16e),'aUPwA':_0x57047d(0x193),'oAMiE':function(_0x3e4dbb,_0x199087,_0x4567e7,_0x2a9d05){return _0x3e4dbb(_0x199087,_0x4567e7,_0x2a9d05);},'YTkKi':function(_0xb8c791,_0x2fe2fe,_0x31e011,_0x5e7fc6,_0x3a151f,_0x42fa3e,_0x5c6192){return _0xb8c791(_0x2fe2fe,_0x31e011,_0x5e7fc6,_0x3a151f,_0x42fa3e,_0x5c6192);},'PWEFK':function(_0x47e30e,_0x273de0,_0x7a5f34){return _0x47e30e(_0x273de0,_0x7a5f34);},'rqjFj':function(_0x3ab81b,_0x235075,_0x535946){return _0x3ab81b(_0x235075,_0x535946);},'MLjRc':_0x57047d(0x145),'cEeFh':function(_0x26263c,_0x31ce77){return _0x26263c===_0x31ce77;},'xBDrG':_0x57047d(0x198),'rMcpK':function(_0x172f7a,_0x32a444,_0x31c7b6,_0x18def7,_0x1a3867,_0x338e86,_0x1c93d4){return _0x172f7a(_0x32a444,_0x31c7b6,_0x18def7,_0x1a3867,_0x338e86,_0x1c93d4);},'QKFvO':_0x57047d(0x173),'PmzwG':_0x57047d(0x186),'TJhEl':function(_0x2a464d,_0x5a7cf6,_0x1c0c97,_0x1a769e,_0x1114cd,_0xdd0850,_0x463791){return _0x2a464d(_0x5a7cf6,_0x1c0c97,_0x1a769e,_0x1114cd,_0xdd0850,_0x463791);},'TJhWJ':_0x57047d(0x160)};let _0x469ff7;try{!_0x3a948a[_0x57047d(0x190)]&&(logger['error'](_0x26d62f[_0x57047d(0x168)]),process['exit'](0x1));!fs[_0x57047d(0x14a)](_0x26d62f[_0x57047d(0x180)](getCredentialsPath))&&(logger[_0x57047d(0x16a)](_0x26d62f[_0x57047d(0x16f)]),await _0x26d62f[_0x57047d(0x188)](sendInstrumentationEvent,_0x3a948a,_0x26d62f[_0x57047d(0x161)],messageTypes['ERROR'],_0x26d62f[_0x57047d(0x18e)],null,_0x3a948a),process['exit'](0x1));logger[_0x57047d(0x142)](_0x57047d(0x18a)+_0x3a948a['gridId']),await _0x26d62f['OKmXc'](sendInstrumentationEvent,_0x3a948a,_0x26d62f[_0x57047d(0x161)],messageTypes[_0x57047d(0x14c)],null,null,_0x3a948a);const _0x8ee1fc=JSON[_0x57047d(0x157)](fs['readFileSync'](_0x26d62f[_0x57047d(0x153)](getCredentialsPath)));global_registry[_0x57047d(0x176)]=_0x8ee1fc[_0x57047d(0x179)][_0x57047d(0x177)],global_registry[_0x57047d(0x16c)]=_0x8ee1fc[_0x57047d(0x179)][_0x57047d(0x158)];const _0x303586=WS_ENDPOINT['replace'](_0x26d62f[_0x57047d(0x191)],_0x8ee1fc['Browserstack']['username'])[_0x57047d(0x17f)](_0x26d62f[_0x57047d(0x196)],_0x8ee1fc[_0x57047d(0x179)]['password']),_0x47d41b={};_0x47d41b[_0x57047d(0x15e)]=ws,_0x47d41b[_0x57047d(0x150)]=0x36ee80,_0x469ff7=new ReconnectingWebSocket(_0x303586,[],_0x47d41b),logger['debug'](_0x26d62f[_0x57047d(0x151)]),webSocketUtils[_0x57047d(0x155)](_0x469ff7,_0x3a948a['user'],_0x3a948a[_0x57047d(0x158)]);const [_0x1bc127,_0xb9c235]=await _0x26d62f[_0x57047d(0x170)](getGridDetails,_0x8ee1fc[_0x57047d(0x179)]['username'],_0x8ee1fc[_0x57047d(0x179)][_0x57047d(0x158)],_0x3a948a[_0x57047d(0x190)]);if(_0xb9c235){const _0x2a2f09=_0xb9c235[_0x57047d(0x142)];global_registry[_0x57047d(0x16d)]=_0x2a2f09[_0x57047d(0x16d)],global_registry[_0x57047d(0x171)]=_0x2a2f09[_0x57047d(0x165)],global_registry[_0x57047d(0x146)]=_0x2a2f09[_0x57047d(0x146)];const _0x2a9608=await _0x26d62f[_0x57047d(0x199)](getCloudProviderObject,_0x2a2f09[_0x57047d(0x16d)],_0x2a2f09[_0x57047d(0x146)],_0x2a2f09[_0x57047d(0x19a)],_0x469ff7,webSocketUtils,_0x3a948a),[_0x14d559,_0x8fd974,_0xf0bcb2,_0x146b39,_0x12ad47,_0x4521d3]=await _0x26d62f['PWEFK'](createK8sClient,_0x2a9608,_0x3a948a[_0x57047d(0x166)]);await _0x26d62f[_0x57047d(0x167)](scaleDownHubDeployment,_0x8fd974,_0x2a2f09[_0x57047d(0x19a)]),logger['info'](_0x26d62f[_0x57047d(0x15b)]),process['exit'](0x0);}_0x26d62f['cEeFh'](_0x1bc127[_0x57047d(0x18c)],0x191)&&(logger[_0x57047d(0x16a)](_0x26d62f['xBDrG']),await _0x26d62f[_0x57047d(0x147)](sendInstrumentationEvent,_0x3a948a,_0x26d62f[_0x57047d(0x161)],messageTypes[_0x57047d(0x143)],_0x26d62f['QKFvO'],null,_0x3a948a),process[_0x57047d(0x18b)](0x1)),_0x26d62f[_0x57047d(0x148)](_0x1bc127['statusCode'],0x190)&&(logger['error'](JSON['parse'](_0x1bc127[_0x57047d(0x184)])['message']),await _0x26d62f['YTkKi'](sendInstrumentationEvent,_0x3a948a,_0x26d62f['zFuRG'],messageTypes[_0x57047d(0x143)],_0x26d62f['PmzwG'],null,_0x3a948a),process[_0x57047d(0x18b)](0x1)),logger[_0x57047d(0x16a)](_0x57047d(0x16b)+JSON['stringify'](_0x1bc127)),await _0x26d62f[_0x57047d(0x185)](sendInstrumentationEvent,_0x3a948a,_0x26d62f[_0x57047d(0x161)],messageTypes[_0x57047d(0x143)],_0x26d62f[_0x57047d(0x18d)],_0x1bc127,_0x3a948a),process[_0x57047d(0x18b)](0x1);}catch(_0x5792d9){const _0x2989e6=_0x57047d(0x178)+_0x5792d9+'\x20\x0a'+JSON['stringify'](_0x5792d9['stack'])+'\x20';logger[_0x57047d(0x16a)](_0x2989e6),process['exit'](0x1);}};
1
+ const a21_0x3bf5bc=a21_0x111f;function a21_0x111f(_0x5cc024,_0x21d2f5){const _0xc8ea5f=a21_0xc8ea();return a21_0x111f=function(_0x111f8e,_0x80b9f9){_0x111f8e=_0x111f8e-0x1a7;let _0x3d05d7=_0xc8ea5f[_0x111f8e];return _0x3d05d7;},a21_0x111f(_0x5cc024,_0x21d2f5);}function a21_0xc8ea(){const _0x6685ac=['xMkBg','../../cloudproviders/utils','server-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','907497LEOYJF','NRVrI','type','stringify','debug','parse','IWPxO','unauthorised','5238226Bhxhph','password','8998ZvNUSC','bstackUsername','statusCode','epilogue','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','irgkX','skipTlsCertVerify','../../utils/utilityMethods','message','../../utils/instrumentationUtils','invalid-grid-id','argv','qlTvC','<UsernamePlaceholder>','tnZaG','FNRDO','usage','YVHuS','existsSync','uFHBy','Stopping\x20grid\x20','2870mRbEZG','options','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','87900YeFZBT','NmZQV','53346jmEyQQ','clusterName','cloudProvider','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','boolean','clusterRegion','stop-grid-called','description','aRgsY','help','IKllR','skip-tls-cert-verify','builder','gridId','afbWW','12BOZwpl','ERROR','exit','1407GsVhac','GiqOH','init-not-called','../../config/constants','MQfYr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','grid-id','stop','WebSocket','../../config/logger','972128XLHEyD','handler','Adding\x20Websocket\x20listeners','Browserstack','error','reconnecting-websocket','command','name','IXUht','addListeners','Stop\x20a\x20running\x20Automation\x20grid.','Grid\x20stoppped.','115XoIEDl','ORALP','string','uMLsA','LkPMI','5416aHOWsy','../../utils/webSocketUtils','user','wLjig'];a21_0xc8ea=function(){return _0x6685ac;};return a21_0xc8ea();}(function(_0x3ccefb,_0x171c47){const _0x4f62ad=a21_0x111f,_0x1002f1=_0x3ccefb();while(!![]){try{const _0x5e5f6d=-parseInt(_0x4f62ad(0x1c5))/0x1*(parseInt(_0x4f62ad(0x1b4))/0x2)+-parseInt(_0x4f62ad(0x1c8))/0x3*(-parseInt(_0x4f62ad(0x1e4))/0x4)+parseInt(_0x4f62ad(0x1df))/0x5*(-parseInt(_0x4f62ad(0x1b6))/0x6)+parseInt(_0x4f62ad(0x1f4))/0x7+parseInt(_0x4f62ad(0x1d3))/0x8+-parseInt(_0x4f62ad(0x1ec))/0x9+-parseInt(_0x4f62ad(0x1b0))/0xa*(parseInt(_0x4f62ad(0x1f6))/0xb);if(_0x5e5f6d===_0x171c47)break;else _0x1002f1['push'](_0x1002f1['shift']());}catch(_0x4a62e9){_0x1002f1['push'](_0x1002f1['shift']());}}}(a21_0xc8ea,0x6ac78));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3bf5bc(0x1d8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3bf5bc(0x1cb)),{logger}=require(a21_0x3bf5bc(0x1d2)),{getCredentialsPath,getGridDetails}=require(a21_0x3bf5bc(0x1fd)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x3bf5bc(0x1ff)),webSocketUtils=require(a21_0x3bf5bc(0x1e5)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x3bf5bc(0x1e9));exports[a21_0x3bf5bc(0x1d9)]='grid',exports['desc']=a21_0x3bf5bc(0x1dd),exports[a21_0x3bf5bc(0x1c2)]=function(_0x413f0f){const _0x1c01f9=a21_0x3bf5bc,_0x343c16={};_0x343c16[_0x1c01f9(0x1a9)]=_0x1c01f9(0x1b9),_0x343c16['uFHBy']=_0x1c01f9(0x1e1),_0x343c16[_0x1c01f9(0x1e0)]='Skip\x20insecure\x20cert\x20verification.',_0x343c16[_0x1c01f9(0x1be)]=_0x1c01f9(0x1ba),_0x343c16[_0x1c01f9(0x1e7)]='help';const _0x3b7040=_0x343c16,_0x5723bf={};_0x5723bf['description']=_0x3b7040[_0x1c01f9(0x1a9)],_0x5723bf[_0x1c01f9(0x1ee)]=_0x3b7040[_0x1c01f9(0x1ae)];const _0x32bc06={};_0x32bc06[_0x1c01f9(0x1bd)]=_0x3b7040[_0x1c01f9(0x1e0)],_0x32bc06[_0x1c01f9(0x1ee)]=_0x3b7040[_0x1c01f9(0x1be)],_0x32bc06['default']=![];const _0x3c71ec={};return _0x3c71ec[_0x1c01f9(0x1cf)]=_0x5723bf,_0x3c71ec[_0x1c01f9(0x1c1)]=_0x32bc06,_0x413f0f[_0x1c01f9(0x1ab)](HELP_HEADER_MESSAGE[_0x1c01f9(0x1d0)])[_0x1c01f9(0x1f9)](HELP_FOOTER_MESSAGE)[_0x1c01f9(0x1b1)](_0x3c71ec)[_0x1c01f9(0x1bf)](_0x3b7040['wLjig'])[_0x1c01f9(0x201)];},exports[a21_0x3bf5bc(0x1d4)]=async function(_0x1a1d39){const _0x258c66=a21_0x3bf5bc,_0x443abc={'NmZQV':_0x258c66(0x1fa),'YVHuS':function(_0x143034){return _0x143034();},'qlTvC':_0x258c66(0x1cd),'NRVrI':function(_0x5a0658,_0x4ae4d4,_0x26df66,_0x658e3a,_0xcdc096,_0xfc9bb1,_0x30a6d7){return _0x5a0658(_0x4ae4d4,_0x26df66,_0x658e3a,_0xcdc096,_0xfc9bb1,_0x30a6d7);},'IWPxO':_0x258c66(0x1bc),'LkPMI':_0x258c66(0x1ca),'irgkX':function(_0x2f31c,_0x2ff9bd,_0x9f582,_0x4cb080,_0x445d23,_0x1a6d2d,_0x358018){return _0x2f31c(_0x2ff9bd,_0x9f582,_0x4cb080,_0x445d23,_0x1a6d2d,_0x358018);},'GiqOH':function(_0x246005){return _0x246005();},'afbWW':_0x258c66(0x1a8),'xQgZc':'<PasswordPlaceholder>','uMLsA':_0x258c66(0x1d5),'HEjiv':function(_0x2a6177,_0x68a68f,_0x5d6a24,_0x13a00a){return _0x2a6177(_0x68a68f,_0x5d6a24,_0x13a00a);},'xMkBg':function(_0x57bc3d,_0x309a51,_0x317dd6){return _0x57bc3d(_0x309a51,_0x317dd6);},'cOJgo':_0x258c66(0x1de),'ipNTd':function(_0xfef393,_0x28ee44){return _0xfef393===_0x28ee44;},'CkfkL':_0x258c66(0x1b3),'IKllR':function(_0x8d1911,_0x4f7fe0,_0x59a1b7,_0x405fbb,_0x187c4d,_0x81bbc5,_0x29ae3f){return _0x8d1911(_0x4f7fe0,_0x59a1b7,_0x405fbb,_0x187c4d,_0x81bbc5,_0x29ae3f);},'MQfYr':_0x258c66(0x1f3),'oieCS':function(_0x2e9951,_0x435dd0){return _0x2e9951===_0x435dd0;},'IXUht':_0x258c66(0x200),'FNRDO':_0x258c66(0x1ea)};let _0x22a3f0;try{!_0x1a1d39[_0x258c66(0x1c3)]&&(logger[_0x258c66(0x1d7)](_0x443abc[_0x258c66(0x1b5)]),process[_0x258c66(0x1c7)](0x1));!fs[_0x258c66(0x1ad)](_0x443abc[_0x258c66(0x1ac)](getCredentialsPath))&&(logger[_0x258c66(0x1d7)](_0x443abc[_0x258c66(0x1a7)]),await _0x443abc[_0x258c66(0x1ed)](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes[_0x258c66(0x1c6)],_0x443abc[_0x258c66(0x1e3)],null,_0x1a1d39),process['exit'](0x1));logger[_0x258c66(0x1b2)](_0x258c66(0x1af)+_0x1a1d39[_0x258c66(0x1c3)]),await _0x443abc['irgkX'](sendInstrumentationEvent,_0x1a1d39,_0x443abc['IWPxO'],messageTypes['INFO'],null,null,_0x1a1d39);const _0x5860ef=JSON[_0x258c66(0x1f1)](fs['readFileSync'](_0x443abc[_0x258c66(0x1c9)](getCredentialsPath)));global_registry[_0x258c66(0x1f7)]=_0x5860ef['Browserstack'][_0x258c66(0x1ce)],global_registry['bstackAccesskey']=_0x5860ef[_0x258c66(0x1d6)][_0x258c66(0x1f5)];const _0x3d4932=WS_ENDPOINT['replace'](_0x443abc[_0x258c66(0x1c4)],_0x5860ef[_0x258c66(0x1d6)][_0x258c66(0x1ce)])['replace'](_0x443abc['xQgZc'],_0x5860ef[_0x258c66(0x1d6)][_0x258c66(0x1f5)]),_0x13f51d={};_0x13f51d[_0x258c66(0x1d1)]=ws,_0x13f51d['connectionTimeout']=0x36ee80,_0x22a3f0=new ReconnectingWebSocket(_0x3d4932,[],_0x13f51d),logger[_0x258c66(0x1f0)](_0x443abc[_0x258c66(0x1e2)]),webSocketUtils[_0x258c66(0x1dc)](_0x22a3f0,_0x1a1d39[_0x258c66(0x1e6)],_0x1a1d39[_0x258c66(0x1f5)]);const [_0x5e3d6b,_0x2ee0a9]=await _0x443abc['HEjiv'](getGridDetails,_0x5860ef['Browserstack']['username'],_0x5860ef['Browserstack']['password'],_0x1a1d39[_0x258c66(0x1c3)]);if(_0x2ee0a9){const _0x3e8b04=_0x2ee0a9[_0x258c66(0x1b2)];global_registry[_0x258c66(0x1b8)]=_0x3e8b04['cloudProvider'],global_registry[_0x258c66(0x1bb)]=_0x3e8b04['region'],global_registry['clusterName']=_0x3e8b04['clusterName'];const _0x3a7c1a=await _0x443abc[_0x258c66(0x1fb)](getCloudProviderObject,_0x3e8b04[_0x258c66(0x1b8)],_0x3e8b04[_0x258c66(0x1b7)],_0x3e8b04[_0x258c66(0x1da)],_0x22a3f0,webSocketUtils,_0x1a1d39),[_0x1e734e,_0x5b35d4,_0x5f116a,_0x526c77,_0x4b7ada,_0x55b0fc]=await _0x443abc[_0x258c66(0x1e8)](createK8sClient,_0x3a7c1a,_0x1a1d39[_0x258c66(0x1fc)]);await _0x443abc['xMkBg'](scaleDownHubDeployment,_0x5b35d4,_0x3e8b04[_0x258c66(0x1da)]),logger['info'](_0x443abc['cOJgo']),process[_0x258c66(0x1c7)](0x0);}_0x443abc['ipNTd'](_0x5e3d6b['statusCode'],0x191)&&(logger[_0x258c66(0x1d7)](_0x443abc['CkfkL']),await _0x443abc[_0x258c66(0x1c0)](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes[_0x258c66(0x1c6)],_0x443abc[_0x258c66(0x1cc)],null,_0x1a1d39),process['exit'](0x1)),_0x443abc['oieCS'](_0x5e3d6b[_0x258c66(0x1f8)],0x190)&&(logger['error'](JSON[_0x258c66(0x1f1)](_0x5e3d6b['body'])[_0x258c66(0x1fe)]),await _0x443abc['IKllR'](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes['ERROR'],_0x443abc[_0x258c66(0x1db)],null,_0x1a1d39),process[_0x258c66(0x1c7)](0x1)),logger[_0x258c66(0x1d7)](_0x258c66(0x1eb)+JSON[_0x258c66(0x1ef)](_0x5e3d6b)),await _0x443abc['IKllR'](sendInstrumentationEvent,_0x1a1d39,_0x443abc[_0x258c66(0x1f2)],messageTypes[_0x258c66(0x1c6)],_0x443abc[_0x258c66(0x1aa)],_0x5e3d6b,_0x1a1d39),process['exit'](0x1);}catch(_0x2a6a4d){const _0x4d33cc='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x2a6a4d+'\x20\x0a'+JSON[_0x258c66(0x1ef)](_0x2a6a4d['stack'])+'\x20';logger[_0x258c66(0x1d7)](_0x4d33cc),process[_0x258c66(0x1c7)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x377ffb=a22_0x12d5;(function(_0x3e19ea,_0x42e645){const _0x569c83=a22_0x12d5,_0x3e99c4=_0x3e19ea();while(!![]){try{const _0x54c289=-parseInt(_0x569c83(0x104))/0x1+parseInt(_0x569c83(0xe4))/0x2*(-parseInt(_0x569c83(0xee))/0x3)+parseInt(_0x569c83(0xd5))/0x4*(parseInt(_0x569c83(0xfb))/0x5)+parseInt(_0x569c83(0xf2))/0x6*(parseInt(_0x569c83(0xea))/0x7)+-parseInt(_0x569c83(0x11e))/0x8*(-parseInt(_0x569c83(0xc4))/0x9)+-parseInt(_0x569c83(0x11f))/0xa*(-parseInt(_0x569c83(0xfd))/0xb)+parseInt(_0x569c83(0xf0))/0xc;if(_0x54c289===_0x42e645)break;else _0x3e99c4['push'](_0x3e99c4['shift']());}catch(_0x2e2d08){_0x3e99c4['push'](_0x3e99c4['shift']());}}}(a22_0x4afc,0xf17e9),require(a22_0x377ffb(0x11b))[a22_0x377ffb(0xbc)](),exports[a22_0x377ffb(0xcf)]=process['env'][a22_0x377ffb(0xcf)]||a22_0x377ffb(0x108),exports['BS_API_URL']=process[a22_0x377ffb(0xd4)]['BS_API_URL']||a22_0x377ffb(0xc6),exports['AG_API_URL']=process[a22_0x377ffb(0xd4)][a22_0x377ffb(0xf6)]||'grid-api.browserstack.com',exports[a22_0x377ffb(0xcc)]=a22_0x377ffb(0xd8)+this[a22_0x377ffb(0xf6)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x377ffb(0xfa)]='credentials',exports[a22_0x377ffb(0xc1)]=a22_0x377ffb(0xf4),exports[a22_0x377ffb(0xec)]=a22_0x377ffb(0xef),exports[a22_0x377ffb(0xd3)]=a22_0x377ffb(0x115),exports['CLUSTER_DEP_STACK_NAME']=a22_0x377ffb(0x101),exports[a22_0x377ffb(0x116)]=a22_0x377ffb(0x10d),exports[a22_0x377ffb(0xc0)]=a22_0x377ffb(0xfc),exports['TURBOSCALE_DEPLOYMENT']=a22_0x377ffb(0x109),exports[a22_0x377ffb(0xbb)]=a22_0x377ffb(0xbd),exports[a22_0x377ffb(0xe6)]=a22_0x377ffb(0xeb),exports[a22_0x377ffb(0xff)]=[this['AWS'],this[a22_0x377ffb(0xbb)],this[a22_0x377ffb(0xe6)]]);function a22_0x4afc(){const _0x29a4d5=['AG_API_URL','BrowserStack-Automate-TurboScale','unknown','high-scale-grid-cluster','CP_CONFIG_FILE','5chzhLk','BSTACK-ATS-CLUSTER-HUB-HA','9097hTzojm','MessageDescription','ALL_SUPPORTED_CLOUD_PROVIDERS','RESOURCES','BSTACK-ATS-CLUSTER','root','TURBOSCALE_CUSTOM_TAGS','616975xzpqeN','TRIAL_GRID_URL','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','forEach','grid.browserstack.com','browserstack-turboscale-grid','CLI_ARGS_REGEX','stop','cliRunStarted','BSTACK-ATS-CLUSTER-AUTOSCALER','list','grid','browserstack:service','error','log','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','aws','CLUSTER_AUTOSCALER_STACK_NAME','Value','HELP_HEADER_MESSAGE','WARNING','browserstack:managedBy','dotenv','warning','pre_check','72uzthid','5470bKCUOn','RAW_ARGS_REGEX','create','AZURE','config','azure','grid-profile','delete','CLUSTER_HUB_HA_STACK_NAME','IAM_USER_NAME','connect','COMMON_HST_TAGS','1316016nwSAUr','SUPPORTED_CLOUD_PROVIDERS','api.browserstack.com','GRID_URL','messageTypes','INFO','LINK_MESSAGE','WS_EVENTS','WS_ENDPOINT','SUCCESS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','DASHBOARD_ENDPOINT','Key','global_registry','HELP_FOOTER_MESSAGE','AWS','env','313420uUHpqV','LOG','us-east-1','wss://','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','resourceInfo','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','success','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','configure','push','DEFAULT_CLUSTER_DETAILS','BrowserStack','CLUSTER','gridProfile','2362VsPbuJ','REGION','GCP','HST_CLUSTER_TAGS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','2507883BTEkGC','gcp','DEFAULT_GRID_NAME','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','1713OCLjxO','high-scale-grid','905736bgthte','pre-check','6HyNdCU','split','BrowserStackIAMUser','UNKNOWN'];a22_0x4afc=function(){return _0x29a4d5;};return a22_0x4afc();}const a22_0x31f45e={};a22_0x31f45e[a22_0x377ffb(0xd0)]=a22_0x377ffb(0x11a),a22_0x31f45e[a22_0x377ffb(0x117)]='BrowserStack';const a22_0x27f895={};a22_0x27f895[a22_0x377ffb(0xd0)]=a22_0x377ffb(0x110),a22_0x27f895[a22_0x377ffb(0x117)]=a22_0x377ffb(0xf7);const common_hst_tags_list=[a22_0x31f45e,a22_0x27f895];if(process[a22_0x377ffb(0xd4)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process['env'][a22_0x377ffb(0x103)][a22_0x377ffb(0xf3)](',');parsedTags[a22_0x377ffb(0x107)](_0x259e17=>{const _0x582f43=a22_0x377ffb,_0x351053=_0x259e17[_0x582f43(0xf3)](':'),_0x6d729c={};_0x6d729c[_0x582f43(0xd0)]=_0x351053[0x0],_0x6d729c[_0x582f43(0x117)]=_0x351053[0x1],common_hst_tags_list[_0x582f43(0xdf)](_0x6d729c);});}exports[a22_0x377ffb(0xc3)]=common_hst_tags_list;const a22_0x3b544d={};a22_0x3b544d[a22_0x377ffb(0x11a)]=a22_0x377ffb(0xe1),a22_0x3b544d['browserstack:service']=a22_0x377ffb(0xf7),exports[a22_0x377ffb(0xe7)]=a22_0x3b544d,exports[a22_0x377ffb(0xc5)]=[this['AWS']];const a22_0x561036={};a22_0x561036[a22_0x377ffb(0xd6)]=a22_0x377ffb(0x112),a22_0x561036[a22_0x377ffb(0x100)]=a22_0x377ffb(0xda),a22_0x561036[a22_0x377ffb(0xc7)]='gridUrl',a22_0x561036['CLI_RUN_STARTED']=a22_0x377ffb(0x10c),a22_0x561036['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x377ffb(0xcb)]=a22_0x561036,exports[a22_0x377ffb(0xd1)]={},exports[a22_0x377ffb(0xca)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x46f1e2={};function a22_0x12d5(_0x3065b7,_0x24602b){const _0x4afcf2=a22_0x4afc();return a22_0x12d5=function(_0x12d56b,_0x46d477){_0x12d56b=_0x12d56b-0xba;let _0x30ffda=_0x4afcf2[_0x12d56b];return _0x30ffda;},a22_0x12d5(_0x3065b7,_0x24602b);}a22_0x46f1e2[a22_0x377ffb(0x102)]=a22_0x377ffb(0xce)+this[a22_0x377ffb(0xca)],a22_0x46f1e2['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x377ffb(0xca)],a22_0x46f1e2[a22_0x377ffb(0xde)]=a22_0x377ffb(0xdb)+this[a22_0x377ffb(0xca)],a22_0x46f1e2[a22_0x377ffb(0xba)]=a22_0x377ffb(0xe9)+this[a22_0x377ffb(0xca)],a22_0x46f1e2[a22_0x377ffb(0x10e)]={},a22_0x46f1e2[a22_0x377ffb(0xbf)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x377ffb(0xca)],a22_0x46f1e2[a22_0x377ffb(0xc2)]=a22_0x377ffb(0xd9)+this[a22_0x377ffb(0xca)],a22_0x46f1e2['start']=a22_0x377ffb(0x106)+this['LINK_MESSAGE'],a22_0x46f1e2[a22_0x377ffb(0x10b)]=a22_0x377ffb(0xdd)+this[a22_0x377ffb(0xca)],a22_0x46f1e2[a22_0x377ffb(0x11d)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x377ffb(0xca)],a22_0x46f1e2[a22_0x377ffb(0x10e)][a22_0x377ffb(0x102)]=a22_0x377ffb(0xe8)+this['LINK_MESSAGE'],a22_0x46f1e2[a22_0x377ffb(0x10e)][a22_0x377ffb(0x10f)]=a22_0x377ffb(0x113)+this[a22_0x377ffb(0xca)],a22_0x46f1e2[a22_0x377ffb(0x10e)][a22_0x377ffb(0xe3)]=a22_0x377ffb(0x114)+this[a22_0x377ffb(0xca)],exports[a22_0x377ffb(0x118)]=a22_0x46f1e2,exports[a22_0x377ffb(0xd2)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x580025={};a22_0x580025[a22_0x377ffb(0xcd)]=a22_0x377ffb(0xdc),a22_0x580025['ERROR']=a22_0x377ffb(0x111),a22_0x580025[a22_0x377ffb(0xc9)]='info',a22_0x580025[a22_0x377ffb(0x119)]=a22_0x377ffb(0x11c),a22_0x580025[a22_0x377ffb(0xf5)]=a22_0x377ffb(0xf8),a22_0x580025['NULL']=null,exports[a22_0x377ffb(0xc8)]=a22_0x580025,exports[a22_0x377ffb(0x10a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x377ffb(0x120)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0x3d14b9={};a22_0x3d14b9[a22_0x377ffb(0xbe)]=a22_0x377ffb(0xed);const a22_0xb32001={};a22_0xb32001[a22_0x377ffb(0xf1)]=a22_0x3d14b9,exports[a22_0x377ffb(0xfe)]=a22_0xb32001,exports[a22_0x377ffb(0x105)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x3e32c0={};a22_0x3e32c0[a22_0x377ffb(0xe2)]=a22_0x377ffb(0xf9),a22_0x3e32c0['CLOUD_PROVIDER']=a22_0x377ffb(0x115),a22_0x3e32c0[a22_0x377ffb(0xe5)]=a22_0x377ffb(0xd7),exports[a22_0x377ffb(0xe0)]=a22_0x3e32c0;
1
+ const a22_0x2fa143=a22_0x56cc;(function(_0x4543ed,_0x580231){const _0x5c5c84=a22_0x56cc,_0x5bd968=_0x4543ed();while(!![]){try{const _0x320d16=parseInt(_0x5c5c84(0x174))/0x1*(-parseInt(_0x5c5c84(0x196))/0x2)+-parseInt(_0x5c5c84(0x1b5))/0x3*(parseInt(_0x5c5c84(0x1a0))/0x4)+-parseInt(_0x5c5c84(0x1b7))/0x5+-parseInt(_0x5c5c84(0x18c))/0x6+-parseInt(_0x5c5c84(0x186))/0x7+parseInt(_0x5c5c84(0x15f))/0x8*(-parseInt(_0x5c5c84(0x15b))/0x9)+parseInt(_0x5c5c84(0x1a8))/0xa;if(_0x320d16===_0x580231)break;else _0x5bd968['push'](_0x5bd968['shift']());}catch(_0x17b06c){_0x5bd968['push'](_0x5bd968['shift']());}}}(a22_0x5c17,0x59f7f),require(a22_0x2fa143(0x198))[a22_0x2fa143(0x164)](),exports[a22_0x2fa143(0x18a)]=process['env']['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports[a22_0x2fa143(0x1a3)]=process[a22_0x2fa143(0x1a9)]['BS_API_URL']||a22_0x2fa143(0x170),exports['AG_API_URL']=process[a22_0x2fa143(0x1a9)][a22_0x2fa143(0x161)]||a22_0x2fa143(0x19a),exports[a22_0x2fa143(0x1bd)]=a22_0x2fa143(0x180)+this[a22_0x2fa143(0x161)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x2fa143(0x195)]=a22_0x2fa143(0x1a4),exports[a22_0x2fa143(0x187)]=a22_0x2fa143(0x173),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports['AWS']=a22_0x2fa143(0x190),exports[a22_0x2fa143(0x16c)]=a22_0x2fa143(0x17b),exports[a22_0x2fa143(0x168)]=a22_0x2fa143(0x1bb),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x2fa143(0x18e)]='browserstack-turboscale-grid',exports['AZURE']=a22_0x2fa143(0x191),exports[a22_0x2fa143(0x167)]=a22_0x2fa143(0x178),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x2fa143(0x17a)],this[a22_0x2fa143(0x167)]]);const a22_0xc85d8a={};a22_0xc85d8a[a22_0x2fa143(0x194)]=a22_0x2fa143(0x1ad),a22_0xc85d8a[a22_0x2fa143(0x16b)]=a22_0x2fa143(0x1ac);const a22_0x25b5dd={};a22_0x25b5dd[a22_0x2fa143(0x194)]='browserstack:service',a22_0x25b5dd[a22_0x2fa143(0x16b)]=a22_0x2fa143(0x1a2);const common_hst_tags_list=[a22_0xc85d8a,a22_0x25b5dd];if(process[a22_0x2fa143(0x1a9)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x2fa143(0x1a9)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x2fa143(0x1b4)](',');parsedTags[a22_0x2fa143(0x181)](_0x12e797=>{const _0xeccc34=a22_0x2fa143,_0x10e4fa=_0x12e797['split'](':'),_0x436868={};_0x436868[_0xeccc34(0x194)]=_0x10e4fa[0x0],_0x436868[_0xeccc34(0x16b)]=_0x10e4fa[0x1],common_hst_tags_list['push'](_0x436868);});}exports[a22_0x2fa143(0x193)]=common_hst_tags_list;function a22_0x5c17(){const _0x428ba8=['split','159cbdEdK','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','2590660zzsbIh','high-scale-grid-cluster','list','CLI_ARGS_REGEX','BSTACK-ATS-CLUSTER-AUTOSCALER','NULL','WS_ENDPOINT','configure','[REDACTED]','234iJLOun','grid-profile','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','global_registry','224344IBFcwm','browserstack:service','AG_API_URL','MessageDescription','GRID_URL','config','gridUrl','AWS','GCP','CLUSTER_AUTOSCALER_STACK_NAME','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','Value','CLUSTER_DEP_STACK_NAME','pre-check','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','api.browserstack.com','grid','CLUSTER','BrowserStackIAMUser','17BeOgzC','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','gcp','LOG','AZURE','BSTACK-ATS-CLUSTER','WARNING','warning','ERROR','stop','wss://','forEach','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','cliRunFinished','CLI_RUN_STARTED','CLOUD_PROVIDER','2935695HtIgBS','IAM_USER_NAME','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','DASHBOARD_ENDPOINT','REGION','1288734CQXReT','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','TURBOSCALE_DEPLOYMENT','CLI_RUN_FINISHED','aws','azure','HELP_HEADER_MESSAGE','COMMON_HST_TAGS','Key','CP_CONFIG_FILE','34022rOTuXD','unknown','dotenv','messageTypes','grid-api.browserstack.com','TRIAL_GRID_URL','pre_check','success','HST_CLUSTER_TAGS','root','19540kpebAc','RESOURCES','BrowserStack-Automate-TurboScale','BS_API_URL','credentials','delete','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','27980270cBDfiT','env','create','connect','BrowserStack','browserstack:managedBy','cliRunStarted','LINK_MESSAGE','init','UNKNOWN','error','info'];a22_0x5c17=function(){return _0x428ba8;};return a22_0x5c17();}const a22_0x52c711={};a22_0x52c711['browserstack:managedBy']=a22_0x2fa143(0x1ac),a22_0x52c711[a22_0x2fa143(0x160)]=a22_0x2fa143(0x1a2),exports[a22_0x2fa143(0x19e)]=a22_0x52c711,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x2fa143(0x166)]];const a22_0x57f8bf={};function a22_0x56cc(_0x5db415,_0x1ca93f){const _0x5c172d=a22_0x5c17();return a22_0x56cc=function(_0x56ccb1,_0x56c631){_0x56ccb1=_0x56ccb1-0x15a;let _0x423562=_0x5c172d[_0x56ccb1];return _0x423562;},a22_0x56cc(_0x5db415,_0x1ca93f);}a22_0x57f8bf[a22_0x2fa143(0x179)]='log',a22_0x57f8bf[a22_0x2fa143(0x1a1)]='resourceInfo',a22_0x57f8bf[a22_0x2fa143(0x163)]=a22_0x2fa143(0x165),a22_0x57f8bf[a22_0x2fa143(0x184)]=a22_0x2fa143(0x1ae),a22_0x57f8bf[a22_0x2fa143(0x18f)]=a22_0x2fa143(0x183),exports['WS_EVENTS']=a22_0x57f8bf,exports[a22_0x2fa143(0x15e)]={},exports['LINK_MESSAGE']=a22_0x2fa143(0x16f);const a22_0x30a171={};a22_0x30a171[a22_0x2fa143(0x19f)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1b0)]=a22_0x2fa143(0x16e)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1be)]=a22_0x2fa143(0x1a7)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1aa)]=a22_0x2fa143(0x18d)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1b9)]={},a22_0x30a171[a22_0x2fa143(0x1a5)]=a22_0x2fa143(0x189)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1ab)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x2fa143(0x1af)],a22_0x30a171['start']=a22_0x2fa143(0x15d)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x17f)]=a22_0x2fa143(0x175)+this['LINK_MESSAGE'],a22_0x30a171[a22_0x2fa143(0x19c)]=a22_0x2fa143(0x182)+this['LINK_MESSAGE'],a22_0x30a171[a22_0x2fa143(0x1b9)][a22_0x2fa143(0x19f)]=a22_0x2fa143(0x1b6)+this['LINK_MESSAGE'],a22_0x30a171[a22_0x2fa143(0x1b9)][a22_0x2fa143(0x171)]=a22_0x2fa143(0x176)+this[a22_0x2fa143(0x1af)],a22_0x30a171[a22_0x2fa143(0x1b9)]['gridProfile']=a22_0x2fa143(0x16a)+this['LINK_MESSAGE'],exports[a22_0x2fa143(0x192)]=a22_0x30a171,exports['HELP_FOOTER_MESSAGE']=a22_0x2fa143(0x188);const a22_0x2b3052={};a22_0x2b3052['SUCCESS']=a22_0x2fa143(0x19d),a22_0x2b3052[a22_0x2fa143(0x17e)]=a22_0x2fa143(0x1b2),a22_0x2b3052['INFO']=a22_0x2fa143(0x1b3),a22_0x2b3052[a22_0x2fa143(0x17c)]=a22_0x2fa143(0x17d),a22_0x2b3052[a22_0x2fa143(0x1b1)]=a22_0x2fa143(0x197),a22_0x2b3052[a22_0x2fa143(0x1bc)]=null,exports[a22_0x2fa143(0x199)]=a22_0x2b3052,exports[a22_0x2fa143(0x1ba)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2fa143(0x1a6)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x2fa143(0x15a);const a22_0x5c0080={};a22_0x5c0080[a22_0x2fa143(0x15c)]=a22_0x2fa143(0x177);const a22_0x1327fc={};a22_0x1327fc[a22_0x2fa143(0x16d)]=a22_0x5c0080,exports[a22_0x2fa143(0x162)]=a22_0x1327fc,exports[a22_0x2fa143(0x19b)]=a22_0x2fa143(0x169);const a22_0x42b7e1={};a22_0x42b7e1[a22_0x2fa143(0x172)]=a22_0x2fa143(0x1b8),a22_0x42b7e1[a22_0x2fa143(0x185)]='aws',a22_0x42b7e1[a22_0x2fa143(0x18b)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x42b7e1;
@@ -1 +1 @@
1
- const a23_0x5b45bb=a23_0x202c;(function(_0x2289b7,_0x5eb23f){const _0x5b4e67=a23_0x202c,_0xffc84f=_0x2289b7();while(!![]){try{const _0x1b83e7=-parseInt(_0x5b4e67(0xd5))/0x1*(-parseInt(_0x5b4e67(0xcb))/0x2)+-parseInt(_0x5b4e67(0xc4))/0x3+parseInt(_0x5b4e67(0xd2))/0x4*(-parseInt(_0x5b4e67(0xd0))/0x5)+parseInt(_0x5b4e67(0xd4))/0x6*(-parseInt(_0x5b4e67(0xd7))/0x7)+-parseInt(_0x5b4e67(0xbf))/0x8*(parseInt(_0x5b4e67(0xcc))/0x9)+parseInt(_0x5b4e67(0xbc))/0xa+-parseInt(_0x5b4e67(0xb8))/0xb*(-parseInt(_0x5b4e67(0xc5))/0xc);if(_0x1b83e7===_0x5eb23f)break;else _0xffc84f['push'](_0xffc84f['shift']());}catch(_0x25f3fc){_0xffc84f['push'](_0xffc84f['shift']());}}}(a23_0x397d,0xa0abc));const winston=require(a23_0x5b45bb(0xb9)),fs=require('fs'),path=require('path'),logDir=a23_0x5b45bb(0xd1);function a23_0x397d(){const _0x2d1052=['9oRJpaj','transports','combine','existsSync','5CmLINP','log','4936588GMHvmb','format','25332ijnwQl','19855wIVJcw','message','315dolIKs','name','1441UctUGb','winston','timestamp','createLogger','383160EtfVMZ','console.info','join','1927096dPSoVe','events.log','Console','YYYY-MM-DD\x20HH:mm:ss','File','3881406fgVGCs','322356eOfKtk','colorize','debug','mkdirSync','logger','level','6OBrYVw'];a23_0x397d=function(){return _0x2d1052;};return a23_0x397d();}!fs[a23_0x5b45bb(0xcf)](logDir)&&fs[a23_0x5b45bb(0xc8)](logDir);const a23_0xd5773={};a23_0xd5773[a23_0x5b45bb(0xd3)]=a23_0x5b45bb(0xc2);const a23_0x46f79e={};a23_0x46f79e[a23_0x5b45bb(0xca)]=!![];const a23_0x38013b={};function a23_0x202c(_0x1eb2c4,_0x27cef1){const _0x397d29=a23_0x397d();return a23_0x202c=function(_0x202ce7,_0x315974){_0x202ce7=_0x202ce7-0xb7;let _0x464eb1=_0x397d29[_0x202ce7];return _0x464eb1;},a23_0x202c(_0x1eb2c4,_0x27cef1);}a23_0x38013b[a23_0x5b45bb(0xb7)]=a23_0x5b45bb(0xbd),exports[a23_0x5b45bb(0xc9)]=new winston[(a23_0x5b45bb(0xbb))]({'format':winston[a23_0x5b45bb(0xd3)][a23_0x5b45bb(0xce)](winston[a23_0x5b45bb(0xd3)][a23_0x5b45bb(0xba)](a23_0xd5773),winston[a23_0x5b45bb(0xd3)][a23_0x5b45bb(0xc6)](a23_0x46f79e),winston[a23_0x5b45bb(0xd3)]['printf'](_0xc4c141=>_0xc4c141[a23_0x5b45bb(0xba)]+'\x20-\x20'+_0xc4c141['level']+':\x20'+_0xc4c141[a23_0x5b45bb(0xd6)])),'transports':[new winston[(a23_0x5b45bb(0xcd))][(a23_0x5b45bb(0xc1))](a23_0x38013b),new winston['transports']['File']({'filename':path[a23_0x5b45bb(0xbe)](logDir,a23_0x5b45bb(0xc0)),'level':a23_0x5b45bb(0xc7)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x5b45bb(0xc3))]({'filename':path['join'](logDir,'usage.log'),'level':a23_0x5b45bb(0xc7)})]};exports['fileLogger']=new winston[(a23_0x5b45bb(0xbb))](winstonFileLoggerParams);
1
+ const a23_0x2f4f2b=a23_0x587b;(function(_0x5178cd,_0x11db30){const _0x3b3f5d=a23_0x587b,_0x4c4ec9=_0x5178cd();while(!![]){try{const _0x1b5195=parseInt(_0x3b3f5d(0x17b))/0x1*(-parseInt(_0x3b3f5d(0x18c))/0x2)+-parseInt(_0x3b3f5d(0x175))/0x3*(-parseInt(_0x3b3f5d(0x17c))/0x4)+parseInt(_0x3b3f5d(0x179))/0x5+-parseInt(_0x3b3f5d(0x18a))/0x6*(parseInt(_0x3b3f5d(0x16e))/0x7)+-parseInt(_0x3b3f5d(0x183))/0x8+parseInt(_0x3b3f5d(0x173))/0x9*(parseInt(_0x3b3f5d(0x17f))/0xa)+parseInt(_0x3b3f5d(0x176))/0xb;if(_0x1b5195===_0x11db30)break;else _0x4c4ec9['push'](_0x4c4ec9['shift']());}catch(_0x1bf7c9){_0x4c4ec9['push'](_0x4c4ec9['shift']());}}}(a23_0x3202,0x1b918));function a23_0x3202(){const _0x2a33a7=['20cObpjL','YYYY-MM-DD\x20HH:mm:ss','join','4361CquPuy','colorize','events.log','level','transports','616914yfjaJT','log','165omWOUq','3083113IMYVzw','\x20-\x20','createLogger','613270NNOThO','Console','22251rKooOo','4700xsUagu','message','combine','10XcsfgV','usage.log','path','timestamp','1406064OwTZse','printf','existsSync','name','File','format','winston','240QTlRiY','debug'];a23_0x3202=function(){return _0x2a33a7;};return a23_0x3202();}const winston=require(a23_0x2f4f2b(0x189)),fs=require('fs'),path=require(a23_0x2f4f2b(0x181)),logDir=a23_0x2f4f2b(0x174);!fs[a23_0x2f4f2b(0x185)](logDir)&&fs['mkdirSync'](logDir);const a23_0x52b224={};function a23_0x587b(_0x17da8a,_0x47fa4a){const _0x3202d8=a23_0x3202();return a23_0x587b=function(_0x587b75,_0x469394){_0x587b75=_0x587b75-0x16e;let _0x12b573=_0x3202d8[_0x587b75];return _0x12b573;},a23_0x587b(_0x17da8a,_0x47fa4a);}a23_0x52b224['format']=a23_0x2f4f2b(0x18d);const a23_0x3c5398={};a23_0x3c5398[a23_0x2f4f2b(0x171)]=!![];const a23_0x44e2c8={};a23_0x44e2c8[a23_0x2f4f2b(0x186)]='console.info',exports['logger']=new winston['createLogger']({'format':winston[a23_0x2f4f2b(0x188)][a23_0x2f4f2b(0x17e)](winston[a23_0x2f4f2b(0x188)]['timestamp'](a23_0x52b224),winston[a23_0x2f4f2b(0x188)][a23_0x2f4f2b(0x16f)](a23_0x3c5398),winston[a23_0x2f4f2b(0x188)][a23_0x2f4f2b(0x184)](_0x1405f5=>_0x1405f5[a23_0x2f4f2b(0x182)]+a23_0x2f4f2b(0x177)+_0x1405f5[a23_0x2f4f2b(0x171)]+':\x20'+_0x1405f5[a23_0x2f4f2b(0x17d)])),'transports':[new winston[(a23_0x2f4f2b(0x172))][(a23_0x2f4f2b(0x17a))](a23_0x44e2c8),new winston[(a23_0x2f4f2b(0x172))]['File']({'filename':path[a23_0x2f4f2b(0x18e)](logDir,a23_0x2f4f2b(0x170)),'level':a23_0x2f4f2b(0x18b)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x2f4f2b(0x187))]({'filename':path['join'](logDir,a23_0x2f4f2b(0x180)),'level':a23_0x2f4f2b(0x18b)})]};exports['fileLogger']=new winston[(a23_0x2f4f2b(0x178))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x46d8fa=a24_0x4085;(function(_0x50a3ad,_0x584d5f){const _0x42a703=a24_0x4085,_0x448791=_0x50a3ad();while(!![]){try{const _0x3a8db4=parseInt(_0x42a703(0xf3))/0x1*(-parseInt(_0x42a703(0xf7))/0x2)+parseInt(_0x42a703(0xef))/0x3*(-parseInt(_0x42a703(0xf8))/0x4)+-parseInt(_0x42a703(0xf9))/0x5+-parseInt(_0x42a703(0xf1))/0x6*(parseInt(_0x42a703(0xfd))/0x7)+-parseInt(_0x42a703(0xed))/0x8*(parseInt(_0x42a703(0xf2))/0x9)+parseInt(_0x42a703(0xff))/0xa+parseInt(_0x42a703(0xf0))/0xb*(parseInt(_0x42a703(0xfe))/0xc);if(_0x3a8db4===_0x584d5f)break;else _0x448791['push'](_0x448791['shift']());}catch(_0x1d6340){_0x448791['push'](_0x448791['shift']());}}}(a24_0xe8fe,0x9da4f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x46d8fa(0xee)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0xea722){const _0x2fd206=a24_0x46d8fa,_0xf6fe64={};_0xf6fe64[_0x2fd206(0x100)]=_0x2fd206(0x101),_0xf6fe64['gVFlH']='help';const _0x246850=_0xf6fe64;_0xea722['usage'](HELP_HEADER_MESSAGE[_0x2fd206(0x102)])[_0x2fd206(0xfa)](_0x246850['hlqng'])[_0x2fd206(0xf6)]()[_0x2fd206(0xfb)](_0x246850[_0x2fd206(0xf5)])[_0x2fd206(0xf4)](HELP_FOOTER_MESSAGE);}function a24_0xe8fe(){const _0x30583d=['epilogue','gVFlH','demandCommand','65260ZeSqUw','8gugMzf','2463940QMmDWL','commandDir','help','exports','8539097DeTngz','588eaktTF','3870580NOaJaV','hlqng','commands','root','17128HZvzcv','env','1645944sxCiyX','963897qsjiwx','6wCKjNA','1035CQuAwi','30ayYszw'];a24_0xe8fe=function(){return _0x30583d;};return a24_0xe8fe();}function a24_0x4085(_0x354e08,_0x2489e0){const _0xe8fead=a24_0xe8fe();return a24_0x4085=function(_0x4085ce,_0x566e56){_0x4085ce=_0x4085ce-0xed;let _0xfd3e83=_0xe8fead[_0x4085ce];return _0xfd3e83;},a24_0x4085(_0x354e08,_0x2489e0);}module[a24_0x46d8fa(0xfc)]=run;
2
+ 'use strict';const a24_0x390ffa=a24_0x5ce6;(function(_0x2ae3a7,_0x3d2efb){const _0x1ee840=a24_0x5ce6,_0xbb6e87=_0x2ae3a7();while(!![]){try{const _0x1b9f32=parseInt(_0x1ee840(0xfa))/0x1*(-parseInt(_0x1ee840(0x100))/0x2)+parseInt(_0x1ee840(0x101))/0x3+parseInt(_0x1ee840(0xf9))/0x4+parseInt(_0x1ee840(0xfb))/0x5*(parseInt(_0x1ee840(0x106))/0x6)+parseInt(_0x1ee840(0xfc))/0x7+parseInt(_0x1ee840(0x10b))/0x8+-parseInt(_0x1ee840(0x109))/0x9;if(_0x1b9f32===_0x3d2efb)break;else _0xbb6e87['push'](_0xbb6e87['shift']());}catch(_0x2231db){_0xbb6e87['push'](_0xbb6e87['shift']());}}}(a24_0x2f8f,0xa9c13));function a24_0x5ce6(_0x21314c,_0x23f24e){const _0x2f8f8a=a24_0x2f8f();return a24_0x5ce6=function(_0x5ce67b,_0x410389){_0x5ce67b=_0x5ce67b-0xf8;let _0x10be19=_0x2f8f8a[_0x5ce67b];return _0x10be19;},a24_0x5ce6(_0x21314c,_0x23f24e);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x390ffa(0xf8));process['env'][a24_0x390ffa(0x103)]=0x1;function a24_0x2f8f(){const _0x3a1a1a=['3198268ZCzALd','79372VTTuYT','40AZcIPU','1758540BjerKR','commandDir','RfofV','help','28eDUBOX','1296366mPOeHW','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','epilogue','demandCommand','650136MDfNCH','jdpQj','usage','7943004qSiNAY','exports','2714576RSRhqc','./config/constants'];a24_0x2f8f=function(){return _0x3a1a1a;};return a24_0x2f8f();}function run(_0x3db940){const _0xc12d5d=a24_0x390ffa,_0x1fe053={};_0x1fe053[_0xc12d5d(0xfe)]='commands',_0x1fe053[_0xc12d5d(0x107)]=_0xc12d5d(0xff);const _0x40f05e=_0x1fe053;_0x3db940[_0xc12d5d(0x108)](HELP_HEADER_MESSAGE[_0xc12d5d(0x102)])[_0xc12d5d(0xfd)](_0x40f05e[_0xc12d5d(0xfe)])[_0xc12d5d(0x105)]()['help'](_0x40f05e[_0xc12d5d(0x107)])[_0xc12d5d(0x104)](HELP_FOOTER_MESSAGE);}module[a24_0x390ffa(0x10a)]=run;