nl_tokens: Process a single acknowledgement . It will find the acknowledgement in the <datasetId > - updates collection and remove it .
pl_tokens: function processAcknowledgement ( acknowledgement , callback ) { var datasetId = acknowledgement . datasetId ; if ( ! datasetId || ! acknowledgement . cuid || ! acknowledgement . hash ) { debugError ( "acknowledgement missing info %j" , acknowledgement ) ; return callback ( ) ; } debug ( 'processAcknowledge :: processing acknowledge %j' , acknowledgement ) ; syncStorage . findAndDeleteUpdate ( datasetId , acknowledgement , function ( err ) { if ( err ) { debugError ( 'END processAcknowledge - err=%s' , err ) ; return callback ( err ) ; } else { <mask> ( 'acknowledgement processed successfully. hash = %s' , acknowledgement . hash ) ; return callback ( ) ; } } ) ; }