An Ecuadorian court sentenced former president Rafael Correa on Tuesday to eight years in prison after finding him guilty of corruption charges.