8159f453 by Yashwant

Merge branch 'master' of http://54.197.18.130/yashwant/hdfc

2 parents 345d2b9a a3290257
......@@ -103,8 +103,57 @@ class FrameworkDbSchema extends Migration {
$table->string('userremarks', 5000);
$table->longText('userdata');
$table->string('group', 200)->index('group');
$table->integer('attempt');
$table->string('priority', 10);
$table->longText('question');
});
DB::statement("ALTER TABLE `crmcalls` ADD INDEX(`created_at`);");
Schema::create('crmcalls_archive', function(Blueprint $table)
{
$table->bigIncrements('id');
$table->timestamps();
$table->string('number', 100)->index('number');
$table->integer('user_id')->index('user_id');
$table->integer('sipid_id');
$table->integer('crm_id')->index('crm_id');
$table->string('client', 200)->index('campaign_id');
$table->string('department', 200)->index('list_id');
$table->string('state', 50);
$table->string('hsource', 100);
$table->string('type', 50);
$table->string('statuscode', 20);
$table->string('status', 100)->index('status');
$table->string('substatus', 100);
$table->integer('dialline_id');
$table->string('did', 50)->index('did');
$table->bigInteger('ts_Wait');
$table->bigInteger('ts_Call');
$table->bigInteger('ts_Talk');
$table->bigInteger('ts_Recstart');
$table->bigInteger('ts_Recend');
$table->bigInteger('ts_Dispo');
$table->bigInteger('ts_Close');
$table->integer('waitSec');
$table->integer('callSec');
$table->integer('talkSec');
$table->integer('recstartSec');
$table->integer('recendSec');
$table->integer('dispoSec');
$table->longText('data');
$table->integer('recsize');
$table->string('uniqueid', 100)->index('uniqueid');
$table->string('userstatus', 200)->index('userstatus');
$table->string('usersubstatus', 200);
$table->dateTime('usercallback');
$table->string('userremarks', 5000);
$table->longText('userdata');
$table->string('group', 200)->index('group');
$table->integer('attempt');
$table->string('priority', 10);
$table->longText('question');
});
DB::statement("ALTER TABLE `crmcalls_archive` ADD INDEX(`created_at`);");
Schema::create('crmcampaigns', function(Blueprint $table)
{
......@@ -365,6 +414,13 @@ class FrameworkDbSchema extends Migration {
$table->dateTime('dialer_lastcall')->index('dialer_lastcall');
$table->integer('crmlist_id')->index('crmlist_id');
$table->string('group', 200)->index('group');
$table->string('bttc', 20);
$table->string('service_vs_product', 30);
$table->string('resolution', 30);
$table->string('satisfaction', 30);
$table->string('final_call_assessment', 30);
$table->longText('question');
$table->string('mf_isa', 30);
});
DB::statement('ALTER TABLE `records` ADD FULLTEXT(`peopledata`);');
......@@ -528,6 +584,15 @@ class FrameworkDbSchema extends Migration {
$table->integer('confup');
$table->string('clients', 10000);
});
Schema::create('supervisor_message', function(Blueprint $table) {
$table->bigIncrements("id");
$table->timestamps();
$table->string("sup_id","20");
$table->string("agents","1000");
$table->string("message","500");
$table->string("status","1000");
});
Schema::create('userlogs', function(Blueprint $table)
{
......@@ -572,8 +637,111 @@ class FrameworkDbSchema extends Migration {
$table->string('exten', 50);
$table->string('extencontext', 100);
$table->string('manager', 200);
$table->string('dialmode_assign', 20);
});
Schema::create('agent_notes', function(Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->integer('user_id');
$table->string('field_1', 100);
$table->string('field_2', 100);
$table->string('field_3', 100);
$table->string('field_4', 100);
$table->string('field_5', 100);
$table->string('field_6', 100);
$table->string('field_7', 100);
$table->string('field_8', 100);
$table->string('field_9', 100);
$table->string('field_10', 100);
$table->string('field_11', 100);
$table->string('field_12', 100);
$table->string('field_13', 100);
$table->string('field_14', 100);
$table->string('field_15', 100);
$table->string('field_16', 100);
$table->string('field_17', 100);
$table->string('field_18', 100);
$table->string('field_19', 100);
$table->string('field_20', 100);
$table->string('field_21', 100);
$table->string('field_22', 100);
$table->string('field_23', 100);
$table->string('field_24', 100);
$table->string('field_25', 100);
$table->string('field_26', 100);
$table->string('field_27', 100);
$table->string('field_28', 100);
$table->string('field_29', 100);
$table->string('field_30', 100);
$table->string('field_31', 100);
$table->string('field_32', 100);
$table->string('field_33', 100);
$table->string('field_34', 100);
$table->string('field_35', 100);
$table->string('field_36', 100);
$table->string('field_37', 100);
$table->string('field_38', 100);
$table->string('field_39', 100);
$table->string('field_40', 100);
$table->string('field_41', 100);
$table->string('field_42', 100);
$table->string('field_43', 100);
$table->string('field_44', 100);
$table->string('field_45', 100);
$table->string('field_46', 100);
$table->string('field_47', 100);
$table->string('field_48', 100);
$table->string('field_49', 100);
$table->string('field_50', 100);
});
Schema::create('full_remark', function(Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->integer('call_id')->index('call_id');
$table->string('fullremark', 5000);
});
Schema::create('authentication_questions', function(Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->integer('question_no');
$table->integer('group_id');
$table->string('question', 200);
$table->string('opt_1', 100);
$table->string('opt_2', 100);
$table->string('opt_3', 100);
$table->string('opt_4', 100);
});
Schema::create('question', function(Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->integer('question_no');
$table->string('questions', 500);
$table->string('opt_1', 200);
$table->string('opt_2', 200);
$table->string('opt_3', 200);
$table->string('opt_4', 200);
$table->string('opt_5', 200);
$table->string('opt_6', 200);
$table->string('opt_7', 200);
$table->string('opt_8', 200);
$table->string('opt_9', 200);
$table->string('opt_10', 200);
$table->string('type', 100);
$table->string('compulsory_qes', 30);
});
Schema::create('question_tree', function(Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->integer('parent_id');
$table->string('parent_opt', 200);
$table->integer('question_id');
$table->integer('priority');
});
$server=Config::get("app.app_ip");
......@@ -687,10 +855,9 @@ class FrameworkDbSchema extends Migration {
\DB::table('sipids')->delete();
$cnt=0;
for($j=1;$j<=20;$j++)
{
$sipids=array();
for($i=(($j*1000)+1);$i<=(($j*1000)+1000);$i++)
for($i=1;$i<=1000;$i++)
{
$sipids[$cnt++]=array(
'id' => $i,
......@@ -705,7 +872,6 @@ class FrameworkDbSchema extends Migration {
);
}
\DB::table('sipids')->insert($sipids);
}
\DB::table('users')->delete();
......@@ -714,7 +880,7 @@ class FrameworkDbSchema extends Migration {
array (
'id' => 1,
'username' => 'admin',
'password' => '$2y$10$rMIU1gBhkyJ4eGSTLOzpJu8AcWDxqkh.P1VKtxxpyGI2uoYRrsyIq',
'password' => '$2y$10$3IMlygICC0e0A0yZpbes.OiWPg41e0r71MkUOLRbSH5bNPlFqOayS',
'fullname' => 'Admin',
'email' => '[email protected]',
'status' => 'Active',
......
-- phpMyAdmin SQL Dump
-- version 4.5.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 24, 2018 at 10:49 AM
-- Server version: 10.0.28-MariaDB
-- PHP Version: 5.6.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `new_kstych_flexydial`
--
-- --------------------------------------------------------
--
-- Table structure for table `complaint_fields`
--
CREATE TABLE `complaint_fields` (
`id` bigint(20) NOT NULL,
`cust_band` varchar(5) NOT NULL,
`cust_type` varchar(50) NOT NULL,
`source_of_info` varchar(50) NOT NULL,
`service_type` varchar(50) NOT NULL,
`priority` varchar(10) NOT NULL,
`category` varchar(200) NOT NULL,
`sub_category` varchar(200) NOT NULL,
`resolving_branch` varchar(100) NOT NULL,
`cust_city` varchar(50) NOT NULL,
`acknowledge` varchar(10) NOT NULL,
`resolve_class_unit` varchar(50) NOT NULL,
`rbb` varchar(100) NOT NULL,
`non_rbb` varchar(100) NOT NULL,
`logging_branch_name` varchar(20) NOT NULL,
`logging_branch_code` varchar(20) NOT NULL,
`resolving_branch_code` int(20) NOT NULL,
`resolving_branch_w_code` varchar(200) NOT NULL,
`logging_branch_w_code` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `complaint_fields`
--
ALTER TABLE `complaint_fields`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `complaint_fields`
--
ALTER TABLE `complaint_fields`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump
-- version 4.5.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 24, 2018 at 10:49 AM
-- Server version: 10.0.28-MariaDB
-- PHP Version: 5.6.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `new_kstych_flexydial`
--
-- --------------------------------------------------------
--
-- Table structure for table `questionaire_details`
--
CREATE TABLE `questionaire_details` (
`id` bigint(10) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`user_id` varchar(10) NOT NULL,
`cust_id` varchar(20) NOT NULL,
`call_id` varchar(20) NOT NULL,
`name` varchar(50) NOT NULL,
`number` bigint(20) NOT NULL,
`question_time` timestamp NULL DEFAULT NULL,
`question` int(10) NOT NULL,
`primary_question` varchar(1500) NOT NULL,
`primary_response` varchar(500) NOT NULL,
`primary_text` varchar(500) NOT NULL,
`followup1_question` varchar(1500) NOT NULL,
`followup1_response` varchar(500) NOT NULL,
`followup1_text` varchar(500) NOT NULL,
`followup2_question` varchar(1500) NOT NULL,
`followup2_response` varchar(500) NOT NULL,
`followup2_text` varchar(500) NOT NULL,
`followup3_question` varchar(1500) NOT NULL,
`followup3_response` varchar(500) NOT NULL,
`followup3_text` varchar(500) NOT NULL,
`followup4_question` varchar(1500) NOT NULL,
`followup4_response` varchar(500) NOT NULL,
`followup4_text` varchar(500) NOT NULL,
`followup5_question` varchar(1500) NOT NULL,
`followup5_response` varchar(500) NOT NULL,
`followup5_text` varchar(500) NOT NULL,
`followup6_question` varchar(1500) NOT NULL,
`followup6_response` varchar(500) NOT NULL,
`followup6_text` varchar(500) NOT NULL,
`followup7_question` varchar(1500) NOT NULL,
`followup7_response` varchar(500) NOT NULL,
`followup7_text` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `questionaire_details`
--
ALTER TABLE `questionaire_details`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `questionaire_details`
--
ALTER TABLE `questionaire_details`
MODIFY `id` bigint(10) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!