Built motion from commit 994c64e1.|2.6.1
[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 _0xa1ef=['Action','tools_actions','util','../../config/logger','api','moment','request-promise','path','./action.attributes','exports','define'];(function(_0x5a213a,_0x2b4a23){var _0x3577b3=function(_0x3a4213){while(--_0x3a4213){_0x5a213a['push'](_0x5a213a['shift']());}};_0x3577b3(++_0x2b4a23);}(_0xa1ef,0x12b));var _0xfa1e=function(_0x58df61,_0x263bda){_0x58df61=_0x58df61-0x0;var _0x2af205=_0xa1ef[_0x58df61];return _0x2af205;};'use strict';var _=require('lodash');var util=require(_0xfa1e('0x0'));var logger=require(_0xfa1e('0x1'))(_0xfa1e('0x2'));var moment=require(_0xfa1e('0x3'));var BPromise=require('bluebird');var rp=require(_0xfa1e('0x4'));var fs=require('fs');var path=require(_0xfa1e('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xfa1e('0x6'));module[_0xfa1e('0x7')]=function(_0x2604ff,_0x4d30f1){return _0x2604ff[_0xfa1e('0x8')](_0xfa1e('0x9'),attributes,{'tableName':_0xfa1e('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};