Built motion from commit 0900f080.|2.5.45
[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 _0xc4ee=['./action.attributes','exports','define','Action','tools_actions','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x2c1e10,_0x43facd){var _0x5abcb9=function(_0x5be39b){while(--_0x5be39b){_0x2c1e10['push'](_0x2c1e10['shift']());}};_0x5abcb9(++_0x43facd);}(_0xc4ee,0x147));var _0xec4e=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xc4ee[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0xec4e('0x0'));var util=require(_0xec4e('0x1'));var logger=require(_0xec4e('0x2'))(_0xec4e('0x3'));var moment=require('moment');var BPromise=require(_0xec4e('0x4'));var rp=require(_0xec4e('0x5'));var fs=require('fs');var path=require(_0xec4e('0x6'));var rimraf=require(_0xec4e('0x7'));var config=require(_0xec4e('0x8'));var attributes=require(_0xec4e('0x9'));module[_0xec4e('0xa')]=function(_0x4cd36c,_0xf8ec68){return _0x4cd36c[_0xec4e('0xb')](_0xec4e('0xc'),attributes,{'tableName':_0xec4e('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};