diff --git a/DB/update from 1.0.7.4 to 1.0.7.5/Updatedatabase.sql b/DB/update from 1.0.7.4 to 1.0.7.5/Updatedatabase.sql index 0f5d55cfc..d23f986fd 100644 --- a/DB/update from 1.0.7.4 to 1.0.7.5/Updatedatabase.sql +++ b/DB/update from 1.0.7.4 to 1.0.7.5/Updatedatabase.sql @@ -503,17 +503,17 @@ CREATE TABLE IF NOT EXISTS `templates` ( -- INSERT INTO `templates` (`id`, `name`, `variable`, `type`, `subject`, `message`, `description`, `created_at`, `updated_at`, `set_id`) VALUES -(1, 'assign-ticket', '', 1, '', '
Hello {!!$ticket_agent_name!!},

Ticket No: {!!$ticket_number!!}
Has been assigned to you by {!!$ticket_assigner!!} 

Thank You
Kind Regards,
{!!$system_from!!}
', '', NULL, NULL, 1), -(2, 'check-ticket', '', 2, '', '
Hello {!!$user!!},

Click the link below to view your Requested ticket
{!!$ticket_link_with_number!!}

Kind Regards,
{!!$system_from!!}
', '', NULL, NULL, 1), -(3, 'close-ticket', '', 3, '', '
Hello,

This message is regarding your ticket ID {!!$ticket_number!!}. We are changing the status of this ticket to ''Closed'' as the issue appears to be resolved.

Thank you
Kind regards,
{!!$system_from!!}

', '', NULL, NULL, 1), -(4, 'create-ticket', '', 4, '', '
Hello {!!$user!!}

Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.

Ticket ID: {!!$ticket_number!!} 
{!!$department_sign!!}
You can check the status of or update this ticket online at: {!!$system_link!!}
', '', NULL, NULL, 1), -(5, 'create-ticket-agent', '', 5, '', '
Hello {!!$ticket_agent_name!!},       

New ticket {!!$ticket_number!!} created 
From
Name :- {!!$ticket_client_name!!}    
E-mail :- {!!$ticket_client_email!!}   

{!!$content!!}     

Kind Regards,
{!!$system_from!!}

', '', NULL, '2016-05-17 05:38:37', 1), -(6, 'create-ticket-by-agent', '', 6, '', '
{!!$content!!}

{!!$agent_sign!!}

You can check the status of or update this ticket online at: {!!$system_link!!}
', '', NULL, NULL, 1), -(7, 'registration-notification', '', 7, '', '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Password: {!!$user_password!!}

You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', '', NULL, NULL, 1), -(8, 'reset-password', '', 8, '', 'Hello {!!$user!!}

You asked to reset your password. To do so, please click this link:

{!!$password_reset_link!!}


This will let you change your password to something new. If you didn''t ask for this, don''t worry, we''ll keep your password safe.

Thank You.

Kind Regards,

{!!$system_from!!}', '', NULL, NULL, 1), -(9, 'ticket-reply', '', 9, '', '

{!!$content!!}   

{!!$agent_sign!!} 

Ticket Details

Ticket ID: {!!$ticket_number!!}     




', '', NULL, NULL, 1), -(10, 'ticket-reply-agent', '', 10, '', '
Hello {!!$ticket_agent_name!!},
A reply been made to ticket {!!$ticket_number!!}
From
Name: {!!$ticket_client_name!!}
E-mail: {!!$ticket_client_email!!}
{!!$content!!}
Kind Regards,
{!!$system_from!!}
', '', NULL, NULL, 1), -(11, 'registration', '', 11, '', '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', '', NULL, NULL, 1); +(1, 'This template is for sending notice to agent when ticket is assigned to them', '', 1, '', '
Hello {!!$ticket_agent_name!!},

Ticket No: {!!$ticket_number!!}
Has been assigned to you by {!!$ticket_assigner!!} 

Thank You
Kind Regards,
{!!$system_from!!}
', '', NULL, NULL, 1), +(2, 'This template is for sending notice to client with ticket link to check ticket without logging in to system', '', 2, '', '
Hello {!!$user!!},

Click the link below to view your Requested ticket
{!!$ticket_link_with_number!!}

Kind Regards,
{!!$system_from!!}
', '', NULL, NULL, 1), +(3, 'This template is for sending notice to client when ticket status is changed to close', '', 3, '', '
Hello,

This message is regarding your ticket ID {!!$ticket_number!!}. We are changing the status of this ticket to ''Closed'' as the issue appears to be resolved.

Thank you
Kind regards,
{!!$system_from!!}

', '', NULL, NULL, 1), +(4, 'This template is for sending notice to client on successful ticket creation', '', 4, '', '
Hello {!!$user!!}

Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.

Ticket ID: {!!$ticket_number!!} 
{!!$department_sign!!}
You can check the status of or update this ticket online at: {!!$system_link!!}
', '', NULL, NULL, 1), +(5, 'This template is for sending notice to agent on new ticket creation', '', 5, '', '
Hello {!!$ticket_agent_name!!},       

New ticket {!!$ticket_number!!} created 
From
Name :- {!!$ticket_client_name!!}    
E-mail :- {!!$ticket_client_email!!}   

{!!$content!!}     

Kind Regards,
{!!$system_from!!}

', '', NULL, '2016-05-17 05:38:37', 1), +(6, 'This template is for sending notice to client on new ticket created by agent in name of client', '', 6, '', '
{!!$content!!}

{!!$agent_sign!!}

You can check the status of or update this ticket online at: {!!$system_link!!}
', '', NULL, NULL, 1), +(7, 'This template is for sending notice to client on new registration during new ticket creation for un registered clients', '', 7, '', '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Password: {!!$user_password!!}

You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', '', NULL, NULL, 1), +(8, 'This template is for sending notice to any user about reset password option', '', 8, '', 'Hello {!!$user!!}

You asked to reset your password. To do so, please click this link:

{!!$password_reset_link!!}


This will let you change your password to something new. If you didn''t ask for this, don''t worry, we''ll keep your password safe.

Thank You.

Kind Regards,

{!!$system_from!!}', '', NULL, NULL, 1), +(9, 'This template is for sending notice to client when a reply made to his/her ticket', '', 9, '', '

{!!$content!!}   

{!!$agent_sign!!} 

Ticket Details

Ticket ID: {!!$ticket_number!!}     




', '', NULL, NULL, 1), +(10, 'This template is for sending notice to agent when ticket reply is made by client on a ticket', '', 10, '', '
Hello {!!$ticket_agent_name!!},
A reply been made to ticket {!!$ticket_number!!}
From
Name: {!!$ticket_client_name!!}
E-mail: {!!$ticket_client_email!!}
{!!$content!!}
Kind Regards,
{!!$system_from!!}
', '', NULL, NULL, 1), +(11, 'This template is for sending notice to client about registration confirmation link', '', 11, '', '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', '', NULL, NULL, 1); -- -------------------------------------------------------- diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index a0ca153d4..a83cc09e7 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -1994,17 +1994,17 @@ class DatabaseSeeder extends Seeder TemplateType::create(['id' => '10', 'name' => 'ticket-reply-agent']); TemplateType::create(['id' => '11', 'name' => 'registration']); - Template::create(['id' => '1', 'name' => 'assign-ticket', 'type' => '1', 'message' => '
Hello {!!$ticket_agent_name!!},

Ticket No: {!!$ticket_number!!}
Has been assigned to you by {!!$ticket_assigner!!} 

Thank You
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']); - Template::create(['id' => '2', 'name' => 'check-ticket', 'type' => '2', 'message' => '
Hello {!!$user!!},

Click the link below to view your Requested ticket
{!!$ticket_link_with_number!!}

Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']); - Template::create(['id' => '3', 'name' => 'close-ticket', 'type' => '3', 'message' => '
Hello,

This message is regarding your ticket ID {!!$ticket_number!!}. We are changing the status of this ticket to "Closed" as the issue appears to be resolved.

Thank you
Kind regards,
{!!$system_from!!}

', 'set_id' => '1']); - Template::create(['id' => '4', 'name' => 'create-ticket', 'type' => '4', 'message' => '
Hello {!!$user!!}

Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.

Ticket ID: {!!$ticket_number!!} 
{!!$department_sign!!}
You can check the status of or update this ticket online at: {!!$system_link!!}
', 'set_id' => '1']); - Template::create(['id' => '5', 'name' => 'create-ticket-agent', 'type' => '5', 'message' => '
Hello {!!$ticket_agent_name!!},       

New ticket {!!$ticket_number!!} created 
From
Name :- {!!$ticket_client_name!!}    
E-mail :- {!!$ticket_client_email!!}   

{!!$content!!}     

Kind Regards,
{!!$system_from!!}

', 'set_id' => '1']); - Template::create(['id' => '6', 'name' => 'create-ticket-by-agent', 'type' => '6', 'message' => '
{!!$content!!}

{!!$agent_sign!!}

You can check the status of or update this ticket online at: {!!$system_link!!}
', 'set_id' => '1']); - Template::create(['id' => '7', 'name' => 'registration-notification', 'type' => '7', 'message' => '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Password: {!!$user_password!!}

You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', 'set_id' => '1']); - Template::create(['id' => '8', 'name' => 'reset-password', 'type' => '8', 'message' => 'Hello {!!$user!!}

You asked to reset your password. To do so, please click this link:

{!!$password_reset_link!!}


This will let you change your password to something new. If you did not ask for this, do not worry, we will keep your password safe.

Thank You.

Kind Regards,

{!!$system_from!!}', 'set_id' => '1']); - Template::create(['id' => '9', 'name' => 'ticket-reply', 'type' => '9', 'message' => '

{!!$content!!}   

{!!$agent_sign!!} 

Ticket Details

Ticket ID: {!!$ticket_number!!}     




', 'set_id' => '1']); - Template::create(['id' => '10', 'name' => 'ticket-reply-agent', 'type' => '10', 'message' => '
Hello {!!$ticket_agent_name!!},
A reply been made to ticket {!!$ticket_number!!}
From
Name: {!!$ticket_client_name!!}
E-mail: {!!$ticket_client_email!!}
{!!$content!!}
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']); - Template::create(['id' => '11', 'name' => 'registration', 'type' => '11', 'message' => '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', 'set_id' => '1']); + Template::create(['id' => '1', 'name' => 'This template is for sending notice to agent when ticket is assigned to them', 'type' => '1', 'message' => '
Hello {!!$ticket_agent_name!!},

Ticket No: {!!$ticket_number!!}
Has been assigned to you by {!!$ticket_assigner!!} 

Thank You
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']); + Template::create(['id' => '2', 'name' => 'This template is for sending notice to client with ticket link to check ticket without logging in to system', 'type' => '2', 'message' => '
Hello {!!$user!!},

Click the link below to view your Requested ticket
{!!$ticket_link_with_number!!}

Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']); + Template::create(['id' => '3', 'name' => 'This template is for sending notice to client when ticket status is changed to close', 'type' => '3', 'message' => '
Hello,

This message is regarding your ticket ID {!!$ticket_number!!}. We are changing the status of this ticket to "Closed" as the issue appears to be resolved.

Thank you
Kind regards,
{!!$system_from!!}

', 'set_id' => '1']); + Template::create(['id' => '4', 'name' => 'This template is for sending notice to client on successful ticket creation', 'type' => '4', 'message' => '
Hello {!!$user!!}

Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.

Ticket ID: {!!$ticket_number!!} 
{!!$department_sign!!}
You can check the status of or update this ticket online at: {!!$system_link!!}
', 'set_id' => '1']); + Template::create(['id' => '5', 'name' => 'This template is for sending notice to agent on new ticket creation', 'type' => '5', 'message' => '
Hello {!!$ticket_agent_name!!},       

New ticket {!!$ticket_number!!} created 
From
Name :- {!!$ticket_client_name!!}    
E-mail :- {!!$ticket_client_email!!}   

{!!$content!!}     

Kind Regards,
{!!$system_from!!}

', 'set_id' => '1']); + Template::create(['id' => '6', 'name' => 'This template is for sending notice to client on new ticket created by agent in name of client', 'type' => '6', 'message' => '
{!!$content!!}

{!!$agent_sign!!}

You can check the status of or update this ticket online at: {!!$system_link!!}
', 'set_id' => '1']); + Template::create(['id' => '7', 'name' => 'This template is for sending notice to client on new registration during new ticket creation for un registered clients', 'type' => '7', 'message' => '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Password: {!!$user_password!!}

You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', 'set_id' => '1']); + Template::create(['id' => '8', 'name' => 'This template is for sending notice to any user about reset password option', 'type' => '8', 'message' => 'Hello {!!$user!!}

You asked to reset your password. To do so, please click this link:

{!!$password_reset_link!!}


This will let you change your password to something new. If you did not ask for this, do not worry, we will keep your password safe.

Thank You.

Kind Regards,

{!!$system_from!!}', 'set_id' => '1']); + Template::create(['id' => '9', 'name' => 'This template is for sending notice to client when a reply made to his/her ticket', 'type' => '9', 'message' => '

{!!$content!!}   

{!!$agent_sign!!} 

Ticket Details

Ticket ID: {!!$ticket_number!!}     




', 'set_id' => '1']); + Template::create(['id' => '10', 'name' => 'This template is for sending notice to agent when ticket reply is made by client on a ticket', 'type' => '10', 'message' => '
Hello {!!$ticket_agent_name!!},
A reply been made to ticket {!!$ticket_number!!}
From
Name: {!!$ticket_client_name!!}
E-mail: {!!$ticket_client_email!!}
{!!$content!!}
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']); + Template::create(['id' => '11', 'name' => 'This template is for sending notice to client about registration confirmation link', 'type' => '11', 'message' => '

Hello {!!$user!!} , 

This email is confirmation that you are now registered at our helpdesk.

Registered Email: {!!$email_address!!}

Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}

Thank You.

Kind Regards,

{!!$system_from!!} 

', 'set_id' => '1']); /**