Four gang members have been sentenced to a combined total of 160 years after being found guilty of the attempt murder of two men in Wakefield.