Connecting printer rotary encoder to Arduino Leonardo

I need help discovering A, B and Z phase pins (if there's Z) aswell as the + and - terminal.
I don't have a multimeter to check resistance, only these photos. Hope it's enough! Cheers!