c7590ce56ff51cacbcdcfe6ed6cac896692a9887
[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 _0xbe45=['rimraf','./trigger.attributes','exports','define','Trigger','tools_triggers','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x22132b,_0x26d0b1){var _0x50b48d=function(_0x8019e1){while(--_0x8019e1){_0x22132b['push'](_0x22132b['shift']());}};_0x50b48d(++_0x26d0b1);}(_0xbe45,0xf0));var _0x5be4=function(_0x37cd64,_0x54ba57){_0x37cd64=_0x37cd64-0x0;var _0x3a29dc=_0xbe45[_0x37cd64];return _0x3a29dc;};'use strict';var _=require(_0x5be4('0x0'));var util=require(_0x5be4('0x1'));var logger=require('../../config/logger')(_0x5be4('0x2'));var moment=require(_0x5be4('0x3'));var BPromise=require(_0x5be4('0x4'));var rp=require(_0x5be4('0x5'));var fs=require('fs');var path=require(_0x5be4('0x6'));var rimraf=require(_0x5be4('0x7'));var config=require('../../config/environment');var attributes=require(_0x5be4('0x8'));module[_0x5be4('0x9')]=function(_0x2681c7,_0x2b3c60){return _0x2681c7[_0x5be4('0xa')](_0x5be4('0xb'),attributes,{'tableName':_0x5be4('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};