02f323d2739cded7d66ac38c7586a232724445ee
[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 _0xaaf8=['rimraf','../../config/environment','./trigger.attributes','exports','Trigger','lodash','util','api','moment','request-promise','path'];(function(_0xe85862,_0x10097d){var _0x14e5c5=function(_0x56f0d0){while(--_0x56f0d0){_0xe85862['push'](_0xe85862['shift']());}};_0x14e5c5(++_0x10097d);}(_0xaaf8,0xb5));var _0x8aaf=function(_0x14a7fd,_0x2bf7a0){_0x14a7fd=_0x14a7fd-0x0;var _0xc45a5=_0xaaf8[_0x14a7fd];return _0xc45a5;};'use strict';var _=require(_0x8aaf('0x0'));var util=require(_0x8aaf('0x1'));var logger=require('../../config/logger')(_0x8aaf('0x2'));var moment=require(_0x8aaf('0x3'));var BPromise=require('bluebird');var rp=require(_0x8aaf('0x4'));var fs=require('fs');var path=require(_0x8aaf('0x5'));var rimraf=require(_0x8aaf('0x6'));var config=require(_0x8aaf('0x7'));var attributes=require(_0x8aaf('0x8'));module[_0x8aaf('0x9')]=function(_0x46d670,_0x266444){return _0x46d670['define'](_0x8aaf('0xa'),attributes,{'tableName':'tools_triggers','paranoid':![],'indexes':[],'timestamps':!![]});};