A gang of North East drug dealers who were brought down when their encrypted phone network was compromised have been locked up for more than 40 years.