Syrian army has successfully freed two neighborhoods in Rif Dimashq following heavy clashes with extremist militants trying to enter the capital Damascus.