{"id":3504,"date":"2020-08-25T08:51:57","date_gmt":"2020-08-25T14:51:57","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=3504"},"modified":"2021-02-26T15:13:17","modified_gmt":"2021-02-26T21:13:17","slug":"ubuntu-ct-18-04-instlacion-helpdesk","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=3504","title":{"rendered":"2020 Ubuntu CT 18.04: instalaci\u00f3n helpdesk  Community FAVEO 1.10.7"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Apache<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos apache<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install apache2 -y\nsystemctl start apache2\nsystemctl enable apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">PHP<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos PHP<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install -y software-properties-common\nadd-apt-repository ppa:ondrej\/php\nsudo apt update\nsudo apt upgrade\n\nsudo apt install -y php7.1 libapache2-mod-php7.1 php7.1-mysql \\\n    php7.1-cli php7.1-common php7.1-fpm php7.1-soap php7.1-gd \\\n    php7.1-json php7.1-opcache  php7.1-mbstring php7.1-zip \\\n    php7.1-bcmath php7.1-intl php7.1-xml php7.1-curl  \\\n    php7.1-imap php7.1-ldap php7.1-gmp <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos el php.ini<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/php\/7.1\/fpm\/php.ini<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>file_uploads = On\nallow_url_fopen = On\nshort_open_tag = On\nmemory_limit = 256M\ncgi.fix_pathinfo = 0\nupload_max_filesize = 100M\nmax_execution_time = 360\ndate.timezone = America\/Costa_Rica<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Habilitamos <strong>ionCube<\/strong><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\nwget http:\/\/downloads3.ioncube.com\/loader_downloads\/ioncube_loaders_lin_x86-64.tar.gz \ntar xvfz ioncube_loaders_lin_x86-64.tar.gz \nphp -i | grep extension_dir<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Esto nos retorna<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>extension_dir => \/usr\/lib\/php\/20160303 => \/usr\/lib\/php\/20160303<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora habilitamos el m\u00f3dulo con el path devuelto<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cp ioncube\/ioncube_loader_lin_7.1.so \/usr\/lib\/php\/yourpath\nsed -i '2 a zend_extension = \"\/usr\/lib\/php\/yourpath\/ioncube_loader_lin_7.1.so\"' \/etc\/php\/7.3\/apache2\/php.ini\nsed -i '2 a zend_extension = \"\/usr\/lib\/php\/yourpath\/ioncube_loader_lin_7.1.so\"' \/etc\/php\/7.3\/cli\/php.ini\nsystemctl restart apache2 \n\nX\n\ncp ioncube\/ioncube_loader_lin_7.1.so \/usr\/lib\/php\/20160303\nsed -i '2 a zend_extension = \"\/usr\/lib\/php\/20160303\/ioncube_loader_lin_7.1.so\"' \/etc\/php\/7.1\/apache2\/php.ini\nsed -i '2 a zend_extension = \"\/usr\/lib\/php\/20160303\/ioncube_loader_lin_7.1.so\"' \/etc\/php\/7.1\/cli\/php.ini\nsystemctl restart apache2 <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Podemos verificar que todo esta bien con:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>service apache2 status<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">MYSQL (Maria DB)<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y mysql-server<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Configuramos mysql<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql_secure_installation <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>RESULTADO<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>VALIDATE PASSWORD PLUGIN can be used to test passwords\nand improve security. It checks the strength of password\nand allows the users to set only those passwords which are\nsecure enough. Would you like to setup VALIDATE PASSWORD plugin?\n\nPress y|Y for Yes, any other key for No: No\nPlease set the password for root here.\n\nNew password: HB3\n\nRe-enter new password: \nBy default, a MySQL installation has an anonymous user,\nallowing anyone to log into MySQL without having to have\na user account created for them. This is intended only for\ntesting, and to make the installation go a bit smoother.\nYou should remove them before moving into a production\nenvironment.\n\nRemove anonymous users? (Press y|Y for Yes, any other key for No) : y\nSuccess.\n\n\nNormally, root should only be allowed to connect from\n'localhost'. This ensures that someone cannot guess at\nthe root password from the network.\n\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) : N\n\n ... skipping.\nBy default, MySQL comes with a database named 'test' that\nanyone can access. This is also intended only for testing,\nand should be removed before moving into a production\nenvironment.\n\n\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) : y\n - Dropping test database...\nSuccess.\n\n - Removing privileges on test database...\nSuccess.\n\nReloading the privilege tables will ensure that all changes\nmade so far will take effect immediately.\n\nReload privilege tables now? (Press y|Y for Yes, any other key for No) : y\nSuccess.\n\nAll done!<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Para poder ingresar desde wokbeach<\/li><li>Abrimos el archivo <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>bind-address           = 127.0.0.1\nX\n#bind-address           = 127.0.0.1<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Reinicamos el servicio<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>service mysql restart<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos a mysql como root<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Le damos permiso de acceso<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'HB3' WITH GRANT OPTION;\nGRANT ALL PRIVILEGES ON *.* TO 'faveo'@'%' IDENTIFIED BY 'AC2' WITH GRANT OPTION;\nFLUSH PRIVILEGES;\nexit<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Git<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos git<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install git -y<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">FAVEO<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/\nmkdir faveo\ncd faveo\ngit clone https:\/\/github.com\/ladybirdweb\/faveo-helpdesk.git\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Configurar base de datos<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Configuramos la base de datos, ingresamos como root<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos la base de datos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE faveo;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos un usuario faveo<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE USER 'faveo'@'localhost' IDENTIFIED BY 'strongpassword';\nX\nCREATE USER 'faveo'@'localhost' IDENTIFIED BY 'AC2';<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Le damos permisos de modificar la base de datos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>GRANT ALL ON faveo.* TO 'faveo'@'localhost';<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Aplicamos los cambios y salimos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>FLUSH PRIVILEGES;\nexit<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos por workbeach y corremos el script que se encuentra en faveo-helpdesk-1.10.7\/DB\/demodatabase.sql<\/li><li>O este<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>-- phpMyAdmin SQL Dump\n-- version 4.6.6deb5\n-- https:\/\/www.phpmyadmin.net\/\n--\n-- Host: localhost:3306\n-- Generation Time: Aug 16, 2018 at 04:58 PM\n-- Server version: 5.7.22-0ubuntu0.17.10.1\n-- PHP Version: 7.2.7-1+ubuntu17.10.1+deb.sury.org+1\n\nSET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\";\nSET time_zone = \"+00:00\";\n\n\n\/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *\/;\n\/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *\/;\n\/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION *\/;\n\/*!40101 SET NAMES utf8mb4 *\/;\n\n--\n-- Database: `test`\n--\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `api_settings`\n--\n\nCREATE TABLE `api_settings` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `banlist`\n--\n\nCREATE TABLE `banlist` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `ban_status` tinyint(1) NOT NULL,\n  `email_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `bar_notifications`\n--\n\nCREATE TABLE `bar_notifications` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `bar_notifications`\n--\n\nINSERT INTO `bar_notifications` (`id`, `key`, `value`, `created_at`, `updated_at`) VALUES\n(2, 'new-version', '', '2018-08-16 05:58:15', '2018-08-16 05:58:15');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `canned_response`\n--\n\nCREATE TABLE `canned_response` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `user_id` int(10) UNSIGNED NOT NULL,\n  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `message` text COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `common_settings`\n--\n\nCREATE TABLE `common_settings` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `option_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `option_value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `optional_field` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `common_settings`\n--\n\nINSERT INTO `common_settings` (`id`, `option_name`, `option_value`, `status`, `optional_field`, `created_at`, `updated_at`) VALUES\n(1, 'itil', '', '0', '', NULL, NULL),\n(2, 'ticket_token_time_duration', '1', '', '', '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(3, 'enable_rtl', '', '', '', '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(4, 'user_set_ticket_status', '', '1', '', '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(5, 'send_otp', '', '0', '', '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(6, 'email_mandatory', '', '1', '', '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(7, 'user_priority', '', '0', '', '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(8, 'dummy_data_installation', '', '1', '', NULL, NULL);\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `conditions`\n--\n\nCREATE TABLE `conditions` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `job` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `country_code`\n--\n\nCREATE TABLE `country_code` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `iso` char(2) COLLATE utf8_unicode_ci NOT NULL,\n  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,\n  `nicename` varchar(100) COLLATE utf8_unicode_ci NOT NULL,\n  `iso3` char(3) COLLATE utf8_unicode_ci NOT NULL,\n  `numcode` smallint(6) NOT NULL,\n  `phonecode` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `country_code`\n--\n\nINSERT INTO `country_code` (`id`, `iso`, `name`, `nicename`, `iso3`, `numcode`, `phonecode`, `created_at`, `updated_at`) VALUES\n(1, 'AF', 'AFGHANISTAN', 'Afghanistan', 'AFG', 4, 93, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(2, 'AL', 'ALBANIA', 'Albania', 'ALB', 8, 355, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(3, 'DZ', 'ALGERIA', 'Algeria', 'DZA', 12, 213, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(4, 'AS', 'AMERICAN SAMOA', 'American Samoa', 'ASM', 16, 1684, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(5, 'AD', 'ANDORRA', 'Andorra', 'AND', 20, 376, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(6, 'AO', 'ANGOLA', 'Angola', 'AGO', 24, 244, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(7, 'AI', 'ANGUILLA', 'Anguilla', 'AIA', 660, 1264, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(8, 'AQ', 'ANTARCTICA', 'Antarctica', 'NUL', 0, 0, '2016-12-13 03:19:33', '2016-12-13 03:19:33'),\n(9, 'AG', 'ANTIGUA AND BARBUDA', 'Antigua and Barbuda', 'ATG', 28, 1268, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(10, 'AR', 'ARGENTINA', 'Argentina', 'ARG', 32, 54, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(11, 'AM', 'ARMENIA', 'Armenia', 'ARM', 51, 374, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(12, 'AW', 'ARUBA', 'Aruba', 'ABW', 533, 297, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(13, 'AU', 'AUSTRALIA', 'Australia', 'AUS', 36, 61, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(14, 'AT', 'AUSTRIA', 'Austria', 'AUT', 40, 43, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(15, 'AZ', 'AZERBAIJAN', 'Azerbaijan', 'AZE', 31, 994, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(16, 'BS', 'BAHAMAS', 'Bahamas', 'BHS', 44, 1242, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(17, 'BH', 'BAHRAIN', 'Bahrain', 'BHR', 48, 973, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(18, 'BD', 'BANGLADESH', 'Bangladesh', 'BGD', 50, 880, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(19, 'BB', 'BARBADOS', 'Barbados', 'BRB', 52, 1246, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(20, 'BY', 'BELARUS', 'Belarus', 'BLR', 112, 375, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(21, 'BE', 'BELGIUM', 'Belgium', 'BEL', 56, 32, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(22, 'BZ', 'BELIZE', 'Belize', 'BLZ', 84, 501, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(23, 'BJ', 'BENIN', 'Benin', 'BEN', 204, 229, '2016-12-13 03:19:34', '2016-12-13 03:19:34'),\n(24, 'BM', 'BERMUDA', 'Bermuda', 'BMU', 60, 1441, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(25, 'BT', 'BHUTAN', 'Bhutan', 'BTN', 64, 975, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(26, 'BO', 'BOLIVIA', 'Bolivia', 'BOL', 68, 591, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(27, 'BA', 'BOSNIA AND HERZEGOVINA', 'Bosnia and Herzegovina', 'BIH', 70, 387, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(28, 'BW', 'BOTSWANA', 'Botswana', 'BWA', 72, 267, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(29, 'BV', 'BOUVET ISLAND', 'Bouvet Island', 'NUL', 0, 0, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(30, 'BR', 'BRAZIL', 'Brazil', 'BRA', 76, 55, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(31, 'IO', 'BRITISH INDIAN OCEAN TERRITORY', 'British Indian Ocean Territory', 'NUL', 0, 246, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(32, 'BN', 'BRUNEI DARUSSALAM', 'Brunei Darussalam', 'BRN', 96, 673, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(33, 'BG', 'BULGARIA', 'Bulgaria', 'BGR', 100, 359, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(34, 'BF', 'BURKINA FASO', 'Burkina Faso', 'BFA', 854, 226, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(35, 'BI', 'BURUNDI', 'Burundi', 'BDI', 108, 257, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(36, 'KH', 'CAMBODIA', 'Cambodia', 'KHM', 116, 855, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(37, 'CM', 'CAMEROON', 'Cameroon', 'CMR', 120, 237, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(38, 'CA', 'CANADA', 'Canada', 'CAN', 124, 1, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(39, 'CV', 'CAPE VERDE', 'Cape Verde', 'CPV', 132, 238, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(40, 'KY', 'CAYMAN ISLANDS', 'Cayman Islands', 'CYM', 136, 1345, '2016-12-13 03:19:35', '2016-12-13 03:19:35'),\n(41, 'CF', 'CENTRAL AFRICAN REPUBLIC', 'Central African Republic', 'CAF', 140, 236, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(42, 'TD', 'CHAD', 'Chad', 'TCD', 148, 235, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(43, 'CL', 'CHILE', 'Chile', 'CHL', 152, 56, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(44, 'CN', 'CHINA', 'China', 'CHN', 156, 86, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(45, 'CX', 'CHRISTMAS ISLAND', 'Christmas Island', 'NUL', 0, 61, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(46, 'CC', 'COCOS (KEELING) ISLANDS', 'Cocos (Keeling) Islands', 'NUL', 0, 672, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(47, 'CO', 'COLOMBIA', 'Colombia', 'COL', 170, 57, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(48, 'KM', 'COMOROS', 'Comoros', 'COM', 174, 269, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(49, 'CG', 'CONGO', 'Congo', 'COG', 178, 242, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(50, 'CD', 'CONGO, THE DEMOCRATIC REPUBLIC OF THE', 'Congo, the Democratic Republic of the', 'COD', 180, 242, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(51, 'CK', 'COOK ISLANDS', 'Cook Islands', 'COK', 184, 682, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(52, 'CR', 'COSTA RICA', 'Costa Rica', 'CRI', 188, 506, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(53, 'CI', 'COTE DIVOIRE', 'Cote DIvoire', 'CIV', 384, 225, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(54, 'HR', 'CROATIA', 'Croatia', 'HRV', 191, 385, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(55, 'CU', 'CUBA', 'Cuba', 'CUB', 192, 53, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(56, 'CY', 'CYPRUS', 'Cyprus', 'CYP', 196, 357, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(57, 'CZ', 'CZECH REPUBLIC', 'Czech Republic', 'CZE', 203, 420, '2016-12-13 03:19:36', '2016-12-13 03:19:36'),\n(58, 'DK', 'DENMARK', 'Denmark', 'DNK', 208, 45, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(59, 'DJ', 'DJIBOUTI', 'Djibouti', 'DJI', 262, 253, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(60, 'DM', 'DOMINICA', 'Dominica', 'DMA', 212, 1767, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(61, 'DO', 'DOMINICAN REPUBLIC', 'Dominican Republic', 'DOM', 214, 1809, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(62, 'EC', 'ECUADOR', 'Ecuador', 'ECU', 218, 593, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(63, 'EG', 'EGYPT', 'Egypt', 'EGY', 818, 20, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(64, 'SV', 'EL SALVADOR', 'El Salvador', 'SLV', 222, 503, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(65, 'GQ', 'EQUATORIAL GUINEA', 'Equatorial Guinea', 'GNQ', 226, 240, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(66, 'ER', 'ERITREA', 'Eritrea', 'ERI', 232, 291, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(67, 'EE', 'ESTONIA', 'Estonia', 'EST', 233, 372, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(68, 'ET', 'ETHIOPIA', 'Ethiopia', 'ETH', 231, 251, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(69, 'FK', 'FALKLAND ISLANDS (MALVINAS)', 'Falkland Islands (Malvinas)', 'FLK', 238, 500, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(70, 'FO', 'FAROE ISLANDS', 'Faroe Islands', 'FRO', 234, 298, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(71, 'FJ', 'FIJI', 'Fiji', 'FJI', 242, 679, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(72, 'FI', 'FINLAND', 'Finland', 'FIN', 246, 358, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(73, 'FR', 'FRANCE', 'France', 'FRA', 250, 33, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(74, 'GF', 'FRENCH GUIANA', 'French Guiana', 'GUF', 254, 594, '2016-12-13 03:19:37', '2016-12-13 03:19:37'),\n(75, 'PF', 'FRENCH POLYNESIA', 'French Polynesia', 'PYF', 258, 689, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(76, 'TF', 'FRENCH SOUTHERN TERRITORIES', 'French Southern Territories', 'NUL', 0, 0, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(77, 'GA', 'GABON', 'Gabon', 'GAB', 266, 241, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(78, 'GM', 'GAMBIA', 'Gambia', 'GMB', 270, 220, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(79, 'GE', 'GEORGIA', 'Georgia', 'GEO', 268, 995, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(80, 'DE', 'GERMANY', 'Germany', 'DEU', 276, 49, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(81, 'GH', 'GHANA', 'Ghana', 'GHA', 288, 233, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(82, 'GI', 'GIBRALTAR', 'Gibraltar', 'GIB', 292, 350, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(83, 'GR', 'GREECE', 'Greece', 'GRC', 300, 30, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(84, 'GL', 'GREENLAND', 'Greenland', 'GRL', 304, 299, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(85, 'GD', 'GRENADA', 'Grenada', 'GRD', 308, 1473, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(86, 'GP', 'GUADELOUPE', 'Guadeloupe', 'GLP', 312, 590, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(87, 'GU', 'GUAM', 'Guam', 'GUM', 316, 1671, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(88, 'GT', 'GUATEMALA', 'Guatemala', 'GTM', 320, 502, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(89, 'GN', 'GUINEA', 'Guinea', 'GIN', 324, 224, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(90, 'GW', 'GUINEA-BISSAU', 'Guinea-Bissau', 'GNB', 624, 245, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(91, 'GY', 'GUYANA', 'Guyana', 'GUY', 328, 592, '2016-12-13 03:19:38', '2016-12-13 03:19:38'),\n(92, 'HT', 'HAITI', 'Haiti', 'HTI', 332, 509, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(93, 'HM', 'HEARD ISLAND AND MCDONALD ISLANDS', 'Heard Island and Mcdonald Islands', 'NUL', 0, 0, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(94, 'VA', 'HOLY SEE (VATICAN CITY STATE)', 'Holy See (Vatican City State)', 'VAT', 336, 39, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(95, 'HN', 'HONDURAS', 'Honduras', 'HND', 340, 504, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(96, 'HK', 'HONG KONG', 'Hong Kong', 'HKG', 344, 852, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(97, 'HU', 'HUNGARY', 'Hungary', 'HUN', 348, 36, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(98, 'IS', 'ICELAND', 'Iceland', 'ISL', 352, 354, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(99, 'IN', 'INDIA', 'India', 'IND', 356, 91, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(100, 'ID', 'INDONESIA', 'Indonesia', 'IDN', 360, 62, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(101, 'IR', 'IRAN, ISLAMIC REPUBLIC OF', 'Iran, Islamic Republic of', 'IRN', 364, 98, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(102, 'IQ', 'IRAQ', 'Iraq', 'IRQ', 368, 964, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(103, 'IE', 'IRELAND', 'Ireland', 'IRL', 372, 353, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(104, 'IL', 'ISRAEL', 'Israel', 'ISR', 376, 972, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(105, 'IT', 'ITALY', 'Italy', 'ITA', 380, 39, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(106, 'JM', 'JAMAICA', 'Jamaica', 'JAM', 388, 1876, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(107, 'JP', 'JAPAN', 'Japan', 'JPN', 392, 81, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(108, 'JO', 'JORDAN', 'Jordan', 'JOR', 400, 962, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(109, 'KZ', 'KAZAKHSTAN', 'Kazakhstan', 'KAZ', 398, 7, '2016-12-13 03:19:39', '2016-12-13 03:19:39'),\n(110, 'KE', 'KENYA', 'Kenya', 'KEN', 404, 254, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(111, 'KI', 'KIRIBATI', 'Kiribati', 'KIR', 296, 686, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(112, 'KP', 'KOREA, DEMOCRATIC PEOPLES REPUBLIC OF', 'Korea, Democratic Peoples Republic of', 'PRK', 408, 850, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(113, 'KR', 'KOREA, REPUBLIC OF', 'Korea, Republic of', 'KOR', 410, 82, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(114, 'KW', 'KUWAIT', 'Kuwait', 'KWT', 414, 965, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(115, 'KG', 'KYRGYZSTAN', 'Kyrgyzstan', 'KGZ', 417, 996, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(116, 'LA', 'LAO PEOPLES DEMOCRATIC REPUBLIC', 'Lao Peoples Democratic Republic', 'LAO', 418, 856, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(117, 'LV', 'LATVIA', 'Latvia', 'LVA', 428, 371, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(118, 'LB', 'LEBANON', 'Lebanon', 'LBN', 422, 961, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(119, 'LS', 'LESOTHO', 'Lesotho', 'LSO', 426, 266, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(120, 'LR', 'LIBERIA', 'Liberia', 'LBR', 430, 231, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(121, 'LY', 'LIBYAN ARAB JAMAHIRIYA', 'Libyan Arab Jamahiriya', 'LBY', 434, 218, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(122, 'LI', 'LIECHTENSTEIN', 'Liechtenstein', 'LIE', 438, 423, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(123, 'LT', 'LITHUANIA', 'Lithuania', 'LTU', 440, 370, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(124, 'LU', 'LUXEMBOURG', 'Luxembourg', 'LUX', 442, 352, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(125, 'MO', 'MACAO', 'Macao', 'MAC', 446, 853, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(126, 'MK', 'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF', 'Macedonia, the Former Yugoslav Republic of', 'MKD', 807, 389, '2016-12-13 03:19:40', '2016-12-13 03:19:40'),\n(127, 'MG', 'MADAGASCAR', 'Madagascar', 'MDG', 450, 261, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(128, 'MW', 'MALAWI', 'Malawi', 'MWI', 454, 265, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(129, 'MY', 'MALAYSIA', 'Malaysia', 'MYS', 458, 60, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(130, 'MV', 'MALDIVES', 'Maldives', 'MDV', 462, 960, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(131, 'ML', 'MALI', 'Mali', 'MLI', 466, 223, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(132, 'MT', 'MALTA', 'Malta', 'MLT', 470, 356, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(133, 'MH', 'MARSHALL ISLANDS', 'Marshall Islands', 'MHL', 584, 692, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(134, 'MQ', 'MARTINIQUE', 'Martinique', 'MTQ', 474, 596, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(135, 'MR', 'MAURITANIA', 'Mauritania', 'MRT', 478, 222, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(136, 'MU', 'MAURITIUS', 'Mauritius', 'MUS', 480, 230, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(137, 'YT', 'MAYOTTE', 'Mayotte', 'NUL', 0, 269, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(138, 'MX', 'MEXICO', 'Mexico', 'MEX', 484, 52, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(139, 'FM', 'MICRONESIA, FEDERATED STATES OF', 'Micronesia, Federated States of', 'FSM', 583, 691, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(140, 'MD', 'MOLDOVA, REPUBLIC OF', 'Moldova, Republic of', 'MDA', 498, 373, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(141, 'MC', 'MONACO', 'Monaco', 'MCO', 492, 377, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(142, 'MN', 'MONGOLIA', 'Mongolia', 'MNG', 496, 976, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(143, 'MS', 'MONTSERRAT', 'Montserrat', 'MSR', 500, 1664, '2016-12-13 03:19:41', '2016-12-13 03:19:41'),\n(144, 'MA', 'MOROCCO', 'Morocco', 'MAR', 504, 212, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(145, 'MZ', 'MOZAMBIQUE', 'Mozambique', 'MOZ', 508, 258, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(146, 'MM', 'MYANMAR', 'Myanmar', 'MMR', 104, 95, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(147, 'NA', 'NAMIBIA', 'Namibia', 'NAM', 516, 264, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(148, 'NR', 'NAURU', 'Nauru', 'NRU', 520, 674, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(149, 'NP', 'NEPAL', 'Nepal', 'NPL', 524, 977, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(150, 'NL', 'NETHERLANDS', 'Netherlands', 'NLD', 528, 31, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(151, 'AN', 'NETHERLANDS ANTILLES', 'Netherlands Antilles', 'ANT', 530, 599, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(152, 'NC', 'NEW CALEDONIA', 'New Caledonia', 'NCL', 540, 687, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(153, 'NZ', 'NEW ZEALAND', 'New Zealand', 'NZL', 554, 64, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(154, 'NI', 'NICARAGUA', 'Nicaragua', 'NIC', 558, 505, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(155, 'NE', 'NIGER', 'Niger', 'NER', 562, 227, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(156, 'NG', 'NIGERIA', 'Nigeria', 'NGA', 566, 234, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(157, 'NU', 'NIUE', 'Niue', 'NIU', 570, 683, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(158, 'NF', 'NORFOLK ISLAND', 'Norfolk Island', 'NFK', 574, 672, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(159, 'MP', 'NORTHERN MARIANA ISLANDS', 'Northern Mariana Islands', 'MNP', 580, 1670, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(160, 'NO', 'NORWAY', 'Norway', 'NOR', 578, 47, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(161, 'OM', 'OMAN', 'Oman', 'OMN', 512, 968, '2016-12-13 03:19:42', '2016-12-13 03:19:42'),\n(162, 'PK', 'PAKISTAN', 'Pakistan', 'PAK', 586, 92, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(163, 'PW', 'PALAU', 'Palau', 'PLW', 585, 680, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(164, 'PS', 'PALESTINIAN TERRITORY, OCCUPIED', 'Palestinian Territory, Occupied', 'NUL', 0, 970, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(165, 'PA', 'PANAMA', 'Panama', 'PAN', 591, 507, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(166, 'PG', 'PAPUA NEW GUINEA', 'Papua New Guinea', 'PNG', 598, 675, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(167, 'PY', 'PARAGUAY', 'Paraguay', 'PRY', 600, 595, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(168, 'PE', 'PERU', 'Peru', 'PER', 604, 51, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(169, 'PH', 'PHILIPPINES', 'Philippines', 'PHL', 608, 63, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(170, 'PN', 'PITCAIRN', 'Pitcairn', 'PCN', 612, 0, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(171, 'PL', 'POLAND', 'Poland', 'POL', 616, 48, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(172, 'PT', 'PORTUGAL', 'Portugal', 'PRT', 620, 351, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(173, 'PR', 'PUERTO RICO', 'Puerto Rico', 'PRI', 630, 1787, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(174, 'QA', 'QATAR', 'Qatar', 'QAT', 634, 974, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(175, 'RE', 'REUNION', 'Reunion', 'REU', 638, 262, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(176, 'RO', 'ROMANIA', 'Romania', 'ROM', 642, 40, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(177, 'RU', 'RUSSIAN FEDERATION', 'Russian Federation', 'RUS', 643, 70, '2016-12-13 03:19:43', '2016-12-13 03:19:43'),\n(178, 'RW', 'RWANDA', 'Rwanda', 'RWA', 646, 250, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(179, 'SH', 'SAINT HELENA', 'Saint Helena', 'SHN', 654, 290, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(180, 'KN', 'SAINT KITTS AND NEVIS', 'Saint Kitts and Nevis', 'KNA', 659, 1869, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(181, 'LC', 'SAINT LUCIA', 'Saint Lucia', 'LCA', 662, 1758, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(182, 'PM', 'SAINT PIERRE AND MIQUELON', 'Saint Pierre and Miquelon', 'SPM', 666, 508, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(183, 'VC', 'SAINT VINCENT AND THE GRENADINES', 'Saint Vincent and the Grenadines', 'VCT', 670, 1784, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(184, 'WS', 'SAMOA', 'Samoa', 'WSM', 882, 684, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(185, 'SM', 'SAN MARINO', 'San Marino', 'SMR', 674, 378, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(186, 'ST', 'SAO TOME AND PRINCIPE', 'Sao Tome and Principe', 'STP', 678, 239, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(187, 'SA', 'SAUDI ARABIA', 'Saudi Arabia', 'SAU', 682, 966, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(188, 'SN', 'SENEGAL', 'Senegal', 'SEN', 686, 221, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(189, 'CS', 'SERBIA AND MONTENEGRO', 'Serbia and Montenegro', 'NUL', 0, 381, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(190, 'SC', 'SEYCHELLES', 'Seychelles', 'SYC', 690, 248, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(191, 'SL', 'SIERRA LEONE', 'Sierra Leone', 'SLE', 694, 232, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(192, 'SG', 'SINGAPORE', 'Singapore', 'SGP', 702, 65, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(193, 'SK', 'SLOVAKIA', 'Slovakia', 'SVK', 703, 421, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(194, 'SI', 'SLOVENIA', 'Slovenia', 'SVN', 705, 386, '2016-12-13 03:19:44', '2016-12-13 03:19:44'),\n(195, 'SB', 'SOLOMON ISLANDS', 'Solomon Islands', 'SLB', 90, 677, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(196, 'SO', 'SOMALIA', 'Somalia', 'SOM', 706, 252, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(197, 'ZA', 'SOUTH AFRICA', 'South Africa', 'ZAF', 710, 27, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(198, 'GS', 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS', 'South Georgia and the South Sandwich Islands', 'NUL', 0, 0, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(199, 'ES', 'SPAIN', 'Spain', 'ESP', 724, 34, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(200, 'LK', 'SRI LANKA', 'Sri Lanka', 'LKA', 144, 94, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(201, 'SD', 'SUDAN', 'Sudan', 'SDN', 736, 249, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(202, 'SR', 'SURINAME', 'Suriname', 'SUR', 740, 597, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(203, 'SJ', 'SVALBARD AND JAN MAYEN', 'Svalbard and Jan Mayen', 'SJM', 744, 47, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(204, 'SZ', 'SWAZILAND', 'Swaziland', 'SWZ', 748, 268, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(205, 'SE', 'SWEDEN', 'Sweden', 'SWE', 752, 46, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(206, 'CH', 'SWITZERLAND', 'Switzerland', 'CHE', 756, 41, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(207, 'SY', 'SYRIAN ARAB REPUBLIC', 'Syrian Arab Republic', 'SYR', 760, 963, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(208, 'TW', 'TAIWAN, PROVINCE OF CHINA', 'Taiwan, Province of China', 'TWN', 158, 886, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(209, 'TJ', 'TAJIKISTAN', 'Tajikistan', 'TJK', 762, 992, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(210, 'TZ', 'TANZANIA, UNITED REPUBLIC OF', 'Tanzania, United Republic of', 'TZA', 834, 255, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(211, 'TH', 'THAILAND', 'Thailand', 'THA', 764, 66, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(212, 'TL', 'TIMOR-LESTE', 'Timor-Leste', 'NUL', 0, 670, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(213, 'TG', 'TOGO', 'Togo', 'TGO', 768, 228, '2016-12-13 03:19:45', '2016-12-13 03:19:45'),\n(214, 'TK', 'TOKELAU', 'Tokelau', 'TKL', 772, 690, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(215, 'TO', 'TONGA', 'Tonga', 'TON', 776, 676, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(216, 'TT', 'TRINIDAD AND TOBAGO', 'Trinidad and Tobago', 'TTO', 780, 1868, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(217, 'TN', 'TUNISIA', 'Tunisia', 'TUN', 788, 216, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(218, 'TR', 'TURKEY', 'Turkey', 'TUR', 792, 90, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(219, 'TM', 'TURKMENISTAN', 'Turkmenistan', 'TKM', 795, 7370, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(220, 'TC', 'TURKS AND CAICOS ISLANDS', 'Turks and Caicos Islands', 'TCA', 796, 1649, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(221, 'TV', 'TUVALU', 'Tuvalu', 'TUV', 798, 688, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(222, 'UG', 'UGANDA', 'Uganda', 'UGA', 800, 256, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(223, 'UA', 'UKRAINE', 'Ukraine', 'UKR', 804, 380, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(224, 'AE', 'UNITED ARAB EMIRATES', 'United Arab Emirates', 'ARE', 784, 971, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(225, 'GB', 'UNITED KINGDOM', 'United Kingdom', 'GBR', 826, 44, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(226, 'US', 'UNITED STATES', 'United States', 'USA', 840, 1, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(227, 'UM', 'UNITED STATES MINOR OUTLYING ISLANDS', 'United States Minor Outlying Islands', 'NUL', 0, 1, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(228, 'UY', 'URUGUAY', 'Uruguay', 'URY', 858, 598, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(229, 'UZ', 'UZBEKISTAN', 'Uzbekistan', 'UZB', 860, 998, '2016-12-13 03:19:46', '2016-12-13 03:19:46'),\n(230, 'VU', 'VANUATU', 'Vanuatu', 'VUT', 548, 678, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(231, 'VE', 'VENEZUELA', 'Venezuela', 'VEN', 862, 58, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(232, 'VN', 'VIET NAM', 'Viet Nam', 'VNM', 704, 84, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(233, 'VG', 'VIRGIN ISLANDS, BRITISH', 'Virgin Islands, British', 'VGB', 92, 1284, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(234, 'VI', 'VIRGIN ISLANDS, U.S.', 'Virgin Islands, U.s.', 'VIR', 850, 1340, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(235, 'WF', 'WALLIS AND FUTUNA', 'Wallis and Futuna', 'WLF', 876, 681, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(236, 'EH', 'WESTERN SAHARA', 'Western Sahara', 'ESH', 732, 212, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(237, 'YE', 'YEMEN', 'Yemen', 'YEM', 887, 967, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(238, 'ZM', 'ZAMBIA', 'Zambia', 'ZMB', 894, 260, '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(239, 'ZW', 'ZIMBABWE', 'Zimbabwe', 'ZWE', 716, 263, '2016-12-13 03:19:47', '2016-12-13 03:19:47');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `custom_forms`\n--\n\nCREATE TABLE `custom_forms` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `formname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `custom_form_fields`\n--\n\nCREATE TABLE `custom_form_fields` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `forms_id` int(11) NOT NULL,\n  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `required` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `date_format`\n--\n\nCREATE TABLE `date_format` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `date_format`\n--\n\nINSERT INTO `date_format` (`id`, `format`) VALUES\n(1, 'dd\/mm\/yyyy'),\n(2, 'dd-mm-yyyy'),\n(3, 'dd.mm.yyyy'),\n(4, 'mm\/dd\/yyyy'),\n(5, 'mm:dd:yyyy'),\n(6, 'mm-dd-yyyy'),\n(7, 'yyyy\/mm\/dd'),\n(8, 'yyyy.mm.dd'),\n(9, 'yyyy-mm-dd');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `date_time_format`\n--\n\nCREATE TABLE `date_time_format` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `date_time_format`\n--\n\nINSERT INTO `date_time_format` (`id`, `format`) VALUES\n(1, 'd\/m\/Y H:i:s'),\n(2, 'd.m.Y H:i:s'),\n(3, 'd-m-Y H:i:s'),\n(4, 'm\/d\/Y H:i:s'),\n(5, 'm.d.Y H:i:s'),\n(6, 'm-d-Y H:i:s'),\n(7, 'Y\/m\/d H:i:s'),\n(8, 'Y.m.d H:i:s'),\n(9, 'Y-m-d H:i:s');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `department`\n--\n\nCREATE TABLE `department` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `sla` int(10) UNSIGNED DEFAULT NULL,\n  `manager` int(10) UNSIGNED DEFAULT NULL,\n  `ticket_assignment` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `outgoing_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `template_set` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `auto_ticket_response` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `auto_message_response` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `auto_response_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `recipient` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `group_access` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `department_sign` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `department`\n--\n\nINSERT INTO `department` (`id`, `name`, `type`, `sla`, `manager`, `ticket_assignment`, `outgoing_email`, `template_set`, `auto_ticket_response`, `auto_message_response`, `auto_response_email`, `recipient`, `group_access`, `department_sign`, `created_at`, `updated_at`) VALUES\n(1, 'Support', '1', 1, NULL, '', '', '', '', '', '', '', '', '', '2016-12-13 03:19:27', '2016-12-13 03:19:27'),\n(2, 'Sales', '1', 1, NULL, '', '', '', '', '', '', '', '', '', '2016-12-13 03:19:28', '2016-12-13 03:19:28'),\n(3, 'Operation', '1', 1, NULL, '', '', '', '', '', '', '', '', '', '2016-12-13 03:19:28', '2016-12-13 03:19:28');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `emails`\n--\n\nCREATE TABLE `emails` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `email_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `email_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `department` int(10) UNSIGNED DEFAULT NULL,\n  `priority` int(10) UNSIGNED DEFAULT NULL,\n  `help_topic` int(10) UNSIGNED DEFAULT NULL,\n  `user_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `fetching_host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `fetching_port` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `fetching_protocol` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `fetching_encryption` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `mailbox_protocol` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `imap_config` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `folder` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `sending_host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `sending_port` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `sending_protocol` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `sending_encryption` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `smtp_validate` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `smtp_authentication` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `auto_response` tinyint(1) NOT NULL,\n  `fetching_status` tinyint(1) NOT NULL,\n  `move_to_folder` tinyint(1) NOT NULL,\n  `delete_email` tinyint(1) NOT NULL,\n  `do_nothing` tinyint(1) NOT NULL,\n  `sending_status` tinyint(1) NOT NULL,\n  `authentication` tinyint(1) NOT NULL,\n  `header_spoofing` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `failed_jobs`\n--\n\nCREATE TABLE `failed_jobs` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `connection` text COLLATE utf8_unicode_ci NOT NULL,\n  `queue` text COLLATE utf8_unicode_ci NOT NULL,\n  `payload` longtext COLLATE utf8_unicode_ci NOT NULL,\n  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `faveo_mails`\n--\n\nCREATE TABLE `faveo_mails` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `email_id` int(11) NOT NULL,\n  `drive` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `faveo_queues`\n--\n\nCREATE TABLE `faveo_queues` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `service_id` int(11) NOT NULL,\n  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `field_values`\n--\n\nCREATE TABLE `field_values` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `field_id` int(10) UNSIGNED DEFAULT NULL,\n  `child_id` int(10) UNSIGNED DEFAULT NULL,\n  `field_key` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `field_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `groups`\n--\n\nCREATE TABLE `groups` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `group_status` tinyint(1) NOT NULL,\n  `can_create_ticket` tinyint(1) NOT NULL,\n  `can_edit_ticket` tinyint(1) NOT NULL,\n  `can_post_ticket` tinyint(1) NOT NULL,\n  `can_close_ticket` tinyint(1) NOT NULL,\n  `can_assign_ticket` tinyint(1) NOT NULL,\n  `can_transfer_ticket` tinyint(1) NOT NULL,\n  `can_delete_ticket` tinyint(1) NOT NULL,\n  `can_ban_email` tinyint(1) NOT NULL,\n  `can_manage_canned` tinyint(1) NOT NULL,\n  `can_manage_faq` tinyint(1) NOT NULL,\n  `can_view_agent_stats` tinyint(1) NOT NULL,\n  `department_access` tinyint(1) NOT NULL,\n  `admin_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `groups`\n--\n\nINSERT INTO `groups` (`id`, `name`, `group_status`, `can_create_ticket`, `can_edit_ticket`, `can_post_ticket`, `can_close_ticket`, `can_assign_ticket`, `can_transfer_ticket`, `can_delete_ticket`, `can_ban_email`, `can_manage_canned`, `can_manage_faq`, `can_view_agent_stats`, `department_access`, `admin_notes`, `created_at`, `updated_at`) VALUES\n(1, 'Group A', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, '', '2016-12-13 03:19:27', '2016-12-13 03:19:27'),\n(2, 'Group B', 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, '', '2016-12-13 03:19:27', '2016-12-13 03:19:27'),\n(3, 'Group C', 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', '2016-12-13 03:19:27', '2016-12-13 03:19:27');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `group_assign_department`\n--\n\nCREATE TABLE `group_assign_department` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `group_id` int(10) UNSIGNED NOT NULL,\n  `department_id` int(10) UNSIGNED NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `help_topic`\n--\n\nCREATE TABLE `help_topic` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `topic` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `parent_topic` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `custom_form` int(10) UNSIGNED DEFAULT NULL,\n  `department` int(10) UNSIGNED DEFAULT NULL,\n  `ticket_status` int(10) UNSIGNED DEFAULT NULL,\n  `priority` int(10) UNSIGNED DEFAULT NULL,\n  `sla_plan` int(10) UNSIGNED DEFAULT NULL,\n  `thank_page` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `ticket_num_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `type` tinyint(1) NOT NULL,\n  `auto_assign` int(10) UNSIGNED DEFAULT NULL,\n  `auto_response` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `help_topic`\n--\n\nINSERT INTO `help_topic` (`id`, `topic`, `parent_topic`, `custom_form`, `department`, `ticket_status`, `priority`, `sla_plan`, `thank_page`, `ticket_num_format`, `internal_notes`, `status`, `type`, `auto_assign`, `auto_response`, `created_at`, `updated_at`) VALUES\n(1, 'Support query', '', NULL, 1, 1, 2, 1, '', '1', '', 1, 1, NULL, 0, '2016-12-13 03:19:28', '2016-12-13 03:19:28'),\n(2, 'Sales query', '', NULL, 2, 1, 2, 1, '', '1', '', 0, 1, NULL, 0, '2016-12-13 03:19:28', '2016-12-13 03:19:28'),\n(3, 'Operational query', '', NULL, 3, 1, 2, 1, '', '1', '', 0, 1, NULL, 0, '2016-12-13 03:19:28', '2016-12-13 03:19:28');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `jobs`\n--\n\nCREATE TABLE `jobs` (\n  `id` bigint(20) UNSIGNED NOT NULL,\n  `queue` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `payload` longtext COLLATE utf8_unicode_ci NOT NULL,\n  `attempts` tinyint(3) UNSIGNED NOT NULL,\n  `reserved` tinyint(3) UNSIGNED NOT NULL,\n  `reserved_at` int(10) UNSIGNED DEFAULT NULL,\n  `available_at` int(10) UNSIGNED NOT NULL,\n  `created_at` int(10) UNSIGNED NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `kb_article`\n--\n\nCREATE TABLE `kb_article` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` text COLLATE utf8_unicode_ci NOT NULL,\n  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `description` text COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `type` tinyint(1) NOT NULL,\n  `publish_time` datetime DEFAULT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `kb_article`\n--\n\nINSERT INTO `kb_article` (`id`, `name`, `slug`, `description`, `status`, `type`, `publish_time`, `created_at`, `updated_at`) VALUES\n(1, 'DISCLAIMERS', 'disclaimers', '&lt;p&gt;ABC clothing.com does not promise that the site will be inoffensive, error-free or uninterrupted, or that it will provide specific information from use of the site or any content, search, or link on it. The site and its content are delivered on an \u201cas-is\u201d and \u201cas-available\u201d basis. ABC clothing.com cannot ensure that files you download from the site will be free of viruses or contamination or destructive features.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;Thebclothing.com disclaims all warranties, express or implied, including any implied warranties of merchantability and fitness for a particular purpose. ABC clothing.com will not be liable for any damages of any kind arising from the use of this site, including, without limitation, direct, indirect, incidental, and punitive and consequential damages.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;ABC clothing.com disclaims any and all liability for the acts, omissions, and conduct of any third-party users, ABC clothing.com users, advertisers, and\/or sponsors on the Site, in connection with the Site, or other-wise related to your use of the Site. ABC clothing.com is not responsible for the products, services, actions, or failure to act of any third party in connection with or referenced on the Site. Without limiting the fore-going, you may report the misconduct of users and\/or third-party advertisers or service and\/or product providers referenced on or included in the Site to ABC clothing.com at Support@abcclothing.com&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;ABC clothing.com may investigate the claim and take appropriate action, at its sole discretion.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;For any query kindly drop mail us on&nbsp; Support@abcclothing.com.&lt;\/p&gt;\\r\\n', 1, 1, '2016-12-13 08:54:00', '2016-12-13 03:25:28', '2016-12-13 03:25:28'),\n(2, 'CUSTOM ORDER', 'custom-order', '&lt;p&gt;You saw, you liked but couldn\u2019t see your size? We will custom make it for you.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;strong&gt;How it works:&lt;\/strong&gt;&lt;\/p&gt;\\r\\n\\r\\n&lt;ol&gt;&lt;li&gt;You liked something and want to modify a little or have something else on mind, do pen it down and share it with us on Support@abcclothing.com&lt;\/li&gt;\\r\\n  &lt;li&gt;We\u2019ll work out the price depending on how detailed or intricate you want your garment.&lt;\/li&gt;\\r\\n &lt;li&gt;An advance would be required for any customized orders.&lt;\/li&gt;\\r\\n  &lt;li&gt;Once you\u2019ve placed a deposit, we\u2019ll make you a sketch of the garment.&lt;\/li&gt;\\r\\n  &lt;li&gt;We can complete your order in 15-20 days depending on the workload.&lt;\/li&gt;\\r\\n  &lt;li&gt;We will also share some updates on the garment in case something needs to be changed.&lt;\/li&gt;\\r\\n  &lt;li&gt;We finally ship it to your given address.&lt;\/li&gt;\\r\\n&lt;\/ol&gt;&lt;p&gt;&lt;strong&gt;Note:&lt;\/strong&gt;&nbsp;No returns and refunds.&lt;\/p&gt;\\r\\n', 1, 1, '2016-12-13 08:56:00', '2016-12-13 03:26:24', '2016-12-13 03:26:24'),\n(3, 'TROUSER SKIRTS', 'trouser-skirts', '&lt;p&gt;Paris takes its fashion very, very seriously. So seriously, in fact, that wearing the wrong thing has actually caused a riot.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;In 1911, two rival Parisian couture houses launched their \\\"trouser skirts,\\\" an innovation in fashion that trod the very fixed line between the genders and seemed to promise greater flexibility for women in general. There were two different versions of the trouser skirt: One was a sort of baggy pant with a very low hanging crotch, described as \\\"a sack with holes made for the legs to go through,\\\" not unlike the fashions on high streets today, and the other a pair of the same kind of pants topped with an over-skirt, again, not unlike high street fashions of today. Both versions were launched by models at the opening day of racing season to general revulsion and disgust, but thankfully, no violence.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;It wasn\\'t until the ladies attempted to promenade their future fashions on the boulevards that the fisticuffs started\u2014at the Place de l\\'Opera, the poor models were attacked by a jeering mob of fashion Philistines, who pulled their hair, trampled their hats, and reduced them to tears. A squad of police officers on bicycles were dispatched to rescue the girls and escort them to safety.&lt;\/p&gt;\\r\\n', 1, 1, '2016-12-13 08:56:00', '2016-12-13 03:27:02', '2016-12-13 03:27:02'),\n(4, 'SECURE SHOPPING GUARANTEE', 'secure-shopping-guarantee', '&lt;p&gt;We accept all major Indian and International Credit\/ Debit Cards, and Net Banking with over 40 Banks.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;NO Cash on Delivery (as random people order and share false addresses for fun)&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;Yes, shopping at our e-store is 100% safe. All payment requests are directed to the secured PayU Payment Gateway. This gives you the highest level of protection possible whenever you use credit cards or make other financial or confidential transactions over the Internet.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;You can be assured that our e-store offers you the highest standards of security currently available on the net so as to ensure that your shopping experience is private, safe and secure.&lt;\/p&gt;\\r\\n', 1, 1, '2016-12-13 08:57:00', '2016-12-13 03:27:42', '2016-12-13 03:27:42'),\n(5, 'PRIVACY POLICY', 'privacy-policy', '&lt;p&gt;The ABC Clothing collects your basic information to service your requests. This basic information is gathered when you purchase products\/Gift card vouchers or when you sign up for e-mail notifications. Information gathered from you includes your name, mailing address, e-mail and phone number. Only when you place an order, your card information is requested and is submitted via the highest level of encryption to make sure of the greatest amount of safety and security. Reason why we gather this information:&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;strong&gt;To process your order&lt;\/strong&gt;.&lt;br \/&gt;\\r\\nShipping and Customer Service.&lt;br \/&gt;\\r\\nWe also use the information to upgrade our products, customer services, website content and navigation.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;br \/&gt;&lt;strong&gt;Internal Record Keeping&lt;\/strong&gt;.&lt;br \/&gt;\\r\\nWe at The ABC Clothing respect that you do not want your personal information shared with other companies. The information you provide shall, therefore, be only used to process your order and customer support. The ABC Clothing does not share, sell or rent customer information to any other company.&lt;\/p&gt;\\r\\n', 1, 1, '2016-12-13 08:58:00', '2016-12-13 03:28:31', '2016-12-13 03:28:31'),\n(6, ' SHIPPING POLICY', 'shipping-policy', '&lt;p&gt;We ship worldwide. We use FedEx\/DTDC for shipping.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;Standard Shipping is usually 3-7 Working days for orders within India and 12-15 Working days for International Orders, but usually faster. IF your order doesn\u2019t reach you in time, you may write to us at support@abcclothing.com&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;strong&gt;International Orders&lt;\/strong&gt;&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;For international orders, please note, your shipping will be calculated at the time of Check out only, this is a System Generated amount, based on your Zip Code, Region and Order Weight. (Approx Costs Rs.1250-1500 for 500 gms \u2013 International Shipment, subject to region)&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;strong&gt;Tracking&lt;\/strong&gt;&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;For tracking your order go to the following website, it will require your tracking ID which is sent via mail in your invoice.&lt;\/p&gt;\\r\\n', 1, 1, '2016-12-13 08:58:00', '2016-12-13 03:29:34', '2016-12-13 03:29:34'),\n(7, 'RETURN &amp; CANCELLATION', 'return-cancellation', '&lt;p&gt;Size doesn\u2019t fit you or the Apparel\/ Product is damaged\/ defective can be returned in its original packing within 7 days of delivery. Once we have verified the damage, defect and\/or error, you shall receive a replacement or a full refund for the Product in the original means of payment.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;br \/&gt;\\r\\nThe B Clothing reserves the right to refuse a payment on a return of product purchased from www.thebclothing.com if the product is not received in its original condition, or is received damaged or has been used. All products to be returned must be notified to The B Clothing within 7 Days of receipt of your order..&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;br \/&gt;\\r\\nIn case of International shipments, customers may return any products that they have a size issue with if they are willing to bear the shipping costs. In case of damaged or defective products, International customers would need to send images of the product in its original packaging to support@abcclothing.com to claim a refund. Also, for damages and defects, the customer must notify ABC Clothing within 2 days of receiving the product.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;br \/&gt;\\r\\nIn case of any returns that are approved, the purchase amount will be refunded to the customer within 15 business days upon receipt of return package, deducting any applicable return-processing fee.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;br \/&gt;\\r\\nThe following mode of refund payments will be used:&lt;br \/&gt;\\r\\n\u2022 If online payment, then amount will be refunded online.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&lt;br \/&gt;\\r\\nAny requests for cancellation of orders placed should be made immediately by contacting support@abc clothing.com. If the order has been processed or shipped, the applicable order cancellation charges will be applied.&lt;\/p&gt;\\r\\n\\r\\n&lt;p&gt;&nbsp;&lt;\/p&gt;\\r\\n', 1, 1, '2016-12-13 08:59:00', '2016-12-13 03:30:14', '2016-12-13 03:30:14');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `kb_article_relationship`\n--\n\nCREATE TABLE `kb_article_relationship` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `article_id` int(10) UNSIGNED NOT NULL,\n  `category_id` int(10) UNSIGNED NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `kb_article_relationship`\n--\n\nINSERT INTO `kb_article_relationship` (`id`, `article_id`, `category_id`, `created_at`, `updated_at`) VALUES\n(1, 1, 2, NULL, NULL),\n(2, 2, 1, NULL, NULL),\n(3, 3, 1, NULL, NULL),\n(4, 4, 1, NULL, NULL),\n(5, 5, 2, NULL, NULL),\n(6, 6, 2, NULL, NULL),\n(7, 7, 1, NULL, NULL);\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `kb_category`\n--\n\nCREATE TABLE `kb_category` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `description` text COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `parent` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `kb_category`\n--\n\nINSERT INTO `kb_category` (`id`, `name`, `slug`, `description`, `status`, `parent`, `created_at`, `updated_at`) VALUES\n(1, 'Issue Handeling', 'issue-handeling', 'These are the list of error handling issue.', 1, 0, '2016-12-13 03:23:54', '2016-12-13 03:23:54'),\n(2, 'Policy', 'policy', 'These are the policies defined by this organization.', 1, 0, '2016-12-13 03:24:38', '2016-12-13 03:24:38');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `kb_comment`\n--\n\nCREATE TABLE `kb_comment` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `article_id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `website` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `comment` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `kb_pages`\n--\n\nCREATE TABLE `kb_pages` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `visibility` tinyint(1) NOT NULL,\n  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `description` text COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `kb_settings`\n--\n\nCREATE TABLE `kb_settings` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `pagination` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `kb_settings`\n--\n\nINSERT INTO `kb_settings` (`id`, `pagination`, `created_at`, `updated_at`) VALUES\n(1, 10, '2016-12-13 03:19:32', '2016-12-13 03:19:32');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `languages`\n--\n\nCREATE TABLE `languages` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `locale` varchar(255) COLLATE utf8_unicode_ci NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `languages`\n--\n\nINSERT INTO `languages` (`id`, `name`, `locale`) VALUES\n(1, 'English', 'en'),\n(2, 'Italian', 'it'),\n(3, 'German', 'de'),\n(4, 'French', 'fr'),\n(5, 'Brazilian Portuguese', 'pt_BR'),\n(6, 'Dutch', 'nl'),\n(7, 'Spanish', 'es'),\n(8, 'Norwegian', 'nb_NO'),\n(9, 'Danish', 'da');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `login_attempts`\n--\n\nCREATE TABLE `login_attempts` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `User` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `IP` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `Attempts` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `LastLogin` datetime NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `login_attempts`\n--\n\nINSERT INTO `login_attempts` (`id`, `User`, `IP`, `Attempts`, `LastLogin`, `created_at`, `updated_at`) VALUES\n(1, '', '', '', '0000-00-00 00:00:00', '2016-12-13 03:19:53', '2016-12-13 03:19:53');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `log_notification`\n--\n\nCREATE TABLE `log_notification` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `log` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `log_notification`\n--\n\nINSERT INTO `log_notification` (`id`, `log`, `created_at`, `updated_at`) VALUES\n(1, 'NOT-1', '2016-12-13 03:19:29', '2016-12-13 03:19:29');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `mailbox_protocol`\n--\n\nCREATE TABLE `mailbox_protocol` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `mailbox_protocol`\n--\n\nINSERT INTO `mailbox_protocol` (`id`, `name`, `value`) VALUES\n(1, 'IMAP', '\/imap'),\n(2, 'IMAP+SSL', '\/imap\/ssl'),\n(3, 'IMAP+TLS', '\/imap\/tls'),\n(4, 'IMAP+SSL\/No-validate', '\/imap\/ssl\/novalidate-cert');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `mail_services`\n--\n\nCREATE TABLE `mail_services` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `short_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `mail_services`\n--\n\nINSERT INTO `mail_services` (`id`, `name`, `short_name`, `created_at`, `updated_at`) VALUES\n(1, 'SMTP', 'smtp', '2016-12-13 03:19:08', '2016-12-13 03:19:08'),\n(2, 'Php Mail', 'mail', '2016-12-13 03:19:08', '2016-12-13 03:19:08'),\n(3, 'Send Mail', 'sendmail', '2016-12-13 03:19:08', '2016-12-13 03:19:08'),\n(4, 'Mailgun', 'mailgun', '2016-12-13 03:19:08', '2016-12-13 03:19:08'),\n(5, 'Mandrill', 'mandrill', '2016-12-13 03:19:09', '2016-12-13 03:19:09'),\n(6, 'Log file', 'log', '2016-12-13 03:19:09', '2016-12-13 03:19:09');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `migrations`\n--\n\nCREATE TABLE `migrations` (\n  `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `batch` int(11) NOT NULL,\n  `id` int(11) NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `migrations`\n--\n\nINSERT INTO `migrations` (`migration`, `batch`, `id`) VALUES\n('2016_02_16_140450_create_banlist_table', 1, 1),\n('2016_02_16_140450_create_canned_response_table', 1, 2),\n('2016_02_16_140450_create_custom_form_fields_table', 1, 3),\n('2016_02_16_140450_create_custom_forms_table', 1, 4),\n('2016_02_16_140450_create_date_format_table', 1, 5),\n('2016_02_16_140450_create_date_time_format_table', 1, 6),\n('2016_02_16_140450_create_department_table', 1, 7),\n('2016_02_16_140450_create_emails_table', 1, 8),\n('2016_02_16_140450_create_group_assign_department_table', 1, 9),\n('2016_02_16_140450_create_groups_table', 1, 10),\n('2016_02_16_140450_create_help_topic_table', 1, 11),\n('2016_02_16_140450_create_kb_article_relationship_table', 1, 12),\n('2016_02_16_140450_create_kb_article_table', 1, 13),\n('2016_02_16_140450_create_kb_category_table', 1, 14),\n('2016_02_16_140450_create_kb_comment_table', 1, 15),\n('2016_02_16_140450_create_kb_pages_table', 1, 16),\n('2016_02_16_140450_create_kb_settings_table', 1, 17),\n('2016_02_16_140450_create_languages_table', 1, 18),\n('2016_02_16_140450_create_log_notification_table', 1, 19),\n('2016_02_16_140450_create_mailbox_protocol_table', 1, 20),\n('2016_02_16_140450_create_organization_table', 1, 21),\n('2016_02_16_140450_create_password_resets_table', 1, 22),\n('2016_02_16_140450_create_plugins_table', 1, 23),\n('2016_02_16_140450_create_settings_alert_notice_table', 1, 24),\n('2016_02_16_140450_create_settings_auto_response_table', 1, 25),\n('2016_02_16_140450_create_settings_company_table', 1, 26),\n('2016_02_16_140450_create_settings_email_table', 1, 27),\n('2016_02_16_140450_create_settings_ratings_table', 1, 28),\n('2016_02_16_140450_create_settings_system_table', 1, 29),\n('2016_02_16_140450_create_settings_ticket_table', 1, 30),\n('2016_02_16_140450_create_sla_plan_table', 1, 31),\n('2016_02_16_140450_create_team_assign_agent_table', 1, 32),\n('2016_02_16_140450_create_teams_table', 1, 33),\n('2016_02_16_140450_create_template_table', 1, 34),\n('2016_02_16_140450_create_ticket_attachment_table', 1, 35),\n('2016_02_16_140450_create_ticket_collaborator_table', 1, 36),\n('2016_02_16_140450_create_ticket_form_data_table', 1, 37),\n('2016_02_16_140450_create_ticket_priority_table', 1, 38),\n('2016_02_16_140450_create_ticket_source_table', 1, 39),\n('2016_02_16_140450_create_ticket_status_table', 1, 40),\n('2016_02_16_140450_create_ticket_thread_table', 1, 41),\n('2016_02_16_140450_create_tickets_table', 1, 42),\n('2016_02_16_140450_create_time_format_table', 1, 43),\n('2016_02_16_140450_create_timezone_table', 1, 44),\n('2016_02_16_140450_create_user_assign_organization_table', 1, 45),\n('2016_02_16_140450_create_users_table', 1, 46),\n('2016_02_16_140450_create_version_check_table', 1, 47),\n('2016_02_16_140450_create_widgets_table', 1, 48),\n('2016_02_16_140454_add_foreign_keys_to_canned_response_table', 1, 49),\n('2016_02_16_140454_add_foreign_keys_to_department_table', 1, 50),\n('2016_02_16_140454_add_foreign_keys_to_emails_table', 1, 51),\n('2016_02_16_140454_add_foreign_keys_to_group_assign_department_table', 1, 52),\n('2016_02_16_140454_add_foreign_keys_to_help_topic_table', 1, 53),\n('2016_02_16_140454_add_foreign_keys_to_kb_article_relationship_table', 1, 54),\n('2016_02_16_140454_add_foreign_keys_to_kb_comment_table', 1, 55),\n('2016_02_16_140454_add_foreign_keys_to_organization_table', 1, 56),\n('2016_02_16_140454_add_foreign_keys_to_settings_system_table', 1, 57),\n('2016_02_16_140454_add_foreign_keys_to_team_assign_agent_table', 1, 58),\n('2016_02_16_140454_add_foreign_keys_to_teams_table', 1, 59),\n('2016_02_16_140454_add_foreign_keys_to_ticket_attachment_table', 1, 60),\n('2016_02_16_140454_add_foreign_keys_to_ticket_collaborator_table', 1, 61),\n('2016_02_16_140454_add_foreign_keys_to_ticket_form_data_table', 1, 62),\n('2016_02_16_140454_add_foreign_keys_to_ticket_thread_table', 1, 63),\n('2016_02_16_140454_add_foreign_keys_to_tickets_table', 1, 64),\n('2016_02_16_140454_add_foreign_keys_to_user_assign_organization_table', 1, 65),\n('2016_02_16_140454_add_foreign_keys_to_users_table', 1, 66),\n('2016_03_31_061239_create_notifications_table', 1, 67),\n('2016_03_31_061534_create_notification_types_table', 1, 68),\n('2016_03_31_061740_create_user_notification_table', 1, 69),\n('2016_04_18_115852_create_workflow_name_table', 1, 70),\n('2016_04_18_115900_create_workflow_rule_table', 1, 71),\n('2016_04_18_115908_create_workflow_action_table', 1, 72),\n('2016_05_10_102423_create_country_code_table', 1, 73),\n('2016_05_10_102604_create_bar_notifications_table', 1, 74),\n('2016_05_11_105244_create_api_settings_table', 1, 75),\n('2016_05_19_055008_create_workflow_close_table', 1, 76),\n('2016_06_02_072210_create_common_settings_table', 1, 77),\n('2016_06_02_074913_create_login_attempts_table', 1, 78),\n('2016_06_02_080005_create_ratings_table', 1, 79),\n('2016_06_02_081020_create_rating_ref_table', 1, 80),\n('2016_06_02_090225_create_settings_security_table', 1, 81),\n('2016_06_02_090628_create_templates_table', 1, 82),\n('2016_06_02_094409_create_template_sets_table', 1, 83),\n('2016_06_02_094420_create_template_types_table', 1, 84),\n('2016_06_02_095357_create_ticket_token_table', 1, 85),\n('2016_06_28_141613_version1079table', 1, 86),\n('2016_07_02_051247_create_jobs_table', 1, 87),\n('2016_07_02_051439_create_failed_jobs_table', 1, 88),\n('2016_07_19_071910_create_field_values_table', 1, 89),\n('2016_07_26_084458_create_faveo_mails_table', 1, 90),\n('2016_07_26_090201_create_faveo_queues_table', 1, 91),\n('2016_07_26_094753_create_mail_services_table', 1, 92),\n('2016_07_26_095020_create_queue_services_table', 1, 93),\n('2016_07_29_113012_create_conditions_table', 1, 94),\n('2016_08_08_095744_create_social_media_table', 1, 95),\n('2016_08_12_104410_create_user_additional_infos_table', 1, 96),\n('2016_08_16_104539_alter_ticket_source_table', 1, 97),\n('2016_11_30_122809_alter_attachment_table', 2, 98);\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `notifications`\n--\n\nCREATE TABLE `notifications` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `model_id` int(11) NOT NULL,\n  `userid_created` int(11) NOT NULL,\n  `type_id` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `notifications`\n--\n\nINSERT INTO `notifications` (`id`, `model_id`, `userid_created`, `type_id`, `created_at`, `updated_at`) VALUES\n(1, 1, 4, 3, '2016-12-13 03:45:19', '2016-12-13 03:45:19'),\n(2, 2, 5, 3, '2016-12-13 03:50:56', '2016-12-13 03:50:56'),\n(3, 3, 6, 3, '2016-12-13 03:55:55', '2016-12-13 03:55:55'),\n(4, 4, 7, 3, '2016-12-13 03:58:40', '2016-12-13 03:58:40'),\n(5, 4, 1, 2, '2016-12-13 04:01:55', '2016-12-13 04:01:55'),\n(6, 5, 7, 3, '2016-12-13 04:02:49', '2016-12-13 04:02:49'),\n(7, 6, 5, 3, '2016-12-13 04:03:44', '2016-12-13 04:03:44');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `notification_types`\n--\n\nCREATE TABLE `notification_types` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `icon_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `notification_types`\n--\n\nINSERT INTO `notification_types` (`id`, `message`, `type`, `icon_class`, `created_at`, `updated_at`) VALUES\n(1, 'A new user is registered', 'registration', 'fa fa-user', '2016-12-13 03:19:14', '2016-12-13 03:19:14'),\n(2, 'You have a new reply on this ticket', 'reply', 'fa fa-envelope', '2016-12-13 03:19:14', '2016-12-13 03:19:14'),\n(3, 'A new ticket has been created', 'new_ticket', 'fa fa-envelope', '2016-12-13 03:19:14', '2016-12-13 03:19:14');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `organization`\n--\n\nCREATE TABLE `organization` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `website` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `head` int(10) UNSIGNED DEFAULT NULL,\n  `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `password_resets`\n--\n\nCREATE TABLE `password_resets` (\n  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `plugins`\n--\n\nCREATE TABLE `plugins` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `queue_services`\n--\n\nCREATE TABLE `queue_services` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `short_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `queue_services`\n--\n\nINSERT INTO `queue_services` (`id`, `name`, `short_name`, `status`, `created_at`, `updated_at`) VALUES\n(1, 'Sync', 'sync', 1, '2016-12-13 03:19:09', '2016-12-13 03:19:09'),\n(2, 'Database', 'database', 0, '2016-12-13 03:19:09', '2016-12-13 03:19:09'),\n(3, 'Beanstalkd', 'beanstalkd', 0, '2016-12-13 03:19:09', '2016-12-13 03:19:09'),\n(4, 'SQS', 'sqs', 0, '2016-12-13 03:19:09', '2016-12-13 03:19:09'),\n(5, 'Iron', 'iron', 0, '2016-12-13 03:19:09', '2016-12-13 03:19:09'),\n(6, 'Redis', 'redis', 0, '2016-12-13 03:19:09', '2016-12-13 03:19:09');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ratings`\n--\n\nCREATE TABLE `ratings` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `display_order` int(11) NOT NULL,\n  `allow_modification` int(11) NOT NULL,\n  `rating_scale` int(11) NOT NULL,\n  `rating_area` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `restrict` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `ratings`\n--\n\nINSERT INTO `ratings` (`id`, `name`, `display_order`, `allow_modification`, `rating_scale`, `rating_area`, `restrict`, `created_at`, `updated_at`) VALUES\n(1, 'OverAll Satisfaction', 1, 1, 5, 'Helpdesk Area', '', '2016-12-13 03:19:53', '2016-12-13 03:19:53'),\n(2, 'Reply Rating', 1, 1, 5, 'Comment Area', '', '2016-12-13 03:19:53', '2016-12-13 03:19:53');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `rating_ref`\n--\n\nCREATE TABLE `rating_ref` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `rating_id` int(11) NOT NULL,\n  `ticket_id` int(11) NOT NULL,\n  `thread_id` int(11) NOT NULL,\n  `rating_value` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_alert_notice`\n--\n\nCREATE TABLE `settings_alert_notice` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `ticket_status` tinyint(1) NOT NULL,\n  `ticket_admin_email` tinyint(1) NOT NULL,\n  `ticket_department_manager` tinyint(1) NOT NULL,\n  `ticket_department_member` tinyint(1) NOT NULL,\n  `ticket_organization_accmanager` tinyint(1) NOT NULL,\n  `message_status` tinyint(1) NOT NULL,\n  `message_last_responder` tinyint(1) NOT NULL,\n  `message_assigned_agent` tinyint(1) NOT NULL,\n  `message_department_manager` tinyint(1) NOT NULL,\n  `message_organization_accmanager` tinyint(1) NOT NULL,\n  `internal_status` tinyint(1) NOT NULL,\n  `internal_last_responder` tinyint(1) NOT NULL,\n  `internal_assigned_agent` tinyint(1) NOT NULL,\n  `internal_department_manager` tinyint(1) NOT NULL,\n  `assignment_status` tinyint(1) NOT NULL,\n  `assignment_assigned_agent` tinyint(1) NOT NULL,\n  `assignment_team_leader` tinyint(1) NOT NULL,\n  `assignment_team_member` tinyint(1) NOT NULL,\n  `transfer_status` tinyint(1) NOT NULL,\n  `transfer_assigned_agent` tinyint(1) NOT NULL,\n  `transfer_department_manager` tinyint(1) NOT NULL,\n  `transfer_department_member` tinyint(1) NOT NULL,\n  `overdue_status` tinyint(1) NOT NULL,\n  `overdue_assigned_agent` tinyint(1) NOT NULL,\n  `overdue_department_manager` tinyint(1) NOT NULL,\n  `overdue_department_member` tinyint(1) NOT NULL,\n  `system_error` tinyint(1) NOT NULL,\n  `sql_error` tinyint(1) NOT NULL,\n  `excessive_failure` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `settings_alert_notice`\n--\n\nINSERT INTO `settings_alert_notice` (`id`, `ticket_status`, `ticket_admin_email`, `ticket_department_manager`, `ticket_department_member`, `ticket_organization_accmanager`, `message_status`, `message_last_responder`, `message_assigned_agent`, `message_department_manager`, `message_organization_accmanager`, `internal_status`, `internal_last_responder`, `internal_assigned_agent`, `internal_department_manager`, `assignment_status`, `assignment_assigned_agent`, `assignment_team_leader`, `assignment_team_member`, `transfer_status`, `transfer_assigned_agent`, `transfer_department_manager`, `transfer_department_member`, `overdue_status`, `overdue_assigned_agent`, `overdue_department_manager`, `overdue_department_member`, `system_error`, `sql_error`, `excessive_failure`, `created_at`, `updated_at`) VALUES\n(1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2016-12-13 03:19:29', '2016-12-13 03:19:29');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_auto_response`\n--\n\nCREATE TABLE `settings_auto_response` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `new_ticket` tinyint(1) NOT NULL,\n  `agent_new_ticket` tinyint(1) NOT NULL,\n  `submitter` tinyint(1) NOT NULL,\n  `participants` tinyint(1) NOT NULL,\n  `overlimit` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `settings_auto_response`\n--\n\nINSERT INTO `settings_auto_response` (`id`, `new_ticket`, `agent_new_ticket`, `submitter`, `participants`, `overlimit`, `created_at`, `updated_at`) VALUES\n(1, 1, 1, 0, 0, 0, '2016-12-13 03:19:29', '2016-12-13 03:19:29');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_company`\n--\n\nCREATE TABLE `settings_company` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `company_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `website` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `landing_page` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `offline_page` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `thank_page` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `logo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `use_logo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `settings_company`\n--\n\nINSERT INTO `settings_company` (`id`, `company_name`, `website`, `phone`, `address`, `landing_page`, `offline_page`, `thank_page`, `logo`, `use_logo`, `created_at`, `updated_at`) VALUES\n(1, 'ABC Clothing', '', '', '', '', '', '', '', '0', '2016-12-13 03:19:29', '2016-12-13 03:30:41');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_email`\n--\n\nCREATE TABLE `settings_email` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `template` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `sys_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `alert_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `admin_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `mta` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `email_fetching` tinyint(1) NOT NULL,\n  `notification_cron` tinyint(1) NOT NULL,\n  `strip` tinyint(1) NOT NULL,\n  `separator` tinyint(1) NOT NULL,\n  `all_emails` tinyint(1) NOT NULL,\n  `email_collaborator` tinyint(1) NOT NULL,\n  `attachment` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `settings_email`\n--\n\nINSERT INTO `settings_email` (`id`, `template`, `sys_email`, `alert_email`, `admin_email`, `mta`, `email_fetching`, `notification_cron`, `strip`, `separator`, `all_emails`, `email_collaborator`, `attachment`, `created_at`, `updated_at`) VALUES\n(1, 'default', NULL, '', '', '', 1, 1, 0, 0, 1, 1, 1, '2016-12-13 03:19:29', '2016-12-13 03:19:29');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_ratings`\n--\n\nCREATE TABLE `settings_ratings` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `rating_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `publish` int(11) NOT NULL,\n  `modify` int(11) NOT NULL,\n  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_security`\n--\n\nCREATE TABLE `settings_security` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `lockout_message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `backlist_offender` int(11) NOT NULL,\n  `backlist_threshold` int(11) NOT NULL,\n  `lockout_period` int(11) NOT NULL,\n  `days_to_keep_logs` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `settings_security`\n--\n\nINSERT INTO `settings_security` (`id`, `lockout_message`, `backlist_offender`, `backlist_threshold`, `lockout_period`, `days_to_keep_logs`, `created_at`, `updated_at`) VALUES\n(1, 'You have been locked out of application due to too many failed login attempts.', 0, 15, 15, 0, '2016-12-13 03:19:47', '2016-12-13 03:19:47');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_system`\n--\n\nCREATE TABLE `settings_system` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `department` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `page_size` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `log_level` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `purge_log` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `api_enable` int(11) NOT NULL,\n  `api_key_mandatory` int(11) NOT NULL,\n  `api_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `name_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `time_farmat` int(10) UNSIGNED DEFAULT NULL,\n  `date_format` int(10) UNSIGNED DEFAULT NULL,\n  `date_time_format` int(10) UNSIGNED DEFAULT NULL,\n  `day_date_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `time_zone` int(10) UNSIGNED DEFAULT NULL,\n  `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `settings_system`\n--\n\nINSERT INTO `settings_system` (`id`, `status`, `url`, `name`, `department`, `page_size`, `log_level`, `purge_log`, `api_enable`, `api_key_mandatory`, `api_key`, `name_format`, `time_farmat`, `date_format`, `date_time_format`, `day_date_time`, `time_zone`, `content`, `version`, `created_at`, `updated_at`) VALUES\n(1, 1, '', '', '1', '', '', '', 0, 0, '', '', NULL, NULL, 1, '', 32, '', '1.10.7', '2016-12-13 03:19:29', '2016-12-13 03:19:29');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `settings_ticket`\n--\n\nCREATE TABLE `settings_ticket` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `num_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `num_sequence` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `priority` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `sla` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `help_topic` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `max_open_ticket` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `collision_avoid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `lock_ticket_frequency` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',\n  `captcha` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `claim_response` tinyint(1) NOT NULL,\n  `assigned_ticket` tinyint(1) NOT NULL,\n  `answered_ticket` tinyint(1) NOT NULL,\n  `agent_mask` tinyint(1) NOT NULL,\n  `html` tinyint(1) NOT NULL,\n  `client_update` tinyint(1) NOT NULL,\n  `max_file_size` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `settings_ticket`\n--\n\nINSERT INTO `settings_ticket` (`id`, `num_format`, `num_sequence`, `priority`, `sla`, `help_topic`, `max_open_ticket`, `collision_avoid`, `lock_ticket_frequency`, `captcha`, `status`, `claim_response`, `assigned_ticket`, `answered_ticket`, `agent_mask`, `html`, `client_update`, `max_file_size`, `created_at`, `updated_at`) VALUES\n(1, '$$$$-####-####', 'sequence', '1', '2', '1', '', '2', '0', '', 1, 0, 0, 0, 0, 0, 0, 0, '2016-12-13 03:19:29', '2016-12-13 03:19:29');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `sla_plan`\n--\n\nCREATE TABLE `sla_plan` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `grace_period` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `admin_note` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `transient` tinyint(1) NOT NULL,\n  `ticket_overdue` tinyint(1) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `sla_plan`\n--\n\nINSERT INTO `sla_plan` (`id`, `name`, `grace_period`, `admin_note`, `status`, `transient`, `ticket_overdue`, `created_at`, `updated_at`) VALUES\n(1, 'Sla 1', '6 Hours', '', 1, 0, 0, '2016-12-13 03:19:25', '2016-12-13 03:19:25'),\n(2, 'Sla 2', '12 Hours', '', 1, 0, 0, '2016-12-13 03:19:25', '2016-12-13 03:19:25'),\n(3, 'Sla 3', '24 Hours', '', 1, 0, 0, '2016-12-13 03:19:25', '2016-12-13 03:19:25');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `social_media`\n--\n\nCREATE TABLE `social_media` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `provider` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `teams`\n--\n\nCREATE TABLE `teams` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `team_lead` int(10) UNSIGNED DEFAULT NULL,\n  `assign_alert` tinyint(1) NOT NULL,\n  `admin_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `teams`\n--\n\nINSERT INTO `teams` (`id`, `name`, `status`, `team_lead`, `assign_alert`, `admin_notes`, `created_at`, `updated_at`) VALUES\n(1, 'Level 1 Support', 1, NULL, 0, '', '2016-12-13 03:19:27', '2016-12-13 03:19:27'),\n(2, 'Level 2 Support', 0, NULL, 0, '', '2016-12-13 03:19:27', '2016-12-13 03:19:27'),\n(3, 'Developer', 0, NULL, 0, '', '2016-12-13 03:19:27', '2016-12-13 03:19:27');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `team_assign_agent`\n--\n\nCREATE TABLE `team_assign_agent` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `team_id` int(10) UNSIGNED DEFAULT NULL,\n  `agent_id` int(10) UNSIGNED DEFAULT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `team_assign_agent`\n--\n\nINSERT INTO `team_assign_agent` (`id`, `team_id`, `agent_id`, `created_at`, `updated_at`) VALUES\n(1, 1, 2, NULL, NULL),\n(2, 1, 3, NULL, NULL);\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `template`\n--\n\nCREATE TABLE `template` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` tinyint(1) NOT NULL,\n  `template_set_to_clone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `language` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `internal_note` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `templates`\n--\n\nCREATE TABLE `templates` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `variable` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `type` int(11) NOT NULL,\n  `subject` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `message` text COLLATE utf8_unicode_ci NOT NULL,\n  `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `set_id` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `templates`\n--\n\nINSERT INTO `templates` (`id`, `name`, `variable`, `type`, `subject`, `message`, `description`, `set_id`, `created_at`, `updated_at`) VALUES\n(1, 'This template is for sending notice to agent when ticket is assigned to them', '0', 1, '', '&lt;div&gt;Hello {!!$ticket_agent_name!!},&lt;br \/&gt;&lt;br \/&gt;&lt;b&gt;Ticket No:&lt;\/b&gt; {!!$ticket_number!!}&lt;br \/&gt;Has been assigned to you by {!!$ticket_assigner!!} &lt;br \/&gt; Please check and resppond on the ticket.&lt;br \/&gt; Link: {!!$ticket_link!!}&lt;br \/&gt;&lt;br \/&gt;Thank You&lt;br \/&gt;Kind Regards,&lt;br \/&gt; {!!$system_from!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:50', '2016-12-13 03:19:50'),\n(2, 'This template is for sending notice to client with ticket link to check ticket without logging in to system', '1', 2, 'Check your Ticket', '&lt;div&gt;Hello {!!$user!!},&lt;br \/&gt;&lt;br \/&gt;Click the link below to view your requested ticket&lt;br \/&gt; {!!$ticket_link_with_number!!}&lt;br \/&gt;&lt;br \/&gt;Kind Regards,&lt;br \/&gt; {!!$system_from!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:50', '2016-12-13 03:19:50'),\n(3, 'This template is for sending notice to client when ticket status is changed to close', '0', 3, '', '&lt;div&gt;Hello,&lt;br \/&gt;&lt;br \/&gt;This message is regarding your ticket ID {!!$ticket_number!!}. We are changing the status of this ticket to \\\"Closed\\\" as the issue appears to be resolved.&lt;br \/&gt;&lt;br \/&gt;Thank you&lt;br \/&gt;Kind regards,&lt;br \/&gt; {!!$system_from!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:50', '2016-12-13 03:19:50'),\n(4, 'This template is for sending notice to client on successful ticket creation', '0', 4, '', '&lt;div&gt;&lt;span&gt;Hello {!!$user!!}&lt;br \/&gt;&lt;br \/&gt;&lt;\/span&gt;&lt;span&gt;Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.&lt;br \/&gt;&lt;br \/&gt;&lt;\/span&gt;&lt;span&gt;&lt;b&gt;Ticket ID:&lt;\/b&gt; {!!$ticket_number!!}&nbsp;&lt;br \/&gt;&lt;br \/&gt;&lt;\/span&gt;&lt;span&gt; {!!$department_sign!!}&lt;br \/&gt;&lt;\/span&gt;You can check the status of or update this ticket online at: {!!$system_link!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:51', '2016-12-13 03:19:51'),\n(5, 'This template is for sending notice to agent on new ticket creation', '0', 5, '', '&lt;div&gt;Hello {!!$ticket_agent_name!!},&lt;br \/&gt;&lt;br \/&gt;New ticket {!!$ticket_number!!}created&nbsp;&lt;br \/&gt;&lt;br \/&gt;&lt;b&gt;From&lt;\/b&gt;&lt;br \/&gt;&lt;b&gt;Name:&lt;\/b&gt; {!!$ticket_client_name!!}&nbsp; &nbsp;&lt;br \/&gt;&lt;b&gt;E-mail:&lt;\/b&gt; {!!$ticket_client_email!!}&lt;br \/&gt;&lt;br \/&gt; {!!$content!!}&lt;br \/&gt;&lt;br \/&gt;Kind Regards,&lt;br \/&gt; {!!$system_from!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:51', '2016-12-13 03:19:51'),\n(6, 'This template is for sending notice to client on new ticket created by agent in name of client', '0', 6, '', '&lt;div&gt; {!!$content!!}&lt;br \/&gt;&lt;br \/&gt; {!!$agent_sign!!}&lt;br \/&gt;&lt;br \/&gt;You can check the status of or update this ticket online at: {!!$system_link!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:51', '2016-12-13 03:19:51'),\n(7, 'This template is for sending notice to client on new registration during new ticket creation for un registered clients', '1', 7, 'Registration Confirmation', '&lt;p&gt;Hello {!!$user!!},&nbsp;&lt;\/p&gt;&lt;p&gt;This email is confirmation that you are now registered at our helpdesk.&lt;\/p&gt;&lt;p&gt;&lt;b&gt;Registered Email:&lt;\/b&gt; {!!$email_address!!}&lt;\/p&gt;&lt;p&gt;&lt;b&gt;Password:&lt;\/b&gt; {!!$user_password!!}&lt;\/p&gt;&lt;p&gt;You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}&lt;\/p&gt;&lt;p&gt;Thank You.&lt;\/p&gt;&lt;p&gt;Kind Regards,&lt;\/p&gt;&lt;p&gt; {!!$system_from!!}&nbsp;&lt;\/p&gt;', '', 1, '2016-12-13 03:19:51', '2016-12-13 03:19:51'),\n(8, 'This template is for sending notice to any user about reset password option', '1', 8, 'Reset your Password', 'Hello {!!$user!!},&lt;br \/&gt;&lt;br \/&gt;You asked to reset your password. To do so, please click this link:&lt;br \/&gt;&lt;br \/&gt; {!!$password_reset_link!!}&lt;br \/&gt;&lt;br \/&gt;This will let you change your password to something new. If you didn\\'t ask for this, don\\'t worry, we\\'ll keep your password safe.&lt;br \/&gt;&lt;br \/&gt;Thank You.&lt;br \/&gt;&lt;br \/&gt;Kind Regards,&lt;br \/&gt; {!!$system_from!!}', '', 1, '2016-12-13 03:19:51', '2016-12-13 03:19:51'),\n(9, 'This template is for sending notice to client when a reply made to his\/her ticket', '0', 9, '', '&lt;span&gt;&lt;\/span&gt;&lt;div&gt;&lt;span&gt;&lt;\/span&gt;&lt;p&gt; {!!$content!!}&lt;br \/&gt;&lt;\/p&gt;&lt;p&gt; {!!$agent_sign!!}&nbsp;&lt;\/p&gt;&lt;p&gt;&lt;b&gt;Ticket Details&lt;\/b&gt;&lt;\/p&gt;&lt;p&gt;&lt;b&gt;Ticket ID:&lt;\/b&gt; {!!$ticket_number!!}&lt;\/p&gt;&lt;\/div&gt;', '', 1, '2016-12-13 03:19:51', '2016-12-13 03:19:51'),\n(10, 'This template is for sending notice to agent when ticket reply is made by client on a ticket', '0', 10, '', '&lt;div&gt;Hello {!!$ticket_agent_name!!},&lt;br \/&gt;&lt;b&gt;&lt;br \/&gt;&lt;\/b&gt;A reply been made to ticket {!!$ticket_number!!}&lt;br \/&gt;&lt;b&gt;&lt;br \/&gt;&lt;\/b&gt;&lt;b&gt;From&lt;br \/&gt;&lt;\/b&gt;&lt;b&gt;Name: &lt;\/b&gt;{!!$ticket_client_name!!}&lt;br \/&gt;&lt;b&gt;E-mail: &lt;\/b&gt;{!!$ticket_client_email!!}&lt;br \/&gt;&lt;b&gt;&lt;br \/&gt;&lt;\/b&gt; {!!$content!!}&lt;br \/&gt;&lt;b&gt;&lt;br \/&gt;&lt;\/b&gt;Kind Regards,&lt;br \/&gt; {!!$system_from!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:51', '2016-12-13 03:19:51'),\n(11, 'This template is for sending notice to client about registration confirmation link', '1', 11, 'Verify your email address', '&lt;p&gt;Hello {!!$user!!},&nbsp;&lt;\/p&gt;&lt;p&gt;This email is confirmation that you are now registered at our helpdesk.&lt;\/p&gt;&lt;p&gt;&lt;b&gt;Registered Email:&lt;\/b&gt; {!!$email_address!!}&lt;\/p&gt;&lt;p&gt;Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}&lt;\/p&gt;&lt;p&gt;Thank You.&lt;\/p&gt;&lt;p&gt;Kind Regards,&lt;\/p&gt;&lt;p&gt; {!!$system_from!!}&nbsp;&lt;\/p&gt;', '', 1, '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(12, 'This template is for sending notice to team when ticket is assigned to team', '1', 12, '', '&lt;div&gt;Hello {!!$ticket_agent_name!!},&lt;br \/&gt;&lt;br \/&gt;&lt;b&gt;Ticket No:&lt;\/b&gt; {!!$ticket_number!!}&lt;br \/&gt;Has been assigned to your team : {!!$team!!} by {!!$ticket_assigner!!}&nbsp;&lt;br \/&gt;&lt;br \/&gt;Thank You&lt;br \/&gt;Kind Regards,&lt;br \/&gt;{!!$system_from!!}&lt;\/div&gt;', '', 1, '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(13, 'This template is for sending notice to client when password is changed', '1', 13, 'Verify your email address', 'Hello {!!$user!!},&lt;br \/&gt;&lt;br \/&gt;Your password is successfully changed.Your new password is : {!!$user_password!!}&lt;br \/&gt;&lt;br \/&gt;Thank You.&lt;br \/&gt;&lt;br \/&gt;Kind Regards,&lt;br \/&gt; {!!$system_from!!}', '', 1, '2016-12-13 03:19:52', '2016-12-13 03:19:52'),\n(14, 'This template is to notify users when their tickets are merged.', '1', 14, 'Your tickets have been merged.', '&lt;p&gt;Hello {!!$user!!},&lt;br \/&gt;&amp;nbsp;&lt;\/p&gt;&lt;p&gt;Your ticket(s) with ticket number {!!$merged_ticket_numbers!!} have been closed and&amp;nbsp;merged with &lt;a href=\\\"{!!$ticket_link!!}\\\"&gt;{!!$ticket_number!!}&lt;\/a&gt;.&amp;nbsp;&lt;\/p&gt;&lt;p&gt;Possible reasons for merging tickets&lt;\/p&gt;&lt;ul&gt;&lt;li&gt;Tickets are duplicate&lt;\/li&lt;li&gt;Tickets state&amp;nbsp;the same issue&lt;\/li&gt;&lt;li&gt;Another member from your organization has created a ticket for the same issue&lt;\/li&gt;&lt;\/ul&gt;&lt;p&gt;&lt;a href=\\\"{!!$system_link!!}\\\"&gt;Click here&lt;\/a&gt; to login to your account and check your tickets.&lt;\/p&gt;&lt;p&gt;Regards,&lt;\/p&gt;&lt;p&gt;{!!$system_from!!}&lt;\/p&gt;', '', 1, '2017-01-02 00:20:12', '2017-01-02 00:31:50');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `template_sets`\n--\n\nCREATE TABLE `template_sets` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `active` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `template_sets`\n--\n\nINSERT INTO `template_sets` (`id`, `name`, `active`, `created_at`, `updated_at`) VALUES\n(1, 'default', 1, '2016-12-13 03:19:47', '2016-12-13 03:19:47');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `template_types`\n--\n\nCREATE TABLE `template_types` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `template_types`\n--\n\nINSERT INTO `template_types` (`id`, `name`, `created_at`, `updated_at`) VALUES\n(1, 'assign-ticket', '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(2, 'check-ticket', '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(3, 'close-ticket', '2016-12-13 03:19:47', '2016-12-13 03:19:47'),\n(4, 'create-ticket', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(5, 'create-ticket-agent', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(6, 'create-ticket-by-agent', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(7, 'registration-notification', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(8, 'reset-password', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(9, 'ticket-reply', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(10, 'ticket-reply-agent', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(11, 'registration', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(12, 'team_assign_ticket', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(13, 'reset_new_password', '2016-12-13 03:19:48', '2016-12-13 03:19:48'),\n(14, 'merge-ticket-notification', '2017-01-02 00:20:11', '2017-01-02 00:20:11');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `tickets`\n--\n\nCREATE TABLE `tickets` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `ticket_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `user_id` int(10) UNSIGNED DEFAULT NULL,\n  `dept_id` int(10) UNSIGNED DEFAULT NULL,\n  `team_id` int(10) UNSIGNED DEFAULT NULL,\n  `priority_id` int(10) UNSIGNED DEFAULT NULL,\n  `sla` int(10) UNSIGNED DEFAULT NULL,\n  `help_topic_id` int(10) UNSIGNED DEFAULT NULL,\n  `status` int(10) UNSIGNED DEFAULT NULL,\n  `rating` tinyint(1) NOT NULL,\n  `ratingreply` tinyint(1) NOT NULL,\n  `flags` int(11) NOT NULL,\n  `ip_address` int(11) NOT NULL,\n  `assigned_to` int(10) UNSIGNED DEFAULT NULL,\n  `lock_by` int(11) NOT NULL,\n  `lock_at` datetime DEFAULT NULL,\n  `source` int(10) UNSIGNED DEFAULT NULL,\n  `isoverdue` int(11) NOT NULL,\n  `reopened` int(11) NOT NULL,\n  `isanswered` int(11) NOT NULL,\n  `html` int(11) NOT NULL,\n  `is_deleted` int(11) NOT NULL,\n  `closed` int(11) NOT NULL,\n  `is_transferred` tinyint(1) NOT NULL,\n  `transferred_at` datetime NOT NULL,\n  `reopened_at` datetime DEFAULT NULL,\n  `duedate` datetime DEFAULT NULL,\n  `closed_at` datetime DEFAULT NULL,\n  `last_message_at` datetime DEFAULT NULL,\n  `last_response_at` datetime DEFAULT NULL,\n  `approval` int(11) NOT NULL,\n  `follow_up` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `tickets`\n--\n\nINSERT INTO `tickets` (`id`, `ticket_number`, `user_id`, `dept_id`, `team_id`, `priority_id`, `sla`, `help_topic_id`, `status`, `rating`, `ratingreply`, `flags`, `ip_address`, `assigned_to`, `lock_by`, `lock_at`, `source`, `isoverdue`, `reopened`, `isanswered`, `html`, `is_deleted`, `closed`, `is_transferred`, `transferred_at`, `reopened_at`, `duedate`, `closed_at`, `last_message_at`, `last_response_at`, `approval`, `follow_up`, `created_at`, `updated_at`) VALUES\n(1, 'AAAA-0000-0000', 4, 1, NULL, 2, 2, 1, 1, 0, 0, 0, 0, NULL, 0, NULL, 1, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', NULL, '2016-12-13 21:15:19', NULL, NULL, NULL, 0, 0, '2016-12-13 03:45:19', '2016-12-13 03:45:19'),\n(2, 'AAAA-0000-0001', 5, 1, NULL, 2, 2, 1, 1, 0, 0, 0, 0, NULL, 0, NULL, 1, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', NULL, '2016-12-13 21:20:55', NULL, NULL, NULL, 0, 0, '2016-12-13 03:50:55', '2016-12-13 03:50:56'),\n(3, 'AAAA-0000-0002', 6, 1, NULL, 2, 2, 1, 1, 0, 0, 0, 0, 3, 0, NULL, 1, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', NULL, '2016-12-13 21:25:55', NULL, NULL, NULL, 0, 0, '2016-12-13 03:55:55', '2016-12-13 04:00:23'),\n(4, 'AAAA-0000-0003', 7, 1, NULL, 2, 2, 1, 1, 0, 0, 0, 0, 1, 0, NULL, 1, 0, 0, 1, 0, 0, 0, 0, '0000-00-00 00:00:00', NULL, '2016-12-13 21:28:40', NULL, NULL, NULL, 0, 0, '2016-12-13 03:58:40', '2016-12-13 04:01:55'),\n(5, 'AAAA-0000-0004', 7, 1, NULL, 1, 1, 1, 5, 0, 0, 0, 0, NULL, 0, NULL, 3, 0, 0, 0, 0, 1, 0, 0, '0000-00-00 00:00:00', NULL, '2016-12-13 15:32:48', NULL, NULL, NULL, 0, 0, '2016-12-13 04:02:48', '2016-12-13 04:04:04'),\n(6, 'AAAA-0000-0005', 5, 1, NULL, 1, 1, 1, 5, 0, 0, 0, 0, NULL, 0, NULL, 3, 0, 0, 0, 0, 1, 0, 0, '0000-00-00 00:00:00', NULL, '2016-12-13 15:33:44', NULL, NULL, NULL, 0, 0, '2016-12-13 04:03:44', '2016-12-13 04:04:04');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_attachment`\n--\n\nCREATE TABLE `ticket_attachment` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `thread_id` int(10) UNSIGNED DEFAULT NULL,\n  `size` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `poster` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL,\n  `file` mediumblob,\n  `driver` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_collaborator`\n--\n\nCREATE TABLE `ticket_collaborator` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `isactive` tinyint(1) NOT NULL,\n  `ticket_id` int(10) UNSIGNED DEFAULT NULL,\n  `user_id` int(10) UNSIGNED DEFAULT NULL,\n  `role` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_form_data`\n--\n\nCREATE TABLE `ticket_form_data` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `ticket_id` int(10) UNSIGNED DEFAULT NULL,\n  `title` text COLLATE utf8_unicode_ci NOT NULL,\n  `content` text COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_priority`\n--\n\nCREATE TABLE `ticket_priority` (\n  `priority_id` int(10) UNSIGNED NOT NULL,\n  `priority` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `priority_desc` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `priority_color` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `priority_urgency` tinyint(1) NOT NULL,\n  `ispublic` tinyint(1) NOT NULL,\n  `is_default` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `ticket_priority`\n--\n\nINSERT INTO `ticket_priority` (`priority_id`, `priority`, `status`, `priority_desc`, `priority_color`, `priority_urgency`, `ispublic`, `is_default`, `created_at`, `updated_at`) VALUES\n(1, 'Low', '1', 'Low', '#00a65a', 4, 1, '', NULL, NULL),\n(2, 'Normal', '1', 'Normal', '#00bfef', 3, 1, '1', NULL, NULL),\n(3, 'High', '1', 'High', '#f39c11', 2, 1, '', NULL, NULL),\n(4, 'Emergency', '1', 'Emergency', '#dd4b38', 1, 1, '', NULL, NULL);\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_source`\n--\n\nCREATE TABLE `ticket_source` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `css_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `ticket_source`\n--\n\nINSERT INTO `ticket_source` (`id`, `name`, `value`, `css_class`) VALUES\n(1, 'web', 'Web', 'fa fa-internet-explorer'),\n(2, 'email', 'E-mail', 'fa fa-envelope'),\n(3, 'agent', 'Agent Panel', 'fa fa-envelope'),\n(4, 'facebook', 'Facebook', 'fa fa-facebook'),\n(5, 'twitter', 'Twitter', 'fa fa-twitter'),\n(6, 'call', 'Call', 'fa fa-phone'),\n(7, 'chat', 'Chat', 'fa fa-comment'),\n(8, 'web', 'Web', ''),\n(9, 'email', 'E-mail', ''),\n(10, 'agent', 'Agent Panel', '');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_status`\n--\n\nCREATE TABLE `ticket_status` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `state` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `mode` int(11) NOT NULL,\n  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `flags` int(11) NOT NULL,\n  `sort` int(11) NOT NULL,\n  `email_user` int(11) NOT NULL,\n  `icon_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `properties` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `ticket_status`\n--\n\nINSERT INTO `ticket_status` (`id`, `name`, `state`, `mode`, `message`, `flags`, `sort`, `email_user`, `icon_class`, `properties`, `created_at`, `updated_at`) VALUES\n(1, 'Open', 'open', 3, 'Ticket have been Reopened by', 0, 1, 0, '', 'Open tickets.', '2016-12-13 03:19:23', '2016-12-13 03:19:23'),\n(2, 'Resolved', 'closed', 1, 'Ticket have been Resolved by', 0, 2, 0, '', 'Resolved tickets.', '2016-12-13 03:19:24', '2016-12-13 03:19:24'),\n(3, 'Closed', 'closed', 3, 'Ticket have been Closed by', 0, 3, 0, '', 'Closed tickets. Tickets will still be accessible on client and staff panels.', '2016-12-13 03:19:24', '2016-12-13 03:19:24'),\n(4, 'Archived', 'archived', 3, 'Ticket have been Archived by', 0, 4, 0, '', 'Tickets only adminstratively available but no longer accessible on ticket queues and client panel.', '2016-12-13 03:19:24', '2016-12-13 03:19:24'),\n(5, 'Deleted', 'deleted', 3, 'Ticket have been Deleted by', 0, 5, 0, '', 'Tickets queued for deletion. Not accessible on ticket queues.', '2016-12-13 03:19:24', '2016-12-13 03:19:24'),\n(6, 'Unverified', 'unverified', 3, 'User account verification required.', 0, 6, 0, '', 'Ticket will be open after user verifies his\/her account.', '2016-12-13 03:19:24', '2016-12-13 03:19:24'),\n(7, 'Request Approval', 'unverified', 3, 'Approval requested by', 0, 7, 0, '', 'Ticket will be approve  after Admin verifies  this ticket', '2016-12-13 03:19:24', '2016-12-13 03:19:24');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_thread`\n--\n\nCREATE TABLE `ticket_thread` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `ticket_id` int(10) UNSIGNED DEFAULT NULL,\n  `user_id` int(10) UNSIGNED DEFAULT NULL,\n  `poster` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `source` int(10) UNSIGNED DEFAULT NULL,\n  `reply_rating` int(11) NOT NULL,\n  `rating_count` int(11) NOT NULL,\n  `is_internal` tinyint(1) NOT NULL,\n  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `body` longblob,\n  `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `ip_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `ticket_thread`\n--\n\nINSERT INTO `ticket_thread` (`id`, `ticket_id`, `user_id`, `poster`, `source`, `reply_rating`, `rating_count`, `is_internal`, `title`, `body`, `format`, `ip_address`, `created_at`, `updated_at`) VALUES\n(1, 1, 4, 'client', NULL, 0, 0, 0, 'Sewing defects', 0x466f7220657665727920696e647573747279206f7220627573696e6573732c20746f2067657420696e63726561736564200d0a73616c657320616e640d0a626574746572206e616d6520616d6f6e67737420636f6e73756d65727320616e642066656c6c6f7720636f6d70616e69657320697420697320696d706f7274616e7420746f200d0a6d61696e7461696e0d0a61206c6576656c206f66207175616c6974792e20496e20746865206761726d656e7420696e647573747279207175616c69747920636f6e74726f6c206973207072616374696365640d0a2072696768742066726f6d2074686520696e697469616c207374616765206f6620736f757263696e6720726177206d6174657269616c7320746f20746865207374616765206f66200d0a66696e616c2066696e69736865640d0a6761726d656e742e20466f722074657874696c6520616e64206170706172656c20696e6475737472792070726f64756374207175616c6974792069732063616c63756c61746564200d0a696e0d0a7465726d73206f66207175616c69747920616e64207374616e64617264206f66206669627265732c207961726e732c2066616272696320636f6e737472756374696f6e2c200d0a636f6c6f75720d0a666173746e6573732c20737572666163652064657369676e7320616e64207468652066696e616c2066696e6973686564206761726d656e742070726f64756374732e200d0a486f77657665720d0a7175616c697479206578706563746174696f6e7320666f72206578706f7274206172652072656c6174656420746f207468652074797065206f6620637573746f6d6572200d0a7365676d656e74730d0a616e64207468652072657461696c206f75746c6574732e205468657265206172652061206e756d626572206f6620666163746f7273206f6e207768696368207175616c697479200d0a6669746e6573730d0a6f66206761726d656e7420696e64757374727920697320626173656420737563682061732020706572666f726d616e63652c2072656c696162696c6974792c200d0a6475726162696c6974792c0d0a76697375616c20616e6420706572636569766564207175616c697479206f6620746865206761726d656e742e205175616c697479206e6565647320746f20626520646566696e65640d0a20696e0d0a7465726d73206f66206120706172746963756c6172206672616d65776f726b206f6620636f73742e203c62723e, '', '', '2016-12-13 03:45:19', '2016-12-13 03:45:19'),\n(2, 2, 5, 'client', NULL, 0, 0, 0, 'Delivery not recieved', 0x3c7370616e3e556e666f7274756e6174656c792c206966206120747261636b696e670d0a206e756d6265722073686f77732064656c69766572792c20796f7572206f6e6c79207265636f75727365206973207468726f7567682074686520736869707065722e2020496e200d0a6f7468657220776f7264732c20696620746865205553505320747261636b696e6720736974652073686f77732064656c69766572792c20616e6420796f7520686176656e2774200d0a61637475616c6c792072656365697665642069742c20796f75722070726f626c656d206c69657320776974682074686520555350532c20616e64206e6f7420746865200d0a73656c6c65722e223c62723e3c62723e5468697320686173206e657665722068617070656e656420746f206d652c206275742074686520696465610d0a20746861742074686520627579657220697320736f6d65686f7720726573706f6e7369626c6520666f722074686520636172726965722074686174207468652053454c4c4552200d0a68617320636f6d6d697373696f6e6564206973206c6175676861626c652e205468652073656c6c657220686173206120636f6e747261637475616c2061677265656d656e74200d0a776974682074686520736869707065722c206d616e792074696d65732074686520627579657220646f65736e2774206576656e206861766520746865206f7074696f6e20746f200d0a73706563696679207468652073686970706572207573656420666f722064656c69766572792e20496620746865206974656d204920707572636861736564206e65766572200d0a72656163686573206d7920686f6d653c2f7370616e3e3c62723e, '', '', '2016-12-13 03:50:56', '2016-12-13 03:50:56'),\n(3, 3, 6, 'client', NULL, 0, 0, 0, 'Colour effects', 0x492068617665206265656e2073656c656374656420666f72206170706f696e746d656e7420746f2074686520496e6469616e20466f7265737420536572766963652e200d0a42757420746865206d65646963616c20626f6172642068617320666f756e64206d6520756e666974206f6e206163636f756e74206f662064656665637469766520636f6c6f7572200d0a766973696f6e2e0d0a0d0a3c703e4163636f7264696e6720746f207468652072756c65732c20224c6f77204772616465202220636f6c6f757220766973696f6e2069732073756666696369656e7420666f72200d0a74686520736572766963652e204920776f756c64206c696b6520746f206b6e6f7720686f7720636f6c6f757220766973696f6e2063616e20626520677261646564206173206c6f770d0a206f7220686967682e20492063616e20636f72726563746c79206964656e74696679203238206f7574206f6620333820497368696861726120706c617465732e20556e646572200d0a6c6f776572206c6967687420696e74656e736974792c20492063616e206964656e74696679206120666577206d6f726520706c617465732e20506c656173652067697665200d0a796f757220636f6d6d656e74206f6e20746869732e20416c736f20706c65617365206c6574206d65206b6e6f772061626f757420746865204564726964676520477265656e200d0a4c616e7465726e207465737420616e642074686520636f6c6f75727320696e20746865206c616e7465726e2e2054686520626f617264206861732063616c6c6564206d6520666f720d0a20612072652d6578616d696e6174696f6e202e20506c6561736520616476697365206d6520686f7720746f20666163652069742e3c2f703e3c62723e, '', '', '2016-12-13 03:55:55', '2016-12-13 03:55:55'),\n(4, 4, 7, 'client', NULL, 0, 0, 0, 'Garment defects', 0x536f6d65207061727473206f66207061747465726e20617265206d697373696e672c2070726f6261626c7920626563617573650d0a207468650d0a6d61726b657220646964206e6f7420696e636c7564652074686520636f7272656374206e756d626572206f662070617274732e204d697865642070617274732c200d0a70726f6261626c79206265636175736520746865206d61726b6572206973206e6f7420636f72726563746c79206c6162656c65642c20726573756c74696e6720696e2061200d0a6d61727269616765206f662077726f6e672073697a65640d0a70617274732e205061747465726e73206e6f7420666163696e6720696e20636f727265637420646972656374696f6e206f6e206e617070656420666162726963732e204e6f74200d0a616c6c0d0a7061747465726e7320666163696e6720696e2073616d6520646972656374696f6e20286569746865722077617929206f6e2061206f6e652d776179206661627269632e200d0a5061747465726e730d0a6e6f7420616c69676e65642077697468207265737065637420746f207468652066616272696320677261696e2e20506f6f72206c696e6520646566696e6974696f6e2028652e672e0d0a20746f6f0d0a746869636b206368616c6b3b20696e64697374696e63746c79207072696e746564206c696e652c20706572666f7261746564206c6179206e6f7420706f77646572656429200d0a6c656164696e6720746f0d0a696e61636375726174652063757474696e672e20536b696d7079206d61726b696e672c206361757365642062792065697468657220746865206d61726b657220646964206e6f74200d0a757365207468650d0a6f7574736964652065646765206f6620746865207061747465726e3b206f7220746865207061747465726e20776173206d6f766564206f72207377756e67206166746572200d0a7061727469616c0d0a6d61726b696e6720746f2073717565657a6520746865207061747465726e20696e746f206120736d616c6c657220737061636520666f722065636f6e6f6d697a696e6720746865200d0a6661627269632e0d0a4d61726b696e67206261636b2066726f6d206d696e696174757265206d61726b65727320616c736f2063616e2063617573652074726f75626c6520756e6c65737320746865200d0a6d696e6961747572650d0a6d61726b6572206d616b696e6720697320696e207468652068616e6473206f6620657870657269656e636564206f70657261746f72732e20416c7465726e61746976656c79200d0a7468652066756c6c0d0a73697a65207061747465726e206d617920626520686176696e6720776f726e206f75742065646765732e3c62723e, '', '', '2016-12-13 03:58:40', '2016-12-13 03:58:40'),\n(5, 4, 1, '', NULL, 0, 0, 1, '', 0x54686973205469636b657420686173206265656e2061737369676e656420746f2044656d6f2061646d696e, '', '', '2016-12-13 04:00:04', '2016-12-13 04:00:04'),\n(6, 3, 1, '', NULL, 0, 0, 1, '', 0x54686973205469636b657420686173206265656e2061737369676e656420746f204a6f68616e204d616c686f747261, '', '', '2016-12-13 04:00:23', '2016-12-13 04:00:23'),\n(7, 4, 1, 'support', NULL, 0, 0, 0, '', 0x3c703e4869204b757374692c3c2f703e0d0a0d0a3c703e4c6574206d6520636865636b20616e642063616c6c206261636b20796f753c2f703e0d0a0d0a3c703e5468616e6b20596f753c2f703e0d0a, '', '', '2016-12-13 04:01:55', '2016-12-13 04:01:55'),\n(8, 5, 7, 'client', NULL, 0, 0, 0, 'test ticket', 0x746869732069732074657374207469636b6574202e2e2e63766376637663, '', '', '2016-12-13 04:02:48', '2016-12-13 04:02:48'),\n(9, 6, 5, 'client', NULL, 0, 0, 0, 'Mail test ticket', 0x506c6561736520746869732069732074657374207469636b65742e, '', '', '2016-12-13 04:03:44', '2016-12-13 04:03:44'),\n(10, 6, 1, '', NULL, 0, 0, 1, '', 0x5469636b65742068617665206265656e2044656c657465642062792044656d6f2061646d696e, '', '', '2016-12-13 04:04:04', '2016-12-13 04:04:04'),\n(11, 5, 1, '', NULL, 0, 0, 1, '', 0x5469636b65742068617665206265656e2044656c657465642062792044656d6f2061646d696e, '', '', '2016-12-13 04:04:04', '2016-12-13 04:04:04');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `ticket_token`\n--\n\nCREATE TABLE `ticket_token` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `ticket_id` int(11) NOT NULL,\n  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `timezone`\n--\n\nCREATE TABLE `timezone` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `timezone`\n--\n\nINSERT INTO `timezone` (`id`, `name`, `location`) VALUES\n(1, 'Pacific\/Midway', '(GMT-11:00) Midway Island'),\n(2, 'US\/Samoa', '(GMT-11:00) Samoa'),\n(3, 'US\/Hawaii', '(GMT-10:00) Hawaii'),\n(4, 'US\/Alaska', '(GMT-09:00) Alaska'),\n(5, 'US\/Pacific', '(GMT-08:00) Pacific Time (US &amp;amp; Canada)'),\n(6, 'America\/Tijuana', '(GMT-08:00) Tijuana'),\n(7, 'US\/Arizona', '(GMT-07:00) Arizona'),\n(8, 'US\/Mountain', '(GMT-07:00) Mountain Time (US &amp;amp; Canada)'),\n(9, 'America\/Chihuahua', '(GMT-07:00) Chihuahua'),\n(10, 'America\/Mazatlan', '(GMT-07:00) Mazatlan'),\n(11, 'America\/Mexico_City', '(GMT-06:00) Mexico City'),\n(12, 'America\/Monterrey', '(GMT-06:00) Monterrey'),\n(13, 'Canada\/Saskatchewan', '(GMT-06:00) Saskatchewan'),\n(14, 'US\/Central', '(GMT-06:00) Central Time (US &amp;amp; Canada)'),\n(15, 'US\/Eastern', '(GMT-05:00) Eastern Time (US &amp;amp; Canada)'),\n(16, 'US\/East-Indiana', '(GMT-05:00) Indiana (East)'),\n(17, 'America\/Bogota', '(GMT-05:00) Bogota'),\n(18, 'America\/Lima', '(GMT-05:00) Lima'),\n(19, 'America\/Caracas', '(GMT-04:30) Caracas'),\n(20, 'Canada\/Atlantic', '(GMT-04:00) Atlantic Time (Canada)'),\n(21, 'America\/La_Paz', '(GMT-04:00) La Paz'),\n(22, 'America\/Santiago', '(GMT-04:00) Santiago'),\n(23, 'Canada\/Newfoundland', '(GMT-03:30) Newfoundland'),\n(24, 'America\/Buenos_Aires', '(GMT-03:00) Buenos Aires'),\n(25, 'Greenland', '(GMT-03:00) Greenland'),\n(26, 'Atlantic\/Stanley', '(GMT-02:00) Stanley'),\n(27, 'Atlantic\/Azores', '(GMT-01:00) Azores'),\n(28, 'Atlantic\/Cape_Verde', '(GMT-01:00) Cape Verde Is.'),\n(29, 'Africa\/Casablanca', '(GMT) Casablanca'),\n(30, 'Europe\/Dublin', '(GMT) Dublin'),\n(31, 'Europe\/Lisbon', '(GMT) Lisbon'),\n(32, 'Europe\/London', '(GMT) London'),\n(33, 'Africa\/Monrovia', '(GMT) Monrovia'),\n(34, 'Europe\/Amsterdam', '(GMT+01:00) Amsterdam'),\n(35, 'Europe\/Belgrade', '(GMT+01:00) Belgrade'),\n(36, 'Europe\/Berlin', '(GMT+01:00) Berlin'),\n(37, 'Europe\/Bratislava', '(GMT+01:00) Bratislava'),\n(38, 'Europe\/Brussels', '(GMT+01:00) Brussels'),\n(39, 'Europe\/Budapest', '(GMT+01:00) Budapest'),\n(40, 'Europe\/Copenhagen', '(GMT+01:00) Copenhagen'),\n(41, 'Europe\/Ljubljana', '(GMT+01:00) Ljubljana'),\n(42, 'Europe\/Madrid', '(GMT+01:00) Madrid'),\n(43, 'Europe\/Paris', '(GMT+01:00) Paris'),\n(44, 'Europe\/Prague', '(GMT+01:00) Prague'),\n(45, 'Europe\/Rome', '(GMT+01:00) Rome'),\n(46, 'Europe\/Sarajevo', '(GMT+01:00) Sarajevo'),\n(47, 'Europe\/Skopje', '(GMT+01:00) Skopje'),\n(48, 'Europe\/Stockholm', '(GMT+01:00) Stockholm'),\n(49, 'Europe\/Vienna', '(GMT+01:00) Vienna'),\n(50, 'Europe\/Warsaw', '(GMT+01:00) Warsaw'),\n(51, 'Europe\/Zagreb', '(GMT+01:00) Zagreb'),\n(52, 'Europe\/Athens', '(GMT+02:00) Athens'),\n(53, 'Europe\/Bucharest', '(GMT+02:00) Bucharest'),\n(54, 'Africa\/Cairo', '(GMT+02:00) Cairo'),\n(55, 'Africa\/Harare', '(GMT+02:00) Harare'),\n(56, 'Europe\/Helsinki', '(GMT+02:00) Helsinki'),\n(57, 'Europe\/Istanbul', '(GMT+02:00) Istanbul'),\n(58, 'Asia\/Jerusalem', '(GMT+02:00) Jerusalem'),\n(59, 'Europe\/Kiev', '(GMT+02:00) Kyiv'),\n(60, 'Europe\/Minsk', '(GMT+02:00) Minsk'),\n(61, 'Europe\/Riga', '(GMT+02:00) Riga'),\n(62, 'Europe\/Sofia', '(GMT+02:00) Sofia'),\n(63, 'Europe\/Tallinn', '(GMT+02:00) Tallinn'),\n(64, 'Europe\/Vilnius', '(GMT+02:00) Vilnius'),\n(65, 'Asia\/Baghdad', '(GMT+03:00) Baghdad'),\n(66, 'Asia\/Kuwait', '(GMT+03:00) Kuwait'),\n(67, 'Africa\/Nairobi', '(GMT+03:00) Nairobi'),\n(68, 'Asia\/Riyadh', '(GMT+03:00) Riyadh'),\n(69, 'Asia\/Tehran', '(GMT+03:30) Tehran'),\n(70, 'Europe\/Moscow', '(GMT+04:00) Moscow'),\n(71, 'Asia\/Baku', '(GMT+04:00) Baku'),\n(72, 'Europe\/Volgograd', '(GMT+04:00) Volgograd'),\n(73, 'Asia\/Muscat', '(GMT+04:00) Muscat'),\n(74, 'Asia\/Tbilisi', '(GMT+04:00) Tbilisi'),\n(75, 'Asia\/Yerevan', '(GMT+04:00) Yerevan'),\n(76, 'Asia\/Kabul', '(GMT+04:30) Kabul'),\n(77, 'Asia\/Karachi', '(GMT+05:00) Karachi'),\n(78, 'Asia\/Tashkent', '(GMT+05:00) Tashkent'),\n(79, 'Asia\/Kolkata', '(GMT+05:30) Kolkata'),\n(80, 'Asia\/Kathmandu', '(GMT+05:45) Kathmandu'),\n(81, 'Asia\/Yekaterinburg', '(GMT+06:00) Ekaterinburg'),\n(82, 'Asia\/Almaty', '(GMT+06:00) Almaty'),\n(83, 'Asia\/Dhaka', '(GMT+06:00) Dhaka'),\n(84, 'Asia\/Novosibirsk', '(GMT+07:00) Novosibirsk'),\n(85, 'Asia\/Bangkok', '(GMT+07:00) Bangkok'),\n(86, 'Asia\/Ho_Chi_Minh', '(GMT+07.00) Ho Chi Minh'),\n(87, 'Asia\/Jakarta', '(GMT+07:00) Jakarta'),\n(88, 'Asia\/Krasnoyarsk', '(GMT+08:00) Krasnoyarsk'),\n(89, 'Asia\/Chongqing', '(GMT+08:00) Chongqing'),\n(90, 'Asia\/Hong_Kong', '(GMT+08:00) Hong Kong'),\n(91, 'Asia\/Kuala_Lumpur', '(GMT+08:00) Kuala Lumpur'),\n(92, 'Australia\/Perth', '(GMT+08:00) Perth'),\n(93, 'Asia\/Singapore', '(GMT+08:00) Singapore'),\n(94, 'Asia\/Taipei', '(GMT+08:00) Taipei'),\n(95, 'Asia\/Ulaanbaatar', '(GMT+08:00) Ulaan Bataar'),\n(96, 'Asia\/Urumqi', '(GMT+08:00) Urumqi'),\n(97, 'Asia\/Irkutsk', '(GMT+09:00) Irkutsk'),\n(98, 'Asia\/Seoul', '(GMT+09:00) Seoul'),\n(99, 'Asia\/Tokyo', '(GMT+09:00) Tokyo'),\n(100, 'Australia\/Adelaide', '(GMT+09:30) Adelaide'),\n(101, 'Australia\/Darwin', '(GMT+09:30) Darwin'),\n(102, 'Asia\/Yakutsk', '(GMT+10:00) Yakutsk'),\n(103, 'Australia\/Brisbane', '(GMT+10:00) Brisbane'),\n(104, 'Australia\/Canberra', '(GMT+10:00) Canberra'),\n(105, 'Pacific\/Guam', '(GMT+10:00) Guam'),\n(106, 'Australia\/Hobart', '(GMT+10:00) Hobart'),\n(107, 'Australia\/Melbourne', '(GMT+10:00) Melbourne'),\n(108, 'Pacific\/Port_Moresby', '(GMT+10:00) Port Moresby'),\n(109, 'Australia\/Sydney', '(GMT+10:00) Sydney'),\n(110, 'Asia\/Vladivostok', '(GMT+11:00) Vladivostok'),\n(111, 'Asia\/Magadan', '(GMT+12:00) Magadan'),\n(112, 'Pacific\/Auckland', '(GMT+12:00) Auckland'),\n(113, 'Pacific\/Fiji', '(GMT+12:00) Fiji');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `time_format`\n--\n\nCREATE TABLE `time_format` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `time_format`\n--\n\nINSERT INTO `time_format` (`id`, `format`) VALUES\n(1, 'H:i:s'),\n(2, 'H.i.s');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `users`\n--\n\nCREATE TABLE `users` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `user_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `last_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `gender` tinyint(1) NOT NULL,\n  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `ban` tinyint(1) NOT NULL,\n  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,\n  `active` int(11) NOT NULL,\n  `is_delete` tinyint(1) NOT NULL DEFAULT '0',\n  `ext` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `country_code` int(11) NOT NULL,\n  `phone_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `agent_sign` text COLLATE utf8_unicode_ci NOT NULL,\n  `account_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `account_status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `assign_group` int(10) UNSIGNED DEFAULT NULL,\n  `primary_dpt` int(10) UNSIGNED DEFAULT NULL,\n  `agent_tzone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `daylight_save` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `limit_access` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `directory_listing` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `vacation_mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `company` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `role` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `internal_note` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `profile_pic` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL,\n  `user_language` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `users`\n--\n\nINSERT INTO `users` (`id`, `user_name`, `first_name`, `last_name`, `gender`, `email`, `ban`, `password`, `active`, `is_delete`, `ext`, `country_code`, `phone_number`, `mobile`, `agent_sign`, `account_type`, `account_status`, `assign_group`, `primary_dpt`, `agent_tzone`, `daylight_save`, `limit_access`, `directory_listing`, `vacation_mode`, `company`, `role`, `internal_note`, `profile_pic`, `remember_token`, `created_at`, `updated_at`, `user_language`) VALUES\n(1, 'demo_admin', 'Demo', 'Admin', 0, NULL, 0, '$2y$10$ZkHOJeJCKFzLtL4yWXZ3suVZlG.fJwD9oUI3nM5FGESmIkQV1hMXC', 1, 0, '', 0, '', NULL, '', '', '', 1, 1, '', '', '', '', '', '', 'admin', '', '', NULL, '2016-12-13 03:19:53', '2016-12-13 03:19:53', NULL),\n(2, 'demo_agent', 'Abhrakasin', 'KK', 0, NULL, 0, '$2y$10$nrMZMd72\/HZbnzjBAi0RX.UQrNTtFeZFEK9aq.chDPZZ07rOC\/6Ie', 1, 0, '', 0, '', NULL, '', '', '', 1, 1, '79', '', '', '', '', '', 'agent', '', '', NULL, '2016-12-13 03:32:41', '2016-12-13 03:32:42', NULL),\n(3, 'Johan', 'Johan', 'Malhotra', 0, NULL, 0, '$2y$10$Eq8SHKUEXCkW5vqiWvA0Iu1UJmzZ.e5.Q3hI2tkxey5HZ2Lmbxb1C', 1, 0, '', 0, '', NULL, '', '', '', 2, 2, '7', '', '', '', '', '', 'agent', '', '', NULL, '2016-12-13 03:35:29', '2016-12-13 03:35:30', NULL),\n(4, 'demo_client', 'Fidel Martin', '', 0, NULL, 0, '$2y$10$wHupGhJqz2p4rcdS4eq4ZO.NQ65b0JjVsqhJwEEzOCl3vMKwzh9\/S', 1, 0, '', 0, '', NULL, '', '', '', NULL, NULL, '', '', '', '', '', '', 'user', '', '', 'PXj6d2s7rOqoh53gHdyPbiHOVvBmDoR5CnXg9kl7fRolIC92Y20UnFPSOryw', '2016-12-13 03:45:19', '2016-12-13 03:45:19', NULL),\n(5, 'joseph2321@gmail.com', 'Joseph Rossignol', '', 0, NULL, 0, '$2y$10$7eQ0nFxQpQkWaKwUbzTsQ.ufQpRN1rwUGY5ER1KsoXoLd6KbMIHnG', 1, 0, '', 0, '', NULL, '', '', '', NULL, NULL, '', '', '', '', '', '', 'user', '', '', 'nv7Z37jhwAVdt87WCVzsqweY6wUbic7ll44FNmygMmwcnErafCrVpnw6Krys', '2016-12-13 03:50:55', '2016-12-13 03:50:55', NULL),\n(6, 'ichae1212@gmail.com', 'Ichae Semos', '', 0, NULL, 0, '$2y$10$aITz4IUuaxb0VHwF2V2CPefwf\/Ft0VXpmHDC9feEfNXkW90GdjCFm', 1, 0, '', 0, '', NULL, '', '', '', NULL, NULL, '', '', '', '', '', '', 'user', '', '', 'egq0NWPaxEkwkXmV3L0BJ4j4O6aKlgjzNZxea0XpYvCAeVvZLbXsjkKmWyBZ', '2016-12-13 03:55:54', '2016-12-13 03:55:54', NULL),\n(7, 'kusti09@yahoo.com', 'Kusti Franti', '', 0, NULL, 0, '$2y$10$yNHebbyWfr6m1t4srRlYbuj2JN706ZBpyMI.gSJmuY9czJ3OzuQpq', 1, 0, '', 0, '', NULL, '', '', '', NULL, NULL, '', '', '', '', '', '', 'user', '', '', '4JPKOO9UUjZ2yX1GI7WYaeljcdyFATmguwNGuUD9chDodCVfJVGBJvbepgOt', '2016-12-13 03:58:40', '2016-12-13 03:58:40', NULL);\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `user_additional_infos`\n--\n\nCREATE TABLE `user_additional_infos` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `owner` int(11) NOT NULL,\n  `service` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `user_assign_organization`\n--\n\nCREATE TABLE `user_assign_organization` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `org_id` int(10) UNSIGNED DEFAULT NULL,\n  `user_id` int(10) UNSIGNED DEFAULT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `user_notification`\n--\n\nCREATE TABLE `user_notification` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `notification_id` int(11) NOT NULL,\n  `user_id` int(11) NOT NULL,\n  `is_read` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `user_notification`\n--\n\nINSERT INTO `user_notification` (`id`, `notification_id`, `user_id`, `is_read`, `created_at`, `updated_at`) VALUES\n(1, 1, 2, 0, '2016-12-13 03:45:20', '2016-12-13 03:45:20'),\n(2, 1, 1, 0, '2016-12-13 03:45:20', '2016-12-13 03:45:20'),\n(3, 2, 2, 0, '2016-12-13 03:50:56', '2016-12-13 03:50:56'),\n(4, 2, 1, 0, '2016-12-13 03:50:56', '2016-12-13 03:50:56'),\n(5, 3, 2, 0, '2016-12-13 03:55:55', '2016-12-13 03:55:55'),\n(6, 3, 1, 0, '2016-12-13 03:55:55', '2016-12-13 03:55:55'),\n(7, 4, 2, 0, '2016-12-13 03:58:40', '2016-12-13 03:58:40'),\n(8, 4, 1, 0, '2016-12-13 03:58:40', '2016-12-13 03:58:40'),\n(9, 5, 2, 0, '2016-12-13 04:01:55', '2016-12-13 04:01:55'),\n(10, 5, 1, 0, '2016-12-13 04:01:55', '2016-12-13 04:01:55'),\n(11, 6, 2, 0, '2016-12-13 04:02:49', '2016-12-13 04:02:49'),\n(12, 6, 1, 0, '2016-12-13 04:02:49', '2016-12-13 04:02:49'),\n(13, 7, 2, 0, '2016-12-13 04:03:44', '2016-12-13 04:03:44'),\n(14, 7, 1, 0, '2016-12-13 04:03:44', '2016-12-13 04:03:44');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `version_check`\n--\n\nCREATE TABLE `version_check` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `current_version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `new_version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `version_check`\n--\n\nINSERT INTO `version_check` (`id`, `current_version`, `new_version`, `created_at`, `updated_at`) VALUES\n(1, '', '', '2016-12-13 03:19:30', '2016-12-13 03:19:30');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `widgets`\n--\n\nCREATE TABLE `widgets` (\n  `id` int(11) NOT NULL,\n  `name` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `title` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,\n  `value` text COLLATE utf8_unicode_ci,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `widgets`\n--\n\nINSERT INTO `widgets` (`id`, `name`, `title`, `value`, `created_at`, `updated_at`) VALUES\n(1, 'footer1', 'Products', '&lt;ul&gt;&lt;li&gt;Men&lt;\/li&gt;&lt;li&gt;Women&lt;\/li&gt;&lt;li&gt;Kids&lt;\/li&gt;&lt;li&gt;Decor&lt;\/li&gt;&lt;li&gt;Wedding Cloth&lt;b&gt;&lt;br \/&gt;&lt;\/b&gt;&lt;\/li&gt;&lt;\/ul&gt;', '2016-12-13 03:19:30', '2016-12-13 03:21:13'),\n(2, 'footer2', 'Company', '&lt;ul&gt;&lt;li&gt;About Us&lt;\/li&gt;&lt;li&gt;Road Map&lt;\/li&gt;&lt;li&gt;Privacy Policy&lt;\/li&gt;&lt;li&gt;Cancellation &amp;amp; Refund Policy&lt;br \/&gt;&lt;\/li&gt;&lt;li&gt;Term &amp;amp; Condition&lt;\/li&gt;&lt;\/ul&gt;', '2016-12-13 03:19:30', '2016-12-13 03:21:40'),\n(3, 'footer3', 'Find out More', '&lt;ul&gt;&lt;li&gt;Forums&lt;\/li&gt;&lt;li&gt;News&lt;\/li&gt;&lt;li&gt;Blog&lt;\/li&gt;&lt;li&gt;Partner NOC Directory&lt;\/li&gt;&lt;\/ul&gt;', '2016-12-13 03:19:30', '2016-12-13 03:22:06'),\n(4, 'footer4', 'Contact Us', '&lt;div&gt;\\r\\n                                        &lt;p&gt;&lt;i&gt;BTM Layout, No: #28&lt;br \/&gt;9th Cross First Stage BTM Layout Near Water Tank&lt;br \/&gt;&lt;\/i&gt;&lt;i&gt;Bangalore \u2013 560 029&lt;\/i&gt;&lt;br \/&gt;&lt;i&gt;Karnataka \u2013 India&lt;br \/&gt;&lt;\/i&gt;&lt;i&gt;Telephone:&nbsp;&lt;\/i&gt;&lt;i&gt;+91 9999999999&lt;br \/&gt;&lt;\/i&gt;&lt;i&gt;Email:&nbsp;&lt;\/i&gt;&lt;a&gt;&lt;i&gt;&nbsp;&nbsp;&nbsp;support@abcclothing.com&lt;\/i&gt;&lt;\/a&gt;&lt;\/p&gt;&lt;\/div&gt;', '2016-12-13 03:19:30', '2016-12-13 03:22:34'),\n(7, 'linkedin', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(8, 'stumble', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(9, 'google', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(10, 'deviantart', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(11, 'flickr', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(12, 'skype', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(13, 'rss', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(14, 'twitter', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(15, 'facebook', NULL, NULL, '2016-12-13 03:19:31', '2016-12-13 03:19:31'),\n(16, 'youtube', NULL, NULL, '2016-12-13 03:19:32', '2016-12-13 03:19:32'),\n(17, 'vimeo', NULL, NULL, '2016-12-13 03:19:32', '2016-12-13 03:19:32'),\n(18, 'pinterest', NULL, NULL, '2016-12-13 03:19:32', '2016-12-13 03:19:32'),\n(19, 'dribbble', NULL, NULL, '2016-12-13 03:19:32', '2016-12-13 03:19:32'),\n(20, 'instagram', NULL, NULL, '2016-12-13 03:19:32', '2016-12-13 03:19:32');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `workflow_action`\n--\n\nCREATE TABLE `workflow_action` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `workflow_id` int(10) UNSIGNED NOT NULL,\n  `condition` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `workflow_close`\n--\n\nCREATE TABLE `workflow_close` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `days` int(11) NOT NULL,\n  `condition` int(11) NOT NULL,\n  `send_email` int(11) NOT NULL,\n  `status` int(11) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Dumping data for table `workflow_close`\n--\n\nINSERT INTO `workflow_close` (`id`, `days`, `condition`, `send_email`, `status`, `created_at`, `updated_at`) VALUES\n(1, 2, 1, 1, 3, '2016-12-13 03:19:14', '2016-12-13 03:19:14');\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `workflow_name`\n--\n\nCREATE TABLE `workflow_name` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `status` int(11) NOT NULL,\n  `order` int(11) NOT NULL,\n  `target` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `internal_note` text COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `workflow_rules`\n--\n\nCREATE TABLE `workflow_rules` (\n  `id` int(10) UNSIGNED NOT NULL,\n  `workflow_id` int(10) UNSIGNED NOT NULL,\n  `matching_criteria` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `matching_scenario` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `matching_relation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n  `matching_value` text COLLATE utf8_unicode_ci NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\n--\n-- Indexes for dumped tables\n--\n\n--\n-- Indexes for table `api_settings`\n--\nALTER TABLE `api_settings`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `banlist`\n--\nALTER TABLE `banlist`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `bar_notifications`\n--\nALTER TABLE `bar_notifications`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `canned_response`\n--\nALTER TABLE `canned_response`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `user_id` (`user_id`);\n\n--\n-- Indexes for table `common_settings`\n--\nALTER TABLE `common_settings`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `conditions`\n--\nALTER TABLE `conditions`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `country_code`\n--\nALTER TABLE `country_code`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `custom_forms`\n--\nALTER TABLE `custom_forms`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `custom_form_fields`\n--\nALTER TABLE `custom_form_fields`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `date_format`\n--\nALTER TABLE `date_format`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `date_time_format`\n--\nALTER TABLE `date_time_format`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `department`\n--\nALTER TABLE `department`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `sla` (`sla`),\n  ADD KEY `manager_2` (`manager`);\n\n--\n-- Indexes for table `emails`\n--\nALTER TABLE `emails`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `department` (`department`,`priority`,`help_topic`),\n  ADD KEY `department_2` (`department`,`priority`,`help_topic`),\n  ADD KEY `priority` (`priority`),\n  ADD KEY `help_topic` (`help_topic`);\n\n--\n-- Indexes for table `failed_jobs`\n--\nALTER TABLE `failed_jobs`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `faveo_mails`\n--\nALTER TABLE `faveo_mails`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `faveo_queues`\n--\nALTER TABLE `faveo_queues`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `field_values`\n--\nALTER TABLE `field_values`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `field_values_field_id_foreign` (`field_id`);\n\n--\n-- Indexes for table `groups`\n--\nALTER TABLE `groups`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `group_assign_department`\n--\nALTER TABLE `group_assign_department`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `group_id` (`group_id`),\n  ADD KEY `department_id` (`department_id`);\n\n--\n-- Indexes for table `help_topic`\n--\nALTER TABLE `help_topic`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `custom_form` (`custom_form`),\n  ADD KEY `department` (`department`),\n  ADD KEY `ticket_status` (`ticket_status`),\n  ADD KEY `priority` (`priority`),\n  ADD KEY `sla_plan` (`sla_plan`),\n  ADD KEY `auto_assign_2` (`auto_assign`);\n\n--\n-- Indexes for table `jobs`\n--\nALTER TABLE `jobs`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `jobs_queue_reserved_reserved_at_index` (`queue`,`reserved`,`reserved_at`);\n\n--\n-- Indexes for table `kb_article`\n--\nALTER TABLE `kb_article`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `kb_article_relationship`\n--\nALTER TABLE `kb_article_relationship`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `article_relationship_article_id_foreign` (`article_id`),\n  ADD KEY `article_relationship_category_id_foreign` (`category_id`);\n\n--\n-- Indexes for table `kb_category`\n--\nALTER TABLE `kb_category`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `kb_comment`\n--\nALTER TABLE `kb_comment`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `comment_article_id_foreign` (`article_id`);\n\n--\n-- Indexes for table `kb_pages`\n--\nALTER TABLE `kb_pages`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `kb_settings`\n--\nALTER TABLE `kb_settings`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `languages`\n--\nALTER TABLE `languages`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `login_attempts`\n--\nALTER TABLE `login_attempts`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `log_notification`\n--\nALTER TABLE `log_notification`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `mailbox_protocol`\n--\nALTER TABLE `mailbox_protocol`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `mail_services`\n--\nALTER TABLE `mail_services`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `migrations`\n--\nALTER TABLE `migrations`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `notifications`\n--\nALTER TABLE `notifications`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `notification_types`\n--\nALTER TABLE `notification_types`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `organization`\n--\nALTER TABLE `organization`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `head` (`head`);\n\n--\n-- Indexes for table `password_resets`\n--\nALTER TABLE `password_resets`\n  ADD KEY `password_resets_email_index` (`email`),\n  ADD KEY `password_resets_token_index` (`token`);\n\n--\n-- Indexes for table `plugins`\n--\nALTER TABLE `plugins`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `queue_services`\n--\nALTER TABLE `queue_services`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `ratings`\n--\nALTER TABLE `ratings`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `rating_ref`\n--\nALTER TABLE `rating_ref`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `settings_alert_notice`\n--\nALTER TABLE `settings_alert_notice`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `settings_auto_response`\n--\nALTER TABLE `settings_auto_response`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `settings_company`\n--\nALTER TABLE `settings_company`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `settings_email`\n--\nALTER TABLE `settings_email`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `settings_ratings`\n--\nALTER TABLE `settings_ratings`\n  ADD PRIMARY KEY (`id`),\n  ADD UNIQUE KEY `settings_ratings_slug_unique` (`slug`);\n\n--\n-- Indexes for table `settings_security`\n--\nALTER TABLE `settings_security`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `settings_system`\n--\nALTER TABLE `settings_system`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `time_farmat` (`time_farmat`),\n  ADD KEY `date_format` (`date_format`),\n  ADD KEY `date_time_format` (`date_time_format`),\n  ADD KEY `time_zone` (`time_zone`);\n\n--\n-- Indexes for table `settings_ticket`\n--\nALTER TABLE `settings_ticket`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `sla_plan`\n--\nALTER TABLE `sla_plan`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `social_media`\n--\nALTER TABLE `social_media`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `teams`\n--\nALTER TABLE `teams`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `team_lead` (`team_lead`);\n\n--\n-- Indexes for table `team_assign_agent`\n--\nALTER TABLE `team_assign_agent`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `team_id` (`team_id`),\n  ADD KEY `agent_id` (`agent_id`);\n\n--\n-- Indexes for table `template`\n--\nALTER TABLE `template`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `templates`\n--\nALTER TABLE `templates`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `template_sets`\n--\nALTER TABLE `template_sets`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `template_types`\n--\nALTER TABLE `template_types`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `tickets`\n--\nALTER TABLE `tickets`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `user_id` (`user_id`),\n  ADD KEY `dept_id` (`dept_id`),\n  ADD KEY `team_id` (`team_id`),\n  ADD KEY `priority_id` (`priority_id`),\n  ADD KEY `sla` (`sla`),\n  ADD KEY `help_topic_id` (`help_topic_id`),\n  ADD KEY `status` (`status`),\n  ADD KEY `assigned_to` (`assigned_to`),\n  ADD KEY `source` (`source`);\n\n--\n-- Indexes for table `ticket_attachment`\n--\nALTER TABLE `ticket_attachment`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `thread_id` (`thread_id`);\n\n--\n-- Indexes for table `ticket_collaborator`\n--\nALTER TABLE `ticket_collaborator`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `ticket_id` (`ticket_id`),\n  ADD KEY `user_id` (`user_id`);\n\n--\n-- Indexes for table `ticket_form_data`\n--\nALTER TABLE `ticket_form_data`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `ticket_id` (`ticket_id`);\n\n--\n-- Indexes for table `ticket_priority`\n--\nALTER TABLE `ticket_priority`\n  ADD PRIMARY KEY (`priority_id`);\n\n--\n-- Indexes for table `ticket_source`\n--\nALTER TABLE `ticket_source`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `ticket_status`\n--\nALTER TABLE `ticket_status`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `ticket_thread`\n--\nALTER TABLE `ticket_thread`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `ticket_id_2` (`ticket_id`),\n  ADD KEY `user_id` (`user_id`),\n  ADD KEY `source` (`source`);\n\n--\n-- Indexes for table `ticket_token`\n--\nALTER TABLE `ticket_token`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `timezone`\n--\nALTER TABLE `timezone`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `time_format`\n--\nALTER TABLE `time_format`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `users`\n--\nALTER TABLE `users`\n  ADD PRIMARY KEY (`id`),\n  ADD UNIQUE KEY `users_email_unique` (`email`),\n  ADD UNIQUE KEY `users_mobile_unique` (`mobile`),\n  ADD KEY `assign_group_3` (`assign_group`),\n  ADD KEY `primary_dpt_2` (`primary_dpt`);\n\n--\n-- Indexes for table `user_additional_infos`\n--\nALTER TABLE `user_additional_infos`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `user_assign_organization`\n--\nALTER TABLE `user_assign_organization`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `org_id` (`org_id`),\n  ADD KEY `user_id` (`user_id`);\n\n--\n-- Indexes for table `user_notification`\n--\nALTER TABLE `user_notification`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `version_check`\n--\nALTER TABLE `version_check`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `widgets`\n--\nALTER TABLE `widgets`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `workflow_action`\n--\nALTER TABLE `workflow_action`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `workflow_action_1` (`workflow_id`);\n\n--\n-- Indexes for table `workflow_close`\n--\nALTER TABLE `workflow_close`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `workflow_name`\n--\nALTER TABLE `workflow_name`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `workflow_rules`\n--\nALTER TABLE `workflow_rules`\n  ADD PRIMARY KEY (`id`),\n  ADD KEY `workflow_rules_1` (`workflow_id`);\n\n--\n-- AUTO_INCREMENT for dumped tables\n--\n\n--\n-- AUTO_INCREMENT for table `api_settings`\n--\nALTER TABLE `api_settings`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `banlist`\n--\nALTER TABLE `banlist`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `bar_notifications`\n--\nALTER TABLE `bar_notifications`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;\n--\n-- AUTO_INCREMENT for table `canned_response`\n--\nALTER TABLE `canned_response`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `common_settings`\n--\nALTER TABLE `common_settings`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;\n--\n-- AUTO_INCREMENT for table `conditions`\n--\nALTER TABLE `conditions`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `country_code`\n--\nALTER TABLE `country_code`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=240;\n--\n-- AUTO_INCREMENT for table `custom_forms`\n--\nALTER TABLE `custom_forms`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `custom_form_fields`\n--\nALTER TABLE `custom_form_fields`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `date_format`\n--\nALTER TABLE `date_format`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;\n--\n-- AUTO_INCREMENT for table `date_time_format`\n--\nALTER TABLE `date_time_format`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;\n--\n-- AUTO_INCREMENT for table `department`\n--\nALTER TABLE `department`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;\n--\n-- AUTO_INCREMENT for table `emails`\n--\nALTER TABLE `emails`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `failed_jobs`\n--\nALTER TABLE `failed_jobs`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `faveo_mails`\n--\nALTER TABLE `faveo_mails`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `faveo_queues`\n--\nALTER TABLE `faveo_queues`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `field_values`\n--\nALTER TABLE `field_values`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `groups`\n--\nALTER TABLE `groups`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;\n--\n-- AUTO_INCREMENT for table `group_assign_department`\n--\nALTER TABLE `group_assign_department`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `help_topic`\n--\nALTER TABLE `help_topic`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;\n--\n-- AUTO_INCREMENT for table `jobs`\n--\nALTER TABLE `jobs`\n  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `kb_article`\n--\nALTER TABLE `kb_article`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;\n--\n-- AUTO_INCREMENT for table `kb_article_relationship`\n--\nALTER TABLE `kb_article_relationship`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;\n--\n-- AUTO_INCREMENT for table `kb_category`\n--\nALTER TABLE `kb_category`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;\n--\n-- AUTO_INCREMENT for table `kb_comment`\n--\nALTER TABLE `kb_comment`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `kb_pages`\n--\nALTER TABLE `kb_pages`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `kb_settings`\n--\nALTER TABLE `kb_settings`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `languages`\n--\nALTER TABLE `languages`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;\n--\n-- AUTO_INCREMENT for table `login_attempts`\n--\nALTER TABLE `login_attempts`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `log_notification`\n--\nALTER TABLE `log_notification`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `mailbox_protocol`\n--\nALTER TABLE `mailbox_protocol`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;\n--\n-- AUTO_INCREMENT for table `mail_services`\n--\nALTER TABLE `mail_services`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;\n--\n-- AUTO_INCREMENT for table `migrations`\n--\nALTER TABLE `migrations`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99;\n--\n-- AUTO_INCREMENT for table `notifications`\n--\nALTER TABLE `notifications`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;\n--\n-- AUTO_INCREMENT for table `notification_types`\n--\nALTER TABLE `notification_types`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;\n--\n-- AUTO_INCREMENT for table `organization`\n--\nALTER TABLE `organization`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `plugins`\n--\nALTER TABLE `plugins`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `queue_services`\n--\nALTER TABLE `queue_services`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;\n--\n-- AUTO_INCREMENT for table `ratings`\n--\nALTER TABLE `ratings`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;\n--\n-- AUTO_INCREMENT for table `rating_ref`\n--\nALTER TABLE `rating_ref`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `settings_alert_notice`\n--\nALTER TABLE `settings_alert_notice`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `settings_auto_response`\n--\nALTER TABLE `settings_auto_response`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `settings_company`\n--\nALTER TABLE `settings_company`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `settings_email`\n--\nALTER TABLE `settings_email`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `settings_ratings`\n--\nALTER TABLE `settings_ratings`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `settings_security`\n--\nALTER TABLE `settings_security`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `settings_system`\n--\nALTER TABLE `settings_system`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;\n--\n-- AUTO_INCREMENT for table `settings_ticket`\n--\nALTER TABLE `settings_ticket`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `sla_plan`\n--\nALTER TABLE `sla_plan`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;\n--\n-- AUTO_INCREMENT for table `social_media`\n--\nALTER TABLE `social_media`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `teams`\n--\nALTER TABLE `teams`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;\n--\n-- AUTO_INCREMENT for table `team_assign_agent`\n--\nALTER TABLE `team_assign_agent`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;\n--\n-- AUTO_INCREMENT for table `template`\n--\nALTER TABLE `template`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `templates`\n--\nALTER TABLE `templates`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;\n--\n-- AUTO_INCREMENT for table `template_sets`\n--\nALTER TABLE `template_sets`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `template_types`\n--\nALTER TABLE `template_types`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;\n--\n-- AUTO_INCREMENT for table `tickets`\n--\nALTER TABLE `tickets`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;\n--\n-- AUTO_INCREMENT for table `ticket_attachment`\n--\nALTER TABLE `ticket_attachment`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `ticket_collaborator`\n--\nALTER TABLE `ticket_collaborator`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `ticket_form_data`\n--\nALTER TABLE `ticket_form_data`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `ticket_priority`\n--\nALTER TABLE `ticket_priority`\n  MODIFY `priority_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;\n--\n-- AUTO_INCREMENT for table `ticket_source`\n--\nALTER TABLE `ticket_source`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;\n--\n-- AUTO_INCREMENT for table `ticket_status`\n--\nALTER TABLE `ticket_status`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;\n--\n-- AUTO_INCREMENT for table `ticket_thread`\n--\nALTER TABLE `ticket_thread`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;\n--\n-- AUTO_INCREMENT for table `ticket_token`\n--\nALTER TABLE `ticket_token`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `timezone`\n--\nALTER TABLE `timezone`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=114;\n--\n-- AUTO_INCREMENT for table `time_format`\n--\nALTER TABLE `time_format`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;\n--\n-- AUTO_INCREMENT for table `users`\n--\nALTER TABLE `users`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;\n--\n-- AUTO_INCREMENT for table `user_additional_infos`\n--\nALTER TABLE `user_additional_infos`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `user_assign_organization`\n--\nALTER TABLE `user_assign_organization`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `user_notification`\n--\nALTER TABLE `user_notification`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;\n--\n-- AUTO_INCREMENT for table `version_check`\n--\nALTER TABLE `version_check`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `widgets`\n--\nALTER TABLE `widgets`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;\n--\n-- AUTO_INCREMENT for table `workflow_action`\n--\nALTER TABLE `workflow_action`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `workflow_close`\n--\nALTER TABLE `workflow_close`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;\n--\n-- AUTO_INCREMENT for table `workflow_name`\n--\nALTER TABLE `workflow_name`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `workflow_rules`\n--\nALTER TABLE `workflow_rules`\n  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;\n--\n-- Constraints for dumped tables\n--\n\n--\n-- Constraints for table `canned_response`\n--\nALTER TABLE `canned_response`\n  ADD CONSTRAINT `canned_response_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `department`\n--\nALTER TABLE `department`\n  ADD CONSTRAINT `department_ibfk_1` FOREIGN KEY (`sla`) REFERENCES `sla_plan` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `department_ibfk_2` FOREIGN KEY (`manager`) REFERENCES `users` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `emails`\n--\nALTER TABLE `emails`\n  ADD CONSTRAINT `emails_ibfk_1` FOREIGN KEY (`department`) REFERENCES `department` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `emails_ibfk_2` FOREIGN KEY (`priority`) REFERENCES `ticket_priority` (`priority_id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `emails_ibfk_3` FOREIGN KEY (`help_topic`) REFERENCES `help_topic` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `field_values`\n--\nALTER TABLE `field_values`\n  ADD CONSTRAINT `field_values_field_id_foreign` FOREIGN KEY (`field_id`) REFERENCES `custom_form_fields` (`id`);\n\n--\n-- Constraints for table `group_assign_department`\n--\nALTER TABLE `group_assign_department`\n  ADD CONSTRAINT `group_assign_department_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `group_assign_department_ibfk_2` FOREIGN KEY (`department_id`) REFERENCES `department` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `help_topic`\n--\nALTER TABLE `help_topic`\n  ADD CONSTRAINT `help_topic_ibfk_1` FOREIGN KEY (`custom_form`) REFERENCES `custom_forms` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `help_topic_ibfk_2` FOREIGN KEY (`department`) REFERENCES `department` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `help_topic_ibfk_3` FOREIGN KEY (`ticket_status`) REFERENCES `ticket_status` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `help_topic_ibfk_4` FOREIGN KEY (`priority`) REFERENCES `ticket_priority` (`priority_id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `help_topic_ibfk_5` FOREIGN KEY (`sla_plan`) REFERENCES `sla_plan` (`id`),\n  ADD CONSTRAINT `help_topic_ibfk_6` FOREIGN KEY (`auto_assign`) REFERENCES `users` (`id`) ON DELETE SET NULL;\n\n--\n-- Constraints for table `kb_article_relationship`\n--\nALTER TABLE `kb_article_relationship`\n  ADD CONSTRAINT `article_relationship_article_id_foreign` FOREIGN KEY (`article_id`) REFERENCES `kb_article` (`id`),\n  ADD CONSTRAINT `article_relationship_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `kb_category` (`id`);\n\n--\n-- Constraints for table `kb_comment`\n--\nALTER TABLE `kb_comment`\n  ADD CONSTRAINT `comment_article_id_foreign` FOREIGN KEY (`article_id`) REFERENCES `kb_article` (`id`);\n\n--\n-- Constraints for table `organization`\n--\nALTER TABLE `organization`\n  ADD CONSTRAINT `organization_ibfk_1` FOREIGN KEY (`head`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `settings_system`\n--\nALTER TABLE `settings_system`\n  ADD CONSTRAINT `settings_system_ibfk_1` FOREIGN KEY (`time_zone`) REFERENCES `timezone` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `settings_system_ibfk_2` FOREIGN KEY (`time_farmat`) REFERENCES `time_format` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `settings_system_ibfk_3` FOREIGN KEY (`date_format`) REFERENCES `date_format` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `settings_system_ibfk_4` FOREIGN KEY (`date_time_format`) REFERENCES `date_time_format` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `teams`\n--\nALTER TABLE `teams`\n  ADD CONSTRAINT `teams_ibfk_1` FOREIGN KEY (`team_lead`) REFERENCES `users` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `team_assign_agent`\n--\nALTER TABLE `team_assign_agent`\n  ADD CONSTRAINT `team_assign_agent_ibfk_1` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `team_assign_agent_ibfk_2` FOREIGN KEY (`agent_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `tickets`\n--\nALTER TABLE `tickets`\n  ADD CONSTRAINT `tickets_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_2` FOREIGN KEY (`dept_id`) REFERENCES `department` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_3` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_4` FOREIGN KEY (`priority_id`) REFERENCES `ticket_priority` (`priority_id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_5` FOREIGN KEY (`sla`) REFERENCES `sla_plan` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_6` FOREIGN KEY (`help_topic_id`) REFERENCES `help_topic` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_7` FOREIGN KEY (`status`) REFERENCES `ticket_status` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_8` FOREIGN KEY (`source`) REFERENCES `ticket_source` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `tickets_ibfk_9` FOREIGN KEY (`assigned_to`) REFERENCES `users` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `ticket_attachment`\n--\nALTER TABLE `ticket_attachment`\n  ADD CONSTRAINT `ticket_attachment_ibfk_1` FOREIGN KEY (`thread_id`) REFERENCES `ticket_thread` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `ticket_collaborator`\n--\nALTER TABLE `ticket_collaborator`\n  ADD CONSTRAINT `ticket_collaborator_ibfk_1` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `ticket_collaborator_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `ticket_form_data`\n--\nALTER TABLE `ticket_form_data`\n  ADD CONSTRAINT `ticket_form_data_ibfk_1` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `ticket_thread`\n--\nALTER TABLE `ticket_thread`\n  ADD CONSTRAINT `ticket_thread_ibfk_1` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `ticket_thread_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `ticket_thread_ibfk_3` FOREIGN KEY (`source`) REFERENCES `ticket_source` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `users`\n--\nALTER TABLE `users`\n  ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`assign_group`) REFERENCES `groups` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `users_ibfk_2` FOREIGN KEY (`primary_dpt`) REFERENCES `department` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `user_assign_organization`\n--\nALTER TABLE `user_assign_organization`\n  ADD CONSTRAINT `user_assign_organization_ibfk_1` FOREIGN KEY (`org_id`) REFERENCES `organization` (`id`) ON UPDATE NO ACTION,\n  ADD CONSTRAINT `user_assign_organization_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `workflow_action`\n--\nALTER TABLE `workflow_action`\n  ADD CONSTRAINT `workflow_action_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflow_name` (`id`) ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `workflow_rules`\n--\nALTER TABLE `workflow_rules`\n  ADD CONSTRAINT `workflow_rules_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflow_name` (`id`) ON UPDATE NO ACTION;\n\n\/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT *\/;\n\/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS *\/;\n\/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION *\/;<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configurar apache<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Le damos permisos al usuario www-data<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/\nmkdir -p faveo\/storage\nsudo chown -R www-data:www-data \/var\/www\/faveo\nsudo chmod -R 775 \/var\/www\/faveo\/storage<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Habilitamos el modulo rewrite<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod rewrite\nsystemctl restart apache2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos el hostvirtual<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/sites-available\/soporte.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Agregamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>VirtualHost *:80>\n    ServerName 10.20.200.80\n\n    ServerAdmin interuniversitariadealajuela@gmail.com\n    DocumentRoot \/var\/www\/faveo\/public\n\n    &lt;Directory \/var\/www\/faveo\/public>\n        Options Indexes FollowSymLinks\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory>\n\n    ErrorLog ${APACHE_LOG_DIR}\/error_faveo.log\n    CustomLog ${APACHE_LOG_DIR}\/access_faveo.log combined\n&lt;\/VirtualHost>\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Deshabilitamos el sitio default y agregamos soporte<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2dissite 000-default.conf\nsudo a2ensite soporte.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Habilitamos fpm<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod proxy_fcgi setenvif\nsudo a2enconf php7.4-fpm\nsudo a2enconf php7.1-fpm\nsudo service php7.4-fpm restart\nsudo service php7.1-fpm restart\nsudo service apache2 restart<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora podemos entrar http:\/\/10.20.200.80 y configurar <\/li><li>Si da pantalla en blanco vamos a<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/faveo\/faveo-helpdesk\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos el archivo<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cp example.env .env\nnano .env<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>APP_ENV=production\nAPP_DEBUG=false\nAPP_KEY=SomeRandomString\nDB_TYPE=\nDB_HOST=\nDB_PORT=\nDB_DATABASE=\nDB_USERNAME=\nDB_PASSWORD=\nDB_INSTALL=%0%\nMAIL_DRIVER=smtp\nMAIL_HOST=mailtrap.io\nMAIL_PORT=2525\nMAIL_USERNAME=null\nMAIL_PASSWORD=null\nCACHE_DRIVER=file\nSESSION_DRIVER=file\nQUEUE_DRIVER=sync\n\nX\nAPP_ENV=production\nAPP_DEBUG=false\nAPP_KEY=UGIT\nDB_TYPE=mysql\nDB_HOST=localhost\nDB_PORT=\nDB_DATABASE=faveo\nDB_USERNAME=faveo\nDB_PASSWORD=AC2\nDB_INSTALL=%0%\nMAIL_DRIVER=smtp\nMAIL_HOST=mailtrap.io\nMAIL_PORT=2525\nMAIL_USERNAME=null\nMAIL_PASSWORD=null\nCACHE_DRIVER=file\nSESSION_DRIVER=file\nQUEUE_DRIVER=sync\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora si en el lgo nos daba el error<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP Fatal error:  Uncaught DaveJamesMiller\\\\Breadcrumbs\\\\Exception: Breadcrumb not found with name \"post.login\" in \/var\/www\/faveo\/faveo-helpdesk\/vendor\/davejamesmiller\/laravel-breadcrumbs\/src\/Generator.php:20\\nStack trace:\\n#0 \/var\/www\/faveo\/faveo-helpdesk\/vendor\/davejamesmiller\/laravel-breadcrumbs\/src\/Generator.php(13):....<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Es por que usamos php 7.4 y no 7.3 por que si ejecutamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan route:list -v\no\nphp artisan key:generate<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>No da el error que la funci\u00f3n en SetupTestEnv.php esta Unparenthesized<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>In SetupTestEnv.php line 45:\n                                                                                                                \n  Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Por tanto abrimos el archivo<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano app\/Console\/Commands\/SetupTestEnv.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Vamos a la liena 45 y remplazamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$dbPassword = $this-&gt;option('password') ? $this-&gt;option('password') : (env('DB_PASSWORD')) ? env('DB_PASSWORD') : '';\nX\n$dbPassword = $this-&gt;option('password') ? $this-&gt;option('password') : env('DB_PASSWORD');<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Y aplicamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan key:generate<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>RESULTADO<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>**************************************\n*     Application In Production!     *\n**************************************\n\n Do you really wish to run this command? (yes\/no) &#91;no]:\n &gt; yes\n\nApplication key &#91;base64:LpSXphP0cSJbyXO7tJ7xPAh\/cMgiH6\/5TSv8KSoiMNg=] set successfully.<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Volvemos a ingresar http:\/\/soporte2.siua.ac.cr\/<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Username: demo_admin<\/li><li>Password: demopass<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Configuraci\u00f3n cron job<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Faveo necesita algunos procesos corriendo de fondo, para hacer esto creamos un nuevo cron<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"* * * * * www-data \/usr\/bin\/php7.4 \/var\/www\/faveo\/artisan schedule:run 2&gt;&amp;1\" | sudo tee \/etc\/cron.d\/faveo\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Instalaci\u00f3n de Redis<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Para mejorar el rendimiento de la aplicaci\u00f3n vamos a instalar el open-source<\/li><li>Instalamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install redis-server -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos la extesi\u00f3n de redis para php<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install php-redis -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Lo iniciamos, habilitamos y reiniciamos el servicio<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start redis-server.service\n\nsudo systemctl restart redis-server.service\n\nsudo systemctl enable redis-server.service<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos el supervisor<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install supervisor -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Lo configuramos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/supervisor\/conf.d\/faveo-worker.conf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Agregamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;program:faveo-worker]\nprocess_name=%(program_name)s_%(process_num)02d\ncommand=php  \/var\/www\/faveo\/faveo-helpdesk\/artisan queue:work redis --sleep=3 --tries=3\nautostart=true\nautorestart=true\nnumprocs=8\nredirect_stderr=true\nstdout_logfile=\/var\/www\/faveo\/faveo-helpdesk\/storage\/logs\/worker.log\n\n&#91;program:faveo-recur]\nprocess_name=%(program_name)s_%(process_num)02d\ncommand=php  \/var\/www\/faveo\/faveo-helpdesk\/artisan queue:work redis --queue=recurring --sleep=3 --tries=3\nautostart=true\nautorestart=true\nnumprocs=1\nredirect_stderr=true\nstdout_logfile=\/var\/www\/faveo\/faveo-helpdesk\/storage\/logs\/worker.log\n\n&#91;program:faveo-Reports]\nprocess_name=%(program_name)s_%(process_num)02d\ncommand=php  \/var\/www\/faveo\/faveo-helpdesk\/artisan queue:work redis --queue=reports --sleep=3 --tries=3\nautostart=true\nautorestart=true\nuser=www-data\nnumprocs=1\nredirect_stderr=true\nstdout_logfile=\/var\/www\/faveo\/faveo-helpdesk\/storage\/logs\/reports-worker.log\n\n&#91;program:faveo-Horizon]\nprocess_name=%(program_name)s\ncommand=php \/var\/www\/faveo\/faveo-helpdesk\/artisan horizon\nautostart=true\nautorestart=true\nuser=www-data\nredirect_stderr=true\nstdout_logfile=\/var\/www\/faveo\/faveo-helpdesk\/storage\/logs\/horizon-worker.log<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Reiniciamos el supervisor<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>service supervisor restart\n\nsudo supervisorctl reread\n\nsudo supervisorctl update<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Iniciamos el worker<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo supervisorctl start faveo-worker:*<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Verificamos su estado<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status supervisor.service<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora para habilitarlo dentro de faveo, vamos al panel admin-&gt;Direcci\u00f3n de correo electr\u00f3nico-&gt;Colas<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"262\" height=\"659\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_047.png\" alt=\"\" class=\"wp-image-3590\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_047.png 262w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_047-119x300.png 119w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Luego dentro del servidor hay que configurarlo hacemos clic en el nombre de redis<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"476\" height=\"629\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_048.png\" alt=\"\" class=\"wp-image-3592\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_048.png 476w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_048-227x300.png 227w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Y digitamos<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"987\" height=\"371\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_049.png\" alt=\"\" class=\"wp-image-3593\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_049.png 987w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_049-300x113.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_049-768x289.png 768w\" sizes=\"(max-width: 987px) 100vw, 987px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Regresamos y habilitamos el servicio<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"581\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_050-1024x581.png\" alt=\"\" class=\"wp-image-3594\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_050-1024x581.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_050-300x170.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_050-768x436.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_050.png 1213w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Apache Instalamos apache PHP Instalamos PHP Modificamos el php.ini Modificamos Habilitamos ionCube Esto nos retorna Ahora habilitamos el m\u00f3dulo con el path devuelto Podemos verificar que todo esta bien con: MYSQL (Maria DB) Instalamos Configuramos mysql RESULTADO Para poder ingresar desde wokbeach Abrimos el archivo Modificamos Reinicamos el servicio Ingresamos a mysql como root Le [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[145],"tags":[],"class_list":["post-3504","post","type-post","status-publish","format-standard","hentry","category-faveo"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3504"}],"version-history":[{"count":29,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3504\/revisions"}],"predecessor-version":[{"id":4545,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3504\/revisions\/4545"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}