browserstack-node-sdk 1.34.47 → 1.34.49

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 (141) 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 -0
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -0
  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/permissions/AWS.json +85 -0
  27. package/ats/src/permissions/AZURE.json +33 -0
  28. package/ats/src/permissions/GCP.json +19 -0
  29. package/ats/src/templates/nginx/pods-and-services.yaml +1 -1
  30. package/ats/src/templates/nginx/private-pods-and-services.yaml +1 -1
  31. package/ats/src/utils/AWSUtils.js +1 -1
  32. package/ats/src/utils/createAutoscalerStack.js +1 -1
  33. package/ats/src/utils/createClusterStack.js +1 -1
  34. package/ats/src/utils/createHubHaStack.js +1 -1
  35. package/ats/src/utils/createk8sClient.js +1 -1
  36. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  37. package/ats/src/utils/deleteStack.js +1 -1
  38. package/ats/src/utils/describeStack.js +1 -1
  39. package/ats/src/utils/gridComponents.js +1 -1
  40. package/ats/src/utils/hstUtils.js +1 -1
  41. package/ats/src/utils/instrumentationUtils.js +1 -1
  42. package/ats/src/utils/userInput.js +1 -1
  43. package/ats/src/utils/utilityMethods.js +1 -1
  44. package/ats/src/utils/webSocketUtils.js +1 -1
  45. package/package.json +1 -1
  46. package/src/ai-sdk-node/bundle.js +1 -1
  47. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  48. package/src/bin/codeceptjs/command.js +1 -1
  49. package/src/bin/codeceptjs/helper.js +1 -1
  50. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  51. package/src/bin/cucumber-js/command.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  53. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  54. package/src/bin/cucumber-js/test-observability.js +1 -1
  55. package/src/bin/cucumber-js/test.setup.js +1 -1
  56. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  57. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  58. package/src/bin/integrations/command.js +1 -1
  59. package/src/bin/integrations/constants.js +1 -1
  60. package/src/bin/jest/command.js +1 -1
  61. package/src/bin/jest/customImplements/customCircus.js +1 -1
  62. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  63. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/vanilla-js/command.js +1 -1
  100. package/src/browserStackSdk.js +1 -1
  101. package/src/helpers/BrowserStackSetup.js +1 -1
  102. package/src/helpers/accessibility-automation/constants.js +1 -1
  103. package/src/helpers/accessibility-automation/helper.js +1 -1
  104. package/src/helpers/accessibility-automation/scripts.js +1 -1
  105. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  106. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  107. package/src/helpers/ats/constants.js +1 -1
  108. package/src/helpers/ats/helper.js +1 -1
  109. package/src/helpers/capsMapping.js +1 -1
  110. package/src/helpers/central-scanner/constants.js +1 -1
  111. package/src/helpers/central-scanner/helpers.js +1 -1
  112. package/src/helpers/globals.js +1 -1
  113. package/src/helpers/helper.js +1 -1
  114. package/src/helpers/logger.js +1 -1
  115. package/src/helpers/patchHelper.js +1 -1
  116. package/src/helpers/patchHelpers.js +1 -1
  117. package/src/helpers/percy/Percy.js +1 -1
  118. package/src/helpers/percy/PercyBinary.js +1 -1
  119. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  120. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  121. package/src/helpers/percy/PercySDK.js +1 -1
  122. package/src/helpers/percy/index.js +1 -1
  123. package/src/helpers/percy/utils.js +1 -1
  124. package/src/helpers/performance/constants.js +1 -1
  125. package/src/helpers/performance/performance-tester.js +1 -1
  126. package/src/helpers/processHelper.js +1 -1
  127. package/src/helpers/request-spy.js +1 -1
  128. package/src/helpers/setKeepAlive.js +1 -1
  129. package/src/helpers/test-observability/constants.js +1 -1
  130. package/src/helpers/test-observability/error-handler.js +1 -1
  131. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  132. package/src/helpers/test-observability/sessionHandler.js +1 -1
  133. package/src/helpers/test-observability/utils.js +1 -1
  134. package/src/helpers/testhub/constants.js +1 -1
  135. package/src/helpers/testhub/testhubHandler.js +1 -1
  136. package/src/helpers/testhub/utils.js +1 -1
  137. package/src/helpers/timeoutPromise.js +1 -1
  138. package/src/helpers/utilities.js +1 -1
  139. package/src/helpers/w3cMapping.js +1 -1
  140. package/src/hubAllocationMethods.js +1 -1
  141. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x316a(){const _0x412c8d=['gwwyx','wGcjB','STLgc','46169dnbaIE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XEkWm','table','list-grids-called','QbAUw','2627564JsADfm','Browserstack','9VrDJsT','ZrkDE','init-not-called','grids','../../utils/utilityMethods','aPLMg','description','uuid','body','11296390diQZax','YhJRK','help','GET','queued','7286424lFMsGq','builder','ZQRSJ','YyiTx','45cpJMFp','desc','existsSync','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','MQNDA','status','push','40bXgmNB','error','parse','DyuiG','DIfXJ','https://','ERROR','got','Failed\x20to\x20list\x20resources!\x20Error:\x20','exit','forEach','running','requestId','name','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','zfuBg','cluster-name','XMXIX','16722ZxRzWv','/packages/cli/get-all-grids','Dgree','unknown-error','2777530PTuUhQ','clusterName','wFJEO','bstackUsername','\x0aFound\x20the\x20following\x20grids:\x0a','../../config/constants','statusCode','grid-name','grid','NYoUA','UxhqQ','usage','epilogue','CFovr','argv','password','username','stringify','VQFFB','all-grids','WHlPS','kXMZi','log','unauthorised','3765081RFSXRf','PMcru','sZGTY','list','INFO','allGrids','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oqJnU'];a15_0x316a=function(){return _0x412c8d;};return a15_0x316a();}const a15_0x2962db=a15_0x46f8;(function(_0x39d516,_0x30a378){const _0x58d35f=a15_0x46f8,_0x5b0536=_0x39d516();while(!![]){try{const _0x32b386=-parseInt(_0x58d35f(0xd5))/0x1*(-parseInt(_0x58d35f(0x9b))/0x2)+-parseInt(_0x58d35f(0xc9))/0x3+-parseInt(_0x58d35f(0x80))/0x4+-parseInt(_0x58d35f(0x94))/0x5*(-parseInt(_0x58d35f(0xad))/0x6)+-parseInt(_0x58d35f(0xb1))/0x7+parseInt(_0x58d35f(0x90))/0x8+parseInt(_0x58d35f(0x82))/0x9*(parseInt(_0x58d35f(0x8b))/0xa);if(_0x32b386===_0x30a378)break;else _0x5b0536['push'](_0x5b0536['shift']());}catch(_0x1c1d59){_0x5b0536['push'](_0x5b0536['shift']());}}}(a15_0x316a,0xa6105));function a15_0x46f8(_0x7f4a36,_0x4bce0c){const _0x316abb=a15_0x316a();return a15_0x46f8=function(_0x46f8f2,_0x4dd46f){_0x46f8f2=_0x46f8f2-0x80;let _0x1ae477=_0x316abb[_0x46f8f2];return _0x1ae477;},a15_0x46f8(_0x7f4a36,_0x4bce0c);}const fs=require('fs'),got=require(a15_0x2962db(0xa2)),{table}=require(a15_0x2962db(0xd8)),{v4:uuidv4}=require(a15_0x2962db(0x89)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2962db(0xb6)),{getCredentialsPath,getAuthHeader}=require(a15_0x2962db(0x86)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a15_0x2962db(0x85),exports[a15_0x2962db(0x95)]=a15_0x2962db(0xa9),exports[a15_0x2962db(0x91)]=function(_0x24fdfd){const _0x56a2d9=a15_0x2962db,_0x53cf9f={};_0x53cf9f[_0x56a2d9(0x83)]=_0x56a2d9(0x97),_0x53cf9f[_0x56a2d9(0x98)]='boolean',_0x53cf9f[_0x56a2d9(0xba)]=_0x56a2d9(0x8d);const _0x54ac79=_0x53cf9f,_0x5f5a75={};_0x5f5a75[_0x56a2d9(0x88)]=_0x54ac79[_0x56a2d9(0x83)],_0x5f5a75['type']=_0x54ac79['MQNDA'];const _0x3124ee={};return _0x3124ee[_0x56a2d9(0xc4)]=_0x5f5a75,_0x24fdfd[_0x56a2d9(0xbc)](HELP_HEADER_MESSAGE[_0x56a2d9(0xcc)][_0x56a2d9(0xb9)])[_0x56a2d9(0xbd)](HELP_FOOTER_MESSAGE)[_0x56a2d9(0xcf)](_0x3124ee)[_0x56a2d9(0x8d)](_0x54ac79[_0x56a2d9(0xba)])[_0x56a2d9(0xbf)];},exports['handler']=async function(_0xd640cb){const _0x5a8981=a15_0x2962db,_0x5812b8={'DIfXJ':function(_0xf15add){return _0xf15add();},'DyuiG':function(_0x294b3a){return _0x294b3a();},'sZGTY':_0x5a8981(0xd0),'ZQRSJ':function(_0x334ef6,_0x3e1fb2,_0x411a6f,_0x4ba5d4,_0x2456fb,_0x459715,_0x596fad){return _0x334ef6(_0x3e1fb2,_0x411a6f,_0x4ba5d4,_0x2456fb,_0x459715,_0x596fad);},'gwwyx':_0x5a8981(0xd9),'aPLMg':_0x5a8981(0x84),'kXMZi':_0x5a8981(0x8e),'YyiTx':function(_0x202cae,_0x389933,_0x51822a){return _0x202cae(_0x389933,_0x51822a);},'STLgc':function(_0x2d6929,_0x665577,_0x2f9e8f){return _0x2d6929(_0x665577,_0x2f9e8f);},'VQFFB':function(_0x19c8f9,_0x4ea715){return _0x19c8f9!==_0x4ea715;},'hDSlf':function(_0x54f1a5,_0x594824){return _0x54f1a5!==_0x594824;},'LKRfl':function(_0x30f7b5,_0x3602d){return _0x30f7b5===_0x3602d;},'XEkWm':_0x5a8981(0xb5),'wFJEO':'grid-id','PMcru':_0x5a8981(0xb8),'YhJRK':_0x5a8981(0x99),'Dgree':_0x5a8981(0xa6),'WHlPS':_0x5a8981(0x8f),'QbAUw':_0x5a8981(0xab),'zfuBg':function(_0x556582,_0x55a80c){return _0x556582(_0x55a80c);},'XMXIX':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','wGcjB':_0x5a8981(0xc8),'UxhqQ':function(_0x2ec357,_0xc90be,_0x2c04e4,_0x562494,_0x4f74bb,_0x5f5141,_0x3095a2){return _0x2ec357(_0xc90be,_0x2c04e4,_0x562494,_0x4f74bb,_0x5f5141,_0x3095a2);},'oqJnU':'server-error','CFovr':_0x5a8981(0xb0)};try{global_registry[_0x5a8981(0xa7)]=_0x5812b8[_0x5a8981(0x9f)](uuidv4);!fs[_0x5a8981(0x96)](_0x5812b8[_0x5a8981(0x9e)](getCredentialsPath))&&(console['error'](_0x5812b8[_0x5a8981(0xcb)]),await _0x5812b8[_0x5a8981(0x92)](sendInstrumentationEvent,_0xd640cb,_0x5812b8[_0x5a8981(0xd2)],messageTypes[_0x5a8981(0xa1)],_0x5812b8[_0x5a8981(0x87)],null,_0xd640cb),process['exit'](0x1));const _0x4ed0d3=JSON[_0x5a8981(0x9d)](fs['readFileSync'](_0x5812b8['DyuiG'](getCredentialsPath)));let _0x14c364=_0x5a8981(0xa0)+AG_API_URL+'/packages/cli/get-grids';_0xd640cb[_0x5a8981(0xce)]&&(_0x14c364=_0x5a8981(0xa0)+AG_API_URL+_0x5a8981(0xae));const _0x1be92c={'method':_0x5812b8[_0x5a8981(0xc6)],'headers':_0x5812b8[_0x5a8981(0x93)](getAuthHeader,_0x4ed0d3[_0x5a8981(0x81)][_0x5a8981(0xc1)],_0x4ed0d3[_0x5a8981(0x81)]['password']),'throwHttpErrors':![]};global_registry[_0x5a8981(0xb4)]=_0x4ed0d3[_0x5a8981(0x81)]['username'],global_registry['bstackAccesskey']=_0x4ed0d3[_0x5a8981(0x81)][_0x5a8981(0xc0)],_0x5812b8[_0x5a8981(0x92)](sendInstrumentationEvent,_0xd640cb,_0x5812b8[_0x5a8981(0xd2)],messageTypes[_0x5a8981(0xcd)],null,null,_0xd640cb);const _0x1d145a=await _0x5812b8[_0x5a8981(0xd4)](got,_0x14c364,_0x1be92c);if(_0x5812b8[_0x5a8981(0xc3)](_0x1d145a,null)&&_0x5812b8['hDSlf'](_0x1d145a,undefined)&&_0x5812b8['LKRfl'](_0x1d145a[_0x5a8981(0xb7)],0xc8)){const _0x5b3123=JSON[_0x5a8981(0x9d)](_0x1d145a[_0x5a8981(0x8a)]);console[_0x5a8981(0xc7)](_0x5812b8[_0x5a8981(0xd7)]);const _0x15be95=[];_0x15be95[_0x5a8981(0x9a)]([_0x5812b8[_0x5a8981(0xb3)],_0x5812b8[_0x5a8981(0xca)],_0x5812b8[_0x5a8981(0x8c)],_0x5812b8[_0x5a8981(0xaf)],_0x5812b8[_0x5a8981(0xc5)],_0x5812b8[_0x5a8981(0xda)]]),_0x5b3123[_0x5a8981(0xa5)](_0x368d30=>{const _0x4ea98d=_0x5a8981;_0x15be95[_0x4ea98d(0x9a)]([_0x368d30['id'],_0x368d30[_0x4ea98d(0xa8)],_0x368d30['status'],_0x368d30[_0x4ea98d(0xa6)],_0x368d30['queued'],_0x368d30[_0x4ea98d(0xb2)]]);}),console[_0x5a8981(0xc7)](_0x5812b8[_0x5a8981(0xaa)](table,_0x15be95)),process['exit'](0x0);}_0x5812b8['LKRfl'](_0x1d145a[_0x5a8981(0xb7)],0x191)&&(console[_0x5a8981(0x9c)](_0x5812b8[_0x5a8981(0xac)]),await _0x5812b8[_0x5a8981(0x92)](sendInstrumentationEvent,_0xd640cb,_0x5812b8[_0x5a8981(0xd2)],messageTypes[_0x5a8981(0xa1)],_0x5812b8[_0x5a8981(0xd3)],null,_0xd640cb),process[_0x5a8981(0xa4)](0x1)),console[_0x5a8981(0x9c)](_0x5a8981(0xd6)+JSON[_0x5a8981(0xc2)](_0x1d145a)),await _0x5812b8[_0x5a8981(0xbb)](sendInstrumentationEvent,_0xd640cb,_0x5812b8[_0x5a8981(0xd2)],messageTypes[_0x5a8981(0xa1)],_0x5812b8[_0x5a8981(0xd1)],_0x1d145a,_0xd640cb),process[_0x5a8981(0xa4)](0x1);}catch(_0x1ba14d){console[_0x5a8981(0x9c)](_0x5a8981(0xa3)+_0x1ba14d['stack']),await _0x5812b8[_0x5a8981(0xbb)](sendInstrumentationEvent,_0xd640cb,_0x5812b8[_0x5a8981(0xd2)],messageTypes[_0x5a8981(0xa1)],_0x5812b8[_0x5a8981(0xbe)],_0x1ba14d,_0xd640cb),process['exit'](0x1);}};
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);}};
@@ -0,0 +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){};
@@ -0,0 +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 +1 @@
1
- const a16_0x2ebfd8=a16_0x235a;(function(_0xb8c885,_0x2e7c){const _0x39733a=a16_0x235a,_0x232b75=_0xb8c885();while(!![]){try{const _0x34e0d5=-parseInt(_0x39733a(0x1e4))/0x1+-parseInt(_0x39733a(0x1d5))/0x2*(parseInt(_0x39733a(0x1d9))/0x3)+parseInt(_0x39733a(0x1d8))/0x4*(parseInt(_0x39733a(0x1db))/0x5)+-parseInt(_0x39733a(0x1e5))/0x6+parseInt(_0x39733a(0x1e9))/0x7*(-parseInt(_0x39733a(0x1e3))/0x8)+parseInt(_0x39733a(0x1e0))/0x9*(parseInt(_0x39733a(0x1e8))/0xa)+parseInt(_0x39733a(0x1df))/0xb;if(_0x34e0d5===_0x2e7c)break;else _0x232b75['push'](_0x232b75['shift']());}catch(_0x5bdf09){_0x232b75['push'](_0x232b75['shift']());}}}(a16_0x5803,0x9b409));function a16_0x5803(){const _0x5ce599=['25108589GanPNO','111645skAxxy','usage','help','512prAvmo','61737qoARhh','6620004Fmnozf','start','desc','290ifiLQr','56854pFQeaA','1272uqVOXv','command','DDnGa','96ZDGsqk','5952enJmfC','start_commands','195890YChpam','demandCommand','cOscD','recommendCommands'];a16_0x5803=function(){return _0x5ce599;};return a16_0x5803();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x235a(_0x5ace3f,_0x36659b){const _0x58031d=a16_0x5803();return a16_0x235a=function(_0x235a40,_0x342da1){_0x235a40=_0x235a40-0x1d5;let _0x2b1131=_0x58031d[_0x235a40];return _0x2b1131;},a16_0x235a(_0x5ace3f,_0x36659b);}exports[a16_0x2ebfd8(0x1d6)]=a16_0x2ebfd8(0x1e6),exports[a16_0x2ebfd8(0x1e7)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x57a58f){const _0x58b6aa=a16_0x2ebfd8,_0x56da0f={};_0x56da0f[_0x58b6aa(0x1dd)]=_0x58b6aa(0x1da),_0x56da0f['DDnGa']=_0x58b6aa(0x1e2);const _0x466784=_0x56da0f;return _0x57a58f[_0x58b6aa(0x1e1)](HELP_HEADER_MESSAGE[_0x58b6aa(0x1e6)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x466784['cOscD'])[_0x58b6aa(0x1dc)]()[_0x58b6aa(0x1de)]()['strict']()[_0x58b6aa(0x1e2)](_0x466784[_0x58b6aa(0x1d7)]);},exports['handler']=function(_0x4dba51){};
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 +1 @@
1
- function a17_0x8410(_0x72b1b5,_0x15f3c4){const _0x206ca4=a17_0x206c();return a17_0x8410=function(_0x8410a3,_0x5e69ee){_0x8410a3=_0x8410a3-0x1c8;let _0x28808f=_0x206ca4[_0x8410a3];return _0x28808f;},a17_0x8410(_0x72b1b5,_0x15f3c4);}const a17_0x6416e4=a17_0x8410;(function(_0x49d57f,_0x354349){const _0xf697ca=a17_0x8410,_0x35b904=_0x49d57f();while(!![]){try{const _0x4f19d1=-parseInt(_0xf697ca(0x1e1))/0x1*(-parseInt(_0xf697ca(0x20f))/0x2)+parseInt(_0xf697ca(0x225))/0x3*(parseInt(_0xf697ca(0x1e6))/0x4)+parseInt(_0xf697ca(0x1ea))/0x5*(-parseInt(_0xf697ca(0x1e3))/0x6)+parseInt(_0xf697ca(0x20b))/0x7+parseInt(_0xf697ca(0x1fc))/0x8*(parseInt(_0xf697ca(0x1d3))/0x9)+parseInt(_0xf697ca(0x214))/0xa*(-parseInt(_0xf697ca(0x1f9))/0xb)+parseInt(_0xf697ca(0x1d6))/0xc*(-parseInt(_0xf697ca(0x1c8))/0xd);if(_0x4f19d1===_0x354349)break;else _0x35b904['push'](_0x35b904['shift']());}catch(_0x5d2cb5){_0x35b904['push'](_0x35b904['shift']());}}}(a17_0x206c,0xa80f7));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x6416e4(0x1ed)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a17_0x6416e4(0x1cb)),webSocketUtils=require(a17_0x6416e4(0x200)),{createK8sClient}=require(a17_0x6416e4(0x209)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a17_0x206c(){const _0x9f9d8b=['Adding\x20Websocket\x20listeners','clusterRegion','existsSync','<PasswordPlaceholder>','WQjlS','MlDYJ','PQvvv','help','statusCode','grid','TerlN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','body','OtSru','readFileSync','285423YGhGjY','7982YXKlpL','username','clusterName','../../utils/instrumentationUtils','server-error','options','HfVAg','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xebhA','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','mvlcf','49599XxVYcA','info','parse','47928DipXNA','user','vrKZh','invalid-grid-id','stringify','handler','Start\x20an\x20existing\x20Automation\x20grid.','error','Skip\x20insecure\x20cert\x20verification.','unauthorised','argv','38646ZiMyVP','Browserstack','211764nTIATY','string','type','44sBLlNx','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','connectionTimeout','builder','10nivAtZ','<UsernamePlaceholder>','cloudProvider','../../config/constants','SwLxd','lXOTS','addListeners','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','QsYFm','skip-tls-cert-verify','gridId','password','command','start-grid-called','abvef','11rLREUj','desc','aNfZq','1272IJZKBX','UAdEY','bstackUsername','usage','../../utils/webSocketUtils','message','init-not-called','ERROR','stack','INFO','KrfRe','ZDnVL','exit','../../utils/createk8sClient','YCmEZ','5870914rzUwCF','description','grid-id','Grid\x20started','46YLbRAG','ScBGW','rgZpB','default','skipTlsCertVerify','4390810pPGHKD','cdAXk'];a17_0x206c=function(){return _0x9f9d8b;};return a17_0x206c();}exports[a17_0x6416e4(0x1f6)]=a17_0x6416e4(0x21f),exports[a17_0x6416e4(0x1fa)]=a17_0x6416e4(0x1dc),exports[a17_0x6416e4(0x1e9)]=function(_0x3064c0){const _0x1c9a72=a17_0x6416e4,_0x273626={};_0x273626[_0x1c9a72(0x223)]=_0x1c9a72(0x1d1),_0x273626['lXOTS']=_0x1c9a72(0x1e4),_0x273626[_0x1c9a72(0x1d8)]=_0x1c9a72(0x1de),_0x273626['KrfRe']='boolean',_0x273626[_0x1c9a72(0x20a)]=_0x1c9a72(0x21d);const _0x5de8b2=_0x273626,_0x198696={};_0x198696[_0x1c9a72(0x20c)]=_0x5de8b2['OtSru'],_0x198696[_0x1c9a72(0x1e5)]=_0x5de8b2[_0x1c9a72(0x1ef)];const _0x27a91c={};_0x27a91c[_0x1c9a72(0x20c)]=_0x5de8b2['vrKZh'],_0x27a91c[_0x1c9a72(0x1e5)]=_0x5de8b2[_0x1c9a72(0x206)],_0x27a91c[_0x1c9a72(0x212)]=![];const _0x1e319c={};return _0x1e319c[_0x1c9a72(0x20d)]=_0x198696,_0x1e319c[_0x1c9a72(0x1f3)]=_0x27a91c,_0x3064c0[_0x1c9a72(0x1ff)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1c9a72(0x1cd)](_0x1e319c)[_0x1c9a72(0x21d)](_0x5de8b2[_0x1c9a72(0x20a)])[_0x1c9a72(0x1e0)];},exports[a17_0x6416e4(0x1db)]=async function(_0x5b24db){const _0x160089=a17_0x6416e4,_0x5aa246={'QsYFm':_0x160089(0x1f1),'Kwrpj':function(_0x5716e7){return _0x5716e7();},'SwLxd':_0x160089(0x1cf),'MlDYJ':function(_0x28a49d,_0x198686,_0x57819e,_0x117928,_0x82959f,_0x1ea9cf,_0x5953eb){return _0x28a49d(_0x198686,_0x57819e,_0x117928,_0x82959f,_0x1ea9cf,_0x5953eb);},'aNfZq':_0x160089(0x1f7),'mvlcf':_0x160089(0x202),'abvef':function(_0x21c0de){return _0x21c0de();},'HfVAg':_0x160089(0x1eb),'cdAXk':_0x160089(0x219),'rgZpB':_0x160089(0x216),'FiwWH':function(_0x376d03,_0x59c00a,_0x278b66,_0x5ee2ba){return _0x376d03(_0x59c00a,_0x278b66,_0x5ee2ba);},'ZDnVL':function(_0x3c8349,_0x2c2a53,_0x2a7a97){return _0x3c8349(_0x2c2a53,_0x2a7a97);},'xebhA':function(_0x44a5b3,_0x4a4625,_0x510159){return _0x44a5b3(_0x4a4625,_0x510159);},'KMven':_0x160089(0x20e),'TerlN':function(_0x20b640,_0x562c89){return _0x20b640===_0x562c89;},'dgcFV':_0x160089(0x221),'vGsWM':function(_0x4f27b4,_0x44b1d0,_0x5504dd,_0x45bceb,_0x125b32,_0x3642fc,_0x1988e6){return _0x4f27b4(_0x44b1d0,_0x5504dd,_0x45bceb,_0x125b32,_0x3642fc,_0x1988e6);},'ScBGW':_0x160089(0x1df),'UAdEY':function(_0x1addde,_0xf5e33a,_0x5c348e,_0xd0ebff,_0x5cc08e,_0x31f73c,_0x3388c3){return _0x1addde(_0xf5e33a,_0x5c348e,_0xd0ebff,_0x5cc08e,_0x31f73c,_0x3388c3);},'WQjlS':_0x160089(0x1d9),'PQvvv':_0x160089(0x1cc)};let _0x53f182;try{!_0x5b24db[_0x160089(0x1f4)]&&(logger[_0x160089(0x1dd)](_0x5aa246[_0x160089(0x1f2)]),process[_0x160089(0x208)](0x1));!fs[_0x160089(0x218)](_0x5aa246['Kwrpj'](getCredentialsPath))&&(logger['error'](_0x5aa246[_0x160089(0x1ee)]),await _0x5aa246[_0x160089(0x21b)](sendInstrumentationEvent,_0x5b24db,_0x5aa246[_0x160089(0x1fb)],messageTypes[_0x160089(0x203)],_0x5aa246[_0x160089(0x1d2)],null,_0x5b24db),process[_0x160089(0x208)](0x1));logger[_0x160089(0x1d4)]('Starting\x20grid\x20'+_0x5b24db['gridId']),await _0x5aa246[_0x160089(0x21b)](sendInstrumentationEvent,_0x5b24db,_0x5aa246['aNfZq'],messageTypes[_0x160089(0x205)],null,null,_0x5b24db);const _0x464f40=JSON[_0x160089(0x1d5)](fs[_0x160089(0x224)](_0x5aa246[_0x160089(0x1f8)](getCredentialsPath)));global_registry[_0x160089(0x1fe)]=_0x464f40[_0x160089(0x1e2)][_0x160089(0x1c9)],global_registry['bstackAccesskey']=_0x464f40[_0x160089(0x1e2)]['password'];const _0x3d00bd=WS_ENDPOINT['replace'](_0x5aa246[_0x160089(0x1ce)],_0x464f40[_0x160089(0x1e2)]['username'])['replace'](_0x5aa246[_0x160089(0x215)],_0x464f40[_0x160089(0x1e2)][_0x160089(0x1f5)]),_0x17da98={};_0x17da98['WebSocket']=ws,_0x17da98[_0x160089(0x1e8)]=0x36ee80,_0x53f182=new ReconnectingWebSocket(_0x3d00bd,[],_0x17da98),logger['debug'](_0x5aa246[_0x160089(0x211)]),webSocketUtils[_0x160089(0x1f0)](_0x53f182,_0x5b24db[_0x160089(0x1d7)],_0x5b24db['password']);const [_0x39d899,_0x6fc76c]=await _0x5aa246['FiwWH'](getGridDetails,_0x464f40[_0x160089(0x1e2)][_0x160089(0x1c9)],_0x464f40[_0x160089(0x1e2)][_0x160089(0x1f5)],_0x5b24db['gridId']);if(_0x6fc76c){const _0x4d6ed7=_0x6fc76c['info'];global_registry[_0x160089(0x1ec)]=_0x4d6ed7[_0x160089(0x1ec)],global_registry[_0x160089(0x217)]=_0x4d6ed7['region'],global_registry[_0x160089(0x1ca)]=_0x4d6ed7[_0x160089(0x1ca)];const _0x371e82=await _0x5aa246[_0x160089(0x21b)](getCloudProviderObject,_0x4d6ed7['cloudProvider'],_0x4d6ed7[_0x160089(0x1ca)],_0x4d6ed7['name'],_0x53f182,webSocketUtils,_0x5b24db),[_0x47a474,_0x6e2d7f,_0x2e39cb,_0x556bd6,_0x40bee5,_0x2248b1]=await _0x5aa246[_0x160089(0x207)](createK8sClient,_0x371e82,_0x5b24db[_0x160089(0x213)]);await _0x5aa246[_0x160089(0x1d0)](scaleUpHubDeployment,_0x6e2d7f,_0x4d6ed7['name']),logger['info'](_0x5aa246['KMven']),process[_0x160089(0x208)](0x0);}_0x5aa246[_0x160089(0x220)](_0x39d899[_0x160089(0x21e)],0x191)&&(logger[_0x160089(0x1dd)](_0x5aa246['dgcFV']),await _0x5aa246['vGsWM'](sendInstrumentationEvent,_0x5b24db,_0x5aa246['aNfZq'],messageTypes['ERROR'],_0x5aa246[_0x160089(0x210)],null,_0x5b24db),process[_0x160089(0x208)](0x1)),_0x5aa246['TerlN'](_0x39d899[_0x160089(0x21e)],0x190)&&(logger[_0x160089(0x1dd)](JSON[_0x160089(0x1d5)](_0x39d899[_0x160089(0x222)])[_0x160089(0x201)]),await _0x5aa246[_0x160089(0x1fd)](sendInstrumentationEvent,_0x5b24db,_0x5aa246[_0x160089(0x1fb)],messageTypes[_0x160089(0x203)],_0x5aa246[_0x160089(0x21a)],null,_0x5b24db),process[_0x160089(0x208)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x160089(0x1da)](_0x39d899)),await _0x5aa246[_0x160089(0x21b)](sendInstrumentationEvent,_0x5b24db,_0x5aa246['aNfZq'],messageTypes[_0x160089(0x203)],_0x5aa246[_0x160089(0x21c)],_0x39d899,_0x5b24db),process[_0x160089(0x208)](0x1);}catch(_0xce091){const _0x3d753c=_0x160089(0x1e7)+_0xce091+'\x20\x0a'+JSON['stringify'](_0xce091[_0x160089(0x204)])+'\x20';logger['error'](_0x3d753c),process[_0x160089(0x208)](0x1);}};
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 +1 @@
1
- const a18_0xc4fcc=a18_0x4cc5;(function(_0x41bfff,_0x22754c){const _0x34e8f5=a18_0x4cc5,_0x13b454=_0x41bfff();while(!![]){try{const _0x50e63f=parseInt(_0x34e8f5(0x12d))/0x1+-parseInt(_0x34e8f5(0x128))/0x2+-parseInt(_0x34e8f5(0x124))/0x3+parseInt(_0x34e8f5(0x12f))/0x4+parseInt(_0x34e8f5(0x131))/0x5+parseInt(_0x34e8f5(0x127))/0x6*(parseInt(_0x34e8f5(0x12c))/0x7)+parseInt(_0x34e8f5(0x123))/0x8*(-parseInt(_0x34e8f5(0x126))/0x9);if(_0x50e63f===_0x22754c)break;else _0x13b454['push'](_0x13b454['shift']());}catch(_0x36ee0d){_0x13b454['push'](_0x13b454['shift']());}}}(a18_0x1a90,0x2d612));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0xc4fcc(0x121));exports[a18_0xc4fcc(0x132)]=a18_0xc4fcc(0x120),exports['desc']=a18_0xc4fcc(0x133),exports['builder']=function(_0x4abe62){const _0x4fe5ff=a18_0xc4fcc,_0x5dad47={};_0x5dad47[_0x4fe5ff(0x12a)]=_0x4fe5ff(0x12b),_0x5dad47[_0x4fe5ff(0x12e)]='help';const _0x185ac3=_0x5dad47;return _0x4abe62[_0x4fe5ff(0x122)](HELP_HEADER_MESSAGE[_0x4fe5ff(0x120)])[_0x4fe5ff(0x130)](HELP_FOOTER_MESSAGE)[_0x4fe5ff(0x11f)](_0x185ac3[_0x4fe5ff(0x12a)])[_0x4fe5ff(0x129)]()['recommendCommands']()['strict']()['help'](_0x185ac3[_0x4fe5ff(0x12e)]);},exports[a18_0xc4fcc(0x125)]=function(_0x12117d){};function a18_0x4cc5(_0x4033ad,_0x363534){const _0x1a90f7=a18_0x1a90();return a18_0x4cc5=function(_0x4cc5a8,_0x53f19d){_0x4cc5a8=_0x4cc5a8-0x11f;let _0x5d71fa=_0x1a90f7[_0x4cc5a8];return _0x5d71fa;},a18_0x4cc5(_0x4033ad,_0x363534);}function a18_0x1a90(){const _0x489552=['commandDir','stop','../config/constants','usage','16iZGmJa','953109naSbjK','handler','799587ucmuGH','78PNjXYc','335790EGYNQy','demandCommand','tpNRv','stop_commands','131866WOtQhv','326560QwmHJl','uaXEF','851876nsNaVY','epilogue','323675PqyrXU','command','Stop\x20a\x20running\x20Automation\x20grid.'];a18_0x1a90=function(){return _0x489552;};return a18_0x1a90();}
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 +1 @@
1
- const a19_0x32bc11=a19_0x3338;(function(_0x2cf06c,_0x2918f3){const _0x2797d7=a19_0x3338,_0x17af3c=_0x2cf06c();while(!![]){try{const _0x13c9e7=parseInt(_0x2797d7(0xb5))/0x1*(-parseInt(_0x2797d7(0x106))/0x2)+-parseInt(_0x2797d7(0xdf))/0x3+parseInt(_0x2797d7(0xac))/0x4*(parseInt(_0x2797d7(0x105))/0x5)+-parseInt(_0x2797d7(0xf7))/0x6*(parseInt(_0x2797d7(0xc5))/0x7)+-parseInt(_0x2797d7(0xfe))/0x8*(-parseInt(_0x2797d7(0xef))/0x9)+-parseInt(_0x2797d7(0xb8))/0xa+-parseInt(_0x2797d7(0xaa))/0xb*(-parseInt(_0x2797d7(0xe7))/0xc);if(_0x13c9e7===_0x2918f3)break;else _0x17af3c['push'](_0x17af3c['shift']());}catch(_0x3e5b2b){_0x17af3c['push'](_0x17af3c['shift']());}}}(a19_0x37f6,0xc450f));function a19_0x3338(_0x1c622a,_0x5ccf7d){const _0x37f66e=a19_0x37f6();return a19_0x3338=function(_0x333821,_0x548236){_0x333821=_0x333821-0xa9;let _0x50ab72=_0x37f66e[_0x333821];return _0x50ab72;},a19_0x3338(_0x1c622a,_0x5ccf7d);}function a19_0x37f6(){const _0x328bee=['Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','VheNZ','eaXgm','../../utils/instrumentationUtils','Stopping\x20grid\x20','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','nTwbW','usage','cloudProvider','2482971Zjdmtw','parse','stringify','gridId','yMrFV','yRCVL','body','stop','984BhEsZI','exit','NSxtK','vBtVm','help','HvhNt','stop-grid-called','ZfcnB','1319049qPEnLY','boolean','ERROR','<PasswordPlaceholder>','message','../../utils/createk8sClient','skip-tls-cert-verify','kcUon','361866IkXUlk','DYWUa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','eOpnj','region','../../utils/gridComponents','../../utils/webSocketUtils','16BTkIBc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid','addListeners','connectionTimeout','INFO','../../config/logger','5QToRWX','4594eTWyfg','bstackUsername','command','replace','info','stack','type','options','statusCode','426514YUQLXX','Stop\x20a\x20running\x20Automation\x20grid.','4740308ySJMzL','Adding\x20Websocket\x20listeners','../../cloudproviders/utils','eVTEH','username','Grid\x20stoppped.','user','../../utils/utilityMethods','handler','643QCDRmo','kyCNJ','clusterName','411530erOjZn','error','name','epilogue','debug','Browserstack','clusterRegion','Bjlbb','readFileSync','password','wGhlM','init-not-called','builder','175QpgCSq','mpEcA','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','existsSync','WebSocket','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','grid-id','argv','description','../../config/constants','uTRKN','ULFbf','RGwzk','string','OUNlF'];a19_0x37f6=function(){return _0x328bee;};return a19_0x37f6();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x32bc11(0xcf)),{logger}=require(a19_0x32bc11(0x104)),{getCredentialsPath,getGridDetails}=require(a19_0x32bc11(0xb3)),{scaleDownHubDeployment}=require(a19_0x32bc11(0xfc)),{sendInstrumentationEvent}=require(a19_0x32bc11(0xd8)),webSocketUtils=require(a19_0x32bc11(0xfd)),{createK8sClient}=require(a19_0x32bc11(0xf4)),{getCloudProviderObject}=require(a19_0x32bc11(0xae));exports[a19_0x32bc11(0x108)]=a19_0x32bc11(0x100),exports['desc']=a19_0x32bc11(0xab),exports[a19_0x32bc11(0xc4)]=function(_0x38c6e7){const _0x32549c=a19_0x32bc11,_0x5e2a21={};_0x5e2a21['NSxtK']=_0x32549c(0xdb),_0x5e2a21['bRxcz']=_0x32549c(0xd3),_0x5e2a21['uTRKN']='Skip\x20insecure\x20cert\x20verification.',_0x5e2a21[_0x32549c(0xdc)]=_0x32549c(0xf0),_0x5e2a21['eOpnj']=_0x32549c(0xeb);const _0x473bd1=_0x5e2a21,_0x4aa09a={};_0x4aa09a[_0x32549c(0xce)]=_0x473bd1[_0x32549c(0xe9)],_0x4aa09a['type']=_0x473bd1['bRxcz'];const _0x50157c={};_0x50157c[_0x32549c(0xce)]=_0x473bd1[_0x32549c(0xd0)],_0x50157c[_0x32549c(0x10c)]=_0x473bd1[_0x32549c(0xdc)],_0x50157c['default']=![];const _0x2818bb={};return _0x2818bb[_0x32549c(0xcc)]=_0x4aa09a,_0x2818bb[_0x32549c(0xf5)]=_0x50157c,_0x38c6e7[_0x32549c(0xdd)](HELP_HEADER_MESSAGE[_0x32549c(0xe6)])[_0x32549c(0xbb)](HELP_FOOTER_MESSAGE)[_0x32549c(0x10d)](_0x2818bb)['help'](_0x473bd1[_0x32549c(0xfa)])[_0x32549c(0xcd)];},exports[a19_0x32bc11(0xb4)]=async function(_0x1fb090){const _0x1750f0=a19_0x32bc11,_0x450d36={'yRCVL':_0x1750f0(0xcb),'eaXgm':function(_0x453548){return _0x453548();},'yMrFV':_0x1750f0(0xff),'OUNlF':function(_0xc9c023,_0x535b0b,_0x1c72cc,_0x5d2a43,_0x1c588c,_0x209fbb,_0x1f4c10){return _0xc9c023(_0x535b0b,_0x1c72cc,_0x5d2a43,_0x1c588c,_0x209fbb,_0x1f4c10);},'kyCNJ':_0x1750f0(0xed),'eVTEH':_0x1750f0(0xc3),'HvhNt':function(_0x353e57,_0x105992,_0x95be63,_0x3ae92f,_0x1c8942,_0x1565d1,_0x163219){return _0x353e57(_0x105992,_0x95be63,_0x3ae92f,_0x1c8942,_0x1565d1,_0x163219);},'RarKZ':'<UsernamePlaceholder>','vBtVm':_0x1750f0(0xf2),'RGwzk':_0x1750f0(0xad),'wGhlM':function(_0x4cbef6,_0xb5ce35,_0x11af4f,_0x3d95c6){return _0x4cbef6(_0xb5ce35,_0x11af4f,_0x3d95c6);},'Bjlbb':function(_0x4f91cc,_0x2d6f2f,_0x87d48e){return _0x4f91cc(_0x2d6f2f,_0x87d48e);},'VheNZ':function(_0x564a8b,_0x5ef8f2,_0x8c223b){return _0x564a8b(_0x5ef8f2,_0x8c223b);},'ZfcnB':_0x1750f0(0xb1),'mpEcA':function(_0x170853,_0x8faf4a){return _0x170853===_0x8faf4a;},'kcUon':_0x1750f0(0xc8),'DYWUa':'unauthorised','ULFbf':function(_0x15ad8b,_0x258f44,_0x54aa41,_0x1a990d,_0xeb2fc0,_0x143776,_0x320786){return _0x15ad8b(_0x258f44,_0x54aa41,_0x1a990d,_0xeb2fc0,_0x143776,_0x320786);},'QoNKr':'invalid-grid-id','TamYj':'server-error'};let _0x9567c4;try{!_0x1fb090[_0x1750f0(0xe2)]&&(logger[_0x1750f0(0xb9)](_0x450d36[_0x1750f0(0xe4)]),process['exit'](0x1));!fs[_0x1750f0(0xc9)](_0x450d36[_0x1750f0(0xd7)](getCredentialsPath))&&(logger[_0x1750f0(0xb9)](_0x450d36[_0x1750f0(0xe3)]),await _0x450d36[_0x1750f0(0xd4)](sendInstrumentationEvent,_0x1fb090,_0x450d36[_0x1750f0(0xb6)],messageTypes[_0x1750f0(0xf1)],_0x450d36[_0x1750f0(0xaf)],null,_0x1fb090),process[_0x1750f0(0xe8)](0x1));logger[_0x1750f0(0x10a)](_0x1750f0(0xd9)+_0x1fb090[_0x1750f0(0xe2)]),await _0x450d36[_0x1750f0(0xec)](sendInstrumentationEvent,_0x1fb090,_0x450d36[_0x1750f0(0xb6)],messageTypes[_0x1750f0(0x103)],null,null,_0x1fb090);const _0x134f3c=JSON[_0x1750f0(0xe0)](fs[_0x1750f0(0xc0)](_0x450d36[_0x1750f0(0xd7)](getCredentialsPath)));global_registry[_0x1750f0(0x107)]=_0x134f3c['Browserstack']['username'],global_registry[_0x1750f0(0xc7)]=_0x134f3c['Browserstack'][_0x1750f0(0xc1)];const _0xc45f6b=WS_ENDPOINT[_0x1750f0(0x109)](_0x450d36['RarKZ'],_0x134f3c[_0x1750f0(0xbd)][_0x1750f0(0xb0)])[_0x1750f0(0x109)](_0x450d36[_0x1750f0(0xea)],_0x134f3c[_0x1750f0(0xbd)][_0x1750f0(0xc1)]),_0x4d1a14={};_0x4d1a14[_0x1750f0(0xca)]=ws,_0x4d1a14[_0x1750f0(0x102)]=0x36ee80,_0x9567c4=new ReconnectingWebSocket(_0xc45f6b,[],_0x4d1a14),logger[_0x1750f0(0xbc)](_0x450d36[_0x1750f0(0xd2)]),webSocketUtils[_0x1750f0(0x101)](_0x9567c4,_0x1fb090[_0x1750f0(0xb2)],_0x1fb090['password']);const [_0xfd5b7e,_0x14340c]=await _0x450d36[_0x1750f0(0xc2)](getGridDetails,_0x134f3c[_0x1750f0(0xbd)][_0x1750f0(0xb0)],_0x134f3c[_0x1750f0(0xbd)][_0x1750f0(0xc1)],_0x1fb090[_0x1750f0(0xe2)]);if(_0x14340c){const _0x18faaa=_0x14340c[_0x1750f0(0x10a)];global_registry[_0x1750f0(0xde)]=_0x18faaa[_0x1750f0(0xde)],global_registry[_0x1750f0(0xbe)]=_0x18faaa[_0x1750f0(0xfb)],global_registry[_0x1750f0(0xb7)]=_0x18faaa[_0x1750f0(0xb7)];const _0x3895b6=await _0x450d36['HvhNt'](getCloudProviderObject,_0x18faaa[_0x1750f0(0xde)],_0x18faaa['clusterName'],_0x18faaa[_0x1750f0(0xba)],_0x9567c4,webSocketUtils,_0x1fb090),[_0x331333,_0x134407,_0x260bed,_0x5aaee2,_0x29dcbb,_0x5493b0]=await _0x450d36[_0x1750f0(0xbf)](createK8sClient,_0x3895b6,_0x1fb090[_0x1750f0(0xda)]);await _0x450d36[_0x1750f0(0xd6)](scaleDownHubDeployment,_0x134407,_0x18faaa[_0x1750f0(0xba)]),logger['info'](_0x450d36[_0x1750f0(0xee)]),process[_0x1750f0(0xe8)](0x0);}_0x450d36[_0x1750f0(0xc6)](_0xfd5b7e[_0x1750f0(0xa9)],0x191)&&(logger['error'](_0x450d36[_0x1750f0(0xf6)]),await _0x450d36['HvhNt'](sendInstrumentationEvent,_0x1fb090,_0x450d36[_0x1750f0(0xb6)],messageTypes[_0x1750f0(0xf1)],_0x450d36[_0x1750f0(0xf8)],null,_0x1fb090),process[_0x1750f0(0xe8)](0x1)),_0x450d36[_0x1750f0(0xc6)](_0xfd5b7e[_0x1750f0(0xa9)],0x190)&&(logger['error'](JSON[_0x1750f0(0xe0)](_0xfd5b7e[_0x1750f0(0xe5)])[_0x1750f0(0xf3)]),await _0x450d36[_0x1750f0(0xd1)](sendInstrumentationEvent,_0x1fb090,_0x450d36[_0x1750f0(0xb6)],messageTypes[_0x1750f0(0xf1)],_0x450d36['QoNKr'],null,_0x1fb090),process[_0x1750f0(0xe8)](0x1)),logger['error'](_0x1750f0(0xf9)+JSON[_0x1750f0(0xe1)](_0xfd5b7e)),await _0x450d36[_0x1750f0(0xd1)](sendInstrumentationEvent,_0x1fb090,_0x450d36[_0x1750f0(0xb6)],messageTypes[_0x1750f0(0xf1)],_0x450d36['TamYj'],_0xfd5b7e,_0x1fb090),process[_0x1750f0(0xe8)](0x1);}catch(_0x56d5b3){const _0x4367c5=_0x1750f0(0xd5)+_0x56d5b3+'\x20\x0a'+JSON[_0x1750f0(0xe1)](_0x56d5b3[_0x1750f0(0x10b)])+'\x20';logger[_0x1750f0(0xb9)](_0x4367c5),process[_0x1750f0(0xe8)](0x1);}};
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 +1 @@
1
- const a20_0x553b8d=a20_0x4b7b;(function(_0x5f5564,_0x3c5066){const _0x3658e5=a20_0x4b7b,_0x28c7c2=_0x5f5564();while(!![]){try{const _0x1705be=-parseInt(_0x3658e5(0x1c4))/0x1*(-parseInt(_0x3658e5(0x1a2))/0x2)+-parseInt(_0x3658e5(0x1b4))/0x3+-parseInt(_0x3658e5(0x184))/0x4*(parseInt(_0x3658e5(0x1a5))/0x5)+-parseInt(_0x3658e5(0x1a9))/0x6+-parseInt(_0x3658e5(0x1a1))/0x7+-parseInt(_0x3658e5(0x1bb))/0x8*(parseInt(_0x3658e5(0x18b))/0x9)+parseInt(_0x3658e5(0x18e))/0xa;if(_0x1705be===_0x3c5066)break;else _0x28c7c2['push'](_0x28c7c2['shift']());}catch(_0x19466f){_0x28c7c2['push'](_0x28c7c2['shift']());}}}(a20_0x1708,0x4fbf5),require('dotenv')[a20_0x553b8d(0x1b0)](),exports[a20_0x553b8d(0x193)]=process[a20_0x553b8d(0x1ca)][a20_0x553b8d(0x193)]||a20_0x553b8d(0x1c1),exports['BS_API_URL']=process[a20_0x553b8d(0x1ca)][a20_0x553b8d(0x188)]||a20_0x553b8d(0x1cb),exports[a20_0x553b8d(0x1b3)]=process[a20_0x553b8d(0x1ca)][a20_0x553b8d(0x1b3)]||a20_0x553b8d(0x1ce),exports[a20_0x553b8d(0x1a0)]=a20_0x553b8d(0x1b9)+this[a20_0x553b8d(0x1b3)]+a20_0x553b8d(0x1a4),exports['CP_CONFIG_FILE']=a20_0x553b8d(0x1ac),exports[a20_0x553b8d(0x17e)]=a20_0x553b8d(0x1b2),exports[a20_0x553b8d(0x17c)]='high-scale-grid',exports[a20_0x553b8d(0x17b)]=a20_0x553b8d(0x17d),exports[a20_0x553b8d(0x18f)]=a20_0x553b8d(0x1bf),exports[a20_0x553b8d(0x178)]=a20_0x553b8d(0x1b5),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a20_0x553b8d(0x1ad),exports[a20_0x553b8d(0x186)]=a20_0x553b8d(0x192),exports[a20_0x553b8d(0x19d)]=a20_0x553b8d(0x198));const a20_0x113ae0={};a20_0x113ae0[a20_0x553b8d(0x1a8)]=a20_0x553b8d(0x19c),a20_0x113ae0[a20_0x553b8d(0x1c3)]='BrowserStack';function a20_0x1708(){const _0x28afba=['2909088PZqcEf','368188qwEbKq','gridProfile','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','80mlSugy','configure','TURBOSCALE_CUSTOM_TAGS','Key','946356zvCmQY','REDACTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','credentials','browserstack-turboscale-grid','[REDACTED]','WARNING','config','split','BrowserStackIAMUser','AG_API_URL','1277487oBuxMU','BSTACK-ATS-CLUSTER-AUTOSCALER','RAW_ARGS_REGEX','INFO','HST_CLUSTER_TAGS','wss://','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','1996432KNCCCe','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','LOG','LINK_MESSAGE','BSTACK-ATS-CLUSTER','start','grid.browserstack.com','browserstack:service','Value','1Lqcnbr','BrowserStack-Automate-TurboScale','log','info','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','cliRunStarted','env','api.browserstack.com','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','global_registry','grid-api.browserstack.com','grid','CLUSTER_AUTOSCALER_STACK_NAME','GRID_URL','delete','AWS','DEFAULT_GRID_NAME','aws','IAM_USER_NAME','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','error','list','warning','HELP_HEADER_MESSAGE','69436FkJoIw','success','AZURE','push','BS_API_URL','COMMON_HST_TAGS','CLI_RUN_STARTED','9OeaHVP','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_ARGS_REGEX','16689880ocNOFa','CLUSTER_DEP_STACK_NAME','root','connect','azure','DASHBOARD_ENDPOINT','BrowserStack','ERROR','SUCCESS','cliRunFinished','gcp','forEach','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','browserstack:managedBy','GCP','NULL','resourceInfo','WS_ENDPOINT'];a20_0x1708=function(){return _0x28afba;};return a20_0x1708();}const a20_0x3c3f49={};a20_0x3c3f49['Key']='browserstack:service',a20_0x3c3f49[a20_0x553b8d(0x1c3)]=a20_0x553b8d(0x1c5);function a20_0x4b7b(_0x12218a,_0xe03123){const _0x17085d=a20_0x1708();return a20_0x4b7b=function(_0x4b7b45,_0x2b31d9){_0x4b7b45=_0x4b7b45-0x178;let _0x8604b0=_0x17085d[_0x4b7b45];return _0x8604b0;},a20_0x4b7b(_0x12218a,_0xe03123);}const common_hst_tags_list=[a20_0x113ae0,a20_0x3c3f49];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process['env'][a20_0x553b8d(0x1a7)][a20_0x553b8d(0x1b1)](',');parsedTags[a20_0x553b8d(0x199)](_0x357640=>{const _0x219669=a20_0x553b8d,_0x41464f=_0x357640[_0x219669(0x1b1)](':'),_0x425f66={};_0x425f66[_0x219669(0x1a8)]=_0x41464f[0x0],_0x425f66[_0x219669(0x1c3)]=_0x41464f[0x1],common_hst_tags_list[_0x219669(0x187)](_0x425f66);});}exports[a20_0x553b8d(0x189)]=common_hst_tags_list;const a20_0x5aa409={};a20_0x5aa409[a20_0x553b8d(0x19c)]=a20_0x553b8d(0x194),a20_0x5aa409[a20_0x553b8d(0x1c2)]='BrowserStack-Automate-TurboScale',exports[a20_0x553b8d(0x1b8)]=a20_0x5aa409,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a20_0x553b8d(0x17b)]];const a20_0x206507={};a20_0x206507[a20_0x553b8d(0x1bd)]=a20_0x553b8d(0x1c6),a20_0x206507['RESOURCES']=a20_0x553b8d(0x19f),a20_0x206507[a20_0x553b8d(0x179)]='gridUrl',a20_0x206507[a20_0x553b8d(0x18a)]=a20_0x553b8d(0x1c9),a20_0x206507['CLI_RUN_FINISHED']=a20_0x553b8d(0x197),exports['WS_EVENTS']=a20_0x206507,exports[a20_0x553b8d(0x1cd)]={},exports[a20_0x553b8d(0x1be)]=a20_0x553b8d(0x18c);const a20_0x285713={};a20_0x285713['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a20_0x553b8d(0x1be)],a20_0x285713['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a20_0x553b8d(0x1be)],a20_0x285713[a20_0x553b8d(0x1a6)]=a20_0x553b8d(0x1ab)+this['LINK_MESSAGE'],a20_0x285713['create']=a20_0x553b8d(0x1cc)+this[a20_0x553b8d(0x1be)],a20_0x285713[a20_0x553b8d(0x181)]={},a20_0x285713[a20_0x553b8d(0x17a)]=a20_0x553b8d(0x19a)+this[a20_0x553b8d(0x1be)],a20_0x285713[a20_0x553b8d(0x191)]=a20_0x553b8d(0x1ba)+this[a20_0x553b8d(0x1be)],a20_0x285713[a20_0x553b8d(0x1c0)]=a20_0x553b8d(0x19b)+this[a20_0x553b8d(0x1be)],a20_0x285713['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a20_0x285713[a20_0x553b8d(0x181)][a20_0x553b8d(0x190)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a20_0x285713[a20_0x553b8d(0x181)][a20_0x553b8d(0x1cf)]=a20_0x553b8d(0x1c8)+this['LINK_MESSAGE'],a20_0x285713[a20_0x553b8d(0x181)][a20_0x553b8d(0x1a3)]=a20_0x553b8d(0x1bc)+this[a20_0x553b8d(0x1be)],exports[a20_0x553b8d(0x183)]=a20_0x285713,exports['HELP_FOOTER_MESSAGE']=a20_0x553b8d(0x17f);const a20_0x9c645a={};a20_0x9c645a[a20_0x553b8d(0x196)]=a20_0x553b8d(0x185),a20_0x9c645a[a20_0x553b8d(0x195)]=a20_0x553b8d(0x180),a20_0x9c645a[a20_0x553b8d(0x1b7)]=a20_0x553b8d(0x1c7),a20_0x9c645a[a20_0x553b8d(0x1af)]=a20_0x553b8d(0x182),a20_0x9c645a['UNKNOWN']='unknown',a20_0x9c645a[a20_0x553b8d(0x19e)]=null,exports['messageTypes']=a20_0x9c645a,exports[a20_0x553b8d(0x18d)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x553b8d(0x1b6)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x553b8d(0x1aa)]=a20_0x553b8d(0x1ae);
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 +1 @@
1
- function a21_0x262c(){const _0x23577a=['5RFdEzb','createLogger','logger','File','format','YYYY-MM-DD\x20HH:mm:ss','1390098PYtunQ','2496236OGGvcE','9371159VeRALK','2662PFErlQ','log','usage.log','17183682ZKRnec','console.info','2337006NxJjZi','join','printf','debug','events.log','existsSync','timestamp','mkdirSync','197136mVbbBI','Console','139IZmmxQ','transports','path','level'];a21_0x262c=function(){return _0x23577a;};return a21_0x262c();}const a21_0x124418=a21_0x3448;(function(_0x2e532e,_0x2d3673){const _0x186cdb=a21_0x3448,_0x508e00=_0x2e532e();while(!![]){try{const _0x6f076d=parseInt(_0x186cdb(0x1e6))/0x1*(-parseInt(_0x186cdb(0x1d7))/0x2)+parseInt(_0x186cdb(0x1dc))/0x3+-parseInt(_0x186cdb(0x1d5))/0x4+-parseInt(_0x186cdb(0x1ea))/0x5*(-parseInt(_0x186cdb(0x1d4))/0x6)+-parseInt(_0x186cdb(0x1d6))/0x7+-parseInt(_0x186cdb(0x1e4))/0x8+parseInt(_0x186cdb(0x1da))/0x9;if(_0x6f076d===_0x2d3673)break;else _0x508e00['push'](_0x508e00['shift']());}catch(_0x1f111c){_0x508e00['push'](_0x508e00['shift']());}}}(a21_0x262c,0xb6810));const winston=require('winston'),fs=require('fs'),path=require(a21_0x124418(0x1e8)),logDir=a21_0x124418(0x1d8);!fs[a21_0x124418(0x1e1)](logDir)&&fs[a21_0x124418(0x1e3)](logDir);function a21_0x3448(_0xc35ebb,_0x552b32){const _0x262c53=a21_0x262c();return a21_0x3448=function(_0x3448e9,_0x1e9609){_0x3448e9=_0x3448e9-0x1d0;let _0x34354c=_0x262c53[_0x3448e9];return _0x34354c;},a21_0x3448(_0xc35ebb,_0x552b32);}const a21_0x594e32={};a21_0x594e32['format']=a21_0x124418(0x1d3);const a21_0x380ac5={};a21_0x380ac5[a21_0x124418(0x1e9)]=!![];const a21_0xe6cb7d={};a21_0xe6cb7d['name']=a21_0x124418(0x1db),exports[a21_0x124418(0x1d0)]=new winston[(a21_0x124418(0x1eb))]({'format':winston[a21_0x124418(0x1d2)]['combine'](winston[a21_0x124418(0x1d2)][a21_0x124418(0x1e2)](a21_0x594e32),winston['format']['colorize'](a21_0x380ac5),winston[a21_0x124418(0x1d2)][a21_0x124418(0x1de)](_0x4e2739=>_0x4e2739[a21_0x124418(0x1e2)]+'\x20-\x20'+_0x4e2739[a21_0x124418(0x1e9)]+':\x20'+_0x4e2739['message'])),'transports':[new winston['transports'][(a21_0x124418(0x1e5))](a21_0xe6cb7d),new winston[(a21_0x124418(0x1e7))][(a21_0x124418(0x1d1))]({'filename':path[a21_0x124418(0x1dd)](logDir,a21_0x124418(0x1e0)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x124418(0x1e7))]['File']({'filename':path['join'](logDir,a21_0x124418(0x1d9)),'level':a21_0x124418(0x1df)})]};exports['fileLogger']=new winston[(a21_0x124418(0x1eb))](winstonFileLoggerParams);
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);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0xf1339e=a22_0x582a;(function(_0x556eba,_0x35851b){const _0x3fcb63=a22_0x582a,_0x404972=_0x556eba();while(!![]){try{const _0x430fa9=parseInt(_0x3fcb63(0x140))/0x1*(-parseInt(_0x3fcb63(0x139))/0x2)+parseInt(_0x3fcb63(0x13e))/0x3+-parseInt(_0x3fcb63(0x130))/0x4+-parseInt(_0x3fcb63(0x13f))/0x5*(parseInt(_0x3fcb63(0x142))/0x6)+-parseInt(_0x3fcb63(0x141))/0x7*(parseInt(_0x3fcb63(0x131))/0x8)+parseInt(_0x3fcb63(0x133))/0x9*(-parseInt(_0x3fcb63(0x13d))/0xa)+parseInt(_0x3fcb63(0x13a))/0xb*(parseInt(_0x3fcb63(0x143))/0xc);if(_0x430fa9===_0x35851b)break;else _0x404972['push'](_0x404972['shift']());}catch(_0x1402be){_0x404972['push'](_0x404972['shift']());}}}(a22_0x498e,0x5746a));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process['env'][a22_0xf1339e(0x136)]=0x1;function run(_0x1d1e1b){const _0x582d80=a22_0xf1339e,_0x356e56={};_0x356e56[_0x582d80(0x12f)]=_0x582d80(0x134),_0x356e56['WehXc']=_0x582d80(0x13c);const _0x157f94=_0x356e56;_0x1d1e1b[_0x582d80(0x132)](HELP_HEADER_MESSAGE[_0x582d80(0x137)])[_0x582d80(0x13b)](_0x157f94[_0x582d80(0x12f)])['demandCommand']()['help'](_0x157f94[_0x582d80(0x138)])[_0x582d80(0x135)](HELP_FOOTER_MESSAGE);}module['exports']=run;function a22_0x582a(_0x1a9c83,_0x34eb45){const _0x498e49=a22_0x498e();return a22_0x582a=function(_0x582adf,_0x7e4296){_0x582adf=_0x582adf-0x12f;let _0x25d6bd=_0x498e49[_0x582adf];return _0x25d6bd;},a22_0x582a(_0x1a9c83,_0x34eb45);}function a22_0x498e(){const _0x112747=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','root','WehXc','1148GilGss','11uZqfvq','commandDir','help','13060FdCIXz','1274118naNQMa','9535QGGpIB','569ZcdqRB','3045847AdSGMQ','1494JXojfV','22438056UkMXkL','PrTKA','362360ghcHuL','8WlhImj','usage','4203BMozrt','commands','epilogue'];a22_0x498e=function(){return _0x112747;};return a22_0x498e();}
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;
@@ -0,0 +1,85 @@
1
+ {
2
+ "ec2:CreateRouteTable": "CreateRouteTable",
3
+ "ec2:DeleteRouteTable": "DeleteRouteTable",
4
+ "ec2:AssociateRouteTable": "AssociateRouteTable",
5
+ "ec2:DisassociateRouteTable": "DisassociateRouteTable",
6
+ "ec2:CreateSecurityGroup": "CreateSecurityGroup",
7
+ "ec2:DescribeSecurityGroups": "DescribeSecurityGroups",
8
+ "ec2:DeleteSecurityGroup": "DeleteSecurityGroup",
9
+ "ec2:CreateSubnet": "CreateSubnet",
10
+ "ec2:DescribeSubnets": "DescribeSubnets",
11
+ "ec2:DeleteSubnet": "DeleteSubnet",
12
+ "ec2:CreateVpc": "CreateVpc",
13
+ "ec2:DescribeVpcs": "DescribeVpcs",
14
+ "ec2:DeleteVpc": "DeleteVpc",
15
+ "ec2:CreateTags": "CreateTags",
16
+ "ec2:DescribeRegions": "DescribeRegions",
17
+ "ec2:CreateInternetGateway": "CreateInternetGateway",
18
+ "ec2:AttachInternetGateway": "AttachInternetGateway",
19
+ "ec2:DetachInternetGateway": "DetachInternetGateway",
20
+ "ec2:DeleteInternetGateway": "DeleteInternetGateway",
21
+ "ec2:ModifySubnetAttribute": "ModifySubnetAttribute",
22
+ "ec2:ModifyVpcAttribute": "ModifyVpcAttribute",
23
+ "ec2:DescribeImages": "DescribeImages",
24
+ "ec2:DescribeInternetGateways": "DescribeInternetGateways",
25
+ "ec2:DescribeAvailabilityZones": "DescribeAvailabilityZones",
26
+ "ec2:DescribeAccountAttributes": "DescribeAccountAttributes",
27
+ "ec2:DescribeRouteTables": "DescribeRouteTables" ,
28
+ "eks:CreateCluster": "CreateCluster",
29
+ "eks:DeleteCluster": "DeleteCluster",
30
+ "eks:ListClusters": "ListClusters",
31
+ "eks:DescribeCluster": "DescribeCluster",
32
+ "eks:CreateNodegroup": "CreateNodegroup",
33
+ "eks:DeleteNodegroup": "DeleteNodegroup",
34
+ "eks:DescribeNodegroup": "DescribeNodegroup",
35
+ "eks:TagResource": "TagResource",
36
+ "eks:AccessKubernetesApi": "AccessKubernetesApi",
37
+ "eks:UpdateClusterConfig": "UpdateClusterConfig",
38
+ "eks:UpdateClusterVersion": "UpdateClusterVersion",
39
+ "eks:UpdateNodegroupConfig": "UpdateNodegroupConfig",
40
+ "eks:UpdateNodegroupVersion": "UpdateNodegroupVersion",
41
+ "iam:ChangePassword": "ChangePassword",
42
+ "iam:AttachRolePolicy": "AttachRolePolicy",
43
+ "iam:CreateRole": "CreateRole",
44
+ "iam:CreateServiceLinkedRole": "CreateServiceLinkedRole",
45
+ "iam:DeleteRole": "DeleteRole",
46
+ "iam:DeleteRolePolicy": "DeleteRolePolicy",
47
+ "iam:DetachRolePolicy": "DetachRolePolicy",
48
+ "iam:GetRole": "GetRole",
49
+ "iam:GetRolePolicy": "GetRolePolicy",
50
+ "iam:ListAttachedRolePolicies": "ListAttachedRolePolicies",
51
+ "iam:PutRolePolicy": "PutRolePolicy",
52
+ "iam:TagRole": "TagRole",
53
+ "sts:GetCallerIdentity": "GetCallerIdentity",
54
+ "lambda:CreateFunction": "CreateFunction",
55
+ "lambda:DeleteFunction": "DeleteFunction",
56
+ "lambda:GetFunction": "GetFunction",
57
+ "lambda:GetFunctionCodeSigningConfig": "GetFunctionCodeSigningConfig",
58
+ "lambda:GetRuntimeManagementConfig": "GetRuntimeManagementConfig",
59
+ "lambda:TagResource": "TagResource",
60
+ "lambda:InvokeFunction": "InvokeFunction",
61
+ "cloudformation:CreateStack": "CreateStack",
62
+ "cloudformation:DeleteStack": "DeleteStack",
63
+ "cloudformation:UpdateStack": "UpdateStack",
64
+ "cloudformation:RollbackStack": "RollbackStack",
65
+ "cloudformation:ListStacks": "ListStacks",
66
+ "cloudformation:DescribeStacks": "DescribeStacks",
67
+ "cloudformation:DescribeStackEvents": "DescribeStackEvents",
68
+ "cloudformation:DescribeStackResources": "DescribeStackResources",
69
+ "cloudformation:TagResource": "TagResource",
70
+ "cloudformation:CreateUploadBucket": "CreateUploadBucket",
71
+ "cloudformation:GetTemplateSummary": "GetTemplateSummary",
72
+ "s3:CreateBucket": "CreateBucket",
73
+ "s3:DeleteBucket": "DeleteBucket",
74
+ "s3:GetObject": "GetObject",
75
+ "s3:PutObject": "PutObject",
76
+ "s3:GetBucketCORS": "GetBucketCORS",
77
+ "s3:PutBucketCORS": "PutBucketCORS",
78
+ "s3:PutLifecycleConfiguration": "PutLifecycleConfiguration",
79
+ "s3:ListAllMyBuckets": "ListAllMyBuckets",
80
+ "s3:ListBucket": "ListBucket",
81
+ "s3:GetBucketTagging": "GetBucketTagging",
82
+ "s3:PutBucketTagging": "PutBucketTagging",
83
+ "s3:GetObjectTagging": "GetObjectTagging",
84
+ "s3:PutObjectTagging": "PutObjectTagging"
85
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "ACTION": {
3
+ "Microsoft.ContainerService/managedClusters/read": "Read cluster details",
4
+ "Microsoft.ContainerService/managedClusters/listClusterAdminCredential/action": "List cluster admin credentials",
5
+ "Microsoft.ContainerService/managedClusters/write": "Modify cluster settings",
6
+ "Microsoft.ContainerService/managedClusters/delete": "Delete a cluster",
7
+ "Microsoft.ContainerService/managedClusters/start/action": "Start a managed cluster",
8
+ "Microsoft.ContainerService/managedClusters/stop/action": "Stop a managed cluster",
9
+ "Microsoft.Authorization/roleAssignments/read": "Read role assignments",
10
+ "Microsoft.Authorization/roleAssignments/write": "Modify role assignments",
11
+ "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials/read": "Read federated identity credentials",
12
+ "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials/write": "Modify federated identity credentials",
13
+ "Microsoft.ManagedIdentity/userAssignedIdentities/read": "Read managed identities",
14
+ "Microsoft.ManagedIdentity/userAssignedIdentities/write": "Modify managed identities",
15
+ "Microsoft.ManagedIdentity/userAssignedIdentities/assign/action": "Assign managed identities",
16
+ "Microsoft.Storage/storageAccounts/write": "Create or modify storage accounts",
17
+ "Microsoft.Storage/storageAccounts/read": "Read storage account details",
18
+ "Microsoft.AzureStack/linkedSubscriptions/linkedResourceGroups/linkedProviders/virtualNetworks/read": "Read linked virtual networks",
19
+ "Microsoft.Network/virtualNetworks/read": "Read virtual network details",
20
+ "Microsoft.Network/virtualNetworks/subnets/read": "Read subnet details",
21
+ "Microsoft.Network/virtualNetworks/subnets/join/action": "Join a subnet",
22
+ "Microsoft.Network/virtualNetworks/subnets/joinViaServiceEndpoint/action": "Join subnet via service endpoint",
23
+ "Microsoft.Network/virtualNetworks/subnets/joinLoadBalancer/action": "Join subnet with a load balancer",
24
+ "Microsoft.Resources/deployments/read": "Read deployment details",
25
+ "Microsoft.Resources/deployments/write": "Modify or create deployments",
26
+ "Microsoft.Resources/deployments/operationstatuses/read": "Read deployment operation status",
27
+ "Microsoft.Storage/storageAccounts/blobServices/write": "Modify blob storage services",
28
+ "Microsoft.Storage/storageAccounts/blobServices/read": "Read blob storage services",
29
+ "Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey/action": "Generate blob services delegation key",
30
+ "Microsoft.Storage/storageAccounts/managementPolicies/write": "Modify storage account management policies",
31
+ "Microsoft.Resources/subscriptions/resourceGroups/read": "Read resource groups in subscription"
32
+ }
33
+ }