Connections of the Liouville model and XXZ spin chain