browserstack-node-sdk 1.34.27 → 1.34.29

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 (129) 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 +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/central-scanner/constants.js +1 -1
  101. package/src/helpers/central-scanner/helpers.js +1 -1
  102. package/src/helpers/globals.js +1 -1
  103. package/src/helpers/helper.js +1 -1
  104. package/src/helpers/logger.js +1 -1
  105. package/src/helpers/patchHelper.js +1 -1
  106. package/src/helpers/patchHelpers.js +1 -1
  107. package/src/helpers/percy/Percy.js +1 -1
  108. package/src/helpers/percy/PercyBinary.js +1 -1
  109. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  110. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  111. package/src/helpers/percy/PercySDK.js +1 -1
  112. package/src/helpers/percy/index.js +1 -1
  113. package/src/helpers/percy/utils.js +1 -1
  114. package/src/helpers/performance-tester.js +1 -1
  115. package/src/helpers/request-spy.js +1 -1
  116. package/src/helpers/setKeepAlive.js +1 -1
  117. package/src/helpers/test-observability/constants.js +1 -1
  118. package/src/helpers/test-observability/error-handler.js +1 -1
  119. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  120. package/src/helpers/test-observability/sessionHandler.js +1 -1
  121. package/src/helpers/test-observability/utils.js +1 -1
  122. package/src/helpers/testhub/constants.js +1 -1
  123. package/src/helpers/testhub/testhubHandler.js +1 -1
  124. package/src/helpers/testhub/utils.js +1 -1
  125. package/src/helpers/timeoutPromise.js +1 -1
  126. package/src/helpers/utilities.js +1 -1
  127. package/src/helpers/w3cMapping.js +1 -1
  128. package/src/hubAllocationMethods.js +1 -1
  129. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x2374d0=a15_0x62f6;(function(_0x5848a0,_0x25f988){const _0x3730b1=a15_0x62f6,_0x43266a=_0x5848a0();while(!![]){try{const _0x466b4d=-parseInt(_0x3730b1(0x1f5))/0x1*(-parseInt(_0x3730b1(0x1f7))/0x2)+-parseInt(_0x3730b1(0x241))/0x3*(-parseInt(_0x3730b1(0x21e))/0x4)+parseInt(_0x3730b1(0x23e))/0x5*(-parseInt(_0x3730b1(0x20e))/0x6)+parseInt(_0x3730b1(0x208))/0x7*(-parseInt(_0x3730b1(0x228))/0x8)+-parseInt(_0x3730b1(0x219))/0x9*(parseInt(_0x3730b1(0x235))/0xa)+parseInt(_0x3730b1(0x1f1))/0xb*(-parseInt(_0x3730b1(0x203))/0xc)+parseInt(_0x3730b1(0x20a))/0xd*(parseInt(_0x3730b1(0x1f8))/0xe);if(_0x466b4d===_0x25f988)break;else _0x43266a['push'](_0x43266a['shift']());}catch(_0x3b5a1a){_0x43266a['push'](_0x43266a['shift']());}}}(a15_0x115f,0xb0398));function a15_0x115f(){const _0x557a18=['password','vMsIn','help','parse','Failed\x20to\x20list\x20resources!\x20Error:\x20','6967668IkpaWr','stringify','GET','hpysi','orRYd','6119582GmJpbn','Edsmw','28217215FTXxRo','error','grid-id','dQIDy','2706096BuLfQV','ERROR','../../utils/utilityMethods','status','table','OQYcy','type','beqPl','/packages/cli/get-grids','list','boolean','6716565hkppyL','GHHJz','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','usage','268ZzJpFR','exit','forEach','gChky','handler','bstackAccesskey','description','eRSqW','init-not-called','body','8COjDWF','allGrids','server-error','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','iZXoc','\x0aFound\x20the\x20following\x20grids:\x0a','xSBuj','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','XnzSF','MVtrt','dachJ','RVDwr','10gNrAXf','name','grid-name','running','CHcCS','unknown-error','push','../../config/constants','options','15lLrllQ','existsSync','/packages/cli/get-all-grids','37851PvNXuH','queued','iwfkf','desc','yLElR','command','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VXLSS','Browserstack','xHDVm','statusCode','11QJZBin','grids','requestId','https://','84008Ogvkak','username','30uMGdMf','14icoLsW','LTPzh','fKYxz','../../utils/instrumentationUtils','list-grids-called','log'];a15_0x115f=function(){return _0x557a18;};return a15_0x115f();}function a15_0x62f6(_0x36f8bb,_0xf7bcb3){const _0x115f3b=a15_0x115f();return a15_0x62f6=function(_0x62f62c,_0x1357a7){_0x62f62c=_0x62f62c-0x1ef;let _0x528c73=_0x115f3b[_0x62f62c];return _0x528c73;},a15_0x62f6(_0x36f8bb,_0xf7bcb3);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x2374d0(0x212)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2374d0(0x23c)),{getCredentialsPath,getAuthHeader}=require(a15_0x2374d0(0x210)),{sendInstrumentationEvent}=require(a15_0x2374d0(0x1fb));exports[a15_0x2374d0(0x246)]=a15_0x2374d0(0x1f2),exports[a15_0x2374d0(0x244)]=a15_0x2374d0(0x22b),exports['builder']=function(_0x52f93d){const _0x4fc4a7=a15_0x2374d0,_0x57eda8={};_0x57eda8[_0x4fc4a7(0x213)]=_0x4fc4a7(0x230),_0x57eda8[_0x4fc4a7(0x20d)]=_0x4fc4a7(0x218),_0x57eda8['fKYxz']='help';const _0xa8cacd=_0x57eda8,_0x427428={};_0x427428[_0x4fc4a7(0x224)]=_0xa8cacd['OQYcy'],_0x427428[_0x4fc4a7(0x214)]=_0xa8cacd['dQIDy'];const _0x32396d={};return _0x32396d['all-grids']=_0x427428,_0x52f93d[_0x4fc4a7(0x21d)](HELP_HEADER_MESSAGE[_0x4fc4a7(0x217)]['grid'])[_0x4fc4a7(0x21c)](HELP_FOOTER_MESSAGE)[_0x4fc4a7(0x23d)](_0x32396d)[_0x4fc4a7(0x200)](_0xa8cacd[_0x4fc4a7(0x1fa)])['argv'];},exports[a15_0x2374d0(0x222)]=async function(_0x26605a){const _0x411d26=a15_0x2374d0,_0x5439ef={'orRYd':function(_0x39a64b){return _0x39a64b();},'beqPl':function(_0x4ef328){return _0x4ef328();},'gChky':_0x411d26(0x21b),'tadMt':function(_0x38a811,_0x506a74,_0x3b49aa,_0x176980,_0x358cbf,_0x314cdd,_0x44a5f3){return _0x38a811(_0x506a74,_0x3b49aa,_0x176980,_0x358cbf,_0x314cdd,_0x44a5f3);},'xSBuj':_0x411d26(0x1fc),'dachJ':_0x411d26(0x226),'lmTOg':function(_0x3c348b){return _0x3c348b();},'sDvuS':_0x411d26(0x205),'LTPzh':function(_0x1886aa,_0x4f833a,_0x9acbd1){return _0x1886aa(_0x4f833a,_0x9acbd1);},'eRSqW':function(_0x380725,_0x2c211f,_0x1bb5ea,_0x1f6982,_0x5f13dc,_0x764ee4,_0x4eb69e){return _0x380725(_0x2c211f,_0x1bb5ea,_0x1f6982,_0x5f13dc,_0x764ee4,_0x4eb69e);},'hpysi':function(_0x30f630,_0xd547ce){return _0x30f630!==_0xd547ce;},'iZXoc':function(_0x3b6c09,_0xfdf765){return _0x3b6c09===_0xfdf765;},'XnzSF':_0x411d26(0x22e),'CHcCS':_0x411d26(0x20c),'VXLSS':_0x411d26(0x237),'Edsmw':'status','xHDVm':'running','RVDwr':_0x411d26(0x242),'whJOn':'cluster-name','iwfkf':function(_0x34788e,_0x1a169a){return _0x34788e(_0x1a169a);},'yLElR':_0x411d26(0x247),'GHHJz':'unauthorised','EDUMV':_0x411d26(0x22a),'vMsIn':function(_0x417925,_0x1c7abe,_0x14b5dc,_0x332ffb,_0x29f2bd,_0xb21990,_0xfcaf8d){return _0x417925(_0x1c7abe,_0x14b5dc,_0x332ffb,_0x29f2bd,_0xb21990,_0xfcaf8d);},'MVtrt':_0x411d26(0x23a)};try{global_registry[_0x411d26(0x1f3)]=_0x5439ef[_0x411d26(0x207)](uuidv4);!fs[_0x411d26(0x23f)](_0x5439ef[_0x411d26(0x215)](getCredentialsPath))&&(console['error'](_0x5439ef[_0x411d26(0x221)]),await _0x5439ef['tadMt'](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes[_0x411d26(0x20f)],_0x5439ef[_0x411d26(0x233)],null,_0x26605a),process['exit'](0x1));const _0x281eaf=JSON['parse'](fs['readFileSync'](_0x5439ef['lmTOg'](getCredentialsPath)));let _0xe0a29e=_0x411d26(0x1f4)+AG_API_URL+_0x411d26(0x216);_0x26605a[_0x411d26(0x229)]&&(_0xe0a29e=_0x411d26(0x1f4)+AG_API_URL+_0x411d26(0x240));const _0x3ebd80={'method':_0x5439ef['sDvuS'],'headers':_0x5439ef[_0x411d26(0x1f9)](getAuthHeader,_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1f6)],_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1fe)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x281eaf['Browserstack'][_0x411d26(0x1f6)],global_registry[_0x411d26(0x223)]=_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1fe)],_0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef['xSBuj'],messageTypes['INFO'],null,null,_0x26605a);const _0x5e6942=await _0x5439ef['LTPzh'](got,_0xe0a29e,_0x3ebd80);if(_0x5439ef['hpysi'](_0x5e6942,null)&&_0x5439ef[_0x411d26(0x206)](_0x5e6942,undefined)&&_0x5439ef[_0x411d26(0x22d)](_0x5e6942[_0x411d26(0x1f0)],0xc8)){const _0x25a7f9=JSON[_0x411d26(0x201)](_0x5e6942[_0x411d26(0x227)]);console[_0x411d26(0x1fd)](_0x5439ef[_0x411d26(0x231)]);const _0x353362=[];_0x353362[_0x411d26(0x23b)]([_0x5439ef[_0x411d26(0x239)],_0x5439ef[_0x411d26(0x248)],_0x5439ef[_0x411d26(0x209)],_0x5439ef[_0x411d26(0x1ef)],_0x5439ef[_0x411d26(0x234)],_0x5439ef['whJOn']]),_0x25a7f9[_0x411d26(0x220)](_0x5595f6=>{const _0x3d55f1=_0x411d26;_0x353362[_0x3d55f1(0x23b)]([_0x5595f6['id'],_0x5595f6[_0x3d55f1(0x236)],_0x5595f6[_0x3d55f1(0x211)],_0x5595f6[_0x3d55f1(0x238)],_0x5595f6['queued'],_0x5595f6['clusterName']]);}),console[_0x411d26(0x1fd)](_0x5439ef[_0x411d26(0x243)](table,_0x353362)),process[_0x411d26(0x21f)](0x0);}_0x5439ef[_0x411d26(0x22d)](_0x5e6942[_0x411d26(0x1f0)],0x191)&&(console['error'](_0x5439ef[_0x411d26(0x245)]),await _0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes[_0x411d26(0x20f)],_0x5439ef[_0x411d26(0x21a)],null,_0x26605a),process[_0x411d26(0x21f)](0x1)),console['error'](_0x411d26(0x22c)+JSON[_0x411d26(0x204)](_0x5e6942)),await _0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes['ERROR'],_0x5439ef['EDUMV'],_0x5e6942,_0x26605a),process['exit'](0x1);}catch(_0x37c2b6){console[_0x411d26(0x20b)](_0x411d26(0x202)+_0x37c2b6['stack']),await _0x5439ef[_0x411d26(0x1ff)](sendInstrumentationEvent,_0x26605a,_0x5439ef['xSBuj'],messageTypes['ERROR'],_0x5439ef[_0x411d26(0x232)],_0x37c2b6,_0x26605a),process[_0x411d26(0x21f)](0x1);}};
