When the court is unavailable an application may be filed before a local magistrate, as defined by subsection 3 of section 29-01-14, who may grant relief in accordance with section 14-07.1-03, upon good cause shown in an ex parte proceeding, if it is deemed necessary to protect the applicant or others from domestic violence. Immediate and present danger of domestic violence to the applicant or others constitutes good cause for purposes of this section. Any order issued under this section expires seventy-two hours after its issuance, unless continued by the court, or the local magistrate in the event of continuing unavailability of the court. At that time, the applicant may seek a temporary order from the court. Any order issued under this section and any documentation in support of the order must be immediately certified to the court. The certification to the court has the effect of commencing proceedings under section 14-07.1-02.
N.D.C.C. § 14-07.1-08