browserstack-node-sdk 1.32.4 → 1.32.6

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 (114) 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/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +58 -1
  36. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  37. package/src/bin/codeceptjs/command.js +1 -1
  38. package/src/bin/codeceptjs/helper.js +1 -1
  39. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  40. package/src/bin/cucumber-js/command.js +1 -1
  41. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  43. package/src/bin/cucumber-js/test.setup.js +1 -1
  44. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  45. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  46. package/src/bin/jest/command.js +1 -1
  47. package/src/bin/jest/customImplements/customCircus.js +1 -1
  48. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  49. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  50. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  51. package/src/bin/jest/jest.setup.js +1 -1
  52. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  53. package/src/bin/jest/test-observability/helper.js +1 -1
  54. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  55. package/src/bin/jest/test-observability/test-details.js +1 -1
  56. package/src/bin/jest/test_before.setup.js +1 -1
  57. package/src/bin/launcher/launcher.js +1 -1
  58. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  59. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  60. package/src/bin/mocha/command.js +1 -1
  61. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  62. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  63. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  64. package/src/bin/mocha/test.setup.js +1 -1
  65. package/src/bin/nightwatch/command.js +1 -1
  66. package/src/bin/playwright/accessibility-helper.js +1 -1
  67. package/src/bin/playwright/command.js +1 -1
  68. package/src/bin/playwright/globalSetup.js +1 -1
  69. package/src/bin/playwright/mock-process.js +1 -1
  70. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  71. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  72. package/src/bin/playwright/reporter/reporter.js +1 -1
  73. package/src/bin/playwright/reporter/test-details.js +1 -1
  74. package/src/bin/playwright/sessionDetails.js +1 -1
  75. package/src/bin/runner.js +1 -1
  76. package/src/bin/setup.js +1 -1
  77. package/src/bin/test-runner/index.js +1 -1
  78. package/src/bin/test-runner/runTest.js +1 -1
  79. package/src/bin/test-runner/testWorker.js +1 -1
  80. package/src/bin/utils/constants.js +1 -1
  81. package/src/bin/utils/log4jsAppender.js +1 -1
  82. package/src/bin/utils/logPatcher.js +1 -1
  83. package/src/bin/utils/logReportingAPI.js +1 -1
  84. package/src/bin/vanilla-js/command.js +1 -1
  85. package/src/browserStackSdk.js +1 -1
  86. package/src/helpers/BrowserStackSetup.js +1 -1
  87. package/src/helpers/accessibility-automation/constants.js +1 -1
  88. package/src/helpers/accessibility-automation/helper.js +1 -1
  89. package/src/helpers/accessibility-automation/scripts.js +1 -1
  90. package/src/helpers/ats/constants.js +1 -1
  91. package/src/helpers/ats/helper.js +1 -1
  92. package/src/helpers/capsMapping.js +1 -1
  93. package/src/helpers/globals.js +1 -1
  94. package/src/helpers/helper.js +1 -1
  95. package/src/helpers/logger.js +1 -1
  96. package/src/helpers/patchHelpers.js +1 -1
  97. package/src/helpers/percy/Percy.js +1 -1
  98. package/src/helpers/percy/PercyBinary.js +1 -1
  99. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  100. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  101. package/src/helpers/percy/PercySDK.js +1 -1
  102. package/src/helpers/percy/index.js +1 -1
  103. package/src/helpers/percy/utils.js +1 -1
  104. package/src/helpers/performance-tester.js +1 -1
  105. package/src/helpers/request-spy.js +1 -1
  106. package/src/helpers/setKeepAlive.js +1 -1
  107. package/src/helpers/test-observability/constants.js +1 -1
  108. package/src/helpers/test-observability/error-handler.js +1 -1
  109. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  110. package/src/helpers/test-observability/sessionHandler.js +1 -1
  111. package/src/helpers/test-observability/utils.js +1 -1
  112. package/src/helpers/w3cMapping.js +1 -1
  113. package/src/hubAllocationMethods.js +1 -1
  114. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x352b4e=a15_0x4e00;(function(_0x59d731,_0x46d8bf){const _0x4099f4=a15_0x4e00,_0x238162=_0x59d731();while(!![]){try{const _0x12e5b6=-parseInt(_0x4099f4(0x1ae))/0x1+parseInt(_0x4099f4(0x18a))/0x2+parseInt(_0x4099f4(0x170))/0x3*(parseInt(_0x4099f4(0x197))/0x4)+parseInt(_0x4099f4(0x16d))/0x5+parseInt(_0x4099f4(0x172))/0x6*(-parseInt(_0x4099f4(0x183))/0x7)+parseInt(_0x4099f4(0x1af))/0x8+parseInt(_0x4099f4(0x168))/0x9*(-parseInt(_0x4099f4(0x1b6))/0xa);if(_0x12e5b6===_0x46d8bf)break;else _0x238162['push'](_0x238162['shift']());}catch(_0x97490d){_0x238162['push'](_0x238162['shift']());}}}(a15_0x5eae,0xd4cf6));const fs=require('fs'),got=require(a15_0x352b4e(0x1ac)),{table}=require(a15_0x352b4e(0x194)),{v4:uuidv4}=require(a15_0x352b4e(0x19e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x352b4e(0x188)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x4e00(_0x1fed07,_0x1118f3){const _0x5eaef8=a15_0x5eae();return a15_0x4e00=function(_0x4e0083,_0xb63392){_0x4e0083=_0x4e0083-0x162;let _0x132664=_0x5eaef8[_0x4e0083];return _0x132664;},a15_0x4e00(_0x1fed07,_0x1118f3);}exports[a15_0x352b4e(0x17f)]=a15_0x352b4e(0x1a8),exports['desc']=a15_0x352b4e(0x163),exports[a15_0x352b4e(0x178)]=function(_0x34f6e2){const _0x5f528a=a15_0x352b4e,_0x4bb775={};_0x4bb775[_0x5f528a(0x189)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4bb775[_0x5f528a(0x1a1)]='boolean',_0x4bb775['jDqwK']=_0x5f528a(0x16f);const _0x652dae=_0x4bb775,_0x95f1bb={};_0x95f1bb[_0x5f528a(0x199)]=_0x652dae[_0x5f528a(0x189)],_0x95f1bb['type']=_0x652dae[_0x5f528a(0x1a1)];const _0x571d8c={};return _0x571d8c[_0x5f528a(0x1ad)]=_0x95f1bb,_0x34f6e2['usage'](HELP_HEADER_MESSAGE[_0x5f528a(0x1aa)][_0x5f528a(0x1b8)])[_0x5f528a(0x193)](HELP_FOOTER_MESSAGE)[_0x5f528a(0x1b0)](_0x571d8c)[_0x5f528a(0x16f)](_0x652dae[_0x5f528a(0x169)])[_0x5f528a(0x18d)];},exports[a15_0x352b4e(0x16c)]=async function(_0x1befd2){const _0x35c8a4=a15_0x352b4e,_0x16641c={'IoGNz':function(_0xb9e608){return _0xb9e608();},'hzJDg':function(_0x2ac4ee){return _0x2ac4ee();},'WiAsO':_0x35c8a4(0x16a),'HUMUY':function(_0x5dd7bf,_0x13d68e,_0x4633b7,_0x413446,_0x129d70,_0x1a90bd,_0x5a31b2){return _0x5dd7bf(_0x13d68e,_0x4633b7,_0x413446,_0x129d70,_0x1a90bd,_0x5a31b2);},'QYVzr':_0x35c8a4(0x177),'lnpsB':_0x35c8a4(0x162),'JUnzJ':function(_0x4fb81d){return _0x4fb81d();},'ZDgYC':_0x35c8a4(0x18b),'szwNX':function(_0x420a09,_0x4d4f09,_0xae3880){return _0x420a09(_0x4d4f09,_0xae3880);},'bMfTP':function(_0x4cbabc,_0x433346,_0x474f99){return _0x4cbabc(_0x433346,_0x474f99);},'NUkxO':function(_0x220937,_0x5024cc){return _0x220937!==_0x5024cc;},'kqECR':function(_0x498a14,_0x13c931){return _0x498a14!==_0x13c931;},'oVIUN':function(_0x536beb,_0x5cbbba){return _0x536beb===_0x5cbbba;},'tJAXX':'\x0aFound\x20the\x20following\x20grids:\x0a','GntDw':_0x35c8a4(0x184),'TQCfh':_0x35c8a4(0x185),'Opawg':_0x35c8a4(0x171),'OMJWv':'running','tsvKD':_0x35c8a4(0x165),'rzwtg':_0x35c8a4(0x19a),'niMFp':function(_0x244d30,_0x6470cd){return _0x244d30(_0x6470cd);},'kghUj':_0x35c8a4(0x173),'JYPRJ':_0x35c8a4(0x187),'pxYNa':function(_0x1bd792,_0xf8b61d,_0x1f7a1b,_0x1d8c78,_0xdbffa2,_0x425afc,_0x416073){return _0x1bd792(_0xf8b61d,_0x1f7a1b,_0x1d8c78,_0xdbffa2,_0x425afc,_0x416073);},'CqCWW':_0x35c8a4(0x1ab)};try{global_registry[_0x35c8a4(0x19c)]=_0x16641c[_0x35c8a4(0x1a3)](uuidv4);!fs[_0x35c8a4(0x198)](_0x16641c[_0x35c8a4(0x1a4)](getCredentialsPath))&&(console['error'](_0x16641c[_0x35c8a4(0x174)]),await _0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes['ERROR'],_0x16641c[_0x35c8a4(0x1b3)],null,_0x1befd2),process[_0x35c8a4(0x190)](0x1));const _0x45976b=JSON[_0x35c8a4(0x186)](fs['readFileSync'](_0x16641c[_0x35c8a4(0x1b7)](getCredentialsPath)));let _0x3fb54a='https://'+AG_API_URL+_0x35c8a4(0x17d);_0x1befd2[_0x35c8a4(0x195)]&&(_0x3fb54a=_0x35c8a4(0x191)+AG_API_URL+'/packages/cli/get-all-grids');const _0x21698d={'method':_0x16641c[_0x35c8a4(0x1a2)],'headers':_0x16641c[_0x35c8a4(0x16b)](getAuthHeader,_0x45976b[_0x35c8a4(0x1a0)][_0x35c8a4(0x1a9)],_0x45976b['Browserstack'][_0x35c8a4(0x167)])};global_registry['bstackUsername']=_0x45976b['Browserstack']['username'],global_registry[_0x35c8a4(0x1b4)]=_0x45976b[_0x35c8a4(0x1a0)][_0x35c8a4(0x167)],_0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes['INFO'],null,null,_0x1befd2);const _0x2242c7=await _0x16641c[_0x35c8a4(0x18c)](got,_0x3fb54a,_0x21698d);if(_0x16641c[_0x35c8a4(0x19b)](_0x2242c7,null)&&_0x16641c[_0x35c8a4(0x196)](_0x2242c7,undefined)&&_0x16641c[_0x35c8a4(0x17a)](_0x2242c7[_0x35c8a4(0x179)],0xc8)){const _0x2a98df=JSON['parse'](_0x2242c7['body']);console['log'](_0x16641c[_0x35c8a4(0x181)]);const _0x42654d=[];_0x42654d[_0x35c8a4(0x17c)]([_0x16641c[_0x35c8a4(0x176)],_0x16641c[_0x35c8a4(0x166)],_0x16641c['Opawg'],_0x16641c['OMJWv'],_0x16641c[_0x35c8a4(0x17b)],_0x16641c[_0x35c8a4(0x164)]]),_0x2a98df['forEach'](_0x37de8f=>{const _0x46b236=_0x35c8a4;_0x42654d[_0x46b236(0x17c)]([_0x37de8f['id'],_0x37de8f[_0x46b236(0x1a7)],_0x37de8f[_0x46b236(0x171)],_0x37de8f[_0x46b236(0x19f)],_0x37de8f[_0x46b236(0x165)],_0x37de8f[_0x46b236(0x1b1)]]);}),console['log'](_0x16641c[_0x35c8a4(0x16e)](table,_0x42654d)),process[_0x35c8a4(0x190)](0x0);}_0x16641c[_0x35c8a4(0x17a)](_0x2242c7[_0x35c8a4(0x179)],0x191)&&(console[_0x35c8a4(0x1b5)](_0x35c8a4(0x18e)),await _0x16641c['HUMUY'](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x180)],null,_0x1befd2),process[_0x35c8a4(0x190)](0x1)),console[_0x35c8a4(0x1b5)](_0x35c8a4(0x1a6)+JSON[_0x35c8a4(0x17e)](_0x2242c7)),await _0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x192)],_0x2242c7,_0x1befd2),process[_0x35c8a4(0x190)](0x1);}catch(_0xc80ed8){console[_0x35c8a4(0x1b5)](_0x35c8a4(0x19d)+_0xc80ed8['stack']),await _0x16641c[_0x35c8a4(0x1a5)](sendInstrumentationEvent,_0x1befd2,_0x16641c['QYVzr'],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x175)],_0xc80ed8,_0x1befd2),process[_0x35c8a4(0x190)](0x1);}};function a15_0x5eae(){const _0x1ace0a=['argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HUMUY','exit','https://','JYPRJ','epilogue','table','allGrids','kqECR','94292iBTUHd','existsSync','description','cluster-name','NUkxO','requestId','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','running','Browserstack','oafSV','ZDgYC','IoGNz','hzJDg','pxYNa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','name','grids','username','list','unknown-error','got','all-grids','420751IpOdtq','10005096ILYBQi','options','clusterName','ERROR','lnpsB','bstackAccesskey','error','9050TdqqBC','JUnzJ','grid','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','rzwtg','queued','TQCfh','password','5247hdqGCZ','jDqwK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','szwNX','handler','4996125qBdHRT','niMFp','help','3BhvfuG','status','8788482DBvlax','unauthorised','WiAsO','CqCWW','GntDw','list-grids-called','builder','statusCode','oVIUN','tsvKD','push','/packages/cli/get-grids','stringify','command','kghUj','tJAXX','QYVzr','7bJKXdQ','grid-id','grid-name','parse','server-error','../../utils/utilityMethods','zXjPA','2022696fmgple','GET','bMfTP'];a15_0x5eae=function(){return _0x1ace0a;};return a15_0x5eae();}
