<?php
namespace Mtc\Plugins\LexisNexisIDU;

use Illuminate\Support\Facades\Event;
use Mtc\Plugins\LexisNexisIDU\Classes\IDService;

if (!defined('LN_IDU_ENABLED')) {
    require_once __DIR__ . '/admin/includes/install.php';
}

if (LN_IDU_ENABLED === true) {
    Event::listen('Mtc\Shop\Order@newOrder', function ($order) {
        IDService::runCheck($order);
    });
}