17807ab324f37066293e5d545b75c9a1a320353b
[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 _0x98fa=['../../config/environment','./trigger.attributes','define','Trigger','tools_triggers','lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x108d5f,_0x33f82d){var _0x456ea3=function(_0x228200){while(--_0x228200){_0x108d5f['push'](_0x108d5f['shift']());}};_0x456ea3(++_0x33f82d);}(_0x98fa,0xd1));var _0xa98f=function(_0x1161d6,_0x15ec53){_0x1161d6=_0x1161d6-0x0;var _0x3ad9d9=_0x98fa[_0x1161d6];return _0x3ad9d9;};'use strict';var _=require(_0xa98f('0x0'));var util=require('util');var logger=require(_0xa98f('0x1'))('api');var moment=require(_0xa98f('0x2'));var BPromise=require(_0xa98f('0x3'));var rp=require(_0xa98f('0x4'));var fs=require('fs');var path=require(_0xa98f('0x5'));var rimraf=require(_0xa98f('0x6'));var config=require(_0xa98f('0x7'));var attributes=require(_0xa98f('0x8'));module['exports']=function(_0x33e6bb,_0x693c05){return _0x33e6bb[_0xa98f('0x9')](_0xa98f('0xa'),attributes,{'tableName':_0xa98f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};