browserstack-node-sdk 1.32.6 → 1.32.8

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 (116) 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/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/templates/azureresources/akscluster.json +57 -3
  25. package/ats/src/templates/azureresources/storageaccount.json +8 -8
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createk8sClient.js +1 -1
  30. package/ats/src/utils/deleteStack.js +1 -1
  31. package/ats/src/utils/gridComponents.js +1 -1
  32. package/ats/src/utils/hstUtils.js +1 -1
  33. package/ats/src/utils/instrumentationUtils.js +1 -1
  34. package/ats/src/utils/userInput.js +1 -1
  35. package/ats/src/utils/utilityMethods.js +1 -1
  36. package/ats/src/utils/webSocketUtils.js +1 -1
  37. package/package.json +1 -1
  38. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  39. package/src/bin/codeceptjs/command.js +1 -1
  40. package/src/bin/codeceptjs/helper.js +1 -1
  41. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  42. package/src/bin/cucumber-js/command.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  44. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/jest/command.js +1 -1
  49. package/src/bin/jest/customImplements/customCircus.js +1 -1
  50. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  51. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  52. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  53. package/src/bin/jest/jest.setup.js +1 -1
  54. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  55. package/src/bin/jest/test-observability/helper.js +1 -1
  56. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  57. package/src/bin/jest/test-observability/test-details.js +1 -1
  58. package/src/bin/jest/test_before.setup.js +1 -1
  59. package/src/bin/launcher/launcher.js +1 -1
  60. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  61. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  62. package/src/bin/mocha/command.js +1 -1
  63. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  64. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  65. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  66. package/src/bin/mocha/test.setup.js +1 -1
  67. package/src/bin/nightwatch/command.js +1 -1
  68. package/src/bin/playwright/accessibility-helper.js +1 -1
  69. package/src/bin/playwright/command.js +1 -1
  70. package/src/bin/playwright/globalSetup.js +1 -1
  71. package/src/bin/playwright/mock-process.js +1 -1
  72. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  73. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  74. package/src/bin/playwright/reporter/reporter.js +1 -1
  75. package/src/bin/playwright/reporter/test-details.js +1 -1
  76. package/src/bin/playwright/sessionDetails.js +1 -1
  77. package/src/bin/runner.js +1 -1
  78. package/src/bin/setup.js +1 -1
  79. package/src/bin/test-runner/index.js +1 -1
  80. package/src/bin/test-runner/runTest.js +1 -1
  81. package/src/bin/test-runner/testWorker.js +1 -1
  82. package/src/bin/utils/constants.js +1 -1
  83. package/src/bin/utils/log4jsAppender.js +1 -1
  84. package/src/bin/utils/logPatcher.js +1 -1
  85. package/src/bin/utils/logReportingAPI.js +1 -1
  86. package/src/bin/vanilla-js/command.js +1 -1
  87. package/src/browserStackSdk.js +1 -1
  88. package/src/helpers/BrowserStackSetup.js +1 -1
  89. package/src/helpers/accessibility-automation/constants.js +1 -1
  90. package/src/helpers/accessibility-automation/helper.js +1 -1
  91. package/src/helpers/accessibility-automation/scripts.js +1 -1
  92. package/src/helpers/ats/constants.js +1 -1
  93. package/src/helpers/ats/helper.js +1 -1
  94. package/src/helpers/capsMapping.js +1 -1
  95. package/src/helpers/globals.js +1 -1
  96. package/src/helpers/helper.js +1 -1
  97. package/src/helpers/logger.js +1 -1
  98. package/src/helpers/patchHelpers.js +1 -1
  99. package/src/helpers/percy/Percy.js +1 -1
  100. package/src/helpers/percy/PercyBinary.js +1 -1
  101. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  102. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  103. package/src/helpers/percy/PercySDK.js +1 -1
  104. package/src/helpers/percy/index.js +1 -1
  105. package/src/helpers/percy/utils.js +1 -1
  106. package/src/helpers/performance-tester.js +1 -1
  107. package/src/helpers/request-spy.js +1 -1
  108. package/src/helpers/setKeepAlive.js +1 -1
  109. package/src/helpers/test-observability/constants.js +1 -1
  110. package/src/helpers/test-observability/error-handler.js +1 -1
  111. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  112. package/src/helpers/test-observability/sessionHandler.js +1 -1
  113. package/src/helpers/test-observability/utils.js +1 -1
  114. package/src/helpers/w3cMapping.js +1 -1
  115. package/src/hubAllocationMethods.js +1 -1
  116. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a13_0x4f96a3=a13_0x4f03;function a13_0x30c6(){const _0x4b1b8b=['KOwQr','help','9752225lYBguN','command','47452akyHYv','commandDir','builder','desc','demandCommand','PATuP','8IrFLqz','epilogue','root','4257TDXwci','7293846lXHYJY','19220xYtzhB','recommendCommands','list_commands','3193040yVudme','3109707cVkIAY','list','List\x20down\x20the\x20Grid\x20resources.','46wPsKAY','usage','14388KHMbeG','308WndWRJ','handler'];a13_0x30c6=function(){return _0x4b1b8b;};return a13_0x30c6();}(function(_0x28e632,_0x59b87d){const _0x577aaf=a13_0x4f03,_0xb5ab88=_0x28e632();while(!![]){try{const _0x20796d=-parseInt(_0x577aaf(0x1e1))/0x1*(parseInt(_0x577aaf(0x1d8))/0x2)+-parseInt(_0x577aaf(0x1da))/0x3*(parseInt(_0x577aaf(0x1db))/0x4)+parseInt(_0x577aaf(0x1d4))/0x5+parseInt(_0x577aaf(0x1eb))/0x6+-parseInt(_0x577aaf(0x1df))/0x7*(-parseInt(_0x577aaf(0x1e7))/0x8)+-parseInt(_0x577aaf(0x1d5))/0x9+-parseInt(_0x577aaf(0x1ec))/0xa*(parseInt(_0x577aaf(0x1ea))/0xb);if(_0x20796d===_0x59b87d)break;else _0xb5ab88['push'](_0xb5ab88['shift']());}catch(_0x2a54fb){_0xb5ab88['push'](_0xb5ab88['shift']());}}}(a13_0x30c6,0xaa437));function a13_0x4f03(_0x245801,_0x3e244d){const _0x30c6ff=a13_0x30c6();return a13_0x4f03=function(_0x4f034b,_0x4fecfd){_0x4f034b=_0x4f034b-0x1d4;let _0xfe6554=_0x30c6ff[_0x4f034b];return _0xfe6554;},a13_0x4f03(_0x245801,_0x3e244d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x4f96a3(0x1e0)]='list',exports[a13_0x4f96a3(0x1e4)]=a13_0x4f96a3(0x1d7),exports[a13_0x4f96a3(0x1e3)]=function(_0x546313){const _0x4fc93b=a13_0x4f96a3,_0x4026ad={};_0x4026ad[_0x4fc93b(0x1dd)]=_0x4fc93b(0x1ee),_0x4026ad[_0x4fc93b(0x1e6)]=_0x4fc93b(0x1de);const _0x27f738=_0x4026ad;return _0x546313[_0x4fc93b(0x1e2)](_0x27f738[_0x4fc93b(0x1dd)])[_0x4fc93b(0x1e5)]()[_0x4fc93b(0x1d9)](HELP_HEADER_MESSAGE[_0x4fc93b(0x1d6)][_0x4fc93b(0x1e9)])[_0x4fc93b(0x1e8)](HELP_FOOTER_MESSAGE)[_0x4fc93b(0x1ed)]()['strict']()['help'](_0x27f738[_0x4fc93b(0x1e6)]);},exports[a13_0x4f96a3(0x1dc)]=function(_0xf07540){};
1
+ function a13_0x2ca3(){const _0x2a8355=['21458SGiinc','handler','usage','126269ktutKC','DhPNM','help','list_commands','2096072rKWsBQ','2453556cpEOmL','55YDsjGp','493503egQDwK','../config/constants','88716fSkyGN','mdMPt','epilogue','30HMLLLd','builder','240mRTQWI','29oUZtRP','root','4mwZyjB','List\x20down\x20the\x20Grid\x20resources.','list','348930dzVOfs','desc','strict','demandCommand','18oStxAc'];a13_0x2ca3=function(){return _0x2a8355;};return a13_0x2ca3();}function a13_0x2a5f(_0x6d8716,_0xc8463e){const _0x2ca3f1=a13_0x2ca3();return a13_0x2a5f=function(_0x2a5ffd,_0x46c6e9){_0x2a5ffd=_0x2a5ffd-0x1d5;let _0x8e7bb9=_0x2ca3f1[_0x2a5ffd];return _0x8e7bb9;},a13_0x2a5f(_0x6d8716,_0xc8463e);}const a13_0x3890ac=a13_0x2a5f;(function(_0xf59f91,_0x43358d){const _0x5ad4ad=a13_0x2a5f,_0x3a00e1=_0xf59f91();while(!![]){try{const _0x155213=-parseInt(_0x5ad4ad(0x1e3))/0x1*(parseInt(_0x5ad4ad(0x1ed))/0x2)+-parseInt(_0x5ad4ad(0x1db))/0x3*(-parseInt(_0x5ad4ad(0x1e5))/0x4)+parseInt(_0x5ad4ad(0x1e0))/0x5*(-parseInt(_0x5ad4ad(0x1dd))/0x6)+parseInt(_0x5ad4ad(0x1d9))/0x7+parseInt(_0x5ad4ad(0x1d8))/0x8*(parseInt(_0x5ad4ad(0x1ec))/0x9)+parseInt(_0x5ad4ad(0x1e8))/0xa*(-parseInt(_0x5ad4ad(0x1da))/0xb)+parseInt(_0x5ad4ad(0x1e2))/0xc*(-parseInt(_0x5ad4ad(0x1f0))/0xd);if(_0x155213===_0x43358d)break;else _0x3a00e1['push'](_0x3a00e1['shift']());}catch(_0x1ccb23){_0x3a00e1['push'](_0x3a00e1['shift']());}}}(a13_0x2ca3,0x4206d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3890ac(0x1dc));exports['command']=a13_0x3890ac(0x1e7),exports[a13_0x3890ac(0x1e9)]=a13_0x3890ac(0x1e6),exports[a13_0x3890ac(0x1e1)]=function(_0x3f64f1){const _0x4352a4=a13_0x3890ac,_0x5b318b={};_0x5b318b[_0x4352a4(0x1de)]=_0x4352a4(0x1d7),_0x5b318b[_0x4352a4(0x1d5)]='help';const _0x4f31d1=_0x5b318b;return _0x3f64f1['commandDir'](_0x4f31d1[_0x4352a4(0x1de)])[_0x4352a4(0x1eb)]()[_0x4352a4(0x1ef)](HELP_HEADER_MESSAGE['list'][_0x4352a4(0x1e4)])[_0x4352a4(0x1df)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x4352a4(0x1ea)]()[_0x4352a4(0x1d6)](_0x4f31d1['DhPNM']);},exports[a13_0x3890ac(0x1ee)]=function(_0x4f3392){};
@@ -1 +1 @@
1
- const a14_0x272cd4=a14_0x5a49;function a14_0x5a49(_0x127062,_0xf570a5){const _0x17530c=a14_0x1753();return a14_0x5a49=function(_0x5a49d5,_0x406dc9){_0x5a49d5=_0x5a49d5-0x167;let _0x3b3fc4=_0x17530c[_0x5a49d5];return _0x3b3fc4;},a14_0x5a49(_0x127062,_0xf570a5);}(function(_0x3e93eb,_0x18c134){const _0x3aa486=a14_0x5a49,_0x2de955=_0x3e93eb();while(!![]){try{const _0x377562=-parseInt(_0x3aa486(0x171))/0x1+-parseInt(_0x3aa486(0x188))/0x2*(parseInt(_0x3aa486(0x1a7))/0x3)+parseInt(_0x3aa486(0x18d))/0x4*(parseInt(_0x3aa486(0x16b))/0x5)+-parseInt(_0x3aa486(0x19b))/0x6+parseInt(_0x3aa486(0x18b))/0x7+-parseInt(_0x3aa486(0x199))/0x8+parseInt(_0x3aa486(0x192))/0x9*(parseInt(_0x3aa486(0x18e))/0xa);if(_0x377562===_0x18c134)break;else _0x2de955['push'](_0x2de955['shift']());}catch(_0x2c42c8){_0x2de955['push'](_0x2de955['shift']());}}}(a14_0x1753,0xeea10));function a14_0x1753(){const _0x251300=['stringify','region','2122itAWgw','help','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2286109XhPyKE','slUqN','3628Airias','30586030LtCAVE','wkrDG','uuid','cloud-provider','9oUHpJn','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','gridProfile','ybKWX','sMhFT','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Hhqjd','1265600yhoLAV','/packages/cli/get-all-grid-profiles','3494976cUztru','grid-profile-name','list-grid-profiles-called','Wmzxi','username','name','boolean','parse','PVlSJ','body','Obvjv','OHCSc','5178PRRSLR','cloudProvider','list','yFIcl','allGridProfiles','../../config/constants','ERROR','BbyuA','log','stack','kGqCa','GET','exit','statusCode','push','unauthorised','options','8870ZDyHNx','Browserstack','aghjP','password','forEach','table','1444802fNUIJJ','concurrency','yTwpp','https://','type','../../utils/utilityMethods','builder','argv','eJJNP','hzYep','bstackAccesskey','grid-profiles','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tMhQD','error','all-grid-profiles','Eclrq','Failed\x20to\x20list\x20resources!\x20Error:\x20','ZNgYM','unknown-error','jdtFC'];a14_0x1753=function(){return _0x251300;};return a14_0x1753();}const fs=require('fs'),got=require('got'),{table}=require(a14_0x272cd4(0x170)),{v4:uuidv4}=require(a14_0x272cd4(0x190)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x272cd4(0x1ac)),{getCredentialsPath,getAuthHeader}=require(a14_0x272cd4(0x176)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a14_0x272cd4(0x17c),exports['desc']=a14_0x272cd4(0x197),exports[a14_0x272cd4(0x177)]=function(_0x45e151){const _0x3cd538=a14_0x272cd4,_0x498874={};_0x498874[_0x3cd538(0x1a3)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x498874[_0x3cd538(0x17e)]=_0x3cd538(0x1a1),_0x498874[_0x3cd538(0x19e)]=_0x3cd538(0x189);const _0x4f4bc7=_0x498874,_0x23730e={};_0x23730e['description']=_0x4f4bc7['PVlSJ'],_0x23730e[_0x3cd538(0x175)]=_0x4f4bc7[_0x3cd538(0x17e)];const _0x449ffa={};return _0x449ffa[_0x3cd538(0x180)]=_0x23730e,_0x45e151['usage'](HELP_HEADER_MESSAGE[_0x3cd538(0x1a9)][_0x3cd538(0x194)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3cd538(0x16a)](_0x449ffa)[_0x3cd538(0x189)](_0x4f4bc7[_0x3cd538(0x19e)])[_0x3cd538(0x178)];},exports['handler']=async function(_0x4056cc){const _0x590ec6=a14_0x272cd4,_0x10523a={'yFIcl':function(_0x15e2b2){return _0x15e2b2();},'xCceW':_0x590ec6(0x17d),'OHCSc':function(_0x593ba9,_0x3bfa14,_0x483b3b,_0x3087bf,_0x1868c7,_0x4b62f5,_0x4941cf){return _0x593ba9(_0x3bfa14,_0x483b3b,_0x3087bf,_0x1868c7,_0x4b62f5,_0x4941cf);},'Hhqjd':_0x590ec6(0x19d),'wkrDG':'init-not-called','qjPcI':function(_0x1d63e8){return _0x1d63e8();},'Eclrq':_0x590ec6(0x1b2),'cwBeZ':function(_0x30422d,_0x235a41,_0x189b8a){return _0x30422d(_0x235a41,_0x189b8a);},'sMhFT':function(_0x44477f,_0x25332d,_0x23cd88){return _0x44477f(_0x25332d,_0x23cd88);},'BbyuA':function(_0x24a935,_0x5d1636){return _0x24a935!==_0x5d1636;},'ZNgYM':function(_0x355da3,_0x3cb235){return _0x355da3!==_0x3cb235;},'hzYep':function(_0x1d3283,_0x349e47){return _0x1d3283===_0x349e47;},'FDnrj':_0x590ec6(0x193),'yTwpp':_0x590ec6(0x19c),'VLBJo':_0x590ec6(0x191),'slUqN':_0x590ec6(0x187),'aghjP':_0x590ec6(0x172),'jdtFC':function(_0x53143c,_0x3be70c){return _0x53143c(_0x3be70c);},'kGqCa':_0x590ec6(0x169),'dgpdf':function(_0x3a2679,_0x2095b5,_0x484c2b,_0x2c06e5,_0x3b4ed4,_0x467156,_0x3f2cd1){return _0x3a2679(_0x2095b5,_0x484c2b,_0x2c06e5,_0x3b4ed4,_0x467156,_0x3f2cd1);},'eJJNP':'server-error','Obvjv':function(_0x550292,_0x3ad066,_0x142119,_0x297424,_0x5cd0a9,_0x3f1108,_0x548786){return _0x550292(_0x3ad066,_0x142119,_0x297424,_0x5cd0a9,_0x3f1108,_0x548786);},'ybKWX':_0x590ec6(0x184)};try{global_registry['requestId']=_0x10523a['yFIcl'](uuidv4);let _0x7fef0c=_0x590ec6(0x174)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x4056cc[_0x590ec6(0x1ab)]&&(_0x7fef0c=_0x590ec6(0x174)+AG_API_URL+_0x590ec6(0x19a));!fs['existsSync'](_0x10523a[_0x590ec6(0x1aa)](getCredentialsPath))&&(console[_0x590ec6(0x17f)](_0x10523a['xCceW']),await _0x10523a[_0x590ec6(0x1a6)](sendInstrumentationEvent,_0x4056cc,_0x10523a[_0x590ec6(0x198)],messageTypes[_0x590ec6(0x1ad)],_0x10523a[_0x590ec6(0x18f)],null,_0x4056cc),process[_0x590ec6(0x1b3)](0x1));const _0x4bc95f=JSON[_0x590ec6(0x1a2)](fs['readFileSync'](_0x10523a['qjPcI'](getCredentialsPath))),_0xc4376={'method':_0x10523a[_0x590ec6(0x181)],'headers':_0x10523a['cwBeZ'](getAuthHeader,_0x4bc95f[_0x590ec6(0x16c)][_0x590ec6(0x19f)],_0x4bc95f[_0x590ec6(0x16c)][_0x590ec6(0x16e)])};global_registry['bstackUsername']=_0x4bc95f[_0x590ec6(0x16c)]['username'],global_registry[_0x590ec6(0x17b)]=_0x4bc95f['Browserstack']['password'],_0x10523a[_0x590ec6(0x1a6)](sendInstrumentationEvent,_0x4056cc,_0x10523a[_0x590ec6(0x198)],messageTypes['INFO'],null,null,_0x4056cc);const _0x24040c=await _0x10523a[_0x590ec6(0x196)](got,_0x7fef0c,_0xc4376);if(_0x10523a[_0x590ec6(0x1ae)](_0x24040c,null)&&_0x10523a[_0x590ec6(0x183)](_0x24040c,undefined)&&_0x10523a[_0x590ec6(0x17a)](_0x24040c[_0x590ec6(0x167)],0xc8)){const _0x49a39f=JSON[_0x590ec6(0x1a2)](_0x24040c[_0x590ec6(0x1a4)]);console[_0x590ec6(0x1af)](_0x10523a['FDnrj']);const _0x147cb5=[];_0x147cb5[_0x590ec6(0x168)]([_0x10523a[_0x590ec6(0x173)],_0x10523a['VLBJo'],_0x10523a[_0x590ec6(0x18c)],_0x10523a[_0x590ec6(0x16d)]]),_0x49a39f[_0x590ec6(0x16f)](_0x7b50fb=>{const _0x2af165=_0x590ec6;_0x147cb5[_0x2af165(0x168)]([_0x7b50fb[_0x2af165(0x1a0)],_0x7b50fb[_0x2af165(0x1a8)],_0x7b50fb[_0x2af165(0x187)],_0x7b50fb[_0x2af165(0x172)]]);}),console['log'](_0x10523a[_0x590ec6(0x185)](table,_0x147cb5)),process['exit'](0x0);}_0x10523a[_0x590ec6(0x17a)](_0x24040c[_0x590ec6(0x167)],0x191)&&(console[_0x590ec6(0x17f)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x10523a['OHCSc'](sendInstrumentationEvent,_0x4056cc,_0x10523a[_0x590ec6(0x198)],messageTypes[_0x590ec6(0x1ad)],_0x10523a[_0x590ec6(0x1b1)],null,_0x4056cc),process[_0x590ec6(0x1b3)](0x1)),console['error'](_0x590ec6(0x18a)+JSON[_0x590ec6(0x186)](_0x24040c)),await _0x10523a['dgpdf'](sendInstrumentationEvent,_0x4056cc,_0x10523a[_0x590ec6(0x198)],messageTypes[_0x590ec6(0x1ad)],_0x10523a[_0x590ec6(0x179)],_0x24040c,_0x4056cc),process[_0x590ec6(0x1b3)](0x1);}catch(_0x4092a9){console['error'](_0x590ec6(0x182)+_0x4092a9[_0x590ec6(0x1b0)]),await _0x10523a[_0x590ec6(0x1a5)](sendInstrumentationEvent,_0x4056cc,_0x10523a[_0x590ec6(0x198)],messageTypes['ERROR'],_0x10523a[_0x590ec6(0x195)],_0x4092a9,_0x4056cc),process[_0x590ec6(0x1b3)](0x1);}};
1
+ const a14_0x57e8df=a14_0x578f;(function(_0xad1ee2,_0x4e720e){const _0x4b5746=a14_0x578f,_0x8bfe88=_0xad1ee2();while(!![]){try{const _0x241ff=-parseInt(_0x4b5746(0x8e))/0x1+-parseInt(_0x4b5746(0x92))/0x2+parseInt(_0x4b5746(0xd4))/0x3*(-parseInt(_0x4b5746(0xaf))/0x4)+parseInt(_0x4b5746(0x9a))/0x5+parseInt(_0x4b5746(0x8f))/0x6+-parseInt(_0x4b5746(0x91))/0x7+parseInt(_0x4b5746(0xd3))/0x8;if(_0x241ff===_0x4e720e)break;else _0x8bfe88['push'](_0x8bfe88['shift']());}catch(_0x4e0226){_0x8bfe88['push'](_0x8bfe88['shift']());}}}(a14_0x2a2a,0xd0c31));function a14_0x578f(_0x20cf96,_0x3cd2b0){const _0x2a2aaa=a14_0x2a2a();return a14_0x578f=function(_0x578f79,_0xab6fd2){_0x578f79=_0x578f79-0x83;let _0x9d6c3f=_0x2a2aaa[_0x578f79];return _0x9d6c3f;},a14_0x578f(_0x20cf96,_0x3cd2b0);}function a14_0x2a2a(){const _0x51d805=['argv','epilogue','GET','error','stringify','spZTx','list-grid-profiles-called','tIKwd','GmpdC','boolean','region','qLTKi','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','all-grid-profiles','kdunM','push','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','5914424aWmGea','XBeBD','jcWMo','type','/packages/cli/get-grid-profiles','BDHim','srTSM','name','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','HhqMl','unknown-error','INFO','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','log','statusCode','parse','lRFEo','kVDSw','options','password','cloud-provider','usage','IkWsB','desc','OTwWQ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','https://','init-not-called','forEach','ERROR','builder','exit','/packages/cli/get-all-grid-profiles','../../config/constants','gridProfile','36664296EhLUUW','3mwzGgQ','NHLkL','bstackAccesskey','description','help','list','qwcYj','table','Browserstack','rzqsD','got','server-error','../../utils/utilityMethods','1509270GQTZCU','8673378IJMPLh','Sidgj','9689414KAcbFF','1757858TKeGBq','IaKmP','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','username','jxldc','mbFOZ','requestId','grid-profiles','387480rPSgev','RopvY','concurrency'];a14_0x2a2a=function(){return _0x51d805;};return a14_0x2a2a();}const fs=require('fs'),got=require(a14_0x57e8df(0x8b)),{table}=require(a14_0x57e8df(0x88)),{v4:uuidv4}=require(a14_0x57e8df(0xae)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x57e8df(0xd1)),{getCredentialsPath,getAuthHeader}=require(a14_0x57e8df(0x8d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a14_0x57e8df(0x99),exports[a14_0x57e8df(0xc6)]=a14_0x57e8df(0xbb),exports[a14_0x57e8df(0xce)]=function(_0x2009b9){const _0x52687c=a14_0x57e8df,_0x1df3c1={};_0x1df3c1['IaKmP']=_0x52687c(0x94),_0x1df3c1[_0x52687c(0xb5)]=_0x52687c(0xa6),_0x1df3c1[_0x52687c(0xa2)]=_0x52687c(0x85);const _0x544e75=_0x1df3c1,_0x1abbcd={};_0x1abbcd[_0x52687c(0x84)]=_0x544e75[_0x52687c(0x93)],_0x1abbcd[_0x52687c(0xb2)]=_0x544e75[_0x52687c(0xb5)];const _0x691807={};return _0x691807[_0x52687c(0xaa)]=_0x1abbcd,_0x2009b9[_0x52687c(0xc4)](HELP_HEADER_MESSAGE[_0x52687c(0x86)][_0x52687c(0xd2)])[_0x52687c(0x9e)](HELP_FOOTER_MESSAGE)[_0x52687c(0xc1)](_0x691807)['help'](_0x544e75['spZTx'])[_0x52687c(0x9d)];},exports['handler']=async function(_0x2b3f33){const _0x8c4204=a14_0x57e8df,_0xc69370={'rzqsD':function(_0x797d26){return _0x797d26();},'hWJzT':_0x8c4204(0xa9),'kVDSw':function(_0xfdacdc,_0x57a918,_0x270839,_0x29841b,_0x1972a0,_0xb71f84,_0x168995){return _0xfdacdc(_0x57a918,_0x270839,_0x29841b,_0x1972a0,_0xb71f84,_0x168995);},'XBeBD':_0x8c4204(0xa3),'tIKwd':_0x8c4204(0xcb),'NHLkL':_0x8c4204(0x9f),'OTwWQ':function(_0x13a9c3,_0x4899d8,_0x5f1cc4){return _0x13a9c3(_0x4899d8,_0x5f1cc4);},'qwcYj':function(_0x511ea3,_0x592572,_0x31f2c8){return _0x511ea3(_0x592572,_0x31f2c8);},'jcWMo':function(_0x51ac0e,_0x190f26){return _0x51ac0e!==_0x190f26;},'jxldc':function(_0x444c51,_0x189783){return _0x444c51===_0x189783;},'mbFOZ':_0x8c4204(0xb7),'GmpdC':'grid-profile-name','KIzao':_0x8c4204(0xc3),'kdunM':_0x8c4204(0xa7),'lRFEo':_0x8c4204(0x9c),'BDHim':function(_0x8953ff,_0x582eed){return _0x8953ff(_0x582eed);},'RopvY':function(_0x4bc89e,_0x2a254b,_0x1e4e12,_0x1a9bbd,_0x519b7f,_0x45c987,_0x4d1a7f){return _0x4bc89e(_0x2a254b,_0x1e4e12,_0x1a9bbd,_0x519b7f,_0x45c987,_0x4d1a7f);},'HhqMl':'unauthorised','IkWsB':function(_0x148d34,_0x4e6aa3,_0x3a0da0,_0x127d8e,_0x3eae76,_0x48f202,_0x2eb479){return _0x148d34(_0x4e6aa3,_0x3a0da0,_0x127d8e,_0x3eae76,_0x48f202,_0x2eb479);},'qLTKi':_0x8c4204(0x8c),'Sidgj':_0x8c4204(0xb9)};try{global_registry[_0x8c4204(0x98)]=_0xc69370[_0x8c4204(0x8a)](uuidv4);let _0x2a19a4='https://'+AG_API_URL+_0x8c4204(0xb3);_0x2b3f33['allGridProfiles']&&(_0x2a19a4=_0x8c4204(0xca)+AG_API_URL+_0x8c4204(0xd0));!fs[_0x8c4204(0xc9)](_0xc69370[_0x8c4204(0x8a)](getCredentialsPath))&&(console[_0x8c4204(0xa0)](_0xc69370['hWJzT']),await _0xc69370[_0x8c4204(0xc0)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xa4)],null,_0x2b3f33),process[_0x8c4204(0xcf)](0x1));const _0x47f9ba=JSON[_0x8c4204(0xbe)](fs['readFileSync'](_0xc69370['rzqsD'](getCredentialsPath))),_0x308208={'method':_0xc69370[_0x8c4204(0xd5)],'headers':_0xc69370[_0x8c4204(0xc7)](getAuthHeader,_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0x95)],_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0xc2)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0x95)],global_registry[_0x8c4204(0x83)]=_0x47f9ba[_0x8c4204(0x89)][_0x8c4204(0xc2)],_0xc69370[_0x8c4204(0xc0)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xba)],null,null,_0x2b3f33);const _0x42b40b=await _0xc69370[_0x8c4204(0x87)](got,_0x2a19a4,_0x308208);if(_0xc69370['jcWMo'](_0x42b40b,null)&&_0xc69370[_0x8c4204(0xb1)](_0x42b40b,undefined)&&_0xc69370['jxldc'](_0x42b40b[_0x8c4204(0xbd)],0xc8)){const _0x5512f5=JSON[_0x8c4204(0xbe)](_0x42b40b['body']);console[_0x8c4204(0xbc)](_0xc69370[_0x8c4204(0x97)]);const _0xb50ed7=[];_0xb50ed7[_0x8c4204(0xac)]([_0xc69370[_0x8c4204(0xa5)],_0xc69370['KIzao'],_0xc69370[_0x8c4204(0xab)],_0xc69370[_0x8c4204(0xbf)]]),_0x5512f5[_0x8c4204(0xcc)](_0x32ed2f=>{const _0x3c564d=_0x8c4204;_0xb50ed7[_0x3c564d(0xac)]([_0x32ed2f[_0x3c564d(0xb6)],_0x32ed2f['cloudProvider'],_0x32ed2f['region'],_0x32ed2f[_0x3c564d(0x9c)]]);}),console[_0x8c4204(0xbc)](_0xc69370[_0x8c4204(0xb4)](table,_0xb50ed7)),process['exit'](0x0);}_0xc69370[_0x8c4204(0x96)](_0x42b40b['statusCode'],0x191)&&(console[_0x8c4204(0xa0)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0xc69370[_0x8c4204(0x9b)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xb8)],null,_0x2b3f33),process['exit'](0x1)),console[_0x8c4204(0xa0)](_0x8c4204(0xc8)+JSON[_0x8c4204(0xa1)](_0x42b40b)),await _0xc69370[_0x8c4204(0xc5)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0xa8)],_0x42b40b,_0x2b3f33),process[_0x8c4204(0xcf)](0x1);}catch(_0x3acdc1){console[_0x8c4204(0xa0)](_0x8c4204(0xad)+_0x3acdc1['stack']),await _0xc69370[_0x8c4204(0xc5)](sendInstrumentationEvent,_0x2b3f33,_0xc69370[_0x8c4204(0xb0)],messageTypes[_0x8c4204(0xcd)],_0xc69370[_0x8c4204(0x90)],_0x3acdc1,_0x2b3f33),process[_0x8c4204(0xcf)](0x1);}};
@@ -1 +1 @@
1
- const a15_0x2b447f=a15_0x9b64;(function(_0x541f45,_0x572e6d){const _0x240e6b=a15_0x9b64,_0x33c3dc=_0x541f45();while(!![]){try{const _0x4be1f9=-parseInt(_0x240e6b(0x99))/0x1+parseInt(_0x240e6b(0xcb))/0x2*(-parseInt(_0x240e6b(0xbe))/0x3)+parseInt(_0x240e6b(0x8f))/0x4*(parseInt(_0x240e6b(0xc9))/0x5)+parseInt(_0x240e6b(0xa2))/0x6+parseInt(_0x240e6b(0xba))/0x7+parseInt(_0x240e6b(0x96))/0x8+-parseInt(_0x240e6b(0xa0))/0x9;if(_0x4be1f9===_0x572e6d)break;else _0x33c3dc['push'](_0x33c3dc['shift']());}catch(_0x1fafb9){_0x33c3dc['push'](_0x33c3dc['shift']());}}}(a15_0x24a0,0x2e662));const fs=require('fs'),got=require(a15_0x2b447f(0xd3)),{table}=require(a15_0x2b447f(0xd1)),{v4:uuidv4}=require(a15_0x2b447f(0xa1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2b447f(0x8c)),{getCredentialsPath,getAuthHeader}=require(a15_0x2b447f(0xa7)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x2b447f(0xb9)]=a15_0x2b447f(0x83),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x4375f5){const _0x24c0be=a15_0x2b447f,_0x3ebde7={};_0x3ebde7[_0x24c0be(0x9b)]=_0x24c0be(0xb6),_0x3ebde7[_0x24c0be(0xae)]=_0x24c0be(0x90),_0x3ebde7['NVvFI']=_0x24c0be(0xa3);const _0x4fa407=_0x3ebde7,_0x1ba7e7={};_0x1ba7e7[_0x24c0be(0xb5)]=_0x4fa407[_0x24c0be(0x9b)],_0x1ba7e7[_0x24c0be(0xb1)]=_0x4fa407[_0x24c0be(0xae)];const _0x429489={};return _0x429489['all-grids']=_0x1ba7e7,_0x4375f5[_0x24c0be(0xb3)](HELP_HEADER_MESSAGE[_0x24c0be(0x89)]['grid'])[_0x24c0be(0x86)](HELP_FOOTER_MESSAGE)[_0x24c0be(0x91)](_0x429489)[_0x24c0be(0xa3)](_0x4fa407[_0x24c0be(0x8d)])['argv'];},exports[a15_0x2b447f(0xcf)]=async function(_0x4cf069){const _0x534e88=a15_0x2b447f,_0x530b2c={'pCzZx':function(_0x523032){return _0x523032();},'BMjoa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QVnJY':function(_0x392c67,_0x2f6dd2,_0x1721c4,_0x68069,_0x1b4665,_0x25911e,_0xa2bd62){return _0x392c67(_0x2f6dd2,_0x1721c4,_0x68069,_0x1b4665,_0x25911e,_0xa2bd62);},'MsarM':'list-grids-called','EqzDx':_0x534e88(0xac),'YoXeB':function(_0x4ee88b){return _0x4ee88b();},'mfvww':'GET','uGJMi':function(_0x3b646f,_0x5f2719,_0x2be2a5){return _0x3b646f(_0x5f2719,_0x2be2a5);},'pPEpn':function(_0x5c6697,_0x31cb73,_0x3bb2f3){return _0x5c6697(_0x31cb73,_0x3bb2f3);},'PKlfB':function(_0x40405f,_0x154b86){return _0x40405f!==_0x154b86;},'aIVxg':function(_0x2b75a2,_0x158e39){return _0x2b75a2!==_0x158e39;},'ULrHu':function(_0x3ea2a1,_0x13b600){return _0x3ea2a1===_0x13b600;},'kZasI':_0x534e88(0x9e),'QwMLt':_0x534e88(0xbb),'FXWHq':_0x534e88(0x8e),'sgzgA':_0x534e88(0x88),'ahVBX':'running','XasNr':_0x534e88(0x87),'QbGqU':_0x534e88(0xd0),'RLwcP':function(_0x161453,_0x48ace3){return _0x161453(_0x48ace3);},'CHJwF':function(_0x3a1272,_0x1a1a3c){return _0x3a1272===_0x1a1a3c;},'kpvNx':function(_0x1c46c4,_0x43d3e1,_0x47ea27,_0x3396cf,_0x40d800,_0x375f88,_0x1c49d3){return _0x1c46c4(_0x43d3e1,_0x47ea27,_0x3396cf,_0x40d800,_0x375f88,_0x1c49d3);},'MXmfG':'unauthorised','EmOyi':_0x534e88(0xb2),'juZkI':function(_0x558b19,_0x1376e0,_0x1cad80,_0x25609,_0x1bea9d,_0x98ae1f,_0x2ae9d4){return _0x558b19(_0x1376e0,_0x1cad80,_0x25609,_0x1bea9d,_0x98ae1f,_0x2ae9d4);},'SEmYb':_0x534e88(0xc3)};try{global_registry[_0x534e88(0xbf)]=_0x530b2c[_0x534e88(0x85)](uuidv4);!fs[_0x534e88(0xbc)](_0x530b2c[_0x534e88(0x85)](getCredentialsPath))&&(console[_0x534e88(0x9d)](_0x530b2c[_0x534e88(0x95)]),await _0x530b2c[_0x534e88(0xc5)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes[_0x534e88(0xaa)],_0x530b2c[_0x534e88(0xbd)],null,_0x4cf069),process[_0x534e88(0x9a)](0x1));const _0x581be0=JSON[_0x534e88(0xc8)](fs[_0x534e88(0x9c)](_0x530b2c[_0x534e88(0xca)](getCredentialsPath)));let _0x2c09f4='https://'+AG_API_URL+_0x534e88(0xc6);_0x4cf069[_0x534e88(0xa9)]&&(_0x2c09f4=_0x534e88(0xb0)+AG_API_URL+'/packages/cli/get-all-grids');const _0x4cbb13={'method':_0x530b2c[_0x534e88(0xaf)],'headers':_0x530b2c[_0x534e88(0xb4)](getAuthHeader,_0x581be0['Browserstack'][_0x534e88(0x94)],_0x581be0[_0x534e88(0x93)][_0x534e88(0xc4)])};global_registry['bstackUsername']=_0x581be0[_0x534e88(0x93)][_0x534e88(0x94)],global_registry[_0x534e88(0xcc)]=_0x581be0[_0x534e88(0x93)]['password'],_0x530b2c[_0x534e88(0xc5)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes['INFO'],null,null,_0x4cf069);const _0x209302=await _0x530b2c[_0x534e88(0x97)](got,_0x2c09f4,_0x4cbb13);if(_0x530b2c['PKlfB'](_0x209302,null)&&_0x530b2c[_0x534e88(0xa4)](_0x209302,undefined)&&_0x530b2c[_0x534e88(0xb7)](_0x209302[_0x534e88(0xab)],0xc8)){const _0x58ec37=JSON['parse'](_0x209302['body']);console[_0x534e88(0xc1)](_0x530b2c['kZasI']);const _0x485aab=[];_0x485aab[_0x534e88(0x92)]([_0x530b2c[_0x534e88(0x8b)],_0x530b2c[_0x534e88(0xc7)],_0x530b2c['sgzgA'],_0x530b2c[_0x534e88(0xad)],_0x530b2c['XasNr'],_0x530b2c[_0x534e88(0xd5)]]),_0x58ec37['forEach'](_0x402601=>{const _0x2a768d=_0x534e88;_0x485aab['push']([_0x402601['id'],_0x402601[_0x2a768d(0x82)],_0x402601[_0x2a768d(0x88)],_0x402601[_0x2a768d(0x84)],_0x402601['queued'],_0x402601[_0x2a768d(0x98)]]);}),console['log'](_0x530b2c[_0x534e88(0xce)](table,_0x485aab)),process[_0x534e88(0x9a)](0x0);}_0x530b2c['CHJwF'](_0x209302[_0x534e88(0xab)],0x191)&&(console[_0x534e88(0x9d)](_0x534e88(0xcd)),await _0x530b2c[_0x534e88(0x9f)](sendInstrumentationEvent,_0x4cf069,_0x530b2c['MsarM'],messageTypes[_0x534e88(0xaa)],_0x530b2c[_0x534e88(0x8a)],null,_0x4cf069),process['exit'](0x1)),console[_0x534e88(0x9d)](_0x534e88(0xa6)+JSON[_0x534e88(0xa5)](_0x209302)),await _0x530b2c[_0x534e88(0x9f)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes[_0x534e88(0xaa)],_0x530b2c[_0x534e88(0xd2)],_0x209302,_0x4cf069),process['exit'](0x1);}catch(_0x210d9e){console[_0x534e88(0x9d)](_0x534e88(0xc2)+_0x210d9e[_0x534e88(0xb8)]),await _0x530b2c[_0x534e88(0xa8)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes['ERROR'],_0x530b2c[_0x534e88(0xc0)],_0x210d9e,_0x4cf069),process[_0x534e88(0x9a)](0x1);}};function a15_0x9b64(_0x405607,_0x286423){const _0x24a0eb=a15_0x24a0();return a15_0x9b64=function(_0x9b647,_0x1b23f1){_0x9b647=_0x9b647-0x82;let _0x48c2b7=_0x24a0eb[_0x9b647];return _0x48c2b7;},a15_0x9b64(_0x405607,_0x286423);}function a15_0x24a0(){const _0x4934d9=['QbGqU','name','grids','running','pCzZx','epilogue','queued','status','list','MXmfG','QwMLt','../../config/constants','NVvFI','grid-name','4RZqjXd','boolean','options','push','Browserstack','username','BMjoa','2342720faIVji','pPEpn','clusterName','238787OaBGYX','exit','UdGFK','readFileSync','error','\x0aFound\x20the\x20following\x20grids:\x0a','kpvNx','3999060IIARlj','uuid','1905834DOVKLb','help','aIVxg','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/utilityMethods','juZkI','allGrids','ERROR','statusCode','init-not-called','ahVBX','HmYkF','mfvww','https://','type','server-error','usage','uGJMi','description','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','ULrHu','stack','command','1709666nBZrmQ','grid-id','existsSync','EqzDx','6nLtNlI','requestId','SEmYb','log','Failed\x20to\x20list\x20resources!\x20Error:\x20','unknown-error','password','QVnJY','/packages/cli/get-grids','FXWHq','parse','475510DFbvwb','YoXeB','76642fOsDvw','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RLwcP','handler','cluster-name','table','EmOyi','got','MsarM'];a15_0x24a0=function(){return _0x4934d9;};return a15_0x24a0();}
1
+ function a15_0x59a7(_0x3d9e16,_0x3afa94){const _0x58cf26=a15_0x58cf();return a15_0x59a7=function(_0x59a722,_0x402ca9){_0x59a722=_0x59a722-0x8e;let _0x6a4149=_0x58cf26[_0x59a722];return _0x6a4149;},a15_0x59a7(_0x3d9e16,_0x3afa94);}const a15_0xff0d1b=a15_0x59a7;(function(_0x782042,_0x315217){const _0x5f08c8=a15_0x59a7,_0x3a070f=_0x782042();while(!![]){try{const _0x2fb934=parseInt(_0x5f08c8(0xc5))/0x1*(-parseInt(_0x5f08c8(0x96))/0x2)+parseInt(_0x5f08c8(0xda))/0x3*(parseInt(_0x5f08c8(0xa5))/0x4)+parseInt(_0x5f08c8(0xa3))/0x5*(parseInt(_0x5f08c8(0xcd))/0x6)+parseInt(_0x5f08c8(0xd3))/0x7+-parseInt(_0x5f08c8(0xc4))/0x8+-parseInt(_0x5f08c8(0xc3))/0x9*(-parseInt(_0x5f08c8(0xba))/0xa)+-parseInt(_0x5f08c8(0xc6))/0xb;if(_0x2fb934===_0x315217)break;else _0x3a070f['push'](_0x3a070f['shift']());}catch(_0x15c3bd){_0x3a070f['push'](_0x3a070f['shift']());}}}(a15_0x58cf,0x782b0));const fs=require('fs'),got=require('got'),{table}=require(a15_0xff0d1b(0xb5)),{v4:uuidv4}=require(a15_0xff0d1b(0xb1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xff0d1b(0xe3)),{getCredentialsPath,getAuthHeader}=require(a15_0xff0d1b(0xdd)),{sendInstrumentationEvent}=require(a15_0xff0d1b(0xd2));exports[a15_0xff0d1b(0xd9)]=a15_0xff0d1b(0x9f),exports[a15_0xff0d1b(0xc9)]=a15_0xff0d1b(0xb3),exports[a15_0xff0d1b(0xbb)]=function(_0x1554fb){const _0x3c5172=a15_0xff0d1b,_0x1e1e42={};_0x1e1e42['hzYEH']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1e1e42['LcddH']=_0x3c5172(0xb8),_0x1e1e42['IzWJF']='help';const _0x50c5c4=_0x1e1e42,_0x5ada40={};_0x5ada40[_0x3c5172(0xaf)]=_0x50c5c4['hzYEH'],_0x5ada40['type']=_0x50c5c4[_0x3c5172(0xcb)];const _0x59f183={};return _0x59f183[_0x3c5172(0xde)]=_0x5ada40,_0x1554fb[_0x3c5172(0xe1)](HELP_HEADER_MESSAGE[_0x3c5172(0x9e)]['grid'])[_0x3c5172(0xd4)](HELP_FOOTER_MESSAGE)[_0x3c5172(0xb0)](_0x59f183)[_0x3c5172(0xa4)](_0x50c5c4[_0x3c5172(0xad)])[_0x3c5172(0xd6)];},exports[a15_0xff0d1b(0xb9)]=async function(_0x54e646){const _0x4afa89=a15_0xff0d1b,_0x37bcc1={'fngCj':function(_0x51ded5){return _0x51ded5();},'Tnwgb':function(_0x2bd659){return _0x2bd659();},'VCmbu':_0x4afa89(0xe0),'xoEnv':function(_0x546c4d,_0x59044a,_0x53b778,_0x277bf6,_0x1729ab,_0xe06f26,_0x4d33a4){return _0x546c4d(_0x59044a,_0x53b778,_0x277bf6,_0x1729ab,_0xe06f26,_0x4d33a4);},'CBRdq':'list-grids-called','TVIGo':_0x4afa89(0x95),'ROlaX':function(_0x2d574b){return _0x2d574b();},'GUjzi':_0x4afa89(0xb6),'PyLID':function(_0x3c00bf,_0x1d7659,_0x22386e){return _0x3c00bf(_0x1d7659,_0x22386e);},'RAgzV':function(_0x4052af,_0x58c66b){return _0x4052af!==_0x58c66b;},'pUUGp':function(_0xe8fe7e,_0x2882a8){return _0xe8fe7e!==_0x2882a8;},'AczQR':function(_0x206fe3,_0x206977){return _0x206fe3===_0x206977;},'ZQdJS':_0x4afa89(0xa8),'ZyFUg':_0x4afa89(0xa6),'TrZat':'grid-name','oRquX':_0x4afa89(0x91),'eDupQ':_0x4afa89(0xc8),'AbnOT':_0x4afa89(0x98),'KrLZr':'cluster-name','wlkcA':function(_0x4e1524,_0x385079){return _0x4e1524(_0x385079);},'HKrvr':'unauthorised','MsCkT':_0x4afa89(0xca),'cnFeg':'unknown-error'};try{global_registry[_0x4afa89(0xe2)]=_0x37bcc1[_0x4afa89(0x8f)](uuidv4);!fs['existsSync'](_0x37bcc1[_0x4afa89(0xd0)](getCredentialsPath))&&(console[_0x4afa89(0xab)](_0x37bcc1['VCmbu']),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes['ERROR'],_0x37bcc1[_0x4afa89(0xa0)],null,_0x54e646),process[_0x4afa89(0xd1)](0x1));const _0x4cf5a6=JSON[_0x4afa89(0xb2)](fs[_0x4afa89(0xa9)](_0x37bcc1[_0x4afa89(0x9a)](getCredentialsPath)));let _0x3d62ee='https://'+AG_API_URL+_0x4afa89(0xd5);_0x54e646[_0x4afa89(0xcf)]&&(_0x3d62ee=_0x4afa89(0xd7)+AG_API_URL+'/packages/cli/get-all-grids');const _0x2e1b23={'method':_0x37bcc1[_0x4afa89(0x92)],'headers':_0x37bcc1[_0x4afa89(0x8e)](getAuthHeader,_0x4cf5a6['Browserstack'][_0x4afa89(0x97)],_0x4cf5a6[_0x4afa89(0xae)][_0x4afa89(0xb7)]),'throwHttpErrors':![]};global_registry[_0x4afa89(0xbd)]=_0x4cf5a6['Browserstack'][_0x4afa89(0x97)],global_registry[_0x4afa89(0x90)]=_0x4cf5a6['Browserstack'][_0x4afa89(0xb7)],_0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes[_0x4afa89(0xc1)],null,null,_0x54e646);const _0x4eb948=await _0x37bcc1['PyLID'](got,_0x3d62ee,_0x2e1b23);if(_0x37bcc1['RAgzV'](_0x4eb948,null)&&_0x37bcc1[_0x4afa89(0xdb)](_0x4eb948,undefined)&&_0x37bcc1['AczQR'](_0x4eb948[_0x4afa89(0xbf)],0xc8)){const _0x42fbfb=JSON['parse'](_0x4eb948[_0x4afa89(0xc0)]);console[_0x4afa89(0x93)](_0x37bcc1[_0x4afa89(0xc7)]);const _0x4b0c24=[];_0x4b0c24['push']([_0x37bcc1[_0x4afa89(0xbc)],_0x37bcc1['TrZat'],_0x37bcc1[_0x4afa89(0xa1)],_0x37bcc1[_0x4afa89(0xaa)],_0x37bcc1['AbnOT'],_0x37bcc1[_0x4afa89(0xdf)]]),_0x42fbfb['forEach'](_0x2cd190=>{const _0x2fa3c8=_0x4afa89;_0x4b0c24[_0x2fa3c8(0x9b)]([_0x2cd190['id'],_0x2cd190[_0x2fa3c8(0xcc)],_0x2cd190[_0x2fa3c8(0x91)],_0x2cd190[_0x2fa3c8(0xc8)],_0x2cd190['queued'],_0x2cd190[_0x2fa3c8(0x9c)]]);}),console[_0x4afa89(0x93)](_0x37bcc1[_0x4afa89(0xdc)](table,_0x4b0c24)),process['exit'](0x0);}_0x37bcc1[_0x4afa89(0xa2)](_0x4eb948[_0x4afa89(0xbf)],0x191)&&(console[_0x4afa89(0xab)](_0x4afa89(0xb4)),await _0x37bcc1['xoEnv'](sendInstrumentationEvent,_0x54e646,_0x37bcc1['CBRdq'],messageTypes[_0x4afa89(0xbe)],_0x37bcc1['HKrvr'],null,_0x54e646),process[_0x4afa89(0xd1)](0x1)),console[_0x4afa89(0xab)](_0x4afa89(0x99)+JSON[_0x4afa89(0x9d)](_0x4eb948)),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1['CBRdq'],messageTypes[_0x4afa89(0xbe)],_0x37bcc1[_0x4afa89(0xce)],_0x4eb948,_0x54e646),process[_0x4afa89(0xd1)](0x1);}catch(_0xf56202){console['error'](_0x4afa89(0xd8)+_0xf56202[_0x4afa89(0xac)]),await _0x37bcc1[_0x4afa89(0xa7)](sendInstrumentationEvent,_0x54e646,_0x37bcc1[_0x4afa89(0xc2)],messageTypes[_0x4afa89(0xbe)],_0x37bcc1[_0x4afa89(0x94)],_0xf56202,_0x54e646),process[_0x4afa89(0xd1)](0x1);}};function a15_0x58cf(){const _0x2bc9fe=['boolean','handler','1539970TXKfaT','builder','ZyFUg','bstackUsername','ERROR','statusCode','body','INFO','CBRdq','9Leeoqv','4605704QJeZub','9862NLKbHC','1378564MumozF','ZQdJS','running','desc','server-error','LcddH','name','510FdkFCw','MsCkT','allGrids','Tnwgb','exit','../../utils/instrumentationUtils','3068681zdXTJq','epilogue','/packages/cli/get-grids','argv','https://','Failed\x20to\x20list\x20resources!\x20Error:\x20','command','3UmMUkC','pUUGp','wlkcA','../../utils/utilityMethods','all-grids','KrLZr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','usage','requestId','../../config/constants','PyLID','fngCj','bstackAccesskey','status','GUjzi','log','cnFeg','init-not-called','62GRteBZ','username','queued','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ROlaX','push','clusterName','stringify','list','grids','TVIGo','oRquX','AczQR','44040HvInln','help','631628XvSZcL','grid-id','xoEnv','\x0aFound\x20the\x20following\x20grids:\x0a','readFileSync','eDupQ','error','stack','IzWJF','Browserstack','description','options','uuid','parse','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','table','GET','password'];a15_0x58cf=function(){return _0x2bc9fe;};return a15_0x58cf();}
@@ -1 +1 @@
1
- const a16_0x14c7e5=a16_0x36d5;function a16_0x1411(){const _0x276edd=['2249648EgPAdx','Start\x20an\x20existing\x20Automation\x20grid.','command','usage','6OrNcQM','desc','261vYmxEm','AgjCk','recommendCommands','demandCommand','builder','help','strict','719408JdSKFP','../config/constants','start','8891390PAyufs','2715426aUIFkU','commandDir','opJYW','9140598HbIlGn','start_commands','329172iTSRoU','1818122hFyrbR'];a16_0x1411=function(){return _0x276edd;};return a16_0x1411();}function a16_0x36d5(_0x2a477b,_0x4d2507){const _0x141126=a16_0x1411();return a16_0x36d5=function(_0x36d5b5,_0x18a550){_0x36d5b5=_0x36d5b5-0x179;let _0x11ede8=_0x141126[_0x36d5b5];return _0x11ede8;},a16_0x36d5(_0x2a477b,_0x4d2507);}(function(_0x5f0318,_0x14fed2){const _0x942ca=a16_0x36d5,_0x4c7be6=_0x5f0318();while(!![]){try{const _0xbf81f7=parseInt(_0x942ca(0x182))/0x1+parseInt(_0x942ca(0x187))/0x2*(-parseInt(_0x942ca(0x181))/0x3)+parseInt(_0x942ca(0x183))/0x4+-parseInt(_0x942ca(0x17b))/0x5+-parseInt(_0x942ca(0x17f))/0x6+-parseInt(_0x942ca(0x17c))/0x7+parseInt(_0x942ca(0x190))/0x8*(parseInt(_0x942ca(0x189))/0x9);if(_0xbf81f7===_0x14fed2)break;else _0x4c7be6['push'](_0x4c7be6['shift']());}catch(_0x14b77c){_0x4c7be6['push'](_0x4c7be6['shift']());}}}(a16_0x1411,0xecb73));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x14c7e5(0x179));exports[a16_0x14c7e5(0x185)]=a16_0x14c7e5(0x17a),exports[a16_0x14c7e5(0x188)]=a16_0x14c7e5(0x184),exports[a16_0x14c7e5(0x18d)]=function(_0x2decb3){const _0x2a79dd=a16_0x14c7e5,_0x3941cf={};_0x3941cf[_0x2a79dd(0x17e)]=_0x2a79dd(0x180),_0x3941cf['AgjCk']=_0x2a79dd(0x18e);const _0xa732c2=_0x3941cf;return _0x2decb3[_0x2a79dd(0x186)](HELP_HEADER_MESSAGE[_0x2a79dd(0x17a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2a79dd(0x17d)](_0xa732c2['opJYW'])[_0x2a79dd(0x18c)]()[_0x2a79dd(0x18b)]()[_0x2a79dd(0x18f)]()[_0x2a79dd(0x18e)](_0xa732c2[_0x2a79dd(0x18a)]);},exports['handler']=function(_0x2d00eb){};
1
+ const a16_0x4c80eb=a16_0x3d25;function a16_0x3d25(_0x520044,_0x294ab2){const _0x2d5005=a16_0x2d50();return a16_0x3d25=function(_0x3d2514,_0x11a818){_0x3d2514=_0x3d2514-0xdd;let _0x5ed246=_0x2d5005[_0x3d2514];return _0x5ed246;},a16_0x3d25(_0x520044,_0x294ab2);}(function(_0x5a6066,_0x22b639){const _0xb75d2c=a16_0x3d25,_0x353572=_0x5a6066();while(!![]){try{const _0x51a9a1=parseInt(_0xb75d2c(0xe9))/0x1*(parseInt(_0xb75d2c(0xf2))/0x2)+parseInt(_0xb75d2c(0xf0))/0x3+-parseInt(_0xb75d2c(0xdd))/0x4+-parseInt(_0xb75d2c(0xee))/0x5*(-parseInt(_0xb75d2c(0xe3))/0x6)+parseInt(_0xb75d2c(0xe4))/0x7*(-parseInt(_0xb75d2c(0xf5))/0x8)+-parseInt(_0xb75d2c(0xe5))/0x9*(parseInt(_0xb75d2c(0xe7))/0xa)+-parseInt(_0xb75d2c(0xea))/0xb*(-parseInt(_0xb75d2c(0xe2))/0xc);if(_0x51a9a1===_0x22b639)break;else _0x353572['push'](_0x353572['shift']());}catch(_0x735779){_0x353572['push'](_0x353572['shift']());}}}(a16_0x2d50,0x99c1a));function a16_0x2d50(){const _0x1a1c02=['205392tBUQEO','14kPWPVJ','119331fGwOkD','strict','450cHaehm','help','1jeuAkd','231XNKXCz','Start\x20an\x20existing\x20Automation\x20grid.','commandDir','demandCommand','30vzWFch','oSzZp','753390OrexCd','start','1363610zlvbkO','usage','../config/constants','2576664onUMfC','1793192MnPbdn','desc','VzuoU','builder','epilogue','674616hBswNV'];a16_0x2d50=function(){return _0x1a1c02;};return a16_0x2d50();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4c80eb(0xf4));exports['command']=a16_0x4c80eb(0xf1),exports[a16_0x4c80eb(0xde)]=a16_0x4c80eb(0xeb),exports[a16_0x4c80eb(0xe0)]=function(_0x3ac656){const _0x2a038e=a16_0x4c80eb,_0x45173b={};_0x45173b[_0x2a038e(0xdf)]='start_commands',_0x45173b[_0x2a038e(0xef)]=_0x2a038e(0xe8);const _0x5e1ca0=_0x45173b;return _0x3ac656[_0x2a038e(0xf3)](HELP_HEADER_MESSAGE['start'])[_0x2a038e(0xe1)](HELP_FOOTER_MESSAGE)[_0x2a038e(0xec)](_0x5e1ca0[_0x2a038e(0xdf)])[_0x2a038e(0xed)]()['recommendCommands']()[_0x2a038e(0xe6)]()[_0x2a038e(0xe8)](_0x5e1ca0[_0x2a038e(0xef)]);},exports['handler']=function(_0x4ece71){};
@@ -1 +1 @@
1
- const a17_0x1b2ed3=a17_0x4ac4;(function(_0x1ffe63,_0x35367e){const _0x5a1391=a17_0x4ac4,_0x54b135=_0x1ffe63();while(!![]){try{const _0x4c76a6=parseInt(_0x5a1391(0x79))/0x1+parseInt(_0x5a1391(0xaa))/0x2+-parseInt(_0x5a1391(0xa0))/0x3+parseInt(_0x5a1391(0x82))/0x4*(parseInt(_0x5a1391(0x95))/0x5)+-parseInt(_0x5a1391(0x94))/0x6*(parseInt(_0x5a1391(0x89))/0x7)+-parseInt(_0x5a1391(0xa8))/0x8+parseInt(_0x5a1391(0x97))/0x9;if(_0x4c76a6===_0x35367e)break;else _0x54b135['push'](_0x54b135['shift']());}catch(_0x320156){_0x54b135['push'](_0x54b135['shift']());}}}(a17_0x8b2d,0x75bfa));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x1b2ed3(0x9a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x1b2ed3(0x93)),{logger}=require(a17_0x1b2ed3(0x8b)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a17_0x1b2ed3(0xc0)),{sendInstrumentationEvent}=require(a17_0x1b2ed3(0xb8)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x1b2ed3(0xc7)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a17_0x4ac4(_0x30b070,_0x36911b){const _0x8b2d=a17_0x8b2d();return a17_0x4ac4=function(_0x4ac41e,_0x553109){_0x4ac41e=_0x4ac41e-0x79;let _0x1cba16=_0x8b2d[_0x4ac41e];return _0x1cba16;},a17_0x4ac4(_0x30b070,_0x36911b);}exports['command']='grid',exports[a17_0x1b2ed3(0xbf)]=a17_0x1b2ed3(0xa9),exports['builder']=function(_0x3ffb49){const _0x38b047=a17_0x1b2ed3,_0x41908c={};_0x41908c[_0x38b047(0x7a)]=_0x38b047(0xab),_0x41908c[_0x38b047(0xc2)]=_0x38b047(0x87),_0x41908c['JczGq']=_0x38b047(0x83);const _0x3d3799=_0x41908c,_0x375658={};_0x375658['description']=_0x3d3799[_0x38b047(0x7a)],_0x375658[_0x38b047(0xc8)]=_0x3d3799[_0x38b047(0xc2)];const _0x4f65dd={};return _0x4f65dd[_0x38b047(0x92)]=_0x375658,_0x3ffb49['usage'](HELP_HEADER_MESSAGE['start'])[_0x38b047(0xc5)](HELP_FOOTER_MESSAGE)[_0x38b047(0x9e)](_0x4f65dd)[_0x38b047(0x83)](_0x3d3799[_0x38b047(0x7b)])[_0x38b047(0xcb)];},exports[a17_0x1b2ed3(0xc6)]=async function(_0xa0f61c){const _0x106a5c=a17_0x1b2ed3,_0x4f2d63={'IoBGd':_0x106a5c(0xb7),'rVFTg':function(_0x165f1e){return _0x165f1e();},'nidke':_0x106a5c(0xaf),'YWnRh':function(_0x4f067b,_0x4fb027,_0x233ba0,_0x5d3acb,_0x271b47,_0x3e2b45,_0x11db0e){return _0x4f067b(_0x4fb027,_0x233ba0,_0x5d3acb,_0x271b47,_0x3e2b45,_0x11db0e);},'Cujpl':_0x106a5c(0xb4),'sDLHL':_0x106a5c(0xba),'HwdKq':'<UsernamePlaceholder>','xMYBr':_0x106a5c(0xa3),'xqTuA':_0x106a5c(0x96),'weXtD':function(_0x16d87a,_0x200a44,_0x556671,_0x5285c9){return _0x16d87a(_0x200a44,_0x556671,_0x5285c9);},'ySGcr':function(_0xb6b489,_0x4168fa,_0x509cc7,_0x5e206b,_0xdcc6dd,_0x208144){return _0xb6b489(_0x4168fa,_0x509cc7,_0x5e206b,_0xdcc6dd,_0x208144);},'hArqE':function(_0x3c7471,_0x2f99a2){return _0x3c7471(_0x2f99a2);},'WRJqw':function(_0x2ca5a9,_0x3d56b3,_0x3578f9){return _0x2ca5a9(_0x3d56b3,_0x3578f9);},'NFgpN':_0x106a5c(0xbe),'DZFfA':function(_0x227609,_0x15717f){return _0x227609===_0x15717f;},'vzRyQ':function(_0x258b04,_0x322c6e,_0x29c328,_0xdfc4ef,_0x22fadd,_0x473a59,_0x412900){return _0x258b04(_0x322c6e,_0x29c328,_0xdfc4ef,_0x22fadd,_0x473a59,_0x412900);},'gAPIg':_0x106a5c(0x7c),'OgbTo':_0x106a5c(0xbb),'khCoB':function(_0xbe324c,_0x51cb22,_0x53d111,_0x14e253,_0x5ceeda,_0x38e1bb,_0x4aeef6){return _0xbe324c(_0x51cb22,_0x53d111,_0x14e253,_0x5ceeda,_0x38e1bb,_0x4aeef6);},'hSdGX':_0x106a5c(0x9b)};let _0x1e22d6;try{!_0xa0f61c['gridId']&&(logger[_0x106a5c(0xca)](_0x4f2d63[_0x106a5c(0xac)]),process['exit'](0x1));!fs[_0x106a5c(0x99)](_0x4f2d63[_0x106a5c(0x8f)](getCredentialsPath))&&(logger[_0x106a5c(0xca)](_0x4f2d63[_0x106a5c(0x84)]),await _0x4f2d63['YWnRh'](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0x7e)],_0x4f2d63[_0x106a5c(0xbd)],null,_0xa0f61c),process['exit'](0x1));logger[_0x106a5c(0x8e)]('Starting\x20grid\x20'+_0xa0f61c['gridId']),await _0x4f2d63[_0x106a5c(0xc4)](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0xb2)],null,null,_0xa0f61c);const _0x1c6aaa=JSON[_0x106a5c(0x8d)](fs[_0x106a5c(0xb5)](_0x4f2d63[_0x106a5c(0x8f)](getCredentialsPath)));global_registry['bstackUsername']=_0x1c6aaa[_0x106a5c(0xa7)][_0x106a5c(0x9c)],global_registry[_0x106a5c(0xa6)]=_0x1c6aaa['Browserstack'][_0x106a5c(0x81)];const _0x2bcc6d=WS_ENDPOINT[_0x106a5c(0x80)](_0x4f2d63[_0x106a5c(0xb0)],_0x1c6aaa['Browserstack'][_0x106a5c(0x9c)])[_0x106a5c(0x80)](_0x4f2d63[_0x106a5c(0x98)],_0x1c6aaa[_0x106a5c(0xa7)][_0x106a5c(0x81)]),_0x2c62d5={};_0x2c62d5['WebSocket']=ws,_0x2c62d5[_0x106a5c(0x7f)]=0x36ee80,_0x1e22d6=new ReconnectingWebSocket(_0x2bcc6d,[],_0x2c62d5),logger[_0x106a5c(0xa2)](_0x4f2d63[_0x106a5c(0xc9)]),webSocketUtils['addListeners'](_0x1e22d6,_0xa0f61c[_0x106a5c(0x85)],_0xa0f61c[_0x106a5c(0x81)]);const [_0x4536c4,_0x556935]=await _0x4f2d63[_0x106a5c(0xb9)](getGridDetails,_0x1c6aaa[_0x106a5c(0xa7)]['username'],_0x1c6aaa[_0x106a5c(0xa7)][_0x106a5c(0x81)],_0xa0f61c[_0x106a5c(0xad)]);if(_0x556935){const _0x1d1ddb=_0x556935[_0x106a5c(0x8e)];global_registry[_0x106a5c(0xa4)]=_0x1d1ddb['cloudProvider'],global_registry[_0x106a5c(0x9d)]=_0x1d1ddb[_0x106a5c(0xa1)],global_registry[_0x106a5c(0x8c)]=_0x1d1ddb['clusterName'];const _0x51288d=_0x4f2d63['ySGcr'](getCloudProviderObject,_0x1d1ddb[_0x106a5c(0xa4)],_0x1d1ddb[_0x106a5c(0x8c)],_0x1d1ddb[_0x106a5c(0xcd)],_0x1e22d6,webSocketUtils),_0x428cfc=_0x1c6aaa[_0x106a5c(0xa4)]||{};await _0x51288d[_0x106a5c(0x8a)](_0x428cfc),_0x51288d[_0x106a5c(0xb6)]();const [_0x224356,_0x24d614,_0x3a65d0,_0x5d0f3c,_0x44ba1e,_0x4a50e7]=await _0x4f2d63[_0x106a5c(0xbc)](createK8sClient,_0x51288d);await _0x4f2d63[_0x106a5c(0xc3)](scaleUpHubDeployment,_0x24d614,_0x1d1ddb['name']),logger['info'](_0x4f2d63[_0x106a5c(0x90)]),process[_0x106a5c(0xc1)](0x0);}_0x4f2d63['DZFfA'](_0x4536c4['statusCode'],0x191)&&(logger[_0x106a5c(0xca)](_0x106a5c(0x9f)),await _0x4f2d63[_0x106a5c(0xa5)](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0x7e)],_0x4f2d63['gAPIg'],null,_0xa0f61c),process[_0x106a5c(0xc1)](0x1)),_0x4f2d63['DZFfA'](_0x4536c4[_0x106a5c(0x88)],0x190)&&(logger[_0x106a5c(0xca)](JSON[_0x106a5c(0x8d)](_0x4536c4[_0x106a5c(0xcc)])['message']),await _0x4f2d63['YWnRh'](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0x7e)],_0x4f2d63['OgbTo'],null,_0xa0f61c),process[_0x106a5c(0xc1)](0x1)),logger[_0x106a5c(0xca)](_0x106a5c(0xb3)+JSON[_0x106a5c(0x86)](_0x4536c4)),await _0x4f2d63[_0x106a5c(0x91)](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63['Cujpl'],messageTypes[_0x106a5c(0x7e)],_0x4f2d63[_0x106a5c(0xb1)],_0x4536c4,_0xa0f61c),process[_0x106a5c(0xc1)](0x1);}catch(_0x43ec63){const _0x17371e=_0x106a5c(0xae)+_0x43ec63+'\x20\x0a'+JSON[_0x106a5c(0x86)](_0x43ec63['stack'])+'\x20';logger[_0x106a5c(0xca)](_0x17371e),process['exit'](0x1);}};function a17_0x8b2d(){const _0x19242a=['stringify','string','statusCode','7PwJxYb','fetchLocalCreds','../../config/logger','clusterName','parse','info','rVFTg','NFgpN','khCoB','grid-id','../../config/constants','3844422oNPulR','2147515eUSnMx','Adding\x20Websocket\x20listeners','7131879imfIWF','xMYBr','existsSync','reconnecting-websocket','server-error','username','clusterRegion','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2682513xHvaxS','region','debug','<PasswordPlaceholder>','cloudProvider','vzRyQ','bstackAccesskey','Browserstack','6531088lhIKte','Start\x20an\x20existing\x20Automation\x20grid.','1055236vGaPbc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','IoBGd','gridId','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HwdKq','hSdGX','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','start-grid-called','readFileSync','configureIfNotConfigured','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','../../utils/instrumentationUtils','weXtD','init-not-called','invalid-grid-id','hArqE','sDLHL','Grid\x20started','desc','../../utils/gridComponents','exit','sUESR','WRJqw','YWnRh','epilogue','handler','../../utils/createk8sClient','type','xqTuA','error','argv','body','name','654537VHwwkW','cPswG','JczGq','unauthorised','Cujpl','ERROR','connectionTimeout','replace','password','8pvvckQ','help','nidke','user'];a17_0x8b2d=function(){return _0x19242a;};return a17_0x8b2d();}
1
+ const a17_0x20310f=a17_0x30fc;(function(_0x1062fd,_0x3fa8b9){const _0x1e1c7d=a17_0x30fc,_0x7239ce=_0x1062fd();while(!![]){try{const _0x15d739=-parseInt(_0x1e1c7d(0x1cf))/0x1+parseInt(_0x1e1c7d(0x1aa))/0x2+-parseInt(_0x1e1c7d(0x1bb))/0x3+parseInt(_0x1e1c7d(0x198))/0x4+-parseInt(_0x1e1c7d(0x18c))/0x5+-parseInt(_0x1e1c7d(0x1c4))/0x6*(-parseInt(_0x1e1c7d(0x1ca))/0x7)+parseInt(_0x1e1c7d(0x1b1))/0x8;if(_0x15d739===_0x3fa8b9)break;else _0x7239ce['push'](_0x7239ce['shift']());}catch(_0x248f70){_0x7239ce['push'](_0x7239ce['shift']());}}}(a17_0x1bc0,0xf0453));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x20310f(0x194)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x20310f(0x1b0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a17_0x20310f(0x1d1)),{scaleUpHubDeployment}=require(a17_0x20310f(0x1a0)),{sendInstrumentationEvent}=require(a17_0x20310f(0x1be)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x20310f(0x19d)),{getCloudProviderObject}=require(a17_0x20310f(0x1a2));function a17_0x1bc0(){const _0x52517a=['QHKPc','../../utils/gridComponents','command','../../cloudproviders/utils','body','start-grid-called','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','stringify','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','DABSb','Start\x20an\x20existing\x20Automation\x20grid.','33952lHQzeO','error','readFileSync','tLpeV','user','builder','../../config/constants','30151360paaebB','fetchLocalCreds','string','wspgc','WiuQy','<UsernamePlaceholder>','usage','debug','WebSocket','grid','5227512LdtsVN','parse','hpFxD','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','message','clusterName','replace','CdNus','84AwBQOO','INFO','info','connectionTimeout','server-error','stack','8288bHJOBw','gridId','password','start','YDype','556002COrgfL','vCYhE','../../utils/utilityMethods','pafVj','desc','username','ERROR','statusCode','LZRyr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Adding\x20Websocket\x20listeners','tuWRm','handler','grid-id','existsSync','ZMhiM','5114055uADitn','dIlUc','kpVgI','cloudProvider','Browserstack','name','invalid-grid-id','ndgoR','reconnecting-websocket','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rEfuR','2011968KeRJiK','Grid\x20started','description','help','EVosS','../../utils/createk8sClient','options'];a17_0x1bc0=function(){return _0x52517a;};return a17_0x1bc0();}function a17_0x30fc(_0x55eba9,_0xd6b145){const _0x1bc0bd=a17_0x1bc0();return a17_0x30fc=function(_0x30fcbd,_0x2f69b2){_0x30fcbd=_0x30fcbd-0x18b;let _0x2d22ff=_0x1bc0bd[_0x30fcbd];return _0x2d22ff;},a17_0x30fc(_0x55eba9,_0xd6b145);}exports[a17_0x20310f(0x1a1)]=a17_0x20310f(0x1ba),exports[a17_0x20310f(0x1d3)]=a17_0x20310f(0x1a9),exports[a17_0x20310f(0x1af)]=function(_0x342b45){const _0xd90e7d=a17_0x20310f,_0x4155c0={};_0x4155c0['DABSb']=_0xd90e7d(0x1bf),_0x4155c0[_0xd90e7d(0x18e)]=_0xd90e7d(0x1b3),_0x4155c0[_0xd90e7d(0x19f)]=_0xd90e7d(0x19b);const _0x10146f=_0x4155c0,_0x408504={};_0x408504[_0xd90e7d(0x19a)]=_0x10146f[_0xd90e7d(0x1a8)],_0x408504['type']=_0x10146f[_0xd90e7d(0x18e)];const _0x70a0c6={};return _0x70a0c6[_0xd90e7d(0x1dc)]=_0x408504,_0x342b45[_0xd90e7d(0x1b7)](HELP_HEADER_MESSAGE[_0xd90e7d(0x1cd)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xd90e7d(0x19e)](_0x70a0c6)[_0xd90e7d(0x19b)](_0x10146f['QHKPc'])['argv'];},exports[a17_0x20310f(0x1db)]=async function(_0x486c75){const _0x4f13b3=a17_0x20310f,_0x45b102={'wspgc':_0x4f13b3(0x1a7),'WiuQy':function(_0x3640fd){return _0x3640fd();},'wLJyt':_0x4f13b3(0x196),'pafVj':function(_0x1e8d5b,_0x7647c6,_0x2bdeb8,_0x3166c9,_0x539429,_0x3a1998,_0xcc9c37){return _0x1e8d5b(_0x7647c6,_0x2bdeb8,_0x3166c9,_0x539429,_0x3a1998,_0xcc9c37);},'EVosS':_0x4f13b3(0x1a4),'tuWRm':'init-not-called','CdNus':_0x4f13b3(0x1b6),'tLpeV':'<PasswordPlaceholder>','QVfiu':_0x4f13b3(0x1d9),'NLcCJ':function(_0x42c2c0,_0x1da3c9,_0x906539,_0x56b23f){return _0x42c2c0(_0x1da3c9,_0x906539,_0x56b23f);},'YDype':function(_0x17e923,_0x6f1c8e,_0xb77a28,_0x2ab029,_0x4dfc18,_0x118398,_0x1688a5){return _0x17e923(_0x6f1c8e,_0xb77a28,_0x2ab029,_0x4dfc18,_0x118398,_0x1688a5);},'rEfuR':function(_0x4ba1ae,_0x310ad5){return _0x4ba1ae(_0x310ad5);},'dIlUc':function(_0x2b3972,_0x532c77,_0x1a0512){return _0x2b3972(_0x532c77,_0x1a0512);},'ZMhiM':_0x4f13b3(0x199),'iobCQ':function(_0x3fd73b,_0x477f17){return _0x3fd73b===_0x477f17;},'ibJWV':'unauthorised','LZRyr':function(_0x2b7c32,_0x2d5f09){return _0x2b7c32===_0x2d5f09;},'vCYhE':_0x4f13b3(0x192),'ndgoR':function(_0x454538,_0x3ed013,_0x57d158,_0x36c134,_0x4853be,_0x2cbcc0,_0x8e4cd){return _0x454538(_0x3ed013,_0x57d158,_0x36c134,_0x4853be,_0x2cbcc0,_0x8e4cd);},'hpFxD':_0x4f13b3(0x1c8)};let _0x46b2bd;try{!_0x486c75[_0x4f13b3(0x1cb)]&&(logger['error'](_0x45b102[_0x4f13b3(0x1b4)]),process[_0x4f13b3(0x195)](0x1));!fs[_0x4f13b3(0x1dd)](_0x45b102['WiuQy'](getCredentialsPath))&&(logger[_0x4f13b3(0x1ab)](_0x45b102['wLJyt']),await _0x45b102['pafVj'](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1d5)],_0x45b102[_0x4f13b3(0x1da)],null,_0x486c75),process[_0x4f13b3(0x195)](0x1));logger[_0x4f13b3(0x1c6)]('Starting\x20grid\x20'+_0x486c75['gridId']),await _0x45b102[_0x4f13b3(0x1d2)](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1c5)],null,null,_0x486c75);const _0x495902=JSON[_0x4f13b3(0x1bc)](fs[_0x4f13b3(0x1ac)](_0x45b102[_0x4f13b3(0x1b5)](getCredentialsPath)));global_registry['bstackUsername']=_0x495902[_0x4f13b3(0x190)][_0x4f13b3(0x1d4)],global_registry['bstackAccesskey']=_0x495902[_0x4f13b3(0x190)][_0x4f13b3(0x1cc)];const _0x1069a6=WS_ENDPOINT[_0x4f13b3(0x1c2)](_0x45b102[_0x4f13b3(0x1c3)],_0x495902['Browserstack']['username'])['replace'](_0x45b102[_0x4f13b3(0x1ad)],_0x495902[_0x4f13b3(0x190)][_0x4f13b3(0x1cc)]),_0x5d64ab={};_0x5d64ab[_0x4f13b3(0x1b9)]=ws,_0x5d64ab[_0x4f13b3(0x1c7)]=0x36ee80,_0x46b2bd=new ReconnectingWebSocket(_0x1069a6,[],_0x5d64ab),logger[_0x4f13b3(0x1b8)](_0x45b102['QVfiu']),webSocketUtils['addListeners'](_0x46b2bd,_0x486c75[_0x4f13b3(0x1ae)],_0x486c75['password']);const [_0x3d9b61,_0x2d6a84]=await _0x45b102['NLcCJ'](getGridDetails,_0x495902[_0x4f13b3(0x190)]['username'],_0x495902['Browserstack'][_0x4f13b3(0x1cc)],_0x486c75['gridId']);if(_0x2d6a84){const _0x2872ad=_0x2d6a84[_0x4f13b3(0x1c6)];global_registry[_0x4f13b3(0x18f)]=_0x2872ad[_0x4f13b3(0x18f)],global_registry['clusterRegion']=_0x2872ad['region'],global_registry['clusterName']=_0x2872ad['clusterName'];const _0x4e60ef=await _0x45b102[_0x4f13b3(0x1ce)](getCloudProviderObject,_0x2872ad[_0x4f13b3(0x18f)],_0x2872ad[_0x4f13b3(0x1c1)],_0x2872ad[_0x4f13b3(0x191)],_0x46b2bd,webSocketUtils,_0x486c75),_0x2bfb1e=_0x495902[_0x4f13b3(0x18f)]||{};await _0x4e60ef[_0x4f13b3(0x1b2)](_0x2bfb1e),_0x4e60ef['configureIfNotConfigured']();const [_0xd72d23,_0x5b0561,_0x40ef0d,_0x3da8d8,_0x1805cc,_0x5f396a]=await _0x45b102[_0x4f13b3(0x197)](createK8sClient,_0x4e60ef);await _0x45b102[_0x4f13b3(0x18d)](scaleUpHubDeployment,_0x5b0561,_0x2872ad[_0x4f13b3(0x191)]),logger[_0x4f13b3(0x1c6)](_0x45b102[_0x4f13b3(0x18b)]),process[_0x4f13b3(0x195)](0x0);}_0x45b102['iobCQ'](_0x3d9b61[_0x4f13b3(0x1d6)],0x191)&&(logger['error'](_0x4f13b3(0x1d8)),await _0x45b102[_0x4f13b3(0x1ce)](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1d5)],_0x45b102['ibJWV'],null,_0x486c75),process['exit'](0x1)),_0x45b102[_0x4f13b3(0x1d7)](_0x3d9b61['statusCode'],0x190)&&(logger[_0x4f13b3(0x1ab)](JSON[_0x4f13b3(0x1bc)](_0x3d9b61[_0x4f13b3(0x1a3)])[_0x4f13b3(0x1c0)]),await _0x45b102[_0x4f13b3(0x1ce)](sendInstrumentationEvent,_0x486c75,_0x45b102[_0x4f13b3(0x19c)],messageTypes[_0x4f13b3(0x1d5)],_0x45b102[_0x4f13b3(0x1d0)],null,_0x486c75),process[_0x4f13b3(0x195)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4f13b3(0x1a6)](_0x3d9b61)),await _0x45b102[_0x4f13b3(0x193)](sendInstrumentationEvent,_0x486c75,_0x45b102['EVosS'],messageTypes[_0x4f13b3(0x1d5)],_0x45b102[_0x4f13b3(0x1bd)],_0x3d9b61,_0x486c75),process[_0x4f13b3(0x195)](0x1);}catch(_0x684348){const _0x100814=_0x4f13b3(0x1a5)+_0x684348+'\x20\x0a'+JSON[_0x4f13b3(0x1a6)](_0x684348[_0x4f13b3(0x1c9)])+'\x20';logger[_0x4f13b3(0x1ab)](_0x100814),process[_0x4f13b3(0x195)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x3e5da5=a18_0x12ac;function a18_0x12ac(_0xab5372,_0xa3fbdd){const _0x3870b5=a18_0x3870();return a18_0x12ac=function(_0x12ac9a,_0x36cd6a){_0x12ac9a=_0x12ac9a-0x117;let _0x5bb6ee=_0x3870b5[_0x12ac9a];return _0x5bb6ee;},a18_0x12ac(_0xab5372,_0xa3fbdd);}function a18_0x3870(){const _0x437cee=['stop_commands','Stop\x20a\x20running\x20Automation\x20grid.','27664PYjtIM','../config/constants','5018734hidIfY','56619dHDNXO','12VZhUwT','pJIUc','handler','99866HOXjMO','1175548ggnKbf','30217xksnvP','commandDir','command','11030RHnXZT','builder','246pHGKkE','stop','desc','1208tlDSBf','demandCommand','epilogue','recommendCommands','2096555oozrEh','strict','help'];a18_0x3870=function(){return _0x437cee;};return a18_0x3870();}(function(_0x3835d0,_0x18059f){const _0x3e2cc6=a18_0x12ac,_0x19c47d=_0x3835d0();while(!![]){try{const _0x590f7b=-parseInt(_0x3e2cc6(0x11a))/0x1+parseInt(_0x3e2cc6(0x11b))/0x2+parseInt(_0x3e2cc6(0x121))/0x3*(parseInt(_0x3e2cc6(0x12d))/0x4)+-parseInt(_0x3e2cc6(0x128))/0x5*(-parseInt(_0x3e2cc6(0x117))/0x6)+parseInt(_0x3e2cc6(0x12f))/0x7+parseInt(_0x3e2cc6(0x124))/0x8*(parseInt(_0x3e2cc6(0x130))/0x9)+parseInt(_0x3e2cc6(0x11f))/0xa*(-parseInt(_0x3e2cc6(0x11c))/0xb);if(_0x590f7b===_0x18059f)break;else _0x19c47d['push'](_0x19c47d['shift']());}catch(_0x537dd9){_0x19c47d['push'](_0x19c47d['shift']());}}}(a18_0x3870,0x818ac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3e5da5(0x12e));exports[a18_0x3e5da5(0x11e)]=a18_0x3e5da5(0x122),exports[a18_0x3e5da5(0x123)]=a18_0x3e5da5(0x12c),exports[a18_0x3e5da5(0x120)]=function(_0xae2c5c){const _0x3b6985=a18_0x3e5da5,_0x8e4b7d={};_0x8e4b7d['hfMuw']=_0x3b6985(0x12b),_0x8e4b7d[_0x3b6985(0x118)]=_0x3b6985(0x12a);const _0x1dc702=_0x8e4b7d;return _0xae2c5c['usage'](HELP_HEADER_MESSAGE[_0x3b6985(0x122)])[_0x3b6985(0x126)](HELP_FOOTER_MESSAGE)[_0x3b6985(0x11d)](_0x1dc702['hfMuw'])[_0x3b6985(0x125)]()[_0x3b6985(0x127)]()[_0x3b6985(0x129)]()['help'](_0x1dc702[_0x3b6985(0x118)]);},exports[a18_0x3e5da5(0x119)]=function(_0x22d3f4){};
1
+ function a18_0x14ee(_0x52ae29,_0xdeee2d){const _0x50d5f0=a18_0x50d5();return a18_0x14ee=function(_0x14eea6,_0x2acb89){_0x14eea6=_0x14eea6-0x110;let _0x23bc7a=_0x50d5f0[_0x14eea6];return _0x23bc7a;},a18_0x14ee(_0x52ae29,_0xdeee2d);}const a18_0x2fa25d=a18_0x14ee;(function(_0x1afe65,_0x64f89e){const _0x59b607=a18_0x14ee,_0x359bfd=_0x1afe65();while(!![]){try{const _0x114e9f=parseInt(_0x59b607(0x111))/0x1+-parseInt(_0x59b607(0x11a))/0x2*(-parseInt(_0x59b607(0x119))/0x3)+-parseInt(_0x59b607(0x117))/0x4+-parseInt(_0x59b607(0x123))/0x5+-parseInt(_0x59b607(0x11e))/0x6+parseInt(_0x59b607(0x122))/0x7*(parseInt(_0x59b607(0x114))/0x8)+parseInt(_0x59b607(0x110))/0x9;if(_0x114e9f===_0x64f89e)break;else _0x359bfd['push'](_0x359bfd['shift']());}catch(_0x40484d){_0x359bfd['push'](_0x359bfd['shift']());}}}(a18_0x50d5,0xeec40));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2fa25d(0x124));function a18_0x50d5(){const _0x5499aa=['154642fsLKHs','strict','recommendCommands','stop','4645452zMaOiY','epilogue','builder','demandCommand','259YqvyOA','3397485XayDOS','../config/constants','usage','4940820bkNaxH','1032578VlPDxH','HSjpw','stop_commands','417464UaNbyr','help','desc','5559560TMMguZ','command','12SaWtyB'];a18_0x50d5=function(){return _0x5499aa;};return a18_0x50d5();}exports[a18_0x2fa25d(0x118)]=a18_0x2fa25d(0x11d),exports[a18_0x2fa25d(0x116)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a18_0x2fa25d(0x120)]=function(_0x149db4){const _0x2e4957=a18_0x2fa25d,_0x350b8d={};_0x350b8d['JcHdY']=_0x2e4957(0x113),_0x350b8d[_0x2e4957(0x112)]='help';const _0x13b603=_0x350b8d;return _0x149db4[_0x2e4957(0x125)](HELP_HEADER_MESSAGE['stop'])[_0x2e4957(0x11f)](HELP_FOOTER_MESSAGE)['commandDir'](_0x13b603['JcHdY'])[_0x2e4957(0x121)]()[_0x2e4957(0x11c)]()[_0x2e4957(0x11b)]()[_0x2e4957(0x115)](_0x13b603[_0x2e4957(0x112)]);},exports['handler']=function(_0x17bf2e){};
@@ -1 +1 @@
1
- function a19_0x1160(_0x34266c,_0x50a78f){const _0x290440=a19_0x2904();return a19_0x1160=function(_0x1160b3,_0x4dcbef){_0x1160b3=_0x1160b3-0x7b;let _0x43cf0e=_0x290440[_0x1160b3];return _0x43cf0e;},a19_0x1160(_0x34266c,_0x50a78f);}const a19_0x34f1e2=a19_0x1160;(function(_0x2751d5,_0x5a6e6b){const _0x1403a3=a19_0x1160,_0x2461dc=_0x2751d5();while(!![]){try{const _0x3b7846=-parseInt(_0x1403a3(0xcd))/0x1*(parseInt(_0x1403a3(0x87))/0x2)+-parseInt(_0x1403a3(0x84))/0x3+parseInt(_0x1403a3(0x88))/0x4+-parseInt(_0x1403a3(0x8d))/0x5+parseInt(_0x1403a3(0xa3))/0x6*(parseInt(_0x1403a3(0x81))/0x7)+parseInt(_0x1403a3(0x85))/0x8*(parseInt(_0x1403a3(0xad))/0x9)+parseInt(_0x1403a3(0xb6))/0xa;if(_0x3b7846===_0x5a6e6b)break;else _0x2461dc['push'](_0x2461dc['shift']());}catch(_0x5b496a){_0x2461dc['push'](_0x2461dc['shift']());}}}(a19_0x2904,0xa43fb));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x34f1e2(0x96)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x34f1e2(0x95)),{getCredentialsPath,getGridDetails}=require(a19_0x34f1e2(0x90)),{scaleDownHubDeployment}=require(a19_0x34f1e2(0x8e)),{sendInstrumentationEvent}=require(a19_0x34f1e2(0x86)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x34f1e2(0xd0)),{getCloudProviderObject}=require(a19_0x34f1e2(0xbc));exports[a19_0x34f1e2(0xb2)]='grid',exports[a19_0x34f1e2(0xd2)]=a19_0x34f1e2(0xba),exports[a19_0x34f1e2(0xc6)]=function(_0x1daec8){const _0x672a40=a19_0x34f1e2,_0xfb66fd={};_0xfb66fd[_0x672a40(0xaf)]=_0x672a40(0x97),_0xfb66fd[_0x672a40(0xa0)]=_0x672a40(0x92),_0xfb66fd[_0x672a40(0xc7)]=_0x672a40(0xa1);const _0x52af1d=_0xfb66fd,_0x4a9756={};_0x4a9756['description']=_0x52af1d[_0x672a40(0xaf)],_0x4a9756[_0x672a40(0x98)]=_0x52af1d[_0x672a40(0xa0)];const _0x572cd6={};return _0x572cd6[_0x672a40(0xce)]=_0x4a9756,_0x1daec8[_0x672a40(0x82)](HELP_HEADER_MESSAGE[_0x672a40(0xb7)])[_0x672a40(0x89)](HELP_FOOTER_MESSAGE)[_0x672a40(0xbb)](_0x572cd6)[_0x672a40(0xa1)](_0x52af1d[_0x672a40(0xc7)])['argv'];},exports['handler']=async function(_0x3a56a1){const _0x30ad69=a19_0x34f1e2,_0x4ba12d={'FjAuw':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','ptmBD':function(_0x4a110e){return _0x4a110e();},'fknIr':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Uwexg':function(_0x3b3096,_0x22f694,_0x541632,_0x43cffb,_0x5a471d,_0x187648,_0x54b160){return _0x3b3096(_0x22f694,_0x541632,_0x43cffb,_0x5a471d,_0x187648,_0x54b160);},'BpDqW':_0x30ad69(0xc3),'WytQm':_0x30ad69(0xc1),'CrsVn':function(_0x1e1310,_0x3fbd98,_0x5338c1,_0x4e047e,_0x3c74a8,_0xaae3cb,_0x18da98){return _0x1e1310(_0x3fbd98,_0x5338c1,_0x4e047e,_0x3c74a8,_0xaae3cb,_0x18da98);},'YoYug':function(_0x4fa2f5){return _0x4fa2f5();},'TwgMw':_0x30ad69(0xcb),'hYuxj':_0x30ad69(0xb8),'qyBfa':_0x30ad69(0xa6),'YxavW':function(_0x1485f7,_0x300e4f,_0x297f95,_0x2dc8cc){return _0x1485f7(_0x300e4f,_0x297f95,_0x2dc8cc);},'UNFZs':function(_0x243d41,_0x2e92cc,_0x55eaa2,_0x54354b,_0xad89fe,_0x1511cd){return _0x243d41(_0x2e92cc,_0x55eaa2,_0x54354b,_0xad89fe,_0x1511cd);},'DwJJf':function(_0x3777a6,_0x49a88b){return _0x3777a6(_0x49a88b);},'cHrMo':function(_0x58cdc4,_0x151db5,_0x9fd0ed){return _0x58cdc4(_0x151db5,_0x9fd0ed);},'lolhF':_0x30ad69(0x9c),'RyjyB':function(_0x571920,_0x525520){return _0x571920===_0x525520;},'PmXMJ':_0x30ad69(0xa5),'EgTIQ':function(_0xe93ec6,_0x4db70a){return _0xe93ec6===_0x4db70a;},'PVBRt':function(_0x474521,_0x2a8fcb,_0x13b4a1,_0x4db948,_0x3251c2,_0x461336,_0x5d65c7){return _0x474521(_0x2a8fcb,_0x13b4a1,_0x4db948,_0x3251c2,_0x461336,_0x5d65c7);},'JCrYg':_0x30ad69(0xcc),'hKCbv':function(_0xc7facc,_0x288d6f,_0x13d33e,_0x5b5ae0,_0x1e5d75,_0x3f64c3,_0x4798be){return _0xc7facc(_0x288d6f,_0x13d33e,_0x5b5ae0,_0x1e5d75,_0x3f64c3,_0x4798be);},'dvMSp':'server-error'};let _0xa06422;try{!_0x3a56a1['gridId']&&(logger[_0x30ad69(0xc2)](_0x4ba12d[_0x30ad69(0x7d)]),process[_0x30ad69(0x9d)](0x1));!fs[_0x30ad69(0xcf)](_0x4ba12d[_0x30ad69(0xa9)](getCredentialsPath))&&(logger[_0x30ad69(0xc2)](_0x4ba12d[_0x30ad69(0xca)]),await _0x4ba12d['Uwexg'](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d[_0x30ad69(0xb1)],messageTypes['ERROR'],_0x4ba12d[_0x30ad69(0xc9)],null,_0x3a56a1),process[_0x30ad69(0x9d)](0x1));logger[_0x30ad69(0x94)](_0x30ad69(0xac)+_0x3a56a1[_0x30ad69(0xc8)]),await _0x4ba12d[_0x30ad69(0xa8)](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d['BpDqW'],messageTypes[_0x30ad69(0x7e)],null,null,_0x3a56a1);const _0x5437b3=JSON['parse'](fs['readFileSync'](_0x4ba12d[_0x30ad69(0xa4)](getCredentialsPath)));global_registry[_0x30ad69(0x7c)]=_0x5437b3['Browserstack']['username'],global_registry[_0x30ad69(0xb9)]=_0x5437b3[_0x30ad69(0xc5)]['password'];const _0x17f543=WS_ENDPOINT[_0x30ad69(0x9e)](_0x4ba12d[_0x30ad69(0xc0)],_0x5437b3[_0x30ad69(0xc5)]['username'])[_0x30ad69(0x9e)](_0x4ba12d[_0x30ad69(0xd1)],_0x5437b3[_0x30ad69(0xc5)][_0x30ad69(0x99)]),_0x495076={};_0x495076[_0x30ad69(0x83)]=ws,_0x495076['connectionTimeout']=0x36ee80,_0xa06422=new ReconnectingWebSocket(_0x17f543,[],_0x495076),logger[_0x30ad69(0x7b)](_0x4ba12d[_0x30ad69(0x8b)]),webSocketUtils[_0x30ad69(0x93)](_0xa06422,_0x3a56a1[_0x30ad69(0xb5)],_0x3a56a1[_0x30ad69(0x99)]);const [_0x547de0,_0x59aa2c]=await _0x4ba12d[_0x30ad69(0xae)](getGridDetails,_0x5437b3[_0x30ad69(0xc5)]['username'],_0x5437b3[_0x30ad69(0xc5)][_0x30ad69(0x99)],_0x3a56a1[_0x30ad69(0xc8)]);if(_0x59aa2c){const _0x921b7e=_0x59aa2c[_0x30ad69(0x94)];global_registry[_0x30ad69(0x8f)]=_0x921b7e['cloudProvider'],global_registry[_0x30ad69(0x7f)]=_0x921b7e[_0x30ad69(0xaa)],global_registry[_0x30ad69(0xa7)]=_0x921b7e[_0x30ad69(0xa7)];const _0x550a5d=_0x4ba12d['UNFZs'](getCloudProviderObject,_0x921b7e[_0x30ad69(0x8f)],_0x921b7e[_0x30ad69(0xa7)],_0x921b7e['name'],_0xa06422,webSocketUtils),_0x34a842=_0x5437b3[_0x30ad69(0x8f)]||{};await _0x550a5d[_0x30ad69(0xb0)](_0x34a842),_0x550a5d[_0x30ad69(0x9b)]();const [_0x124cdf,_0x1154dd,_0x40e154,_0x840b27,_0x6ac106,_0x1c265e]=await _0x4ba12d['DwJJf'](createK8sClient,_0x550a5d);await _0x4ba12d['cHrMo'](scaleDownHubDeployment,_0x1154dd,_0x921b7e['name']),logger[_0x30ad69(0x94)](_0x4ba12d['lolhF']),process[_0x30ad69(0x9d)](0x0);}_0x4ba12d[_0x30ad69(0xbd)](_0x547de0['statusCode'],0x191)&&(logger['error'](_0x30ad69(0xc4)),await _0x4ba12d['Uwexg'](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d[_0x30ad69(0xb1)],messageTypes[_0x30ad69(0x8a)],_0x4ba12d[_0x30ad69(0xb3)],null,_0x3a56a1),process[_0x30ad69(0x9d)](0x1)),_0x4ba12d[_0x30ad69(0x9a)](_0x547de0[_0x30ad69(0x91)],0x190)&&(logger['error'](JSON['parse'](_0x547de0[_0x30ad69(0xb4)])[_0x30ad69(0x9f)]),await _0x4ba12d[_0x30ad69(0x80)](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d['BpDqW'],messageTypes['ERROR'],_0x4ba12d[_0x30ad69(0xbe)],null,_0x3a56a1),process[_0x30ad69(0x9d)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x547de0)),await _0x4ba12d[_0x30ad69(0xab)](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d[_0x30ad69(0xb1)],messageTypes[_0x30ad69(0x8a)],_0x4ba12d[_0x30ad69(0x8c)],_0x547de0,_0x3a56a1),process[_0x30ad69(0x9d)](0x1);}catch(_0x54b2f0){const _0x251aa1=_0x30ad69(0xbf)+_0x54b2f0+'\x20\x0a'+JSON['stringify'](_0x54b2f0[_0x30ad69(0xa2)])+'\x20';logger['error'](_0x251aa1),process[_0x30ad69(0x9d)](0x1);}};function a19_0x2904(){const _0x38fa47=['Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','type','password','EgTIQ','configureIfNotConfigured','Grid\x20stoppped.','exit','replace','message','NzIiI','help','stack','3092712yZbtQL','YoYug','unauthorised','Adding\x20Websocket\x20listeners','clusterName','CrsVn','ptmBD','region','hKCbv','Stopping\x20grid\x20','15615sQOmQs','YxavW','hpgdo','fetchLocalCreds','BpDqW','command','PmXMJ','body','user','10665620BIllgY','stop','<PasswordPlaceholder>','bstackAccesskey','Stop\x20a\x20running\x20Automation\x20grid.','options','../../cloudproviders/utils','RyjyB','JCrYg','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','TwgMw','init-not-called','error','stop-grid-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','builder','JwPKu','gridId','WytQm','fknIr','<UsernamePlaceholder>','invalid-grid-id','62788yCioqA','grid-id','existsSync','../../utils/createk8sClient','hYuxj','desc','debug','bstackUsername','FjAuw','INFO','clusterRegion','PVBRt','7RPKfBa','usage','WebSocket','3567528cVKZnP','3816NSLuXk','../../utils/instrumentationUtils','22FOtJLj','2084020OMRXtj','epilogue','ERROR','qyBfa','dvMSp','1890035Owmbhd','../../utils/gridComponents','cloudProvider','../../utils/utilityMethods','statusCode','string','addListeners','info','../../config/logger','reconnecting-websocket'];a19_0x2904=function(){return _0x38fa47;};return a19_0x2904();}
1
+ const a19_0x5f41a8=a19_0x3197;(function(_0x35cd79,_0x2a242f){const _0x46a430=a19_0x3197,_0x352570=_0x35cd79();while(!![]){try{const _0x5050a4=parseInt(_0x46a430(0x1b3))/0x1+parseInt(_0x46a430(0x1f0))/0x2*(parseInt(_0x46a430(0x1f1))/0x3)+-parseInt(_0x46a430(0x1de))/0x4+-parseInt(_0x46a430(0x1ea))/0x5+-parseInt(_0x46a430(0x1e7))/0x6*(-parseInt(_0x46a430(0x1c6))/0x7)+parseInt(_0x46a430(0x1fe))/0x8+-parseInt(_0x46a430(0x1cc))/0x9;if(_0x5050a4===_0x2a242f)break;else _0x352570['push'](_0x352570['shift']());}catch(_0x2b5c27){_0x352570['push'](_0x352570['shift']());}}}(a19_0x2c22,0x4ca9b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5f41a8(0x1b5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x5f41a8(0x1fc)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x5f41a8(0x1ee)),webSocketUtils=require(a19_0x5f41a8(0x1d9)),{createK8sClient}=require(a19_0x5f41a8(0x1fa)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x2c22(){const _0x5a6c1b=['connectionTimeout','unauthorised','Xmvaz','Stop\x20a\x20running\x20Automation\x20grid.','PEZfe','stack','../../utils/webSocketUtils','gridId','ERROR','<PasswordPlaceholder>','existsSync','423468KKEUPS','stop','info','debug','desc','password','bstackAccesskey','NeniO','grid-id','672FQoszH','argv','Grid\x20stoppped.','719145jtbaFZ','clusterName','invalid-grid-id','usage','../../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','4CbYSaw','190317VUlIGk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','wxbDg','aBuWj','server-error','type','QIqHE','NlxbT','options','../../utils/createk8sClient','bstackUsername','../../utils/utilityMethods','Browserstack','1547472rIhWek','message','description','WebSocket','region','stop-grid-called','configureIfNotConfigured','INFO','help','<UsernamePlaceholder>','exit','XkKHq','448072lVQSxV','handler','reconnecting-websocket','AEDOd','error','grid','username','parse','statusCode','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','lwmzy','addListeners','Adding\x20Websocket\x20listeners','clusterRegion','name','XDaKg','fYejO','qGQIs','YHAxQ','4844TqBnhX','HdXMQ','sBjCF','command','cloudProvider','Stopping\x20grid\x20','2539629CxwMsu','readFileSync','stringify','PDvGI','body','replace','string'];a19_0x2c22=function(){return _0x5a6c1b;};return a19_0x2c22();}function a19_0x3197(_0x176cb2,_0x3db6c4){const _0x2c2282=a19_0x2c22();return a19_0x3197=function(_0x3197ed,_0x170c94){_0x3197ed=_0x3197ed-0x1ac;let _0x214abb=_0x2c2282[_0x3197ed];return _0x214abb;},a19_0x3197(_0x176cb2,_0x3db6c4);}exports[a19_0x5f41a8(0x1c9)]=a19_0x5f41a8(0x1b8),exports[a19_0x5f41a8(0x1e2)]=a19_0x5f41a8(0x1d6),exports['builder']=function(_0x44561f){const _0x4e940b=a19_0x5f41a8,_0x59d83a={};_0x59d83a[_0x4e940b(0x1f8)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x59d83a[_0x4e940b(0x1f7)]=_0x4e940b(0x1d2),_0x59d83a[_0x4e940b(0x1b6)]=_0x4e940b(0x1af);const _0x1df1a5=_0x59d83a,_0x562c20={};_0x562c20[_0x4e940b(0x200)]=_0x1df1a5[_0x4e940b(0x1f8)],_0x562c20[_0x4e940b(0x1f6)]=_0x1df1a5['QIqHE'];const _0x1edc22={};return _0x1edc22[_0x4e940b(0x1e6)]=_0x562c20,_0x44561f[_0x4e940b(0x1ed)](HELP_HEADER_MESSAGE[_0x4e940b(0x1df)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4e940b(0x1f9)](_0x1edc22)[_0x4e940b(0x1af)](_0x1df1a5[_0x4e940b(0x1b6)])[_0x4e940b(0x1e8)];},exports[a19_0x5f41a8(0x1b4)]=async function(_0x5e5ae1){const _0x4274a1=a19_0x5f41a8,_0x155814={'XkKHq':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Xmvaz':function(_0xdadee6){return _0xdadee6();},'vPrKT':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sBjCF':function(_0x3cd082,_0x2684a9,_0x342da3,_0xc64b7c,_0x2bfd44,_0x49ba71,_0x34fbd1){return _0x3cd082(_0x2684a9,_0x342da3,_0xc64b7c,_0x2bfd44,_0x49ba71,_0x34fbd1);},'wxbDg':_0x4274a1(0x1ac),'fxfsC':'init-not-called','PDvGI':function(_0x12346b){return _0x12346b();},'RpmHh':_0x4274a1(0x1b0),'mpZmX':_0x4274a1(0x1dc),'qGQIs':_0x4274a1(0x1bf),'fYejO':function(_0x172fba,_0x3e909c,_0x495247,_0x73d2ee){return _0x172fba(_0x3e909c,_0x495247,_0x73d2ee);},'NeniO':function(_0x6e5c0,_0xa16024,_0x4e6db9,_0x5e50ab,_0x55790c,_0x233f29,_0x3d321d){return _0x6e5c0(_0xa16024,_0x4e6db9,_0x5e50ab,_0x55790c,_0x233f29,_0x3d321d);},'TmMFJ':function(_0x2f3214,_0x535177){return _0x2f3214(_0x535177);},'PEZfe':function(_0x2a5e05,_0x175a6a,_0x3db9df){return _0x2a5e05(_0x175a6a,_0x3db9df);},'xtpRj':_0x4274a1(0x1e9),'YHAxQ':function(_0x2af772,_0x2932da){return _0x2af772===_0x2932da;},'HdXMQ':_0x4274a1(0x1d4),'aBuWj':function(_0x3c51d9,_0x362198){return _0x3c51d9===_0x362198;},'XDaKg':_0x4274a1(0x1ec),'PWWYI':function(_0x3508ef,_0x338a75,_0xf3ad7b,_0x5e37f3,_0x163778,_0x20db61,_0x139b26){return _0x3508ef(_0x338a75,_0xf3ad7b,_0x5e37f3,_0x163778,_0x20db61,_0x139b26);},'lwmzy':_0x4274a1(0x1f5)};let _0x177f43;try{!_0x5e5ae1['gridId']&&(logger[_0x4274a1(0x1b7)](_0x155814[_0x4274a1(0x1b2)]),process[_0x4274a1(0x1b1)](0x1));!fs[_0x4274a1(0x1dd)](_0x155814[_0x4274a1(0x1d5)](getCredentialsPath))&&(logger[_0x4274a1(0x1b7)](_0x155814['vPrKT']),await _0x155814[_0x4274a1(0x1c8)](sendInstrumentationEvent,_0x5e5ae1,_0x155814[_0x4274a1(0x1f3)],messageTypes['ERROR'],_0x155814['fxfsC'],null,_0x5e5ae1),process['exit'](0x1));logger[_0x4274a1(0x1e0)](_0x4274a1(0x1cb)+_0x5e5ae1['gridId']),await _0x155814[_0x4274a1(0x1c8)](sendInstrumentationEvent,_0x5e5ae1,_0x155814[_0x4274a1(0x1f3)],messageTypes[_0x4274a1(0x1ae)],null,null,_0x5e5ae1);const _0x5e9bae=JSON['parse'](fs[_0x4274a1(0x1cd)](_0x155814[_0x4274a1(0x1cf)](getCredentialsPath)));global_registry[_0x4274a1(0x1fb)]=_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1b9)],global_registry[_0x4274a1(0x1e4)]=_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1e3)];const _0x3943fe=WS_ENDPOINT[_0x4274a1(0x1d1)](_0x155814['RpmHh'],_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1b9)])[_0x4274a1(0x1d1)](_0x155814['mpZmX'],_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1e3)]),_0x10a318={};_0x10a318[_0x4274a1(0x201)]=ws,_0x10a318[_0x4274a1(0x1d3)]=0x36ee80,_0x177f43=new ReconnectingWebSocket(_0x3943fe,[],_0x10a318),logger[_0x4274a1(0x1e1)](_0x155814[_0x4274a1(0x1c4)]),webSocketUtils[_0x4274a1(0x1be)](_0x177f43,_0x5e5ae1['user'],_0x5e5ae1[_0x4274a1(0x1e3)]);const [_0x53bbf6,_0x49bdf3]=await _0x155814[_0x4274a1(0x1c3)](getGridDetails,_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1b9)],_0x5e9bae[_0x4274a1(0x1fd)][_0x4274a1(0x1e3)],_0x5e5ae1[_0x4274a1(0x1da)]);if(_0x49bdf3){const _0xe68f5f=_0x49bdf3[_0x4274a1(0x1e0)];global_registry[_0x4274a1(0x1ca)]=_0xe68f5f[_0x4274a1(0x1ca)],global_registry[_0x4274a1(0x1c0)]=_0xe68f5f[_0x4274a1(0x202)],global_registry[_0x4274a1(0x1eb)]=_0xe68f5f[_0x4274a1(0x1eb)];const _0x376350=await _0x155814[_0x4274a1(0x1e5)](getCloudProviderObject,_0xe68f5f['cloudProvider'],_0xe68f5f[_0x4274a1(0x1eb)],_0xe68f5f['name'],_0x177f43,webSocketUtils,_0x5e5ae1),_0x27ef82=_0x5e9bae[_0x4274a1(0x1ca)]||{};await _0x376350['fetchLocalCreds'](_0x27ef82),_0x376350[_0x4274a1(0x1ad)]();const [_0x13abc7,_0x3b56d8,_0x3d33d8,_0x386bf3,_0x1324cb,_0x32212c]=await _0x155814['TmMFJ'](createK8sClient,_0x376350);await _0x155814[_0x4274a1(0x1d7)](scaleDownHubDeployment,_0x3b56d8,_0xe68f5f[_0x4274a1(0x1c1)]),logger[_0x4274a1(0x1e0)](_0x155814['xtpRj']),process[_0x4274a1(0x1b1)](0x0);}_0x155814[_0x4274a1(0x1c5)](_0x53bbf6[_0x4274a1(0x1bb)],0x191)&&(logger['error'](_0x4274a1(0x1f2)),await _0x155814[_0x4274a1(0x1e5)](sendInstrumentationEvent,_0x5e5ae1,_0x155814[_0x4274a1(0x1f3)],messageTypes[_0x4274a1(0x1db)],_0x155814[_0x4274a1(0x1c7)],null,_0x5e5ae1),process[_0x4274a1(0x1b1)](0x1)),_0x155814[_0x4274a1(0x1f4)](_0x53bbf6[_0x4274a1(0x1bb)],0x190)&&(logger[_0x4274a1(0x1b7)](JSON[_0x4274a1(0x1ba)](_0x53bbf6[_0x4274a1(0x1d0)])[_0x4274a1(0x1ff)]),await _0x155814[_0x4274a1(0x1e5)](sendInstrumentationEvent,_0x5e5ae1,_0x155814['wxbDg'],messageTypes[_0x4274a1(0x1db)],_0x155814[_0x4274a1(0x1c2)],null,_0x5e5ae1),process[_0x4274a1(0x1b1)](0x1)),logger[_0x4274a1(0x1b7)](_0x4274a1(0x1ef)+JSON['stringify'](_0x53bbf6)),await _0x155814['PWWYI'](sendInstrumentationEvent,_0x5e5ae1,_0x155814['wxbDg'],messageTypes['ERROR'],_0x155814[_0x4274a1(0x1bd)],_0x53bbf6,_0x5e5ae1),process[_0x4274a1(0x1b1)](0x1);}catch(_0x1c03fc){const _0x27f7ed=_0x4274a1(0x1bc)+_0x1c03fc+'\x20\x0a'+JSON[_0x4274a1(0x1ce)](_0x1c03fc[_0x4274a1(0x1d8)])+'\x20';logger[_0x4274a1(0x1b7)](_0x27f7ed),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3cc160=a20_0x69f3;(function(_0x393605,_0x338942){const _0x1d1a45=a20_0x69f3,_0x19a005=_0x393605();while(!![]){try{const _0x396bc2=-parseInt(_0x1d1a45(0x190))/0x1+parseInt(_0x1d1a45(0x1b2))/0x2*(-parseInt(_0x1d1a45(0x1b4))/0x3)+parseInt(_0x1d1a45(0x1b7))/0x4*(parseInt(_0x1d1a45(0x1c3))/0x5)+parseInt(_0x1d1a45(0x1e1))/0x6+parseInt(_0x1d1a45(0x1c2))/0x7*(-parseInt(_0x1d1a45(0x1be))/0x8)+-parseInt(_0x1d1a45(0x1b3))/0x9*(-parseInt(_0x1d1a45(0x1e2))/0xa)+parseInt(_0x1d1a45(0x1dc))/0xb*(parseInt(_0x1d1a45(0x19b))/0xc);if(_0x396bc2===_0x338942)break;else _0x19a005['push'](_0x19a005['shift']());}catch(_0x53eb14){_0x19a005['push'](_0x19a005['shift']());}}}(a20_0x132b,0xc8949),require(a20_0x3cc160(0x195))[a20_0x3cc160(0x1c1)](),exports[a20_0x3cc160(0x1d4)]=process['env']['DASHBOARD_ENDPOINT']||a20_0x3cc160(0x197),exports[a20_0x3cc160(0x1a4)]=process[a20_0x3cc160(0x19c)][a20_0x3cc160(0x1a4)]||a20_0x3cc160(0x1e5),exports[a20_0x3cc160(0x1a6)]=process[a20_0x3cc160(0x19c)][a20_0x3cc160(0x1a6)]||a20_0x3cc160(0x1b5),exports[a20_0x3cc160(0x1a3)]=a20_0x3cc160(0x198)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a20_0x3cc160(0x1c4)]=a20_0x3cc160(0x1cb),exports[a20_0x3cc160(0x1e7)]=a20_0x3cc160(0x1a5),exports[a20_0x3cc160(0x1aa)]=a20_0x3cc160(0x1dd));const timestamp=new Date()[a20_0x3cc160(0x1a0)]();exports[a20_0x3cc160(0x1a9)]=a20_0x3cc160(0x1de),exports[a20_0x3cc160(0x1c0)]=a20_0x3cc160(0x1cd)+timestamp,exports[a20_0x3cc160(0x1c7)]=a20_0x3cc160(0x1d9)+timestamp,exports[a20_0x3cc160(0x19e)]='browserstack-turboscale-grid',exports[a20_0x3cc160(0x19f)]=a20_0x3cc160(0x1a2),exports[a20_0x3cc160(0x1d5)]=a20_0x3cc160(0x1e8);const a20_0x2d98fa={};a20_0x2d98fa['Key']=a20_0x3cc160(0x1d6),a20_0x2d98fa['Value']='BrowserStack';const a20_0x98c185={};a20_0x98c185[a20_0x3cc160(0x1ca)]='browserstack:service',a20_0x98c185[a20_0x3cc160(0x1b8)]=a20_0x3cc160(0x1d2),exports[a20_0x3cc160(0x1e0)]=[a20_0x2d98fa,a20_0x98c185];function a20_0x69f3(_0x5f268a,_0x77a733){const _0x132b91=a20_0x132b();return a20_0x69f3=function(_0x69f3c4,_0x5c24c1){_0x69f3c4=_0x69f3c4-0x190;let _0x1eb151=_0x132b91[_0x69f3c4];return _0x1eb151;},a20_0x69f3(_0x5f268a,_0x77a733);}const a20_0x2e6fa6={};a20_0x2e6fa6[a20_0x3cc160(0x1d6)]=a20_0x3cc160(0x1db),a20_0x2e6fa6[a20_0x3cc160(0x1b1)]=a20_0x3cc160(0x1d2),exports[a20_0x3cc160(0x1e9)]=a20_0x2e6fa6,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a20_0x3cc160(0x1a9)]];const a20_0x3bc770={};function a20_0x132b(){const _0x2c10df=['\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-AUTOSCALER-','RAW_ARGS_REGEX','BrowserStack','44BJGvLc','high-scale-grid','aws','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','COMMON_HST_TAGS','1692348JRuYAb','120810AFIied','CLI_RUN_STARTED','delete','api.browserstack.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','IAM_USER_NAME','gcp','HST_CLUSTER_TAGS','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','152132qlJwqF','connect','REDACTED','warning','log','dotenv','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid.browserstack.com','wss://','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','start','5875416WJmPtz','env','SUCCESS','TURBOSCALE_DEPLOYMENT','AZURE','getTime','RESOURCES','azure','WS_ENDPOINT','BS_API_URL','BrowserStackIAMUser','AG_API_URL','LOG','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','AWS','DEFAULT_GRID_NAME','HELP_FOOTER_MESSAGE','WARNING','[REDACTED]','init','stop','root','browserstack:service','162RNQUsL','63sdHMXm','35376nUJdRt','grid-api.browserstack.com','global_registry','216332fgYsyC','Value','cliRunStarted','configure','messageTypes','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','list','68792BcYHbC','ERROR','CLUSTER_DEP_STACK_NAME','config','1071kJFPwZ','85qCHIOB','CP_CONFIG_FILE','GRID_URL','HELP_HEADER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','CLI_ARGS_REGEX','resourceInfo','Key','credentials','NULL','BSTACK-ATS-CLUSTER-','LINK_MESSAGE','success','WS_EVENTS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','unknown','DASHBOARD_ENDPOINT','GCP','browserstack:managedBy'];a20_0x132b=function(){return _0x2c10df;};return a20_0x132b();}a20_0x3bc770[a20_0x3cc160(0x1a7)]=a20_0x3cc160(0x194),a20_0x3bc770[a20_0x3cc160(0x1a1)]=a20_0x3cc160(0x1c9),a20_0x3bc770[a20_0x3cc160(0x1c5)]='gridUrl',a20_0x3bc770[a20_0x3cc160(0x1e3)]=a20_0x3cc160(0x1b9),a20_0x3bc770['CLI_RUN_FINISHED']='cliRunFinished',exports[a20_0x3cc160(0x1d0)]=a20_0x3bc770,exports[a20_0x3cc160(0x1b6)]={},exports['LINK_MESSAGE']=a20_0x3cc160(0x1d7);const a20_0x54216a={};a20_0x54216a['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a20_0x3cc160(0x1ce)],a20_0x54216a[a20_0x3cc160(0x1ae)]=a20_0x3cc160(0x1d8)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1ba)]=a20_0x3cc160(0x1bc)+this['LINK_MESSAGE'],a20_0x54216a['create']=a20_0x3cc160(0x1ea)+this[a20_0x3cc160(0x1ce)],a20_0x54216a[a20_0x3cc160(0x1bd)]={},a20_0x54216a[a20_0x3cc160(0x1e4)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x191)]=a20_0x3cc160(0x1d1)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x19a)]=a20_0x3cc160(0x196)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1af)]=a20_0x3cc160(0x1e6)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1bd)][a20_0x3cc160(0x1b0)]=a20_0x3cc160(0x199)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1bd)]['grid']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x3cc160(0x1ce)],a20_0x54216a[a20_0x3cc160(0x1bd)]['gridProfile']=a20_0x3cc160(0x1df)+this[a20_0x3cc160(0x1ce)],exports[a20_0x3cc160(0x1c6)]=a20_0x54216a,exports[a20_0x3cc160(0x1ab)]=a20_0x3cc160(0x1a8);const a20_0x44f4a9={};a20_0x44f4a9[a20_0x3cc160(0x19d)]=a20_0x3cc160(0x1cf),a20_0x44f4a9[a20_0x3cc160(0x1bf)]='error',a20_0x44f4a9['INFO']='info',a20_0x44f4a9[a20_0x3cc160(0x1ac)]=a20_0x3cc160(0x193),a20_0x44f4a9['UNKNOWN']=a20_0x3cc160(0x1d3),a20_0x44f4a9[a20_0x3cc160(0x1cc)]=null,exports[a20_0x3cc160(0x1bb)]=a20_0x44f4a9,exports[a20_0x3cc160(0x1c8)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x3cc160(0x1da)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x3cc160(0x192)]=a20_0x3cc160(0x1ad);
1
+ var a20_0x501e5f=a20_0x5b39;(function(_0x416da9,_0x5e4695){var _0x5c37a8=a20_0x5b39,_0x26c5c4=_0x416da9();while(!![]){try{var _0x495aab=parseInt(_0x5c37a8(0x1d7))/0x1*(-parseInt(_0x5c37a8(0x1cc))/0x2)+-parseInt(_0x5c37a8(0x189))/0x3*(parseInt(_0x5c37a8(0x1ce))/0x4)+parseInt(_0x5c37a8(0x18d))/0x5+-parseInt(_0x5c37a8(0x19b))/0x6+-parseInt(_0x5c37a8(0x1ab))/0x7*(parseInt(_0x5c37a8(0x1a4))/0x8)+parseInt(_0x5c37a8(0x1bb))/0x9*(parseInt(_0x5c37a8(0x199))/0xa)+parseInt(_0x5c37a8(0x1d1))/0xb;if(_0x495aab===_0x5e4695)break;else _0x26c5c4['push'](_0x26c5c4['shift']());}catch(_0x2e8a25){_0x26c5c4['push'](_0x26c5c4['shift']());}}}(a20_0x3cd1,0x288b1),require('dotenv')['config'](),exports[a20_0x501e5f(0x1ba)]=process[a20_0x501e5f(0x1c7)][a20_0x501e5f(0x1ba)]||'grid.browserstack.com',exports[a20_0x501e5f(0x1c0)]=process[a20_0x501e5f(0x1c7)][a20_0x501e5f(0x1c0)]||a20_0x501e5f(0x1ca),exports['AG_API_URL']=process[a20_0x501e5f(0x1c7)]['AG_API_URL']||'grid-api.browserstack.com',exports[a20_0x501e5f(0x1b1)]=a20_0x501e5f(0x1c3)+this[a20_0x501e5f(0x1ae)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a20_0x501e5f(0x19d)]=a20_0x501e5f(0x1a1),exports['IAM_USER_NAME']=a20_0x501e5f(0x1a2),exports[a20_0x501e5f(0x1a8)]=a20_0x501e5f(0x1d4),exports[a20_0x501e5f(0x1c2)]=a20_0x501e5f(0x184),exports[a20_0x501e5f(0x1b6)]=a20_0x501e5f(0x197),exports[a20_0x501e5f(0x19f)]=a20_0x501e5f(0x18b),exports[a20_0x501e5f(0x1a6)]=a20_0x501e5f(0x1d5),exports['AZURE']='azure',exports['GCP']=a20_0x501e5f(0x1d3));var a20_0x2661d5={};a20_0x2661d5[a20_0x501e5f(0x196)]='browserstack:managedBy',a20_0x2661d5[a20_0x501e5f(0x1c5)]='BrowserStack';var a20_0x520f5b={};a20_0x520f5b[a20_0x501e5f(0x196)]=a20_0x501e5f(0x1cf),a20_0x520f5b[a20_0x501e5f(0x1c5)]=a20_0x501e5f(0x1b7),exports[a20_0x501e5f(0x1b5)]=[a20_0x2661d5,a20_0x520f5b];var a20_0x190a17={};function a20_0x5b39(_0x4a8087,_0x32f246){var _0x3cd1c4=a20_0x3cd1();return a20_0x5b39=function(_0x5b39be,_0x238ce6){_0x5b39be=_0x5b39be-0x183;var _0x41d671=_0x3cd1c4[_0x5b39be];return _0x41d671;},a20_0x5b39(_0x4a8087,_0x32f246);}a20_0x190a17[a20_0x501e5f(0x194)]='BrowserStack',a20_0x190a17[a20_0x501e5f(0x1cf)]=a20_0x501e5f(0x1b7),exports[a20_0x501e5f(0x1a7)]=a20_0x190a17,exports[a20_0x501e5f(0x188)]=[this[a20_0x501e5f(0x1c2)]];var a20_0xc6c0f5={};a20_0xc6c0f5[a20_0x501e5f(0x190)]=a20_0x501e5f(0x1bc),a20_0xc6c0f5[a20_0x501e5f(0x1bf)]=a20_0x501e5f(0x1ad),a20_0xc6c0f5['GRID_URL']='gridUrl',a20_0xc6c0f5[a20_0x501e5f(0x1a3)]=a20_0x501e5f(0x1d0),a20_0xc6c0f5[a20_0x501e5f(0x183)]=a20_0x501e5f(0x185),exports[a20_0x501e5f(0x1cb)]=a20_0xc6c0f5,exports['global_registry']={},exports[a20_0x501e5f(0x1c6)]=a20_0x501e5f(0x1d2);function a20_0x3cd1(){var _0x33fcc5=['high-scale-grid','browserstack-turboscale-grid','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','2oXUndh','unknown','CLI_RUN_FINISHED','aws','cliRunFinished','gridProfile','create','SUPPORTED_CLOUD_PROVIDERS','5574RsMomT','connect','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','20090TLxoIx','WARNING','ERROR','LOG','error','warning','CLI_ARGS_REGEX','browserstack:managedBy','grid','Key','BSTACK-ATS-CLUSTER','NULL','40eEzrHg','[REDACTED]','465756pzVTqK','SUCCESS','CP_CONFIG_FILE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLUSTER_AUTOSCALER_STACK_NAME','delete','credentials','BrowserStackIAMUser','CLI_RUN_STARTED','8OZlywl','start','TURBOSCALE_DEPLOYMENT','HST_CLUSTER_TAGS','DEFAULT_GRID_NAME','root','REDACTED','1684417IWggCo','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','resourceInfo','AG_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','WS_ENDPOINT','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','RAW_ARGS_REGEX','COMMON_HST_TAGS','CLUSTER_DEP_STACK_NAME','BrowserStack-Automate-TurboScale','info','messageTypes','DASHBOARD_ENDPOINT','506799nMCEHR','log','init','list','RESOURCES','BS_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','AWS','wss://','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','Value','LINK_MESSAGE','env','HELP_FOOTER_MESSAGE','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','api.browserstack.com','WS_EVENTS','105724QPmhma','configure','424NMpydG','browserstack:service','cliRunStarted','6135052fsruPx','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','gcp'];a20_0x3cd1=function(){return _0x33fcc5;};return a20_0x3cd1();}var a20_0x1aa6de={};a20_0x1aa6de[a20_0x501e5f(0x1a9)]=a20_0x501e5f(0x1d6)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1bd)]=a20_0x501e5f(0x1b3)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1cd)]=a20_0x501e5f(0x1c1)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x187)]=a20_0x501e5f(0x1b0)+this['LINK_MESSAGE'],a20_0x1aa6de[a20_0x501e5f(0x1be)]={},a20_0x1aa6de[a20_0x501e5f(0x1a0)]=a20_0x501e5f(0x1b2)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x18a)]=a20_0x501e5f(0x1ac)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1a5)]=a20_0x501e5f(0x1c9)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de['stop']=a20_0x501e5f(0x19e)+this['LINK_MESSAGE'],a20_0x1aa6de[a20_0x501e5f(0x1be)]['root']=a20_0x501e5f(0x1af)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1be)][a20_0x501e5f(0x195)]=a20_0x501e5f(0x1c4)+this[a20_0x501e5f(0x1c6)],a20_0x1aa6de[a20_0x501e5f(0x1be)][a20_0x501e5f(0x186)]=a20_0x501e5f(0x18c)+this[a20_0x501e5f(0x1c6)],exports['HELP_HEADER_MESSAGE']=a20_0x1aa6de,exports[a20_0x501e5f(0x1c8)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';var a20_0x26cc94={};a20_0x26cc94[a20_0x501e5f(0x19c)]='success',a20_0x26cc94[a20_0x501e5f(0x18f)]=a20_0x501e5f(0x191),a20_0x26cc94['INFO']=a20_0x501e5f(0x1b8),a20_0x26cc94[a20_0x501e5f(0x18e)]=a20_0x501e5f(0x192),a20_0x26cc94['UNKNOWN']=a20_0x501e5f(0x1d8),a20_0x26cc94[a20_0x501e5f(0x198)]=null,exports[a20_0x501e5f(0x1b9)]=a20_0x26cc94,exports[a20_0x501e5f(0x193)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x501e5f(0x1b4)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x501e5f(0x1aa)]=a20_0x501e5f(0x19a);
@@ -1 +1 @@
1
- const a21_0x4b2570=a21_0x4961;(function(_0x21fb2c,_0x2c9334){const _0x5f0e80=a21_0x4961,_0x44aeba=_0x21fb2c();while(!![]){try{const _0x52d5ce=-parseInt(_0x5f0e80(0x136))/0x1*(parseInt(_0x5f0e80(0x141))/0x2)+parseInt(_0x5f0e80(0x13c))/0x3*(-parseInt(_0x5f0e80(0x14d))/0x4)+-parseInt(_0x5f0e80(0x13a))/0x5+parseInt(_0x5f0e80(0x13f))/0x6+-parseInt(_0x5f0e80(0x151))/0x7*(parseInt(_0x5f0e80(0x153))/0x8)+-parseInt(_0x5f0e80(0x134))/0x9*(parseInt(_0x5f0e80(0x148))/0xa)+parseInt(_0x5f0e80(0x150))/0xb*(parseInt(_0x5f0e80(0x137))/0xc);if(_0x52d5ce===_0x2c9334)break;else _0x44aeba['push'](_0x44aeba['shift']());}catch(_0xbbf7ee){_0x44aeba['push'](_0x44aeba['shift']());}}}(a21_0x3ec9,0xa5dbf));const winston=require(a21_0x4b2570(0x133)),fs=require('fs'),path=require(a21_0x4b2570(0x149)),logDir=a21_0x4b2570(0x143);!fs[a21_0x4b2570(0x135)](logDir)&&fs[a21_0x4b2570(0x14c)](logDir);const a21_0x467d68={};a21_0x467d68['format']=a21_0x4b2570(0x14b);const a21_0x336ec4={};a21_0x336ec4['level']=!![];const a21_0x5b16cf={};a21_0x5b16cf['name']=a21_0x4b2570(0x144),exports['logger']=new winston[(a21_0x4b2570(0x152))]({'format':winston[a21_0x4b2570(0x14a)][a21_0x4b2570(0x142)](winston[a21_0x4b2570(0x14a)][a21_0x4b2570(0x145)](a21_0x467d68),winston['format'][a21_0x4b2570(0x140)](a21_0x336ec4),winston[a21_0x4b2570(0x14a)][a21_0x4b2570(0x13d)](_0x14521a=>_0x14521a[a21_0x4b2570(0x145)]+'\x20-\x20'+_0x14521a[a21_0x4b2570(0x14f)]+':\x20'+_0x14521a[a21_0x4b2570(0x147)])),'transports':[new winston[(a21_0x4b2570(0x138))][(a21_0x4b2570(0x14e))](a21_0x5b16cf),new winston['transports'][(a21_0x4b2570(0x13b))]({'filename':path['join'](logDir,a21_0x4b2570(0x146)),'level':a21_0x4b2570(0x13e)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x4b2570(0x138))][(a21_0x4b2570(0x13b))]({'filename':path[a21_0x4b2570(0x139)](logDir,'usage.log'),'level':'debug'})]};function a21_0x4961(_0xb5167f,_0x1c339f){const _0x3ec949=a21_0x3ec9();return a21_0x4961=function(_0x496133,_0xe414d5){_0x496133=_0x496133-0x133;let _0x461f3a=_0x3ec949[_0x496133];return _0x461f3a;},a21_0x4961(_0xb5167f,_0x1c339f);}exports['fileLogger']=new winston[(a21_0x4b2570(0x152))](winstonFileLoggerParams);function a21_0x3ec9(){const _0x1e163a=['95412wOPgnn','printf','debug','5060946rPsPLW','colorize','328882MUXaOM','combine','log','console.info','timestamp','events.log','message','6113300zZYSJB','path','format','YYYY-MM-DD\x20HH:mm:ss','mkdirSync','20vQcYRM','Console','level','5159JPkMtN','14BBVTKi','createLogger','339928itwiZN','winston','18WeVtXg','existsSync','2oqSyMJ','43668jfPNpu','transports','join','376395xtaTFP','File'];a21_0x3ec9=function(){return _0x1e163a;};return a21_0x3ec9();}
1
+ const a21_0x1ff11f=a21_0x2ca4;(function(_0x358425,_0x3dea73){const _0x49055f=a21_0x2ca4,_0x46e7e0=_0x358425();while(!![]){try{const _0x11ea66=-parseInt(_0x49055f(0xff))/0x1*(-parseInt(_0x49055f(0xf6))/0x2)+-parseInt(_0x49055f(0xf7))/0x3+parseInt(_0x49055f(0x10b))/0x4+-parseInt(_0x49055f(0x10a))/0x5+parseInt(_0x49055f(0xf4))/0x6+parseInt(_0x49055f(0x108))/0x7+-parseInt(_0x49055f(0x103))/0x8;if(_0x11ea66===_0x3dea73)break;else _0x46e7e0['push'](_0x46e7e0['shift']());}catch(_0x12638d){_0x46e7e0['push'](_0x46e7e0['shift']());}}}(a21_0x406f,0x73aba));const winston=require(a21_0x1ff11f(0xfc)),fs=require('fs'),path=require(a21_0x1ff11f(0xfe)),logDir=a21_0x1ff11f(0xf9);!fs[a21_0x1ff11f(0x100)](logDir)&&fs['mkdirSync'](logDir);const a21_0xc811bc={};a21_0xc811bc[a21_0x1ff11f(0xf3)]='YYYY-MM-DD\x20HH:mm:ss';const a21_0x4b52db={};function a21_0x406f(){const _0x4b9645=['createLogger','colorize','format','2441940UzZCAe','fileLogger','46uLOyQI','1464507fiFdtq','message','log','timestamp','debug','winston','\x20-\x20','path','6896ZNLnNq','existsSync','console.info','usage.log','1454536nyZhOF','printf','name','join','events.log','2835602SFhJVX','combine','562160JguzCo','1142080DynEuT','File','transports','logger','level'];a21_0x406f=function(){return _0x4b9645;};return a21_0x406f();}a21_0x4b52db[a21_0x1ff11f(0x10f)]=!![];const a21_0x201229={};a21_0x201229[a21_0x1ff11f(0x105)]=a21_0x1ff11f(0x101),exports[a21_0x1ff11f(0x10e)]=new winston[(a21_0x1ff11f(0x110))]({'format':winston[a21_0x1ff11f(0xf3)][a21_0x1ff11f(0x109)](winston[a21_0x1ff11f(0xf3)]['timestamp'](a21_0xc811bc),winston[a21_0x1ff11f(0xf3)][a21_0x1ff11f(0x111)](a21_0x4b52db),winston['format'][a21_0x1ff11f(0x104)](_0x9770c1=>_0x9770c1[a21_0x1ff11f(0xfa)]+a21_0x1ff11f(0xfd)+_0x9770c1['level']+':\x20'+_0x9770c1[a21_0x1ff11f(0xf8)])),'transports':[new winston[(a21_0x1ff11f(0x10d))]['Console'](a21_0x201229),new winston['transports'][(a21_0x1ff11f(0x10c))]({'filename':path[a21_0x1ff11f(0x106)](logDir,a21_0x1ff11f(0x107)),'level':a21_0x1ff11f(0xfb)})]});function a21_0x2ca4(_0x17555b,_0x1d2ef1){const _0x406fcf=a21_0x406f();return a21_0x2ca4=function(_0x2ca474,_0x3c018a){_0x2ca474=_0x2ca474-0xf3;let _0x17aaf7=_0x406fcf[_0x2ca474];return _0x17aaf7;},a21_0x2ca4(_0x17555b,_0x1d2ef1);}const winstonFileLoggerParams={'transports':[new winston[(a21_0x1ff11f(0x10d))][(a21_0x1ff11f(0x10c))]({'filename':path[a21_0x1ff11f(0x106)](logDir,a21_0x1ff11f(0x102)),'level':'debug'})]};exports[a21_0x1ff11f(0xf5)]=new winston[(a21_0x1ff11f(0x110))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0x20d8f2=a22_0x4dd2;function a22_0x4dd2(_0x1e3464,_0xce2bc){const _0x2bfa40=a22_0x2bfa();return a22_0x4dd2=function(_0x4dd258,_0x1843b6){_0x4dd258=_0x4dd258-0x7d;let _0x2be099=_0x2bfa40[_0x4dd258];return _0x2be099;},a22_0x4dd2(_0x1e3464,_0xce2bc);}(function(_0x147d2e,_0x591f3e){const _0x42dc3a=a22_0x4dd2,_0x5c6373=_0x147d2e();while(!![]){try{const _0x5d2ba1=parseInt(_0x42dc3a(0x90))/0x1*(-parseInt(_0x42dc3a(0x85))/0x2)+-parseInt(_0x42dc3a(0x8a))/0x3+-parseInt(_0x42dc3a(0x7e))/0x4+parseInt(_0x42dc3a(0x8d))/0x5*(-parseInt(_0x42dc3a(0x87))/0x6)+-parseInt(_0x42dc3a(0x80))/0x7*(-parseInt(_0x42dc3a(0x8c))/0x8)+parseInt(_0x42dc3a(0x88))/0x9+parseInt(_0x42dc3a(0x82))/0xa;if(_0x5d2ba1===_0x591f3e)break;else _0x5c6373['push'](_0x5c6373['shift']());}catch(_0x57fed4){_0x5c6373['push'](_0x5c6373['shift']());}}}(a22_0x2bfa,0xd3395));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x20d8f2(0x8b));process[a22_0x20d8f2(0x89)][a22_0x20d8f2(0x8f)]=0x1;function a22_0x2bfa(){const _0x269b0a=['FUuIP','398DPwajC','usage','6KrvFxE','13820841tEVDQf','env','4761225OdKqOi','./config/constants','488Yxapfc','1816085wudlBq','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1771iqWCrR','demandCommand','2811360OnbJNt','exports','134197kkKyhN','commandDir','11656540vNqRqx','help'];a22_0x2bfa=function(){return _0x269b0a;};return a22_0x2bfa();}function run(_0x14578d){const _0x36c491=a22_0x20d8f2,_0x26851e={};_0x26851e[_0x36c491(0x84)]='commands',_0x26851e['ptNNR']=_0x36c491(0x83);const _0x1c7b7b=_0x26851e;_0x14578d[_0x36c491(0x86)](HELP_HEADER_MESSAGE[_0x36c491(0x8e)])[_0x36c491(0x81)](_0x1c7b7b[_0x36c491(0x84)])[_0x36c491(0x7d)]()[_0x36c491(0x83)](_0x1c7b7b['ptNNR'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a22_0x20d8f2(0x7f)]=run;
2
+ 'use strict';const a22_0x3adde8=a22_0x5cd7;(function(_0xdb89bf,_0x5303ed){const _0x2fd3f5=a22_0x5cd7,_0x299906=_0xdb89bf();while(!![]){try{const _0x3ff11b=-parseInt(_0x2fd3f5(0x8a))/0x1+-parseInt(_0x2fd3f5(0x85))/0x2*(parseInt(_0x2fd3f5(0x79))/0x3)+-parseInt(_0x2fd3f5(0x82))/0x4+parseInt(_0x2fd3f5(0x86))/0x5+parseInt(_0x2fd3f5(0x77))/0x6*(-parseInt(_0x2fd3f5(0x7f))/0x7)+-parseInt(_0x2fd3f5(0x7e))/0x8+parseInt(_0x2fd3f5(0x87))/0x9*(parseInt(_0x2fd3f5(0x81))/0xa);if(_0x3ff11b===_0x5303ed)break;else _0x299906['push'](_0x299906['shift']());}catch(_0x131f41){_0x299906['push'](_0x299906['shift']());}}}(a22_0xe0dc,0x4aabb));function a22_0x5cd7(_0x2f29bb,_0x270ea8){const _0xe0dc89=a22_0xe0dc();return a22_0x5cd7=function(_0x5cd787,_0x32fdcf){_0x5cd787=_0x5cd787-0x76;let _0x3f7086=_0xe0dc89[_0x5cd787];return _0x3f7086;},a22_0x5cd7(_0x2f29bb,_0x270ea8);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x3adde8(0x88));process['env'][a22_0x3adde8(0x76)]=0x1;function run(_0x164ee5){const _0xfe38ba=a22_0x3adde8,_0x130023={};_0x130023[_0xfe38ba(0x78)]=_0xfe38ba(0x8b),_0x130023[_0xfe38ba(0x89)]=_0xfe38ba(0x83);const _0x42ae60=_0x130023;_0x164ee5[_0xfe38ba(0x84)](HELP_HEADER_MESSAGE[_0xfe38ba(0x7a)])[_0xfe38ba(0x7c)](_0x42ae60[_0xfe38ba(0x78)])[_0xfe38ba(0x80)]()[_0xfe38ba(0x83)](_0x42ae60['GcWEQ'])[_0xfe38ba(0x7d)](HELP_FOOTER_MESSAGE);}module[a22_0x3adde8(0x7b)]=run;function a22_0xe0dc(){const _0x5108d5=['1758rlUFSf','1510145sQaPIw','1251XkKwXA','./config/constants','GcWEQ','431807udZaTA','commands','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','162FHZZDy','Aooyr','726pqozVb','root','exports','commandDir','epilogue','3016456jWAOqU','149646YyQRuj','demandCommand','122290PuklML','388884xmOTXY','help','usage'];a22_0xe0dc=function(){return _0x5108d5;};return a22_0xe0dc();}
@@ -28,6 +28,13 @@
28
28
  "description": "Disk size (in GiB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize."
29
29
  }
30
30
  },
31
+ "osDiskSizeGBWindows": {
32
+ "type": "int",
33
+ "defaultValue": 100,
34
+ "metadata": {
35
+ "description": "Disk size (in GiB) to provision for each of the windows pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize."
36
+ }
37
+ },
31
38
  "userMaxNodes": {
32
39
  "type": "int",
33
40
  "defaultValue": 1,
@@ -41,6 +48,13 @@
41
48
  "metadata": {
42
49
  "description": "Minimum num of nodes running in a node pool"
43
50
  }
51
+ },
52
+ "userMinNodesWindows": {
53
+ "type": "int",
54
+ "defaultValue": 0,
55
+ "metadata": {
56
+ "description": "Minimum num of nodes running in a node pool"
57
+ }
44
58
  }
45
59
  },
46
60
  "resources": [
@@ -52,7 +66,6 @@
52
66
  "name": "[parameters('clusterName')]",
53
67
  "properties": {
54
68
  "dnsPrefix": "[concat(parameters('clusterName'), '-dns')]",
55
- "kubernetesVersion": "1.26.6",
56
69
  "enableRBAC": true,
57
70
  "agentPoolProfiles": [
58
71
  {
@@ -76,13 +89,54 @@
76
89
  "enableNodePublicIP": false,
77
90
  "tags": {
78
91
  "browserstack:managedBy": "BrowserStack"
92
+ },
93
+ "nodeLabels": {
94
+ "createdBy": "BrowserStack",
95
+ "managedBy": "Browserstack"
96
+ }
97
+ },
98
+ {
99
+ "name": "win",
100
+ "osDiskSizeGB": "[parameters('osDiskSizeGBWindows')]",
101
+ "count": "[parameters('userMinNodesWindows')]",
102
+ "enableAutoScaling": true,
103
+ "minCount": "[parameters('userMinNodesWindows')]",
104
+ "maxCount": "[parameters('userMaxNodes')]",
105
+ "vmSize": "[parameters('userInstanceType')]",
106
+ "osType": "Windows",
107
+ "osSKU": "Windows2022",
108
+ "storageProfile": "ManagedDisks",
109
+ "type": "VirtualMachineScaleSets",
110
+ "mode": "User",
111
+ "maxPods": 100,
112
+ "enableFIPS": false,
113
+ "windowsProfile": {},
114
+ "securityProfile": {
115
+ "sshAccess": "LocalUser"
116
+ },
117
+ "availabilityZones": [
118
+ "1",
119
+ "2",
120
+ "3"
121
+ ],
122
+ "enableNodePublicIP": false,
123
+ "tags": {
124
+ "browserstack:managedBy": "BrowserStack"
125
+ },
126
+ "nodeLabels": {
127
+ "createdBy": "BrowserStack",
128
+ "managedBy": "Browserstack"
79
129
  }
80
130
  }
81
131
  ],
132
+ "windowsProfile": {
133
+ "adminUsername": "azureuser",
134
+ "adminPassword": "Azurepassword@123",
135
+ "enableCSIProxy": true
136
+ },
82
137
  "networkProfile": {
83
138
  "loadBalancerSku": "standard",
84
- "networkPlugin": "kubenet",
85
- "networkPolicy": "calico"
139
+ "networkPlugin": "azure"
86
140
  },
87
141
  "autoUpgradeProfile": {
88
142
  "upgradeChannel": "none"
@@ -16,14 +16,15 @@
16
16
  "name": "[parameters('storageAccountName')]",
17
17
  "location": "[resourceGroup().location]",
18
18
  "sku": {
19
- "name": "Standard_RAGRS",
20
- "tier": "Standard"
19
+ "name": "Premium_LRS",
20
+ "tier": "Premium"
21
21
  },
22
- "kind": "StorageV2",
22
+ "kind": "BlockBlobStorage",
23
23
  "properties": {
24
24
  "allowCrossTenantReplication": false,
25
- "minimumTlsVersion": "TLS1_0",
25
+ "minimumTlsVersion": "TLS1_2",
26
26
  "allowBlobPublicAccess": false,
27
+ "isHnsEnabled": true,
27
28
  "networkAcls": {
28
29
  "bypass": "AzureServices",
29
30
  "virtualNetworkRules": [],
@@ -47,8 +48,7 @@
47
48
  }
48
49
  },
49
50
  "keySource": "Microsoft.Storage"
50
- },
51
- "accessTier": "Hot"
51
+ }
52
52
  }
53
53
  },
54
54
  {
@@ -59,8 +59,8 @@
59
59
  "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]"
60
60
  ],
61
61
  "sku": {
62
- "name": "Standard_RAGRS",
63
- "tier": "Standard"
62
+ "name": "Premium_LRS",
63
+ "tier": "Premium"
64
64
  },
65
65
  "properties": {
66
66
  "cors": {