Quiver origami: discrete gauging and folding