added appointmentresolver in order to get the appointments for a given range of time