d5241134992377cac7fc821cb5d596e6c4fffe91
[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 _0x410c=['lodash','util','api','moment','request-promise','../../config/environment','./trigger.attributes','define','Trigger','tools_triggers'];(function(_0x3f8d4c,_0x5b5a96){var _0xe5c793=function(_0xca82fa){while(--_0xca82fa){_0x3f8d4c['push'](_0x3f8d4c['shift']());}};_0xe5c793(++_0x5b5a96);}(_0x410c,0x15e));var _0xc410=function(_0x3d33c5,_0x5c3496){_0x3d33c5=_0x3d33c5-0x0;var _0x2e4a8c=_0x410c[_0x3d33c5];return _0x2e4a8c;};'use strict';var _=require(_0xc410('0x0'));var util=require(_0xc410('0x1'));var logger=require('../../config/logger')(_0xc410('0x2'));var moment=require(_0xc410('0x3'));var BPromise=require('bluebird');var rp=require(_0xc410('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xc410('0x5'));var attributes=require(_0xc410('0x6'));module['exports']=function(_0xc270f4,_0x4e3d8c){return _0xc270f4[_0xc410('0x7')](_0xc410('0x8'),attributes,{'tableName':_0xc410('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};