index.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { type Context } from "aws-lambda";
  2. import { handler as elciudadano } from "./portales/elciudadano/handler";
  3. import { handler as eldesconcierto } from "./portales/eldesconcierto/handler";
  4. import { handler as emol } from "./portales/emol/handler";
  5. import { handler as latercera } from "./portales/latercera/handler";
  6. import { handler as theclinic } from "./portales/theclinic/handler";
  7. const context: Context = {
  8. callbackWaitsForEmptyEventLoop: false,
  9. functionName: "",
  10. functionVersion: "$LATEST",
  11. invokedFunctionArn: "",
  12. memoryLimitInMB: "0",
  13. awsRequestId: "",
  14. logGroupName: "",
  15. logStreamName: "",
  16. done: () => {},
  17. fail: () => {},
  18. succeed: () => {},
  19. getRemainingTimeInMillis: () => 1
  20. };
  21. async function main (): Promise<void> {
  22. await elciudadano(null, context, () => {});
  23. await eldesconcierto(null, context, () => {});
  24. await emol(null, context, () => {});
  25. await latercera(null, context, () => {});
  26. await theclinic(null, context, () => {});
  27. }
  28. main()
  29. .then(() => {
  30. process.exit(0);
  31. })
  32. .catch((err) => {
  33. console.error(err)
  34. });