import { pool } from "./utils/db";
import { scrapeEngeniusOem }          from "./scrapers/engenius-oem";
import { scrapePaloaltoNetworksOem }  from "./scrapers/paloalto-networks-oem";
import { scrapeBrocadeLegacyOem }     from "./scrapers/brocade-legacy-oem";
import { scrapeFoundryNetworksOem }   from "./scrapers/foundry-networks-oem";

async function main() {
  await scrapeEngeniusOem();
  await scrapePaloaltoNetworksOem();
  await scrapeBrocadeLegacyOem();
  await scrapeFoundryNetworksOem();
}

main()
  .then(() => pool.end())
  .catch((err) => { console.error("Fatal:", err); pool.end(); process.exit(1); });
