static function RunCronJobs()
 {
     Server::InitDataBlock(array("DBCONFIG"));
     $timeouts = array(Server::$Configuration->File["poll_frequency_clients"] * 10, 86400, 86400 * 7, DATA_LIFETIME);
     $randoms = array(0 => 600, 1 => 300, 2 => 20);
     $randStandard = rand(1, $randoms[0]);
     if ($randStandard < 5) {
         require_once LIVEZILLA_PATH . "_lib/functions.internal.optimize.inc.php";
         DatabaseMaintenance::Maintain($randStandard, $timeouts);
     }
     if (rand(1, $randoms[2]) == 1) {
         if (empty(Server::$Configuration->File["gl_rm_chats"]) || !empty(Server::$Configuration->File["gl_rm_chats_time"])) {
             Communication::SendChatTranscripts();
         }
     }
     if (rand(1, $randoms[2] - count(Server::$Configuration->Database["gl_email"])) <= 1) {
         Communication::DownloadEmails(false);
     }
     if (rand(1, $randoms[2] - count(Server::$Configuration->Database["gl_sm"])) <= 1) {
         Communication::DownloadSocialMedia(false);
     }
 }