update v1.0.3.3

This commit is contained in:
sujitprasad
2015-12-22 14:09:23 +05:30
parent 2bc3db252e
commit 696e0390fe
8590 changed files with 3456 additions and 818 deletions

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Agent;
use Illuminate\Database\Eloquent\Model;
class Agents extends Model
{
protected $table = 'agents';
protected $fillable = [
'user_name','first_name','last_name','email','phone','mobile','agent_sign',
'account_type','account_status','assign_group','primary_dpt','agent_tzone',
'daylight_save','limit_access','directory_listing','vocation_mode','assign_team'
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Agent;
use Illuminate\Database\Eloquent\Model;
class Assign_team_agent extends Model {
protected $table = 'team_assign_agent';
protected $fillable = ['id','team_id','agent_id'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Agent;
use Illuminate\Database\Eloquent\Model;
class Department extends Model
{
protected $table = 'department';
protected $fillable = [
'name', 'type', 'sla', 'manager', 'ticket_assignment', 'outgoing_email',
'template_set', 'auto_ticket_response', 'auto_message_response',
'auto_response_email', 'recipient', 'group_access', 'department_sign'
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Agent;
use Illuminate\Database\Eloquent\Model;
class Group_assign_department extends Model {
protected $table = 'group_assign_department';
protected $fillable = ['group_id','id','department_id'];
}

View File

@@ -0,0 +1,15 @@
<?php namespace App\Model\helpdesk\Agent;
use Illuminate\Database\Eloquent\Model;
class Groups extends Model
{
protected $table = 'groups';
protected $fillable = [
'name', 'group_status', 'can_create_ticket', 'can_edit_ticket',
'can_post_ticket', 'can_close_ticket', 'can_assign_ticket',
'can_trasfer_ticket', 'can_delete_ticket', 'can_ban_email',
'can_manage_canned', 'can_manage_faq', 'can_view_agent_stats',
'department_access', 'admin_notes'
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Agent;
use Illuminate\Database\Eloquent\Model;
class Teams extends Model
{
protected $table = 'teams';
protected $fillable = [
'name', 'status', 'team_lead', 'assign_alert', 'admin_notes'
];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Agent_panel;
use Illuminate\Database\Eloquent\Model;
class Canned extends Model {
/* define the table name */
protected $table = 'canned_response';
/* Define the fillable fields */
protected $fillable = ['user_id','title','message','created_at','updated_at'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Agent_panel;
use Illuminate\Database\Eloquent\Model;
class Organization extends Model {
/* define the table name */
protected $table = 'organization';
/* Define the fillable fields */
protected $fillable = ['id','name','phone','website','address','head','internal_notes'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Agent_panel;
use Illuminate\Database\Eloquent\Model;
class User_org extends Model {
/* define table name */
protected $table = 'user_assign_organization';
/* define fillable fields */
protected $fillable = ['id','org_id','user_id'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Agent_panel;
use Illuminate\Database\Eloquent\Model;
class User_org_head extends Model {
/* define table name */
protected $table = 'user_org_head';
/* define fillable fields */
protected $fillable = ['id','org_id','user_id','updated_at','created_at'];
}

View File

@@ -0,0 +1,12 @@
<?php namespace App\Model\helpdesk\Email;
use Illuminate\Database\Eloquent\Model;
class Banlist extends Model {
protected $table = 'banlist';
protected $fillable = [
'id', 'ban_status', 'email_address', 'internal_notes',
];
}

View File

@@ -0,0 +1,15 @@
<?php namespace App\Model\helpdesk\Email;
use Illuminate\Database\Eloquent\Model;
class Emails extends Model
{
protected $table = 'emails';
protected $fillable = [
'email_address', 'email_name', 'department', 'priority', 'help_topic',
'user_name', 'password', 'fetching_host', 'fetching_port', 'mailbox_protocol',
'folder', 'sending_host', 'sending_port', 'internal_notes', 'auto_response',
'fetching_status', 'move_to_folder', 'delete_email', 'do_nothing',
'sending_status', 'authentication', 'header_spoofing','imap_config'
];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\helpdesk\Email;
use Illuminate\Database\Eloquent\Model;
class Smtp extends Model
{
public $timestamps = false;
protected $table = 'send_mail';
protected $fillable = ['driver','port','host','encryption','name','email','password'];
}

View File

@@ -0,0 +1,12 @@
<?php namespace App\Model\helpdesk\Email;
use Illuminate\Database\Eloquent\Model;
class Template extends Model {
protected $table = 'template';
protected $fillable = [
'id','name','status','template_set_to_clone','language','internal_note'
];
}

View File

@@ -0,0 +1,15 @@
<?php namespace App\Model\helpdesk\Form;
use Illuminate\Database\Eloquent\Model;
class Fields extends Model {
protected $table = 'fields';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['forms_id','label','name', 'type', 'value','required'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Form;
use Illuminate\Database\Eloquent\Model;
class Form_details extends Model {
public $timestamps = false;
protected $table = 'form_details';
protected $fillable = ['id', 'label', 'type'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Form;
use Illuminate\Database\Eloquent\Model;
class Form_name extends Model {
public $timestamps = false;
protected $table = 'form_name';
protected $fillable = ['id', 'name', 'status', 'no_of_fields'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Form;
use Illuminate\Database\Eloquent\Model;
class Form_value extends Model {
public $timestamps = false;
protected $table = 'form_value';
protected $fillable = ['id', 'values'];
}

View File

@@ -0,0 +1,17 @@
<?php namespace App\Model\helpdesk\Form;
use Illuminate\Database\Eloquent\Model;
class Forms extends Model {
protected $table = 'forms';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['formname'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Guest;
use Illuminate\Database\Eloquent\Model;
class Guest_note extends Model {
public $timestamps = false;
protected $table = 'guest_note';
protected $fillable = ['id', 'heading', 'content'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Manage;
use Illuminate\Database\Eloquent\Model;
class Forms extends Model {
protected $table = 'forms';
/*
this is a custom Forms created by user himself
*/
protected $fillable = ['id','title','instruction','label','type','visibility','variable','internal_notes'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Manage;
use Illuminate\Database\Eloquent\Model;
class Help_topic extends Model
{
protected $table = 'help_topic';
protected $fillable = [
'id','topic', 'parent_topic', 'custom_form', 'department', 'ticket_status', 'priority',
'sla_plan', 'thank_page', 'ticket_num_format', 'internal_notes', 'status', 'type','auto_assign',
'auto_response'
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Manage;
use Illuminate\Database\Eloquent\Model;
class Sla_plan extends Model
{
protected $table = 'sla_plan';
protected $fillable = [
'name', 'grace_period', 'admin_note', 'status', 'transient', 'ticket_overdue'
];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
class Access extends Model
{
protected $table = 'access';
protected $fillable = [
'password_expire', 'reg_method','user_session',
'agent_session','reset_ticket_expire', 'password_reset',
'bind_agent_ip', 'reg_require', 'quick_access'
];
}

View File

@@ -0,0 +1,22 @@
<?php namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
class Alert extends Model {
/* Using alert_notice table */
protected $table = 'alert_notice';
/* Set fillable fields in table */
protected $fillable = [
'id','ticket_status','ticket_admin_email','ticket_department_manager',
'ticket_organization_accmanager','message_status','message_last_responder','message_assigned_agent',
'message_department_manager','message_organization_accmanager','internal_status','internal_last_responder',
'internal_assigned_agent','internal_department_manager','assignment_status','assignment_assigned_agent',
'assignment_team_leader','assignment_team_member','transfer_status','transfer_assigned_agent','transfer_department_manager',
'transfer_department_member','overdue_status','overdue_assigned_agent','overdue_department_manager',
'overdue_department_member','system_error','sql_error','excessive_failure'
];
}

View File

@@ -0,0 +1,12 @@
<?php namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
protected $table = 'company';
protected $fillable = [
'company_name', 'website', 'phone', 'address', 'landing_page', 'offline_page',
'thank_page', 'logo','use_logo'
];
}

View File

@@ -0,0 +1,16 @@
<?php namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
class Email extends Model {
/* Using Email table */
protected $table = 'email';
/* Set fillable fields in table */
protected $fillable = [
'id','template','sys_email','alert_email','admin_email','mta','email_fetching','strip',
'separator','all_emails','email_collaborator','attachment'
];
}

View File

@@ -0,0 +1,16 @@
<?php namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
class Responder extends Model {
/* Using auto_response table */
protected $table = 'auto_response';
/* Set fillable fields in table */
protected $fillable = [
'id','new_ticket','agent_new_ticket','submitter','participants','overlimit'
];
}

View File

@@ -0,0 +1,15 @@
<?php namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
class System extends Model {
/* Using System Table */
protected $table = 'system';
protected $fillable = [
'id','status','url','name','department','page_size','log_level','purge_log','name_format',
'time_farmat','date_format','date_time_format','day_date_time','time_zone','content'
];
}

View File

@@ -0,0 +1,14 @@
<?php namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
class Ticket extends Model {
/* Using Ticket table */
protected $table = 'ticket_settings';
/* Set fillable fields in table */
protected $fillable = [
'id','num_format','num_sequence','priority','sla','help_topic','max_open_ticket','collision_avoid',
'captcha','status','claim_response','assigned_ticket','answered_ticket','agent_mask','html','client_update','max_file_size'
];
}

View File

@@ -0,0 +1,9 @@
<?php namespace App\Model\helpdesk\Theme;
use Illuminate\Database\Eloquent\Model;
class Footer extends Model {
protected $table = 'footer';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,9 @@
<?php namespace App\Model\helpdesk\Theme;
use Illuminate\Database\Eloquent\Model;
class Footer2 extends Model {
protected $table = 'footer2';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\helpdesk\Theme;
use Illuminate\Database\Eloquent\Model;
class Footer3 extends Model {
protected $table = 'footer3';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\helpdesk\Theme;
use Illuminate\Database\Eloquent\Model;
class Footer4 extends Model {
protected $table = 'footer4';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Ticket_Collaborator extends Model
{
protected $table = 'ticket_collaborator';
protected $fillable = [
'id','isactive','ticket_id','user_id','role','updated_at','created_at'
];
}

View File

@@ -0,0 +1,9 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Ticket_Form_Data extends Model
{
protected $table = 'ticket_form_data';
protected $fillable = ['id','ticket_id','title','content','created_at','updated_at'];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Ticket_Priority extends Model {
public $timestamps = false;
protected $table = 'ticket_priority';
protected $fillable = [
'priority_id', 'priority', 'priority_desc', 'priority_color', 'priority_urgency', 'ispublic',
];
}

View File

@@ -0,0 +1,12 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Ticket_Status extends Model
{
protected $table = 'ticket_status';
protected $fillable = [
'id','name','state','message','mode','flag','sort','properties'
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Ticket_Thread extends Model
{
protected $table = 'ticket_thread';
protected $fillable = [
'id','pid','ticket_id','staff_id','user_id','thread_type','poster','source','is_internal','title','body','format','ip_address','created_at','updated_at'
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Ticket_attachments extends Model
{
protected $table = 'ticket_attachment';
protected $fillable = [
'id','thread_id','name','size','type','file','data','poster','updated_at','created_at'
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Ticket_source extends Model {
public $timestamps = false;
protected $table = 'ticket_source';
protected $fillable = [
'name','value',
];
}

View File

@@ -0,0 +1,11 @@
<?php namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
class Tickets extends Model
{
protected $table = 'tickets';
protected $fillable = [
'id','ticket_number','num_sequence','user_id','priority_id','sla','help_topic_id','max_open_ticket','collision_avoid','captcha','status','lock_by','lock_at','claim_response','assigned_ticket','answered_ticket','agent_mask','html','client_update','max_file_size','remember_token','reopened_at','duedate','closed_at','last_message_at','last_response_at','created_at','updated_at'
];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class date_format extends Model {
public $timestamps = false;
protected $table = 'date_format';
protected $fillable = ['id', 'format'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class date_time_format extends Model {
public $timestamps = false;
protected $table = 'date_time_format';
protected $fillable = ['id', 'format'];
}

View File

@@ -0,0 +1,16 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Email extends Model {
/* Using Email table */
protected $table = 'email';
/* Set fillable fields in table */
protected $fillable = [
'id','template','sys_email','alert_email','admin_email','mta','email_fetching','strip',
'separator','all_emails','email_collaborator','attachment'
];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Form_type extends Model {
protected $table = 'form_type';
protected $fillable = [
'id','type'
];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Form_visibility extends Model {
protected $table = 'form_visibility';
protected $fillable = [
'id','visibility'
];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Languages extends Model {
public $timestamps = false;
protected $table = 'languages';
protected $fillable = ['name', 'locale'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Logs extends Model {
public $timestamps = false;
protected $table = 'logs';
protected $fillable = ['id', 'level'];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class MailboxProtocol extends Model {
public $timestamps = false;
protected $table = 'mailbox_protocol';
protected $fillable = ['id', 'name'];
}

View File

@@ -0,0 +1,15 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Priority extends Model {
public $timestamps = false;
protected $table = 'priority';
protected $fillable = [
'id', 'name'
];
}

View File

@@ -0,0 +1,12 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Ticket_thread extends Model {
protected $table = 'ticket_thread';
protected $fillable = [
'id', 'ticket_id', 'ticket_subject', 'ticket_message', 'time', 'poster', 'created_at', 'updated_at'
];
}

View File

@@ -0,0 +1,13 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Time_format extends Model {
public $timestamps = false;
protected $table = 'time_format';
protected $fillable = ['id', 'format'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Timezones extends Model {
public $timestamps = false;
protected $table = 'timezone';
protected $fillable = ['name', 'location'];
}

View File

@@ -0,0 +1,12 @@
<?php namespace App\Model\helpdesk\Utility;
use Illuminate\Database\Eloquent\Model;
class Version_Check extends Model {
protected $table = 'version_check';
protected $fillable = ['current_version','new_version','updated_at','created_at'];
}