Adding an outlet to a hall closet
The only issue I would anticipate is that the sump pump outlet is probably not arc fault protected.  Depending on your local code requirements, you are probably required to have arc fault protection on a circuit supplying receptacles in a closet.