2cb9f678ed396003b7bf27607d493faf48c6ae05
[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 _0xce9b=['exports','define','Trigger','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./trigger.attributes'];(function(_0x55fc03,_0x43ce48){var _0x5bf429=function(_0xa06468){while(--_0xa06468){_0x55fc03['push'](_0x55fc03['shift']());}};_0x5bf429(++_0x43ce48);}(_0xce9b,0xc6));var _0xbce9=function(_0x32e3ab,_0x1cc9ce){_0x32e3ab=_0x32e3ab-0x0;var _0x3fd142=_0xce9b[_0x32e3ab];return _0x3fd142;};'use strict';var _=require(_0xbce9('0x0'));var util=require(_0xbce9('0x1'));var logger=require(_0xbce9('0x2'))(_0xbce9('0x3'));var moment=require(_0xbce9('0x4'));var BPromise=require(_0xbce9('0x5'));var rp=require(_0xbce9('0x6'));var fs=require('fs');var path=require(_0xbce9('0x7'));var rimraf=require('rimraf');var config=require(_0xbce9('0x8'));var attributes=require(_0xbce9('0x9'));module[_0xbce9('0xa')]=function(_0x256ce6,_0x1c40fa){return _0x256ce6[_0xbce9('0xb')](_0xbce9('0xc'),attributes,{'tableName':'tools_triggers','paranoid':![],'indexes':[],'timestamps':!![]});};