Maps, immersions and permutations