A court in El Salvador has sentenced former President Mauricio Funes to 14 years and one of his former ministers, David Victoriano Munguía Payés, to 18 years in prison for negotiating a truce between the country's two largest gangs, according to the country's Attorney General's Office.