From Generalized Pentagon Equations to Goldman--Tureav theory