Seven years of coordinated Chandra-NuSTAR observations of SN2014C unfold the extreme mass-loss history of its stellar progenitor