A woman who brandished a gun and fired it at a staff at a homeless charity in Leeds has been locked up