A mother was imprisoned for keeping her daughter in a drawer under her bed for the first three years of her life.