302cd1b7582877980bac64cc44f9db9f529b222c
[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 _0x31a3=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./action.attributes','exports','define','Action','tools_actions','lodash','util','../../config/logger'];(function(_0x23f659,_0x33bfcb){var _0x1edce0=function(_0x48ca3f){while(--_0x48ca3f){_0x23f659['push'](_0x23f659['shift']());}};_0x1edce0(++_0x33bfcb);}(_0x31a3,0x183));var _0x331a=function(_0x97ab47,_0x5cdab2){_0x97ab47=_0x97ab47-0x0;var _0x2d291f=_0x31a3[_0x97ab47];return _0x2d291f;};'use strict';var _=require(_0x331a('0x0'));var util=require(_0x331a('0x1'));var logger=require(_0x331a('0x2'))(_0x331a('0x3'));var moment=require(_0x331a('0x4'));var BPromise=require(_0x331a('0x5'));var rp=require(_0x331a('0x6'));var fs=require('fs');var path=require(_0x331a('0x7'));var rimraf=require(_0x331a('0x8'));var config=require(_0x331a('0x9'));var attributes=require(_0x331a('0xa'));module[_0x331a('0xb')]=function(_0x7665a9,_0x221b58){return _0x7665a9[_0x331a('0xc')](_0x331a('0xd'),attributes,{'tableName':_0x331a('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};