The registered agent appointed by a foreign corporation authorized to transact business in this state shall be an agent of the corporation upon whom process, notice, or demand required or permitted by law to be served upon the corporation may be served.