-- http://www.phpmyadmin.net
--




--
-- Database: `apms_live`
--

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

--
-- Table structure for table `cms_category`
--

CREATE TABLE IF NOT EXISTS `cms_category` (
  `category_id` int(11) NOT NULL,
  `section_id` int(11) NOT NULL,
  `category_parent_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `category_alias` varchar(255) NOT NULL,
  `description` longtext NOT NULL,
  `icon` varchar(255) NOT NULL,
  `enabled` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `cms_category`
--

INSERT INTO `cms_category` (`category_id`, `section_id`, `category_parent_id`, `title`, `category_alias`, `description`, `icon`, `enabled`) VALUES
(1, 3, 0, 'index', 'index', 'index<br>', '', 'Y'),
(2, 4, 0, 'About Us', 'about', 'About Us<br>', '', 'Y'),
(3, 5, 0, 'Features', 'features', 'Features<br>', '', 'Y'),
(4, 6, 0, 'Terms-of-service', 'terms-of-service', 'terms-of-service<br>', '', 'Y'),
(5, 7, 0, 'privacy', 'privacy', 'privacy<br>', '', 'Y'),
(6, 8, 0, 'Service 1', 'service1', 'Service 1<br>', '', 'Y'),
(7, 8, 0, 'Service 2', 'service2', 'Service 2<br>', '', 'Y'),
(8, 9, 0, 'Service 1', 'service1', 'df sdf <br>', '', 'Y');

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

--
-- Table structure for table `cms_content`
--

CREATE TABLE IF NOT EXISTS `cms_content` (
  `content_id` int(11) NOT NULL,
  `section_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `enabled` enum('Y','N') DEFAULT 'Y',
  `content_alias` varchar(255) NOT NULL,
  `summary` text NOT NULL,
  `description` longtext NOT NULL,
  `icon` varchar(255) NOT NULL,
  `content_type` enum('Image','Text','Both') NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_on` datetime NOT NULL,
  `last_updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `last_updated_by` int(11) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `cms_content`
--

INSERT INTO `cms_content` (`content_id`, `section_id`, `category_id`, `title`, `enabled`, `content_alias`, `summary`, `description`, `icon`, `content_type`, `created_by`, `created_on`, `last_updated_on`, `last_updated_by`) VALUES
(1, 3, 1, 'index', 'Y', 'index', 'index', '<!-- Jumbotron Header -->\r\n        <header class="jumbotron hero-spacer">\r\n            <h1>A Warm Welcome!</h1>\r\n            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, ipsam, eligendi, in quo sunt possimus non incidunt odit vero aliquid similique quaerat nam nobis illo aspernatur vitae fugiat numquam repellat.</p>\r\n            <p><a class="btn btn-primary btn-large">Call to action!</a>\r\n            </p>\r\n        </header>\r\n\r\n        <hr>\r\n\r\n        <!-- Title -->\r\n        <div class="row">\r\n            <div class="col-lg-12">\r\n                <h3>Latest Features</h3>\r\n            </div>\r\n        </div>\r\n        <!-- /.row -->\r\n\r\n        <!-- Page Features -->\r\n        <div class="row text-center">\r\n\r\n             <div class="col-md-4 col-sm-6 hero-feature">\r\n                 <div class="caption text-left">\r\n                    <h3>Heading</h3>\r\n                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n                    <p><a href="#" class="btn btn-default">More Info</a></p>\r\n                </div>\r\n            </div>\r\n            <div class="col-md-4 col-sm-6 hero-feature">\r\n                <div class="caption text-left">\r\n                    <h3>Heading</h3>\r\n                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n                    <p><a href="#" class="btn btn-default">More Info </a></p>\r\n                </div>\r\n            </div>\r\n            <div class="col-md-4 col-sm-6 hero-feature">\r\n                <div class="caption text-left">\r\n                    <h3>Heading</h3>\r\n                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>\r\n                    <p><a href="#" class="btn btn-default">More Info</a></p>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <!-- /.row -->\r\n        <hr>', '', 'Text', 0, '2014-10-28 07:49:00', '2014-11-24 10:59:17', 0),
(2, 4, 2, 'About Us', 'Y', 'about', '', '<div class="content_pannel"><div class="inner_contentarea"><div class="staticpage_content"><h3>About us</h3>       <p></p><p>2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis molestie   ultricies faucibus. Integer convallis ullamcorper dolor, at scelerisque   velit volutpat in. Nunc vel nulla nulla. Quisque ornare molestie   imperdiet. Sed adipiscing imperdiet orci, in laoreet erat rhoncus ut.   Proin suscipit vestibulum neque in cursus. Sed volutpat laoreet justo,   ac sagittis massa ornare non. Aliquam elit nunc, luctus varius turpis   non, tempus ornare erat. Nunc luctus dapibus metus, a dapibus tellus.   Maecenas feugiat molestie justo, eu posuere leo hendrerit at.</p>   <p>Vestibulum accumsan metus tempor, rutrum orci ut, euismod felis. Etiam   pretium augue purus, ac tincidunt arcu condimentum feugiat. In blandit   risus eu nulla facilisis euismod. Nam ornare scelerisque neque, vel   volutpat nibh adipiscing eget. Pellentesque at metus ut purus pretium   vestibulum vitae non purus. Nulla sollicitudin lorem nec ligula mattis   iaculis. Aenean eget pharetra arcu. Etiam aliquam neque ac tellus mollis   tempor. Vivamus ullamcorper lobortis laoreet. Duis vitae erat ipsum.   Etiam sit amet erat nibh. Mauris tempor ullamcorper commodo. Morbi vel   tristique tellus. Aliquam vehicula placerat nunc laoreet tempor.</p>   <p>Nulla viverra arcu eget faucibus faucibus. Donec dapibus sit amet tellus   at auctor. Nunc sed feugiat lorem, non rhoncus eros. Sed tempus dolor   nec elit eleifend imperdiet in non elit. Cum sociis natoque penatibus et   magnis dis parturient montes, nascetur ridiculus mus. Etiam rutrum,   purus non porta malesuada, lorem sem mollis turpis, at commodo dolor sem   vestibulum est. Sed accumsan vel dui at aliquet.</p>   <p>Sed blandit at elit in viverra. Morbi commodo sed orci nec vehicula.   Suspendisse varius leo vel purus pharetra sodales. Curabitur varius sed   arcu sed fringilla. Curabitur a blandit orci. Quisque sollicitudin   vulputate venenatis. Vestibulum egestas rhoncus elit, quis condimentum   erat. Pellentesque a eros quis felis laoreet fermentum a vitae elit.   Curabitur vel libero erat.</p>   <p>Donec in quam urna. Proin euismod lorem ante, non volutpat mauris   aliquam ac. Nullam vitae sodales justo. Sed nec porta metus. In eu   imperdiet neque, in ornare est. Nullam feugiat viverra mauris vitae   ullamcorper. Proin pulvinar erat egestas ante tincidunt varius. Vivamus   non lacinia quam.</p><p></p></div></div>   <div class="clear"></div></div>', '', 'Text', 0, '2014-10-28 08:53:00', '2014-10-28 08:57:57', 0),
(3, 5, 3, 'Features', 'Y', 'features', '', '<div class="content_pannel">\r\n  <div class="inner_contentarea">\r\n    <div class="staticpage_content">\r\n      <h3>Features</h3>\r\n      <p></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis molestie   ultricies faucibus. Integer convallis ullamcorper dolor, at scelerisque   velit volutpat in. Nunc vel nulla nulla. Quisque ornare molestie   imperdiet. Sed adipiscing imperdiet orci, in laoreet erat rhoncus ut.   Proin suscipit vestibulum neque in cursus. Sed volutpat laoreet justo,   ac sagittis massa ornare non. Aliquam elit nunc, luctus varius turpis   non, tempus ornare erat. Nunc luctus dapibus metus, a dapibus tellus.   Maecenas feugiat molestie justo, eu posuere leo hendrerit at.</p>   <p>Vestibulum accumsan metus tempor, rutrum orci ut, euismod felis. Etiam   pretium augue purus, ac tincidunt arcu condimentum feugiat. In blandit   risus eu nulla facilisis euismod. Nam ornare scelerisque neque, vel   volutpat nibh adipiscing eget. Pellentesque at metus ut purus pretium   vestibulum vitae non purus. Nulla sollicitudin lorem nec ligula mattis   iaculis. Aenean eget pharetra arcu. Etiam aliquam neque ac tellus mollis   tempor. Vivamus ullamcorper lobortis laoreet. Duis vitae erat ipsum.   Etiam sit amet erat nibh. Mauris tempor ullamcorper commodo. Morbi vel   tristique tellus. Aliquam vehicula placerat nunc laoreet tempor.</p>   <p>Nulla viverra arcu eget faucibus faucibus. Donec dapibus sit amet tellus   at auctor. Nunc sed feugiat lorem, non rhoncus eros. Sed tempus dolor   nec elit eleifend imperdiet in non elit. Cum sociis natoque penatibus et   magnis dis parturient montes, nascetur ridiculus mus. Etiam rutrum,   purus non porta malesuada, lorem sem mollis turpis, at commodo dolor sem   vestibulum est. Sed accumsan vel dui at aliquet.</p>   <p>Sed blandit at elit in viverra. Morbi commodo sed orci nec vehicula.   Suspendisse varius leo vel purus pharetra sodales. Curabitur varius sed   arcu sed fringilla. Curabitur a blandit orci. Quisque sollicitudin   vulputate venenatis. Vestibulum egestas rhoncus elit, quis condimentum   erat. Pellentesque a eros quis felis laoreet fermentum a vitae elit.   Curabitur vel libero erat.</p>   <p>Donec in quam urna. Proin euismod lorem ante, non volutpat mauris   aliquam ac. Nullam vitae sodales justo. Sed nec porta metus. In eu   imperdiet neque, in ornare est. Nullam feugiat viverra mauris vitae   ullamcorper. Proin pulvinar erat egestas ante tincidunt varius. Vivamus   non lacinia quam.</p><p></p>\r\n    </div>\r\n  </div>\r\n  <div class="clear"></div>\r\n</div>', '', 'Text', 0, '2014-10-28 08:58:00', '2014-10-28 08:48:14', 0),
(4, 6, 4, 'Terms of-service', 'Y', 'terms-of-service', '', '<div class="content_pannel">\r\n  <div class="inner_contentarea">\r\n    <div class="staticpage_content">\r\n      <h3>Terms Of Services</h3>\r\n      <p></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis molestie   ultricies faucibus. Integer convallis ullamcorper dolor, at scelerisque   velit volutpat in. Nunc vel nulla nulla. Quisque ornare molestie   imperdiet. Sed adipiscing imperdiet orci, in laoreet erat rhoncus ut.   Proin suscipit vestibulum neque in cursus. Sed volutpat laoreet justo,   ac sagittis massa ornare non. Aliquam elit nunc, luctus varius turpis   non, tempus ornare erat. Nunc luctus dapibus metus, a dapibus tellus.   Maecenas feugiat molestie justo, eu posuere leo hendrerit at.</p>   <p>Vestibulum accumsan metus tempor, rutrum orci ut, euismod felis. Etiam   pretium augue purus, ac tincidunt arcu condimentum feugiat. In blandit   risus eu nulla facilisis euismod. Nam ornare scelerisque neque, vel   volutpat nibh adipiscing eget. Pellentesque at metus ut purus pretium   vestibulum vitae non purus. Nulla sollicitudin lorem nec ligula mattis   iaculis. Aenean eget pharetra arcu. Etiam aliquam neque ac tellus mollis   tempor. Vivamus ullamcorper lobortis laoreet. Duis vitae erat ipsum.   Etiam sit amet erat nibh. Mauris tempor ullamcorper commodo. Morbi vel   tristique tellus. Aliquam vehicula placerat nunc laoreet tempor.</p>   <p>Nulla viverra arcu eget faucibus faucibus. Donec dapibus sit amet tellus   at auctor. Nunc sed feugiat lorem, non rhoncus eros. Sed tempus dolor   nec elit eleifend imperdiet in non elit. Cum sociis natoque penatibus et   magnis dis parturient montes, nascetur ridiculus mus. Etiam rutrum,   purus non porta malesuada, lorem sem mollis turpis, at commodo dolor sem   vestibulum est. Sed accumsan vel dui at aliquet.</p>   <p>Sed blandit at elit in viverra. Morbi commodo sed orci nec vehicula.   Suspendisse varius leo vel purus pharetra sodales. Curabitur varius sed   arcu sed fringilla. Curabitur a blandit orci. Quisque sollicitudin   vulputate venenatis. Vestibulum egestas rhoncus elit, quis condimentum   erat. Pellentesque a eros quis felis laoreet fermentum a vitae elit.   Curabitur vel libero erat.</p>   <p>Donec in quam urna. Proin euismod lorem ante, non volutpat mauris   aliquam ac. Nullam vitae sodales justo. Sed nec porta metus. In eu   imperdiet neque, in ornare est. Nullam feugiat viverra mauris vitae   ullamcorper. Proin pulvinar erat egestas ante tincidunt varius. Vivamus   non lacinia quam.</p><p></p>\r\n    </div>\r\n  </div>\r\n  <div class="clear"></div>\r\n</div>', '', 'Text', 0, '2014-10-28 09:19:00', '2014-10-28 09:09:27', 0),
(5, 7, 5, 'Privacy Policy', 'Y', 'privacy', '', '<div class="content_pannel">\r\n  <div class="inner_contentarea">\r\n    <div class="staticpage_content">\r\n      <h3>Privacy Policy</h3>\r\n      <p></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis molestie   ultricies faucibus. Integer convallis ullamcorper dolor, at scelerisque   velit volutpat in. Nunc vel nulla nulla. Quisque ornare molestie   imperdiet. Sed adipiscing imperdiet orci, in laoreet erat rhoncus ut.   Proin suscipit vestibulum neque in cursus. Sed volutpat laoreet justo,   ac sagittis massa ornare non. Aliquam elit nunc, luctus varius turpis   non, tempus ornare erat. Nunc luctus dapibus metus, a dapibus tellus.   Maecenas feugiat molestie justo, eu posuere leo hendrerit at.</p>   <p>Vestibulum accumsan metus tempor, rutrum orci ut, euismod felis. Etiam   pretium augue purus, ac tincidunt arcu condimentum feugiat. In blandit   risus eu nulla facilisis euismod. Nam ornare scelerisque neque, vel   volutpat nibh adipiscing eget. Pellentesque at metus ut purus pretium   vestibulum vitae non purus. Nulla sollicitudin lorem nec ligula mattis   iaculis. Aenean eget pharetra arcu. Etiam aliquam neque ac tellus mollis   tempor. Vivamus ullamcorper lobortis laoreet. Duis vitae erat ipsum.   Etiam sit amet erat nibh. Mauris tempor ullamcorper commodo. Morbi vel   tristique tellus. Aliquam vehicula placerat nunc laoreet tempor.</p>   <p>Nulla viverra arcu eget faucibus faucibus. Donec dapibus sit amet tellus   at auctor. Nunc sed feugiat lorem, non rhoncus eros. Sed tempus dolor   nec elit eleifend imperdiet in non elit. Cum sociis natoque penatibus et   magnis dis parturient montes, nascetur ridiculus mus. Etiam rutrum,   purus non porta malesuada, lorem sem mollis turpis, at commodo dolor sem   vestibulum est. Sed accumsan vel dui at aliquet.</p>   <p>Sed blandit at elit in viverra. Morbi commodo sed orci nec vehicula.   Suspendisse varius leo vel purus pharetra sodales. Curabitur varius sed   arcu sed fringilla. Curabitur a blandit orci. Quisque sollicitudin   vulputate venenatis. Vestibulum egestas rhoncus elit, quis condimentum   erat. Pellentesque a eros quis felis laoreet fermentum a vitae elit.   Curabitur vel libero erat.</p>   <p>Donec in quam urna. Proin euismod lorem ante, non volutpat mauris   aliquam ac. Nullam vitae sodales justo. Sed nec porta metus. In eu   imperdiet neque, in ornare est. Nullam feugiat viverra mauris vitae   ullamcorper. Proin pulvinar erat egestas ante tincidunt varius. Vivamus   non lacinia quam.</p><p></p>\r\n    </div>\r\n  </div>\r\n  <div class="clear"></div>\r\n</div>', '', 'Text', 0, '2014-10-28 09:22:00', '2014-10-28 09:12:06', 0),
(6, 8, 6, 'Service 1', 'Y', 'service1', 'service1', '<strong>Service 1 - Lorem Ipsum</strong> is simply dummy text of the printing and  typesetting industry. Lorem Ipsum has been the industry''s standard dummy  text ever since the 1500s, when an unknown printer took a galley of  type and scrambled it to make a type specimen book. It has survived not  only five centuries, but also the leap into electronic typesetting,  remaining essentially unchanged. It was popularised in the 1960s with  the release of Letraset sheets containing Lorem Ipsum passages, and more  recently with desktop publishing software like Aldus PageMaker  including versions of Lorem Ipsum.', '', 'Text', 0, '2014-11-24 06:32:00', '2014-11-26 07:08:02', 0),
(7, 8, 7, 'Service 2', 'Y', 'service2', 'service2', '<strong>Service 2 - Lorem Ipsum</strong> is simply dummy text of the printing and  typesetting industry. Lorem Ipsum has been the industry''s standard dummy  text ever since the 1500s, when an unknown printer took a galley of  type and scrambled it to make a type specimen book. It has survived not  only five centuries, but also the leap into electronic typesetting,  remaining essentially unchanged. It was popularised in the 1960s with  the release of Letraset sheets containing Lorem Ipsum passages, and more  recently with desktop publishing software like Aldus PageMaker  including versions of Lorem Ipsum.', '', 'Text', 0, '2014-11-25 11:52:00', '2014-11-26 07:06:15', 0),
(8, 9, 8, 'Service 1', 'Y', 'service1', 'dfg df', 'dfg df<br>', '', 'Text', 0, '2014-11-25 13:45:00', '2014-11-25 13:32:36', 0);

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

--
-- Table structure for table `cms_files`
--

CREATE TABLE IF NOT EXISTS `cms_files` (
  `cms_file_id` int(11) NOT NULL,
  `created_on` datetime NOT NULL,
  `title` varchar(255) NOT NULL,
  `last_updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `file_alias` varchar(255) NOT NULL,
  `file_id` int(11) NOT NULL,
  `display_width` int(11) NOT NULL,
  `display_height` int(11) NOT NULL,
  `enabled` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `cms_groups`
--

CREATE TABLE IF NOT EXISTS `cms_groups` (
  `id` int(11) NOT NULL,
  `group_name` varchar(50) DEFAULT NULL,
  `position` int(3) DEFAULT '0',
  `published` tinyint(1) DEFAULT '1',
  `user_privilege` varchar(256) NOT NULL DEFAULT 'all',
  `module` enum('admin','user') NOT NULL DEFAULT 'admin'
) ENGINE=MyISAM AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_groups`
--

INSERT INTO `cms_groups` (`id`, `group_name`, `position`, `published`, `user_privilege`, `module`) VALUES
(16, 'SOFTWARE DEPARTMENT', 1, 1, 'all', 'admin'),
(15, 'HR SETUP', 3, 0, 's', 'admin'),
(14, 'OTHERS', 14, 0, 's', 'admin'),
(13, 'HR', 2, 1, 'all', 'admin'),
(12, 'MANAGE CONTENT', 2, 0, 'all', 'user'),
(11, 'My Account', 1, 1, 'all', 'user'),
(10, 'HR', 1, 1, 'all', 'admin'),
(9, 'CONTENT MANAGEMENT', 4, 1, 'all', 'admin'),
(8, 'SETUP', 2, 1, 'all', 'admin'),
(2, 'CONFIGURATIONS', 6, 1, 'all', 'admin'),
(1, 'DASHBOARD', 0, 1, 'all', 'admin'),
(17, 'REPORTS', 3, 1, 'all', 'admin'),
(18, 'Business Reports', 4, 1, 's', 'admin'),
(19, 'SupportPRO', 2, 1, 'all', 'admin'),
(20, 'DEVELOPERS', 1, 1, 'all', 'admin'),
(24, 'REPORTS', 4, 1, 'all', 'admin'),
(23, 'SOFTWARE DEPARTMENT', 3, 1, 'all', 'admin'),
(22, 'DASHBOARD', 1, 1, 'all', 'admin'),
(21, 'HR', 2, 1, 'all', 'admin'),
(25, 'QUICK LINKS', 5, 1, 'all', 'admin');

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

--
-- Table structure for table `cms_menus`
--

CREATE TABLE IF NOT EXISTS `cms_menus` (
  `menus_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `position` varchar(255) NOT NULL,
  `menu_type` enum('Image','Text','Both') NOT NULL,
  `menu_class` varchar(255) NOT NULL,
  `enabled` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_menus`
--

INSERT INTO `cms_menus` (`menus_id`, `title`, `position`, `menu_type`, `menu_class`, `enabled`) VALUES
(1, 'Top Main Menu', '', 'Text', 'nav navbar-nav', 'Y'),
(2, 'Footer Menu', '', 'Text', '', 'Y');

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

--
-- Table structure for table `cms_menu_items`
--

CREATE TABLE IF NOT EXISTS `cms_menu_items` (
  `menu_item_id` int(11) NOT NULL,
  `menus_id` int(11) unsigned NOT NULL,
  `menu_parent_id` int(11) unsigned NOT NULL,
  `reference_type` enum('Section','Category','Content') NOT NULL COMMENT '1=Section,2=Category,3=content',
  `reference_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `menu_item_alias` varchar(255) NOT NULL,
  `target_type` enum('_self','_blank','_top') NOT NULL,
  `target_url` varchar(255) NOT NULL,
  `icon` varchar(255) NOT NULL,
  `display_order` int(11) NOT NULL,
  `enabled` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_menu_items`
--

INSERT INTO `cms_menu_items` (`menu_item_id`, `menus_id`, `menu_parent_id`, `reference_type`, `reference_id`, `title`, `menu_item_alias`, `target_type`, `target_url`, `icon`, `display_order`, `enabled`) VALUES
(1, 1, 0, 'Content', 1, 'Home', 'home', '', ' ', '', 1, 'Y'),
(2, 1, 0, 'Content', 2, 'About Us', 'about', '', 'about', '', 2, 'Y'),
(3, 1, 0, 'Content', 3, 'Features', 'features', '', 'features', '', 3, 'Y'),
(4, 1, 0, 'Content', 1, 'Plans', 'plans', '', 'plans', '', 4, 'Y'),
(5, 1, 0, 'Content', 5, 'Contact', 'contact', '', 'contact', '', 6, 'Y'),
(6, 2, 0, 'Content', 5, 'Privacy Policy', 'privacy', '', 'privacy', '', 1, 'Y'),
(7, 2, 0, 'Content', 4, 'Terms of Service', 'terms-of-service', '', 'terms-of-service', '', 2, 'Y'),
(8, 1, 0, 'Content', 8, 'Services', 'services', '', 'services', '', 5, 'Y'),
(9, 1, 8, 'Content', 6, 'Service 1', 'services1', '', 'services1', '', 1, 'Y'),
(10, 1, 8, 'Content', 7, 'Service 2', 'services2', '', 'services2', '', 2, 'Y');

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

--
-- Table structure for table `cms_page_sections`
--

CREATE TABLE IF NOT EXISTS `cms_page_sections` (
  `section_id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `section_alias` varchar(255) NOT NULL,
  `description` longtext NOT NULL,
  `icon` varchar(255) NOT NULL,
  `enabled` enum('Y','N') NOT NULL DEFAULT 'Y',
  `created_by` int(11) NOT NULL,
  `created_on` datetime NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_page_sections`
--

INSERT INTO `cms_page_sections` (`section_id`, `title`, `section_alias`, `description`, `icon`, `enabled`, `created_by`, `created_on`) VALUES
(3, 'index', 'index', '<p>index page</p>\r\n', '', 'Y', 0, '2014-10-28 07:40:00'),
(4, 'About Us', 'About', 'About<br>', '', 'Y', 0, '2014-10-28 08:51:00'),
(5, 'Features', 'features', 'Features<br>', '', 'Y', 0, '2014-10-28 08:56:00'),
(6, 'Terms of Service', 'terms-of-service', 'terms-of-service<br/>', '', 'Y', 0, '2014-10-28 09:17:00'),
(7, 'Privacy', 'privacy', 'privacy<br>', '', 'Y', 0, '2014-10-28 09:20:00'),
(8, 'Services', 'services', '<strong>Services - Lorem Ipsum</strong> is simply dummy text of the printing and  typesetting industry. Lorem Ipsum has been the industry''s standard dummy  text ever since the 1500s, when an unknown printer took a galley of  type and scrambled it to make a type specimen book. It has survived not  only five centuries, but also the leap into electronic typesetting,  remaining essentially unchanged. It was popularised in the 1960s with  the release of Letraset sheets containing Lorem Ipsum passages, and more  recently with desktop publishing software like Aldus PageMaker  including versions of Lorem Ipsum.', '', 'Y', 0, '2014-11-24 06:14:00');

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

--
-- Table structure for table `cms_privileges`
--

CREATE TABLE IF NOT EXISTS `cms_privileges` (
  `privilege_id` int(11) NOT NULL,
  `entity_type` enum('group','section') NOT NULL,
  `entity_id` int(11) NOT NULL,
  `view_role_id` int(11) NOT NULL,
  `add_role_id` int(11) NOT NULL,
  `edit_role_id` int(11) NOT NULL,
  `delete_role_id` int(11) NOT NULL,
  `publish_role_id` int(11) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=528 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_privileges`
--

INSERT INTO `cms_privileges` (`privilege_id`, `entity_type`, `entity_id`, `view_role_id`, `add_role_id`, `edit_role_id`, `delete_role_id`, `publish_role_id`) VALUES
(1, 'group', 1, 12, 12, 12, 12, 0),
(2, 'section', 59, 12, 12, 12, 12, 0),
(3, 'section', 157, 12, 12, 12, 12, 0),
(4, 'section', 135, 12, 12, 12, 12, 0),
(10, 'section', 89, 12, 12, 12, 12, 0),
(9, 'section', 87, 12, 12, 12, 12, 0),
(11, 'group', 10, 12, 12, 12, 12, 0),
(12, 'section', 128, 12, 12, 12, 12, 0),
(13, 'section', 82, 12, 12, 12, 12, 0),
(14, 'section', 70, 12, 12, 12, 12, 0),
(15, 'section', 158, 12, 12, 12, 12, 0),
(16, 'section', 95, 12, 12, 12, 12, 0),
(17, 'group', 16, 12, 12, 12, 12, 0),
(18, 'section', 122, 12, 12, 12, 12, 0),
(19, 'section', 123, 12, 12, 12, 12, 0),
(20, 'section', 134, 12, 12, 12, 12, 0),
(21, 'section', 168, 12, 12, 12, 12, 0),
(22, 'group', 20, 12, 12, 12, 12, 0),
(23, 'section', 161, 12, 12, 12, 12, 0),
(24, 'group', 1, 16, 16, 16, 16, 0),
(25, 'section', 157, 16, 16, 16, 16, 0),
(29, 'section', 135, 16, 16, 16, 16, 0),
(30, 'section', 106, 16, 16, 16, 16, 0),
(31, 'section', 87, 16, 16, 16, 16, 0),
(32, 'section', 89, 16, 16, 16, 16, 0),
(33, 'group', 10, 16, 16, 16, 16, 0),
(354, 'section', 173, 16, 16, 16, 16, 0),
(35, 'section', 82, 16, 16, 16, 16, 0),
(36, 'section', 83, 16, 16, 16, 16, 0),
(37, 'section', 70, 16, 16, 16, 16, 0),
(38, 'section', 158, 16, 16, 16, 16, 0),
(39, 'section', 95, 16, 16, 16, 16, 0),
(40, 'group', 16, 16, 16, 16, 16, 0),
(41, 'section', 114, 16, 16, 16, 16, 0),
(42, 'section', 159, 16, 16, 16, 16, 0),
(43, 'section', 122, 16, 16, 16, 16, 0),
(44, 'section', 123, 16, 16, 16, 16, 0),
(45, 'section', 134, 16, 16, 16, 16, 0),
(46, 'section', 168, 16, 16, 16, 16, 0),
(47, 'group', 20, 16, 16, 16, 16, 0),
(48, 'section', 161, 16, 16, 16, 16, 0),
(49, 'group', 17, 16, 16, 16, 16, 0),
(50, 'section', 130, 16, 16, 16, 16, 0),
(51, 'section', 131, 16, 16, 16, 16, 0),
(52, 'section', 132, 16, 16, 16, 16, 0),
(53, 'section', 133, 16, 16, 16, 16, 0),
(54, 'section', 167, 16, 16, 16, 16, 0),
(55, 'group', 1, 23, 23, 23, 23, 0),
(56, 'section', 59, 23, 23, 23, 23, 0),
(57, 'section', 157, 23, 23, 23, 23, 0),
(62, 'section', 87, 23, 23, 23, 23, 0),
(63, 'section', 89, 23, 23, 23, 23, 0),
(64, 'group', 10, 23, 23, 23, 23, 0),
(65, 'section', 128, 23, 23, 23, 23, 0),
(66, 'section', 82, 23, 23, 23, 23, 0),
(67, 'section', 70, 23, 23, 23, 23, 0),
(68, 'section', 158, 23, 23, 23, 23, 0),
(69, 'section', 95, 23, 23, 23, 23, 0),
(71, 'section', 159, 23, 23, 23, 23, 0),
(72, 'section', 122, 23, 23, 23, 23, 0),
(73, 'section', 123, 23, 23, 23, 23, 0),
(74, 'section', 134, 23, 23, 23, 23, 0),
(75, 'section', 168, 23, 23, 23, 23, 0),
(77, 'section', 161, 23, 23, 23, 23, 0),
(78, 'group', 19, 23, 23, 23, 23, 0),
(79, 'section', 152, 23, 23, 23, 23, 0),
(80, 'group', 1, 25, 25, 25, 25, 0),
(81, 'section', 157, 25, 25, 25, 25, 0),
(82, 'section', 135, 25, 25, 25, 25, 0),
(83, 'section', 87, 25, 25, 25, 25, 0),
(84, 'section', 89, 25, 25, 25, 25, 0),
(85, 'group', 10, 25, 25, 25, 25, 0),
(87, 'section', 82, 25, 25, 25, 25, 0),
(88, 'section', 70, 25, 25, 25, 25, 0),
(89, 'section', 158, 25, 25, 25, 25, 0),
(90, 'section', 95, 25, 25, 25, 25, 0),
(91, 'group', 16, 25, 25, 25, 25, 0),
(92, 'section', 159, 25, 25, 25, 25, 0),
(93, 'section', 122, 25, 25, 25, 25, 0),
(94, 'section', 123, 25, 25, 25, 25, 0),
(95, 'section', 134, 25, 25, 25, 25, 0),
(96, 'section', 168, 25, 25, 25, 25, 0),
(97, 'section', 161, 25, 25, 25, 25, 0),
(99, 'group', 17, 25, 25, 25, 25, 0),
(102, 'section', 140, 25, 25, 25, 25, 0),
(103, 'group', 18, 25, 25, 25, 25, 0),
(104, 'section', 141, 25, 25, 25, 25, 0),
(105, 'group', 1, 19, 19, 19, 19, 0),
(106, 'section', 157, 19, 19, 19, 19, 0),
(414, 'section', 96, 18, 18, 18, 18, 0),
(109, 'section', 87, 19, 19, 19, 19, 0),
(110, 'section', 89, 19, 19, 19, 19, 0),
(111, 'group', 10, 19, 19, 19, 19, 0),
(355, 'section', 173, 19, 18, 18, 18, 0),
(113, 'section', 82, 19, 19, 19, 19, 0),
(114, 'section', 70, 19, 19, 19, 19, 0),
(115, 'section', 158, 19, 19, 19, 19, 0),
(116, 'section', 95, 19, 19, 19, 19, 0),
(117, 'group', 16, 19, 19, 19, 19, 0),
(118, 'section', 159, 19, 19, 19, 19, 0),
(119, 'section', 122, 19, 19, 19, 19, 0),
(120, 'section', 123, 19, 19, 19, 19, 0),
(121, 'section', 134, 19, 19, 19, 19, 0),
(122, 'section', 168, 19, 19, 19, 19, 0),
(124, 'section', 161, 19, 19, 19, 19, 0),
(125, 'group', 18, 19, 19, 19, 19, 0),
(126, 'section', 141, 19, 19, 19, 19, 0),
(127, 'section', 140, 19, 19, 19, 19, 0),
(128, 'group', 1, 17, 17, 17, 17, 0),
(129, 'section', 125, 17, 17, 17, 17, 0),
(130, 'section', 157, 17, 17, 17, 17, 0),
(131, 'section', 135, 17, 17, 17, 17, 0),
(132, 'section', 87, 17, 17, 17, 17, 0),
(133, 'section', 89, 17, 17, 17, 17, 0),
(134, 'group', 10, 17, 17, 17, 17, 0),
(135, 'section', 128, 17, 17, 17, 17, 0),
(136, 'section', 82, 17, 17, 17, 17, 0),
(137, 'section', 70, 17, 17, 17, 17, 0),
(138, 'section', 158, 17, 17, 17, 17, 0),
(139, 'section', 95, 17, 17, 17, 17, 0),
(140, 'group', 16, 17, 17, 17, 17, 0),
(141, 'section', 114, 17, 17, 17, 17, 0),
(142, 'section', 159, 17, 17, 17, 17, 0),
(143, 'section', 122, 17, 17, 17, 17, 0),
(144, 'section', 123, 17, 17, 17, 17, 0),
(145, 'section', 134, 17, 17, 17, 17, 0),
(146, 'section', 168, 17, 17, 17, 17, 0),
(147, 'group', 20, 17, 17, 17, 17, 0),
(148, 'section', 161, 17, 17, 17, 17, 0),
(149, 'group', 1, 20, 20, 20, 20, 0),
(155, 'section', 157, 20, 20, 20, 20, 0),
(154, 'section', 142, 20, 20, 20, 20, 0),
(405, 'section', 106, 19, 18, 18, 18, 0),
(159, 'section', 87, 20, 20, 20, 20, 0),
(158, 'section', 89, 20, 20, 20, 20, 0),
(160, 'group', 10, 20, 20, 20, 20, 0),
(161, 'section', 128, 20, 20, 20, 20, 0),
(162, 'section', 82, 20, 20, 20, 20, 0),
(163, 'section', 70, 20, 20, 20, 20, 0),
(164, 'section', 158, 20, 20, 20, 20, 0),
(165, 'section', 95, 20, 20, 20, 20, 0),
(166, 'group', 16, 20, 20, 20, 20, 0),
(167, 'section', 159, 20, 20, 20, 20, 0),
(168, 'section', 122, 20, 20, 20, 20, 0),
(169, 'section', 123, 20, 20, 20, 20, 0),
(170, 'section', 134, 20, 20, 20, 20, 0),
(171, 'section', 168, 20, 20, 20, 20, 0),
(173, 'section', 161, 20, 20, 20, 20, 0),
(174, 'group', 1, 22, 22, 22, 22, 0),
(175, 'section', 157, 22, 22, 22, 22, 0),
(176, 'section', 135, 22, 22, 22, 22, 0),
(177, 'section', 106, 22, 22, 22, 22, 0),
(178, 'section', 87, 22, 22, 22, 22, 0),
(179, 'section', 89, 22, 22, 22, 22, 0),
(180, 'group', 10, 22, 22, 22, 22, 0),
(356, 'section', 173, 22, 18, 18, 18, 0),
(182, 'section', 82, 22, 22, 22, 22, 0),
(183, 'section', 83, 22, 22, 22, 22, 0),
(185, 'section', 70, 22, 22, 22, 22, 0),
(186, 'section', 158, 22, 22, 22, 22, 0),
(187, 'section', 95, 22, 22, 22, 22, 0),
(407, 'group', 19, 22, 18, 18, 18, 0),
(189, 'section', 159, 22, 22, 22, 22, 0),
(190, 'section', 122, 22, 22, 22, 22, 0),
(191, 'section', 123, 22, 23, 23, 23, 0),
(192, 'section', 134, 22, 22, 22, 22, 0),
(193, 'section', 168, 22, 22, 22, 22, 0),
(195, 'section', 161, 22, 22, 22, 22, 0),
(196, 'group', 19, 22, 22, 22, 22, 0),
(413, 'section', 153, 22, 18, 18, 18, 0),
(412, 'section', 150, 22, 18, 18, 18, 0),
(411, 'section', 149, 22, 18, 18, 18, 0),
(410, 'section', 148, 22, 18, 18, 18, 0),
(409, 'section', 145, 22, 22, 22, 22, 0),
(408, 'section', 146, 22, 22, 22, 22, 0),
(203, 'group', 1, 18, 18, 18, 18, 0),
(204, 'section', 157, 18, 18, 18, 18, 0),
(205, 'section', 135, 18, 18, 18, 18, 0),
(211, 'section', 106, 18, 18, 18, 18, 0),
(213, 'section', 154, 18, 18, 18, 18, 0),
(216, 'section', 87, 18, 18, 18, 18, 0),
(215, 'section', 89, 18, 18, 18, 18, 0),
(217, 'group', 10, 18, 18, 18, 18, 0),
(353, 'section', 174, 18, 18, 18, 18, 0),
(219, 'section', 82, 18, 18, 18, 18, 0),
(222, 'section', 83, 18, 18, 18, 18, 0),
(225, 'section', 156, 18, 18, 18, 18, 0),
(226, 'section', 70, 18, 18, 18, 18, 0),
(227, 'section', 158, 18, 18, 18, 18, 0),
(228, 'section', 95, 18, 18, 18, 18, 0),
(229, 'group', 16, 18, 18, 18, 18, 0),
(230, 'section', 114, 18, 18, 18, 18, 0),
(232, 'section', 159, 18, 18, 18, 18, 0),
(233, 'section', 122, 18, 18, 18, 18, 0),
(234, 'section', 123, 18, 18, 18, 18, 0),
(235, 'section', 134, 18, 18, 18, 18, 0),
(236, 'section', 168, 18, 18, 18, 18, 0),
(237, 'section', 161, 18, 18, 18, 18, 0),
(239, 'group', 19, 18, 18, 18, 18, 0),
(240, 'section', 153, 18, 18, 18, 18, 0),
(241, 'section', 150, 18, 18, 18, 18, 0),
(242, 'section', 149, 18, 18, 18, 18, 0),
(243, 'section', 148, 18, 18, 18, 18, 0),
(244, 'section', 146, 18, 18, 18, 18, 0),
(245, 'section', 145, 18, 18, 18, 18, 0),
(246, 'group', 17, 18, 18, 18, 18, 0),
(247, 'section', 130, 18, 18, 18, 18, 0),
(248, 'section', 131, 18, 18, 18, 18, 0),
(249, 'section', 132, 18, 18, 18, 18, 0),
(250, 'section', 133, 18, 18, 18, 17, 0),
(251, 'section', 167, 18, 18, 18, 18, 0),
(252, 'group', 18, 18, 18, 18, 18, 0),
(253, 'section', 140, 18, 18, 18, 18, 0),
(254, 'section', 141, 18, 18, 18, 18, 0),
(255, 'group', 1, 24, 24, 24, 24, 0),
(256, 'section', 157, 24, 24, 24, 24, 0),
(257, 'section', 135, 24, 24, 24, 24, 0),
(258, 'section', 106, 24, 24, 24, 24, 0),
(259, 'section', 87, 24, 24, 24, 24, 0),
(260, 'section', 89, 24, 24, 24, 24, 0),
(261, 'group', 10, 24, 24, 24, 24, 0),
(357, 'section', 173, 25, 25, 25, 25, 0),
(263, 'section', 82, 24, 24, 24, 24, 0),
(264, 'section', 83, 24, 24, 24, 24, 0),
(265, 'section', 70, 24, 24, 24, 24, 0),
(266, 'section', 158, 24, 24, 24, 24, 0),
(267, 'section', 95, 24, 24, 24, 24, 0),
(268, 'group', 16, 24, 24, 24, 24, 0),
(269, 'section', 114, 24, 24, 24, 24, 0),
(270, 'section', 159, 24, 24, 24, 24, 0),
(271, 'section', 122, 24, 24, 24, 24, 0),
(272, 'section', 123, 24, 24, 24, 24, 0),
(273, 'section', 134, 24, 24, 24, 24, 0),
(274, 'section', 168, 24, 24, 24, 24, 0),
(275, 'group', 20, 24, 24, 24, 24, 0),
(276, 'section', 161, 24, 24, 24, 24, 0),
(277, 'group', 17, 24, 24, 24, 24, 0),
(278, 'section', 130, 24, 24, 24, 24, 0),
(279, 'section', 131, 24, 24, 24, 24, 0),
(280, 'section', 132, 24, 24, 24, 24, 0),
(281, 'section', 133, 24, 24, 24, 24, 0),
(282, 'section', 167, 24, 24, 24, 24, 0),
(283, 'group', 1, 26, 26, 26, 26, 0),
(284, 'section', 135, 26, 26, 26, 26, 0),
(285, 'section', 157, 26, 26, 26, 26, 0),
(286, 'section', 87, 26, 26, 26, 26, 0),
(287, 'section', 89, 26, 26, 26, 26, 0),
(288, 'group', 10, 26, 26, 26, 26, 0),
(289, 'section', 128, 26, 26, 26, 26, 0),
(290, 'section', 82, 26, 26, 26, 26, 0),
(291, 'section', 70, 26, 26, 26, 26, 0),
(292, 'section', 158, 26, 26, 26, 26, 0),
(293, 'section', 95, 26, 26, 26, 26, 0),
(294, 'group', 16, 26, 26, 26, 26, 0),
(295, 'section', 159, 26, 26, 26, 26, 0),
(296, 'section', 122, 26, 26, 26, 26, 0),
(297, 'section', 123, 26, 26, 26, 26, 0),
(298, 'section', 134, 26, 26, 26, 26, 0),
(299, 'section', 168, 26, 26, 26, 26, 0),
(301, 'section', 161, 26, 26, 26, 26, 0),
(302, 'group', 1, 14, 14, 14, 14, 0),
(303, 'section', 157, 14, 14, 14, 14, 0),
(305, 'section', 105, 14, 14, 14, 14, 0),
(306, 'section', 135, 14, 14, 14, 14, 0),
(307, 'section', 87, 14, 14, 14, 14, 0),
(308, 'section', 89, 14, 14, 14, 14, 0),
(309, 'group', 10, 14, 14, 14, 14, 0),
(310, 'section', 128, 14, 14, 14, 14, 0),
(311, 'section', 82, 14, 14, 14, 14, 0),
(313, 'section', 85, 14, 14, 14, 14, 0),
(314, 'section', 70, 14, 14, 14, 14, 0),
(315, 'section', 158, 14, 14, 14, 14, 0),
(316, 'section', 95, 14, 14, 14, 14, 0),
(317, 'group', 16, 14, 14, 14, 14, 0),
(318, 'section', 159, 14, 14, 14, 14, 0),
(319, 'section', 122, 14, 14, 14, 14, 0),
(320, 'section', 123, 14, 14, 14, 14, 0),
(321, 'section', 134, 14, 14, 14, 14, 0),
(322, 'section', 168, 14, 14, 14, 14, 0),
(324, 'section', 161, 14, 14, 14, 14, 0),
(325, 'group', 13, 14, 14, 14, 14, 0),
(326, 'section', 75, 14, 14, 14, 14, 0),
(327, 'section', 93, 14, 14, 14, 14, 0),
(328, 'section', 93, 14, 14, 14, 14, 0),
(329, 'section', 96, 14, 14, 14, 14, 0),
(331, 'section', 112, 14, 14, 14, 14, 0),
(333, 'section', 108, 14, 14, 14, 14, 0),
(334, 'section', 139, 14, 14, 14, 14, 0),
(335, 'section', 164, 14, 14, 14, 14, 0),
(336, 'section', 137, 14, 14, 14, 14, 0),
(337, 'group', 15, 14, 14, 14, 14, 0),
(338, 'section', 77, 14, 14, 14, 14, 0),
(339, 'section', 78, 14, 14, 14, 14, 0),
(340, 'section', 79, 14, 14, 14, 14, 0),
(341, 'section', 80, 14, 14, 14, 14, 0),
(342, 'section', 81, 14, 14, 14, 14, 0),
(343, 'section', 104, 14, 14, 14, 14, 0),
(344, 'section', 102, 14, 14, 14, 14, 0),
(345, 'section', 107, 14, 14, 14, 14, 0),
(346, 'section', 99, 14, 14, 14, 14, 0),
(347, 'section', 170, 18, 18, 18, 18, 0),
(348, 'group', 17, 25, 25, 25, 25, 0),
(349, 'section', 131, 25, 25, 25, 25, 0),
(350, 'section', 132, 25, 25, 25, 25, 0),
(351, 'section', 171, 12, 14, 14, 14, 0),
(358, 'section', 171, 16, 14, 14, 14, 0),
(359, 'section', 171, 17, 14, 14, 14, 0),
(360, 'section', 171, 24, 14, 14, 14, 0),
(361, 'section', 106, 27, 27, 27, 27, 0),
(362, 'section', 87, 27, 27, 27, 27, 0),
(363, 'section', 89, 27, 27, 27, 27, 0),
(364, 'group', 10, 27, 27, 27, 27, 0),
(365, 'section', 82, 27, 27, 27, 27, 0),
(366, 'section', 83, 27, 27, 27, 27, 0),
(367, 'section', 70, 27, 27, 27, 27, 0),
(368, 'section', 158, 27, 27, 27, 27, 0),
(369, 'section', 95, 27, 27, 27, 27, 0),
(370, 'group', 27, 27, 27, 27, 27, 0),
(371, 'section', 114, 27, 27, 27, 27, 0),
(372, 'section', 159, 27, 27, 27, 27, 0),
(373, 'section', 122, 27, 27, 27, 27, 0),
(374, 'section', 123, 27, 27, 27, 27, 0),
(375, 'section', 134, 27, 27, 27, 27, 0),
(376, 'section', 278, 27, 27, 27, 27, 0),
(377, 'group', 20, 27, 27, 27, 27, 0),
(378, 'section', 271, 27, 27, 27, 27, 0),
(379, 'group', 17, 27, 27, 27, 27, 0),
(380, 'section', 130, 27, 27, 27, 27, 0),
(381, 'section', 131, 27, 27, 27, 27, 0),
(382, 'section', 173, 27, 27, 27, 27, 0),
(383, 'group', 1, 27, 27, 27, 27, 0),
(384, 'section', 157, 27, 27, 27, 27, 0),
(385, 'section', 135, 27, 27, 27, 27, 0),
(386, 'section', 171, 27, 14, 14, 14, 0),
(387, 'section', 171, 14, 14, 14, 14, 0),
(388, 'section', 171, 18, 14, 14, 14, 0),
(389, 'section', 171, 19, 14, 14, 14, 0),
(390, 'section', 171, 20, 14, 14, 14, 0),
(391, 'section', 171, 21, 14, 14, 14, 0),
(392, 'section', 171, 25, 14, 14, 14, 0),
(393, 'section', 171, 26, 14, 14, 14, 0),
(395, 'section', 173, 24, 18, 18, 18, 0),
(396, 'group', 16, 27, 18, 18, 18, 0),
(397, 'section', 130, 27, 18, 18, 18, 0),
(398, 'section', 167, 27, 18, 18, 18, 0),
(399, 'section', 132, 27, 18, 18, 18, 0),
(400, 'section', 133, 27, 18, 18, 18, 0),
(401, 'section', 168, 27, 18, 18, 18, 0),
(406, 'section', 106, 20, 18, 18, 18, 0),
(415, 'group', 1, 21, 18, 18, 18, 0),
(416, 'section', 157, 21, 18, 18, 18, 0),
(417, 'section', 59, 21, 18, 18, 18, 0),
(418, 'section', 89, 21, 18, 18, 18, 0),
(419, 'group', 10, 21, 18, 18, 18, 0),
(420, 'section', 128, 21, 18, 18, 18, 0),
(421, 'section', 82, 21, 18, 18, 18, 0),
(422, 'section', 70, 21, 18, 18, 18, 0),
(423, 'section', 158, 21, 18, 18, 18, 0),
(425, 'group', 13, 21, 18, 18, 18, 0),
(426, 'section', 96, 21, 18, 18, 18, 0),
(427, 'section', 132, 18, 18, 18, 18, 0),
(428, 'section', 171, 22, 18, 18, 18, 0),
(429, 'section', 171, 23, 18, 18, 18, 0),
(430, 'group', 1, 28, 18, 18, 18, 0),
(431, 'section', 157, 28, 18, 18, 18, 0),
(432, 'section', 135, 28, 18, 18, 18, 0),
(433, 'section', 106, 28, 18, 18, 18, 0),
(434, 'section', 89, 28, 18, 18, 18, 0),
(435, 'section', 171, 28, 18, 18, 18, 0),
(436, 'section', 167, 28, 18, 18, 18, 0),
(437, 'group', 16, 28, 18, 18, 18, 0),
(438, 'section', 114, 28, 18, 18, 18, 0),
(439, 'section', 159, 28, 18, 18, 18, 0),
(440, 'section', 161, 28, 18, 18, 18, 0),
(441, 'section', 122, 28, 18, 18, 18, 0),
(442, 'section', 123, 28, 18, 18, 18, 0),
(443, 'section', 134, 28, 18, 18, 18, 0),
(444, 'section', 130, 28, 18, 18, 18, 0),
(445, 'section', 168, 28, 18, 18, 18, 0),
(446, 'section', 133, 28, 18, 18, 18, 0),
(447, 'section', 132, 28, 18, 18, 18, 0),
(448, 'section', 131, 28, 18, 18, 18, 0),
(449, 'group', 10, 28, 18, 18, 18, 0),
(450, 'section', 173, 28, 18, 18, 18, 0),
(451, 'section', 82, 28, 18, 18, 18, 0),
(452, 'section', 83, 28, 18, 18, 18, 0),
(453, 'section', 70, 28, 18, 18, 18, 0),
(454, 'section', 158, 28, 18, 18, 18, 0),
(455, 'section', 95, 28, 18, 18, 18, 0),
(456, 'section', 170, 28, 18, 18, 18, 0),
(457, 'section', 176, 12, 18, 18, 18, 0),
(458, 'section', 179, 18, 18, 18, 18, 0),
(459, 'section', 180, 18, 18, 18, 18, 0),
(460, 'section', 180, 29, 29, 29, 29, 0),
(461, 'group', 1, 29, 29, 29, 29, 0),
(462, 'section', 59, 29, 29, 29, 29, 0),
(463, 'section', 157, 29, 29, 29, 29, 0),
(464, 'section', 87, 29, 29, 29, 29, 0),
(465, 'section', 89, 29, 29, 29, 29, 0),
(466, 'group', 10, 29, 29, 29, 29, 0),
(467, 'section', 128, 29, 29, 29, 29, 0),
(468, 'section', 82, 29, 29, 29, 29, 0),
(469, 'section', 70, 29, 29, 29, 29, 0),
(470, 'section', 158, 29, 29, 29, 29, 0),
(471, 'section', 95, 29, 29, 29, 29, 0),
(472, 'section', 159, 29, 29, 29, 29, 0),
(473, 'section', 122, 29, 29, 29, 29, 0),
(474, 'section', 123, 29, 29, 29, 29, 0),
(475, 'section', 134, 29, 29, 29, 29, 0),
(476, 'section', 168, 29, 29, 29, 29, 0),
(477, 'section', 161, 29, 29, 29, 29, 0),
(478, 'group', 19, 29, 29, 29, 29, 0),
(479, 'section', 152, 29, 29, 29, 29, 0),
(480, 'section', 123, 18, 29, 29, 29, 0),
(481, 'section', 171, 29, 18, 18, 18, 0),
(482, 'group', 1, 30, 30, 30, 30, 0),
(483, 'section', 59, 30, 30, 30, 30, 0),
(484, 'section', 157, 30, 30, 30, 30, 0),
(485, 'section', 87, 30, 30, 30, 30, 0),
(486, 'section', 89, 30, 30, 30, 30, 0),
(487, 'group', 10, 30, 30, 30, 30, 0),
(488, 'section', 128, 30, 30, 30, 30, 0),
(489, 'section', 82, 30, 30, 30, 30, 0),
(490, 'section', 70, 30, 30, 30, 30, 0),
(491, 'section', 158, 30, 30, 30, 30, 0),
(492, 'section', 95, 30, 30, 30, 30, 0),
(493, 'section', 159, 30, 30, 30, 30, 0),
(494, 'section', 122, 30, 30, 30, 30, 0),
(495, 'section', 123, 30, 30, 30, 30, 0),
(496, 'section', 134, 30, 30, 30, 30, 0),
(497, 'section', 168, 30, 30, 30, 30, 0),
(498, 'section', 161, 30, 30, 30, 30, 0),
(499, 'group', 19, 30, 30, 30, 30, 0),
(500, 'section', 152, 30, 30, 30, 30, 0),
(501, 'section', 123, 18, 30, 30, 30, 0),
(502, 'section', 171, 30, 18, 18, 18, 0),
(524, 'section', 206, 28, 28, 28, 28, 0),
(523, 'section', 205, 28, 28, 28, 28, 0),
(522, 'section', 204, 28, 28, 28, 28, 0),
(521, 'section', 203, 28, 28, 28, 28, 0),
(520, 'section', 202, 28, 28, 28, 28, 0),
(519, 'section', 201, 28, 28, 28, 28, 0),
(518, 'section', 200, 28, 28, 28, 28, 0),
(517, 'section', 199, 28, 28, 0, 0, 0),
(516, 'section', 192, 28, 28, 28, 28, 0),
(515, 'section', 170, 28, 28, 28, 28, 0),
(514, 'section', 189, 28, 28, 28, 28, 0),
(513, 'section', 199, 28, 28, 28, 28, 0),
(512, 'section', 191, 28, 28, 28, 28, 0),
(511, 'section', 190, 28, 28, 28, 28, 0),
(510, 'section', 198, 28, 28, 28, 28, 0),
(509, 'section', 197, 28, 28, 28, 28, 0),
(508, 'section', 187, 28, 0, 0, 0, 0),
(507, 'section', 183, 28, 0, 0, 0, 0),
(506, 'section', 182, 28, 0, 0, 0, 0),
(505, 'section', 195, 28, 0, 0, 0, 0),
(504, 'section', 194, 28, 0, 0, 0, 0),
(503, 'section', 193, 28, 0, 0, 0, 0),
(525, 'section', 188, 28, 28, 28, 28, 0),
(526, 'section', 208, 28, 28, 28, 28, 0),
(527, 'section', 207, 28, 28, 28, 28, 0);

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

--
-- Table structure for table `cms_roles`
--

CREATE TABLE IF NOT EXISTS `cms_roles` (
  `role_id` int(11) NOT NULL,
  `role_name` varchar(256) NOT NULL,
  `parent_role_id` int(11) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_roles`
--

INSERT INTO `cms_roles` (`role_id`, `role_name`, `parent_role_id`) VALUES
(16, 'Dev Lead', 18),
(1, 'admin', 0),
(12, 'Developer', 1),
(14, 'HR Executive', 1),
(17, 'QA Tech', 1),
(18, 'Manager', 0),
(19, 'Business Lead', 18),
(20, 'Business Executive', 1),
(21, 'Finanace Head', 1),
(22, 'Support Lead', 18),
(23, 'Support Tech', 1),
(24, 'QA Lead', 1),
(25, 'Account Lead', 1),
(26, 'Account Executive', 1),
(27, 'Assistant Dev Lead', 16),
(28, 'Delivery Head', 0),
(29, 'QA Support Tech', 0),
(30, 'System Admin', 0);

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

--
-- Table structure for table `cms_sections`
--

CREATE TABLE IF NOT EXISTS `cms_sections` (
  `id` int(8) NOT NULL,
  `group_id` int(8) DEFAULT NULL,
  `section_name` varchar(200) DEFAULT NULL,
  `section_alias` varchar(200) DEFAULT NULL,
  `table_name` varchar(100) DEFAULT NULL,
  `section_config` text,
  `visibilty` enum('0','1') NOT NULL,
  `display_order` int(11) NOT NULL,
  `user_privilege` varchar(256) NOT NULL DEFAULT 'all',
  `module` enum('admin','user') NOT NULL DEFAULT 'admin',
  `db_type` enum('main','client') NOT NULL DEFAULT 'main',
  `smb_id` bigint(20) DEFAULT NULL
) ENGINE=MyISAM AUTO_INCREMENT=209 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cms_sections`
--

INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(1, 2, 'Manage Groups', 'groups', 'cms_groups', '{\n"keyColumn":"id",\n"orderBy":{"id":"ASC"},\n"publishColumn":"published",\n"listColumns":["id","group_name","user_privilege"],\n"showColumns":["id","group_name","position","user_privilege"],\n"detailColumns":["id","group_name","position","user_privilege"],\n"detailHeaderColumns":["group_name"],\n"columns":{\n    "id":{"name":"ID","sortable":"true","searchable":"searchable","editoptions":{"type":"hidden"}},\n    "group_name":{"name":"Group Name","sortable":"true","searchable":"searchable","editoptions":{"type":"textbox","label":"Group Name","class":"textbox"}},\n    "position":{"name":"Display Order","sortable":"true","editoptions":{"type":"textbox","label":"Display Order","class":"textbox"}},\n    "user_privilege":{"name":"Privilege","sortable":"true","searchable":"searchable","editoptions":{"type":"select","source":{"all":"All","s":"Superadmin"},"source_type":"array","label":"Privilege","class":"select","enumvalues":{"all":"All","s":"Superadmin"}}}\n    },\n"opertations":["add","edit","delete","view","publish"]\n}', '1', 3, '', 'admin', 'main', NULL),
(2, 2, 'Manage Sections', 'sections', 'cms_sections', '{\n"keyColumn":"id",\n"orderBy":{"id":"ASC"},\n"listColumns":["group_id","section_name","section_alias","visibilty","display_order"],\n"showColumns":["id","group_id","section_name","section_alias","table_name","section_config","visibilty","display_order"],\n"detailColumns":["id","group_id","section_name","section_alias","table_name","section_config","visibilty","display_order"],\n"detailHeaderColumns":["section_name"],\n"columns":{\n    "id":{"name":"ID","sortable":"true","editoptions":{"type":"hidden"}},\n    "group_id":{"name":"Group ID","sortable":"true","searchable":"searchable","editoptions":{"validations":["required"],"type":"select","source":"Cms::getAllGroups","source_type":"function","label":"Group Name","class":"select"},"external":"true","externalOptions":{"externalTable":"cms_groups","externalColumn":"id","externalShowColumn":"group_name"}},\n    "section_name":{"name":"Section Name","sortable":"true","searchable":"searchable","editoptions":{"validations":["required"],"type":"textbox","label":"Section Name","class":"textbox"}},\n    "section_alias":{"name":"Section Alias","sortable":"true","searchable":"searchable","editoptions":{"validations":["required"],"type":"textbox","label":"Section Alias","class":"textbox"}},\n    "table_name":{"name":"Table Name","editoptions":{"validations":["required"],"type":"textbox","label":"Table Name","class":"textbox"}},\n    "section_config":{"name":"Section Config","editoptions":{"validations":["required"],"type":"textarea","label":"Section Config","class":"textarea"}},\n    "visibilty":{"name":"Make Visible","sortable":"true","searchable":"searchable","editoptions":{"type":"checkbox","label":"Make Visible","class":"inline","default":"yes","enumvalues":{"1":"Visible","0":"Invisible"}}},\n    "display_order":{"name":"Display Order","sortable":"true","searchable":"searchable","editoptions":{"type":"textbox","label":"Display Order","class":"textbox"}}\n    },\n"opertations":["add","edit","delete","view","publish"]\n}', '1', 4, '', 'admin', 'main', NULL),
(3, 2, 'Manage Settings', 'manage_settings', 'tbl_cms_settings', '{\r\n"keyColumn":"id",\r\n"listColumns":["cms_set_name","cms_set_value"],\r\n"showColumns":["cms_set_name","cms_set_value"],\r\n"detailColumns":["id","cms_set_name","cms_set_value"],\r\n"detailHeaderColumns":["cms_set_name"],\r\n"columns":{\r\n    "id":{"name":"ID","sortable":"true","editoptions":{"type":"hidden"}},\r\n    "cms_set_name":{"name":"Name","sortable":"true","searchable":"searchable","editoptions":{"type":"disabled","label":"Name"}},\r\n    "cms_set_value":{"name":"Value","sortable":"true","searchable":"searchable","editoptions":{"type":"textbox","label":"Value","class":"textbox"}}\r\n},\r\n"opertations":["edit","view"]\r\n}', '1', 2, '', 'admin', 'main', NULL),
(53, 8, 'Static Content', 'static_content', 'tbl_contents', '{"keyColumn": "cnt_id",\r\n    "detailHeaderColumns": [\r\n        "cnt_title"\r\n    ],\r\n    "orderBy": {\r\n        "cnt_id": "ASC"\r\n    },\r\n    "listColumns": [\r\n        "cnt_title",\r\n        "cnt_content"\r\n    ],\r\n    "showColumns": [\r\n        "cnt_title",\r\n        "cnt_content"\r\n    ],\r\n    "detailColumns": [\r\n       "cnt_title",\r\n        "cnt_content",\r\n		"cnt_id"\r\n    ],\r\n    "columns": {\r\n        "cnt_id": {\r\n            "name": "ID",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "cnt_title": {\r\n            "name": "Title",\r\n            "sortable": "true",\r\n            "searchable": "searchable",\r\n            "editoptions": {\r\n                "validations": [\r\n                    "required"\r\n                ],\r\n                "type": "textbox",\r\n                "label": "Title",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "cnt_content": {\r\n            "name": "Content",\r\n            "editoptions": {\r\n                "validations": [\r\n                    "required"\r\n                ],\r\n                "type": "htmlEditor",\r\n                "label": "Content",\r\n                "class": "textarea"\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "edit",\r\n        "view"\r\n    ]\r\n}', '1', 1, 'all', 'admin', 'main', NULL),
(54, 0, 'Users', 'users', 'tbl_users', '{\r\n    "keyColumn": "user_id",\r\n    "detailHeaderColumnPrefix": "User: ",\r\n    "detailHeaderColumns": [\r\n        "user_email"\r\n    ],\r\n    "orderBy": {\r\n        "user_id": "ASC"\r\n    },\r\n	"includeJsFiles": [\r\n		"cmsvalidations.js"\r\n	],\r\n"combineTables":{"tbl_smb_account":{"combineColumns":["smb_name","smb_plan"],"combineReferenceColumn":"smb_owner_id","combineTableForiegnKey":"user_id","isPrimaryKey":"true"}},\r\n\r\n    "listColumns": [\r\n	 \r\n        "user_fname",\r\n        "user_lname",\r\n        "user_email",\r\n		"user_joinedon",\r\n		"user_phone",\r\n		"user_status"\r\n		 \r\n    ],\r\n    "showColumns": [\r\n        "user_fname",\r\n        "user_lname",\r\n        "user_email",\r\n		"user_password",\r\n        "user_photo_id",\r\n        "user_joinedon",\r\n		"user_status",\r\n		"user_phone"\r\n    ],\r\n    "detailColumns": [\r\n	 \r\n        "user_fname",\r\n        "user_lname",\r\n        "user_email",\r\n		"user_password",\r\n        "user_joinedon",\r\n		"user_phone",\r\n		"user_status",\r\n		"smb_name",\r\n		"smb_plan"\r\n \r\n		\r\n    ],\r\n    "columns": {\r\n        "user_id": {\r\n            "name": "ID",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "user_fname": {\r\n            "name": "First Name",\r\n			 "searchable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "First Name",\r\n                "class": "textbox",\r\n				"validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n		  \r\n        "user_lname": {\r\n            "name": "Last Name",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Last Name",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n		"user_email": {\r\n            "name": "Email",\r\n            "sortable": "true",\r\n			 "searchable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Email",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n		 "user_phone": {\r\n            "name": "User Phone",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "User Phone",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n		"user_password": {\r\n            "name": "Password",\r\n            "editoptions": {\r\n                "type": "password",\r\n                "label": "Password",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n		 "smb_name": {\r\n            "name": "Business Account",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n		 	"customColumn": "true",\r\n            "customaction": "Cmshelper::fetchSMBFromUserid",\r\n			"editoptions": {\r\n                "type": "textbox",\r\n                "label": "Business Account",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }  \r\n        },\r\n		\r\n		 "smb_plan": {\r\n            "name": "Plan",\r\n            "editoptions": {\r\n                "validations": [\r\n                    "required"\r\n                ],\r\n                "type": "select",\r\n                "source": "Cmshelper::getAllPlans",\r\n                "source_type": "function",\r\n                "label": "Plan",\r\n                "class": "select"\r\n            },\r\n            "customColumn": "true",\r\n             "customaction": "Cmshelper::fetchSMBPlanFromId"\r\n        },\r\n		"user_status": {\r\n            "name": "Status",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "1": "Active",\r\n                    "0": "Inactive"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "1": "Active",\r\n                    "0": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n		\r\n		\r\n		\r\n        "user_joinedon": {\r\n            "name": "Joined On",\r\n            "sortable": "true",\r\n			 "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y"\r\n        }\r\n    },\r\n	"customActions": {\r\n        "afterAddRecord": "Cmshelper::createNewApp"\r\n    },\r\n\r\n    "opertations": [\r\n	 	"add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n	  "report": {\r\n        "reportTitle": "Users",\r\n        "columns": [\r\n			"user_fname",\r\n			"user_lname",\r\n			"user_email",\r\n			"user_joinedon",\r\n			"user_phone",\r\n			"user_status"\r\n        ],\r\n        "dateColumn": "user_joinedon"\r\n    }\r\n}', '0', 4, 'all', 'admin', 'main', NULL),
(56, 8, 'Plans', 'plans', 'tbl_plans', '{\r\n    "keyColumn": "plan_id",\r\n    "detailHeaderColumnPrefix": "Plan: ",\r\n    "detailHeaderColumns": [\r\n        "plan_name"\r\n    ],\r\n    "orderBy": {\r\n        "plan_id": "ASC"\r\n    },\r\n    "listColumns": [\r\n        "plan_name",\r\n        "plan_amount",\r\n        "plan_user_limit",\r\n		\r\n		"plan_period",\r\n        "plan_status"\r\n    ],\r\n    "showColumns": [\r\n        "plan_name",\r\n		"plan_desc",\r\n        "plan_amount",\r\n        "plan_user_limit",\r\n		\r\n		"plan_period",\r\n        "plan_status"\r\n    ],\r\n    "detailColumns": [\r\n        "plan_name",\r\n		"plan_desc",\r\n        "plan_amount",\r\n        "plan_user_limit",\r\n		\r\n		"plan_period",\r\n        "plan_status"\r\n    ],\r\n    "columns": {\r\n        "plan_id": {\r\n            "name": "Plan Id",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "plan_name": {\r\n            "name": "Plan Name",\r\n            "sortable": "true",\r\n			"searchable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Plan Name",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n		"plan_desc": {\r\n            "name": "Plan Desc",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Plan Desc",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "plan_amount": {\r\n            "name": "Amount($)",\r\n            "decimalPoint" : "2",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Amount",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "plan_user_limit": {\r\n            "name": "User Limit",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "User Limit",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n		 "plan_period": {\r\n            "name": "Period( in Dates)",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Period( in Dates)",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "plan_status": {\r\n            "name": "Status",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "0": "Inactive",\r\n                    "1": "Active"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "0": "Inactive",\r\n                    "1": "Active"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ]\r\n}', '1', 1, 'all', 'admin', 'main', NULL),
(70, 10, 'Change Password', 'change_password', 'cms_users', '{\r\n    "customCmsAction": "true",\r\n    "controller": "cms",\r\n    "method": "change_pwd",\r\n    "module": "cms"\r\n}', '1', 5, 'all', 'admin', 'main', NULL),
(71, 8, 'Settings', 'settings', 'tbl_lookup', '{\n    "siteSettings": "true",\n    "settingStyle": "tab",\n    "beforeEditRecord": "Cmshelper::changeSettings",\n    "fieldList":["nLookUp_Id","vLookUp_Name","vLookUp_Value","settinglabel","groupLabel","helptext","type","parent_settingfield","display_order"],\n    "fieldAssignment":{\n        "settingfield":"vLookUp_Name",\n        "value":"vLookUp_Value"\n    },\n    "hints": {        \n        "admin_email": "Email where all site notifications, alerts and notifications are sent",\n        "sitelogo": "This is where you can change the logo of your site."\n    }\n}', '1', 1, 'all', 'admin', 'main', NULL),
(57, 1, 'Business Accounts', 'smb-accounts', 'tbl_smb_account', '{\r\n    "keyColumn": "smb_acc_id",\r\n    "detailHeaderColumnPrefix": "SMB: ",\r\n    "detailHeaderColumns": [\r\n        "smb_name"\r\n    ],\r\n    "orderBy": {\r\n        "smb_acc_id": "ASC"\r\n    },\r\n    "listColumns": [\r\n		"smb_acc_id",\r\n        "smb_name",\r\n		"smb_userfname",\r\n        "smb_plan",\r\n        "smb_avail_credit",\r\n        "smb_createdon",\r\n		"upgrade"\r\n    ],\r\n    "showColumns": [\r\n		"smb_acc_id",\r\n        "smb_owner_id",\r\n        "smb_name",\r\n        "smb_desc",\r\n        "smb_subscription_type",\r\n        "smb_subscription_date",\r\n        "smb_subscription_expire_date",\r\n        "smb_plan",\r\n        "smb_avail_credit",\r\n        "smb_createdon",\r\n		"upgrade"\r\n    ],\r\n    "detailColumns": [\r\n		"smb_acc_id",\r\n        "smb_owner_id",\r\n        "smb_name",\r\n		"smb_userfname",\r\n        "smb_plan",\r\n        "smb_avail_credit",\r\n        "smb_createdon",\r\n		"upgrade"\r\n    ],\r\n    "columns": {\r\n        "smb_acc_id": {\r\n            "name": "App ID",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "smb_owner_id": {\r\n            "name": "User Email",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_users",\r\n                "externalColumn": "user_id",\r\n                "externalShowColumn": "user_email"\r\n            }\r\n        },\r\n		"smb_userfname": {\r\n            "name": "Name",\r\n            "sortable": "true",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getUserNameFromSmb",\r\n			 "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getUserInfoPopupSMB"\r\n            }\r\n        },\r\n        "smb_name": {\r\n            "name": "Account Name",\r\n			"searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "SMB Name",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            },\r\n			 "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getSmbPopupUrl"\r\n            }\r\n        },\r\n        "smb_createdon": {\r\n            "name": "Signed up On",\r\n            "sortable": "true",\r\n			"dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y"\r\n        },\r\n        "smb_avail_credit": {\r\n			"name" :"Available Credit",\r\n			"customColumn": "true",\r\n            "customaction": "Cmshelper::getSmbAddCreditUrl"\r\n        },\r\n		"upgrade" :{\r\n			"name" :"Change Plan",\r\n			"customColumn": "true",\r\n            "customaction": "Cmshelper::getUserUpgradeUrl"\r\n		},\r\n		"addcredit" :{\r\n			"name" :"Add Credit",\r\n			"customColumn": "true",\r\n            "customaction": "Cmshelper::getSmbAddCreditUrl"\r\n		},\r\n        "smb_plan": {\r\n            "name": "Plan",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_plans",\r\n                "externalColumn": "plan_id",\r\n                "externalShowColumn": "plan_name"\r\n            }\r\n        }\r\n    },\r\n	 "customOperations": {\r\n        "login": {\r\n            "options": {\r\n                "target": "newtab",\r\n                "name": "Login",\r\n                 "class": " ",\r\n                "title": "Login",\r\n                "linkSource": "Cmshelper::getSmbLoggedInUrl"\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n    ],\r\n	 "report": {\r\n        "reportTitle": "Business Accounts",\r\n        "columns": [\r\n			"smb_acc_id",\r\n			"smb_owner_id",\r\n			"smb_name",\r\n			"smb_desc",\r\n			"smb_subscription_type",\r\n			"smb_subscription_date",\r\n			"smb_subscription_expire_date",\r\n			"smb_plan",\r\n			"smb_createdon"       ],\r\n        "dateColumn": "smb_createdon"\r\n    }\r\n}', '0', 2, 'all', 'admin', 'main', NULL),
(58, 8, 'Settings_custom', 'settings', 'tbl_lookup', '{"customAction":"true","controller":"cmshelper","method":"settingsdisplay","module":"default"}\r\n', '0', 1, 'all', 'admin', 'main', NULL),
(59, 1, 'My Dashboard', 'dashboard', 'tbl_lookup', '{\n    "includeJsFiles": [\n        "dashboard.js"\n    ],\n    "dashboardPanel": "true",\n    "listingPanel": "true",\n    "listinPanelRow": "8",\n    "listingPanel1": {\n        "columns": "2",\n        "column1": {\n            "title": "Check In / Check Out",\n            "fetchValue": "Cmshelper::checkInOutNew",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        },\n        "column2": {\n            "title": "Employee Info",\n            "fetchValue": "Cmshelper::employeeInfo",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel2": {\n        "columns": "1",\n        "column1": {\n            "title": "Basic Info",\n            "fetchValue": "Cmshelper::fetchDashboardDisplayCounts",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel3": {\n        "columns": "1",\n        "column1": {\n            "title": "My Tasks To Do",\n            "fetchValue": "Cmshelper::getMyImportantTasks",\n            "listcolumns": {\n                "title": {\n                    "name" : "Task To Do"\n                }\n            }\n        }\n    },\n    "listingPanel4": {\n        "columns": "1",\n        "column1": {\n            "title": "My Bugs To Do",\n            "fetchValue": "Cmshelper::getMyImportantBugs",\n            "listcolumns": {\n                "title": {\n                    "name" : "Bugs To Do"\n                }\n            }\n        }\n    },\n    "listingPanel5": {\n        "columns": "1",\n        "column1": {\n            "title": "Upcoming Milestone",\n            "fetchValue": "Cmshelper::getMyImportantMilestones",\n            "listcolumns": {\n                "title": {\n                    "name" : "Milestones To Do"\n                }\n            }\n        }\n    },\n    "listingPanel6": {\n        "columns": "2",\n        "column1": {\n            "title": "Recent News",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getNewsUrl",\n            "fetchValue": "Cmshelper::fetchRecentNews",\n            "listcolumns": {\n                "title": {\n                    "name": "News Title"\n                },\n                "description": {\n                    "name": "Description"\n                },\n                "date": {\n                    "name": "Added Date"\n                }\n            }\n        },\n        "column2": {\n            "title": "Leave Summary",\n            "fetchValue": "Cmshelper::fetchHolidaySummary",\n            "listcolumns": {\n                "leave_type": {\n                    "name": "Leave"\n                },\n                "taken": {\n                    "name": "Taken"\n                },\n                "bal": {\n                    "name": "Left"\n                }\n            }\n        }\n    },\n    "listingPanel7": {\n        "columns": "2",\n        "column1": {\n            "title": "Upcoming Holidays",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getHolidaysUrl",\n            "fetchValue": "Cmshelper::fetchRecentHolidays",\n            "listcolumns": {\n                "title": {\n                    "name": "Title"\n                },\n                "date": {\n                    "name": "Date"\n                }\n            }\n        },\n        "column2": {\n            "title": "BirthDays",\n            "fetchValue": "Cmshelper::fetchBirthdays",\n            "listcolumns": {\n                "detail": {}\n            }\n        }\n    },\n    "listingPanel8": {\n        "columns": "1",\n        "column1": {\n            "title": "Team Leave",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getLeavesTeamUrl",\n            "fetchValue": "Cmshelper::fetchRecentTeamLeaves",\n            "listcolumns": {\n                "username": {\n                    "name": "Name"\n                },\n                "leave_type": {\n                    "name": "Leave Type"\n                },\n                "from_date": {\n                    "name": "Date"\n                }\n            }\n        }\n    }\n}\n\n', '1', 0, 'all', 'admin', 'main', NULL),
(105, 1, 'HR', 'hrdashboard', 'tbl_lookup', '{ "includeJsFiles": [ "dashboard.js" ], "dashboardPanel": "true", "listingPanel": "true", "listinPanelRow": "4", "listingPanel1": { "columns": "2", "column1": { "title": "Check In / Check Out", "fetchValue": "Cmshelper::checkInOutNew", "listcolumns": { "title": {}, "value": {} } }, "column2": { "title": "Employee Info", "fetchValue": "Cmshelper::employeeInfo", "listcolumns": { "title": {}, "value": {} } } }, "listingPanel2": { "columns": "2", "column1": { "title": "Recent News", "titlelink": "View All", "titlelinkSection": "Cmshelper::getNewsUrl", "fetchValue": "Cmshelper::fetchRecentNews", "listcolumns": { "title": { "name": "News Title" }, "description": { "name": "Description" }, "date": { "name": "Added Date" } } }, "column2": { "title": "Leave Requests", "titlelink": "View All", "titlelinkSection": "Cmshelper::getLeavesHRUrl", "fetchValue": "Cmshelper::fetchRecentHRLeaves", "listcolumns": { "username": { "name": "Name" }, "leave_type": { "name": "Leave Type" }, "from_date": { "name": "Date" } } } }, "listingPanel3": { "columns": "2", "column1": { "title": "Leave Summary", "fetchValue": "Cmshelper::fetchHolidaySummary", "listcolumns": { "leave_type": { "name": "Leave" }, "taken": { "name": "Taken" }, "bal": { "name": "Left" } } }, "column2": { "title": "Upcoming Holidays", "titlelink": "View All", "titlelinkSection": "Cmshelper::getHolidaysUrl", "fetchValue": "Cmshelper::fetchRecentHolidays", "listcolumns": { "title": { "name": "Title" }, "date": { "name": "Date" } } } }, "listingPanel4": { "columns": "2", "column1": { "title": "BirthDays", "fetchValue": "Cmshelper::fetchBirthdays", "listcolumns": { "detail": {} } }, "column2": { "title": "Team Leave", "titlelink": "View All", "titlelinkSection": "Cmshelper::getLeavesTeamUrl", "fetchValue": "Cmshelper::fetchRecentTeamLeaves", "listcolumns": { "username": { "name": "Name" }, "leave_type": { "name": "Leave Type" }, "from_date": { "name": "Date" } } } } }', '1', 1, 'all', 'admin', 'main', NULL),
(128, 10, 'Log In Reports-Employee', 'checkinreportshead', 'attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "checkinreportshead", "module": "default" }', '1', 0, 'all', 'admin', 'main', NULL),
(60, 0, 'Subscriptions', 'subscriptions', 'tbl_subscription_tracker', '{\r\n    "keyColumn": "st_id",\r\n    "detailHeaderColumnPrefix": "Subscriptions: ",\r\n    "detailHeaderColumns": [\r\n        "st_id"\r\n    ],\r\n    "orderBy": {\r\n        "st_id": "ASC"\r\n    },\r\n    "listColumns": [\r\n        "smb_account_id",\r\n        "plan_id",\r\n        "st_subscription_amount",\r\n        "st_created_on",\r\n        "st_start_date",\r\n        "st_expiry_date"\r\n    ],\r\n    "showColumns": [\r\n        "smb_account_id",\r\n        "plan_id",\r\n        "st_subscription_amount",\r\n        "st_created_on",\r\n        "st_start_date",\r\n        "st_expiry_date"\r\n    ],\r\n    "detailColumns": [\r\n        "smb_account_id",\r\n        "plan_id",\r\n        "st_subscription_amount",\r\n        "st_created_on",\r\n        "st_start_date",\r\n        "st_expiry_date"\r\n    ],\r\n    "columns": {\r\n        "st_id": {\r\n            "name": "ID",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "smb_account_id": {\r\n            "name": "Business Account",\r\n            "sortable": "true",\r\n            "searchable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Account",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            },\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_smb_account",\r\n                "externalColumn": "smb_acc_id",\r\n                "externalShowColumn": "smb_name"\r\n            },\r\n			 "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getSmbPopupUrlFromSubs"\r\n            }\r\n        },\r\n        "plan_id": {\r\n            "name": "Plan",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_plans",\r\n                "externalColumn": "plan_id",\r\n                "externalShowColumn": "plan_name"\r\n            }\r\n        },\r\n        "st_subscription_amount": {\r\n            "name": "Amount ($)",\r\n            "sortable": "true",\r\n           "decimalPoint" : "2"\r\n        },\r\n        "st_created_on": {\r\n            "name": "Purchased On",\r\n            "sortable": "true",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y"\r\n        },\r\n        "st_start_date": {\r\n            "name": "Start Date",\r\n            "sortable": "true",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y"\r\n        },\r\n        "st_expiry_date": {\r\n            "name": "End Date",\r\n            "sortable": "true",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y"\r\n        }\r\n    },\r\n    "opertations": [\r\n        "view"\r\n    ],\r\n	"report": {\r\n        "reportTitle": "Subscriptions",\r\n        "columns": [\r\n	        "smb_account_id",\r\n    		"plan_id",\r\n	        "st_subscription_amount",\r\n	        "st_created_on",\r\n	        "st_start_date",\r\n    	    "st_expiry_date"\r\n        ],\r\n        "dateColumn": "st_created_on"\r\n    }\r\n}', '0', 3, 'all', 'admin', 'main', NULL),
(61, 0, 'Credits', 'credits', 'tbl_credit_tracker', '{\r\n    "keyColumn": "ct_id",\r\n    "detailHeaderColumnPrefix": "Credits: ",\r\n    "detailHeaderColumns": [\r\n        "smb_account_id"\r\n    ],\r\n    "orderBy": {\r\n        "ct_id": "ASC"\r\n    },\r\n    "listColumns": [\r\n        "smb_account_id",\r\n        "ct_credit_amount",\r\n        "ct_created_on",\r\n		"ct_creditvalue",\r\n		"ct_current_user_credit"\r\n    ],\r\n    "showColumns": [\r\n        "smb_account_id",\r\n        "ct_credit_amount",\r\n        "ct_created_on",\r\n		"ct_creditvalue",\r\n		"ct_current_user_credit"\r\n    ],\r\n    "detailColumns": [\r\n        "smb_account_id",\r\n        "ct_credit_amount",\r\n        "ct_created_on" ,\r\n		"ct_creditvalue",\r\n		"ct_current_user_credit"\r\n\r\n    ],\r\n    "columns": {\r\n        "ct_id": {\r\n            "name": "ID",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "smb_account_id": {\r\n            "name": "Business Account",\r\n            "sortable": "true",\r\n			"searchable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Account",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            },\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_smb_account",\r\n                "externalColumn": "smb_acc_id",\r\n                "externalShowColumn": "smb_name"\r\n            },\r\n			 "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getSmbPopupUrlFromCredits"\r\n            }\r\n        },\r\n        "ct_credit_amount": {\r\n            "name": "Amount ($)",\r\n            "sortable": "true"\r\n        },\r\n		 "ct_creditvalue": {\r\n            "name": "Credit Value",\r\n            "sortable": "true"\r\n        },\r\n        "ct_current_user_credit": {\r\n            "name": "User Credit",\r\n            "sortable": "true"\r\n        },\r\n\r\n        "ct_created_on": {\r\n            "name": "Date",\r\n            "sortable": "true",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y"\r\n        }\r\n    },\r\n    "opertations": [\r\n        "view"\r\n    ],\r\n	  "report": {\r\n        "reportTitle": "Credits",\r\n        "columns": [\r\n            "smb_account_id",\r\n       		"ct_credit_amount",\r\n        	"ct_created_on" \r\n        ],\r\n        "dateColumn": "ct_created_on"\r\n    }\r\n}', '0', 5, 'all', 'admin', 'main', NULL),
(62, 8, 'Inbound Numbers', 'phonenumbers', 'tbl_lookup', '{"customAction":"true","controller":"cmshelper","method":"phonenumbers","module":"default"}\r\n', '0', 2, 'all', 'admin', 'main', NULL),
(63, 8, 'Application Settings', 'appsettings', 'apptbl_settings', '{"customAction":"true","controller":"cmshelper","method":"appsettingsdisplay","module":"default"}\r\n', '1', 4, 'all', 'admin', 'main', NULL),
(64, 8, 'Vanity Numbers', 'vanity_numbers', 'tbl_vanity_numbers', '{\r\n    "keyColumn": "v_id",\r\n    "detailHeaderColumnPrefix": "Vanity Number: ",\r\n    "detailHeaderColumns": [\r\n        "v_number"\r\n    ],\r\n    "orderBy": {\r\n        "v_appid": "ASC"\r\n    },\r\n    "listColumns": [\r\n        "v_appid",\r\n        "v_number",\r\n        "v_requestedon",\r\n        "v_status"\r\n    ],\r\n    "showColumns": [\r\n        "v_appid",\r\n        "v_number",\r\n        "v_requestedon",\r\n        "v_status"\r\n    ],\r\n    "detailColumns": [\r\n        "v_appid",\r\n        "v_number",\r\n        "v_requestedon",\r\n        "v_status",\r\n        "v_id"\r\n    ],\r\n    "columns": {\r\n        "v_id": {\r\n            "name": "ID",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "v_appid": {\r\n            "name": "Business Account",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_smb_account",\r\n                "externalColumn": "smb_acc_id",\r\n                "externalShowColumn": "smb_name"\r\n            } \r\n        },\r\n        "v_number": {\r\n            "name": "Vanity Number",\r\n            "sortable": "true",\r\n            "searchable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Vanity Number",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "v_requestedon": {\r\n            "name": "Vanity Requested On",\r\n            "sortable": "true",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y"\r\n        },\r\n        "v_status": {\r\n            "name": "Status",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "0": "Not Approved",\r\n                    "1": "Approved"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "0": "Not Approved",\r\n                    "1": "Approved"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ]\r\n}', '0', 6, 'all', 'admin', 'main', NULL),
(65, 8, 'Inbound Numbers', 'phonenumber', 'tbl_phonenumbers', '{\r\n    "keyColumn": "ph_id",\r\n    "detailHeaderColumnPrefix": "Inbound Numbers: ",\r\n    "detailHeaderColumns": [\r\n        "ph_number"\r\n    ],\r\n    "orderBy": {\r\n        "ph_id": "ASC"\r\n    },\r\n    "listColumns": [\r\n        "ph_id",\r\n        "ph_number",\r\n        "ph_appid",\r\n        "ph_bookdate",\r\n        "ph_status"\r\n    ],\r\n    "showColumns": [\r\n        "ph_number",\r\n        "ph_status"\r\n    ],\r\n    "detailColumns": [\r\n        "ph_id",\r\n        "ph_number",\r\n        "ph_appid",\r\n        "ph_bookdate",\r\n        "ph_status"\r\n    ],\r\n    "columns": {\r\n        "ph_id": {\r\n            "name": "Id",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "ph_number": {\r\n            "name": "Inbound Number",\r\n            "sortable": "true",\r\n            "searchable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Inbound Number",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "ph_appid": {\r\n            "name": "Business Account",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_smb_account",\r\n                "externalColumn": "smb_acc_id",\r\n                "externalShowColumn": "smb_name"\r\n            },\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "ph_bookdate": {\r\n            "name": "Booked On",\r\n            "sortable": "true",\r\n    "customColumn": "true",\r\n            "customaction": "Cmshelper::getBookedDate"           \r\n        },\r\n        "ph_status": {\r\n            "name": "Status",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "1": "Active",\r\n                    "0": "Inactive",\r\n                    "2": "Booked"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "default": "1",\r\n                "enumvalues": {\r\n                    "1": "Active",\r\n                    "0": "Inactive",\r\n                    "2": "Booked"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "customActions":{"afterEditRecord":"Cmshelper::getNumberStatus"},\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ]\r\n}', '1', 0, 'all', 'admin', 'main', NULL),
(66, 9, 'Manage Content', 'manage_content', 'tbl_user_profile', '{\n    "keyColumn": "profile_id",\n    "detailHeaderColumnPrefix": "User Profiles: ",\n    "detailHeaderColumns": [\n        "user_email"\n    ],\n    "orderBy": {\n        "profile_id": "DESC"\n    },\n    "listColumns": [\n	"profile_id",\n        "user_id",\n        "user_email",\n        "user_phone",\n        "user_phone_extension"        \n    ],\n    "showColumns": [\n        "profile_id",\n        "user_id",\n        "user_email",\n        "user_phone",\n        "user_phone_extension"\n        \n    ],\n    "detailColumns": [\n	"profile_id",\n        "user_id",\n        "user_email",\n        "user_phone",\n        "user_phone_extension"      \n    ],\n    "columns": {\n        "profile_id": {\n            "name": "Profile ID",\n            "sortable": "true",\n            "searchable": "true",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "user_email": {\n            "name": "User Email",\n            "sortable": "true"           \n        },\n        "user_id": {\n            "name": "User Name",\n            "sortable": "true",\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_users",\n                "externalColumn": "user_id",\n                "externalShowColumn":"user_lname"\n            }           \n        },\n        "user_phone": {\n            "name": "Phone",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Phone Number",\n                "class": "textbox",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "user_phone_extension": {\n            "name": "Phone Extension",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Phone Extension",\n                "class": "textbox",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        \n       \n	 \n    "opertations": [\n	"add",\n        "view",\n        "edit",\n        "delete"\n    ],\n	"report": {\n        "reportTitle": "User Profiles",\n        "columns": [\n                    "profile_id",\n                    "user_email",\n                    "user_phone",\n                    "user_phone_extension",\n                    "User Name"\n                ]\n    }\n}\n}\n', '0', 1, 'all', 'user', 'main', NULL),
(67, 2, 'Manage Roles', 'manage_roles', 'cms_roles', '{"customCmsAction":"true","controller":"cms","method":"manageroles","module":"cms"}', '1', 1, 'all', 'admin', 'main', NULL),
(68, 2, 'Manage Privileges ', 'cms_privileges', 'cms_privileges', '{"customCmsAction":"true","controller":"cms","method":"manageprivilege","module":"cms"}', '1', 1, '', 'admin', 'main', NULL),
(69, 13, 'User Registration', 'cms_users', 'cms_users', '{"customCmsAction":"true","controller":"cms","method":"manageusers","module":"cms"}', '0', 1, 'all', 'admin', 'main', NULL),
(7, 9, 'Menus', 'menu', 'cms_menus', '{\r\n    "keyColumn": "menus_id",\r\n    "wildsearch": "true",    "detailHeaderColumnPrefix": "Menus: ",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "menus_id": "DESC"\r\n    },\r\n    "listColumns": [\r\n  "menus_id",\r\n        "title",\r\n        "position",\r\n        "menu_type",       \r\n        "enabled"\r\n    ],\r\n    "showColumns": [\r\n        "title",\r\n        "position",\r\n        "menu_type",\r\n        "menu_class",\r\n        "enabled"\r\n    ],\r\n    "detailColumns": [        \r\n        "menus_id",\r\n        "title",\r\n        "position",\r\n        "menu_type",\r\n        "menu_class",\r\n        "enabled"\r\n    ],\r\n    "columns": {\r\n            "menus_id": {\r\n                "name": "ID",\r\n                "editoptions": {\r\n                    "type": "hidden"\r\n                }\r\n            },\r\n            "title": {\r\n            "name": "Title",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Title",\r\n                "class": "textbox",\r\n                "hint": "Title of the menu",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n                }\r\n            },\r\n            "position": {\r\n                "name": "Position",\r\n                "searchable": "true",\r\n                "sortable": "true",\r\n                "editoptions": {\r\n                    "type": "textbox",\r\n                    "label": "Position",\r\n                    "class": "textbox"\r\n                }\r\n            },\r\n            "menu_type": {\r\n                "name": "Menu Type",\r\n                "searchable": "true",\r\n                "sortable": "true",\r\n                "editoptions": {\r\n                    "type": "select",\r\n                     "default":"Text",\r\n                    "source": {\r\n                        "Image": "Image",\r\n                        "Text": "Text",\r\n                        "Both": "Both"\r\n                    },\r\n                    "source_type": "array",\r\n                    "label": "Menu Type",\r\n                    "class": "select",\r\n                    "enumvalues": {\r\n                        "Image": "Image",\r\n                        "Text": "Text",\r\n                        "Both": "Both"\r\n                    },  "validations": [\r\n                    "required"\r\n                ]\r\n                }\r\n            },\r\n            "menu_class": {\r\n                "name": "Menu Class",\r\n                "searchable": "true",\r\n                "sortable": "true",\r\n                "editoptions": {\r\n                    "type": "textbox",\r\n                    "label": "Menu Class",\r\n                    "class": "textbox",\r\n                    "hint": "css class of the menu element"\r\n                }\r\n            },\r\n            "enabled": {\r\n                "name": "Status",\r\n                "searchable": "true",\r\n                "sortable": "true",\r\n                "listoptions": {\r\n                    "type": "button",\r\n                    "customaction": "Cmshelper::changeMenuStatus",\r\n                    "enumvalues": {\r\n                        "Y": "Enabled",\r\n                        "N": "Disabled"\r\n                    },\r\n                    "buttonColors": {\r\n                        "Y": "green",\r\n                        "N": "red"\r\n                    }\r\n                },\r\n                "editoptions": {\r\n                    "type": "select",\r\n                    "source": {\r\n                        "Y": "Enabled",\r\n                        "N": "Disabled"\r\n                    },\r\n                   "default":"Y",\r\n                    "source_type": "array",\r\n                    "label": "status",\r\n                    "class": "select",\r\n                    "enumvalues": {\r\n                        "Y": "Enabled",\r\n                        "N": "Disabled"\r\n                    },\r\n  "validations": [\r\n                    "required"\r\n                ]\r\n                }\r\n            }\r\n    },\r\n    "relations": {\r\n        "Menu Items": {\r\n            "name": "Menu Items",\r\n            "section": "menu_items",\r\n            "child_table": "cms_menu_items",\r\n            "parent_join_column": "menus_id",\r\n            "child_join_column": "menus_id"\r\n        }\r\n     },\r\n        "opertations": [\r\n            "add",\r\n            "view",\r\n            "edit",\r\n            "delete"\r\n        ],\r\n"operationLabel": {\r\n           "addLabel": "Add Menu",\r\n           "editTitle": "Edit Menu",\r\n            "viewTitle": "View Menu Details",\r\n             "deleteTitle": "Delete Menu"\r\n              }\r\n    }\r\n    \r\n    ', '1', 1, 'all', 'admin', 'main', NULL);
INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(8, 9, 'Page Section', 'pageSection', 'cms_page_sections', '{\n    "keyColumn": "section_id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Page Sections: ",\n    "handleFile": "true",\n    "detailHeaderColumns": [\n    "title"\n    ],\n    "breadCrumbColumn": "title",\n    "orderBy": {\n        "section_id": "DESC"\n    },\n    "listColumns": [\n    "section_id",\n    "title",\n    "section_alias",       \n    "icon",\n    "enabled"\n    ],\n    "showColumns": [\n    "title",\n    "section_alias",\n    "description",\n    "icon",\n    "enabled",\n    "created_by",\n    "created_on"\n    ],\n    "detailColumns": [        \n    "section_id",\n    "title",\n    "section_alias",\n    "description",\n    "icon",\n    "enabled",\n    "created_by",\n    "created_on"\n    ],   \n    "columns": {\n        "section_id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "title": {\n            "name": "Title",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Title",\n                "class": "textbox",\n                "hint": "Title of the page section",\n                "validations": [\n                "required"\n                ]\n            }\n        },\n        "section_alias": {\n            "name": "Alias",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Alias",\n                "class": "textbox",\n                "validations": [\n                "required"\n                ]\n            }\n        },\n        "description": {\n            "name": "Description",              \n            "editoptions": {\n                "type": "htmlEditor",\n                "editorType" : "ckeditor",\n                "label": "Description",\n                "class": "textarea"\n            }\n        },\n        "icon": {\n            "name": "Icon",\n            "editoptions": {\n                "type": "file",\n                "label": "Icon",\n                "class": "file",\n                "hint": "Upload file for this section"\n            },\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_files",\n                "externalColumn": "file_id",\n                "externalShowColumn": "file_id"\n            }\n        },\n        "created_by": {\n            "name": "Created By"\n        },\n        "created_on": {\n            "name": "Created On"\n        },\n        "enabled": {\n            "name": "Status",\n            "searchable": "true",\n            "sortable": "true",\n            "listoptions": {\n                "type": "button",\n                "customaction": "Cmshelper::changePageSectionStatus",\n                "enumvalues": {\n                    "Y": "Enabled",\n                    "N": "Disabled"\n                },\n                "buttonColors": {\n                    "Y": "green",\n                    "N": "red"\n                }\n            },\n            "editoptions": {\n                "type": "select",\n                "source": {\n                    "Y": "Enabled",\n                    "N": "Disabled"\n                },\n                 "default":"Y",\n                "source_type": "array",\n                "label": "status",\n                "class": "select",\n                "enumvalues": {\n                    "Y": "Enabled",\n                    "N": "Disabled"\n                },\n                "validations": [\n                "required"\n                ]\n            }\n        }\n    },\n    "customActions": {\n        "beforeAddRecord": "Cmshelper::createdInfo",\n        "beforeEditRecord": "Cmshelper::updateInfo"\n    },\n    "relations": {\n        "Categories": {\n            "name": "Categories",\n            "section": "pageCategories",\n            "child_table": "cms_category",\n            "parent_join_column": "section_id",\n            "child_join_column": "section_id"\n        }\n     },\n    "opertations": [\n    "add",\n    "view",\n    "edit",\n    "delete"\n    ]\n}\n    ', '1', 3, 'all', 'admin', 'main', NULL),
(9, 9, 'Page Categories', 'pageCategories', 'cms_category', '   {\n    "keyColumn": "category_id",\n    "wildsearch": "true",   \n     "reference": {\n        "referenceTable": " cms_page_sections",\n        "referenceColumn": "section_id",\n        "referenceTableForiegnKey": "section_id"\n    },\n    "detailHeaderColumnPrefix": "Categories: ",\n    "handleFile": "true",\n    "detailHeaderColumns": [\n        "title"\n    ],\n    "breadCrumbColumn": "title",\n    "orderBy": {\n        "category_id": "DESC"\n    },\n    "listColumns": [        \n        "category_id",\n        "category_parent_id",        \n        "title",      \n        "category_alias",        \n        "icon",\n        "enabled"\n    ],\n    "showColumns": [\n        "category_id",\n        "section_id",\n        "category_parent_id",\n        "title",        \n        "category_alias",\n        "description",\n        "icon",\n        "enabled"\n    ],\n    "detailColumns": [        \n        "category_id",\n         "section_id",\n        "category_parent_id",        \n        "title",      \n        "category_alias",\n        "description",\n        "icon",\n        "enabled"\n    ],     \n    "columns": {\n            "category_id": {\n                "name": "ID",\n                "editoptions": {\n                    "type": "hidden"\n                }\n            },\n            "category_parent_id": {\n                "name": "Parent",    \n                "sortable": "true",\n                "searchable": "true",                 \n                "editoptions": {\n                      "type": "select",\n                      "source": "Cmshelper::getAllParentCategory",\n                      "source_type": "function",\n                      "label": "Parent",\n                      "class": "select"\n                  },\n                 "external": "true",\n                 "externalOptions": {\n                    "externalTable": "cms_category",\n                    "externalColumn": "category_id",\n                    "externalShowColumn": "title"\n                    }\n            },\n            "section_id": {\n                "name": "Section",\n                "sortable": "true",\n                "searchable": "true",\n                "external": "true",\n                "externalOptions": {\n                    "externalTable": "cms_page_sections",\n                    "externalColumn": "section_id",\n                    "externalShowColumn": "title"\n                    },\n                    "editoptions": {\n                        "type": "hidden"\n                    }\n            },                     \n            "title": {\n            "name": "Title",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Title",\n                "class": "textbox",\n                "hint": "Title of the page category",\n                "validations": [\n                    "required"\n                ]\n                }\n            },\n            "category_alias": {\n                "name": "Alias",\n                "searchable": "true",\n                "sortable": "true",\n                "editoptions": {\n                    "type": "textbox",\n                    "label": "Alias",\n                    "class": "textbox",\n                    "validations": [\n                        "required"\n                    ]\n                }\n            },\n            "description": {\n                "name": "Description",\n                "searchable": "true",\n                "sortable": "true",\n                "editoptions": {\n                   "type": "htmlEditor",\n                    "label": "Description",\n                    "class": "textarea",\n                    "hint": "Description for the category"\n                }\n            },\n            "icon": {\n            "name": "Icon",\n            "editoptions": {\n                "type": "file",\n                "label": "Icon",\n                "class": "file",\n                "hint": "Upload file for this section"\n            },\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_files",\n                "externalColumn": "file_id",\n                "externalShowColumn": "file_id"\n            }\n            },           \n            "enabled": {\n                "name": "Status",\n                "searchable": "true",\n                "sortable": "true",\n                "listoptions": {\n                    "type": "button",\n                    "customaction": "Cmshelper::changePageCategoryStatus",\n                    "enumvalues": {\n                        "Y": "Enabled",\n                        "N": "Disabled"\n                    },\n                    "buttonColors": {\n                        "Y": "green",\n                        "N": "red"\n                    }\n                },\n                "editoptions": {\n                    "type": "select",\n                    "source": {\n                        "Y": "Enabled",\n                        "N": "Disabled"\n                    },\n                   "default":"Y",\n                    "source_type": "array",\n                    "label": "status",\n                    "class": "select",\n                    "enumvalues": {\n                        "Y": "Enabled",\n                        "N": "Disabled"\n                    },\n                  "validations": [\n                    "required"\n                ]\n                }\n            }\n    },\n   "relations": {\n        "Contents": {\n            "name": "Contents",\n            "section": "pageContent",\n            "child_table": "cms_content",\n            "parent_join_column": "category_id",\n            "child_join_column": "category_id"\n        }\n     },\n        "opertations": [\n            "add",\n            "view",\n            "edit",\n            "delete"\n        ]\n    }\n    \n   ', '1', 4, 'all', 'admin', 'main', NULL),
(170, 16, 'Timesheets Management', 'timesheet_management', 'tbl_project_timesheets', '{\n	"keyColumn": "timesheet_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Team: ",\n	"handleFile": "true",\n	"detailHeaderColumns": [\n		"project_id"\n	],\n	"breadCrumbColumn": "project_id",\n	"orderBy": {\n		"timesheet_id": "DESC"\n	},\n	"listColumns": [\n		"project_id",\n		"estimation_file_id",\n		"timesheet_estimated_time",\n		"timesheet_description",\n		"timesheet_type",\n		"timesheet_status",\n		"added_on",\n		"added_by"\n	],\n	"showColumns": [\n		"project_id",\n		"estimation_file_id",\n		"timesheet_estimated_time",\n		"timesheet_description",\n		"timesheet_type",\n		"timesheet_status",\n		"added_on",\n		"added_by"\n	],\n	"detailColumns": [\n		"timesheet_id",\n		"project_id",\n		"estimation_file_id",\n		"timesheet_estimated_time",\n		"timesheet_description",\n		"timesheet_type",\n		"timesheet_status",\n		"added_on",\n		"added_by"\n	],\n	"columns": {\n		"timesheet_id": {\n			"name": "ID",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"project_id": {\n			"name": "Project",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_projects",\n				"externalColumn": "project_id",\n				"externalShowColumn": "project_title"\n			}\n		},\n		"estimation_file_id": {\n			"name": "uploaded timesheet",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_files",\n				"externalColumn": "file_id",\n				"externalShowColumn": "file_id"\n			},\n			"editoptions": {\n				"type": "file",\n				"label": "Upload timesheet",\n				"class": "file"\n			}\n		},\n		"timesheet_estimated_time": {\n			"name": "Estimated Hours",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Estimated Hours",\n				"class": "textbox",\n				"hint": "Estimated Hours",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"timesheet_description": {\n			"name": "Description",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Timesheet Description",\n				"class": "textbox",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"added_on": {\n			"name": "Added on [m/d/Y]",\n			"sortable": "true",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y"\n		},\n		"added_by": {\n			"name": "Added by",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_employee",\n				"externalColumn": "emp_main_id",\n				"externalShowColumn": "first_name"\n			},\n			"editoptions": {}\n		},\n		"timesheet_type": {\n			"name": "Type",\n			"searchable": "true",\n			"editoptions": {\n				"type": "select",\n				"source": {\n					"main estimate": "Main estimate",\n					"additional estimate": "Additional estimate",\n					"estimation error": "Estimation error",\n					"client feedback": "Client feedback",\n					"plan variation": "Plan variation",\n					"others": "Others"\n				},\n				"default": "",\n				"source_type": "array",\n				"label": "Timesheet Type",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"timesheet_status": {\n			"name": "Status",\n			"sortable": "true",\n			"popupoptions": {\n				"type": "popup",\n				"customaction": "Cmshelper::getTimesheetstatusPopupUrl"\n			}\n		}\n	},\n\n	"customActions": {\n		"beforeAddRecord": "Cmshelper::validateEngine",\n		"afterAddRecord": "Cmshelper::increaseTimesheetCount",\n		"beforeEditRecord": "Cmshelper::updateTimesheetCount",\n		"beforeDeleteRecord": "Cmshelper::decreaseTimesheetCount"\n	},\n	"opertations": [\n		"add",\n		"view",\n		"delete"\n	],\n	"operationLabel": {\n		"addLabel": "Add Timesheet",\n		"viewTitle": "View Timesheet Details",\n		"deleteTitle": "Delete Timesheet"\n	}\n}', '1', 7, 'all', 'admin', 'main', NULL),
(10, 9, 'Page Contents', 'pageContent', 'cms_content', '{\n    "keyColumn": "content_id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Content: ",\n    "reference": {\n        "referenceTable": " cms_category",\n        "referenceColumn": "category_id",\n        "referenceTableForiegnKey": "category_id"\n    },\n   "handleFile": "true",\n    "detailHeaderColumns": [\n        "title"\n    ],\n    "breadCrumbColumn": "title",\n    "orderBy": {\n        "content_id": "DESC"\n    },\n    "listColumns": [\n        "content_id",\n        "title",       \n        "content_alias",\n        "summary",        \n        "content_type",\n        "icon",\n        "enabled"       \n    ],\n    "showColumns": [\n        "content_id",\n        "section_id",\n        "category_id",\n        "title",\n        "content_alias",\n        "summary",\n        "description",\n        "content_type",\n        "icon",\n        "enabled",\n        "created_by",\n        "created_on",\n        "last_updated_by"\n    ],\n    "detailColumns": [        \n        "content_id",\n        "section_id",\n        "category_id",\n        "title",\n        "content_alias",\n        "summary",\n        "description",\n        "content_type",\n        "icon",\n        "enabled",\n        "created_by",\n        "created_on",\n        "last_updated_by"\n    ],     \n \n    "columns": {\n         "content_id": {\n                "name": "ID",\n                "editoptions": {\n                    "type": "hidden"\n                }\n            },\n            "category_id": {\n                "name": "Category",\n                "external": "true",   \n                "searchable": "true",\n                "sortable": "true",          \n                "editoptions": {\n                        "type": "hidden"\n                    },\n                "externalOptions": {\n                    "externalTable": "cms_category",\n                    "externalColumn": "category_id",\n                    "externalShowColumn": "title"\n                    }\n            },\n            "section_id": {\n                "name": "Section",\n                "searchable": "true",\n                "sortable": "true",\n                "external": "true",\n                "externalOptions": {\n                    "externalTable": "cms_page_sections",\n                    "externalColumn": "section_id",\n                    "externalShowColumn": "title"\n                    },\n                "editoptions": {\n                    "type": "hidden"\n                }\n            },    \n            "created_by": {\n                "name": "Created"                \n            },    \n            "created_on": {\n                "name": "Created Time"\n            },    \n            "last_updated_by": {\n                "name": "Last Updated By"\n            },    \n            "content_type": {\n                "name": "Content Type",\n                "searchable": "true",\n                "sortable": "true",\n                "editoptions": {\n                    "type": "select",\n                    "default":"Text",\n                    "source": {\n                        "Image": "Image",\n                        "Text": "Text",\n                        "Both": "Both"\n                    },\n                    "source_type": "array",\n                    "label": "Content Type",\n                    "class": "select",\n                    "enumvalues": {\n                        "Image": "Image",\n                        "Text": "Text",\n                        "Both": "Both"\n                    },\n                   "validations": [\n                        "required"\n                    ]\n                }\n            },\n            "title": {\n            "name": "Title",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Title",\n                "class": "textbox",\n                "hint": "Title of the page content",\n                "validations": [\n                    "required"\n                ]\n                }\n            },\n            "content_alias": {\n                "name": "Alias",\n                "searchable": "true",\n                "sortable": "true",\n                "editoptions": {\n                    "type": "textbox",\n                    "label": "Alias",\n                    "class": "textbox",\n                    "validations": [\n                        "required"\n                    ]\n                }\n            },\n            "summary": {\n                "name": "Summary",\n                "searchable": "true",\n                "sortable": "true",\n                "editoptions": {\n                    "type": "textarea",\n                    "label": "Summary",\n                    "class": "textarea",\n                    "hint": "Short Summary for the content"\n                }\n            },\n            "description": {\n                "name": "Description",\n                "searchable": "true",\n                "sortable": "true",\n                "editoptions": {\n                    "type": "htmlEditor",\n                    "label": "Description",\n                    "class": "textarea",\n                    "hint": "Description for the content"\n                }\n            },\n            "icon": {\n             "name": "Icon",\n            "editoptions": {\n                "type": "file",\n                "label": "Icon",\n                "class": "file",\n                "hint": "Upload file for this section"\n            },\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_files",\n                "externalColumn": "file_id",\n                "externalShowColumn": "file_id"\n            }\n            },           \n            "enabled": {\n                "name": "Status",\n                "searchable": "true",\n                "sortable": "true",\n                "listoptions": {\n                    "type": "button",\n                    "customaction": "Cmshelper::changeContentStatus",\n                    "enumvalues": {\n                        "Y": "Enabled",\n                        "N": "Disabled"\n                    },\n                    "buttonColors": {\n                        "Y": "green",\n                        "N": "red"\n                    }\n                },\n                "editoptions": {\n                    "type": "select",\n                    "source": {\n                        "Y": "Enabled",\n                        "N": "Disabled"\n                    },\n                   "default":"Y",\n                    "source_type": "array",\n                    "label": "status",\n                    "class": "select",\n                    "enumvalues": {\n                        "Y": "Enabled",\n                        "N": "Disabled"\n                    },\n                     "validations": [\n                    "required"\n                ]\n                }\n            }\n    },\n "customActions": {\n        "afterAddRecord":"Cmshelper::updateContentSection",\n        "afterEditRecord":"Cmshelper::updateContentSection",\n        "beforeAddRecord": "Cmshelper::createdInfo",\n        "beforeEditRecord": "Cmshelper::updateInfo"\n    },\n        "opertations": [\n            "add",\n            "view",\n            "edit",\n            "delete"\n        ]\n    }\n \n        ', '1', 5, 'all', 'admin', 'main', NULL),
(11, 9, 'Menu Items', 'menu_items', 'cms_menu_items', '      {\r\n    "keyColumn": "menu_item_id",\r\n    "wildsearch": "true",\r\n    "handleFile": "true",\r\n    "reference": {\r\n        "referenceTable": "cms_menus",\r\n        "referenceColumn": "menus_id",\r\n        "referenceTableForiegnKey": "menus_id"\r\n    },\r\n    "detailHeaderColumnPrefix": "Menu Item: ",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "orderBy": {\r\n        "menu_item_id": "DESC"\r\n    },   \r\n    "listColumns": [     \r\n "menu_item_id", \r\n        "title",      \r\n        "menu_parent_id",\r\n        "menu_item_alias",  \r\n        "reference_type",\r\n        "reference_id",\r\n        "target_type",      \r\n        "target_url",\r\n        "icon",\r\n        "display_order",\r\n        "enabled"\r\n    ],\r\n    "showColumns": [\r\n        "menu_item_id",\r\n        "title",  \r\n        "menu_parent_id",\r\n        "menus_id",   \r\n        "menu_item_alias",  \r\n        "reference_type",\r\n        "reference_id",\r\n        "target_type",      \r\n        "target_url",\r\n        "icon",\r\n        "display_order",\r\n        "enabled"\r\n    ],\r\n    "detailColumns": [\r\n        "menu_item_id",\r\n        "menus_id",   \r\n        "menu_parent_id",\r\n        "title",   \r\n        "menu_item_alias",  \r\n        "reference_type",\r\n        "reference_id",      \r\n        "target_type",      \r\n        "target_url",\r\n        "icon",\r\n        "display_order",\r\n        "enabled"\r\n    ],\r\n    "columns": {\r\n        "menu_item_id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                    "type": "hidden"\r\n                }         \r\n        },\r\n "menus_id": {\r\n            "name": "Menu",    \r\n             "sortable": "true",\r\n            "searchable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                  "externalTable": "cms_menus",\r\n                  "externalColumn": "menus_id",\r\n                  "externalShowColumn": "title"\r\n                  },\r\n                  "editoptions": {\r\n                        "type": "hidden"\r\n                    }\r\n        },\r\n   "menu_parent_id": {\r\n            "name": "Parent",    \r\n             "sortable": "true",\r\n            "searchable": "true",\r\n            "editoptions": {\r\n                  "type": "select",\r\n                  "source": "Cmshelper::getAllMenuItems",\r\n                  "source_type": "function",\r\n                  "label": "Parent",\r\n                  "class": "select"\r\n              },\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "cms_menu_items",\r\n                "externalColumn": "menu_item_id",\r\n                "externalShowColumn": "title"\r\n            }\r\n   },\r\n    "reference_type": {\r\n        "name": "Association Type",\r\n        "searchable": "true",\r\n        "sortable": "true", \r\n        "editoptions": {\r\n            "type": "select",\r\n            "source": {\r\n                "Section": "Section",\r\n                "Category": "Category",\r\n                "Content": "Content"\r\n            },\r\n            "source_type": "array",\r\n            "label": "Association Type",\r\n            "class": "select",\r\n            "enumvalues": {\r\n                "Section": "Section",\r\n                "Category": "Category",\r\n                "Content": "Content"\r\n            },\r\n           "validations": [\r\n                "required"\r\n            ]\r\n        }\r\n    },\r\n    "reference_id": {\r\n        "name": "Associated Item Id",\r\n        "searchable": "true",\r\n        "sortable": "true",\r\n        "editoptions": {\r\n            "type": "textbox",\r\n            "label": "Associated Item Id",\r\n            "class": "textbox",\r\n            "validations": [\r\n                "required"\r\n            ]\r\n        }\r\n    },\r\n    "title": {\r\n        "name": "Title",\r\n        "searchable": "true",\r\n        "sortable": "true",\r\n        "editoptions": {\r\n            "type": "textbox",\r\n            "label": "Title",\r\n            "class": "textbox",\r\n            "hint": "Title of the menu item",\r\n            "validations": [\r\n                "required"\r\n            ]\r\n            }\r\n        },\r\n        "menu_item_alias": {\r\n            "name": "Alias",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Alias",\r\n                "class": "textbox",\r\n                "hint": "Alias of the menu item",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n                }\r\n            },\r\n    "target_type": {\r\n        "name": "Target Type",\r\n        "searchable": "true",\r\n        "sortable": "true",\r\n        "editoptions": {\r\n            "type": "select",\r\n            "source": {\r\n                "_self": "_self",\r\n                "_blank": "_blank",\r\n                "_top": "_top"\r\n                \r\n            },\r\n            "source_type": "array",\r\n            "label": "Target Type",\r\n            "class": "select",\r\n            "enumvalues": {\r\n                 "new": "new",\r\n                "_blank": "_blank"\r\n            }\r\n        }\r\n    },\r\n    "target_url": {\r\n        "name": "Target Url",\r\n        "searchable": "true",\r\n        "sortable": "true",\r\n        "editoptions": {\r\n            "type": "textbox",\r\n            "label": "Target Url",\r\n            "class": "textbox",\r\n            "hint": "Target Url of the item",\r\n            "validations": [\r\n                "required"\r\n            ]\r\n            }\r\n    },\r\n     "icon": {\r\n        "name": "Icon",\r\n        "editoptions": {\r\n            "type": "file",\r\n            "label": "Icon",\r\n            "class": "file",\r\n            "hint": "Upload file for this menu item"\r\n        },\r\n        "external": "true",\r\n        "externalOptions": {\r\n            "externalTable": "tbl_files",\r\n            "externalColumn": "file_id",\r\n            "externalShowColumn": "file_id"\r\n        }\r\n    },\r\n   "display_order": {\r\n        "name": "Display Order",\r\n        "searchable": "true",\r\n        "sortable": "true",\r\n        "editoptions": {\r\n            "type": "textbox",\r\n            "label": "Display Order",\r\n            "class": "textbox",\r\n            "hint": "Display Order of the item",\r\n            "validations": [\r\n                "required"\r\n            ]\r\n        }\r\n    },\r\n     "enabled": {\r\n            "name": "Status",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeMenuItemStatus",\r\n                "enumvalues": {\r\n                    "Y": "Enabled",\r\n                    "N": "Disabled"\r\n                },\r\n                "buttonColors": {\r\n                    "Y": "green",\r\n                    "N": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Y": "Enabled",\r\n                    "N": "Disabled"\r\n                },\r\n                "default":"Y",\r\n                "source_type": "array",\r\n                "label": "status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "Y": "Enabled",\r\n                    "N": "Disabled"\r\n                },\r\n               "validations": [\r\n                "required"\r\n            ]\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ]\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(72, 8, 'report', 'report', 'tbl_lookup_cms', '{\r\n    "reportPanel": "true",\r\n    "reportTitle": "Report ",\r\n     "defaultDateRange": "weekly",\r\n    "dateRange": [\r\n        "weekly",\r\n        "monthly",\r\n        "custom",\r\n        "all"\r\n    ],\r\n    "dateField": "last_updated_on",\r\n    "dataSource": {\r\n        "queryFunction": "Cmshelper::getReportQuery",\r\n        "orderBy": {\r\n            "client_id": "ASC"\r\n        },\r\n        "groupBy": [\r\n            "client_id"\r\n        ]\r\n    },\r\n    "export": "true",\r\n    "keyColumn": "id",\r\n    "listColumns": [\r\n        "vorganization",\r\n        "ticket_count",\r\n        "chat_count",\r\n        "other_count",\r\n        "reply_count",\r\n        "resolution_time",\r\n        "initial_responsetime",\r\n        "resolved_in_first_response"\r\n    ],\r\n "exportColumns": [\r\n        "vorganization",\r\n        "ticket_count",\r\n        "chat_count",\r\n        "other_count",\r\n        "reply_count",\r\n        "resolution_time",\r\n        "initial_responsetime",\r\n        "resolved_in_first_response"\r\n    ],\r\n    "detailColumns": [\r\n        "vorganization",\r\n        "ticket_count",\r\n        "chat_count",\r\n        "other_count",\r\n        "reply_count",\r\n        "resolution_time",\r\n        "initial_responsetime",\r\n        "resolved_in_first_response"\r\n    ],\r\n    "columns": {\r\n        "vorganization": {\r\n            "name": "Client",\r\n            "type": "text",\r\n            "sortable": "true",\r\n            "searchable": "searchable"\r\n        },\r\n        "ticket_count": {\r\n            "name": "Total Tickets",\r\n            "type": "text"\r\n        },\r\n        "chat_count": {\r\n            "name": "Total Chat ",\r\n            "type": "text"\r\n        },\r\n        "other_count": {\r\n            "name": "Total Others ",\r\n            "type": "text"\r\n        },\r\n        "reply_count": {\r\n            "name": "Average Replies Per Ticket ",\r\n            "type": "text"\r\n        },\r\n        "resolution_time": {\r\n            "name": "Average Ticket Resolution Time",\r\n            "type": "text",\r\n            "postfix": " minutes"\r\n        },\r\n        "initial_responsetime": {\r\n            "name": "Average Initial Response Time",\r\n            "type": "text",\r\n            "postfix": " minutes"\r\n        },\r\n        "resolved_in_first_response": {\r\n            "name": "Tickets Resolved In First Response",\r\n            "type": "text"\r\n        },\r\n        "last_updated_on": {\r\n            "name": "Updated On",\r\n            "type": "datetime",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y H:i a",\r\n            "sortable": "true"\r\n        }\r\n    }\r\n}', '1', 100, 'all', 'admin', 'main', NULL),
(74, 11, 'Change Password', 'change_password', 'cms_users', '{\n    "customCmsAction": "true",\n    "controller": "cms",\n    "method": "change_pwd",\n    "module": "cms"\n}', '1', 1, 'all', 'user', 'main', NULL),
(75, 13, 'News', 'news', 'tbl_news', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "News: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "title",\r\n        "description",\r\n        "date",\r\n        "active"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "title",\r\n        "description",\r\n        "date",\r\n        "active"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "title",\r\n        "description",\r\n        "date",\r\n        "active"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "title": {\r\n            "name": "Title",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Title",\r\n                "class": "textbox",\r\n                "hint": "News Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "description": {\r\n            "name": "Description",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Description",\r\n                "class": "textarea",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "date": {\r\n            "name": "Date",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "M d, Y h:i:s A"\r\n        },\r\n        "active": {\r\n            "name": "Status",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeNewsStatus",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "buttonColors": {\r\n                    "Y": "green",\r\n                    "N": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "default": "Y",\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "customActions": {\r\n        "beforeAddRecord": "Cmshelper::changeNewsDateFormat"\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add News",\r\n        "editTitle": "Edit News",\r\n        "viewTitle": "View News Details",\r\n        "deleteTitle": "Delete News"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(87, 0, 'News', 'viewnews', 'tbl_news', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "News: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "title",\r\n        "description",\r\n        "date"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "title",\r\n        "description",\r\n        "date"\r\n    ],\r\n    "detailColumns": [\r\n        "title",\r\n        "description",\r\n        "date"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID"\r\n        },\r\n        "title": {\r\n            "name": "Title",\r\n            "searchable": "true",\r\n            "sortable": "true"\r\n        },\r\n        "description": {\r\n            "name": "Description"\r\n        },\r\n        "date": {\r\n            "name": "Date",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "M d, Y"\r\n        }\r\n    },\r\n    "opertations": [\r\n        "view"\r\n    ],\r\n    "operationLabel": {\r\n        "viewTitle": "View News Details"\r\n    }\r\n}', '0', 3, 'all', 'admin', 'main', NULL),
(76, 13, 'Events', 'events', 'tbl_events', '{\r\n    \\"keyColumn\\": \\"id\\",\r\n    \\"wildsearch\\": \\"true\\",\r\n    \\"detailHeaderColumnPrefix\\": \\"Events: \\",\r\n    \\"handleFile\\": \\"true\\",\r\n    \\"detailHeaderColumns\\": [\r\n        \\"title\\"\r\n    ],\r\n    \\"breadCrumbColumn\\": \\"title\\",\r\n    \\"orderBy\\": {\r\n        \\"id\\": \\"DESC\\"\r\n    },\r\n    \\"listColumns\\": [\r\n        \\"title\\",\r\n        \\"description\\",\r\n        \\"event_start_date\\",\r\n        \\"event_end_date\\",\r\n        \\"created_date\\",\r\n        \\"active\\"\r\n    ],\r\n    \\"showColumns\\": [\r\n        \\"id\\",\r\n        \\"title\\",\r\n        \\"description\\",\r\n        \\"event_start_date\\",\r\n        \\"event_end_date\\",\r\n        \\"created_date\\",\r\n        \\"active\\"\r\n    ],\r\n    \\"detailColumns\\": [\r\n        \\"id\\",\r\n        \\"title\\",\r\n        \\"description\\",\r\n        \\"event_start_date\\",\r\n        \\"event_end_date\\",\r\n        \\"created_date\\",\r\n        \\"active\\"\r\n    ],\r\n    \\"columns\\": {\r\n        \\"id\\": {\r\n            \\"name\\": \\"ID\\",\r\n            \\"editoptions\\": {\r\n                \\"type\\": \\"hidden\\"\r\n            }\r\n        },\r\n        \\"title\\": {\r\n            \\"name\\": \\"Title\\",\r\n            \\"searchable\\": \\"true\\",\r\n            \\"sortable\\": \\"true\\",\r\n            \\"editoptions\\": {\r\n                \\"type\\": \\"textbox\\",\r\n                \\"label\\": \\"Title\\",\r\n                \\"class\\": \\"textbox\\",\r\n                \\"hint\\": \\"News Title\\",\r\n                \\"validations\\": [\r\n                    \\"required\\"\r\n                ]\r\n            }\r\n        },\r\n        \\"description\\": {\r\n            \\"name\\": \\"Description\\",\r\n            \\"editoptions\\": {\r\n                \\"type\\": \\"textarea\\",\r\n                \\"label\\": \\"Description\\",\r\n                \\"class\\": \\"textarea\\",\r\n                \\"validations\\": [\r\n                    \\"required\\"\r\n                ]\r\n            }\r\n        },\r\n        \\"event_start_date\\": {\r\n            \\"name\\": \\"Start Date\\",\r\n            \\"dbFormat\\": \\"datetime\\",\r\n            \\"displayFormat\\": \\"M d, Y h:i A\\",\r\n            \\"editoptions\\": {\r\n                \\"dbFormat\\": \\"datetime\\",\r\n                \\"displayFormat\\": \\"M d, Y h:i A\\",\r\n                \\"type\\": \\"datepicker\\",\r\n                \\"label\\": \\"Start Date\\",\r\n                \\"class\\": \\"\\",\r\n                \\"validations\\": [\r\n                    \\"required\\"\r\n                ]\r\n            }\r\n        },\r\n        \\"event_end_date\\": {\r\n            \\"name\\": \\"End Date\\",\r\n            \\"dbFormat\\": \\"datetime\\",\r\n            \\"displayFormat\\": \\"M d, Y h:i A\\",\r\n            \\"editoptions\\": {\r\n                \\"dbFormat\\": \\"datetime\\",\r\n                \\"displayFormat\\": \\"M d, Y h:i A\\",\r\n                \\"type\\": \\"datepicker\\",\r\n                \\"label\\": \\"EndDate\\",\r\n                \\"class\\": \\"\\",\r\n                \\"validations\\": [\r\n                    \\"required\\"\r\n                ]\r\n            }\r\n        },\r\n        \\"created_date\\": {\r\n            \\"name\\": \\"Created Date\\",\r\n            \\"dbFormat\\": \\"datetime\\",\r\n            \\"displayFormat\\": \\"M d, Y h:i A\\"\r\n        },\r\n        \\"active\\": {\r\n            \\"name\\": \\"Status\\",\r\n            \\"searchable\\": \\"true\\",\r\n            \\"sortable\\": \\"true\\",\r\n            \\"listoptions\\": {\r\n                \\"type\\": \\"button\\",\r\n                \\"customaction\\": \\"Cmshelper::changeEventsStatus\\",\r\n                \\"enumvalues\\": {\r\n                    \\"Y\\": \\"Active\\",\r\n                    \\"N\\": \\"Inactive\\"\r\n                },\r\n                \\"buttonColors\\": {\r\n                    \\"Y\\": \\"green\\",\r\n                    \\"N\\": \\"red\\"\r\n                }\r\n            },\r\n            \\"editoptions\\": {\r\n                \\"type\\": \\"select\\",\r\n                \\"source\\": {\r\n                    \\"Y\\": \\"Active\\",\r\n                    \\"N\\": \\"Inactive\\"\r\n                },\r\n                \\"default\\": \\"Y\\",\r\n                \\"source_type\\": \\"array\\",\r\n                \\"label\\": \\"Status\\",\r\n                \\"class\\": \\"select\\",\r\n                \\"enumvalues\\": {\r\n                    \\"Y\\": \\"Active\\",\r\n                    \\"N\\": \\"Inactive\\"\r\n                },\r\n                \\"validations\\": [\r\n                    \\"required\\"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    \\"customActions\\": {\r\n        \\"beforeAddRecord\\": \\"Cmshelper::changeEventsDateFormat\\"\r\n    },\r\n    \\"opertations\\": [\r\n        \\"add\\",\r\n        \\"view\\",\r\n        \\"edit\\",\r\n        \\"delete\\"\r\n    ],\r\n    \\"operationLabel\\": {\r\n        \\"addLabel\\": \\"Add Events\\",\r\n        \\"editTitle\\": \\"Edit Events\\",\r\n        \\"viewTitle\\": \\"View Event Details\\",\r\n        \\"deleteTitle\\": \\"Delete Events\\"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(88, 0, 'Events', 'viewevents', 'tbl_events', '{\r\n    \\"keyColumn\\": \\"id\\",\r\n    \\"wildsearch\\": \\"true\\",\r\n    \\"detailHeaderColumnPrefix\\": \\"Events: \\",\r\n    \\"handleFile\\": \\"true\\",\r\n    \\"detailHeaderColumns\\": [\r\n        \\"title\\"\r\n    ],\r\n    \\"breadCrumbColumn\\": \\"title\\",\r\n    \\"orderBy\\": {\r\n        \\"id\\": \\"DESC\\"\r\n    },\r\n    \\"listColumns\\": [\r\n        \\"title\\",\r\n        \\"description\\",\r\n        \\"event_start_date\\",\r\n        \\"event_end_date\\"\r\n    ],\r\n    \\"showColumns\\": [\r\n        \\"id\\",\r\n        \\"title\\",\r\n        \\"description\\",\r\n        \\"event_start_date\\",\r\n        \\"event_end_date\\",\r\n        \\"created_date\\"\r\n    ],\r\n    \\"detailColumns\\": [\r\n        \\"title\\",\r\n        \\"description\\",\r\n        \\"event_start_date\\",\r\n        \\"event_end_date\\",\r\n        \\"created_date\\"\r\n    ],\r\n    \\"columns\\": {\r\n        \\"id\\": {\r\n            \\"name\\": \\"ID\\"\r\n        },\r\n        \\"title\\": {\r\n            \\"name\\": \\"Title\\",\r\n            \\"searchable\\": \\"true\\",\r\n            \\"sortable\\": \\"true\\"\r\n        },\r\n        \\"description\\": {\r\n            \\"name\\": \\"Description\\"\r\n        },\r\n        \\"event_start_date\\": {\r\n            \\"name\\": \\"Start Date\\",\r\n            \\"dbFormat\\": \\"datetime\\",\r\n            \\"displayFormat\\": \\"M d Y h:i A\\"\r\n        },\r\n        \\"event_end_date\\": {\r\n            \\"name\\": \\"End Date\\",\r\n            \\"dbFormat\\": \\"datetime\\",\r\n            \\"displayFormat\\": \\"M d Y h:i A\\"\r\n        },\r\n        \\"created_date\\": {\r\n            \\"name\\": \\"Created Date\\",\r\n            \\"dbFormat\\": \\"datetime\\",\r\n            \\"displayFormat\\": \\"M d Y h:i A\\"\r\n        }\r\n    },\r\n    \\"opertations\\": [\r\n        \\"view\\"\r\n    ],\r\n    \\"operationLabel\\": {\r\n        \\"viewTitle\\": \\"View Event Details\\"\r\n    }\r\n}', '0', 4, 'all', 'admin', 'main', NULL),
(89, 0, 'Holidays', 'viewholidays', 'tbl_holidays', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchHolidaysList", "dataSourceCountFunction": "Cmshelper::fetchHolidaysListCount", "detailHeaderColumnPrefix": "Holidays: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "where": "active=''Y''", "listColumns": [ "title", "date" ], "showColumns": [ "id", "title", "description", "date" ], "detailColumns": [ "title", "description", "date" ], "columns": { "id": { "name": "ID" }, "title": { "name": "Title" }, "description": { "name": "Description" }, "date": { "name": "Date", "dbFormat": "date", "displayFormat": "M d, Y" } }, "opertations": [ "view" ], "operationLabel": { "viewTitle": "View Holiday Details" } }', '1', 5, 'all', 'admin', 'main', NULL);
INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(77, 13, 'Leave Types', 'leaves', 'tbl_leaves', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Leaves: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "includeJsFiles": [\r\n        "leave_type.js"\r\n    ],\r\n    "listColumns": [\r\n        "title",\r\n        "count",\r\n        "type",\r\n        "date_range",\r\n        "groups",\r\n        "short_code",\r\n        "active"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "title",\r\n        "count",\r\n        "type",\r\n        "date_range",\r\n        "groups",\r\n        "short_code",\r\n        "active"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "title",\r\n        "count",\r\n        "type",\r\n        "date_range",\r\n        "groups",\r\n        "short_code",\r\n        "active"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "title": {\r\n            "name": "Title",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Title",\r\n                "class": "textbox",\r\n                "hint": "News Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "type": {\r\n            "name": "Type",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "U": "User",\r\n                    "H": "HR"\r\n                },\r\n                "default": "Select",\r\n                "source_type": "array",\r\n                "label": "Type",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "U": "User",\r\n                    "H": "HR"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "count": {\r\n            "name": "Days",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Days",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "date_range": {\r\n            "name": "DateRange",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "checkbox",\r\n                "label": "Allowdaterange",\r\n                "class": "inline",\r\n                "default": "0",\r\n                "enumvalues": {\r\n                    "0": "No",\r\n                    "1": "Yes"\r\n                }\r\n            }\r\n        },\r\n        "groups": {\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "name": "Groups",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getDepartmentCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "AllowableGroups",\r\n                "class": "select"\r\n            }\r\n        },\r\n        "short_code": {\r\n            "name": "Short Code",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Short Code",\r\n                "class": "textbox",\r\n                "hint": "Short Code",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "active": {\r\n            "name": "Status",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeLeavesStatus",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "buttonColors": {\r\n                    "Y": "green",\r\n                    "N": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "default": "Y",\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "customActions": {\r\n        "beforeAddRecord": "Cmshelper::beforeAddLeaveType",\r\n        "beforeEditRecord": "Cmshelper::beforeEditLeaveType"\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "AddLeaves",\r\n        "editTitle": "EditLeaves",\r\n        "viewTitle": "ViewLeaveDetails",\r\n        "deleteTitle": "DeleteLeaves"\r\n    }\r\n}', '1', 0, 'all', 'admin', 'main', NULL),
(78, 13, 'Departments', 'departments', 'tbl_departments', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Departments: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "dep_name",\r\n        "dep_code",\r\n        "active"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "dep_name",\r\n        "dep_code",\r\n        "active"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "dep_name",\r\n        "dep_code",\r\n        "active"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "dep_name": {\r\n            "name": "Department",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Department",\r\n                "class": "textbox",\r\n                "hint": "Department Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "dep_code": {\r\n            "name": "Dep Code",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Dep Code",\r\n                "class": "textbox",\r\n                "hint": "Department Code",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "active": {\r\n            "name": "Status",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeDepartmentStatus",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "buttonColors": {\r\n                    "Y": "green",\r\n                    "N": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "default": "Y",\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Department",\r\n        "editTitle": "Edit Department",\r\n        "viewTitle": "View Department Details",\r\n        "deleteTitle": "Delete Department"\r\n    }\r\n}', '1', 0, 'all', 'admin', 'main', NULL),
(79, 13, 'Designations', 'designations', 'tbl_designations', '{\n    "keyColumn": "id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Designations: ",\n    "handleFile": "true",\n    "detailHeaderColumns": [\n        "title"\n    ],\n    "breadCrumbColumn": "title",\n    "orderBy": {\n        "id": "DESC"\n    },\n    "listColumns": [\n        "desig_name",\n        "dep_id",\n        "active"\n    ],\n    "showColumns": [\n        "id",\n        "desig_name",\n        "dep_id",\n        "active"\n    ],\n    "detailColumns": [\n        "id",\n        "desig_name",\n        "dep_id",\n        "active"\n    ],\n    "columns": {\n        "id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "desig_name": {\n            "name": "Designation",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Designation",\n                "class": "textbox",\n                "hint": "Designation Title",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "dep_id": {\n            "name": "DEPARTMENT",\n            "searchable": "true",\n            "sortable": "true",\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_departments",\n                "externalColumn": "id",\n                "externalShowColumn": "dep_name"\n            },\n            "editoptions": {\n                "type": "select",\n                "source": "Cmshelper::getDepartmentCombo",\n                "source_type": "function",\n                "label": "Department",\n                "class": "select",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "active": {\n            "name": "Status",\n            "searchable": "true",\n            "sortable": "true",\n            "listoptions": {\n                "type": "button",\n                "customaction": "Cmshelper::changeDesignationStatus",\n                "enumvalues": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "buttonColors": {\n                    "Y": "green",\n                    "N": "red"\n                }\n            },\n            "editoptions": {\n                "type": "select",\n                "source": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "default": "Y",\n                "source_type": "array",\n                "label": "Status",\n                "class": "select",\n                "enumvalues": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "validations": [\n                    "required"\n                ]\n            }\n        }\n    },\n    "opertations": [\n        "add",\n        "view",\n        "edit",\n        "delete"\n    ],\n    "operationLabel": {\n        "addLabel": "Add Designation",\n        "editTitle": "Edit Designation",\n        "viewTitle": "View Designation Details",\n        "deleteTitle": "Delete Designation"\n    }\n}', '1', 0, 'all', 'admin', 'main', NULL),
(80, 13, 'Manage Holidays', 'holidays', 'tbl_holidays', '{\n    "keyColumn": "id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Holidays: ",\n    "handleFile": "true",\n    "detailHeaderColumns": [\n        "title"\n    ],\n    "breadCrumbColumn": "title",\n    "orderBy": {\n        "id": "DESC"\n    },\n    "listColumns": [\n        "title",\n        "date",\n	    "group_ids",\n         "rh",\n        "active"\n    ],\n    "showColumns": [\n        "id",\n        "title",\n        "description",\n        "date",\n	    "group_ids",\n        "rh",\n        "active"\n    ],\n    "detailColumns": [\n        "id",\n        "title",\n        "description",\n        "date",\n	    "group_ids",\n       "rh",\n        "active"\n    ],\n    "columns": {\n        "id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "title": {\n            "name": "Title",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Title",\n                "class": "textbox",\n                "hint": "Holiday Title",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "description": {\n            "name": "Description",\n            "editoptions": {\n                "type": "textarea",\n                "label": "Description",\n                "class": "textarea",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "date": {\n            "name": "Date",\n            "dbFormat": "date",\n            "displayFormat": "M d, Y",\n            "editoptions": {\n                "dbFormat": "date",\n                "displayFormat": "M d, Y",\n                "type": "datepicker",\n                "label": "Date",\n                "class": "",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n		  "group_ids": {\n            "name": "Allowable Groups",         \n            "customColumn": "true",\n            "customaction": "Cmshelper::getGroupsString",\n            "editoptions": {\n                "type": "tags",\n                "tagDetails": {\n                    "autocompleteSource": "Cmshelper::ajaxAutoSuggest",\n                    "autocompleteMinChars": "1",\n                    "placeholder": "",\n                    "prePopulateSource": "Cmshelper::fetchAutosuggestGroups"\n                },\n                "hint": "Allowable Groups",\n                "label": "Allowable Groups",\n                "class": "textbox"\n            }\n        },\n   "rh": {\n        "name": "Restricted Holiday",\n        "sortable": "true",\n        "editoptions": { \n        "type": "checkbox", \n        "label": "Restricted Holiday",\n        "class": "inline",\n        "default": "0",\n        "enumvalues": { "0": "No", "1": "Yes" }\n      }\n    },\n\n        "active": {\n            "name": "Status",\n            "searchable": "true",\n            "sortable": "true",\n            "listoptions": {\n                "type": "button",\n                "customaction": "Cmshelper::changeHolidaysStatus",\n                "enumvalues": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "buttonColors": {\n                    "Y": "green",\n                    "N": "red"\n                }\n            },\n            "editoptions": {\n                "type": "select",\n                "source": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "default": "Y",\n                "source_type": "array",\n                "label": "Status",\n                "class": "select",\n                "enumvalues": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "validations": [\n                    "required"\n                ]\n            }\n        }\n    },\n    "opertations": [\n        "add",\n        "view",\n        "edit",\n        "delete"\n    ],\n    "operationLabel": {\n        "addLabel": "Add Holiday",\n        "editTitle": "Edit Holiday",\n        "viewTitle": "View Holiday Details",\n        "deleteTitle": "Delete Holiday"\n    }\n}', '1', 0, 'all', 'admin', 'main', NULL),
(81, 13, 'Shift', 'shift', 'tbl_shifts', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Shifts: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "title",\r\n        "time_from",\r\n        "time_to",\r\n        "active"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "title",\r\n        "time_from",\r\n        "time_to",\r\n        "active"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "title",\r\n        "time_from",\r\n        "time_to",\r\n        "active"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "title": {\r\n            "name": "Title",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Title",\r\n                "class": "textbox",\r\n                "hint": "Holiday Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "time_from": {\r\n            "name": "From Time",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "h:i a",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getTimeCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "From Time",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "time_to": {\r\n            "name": "To Time",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "h:i a",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getTimeCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "To Time",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "active": {\r\n            "name": "Status",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeShiftStatus",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "buttonColors": {\r\n                    "Y": "green",\r\n                    "N": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "default": "Y",\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Shift",\r\n        "editTitle": "Edit Shift",\r\n        "viewTitle": "View Shift Details",\r\n        "deleteTitle": "Delete Shift"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(82, 10, 'Leaves', 'applyleave', 'tbl_emp_leaves', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchLeaveDetails", "dataSourceCountFunction": "Cmshelper::fetchLeaveDetailsCount", "detailHeaderColumnPrefix": "Leaves: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "includeJsFiles": [ "leave_hr.js" ], "listColumns": [ "leave_type", "half_day", "applied_date", "from_date_disp", "to_date_disp", "sup_status" ], "showColumns": [ "id", "emp_id", "leave_type", "half_day", "from_date", "to_date", "description", "comments", "sup_status", "applied_date" ], "detailColumns": [ "id", "leave_type", "half_day", "emp_id", "applied_date", "from_date", "from_date_disp", "to_date", "to_date_disp", "description", "comments", "sup_status", "remarks", "confirm" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "emp_id": { "name": "EMP_ID", "editoptions": { "type": "hidden" } }, "leave_type": { "searchable": "true", "sortable": "true", "name": "Leave Type", "editoptions": { "type": "select", "source": "Cmshelper::getLeaveTypes", "default": "", "source_type": "function", "label": "Leave Type", "class": "select", "validations": [ "required" ] } }, "half_day": { "name": "Half Day", "sortable": "true", "editoptions": { "type": "checkbox", "label": "Half Day", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" } } }, "from_date": { "name": "Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "label": "From Date", "class": "", "validations": [ "required" ] } }, "to_date": { "name": "To Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "label": "To Date", "class": "" } }, "from_date_disp": { "name": "From Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceFromdate" }, "to_date_disp": { "name": "To Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceTodate" }, "description": { "name": "Purpose of leave", "editoptions": { "type": "textarea", "label": "Purpose of leave", "class": "textarea", "validations": [ "required" ] } }, "comments": { "name": "Arrangements have been made", "editoptions": { "type": "textarea", "label": "Arrangements have been made", "class": "textarea", "validations": [ "required" ] } }, "sup_status": { "sortable": "true", "name": "Status" }, "remarks": { "name": "Remarks" }, "hr_status": { "sortable": "true", "name": "HR Status" }, "username": { "name": "Employee name" }, "applied_date": { "searchable": "true", "sortable": "true", "name": "Applied date", "dbFormat": "date", "displayFormat": "M d, Y" }, "confirm": { "name": "Confirm", "editoptions": { "type": "checkbox", "label": "Confirm?", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" }, "validations": [ "required" ] } } }, "customActions": { "beforeAddRecord": "Cmshelper::checkLeaveBalanceEmp" }, "opertations": [ "add", "view" ], "operationLabel": { "addLabel": "Apply Leave", "viewTitle": "View Leave Details" } }', '1', 3, 'all', 'admin', 'main', NULL),
(109, 14, 'Team Leaves', 'teamleaves', 'tbl_emp_leaves', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchLeaveRequestsTeam", "dataSourceCountFunction": "Cmshelper::fetchLeaveRequestsTeamCount", "detailHeaderColumnPrefix": "Leave Requests: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "reference": { "referenceTable": "tbl_employee", "referenceColumn": "emp_id", "referenceTableForiegnKey": "emp_main_id" }, "listColumns": [ "profile_pic", "username", "leave_type", "half_day", "applied_date", "from_date", "sup_status" ], "showColumns": [ "id", "emp_id", "leave_type", "half_day", "from_date", "to_date", "description", "comments", "sup_status", "applied_date" ], "detailColumns": [ "id", "username", "emp_id", "leave_type", "half_day", "applied_date", "from_date", "to_date", "description", "comments", "sup_status", "profile_pic" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "profile_pic": { "name": "", "customColumn": "true", "customaction": "Cmshelper::getProfilePicLeave" }, "emp_id": { "name": "Name", "searchable": "true", "sortable": "true", "editoptions": { "type": "hidden" } }, "leave_type": { "name": "Leave Type", "searchable": "true", "sortable": "true", "editoptions": { "type": "select", "source": "Cmshelper::getLeaveTypes", "default": "", "source_type": "function", "label": "Leave Type", "class": "select", "validations": [ "required" ] } }, "half_day": { "name": "Half Day", "sortable": "true", "editoptions": { "type": "checkbox", "label": "Half Day", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" } } }, "from_date": { "name": "Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "From Date", "class": "", "validations": [ "required" ] } }, "to_date": { "name": "To Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "To Date", "class": "", "validations": [ "required" ] } }, "description": { "name": "Description", "editoptions": { "type": "textarea", "label": "Description", "class": "textarea", "validations": [ "required" ] } }, "comments": { "name": "Comments", "editoptions": { "type": "textarea", "label": "Comments", "class": "textarea", "validations": [ "required" ] } }, "sup_status": { "name": "Status", "sortable": "true" }, "hr_status": { "name": "HR Status", "sortable": "true" }, "username": { "sortable": "true", "name": "Employee name" }, "applied_date": { "searchable": "true", "sortable": "true", "name": "Applied date", "dbFormat": "date", "displayFormat": "M d, Y" } }, "opertations": [ "view" ], "operationLabel": { "viewTitle": "ViewLeaveDetails" } }', '0', 0, 'all', 'admin', 'main', NULL),
(83, 10, 'Leave Requests', 'lhdrequests', 'tbl_emp_leaves', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchLeaveRequests", "dataSourceCountFunction": "Cmshelper::fetchLeaveRequestsCount", "detailHeaderColumnPrefix": "Leave Requests: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "includeJsFiles": [ "leave_hr.js" ], "reference": { "referenceTable": "tbl_employee", "referenceColumn": "emp_id", "referenceTableForiegnKey": "emp_main_id" }, "listColumns": [ "profile_pic", "username", "leave_type", "half_day", "applied_date", "from_date_disp", "to_date_disp", "sup_status" ], "showColumns": [ "id", "emp_id", "leave_type", "half_day", "from_date", "to_date", "description", "comments", "sup_status", "applied_date" ], "detailColumns": [ "id", "username", "emp_id", "leave_type", "half_day", "applied_date", "from_date", "from_date_disp", "to_date", "to_date_disp", "description", "comments", "sup_status", "remarks", "profile_pic" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "profile_pic": { "name": "", "customColumn": "true", "customaction": "Cmshelper::getProfilePicLeave" }, "emp_id": { "name": "Name", "searchable": "true", "sortable": "true", "editoptions": { "type": "hidden" } }, "leave_type": { "name": "Leave Type", "searchable": "true", "sortable": "true", "editoptions": { "type": "select", "source": "Cmshelper::getLeaveTypes", "default": "", "source_type": "function", "label": "Leave Type", "class": "select", "validations": [ "required" ] } }, "half_day": { "name": "Half Day", "sortable": "true", "editoptions": { "type": "checkbox", "label": "Half Day", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" } } }, "from_date": { "name": "Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "From Date", "class": "", "validations": [ "required" ] } }, "to_date": { "name": "To Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "To Date", "class": "", "validations": [ "required" ] } }, "from_date_disp": { "name": "From Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceFromdate" }, "to_date_disp": { "name": "To Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceTodate" }, "description": { "name": "Description", "editoptions": { "type": "textarea", "label": "Description", "class": "textarea", "validations": [ "required" ] } }, "comments": { "name": "Comments", "editoptions": { "type": "textarea", "label": "Comments", "class": "textarea", "validations": [ "required" ] } }, "sup_status": { "name": "Status", "searchable": "true","sortable": "true", "popupoptions": { "type": "popup", "customaction": "Cmshelper::getSupstatusPopupUrl" } }, "remarks": { "name": "Remarks" }, "hr_status": { "name": "HR Status", "sortable": "true" }, "username": { "sortable": "true", "name": "Employee name" }, "applied_date": { "searchable": "true", "sortable": "true", "name": "Applied date", "dbFormat": "date", "displayFormat": "M d, Y" } }, "customActions": { "beforeAddRecord": "Cmshelper: : setEmployeeId" }, "opertations": [ "view" ], "operationLabel": { "viewTitle": "ViewLeaveDetails" } }', '1', 4, 'all', 'admin', 'main', NULL),
(110, 10, 'Login Reports', 'empreportshead', 'tbl_employee', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchEmpReportsHead", "dataSourceCountFunction": "Cmshelper::fetchEmpReportsHeadCount", "detailHeaderColumnPrefix": "Reports: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "listColumns": [ "username", "date", "avg_chk_in", "avg_chk_out", "avg_time" ], "showColumns": [ "id", "username", "date", "avg_chk_in", "avg_chk_out", "avg_time" ], "detailColumns": [ "id", "username", "date", "avg_chk_in", "avg_chk_out", "avg_time" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "username": { "name": "Employee", "searchable": "true", "sortable": "true" }, "date": { "name": "Date", "searchable": "true" }, "avg_chk_in": { "name": "Avg Chk In" }, "avg_chk_out": { "name": "Avg Chk Out" }, "avg_time": { "name": "Avg Time" } } }', '0', 0, 'all', 'admin', 'main', NULL),
(93, 14, 'Attendance', 'attendance', 'tbl_attendance', '{ "keyColumn": "id", "wildsearch": "true", "detailHeaderColumnPrefix": "Attendace: ", "handleFile": "true", "detailHeaderColumns": [ "username" ], "breadCrumbColumn": "username", "orderBy": { "id": "DESC" }, "reference": { "referenceTable": "tbl_employee", "referenceColumn": "emp_id", "referenceTableForiegnKey": "emp_main_id" }, "listColumns": [ "date", "emp_id", "shift_type", "check_in", "check_out", "hours_worked" ], "showColumns": [ "id", "date", "emp_id", "shift_type", "check_in", "check_out" ], "detailColumns": [ "date", "emp_id", "shift_type", "check_in", "check_out", "hours_worked" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "date": { "name": "Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "label": "Date", "class": "", "validations": [ "required" ] } }, "emp_id": { "name": "Username", "searchable": "true", "sortable": "true", "external": "true", "externalOptions": { "externalTable": "tbl_employee", "externalColumn": "emp_main_id", "externalShowColumn": "first_name" } }, "shift_type": { "name": "Shift", "external": "true", "externalOptions": { "externalTable": "tbl_shifts", "externalColumn": "id", "externalShowColumn": "title" } }, "check_in": { "name": "Check In", "dbFormat": "datetime", "displayFormat": "m/d/Y h: ia", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "textbox", "label": "Check In", "hint": "Y-m-d h:i:s", "class": "", "validations": [ "required" ] } }, "check_out": { "name": "Check Out", "customColumn": "true", "customaction": "Cmshelper::getCheckoutTime", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "textbox", "label": "Check Out", "hint": "Y-m-d h:i:s", "class": "", "validations": [ "required" ] } }, "hours_worked": { "name": "Time", "customColumn": "true", "customaction": "Cmshelper::getAttndcTimeFromat" } }, "customActions": { "beforeAddRecord": "Cmshelper::checkAttndcCondtn" }, "opertations": [ "view" ], "operationLabel": { "viewTitle": "View" } }', '1', 0, 'all', 'admin', 'main', NULL);
INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(86, 13, 'Add Employee', 'employees', 'tbl_employee', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Employees: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "emp_code"\r\n    ],\r\n    "report": {\r\n        "reportTitle": "Employees",\r\n        "columns": [\r\n            "emp_main_id",\r\n            "emp_code",\r\n            "first_name",\r\n            "last_name",\r\n            "department_id",\r\n            "designation_id"\r\n        ],\r\n        "dateColumn": "added_date"\r\n    },\r\n    "breadCrumbColumn": "emp_code",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "emp_code",\r\n        "first_name",\r\n        "last_name",\r\n        "department_id",\r\n        "active"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "emp_main_id",\r\n        "emp_code",\r\n        "first_name",\r\n        "last_name",\r\n        "department_id",\r\n        "designation_id",\r\n        "reporting_id",\r\n        "shift_id",\r\n        "gender",\r\n        "dob",\r\n        "religion",\r\n        "blood_group",\r\n        "marital_status",\r\n        "family_details",\r\n        "fathers_name",\r\n        "paddress",\r\n        "caddress",\r\n        "phone",\r\n        "mobile",\r\n        "location",\r\n        "official_mail",\r\n        "yahoo_mail",\r\n        "personal_mail",\r\n        "technical_skills",\r\n        "bank_name",\r\n        "account_no",\r\n        "pan_no",\r\n        "pf_no",\r\n        "initial_salary",\r\n        "joining_date",\r\n        "appriasal_date",\r\n        "added_date",\r\n        "active"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "emp_main_id",\r\n        "emp_code",\r\n        "first_name",\r\n        "last_name",\r\n        "department_id",\r\n        "designation_id",\r\n        "reporting_id",\r\n        "shift_id",\r\n        "gender",\r\n        "dob",\r\n        "religion",\r\n        "blood_group",\r\n        "marital_status",\r\n        "family_details",\r\n        "fathers_name",\r\n        "paddress",\r\n        "caddress",\r\n        "phone",\r\n        "mobile",\r\n        "location",\r\n        "official_mail",\r\n        "yahoo_mail",\r\n        "personal_mail",\r\n        "technical_skills",\r\n        "bank_name",\r\n        "account_no",\r\n        "pan_no",\r\n        "pf_no",\r\n        "initial_salary",\r\n        "joining_date",\r\n        "appriasal_date",\r\n        "added_date",\r\n        "active"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "emp_main_id": {\r\n            "name": "USERNAME",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "cms_users",\r\n                "externalColumn": "id",\r\n                "externalShowColumn": "username"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getUsernameCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "User name",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "emp_code": {\r\n            "name": "EMP CODE",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "EmployeeCode",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "department_id": {\r\n            "name": "DEPARTMENT",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_departments",\r\n                "externalColumn": "id",\r\n                "externalShowColumn": "dep_name"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getDepartmentCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Department",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "designation_id": {\r\n            "name": "DESIGNATION",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_designations",\r\n                "externalColumn": "id",\r\n                "externalShowColumn": "desig_name"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getDesignationCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Designation",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "reporting_id": {\r\n            "name": "REPORTING PERSON",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "cms_users",\r\n                "externalColumn": "id",\r\n                "externalShowColumn": "username"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getUsernameCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Reporting Person",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "shift_id": {\r\n            "name": "SHIFT TYPE",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_shifts",\r\n                "externalColumn": "id",\r\n                "externalShowColumn": "title"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getShiftsCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Shift Type",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "first_name": {\r\n            "name": "FIRST NAME",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "First Name",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "last_name": {\r\n            "name": "LAST NAME",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Last Name",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "gender": {\r\n            "name": "Gender",\r\n            "editoptions": {\r\n                "type": "radio",\r\n                "label": "Gender",\r\n                "class": "radio",\r\n                "default": "no",\r\n                "enumvalues": {\r\n                    "M": "Male",\r\n                    "F": "Female"\r\n                },\r\n                "options": {\r\n                    "M": "Male",\r\n                    "F": "Female"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "dob": {\r\n            "name": "DOB",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y/m/d",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "Y/m/d",\r\n                "type": "datepicker",\r\n                "label": "DOB",\r\n                "class": "",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "religion": {\r\n            "name": "RELIGION",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Religion",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "blood_group": {\r\n            "name": "Status",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "O+ve": "O+ve",\r\n                    "O-ve": "O-ve",\r\n                    "A+ve": "A+ve",\r\n                    "A-ve": "A-ve",\r\n                    "B+ve": "B+ve",\r\n                    "B-ve": "B-ve",\r\n                    "AB+ve": "AB+ve",\r\n                    "AB-ve": "AB-ve"\r\n                },\r\n                "default": "Select",\r\n                "source_type": "array",\r\n                "label": "Blood Group",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "O+ve": "O+ve",\r\n                    "O-ve": "O-ve",\r\n                    "A+ve": "A+ve",\r\n                    "A-ve": "A-ve",\r\n                    "B+ve": "B+ve",\r\n                    "B-ve": "B-ve",\r\n                    "AB+ve": "AB+ve",\r\n                    "AB-ve": "AB-ve"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "marital_status": {\r\n            "name": "Marital Status",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "radio",\r\n                "label": "Marital Status",\r\n                "class": "inline",\r\n                "default": "no",\r\n                "enumvalues": {\r\n                    "M": "Married",\r\n                    "U": "Unmarried"\r\n                },\r\n                "options": {\r\n                    "M": "Married",\r\n                    "U": "Unmarried"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "family_details": {\r\n            "name": "FAMILY DETAILS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Family Details",\r\n                "class": "textarea",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "fathers_name": {\r\n            "name": "FATHER''S NAME",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Father''s Name",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "paddress": {\r\n            "name": "PERMANENT ADDRESS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Permanent Address",\r\n                "class": "textarea",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "caddress": {\r\n            "name": "CONTACT ADDRESS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Contact Address",\r\n                "class": "textarea"\r\n            }\r\n        },\r\n        "phone": {\r\n            "name": "PHONE",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Phone",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "mobile": {\r\n            "name": "MOBILE",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Mobile",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "location": {\r\n            "name": "LOCATION",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Location",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "official_mail": {\r\n            "name": "OFFICIAL EMAIL",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Official Email",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "yahoo_mail": {\r\n            "name": "YAHOO EMAIL",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Yahoo Email",\r\n                "class": "textbox",\r\n                "hint": "(For internal use)"\r\n            }\r\n        },\r\n        "personal_mail": {\r\n            "name": "PERSONAL EMAIL",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Personal Email",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "technical_skills": {\r\n            "name": "TECHNICAL SKILLS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Technical Skills",\r\n                "class": "textarea",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "joining_date": {\r\n            "name": "JOINEDDATE",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y/m/d",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "Y/m/d",\r\n                "type": "datepicker",\r\n                "label": "JoinedDate",\r\n                "class": "",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "bank_name": {\r\n            "name": "BANK NAME",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Bank Name",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "account_no": {\r\n            "name": "ACCOUNT NO",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Account No",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "pan_no": {\r\n            "name": "PAN NO",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "PAN Card No",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "pf_no": {\r\n            "name": "PF NO",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "PF No",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "initial_salary": {\r\n            "name": "INITIAL SALARY",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Initial Salary",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "appriasal_date": {\r\n            "name": "LAST APPRIASAL DATE",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y/m/d",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "Y/m/d",\r\n                "type": "datepicker",\r\n                "label": "Last Salary Appriasal Date"\r\n            }\r\n        },\r\n        "added_date": {\r\n            "name": "ADDEDDATE",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y-m-d"\r\n        },\r\n        "active": {\r\n            "name": "STATUS",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeEmployeeStatus",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "buttonColors": {\r\n                    "Y": "green",\r\n                    "N": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "default": "Y",\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "customActions": {\r\n        "beforeAddRecord": "Cmshelper::changeEmployeeAddedDateFormat"\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "AddEmployee",\r\n        "editTitle": "EditEmployee",\r\n        "viewTitle": "ViewEmployeeDetails",\r\n        "deleteTitle": "DeleteEmployee"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(85, 10, 'Approve Leaves', 'lhrrequests', 'tbl_emp_leaves', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchHRLeaveRequests", "dataSourceCountFunction": "Cmshelper::fetchHRLeaveRequestsCount", "detailHeaderColumnPrefix": "Leave Requests: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "includeJsFiles": [ "leave_hr.js" ], "listColumns": [ "profile_pic", "username", "leave_type", "half_day", "applied_date", "from_date_disp", "to_date_disp", "sup_status" ], "showColumns": [ "id", "emp_id", "leave_type", "half_day", "from_date", "to_date", "description", "comments", "sup_status", "applied_date" ], "detailColumns": [ "id", "emp_id", "leave_type", "half_day", "applied_date", "from_date", "from_date_disp", "to_date", "to_date_disp", "description", "comments", "sup_status", "remarks", "profile_pic" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "profile_pic": { "name": "", "customColumn": "true", "customaction": "Cmshelper::getProfilePicLeave" }, "emp_id": { "name": "Name", "searchable": "true", "sortable": "true", "editoptions": { "type": "select", "onEdit": "disable", "source": "Cmshelper::getUsernameCombo", "default": "", "source_type": "function", "label": "User name", "class": "select", "validations": [ "required" ] } }, "leave_type": { "name": "Leave Type", "searchable": "true", "sortable": "true", "editoptions": { "type": "select", "source": "Cmshelper::getLeaveTypesHR", "default": "", "source_type": "function", "label": "Leave Type", "class": "select", "validations": [ "required" ] } }, "half_day": { "name": "Half Day", "sortable": "true", "editoptions": { "type": "checkbox", "label": "Half Day", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" } } }, "from_date": { "name": "From Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "label": "From Date", "class": "", "validations": [ "required" ] } }, "to_date": { "name": "To Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "label": "To Date", "class": "" } }, "from_date_disp": { "name": "From Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceFromdate" }, "to_date_disp": { "name": "To Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceTodate" }, "description": { "name": "Purpose of leave", "editoptions": { "type": "textarea", "label": "Purpose of leave", "class": "textarea", "validations": [ "required" ] } }, "comments": { "name": "Arrangements have been made", "editoptions": { "type": "textarea", "label": "Arrangements have been made", "class": "textarea", "validations": [ "required" ] } }, "sup_status": { "name": "Status", "sortable": "true", "popupoptions": { "type": "popup", "customaction": "Cmshelper::getSupstatusPopupUrl" } }, "remarks": { "name": "Remarks" }, "hr_status": { "name": "HR Status", "sortable": "true", "popupoptions": { "type": "popup", "customaction": "Cmshelper::getHrstatusPopupUrl" } }, "username": { "searchable": "true", "sortable": "true", "name": "Employee name" }, "applied_date": { "searchable": "true", "sortable": "true", "name": "Applied date", "dbFormat": "date", "displayFormat": "M d, Y" }, "confirm": { "name": "Confirm", "editoptions": { "type": "checkbox", "label": "Confirm?", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" }, "validations": [ "required" ] } } }, "customActions": { "beforeAddRecord": "Cmshelper::checkLeaveBalanceEmp", "beforeEditRecord": "Cmshelper::beforeEditLeaveHR" }, "opertations": [ "add", "view", "edit", "delete" ], "operationLabel": { "addLabel": "Apply Leave", "editTitle": "Edit Leave", "viewTitle": "View Leave Details", "deleteTitle": "Delete Leave" } }', '1', 5, 'all', 'admin', 'main', NULL),
(115, 16, 'team', 'project_team', 'tbl_project_team', '{\r\n"keyColumn": "team_id",\r\n"wildsearch": "true",\r\n"detailHeaderColumnPrefix": "Team: ",\r\n"handleFile": "true",\r\n"detailHeaderColumns": [\r\n"project_id"\r\n],\r\n"breadCrumbColumn": "project_id",\r\n"orderBy": {\r\n"team_id": "DESC"\r\n},\r\n"listColumns": [\r\n"project_id",\r\n"user_id"\r\n],\r\n"showColumns": [\r\n"team_id",\r\n"project_id",\r\n"user_id"\r\n],\r\n"detailColumns": [\r\n"team_id",\r\n"project_id",\r\n"user_id",\r\n"added_to_gitlab"\r\n],\r\n"columns": {\r\n"team_id": {\r\n"name": "ID",\r\n"editoptions": {\r\n"type": "hidden"\r\n}\r\n},\r\n"project_id": {\r\n"name": "Project",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"external": "true",\r\n"externalOptions": {\r\n"externalTable": "tbl_projects",\r\n"externalColumn": "project_id",\r\n"externalShowColumn": "project_title"\r\n}\r\n},\r\n"added_to_gitlab": {\r\n"name": "Add to GitLab",\r\n"editoptions": {\r\n"type": "checkbox",\r\n"label": "Add to GitLab",\r\n"class": "inline",\r\n"default": "0",\r\n"enumvalues": {\r\n"0": "No",\r\n"1": "Yes"\r\n}\r\n}\r\n},\r\n"user_id": {\r\n"name": "Team Member",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"external": "true",\r\n"externalOptions": {\r\n"externalTable": "tbl_employee",\r\n"externalColumn": "emp_main_id",\r\n"externalShowColumn": "first_name"\r\n},\r\n"editoptions": {\r\n"type": "select",\r\n"source": "Cmshelper::getUsernameCombo",\r\n"default": "",\r\n"source_type": "function",\r\n"label": "Team Member",\r\n"class": "select",\r\n"validations": [\r\n"required"\r\n]\r\n}\r\n}\r\n},\r\n"reference": {\r\n"referenceTable": "tbl_projects",\r\n"referenceColumn": "project_id",\r\n"referenceTableForiegnKey": "project_id"\r\n},\r\n"customActions": {\r\n"afterAddRecord": "Cmshelper::increaseTeamCount",\r\n"beforeDeleteRecord": "Cmshelper::decreaseTeamCount",\r\n"beforeAddRecord": "Cmshelper::checkAlreadyMember",\r\n"beforeEditRecord": "Cmshelper::checkAlreadyMember"\r\n},\r\n"opertations": [\r\n"add",\r\n"view",\r\n"edit",\r\n"delete"\r\n],\r\n"operationLabel": {\r\n"addLabel": "Add Team Member",\r\n"editTitle": "Edit Team Member",\r\n"viewTitle": "View Team Details",\r\n"deleteTitle": "Delete Team Member"\r\n}\r\n}', '0', 1, 'all', 'admin', 'main', NULL),
(90, 13, 'Employee Qualifications', 'empqualifications', 'tbl_emp_qualifications', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Qualifications: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "reference": {\r\n        "referenceTable": "tbl_employee",\r\n        "referenceColumn": "emp_id",\r\n        "referenceTableForiegnKey": "emp_main_id"\r\n    },\r\n    "listColumns": [\r\n        "degree",\r\n        "institution",\r\n        "passed_year",\r\n        "percentage"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "emp_id",\r\n        "degree",\r\n        "institution",\r\n        "passed_year",\r\n        "percentage"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "emp_id",\r\n        "degree",\r\n        "institution",\r\n        "passed_year",\r\n        "percentage"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "emp_id": {\r\n            "name": "EMP_ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "degree": {\r\n            "name": "Degree",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Degree",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "institution": {\r\n            "name": "Institution",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Institution",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "passed_year": {\r\n            "name": "Passed Year",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Passed Year",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "percentage": {\r\n            "name": "Percentage",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Percentage",\r\n                "class": "textbox"\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Qualification",\r\n        "editTitle": "Edit Qualification",\r\n        "viewTitle": "View Qualification Details",\r\n        "deleteTitle": "Delete Qualification"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(91, 13, 'Employee Certification', 'empcertifications', 'tbl_emp_certifications', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Certifications: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "course",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "reference": {\r\n        "referenceTable": "tbl_employee",\r\n        "referenceColumn": "emp_id",\r\n        "referenceTableForiegnKey": "emp_main_id"\r\n    },\r\n    "listColumns": [\r\n        "course",\r\n        "date"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "emp_id",\r\n        "course",\r\n        "date"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "emp_id",\r\n        "course",\r\n        "date"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "emp_id": {\r\n            "name": "EMP_ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "course": {\r\n            "name": "Course",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Course",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "date": {\r\n            "name": "Date",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y/m/d",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "Y/m/d",\r\n                "type": "datepicker",\r\n                "label": "Date",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Certification",\r\n        "editTitle": "Edit Certification",\r\n        "viewTitle": "View CertificationDetails",\r\n        "deleteTitle": "Delete Certification"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(92, 13, 'Employee Job History', 'empjobshistory', 'tbl_emp_jobhistory', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Job History: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "previous_employer",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "reference": {\r\n        "referenceTable": "tbl_employee",\r\n        "referenceColumn": "emp_id",\r\n        "referenceTableForiegnKey": "emp_main_id"\r\n    },\r\n    "listColumns": [\r\n        "previous_employer",\r\n        "designation",\r\n        "salary",\r\n        "address",\r\n        "working_period"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "emp_id",\r\n        "previous_employer",\r\n        "designation",\r\n        "salary",\r\n        "address",\r\n        "working_period"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "emp_id",\r\n        "previous_employer",\r\n        "designation",\r\n        "salary",\r\n        "address",\r\n        "working_period"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "emp_id": {\r\n            "name": "EMP_ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "previous_employer": {\r\n            "name": "Previous Employer",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Previous Employer",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "designation": {\r\n            "name": "Designation",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Designation",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "salary": {\r\n            "name": "Salary",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Salary",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "address": {\r\n            "name": "Address",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Address",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "working_period": {\r\n            "name": "Working Period",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Working Period",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Job History",\r\n        "editTitle": "Edit Job History",\r\n        "viewTitle": "View Job History Details",\r\n        "deleteTitle": "Delete Job History"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(95, 10, 'Team', 'employeeslist', 'tbl_employee', '{ "keyColumn": "emp_main_id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchEmployeeDetails", "dataSourceCountFunction": "Cmshelper::fetchEmployeeDetailsCount", "detailHeaderColumnPrefix": "Employees: ", "handleFile": "true", "detailHeaderColumns": [ "emp_code" ], "breadCrumbColumn": "emp_code", "orderBy": { "id": "DESC" }, "relations": { "Leave Requests": { "name": "Leave", "section": "lrequestemp", "child_table": "tbl_emp_leaves", "parent_join_column": "emp_main_id", "child_join_column": "emp_id" }, "Attendance": { "name": "Attendance", "section": "attendance", "child_table": "tbl_attendance", "parent_join_column": "emp_main_id", "child_join_column": "emp_id" } }, "listColumns": [ "profile_pic", "emp_code", "name", "dep_name", "desig_name" ], "showColumns": [ "id", "emp_code", "name", "dep_name", "desig_name" ], "detailColumns": [ "id", "emp_code", "name", "dep_name", "desig_name", "profile_pic" ], "columns": { "id": { "name": "ID" }, "profile_pic": { "name": "", "customColumn": "true", "customaction": "Cmshelper::getProfilePic" }, "name": { "searchable": "true", "sortable": "true", "name": "NAME" }, "emp_code": { "searchable": "true", "sortable": "true", "name": "EMP CODE" }, "dep_name": { "searchable": "true", "sortable": "true", "name": "DEPARTMENT" }, "desig_name": { "searchable": "true", "sortable": "true", "name": "DESIGNATION" } }, "opertations": [ "view" ] }', '1', 11, 'all', 'admin', 'main', NULL),
(94, 0, 'Check In', 'checkinout', 'tbl_attendance', '{"customAction":"true","controller":"cmshelper","method":"checkinout","module":"default"}\r\n', '0', 0, 'all', 'admin', 'main', NULL),
(99, 13, 'Attendance Management', 'attendancehradd', 'tbl_attendance', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Attendace: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": ["username"],\r\n    "breadCrumbColumn": "username",\r\n    "orderBy": {\r\n        "date": "DESC"\r\n    },\r\n    "includeJsFiles": ["attendance_add.js", "attendance_datepicker.js"],\r\n    "listColumns": ["date", "emp_name", "shift_type", "check_in_disp", "check_out_disp", "hours_worked", "process_violation", "comments"],\r\n    "showColumns": ["id", "date", "emp_id", "shift_type", "check_in", "check_out", "process_violation", "comments"],\r\n    "detailColumns": ["id", "date", "emp_id", "emp_name", "shift_type", "check_in", "check_out", "check_in_disp", "check_out_disp", "hours_worked", "process_violation", "comments"],\n     "where": "YEAR(date) >= YEAR(CURRENT_DATE - INTERVAL 12 MONTH)",\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "date": {\r\n            "name": "Date (m-d-y)",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "dbFormat": "date",\r\n            "displayFormat": "m/d/Y",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "m/d/Y",\r\n                "type": "datepicker",\r\n                "onEdit": "disable",\r\n                "label": "Date",\r\n                "class": "",\r\n                "validations": ["required"]\r\n            }\r\n        },\r\n        "emp_id": {\r\n            "name": "Username",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_employee",\r\n                "externalColumn": "emp_main_id",\r\n                "externalShowColumn": "first_name"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "onEdit": "disable",\r\n                "source": "Cmshelper::getUsernameCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "User name",\r\n                "class": "select",\r\n                "validations": ["required"]\r\n            }\r\n        },\r\n        "shift_type": {\r\n            "name": "Shift",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_shifts",\r\n                "externalColumn": "id",\r\n                "externalShowColumn": "title"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getShiftsCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Shift",\r\n                "class": "select",\r\n                "validations": ["required"]\r\n            }\r\n        },\r\n        "check_in": {\r\n            "name": "Check In",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y h: ia",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "m/d/Y",\r\n                "type": "textbox",\r\n                "label": "Check In",\r\n                "hint": "Y-m-d h:m:s",\r\n                "class": "",\r\n                "validations": ["required"]\r\n            }\r\n        },\r\n        "check_out": {\r\n            "name": "Check Out",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y h: ia",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "m/d/Y",\r\n                "type": "textbox",\r\n                "label": "Check Out",\r\n                "hint": "Y-m-d h:m:s",\r\n                "class": ""\r\n            }\r\n        },\r\n        "emp_name": {\r\n            "name": "Employee Name",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getAttndcEmployeename"\r\n        },\r\n        "check_in_disp": {\r\n            "name": "Check In",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getAttndcCheckinTime"\r\n        },\r\n        "check_out_disp": {\r\n            "name": "Check Out",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getAttndcCheckoutTime"\r\n        },\r\n        "check_in_old": {\r\n            "name": "CheckIn",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "h: ia",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getTimeCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "CheckIn",\r\n                "class": "select",\r\n                "validations": ["required"]\r\n            }\r\n        },\r\n        "check_out_old": {\r\n            "name": "CheckOut",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "h: ia",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getTimeCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "CheckOut",\r\n                "class": "select",\r\n                "validations": ["required"]\r\n            }\r\n        },\r\n        "hours_worked": {\r\n            "name": "Time",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getAttndcTimeFromat"\r\n        },\r\n        "process_violation": {\r\n            "name": "Process Violation",\r\n            "editoptions": {\r\n                "type": "checkbox",\r\n                "label": "Process Violation?",\r\n                "class": "inline",\r\n                "default": "0",\r\n                "enumvalues": {\r\n                    "0": "No",\r\n                    "1": "Yes"\r\n                }\r\n            }\r\n        },\r\n        "comments": {\r\n            "name": "Comments",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Comments",\r\n                "class": "textbox",\r\n                "default": "-"\r\n            }\r\n        }\r\n    },\r\n    "customActions": {\r\n        "beforeAddRecord": "Cmshelper::checkAttndcCondtn",\r\n        "beforeEditRecord": "Cmshelper::checkPV"\r\n    },\r\n    "opertations": ["add", "view", "edit", "delete"],\r\n    "operationLabel": {\r\n        "addLabel": "Add",\r\n        "editTitle": "Edit",\r\n        "viewTitle": "View",\r\n        "deleteTitle": "Delete"\r\n    }\r\n}', '1', 0, 'all', 'admin', 'main', NULL),
(96, 13, 'Employees', 'empdetails', 'tbl_employee', '{\n	"keyColumn": "emp_main_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Employees: ",\n	"handleFile": "true",\n	"detailHeaderColumns": ["emp_code"],\n	"breadCrumbColumn": "emp_code",\n	"orderBy": {\n		"id": "DESC"\n	},\n	"relations": {\n		"Leave Requests": {\n			"name": "Leave",\n			"section": "leavehradd",\n			"child_table": "tbl_emp_leaves",\n			"parent_join_column": "emp_main_id",\n			"child_join_column": "emp_id"\n		},\n		"Attendance": {\n			"name": "Attendance",\n			"section": "attendanceadd",\n			"child_table": "tbl_attendance",\n			"parent_join_column": "emp_main_id",\n			"child_join_column": "emp_id"\n		},\n		"Employee Qualifications": {\n			"name": "Qualification",\n			"section": "empqualifications",\n			"child_table": "tbl_emp_qualifications",\n			"parent_join_column": "emp_main_id",\n			"child_join_column": "emp_id"\n		},\n		"Employee Certification": {\n			"name": "Certification",\n			"section": "empcertifications",\n			"child_table": "tbl_emp_certifications",\n			"parent_join_column": "emp_main_id",\n			"child_join_column": "emp_id"\n		},\n		"Employee Job History": {\n			"name": "Job History",\n			"section": "empjobshistory",\n			"child_table": "tbl_emp_jobhistory",\n			"parent_join_column": "emp_main_id",\n			"child_join_column": "emp_id"\n		}\n	},\n	"listColumns": ["profile_pic", "emp_code", "first_name", "last_name", "department_id"],\n	"showColumns": ["id", "emp_main_id", "profile_pic", "emp_code", "first_name", "last_name", "department_id", "designation_id", "reporting_id", "shift_id", "joining_date"],\n	"detailColumns": ["id", "emp_code", "department_id", "designation_id", "reporting_id", "team_id", "first_name", "last_name", "gender", "dob", "religion", "blood_group", "marital_status", "family_details", "fathers_name", "paddress", "caddress", "phone", "mobile", "location", "official_mail", "yahoo_mail", "personal_mail", "technical_skills", "bank_name", "account_no", "pan_no", "pf_no", "initial_salary", "joining_date", "appriasal_date", "added_date", "relieving_date", "emergency_contact_name", "emergency_contact_phone", "active", "profile_pic"],\n	"columns": {\n		"id": {\n			"name": "ID",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"emp_code": {\n			"name": "EMP CODE",\n			"searchable": "true",\n			"sortable": "true"\n		},\n		"department_id": {\n			"name": "DEPARTMENT",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_departments",\n				"externalColumn": "id",\n				"externalShowColumn": "dep_name"\n			}\n		},\n		"designation_id": {\n			"name": "DESIGNATION",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_designations",\n				"externalColumn": "id",\n				"externalShowColumn": "desig_name"\n			}\n		},\n		"reporting_id": {\n			"name": "REPORTING PERSON",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_employee",\n				"externalColumn": "emp_main_id",\n				"externalShowColumn": "first_name"\n			}\n		},\n		"team_id": {\n			"name": "TEAM",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_teams",\n				"externalColumn": "id",\n				"externalShowColumn": "title"\n			}\n		},\n		"first_name": {\n			"name": "FIRST NAME",\n			"searchable": "true",\n			"sortable": "true"\n		},\n		"last_name": {\n			"name": "LAST NAME",\n			"searchable": "true",\n			"sortable": "true"\n		},\n		"gender": {\n			"name": "Gender"\n		},\n		"dob": {\n			"name": "DOB",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"religion": {\n			"name": "RELIGION"\n		},\n		"blood_group": {\n			"name": "Status"\n		},\n		"marital_status": {\n			"name": "Marital Status",\n			"sortable": "true"\n		},\n		"family_details": {\n			"name": "FAMILY DETAILS"\n		},\n		"fathers_name": {\n			"name": "FATHER''S NAME"\n		},\n		"paddress": {\n			"name": "PERMANENT ADDRESS"\n		},\n		"caddress": {\n			"name": "CONTACT ADDRESS"\n		},\n		"phone": {\n			"name": "PHONE"\n		},\n		"mobile": {\n			"name": "MOBILE"\n		},\n		"location": {\n			"name": "LOCATION"\n		},\n		"official_mail": {\n			"name": "OFFICIAL EMAIL"\n		},\n		"yahoo_mail": {\n			"name": "YAHOO EMAIL"\n		},\n		"personal_mail": {\n			"name": "PERSONAL EMAIL"\n		},\n		"technical_skills": {\n			"name": "TECHNICAL SKILLS"\n		},\n		"joining_date": {\n			"name": "JOINEDDATE",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"bank_name": {\n			"name": "BANK NAME"\n		},\n		"account_no": {\n			"name": "ACCOUNT NO"\n		},\n		"pan_no": {\n			"name": "PAN NO"\n		},\n		"pf_no": {\n			"name": "PF NO"\n		},\n		"initial_salary": {\n			"name": "INITIAL SALARY"\n		},\n		"appriasal_date": {\n			"name": "LAST APPRIASAL DATE",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"added_date": {\n			"name": "ADDEDDATE",\n			"dbFormat": "date",\n			"displayFormat": "Y-m-d"\n		},\n		"relieving_date": {\n			"name": "RELIEVING DATE",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"active": {\n			"name": "Active"\n		},\n		"profile_pic": {\n			"name": "PHOTO",\n			"customColumn": "true",\n			"customaction": "Cmshelper::getProfilePic",\n			"editoptions": {\n				"type": "file",\n				"label": "PHOTO",\n				"class": "file",\n				"hint": "Upload file for this section"\n			}\n		},\n		"emergency_contact_name": {\n			"name": "Emergency Contact Name"\n		},\n		"emergency_contact_phone": {\n			"name": "Emergency Contact Phone"\n		}\n	},\n	"opertations": ["view"],\n	"operationLabel": {\n		"viewTitle": "ViewEmployeeDetails"\n	}\n}', '1', 0, 'all', 'admin', 'main', NULL);
INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(104, 13, 'Teams', 'teams', 'tbl_teams', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Teams: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "title"\r\n    ],\r\n    "breadCrumbColumn": "title",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "title",\r\n        "active"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "title",\r\n        "active"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "title",\r\n        "active"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "title": {\r\n            "name": "Title",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Title",\r\n                "class": "textbox",\r\n                "hint": "News Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "active": {\r\n            "name": "Status",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeTeamStatus",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "buttonColors": {\r\n                    "Y": "green",\r\n                    "N": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "default": "Y",\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "Y": "Active",\r\n                    "N": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Team",\r\n        "editTitle": "Edit Team",\r\n        "viewTitle": "View Team Details",\r\n        "deleteTitle": "Delete Team"\r\n    }\r\n}', '1', 0, 'all', 'admin', 'main', NULL),
(103, 13, 'Employee Test1', 'empadds', 'tbl_employee', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Employees: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "emp_code"\r\n    ],\r\n    "breadCrumbColumn": "emp_code",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "includeJsFiles": [],\r\n    "combineTables": {\r\n        "cms_users": {\r\n            "combineColumns": [\r\n                "role_id",\r\n                "username",\r\n                "password",\r\n                "status"\r\n            ],\r\n            "combineReferenceColumn": "id",\r\n            "combineTableForiegnKey": "emp_main_id",\r\n            "isPrimaryKey": "false"\r\n        }\r\n    },\r\n    "listColumns": [\r\n        "emp_code",\r\n        "first_name",\r\n        "last_name",\r\n        "department_id",\r\n        "active"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "emp_main_id",\r\n        "emp_code",\r\n        "first_name",\r\n        "last_name",\r\n        "department_id",\r\n        "designation_id",\r\n        "reporting_id",\r\n        "shift_id",\r\n        "gender",\r\n        "dob",\r\n        "religion",\r\n        "blood_group",\r\n        "marital_status",\r\n        "family_details",\r\n        "fathers_name",\r\n        "paddress",\r\n        "caddress",\r\n        "phone",\r\n        "mobile",\r\n        "location",\r\n        "official_mail",\r\n        "yahoo_mail",\r\n        "personal_mail",\r\n        "technical_skills",\r\n        "bank_name",\r\n        "account_no",\r\n        "pan_no",\r\n        "pf_no",\r\n        "initial_salary",\r\n        "joining_date",\r\n        "appriasal_date",\r\n        "added_date",\r\n        "active",\r\n        "profile_pic"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "role_id",\r\n        "username",\r\n        "password",\r\n        "status",\r\n        "emp_main_id",\r\n        "emp_code",\r\n        "first_name",\r\n        "last_name",\r\n        "department_id",\r\n        "designation_id",\r\n        "reporting_id",\r\n        "shift_id",\r\n        "gender",\r\n        "dob",\r\n        "religion",\r\n        "blood_group",\r\n        "marital_status",\r\n        "family_details",\r\n        "fathers_name",\r\n        "paddress",\r\n        "caddress",\r\n        "phone",\r\n        "mobile",\r\n        "location",\r\n        "official_mail",\r\n        "yahoo_mail",\r\n        "personal_mail",\r\n        "technical_skills",\r\n        "bank_name",\r\n        "account_no",\r\n        "pan_no",\r\n        "pf_no",\r\n        "initial_salary",\r\n        "joining_date",\r\n        "appriasal_date",\r\n        "added_date",\r\n        "active",\r\n        "profile_pic"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "username": {\r\n            "name": "UserNAME",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "password": {\r\n            "name": "PASSWORD",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "role_id": {\r\n            "name": "ROLE",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getRolesCombo",\r\n                "source_type": "function",\r\n                "label": "Role",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "emp_main_id": {\r\n            "name": "EMP ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "emp_code": {\r\n            "name": "EMP CODE",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "EmployeeCode",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "department_id": {\r\n            "name": "DEPARTMENT",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getDepName",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getDepartmentCombo",\r\n                "source_type": "function",\r\n                "label": "Department",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "designation_id": {\r\n            "name": "DESIGNATION",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getDesigName",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getDesignationCombo",\r\n                "source_type": "function",\r\n                "label": "Designation",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "reporting_id": {\r\n            "name": "REPORTING PERSON",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getReportName",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getUsernameCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Reporting Person",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "shift_id": {\r\n            "name": "SHIFT TYPE",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getShiftName",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getShiftsCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Shift Type",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "first_name": {\r\n            "name": "FIRST NAME",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "First Name",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "last_name": {\r\n            "name": "LAST NAME",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Last Name",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "gender": {\r\n            "name": "Gender",\r\n            "editoptions": {\r\n                "type": "radio",\r\n                "label": "Gender",\r\n                "class": "radio",\r\n                "default": "no",\r\n                "enumvalues": {\r\n                    "M": "Male",\r\n                    "F": "Female"\r\n                },\r\n                "options": {\r\n                    "M": "Male",\r\n                    "F": "Female"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "dob": {\r\n            "name": "DOB",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y/m/d",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "Y/m/d",\r\n                "type": "datepicker",\r\n                "label": "DOB",\r\n                "class": "",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "religion": {\r\n            "name": "RELIGION",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Religion",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "blood_group": {\r\n            "name": "Status",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "O+ve": "O+ve",\r\n                    "O-ve": "O-ve",\r\n                    "A+ve": "A+ve",\r\n                    "A-ve": "A-ve",\r\n                    "B+ve": "B+ve",\r\n                    "B-ve": "B-ve",\r\n                    "AB+ve": "AB+ve",\r\n                    "AB-ve": "AB-ve"\r\n                },\r\n                "default": "Select",\r\n                "source_type": "array",\r\n                "label": "Blood Group",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "O+ve": "O+ve",\r\n                    "O-ve": "O-ve",\r\n                    "A+ve": "A+ve",\r\n                    "A-ve": "A-ve",\r\n                    "B+ve": "B+ve",\r\n                    "B-ve": "B-ve",\r\n                    "AB+ve": "AB+ve",\r\n                    "AB-ve": "AB-ve"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "marital_status": {\r\n            "name": "Marital Status",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "radio",\r\n                "label": "Marital Status",\r\n                "class": "inline",\r\n                "default": "no",\r\n                "enumvalues": {\r\n                    "M": "Married",\r\n                    "U": "Unmarried"\r\n                },\r\n                "options": {\r\n                    "M": "Married",\r\n                    "U": "Unmarried"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "family_details": {\r\n            "name": "FAMILY DETAILS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Family Details",\r\n                "class": "textarea",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "fathers_name": {\r\n            "name": "FATHER''S NAME",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Father''s Name",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "paddress": {\r\n            "name": "PERMANENT ADDRESS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Permanent Address",\r\n                "class": "textarea",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "caddress": {\r\n            "name": "CONTACT ADDRESS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Contact Address",\r\n                "class": "textarea"\r\n            }\r\n        },\r\n        "phone": {\r\n            "name": "PHONE",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Phone",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "mobile": {\r\n            "name": "MOBILE",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Mobile",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "location": {\r\n            "name": "LOCATION",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Location",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "official_mail": {\r\n            "name": "OFFICIAL EMAIL",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Official Email",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "yahoo_mail": {\r\n            "name": "YAHOO EMAIL",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Yahoo Email",\r\n                "class": "textbox",\r\n                "hint": "(For internal use)"\r\n            }\r\n        },\r\n        "personal_mail": {\r\n            "name": "PERSONAL EMAIL",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Personal Email",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "technical_skills": {\r\n            "name": "TECHNICAL SKILLS",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Technical Skills",\r\n                "class": "textarea",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "joining_date": {\r\n            "name": "JOINEDDATE",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y/m/d",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "Y/m/d",\r\n                "type": "datepicker",\r\n                "label": "JoinedDate",\r\n                "class": "",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "bank_name": {\r\n            "name": "BANK NAME",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Bank Name",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "account_no": {\r\n            "name": "ACCOUNT NO",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Account No",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "pan_no": {\r\n            "name": "PAN NO",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "PAN Card No",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "pf_no": {\r\n            "name": "PF NO",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "PF No",\r\n                "class": "textbox"\r\n            }\r\n        },\r\n        "initial_salary": {\r\n            "name": "INITIAL SALARY",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Initial Salary",\r\n                "class": "textbox",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "appriasal_date": {\r\n            "name": "LAST APPRIASAL DATE",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y/m/d",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "Y/m/d",\r\n                "type": "datepicker",\r\n                "label": "Last Salary Appriasal Date"\r\n            }\r\n        },\r\n        "added_date": {\r\n            "name": "ADDEDDATE",\r\n            "dbFormat": "date",\r\n            "displayFormat": "Y-m-d"\r\n        },\r\n        "status": {\r\n            "name": "STATUS",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "listoptions": {\r\n                "type": "button",\r\n                "customaction": "Cmshelper::changeEmployeeActiveStatus",\r\n                "enumvalues": {\r\n                    "active": "Active",\r\n                    "deleted": "Inactive"\r\n                },\r\n                "buttonColors": {\r\n                    "active": "green",\r\n                    "deleted": "red"\r\n                }\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "active": "Active",\r\n                    "deleted": "Inactive"\r\n                },\r\n                "default": "active",\r\n                "source_type": "array",\r\n                "label": "Status",\r\n                "class": "select",\r\n                "enumvalues": {\r\n                    "active": "Active",\r\n                    "deleted": "Inactive"\r\n                },\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "active": {\r\n            "name": "Active",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "profile_pic": {\r\n            "name": "Logo",\r\n            "editoptions": {\r\n                "type": "file",\r\n                "label": "Logo",\r\n                "class": "file",\r\n                "hint": "Upload file for this section"\r\n            },\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "cms_files",\r\n                "externalColumn": "file_id",\r\n                "externalShowColumn": "file_id"\r\n            }\r\n        }\r\n    },\r\n    "customActions": {\r\n        "afterAddRecord": "Cmshelper::checkEmpAddCondtn1"\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "AddEmployee",\r\n        "editTitle": "EditEmployee",\r\n        "viewTitle": "ViewEmployeeDetails",\r\n        "deleteTitle": "DeleteEmployee"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(98, 13, 'Attendance', 'attendanceadd', ' tbl_attendance', '{ "keyColumn": "id", "wildsearch": "true", "detailHeaderColumnPrefix": "Attendace: ", "handleFile": "true", "detailHeaderColumns": [ "username" ], "breadCrumbColumn": "username", "orderBy": { "date": "DESC" }, "includeJsFiles": [ "attendance_add.js", "attendance_datepicker.js" ], "reference": { "referenceTable": "tbl_employee", "referenceColumn": "emp_id", "referenceTableForiegnKey": "emp_main_id" }, "listColumns": [ "date", "emp_id", "shift_type", "check_in", "check_out", "hours_worked", "comments" ], "showColumns": [ "id", "date", "emp_id", "shift_type", "check_in", "check_out", "comments" ], "detailColumns": [ "id", "date", "emp_id", "shift_type", "check_in", "check_out", "hours_worked", "comments" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "date": { "name": "Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "onEdit": "disable", "label": "Date", "class": "", "validations": [ "required" ] } }, "emp_id": { "name": "Username", "searchable": "true", "sortable": "true", "external": "true", "externalOptions": { "externalTable": "tbl_employee", "externalColumn": "emp_main_id", "externalShowColumn": "first_name" } }, "shift_type": { "name": "Shift", "external": "true", "externalOptions": { "externalTable": "tbl_shifts", "externalColumn": "id", "externalShowColumn": "title" }, "editoptions": { "type": "select", "source": "Cmshelper::getShiftsCombo", "default": "", "source_type": "function", "label": "Shift", "class": "select", "validations": [ "required" ] } }, "check_in": { "name": "Check In", "dbFormat": "datetime", "displayFormat": "m/d/Y h: ia", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "textbox", "label": "Check In", "hint": "Y-m-d h:m:s", "class": "", "validations": [ "required" ] } }, "check_out": { "name": "Check Out", "dbFormat": "datetime", "displayFormat": "m/d/Y h: ia", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "textbox", "label": "Check Out", "hint": "Y-m-d h:m:s", "class": "" } }, "hours_worked": { "name": "Time", "customColumn": "true", "customaction": "Cmshelper::getAttndcTimeFromat" }, "comments": { "name": "Comments", "editoptions": { "type": "textbox", "label": "Comments", "class": "textbox", "default": "-" } } }, "customActions": { "beforeAddRecord": "Cmshelper::checkAttndcCondtn" }, "opertations": [ "add", "view", "edit", "delete" ], "operationLabel": { "addLabel": "Add", "editTitle": "Edit", "viewTitle": "View", "deleteTitle": "Delete" } }', '0', 0, 'all', 'admin', 'main', NULL),
(100, 14, 'Leave Add', 'leavehradd', 'tbl_emp_leaves', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchHRLeaveRequests", "dataSourceCountFunction": "Cmshelper::fetchHRLeaveRequestsCount", "detailHeaderColumnPrefix": "Leave Requests: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "includeJsFiles": [ "leave_hr.js" ], "reference": { "referenceTable": "tbl_employee", "referenceColumn": "emp_id", "referenceTableForiegnKey": "emp_main_id" }, "listColumns": [ "username", "leave_type", "half_day", "applied_date", "from_date", "to_date", "sup_status" ], "showColumns": [ "id", "emp_id", "leave_type", "half_day", "from_date", "to_date", "description", "comments", "sup_status", "applied_date" ], "detailColumns": [ "id", "emp_id", "leave_type", "half_day", "applied_date", "from_date", "to_date", "description", "comments", "sup_status" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "emp_id": { "name": "EMP_ID", "editoptions": { "type": "hidden" } }, "leave_type": { "name": "Leave Type", "searchable": "true", "sortable": "true", "editoptions": { "type": "select", "source": "Cmshelper::getLeaveTypesHR", "default": "", "source_type": "function", "label": "Leave Type", "class": "select", "validations": [ "required" ] } }, "half_day": { "name": "Half Day", "sortable": "true", "editoptions": { "type": "checkbox", "label": "Half Day", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" } } }, "from_date": { "name": "From Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "label": "From Date", "class": "", "validations": [ "required" ] } }, "to_date": { "name": "To Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "m/d/Y", "editoptions": { "dbFormat": "date", "displayFormat": "m/d/Y", "type": "datepicker", "label": "To Date", "class": "" } }, "description": { "name": "Purpose of leave", "editoptions": { "type": "textarea", "label": "Purpose of leave", "class": "textarea", "validations": [ "required" ] } }, "comments": { "name": "Arrangements have been made", "editoptions": { "type": "textarea", "label": "Arrangements have been made", "class": "textarea", "validations": [ "required" ] } }, "sup_status": { "name": "Status", "sortable": "true", "popupoptions": { "type": "popup", "customaction": "Cmshelper::getSupstatusPopupUrl" } }, "hr_status": { "name": "HR Status", "sortable": "true", "popupoptions": { "type": "popup", "customaction": "Cmshelper::getHrstatusPopupUrl" } }, "username": { "searchable": "true", "sortable": "true", "name": "Employee name" }, "applied_date": { "searchable": "true", "sortable": "true", "name": "Applied date", "dbFormat": "date", "displayFormat": "M d, Y" } }, "customActions": { "beforeAddRecord": "Cmshelper::checkLeaveBalanceEmp", "beforeEditRecord": "Cmshelper::beforeEditLeaveHR" }, "opertations": [ "add", "view", "edit", "delete" ], "operationLabel": { "addLabel": "Apply Leave", "editTitle": "Edit Leave", "viewTitle": "View Leave Details", "deleteTitle": "Delete Leave" } }', '0', 0, 'all', 'admin', 'main', NULL),
(101, 14, 'Leave Requests', 'lrequestemp', 'tbl_emp_leaves', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchLeaveRequests", "dataSourceCountFunction": "Cmshelper::fetchLeaveRequestsCount", "detailHeaderColumnPrefix": "Leave Requests: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "reference": { "referenceTable": "tbl_employee", "referenceColumn": "emp_id", "referenceTableForiegnKey": "emp_main_id" }, "listColumns": [ "username", "leave_type", "half_day", "applied_date", "from_date", "to_date", "sup_status" ], "showColumns": [ "id", "emp_id", "leave_type", "half_day", "from_date", "to_date", "description", "comments", "sup_status", "applied_date" ], "detailColumns": [ "id", "username", "emp_id", "leave_type", "half_day", "applied_date", "from_date", "to_date", "description", "comments", "sup_status" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "emp_id": { "name": "EMP_ID", "editoptions": { "type": "hidden" } }, "leave_type": { "name": "Leave Type", "searchable": "true", "sortable": "true", "editoptions": { "type": "select", "source": "Cmshelper::getLeaveTypes", "default": "", "source_type": "function", "label": "Leave Type", "class": "select", "validations": [ "required" ] } }, "half_day": { "name": "Half Day", "sortable": "true", "editoptions": { "type": "checkbox", "label": "Half Day", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" } } }, "from_date": { "name": "From Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "From Date", "class": "", "validations": [ "required" ] } }, "to_date": { "name": "To Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "To Date", "class": "", "validations": [ "required" ] } }, "description": { "name": "Description", "editoptions": { "type": "textarea", "label": "Description", "class": "textarea", "validations": [ "required" ] } }, "comments": { "name": "Comments", "editoptions": { "type": "textarea", "label": "Comments", "class": "textarea", "validations": [ "required" ] } }, "sup_status": { "name": "Status", "sortable": "true" }, "hr_status": { "name": "HR Status", "sortable": "true" }, "username": { "searchable": "true", "sortable": "true", "name": "Employee name" }, "applied_date": { "searchable": "true", "sortable": "true", "name": "Applied date", "dbFormat": "date", "displayFormat": "M d, Y" } }, "customActions": { "beforeAddRecord": "Cmshelper: : setEmployeeId" }, "opertations": [ "view" ], "operationLabel": { "viewTitle": "ViewLeaveDetails" } }', '0', 0, 'all', 'admin', 'main', NULL),
(111, 10, 'Leaves Attendance', 'leaveandattendance', 'tbl_attendance ', '{ "customAction": "true", "controller": "cmshelper", "method": "leavecount", "module": "default" }', '0', 6, 'all', 'admin', 'main', NULL),
(112, 13, 'HR Reports', 'reports', 'tbl_employee', '{ "customAction": "true", "controller": "cmshelper", "method": "reports", "module": "default" } ', '1', 0, 'all', 'admin', 'main', NULL),
(113, 13, 'Attendance Reports', 'attendancereports', 'tbl_attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "attendancereports", "module": "default" }', '0', 0, 'all', 'admin', 'main', NULL),
(114, 16, 'Manage Projects', 'projects', 'tbl_projects', '{\r\n	"keyColumn": "project_id",\r\n	"wildsearch": "true",\r\n	"detailHeaderColumnPrefix": "Project: ",\r\n	"handleFile": "true",\r\n	"detailHeaderColumns": [\r\n		"project_title"\r\n	],\r\n	"breadCrumbColumn": "project_title",\r\n	"orderBy": {\r\n		"project_id": "DESC"\r\n	},\r\n	"listColumns": [\r\n		"project_title",\r\n		"project_category",\r\n		"owner",\r\n		"is_gitlabproject",\r\n		"project_start_date",\r\n		"estimated_completed_date"\r\n	],\r\n	"showColumns": [\r\n		"project_id",\r\n		"project_title",\r\n		"project_category",\r\n		"owner",\r\n		"project_start_date",\r\n		"estimated_completed_date",\r\n		"delivery_date",\r\n		"project_budget",\r\n		"padding_time",\r\n		"project_summary",\r\n		"project_status",\r\n		"gitlabprojectid",\r\n		"project_ssh_url_to_repo",\r\n		"project_http_url_to_repo",\r\n		"is_locked",\r\n		"is_gitlabproject",\r\n		"gitlabprojectname"\r\n	],\r\n	"detailColumns": [\r\n		"project_id",\r\n		"project_title",\r\n		"project_category",\r\n		"owner",\r\n		"project_start_date",\r\n		"estimated_completed_date",\r\n		"delivery_date",\r\n		"project_budget",\r\n		"estimated_time",\r\n		"total_project_task_time",\r\n		"total_project_tasks",\r\n		"padding_time",\r\n		"project_summary",\r\n		"total_logged_time",\r\n		"total_project_log_count",\r\n		"total_project_bugs",\r\n		"total_module_count",\r\n		"total_module_allocated_time",\r\n		"total_timesheet_count",\r\n		"total_milestone_count",\r\n		"total_team_count",\r\n		"project_status",\r\n		"gitlabprojectid",\r\n		"project_ssh_url_to_repo",\r\n		"project_http_url_to_repo",\r\n		"is_locked",\r\n		"is_gitlabproject",\r\n		"project_group",\r\n		"gitlabprojectname"\r\n	],\r\n	"columns": {\r\n		"project_id": {\r\n			"name": "ID",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		},\r\n		"project_ssh_url_to_repo": {\r\n			"name": "ID",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		},\r\n		"project_http_url_to_repo": {\r\n			"name": "Git URL",\r\n			"editoptions": {\r\n				"type": "text"\r\n			}\r\n		},\r\n		"gitlabprojectid": {\r\n			"name": "ID",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		},\r\n		"is_gitlabproject": {\r\n			"name": "Add to GitLab",\r\n			"sortable": "true",\r\n			"editoptions": {\r\n				"type": "checkbox",\r\n				"label": "Add to GitLab",\r\n				"class": "inline",\r\n				"default": "0",\r\n				"enumvalues": {\r\n					"0": "No",\r\n					"1": "Yes"\r\n				}\r\n			}\r\n		},\r\n		"gitlabprojectname": {\r\n			"name": "Repository Name",\r\n			"sortable": "true",\r\n			"editoptions": {\r\n				"type": "textbox",\r\n				"label": "Repository Name",\r\n				"class": "textbox",\r\n				"hint": "Project Name in Gitlab"\r\n			}\r\n		},\r\n		"project_title": {\r\n			"name": "Project Name",\r\n			"searchable": "true",\r\n			"sortable": "true",\r\n			"noWordWrap": "true",\r\n			"editoptions": {\r\n				"type": "textbox",\r\n				"label": "Project name",\r\n				"class": "textbox",\r\n				"hint": "project Name",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			},\r\n			"popupoptions": {\r\n				"type": "popup",\r\n				"customaction": "Cmshelper::getProjectSummaryPopupUrl"\r\n			}\r\n		},\r\n		"estimated_time": {\r\n			"name": "Project Estimated Time"\r\n		},\r\n		"total_project_task_time": {\r\n			"name": "Total Task Assigned time"\r\n		},\r\n		"padding_time": {\r\n			"name": "Project Padding Time(%)",\r\n			"sortable": "true",\r\n			"editoptions": {\r\n				"type": "textbox",\r\n				"label": "Project padding time (%)",\r\n				"class": "textbox",\r\n				"hint": "project padding time",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"project_summary": {\r\n			"name": "Project Summary",\r\n			"editoptions": {\r\n				"type": "textarea",\r\n				"label": "Project summary",\r\n				"class": "textbox"\r\n			}\r\n		},\r\n		"project_budget": {\r\n			"name": "Project Budget",\r\n			"sortable": "true",\r\n			"editoptions": {\r\n				"type": "textbox",\r\n				"label": "Project budget (in $)",\r\n				"class": "textbox",\r\n				"hint": "project Budget",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"total_project_tasks": {\r\n			"name": "Project Task Count",\r\n			"sortable": "true"\r\n		},\r\n		"total_logged_time": {\r\n			"name": "Project Logged Hours",\r\n			"customColumn": "true",\r\n			"customaction": "Cmshelper::gettotalprojectloggedtime"\r\n		},\r\n		"total_project_log_count": {\r\n			"name": "Project Log Count",\r\n			"sortable": "true"\r\n		},\r\n		"total_project_bugs": {\r\n			"name": "Project Bugs",\r\n			"sortable": "true"\r\n		},\r\n		"total_module_count": {\r\n			"name": "Project Module Count",\r\n			"sortable": "true"\r\n		},\r\n		"total_module_allocated_time": {\r\n			"name": "Total Module Allocated Time",\r\n			"sortable": "true"\r\n		},\r\n		"total_timesheet_count": {\r\n			"name": "Project Timesheet Count",\r\n			"sortable": "true"\r\n		},\r\n		"total_milestone_count": {\r\n			"name": "Project Milestone Count",\r\n			"sortable": "true"\r\n		},\r\n		"total_team_count": {\r\n			"name": "Project Team Size",\r\n			"sortable": "true"\r\n		},\r\n		"owner": {\r\n			"name": "Owner",\r\n			"searchable": "true",\r\n			"sortable": "true",\r\n			"external": "true",\r\n			"externalOptions": {\r\n				"externalTable": "tbl_employee",\r\n				"externalColumn": "emp_main_id",\r\n				"externalShowColumn": "first_name"\r\n			},\r\n			"editoptions": {\r\n				"type": "select",\r\n				"source": "Cmshelper::getUsernameCombo",\r\n				"default": "",\r\n				"source_type": "function",\r\n				"label": "Project owner",\r\n				"class": "select",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"project_category": {\r\n			"name": "Project category",\r\n			"external": "true",\r\n			"externalOptions": {\r\n				"externalTable": "tbl_project_categories",\r\n				"externalColumn": "category_id",\r\n				"externalShowColumn": "category_name"\r\n			},\r\n			"editoptions": {\r\n				"type": "select",\r\n				"source": "Cmshelper::getProjectCategories",\r\n				"default": "",\r\n				"source_type": "function",\r\n				"label": "Project category",\r\n				"class": "select",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"is_locked": {\r\n			"name": "Lock",\r\n			"sortable": "true",\r\n			"popupoptions": {\r\n				"type": "popup",\r\n				"customaction": "Cmshelper::getLockstatusPopupUrl"\r\n			}\r\n		},\r\n		"project_start_date": {\r\n			"name": "Project start date",\r\n			"sortable": "true",\r\n			"dbFormat": "date",\r\n			"displayFormat": "m/d/Y",\r\n			"editoptions": {\r\n				"dbFormat": "date",\r\n				"displayFormat": "m/d/Y",\r\n				"type": "datepicker",\r\n				"label": "Project start date",\r\n				"class": "",\r\n				"hint": "Project start date",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"estimated_completed_date": {\r\n			"name": "Estimated completion date",\r\n			"sortable": "true",\r\n			"dbFormat": "date",\r\n			"displayFormat": "m/d/Y",\r\n			"editoptions": {\r\n				"dbFormat": "date",\r\n				"displayFormat": "m/d/Y",\r\n				"type": "datepicker",\r\n				"label": "Project completion date",\r\n				"class": "",\r\n				"hint": "Project completion date",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"delivery_date": {\r\n			"name": "Delivery date",\r\n			"sortable": "true",\r\n			"dbFormat": "date",\r\n			"displayFormat": "m/d/Y",\r\n			"editoptions": {\r\n				"dbFormat": "date",\r\n				"displayFormat": "m/d/Y",\r\n				"type": "datepicker",\r\n				"label": "Project delivery date",\r\n				"class": "",\r\n				"hint": "Project delivery date",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"project_group": {\r\n			"name": "GitLab Project Group",\r\n			"searchable": "true",\r\n			"sortable": "true",\r\n			"external": "true",\r\n			"externalOptions": {\r\n				"externalTable": "tbl_employee",\r\n				"externalColumn": "emp_main_id",\r\n				"externalShowColumn": "first_name"\r\n			},\r\n			"editoptions": {\r\n				"type": "select",\r\n				"source": "Cmshelper::getProjectGroupCombo",\r\n				"default": "40",\r\n				"source_type": "function",\r\n				"label": "GitLab Project Group",\r\n				"class": "select"\r\n			}\r\n		},\r\n		"project_status": {\r\n			"name": "Project status",\r\n			"editoptions": {\r\n				"type": "select",\r\n				"source": {\r\n					"New": "New",\r\n					"Inprogress": "Inprogress",\r\n					"Inactive": "Inactive",\r\n					"Completed": "Completed",\r\n					"Hold": "Hold",\r\n					"Cancelled": "Cancelled",\r\n					"Operational": "Operational"\r\n				},\r\n				"default": "",\r\n				"source_type": "array",\r\n				"label": "Project status",\r\n				"class": "select",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		}\r\n	},\r\n	"relations": {\r\n		"teams": {\r\n			"name": "team",\r\n			"section": "project_team",\r\n			"child_table": "tbl_project_team",\r\n			"parent_join_column": "project_id",\r\n			"child_join_column": "project_id"\r\n		},\r\n		"modules": {\r\n			"name": "module",\r\n			"section": "project_module",\r\n			"child_table": "tbl_project_module",\r\n			"parent_join_column": "project_id",\r\n			"child_join_column": "project_id"\r\n		},\r\n		"milestones": {\r\n			"name": "milestones",\r\n			"section": "project_milestone",\r\n			"child_table": "tbl_project_milestone",\r\n			"parent_join_column": "project_id",\r\n			"child_join_column": "project_id"\r\n		},\r\n		"documents": {\r\n			"name": "documents",\r\n			"section": "project_documents",\r\n			"child_table": "tbl_project_document",\r\n			"parent_join_column": "project_id",\r\n			"child_join_column": "project_id"\r\n		},\r\n		"timesheets": {\r\n			"name": "timesheets",\r\n			"section": "project_timesheets",\r\n			"child_table": "tbl_project_timesheets",\r\n			"parent_join_column": "project_id",\r\n			"child_join_column": "project_id"\r\n		}\r\n	},\r\n	"customActions": {\r\n		"beforeAddRecord": "Cmshelper::validateEngine",\r\n		"beforeEditRecord": "Cmshelper::validateEngine",\r\n		"afterEditRecord": "Cmshelper::updateProjectNameDependencies",\r\n		"afterAddRecord": "Cmshelper::updateProjectDetails",\r\n		"beforeDeleteRecord": "Cmshelper::validateProjectBeforeDelete"\r\n	},\r\n	"opertations": [\r\n		"add",\r\n		"edit",\r\n		"view",\r\n		"delete"\r\n	],\r\n	"operationLabel": {\r\n		"addLabel": "Add Project",\r\n		"editTitle": "Edit Project",\r\n		"viewTitle": "View Project Details",\r\n		"deleteTitle": "Delete Project"\r\n	}\r\n}', '1', 0, 'all', 'admin', 'main', NULL),
(179, 16, 'Performance Report', 'performance_log', 'tbl_project_tasks', '{\r\n"reportPanel": "true",\r\n"reportTitle": "Performance Report ",\r\n"defaultDateRange": "weekly",\r\n"dateRange": [\r\n"weekly",\r\n"monthly",\r\n"custom"\r\n],\r\n"dateField": "created_on",\r\n"dataSource": {\r\n"queryFunction": "Cmshelper::getPerformanceLogQuery"\r\n},\r\n"export": "true",\r\n"keyColumn": "user_id",\r\n"listColumns": [\r\n"staff_name",\r\n"pv",\r\n"completedtasks",\r\n"bugs",\r\n"overlog",\r\n"avgapmstime",\r\n"avgcheckintime",\r\n"avgintime",\r\n"leaves",\r\n"lops"\r\n],\r\n"exportColumns": [\r\n"staff_name",\r\n"pv",\r\n"completedtasks",\r\n"bugs",\r\n"overlog",\r\n"avgapmstime",\r\n"avgcheckintime",\r\n"avgintime",\r\n"leaves",\r\n"lops"\r\n],\r\n"detailColumns": [\r\n"staff_name",\r\n"pv",\r\n"completedtasks",\r\n"bugs",\r\n"overlog",\r\n"avgapmstime",\r\n"avgcheckintime",\r\n"avgintime",\r\n"leaves",\r\n"lops"\r\n],\r\n"columns": {\r\n"staff_name": {\r\n"name": "Name",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"pv": {\r\n"name": "PV",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"completedtasks": {\r\n"name": "Comp. Task",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"bugs": {\r\n"name": "Bugs",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"overlog": {\r\n"name": "Overlog",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n\r\n"avgapmstime": {\r\n"name": "APMS TIME",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"avgintime": {\r\n"name": "IN TIME",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"avgcheckintime": {\r\n"name": "Checkin Time",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"leaves": {\r\n"name": "Leaves",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n},\r\n"lops": {\r\n"name": "Lops",\r\n"type": "text",\r\n"sortable": "true",\r\n"searchable": "searchable"\r\n}\r\n\r\n}\r\n}', '1', 4, 'all', 'admin', 'main', NULL),
(180, 19, 'MIssed Ticket Entry ', 'missing_ticket_entry', 'tbl_attendance', '{ "customAction": "true", "controller": "Cmshelper", "method": "missing_ticket_entry", "module": "default" }', '1', 1, 'all', 'admin', 'main', NULL);
INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(102, 13, 'Employee Management', 'empadd', 'cms_users', '{\n	"keyColumn": "id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Employees: ",\n	"handleFile": "true",\n	"detailHeaderColumns": [\n		"emp_code"\n	],\n	"breadCrumbColumn": "emp_code",\n	"orderBy": {\n		"id": "DESC"\n	},\n	"includeJsFiles": [\n		"add_employee.js"\n	],\n	"where": " cms_users.visibility=''1'' ",\n	"combineTables": {\n		"tbl_employee": {\n			"combineColumns": [\n				"emp_code",\n				"first_name",\n				"last_name",\n				"department_id",\n				"designation_id",\n				"profile_pic",\n				"reporting_id",\n				"team_id",\n				"gender",\n				"dob",\n				"religion",\n				"blood_group",\n				"marital_status",\n				"family_details",\n				"fathers_name",\n				"paddress",\n				"caddress",\n				"phone",\n				"mobile",\n				"location",\n				"official_mail",\n				"yahoo_mail",\n				"personal_mail",\n				"technical_skills",\n				"bank_name",\n				"account_no",\n				"pan_no",\n				"pf_no",\n				"initial_salary",\n				"billing_rate",\n				"joining_date",\n				"appriasal_date",\n				"added_date",\n				"relieving_date",\n				"emergency_contact_name",\n				"emergency_contact_phone",\n				"active",\n				"exclude_status"\n			],\n			"combineReferenceColumn": "emp_main_id",\n			"combineTableForiegnKey": "id",\n			"isPrimaryKey": "true"\n		}\n	},\n	"listColumns": [\n		"role_id",\n		"status"\n	],\n	"showColumns": [\n		"id",\n		"role_id",\n		"username",\n		"password",\n		"emp_code",\n		"first_name",\n		"last_name",\n		"department_id",\n		"designation_id",\n		"reporting_id",\n		"team_id",\n		"gender",\n		"dob",\n		"religion",\n		"blood_group",\n		"marital_status",\n		"family_details",\n		"fathers_name",\n		"paddress",\n		"caddress",\n		"phone",\n		"mobile",\n		"location",\n		"official_mail",\n		"yahoo_mail",\n		"personal_mail",\n		"technical_skills",\n		"bank_name",\n		"account_no",\n		"pan_no",\n		"pf_no",\n		"initial_salary",\n		"billing_rate",\n		"joining_date",\n		"appriasal_date",\n		"added_date",\n		"relieving_date",\n		"emergency_contact_name",\n		"emergency_contact_phone",\n		"active",\n		"profile_pic",\n		"exclude_status"\n	],\n	"detailColumns": [\n		"id",\n		"role_id",\n		"username",\n		"password",\n		"emp_code",\n		"department_id",\n		"designation_id",\n		"reporting_id",\n		"team_id",\n		"first_name",\n		"last_name",\n		"gender",\n		"dob",\n		"religion",\n		"blood_group",\n		"marital_status",\n		"family_details",\n		"fathers_name",\n		"paddress",\n		"caddress",\n		"phone",\n		"mobile",\n		"location",\n		"official_mail",\n		"yahoo_mail",\n		"personal_mail",\n		"technical_skills",\n		"bank_name",\n		"account_no",\n		"pan_no",\n		"pf_no",\n		"initial_salary",\n		"billing_rate",\n		"joining_date",\n		"appriasal_date",\n		"added_date",\n		"relieving_date",\n		"emergency_contact_name",\n		"emergency_contact_phone",\n		"active",\n		"status",\n		"profile_pic",\n		"exclude_status"\n	],\n	"columns": {\n		"id": {\n			"name": "ID",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"username": {\n			"name": "UserNAME",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"password": {\n			"name": "PASSWORD",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"role_id": {\n			"name": "ROLE",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "cms_roles",\n				"externalColumn": "role_id",\n				"externalShowColumn": "role_name"\n			},\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getRolesCombo",\n				"source_type": "function",\n				"label": "Role",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"emp_main_id": {\n			"name": "EMP ID",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"emp_code": {\n			"name": "EMP CODE",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"onEdit": "disable",\n				"type": "textbox",\n				"label": "EmployeeCode",\n				"class": "textbox",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"department_id": {\n			"name": "DEPARTMENT",\n			"sortable": "true",\n			"customColumn": "true",\n			"customaction": "Cmshelper::getDepName",\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getDepartmentCombo",\n				"source_type": "function",\n				"label": "Department",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"designation_id": {\n			"name": "DESIGNATION",\n			"sortable": "true",\n			"customColumn": "true",\n			"customaction": "Cmshelper::getDesigName",\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getDesignationCombo",\n				"source_type": "function",\n				"label": "Designation",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"reporting_id": {\n			"name": "REPORTING PERSON",\n			"sortable": "true",\n			"customColumn": "true",\n			"customaction": "Cmshelper::getReportName",\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getUsernameCombo",\n				"default": "",\n				"source_type": "function",\n				"label": "Reporting Person",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"team_id": {\n			"name": "TEAM",\n			"sortable": "true",\n			"customColumn": "true",\n			"customaction": "Cmshelper::getTeamName",\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getTeamsCombo",\n				"default": "",\n				"source_type": "function",\n				"label": "Team",\n				"class": "select"\n			}\n		},\n		"first_name": {\n			"name": "FIRST NAME",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "First Name",\n				"class": "textbox",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"last_name": {\n			"name": "LAST NAME",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Last Name",\n				"class": "textbox"\n			}\n		},\n		"gender": {\n			"name": "Gender",\n			"editoptions": {\n				"type": "radio",\n				"label": "Gender",\n				"class": "radio",\n				"default": "no",\n				"enumvalues": {\n					"M": "Male",\n					"F": "Female"\n				},\n				"options": {\n					"M": "Male",\n					"F": "Female"\n				}\n			}\n		},\n		"dob": {\n			"name": "DOB",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y",\n			"editoptions": {\n				"dbFormat": "date",\n				"displayFormat": "m/d/Y",\n				"type": "datepicker",\n				"label": "DOB",\n				"class": ""\n			}\n		},\n		"religion": {\n			"name": "RELIGION",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Religion",\n				"class": "textbox"\n			}\n		},\n		"blood_group": {\n			"name": "Status",\n			"editoptions": {\n				"type": "select",\n				"source": {\n					"O+ve": "O+ve",\n					"O-ve": "O-ve",\n					"A+ve": "A+ve",\n					"A-ve": "A-ve",\n					"B+ve": "B+ve",\n					"B-ve": "B-ve",\n					"AB+ve": "AB+ve",\n					"AB-ve": "AB-ve"\n				},\n				"default": "Select",\n				"source_type": "array",\n				"label": "Blood Group",\n				"class": "select",\n				"enumvalues": {\n					"O+ve": "O+ve",\n					"O-ve": "O-ve",\n					"A+ve": "A+ve",\n					"A-ve": "A-ve",\n					"B+ve": "B+ve",\n					"B-ve": "B-ve",\n					"AB+ve": "AB+ve",\n					"AB-ve": "AB-ve"\n				}\n			}\n		},\n		"marital_status": {\n			"name": "Marital Status",\n			"sortable": "true",\n			"editoptions": {\n				"type": "radio",\n				"label": "Marital Status",\n				"class": "inline",\n				"default": "no",\n				"enumvalues": {\n					"M": "Married",\n					"U": "Unmarried"\n				},\n				"options": {\n					"M": "Married",\n					"U": "Unmarried"\n				}\n			}\n		},\n		"family_details": {\n			"name": "FAMILY DETAILS",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Family Details",\n				"class": "textarea"\n			}\n		},\n		"fathers_name": {\n			"name": "FATHER''S NAME",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Father''s Name",\n				"class": "textbox"\n			}\n		},\n		"paddress": {\n			"name": "PERMANENT ADDRESS",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Permanent Address",\n				"class": "textarea"\n			}\n		},\n		"caddress": {\n			"name": "CONTACT ADDRESS",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Contact Address",\n				"class": "textarea"\n			}\n		},\n		"phone": {\n			"name": "PHONE",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Phone",\n				"class": "textbox"\n			}\n		},\n		"mobile": {\n			"name": "MOBILE",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Mobile",\n				"class": "textbox"\n			}\n		},\n		"location": {\n			"name": "LOCATION",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Location",\n				"class": "textbox"\n			}\n		},\n		"official_mail": {\n			"name": "OFFICIAL EMAIL",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Official Email",\n				"class": "textbox"\n			}\n		},\n		"yahoo_mail": {\n			"name": "YAHOO EMAIL",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Yahoo Email",\n				"class": "textbox",\n				"hint": "(For internal use)"\n			}\n		},\n		"personal_mail": {\n			"name": "PERSONAL EMAIL",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Personal Email",\n				"class": "textbox"\n			}\n		},\n		"technical_skills": {\n			"name": "TECHNICAL SKILLS",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Technical Skills",\n				"class": "textarea"\n			}\n		},\n		"joining_date": {\n			"name": "JOINEDDATE",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y",\n			"editoptions": {\n				"dbFormat": "date",\n				"displayFormat": "m/d/Y",\n				"type": "datepicker",\n				"label": "JoinedDate",\n				"class": "",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"bank_name": {\n			"name": "BANK NAME",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Bank Name",\n				"class": "textbox"\n			}\n		},\n		"account_no": {\n			"name": "ACCOUNT NO",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Account No",\n				"class": "textbox"\n			}\n		},\n		"pan_no": {\n			"name": "PAN NO",\n			"editoptions": {\n				"type": "textbox",\n				"label": "PAN Card No",\n				"class": "textbox"\n			}\n		},\n		"pf_no": {\n			"name": "PF NO",\n			"editoptions": {\n				"type": "textbox",\n				"label": "PF No",\n				"class": "textbox"\n			}\n		},\n		"initial_salary": {\n			"name": "INITIAL SALARY",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Initial Salary",\n				"class": "textbox"\n			}\n		},\n		"billing_rate": {\n			"name": "BILLING RATE",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Billing Rate(per hour)",\n				"class": "textbox"\n			}\n		},\n		"appriasal_date": {\n			"name": "LAST APPRIASAL DATE",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y",\n			"editoptions": {\n				"dbFormat": "date",\n				"displayFormat": "m/d/Y",\n				"type": "datepicker",\n				"label": "Last Salary Appriasal Date"\n			}\n		},\n		"added_date": {\n			"name": "ADDEDDATE",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y"\n		},\n		"relieving_date": {\n			"name": "RELIEVING DATE",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y",\n			"editoptions": {\n				"dbFormat": "date",\n				"displayFormat": "m/d/Y",\n				"type": "datepicker",\n				"label": "Relieving Date"\n			}\n		},\n		"emergency_contact_name": {\n			"name": "EMERGENCY CONTACT NAME",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Emergency Name",\n				"class": "textbox"\n			}\n		},\n		"emergency_contact_phone": {\n			"name": "EMERGENCY CONTACT PHONE",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Emergency Phone",\n				"class": "textbox"\n			}\n		},\n		"status": {\n			"name": "STATUS",\n			"listoptions": {\n				"type": "button",\n				"customaction": "Cmshelper::changeEmployeeActiveStatus",\n				"enumvalues": {\n					"active": "Active",\n					"deleted": "Inactive"\n				},\n				"buttonColors": {\n					"active": "green",\n					"deleted": "red"\n				}\n			},\n			"editoptions": {\n				"type": "select",\n				"source": {\n					"active": "Active",\n					"deleted": "Inactive"\n				},\n				"default": "active",\n				"source_type": "array",\n				"label": "Status",\n				"class": "select",\n				"enumvalues": {\n					"active": "Active",\n					"deleted": "Inactive"\n				},\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"active": {\n			"name": "Active",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"profile_pic": {\n			"name": "PHOTO",\n			"customColumn": "true",\n			"customaction": "Cmshelper::getProfilePic",\n			"editoptions": {\n				"type": "file",\n				"label": "PHOTO",\n				"class": "file",\n				"hint": "Upload file for this section"\n			}\n		},\n		"exclude_status": {\n			"name": "Exclude Status",\n			"editoptions": {\n				"type": "checkbox",\n				"label": "Exclude Status",\n				"class": "inline",\n				"default": "0",\n				"enumvalues": {\n					"0": "No",\n					"1": "Yes"\n				}\n			}\n		}\n	},\n	"customActions": {\n		"beforeAddRecord": "Cmshelper::checkEmpAddCondtn",\n		"afterAddRecord": "Cmshelper::setLastEmpAdd",\n		"afterDeleteRecord": "Cmshelper::afterDeleteEmployee",\n		"beforeEditRecord": "Cmshelper::checkEmpEditCondtn"\n	},\n	"opertations": [\n		"add",\n		"view",\n		"edit",\n		"delete"\n	],\n	"operationLabel": {\n		"addLabel": "AddEmployee",\n		"editTitle": "EditEmployee",\n		"viewTitle": "ViewEmployeeDetails",\n		"deleteTitle": "DeleteEmployee"\n	}\n}', '1', 0, 'all', 'admin', 'main', NULL),
(108, 13, 'Leaves Attendance', 'leavecount', 'tbl_attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "leavecount", "module": "default" }', '1', 0, 'all', 'admin', 'main', NULL),
(116, 16, 'modules', 'project_module', 'tbl_project_module', '{\n    "keyColumn": "module_id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Team: ",\n    "handleFile": "true",\n    "detailHeaderColumns": [\n        "project_id"\n    ],\n    "breadCrumbColumn": "project_id",\n    "orderBy": {\n        "module_id": "DESC"\n    },\n    "listColumns": [\n        "project_id",\n        "module_title",\n        "module_owner",\n        "module_estimated_time",\n        "created_by",\n        "module_estimated_completion_date"\n    ],\n    "showColumns": [\n        "module_id",\n        "project_id",\n        "module_title",\n        "module_owner",\n        "module_estimated_time",\n        "created_by",\n        "module_estimated_completion_date"\n    ],\n    "detailColumns": [\n        "module_id",\n        "project_id",\n        "module_title",\n        "module_owner",\n        "module_estimated_time",\n        "created_by",\n        "module_estimated_completion_date",\n        "total_module_task_time",\n        "total_module_tasks",\n        "module_status"\n    ],\n    "columns": {\n        "module_id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "project_id": {\n            "name": "Project",\n            "searchable": "true",\n            "sortable": "true",\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_projects",\n                "externalColumn": "project_id",\n                "externalShowColumn": "project_title"\n            }\n        },\n        "module_title": {\n            "name": "module name",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Module name",\n                "class": "textbox",\n                "hint": "project Title",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "module_estimated_time": {\n            "name": "module estimated time",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Module estimated time",\n                "class": "textbox",\n                "hint": "Module estimated time",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "module_estimated_completion_date": {\n            "name": "module estimated completion date",\n            "searchable": "true",\n            "sortable": "true",\n            "dbFormat": "date",\n            "displayFormat": "m/d/Y",\n            "editoptions": {\n                "dbFormat": "date",\n                "displayFormat": "m/d/Y",\n                "type": "datepicker",\n                "label": "Module estimated completion date",\n                "class": "",\n                "hint": "Module estimated completion date",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "total_module_task_time": {\n            "name": "Total Module Task Assigned time"\n        },\n        "total_module_tasks": {\n            "name": "Module Task Count"\n        },\n        "module_status": {\n            "name": "Module Status"\n        },\n        "module_owner": {\n            "name": "owner",\n            "searchable": "true",\n            "sortable": "true",\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_employee",\n                "externalColumn": "emp_main_id",\n                "externalShowColumn": "first_name"\n            },\n            "editoptions": {\n                "type": "select",\n                "source": "Cmshelper::getProjectTeamUsernameCombo",\n                "default": "",\n                "source_type": "function",\n                "label": "Owner",\n                "class": "select",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "created_by": {\n            "name": "Total Logged Hours",\n            "customColumn": "true",\n            "customaction": "Cmshelper::gettotalloggedtime"\n        }\n    },\n    "relations": {\n        "tasks": {\n            "name": "tasks",\n            "section": "project_task",\n            "child_table": "tbl_project_tasks",\n            "parent_join_column": "module_id",\n            "child_join_column": "module_id"\n        },\n        "bugs": {\n            "name": "bugs",\n            "section": "project_bug",\n            "child_table": "tbl_project_bugs",\n            "parent_join_column": "module_id",\n            "child_join_column": "module_id"\n        }\n    },\n    "reference": {\n        "referenceTable": "tbl_projects",\n        "referenceColumn": "project_id",\n        "referenceTableForiegnKey": "project_id"\n    },\n    "customActions": {\n        "beforeAddRecord": "Cmshelper::validateEngine",\n        "beforeEditRecord": "Cmshelper::validateEngine",\n        "afterEditRecord": "Cmshelper::updateModuleInfo",\n        "afterAddRecord": "Cmshelper::increaseModuleCount",\n        "beforeDeleteRecord": "Cmshelper::decreaseModuleCount"\n    },\n    "opertations": [\n        "add",\n        "view",\n        "edit",\n        "delete"\n    ],\n    "operationLabel": {\n        "addLabel": "Add Module",\n        "editTitle": "Edit Module",\n        "viewTitle": "View Module Details",\n        "deleteTitle": "Delete Module"\n    }\n}', '0', 2, 'all', 'admin', 'main', NULL),
(117, 16, 'milestones', 'project_milestone', 'tbl_project_milestone', '{\r\n    "keyColumn": "milestone_id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Team: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [ \r\n        "project_id"\r\n    ],\r\n    "breadCrumbColumn": "project_id",\r\n    "orderBy": {\r\n        "milestone_id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "project_id",\r\n        "milestone_owner",\r\n        "milestone_title",\r\n        "milestone_description",\r\n        "milestone_estimated_completion_date",\r\n        "is_dependent",\r\n        "milestone_status"\r\n    ],\r\n    "showColumns": [\r\n        "milestone_id",\r\n        "project_id",\r\n        "milestone_owner",\r\n        "milestone_title",\r\n        "milestone_description",\r\n        "milestone_estimated_completion_date",\r\n        "is_dependent",\r\n        "milestone_status"\r\n    ],\r\n    "detailColumns": [\r\n        "milestone_id",\r\n        "project_id",\r\n        "milestone_owner",\r\n        "milestone_title",\r\n        "milestone_description",\r\n        "milestone_estimated_completion_date",\r\n        "is_dependent",\r\n        "milestone_status"\r\n    ],\r\n    "columns": {\r\n        "milestone_id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "project_id": {\r\n            "name": "Project",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_projects",\r\n                "externalColumn": "project_id",\r\n                "externalShowColumn": "project_title"\r\n            }\r\n        },\r\n        "milestone_owner": {\r\n            "name": "Team member",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_employee",\r\n                "externalColumn": "emp_main_id",\r\n                "externalShowColumn": "first_name"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getProjectTeamUsernameCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "Team member",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "milestone_estimated_completion_date": {\r\n            "name": "milestone estimated completion date",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "dbFormat": "date",\r\n            "displayFormat": "m/d/Y",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "m/d/Y",\r\n                "type": "datepicker",\r\n                "label": "Milestone estimated completion date",\r\n                "class": "",\r\n                "hint": "milestone estimated completion date",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "milestone_status": {\r\n            "name": "Milestone Status",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "active": "active",\r\n                    "inactive": "inactive",\r\n                    "completed": "completed"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Milestone Status",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "milestone_title": {\r\n            "name": "Milestone Title",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Milestone title",\r\n                "class": "textbox",\r\n                "hint": "project Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "milestone_description": {\r\n            "name": "Description",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Milestone description",\r\n                "class": "textbox",\r\n                "hint": "project Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "is_dependent": {\r\n            "name": "is Mandatory",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "checkbox",\r\n                "label": "Mandatory",\r\n                "class": "inline",\r\n                "default": "0",\r\n                "enumvalues": {\r\n                    "0": "No",\r\n                    "1": "Yes"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "reference" : { \r\n        "referenceTable" : "tbl_projects",\r\n        "referenceColumn" : "project_id",\r\n        "referenceTableForiegnKey" : "project_id"\r\n    },\r\n    "customActions": {\r\n        "beforeAddRecord": "Cmshelper::validateEngine",\r\n        "beforeEditRecord": "Cmshelper::validateEngine",\r\n        "afterAddRecord": "Cmshelper::increaseMilestoneCount",\r\n        "beforeDeleteRecord": "Cmshelper::decreaseMilestoneCount" \r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Milestone",\r\n        "editTitle": "Edit Milestone",\r\n        "viewTitle": "View Milestone Details",\r\n        "deleteTitle": "Delete Milestone"\r\n    }\r\n}', '0', 3, 'all', 'admin', 'main', NULL),
(106, 1, 'Business', 'hddashboard', 'tbl_lookup', '{\n    "includeJsFiles": [\n        "dashboard.js"\n    ],\n    "dashboardPanel": "true",\n    "listingPanel": "true",\n    "listinPanelRow": "9",\n    "listingPanel1": {\n        "columns": "2",\n        "column1": {\n            "title": "Check In / Check Out",\n            "fetchValue": "Cmshelper::checkInOutNew",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        },\n        "column2": {\n            "title": "Employee Info",\n            "fetchValue": "Cmshelper::employeeInfo",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel2": {\n        "columns": "1",\n        "column1": {\n            "title": "Project Details",\n            "titlelink": "",\n            "titlelinkSection": "",\n            "fetchValue": "Cmshelper::adminDashboardProjectDetails",\n            "listcolumns": {\n                "project_title": {\n                    "name": "Project Name"\n                },\n                "project_owner": {\n                    "name": "Project Owner"\n                },\n                "project_delivery_date": {\n                    "name": "Project Delivery Date"\n                },\n                "project_time": {\n                    "name": "Project Time (in days)"\n                },\n                "project_effort": {\n                    "name": "Project Effort (in hours)"\n                },\n                "view_details": {\n                    "name": "Project Profile"\n                }\n            }\n        }\n        \n    },\n    "listingPanel3": {\n        "columns": "1",\n        "column1": {\n            "title": "Basic Info",\n            "fetchValue": "Cmshelper::fetchDashboardDisplayCounts",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel4": {\n        "columns": "1",\n        "column1": {\n            "title": "My Tasks To Do",\n            "fetchValue": "Cmshelper::getMyImportantTasks",\n            "listcolumns": {\n                "title": {\n                    "name" : "Task To Do"\n                }\n            }\n        }\n    },\n    "listingPanel5": {\n        "columns": "1",\n        "column1": {\n            "title": "My Bugs To Do",\n            "fetchValue": "Cmshelper::getMyImportantBugs",\n            "listcolumns": {\n                "title": {\n                    "name" : "Bugs To Do"\n                }\n            }\n        }\n    },\n    "listingPanel6": {\n        "columns": "1",\n        "column1": {\n            "title": "Upcoming Milestone",\n            "fetchValue": "Cmshelper::getMyImportantMilestones",\n            "listcolumns": {\n                "title": {\n                    "name" : "Milestones To Do"\n                }\n            }\n        }\n    },\n    "listingPanel7": {\n        "columns": "2",\n        "column1": {\n            "title": "Recent News",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getNewsUrl",\n            "fetchValue": "Cmshelper::fetchRecentNews",\n            "listcolumns": {\n                "title": {\n                    "name": "News Title"\n                },\n                "description": {\n                    "name": "Description"\n                },\n                "date": {\n                    "name": "Added Date"\n                }\n            }\n        },\n        "column2": {\n            "title": "Leave Requests",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getLeavesHDUrl",\n            "fetchValue": "Cmshelper::fetchRecentHDLeaves",\n            "listcolumns": {\n                "username": {\n                    "name": "Name"\n                },\n                "leave_type": {\n                    "name": "Leave Type"\n                },\n                "from_date": {\n                    "name": "Date"\n                }\n            }\n        }\n    },\n    "listingPanel8": {\n        "columns": "2",\n        "column1": {\n            "title": "Leave Summary",\n            "fetchValue": "Cmshelper::fetchHolidaySummary",\n            "listcolumns": {\n                "leave_type": {\n                    "name": "Leave"\n                },\n                "taken": {\n                    "name": "Taken"\n                },\n                "bal": {\n                    "name": "Left"\n                }\n            }\n        },\n        "column2": {\n            "title": "Upcoming Holidays",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getHolidaysUrl",\n            "fetchValue": "Cmshelper::fetchRecentHolidays",\n            "listcolumns": {\n                "title": {\n                    "name": "Title"\n                },\n                "date": {\n                    "name": "Date"\n                }\n            }\n        }\n    },\n    "listingPanel9": {\n        "columns": "2",\n        "column1": {\n            "title": "BirthDays",\n            "fetchValue": "Cmshelper::fetchBirthdays",\n            "listcolumns": {\n                "detail": {}\n            }\n        },\n        "column2": {\n            "title": "Team Leave",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getLeavesTeamUrl",\n            "fetchValue": "Cmshelper::fetchRecentTeamLeaves",\n            "listcolumns": {\n                "username": {\n                    "name": "Name"\n                },\n                "leave_type": {\n                    "name": "Leave Type"\n                },\n                "from_date": {\n                    "name": "Date"\n                }\n            }\n        }\n    }\n}\n', '1', 2, 'all', 'admin', 'main', NULL),
(107, 13, 'Leave Offset', 'leavesoffset', 'tbl_leaves_offset', '{ "keyColumn": "id", "wildsearch": "true", "detailHeaderColumnPrefix": "Leaves OffSet: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "emp_id", "orderBy": { "id": "DESC" }, "listColumns": [ "emp_id", "cs_leave", "p_leave" ], "showColumns": [ "id", "emp_id", "cs_leave", "p_leave" ], "detailColumns": [ "id", "emp_id", "cs_leave", "p_leave" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "emp_id": { "name": "USERNAME", "searchable": "true", "sortable": "true", "external": "true", "externalOptions": { "externalTable": "tbl_employee", "externalColumn": "emp_main_id", "externalShowColumn": "first_name" }, "editoptions": { "type": "select", "source": "Cmshelper::getUsernameCombo", "default": "", "source_type": "function", "label": "User name", "class": "select", "validations": [ "required" ] } }, "cs_leave": { "name": "Casual", "editoptions": { "type": "textbox", "label": "Casual", "class": "textbox" } }, "p_leave": { "name": "Privilege", "editoptions": { "type": "textbox", "label": "Privilege", "class": "textbox" } }, "c_frwd": { "name": "Carry", "editoptions": { "type": "textbox", "label": "Carry", "class": "textbox" } }, "spl_leave": { "name": "Special", "editoptions": { "type": "textbox", "label": "Special", "class": "textbox" } } }, "customActions": { "afterAddRecord": "Cmshelper::checkLeaveOffset", "beforeAddRecord": "Cmshelper::beforeAddLeaveOffset", "beforeDeleteRecord": "Cmshelper::beforeDeleteOffset" }, "opertations": [ "add", "view", "delete" ], "operationLabel": { "addLabel": "Add Offset", "viewTitle": "View Offset Details", "deleteTitle": "Delete Offset" } }', '1', 0, 'all', 'admin', 'main', NULL),
(118, 16, 'tasks', 'project_task', 'tbl_project_tasks', '{\r\n"keyColumn": "task_id",\r\n"wildsearch": "true",\r\n"detailHeaderColumnPrefix": "Team: ",\r\n"handleFile": "true",\r\n"detailHeaderColumns": [\r\n"module_id"\r\n],\r\n"breadCrumbColumn": "module_id",\r\n"orderBy": {\r\n"task_id": "DESC"\r\n},\r\n"listColumns": [\r\n"module_id",\r\n"task_owner",\r\n"created_by",\r\n"task_title",\r\n"task_description",\r\n"task_estimated_time",\r\n"task_estimated_completion_date",\r\n"hold"\r\n],\r\n"showColumns": [\r\n"task_id",\r\n"module_id",\r\n"task_owner",\r\n"created_by",\r\n"task_title",\r\n"task_description",\r\n"task_estimated_time",\r\n"task_estimated_completion_date",\r\n"hold"\r\n],\r\n"detailColumns": [\r\n"task_id",\r\n"module_id",\r\n"task_owner",\r\n"created_by",\r\n"task_title",\r\n"task_description",\r\n"task_estimated_time",\r\n"task_estimated_completion_date",\r\n"hold"\r\n],\r\n"columns": {\r\n"task_id": {\r\n"name": "ID",\r\n"editoptions": {\r\n"type": "hidden"\r\n}\r\n},\r\n"module_id": {\r\n"name": "Module",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"external": "true",\r\n"externalOptions": {\r\n"externalTable": "tbl_project_module",\r\n"externalColumn": "module_id",\r\n"externalShowColumn": "module_title"\r\n}\r\n},\r\n"task_owner": {\r\n"name": "assigned to",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"external": "true",\r\n"externalOptions": {\r\n"externalTable": "tbl_employee",\r\n"externalColumn": "emp_main_id",\r\n"externalShowColumn": "first_name"\r\n},\r\n"editoptions": {\r\n"type": "select",\r\n"source": "Cmshelper::getProjectTeamUsernameCombo",\r\n"default": "",\r\n"source_type": "function",\r\n"label": "Assigned to",\r\n"class": "select hidden_field"\r\n}\r\n},\r\n"created_by": {\r\n"name": "assigned by",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"external": "true",\r\n"externalOptions": {\r\n"externalTable": "tbl_employee",\r\n"externalColumn": "emp_main_id",\r\n"externalShowColumn": "first_name"\r\n}\r\n},\r\n"task_title": {\r\n"name": "Title",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"editoptions": {\r\n"type": "textbox",\r\n"label": "Task Title",\r\n"class": "textbox hidden_field",\r\n"hint": "project Title",\r\n"validations": [\r\n"required"\r\n]\r\n}\r\n},\r\n"task_estimated_completion_date": {\r\n"name": "Task Completion Date",\r\n"dbFormat": "date",\r\n"displayFormat": "m/d/Y",\r\n"editoptions": {\r\n"dbFormat": "date",\r\n"displayFormat": "m/d/Y",\r\n"type": "datepicker",\r\n"label": "Task Completion Date",\r\n"class": "",\r\n"hint": "Task Completion Date",\r\n"validations": [\r\n"required"\r\n]\r\n}\r\n},\r\n"task_estimated_time": {\r\n"name": "Estimated Time",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"editoptions": {\r\n"type": "textbox",\r\n"label": "Task Estimated Time",\r\n"class": "textbox hidden_field",\r\n"hint": "Estimated Time",\r\n"validations": [\r\n"required",\r\n"numeric"\r\n]\r\n}\r\n},\r\n"task_description": {\r\n"name": "Description",\r\n"searchable": "true",\r\n"sortable": "true",\r\n"editoptions": {\r\n"type": "textarea",\r\n"label": "Description",\r\n"class": "textbox hidden_field",\r\n"hint": "project Title",\r\n"validations": [\r\n"required"\r\n]\r\n}\r\n},\r\n\r\n"hold": {\r\n"name": "Hold",\r\n"sortable": "true",\r\n\r\n"editoptions": {\r\n"type": "checkbox",\r\n"label": "Hold",\r\n"class": "inline",\r\n"default": "0",\r\n"enumvalues": {\r\n"0": "",\r\n"1": "On Hold"\r\n}\r\n}\r\n}\r\n},\r\n"relations": {\r\n"Logs": {\r\n"name": "Logs",\r\n"section": "project_task_logs",\r\n"child_table": "tbl_project_task_logs",\r\n"parent_join_column": "task_id",\r\n"child_join_column": "task_id"\r\n}\r\n},\r\n"reference": {\r\n"referenceTable": "tbl_project_module",\r\n"referenceColumn": "module_id",\r\n"referenceTableForiegnKey": "module_id"\r\n},\r\n"customActions": {\r\n"beforeAddRecord": "Cmshelper::validateEngine",\r\n"afterAddRecord": "Cmshelper::increaseTaskCount",\r\n"beforeDeleteRecord": "Cmshelper::decreaseTaskCount",\r\n"beforeEditRecord": "Cmshelper::updateTaskTime"\r\n},\r\n"opertations": [\r\n"add",\r\n"edit",\r\n"view",\r\n"delete"\r\n],\r\n"operationLabel": {\r\n"addLabel": "Add Task",\r\n"editTitle": "Hold Task",\r\n"viewTitle": "View Task Details",\r\n"deleteTitle": "Delete Task"\r\n}\r\n}', '0', 4, 'all', 'admin', 'main', NULL),
(176, 16, 'Developer Documents', 'dev_documents', 'tbl_documents', '{\n	"keyColumn": "document_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Document: ",\n	"handleFile": "true",\n	"detailHeaderColumns": [\n		"document_id"\n	],\n	"breadCrumbColumn": "document_id",\n	"orderBy": {\n		"document_id": "DESC"\n	},\n	"listColumns": [\n		"document_name",\n		"document_image",\n		"description"\n\n	],\n	"showColumns": [\n		"document_name",\n		"document_image",\n		"description"\n	],\n	"detailColumns": [\n		"document_name",\n		"document_image",\n		"description"\n	],\n	"columns": {\n		"document_name": {\n			"name": "Document Name",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Document name",\n				"class": "textbox",\n				"hint": "Document name",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"document_image": {\n			"name": "Document",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_files",\n				"externalColumn": "file_id",\n				"externalShowColumn": "file_id"\n			},\n			"editoptions": {\n				"type": "file",\n				"label": "Upload document",\n				"class": "file"\n			}\n		},\n		"description": {\n			"name": "Description",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Description",\n				"class": "textarea",\n				"hint": "Description",\n				"validations": [\n					"required"\n				]\n			}\n		}\n	},\n\n	"opertations": [\n\n		"view"\n	],\n	"operationLabel": {\n\n		"viewTitle": "View Document"\n\n	}\n}', '1', 5, 'all', 'admin', 'main', NULL),
(143, 16, 'Projects', 'projects_qa', 'tbl_projects', '{\n	"keyColumn": "project_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Project: ",\n	"handleFile": "true",\n	"detailHeaderColumns": [\n		"project_title"\n	],\n	"breadCrumbColumn": "project_title",\n	"orderBy": {\n		"project_id": "DESC"\n	},\n	"listColumns": [\n		"project_title",\n		"project_category",\n		"owner",\n		"project_start_date",\n		"estimated_completed_date"\n	],\n	"showColumns": [\n		"project_id",\n		"project_title",\n		"project_category",\n		"owner",\n		"project_start_date",\n		"estimated_completed_date",\n		"delivery_date",\n		"project_budget",\n		"padding_time",\n		"project_summary",\n		"project_status",\n		"is_locked"\n	],\n	"detailColumns": [\n		"project_id",\n		"project_title",\n		"project_category",\n		"owner",\n		"project_start_date",\n		"estimated_completed_date",\n		"delivery_date",\n		"project_budget",\n		"estimated_time",\n		"total_project_task_time",\n		"total_project_tasks",\n		"padding_time",\n		"project_summary",\n		"total_logged_time",\n		"total_project_log_count",\n		"total_project_bugs",\n		"total_module_count",\n		"total_module_allocated_time",\n		"total_timesheet_count",\n		"total_milestone_count",\n		"total_team_count",\n		"project_status",\n		"is_locked"\n	],\n	"columns": {\n		"project_id": {\n			"name": "ID",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"project_title": {\n			"name": "Project Name",\n			"searchable": "true",\n			"sortable": "true",\n			"noWordWrap": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Project name",\n				"class": "textbox",\n				"hint": "project Name",\n				"validations": [\n					"required"\n				]\n			},\n			"popupoptions": {\n				"type": "popup",\n				"customaction": "Cmshelper::getProjectSummaryPopupUrl"\n			}\n		},\n		"estimated_time": {\n			"name": "Project Estimated Time"\n		},\n		"total_project_task_time": {\n			"name": "Total Task Assigned time"\n		},\n		"padding_time": {\n			"name": "Project Padding Time(%)",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Project padding time (%)",\n				"class": "textbox",\n				"hint": "project padding time",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"project_summary": {\n			"name": "Project Summary",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Project summary",\n				"class": "textbox"\n			}\n		},\n		"project_budget": {\n			"name": "Project Budget",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Project budget (in $)",\n				"class": "textbox",\n				"hint": "project Budget",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"total_project_tasks": {\n			"name": "Project Task Count",\n			"sortable": "true"\n		},\n		"total_logged_time": {\n			"name": "Project Logged Hours",\n			"customColumn": "true",\n			"customaction": "Cmshelper::gettotalprojectloggedtime"\n		},\n		"total_project_log_count": {\n			"name": "Project Log Count",\n			"sortable": "true"\n		},\n		"total_project_bugs": {\n			"name": "Project Bugs",\n			"sortable": "true"\n		},\n		"total_module_count": {\n			"name": "Project Module Count",\n			"sortable": "true"\n		},\n		"total_module_allocated_time": {\n			"name": "Total Module Allocated Time",\n			"sortable": "true"\n		},\n		"total_timesheet_count": {\n			"name": "Project Timesheet Count",\n			"sortable": "true"\n		},\n		"total_milestone_count": {\n			"name": "Project Milestone Count",\n			"sortable": "true"\n		},\n		"total_team_count": {\n			"name": "Project Team Size",\n			"sortable": "true"\n		},\n		"owner": {\n			"name": "Owner",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_employee",\n				"externalColumn": "emp_main_id",\n				"externalShowColumn": "first_name"\n			},\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getUsernameCombo",\n				"default": "",\n				"source_type": "function",\n				"label": "Project owner",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"project_category": {\n			"name": "Project category",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_project_categories",\n				"externalColumn": "category_id",\n				"externalShowColumn": "category_name"\n			},\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getProjectCategories",\n				"default": "",\n				"source_type": "function",\n				"label": "Project category",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"is_locked": {\n			"name": "Lock",\n			"sortable": "true",\n			"popupoptions": {\n				"type": "popup",\n				"customaction": "Cmshelper::getLockstatusPopupUrl"\n			}\n		},\n		"project_start_date": {\n			"name": "Project start date",\n			"sortable": "true",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y",\n			"editoptions": {\n				"dbFormat": "date",\n				"displayFormat": "m/d/Y",\n				"type": "datepicker",\n				"label": "Project start date",\n				"class": "",\n				"hint": "Project start date",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"estimated_completed_date": {\n			"name": "Estimated completion date",\n			"sortable": "true",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y",\n			"editoptions": {\n				"dbFormat": "date",\n				"displayFormat": "m/d/Y",\n				"type": "datepicker",\n				"label": "Project completion date",\n				"class": "",\n				"hint": "Project completion date",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"delivery_date": {\n			"name": "Delivery date",\n			"sortable": "true",\n			"dbFormat": "date",\n			"displayFormat": "m/d/Y",\n			"editoptions": {\n				"dbFormat": "date",\n				"displayFormat": "m/d/Y",\n				"type": "datepicker",\n				"label": "Project delivery date",\n				"class": "",\n				"hint": "Project delivery date",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"project_status": {\n			"name": "Project status",\n			"editoptions": {\n				"type": "select",\n				"source": {\n					"New": "New",\n					"Active": "Active",\n					"Inactive": "Inactive",\n					"Completed": "Completed",\n					"Hold": "Hold",\n					"Cancelled": "Cancelled"\n				},\n				"default": "",\n				"source_type": "array",\n				"label": "Project status",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		}\n	},\n	"relations": {\n		"milestones": {\n			"name": "milestones",\n			"section": "project_milestone",\n			"child_table": "tbl_project_milestone",\n			"parent_join_column": "project_id",\n			"child_join_column": "project_id"\n		}\n	},\n	"opertations": [\n		"view"\n	],\n	"operationLabel": {\n		"addLabel": "Add Project",\n		"editTitle": "Edit Project",\n		"viewTitle": "View Project Details",\n		"deleteTitle": "Delete Project"\n	}\n}', '1', 1, 'all', 'admin', 'main', NULL),
(130, 17, 'Staff Report', 'report_staff', 'tbl_employee', '{\r\n    "reportPanel": "true",\r\n    "reportTitle": "Staff Report ",\r\n    "defaultDateRange": "weekly",\r\n    "dateRange": [\r\n        "weekly",\r\n        "monthly",\r\n        "custom"\r\n    ],\r\n    "dateField": "worked_on",\r\n    "dataSource": {\r\n        "queryFunction": "Cmshelper::getStaffAnalaticsQuery"\r\n    },\r\n    "export": "true",\r\n    "keyColumn": "user_id",\r\n    "listColumns": [\r\n        "staff_name",\r\n        "total_available_hours",\r\n        "total_allocated_hours",\r\n        "total_worked_hours",\r\n        "total_efficiency",\r\n        "total_utilization"\r\n    ],\r\n    "exportColumns": [\r\n        "staff_name",\r\n        "total_available_hours",\r\n        "total_allocated_hours",\r\n        "total_worked_hours",\r\n        "total_efficiency",\r\n        "total_utilization"\r\n    ],\r\n    "detailColumns": [\r\n        "staff_name",\r\n        "total_available_hours",\r\n        "total_allocated_hours",\r\n        "total_worked_hours",\r\n        "total_efficiency",\r\n        "total_utilization"\r\n    ],\r\n    "columns": {\r\n        "staff_name": {\r\n            "name": "Name",\r\n            "type": "text",\r\n            "defaultText": "Admin",\r\n            "sortable": "true",\r\n            "searchable": "searchable"\r\n        },\r\n        "total_available_hours": {\r\n            "name": "Total Available Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "total_allocated_hours": {\r\n            "name": "Total Allocated Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "total_worked_hours": {\r\n            "name": "Total Worked Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "total_efficiency": {\r\n            "name": "Total Efficiency (%)",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "total_utilization": {\r\n            "name": "Total Utilization (%)",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "worked_on": {\r\n            "name": "Added On",\r\n            "type": "datetime",\r\n            "dbFormat": "datetime",\r\n            "displayFormat": "m/d/Y H:i a",\r\n            "sortable": "true"\r\n        }\r\n    }\r\n}', '1', 8, 'all', 'admin', 'main', NULL),
(131, 17, 'Armia Report', 'report_armia', 'tbl_project_task_logs', '{\r\n    "reportPanel": "true",\r\n    "reportTitle": "Armia Report ",\r\n    "defaultDateRange": "weekly",\r\n    "dateRange": [\r\n        "weekly",\r\n        "monthly",\r\n        "custom"\r\n    ],\r\n    "dateField": "worked_on",\r\n    "dataSource": {\r\n        "queryFunction": "Cmshelper::getArmiaAnalaticsQuery"\r\n    },\r\n    "export": "true",\r\n    "keyColumn": "log_id",\r\n    "listColumns": [\r\n        "parameter",\r\n        "value"\r\n    ],\r\n    "exportColumns": [\r\n        "parameter",\r\n        "value"\r\n    ],\r\n    "detailColumns": [\r\n        "parameter",\r\n        "value"\r\n    ],\r\n    "columns": {\r\n        "parameter": {\r\n            "name": "Parameter",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "value": {\r\n            "name": "Value",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        }\r\n    }\r\n}', '1', 11, 'all', 'admin', 'main', NULL);
INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(132, 17, 'Project Report', 'report_project_resource', 'tbl_projects', '{\n    "keyColumn": "project_id",\n    "reportPanel": "true",\n    "reportTitle": "Project Report ",\n    "defaultDateRange": "weekly",\n    "dateRange": [\n        "weekly",\n        "monthly",\n        "custom"\n    ],\n    "dateField": "worked_on",\n    "dataSource": {\n        "queryFunction": "Cmshelper::getProjectResourceAnalatics"\n    },\n    "export": "true",\n    "listColumns": [\n        "project_name",\n        "project_category",\n        "total_allocated_hours",\n        "total_worked_hours",\n        "details",\n        "details_task"\n    ],\n    "exportColumns": [\n        "project_name",\n        "project_category",\n        "project_start_date",\n        "total_allocated_hours",\n        "total_worked_hours"\n    ],\n    "detailColumns": [\n        "project_name",\n        "project_category",\n        "total_allocated_hours",\n        "total_worked_hours",\n        "details",\n        "details_task"\n    ],\n    "columns": {\n        "project_name": {\n            "name": "Project",\n            "type": "text",\n            "defaultText": "Admin",\n            "sortable": "true",\n            "searchable": "searchable"\n        },\n        "project_category": {\n            "name": "Category",\n            "defaultText": "0",\n            "type": "text",\n            "sortable": "true",\n            "searchable": "searchable"\n        },\n        "total_allocated_hours": {\n            "name": "Total Allocated Hours",\n            "defaultText": "0",\n            "type": "text"\n        },\n        "total_worked_hours": {\n            "name": "Total Worked Hours",\n            "defaultText": "0",\n            "type": "text"\n        },\n        "details": {\n            "name": "Resource Details",\n            "customColumn": "true",\n            "customaction": "Cmshelper::getDetailsText",\n            "popupoptions": {\n                "type": "popup",\n                "customaction": "Cmshelper::getProjectDetailsURL"\n            }\n        },\n        "details_task": {\n            "name": "Task Details",\n            "customColumn": "true",\n            "customaction": "Cmshelper::getDetailsText",\n            "popupoptions": {\n                "type": "popup",\n                "customaction": "Cmshelper::getProjectTaskDetailsURL"\n            }\n        }\n    }\n}', '1', 10, 'all', 'admin', 'main', NULL),
(133, 16, 'User Allotment', 'report_user_allotment', 'tbl_project_task_logs', '{\r\n    "reportPanel": "true",\r\n    "reportTitle": "Staff Report ",\r\n    "singleDateFilter": "true",\r\n    "dataSource": {\r\n        "queryFunction": "Cmshelper::getStaffAllotmentQuery"\r\n    },\r\n    "export": "true",\r\n    "keyColumn": "user_id",\r\n    "listColumns": [\r\n        "staff_name",\r\n        "allocated_hours",\r\n        "unallocated_hours",\r\n        "details"\r\n    ],\r\n    "exportColumns": [\r\n        "staff_name",\r\n        "allocated_hours",\r\n        "unallocated_hours",\r\n        "details"\r\n    ],\r\n    "detailColumns": [\r\n        "staff_name",\r\n        "allocated_hours",\r\n        "unallocated_hours",\r\n        "details"\r\n    ],\r\n    "columns": {\r\n        "staff_name": {\r\n            "name": "Name",\r\n            "type": "text",\r\n            "defaultText": "Admin",\r\n            "sortable": "true",\r\n            "searchable": "searchable"\r\n        },\r\n        "allocated_hours": {\r\n            "name": "Allocated Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "unallocated_hours": {\r\n            "name": "Unallocated Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "details": {\r\n            "name": "Allotment Details",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getDetailsTask"\r\n        }\r\n    }\r\n}', '1', 9, 'all', 'admin', 'main', NULL),
(119, 16, 'bugs', 'project_bug', 'tbl_project_bugs', '{\r\n    "keyColumn": "bug_id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Team: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "module_id"\r\n    ],\r\n    "breadCrumbColumn": "module_id",\r\n    "orderBy": {\r\n        "bug_id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "module_id",\r\n        "reporting_person",\r\n        "bug_title",\r\n        "bug_description",\r\n        "issue_type",\r\n        "bug_type",\r\n        "priority",\r\n        "severity",\r\n        "reproduce_methods"\r\n    ],\r\n    "showColumns": [\r\n        "bug_id",\r\n        "module_id",\r\n        "reporting_person",\r\n        "issue_type",\r\n        "bug_type",\r\n        "priority",\r\n        "severity",\r\n        "bug_title",\r\n        "bug_description",\r\n        "reproduce_methods",\r\n        "bug_comments"\r\n    ],\r\n    "detailColumns": [\r\n        "bug_id",\r\n        "module_id",\r\n        "reporting_person",\r\n        "issue_type",\r\n        "bug_type",\r\n        "priority",\r\n        "severity",\r\n        "bug_title",\r\n        "bug_description",\r\n        "reproduce_methods",\r\n        "bug_comments"\r\n    ],\r\n    "columns": {\r\n        "bug_id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "module_id": {\r\n            "name": "module",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_project_module",\r\n                "externalColumn": "module_id",\r\n                "externalShowColumn": "module_title"\r\n            }\r\n        },\r\n        "reporting_person": {\r\n            "name": "Owner",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_employee",\r\n                "externalColumn": "emp_main_id",\r\n                "externalShowColumn": "first_name"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getProjectTeamUsernameCombo",\r\n                "default": "",\r\n                "source_type": "function",\r\n                "label": "user",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "issue_type": {\r\n            "name": "Issue Type",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "bug": "Bug",\r\n                    "enhancement": "Enhancement",\r\n                    "invalid": "Invalid",\r\n                    "new feature": "New Feature"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Issue Type",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "priority": {\r\n            "name": "Bug Priority",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "urgent": "Urgent",\r\n                    "high": "High",\r\n                    "low": "Low"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Bug Priority",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "bug_type": {\r\n            "name": "Bug Type",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "design": "Design",\r\n                    "functionality": "Functionality"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Bug Type",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "severity": {\r\n            "name": "Bug Severity",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": {\r\n                    "Critical": "Critical",\r\n                    "Major": "Major",\r\n                    "Minor": "Minor"\r\n                },\r\n                "source_type": "array",\r\n                "label": "Bug Severity",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "bug_title": {\r\n            "name": "Title",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Bug Title",\r\n                "class": "textbox",\r\n                "hint": "module Title",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "bug_description": {\r\n            "name": "Description",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Description",\r\n                "class": "",\r\n                "hint": "bug description",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "reproduce_methods": {\r\n            "name": "Reproduce Methods",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Reproduce Methods",\r\n                "class": "",\r\n                "hint": "bug reproduce methods",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "bug_comments": {\r\n            "name": "Comments",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Comments",\r\n                "class": "",\r\n                "hint": "bug comment"\r\n            }\r\n        }\r\n    },\r\n    "reference": {\r\n        "referenceTable": "tbl_project_module",\r\n        "referenceColumn": "module_id",\r\n        "referenceTableForiegnKey": "module_id"\r\n    },\r\n    "customActions": {\r\n        "afterAddRecord": "Cmshelper::increaseBugCount",\r\n        "beforeDeleteRecord": "Cmshelper::decreaseBugCount"\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "edit",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Bug",\r\n        "editTitle": "Edit Bug",\r\n        "viewTitle": "View Bug Details",\r\n        "deleteTitle": "Delete Bug"\r\n    }\r\n}', '0', 5, 'all', 'admin', 'main', NULL),
(120, 16, 'task logs', 'project_task_logs', 'tbl_project_task_logs', '{\r\n    "keyColumn": "log_id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Team: ",\r\n    "handleFile": "true",\r\n    "breadCrumbColumn": "log_comments",\r\n    "orderBy": {\r\n        "log_id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "worked_hours",\r\n        "worked_on",\r\n        "log_comments"\r\n    ],\r\n    "showColumns": [\r\n        "log_id",\r\n        "task_id",\r\n        "worked_hours",\r\n        "worked_on",\r\n        "log_comments"\r\n    ],\r\n    "detailColumns": [\r\n        "log_id",\r\n        "task_id",\r\n        "worked_hours",\r\n        "worked_on",\r\n        "log_comments"\r\n    ],\r\n    "columns": {\r\n        "log_id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "task_id": {\r\n            "name": "Percentage Completed",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_project_tasks",\r\n                "externalColumn": "task_id",\r\n                "externalShowColumn": "task_completion_percentage"\r\n            },\r\n            "editoptions": {\r\n                "type": "select",\r\n                "source": "Cmshelper::getCompletionPercentage",\r\n                "source_type": "function",\r\n                "label": "Percentage completed",\r\n                "class": "select",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "worked_hours": {\r\n            "name": "Worked Hours",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Worked hours",\r\n                "class": "textbox",\r\n                "hint": "Worked hours",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "worked_on": {\r\n            "name": "Log Date",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "dbFormat": "date",\r\n            "displayFormat": "m/d/Y",\r\n            "editoptions": {\r\n                "dbFormat": "date",\r\n                "displayFormat": "m/d/Y",\r\n                "type": "datepicker",\r\n                "label": "worked date",\r\n                "class": "",\r\n                "hint": "",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "log_comments": {\r\n            "name": "Log comment",\r\n            "editoptions": {\r\n                "type": "textarea",\r\n                "label": "Log comment",\r\n                "class": "textbox",\r\n                "hint": "Log comment",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    "reference": {\r\n        "referenceTable": "tbl_project_tasks",\r\n        "referenceColumn": "task_id",\r\n        "referenceTableForiegnKey": "task_id"\r\n    },\r\n    "customActions": {\r\n        "beforeAddRecord": "Cmshelper::validateEngine",\r\n        "afterAddRecord": "Cmshelper::increaseLogCount",\r\n        "beforeDeleteRecord": "Cmshelper::decreaseLogCount",\r\n        "beforeEditRecord": "Cmshelper::updateLogCount",\r\n        "afterEditRecord": "Cmshelper::updateTaskPercent"\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Log",\r\n        "viewTitle": "View Log Details",\r\n        "deleteTitle": "Delete Log"\r\n    }\r\n}', '0', 6, 'all', 'admin', 'main', NULL),
(121, 16, 'timesheets', 'project_timesheets', 'tbl_project_timesheets', '{\n    "keyColumn": "timesheet_id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Team: ",\n    "handleFile": "true",\n    "detailHeaderColumns": [\n        "project_id"\n    ],\n    "breadCrumbColumn": "project_id",\n    "orderBy": {\n        "timesheet_id": "DESC"\n    },\n    "listColumns": [\n        "project_id",\n        "estimation_file_id",\n        "timesheet_estimated_time",\n        "timesheet_description",\n        "timesheet_type",\n        "timesheet_status",\n        "added_on",\n        "added_by"\n    ],\n    "showColumns": [\n        "project_id",\n        "estimation_file_id",\n        "timesheet_estimated_time",\n        "timesheet_description",\n        "timesheet_type",\n        "timesheet_status",\n        "added_on",\n        "added_by"\n    ],\n    "detailColumns": [\n        "timesheet_id",\n        "project_id",\n        "estimation_file_id",\n        "timesheet_estimated_time",\n        "timesheet_description",\n        "timesheet_type",\n        "timesheet_status",\n        "added_on",\n        "added_by"\n    ],\n    "columns": {\n        "timesheet_id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "project_id": {\n            "name": "Project",\n            "searchable": "true",\n            "sortable": "true",\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_projects",\n                "externalColumn": "project_id",\n                "externalShowColumn": "project_title"\n            }\n        },\n        "estimation_file_id": {\n            "name": "uploaded timesheet",\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_files",\n                "externalColumn": "file_id",\n                "externalShowColumn": "file_id"\n            },\n            "editoptions": {\n                "type": "file",\n                "label": "Upload timesheet",\n                "class": "file"\n            }\n        },\n        "timesheet_estimated_time": {\n            "name": "Estimated Hours",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Estimated Hours",\n                "class": "textbox",\n                "hint": "Estimated Hours",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "timesheet_description": {\n            "name": "Description",\n            "editoptions": {\n                "type": "textarea",\n                "label": "Timesheet Description",\n                "class": "textbox",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "added_on": {\n            "name": "Added on [m/d/Y]",\n            "sortable": "true",\n            "dbFormat": "date",\n            "displayFormat": "m/d/Y"\n        },\n        "added_by": {\n            "name": "Added by",\n            "external": "true",\n            "externalOptions": {\n                "externalTable": "tbl_employee",\n                "externalColumn": "emp_main_id",\n                "externalShowColumn": "first_name"\n            },\n            "editoptions": {\n            }\n        },\n        "timesheet_type": {\n            "name": "Type",\n            "searchable": "true",\n            "editoptions": {\n                "type": "select",\n                "source": {\n                    "main estimate": "Main estimate",\n                    "additional estimate": "Additional estimate",\n                    "estimation error": "Estimation error",\n                    "client feedback": "Client feedback",\n                    "plan variation": "Plan variation",\n                    "others": "Others"\n                },\n                "default": "",\n                "source_type": "array",\n                "label": "Timesheet Type",\n                "class": "select",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "timesheet_status": {\n            "name": "Status",\n            "sortable": "true",\n            "popupoptions": {\n                "type": "popup",\n                "customaction": "Cmshelper::getTimesheetstatusPopupUrl"\n            }\n        }\n    },\n    "reference": {\n        "referenceTable": "tbl_projects",\n        "referenceColumn": "project_id",\n        "referenceTableForiegnKey": "project_id"\n    },\n    "customActions": {\n        "beforeAddRecord": "Cmshelper::validateEngine",\n        "afterAddRecord": "Cmshelper::increaseTimesheetCount",\n        "beforeEditRecord": "Cmshelper::updateTimesheetCount",\n        "beforeDeleteRecord": "Cmshelper::decreaseTimesheetCount"\n    },\n    "opertations": [\n        "add",\n        "view",\n        "delete"\n    ],\n    "operationLabel": {\n        "addLabel": "Add Timesheet",\n        "viewTitle": "View Timesheet Details",\n        "deleteTitle": "Delete Timesheet"\n    }\n}', '0', 7, 'all', 'admin', 'main', NULL),
(122, 16, 'My Tasks', 'my_tasks', 'tbl_project_tasks', '{\n  "customAction": "true",\n  "controller": "Cmshelper",\n  "method": "mytaskpage",\n  "module": "default"\n}', '1', 2, 'all', 'admin', 'main', NULL),
(123, 16, 'Bug Tracker', 'bug_tracker', 'tbl_project_bugs', '{\r\n  "customAction": "true",\r\n  "controller": "Cmshelper",\r\n  "method": "bug_tracker",\r\n  "module": "default"\r\n}', '1', 3, 'all', 'admin', 'main', NULL),
(124, 16, 'documents', 'project_documents', 'tbl_project_document', '{\r\n    "keyColumn": "id",\r\n    "wildsearch": "true",\r\n    "detailHeaderColumnPrefix": "Documents: ",\r\n    "handleFile": "true",\r\n    "detailHeaderColumns": [\r\n        "project_id"\r\n    ],\r\n    "breadCrumbColumn": "project_id",\r\n    "orderBy": {\r\n        "id": "DESC"\r\n    },\r\n    "listColumns": [\r\n        "id",\r\n        "project_document_name",\r\n        "project_id",\r\n        "file_id"\r\n    ],\r\n    "showColumns": [\r\n        "id",\r\n        "project_document_name",\r\n        "project_id",\r\n        "file_id"\r\n    ],\r\n    "detailColumns": [\r\n        "id",\r\n        "project_document_name",\r\n        "project_id",\r\n        "file_id"\r\n    ],\r\n    "columns": {\r\n        "id": {\r\n            "name": "ID",\r\n            "editoptions": {\r\n                "type": "hidden"\r\n            }\r\n        },\r\n        "project_document_name": {\r\n            "name": "Document",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "editoptions": {\r\n                "type": "textbox",\r\n                "label": "Name",\r\n                "class": "textbox",\r\n                "hint": "Name of the document",\r\n                "validations": [\r\n                    "required"\r\n                ]\r\n            }\r\n        },\r\n        "file_id": {\r\n            "name": "uploaded document",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_files",\r\n                "externalColumn": "file_id",\r\n                "externalShowColumn": "file_id"\r\n            },\r\n            "editoptions": {\r\n                "type": "file",\r\n                "label": "Upload document",\r\n                "class": "file",\r\n                "width": 100,\r\n                "height": 100\r\n            }\r\n        },\r\n        "project_id": {\r\n            "name": "Project",\r\n            "searchable": "true",\r\n            "sortable": "true",\r\n            "external": "true",\r\n            "externalOptions": {\r\n                "externalTable": "tbl_projects",\r\n                "externalColumn": "project_id",\r\n                "externalShowColumn": "project_title"\r\n            }\r\n        }\r\n    },\r\n    "reference": {\r\n        "referenceTable": "tbl_projects",\r\n        "referenceColumn": "project_id",\r\n        "referenceTableForiegnKey": "project_id"\r\n    },\r\n    "customActions": {\r\n        "afterAddRecord": "Cmshelper::updateProjectId"\r\n    },\r\n    "opertations": [\r\n        "add",\r\n        "view",\r\n        "delete"\r\n    ],\r\n    "operationLabel": {\r\n        "addLabel": "Add Document",\r\n        "viewTitle": "View Document Details",\r\n        "deleteTitle": "Delete Document"\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(127, 13, 'Check In/Out Reports', 'checkinreports', 'attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "checkinreports", "module": "default" }', '1', 0, 'all', 'admin', 'main', NULL),
(125, 0, 'Business Dashboard', 'dashboard_tester', 'tbl_lookup', '{\r\n    "includeJsFiles": [\r\n        "dashboard.js"\r\n    ],\r\n    "dashboardPanel": "true",\r\n    "listingPanel": "true",\r\n    "listinPanelRow": "4",\r\n    "listingPanel1": {\r\n        "columns": "2",\r\n        "column1": {\r\n            "title": "Check In / Check Out",\r\n            "fetchValue": "Cmshelper::checkInOut",\r\n            "listcolumns": {\r\n                "title": {},\r\n                "value": {}\r\n            }\r\n        },\r\n        "column2": {\r\n            "title": "Employee Info",\r\n            "fetchValue": "Cmshelper::employeeInfo",\r\n            "listcolumns": {\r\n                "title": {},\r\n                "value": {}\r\n            }\r\n        }\r\n    },\r\n    "listingPanel2": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "Basic Info",\r\n            "fetchValue": "Cmshelper::fetchDashboardDisplayCounts",\r\n            "listcolumns": {\r\n                "title": {},\r\n                "value": {}\r\n            }\r\n        }\r\n    },\r\n    "listingPanel3": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "My Tasks To Do",\r\n            "fetchValue": "Cmshelper::getMyImportantTasks",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name" : "Task To Do"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel4": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "My Bugs To Do",\r\n            "fetchValue": "Cmshelper::getMyImportantBugs",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name" : "Bugs To Do"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel5": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "Upcoming Milestone",\r\n            "fetchValue": "Cmshelper::getMyImportantMilestones",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name" : "Milestones To Do"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel6": {\r\n        "columns": "2",\r\n        "column1": {\r\n            "title": "Recent News",\r\n            "titlelink": "View All",\r\n            "titlelinkSection": "Cmshelper::getNewsUrl",\r\n            "fetchValue": "Cmshelper::fetchRecentNews",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name": "News Title"\r\n                },\r\n                "description": {\r\n                    "name": "Description"\r\n                },\r\n                "date": {\r\n                    "name": "Added Date"\r\n                }\r\n            }\r\n        },\r\n        "column2": {\r\n            "title": "Leave Summary",\r\n            "fetchValue": "Cmshelper::fetchHolidaySummary",\r\n            "listcolumns": {\r\n                "leave_type": {\r\n                    "name": "Leave"\r\n                },\r\n                "taken": {\r\n                    "name": "Taken"\r\n                },\r\n                "bal": {\r\n                    "name": "Left"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel7": {\r\n        "columns": "2",\r\n        "column1": {\r\n            "title": "Upcoming Holidays",\r\n            "titlelink": "View All",\r\n            "titlelinkSection": "Cmshelper::getHolidaysUrl",\r\n            "fetchValue": "Cmshelper::fetchRecentHolidays",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name": "Title"\r\n                },\r\n                "date": {\r\n                    "name": "Date"\r\n                }\r\n            }\r\n        },\r\n        "column2": {\r\n            "title": "BirthDays",\r\n            "fetchValue": "Cmshelper::fetchBirthdays",\r\n            "listcolumns": {\r\n                "detail": {}\r\n            }\r\n        }\r\n    },\r\n    "listingPanel8": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "Team Leave",\r\n            "titlelink": "View All",\r\n            "titlelinkSection": "Cmshelper::getLeavesTeamUrl",\r\n            "fetchValue": "Cmshelper::fetchRecentTeamLeaves",\r\n            "listcolumns": {\r\n                "username": {\r\n                    "name": "Name"\r\n                },\r\n                "leave_type": {\r\n                    "name": "Leave Type"\r\n                },\r\n                "from_date": {\r\n                    "name": "Date"\r\n                }\r\n            }\r\n        }\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(126, 13, 'Leave Reports', 'leavereports', 'attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "leavereports", "module": "default" }', '0', 0, 'all', 'admin', 'main', NULL),
(129, 14, 'Dashboard Testing', 'dt', 'lookup ', '{\r\n   "includeJsFiles": [\r\n       "dashboard.js"\r\n   ],\r\n   "dashboardPanel": "true",\r\n   "listingPanel": "true",\r\n   "listinPanelRow": "4",\r\n   "listingPanel1": {\r\n       "columns": "2",\r\n       "column1": {\r\n           "title": "Check In / Check Out",\r\n           "fetchValue": "Cmshelper::checkInOutForTest",\r\n           "listcolumns": {\r\n               "title": {},\r\n               "value": {}\r\n           }\r\n       },\r\n       "column2": {\r\n           "title": "Employee Info",\r\n           "fetchValue": "Cmshelper::employeeInfo",\r\n           "listcolumns": {\r\n               "title": {},\r\n               "value": {}\r\n           }\r\n       }\r\n   },\r\n   "listingPanel2": {\r\n       "columns": "2",\r\n       "column1": {\r\n           "title": "Recent News",\r\n           "titlelink": "View All",\r\n           "titlelinkSection": "Cmshelper::getNewsUrl",\r\n           "fetchValue": "Cmshelper::fetchRecentNews",\r\n           "listcolumns": {\r\n               "title": {\r\n                   "name": "News Title"\r\n               },\r\n               "description": {\r\n                   "name": "Description"\r\n               },\r\n               "date": {\r\n                   "name": "Added Date"\r\n               }\r\n           }\r\n       },\r\n       "column2": {\r\n           "title": "Leave Summary",\r\n           "fetchValue": "Cmshelper::fetchHolidaySummary",\r\n           "listcolumns": {\r\n               "leave_type": {\r\n                   "name": "Leave"\r\n               },\r\n               "taken": {\r\n                   "name": "Taken"\r\n               },\r\n               "bal": {\r\n                   "name": "Left"\r\n               }\r\n           }\r\n       }\r\n   },\r\n   "listingPanel3": {\r\n       "columns": "2",\r\n       "column1": {\r\n           "title": "Upcoming Holidays",\r\n           "titlelink": "View All",\r\n           "titlelinkSection": "Cmshelper::getHolidaysUrl",\r\n           "fetchValue": "Cmshelper::fetchRecentHolidays",\r\n           "listcolumns": {\r\n               "title": {\r\n                   "name": "Title"\r\n               },\r\n               "date": {\r\n                   "name": "Date"\r\n               }\r\n           }\r\n       },\r\n       "column2": {\r\n           "title": "BirthDays",\r\n           "fetchValue": "Cmshelper::fetchBirthdays",\r\n           "listcolumns": {\r\n               "detail": {}\r\n           }\r\n       }\r\n   },\r\n   "listingPanel4": {\r\n       "columns": "1",\r\n       "column1": {\r\n           "title": "Team Leave",\r\n           "titlelink": "View All",\r\n           "titlelinkSection": "Cmshelper::getLeavesTeamUrl",\r\n           "fetchValue": "Cmshelper::fetchRecentTeamLeaves",\r\n           "listcolumns": {\r\n               "username": {\r\n                   "name": "Name"\r\n               },\r\n               "leave_type": {\r\n                   "name": "Leave Type"\r\n               },\r\n               "from_date": {\r\n                   "name": "Date"\r\n               }\r\n           }\r\n       }\r\n   }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(134, 17, 'Task Log Report', 'report_task_log', 'tbl_project_tasks', '{\r\n  "reportPanel": "true",\r\n  "reportTitle": "Log Report ",\r\n  "defaultDateRange": "weekly",\r\n  "dateRange": [\r\n    "weekly",\r\n    "monthly",\r\n    "custom"\r\n  ],\r\n  "dateField": "created_on",\r\n  "dataSource": {\r\n    "queryFunction": "Cmshelper::getTaskLogQuery"\r\n  },\r\n  "export": "true",\r\n  "keyColumn": "user_id",\r\n  "listColumns": [\r\n    "log_comments",\r\n    "worked_hours",\r\n    "task_title",\r\n    "project_name",\r\n    "staff_name",\r\n    "worked_on"\r\n  ],\r\n  "exportColumns": [\r\n    "log_comments",\r\n    "worked_hours",\r\n    "task_title",\r\n    "project_name",\r\n    "staff_name",\r\n    "worked_on"\r\n  ],\r\n  "detailColumns": [\r\n    "log_comments",\r\n    "worked_hours",\r\n    "task_title",\r\n    "project_name",\r\n    "staff_name",\r\n    "worked_on"\r\n  ],\r\n  "columns": {\r\n    "log_comments": {\r\n      "name": "Task Log",\r\n      "defaultText": "0",\r\n      "type": "text"\r\n    },\r\n    "worked_hours": {\r\n      "name": "Worked Hours",\r\n      "defaultText": "0",\r\n      "type": "text"\r\n    },\r\n    "staff_name": {\r\n      "name": "Name",\r\n      "type": "text",\r\n      "sortable": "true",\r\n      "searchable": "searchable"\r\n    },\r\n    "task_title": {\r\n      "name": "Task",\r\n      "defaultText": "0",\r\n      "type": "text",\r\n      "sortable": "true",\r\n      "searchable": "searchable"\r\n    },\r\n    "project_name": {\r\n      "name": "Project",\r\n      "defaultText": "0",\r\n      "type": "text",\r\n      "sortable": "true",\r\n      "searchable": "searchable"\r\n    },\r\n    "worked_on": {\r\n      "name": "Worked On",\r\n      "defaultText": "0",\r\n      "type": "text",\r\n      "sortable": "true"\r\n    }\r\n  }\r\n}\r\n', '1', 4, 'all', 'admin', 'main', NULL),
(135, 1, 'Developer', 'my_dashboard', 'tbl_project_tasks', '\r\n	{\r\n	 "customAction": "true",\r\n	 "controller": "Cmshelper",\r\n	 "method": "mynewdashboard",\r\n	 "module": "default"\r\n	}', '1', 1, 'all', 'admin', 'main', NULL),
(136, 10, 'Daily Attendance', 'dailyattendancereports', 'attendance', '{"customAction": "true", "controller": "cmshelper", "method": "dailyattendancereports","module": "default"}', '0', 7, 'all', 'admin', 'main', NULL),
(137, 13, 'Leave Management', 'leavesummary', 'attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "leavesummary", "module": "default" }', '1', 6, 'all', 'admin', 'main', NULL),
(138, 13, 'Add Leaves', 'addleaves', 'leaves_summary', '{ "customAction": "true", "controller": "cmshelper", "method": "addleaves", "module": "default" }', '0', 0, 'all', 'admin', 'main', NULL),
(139, 13, 'Deduct Leaves', 'deductleaves', 'leaves_summary', '{ "customAction": "true", "controller": "cmshelper", "method": "deductleaves", "module": "default" }', '0', 0, 'all', 'admin', 'main', NULL),
(140, 18, 'Armia Business Report', 'business_report_armia', 'tbl_project_task_logs', '{\r\n    "reportPanel": "true",\r\n    "reportTitle": "Armia Report ",\r\n    "defaultDateRange": "weekly",\r\n    "dateRange": [\r\n        "weekly",\r\n        "monthly",\r\n        "custom"\r\n    ],\r\n    "dateField": "worked_on",\r\n    "dataSource": {\r\n        "queryFunction": "Cmshelper::getArmiaAnalaticsQuery"\r\n    },\r\n    "export": "true",\r\n    "keyColumn": "log_id",\r\n    "listColumns": [\r\n        "parameter",\r\n        "value"\r\n    ],\r\n    "exportColumns": [\r\n        "parameter",\r\n        "value"\r\n    ],\r\n    "detailColumns": [\r\n        "parameter",\r\n        "value"\r\n    ],\r\n    "columns": {\r\n        "parameter": {\r\n            "name": "Parameter",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "value": {\r\n            "name": "Value",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        }\r\n    }\r\n}', '0', 2, 'all', 'admin', 'main', NULL),
(141, 18, 'Project Business Report', 'report_project_business_resource', 'tbl_projects', '{\r\n    "keyColumn": "project_id",\r\n    "reportPanel": "true",\r\n    "reportTitle": "Project Report ",\r\n    "defaultDateRange": "weekly",\r\n    "dateRange": [\r\n        "weekly",\r\n        "monthly",\r\n        "custom"\r\n    ],\r\n    "dateField": "worked_on",\r\n    "dataSource": {\r\n        "queryFunction": "Cmshelper::getProjectResourceAnalatics"\r\n    },\r\n    "export": "true",\r\n    "listColumns": [\r\n        "project_name",\r\n        "project_category",\r\n        "total_allocated_hours",\r\n        "total_worked_hours",\r\n        "details",\r\n        "details_task"\r\n    ],\r\n    "exportColumns": [\r\n        "project_name",\r\n        "project_category",\r\n        "project_start_date",\r\n        "total_allocated_hours",\r\n        "total_worked_hours"\r\n    ],\r\n    "detailColumns": [\r\n        "project_name",\r\n        "project_category",\r\n        "total_allocated_hours",\r\n        "total_worked_hours",\r\n        "details",\r\n        "details_task"\r\n    ],\r\n    "columns": {\r\n        "project_name": {\r\n            "name": "Project",\r\n            "type": "text",\r\n            "defaultText": "Admin",\r\n            "sortable": "true",\r\n            "searchable": "searchable"\r\n        },\r\n        "project_category": {\r\n            "name": "Category",\r\n            "defaultText": "0",\r\n            "type": "text",\r\n            "sortable": "true",\r\n            "searchable": "searchable"\r\n        },\r\n        "total_allocated_hours": {\r\n            "name": "Total Allocated Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "total_worked_hours": {\r\n            "name": "Total Worked Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "details": {\r\n            "name": "Resource Details",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getDetailsText",\r\n            "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getProjectDetailsURL"\r\n            }\r\n        },\r\n        "details_task": {\r\n            "name": "Task Details",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getDetailsText",\r\n            "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getProjectTaskDetailsURL"\r\n            }\r\n        }\r\n    }\r\n}', '0', 2, 'all', 'admin', 'main', NULL),
(142, 0, 'Dashboard', 'dashboard_pdt_supp', 'tbl_lookup', '{\r\n    "includeJsFiles": [\r\n        "dashboard.js"\r\n    ],\r\n    "dashboardPanel": "true",\r\n    "listingPanel": "true",\r\n    "listinPanelRow": "8",\r\n    "listingPanel1": {\r\n        "columns": "2",\r\n        "column1": {\r\n            "title": "Check In / Check Out",\r\n            "fetchValue": "Cmshelper::checkInOut",\r\n            "listcolumns": {\r\n                "title": {},\r\n                "value": {}\r\n            }\r\n        },\r\n        "column2": {\r\n            "title": "Employee Info",\r\n            "fetchValue": "Cmshelper::employeeInfo",\r\n            "listcolumns": {\r\n                "title": {},\r\n                "value": {}\r\n            }\r\n        }\r\n    },\r\n    "listingPanel2": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "Basic Info",\r\n            "fetchValue": "Cmshelper::fetchDashboardDisplayCounts",\r\n            "listcolumns": {\r\n                "title": {},\r\n                "value": {}\r\n            }\r\n        }\r\n    },\r\n    "listingPanel3": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "My Tasks To Do",\r\n            "fetchValue": "Cmshelper::getMyImportantTasks",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name" : "Task To Do"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel4": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "My Bugs To Do",\r\n            "fetchValue": "Cmshelper::getMyImportantBugs",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name" : "Bugs To Do"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel5": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "Upcoming Milestone",\r\n            "fetchValue": "Cmshelper::getMyImportantMilestones",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name" : "Milestones To Do"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel6": {\r\n        "columns": "2",\r\n        "column1": {\r\n            "title": "Recent News",\r\n            "titlelink": "View All",\r\n            "titlelinkSection": "Cmshelper::getNewsUrl",\r\n            "fetchValue": "Cmshelper::fetchRecentNews",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name": "News Title"\r\n                },\r\n                "description": {\r\n                    "name": "Description"\r\n                },\r\n                "date": {\r\n                    "name": "Added Date"\r\n                }\r\n            }\r\n        },\r\n        "column2": {\r\n            "title": "Leave Summary",\r\n            "fetchValue": "Cmshelper::fetchHolidaySummary",\r\n            "listcolumns": {\r\n                "leave_type": {\r\n                    "name": "Leave"\r\n                },\r\n                "taken": {\r\n                    "name": "Taken"\r\n                },\r\n                "bal": {\r\n                    "name": "Left"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    "listingPanel7": {\r\n        "columns": "2",\r\n        "column1": {\r\n            "title": "Upcoming Holidays",\r\n            "titlelink": "View All",\r\n            "titlelinkSection": "Cmshelper::getHolidaysUrl",\r\n            "fetchValue": "Cmshelper::fetchRecentHolidays",\r\n            "listcolumns": {\r\n                "title": {\r\n                    "name": "Title"\r\n                },\r\n                "date": {\r\n                    "name": "Date"\r\n                }\r\n            }\r\n        },\r\n        "column2": {\r\n            "title": "BirthDays",\r\n            "fetchValue": "Cmshelper::fetchBirthdays",\r\n            "listcolumns": {\r\n                "detail": {}\r\n            }\r\n        }\r\n    },\r\n    "listingPanel8": {\r\n        "columns": "1",\r\n        "column1": {\r\n            "title": "Team Leave",\r\n            "titlelink": "View All",\r\n            "titlelinkSection": "Cmshelper::getLeavesTeamUrl",\r\n            "fetchValue": "Cmshelper::fetchRecentTeamLeaves",\r\n            "listcolumns": {\r\n                "username": {\r\n                    "name": "Name"\r\n                },\r\n                "leave_type": {\r\n                    "name": "Leave Type"\r\n      },\r\n                "from_date": {\r\n                    "name": "Date"\r\n                }\r\n            }\r\n        }\r\n    }\r\n}', '0', 0, 'all', 'admin', 'main', NULL),
(144, 19, 'Employees', 'employeedetails', 'tbl_employee', '{\n	"keyColumn": "emp_main_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Employees: ",\n	"handleFile": "true",\n	"detailHeaderColumns": ["emp_code"],\n	"breadCrumbColumn": "emp_code",\n	"orderBy": {\n		"id": "DESC"\n	},\n	"listColumns": ["profile_pic", "emp_code", "first_name", "last_name", "department_id"],\n	"showColumns": ["id", "emp_main_id", "profile_pic", "emp_code", "first_name", "last_name", "department_id", "designation_id", "reporting_id", "shift_id", "joining_date"],\n	"detailColumns": ["id", "emp_code", "department_id", "designation_id", "reporting_id", "team_id", "first_name", "last_name", "gender", "dob", "religion", "blood_group", "marital_status", "family_details", "fathers_name", "paddress", "caddress", "phone", "mobile", "location", "official_mail", "yahoo_mail", "personal_mail", "technical_skills", "bank_name", "account_no", "pan_no", "pf_no", "initial_salary", "joining_date", "appriasal_date", "added_date", "relieving_date", "active", "profile_pic"],\n	"columns": {\n		"id": {\n			"name": "ID",\n			"editoptions": {\n				"type": "hidden"\n			}\n		},\n		"emp_code": {\n			"name": "EMP CODE",\n			"searchable": "true",\n			"sortable": "true"\n		},\n		"department_id": {\n			"name": "DEPARTMENT",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_departments",\n				"externalColumn": "id",\n				"externalShowColumn": "dep_name"\n			}\n		},\n		"designation_id": {\n			"name": "DESIGNATION",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_designations",\n				"externalColumn": "id",\n				"externalShowColumn": "desig_name"\n			}\n		},\n		"reporting_id": {\n			"name": "REPORTING PERSON",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_employee",\n				"externalColumn": "emp_main_id",\n				"externalShowColumn": "first_name"\n			}\n		},\n		"team_id": {\n			"name": "TEAM",\n			"searchable": "true",\n			"sortable": "true",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_teams",\n				"externalColumn": "id",\n				"externalShowColumn": "title"\n			}\n		},\n		"first_name": {\n			"name": "FIRST NAME",\n			"searchable": "true",\n			"sortable": "true"\n		},\n		"last_name": {\n			"name": "LAST NAME",\n			"searchable": "true",\n			"sortable": "true"\n		},\n		"gender": {\n			"name": "Gender"\n		},\n		"dob": {\n			"name": "DOB",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"religion": {\n			"name": "RELIGION"\n		},\n		"blood_group": {\n			"name": "Status"\n		},\n		"marital_status": {\n			"name": "Marital Status",\n			"sortable": "true"\n		},\n		"family_details": {\n			"name": "FAMILY DETAILS"\n		},\n		"fathers_name": {\n			"name": "FATHER''S NAME"\n		},\n		"paddress": {\n			"name": "PERMANENT ADDRESS"\n		},\n		"caddress": {\n			"name": "CONTACT ADDRESS"\n		},\n		"phone": {\n			"name": "PHONE"\n		},\n		"mobile": {\n			"name": "MOBILE"\n		},\n		"location": {\n			"name": "LOCATION"\n		},\n		"official_mail": {\n			"name": "OFFICIAL EMAIL"\n		},\n		"yahoo_mail": {\n			"name": "YAHOO EMAIL"\n		},\n		"personal_mail": {\n			"name": "PERSONAL EMAIL"\n		},\n		"technical_skills": {\n			"name": "TECHNICAL SKILLS"\n		},\n		"joining_date": {\n			"name": "JOINEDDATE",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"bank_name": {\n			"name": "BANK NAME"\n		},\n		"account_no": {\n			"name": "ACCOUNT NO"\n		},\n		"pan_no": {\n			"name": "PAN NO"\n		},\n		"pf_no": {\n			"name": "PF NO"\n		},\n		"initial_salary": {\n			"name": "INITIAL SALARY"\n		},\n		"appriasal_date": {\n			"name": "LAST APPRIASAL DATE",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"added_date": {\n			"name": "ADDEDDATE",\n			"dbFormat": "date",\n			"displayFormat": "Y-m-d"\n		},\n		"relieving_date": {\n			"name": "RELIEVING DATE",\n			"dbFormat": "date",\n			"displayFormat": "Y/m/d"\n		},\n		"active": {\n			"name": "Active"\n		},\n		"profile_pic": {\n			"name": "PHOTO",\n			"customColumn": "true",\n			"customaction": "Cmshelper::getProfilePic",\n			"editoptions": {\n				"type": "file",\n				"label": "PHOTO",\n				"class": "file",\n				"hint": "Upload file for this section"\n			}\n		}\n	},\n	"opertations": ["view"],\n	"operationLabel": {\n		"viewTitle": "ViewEmployeeDetails"\n	}\n}', '1', 0, 'all', 'admin', 'main', NULL),
(153, 19, 'Off Requests', 'off_requests', 'tbl_off', '{ "customAction": "true", "controller": "cmshelper", "method": "off_requests", "module": "default" }', '1', 0, 'all', 'admin', 'main', NULL);
INSERT INTO `cms_sections` (`id`, `group_id`, `section_name`, `section_alias`, `table_name`, `section_config`, `visibilty`, `display_order`, `user_privilege`, `module`, `db_type`, `smb_id`) VALUES
(152, 19, 'Apply Off', 'apply_off', 'tbl_off', '{\r\n	"keyColumn": "id",\r\n	"wildsearch": "true",\r\n	"dataSource": "external",\r\n	"dataSourceFunction": "Cmshelper::off_details",\r\n	"dataSourceCountFunction": "Cmshelper::off_details_count",\r\n	"detailHeaderColumnPrefix": "Off: ",\r\n	"handleFile": "true",\r\n\r\n	"detailHeaderColumns": [\r\n		"from_date"\r\n	],\r\n	"breadCrumbColumn": "from_date",\r\n\r\n\r\n	"orderBy": {\r\n		"id": "DESC"\r\n	},\r\n\r\n\r\n	"listColumns": [\r\n		"off_type",\r\n		"from_date",\r\n		"to_date",\r\n		"approved",\r\n		"applied_date"\r\n	],\r\n	"showColumns": [\r\n		"id",\r\n		"off_type",\r\n		"from_date",\r\n		"to_date",\r\n		"approved",\r\n		"applied_date",\r\n		"employee_id"\r\n\r\n	],\r\n	"detailColumns": [\r\n		"id",\r\n		"off_type",\r\n		"from_date",\r\n		"to_date",\r\n		"approved",\r\n		"applied_date",\r\n		"employee_id"\r\n	],\r\n	"columns": {\r\n		"id": {\r\n			"name": "ID",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		},\r\n\r\n		"off_type": {\r\n			"name": "Off Type",\r\n			"searchable": "true",\r\n			"sortable": "true",\r\n			"editoptions": {\r\n				"type": "select",\r\n				"source": "Cmshelper::getOffTypes",\r\n				"default": "",\r\n				"source_type": "function",\r\n				"label": "Off Type",\r\n				"class": "select",\r\n				"validations": ["required"]\r\n			}\r\n		},\r\n		"from_date": {\r\n			"name": "Date",\r\n			"searchable": "true",\r\n			"sortable": "true",\r\n			"dbFormat": "date",\r\n			"displayFormat": "d/m/Y",\r\n			"editoptions": {\r\n				"dbFormat": "date",\r\n				"displayFormat": "d/m/Y",\r\n				"type": "datepicker",\r\n				"label": "Date",\r\n				"class": "",\r\n				"validations": ["required"]\r\n			}\r\n		},\r\n		"to_date": {\r\n			"name": "To Date",\r\n			"searchable": "true",\r\n			"sortable": "true",\r\n			"dbFormat": "date",\r\n			"displayFormat": "d/m/Y",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		},\r\n		"employee_id": {\r\n			"name": "Employee_id",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		},\r\n		"approved": {\r\n			"name": "Approved",\r\n			"sortable": "true",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n\r\n			}\r\n		},\r\n		"applied_date": {\r\n			"name": "Applied Date",\r\n			"searchable": "true",\r\n			"sortable": "true",\r\n			"dbFormat": "date",\r\n			"displayFormat": "d/m/Y",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		}\r\n	},\r\n	"opertations": [\r\n		"add"\r\n\r\n	],\r\n	"customActions": {\r\n		"beforeAddRecord": "Cmshelper::beforeAddOffData",\r\n		"afterAddRecord": "Cmshelper::tmsOff"\r\n	},\r\n\r\n	"operationLabel": {\r\n		"addLabel": "Apply Off"\r\n	}\r\n}', '1', 0, 'all', 'admin', 'main', NULL),
(164, 13, 'In Time Report', 'biometric_reporthr', 'tbl_biometrictime', '{\n\n    "reportPanel": "true",\n\n    "reportTitle": "Biometric Report",\n\n    "singleDateFilter": "true",\n\n"previousDateFilter":"true",\n\n    "dataSource": {\n\n        "queryFunction": "Cmshelper::getBiometricTime"\n\n    },\n\n    "keyColumn": "bio_id",\n\n"orderBy": {\n\n        "bio_id": "ASC"\n\n    },\n\n    "listColumns": [\n\n        "emp_code",\n\n        "first_name",\n\n        "last_name",\n\n        "biometric_date",\n\n        "total_time"\n\n    ],\n\n    "detailColumns": [\n\n        "emp_code",\n\n        "first_name",\n\n        "last_name",\n\n        "biometric_date",\n\n        "total_time"\n\n    ],\n\n    "columns": {\n\n        "bio_id": {\n\n            "name": "ID",\n\n            "editoptions": {\n\n                "type": "hidden"\n\n            }\n\n        },\n\n        "emp_code": {\n\n            "name": "Employee Code",\n\n            "searchable": "true",\n\n            "sortable": "true",\n\n            "editoptions": {\n\n                "type": "hidden"\n\n            }\n\n        },\n\n        "first_name": {\n\n            "name": "First Name",\n\n            "searchable": "true",\n\n            "sortable": "true",\n\n            "editoptions": {\n\n                "type": "hidden"\n\n            }\n\n        },\n\n        "last_name": {\n\n            "name": "Last Name",\n\n            "searchable": "true",\n\n            "sortable": "true",\n\n            "editoptions": {\n\n                "type": "hidden"\n\n            }\n\n        },\n\n        "biometric_date": {\n\n            "name": "Date",\n\n            "sortable": "true",\n\n            "editoptions": {\n\n                "type": "hidden"\n\n            }\n\n        },\n\n        "total_time": {\n\n            "name": "Total In Hours",\n\n"sortable": "true",\n\n            "editoptions": {\n\n                "type": "hidden"\n\n            }\n\n        }\n\n    }\n\n}', '0', 5, 'all', 'admin', 'main', 0),
(151, 19, 'Assign Shifts', 'assign_shifts_to_group', 'tbl_shift_group_shifts', '{ "customAction": "true", "controller": "cmshelper", "method": "assign_shifts_to_group", "module": "default" }', '0', 0, 'all', 'admin', 'main', NULL),
(150, 19, 'Tech Leave Summary', 'tech_leave_summary', 'tbl_leave_summary', '{ "customAction": "true", "controller": "cmshelper", "method": "tech_leave_summary", "module": "default" }', '1', 0, 'all', 'admin', 'main', NULL),
(149, 19, 'Manage process violation', 'process_violation_listing', 'tbl_attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "process_violation_listing", "module": "default" }', '1', 0, 'all', 'admin', 'main', NULL),
(148, 19, 'Set Bi Off Privilege', 'set_bi_off_privilege', 'tbl_employee', '{ "customAction": "true", "controller": "cmshelper", "method": "set_bi_off_privilege", "module": "default" }', '1', 0, 'all', 'admin', 'main', NULL),
(147, 19, 'Shift allotment', 'shift_allotment', 'tbl_shift_group', '{ "customAction": "true", "controller": "cmshelper", "method": "shift_allotment", "module": "default" }', '0', 0, 'all', 'admin', 'main', NULL),
(146, 19, 'Shift group', 'shift_group', 'tbl_shift_group', '{\n    "keyColumn": "id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Shift group: ",\n    "handleFile": "true",\n    "detailHeaderColumns": [\n        "shift_group_name"\n    ],\n    "breadCrumbColumn": "shift_group_name",\n    "sessionMatchCondition":{\n  	"department_id":"cms_department_id"\n	},\n    "orderBy": {\n        "id": "DESC"\n    },\n    "includeJsFiles": [\n        "leave_type.js"\n    ],\n    "listColumns": [\n        "shift_group_name",\n        "note",        \n        "active"\n    ],\n    "showColumns": [\n        "id",\n        "department_id",\n        "shift_group_name",\n        "note",        \n        "active"\n    ],\n    "detailColumns": [\n        "id",\n        "department_id",\n        "shift_group_name",\n        "note",        \n        "active"\n    ],\n    "columns": {\n        "id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n       "department_id": {\n            "name": "Department_id",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "shift_group_name": {\n            "name": "Shift Group Name",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Shift group name",\n                "class": "textbox",\n                "hint": "Shift group name",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n       "note": {\n            "name": "Note",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Note",\n                "class": "textbox",\n                "hint": "Note",\n                "validations": [\n                    "required"\n                ]\n            }\n        },      \n\n        "active": {\n            "name": "Status",\n            "searchable": "true",\n            "sortable": "true",            \n            "editoptions": {\n                "type": "select",\n                "source": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "default": "Y",\n                "source_type": "array",\n                "label": "Status",\n                "class": "select",\n                "enumvalues": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "validations": [\n                    "required"\n                ]\n            }\n        }\n    },\n    "customActions": {\n        "beforeAddRecord": "Cmshelper::beforeAddShiftgroup",\n        "beforeEditRecord": "Cmshelper::beforeEditShiftgroup",\n        "beforeDeleteRecord": "Cmshelper::beforeDeleteShiftgroup"\n    },\n    "opertations": [\n        "add",\n        "view",\n        "edit",\n        "delete"\n       \n    ],\n "customOperations": {\n        "Assign": {\n            "options": {\n                "name": "Assign",\n                "linkSource": "Cmshelper::assignshifts",\n                "class": "assign_shift_class",\n                "title": "Assign Shift Group"\n            }\n        },\n "Employees": {\n            "options": {\n                "name": "Employees",\n                "linkSource": "Cmshelper::assignshifts",\n                "class": "view_assigned_employee_class",\n                "title": "View Employees"\n            }\n        },\n  "Shifts": {\n            "options": {\n                "name": "Shifts",\n                "linkSource": "Cmshelper::assignshifts",\n                "class": "view_assigned_shifts_class",\n                "title": "View Shifts"\n            }\n        }     \n    },\n\n    "operationLabel": {\n        "addLabel": "Add Shift Group",\n        "editTitle": "Edit Shift Group",\n        "viewTitle": "View Shift Group",\n        "deleteTitle": "Delete Shift Group"\n        \n    }\n}\n\n', '1', 0, 'all', 'admin', 'main', NULL),
(145, 19, 'Shifts', 'shifts', 'tbl_shifts', '{\n    "keyColumn": "id",\n    "wildsearch": "true",\n    "detailHeaderColumnPrefix": "Shifts: ",\n    "handleFile": "true",\n	\n    "detailHeaderColumns": [\n        "title"\n    ],\n    "breadCrumbColumn": "title",\n    "sessionMatchCondition":{\n  	"department_id":"cms_department_id"\n	},\n\n    "orderBy": {\n        "id": "DESC"\n    },\n  "includeJsFiles": [ "jquery.timepicker.min.js" ],\n   "includeCssFiles": [ "jquery.timepicker.css" ],\n\n    "listColumns": [\n        "title",\n        "time_from",\n        "time_to",\n        "active"\n    ],\n    "showColumns": [\n        "id",\n       "title",\n        "time_from",\n        "time_to",        \n        "department_id",\n        "active"\n    ],\n    "detailColumns": [\n        "id",\n       "title",\n        "time_from",\n        "time_to",       \n        "department_id",           \n        "active"\n    ],\n    "columns": {\n        "id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "department_id": {\n            "name": "Department_id",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "title": {\n            "name": "Title",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "textbox",\n                "label": "Title",\n                "class": "textbox",\n                "hint": "News Title",\n                "validations": [\n                    "required"\n                ]\n            }\n        },\n        "time_from": { \n		"name": "From Time",\n 		"searchable": "true",\n 		"sortable": "true", 	\n                "dbFormat": "time",\n 		"displayFormat": "h:i A",	\n                "editoptions": {\n                "type": "textbox",\n                "label": "From Time",\n                "class": "textbox",\n                "hint": "From Time",\n                "validations": [\n                    "required"\n                ]\n            }\n 		\n	},\n       "time_to": { \n		"name": "To Time",\n 		"searchable": "true",\n 		"sortable": "true",\n                "dbFormat": "time",\n 		"displayFormat": "h:i A",\n                "editoptions": {\n                "type": "textbox",\n                "label": "To Time",\n                "class": "textbox",\n                "hint": "To Time",\n                "validations": [\n                    "required"\n                ]\n            }\n\n	},   \n\n\n        "active": {\n            "name": "Status",\n            "searchable": "true",\n            "sortable": "true",            \n            "editoptions": {\n                "type": "select",\n                "source": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "default": "Y",\n                "source_type": "array",\n                "label": "Status",\n                "class": "select",\n                "enumvalues": {\n                    "Y": "Active",\n                    "N": "Inactive"\n                },\n                "validations": [\n                    "required"\n                ]\n            }\n        }\n    },\n    "customActions": {\n        "beforeAddRecord": "Cmshelper::beforeAddShifts",\n        "beforeEditRecord": "Cmshelper::beforeEditShifts",\n        "beforeDeleteRecord": "Cmshelper::beforeDeleteShifts"\n\n    },\n    "opertations": [\n        "add",\n        "view",\n        "edit",\n        "delete"\n       \n    ],\n\n \n\n    "operationLabel": {\n        "addLabel": "Add Shift",\n        "editTitle": "Edit Shift",\n        "viewTitle": "View Shift",\n        "deleteTitle": "Delete Shift"\n        \n    }\n}\n\n', '1', 0, 'all', 'admin', 'main', NULL),
(154, 0, 'Business Dashboard', 'sptl_hddashboard', 'tbl_lookup', '{\n    "includeJsFiles": [\n        "dashboard.js"\n    ],\n    "dashboardPanel": "true",\n    "listingPanel": "true",\n    "listinPanelRow": "9",\n    "listingPanel1": {\n        "columns": "2",\n        "column1": {\n            "title": "Check In / Check Out",\n            "fetchValue": "Cmshelper::checkInOutNew",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        },\n        "column2": {\n            "title": "Employee Info",\n            "fetchValue": "Cmshelper::employeeInfo",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel2": {\n        "columns": "1",\n        "column1": {\n            "title": "Project Details",\n            "titlelink": "",\n            "titlelinkSection": "",\n            "fetchValue": "Cmshelper::adminDashboardProjectDetails",\n            "listcolumns": {\n                "project_title": {\n                    "name": "Project Name"\n                },\n                "project_owner": {\n                    "name": "Project Owner"\n                },\n                "project_delivery_date": {\n                    "name": "Project Delivery Date"\n                },\n                "project_time": {\n                    "name": "Project Time (in days)"\n                },\n                "project_effort": {\n                    "name": "Project Effort (in hours)"\n                },\n                "view_details": {\n                    "name": "Project Profile"\n                }\n            }\n        }\n        \n    },\n    "listingPanel3": {\n        "columns": "1",\n        "column1": {\n            "title": "Basic Info",\n            "fetchValue": "Cmshelper::fetchDashboardDisplayCounts",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel4": {\n        "columns": "1",\n        "column1": {\n            "title": "My Tasks To Do",\n            "fetchValue": "Cmshelper::getMyImportantTasks",\n            "listcolumns": {\n                "title": {\n                    "name" : "Task To Do"\n                }\n            }\n        }\n    },\n    "listingPanel5": {\n        "columns": "1",\n        "column1": {\n            "title": "My Bugs To Do",\n            "fetchValue": "Cmshelper::getMyImportantBugs",\n            "listcolumns": {\n                "title": {\n                    "name" : "Bugs To Do"\n                }\n            }\n        }\n    },\n    "listingPanel6": {\n        "columns": "1",\n        "column1": {\n            "title": "Upcoming Milestone",\n            "fetchValue": "Cmshelper::getMyImportantMilestones",\n            "listcolumns": {\n                "title": {\n                    "name" : "Milestones To Do"\n                }\n            }\n        }\n    },\n    "listingPanel7": {\n        "columns": "2",\n        "column1": {\n            "title": "Recent News",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getNewsUrl",\n            "fetchValue": "Cmshelper::fetchRecentNews",\n            "listcolumns": {\n                "title": {\n                    "name": "News Title"\n                },\n                "description": {\n                    "name": "Description"\n                },\n                "date": {\n                    "name": "Added Date"\n                }\n            }\n        },\n        "column2": {\n            "title": "Leave Requests",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getLeavesHDUrl",\n            "fetchValue": "Cmshelper::fetchRecentHDLeaves",\n            "listcolumns": {\n                "username": {\n                    "name": "Name"\n                },\n                "leave_type": {\n                    "name": "Leave Type"\n                },\n                "from_date": {\n                    "name": "Date"\n                }\n            }\n        }\n    },\n    "listingPanel8": {\n        "columns": "2",\n        "column1": {\n            "title": "Leave Summary",\n            "fetchValue": "Cmshelper::fetchHolidaySummary",\n            "listcolumns": {\n                "leave_type": {\n                    "name": "Leave"\n                },\n                "taken": {\n                    "name": "Taken"\n                },\n                "bal": {\n                    "name": "Left"\n                }\n            }\n        },\n        "column2": {\n            "title": "Upcoming Holidays",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getHolidaysUrl",\n            "fetchValue": "Cmshelper::fetchRecentHolidays",\n            "listcolumns": {\n                "title": {\n                    "name": "Title"\n                },\n                "date": {\n                    "name": "Date"\n                }\n            }\n        }\n    },\n    "listingPanel9": {\n        "columns": "2",\n        "column1": {\n            "title": "BirthDays",\n            "fetchValue": "Cmshelper::fetchBirthdays",\n            "listcolumns": {\n                "detail": {}\n            }\n        },\n        "column2": {\n            "title": "Team Leave",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getLeavesTeamUrl",\n            "fetchValue": "Cmshelper::fetchRecentTeamLeaves",\n            "listcolumns": {\n                "username": {\n                    "name": "Name"\n                },\n                "leave_type": {\n                    "name": "Leave Type"\n                },\n                "from_date": {\n                    "name": "Date"\n                }\n            }\n        }\n    }\n}\n', '0', 2, 'all', 'admin', 'main', NULL),
(155, 0, 'Dashboard', 'sptech_dashboard', 'tbl_lookup', '{\n    "includeJsFiles": [\n        "dashboard.js"\n    ],\n    "dashboardPanel": "true",\n    "listingPanel": "true",\n    "listinPanelRow": "8",\n    "listingPanel1": {\n        "columns": "2",\n        "column1": {\n            "title": "Check In / Check Out",\n            "fetchValue": "Cmshelper::checkInOutNew",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        },\n        "column2": {\n            "title": "Employee Info",\n            "fetchValue": "Cmshelper::employeeInfo",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel2": {\n        "columns": "1",\n        "column1": {\n            "title": "Basic Info",\n            "fetchValue": "Cmshelper::fetchDashboardDisplayCounts",\n            "listcolumns": {\n                "title": {},\n                "value": {}\n            }\n        }\n    },\n    "listingPanel3": {\n        "columns": "1",\n        "column1": {\n            "title": "My Tasks To Do",\n            "fetchValue": "Cmshelper::getMyImportantTasks",\n            "listcolumns": {\n                "title": {\n                    "name" : "Task To Do"\n                }\n            }\n        }\n    },\n    "listingPanel4": {\n        "columns": "1",\n        "column1": {\n            "title": "My Bugs To Do",\n            "fetchValue": "Cmshelper::getMyImportantBugs",\n            "listcolumns": {\n                "title": {\n                    "name" : "Bugs To Do"\n                }\n            }\n        }\n    },\n    "listingPanel5": {\n        "columns": "1",\n        "column1": {\n            "title": "Upcoming Milestone",\n            "fetchValue": "Cmshelper::getMyImportantMilestones",\n            "listcolumns": {\n                "title": {\n                    "name" : "Milestones To Do"\n                }\n            }\n        }\n    },\n    "listingPanel6": {\n        "columns": "2",\n        "column1": {\n            "title": "Recent News",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getNewsUrl",\n            "fetchValue": "Cmshelper::fetchRecentNews",\n            "listcolumns": {\n                "title": {\n                    "name": "News Title"\n                },\n                "description": {\n                    "name": "Description"\n                },\n                "date": {\n                    "name": "Added Date"\n                }\n            }\n        },\n        "column2": {\n            "title": "Leave Summary",\n            "fetchValue": "Cmshelper::fetchHolidaySummary",\n            "listcolumns": {\n                "leave_type": {\n                    "name": "Leave"\n                },\n                "taken": {\n                    "name": "Taken"\n                },\n                "bal": {\n                    "name": "Left"\n                }\n            }\n        }\n    },\n    "listingPanel7": {\n        "columns": "2",\n        "column1": {\n            "title": "Upcoming Holidays",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getHolidaysUrl",\n            "fetchValue": "Cmshelper::fetchRecentHolidays",\n            "listcolumns": {\n                "title": {\n                    "name": "Title"\n                },\n                "date": {\n                    "name": "Date"\n                }\n            }\n        },\n        "column2": {\n            "title": "BirthDays",\n            "fetchValue": "Cmshelper::fetchBirthdays",\n            "listcolumns": {\n                "detail": {}\n            }\n        }\n    },\n    "listingPanel8": {\n        "columns": "1",\n        "column1": {\n            "title": "Team Leave",\n            "titlelink": "View All",\n            "titlelinkSection": "Cmshelper::getLeavesTeamUrl",\n            "fetchValue": "Cmshelper::fetchRecentTeamLeaves",\n            "listcolumns": {\n                "username": {\n                    "name": "Name"\n                },\n                "leave_type": {\n                    "name": "Leave Type"\n                },\n                "from_date": {\n                    "name": "Date"\n                }\n            }\n        }\n    }\n}\n\n', '0', 0, 'all', 'admin', 'main', NULL),
(156, 10, 'Leave Requests', 'sptl_lhdrequests', 'tbl_emp_leaves', '{ "keyColumn": "id", "wildsearch": "true", "dataSource": "external", "dataSourceFunction": "Cmshelper::fetchLeaveRequests", "dataSourceCountFunction": "Cmshelper::fetchLeaveRequestsCount", "detailHeaderColumnPrefix": "Leave Requests: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "title", "orderBy": { "id": "DESC" }, "includeJsFiles": [ "leave_hr.js" ], "reference": { "referenceTable": "tbl_employee", "referenceColumn": "emp_id", "referenceTableForiegnKey": "emp_main_id" }, "listColumns": [ "profile_pic", "username", "leave_type", "half_day", "applied_date", "from_date_disp", "to_date_disp", "sup_status" ], "showColumns": [ "id", "emp_id", "leave_type", "half_day", "from_date", "to_date", "description", "comments", "sup_status", "applied_date" ], "detailColumns": [ "id", "username", "emp_id", "leave_type", "half_day", "applied_date", "from_date", "from_date_disp", "to_date", "to_date_disp", "description", "comments", "sup_status", "remarks", "profile_pic" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "profile_pic": { "name": "", "customColumn": "true", "customaction": "Cmshelper::getProfilePicLeave" }, "emp_id": { "name": "Name", "searchable": "true", "sortable": "true", "editoptions": { "type": "hidden" } }, "leave_type": { "name": "Leave Type", "searchable": "true", "sortable": "true", "editoptions": { "type": "select", "source": "Cmshelper::getLeaveTypes", "default": "", "source_type": "function", "label": "Leave Type", "class": "select", "validations": [ "required" ] } }, "half_day": { "name": "Half Day", "sortable": "true", "editoptions": { "type": "checkbox", "label": "Half Day", "class": "inline", "default": "0", "enumvalues": { "0": "No", "1": "Yes" } } }, "from_date": { "name": "Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "From Date", "class": "", "validations": [ "required" ] } }, "to_date": { "name": "To Date", "searchable": "true", "sortable": "true", "dbFormat": "date", "displayFormat": "M d, Y", "editoptions": { "dbFormat": "date", "displayFormat": "M d, Y", "type": "datepicker", "label": "To Date", "class": "", "validations": [ "required" ] } }, "from_date_disp": { "name": "From Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceFromdate" }, "to_date_disp": { "name": "To Date", "customColumn": "true", "customaction": "Cmshelper::getAttendanceTodate" }, "description": { "name": "Description", "editoptions": { "type": "textarea", "label": "Description", "class": "textarea", "validations": [ "required" ] } }, "comments": { "name": "Comments", "editoptions": { "type": "textarea", "label": "Comments", "class": "textarea", "validations": [ "required" ] } }, "sup_status": { "name": "Status", "searchable": "true","sortable": "true", "popupoptions": { "type": "popup", "customaction": "Cmshelper::getSupstatusPopupUrl" } }, "remarks": { "name": "Remarks" }, "hr_status": { "name": "HR Status", "sortable": "true" }, "username": { "sortable": "true", "name": "Employee name" }, "applied_date": { "searchable": "true", "sortable": "true", "name": "Applied date", "dbFormat": "date", "displayFormat": "M d, Y" } }, "customActions": { "beforeAddRecord": "Cmshelper: : setEmployeeId" }, "opertations": [ "view" ], "operationLabel": { "viewTitle": "ViewLeaveDetails" } }', '0', 8, 'all', 'admin', 'main', NULL),
(157, 1, 'Analytical', 'analytic_dashboard', 'tbl_project_tasks', '\n    {\n     "customAction": "true",\n     "controller": "Cmshelper",\n     "method": "analyticaldashboard",\n     "module": "default"\n    }', '1', 0, 'all', 'admin', 'main', NULL),
(158, 10, 'Leave Status', 'leave_status', 'tbl_leaves_summary', '{\n  "keyColumn": "id",\n  "wildsearch": "true",\n  "detailHeaderColumnPrefix": "Leave Status ",\n  "handleFile": "true",\n  "sessionMatchCondition": {\n    "emp_id": "cms_user_id"\n  },\n  "hideOperationsColumn": "true",\n  "orderBy": {\n    "id": "DESC"\n  },\n  "listColumns": [\n    "years",\n    "cl_count",\n    "pl_count",\n    "cl_taken",\n    "pl_taken",\n    "lop_taken"\n  ],\n  "showColumns": [\n    "years",\n    "cl_count",\n    "pl_count",\n    "cl_taken",\n    "pl_taken",\n    "lop_taken"\n  ],\n  "detailColumns": [\n    "years",\n    "cl_count",\n    "pl_count",\n    "cl_taken",\n    "pl_taken",\n    "lop_taken"\n  ],\n  "columns": {\n    "id": {\n      "name": "ID",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "years": {\n      "name": "Year",\n      "searchable": "true",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "cl_count": {\n      "name": "CL Left",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "pl_count": {\n      "name": "PL Left",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "pl_taken": {\n      "name": "PL Taken",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "cl_taken": {\n      "name": "CL Taken",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "lop_taken": {\n      "name": "LOP Taken",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    }\n  }\n}', '1', 10, 'all', 'admin', 'main', NULL),
(159, 16, 'Task View Report', 'report_task_view', 'tbl_project_tasks', '{\n  "reportPanel": "true",\n  "reportTitle": "Log Report ",\n  "keyColumn": "task_id",\n  "wildsearch": "true",\n  "detailHeaderColumnPrefix": "Task View Report ",\n  "handleFile": "true",\n  "hideOperationsColumn": "true",\n  "defaultDateRange": "weekly",\n  "dateRange": [\n    "weekly",\n    "monthly",\n    "custom"\n  ],\n  "dateField": "created_on",\n  "dataSource": {\n    "queryFunction": "Cmshelper::getTaskViewQuery"\n  },\n  "orderBy": {\n    "task_id": "DESC"\n  },\n  "listColumns": [\n    "staff_name",\n    "project_name",\n    "module_name",\n    "task_title",\n    "task_estimated_time",\n    "task_estimated_completion_date",\n    "created_on",\n    "owner_name",\n    "task_status"\n  ],\n  "showColumns": [\n    "staff_name",\n    "project_name",\n    "module_name",\n    "task_title",\n    "task_estimated_time",\n    "task_estimated_completion_date",\n    "created_on",\n    "owner_name",\n    "task_status"\n  ],\n  "detailColumns": [\n    "staff_name",\n    "project_name",\n    "module_name",\n    "task_title",\n    "task_estimated_time",\n    "task_estimated_completion_date",\n    "created_on",\n    "owner_name",\n    "task_status"\n  ],\n  "columns": {\n    "task_id": {\n      "name": "ID",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "staff_name": {\n      "name": "Assigned To",\n      "searchable": "true",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "project_name": {\n      "name": "Project",\n      "searchable": "true",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "module_name": {\n      "name": "Module",\n      "searchable": "true",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "task_title": {\n      "name": "Task",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "task_estimated_time": {\n      "name": "Estimated Time",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "task_estimated_completion_date": {\n      "name": "Completion Date",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "created_on": {\n      "name": "Created On",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "owner_name": {\n      "name": "Assigned By",\n      "searchable": "true",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    },\n    "task_status": {\n      "name": "Status",\n      "sortable": "true",\n      "editoptions": {\n        "type": "hidden"\n      }\n    }\n  }\n}', '1', 1, 'all', 'admin', 'main', NULL),
(160, 18, 'Biometric Report', 'biometric_report', 'tbl_biometrictime', '{\n    "reportPanel": "true",\n    "reportTitle": "Biometric Report",\n    "singleDateFilter": "true",\n"previousDateFilter":"true",\n    "dataSource": {\n        "queryFunction": "Cmshelper::getBiometricTime"\n    },\n\n    "keyColumn": "bio_id",\n"orderBy": {\n        "bio_id": "ASC"\n    },\n    "listColumns": [\n        "emp_code",\n        "first_name",\n        "last_name",\n        "date",\n        "total_time"\n    ],\n\n    "detailColumns": [\n        "emp_code",\n        "first_name",\n        "last_name",\n        "date",\n        "total_time"\n    ],\n    "columns": {\n        "bio_id": {\n            "name": "ID",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "emp_code": {\n            "name": "Employee Code",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "first_name": {\n            "name": "First Name",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "last_name": {\n            "name": "Last Name",\n            "searchable": "true",\n            "sortable": "true",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "date": {\n            "name": "Date",\n            "sortable": "true",\n            "editoptions": {\n                "type": "hidden"\n            }\n        },\n        "total_time": {\n            "name": "Total In Hours",\n"sortable": "true",\n            "editoptions": {\n                "type": "hidden"\n            }\n        }\n    }\n}', '0', 5, 'all', 'admin', 'main', 0),
(161, 16, 'Developer Accounts', 'developer_tools', 'tbl_developer_tools', '{\r\n	"keyColumn": "id",\r\n	"wildsearch": "true",\r\n	"detailHeaderColumnPrefix": "Developers: ",\r\n	"handleFile": "true",\r\n	"detailHeaderColumns": ["id"],\r\n	"breadCrumbColumn": "id",\r\n	"orderBy": {\r\n		"id": "DESC"\r\n	},\r\n\r\n	"listColumns": ["title", "description"],\r\n	"showColumns": ["id", "Category", "title", "description", "file_upload"],\r\n	"detailColumns": ["id", "Category", "title", "description", "file_upload"],\r\n	"columns": {\r\n		"id": {\r\n			"name": "ID",\r\n			"editoptions": {\r\n				"type": "hidden"\r\n			}\r\n		},\r\n\r\n\r\n\r\n		"Category": {\r\n			"name": "Category",\r\n			"editoptions": {\r\n				"type": "select",\r\n				"source": {\r\n					"API Keys": "API Keys",\r\n					"Test Accounts": "Test Accounts",\r\n					"Documents": "Documents"\r\n				},\r\n				"default": "Select",\r\n				"source_type": "array",\r\n				"label": "Category",\r\n				"class": "select",\r\n				"enumvalues": {\r\n					"API Keys": "API Keys",\r\n					"Test Accounts": "Test Accounts",\r\n					"Documents": "Documents"\r\n\r\n\r\n\r\n				},\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n\r\n		"title": {\r\n			"name": "Title",\r\n			"sortable": "true",\r\n			"searchable": "true",\r\n			"editoptions": {\r\n				"type": "textbox",\r\n				"label": "Title",\r\n				"class": "textbox",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n		"description": {\r\n			"name": "Description",\r\n			"sortable": "true",\r\n			"editoptions": {\r\n				"type": "htmlEditor",\r\n				"label": "Description",\r\n				"class": "textarea",\r\n				"validations": [\r\n					"required"\r\n				]\r\n			}\r\n		},\r\n\r\n\r\n\r\n		"file_upload": {\r\n			"name": "Files",\r\n			"external": "true",\r\n			"externalOptions": {\r\n				"externalTable": "tbl_files",\r\n				"externalColumn": "file_id",\r\n				"externalShowColumn": "file_id"\r\n			},\r\n			"editoptions": {\r\n				"type": "file",\r\n				"label": "File Upload",\r\n				"class": "file"\r\n\r\n			}\r\n		}\r\n	},\r\n\r\n\r\n	"opertations": [\r\n		"add",\r\n		"view",\r\n		"edit",\r\n		"delete"\r\n	]\r\n}', '1', 1, 'all', 'admin', 'main', NULL),
(162, 10, 'Biometric Report', 'biometric_report_tpl', 'tbl_biometrictime', ' {"customAction": "true", "controller": "cmshelper", "method": "dailybiometricreport","module": "default"}', '0', 6, 'all', 'admin', 'main', 0),
(163, 10, 'In Time Report', 'month_biometric_report', 'tbl_biometrictime', '{"customAction": "true", "controller": "cmshelper", "method": "monthlybiometricattendancereports","module": "default"}', '0', 7, 'all', 'admin', 'main', 0),
(165, 10, 'Company Biometric Report', 'biometricreports_all_emp', 'biometrictime', '{\r\n"customAction": "true",\r\n"controller": "cmshelper",\r\n"method": "biometricreport",\r\n"module": "default"\r\n}', '0', 7, 'all', 'admin', 'main', NULL),
(166, 10, 'Company Biometric Report', 'biometricreport_all', 'biometrictime', '{\r\n"customAction": "true",\r\n"controller": "cmshelper",\r\n"method": "biometricreportallemployees",\r\n"module": "default"\r\n}', '0', 8, 'all', 'admin', 'main', NULL),
(167, 0, 'Merit Add', 'merit_add', 'tbl_merit', '{\r\n"keyColumn": "id",\r\n"wildsearch": "true",\r\n"detailHeaderColumnPrefix": "Merit Report: ",\r\n"handleFile": "true",\r\n"detailHeaderColumns": [\r\n"title"\r\n],\r\n"breadCrumbColumn": "name",\r\n"orderBy": {\r\n"id": "DESC"\r\n},\r\n"listColumns": [\r\n"name",\r\n"merit",\r\n"reason",\r\n"details"\r\n\r\n],\r\n"showColumns": [\r\n"name",\r\n"merit",\r\n"reason",\r\n"details",\r\n"emp_id"\r\n\r\n],\r\n"detailColumns": [\r\n"name",\r\n"emp_id",\r\n"merit",\r\n"reason",\r\n"details"\r\n\r\n],\r\n"columns": {\r\n"id": {\r\n"name": "id",\r\n"editoptions": {\r\n"type": "hidden"\r\n}\r\n},\r\n"emp_id": {\r\n"searchable": "true",\r\n"sortable": "true",\r\n"name": "UserName",\r\n"editoptions": {\r\n"type": "select",\r\n"source": "Cmshelper::employeeList",\r\n"default": "",\r\n"source_type": "function",\r\n"label": "UserName",\r\n"class": "select",\r\n"validations": ["required"]\r\n}\r\n},\r\n"merit": {\r\n"name": "Merit",\r\n"editoptions": {\r\n"type": "textarea",\r\n"label": "Merit",\r\n"class": "text",\r\n"validations": ["required"]\r\n}\r\n},\r\n"name": {\r\n"name": "UserName",\r\n"searchable": "true",\r\n"sortable": "true"\r\n},\r\n"reason": {\r\n"name": "Reason",\r\n"editoptions": {\r\n"type": "textarea",\r\n"label": "Reason",\r\n"class": "textarea",\r\n"validations": ["required"]\r\n}\r\n},\r\n"details": {\r\n"name": "Details",\r\n"editoptions": {\r\n"type": "textarea",\r\n"label": "Details",\r\n"class": "textarea",\r\n"validations": ["required"]\r\n}\r\n}\r\n\r\n},\r\n"customActions": {\r\n"afterAddRecord": "Cmshelper::insertEmpId"\r\n},\r\n"opertations": [\r\n"view", "add", "edit", "delete"\r\n],\r\n"operationLabel": {\r\n"viewTitle": "Merit Report"\r\n}\r\n}', '1', 8, 'all', 'admin', 'main', NULL),
(168, 17, 'Merit Report', 'merit_report', 'tbl_merit', '{\r\n"keyColumn": "id",\r\n"wildsearch": "true",\r\n"dataSource": "external",\r\n"dataSourceFunction": "Cmshelper::meritEmployeeNameListing",\r\n"detailHeaderColumnPrefix": "Merit: ",\r\n"handleFile": "true",\r\n"detailHeaderColumns": [\r\n"title"\r\n],\r\n"breadCrumbColumn": "Merit",\r\n"orderBy": {\r\n"id": "DESC"\r\n},\r\n"listColumns": [\r\n"name",\r\n"merit",\r\n"reason",\r\n"details"\r\n],\r\n"showColumns": [\r\n"name",\r\n"merit",\r\n"reason",\r\n"details"\r\n],\r\n"detailColumns": [\r\n"name",\r\n"merit",\r\n"reason",\r\n"details"\r\n],\r\n"columns": {\r\n"id": {\r\n"name": "ID"\r\n},\r\n"name": {\r\n"name": "UserNAme",\r\n"searchable": "true",\r\n"sortable": "true"\r\n},\r\n"merit": {\r\n"name": "Merit"\r\n},\r\n"reason": {\r\n"name": "Merit"\r\n},\r\n"details": {\r\n"name": "Merit"\r\n}\r\n},\r\n"opertations": [\r\n"view"\r\n],\r\n"operationLabel": {\r\n"viewTitle": "Merit Report"\r\n}\r\n}', '1', 8, 'all', 'admin', 'main', NULL),
(169, 10, 'Process Violations', 'process_violation_listings', 'tbl_attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "process_violation_listing_cto", "module": "default" }', '0', 11, 'all', 'admin', 'main', NULL),
(171, 0, 'Documents', 'documents', 'tbl_documents', '{\n	"keyColumn": "document_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Document: ",\n	"handleFile": "true",\n	"detailHeaderColumns": [\n		"document_id"\n	],\n	"breadCrumbColumn": "document_id",\n	"orderBy": {\n		"document_id": "DESC"\n	},\n	"listColumns": [\n		"document_name",\n		"document_image"\n\n	],\n	"showColumns": [\n		"document_name",\n		"document_image"\n	],\n	"detailColumns": [\n		"document_name",\n		"document_image"\n	],\n	"columns": {\n		"document_name": {\n			"name": "Document Name",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Document name",\n				"class": "textbox",\n				"hint": "Document name",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"document_image": {\n			"name": "Document",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_files",\n				"externalColumn": "file_id",\n				"externalShowColumn": "file_id"\n			},\n			"editoptions": {\n				"type": "file",\n				"label": "Upload document",\n				"class": "file"\n			}\n		}\n	},\n\n	"opertations": [\n\n		"view"\n	],\n	"operationLabel": {\n\n		"viewTitle": "View Document"\n\n	}\n}', '1', 5, 'all', 'admin', 'main', NULL),
(172, 16, 'Document Management', 'document_management', 'tbl_documents', '{\n	"keyColumn": "document_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Document: ",\n	"handleFile": "true",\n	"detailHeaderColumns": [\n		"document_id"\n	],\n	"breadCrumbColumn": "document_id",\n	"orderBy": {\n		"document_id": "DESC"\n	},\n	"listColumns": [\n		"document_name",\n		"document_image",\n		"department"\n\n	],\n	"showColumns": [\n		"document_name",\n		"document_image",\n		"department"\n	],\n	"detailColumns": [\n		"document_name",\n		"document_image",\n		"department"\n	],\n	"columns": {\n		"document_name": {\n			"name": "Document Name",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Document name",\n				"class": "textbox",\n				"hint": "Document name",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"document_image": {\n			"name": "Document",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_files",\n				"externalColumn": "file_id",\n				"externalShowColumn": "file_id"\n			},\n			"editoptions": {\n				"type": "file",\n				"label": "Upload document",\n				"class": "file"\n			}\n		},\n\n		"department": {\n			"name": "Department",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_departments",\n				"externalColumn": "id",\n				"externalShowColumn": "dep_name"\n			},\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getDepartmentCombo",\n				"source_type": "function",\n				"label": "Department",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		}\n\n	},\n\n	"opertations": [\n		"add",\n		"view",\n		"delete"\n	],\n	"operationLabel": {\n		"addLabel": "Add Document",\n		"viewTitle": "View Document",\n		"deleteTitle": "Delete Document"\n	}\n}', '1', 7, 'all', 'admin', 'main', NULL),
(173, 10, 'Log In Reports-Lead', 'checkinreportshead', 'attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "checkinreportshead", "module": "default" }', '1', 1, 'all', 'admin', 'main', NULL),
(174, 10, 'Log In Reports-Manager', 'checkinreportshead', 'attendance', '{ "customAction": "true", "controller": "cmshelper", "method": "checkinreportshead", "module": "default" }', '1', 2, 'all', 'admin', 'main', NULL),
(175, 16, 'Developer Document Management', 'dev_document_management', 'tbl_documents', '{\n	"keyColumn": "document_id",\n	"wildsearch": "true",\n	"detailHeaderColumnPrefix": "Document: ",\n	"handleFile": "true",\n	"detailHeaderColumns": [\n		"document_id"\n	],\n	"breadCrumbColumn": "document_id",\n	"orderBy": {\n		"document_id": "DESC"\n	},\n	"listColumns": [\n		"document_name",\n		"document_image",\n		"department",\n		"description"\n\n	],\n	"showColumns": [\n		"document_name",\n		"document_image",\n		"department",\n		"description"\n	],\n	"detailColumns": [\n		"document_name",\n		"document_image",\n		"department",\n		"description"\n	],\n	"columns": {\n		"document_name": {\n			"name": "Document Name",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textbox",\n				"label": "Document name",\n				"class": "textbox",\n				"hint": "Document name",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"document_image": {\n			"name": "Document",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_files",\n				"externalColumn": "file_id",\n				"externalShowColumn": "file_id"\n			},\n			"editoptions": {\n				"type": "file",\n				"label": "Upload document",\n				"class": "file"\n			}\n		},\n\n		"department": {\n			"name": "Department",\n			"external": "true",\n			"externalOptions": {\n				"externalTable": "tbl_departments",\n				"externalColumn": "id",\n				"externalShowColumn": "dep_name"\n			},\n			"editoptions": {\n				"type": "select",\n				"source": "Cmshelper::getDepartmentCombo",\n				"source_type": "function",\n				"label": "Department",\n				"class": "select",\n				"validations": [\n					"required"\n				]\n			}\n		},\n		"description": {\n			"name": "Description",\n			"searchable": "true",\n			"sortable": "true",\n			"editoptions": {\n				"type": "textarea",\n				"label": "Description",\n				"class": "textarea",\n				"hint": "Description",\n				"validations": [\n					"required"\n				]\n			}\n		}\n\n	},\n\n	"opertations": [\n		"add",\n		"view",\n		"delete"\n	],\n	"operationLabel": {\n		"addLabel": "Add Document",\n		"viewTitle": "View Document",\n		"deleteTitle": "Delete Document"\n	}\n}', '1', 7, 'all', 'admin', 'main', NULL),
(177, 1, 'Graph Dashboard', 'graph_dashboard', 'tbl_project_tasks', '    {\n     "customAction": "true",\n     "controller": "Cmshelper",\n     "method": "graphdashboard",\n     "module": "default"\n    }', '0', 0, 'all', 'admin', 'main', NULL),
(205, 24, 'Project Report', 'report_project_resource', 'tbl_projects', '{\r\n    "keyColumn": "project_id",\r\n    "reportPanel": "true",\r\n    "reportTitle": "Project Report ",\r\n    "defaultDateRange": "weekly",\r\n    "dateRange": [\r\n        "weekly",\r\n        "monthly",\r\n        "custom"\r\n    ],\r\n    "dateField": "worked_on",\r\n    "dataSource": {\r\n        "queryFunction": "Cmshelper::getProjectResourceAnalatics"\r\n    },\r\n    "export": "true",\r\n    "listColumns": [\r\n        "project_name",\r\n        "project_category",\r\n        "total_allocated_hours",\r\n        "total_worked_hours",\r\n        "details",\r\n        "details_task"\r\n    ],\r\n    "exportColumns": [\r\n        "project_name",\r\n        "project_category",\r\n        "project_start_date",\r\n        "total_allocated_hours",\r\n        "total_worked_hours"\r\n    ],\r\n    "detailColumns": [\r\n        "project_name",\r\n        "project_category",\r\n        "total_allocated_hours",\r\n        "total_worked_hours",\r\n        "details",\r\n        "details_task"\r\n    ],\r\n    "columns": {\r\n        "project_name": {\r\n            "name": "Project",\r\n            "type": "text",\r\n            "defaultText": "Admin",\r\n            "sortable": "true",\r\n            "searchable": "searchable"\r\n        },\r\n        "project_category": {\r\n            "name": "Category",\r\n            "defaultText": "0",\r\n            "type": "text",\r\n            "sortable": "true",\r\n            "searchable": "searchable"\r\n        },\r\n        "total_allocated_hours": {\r\n            "name": "Total Allocated Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "total_worked_hours": {\r\n            "name": "Total Worked Hours",\r\n            "defaultText": "0",\r\n            "type": "text"\r\n        },\r\n        "details": {\r\n            "name": "Resource Details",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getDetailsText",\r\n            "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getProjectDetailsURL"\r\n            }\r\n        },\r\n        "details_task": {\r\n            "name": "Task Details",\r\n            "customColumn": "true",\r\n            "customaction": "Cmshelper::getDetailsText",\r\n            "popupoptions": {\r\n                "type": "popup",\r\n                "customaction": "Cmshelper::getProjectTaskDetailsURL"\r\n            }\r\n        }\r\n    }\r\n}', '1', 10, 'all', 'admin', 'main', NULL);
