Applied fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
be5df5334f
commit
d637c2b23f
@@ -4,13 +4,12 @@ namespace App\Model\helpdesk\Agent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Agents extends 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'
|
||||
'daylight_save', 'limit_access', 'directory_listing', 'vocation_mode', 'assign_team',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Agent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Assign_team_agent extends Model {
|
||||
|
||||
class Assign_team_agent extends Model
|
||||
{
|
||||
protected $table = 'team_assign_agent';
|
||||
protected $fillable = ['id', 'team_id', 'agent_id'];
|
||||
|
||||
}
|
||||
|
@@ -4,13 +4,12 @@ namespace App\Model\helpdesk\Agent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Department extends 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'
|
||||
'auto_response_email', 'recipient', 'group_access', 'department_sign',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Agent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Group_assign_department extends Model {
|
||||
|
||||
class Group_assign_department extends Model
|
||||
{
|
||||
protected $table = 'group_assign_department';
|
||||
protected $fillable = ['group_id', 'department_id'];
|
||||
|
||||
}
|
||||
|
@@ -4,15 +4,14 @@ namespace App\Model\helpdesk\Agent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Groups extends 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'
|
||||
'department_access', 'admin_notes',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Agent;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Teams extends Model {
|
||||
|
||||
class Teams extends Model
|
||||
{
|
||||
protected $table = 'teams';
|
||||
protected $fillable = [
|
||||
'name', 'status', 'team_lead', 'assign_alert', 'admin_notes'
|
||||
'name', 'status', 'team_lead', 'assign_alert', 'admin_notes',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,12 +4,12 @@ namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Canned extends 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'];
|
||||
|
||||
}
|
||||
|
@@ -4,12 +4,12 @@ namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Organization extends 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'];
|
||||
|
||||
}
|
||||
|
@@ -4,12 +4,12 @@ namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class User_org extends Model {
|
||||
class User_org extends Model
|
||||
{
|
||||
/* define table name */
|
||||
|
||||
protected $table = 'user_assign_organization';
|
||||
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'org_id', 'user_id'];
|
||||
|
||||
}
|
||||
|
@@ -4,12 +4,12 @@ namespace App\Model\helpdesk\Agent_panel;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class User_org_head extends 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'];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Email;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Banlist extends Model {
|
||||
|
||||
class Banlist extends Model
|
||||
{
|
||||
protected $table = 'banlist';
|
||||
protected $fillable = [
|
||||
'id', 'ban_status', 'email_address', 'internal_notes',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,15 +4,14 @@ namespace App\Model\helpdesk\Email;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Emails extends 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', 'sending_encryption', 'internal_notes', 'auto_response',
|
||||
'fetching_status', 'move_to_folder', 'delete_email', 'do_nothing',
|
||||
'sending_status', 'authentication', 'header_spoofing', 'imap_config'
|
||||
'sending_status', 'authentication', 'header_spoofing', 'imap_config',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Email;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Smtp extends Model {
|
||||
|
||||
class Smtp extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'send_mail';
|
||||
protected $fillable = ['driver', 'port', 'host', 'encryption', 'name', 'email', 'password'];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Email;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Template extends Model {
|
||||
|
||||
class Template extends Model
|
||||
{
|
||||
protected $table = 'template';
|
||||
protected $fillable = [
|
||||
'id', 'name', 'status', 'template_set_to_clone', 'language', 'internal_note'
|
||||
'id', 'name', 'status', 'template_set_to_clone', 'language', 'internal_note',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,8 +4,8 @@ namespace App\Model\helpdesk\Form;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Fields extends Model {
|
||||
|
||||
class Fields extends Model
|
||||
{
|
||||
protected $table = 'custom_form_fields';
|
||||
|
||||
/**
|
||||
@@ -14,5 +14,4 @@ class Fields extends Model {
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['forms_id', 'label', 'name', 'type', 'value', 'required'];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Form;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Form_details extends Model {
|
||||
|
||||
class Form_details extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'form_details';
|
||||
protected $fillable = ['id', 'label', 'type'];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Form;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Form_name extends Model {
|
||||
|
||||
class Form_name extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'form_name';
|
||||
protected $fillable = ['id', 'name', 'status', 'no_of_fields'];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Form;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Form_value extends Model {
|
||||
|
||||
class Form_value extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'form_value';
|
||||
protected $fillable = ['id', 'values'];
|
||||
|
||||
}
|
||||
|
@@ -4,8 +4,8 @@ namespace App\Model\helpdesk\Form;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Forms extends Model {
|
||||
|
||||
class Forms extends Model
|
||||
{
|
||||
protected $table = 'custom_forms';
|
||||
|
||||
/**
|
||||
@@ -14,5 +14,4 @@ class Forms extends Model {
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['formname'];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Guest;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Guest_note extends Model {
|
||||
|
||||
class Guest_note extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'guest_note';
|
||||
protected $fillable = ['id', 'heading', 'content'];
|
||||
|
||||
}
|
||||
|
@@ -4,12 +4,11 @@ namespace App\Model\helpdesk\Manage;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Forms extends 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'];
|
||||
|
||||
}
|
||||
|
@@ -4,13 +4,12 @@ namespace App\Model\helpdesk\Manage;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Help_topic extends 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'
|
||||
'auto_response',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Manage;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Sla_plan extends Model {
|
||||
|
||||
class Sla_plan extends Model
|
||||
{
|
||||
protected $table = 'sla_plan';
|
||||
protected $fillable = [
|
||||
'name', 'grace_period', 'admin_note', 'status', 'transient', 'ticket_overdue'
|
||||
'name', 'grace_period', 'admin_note', 'status', 'transient', 'ticket_overdue',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,13 +4,12 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Access extends 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'
|
||||
'bind_agent_ip', 'reg_require', 'quick_access',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,7 +4,8 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Alert extends Model {
|
||||
class Alert extends Model
|
||||
{
|
||||
/* Using alert_notice table */
|
||||
|
||||
protected $table = 'settings_alert_notice';
|
||||
@@ -17,7 +18,6 @@ class Alert extends Model {
|
||||
'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'
|
||||
'overdue_department_member', 'system_error', 'sql_error', 'excessive_failure',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,12 +4,11 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Company extends 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'
|
||||
'thank_page', 'logo', 'use_logo',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,14 +4,14 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Email extends Model {
|
||||
class Email extends Model
|
||||
{
|
||||
/* 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'
|
||||
'separator', 'all_emails', 'email_collaborator', 'attachment',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Plugin extends Model {
|
||||
|
||||
class Plugin extends Model
|
||||
{
|
||||
protected $table = 'plugins';
|
||||
protected $fillable = ['name', 'path', 'status'];
|
||||
|
||||
}
|
||||
|
@@ -4,14 +4,14 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Responder extends Model {
|
||||
class Responder extends Model
|
||||
{
|
||||
/* Using auto_response table */
|
||||
|
||||
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',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,14 +4,14 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class System extends Model {
|
||||
class System extends Model
|
||||
{
|
||||
/* Using System Table */
|
||||
|
||||
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', 'api_key', 'api_enable'
|
||||
'time_farmat', 'date_format', 'date_time_format', 'day_date_time', 'time_zone', 'content', 'api_key', 'api_enable',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,14 +4,14 @@ namespace App\Model\helpdesk\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Ticket extends 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'
|
||||
'captcha', 'status', 'claim_response', 'assigned_ticket', 'answered_ticket', 'agent_mask', 'html', 'client_update', 'max_file_size',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer extends Model {
|
||||
|
||||
class Footer extends Model
|
||||
{
|
||||
protected $table = 'footer';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer2 extends Model {
|
||||
|
||||
class Footer2 extends Model
|
||||
{
|
||||
protected $table = 'footer2';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer3 extends Model {
|
||||
|
||||
class Footer3 extends Model
|
||||
{
|
||||
protected $table = 'footer3';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer4 extends Model {
|
||||
|
||||
class Footer4 extends Model
|
||||
{
|
||||
protected $table = 'footer4';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Theme;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Widgets extends Model {
|
||||
|
||||
class Widgets extends Model
|
||||
{
|
||||
protected $table = 'widgets';
|
||||
protected $fillable = ['name', 'value', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?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'
|
||||
];
|
||||
protected $table = 'ticket_collaborator';
|
||||
protected $fillable = [
|
||||
'id', 'isactive', 'ticket_id', 'user_id', 'role', 'updated_at', 'created_at',
|
||||
];
|
||||
}
|
||||
|
@@ -1,9 +1,11 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?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'];
|
||||
protected $table = 'ticket_form_data';
|
||||
protected $fillable = ['id', 'ticket_id', 'title', 'content', 'created_at', 'updated_at'];
|
||||
}
|
||||
|
@@ -1,11 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?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',
|
||||
];
|
||||
class Ticket_Priority extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'ticket_priority';
|
||||
protected $fillable = [
|
||||
'priority_id', 'priority', 'priority_desc', 'priority_color', 'priority_urgency', 'ispublic',
|
||||
];
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Ticket;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Ticket_Status extends Model {
|
||||
|
||||
class Ticket_Status extends Model
|
||||
{
|
||||
protected $table = 'ticket_status';
|
||||
protected $fillable = [
|
||||
'id', 'name', 'state', 'message', 'mode', 'flag', 'sort', 'properties'
|
||||
'id', 'name', 'state', 'message', 'mode', 'flag', 'sort', 'properties',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -3,22 +3,21 @@
|
||||
namespace App\Model\helpdesk\Ticket;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Model\helpdesk\Ticket\Ticket_attachments;
|
||||
|
||||
class Ticket_Thread extends 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'
|
||||
'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() {
|
||||
public function attach()
|
||||
{
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments', 'thread_id');
|
||||
}
|
||||
|
||||
public function delete() {
|
||||
public function delete()
|
||||
{
|
||||
$$this->attach()->delete();
|
||||
parent::delete();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,11 +1,13 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?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'
|
||||
];
|
||||
protected $table = 'ticket_attachment';
|
||||
protected $fillable = [
|
||||
'id', 'thread_id', 'name', 'size', 'type', 'file', 'data', 'poster', 'updated_at', 'created_at',
|
||||
];
|
||||
}
|
||||
|
@@ -1,11 +1,14 @@
|
||||
<?php namespace App\Model\helpdesk\Ticket;
|
||||
<?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',
|
||||
];
|
||||
class Ticket_source extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'ticket_source';
|
||||
protected $fillable = [
|
||||
'name', 'value',
|
||||
];
|
||||
}
|
||||
|
@@ -3,37 +3,35 @@
|
||||
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 {
|
||||
|
||||
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'];
|
||||
|
||||
// public function attach(){
|
||||
// return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments',);
|
||||
//
|
||||
//
|
||||
// }
|
||||
public function thread() {
|
||||
public function thread()
|
||||
{
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_thread', 'ticket_id');
|
||||
}
|
||||
|
||||
public function collaborator() {
|
||||
public function collaborator()
|
||||
{
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_Collaborator', 'ticket_id');
|
||||
}
|
||||
|
||||
public function formdata() {
|
||||
public function formdata()
|
||||
{
|
||||
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_Form_Data', 'ticket_id');
|
||||
}
|
||||
|
||||
public function delete() {
|
||||
public function delete()
|
||||
{
|
||||
$this->thread()->delete();
|
||||
$this->collaborator()->delete();
|
||||
$this->formdata()->delete();
|
||||
parent::delete();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class date_format extends Model {
|
||||
|
||||
class Date_format extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'date_format';
|
||||
protected $fillable = ['id', 'format'];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class date_time_format extends Model {
|
||||
|
||||
class Date_time_format extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'date_time_format';
|
||||
protected $fillable = ['id', 'format'];
|
||||
|
||||
}
|
||||
|
@@ -4,14 +4,14 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Email extends 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'
|
||||
'separator', 'all_emails', 'email_collaborator', 'attachment',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Form_type extends Model {
|
||||
|
||||
class Form_type extends Model
|
||||
{
|
||||
protected $table = 'form_type';
|
||||
protected $fillable = [
|
||||
'id', 'type'
|
||||
'id', 'type',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Form_visibility extends Model {
|
||||
|
||||
class Form_visibility extends Model
|
||||
{
|
||||
protected $table = 'form_visibility';
|
||||
protected $fillable = [
|
||||
'id', 'visibility'
|
||||
'id', 'visibility',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Languages extends Model {
|
||||
|
||||
class Languages extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'languages';
|
||||
protected $fillable = ['name', 'locale'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Limit_Login extends Model {
|
||||
|
||||
class Limit_Login extends Model
|
||||
{
|
||||
protected $table = 'limit_login';
|
||||
protected $fillable = ['email', 'ip_address', 'duration', 'attempt_time', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Log_notification extends Model {
|
||||
|
||||
class Log_notification extends Model
|
||||
{
|
||||
protected $table = 'log_notification';
|
||||
protected $fillable = ['id', 'log'];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Logs extends Model {
|
||||
|
||||
class Logs extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'logs';
|
||||
protected $fillable = ['id', 'level'];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MailboxProtocol extends Model {
|
||||
|
||||
class MailboxProtocol extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'mailbox_protocol';
|
||||
protected $fillable = ['id', 'name', 'value'];
|
||||
|
||||
}
|
||||
|
@@ -4,12 +4,11 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Priority extends Model {
|
||||
|
||||
class Priority extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'priority';
|
||||
protected $fillable = [
|
||||
'id', 'name'
|
||||
'id', 'name',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,10 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Ticket_thread extends 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'
|
||||
'id', 'ticket_id', 'ticket_subject', 'ticket_message', 'time', 'poster', 'created_at', 'updated_at',
|
||||
];
|
||||
|
||||
}
|
||||
|
@@ -4,10 +4,9 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Time_format extends Model {
|
||||
|
||||
class Time_format extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'time_format';
|
||||
protected $fillable = ['id', 'format'];
|
||||
|
||||
}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
<?php namespace App\Model\helpdesk\Utility;
|
||||
<?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'];
|
||||
class Timezones extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $table = 'timezone';
|
||||
protected $fillable = ['name', 'location'];
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\helpdesk\Utility;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Version_Check extends Model {
|
||||
|
||||
class Version_Check extends Model
|
||||
{
|
||||
protected $table = 'version_check';
|
||||
protected $fillable = ['current_version', 'new_version', 'updated_at', 'created_at'];
|
||||
|
||||
}
|
||||
|
@@ -5,8 +5,8 @@ namespace App\Model\kb;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Nicolaslopezj\Searchable\SearchableTrait;
|
||||
|
||||
class Article extends Model {
|
||||
|
||||
class Article extends Model
|
||||
{
|
||||
use SearchableTrait;
|
||||
|
||||
/**
|
||||
@@ -16,8 +16,8 @@ class Article extends Model {
|
||||
*/
|
||||
protected $searchable = [
|
||||
'columns' => [
|
||||
'name' => 10,
|
||||
'slug' => 10,
|
||||
'name' => 10,
|
||||
'slug' => 10,
|
||||
'description' => 10,
|
||||
],
|
||||
];
|
||||
@@ -26,5 +26,4 @@ class Article extends Model {
|
||||
protected $table = 'kb_article';
|
||||
/* define the fillable field in the table */
|
||||
protected $fillable = ['name', 'slug', 'description', 'type', 'status', 'publish_time'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Category extends Model {
|
||||
|
||||
class Category extends Model
|
||||
{
|
||||
protected $table = 'kb_category';
|
||||
protected $fillable = ['id', 'slug', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -5,12 +5,10 @@ namespace App\Model\kb;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Define the Model of comment table
|
||||
* @package default
|
||||
* Define the Model of comment table.
|
||||
*/
|
||||
class Comment extends Model {
|
||||
|
||||
class Comment extends Model
|
||||
{
|
||||
protected $table = 'kb_comment';
|
||||
protected $fillable = ['article_id', 'name', 'email', 'website', 'comment', 'status'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Contact extends Model {
|
||||
|
||||
class Contact extends Model
|
||||
{
|
||||
protected $table = 'contact';
|
||||
protected $fillable = ['name', 'subject', 'email', 'message'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Country extends Model {
|
||||
|
||||
class Country extends Model
|
||||
{
|
||||
public $table = 'country';
|
||||
protected $fillable = ['country_code', 'country_name'];
|
||||
|
||||
}
|
||||
|
@@ -4,8 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DateFormat extends Model {
|
||||
|
||||
class DateFormat extends Model
|
||||
{
|
||||
protected $table = 'date_time_format';
|
||||
|
||||
//protected $fillable = ['id', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Faq extends Model {
|
||||
|
||||
class Faq extends Model
|
||||
{
|
||||
protected $table = 'faq';
|
||||
protected $fillable = ['id', 'faq'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Options extends Model {
|
||||
|
||||
class Options extends Model
|
||||
{
|
||||
protected $table = 'options';
|
||||
protected $fillable = ['option_name', 'option_value', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Page extends Model {
|
||||
|
||||
class Page extends Model
|
||||
{
|
||||
protected $table = 'kb_pages';
|
||||
protected $fillable = ['name', 'slug', 'status', 'visibility', 'description'];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,11 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Relationship extends Model {
|
||||
class Relationship extends Model
|
||||
{
|
||||
/* define the table */
|
||||
|
||||
protected $table = 'kb_article_relationship';
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'category_id', 'article_id'];
|
||||
|
||||
}
|
||||
|
@@ -4,14 +4,12 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Settings extends Model {
|
||||
|
||||
class Settings extends Model
|
||||
{
|
||||
/**
|
||||
* @param $table, $fillable
|
||||
* @package default
|
||||
*/
|
||||
protected $table = 'kb_settings';
|
||||
protected $fillable = ['language', 'dateformat', 'company_name', 'website', 'phone', 'address', 'logo', 'timezone',
|
||||
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password'];
|
||||
|
||||
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password', ];
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Side1 extends Model {
|
||||
|
||||
class Side1 extends Model
|
||||
{
|
||||
protected $table = 'side1';
|
||||
protected $fillable = ['title', 'content'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Side2 extends Model {
|
||||
|
||||
class Side2 extends Model
|
||||
{
|
||||
protected $table = 'side2';
|
||||
protected $fillable = ['title', 'content'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Social extends Model {
|
||||
|
||||
class Social extends Model
|
||||
{
|
||||
protected $table = 'social';
|
||||
protected $fillable = ['linkedin', 'stumble', 'google', 'deviantart', 'flickr', 'skype', 'rss', 'twitter', 'facebook', 'youtube', 'vimeo', 'pinterest', 'dribbble', 'instagram'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Timezone extends Model {
|
||||
|
||||
class Timezone extends Model
|
||||
{
|
||||
protected $table = 'timezones';
|
||||
protected $fillable = ['id', 'name', 'location'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Zone extends Model {
|
||||
|
||||
class Zone extends Model
|
||||
{
|
||||
protected $table = 'zone';
|
||||
protected $fillable = ['zone_id', 'country_code', 'zone_name'];
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user