Built motion from commit 47436d59.|2.6.7
[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 _0xdecb=['rimraf','../../config/environment','./trigger.attributes','exports','Trigger','tools_triggers','util','../../config/logger','api','bluebird','path'];(function(_0x412517,_0x2f744d){var _0x19262b=function(_0xc9a53b){while(--_0xc9a53b){_0x412517['push'](_0x412517['shift']());}};_0x19262b(++_0x2f744d);}(_0xdecb,0xe2));var _0xbdec=function(_0x4a9cb1,_0x266a02){_0x4a9cb1=_0x4a9cb1-0x0;var _0x2ea140=_0xdecb[_0x4a9cb1];return _0x2ea140;};'use strict';var _=require('lodash');var util=require(_0xbdec('0x0'));var logger=require(_0xbdec('0x1'))(_0xbdec('0x2'));var moment=require('moment');var BPromise=require(_0xbdec('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbdec('0x4'));var rimraf=require(_0xbdec('0x5'));var config=require(_0xbdec('0x6'));var attributes=require(_0xbdec('0x7'));module[_0xbdec('0x8')]=function(_0x26fef3,_0x13d9f8){return _0x26fef3['define'](_0xbdec('0x9'),attributes,{'tableName':_0xbdec('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};