<?php

namespace slack;

require_once WD . '/modules/slack/config/slack_customer_registration_webhook_url_c.php';
require_once WD . '/modules/slack/config/slack_internal_department_goal_progress_webhook_url_c.php';
require_once WD . '/modules/slack/config/slack_internal_department_ids_c.php';

use slack\config\slack_customer_registration_webhook_url_c;
use slack\config\slack_internal_department_goal_progress_webhook_url_c;
use slack\config\slack_internal_department_ids_c;
use traits\module_config_t;

class slack_c
{
    use module_config_t;

    public slack_customer_registration_webhook_url_c $customer_registration_webhook_url;
    public slack_internal_department_goal_progress_webhook_url_c $internal_department_goal_progress_webhook_url;
    public slack_internal_department_ids_c $internal_department_ids;

    public function __construct()
    {
        $this->setupConfig('Slack');
        $this->allowUpdate([
            slack_customer_registration_webhook_url_c::class,
            slack_internal_department_goal_progress_webhook_url_c::class,
            slack_internal_department_ids_c::class,
        ]);

        $this->customer_registration_webhook_url = new slack_customer_registration_webhook_url_c();
        $this->internal_department_goal_progress_webhook_url = new slack_internal_department_goal_progress_webhook_url_c();
        $this->internal_department_ids = new slack_internal_department_ids_c();
    }
}
