71d7df3bb285b776abfffb7ad8ac1b5a0582b13f
[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 _0xf328=['rimraf','./action.attributes','exports','define','Action','tools_actions','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x380fa9,_0x5123eb){var _0x4f2532=function(_0x4bde43){while(--_0x4bde43){_0x380fa9['push'](_0x380fa9['shift']());}};_0x4f2532(++_0x5123eb);}(_0xf328,0x199));var _0x8f32=function(_0x16d66e,_0x3314e9){_0x16d66e=_0x16d66e-0x0;var _0x5ac5ee=_0xf328[_0x16d66e];return _0x5ac5ee;};'use strict';var _=require(_0x8f32('0x0'));var util=require(_0x8f32('0x1'));var logger=require(_0x8f32('0x2'))(_0x8f32('0x3'));var moment=require(_0x8f32('0x4'));var BPromise=require(_0x8f32('0x5'));var rp=require(_0x8f32('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8f32('0x7'));var config=require('../../config/environment');var attributes=require(_0x8f32('0x8'));module[_0x8f32('0x9')]=function(_0x13ff44,_0x5fe7a1){return _0x13ff44[_0x8f32('0xa')](_0x8f32('0xb'),attributes,{'tableName':_0x8f32('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};