storeCommonTemplate.js

var Q = require('q');
var Promise = require('bluebird');

function storeCommonTemplate(options, params, result) {
    console.log('storeCommonTemplate called');
    console.log(params.template);
    var idInfo = options.DB.TemplateClln.insert(params.template);
    return idInfo;
}

module.exports = {
    save: storeCommonTemplate
};