In a random order , participants underwent two 8-day periods ( first day at the clinical research facility followed by 7 days at home ) of sensor-augmented insulin pump therapy ( SAP ) or automated closed-loop insulin delivery .