-- http://www.phpmyadmin.net
--
-- Počítač: localhost
-- Vygenerováno: Pát 11. srp 2017, 01:41
-- Verze MySQL: 5.5.54
-- Verze PHP: 5.4.45-0+deb7u8




--
-- Databáze: `helpdesk`
--

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_api_key`
--

CREATE TABLE IF NOT EXISTS `ost_api_key` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `isactive` tinyint(1) NOT NULL DEFAULT '1',
  `ipaddr` varchar(64) NOT NULL,
  `apikey` varchar(255) NOT NULL,
  `can_create_tickets` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `can_exec_cron` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `notes` text,
  `updated` datetime NOT NULL,
  `created` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `apikey` (`apikey`),
  KEY `ipaddr` (`ipaddr`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- Vypisuji data pro tabulku `ost_api_key`
--

INSERT INTO `ost_api_key` (`id`, `isactive`, `ipaddr`, `apikey`, `can_create_tickets`, `can_exec_cron`, `notes`, `updated`, `created`) VALUES
(1, 1, ' 178.248.250.86', 'C88553A523B1D6B249D8F1C3F4F8B88C', 1, 1, '', '2017-03-27 20:41:26', '2017-03-27 10:01:53'),
(2, 1, '217.31.57.23', '73605975B6CC7B3DD7F86EF6E7CB2653', 1, 1, '', '2017-03-27 20:48:44', '2017-03-27 20:48:44');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_attachment`
--

