It is a danfoss but can't see a model number.
Reading left to right the terminals are numbered 4,5,1,3,2 and the connected wires are: 4 = blue, 5 empty, 1= both blacks, 3 = empty, 2= brown.
I don't think it would help to add a pic of the wiring box at the other end as it's a proper mess!