hr manager how it works