/**
  * Fetch Canned Response in the ticket detail page.
  * @param type $id 
  * @return type json
  */
 public function get_canned($id)
 {
     // checking for the canned response with requested value
     if ($id != "zzz") {
         // fetching canned response
         $canned = Canned::where('id', '=', $id)->where('user_id', '=', \Auth::user()->id)->first();
         $msg = $canned->message;
     } else {
         $msg = "";
     }
     // returning the canned response in JSON format
     return \Response::json($msg);
 }
 /**
  * get canned
  * @param type $id 
  * @return type json
  */
 public function get_canned($id)
 {
     if ($id != "zzz") {
         $canned = Canned::where('id', '=', $id)->where('user_id', '=', \Auth::user()->id)->first();
         $msg = $canned->message;
     } else {
         $msg = "";
     }
     return \Response::json($msg);
 }