649072bb2d7dded8fbcd1771c1b6a7eeca55e621
[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 _0x10fe=['moment','bluebird','request-promise','path','../../config/environment','./trigger.attributes','exports','define','Trigger','lodash','util','../../config/logger'];(function(_0x7e5e6,_0x3e0055){var _0x1434cb=function(_0x39eacc){while(--_0x39eacc){_0x7e5e6['push'](_0x7e5e6['shift']());}};_0x1434cb(++_0x3e0055);}(_0x10fe,0x159));var _0xe10f=function(_0xbbcd26,_0x17ba2b){_0xbbcd26=_0xbbcd26-0x0;var _0x272bd0=_0x10fe[_0xbbcd26];return _0x272bd0;};'use strict';var _=require(_0xe10f('0x0'));var util=require(_0xe10f('0x1'));var logger=require(_0xe10f('0x2'))('api');var moment=require(_0xe10f('0x3'));var BPromise=require(_0xe10f('0x4'));var rp=require(_0xe10f('0x5'));var fs=require('fs');var path=require(_0xe10f('0x6'));var rimraf=require('rimraf');var config=require(_0xe10f('0x7'));var attributes=require(_0xe10f('0x8'));module[_0xe10f('0x9')]=function(_0x53a3da,_0x1762e4){return _0x53a3da[_0xe10f('0xa')](_0xe10f('0xb'),attributes,{'tableName':'tools_triggers','paranoid':![],'indexes':[],'timestamps':!![]});};