61586366f2d845ac1ee6e49eda2281c32054ed9b
[motion2.git] / server / api / action / action.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2bc7=['moment','request-promise','rimraf','../../config/environment','define','Action','tools_actions','lodash','util','../../config/logger'];(function(_0x66acb3,_0x2f6440){var _0x289d45=function(_0x37821d){while(--_0x37821d){_0x66acb3['push'](_0x66acb3['shift']());}};_0x289d45(++_0x2f6440);}(_0x2bc7,0x1ab));var _0x72bc=function(_0x1f5c9c,_0x186fbf){_0x1f5c9c=_0x1f5c9c-0x0;var _0x1dbb84=_0x2bc7[_0x1f5c9c];return _0x1dbb84;};'use strict';var _=require(_0x72bc('0x0'));var util=require(_0x72bc('0x1'));var logger=require(_0x72bc('0x2'))('api');var moment=require(_0x72bc('0x3'));var BPromise=require('bluebird');var rp=require(_0x72bc('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x72bc('0x5'));var config=require(_0x72bc('0x6'));var attributes=require('./action.attributes');module['exports']=function(_0x112084,_0x5362b2){return _0x112084[_0x72bc('0x7')](_0x72bc('0x8'),attributes,{'tableName':_0x72bc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};