/**
* ### Actions functions
*
* Common functions that will be available on all actions
*
* @module Models/actions
*/
"use strict";
const factory = require("./factory");
const tempModel = factory.createModel("action");
const actions = Object.assign(tempModel, {
/**
* Perform an action
* @param {String} id - Action name
* @param {Object} parameters - Action function Parameters
* @return {Mixed} Action result
*/
performAction: (id, parameters) => tempModel.getById(id)(parameters)
});
actions.init({});
module.exports = actions;