build/wh-client.js
function messageBuilder(data, event, store = false, index = false) {
    let message = { 'type': store ? 'store' : index ? 'indexation' : 'request',
        'value': event,
        'data': data
    };
    logger_1.logger.log('debug', `Message value before sending: \n ${JSON.stringify(message)}`);
    return message;
}
function messageBuilder(data, event, store = false, index = false) {
    let message = { 'type': store ? 'store' : index ? 'indexation' : 'request',
        'value': event,
        'data': data
    };
    logger_1.logger.log('debug', `Message value before sending: \n ${JSON.stringify(message)}`);
    return message;
}
function messageBuilder ( data , event , store = false , index = false ) { let message = { 'type' : store ? 'store' : index ? 'indexation' : 'request' , 'value' : event , 'data' : data } ; logger_1 . logger . log ( 'debug' , ` \n ${ JSON . stringify ( message ) } ` ) ; return message ; }
/*
function messageBuilder create a message from constraints and event type
@constraints : constraints we want to be checked
@event : event type
/ * function messageBuilder create a message from constraints and event type