<?php
/**
 * @package embed-sharepoint-onedrive-documents
 * @author miniOrange
 * @link https://plugins.miniorange.com
 */


namespace MoSharePointObjectSync\Controller;

use WP_Background_Process;
class moSPSBackgroundProcess
{
    protected function task($oi)
    {
        sleep(3);
        $Rz = $this->syncUsersFromWPToKC($oi);
        return false;
    }
    function syncUsersFromWPToKC($oi)
    {
    }
}
class moSPSBackgroundSync
{
    private static $instance;
    public static function getController()
    {
        if (isset(self::$instance)) {
            goto Lg;
        }
        $pj = __CLASS__;
        self::$instance = new $pj();
        Lg:
        return self::$instance;
    }
    public function mo_sps_run_bg_process()
    {
        $this->task = new moSPSBackgroundProcess();
        if (!isset($_GET["\163\171\156\143"])) {
            goto uo;
        }
        $Yp = [$_GET["\163\x79\156\x63"]];
        if (!in_array("\155\157\137\x73\x70\163\137\x73\x74\x61\162\x74\x5f\x73\x79\156\x63", $Yp)) {
            goto tU;
        }
        tU:
        uo:
    }
}
