'Custody' in the Bible
Let the king appoint administrators in all the provinces of his kingdom, and have them gather all the beautiful young virgins to the citadel in Susa, into the harem, under the custody of Hegai, the king’s eunuch, who is in charge of the women; and let their beauty preparations be given to them.
So it came about when the king’s command and his decree were proclaimed and when many young women were gathered together in the citadel of Susa into the custody of Hegai, that Esther was taken to the king’s palace [and placed] in the custody of Hegai, who was in charge of the women.
In the evening she would go in and the next morning she would return to the second harem, to the custody of Shaashgaz, the king’s eunuch who was in charge of the concubines. She would not return to the king unless he delighted in her and she was summoned by name.