Trabzonspor achieved a hard-fought win against visiting Eyüpspor to continue chasing Galatasaray at the top of the Turkish League.