f044a2e52ba05ce677249f0753461ec5508c3f2a
[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 _0xdaf3=['../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./action.attributes','exports','Action'];(function(_0x1a68dd,_0x168fdd){var _0x564bc7=function(_0x36b497){while(--_0x36b497){_0x1a68dd['push'](_0x1a68dd['shift']());}};_0x564bc7(++_0x168fdd);}(_0xdaf3,0xc8));var _0x3daf=function(_0x37026f,_0x2df88f){_0x37026f=_0x37026f-0x0;var _0x40cb74=_0xdaf3[_0x37026f];return _0x40cb74;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x3daf('0x0'))(_0x3daf('0x1'));var moment=require(_0x3daf('0x2'));var BPromise=require(_0x3daf('0x3'));var rp=require(_0x3daf('0x4'));var fs=require('fs');var path=require(_0x3daf('0x5'));var rimraf=require('rimraf');var config=require(_0x3daf('0x6'));var attributes=require(_0x3daf('0x7'));module[_0x3daf('0x8')]=function(_0x32289b,_0x133292){return _0x32289b['define'](_0x3daf('0x9'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};