0byt3m1n1
Path:
/
data
/
20
/
1
/
129
/
105
/
1944594
/
meta
/
2121897
/
mysql.backup
/
[
Home
]
File: chat_.mysqlcluster7.bak.sql
-- MySQL dump 10.13 Distrib 5.6.24, for Linux (x86_64) -- -- Host: mysqlcluster7 Database: chat_ -- ------------------------------------------------------ -- Server version 5.6.32-78.1-56-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `lh_abstract_auto_responder` -- DROP TABLE IF EXISTS `lh_abstract_auto_responder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_auto_responder` ( `id` int(11) NOT NULL AUTO_INCREMENT, `siteaccess` varchar(3) NOT NULL, `wait_message` varchar(250) NOT NULL, `wait_timeout` int(11) NOT NULL, `position` int(11) NOT NULL, `dep_id` int(11) NOT NULL, `repeat_number` int(11) NOT NULL DEFAULT '1', `timeout_message` varchar(250) NOT NULL, PRIMARY KEY (`id`), KEY `siteaccess_position` (`siteaccess`,`position`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_auto_responder` -- LOCK TABLES `lh_abstract_auto_responder` WRITE; /*!40000 ALTER TABLE `lh_abstract_auto_responder` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_auto_responder` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_browse_offer_invitation` -- DROP TABLE IF EXISTS `lh_abstract_browse_offer_invitation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_browse_offer_invitation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `siteaccess` varchar(10) NOT NULL, `time_on_site` int(11) NOT NULL, `content` longtext NOT NULL, `callback_content` longtext NOT NULL, `lhc_iframe_content` tinyint(4) NOT NULL, `custom_iframe_url` varchar(250) NOT NULL, `name` varchar(250) NOT NULL, `identifier` varchar(50) NOT NULL, `executed_times` int(11) NOT NULL, `url` varchar(250) NOT NULL, `active` int(11) NOT NULL, `has_url` int(11) NOT NULL, `is_wildcard` int(11) NOT NULL, `referrer` varchar(250) NOT NULL, `priority` varchar(250) NOT NULL, `hash` varchar(40) NOT NULL, `width` int(11) NOT NULL, `height` int(11) NOT NULL, `unit` varchar(10) NOT NULL, PRIMARY KEY (`id`), KEY `active` (`active`), KEY `identifier` (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_browse_offer_invitation` -- LOCK TABLES `lh_abstract_browse_offer_invitation` WRITE; /*!40000 ALTER TABLE `lh_abstract_browse_offer_invitation` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_browse_offer_invitation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_email_template` -- DROP TABLE IF EXISTS `lh_abstract_email_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_email_template` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, `from_name` varchar(150) NOT NULL, `from_name_ac` tinyint(4) NOT NULL, `from_email` varchar(150) NOT NULL, `from_email_ac` tinyint(4) NOT NULL, `user_mail_as_sender` tinyint(4) NOT NULL, `content` text NOT NULL, `subject` varchar(250) NOT NULL, `bcc_recipients` varchar(200) NOT NULL, `subject_ac` tinyint(4) NOT NULL, `reply_to` varchar(150) NOT NULL, `reply_to_ac` tinyint(4) NOT NULL, `recipient` varchar(150) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_email_template` -- LOCK TABLES `lh_abstract_email_template` WRITE; /*!40000 ALTER TABLE `lh_abstract_email_template` DISABLE KEYS */; INSERT INTO `lh_abstract_email_template` VALUES (1,'Send mail to user','Harwal IT Live Support',0,'',0,0,'Dear {user_chat_nick},\r\n\r\n{additional_message}\r\n\r\nLive Support response:\r\n{messages_content}\r\n\r\nSincerely,\r\nHarwal IT Support\r\n','{name_surname} has responded to your request','',1,'',1,''),(2,'Support request from user','',0,'',0,0,'Hello,\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nAdditional data, if any:\r\n{additional_data}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nLink to chat if any:\r\n{prefillchat}\r\n\r\nSincerely,\r\nHarwal IT Support','Support request from user','',0,'',0,'nabeel.r@riyadhplasticfactories.com'),(3,'User mail for himself','Harwal Live Helper Chat',0,'',0,0,'Dear {user_chat_nick},\r\n\r\nTranscript:\r\n{messages_content}\r\n\r\nSincerely,\r\nHarwal IT Support\r\n','Chat transcript','',0,'',0,''),(4,'New chat request','Harwal IT Live Support',0,'',0,0,'Hello,\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nClick to accept chat automatically\r\n{url_accept}\r\n\r\nSincerely,\r\nHarwal IT Live Support','New chat request','',0,'',0,'nabeel.r@riyadhplasticfactories.com'),(5,'Chat was closed','Harwal IT Live Support',0,'',0,0,'Hello,\r\n\r\n{operator} has closed a chat\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nAdditional data, if any:\r\n{additional_data}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nSincerely,\r\nHarwal IT Live Support','Chat was closed','',0,'',0,''),(6,'New FAQ question','Harwal IT Live Support',0,'',0,0,'Hello,\r\n\r\nNew FAQ question\r\nEmail: {email}\r\n\r\nQuestion:\r\n{question}\r\n\r\nQuestion URL:\r\n{url_question}\r\n\r\nURL to answer a question:\r\n{url_request}\r\n\r\nSincerely,\r\nHarwal IT Live Support','New FAQ question','',0,'',0,''),(7,'New unread message','Harwal IT Live Support',0,'',0,0,'Hello,\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nClick to accept chat automatically\r\n{url_accept}\r\n\r\nSincerely,\r\nHarwal IT Live Support','New chat request','',0,'',0,'nabeel.r@riyadhplasticfactories.com'),(8,'Filled form','Harwal IT Live Support',0,'',0,0,'Hello,\r\n\r\nUser has filled a form\r\nForm name - {form_name}\r\nUser IP - {ip}\r\nDownload filled data - {url_download}\r\nIdentifier - {identifier}\r\nView filled data - {url_view}\r\n\r\n {content} \r\n\r\nSincerely,\r\nHarwal IT Live Support','Filled form - {form_name}','',0,'',0,'nabeel.r@riyadhplasticfactories.com'),(9,'Chat was accepted','Harwal IT Live Support',0,'',0,0,'Hello,\r\n\r\nOperator {user_name} has accepted a chat [{chat_id}]\r\n\r\nUser request data:\r\nName: {name}\r\nEmail: {email}\r\nPhone: {phone}\r\nDepartment: {department}\r\nCountry: {country}\r\nCity: {city}\r\nIP: {ip}\r\n\r\nMessage:\r\n{message}\r\n\r\nURL of page from which user has send request:\r\n{url_request}\r\n\r\nClick to accept chat automatically\r\n{url_accept}\r\n\r\nSincerely,\r\nHarwal IT Live Support','Chat was accepted [{chat_id}]','',0,'',0,'nabeel.r@riyadhplasticfactories.com'),(10,'Permission request','Harwal IT Live Support',0,'',0,0,'Hello,\r\n\r\nOperator {user} has requested these permissions\r\n\r\n{permissions}\r\n\r\nSincerely,\r\nHarwal IT Live Support','Permission request from {user}','',0,'',0,'nabeel.r@riyadhplasticfactories.com'); /*!40000 ALTER TABLE `lh_abstract_email_template` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_form` -- DROP TABLE IF EXISTS `lh_abstract_form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_form` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `content` longtext NOT NULL, `recipient` varchar(250) NOT NULL, `active` int(11) NOT NULL, `name_attr` varchar(250) NOT NULL, `intro_attr` varchar(250) NOT NULL, `xls_columns` text NOT NULL, `pagelayout` varchar(200) NOT NULL, `post_content` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_form` -- LOCK TABLES `lh_abstract_form` WRITE; /*!40000 ALTER TABLE `lh_abstract_form` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_form` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_form_collected` -- DROP TABLE IF EXISTS `lh_abstract_form_collected`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_form_collected` ( `id` int(11) NOT NULL AUTO_INCREMENT, `form_id` int(11) NOT NULL, `ctime` int(11) NOT NULL, `ip` varchar(250) NOT NULL, `identifier` varchar(250) NOT NULL, `content` longtext NOT NULL, PRIMARY KEY (`id`), KEY `form_id` (`form_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_form_collected` -- LOCK TABLES `lh_abstract_form_collected` WRITE; /*!40000 ALTER TABLE `lh_abstract_form_collected` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_form_collected` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_proactive_chat_invitation` -- DROP TABLE IF EXISTS `lh_abstract_proactive_chat_invitation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_proactive_chat_invitation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `siteaccess` varchar(10) NOT NULL, `time_on_site` int(11) NOT NULL, `pageviews` int(11) NOT NULL, `message` text NOT NULL, `message_returning` text NOT NULL, `executed_times` int(11) NOT NULL, `dep_id` int(11) NOT NULL, `hide_after_ntimes` int(11) NOT NULL, `name` varchar(50) NOT NULL, `operator_ids` varchar(100) NOT NULL, `wait_message` varchar(250) NOT NULL, `timeout_message` varchar(250) NOT NULL, `message_returning_nick` varchar(250) NOT NULL, `referrer` varchar(250) NOT NULL, `wait_timeout` int(11) NOT NULL, `show_random_operator` int(11) NOT NULL, `operator_name` varchar(100) NOT NULL, `position` int(11) NOT NULL, `identifier` varchar(50) NOT NULL, `requires_email` int(11) NOT NULL, `requires_username` int(11) NOT NULL, `requires_phone` int(11) NOT NULL, `repeat_number` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `time_on_site_pageviews_siteaccess_position` (`time_on_site`,`pageviews`,`siteaccess`,`identifier`,`position`), KEY `identifier` (`identifier`), KEY `dep_id` (`dep_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_proactive_chat_invitation` -- LOCK TABLES `lh_abstract_proactive_chat_invitation` WRITE; /*!40000 ALTER TABLE `lh_abstract_proactive_chat_invitation` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_proactive_chat_invitation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_product` -- DROP TABLE IF EXISTS `lh_abstract_product`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_product` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, `disabled` int(11) NOT NULL, `priority` int(11) NOT NULL, `departament_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `departament_id` (`departament_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_product` -- LOCK TABLES `lh_abstract_product` WRITE; /*!40000 ALTER TABLE `lh_abstract_product` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_product` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_rest_api_key` -- DROP TABLE IF EXISTS `lh_abstract_rest_api_key`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_rest_api_key` ( `id` int(11) NOT NULL AUTO_INCREMENT, `api_key` varchar(50) NOT NULL, `user_id` int(11) NOT NULL, `active` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `api_key` (`api_key`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_rest_api_key` -- LOCK TABLES `lh_abstract_rest_api_key` WRITE; /*!40000 ALTER TABLE `lh_abstract_rest_api_key` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_rest_api_key` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_survey` -- DROP TABLE IF EXISTS `lh_abstract_survey`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_survey` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, `max_stars` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_survey` -- LOCK TABLES `lh_abstract_survey` WRITE; /*!40000 ALTER TABLE `lh_abstract_survey` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_survey` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_survey_item` -- DROP TABLE IF EXISTS `lh_abstract_survey_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_survey_item` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `survey_id` int(11) NOT NULL, `chat_id` int(11) NOT NULL, `stars` int(11) NOT NULL, `user_id` int(11) NOT NULL, `ftime` int(11) NOT NULL, `dep_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `survey_id` (`survey_id`), KEY `chat_id` (`chat_id`), KEY `user_id` (`user_id`), KEY `dep_id` (`dep_id`), KEY `ftime` (`ftime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_survey_item` -- LOCK TABLES `lh_abstract_survey_item` WRITE; /*!40000 ALTER TABLE `lh_abstract_survey_item` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_survey_item` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_abstract_widget_theme` -- DROP TABLE IF EXISTS `lh_abstract_widget_theme`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_abstract_widget_theme` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, `name_company` varchar(250) NOT NULL, `onl_bcolor` varchar(10) NOT NULL, `bor_bcolor` varchar(10) NOT NULL DEFAULT 'e3e3e3', `text_color` varchar(10) NOT NULL, `online_image` varchar(250) NOT NULL, `online_image_path` varchar(250) NOT NULL, `offline_image` varchar(250) NOT NULL, `offline_image_path` varchar(250) NOT NULL, `logo_image` varchar(250) NOT NULL, `logo_image_path` varchar(250) NOT NULL, `need_help_image` varchar(250) NOT NULL, `header_background` varchar(10) NOT NULL, `need_help_tcolor` varchar(10) NOT NULL, `need_help_bcolor` varchar(10) NOT NULL, `need_help_border` varchar(10) NOT NULL, `need_help_close_bg` varchar(10) NOT NULL, `need_help_hover_bg` varchar(10) NOT NULL, `need_help_close_hover_bg` varchar(10) NOT NULL, `need_help_image_path` varchar(250) NOT NULL, `custom_status_css` text NOT NULL, `custom_container_css` text NOT NULL, `custom_widget_css` text NOT NULL, `need_help_header` varchar(250) NOT NULL, `need_help_text` varchar(250) NOT NULL, `online_text` varchar(250) NOT NULL, `offline_text` varchar(250) NOT NULL, `widget_border_color` varchar(10) NOT NULL, `copyright_image` varchar(250) NOT NULL, `copyright_image_path` varchar(250) NOT NULL, `widget_copyright_url` varchar(250) NOT NULL, `show_copyright` int(11) NOT NULL DEFAULT '1', `explain_text` text NOT NULL, `intro_operator_text` varchar(250) NOT NULL, `operator_image` varchar(250) NOT NULL, `operator_image_path` varchar(250) NOT NULL, `minimize_image` varchar(250) NOT NULL, `minimize_image_path` varchar(250) NOT NULL, `restore_image` varchar(250) NOT NULL, `restore_image_path` varchar(250) NOT NULL, `close_image` varchar(250) NOT NULL, `close_image_path` varchar(250) NOT NULL, `popup_image` varchar(250) NOT NULL, `popup_image_path` varchar(250) NOT NULL, `support_joined` varchar(250) NOT NULL, `support_closed` varchar(250) NOT NULL, `pending_join` varchar(250) NOT NULL, `noonline_operators` varchar(250) NOT NULL, `noonline_operators_offline` varchar(250) NOT NULL, `hide_close` int(11) NOT NULL, `hide_popup` int(11) NOT NULL, `show_need_help` int(11) NOT NULL DEFAULT '1', `show_need_help_timeout` int(11) NOT NULL DEFAULT '24', `header_height` int(11) NOT NULL, `header_padding` int(11) NOT NULL, `widget_border_width` int(11) NOT NULL, `show_voting` tinyint(1) NOT NULL DEFAULT '1', `department_title` varchar(250) NOT NULL, `department_select` varchar(250) NOT NULL, `buble_visitor_background` varchar(250) NOT NULL, `buble_visitor_title_color` varchar(250) NOT NULL, `buble_visitor_text_color` varchar(250) NOT NULL, `buble_operator_background` varchar(250) NOT NULL, `buble_operator_title_color` varchar(250) NOT NULL, `buble_operator_text_color` varchar(250) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_abstract_widget_theme` -- LOCK TABLES `lh_abstract_widget_theme` WRITE; /*!40000 ALTER TABLE `lh_abstract_widget_theme` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_abstract_widget_theme` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_canned_msg` -- DROP TABLE IF EXISTS `lh_canned_msg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_canned_msg` ( `id` int(11) NOT NULL AUTO_INCREMENT, `msg` text NOT NULL, `fallback_msg` text NOT NULL, `title` varchar(250) NOT NULL, `explain` varchar(250) NOT NULL, `position` int(11) NOT NULL, `department_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `delay` int(11) NOT NULL, `auto_send` tinyint(1) NOT NULL, `attr_int_1` int(11) NOT NULL, `attr_int_2` int(11) NOT NULL, `attr_int_3` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `department_id` (`department_id`), KEY `attr_int_1` (`attr_int_1`), KEY `attr_int_2` (`attr_int_2`), KEY `attr_int_3` (`attr_int_3`), KEY `position_title` (`position`,`title`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_canned_msg` -- LOCK TABLES `lh_canned_msg` WRITE; /*!40000 ALTER TABLE `lh_canned_msg` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_canned_msg` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat` -- DROP TABLE IF EXISTS `lh_chat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nick` varchar(50) NOT NULL, `status` int(11) NOT NULL DEFAULT '0', `status_sub` int(11) NOT NULL DEFAULT '0', `time` int(11) NOT NULL, `user_id` int(11) NOT NULL, `hash` varchar(40) NOT NULL, `referrer` text NOT NULL, `session_referrer` text NOT NULL, `chat_variables` text NOT NULL, `remarks` text NOT NULL, `ip` varchar(100) NOT NULL, `dep_id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `user_status` int(11) NOT NULL DEFAULT '0', `user_closed_ts` int(11) NOT NULL DEFAULT '0', `support_informed` int(11) NOT NULL DEFAULT '0', `unread_messages_informed` int(11) NOT NULL DEFAULT '0', `reinform_timeout` int(11) NOT NULL DEFAULT '0', `email` varchar(100) NOT NULL, `country_code` varchar(100) NOT NULL, `country_name` varchar(100) NOT NULL, `unanswered_chat` int(11) NOT NULL, `user_typing` int(11) NOT NULL, `user_typing_txt` varchar(50) NOT NULL, `operator_typing` int(11) NOT NULL, `operator_typing_id` int(11) NOT NULL, `phone` varchar(100) NOT NULL, `has_unread_messages` int(11) NOT NULL, `last_user_msg_time` int(11) NOT NULL, `fbst` tinyint(1) NOT NULL, `online_user_id` int(11) NOT NULL, `last_msg_id` int(11) NOT NULL, `additional_data` text NOT NULL, `timeout_message` varchar(250) NOT NULL, `user_tz_identifier` varchar(50) NOT NULL, `lat` varchar(10) NOT NULL, `lon` varchar(10) NOT NULL, `city` varchar(100) NOT NULL, `operation` text NOT NULL, `operation_admin` varchar(200) NOT NULL, `chat_locale` varchar(10) NOT NULL, `chat_locale_to` varchar(10) NOT NULL, `mail_send` int(11) NOT NULL, `screenshot_id` int(11) NOT NULL, `wait_time` int(11) NOT NULL, `wait_timeout` int(11) NOT NULL, `wait_timeout_send` int(11) NOT NULL, `wait_timeout_repeat` int(11) NOT NULL, `chat_duration` int(11) NOT NULL, `tslasign` int(11) NOT NULL, `priority` int(11) NOT NULL, `chat_initiator` int(11) NOT NULL, `transfer_timeout_ts` int(11) NOT NULL, `transfer_timeout_ac` int(11) NOT NULL, `transfer_if_na` int(11) NOT NULL, `na_cb_executed` int(11) NOT NULL, `nc_cb_executed` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `status_user_id` (`status`,`user_id`), KEY `user_id` (`user_id`), KEY `unanswered_chat` (`unanswered_chat`), KEY `online_user_id` (`online_user_id`), KEY `dep_id` (`dep_id`), KEY `product_id` (`product_id`), KEY `has_unread_messages_dep_id_id` (`has_unread_messages`,`dep_id`,`id`), KEY `status_dep_id_id` (`status`,`dep_id`,`id`), KEY `status_dep_id_priority_id` (`status`,`dep_id`,`priority`,`id`), KEY `status_priority_id` (`status`,`priority`,`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat` -- LOCK TABLES `lh_chat` WRITE; /*!40000 ALTER TABLE `lh_chat` DISABLE KEYS */; INSERT INTO `lh_chat` VALUES (2,'test',2,0,1458033723,3,'5f961c20705214b5716553e0b31dbf86db765b6a','','','','','94.99.131.146',3,0,1,1458033737,1,0,0,'','sa','Saudi Arabia',1,1458033732,'Visitor has left the chat!',0,0,'',0,1458036210,0,0,2,'','','Europe/Moscow','','','','','','','',0,0,2444,0,0,0,0,0,0,0,0,0,0,0,1),(4,'test',1,0,1458118022,3,'a080f3d1bd2cccd56a9fcfdb2aa72c0b748b4082','','','','','37.99.147.38',3,0,1,1458118219,1,0,0,'','sa','Saudi Arabia',0,1458118214,'Visitor has left the chat!',0,0,'',0,0,0,0,13,'','','Europe/Moscow','','','','','','','',0,0,109,0,0,0,0,0,0,0,0,0,0,0,1); /*!40000 ALTER TABLE `lh_chat` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_accept` -- DROP TABLE IF EXISTS `lh_chat_accept`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_accept` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chat_id` int(11) NOT NULL, `hash` varchar(50) NOT NULL, `ctime` int(11) NOT NULL, `wused` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `hash` (`hash`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_accept` -- LOCK TABLES `lh_chat_accept` WRITE; /*!40000 ALTER TABLE `lh_chat_accept` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chat_accept` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_archive_range` -- DROP TABLE IF EXISTS `lh_chat_archive_range`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_archive_range` ( `id` int(11) NOT NULL AUTO_INCREMENT, `range_from` int(11) NOT NULL, `range_to` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_archive_range` -- LOCK TABLES `lh_chat_archive_range` WRITE; /*!40000 ALTER TABLE `lh_chat_archive_range` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chat_archive_range` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_blocked_user` -- DROP TABLE IF EXISTS `lh_chat_blocked_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_blocked_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ip` varchar(100) NOT NULL, `user_id` int(11) NOT NULL, `datets` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `ip` (`ip`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_blocked_user` -- LOCK TABLES `lh_chat_blocked_user` WRITE; /*!40000 ALTER TABLE `lh_chat_blocked_user` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chat_blocked_user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_config` -- DROP TABLE IF EXISTS `lh_chat_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_config` ( `identifier` varchar(50) NOT NULL, `value` text NOT NULL, `type` tinyint(1) NOT NULL DEFAULT '0', `explain` varchar(250) NOT NULL, `hidden` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_config` -- LOCK TABLES `lh_chat_config` WRITE; /*!40000 ALTER TABLE `lh_chat_config` DISABLE KEYS */; INSERT INTO `lh_chat_config` VALUES ('accept_chat_link_timeout','300',0,'How many seconds chat accept link is valid. Set 0 to force login all the time manually.',0),('accept_tos_link','#',0,'Change to your site Terms of Service',0),('allow_reopen_closed','1',0,'Allow user to reopen closed chats?',0),('application_name','a:30:{s:3:\"eng\";s:23:\"Harwal IT- live support\";s:3:\"lit\";s:19:\"Harwal Helper Chat \";s:3:\"hrv\";s:0:\"\";s:3:\"esp\";s:0:\"\";s:3:\"por\";s:0:\"\";s:3:\"nld\";s:0:\"\";s:3:\"ara\";s:0:\"\";s:3:\"ger\";s:0:\"\";s:3:\"pol\";s:0:\"\";s:3:\"rus\";s:0:\"\";s:3:\"ita\";s:0:\"\";s:3:\"fre\";s:0:\"\";s:3:\"chn\";s:0:\"\";s:3:\"cse\";s:0:\"\";s:3:\"nor\";s:0:\"\";s:3:\"tur\";s:0:\"\";s:3:\"vnm\";s:0:\"\";s:3:\"idn\";s:0:\"\";s:3:\"sve\";s:0:\"\";s:3:\"per\";s:0:\"\";s:3:\"ell\";s:0:\"\";s:3:\"dnk\";s:0:\"\";s:3:\"rou\";s:0:\"\";s:3:\"bgr\";s:0:\"\";s:3:\"tha\";s:0:\"\";s:3:\"geo\";s:0:\"\";s:3:\"fin\";s:0:\"\";s:3:\"alb\";s:0:\"\";s:3:\"heb\";s:0:\"\";s:10:\"site_admin\";s:29:\"Harwal IT Chat - live support\";}',1,'Support application name, visible in browser title.',0),('autoclose_timeout','0',0,'Automatic chats closing. 0 - disabled, n > 0 time in minutes before chat is automatically closed',0),('autologin_data','a:3:{i:0;b:0;s:11:\"secret_hash\";s:16:\"please_change_me\";s:7:\"enabled\";i:0;}',0,'Autologin configuration data',1),('automatically_reopen_chat','1',0,'Automatically reopen chat on widget open',0),('autopurge_timeout','0',0,'Automatic chats purging. 0 - disabled, n > 0 time in minutes before chat is automatically deleted',0),('banned_ip_range','',0,'Which ip should not be allowed to chat',0),('bbc_button_visible','1',0,'Show BB Code button',0),('chatbox_data','a:6:{i:0;b:0;s:20:\"chatbox_auto_enabled\";i:0;s:19:\"chatbox_secret_hash\";s:9:\"1xxz5ia9f\";s:20:\"chatbox_default_name\";s:7:\"Chatbox\";s:17:\"chatbox_msg_limit\";i:50;s:22:\"chatbox_default_opname\";s:7:\"Manager\";}',0,'Chatbox configuration',1),('checkstatus_timeout','0',0,'Interval between chat status checks in seconds, 0 disabled.',0),('customer_company_name','Copyright © - Nabeel Rais ',0,'Your company name - visible in bottom left corner',0),('customer_site_url','http://riyadhplasticfactories.com',0,'Your site URL address',0),('dashboard_order','online_operators,departments_stats|pending_chats,unread_chats,transfered_chats|active_chats,closed_chats',0,'Home page dashboard widgets order',0),('default_theme_id','0',0,'Default theme ID.',1),('disable_html5_storage','1',0,'Disable HMTL5 storage, check it if your site is switching between http and https',0),('disable_js_execution','1',0,'Disable JS execution in Co-Browsing operator window',0),('disable_popup_restore','0',0,'Disable option in widget to open new window. Restore icon will be hidden',0),('disable_print','0',0,'Disable chat print',0),('disable_send','0',0,'Disable chat transcript send',0),('explicit_http_mode','',0,'Please enter explicit http mode. Either http: or https:, do not forget : at the end.',0),('export_hash','6m6n9apl',0,'Chats export secret hash',0),('faq_email_required','0',0,'Is visitor e-mail required for FAQ',0),('file_configuration','a:7:{i:0;b:0;s:5:\"ft_op\";s:43:\"gif|jpe?g|png|zip|rar|xls|doc|docx|xlsx|pdf\";s:5:\"ft_us\";s:26:\"gif|jpe?g|png|doc|docx|pdf\";s:6:\"fs_max\";i:2048;s:18:\"active_user_upload\";b:0;s:16:\"active_op_upload\";b:1;s:19:\"active_admin_upload\";b:1;}',0,'Files configuration item',1),('front_tabs','dashboard,online_users,online_map',0,'Home page tabs order',0),('geoadjustment_data','a:8:{i:0;b:0;s:18:\"use_geo_adjustment\";b:0;s:13:\"available_for\";s:0:\"\";s:15:\"other_countries\";s:6:\"custom\";s:8:\"hide_for\";s:0:\"\";s:12:\"other_status\";s:7:\"offline\";s:11:\"rest_status\";s:6:\"hidden\";s:12:\"apply_widget\";i:0;}',0,'Geo adjustment settings',1),('geo_data','a:5:{i:0;b:0;s:21:\"geo_detection_enabled\";i:1;s:22:\"geo_service_identifier\";s:8:\"max_mind\";s:23:\"max_mind_detection_type\";s:7:\"country\";s:22:\"max_mind_city_location\";s:37:\"var/external/geoip/GeoLite2-City.mmdb\";}',0,'',1),('geo_location_data','a:3:{s:4:\"zoom\";i:4;s:3:\"lat\";s:7:\"49.8211\";s:3:\"lng\";s:7:\"11.7835\";}',0,'',1),('hide_button_dropdown','0',0,'Hide close button in dropdown',0),('hide_disabled_department','1',0,'Hide disabled department widget',0),('hide_right_column_frontpage','0',0,'Hide right column in frontpage',0),('ignorable_ip','',0,'Which ip should be ignored in online users list, separate by comma',0),('ignore_user_status','0',0,'Ignore users online statuses and use departments online hours',0),('list_online_operators','0',0,'List online operators.',0),('max_message_length','500',0,'Maximum message length in characters',0),('message_seen_timeout','24',0,'Proactive message timeout in hours. After how many hours proactive chat mesasge should be shown again.',0),('mheight','',0,'Messages box height',0),('min_phone_length','8',0,'Minimum phone number length',0),('need_help_tip','1',0,'Show need help tooltip?',0),('need_help_tip_timeout','24',0,'Need help tooltip timeout, after how many hours show again tooltip?',0),('online_if','0',0,'',0),('on_close_exit_chat','1',0,'On chat close exit chat',0),('paidchat_data','',0,'Paid chat configuration',1),('product_enabled_module','0',0,'Product module is enabled',1),('pro_active_invite','1',0,'Is pro active chat invitation active. Online users tracking also has to be enabled',0),('pro_active_limitation','-1',0,'Pro active chats invitations limitation based on pending chats, (-1) do not limit, (0,1,n+1) number of pending chats can be for invitation to be shown.',0),('pro_active_show_if_offline','0',0,'Should invitation logic be executed if there is no online operators',0),('reopen_as_new','1',0,'Reopen closed chat as new? Otherwise it will be reopened as active.',0),('reopen_chat_enabled','1',0,'Reopen chat functionality enabled',0),('run_departments_workflow','0',0,'Should cronjob run departments transfer workflow, even if user leaves a chat',0),('run_unaswered_chat_workflow','0',0,'Should cronjob run unanswered chats workflow and execute unaswered chats callback, 0 - no, any other number bigger than 0 is a minits how long chat have to be not accepted before executing callback.',0),('session_captcha','0',0,'Use session captcha. LHC have to be installed on the same domain or subdomain.',0),('sharing_auto_allow','0',0,'Do not ask permission for users to see their screen',0),('sharing_nodejs_enabled','0',0,'NodeJs support enabled',0),('sharing_nodejs_path','',0,'socket.io path, optional',0),('sharing_nodejs_secure','0',0,'Connect to NodeJs in https mode',0),('sharing_nodejs_sllocation','https://cdn.socket.io/socket.io-1.1.0.js',0,'Location of SocketIO JS library',0),('sharing_nodejs_socket_host','',0,'Host where NodeJs is running',0),('show_languages','eng,lit,hrv,esp,por,nld,ara,ger,pol,rus,ita,fre,chn,cse,nor,tur,vnm,idn,sve,per,ell,dnk,rou,bgr,tha,geo,fin,alb',0,'Between what languages user should be able to switch',0),('show_language_switcher','0',0,'Show users option to switch language at widget',0),('smtp_data','a:5:{s:4:\"host\";s:0:\"\";s:4:\"port\";s:2:\"25\";s:8:\"use_smtp\";i:0;s:8:\"username\";s:0:\"\";s:8:\"password\";s:0:\"\";}',0,'SMTP configuration',1),('sound_invitation','1',0,'Play sound on invitation to chat.',0),('speech_data','a:3:{i:0;b:0;s:8:\"language\";i:7;s:7:\"dialect\";s:5:\"en-US\";}',1,'',1),('start_chat_data','a:23:{i:0;b:0;s:21:\"name_visible_in_popup\";b:1;s:27:\"name_visible_in_page_widget\";b:1;s:19:\"name_require_option\";s:8:\"required\";s:22:\"email_visible_in_popup\";b:0;s:28:\"email_visible_in_page_widget\";b:0;s:20:\"email_require_option\";s:8:\"required\";s:24:\"message_visible_in_popup\";b:1;s:30:\"message_visible_in_page_widget\";b:1;s:22:\"message_require_option\";s:8:\"required\";s:22:\"phone_visible_in_popup\";b:0;s:28:\"phone_visible_in_page_widget\";b:0;s:20:\"phone_require_option\";s:8:\"required\";s:21:\"force_leave_a_message\";b:0;s:29:\"offline_name_visible_in_popup\";b:1;s:35:\"offline_name_visible_in_page_widget\";b:1;s:27:\"offline_name_require_option\";s:8:\"required\";s:30:\"offline_phone_visible_in_popup\";b:0;s:36:\"offline_phone_visible_in_page_widget\";b:0;s:28:\"offline_phone_require_option\";s:8:\"required\";s:32:\"offline_message_visible_in_popup\";b:1;s:38:\"offline_message_visible_in_page_widget\";b:1;s:30:\"offline_message_require_option\";s:8:\"required\";}',0,'',1),('suggest_leave_msg','1',0,'Suggest user to leave a message then user chooses offline department',0),('sync_sound_settings','a:16:{i:0;b:0;s:12:\"repeat_sound\";i:1;s:18:\"repeat_sound_delay\";i:5;s:10:\"show_alert\";b:0;s:22:\"new_chat_sound_enabled\";b:1;s:31:\"new_message_sound_admin_enabled\";b:1;s:30:\"new_message_sound_user_enabled\";b:1;s:14:\"online_timeout\";d:300;s:22:\"check_for_operator_msg\";d:10;s:21:\"back_office_sinterval\";d:10;s:22:\"chat_message_sinterval\";d:3.5;s:20:\"long_polling_enabled\";b:0;s:30:\"polling_chat_message_sinterval\";d:1.5;s:29:\"polling_back_office_sinterval\";d:5;s:18:\"connection_timeout\";i:30;s:28:\"browser_notification_message\";b:0;}',0,'',1),('tracked_users_cleanup','30',0,'How many days keep records of online users.',0),('track_activity','0',0,'Track users activity on site?',0),('track_domain','',0,'Set your domain to enable user tracking across different domain subdomains.',0),('track_footprint','0',0,'Track users footprint. For this also online visitors tracking should be enabled',0),('track_if_offline','0',0,'Track online visitors even if there is no online operators',0),('track_is_online','0',0,'Track is user still on site, chat status checks also has to be enabled',0),('track_mouse_activity','0',0,'Should mouse movement be tracked as activity measure, if not checked only basic events would be tracked',0),('track_online_visitors','1',0,'Enable online site visitors tracking',0),('translation_data','a:6:{i:0;b:0;s:19:\"translation_handler\";s:4:\"bing\";s:19:\"enable_translations\";b:0;s:14:\"bing_client_id\";s:0:\"\";s:18:\"bing_client_secret\";s:0:\"\";s:14:\"google_api_key\";s:0:\"\";}',0,'Translation data',1),('update_ip','127.0.0.1',0,'Which ip should be allowed to update DB by executing http request, separate by comma?',0),('use_secure_cookie','0',0,'Use secure cookie, check this if you want to force SSL all the time',0),('voting_days_limit','7',0,'How many days voting widget should not be expanded after last show',0),('xmp_data','a:14:{i:0;b:0;s:4:\"host\";s:15:\"talk.google.com\";s:6:\"server\";s:9:\"gmail.com\";s:8:\"resource\";s:6:\"xmpphp\";s:4:\"port\";s:4:\"5222\";s:7:\"use_xmp\";i:0;s:8:\"username\";s:0:\"\";s:8:\"password\";s:0:\"\";s:11:\"xmp_message\";s:78:\"New chat request [{chat_id}]\r\n{messages}\r\nClick to accept a chat\r\n{url_accept}\";s:10:\"recipients\";s:0:\"\";s:20:\"xmp_accepted_message\";s:69:\"{user_name} has accepted a chat [{chat_id}]\r\n{messages}\r\n{url_accept}\";s:16:\"use_standard_xmp\";i:0;s:15:\"test_recipients\";s:0:\"\";s:21:\"test_group_recipients\";s:0:\"\";}',0,'XMP data',1); /*!40000 ALTER TABLE `lh_chat_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_file` -- DROP TABLE IF EXISTS `lh_chat_file`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_file` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `upload_name` varchar(255) NOT NULL, `size` int(11) NOT NULL, `type` varchar(255) NOT NULL, `file_path` varchar(255) NOT NULL, `extension` varchar(255) NOT NULL, `chat_id` int(11) NOT NULL, `online_user_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `date` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `chat_id` (`chat_id`), KEY `online_user_id` (`online_user_id`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_file` -- LOCK TABLES `lh_chat_file` WRITE; /*!40000 ALTER TABLE `lh_chat_file` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chat_file` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_online_user` -- DROP TABLE IF EXISTS `lh_chat_online_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_online_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `vid` varchar(50) NOT NULL, `ip` varchar(50) NOT NULL, `current_page` text NOT NULL, `page_title` varchar(250) NOT NULL, `referrer` text NOT NULL, `chat_id` int(11) NOT NULL, `invitation_seen_count` int(11) NOT NULL, `invitation_id` int(11) NOT NULL, `last_visit` int(11) NOT NULL, `first_visit` int(11) NOT NULL, `total_visits` int(11) NOT NULL, `pages_count` int(11) NOT NULL, `tt_pages_count` int(11) NOT NULL, `invitation_count` int(11) NOT NULL, `last_check_time` int(11) NOT NULL, `dep_id` int(11) NOT NULL, `user_agent` varchar(250) NOT NULL, `notes` varchar(250) NOT NULL, `user_country_code` varchar(50) NOT NULL, `user_country_name` varchar(50) NOT NULL, `visitor_tz` varchar(50) NOT NULL, `operator_message` text NOT NULL, `operator_user_proactive` varchar(100) NOT NULL, `operator_user_id` int(11) NOT NULL, `message_seen` int(11) NOT NULL, `message_seen_ts` int(11) NOT NULL, `user_active` int(11) NOT NULL, `lat` varchar(10) NOT NULL, `lon` varchar(10) NOT NULL, `city` varchar(100) NOT NULL, `reopen_chat` int(11) NOT NULL, `time_on_site` int(11) NOT NULL, `tt_time_on_site` int(11) NOT NULL, `requires_email` int(11) NOT NULL, `requires_username` int(11) NOT NULL, `requires_phone` int(11) NOT NULL, `screenshot_id` int(11) NOT NULL, `identifier` varchar(50) NOT NULL, `operation` text NOT NULL, `online_attr_system` text NOT NULL, `operation_chat` text NOT NULL, `online_attr` text NOT NULL, PRIMARY KEY (`id`), KEY `vid` (`vid`), KEY `dep_id` (`dep_id`), KEY `last_visit_dep_id` (`last_visit`,`dep_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_online_user` -- LOCK TABLES `lh_chat_online_user` WRITE; /*!40000 ALTER TABLE `lh_chat_online_user` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chat_online_user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_online_user_footprint` -- DROP TABLE IF EXISTS `lh_chat_online_user_footprint`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_online_user_footprint` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chat_id` int(11) NOT NULL, `online_user_id` int(11) NOT NULL, `page` varchar(250) NOT NULL, `vtime` varchar(250) NOT NULL, PRIMARY KEY (`id`), KEY `chat_id_vtime` (`chat_id`,`vtime`), KEY `online_user_id` (`online_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_online_user_footprint` -- LOCK TABLES `lh_chat_online_user_footprint` WRITE; /*!40000 ALTER TABLE `lh_chat_online_user_footprint` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chat_online_user_footprint` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chat_paid` -- DROP TABLE IF EXISTS `lh_chat_paid`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chat_paid` ( `id` int(11) NOT NULL AUTO_INCREMENT, `hash` varchar(250) NOT NULL, `chat_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `hash` (`hash`), KEY `chat_id` (`chat_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chat_paid` -- LOCK TABLES `lh_chat_paid` WRITE; /*!40000 ALTER TABLE `lh_chat_paid` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chat_paid` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_chatbox` -- DROP TABLE IF EXISTS `lh_chatbox`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_chatbox` ( `id` int(11) NOT NULL AUTO_INCREMENT, `identifier` varchar(50) NOT NULL, `name` varchar(100) NOT NULL, `chat_id` int(11) NOT NULL, `active` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `identifier` (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_chatbox` -- LOCK TABLES `lh_chatbox` WRITE; /*!40000 ALTER TABLE `lh_chatbox` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_chatbox` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_cobrowse` -- DROP TABLE IF EXISTS `lh_cobrowse`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_cobrowse` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chat_id` int(11) NOT NULL, `online_user_id` int(11) NOT NULL, `mtime` int(11) NOT NULL, `url` varchar(250) NOT NULL, `initialize` longtext NOT NULL, `modifications` longtext NOT NULL, `finished` tinyint(1) NOT NULL, `w` int(11) NOT NULL, `wh` int(11) NOT NULL, `x` int(11) NOT NULL, `y` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `chat_id` (`chat_id`), KEY `online_user_id` (`online_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_cobrowse` -- LOCK TABLES `lh_cobrowse` WRITE; /*!40000 ALTER TABLE `lh_cobrowse` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_cobrowse` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_departament` -- DROP TABLE IF EXISTS `lh_departament`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_departament` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `xmpp_recipients` text NOT NULL, `xmpp_group_recipients` text NOT NULL, `priority` int(11) NOT NULL, `sort_priority` int(11) NOT NULL, `department_transfer_id` int(11) NOT NULL, `transfer_timeout` int(11) NOT NULL, `disabled` int(11) NOT NULL, `hidden` int(11) NOT NULL, `delay_lm` int(11) NOT NULL, `max_active_chats` int(11) NOT NULL, `max_timeout_seconds` int(11) NOT NULL, `identifier` varchar(50) NOT NULL, `mod` tinyint(1) NOT NULL, `tud` tinyint(1) NOT NULL, `wed` tinyint(1) NOT NULL, `thd` tinyint(1) NOT NULL, `frd` tinyint(1) NOT NULL, `sad` tinyint(1) NOT NULL, `sud` tinyint(1) NOT NULL, `nc_cb_execute` tinyint(1) NOT NULL, `na_cb_execute` tinyint(1) NOT NULL, `inform_unread` tinyint(1) NOT NULL, `active_balancing` tinyint(1) NOT NULL, `visible_if_online` tinyint(1) NOT NULL, `start_hour` int(2) NOT NULL, `end_hour` int(2) NOT NULL, `inform_close` int(11) NOT NULL, `inform_unread_delay` int(11) NOT NULL, `inform_options` varchar(250) NOT NULL, `online_hours_active` tinyint(1) NOT NULL, `inform_delay` int(11) NOT NULL, `attr_int_1` int(11) NOT NULL, `attr_int_2` int(11) NOT NULL, `attr_int_3` int(11) NOT NULL, `active_chats_counter` int(11) NOT NULL, `pending_chats_counter` int(11) NOT NULL, `closed_chats_counter` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `identifier` (`identifier`), KEY `attr_int_1` (`attr_int_1`), KEY `attr_int_2` (`attr_int_2`), KEY `attr_int_3` (`attr_int_3`), KEY `disabled_hidden` (`disabled`,`hidden`), KEY `sort_priority_name` (`sort_priority`,`name`), KEY `oha_sh_eh` (`online_hours_active`,`start_hour`,`end_hour`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_departament` -- LOCK TABLES `lh_departament` WRITE; /*!40000 ALTER TABLE `lh_departament` DISABLE KEYS */; INSERT INTO `lh_departament` VALUES (3,'IT Support','','','',0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,1,0,1); /*!40000 ALTER TABLE `lh_departament` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_faq` -- DROP TABLE IF EXISTS `lh_faq`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_faq` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question` varchar(250) NOT NULL, `answer` text NOT NULL, `url` varchar(250) NOT NULL, `email` varchar(50) NOT NULL, `identifier` varchar(10) NOT NULL, `active` int(11) NOT NULL, `has_url` tinyint(1) NOT NULL, `is_wildcard` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `active` (`active`), KEY `active_url` (`active`,`url`), KEY `has_url` (`has_url`), KEY `identifier` (`identifier`), KEY `is_wildcard` (`is_wildcard`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_faq` -- LOCK TABLES `lh_faq` WRITE; /*!40000 ALTER TABLE `lh_faq` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_faq` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_forgotpasswordhash` -- DROP TABLE IF EXISTS `lh_forgotpasswordhash`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_forgotpasswordhash` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `hash` varchar(40) NOT NULL, `created` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_forgotpasswordhash` -- LOCK TABLES `lh_forgotpasswordhash` WRITE; /*!40000 ALTER TABLE `lh_forgotpasswordhash` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_forgotpasswordhash` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_group` -- DROP TABLE IF EXISTS `lh_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `disabled` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `disabled` (`disabled`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_group` -- LOCK TABLES `lh_group` WRITE; /*!40000 ALTER TABLE `lh_group` DISABLE KEYS */; INSERT INTO `lh_group` VALUES (3,'Administrators',0),(6,'Operators',0); /*!40000 ALTER TABLE `lh_group` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_grouprole` -- DROP TABLE IF EXISTS `lh_grouprole`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_grouprole` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `role_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `group_id` (`role_id`,`group_id`), KEY `group_id_primary` (`group_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_grouprole` -- LOCK TABLES `lh_grouprole` WRITE; /*!40000 ALTER TABLE `lh_grouprole` DISABLE KEYS */; INSERT INTO `lh_grouprole` VALUES (3,3,3),(6,6,6); /*!40000 ALTER TABLE `lh_grouprole` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_groupuser` -- DROP TABLE IF EXISTS `lh_groupuser`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_groupuser` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `group_id` (`group_id`), KEY `user_id` (`user_id`), KEY `group_id_2` (`group_id`,`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_groupuser` -- LOCK TABLES `lh_groupuser` WRITE; /*!40000 ALTER TABLE `lh_groupuser` DISABLE KEYS */; INSERT INTO `lh_groupuser` VALUES (6,3,3),(7,6,4); /*!40000 ALTER TABLE `lh_groupuser` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_msg` -- DROP TABLE IF EXISTS `lh_msg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_msg` ( `id` int(11) NOT NULL AUTO_INCREMENT, `msg` text NOT NULL, `time` int(11) NOT NULL, `chat_id` int(11) NOT NULL DEFAULT '0', `user_id` int(11) NOT NULL DEFAULT '0', `name_support` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `chat_id_id` (`chat_id`,`id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_msg` -- LOCK TABLES `lh_msg` WRITE; /*!40000 ALTER TABLE `lh_msg` DISABLE KEYS */; INSERT INTO `lh_msg` VALUES (2,'test',1458033724,2,0,''),(4,'Nabeel Rais has accepted the chat!',1458036167,2,-1,''),(5,'nabeel (nabeel.r@riyadhplasticfactories.com) has closed the chat!',1458036210,2,-1,''),(7,'test',1458118022,4,0,''),(10,'Nabeel Rais has accepted the chat!',1458118131,4,-1,''),(13,'hello',1458118136,4,3,'Nabeel Rais'),(16,'hi',1458118169,4,0,''); /*!40000 ALTER TABLE `lh_msg` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_question` -- DROP TABLE IF EXISTS `lh_question`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_question` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question` varchar(250) NOT NULL, `location` varchar(250) NOT NULL, `active` int(11) NOT NULL, `priority` int(11) NOT NULL, `is_voting` int(11) NOT NULL, `question_intro` text NOT NULL, `revote` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `priority` (`priority`), KEY `active_priority` (`active`,`priority`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_question` -- LOCK TABLES `lh_question` WRITE; /*!40000 ALTER TABLE `lh_question` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_question` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_question_answer` -- DROP TABLE IF EXISTS `lh_question_answer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_question_answer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ip` bigint(20) NOT NULL, `question_id` int(11) NOT NULL, `answer` text NOT NULL, `ctime` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `ip` (`ip`), KEY `question_id` (`question_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_question_answer` -- LOCK TABLES `lh_question_answer` WRITE; /*!40000 ALTER TABLE `lh_question_answer` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_question_answer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_question_option` -- DROP TABLE IF EXISTS `lh_question_option`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_question_option` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question_id` int(11) NOT NULL, `option_name` varchar(250) NOT NULL, `priority` tinyint(4) NOT NULL, PRIMARY KEY (`id`), KEY `question_id` (`question_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_question_option` -- LOCK TABLES `lh_question_option` WRITE; /*!40000 ALTER TABLE `lh_question_option` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_question_option` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_question_option_answer` -- DROP TABLE IF EXISTS `lh_question_option_answer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_question_option_answer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question_id` int(11) NOT NULL, `option_id` int(11) NOT NULL, `ctime` int(11) NOT NULL, `ip` bigint(20) NOT NULL, PRIMARY KEY (`id`), KEY `question_id` (`question_id`), KEY `ip` (`ip`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_question_option_answer` -- LOCK TABLES `lh_question_option_answer` WRITE; /*!40000 ALTER TABLE `lh_question_option_answer` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_question_option_answer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_role` -- DROP TABLE IF EXISTS `lh_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_role` -- LOCK TABLES `lh_role` WRITE; /*!40000 ALTER TABLE `lh_role` DISABLE KEYS */; INSERT INTO `lh_role` VALUES (3,'Administrators'),(6,'Operators'); /*!40000 ALTER TABLE `lh_role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_rolefunction` -- DROP TABLE IF EXISTS `lh_rolefunction`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_rolefunction` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL, `module` varchar(100) NOT NULL, `function` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `role_id` (`role_id`) ) ENGINE=InnoDB AUTO_INCREMENT=115 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_rolefunction` -- LOCK TABLES `lh_rolefunction` WRITE; /*!40000 ALTER TABLE `lh_rolefunction` DISABLE KEYS */; INSERT INTO `lh_rolefunction` VALUES (3,3,'*','*'),(6,6,'lhuser','selfedit'),(9,6,'lhuser','changeonlinestatus'),(12,6,'lhuser','changeskypenick'),(15,6,'lhuser','personalcannedmsg'),(18,6,'lhuser','change_visibility_list'),(21,6,'lhuser','see_assigned_departments'),(24,6,'lhuser','canseedepartmentstats'),(27,6,'lhchat','use'),(30,6,'lhchat','chattabschrome'),(33,6,'lhchat','singlechatwindow'),(36,6,'lhchat','allowopenremotechat'),(39,6,'lhchat','allowchattabs'),(42,6,'lhchat','use_onlineusers'),(45,6,'lhchat','take_screenshot'),(48,6,'lhfront','use'),(51,6,'lhsystem','use'),(54,6,'lhtranslation','use'),(57,6,'lhchat','allowblockusers'),(60,6,'lhsystem','generatejs'),(63,6,'lhsystem','changelanguage'),(66,6,'lhchat','allowredirect'),(69,6,'lhchat','allowtransfer'),(72,6,'lhchat','administratecannedmsg'),(75,6,'lhchat','sees_all_online_visitors'),(78,6,'lhpermission','see_permissions'),(81,6,'lhquestionary','manage_questionary'),(84,6,'lhfaq','manage_faq'),(87,6,'lhchatbox','manage_chatbox'),(90,6,'lhbrowseoffer','manage_bo'),(93,6,'lhxml','*'),(96,6,'lhcobrowse','browse'),(99,6,'lhfile','use_operator'),(102,6,'lhfile','file_delete_chat'),(105,6,'lhstatistic','use'),(108,6,'lhspeech','changedefaultlanguage'),(111,6,'lhspeech','use'),(114,6,'lhspeech','change_chat_recognition'); /*!40000 ALTER TABLE `lh_rolefunction` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_speech_chat_language` -- DROP TABLE IF EXISTS `lh_speech_chat_language`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_speech_chat_language` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chat_id` int(11) NOT NULL, `language_id` int(11) NOT NULL, `dialect` varchar(50) NOT NULL, PRIMARY KEY (`id`), KEY `chat_id` (`chat_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_speech_chat_language` -- LOCK TABLES `lh_speech_chat_language` WRITE; /*!40000 ALTER TABLE `lh_speech_chat_language` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_speech_chat_language` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_speech_language` -- DROP TABLE IF EXISTS `lh_speech_language`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_speech_language` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_speech_language` -- LOCK TABLES `lh_speech_language` WRITE; /*!40000 ALTER TABLE `lh_speech_language` DISABLE KEYS */; INSERT INTO `lh_speech_language` VALUES (1,'Afrikaans'),(2,'Bahasa Indonesia'),(3,'Bahasa Melayu'),(4,'Català'),(5,'Čeština'),(6,'Deutsch'),(7,'English'),(8,'Español'),(9,'Euskara'),(10,'Français'),(11,'Galego'),(12,'Hrvatski'),(13,'IsiZulu'),(14,'Íslenska'),(15,'Italiano'),(16,'Magyar'),(17,'Nederlands'),(18,'Norsk bokmål'),(19,'Polski'),(20,'Português'),(21,'Română'),(22,'Slovenčina'),(23,'Suomi'),(24,'Svenska'),(25,'Türkçe'),(26,'български'),(27,'Pусский'),(28,'Српски'),(29,'한국어'),(30,'中文'),(31,'日本語'),(32,'Lingua latīna'); /*!40000 ALTER TABLE `lh_speech_language` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_speech_language_dialect` -- DROP TABLE IF EXISTS `lh_speech_language_dialect`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_speech_language_dialect` ( `id` int(11) NOT NULL AUTO_INCREMENT, `language_id` int(11) NOT NULL, `lang_name` varchar(100) NOT NULL, `lang_code` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `language_id` (`language_id`) ) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_speech_language_dialect` -- LOCK TABLES `lh_speech_language_dialect` WRITE; /*!40000 ALTER TABLE `lh_speech_language_dialect` DISABLE KEYS */; INSERT INTO `lh_speech_language_dialect` VALUES (1,1,'Afrikaans','af-ZA'),(2,2,'Bahasa Indonesia','id-ID'),(3,3,'Bahasa Melayu','ms-MY'),(4,4,'Català','ca-ES'),(5,5,'Čeština','cs-CZ'),(6,6,'Deutsch','de-DE'),(7,7,'Australia','en-AU'),(8,7,'Canada','en-CA'),(9,7,'India','en-IN'),(10,7,'New Zealand','en-NZ'),(11,7,'South Africa','en-ZA'),(12,7,'United Kingdom','en-GB'),(13,7,'United States','en-US'),(14,8,'Argentina','es-AR'),(15,8,'Bolivia','es-BO'),(16,8,'Chile','es-CL'),(17,8,'Colombia','es-CO'),(18,8,'Costa Rica','es-CR'),(19,8,'Ecuador','es-EC'),(20,8,'El Salvador','es-SV'),(21,8,'España','es-ES'),(22,8,'Estados Unidos','es-US'),(23,8,'Guatemala','es-GT'),(24,8,'Honduras','es-HN'),(25,8,'México','es-MX'),(26,8,'Nicaragua','es-NI'),(27,8,'Panamá','es-PA'),(28,8,'Paraguay','es-PY'),(29,8,'Perú','es-PE'),(30,8,'Puerto Rico','es-PR'),(31,8,'República Dominicana','es-DO'),(32,8,'Uruguay','es-UY'),(33,8,'Venezuela','es-VE'),(34,9,'Euskara','eu-ES'),(35,10,'Français','fr-FR'),(36,11,'Galego','gl-ES'),(37,12,'Hrvatski','hr_HR'),(38,13,'IsiZulu','zu-ZA'),(39,14,'Íslenska','is-IS'),(40,15,'Italia','it-IT'),(41,15,'Svizzera','it-CH'),(42,16,'Magyar','hu-HU'),(43,17,'Nederlands','nl-NL'),(44,18,'Norsk bokmål','nb-NO'),(45,19,'Polski','pl-PL'),(46,20,'Brasil','pt-BR'),(47,20,'Portugal','pt-PT'),(48,21,'Română','ro-RO'),(49,22,'Slovenčina','sk-SK'),(50,23,'Suomi','fi-FI'),(51,24,'Svenska','sv-SE'),(52,25,'Türkçe','tr-TR'),(53,26,'български','bg-BG'),(54,27,'Pусский','ru-RU'),(55,28,'Српски','sr-RS'),(56,29,'한국어','ko-KR'),(57,30,'普通话 (中国大陆)','cmn-Hans-CN'),(58,30,'普通话 (香港)','cmn-Hans-HK'),(59,30,'中文 (台灣)','cmn-Hant-TW'),(60,30,'粵語 (香港)','yue-Hant-HK'),(61,31,'日本語','ja-JP'),(62,32,'Lingua latīna','la'); /*!40000 ALTER TABLE `lh_speech_language_dialect` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_transfer` -- DROP TABLE IF EXISTS `lh_transfer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_transfer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chat_id` int(11) NOT NULL, `dep_id` int(11) NOT NULL, `transfer_user_id` int(11) NOT NULL, `from_dep_id` int(11) NOT NULL, `transfer_to_user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `dep_id` (`dep_id`), KEY `transfer_user_id_dep_id` (`transfer_user_id`,`dep_id`), KEY `transfer_to_user_id` (`transfer_to_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_transfer` -- LOCK TABLES `lh_transfer` WRITE; /*!40000 ALTER TABLE `lh_transfer` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_transfer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_userdep` -- DROP TABLE IF EXISTS `lh_userdep`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_userdep` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `dep_id` int(11) NOT NULL, `last_activity` int(11) NOT NULL, `hide_online` int(11) NOT NULL, `last_accepted` int(11) NOT NULL, `active_chats` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `last_activity_hide_online_dep_id` (`last_activity`,`hide_online`,`dep_id`), KEY `dep_id` (`dep_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_userdep` -- LOCK TABLES `lh_userdep` WRITE; /*!40000 ALTER TABLE `lh_userdep` DISABLE KEYS */; INSERT INTO `lh_userdep` VALUES (3,3,0,1458381261,0,0,1); /*!40000 ALTER TABLE `lh_userdep` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_users` -- DROP TABLE IF EXISTS `lh_users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(40) NOT NULL, `password` varchar(200) NOT NULL, `email` varchar(100) NOT NULL, `time_zone` varchar(100) NOT NULL, `name` varchar(100) NOT NULL, `surname` varchar(100) NOT NULL, `filepath` varchar(200) NOT NULL, `filename` varchar(200) NOT NULL, `job_title` varchar(100) NOT NULL, `departments_ids` varchar(100) NOT NULL, `chat_nickname` varchar(100) NOT NULL, `xmpp_username` varchar(200) NOT NULL, `session_id` varchar(40) NOT NULL, `skype` varchar(50) NOT NULL, `disabled` tinyint(4) NOT NULL, `hide_online` tinyint(1) NOT NULL, `all_departments` tinyint(1) NOT NULL, `invisible_mode` tinyint(1) NOT NULL, `rec_per_req` tinyint(1) NOT NULL, `active_chats_counter` int(11) NOT NULL, `closed_chats_counter` int(11) NOT NULL, `pending_chats_counter` int(11) NOT NULL, `attr_int_1` int(11) NOT NULL, `attr_int_2` int(11) NOT NULL, `attr_int_3` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `hide_online` (`hide_online`), KEY `rec_per_req` (`rec_per_req`), KEY `email` (`email`), KEY `xmpp_username` (`xmpp_username`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_users` -- LOCK TABLES `lh_users` WRITE; /*!40000 ALTER TABLE `lh_users` DISABLE KEYS */; INSERT INTO `lh_users` VALUES (3,'nabeel','$2y$10$Oc..O1ys8KsxjcjbSmGCp.drP84LHKGBEXU6IgdPPxtHIbFi.W8mC','nabeel.r@riyadhplasticfactories.com','Asia/Riyadh','Nabeel','Rais','','','','0','Nabeel Rais','','','',0,0,1,0,0,0,0,0,0,0,0),(4,'Naqash','$2y$10$IKcxXzZcJ5E9FPaAQXW33.SkFsV/zjn1q45S5ljAOCpBU.FazYXAi','naqash@riyadhplasticfactories.com','Asia/Riyadh','Naqash','Naqash','','','Telecom','','Naqash','','','',0,0,0,0,1,0,0,0,0,0,0); /*!40000 ALTER TABLE `lh_users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_users_remember` -- DROP TABLE IF EXISTS `lh_users_remember`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_users_remember` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `mtime` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_users_remember` -- LOCK TABLES `lh_users_remember` WRITE; /*!40000 ALTER TABLE `lh_users_remember` DISABLE KEYS */; /*!40000 ALTER TABLE `lh_users_remember` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_users_setting` -- DROP TABLE IF EXISTS `lh_users_setting`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_users_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `identifier` varchar(50) NOT NULL, `value` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`,`identifier`) ) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_users_setting` -- LOCK TABLES `lh_users_setting` WRITE; /*!40000 ALTER TABLE `lh_users_setting` DISABLE KEYS */; INSERT INTO `lh_users_setting` VALUES (3,3,'user_language','en_EN'),(6,3,'enable_pending_list','1'),(9,3,'enable_active_list','1'),(12,3,'enable_close_list','0'),(15,3,'enable_unread_list','1'),(18,3,'new_user_bn','0'),(21,3,'new_user_sound','0'),(24,3,'o_department','0'),(27,3,'ouser_timeout','3600'),(30,3,'oupdate_timeout','10'),(33,3,'omax_rows','50'),(36,3,'ogroup_by','none'),(39,3,'omap_depid','0'),(42,3,'omap_mtimeout','30'),(45,3,'dwo','online_visitors,online_operators,departments_stats|pending_chats,unread_chats,transfered_chats|active_chats,closed_chats'),(48,3,'new_chat_sound','1'),(51,3,'chat_message','1'),(52,3,'show_all_pending','1'),(55,4,'show_all_pending','1'),(56,4,'user_language','en_EN'),(59,4,'enable_pending_list','1'),(62,4,'enable_active_list','1'),(65,4,'enable_close_list','0'),(68,4,'enable_unread_list','1'),(71,4,'new_user_bn','0'),(74,4,'new_user_sound','0'),(77,4,'o_department','0'),(80,4,'ouser_timeout','3600'),(83,4,'oupdate_timeout','10'),(86,4,'omax_rows','50'),(89,4,'ogroup_by','none'),(92,4,'omap_depid','0'),(95,4,'omap_mtimeout','30'),(98,4,'dwo',''),(101,4,'new_chat_sound','1'),(104,4,'chat_message','1'); /*!40000 ALTER TABLE `lh_users_setting` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lh_users_setting_option` -- DROP TABLE IF EXISTS `lh_users_setting_option`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lh_users_setting_option` ( `identifier` varchar(50) NOT NULL, `class` varchar(50) NOT NULL, `attribute` varchar(40) NOT NULL, PRIMARY KEY (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lh_users_setting_option` -- LOCK TABLES `lh_users_setting_option` WRITE; /*!40000 ALTER TABLE `lh_users_setting_option` DISABLE KEYS */; INSERT INTO `lh_users_setting_option` VALUES ('chat_message','',''),('dwo','',''),('enable_active_list','',''),('enable_close_list','',''),('enable_pending_list','',''),('enable_unread_list','',''),('new_chat_sound','',''),('new_user_bn','',''),('new_user_sound','',''),('ogroup_by','',''),('omap_depid','',''),('omap_mtimeout','',''),('omax_rows','',''),('oupdate_timeout','',''),('ouser_timeout','',''),('o_department','',''); /*!40000 ALTER TABLE `lh_users_setting_option` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'chat_' -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-11-11 8:05:11