In node, why are some require followed by two () ()

In

node, why are some require followed by two () () parentheses?
the first parenthesis introduces the path of the method, so what does the second parenthesis do? The novice solved the problem, but no corresponding data was found.

Code that appears in the project:

require("../util/x1")(require("../config/crawl/x2").cronLogConfig);
Jul.16,2021

require (".. / util/x1") exports a method. The second parenthesis is the execution of the method.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54515-44a2d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54515-44a2d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?