Help identifying the 5 cables of this rotary encoder

Can somebody help me identify the 5 cables coming out of this rotary encoder?

The encoder itself is glued in a box so I can’t access it without breaking the box and I would like to avoid that!

Do you have a multimeter with a resistance setting?

With 5 wires, you have a 4-bit encoder with one common wire and 4 data wires. Your DVM Ohmmeter will help you determine which wire is common and if you are persistent, you can even determine how the encoder is working with the 4 bits.

Paul