Built motion from commit e6806ed6.|2.6.0
[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 _0xfb9e=['exports','Action','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x17c56f,_0x1519ac){var _0x274f11=function(_0xee37dd){while(--_0xee37dd){_0x17c56f['push'](_0x17c56f['shift']());}};_0x274f11(++_0x1519ac);}(_0xfb9e,0xfc));var _0xefb9=function(_0x4608ac,_0x340cd9){_0x4608ac=_0x4608ac-0x0;var _0x318daa=_0xfb9e[_0x4608ac];return _0x318daa;};'use strict';var _=require(_0xefb9('0x0'));var util=require('util');var logger=require(_0xefb9('0x1'))(_0xefb9('0x2'));var moment=require(_0xefb9('0x3'));var BPromise=require(_0xefb9('0x4'));var rp=require(_0xefb9('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xefb9('0x6'));var config=require(_0xefb9('0x7'));var attributes=require('./action.attributes');module[_0xefb9('0x8')]=function(_0x10fc18,_0x19a0e0){return _0x10fc18['define'](_0xefb9('0x9'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};