6d5845d2a8b5f70d21f3893189d9eda56401967b
[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 _0x2e3b=['rimraf','../../config/environment','exports','define','Action','tools_actions','lodash','util','moment','bluebird','request-promise','path'];(function(_0x29effa,_0x1dc915){var _0x2a8608=function(_0x5bb6f5){while(--_0x5bb6f5){_0x29effa['push'](_0x29effa['shift']());}};_0x2a8608(++_0x1dc915);}(_0x2e3b,0x14a));var _0xb2e3=function(_0x4589f5,_0x390b91){_0x4589f5=_0x4589f5-0x0;var _0x2fc617=_0x2e3b[_0x4589f5];return _0x2fc617;};'use strict';var _=require(_0xb2e3('0x0'));var util=require(_0xb2e3('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xb2e3('0x2'));var BPromise=require(_0xb2e3('0x3'));var rp=require(_0xb2e3('0x4'));var fs=require('fs');var path=require(_0xb2e3('0x5'));var rimraf=require(_0xb2e3('0x6'));var config=require(_0xb2e3('0x7'));var attributes=require('./action.attributes');module[_0xb2e3('0x8')]=function(_0x1f82d4,_0xfd6d27){return _0x1f82d4[_0xb2e3('0x9')](_0xb2e3('0xa'),attributes,{'tableName':_0xb2e3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};