#HalachaYomi OC 151:4 For the needs of the synagogue, it’s permitted to eat or sleep inside. Reason some sleep there night of Yom Kipur.