1
+ const a15_0x2b447f=a15_0x9b64;(function(_0x541f45,_0x572e6d){const _0x240e6b=a15_0x9b64,_0x33c3dc=_0x541f45();while(!![]){try{const _0x4be1f9=-parseInt(_0x240e6b(0x99))/0x1+parseInt(_0x240e6b(0xcb))/0x2*(-parseInt(_0x240e6b(0xbe))/0x3)+parseInt(_0x240e6b(0x8f))/0x4*(parseInt(_0x240e6b(0xc9))/0x5)+parseInt(_0x240e6b(0xa2))/0x6+parseInt(_0x240e6b(0xba))/0x7+parseInt(_0x240e6b(0x96))/0x8+-parseInt(_0x240e6b(0xa0))/0x9;if(_0x4be1f9===_0x572e6d)break;else _0x33c3dc['push'](_0x33c3dc['shift']());}catch(_0x1fafb9){_0x33c3dc['push'](_0x33c3dc['shift']());}}}(a15_0x24a0,0x2e662));const fs=require('fs'),got=require(a15_0x2b447f(0xd3)),{table}=require(a15_0x2b447f(0xd1)),{v4:uuidv4}=require(a15_0x2b447f(0xa1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2b447f(0x8c)),{getCredentialsPath,getAuthHeader}=require(a15_0x2b447f(0xa7)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x2b447f(0xb9)]=a15_0x2b447f(0x83),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x4375f5){const _0x24c0be=a15_0x2b447f,_0x3ebde7={};_0x3ebde7[_0x24c0be(0x9b)]=_0x24c0be(0xb6),_0x3ebde7[_0x24c0be(0xae)]=_0x24c0be(0x90),_0x3ebde7['NVvFI']=_0x24c0be(0xa3);const _0x4fa407=_0x3ebde7,_0x1ba7e7={};_0x1ba7e7[_0x24c0be(0xb5)]=_0x4fa407[_0x24c0be(0x9b)],_0x1ba7e7[_0x24c0be(0xb1)]=_0x4fa407[_0x24c0be(0xae)];const _0x429489={};return _0x429489['all-grids']=_0x1ba7e7,_0x4375f5[_0x24c0be(0xb3)](HELP_HEADER_MESSAGE[_0x24c0be(0x89)]['grid'])[_0x24c0be(0x86)](HELP_FOOTER_MESSAGE)[_0x24c0be(0x91)](_0x429489)[_0x24c0be(0xa3)](_0x4fa407[_0x24c0be(0x8d)])['argv'];},exports[a15_0x2b447f(0xcf)]=async function(_0x4cf069){const _0x534e88=a15_0x2b447f,_0x530b2c={'pCzZx':function(_0x523032){return _0x523032();},'BMjoa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QVnJY':function(_0x392c67,_0x2f6dd2,_0x1721c4,_0x68069,_0x1b4665,_0x25911e,_0xa2bd62){return _0x392c67(_0x2f6dd2,_0x1721c4,_0x68069,_0x1b4665,_0x25911e,_0xa2bd62);},'MsarM':'list-grids-called','EqzDx':_0x534e88(0xac),'YoXeB':function(_0x4ee88b){return _0x4ee88b();},'mfvww':'GET','uGJMi':function(_0x3b646f,_0x5f2719,_0x2be2a5){return _0x3b646f(_0x5f2719,_0x2be2a5);},'pPEpn':function(_0x5c6697,_0x31cb73,_0x3bb2f3){return _0x5c6697(_0x31cb73,_0x3bb2f3);},'PKlfB':function(_0x40405f,_0x154b86){return _0x40405f!==_0x154b86;},'aIVxg':function(_0x2b75a2,_0x158e39){return _0x2b75a2!==_0x158e39;},'ULrHu':function(_0x3ea2a1,_0x13b600){return _0x3ea2a1===_0x13b600;},'kZasI':_0x534e88(0x9e),'QwMLt':_0x534e88(0xbb),'FXWHq':_0x534e88(0x8e),'sgzgA':_0x534e88(0x88),'ahVBX':'running','XasNr':_0x534e88(0x87),'QbGqU':_0x534e88(0xd0),'RLwcP':function(_0x161453,_0x48ace3){return _0x161453(_0x48ace3);},'CHJwF':function(_0x3a1272,_0x1a1a3c){return _0x3a1272===_0x1a1a3c;},'kpvNx':function(_0x1c46c4,_0x43d3e1,_0x47ea27,_0x3396cf,_0x40d800,_0x375f88,_0x1c49d3){return _0x1c46c4(_0x43d3e1,_0x47ea27,_0x3396cf,_0x40d800,_0x375f88,_0x1c49d3);},'MXmfG':'unauthorised','EmOyi':_0x534e88(0xb2),'juZkI':function(_0x558b19,_0x1376e0,_0x1cad80,_0x25609,_0x1bea9d,_0x98ae1f,_0x2ae9d4){return _0x558b19(_0x1376e0,_0x1cad80,_0x25609,_0x1bea9d,_0x98ae1f,_0x2ae9d4);},'SEmYb':_0x534e88(0xc3)};try{global_registry[_0x534e88(0xbf)]=_0x530b2c[_0x534e88(0x85)](uuidv4);!fs[_0x534e88(0xbc)](_0x530b2c[_0x534e88(0x85)](getCredentialsPath))&&(console[_0x534e88(0x9d)](_0x530b2c[_0x534e88(0x95)]),await _0x530b2c[_0x534e88(0xc5)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes[_0x534e88(0xaa)],_0x530b2c[_0x534e88(0xbd)],null,_0x4cf069),process[_0x534e88(0x9a)](0x1));const _0x581be0=JSON[_0x534e88(0xc8)](fs[_0x534e88(0x9c)](_0x530b2c[_0x534e88(0xca)](getCredentialsPath)));let _0x2c09f4='https://'+AG_API_URL+_0x534e88(0xc6);_0x4cf069[_0x534e88(0xa9)]&&(_0x2c09f4=_0x534e88(0xb0)+AG_API_URL+'/packages/cli/get-all-grids');const _0x4cbb13={'method':_0x530b2c[_0x534e88(0xaf)],'headers':_0x530b2c[_0x534e88(0xb4)](getAuthHeader,_0x581be0['Browserstack'][_0x534e88(0x94)],_0x581be0[_0x534e88(0x93)][_0x534e88(0xc4)])};global_registry['bstackUsername']=_0x581be0[_0x534e88(0x93)][_0x534e88(0x94)],global_registry[_0x534e88(0xcc)]=_0x581be0[_0x534e88(0x93)]['password'],_0x530b2c[_0x534e88(0xc5)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes['INFO'],null,null,_0x4cf069);const _0x209302=await _0x530b2c[_0x534e88(0x97)](got,_0x2c09f4,_0x4cbb13);if(_0x530b2c['PKlfB'](_0x209302,null)&&_0x530b2c[_0x534e88(0xa4)](_0x209302,undefined)&&_0x530b2c[_0x534e88(0xb7)](_0x209302[_0x534e88(0xab)],0xc8)){const _0x58ec37=JSON['parse'](_0x209302['body']);console[_0x534e88(0xc1)](_0x530b2c['kZasI']);const _0x485aab=[];_0x485aab[_0x534e88(0x92)]([_0x530b2c[_0x534e88(0x8b)],_0x530b2c[_0x534e88(0xc7)],_0x530b2c['sgzgA'],_0x530b2c[_0x534e88(0xad)],_0x530b2c['XasNr'],_0x530b2c[_0x534e88(0xd5)]]),_0x58ec37['forEach'](_0x402601=>{const _0x2a768d=_0x534e88;_0x485aab['push']([_0x402601['id'],_0x402601[_0x2a768d(0x82)],_0x402601[_0x2a768d(0x88)],_0x402601[_0x2a768d(0x84)],_0x402601['queued'],_0x402601[_0x2a768d(0x98)]]);}),console['log'](_0x530b2c[_0x534e88(0xce)](table,_0x485aab)),process[_0x534e88(0x9a)](0x0);}_0x530b2c['CHJwF'](_0x209302[_0x534e88(0xab)],0x191)&&(console[_0x534e88(0x9d)](_0x534e88(0xcd)),await _0x530b2c[_0x534e88(0x9f)](sendInstrumentationEvent,_0x4cf069,_0x530b2c['MsarM'],messageTypes[_0x534e88(0xaa)],_0x530b2c[_0x534e88(0x8a)],null,_0x4cf069),process['exit'](0x1)),console[_0x534e88(0x9d)](_0x534e88(0xa6)+JSON[_0x534e88(0xa5)](_0x209302)),await _0x530b2c[_0x534e88(0x9f)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes[_0x534e88(0xaa)],_0x530b2c[_0x534e88(0xd2)],_0x209302,_0x4cf069),process['exit'](0x1);}catch(_0x210d9e){console[_0x534e88(0x9d)](_0x534e88(0xc2)+_0x210d9e[_0x534e88(0xb8)]),await _0x530b2c[_0x534e88(0xa8)](sendInstrumentationEvent,_0x4cf069,_0x530b2c[_0x534e88(0xd4)],messageTypes['ERROR'],_0x530b2c[_0x534e88(0xc0)],_0x210d9e,_0x4cf069),process[_0x534e88(0x9a)](0x1);}};function a15_0x9b64(_0x405607,_0x286423){const _0x24a0eb=a15_0x24a0();return a15_0x9b64=function(_0x9b647,_0x1b23f1){_0x9b647=_0x9b647-0x82;let _0x48c2b7=_0x24a0eb[_0x9b647];return _0x48c2b7;},a15_0x9b64(_0x405607,_0x286423);}function a15_0x24a0(){const _0x4934d9=['QbGqU','name','grids','running','pCzZx','epilogue','queued','status','list','MXmfG','QwMLt','../../config/constants','NVvFI','grid-name','4RZqjXd','boolean','options','push','Browserstack','username','BMjoa','2342720faIVji','pPEpn','clusterName','238787OaBGYX','exit','UdGFK','readFileSync','error','\x0aFound\x20the\x20following\x20grids:\x0a','kpvNx','3999060IIARlj','uuid','1905834DOVKLb','help','aIVxg','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/utilityMethods','juZkI','allGrids','ERROR','statusCode','init-not-called','ahVBX','HmYkF','mfvww','https://','type','server-error','usage','uGJMi','description','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','ULrHu','stack','command','1709666nBZrmQ','grid-id','existsSync','EqzDx','6nLtNlI','requestId','SEmYb','log','Failed\x20to\x20list\x20resources!\x20Error:\x20','unknown-error','password','QVnJY','/packages/cli/get-grids','FXWHq','parse','475510DFbvwb','YoXeB','76642fOsDvw','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RLwcP','handler','cluster-name','table','EmOyi','got','MsarM'];a15_0x24a0=function(){return _0x4934d9;};return a15_0x24a0();}
@@ -1 +1 @@
1
- function a16_0x5ea5(_0x11741d,_0x39ae84){const _0x1d05e1=a16_0x1d05();return a16_0x5ea5=function(_0x5ea54f,_0x828e29){_0x5ea54f=_0x5ea54f-0x6b;let _0x460edb=_0x1d05e1[_0x5ea54f];return _0x460edb;},a16_0x5ea5(_0x11741d,_0x39ae84);}const a16_0x5941db=a16_0x5ea5;(function(_0x52f632,_0x154702){const _0x2f4443=a16_0x5ea5,_0x38d7a6=_0x52f632();while(!![]){try{const _0x566ea5=-parseInt(_0x2f4443(0x6b))/0x1+-parseInt(_0x2f4443(0x81))/0x2*(parseInt(_0x2f4443(0x6d))/0x3)+parseInt(_0x2f4443(0x7d))/0x4+parseInt(_0x2f4443(0x71))/0x5*(parseInt(_0x2f4443(0x74))/0x6)+parseInt(_0x2f4443(0x7c))/0x7+-parseInt(_0x2f4443(0x75))/0x8*(parseInt(_0x2f4443(0x70))/0x9)+parseInt(_0x2f4443(0x77))/0xa*(-parseInt(_0x2f4443(0x79))/0xb);if(_0x566ea5===_0x154702)break;else _0x38d7a6['push'](_0x38d7a6['shift']());}catch(_0x4540a4){_0x38d7a6['push'](_0x38d7a6['shift']());}}}(a16_0x1d05,0x5b0ac));function a16_0x1d05(){const _0x40dd14=['builder','457512oEhCGd','usage','demandCommand','3153850GIniwb','1998412wyJPfv','AdoIU','strict','help','202HkCtDC','QoKmU','241365mqREpx','start_commands','15591KfRetL','command','Start\x20an\x20existing\x20Automation\x20grid.','2603169DePMLj','29570wUgEMk','../config/constants','commandDir','654MPnbGX','8IhXeLX','start','40hNvpuG'];a16_0x1d05=function(){return _0x40dd14;};return a16_0x1d05();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5941db(0x72));exports[a16_0x5941db(0x6e)]=a16_0x5941db(0x76),exports['desc']=a16_0x5941db(0x6f),exports[a16_0x5941db(0x78)]=function(_0x56c0ce){const _0x5c7adb=a16_0x5941db,_0x1a4a30={};_0x1a4a30[_0x5c7adb(0x7e)]=_0x5c7adb(0x6c),_0x1a4a30[_0x5c7adb(0x82)]=_0x5c7adb(0x80);const _0xc82ed0=_0x1a4a30;return _0x56c0ce[_0x5c7adb(0x7a)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5c7adb(0x73)](_0xc82ed0[_0x5c7adb(0x7e)])[_0x5c7adb(0x7b)]()['recommendCommands']()[_0x5c7adb(0x7f)]()[_0x5c7adb(0x80)](_0xc82ed0[_0x5c7adb(0x82)]);},exports['handler']=function(_0x299e1c){};
1
+ const a16_0x14c7e5=a16_0x36d5;function a16_0x1411(){const _0x276edd=['2249648EgPAdx','Start\x20an\x20existing\x20Automation\x20grid.','command','usage','6OrNcQM','desc','261vYmxEm','AgjCk','recommendCommands','demandCommand','builder','help','strict','719408JdSKFP','../config/constants','start','8891390PAyufs','2715426aUIFkU','commandDir','opJYW','9140598HbIlGn','start_commands','329172iTSRoU','1818122hFyrbR'];a16_0x1411=function(){return _0x276edd;};return a16_0x1411();}function a16_0x36d5(_0x2a477b,_0x4d2507){const _0x141126=a16_0x1411();return a16_0x36d5=function(_0x36d5b5,_0x18a550){_0x36d5b5=_0x36d5b5-0x179;let _0x11ede8=_0x141126[_0x36d5b5];return _0x11ede8;},a16_0x36d5(_0x2a477b,_0x4d2507);}(function(_0x5f0318,_0x14fed2){const _0x942ca=a16_0x36d5,_0x4c7be6=_0x5f0318();while(!![]){try{const _0xbf81f7=parseInt(_0x942ca(0x182))/0x1+parseInt(_0x942ca(0x187))/0x2*(-parseInt(_0x942ca(0x181))/0x3)+parseInt(_0x942ca(0x183))/0x4+-parseInt(_0x942ca(0x17b))/0x5+-parseInt(_0x942ca(0x17f))/0x6+-parseInt(_0x942ca(0x17c))/0x7+parseInt(_0x942ca(0x190))/0x8*(parseInt(_0x942ca(0x189))/0x9);if(_0xbf81f7===_0x14fed2)break;else _0x4c7be6['push'](_0x4c7be6['shift']());}catch(_0x14b77c){_0x4c7be6['push'](_0x4c7be6['shift']());}}}(a16_0x1411,0xecb73));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x14c7e5(0x179));exports[a16_0x14c7e5(0x185)]=a16_0x14c7e5(0x17a),exports[a16_0x14c7e5(0x188)]=a16_0x14c7e5(0x184),exports[a16_0x14c7e5(0x18d)]=function(_0x2decb3){const _0x2a79dd=a16_0x14c7e5,_0x3941cf={};_0x3941cf[_0x2a79dd(0x17e)]=_0x2a79dd(0x180),_0x3941cf['AgjCk']=_0x2a79dd(0x18e);const _0xa732c2=_0x3941cf;return _0x2decb3[_0x2a79dd(0x186)](HELP_HEADER_MESSAGE[_0x2a79dd(0x17a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2a79dd(0x17d)](_0xa732c2['opJYW'])[_0x2a79dd(0x18c)]()[_0x2a79dd(0x18b)]()[_0x2a79dd(0x18f)]()[_0x2a79dd(0x18e)](_0xa732c2[_0x2a79dd(0x18a)]);},exports['handler']=function(_0x2d00eb){};
@@ -1 +1 @@
1
- function a17_0x4b43(_0x4e3763,_0x3566ae){const _0x48476c=a17_0x4847();return a17_0x4b43=function(_0x4b43ed,_0x2402ad){_0x4b43ed=_0x4b43ed-0x157;let _0x5dfcf1=_0x48476c[_0x4b43ed];return _0x5dfcf1;},a17_0x4b43(_0x4e3763,_0x3566ae);}const a17_0x4b42ea=a17_0x4b43;function a17_0x4847(){const _0x320468=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','eeXSl','clusterRegion','JAjqu','clusterName','MOaHZ','479748pQYHCr','../../utils/instrumentationUtils','WhRFG','gridId','145vahbpI','grid-id','reconnecting-websocket','bstackUsername','configureIfNotConfigured','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ztDyb','12624DtDrlG','50GlDtPR','stringify','desc','1868988zYEGwz','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','command','type','TpGuI','GCkgZ','help','start','statusCode','WebSocket','options','handler','server-error','name','error','../../cloudproviders/utils','VZAKR','xvFps','niQFZ','99432UKxFjw','exit','hEGyO','region','body','invalid-grid-id','1701813ILCxOy','../../utils/webSocketUtils','XGTjI','2441889VMbkka','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Adding\x20Websocket\x20listeners','start-grid-called','readFileSync','831234mGkaLS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PBRWX','Browserstack','info','akpeM','hDTMX','password','addListeners','init-not-called','debug','Start\x20an\x20existing\x20Automation\x20grid.','parse','8DZOvSW','49DIiypg','ERROR','cloudProvider','string','user','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Grid\x20started','username','unauthorised','epilogue','ixkDw','<UsernamePlaceholder>','fEXkL'];a17_0x4847=function(){return _0x320468;};return a17_0x4847();}(function(_0x31bc6a,_0x38205a){const _0xe3d236=a17_0x4b43,_0x47435d=_0x31bc6a();while(!![]){try{const _0xc2badf=parseInt(_0xe3d236(0x188))/0x1+parseInt(_0xe3d236(0x163))/0x2+parseInt(_0xe3d236(0x180))/0x3+-parseInt(_0xe3d236(0x17a))/0x4*(-parseInt(_0xe3d236(0x15b))/0x5)+-parseInt(_0xe3d236(0x157))/0x6*(parseInt(_0xe3d236(0x196))/0x7)+-parseInt(_0xe3d236(0x195))/0x8*(parseInt(_0xe3d236(0x183))/0x9)+-parseInt(_0xe3d236(0x164))/0xa*(parseInt(_0xe3d236(0x167))/0xb);if(_0xc2badf===_0x38205a)break;else _0x47435d['push'](_0x47435d['shift']());}catch(_0x3c9051){_0x47435d['push'](_0x47435d['shift']());}}}(a17_0x4847,0x6cacc));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x4b42ea(0x15d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a17_0x4b42ea(0x158)),webSocketUtils=require(a17_0x4b42ea(0x181)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a17_0x4b42ea(0x176));exports[a17_0x4b42ea(0x169)]='grid',exports[a17_0x4b42ea(0x166)]=a17_0x4b42ea(0x193),exports['builder']=function(_0x2e2969){const _0x2ac76f=a17_0x4b42ea,_0x5af838={};_0x5af838[_0x2ac76f(0x18e)]=_0x2ac76f(0x184),_0x5af838['VZAKR']=_0x2ac76f(0x199),_0x5af838['ztDyb']=_0x2ac76f(0x16d);const _0x3824a1=_0x5af838,_0x25dd1d={};_0x25dd1d['description']=_0x3824a1[_0x2ac76f(0x18e)],_0x25dd1d[_0x2ac76f(0x16a)]=_0x3824a1[_0x2ac76f(0x177)];const _0x2cf2f9={};return _0x2cf2f9[_0x2ac76f(0x15c)]=_0x25dd1d,_0x2e2969['usage'](HELP_HEADER_MESSAGE[_0x2ac76f(0x16e)])[_0x2ac76f(0x1a0)](HELP_FOOTER_MESSAGE)[_0x2ac76f(0x171)](_0x2cf2f9)[_0x2ac76f(0x16d)](_0x3824a1[_0x2ac76f(0x162)])['argv'];},exports[a17_0x4b42ea(0x172)]=async function(_0x4306f7){const _0x78a84f=a17_0x4b42ea,_0x2922ad={'MOaHZ':_0x78a84f(0x19c),'akpeM':function(_0x4371d1){return _0x4371d1();},'ixkDw':_0x78a84f(0x161),'hEGyO':function(_0x5d3648,_0x1a8c80,_0x36fe90,_0x187dde,_0x254fce,_0x15fbb8,_0x437795){return _0x5d3648(_0x1a8c80,_0x36fe90,_0x187dde,_0x254fce,_0x15fbb8,_0x437795);},'PBRWX':_0x78a84f(0x186),'niQFZ':_0x78a84f(0x191),'fEXkL':_0x78a84f(0x1a2),'kGSoW':'<PasswordPlaceholder>','pzwfC':_0x78a84f(0x185),'XGTjI':function(_0x15a61b,_0x475efa,_0x220c32,_0x222420){return _0x15a61b(_0x475efa,_0x220c32,_0x222420);},'GCkgZ':function(_0x1e695c,_0x225aca,_0x1eb1af,_0x1d528d,_0x295a00,_0x4dba32){return _0x1e695c(_0x225aca,_0x1eb1af,_0x1d528d,_0x295a00,_0x4dba32);},'Eenqu':function(_0xf88697,_0x1fe36c){return _0xf88697(_0x1fe36c);},'jdtAY':function(_0x9cd5c,_0x156bab,_0x57e31f){return _0x9cd5c(_0x156bab,_0x57e31f);},'JAjqu':_0x78a84f(0x19d),'WhRFG':function(_0x3f2818,_0x13e012){return _0x3f2818===_0x13e012;},'xvFps':function(_0x557d47,_0x318893,_0x163c4b,_0x2590a4,_0x5662e4,_0x2c17c3,_0x4413cf){return _0x557d47(_0x318893,_0x163c4b,_0x2590a4,_0x5662e4,_0x2c17c3,_0x4413cf);},'eeXSl':_0x78a84f(0x19f),'rJEhB':function(_0x34e9bb,_0x1fd9f6){return _0x34e9bb===_0x1fd9f6;},'WJqOA':_0x78a84f(0x17f),'TpGuI':_0x78a84f(0x173)};let _0x58cc3b;try{!_0x4306f7[_0x78a84f(0x15a)]&&(logger[_0x78a84f(0x175)](_0x2922ad[_0x78a84f(0x1a9)]),process[_0x78a84f(0x17b)](0x1));!fs['existsSync'](_0x2922ad[_0x78a84f(0x18d)](getCredentialsPath))&&(logger[_0x78a84f(0x175)](_0x2922ad[_0x78a84f(0x1a1)]),await _0x2922ad['hEGyO'](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x197)],_0x2922ad[_0x78a84f(0x179)],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1));logger[_0x78a84f(0x18c)]('Starting\x20grid\x20'+_0x4306f7[_0x78a84f(0x15a)]),await _0x2922ad[_0x78a84f(0x17c)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x160)],null,null,_0x4306f7);const _0x151634=JSON[_0x78a84f(0x194)](fs[_0x78a84f(0x187)](_0x2922ad['akpeM'](getCredentialsPath)));global_registry[_0x78a84f(0x15e)]=_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x19e)],global_registry['bstackAccesskey']=_0x151634[_0x78a84f(0x18b)]['password'];const _0x5276a6=WS_ENDPOINT['replace'](_0x2922ad[_0x78a84f(0x1a3)],_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x19e)])['replace'](_0x2922ad['kGSoW'],_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x18f)]),_0xd5b106={};_0xd5b106[_0x78a84f(0x170)]=ws,_0xd5b106[_0x78a84f(0x19b)]=0x36ee80,_0x58cc3b=new ReconnectingWebSocket(_0x5276a6,[],_0xd5b106),logger[_0x78a84f(0x192)](_0x2922ad['pzwfC']),webSocketUtils[_0x78a84f(0x190)](_0x58cc3b,_0x4306f7[_0x78a84f(0x19a)],_0x4306f7[_0x78a84f(0x18f)]);const [_0x3d7cbb,_0xc54b58]=await _0x2922ad[_0x78a84f(0x182)](getGridDetails,_0x151634['Browserstack'][_0x78a84f(0x19e)],_0x151634['Browserstack'][_0x78a84f(0x18f)],_0x4306f7[_0x78a84f(0x15a)]);if(_0xc54b58){const _0x2d47a4=_0xc54b58[_0x78a84f(0x18c)];global_registry[_0x78a84f(0x198)]=_0x2d47a4[_0x78a84f(0x198)],global_registry[_0x78a84f(0x1a6)]=_0x2d47a4[_0x78a84f(0x17d)],global_registry[_0x78a84f(0x1a8)]=_0x2d47a4[_0x78a84f(0x1a8)];const _0x5833df=_0x2922ad[_0x78a84f(0x16c)](getCloudProviderObject,_0x2d47a4[_0x78a84f(0x198)],_0x2d47a4[_0x78a84f(0x1a8)],_0x2d47a4[_0x78a84f(0x174)],_0x58cc3b,webSocketUtils),_0x5d6ffb=_0x151634[_0x78a84f(0x198)]||{};await _0x5833df['fetchLocalCreds'](_0x5d6ffb),_0x5833df[_0x78a84f(0x15f)]();const [_0xcfed60,_0x2a19f5,_0x1a83c9,_0x48c57d,_0x17f590,_0x79cd8a]=await _0x2922ad['Eenqu'](createK8sClient,_0x5833df);await _0x2922ad['jdtAY'](scaleUpHubDeployment,_0x2a19f5,_0x2d47a4['name']),logger['info'](_0x2922ad[_0x78a84f(0x1a7)]),process['exit'](0x0);}_0x2922ad[_0x78a84f(0x159)](_0x3d7cbb[_0x78a84f(0x16f)],0x191)&&(logger[_0x78a84f(0x175)](_0x78a84f(0x1a4)),await _0x2922ad[_0x78a84f(0x178)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x197)],_0x2922ad[_0x78a84f(0x1a5)],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1)),_0x2922ad['rJEhB'](_0x3d7cbb[_0x78a84f(0x16f)],0x190)&&(logger[_0x78a84f(0x175)](JSON[_0x78a84f(0x194)](_0x3d7cbb[_0x78a84f(0x17e)])['message']),await _0x2922ad['xvFps'](sendInstrumentationEvent,_0x4306f7,_0x2922ad['PBRWX'],messageTypes['ERROR'],_0x2922ad['WJqOA'],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1)),logger[_0x78a84f(0x175)](_0x78a84f(0x189)+JSON[_0x78a84f(0x165)](_0x3d7cbb)),await _0x2922ad[_0x78a84f(0x17c)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes['ERROR'],_0x2922ad[_0x78a84f(0x16b)],_0x3d7cbb,_0x4306f7),process['exit'](0x1);}catch(_0x202fe9){const _0x16d26d=_0x78a84f(0x168)+_0x202fe9+'\x20\x0a'+JSON[_0x78a84f(0x165)](_0x202fe9['stack'])+'\x20';logger[_0x78a84f(0x175)](_0x16d26d),process[_0x78a84f(0x17b)](0x1);}};
1
+ const a17_0x1b2ed3=a17_0x4ac4;(function(_0x1ffe63,_0x35367e){const _0x5a1391=a17_0x4ac4,_0x54b135=_0x1ffe63();while(!![]){try{const _0x4c76a6=parseInt(_0x5a1391(0x79))/0x1+parseInt(_0x5a1391(0xaa))/0x2+-parseInt(_0x5a1391(0xa0))/0x3+parseInt(_0x5a1391(0x82))/0x4*(parseInt(_0x5a1391(0x95))/0x5)+-parseInt(_0x5a1391(0x94))/0x6*(parseInt(_0x5a1391(0x89))/0x7)+-parseInt(_0x5a1391(0xa8))/0x8+parseInt(_0x5a1391(0x97))/0x9;if(_0x4c76a6===_0x35367e)break;else _0x54b135['push'](_0x54b135['shift']());}catch(_0x320156){_0x54b135['push'](_0x54b135['shift']());}}}(a17_0x8b2d,0x75bfa));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x1b2ed3(0x9a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x1b2ed3(0x93)),{logger}=require(a17_0x1b2ed3(0x8b)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a17_0x1b2ed3(0xc0)),{sendInstrumentationEvent}=require(a17_0x1b2ed3(0xb8)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x1b2ed3(0xc7)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a17_0x4ac4(_0x30b070,_0x36911b){const _0x8b2d=a17_0x8b2d();return a17_0x4ac4=function(_0x4ac41e,_0x553109){_0x4ac41e=_0x4ac41e-0x79;let _0x1cba16=_0x8b2d[_0x4ac41e];return _0x1cba16;},a17_0x4ac4(_0x30b070,_0x36911b);}exports['command']='grid',exports[a17_0x1b2ed3(0xbf)]=a17_0x1b2ed3(0xa9),exports['builder']=function(_0x3ffb49){const _0x38b047=a17_0x1b2ed3,_0x41908c={};_0x41908c[_0x38b047(0x7a)]=_0x38b047(0xab),_0x41908c[_0x38b047(0xc2)]=_0x38b047(0x87),_0x41908c['JczGq']=_0x38b047(0x83);const _0x3d3799=_0x41908c,_0x375658={};_0x375658['description']=_0x3d3799[_0x38b047(0x7a)],_0x375658[_0x38b047(0xc8)]=_0x3d3799[_0x38b047(0xc2)];const _0x4f65dd={};return _0x4f65dd[_0x38b047(0x92)]=_0x375658,_0x3ffb49['usage'](HELP_HEADER_MESSAGE['start'])[_0x38b047(0xc5)](HELP_FOOTER_MESSAGE)[_0x38b047(0x9e)](_0x4f65dd)[_0x38b047(0x83)](_0x3d3799[_0x38b047(0x7b)])[_0x38b047(0xcb)];},exports[a17_0x1b2ed3(0xc6)]=async function(_0xa0f61c){const _0x106a5c=a17_0x1b2ed3,_0x4f2d63={'IoBGd':_0x106a5c(0xb7),'rVFTg':function(_0x165f1e){return _0x165f1e();},'nidke':_0x106a5c(0xaf),'YWnRh':function(_0x4f067b,_0x4fb027,_0x233ba0,_0x5d3acb,_0x271b47,_0x3e2b45,_0x11db0e){return _0x4f067b(_0x4fb027,_0x233ba0,_0x5d3acb,_0x271b47,_0x3e2b45,_0x11db0e);},'Cujpl':_0x106a5c(0xb4),'sDLHL':_0x106a5c(0xba),'HwdKq':'<UsernamePlaceholder>','xMYBr':_0x106a5c(0xa3),'xqTuA':_0x106a5c(0x96),'weXtD':function(_0x16d87a,_0x200a44,_0x556671,_0x5285c9){return _0x16d87a(_0x200a44,_0x556671,_0x5285c9);},'ySGcr':function(_0xb6b489,_0x4168fa,_0x509cc7,_0x5e206b,_0xdcc6dd,_0x208144){return _0xb6b489(_0x4168fa,_0x509cc7,_0x5e206b,_0xdcc6dd,_0x208144);},'hArqE':function(_0x3c7471,_0x2f99a2){return _0x3c7471(_0x2f99a2);},'WRJqw':function(_0x2ca5a9,_0x3d56b3,_0x3578f9){return _0x2ca5a9(_0x3d56b3,_0x3578f9);},'NFgpN':_0x106a5c(0xbe),'DZFfA':function(_0x227609,_0x15717f){return _0x227609===_0x15717f;},'vzRyQ':function(_0x258b04,_0x322c6e,_0x29c328,_0xdfc4ef,_0x22fadd,_0x473a59,_0x412900){return _0x258b04(_0x322c6e,_0x29c328,_0xdfc4ef,_0x22fadd,_0x473a59,_0x412900);},'gAPIg':_0x106a5c(0x7c),'OgbTo':_0x106a5c(0xbb),'khCoB':function(_0xbe324c,_0x51cb22,_0x53d111,_0x14e253,_0x5ceeda,_0x38e1bb,_0x4aeef6){return _0xbe324c(_0x51cb22,_0x53d111,_0x14e253,_0x5ceeda,_0x38e1bb,_0x4aeef6);},'hSdGX':_0x106a5c(0x9b)};let _0x1e22d6;try{!_0xa0f61c['gridId']&&(logger[_0x106a5c(0xca)](_0x4f2d63[_0x106a5c(0xac)]),process['exit'](0x1));!fs[_0x106a5c(0x99)](_0x4f2d63[_0x106a5c(0x8f)](getCredentialsPath))&&(logger[_0x106a5c(0xca)](_0x4f2d63[_0x106a5c(0x84)]),await _0x4f2d63['YWnRh'](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0x7e)],_0x4f2d63[_0x106a5c(0xbd)],null,_0xa0f61c),process['exit'](0x1));logger[_0x106a5c(0x8e)]('Starting\x20grid\x20'+_0xa0f61c['gridId']),await _0x4f2d63[_0x106a5c(0xc4)](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0xb2)],null,null,_0xa0f61c);const _0x1c6aaa=JSON[_0x106a5c(0x8d)](fs[_0x106a5c(0xb5)](_0x4f2d63[_0x106a5c(0x8f)](getCredentialsPath)));global_registry['bstackUsername']=_0x1c6aaa[_0x106a5c(0xa7)][_0x106a5c(0x9c)],global_registry[_0x106a5c(0xa6)]=_0x1c6aaa['Browserstack'][_0x106a5c(0x81)];const _0x2bcc6d=WS_ENDPOINT[_0x106a5c(0x80)](_0x4f2d63[_0x106a5c(0xb0)],_0x1c6aaa['Browserstack'][_0x106a5c(0x9c)])[_0x106a5c(0x80)](_0x4f2d63[_0x106a5c(0x98)],_0x1c6aaa[_0x106a5c(0xa7)][_0x106a5c(0x81)]),_0x2c62d5={};_0x2c62d5['WebSocket']=ws,_0x2c62d5[_0x106a5c(0x7f)]=0x36ee80,_0x1e22d6=new ReconnectingWebSocket(_0x2bcc6d,[],_0x2c62d5),logger[_0x106a5c(0xa2)](_0x4f2d63[_0x106a5c(0xc9)]),webSocketUtils['addListeners'](_0x1e22d6,_0xa0f61c[_0x106a5c(0x85)],_0xa0f61c[_0x106a5c(0x81)]);const [_0x4536c4,_0x556935]=await _0x4f2d63[_0x106a5c(0xb9)](getGridDetails,_0x1c6aaa[_0x106a5c(0xa7)]['username'],_0x1c6aaa[_0x106a5c(0xa7)][_0x106a5c(0x81)],_0xa0f61c[_0x106a5c(0xad)]);if(_0x556935){const _0x1d1ddb=_0x556935[_0x106a5c(0x8e)];global_registry[_0x106a5c(0xa4)]=_0x1d1ddb['cloudProvider'],global_registry[_0x106a5c(0x9d)]=_0x1d1ddb[_0x106a5c(0xa1)],global_registry[_0x106a5c(0x8c)]=_0x1d1ddb['clusterName'];const _0x51288d=_0x4f2d63['ySGcr'](getCloudProviderObject,_0x1d1ddb[_0x106a5c(0xa4)],_0x1d1ddb[_0x106a5c(0x8c)],_0x1d1ddb[_0x106a5c(0xcd)],_0x1e22d6,webSocketUtils),_0x428cfc=_0x1c6aaa[_0x106a5c(0xa4)]||{};await _0x51288d[_0x106a5c(0x8a)](_0x428cfc),_0x51288d[_0x106a5c(0xb6)]();const [_0x224356,_0x24d614,_0x3a65d0,_0x5d0f3c,_0x44ba1e,_0x4a50e7]=await _0x4f2d63[_0x106a5c(0xbc)](createK8sClient,_0x51288d);await _0x4f2d63[_0x106a5c(0xc3)](scaleUpHubDeployment,_0x24d614,_0x1d1ddb['name']),logger['info'](_0x4f2d63[_0x106a5c(0x90)]),process[_0x106a5c(0xc1)](0x0);}_0x4f2d63['DZFfA'](_0x4536c4['statusCode'],0x191)&&(logger[_0x106a5c(0xca)](_0x106a5c(0x9f)),await _0x4f2d63[_0x106a5c(0xa5)](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0x7e)],_0x4f2d63['gAPIg'],null,_0xa0f61c),process[_0x106a5c(0xc1)](0x1)),_0x4f2d63['DZFfA'](_0x4536c4[_0x106a5c(0x88)],0x190)&&(logger[_0x106a5c(0xca)](JSON[_0x106a5c(0x8d)](_0x4536c4[_0x106a5c(0xcc)])['message']),await _0x4f2d63['YWnRh'](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63[_0x106a5c(0x7d)],messageTypes[_0x106a5c(0x7e)],_0x4f2d63['OgbTo'],null,_0xa0f61c),process[_0x106a5c(0xc1)](0x1)),logger[_0x106a5c(0xca)](_0x106a5c(0xb3)+JSON[_0x106a5c(0x86)](_0x4536c4)),await _0x4f2d63[_0x106a5c(0x91)](sendInstrumentationEvent,_0xa0f61c,_0x4f2d63['Cujpl'],messageTypes[_0x106a5c(0x7e)],_0x4f2d63[_0x106a5c(0xb1)],_0x4536c4,_0xa0f61c),process[_0x106a5c(0xc1)](0x1);}catch(_0x43ec63){const _0x17371e=_0x106a5c(0xae)+_0x43ec63+'\x20\x0a'+JSON[_0x106a5c(0x86)](_0x43ec63['stack'])+'\x20';logger[_0x106a5c(0xca)](_0x17371e),process['exit'](0x1);}};function a17_0x8b2d(){const _0x19242a=['stringify','string','statusCode','7PwJxYb','fetchLocalCreds','../../config/logger','clusterName','parse','info','rVFTg','NFgpN','khCoB','grid-id','../../config/constants','3844422oNPulR','2147515eUSnMx','Adding\x20Websocket\x20listeners','7131879imfIWF','xMYBr','existsSync','reconnecting-websocket','server-error','username','clusterRegion','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2682513xHvaxS','region','debug','<PasswordPlaceholder>','cloudProvider','vzRyQ','bstackAccesskey','Browserstack','6531088lhIKte','Start\x20an\x20existing\x20Automation\x20grid.','1055236vGaPbc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','IoBGd','gridId','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HwdKq','hSdGX','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','start-grid-called','readFileSync','configureIfNotConfigured','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','../../utils/instrumentationUtils','weXtD','init-not-called','invalid-grid-id','hArqE','sDLHL','Grid\x20started','desc','../../utils/gridComponents','exit','sUESR','WRJqw','YWnRh','epilogue','handler','../../utils/createk8sClient','type','xqTuA','error','argv','body','name','654537VHwwkW','cPswG','JczGq','unauthorised','Cujpl','ERROR','connectionTimeout','replace','password','8pvvckQ','help','nidke','user'];a17_0x8b2d=function(){return _0x19242a;};return a17_0x8b2d();}
@@ -1 +1 @@
1
- const a18_0x494944=a18_0x104e;(function(_0x345297,_0x4e1094){const _0x4de0b8=a18_0x104e,_0x1a6c4c=_0x345297();while(!![]){try{const _0x54c850=-parseInt(_0x4de0b8(0xfd))/0x1*(-parseInt(_0x4de0b8(0x103))/0x2)+-parseInt(_0x4de0b8(0x107))/0x3*(-parseInt(_0x4de0b8(0xfe))/0x4)+parseInt(_0x4de0b8(0xf9))/0x5+parseInt(_0x4de0b8(0x104))/0x6*(parseInt(_0x4de0b8(0xfc))/0x7)+-parseInt(_0x4de0b8(0xfb))/0x8+-parseInt(_0x4de0b8(0x10b))/0x9+parseInt(_0x4de0b8(0x102))/0xa*(-parseInt(_0x4de0b8(0x110))/0xb);if(_0x54c850===_0x4e1094)break;else _0x1a6c4c['push'](_0x1a6c4c['shift']());}catch(_0xbe979c){_0x1a6c4c['push'](_0x1a6c4c['shift']());}}}(a18_0xca46,0xb85cf));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x494944(0x106));function a18_0x104e(_0x23935a,_0x1854a6){const _0xca4669=a18_0xca46();return a18_0x104e=function(_0x104e38,_0x55b5b9){_0x104e38=_0x104e38-0xf7;let _0x2a67e1=_0xca4669[_0x104e38];return _0x2a67e1;},a18_0x104e(_0x23935a,_0x1854a6);}function a18_0xca46(){const _0x36b5c3=['23487BbOAsD','epilogue','WuGaA','commandDir','2977641pofaVC','recommendCommands','handler','demandCommand','JsDDX','278069NkTGIu','Stop\x20a\x20running\x20Automation\x20grid.','stop','6397145EVnIPK','help','6739488qOVsVn','8713649TqizMt','124719HEcPwP','356biFWmJ','usage','builder','stop_commands','610YPHHFA','4jYLwnO','6NaQEOX','command','../config/constants'];a18_0xca46=function(){return _0x36b5c3;};return a18_0xca46();}exports[a18_0x494944(0x105)]=a18_0x494944(0xf8),exports['desc']=a18_0x494944(0xf7),exports[a18_0x494944(0x100)]=function(_0x38f914){const _0x367b5b=a18_0x494944,_0x575b6f={};_0x575b6f[_0x367b5b(0x10f)]=_0x367b5b(0x101),_0x575b6f[_0x367b5b(0x109)]='help';const _0x52b0cb=_0x575b6f;return _0x38f914[_0x367b5b(0xff)](HELP_HEADER_MESSAGE['stop'])[_0x367b5b(0x108)](HELP_FOOTER_MESSAGE)[_0x367b5b(0x10a)](_0x52b0cb[_0x367b5b(0x10f)])[_0x367b5b(0x10e)]()[_0x367b5b(0x10c)]()['strict']()[_0x367b5b(0xfa)](_0x52b0cb[_0x367b5b(0x109)]);},exports[a18_0x494944(0x10d)]=function(_0xb4648b){};
1
+ const a18_0x3e5da5=a18_0x12ac;function a18_0x12ac(_0xab5372,_0xa3fbdd){const _0x3870b5=a18_0x3870();return a18_0x12ac=function(_0x12ac9a,_0x36cd6a){_0x12ac9a=_0x12ac9a-0x117;let _0x5bb6ee=_0x3870b5[_0x12ac9a];return _0x5bb6ee;},a18_0x12ac(_0xab5372,_0xa3fbdd);}function a18_0x3870(){const _0x437cee=['stop_commands','Stop\x20a\x20running\x20Automation\x20grid.','27664PYjtIM','../config/constants','5018734hidIfY','56619dHDNXO','12VZhUwT','pJIUc','handler','99866HOXjMO','1175548ggnKbf','30217xksnvP','commandDir','command','11030RHnXZT','builder','246pHGKkE','stop','desc','1208tlDSBf','demandCommand','epilogue','recommendCommands','2096555oozrEh','strict','help'];a18_0x3870=function(){return _0x437cee;};return a18_0x3870();}(function(_0x3835d0,_0x18059f){const _0x3e2cc6=a18_0x12ac,_0x19c47d=_0x3835d0();while(!![]){try{const _0x590f7b=-parseInt(_0x3e2cc6(0x11a))/0x1+parseInt(_0x3e2cc6(0x11b))/0x2+parseInt(_0x3e2cc6(0x121))/0x3*(parseInt(_0x3e2cc6(0x12d))/0x4)+-parseInt(_0x3e2cc6(0x128))/0x5*(-parseInt(_0x3e2cc6(0x117))/0x6)+parseInt(_0x3e2cc6(0x12f))/0x7+parseInt(_0x3e2cc6(0x124))/0x8*(parseInt(_0x3e2cc6(0x130))/0x9)+parseInt(_0x3e2cc6(0x11f))/0xa*(-parseInt(_0x3e2cc6(0x11c))/0xb);if(_0x590f7b===_0x18059f)break;else _0x19c47d['push'](_0x19c47d['shift']());}catch(_0x537dd9){_0x19c47d['push'](_0x19c47d['shift']());}}}(a18_0x3870,0x818ac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3e5da5(0x12e));exports[a18_0x3e5da5(0x11e)]=a18_0x3e5da5(0x122),exports[a18_0x3e5da5(0x123)]=a18_0x3e5da5(0x12c),exports[a18_0x3e5da5(0x120)]=function(_0xae2c5c){const _0x3b6985=a18_0x3e5da5,_0x8e4b7d={};_0x8e4b7d['hfMuw']=_0x3b6985(0x12b),_0x8e4b7d[_0x3b6985(0x118)]=_0x3b6985(0x12a);const _0x1dc702=_0x8e4b7d;return _0xae2c5c['usage'](HELP_HEADER_MESSAGE[_0x3b6985(0x122)])[_0x3b6985(0x126)](HELP_FOOTER_MESSAGE)[_0x3b6985(0x11d)](_0x1dc702['hfMuw'])[_0x3b6985(0x125)]()[_0x3b6985(0x127)]()[_0x3b6985(0x129)]()['help'](_0x1dc702[_0x3b6985(0x118)]);},exports[a18_0x3e5da5(0x119)]=function(_0x22d3f4){};
@@ -1 +1 @@
1
- const a19_0x1bea43=a19_0x2915;function a19_0x2915(_0x26f249,_0x2d6364){const _0x340049=a19_0x3400();return a19_0x2915=function(_0x291527,_0x2cfd5c){_0x291527=_0x291527-0x69;let _0x15f1b2=_0x340049[_0x291527];return _0x15f1b2;},a19_0x2915(_0x26f249,_0x2d6364);}(function(_0x4cabd9,_0x2171e4){const _0x2fe3d4=a19_0x2915,_0x236897=_0x4cabd9();while(!![]){try{const _0x29537f=-parseInt(_0x2fe3d4(0xc0))/0x1*(-parseInt(_0x2fe3d4(0x8e))/0x2)+parseInt(_0x2fe3d4(0xa0))/0x3+-parseInt(_0x2fe3d4(0x6b))/0x4+-parseInt(_0x2fe3d4(0xb1))/0x5*(-parseInt(_0x2fe3d4(0x69))/0x6)+-parseInt(_0x2fe3d4(0xae))/0x7*(-parseInt(_0x2fe3d4(0xbb))/0x8)+parseInt(_0x2fe3d4(0xab))/0x9*(parseInt(_0x2fe3d4(0xba))/0xa)+-parseInt(_0x2fe3d4(0xa9))/0xb;if(_0x29537f===_0x2171e4)break;else _0x236897['push'](_0x236897['shift']());}catch(_0xc43aa3){_0x236897['push'](_0x236897['shift']());}}}(a19_0x3400,0x8bddb));function a19_0x3400(){const _0x54d76f=['ESBIu','paCLD','clusterName','configureIfNotConfigured','type','czeNZ','TVaum','../../utils/instrumentationUtils','../../utils/webSocketUtils','../../utils/gridComponents','help','name','RfHTd','string','parse','POaeX','username','<PasswordPlaceholder>','GWOLX','ZqVfC','1193678flXTkf','addListeners','builder','invalid-grid-id','NOZGP','bstackAccesskey','Stop\x20a\x20running\x20Automation\x20grid.','Stopping\x20grid\x20','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','replace','exit','message','handler','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','488988GRQlyS','oVhVP','stop-grid-called','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','EqKzf','command','oZDWw','xYBtK','usage','28466207ycCzRw','info','39555RSJvZC','stringify','stop','98RJRCgV','csbyT','description','14365DBXzEK','epilogue','body','init-not-called','debug','ERROR','vvPdI','server-error','vWtEj','2110qkMnuh','586424KnMeVS','tNsyY','readFileSync','gYGen','../../utils/createk8sClient','1yxFLth','xgpuQ','Browserstack','region','PTSiw','cloudProvider','JkYdW','INFO','1362tYXWBb','argv','819460ffyEJe','options','grid-id','clusterRegion','iShyt','Adding\x20Websocket\x20listeners','reconnecting-websocket','gridId','error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','user','UkAvI','statusCode','UAkNx','wDCRG'];a19_0x3400=function(){return _0x54d76f;};return a19_0x3400();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1bea43(0x71)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x1bea43(0x9d)),{getCredentialsPath,getGridDetails}=require(a19_0x1bea43(0x98)),{scaleDownHubDeployment}=require(a19_0x1bea43(0x83)),{sendInstrumentationEvent}=require(a19_0x1bea43(0x81)),webSocketUtils=require(a19_0x1bea43(0x82)),{createK8sClient}=require(a19_0x1bea43(0xbf)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x1bea43(0xa5)]='grid',exports['desc']=a19_0x1bea43(0x94),exports[a19_0x1bea43(0x90)]=function(_0x320222){const _0x7abf27=a19_0x1bea43,_0xb2b9ce={};_0xb2b9ce[_0x7abf27(0x6f)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0xb2b9ce[_0x7abf27(0x7a)]=_0x7abf27(0x87),_0xb2b9ce[_0x7abf27(0xbc)]=_0x7abf27(0x84);const _0x350a35=_0xb2b9ce,_0x1df4c7={};_0x1df4c7[_0x7abf27(0xb0)]=_0x350a35[_0x7abf27(0x6f)],_0x1df4c7[_0x7abf27(0x7e)]=_0x350a35[_0x7abf27(0x7a)];const _0xc72b0e={};return _0xc72b0e[_0x7abf27(0x6d)]=_0x1df4c7,_0x320222[_0x7abf27(0xa8)](HELP_HEADER_MESSAGE[_0x7abf27(0xad)])[_0x7abf27(0xb2)](HELP_FOOTER_MESSAGE)[_0x7abf27(0x6c)](_0xc72b0e)[_0x7abf27(0x84)](_0x350a35[_0x7abf27(0xbc)])[_0x7abf27(0x6a)];},exports[a19_0x1bea43(0x9c)]=async function(_0x5860e4){const _0x4df33a=a19_0x1bea43,_0x53b755={'UAkNx':_0x4df33a(0x74),'PTSiw':function(_0x57d532){return _0x57d532();},'xYBtK':_0x4df33a(0x97),'wDCRG':function(_0x3ff215,_0x36c558,_0x26efd8,_0xd98572,_0x43a40c,_0x422f4f,_0x57b203){return _0x3ff215(_0x36c558,_0x26efd8,_0xd98572,_0x43a40c,_0x422f4f,_0x57b203);},'gYGen':_0x4df33a(0xa2),'paCLD':_0x4df33a(0xb4),'vvPdI':function(_0x3b8e5e,_0x3e095,_0x2e65e2,_0x3d3118,_0x598ab0,_0x31280d,_0x3618ea){return _0x3b8e5e(_0x3e095,_0x2e65e2,_0x3d3118,_0x598ab0,_0x31280d,_0x3618ea);},'RfHTd':'<UsernamePlaceholder>','oVhVP':_0x4df33a(0x8b),'czeNZ':_0x4df33a(0x70),'xgpuQ':function(_0x2624c2,_0x35dbd,_0x2db13c,_0x5271f3){return _0x2624c2(_0x35dbd,_0x2db13c,_0x5271f3);},'NOZGP':function(_0x1c2be8,_0x21d2b4,_0x3f43c8,_0x3e7de0,_0x9faf1,_0x570435){return _0x1c2be8(_0x21d2b4,_0x3f43c8,_0x3e7de0,_0x9faf1,_0x570435);},'UkAvI':function(_0x46c424,_0xc25bdf){return _0x46c424(_0xc25bdf);},'POaeX':function(_0x216807,_0x13b981,_0x2cbfbd){return _0x216807(_0x13b981,_0x2cbfbd);},'TVaum':'Grid\x20stoppped.','EqKzf':function(_0x42faa3,_0x20f4d5){return _0x42faa3===_0x20f4d5;},'vWtEj':function(_0xe8eda6,_0x9b995b,_0x2bd36d,_0x18d276,_0x553cf6,_0x1aa07e,_0x43ed44){return _0xe8eda6(_0x9b995b,_0x2bd36d,_0x18d276,_0x553cf6,_0x1aa07e,_0x43ed44);},'csbyT':'unauthorised','ZqVfC':function(_0x3c488b,_0x4fb6ba){return _0x3c488b===_0x4fb6ba;},'oZDWw':_0x4df33a(0x91),'GWOLX':function(_0x378039,_0x4555a1,_0x4139e9,_0x202592,_0x26906b,_0x205ad,_0x85ee2d){return _0x378039(_0x4555a1,_0x4139e9,_0x202592,_0x26906b,_0x205ad,_0x85ee2d);},'JkYdW':_0x4df33a(0xb8)};let _0x15407b;try{!_0x5860e4['gridId']&&(logger[_0x4df33a(0x73)](_0x53b755[_0x4df33a(0x78)]),process[_0x4df33a(0x9a)](0x1));!fs['existsSync'](_0x53b755[_0x4df33a(0xc4)](getCredentialsPath))&&(logger[_0x4df33a(0x73)](_0x53b755[_0x4df33a(0xa7)]),await _0x53b755[_0x4df33a(0x79)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0x7b)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1));logger['info'](_0x4df33a(0x95)+_0x5860e4[_0x4df33a(0x72)]),await _0x53b755[_0x4df33a(0xb7)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xc7)],null,null,_0x5860e4);const _0x292171=JSON[_0x4df33a(0x88)](fs[_0x4df33a(0xbd)](_0x53b755[_0x4df33a(0xc4)](getCredentialsPath)));global_registry['bstackUsername']=_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x8a)],global_registry[_0x4df33a(0x93)]=_0x292171[_0x4df33a(0xc2)]['password'];const _0x53b3af=WS_ENDPOINT[_0x4df33a(0x99)](_0x53b755[_0x4df33a(0x86)],_0x292171['Browserstack'][_0x4df33a(0x8a)])[_0x4df33a(0x99)](_0x53b755[_0x4df33a(0xa1)],_0x292171['Browserstack']['password']),_0x46f4b8={};_0x46f4b8['WebSocket']=ws,_0x46f4b8['connectionTimeout']=0x36ee80,_0x15407b=new ReconnectingWebSocket(_0x53b3af,[],_0x46f4b8),logger[_0x4df33a(0xb5)](_0x53b755[_0x4df33a(0x7f)]),webSocketUtils[_0x4df33a(0x8f)](_0x15407b,_0x5860e4[_0x4df33a(0x75)],_0x5860e4['password']);const [_0x4f1a26,_0x4b55b6]=await _0x53b755[_0x4df33a(0xc1)](getGridDetails,_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x8a)],_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x96)],_0x5860e4[_0x4df33a(0x72)]);if(_0x4b55b6){const _0x5e8862=_0x4b55b6[_0x4df33a(0xaa)];global_registry[_0x4df33a(0xc5)]=_0x5e8862[_0x4df33a(0xc5)],global_registry[_0x4df33a(0x6e)]=_0x5e8862[_0x4df33a(0xc3)],global_registry[_0x4df33a(0x7c)]=_0x5e8862[_0x4df33a(0x7c)];const _0x2678a0=_0x53b755[_0x4df33a(0x92)](getCloudProviderObject,_0x5e8862['cloudProvider'],_0x5e8862[_0x4df33a(0x7c)],_0x5e8862['name'],_0x15407b,webSocketUtils),_0x69a6bc=_0x292171[_0x4df33a(0xc5)]||{};await _0x2678a0['fetchLocalCreds'](_0x69a6bc),_0x2678a0[_0x4df33a(0x7d)]();const [_0x1adc48,_0x1f7a85,_0x2f8623,_0x2f969b,_0x1f8ce0,_0x5d34e0]=await _0x53b755[_0x4df33a(0x76)](createK8sClient,_0x2678a0);await _0x53b755[_0x4df33a(0x89)](scaleDownHubDeployment,_0x1f7a85,_0x5e8862[_0x4df33a(0x85)]),logger['info'](_0x53b755[_0x4df33a(0x80)]),process[_0x4df33a(0x9a)](0x0);}_0x53b755[_0x4df33a(0xa4)](_0x4f1a26[_0x4df33a(0x77)],0x191)&&(logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x53b755[_0x4df33a(0xb9)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes['ERROR'],_0x53b755[_0x4df33a(0xaf)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1)),_0x53b755[_0x4df33a(0x8d)](_0x4f1a26[_0x4df33a(0x77)],0x190)&&(logger[_0x4df33a(0x73)](JSON[_0x4df33a(0x88)](_0x4f1a26[_0x4df33a(0xb3)])[_0x4df33a(0x9b)]),await _0x53b755[_0x4df33a(0x79)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0xa6)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1)),logger[_0x4df33a(0x73)](_0x4df33a(0x9e)+JSON[_0x4df33a(0xac)](_0x4f1a26)),await _0x53b755[_0x4df33a(0x8c)](sendInstrumentationEvent,_0x5860e4,_0x53b755['gYGen'],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0xc6)],_0x4f1a26,_0x5860e4),process[_0x4df33a(0x9a)](0x1);}catch(_0x303bef){const _0x3ef169=_0x4df33a(0xa3)+_0x303bef+'\x20\x0a'+JSON[_0x4df33a(0xac)](_0x303bef[_0x4df33a(0x9f)])+'\x20';logger[_0x4df33a(0x73)](_0x3ef169),process[_0x4df33a(0x9a)](0x1);}};
1
+ function a19_0x1160(_0x34266c,_0x50a78f){const _0x290440=a19_0x2904();return a19_0x1160=function(_0x1160b3,_0x4dcbef){_0x1160b3=_0x1160b3-0x7b;let _0x43cf0e=_0x290440[_0x1160b3];return _0x43cf0e;},a19_0x1160(_0x34266c,_0x50a78f);}const a19_0x34f1e2=a19_0x1160;(function(_0x2751d5,_0x5a6e6b){const _0x1403a3=a19_0x1160,_0x2461dc=_0x2751d5();while(!![]){try{const _0x3b7846=-parseInt(_0x1403a3(0xcd))/0x1*(parseInt(_0x1403a3(0x87))/0x2)+-parseInt(_0x1403a3(0x84))/0x3+parseInt(_0x1403a3(0x88))/0x4+-parseInt(_0x1403a3(0x8d))/0x5+parseInt(_0x1403a3(0xa3))/0x6*(parseInt(_0x1403a3(0x81))/0x7)+parseInt(_0x1403a3(0x85))/0x8*(parseInt(_0x1403a3(0xad))/0x9)+parseInt(_0x1403a3(0xb6))/0xa;if(_0x3b7846===_0x5a6e6b)break;else _0x2461dc['push'](_0x2461dc['shift']());}catch(_0x5b496a){_0x2461dc['push'](_0x2461dc['shift']());}}}(a19_0x2904,0xa43fb));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x34f1e2(0x96)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x34f1e2(0x95)),{getCredentialsPath,getGridDetails}=require(a19_0x34f1e2(0x90)),{scaleDownHubDeployment}=require(a19_0x34f1e2(0x8e)),{sendInstrumentationEvent}=require(a19_0x34f1e2(0x86)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x34f1e2(0xd0)),{getCloudProviderObject}=require(a19_0x34f1e2(0xbc));exports[a19_0x34f1e2(0xb2)]='grid',exports[a19_0x34f1e2(0xd2)]=a19_0x34f1e2(0xba),exports[a19_0x34f1e2(0xc6)]=function(_0x1daec8){const _0x672a40=a19_0x34f1e2,_0xfb66fd={};_0xfb66fd[_0x672a40(0xaf)]=_0x672a40(0x97),_0xfb66fd[_0x672a40(0xa0)]=_0x672a40(0x92),_0xfb66fd[_0x672a40(0xc7)]=_0x672a40(0xa1);const _0x52af1d=_0xfb66fd,_0x4a9756={};_0x4a9756['description']=_0x52af1d[_0x672a40(0xaf)],_0x4a9756[_0x672a40(0x98)]=_0x52af1d[_0x672a40(0xa0)];const _0x572cd6={};return _0x572cd6[_0x672a40(0xce)]=_0x4a9756,_0x1daec8[_0x672a40(0x82)](HELP_HEADER_MESSAGE[_0x672a40(0xb7)])[_0x672a40(0x89)](HELP_FOOTER_MESSAGE)[_0x672a40(0xbb)](_0x572cd6)[_0x672a40(0xa1)](_0x52af1d[_0x672a40(0xc7)])['argv'];},exports['handler']=async function(_0x3a56a1){const _0x30ad69=a19_0x34f1e2,_0x4ba12d={'FjAuw':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','ptmBD':function(_0x4a110e){return _0x4a110e();},'fknIr':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Uwexg':function(_0x3b3096,_0x22f694,_0x541632,_0x43cffb,_0x5a471d,_0x187648,_0x54b160){return _0x3b3096(_0x22f694,_0x541632,_0x43cffb,_0x5a471d,_0x187648,_0x54b160);},'BpDqW':_0x30ad69(0xc3),'WytQm':_0x30ad69(0xc1),'CrsVn':function(_0x1e1310,_0x3fbd98,_0x5338c1,_0x4e047e,_0x3c74a8,_0xaae3cb,_0x18da98){return _0x1e1310(_0x3fbd98,_0x5338c1,_0x4e047e,_0x3c74a8,_0xaae3cb,_0x18da98);},'YoYug':function(_0x4fa2f5){return _0x4fa2f5();},'TwgMw':_0x30ad69(0xcb),'hYuxj':_0x30ad69(0xb8),'qyBfa':_0x30ad69(0xa6),'YxavW':function(_0x1485f7,_0x300e4f,_0x297f95,_0x2dc8cc){return _0x1485f7(_0x300e4f,_0x297f95,_0x2dc8cc);},'UNFZs':function(_0x243d41,_0x2e92cc,_0x55eaa2,_0x54354b,_0xad89fe,_0x1511cd){return _0x243d41(_0x2e92cc,_0x55eaa2,_0x54354b,_0xad89fe,_0x1511cd);},'DwJJf':function(_0x3777a6,_0x49a88b){return _0x3777a6(_0x49a88b);},'cHrMo':function(_0x58cdc4,_0x151db5,_0x9fd0ed){return _0x58cdc4(_0x151db5,_0x9fd0ed);},'lolhF':_0x30ad69(0x9c),'RyjyB':function(_0x571920,_0x525520){return _0x571920===_0x525520;},'PmXMJ':_0x30ad69(0xa5),'EgTIQ':function(_0xe93ec6,_0x4db70a){return _0xe93ec6===_0x4db70a;},'PVBRt':function(_0x474521,_0x2a8fcb,_0x13b4a1,_0x4db948,_0x3251c2,_0x461336,_0x5d65c7){return _0x474521(_0x2a8fcb,_0x13b4a1,_0x4db948,_0x3251c2,_0x461336,_0x5d65c7);},'JCrYg':_0x30ad69(0xcc),'hKCbv':function(_0xc7facc,_0x288d6f,_0x13d33e,_0x5b5ae0,_0x1e5d75,_0x3f64c3,_0x4798be){return _0xc7facc(_0x288d6f,_0x13d33e,_0x5b5ae0,_0x1e5d75,_0x3f64c3,_0x4798be);},'dvMSp':'server-error'};let _0xa06422;try{!_0x3a56a1['gridId']&&(logger[_0x30ad69(0xc2)](_0x4ba12d[_0x30ad69(0x7d)]),process[_0x30ad69(0x9d)](0x1));!fs[_0x30ad69(0xcf)](_0x4ba12d[_0x30ad69(0xa9)](getCredentialsPath))&&(logger[_0x30ad69(0xc2)](_0x4ba12d[_0x30ad69(0xca)]),await _0x4ba12d['Uwexg'](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d[_0x30ad69(0xb1)],messageTypes['ERROR'],_0x4ba12d[_0x30ad69(0xc9)],null,_0x3a56a1),process[_0x30ad69(0x9d)](0x1));logger[_0x30ad69(0x94)](_0x30ad69(0xac)+_0x3a56a1[_0x30ad69(0xc8)]),await _0x4ba12d[_0x30ad69(0xa8)](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d['BpDqW'],messageTypes[_0x30ad69(0x7e)],null,null,_0x3a56a1);const _0x5437b3=JSON['parse'](fs['readFileSync'](_0x4ba12d[_0x30ad69(0xa4)](getCredentialsPath)));global_registry[_0x30ad69(0x7c)]=_0x5437b3['Browserstack']['username'],global_registry[_0x30ad69(0xb9)]=_0x5437b3[_0x30ad69(0xc5)]['password'];const _0x17f543=WS_ENDPOINT[_0x30ad69(0x9e)](_0x4ba12d[_0x30ad69(0xc0)],_0x5437b3[_0x30ad69(0xc5)]['username'])[_0x30ad69(0x9e)](_0x4ba12d[_0x30ad69(0xd1)],_0x5437b3[_0x30ad69(0xc5)][_0x30ad69(0x99)]),_0x495076={};_0x495076[_0x30ad69(0x83)]=ws,_0x495076['connectionTimeout']=0x36ee80,_0xa06422=new ReconnectingWebSocket(_0x17f543,[],_0x495076),logger[_0x30ad69(0x7b)](_0x4ba12d[_0x30ad69(0x8b)]),webSocketUtils[_0x30ad69(0x93)](_0xa06422,_0x3a56a1[_0x30ad69(0xb5)],_0x3a56a1[_0x30ad69(0x99)]);const [_0x547de0,_0x59aa2c]=await _0x4ba12d[_0x30ad69(0xae)](getGridDetails,_0x5437b3[_0x30ad69(0xc5)]['username'],_0x5437b3[_0x30ad69(0xc5)][_0x30ad69(0x99)],_0x3a56a1[_0x30ad69(0xc8)]);if(_0x59aa2c){const _0x921b7e=_0x59aa2c[_0x30ad69(0x94)];global_registry[_0x30ad69(0x8f)]=_0x921b7e['cloudProvider'],global_registry[_0x30ad69(0x7f)]=_0x921b7e[_0x30ad69(0xaa)],global_registry[_0x30ad69(0xa7)]=_0x921b7e[_0x30ad69(0xa7)];const _0x550a5d=_0x4ba12d['UNFZs'](getCloudProviderObject,_0x921b7e[_0x30ad69(0x8f)],_0x921b7e[_0x30ad69(0xa7)],_0x921b7e['name'],_0xa06422,webSocketUtils),_0x34a842=_0x5437b3[_0x30ad69(0x8f)]||{};await _0x550a5d[_0x30ad69(0xb0)](_0x34a842),_0x550a5d[_0x30ad69(0x9b)]();const [_0x124cdf,_0x1154dd,_0x40e154,_0x840b27,_0x6ac106,_0x1c265e]=await _0x4ba12d['DwJJf'](createK8sClient,_0x550a5d);await _0x4ba12d['cHrMo'](scaleDownHubDeployment,_0x1154dd,_0x921b7e['name']),logger[_0x30ad69(0x94)](_0x4ba12d['lolhF']),process[_0x30ad69(0x9d)](0x0);}_0x4ba12d[_0x30ad69(0xbd)](_0x547de0['statusCode'],0x191)&&(logger['error'](_0x30ad69(0xc4)),await _0x4ba12d['Uwexg'](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d[_0x30ad69(0xb1)],messageTypes[_0x30ad69(0x8a)],_0x4ba12d[_0x30ad69(0xb3)],null,_0x3a56a1),process[_0x30ad69(0x9d)](0x1)),_0x4ba12d[_0x30ad69(0x9a)](_0x547de0[_0x30ad69(0x91)],0x190)&&(logger['error'](JSON['parse'](_0x547de0[_0x30ad69(0xb4)])[_0x30ad69(0x9f)]),await _0x4ba12d[_0x30ad69(0x80)](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d['BpDqW'],messageTypes['ERROR'],_0x4ba12d[_0x30ad69(0xbe)],null,_0x3a56a1),process[_0x30ad69(0x9d)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x547de0)),await _0x4ba12d[_0x30ad69(0xab)](sendInstrumentationEvent,_0x3a56a1,_0x4ba12d[_0x30ad69(0xb1)],messageTypes[_0x30ad69(0x8a)],_0x4ba12d[_0x30ad69(0x8c)],_0x547de0,_0x3a56a1),process[_0x30ad69(0x9d)](0x1);}catch(_0x54b2f0){const _0x251aa1=_0x30ad69(0xbf)+_0x54b2f0+'\x20\x0a'+JSON['stringify'](_0x54b2f0[_0x30ad69(0xa2)])+'\x20';logger['error'](_0x251aa1),process[_0x30ad69(0x9d)](0x1);}};function a19_0x2904(){const _0x38fa47=['Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','type','password','EgTIQ','configureIfNotConfigured','Grid\x20stoppped.','exit','replace','message','NzIiI','help','stack','3092712yZbtQL','YoYug','unauthorised','Adding\x20Websocket\x20listeners','clusterName','CrsVn','ptmBD','region','hKCbv','Stopping\x20grid\x20','15615sQOmQs','YxavW','hpgdo','fetchLocalCreds','BpDqW','command','PmXMJ','body','user','10665620BIllgY','stop','<PasswordPlaceholder>','bstackAccesskey','Stop\x20a\x20running\x20Automation\x20grid.','options','../../cloudproviders/utils','RyjyB','JCrYg','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','TwgMw','init-not-called','error','stop-grid-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','builder','JwPKu','gridId','WytQm','fknIr','<UsernamePlaceholder>','invalid-grid-id','62788yCioqA','grid-id','existsSync','../../utils/createk8sClient','hYuxj','desc','debug','bstackUsername','FjAuw','INFO','clusterRegion','PVBRt','7RPKfBa','usage','WebSocket','3567528cVKZnP','3816NSLuXk','../../utils/instrumentationUtils','22FOtJLj','2084020OMRXtj','epilogue','ERROR','qyBfa','dvMSp','1890035Owmbhd','../../utils/gridComponents','cloudProvider','../../utils/utilityMethods','statusCode','string','addListeners','info','../../config/logger','reconnecting-websocket'];a19_0x2904=function(){return _0x38fa47;};return a19_0x2904();}
@@ -1 +1 @@
1
- const a20_0x51b4fc=a20_0x33d6;(function(_0x335f52,_0x5d5b34){const _0x3f648d=a20_0x33d6,_0x47be98=_0x335f52();while(!![]){try{const _0x5d91ae=-parseInt(_0x3f648d(0x221))/0x1*(parseInt(_0x3f648d(0x1e8))/0x2)+parseInt(_0x3f648d(0x20c))/0x3*(parseInt(_0x3f648d(0x1f4))/0x4)+parseInt(_0x3f648d(0x1fb))/0x5*(-parseInt(_0x3f648d(0x22b))/0x6)+parseInt(_0x3f648d(0x1de))/0x7*(parseInt(_0x3f648d(0x1f2))/0x8)+parseInt(_0x3f648d(0x20a))/0x9*(parseInt(_0x3f648d(0x1ee))/0xa)+parseInt(_0x3f648d(0x1da))/0xb+-parseInt(_0x3f648d(0x1f8))/0xc;if(_0x5d91ae===_0x5d5b34)break;else _0x47be98['push'](_0x47be98['shift']());}catch(_0x1fc8ad){_0x47be98['push'](_0x47be98['shift']());}}}(a20_0x1161,0xbc81b),require(a20_0x51b4fc(0x1f6))[a20_0x51b4fc(0x1fc)](),exports[a20_0x51b4fc(0x1e5)]=process[a20_0x51b4fc(0x222)][a20_0x51b4fc(0x1e5)]||a20_0x51b4fc(0x200),exports['BS_API_URL']=process['env']['BS_API_URL']||a20_0x51b4fc(0x220),exports[a20_0x51b4fc(0x217)]=process[a20_0x51b4fc(0x222)]['AG_API_URL']||a20_0x51b4fc(0x1e1),exports[a20_0x51b4fc(0x1dc)]='wss://'+this[a20_0x51b4fc(0x217)]+a20_0x51b4fc(0x21f),exports[a20_0x51b4fc(0x20e)]='credentials',exports[a20_0x51b4fc(0x204)]='BrowserStackIAMUser',exports[a20_0x51b4fc(0x202)]=a20_0x51b4fc(0x1f3));const timestamp=new Date()[a20_0x51b4fc(0x1d9)]();function a20_0x1161(){const _0x495959=['2xUYfoN','HELP_HEADER_MESSAGE','gcp','grid','CLI_RUN_FINISHED','CLI_ARGS_REGEX','1485130kelIrr','start','gridProfile','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','8GWNCDK','high-scale-grid','5072020aRvTrx','AZURE','dotenv','RESOURCES','8649780nnURfK','create','init','436785kKvVAp','config','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','[REDACTED]','REDACTED','grid.browserstack.com','info','DEFAULT_GRID_NAME','browserstack:service','IAM_USER_NAME','ERROR','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','HST_CLUSTER_TAGS','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-','54VRQQnP','Key','3tqzNIk','WS_EVENTS','CP_CONFIG_FILE','NULL','log','cliRunStarted','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','warning','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','aws','AG_API_URL','LOG','root','azure','AWS','INFO','Value','browserstack-turboscale-grid','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','api.browserstack.com','1461842fyVuPH','env','resourceInfo','CLUSTER_AUTOSCALER_STACK_NAME','unknown','browserstack:managedBy','LINK_MESSAGE','WARNING','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','30krWTCH','getTime','7138549zVBPQp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','WS_ENDPOINT','cliRunFinished','4084661qNJOJT','CLUSTER_DEP_STACK_NAME','list','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack','DASHBOARD_ENDPOINT','TURBOSCALE_DEPLOYMENT','SUCCESS'];a20_0x1161=function(){return _0x495959;};return a20_0x1161();}exports[a20_0x51b4fc(0x21b)]=a20_0x51b4fc(0x216),exports[a20_0x51b4fc(0x1df)]=a20_0x51b4fc(0x209)+timestamp,exports[a20_0x51b4fc(0x224)]='BSTACK-ATS-CLUSTER-AUTOSCALER-'+timestamp,exports[a20_0x51b4fc(0x1e6)]=a20_0x51b4fc(0x21e),exports[a20_0x51b4fc(0x1f5)]=a20_0x51b4fc(0x21a),exports['GCP']=a20_0x51b4fc(0x1ea);const a20_0x7d9c07={};function a20_0x33d6(_0x3edef8,_0x175ec2){const _0x11612f=a20_0x1161();return a20_0x33d6=function(_0x33d616,_0x6c7022){_0x33d616=_0x33d616-0x1d9;let _0x6e4e7d=_0x11612f[_0x33d616];return _0x6e4e7d;},a20_0x33d6(_0x3edef8,_0x175ec2);}a20_0x7d9c07[a20_0x51b4fc(0x20b)]=a20_0x51b4fc(0x226),a20_0x7d9c07[a20_0x51b4fc(0x21d)]=a20_0x51b4fc(0x1e4);const a20_0x595ff3={};a20_0x595ff3[a20_0x51b4fc(0x20b)]=a20_0x51b4fc(0x203),a20_0x595ff3[a20_0x51b4fc(0x21d)]='BrowserStack-Automate-TurboScale',exports['COMMON_HST_TAGS']=[a20_0x7d9c07,a20_0x595ff3];const a20_0x4c9546={};a20_0x4c9546[a20_0x51b4fc(0x226)]=a20_0x51b4fc(0x1e4),a20_0x4c9546['browserstack:service']=a20_0x51b4fc(0x22a),exports[a20_0x51b4fc(0x207)]=a20_0x4c9546,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a20_0x48142b={};a20_0x48142b[a20_0x51b4fc(0x218)]=a20_0x51b4fc(0x210),a20_0x48142b[a20_0x51b4fc(0x1f7)]=a20_0x51b4fc(0x223),a20_0x48142b['GRID_URL']='gridUrl',a20_0x48142b[a20_0x51b4fc(0x208)]=a20_0x51b4fc(0x211),a20_0x48142b[a20_0x51b4fc(0x1ec)]=a20_0x51b4fc(0x1dd),exports[a20_0x51b4fc(0x20d)]=a20_0x48142b,exports['global_registry']={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a20_0x7fd77d={};a20_0x7fd77d['root']=a20_0x51b4fc(0x213)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1fa)]=a20_0x51b4fc(0x1e2)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['configure']=a20_0x51b4fc(0x229)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1f9)]=a20_0x51b4fc(0x212)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)]={},a20_0x7fd77d['delete']=a20_0x51b4fc(0x1fd)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['connect']=a20_0x51b4fc(0x1e3)+this['LINK_MESSAGE'],a20_0x7fd77d[a20_0x51b4fc(0x1ef)]=a20_0x51b4fc(0x215)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['stop']=a20_0x51b4fc(0x206)+this['LINK_MESSAGE'],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x219)]=a20_0x51b4fc(0x1f1)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x1eb)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x1f0)]=a20_0x51b4fc(0x1db)+this['LINK_MESSAGE'],exports[a20_0x51b4fc(0x1e9)]=a20_0x7fd77d,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a20_0x2b1d71={};a20_0x2b1d71[a20_0x51b4fc(0x1e7)]='success',a20_0x2b1d71[a20_0x51b4fc(0x205)]='error',a20_0x2b1d71[a20_0x51b4fc(0x21c)]=a20_0x51b4fc(0x201),a20_0x2b1d71[a20_0x51b4fc(0x228)]=a20_0x51b4fc(0x214),a20_0x2b1d71['UNKNOWN']=a20_0x51b4fc(0x225),a20_0x2b1d71[a20_0x51b4fc(0x20f)]=null,exports['messageTypes']=a20_0x2b1d71,exports[a20_0x51b4fc(0x1ed)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x51b4fc(0x1ff)]=a20_0x51b4fc(0x1fe);
1
+ const a20_0x3cc160=a20_0x69f3;(function(_0x393605,_0x338942){const _0x1d1a45=a20_0x69f3,_0x19a005=_0x393605();while(!![]){try{const _0x396bc2=-parseInt(_0x1d1a45(0x190))/0x1+parseInt(_0x1d1a45(0x1b2))/0x2*(-parseInt(_0x1d1a45(0x1b4))/0x3)+parseInt(_0x1d1a45(0x1b7))/0x4*(parseInt(_0x1d1a45(0x1c3))/0x5)+parseInt(_0x1d1a45(0x1e1))/0x6+parseInt(_0x1d1a45(0x1c2))/0x7*(-parseInt(_0x1d1a45(0x1be))/0x8)+-parseInt(_0x1d1a45(0x1b3))/0x9*(-parseInt(_0x1d1a45(0x1e2))/0xa)+parseInt(_0x1d1a45(0x1dc))/0xb*(parseInt(_0x1d1a45(0x19b))/0xc);if(_0x396bc2===_0x338942)break;else _0x19a005['push'](_0x19a005['shift']());}catch(_0x53eb14){_0x19a005['push'](_0x19a005['shift']());}}}(a20_0x132b,0xc8949),require(a20_0x3cc160(0x195))[a20_0x3cc160(0x1c1)](),exports[a20_0x3cc160(0x1d4)]=process['env']['DASHBOARD_ENDPOINT']||a20_0x3cc160(0x197),exports[a20_0x3cc160(0x1a4)]=process[a20_0x3cc160(0x19c)][a20_0x3cc160(0x1a4)]||a20_0x3cc160(0x1e5),exports[a20_0x3cc160(0x1a6)]=process[a20_0x3cc160(0x19c)][a20_0x3cc160(0x1a6)]||a20_0x3cc160(0x1b5),exports[a20_0x3cc160(0x1a3)]=a20_0x3cc160(0x198)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a20_0x3cc160(0x1c4)]=a20_0x3cc160(0x1cb),exports[a20_0x3cc160(0x1e7)]=a20_0x3cc160(0x1a5),exports[a20_0x3cc160(0x1aa)]=a20_0x3cc160(0x1dd));const timestamp=new Date()[a20_0x3cc160(0x1a0)]();exports[a20_0x3cc160(0x1a9)]=a20_0x3cc160(0x1de),exports[a20_0x3cc160(0x1c0)]=a20_0x3cc160(0x1cd)+timestamp,exports[a20_0x3cc160(0x1c7)]=a20_0x3cc160(0x1d9)+timestamp,exports[a20_0x3cc160(0x19e)]='browserstack-turboscale-grid',exports[a20_0x3cc160(0x19f)]=a20_0x3cc160(0x1a2),exports[a20_0x3cc160(0x1d5)]=a20_0x3cc160(0x1e8);const a20_0x2d98fa={};a20_0x2d98fa['Key']=a20_0x3cc160(0x1d6),a20_0x2d98fa['Value']='BrowserStack';const a20_0x98c185={};a20_0x98c185[a20_0x3cc160(0x1ca)]='browserstack:service',a20_0x98c185[a20_0x3cc160(0x1b8)]=a20_0x3cc160(0x1d2),exports[a20_0x3cc160(0x1e0)]=[a20_0x2d98fa,a20_0x98c185];function a20_0x69f3(_0x5f268a,_0x77a733){const _0x132b91=a20_0x132b();return a20_0x69f3=function(_0x69f3c4,_0x5c24c1){_0x69f3c4=_0x69f3c4-0x190;let _0x1eb151=_0x132b91[_0x69f3c4];return _0x1eb151;},a20_0x69f3(_0x5f268a,_0x77a733);}const a20_0x2e6fa6={};a20_0x2e6fa6[a20_0x3cc160(0x1d6)]=a20_0x3cc160(0x1db),a20_0x2e6fa6[a20_0x3cc160(0x1b1)]=a20_0x3cc160(0x1d2),exports[a20_0x3cc160(0x1e9)]=a20_0x2e6fa6,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a20_0x3cc160(0x1a9)]];const a20_0x3bc770={};function a20_0x132b(){const _0x2c10df=['\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-AUTOSCALER-','RAW_ARGS_REGEX','BrowserStack','44BJGvLc','high-scale-grid','aws','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','COMMON_HST_TAGS','1692348JRuYAb','120810AFIied','CLI_RUN_STARTED','delete','api.browserstack.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','IAM_USER_NAME','gcp','HST_CLUSTER_TAGS','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','152132qlJwqF','connect','REDACTED','warning','log','dotenv','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid.browserstack.com','wss://','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','start','5875416WJmPtz','env','SUCCESS','TURBOSCALE_DEPLOYMENT','AZURE','getTime','RESOURCES','azure','WS_ENDPOINT','BS_API_URL','BrowserStackIAMUser','AG_API_URL','LOG','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','AWS','DEFAULT_GRID_NAME','HELP_FOOTER_MESSAGE','WARNING','[REDACTED]','init','stop','root','browserstack:service','162RNQUsL','63sdHMXm','35376nUJdRt','grid-api.browserstack.com','global_registry','216332fgYsyC','Value','cliRunStarted','configure','messageTypes','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','list','68792BcYHbC','ERROR','CLUSTER_DEP_STACK_NAME','config','1071kJFPwZ','85qCHIOB','CP_CONFIG_FILE','GRID_URL','HELP_HEADER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','CLI_ARGS_REGEX','resourceInfo','Key','credentials','NULL','BSTACK-ATS-CLUSTER-','LINK_MESSAGE','success','WS_EVENTS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','unknown','DASHBOARD_ENDPOINT','GCP','browserstack:managedBy'];a20_0x132b=function(){return _0x2c10df;};return a20_0x132b();}a20_0x3bc770[a20_0x3cc160(0x1a7)]=a20_0x3cc160(0x194),a20_0x3bc770[a20_0x3cc160(0x1a1)]=a20_0x3cc160(0x1c9),a20_0x3bc770[a20_0x3cc160(0x1c5)]='gridUrl',a20_0x3bc770[a20_0x3cc160(0x1e3)]=a20_0x3cc160(0x1b9),a20_0x3bc770['CLI_RUN_FINISHED']='cliRunFinished',exports[a20_0x3cc160(0x1d0)]=a20_0x3bc770,exports[a20_0x3cc160(0x1b6)]={},exports['LINK_MESSAGE']=a20_0x3cc160(0x1d7);const a20_0x54216a={};a20_0x54216a['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a20_0x3cc160(0x1ce)],a20_0x54216a[a20_0x3cc160(0x1ae)]=a20_0x3cc160(0x1d8)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1ba)]=a20_0x3cc160(0x1bc)+this['LINK_MESSAGE'],a20_0x54216a['create']=a20_0x3cc160(0x1ea)+this[a20_0x3cc160(0x1ce)],a20_0x54216a[a20_0x3cc160(0x1bd)]={},a20_0x54216a[a20_0x3cc160(0x1e4)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x191)]=a20_0x3cc160(0x1d1)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x19a)]=a20_0x3cc160(0x196)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1af)]=a20_0x3cc160(0x1e6)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1bd)][a20_0x3cc160(0x1b0)]=a20_0x3cc160(0x199)+this['LINK_MESSAGE'],a20_0x54216a[a20_0x3cc160(0x1bd)]['grid']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x3cc160(0x1ce)],a20_0x54216a[a20_0x3cc160(0x1bd)]['gridProfile']=a20_0x3cc160(0x1df)+this[a20_0x3cc160(0x1ce)],exports[a20_0x3cc160(0x1c6)]=a20_0x54216a,exports[a20_0x3cc160(0x1ab)]=a20_0x3cc160(0x1a8);const a20_0x44f4a9={};a20_0x44f4a9[a20_0x3cc160(0x19d)]=a20_0x3cc160(0x1cf),a20_0x44f4a9[a20_0x3cc160(0x1bf)]='error',a20_0x44f4a9['INFO']='info',a20_0x44f4a9[a20_0x3cc160(0x1ac)]=a20_0x3cc160(0x193),a20_0x44f4a9['UNKNOWN']=a20_0x3cc160(0x1d3),a20_0x44f4a9[a20_0x3cc160(0x1cc)]=null,exports[a20_0x3cc160(0x1bb)]=a20_0x44f4a9,exports[a20_0x3cc160(0x1c8)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x3cc160(0x1da)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x3cc160(0x192)]=a20_0x3cc160(0x1ad);
@@ -1 +1 @@
1
- const a21_0x5a005f=a21_0x3072;(function(_0x5bfac4,_0x35d0c3){const _0x328eb1=a21_0x3072,_0x71aefc=_0x5bfac4();while(!![]){try{const _0x2c2444=-parseInt(_0x328eb1(0x174))/0x1*(parseInt(_0x328eb1(0x17f))/0x2)+parseInt(_0x328eb1(0x176))/0x3*(parseInt(_0x328eb1(0x177))/0x4)+-parseInt(_0x328eb1(0x185))/0x5*(-parseInt(_0x328eb1(0x184))/0x6)+parseInt(_0x328eb1(0x16d))/0x7+-parseInt(_0x328eb1(0x180))/0x8+parseInt(_0x328eb1(0x178))/0x9*(-parseInt(_0x328eb1(0x170))/0xa)+-parseInt(_0x328eb1(0x182))/0xb;if(_0x2c2444===_0x35d0c3)break;else _0x71aefc['push'](_0x71aefc['shift']());}catch(_0x4e6ba7){_0x71aefc['push'](_0x71aefc['shift']());}}}(a21_0x214d,0x1ac71));const winston=require(a21_0x5a005f(0x17e)),fs=require('fs'),path=require(a21_0x5a005f(0x181)),logDir='log';!fs[a21_0x5a005f(0x183)](logDir)&&fs[a21_0x5a005f(0x187)](logDir);const a21_0x5bcbb4={};a21_0x5bcbb4[a21_0x5a005f(0x172)]='YYYY-MM-DD\x20HH:mm:ss';function a21_0x214d(){const _0x37c4bc=['message','1307117QtTsrG','colorize','printf','27510dTqRqZ','fileLogger','format','debug','21666SAEHlh','\x20-\x20','144480EMJIUl','16bAZwrx','657lXQdVx','Console','console.info','events.log','timestamp','transports','winston','2BcoJUC','689536SRErJY','path','827497lHfQyf','existsSync','685308eBWgKK','5FiXOCw','level','mkdirSync','createLogger','File','join'];a21_0x214d=function(){return _0x37c4bc;};return a21_0x214d();}const a21_0xf2a1ac={};a21_0xf2a1ac[a21_0x5a005f(0x186)]=!![];const a21_0x3ae7f6={};function a21_0x3072(_0x136bb3,_0x44401d){const _0x214dcf=a21_0x214d();return a21_0x3072=function(_0x3072e7,_0x42b3c3){_0x3072e7=_0x3072e7-0x169;let _0x10febb=_0x214dcf[_0x3072e7];return _0x10febb;},a21_0x3072(_0x136bb3,_0x44401d);}a21_0x3ae7f6['name']=a21_0x5a005f(0x17a),exports['logger']=new winston['createLogger']({'format':winston[a21_0x5a005f(0x172)]['combine'](winston['format'][a21_0x5a005f(0x17c)](a21_0x5bcbb4),winston[a21_0x5a005f(0x172)][a21_0x5a005f(0x16e)](a21_0xf2a1ac),winston[a21_0x5a005f(0x172)][a21_0x5a005f(0x16f)](_0x16a8fd=>_0x16a8fd[a21_0x5a005f(0x17c)]+a21_0x5a005f(0x175)+_0x16a8fd[a21_0x5a005f(0x186)]+':\x20'+_0x16a8fd[a21_0x5a005f(0x16c)])),'transports':[new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x179))](a21_0x3ae7f6),new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x16a))]({'filename':path[a21_0x5a005f(0x16b)](logDir,a21_0x5a005f(0x17b)),'level':a21_0x5a005f(0x173)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x16a))]({'filename':path['join'](logDir,'usage.log'),'level':a21_0x5a005f(0x173)})]};exports[a21_0x5a005f(0x171)]=new winston[(a21_0x5a005f(0x169))](winstonFileLoggerParams);
1
+ const a21_0x4b2570=a21_0x4961;(function(_0x21fb2c,_0x2c9334){const _0x5f0e80=a21_0x4961,_0x44aeba=_0x21fb2c();while(!![]){try{const _0x52d5ce=-parseInt(_0x5f0e80(0x136))/0x1*(parseInt(_0x5f0e80(0x141))/0x2)+parseInt(_0x5f0e80(0x13c))/0x3*(-parseInt(_0x5f0e80(0x14d))/0x4)+-parseInt(_0x5f0e80(0x13a))/0x5+parseInt(_0x5f0e80(0x13f))/0x6+-parseInt(_0x5f0e80(0x151))/0x7*(parseInt(_0x5f0e80(0x153))/0x8)+-parseInt(_0x5f0e80(0x134))/0x9*(parseInt(_0x5f0e80(0x148))/0xa)+parseInt(_0x5f0e80(0x150))/0xb*(parseInt(_0x5f0e80(0x137))/0xc);if(_0x52d5ce===_0x2c9334)break;else _0x44aeba['push'](_0x44aeba['shift']());}catch(_0xbbf7ee){_0x44aeba['push'](_0x44aeba['shift']());}}}(a21_0x3ec9,0xa5dbf));const winston=require(a21_0x4b2570(0x133)),fs=require('fs'),path=require(a21_0x4b2570(0x149)),logDir=a21_0x4b2570(0x143);!fs[a21_0x4b2570(0x135)](logDir)&&fs[a21_0x4b2570(0x14c)](logDir);const a21_0x467d68={};a21_0x467d68['format']=a21_0x4b2570(0x14b);const a21_0x336ec4={};a21_0x336ec4['level']=!![];const a21_0x5b16cf={};a21_0x5b16cf['name']=a21_0x4b2570(0x144),exports['logger']=new winston[(a21_0x4b2570(0x152))]({'format':winston[a21_0x4b2570(0x14a)][a21_0x4b2570(0x142)](winston[a21_0x4b2570(0x14a)][a21_0x4b2570(0x145)](a21_0x467d68),winston['format'][a21_0x4b2570(0x140)](a21_0x336ec4),winston[a21_0x4b2570(0x14a)][a21_0x4b2570(0x13d)](_0x14521a=>_0x14521a[a21_0x4b2570(0x145)]+'\x20-\x20'+_0x14521a[a21_0x4b2570(0x14f)]+':\x20'+_0x14521a[a21_0x4b2570(0x147)])),'transports':[new winston[(a21_0x4b2570(0x138))][(a21_0x4b2570(0x14e))](a21_0x5b16cf),new winston['transports'][(a21_0x4b2570(0x13b))]({'filename':path['join'](logDir,a21_0x4b2570(0x146)),'level':a21_0x4b2570(0x13e)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x4b2570(0x138))][(a21_0x4b2570(0x13b))]({'filename':path[a21_0x4b2570(0x139)](logDir,'usage.log'),'level':'debug'})]};function a21_0x4961(_0xb5167f,_0x1c339f){const _0x3ec949=a21_0x3ec9();return a21_0x4961=function(_0x496133,_0xe414d5){_0x496133=_0x496133-0x133;let _0x461f3a=_0x3ec949[_0x496133];return _0x461f3a;},a21_0x4961(_0xb5167f,_0x1c339f);}exports['fileLogger']=new winston[(a21_0x4b2570(0x152))](winstonFileLoggerParams);function a21_0x3ec9(){const _0x1e163a=['95412wOPgnn','printf','debug','5060946rPsPLW','colorize','328882MUXaOM','combine','log','console.info','timestamp','events.log','message','6113300zZYSJB','path','format','YYYY-MM-DD\x20HH:mm:ss','mkdirSync','20vQcYRM','Console','level','5159JPkMtN','14BBVTKi','createLogger','339928itwiZN','winston','18WeVtXg','existsSync','2oqSyMJ','43668jfPNpu','transports','join','376395xtaTFP','File'];a21_0x3ec9=function(){return _0x1e163a;};return a21_0x3ec9();}
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0xe53443=a22_0x3eb8;function a22_0x3eb8(_0x15e2f7,_0x56d44a){const _0x304288=a22_0x3042();return a22_0x3eb8=function(_0x3eb8e9,_0x20eb9f){_0x3eb8e9=_0x3eb8e9-0xb6;let _0x2255be=_0x304288[_0x3eb8e9];return _0x2255be;},a22_0x3eb8(_0x15e2f7,_0x56d44a);}(function(_0x556818,_0x345af0){const _0x2e5035=a22_0x3eb8,_0x7b6be8=_0x556818();while(!![]){try{const _0x4c043a=parseInt(_0x2e5035(0xb6))/0x1+parseInt(_0x2e5035(0xca))/0x2+parseInt(_0x2e5035(0xcb))/0x3+parseInt(_0x2e5035(0xbe))/0x4*(-parseInt(_0x2e5035(0xc7))/0x5)+-parseInt(_0x2e5035(0xc0))/0x6*(parseInt(_0x2e5035(0xb8))/0x7)+parseInt(_0x2e5035(0xba))/0x8+parseInt(_0x2e5035(0xb7))/0x9;if(_0x4c043a===_0x345af0)break;else _0x7b6be8['push'](_0x7b6be8['shift']());}catch(_0xfc1666){_0x7b6be8['push'](_0x7b6be8['shift']());}}}(a22_0x3042,0x2274f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0xe53443(0xb9));process[a22_0xe53443(0xbc)][a22_0xe53443(0xbb)]=0x1;function run(_0x21bd2b){const _0x385396=a22_0xe53443,_0xfc361d={};_0xfc361d[_0x385396(0xc1)]=_0x385396(0xc2),_0xfc361d[_0x385396(0xbd)]=_0x385396(0xc8);const _0x3086e3=_0xfc361d;_0x21bd2b[_0x385396(0xc6)](HELP_HEADER_MESSAGE[_0x385396(0xc9)])[_0x385396(0xc5)](_0x3086e3[_0x385396(0xc1)])[_0x385396(0xc3)]()[_0x385396(0xc8)](_0x3086e3[_0x385396(0xbd)])[_0x385396(0xc4)](HELP_FOOTER_MESSAGE);}function a22_0x3042(){const _0x59f94d=['1123632aWjyxM','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','env','TCWvp','176LICmov','exports','270aXTDzk','cErvH','commands','demandCommand','epilogue','commandDir','usage','18430FrDvgz','help','root','175448sBPXpb','735456dErPcp','77840KhiEVM','261711IrgGru','43078eRUNRu','./config/constants'];a22_0x3042=function(){return _0x59f94d;};return a22_0x3042();}module[a22_0xe53443(0xbf)]=run;
2
+ 'use strict';const a22_0x20d8f2=a22_0x4dd2;function a22_0x4dd2(_0x1e3464,_0xce2bc){const _0x2bfa40=a22_0x2bfa();return a22_0x4dd2=function(_0x4dd258,_0x1843b6){_0x4dd258=_0x4dd258-0x7d;let _0x2be099=_0x2bfa40[_0x4dd258];return _0x2be099;},a22_0x4dd2(_0x1e3464,_0xce2bc);}(function(_0x147d2e,_0x591f3e){const _0x42dc3a=a22_0x4dd2,_0x5c6373=_0x147d2e();while(!![]){try{const _0x5d2ba1=parseInt(_0x42dc3a(0x90))/0x1*(-parseInt(_0x42dc3a(0x85))/0x2)+-parseInt(_0x42dc3a(0x8a))/0x3+-parseInt(_0x42dc3a(0x7e))/0x4+parseInt(_0x42dc3a(0x8d))/0x5*(-parseInt(_0x42dc3a(0x87))/0x6)+-parseInt(_0x42dc3a(0x80))/0x7*(-parseInt(_0x42dc3a(0x8c))/0x8)+parseInt(_0x42dc3a(0x88))/0x9+parseInt(_0x42dc3a(0x82))/0xa;if(_0x5d2ba1===_0x591f3e)break;else _0x5c6373['push'](_0x5c6373['shift']());}catch(_0x57fed4){_0x5c6373['push'](_0x5c6373['shift']());}}}(a22_0x2bfa,0xd3395));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x20d8f2(0x8b));process[a22_0x20d8f2(0x89)][a22_0x20d8f2(0x8f)]=0x1;function a22_0x2bfa(){const _0x269b0a=['FUuIP','398DPwajC','usage','6KrvFxE','13820841tEVDQf','env','4761225OdKqOi','./config/constants','488Yxapfc','1816085wudlBq','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1771iqWCrR','demandCommand','2811360OnbJNt','exports','134197kkKyhN','commandDir','11656540vNqRqx','help'];a22_0x2bfa=function(){return _0x269b0a;};return a22_0x2bfa();}function run(_0x14578d){const _0x36c491=a22_0x20d8f2,_0x26851e={};_0x26851e[_0x36c491(0x84)]='commands',_0x26851e['ptNNR']=_0x36c491(0x83);const _0x1c7b7b=_0x26851e;_0x14578d[_0x36c491(0x86)](HELP_HEADER_MESSAGE[_0x36c491(0x8e)])[_0x36c491(0x81)](_0x1c7b7b[_0x36c491(0x84)])[_0x36c491(0x7d)]()[_0x36c491(0x83)](_0x1c7b7b['ptNNR'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a22_0x20d8f2(0x7f)]=run;
@@ -1 +1 @@
1
- const a23_0x1487d4=a23_0x4ee5;function a23_0x4ee5(_0x114856,_0x40934e){const _0x54ddf4=a23_0x54dd();return a23_0x4ee5=function(_0x4ee51b,_0x1267eb){_0x4ee51b=_0x4ee51b-0xb5;let _0x3512d5=_0x54ddf4[_0x4ee51b];return _0x3512d5;},a23_0x4ee5(_0x114856,_0x40934e);}(function(_0x27fe14,_0x554969){const _0x153ee1=a23_0x4ee5,_0x5eff20=_0x27fe14();while(!![]){try{const _0x15b32e=-parseInt(_0x153ee1(0xea))/0x1+-parseInt(_0x153ee1(0xf1))/0x2+parseInt(_0x153ee1(0xf7))/0x3*(parseInt(_0x153ee1(0xe7))/0x4)+parseInt(_0x153ee1(0x100))/0x5+parseInt(_0x153ee1(0xc7))/0x6*(-parseInt(_0x153ee1(0xcd))/0x7)+-parseInt(_0x153ee1(0x12f))/0x8+parseInt(_0x153ee1(0xdf))/0x9;if(_0x15b32e===_0x554969)break;else _0x5eff20['push'](_0x5eff20['shift']());}catch(_0x492ca8){_0x5eff20['push'](_0x5eff20['shift']());}}}(a23_0x54dd,0xb644d));const awsSDK=require('aws-sdk'),{logger}=require(a23_0x1487d4(0xe6));exports[a23_0x1487d4(0x120)]=_0x2e36c9=>{const _0x3b30f9=a23_0x1487d4,_0x23990c={'SAEHc':function(_0x15ff2c,_0x9e1971){return _0x15ff2c(_0x9e1971);},'uokoq':_0x3b30f9(0xc3),'JqCWG':function(_0x2989a7,_0x58ee86){return _0x2989a7(_0x58ee86);},'XVZpf':function(_0x4753a1,_0x14bd34){return _0x4753a1!==_0x14bd34;},'mBJsb':_0x3b30f9(0x108),'ljdYl':'Sgohy','qZUvo':function(_0x5df31e,_0x3b8723){return _0x5df31e!==_0x3b8723;},'YVzka':_0x3b30f9(0x12a)};return new Promise((_0x111ce5,_0x5e499c)=>{const _0x1e0535=_0x3b30f9,_0x22fc2e={'fbDWg':function(_0x3f9de1,_0x5ec6a9){const _0x3192c6=a23_0x4ee5;return _0x23990c[_0x3192c6(0x13c)](_0x3f9de1,_0x5ec6a9);},'EDmam':_0x23990c[_0x1e0535(0x105)],'LoqeH':function(_0x42ac77,_0x45c734){return _0x23990c['JqCWG'](_0x42ac77,_0x45c734);},'dvHSS':function(_0x4e84ab,_0x2c2207){return _0x23990c['XVZpf'](_0x4e84ab,_0x2c2207);},'BlMoM':_0x23990c['mBJsb'],'KQFPL':_0x23990c[_0x1e0535(0xd3)]};if(_0x23990c[_0x1e0535(0x106)](_0x23990c[_0x1e0535(0x11a)],_0x23990c['YVzka'])){const _0x53b1c1={'tqdQe':function(_0x2ed2e1,_0x12c70b){return _0x22fc2e['fbDWg'](_0x2ed2e1,_0x12c70b);}},_0x2271ca={};_0x2271ca['apiVersion']=_0x22fc2e[_0x1e0535(0x103)],_0x2271ca[_0x1e0535(0x12c)]=_0x43cde3;const _0x283f52=new _0x2bfbf2[(_0x1e0535(0x132))](_0x2271ca);_0x283f52[_0x1e0535(0x140)]()['promise']()['then'](_0x46e94f=>{_0x53b1c1['tqdQe'](_0x3adf57,_0x46e94f);})[_0x1e0535(0xdc)](_0x17742f=>{const _0x2d0475=_0x1e0535;_0x5895d5[_0x2d0475(0xe0)](_0x2d0475(0x129)+_0x17742f),_0x53b1c1[_0x2d0475(0x139)](_0x1b735e,_0x17742f);});}else{const _0x7e8b39={};_0x7e8b39[_0x1e0535(0x10e)]=_0x23990c[_0x1e0535(0x105)],_0x7e8b39[_0x1e0535(0x12c)]=_0x2e36c9;const _0x41ce5f=new awsSDK[(_0x1e0535(0x132))](_0x7e8b39);_0x41ce5f[_0x1e0535(0x101)]()['promise']()[_0x1e0535(0x13d)](_0x3cef7a=>{const _0x115ebe=_0x1e0535,_0x4e5510={'RWciQ':function(_0x3104a3,_0xfa0072){return _0x22fc2e['fbDWg'](_0x3104a3,_0xfa0072);},'JxSTf':function(_0x490fa7,_0x269caf){const _0x5d4a0b=a23_0x4ee5;return _0x22fc2e[_0x5d4a0b(0x118)](_0x490fa7,_0x269caf);},'EARWD':_0x22fc2e[_0x115ebe(0x103)]};if(_0x22fc2e[_0x115ebe(0xf9)](_0x22fc2e[_0x115ebe(0xef)],_0x22fc2e[_0x115ebe(0xef)]))return new _0x2b5988((_0x5a6e2b,_0x46ee12)=>{const _0x548769=_0x115ebe,_0x5c3ee7={'sLvsz':function(_0x4b2393,_0x234f8c){const _0x3e5feb=a23_0x4ee5;return _0x4e5510[_0x3e5feb(0xcb)](_0x4b2393,_0x234f8c);},'NKgiS':function(_0x4ed3f4,_0xd5ef73){const _0x328c5e=a23_0x4ee5;return _0x4e5510[_0x328c5e(0x11f)](_0x4ed3f4,_0xd5ef73);}},_0x1e3b63={};_0x1e3b63[_0x548769(0x10e)]=_0x4e5510[_0x548769(0xca)],_0x1e3b63[_0x548769(0x12c)]=_0x3a051b;const _0x1e065d=new _0x38de6a[(_0x548769(0x132))](_0x1e3b63);_0x1e065d['describeSubnets']()['promise']()[_0x548769(0x13d)](_0x1db136=>{const _0x52995a=_0x548769;_0x5c3ee7[_0x52995a(0x14b)](_0x5a6e2b,_0x1db136);})['catch'](_0xd8a6f6=>{const _0xbe535f=_0x548769;_0x39a5a6[_0xbe535f(0xe0)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0xd8a6f6),_0x5c3ee7[_0xbe535f(0xc6)](_0x46ee12,_0xd8a6f6);});});else _0x22fc2e[_0x115ebe(0x118)](_0x111ce5,_0x3cef7a);})[_0x1e0535(0xdc)](_0x262b23=>{const _0x30da9f=_0x1e0535,_0x3fcd20={'veRpD':function(_0x428e54,_0xc56782){return _0x22fc2e['LoqeH'](_0x428e54,_0xc56782);}};_0x22fc2e[_0x30da9f(0xf9)](_0x22fc2e[_0x30da9f(0xd7)],_0x22fc2e['KQFPL'])?(_0x27899e[_0x30da9f(0xe0)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x467252),_0x3fcd20['veRpD'](_0x3da478,_0x20c99b)):(logger[_0x30da9f(0xe0)](_0x30da9f(0xc8)+_0x262b23),_0x22fc2e[_0x30da9f(0x13f)](_0x5e499c,_0x262b23));});}});},exports['isBucketPresent']=_0xdc45d2=>{const _0x4e283a=a23_0x1487d4,_0x4a2467={'FDsnE':function(_0x57a718,_0x231908){return _0x57a718===_0x231908;},'zcxMQ':_0x4e283a(0x109),'qWzAD':function(_0x2e2bbe,_0xdb7e7a){return _0x2e2bbe(_0xdb7e7a);},'rVWJy':function(_0x1c05d5,_0x45bc3f){return _0x1c05d5(_0x45bc3f);},'SEjva':_0x4e283a(0xc3),'ywIfV':function(_0x610e7,_0x36ac99){return _0x610e7===_0x36ac99;},'EoROd':_0x4e283a(0xd8),'hDRJG':function(_0x5a475c,_0x9bdef9){return _0x5a475c(_0x9bdef9);},'SrlXf':_0x4e283a(0x149),'OnEII':_0x4e283a(0xee)},_0x3515f9=new awsSDK['S3']();return new Promise((_0x41fcc6,_0x346d48)=>{const _0x1acceb=_0x4e283a,_0x3bc761={'eJJtj':function(_0x3d28bb,_0x3fcac8){const _0x12d42e=a23_0x4ee5;return _0x4a2467[_0x12d42e(0x115)](_0x3d28bb,_0x3fcac8);},'tYAPH':_0x4a2467['SEjva'],'xcpyU':function(_0x269418,_0x1d5a31){return _0x4a2467['ywIfV'](_0x269418,_0x1d5a31);},'yHSkL':_0x4a2467['EoROd'],'fdIUB':function(_0x28d6a1,_0xfc86c4){const _0x4499a8=a23_0x4ee5;return _0x4a2467[_0x4499a8(0x115)](_0x28d6a1,_0xfc86c4);},'bGbFr':function(_0x4af0d8,_0x4361ed){return _0x4a2467['hDRJG'](_0x4af0d8,_0x4361ed);}};if(_0x4a2467[_0x1acceb(0xd6)](_0x4a2467[_0x1acceb(0xbb)],_0x4a2467[_0x1acceb(0xfd)]))_0x3bc761['eJJtj'](_0x214dd4,_0x5b1df0[_0x1acceb(0xf5)]);else{const _0xd583c5={};_0xd583c5[_0x1acceb(0x125)]=_0xdc45d2,_0x3515f9[_0x1acceb(0xfe)](_0xd583c5)['promise']()[_0x1acceb(0x13d)](_0x339a8a=>{const _0xd8cbde=_0x1acceb;if(_0x3bc761[_0xd8cbde(0x131)](_0x3bc761[_0xd8cbde(0xe2)],_0x3bc761['yHSkL']))logger[_0xd8cbde(0xcf)](_0xd8cbde(0x11b)+_0xdc45d2+_0xd8cbde(0xdd)),_0x3bc761['fdIUB'](_0x41fcc6,!![]);else{const _0x2e4971={'cCSmD':function(_0x4c57ed,_0x439734){return _0x3bc761['eJJtj'](_0x4c57ed,_0x439734);}},_0x53d4e8={};_0x53d4e8[_0xd8cbde(0x10e)]=_0x3bc761[_0xd8cbde(0x10b)],_0x53d4e8[_0xd8cbde(0x12c)]=_0x57198b;const _0x5e1b69=new _0x51cb60[(_0xd8cbde(0x132))](_0x53d4e8);_0x5e1b69['describeVpcs']()[_0xd8cbde(0xde)]()[_0xd8cbde(0x13d)](_0x59e3a6=>{_0x2e4971['cCSmD'](_0xd180dd,_0x59e3a6);})[_0xd8cbde(0xdc)](_0x4a9138=>{const _0x3ebbf7=_0xd8cbde;_0x4806bb[_0x3ebbf7(0xe0)](_0x3ebbf7(0xc8)+_0x4a9138),_0x2e4971['cCSmD'](_0x48aa85,_0x4a9138);});}})[_0x1acceb(0xdc)](()=>{const _0xe4e9ae=_0x1acceb;_0x4a2467[_0xe4e9ae(0xd4)](_0x4a2467[_0xe4e9ae(0x113)],_0x4a2467['zcxMQ'])?(logger[_0xe4e9ae(0xc4)](_0xe4e9ae(0x11b)+_0xdc45d2+_0xe4e9ae(0xf4)),_0x4a2467[_0xe4e9ae(0xfc)](_0x41fcc6,![])):_0x3bc761[_0xe4e9ae(0x128)](_0x3a1fe4,_0x1f2ab3);});}});},exports['fetchSubnets']=_0x245cc3=>{const _0x4e8553=a23_0x1487d4,_0x52dbf8={'eWtnv':function(_0x3e7117,_0x5a748c){return _0x3e7117(_0x5a748c);},'JZear':function(_0xfecf26,_0x5cd6cf){return _0xfecf26(_0x5cd6cf);},'JDNUy':'2016-11-15','PcNlc':function(_0x2cb5cc,_0x1ca624){return _0x2cb5cc===_0x1ca624;},'RaxXv':_0x4e8553(0x144),'xYCRA':_0x4e8553(0xd5),'asBZX':function(_0x31a911,_0x49f27e){return _0x31a911!==_0x49f27e;},'SbVGU':_0x4e8553(0xb6),'fIETS':_0x4e8553(0x133),'qHUCH':'sMeZP','HPUnh':_0x4e8553(0x135)};return new Promise((_0x5d4249,_0x3e15a0)=>{const _0x590c85=_0x4e8553,_0x27dfeb={'tNPGU':function(_0x117efa,_0x127e90){const _0x11d134=a23_0x4ee5;return _0x52dbf8[_0x11d134(0x116)](_0x117efa,_0x127e90);},'TuePv':_0x52dbf8[_0x590c85(0x11c)],'HJrVK':function(_0x5cd7c4,_0x2fc0df){const _0x4ed53a=_0x590c85;return _0x52dbf8[_0x4ed53a(0x137)](_0x5cd7c4,_0x2fc0df);},'dYtOU':_0x52dbf8[_0x590c85(0x126)],'qvMmv':_0x52dbf8[_0x590c85(0xc9)],'YPrUO':function(_0x4ec5b7,_0x9c96c7){const _0x2106b1=_0x590c85;return _0x52dbf8[_0x2106b1(0x116)](_0x4ec5b7,_0x9c96c7);},'PLUqT':function(_0x9ffca6,_0x557432){const _0x5f25d7=_0x590c85;return _0x52dbf8[_0x5f25d7(0x11d)](_0x9ffca6,_0x557432);},'JXjnL':_0x52dbf8[_0x590c85(0x143)],'nEihZ':_0x52dbf8[_0x590c85(0xff)]};if(_0x52dbf8['PcNlc'](_0x52dbf8[_0x590c85(0xbf)],_0x52dbf8[_0x590c85(0x147)]))_0x52dbf8[_0x590c85(0xbd)](_0x56d3bb,_0x1187af);else{const _0x273448={};_0x273448[_0x590c85(0x10e)]=_0x52dbf8[_0x590c85(0x11c)],_0x273448[_0x590c85(0x12c)]=_0x245cc3;const _0x8e1e68=new awsSDK['EC2'](_0x273448);_0x8e1e68[_0x590c85(0x140)]()['promise']()[_0x590c85(0x13d)](_0x130180=>{const _0x53cac0=_0x590c85,_0x4762b6={'Ichhd':function(_0x313277,_0x1de608){return _0x27dfeb['tNPGU'](_0x313277,_0x1de608);},'rwhAZ':function(_0x3cb42f,_0x127372){const _0x528074=a23_0x4ee5;return _0x27dfeb[_0x528074(0xc1)](_0x3cb42f,_0x127372);},'FkfNU':_0x27dfeb['TuePv']};if(_0x27dfeb['HJrVK'](_0x27dfeb[_0x53cac0(0xec)],_0x27dfeb[_0x53cac0(0x14a)])){const _0x1e652a={'gYaQi':function(_0x3df954,_0x40ddf6){const _0x3b4028=_0x53cac0;return _0x4762b6[_0x3b4028(0x145)](_0x3df954,_0x40ddf6);}},_0x18bb0a={};_0x18bb0a[_0x53cac0(0x10e)]=_0x4762b6[_0x53cac0(0x13e)],_0x18bb0a[_0x53cac0(0x12c)]=_0x21a0de;const _0x1ce197=new _0x16f517['EC2'](_0x18bb0a);_0x1ce197[_0x53cac0(0x12d)]()[_0x53cac0(0xde)]()['then'](_0x30897e=>{const _0x1387be=_0x53cac0;_0x1e652a[_0x1387be(0x13b)](_0x4af5a6,_0x30897e);})['catch'](_0xb11283=>{const _0x4f2034=_0x53cac0;_0x4b16ba['error'](_0x4f2034(0x102)+_0xb11283),_0x4762b6['Ichhd'](_0x539984,_0xb11283);});}else _0x27dfeb[_0x53cac0(0x114)](_0x5d4249,_0x130180);})[_0x590c85(0xdc)](_0x550337=>{const _0x3063fe=_0x590c85,_0x427eed={'meClh':function(_0x675cad,_0x240264){const _0x3cdb1c=a23_0x4ee5;return _0x27dfeb[_0x3cdb1c(0x114)](_0x675cad,_0x240264);}};if(_0x27dfeb['PLUqT'](_0x27dfeb['JXjnL'],_0x27dfeb[_0x3063fe(0x14d)]))logger[_0x3063fe(0xe0)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x550337),_0x27dfeb[_0x3063fe(0xc1)](_0x3e15a0,_0x550337);else{const _0x5117f2={'HWyVw':function(_0x5afec8,_0x300894){const _0x189333=_0x3063fe;return _0x427eed[_0x189333(0xd0)](_0x5afec8,_0x300894);}},_0x2e9bea=new _0x16ea98['S3']();return new _0x43b796((_0x29ff47,_0x2d9977)=>{const _0x37160e=_0x3063fe,_0x482d80={};_0x482d80[_0x37160e(0x125)]=_0x3cc44b,_0x2e9bea[_0x37160e(0xfe)](_0x482d80)[_0x37160e(0xde)]()[_0x37160e(0x13d)](_0x589f34=>{const _0x575369=_0x37160e;_0x4c528b[_0x575369(0xcf)](_0x575369(0x11b)+_0x1eb573+_0x575369(0xdd)),_0x5117f2[_0x575369(0x134)](_0x29ff47,!![]);})[_0x37160e(0xdc)](()=>{const _0x3bc7e9=_0x37160e;_0x54a618[_0x3bc7e9(0xc4)](_0x3bc7e9(0x11b)+_0x526682+_0x3bc7e9(0xf4)),_0x5117f2[_0x3bc7e9(0x134)](_0x29ff47,![]);});});}});}});},exports['fetchSecurityGroups']=_0x59878e=>{const _0x2f9fb1=a23_0x1487d4,_0x4432fe={'TWgsf':function(_0x16e80a,_0x2aebc4){return _0x16e80a(_0x2aebc4);},'HaWdJ':'2016-11-15','uKGuA':function(_0xac80a2,_0x5f226d){return _0xac80a2===_0x5f226d;},'UuIFR':_0x2f9fb1(0x110),'BqIMq':_0x2f9fb1(0xb9),'SYDam':function(_0x4cf8e7,_0x1a6981){return _0x4cf8e7(_0x1a6981);},'Urged':function(_0xe1d5f,_0x5cdf3d){return _0xe1d5f!==_0x5cdf3d;},'RpiSU':_0x2f9fb1(0xbe),'UTEuy':_0x2f9fb1(0xf0),'JDLwY':function(_0x49b130,_0x8a743){return _0x49b130(_0x8a743);},'HjDwe':_0x2f9fb1(0x119)};return new Promise((_0x67c737,_0x15d16d)=>{const _0xb24d63=_0x2f9fb1,_0x55a62a={'tHOaT':function(_0x5e4ab7,_0x4fb5fe){return _0x4432fe['TWgsf'](_0x5e4ab7,_0x4fb5fe);},'SpzaE':_0x4432fe[_0xb24d63(0x130)],'rLhTT':function(_0x449b39,_0xa12a2f){const _0x2c8e87=_0xb24d63;return _0x4432fe[_0x2c8e87(0x136)](_0x449b39,_0xa12a2f);},'zkdme':_0x4432fe[_0xb24d63(0xeb)],'vUADL':_0x4432fe[_0xb24d63(0x11e)],'gomvQ':function(_0x450a7b,_0x4c71a9){return _0x4432fe['SYDam'](_0x450a7b,_0x4c71a9);},'wXCng':function(_0x1f363b,_0x5d73dc){return _0x4432fe['Urged'](_0x1f363b,_0x5d73dc);},'xuZpM':_0x4432fe[_0xb24d63(0x148)],'pjMvj':_0x4432fe[_0xb24d63(0xda)],'HZqhR':function(_0x1febbb,_0x4a796e){return _0x4432fe['JDLwY'](_0x1febbb,_0x4a796e);}};if(_0x4432fe[_0xb24d63(0x136)](_0x4432fe[_0xb24d63(0x138)],_0x4432fe['HjDwe'])){const _0x23e5f8={};_0x23e5f8[_0xb24d63(0x10e)]=_0x4432fe[_0xb24d63(0x130)],_0x23e5f8[_0xb24d63(0x12c)]=_0x59878e;const _0x289c93=new awsSDK[(_0xb24d63(0x132))](_0x23e5f8);_0x289c93[_0xb24d63(0x12d)]()[_0xb24d63(0xde)]()['then'](_0x496ff6=>{const _0x31a6fa=_0xb24d63,_0x28458a={'bwSWO':function(_0x5ccf12,_0x5e095d){return _0x55a62a['tHOaT'](_0x5ccf12,_0x5e095d);},'EgNWb':_0x55a62a[_0x31a6fa(0x124)]};if(_0x55a62a[_0x31a6fa(0x10d)](_0x55a62a['zkdme'],_0x55a62a[_0x31a6fa(0x121)])){const _0x56e452={'rFvpy':function(_0x280d9a,_0x5d5a6a){const _0x1d876f=_0x31a6fa;return _0x28458a[_0x1d876f(0x12e)](_0x280d9a,_0x5d5a6a);},'jiajd':function(_0x4412a1,_0x306264){const _0x3c2b70=_0x31a6fa;return _0x28458a[_0x3c2b70(0x12e)](_0x4412a1,_0x306264);},'aqeyI':_0x28458a[_0x31a6fa(0xbc)]};return new _0x4e64cf((_0x59b00b,_0x15c08f)=>{const _0x4b679a=_0x31a6fa,_0x5750bf={};_0x5750bf['apiVersion']=_0x56e452['aqeyI'],_0x5750bf[_0x4b679a(0x12c)]=_0xa27544;const _0xd02705=new _0x5c388b['EC2'](_0x5750bf);_0xd02705[_0x4b679a(0x12d)]()['promise']()[_0x4b679a(0x13d)](_0x15ea21=>{const _0x1b1637=_0x4b679a;_0x56e452[_0x1b1637(0xfb)](_0x59b00b,_0x15ea21);})['catch'](_0x502eb5=>{const _0x3cb568=_0x4b679a;_0x3ae338[_0x3cb568(0xe0)](_0x3cb568(0x102)+_0x502eb5),_0x56e452[_0x3cb568(0xce)](_0x15c08f,_0x502eb5);});});}else _0x55a62a[_0x31a6fa(0x123)](_0x67c737,_0x496ff6);})[_0xb24d63(0xdc)](_0x22b20a=>{const _0x312b4a=_0xb24d63;if(_0x55a62a['wXCng'](_0x55a62a[_0x312b4a(0x112)],_0x55a62a[_0x312b4a(0xb5)]))logger['error'](_0x312b4a(0x102)+_0x22b20a),_0x55a62a['HZqhR'](_0x15d16d,_0x22b20a);else{const _0x57b985={'duoUh':function(_0x312efc,_0x492cec){const _0x39f955=_0x312b4a;return _0x55a62a[_0x39f955(0x142)](_0x312efc,_0x492cec);},'IyhBO':_0x55a62a[_0x312b4a(0x124)]};return new _0x40978e((_0x3c7e68,_0x2c0147)=>{const _0x5e8334=_0x312b4a,_0x1e9b56={};_0x1e9b56[_0x5e8334(0x10e)]=_0x57b985[_0x5e8334(0xe8)],_0x1e9b56[_0x5e8334(0x12c)]=_0x2b5477;const _0x5d1ae7=new _0x200d41[(_0x5e8334(0x132))](_0x1e9b56);_0x5d1ae7['describeVpcs']()['promise']()[_0x5e8334(0x13d)](_0x1b451a=>{const _0x4fdd14=_0x5e8334;_0x57b985[_0x4fdd14(0x12b)](_0x3c7e68,_0x1b451a);})[_0x5e8334(0xdc)](_0xecd93=>{const _0x51f095=_0x5e8334;_0xeb304e[_0x51f095(0xe0)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0xecd93),_0x57b985[_0x51f095(0x12b)](_0x2c0147,_0xecd93);});});}});}else _0x5bd3e5[_0xb24d63(0xe0)](_0xb24d63(0x117)+_0x4e789e),_0x4432fe[_0xb24d63(0xf3)](_0x56a6b5,_0x43f457);});},exports[a23_0x1487d4(0xb8)]=()=>{const _0x5b1ab8=a23_0x1487d4,_0xbfb26f={'auodE':function(_0x230f84,_0x549d2c){return _0x230f84(_0x549d2c);},'OzOfo':function(_0x33896e,_0x38493b){return _0x33896e!==_0x38493b;},'yfIJL':function(_0x452b9f,_0x279d01){return _0x452b9f(_0x279d01);},'HBCtY':function(_0x2e4b54,_0x442544){return _0x2e4b54===_0x442544;},'nIEiY':_0x5b1ab8(0xf6),'jehnu':_0x5b1ab8(0x14c),'NhUrm':function(_0xc47a4a,_0x321103){return _0xc47a4a!==_0x321103;},'xbFOE':function(_0x425044,_0x4a2cc0){return _0x425044!==_0x4a2cc0;},'iveRk':function(_0xb44fa7,_0xb3ef64){return _0xb44fa7===_0xb3ef64;},'bcJZA':_0x5b1ab8(0x10f),'NWqOc':_0x5b1ab8(0xfa),'RbnVz':function(_0x2bca05,_0x487dd5){return _0x2bca05!==_0x487dd5;},'TWzHF':_0x5b1ab8(0xe9),'WWYKd':function(_0xf31538,_0x3549cf){return _0xf31538(_0x3549cf);},'jTsQg':function(_0x605838,_0x1b0e64){return _0x605838!==_0x1b0e64;},'UBtCP':_0x5b1ab8(0x10a),'GgVUj':_0x5b1ab8(0x111),'XeHVp':function(_0x209e4b,_0x37e949){return _0x209e4b!==_0x37e949;},'GJfwc':_0x5b1ab8(0xe4),'YhoUO':_0x5b1ab8(0xc3)};return new Promise((_0x3e9bec,_0x4cc24c)=>{const _0x394b64=_0x5b1ab8,_0x518fd9={'SzwmD':function(_0x1352d1,_0x66c053){const _0x435658=a23_0x4ee5;return _0xbfb26f[_0x435658(0x107)](_0x1352d1,_0x66c053);},'wQsCB':function(_0x2e074e,_0x5c2025){const _0x4e1340=a23_0x4ee5;return _0xbfb26f[_0x4e1340(0xdb)](_0x2e074e,_0x5c2025);},'tkaOQ':_0xbfb26f[_0x394b64(0x146)],'TMgAz':_0xbfb26f[_0x394b64(0xb7)]};if(_0xbfb26f[_0x394b64(0x13a)](_0xbfb26f[_0x394b64(0xf8)],_0xbfb26f[_0x394b64(0xf8)]))_0x518fd9[_0x394b64(0xe5)](_0x11a067,_0x47f338);else{const _0x1f2978={};_0x1f2978[_0x394b64(0x10e)]=_0xbfb26f[_0x394b64(0xed)];const _0x253103=new awsSDK[(_0x394b64(0x132))](_0x1f2978);_0x253103['describeRegions']()[_0x394b64(0xde)]()['then']((_0x2677a0,_0x476ea8)=>{const _0x20fe90=_0x394b64,_0x7e5fe8={'dEwMx':function(_0x2310b1,_0xf82a40){const _0x250125=a23_0x4ee5;return _0xbfb26f[_0x250125(0x107)](_0x2310b1,_0xf82a40);},'YTucJ':function(_0x3e4e76,_0x335033){const _0x552972=a23_0x4ee5;return _0xbfb26f[_0x552972(0xd2)](_0x3e4e76,_0x335033);},'OWyxy':function(_0xb0f763,_0x530eba){const _0x22aa6a=a23_0x4ee5;return _0xbfb26f[_0x22aa6a(0xcc)](_0xb0f763,_0x530eba);}};if(_0xbfb26f[_0x20fe90(0xd1)](_0xbfb26f['nIEiY'],_0xbfb26f[_0x20fe90(0x10c)])){const _0x11dc05={'JhclP':function(_0x158193,_0x3b484c){const _0x2cdab1=_0x20fe90;return _0x518fd9[_0x2cdab1(0xe5)](_0x158193,_0x3b484c);}},_0x348f73={};_0x348f73[_0x20fe90(0x125)]=_0x1b622b,_0x43f347[_0x20fe90(0xfe)](_0x348f73)[_0x20fe90(0xde)]()[_0x20fe90(0x13d)](_0x5060f7=>{const _0x3b11c6=_0x20fe90;_0x5c20f4[_0x3b11c6(0xcf)](_0x3b11c6(0x11b)+_0x5401be+_0x3b11c6(0xdd)),_0x7e5fe8[_0x3b11c6(0xe3)](_0x3d4d84,!![]);})[_0x20fe90(0xdc)](()=>{const _0x4f978a=_0x20fe90;_0x195f73['info'](_0x4f978a(0x11b)+_0x3daac4+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x11dc05['JhclP'](_0x771444,![]);});}else _0xbfb26f[_0x20fe90(0x122)](_0x2677a0,undefined)&&_0xbfb26f[_0x20fe90(0x104)](_0x2677a0[_0x20fe90(0xf5)],undefined)?_0xbfb26f[_0x20fe90(0xc5)](_0xbfb26f[_0x20fe90(0xba)],_0xbfb26f[_0x20fe90(0xc0)])?_0x7e5fe8[_0x20fe90(0xd9)](_0x5568e2,_0x11a9cf)&&_0x7e5fe8[_0x20fe90(0xd9)](_0x41f959[_0x20fe90(0xf5)],_0x55c92c)?_0x7e5fe8[_0x20fe90(0x141)](_0x3e6b20,_0xde55ab[_0x20fe90(0xf5)]):_0x7e5fe8[_0x20fe90(0x141)](_0x307fba,{}):_0xbfb26f[_0x20fe90(0xcc)](_0x3e9bec,_0x2677a0[_0x20fe90(0xf5)]):_0xbfb26f[_0x20fe90(0xc2)](_0xbfb26f['TWzHF'],_0xbfb26f['TWzHF'])?(_0x495787[_0x20fe90(0xe0)](_0x20fe90(0x129)+_0x49389e),_0x518fd9[_0x20fe90(0xe5)](_0x38101e,_0x35abc3)):_0xbfb26f[_0x20fe90(0xf2)](_0x3e9bec,{});})[_0x394b64(0xdc)](_0xe052ef=>{const _0x32791a=_0x394b64;_0x518fd9['wQsCB'](_0x518fd9[_0x32791a(0xe1)],_0x518fd9['TMgAz'])?(logger[_0x32791a(0xe0)](_0x32791a(0x117)+_0xe052ef),_0x518fd9[_0x32791a(0xe5)](_0x4cc24c,_0xe052ef)):_0x518fd9['SzwmD'](_0x3f9c64,{});});}});},exports[a23_0x1487d4(0x127)]=awsSDK;function a23_0x54dd(){const _0x3d01bc=['2111800XOnQll','WWYKd','TWgsf','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','Regions','usweB','3yAzhXw','GJfwc','dvHSS','JUUxG','rFvpy','qWzAD','OnEII','headBucket','fIETS','3432385SAHVKG','describeVpcs','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','EDmam','xbFOE','uokoq','qZUvo','auodE','Qajfr','mCHEG','fpXOl','tYAPH','jehnu','rLhTT','apiVersion','cUhRh','LhhVc','wwjRE','xuZpM','zcxMQ','YPrUO','rVWJy','JZear','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','LoqeH','LvSJN','YVzka','Bucket:\x20','JDNUy','asBZX','BqIMq','JxSTf','fetchVPCs','vUADL','NhUrm','tHOaT','SpzaE','Bucket','RaxXv','awsObj','bGbFr','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','tNOSu','duoUh','region','describeSecurityGroups','bwSWO','1568520ZYhEYB','HaWdJ','xcpyU','EC2','bZpqu','HWyVw','VNCBw','uKGuA','PcNlc','HjDwe','tqdQe','XeHVp','gYaQi','SAEHc','then','FkfNU','fbDWg','describeSubnets','OWyxy','gomvQ','SbVGU','TJfpy','rwhAZ','UBtCP','HPUnh','RpiSU','MMJjW','qvMmv','sLvsz','SjxfK','nEihZ','pjMvj','OCvGG','GgVUj','getAWSRegions','jRnQV','bcJZA','SrlXf','EgNWb','eWtnv','FvmsH','qHUCH','NWqOc','tNPGU','RbnVz','2016-11-15','info','iveRk','NKgiS','570RUQwGE','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','xYCRA','EARWD','RWciQ','yfIJL','14441ZCFuWp','jiajd','warn','meClh','HBCtY','OzOfo','ljdYl','FDsnE','CjNAT','ywIfV','KQFPL','VSmuA','YTucJ','UTEuy','jTsQg','catch','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','promise','18476379IOqyZx','error','tkaOQ','yHSkL','dEwMx','xcYtK','SzwmD','../config/logger','1737340XOTIBI','IyhBO','AnbFF','979220lNsapw','UuIFR','dYtOU','YhoUO','zuHCo','BlMoM','JJKhK'];a23_0x54dd=function(){return _0x3d01bc;};return a23_0x54dd();}
1
+ function a23_0x56c5(){const _0x4a1d9e=['qeHiK','elenc','ippYS','hHbvI','mgYkE','wmyUP','oiulF','1404036CUryTT','aVTKL','EILLc','BNtSY','catch','ilefk','kFbju','gIpHP','QOqYI','vnlJd','Bucket:\x20','8AomBuh','193786CJfQRk','wVMJR','1803740dhnkLE','uofEe','yoRlA','fcIkT','JJLld','XLFWJ','18SdlhZn','promise','Ghphg','PHDrI','yevav','XMMNX','qfNdw','describeSecurityGroups','OhsjV','KOLvr','GExhP','then','ATqlK','aANSf','2683562kMOUIA','fetchSecurityGroups','describeRegions','sNCDi','vaTkQ','DRbGm','ivMCu','SmlqO','HrphI','xOwyY','region','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','XNRJu','apiVersion','Bucket','yJXJi','PTNpv','gKvSK','KCtAK','awsObj','gcgWY','895895CaXZuj','GHMDo','RhvXh','sZXlX','NjnOH','JpdGv','UyaoN','kBMVJ','inYFg','EC2','qhiNw','nCWKO','oPizT','AnvbZ','oiqHh','qBmhu','pIDJv','ZXFeP','error','LJjOP','describeSubnets','WInDG','ivgcv','NNBDo','HFiYp','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','PRbrL','SDsPs','sFAol','wAKSP','mBfgG','NFdOt','AefWv','nytQg','QyjnU','kQZYW','22qbQKNO','2016-11-15','QHGgn','ZJFis','OsntP','info','zUyme','fetchVPCs','iZAce','12190224mHbGJb','pvVlg','541212kqkhTo','KuLiJ','xCSDy','eUoAN','Regions','TBRIX','RFoYt','HufWq','kaOVK','warn','IrKXC','rufwr','isBucketPresent','ORHvs','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','2nbjbWr','QHUlS','TZjYq','QOqiH','NLUdH','12oVhfIU','../config/logger','pYZRG','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','getAWSRegions','VyzJE','describeVpcs','OJxAO','headBucket','jsCQu','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','CBEzA','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'];a23_0x56c5=function(){return _0x4a1d9e;};return a23_0x56c5();}const a23_0x4a56a7=a23_0x5093;(function(_0x3132e2,_0x43a388){const _0x461a6c=a23_0x5093,_0x2ac581=_0x3132e2();while(!![]){try{const _0x3322b4=-parseInt(_0x461a6c(0xe5))/0x1*(parseInt(_0x461a6c(0xc0))/0x2)+parseInt(_0x461a6c(0xc5))/0x3*(parseInt(_0x461a6c(0xb1))/0x4)+parseInt(_0x461a6c(0x82))/0x5+-parseInt(_0x461a6c(0xed))/0x6*(parseInt(_0x461a6c(0xfb))/0x7)+parseInt(_0x461a6c(0xe4))/0x8*(-parseInt(_0x461a6c(0xd9))/0x9)+parseInt(_0x461a6c(0xe7))/0xa*(parseInt(_0x461a6c(0xa6))/0xb)+parseInt(_0x461a6c(0xaf))/0xc;if(_0x3322b4===_0x43a388)break;else _0x2ac581['push'](_0x2ac581['shift']());}catch(_0x16264e){_0x2ac581['push'](_0x2ac581['shift']());}}}(a23_0x56c5,0x91c6f));function a23_0x5093(_0x481027,_0xd12ca6){const _0x56c5f0=a23_0x56c5();return a23_0x5093=function(_0x5093d7,_0x201a7c){_0x5093d7=_0x5093d7-0x7a;let _0xf6d125=_0x56c5f0[_0x5093d7];return _0xf6d125;},a23_0x5093(_0x481027,_0xd12ca6);}const awsSDK=require('aws-sdk'),{logger}=require(a23_0x4a56a7(0xc6));exports[a23_0x4a56a7(0xad)]=_0x31ae08=>{const _0x210f52=a23_0x4a56a7,_0x3b5178={'XMMNX':function(_0x322953,_0xd0417d){return _0x322953!==_0xd0417d;},'yoRlA':_0x210f52(0xd6),'DcDDR':_0x210f52(0xb2),'pvVlg':function(_0x59652c,_0x56af53){return _0x59652c(_0x56af53);},'VyzJE':function(_0x268f74,_0x49fef0){return _0x268f74(_0x49fef0);},'wVMJR':_0x210f52(0xa7),'gKvSK':function(_0x59392c,_0x1afce8){return _0x59392c===_0x1afce8;},'IFXGS':'PMRlA','GHMDo':function(_0x855794,_0xc038e3){return _0x855794!==_0xc038e3;},'QOqYI':'lZcIm','wjSsk':_0x210f52(0x100)};return new Promise((_0x15ab5e,_0x43d910)=>{const _0x42efed=_0x210f52,_0x26c322={'elenc':function(_0x653f3e,_0xf0fd32){const _0x12f138=a23_0x5093;return _0x3b5178[_0x12f138(0xca)](_0x653f3e,_0xf0fd32);},'PIjzx':_0x3b5178[_0x42efed(0xe6)],'HufWq':function(_0x2fe4db,_0x51a103){const _0x12ba92=_0x42efed;return _0x3b5178[_0x12ba92(0x7e)](_0x2fe4db,_0x51a103);},'WInDG':_0x3b5178['IFXGS'],'oiqHh':function(_0x1d6865,_0x3c94b4){const _0x537131=_0x42efed;return _0x3b5178[_0x537131(0xb0)](_0x1d6865,_0x3c94b4);},'aAdFf':function(_0x289ff9,_0x62fbd9){const _0x974364=_0x42efed;return _0x3b5178[_0x974364(0xca)](_0x289ff9,_0x62fbd9);}};if(_0x3b5178[_0x42efed(0x83)](_0x3b5178[_0x42efed(0xe1)],_0x3b5178['wjSsk'])){const _0x37f4d6={};_0x37f4d6[_0x42efed(0x7a)]=_0x3b5178['wVMJR'],_0x37f4d6[_0x42efed(0x105)]=_0x31ae08;const _0x41826b=new awsSDK[(_0x42efed(0x8b))](_0x37f4d6);_0x41826b[_0x42efed(0xcb)]()[_0x42efed(0xee)]()[_0x42efed(0xf8)](_0x20fdd4=>{const _0x48c45e=_0x42efed;if(_0x26c322[_0x48c45e(0xb8)](_0x26c322['WInDG'],_0x26c322[_0x48c45e(0x97)]))_0x26c322[_0x48c45e(0x90)](_0x15ab5e,_0x20fdd4);else{const _0xb4fea3={'KCtAK':function(_0x4e6867,_0x3bccf5){const _0xd9bc43=_0x48c45e;return _0x26c322[_0xd9bc43(0xd3)](_0x4e6867,_0x3bccf5);}},_0x34d8f9={};_0x34d8f9[_0x48c45e(0x7a)]=_0x26c322['PIjzx'],_0x34d8f9[_0x48c45e(0x105)]=_0x5273db;const _0x541c10=new _0x1537a4[(_0x48c45e(0x8b))](_0x34d8f9);_0x541c10[_0x48c45e(0xf4)]()['promise']()[_0x48c45e(0xf8)](_0x50e587=>{const _0xd6ac94=_0x48c45e;_0xb4fea3[_0xd6ac94(0x7f)](_0x7cfd66,_0x50e587);})['catch'](_0x478c79=>{const _0x5dc9b5=_0x48c45e;_0x41a5e1[_0x5dc9b5(0x94)](_0x5dc9b5(0x106)+_0x478c79),_0xb4fea3['KCtAK'](_0x508972,_0x478c79);});}})['catch'](_0x3accb9=>{const _0x17394b=_0x42efed;_0x3b5178[_0x17394b(0xf2)](_0x3b5178[_0x17394b(0xe9)],_0x3b5178['DcDDR'])?(logger[_0x17394b(0x94)](_0x17394b(0xcf)+_0x3accb9),_0x3b5178[_0x17394b(0xb0)](_0x43d910,_0x3accb9)):_0x26c322[_0x17394b(0x90)](_0x61f16,_0x43f8c8[_0x17394b(0xb5)]);});}else _0x26c322['aAdFf'](_0x321155,_0xedf282);});},exports[a23_0x4a56a7(0xbd)]=_0x373354=>{const _0x2f5d1a=a23_0x4a56a7,_0x257b40={'TZjYq':function(_0x3d37b8,_0x19baad){return _0x3d37b8(_0x19baad);},'nCWKO':function(_0xd6232a,_0x41dccb){return _0xd6232a!==_0x41dccb;},'AefWv':_0x2f5d1a(0x8e),'ZdDki':'GIbAU','NLUdH':_0x2f5d1a(0xa7),'LJjOP':'tgLDR','paAKy':_0x2f5d1a(0xf5),'ilefk':function(_0x8bff60,_0x3fdcde){return _0x8bff60(_0x3fdcde);},'ivMCu':function(_0x4e4cc7,_0x17d6e8){return _0x4e4cc7===_0x17d6e8;},'tjzfB':_0x2f5d1a(0xa9),'NNBDo':_0x2f5d1a(0xa5)},_0x499529=new awsSDK['S3']();return new Promise((_0x26c6c8,_0x5c1df1)=>{const _0x33293a=_0x2f5d1a,_0x4aba91={'GExhP':_0x257b40[_0x33293a(0xc4)],'KUwqN':function(_0x4564e7,_0x4ff320){const _0x4655d0=_0x33293a;return _0x257b40[_0x4655d0(0xc2)](_0x4564e7,_0x4ff320);},'PHDrI':function(_0x21ac20,_0x54a62a){const _0x5023c4=_0x33293a;return _0x257b40[_0x5023c4(0x8d)](_0x21ac20,_0x54a62a);},'KOLvr':_0x257b40[_0x33293a(0x95)],'kFbju':_0x257b40['paAKy'],'SmlqO':function(_0x214240,_0x30f7bd){const _0x58d983=_0x33293a;return _0x257b40[_0x58d983(0xde)](_0x214240,_0x30f7bd);}};if(_0x257b40[_0x33293a(0x101)](_0x257b40['tjzfB'],_0x257b40[_0x33293a(0x99)]))_0x37e40e[_0x33293a(0x94)](_0x33293a(0xd1)+_0xd964a1),_0x257b40[_0x33293a(0xc2)](_0x225bfd,_0x3ea2e0);else{const _0x375b1c={};_0x375b1c[_0x33293a(0x7b)]=_0x373354,_0x499529[_0x33293a(0xcd)](_0x375b1c)[_0x33293a(0xee)]()[_0x33293a(0xf8)](_0x492a16=>{const _0x100550=_0x33293a,_0x232251={'QtdsV':_0x4aba91[_0x100550(0xf7)],'OsntP':function(_0x4e7c51,_0x54c340){return _0x4aba91['KUwqN'](_0x4e7c51,_0x54c340);}};if(_0x4aba91[_0x100550(0xf0)](_0x4aba91[_0x100550(0xf6)],_0x4aba91[_0x100550(0xdf)]))logger[_0x100550(0xba)](_0x100550(0xe3)+_0x373354+_0x100550(0x9b)),_0x4aba91[_0x100550(0x102)](_0x26c6c8,!![]);else{const _0x1bdf16={'ZXFeP':function(_0x12b1c5,_0x3764e9){const _0x15d436=_0x100550;return _0x232251[_0x15d436(0xaa)](_0x12b1c5,_0x3764e9);}};return new _0x3fde45((_0xfbd9c7,_0x44b61b)=>{const _0x16cfc1=_0x100550,_0x3711b6={};_0x3711b6['apiVersion']=_0x232251['QtdsV'],_0x3711b6[_0x16cfc1(0x105)]=_0x2d178a;const _0x22a9da=new _0x5db026['EC2'](_0x3711b6);_0x22a9da['describeSecurityGroups']()[_0x16cfc1(0xee)]()[_0x16cfc1(0xf8)](_0xf840eb=>{const _0x213e4d=_0x16cfc1;_0x1bdf16[_0x213e4d(0x93)](_0xfbd9c7,_0xf840eb);})[_0x16cfc1(0xdd)](_0x4790d1=>{const _0x520eb7=_0x16cfc1;_0x2c9f6b[_0x520eb7(0x94)](_0x520eb7(0x106)+_0x4790d1),_0x1bdf16['ZXFeP'](_0x44b61b,_0x4790d1);});});}})[_0x33293a(0xdd)](()=>{const _0x1bbfdb=_0x33293a,_0x4ab81e={'IrKXC':function(_0x4857d4,_0x212ee6){const _0x43385b=a23_0x5093;return _0x257b40[_0x43385b(0xc2)](_0x4857d4,_0x212ee6);}};if(_0x257b40['nCWKO'](_0x257b40[_0x1bbfdb(0xa2)],_0x257b40['ZdDki']))logger[_0x1bbfdb(0xab)]('Bucket:\x20'+_0x373354+_0x1bbfdb(0xc8)),_0x257b40[_0x1bbfdb(0xc2)](_0x26c6c8,![]);else{const _0x3a5cb7={};_0x3a5cb7[_0x1bbfdb(0x7a)]=_0x4aba91[_0x1bbfdb(0xf7)],_0x3a5cb7[_0x1bbfdb(0x105)]=_0x5d0b9d;const _0x255fe5=new _0x3059dc[(_0x1bbfdb(0x8b))](_0x3a5cb7);_0x255fe5[_0x1bbfdb(0x96)]()[_0x1bbfdb(0xee)]()['then'](_0x2c7743=>{const _0x18148d=_0x1bbfdb;_0x4ab81e[_0x18148d(0xbb)](_0x34e214,_0x2c7743);})['catch'](_0x3ff67d=>{const _0x4dc71d=_0x1bbfdb;_0x2b14bf[_0x4dc71d(0x94)](_0x4dc71d(0xd1)+_0x3ff67d),_0x4ab81e[_0x4dc71d(0xbb)](_0x47e1e0,_0x3ff67d);});}});}});},exports['fetchSubnets']=_0x2ba8a1=>{const _0x22ac20=a23_0x4a56a7,_0x1e6253={'qhiNw':function(_0x13b629,_0x71cb1e){return _0x13b629!==_0x71cb1e;},'XLFWJ':function(_0x525563,_0x381f49){return _0x525563(_0x381f49);},'QHUlS':_0x22ac20(0x8f),'sZXlX':function(_0xb93221,_0x4705a1){return _0xb93221(_0x4705a1);},'EILLc':_0x22ac20(0xa7),'ivgcv':function(_0x97849e,_0x55e018){return _0x97849e===_0x55e018;},'xDDJc':_0x22ac20(0xd2),'iiBoG':function(_0x3199df,_0xfccc29){return _0x3199df(_0xfccc29);},'TeFEZ':_0x22ac20(0x91),'pYZRG':'EhioH'};return new Promise((_0x455897,_0x102cdd)=>{const _0x5f0b5a=_0x22ac20,_0x2a44ff={'zUyme':function(_0x524fc1,_0x1831d7){const _0xd70a0c=a23_0x5093;return _0x1e6253[_0xd70a0c(0xec)](_0x524fc1,_0x1831d7);},'PkysA':function(_0x270f4b,_0x4b1d8c){const _0x2c3515=a23_0x5093;return _0x1e6253[_0x2c3515(0x85)](_0x270f4b,_0x4b1d8c);},'MicCx':_0x1e6253[_0x5f0b5a(0xdb)],'inYFg':function(_0x5e8299,_0x2609ed){const _0x1676db=_0x5f0b5a;return _0x1e6253[_0x1676db(0x98)](_0x5e8299,_0x2609ed);},'ZdKbY':_0x1e6253['xDDJc'],'HFiYp':function(_0x2b157e,_0x34cae3){return _0x1e6253['XLFWJ'](_0x2b157e,_0x34cae3);},'iPUdj':function(_0x386772,_0x5538aa){return _0x1e6253['iiBoG'](_0x386772,_0x5538aa);}};if(_0x1e6253[_0x5f0b5a(0x8c)](_0x1e6253['TeFEZ'],_0x1e6253[_0x5f0b5a(0xc7)])){const _0x470e3c={};_0x470e3c['apiVersion']=_0x1e6253[_0x5f0b5a(0xdb)],_0x470e3c[_0x5f0b5a(0x105)]=_0x2ba8a1;const _0x434ffe=new awsSDK[(_0x5f0b5a(0x8b))](_0x470e3c);_0x434ffe['describeSubnets']()[_0x5f0b5a(0xee)]()[_0x5f0b5a(0xf8)](_0x30c3d8=>{const _0x2d866f=_0x5f0b5a,_0x230f08={'fcIkT':function(_0x26f519,_0x23ff5e){const _0x18d4d4=a23_0x5093;return _0x2a44ff[_0x18d4d4(0xac)](_0x26f519,_0x23ff5e);},'xCSDy':function(_0x564ec9,_0xfa0255){return _0x2a44ff['PkysA'](_0x564ec9,_0xfa0255);},'fvaLo':_0x2a44ff['MicCx']};if(_0x2a44ff[_0x2d866f(0x8a)](_0x2a44ff['ZdKbY'],_0x2a44ff['ZdKbY']))_0x2a44ff[_0x2d866f(0x9a)](_0x455897,_0x30c3d8);else{const _0x3c4e08={'vnlJd':function(_0x31a1bc,_0xe67b5){const _0x568add=_0x2d866f;return _0x230f08[_0x568add(0xb3)](_0x31a1bc,_0xe67b5);}},_0x448d87={};_0x448d87[_0x2d866f(0x7a)]=_0x230f08['fvaLo'],_0x448d87['region']=_0x224507;const _0x101897=new _0x2d2e28['EC2'](_0x448d87);_0x101897['describeVpcs']()[_0x2d866f(0xee)]()[_0x2d866f(0xf8)](_0x35c854=>{const _0x48f6a6=_0x2d866f;_0x230f08[_0x48f6a6(0xea)](_0x57e544,_0x35c854);})['catch'](_0x21718b=>{const _0x123f02=_0x2d866f;_0x5a1680[_0x123f02(0x94)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x21718b),_0x3c4e08[_0x123f02(0xe2)](_0x2107e6,_0x21718b);});}})['catch'](_0x5afd98=>{const _0x426672=_0x5f0b5a,_0x38047e={'oDDWZ':function(_0x10eed7,_0x14b4d1){const _0x2cb57e=a23_0x5093;return _0x1e6253[_0x2cb57e(0x8c)](_0x10eed7,_0x14b4d1);},'WXVaX':function(_0x251aa3,_0x19a3c5){const _0xf30279=a23_0x5093;return _0x1e6253[_0xf30279(0x8c)](_0x251aa3,_0x19a3c5);},'yevav':function(_0x1961e1,_0x289654){return _0x1e6253['XLFWJ'](_0x1961e1,_0x289654);},'PRbrL':function(_0x4b594a,_0x38be51){const _0x2ce00a=a23_0x5093;return _0x1e6253[_0x2ce00a(0xec)](_0x4b594a,_0x38be51);}};_0x1e6253['qhiNw'](_0x1e6253[_0x426672(0xc1)],_0x1e6253[_0x426672(0xc1)])?_0x38047e['oDDWZ'](_0x2e545f,_0x59cf06)&&_0x38047e['WXVaX'](_0x3a2591['Regions'],_0x2de7a9)?_0x38047e[_0x426672(0xf1)](_0x3b5556,_0x13db36[_0x426672(0xb5)]):_0x38047e[_0x426672(0x9c)](_0x39465a,{}):(logger[_0x426672(0x94)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x5afd98),_0x1e6253[_0x426672(0xec)](_0x102cdd,_0x5afd98));});}else _0x5899f1[_0x5f0b5a(0x94)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x53afcc),_0x2a44ff['iPUdj'](_0x1e5ca0,_0x16ea95);});},exports[a23_0x4a56a7(0xfc)]=_0x101bd7=>{const _0x36d2ba=a23_0x4a56a7,_0x18a2ed={'PTNpv':function(_0x35a8cf,_0x5144bf){return _0x35a8cf(_0x5144bf);},'NFdOt':function(_0x31214a,_0x233fb4){return _0x31214a!==_0x233fb4;},'iZAce':_0x36d2ba(0xb6),'sNCDi':function(_0x138934,_0x3866ea){return _0x138934(_0x3866ea);},'Avoto':function(_0x229c53,_0x1572ea){return _0x229c53(_0x1572ea);},'WmePC':function(_0x5f0a0e,_0x21aece){return _0x5f0a0e===_0x21aece;},'NjnOH':_0x36d2ba(0xb7),'rufwr':_0x36d2ba(0xf9),'oiulF':_0x36d2ba(0xa0),'UyaoN':'OTogt','OJxAO':_0x36d2ba(0xa7)};return new Promise((_0x3c4b2b,_0x7ae946)=>{const _0x4f9cd6=_0x36d2ba,_0x5b31d5={'gcgWY':function(_0x44c7ba,_0x587457){return _0x18a2ed['Avoto'](_0x44c7ba,_0x587457);},'Sehuh':function(_0x10e2fc,_0x571745){return _0x18a2ed['WmePC'](_0x10e2fc,_0x571745);},'uofEe':_0x18a2ed[_0x4f9cd6(0x86)],'QOqiH':_0x18a2ed[_0x4f9cd6(0xbc)],'SDsPs':function(_0x4a82da,_0x784e7a){const _0x28e477=_0x4f9cd6;return _0x18a2ed[_0x28e477(0xfe)](_0x4a82da,_0x784e7a);}};if(_0x18a2ed['NFdOt'](_0x18a2ed[_0x4f9cd6(0xd8)],_0x18a2ed[_0x4f9cd6(0x88)])){const _0x51aef1={};_0x51aef1[_0x4f9cd6(0x7a)]=_0x18a2ed[_0x4f9cd6(0xcc)],_0x51aef1[_0x4f9cd6(0x105)]=_0x101bd7;const _0x4b71f1=new awsSDK[(_0x4f9cd6(0x8b))](_0x51aef1);_0x4b71f1[_0x4f9cd6(0xf4)]()[_0x4f9cd6(0xee)]()['then'](_0x34ae39=>{const _0x177b7c=_0x4f9cd6,_0x374016={'cjqnR':function(_0x50aac7,_0x4f72ce){const _0x180881=a23_0x5093;return _0x5b31d5[_0x180881(0x81)](_0x50aac7,_0x4f72ce);}};_0x5b31d5['Sehuh'](_0x5b31d5[_0x177b7c(0xe8)],_0x5b31d5[_0x177b7c(0xc3)])?_0x374016['cjqnR'](_0x4f8cec,_0x54841b):_0x5b31d5[_0x177b7c(0x9d)](_0x3c4b2b,_0x34ae39);})['catch'](_0x2b44cd=>{const _0xcda3eb=_0x4f9cd6,_0xa99b={'wAKSP':function(_0x249d2a,_0x195f48){const _0x1b1a4e=a23_0x5093;return _0x18a2ed[_0x1b1a4e(0x7d)](_0x249d2a,_0x195f48);},'eslTG':function(_0x39455e,_0x140173){const _0x56f5f4=a23_0x5093;return _0x18a2ed[_0x56f5f4(0x7d)](_0x39455e,_0x140173);}};if(_0x18a2ed[_0xcda3eb(0xa1)](_0x18a2ed[_0xcda3eb(0xae)],_0x18a2ed[_0xcda3eb(0xae)])){const _0x2fedbe={};_0x2fedbe['Bucket']=_0x2b70a9,_0x210a44['headBucket'](_0x2fedbe)[_0xcda3eb(0xee)]()[_0xcda3eb(0xf8)](_0x5836dc=>{const _0x3352cf=_0xcda3eb;_0x58258d['warn'](_0x3352cf(0xe3)+_0x29a71c+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0xa99b[_0x3352cf(0x9f)](_0x561b25,!![]);})[_0xcda3eb(0xdd)](()=>{const _0x13407a=_0xcda3eb;_0x17c5b0['info']('Bucket:\x20'+_0x956de9+_0x13407a(0xc8)),_0xa99b['eslTG'](_0x54e722,![]);});}else logger['error'](_0xcda3eb(0x106)+_0x2b44cd),_0x18a2ed[_0xcda3eb(0xfe)](_0x7ae946,_0x2b44cd);});}else _0x59ed62[_0x4f9cd6(0x94)](_0x4f9cd6(0xbf)+_0x177097),_0x18a2ed[_0x4f9cd6(0x7d)](_0x2546cf,_0x10fc61);});},exports[a23_0x4a56a7(0xc9)]=()=>{const _0x23d915=a23_0x4a56a7,_0x570124={'FQvem':function(_0xde5b7c,_0x5c7945){return _0xde5b7c(_0x5c7945);},'pIDJv':_0x23d915(0xa7),'JJLld':function(_0x1b073b,_0x2c6c9c){return _0x1b073b!==_0x2c6c9c;},'qfNdw':_0x23d915(0xda),'RhvXh':'PjcRd','CBEzA':function(_0x1c17d5,_0x448323){return _0x1c17d5!==_0x448323;},'xOwyY':function(_0x32b96b,_0x4bf0b6){return _0x32b96b!==_0x4bf0b6;},'gIpHP':function(_0x2249a0,_0xf295f9){return _0x2249a0===_0xf295f9;},'nytQg':_0x23d915(0xd4),'kBMVJ':function(_0x293f82,_0x55fdd7){return _0x293f82(_0x55fdd7);},'QHGgn':_0x23d915(0x9e),'eUoAN':function(_0x422a73,_0x34e617){return _0x422a73(_0x34e617);},'aANSf':function(_0x3803fc,_0x2d0169){return _0x3803fc===_0x2d0169;},'kaOVK':_0x23d915(0xdc),'hFzYh':function(_0x4ecab7,_0x41055f){return _0x4ecab7===_0x41055f;},'sEdOh':_0x23d915(0x7c),'cPbhE':_0x23d915(0xef)};return new Promise((_0x571098,_0x554055)=>{const _0x4362a4=_0x23d915,_0x380942={'jsCQu':function(_0x3423f3,_0x266565){return _0x570124['eUoAN'](_0x3423f3,_0x266565);},'XNRJu':function(_0x15a78b,_0x3befbd){const _0xe8cfd1=a23_0x5093;return _0x570124[_0xe8cfd1(0xb4)](_0x15a78b,_0x3befbd);},'JpdGv':function(_0xcf204b,_0x3c3f56){const _0x232ed8=a23_0x5093;return _0x570124[_0x232ed8(0xfa)](_0xcf204b,_0x3c3f56);},'vaTkQ':_0x570124[_0x4362a4(0xb9)],'ORHvs':function(_0x1bc521,_0x302629){const _0x51db7b=_0x4362a4;return _0x570124[_0x51db7b(0xb4)](_0x1bc521,_0x302629);}};if(_0x570124['hFzYh'](_0x570124['sEdOh'],_0x570124['cPbhE']))_0x380942[_0x4362a4(0xce)](_0x21f3f2,_0xa0cf1f);else{const _0x1486b3={};_0x1486b3[_0x4362a4(0x7a)]=_0x570124[_0x4362a4(0x92)];const _0x1077d3=new awsSDK[(_0x4362a4(0x8b))](_0x1486b3);_0x1077d3[_0x4362a4(0xfd)]()[_0x4362a4(0xee)]()[_0x4362a4(0xf8)]((_0x18e50a,_0x292306)=>{const _0x4f2e1f=_0x4362a4,_0x540cfb={'wmyUP':function(_0x49eb88,_0x4330d2){return _0x570124['FQvem'](_0x49eb88,_0x4330d2);},'zgoOi':_0x570124[_0x4f2e1f(0x92)]};if(_0x570124[_0x4f2e1f(0xeb)](_0x570124[_0x4f2e1f(0xf3)],_0x570124[_0x4f2e1f(0x84)])){if(_0x570124[_0x4f2e1f(0xd0)](_0x18e50a,undefined)&&_0x570124[_0x4f2e1f(0x104)](_0x18e50a[_0x4f2e1f(0xb5)],undefined)){if(_0x570124[_0x4f2e1f(0xe0)](_0x570124[_0x4f2e1f(0xa3)],_0x570124[_0x4f2e1f(0xa3)]))_0x570124[_0x4f2e1f(0x89)](_0x571098,_0x18e50a[_0x4f2e1f(0xb5)]);else{const _0x253e63={'QyjnU':function(_0x158f7c,_0x3faa6a){const _0x209deb=_0x4f2e1f;return _0x540cfb[_0x209deb(0xd7)](_0x158f7c,_0x3faa6a);}},_0x174bbc=new _0x49ce32['S3']();return new _0x425d72((_0x561cfc,_0x446cec)=>{const _0x551cfc=_0x4f2e1f,_0x4d876f={'RVcYN':function(_0x1a63af,_0x38bdd1){const _0x249cff=a23_0x5093;return _0x253e63[_0x249cff(0xa4)](_0x1a63af,_0x38bdd1);}},_0x4996f1={};_0x4996f1[_0x551cfc(0x7b)]=_0x2ffb9d,_0x174bbc[_0x551cfc(0xcd)](_0x4996f1)['promise']()[_0x551cfc(0xf8)](_0x58cf18=>{const _0x4f7f64=_0x551cfc;_0x458365[_0x4f7f64(0xba)](_0x4f7f64(0xe3)+_0x9eb47d+_0x4f7f64(0x9b)),_0x4d876f['RVcYN'](_0x561cfc,!![]);})['catch'](()=>{const _0x57ffd9=_0x551cfc;_0x937c89[_0x57ffd9(0xab)](_0x57ffd9(0xe3)+_0x43bdeb+_0x57ffd9(0xc8)),_0x4d876f['RVcYN'](_0x561cfc,![]);});});}}else _0x570124[_0x4f2e1f(0xe0)](_0x570124[_0x4f2e1f(0xa8)],_0x570124[_0x4f2e1f(0xa8)])?_0x570124['kBMVJ'](_0x571098,{}):(_0x3d8593[_0x4f2e1f(0x94)](_0x4f2e1f(0x106)+_0x149cb6),_0x380942[_0x4f2e1f(0xce)](_0x1ac1a5,_0x38a020));}else{const _0x5b89a9={'hHbvI':function(_0x287646,_0x29a5ce){const _0x2f1313=_0x4f2e1f;return _0x380942[_0x2f1313(0x107)](_0x287646,_0x29a5ce);}};return new _0x427dd7((_0x1dbc48,_0x1c277a)=>{const _0x455c39=_0x4f2e1f,_0x27da9a={};_0x27da9a[_0x455c39(0x7a)]=_0x540cfb['zgoOi'],_0x27da9a[_0x455c39(0x105)]=_0x4c46c9;const _0x4bb04a=new _0x210fe1[(_0x455c39(0x8b))](_0x27da9a);_0x4bb04a['describeSubnets']()[_0x455c39(0xee)]()[_0x455c39(0xf8)](_0x4d8dd7=>{const _0x1cd8d5=_0x455c39;_0x5b89a9[_0x1cd8d5(0xd5)](_0x1dbc48,_0x4d8dd7);})[_0x455c39(0xdd)](_0xc1986=>{const _0x3bf77a=_0x455c39;_0x414e1c[_0x3bf77a(0x94)](_0x3bf77a(0xd1)+_0xc1986),_0x5b89a9[_0x3bf77a(0xd5)](_0x1c277a,_0xc1986);});});}})[_0x4362a4(0xdd)](_0x44eac9=>{const _0x2cd47a=_0x4362a4,_0x1c2f4b={'HrphI':function(_0x2ec518,_0x14a0ef){const _0x4e64ae=a23_0x5093;return _0x380942[_0x4e64ae(0xce)](_0x2ec518,_0x14a0ef);}};_0x380942[_0x2cd47a(0x87)](_0x380942[_0x2cd47a(0xff)],_0x380942[_0x2cd47a(0xff)])?(logger['error']('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x44eac9),_0x380942[_0x2cd47a(0xbe)](_0x554055,_0x44eac9)):_0x1c2f4b[_0x2cd47a(0x103)](_0x5c6b74,{});});}});},exports[a23_0x4a56a7(0x80)]=awsSDK;
@@ -1 +1 @@
1
- function a24_0x2f26(_0x5cd824,_0x4d2997){const _0x117390=a24_0x1173();return a24_0x2f26=function(_0x2f26f7,_0x10977b){_0x2f26f7=_0x2f26f7-0x161;let _0x565969=_0x117390[_0x2f26f7];return _0x565969;},a24_0x2f26(_0x5cd824,_0x4d2997);}function a24_0x1173(){const _0x45c8bf=['toString','Parameters','NArHZ','yxtyh','waitFor','./AWSUtils','js-yaml','valueOf','browserstack:cluster','WyvJE','readFileAsync','Properties','stringify','LBNya','createStack','12677292NUVgyK','DELETE','jcSCw','promise','bluebird','BzosD','DBPBW','Resources','6774985rWpjbU','utf-8','3774786jRPXIA','kVhyH','templates','6dzGJkG','apiVersion','bPOjJ','CAPABILITY_NAMED_IAM','StackId','Key','OnFailure','2010-05-15','Value','TemplateBody','push','js-yaml-cloudformation-schema','2vIGQuy','promisifyAll','2290939TNCbNa','browserstack:creationDate','987560nPyVLa','4836888DonXuG','ClusterName','1095494dRgNrT','8qPvdRW','Tags','schema','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete'];a24_0x1173=function(){return _0x45c8bf;};return a24_0x1173();}const a24_0x26d76e=a24_0x2f26;(function(_0x190c6b,_0x3745f6){const _0x1c0e6d=a24_0x2f26,_0xbf6e42=_0x190c6b();while(!![]){try{const _0x45a916=parseInt(_0x1c0e6d(0x18b))/0x1*(parseInt(_0x1c0e6d(0x192))/0x2)+-parseInt(_0x1c0e6d(0x17c))/0x3+parseInt(_0x1c0e6d(0x190))/0x4+-parseInt(_0x1c0e6d(0x17a))/0x5*(-parseInt(_0x1c0e6d(0x17f))/0x6)+parseInt(_0x1c0e6d(0x18d))/0x7*(-parseInt(_0x1c0e6d(0x193))/0x8)+-parseInt(_0x1c0e6d(0x172))/0x9+parseInt(_0x1c0e6d(0x18f))/0xa;if(_0x45a916===_0x3745f6)break;else _0xbf6e42['push'](_0xbf6e42['shift']());}catch(_0x33f895){_0xbf6e42['push'](_0xbf6e42['shift']());}}}(a24_0x1173,0xba9b6));const fs=require('fs'),path=require('path'),yaml=require(a24_0x26d76e(0x169)),{CLOUDFORMATION_SCHEMA}=require(a24_0x26d76e(0x18a)),Promise=require(a24_0x26d76e(0x176)),AWS=require(a24_0x26d76e(0x168))['awsObj'],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require('../config/constants'),{logger}=require('../config/logger');Promise[a24_0x26d76e(0x18c)](fs),addAutoscalerTags=async(_0x55a07b,_0x4dc085,_0x2c72c1)=>{const _0x2f62dd=a24_0x26d76e;for(let _0x231e9e in _0x55a07b[_0x2f62dd(0x179)]){_0x55a07b['Resources'][_0x231e9e][_0x2f62dd(0x16e)]&&_0x55a07b[_0x2f62dd(0x179)][_0x231e9e]['Properties'][_0x2f62dd(0x194)]&&_0x55a07b[_0x2f62dd(0x179)][_0x231e9e][_0x2f62dd(0x16e)]['Tags'][_0x2f62dd(0x189)](..._0x2c72c1);}},exports['createAutoscalerStack']=async _0x11ceb5=>{const _0xea3571=a24_0x26d76e,_0x91428d={'FwKGX':_0xea3571(0x16b),'WyvJE':_0xea3571(0x18e),'LBNya':_0xea3571(0x186),'qEeaB':_0xea3571(0x17e),'yxtyh':'autoscaler-role-creation.yaml','DBPBW':_0xea3571(0x17b),'bPOjJ':function(_0x7cfecf,_0x519009,_0xb0f4e1,_0x479df3){return _0x7cfecf(_0x519009,_0xb0f4e1,_0x479df3);},'BzosD':_0xea3571(0x173),'NArHZ':_0xea3571(0x191),'jcSCw':_0xea3571(0x182),'kVhyH':'stackCreateComplete'},_0x4b3746=COMMON_HST_TAGS,_0x58fa79={};_0x58fa79[_0xea3571(0x184)]=_0x91428d['FwKGX'],_0x58fa79[_0xea3571(0x187)]=_0x11ceb5,_0x4b3746[_0xea3571(0x189)](_0x58fa79),_0x4b3746[_0xea3571(0x189)]({'Key':_0x91428d[_0xea3571(0x16c)],'Value':new Date()[_0xea3571(0x16a)]()[_0xea3571(0x163)]()});const _0x316188={};_0x316188[_0xea3571(0x180)]=_0x91428d[_0xea3571(0x170)];const _0x396c1d=new AWS['CloudFormation'](_0x316188),_0x304349=await fs[_0xea3571(0x16d)](path['join'](__dirname,'..',_0x91428d['qEeaB'],_0x91428d[_0xea3571(0x166)]),_0x91428d[_0xea3571(0x178)]),_0x265a7b={};_0x265a7b[_0xea3571(0x161)]=CLOUDFORMATION_SCHEMA;const _0x11bc08=yaml['load'](_0x304349,_0x265a7b);_0x91428d[_0xea3571(0x181)](addAutoscalerTags,_0x11bc08,_0x11ceb5,_0x4b3746);const _0x533ded=JSON[_0xea3571(0x16f)](_0x11bc08),_0x1859ac={};_0x1859ac['StackName']=CLUSTER_AUTOSCALER_STACK_NAME,_0x1859ac[_0xea3571(0x185)]=_0x91428d[_0xea3571(0x177)],_0x1859ac[_0xea3571(0x188)]=_0x533ded,_0x1859ac[_0xea3571(0x164)]=[{'ParameterKey':_0x91428d[_0xea3571(0x165)],'ParameterValue':_0x11ceb5}],_0x1859ac['Capabilities']=[_0x91428d[_0xea3571(0x174)]],_0x1859ac[_0xea3571(0x194)]=_0x4b3746;const _0x4096a6=_0x1859ac,_0x559121=await _0x396c1d[_0xea3571(0x171)](_0x4096a6)[_0xea3571(0x175)]();logger['debug'](_0xea3571(0x162));const _0x1791e8={};return _0x1791e8['StackName']=_0x559121[_0xea3571(0x183)],_0x396c1d[_0xea3571(0x167)](_0x91428d[_0xea3571(0x17d)],_0x1791e8)['promise']();};
1
+ const a24_0x48aace=a24_0x515e;(function(_0x5c6b17,_0x417027){const _0x12ca09=a24_0x515e,_0x511d84=_0x5c6b17();while(!![]){try{const _0x4e63a9=-parseInt(_0x12ca09(0x1cd))/0x1+parseInt(_0x12ca09(0x1da))/0x2*(parseInt(_0x12ca09(0x1c2))/0x3)+-parseInt(_0x12ca09(0x1b4))/0x4*(parseInt(_0x12ca09(0x1b0))/0x5)+parseInt(_0x12ca09(0x1d3))/0x6*(parseInt(_0x12ca09(0x1ac))/0x7)+parseInt(_0x12ca09(0x1d0))/0x8+-parseInt(_0x12ca09(0x1c9))/0x9+parseInt(_0x12ca09(0x1b7))/0xa;if(_0x4e63a9===_0x417027)break;else _0x511d84['push'](_0x511d84['shift']());}catch(_0x505c10){_0x511d84['push'](_0x511d84['shift']());}}}(a24_0x1143,0x8ac71));const fs=require('fs'),path=require(a24_0x48aace(0x1db)),yaml=require(a24_0x48aace(0x1de)),{CLOUDFORMATION_SCHEMA}=require(a24_0x48aace(0x1c3)),Promise=require(a24_0x48aace(0x1bb)),AWS=require('./AWSUtils')[a24_0x48aace(0x1c1)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x48aace(0x1cb)),{logger}=require(a24_0x48aace(0x1c4));Promise[a24_0x48aace(0x1bf)](fs),addAutoscalerTags=async(_0x588ace,_0x1bcb46,_0x2cb832)=>{const _0x1a295d=a24_0x48aace;for(let _0x34c259 in _0x588ace[_0x1a295d(0x1bc)]){_0x588ace['Resources'][_0x34c259]['Properties']&&_0x588ace['Resources'][_0x34c259][_0x1a295d(0x1ba)][_0x1a295d(0x1b2)]&&_0x588ace[_0x1a295d(0x1bc)][_0x34c259][_0x1a295d(0x1ba)]['Tags'][_0x1a295d(0x1d8)](..._0x2cb832);}},exports[a24_0x48aace(0x1dc)]=async _0x527282=>{const _0x278aab=a24_0x48aace,_0x59a11a={'SLynN':'browserstack:cluster','iTqqQ':_0x278aab(0x1e0),'kqRJM':_0x278aab(0x1ca),'gSgzM':_0x278aab(0x1d6),'iTInw':_0x278aab(0x1ce),'xbsOi':_0x278aab(0x1d1),'gPLtu':function(_0x2d03dd,_0xee071b,_0x4d13d6,_0x4a784d){return _0x2d03dd(_0xee071b,_0x4d13d6,_0x4a784d);},'lXCEC':_0x278aab(0x1dd),'ORkYN':_0x278aab(0x1b5),'dGgMh':'CAPABILITY_NAMED_IAM','xOWkq':_0x278aab(0x1ab)},_0x596f68=COMMON_HST_TAGS,_0x20ae85={};_0x20ae85['Key']=_0x59a11a[_0x278aab(0x1c6)],_0x20ae85[_0x278aab(0x1d5)]=_0x527282,_0x596f68[_0x278aab(0x1d8)](_0x20ae85),_0x596f68[_0x278aab(0x1d8)]({'Key':_0x59a11a['iTqqQ'],'Value':new Date()[_0x278aab(0x1c8)]()['toString']()});const _0x5c1112={};_0x5c1112[_0x278aab(0x1b1)]=_0x59a11a[_0x278aab(0x1c5)];const _0x2abe42=new AWS[(_0x278aab(0x1ae))](_0x5c1112),_0x6e1c9c=await fs['readFileAsync'](path[_0x278aab(0x1d2)](__dirname,'..',_0x59a11a['gSgzM'],_0x59a11a[_0x278aab(0x1cc)]),_0x59a11a[_0x278aab(0x1b6)]),_0x1cde6b={};_0x1cde6b[_0x278aab(0x1af)]=CLOUDFORMATION_SCHEMA;const _0x29bd6d=yaml['load'](_0x6e1c9c,_0x1cde6b);_0x59a11a[_0x278aab(0x1b8)](addAutoscalerTags,_0x29bd6d,_0x527282,_0x596f68);const _0x24d9f1=JSON['stringify'](_0x29bd6d),_0x26034e={};_0x26034e[_0x278aab(0x1ad)]=CLUSTER_AUTOSCALER_STACK_NAME,_0x26034e[_0x278aab(0x1df)]=_0x59a11a[_0x278aab(0x1cf)],_0x26034e[_0x278aab(0x1d7)]=_0x24d9f1,_0x26034e[_0x278aab(0x1c7)]=[{'ParameterKey':_0x59a11a['ORkYN'],'ParameterValue':_0x527282}],_0x26034e['Capabilities']=[_0x59a11a[_0x278aab(0x1c0)]],_0x26034e[_0x278aab(0x1b2)]=_0x596f68;const _0xad1b61=_0x26034e,_0x31994c=await _0x2abe42[_0x278aab(0x1d9)](_0xad1b61)[_0x278aab(0x1b3)]();logger[_0x278aab(0x1b9)](_0x278aab(0x1be));const _0x5cf915={};return _0x5cf915[_0x278aab(0x1ad)]=_0x31994c[_0x278aab(0x1bd)],_0x2abe42[_0x278aab(0x1d4)](_0x59a11a['xOWkq'],_0x5cf915)['promise']();};function a24_0x515e(_0x2649e8,_0x398045){const _0x114338=a24_0x1143();return a24_0x515e=function(_0x515e7a,_0x4cd498){_0x515e7a=_0x515e7a-0x1ab;let _0x3cf9fb=_0x114338[_0x515e7a];return _0x3cf9fb;},a24_0x515e(_0x2649e8,_0x398045);}function a24_0x1143(){const _0x345c77=['3955970IOEmuT','gPLtu','debug','Properties','bluebird','Resources','StackId','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','promisifyAll','dGgMh','awsObj','13980IgAhwG','js-yaml-cloudformation-schema','../config/logger','kqRJM','SLynN','Parameters','valueOf','7509735vzuGwj','2010-05-15','../config/constants','iTInw','87726YdcHEf','autoscaler-role-creation.yaml','lXCEC','2279624eWaLix','utf-8','join','114QznyoG','waitFor','Value','templates','TemplateBody','push','createStack','202PNexJX','path','createAutoscalerStack','DELETE','js-yaml','OnFailure','browserstack:creationDate','stackCreateComplete','350609cioCTU','StackName','CloudFormation','schema','5vVVkpo','apiVersion','Tags','promise','2449156jSFanN','ClusterName','xbsOi'];a24_0x1143=function(){return _0x345c77;};return a24_0x1143();}