See: https://github.com/invisible-tech/process-automation/tree/master/src/lambdas/get-slot-availability for more details.