A corporation may, by a provision in its articles of incorporation or bylaws or in a resolution adopted or a contract approved by its board of directors or shareholders, obligate itself in advance of the act or omission giving rise to a proceeding to provide indemnification in accordance with §§ 47-1A-851 and 47-1A-851.1 or advance funds to pay for or reimburse expenses in accordance with §§ 47-1A-853 and