update v1.0.6
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
<?php namespace App\Model\helpdesk\Agent;
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
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'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Agent;
|
||||
<?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'];
|
||||
protected $table = 'team_assign_agent';
|
||||
protected $fillable = ['id', 'team_id', 'agent_id'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,16 @@
|
||||
<?php namespace App\Model\helpdesk\Agent;
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
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'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Agent;
|
||||
<?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','department_id'];
|
||||
protected $table = 'group_assign_department';
|
||||
protected $fillable = ['group_id', 'department_id'];
|
||||
|
||||
}
|
||||
|
@@ -1,15 +1,18 @@
|
||||
<?php namespace App\Model\helpdesk\Agent;
|
||||
<?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_transfer_ticket', 'can_delete_ticket', 'can_ban_email',
|
||||
'can_manage_canned', 'can_manage_faq', 'can_view_agent_stats',
|
||||
'department_access', 'admin_notes'
|
||||
];
|
||||
}
|
||||
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_transfer_ticket', 'can_delete_ticket', 'can_ban_email',
|
||||
'can_manage_canned', 'can_manage_faq', 'can_view_agent_stats',
|
||||
'department_access', 'admin_notes'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Agent;
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
class Teams extends Model {
|
||||
|
||||
protected $table = 'teams';
|
||||
protected $fillable = [
|
||||
'name', 'status', 'team_lead', 'assign_alert', 'admin_notes'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,15 @@
|
||||
<?php namespace App\Model\helpdesk\Agent_panel;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Canned extends Model {
|
||||
/* define the table name */
|
||||
|
||||
/* define the table name */
|
||||
protected $table = 'canned_response';
|
||||
protected $table = 'canned_response';
|
||||
|
||||
/* Define the fillable fields */
|
||||
protected $fillable = ['user_id','title','message','created_at','updated_at'];
|
||||
/* Define the fillable fields */
|
||||
protected $fillable = ['user_id', 'title', 'message', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,15 @@
|
||||
<?php namespace App\Model\helpdesk\Agent_panel;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Organization extends Model {
|
||||
/* define the table name */
|
||||
|
||||
/* define the table name */
|
||||
protected $table = 'organization';
|
||||
protected $table = 'organization';
|
||||
|
||||
/* Define the fillable fields */
|
||||
protected $fillable = ['id','name','phone','website','address','head','internal_notes'];
|
||||
/* Define the fillable fields */
|
||||
protected $fillable = ['id', 'name', 'phone', 'website', 'address', 'head', 'internal_notes'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,15 @@
|
||||
<?php namespace App\Model\helpdesk\Agent_panel;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class User_org extends Model {
|
||||
/* define table name */
|
||||
|
||||
/* define table name */
|
||||
protected $table = 'user_assign_organization';
|
||||
protected $table = 'user_assign_organization';
|
||||
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id','org_id','user_id'];
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'org_id', 'user_id'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,15 @@
|
||||
<?php namespace App\Model\helpdesk\Agent_panel;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class User_org_head extends Model {
|
||||
/* define table name */
|
||||
|
||||
/* define table name */
|
||||
protected $table = 'user_org_head';
|
||||
protected $table = 'user_org_head';
|
||||
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id','org_id','user_id','updated_at','created_at'];
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'org_id', 'user_id', 'updated_at', 'created_at'];
|
||||
|
||||
}
|
||||
|
@@ -1,12 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Email;
|
||||
<?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',
|
||||
];
|
||||
protected $table = 'banlist';
|
||||
protected $fillable = [
|
||||
'id', 'ban_status', 'email_address', 'internal_notes',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,15 +1,18 @@
|
||||
<?php namespace App\Model\helpdesk\Email;
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
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', 'sending_encryption', 'internal_notes', 'auto_response',
|
||||
'fetching_status', 'move_to_folder', 'delete_email', 'do_nothing',
|
||||
'sending_status', 'authentication', 'header_spoofing', 'imap_config'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,10 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Email;
|
||||
<?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'];
|
||||
}
|
||||
class Smtp extends Model {
|
||||
|
||||
public $timestamps = false;
|
||||
protected $table = 'send_mail';
|
||||
protected $fillable = ['driver', 'port', 'host', 'encryption', 'name', 'email', 'password'];
|
||||
|
||||
}
|
||||
|
@@ -1,12 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Email;
|
||||
<?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'
|
||||
];
|
||||
protected $table = 'template';
|
||||
protected $fillable = [
|
||||
'id', 'name', 'status', 'template_set_to_clone', 'language', 'internal_note'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,15 +1,18 @@
|
||||
<?php namespace App\Model\helpdesk\Form;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Form;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Fields extends Model {
|
||||
|
||||
protected $table = 'custom_form_fields';
|
||||
protected $table = 'custom_form_fields';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['forms_id','label','name', 'type', 'value','required'];
|
||||
}
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['forms_id', 'label', 'name', 'type', 'value', 'required'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Form;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'form_details';
|
||||
protected $fillable = ['id', 'label', 'type'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Form;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'form_name';
|
||||
protected $fillable = ['id', 'name', 'status', 'no_of_fields'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Form;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'form_value';
|
||||
protected $fillable = ['id', 'values'];
|
||||
|
||||
}
|
||||
|
@@ -1,17 +1,18 @@
|
||||
<?php namespace App\Model\helpdesk\Form;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Form;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Forms extends Model {
|
||||
|
||||
protected $table = 'custom_forms';
|
||||
protected $table = 'custom_forms';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['formname'];
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['formname'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Guest;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'guest_note';
|
||||
protected $fillable = ['id', 'heading', 'content'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,15 @@
|
||||
<?php namespace App\Model\helpdesk\Manage;
|
||||
<?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'];
|
||||
protected $table = 'forms';
|
||||
/*
|
||||
this is a custom Forms created by user himself
|
||||
*/
|
||||
protected $fillable = ['id', 'title', 'instruction', 'label', 'type', 'visibility', 'variable', 'internal_notes'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,16 @@
|
||||
<?php namespace App\Model\helpdesk\Manage;
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
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'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Manage;
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
class Sla_plan extends Model {
|
||||
|
||||
protected $table = 'sla_plan';
|
||||
protected $fillable = [
|
||||
'name', 'grace_period', 'admin_note', 'status', 'transient', 'ticket_overdue'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,16 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?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'
|
||||
];
|
||||
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'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,22 +1,23 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Alert extends Model {
|
||||
/* Using alert_notice table */
|
||||
|
||||
/* Using alert_notice table */
|
||||
protected $table = 'settings_alert_notice';
|
||||
/* Set fillable fields in table */
|
||||
protected $fillable = [
|
||||
protected $table = 'settings_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'
|
||||
|
||||
];
|
||||
'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'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,12 +1,15 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Company extends Model
|
||||
{
|
||||
protected $table = 'settings_company';
|
||||
protected $fillable = [
|
||||
'company_name', 'website', 'phone', 'address', 'landing_page', 'offline_page',
|
||||
'thank_page', 'logo','use_logo'
|
||||
];
|
||||
}
|
||||
class Company extends Model {
|
||||
|
||||
protected $table = 'settings_company';
|
||||
protected $fillable = [
|
||||
'company_name', 'website', 'phone', 'address', 'landing_page', 'offline_page',
|
||||
'thank_page', 'logo', 'use_logo'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,16 +1,17 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Email extends Model {
|
||||
/* Using Email table */
|
||||
|
||||
/* Using Email table */
|
||||
protected $table = 'settings_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'
|
||||
|
||||
];
|
||||
protected $table = 'settings_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'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Plugin extends Model {
|
||||
|
||||
protected $table = 'plugins';
|
||||
protected $fillable = ['name','path','status'];
|
||||
protected $table = 'plugins';
|
||||
protected $fillable = ['name', 'path', 'status'];
|
||||
|
||||
}
|
||||
|
@@ -1,16 +1,17 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Responder extends Model {
|
||||
/* Using auto_response table */
|
||||
|
||||
/* Using auto_response table */
|
||||
protected $table = 'settings_auto_response';
|
||||
/* Set fillable fields in table */
|
||||
protected $fillable = [
|
||||
protected $table = 'settings_auto_response';
|
||||
/* Set fillable fields in table */
|
||||
protected $fillable = [
|
||||
|
||||
'id','new_ticket','agent_new_ticket','submitter','participants','overlimit'
|
||||
|
||||
];
|
||||
'id', 'new_ticket', 'agent_new_ticket', 'submitter', 'participants', 'overlimit'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,15 +1,17 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class System extends Model {
|
||||
/* Using System Table */
|
||||
|
||||
/* Using System Table */
|
||||
protected $table = 'settings_system';
|
||||
protected $fillable = [
|
||||
protected $table = 'settings_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'
|
||||
];
|
||||
'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', 'api_key', 'api_enable'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,14 +1,17 @@
|
||||
<?php namespace App\Model\helpdesk\Settings;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Ticket extends Model {
|
||||
/* Using Ticket table */
|
||||
|
||||
protected $table = 'settings_ticket';
|
||||
/* 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'
|
||||
];
|
||||
|
||||
/* Using Ticket table */
|
||||
protected $table = 'settings_ticket';
|
||||
/* 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'
|
||||
];
|
||||
}
|
||||
|
@@ -1,9 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Theme;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer extends Model {
|
||||
|
||||
protected $table = 'footer';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
protected $table = 'footer';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -1,9 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Theme;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer2 extends Model {
|
||||
|
||||
protected $table = 'footer2';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
protected $table = 'footer2';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Theme;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer3 extends Model {
|
||||
|
||||
protected $table = 'footer3';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
protected $table = 'footer3';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Theme;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer4 extends Model {
|
||||
|
||||
protected $table = 'footer4';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
protected $table = 'footer4';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Theme;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Widgets extends Model {
|
||||
|
||||
protected $table = 'widgets';
|
||||
|
||||
protected $fillable = ['name', 'value','created_at','updated_at'];
|
||||
protected $table = 'widgets';
|
||||
protected $fillable = ['name', 'value', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -1,12 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
class Ticket_Status extends Model {
|
||||
|
||||
protected $table = 'ticket_status';
|
||||
protected $fillable = [
|
||||
'id', 'name', 'state', 'message', 'mode', 'flag', 'sort', 'properties'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,24 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Ticket;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Model\helpdesk\Ticket\Ticket_attachments;
|
||||
|
||||
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'
|
||||
];
|
||||
|
||||
public function attach() {
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments', 'thread_id');
|
||||
}
|
||||
|
||||
public function delete() {
|
||||
$$this->attach()->delete();
|
||||
parent::delete();
|
||||
}
|
||||
|
||||
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'
|
||||
];
|
||||
}
|
||||
|
@@ -1,10 +1,39 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Ticket;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Model\helpdesk\Ticket\Ticket_attachments;
|
||||
use App\Model\helpdesk\Ticket\Ticket_Thread;
|
||||
use App\Model\helpdesk\Ticket\Ticket_Collaborator;
|
||||
use App\Model\helpdesk\Ticket\Ticket_Form_Data;
|
||||
|
||||
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','captcha','status','lock_by','lock_at','source','isoverdue','reopened','isanswered','is_deleted','closed','is_transfer','transfer_at','reopened_at','duedate','closed_at','last_message_at','last_response_at','created_at','updated_at'];
|
||||
|
||||
}
|
||||
protected $table = 'tickets';
|
||||
protected $fillable = ['id', 'ticket_number', 'num_sequence', 'user_id', 'priority_id', 'sla', 'help_topic_id', 'max_open_ticket', 'captcha', 'status', 'lock_by', 'lock_at', 'source', 'isoverdue', 'reopened', 'isanswered', 'is_deleted', 'closed', 'is_transfer', 'transfer_at', 'reopened_at', 'duedate', 'closed_at', 'last_message_at', 'last_response_at', 'created_at', 'updated_at'];
|
||||
|
||||
// public function attach(){
|
||||
// return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments',);
|
||||
//
|
||||
// }
|
||||
public function thread() {
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_thread', 'ticket_id');
|
||||
}
|
||||
|
||||
public function collaborator() {
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_Collaborator', 'ticket_id');
|
||||
}
|
||||
|
||||
public function formdata() {
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_Form_Data', 'ticket_id');
|
||||
}
|
||||
|
||||
public function delete() {
|
||||
$this->thread()->delete();
|
||||
$this->collaborator()->delete();
|
||||
$this->formdata()->delete();
|
||||
parent::delete();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'date_format';
|
||||
protected $fillable = ['id', 'format'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'date_time_format';
|
||||
protected $fillable = ['id', 'format'];
|
||||
|
||||
}
|
||||
|
@@ -1,16 +1,17 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Email extends Model {
|
||||
/* Using Email table */
|
||||
|
||||
/* 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'
|
||||
|
||||
];
|
||||
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'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Form_type extends Model {
|
||||
|
||||
protected $table = 'form_type';
|
||||
|
||||
protected $fillable = [
|
||||
'id','type'
|
||||
];
|
||||
protected $table = 'form_type';
|
||||
protected $fillable = [
|
||||
'id', 'type'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Form_visibility extends Model {
|
||||
|
||||
protected $table = 'form_visibility';
|
||||
|
||||
protected $fillable = [
|
||||
'id','visibility'
|
||||
];
|
||||
protected $table = 'form_visibility';
|
||||
protected $fillable = [
|
||||
'id', 'visibility'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'languages';
|
||||
protected $fillable = ['name', 'locale'];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Limit_Login extends Model {
|
||||
|
||||
protected $table = 'limit_login';
|
||||
|
||||
protected $fillable = ['email', 'ip_address', 'duration', 'attempt_time', 'created_at', 'updated_at'];
|
||||
protected $table = 'limit_login';
|
||||
protected $fillable = ['email', 'ip_address', 'duration', 'attempt_time', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?php
|
||||
|
||||
namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Log_notification extends Model {
|
||||
|
||||
protected $table = 'log_notification';
|
||||
|
||||
protected $fillable = ['id', 'log'];
|
||||
protected $table = 'log_notification';
|
||||
protected $fillable = ['id', 'log'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'logs';
|
||||
protected $fillable = ['id', 'level'];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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', 'value'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'mailbox_protocol';
|
||||
protected $fillable = ['id', 'name', 'value'];
|
||||
|
||||
}
|
||||
|
@@ -1,15 +1,15 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'
|
||||
];
|
||||
public $timestamps = false;
|
||||
protected $table = 'priority';
|
||||
protected $fillable = [
|
||||
'id', 'name'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,12 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'
|
||||
];
|
||||
protected $table = 'ticket_thread';
|
||||
protected $fillable = [
|
||||
'id', 'ticket_id', 'ticket_subject', 'ticket_message', 'time', 'poster', 'created_at', 'updated_at'
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'];
|
||||
public $timestamps = false;
|
||||
protected $table = 'time_format';
|
||||
protected $fillable = ['id', 'format'];
|
||||
|
||||
}
|
||||
|
@@ -1,12 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'];
|
||||
protected $table = 'version_check';
|
||||
protected $fillable = ['current_version', 'new_version', 'updated_at', 'created_at'];
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user