Built motion from commit 497d3d92.|2.5.43
[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 _0x617f=['Action','tools_actions','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./action.attributes','exports'];(function(_0x2792ad,_0x1f2f88){var _0x3043d6=function(_0x35baa8){while(--_0x35baa8){_0x2792ad['push'](_0x2792ad['shift']());}};_0x3043d6(++_0x1f2f88);}(_0x617f,0x15e));var _0xf617=function(_0x9f8020,_0x49d21f){_0x9f8020=_0x9f8020-0x0;var _0x70b1b2=_0x617f[_0x9f8020];return _0x70b1b2;};'use strict';var _=require('lodash');var util=require(_0xf617('0x0'));var logger=require(_0xf617('0x1'))(_0xf617('0x2'));var moment=require(_0xf617('0x3'));var BPromise=require('bluebird');var rp=require(_0xf617('0x4'));var fs=require('fs');var path=require(_0xf617('0x5'));var rimraf=require(_0xf617('0x6'));var config=require(_0xf617('0x7'));var attributes=require(_0xf617('0x8'));module[_0xf617('0x9')]=function(_0x5f327a,_0x378506){return _0x5f327a['define'](_0xf617('0xa'),attributes,{'tableName':_0xf617('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};