I hope the union admins weren't foolish enough to let in management that way. My best faith assumption is that the mole got in, grabbed the content, and shared their account with management.
That still feels like a form of entrapment, though. Unless this story is fuzzy and the mole themselves simply shared the chat logs hemselves. But the story makes it sound like the Abid Ansari himself got in.