b3715edf181955d5ebd6a10434d3c040ca027ea0
[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 _0x7a08=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./trigger.attributes','exports','define','tools_triggers','lodash','util'];(function(_0x41a765,_0x4a1742){var _0x39dbd6=function(_0x527776){while(--_0x527776){_0x41a765['push'](_0x41a765['shift']());}};_0x39dbd6(++_0x4a1742);}(_0x7a08,0x11e));var _0x87a0=function(_0xdb5808,_0x58c067){_0xdb5808=_0xdb5808-0x0;var _0x111072=_0x7a08[_0xdb5808];return _0x111072;};'use strict';var _=require(_0x87a0('0x0'));var util=require(_0x87a0('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x87a0('0x2'));var BPromise=require(_0x87a0('0x3'));var rp=require(_0x87a0('0x4'));var fs=require('fs');var path=require(_0x87a0('0x5'));var rimraf=require(_0x87a0('0x6'));var config=require(_0x87a0('0x7'));var attributes=require(_0x87a0('0x8'));module[_0x87a0('0x9')]=function(_0x1b384a,_0xf9199b){return _0x1b384a[_0x87a0('0xa')]('Trigger',attributes,{'tableName':_0x87a0('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};