File: /home4/cca63905/.trash/wp-content/plugins/tidio-live-chat/tidio-elements.php
<?php
if (!defined('WPINC')) {
die('File loaded directly. Exiting.');
}
/**
* Plugin Name: Tidio Chat
* Plugin URI: http://www.tidio.com
* Description: Tidio Live Chat - live chat boosted with chatbots for your online business. Integrates with your website in less than 20 seconds.
* Version: 5.4.3
* Author: Tidio Ltd.
* Author URI: http://www.tidio.com
* Text Domain: tidio-live-chat
* Domain Path: /languages/
* License: GPL2
*/
define('TIDIOCHAT_VERSION', '5.4.3');
define('AFFILIATE_CONFIG_FILE_PATH', get_template_directory() . '/tidio_affiliate_ref_id.txt');
require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
use TidioLiveChat\Sdk\Encryption\Service\EncryptionServiceFactory;
use TidioLiveChat\IntegrationState;
use TidioLiveChat\TidioLiveChat;
function initializeTidioLiveChat()
{
if (!empty($_GET['tidio_chat_version'])) {
echo TIDIOCHAT_VERSION;
exit;
}
TidioLiveChat::load();
}
add_action('init', 'initializeTidioLiveChat');
$encryptionService = (new EncryptionServiceFactory())->create();
register_activation_hook(__FILE__, [new IntegrationState($encryptionService), 'turnOnAsyncLoading']);