President Moreno vows to restore order just hours after protest leaders agree to talks.