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