nl_tokens: / * _resolveFilter
pl_tokens: function _resolveFilter ( req ) { function __isReqObject ( req ) { return ! ! req . url ; } function __hasQueryString ( req ) { return __isReqObject ( req ) && ( Object . keys ( req . query || { } ) . length > 0 ) ; } function __hasRouteParams ( req ) { return __isReqObject ( req ) && ( Object . keys ( req . params || { } ) . length > 0 ) ; } function __hasODATA ( req ) { return __isReqObject ( req ) && ( Object . keys ( req . odata || { } ) . length > 0 ) ; } if ( ! req ) { return { type : "none" , filter : null } ; } else if ( __hasODATA ( req ) ) { return { type : "odata" , filter : req . odata } ; } else if ( __hasQueryString ( req ) ) { return { type : "queryString" , filter : req . query } ; } else if ( __hasRouteParams ( req ) ) { return { type : "routeParams" , <mask> : req . params } ; } else { if ( __isReqObject ( req ) ) { return req ; } else { if ( typeof ( req ) === "object" ) { return { type : "plainObject" , filter : req } ; } else { return { type : "routeParams" , filter : { "id" : req } } ; } } } }