Automated device for cleaning and disinfecting endoscopes