browserstack-node-sdk 1.32.6 → 1.32.7

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_0x52cd(){const _0x2ce0c3=['18TlZrkE','3314255RMRLRy','builder','998216SVeQyA','fzGHJ','help','handler','Gnflb','list_commands','1395JarAvB','1837285NSuQJq','strict','1376168MhXRcV','1030809mAOILC','root','list','List\x20down\x20the\x20Grid\x20resources.','12930848Vhifta','2SVZnxA','../config/constants','178040XEWKdp','demandCommand','epilogue'];a13_0x52cd=function(){return _0x2ce0c3;};return a13_0x52cd();}const a13_0x296c54=a13_0x7d47;function a13_0x7d47(_0x2cdd90,_0x42a452){const _0x52cdf7=a13_0x52cd();return a13_0x7d47=function(_0x7d479c,_0x3d2f2d){_0x7d479c=_0x7d479c-0x1dc;let _0x3af20e=_0x52cdf7[_0x7d479c];return _0x3af20e;},a13_0x7d47(_0x2cdd90,_0x42a452);}(function(_0x7e6980,_0x907c92){const _0x15cd39=a13_0x7d47,_0x23fd7a=_0x7e6980();while(!![]){try{const _0x4810b4=-parseInt(_0x15cd39(0x1f0))/0x1*(-parseInt(_0x15cd39(0x1df))/0x2)+-parseInt(_0x15cd39(0x1f1))/0x3+parseInt(_0x15cd39(0x1e7))/0x4+parseInt(_0x15cd39(0x1ee))/0x5*(-parseInt(_0x15cd39(0x1e4))/0x6)+-parseInt(_0x15cd39(0x1e5))/0x7+-parseInt(_0x15cd39(0x1de))/0x8+parseInt(_0x15cd39(0x1ed))/0x9*(parseInt(_0x15cd39(0x1e1))/0xa);if(_0x4810b4===_0x907c92)break;else _0x23fd7a['push'](_0x23fd7a['shift']());}catch(_0xd0e6ee){_0x23fd7a['push'](_0x23fd7a['shift']());}}}(a13_0x52cd,0xcf68b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x296c54(0x1e0));exports['command']=a13_0x296c54(0x1dc),exports['desc']=a13_0x296c54(0x1dd),exports[a13_0x296c54(0x1e6)]=function(_0x2fc4d4){const _0x4b61ca=a13_0x296c54,_0x5d12f8={};_0x5d12f8[_0x4b61ca(0x1e8)]=_0x4b61ca(0x1ec),_0x5d12f8['Gnflb']=_0x4b61ca(0x1e9);const _0x452249=_0x5d12f8;return _0x2fc4d4['commandDir'](_0x452249[_0x4b61ca(0x1e8)])[_0x4b61ca(0x1e2)]()['usage'](HELP_HEADER_MESSAGE[_0x4b61ca(0x1dc)][_0x4b61ca(0x1f2)])[_0x4b61ca(0x1e3)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x4b61ca(0x1ef)]()[_0x4b61ca(0x1e9)](_0x452249[_0x4b61ca(0x1eb)]);},exports[a13_0x296c54(0x1ea)]=function(_0xa07757){};
@@ -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
+ function a14_0x57f6(_0x1eff4e,_0x141148){const _0x5ad5a9=a14_0x5ad5();return a14_0x57f6=function(_0x57f673,_0x3404d4){_0x57f673=_0x57f673-0x1a3;let _0x5a1d8d=_0x5ad5a9[_0x57f673];return _0x5a1d8d;},a14_0x57f6(_0x1eff4e,_0x141148);}const a14_0x10e507=a14_0x57f6;(function(_0x3e4263,_0x1aee79){const _0x2cebfd=a14_0x57f6,_0x21cef9=_0x3e4263();while(!![]){try{const _0x33532f=-parseInt(_0x2cebfd(0x1f1))/0x1+parseInt(_0x2cebfd(0x1d5))/0x2+parseInt(_0x2cebfd(0x1e3))/0x3*(-parseInt(_0x2cebfd(0x1a4))/0x4)+parseInt(_0x2cebfd(0x1ae))/0x5*(parseInt(_0x2cebfd(0x1bb))/0x6)+-parseInt(_0x2cebfd(0x1cf))/0x7+-parseInt(_0x2cebfd(0x1ed))/0x8+parseInt(_0x2cebfd(0x1db))/0x9;if(_0x33532f===_0x1aee79)break;else _0x21cef9['push'](_0x21cef9['shift']());}catch(_0x17e589){_0x21cef9['push'](_0x21cef9['shift']());}}}(a14_0x5ad5,0xa9563));const fs=require('fs'),got=require(a14_0x10e507(0x1b6)),{table}=require(a14_0x10e507(0x1ee)),{v4:uuidv4}=require(a14_0x10e507(0x1c1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x10e507(0x1ef)),{getCredentialsPath,getAuthHeader}=require(a14_0x10e507(0x1d6)),{sendInstrumentationEvent}=require(a14_0x10e507(0x1e8));function a14_0x5ad5(){const _0x2d7ff0=['JYGfA','hDCfT','183969mMljxY','concurrency','gGuLd','cjEBH','PkjMU','handler','username','sVIea','1845522jPYfMu','https://','eCDWJ','bYBRi','/packages/cli/get-all-grid-profiles','../../utils/instrumentationUtils','lHRrM','name','server-error','Hubmf','414608NvtyjM','table','../../config/constants','GET','204882qwUqPb','log','SbWHX','desc','gridProfile','ERROR','zdTgr','4bMFvWb','grid-profile-name','nuwIx','LHBIQ','grid-profiles','list-grid-profiles-called','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','hKyCz','cloudProvider','push','25CyAoQe','cloud-provider','password','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','statusCode','sDFQU','region','list','got','XFMhG','Browserstack','help','parse','574962NvPlCf','allGridProfiles','stack','body','ZXHnJ','options','uuid','init-not-called','forEach','type','UEqGR','rrKcf','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RnjyG','bstackAccesskey','/packages/cli/get-grid-profiles','Failed\x20to\x20list\x20resources!\x20Error:\x20','KETMU','requestId','error','924462IpAiIx','all-grid-profiles','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','unauthorised','lDhdM','stringify','2395950hrOfJc','../../utils/utilityMethods','exit','usage'];a14_0x5ad5=function(){return _0x2d7ff0;};return a14_0x5ad5();}exports['command']=a14_0x10e507(0x1a8),exports[a14_0x10e507(0x1f4)]=a14_0x10e507(0x1aa),exports['builder']=function(_0x1e6cfe){const _0x7e8bde=a14_0x10e507,_0x408003={};_0x408003[_0x7e8bde(0x1ec)]=_0x7e8bde(0x1d1),_0x408003[_0x7e8bde(0x1e9)]='boolean',_0x408003[_0x7e8bde(0x1c8)]=_0x7e8bde(0x1b9);const _0x1cdc20=_0x408003,_0x51c701={};_0x51c701['description']=_0x1cdc20[_0x7e8bde(0x1ec)],_0x51c701[_0x7e8bde(0x1c4)]=_0x1cdc20['lHRrM'];const _0x6c9826={};return _0x6c9826[_0x7e8bde(0x1d0)]=_0x51c701,_0x1e6cfe[_0x7e8bde(0x1d8)](HELP_HEADER_MESSAGE[_0x7e8bde(0x1b5)][_0x7e8bde(0x1f5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x7e8bde(0x1c0)](_0x6c9826)[_0x7e8bde(0x1b9)](_0x1cdc20[_0x7e8bde(0x1c8)])['argv'];},exports[a14_0x10e507(0x1e0)]=async function(_0x17f72a){const _0x4a2b6c=a14_0x10e507,_0x123c13={'KETMU':function(_0x3905dd){return _0x3905dd();},'hKyCz':function(_0x4571e3){return _0x4571e3();},'nVDJk':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LHBIQ':function(_0x32d3e3,_0x23de0f,_0x2ea020,_0x34bacf,_0x9545ca,_0x1fd0f8,_0x21ad26){return _0x32d3e3(_0x23de0f,_0x2ea020,_0x34bacf,_0x9545ca,_0x1fd0f8,_0x21ad26);},'bYBRi':_0x4a2b6c(0x1a9),'PkjMU':_0x4a2b6c(0x1c2),'cjEBH':function(_0x6478ab){return _0x6478ab();},'ppyWR':_0x4a2b6c(0x1f0),'UEqGR':function(_0x3927c1,_0x2cf678,_0x55f5ad){return _0x3927c1(_0x2cf678,_0x55f5ad);},'lDhdM':function(_0x2ed1cc,_0x5272dd,_0xb2870f,_0x328fd1,_0x171f1f,_0x150d79,_0x154740){return _0x2ed1cc(_0x5272dd,_0xb2870f,_0x328fd1,_0x171f1f,_0x150d79,_0x154740);},'sDFQU':function(_0x3e22ce,_0x38d40e){return _0x3e22ce!==_0x38d40e;},'XFMhG':function(_0x4f6b1a,_0x4ef525){return _0x4f6b1a===_0x4ef525;},'eCDWJ':_0x4a2b6c(0x1b1),'ZXHnJ':_0x4a2b6c(0x1a5),'zdTgr':_0x4a2b6c(0x1af),'gGuLd':_0x4a2b6c(0x1b4),'rrKcf':_0x4a2b6c(0x1dc),'hDCfT':function(_0x19286c,_0xedf161){return _0x19286c(_0xedf161);},'SbWHX':function(_0xc5c397,_0x15c8ef,_0x5a3855,_0x29775c,_0x3695c6,_0x527b34,_0x460a30){return _0xc5c397(_0x15c8ef,_0x5a3855,_0x29775c,_0x3695c6,_0x527b34,_0x460a30);},'sVIea':_0x4a2b6c(0x1d2),'JYGfA':_0x4a2b6c(0x1eb),'nuwIx':'unknown-error'};try{global_registry[_0x4a2b6c(0x1cd)]=_0x123c13[_0x4a2b6c(0x1cc)](uuidv4);let _0x29dd3b=_0x4a2b6c(0x1e4)+AG_API_URL+_0x4a2b6c(0x1ca);_0x17f72a[_0x4a2b6c(0x1bc)]&&(_0x29dd3b=_0x4a2b6c(0x1e4)+AG_API_URL+_0x4a2b6c(0x1e7));!fs['existsSync'](_0x123c13[_0x4a2b6c(0x1ab)](getCredentialsPath))&&(console['error'](_0x123c13['nVDJk']),await _0x123c13[_0x4a2b6c(0x1a7)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1df)],null,_0x17f72a),process[_0x4a2b6c(0x1d7)](0x1));const _0x58e670=JSON['parse'](fs['readFileSync'](_0x123c13[_0x4a2b6c(0x1de)](getCredentialsPath))),_0x2ea938={'method':_0x123c13['ppyWR'],'headers':_0x123c13[_0x4a2b6c(0x1c5)](getAuthHeader,_0x58e670[_0x4a2b6c(0x1b8)][_0x4a2b6c(0x1e1)],_0x58e670[_0x4a2b6c(0x1b8)][_0x4a2b6c(0x1b0)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x58e670['Browserstack'][_0x4a2b6c(0x1e1)],global_registry[_0x4a2b6c(0x1c9)]=_0x58e670[_0x4a2b6c(0x1b8)]['password'],_0x123c13[_0x4a2b6c(0x1d3)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes['INFO'],null,null,_0x17f72a);const _0x40a566=await _0x123c13[_0x4a2b6c(0x1c5)](got,_0x29dd3b,_0x2ea938);if(_0x123c13['sDFQU'](_0x40a566,null)&&_0x123c13[_0x4a2b6c(0x1b3)](_0x40a566,undefined)&&_0x123c13[_0x4a2b6c(0x1b7)](_0x40a566[_0x4a2b6c(0x1b2)],0xc8)){const _0x6b7c09=JSON[_0x4a2b6c(0x1ba)](_0x40a566[_0x4a2b6c(0x1be)]);console[_0x4a2b6c(0x1f2)](_0x123c13[_0x4a2b6c(0x1e5)]);const _0x15c2e2=[];_0x15c2e2[_0x4a2b6c(0x1ad)]([_0x123c13[_0x4a2b6c(0x1bf)],_0x123c13[_0x4a2b6c(0x1a3)],_0x123c13[_0x4a2b6c(0x1dd)],_0x123c13[_0x4a2b6c(0x1c6)]]),_0x6b7c09[_0x4a2b6c(0x1c3)](_0x4bf78f=>{const _0x1f2f45=_0x4a2b6c;_0x15c2e2[_0x1f2f45(0x1ad)]([_0x4bf78f[_0x1f2f45(0x1ea)],_0x4bf78f[_0x1f2f45(0x1ac)],_0x4bf78f['region'],_0x4bf78f[_0x1f2f45(0x1dc)]]);}),console['log'](_0x123c13[_0x4a2b6c(0x1da)](table,_0x15c2e2)),process[_0x4a2b6c(0x1d7)](0x0);}_0x123c13[_0x4a2b6c(0x1b7)](_0x40a566[_0x4a2b6c(0x1b2)],0x191)&&(console[_0x4a2b6c(0x1ce)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x123c13[_0x4a2b6c(0x1f3)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1e2)],null,_0x17f72a),process[_0x4a2b6c(0x1d7)](0x1)),console[_0x4a2b6c(0x1ce)](_0x4a2b6c(0x1c7)+JSON[_0x4a2b6c(0x1d4)](_0x40a566)),await _0x123c13[_0x4a2b6c(0x1a7)](sendInstrumentationEvent,_0x17f72a,_0x123c13[_0x4a2b6c(0x1e6)],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1d9)],_0x40a566,_0x17f72a),process['exit'](0x1);}catch(_0x1b587a){console[_0x4a2b6c(0x1ce)](_0x4a2b6c(0x1cb)+_0x1b587a[_0x4a2b6c(0x1bd)]),await _0x123c13[_0x4a2b6c(0x1a7)](sendInstrumentationEvent,_0x17f72a,_0x123c13['bYBRi'],messageTypes[_0x4a2b6c(0x1f6)],_0x123c13[_0x4a2b6c(0x1a6)],_0x1b587a,_0x17f72a),process[_0x4a2b6c(0x1d7)](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_0x21e3(_0xc80c7e,_0x28d817){const _0x2672bd=a15_0x2672();return a15_0x21e3=function(_0x21e3e8,_0x16d7c8){_0x21e3e8=_0x21e3e8-0xf6;let _0x58cb16=_0x2672bd[_0x21e3e8];return _0x58cb16;},a15_0x21e3(_0xc80c7e,_0x28d817);}const a15_0x2bf21f=a15_0x21e3;(function(_0xef67c3,_0x1dbb3d){const _0x34b0ab=a15_0x21e3,_0x5ead0f=_0xef67c3();while(!![]){try{const _0x18beb6=-parseInt(_0x34b0ab(0x12c))/0x1+parseInt(_0x34b0ab(0x132))/0x2*(parseInt(_0x34b0ab(0x109))/0x3)+parseInt(_0x34b0ab(0x120))/0x4*(parseInt(_0x34b0ab(0xfd))/0x5)+-parseInt(_0x34b0ab(0x107))/0x6+parseInt(_0x34b0ab(0x128))/0x7+-parseInt(_0x34b0ab(0x136))/0x8+parseInt(_0x34b0ab(0x133))/0x9*(parseInt(_0x34b0ab(0x146))/0xa);if(_0x18beb6===_0x1dbb3d)break;else _0x5ead0f['push'](_0x5ead0f['shift']());}catch(_0x359829){_0x5ead0f['push'](_0x5ead0f['shift']());}}}(a15_0x2672,0x4e27b));const fs=require('fs'),got=require('got'),{table}=require(a15_0x2bf21f(0x13e)),{v4:uuidv4}=require(a15_0x2bf21f(0x144)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2bf21f(0x112)),{sendInstrumentationEvent}=require(a15_0x2bf21f(0x122));exports[a15_0x2bf21f(0x11c)]=a15_0x2bf21f(0x140),exports['desc']=a15_0x2bf21f(0x124),exports['builder']=function(_0x5cd02b){const _0x327b04=a15_0x2bf21f,_0x1027a3={};_0x1027a3[_0x327b04(0x119)]=_0x327b04(0x115),_0x1027a3[_0x327b04(0x118)]=_0x327b04(0x110),_0x1027a3[_0x327b04(0xf9)]='help';const _0x2711ac=_0x1027a3,_0x16f371={};_0x16f371[_0x327b04(0x11e)]=_0x2711ac[_0x327b04(0x119)],_0x16f371['type']=_0x2711ac['PAqYb'];const _0x410a7a={};return _0x410a7a[_0x327b04(0xfa)]=_0x16f371,_0x5cd02b['usage'](HELP_HEADER_MESSAGE[_0x327b04(0x12d)][_0x327b04(0x12f)])[_0x327b04(0x148)](HELP_FOOTER_MESSAGE)[_0x327b04(0x127)](_0x410a7a)[_0x327b04(0x10f)](_0x2711ac[_0x327b04(0xf9)])[_0x327b04(0x11b)];},exports[a15_0x2bf21f(0x103)]=async function(_0x3dc6dd){const _0x5888dc=a15_0x2bf21f,_0x30b360={'OXbCo':function(_0x5f1888){return _0x5f1888();},'aqixK':function(_0x2c4b1d){return _0x2c4b1d();},'AbRoX':_0x5888dc(0x13b),'aNipF':function(_0x5adef5,_0xeb71f9,_0x1dd24e,_0x29a52b,_0x2402ac,_0x43d8d1,_0x3d8e6d){return _0x5adef5(_0xeb71f9,_0x1dd24e,_0x29a52b,_0x2402ac,_0x43d8d1,_0x3d8e6d);},'aDiBG':_0x5888dc(0x11d),'QfprU':_0x5888dc(0x11a),'zdijY':function(_0x58ccd5){return _0x58ccd5();},'GbSUG':'GET','uyLHE':function(_0x561efb,_0xe5c985,_0x10ed97){return _0x561efb(_0xe5c985,_0x10ed97);},'jheec':function(_0x191ded,_0x18a7ac,_0xda9a94,_0x21f0ea,_0x2c3401,_0xcd56e2,_0x348117){return _0x191ded(_0x18a7ac,_0xda9a94,_0x21f0ea,_0x2c3401,_0xcd56e2,_0x348117);},'DhSBD':function(_0x35e581,_0x2c75b7,_0x2d0140){return _0x35e581(_0x2c75b7,_0x2d0140);},'qKgwc':function(_0x50c382,_0x146747){return _0x50c382!==_0x146747;},'PqnQy':function(_0x43ca52,_0x54684e){return _0x43ca52!==_0x54684e;},'VbGJi':function(_0x8cf3c6,_0x3fa701){return _0x8cf3c6===_0x3fa701;},'mmdNT':_0x5888dc(0x134),'axKmy':_0x5888dc(0x13c),'cpFQN':_0x5888dc(0x121),'PZECH':_0x5888dc(0x123),'UKBNu':'running','HQoMv':_0x5888dc(0x108),'inSdF':'cluster-name','hCQiC':function(_0x1bd088,_0x3d13c8){return _0x1bd088(_0x3d13c8);},'cRLFp':_0x5888dc(0x13f),'UzroQ':_0x5888dc(0x126),'bDakJ':function(_0x4c45d9,_0x135ee7,_0x16a0bf,_0x3a61b5,_0x484797,_0x723acc,_0x117b19){return _0x4c45d9(_0x135ee7,_0x16a0bf,_0x3a61b5,_0x484797,_0x723acc,_0x117b19);},'nkdSI':'unknown-error'};try{global_registry[_0x5888dc(0x13d)]=_0x30b360[_0x5888dc(0xfc)](uuidv4);!fs[_0x5888dc(0x13a)](_0x30b360[_0x5888dc(0x10e)](getCredentialsPath))&&(console[_0x5888dc(0x11f)](_0x30b360[_0x5888dc(0x12b)]),await _0x30b360[_0x5888dc(0x105)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes[_0x5888dc(0x10a)],_0x30b360['QfprU'],null,_0x3dc6dd),process[_0x5888dc(0x138)](0x1));const _0x16c8bd=JSON[_0x5888dc(0x10d)](fs[_0x5888dc(0x145)](_0x30b360['zdijY'](getCredentialsPath)));let _0x3a5e6b='https://'+AG_API_URL+_0x5888dc(0xfb);_0x3dc6dd[_0x5888dc(0x142)]&&(_0x3a5e6b=_0x5888dc(0xff)+AG_API_URL+_0x5888dc(0x100));const _0x1e606e={'method':_0x30b360['GbSUG'],'headers':_0x30b360[_0x5888dc(0x149)](getAuthHeader,_0x16c8bd[_0x5888dc(0x10b)][_0x5888dc(0x135)],_0x16c8bd[_0x5888dc(0x10b)][_0x5888dc(0x101)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x16c8bd[_0x5888dc(0x10b)][_0x5888dc(0x135)],global_registry[_0x5888dc(0x139)]=_0x16c8bd['Browserstack']['password'],_0x30b360[_0x5888dc(0x12e)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes[_0x5888dc(0x147)],null,null,_0x3dc6dd);const _0x10ac3a=await _0x30b360[_0x5888dc(0x141)](got,_0x3a5e6b,_0x1e606e);if(_0x30b360[_0x5888dc(0x12a)](_0x10ac3a,null)&&_0x30b360[_0x5888dc(0x10c)](_0x10ac3a,undefined)&&_0x30b360[_0x5888dc(0x129)](_0x10ac3a[_0x5888dc(0x143)],0xc8)){const _0x49429a=JSON[_0x5888dc(0x10d)](_0x10ac3a[_0x5888dc(0xf6)]);console['log'](_0x30b360[_0x5888dc(0x114)]);const _0x5148ec=[];_0x5148ec['push']([_0x30b360['axKmy'],_0x30b360[_0x5888dc(0x131)],_0x30b360[_0x5888dc(0x137)],_0x30b360[_0x5888dc(0xf7)],_0x30b360[_0x5888dc(0x14b)],_0x30b360['inSdF']]),_0x49429a[_0x5888dc(0x111)](_0x3e86d6=>{const _0xcd3fa1=_0x5888dc;_0x5148ec[_0xcd3fa1(0x104)]([_0x3e86d6['id'],_0x3e86d6[_0xcd3fa1(0xf8)],_0x3e86d6[_0xcd3fa1(0x123)],_0x3e86d6['running'],_0x3e86d6[_0xcd3fa1(0x108)],_0x3e86d6[_0xcd3fa1(0x106)]]);}),console[_0x5888dc(0x116)](_0x30b360[_0x5888dc(0x130)](table,_0x5148ec)),process[_0x5888dc(0x138)](0x0);}_0x30b360[_0x5888dc(0x129)](_0x10ac3a[_0x5888dc(0x143)],0x191)&&(console['error'](_0x5888dc(0x125)),await _0x30b360['aNipF'](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes[_0x5888dc(0x10a)],_0x30b360['cRLFp'],null,_0x3dc6dd),process[_0x5888dc(0x138)](0x1)),console[_0x5888dc(0x11f)](_0x5888dc(0x14a)+JSON['stringify'](_0x10ac3a)),await _0x30b360[_0x5888dc(0x105)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360['aDiBG'],messageTypes['ERROR'],_0x30b360[_0x5888dc(0x117)],_0x10ac3a,_0x3dc6dd),process[_0x5888dc(0x138)](0x1);}catch(_0x14ee1d){console[_0x5888dc(0x11f)](_0x5888dc(0xfe)+_0x14ee1d[_0x5888dc(0x113)]),await _0x30b360[_0x5888dc(0x14c)](sendInstrumentationEvent,_0x3dc6dd,_0x30b360[_0x5888dc(0x102)],messageTypes['ERROR'],_0x30b360['nkdSI'],_0x14ee1d,_0x3dc6dd),process[_0x5888dc(0x138)](0x1);}};function a15_0x2672(){const _0x799f65=['boolean','forEach','../../utils/utilityMethods','stack','mmdNT','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','log','UzroQ','PAqYb','fSuxZ','init-not-called','argv','command','list-grids-called','description','error','367292dImkcj','grid-name','../../utils/instrumentationUtils','status','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','server-error','options','3886813EziAvK','VbGJi','qKgwc','AbRoX','308295gRfkyJ','list','jheec','grid','hCQiC','cpFQN','2sodryp','257265yeTxBy','\x0aFound\x20the\x20following\x20grids:\x0a','username','2327520uhzIsL','PZECH','exit','bstackAccesskey','existsSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','requestId','table','unauthorised','grids','DhSBD','allGrids','statusCode','uuid','readFileSync','80CBRtRR','INFO','epilogue','uyLHE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HQoMv','bDakJ','body','UKBNu','name','rqOBl','all-grids','/packages/cli/get-grids','OXbCo','15yckquy','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','/packages/cli/get-all-grids','password','aDiBG','handler','push','aNipF','clusterName','2161122ovNdYO','queued','660411LtRzUS','ERROR','Browserstack','PqnQy','parse','aqixK','help'];a15_0x2672=function(){return _0x799f65;};return a15_0x2672();}
@@ -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_0x20d490=a16_0x74ce;(function(_0xed2c5e,_0x48e63f){const _0x34cdaa=a16_0x74ce,_0x4177a8=_0xed2c5e();while(!![]){try{const _0x2b7b3c=-parseInt(_0x34cdaa(0x1ac))/0x1*(parseInt(_0x34cdaa(0x1b4))/0x2)+parseInt(_0x34cdaa(0x1a8))/0x3*(parseInt(_0x34cdaa(0x1a5))/0x4)+parseInt(_0x34cdaa(0x1b5))/0x5+parseInt(_0x34cdaa(0x1af))/0x6+parseInt(_0x34cdaa(0x1a9))/0x7+-parseInt(_0x34cdaa(0x1ad))/0x8*(-parseInt(_0x34cdaa(0x1b0))/0x9)+parseInt(_0x34cdaa(0x1a7))/0xa*(-parseInt(_0x34cdaa(0x1a4))/0xb);if(_0x2b7b3c===_0x48e63f)break;else _0x4177a8['push'](_0x4177a8['shift']());}catch(_0x4f5afb){_0x4177a8['push'](_0x4177a8['shift']());}}}(a16_0xa9e8,0x48249));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x74ce(_0x3fc06b,_0x376684){const _0xa9e8c3=a16_0xa9e8();return a16_0x74ce=function(_0x74ce2d,_0x13424c){_0x74ce2d=_0x74ce2d-0x1a4;let _0x578937=_0xa9e8c3[_0x74ce2d];return _0x578937;},a16_0x74ce(_0x3fc06b,_0x376684);}exports['command']=a16_0x20d490(0x1b6),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x20d490(0x1b1)]=function(_0x209a9e){const _0x29575f=a16_0x20d490,_0xa424c8={};_0xa424c8[_0x29575f(0x1ae)]=_0x29575f(0x1aa),_0xa424c8[_0x29575f(0x1ab)]='help';const _0x13b3dc=_0xa424c8;return _0x209a9e['usage'](HELP_HEADER_MESSAGE[_0x29575f(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x29575f(0x1a6)](_0x13b3dc['zqurt'])['demandCommand']()[_0x29575f(0x1b3)]()['strict']()[_0x29575f(0x1b2)](_0x13b3dc[_0x29575f(0x1ab)]);},exports['handler']=function(_0x2ebc97){};function a16_0xa9e8(){const _0x236e6b=['start_commands','pMlss','153BGzGLt','16hzZEYn','zqurt','816450LhmVie','470457FEullk','builder','help','recommendCommands','1574oJVgJQ','2513145NasOYW','start','13098767ksbEAv','14284VfCRKo','commandDir','10dNROIg','267PygfQu','3819452HSVpQo'];a16_0xa9e8=function(){return _0x236e6b;};return a16_0xa9e8();}
@@ -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_0x307c3b=a17_0xe520;(function(_0x42d5ec,_0x3c1e74){const _0x36736b=a17_0xe520,_0x21f229=_0x42d5ec();while(!![]){try{const _0xbdc873=-parseInt(_0x36736b(0xaa))/0x1*(-parseInt(_0x36736b(0x9d))/0x2)+parseInt(_0x36736b(0x9b))/0x3+parseInt(_0x36736b(0xc7))/0x4+parseInt(_0x36736b(0xcb))/0x5+parseInt(_0x36736b(0x94))/0x6+parseInt(_0x36736b(0xdf))/0x7+-parseInt(_0x36736b(0xcc))/0x8;if(_0xbdc873===_0x3c1e74)break;else _0x21f229['push'](_0x21f229['shift']());}catch(_0x428fb8){_0x21f229['push'](_0x21f229['shift']());}}}(a17_0x546f,0x9be0f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x307c3b(0xcf)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a17_0x307c3b(0xba)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a17_0x307c3b(0xb0)),{createK8sClient}=require(a17_0x307c3b(0xc0)),{getCloudProviderObject}=require(a17_0x307c3b(0xcd));function a17_0xe520(_0x225a91,_0x2e97fd){const _0x546f78=a17_0x546f();return a17_0xe520=function(_0xe520ca,_0x11767a){_0xe520ca=_0xe520ca-0x8c;let _0x1fbf44=_0x546f78[_0xe520ca];return _0x1fbf44;},a17_0xe520(_0x225a91,_0x2e97fd);}exports[a17_0x307c3b(0x8f)]=a17_0x307c3b(0xab),exports[a17_0x307c3b(0xaf)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a17_0x307c3b(0xc6)]=function(_0xde4111){const _0x2f2e4f=a17_0x307c3b,_0x1b7db3={};_0x1b7db3[_0x2f2e4f(0xb6)]=_0x2f2e4f(0xc3),_0x1b7db3['dsneC']=_0x2f2e4f(0xbf),_0x1b7db3[_0x2f2e4f(0x8d)]='help';const _0x2646d5=_0x1b7db3,_0xd0fa3e={};_0xd0fa3e[_0x2f2e4f(0x96)]=_0x2646d5[_0x2f2e4f(0xb6)],_0xd0fa3e[_0x2f2e4f(0xa5)]=_0x2646d5[_0x2f2e4f(0xc1)];const _0x28e6ff={};return _0x28e6ff['grid-id']=_0xd0fa3e,_0xde4111[_0x2f2e4f(0xc8)](HELP_HEADER_MESSAGE['start'])[_0x2f2e4f(0x8c)](HELP_FOOTER_MESSAGE)[_0x2f2e4f(0x9e)](_0x28e6ff)[_0x2f2e4f(0xa0)](_0x2646d5[_0x2f2e4f(0x8d)])[_0x2f2e4f(0x90)];},exports[a17_0x307c3b(0xb9)]=async function(_0x32b1c7){const _0x38f7c4=a17_0x307c3b,_0x2d9051={'Tvxxj':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','qCGlG':function(_0x8b626c){return _0x8b626c();},'trQcC':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VQYDw':function(_0x41bfb5,_0x1e74a7,_0xfcdc66,_0x57bf54,_0xf000b,_0x517d1f,_0x2cac1a){return _0x41bfb5(_0x1e74a7,_0xfcdc66,_0x57bf54,_0xf000b,_0x517d1f,_0x2cac1a);},'angaT':'start-grid-called','bcYkq':_0x38f7c4(0xc4),'rhpUk':function(_0x575946,_0x370eb3,_0x162b95,_0x42ddbc,_0x4139af,_0x35cc49,_0x5599bd){return _0x575946(_0x370eb3,_0x162b95,_0x42ddbc,_0x4139af,_0x35cc49,_0x5599bd);},'cyxRS':function(_0x1035f6){return _0x1035f6();},'mtwvh':'<UsernamePlaceholder>','SxfRC':_0x38f7c4(0x98),'jTXXw':_0x38f7c4(0x9f),'oGxfx':function(_0x31b80b,_0x41357d,_0x591be9,_0x48d185){return _0x31b80b(_0x41357d,_0x591be9,_0x48d185);},'GMksV':function(_0x366598,_0x5df06b,_0x4c7008,_0x5ddbab,_0x512f08,_0x23c668,_0x289fba){return _0x366598(_0x5df06b,_0x4c7008,_0x5ddbab,_0x512f08,_0x23c668,_0x289fba);},'Ztntb':function(_0x290792,_0x3c6370){return _0x290792(_0x3c6370);},'tbNkS':function(_0xa27ac8,_0x4f27ca,_0x15af80){return _0xa27ac8(_0x4f27ca,_0x15af80);},'IgdCV':_0x38f7c4(0xa2),'PREKQ':function(_0x388c85,_0x16a6ee){return _0x388c85===_0x16a6ee;},'zWGsT':_0x38f7c4(0x8e),'wdfAH':_0x38f7c4(0xd7),'muRpy':function(_0x4bbf26,_0x14f062,_0x1de744,_0x1e2622,_0x365c6b,_0x3ed66f,_0x30dc31){return _0x4bbf26(_0x14f062,_0x1de744,_0x1e2622,_0x365c6b,_0x3ed66f,_0x30dc31);},'eRltG':_0x38f7c4(0xd6)};let _0x568839;try{!_0x32b1c7[_0x38f7c4(0xd4)]&&(logger[_0x38f7c4(0x97)](_0x2d9051['Tvxxj']),process['exit'](0x1));!fs[_0x38f7c4(0xc9)](_0x2d9051[_0x38f7c4(0xb7)](getCredentialsPath))&&(logger[_0x38f7c4(0x97)](_0x2d9051[_0x38f7c4(0xd2)]),await _0x2d9051[_0x38f7c4(0x91)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051['angaT'],messageTypes[_0x38f7c4(0xb5)],_0x2d9051[_0x38f7c4(0xbc)],null,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1));logger['info'](_0x38f7c4(0xd0)+_0x32b1c7[_0x38f7c4(0xd4)]),await _0x2d9051[_0x38f7c4(0xa8)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051[_0x38f7c4(0x95)],messageTypes[_0x38f7c4(0xb2)],null,null,_0x32b1c7);const _0x3b891b=JSON[_0x38f7c4(0xdc)](fs['readFileSync'](_0x2d9051[_0x38f7c4(0xd5)](getCredentialsPath)));global_registry['bstackUsername']=_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xd8)],global_registry[_0x38f7c4(0xad)]=_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xda)];const _0x25fe04=WS_ENDPOINT[_0x38f7c4(0xdb)](_0x2d9051[_0x38f7c4(0xdd)],_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xd8)])['replace'](_0x2d9051[_0x38f7c4(0xb3)],_0x3b891b['Browserstack']['password']),_0x178f24={};_0x178f24[_0x38f7c4(0xb1)]=ws,_0x178f24[_0x38f7c4(0xae)]=0x36ee80,_0x568839=new ReconnectingWebSocket(_0x25fe04,[],_0x178f24),logger[_0x38f7c4(0x9a)](_0x2d9051['jTXXw']),webSocketUtils[_0x38f7c4(0x92)](_0x568839,_0x32b1c7['user'],_0x32b1c7[_0x38f7c4(0xda)]);const [_0xc0987,_0x40f83c]=await _0x2d9051[_0x38f7c4(0xca)](getGridDetails,_0x3b891b[_0x38f7c4(0xce)]['username'],_0x3b891b[_0x38f7c4(0xce)][_0x38f7c4(0xda)],_0x32b1c7[_0x38f7c4(0xd4)]);if(_0x40f83c){const _0x5e504b=_0x40f83c[_0x38f7c4(0xac)];global_registry['cloudProvider']=_0x5e504b[_0x38f7c4(0xa6)],global_registry['clusterRegion']=_0x5e504b[_0x38f7c4(0xd9)],global_registry[_0x38f7c4(0xb8)]=_0x5e504b[_0x38f7c4(0xb8)];const _0x456942=await _0x2d9051[_0x38f7c4(0xd1)](getCloudProviderObject,_0x5e504b[_0x38f7c4(0xa6)],_0x5e504b[_0x38f7c4(0xb8)],_0x5e504b[_0x38f7c4(0xc5)],_0x568839,webSocketUtils,_0x32b1c7),_0x5253a9=_0x3b891b[_0x38f7c4(0xa6)]||{};await _0x456942[_0x38f7c4(0xbe)](_0x5253a9),_0x456942[_0x38f7c4(0x99)]();const [_0x25d3e1,_0x4141ca,_0xed8bbf,_0x3e8dcd,_0x2f64fb,_0x553d62]=await _0x2d9051['Ztntb'](createK8sClient,_0x456942);await _0x2d9051[_0x38f7c4(0x93)](scaleUpHubDeployment,_0x4141ca,_0x5e504b[_0x38f7c4(0xc5)]),logger[_0x38f7c4(0xac)](_0x2d9051[_0x38f7c4(0xa7)]),process[_0x38f7c4(0xa4)](0x0);}_0x2d9051[_0x38f7c4(0xbb)](_0xc0987['statusCode'],0x191)&&(logger[_0x38f7c4(0x97)](_0x38f7c4(0x9c)),await _0x2d9051['VQYDw'](sendInstrumentationEvent,_0x32b1c7,_0x2d9051['angaT'],messageTypes[_0x38f7c4(0xb5)],_0x2d9051['zWGsT'],null,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1)),_0x2d9051[_0x38f7c4(0xbb)](_0xc0987[_0x38f7c4(0xb4)],0x190)&&(logger[_0x38f7c4(0x97)](JSON['parse'](_0xc0987[_0x38f7c4(0xde)])[_0x38f7c4(0xbd)]),await _0x2d9051[_0x38f7c4(0x91)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051[_0x38f7c4(0x95)],messageTypes['ERROR'],_0x2d9051['wdfAH'],null,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1)),logger[_0x38f7c4(0x97)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x38f7c4(0xa1)](_0xc0987)),await _0x2d9051[_0x38f7c4(0xd3)](sendInstrumentationEvent,_0x32b1c7,_0x2d9051[_0x38f7c4(0x95)],messageTypes[_0x38f7c4(0xb5)],_0x2d9051[_0x38f7c4(0xa9)],_0xc0987,_0x32b1c7),process[_0x38f7c4(0xa4)](0x1);}catch(_0x2da797){const _0x478cea=_0x38f7c4(0xa3)+_0x2da797+'\x20\x0a'+JSON[_0x38f7c4(0xa1)](_0x2da797[_0x38f7c4(0xc2)])+'\x20';logger[_0x38f7c4(0x97)](_0x478cea),process[_0x38f7c4(0xa4)](0x1);}};function a17_0x546f(){const _0x8e665d=['clusterName','handler','../../utils/utilityMethods','PREKQ','bcYkq','message','fetchLocalCreds','string','../../utils/createk8sClient','dsneC','stack','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','init-not-called','name','builder','4824828oKImUH','usage','existsSync','oGxfx','825105lCaZlu','27930416dwXehP','../../cloudproviders/utils','Browserstack','reconnecting-websocket','Starting\x20grid\x20','GMksV','trQcC','muRpy','gridId','cyxRS','server-error','invalid-grid-id','username','region','password','replace','parse','mtwvh','body','7687918ReXQnR','epilogue','uzOSk','unauthorised','command','argv','VQYDw','addListeners','tbNkS','6975906qCdxJH','angaT','description','error','<PasswordPlaceholder>','configureIfNotConfigured','debug','926091PQIMFP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','426IdzKyQ','options','Adding\x20Websocket\x20listeners','help','stringify','Grid\x20started','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','exit','type','cloudProvider','IgdCV','rhpUk','eRltG','887NCiOVk','grid','info','bstackAccesskey','connectionTimeout','desc','../../utils/webSocketUtils','WebSocket','INFO','SxfRC','statusCode','ERROR','mhYJR','qCGlG'];a17_0x546f=function(){return _0x8e665d;};return a17_0x546f();}
@@ -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_0x1c1f(_0x376099,_0x543031){const _0x1675fb=a18_0x1675();return a18_0x1c1f=function(_0x1c1f59,_0x1dd69b){_0x1c1f59=_0x1c1f59-0x179;let _0x3f18d2=_0x1675fb[_0x1c1f59];return _0x3f18d2;},a18_0x1c1f(_0x376099,_0x543031);}function a18_0x1675(){const _0x3e3d0b=['recommendCommands','stop_commands','1901708AJYacE','243273ReZscO','stop','Stop\x20a\x20running\x20Automation\x20grid.','command','jYozP','../config/constants','desc','strict','demandCommand','5876370wuyuUc','commandDir','help','fwGdd','8wOcLZZ','6360120XcMjxA','usage','builder','6771177VvLLpj','handler','2363736ioukGK','66860bGdpDs'];a18_0x1675=function(){return _0x3e3d0b;};return a18_0x1675();}const a18_0x426d6a=a18_0x1c1f;(function(_0x4b1dbe,_0x1e9447){const _0x44d283=a18_0x1c1f,_0x1167c9=_0x4b1dbe();while(!![]){try{const _0x523370=parseInt(_0x44d283(0x18f))/0x1*(parseInt(_0x44d283(0x184))/0x2)+parseInt(_0x44d283(0x18a))/0x3+-parseInt(_0x44d283(0x18e))/0x4+parseInt(_0x44d283(0x18b))/0x5+-parseInt(_0x44d283(0x180))/0x6+parseInt(_0x44d283(0x188))/0x7+-parseInt(_0x44d283(0x185))/0x8;if(_0x523370===_0x1e9447)break;else _0x1167c9['push'](_0x1167c9['shift']());}catch(_0x56328d){_0x1167c9['push'](_0x1167c9['shift']());}}}(a18_0x1675,0x7814a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x426d6a(0x17c));exports[a18_0x426d6a(0x17a)]=a18_0x426d6a(0x190),exports[a18_0x426d6a(0x17d)]=a18_0x426d6a(0x179),exports[a18_0x426d6a(0x187)]=function(_0x340d06){const _0x57e115=a18_0x426d6a,_0x2f24cc={};_0x2f24cc[_0x57e115(0x17b)]=_0x57e115(0x18d),_0x2f24cc[_0x57e115(0x183)]=_0x57e115(0x182);const _0x1adc74=_0x2f24cc;return _0x340d06[_0x57e115(0x186)](HELP_HEADER_MESSAGE[_0x57e115(0x190)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x57e115(0x181)](_0x1adc74[_0x57e115(0x17b)])[_0x57e115(0x17f)]()[_0x57e115(0x18c)]()[_0x57e115(0x17e)]()[_0x57e115(0x182)](_0x1adc74[_0x57e115(0x183)]);},exports[a18_0x426d6a(0x189)]=function(_0x3a1835){};
@@ -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
+ function a19_0x1e60(_0x43e24a,_0x2dcc0f){const _0x2d5ae3=a19_0x2d5a();return a19_0x1e60=function(_0x1e60cd,_0x134826){_0x1e60cd=_0x1e60cd-0x19a;let _0x1bffff=_0x2d5ae3[_0x1e60cd];return _0x1bffff;},a19_0x1e60(_0x43e24a,_0x2dcc0f);}const a19_0x1f0352=a19_0x1e60;(function(_0x173a46,_0x596190){const _0x38308e=a19_0x1e60,_0x476f63=_0x173a46();while(!![]){try{const _0x450ed5=parseInt(_0x38308e(0x1ef))/0x1*(-parseInt(_0x38308e(0x1dc))/0x2)+-parseInt(_0x38308e(0x1b2))/0x3+-parseInt(_0x38308e(0x1bf))/0x4+parseInt(_0x38308e(0x1cc))/0x5*(-parseInt(_0x38308e(0x1c8))/0x6)+-parseInt(_0x38308e(0x1de))/0x7*(-parseInt(_0x38308e(0x1e9))/0x8)+parseInt(_0x38308e(0x1d3))/0x9*(-parseInt(_0x38308e(0x1ca))/0xa)+parseInt(_0x38308e(0x1be))/0xb;if(_0x450ed5===_0x596190)break;else _0x476f63['push'](_0x476f63['shift']());}catch(_0x2876f6){_0x476f63['push'](_0x476f63['shift']());}}}(a19_0x2d5a,0xf20c9));function a19_0x2d5a(){const _0x1db8b6=['replace','password','yiyfN','../../utils/instrumentationUtils','unauthorised','lRBqV','name','info','../../config/constants','63863888soZeRb','1054320xmdoJu','grid-id','stringify','clusterRegion','mdXUx','init-not-called','configureIfNotConfigured','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','CDimo','104514JxjilP','options','51890RStPox','parse','505aLIKUq','jxbEX','clusterName','handler','HrmAg','exit','../../utils/webSocketUtils','1899ofWWLS','../../config/logger','help','Browserstack','readFileSync','statusCode','tVcnD','server-error','LiCEC','38YXJsYc','lcjDg','9030441TfARkt','fcMkV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','debug','message','miYWe','EWnGc','<PasswordPlaceholder>','body','YaQQJ','8zmvbsm','okfty','argv','user','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','addListeners','71007bJdPKk','INFO','stop-grid-called','ERROR','desc','command','Adding\x20Websocket\x20listeners','WebSocket','cloudProvider','invalid-grid-id','../../utils/utilityMethods','type','<UsernamePlaceholder>','Stopping\x20grid\x20','cxMCS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Stop\x20a\x20running\x20Automation\x20grid.','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','usage','MnpNb','gridId','builder','grid','MWOXX','bstackAccesskey','4912581LNUmgk','bstackUsername','username'];a19_0x2d5a=function(){return _0x1db8b6;};return a19_0x2d5a();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1f0352(0x1bd)),{logger}=require(a19_0x1f0352(0x1d4)),{getCredentialsPath,getGridDetails}=require(a19_0x1f0352(0x1a3)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x1f0352(0x1b8)),webSocketUtils=require(a19_0x1f0352(0x1d2)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x1f0352(0x19e)]=a19_0x1f0352(0x1af),exports[a19_0x1f0352(0x19d)]=a19_0x1f0352(0x1a9),exports[a19_0x1f0352(0x1ae)]=function(_0x1e0c8a){const _0x57c65e=a19_0x1f0352,_0x33bfb6={};_0x33bfb6['mdXUx']=_0x57c65e(0x1c6),_0x33bfb6['yiyfN']='string',_0x33bfb6[_0x57c65e(0x1e8)]=_0x57c65e(0x1d5);const _0xb60c19=_0x33bfb6,_0x44bbbb={};_0x44bbbb['description']=_0xb60c19[_0x57c65e(0x1c3)],_0x44bbbb[_0x57c65e(0x1a4)]=_0xb60c19[_0x57c65e(0x1b7)];const _0xec51f7={};return _0xec51f7[_0x57c65e(0x1c0)]=_0x44bbbb,_0x1e0c8a[_0x57c65e(0x1ab)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x57c65e(0x1c9)](_0xec51f7)[_0x57c65e(0x1d5)](_0xb60c19[_0x57c65e(0x1e8)])[_0x57c65e(0x1eb)];},exports[a19_0x1f0352(0x1cf)]=async function(_0x2e5839){const _0x254b7a=a19_0x1f0352,_0x34f23a={'miYWe':_0x254b7a(0x1ed),'Utlrb':function(_0x24ad02){return _0x24ad02();},'okfty':_0x254b7a(0x1a8),'MnpNb':function(_0x115845,_0xb9bdd4,_0x2030a2,_0x291a35,_0x3da7d3,_0x39d520,_0x55c6a3){return _0x115845(_0xb9bdd4,_0x2030a2,_0x291a35,_0x3da7d3,_0x39d520,_0x55c6a3);},'LiCEC':_0x254b7a(0x19b),'jxbEX':_0x254b7a(0x1c4),'HrmAg':_0x254b7a(0x1a5),'cxMCS':_0x254b7a(0x1e6),'tVcnD':_0x254b7a(0x19f),'lRHnR':function(_0x4e22b2,_0x2e02d0,_0x1e2884,_0x2e8f8e){return _0x4e22b2(_0x2e02d0,_0x1e2884,_0x2e8f8e);},'EWnGc':function(_0x2abb46,_0x568108,_0x1526ba,_0xfee027,_0x36cc5a,_0xc6342d,_0x4f27fa){return _0x2abb46(_0x568108,_0x1526ba,_0xfee027,_0x36cc5a,_0xc6342d,_0x4f27fa);},'lRBqV':function(_0x2542d6,_0x32a7a4){return _0x2542d6(_0x32a7a4);},'dOblz':function(_0x4f174a,_0x3415a8,_0x1f8502){return _0x4f174a(_0x3415a8,_0x1f8502);},'bjLRe':'Grid\x20stoppped.','MWOXX':function(_0x5312c5,_0x40566d){return _0x5312c5===_0x40566d;},'CDimo':_0x254b7a(0x1b9),'fcMkV':function(_0x40c86b,_0x2c9b5f,_0x5bbcf3,_0x4a0ee0,_0x361722,_0x3bc5f1,_0x1c8973){return _0x40c86b(_0x2c9b5f,_0x5bbcf3,_0x4a0ee0,_0x361722,_0x3bc5f1,_0x1c8973);},'lcjDg':_0x254b7a(0x1a2),'bsnki':_0x254b7a(0x1da)};let _0x3ac10f;try{!_0x2e5839[_0x254b7a(0x1ad)]&&(logger[_0x254b7a(0x1e1)](_0x34f23a[_0x254b7a(0x1e4)]),process[_0x254b7a(0x1d1)](0x1));!fs['existsSync'](_0x34f23a['Utlrb'](getCredentialsPath))&&(logger[_0x254b7a(0x1e1)](_0x34f23a[_0x254b7a(0x1ea)]),await _0x34f23a[_0x254b7a(0x1ac)](sendInstrumentationEvent,_0x2e5839,_0x34f23a['LiCEC'],messageTypes['ERROR'],_0x34f23a[_0x254b7a(0x1cd)],null,_0x2e5839),process['exit'](0x1));logger[_0x254b7a(0x1bc)](_0x254b7a(0x1a6)+_0x2e5839[_0x254b7a(0x1ad)]),await _0x34f23a[_0x254b7a(0x1ac)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes[_0x254b7a(0x19a)],null,null,_0x2e5839);const _0x330a2a=JSON[_0x254b7a(0x1cb)](fs[_0x254b7a(0x1d7)](_0x34f23a['Utlrb'](getCredentialsPath)));global_registry[_0x254b7a(0x1b3)]=_0x330a2a[_0x254b7a(0x1d6)][_0x254b7a(0x1b4)],global_registry[_0x254b7a(0x1b1)]=_0x330a2a[_0x254b7a(0x1d6)][_0x254b7a(0x1b6)];const _0x575104=WS_ENDPOINT[_0x254b7a(0x1b5)](_0x34f23a[_0x254b7a(0x1d0)],_0x330a2a['Browserstack'][_0x254b7a(0x1b4)])[_0x254b7a(0x1b5)](_0x34f23a[_0x254b7a(0x1a7)],_0x330a2a['Browserstack']['password']),_0x4ec9aa={};_0x4ec9aa[_0x254b7a(0x1a0)]=ws,_0x4ec9aa['connectionTimeout']=0x36ee80,_0x3ac10f=new ReconnectingWebSocket(_0x575104,[],_0x4ec9aa),logger[_0x254b7a(0x1e2)](_0x34f23a[_0x254b7a(0x1d9)]),webSocketUtils[_0x254b7a(0x1ee)](_0x3ac10f,_0x2e5839[_0x254b7a(0x1ec)],_0x2e5839[_0x254b7a(0x1b6)]);const [_0x2d86b9,_0x5b5118]=await _0x34f23a['lRHnR'](getGridDetails,_0x330a2a['Browserstack'][_0x254b7a(0x1b4)],_0x330a2a[_0x254b7a(0x1d6)]['password'],_0x2e5839[_0x254b7a(0x1ad)]);if(_0x5b5118){const _0x35dc2f=_0x5b5118['info'];global_registry['cloudProvider']=_0x35dc2f['cloudProvider'],global_registry[_0x254b7a(0x1c2)]=_0x35dc2f['region'],global_registry['clusterName']=_0x35dc2f[_0x254b7a(0x1ce)];const _0x200dd5=await _0x34f23a[_0x254b7a(0x1e5)](getCloudProviderObject,_0x35dc2f[_0x254b7a(0x1a1)],_0x35dc2f[_0x254b7a(0x1ce)],_0x35dc2f[_0x254b7a(0x1bb)],_0x3ac10f,webSocketUtils,_0x2e5839),_0xeb4c6a=_0x330a2a[_0x254b7a(0x1a1)]||{};await _0x200dd5['fetchLocalCreds'](_0xeb4c6a),_0x200dd5[_0x254b7a(0x1c5)]();const [_0x5c28e1,_0x30de92,_0x21091e,_0x1a7fbd,_0x17252c,_0x110ca1]=await _0x34f23a[_0x254b7a(0x1ba)](createK8sClient,_0x200dd5);await _0x34f23a['dOblz'](scaleDownHubDeployment,_0x30de92,_0x35dc2f[_0x254b7a(0x1bb)]),logger[_0x254b7a(0x1bc)](_0x34f23a['bjLRe']),process['exit'](0x0);}_0x34f23a['MWOXX'](_0x2d86b9[_0x254b7a(0x1d8)],0x191)&&(logger[_0x254b7a(0x1e1)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x34f23a[_0x254b7a(0x1ac)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes[_0x254b7a(0x19c)],_0x34f23a[_0x254b7a(0x1c7)],null,_0x2e5839),process[_0x254b7a(0x1d1)](0x1)),_0x34f23a[_0x254b7a(0x1b0)](_0x2d86b9[_0x254b7a(0x1d8)],0x190)&&(logger['error'](JSON['parse'](_0x2d86b9[_0x254b7a(0x1e7)])[_0x254b7a(0x1e3)]),await _0x34f23a[_0x254b7a(0x1df)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes['ERROR'],_0x34f23a[_0x254b7a(0x1dd)],null,_0x2e5839),process[_0x254b7a(0x1d1)](0x1)),logger[_0x254b7a(0x1e1)](_0x254b7a(0x1e0)+JSON[_0x254b7a(0x1c1)](_0x2d86b9)),await _0x34f23a[_0x254b7a(0x1e5)](sendInstrumentationEvent,_0x2e5839,_0x34f23a[_0x254b7a(0x1db)],messageTypes[_0x254b7a(0x19c)],_0x34f23a['bsnki'],_0x2d86b9,_0x2e5839),process[_0x254b7a(0x1d1)](0x1);}catch(_0x17b2de){const _0x23de63=_0x254b7a(0x1aa)+_0x17b2de+'\x20\x0a'+JSON['stringify'](_0x17b2de['stack'])+'\x20';logger[_0x254b7a(0x1e1)](_0x23de63),process[_0x254b7a(0x1d1)](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_0x220e43=a20_0x3216;(function(_0x2a1a83,_0x448c92){var _0x124632=a20_0x3216,_0x39501b=_0x2a1a83();while(!![]){try{var _0x3a63b3=parseInt(_0x124632(0x1d0))/0x1*(-parseInt(_0x124632(0x18e))/0x2)+-parseInt(_0x124632(0x1c3))/0x3*(-parseInt(_0x124632(0x1c6))/0x4)+parseInt(_0x124632(0x19c))/0x5+-parseInt(_0x124632(0x1bc))/0x6+parseInt(_0x124632(0x1de))/0x7+parseInt(_0x124632(0x1b4))/0x8*(-parseInt(_0x124632(0x18a))/0x9)+parseInt(_0x124632(0x1c8))/0xa*(parseInt(_0x124632(0x1c4))/0xb);if(_0x3a63b3===_0x448c92)break;else _0x39501b['push'](_0x39501b['shift']());}catch(_0x1b50a5){_0x39501b['push'](_0x39501b['shift']());}}}(a20_0x47ab,0xe3d58),require(a20_0x220e43(0x1a3))[a20_0x220e43(0x1b7)](),exports[a20_0x220e43(0x1d9)]=process[a20_0x220e43(0x1a0)][a20_0x220e43(0x1d9)]||a20_0x220e43(0x1bd),exports[a20_0x220e43(0x1cc)]=process[a20_0x220e43(0x1a0)][a20_0x220e43(0x1cc)]||a20_0x220e43(0x1c2),exports[a20_0x220e43(0x1a6)]=process['env'][a20_0x220e43(0x1a6)]||'grid-api.browserstack.com',exports[a20_0x220e43(0x1e1)]=a20_0x220e43(0x1b6)+this[a20_0x220e43(0x1a6)]+a20_0x220e43(0x1ba),exports[a20_0x220e43(0x1da)]=a20_0x220e43(0x1b9),exports[a20_0x220e43(0x18d)]=a20_0x220e43(0x19b),exports[a20_0x220e43(0x1d5)]=a20_0x220e43(0x19e),exports[a20_0x220e43(0x1d8)]='aws',exports['CLUSTER_DEP_STACK_NAME']=a20_0x220e43(0x1ac),exports[a20_0x220e43(0x1a7)]=a20_0x220e43(0x1d3),exports[a20_0x220e43(0x1a8)]=a20_0x220e43(0x19f),exports[a20_0x220e43(0x193)]=a20_0x220e43(0x194),exports[a20_0x220e43(0x18c)]=a20_0x220e43(0x199));var a20_0x4b5f9d={};function a20_0x3216(_0x320e4a,_0x2e88ba){var _0x47ab4d=a20_0x47ab();return a20_0x3216=function(_0x32164d,_0x2f893d){_0x32164d=_0x32164d-0x189;var _0x5d8340=_0x47ab4d[_0x32164d];return _0x5d8340;},a20_0x3216(_0x320e4a,_0x2e88ba);}a20_0x4b5f9d[a20_0x220e43(0x1c0)]=a20_0x220e43(0x1ab),a20_0x4b5f9d[a20_0x220e43(0x1ae)]=a20_0x220e43(0x1ce);var a20_0x47ca1f={};a20_0x47ca1f[a20_0x220e43(0x1c0)]=a20_0x220e43(0x1b3),a20_0x47ca1f['Value']=a20_0x220e43(0x1bf),exports['COMMON_HST_TAGS']=[a20_0x4b5f9d,a20_0x47ca1f];var a20_0x192f60={};a20_0x192f60['browserstack:managedBy']=a20_0x220e43(0x1ce),a20_0x192f60['browserstack:service']=a20_0x220e43(0x1bf),exports[a20_0x220e43(0x196)]=a20_0x192f60,exports[a20_0x220e43(0x1b1)]=[this['AWS']];var a20_0x1b3ce8={};a20_0x1b3ce8['LOG']='log',a20_0x1b3ce8[a20_0x220e43(0x1b5)]=a20_0x220e43(0x1ad),a20_0x1b3ce8['GRID_URL']=a20_0x220e43(0x1bb),a20_0x1b3ce8[a20_0x220e43(0x1d4)]=a20_0x220e43(0x1db),a20_0x1b3ce8['CLI_RUN_FINISHED']=a20_0x220e43(0x1a1),exports[a20_0x220e43(0x1a4)]=a20_0x1b3ce8,exports[a20_0x220e43(0x1cd)]={},exports['LINK_MESSAGE']=a20_0x220e43(0x1d2);function a20_0x47ab(){var _0x92cbef=['LINK_MESSAGE','BS_API_URL','global_registry','BrowserStack','delete','24343jzTQRT','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','BSTACK-ATS-CLUSTER-AUTOSCALER','CLI_RUN_STARTED','DEFAULT_GRID_NAME','root','start','AWS','DASHBOARD_ENDPOINT','CP_CONFIG_FILE','cliRunStarted','INFO','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','2544059jdKbVi','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','unknown','WS_ENDPOINT','HELP_FOOTER_MESSAGE','639xmNoOq','NULL','GCP','IAM_USER_NAME','44PCWTvb','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','[REDACTED]','HELP_HEADER_MESSAGE','warning','AZURE','azure','list','HST_CLUSTER_TAGS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','gcp','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BrowserStackIAMUser','8833220JaAXOx','error','high-scale-grid','browserstack-turboscale-grid','env','cliRunFinished','UNKNOWN','dotenv','WS_EVENTS','RAW_ARGS_REGEX','AG_API_URL','CLUSTER_AUTOSCALER_STACK_NAME','TURBOSCALE_DEPLOYMENT','gridProfile','grid','browserstack:managedBy','BSTACK-ATS-CLUSTER','resourceInfo','Value','stop','REDACTED','SUPPORTED_CLOUD_PROVIDERS','connect','browserstack:service','64576KZoHCP','RESOURCES','wss://','config','CLI_ARGS_REGEX','credentials','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gridUrl','10263600lsrOgA','grid.browserstack.com','success','BrowserStack-Automate-TurboScale','Key','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','api.browserstack.com','3SlbUAk','42856mTZIDo','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','380612RNOvVW','SUCCESS','3920fUhIET','create','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'];a20_0x47ab=function(){return _0x92cbef;};return a20_0x47ab();}var a20_0xbc4c90={};a20_0xbc4c90[a20_0x220e43(0x1d6)]=a20_0x220e43(0x197)+this['LINK_MESSAGE'],a20_0xbc4c90['init']=a20_0x220e43(0x19a)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90['configure']=a20_0x220e43(0x1c1)+this['LINK_MESSAGE'],a20_0xbc4c90[a20_0x220e43(0x1c9)]=a20_0x220e43(0x18f)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)]={},a20_0xbc4c90[a20_0x220e43(0x1cf)]=a20_0x220e43(0x1dd)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x1b2)]=a20_0x220e43(0x1d1)+this['LINK_MESSAGE'],a20_0xbc4c90[a20_0x220e43(0x1d7)]=a20_0x220e43(0x1c5)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x1af)]=a20_0x220e43(0x198)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)][a20_0x220e43(0x1d6)]=a20_0x220e43(0x1ca)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)][a20_0x220e43(0x1aa)]=a20_0x220e43(0x1df)+this[a20_0x220e43(0x1cb)],a20_0xbc4c90[a20_0x220e43(0x195)][a20_0x220e43(0x1a9)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a20_0x220e43(0x191)]=a20_0xbc4c90,exports[a20_0x220e43(0x189)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';var a20_0x4b9cb9={};a20_0x4b9cb9[a20_0x220e43(0x1c7)]=a20_0x220e43(0x1be),a20_0x4b9cb9['ERROR']=a20_0x220e43(0x19d),a20_0x4b9cb9[a20_0x220e43(0x1dc)]='info',a20_0x4b9cb9['WARNING']=a20_0x220e43(0x192),a20_0x4b9cb9[a20_0x220e43(0x1a2)]=a20_0x220e43(0x1e0),a20_0x4b9cb9[a20_0x220e43(0x18b)]=null,exports['messageTypes']=a20_0x4b9cb9,exports[a20_0x220e43(0x1b8)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x220e43(0x1a5)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x220e43(0x1b0)]=a20_0x220e43(0x190);
@@ -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_0x296f12=a21_0x29ba;(function(_0x6cec32,_0xefedc9){const _0x2218fa=a21_0x29ba,_0x4103ce=_0x6cec32();while(!![]){try{const _0x5efcc3=-parseInt(_0x2218fa(0x14c))/0x1*(parseInt(_0x2218fa(0x14b))/0x2)+-parseInt(_0x2218fa(0x152))/0x3*(parseInt(_0x2218fa(0x148))/0x4)+parseInt(_0x2218fa(0x156))/0x5+parseInt(_0x2218fa(0x151))/0x6+-parseInt(_0x2218fa(0x142))/0x7*(-parseInt(_0x2218fa(0x14e))/0x8)+-parseInt(_0x2218fa(0x140))/0x9*(parseInt(_0x2218fa(0x154))/0xa)+-parseInt(_0x2218fa(0x13e))/0xb*(-parseInt(_0x2218fa(0x138))/0xc);if(_0x5efcc3===_0xefedc9)break;else _0x4103ce['push'](_0x4103ce['shift']());}catch(_0x4b8f1a){_0x4103ce['push'](_0x4103ce['shift']());}}}(a21_0x117a,0xb5a8a));const winston=require(a21_0x296f12(0x13c)),fs=require('fs'),path=require(a21_0x296f12(0x13d)),logDir='log';!fs[a21_0x296f12(0x13a)](logDir)&&fs['mkdirSync'](logDir);const a21_0x2b9c35={};a21_0x2b9c35['format']='YYYY-MM-DD\x20HH:mm:ss';function a21_0x29ba(_0x8e5c17,_0x1db4d9){const _0x117a37=a21_0x117a();return a21_0x29ba=function(_0x29bab1,_0x4e879c){_0x29bab1=_0x29bab1-0x138;let _0x3704d3=_0x117a37[_0x29bab1];return _0x3704d3;},a21_0x29ba(_0x8e5c17,_0x1db4d9);}const a21_0x5ee0c7={};function a21_0x117a(){const _0x209d6d=['console.info','246778gRNkqp','combine','File','format','name','debug','16JgdAuV','level','transports','74yjjiLy','37861cDFJUK','Console','272vOdHeZ','message','join','5164860mUQNfF','1024902FiWKOo','printf','2388480SNneLp','fileLogger','2067620fSQRRy','771828wLnBMx','colorize','existsSync','createLogger','winston','path','341qhBvOn','timestamp','36AGePKb'];a21_0x117a=function(){return _0x209d6d;};return a21_0x117a();}a21_0x5ee0c7[a21_0x296f12(0x149)]=!![];const a21_0x2d7ba6={};a21_0x2d7ba6[a21_0x296f12(0x146)]=a21_0x296f12(0x141),exports['logger']=new winston['createLogger']({'format':winston[a21_0x296f12(0x145)][a21_0x296f12(0x143)](winston[a21_0x296f12(0x145)]['timestamp'](a21_0x2b9c35),winston[a21_0x296f12(0x145)][a21_0x296f12(0x139)](a21_0x5ee0c7),winston[a21_0x296f12(0x145)][a21_0x296f12(0x153)](_0x17c6ed=>_0x17c6ed[a21_0x296f12(0x13f)]+'\x20-\x20'+_0x17c6ed[a21_0x296f12(0x149)]+':\x20'+_0x17c6ed[a21_0x296f12(0x14f)])),'transports':[new winston['transports'][(a21_0x296f12(0x14d))](a21_0x2d7ba6),new winston[(a21_0x296f12(0x14a))][(a21_0x296f12(0x144))]({'filename':path[a21_0x296f12(0x150)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x296f12(0x14a))][(a21_0x296f12(0x144))]({'filename':path[a21_0x296f12(0x150)](logDir,'usage.log'),'level':a21_0x296f12(0x147)})]};exports[a21_0x296f12(0x155)]=new winston[(a21_0x296f12(0x13b))](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_0xbcfa2e=a22_0x27fb;(function(_0x3da1d7,_0x2e38e4){const _0x2ff86b=a22_0x27fb,_0x1b09ab=_0x3da1d7();while(!![]){try{const _0x4b728c=parseInt(_0x2ff86b(0x176))/0x1*(-parseInt(_0x2ff86b(0x16d))/0x2)+-parseInt(_0x2ff86b(0x166))/0x3*(parseInt(_0x2ff86b(0x16e))/0x4)+-parseInt(_0x2ff86b(0x170))/0x5*(-parseInt(_0x2ff86b(0x165))/0x6)+parseInt(_0x2ff86b(0x173))/0x7*(-parseInt(_0x2ff86b(0x168))/0x8)+parseInt(_0x2ff86b(0x167))/0x9+-parseInt(_0x2ff86b(0x178))/0xa*(parseInt(_0x2ff86b(0x169))/0xb)+-parseInt(_0x2ff86b(0x162))/0xc*(-parseInt(_0x2ff86b(0x17a))/0xd);if(_0x4b728c===_0x2e38e4)break;else _0x1b09ab['push'](_0x1b09ab['shift']());}catch(_0x94a737){_0x1b09ab['push'](_0x1b09ab['shift']());}}}(a22_0x3f3d,0x73a03));function a22_0x27fb(_0x32aaa7,_0x248a1b){const _0x3f3d60=a22_0x3f3d();return a22_0x27fb=function(_0x27fbc8,_0x398c58){_0x27fbc8=_0x27fbc8-0x162;let _0x52e212=_0x3f3d60[_0x27fbc8];return _0x52e212;},a22_0x27fb(_0x32aaa7,_0x248a1b);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0xbcfa2e(0x172));process[a22_0xbcfa2e(0x179)][a22_0xbcfa2e(0x174)]=0x1;function run(_0x465a26){const _0x4c1f05=a22_0xbcfa2e,_0x506264={};_0x506264[_0x4c1f05(0x177)]='commands',_0x506264['rKRwG']=_0x4c1f05(0x16f);const _0x4454b1=_0x506264;_0x465a26[_0x4c1f05(0x163)](HELP_HEADER_MESSAGE[_0x4c1f05(0x175)])[_0x4c1f05(0x16c)](_0x4454b1[_0x4c1f05(0x177)])[_0x4c1f05(0x16a)]()['help'](_0x4454b1[_0x4c1f05(0x171)])[_0x4c1f05(0x164)](HELP_FOOTER_MESSAGE);}module[a22_0xbcfa2e(0x16b)]=run;function a22_0x3f3d(){const _0x5838b3=['./config/constants','7slKMWb','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','root','568DEYXBx','SQDnq','1301010zgUzIe','env','169091XZoTGz','84MoIcMU','usage','epilogue','6AxYFYw','3ELjxmd','6510060KjjYBY','76976cXNtnR','33mhSJSS','demandCommand','exports','commandDir','386owZMxo','635772ayyoFU','help','1638530XBsstl','rKRwG'];a22_0x3f3d=function(){return _0x5838b3;};return a22_0x3f3d();}
@@ -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": {