1
+ const a15_0x4d779a=a15_0x17c8;(function(_0x4d5e2f,_0x1670c9){const _0x255c8b=a15_0x17c8,_0x1ae869=_0x4d5e2f();while(!![]){try{const _0x4d7d50=-parseInt(_0x255c8b(0x1d5))/0x1+parseInt(_0x255c8b(0x1b1))/0x2+-parseInt(_0x255c8b(0x1a2))/0x3+-parseInt(_0x255c8b(0x197))/0x4+-parseInt(_0x255c8b(0x1d7))/0x5*(parseInt(_0x255c8b(0x1c6))/0x6)+parseInt(_0x255c8b(0x1c5))/0x7*(parseInt(_0x255c8b(0x1db))/0x8)+parseInt(_0x255c8b(0x1ac))/0x9;if(_0x4d7d50===_0x1670c9)break;else _0x1ae869['push'](_0x1ae869['shift']());}catch(_0x45475c){_0x1ae869['push'](_0x1ae869['shift']());}}}(a15_0xc43e,0x5a99d));function a15_0xc43e(){const _0xb17a26=['username','bstackUsername','argv','yJioi','exit','429449YzrOXH','grid-id','2136775GFOmzE','body','help','queued','8ntjTzO','epilogue','cluster-name','Browserstack','GET','speTI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','push','pyjpT','../../config/constants','list','https://','KEtHi','grid','888556Koypui','uuid','Gdlzo','rdjsb','LxiDi','error','wmWoC','ERROR','type','AxRGA','table','326733fijYKi','command','iNPFG','uXYaU','EUxOw','/packages/cli/get-all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','feirL','usage','desc','10019187eZcjSV','clusterName','description','jVlXi','grid-name','816246obrPGV','log','name','status','../../utils/utilityMethods','UOBIA','forEach','allGrids','ZedGX','options','init-not-called','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','grids','stack','/packages/cli/get-grids','running','statusCode','INFO','FNisK','bstackAccesskey','263123yRtaOn','6VJIyUN','uGxHv','builder','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','RBkLZ','AkNqA','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','NrqUR','HNrBn'];a15_0xc43e=function(){return _0xb17a26;};return a15_0xc43e();}function a15_0x17c8(_0x17cef6,_0x1f2584){const _0xc43e22=a15_0xc43e();return a15_0x17c8=function(_0x17c8bb,_0x1d8676){_0x17c8bb=_0x17c8bb-0x197;let _0x33161d=_0xc43e22[_0x17c8bb];return _0x33161d;},a15_0x17c8(_0x17cef6,_0x1f2584);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x4d779a(0x1a1)),{v4:uuidv4}=require(a15_0x4d779a(0x198)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4d779a(0x1e4)),{getCredentialsPath,getAuthHeader}=require(a15_0x4d779a(0x1b5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x4d779a(0x1a3)]=a15_0x4d779a(0x1bd),exports[a15_0x4d779a(0x1ab)]=a15_0x4d779a(0x1c9),exports[a15_0x4d779a(0x1c8)]=function(_0x34964b){const _0x3aaa32=a15_0x4d779a,_0x3bf720={};_0x3bf720[_0x3aaa32(0x1af)]=_0x3aaa32(0x1bc),_0x3bf720[_0x3aaa32(0x1cf)]='boolean',_0x3bf720['AxRGA']='help';const _0x318fb0=_0x3bf720,_0x595cd7={};_0x595cd7[_0x3aaa32(0x1ae)]=_0x318fb0[_0x3aaa32(0x1af)],_0x595cd7[_0x3aaa32(0x19f)]=_0x318fb0[_0x3aaa32(0x1cf)];const _0x445a45={};return _0x445a45['all-grids']=_0x595cd7,_0x34964b[_0x3aaa32(0x1aa)](HELP_HEADER_MESSAGE[_0x3aaa32(0x1e5)][_0x3aaa32(0x1e8)])[_0x3aaa32(0x1dc)](HELP_FOOTER_MESSAGE)[_0x3aaa32(0x1ba)](_0x445a45)[_0x3aaa32(0x1d9)](_0x318fb0[_0x3aaa32(0x1a0)])[_0x3aaa32(0x1d2)];},exports['handler']=async function(_0x160dac){const _0x1ff54d=a15_0x4d779a,_0x43004d={'yJioi':function(_0x2d333b){return _0x2d333b();},'ZedGX':_0x1ff54d(0x1e1),'iNPFG':function(_0x6d7a8a,_0x107b62,_0x335225,_0x55cdb6,_0x22893a,_0x3d4162,_0x20b2b6){return _0x6d7a8a(_0x107b62,_0x335225,_0x55cdb6,_0x22893a,_0x3d4162,_0x20b2b6);},'Gdlzo':'list-grids-called','yQDTC':_0x1ff54d(0x1bb),'dPJmr':_0x1ff54d(0x1df),'UOBIA':function(_0x5a59f5,_0x56b9ca,_0x5c4907){return _0x5a59f5(_0x56b9ca,_0x5c4907);},'AkNqA':function(_0x56aee4,_0x329180,_0x1f015a,_0x1ed516,_0x4308fb,_0x28285a,_0x2fef9d){return _0x56aee4(_0x329180,_0x1f015a,_0x1ed516,_0x4308fb,_0x28285a,_0x2fef9d);},'DNHtj':function(_0x458f5a,_0x323c6c){return _0x458f5a!==_0x323c6c;},'wmWoC':function(_0x1c375e,_0x2da377){return _0x1c375e!==_0x2da377;},'uGxHv':function(_0x428209,_0x564535){return _0x428209===_0x564535;},'rdjsb':'\x0aFound\x20the\x20following\x20grids:\x0a','ooPgw':_0x1ff54d(0x1d6),'hdlJb':_0x1ff54d(0x1b0),'EUxOw':_0x1ff54d(0x1b4),'FNisK':_0x1ff54d(0x1c0),'NrqUR':_0x1ff54d(0x1da),'JHvXB':_0x1ff54d(0x1dd),'uXYaU':function(_0x3458de,_0x383e3a){return _0x3458de(_0x383e3a);},'pyjpT':function(_0x36c38e,_0x2f1561){return _0x36c38e===_0x2f1561;},'lYMIZ':_0x1ff54d(0x1a8),'RBkLZ':function(_0x59504f,_0xd37745,_0x3346a6,_0x6accc0,_0x507838,_0x38327d,_0x27661e){return _0x59504f(_0xd37745,_0x3346a6,_0x6accc0,_0x507838,_0x38327d,_0x27661e);},'KEtHi':'unauthorised','SGXAs':function(_0x17aeb4,_0x2a9c6c,_0x33195f,_0x4b6a46,_0x4d3eb9,_0x51eda0,_0x3e5078){return _0x17aeb4(_0x2a9c6c,_0x33195f,_0x4b6a46,_0x4d3eb9,_0x51eda0,_0x3e5078);},'feirL':'server-error','speTI':function(_0x46cb7b,_0x3a157c,_0x153a54,_0x30e6a8,_0x53f648,_0xdf1a7d,_0x487609){return _0x46cb7b(_0x3a157c,_0x153a54,_0x30e6a8,_0x53f648,_0xdf1a7d,_0x487609);},'LxiDi':'unknown-error'};try{global_registry['requestId']=_0x43004d['yJioi'](uuidv4);!fs['existsSync'](_0x43004d[_0x1ff54d(0x1d3)](getCredentialsPath))&&(console[_0x1ff54d(0x19c)](_0x43004d[_0x1ff54d(0x1b9)]),await _0x43004d[_0x1ff54d(0x1a4)](sendInstrumentationEvent,_0x160dac,_0x43004d['Gdlzo'],messageTypes['ERROR'],_0x43004d['yQDTC'],null,_0x160dac),process['exit'](0x1));const _0x43d78b=JSON['parse'](fs['readFileSync'](_0x43004d[_0x1ff54d(0x1d3)](getCredentialsPath)));let _0x5e9b71=_0x1ff54d(0x1e6)+AG_API_URL+_0x1ff54d(0x1bf);_0x160dac[_0x1ff54d(0x1b8)]&&(_0x5e9b71=_0x1ff54d(0x1e6)+AG_API_URL+_0x1ff54d(0x1a7));const _0x2dde94={'method':_0x43004d['dPJmr'],'headers':_0x43004d[_0x1ff54d(0x1b6)](getAuthHeader,_0x43d78b['Browserstack'][_0x1ff54d(0x1d0)],_0x43d78b[_0x1ff54d(0x1de)][_0x1ff54d(0x1cc)]),'throwHttpErrors':![]};global_registry[_0x1ff54d(0x1d1)]=_0x43d78b[_0x1ff54d(0x1de)][_0x1ff54d(0x1d0)],global_registry[_0x1ff54d(0x1c4)]=_0x43d78b[_0x1ff54d(0x1de)][_0x1ff54d(0x1cc)],_0x43004d[_0x1ff54d(0x1cb)](sendInstrumentationEvent,_0x160dac,_0x43004d[_0x1ff54d(0x199)],messageTypes[_0x1ff54d(0x1c2)],null,null,_0x160dac);const _0x408652=await _0x43004d['UOBIA'](got,_0x5e9b71,_0x2dde94);if(_0x43004d['DNHtj'](_0x408652,null)&&_0x43004d[_0x1ff54d(0x19d)](_0x408652,undefined)&&_0x43004d[_0x1ff54d(0x1c7)](_0x408652[_0x1ff54d(0x1c1)],0xc8)){const _0x3ebf83=JSON['parse'](_0x408652[_0x1ff54d(0x1d8)]);console['log'](_0x43004d[_0x1ff54d(0x19a)]);const _0x3c3eb1=[];_0x3c3eb1[_0x1ff54d(0x1e2)]([_0x43004d['ooPgw'],_0x43004d['hdlJb'],_0x43004d[_0x1ff54d(0x1a6)],_0x43004d[_0x1ff54d(0x1c3)],_0x43004d[_0x1ff54d(0x1ce)],_0x43004d['JHvXB']]),_0x3ebf83[_0x1ff54d(0x1b7)](_0x5daa59=>{const _0x3392f2=_0x1ff54d;_0x3c3eb1[_0x3392f2(0x1e2)]([_0x5daa59['id'],_0x5daa59[_0x3392f2(0x1b3)],_0x5daa59[_0x3392f2(0x1b4)],_0x5daa59[_0x3392f2(0x1c0)],_0x5daa59[_0x3392f2(0x1da)],_0x5daa59[_0x3392f2(0x1ad)]]);}),console[_0x1ff54d(0x1b2)](_0x43004d[_0x1ff54d(0x1a5)](table,_0x3c3eb1)),process[_0x1ff54d(0x1d4)](0x0);}_0x43004d[_0x1ff54d(0x1e3)](_0x408652[_0x1ff54d(0x1c1)],0x191)&&(console[_0x1ff54d(0x19c)](_0x43004d['lYMIZ']),await _0x43004d[_0x1ff54d(0x1ca)](sendInstrumentationEvent,_0x160dac,_0x43004d[_0x1ff54d(0x199)],messageTypes[_0x1ff54d(0x19e)],_0x43004d[_0x1ff54d(0x1e7)],null,_0x160dac),process[_0x1ff54d(0x1d4)](0x1)),console[_0x1ff54d(0x19c)](_0x1ff54d(0x1cd)+JSON['stringify'](_0x408652)),await _0x43004d['SGXAs'](sendInstrumentationEvent,_0x160dac,_0x43004d['Gdlzo'],messageTypes[_0x1ff54d(0x19e)],_0x43004d[_0x1ff54d(0x1a9)],_0x408652,_0x160dac),process['exit'](0x1);}catch(_0x27f668){console[_0x1ff54d(0x19c)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x27f668[_0x1ff54d(0x1be)]),await _0x43004d[_0x1ff54d(0x1e0)](sendInstrumentationEvent,_0x160dac,_0x43004d[_0x1ff54d(0x199)],messageTypes[_0x1ff54d(0x19e)],_0x43004d[_0x1ff54d(0x19b)],_0x27f668,_0x160dac),process[_0x1ff54d(0x1d4)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x4b5d(_0x58e57a,_0x18f40a){const _0x43270f=a16_0x4327();return a16_0x4b5d=function(_0x4b5d78,_0x2a7a1e){_0x4b5d78=_0x4b5d78-0x14b;let _0x162abc=_0x43270f[_0x4b5d78];return _0x162abc;},a16_0x4b5d(_0x58e57a,_0x18f40a);}const a16_0x4db69a=a16_0x4b5d;(function(_0x2def05,_0x91c7f4){const _0x1c9e78=a16_0x4b5d,_0x466b85=_0x2def05();while(!![]){try{const _0x58ef22=-parseInt(_0x1c9e78(0x15f))/0x1+-parseInt(_0x1c9e78(0x15a))/0x2*(-parseInt(_0x1c9e78(0x152))/0x3)+parseInt(_0x1c9e78(0x162))/0x4*(-parseInt(_0x1c9e78(0x14c))/0x5)+-parseInt(_0x1c9e78(0x154))/0x6+parseInt(_0x1c9e78(0x158))/0x7+-parseInt(_0x1c9e78(0x153))/0x8*(parseInt(_0x1c9e78(0x14d))/0x9)+-parseInt(_0x1c9e78(0x151))/0xa*(-parseInt(_0x1c9e78(0x157))/0xb);if(_0x58ef22===_0x91c7f4)break;else _0x466b85['push'](_0x466b85['shift']());}catch(_0x38713b){_0x466b85['push'](_0x466b85['shift']());}}}(a16_0x4327,0x61f2d));function a16_0x4327(){const _0x423dd5=['1296yGFkJS','1766244XphJJk','recommendCommands','Start\x20an\x20existing\x20Automation\x20grid.','11XePSCd','2152682MDmINF','usage','2734kCTXDd','start','epilogue','commandDir','uCUwA','113181kKVyJp','help','builder','1527644lmTbBA','demandCommand','10XMPVBF','32706tJQzzh','desc','UxiQF','handler','16432380plUYIP','462tLtCSR'];a16_0x4327=function(){return _0x423dd5;};return a16_0x4327();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x4db69a(0x15b),exports[a16_0x4db69a(0x14e)]=a16_0x4db69a(0x156),exports[a16_0x4db69a(0x161)]=function(_0x32435a){const _0x5f48cc=a16_0x4db69a,_0x4cf5f8={};_0x4cf5f8[_0x5f48cc(0x14f)]='start_commands',_0x4cf5f8[_0x5f48cc(0x15e)]=_0x5f48cc(0x160);const _0x5104c2=_0x4cf5f8;return _0x32435a[_0x5f48cc(0x159)](HELP_HEADER_MESSAGE[_0x5f48cc(0x15b)])[_0x5f48cc(0x15c)](HELP_FOOTER_MESSAGE)[_0x5f48cc(0x15d)](_0x5104c2[_0x5f48cc(0x14f)])[_0x5f48cc(0x14b)]()[_0x5f48cc(0x155)]()['strict']()[_0x5f48cc(0x160)](_0x5104c2[_0x5f48cc(0x15e)]);},exports[a16_0x4db69a(0x150)]=function(_0x2e0d1e){};
1
+ const a16_0x550609=a16_0x5b43;(function(_0x952d6f,_0x22a36d){const _0xfac347=a16_0x5b43,_0x5ef401=_0x952d6f();while(!![]){try{const _0x41bf22=parseInt(_0xfac347(0xcd))/0x1*(-parseInt(_0xfac347(0xd6))/0x2)+-parseInt(_0xfac347(0xda))/0x3*(-parseInt(_0xfac347(0xd9))/0x4)+-parseInt(_0xfac347(0xcb))/0x5+-parseInt(_0xfac347(0xcc))/0x6*(-parseInt(_0xfac347(0xdc))/0x7)+parseInt(_0xfac347(0xc7))/0x8+parseInt(_0xfac347(0xcf))/0x9+-parseInt(_0xfac347(0xd5))/0xa;if(_0x41bf22===_0x22a36d)break;else _0x5ef401['push'](_0x5ef401['shift']());}catch(_0x504080){_0x5ef401['push'](_0x5ef401['shift']());}}}(a16_0x3853,0xbb182));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x550609(0xd3)]='start',exports[a16_0x550609(0xce)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x550609(0xca)]=function(_0x52be37){const _0x350e9e=a16_0x550609,_0x1e9e28={};_0x1e9e28[_0x350e9e(0xd1)]=_0x350e9e(0xd0),_0x1e9e28[_0x350e9e(0xc8)]=_0x350e9e(0xd4);const _0x59d4bc=_0x1e9e28;return _0x52be37[_0x350e9e(0xc6)](HELP_HEADER_MESSAGE[_0x350e9e(0xdb)])[_0x350e9e(0xd7)](HELP_FOOTER_MESSAGE)['commandDir'](_0x59d4bc[_0x350e9e(0xd1)])[_0x350e9e(0xd2)]()[_0x350e9e(0xc9)]()['strict']()[_0x350e9e(0xd4)](_0x59d4bc[_0x350e9e(0xc8)]);},exports[a16_0x550609(0xd8)]=function(_0x1a94d1){};function a16_0x5b43(_0x3d925e,_0x5b59c6){const _0x38539b=a16_0x3853();return a16_0x5b43=function(_0x5b4370,_0x20b698){_0x5b4370=_0x5b4370-0xc6;let _0x5038ce=_0x38539b[_0x5b4370];return _0x5038ce;},a16_0x5b43(_0x3d925e,_0x5b59c6);}function a16_0x3853(){const _0xe51224=['command','help','19864790Abadtx','1028wiZqdR','epilogue','handler','5494220ZqNjBW','3sQiHRN','start','14RtNglm','usage','7588016QiaZqu','YTmAN','recommendCommands','builder','6528730eutmzr','3036786xBKKCN','467VXGyJM','desc','8678538ZHWYkd','start_commands','NTXWc','demandCommand'];a16_0x3853=function(){return _0xe51224;};return a16_0x3853();}
@@ -1 +1 @@
1
- function a17_0x6095(){const _0x3aceb1=['60oAhebZ','cfmnz','start-grid-called','Grid\x20started','parse','../../config/constants','usage','1879380kTkWTT','stringify','../../utils/utilityMethods','WFVHA','username','vnChD','<PasswordPlaceholder>','415542NOFvrX','password','3105204xmIBFB','2353732OCIMxS','debug','builder','iQrXf','LZHih','gridId','GBiyr','exit','<UsernamePlaceholder>','start','grid','command','WebSocket','ymCcG','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','843354JJxVJx','161pWJRvd','hDrwW','2154699vMxutK','argv','grid-id','help','existsSync','10uuPpOv','Start\x20an\x20existing\x20Automation\x20grid.','XbAFp','message','xLXDv','reconnecting-websocket','statusCode','region','Adding\x20Websocket\x20listeners','clusterRegion','INFO','readFileSync','pEqWw','hhVKh','body','init-not-called','skip-tls-cert-verify','../../config/logger','mAvYm','Skip\x20insecure\x20cert\x20verification.','skipTlsCertVerify','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','fqjYg','gtGFo','type','error','cloudProvider','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','bstackAccesskey','server-error','name','bstackUsername','60944NyEjkA','boolean','invalid-grid-id','addListeners','MGNke','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/gridComponents','Browserstack','handler','ERROR','string','QTCpM','replace','IMIhM','info','GJLYc','clusterName','description','desc'];a17_0x6095=function(){return _0x3aceb1;};return a17_0x6095();}const a17_0x230141=a17_0x59b2;(function(_0x4abc54,_0x40b862){const _0x301783=a17_0x59b2,_0x23b886=_0x4abc54();while(!![]){try{const _0x10d806=parseInt(_0x301783(0x1aa))/0x1+parseInt(_0x301783(0x1a3))/0x2+-parseInt(_0x301783(0x1bf))/0x3+-parseInt(_0x301783(0x1ad))/0x4+parseInt(_0x301783(0x1c4))/0x5*(parseInt(_0x301783(0x1ac))/0x6)+-parseInt(_0x301783(0x1bd))/0x7*(-parseInt(_0x301783(0x1e4))/0x8)+-parseInt(_0x301783(0x1bc))/0x9*(parseInt(_0x301783(0x19c))/0xa);if(_0x10d806===_0x40b862)break;else _0x23b886['push'](_0x23b886['shift']());}catch(_0x235a23){_0x23b886['push'](_0x23b886['shift']());}}}(a17_0x6095,0xaa124));function a17_0x59b2(_0x4e6668,_0x475b8e){const _0x60951=a17_0x6095();return a17_0x59b2=function(_0x59b288,_0x3cfb29){_0x59b288=_0x59b288-0x18d;let _0x417545=_0x60951[_0x59b288];return _0x417545;},a17_0x59b2(_0x4e6668,_0x475b8e);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x230141(0x1c9)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x230141(0x1a1)),{logger}=require(a17_0x230141(0x1d5)),{getCredentialsPath,getGridDetails}=require(a17_0x230141(0x1a5)),{scaleUpHubDeployment}=require(a17_0x230141(0x18f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a17_0x230141(0x1b8)]=a17_0x230141(0x1b7),exports[a17_0x230141(0x19b)]=a17_0x230141(0x1c5),exports[a17_0x230141(0x1af)]=function(_0x22d988){const _0x326b41=a17_0x230141,_0x2d4415={};_0x2d4415['XdOrj']=_0x326b41(0x1bb),_0x2d4415[_0x326b41(0x1c6)]=_0x326b41(0x193),_0x2d4415['MGNke']=_0x326b41(0x1d7),_0x2d4415[_0x326b41(0x196)]=_0x326b41(0x1e5),_0x2d4415[_0x326b41(0x194)]=_0x326b41(0x1c2);const _0x90d928=_0x2d4415,_0xd05d40={};_0xd05d40[_0x326b41(0x19a)]=_0x90d928['XdOrj'],_0xd05d40['type']=_0x90d928[_0x326b41(0x1c6)];const _0x1bea69={};_0x1bea69[_0x326b41(0x19a)]=_0x90d928[_0x326b41(0x18d)],_0x1bea69[_0x326b41(0x1dc)]=_0x90d928[_0x326b41(0x196)],_0x1bea69['default']=![];const _0x14f407={};return _0x14f407[_0x326b41(0x1c1)]=_0xd05d40,_0x14f407[_0x326b41(0x1d4)]=_0x1bea69,_0x22d988[_0x326b41(0x1a2)](HELP_HEADER_MESSAGE[_0x326b41(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x14f407)[_0x326b41(0x1c2)](_0x90d928['QTCpM'])[_0x326b41(0x1c0)];},exports[a17_0x230141(0x191)]=async function(_0x352167){const _0x4324fd=a17_0x230141,_0x168bea={'xcdoi':_0x4324fd(0x1d9),'erUti':function(_0x5acc16){return _0x5acc16();},'iCcJZ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pEqWw':function(_0x39c432,_0x5402fc,_0x5ac676,_0x447c5e,_0x3498dd,_0x2b3145,_0x3b3181){return _0x39c432(_0x5402fc,_0x5ac676,_0x447c5e,_0x3498dd,_0x2b3145,_0x3b3181);},'xLXDv':_0x4324fd(0x19e),'GBiyr':_0x4324fd(0x1d3),'hhVKh':function(_0x5eaaeb,_0x17471c,_0x42c0b2,_0x34f242,_0x923556,_0x1bbcf4,_0x974b18){return _0x5eaaeb(_0x17471c,_0x42c0b2,_0x34f242,_0x923556,_0x1bbcf4,_0x974b18);},'fqjYg':function(_0x28e213){return _0x28e213();},'jdcQF':_0x4324fd(0x1b5),'LZHih':_0x4324fd(0x1a9),'WFVHA':_0x4324fd(0x1cc),'iQrXf':function(_0x5316fd,_0x159c5c,_0x389247,_0x26b6f0){return _0x5316fd(_0x159c5c,_0x389247,_0x26b6f0);},'vnChD':function(_0x271192,_0x2f5a9f,_0x5a7541){return _0x271192(_0x2f5a9f,_0x5a7541);},'gtGFo':function(_0x3dbcc4,_0x284847,_0x1762b3){return _0x3dbcc4(_0x284847,_0x1762b3);},'RMozs':_0x4324fd(0x19f),'mAvYm':function(_0x53d453,_0x543fb6){return _0x53d453===_0x543fb6;},'EQKMQ':_0x4324fd(0x18e),'ymCcG':'unauthorised','Jkhns':function(_0x4d6dc8,_0x5d6a02,_0x418586,_0x744fb9,_0x4b0265,_0x5b3488,_0x38f558){return _0x4d6dc8(_0x5d6a02,_0x418586,_0x744fb9,_0x4b0265,_0x5b3488,_0x38f558);},'hDrwW':_0x4324fd(0x1e6),'cfmnz':function(_0x29b866,_0x1de67d,_0x231723,_0x412d76,_0x253354,_0x1c8797,_0x504c99){return _0x29b866(_0x1de67d,_0x231723,_0x412d76,_0x253354,_0x1c8797,_0x504c99);},'GJLYc':_0x4324fd(0x1e1)};let _0x13fa53;try{!_0x352167['gridId']&&(logger[_0x4324fd(0x1dd)](_0x168bea['xcdoi']),process[_0x4324fd(0x1b4)](0x1));!fs[_0x4324fd(0x1c3)](_0x168bea['erUti'](getCredentialsPath))&&(logger[_0x4324fd(0x1dd)](_0x168bea['iCcJZ']),await _0x168bea[_0x4324fd(0x1d0)](sendInstrumentationEvent,_0x352167,_0x168bea[_0x4324fd(0x1c8)],messageTypes[_0x4324fd(0x192)],_0x168bea[_0x4324fd(0x1b3)],null,_0x352167),process[_0x4324fd(0x1b4)](0x1));logger[_0x4324fd(0x197)]('Starting\x20grid\x20'+_0x352167[_0x4324fd(0x1b2)]),await _0x168bea[_0x4324fd(0x1d1)](sendInstrumentationEvent,_0x352167,_0x168bea['xLXDv'],messageTypes[_0x4324fd(0x1ce)],null,null,_0x352167);const _0x54541e=JSON[_0x4324fd(0x1a0)](fs[_0x4324fd(0x1cf)](_0x168bea[_0x4324fd(0x1da)](getCredentialsPath)));global_registry[_0x4324fd(0x1e3)]=_0x54541e[_0x4324fd(0x190)][_0x4324fd(0x1a7)],global_registry[_0x4324fd(0x1e0)]=_0x54541e[_0x4324fd(0x190)][_0x4324fd(0x1ab)];const _0x3e138a=WS_ENDPOINT[_0x4324fd(0x195)](_0x168bea['jdcQF'],_0x54541e['Browserstack'][_0x4324fd(0x1a7)])[_0x4324fd(0x195)](_0x168bea[_0x4324fd(0x1b1)],_0x54541e[_0x4324fd(0x190)][_0x4324fd(0x1ab)]),_0x4350bb={};_0x4350bb[_0x4324fd(0x1b9)]=ws,_0x4350bb['connectionTimeout']=0x36ee80,_0x13fa53=new ReconnectingWebSocket(_0x3e138a,[],_0x4350bb),logger[_0x4324fd(0x1ae)](_0x168bea[_0x4324fd(0x1a6)]),webSocketUtils[_0x4324fd(0x1e7)](_0x13fa53,_0x352167['user'],_0x352167[_0x4324fd(0x1ab)]);const [_0x42629c,_0x43415e]=await _0x168bea[_0x4324fd(0x1b0)](getGridDetails,_0x54541e[_0x4324fd(0x190)]['username'],_0x54541e['Browserstack'][_0x4324fd(0x1ab)],_0x352167['gridId']);if(_0x43415e){const _0x4446bf=_0x43415e[_0x4324fd(0x197)];global_registry['cloudProvider']=_0x4446bf[_0x4324fd(0x1de)],global_registry[_0x4324fd(0x1cd)]=_0x4446bf[_0x4324fd(0x1cb)],global_registry[_0x4324fd(0x199)]=_0x4446bf['clusterName'];const _0x384d01=await _0x168bea[_0x4324fd(0x1d0)](getCloudProviderObject,_0x4446bf['cloudProvider'],_0x4446bf['clusterName'],_0x4446bf[_0x4324fd(0x1e2)],_0x13fa53,webSocketUtils,_0x352167),[_0x4eb71f,_0x5de985,_0x147124,_0x1f16f5,_0x39e5c7,_0x5cd404]=await _0x168bea[_0x4324fd(0x1a8)](createK8sClient,_0x384d01,_0x352167[_0x4324fd(0x1d8)]);await _0x168bea[_0x4324fd(0x1db)](scaleUpHubDeployment,_0x5de985,_0x4446bf[_0x4324fd(0x1e2)]),logger[_0x4324fd(0x197)](_0x168bea['RMozs']),process[_0x4324fd(0x1b4)](0x0);}_0x168bea[_0x4324fd(0x1d6)](_0x42629c['statusCode'],0x191)&&(logger[_0x4324fd(0x1dd)](_0x168bea['EQKMQ']),await _0x168bea[_0x4324fd(0x1d0)](sendInstrumentationEvent,_0x352167,_0x168bea[_0x4324fd(0x1c8)],messageTypes[_0x4324fd(0x192)],_0x168bea[_0x4324fd(0x1ba)],null,_0x352167),process['exit'](0x1)),_0x168bea[_0x4324fd(0x1d6)](_0x42629c[_0x4324fd(0x1ca)],0x190)&&(logger['error'](JSON[_0x4324fd(0x1a0)](_0x42629c[_0x4324fd(0x1d2)])[_0x4324fd(0x1c7)]),await _0x168bea['Jkhns'](sendInstrumentationEvent,_0x352167,_0x168bea[_0x4324fd(0x1c8)],messageTypes[_0x4324fd(0x192)],_0x168bea[_0x4324fd(0x1be)],null,_0x352167),process[_0x4324fd(0x1b4)](0x1)),logger[_0x4324fd(0x1dd)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4324fd(0x1a4)](_0x42629c)),await _0x168bea[_0x4324fd(0x19d)](sendInstrumentationEvent,_0x352167,_0x168bea[_0x4324fd(0x1c8)],messageTypes[_0x4324fd(0x192)],_0x168bea[_0x4324fd(0x198)],_0x42629c,_0x352167),process[_0x4324fd(0x1b4)](0x1);}catch(_0x4e4490){const _0x1880fb=_0x4324fd(0x1df)+_0x4e4490+'\x20\x0a'+JSON['stringify'](_0x4e4490['stack'])+'\x20';logger['error'](_0x1880fb),process[_0x4324fd(0x1b4)](0x1);}};
1
+ const a17_0x56415a=a17_0x5a5c;function a17_0x4a52(){const _0x5d1d1a=['default','../../utils/gridComponents','type','body','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','pDuaV','385683mmINbf','<PasswordPlaceholder>','invalid-grid-id','name','stringify','enYgY','clusterRegion','10RQzKch','desc','../../config/constants','error','stack','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','340010lFZUsT','SeLRM','bstackUsername','304067mxsJKm','string','parse','UzVfG','statusCode','../../utils/createk8sClient','ErYtX','../../config/logger','replace','hxZKz','25rNkQKm','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','skip-tls-cert-verify','DPnap','FqTBL','gridId','XgkKp','readFileSync','exit','unauthorised','grid','ctSfV','existsSync','info','message','Browserstack','FwDSP','370fjQSuw','vOtbj','cloudProvider','557236BwjpFs','options','ZmAIp','epilogue','JDuFf','ULvim','<UsernamePlaceholder>','help','description','321444vKcrGG','bGwdg','user','SqPqf','aqiUk','start-grid-called','../../cloudproviders/utils','start','username','skipTlsCertVerify','command','ERROR','18BANSuC','../../utils/webSocketUtils','270249OTADAZ','RIZqo','Adding\x20Websocket\x20listeners','grid-id','Starting\x20grid\x20','eLNwH','yyAnf','clusterName','region','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','iwmvW','bstackAccesskey','server-error','olgkM','addListeners','INFO','handler','argv','password','reconnecting-websocket','2963408zjnlAH','../../utils/utilityMethods'];a17_0x4a52=function(){return _0x5d1d1a;};return a17_0x4a52();}(function(_0x147035,_0x5dd3fa){const _0x11deb5=a17_0x5a5c,_0x5b165b=_0x147035();while(!![]){try{const _0x52b025=-parseInt(_0x11deb5(0x113))/0x1+parseInt(_0x11deb5(0x10a))/0x2*(parseInt(_0x11deb5(0x103))/0x3)+-parseInt(_0x11deb5(0xce))/0x4*(-parseInt(_0x11deb5(0x11d))/0x5)+-parseInt(_0x11deb5(0xe3))/0x6*(-parseInt(_0x11deb5(0xe5))/0x7)+parseInt(_0x11deb5(0xf9))/0x8+parseInt(_0x11deb5(0xd7))/0x9+parseInt(_0x11deb5(0xcb))/0xa*(-parseInt(_0x11deb5(0x110))/0xb);if(_0x52b025===_0x5dd3fa)break;else _0x5b165b['push'](_0x5b165b['shift']());}catch(_0x38db5d){_0x5b165b['push'](_0x5b165b['shift']());}}}(a17_0x4a52,0x64f88));function a17_0x5a5c(_0xc8210a,_0x58134b){const _0x4a5200=a17_0x4a52();return a17_0x5a5c=function(_0x5a5cbe,_0x352888){_0x5a5cbe=_0x5a5cbe-0xbf;let _0x134243=_0x4a5200[_0x5a5cbe];return _0x134243;},a17_0x5a5c(_0xc8210a,_0x58134b);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x56415a(0xf8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x56415a(0x10c)),{logger}=require(a17_0x56415a(0x11a)),{getCredentialsPath,getGridDetails}=require(a17_0x56415a(0xfa)),{scaleUpHubDeployment}=require(a17_0x56415a(0xfc)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a17_0x56415a(0xe4)),{createK8sClient}=require(a17_0x56415a(0x118)),{getCloudProviderObject}=require(a17_0x56415a(0xdd));exports[a17_0x56415a(0xe1)]=a17_0x56415a(0xc4),exports[a17_0x56415a(0x10b)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x4aa2d2){const _0x2d8555=a17_0x56415a,_0x14a2b5={};_0x14a2b5[_0x2d8555(0xf2)]=_0x2d8555(0x10f),_0x14a2b5[_0x2d8555(0xca)]=_0x2d8555(0x114),_0x14a2b5[_0x2d8555(0xda)]='Skip\x20insecure\x20cert\x20verification.',_0x14a2b5['DPnap']='boolean',_0x14a2b5[_0x2d8555(0x11c)]=_0x2d8555(0xd5);const _0x2518d5=_0x14a2b5,_0x40735b={};_0x40735b[_0x2d8555(0xd6)]=_0x2518d5[_0x2d8555(0xf2)],_0x40735b['type']=_0x2518d5[_0x2d8555(0xca)];const _0x255bad={};_0x255bad[_0x2d8555(0xd6)]=_0x2518d5[_0x2d8555(0xda)],_0x255bad[_0x2d8555(0xfd)]=_0x2518d5[_0x2d8555(0x120)],_0x255bad[_0x2d8555(0xfb)]=![];const _0x5459f8={};return _0x5459f8[_0x2d8555(0xe8)]=_0x40735b,_0x5459f8[_0x2d8555(0x11f)]=_0x255bad,_0x4aa2d2['usage'](HELP_HEADER_MESSAGE[_0x2d8555(0xde)])[_0x2d8555(0xd1)](HELP_FOOTER_MESSAGE)[_0x2d8555(0xcf)](_0x5459f8)[_0x2d8555(0xd5)](_0x2518d5[_0x2d8555(0x11c)])[_0x2d8555(0xf6)];},exports[a17_0x56415a(0xf5)]=async function(_0x5d1f13){const _0x4a629d=a17_0x56415a,_0x5ba5a6={'RIZqo':_0x4a629d(0x101),'eLNwH':function(_0xb46d3){return _0xb46d3();},'bGwdg':_0x4a629d(0xee),'SeLRM':function(_0x31c7ea,_0x3218da,_0xfcf78,_0x5b2358,_0x29b052,_0x4d5847,_0x1a2a9e){return _0x31c7ea(_0x3218da,_0xfcf78,_0x5b2358,_0x29b052,_0x4d5847,_0x1a2a9e);},'FqTBL':_0x4a629d(0xdc),'pDuaV':'init-not-called','ULvim':function(_0x56f51b,_0x2f5f2b,_0x971bea,_0x33abdb,_0x39b43a,_0x27f67d,_0x595a54){return _0x56f51b(_0x2f5f2b,_0x971bea,_0x33abdb,_0x39b43a,_0x27f67d,_0x595a54);},'iwmvW':function(_0x28cf28){return _0x28cf28();},'ZmAIp':_0x4a629d(0xd4),'GnKWa':_0x4a629d(0x104),'ErYtX':_0x4a629d(0xe7),'yyAnf':function(_0x42bc82,_0xf97c6b,_0x53cdae,_0x329ed5){return _0x42bc82(_0xf97c6b,_0x53cdae,_0x329ed5);},'aqiUk':function(_0x3bf97f,_0x555485,_0x110cf9,_0x3a9936,_0x3bbb63,_0x5132c0,_0x2316e2){return _0x3bf97f(_0x555485,_0x110cf9,_0x3a9936,_0x3bbb63,_0x5132c0,_0x2316e2);},'XgkKp':function(_0x580650,_0x6056b3,_0x11d997){return _0x580650(_0x6056b3,_0x11d997);},'LDqDH':'Grid\x20started','UzVfG':function(_0x3fe348,_0x2ae0c4){return _0x3fe348===_0x2ae0c4;},'JDuFf':_0x4a629d(0xff),'zIgHd':function(_0xd2dadd,_0x3f8f4f,_0x433446,_0x475935,_0xb61203,_0x1d94a7,_0x524674){return _0xd2dadd(_0x3f8f4f,_0x433446,_0x475935,_0xb61203,_0x1d94a7,_0x524674);},'IHxQl':_0x4a629d(0xc3),'vOtbj':_0x4a629d(0x105),'enYgY':function(_0x8f8e37,_0x4ad056,_0x1b5d74,_0x343aa4,_0x15c745,_0xb834d6,_0x35cfab){return _0x8f8e37(_0x4ad056,_0x1b5d74,_0x343aa4,_0x15c745,_0xb834d6,_0x35cfab);},'ctSfV':_0x4a629d(0xf1)};let _0x32b8ab;try{!_0x5d1f13[_0x4a629d(0xbf)]&&(logger[_0x4a629d(0x10d)](_0x5ba5a6[_0x4a629d(0xe6)]),process[_0x4a629d(0xc2)](0x1));!fs[_0x4a629d(0xc6)](_0x5ba5a6[_0x4a629d(0xea)](getCredentialsPath))&&(logger[_0x4a629d(0x10d)](_0x5ba5a6[_0x4a629d(0xd8)]),await _0x5ba5a6[_0x4a629d(0x111)](sendInstrumentationEvent,_0x5d1f13,_0x5ba5a6[_0x4a629d(0x121)],messageTypes[_0x4a629d(0xe2)],_0x5ba5a6[_0x4a629d(0x102)],null,_0x5d1f13),process[_0x4a629d(0xc2)](0x1));logger[_0x4a629d(0xc7)](_0x4a629d(0xe9)+_0x5d1f13['gridId']),await _0x5ba5a6[_0x4a629d(0xd3)](sendInstrumentationEvent,_0x5d1f13,_0x5ba5a6[_0x4a629d(0x121)],messageTypes[_0x4a629d(0xf4)],null,null,_0x5d1f13);const _0xe84bbf=JSON[_0x4a629d(0x115)](fs[_0x4a629d(0xc1)](_0x5ba5a6[_0x4a629d(0xef)](getCredentialsPath)));global_registry[_0x4a629d(0x112)]=_0xe84bbf['Browserstack'][_0x4a629d(0xdf)],global_registry[_0x4a629d(0xf0)]=_0xe84bbf[_0x4a629d(0xc9)][_0x4a629d(0xf7)];const _0x1731e5=WS_ENDPOINT[_0x4a629d(0x11b)](_0x5ba5a6[_0x4a629d(0xd0)],_0xe84bbf['Browserstack'][_0x4a629d(0xdf)])[_0x4a629d(0x11b)](_0x5ba5a6['GnKWa'],_0xe84bbf['Browserstack'][_0x4a629d(0xf7)]),_0x57ec68={};_0x57ec68['WebSocket']=ws,_0x57ec68[_0x4a629d(0x100)]=0x36ee80,_0x32b8ab=new ReconnectingWebSocket(_0x1731e5,[],_0x57ec68),logger['debug'](_0x5ba5a6[_0x4a629d(0x119)]),webSocketUtils[_0x4a629d(0xf3)](_0x32b8ab,_0x5d1f13[_0x4a629d(0xd9)],_0x5d1f13['password']);const [_0x390042,_0x33487d]=await _0x5ba5a6[_0x4a629d(0xeb)](getGridDetails,_0xe84bbf['Browserstack']['username'],_0xe84bbf[_0x4a629d(0xc9)][_0x4a629d(0xf7)],_0x5d1f13[_0x4a629d(0xbf)]);if(_0x33487d){const _0x40ea8e=_0x33487d[_0x4a629d(0xc7)];global_registry[_0x4a629d(0xcd)]=_0x40ea8e['cloudProvider'],global_registry[_0x4a629d(0x109)]=_0x40ea8e[_0x4a629d(0xed)],global_registry[_0x4a629d(0xec)]=_0x40ea8e[_0x4a629d(0xec)];const _0x33f0fb=await _0x5ba5a6[_0x4a629d(0xdb)](getCloudProviderObject,_0x40ea8e[_0x4a629d(0xcd)],_0x40ea8e['clusterName'],_0x40ea8e[_0x4a629d(0x106)],_0x32b8ab,webSocketUtils,_0x5d1f13),[_0x294314,_0x1a7b19,_0x4e8ea1,_0x3d8fa3,_0x1eb422,_0x3d48e7]=await _0x5ba5a6[_0x4a629d(0xc0)](createK8sClient,_0x33f0fb,_0x5d1f13[_0x4a629d(0xe0)]);await _0x5ba5a6[_0x4a629d(0xc0)](scaleUpHubDeployment,_0x1a7b19,_0x40ea8e['name']),logger['info'](_0x5ba5a6['LDqDH']),process[_0x4a629d(0xc2)](0x0);}_0x5ba5a6[_0x4a629d(0x116)](_0x390042[_0x4a629d(0x117)],0x191)&&(logger[_0x4a629d(0x10d)](_0x5ba5a6[_0x4a629d(0xd2)]),await _0x5ba5a6['zIgHd'](sendInstrumentationEvent,_0x5d1f13,_0x5ba5a6[_0x4a629d(0x121)],messageTypes[_0x4a629d(0xe2)],_0x5ba5a6['IHxQl'],null,_0x5d1f13),process[_0x4a629d(0xc2)](0x1)),_0x5ba5a6[_0x4a629d(0x116)](_0x390042[_0x4a629d(0x117)],0x190)&&(logger[_0x4a629d(0x10d)](JSON[_0x4a629d(0x115)](_0x390042[_0x4a629d(0xfe)])[_0x4a629d(0xc8)]),await _0x5ba5a6[_0x4a629d(0x111)](sendInstrumentationEvent,_0x5d1f13,_0x5ba5a6[_0x4a629d(0x121)],messageTypes[_0x4a629d(0xe2)],_0x5ba5a6[_0x4a629d(0xcc)],null,_0x5d1f13),process[_0x4a629d(0xc2)](0x1)),logger[_0x4a629d(0x10d)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4a629d(0x107)](_0x390042)),await _0x5ba5a6[_0x4a629d(0x108)](sendInstrumentationEvent,_0x5d1f13,_0x5ba5a6[_0x4a629d(0x121)],messageTypes[_0x4a629d(0xe2)],_0x5ba5a6[_0x4a629d(0xc5)],_0x390042,_0x5d1f13),process['exit'](0x1);}catch(_0x309c62){const _0x1feb3a=_0x4a629d(0x11e)+_0x309c62+'\x20\x0a'+JSON['stringify'](_0x309c62[_0x4a629d(0x10e)])+'\x20';logger[_0x4a629d(0x10d)](_0x1feb3a),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x58f7bf=a18_0x2d2e;function a18_0x2d2e(_0x536daa,_0x57cb1e){const _0x3c274e=a18_0x3c27();return a18_0x2d2e=function(_0x2d2e82,_0x5d2513){_0x2d2e82=_0x2d2e82-0x1d3;let _0x534f93=_0x3c274e[_0x2d2e82];return _0x534f93;},a18_0x2d2e(_0x536daa,_0x57cb1e);}(function(_0x2f2e8c,_0x2583de){const _0x23e1b9=a18_0x2d2e,_0x2c8c80=_0x2f2e8c();while(!![]){try{const _0x548209=parseInt(_0x23e1b9(0x1e9))/0x1+parseInt(_0x23e1b9(0x1e0))/0x2*(parseInt(_0x23e1b9(0x1e6))/0x3)+-parseInt(_0x23e1b9(0x1df))/0x4*(parseInt(_0x23e1b9(0x1db))/0x5)+-parseInt(_0x23e1b9(0x1e8))/0x6+parseInt(_0x23e1b9(0x1d9))/0x7*(-parseInt(_0x23e1b9(0x1e7))/0x8)+-parseInt(_0x23e1b9(0x1d6))/0x9+parseInt(_0x23e1b9(0x1de))/0xa;if(_0x548209===_0x2583de)break;else _0x2c8c80['push'](_0x2c8c80['shift']());}catch(_0x420e05){_0x2c8c80['push'](_0x2c8c80['shift']());}}}(a18_0x3c27,0xd1627));function a18_0x3c27(){const _0x1b9c90=['22WaAYpy','fmzQJ','stop_commands','demandCommand','Stop\x20a\x20running\x20Automation\x20grid.','stop','237213LqImKS','184dgAwij','5904756eUAcOj','40093iQPtcg','help','commandDir','Fosdh','11208177RcqlLk','strict','usage','48328YwZsZm','epilogue','145yRQGgX','command','handler','36699490BBZjft','183988GacFkf'];a18_0x3c27=function(){return _0x1b9c90;};return a18_0x3c27();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x58f7bf(0x1dc)]=a18_0x58f7bf(0x1e5),exports['desc']=a18_0x58f7bf(0x1e4),exports['builder']=function(_0x5be52e){const _0x263a82=a18_0x58f7bf,_0x20ffc3={};_0x20ffc3[_0x263a82(0x1e1)]=_0x263a82(0x1e2),_0x20ffc3['Fosdh']=_0x263a82(0x1d3);const _0x18e9e8=_0x20ffc3;return _0x5be52e[_0x263a82(0x1d8)](HELP_HEADER_MESSAGE['stop'])[_0x263a82(0x1da)](HELP_FOOTER_MESSAGE)[_0x263a82(0x1d4)](_0x18e9e8[_0x263a82(0x1e1)])[_0x263a82(0x1e3)]()['recommendCommands']()[_0x263a82(0x1d7)]()['help'](_0x18e9e8[_0x263a82(0x1d5)]);},exports[a18_0x58f7bf(0x1dd)]=function(_0x2e01d0){};
1
+ const a18_0x5d4e92=a18_0x1aa5;function a18_0x2014(){const _0x2dd331=['sGYRT','builder','2284544XZVrut','commandDir','993815wssGNO','handler','command','4738145uOICmT','441424uPXzgK','15712trHMgf','stop','help','1237362eqoHJi','epilogue','2338689qYwtjV','egfrf','stop_commands','../config/constants','1330nFYYme','demandCommand'];a18_0x2014=function(){return _0x2dd331;};return a18_0x2014();}(function(_0x101d09,_0x3c9782){const _0x121f97=a18_0x1aa5,_0xd520ca=_0x101d09();while(!![]){try{const _0x32749e=parseInt(_0x121f97(0x11d))/0x1+-parseInt(_0x121f97(0x121))/0x2+parseInt(_0x121f97(0x113))/0x3+parseInt(_0x121f97(0x11b))/0x4+-parseInt(_0x121f97(0x120))/0x5+-parseInt(_0x121f97(0x111))/0x6+parseInt(_0x121f97(0x117))/0x7*(-parseInt(_0x121f97(0x122))/0x8);if(_0x32749e===_0x3c9782)break;else _0xd520ca['push'](_0xd520ca['shift']());}catch(_0x523dda){_0xd520ca['push'](_0xd520ca['shift']());}}}(a18_0x2014,0x91b32));function a18_0x1aa5(_0x495734,_0x80631c){const _0x20148c=a18_0x2014();return a18_0x1aa5=function(_0x1aa516,_0x49d6b5){_0x1aa516=_0x1aa516-0x110;let _0x510935=_0x20148c[_0x1aa516];return _0x510935;},a18_0x1aa5(_0x495734,_0x80631c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5d4e92(0x116));exports[a18_0x5d4e92(0x11f)]=a18_0x5d4e92(0x123),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a18_0x5d4e92(0x11a)]=function(_0x57b665){const _0x55813d=a18_0x5d4e92,_0x359284={};_0x359284['sGYRT']=_0x55813d(0x115),_0x359284[_0x55813d(0x114)]=_0x55813d(0x110);const _0x49c8fc=_0x359284;return _0x57b665['usage'](HELP_HEADER_MESSAGE[_0x55813d(0x123)])[_0x55813d(0x112)](HELP_FOOTER_MESSAGE)[_0x55813d(0x11c)](_0x49c8fc[_0x55813d(0x119)])[_0x55813d(0x118)]()['recommendCommands']()['strict']()[_0x55813d(0x110)](_0x49c8fc[_0x55813d(0x114)]);},exports[a18_0x5d4e92(0x11e)]=function(_0x46aba8){};
@@ -1 +1 @@
1
- const a19_0x1093c0=a19_0xd7dc;function a19_0xc28a(){const _0x15e82c=['Skip\x20insecure\x20cert\x20verification.','59268pvnWeP','gRUBZ','desc','../../config/constants','grid','ERROR','../../utils/webSocketUtils','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','pSoUC','replace','RdybV','command','help','ioKmP','Woqpy','mctcm','gsvse','../../cloudproviders/utils','skip-tls-cert-verify','310940MLxwLy','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Stop\x20a\x20running\x20Automation\x20grid.','LdkKe','6nFgGri','stop-grid-called','epilogue','2BcaAQC','VErgo','init-not-called','parse','usage','debug','statusCode','grid-id','1076889SMThbu','yuYdV','info','aHHLw','Grid\x20stoppped.','Stopping\x20grid\x20','NpEhz','VcMFg','error','region','cloudProvider','99VkHbMd','options','stack','../../utils/utilityMethods','xwvAr','10xRRrod','type','default','../../utils/gridComponents','byCgJ','226072FtEOjx','description','string','stringify','builder','fQfWG','209936VatreX','7114380jIIOcE','LPfoT','aOaEn','name','clusterRegion','gridId','message','wULRB','readFileSync','Adding\x20Websocket\x20listeners','clusterName','existsSync','318utckCW','exit','unauthorised','Browserstack','JtdZk','33999IkfQfN','<UsernamePlaceholder>','INFO','connectionTimeout','bstackAccesskey','password','tdUyb','WebSocket','gWTNq'];a19_0xc28a=function(){return _0x15e82c;};return a19_0xc28a();}(function(_0x454894,_0x1a8278){const _0x42f203=a19_0xd7dc,_0x575cf3=_0x454894();while(!![]){try{const _0x52c1cb=-parseInt(_0x42f203(0x107))/0x1*(-parseInt(_0x42f203(0xea))/0x2)+parseInt(_0x42f203(0xe7))/0x3*(parseInt(_0x42f203(0xd0))/0x4)+-parseInt(_0x42f203(0xe3))/0x5+-parseInt(_0x42f203(0xc1))/0x6*(-parseInt(_0x42f203(0xc6))/0x7)+parseInt(_0x42f203(0xb4))/0x8*(parseInt(_0x42f203(0xfd))/0x9)+parseInt(_0x42f203(0x102))/0xa*(parseInt(_0x42f203(0xf2))/0xb)+-parseInt(_0x42f203(0xb5))/0xc;if(_0x52c1cb===_0x1a8278)break;else _0x575cf3['push'](_0x575cf3['shift']());}catch(_0x2a9478){_0x575cf3['push'](_0x575cf3['shift']());}}}(a19_0xc28a,0x3bb9b));function a19_0xd7dc(_0x3d1f1e,_0x2e82b9){const _0xc28ab=a19_0xc28a();return a19_0xd7dc=function(_0xd7dc17,_0x1a1c0e){_0xd7dc17=_0xd7dc17-0xb4;let _0x2708a2=_0xc28ab[_0xd7dc17];return _0x2708a2;},a19_0xd7dc(_0x3d1f1e,_0x2e82b9);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1093c0(0xd3)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x1093c0(0x100)),{scaleDownHubDeployment}=require(a19_0x1093c0(0x105)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x1093c0(0xd6)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x1093c0(0xe1));exports[a19_0x1093c0(0xdb)]=a19_0x1093c0(0xd4),exports[a19_0x1093c0(0xd2)]=a19_0x1093c0(0xe5),exports[a19_0x1093c0(0x10b)]=function(_0x5ea6c4){const _0x200abd=a19_0x1093c0,_0x3c4337={};_0x3c4337[_0x200abd(0xce)]=_0x200abd(0xe4),_0x3c4337[_0x200abd(0xdf)]=_0x200abd(0x109),_0x3c4337[_0x200abd(0xf5)]=_0x200abd(0xcf),_0x3c4337['tdUyb']='boolean',_0x3c4337['XSqMZ']=_0x200abd(0xdc);const _0x31d0ae=_0x3c4337,_0x3d5db2={};_0x3d5db2[_0x200abd(0x108)]=_0x31d0ae[_0x200abd(0xce)],_0x3d5db2[_0x200abd(0x103)]=_0x31d0ae['mctcm'];const _0x2c0b32={};_0x2c0b32[_0x200abd(0x108)]=_0x31d0ae[_0x200abd(0xf5)],_0x2c0b32[_0x200abd(0x103)]=_0x31d0ae[_0x200abd(0xcc)],_0x2c0b32[_0x200abd(0x104)]=![];const _0x39e2af={};return _0x39e2af[_0x200abd(0xf1)]=_0x3d5db2,_0x39e2af[_0x200abd(0xe2)]=_0x2c0b32,_0x5ea6c4[_0x200abd(0xee)](HELP_HEADER_MESSAGE['stop'])[_0x200abd(0xe9)](HELP_FOOTER_MESSAGE)[_0x200abd(0xfe)](_0x39e2af)[_0x200abd(0xdc)](_0x31d0ae['XSqMZ'])['argv'];},exports['handler']=async function(_0x53e74c){const _0x2edf08=a19_0x1093c0,_0x4ef154={'wULRB':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','gRUBZ':function(_0x352f20){return _0x352f20();},'fQfWG':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JtdZk':function(_0xc245bb,_0x3504e8,_0x25a3b5,_0x4e92ca,_0x588e39,_0x1e0cc6,_0xf127bc){return _0xc245bb(_0x3504e8,_0x25a3b5,_0x4e92ca,_0x588e39,_0x1e0cc6,_0xf127bc);},'pSoUC':_0x2edf08(0xe8),'WUyfD':_0x2edf08(0xec),'vzdqF':function(_0x1492c5){return _0x1492c5();},'Woqpy':_0x2edf08(0xc7),'NpEhz':'<PasswordPlaceholder>','LPfoT':_0x2edf08(0xbe),'gsvse':function(_0x2b8d02,_0x138d16,_0x3ec5a1,_0x46276d){return _0x2b8d02(_0x138d16,_0x3ec5a1,_0x46276d);},'RrVnL':function(_0x1857ed,_0x4179e5,_0x33887d){return _0x1857ed(_0x4179e5,_0x33887d);},'VcMFg':function(_0xc3abd3,_0x47c084,_0x264fd2){return _0xc3abd3(_0x47c084,_0x264fd2);},'ioKmP':_0x2edf08(0xf6),'VErgo':function(_0x1b14a1,_0x4b5b18){return _0x1b14a1===_0x4b5b18;},'yuYdV':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','byCgJ':function(_0x2142e8,_0x3c54ae,_0x2c32a8,_0x22fdcf,_0x34115f,_0x177123,_0x8996e0){return _0x2142e8(_0x3c54ae,_0x2c32a8,_0x22fdcf,_0x34115f,_0x177123,_0x8996e0);},'aOaEn':_0x2edf08(0xc3),'LdkKe':function(_0x855492,_0xe83a2f,_0x4cf10a,_0x552e24,_0x31e305,_0x5143ae,_0x81db7b){return _0x855492(_0xe83a2f,_0x4cf10a,_0x552e24,_0x31e305,_0x5143ae,_0x81db7b);},'xwvAr':'invalid-grid-id','RdybV':'server-error'};let _0x56f624;try{!_0x53e74c[_0x2edf08(0xba)]&&(logger['error'](_0x4ef154[_0x2edf08(0xbc)]),process[_0x2edf08(0xc2)](0x1));!fs[_0x2edf08(0xc0)](_0x4ef154[_0x2edf08(0xd1)](getCredentialsPath))&&(logger[_0x2edf08(0xfa)](_0x4ef154[_0x2edf08(0x10c)]),await _0x4ef154[_0x2edf08(0xc5)](sendInstrumentationEvent,_0x53e74c,_0x4ef154[_0x2edf08(0xd8)],messageTypes[_0x2edf08(0xd5)],_0x4ef154['WUyfD'],null,_0x53e74c),process[_0x2edf08(0xc2)](0x1));logger[_0x2edf08(0xf4)](_0x2edf08(0xf7)+_0x53e74c['gridId']),await _0x4ef154[_0x2edf08(0xc5)](sendInstrumentationEvent,_0x53e74c,_0x4ef154[_0x2edf08(0xd8)],messageTypes[_0x2edf08(0xc8)],null,null,_0x53e74c);const _0xacb33a=JSON[_0x2edf08(0xed)](fs[_0x2edf08(0xbd)](_0x4ef154['vzdqF'](getCredentialsPath)));global_registry['bstackUsername']=_0xacb33a['Browserstack']['username'],global_registry[_0x2edf08(0xca)]=_0xacb33a['Browserstack'][_0x2edf08(0xcb)];const _0x10d476=WS_ENDPOINT[_0x2edf08(0xd9)](_0x4ef154[_0x2edf08(0xde)],_0xacb33a[_0x2edf08(0xc4)]['username'])[_0x2edf08(0xd9)](_0x4ef154[_0x2edf08(0xf8)],_0xacb33a[_0x2edf08(0xc4)]['password']),_0x30f325={};_0x30f325[_0x2edf08(0xcd)]=ws,_0x30f325[_0x2edf08(0xc9)]=0x36ee80,_0x56f624=new ReconnectingWebSocket(_0x10d476,[],_0x30f325),logger[_0x2edf08(0xef)](_0x4ef154[_0x2edf08(0xb6)]),webSocketUtils['addListeners'](_0x56f624,_0x53e74c['user'],_0x53e74c['password']);const [_0x4f3b1c,_0x362113]=await _0x4ef154[_0x2edf08(0xe0)](getGridDetails,_0xacb33a[_0x2edf08(0xc4)]['username'],_0xacb33a[_0x2edf08(0xc4)][_0x2edf08(0xcb)],_0x53e74c[_0x2edf08(0xba)]);if(_0x362113){const _0x3d4c74=_0x362113['info'];global_registry[_0x2edf08(0xfc)]=_0x3d4c74[_0x2edf08(0xfc)],global_registry[_0x2edf08(0xb9)]=_0x3d4c74[_0x2edf08(0xfb)],global_registry['clusterName']=_0x3d4c74[_0x2edf08(0xbf)];const _0x22f903=await _0x4ef154[_0x2edf08(0xc5)](getCloudProviderObject,_0x3d4c74[_0x2edf08(0xfc)],_0x3d4c74[_0x2edf08(0xbf)],_0x3d4c74[_0x2edf08(0xb8)],_0x56f624,webSocketUtils,_0x53e74c),[_0x11037d,_0x4db9fe,_0x3655d9,_0xb18ee7,_0x4ed9a6,_0x462863]=await _0x4ef154['RrVnL'](createK8sClient,_0x22f903,_0x53e74c['skipTlsCertVerify']);await _0x4ef154[_0x2edf08(0xf9)](scaleDownHubDeployment,_0x4db9fe,_0x3d4c74[_0x2edf08(0xb8)]),logger['info'](_0x4ef154[_0x2edf08(0xdd)]),process['exit'](0x0);}_0x4ef154[_0x2edf08(0xeb)](_0x4f3b1c[_0x2edf08(0xf0)],0x191)&&(logger[_0x2edf08(0xfa)](_0x4ef154[_0x2edf08(0xf3)]),await _0x4ef154[_0x2edf08(0x106)](sendInstrumentationEvent,_0x53e74c,_0x4ef154['pSoUC'],messageTypes['ERROR'],_0x4ef154[_0x2edf08(0xb7)],null,_0x53e74c),process[_0x2edf08(0xc2)](0x1)),_0x4ef154['VErgo'](_0x4f3b1c[_0x2edf08(0xf0)],0x190)&&(logger['error'](JSON[_0x2edf08(0xed)](_0x4f3b1c['body'])[_0x2edf08(0xbb)]),await _0x4ef154[_0x2edf08(0xe6)](sendInstrumentationEvent,_0x53e74c,_0x4ef154[_0x2edf08(0xd8)],messageTypes[_0x2edf08(0xd5)],_0x4ef154[_0x2edf08(0x101)],null,_0x53e74c),process['exit'](0x1)),logger[_0x2edf08(0xfa)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2edf08(0x10a)](_0x4f3b1c)),await _0x4ef154[_0x2edf08(0xc5)](sendInstrumentationEvent,_0x53e74c,_0x4ef154[_0x2edf08(0xd8)],messageTypes[_0x2edf08(0xd5)],_0x4ef154[_0x2edf08(0xda)],_0x4f3b1c,_0x53e74c),process[_0x2edf08(0xc2)](0x1);}catch(_0x46d61f){const _0xbe02a5=_0x2edf08(0xd7)+_0x46d61f+'\x20\x0a'+JSON[_0x2edf08(0x10a)](_0x46d61f[_0x2edf08(0xff)])+'\x20';logger[_0x2edf08(0xfa)](_0xbe02a5),process[_0x2edf08(0xc2)](0x1);}};
1
+ const a19_0x415902=a19_0x350a;function a19_0x516f(){const _0xe33423=['command','bstackAccesskey','keOYG','9738mxkflr','QHQnI','298635KpzzpM','<UsernamePlaceholder>','gridId','existsSync','Vmdoj','Stopping\x20grid\x20','605BqHrMa','desc','clusterName','Stop\x20a\x20running\x20Automation\x20grid.','szkvA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','ZVwAt','stop','name','skip-tls-cert-verify','EBRoE','username','qCadu','message','help','stringify','../../cloudproviders/utils','readFileSync','../../config/logger','zzWxA','KiwUw','3AstLPx','statusCode','856wxJsuT','exit','connectionTimeout','info','Adding\x20Websocket\x20listeners','type','../../utils/gridComponents','wXDfG','Keozj','../../utils/utilityMethods','sylEH','NnfDQ','gWjxj','813056QDjmQZ','DxZVW','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','debug','Grid\x20stoppped.','invalid-grid-id','cloudProvider','Browserstack','handler','epilogue','user','ktzKU','PCyAn','../../config/constants','password','SFzkO','init-not-called','410FUhxDM','replace','FIqDp','clusterRegion','error','Skip\x20insecure\x20cert\x20verification.','iJlNB','6LvhGBV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','30000rjKAaE','builder','string','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','grid','LInCH','skipTlsCertVerify','grid-id','addListeners','3394rMiXWb','server-error','255661IHrEBe','../../utils/webSocketUtils','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','540KiIZzh','ERROR','<PasswordPlaceholder>','dSleY','parse','usage','region'];a19_0x516f=function(){return _0xe33423;};return a19_0x516f();}(function(_0x29508f,_0x5b0fe7){const _0x22b3ad=a19_0x350a,_0x684971=_0x29508f();while(!![]){try{const _0x45ef44=parseInt(_0x22b3ad(0x22d))/0x1+-parseInt(_0x22b3ad(0x21b))/0x2*(-parseInt(_0x22b3ad(0x1e8))/0x3)+parseInt(_0x22b3ad(0x1ea))/0x4*(-parseInt(_0x22b3ad(0x208))/0x5)+-parseInt(_0x22b3ad(0x20f))/0x6*(parseInt(_0x22b3ad(0x21d))/0x7)+parseInt(_0x22b3ad(0x1f7))/0x8+-parseInt(_0x22b3ad(0x22b))/0x9*(parseInt(_0x22b3ad(0x221))/0xa)+-parseInt(_0x22b3ad(0x233))/0xb*(parseInt(_0x22b3ad(0x211))/0xc);if(_0x45ef44===_0x5b0fe7)break;else _0x684971['push'](_0x684971['shift']());}catch(_0x2d6216){_0x684971['push'](_0x684971['shift']());}}}(a19_0x516f,0x2519d));function a19_0x350a(_0x41b06,_0x354909){const _0x516fa9=a19_0x516f();return a19_0x350a=function(_0x350aa4,_0x248416){_0x350aa4=_0x350aa4-0x1dd;let _0x55c904=_0x516fa9[_0x350aa4];return _0x55c904;},a19_0x350a(_0x41b06,_0x354909);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x415902(0x204)),{logger}=require(a19_0x415902(0x1e5)),{getCredentialsPath,getGridDetails}=require(a19_0x415902(0x1f3)),{scaleDownHubDeployment}=require(a19_0x415902(0x1f0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x415902(0x21e)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x415902(0x1e3));exports[a19_0x415902(0x228)]=a19_0x415902(0x216),exports[a19_0x415902(0x234)]=a19_0x415902(0x236),exports[a19_0x415902(0x212)]=function(_0x4e3a13){const _0x654c67=a19_0x415902,_0x2ae867={};_0x2ae867[_0x654c67(0x1f8)]=_0x654c67(0x1f9),_0x2ae867[_0x654c67(0x217)]=_0x654c67(0x213),_0x2ae867[_0x654c67(0x1e7)]=_0x654c67(0x20d),_0x2ae867[_0x654c67(0x224)]='boolean',_0x2ae867['Keozj']=_0x654c67(0x1e1);const _0x456be9=_0x2ae867,_0x49101f={};_0x49101f['description']=_0x456be9[_0x654c67(0x1f8)],_0x49101f[_0x654c67(0x1ef)]=_0x456be9[_0x654c67(0x217)];const _0x53efea={};_0x53efea['description']=_0x456be9[_0x654c67(0x1e7)],_0x53efea[_0x654c67(0x1ef)]=_0x456be9[_0x654c67(0x224)],_0x53efea['default']=![];const _0x2c119f={};return _0x2c119f[_0x654c67(0x219)]=_0x49101f,_0x2c119f[_0x654c67(0x23c)]=_0x53efea,_0x4e3a13[_0x654c67(0x226)](HELP_HEADER_MESSAGE[_0x654c67(0x23a)])[_0x654c67(0x200)](HELP_FOOTER_MESSAGE)['options'](_0x2c119f)[_0x654c67(0x1e1)](_0x456be9[_0x654c67(0x1f2)])['argv'];},exports[a19_0x415902(0x1ff)]=async function(_0x194f8e){const _0x399936=a19_0x415902,_0x36f5be={'EBRoE':_0x399936(0x21f),'zzWxA':function(_0x137e5f){return _0x137e5f();},'PCyAn':_0x399936(0x214),'ZVwAt':function(_0x355609,_0x424c98,_0x2ff88c,_0x5ee36d,_0x218d4e,_0x43f18a,_0x2dd63a){return _0x355609(_0x424c98,_0x2ff88c,_0x5ee36d,_0x218d4e,_0x43f18a,_0x2dd63a);},'FIqDp':'stop-grid-called','esgLc':_0x399936(0x207),'szkvA':function(_0x2354f3,_0x37026d,_0xe66687,_0x4e823d,_0x3f2eac,_0xa1d00a,_0x53419a){return _0x2354f3(_0x37026d,_0xe66687,_0x4e823d,_0x3f2eac,_0xa1d00a,_0x53419a);},'SFzkO':function(_0xd3fb7d){return _0xd3fb7d();},'qCadu':_0x399936(0x22e),'NnfDQ':_0x399936(0x223),'sylEH':_0x399936(0x1ee),'IRfiZ':function(_0x1bc3a9,_0x44958a,_0xad3641,_0x1de4ee){return _0x1bc3a9(_0x44958a,_0xad3641,_0x1de4ee);},'QHQnI':function(_0x1ad7fd,_0x7a08da,_0x3ba58c,_0x30e610,_0x415803,_0xbd5c3d,_0x447f07){return _0x1ad7fd(_0x7a08da,_0x3ba58c,_0x30e610,_0x415803,_0xbd5c3d,_0x447f07);},'iJlNB':function(_0x57c869,_0x2690f4,_0x1101be){return _0x57c869(_0x2690f4,_0x1101be);},'wXDfG':_0x399936(0x1fb),'pzmkk':function(_0x39a6dd,_0x1f7ada){return _0x39a6dd===_0x1f7ada;},'Vmdoj':_0x399936(0x220),'keOYG':_0x399936(0x215),'ktzKU':_0x399936(0x1fc),'gWjxj':_0x399936(0x21c)};let _0x3ed1e3;try{!_0x194f8e[_0x399936(0x22f)]&&(logger[_0x399936(0x20c)](_0x36f5be[_0x399936(0x1dd)]),process[_0x399936(0x1eb)](0x1));!fs[_0x399936(0x230)](_0x36f5be[_0x399936(0x1e6)](getCredentialsPath))&&(logger[_0x399936(0x20c)](_0x36f5be[_0x399936(0x203)]),await _0x36f5be[_0x399936(0x239)](sendInstrumentationEvent,_0x194f8e,_0x36f5be[_0x399936(0x20a)],messageTypes['ERROR'],_0x36f5be['esgLc'],null,_0x194f8e),process[_0x399936(0x1eb)](0x1));logger[_0x399936(0x1ed)](_0x399936(0x232)+_0x194f8e['gridId']),await _0x36f5be['szkvA'](sendInstrumentationEvent,_0x194f8e,_0x36f5be[_0x399936(0x20a)],messageTypes['INFO'],null,null,_0x194f8e);const _0x57cc4d=JSON[_0x399936(0x225)](fs[_0x399936(0x1e4)](_0x36f5be[_0x399936(0x206)](getCredentialsPath)));global_registry['bstackUsername']=_0x57cc4d['Browserstack'][_0x399936(0x1de)],global_registry[_0x399936(0x229)]=_0x57cc4d[_0x399936(0x1fe)][_0x399936(0x205)];const _0x28bc75=WS_ENDPOINT[_0x399936(0x209)](_0x36f5be[_0x399936(0x1df)],_0x57cc4d[_0x399936(0x1fe)]['username'])[_0x399936(0x209)](_0x36f5be[_0x399936(0x1f5)],_0x57cc4d[_0x399936(0x1fe)][_0x399936(0x205)]),_0x297923={};_0x297923['WebSocket']=ws,_0x297923[_0x399936(0x1ec)]=0x36ee80,_0x3ed1e3=new ReconnectingWebSocket(_0x28bc75,[],_0x297923),logger[_0x399936(0x1fa)](_0x36f5be[_0x399936(0x1f4)]),webSocketUtils[_0x399936(0x21a)](_0x3ed1e3,_0x194f8e[_0x399936(0x201)],_0x194f8e[_0x399936(0x205)]);const [_0x3b8d21,_0x5b3867]=await _0x36f5be['IRfiZ'](getGridDetails,_0x57cc4d[_0x399936(0x1fe)][_0x399936(0x1de)],_0x57cc4d[_0x399936(0x1fe)][_0x399936(0x205)],_0x194f8e['gridId']);if(_0x5b3867){const _0x15dea5=_0x5b3867[_0x399936(0x1ed)];global_registry['cloudProvider']=_0x15dea5[_0x399936(0x1fd)],global_registry[_0x399936(0x20b)]=_0x15dea5[_0x399936(0x227)],global_registry[_0x399936(0x235)]=_0x15dea5[_0x399936(0x235)];const _0x1bf6f4=await _0x36f5be[_0x399936(0x22c)](getCloudProviderObject,_0x15dea5['cloudProvider'],_0x15dea5['clusterName'],_0x15dea5['name'],_0x3ed1e3,webSocketUtils,_0x194f8e),[_0x1e0de,_0x36a01c,_0x12ca94,_0x4831d3,_0x54623a,_0x4c68f2]=await _0x36f5be[_0x399936(0x20e)](createK8sClient,_0x1bf6f4,_0x194f8e[_0x399936(0x218)]);await _0x36f5be['iJlNB'](scaleDownHubDeployment,_0x36a01c,_0x15dea5[_0x399936(0x23b)]),logger[_0x399936(0x1ed)](_0x36f5be[_0x399936(0x1f1)]),process[_0x399936(0x1eb)](0x0);}_0x36f5be['pzmkk'](_0x3b8d21['statusCode'],0x191)&&(logger[_0x399936(0x20c)](_0x36f5be[_0x399936(0x231)]),await _0x36f5be[_0x399936(0x22c)](sendInstrumentationEvent,_0x194f8e,_0x36f5be['FIqDp'],messageTypes['ERROR'],_0x36f5be[_0x399936(0x22a)],null,_0x194f8e),process[_0x399936(0x1eb)](0x1)),_0x36f5be['pzmkk'](_0x3b8d21[_0x399936(0x1e9)],0x190)&&(logger['error'](JSON['parse'](_0x3b8d21['body'])[_0x399936(0x1e0)]),await _0x36f5be['ZVwAt'](sendInstrumentationEvent,_0x194f8e,_0x36f5be[_0x399936(0x20a)],messageTypes[_0x399936(0x222)],_0x36f5be[_0x399936(0x202)],null,_0x194f8e),process[_0x399936(0x1eb)](0x1)),logger[_0x399936(0x20c)](_0x399936(0x210)+JSON[_0x399936(0x1e2)](_0x3b8d21)),await _0x36f5be[_0x399936(0x237)](sendInstrumentationEvent,_0x194f8e,_0x36f5be[_0x399936(0x20a)],messageTypes[_0x399936(0x222)],_0x36f5be[_0x399936(0x1f6)],_0x3b8d21,_0x194f8e),process[_0x399936(0x1eb)](0x1);}catch(_0x2fe9d9){const _0xf67440=_0x399936(0x238)+_0x2fe9d9+'\x20\x0a'+JSON[_0x399936(0x1e2)](_0x2fe9d9['stack'])+'\x20';logger['error'](_0xf67440),process[_0x399936(0x1eb)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3bea77=a20_0x4fd4;(function(_0x395166,_0xd61d46){const _0x3d40a0=a20_0x4fd4,_0x30de91=_0x395166();while(!![]){try{const _0x3c7205=-parseInt(_0x3d40a0(0x129))/0x1+-parseInt(_0x3d40a0(0x12c))/0x2+parseInt(_0x3d40a0(0x12e))/0x3*(-parseInt(_0x3d40a0(0x11f))/0x4)+-parseInt(_0x3d40a0(0x11e))/0x5+parseInt(_0x3d40a0(0xe0))/0x6*(-parseInt(_0x3d40a0(0x12a))/0x7)+-parseInt(_0x3d40a0(0xe9))/0x8*(parseInt(_0x3d40a0(0xed))/0x9)+parseInt(_0x3d40a0(0xdc))/0xa;if(_0x3c7205===_0xd61d46)break;else _0x30de91['push'](_0x30de91['shift']());}catch(_0x42f72f){_0x30de91['push'](_0x30de91['shift']());}}}(a20_0x59ca,0xc38fd),require(a20_0x3bea77(0xde))[a20_0x3bea77(0x110)](),exports[a20_0x3bea77(0x12b)]=process[a20_0x3bea77(0x100)][a20_0x3bea77(0x12b)]||a20_0x3bea77(0x11d),exports[a20_0x3bea77(0xee)]=process[a20_0x3bea77(0x100)]['BS_API_URL']||a20_0x3bea77(0x127),exports[a20_0x3bea77(0x112)]=process[a20_0x3bea77(0x100)][a20_0x3bea77(0x112)]||a20_0x3bea77(0x12f),exports[a20_0x3bea77(0xe4)]=a20_0x3bea77(0x10c)+this[a20_0x3bea77(0x112)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a20_0x3bea77(0x105)]=a20_0x3bea77(0x109),exports[a20_0x3bea77(0x10e)]=a20_0x3bea77(0x124),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a20_0x3bea77(0xf6)]=a20_0x3bea77(0xfc),exports[a20_0x3bea77(0x11c)]=a20_0x3bea77(0xec),exports[a20_0x3bea77(0xfa)]=a20_0x3bea77(0x120),exports[a20_0x3bea77(0x117)]=a20_0x3bea77(0xf1),exports['AZURE']=a20_0x3bea77(0xf8),exports[a20_0x3bea77(0x131)]='gcp');const a20_0x3fdfc7={};a20_0x3fdfc7[a20_0x3bea77(0xe6)]=a20_0x3bea77(0xda),a20_0x3fdfc7[a20_0x3bea77(0x118)]=a20_0x3bea77(0xeb);const a20_0x389e82={};a20_0x389e82[a20_0x3bea77(0xe6)]='browserstack:service',a20_0x389e82[a20_0x3bea77(0x118)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a20_0x3fdfc7,a20_0x389e82];if(process[a20_0x3bea77(0x100)][a20_0x3bea77(0xea)]){const parsedTags=process[a20_0x3bea77(0x100)][a20_0x3bea77(0xea)][a20_0x3bea77(0x128)](',');parsedTags[a20_0x3bea77(0x125)](_0x23d8de=>{const _0x147afd=a20_0x3bea77,_0x23d3e1=_0x23d8de[_0x147afd(0x128)](':'),_0x7a79b8={};_0x7a79b8[_0x147afd(0xe6)]=_0x23d3e1[0x0],_0x7a79b8[_0x147afd(0x118)]=_0x23d3e1[0x1],common_hst_tags_list['push'](_0x7a79b8);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a20_0x43b75f={};a20_0x43b75f[a20_0x3bea77(0xda)]=a20_0x3bea77(0xeb),a20_0x43b75f[a20_0x3bea77(0xf9)]=a20_0x3bea77(0xfe),exports['HST_CLUSTER_TAGS']=a20_0x43b75f,exports[a20_0x3bea77(0xe2)]=[this[a20_0x3bea77(0xf6)]];function a20_0x4fd4(_0x5d7739,_0x5afe5e){const _0x59ca3f=a20_0x59ca();return a20_0x4fd4=function(_0x4fd401,_0x584120){_0x4fd401=_0x4fd401-0xda;let _0x1dc8b4=_0x59ca3f[_0x4fd401];return _0x1dc8b4;},a20_0x4fd4(_0x5d7739,_0x5afe5e);}const a20_0x129143={};function a20_0x59ca(){const _0x9f10c0=['3191746yERTUO','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','365532xyabnY','grid-api.browserstack.com','WS_EVENTS','GCP','browserstack:managedBy','GRID_URL','57058270HcHRLK','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','dotenv','gridUrl','306Qegrth','REDACTED','SUPPORTED_CLOUD_PROVIDERS','info','WS_ENDPOINT','RAW_ARGS_REGEX','Key','success','HELP_FOOTER_MESSAGE','3689944SSSvmF','TURBOSCALE_CUSTOM_TAGS','BrowserStack','BSTACK-ATS-CLUSTER','27kPYpCi','BS_API_URL','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridProfile','browserstack-turboscale-grid','start','init','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','delete','AWS','cliRunStarted','azure','browserstack:service','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','aws','LOG','BrowserStack-Automate-TurboScale','root','env','SUCCESS','grid','configure','UNKNOWN','CP_CONFIG_FILE','log','global_registry','error','credentials','create','INFO','wss://','LINK_MESSAGE','IAM_USER_NAME','CLI_RUN_STARTED','config','unknown','AG_API_URL','HELP_HEADER_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','TURBOSCALE_DEPLOYMENT','Value','[REDACTED]','warning','cliRunFinished','CLUSTER_DEP_STACK_NAME','grid.browserstack.com','4047475XAxcAA','12LrQhqf','BSTACK-ATS-CLUSTER-AUTOSCALER','list','NULL','messageTypes','BrowserStackIAMUser','forEach','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api.browserstack.com','split','44082pwcdLu','96915cwuwTN','DASHBOARD_ENDPOINT'];a20_0x59ca=function(){return _0x9f10c0;};return a20_0x59ca();}a20_0x129143[a20_0x3bea77(0xfd)]=a20_0x3bea77(0x106),a20_0x129143['RESOURCES']='resourceInfo',a20_0x129143[a20_0x3bea77(0xdb)]=a20_0x3bea77(0xdf),a20_0x129143[a20_0x3bea77(0x10f)]=a20_0x3bea77(0xf7),a20_0x129143['CLI_RUN_FINISHED']=a20_0x3bea77(0x11b),exports[a20_0x3bea77(0x130)]=a20_0x129143,exports[a20_0x3bea77(0x107)]={},exports[a20_0x3bea77(0x10d)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a20_0x5dc4b5={};a20_0x5dc4b5[a20_0x3bea77(0xff)]=a20_0x3bea77(0xdd)+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5[a20_0x3bea77(0xf3)]=a20_0x3bea77(0xf4)+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5[a20_0x3bea77(0x103)]=a20_0x3bea77(0x12d)+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5[a20_0x3bea77(0x10a)]=a20_0x3bea77(0x126)+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5[a20_0x3bea77(0x121)]={},a20_0x5dc4b5[a20_0x3bea77(0xf5)]=a20_0x3bea77(0xfb)+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5['connect']=a20_0x3bea77(0xef)+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5[a20_0x3bea77(0xf2)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5['stop']=a20_0x3bea77(0x115)+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5[a20_0x3bea77(0x121)][a20_0x3bea77(0xff)]=a20_0x3bea77(0x114)+this['LINK_MESSAGE'],a20_0x5dc4b5[a20_0x3bea77(0x121)][a20_0x3bea77(0x102)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x3bea77(0x10d)],a20_0x5dc4b5[a20_0x3bea77(0x121)][a20_0x3bea77(0xf0)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a20_0x3bea77(0x10d)],exports[a20_0x3bea77(0x113)]=a20_0x5dc4b5,exports[a20_0x3bea77(0xe8)]=a20_0x3bea77(0x116);const a20_0xdca074={};a20_0xdca074[a20_0x3bea77(0x101)]=a20_0x3bea77(0xe7),a20_0xdca074['ERROR']=a20_0x3bea77(0x108),a20_0xdca074[a20_0x3bea77(0x10b)]=a20_0x3bea77(0xe3),a20_0xdca074['WARNING']=a20_0x3bea77(0x11a),a20_0xdca074[a20_0x3bea77(0x104)]=a20_0x3bea77(0x111),a20_0xdca074[a20_0x3bea77(0x122)]=null,exports[a20_0x3bea77(0x123)]=a20_0xdca074,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x3bea77(0xe5)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x3bea77(0xe1)]=a20_0x3bea77(0x119);
1
+ const a20_0x1b0a0e=a20_0x35a1;(function(_0x243e18,_0x9c79b5){const _0x50b276=a20_0x35a1,_0x4bd663=_0x243e18();while(!![]){try{const _0x569059=-parseInt(_0x50b276(0x199))/0x1+parseInt(_0x50b276(0x1a3))/0x2+-parseInt(_0x50b276(0x1a4))/0x3*(-parseInt(_0x50b276(0x1a5))/0x4)+-parseInt(_0x50b276(0x197))/0x5*(parseInt(_0x50b276(0x169))/0x6)+-parseInt(_0x50b276(0x173))/0x7+parseInt(_0x50b276(0x1ac))/0x8+parseInt(_0x50b276(0x1ad))/0x9;if(_0x569059===_0x9c79b5)break;else _0x4bd663['push'](_0x4bd663['shift']());}catch(_0x3a2c9c){_0x4bd663['push'](_0x4bd663['shift']());}}}(a20_0x3ae2,0xc2d0c),require(a20_0x1b0a0e(0x1a9))[a20_0x1b0a0e(0x17c)](),exports['DASHBOARD_ENDPOINT']=process[a20_0x1b0a0e(0x19f)][a20_0x1b0a0e(0x1a2)]||a20_0x1b0a0e(0x171),exports[a20_0x1b0a0e(0x162)]=process[a20_0x1b0a0e(0x19f)][a20_0x1b0a0e(0x162)]||a20_0x1b0a0e(0x180),exports['AG_API_URL']=process['env'][a20_0x1b0a0e(0x18b)]||'grid-api.browserstack.com',exports['WS_ENDPOINT']='wss://'+this[a20_0x1b0a0e(0x18b)]+a20_0x1b0a0e(0x1a1),exports['CP_CONFIG_FILE']='credentials',exports['IAM_USER_NAME']=a20_0x1b0a0e(0x18d),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports['AWS']=a20_0x1b0a0e(0x15d),exports[a20_0x1b0a0e(0x1ab)]=a20_0x1b0a0e(0x1aa),exports[a20_0x1b0a0e(0x181)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a20_0x1b0a0e(0x16c)]=a20_0x1b0a0e(0x1a6),exports[a20_0x1b0a0e(0x198)]=a20_0x1b0a0e(0x16a),exports[a20_0x1b0a0e(0x177)]=a20_0x1b0a0e(0x170));const a20_0x3d14de={};a20_0x3d14de['Key']=a20_0x1b0a0e(0x174),a20_0x3d14de[a20_0x1b0a0e(0x189)]=a20_0x1b0a0e(0x183);const a20_0x34f2ab={};function a20_0x3ae2(){const _0x534aa5=['push','cliRunStarted','REDACTED','403765PyGjqu','AZURE','337516oZACbE','info','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','split','GRID_URL','warning','env','grid','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','DASHBOARD_ENDPOINT','357152sMReuS','18435RxBVgp','16VxXGtp','browserstack-turboscale-grid','cliRunFinished','WARNING','dotenv','BSTACK-ATS-CLUSTER','CLUSTER_DEP_STACK_NAME','6384120qYaiDY','18214245ztsPCx','CLI_RUN_STARTED','UNKNOWN','aws','SUPPORTED_CLOUD_PROVIDERS','resourceInfo','HST_CLUSTER_TAGS','unknown','BS_API_URL','RESOURCES','delete','root','INFO','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','gridUrl','42GScPNt','azure','create','TURBOSCALE_DEPLOYMENT','CLI_ARGS_REGEX','AWS','HELP_FOOTER_MESSAGE','gcp','grid.browserstack.com','log','9269575QKEEkV','browserstack:managedBy','list','connect','GCP','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','TURBOSCALE_CUSTOM_TAGS','messageTypes','start','config','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','stop','browserstack:service','api.browserstack.com','CLUSTER_AUTOSCALER_STACK_NAME','success','BrowserStack','BrowserStack-Automate-TurboScale','forEach','NULL','WS_EVENTS','error','Value','HELP_HEADER_MESSAGE','AG_API_URL','COMMON_HST_TAGS','BrowserStackIAMUser','LINK_MESSAGE','LOG','ERROR','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'];a20_0x3ae2=function(){return _0x534aa5;};return a20_0x3ae2();}a20_0x34f2ab['Key']=a20_0x1b0a0e(0x17f),a20_0x34f2ab[a20_0x1b0a0e(0x189)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a20_0x3d14de,a20_0x34f2ab];if(process[a20_0x1b0a0e(0x19f)][a20_0x1b0a0e(0x179)]){const parsedTags=process[a20_0x1b0a0e(0x19f)][a20_0x1b0a0e(0x179)][a20_0x1b0a0e(0x19c)](',');parsedTags[a20_0x1b0a0e(0x185)](_0x545b9b=>{const _0x18e7ae=a20_0x1b0a0e,_0x2a3b1a=_0x545b9b[_0x18e7ae(0x19c)](':'),_0x2cd7c9={};_0x2cd7c9['Key']=_0x2a3b1a[0x0],_0x2cd7c9['Value']=_0x2a3b1a[0x1],common_hst_tags_list[_0x18e7ae(0x194)](_0x2cd7c9);});}exports[a20_0x1b0a0e(0x18c)]=common_hst_tags_list;const a20_0x5e7de9={};a20_0x5e7de9[a20_0x1b0a0e(0x174)]='BrowserStack',a20_0x5e7de9[a20_0x1b0a0e(0x17f)]=a20_0x1b0a0e(0x184),exports[a20_0x1b0a0e(0x160)]=a20_0x5e7de9,exports[a20_0x1b0a0e(0x15e)]=[this[a20_0x1b0a0e(0x16e)]];const a20_0x33e5d8={};a20_0x33e5d8[a20_0x1b0a0e(0x18f)]=a20_0x1b0a0e(0x172),a20_0x33e5d8[a20_0x1b0a0e(0x163)]=a20_0x1b0a0e(0x15f),a20_0x33e5d8[a20_0x1b0a0e(0x19d)]=a20_0x1b0a0e(0x168),a20_0x33e5d8[a20_0x1b0a0e(0x1ae)]=a20_0x1b0a0e(0x195),a20_0x33e5d8['CLI_RUN_FINISHED']=a20_0x1b0a0e(0x1a7),exports[a20_0x1b0a0e(0x187)]=a20_0x33e5d8,exports['global_registry']={},exports['LINK_MESSAGE']=a20_0x1b0a0e(0x191);const a20_0x24ddbd={};function a20_0x35a1(_0xa99e12,_0x1e6e71){const _0x3ae2e1=a20_0x3ae2();return a20_0x35a1=function(_0x35a1cf,_0x4ca72c){_0x35a1cf=_0x35a1cf-0x15d;let _0x54c3df=_0x3ae2e1[_0x35a1cf];return _0x54c3df;},a20_0x35a1(_0xa99e12,_0x1e6e71);}a20_0x24ddbd[a20_0x1b0a0e(0x165)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd['init']=a20_0x1b0a0e(0x17d)+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd[a20_0x1b0a0e(0x16b)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a20_0x24ddbd[a20_0x1b0a0e(0x175)]={},a20_0x24ddbd[a20_0x1b0a0e(0x164)]=a20_0x1b0a0e(0x193)+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd[a20_0x1b0a0e(0x176)]=a20_0x1b0a0e(0x178)+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd[a20_0x1b0a0e(0x17b)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd[a20_0x1b0a0e(0x17e)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd[a20_0x1b0a0e(0x175)]['root']=a20_0x1b0a0e(0x19b)+this['LINK_MESSAGE'],a20_0x24ddbd[a20_0x1b0a0e(0x175)][a20_0x1b0a0e(0x1a0)]=a20_0x1b0a0e(0x192)+this[a20_0x1b0a0e(0x18e)],a20_0x24ddbd[a20_0x1b0a0e(0x175)]['gridProfile']=a20_0x1b0a0e(0x167)+this[a20_0x1b0a0e(0x18e)],exports[a20_0x1b0a0e(0x18a)]=a20_0x24ddbd,exports[a20_0x1b0a0e(0x16f)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a20_0x368607={};a20_0x368607['SUCCESS']=a20_0x1b0a0e(0x182),a20_0x368607[a20_0x1b0a0e(0x190)]=a20_0x1b0a0e(0x188),a20_0x368607[a20_0x1b0a0e(0x166)]=a20_0x1b0a0e(0x19a),a20_0x368607[a20_0x1b0a0e(0x1a8)]=a20_0x1b0a0e(0x19e),a20_0x368607[a20_0x1b0a0e(0x1af)]=a20_0x1b0a0e(0x161),a20_0x368607[a20_0x1b0a0e(0x186)]=null,exports[a20_0x1b0a0e(0x17a)]=a20_0x368607,exports[a20_0x1b0a0e(0x16d)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x1b0a0e(0x196)]='[REDACTED]';
@@ -1 +1 @@
1
- const a21_0x28b65e=a21_0x4f3c;(function(_0x2162b7,_0x277a40){const _0x5a7c3b=a21_0x4f3c,_0x41bdd5=_0x2162b7();while(!![]){try{const _0x4f9239=-parseInt(_0x5a7c3b(0x128))/0x1+-parseInt(_0x5a7c3b(0x127))/0x2+-parseInt(_0x5a7c3b(0x11b))/0x3*(parseInt(_0x5a7c3b(0x12a))/0x4)+-parseInt(_0x5a7c3b(0x133))/0x5*(-parseInt(_0x5a7c3b(0x12b))/0x6)+parseInt(_0x5a7c3b(0x124))/0x7+-parseInt(_0x5a7c3b(0x11e))/0x8+-parseInt(_0x5a7c3b(0x12d))/0x9*(-parseInt(_0x5a7c3b(0x120))/0xa);if(_0x4f9239===_0x277a40)break;else _0x41bdd5['push'](_0x41bdd5['shift']());}catch(_0x15e600){_0x41bdd5['push'](_0x41bdd5['shift']());}}}(a21_0x5cfe,0xadf32));const winston=require(a21_0x28b65e(0x135)),fs=require('fs'),path=require('path'),logDir='log';!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a21_0x35c182={};a21_0x35c182[a21_0x28b65e(0x118)]=a21_0x28b65e(0x11c);const a21_0x2c48c3={};a21_0x2c48c3[a21_0x28b65e(0x11f)]=!![];function a21_0x5cfe(){const _0x55fac8=['YYYY-MM-DD\x20HH:mm:ss','events.log','769072rYCcqT','level','5834990rniwNR','Console','timestamp','join','3004344mSxVlA','createLogger','name','759104kXTtVJ','22519UYInvN','\x20-\x20','4kadeYI','6OfnrZZ','printf','9BYejuV','combine','colorize','console.info','debug','transports','1528990rgARRB','logger','winston','format','usage.log','message','323358WGskWB'];a21_0x5cfe=function(){return _0x55fac8;};return a21_0x5cfe();}const a21_0x45ca20={};a21_0x45ca20[a21_0x28b65e(0x126)]=a21_0x28b65e(0x130),exports[a21_0x28b65e(0x134)]=new winston[(a21_0x28b65e(0x125))]({'format':winston['format'][a21_0x28b65e(0x12e)](winston['format'][a21_0x28b65e(0x122)](a21_0x35c182),winston[a21_0x28b65e(0x118)][a21_0x28b65e(0x12f)](a21_0x2c48c3),winston[a21_0x28b65e(0x118)][a21_0x28b65e(0x12c)](_0x2bb0c2=>_0x2bb0c2[a21_0x28b65e(0x122)]+a21_0x28b65e(0x129)+_0x2bb0c2[a21_0x28b65e(0x11f)]+':\x20'+_0x2bb0c2[a21_0x28b65e(0x11a)])),'transports':[new winston[(a21_0x28b65e(0x132))][(a21_0x28b65e(0x121))](a21_0x45ca20),new winston[(a21_0x28b65e(0x132))]['File']({'filename':path['join'](logDir,a21_0x28b65e(0x11d)),'level':a21_0x28b65e(0x131)})]});function a21_0x4f3c(_0x181db4,_0x396f73){const _0x5cfe3d=a21_0x5cfe();return a21_0x4f3c=function(_0x4f3c33,_0xa4c7c6){_0x4f3c33=_0x4f3c33-0x118;let _0x1de1e7=_0x5cfe3d[_0x4f3c33];return _0x1de1e7;},a21_0x4f3c(_0x181db4,_0x396f73);}const winstonFileLoggerParams={'transports':[new winston[(a21_0x28b65e(0x132))]['File']({'filename':path[a21_0x28b65e(0x123)](logDir,a21_0x28b65e(0x119)),'level':'debug'})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a21_0x5064d0=a21_0x2589;(function(_0x362b41,_0x5052a0){const _0x11b0c1=a21_0x2589,_0x46660a=_0x362b41();while(!![]){try{const _0x17348d=-parseInt(_0x11b0c1(0xff))/0x1+-parseInt(_0x11b0c1(0x105))/0x2*(parseInt(_0x11b0c1(0xfe))/0x3)+-parseInt(_0x11b0c1(0x102))/0x4+-parseInt(_0x11b0c1(0xf8))/0x5+-parseInt(_0x11b0c1(0x109))/0x6+parseInt(_0x11b0c1(0xfa))/0x7+parseInt(_0x11b0c1(0x100))/0x8*(parseInt(_0x11b0c1(0xf4))/0x9);if(_0x17348d===_0x5052a0)break;else _0x46660a['push'](_0x46660a['shift']());}catch(_0x2e1072){_0x46660a['push'](_0x46660a['shift']());}}}(a21_0x5420,0xcf715));function a21_0x5420(){const _0x1d5ab2=['combine','path','1139331KCFTGK','1588785ADfuTa','72oSiyyW','usage.log','969832Ktptke','format','join','2zjBiRq','level','createLogger','transports','8926848OEvpMA','File','logger','debug','colorize','log','timestamp','console.info','existsSync','4835646vxhQdW','name','mkdirSync','YYYY-MM-DD\x20HH:mm:ss','4021245CYHzBA','\x20-\x20','3619812fEhCOL','fileLogger'];a21_0x5420=function(){return _0x1d5ab2;};return a21_0x5420();}const winston=require('winston'),fs=require('fs'),path=require(a21_0x5064d0(0xfd)),logDir=a21_0x5064d0(0x10e);!fs[a21_0x5064d0(0xf3)](logDir)&&fs[a21_0x5064d0(0xf6)](logDir);const a21_0x246556={};a21_0x246556[a21_0x5064d0(0x103)]=a21_0x5064d0(0xf7);const a21_0x9549f4={};function a21_0x2589(_0x23c019,_0x383077){const _0x54206b=a21_0x5420();return a21_0x2589=function(_0x258947,_0x5093c1){_0x258947=_0x258947-0xf2;let _0x19e83d=_0x54206b[_0x258947];return _0x19e83d;},a21_0x2589(_0x23c019,_0x383077);}a21_0x9549f4[a21_0x5064d0(0x106)]=!![];const a21_0x24a812={};a21_0x24a812[a21_0x5064d0(0xf5)]=a21_0x5064d0(0xf2),exports[a21_0x5064d0(0x10b)]=new winston[(a21_0x5064d0(0x107))]({'format':winston['format'][a21_0x5064d0(0xfc)](winston['format'][a21_0x5064d0(0x10f)](a21_0x246556),winston['format'][a21_0x5064d0(0x10d)](a21_0x9549f4),winston[a21_0x5064d0(0x103)]['printf'](_0x173a6e=>_0x173a6e[a21_0x5064d0(0x10f)]+a21_0x5064d0(0xf9)+_0x173a6e[a21_0x5064d0(0x106)]+':\x20'+_0x173a6e['message'])),'transports':[new winston['transports']['Console'](a21_0x24a812),new winston[(a21_0x5064d0(0x108))][(a21_0x5064d0(0x10a))]({'filename':path[a21_0x5064d0(0x104)](logDir,'events.log'),'level':a21_0x5064d0(0x10c)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x5064d0(0x108))][(a21_0x5064d0(0x10a))]({'filename':path[a21_0x5064d0(0x104)](logDir,a21_0x5064d0(0x101)),'level':a21_0x5064d0(0x10c)})]};exports[a21_0x5064d0(0xfb)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0x34084d=a22_0x402b;function a22_0xe14e(){const _0x4b94e2=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','./config/constants','2863128dkFslp','5121AKBeUE','help','9145jDOUQs','1058GfBGDn','12299144QBAubJ','iEdPD','exports','8pISFlf','DBKye','20bUxGmu','7388619mzoxzN','commands','989358SLyexX','root','2839680UmKhHn','env','demandCommand','usage','commandDir','3204PjLWXx'];a22_0xe14e=function(){return _0x4b94e2;};return a22_0xe14e();}(function(_0x45f838,_0x44fdfc){const _0xa111f8=a22_0x402b,_0x4ec32b=_0x45f838();while(!![]){try{const _0x4829f0=-parseInt(_0xa111f8(0x143))/0x1+parseInt(_0xa111f8(0x13a))/0x2*(-parseInt(_0xa111f8(0x137))/0x3)+parseInt(_0xa111f8(0x136))/0x4+-parseInt(_0xa111f8(0x139))/0x5*(parseInt(_0xa111f8(0x133))/0x6)+parseInt(_0xa111f8(0x141))/0x7*(parseInt(_0xa111f8(0x13e))/0x8)+-parseInt(_0xa111f8(0x145))/0x9*(-parseInt(_0xa111f8(0x140))/0xa)+parseInt(_0xa111f8(0x13b))/0xb;if(_0x4829f0===_0x44fdfc)break;else _0x4ec32b['push'](_0x4ec32b['shift']());}catch(_0x3c619c){_0x4ec32b['push'](_0x4ec32b['shift']());}}}(a22_0xe14e,0x9f084));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x34084d(0x135));process[a22_0x34084d(0x146)][a22_0x34084d(0x134)]=0x1;function run(_0x42ada4){const _0x38fc0d=a22_0x34084d,_0x17f1d1={};_0x17f1d1[_0x38fc0d(0x13c)]=_0x38fc0d(0x142),_0x17f1d1[_0x38fc0d(0x13f)]=_0x38fc0d(0x138);const _0xa0685e=_0x17f1d1;_0x42ada4[_0x38fc0d(0x131)](HELP_HEADER_MESSAGE[_0x38fc0d(0x144)])[_0x38fc0d(0x132)](_0xa0685e['iEdPD'])[_0x38fc0d(0x147)]()['help'](_0xa0685e[_0x38fc0d(0x13f)])['epilogue'](HELP_FOOTER_MESSAGE);}function a22_0x402b(_0x2dc325,_0x528255){const _0xe14ebc=a22_0xe14e();return a22_0x402b=function(_0x402bec,_0x5469b5){_0x402bec=_0x402bec-0x131;let _0xb122e4=_0xe14ebc[_0x402bec];return _0xb122e4;},a22_0x402b(_0x2dc325,_0x528255);}module[a22_0x34084d(0x13d)]=run;
2
+ 'use strict';const a22_0x2d244e=a22_0x1c94;(function(_0x4fec50,_0x48294f){const _0x47fc09=a22_0x1c94,_0x28d14e=_0x4fec50();while(!![]){try{const _0x5539f1=-parseInt(_0x47fc09(0x1ad))/0x1+-parseInt(_0x47fc09(0x1a3))/0x2*(parseInt(_0x47fc09(0x1a9))/0x3)+-parseInt(_0x47fc09(0x1b0))/0x4+-parseInt(_0x47fc09(0x1aa))/0x5+parseInt(_0x47fc09(0x1a5))/0x6*(-parseInt(_0x47fc09(0x1a7))/0x7)+parseInt(_0x47fc09(0x1a1))/0x8*(parseInt(_0x47fc09(0x1b5))/0x9)+parseInt(_0x47fc09(0x1a8))/0xa;if(_0x5539f1===_0x48294f)break;else _0x28d14e['push'](_0x28d14e['shift']());}catch(_0x1acc95){_0x28d14e['push'](_0x28d14e['shift']());}}}(a22_0x277e,0x53739));function a22_0x277e(){const _0x38f639=['demandCommand','AOFVw','2427524ceXFYO','commands','exports','epilogue','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','770049npKOSF','root','CVGtl','48zujcQq','help','1267562KWGFyx','usage','948zaqzXR','./config/constants','21623KXoTTp','24971890ByJhJz','3rmviXB','2535800seZWVT','env','commandDir','432854mqwogQ'];a22_0x277e=function(){return _0x38f639;};return a22_0x277e();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x2d244e(0x1a6));process[a22_0x2d244e(0x1ab)][a22_0x2d244e(0x1b4)]=0x1;function run(_0x363210){const _0x42e5aa=a22_0x2d244e,_0x2e1b27={};_0x2e1b27[_0x42e5aa(0x1a0)]=_0x42e5aa(0x1b1),_0x2e1b27['AOFVw']=_0x42e5aa(0x1a2);const _0x33b3db=_0x2e1b27;_0x363210[_0x42e5aa(0x1a4)](HELP_HEADER_MESSAGE[_0x42e5aa(0x19f)])[_0x42e5aa(0x1ac)](_0x33b3db['CVGtl'])[_0x42e5aa(0x1ae)]()[_0x42e5aa(0x1a2)](_0x33b3db[_0x42e5aa(0x1af)])[_0x42e5aa(0x1b3)](HELP_FOOTER_MESSAGE);}function a22_0x1c94(_0x5f43e8,_0x1901fe){const _0x277e67=a22_0x277e();return a22_0x1c94=function(_0x1c94a7,_0x3f8bfb){_0x1c94a7=_0x1c94a7-0x19f;let _0xcd336a=_0x277e67[_0x1c94a7];return _0xcd336a;},a22_0x1c94(_0x5f43e8,_0x1901fe);}module[a22_0x2d244e(0x1b2)]=run;
@@ -1 +1 @@
1
- function a23_0x9f74(_0x555668,_0x3328ad){const _0x14a69a=a23_0x14a6();return a23_0x9f74=function(_0x9f741e,_0x245f87){_0x9f741e=_0x9f741e-0x122;let _0x1ca945=_0x14a69a[_0x9f741e];return _0x1ca945;},a23_0x9f74(_0x555668,_0x3328ad);}const a23_0xd89010=a23_0x9f74;(function(_0x27ab2f,_0x220cbd){const _0x580fda=a23_0x9f74,_0x53fd98=_0x27ab2f();while(!![]){try{const _0x59713e=-parseInt(_0x580fda(0x12b))/0x1+-parseInt(_0x580fda(0x18c))/0x2+parseInt(_0x580fda(0x192))/0x3+parseInt(_0x580fda(0x14f))/0x4*(-parseInt(_0x580fda(0x16b))/0x5)+parseInt(_0x580fda(0x19c))/0x6+-parseInt(_0x580fda(0x1ae))/0x7*(-parseInt(_0x580fda(0x155))/0x8)+parseInt(_0x580fda(0x193))/0x9;if(_0x59713e===_0x220cbd)break;else _0x53fd98['push'](_0x53fd98['shift']());}catch(_0x1bf1c7){_0x53fd98['push'](_0x53fd98['shift']());}}}(a23_0x14a6,0xe763c));const awsSDK=require(a23_0xd89010(0x19d)),{logger}=require(a23_0xd89010(0x143));exports['fetchVPCs']=_0x41570c=>{const _0x129a1c=a23_0xd89010,_0x5aa4de={'EurPb':function(_0x3d6f26,_0x101ae4){return _0x3d6f26(_0x101ae4);},'Yvnla':_0x129a1c(0x168),'ZPHuT':function(_0x45e808,_0xef418c){return _0x45e808===_0xef418c;},'cptXg':_0x129a1c(0x172),'uHeIy':function(_0x4a68dd,_0x384777){return _0x4a68dd(_0x384777);},'GBfWS':function(_0x477d4e,_0x348414){return _0x477d4e!==_0x348414;},'UInXB':function(_0x5eb79a,_0x1bdbd7){return _0x5eb79a(_0x1bdbd7);},'UOVsM':function(_0x15c29a,_0x258996){return _0x15c29a(_0x258996);},'OvmnQ':function(_0x1488f2,_0xf538a5){return _0x1488f2!==_0xf538a5;},'uyNhI':_0x129a1c(0x18d),'dEUvT':_0x129a1c(0x19a),'hwRYQ':_0x129a1c(0x1aa)};return new Promise((_0x460122,_0x22ef6c)=>{const _0x744024=_0x129a1c,_0x34463b={'LKuUu':function(_0x5c783c,_0x1c807d){const _0x81da18=a23_0x9f74;return _0x5aa4de[_0x81da18(0x199)](_0x5c783c,_0x1c807d);},'Tsrtu':function(_0x34ff49,_0x61ef30){const _0x161a51=a23_0x9f74;return _0x5aa4de[_0x161a51(0x199)](_0x34ff49,_0x61ef30);},'OFUlS':function(_0x2df3ad,_0x1c17f0){const _0x45169c=a23_0x9f74;return _0x5aa4de[_0x45169c(0x134)](_0x2df3ad,_0x1c17f0);},'AGZSU':function(_0x1b936a,_0x9f17ff){const _0x34dddb=a23_0x9f74;return _0x5aa4de[_0x34dddb(0x13e)](_0x1b936a,_0x9f17ff);},'DcDGC':_0x5aa4de[_0x744024(0x153)],'RtYWY':function(_0x307286,_0x25a59d){const _0x147e30=_0x744024;return _0x5aa4de[_0x147e30(0x1b1)](_0x307286,_0x25a59d);},'GsELT':_0x5aa4de['uyNhI'],'AwExa':_0x5aa4de[_0x744024(0x17b)],'IKnYD':function(_0x138016,_0x448935){const _0xb80716=_0x744024;return _0x5aa4de[_0xb80716(0x134)](_0x138016,_0x448935);}};if(_0x5aa4de[_0x744024(0x199)](_0x5aa4de[_0x744024(0x16c)],_0x5aa4de[_0x744024(0x16c)]))_0x34463b[_0x744024(0x1a7)](_0x193d85,_0x55c37f)&&_0x34463b[_0x744024(0x1a3)](_0xef3475[_0x744024(0x197)],_0x425207)?_0x34463b['OFUlS'](_0x58a89f,_0x41e9d5[_0x744024(0x197)]):_0x34463b[_0x744024(0x12f)](_0x75dec6,{});else{const _0x248601={};_0x248601[_0x744024(0x13b)]=_0x5aa4de['Yvnla'],_0x248601[_0x744024(0x166)]=_0x41570c;const _0x6c4119=new awsSDK['EC2'](_0x248601);_0x6c4119[_0x744024(0x1af)]()[_0x744024(0x178)]()[_0x744024(0x191)](_0x5adba5=>{const _0x535d94=_0x744024,_0x2eac81={'GhRno':function(_0xacaa9e,_0x129a9a){return _0x34463b['OFUlS'](_0xacaa9e,_0x129a9a);},'IyKIN':_0x34463b['DcDGC']};if(_0x34463b[_0x535d94(0x1b3)](_0x34463b[_0x535d94(0x187)],_0x34463b[_0x535d94(0x163)]))_0x34463b[_0x535d94(0x181)](_0x460122,_0x5adba5);else{const _0x1a4ebd={'aOAGi':function(_0x4c7870,_0x222317){const _0x2358e7=_0x535d94;return _0x2eac81[_0x2358e7(0x13f)](_0x4c7870,_0x222317);}},_0x173085={};_0x173085[_0x535d94(0x13b)]=_0x2eac81[_0x535d94(0x196)],_0x173085[_0x535d94(0x166)]=_0x32defe;const _0x50338d=new _0x2851cf[(_0x535d94(0x174))](_0x173085);_0x50338d[_0x535d94(0x1af)]()[_0x535d94(0x178)]()[_0x535d94(0x191)](_0x21a951=>{const _0x8d7b99=_0x535d94;_0x2eac81[_0x8d7b99(0x13f)](_0x80f8ee,_0x21a951);})['catch'](_0x5ebd0a=>{const _0xeeda0f=_0x535d94;_0x1e04f8[_0xeeda0f(0x17c)](_0xeeda0f(0x154)+_0x5ebd0a),_0x1a4ebd[_0xeeda0f(0x1a9)](_0x21a22c,_0x5ebd0a);});}})['catch'](_0x3cdcc6=>{const _0x39443b=_0x744024,_0x4005e8={'BOHUh':function(_0x5ae54c,_0x206f33){const _0x4c2a74=a23_0x9f74;return _0x5aa4de[_0x4c2a74(0x14b)](_0x5ae54c,_0x206f33);},'dJlIz':_0x5aa4de[_0x39443b(0x153)]};if(_0x5aa4de[_0x39443b(0x1a2)](_0x5aa4de[_0x39443b(0x18a)],_0x5aa4de[_0x39443b(0x18a)]))logger['error'](_0x39443b(0x154)+_0x3cdcc6),_0x5aa4de[_0x39443b(0x13d)](_0x22ef6c,_0x3cdcc6);else return new _0x383f46((_0xfd2e98,_0x1e57de)=>{const _0x4482ac=_0x39443b,_0x4e4cea={'QRmTI':function(_0x29b8e2,_0x405035){return _0x4005e8['BOHUh'](_0x29b8e2,_0x405035);}},_0x12c5d6={};_0x12c5d6[_0x4482ac(0x13b)]=_0x4005e8[_0x4482ac(0x185)],_0x12c5d6[_0x4482ac(0x166)]=_0xf9605c;const _0x536896=new _0x2f0318[(_0x4482ac(0x174))](_0x12c5d6);_0x536896[_0x4482ac(0x180)]()[_0x4482ac(0x178)]()[_0x4482ac(0x191)](_0x2872fd=>{const _0x535491=_0x4482ac;_0x4e4cea[_0x535491(0x1a6)](_0xfd2e98,_0x2872fd);})[_0x4482ac(0x128)](_0x24fa51=>{const _0x517aa9=_0x4482ac;_0x48aa49['error'](_0x517aa9(0x12d)+_0x24fa51),_0x4e4cea[_0x517aa9(0x1a6)](_0x1e57de,_0x24fa51);});});});}});},exports[a23_0xd89010(0x19b)]=_0xd810bc=>{const _0x1abb3b=a23_0xd89010,_0x3a8e25={'UotUa':function(_0x529d00,_0x38fd51){return _0x529d00(_0x38fd51);},'MDUSD':function(_0x4acb2c,_0x43a7e5){return _0x4acb2c===_0x43a7e5;},'VhvgF':_0x1abb3b(0x171),'wfANS':function(_0x35f2b8,_0x20fd21){return _0x35f2b8(_0x20fd21);},'Fcgxo':function(_0x19045b,_0x4c8ee7){return _0x19045b===_0x4c8ee7;},'mVQCZ':_0x1abb3b(0x136),'vTwWr':function(_0x3d3c14,_0x47f63f){return _0x3d3c14===_0x47f63f;},'lZfOG':_0x1abb3b(0x133)},_0x520229=new awsSDK['S3']();return new Promise((_0xc97754,_0x1ee163)=>{const _0x486ce3=_0x1abb3b,_0x29ec08={'bJSpL':function(_0x2a7b28,_0x2575df){return _0x3a8e25['wfANS'](_0x2a7b28,_0x2575df);},'plRba':function(_0x1d24a1,_0xb9ce9b){const _0x3a0267=a23_0x9f74;return _0x3a8e25[_0x3a0267(0x194)](_0x1d24a1,_0xb9ce9b);},'Aevtf':_0x3a8e25['mVQCZ']};if(_0x3a8e25[_0x486ce3(0x140)](_0x3a8e25['lZfOG'],_0x3a8e25[_0x486ce3(0x158)])){const _0x5c128d={};_0x5c128d['Bucket']=_0xd810bc,_0x520229[_0x486ce3(0x152)](_0x5c128d)['promise']()['then'](_0x5df758=>{const _0x3fb9d9=_0x486ce3;_0x29ec08['plRba'](_0x29ec08[_0x3fb9d9(0x16e)],_0x29ec08[_0x3fb9d9(0x16e)])?(logger[_0x3fb9d9(0x12a)]('Bucket:\x20'+_0xd810bc+_0x3fb9d9(0x15c)),_0x29ec08[_0x3fb9d9(0x12c)](_0xc97754,!![])):(_0x501bdc[_0x3fb9d9(0x17c)](_0x3fb9d9(0x190)+_0x101beb),_0x29ec08[_0x3fb9d9(0x12c)](_0x3e9ecf,_0x2f8f35));})['catch'](()=>{const _0x3c14f7=_0x486ce3,_0x3d8b3f={'UdZAW':function(_0x3dec24,_0x286788){return _0x3a8e25['UotUa'](_0x3dec24,_0x286788);}};_0x3a8e25[_0x3c14f7(0x182)](_0x3a8e25[_0x3c14f7(0x1ac)],_0x3a8e25['VhvgF'])?(logger[_0x3c14f7(0x141)](_0x3c14f7(0x131)+_0xd810bc+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x3a8e25[_0x3c14f7(0x18b)](_0xc97754,![])):(_0x2bccc0['error'](_0x3c14f7(0x162)+_0x354d49),_0x3d8b3f[_0x3c14f7(0x123)](_0x37a29e,_0x1211e4));});}else _0x3a8e25[_0x486ce3(0x18b)](_0x2f1a23,_0x4c03d9);});},exports['fetchSubnets']=_0x4cffed=>{const _0x4a0ec7=a23_0xd89010,_0x50272b={'pkwTg':function(_0x149e24,_0x26daef){return _0x149e24(_0x26daef);},'DSRsU':_0x4a0ec7(0x168),'aNfNX':function(_0x5ebaca,_0x489d9f){return _0x5ebaca!==_0x489d9f;},'fVcNE':_0x4a0ec7(0x1b4),'YPYyy':_0x4a0ec7(0x1b2),'jNdwb':function(_0x49186c,_0x37124a){return _0x49186c(_0x37124a);},'TiDOE':function(_0x45ed72,_0x1e629f){return _0x45ed72===_0x1e629f;},'VKYcw':_0x4a0ec7(0x129),'oBTfj':_0x4a0ec7(0x195),'dMcha':'eXzUt'};return new Promise((_0x100d9a,_0x5b60da)=>{const _0x1af97d=_0x4a0ec7,_0x1a5cf0={'EIMSJ':function(_0x47ad5a,_0x424660){const _0x5c816e=a23_0x9f74;return _0x50272b[_0x5c816e(0x16a)](_0x47ad5a,_0x424660);},'TFExi':function(_0x3a0538,_0x59da53){const _0x1dcb28=a23_0x9f74;return _0x50272b[_0x1dcb28(0x157)](_0x3a0538,_0x59da53);},'afCGA':_0x50272b[_0x1af97d(0x1a1)],'UssqP':_0x50272b[_0x1af97d(0x13a)]};if(_0x50272b[_0x1af97d(0x1a5)](_0x50272b[_0x1af97d(0x122)],_0x50272b[_0x1af97d(0x122)]))_0x3dc5eb['error'](_0x1af97d(0x154)+_0x7b57c8),_0x50272b[_0x1af97d(0x126)](_0x458e5a,_0x368e3e);else{const _0x28aa1b={};_0x28aa1b[_0x1af97d(0x13b)]=_0x50272b[_0x1af97d(0x14a)],_0x28aa1b[_0x1af97d(0x166)]=_0x4cffed;const _0x244fa1=new awsSDK[(_0x1af97d(0x174))](_0x28aa1b);_0x244fa1[_0x1af97d(0x180)]()[_0x1af97d(0x178)]()['then'](_0x1d7bdb=>{const _0x909663=_0x1af97d,_0x2c3af5={'ZJFEi':function(_0x346f5a,_0x3db970){const _0x35198d=a23_0x9f74;return _0x50272b[_0x35198d(0x126)](_0x346f5a,_0x3db970);},'TPeap':function(_0x2bc8ff,_0x5785b4){const _0x3a5679=a23_0x9f74;return _0x50272b[_0x3a5679(0x126)](_0x2bc8ff,_0x5785b4);},'bKjsY':_0x50272b['DSRsU']};if(_0x50272b['aNfNX'](_0x50272b['fVcNE'],_0x50272b[_0x909663(0x161)]))_0x50272b[_0x909663(0x126)](_0x100d9a,_0x1d7bdb);else return new _0x4a0222((_0x450f0c,_0x279855)=>{const _0x5a1a01=_0x909663,_0x39999e={'KwUDR':function(_0x2f17a5,_0x19bbd3){const _0x47b7dd=a23_0x9f74;return _0x2c3af5[_0x47b7dd(0x14e)](_0x2f17a5,_0x19bbd3);},'pHfUG':function(_0x14ceab,_0x4ccc53){const _0xd2669c=a23_0x9f74;return _0x2c3af5[_0xd2669c(0x18e)](_0x14ceab,_0x4ccc53);}},_0x390973={};_0x390973[_0x5a1a01(0x13b)]=_0x2c3af5['bKjsY'],_0x390973[_0x5a1a01(0x166)]=_0x8d0cfe;const _0x5cdd70=new _0x4eafc0[(_0x5a1a01(0x174))](_0x390973);_0x5cdd70[_0x5a1a01(0x1af)]()[_0x5a1a01(0x178)]()[_0x5a1a01(0x191)](_0x594722=>{const _0x4a4ca3=_0x5a1a01;_0x39999e[_0x4a4ca3(0x176)](_0x450f0c,_0x594722);})['catch'](_0x546a64=>{const _0x7d8e88=_0x5a1a01;_0xc66504['error'](_0x7d8e88(0x154)+_0x546a64),_0x39999e[_0x7d8e88(0x15a)](_0x279855,_0x546a64);});});})[_0x1af97d(0x128)](_0x28d8cc=>{const _0x5efe4b=_0x1af97d,_0xb10a4d={'fQArC':function(_0x417949,_0x58cd5f){const _0x2f031e=a23_0x9f74;return _0x1a5cf0[_0x2f031e(0x1b6)](_0x417949,_0x58cd5f);}};_0x1a5cf0[_0x5efe4b(0x1a0)](_0x1a5cf0[_0x5efe4b(0x183)],_0x1a5cf0[_0x5efe4b(0x127)])?(_0x574043[_0x5efe4b(0x141)](_0x5efe4b(0x131)+_0xa4f5a9+_0x5efe4b(0x147)),_0xb10a4d[_0x5efe4b(0x17d)](_0x436e57,![])):(logger[_0x5efe4b(0x17c)](_0x5efe4b(0x12d)+_0x28d8cc),_0x1a5cf0[_0x5efe4b(0x1b6)](_0x5b60da,_0x28d8cc));});}});},exports['fetchSecurityGroups']=_0x511a79=>{const _0x1c7778=a23_0xd89010,_0x357233={'sTQhx':function(_0x4fc860,_0x44bca3){return _0x4fc860(_0x44bca3);},'qfBvn':'2016-11-15','nqinN':function(_0x3eb3bf,_0x44b4c5){return _0x3eb3bf===_0x44b4c5;},'uwJbu':'vqChx','NUymI':function(_0x3e7222,_0x2d1ab4){return _0x3e7222(_0x2d1ab4);},'RlpZV':function(_0x2ed3c3,_0xc8cd83){return _0x2ed3c3(_0xc8cd83);},'BKpnk':function(_0x5ee686,_0x1bc5d8){return _0x5ee686===_0x1bc5d8;},'urBfg':_0x1c7778(0x159),'jTARK':function(_0x5785e7,_0x2ccc29){return _0x5785e7(_0x2ccc29);},'lLUYX':function(_0x3391ee,_0x5eedc3){return _0x3391ee===_0x5eedc3;},'OwJAj':_0x1c7778(0x179),'gkBpQ':_0x1c7778(0x130)};return new Promise((_0x321f87,_0x49ad1d)=>{const _0x5e1bb5=_0x1c7778,_0x4d9890={'NsDrq':function(_0x3e1236,_0x4141d7){return _0x357233['sTQhx'](_0x3e1236,_0x4141d7);}};if(_0x357233[_0x5e1bb5(0x14c)](_0x357233['OwJAj'],_0x357233[_0x5e1bb5(0x125)])){const _0x2093bb={'cngry':function(_0x553ec0,_0x25af8d){const _0x7401d4=_0x5e1bb5;return _0x357233[_0x7401d4(0x142)](_0x553ec0,_0x25af8d);}},_0x2a69fa={};_0x2a69fa[_0x5e1bb5(0x13b)]=_0x357233[_0x5e1bb5(0x138)],_0x2a69fa['region']=_0x19256c;const _0x587396=new _0x1bee46['EC2'](_0x2a69fa);_0x587396[_0x5e1bb5(0x180)]()[_0x5e1bb5(0x178)]()[_0x5e1bb5(0x191)](_0x38caf9=>{const _0x3f3306=_0x5e1bb5;_0x2093bb[_0x3f3306(0x16f)](_0x1e0aab,_0x38caf9);})[_0x5e1bb5(0x128)](_0x5292a8=>{const _0x2bec7d=_0x5e1bb5;_0x3f8873[_0x2bec7d(0x17c)](_0x2bec7d(0x12d)+_0x5292a8),_0x4d9890[_0x2bec7d(0x1b0)](_0x38e841,_0x5292a8);});}else{const _0x4614fc={};_0x4614fc[_0x5e1bb5(0x13b)]=_0x357233[_0x5e1bb5(0x138)],_0x4614fc['region']=_0x511a79;const _0x2b326b=new awsSDK['EC2'](_0x4614fc);_0x2b326b['describeSecurityGroups']()['promise']()[_0x5e1bb5(0x191)](_0x359ef8=>{const _0x2fa7b=_0x5e1bb5;if(_0x357233[_0x2fa7b(0x150)](_0x357233[_0x2fa7b(0x169)],_0x357233[_0x2fa7b(0x169)]))_0x357233[_0x2fa7b(0x1ad)](_0x321f87,_0x359ef8);else{const _0x3aeb03={'SfQqs':function(_0x5211db,_0x432711){const _0x4c99f7=_0x2fa7b;return _0x4d9890[_0x4c99f7(0x1b0)](_0x5211db,_0x432711);}},_0x4f70f4=new _0x267bd1['S3']();return new _0x14e8a8((_0x5bffeb,_0x272904)=>{const _0x37b187=_0x2fa7b,_0x384422={};_0x384422['Bucket']=_0x39139d,_0x4f70f4['headBucket'](_0x384422)[_0x37b187(0x178)]()['then'](_0x295880=>{const _0x825190=_0x37b187;_0xebd40c[_0x825190(0x12a)](_0x825190(0x131)+_0x4c59ae+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0x3aeb03[_0x825190(0x1ab)](_0x5bffeb,!![]);})[_0x37b187(0x128)](()=>{const _0x38e589=_0x37b187;_0x87bfbd[_0x38e589(0x141)](_0x38e589(0x131)+_0x5ed593+_0x38e589(0x147)),_0x3aeb03[_0x38e589(0x1ab)](_0x5bffeb,![]);});});}})['catch'](_0x4f6175=>{const _0x24de4e=_0x5e1bb5,_0x3e497c={'vPOMM':function(_0x5afe33,_0x4a4857){return _0x357233['RlpZV'](_0x5afe33,_0x4a4857);},'DwncI':function(_0x35b650,_0x225a79){const _0x3c552e=a23_0x9f74;return _0x357233[_0x3c552e(0x17e)](_0x35b650,_0x225a79);}};if(_0x357233[_0x24de4e(0x165)](_0x357233['urBfg'],_0x357233[_0x24de4e(0x144)]))logger['error'](_0x24de4e(0x190)+_0x4f6175),_0x357233[_0x24de4e(0x1a4)](_0x49ad1d,_0x4f6175);else{const _0xbd5cc8={'RerVx':function(_0x2f6bbb,_0x58bf0a){const _0x587fa9=_0x24de4e;return _0x3e497c[_0x587fa9(0x146)](_0x2f6bbb,_0x58bf0a);}},_0x16240b={};_0x16240b[_0x24de4e(0x184)]=_0x377b8e,_0x41c2cf[_0x24de4e(0x152)](_0x16240b)['promise']()['then'](_0x95952c=>{const _0x233d07=_0x24de4e;_0x19b093[_0x233d07(0x12a)](_0x233d07(0x131)+_0x17c9ff+_0x233d07(0x15c)),_0x3e497c['vPOMM'](_0x317ef7,!![]);})[_0x24de4e(0x128)](()=>{const _0x464f25=_0x24de4e;_0x435237[_0x464f25(0x141)]('Bucket:\x20'+_0x1d5470+_0x464f25(0x147)),_0xbd5cc8[_0x464f25(0x13c)](_0x59a3ca,![]);});}});}});},exports[a23_0xd89010(0x137)]=()=>{const _0x5694ae=a23_0xd89010,_0x19549c={'fOpjB':function(_0x4ef9d9,_0x401d3d){return _0x4ef9d9(_0x401d3d);},'pyHfy':_0x5694ae(0x168),'UOgzg':function(_0xfcbcbe,_0x4c8b21){return _0xfcbcbe(_0x4c8b21);},'BsjGg':function(_0x57ef31,_0x20abd4){return _0x57ef31!==_0x20abd4;},'CVbOq':_0x5694ae(0x156),'BiRCN':_0x5694ae(0x186),'XNYUm':function(_0x47f441,_0x33e500){return _0x47f441!==_0x33e500;},'JFikZ':function(_0x16c470,_0x1097f5){return _0x16c470!==_0x1097f5;},'AWfcz':'TDSrJ','lqzbx':_0x5694ae(0x175),'eedHW':function(_0x55aa44,_0x1b6e3e){return _0x55aa44(_0x1b6e3e);},'dLuyq':function(_0x367d72,_0x366e12){return _0x367d72!==_0x366e12;},'maKMw':'tmNMv','HmSdh':_0x5694ae(0x15d),'WSpTq':function(_0x42363e,_0x7e014e){return _0x42363e(_0x7e014e);},'lRcqH':'zACzb','UZdbT':_0x5694ae(0x1a8),'KpxTF':function(_0x130ea0,_0x2feab4){return _0x130ea0(_0x2feab4);},'RkpiQ':function(_0x266b2d,_0x53a47c){return _0x266b2d(_0x53a47c);},'EMMLI':function(_0x14e75a,_0x4ad132){return _0x14e75a(_0x4ad132);},'FQFXM':_0x5694ae(0x160)};return new Promise((_0x125c82,_0x51fa51)=>{const _0x453e9c=_0x5694ae,_0x533ba2={'wnUMY':function(_0x5eebeb,_0x4165cf){const _0x322942=a23_0x9f74;return _0x19549c[_0x322942(0x177)](_0x5eebeb,_0x4165cf);},'lyDVa':function(_0x544130,_0x42c7dd){const _0x4927c7=a23_0x9f74;return _0x19549c[_0x4927c7(0x1b5)](_0x544130,_0x42c7dd);}};if(_0x19549c[_0x453e9c(0x149)](_0x19549c[_0x453e9c(0x124)],_0x19549c[_0x453e9c(0x124)]))_0x267721[_0x453e9c(0x17c)](_0x453e9c(0x12d)+_0x516bea),_0x19549c[_0x453e9c(0x15e)](_0x426b24,_0x15d685);else{const _0x522e68={};_0x522e68[_0x453e9c(0x13b)]=_0x19549c[_0x453e9c(0x14d)];const _0x4d24e9=new awsSDK[(_0x453e9c(0x174))](_0x522e68);_0x4d24e9[_0x453e9c(0x173)]()[_0x453e9c(0x178)]()[_0x453e9c(0x191)]((_0x3d3e05,_0x4e00d3)=>{const _0x50ed96=_0x453e9c,_0x5d1bce={'gOaEW':function(_0x1207d6,_0x25b3c9){const _0x5ca261=a23_0x9f74;return _0x19549c[_0x5ca261(0x15e)](_0x1207d6,_0x25b3c9);},'NPCmN':_0x19549c['pyHfy'],'ErbuE':function(_0x1207c0,_0x173eef){const _0x3c9e42=a23_0x9f74;return _0x19549c[_0x3c9e42(0x15b)](_0x1207c0,_0x173eef);}};if(_0x19549c[_0x50ed96(0x164)](_0x19549c[_0x50ed96(0x148)],_0x19549c['BiRCN']))_0x19549c['XNYUm'](_0x3d3e05,undefined)&&_0x19549c[_0x50ed96(0x164)](_0x3d3e05[_0x50ed96(0x197)],undefined)?_0x19549c[_0x50ed96(0x149)](_0x19549c[_0x50ed96(0x12e)],_0x19549c[_0x50ed96(0x167)])?_0x19549c[_0x50ed96(0x132)](_0x125c82,_0x3d3e05['Regions']):_0x533ba2[_0x50ed96(0x189)](_0x106bf0,{}):_0x19549c[_0x50ed96(0x145)](_0x19549c[_0x50ed96(0x16d)],_0x19549c[_0x50ed96(0x139)])?_0x19549c[_0x50ed96(0x198)](_0x125c82,{}):(_0x3ac44e[_0x50ed96(0x12a)](_0x50ed96(0x131)+_0x14b4af+_0x50ed96(0x15c)),_0x533ba2[_0x50ed96(0x19f)](_0x3d5ec0,!![]));else{const _0x23da1a={'hsIrR':function(_0x532c35,_0x587c88){return _0x5d1bce['ErbuE'](_0x532c35,_0x587c88);}};return new _0x649771((_0xedf566,_0x3bd3ad)=>{const _0x2858c7=_0x50ed96,_0x244a1b={'RjBzc':function(_0x1feb94,_0x5668d5){const _0x11e4b7=a23_0x9f74;return _0x5d1bce[_0x11e4b7(0x151)](_0x1feb94,_0x5668d5);}},_0x26c8a9={};_0x26c8a9['apiVersion']=_0x5d1bce[_0x2858c7(0x17a)],_0x26c8a9[_0x2858c7(0x166)]=_0x4dc15a;const _0x200db3=new _0x4dd5ff[(_0x2858c7(0x174))](_0x26c8a9);_0x200db3[_0x2858c7(0x19e)]()['promise']()[_0x2858c7(0x191)](_0x6970cb=>{const _0x348981=_0x2858c7;_0x23da1a[_0x348981(0x17f)](_0xedf566,_0x6970cb);})['catch'](_0x22bf64=>{const _0x7c2163=_0x2858c7;_0x340f12['error'](_0x7c2163(0x190)+_0x22bf64),_0x244a1b[_0x7c2163(0x135)](_0x3bd3ad,_0x22bf64);});});}})[_0x453e9c(0x128)](_0x21bbf7=>{const _0x5adb37=_0x453e9c,_0x3725e9={'pjgfY':function(_0x274afa,_0x1a258e){const _0x242c53=a23_0x9f74;return _0x19549c[_0x242c53(0x132)](_0x274afa,_0x1a258e);},'IUcvo':_0x19549c['pyHfy']};if(_0x19549c[_0x5adb37(0x164)](_0x19549c[_0x5adb37(0x15f)],_0x19549c['UZdbT']))logger[_0x5adb37(0x17c)](_0x5adb37(0x162)+_0x21bbf7),_0x19549c['KpxTF'](_0x51fa51,_0x21bbf7);else{const _0x3b67a2={'HnMag':function(_0x4f2088,_0x20ab94){return _0x3725e9['pjgfY'](_0x4f2088,_0x20ab94);}},_0xc3b1c5={};_0xc3b1c5[_0x5adb37(0x13b)]=_0x3725e9[_0x5adb37(0x188)],_0xc3b1c5[_0x5adb37(0x166)]=_0x574695;const _0x414b8e=new _0x4731bb['EC2'](_0xc3b1c5);_0x414b8e['describeSecurityGroups']()[_0x5adb37(0x178)]()['then'](_0x5f01e5=>{const _0x3effc5=_0x5adb37;_0x3b67a2[_0x3effc5(0x170)](_0x12cfca,_0x5f01e5);})[_0x5adb37(0x128)](_0x140114=>{const _0x5ee450=_0x5adb37;_0x39d285[_0x5ee450(0x17c)](_0x5ee450(0x190)+_0x140114),_0x3b67a2[_0x5ee450(0x170)](_0xb9bf04,_0x140114);});}});}});},exports[a23_0xd89010(0x18f)]=awsSDK;function a23_0x14a6(){const _0x572328=['region','lqzbx','2016-11-15','uwJbu','jNdwb','305wJaKEO','hwRYQ','maKMw','Aevtf','cngry','HnMag','tpgPU','AunUd','describeRegions','EC2','qVjSd','KwUDR','RkpiQ','promise','zRtXz','NPCmN','dEUvT','error','fQArC','RlpZV','hsIrR','describeSubnets','IKnYD','MDUSD','afCGA','Bucket','dJlIz','LTIVe','GsELT','IUcvo','wnUMY','cptXg','wfANS','3356516dQgwbj','Abzlw','TPeap','awsObj','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','then','3077913XEFlvR','19725156WGTuBx','Fcgxo','ndbEX','IyKIN','Regions','WSpTq','GBfWS','hPxim','isBucketPresent','373098wSaNTc','aws-sdk','describeSecurityGroups','lyDVa','TFExi','VKYcw','ZPHuT','Tsrtu','jTARK','aNfNX','QRmTI','LKuUu','NEVPp','aOAGi','yTRyu','SfQqs','VhvgF','NUymI','3367pFURIW','describeVpcs','NsDrq','OvmnQ','nKlql','RtYWY','aokLC','EMMLI','EIMSJ','dMcha','UdZAW','FQFXM','gkBpQ','pkwTg','UssqP','catch','ksTgr','warn','662004HaXHzu','bJSpL','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','AWfcz','AGZSU','vAQhN','Bucket:\x20','eedHW','WfBeg','UInXB','RjBzc','EolnZ','getAWSRegions','qfBvn','HmSdh','oBTfj','apiVersion','RerVx','uHeIy','UOVsM','GhRno','vTwWr','info','sTQhx','../config/logger','urBfg','dLuyq','DwncI','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','CVbOq','JFikZ','DSRsU','EurPb','lLUYX','pyHfy','ZJFEi','19428afXIVo','nqinN','gOaEW','headBucket','Yvnla','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','5064YYRJAO','SKHcs','TiDOE','lZfOG','ppVqJ','pHfUG','UOgzg','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','iwoLi','fOpjB','lRcqH','qmrIO','YPYyy','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','AwExa','BsjGg','BKpnk'];a23_0x14a6=function(){return _0x572328;};return a23_0x14a6();}
1
+ function a23_0x1017(_0x415a19,_0x1c9193){const _0x550dad=a23_0x550d();return a23_0x1017=function(_0x10179f,_0x58c8b7){_0x10179f=_0x10179f-0x1cf;let _0x13a264=_0x550dad[_0x10179f];return _0x13a264;},a23_0x1017(_0x415a19,_0x1c9193);}const a23_0x1f05b2=a23_0x1017;function a23_0x550d(){const _0x5c1d33=['uElfe','QVVwE','2016-11-15','QcTVw','hjZmg','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','OXchb','warn','rCGOC','pfYBz','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','xflBL','then','ImmmA','fWjxj','describeSecurityGroups','ikftX','elnVO','wchtm','jBLIe','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','aqinO','JIlFe','xAvXx','rHgFA','describeVpcs','hYgmX','dSNCC','afbSS','MNCBl','promise','apiVersion','EC2','kMfXG','HQaaV','info','jRkcb','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','739392SApFdb','kjqfs','VoMqm','LQIXZ','aTdld','WzebQ','PbBdL','rscZA','garRg','QDHbx','KemSO','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','35dWapuh','YzjgH','XzxDR','JEPWr','ouzyw','2391027vuWjWE','lcaDU','ImZlP','QViQC','cwZRt','13135970iQIEbC','isBucketPresent','SYEQq','EZCmo','CaebX','rsElZ','bczAG','upfcO','TSNFh','PWxOH','617603nHdxom','fetchSubnets','aws-sdk','podss','1574538grjPeU','LUeJF','PHzMF','lzVDD','ZuQqF','ZWVHM','SeSmk','BSnpi','region','pjVUK','401900JhjRHm','xAuyH','zDMoU','rslDS','aOmcL','GhVgu','zhhuI','902604dPfPhW','fetchSecurityGroups','64sUaYpO','YCZVo','uslvO','ywDXt','QTamH','awwCM','WcvQY','yZWKp','lJBSw','aYqAL','MhczZ','../config/logger','DJFzR','dcbZy','xWuBi','XrDzf','dHrIx','glmkA','QNyvk','xhhsm','IaGSG','9fGqYwY','error','describeSubnets','YzSQv','Bucket','LCOMM','Regions','CHsGa','uOsPC','fUCTX','adFvx','getAWSRegions','KFFRq','ksART','tAKZQ','catch','describeRegions','UasSl','FMLGG','bZvME','ivuGQ','IgdGv','HoKAe','Wuybs','Bucket:\x20','EswxR','IHtez','jhTiM','tmCET','jYkDk'];a23_0x550d=function(){return _0x5c1d33;};return a23_0x550d();}(function(_0x22298e,_0x461ee5){const _0x49eb6f=a23_0x1017,_0xc4b7f3=_0x22298e();while(!![]){try{const _0x5bd255=-parseInt(_0x49eb6f(0x252))/0x1+parseInt(_0x49eb6f(0x1e5))/0x2+-parseInt(_0x49eb6f(0x1d2))/0x3+parseInt(_0x49eb6f(0x1ef))/0x4*(parseInt(_0x49eb6f(0x25e))/0x5)+-parseInt(_0x49eb6f(0x1f6))/0x6+parseInt(_0x49eb6f(0x1e1))/0x7*(-parseInt(_0x49eb6f(0x1f8))/0x8)+parseInt(_0x49eb6f(0x20d))/0x9*(parseInt(_0x49eb6f(0x1d7))/0xa);if(_0x5bd255===_0x461ee5)break;else _0xc4b7f3['push'](_0xc4b7f3['shift']());}catch(_0x373638){_0xc4b7f3['push'](_0xc4b7f3['shift']());}}}(a23_0x550d,0x64784));const awsSDK=require(a23_0x1f05b2(0x1e3)),{logger}=require(a23_0x1f05b2(0x203));exports['fetchVPCs']=_0x3362ec=>{const _0x32bf15=a23_0x1f05b2,_0x16977f={'adFvx':function(_0x4f119a,_0x2dda2b){return _0x4f119a(_0x2dda2b);},'fUCTX':_0x32bf15(0x22d),'PHzMF':function(_0x30b604,_0x4f0319){return _0x30b604!==_0x4f0319;},'YCZVo':_0x32bf15(0x1eb),'afbSS':_0x32bf15(0x25b),'SAjqd':_0x32bf15(0x1d0)};return new Promise((_0x3bf668,_0x30a9f1)=>{const _0x2379d2=_0x32bf15,_0x3fdbc0={'WcvQY':function(_0xc4f831,_0x4d0319){const _0xe15d32=a23_0x1017;return _0x16977f[_0xe15d32(0x217)](_0xc4f831,_0x4d0319);},'dHrIx':_0x16977f['fUCTX'],'HQaaV':function(_0xae0d45,_0x2efc22){const _0x54bb9f=a23_0x1017;return _0x16977f[_0x54bb9f(0x1e7)](_0xae0d45,_0x2efc22);},'wMmvx':_0x16977f[_0x2379d2(0x1f9)],'DkpUp':_0x16977f[_0x2379d2(0x248)]};if(_0x16977f['PHzMF'](_0x16977f['SAjqd'],_0x16977f['SAjqd'])){const _0x24d23c={'xhhsm':function(_0xae54a4,_0x1dda25){return _0x3fdbc0['WcvQY'](_0xae54a4,_0x1dda25);}},_0x42a178={};_0x42a178['apiVersion']=_0x3fdbc0['dHrIx'],_0x42a178[_0x2379d2(0x1ed)]=_0x5b2002;const _0x1d66a6=new _0x5c3692[(_0x2379d2(0x24c))](_0x42a178);_0x1d66a6[_0x2379d2(0x23b)]()[_0x2379d2(0x24a)]()['then'](_0x3a5e7c=>{const _0x5a712a=_0x2379d2;_0x24d23c[_0x5a712a(0x20b)](_0x532141,_0x3a5e7c);})[_0x2379d2(0x21c)](_0x4d890f=>{const _0x519766=_0x2379d2;_0x38ab8f[_0x519766(0x20e)](_0x519766(0x251)+_0x4d890f),_0x3fdbc0[_0x519766(0x1fe)](_0x43b0db,_0x4d890f);});}else{const _0xfb907={};_0xfb907[_0x2379d2(0x24b)]=_0x16977f[_0x2379d2(0x216)],_0xfb907[_0x2379d2(0x1ed)]=_0x3362ec;const _0x5226c7=new awsSDK[(_0x2379d2(0x24c))](_0xfb907);_0x5226c7[_0x2379d2(0x245)]()['promise']()[_0x2379d2(0x238)](_0x56b0af=>{const _0x153385=_0x2379d2,_0x5864d6={'ImZlP':function(_0x4d6698,_0xda4d1f){const _0x21adc3=a23_0x1017;return _0x3fdbc0[_0x21adc3(0x1fe)](_0x4d6698,_0xda4d1f);},'QcTVw':_0x3fdbc0[_0x153385(0x208)]};if(_0x3fdbc0[_0x153385(0x24e)](_0x3fdbc0['wMmvx'],_0x3fdbc0['wMmvx'])){const _0x3c0477={'YDvsx':function(_0x2e145f,_0x2a5d29){const _0x113687=_0x153385;return _0x5864d6[_0x113687(0x1d4)](_0x2e145f,_0x2a5d29);}},_0x474f52={};_0x474f52[_0x153385(0x24b)]=_0x5864d6[_0x153385(0x22e)],_0x474f52['region']=_0xb4e625;const _0x2b1e29=new _0x58734e['EC2'](_0x474f52);_0x2b1e29[_0x153385(0x20f)]()[_0x153385(0x24a)]()[_0x153385(0x238)](_0x534798=>{_0x3c0477['YDvsx'](_0x3cb07e,_0x534798);})[_0x153385(0x21c)](_0x5399ee=>{const _0x58da54=_0x153385;_0x184491['error'](_0x58da54(0x230)+_0x5399ee),_0x3c0477['YDvsx'](_0x11dbf8,_0x5399ee);});}else _0x3fdbc0[_0x153385(0x1fe)](_0x3bf668,_0x56b0af);})['catch'](_0x494833=>{const _0x347597=_0x2379d2;_0x3fdbc0[_0x347597(0x24e)](_0x3fdbc0['DkpUp'],_0x3fdbc0['DkpUp'])?(_0x3d9b83[_0x347597(0x20e)](_0x347597(0x230)+_0x4e75a8),_0x3fdbc0[_0x347597(0x1fe)](_0x2ca5a2,_0x11f485)):(logger['error'](_0x347597(0x240)+_0x494833),_0x3fdbc0['WcvQY'](_0x30a9f1,_0x494833));});}});},exports[a23_0x1f05b2(0x1d8)]=_0x2d90d9=>{const _0x42527c=a23_0x1f05b2,_0x72bfc6={'XrDzf':function(_0x5628cd,_0x1584d6){return _0x5628cd!==_0x1584d6;},'KemSO':function(_0x8e19f6,_0x44138b){return _0x8e19f6(_0x44138b);},'CwwLl':function(_0x56bf47,_0x4146bd){return _0x56bf47===_0x4146bd;},'GhVgu':_0x42527c(0x1f3),'rHgFA':_0x42527c(0x1dc),'ZuQqF':function(_0x12910e,_0x36af22){return _0x12910e===_0x36af22;},'PWxOH':'GqLUD','JIlFe':_0x42527c(0x201),'OXchb':_0x42527c(0x22d),'zDMoU':_0x42527c(0x1df),'SYEQq':_0x42527c(0x1da)},_0x32ef9e=new awsSDK['S3']();return new Promise((_0x46d4eb,_0x2fe54e)=>{const _0xff1940=_0x42527c,_0x4192bb={'aqinO':function(_0x5060b8,_0x2ec675){const _0x356487=a23_0x1017;return _0x72bfc6[_0x356487(0x25c)](_0x5060b8,_0x2ec675);},'QViQC':_0x72bfc6[_0xff1940(0x232)]};if(_0x72bfc6['XrDzf'](_0x72bfc6[_0xff1940(0x1f1)],_0x72bfc6[_0xff1940(0x1d9)])){const _0x1d9cfb={};_0x1d9cfb[_0xff1940(0x211)]=_0x2d90d9,_0x32ef9e['headBucket'](_0x1d9cfb)['promise']()[_0xff1940(0x238)](_0x3f0e42=>{const _0x14451a=_0xff1940,_0x383a7a={'pjVUK':function(_0x3e73bf,_0x10cb7c){const _0x3d5429=a23_0x1017;return _0x72bfc6[_0x3d5429(0x207)](_0x3e73bf,_0x10cb7c);},'lJBSw':function(_0x470508,_0x299bcd){const _0x432f53=a23_0x1017;return _0x72bfc6[_0x432f53(0x25c)](_0x470508,_0x299bcd);}};_0x72bfc6['CwwLl'](_0x72bfc6[_0x14451a(0x1f4)],_0x72bfc6[_0x14451a(0x244)])?_0x383a7a[_0x14451a(0x1ee)](_0x3d4342,_0x46bd68)&&_0x383a7a[_0x14451a(0x1ee)](_0x56260b[_0x14451a(0x213)],_0x2ee7b5)?_0x383a7a[_0x14451a(0x200)](_0x11cf58,_0x48e826['Regions']):_0x383a7a[_0x14451a(0x200)](_0x2f20d8,{}):(logger[_0x14451a(0x233)]('Bucket:\x20'+_0x2d90d9+_0x14451a(0x236)),_0x72bfc6[_0x14451a(0x25c)](_0x46d4eb,!![]));})[_0xff1940(0x21c)](()=>{const _0x54015b=_0xff1940,_0x130a06={'MhczZ':function(_0x1c156f,_0x13fc5a){return _0x72bfc6['KemSO'](_0x1c156f,_0x13fc5a);}};if(_0x72bfc6[_0x54015b(0x1e9)](_0x72bfc6[_0x54015b(0x1e0)],_0x72bfc6[_0x54015b(0x242)])){const _0x134e24={'TZWnS':function(_0x2cebf5,_0x3895bf){return _0x4192bb['aqinO'](_0x2cebf5,_0x3895bf);}},_0x1de16a={};_0x1de16a[_0x54015b(0x24b)]=_0x4192bb[_0x54015b(0x1d5)],_0x1de16a['region']=_0x12567e;const _0x3c71be=new _0x4a85aa[(_0x54015b(0x24c))](_0x1de16a);_0x3c71be[_0x54015b(0x245)]()[_0x54015b(0x24a)]()[_0x54015b(0x238)](_0x425be7=>{const _0x168b0e=_0x54015b;_0x130a06[_0x168b0e(0x202)](_0x521ed3,_0x425be7);})[_0x54015b(0x21c)](_0x41efca=>{const _0x21e76e=_0x54015b;_0x4b41d5['error'](_0x21e76e(0x240)+_0x41efca),_0x134e24['TZWnS'](_0x1a46f7,_0x41efca);});}else logger['info'](_0x54015b(0x225)+_0x2d90d9+_0x54015b(0x231)),_0x72bfc6[_0x54015b(0x25c)](_0x46d4eb,![]);});}else _0x4192bb[_0xff1940(0x241)](_0x1ca918,_0x3b6e37['Regions']);});},exports[a23_0x1f05b2(0x1e2)]=_0x4865e4=>{const _0x36bdf4=a23_0x1f05b2,_0xa9517d={'glmkA':function(_0x2e53e3,_0x12de9b){return _0x2e53e3!==_0x12de9b;},'uOsPC':_0x36bdf4(0x23f),'jRkcb':function(_0x1a8c21,_0x32404b){return _0x1a8c21(_0x32404b);},'uslvO':function(_0x2708a0,_0x3fd972){return _0x2708a0(_0x3fd972);},'jhTiM':function(_0x4f7fc4,_0x27c3f4){return _0x4f7fc4(_0x27c3f4);},'cQpFm':_0x36bdf4(0x221),'jYkDk':_0x36bdf4(0x235),'podss':'WXttM','ouzyw':_0x36bdf4(0x22d)};return new Promise((_0x25f357,_0x59587d)=>{const _0x17cbc0=_0x36bdf4,_0x353867={'hYgmX':function(_0x22ee8f,_0x1dc437){return _0xa9517d['uslvO'](_0x22ee8f,_0x1dc437);},'rscZA':function(_0x585db8,_0x34cd12){const _0x496a59=a23_0x1017;return _0xa9517d[_0x496a59(0x228)](_0x585db8,_0x34cd12);},'XzxDR':function(_0x5bcc2a,_0x4af0fa){const _0x55676b=a23_0x1017;return _0xa9517d[_0x55676b(0x209)](_0x5bcc2a,_0x4af0fa);},'hjZmg':_0xa9517d['cQpFm'],'xWuBi':function(_0x445158,_0x473380){const _0x2d8612=a23_0x1017;return _0xa9517d[_0x2d8612(0x228)](_0x445158,_0x473380);}};if(_0xa9517d[_0x17cbc0(0x209)](_0xa9517d[_0x17cbc0(0x22a)],_0xa9517d[_0x17cbc0(0x1e4)])){const _0x99a074={};_0x99a074[_0x17cbc0(0x24b)]=_0xa9517d[_0x17cbc0(0x1d1)],_0x99a074[_0x17cbc0(0x1ed)]=_0x4865e4;const _0x4ef70c=new awsSDK[(_0x17cbc0(0x24c))](_0x99a074);_0x4ef70c[_0x17cbc0(0x20f)]()[_0x17cbc0(0x24a)]()[_0x17cbc0(0x238)](_0x4e5b24=>{const _0x81ba66=_0x17cbc0;_0xa9517d['glmkA'](_0xa9517d[_0x81ba66(0x215)],_0xa9517d['uOsPC'])?(_0xc6fb6[_0x81ba66(0x20e)]('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x98c34a),_0x353867[_0x81ba66(0x246)](_0x4ef969,_0x547d7a)):_0xa9517d[_0x81ba66(0x250)](_0x25f357,_0x4e5b24);})[_0x17cbc0(0x21c)](_0x440284=>{const _0x2c419a=_0x17cbc0,_0x1e3b0b={'upfcO':function(_0xa8fa07,_0x1baaf2){const _0x46a450=a23_0x1017;return _0x353867[_0x46a450(0x259)](_0xa8fa07,_0x1baaf2);}};_0x353867[_0x2c419a(0x1cf)](_0x353867[_0x2c419a(0x22f)],_0x353867[_0x2c419a(0x22f)])?_0x1e3b0b[_0x2c419a(0x1de)](_0x3ddc14,_0x19ff4f):(logger[_0x2c419a(0x20e)](_0x2c419a(0x230)+_0x440284),_0x353867[_0x2c419a(0x206)](_0x59587d,_0x440284));});}else _0x199482['error'](_0x17cbc0(0x251)+_0x57513a),_0xa9517d[_0x17cbc0(0x1fa)](_0x16bc78,_0x5c136d);});},exports[a23_0x1f05b2(0x1f7)]=_0x5bd2a3=>{const _0x245695=a23_0x1f05b2,_0x509136={'IHtez':_0x245695(0x22d),'wchtm':function(_0x714bb3,_0x273536){return _0x714bb3(_0x273536);},'FMLGG':function(_0x2a6741,_0x2352c9){return _0x2a6741!==_0x2352c9;},'PvbRP':_0x245695(0x21a),'clBJM':_0x245695(0x1ea),'dcbZy':function(_0x12e293,_0x351f6){return _0x12e293===_0x351f6;},'VoMqm':_0x245695(0x247),'xflBL':function(_0x2100ba,_0x3c07e3){return _0x2100ba(_0x3c07e3);},'yhylB':function(_0x536565,_0x4ca026){return _0x536565===_0x4ca026;},'yZWKp':'PumTE','JfrYT':'YgsYm'};return new Promise((_0x305555,_0x316f95)=>{const _0x4e3426=_0x245695,_0x37fce9={'zhhuI':function(_0x17e89a,_0x3c2c8){const _0x1cf014=a23_0x1017;return _0x509136[_0x1cf014(0x23e)](_0x17e89a,_0x3c2c8);},'lcaDU':_0x509136[_0x4e3426(0x227)],'QNyvk':function(_0x54a183,_0x14a524){const _0x1bd241=_0x4e3426;return _0x509136[_0x1bd241(0x205)](_0x54a183,_0x14a524);},'Wuybs':_0x509136[_0x4e3426(0x254)],'ImmmA':function(_0x55cc52,_0x151ecc){const _0x1c5820=_0x4e3426;return _0x509136[_0x1c5820(0x237)](_0x55cc52,_0x151ecc);}};if(_0x509136['yhylB'](_0x509136[_0x4e3426(0x1ff)],_0x509136['JfrYT']))_0x42171e[_0x4e3426(0x20e)](_0x4e3426(0x240)+_0x5e878b),_0x37fce9[_0x4e3426(0x1f5)](_0x12618d,_0x644a4d);else{const _0x2c95b0={};_0x2c95b0['apiVersion']=_0x509136['IHtez'],_0x2c95b0[_0x4e3426(0x1ed)]=_0x5bd2a3;const _0x393d07=new awsSDK['EC2'](_0x2c95b0);_0x393d07[_0x4e3426(0x23b)]()['promise']()['then'](_0x1dba69=>{const _0x20da6f=_0x4e3426,_0x5d3127={'garRg':function(_0x533851,_0x13d3ce){const _0x5f01a3=a23_0x1017;return _0x37fce9[_0x5f01a3(0x1f5)](_0x533851,_0x13d3ce);},'SxHxd':_0x37fce9[_0x20da6f(0x1d3)]};if(_0x37fce9[_0x20da6f(0x20a)](_0x37fce9[_0x20da6f(0x224)],_0x37fce9[_0x20da6f(0x224)]))_0x37fce9[_0x20da6f(0x239)](_0x305555,_0x1dba69);else{const _0x54568a={'QVVwE':function(_0x3feca8,_0x2cab87){const _0x20410a=_0x20da6f;return _0x5d3127[_0x20410a(0x25a)](_0x3feca8,_0x2cab87);},'kMfXG':_0x5d3127['SxHxd']};return new _0x181189((_0x3e848e,_0x703b7e)=>{const _0x24fddd=_0x20da6f,_0x338b5a={'rslDS':function(_0x14987c,_0x27a42a){const _0x59f720=a23_0x1017;return _0x54568a[_0x59f720(0x22c)](_0x14987c,_0x27a42a);}},_0x4e59ca={};_0x4e59ca[_0x24fddd(0x24b)]=_0x54568a[_0x24fddd(0x24d)],_0x4e59ca['region']=_0x442684;const _0x4cc8b8=new _0x5db16c['EC2'](_0x4e59ca);_0x4cc8b8['describeSubnets']()[_0x24fddd(0x24a)]()[_0x24fddd(0x238)](_0x2e8021=>{const _0x4e20f7=_0x24fddd;_0x338b5a[_0x4e20f7(0x1f2)](_0x3e848e,_0x2e8021);})['catch'](_0x99203b=>{const _0x63af83=_0x24fddd;_0x4967e0[_0x63af83(0x20e)](_0x63af83(0x230)+_0x99203b),_0x54568a[_0x63af83(0x22c)](_0x703b7e,_0x99203b);});});}})[_0x4e3426(0x21c)](_0x1a9d90=>{const _0x4cbb12=_0x4e3426,_0x45d2af={'CaebX':_0x509136[_0x4cbb12(0x227)],'KFFRq':function(_0x431dd2,_0x24e175){return _0x509136['wchtm'](_0x431dd2,_0x24e175);}};if(_0x509136[_0x4cbb12(0x21f)](_0x509136['PvbRP'],_0x509136['clBJM']))logger[_0x4cbb12(0x20e)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x1a9d90),_0x509136[_0x4cbb12(0x23e)](_0x316f95,_0x1a9d90);else{const _0x3614d4={'UasSl':function(_0x12d6a6,_0x5c3386){const _0xee1b4c=_0x4cbb12;return _0x45d2af[_0xee1b4c(0x219)](_0x12d6a6,_0x5c3386);}};return new _0x4dfad6((_0x2a79b0,_0x1e82ab)=>{const _0x3f2c28=_0x4cbb12,_0x2d9ec6={};_0x2d9ec6['apiVersion']=_0x45d2af[_0x3f2c28(0x1db)],_0x2d9ec6[_0x3f2c28(0x1ed)]=_0x25edeb;const _0x21e7b7=new _0x527e42['EC2'](_0x2d9ec6);_0x21e7b7[_0x3f2c28(0x245)]()['promise']()[_0x3f2c28(0x238)](_0x333c2c=>{const _0x3af73=_0x3f2c28;_0x3614d4[_0x3af73(0x21e)](_0x2a79b0,_0x333c2c);})[_0x3f2c28(0x21c)](_0x29887a=>{const _0x2cc1d7=_0x3f2c28;_0x4441b9['error'](_0x2cc1d7(0x240)+_0x29887a),_0x3614d4['UasSl'](_0x1e82ab,_0x29887a);});});}});}});},exports[a23_0x1f05b2(0x218)]=()=>{const _0xdc43a7=a23_0x1f05b2,_0x5e9ece={'tmCET':function(_0x32b52b,_0x3ab03b){return _0x32b52b(_0x3ab03b);},'DJFzR':function(_0x4f33cc,_0x4a7ec5){return _0x4f33cc!==_0x4a7ec5;},'bZvME':_0xdc43a7(0x256),'awwCM':function(_0x513f27,_0x1dbb43){return _0x513f27(_0x1dbb43);},'LCOMM':_0xdc43a7(0x22d),'YzSQv':function(_0x4283aa,_0x28aa37){return _0x4283aa===_0x28aa37;},'rCsCt':_0xdc43a7(0x255),'Dhxmz':function(_0x9bf856,_0xaf0e62){return _0x9bf856!==_0xaf0e62;},'xAuyH':_0xdc43a7(0x258),'cGRzU':_0xdc43a7(0x21b),'EswxR':_0xdc43a7(0x23d),'fWjxj':_0xdc43a7(0x222),'bAsuf':function(_0x57d2a9,_0xb658cb){return _0x57d2a9(_0xb658cb);},'TIZAZ':function(_0x45ccd4,_0x579900){return _0x45ccd4===_0x579900;},'QyPHo':_0xdc43a7(0x22b),'ccfCV':_0xdc43a7(0x25f)};return new Promise((_0x4474b8,_0x57045c)=>{const _0x2899da=_0xdc43a7,_0x2fef34={'LUeJF':function(_0x293f04,_0x4e6c75){const _0x216c31=a23_0x1017;return _0x5e9ece[_0x216c31(0x229)](_0x293f04,_0x4e6c75);},'qiMSS':function(_0x286c6b,_0x57f720){const _0x4c8f96=a23_0x1017;return _0x5e9ece[_0x4c8f96(0x1fd)](_0x286c6b,_0x57f720);},'ywDXt':_0x5e9ece[_0x2899da(0x212)],'kjqfs':function(_0x197811,_0x325c16){const _0x32b371=_0x2899da;return _0x5e9ece[_0x32b371(0x210)](_0x197811,_0x325c16);},'HoKAe':_0x5e9ece['rCsCt'],'WzebQ':function(_0x19cf7f,_0x5dbea3){return _0x5e9ece['Dhxmz'](_0x19cf7f,_0x5dbea3);},'xAvXx':function(_0x56e3ac,_0x368083){const _0x46f009=_0x2899da;return _0x5e9ece[_0x46f009(0x204)](_0x56e3ac,_0x368083);},'QTamH':_0x5e9ece[_0x2899da(0x1f0)],'yuhql':_0x5e9ece['cGRzU'],'ikftX':function(_0x4569b8,_0x117c64){const _0x54d6ca=_0x2899da;return _0x5e9ece[_0x54d6ca(0x229)](_0x4569b8,_0x117c64);},'BSnpi':function(_0xaa4a10,_0x5eb08f){const _0x306253=_0x2899da;return _0x5e9ece[_0x306253(0x210)](_0xaa4a10,_0x5eb08f);},'rCGOC':_0x5e9ece[_0x2899da(0x226)],'bczAG':_0x5e9ece[_0x2899da(0x23a)],'CHsGa':function(_0x34b30f,_0x14ba8f){return _0x5e9ece['bAsuf'](_0x34b30f,_0x14ba8f);}};if(_0x5e9ece['TIZAZ'](_0x5e9ece['QyPHo'],_0x5e9ece['ccfCV'])){const _0x3659da=new _0x3ac704['S3']();return new _0xb59d7a((_0x38cc8f,_0xb4a46a)=>{const _0x158915=_0x2899da,_0x3b1cf8={'lzVDD':function(_0x25dd56,_0x419b64){const _0x6467f=a23_0x1017;return _0x2fef34[_0x6467f(0x1e6)](_0x25dd56,_0x419b64);}},_0x2a9a85={};_0x2a9a85[_0x158915(0x211)]=_0x11e525,_0x3659da['headBucket'](_0x2a9a85)['promise']()['then'](_0xbd90b6=>{const _0x568e66=_0x158915;_0x4d3d26['warn']('Bucket:\x20'+_0x49f305+_0x568e66(0x236)),_0x3b1cf8[_0x568e66(0x1e8)](_0x38cc8f,!![]);})[_0x158915(0x21c)](()=>{const _0x2c2c9e=_0x158915;_0x50bbed[_0x2c2c9e(0x24f)](_0x2c2c9e(0x225)+_0x4a218d+_0x2c2c9e(0x231)),_0x3b1cf8[_0x2c2c9e(0x1e8)](_0x38cc8f,![]);});});}else{const _0x1cbdfe={};_0x1cbdfe[_0x2899da(0x24b)]=_0x5e9ece[_0x2899da(0x212)];const _0x5e093b=new awsSDK[(_0x2899da(0x24c))](_0x1cbdfe);_0x5e093b[_0x2899da(0x21d)]()[_0x2899da(0x24a)]()['then']((_0x3705ee,_0x139579)=>{const _0x46262b=_0x2899da,_0x1e8dea={'cwZRt':function(_0x320e00,_0x13db99){const _0x4484a8=a23_0x1017;return _0x2fef34[_0x4484a8(0x1e6)](_0x320e00,_0x13db99);},'VWlzj':_0x2fef34[_0x46262b(0x1fb)]};if(_0x2fef34[_0x46262b(0x253)](_0x2fef34[_0x46262b(0x223)],_0x2fef34[_0x46262b(0x223)]))_0x2fef34[_0x46262b(0x257)](_0x3705ee,undefined)&&_0x2fef34[_0x46262b(0x243)](_0x3705ee['Regions'],undefined)?_0x2fef34[_0x46262b(0x253)](_0x2fef34[_0x46262b(0x1fc)],_0x2fef34['yuhql'])?(_0x19a422['info'](_0x46262b(0x225)+_0x1e763f+_0x46262b(0x231)),_0x1e8dea['cwZRt'](_0x533c0b,![])):_0x2fef34[_0x46262b(0x23c)](_0x4474b8,_0x3705ee[_0x46262b(0x213)]):_0x2fef34[_0x46262b(0x1ec)](_0x2fef34[_0x46262b(0x234)],_0x2fef34[_0x46262b(0x1dd)])?_0x2fef34['qiMSS'](_0x397334,_0x181ebf):_0x2fef34[_0x46262b(0x214)](_0x4474b8,{});else{const _0x15943b={'IaGSG':function(_0x2d57d2,_0x3ba74d){const _0x355101=_0x46262b;return _0x1e8dea[_0x355101(0x1d6)](_0x2d57d2,_0x3ba74d);}};return new _0x70b37((_0x906e1a,_0x2b8558)=>{const _0x2cf14d=_0x46262b,_0x16d885={'xTsMh':function(_0x3521df,_0x53e5f9){const _0x4215ad=a23_0x1017;return _0x1e8dea[_0x4215ad(0x1d6)](_0x3521df,_0x53e5f9);}},_0xf10143={};_0xf10143[_0x2cf14d(0x24b)]=_0x1e8dea['VWlzj'],_0xf10143[_0x2cf14d(0x1ed)]=_0x45cc7e;const _0x35e446=new _0xcf3de5[(_0x2cf14d(0x24c))](_0xf10143);_0x35e446[_0x2cf14d(0x23b)]()['promise']()[_0x2cf14d(0x238)](_0xb42c20=>{_0x16d885['xTsMh'](_0x906e1a,_0xb42c20);})[_0x2cf14d(0x21c)](_0x2ba62b=>{const _0x57ca50=_0x2cf14d;_0x4ecdf[_0x57ca50(0x20e)](_0x57ca50(0x251)+_0x2ba62b),_0x15943b[_0x57ca50(0x20c)](_0x2b8558,_0x2ba62b);});});}})[_0x2899da(0x21c)](_0x5c6ba8=>{const _0x21e777=_0x2899da,_0x249c1e={'MNCBl':function(_0x5be36e,_0x4e4535){const _0x269547=a23_0x1017;return _0x5e9ece[_0x269547(0x229)](_0x5be36e,_0x4e4535);}};_0x5e9ece[_0x21e777(0x204)](_0x5e9ece[_0x21e777(0x220)],_0x5e9ece[_0x21e777(0x220)])?_0x249c1e[_0x21e777(0x249)](_0x5be2d7,_0x19da87):(logger['error'](_0x21e777(0x25d)+_0x5c6ba8),_0x5e9ece['tmCET'](_0x57045c,_0x5c6ba8));});}});},exports['awsObj']=awsSDK;
@@ -1 +1 @@
1
- const a24_0x2f82de=a24_0x34ad;(function(_0x4fc3cd,_0x15eb9a){const _0x54e849=a24_0x34ad,_0xf61dab=_0x4fc3cd();while(!![]){try{const _0x46cd7d=parseInt(_0x54e849(0x182))/0x1*(-parseInt(_0x54e849(0x17b))/0x2)+parseInt(_0x54e849(0x18e))/0x3+parseInt(_0x54e849(0x16b))/0x4+parseInt(_0x54e849(0x17f))/0x5*(parseInt(_0x54e849(0x198))/0x6)+parseInt(_0x54e849(0x195))/0x7*(parseInt(_0x54e849(0x19a))/0x8)+-parseInt(_0x54e849(0x16d))/0x9+-parseInt(_0x54e849(0x186))/0xa;if(_0x46cd7d===_0x15eb9a)break;else _0xf61dab['push'](_0xf61dab['shift']());}catch(_0x1b5df4){_0xf61dab['push'](_0xf61dab['shift']());}}}(a24_0x1270,0x38db6));function a24_0x1270(){const _0x164426=['../config/constants','1073064NfkJTg','Key','promise','Properties','push','createStack','Value','20510iiFoFU','js-yaml-cloudformation-schema','OnFailure','1110qlxRqg','ZiNbN','72iIxLoV','SDqXu','StackName','CloudFormation','bluebird','ktWKm','waitFor','utf-8','stringify','442156OzWvnB','browserstack:creationDate','163755xDHdqb','DELETE','Resources','autoscaler-role-creation.yaml','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','TemplateBody','UYkpO','tZIMR','wmZkW','GVjPv','schema','valueOf','CAPABILITY_NAMED_IAM','StackId','2GmoVNF','yLDbN','./AWSUtils','MwfpH','7785GStnay','iayCf','createAutoscalerStack','334549YeQVIL','swmtA','ClusterName','toString','1970120feHHuL','join','js-yaml','browserstack:cluster','Tags','2010-05-15','../config/logger'];a24_0x1270=function(){return _0x164426;};return a24_0x1270();}function a24_0x34ad(_0x1d188a,_0x11a54c){const _0x127048=a24_0x1270();return a24_0x34ad=function(_0x34ad3f,_0x1ce70d){_0x34ad3f=_0x34ad3f-0x16b;let _0x515cd8=_0x127048[_0x34ad3f];return _0x515cd8;},a24_0x34ad(_0x1d188a,_0x11a54c);}const fs=require('fs'),path=require('path'),yaml=require(a24_0x2f82de(0x188)),{CLOUDFORMATION_SCHEMA}=require(a24_0x2f82de(0x196)),Promise=require(a24_0x2f82de(0x19e)),AWS=require(a24_0x2f82de(0x17d))['awsObj'],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x2f82de(0x18d)),{logger}=require(a24_0x2f82de(0x18c));Promise['promisifyAll'](fs);const addAutoscalerTags=async(_0xc20352,_0x2ee32f,_0x520bb9)=>{const _0x5a1268=a24_0x2f82de;for(const _0x3559cf in _0xc20352[_0x5a1268(0x16f)]){_0xc20352['Resources'][_0x3559cf][_0x5a1268(0x191)]&&_0xc20352['Resources'][_0x3559cf][_0x5a1268(0x191)][_0x5a1268(0x18a)]&&_0xc20352[_0x5a1268(0x16f)][_0x3559cf]['Properties'][_0x5a1268(0x18a)][_0x5a1268(0x192)](..._0x520bb9);}};exports[a24_0x2f82de(0x181)]=async _0x5f3035=>{const _0x11fffa=a24_0x2f82de,_0xbead7e={'swmtA':_0x11fffa(0x189),'wmZkW':_0x11fffa(0x16c),'iayCf':_0x11fffa(0x18b),'ktWKm':'templates','tZIMR':_0x11fffa(0x170),'MwfpH':_0x11fffa(0x1a1),'SDqXu':function(_0x1aa799,_0x193cd2,_0x1cae3d,_0x5ee053){return _0x1aa799(_0x193cd2,_0x1cae3d,_0x5ee053);},'GVjPv':_0x11fffa(0x16e),'ZiNbN':_0x11fffa(0x184),'swzmY':_0x11fffa(0x179),'yLDbN':_0x11fffa(0x171),'UYkpO':'stackCreateComplete'},_0x157a34=COMMON_HST_TAGS,_0x46dacd={};_0x46dacd[_0x11fffa(0x18f)]=_0xbead7e[_0x11fffa(0x183)],_0x46dacd[_0x11fffa(0x194)]=_0x5f3035,_0x157a34[_0x11fffa(0x192)](_0x46dacd),_0x157a34[_0x11fffa(0x192)]({'Key':_0xbead7e[_0x11fffa(0x175)],'Value':new Date()[_0x11fffa(0x178)]()[_0x11fffa(0x185)]()});const _0x3358f4={};_0x3358f4['apiVersion']=_0xbead7e[_0x11fffa(0x180)];const _0x11e560=new AWS[(_0x11fffa(0x19d))](_0x3358f4),_0x54ca5e=await fs['readFileAsync'](path[_0x11fffa(0x187)](__dirname,'..',_0xbead7e[_0x11fffa(0x19f)],_0xbead7e[_0x11fffa(0x174)]),_0xbead7e[_0x11fffa(0x17e)]),_0x27b86c={};_0x27b86c[_0x11fffa(0x177)]=CLOUDFORMATION_SCHEMA;const _0x1be185=yaml['load'](_0x54ca5e,_0x27b86c);_0xbead7e[_0x11fffa(0x19b)](addAutoscalerTags,_0x1be185,_0x5f3035,_0x157a34);const _0x3ebb8f=JSON[_0x11fffa(0x1a2)](_0x1be185),_0x5cf8f4={};_0x5cf8f4[_0x11fffa(0x19c)]=CLUSTER_AUTOSCALER_STACK_NAME+'-'+_0x5f3035,_0x5cf8f4[_0x11fffa(0x197)]=_0xbead7e[_0x11fffa(0x176)],_0x5cf8f4[_0x11fffa(0x172)]=_0x3ebb8f,_0x5cf8f4['Parameters']=[{'ParameterKey':_0xbead7e[_0x11fffa(0x199)],'ParameterValue':_0x5f3035}],_0x5cf8f4['Capabilities']=[_0xbead7e['swzmY']],_0x5cf8f4[_0x11fffa(0x18a)]=_0x157a34;const _0x647ca6=_0x5cf8f4,_0x230765=await _0x11e560[_0x11fffa(0x193)](_0x647ca6)[_0x11fffa(0x190)]();logger['debug'](_0xbead7e[_0x11fffa(0x17c)]);const _0x2117a3={};return _0x2117a3[_0x11fffa(0x19c)]=_0x230765[_0x11fffa(0x17a)],_0x11e560[_0x11fffa(0x1a0)](_0xbead7e[_0x11fffa(0x173)],_0x2117a3)['promise']();};
1
+ const a24_0x3ba6d0=a24_0x4817;(function(_0x55cfcb,_0x32af4b){const _0x28c8f1=a24_0x4817,_0x5c483f=_0x55cfcb();while(!![]){try{const _0x4bd2b2=parseInt(_0x28c8f1(0x1d6))/0x1*(parseInt(_0x28c8f1(0x1ed))/0x2)+parseInt(_0x28c8f1(0x1df))/0x3+-parseInt(_0x28c8f1(0x205))/0x4+parseInt(_0x28c8f1(0x1db))/0x5+-parseInt(_0x28c8f1(0x1ec))/0x6+parseInt(_0x28c8f1(0x1e6))/0x7*(-parseInt(_0x28c8f1(0x1eb))/0x8)+-parseInt(_0x28c8f1(0x1f5))/0x9;if(_0x4bd2b2===_0x32af4b)break;else _0x5c483f['push'](_0x5c483f['shift']());}catch(_0x256470){_0x5c483f['push'](_0x5c483f['shift']());}}}(a24_0x5e0b,0x6f567));const fs=require('fs'),path=require(a24_0x3ba6d0(0x1f3)),yaml=require(a24_0x3ba6d0(0x1fd)),{CLOUDFORMATION_SCHEMA}=require(a24_0x3ba6d0(0x1f0)),Promise=require(a24_0x3ba6d0(0x1d1)),AWS=require(a24_0x3ba6d0(0x1e0))[a24_0x3ba6d0(0x203)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x3ba6d0(0x1de)),{logger}=require(a24_0x3ba6d0(0x1f6));function a24_0x4817(_0x2efc09,_0x47c1e7){const _0x5e0bc1=a24_0x5e0b();return a24_0x4817=function(_0x481718,_0x131571){_0x481718=_0x481718-0x1d0;let _0x183417=_0x5e0bc1[_0x481718];return _0x183417;},a24_0x4817(_0x2efc09,_0x47c1e7);}Promise[a24_0x3ba6d0(0x1e2)](fs);function a24_0x5e0b(){const _0x2ebab0=['createStack','vOjNK','promise','930312dlkPrj','3192996PGBglp','1773718iUYrii','browserstack:cluster','stackCreateComplete','js-yaml-cloudformation-schema','CAPABILITY_NAMED_IAM','yDNjx','path','Capabilities','2775681gfuSVG','../config/logger','2010-05-15','Key','FTedN','sestI','iqzll','join','js-yaml','StackId','TemplateBody','apiVersion','CloudFormation','QQCzZ','awsObj','push','1820904QkvVkp','Properties','OnFailure','utf-8','DELETE','bluebird','StackName','JzAkx','Value','debug','1avlglf','valueOf','CUxaf','createAutoscalerStack','schema','2458260nRTkCD','Resources','DoqqV','../config/constants','1468854cpxDxT','./AWSUtils','toString','promisifyAll','Tags','templates','readFileAsync','7ecEzUQ','fRleQ'];a24_0x5e0b=function(){return _0x2ebab0;};return a24_0x5e0b();}const addAutoscalerTags=async(_0xf12db4,_0x51fc01,_0x134fe6)=>{const _0x13dc73=a24_0x3ba6d0;for(const _0x144323 in _0xf12db4[_0x13dc73(0x1dc)]){_0xf12db4[_0x13dc73(0x1dc)][_0x144323]['Properties']&&_0xf12db4[_0x13dc73(0x1dc)][_0x144323]['Properties'][_0x13dc73(0x1e3)]&&_0xf12db4[_0x13dc73(0x1dc)][_0x144323][_0x13dc73(0x206)][_0x13dc73(0x1e3)][_0x13dc73(0x204)](..._0x134fe6);}};exports[a24_0x3ba6d0(0x1d9)]=async _0x56affb=>{const _0xcc5e6b=a24_0x3ba6d0,_0x35e000={'LVMVN':_0xcc5e6b(0x1ee),'vOjNK':'browserstack:creationDate','CUxaf':_0xcc5e6b(0x1f7),'FTedN':_0xcc5e6b(0x1e4),'JzAkx':'autoscaler-role-creation.yaml','iqzll':_0xcc5e6b(0x208),'DoqqV':function(_0xd822ff,_0x1a3642,_0x430f27,_0x4a6971){return _0xd822ff(_0x1a3642,_0x430f27,_0x4a6971);},'sestI':_0xcc5e6b(0x1d0),'fRleQ':'ClusterName','QQCzZ':_0xcc5e6b(0x1f1),'cXjbv':'Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','yDNjx':_0xcc5e6b(0x1ef)},_0x15b983=COMMON_HST_TAGS,_0x399992={};_0x399992[_0xcc5e6b(0x1f8)]=_0x35e000['LVMVN'],_0x399992[_0xcc5e6b(0x1d4)]=_0x56affb,_0x15b983[_0xcc5e6b(0x204)](_0x399992),_0x15b983['push']({'Key':_0x35e000[_0xcc5e6b(0x1e9)],'Value':new Date()[_0xcc5e6b(0x1d7)]()[_0xcc5e6b(0x1e1)]()});const _0x3a6499={};_0x3a6499[_0xcc5e6b(0x200)]=_0x35e000[_0xcc5e6b(0x1d8)];const _0x490e5e=new AWS[(_0xcc5e6b(0x201))](_0x3a6499),_0x3fcb84=await fs[_0xcc5e6b(0x1e5)](path[_0xcc5e6b(0x1fc)](__dirname,'..',_0x35e000[_0xcc5e6b(0x1f9)],_0x35e000[_0xcc5e6b(0x1d3)]),_0x35e000[_0xcc5e6b(0x1fb)]),_0x15a869={};_0x15a869[_0xcc5e6b(0x1da)]=CLOUDFORMATION_SCHEMA;const _0x3eac5a=yaml['load'](_0x3fcb84,_0x15a869);_0x35e000[_0xcc5e6b(0x1dd)](addAutoscalerTags,_0x3eac5a,_0x56affb,_0x15b983);const _0x52426e=JSON['stringify'](_0x3eac5a),_0x36cc48={};_0x36cc48[_0xcc5e6b(0x1d2)]=CLUSTER_AUTOSCALER_STACK_NAME+'-'+_0x56affb,_0x36cc48[_0xcc5e6b(0x207)]=_0x35e000[_0xcc5e6b(0x1fa)],_0x36cc48[_0xcc5e6b(0x1ff)]=_0x52426e,_0x36cc48['Parameters']=[{'ParameterKey':_0x35e000[_0xcc5e6b(0x1e7)],'ParameterValue':_0x56affb}],_0x36cc48[_0xcc5e6b(0x1f4)]=[_0x35e000[_0xcc5e6b(0x202)]],_0x36cc48[_0xcc5e6b(0x1e3)]=_0x15b983;const _0x119c0e=_0x36cc48,_0x19c924=await _0x490e5e[_0xcc5e6b(0x1e8)](_0x119c0e)[_0xcc5e6b(0x1ea)]();logger[_0xcc5e6b(0x1d5)](_0x35e000['cXjbv']);const _0x1a6f99={};return _0x1a6f99[_0xcc5e6b(0x1d2)]=_0x19c924[_0xcc5e6b(0x1fe)],_0x490e5e['waitFor'](_0x35e000[_0xcc5e6b(0x1f2)],_0x1a6f99)[_0xcc5e6b(0x1ea)]();};