Doctor Idan Barak, convicted of sexually assaulting minors online, has been sentenced to 30 months in prison.