Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Created by Xingheng on 10/16/16.
*/
// express converts headers to lowercase
const TRANSACTION_ID_HEADER = 'x-moesif-transaction-id';
var _ = require('lodash');
var moesifapi = require('moesifapi');
var getRawBody = require('./getRawBody');
var contentType = require('content-type');
var EventModel = moesifapi.EventModel;
var UserModel = moesifapi.UserModel;
var CompanyModel = moesifapi.CompanyModel;
var requestIp = require('request-ip');
var dataUtils = require('./dataUtils');
var patch = require('./outgoing');
var createRecorder = require('./outgoingRecorder');
var createBatcher = require('./batcher');
var PassThrough = require('stream').PassThrough;
var moesifConfigManager = require('./moesifConfigManager');
var uuid4 = require('uuid4');
exports.defaultSkip = function(req, res) {
return false;
};
//
// ### function moesifExpress(options)