73d3a9ba25d5d5ad90886c67db41caeccecf3542
[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 _0x0390=['exports','tools_triggers','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x10f6e8,_0x351db6){var _0x35bb3c=function(_0x30a39b){while(--_0x30a39b){_0x10f6e8['push'](_0x10f6e8['shift']());}};_0x35bb3c(++_0x351db6);}(_0x0390,0x185));var _0x0039=function(_0x15bd52,_0x5a14ca){_0x15bd52=_0x15bd52-0x0;var _0x3559bc=_0x0390[_0x15bd52];return _0x3559bc;};'use strict';var _=require('lodash');var util=require(_0x0039('0x0'));var logger=require(_0x0039('0x1'))('api');var moment=require(_0x0039('0x2'));var BPromise=require(_0x0039('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0039('0x4'));var rimraf=require(_0x0039('0x5'));var config=require(_0x0039('0x6'));var attributes=require('./trigger.attributes');module[_0x0039('0x7')]=function(_0x2bbfc4,_0x16e7ce){return _0x2bbfc4['define']('Trigger',attributes,{'tableName':_0x0039('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};