Built motion from commit fe909640.|2.6.8
[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 _0x98d3=['Trigger','tools_triggers','lodash','util','api','bluebird','path','rimraf','exports'];(function(_0x7729b1,_0x468322){var _0x349504=function(_0x401cee){while(--_0x401cee){_0x7729b1['push'](_0x7729b1['shift']());}};_0x349504(++_0x468322);}(_0x98d3,0x173));var _0x398d=function(_0x11471d,_0x47f2ad){_0x11471d=_0x11471d-0x0;var _0x197d16=_0x98d3[_0x11471d];return _0x197d16;};'use strict';var _=require(_0x398d('0x0'));var util=require(_0x398d('0x1'));var logger=require('../../config/logger')(_0x398d('0x2'));var moment=require('moment');var BPromise=require(_0x398d('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x398d('0x4'));var rimraf=require(_0x398d('0x5'));var config=require('../../config/environment');var attributes=require('./trigger.attributes');module[_0x398d('0x6')]=function(_0x25d38f,_0x2c3c4c){return _0x25d38f['define'](_0x398d('0x7'),attributes,{'tableName':_0x398d('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};