HEX
Server: Apache/2.4.57 (Debian)
System: Linux 8ea768a960b0 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64
User: www-data (33)
PHP: 8.2.18
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/salesmartly-chat/src/SaleSmartlyChat.php
<?php

class SaleSmartlyChat
{

    const SOURCE = 'wordpress';

    const SALESMARTLY_PLUGIN_NAME = 'salesmartly-chat';

    const DOMAIN = 'https://app.salesmartly.com';

    const API = 'https://api.salesmartly.com';

    const CLIENT_SECRET = '9c2210efee9b603e09f8d742917bb538';

    public static function load()
    {
        $integrationState = new SaleSmartlyIntegrationState();

        if (!is_admin()) {
            new SaleSmartlyWidget($integrationState);
            return;
        }

        if (current_user_can('activate_plugins')) {

            $adminController = new SaleSmartlyAdminController($integrationState);

            new SaleSmartlyAdminRouting($adminController);
            new SaleSmartlyAdminActionLink($integrationState);
        }
    }

}