update v1.0.5

This commit is contained in:
sujitprasad
2016-01-25 20:45:35 +05:30
parent 0b8ebb9c70
commit e7149e34e4
252 changed files with 9008 additions and 3152 deletions

View File

@@ -6,6 +6,6 @@ class Group_assign_department extends Model {
protected $table = 'group_assign_department';
protected $fillable = ['group_id','id','department_id'];
protected $fillable = ['group_id','department_id'];
}

View File

@@ -8,7 +8,7 @@ class Groups extends Model
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_transfer_ticket', 'can_delete_ticket', 'can_ban_email',
'can_manage_canned', 'can_manage_faq', 'can_view_agent_stats',
'department_access', 'admin_notes'
];

View File

@@ -4,7 +4,7 @@ use Illuminate\Database\Eloquent\Model;
class Fields extends Model {
protected $table = 'fields';
protected $table = 'custom_form_fields';
/**
* The attributes that are mass assignable.
@@ -12,4 +12,4 @@ class Fields extends Model {
* @var array
*/
protected $fillable = ['forms_id','label','name', 'type', 'value','required'];
}
}

View File

@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class Forms extends Model {
protected $table = 'forms';
protected $table = 'custom_forms';
/**
* The attributes that are mass assignable.

View File

@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class Alert extends Model {
/* Using alert_notice table */
protected $table = 'alert_notice';
protected $table = 'settings_alert_notice';
/* Set fillable fields in table */
protected $fillable = [

View File

@@ -4,7 +4,7 @@ use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
protected $table = 'company';
protected $table = 'settings_company';
protected $fillable = [
'company_name', 'website', 'phone', 'address', 'landing_page', 'offline_page',
'thank_page', 'logo','use_logo'

View File

@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class Email extends Model {
/* Using Email table */
protected $table = 'email';
protected $table = 'settings_email';
/* Set fillable fields in table */
protected $fillable = [
'id','template','sys_email','alert_email','admin_email','mta','email_fetching','strip',

View File

@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class Responder extends Model {
/* Using auto_response table */
protected $table = 'auto_response';
protected $table = 'settings_auto_response';
/* Set fillable fields in table */
protected $fillable = [

View File

@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class System extends Model {
/* Using System Table */
protected $table = 'system';
protected $table = 'settings_system';
protected $fillable = [
'id','status','url','name','department','page_size','log_level','purge_log','name_format',

View File

@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class Ticket extends Model {
/* Using Ticket table */
protected $table = 'ticket_settings';
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',

View File

@@ -0,0 +1,11 @@
<?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'];
}

View File

@@ -2,10 +2,9 @@
use Illuminate\Database\Eloquent\Model;
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','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'
];
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'];
}

View File

@@ -8,6 +8,6 @@ class MailboxProtocol extends Model {
protected $table = 'mailbox_protocol';
protected $fillable = ['id', 'name'];
protected $fillable = ['id', 'name', 'value'];
}

View File

@@ -20,7 +20,7 @@ class Article extends Model {
];
/* define the table name to get the properties of article model as protected */
protected $table = 'article';
protected $table = 'kb_article';
/* define the fillable field in the table */
protected $fillable = ['name', 'slug', 'description', 'type', 'status'];

View File

@@ -4,7 +4,7 @@ use Illuminate\Database\Eloquent\Model;
class Category extends Model {
protected $table = 'category';
protected $table = 'kb_category';
protected $fillable = ['id', 'slug', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
}

View File

@@ -8,7 +8,7 @@ use Illuminate\Database\Eloquent\Model;
*/
class Comment extends Model {
protected $table = 'comment';
protected $table = 'kb_comment';
protected $fillable = ['article_id', 'name', 'email', 'website', 'comment', 'status'];
}

View File

@@ -4,7 +4,7 @@ use Illuminate\Database\Eloquent\Model;
class Page extends Model {
protected $table = 'pages';
protected $table = 'kb_pages';
protected $fillable = ['name', 'slug', 'status', 'visibility', 'description'];
}

View File

@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
class Relationship extends Model {
/* define the table */
protected $table = 'article_relationship';
protected $table = 'kb_article_relationship';
/* define fillable fields */
protected $fillable = ['id', 'category_id', 'article_id'];

View File

@@ -9,7 +9,7 @@ class Settings extends Model {
* @param $table, $fillable
* @package default
*/
protected $table = 'settings';
protected $table = 'kb_settings';
protected $fillable = ['language', 'dateformat', 'company_name', 'website', 'phone', 'address', 'logo', 'timezone',
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password'];