; (2) communications to or from an unmanned aircraft system are intercepted, acquired, or accessed only to the extent necessary to support a function of the Department of Homeland Security or the Department of Justice; (3) records of such communications are not maintained for more than 180 days unless the Secretary or the Attorney General determine that maintenance of such records— (A) is necessary to support one or more functions of the Department of Homeland Security or the Department of Justice, respectively; or (B) is required for a longer period to support a civilian law enforcement agency or by any other applicable statute or regulation; and (4) such communications are not disclosed outside the Department of Homeland Security or the Department of Justice unless the disclosure— (A) would fulfill a function of the Department of Homeland Security or the Department of Justice, respectively; (B) would support the Department of Defense, another civilian law enforcement agency, or the activities of a regulatory agency of the Federal Government in connection with a criminal or civil investigation of, or any regulatory, statutory, or other enforcement action arising out of an action described in subsection (b)(1)