CREATE TABLE IF NOT EXISTS `ost_attachment` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `object_id` int(11) unsigned NOT NULL,
  `type` char(1) NOT NULL,
  `file_id` int(11) unsigned NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `inline` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `lang` varchar(16) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `file-type` (`object_id`,`file_id`,`type`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=47 ;

--
-- Vypisuji data pro tabulku `ost_attachment`
--

INSERT INTO `ost_attachment` (`id`, `object_id`, `type`, `file_id`, `name`, `inline`, `lang`) VALUES
(1, 1, 'C', 2, NULL, 0, NULL),
(2, 8, 'T', 1, NULL, 1, NULL),
(3, 9, 'T', 1, NULL, 1, NULL),
(4, 10, 'T', 1, NULL, 1, NULL),
(5, 11, 'T', 1, NULL, 1, NULL),
(6, 12, 'T', 1, NULL, 1, NULL),
(7, 13, 'T', 1, NULL, 1, NULL),
(8, 14, 'T', 1, NULL, 1, NULL),
(9, 16, 'T', 1, NULL, 1, NULL),
(10, 17, 'T', 1, NULL, 1, NULL),
(11, 18, 'T', 1, NULL, 1, NULL),
(12, 19, 'T', 1, NULL, 1, NULL),
(13, 16, 'H', 5, NULL, 0, NULL),
(17, 32, 'H', 7, NULL, 1, NULL),
(18, 35, 'H', 8, NULL, 0, NULL),
(19, 58, 'H', 7, NULL, 0, NULL),
(20, 61, 'H', 9, NULL, 0, NULL),
(21, 95, 'H', 10, NULL, 1, NULL),
(22, 97, 'H', 11, NULL, 0, NULL),
(23, 97, 'H', 10, NULL, 1, NULL),
(24, 98, 'H', 12, NULL, 0, NULL),
(25, 102, 'H', 1, NULL, 1, NULL),
(26, 103, 'H', 13, NULL, 0, NULL),
(27, 103, 'H', 14, NULL, 0, NULL),
(28, 104, 'H', 15, NULL, 0, NULL),
(29, 105, 'H', 16, NULL, 0, NULL),
(30, 106, 'H', 17, NULL, 0, NULL),
(31, 112, 'H', 18, NULL, 0, NULL),
(32, 136, 'H', 19, NULL, 1, NULL),
(33, 136, 'H', 20, NULL, 1, NULL),
(34, 136, 'H', 21, NULL, 1, NULL),
(35, 136, 'H', 22, NULL, 1, NULL),
(36, 136, 'H', 23, NULL, 1, NULL),
(37, 136, 'H', 24, NULL, 1, NULL),
(38, 137, 'H', 25, NULL, 0, NULL),
(39, 147, 'H', 26, NULL, 0, NULL),
(40, 162, 'H', 27, NULL, 0, NULL),
(41, 164, 'H', 28, NULL, 0, NULL),
(42, 164, 'H', 29, NULL, 0, NULL),
(43, 167, 'H', 30, NULL, 0, NULL),
(44, 174, 'H', 31, NULL, 1, NULL),
(45, 174, 'H', 32, NULL, 0, NULL),
(46, 174, 'H', 33, NULL, 1, NULL);

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_canned_response`
--

CREATE TABLE IF NOT EXISTS `ost_canned_response` (
  `canned_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `dept_id` int(10) unsigned NOT NULL DEFAULT '0',
  `isenabled` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `title` varchar(255) NOT NULL DEFAULT '',
  `response` text NOT NULL,
  `lang` varchar(16) NOT NULL DEFAULT 'en_US',
  `notes` text,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  PRIMARY KEY (`canned_id`),
  UNIQUE KEY `title` (`title`),
  KEY `dept_id` (`dept_id`),
  KEY `active` (`isenabled`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- Vypisuji data pro tabulku `ost_canned_response`
--

INSERT INTO `ost_canned_response` (`canned_id`, `dept_id`, `isenabled`, `title`, `response`, `lang`, `notes`, `created`, `updated`) VALUES
(1, 0, 1, 'What is osTicket (sample)?', 'osTicket is a widely-used open source support ticket system, an\nattractive alternative to higher-cost and complex customer support\nsystems - simple, lightweight, reliable, open source, web-based and easy\nto setup and use.', 'en_US', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(2, 0, 1, 'Sample (with variables)', 'Hi %{ticket.name.first},\n<br>\n<br>\nYour ticket #%{ticket.number} created on %{ticket.create_date} is in\n%{ticket.dept.name} department.', 'en_US', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_config`
--

CREATE TABLE IF NOT EXISTS `ost_config` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `namespace` varchar(64) NOT NULL,
  `key` varchar(64) NOT NULL,
  `value` text NOT NULL,
  `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `namespace` (`namespace`,`key`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=107 ;

--
-- Vypisuji data pro tabulku `ost_config`
--

INSERT INTO `ost_config` (`id`, `namespace`, `key`, `value`, `updated`) VALUES
(1, 'core', 'admin_email', 'programator.hajek@gmail.com', '2017-03-17 07:14:24'),
(2, 'core', 'helpdesk_url', 'http://helpdesk.naturhouse-cz.cz/', '2017-03-22 15:14:54'),
(3, 'core', 'helpdesk_title', 'Naturhouse', '2017-03-17 07:14:24'),
(4, 'core', 'schema_signature', '98ad7d550c26ac44340350912296e673', '2017-03-17 07:14:24'),
(5, 'core', 'time_format', 'hh:mm a', '2017-03-17 07:14:24'),
(6, 'core', 'date_format', 'MM/dd/y', '2017-03-17 07:14:24'),
(7, 'core', 'datetime_format', 'MM/dd/y h:mm a', '2017-03-17 07:14:24'),
(8, 'core', 'daydatetime_format', 'EEE, MMM d y h:mm a', '2017-03-17 07:14:24'),
(9, 'core', 'default_priority_id', '2', '2017-03-17 07:14:24'),
(10, 'core', 'enable_daylight_saving', '', '2017-03-17 07:14:24'),
(11, 'core', 'reply_separator', '-- reply above this line --', '2017-03-17 07:14:24'),
(12, 'core', 'isonline', '1', '2017-03-17 07:14:24'),
(13, 'core', 'staff_ip_binding', '', '2017-03-17 07:14:24'),
(14, 'core', 'staff_max_logins', '4', '2017-03-17 07:14:24'),
(15, 'core', 'staff_login_timeout', '2', '2017-03-17 07:14:24'),
(16, 'core', 'staff_session_timeout', '30', '2017-03-17 07:14:24'),
(17, 'core', 'passwd_reset_period', '', '2017-03-17 07:14:24'),
(18, 'core', 'client_max_logins', '4', '2017-03-17 07:14:24'),
(19, 'core', 'client_login_timeout', '2', '2017-03-17 07:14:24'),
(20, 'core', 'client_session_timeout', '30', '2017-03-17 07:14:24'),
(21, 'core', 'max_page_size', '25', '2017-03-17 07:14:24'),
(22, 'core', 'max_open_tickets', '', '2017-03-17 07:14:24'),
(23, 'core', 'autolock_minutes', '3', '2017-03-17 07:14:24'),
(24, 'core', 'default_smtp_id', '1', '2017-03-17 07:34:53'),
(25, 'core', 'use_email_priority', '', '2017-03-17 07:14:24'),
(26, 'core', 'enable_kb', '', '2017-03-17 07:14:24'),
(27, 'core', 'enable_premade', '1', '2017-03-17 07:14:24'),
(28, 'core', 'enable_captcha', '', '2017-03-17 07:14:24'),
(29, 'core', 'enable_auto_cron', '1', '2017-03-17 07:34:53'),
(30, 'core', 'enable_mail_polling', '1', '2017-03-17 07:34:53'),
(31, 'core', 'send_sys_errors', '1', '2017-03-17 07:14:24'),
(32, 'core', 'send_sql_errors', '1', '2017-03-17 07:14:24'),
(33, 'core', 'send_login_errors', '1', '2017-03-17 07:14:24'),
(34, 'core', 'save_email_headers', '1', '2017-03-17 07:14:24'),
(35, 'core', 'strip_quoted_reply', '1', '2017-03-17 07:14:24'),
(36, 'core', 'ticket_autoresponder', '', '2017-03-17 07:14:24'),
(37, 'core', 'message_autoresponder', '', '2017-03-17 07:14:24'),
(38, 'core', 'ticket_notice_active', '1', '2017-03-17 07:14:24'),
(39, 'core', 'ticket_alert_active', '1', '2017-03-17 07:14:24'),
(40, 'core', 'ticket_alert_admin', '1', '2017-03-17 07:14:24'),
(41, 'core', 'ticket_alert_dept_manager', '1', '2017-03-17 07:14:24'),
(42, 'core', 'ticket_alert_dept_members', '', '2017-03-17 07:14:24'),
(43, 'core', 'message_alert_active', '1', '2017-03-17 07:14:24'),
(44, 'core', 'message_alert_laststaff', '1', '2017-03-17 07:14:24'),
(45, 'core', 'message_alert_assigned', '1', '2017-03-17 07:14:24'),
(46, 'core', 'message_alert_dept_manager', '', '2017-03-17 07:14:24'),
(47, 'core', 'note_alert_active', '', '2017-03-17 07:14:24'),
(48, 'core', 'note_alert_laststaff', '1', '2017-03-17 07:14:24'),
(49, 'core', 'note_alert_assigned', '1', '2017-03-17 07:14:24'),
(50, 'core', 'note_alert_dept_manager', '', '2017-03-17 07:14:24'),
(51, 'core', 'transfer_alert_active', '', '2017-03-17 07:14:24'),
(52, 'core', 'transfer_alert_assigned', '', '2017-03-17 07:14:24'),
(53, 'core', 'transfer_alert_dept_manager', '1', '2017-03-17 07:14:24'),
(54, 'core', 'transfer_alert_dept_members', '', '2017-03-17 07:14:24'),
(55, 'core', 'overdue_alert_active', '1', '2017-03-17 07:14:24'),
(56, 'core', 'overdue_alert_assigned', '1', '2017-03-17 07:14:24'),
(57, 'core', 'overdue_alert_dept_manager', '1', '2017-03-17 07:14:24'),
(58, 'core', 'overdue_alert_dept_members', '', '2017-03-17 07:14:24'),
(59, 'core', 'assigned_alert_active', '1', '2017-03-17 07:14:24'),
(60, 'core', 'assigned_alert_staff', '1', '2017-03-17 07:14:24'),
(61, 'core', 'assigned_alert_team_lead', '', '2017-03-17 07:14:24'),
(62, 'core', 'assigned_alert_team_members', '', '2017-03-17 07:14:24'),
(63, 'core', 'auto_claim_tickets', '1', '2017-03-17 07:14:24'),
(64, 'core', 'show_related_tickets', '1', '2017-03-17 07:14:24'),
(65, 'core', 'show_assigned_tickets', '1', '2017-03-17 07:14:24'),
(66, 'core', 'show_answered_tickets', '', '2017-03-17 07:14:24'),
(67, 'core', 'hide_staff_name', '', '2017-03-17 07:14:24'),
(68, 'core', 'overlimit_notice_active', '', '2017-03-17 07:14:24'),
(69, 'core', 'email_attachments', '1', '2017-03-17 07:14:24'),
(70, 'core', 'ticket_number_format', '######', '2017-03-17 07:14:24'),
(71, 'core', 'ticket_sequence_id', '', '2017-03-17 07:14:24'),
(72, 'core', 'task_number_format', '#', '2017-03-17 07:14:24'),
(73, 'core', 'task_sequence_id', '2', '2017-03-17 07:14:24'),
(74, 'core', 'log_level', '2', '2017-03-17 07:14:24'),
(75, 'core', 'log_graceperiod', '12', '2017-03-17 07:14:24'),
(76, 'core', 'client_registration', 'public', '2017-03-17 07:14:24'),
(77, 'core', 'max_file_size', '67108864', '2017-03-17 07:14:24'),
(78, 'core', 'landing_page_id', '1', '2017-03-17 07:14:24'),
(79, 'core', 'thank-you_page_id', '2', '2017-03-17 07:14:24'),
(80, 'core', 'offline_page_id', '3', '2017-03-17 07:14:24'),
(81, 'core', 'system_language', 'cs', '2017-03-17 08:26:21'),
(82, 'mysqlsearch', 'reindex', '0', '2017-03-17 07:20:18'),
(83, 'core', 'default_email_id', '1', '2017-03-17 07:14:24'),
(84, 'core', 'alert_email_id', '0', '2017-03-17 07:34:53'),
(85, 'core', 'default_dept_id', '1', '2017-03-17 07:14:24'),
(86, 'core', 'default_sla_id', '1', '2017-03-17 07:14:24'),
(87, 'core', 'default_template_id', '1', '2017-03-17 07:14:24'),
(88, 'core', 'default_timezone', 'Europe/Berlin', '2017-03-17 07:14:24'),
(89, 'core', 'default_storage_bk', 'D', '2017-03-17 07:15:52'),
(90, 'core', 'date_formats', '24', '2017-03-17 08:26:35'),
(91, 'core', 'default_locale', '', '2017-03-17 07:15:52'),
(92, 'core', 'secondary_langs', '', '2017-03-17 07:15:52'),
(93, 'core', 'enable_avatars', '1', '2017-03-17 07:15:52'),
(94, 'core', 'enable_richtext', '1', '2017-03-17 07:15:52'),
(95, 'core', 'files_req_auth', '1', '2017-03-17 07:15:52'),
(96, 'core', 'client_logo_id', '3', '2017-03-17 07:20:24'),
(97, 'core', 'staff_logo_id', '3', '2017-03-17 07:20:24'),
(98, 'core', 'staff_backdrop_id', '4', '2017-03-17 08:31:13'),
(99, 'core', 'verify_email_addrs', '1', '2017-03-17 07:34:53'),
(100, 'core', 'accept_unregistered_email', '1', '2017-03-17 07:34:53'),
(101, 'core', 'add_email_collabs', '1', '2017-03-17 07:34:53'),
(104, 'staff.3', 'datetime_format', '', '2017-07-10 14:00:50'),
(105, 'staff.3', 'default_from_name', '', '2017-07-10 14:00:50'),
(106, 'staff.3', 'thread_view_order', '', '2017-07-10 14:00:50');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_content`
--

CREATE TABLE IF NOT EXISTS `ost_content` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `isactive` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `type` varchar(32) NOT NULL DEFAULT 'other',
  `name` varchar(255) NOT NULL,
  `body` text NOT NULL,
  `notes` text,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;

--
-- Vypisuji data pro tabulku `ost_content`
--

INSERT INTO `ost_content` (`id`, `isactive`, `type`, `name`, `body`, `notes`, `created`, `updated`) VALUES
(1, 1, 'landing', 'Landing', ' <h1>Vítejte v centru podpory Naturhouse</h1>Centrum podpory pro dietologický software Naturhouse<br /><br /> ', 'The Landing Page refers to the content of the Customer Portal''s initial view. The template modifies the content seen above the two links <strong>Open a New Ticket</strong> and <strong>Check Ticket Status</strong>.', '2017-03-17 08:14:24', '2017-03-17 09:34:21'),
(2, 1, 'thank-you', 'Thank You', '%{ticket.name}, <br /><br /> Váš požadavek byl přijat. Budeme se mu věnovat co nejdříve to bude možné.<br />Děkujeme<br /><br />Tým Naturhouse', 'This template defines the content displayed on the Thank-You page after a Client submits a new ticket in the Client Portal.', '2017-03-17 08:14:24', '2017-03-17 09:35:37'),
(3, 1, 'offline', 'Offline', ' <h1> <span>Centum podpory Naturhouse</span> </h1>Bohužel jsme zrovna offline ... vratťe se za chvilku<br /><br /> ', 'The Offline Page appears in the Customer Portal when the Help Desk is offline.', '2017-03-17 08:14:24', '2017-03-17 09:34:56'),
(4, 1, 'registration-staff', 'Welcome to osTicket', '<h3><strong>Hi %{recipient.name.first},</strong></h3> <div> We''ve created an account for you at our help desk at %{url}.<br /> <br /> Please follow the link below to confirm your account and gain access to your tickets.<br /> <br /> <a href="%{link}">%{link}</a><br /> <br /> <em style="font-size: small">Your friendly Customer Support System<br /> %{company.name}</em> </div>', 'This template defines the initial email (optional) sent to Agents when an account is created on their behalf.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(5, 1, 'pwreset-staff', 'osTicket Staff Password Reset', '<h3><strong>Hi %{staff.name.first},</strong></h3> <div> A password reset request has been submitted on your behalf for the helpdesk at %{url}.<br /> <br /> If you feel that this has been done in error, delete and disregard this email. Your account is still secure and no one has been given access to it. It is not locked and your password has not been reset. Someone could have mistakenly entered your email address.<br /> <br /> Follow the link below to login to the help desk and change your password.<br /> <br /> <a href="%{link}">%{link}</a><br /> <br /> <em style="font-size: small">Your friendly Customer Support System</em> <br /> <img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" alt="Powered by osTicket" width="126" height="19" style="width: 126px" /> </div>', 'This template defines the email sent to Staff who select the <strong>Forgot My Password</strong> link on the Staff Control Panel Log In page.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(6, 1, 'banner-staff', 'Authentication Required', '', 'This is the initial message and banner shown on the Staff Log In page. The first input field refers to the red-formatted text that appears at the top. The latter textarea is for the banner content which should serve as a disclaimer.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(7, 1, 'registration-client', 'Welcome to %{company.name}', '<h3><strong>Hi %{recipient.name.first},</strong></h3> <div> We''ve created an account for you at our help desk at %{url}.<br /> <br /> Please follow the link below to confirm your account and gain access to your tickets.<br /> <br /> <a href="%{link}">%{link}</a><br /> <br /> <em style="font-size: small">Your friendly Customer Support System <br /> %{company.name}</em> </div>', 'This template defines the email sent to Clients when their account has been created in the Client Portal or by an Agent on their behalf. This email serves as an email address verification. Please use %{link} somewhere in the body.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(8, 1, 'pwreset-client', '%{company.name} Help Desk Access', '<h3><strong>Hi %{user.name.first},</strong></h3> <div> A password reset request has been submitted on your behalf for the helpdesk at %{url}.<br /> <br /> If you feel that this has been done in error, delete and disregard this email. Your account is still secure and no one has been given access to it. It is not locked and your password has not been reset. Someone could have mistakenly entered your email address.<br /> <br /> Follow the link below to login to the help desk and change your password.<br /> <br /> <a href="%{link}">%{link}</a><br /> <br /> <em style="font-size: small">Your friendly Customer Support System <br /> %{company.name}</em> </div>', 'This template defines the email sent to Clients who select the <strong>Forgot My Password</strong> link on the Client Log In page.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(9, 1, 'banner-client', 'Sign in to %{company.name}', 'To better serve you, we encourage our Clients to register for an account.', 'This composes the header on the Client Log In page. It can be useful to inform your Clients about your log in and registration policies.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(10, 1, 'registration-confirm', 'Account registration', '<div><strong>Thanks for registering for an account.</strong><br/> <br /> We''ve just sent you an email to the address you entered. Please follow the link in the email to confirm your account and gain access to your tickets. </div>', 'This templates defines the page shown to Clients after completing the registration form. The template should mention that the system is sending them an email confirmation link and what is the next step in the registration process.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(11, 1, 'registration-thanks', 'Account Confirmed!', '<div> <strong>Thanks for registering for an account.</strong><br /> <br /> You''ve confirmed your email address and successfully activated your account. You may proceed to open a new ticket or manage existing tickets.<br /> <br /> <em>Your friendly support center</em><br /> %{company.name} </div>', 'This template defines the content displayed after Clients successfully register by confirming their account. This page should inform the user that registration is complete and that the Client can now submit a ticket or access existing tickets.', '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(12, 1, 'access-link', 'Ticket [#%{ticket.number}] Access Link', '<h3><strong>Hi %{recipient.name.first},</strong></h3> <div> An access link request for ticket #%{ticket.number} has been submitted on your behalf for the helpdesk at %{url}.<br /> <br /> Follow the link below to check the status of the ticket #%{ticket.number}.<br /> <br /> <a href="%{recipient.ticket_link}">%{recipient.ticket_link}</a><br /> <br /> If you <strong>did not</strong> make the request, please delete and disregard this email. Your account is still secure and no one has been given access to the ticket. Someone could have mistakenly entered your email address.<br /> <br /> --<br /> %{company.name} </div>', 'This template defines the notification for Clients that an access link was sent to their email. The ticket number and email address trigger the access link.', '2017-03-17 08:14:24', '2017-03-17 08:14:24');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_department`
--

CREATE TABLE IF NOT EXISTS `ost_department` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `pid` int(11) unsigned DEFAULT NULL,
  `tpl_id` int(10) unsigned NOT NULL DEFAULT '0',
  `sla_id` int(10) unsigned NOT NULL DEFAULT '0',
  `email_id` int(10) unsigned NOT NULL DEFAULT '0',
  `autoresp_email_id` int(10) unsigned NOT NULL DEFAULT '0',
  `manager_id` int(10) unsigned NOT NULL DEFAULT '0',
  `flags` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(128) NOT NULL DEFAULT '',
  `signature` text NOT NULL,
  `ispublic` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `group_membership` tinyint(1) NOT NULL DEFAULT '0',
  `ticket_auto_response` tinyint(1) NOT NULL DEFAULT '1',
  `message_auto_response` tinyint(1) NOT NULL DEFAULT '0',
  `path` varchar(128) NOT NULL DEFAULT '/',
  `updated` datetime NOT NULL,
  `created` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`,`pid`),
  KEY `manager_id` (`manager_id`),
  KEY `autoresp_email_id` (`autoresp_email_id`),
  KEY `tpl_id` (`tpl_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Vypisuji data pro tabulku `ost_department`
--

INSERT INTO `ost_department` (`id`, `pid`, `tpl_id`, `sla_id`, `email_id`, `autoresp_email_id`, `manager_id`, `flags`, `name`, `signature`, `ispublic`, `group_membership`, `ticket_auto_response`, `message_auto_response`, `path`, `updated`, `created`) VALUES
(1, NULL, 0, 0, 0, 0, 0, 0, 'Support', 'Support Department', 1, 1, 1, 1, '/1/', '2017-03-17 08:14:23', '2017-03-17 08:14:23'),
(2, NULL, 0, 1, 0, 0, 0, 0, 'Sales', 'Sales and Customer Retention', 1, 1, 1, 1, '/2/', '2017-03-17 08:14:23', '2017-03-17 08:14:23'),
(3, NULL, 0, 0, 0, 0, 0, 0, 'Maintenance', 'Maintenance Department', 1, 0, 1, 1, '/3/', '2017-03-17 08:14:23', '2017-03-17 08:14:23');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_draft`
--

CREATE TABLE IF NOT EXISTS `ost_draft` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `staff_id` int(11) unsigned NOT NULL,
  `namespace` varchar(32) NOT NULL DEFAULT '',
  `body` text NOT NULL,
  `extra` text,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ;

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_email`
--

CREATE TABLE IF NOT EXISTS `ost_email` (
  `email_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `noautoresp` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `priority_id` tinyint(3) unsigned NOT NULL DEFAULT '2',
  `dept_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `topic_id` int(11) unsigned NOT NULL DEFAULT '0',
  `email` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `userid` varchar(255) NOT NULL,
  `userpass` varchar(255) CHARACTER SET ascii NOT NULL,
  `mail_active` tinyint(1) NOT NULL DEFAULT '0',
  `mail_host` varchar(255) NOT NULL,
  `mail_protocol` enum('POP','IMAP') NOT NULL DEFAULT 'POP',
  `mail_encryption` enum('NONE','SSL') NOT NULL,
  `mail_port` int(6) DEFAULT NULL,
  `mail_fetchfreq` tinyint(3) NOT NULL DEFAULT '5',
  `mail_fetchmax` tinyint(4) NOT NULL DEFAULT '30',
  `mail_archivefolder` varchar(255) DEFAULT NULL,
  `mail_delete` tinyint(1) NOT NULL DEFAULT '0',
  `mail_errors` tinyint(3) NOT NULL DEFAULT '0',
  `mail_lasterror` datetime DEFAULT NULL,
  `mail_lastfetch` datetime DEFAULT NULL,
  `smtp_active` tinyint(1) DEFAULT '0',
  `smtp_host` varchar(255) NOT NULL,
  `smtp_port` int(6) DEFAULT NULL,
  `smtp_secure` tinyint(1) NOT NULL DEFAULT '1',
  `smtp_auth` tinyint(1) NOT NULL DEFAULT '1',
  `smtp_spoofing` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `notes` text,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  PRIMARY KEY (`email_id`),
  UNIQUE KEY `email` (`email`),
  KEY `priority_id` (`priority_id`),
  KEY `dept_id` (`dept_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Vypisuji data pro tabulku `ost_email`
--

INSERT INTO `ost_email` (`email_id`, `noautoresp`, `priority_id`, `dept_id`, `topic_id`, `email`, `name`, `userid`, `userpass`, `mail_active`, `mail_host`, `mail_protocol`, `mail_encryption`, `mail_port`, `mail_fetchfreq`, `mail_fetchmax`, `mail_archivefolder`, `mail_delete`, `mail_errors`, `mail_lasterror`, `mail_lastfetch`, `smtp_active`, `smtp_host`, `smtp_port`, `smtp_secure`, `smtp_auth`, `smtp_spoofing`, `notes`, `created`, `updated`) VALUES
(1, 0, 2, 1, 0, 'helpdesk@naturhouse-cz.cz', 'Podpora Naturhouse', 'helpdesk@naturhouse-cz.cz', '$2$JDEkEmQXo2yI7R4QgVWWDa562ybQH5FpnF7Hk6V4XDbF0r8=', 1, 'email.naturhouse-cz.cz', 'POP', 'SSL', 995, 5, 30, NULL, 1, 0, '2017-07-31 10:10:48', '2017-08-11 01:35:02', 1, 'email.naturhouse-cz.cz', 587, 1, 1, 0, NULL, '2017-03-17 08:14:24', '2017-07-31 10:11:07'),
(3, 0, 2, 1, 0, 'noreply@naturhouse-cz.cz', '', '', '', 0, '', 'POP', 'NONE', NULL, 5, 30, NULL, 0, 0, NULL, NULL, 0, '', NULL, 1, 1, 0, NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_email_account`
--

CREATE TABLE IF NOT EXISTS `ost_email_account` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1',
  `protocol` varchar(64) NOT NULL DEFAULT '',
  `host` varchar(128) NOT NULL DEFAULT '',
  `port` int(11) NOT NULL,
  `username` varchar(128) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `options` varchar(512) DEFAULT NULL,
  `errors` int(11) unsigned DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `lastconnect` timestamp NULL DEFAULT NULL,
  `lasterror` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_email_template`
--

CREATE TABLE IF NOT EXISTS `ost_email_template` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `tpl_id` int(11) unsigned NOT NULL,
  `code_name` varchar(32) NOT NULL,
  `subject` varchar(255) NOT NULL DEFAULT '',
  `body` text NOT NULL,
  `notes` text,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `template_lookup` (`tpl_id`,`code_name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=20 ;

--
-- Vypisuji data pro tabulku `ost_email_template`
--

INSERT INTO `ost_email_template` (`id`, `tpl_id`, `code_name`, `subject`, `body`, `notes`, `created`, `updated`) VALUES
(1, 1, 'ticket.autoresp', 'Požadavek [#%{ticket.number}]', 'Váš požadavek jsme přijali pod číslem #%{ticket.number}. Budeme se mu věnovat hned, jak to bude možné. Stav vašeho požadavku můžete průběžně sledovat <a href="%%7Brecipient.ticket_link%7D">zde</a>. <br /><br /><br /> Váš %{company.name} team, <br /> %{signature} <br /><hr /> <em>If you wish to provide additional comments or information regarding the issue, please reply to this email or <a href="%%7Brecipient.ticket_link%7D"><span style="color:rgb(84, 141, 212)">login to your account</span></a> for a complete archive of your support requests.</em><br /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 09:40:21'),
(2, 1, 'ticket.autoreply', 'Re: %{ticket.subject} [#%{ticket.number}]', ' <h3><strong>Dear %{recipient.name.first},</strong></h3> A request for support has been created and assigned ticket <a href="%%7Brecipient.ticket_link%7D">#%{ticket.number}</a> with the following automatic reply <br /><br /> Topic: <strong>%{ticket.topic.name}</strong> <br /> Subject: <strong>%{ticket.subject}</strong> <br /><br /> %{response} <br /><br /><div style="color:rgb(127, 127, 127)">Your %{company.name} Team,<br /> %{signature}</div> <hr /> <div style="color:rgb(127, 127, 127);font-size:small"><em>We hope this response has sufficiently answered your questions. If you wish to provide additional comments or informatione, please reply to this email or <a href="%%7Brecipient.ticket_link%7D"><span style="color:rgb(84, 141, 212)">login to your account</span></a> for a complete archive of your support requests.</em></div> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(3, 1, 'message.autoresp', 'Message Confirmation', ' <h3><strong>Dear %{recipient.name.first},</strong></h3> Your reply to support request <a href="%%7Brecipient.ticket_link%7D">#%{ticket.number}</a> has been noted <br /><br /><div style="color:rgb(127, 127, 127)"> Your %{company.name} Team,<br /> %{signature} </div> <hr /> <div style="color:rgb(127, 127, 127);font-size:small;text-align:center"> <em>You can view the support request progress <a href="%%7Brecipient.ticket_link%7D">online here</a></em> </div> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(4, 1, 'ticket.notice', '%{ticket.subject} [#%{ticket.number}]', ' <h3><strong>Dear %{recipient.name.first},</strong></h3> Our customer care team has created a ticket, <a href="%%7Brecipient.ticket_link%7D">#%{ticket.number}</a> on your behalf, with the following details and summary: <br /><br /> Topic: <strong>%{ticket.topic.name}</strong> <br /> Subject: <strong>%{ticket.subject}</strong> <br /><br /> %{message} <br /><br /> If need be, a representative will follow-up with you as soon as possible. You can also <a href="%%7Brecipient.ticket_link%7D">view this ticket''s progress online</a>. <br /><br /><div style="color:rgb(127, 127, 127)"> Your %{company.name} Team,<br /> %{signature}</div> <hr /> <div style="color:rgb(127, 127, 127);font-size:small"><em>If you wish to provide additional comments or information regarding the issue, please reply to this email or <a href="%%7Brecipient.ticket_link%7D"><span style="color:rgb(84, 141, 212)">login to your account</span></a> for a complete archive of your support requests.</em></div> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(5, 1, 'ticket.overlimit', 'Open Tickets Limit Reached', ' <h3><strong>Dear %{ticket.name.first},</strong></h3> You have reached the maximum number of open tickets allowed. To be able to open another ticket, one of your pending tickets must be closed. To update or add comments to an open ticket simply <a href="%%7Burl%7D/tickets.php?e=%%7Bticket.email%7D">login to our helpdesk</a>. <br /><br /> Thank you,<br /> Support Ticket System', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(6, 1, 'ticket.reply', 'Re: %{ticket.subject} [#%{ticket.number}]', '%{response} <br /><br /> Váš %{company.name} Team,<br /> %{signature} <br /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 09:45:32'),
(7, 1, 'ticket.activity.notice', 'Re: %{ticket.subject} [#%{ticket.number}]', ' <h3><strong>Dear %{recipient.name.first},</strong></h3> <div> <em>%{poster.name}</em> just logged a message to a ticket in which you participate. </div> <br /> %{message} <br /><br /><hr /> <div style="color:rgb(127, 127, 127);font-size:small;text-align:center"> <em>You''re getting this email because you are a collaborator on ticket <a href="%%7Brecipient.ticket_link%7D" style="color:rgb(84, 141, 212)">#%{ticket.number}</a>. To participate, simply reply to this email or <a href="%%7Brecipient.ticket_link%7D" style="color:rgb(84, 141, 212)">click here</a> for a complete archive of the ticket thread.</em> </div> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(8, 1, 'ticket.alert', 'New Ticket Alert', ' <h2>Hi %{recipient.name},</h2> New ticket #%{ticket.number} created <br /><br /><table><tbody> <tr> <td> <strong>From</strong>: </td> <td> %{ticket.name} </td> </tr> <tr> <td> <strong>Department</strong>: </td> <td> %{ticket.dept.name} </td> </tr> </tbody></table> <br /> %{message} <br /><br /><hr /> <div>To view or respond to the ticket, please <a href="%%7Bticket.staff_link%7D">login</a> to the support ticket system</div> <em style="font-size:small">Your friendly Customer Support System</em> <br /><a href="http://osticket.com/"><img width="126" height="19" style="width:126px" alt="Powered By osTicket" src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" /></a> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(9, 1, 'message.alert', 'New Message Alert', ' <h3><strong>Hi %{recipient.name},</strong></h3> New message appended to ticket <a href="%%7Bticket.staff_link%7D">#%{ticket.number}</a> <br /><br /><table><tbody> <tr> <td> <strong>From</strong>: </td> <td> %{ticket.name} </td> </tr> <tr> <td> <strong>Department</strong>: </td> <td> %{ticket.dept.name} </td> </tr> </tbody></table> <br /> %{message} <br /><br /><hr /> <div>To view or respond to the ticket, please <a href="%%7Bticket.staff_link%7D"><span style="color:rgb(84, 141, 212)">login</span></a> to the support ticket system</div> <em style="color:rgb(127,127,127);font-size:small">Your friendly Customer Support System</em><br /><img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" alt="Powered by osTicket" width="126" height="19" style="width:126px" /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(10, 1, 'note.alert', 'New Internal Activity Alert', ' <h3><strong>Hi %{recipient.name},</strong></h3> An agent has logged activity on ticket <a href="%%7Bticket.staff_link%7D">#%{ticket.number}</a> <br /><br /><table><tbody> <tr> <td> <strong>From</strong>: </td> <td> %{note.poster} </td> </tr> <tr> <td> <strong>Title</strong>: </td> <td> %{note.title} </td> </tr> </tbody></table> <br /> %{note.message} <br /><br /><hr /> To view/respond to the ticket, please <a href="%%7Bticket.staff_link%7D">login</a> to the support ticket system <br /><br /><em style="font-size:small">Your friendly Customer Support System</em> <br /><img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" alt="Powered by osTicket" width="126" height="19" style="width:126px" /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(11, 1, 'assigned.alert', 'Ticket Assigned to you', ' <h3><strong>Hi %{assignee.name.first},</strong></h3> Ticket <a href="%%7Bticket.staff_link%7D">#%{ticket.number}</a> has been assigned to you by %{assigner.name.short} <br /><br /><table><tbody> <tr> <td> <strong>From</strong>: </td> <td> %{ticket.name} </td> </tr> <tr> <td> <strong>Subject</strong>: </td> <td> %{ticket.subject} </td> </tr> </tbody></table> <br /> %{comments} <br /><br /><hr /> <div>To view/respond to the ticket, please <a href="%%7Bticket.staff_link%7D"><span style="color:rgb(84, 141, 212)">login</span></a> to the support ticket system</div> <em style="font-size:small">Your friendly Customer Support System</em> <br /><img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" alt="Powered by osTicket" width="126" height="19" style="width:126px" /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(12, 1, 'transfer.alert', 'Ticket #%{ticket.number} transfer - %{ticket.dept.name}', ' <h3>Hi %{recipient.name},</h3> Ticket <a href="%%7Bticket.staff_link%7D">#%{ticket.number}</a> has been transferred to the %{ticket.dept.name} department by <strong>%{staff.name.short}</strong> <br /><br /><blockquote> %{comments} </blockquote> <hr /> <div>To view or respond to the ticket, please <a href="%%7Bticket.staff_link%7D">login</a> to the support ticket system. </div> <em style="font-size:small">Your friendly Customer Support System</em> <br /><a href="http://osticket.com/"><img width="126" height="19" alt="Powered By osTicket" style="width:126px" src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" /></a> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(13, 1, 'ticket.overdue', 'Stale Ticket Alert', ' <h3> <strong>Hi %{recipient.name}</strong>,</h3> A ticket, <a href="%%7Bticket.staff_link%7D">#%{ticket.number}</a> is seriously overdue. <br /><br /> We should all work hard to guarantee that all tickets are being addressed in a timely manner. <br /><br /> Signed,<br /> %{ticket.dept.manager.name} <hr /> <div>To view or respond to the ticket, please <a href="%%7Bticket.staff_link%7D"><span style="color:rgb(84, 141, 212)">login</span></a> to the support ticket system. You''re receiving this notice because the ticket is assigned directly to you or to a team or department of which you''re a member.</div> <em style="font-size:small">Your friendly <span style="font-size:smaller">(although with limited patience)</span> Customer Support System</em><br /><img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" height="19" alt="Powered by osTicket" width="126" style="width:126px" /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(14, 1, 'task.alert', 'New Task Alert', ' <h2>Hi %{recipient.name},</h2> New task <a href="%%7Btask.staff_link%7D">#%{task.number}</a> created <br /><br /><table><tbody><tr> <td> <strong>Department</strong>: </td> <td> %{task.dept.name} </td> </tr></tbody></table> <br /> %{task.description} <br /><br /><hr /> <div>To view or respond to the ticket, please <a href="%%7Btask.staff_link%7D">login</a> to the support system</div> <em style="font-size:small">Your friendly Customer Support System</em> <br /><a href="http://osticket.com/"><img width="126" height="19" style="width:126px" alt="Powered By osTicket" src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" /></a> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(15, 1, 'task.activity.notice', 'Re: %{task.title} [#%{task.number}]', ' <h3><strong>Dear %{recipient.name.first},</strong></h3> <div> <em>%{poster.name}</em> just logged a message to a task in which you participate. </div> <br /> %{message} <br /><br /><hr /> <div style="color:rgb(127, 127, 127);font-size:small;text-align:center"> <em>You''re getting this email because you are a collaborator on task #%{task.number}. To participate, simply reply to this email.</em> </div> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(16, 1, 'task.activity.alert', 'Task Activity [#%{task.number}] - %{activity.title}', ' <h3><strong>Hi %{recipient.name},</strong></h3> Task <a href="%%7Btask.staff_link%7D">#%{task.number}</a> updated: %{activity.description} <br /><br /> %{message} <br /><br /><hr /> <div>To view or respond to the task, please <a href="%%7Btask.staff_link%7D"><span style="color:rgb(84, 141, 212)">login</span></a> to the support system</div> <em style="color:rgb(127,127,127);font-size:small">Your friendly Customer Support System</em><br /><img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" alt="Powered by osTicket" width="126" height="19" style="width:126px" /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(17, 1, 'task.assignment.alert', 'Task Assigned to you', ' <h3><strong>Hi %{assignee.name.first},</strong></h3> Task <a href="%%7Btask.staff_link%7D">#%{task.number}</a> has been assigned to you by %{assigner.name.short} <br /><br /> %{comments} <br /><br /><hr /> <div>To view/respond to the task, please <a href="%%7Btask.staff_link%7D"><span style="color:rgb(84, 141, 212)">login</span></a> to the support system</div> <em style="font-size:small">Your friendly Customer Support System</em> <br /><img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" alt="Powered by osTicket" width="126" height="19" style="width:126px" /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(18, 1, 'task.transfer.alert', 'Task #%{task.number} transfer - %{task.dept.name}', ' <h3>Hi %{recipient.name},</h3> Task <a href="%%7Btask.staff_link%7D">#%{task.number}</a> has been transferred to the %{task.dept.name} department by <strong>%{staff.name.short}</strong> <br /><br /><blockquote> %{comments} </blockquote> <hr /> <div>To view or respond to the task, please <a href="%%7Btask.staff_link%7D">login</a> to the support system. </div> <em style="font-size:small">Your friendly Customer Support System</em> <br /><a href="http://osticket.com/"><img width="126" height="19" alt="Powered By osTicket" style="width:126px" src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" /></a> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24'),
(19, 1, 'task.overdue.alert', 'Stale Task Alert', ' <h3> <strong>Hi %{recipient.name}</strong>,</h3> A task, <a href="%%7Btask.staff_link%7D">#%{task.number}</a> is seriously overdue. <br /><br /> We should all work hard to guarantee that all tasks are being addressed in a timely manner. <br /><br /> Signed,<br /> %{task.dept.manager.name} <hr /> <div>To view or respond to the task, please <a href="%%7Btask.staff_link%7D"><span style="color:rgb(84, 141, 212)">login</span></a> to the support system. You''re receiving this notice because the task is assigned directly to you or to a team or department of which you''re a member.</div> <em style="font-size:small">Your friendly <span style="font-size:smaller">(although with limited patience)</span> Customer Support System</em><br /><img src="cid:b56944cb4722cc5cda9d1e23a3ea7fbc" height="19" alt="Powered by osTicket" width="126" style="width:126px" /> ', NULL, '2017-03-17 08:14:24', '2017-03-17 08:14:24');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_email_template_group`
--

CREATE TABLE IF NOT EXISTS `ost_email_template_group` (
  `tpl_id` int(11) NOT NULL AUTO_INCREMENT,
  `isactive` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `name` varchar(32) NOT NULL DEFAULT '',
  `lang` varchar(16) NOT NULL DEFAULT 'en_US',
  `notes` text,
  `created` datetime NOT NULL,
  `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`tpl_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- Vypisuji data pro tabulku `ost_email_template_group`
--

INSERT INTO `ost_email_template_group` (`tpl_id`, `isactive`, `name`, `lang`, `notes`, `created`, `updated`) VALUES
(1, 1, 'osTicket Default Template (HTML)', 'en_US', 'Default osTicket templates', '2017-03-17 08:14:24', '2017-03-17 07:14:24'),
(2, 0, 'české', 'cs', '', '2017-03-17 09:40:53', '2017-03-17 08:40:53');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_faq`
--

CREATE TABLE IF NOT EXISTS `ost_faq` (
  `faq_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `category_id` int(10) unsigned NOT NULL DEFAULT '0',
  `ispublished` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `question` varchar(255) NOT NULL,
  `answer` text NOT NULL,
  `keywords` tinytext,
  `notes` text,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  PRIMARY KEY (`faq_id`),
  UNIQUE KEY `question` (`question`),
  KEY `category_id` (`category_id`),
  KEY `ispublished` (`ispublished`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_faq_category`
--

CREATE TABLE IF NOT EXISTS `ost_faq_category` (
  `category_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ispublic` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `name` varchar(125) DEFAULT NULL,
  `description` text NOT NULL,
  `notes` tinytext NOT NULL,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  PRIMARY KEY (`category_id`),
  KEY `ispublic` (`ispublic`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_faq_topic`
--

CREATE TABLE IF NOT EXISTS `ost_faq_topic` (
  `faq_id` int(10) unsigned NOT NULL,
  `topic_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`faq_id`,`topic_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_file`
--

CREATE TABLE IF NOT EXISTS `ost_file` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ft` char(1) NOT NULL DEFAULT 'T',
  `bk` char(1) NOT NULL DEFAULT 'D',
  `type` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT '',
  `size` bigint(20) unsigned NOT NULL DEFAULT '0',
  `key` varchar(86) CHARACTER SET ascii NOT NULL,
  `signature` varchar(86) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `attrs` varchar(255) DEFAULT NULL,
  `created` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ft` (`ft`),
  KEY `key` (`key`),
  KEY `signature` (`signature`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=34 ;

--
-- Vypisuji data pro tabulku `ost_file`
--

INSERT INTO `ost_file` (`id`, `ft`, `bk`, `type`, `size`, `key`, `signature`, `name`, `attrs`, `created`) VALUES
(1, 'T', 'D', 'image/png', 9452, 'b56944cb4722cc5cda9d1e23a3ea7fbc', 'gjMyblHhAxCQvzLfPBW3EjMUY1AmQQmz', 'powered-by-osticket.png', NULL, '2017-03-17 08:14:23'),
(2, 'T', 'D', 'text/plain', 24, 'JUOU_MWtx86n3ccfeGGNagoRoTDtol7o', 'MWtx86n3ccfeGGNafaacpitTxmJ4h3Ls', 'osTicket.txt', NULL, '2017-03-17 08:14:24'),
(3, 'L', 'D', 'image/png', 9872, '8ZMwz65Neb29duECg1X8Q4bs0pw6a-Vc', '65Neb29duECg1X8QLRLUt39_RaKQpHU4', 'client_login_cs.png', NULL, '2017-03-17 08:20:17'),
(4, 'B', 'D', 'image/jpeg', 4530980, 'yz1t91xRbPyqXvlg4qeY88o1C-ms0HBU', '1xRbPyqXvlg4qeY8F43rOXSMVJbJuQ5C', 'Naturhouse-interno.jpg', NULL, '2017-03-17 09:31:08'),
(5, 'T', 'D', 'image/jpeg', 56172, 'qEpZ3UaV2ibmeGKEgvALLefmQ0_XEbMQ', 'UaV2ibmeGKEgvALLj_7ID5hp7X0OJnQh', 'dieta.JPG', NULL, '2017-03-27 20:35:03'),
(7, 'T', 'D', 'image/png', 23707, 'SYe9w6ENjnnH83QfEjgBUOu7MkD0sVPg', '6ENjnnH83QfEjgBUD3rSj8FtRALLBlVM', 'idecka.png', NULL, '2017-04-07 13:48:58'),
(8, 'T', 'D', 'image/jpeg', 106493, 'n-prxm0J6xpt4b1lUx3kcaq95QWu_rQw', 'm0J6xpt4b1lUx3kceAIKMFQyHLWXmhXL', 'Výstřižek.JPG', NULL, '2017-04-18 16:55:31'),
(9, 'T', 'D', 'image/png', 105360, 'Bx4uJID-tpZkkdI2bG_HiWaB4QdSDft8', 'ID-tpZkkdI2bG_HiAJhAL7cZBRC0uORV', 'printscreen.png', NULL, '2017-06-05 19:35:02'),
(10, 'T', 'D', 'image/jpeg', 35165, '3xX2-oRC5Njz39aPfwAmjg3gJaFFh9gk', 'oRC5Njz39aPfwAmj3mJHNQw5ZkMKhTC-', 'B2CD69860D534CE3A7652DBC0DBD2880.jpg', NULL, '2017-06-16 14:50:01'),
(11, 'T', 'D', 'image/jpeg', 85676, 'WuWphbBP5arJuxom0XwNYoCEXPHeChYw', 'bBP5arJuxom0XwNYEU4NAKE1Pbrh3QBx', 'Výstřižek.JPG', NULL, '2017-06-23 09:45:02'),
(12, 'T', 'D', 'application/zip', 1214088, '-jnZdxfTZ8UovC_pfpiRDWLPcxZDbaQo', 'xfTZ8UovC_pfpiRDsA7oMu5aRbOT2eVi', 'chybaprogram.zip', NULL, '2017-06-23 12:30:02'),
(13, 'T', 'D', 'image/jpeg', 54553, 'oiAMYpcS1rVaGnXljdLn-tFBNShiOI6s', 'pcS1rVaGnXljdLn-WXMzwkUCbXwnbpXJ', 'kal.JPG', NULL, '2017-07-03 14:15:01'),
(14, 'T', 'D', 'image/jpeg', 67842, '5RKMaxVTsMW-U9s6bu3dshX712kCVwlk', 'xVTsMW-U9s6bu3dsQLX7-ZWBeokAei0U', 'kal1.JPG', NULL, '2017-07-03 14:15:01'),
(15, 'T', 'D', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 1400251, 'K5vOtjec6yzM-GVfG7iyarWiDDcVzoQY', 'jec6yzM-GVfG7iyacWYdOpZWJ5-kJ5ja', 'Nový program  NICAAM.docx', NULL, '2017-07-07 11:50:02'),
(16, 'T', 'D', 'image/jpeg', 41170, 'gPiPItWIyimc7VBnLws-ZQBqBIpCPDfI', 'tWIyimc7VBnLws-Zd7UXz78grkgrnZ5l', 'program.JPG', NULL, '2017-07-10 08:15:02'),
(17, 'T', 'D', 'application/zip', 1162200, 'IHzhpZNPizN2Lq1rRR7r33IlT1gFFaF8', 'ZNPizN2Lq1rRR7r3eD8qKePp6S8Aiuf_', 'zaznam.zip', NULL, '2017-07-10 14:30:02'),
(18, 'T', 'D', 'image/jpeg', 92966, 'id8JKcr28SkD0dFn-3QM-NvGWpAEEVVw', 'cr28SkD0dFn-3QM-o0qa5yTwW-VA0AZ9', 'NICAAM_error.jpg', NULL, '2017-07-11 11:25:01'),
(19, 'T', 'D', 'image/png', 196071, '1eeqJ5Nn50zuLoYzt4maHEUeJMGcyxdo', '5Nn50zuLoYzt4maHcpDdxDKwv4Rrf-5J', 'image.png', NULL, '2017-07-24 12:45:02'),
(20, 'T', 'D', 'image/png', 91898, 'h-T9mHdM-AJfBjOwp6NKDxw7qrMC7-UM', 'HdM-AJfBjOwp6NKD9sLJRGKCP8biNJhQ', 'image.png', NULL, '2017-07-24 12:45:02'),
(21, 'T', 'D', 'image/png', 95896, 'aecSF2oxw4UmD1Q8CM7sEntQPCc5lA9Q', '2oxw4UmD1Q8CM7sEk3b7l3byAv248i23', 'image.png', NULL, '2017-07-24 12:45:02'),
(22, 'T', 'D', 'image/png', 113607, 'Gp3gkNk9A-xNbfflnpF-U0ejhyV8ymQs', 'Nk9A-xNbfflnpF-UX5BdgKUOPYVz9kBw', 'image.png', NULL, '2017-07-24 12:45:02'),
(23, 'T', 'D', 'image/png', 88343, 'qlPBL7ZIkoR6zGtv0v2zN4-59AKJBcBI', '7ZIkoR6zGtv0v2zNVNKgMYhtY_pkboj8', 'image.png', NULL, '2017-07-24 12:45:02'),
(24, 'T', 'D', 'image/png', 138278, 'VBNJcqybTcS1703dhA9D0SzHGDJmUYX0', 'qybTcS1703dhA9D0NLUrr0DaHPmgHYie', 'image.png', NULL, '2017-07-24 12:45:02'),
(25, 'T', 'D', 'image/png', 25766, 'maRa78y0kj4VRI-GaUO88a3SR8e08Q7Q', '8y0kj4VRI-GaUO88jrtUOox36QOpcZgd', 'navštěva.PNG', NULL, '2017-07-25 15:09:29'),
(26, 'T', 'D', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 10757, 't8aafY_Dr8xhezo2NolommWuxcB00P2Q', 'Y_Dr8xhezo2NolomymuPeNEi7LOhLoNs', 'Nový program.docx', NULL, '2017-08-02 11:05:01'),
(27, 'T', 'D', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 742814, 'TM7Ra9yUhY_z7FjBBJwFLD0Qt8Sdg4tw', '9yUhY_z7FjBBJwFLbknzdRMy3x0c-_Cu', 'Kalendář_helpdesk.docx', NULL, '2017-08-03 13:05:02'),
(28, 'T', 'D', 'image/jpeg', 48756, 'phPvCsKPPVAy4VeYFbMgk8Re3uR262Sg', 'sKPPVAy4VeYFbMgk_cvZGIDR4FfBdRtc', 'program.JPG', NULL, '2017-08-03 16:00:01'),
(29, 'T', 'D', 'image/jpeg', 42689, 'UCw998Ue3IJmkDnaXHiegCrL3gcbtpOE', '8Ue3IJmkDnaXHiegWl38r7cjGS0MGCvA', 'program1.JPG', NULL, '2017-08-03 16:00:01'),
(30, 'T', 'D', 'image/png', 389907, 'pJfMTYWZljHQ4_T2_Z_CBboCv5ucw_vU', 'YWZljHQ4_T2_Z_CBKiK7WVB6BPZ5cg1R', 'rokycany-vazeni.png', NULL, '2017-08-04 12:45:02'),
(31, 'T', 'D', 'image/png', 69642, 'jzrX7WW9aqIzTcv4M1Kd_5vjwg37p2Yw', 'WW9aqIzTcv4M1Kd_i1iLY_E0h8m1JSqk', 'image-uUh0.png', NULL, '2017-08-08 12:35:01'),
(32, 'T', 'D', 'image/png', 92224, 'essD1RvpkAyHqmMQlIvsOBkyyrE0oKv0', 'RvpkAyHqmMQlIvsOKKc1LqyS2VkqFMb2', 'image-QfN0.png', NULL, '2017-08-08 12:35:01'),
(33, 'T', 'D', 'image/png', 92223, 'jmC2HXZGBTBXPTDiVvaDkccw59kwoBtU', 'XZGBTBXPTDiVvaDk5NlJ-yi8jv6ixsOa', 'imageFUWe.png', NULL, '2017-08-08 12:35:01');

-- --------------------------------------------------------

--
-- Struktura tabulky `ost_file_chunk`
--

CREATE TABLE IF NOT EXISTS `ost_file_chunk` (
  `file_id` int(11) NOT NULL,
  `chunk_id` int(11) NOT NULL,
  `filedata` longblob NOT NULL,
  PRIMARY KEY (`file_id`,`chunk_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Vypisuji data pro tabulku `ost_file_chunk`
--

INSERT INTO `ost_file_chunk` (`file_id`, `chunk_id`, `filedata`) VALUES
(1, 0, 0x[encoded data, 18904 characters]),
(2, 0, 0x43616e6e6564204174746163686d656e747320526f636b21),
(3, 0, 0x[encoded data, 19744 characters]);
INSERT INTO `ost_file_chunk` (`file_id`, `chunk_id`, `filedata`) VALUES
(4, 0, 0x[encoded data, 435165 characters]