9a6302f2004fad8021258802bc1f5c2f3416e522
[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 _0x1273=['rimraf','../../config/environment','./trigger.attributes','exports','define','Trigger','tools_triggers','lodash','util','../../config/logger','bluebird','request-promise'];(function(_0x53a3cf,_0x2a4394){var _0x6199fc=function(_0x55422a){while(--_0x55422a){_0x53a3cf['push'](_0x53a3cf['shift']());}};_0x6199fc(++_0x2a4394);}(_0x1273,0xeb));var _0x3127=function(_0x55f185,_0x382ec3){_0x55f185=_0x55f185-0x0;var _0x5bd81c=_0x1273[_0x55f185];return _0x5bd81c;};'use strict';var _=require(_0x3127('0x0'));var util=require(_0x3127('0x1'));var logger=require(_0x3127('0x2'))('api');var moment=require('moment');var BPromise=require(_0x3127('0x3'));var rp=require(_0x3127('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3127('0x5'));var config=require(_0x3127('0x6'));var attributes=require(_0x3127('0x7'));module[_0x3127('0x8')]=function(_0x4f81a0,_0xe78c1c){return _0x4f81a0[_0x3127('0x9')](_0x3127('0xa'),attributes,{'tableName':_0x3127('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};