text: /**
   * Created by hesk on 1/25/2015.
   */
  var keystone = require('keystone'),
      async = require('async'),
      Call = keystone.list('Call'),
      User = keystone.list('User'),
      tool = require('../../util/checking'),
      queries = require('../../util/calloperation')
      ;
  exports = module.exports = function (req, res) {
      var Q = {},
          local = {post: false, driver: false};
      async.series([
          function (next) {
              try {
                  Q = tool.url_param_checker(req.body, ['_call_id', 'driver_num', 'new_status']);
                  next();
              } catch (e) {
                  return next({message: e.message});
              }
          },
          function (next) {
              queries.get_driver_by_phone(local, Q.driver_num, next);
          },
          function (next) {
              queries.get_call_post_by_Id(local, Q._call_id, next);
          },
          function (next) {
              queries.update_call_status(local.post, Q.new_status, next);
          },
          function (next) {
              return res.apiResponse({
                  success: true,
                  timestamp: new Date().getTime(),
                  holder: local.post._doc
              });
          }
  
      ], function (err) {
          if (err) {
              console.log('[api.app.release] - activated the list', err);
              console.log('------------------------------------------------------------');
              return res.apiResponse({
                  success: false,
                  timestamp: new Date().getTime(),
                  message: (err && err.message ? err.message : false) || 'Sorry, there was an error from verifying your product, please try again.'
              });
          }
      });
  }