From 4270cbcfb30205995c8507e7e766267a47a4a34a Mon Sep 17 00:00:00 2001
From: sujitprasad Headquartered in Bangalore, Faveo HELPDESK provides Businesses with an automated Helpdesk system to manage customer support.
To run Faveo your host just needs a couple of things:About Faveo
-
+
About Faveo
+
The word Faveo comes from Latin which means to be favourable. Which truly highlights vision and the scope as well as the functionality of the product that Faveo is. It is specifically designed to cater the needs of startups and SME’s empowering them with state of art, ticket based support system. In today’s competitive startup scenario customer retention is one of the major challenges. Handling client query diligently is all the difference between retaining or losing a long lasting relationship. The company is driven with passion of providing tools for managing consumer queries for strategic insights and helping companies take those decisive decisions.
@@ -22,9 +22,11 @@ Faveo is designed & developed by Requirements
-
Faveo Web Hosting
@@ -41,9 +43,16 @@ Faveo is designed & developed by Click here
Helps verify whether your server can run Faveo or not. +Download here
+ +Join Faveo discussion group and stay tuned to latest updates. +Join here
+Faveo is very very new in the market, the product is fully working and is production worthy but it definitely will have some bugs like any software. We fully support Faveo whether free or pro edition, incase you come across any bugs, email us through the contact form. We want to make your experience of using Faveo as memorable as possible, so help us make Faveo a World, top class helpdesk application. Do check out our roadmap to stayed tuned with future releases
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 4e904dbe5..47c03dd0d 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,12 +2,12 @@ namespace App\Exceptions; +// controller +use App\Http\Controllers\Common\PhpMailController; + use Exception; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; -// use App\Http\Controllers\Common\SettingsController; -//use App\Model\helpdesk\Email\Smtp; - class Handler extends ExceptionHandler { /** @@ -19,14 +19,18 @@ class Handler extends ExceptionHandler 'Symfony\Component\HttpKernel\Exception\HttpException', ]; + /** * Create a new controller instance. - * - * @return type response + * constructor to check + * 1. php mailer + * @return void */ - // public function __construct() { - // SettingsController::smtp(); - // } + public function __construct(PhpMailController $PhpMailController) + { + $this->PhpMailController = $PhpMailController; + } + /** * Report or log an exception. @@ -46,7 +50,7 @@ class Handler extends ExceptionHandler * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Exception $e + * @param \Exception $e * * @return \Illuminate\Http\Response */ @@ -54,39 +58,50 @@ class Handler extends ExceptionHandler { if ($e instanceof \Tymon\JWTAuth\Exceptions\TokenExpiredException) { return response()->json(['message' => $e->getMessage(), 'code' => $e->getStatusCode()]); - //dd($e); + } elseif ($e instanceof \Tymon\JWTAuth\Exceptions\TokenInvalidException) { return response()->json(['message' => $e->getMessage(), 'code' => $e->getStatusCode()]); } - - // if (config('app.debug') == false) { - // if ($this->isHttpException($e) && $e->getStatusCode() == 404) { - // return response()->view('errors.404', []); - // } else { - // if (\Config::get('database.install') == 1) { - // // if(\Config::get('app.ErrorLog') == '%1%') { - // // \App\Http\Controllers\Common\SettingsController::smtp(); - // // $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => '', 'email' => ''], $message = ['subject' => '', 'scenario'=>'error-report'], $template_variables = ['e' =>$e ]); - // // } - // } - // return response()->view('errors.500', []); - // } - // } - // return parent::render($request, $e); - + // This is to check if the debug is true or false + if (config('app.debug') == false) { + // checking if the error is actually an error page or if its an system error page + if ($this->isHttpException($e) && $e->getStatusCode() == 404) { + return response()->view('errors.404', []); + } else { + // checking if the application is installed + if (\Config::get('database.install') == 1) { + // checking if the error log send to Ladybirdweb is enabled or not + if(\Config::get('app.ErrorLog') == '%1%') { + $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => 'faveo logger', 'email' => 'faveoerrorlogger@gmail.com'], $message = ['subject' => 'Faveo downloaded from github has occured error', 'scenario'=>'error-report'], $template_variables = ['e' => $e]); + } + } + return response()->view('errors.500', []); + } + } + // returns non oops error message + return parent::render($request, $e); + // checking if the error is related to http error i.e. page not found if ($this->isHttpException($e)) { + // returns error for page not found return $this->renderHttpException($e); } - + // checking if the config app sebug is enabled or not if (config('app.debug')) { + // returns oops error page i.e. colour full error page return $this->renderExceptionWithWhoops($e); } return parent::render($request, $e); } + /** + * function to generate oops error page + * @param \Exception $e + * @return \Illuminate\Http\Response + */ protected function renderExceptionWithWhoops(Exception $e) { + // new instance of whoops class to display customized error page $whoops = new \Whoops\Run(); $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler()); diff --git a/app/Http/Controllers/Admin/helpdesk/EmailsController.php b/app/Http/Controllers/Admin/helpdesk/EmailsController.php index a4a10f8ab..d518e352a 100644 --- a/app/Http/Controllers/Admin/helpdesk/EmailsController.php +++ b/app/Http/Controllers/Admin/helpdesk/EmailsController.php @@ -114,6 +114,10 @@ class EmailsController extends Controller $email->password = $encrypted; $email->save(); + $email_settings = Email::where('id', '=', '1')->first(); + $email_settings->sys_email = $email->id; + $email_settings->save(); + return redirect('emails')->with('success', 'Email Created sucessfully'); } else { return redirect('emails')->with('fails', 'Email can not Create'); @@ -217,8 +221,8 @@ class EmailsController extends Controller public function destroy($id, Emails $email) { $default_system_email = Email::where('id', '=', '1')->first(); - if ($default_system_email->id) { - if ($id == $default_system_email->id) { + if ($default_system_email->sys_email) { + if ($id == $default_system_email->sys_email) { return redirect('emails')->with('fails', 'You cannot delete system default Email'); } } diff --git a/app/Http/Controllers/Admin/helpdesk/SettingsController.php b/app/Http/Controllers/Admin/helpdesk/SettingsController.php index 674d27f78..33ccf9136 100644 --- a/app/Http/Controllers/Admin/helpdesk/SettingsController.php +++ b/app/Http/Controllers/Admin/helpdesk/SettingsController.php @@ -513,4 +513,16 @@ class SettingsController extends Controller return redirect()->back()->with('success', 'Successfully Deleted'); } + + /** + * Generate Api key. + * + * @return type json + */ + public function generateApiKey() + { + $key = str_random(32); + + return $key; + } } diff --git a/app/Http/Controllers/Agent/helpdesk/TicketController.php b/app/Http/Controllers/Agent/helpdesk/TicketController.php index f71c1ea6d..93edaf7bc 100644 --- a/app/Http/Controllers/Agent/helpdesk/TicketController.php +++ b/app/Http/Controllers/Agent/helpdesk/TicketController.php @@ -4,7 +4,6 @@ namespace App\Http\Controllers\Agent\helpdesk; // controllers use App\Http\Controllers\Common\PhpMailController; -use App\Http\Controllers\Common\SettingsController; use App\Http\Controllers\Controller; // requests use App\Http\Requests\helpdesk\CreateTicketRequest; @@ -15,7 +14,7 @@ use App\Model\helpdesk\Agent\Teams; use App\Model\helpdesk\Email\Emails; use App\Model\helpdesk\Form\Fields; use App\Model\helpdesk\Manage\Help_topic; -use App\Model\Helpdesk\Manage\Sla_plan; +use App\Model\helpdesk\Manage\Sla_plan; use App\Model\helpdesk\Settings\Alert; use App\Model\helpdesk\Settings\Company; use App\Model\helpdesk\Settings\Email; @@ -33,6 +32,7 @@ use App\Model\helpdesk\Utility\Timezones; use App\User; use Auth; use DB; +use UTC; // classes use Exception; use Hash; @@ -44,7 +44,7 @@ use PDF; /** * TicketController. * - * @author Ladybird{!! Lang::get('lang.status') !!}: | status)->first();?>{{$status->name}} | |
{!! Lang::get('lang.priority') !!}: | priority_id)->first();?>{{$priority->priority_desc}} | |
{!! Lang::get('lang.department') !!}: | help_topic_id)->first();?>{{$help_topic->topic}} | |
{!! Lang::get('lang.email') !!}: | {{$user->email}} | |
- {!! Lang::get('lang.this_ticket_is_under_banned_user')!!} |
{!! Lang::get('lang.status') !!}: | status)->first();?>{{$status->name}} |
{!! Lang::get('lang.priority') !!}: | priority_id)->first();?>{{$priority->priority_desc}} |
{!! Lang::get('lang.department') !!}: | help_topic_id)->first();?>{{$help_topic->topic}} |
{!! Lang::get('lang.email') !!}: | {{$user->email}} |
+ {!! Lang::get('lang.this_ticket_is_under_banned_user')!!} |
Phone: | {{$user->phone_number}} |
Phone: | {{$user->ext . $user->phone_number}} |
{!! Lang::get('lang.source') !!}: | {{$ticket_source}} |
{!! Lang::get('lang.help_topic') !!}: | help_topic_id)->first();?>{{$help_topic->topic}} |
{!! Lang::get('lang.last_message') !!}: | {{$username}} |
Phone: | {{$user->phone_number}} |
Phone: | {{$user->ext . $user->phone_number}} |
{!! Lang::get('lang.source') !!}: | {{$ticket_source}} |
{!! Lang::get('lang.help_topic') !!}: | help_topic_id)->first();?>{{$help_topic->topic}} |
{!! Lang::get('lang.last_message') !!}: | {{$username}} |
Please enter your serial key for Faveo HELPDESK PRO
+ @if(Session::has('success')) +Below you should enter your database connection details. If you’re not sure about these, contact your host.
+ {!! Form::open(['url'=> '/step4post']) !!} -+ | + + | |
@@ -44,6 +59,10 @@ active | + | + + |
@@ -52,6 +71,10 @@ active | + | + + |
@@ -61,6 +84,10 @@ active | + | + + |
@@ -70,6 +97,10 @@ active | + | + + |
@@ -78,6 +109,10 @@ active | + | + + |
This either means that the username and password information is incorrect or we can’t contact the database server. This could mean your host’s database server is down.
+If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the Faveo Support .
+ +diff --git a/resources/views/themes/default1/installer/helpdesk/view5.blade.php b/resources/views/themes/default1/installer/helpdesk/view5.blade.php index 07e03d519..c3b37b0cd 100644 --- a/resources/views/themes/default1/installer/helpdesk/view5.blade.php +++ b/resources/views/themes/default1/installer/helpdesk/view5.blade.php @@ -17,11 +17,12 @@ active @stop @section('content') - -
@@ -59,6 +74,10 @@ active | {!! Form::text('firstname',null,['style' =>'margin-left:250px']) !!} | ++ + |
@@ -68,6 +87,10 @@ active | {!! Form::text('Lastname',null,['style' =>'margin-left:250px']) !!} | ++ + |
@@ -77,6 +100,10 @@ active | {!! Form::text('email',null,['style' =>'margin-left:250px']) !!} | ++ + | {!! Form::text('username',null,['style' =>'margin-left:195px']) !!} | ++ + |
@@ -106,6 +137,10 @@ active | + | + + |
@@ -116,6 +151,10 @@ active | + | + + |