Added send_notification Agent-API function
git-svn-id: svn://192.168.202.10@3704 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1980,7 +1980,8 @@ allow_web_debug ENUM('0','1','2','3','4','5','6') default '0',
|
||||
max_logged_in_agents ENUM('0','1','2','3','4','5','6','7') default '0',
|
||||
user_codes_admin ENUM('0','1','2','3','4','5','6','7') default '0',
|
||||
login_kickall ENUM('0','1','2','3','4','5','6','7') default '0',
|
||||
abandon_check_queue ENUM('0','1','2','3','4','5','6','7') default '0'
|
||||
abandon_check_queue ENUM('0','1','2','3','4','5','6','7') default '0',
|
||||
agent_notifications ENUM('0','1','2','3','4','5','6','7') default '0'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -4894,6 +4895,34 @@ index(phone_number),
|
||||
index(lead_id)
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_agent_notifications (
|
||||
notification_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
entry_date DATETIME DEFAULT current_timestamp(),
|
||||
recipient VARCHAR(20) DEFAULT NULL,
|
||||
recipient_type ENUM('USER','USER_GROUP','CAMPAIGN') DEFAULT NULL,
|
||||
notification_date DATETIME DEFAULT current_timestamp(),
|
||||
notification_retry ENUM('Y','N') DEFAULT 'N',
|
||||
notification_text TEXT DEFAULT NULL,
|
||||
text_size TINYINT(3) UNSIGNED DEFAULT 12,
|
||||
text_font VARCHAR(30) DEFAULT 'Arial',
|
||||
text_weight VARCHAR(30) DEFAULT 'bold',
|
||||
text_color VARCHAR(15) DEFAULT NULL,
|
||||
show_confetti ENUM('Y','N') DEFAULT 'N',
|
||||
confetti_options VARCHAR(15) DEFAULT NULL,
|
||||
notification_status ENUM('QUEUED','READY','SENT','DEAD') DEFAULT NULL,
|
||||
PRIMARY KEY (notification_id),
|
||||
KEY recipient (recipient),
|
||||
KEY notification_date (notification_date)
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_agent_notifications_queue (
|
||||
queue_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
notification_id INT(10) UNSIGNED DEFAULT NULL,
|
||||
queue_date DATETIME DEFAULT current_timestamp(),
|
||||
user VARCHAR(20) DEFAULT NULL,
|
||||
PRIMARY KEY (queue_id)
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
|
||||
ALTER TABLE vicidial_email_list MODIFY message text character set utf8;
|
||||
|
||||
@@ -5161,6 +5190,9 @@ CREATE UNIQUE INDEX caller_code_date on vicidial_dial_cid_log_archive (caller_co
|
||||
CREATE TABLE vicidial_abandon_check_queue_archive LIKE vicidial_abandon_check_queue;
|
||||
ALTER TABLE vicidial_abandon_check_queue_archive MODIFY abandon_check_id INT(9) UNSIGNED NOT NULL;
|
||||
|
||||
CREATE TABLE vicidial_agent_notifications_archive LIKE vicidial_agent_notifications;
|
||||
ALTER TABLE vicidial_agent_notifications_archive MODIFY notification_id INT(10) UNSIGNED NOT NULL;
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
@@ -5254,4 +5286,4 @@ INSERT INTO `wallboard_reports` VALUES ('AGENTS_AND_QUEUES','Agents and Queues',
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1678',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1679',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
Reference in New Issue
Block a user