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


namespace MoSharePointObjectSync\LicenseLibrary\Classes;

use MoSharePointObjectSync\LicenseLibrary\Mo_License_Config;
use MoSharePointObjectSync\LicenseLibrary\Utils\Mo_License_API_Utility;
if (defined("\x41\x42\123\x50\x41\124\x48")) {
    goto uu;
}
exit;
uu:
class Mo_License_API_Client
{
    public static function fetch_license_info()
    {
        $xr = Mo_License_Constants::HOSTNAME . "\57\x6d\x6f\141\x73\x2f\x72\x65\163\x74\57\143\x75\x73\164\x6f\x6d\x65\x72\x2f\x6c\x69\143\x65\156\163\x65";
        $jE = Mo_License_Dao::mo_get_option(Mo_License_Config::CUSTOMER_KEY_OPTION);
        if ($jE) {
            goto Gv;
        }
        return false;
        Gv:
        $uv = Mo_License_API_Utility::get_current_time_in_millis($jE);
        $dL = array("\x63\165\163\164\157\x6d\145\162\x49\144" => $jE, "\x61\x70\160\x6c\151\x63\141\164\x69\x6f\x6e\116\141\155\145" => Mo_License_Config::APPLICATION);
        $Ig = Mo_License_API_Utility::get_api_headers($jE, $uv["\155\151\x6c\154\151\124\x69\155\145"], $uv["\x68\141\163\150"]);
        $rZ = Mo_License_API_Utility::get_api_args($dL, $Ig);
        $Rz = Mo_License_API_Utility::mo_wp_remote_call($xr, $rZ);
        return $Rz;
    }
}
