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


namespace MoSharePointObjectSync\LicenseLibrary\Utils;

use MoSharePointObjectSync\LicenseLibrary\Classes\Mo_License_API_Client;
use MoSharePointObjectSync\LicenseLibrary\Classes\Mo_License_Constants;
use MoSharePointObjectSync\LicenseLibrary\Classes\Mo_License_Library;
use MoSharePointObjectSync\LicenseLibrary\Mo_License_Config;
use MoSharePointObjectSync\LicenseLibrary\Classes\Mo_License_Dao;
if (defined("\101\x42\123\120\101\124\110")) {
    goto FP;
}
exit;
FP:
class Mo_License_Actions_Utility
{
    public static function fetch_license_expiry_date()
    {
        try {
            $FR = Mo_License_API_Client::fetch_license_info();
            if (!empty($FR)) {
                goto g9;
            }
            return false;
            g9:
            $FR = json_decode($FR, true);
            if (!(!empty($FR["\x73\164\x61\x74\x75\163"]) && strcasecmp($FR["\x73\164\x61\164\165\163"], "\123\125\x43\x43\x45\x53\x53") === 0)) {
                goto Ls;
            }
            if (empty($FR["\154\151\x63\145\x6e\x73\x65\x45\x78\160\151\x72\x79"])) {
                goto BX;
            }
            return $FR["\154\151\x63\145\156\x73\145\x45\x78\160\151\162\x79"];
            BX:
            return false;
            Ls:
            return false;
        } catch (\Exception $FM) {
            return false;
        }
    }
    public static function get_current_environment_hook_name($H_)
    {
        return Mo_License_Constants::ENVIRONMENT_SPECIFIC_HOOKS[$H_][Mo_License_Library::$environment_type];
    }
    public static function get_environment_type()
    {
        if (!function_exists("\x69\x73\137\x70\154\x75\147\x69\156\137\141\x63\164\151\x76\145\x5f\146\157\162\x5f\156\x65\x74\x77\157\x72\153")) {
            require_once ABSPATH . "\57\167\160\55\x61\144\x6d\151\x6e\57\x69\156\143\x6c\x75\x64\145\163\57\x70\x6c\165\147\151\156\x2e\160\150\x70";
        }
        $MV = explode("\57", Mo_License_Config::PLUGIN_FILE);
        $P5 = (array) Mo_License_Dao::mo_get_option("\x61\x63\164\151\x76\x65\x5f\x73\151\164\145\x77\151\144\145\137\x70\154\x75\x67\x69\156\163", array());
        if (is_plugin_active_for_network(Mo_License_Config::PLUGIN_FILE)) {
            goto om;
        }
        if (!empty($P5)) {
            goto gK;
        }
        goto mP;
        om:
        return "\x6e\x65\x74\167\x6f\162\x6b";
        goto mP;
        gK:
        foreach ($P5 as $Od => $V7) {
            if (!(strpos($Od, $MV[0]) !== false)) {
                goto Mr;
            }
            return "\156\x65\164\x77\x6f\162\x6b";
            Mr:
            h8:
        }
        dE:
        mP:
        return "\163\164\x61\156\144\141\x6c\157\156\x65";
    }
}
