Provided herein are methods for treating or preventing prediabetes or diabetes, or maintaining or lowering blood or plasma glucose or maintaining or lowering blood or plasma glycated hemoglobin comprising administering to a subject in need thereof a therapeutically effective amount of a compound selectively inhibiting NaVl.7. In particular, provided herein are processes for the preparation of and intermediates used in the preparation of compounds selectively inhibiting NaV1.7, such as the compounds of Formula (I) or compounds of Formula (I).