fff866a832925dbcef3803ba2e8518a9f37dc3b1
[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 _0x653d=['lodash','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./trigger.attributes','exports','define','Trigger','tools_triggers'];(function(_0x298ed3,_0x4ab5e1){var _0x5aad28=function(_0x168687){while(--_0x168687){_0x298ed3['push'](_0x298ed3['shift']());}};_0x5aad28(++_0x4ab5e1);}(_0x653d,0x1ee));var _0xd653=function(_0x59160e,_0xf04650){_0x59160e=_0x59160e-0x0;var _0x2d6847=_0x653d[_0x59160e];return _0x2d6847;};'use strict';var _=require(_0xd653('0x0'));var util=require('util');var logger=require(_0xd653('0x1'))(_0xd653('0x2'));var moment=require(_0xd653('0x3'));var BPromise=require(_0xd653('0x4'));var rp=require(_0xd653('0x5'));var fs=require('fs');var path=require(_0xd653('0x6'));var rimraf=require('rimraf');var config=require(_0xd653('0x7'));var attributes=require(_0xd653('0x8'));module[_0xd653('0x9')]=function(_0x54ef7f,_0x1aeda8){return _0x54ef7f[_0xd653('0xa')](_0xd653('0xb'),attributes,{'tableName':_0xd653('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};