Built motion from commit 3e059bc2.|2.5.32
[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 _0x37a4=['exports','define','Trigger','lodash','../../config/logger','moment','bluebird','request-promise','../../config/environment','./trigger.attributes'];(function(_0x4e24b3,_0x52b1fb){var _0x156457=function(_0x115550){while(--_0x115550){_0x4e24b3['push'](_0x4e24b3['shift']());}};_0x156457(++_0x52b1fb);}(_0x37a4,0xcb));var _0x437a=function(_0x56ed2b,_0x3b2ff8){_0x56ed2b=_0x56ed2b-0x0;var _0x1e85e5=_0x37a4[_0x56ed2b];return _0x1e85e5;};'use strict';var _=require(_0x437a('0x0'));var util=require('util');var logger=require(_0x437a('0x1'))('api');var moment=require(_0x437a('0x2'));var BPromise=require(_0x437a('0x3'));var rp=require(_0x437a('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x437a('0x5'));var attributes=require(_0x437a('0x6'));module[_0x437a('0x7')]=function(_0x1b637a,_0x5f5067){return _0x1b637a[_0x437a('0x8')](_0x437a('0x9'),attributes,{'tableName':'tools_triggers','paranoid':![],'indexes':[],'timestamps':!![]});};