03ce03f9fad61b0bf3b478362f29fddb901cdd25
[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 _0xe35c=['Trigger','tools_triggers','lodash','util','../../config/logger','api','moment','bluebird','rimraf','./trigger.attributes','exports','define'];(function(_0x42d5f0,_0x151b49){var _0x5d008f=function(_0x1a17ca){while(--_0x1a17ca){_0x42d5f0['push'](_0x42d5f0['shift']());}};_0x5d008f(++_0x151b49);}(_0xe35c,0x146));var _0xce35=function(_0x493dd1,_0x44a630){_0x493dd1=_0x493dd1-0x0;var _0x5922f9=_0xe35c[_0x493dd1];return _0x5922f9;};'use strict';var _=require(_0xce35('0x0'));var util=require(_0xce35('0x1'));var logger=require(_0xce35('0x2'))(_0xce35('0x3'));var moment=require(_0xce35('0x4'));var BPromise=require(_0xce35('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xce35('0x6'));var config=require('../../config/environment');var attributes=require(_0xce35('0x7'));module[_0xce35('0x8')]=function(_0x3a4bb,_0x47e53c){return _0x3a4bb[_0xce35('0x9')](_0xce35('0xa'),attributes,{'tableName':_0xce35('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};