Going by the 3 additional tinned holes on the PCB, I'd guess it is differential without the wires.
You could check with a multimeter to see if they change voltage when turned to a few random positions, or if your meter has a frequency setting, while spinning it.
The Z would be easy to figure out, but the other two could be a bit more problematic. The trick would be holding the encoder at a point where A and B are in different states (i.e. one high, one low), then matching to their complimentary outputs.