c2733d1e83985ff1db03b1f4907c06db30a729b3
[motion2.git] / server / api / trigger / trigger.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 _0xbbce=['path','rimraf','./trigger.attributes','exports','define','Trigger','tools_triggers','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x10f0d0,_0x383823){var _0x41b3a0=function(_0x58c148){while(--_0x58c148){_0x10f0d0['push'](_0x10f0d0['shift']());}};_0x41b3a0(++_0x383823);}(_0xbbce,0x7c));var _0xebbc=function(_0x1b590a,_0x2945cd){_0x1b590a=_0x1b590a-0x0;var _0x162a3d=_0xbbce[_0x1b590a];return _0x162a3d;};'use strict';var _=require('lodash');var util=require(_0xebbc('0x0'));var logger=require(_0xebbc('0x1'))(_0xebbc('0x2'));var moment=require(_0xebbc('0x3'));var BPromise=require(_0xebbc('0x4'));var rp=require(_0xebbc('0x5'));var fs=require('fs');var path=require(_0xebbc('0x6'));var rimraf=require(_0xebbc('0x7'));var config=require('../../config/environment');var attributes=require(_0xebbc('0x8'));module[_0xebbc('0x9')]=function(_0x2801c0,_0x2199c8){return _0x2801c0[_0xebbc('0xa')](_0xebbc('0xb'),attributes,{'tableName':_0xebbc('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};