Built motion from commit (unavailable).|2.5.10
[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 _0x7d36=['path','rimraf','../../config/environment','./trigger.attributes','exports','define','Trigger','tools_triggers','../../config/logger','moment','bluebird','request-promise'];(function(_0x390f37,_0x440ba7){var _0x32f45a=function(_0x30eac1){while(--_0x30eac1){_0x390f37['push'](_0x390f37['shift']());}};_0x32f45a(++_0x440ba7);}(_0x7d36,0x14c));var _0x67d3=function(_0x159c68,_0xc3bb3){_0x159c68=_0x159c68-0x0;var _0x311c35=_0x7d36[_0x159c68];return _0x311c35;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x67d3('0x0'))('api');var moment=require(_0x67d3('0x1'));var BPromise=require(_0x67d3('0x2'));var rp=require(_0x67d3('0x3'));var fs=require('fs');var path=require(_0x67d3('0x4'));var rimraf=require(_0x67d3('0x5'));var config=require(_0x67d3('0x6'));var attributes=require(_0x67d3('0x7'));module[_0x67d3('0x8')]=function(_0x4c66c5,_0x400230){return _0x4c66c5[_0x67d3('0x9')](_0x67d3('0xa'),attributes,{'tableName':_0x67d3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};