--
-- Host: localhost    Database: atendimento
-- ------------------------------------------------------


--
-- Table structure for table `livehelp_autoinvite`
--

CREATE TABLE `livehelp_autoinvite` (
  `idnum` int(10) NOT NULL auto_increment,
  `isactive` char(1) NOT NULL default '',
  `department` int(10) NOT NULL default '0',
  `message` text,
  `page` varchar(255) NOT NULL default '',
  `visits` int(8) NOT NULL default '0',
  `referer` varchar(255) NOT NULL default '',
  `typeof` varchar(255) NOT NULL default '',
  `seconds` int(11) unsigned NOT NULL default '0',
  PRIMARY KEY  (`idnum`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_autoinvite`
--

INSERT INTO `livehelp_autoinvite` VALUES (1,'Y',0,'5','',0,'','layer',60);

--
-- Table structure for table `livehelp_channels`
--

CREATE TABLE `livehelp_channels` (
  `id` int(10) NOT NULL auto_increment,
  `user_id` int(10) NOT NULL default '0',
  `statusof` char(1) NOT NULL default '',
  `startdate` bigint(8) NOT NULL default '0',
  `sessionid` varchar(40) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_channels`
--

INSERT INTO `livehelp_channels` VALUES (4,19,'P',20081112221018,'');

--
-- Table structure for table `livehelp_config`
--

CREATE TABLE `livehelp_config` (
  `version` varchar(10) NOT NULL default '2.14.6',
  `site_title` varchar(100) NOT NULL default '',
  `use_flush` varchar(10) NOT NULL default 'YES',
  `membernum` int(8) NOT NULL default '0',
  `offset` int(5) NOT NULL default '0',
  `show_typing` char(1) NOT NULL default '',
  `webpath` varchar(255) NOT NULL default '',
  `s_webpath` varchar(255) NOT NULL default '',
  `speaklanguage` varchar(60) NOT NULL default 'English',
  `scratch_space` text,
  `admin_refresh` varchar(30) NOT NULL default 'auto',
  `maxexe` int(5) default '180',
  `refreshrate` int(5) NOT NULL default '1',
  `chatmode` varchar(60) NOT NULL default 'xmlhttp-flush-refresh',
  `adminsession` char(1) NOT NULL default 'Y',
  `ignoreips` text,
  `directoryid` varchar(32) NOT NULL default '',
  `tracking` char(1) NOT NULL default 'N',
  `colorscheme` varchar(30) NOT NULL default 'blue',
  `matchip` char(1) NOT NULL default 'N',
  `gethostnames` char(1) NOT NULL default 'N',
  `maxrecords` int(10) NOT NULL default '75000',
  `maxreferers` int(10) NOT NULL default '50',
  `maxvisits` int(10) NOT NULL default '75',
  `maxmonths` int(10) NOT NULL default '12',
  `maxoldhits` int(10) NOT NULL default '1',
  `showgames` char(1) NOT NULL default 'Y',
  `showsearch` char(1) NOT NULL default 'Y',
  `showdirectory` char(1) NOT NULL default 'Y',
  `usertracking` char(1) NOT NULL default 'N',
  `resetbutton` char(1) NOT NULL default 'N',
  `keywordtrack` char(1) NOT NULL default 'N',
  `reftracking` char(1) NOT NULL default 'N',
  `topkeywords` int(10) NOT NULL default '50',
  `everythingelse` text,
  `rememberusers` char(1) NOT NULL default 'Y',
  `smtp_host` varchar(255) NOT NULL default '',
  `smtp_username` varchar(60) NOT NULL default '',
  `smtp_password` varchar(60) NOT NULL default '',
  `owner_email` varchar(255) NOT NULL default '',
  `smtp_portnum` int(10) NOT NULL default '25',
  PRIMARY KEY  (`version`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_config`
--

INSERT INTO `livehelp_config` VALUES ('2.15.0','Central de Atendimento','YES',0,0,'Y','http://www.fecilcam.br/atendimento/','http://www.fecilcam.br/atendimento/','Portuguese_Brazilian','\n Welcome to Crafty Syntax Live Help \n\n All the administrative functions are located to the left of this text. \n \nYou can use this section to keep notes for yourself and other admins, etc. \n \nTo change the text that is located in this box just click on the small edit \nbutton on the top right corner of this box. \n        ','auto',180,1,'xmlhttp-flush-refresh','Y','','','N','blue','N','N',75000,50,75,12,1,'Y','Y','Y','N','N','N','N',50,'YY','Y','','','','fabianokrul@gmail.com',25);

--
-- Table structure for table `livehelp_departments`
--

CREATE TABLE `livehelp_departments` (
  `recno` int(5) NOT NULL auto_increment,
  `nameof` varchar(30) NOT NULL default '',
  `onlineimage` varchar(255) NOT NULL default '',
  `offlineimage` varchar(255) NOT NULL default '',
  `layerinvite` varchar(255) NOT NULL default '',
  `requirename` char(1) NOT NULL default '',
  `messageemail` varchar(60) NOT NULL default '',
  `leaveamessage` varchar(10) NOT NULL default '',
  `opening` text,
  `offline` text,
  `creditline` char(1) NOT NULL default 'L',
  `imagemap` text,
  `whilewait` text,
  `timeout` int(5) NOT NULL default '150',
  `leavetxt` text,
  `topframeheight` int(10) NOT NULL default '35',
  `topbackground` varchar(255) NOT NULL default '',
  `colorscheme` varchar(255) NOT NULL default '',
  `speaklanguage` varchar(60) NOT NULL default '',
  `busymess` text,
  `emailfun` char(1) NOT NULL default 'Y',
  `dbfun` char(1) NOT NULL default 'Y',
  `everythingelse` text,
  `ordering` int(8) NOT NULL default '0',
  `smiles` char(1) NOT NULL default 'Y',
  `visible` int(1) NOT NULL default '1',
  PRIMARY KEY  (`recno`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_departments`
--

INSERT INTO `livehelp_departments` VALUES (1,'default','onoff_images/online1.gif','onoff_images/offline1.gif','dhtmlimage.gif','Y','fabianokrul@gmail.com','YES','<blockquote>Bem-vindo à Central de Atendimento, Por favor informe seu nome e sua mensagem.</blockquote>','<blockquote>Sorry no operators are currently online to provide Live support at this time.</blockquote>','L','<MAP NAME=myimagemap><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,0,400,197><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,157,213,257><AREA HREF=javascript:closeDHTML() SHAPE=RECT COORDS=237,157,400,257></MAP>','Please be patient while an operator is contacted... ',150,'<h3><SPAN CLASS=wh>LEAVE A MESSAGE:</SPAN></h3>Please type in your comments/questions in the below box <br> and provide an e-mail address so we can get back to you',45,'topclouds.gif','blue','','<blockquote>Sorry all operators are currently helping other clients and are unable to provide Live support at this time.<br>Would you like to continue to wait for an operator or leave a message?<br><table width=450><tr><td width=40%><a href=livehelp.php?page=livehelp.php&department=[department]&tab=1 target=_top><font size=+1>Continue to wait</font></a></td><td width=20% align=center><b>or</b></td><td width=40%><a href=leavemessage.php?department=[department]><font size=+1>Leave A Message</a></td></tr></table><blockquote>','Y','Y',NULL,0,'Y',1),(2,'Central de Atendimento','onoff_images/online1.gif','onoff_images/offline1.gif','','Y','fabianokrul@gmail.com','YES','<blockquote>Bem-vindo à Central de Atendimento, Por favor informe seu nome e sua mensagem.</blockquote>','<blockquote>Desculpe, todos os nossos atendentes estão offline.</blockquote>','L',NULL,'Por favor, aguarde o contato com o Atendente...',150,'<h3><SPAN CLASS=wh>LEAVE A MESSAGE:</SPAN></h3>Please type in your comments/questions in the below box <br> and provide an e-mail address so we can get back to you',45,'topclouds.gif','blue','Portuguese_Brazilian','<blockquote>Sorry all operators are currently helping other clients and are unable to provide Live support at this time.<br>Would you like to continue to wait for an operator or leave a message?<br><table width=450><tr><td width=40%><a href=livehelp.php?page=livehelp.php&department=[department]&tab=1 target=_top><font size=+1>Continue to wait</font></a></td><td width=20% align=center><b>or</b></td><td width=40%><a href=leavemessage.php?department=[department]><font size=+1>Leave A Message</a></td></tr></table><blockquote>','Y','Y',NULL,0,'Y',1);

--
-- Table structure for table `livehelp_identity_daily`
--

CREATE TABLE `livehelp_identity_daily` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `isnamed` char(1) NOT NULL default 'N',
  `groupidentity` int(11) NOT NULL default '0',
  `groupusername` int(11) NOT NULL default '0',
  `identity` varchar(100) NOT NULL default '',
  `cookieid` varchar(40) NOT NULL default '',
  `ipaddress` varchar(30) NOT NULL default '',
  `username` varchar(100) NOT NULL default '',
  `dateof` bigint(14) NOT NULL default '0',
  `uservisits` int(10) NOT NULL default '0',
  `seconds` int(10) NOT NULL default '0',
  `useragent` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `isnamed` (`isnamed`),
  KEY `groupidentity` (`groupidentity`),
  KEY `groupusername` (`groupusername`),
  KEY `identity` (`identity`),
  KEY `cookieid` (`cookieid`),
  KEY `username` (`username`),
  KEY `dateof` (`dateof`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_identity_daily`
--


--
-- Table structure for table `livehelp_identity_monthly`
--

CREATE TABLE `livehelp_identity_monthly` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `isnamed` char(1) NOT NULL default 'N',
  `groupidentity` int(11) NOT NULL default '0',
  `groupusername` int(11) NOT NULL default '0',
  `identity` varchar(100) NOT NULL default '',
  `cookieid` varchar(40) NOT NULL default '',
  `ipaddress` varchar(30) NOT NULL default '',
  `username` varchar(100) NOT NULL default '',
  `dateof` bigint(14) NOT NULL default '0',
  `uservisits` int(10) NOT NULL default '0',
  `seconds` int(10) NOT NULL default '0',
  `useragent` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `isnamed` (`isnamed`),
  KEY `groupidentity` (`groupidentity`),
  KEY `groupusername` (`groupusername`),
  KEY `identity` (`identity`),
  KEY `cookieid` (`cookieid`),
  KEY `username` (`username`),
  KEY `dateof` (`dateof`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_identity_monthly`
--


--
-- Table structure for table `livehelp_keywords_daily`
--

CREATE TABLE `livehelp_keywords_daily` (
  `recno` int(11) NOT NULL auto_increment,
  `parentrec` int(11) unsigned NOT NULL default '0',
  `referer` varchar(255) NOT NULL default '',
  `pageurl` varchar(255) NOT NULL default '',
  `keywords` varchar(255) NOT NULL default '',
  `dateof` int(8) NOT NULL default '0',
  `levelvisits` int(11) unsigned NOT NULL default '0',
  `directvisits` int(11) unsigned NOT NULL default '0',
  PRIMARY KEY  (`recno`),
  KEY `levelvisits` (`levelvisits`),
  KEY `dateof` (`dateof`),
  KEY `referer` (`referer`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_keywords_daily`
--


--
-- Table structure for table `livehelp_keywords_monthly`
--

CREATE TABLE `livehelp_keywords_monthly` (
  `recno` int(11) NOT NULL auto_increment,
  `parentrec` int(11) unsigned NOT NULL default '0',
  `referer` varchar(255) NOT NULL default '',
  `pageurl` varchar(255) NOT NULL default '',
  `keywords` varchar(255) NOT NULL default '',
  `dateof` int(8) NOT NULL default '0',
  `levelvisits` int(11) unsigned NOT NULL default '0',
  `directvisits` int(11) unsigned NOT NULL default '0',
  PRIMARY KEY  (`recno`),
  KEY `levelvisits` (`levelvisits`),
  KEY `dateof` (`dateof`),
  KEY `referer` (`referer`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_keywords_monthly`
--


--
-- Table structure for table `livehelp_layerinvites`
--

CREATE TABLE `livehelp_layerinvites` (
  `layerid` int(10) NOT NULL default '0',
  `name` varchar(60) NOT NULL default '',
  `imagename` varchar(60) NOT NULL default '',
  `imagemap` text,
  `department` varchar(60) NOT NULL default '',
  `user` int(10) NOT NULL default '0',
  PRIMARY KEY  (`layerid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_layerinvites`
--

INSERT INTO `livehelp_layerinvites` VALUES (1,'','layer-Phone.gif','<MAP NAME=myimagemap><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,0,472,150><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=241,150,484,256><AREA HREF=javascript:closeDHTML() SHAPE=RECT COORDS=0,150,241,250></MAP>','',0),(2,'','layer-Help_button.gif','<MAP NAME=myimagemap><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,0,400,197><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,157,213,257><AREA HREF=javascript:closeDHTML() SHAPE=RECT COORDS=237,157,400,257></MAP>','',0),(3,'','layer-Woman_invite.gif','<MAP NAME=myimagemap><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,0,400,197><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,157,213,257><AREA HREF=javascript:closeDHTML() SHAPE=RECT COORDS=237,157,400,257></MAP>','',0),(4,'','layer-Subsilver.gif','<MAP NAME=myimagemap><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,0,419,216><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,216,319,279><AREA HREF=javascript:closeDHTML() SHAPE=RECT COORDS=326,218,429,280></MAP>','',0),(5,'','layer-default.gif','<MAP NAME=myimagemap><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,0,400,197><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,157,213,257><AREA HREF=javascript:closeDHTML() SHAPE=RECT COORDS=237,157,400,257></MAP>','',0),(6,'','layer-Man_invite.gif','<MAP NAME=myimagemap><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,0,400,197><AREA HREF=javascript:openLiveHelp() SHAPE=RECT COORDS=0,157,213,257><AREA HREF=javascript:closeDHTML() SHAPE=RECT COORDS=237,157,400,257></MAP>','',0);

--
-- Table structure for table `livehelp_leavemessage`
--

CREATE TABLE `livehelp_leavemessage` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `email` varchar(255) NOT NULL default '',
  `subject` varchar(200) NOT NULL default '',
  `department` int(11) unsigned NOT NULL default '0',
  `dateof` bigint(14) NOT NULL default '0',
  `sessiondata` text,
  `deliminated` text,
  PRIMARY KEY  (`id`),
  KEY `department` (`department`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_leavemessage`
--


--
-- Table structure for table `livehelp_messages`
--

CREATE TABLE `livehelp_messages` (
  `id_num` int(10) NOT NULL auto_increment,
  `message` text,
  `channel` int(10) NOT NULL default '0',
  `timeof` bigint(14) NOT NULL default '0',
  `saidfrom` int(10) NOT NULL default '0',
  `saidto` int(10) NOT NULL default '0',
  `typeof` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`id_num`),
  KEY `channel` (`channel`),
  KEY `timeof` (`timeof`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_messages`
--


--
-- Table structure for table `livehelp_modules`
--

CREATE TABLE `livehelp_modules` (
  `id` int(10) NOT NULL auto_increment,
  `name` varchar(30) NOT NULL default '',
  `path` varchar(255) NOT NULL default '',
  `adminpath` varchar(255) NOT NULL default '',
  `query_string` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_modules`
--

INSERT INTO `livehelp_modules` VALUES (1,'Live Help!','livehelp.php','',''),(2,'Contact','leavemessage.php','',''),(3,'Q & A','user_qa.php','qa.php','');

--
-- Table structure for table `livehelp_modules_dep`
--

CREATE TABLE `livehelp_modules_dep` (
  `rec` int(10) NOT NULL auto_increment,
  `departmentid` int(10) NOT NULL default '0',
  `modid` int(10) NOT NULL default '0',
  `ordernum` int(8) NOT NULL default '0',
  `defaultset` char(1) NOT NULL default '',
  PRIMARY KEY  (`rec`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_modules_dep`
--

INSERT INTO `livehelp_modules_dep` VALUES (1,1,1,1,''),(2,1,2,2,'Y'),(6,2,2,2,'Y'),(5,2,1,1,'');

--
-- Table structure for table `livehelp_operator_channels`
--

CREATE TABLE `livehelp_operator_channels` (
  `id` int(10) NOT NULL auto_increment,
  `user_id` int(10) NOT NULL default '0',
  `channel` int(10) NOT NULL default '0',
  `userid` int(10) NOT NULL default '0',
  `statusof` char(1) NOT NULL default '',
  `startdate` bigint(8) NOT NULL default '0',
  `bgcolor` varchar(10) NOT NULL default '000000',
  `txtcolor` varchar(10) NOT NULL default '000000',
  `channelcolor` varchar(10) NOT NULL default 'F7FAFF',
  `txtcolor_alt` varchar(10) NOT NULL default '000000',
  PRIMARY KEY  (`id`),
  KEY `channel` (`channel`),
  KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_operator_channels`
--


--
-- Table structure for table `livehelp_operator_departments`
--

CREATE TABLE `livehelp_operator_departments` (
  `recno` int(10) NOT NULL auto_increment,
  `user_id` int(10) NOT NULL default '0',
  `department` int(10) NOT NULL default '0',
  `extra` varchar(100) NOT NULL default '',
  PRIMARY KEY  (`recno`),
  KEY `user_id` (`user_id`),
  KEY `department` (`department`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_operator_departments`
--

INSERT INTO `livehelp_operator_departments` VALUES (1,1,1,''),(2,1,2,''),(3,6,2,'');

--
-- Table structure for table `livehelp_operator_history`
--

CREATE TABLE `livehelp_operator_history` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `opid` int(11) unsigned NOT NULL default '0',
  `action` varchar(60) NOT NULL default '',
  `dateof` bigint(14) NOT NULL default '0',
  `sessionid` varchar(40) NOT NULL default '',
  `transcriptid` int(10) NOT NULL default '0',
  `totaltime` int(10) NOT NULL default '0',
  `channel` int(10) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `opid` (`opid`),
  KEY `dateof` (`dateof`)
) ENGINE=MyISAM AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_operator_history`
--

INSERT INTO `livehelp_operator_history` VALUES (1,1,'login',20081112195014,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(2,1,'Started Monitoring Traffic',20081112195440,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(3,1,'Logout',20081112204740,'43eaa2f41037b8d84c283333187c3c46',0,3446,0),(4,1,'Stopped Monitoring Traffic',20081112195440,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(5,1,'login',20081112214337,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(6,1,'Logout',20081112214428,'fb2235414c5ede41f507e7b6333ab211',0,51,0),(7,6,'login',20081112214432,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(8,6,'Started Monitoring Traffic',20081112214455,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(9,6,'Logout',20081112214534,'fb2235414c5ede41f507e7b6333ab211',0,62,0),(10,1,'login',20081112214538,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(11,1,'Logout',20081112214604,'fb2235414c5ede41f507e7b6333ab211',0,26,0),(12,6,'login',20081112214608,'fb2235414c5ede41f507e7b6333ab211',0,0,0),(13,6,'login',20081112214822,'c3d29201e4bc864d1cf895e39f1a7a5b',0,0,0),(14,6,'Logout',20081112214857,'c3d29201e4bc864d1cf895e39f1a7a5b',0,35,0),(15,1,'login',20081112214900,'c3d29201e4bc864d1cf895e39f1a7a5b',0,0,0),(16,1,'Logout',20081112214924,'c3d29201e4bc864d1cf895e39f1a7a5b',0,24,0),(17,6,'login',20081112214928,'c3d29201e4bc864d1cf895e39f1a7a5b',0,0,0),(18,6,'startchat',20081112215142,'',0,0,1),(19,6,'Started Chatting',20081112215147,'c3d29201e4bc864d1cf895e39f1a7a5b',0,0,0),(20,6,'Stopchat',20081112215301,'',1,0,0),(21,6,'Stopped Chatting',20081112215235,'c3d29201e4bc864d1cf895e39f1a7a5b',0,48,0),(22,1,'login',20081112215522,'7a46d12b0085ecb9317b33321d6fae0d',0,0,0),(23,6,'Stopped Monitoring Traffic',20081112215305,'c3d29201e4bc864d1cf895e39f1a7a5b',0,490,0),(24,1,'Logout',20081112215956,'7a46d12b0085ecb9317b33321d6fae0d',0,274,0),(25,6,'Logout',20081112215344,'c3d29201e4bc864d1cf895e39f1a7a5b',0,256,0);

--
-- Table structure for table `livehelp_paths_firsts`
--

CREATE TABLE `livehelp_paths_firsts` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `visit_recno` int(11) unsigned NOT NULL default '0',
  `exit_recno` int(11) unsigned NOT NULL default '0',
  `dateof` int(8) NOT NULL default '0',
  `visits` int(11) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `visit_recno` (`visit_recno`,`dateof`,`visits`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_paths_firsts`
--


--
-- Table structure for table `livehelp_paths_monthly`
--

CREATE TABLE `livehelp_paths_monthly` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `visit_recno` int(11) unsigned NOT NULL default '0',
  `exit_recno` int(11) unsigned NOT NULL default '0',
  `dateof` int(8) NOT NULL default '0',
  `visits` int(11) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `visit_recno` (`visit_recno`,`dateof`,`visits`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_paths_monthly`
--


--
-- Table structure for table `livehelp_qa`
--

CREATE TABLE `livehelp_qa` (
  `recno` int(10) NOT NULL auto_increment,
  `parent` int(10) NOT NULL default '0',
  `question` text,
  `typeof` varchar(10) NOT NULL default '',
  `status` varchar(20) NOT NULL default '',
  `username` varchar(60) NOT NULL default '',
  `ordernum` int(10) NOT NULL default '0',
  PRIMARY KEY  (`recno`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_qa`
--


--
-- Table structure for table `livehelp_questions`
--

CREATE TABLE `livehelp_questions` (
  `id` int(10) NOT NULL auto_increment,
  `department` int(10) NOT NULL default '0',
  `ordering` int(8) NOT NULL default '0',
  `headertext` text,
  `fieldtype` varchar(30) NOT NULL default '',
  `options` text,
  `flags` varchar(60) NOT NULL default '',
  `module` varchar(60) NOT NULL default '',
  `required` char(1) NOT NULL default 'N',
  PRIMARY KEY  (`id`),
  KEY `department` (`department`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_questions`
--

INSERT INTO `livehelp_questions` VALUES (1,1,0,'E-mail:','email','','','leavemessage','Y'),(2,1,0,'Question:','textarea','','','leavemessage','N'),(3,1,0,'Name','username','','','livehelp','N'),(5,1,1,'Question','textarea','','','livehelp','N'),(6,2,0,'Nome','username','','','livehelp','Y'),(7,2,1,'Questão','textarea','','','livehelp','Y'),(8,2,0,'E-mail:','email','','','leavemessage','Y'),(9,2,0,'Question:','textarea','','','leavemessage','N');

--
-- Table structure for table `livehelp_quick`
--

CREATE TABLE `livehelp_quick` (
  `id` int(10) NOT NULL auto_increment,
  `name` varchar(50) NOT NULL default '',
  `typeof` varchar(30) NOT NULL default '',
  `message` text,
  `visiblity` varchar(20) NOT NULL default '',
  `department` varchar(60) NOT NULL default '0',
  `user` int(10) NOT NULL default '0',
  `ishtml` varchar(3) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_quick`
--


--
-- Table structure for table `livehelp_referers_daily`
--

CREATE TABLE `livehelp_referers_daily` (
  `recno` int(11) NOT NULL auto_increment,
  `pageurl` varchar(255) NOT NULL default '0',
  `dateof` int(8) NOT NULL default '0',
  `levelvisits` int(11) unsigned NOT NULL default '0',
  `directvisits` int(11) unsigned NOT NULL default '0',
  `parentrec` int(11) unsigned NOT NULL default '0',
  `level` int(10) NOT NULL default '0',
  PRIMARY KEY  (`recno`),
  KEY `pageurl` (`pageurl`),
  KEY `parentrec` (`parentrec`),
  KEY `levelvisits` (`levelvisits`),
  KEY `directvisits` (`directvisits`),
  KEY `dateof` (`dateof`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_referers_daily`
--


--
-- Table structure for table `livehelp_referers_monthly`
--

CREATE TABLE `livehelp_referers_monthly` (
  `recno` int(11) NOT NULL auto_increment,
  `pageurl` varchar(255) NOT NULL default '0',
  `dateof` int(8) NOT NULL default '0',
  `levelvisits` int(11) unsigned NOT NULL default '0',
  `directvisits` int(11) unsigned NOT NULL default '0',
  `parentrec` int(11) unsigned NOT NULL default '0',
  `level` int(10) NOT NULL default '0',
  PRIMARY KEY  (`recno`),
  KEY `pageurl` (`pageurl`),
  KEY `parentrec` (`parentrec`),
  KEY `levelvisits` (`levelvisits`),
  KEY `directvisits` (`directvisits`),
  KEY `dateof` (`dateof`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_referers_monthly`
--


--
-- Table structure for table `livehelp_sessions`
--

CREATE TABLE `livehelp_sessions` (
  `session_id` varchar(100) NOT NULL default '',
  `session_data` text NOT NULL,
  `expires` int(11) NOT NULL default '0',
  PRIMARY KEY  (`session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_sessions`
--

INSERT INTO `livehelp_sessions` VALUES ('fb2235414c5ede41f507e7b6333ab211','',1226535004),('c3d29201e4bc864d1cf895e39f1a7a5b','',1226535204),('7a46d12b0085ecb9317b33321d6fae0d','',1226535836);

--
-- Table structure for table `livehelp_smilies`
--

CREATE TABLE `livehelp_smilies` (
  `smilies_id` smallint(5) unsigned NOT NULL auto_increment,
  `code` varchar(50) default NULL,
  `smile_url` varchar(100) default NULL,
  `emoticon` varchar(75) default NULL,
  PRIMARY KEY  (`smilies_id`)
) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_smilies`
--

INSERT INTO `livehelp_smilies` VALUES (1,':D','icon_biggrin.gif','Very Happy'),(2,':-D','icon_biggrin.gif','Very Happy'),(3,':grin:','icon_biggrin.gif','Very Happy'),(4,':)','icon_smile.gif','Smile'),(5,':-)','icon_smile.gif','Smile'),(6,':smile:','icon_smile.gif','Smile'),(7,':(','icon_sad.gif','Sad'),(8,':-(','icon_sad.gif','Sad'),(9,':sad:','icon_sad.gif','Sad'),(10,':o','icon_surprised.gif','Surprised'),(11,':-o','icon_surprised.gif','Surprised'),(12,':eek:','icon_surprised.gif','Surprised'),(13,':shock:','icon_eek.gif','Shocked'),(14,':?','icon_confused.gif','Confused'),(15,':-?','icon_confused.gif','Confused'),(16,':???:','icon_confused.gif','Confused'),(17,'8)','icon_cool.gif','Cool'),(18,'8-)','icon_cool.gif','Cool'),(19,':cool:','icon_cool.gif','Cool'),(20,':lol:','icon_lol.gif','Laughing'),(21,':x','icon_mad.gif','Mad'),(22,':-x','icon_mad.gif','Mad'),(23,':mad:','icon_mad.gif','Mad'),(24,':P','icon_razz.gif','Razz'),(25,':-P','icon_razz.gif','Razz'),(26,':razz:','icon_razz.gif','Razz'),(27,':oops:','icon_redface.gif','Embarassed'),(28,':cry:','icon_cry.gif','Crying or Very sad'),(29,':evil:','icon_evil.gif','Evil or Very Mad'),(30,':twisted:','icon_twisted.gif','Twisted Evil'),(31,':roll:','icon_rolleyes.gif','Rolling Eyes'),(32,':wink:','icon_wink.gif','Wink'),(33,';)','icon_wink.gif','Wink'),(34,';-)','icon_wink.gif','Wink'),(35,':!:','icon_exclaim.gif','Exclamation'),(36,':?:','icon_question.gif','Question'),(37,':idea:','icon_idea.gif','Idea'),(38,':arrow:','icon_arrow.gif','Arrow'),(39,':|','icon_neutral.gif','Neutral'),(40,':-|','icon_neutral.gif','Neutral'),(41,':neutral:','icon_neutral.gif','Neutral'),(42,':mrgreen:','icon_mrgreen.gif','Mr. Green');

--
-- Table structure for table `livehelp_transcripts`
--

CREATE TABLE `livehelp_transcripts` (
  `recno` int(10) NOT NULL auto_increment,
  `who` varchar(100) NOT NULL default '',
  `endtime` bigint(14) default NULL,
  `transcript` text,
  `sessionid` varchar(40) NOT NULL default '',
  `sessiondata` text,
  `department` int(10) NOT NULL default '0',
  `email` varchar(100) NOT NULL default '',
  `starttime` bigint(14) NOT NULL default '0',
  `duration` int(11) unsigned NOT NULL default '0',
  `operators` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`recno`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_transcripts`
--

INSERT INTO `livehelp_transcripts` VALUES (1,'Fabiano Krul',20081112215234,' <b>Fabiano Krul : </b> <b>Questão</b><br>asdf <br> <b>fkrul : </b> Em que posso ajudar? <br> <b>Fabiano Krul : </b> Gostaria de saber como fazer inscricao para o vestibular <br> <b>fkrul : </b> nullstring <br> <b>fkrul : </b> bobinho, tu &eacute; burro mesmo! <br>','498b646152c31755ba74720ceae68b9f','<table width=100%><tr><td colspan=2 bgcolor=DDDDDD>Informação do Usuário</td></tr><tr><td align=left><b>Referência:</b> <a href=http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127 target=_blank>http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127</a><br><b>Status:</b>chat<br><b>Departamentos</b> Central de Atendimento<br><b>E-mail :</b><br><b>SessionID :</b>498b646152c31755ba74720ceae68b9f<br><b>identity :</b>172.16.1-cslhVISITOR<br><b>HostName:</b>host_lookup_not_enabled<br><b>User Agent :</b>Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3<br><b>OS :</b>Windows<br><b>OS Version :</b>XP<br><b>Browser :</b>Firefox<br><b>Browser_Version :</b><br><b>Type :</b>browser<br><b>Ip :</b>172.16.1.1<br><b>Cookied :</b>Y<br><b>New Session :</b>N<br><b> Questão:</b> <br><font color=000000>asdf</font>',2,'',20081112215142,52,'X6X');

--
-- Table structure for table `livehelp_users`
--

CREATE TABLE `livehelp_users` (
  `user_id` int(10) NOT NULL auto_increment,
  `lastaction` bigint(14) default '0',
  `username` varchar(30) NOT NULL default '',
  `password` varchar(60) NOT NULL default '',
  `isonline` char(1) NOT NULL default '',
  `isoperator` char(1) NOT NULL default 'N',
  `onchannel` int(10) NOT NULL default '0',
  `isadmin` char(1) NOT NULL default 'N',
  `department` int(5) NOT NULL default '0',
  `identity` varchar(255) NOT NULL default '',
  `status` varchar(30) NOT NULL default '',
  `isnamed` char(1) NOT NULL default 'N',
  `showedup` bigint(14) default NULL,
  `email` varchar(60) NOT NULL default '',
  `camefrom` varchar(255) NOT NULL default '',
  `show_arrival` char(1) NOT NULL default 'N',
  `user_alert` char(1) NOT NULL default '',
  `auto_invite` char(1) NOT NULL default 'N',
  `istyping` char(1) NOT NULL default '1',
  `visits` int(8) NOT NULL default '0',
  `jsrn` int(5) NOT NULL default '0',
  `hostname` varchar(255) NOT NULL default '',
  `useragent` varchar(255) NOT NULL default '',
  `ipaddress` varchar(255) NOT NULL default '',
  `sessionid` varchar(40) NOT NULL default '',
  `authenticated` char(1) NOT NULL default '',
  `cookied` char(1) NOT NULL default 'N',
  `sessiondata` text,
  `expires` bigint(14) NOT NULL default '0',
  `greeting` text,
  `photo` varchar(255) NOT NULL default '',
  `chataction` bigint(14) default '0',
  `new_session` char(1) NOT NULL default 'Y',
  `showtype` int(10) NOT NULL default '1',
  `chattype` char(1) NOT NULL default 'Y',
  `externalchats` varchar(255) NOT NULL default '',
  `layerinvite` int(10) NOT NULL default '0',
  `askquestions` char(1) NOT NULL default 'Y',
  `showvisitors` char(1) NOT NULL default 'N',
  `cookieid` varchar(40) NOT NULL default '',
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_users`
--

INSERT INTO `livehelp_users` VALUES (1,20081112215956,'admin','274348','N','Y',1,'Y',0,'172.16.1-cslhOPERATOR','offline','Y',0,'fabianokrul@gmail.com','','N','N','Y','1',5,1,'host_lookup_not_enabled','','172.16.1.1','96f4b7e499d13e97fdb3c5fe5e133ea1','N','Y',NULL,20081112221956,'How may I help You?','',0,'N',1,'','',0,'Y','N','256bd72499befa7f6239e5a479058ee6'),(6,20081112215344,'fkrul','274348','N','Y',0,'L',0,'172.16.1-cslhOPERATOR','offline','Y',0,'','','N','N','','1',4,2,'host_lookup_not_enabled','','172.16.1.1','c3d29201e4bc864d1cf895e39f1a7a5b','N','Y',NULL,20081112221344,'Em que posso ajudar?','',0,'N',1,'x','',0,'Y','N','478cd27fc784970f9c83677fb091d2ab'),(20,20081113083310,'201.24.209.45','','','N',-1,'N',2,'201.24.209-cslhVISITOR','Visiting','N',20081113083306,'','http://','N','0','N','1',0,0,'host_lookup_not_enabled','Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5','201.24.209.45','fa62c5419fa65d16a5677b0a8ddf0871','','Y',NULL,20081113085310,NULL,'',0,'N',1,'Y','',0,'Y','N','5a716d78f78afd331b21b15507ab34d6'),(21,20081113091922,'200.163.200.72','','','N',-1,'N',2,'200.163.200-cslhVISITOR','Visiting','N',20081113091921,'','http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127','N','0','N','1',0,0,'host_lookup_not_enabled','Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; MEGAUPLOAD 2.0)','200.163.200.72','9194a0c2040b8b73a62851d3bff0e45e','','Y',NULL,20081113093922,NULL,'',0,'N',1,'Y','',0,'Y','N','c154dab6bd1b3d4ffb090dc59e6d2e97'),(18,20081112220712,'172.16.1.1_4','','','N',-1,'N',2,'172.16.1-cslhVISITOR','Visiting','N',20081112220711,'','http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127','N','0','N','1',0,0,'host_lookup_not_enabled','Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3','172.16.1.1','1c3944c24e9563322ce7c20559c06cea','','Y',NULL,20081112222712,NULL,'',0,'N',1,'Y','',0,'Y','N','dc431d26c85ec3dbb9f736cafea185e6'),(19,20081112221023,'172.16.1.1_5','','','N',4,'N',2,'172.16.1-cslhVISITOR','Visiting','N',20081112221011,'','http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127','N','0','N','1',0,3,'host_lookup_not_enabled','Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3','172.16.1.1','1ebd93d1b998933773326f520daca783','','Y',NULL,20081112223023,NULL,'',0,'N',1,'Y','',0,'Y','N','7de9102843804a18265e6c908edfde19');

--
-- Table structure for table `livehelp_visit_track`
--

CREATE TABLE `livehelp_visit_track` (
  `recno` int(10) NOT NULL auto_increment,
  `sessionid` varchar(40) NOT NULL default '0',
  `location` varchar(255) NOT NULL default '',
  `page` bigint(14) NOT NULL default '0',
  `title` varchar(100) NOT NULL default '',
  `whendone` bigint(14) NOT NULL default '0',
  `referrer` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`recno`),
  KEY `sessionid` (`sessionid`),
  KEY `location` (`location`),
  KEY `page` (`page`),
  KEY `whendone` (`whendone`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_visit_track`
--

INSERT INTO `livehelp_visit_track` VALUES (10,'fa62c5419fa65d16a5677b0a8ddf0871','http://200.201.19.20/atendimento.html',1,'Untitled Document',20081113083306,'http://'),(11,'9194a0c2040b8b73a62851d3bff0e45e','http://www.fecilcam.br/atendimento.html',1,'Untitled Document',20081113091921,'http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127'),(9,'1ebd93d1b998933773326f520daca783','http://www.fecilcam.br/atendimento.html',1,'Untitled Document',20081112221011,'http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127'),(8,'1c3944c24e9563322ce7c20559c06cea','http://www.fecilcam.br/atendimento.html',1,'Untitled Document',20081112220711,'http://www.fecilcam.br/index.php?option=com_wrapper&Itemid=127');

--
-- Table structure for table `livehelp_visits_daily`
--

CREATE TABLE `livehelp_visits_daily` (
  `recno` int(11) NOT NULL auto_increment,
  `pageurl` varchar(255) NOT NULL default '0',
  `dateof` int(8) NOT NULL default '0',
  `levelvisits` int(11) unsigned NOT NULL default '0',
  `directvisits` int(11) unsigned NOT NULL default '0',
  `parentrec` int(11) unsigned NOT NULL default '0',
  `level` int(10) NOT NULL default '0',
  PRIMARY KEY  (`recno`),
  KEY `pageurl` (`pageurl`),
  KEY `parentrec` (`parentrec`),
  KEY `levelvisits` (`levelvisits`),
  KEY `directvisits` (`directvisits`),
  KEY `dateof` (`dateof`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_visits_daily`
--


--
-- Table structure for table `livehelp_visits_monthly`
--

CREATE TABLE `livehelp_visits_monthly` (
  `recno` int(11) NOT NULL auto_increment,
  `pageurl` varchar(255) NOT NULL default '0',
  `dateof` int(8) NOT NULL default '0',
  `levelvisits` int(11) unsigned NOT NULL default '0',
  `directvisits` int(11) unsigned NOT NULL default '0',
  `parentrec` int(11) unsigned NOT NULL default '0',
  `level` int(10) NOT NULL default '0',
  PRIMARY KEY  (`recno`),
  KEY `pageurl` (`pageurl`),
  KEY `parentrec` (`parentrec`),
  KEY `levelvisits` (`levelvisits`),
  KEY `directvisits` (`directvisits`),
  KEY `dateof` (`dateof`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `livehelp_visits_monthly`
--


--
-- Dumping routines for database 'atendimento'
--
DELIMITER ;;
DELIMITER ;


