purchase agreement DATED June 12, 2017 BY AND AMONG THE GUARANTORS PARTY HERETO, AND the note purchasers party hereto