browserstack-node-sdk 1.32.5 → 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 +58 -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
- function a14_0x4d12(){const _0x188200=['help','aKatX','329DddFQz','IBxNw','unknown-error','boolean','3990231JKLvDn','bstackUsername','concurrency','list','MeoUe','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','usage','yCkdr','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','CbkOi','command','ULFHE','2491742BwhGMR','unauthorised','168QUlxef','189224jJNJff','parse','sRyuL','stack','table','stringify','ypqgp','OgFPu','readFileSync','argv','region','55uhtgZv','Failed\x20to\x20list\x20resources!\x20Error:\x20','451368GWHFLV','init-not-called','YTlTX','server-error','exit','epilogue','handler','XRCXF','grid-profiles','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','FSMsY','ERROR','error','builder','DrsJG','../../utils/instrumentationUtils','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','50rluQer','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UGcyz','suvGb','statusCode','options','push','bOKpi','uRZot','../../utils/utilityMethods','https://','IrxqO','gIDHN','ZTQyu','QPaZp','existsSync','desc','gridProfile','247736OVLRIp','allGridProfiles','password','6hFLdte','xsTTh','name','113529lLuPNg','bstackAccesskey','INFO','Browserstack','uuid','username','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','439312VpOaAW','18Tzulqy'];a14_0x4d12=function(){return _0x188200;};return a14_0x4d12();}const a14_0x21eb8a=a14_0x2b62;function a14_0x2b62(_0x723415,_0x1abe1f){const _0x4d12f6=a14_0x4d12();return a14_0x2b62=function(_0x2b6280,_0xbeff7f){_0x2b6280=_0x2b6280-0xde;let _0x4c0955=_0x4d12f6[_0x2b6280];return _0x4c0955;},a14_0x2b62(_0x723415,_0x1abe1f);}(function(_0x78cc4d,_0x104f73){const _0x475f65=a14_0x2b62,_0x2b3a3d=_0x78cc4d();while(!![]){try{const _0x1e05ae=parseInt(_0x475f65(0x102))/0x1*(parseInt(_0x475f65(0x105))/0x2)+parseInt(_0x475f65(0x110))/0x3*(-parseInt(_0x475f65(0x10f))/0x4)+-parseInt(_0x475f65(0x131))/0x5*(-parseInt(_0x475f65(0xdf))/0x6)+-parseInt(_0x475f65(0x113))/0x7*(parseInt(_0x475f65(0x126))/0x8)+-parseInt(_0x475f65(0x117))/0x9+-parseInt(_0x475f65(0xf0))/0xa*(-parseInt(_0x475f65(0x123))/0xb)+parseInt(_0x475f65(0x125))/0xc*(parseInt(_0x475f65(0x108))/0xd);if(_0x1e05ae===_0x104f73)break;else _0x2b3a3d['push'](_0x2b3a3d['shift']());}catch(_0x4916ed){_0x2b3a3d['push'](_0x2b3a3d['shift']());}}}(a14_0x4d12,0x954f2));const fs=require('fs'),got=require('got'),{table}=require(a14_0x21eb8a(0x12a)),{v4:uuidv4}=require(a14_0x21eb8a(0x10c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x21eb8a(0xf9)),{sendInstrumentationEvent}=require(a14_0x21eb8a(0xee));exports[a14_0x21eb8a(0x121)]=a14_0x21eb8a(0xe7),exports[a14_0x21eb8a(0x100)]=a14_0x21eb8a(0xef),exports[a14_0x21eb8a(0xec)]=function(_0x13bb87){const _0x358266=a14_0x21eb8a,_0x558d81={};_0x558d81[_0x358266(0x12d)]=_0x358266(0xe8),_0x558d81[_0x358266(0x120)]=_0x358266(0x116),_0x558d81['OxAtU']=_0x358266(0x111);const _0xae155a=_0x558d81,_0x1e241e={};_0x1e241e['description']=_0xae155a[_0x358266(0x12d)],_0x1e241e['type']=_0xae155a['CbkOi'];const _0x18b149={};return _0x18b149['all-grid-profiles']=_0x1e241e,_0x13bb87[_0x358266(0x11d)](HELP_HEADER_MESSAGE[_0x358266(0x11a)][_0x358266(0x101)])[_0x358266(0xe4)](HELP_FOOTER_MESSAGE)[_0x358266(0xf5)](_0x18b149)[_0x358266(0x111)](_0xae155a['OxAtU'])[_0x358266(0x12f)];},exports[a14_0x21eb8a(0xe5)]=async function(_0x551cf0){const _0x42f868=a14_0x21eb8a,_0x33b197={'aKatX':function(_0x300489){return _0x300489();},'suvGb':function(_0x8dbd11){return _0x8dbd11();},'KMRBX':_0x42f868(0xf1),'IrxqO':function(_0x478357,_0x2e16a3,_0x5aa855,_0x4973f7,_0x46c038,_0x542f1d,_0x1c3691){return _0x478357(_0x2e16a3,_0x5aa855,_0x4973f7,_0x46c038,_0x542f1d,_0x1c3691);},'ypqgp':'list-grid-profiles-called','UDflN':_0x42f868(0xe0),'yCkdr':function(_0x2c73f1){return _0x2c73f1();},'QPaZp':'GET','sRyuL':function(_0x3e6f3c,_0x1fd9ac,_0xcfb556){return _0x3e6f3c(_0x1fd9ac,_0xcfb556);},'ENtYe':function(_0x3a83fe,_0x4052dd,_0x431eb1,_0x43bee0,_0x205eab,_0x48d97e,_0x510077){return _0x3a83fe(_0x4052dd,_0x431eb1,_0x43bee0,_0x205eab,_0x48d97e,_0x510077);},'ZTQyu':function(_0x4de31b,_0x7708d9,_0x5e5bde){return _0x4de31b(_0x7708d9,_0x5e5bde);},'YTlTX':function(_0xf5bd9f,_0x3edd5e){return _0xf5bd9f!==_0x3edd5e;},'gIDHN':function(_0x5124be,_0x9d1eec){return _0x5124be===_0x9d1eec;},'ULFHE':_0x42f868(0x10e),'uRZot':'grid-profile-name','MeoUe':'cloud-provider','FSMsY':'region','XRCXF':'concurrency','IBxNw':function(_0x2d8318,_0x708ce1){return _0x2d8318(_0x708ce1);},'DrsJG':_0x42f868(0x124),'xsTTh':function(_0x3bca82,_0x4a65c6,_0x31223b,_0x2d5930,_0x3fc789,_0x3213de,_0x3f3e0f){return _0x3bca82(_0x4a65c6,_0x31223b,_0x2d5930,_0x3fc789,_0x3213de,_0x3f3e0f);},'UGcyz':_0x42f868(0xe2),'bOKpi':_0x42f868(0x115)};try{global_registry['requestId']=_0x33b197[_0x42f868(0x112)](uuidv4);let _0x727fd=_0x42f868(0xfa)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x551cf0[_0x42f868(0x103)]&&(_0x727fd=_0x42f868(0xfa)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x42f868(0xff)](_0x33b197[_0x42f868(0xf3)](getCredentialsPath))&&(console[_0x42f868(0xeb)](_0x33b197['KMRBX']),await _0x33b197['IrxqO'](sendInstrumentationEvent,_0x551cf0,_0x33b197[_0x42f868(0x12c)],messageTypes[_0x42f868(0xea)],_0x33b197['UDflN'],null,_0x551cf0),process[_0x42f868(0xe3)](0x1));const _0x4ca0de=JSON[_0x42f868(0x127)](fs[_0x42f868(0x12e)](_0x33b197[_0x42f868(0x11e)](getCredentialsPath))),_0x47da60={'method':_0x33b197[_0x42f868(0xfe)],'headers':_0x33b197[_0x42f868(0x128)](getAuthHeader,_0x4ca0de[_0x42f868(0x10b)][_0x42f868(0x10d)],_0x4ca0de['Browserstack'][_0x42f868(0x104)])};global_registry[_0x42f868(0x118)]=_0x4ca0de[_0x42f868(0x10b)][_0x42f868(0x10d)],global_registry[_0x42f868(0x109)]=_0x4ca0de[_0x42f868(0x10b)][_0x42f868(0x104)],_0x33b197['ENtYe'](sendInstrumentationEvent,_0x551cf0,_0x33b197[_0x42f868(0x12c)],messageTypes[_0x42f868(0x10a)],null,null,_0x551cf0);const _0xe45c=await _0x33b197[_0x42f868(0xfd)](got,_0x727fd,_0x47da60);if(_0x33b197['YTlTX'](_0xe45c,null)&&_0x33b197[_0x42f868(0xe1)](_0xe45c,undefined)&&_0x33b197[_0x42f868(0xfc)](_0xe45c[_0x42f868(0xf4)],0xc8)){const _0x5d8067=JSON[_0x42f868(0x127)](_0xe45c['body']);console['log'](_0x33b197[_0x42f868(0x122)]);const _0x287d51=[];_0x287d51[_0x42f868(0xf6)]([_0x33b197[_0x42f868(0xf8)],_0x33b197[_0x42f868(0x11b)],_0x33b197[_0x42f868(0xe9)],_0x33b197[_0x42f868(0xe6)]]),_0x5d8067['forEach'](_0x3d083a=>{const _0x153774=_0x42f868;_0x287d51['push']([_0x3d083a[_0x153774(0x107)],_0x3d083a['cloudProvider'],_0x3d083a[_0x153774(0x130)],_0x3d083a[_0x153774(0x119)]]);}),console['log'](_0x33b197[_0x42f868(0x114)](table,_0x287d51)),process[_0x42f868(0xe3)](0x0);}_0x33b197['gIDHN'](_0xe45c[_0x42f868(0xf4)],0x191)&&(console[_0x42f868(0xeb)](_0x42f868(0x11c)),await _0x33b197[_0x42f868(0xfb)](sendInstrumentationEvent,_0x551cf0,_0x33b197[_0x42f868(0x12c)],messageTypes[_0x42f868(0xea)],_0x33b197[_0x42f868(0xed)],null,_0x551cf0),process[_0x42f868(0xe3)](0x1)),console[_0x42f868(0xeb)](_0x42f868(0x11f)+JSON[_0x42f868(0x12b)](_0xe45c)),await _0x33b197[_0x42f868(0x106)](sendInstrumentationEvent,_0x551cf0,_0x33b197[_0x42f868(0x12c)],messageTypes[_0x42f868(0xea)],_0x33b197[_0x42f868(0xf2)],_0xe45c,_0x551cf0),process[_0x42f868(0xe3)](0x1);}catch(_0x522dea){console[_0x42f868(0xeb)](_0x42f868(0xde)+_0x522dea[_0x42f868(0x129)]),await _0x33b197[_0x42f868(0xfb)](sendInstrumentationEvent,_0x551cf0,_0x33b197[_0x42f868(0x12c)],messageTypes[_0x42f868(0xea)],_0x33b197[_0x42f868(0xf7)],_0x522dea,_0x551cf0),process[_0x42f868(0xe3)](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_0x518d48=a15_0x10e0;function a15_0x10e0(_0x1091c1,_0x5c9c49){const _0xca429=a15_0xca42();return a15_0x10e0=function(_0x10e0af,_0x8aee17){_0x10e0af=_0x10e0af-0xd6;let _0x218f9a=_0xca429[_0x10e0af];return _0x218f9a;},a15_0x10e0(_0x1091c1,_0x5c9c49);}(function(_0x43e3e2,_0x363ede){const _0x142531=a15_0x10e0,_0x48d1e7=_0x43e3e2();while(!![]){try{const _0x52f2d1=-parseInt(_0x142531(0xd8))/0x1+-parseInt(_0x142531(0x10a))/0x2*(parseInt(_0x142531(0xee))/0x3)+parseInt(_0x142531(0x121))/0x4*(parseInt(_0x142531(0xe5))/0x5)+parseInt(_0x142531(0xdc))/0x6+parseInt(_0x142531(0x125))/0x7+parseInt(_0x142531(0xf3))/0x8+parseInt(_0x142531(0xf0))/0x9*(-parseInt(_0x142531(0xfa))/0xa);if(_0x52f2d1===_0x363ede)break;else _0x48d1e7['push'](_0x48d1e7['shift']());}catch(_0x47f59f){_0x48d1e7['push'](_0x48d1e7['shift']());}}}(a15_0xca42,0x325f6));const fs=require('fs'),got=require(a15_0x518d48(0xec)),{table}=require(a15_0x518d48(0x114)),{v4:uuidv4}=require(a15_0x518d48(0x101)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x518d48(0x11e)),{sendInstrumentationEvent}=require(a15_0x518d48(0xe7));function a15_0xca42(){const _0x2a1d7a=['forEach','KKYFg','grid','IHYWK','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','builder','79328txjkRb','name','help','TxOMp','911832RFnxMe','body','cluster-name','ZWQDl','aCemO','allGrids','readFileSync','server-error','boolean','5FpcSNC','grid-name','../../utils/instrumentationUtils','description','grid-id','Failed\x20to\x20list\x20resources!\x20Error:\x20','username','got','stack','247818KahvFw','list','42831kgwJfn','Iqvws','type','1640152AUMuAV','epilogue','requestId','zugPQ','\x0aFound\x20the\x20following\x20grids:\x0a','log','error','670CbQLtR','WGHaQ','EOXBt','VIiCG','uvfxq','list-grids-called','feSyL','uuid','wCKrz','AuJZV','desc','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','tnlbf','options','EcgPx','2opIywc','uFAME','Browserstack','grids','push','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clusterName','statusCode','table','usage','CLZFe','queued','IxRUT','mANsf','password','bgFzF','unknown-error','running','../../utils/utilityMethods','hoOJr','exit','779440qmlVTi','IMCBi','/packages/cli/get-all-grids','/packages/cli/get-grids','946834PJfXuY','status','bstackAccesskey','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','FzyfX','vAuyi','nCsDS','xXoWn','GKdAW','https://','parse','INFO','init-not-called'];a15_0xca42=function(){return _0x2a1d7a;};return a15_0xca42();}exports['command']=a15_0x518d48(0x10d),exports[a15_0x518d48(0x104)]=a15_0x518d48(0xd6),exports[a15_0x518d48(0xd7)]=function(_0x196d1e){const _0x1df059=a15_0x518d48,_0x278d39={};_0x278d39[_0x1df059(0x129)]=_0x1df059(0x128),_0x278d39[_0x1df059(0x10b)]=_0x1df059(0xe4),_0x278d39[_0x1df059(0xfc)]=_0x1df059(0xda);const _0x52f2cf=_0x278d39,_0x18026d={};_0x18026d[_0x1df059(0xe8)]=_0x52f2cf[_0x1df059(0x129)],_0x18026d[_0x1df059(0xf2)]=_0x52f2cf[_0x1df059(0x10b)];const _0x2b8d58={};return _0x2b8d58['all-grids']=_0x18026d,_0x196d1e[_0x1df059(0x115)](HELP_HEADER_MESSAGE[_0x1df059(0xef)][_0x1df059(0x134)])[_0x1df059(0xf4)](HELP_FOOTER_MESSAGE)[_0x1df059(0x108)](_0x2b8d58)[_0x1df059(0xda)](_0x52f2cf[_0x1df059(0xfc)])['argv'];},exports[a15_0x518d48(0x105)]=async function(_0x5eab75){const _0x2ac79f=a15_0x518d48,_0x4de9ab={'IHYWK':function(_0x355b24){return _0x355b24();},'EcgPx':function(_0x74c2e9){return _0x74c2e9();},'TBLCB':_0x2ac79f(0x111),'KKYFg':function(_0x972d2e,_0x1bc9c9,_0x53bec5,_0xd284f6,_0x470371,_0x474493,_0x336585){return _0x972d2e(_0x1bc9c9,_0x53bec5,_0xd284f6,_0x470371,_0x474493,_0x336585);},'zugPQ':_0x2ac79f(0xff),'WGHaQ':_0x2ac79f(0x131),'GKdAW':function(_0x29ef0b){return _0x29ef0b();},'TxOMp':'GET','ZWQDl':function(_0x10a6ad,_0xff2b1,_0x1f2ee6){return _0x10a6ad(_0xff2b1,_0x1f2ee6);},'tnlbf':function(_0x34f5ff,_0x325d1c,_0x2f0f4f,_0x75cd11,_0x2a6a4c,_0x16d176,_0x5d1c34){return _0x34f5ff(_0x325d1c,_0x2f0f4f,_0x75cd11,_0x2a6a4c,_0x16d176,_0x5d1c34);},'IMCBi':function(_0x371ccf,_0x509895,_0x4f5758){return _0x371ccf(_0x509895,_0x4f5758);},'uvfxq':function(_0x20a842,_0x1c5ba4){return _0x20a842!==_0x1c5ba4;},'baPSN':function(_0x38d12b,_0x4acf81){return _0x38d12b!==_0x4acf81;},'bgFzF':function(_0x65f201,_0x4fa9d7){return _0x65f201===_0x4fa9d7;},'vAuyi':_0x2ac79f(0xf7),'mANsf':_0x2ac79f(0xe9),'aCemO':_0x2ac79f(0xe6),'IxRUT':_0x2ac79f(0x126),'Iqvws':_0x2ac79f(0x11d),'nCsDS':_0x2ac79f(0x117),'xXoWn':_0x2ac79f(0xde),'CLZFe':function(_0x18edbd,_0x423596){return _0x18edbd(_0x423596);},'hoOJr':function(_0x385104,_0x204fb8){return _0x385104===_0x204fb8;},'AuJZV':'unauthorised','VIiCG':_0x2ac79f(0xe3),'feSyL':function(_0x782b43,_0x3cd815,_0x45766a,_0x33cbd3,_0x270ae4,_0x12d666,_0x1bb92b){return _0x782b43(_0x3cd815,_0x45766a,_0x33cbd3,_0x270ae4,_0x12d666,_0x1bb92b);},'wCKrz':_0x2ac79f(0x11c)};try{global_registry[_0x2ac79f(0xf5)]=_0x4de9ab[_0x2ac79f(0x135)](uuidv4);!fs['existsSync'](_0x4de9ab[_0x2ac79f(0x109)](getCredentialsPath))&&(console[_0x2ac79f(0xf9)](_0x4de9ab['TBLCB']),await _0x4de9ab['KKYFg'](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes[_0x2ac79f(0x110)],_0x4de9ab[_0x2ac79f(0xfb)],null,_0x5eab75),process[_0x2ac79f(0x120)](0x1));const _0x5d797a=JSON['parse'](fs[_0x2ac79f(0xe2)](_0x4de9ab[_0x2ac79f(0x12d)](getCredentialsPath)));let _0x519df2=_0x2ac79f(0x12e)+AG_API_URL+_0x2ac79f(0x124);_0x5eab75[_0x2ac79f(0xe1)]&&(_0x519df2=_0x2ac79f(0x12e)+AG_API_URL+_0x2ac79f(0x123));const _0x5c42fa={'method':_0x4de9ab[_0x2ac79f(0xdb)],'headers':_0x4de9ab[_0x2ac79f(0xdf)](getAuthHeader,_0x5d797a[_0x2ac79f(0x10c)][_0x2ac79f(0xeb)],_0x5d797a[_0x2ac79f(0x10c)][_0x2ac79f(0x11a)])};global_registry['bstackUsername']=_0x5d797a['Browserstack'][_0x2ac79f(0xeb)],global_registry[_0x2ac79f(0x127)]=_0x5d797a[_0x2ac79f(0x10c)][_0x2ac79f(0x11a)],_0x4de9ab[_0x2ac79f(0x107)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes[_0x2ac79f(0x130)],null,null,_0x5eab75);const _0x5575ac=await _0x4de9ab[_0x2ac79f(0x122)](got,_0x519df2,_0x5c42fa);if(_0x4de9ab[_0x2ac79f(0xfe)](_0x5575ac,null)&&_0x4de9ab['baPSN'](_0x5575ac,undefined)&&_0x4de9ab[_0x2ac79f(0x11b)](_0x5575ac['statusCode'],0xc8)){const _0x429aa4=JSON[_0x2ac79f(0x12f)](_0x5575ac[_0x2ac79f(0xdd)]);console[_0x2ac79f(0xf8)](_0x4de9ab[_0x2ac79f(0x12a)]);const _0x2c2ac9=[];_0x2c2ac9[_0x2ac79f(0x10e)]([_0x4de9ab[_0x2ac79f(0x119)],_0x4de9ab[_0x2ac79f(0xe0)],_0x4de9ab[_0x2ac79f(0x118)],_0x4de9ab[_0x2ac79f(0xf1)],_0x4de9ab[_0x2ac79f(0x12b)],_0x4de9ab[_0x2ac79f(0x12c)]]),_0x429aa4[_0x2ac79f(0x132)](_0x5e16ba=>{const _0x1aa8d6=_0x2ac79f;_0x2c2ac9['push']([_0x5e16ba['id'],_0x5e16ba[_0x1aa8d6(0xd9)],_0x5e16ba[_0x1aa8d6(0x126)],_0x5e16ba[_0x1aa8d6(0x11d)],_0x5e16ba['queued'],_0x5e16ba[_0x1aa8d6(0x112)]]);}),console['log'](_0x4de9ab[_0x2ac79f(0x116)](table,_0x2c2ac9)),process[_0x2ac79f(0x120)](0x0);}_0x4de9ab[_0x2ac79f(0x11f)](_0x5575ac[_0x2ac79f(0x113)],0x191)&&(console[_0x2ac79f(0xf9)](_0x2ac79f(0x10f)),await _0x4de9ab[_0x2ac79f(0x133)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes['ERROR'],_0x4de9ab[_0x2ac79f(0x103)],null,_0x5eab75),process['exit'](0x1)),console[_0x2ac79f(0xf9)](_0x2ac79f(0x106)+JSON['stringify'](_0x5575ac)),await _0x4de9ab[_0x2ac79f(0x133)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes[_0x2ac79f(0x110)],_0x4de9ab[_0x2ac79f(0xfd)],_0x5575ac,_0x5eab75),process[_0x2ac79f(0x120)](0x1);}catch(_0x43724c){console[_0x2ac79f(0xf9)](_0x2ac79f(0xea)+_0x43724c[_0x2ac79f(0xed)]),await _0x4de9ab[_0x2ac79f(0x100)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab['zugPQ'],messageTypes[_0x2ac79f(0x110)],_0x4de9ab[_0x2ac79f(0x102)],_0x43724c,_0x5eab75),process[_0x2ac79f(0x120)](0x1);}};
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_0x49ce54=a16_0x3892;(function(_0xb504e5,_0x3e217c){const _0x1ed760=a16_0x3892,_0x16ddf2=_0xb504e5();while(!![]){try{const _0x3ff5c0=parseInt(_0x1ed760(0x102))/0x1*(-parseInt(_0x1ed760(0xfb))/0x2)+parseInt(_0x1ed760(0xff))/0x3+parseInt(_0x1ed760(0xfa))/0x4+-parseInt(_0x1ed760(0x103))/0x5+-parseInt(_0x1ed760(0x108))/0x6*(-parseInt(_0x1ed760(0x107))/0x7)+-parseInt(_0x1ed760(0xf7))/0x8+-parseInt(_0x1ed760(0x104))/0x9*(parseInt(_0x1ed760(0x106))/0xa);if(_0x3ff5c0===_0x3e217c)break;else _0x16ddf2['push'](_0x16ddf2['shift']());}catch(_0x598d3c){_0x16ddf2['push'](_0x16ddf2['shift']());}}}(a16_0x1771,0xf06d0));function a16_0x1771(){const _0x234fbd=['726435UOzqdD','epilogue','40gvYzUS','214599nUJZUP','378ivzumC','handler','start','12978488AuoMnJ','start_commands','demandCommand','3532012tvkTmK','2631022gapCWR','strict','usage','commandDir','4803240BKcBna','builder','TOpDP','1TFQSCJ','850040HIvHam'];a16_0x1771=function(){return _0x234fbd;};return a16_0x1771();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x3892(_0x1a8961,_0x2701c0){const _0x17713f=a16_0x1771();return a16_0x3892=function(_0x3892ae,_0x1c4552){_0x3892ae=_0x3892ae-0xf5;let _0x5e6de1=_0x17713f[_0x3892ae];return _0x5e6de1;},a16_0x3892(_0x1a8961,_0x2701c0);}exports['command']='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x49ce54(0x100)]=function(_0x49f971){const _0x396b3b=a16_0x49ce54,_0x4e033e={};_0x4e033e['kjnEn']=_0x396b3b(0xf8),_0x4e033e[_0x396b3b(0x101)]='help';const _0xf52059=_0x4e033e;return _0x49f971[_0x396b3b(0xfd)](HELP_HEADER_MESSAGE[_0x396b3b(0xf6)])[_0x396b3b(0x105)](HELP_FOOTER_MESSAGE)[_0x396b3b(0xfe)](_0xf52059['kjnEn'])[_0x396b3b(0xf9)]()['recommendCommands']()[_0x396b3b(0xfc)]()['help'](_0xf52059['TOpDP']);},exports[a16_0x49ce54(0xf5)]=function(_0x512c33){};
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
- function a17_0x3356(_0x4db5e9,_0x42f78a){const _0x46682e=a17_0x4668();return a17_0x3356=function(_0x3356ec,_0xe6c3f3){_0x3356ec=_0x3356ec-0x104;let _0x1f708c=_0x46682e[_0x3356ec];return _0x1f708c;},a17_0x3356(_0x4db5e9,_0x42f78a);}function a17_0x4668(){const _0x24b7d8=['info','16956dCtSJM','cZnGE','stringify','WebSocket','usage','message','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','yMOAV','connectionTimeout','Jorip','ERROR','options','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','805152BxmISK','username','39196330AvKVfu','fetchLocalCreds','password','cloudProvider','statusCode','14216nAzeHF','start-grid-called','replace','name','Browserstack','IinlI','configureIfNotConfigured','clusterName','start','description','PjyWo','uUCOI','6606tPPrOA','bZKOi','926346pqdXnB','wEtFF','../../utils/createk8sClient','SCJwo','init-not-called','help','handler','1057wSBYDc','clusterRegion','region','gridId','2363145ADJHNV','APXgS','kdFRU','EgaUg','../../config/logger','<PasswordPlaceholder>','addListeners','body','grid-id','error','NlXYS','nOOJH','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','readFileSync','../../config/constants','INFO','server-error','exit','<UsernamePlaceholder>','50556aNpYxR','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','type','VcUoC','Start\x20an\x20existing\x20Automation\x20grid.','745ubfTxi','FwQAV','bstackAccesskey','Starting\x20grid\x20','debug','../../utils/utilityMethods','xcfmp','builder'];a17_0x4668=function(){return _0x24b7d8;};return a17_0x4668();}const a17_0x5b2eeb=a17_0x3356;(function(_0x192119,_0x2f8a98){const _0x18ae98=a17_0x3356,_0x30954e=_0x192119();while(!![]){try{const _0x130737=-parseInt(_0x18ae98(0x135))/0x1+parseInt(_0x18ae98(0x120))/0x2+-parseInt(_0x18ae98(0x140))/0x3+-parseInt(_0x18ae98(0x112))/0x4*(-parseInt(_0x18ae98(0x109))/0x5)+-parseInt(_0x18ae98(0x104))/0x6*(parseInt(_0x18ae98(0x13c))/0x7)+parseInt(_0x18ae98(0x127))/0x8*(-parseInt(_0x18ae98(0x133))/0x9)+parseInt(_0x18ae98(0x122))/0xa;if(_0x130737===_0x2f8a98)break;else _0x30954e['push'](_0x30954e['shift']());}catch(_0x24591f){_0x30954e['push'](_0x30954e['shift']());}}}(a17_0x4668,0xa1e4b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x5b2eeb(0x14f)),{logger}=require(a17_0x5b2eeb(0x144)),{getCredentialsPath,getGridDetails}=require(a17_0x5b2eeb(0x10e)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x5b2eeb(0x137)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports['desc']=a17_0x5b2eeb(0x108),exports[a17_0x5b2eeb(0x110)]=function(_0x49d4e6){const _0x1996be=a17_0x5b2eeb,_0x424205={};_0x424205['QzmxE']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x424205[_0x1996be(0x14b)]='string',_0x424205[_0x1996be(0x12c)]='help';const _0x2022cb=_0x424205,_0x49d65d={};_0x49d65d[_0x1996be(0x130)]=_0x2022cb['QzmxE'],_0x49d65d[_0x1996be(0x106)]=_0x2022cb['nOOJH'];const _0x312c4e={};return _0x312c4e[_0x1996be(0x148)]=_0x49d65d,_0x49d4e6[_0x1996be(0x116)](HELP_HEADER_MESSAGE[_0x1996be(0x12f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1996be(0x11e)](_0x312c4e)[_0x1996be(0x13a)](_0x2022cb[_0x1996be(0x12c)])['argv'];},exports[a17_0x5b2eeb(0x13b)]=async function(_0x539545){const _0x535840=a17_0x5b2eeb,_0x578f1e={'EgaUg':_0x535840(0x11f),'NlXYS':function(_0x211617){return _0x211617();},'PjyWo':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EZyyo':function(_0x5e90fe,_0xc15369,_0x19a309,_0x4064e8,_0x45e7f4,_0xc99bf6,_0x493478){return _0x5e90fe(_0xc15369,_0x19a309,_0x4064e8,_0x45e7f4,_0xc99bf6,_0x493478);},'VcUoC':_0x535840(0x128),'xcfmp':_0x535840(0x139),'SCJwo':function(_0x591f9a,_0x5b06f4,_0x4d571c,_0x423b8e,_0x3e3c67,_0x19712c,_0xed474d){return _0x591f9a(_0x5b06f4,_0x4d571c,_0x423b8e,_0x3e3c67,_0x19712c,_0xed474d);},'uUCOI':_0x535840(0x153),'Jorip':_0x535840(0x145),'qFkhV':'Adding\x20Websocket\x20listeners','qnouX':function(_0x1ceb2d,_0x4f3c6e,_0x576622,_0x34e844){return _0x1ceb2d(_0x4f3c6e,_0x576622,_0x34e844);},'CIYdA':function(_0x5176e4,_0x2266ab,_0x5e20b6,_0x2e6869,_0xc205c6,_0x5b64f1){return _0x5176e4(_0x2266ab,_0x5e20b6,_0x2e6869,_0xc205c6,_0x5b64f1);},'cZnGE':function(_0x5ef225,_0x1c8085){return _0x5ef225(_0x1c8085);},'wEtFF':function(_0x5c8a69,_0x31c700,_0x45cac6){return _0x5c8a69(_0x31c700,_0x45cac6);},'FHYgM':'Grid\x20started','kdFRU':function(_0x5cc861,_0x5cecf0){return _0x5cc861===_0x5cecf0;},'BRUxh':function(_0x3f2f25,_0xbc9542,_0x18b0a5,_0x5c437f,_0x4b7f71,_0x52ad7f,_0x1dcc4b){return _0x3f2f25(_0xbc9542,_0x18b0a5,_0x5c437f,_0x4b7f71,_0x52ad7f,_0x1dcc4b);},'OACFy':'unauthorised','FwQAV':function(_0x1748f0,_0x2362ed){return _0x1748f0===_0x2362ed;},'APXgS':function(_0x4a15e1,_0x97eb37,_0x721603,_0x47bfbc,_0x5dabbb,_0x578666,_0x269b1e){return _0x4a15e1(_0x97eb37,_0x721603,_0x47bfbc,_0x5dabbb,_0x578666,_0x269b1e);},'yMOAV':'invalid-grid-id','Ksrql':function(_0x2f6ac5,_0x348e75,_0x4f53e5,_0x478159,_0x1ad864,_0xbb6d7c,_0x147260){return _0x2f6ac5(_0x348e75,_0x4f53e5,_0x478159,_0x1ad864,_0xbb6d7c,_0x147260);},'bZKOi':_0x535840(0x151)};let _0x1ff111;try{!_0x539545[_0x535840(0x13f)]&&(logger[_0x535840(0x149)](_0x578f1e[_0x535840(0x143)]),process[_0x535840(0x152)](0x1));!fs[_0x535840(0x118)](_0x578f1e['NlXYS'](getCredentialsPath))&&(logger[_0x535840(0x149)](_0x578f1e[_0x535840(0x131)]),await _0x578f1e['EZyyo'](sendInstrumentationEvent,_0x539545,_0x578f1e[_0x535840(0x107)],messageTypes[_0x535840(0x11d)],_0x578f1e[_0x535840(0x10f)],null,_0x539545),process[_0x535840(0x152)](0x1));logger[_0x535840(0x111)](_0x535840(0x10c)+_0x539545[_0x535840(0x13f)]),await _0x578f1e[_0x535840(0x138)](sendInstrumentationEvent,_0x539545,_0x578f1e['VcUoC'],messageTypes[_0x535840(0x150)],null,null,_0x539545);const _0x3d721c=JSON[_0x535840(0x14c)](fs[_0x535840(0x14e)](_0x578f1e[_0x535840(0x14a)](getCredentialsPath)));global_registry['bstackUsername']=_0x3d721c[_0x535840(0x12b)][_0x535840(0x121)],global_registry[_0x535840(0x10b)]=_0x3d721c[_0x535840(0x12b)][_0x535840(0x124)];const _0x390377=WS_ENDPOINT[_0x535840(0x129)](_0x578f1e[_0x535840(0x132)],_0x3d721c[_0x535840(0x12b)][_0x535840(0x121)])[_0x535840(0x129)](_0x578f1e[_0x535840(0x11c)],_0x3d721c['Browserstack']['password']),_0x36984c={};_0x36984c[_0x535840(0x115)]=ws,_0x36984c[_0x535840(0x11b)]=0x36ee80,_0x1ff111=new ReconnectingWebSocket(_0x390377,[],_0x36984c),logger[_0x535840(0x10d)](_0x578f1e['qFkhV']),webSocketUtils[_0x535840(0x146)](_0x1ff111,_0x539545['user'],_0x539545[_0x535840(0x124)]);const [_0x58a0cc,_0x4b3143]=await _0x578f1e['qnouX'](getGridDetails,_0x3d721c[_0x535840(0x12b)][_0x535840(0x121)],_0x3d721c[_0x535840(0x12b)][_0x535840(0x124)],_0x539545[_0x535840(0x13f)]);if(_0x4b3143){const _0x28a09c=_0x4b3143['info'];global_registry[_0x535840(0x125)]=_0x28a09c['cloudProvider'],global_registry[_0x535840(0x13d)]=_0x28a09c[_0x535840(0x13e)],global_registry[_0x535840(0x12e)]=_0x28a09c[_0x535840(0x12e)];const _0x53719d=_0x578f1e['CIYdA'](getCloudProviderObject,_0x28a09c['cloudProvider'],_0x28a09c[_0x535840(0x12e)],_0x28a09c[_0x535840(0x12a)],_0x1ff111,webSocketUtils),_0x2bc666=_0x3d721c[_0x535840(0x125)]||{};await _0x53719d[_0x535840(0x123)](_0x2bc666),_0x53719d[_0x535840(0x12d)]();const [_0xa3cc4,_0x4fe024,_0x4239c2,_0x296297,_0x3e47bd,_0x34bece]=await _0x578f1e[_0x535840(0x113)](createK8sClient,_0x53719d);await _0x578f1e[_0x535840(0x136)](scaleUpHubDeployment,_0x4fe024,_0x28a09c[_0x535840(0x12a)]),logger[_0x535840(0x111)](_0x578f1e['FHYgM']),process[_0x535840(0x152)](0x0);}_0x578f1e[_0x535840(0x142)](_0x58a0cc['statusCode'],0x191)&&(logger[_0x535840(0x149)](_0x535840(0x119)),await _0x578f1e['BRUxh'](sendInstrumentationEvent,_0x539545,_0x578f1e[_0x535840(0x107)],messageTypes[_0x535840(0x11d)],_0x578f1e['OACFy'],null,_0x539545),process['exit'](0x1)),_0x578f1e[_0x535840(0x10a)](_0x58a0cc[_0x535840(0x126)],0x190)&&(logger[_0x535840(0x149)](JSON['parse'](_0x58a0cc[_0x535840(0x147)])[_0x535840(0x117)]),await _0x578f1e[_0x535840(0x141)](sendInstrumentationEvent,_0x539545,_0x578f1e['VcUoC'],messageTypes[_0x535840(0x11d)],_0x578f1e[_0x535840(0x11a)],null,_0x539545),process[_0x535840(0x152)](0x1)),logger[_0x535840(0x149)](_0x535840(0x14d)+JSON['stringify'](_0x58a0cc)),await _0x578f1e['Ksrql'](sendInstrumentationEvent,_0x539545,_0x578f1e[_0x535840(0x107)],messageTypes[_0x535840(0x11d)],_0x578f1e[_0x535840(0x134)],_0x58a0cc,_0x539545),process[_0x535840(0x152)](0x1);}catch(_0x18379f){const _0x344b87=_0x535840(0x105)+_0x18379f+'\x20\x0a'+JSON[_0x535840(0x114)](_0x18379f['stack'])+'\x20';logger[_0x535840(0x149)](_0x344b87),process[_0x535840(0x152)](0x1);}};
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_0x43160e=a18_0x2c49;(function(_0x2c4229,_0x29413f){const _0x49c890=a18_0x2c49,_0x25fa84=_0x2c4229();while(!![]){try{const _0x26d048=-parseInt(_0x49c890(0x1f9))/0x1+parseInt(_0x49c890(0x200))/0x2*(-parseInt(_0x49c890(0x1ff))/0x3)+-parseInt(_0x49c890(0x1fb))/0x4*(-parseInt(_0x49c890(0x1fa))/0x5)+parseInt(_0x49c890(0x1ec))/0x6*(-parseInt(_0x49c890(0x1f8))/0x7)+-parseInt(_0x49c890(0x1f1))/0x8*(parseInt(_0x49c890(0x1fd))/0x9)+parseInt(_0x49c890(0x1f7))/0xa*(-parseInt(_0x49c890(0x1ee))/0xb)+parseInt(_0x49c890(0x1f3))/0xc;if(_0x26d048===_0x29413f)break;else _0x25fa84['push'](_0x25fa84['shift']());}catch(_0xc207c8){_0x25fa84['push'](_0x25fa84['shift']());}}}(a18_0x424a,0x27832));function a18_0x2c49(_0x497a1c,_0x34c888){const _0x424af5=a18_0x424a();return a18_0x2c49=function(_0x2c49fc,_0x3cea17){_0x2c49fc=_0x2c49fc-0x1ea;let _0x470d0e=_0x424af5[_0x2c49fc];return _0x470d0e;},a18_0x2c49(_0x497a1c,_0x34c888);}function a18_0x424a(){const _0x401d1d=['demandCommand','2733741YttQNz','epilogue','78chZUsZ','18348WUSsbi','help','Stop\x20a\x20running\x20Automation\x20grid.','usage','handler','378bGYHxv','ZEtNJ','1793KCIDcQ','builder','commandDir','8aIHPIP','hHhVu','13413408OeZORX','strict','stop_commands','stop','13970nYfbZV','4291YzIejE','253526WKrLoY','530935FAtRIH','4lrVwmc'];a18_0x424a=function(){return _0x401d1d;};return a18_0x424a();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x43160e(0x1f6),exports['desc']=a18_0x43160e(0x202),exports[a18_0x43160e(0x1ef)]=function(_0x4e76c5){const _0x37f169=a18_0x43160e,_0x40dcfb={};_0x40dcfb[_0x37f169(0x1f2)]=_0x37f169(0x1f5),_0x40dcfb[_0x37f169(0x1ed)]=_0x37f169(0x201);const _0x405216=_0x40dcfb;return _0x4e76c5[_0x37f169(0x1ea)](HELP_HEADER_MESSAGE[_0x37f169(0x1f6)])[_0x37f169(0x1fe)](HELP_FOOTER_MESSAGE)[_0x37f169(0x1f0)](_0x405216[_0x37f169(0x1f2)])[_0x37f169(0x1fc)]()['recommendCommands']()[_0x37f169(0x1f4)]()[_0x37f169(0x201)](_0x405216[_0x37f169(0x1ed)]);},exports[a18_0x43160e(0x1eb)]=function(_0x3f33ab){};
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
- const a19_0x512f9e=a19_0x5f58;(function(_0x4fc8c2,_0x184278){const _0x5ddbe7=a19_0x5f58,_0x51445f=_0x4fc8c2();while(!![]){try{const _0x36568e=-parseInt(_0x5ddbe7(0xce))/0x1*(parseInt(_0x5ddbe7(0xc8))/0x2)+-parseInt(_0x5ddbe7(0xe5))/0x3*(parseInt(_0x5ddbe7(0xbe))/0x4)+parseInt(_0x5ddbe7(0xcb))/0x5*(parseInt(_0x5ddbe7(0xfa))/0x6)+parseInt(_0x5ddbe7(0xd6))/0x7*(parseInt(_0x5ddbe7(0x102))/0x8)+-parseInt(_0x5ddbe7(0xac))/0x9+parseInt(_0x5ddbe7(0xbf))/0xa*(-parseInt(_0x5ddbe7(0x101))/0xb)+parseInt(_0x5ddbe7(0xe9))/0xc*(parseInt(_0x5ddbe7(0xe0))/0xd);if(_0x36568e===_0x184278)break;else _0x51445f['push'](_0x51445f['shift']());}catch(_0x34c45f){_0x51445f['push'](_0x51445f['shift']());}}}(a19_0x2165,0xc058f));function a19_0x5f58(_0x1e8734,_0x42b88f){const _0x2165e5=a19_0x2165();return a19_0x5f58=function(_0x5f5890,_0x4f936e){_0x5f5890=_0x5f5890-0xa8;let _0x534299=_0x2165e5[_0x5f5890];return _0x534299;},a19_0x5f58(_0x1e8734,_0x42b88f);}function a19_0x2165(){const _0x424e1d=['invalid-grid-id','existsSync','874301PSzYHb','error','options','xWykq','server-error','readFileSync','argv','exit','41671HxWiXJ','fDnPY','bstackAccesskey','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','handler','eVdHH','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AQHQI','52OhaQuH','Adding\x20Websocket\x20listeners','htirc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','168aFKxCe','description','YokJf','bstackUsername','4712544dAGQAD','statusCode','user','connectionTimeout','replace','yEmCE','VFtkv','grid-id','command','../../utils/utilityMethods','name','unauthorised','ERROR','Stop\x20a\x20running\x20Automation\x20grid.','reconnecting-websocket','HuptQ','desc','6MfOIoT','WebSocket','<UsernamePlaceholder>','xbihH','username','usage','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','22BfiohU','1992VhwRVm','stop','FLllC','clusterRegion','../../utils/instrumentationUtils','FtMme','type','12631473sXEKoo','dtgqi','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','fetchLocalCreds','epilogue','FvpGm','qeLbZ','region','stop-grid-called','body','string','UypRz','OOIUP','password','cloudProvider','../../config/logger','builder','XZPEJ','4376gHUwWY','6201610ZVqALb','info','Browserstack','Grid\x20stoppped.','<PasswordPlaceholder>','pzxal','gridId','configureIfNotConfigured','../../utils/gridComponents','2pHwZrJ','Stopping\x20grid\x20','help','6570470suOQpH'];a19_0x2165=function(){return _0x424e1d;};return a19_0x2165();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x512f9e(0xf7)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x512f9e(0xbb)),{getCredentialsPath,getGridDetails}=require(a19_0x512f9e(0xf2)),{scaleDownHubDeployment}=require(a19_0x512f9e(0xc7)),{sendInstrumentationEvent}=require(a19_0x512f9e(0xa9)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x512f9e(0xf1)]='grid',exports[a19_0x512f9e(0xf9)]=a19_0x512f9e(0xf6),exports[a19_0x512f9e(0xbc)]=function(_0xba6245){const _0x48e4a8=a19_0x512f9e,_0x196e7b={};_0x196e7b[_0x48e4a8(0xb2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x196e7b[_0x48e4a8(0xad)]=_0x48e4a8(0xb6),_0x196e7b['AQHQI']=_0x48e4a8(0xca);const _0x3439ff=_0x196e7b,_0x1e56c6={};_0x1e56c6[_0x48e4a8(0xe6)]=_0x3439ff[_0x48e4a8(0xb2)],_0x1e56c6[_0x48e4a8(0xab)]=_0x3439ff[_0x48e4a8(0xad)];const _0x36d38d={};return _0x36d38d[_0x48e4a8(0xf0)]=_0x1e56c6,_0xba6245[_0x48e4a8(0xff)](HELP_HEADER_MESSAGE[_0x48e4a8(0x103)])[_0x48e4a8(0xb0)](HELP_FOOTER_MESSAGE)[_0x48e4a8(0xd0)](_0x36d38d)[_0x48e4a8(0xca)](_0x3439ff[_0x48e4a8(0xdf)])[_0x48e4a8(0xd4)];},exports[a19_0x512f9e(0xdb)]=async function(_0x5f0da3){const _0x16dcc2=a19_0x512f9e,_0x34bce9={'xbihH':_0x16dcc2(0xae),'htirc':function(_0x4f2838){return _0x4f2838();},'liLIf':_0x16dcc2(0xde),'FtMme':function(_0xf10ccc,_0x96ff9,_0x3520b3,_0x5d73c7,_0x35c5d7,_0x4617f0,_0x16d54a){return _0xf10ccc(_0x96ff9,_0x3520b3,_0x5d73c7,_0x35c5d7,_0x4617f0,_0x16d54a);},'YokJf':_0x16dcc2(0xb4),'XZPEJ':'init-not-called','UypRz':function(_0x4841f5,_0x457588,_0x3f5f33,_0x5b5397,_0x47adc4,_0x1689c1,_0x37641c){return _0x4841f5(_0x457588,_0x3f5f33,_0x5b5397,_0x47adc4,_0x1689c1,_0x37641c);},'HuptQ':_0x16dcc2(0xfc),'FvpGm':_0x16dcc2(0xc3),'OOIUP':_0x16dcc2(0xe1),'xWykq':function(_0x1e4d9e,_0x49c6fc,_0x43994f,_0x2ac22c){return _0x1e4d9e(_0x49c6fc,_0x43994f,_0x2ac22c);},'rUpdT':function(_0x1d7873,_0x58a286,_0x45e28d,_0x5099cb,_0x49c054,_0x25892d){return _0x1d7873(_0x58a286,_0x45e28d,_0x5099cb,_0x49c054,_0x25892d);},'wLJTf':function(_0x23f586,_0x161d19){return _0x23f586(_0x161d19);},'duEbA':function(_0x1f3379,_0x1c25d7,_0x50a4f3){return _0x1f3379(_0x1c25d7,_0x50a4f3);},'mowcw':_0x16dcc2(0xc2),'VFtkv':function(_0x15920c,_0x58d6e9){return _0x15920c===_0x58d6e9;},'FLllC':function(_0x59aca7,_0x1d6476,_0x33be5f,_0x463ead,_0xa8b878,_0x1f6381,_0x4ec78e){return _0x59aca7(_0x1d6476,_0x33be5f,_0x463ead,_0xa8b878,_0x1f6381,_0x4ec78e);},'RmHdN':_0x16dcc2(0xf4),'yEmCE':function(_0xd1385,_0x54bf98){return _0xd1385===_0x54bf98;},'eVdHH':function(_0x22cc7e,_0x193319,_0x2e0bbc,_0x355ffe,_0x4d5787,_0x13fcf7,_0x4164f8){return _0x22cc7e(_0x193319,_0x2e0bbc,_0x355ffe,_0x4d5787,_0x13fcf7,_0x4164f8);},'fDnPY':_0x16dcc2(0xcc),'pzxal':_0x16dcc2(0xd2)};let _0x3849fb;try{!_0x5f0da3[_0x16dcc2(0xc5)]&&(logger[_0x16dcc2(0xcf)](_0x34bce9[_0x16dcc2(0xfd)]),process[_0x16dcc2(0xd5)](0x1));!fs[_0x16dcc2(0xcd)](_0x34bce9[_0x16dcc2(0xe2)](getCredentialsPath))&&(logger[_0x16dcc2(0xcf)](_0x34bce9['liLIf']),await _0x34bce9[_0x16dcc2(0xaa)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9['YokJf'],messageTypes[_0x16dcc2(0xf5)],_0x34bce9[_0x16dcc2(0xbd)],null,_0x5f0da3),process[_0x16dcc2(0xd5)](0x1));logger[_0x16dcc2(0xc0)](_0x16dcc2(0xc9)+_0x5f0da3[_0x16dcc2(0xc5)]),await _0x34bce9[_0x16dcc2(0xb7)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes['INFO'],null,null,_0x5f0da3);const _0x35f3a3=JSON[_0x16dcc2(0xd9)](fs[_0x16dcc2(0xd3)](_0x34bce9['htirc'](getCredentialsPath)));global_registry[_0x16dcc2(0xe8)]=_0x35f3a3[_0x16dcc2(0xc1)]['username'],global_registry[_0x16dcc2(0xd8)]=_0x35f3a3[_0x16dcc2(0xc1)][_0x16dcc2(0xb9)];const _0x378b4b=WS_ENDPOINT[_0x16dcc2(0xed)](_0x34bce9[_0x16dcc2(0xf8)],_0x35f3a3['Browserstack'][_0x16dcc2(0xfe)])['replace'](_0x34bce9[_0x16dcc2(0xb1)],_0x35f3a3[_0x16dcc2(0xc1)][_0x16dcc2(0xb9)]),_0x13b5be={};_0x13b5be[_0x16dcc2(0xfb)]=ws,_0x13b5be[_0x16dcc2(0xec)]=0x36ee80,_0x3849fb=new ReconnectingWebSocket(_0x378b4b,[],_0x13b5be),logger['debug'](_0x34bce9[_0x16dcc2(0xb8)]),webSocketUtils['addListeners'](_0x3849fb,_0x5f0da3[_0x16dcc2(0xeb)],_0x5f0da3[_0x16dcc2(0xb9)]);const [_0x160f26,_0x4ad85f]=await _0x34bce9[_0x16dcc2(0xd1)](getGridDetails,_0x35f3a3[_0x16dcc2(0xc1)][_0x16dcc2(0xfe)],_0x35f3a3['Browserstack']['password'],_0x5f0da3[_0x16dcc2(0xc5)]);if(_0x4ad85f){const _0x42a994=_0x4ad85f[_0x16dcc2(0xc0)];global_registry[_0x16dcc2(0xba)]=_0x42a994[_0x16dcc2(0xba)],global_registry[_0x16dcc2(0xa8)]=_0x42a994[_0x16dcc2(0xb3)],global_registry[_0x16dcc2(0xdd)]=_0x42a994['clusterName'];const _0x5102d3=_0x34bce9['rUpdT'](getCloudProviderObject,_0x42a994[_0x16dcc2(0xba)],_0x42a994[_0x16dcc2(0xdd)],_0x42a994['name'],_0x3849fb,webSocketUtils),_0x4aa77a=_0x35f3a3['cloudProvider']||{};await _0x5102d3[_0x16dcc2(0xaf)](_0x4aa77a),_0x5102d3[_0x16dcc2(0xc6)]();const [_0x14ef2f,_0x22e412,_0x5417d5,_0x56e1d9,_0x4237d6,_0x4048dd]=await _0x34bce9['wLJTf'](createK8sClient,_0x5102d3);await _0x34bce9['duEbA'](scaleDownHubDeployment,_0x22e412,_0x42a994[_0x16dcc2(0xf3)]),logger[_0x16dcc2(0xc0)](_0x34bce9['mowcw']),process[_0x16dcc2(0xd5)](0x0);}_0x34bce9[_0x16dcc2(0xef)](_0x160f26[_0x16dcc2(0xea)],0x191)&&(logger['error'](_0x16dcc2(0xda)),await _0x34bce9[_0x16dcc2(0x104)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes[_0x16dcc2(0xf5)],_0x34bce9['RmHdN'],null,_0x5f0da3),process['exit'](0x1)),_0x34bce9[_0x16dcc2(0xee)](_0x160f26['statusCode'],0x190)&&(logger[_0x16dcc2(0xcf)](JSON['parse'](_0x160f26[_0x16dcc2(0xb5)])['message']),await _0x34bce9[_0x16dcc2(0xdc)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes[_0x16dcc2(0xf5)],_0x34bce9[_0x16dcc2(0xd7)],null,_0x5f0da3),process[_0x16dcc2(0xd5)](0x1)),logger['error'](_0x16dcc2(0xe3)+JSON[_0x16dcc2(0xe4)](_0x160f26)),await _0x34bce9['eVdHH'](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes['ERROR'],_0x34bce9[_0x16dcc2(0xc4)],_0x160f26,_0x5f0da3),process[_0x16dcc2(0xd5)](0x1);}catch(_0x23a58a){const _0x275e0a=_0x16dcc2(0x100)+_0x23a58a+'\x20\x0a'+JSON[_0x16dcc2(0xe4)](_0x23a58a['stack'])+'\x20';logger[_0x16dcc2(0xcf)](_0x275e0a),process[_0x16dcc2(0xd5)](0x1);}};
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_0x3e1670=a20_0x4552;(function(_0x30527,_0x31a207){const _0x3ad4cc=a20_0x4552,_0x4141d5=_0x30527();while(!![]){try{const _0x3d3d60=-parseInt(_0x3ad4cc(0x168))/0x1*(parseInt(_0x3ad4cc(0x123))/0x2)+parseInt(_0x3ad4cc(0x154))/0x3*(-parseInt(_0x3ad4cc(0x141))/0x4)+-parseInt(_0x3ad4cc(0x11f))/0x5+-parseInt(_0x3ad4cc(0x12f))/0x6+parseInt(_0x3ad4cc(0x138))/0x7+-parseInt(_0x3ad4cc(0x172))/0x8+parseInt(_0x3ad4cc(0x120))/0x9;if(_0x3d3d60===_0x31a207)break;else _0x4141d5['push'](_0x4141d5['shift']());}catch(_0x51defc){_0x4141d5['push'](_0x4141d5['shift']());}}}(a20_0x1fc0,0xb9f31),require(a20_0x3e1670(0x14e))[a20_0x3e1670(0x174)](),exports[a20_0x3e1670(0x135)]=process[a20_0x3e1670(0x160)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports['BS_API_URL']=process[a20_0x3e1670(0x160)]['BS_API_URL']||a20_0x3e1670(0x145),exports[a20_0x3e1670(0x126)]=process['env']['AG_API_URL']||a20_0x3e1670(0x124),exports[a20_0x3e1670(0x171)]=a20_0x3e1670(0x122)+this[a20_0x3e1670(0x126)]+a20_0x3e1670(0x162),exports[a20_0x3e1670(0x15f)]='credentials',exports[a20_0x3e1670(0x146)]=a20_0x3e1670(0x134),exports['DEFAULT_GRID_NAME']=a20_0x3e1670(0x139));const timestamp=new Date()[a20_0x3e1670(0x12b)]();exports[a20_0x3e1670(0x13f)]='aws',exports[a20_0x3e1670(0x16b)]=a20_0x3e1670(0x142)+timestamp,exports[a20_0x3e1670(0x13a)]=a20_0x3e1670(0x132)+timestamp,exports[a20_0x3e1670(0x12a)]=a20_0x3e1670(0x169),exports[a20_0x3e1670(0x16a)]=a20_0x3e1670(0x125),exports[a20_0x3e1670(0x12d)]=a20_0x3e1670(0x140);const a20_0x1251b9={};a20_0x1251b9[a20_0x3e1670(0x153)]='browserstack:managedBy',a20_0x1251b9[a20_0x3e1670(0x16d)]=a20_0x3e1670(0x133);const a20_0x450dff={};a20_0x450dff[a20_0x3e1670(0x153)]=a20_0x3e1670(0x156),a20_0x450dff[a20_0x3e1670(0x16d)]=a20_0x3e1670(0x173),exports[a20_0x3e1670(0x155)]=[a20_0x1251b9,a20_0x450dff];function a20_0x4552(_0x2f5c8f,_0x34a365){const _0x1fc007=a20_0x1fc0();return a20_0x4552=function(_0x455258,_0x2225f8){_0x455258=_0x455258-0x11f;let _0xcea6a6=_0x1fc007[_0x455258];return _0xcea6a6;},a20_0x4552(_0x2f5c8f,_0x34a365);}const a20_0x2862a7={};a20_0x2862a7[a20_0x3e1670(0x14c)]=a20_0x3e1670(0x133),a20_0x2862a7[a20_0x3e1670(0x156)]=a20_0x3e1670(0x173),exports[a20_0x3e1670(0x14b)]=a20_0x2862a7,exports[a20_0x3e1670(0x149)]=[this[a20_0x3e1670(0x13f)]];const a20_0xc283a={};function a20_0x1fc0(){const _0x12d118=['browserstack:managedBy','root','dotenv','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','GRID_URL','cliRunStarted','RAW_ARGS_REGEX','Key','26664BysPFx','COMMON_HST_TAGS','browserstack:service','warning','error','resourceInfo','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','grid','start','CLI_RUN_FINISHED','CP_CONFIG_FILE','env','REDACTED','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','LINK_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','list','gridProfile','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','2077CrXoMh','browserstack-turboscale-grid','AZURE','CLUSTER_DEP_STACK_NAME','HELP_HEADER_MESSAGE','Value','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','[REDACTED]','global_registry','WS_ENDPOINT','3689656iHNKoy','BrowserStack-Automate-TurboScale','config','4809660fPCHAj','25620696eLWwev','HELP_FOOTER_MESSAGE','wss://','1396lZvzTC','grid-api.browserstack.com','azure','AG_API_URL','connect','create','WARNING','TURBOSCALE_DEPLOYMENT','getTime','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','GCP','cliRunFinished','496410WqHcrr','WS_EVENTS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','BSTACK-ATS-CLUSTER-AUTOSCALER-','BrowserStack','BrowserStackIAMUser','DASHBOARD_ENDPOINT','messageTypes','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','9204475aRlcFu','high-scale-grid','CLUSTER_AUTOSCALER_STACK_NAME','NULL','success','delete','info','AWS','gcp','200JhccNN','BSTACK-ATS-CLUSTER-','CLI_ARGS_REGEX','ERROR','api.browserstack.com','IAM_USER_NAME','INFO','init','SUPPORTED_CLOUD_PROVIDERS','SUCCESS','HST_CLUSTER_TAGS'];a20_0x1fc0=function(){return _0x12d118;};return a20_0x1fc0();}a20_0xc283a['LOG']='log',a20_0xc283a['RESOURCES']=a20_0x3e1670(0x159),a20_0xc283a[a20_0x3e1670(0x150)]='gridUrl',a20_0xc283a[a20_0x3e1670(0x15a)]=a20_0x3e1670(0x151),a20_0xc283a[a20_0x3e1670(0x15e)]=a20_0x3e1670(0x12e),exports[a20_0x3e1670(0x130)]=a20_0xc283a,exports[a20_0x3e1670(0x170)]={},exports[a20_0x3e1670(0x163)]=a20_0x3e1670(0x137);const a20_0x55b022={};a20_0x55b022[a20_0x3e1670(0x14d)]=a20_0x3e1670(0x167)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x148)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a20_0x3e1670(0x163)],a20_0x55b022['configure']=a20_0x3e1670(0x14f)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x128)]=a20_0x3e1670(0x164)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)]={},a20_0x55b022[a20_0x3e1670(0x13d)]=a20_0x3e1670(0x16e)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x127)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x15d)]=a20_0x3e1670(0x12c)+this[a20_0x3e1670(0x163)],a20_0x55b022['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)][a20_0x3e1670(0x14d)]=a20_0x3e1670(0x15b)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)][a20_0x3e1670(0x15c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)][a20_0x3e1670(0x166)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a20_0x3e1670(0x163)],exports[a20_0x3e1670(0x16c)]=a20_0x55b022,exports[a20_0x3e1670(0x121)]=a20_0x3e1670(0x131);const a20_0x218328={};a20_0x218328[a20_0x3e1670(0x14a)]=a20_0x3e1670(0x13c),a20_0x218328[a20_0x3e1670(0x144)]=a20_0x3e1670(0x158),a20_0x218328[a20_0x3e1670(0x147)]=a20_0x3e1670(0x13e),a20_0x218328[a20_0x3e1670(0x129)]=a20_0x3e1670(0x157),a20_0x218328['UNKNOWN']='unknown',a20_0x218328[a20_0x3e1670(0x13b)]=null,exports[a20_0x3e1670(0x136)]=a20_0x218328,exports[a20_0x3e1670(0x143)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x3e1670(0x152)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x3e1670(0x161)]=a20_0x3e1670(0x16f);
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_0x3754ff=a21_0x34f2;(function(_0x891a61,_0x34c09f){const _0x3122b2=a21_0x34f2,_0x454deb=_0x891a61();while(!![]){try{const _0x3e6296=-parseInt(_0x3122b2(0x119))/0x1+-parseInt(_0x3122b2(0x10b))/0x2+-parseInt(_0x3122b2(0x10e))/0x3+parseInt(_0x3122b2(0x111))/0x4+-parseInt(_0x3122b2(0x107))/0x5*(-parseInt(_0x3122b2(0x113))/0x6)+-parseInt(_0x3122b2(0x11d))/0x7+parseInt(_0x3122b2(0x11b))/0x8;if(_0x3e6296===_0x34c09f)break;else _0x454deb['push'](_0x454deb['shift']());}catch(_0x47a4e7){_0x454deb['push'](_0x454deb['shift']());}}}(a21_0x35cd,0x8164a));function a21_0x34f2(_0xc4daee,_0x181fb0){const _0x35cda4=a21_0x35cd();return a21_0x34f2=function(_0x34f2c1,_0x1b7b93){_0x34f2c1=_0x34f2c1-0x100;let _0x29b15c=_0x35cda4[_0x34f2c1];return _0x29b15c;},a21_0x34f2(_0xc4daee,_0x181fb0);}function a21_0x35cd(){const _0x382672=['transports','name','1839264WMERtZ','fileLogger','Console','2942358gVrune','colorize','debug','2809020vntBKE','printf','762noZTuw','mkdirSync','logger','format','combine','timestamp','195931BPEzVt','YYYY-MM-DD\x20HH:mm:ss','12483832yfMuYI','winston','4178244EwrNXq','existsSync','level','message','console.info','events.log','createLogger','File','37815pzBFPs','\x20-\x20'];a21_0x35cd=function(){return _0x382672;};return a21_0x35cd();}const winston=require(a21_0x3754ff(0x11c)),fs=require('fs'),path=require('path'),logDir='log';!fs[a21_0x3754ff(0x100)](logDir)&&fs[a21_0x3754ff(0x114)](logDir);const a21_0x4c95ee={};a21_0x4c95ee[a21_0x3754ff(0x116)]=a21_0x3754ff(0x11a);const a21_0xfcdc4e={};a21_0xfcdc4e[a21_0x3754ff(0x101)]=!![];const a21_0x4b8c85={};a21_0x4b8c85[a21_0x3754ff(0x10a)]=a21_0x3754ff(0x103),exports[a21_0x3754ff(0x115)]=new winston['createLogger']({'format':winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x117)](winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x118)](a21_0x4c95ee),winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x10f)](a21_0xfcdc4e),winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x112)](_0x483d0e=>_0x483d0e[a21_0x3754ff(0x118)]+a21_0x3754ff(0x108)+_0x483d0e[a21_0x3754ff(0x101)]+':\x20'+_0x483d0e[a21_0x3754ff(0x102)])),'transports':[new winston[(a21_0x3754ff(0x109))][(a21_0x3754ff(0x10d))](a21_0x4b8c85),new winston['transports'][(a21_0x3754ff(0x106))]({'filename':path['join'](logDir,a21_0x3754ff(0x104)),'level':a21_0x3754ff(0x110)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x3754ff(0x109))][(a21_0x3754ff(0x106))]({'filename':path['join'](logDir,'usage.log'),'level':a21_0x3754ff(0x110)})]};exports[a21_0x3754ff(0x10c)]=new winston[(a21_0x3754ff(0x105))](winstonFileLoggerParams);
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_0x16b141=a22_0x346b;function a22_0x346b(_0x56ee28,_0x4ffe99){const _0x50c4d4=a22_0x50c4();return a22_0x346b=function(_0x346b1d,_0x585f6d){_0x346b1d=_0x346b1d-0x1ef;let _0x1a7edc=_0x50c4d4[_0x346b1d];return _0x1a7edc;},a22_0x346b(_0x56ee28,_0x4ffe99);}(function(_0x4b6e29,_0x574f13){const _0x5a0c16=a22_0x346b,_0x1a4426=_0x4b6e29();while(!![]){try{const _0x51469f=-parseInt(_0x5a0c16(0x1fa))/0x1+-parseInt(_0x5a0c16(0x1f3))/0x2*(-parseInt(_0x5a0c16(0x1f7))/0x3)+-parseInt(_0x5a0c16(0x203))/0x4*(parseInt(_0x5a0c16(0x201))/0x5)+-parseInt(_0x5a0c16(0x1f4))/0x6*(-parseInt(_0x5a0c16(0x1f0))/0x7)+-parseInt(_0x5a0c16(0x1f1))/0x8*(-parseInt(_0x5a0c16(0x1fd))/0x9)+parseInt(_0x5a0c16(0x1ef))/0xa+parseInt(_0x5a0c16(0x1fc))/0xb*(-parseInt(_0x5a0c16(0x1fb))/0xc);if(_0x51469f===_0x574f13)break;else _0x1a4426['push'](_0x1a4426['shift']());}catch(_0x451dd1){_0x1a4426['push'](_0x1a4426['shift']());}}}(a22_0x50c4,0x8f138));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x16b141(0x202));process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a22_0x50c4(){const _0x1a9e5b=['6336012kmqjhR','usage','help','16005rSPEhZ','DVggD','root','14833QrNryb','36OWJIiz','4405566ZJSpZG','1080351QfyqsI','demandCommand','exports','epilogue','15550RTjUwt','./config/constants','316FoOcAP','yDEuo','317760GAQjRO','7VrfYqs','16oSUInI','commands','270PswirR'];a22_0x50c4=function(){return _0x1a9e5b;};return a22_0x50c4();}function run(_0x3b5a00){const _0x1ec38b=a22_0x16b141,_0x23a769={};_0x23a769['yDEuo']=_0x1ec38b(0x1f2),_0x23a769[_0x1ec38b(0x1f8)]=_0x1ec38b(0x1f6);const _0x514a8b=_0x23a769;_0x3b5a00[_0x1ec38b(0x1f5)](HELP_HEADER_MESSAGE[_0x1ec38b(0x1f9)])['commandDir'](_0x514a8b[_0x1ec38b(0x204)])[_0x1ec38b(0x1fe)]()[_0x1ec38b(0x1f6)](_0x514a8b['DVggD'])[_0x1ec38b(0x200)](HELP_FOOTER_MESSAGE);}module[a22_0x16b141(0x1ff)]=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": {