bd857a97149d92747771a2cdd23ca124f1d4344b
[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 _0x8bbf=['../../config/environment','./action.attributes','exports','define','Action','tools_actions','util','api','moment','bluebird','request-promise','rimraf'];(function(_0x47d4a4,_0x3f3d2e){var _0x2fe02=function(_0x3187c5){while(--_0x3187c5){_0x47d4a4['push'](_0x47d4a4['shift']());}};_0x2fe02(++_0x3f3d2e);}(_0x8bbf,0xae));var _0xf8bb=function(_0x218f84,_0x1cfd4a){_0x218f84=_0x218f84-0x0;var _0x27f073=_0x8bbf[_0x218f84];return _0x27f073;};'use strict';var _=require('lodash');var util=require(_0xf8bb('0x0'));var logger=require('../../config/logger')(_0xf8bb('0x1'));var moment=require(_0xf8bb('0x2'));var BPromise=require(_0xf8bb('0x3'));var rp=require(_0xf8bb('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf8bb('0x5'));var config=require(_0xf8bb('0x6'));var attributes=require(_0xf8bb('0x7'));module[_0xf8bb('0x8')]=function(_0x231978,_0x2840b1){return _0x231978[_0xf8bb('0x9')](_0xf8bb('0xa'),attributes,{'tableName':_0xf8bb('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};