Ambulance workers bashed, court hears