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


namespace MoSharePointObjectSync\LicenseLibrary\Utils;

use MoSharePointObjectSync\LicenseLibrary\Classes\Mo_License_Dao;
use MoSharePointObjectSync\LicenseLibrary\Mo_License_Config;
if (defined("\101\102\x53\x50\101\124\x48")) {
    goto aw;
}
exit;
aw:
class Mo_License_API_Utility
{
    public static function get_current_time_in_millis($jE)
    {
        $sA = Mo_License_Dao::mo_get_option(Mo_License_Config::API_KEY_OPTION);
        $v5 = round(microtime(true) * 1000);
        $pE = $jE . number_format($v5, 0, '', '') . $sA;
        $xA = hash("\163\150\x61\65\x31\62", $pE);
        $v5 = number_format($v5, 0, '', '');
        return array("\x6d\151\154\x6c\151\124\x69\155\145" => $v5, "\150\x61\x73\150" => $xA);
    }
    public static function get_api_headers($jE, $a3, $xA)
    {
        return array("\103\x6f\156\164\145\156\x74\55\124\x79\160\145" => "\x61\x70\x70\154\x69\x63\141\x74\151\157\156\57\152\163\157\x6e", "\x43\165\163\164\157\x6d\145\162\55\113\x65\x79" => $jE, "\x54\x69\155\145\x73\164\141\155\x70" => $a3, "\101\165\x74\150\157\x72\151\x7a\x61\x74\x69\157\x6e" => $xA);
    }
    public static function get_api_args($dL, $Ig)
    {
        $m8 = wp_json_encode($dL);
        return array("\x6d\x65\164\150\157\144" => "\x50\x4f\123\x54", "\x62\157\x64\171" => $m8, "\164\151\155\145\157\165\164" => "\x31\60", "\x72\x65\144\151\x72\x65\143\164\151\157\x6e" => "\65", "\x68\164\164\160\166\x65\x72\x73\151\157\x6e" => "\61\56\x30", "\142\x6c\x6f\x63\x6b\x69\156\x67" => true, "\x68\x65\x61\144\145\x72\163" => $Ig);
    }
    public static function mo_wp_remote_call($xr, $rZ = array(), $d5 = false)
    {
        if (!$d5) {
            goto ss;
        }
        $Rz = wp_remote_get($xr, $rZ);
        goto qA;
        ss:
        $Rz = wp_remote_post($xr, $rZ);
        qA:
        if (!is_wp_error($Rz)) {
            goto p0;
        }
        return false;
        goto Vn;
        p0:
        return $Rz["\142\x6f\x64\x79"];
        Vn:
    }
}
